PageSourceSearch

https://gridquest.vercel.app/assets/index-BNQT5jUn.js

js gridquest.vercel.app collected 2026-10-03 07:02:01 UTC 594,453 bytes, 146 lines download raw bytes

vendor: 5,508 bytes, lines 1-17
1function sb(l,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const f in a)if(f!=="default"&&!(f in l)){const u=Object.getOwnPropertyDescriptor(a,f);u&&Object.defineProperty(l,f,u.get?u:{enumerable:!0,get:()=>a[f]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))a(f);new MutationObserver(f=>{for(const u of f)if(u.type==="childList")for(const p of u.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&a(p)}).observe(document,{childList:!0,subtree:!0});function n(f){const u={};return f.integrity&&(u.integrity=f.integrity),f.referrerPolicy&&(u.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?u.credentials="include":f.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function a(f){if(f.ep)return;f.ep=!0;const u=n(f);fetch(f.href,u)}})();var ob=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ll(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function ub(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var e=l.default;if(typeof e=="function"){var n=function a(){return this instanceof a?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(l).forEach(function(a){var f=Object.getOwnPropertyDescriptor(l,a);Object.defineProperty(n,a,f.get?f:{enumerable:!0,get:function(){return l[a]}})}),n}var Tc={exports:{}},rs={};/**
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 hm;function fb(){if(hm)return rs;hm=1;var l=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(a,f,u){var p=null;if(u!==void 0&&(p=""+u),f.key!==void 0&&(p=""+f.key),"key"in f){u={};for(var y in f)y!=="key"&&(u[y]=f[y])}else u=f;return f=u.ref,{$$typeof:l,type:a,key:p,ref:f!==void 0?f:null,props:u}}return rs.Fragment=e,rs.jsx=n,rs.jsxs=n,rs}var dm;function cb(){return dm||(dm=1,Tc.exports=fb()),Tc.exports}var J=cb(),Nc={exports:{}},oe={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var pm;function hb(){if(pm)return oe;pm=1;var l=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),p=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),_=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),C=Symbol.iterator;function B(M){return M===null||typeof M!="object"?null:(M=C&&M[C]||M["@@iterator"],typeof M=="function"?M:null)}var H={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,k={};function z(M,b,c){this.props=M,this.context=b,this.refs=k,this.updater=c||H}z.prototype.isReactComponent={},z.prototype.setState=function(M,b){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,b,"setState")},z.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function L(){}L.prototype=z.prototype;function G(M,b,c){this.props=M,this.context=b,this.refs=k,this.updater=c||H}var I=G.prototype=new L;I.constructor=G,q(I,z.prototype),I.isPureReactComponent=!0;var Q=Array.isArray,W={H:null,A:null,T:null,S:null,V:null},lt=Object.prototype.hasOwnProperty;function ut(M,b,c,A,K,S){return c=S.ref,{$$typeof:l,type:M,key:b,ref:c!==void 0?c:null,props:S}}function ht(M,b){return ut(M.type,b,void 0,void 0,void 0,M.props)}function vt(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function ae(M){var b={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(c){return b[c]})}var pt=/\/+/g;function V(M,b){return typeof M=="object"&&M!==null&&M.key!=null?ae(""+M.key):b.toString(36)}function E(){}function o(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(E,E):(M.status="pending",M.then(function(b){M.status==="pending"&&(M.status="fulfilled",M.value=b)},function(b){M.status==="pending"&&(M.status="rejected",M.reason=b)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function d(M,b,c,A,K){var S=typeof M;(S==="undefined"||S==="boolean")&&(M=null);var D=!1;if(M===null)D=!0;else switch(S){case"bigint":case"string":case"number":D=!0;break;case"object":switch(M.$$typeof){case l:case e:D=!0;break;case N:return D=M._init,d(D(M._payload),b,c,A,K)}}if(D)return K=K(M),D=A===""?"."+V(M,0):A,Q(K)?(c="",D!=null&&(c=D.replace(pt,"$&/")+"/"),d(K,b,c,"",function(rt){return rt})):K!=null&&(vt(K)&&(K=ht(K,c+(K.key==null||M&&M.key===K.key?"":(""+K.key).replace(pt,"$&/")+"/")+D)),b.pu
vendor: 5,553 bytes, lines 17-25
17sh(K)),1;D=0;var et=A===""?".":A+":";if(Q(M))for(var Y=0;Y<M.length;Y++)A=M[Y],S=et+V(A,Y),D+=d(A,b,c,S,K);else if(Y=B(M),typeof Y=="function")for(M=Y.call(M),Y=0;!(A=M.next()).done;)A=A.value,S=et+V(A,Y++),D+=d(A,b,c,S,K);else if(S==="object"){if(typeof M.then=="function")return d(o(M),b,c,A,K);throw b=String(M),Error("Objects are not valid as a React child (found: "+(b==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.")}return D}function m(M,b,c){if(M==null)return M;var A=[],K=0;return d(M,A,"","",function(S){return b.call(c,S,K++)}),A}function v(M){if(M._status===-1){var b=M._result;b=b(),b.then(function(c){(M._status===0||M._status===-1)&&(M._status=1,M._result=c)},function(c){(M._status===0||M._status===-1)&&(M._status=2,M._result=c)}),M._status===-1&&(M._status=0,M._result=b)}if(M._status===1)return M._result.default;throw M._result}var x=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var b=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(b))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function R(){}return oe.Children={map:m,forEach:function(M,b,c){m(M,function(){b.apply(this,arguments)},c)},count:function(M){var b=0;return m(M,function(){b++}),b},toArray:function(M){return m(M,function(b){return b})||[]},only:function(M){if(!vt(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},oe.Component=z,oe.Fragment=n,oe.Profiler=f,oe.PureComponent=G,oe.StrictMode=a,oe.Suspense=w,oe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=W,oe.__COMPILER_RUNTIME={__proto__:null,c:function(M){return W.H.useMemoCache(M)}},oe.cache=function(M){return function(){return M.apply(null,arguments)}},oe.cloneElement=function(M,b,c){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var A=q({},M.props),K=M.key,S=void 0;if(b!=null)for(D in b.ref!==void 0&&(S=void 0),b.key!==void 0&&(K=""+b.key),b)!lt.call(b,D)||D==="key"||D==="__self"||D==="__source"||D==="ref"&&b.ref===void 0||(A[D]=b[D]);var D=arguments.length-2;if(D===1)A.children=c;else if(1<D){for(var et=Array(D),Y=0;Y<D;Y++)et[Y]=arguments[Y+2];A.children=et}return ut(M.type,K,void 0,void 0,S,A)},oe.createContext=function(M){return M={$$typeof:p,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:u,_context:M},M},oe.createElement=function(M,b,c){var A,K={},S=null;if(b!=null)for(A in b.key!==void 0&&(S=""+b.key),b)lt.call(b,A)&&A!=="key"&&A!=="__self"&&A!=="__source"&&(K[A]=b[A]);var D=arguments.length-2;if(D===1)K.children=c;else if(1<D){for(var et=Array(D),Y=0;Y<D;Y++)et[Y]=arguments[Y+2];K.children=et}if(M&&M.defaultProps)for(A in D=M.defaultProps,D)K[A]===void 0&&(K[A]=D[A]);return ut(M,S,void 0,void 0,null,K)},oe.createRef=function(){return{current:null}},oe.forwardRef=function(M){return{$$typeof:y,render:M}},oe.isValidElement=vt,oe.lazy=function(M){return{$$typeof:N,_payload:{_status:-1,_result:M},_init:v}},oe.memo=function(M,b){return{$$typeof:_,type:M,compare:b===void 0?null:b}},oe.startTransition=function(M){var b=W.T,c={};W.T=c;try{var A=M(),K=W.S;K!==null&&K(c,A),typeof A=="object"&&A!==null&&typeof A.then=="function"&&A.then(R,x)}catch(S){x(S)}finally{W.T=b}},oe.unstable_useCacheRefresh=function(){return W.H.useCacheRefresh()},oe.use=function(M){return W.H.use(M)},oe.useActionState=function(M,b,c){return W.H.useActionState(M,b,c)},oe.useCallback=function(M,b){return W.H.useCallback(M,b)},oe.useContext=function(M){return W.H.useContext(M)},oe.useDebugValue=function(){},oe.useDeferredValue=function(M,b){return W.H.useDeferredValue(M,b)},oe.useEffect=function(M,b,c){var A=W.H;if(typeof c=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return A.useEffect(M,b)},oe.useId=function(){return W.H.useId()},oe.useImperativeHandle=function(M,b,c){return W.H.useImperativeHandle(M,b,c)},oe.useInsertionEffect=function(M,b){return W.H.useInsertionEffect(M,b)},oe.useLayoutEffect=function(M,b){return W.H.useLayoutEffect(M,b)},oe.useMemo=function(M,b){return W.H.useMemo(M,b)},oe.useOptimistic=function(M,b){return W.H.useOptimistic(M,b)},oe.useReducer=function(M,b,c){return W.H.useReducer(M,b,c)},oe.useRef=function(M){return W.H.useRef(M)},oe.useState=function(M){return W.H.useState(M)},oe.useSyncExternalStore=function(M,b,c){return W.H.useSyncExternalStore(M,b,c)},oe.useTransition=function(){return W.H.useTransition()},oe.version="19.1.0",oe}var mm;function wh(){return mm||(mm=1,Nc.exports=hb()),Nc.exports}var at=wh();const Be=ll(at),db=sb({__proto__:null,default:Be},[at]);var Rc={exports:{}},ns={},Cc={exports:{}},Oc={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var gm;function pb(){return gm||(gm=1,function(l){function e(m,v){var x=m.length;m.push(v);t:for(;0<x;){var R=x-1>>>1,M=m[R];if(0<f(M,v))m[R]=v,m[x]=M,x=R;else break t}}function n(m){return m.length===0?null:m[0]}function a(m){if(m.length===0)return null;var v=m[0],x=m.pop();if(x!==v){m[0]=x;
vendor: 3,258 bytes, line 25
25t:for(var R=0,M=m.length,b=M>>>1;R<b;){var c=2*(R+1)-1,A=m[c],K=c+1,S=m[K];if(0>f(A,x))K<M&&0>f(S,A)?(m[R]=S,m[K]=x,R=K):(m[R]=A,m[c]=x,R=c);else if(K<M&&0>f(S,x))m[R]=S,m[K]=x,R=K;else break t}}return v}function f(m,v){var x=m.sortIndex-v.sortIndex;return x!==0?x:m.id-v.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;l.unstable_now=function(){return u.now()}}else{var p=Date,y=p.now();l.unstable_now=function(){return p.now()-y}}var w=[],_=[],N=1,C=null,B=3,H=!1,q=!1,k=!1,z=!1,L=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;function Q(m){for(var v=n(_);v!==null;){if(v.callback===null)a(_);else if(v.startTime<=m)a(_),v.sortIndex=v.expirationTime,e(w,v);else break;v=n(_)}}function W(m){if(k=!1,Q(m),!q)if(n(w)!==null)q=!0,lt||(lt=!0,V());else{var v=n(_);v!==null&&d(W,v.startTime-m)}}var lt=!1,ut=-1,ht=5,vt=-1;function ae(){return z?!0:!(l.unstable_now()-vt<ht)}function pt(){if(z=!1,lt){var m=l.unstable_now();vt=m;var v=!0;try{t:{q=!1,k&&(k=!1,G(ut),ut=-1),H=!0;var x=B;try{e:{for(Q(m),C=n(w);C!==null&&!(C.expirationTime>m&&ae());){var R=C.callback;if(typeof R=="function"){C.callback=null,B=C.priorityLevel;var M=R(C.expirationTime<=m);if(m=l.unstable_now(),typeof M=="function"){C.callback=M,Q(m),v=!0;break e}C===n(w)&&a(w),Q(m)}else a(w);C=n(w)}if(C!==null)v=!0;else{var b=n(_);b!==null&&d(W,b.startTime-m),v=!1}}break t}finally{C=null,B=x,H=!1}v=void 0}}finally{v?V():lt=!1}}}var V;if(typeof I=="function")V=function(){I(pt)};else if(typeof MessageChannel<"u"){var E=new MessageChannel,o=E.port2;E.port1.onmessage=pt,V=function(){o.postMessage(null)}}else V=function(){L(pt,0)};function d(m,v){ut=L(function(){m(l.unstable_now())},v)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(m){m.callback=null},l.unstable_forceFrameRate=function(m){0>m||125<m?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ht=0<m?Math.floor(1e3/m):5},l.unstable_getCurrentPriorityLevel=function(){return B},l.unstable_next=function(m){switch(B){case 1:case 2:case 3:var v=3;break;default:v=B}var x=B;B=v;try{return m()}finally{B=x}},l.unstable_requestPaint=function(){z=!0},l.unstable_runWithPriority=function(m,v){switch(m){case 1:case 2:case 3:case 4:case 5:break;default:m=3}var x=B;B=m;try{return v()}finally{B=x}},l.unstable_scheduleCallback=function(m,v,x){var R=l.unstable_now();switch(typeof x=="object"&&x!==null?(x=x.delay,x=typeof x=="number"&&0<x?R+x:R):x=R,m){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=x+M,m={id:N++,callback:v,priorityLevel:m,startTime:x,expirationTime:M,sortIndex:-1},x>R?(m.sortIndex=x,e(_,m),n(w)===null&&m===n(_)&&(k?(G(ut),ut=-1):k=!0,d(W,x-R))):(m.sortIndex=M,e(w,m),q||H||(q=!0,lt||(lt=!0,V()))),m},l.unstable_shouldYield=ae,l.unstable_wrapCallback=function(m){var v=B;return function(){var x=B;B=v;try{return m.apply(this,arguments)}finally{B=x}}}}(Oc)),Oc}var vm;
vendor: 9,353 bytes, lines 25-41
25function mb(){return vm||(vm=1,Cc.exports=pb()),Cc.exports}var Bc={exports:{}},xr={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var ym;function gb(){if(ym)return xr;ym=1;var l=wh();function e(w){var _="https://react.dev/errors/"+w;if(1<arguments.length){_+="?args[]="+encodeURIComponent(arguments[1]);for(var N=2;N<arguments.length;N++)_+="&args[]="+encodeURIComponent(arguments[N])}return"Minified React error #"+w+"; visit "+_+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},f=Symbol.for("react.portal");function u(w,_,N){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:C==null?null:""+C,children:w,containerInfo:_,implementation:N}}var p=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(w,_){if(w==="font")return"";if(typeof _=="string")return _==="use-credentials"?_:""}return xr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,xr.createPortal=function(w,_){var N=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_||_.nodeType!==1&&_.nodeType!==9&&_.nodeType!==11)throw Error(e(299));return u(w,_,null,N)},xr.flushSync=function(w){var _=p.T,N=a.p;try{if(p.T=null,a.p=2,w)return w()}finally{p.T=_,a.p=N,a.d.f()}},xr.preconnect=function(w,_){typeof w=="string"&&(_?(_=_.crossOrigin,_=typeof _=="string"?_==="use-credentials"?_:"":void 0):_=null,a.d.C(w,_))},xr.prefetchDNS=function(w){typeof w=="string"&&a.d.D(w)},xr.preinit=function(w,_){if(typeof w=="string"&&_&&typeof _.as=="string"){var N=_.as,C=y(N,_.crossOrigin),B=typeof _.integrity=="string"?_.integrity:void 0,H=typeof _.fetchPriority=="string"?_.fetchPriority:void 0;N==="style"?a.d.S(w,typeof _.precedence=="string"?_.precedence:void 0,{crossOrigin:C,integrity:B,fetchPriority:H}):N==="script"&&a.d.X(w,{crossOrigin:C,integrity:B,fetchPriority:H,nonce:typeof _.nonce=="string"?_.nonce:void 0})}},xr.preinitModule=function(w,_){if(typeof w=="string")if(typeof _=="object"&&_!==null){if(_.as==null||_.as==="script"){var N=y(_.as,_.crossOrigin);a.d.M(w,{crossOrigin:N,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0})}}else _==null&&a.d.M(w)},xr.preload=function(w,_){if(typeof w=="string"&&typeof _=="object"&&_!==null&&typeof _.as=="string"){var N=_.as,C=y(N,_.crossOrigin);a.d.L(w,N,{crossOrigin:C,integrity:typeof _.integrity=="string"?_.integrity:void 0,nonce:typeof _.nonce=="string"?_.nonce:void 0,type:typeof _.type=="string"?_.type:void 0,fetchPriority:typeof _.fetchPriority=="string"?_.fetchPriority:void 0,referrerPolicy:typeof _.referrerPolicy=="string"?_.referrerPolicy:void 0,imageSrcSet:typeof _.imageSrcSet=="string"?_.imageSrcSet:void 0,imageSizes:typeof _.imageSizes=="string"?_.imageSizes:void 0,media:typeof _.media=="string"?_.media:void 0})}},xr.preloadModule=function(w,_){if(typeof w=="string")if(_){var N=y(_.as,_.crossOrigin);a.d.m(w,{as:typeof _.as=="string"&&_.as!=="script"?_.as:void 0,crossOrigin:N,integrity:typeof _.integrity=="string"?_.integrity:void 0})}else a.d.m(w)},xr.requestFormReset=function(w){a.d.r(w)},xr.unstable_batchedUpdates=function(w,_){return w(_)},xr.useFormState=function(w,_,N){return p.H.useFormState(w,_,N)},xr.useFormStatus=function(){return p.H.useHostTransitionStatus()},xr.version="19.1.0",xr}var bm;function Qg(){if(bm)return Bc.exports;bm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(e){console.error(e)}}return l(),Bc.exports=gb(),Bc.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var wm;function vb(){if(wm)return ns;wm=1;var l=mb(),e=wh(),n=Qg();function a(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function p(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function y(t){if(u(t)!==t)throw Error(a(188))}function w(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(a(188));return r!==t?null:t}for(var i=t,s=r;;){var h=i.return;if(h===null)break;var g=h.alternate;if(g===null){if(s=h.return,s!==null){i=s;continue}break}if(h.child===g.child){for(g=h.child;g;){if(g===i)return y(h),t;if(g===s)return y(h),r;g=g.sibling}throw Error(a(188))}if(i.return!==s.return)i=h,s=g;else{for(var T=!1,O=h.child;O;){if(O===i){T=!0,i=h,s=g;break}if(O===s){T=!0,s=h,i=g;break}O=O.sibling}if(!T){for(O=g.child;O;){if(O===i){T=!0,i=g,s=h;break}if(O===s){T=!0,s=g,i=h;break}O=O.sibling}if(!T)throw Error(a(189))}}if(i.alternate!==s)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?t:r}function _(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=_(t),r!==null)return r;t=t.sibling}return null}var N=Object.assign,C=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),H=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),G=Symbol.for("react.consumer"),I=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),lt=Symbol.for("react.suspense_list"),ut=Symbol.for("react.memo"),ht=Symbol.for("react.lazy"),vt=Symbol.for("react.activity"),ae=Symbol.for("react.memo_cache_sentinel"),pt=Symbol.iterator;function V(t){return t===null||typeof t!="object"?null:(t=pt&&t[pt]||t["@@iterator"],typeof t=="function"?t:null)}var E=Symbol.for("react.client.reference");function o(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===E?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case z:return"Profiler";case k:return"StrictMode";case W:return"Suspense";case lt:return"SuspenseList";case vt:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case H:return"Portal";case I:return(t.displayName||"Context")+".Provider";case G:return(t._context.displayName||"Context")+".Consumer";case Q:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ut:return r=t.displayName||null,r!==null?r:o(t.type)||"Memo";case ht:r=t._payload,t=t._init;try{return o(t(r))}catch{}}return null}var d=Array.isArray,m=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,v=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,x={pending:!1,data:null,method:null,action:null},R=[],M=-1;function b(t){return{current:t}}function c(t){0>M||(t.current=R[M],R[M]=null,M--)}function A(t,r){M++,R[M]=t.current,t.current=r}var K=b(null),S=b(null),D=b(null),et=b(null);function Y(t,r){switch(A(D,r),A(S,t),A(K,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?jp(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=jp(r),t=Ip(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}c(K),A(K,t)}function rt(){c(K),c(S),c(D)}function yt(t){t.memoizedState!==null&&A(et,t);var r=K.current,i=Ip(r,t.type);r!==i&&(A(S,t),A(K,i))}function ft(t){S.current===t&&(c(K),c(S)),et.current===t&&(c(et),Fl._currentValue=x)}var ot=Object.prototype.hasOwnProperty,de=l.unstable_scheduleCallback,ct=l.unstable_cancelCallback,gt=l.unstable_shouldYield,nr=l.unstable_requestPaint,wt=l.unstable_now,Ht=l.unstable_getCurrentPriorityLevel,vr=l.unstable_ImmediatePriority,Ut=l.unstable_UserBlockingPriority,Rt=l.unstable_NormalPriority,Mr=l.unstable_LowPriority,zt=l.unstable_IdlePriority,Ot=l.log,ur=l.unstable_setDisableYieldValue,Tt=null,xt=null;function Fe(t){if(typeof Ot=="function"&&ur(t),xt&&typeof xt.setStrictMode=="function")try{xt.setStrictMode(Tt,t)}catch{}}var Et=Math.clz32?Math.clz32:ee,te=Math.log,Wr=Math.LN2;function ee(t){return t>>>=0,t===0?32:31-(te(t)/Wr|0)|0}var jt=256,Sr=4194304;function Ct(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;
vendor: 1,655 bytes, line 41
41case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function It(t,r,i){var s=t.pendingLanes;if(s===0)return 0;var h=0,g=t.suspendedLanes,T=t.pingedLanes;t=t.warmLanes;var O=s&134217727;return O!==0?(s=O&~g,s!==0?h=Ct(s):(T&=O,T!==0?h=Ct(T):i||(i=O&~t,i!==0&&(h=Ct(i))))):(O=s&~g,O!==0?h=Ct(O):T!==0?h=Ct(T):i||(i=s&~t,i!==0&&(h=Ct(i)))),h===0?0:r!==0&&r!==h&&(r&g)===0&&(g=h&-h,i=r&-r,g>=i||g===32&&(i&4194048)!==0)?r:h}function yr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function re(t,r){switch(t){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 Zt(){var t=jt;return jt<<=1,(jt&4194048)===0&&(jt=256),t}function Hr(){var t=Sr;return Sr<<=1,(Sr&62914560)===0&&(Sr=4194304),t}function Pt(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Lt(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function $r(t,r,i,s,h,g){var T=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var O=t.entanglements,U=t.expirationTimes,Z=t.hiddenUpdates;for(i=T&~i;0<i;){var nt=31-Et(i),st=1<<nt;O[nt]=0,U[nt]=-1;var $=Z[nt];
vendor: 11,101 bytes, lines 41-48
41if($!==null)for(Z[nt]=null,nt=0;nt<$.length;nt++){var tt=$[nt];tt!==null&&(tt.lane&=-536870913)}i&=~st}s!==0&&Jt(t,s,0),g!==0&&h===0&&t.tag!==0&&(t.suspendedLanes|=g&~(T&~r))}function Jt(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var s=31-Et(r);t.entangledLanes|=r,t.entanglements[s]=t.entanglements[s]|1073741824|i&4194090}function Ft(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var s=31-Et(i),h=1<<s;h&r|t[s]&r&&(t[s]|=r),i&=~h}}function Or(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Qt(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Wt(){var t=v.p;return t!==0?t:(t=window.event,t===void 0?32:lm(t.type))}function tn(t,r){var i=v.p;try{return v.p=t,r()}finally{v.p=i}}var Nt=Math.random().toString(36).slice(2),At="__reactFiber$"+Nt,ke="__reactProps$"+Nt,Bt="__reactContainer$"+Nt,Yt="__reactEvents$"+Nt,en="__reactListeners$"+Nt,ne="__reactHandles$"+Nt,$t="__reactResources$"+Nt,br="__reactMarker$"+Nt;function Xt(t){delete t[At],delete t[ke],delete t[Yt],delete t[en],delete t[ne]}function kt(t){var r=t[At];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Bt]||i[At]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=Yp(t);t!==null;){if(i=t[At])return i;t=Yp(t)}return r}t=i,i=t.parentNode}return null}function fr(t){if(t=t[At]||t[Bt]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function qt(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(a(33))}function Dt(t){var r=t[$t];return r||(r=t[$t]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function xe(t){t[br]=!0}var Tr=new Set,Nr={};function Ye(t,r){We(t,r),We(t+"Capture",r)}function We(t,r){for(Nr[t]=r,t=0;t<r.length;t++)Tr.add(r[t])}var Vn=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]*$"),Cn={},On={};function Kn(t){return ot.call(On,t)?!0:ot.call(Cn,t)?!1:Vn.test(t)?On[t]=!0:(Cn[t]=!0,!1)}function rn(t,r,i){if(Kn(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var s=r.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function nn(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function cr(t,r,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+s)}}var bn,Bn;function Br(t){if(bn===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);bn=r&&r[1]||"",Bn=-1<i.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+bn+t+Bn}var wn=!1;function xn(t,r){if(!t||wn)return"";wn=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(r){var st=function(){throw Error()};if(Object.defineProperty(st.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(st,[])}catch(tt){var $=tt}Reflect.construct(t,[],st)}else{try{st.call()}catch(tt){$=tt}t.call(st.prototype)}}else{try{throw Error()}catch(tt){$=tt}(st=t())&&typeof st.catch=="function"&&st.catch(function(){})}}catch(tt){if(tt&&$&&typeof tt.stack=="string")return[tt.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=s.DetermineComponentFrameRoot(),T=g[0],O=g[1];if(T&&O){var U=T.split(`
44`),Z=O.split(`
45`);for(h=s=0;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;for(;h<Z.length&&!Z[h].includes("DetermineComponentFrameRoot");)h++;if(s===U.length||h===Z.length)for(s=U.length-1,h=Z.length-1;1<=s&&0<=h&&U[s]!==Z[h];)h--;for(;1<=s&&0<=h;s--,h--)if(U[s]!==Z[h]){if(s!==1||h!==1)do if(s--,h--,0>h||U[s]!==Z[h]){var nt=`
46`+U[s].replace(" at new "," at ");return t.displayName&&nt.includes("<anonymous>")&&(nt=nt.replace("<anonymous>",t.displayName)),nt}while(1<=s&&0<=h);break}}}finally{wn=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Br(i):""}function Zn(t){switch(t.tag){case 26:case 27:case 5:return Br(t.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 15:return xn(t.type,!1);case 11:return xn(t.type.render,!1);case 1:return xn(t.type,!0);case 31:return Br("Activity");default:return""}}function kn(t){try{var r="";do r+=Zn(t),t=t.return;while(t);return r}catch(i){return`
47Error generating stack: `+i.message+`
48`+i.stack}}function an(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Uh(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function ry(t){var r=Uh(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),s=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var h=i.get,g=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return h.call(this)},set:function(T){s=""+T,g.call(this,T)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return s},setValue:function(T){s=""+T},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Cs(t){t._valueTracker||(t._valueTracker=ry(t))}function zh(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),s="";return t&&(s=Uh(t)?t.checked?"true":"false":t.value),t=s,t!==i?(r.setValue(t),!0):!1}function Os(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var ny=/[\n"\\]/g;function ln(t){return t.replace(ny,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function _u(t,r,i,s,h,g,T,O){t.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?t.type=T:t.removeAttribute("type"),r!=null?T==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+an(r)):t.value!==""+an(r)&&(t.value=""+an(r)):T!=="submit"&&T!=="reset"||t.removeAttribute("value"),r!=null?Eu(t,T,an(r)):i!=null?Eu(t,T,an(i)):s!=null&&t.removeAttribute("value"),h==null&&g!=null&&(t.defaultChecked=!!g),h!=null&&(t.checked=h&&typeof h!="function"&&typeof h!="symbol"),O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?t.name=""+an(O):t.removeAttribute("name")}function Lh(t,r,i,s,h,g,T,O){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(t.type=g),r!=null||i!=null){if(!(g!=="submit"&&g!=="reset"||r!=null))return;i=i!=null?""+an(i):"",r=r!=null?""+an(r):i,O||r===t.value||(t.value=r),t.defaultValue=r}s=s??h,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=O?t.checked:!!s,t.defaultChecked=!!s,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(t.name=T)}function Eu(t,r,i){r==="number"&&Os(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function wa(t,r,i,s){if(t=t.options,r){r={};for(var h=0;h<i.length;h++)r["$"+i[h]]=!0;for(i=0;i<t.length;i++)h=r.hasOwnProperty("$"+t[i].value),t[i].selected!==h&&(t[i].selected=h),h&&s&&(t[i].defaultSelected=!0)}else{for(i=""+an(i),r=null,h=0;h<t.length;h++){if(t[h].value===i){t[h].selected=!0,s&&(t[h].defaultSelected=!0);return}r!==null||t[h].disabled||(r=t[h])}r!==null&&(r.selected=!0)}}function qh(t,r,i){if(r!=null&&(r=""+an(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+an(i):""}function Hh(t,r,i,s){if(r==null){if(s!=null){if(i!=null)throw Error(a(92));if(d(s)){if(1<s.length)throw Error(a(93));s=s[0]}i=s}i==null&&(i=""),r=i}i=an(r),t.defaultValue=i,s=t.textContent,s===i&&s!==""&&s!==null&&(t.value=s)}function xa(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var iy=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 jh(t,r,i){var s=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?s?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":s?t.setProperty(r,i):typeof i!="number"||i===0||iy.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function Ih(t,r,i){if(r!=null&&typeof r!="object")throw Error(a(62));if(t=t.style,i!=null){for(var s in i)!i.hasOwnProperty(s)||r!=null&&r.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var h in r)s=r[h],r.hasOwnProperty(h)&&i[h]!==s&&jh(t,h,s)}else for(var g in r)r.hasOwnProperty(g)&&jh(t,g,r[g])}function Mu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ay=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"],["colorRen
48dering","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"]]),ly=/^[\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 Bs(t){return ly.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Su=null;function Tu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Aa=null,_a=null;function Gh(t){var r=fr(t);if(r&&(t=r.stateNode)){var i=t[ke]||null;t:switch(t=r.stateNode,r.type){case"input":if(_u(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ln(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var s=i[r];if(s!==t&&s.form===t.form){var h=s[ke]||null;if(!h)throw Error(a(90));_u(s,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name)}}for(r=0;r<i.length;r++)s=i[r],s.form===t.form&&zh(s)}break t;case"textarea":qh(t,i.value,i.defaultValue);break t;case"select":r=i.value,r!=null&&wa(t,!!i.multiple,r,!1)}}}var Nu=!1;function Ph(t,r,i){if(Nu)return t(r,i);Nu=!0;try{var s=t(r);return s}finally{if(Nu=!1,(Aa!==null||_a!==null)&&(yo(),Aa&&(r=Aa,t=_a,_a=Aa=null,Gh(r),t)))for(r=0;r<t.length;r++)Gh(t[r])}}function fl(t,r){var i=t.stateNode;if(i===null)return null;var s=i[ke]||null;if(s===null)return null;i=s[r];t: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)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(a(231,r,typeof i));return i}var Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ru=!1;if(Jn)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){Ru=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{Ru=!1}var yi=null,Cu=null,ks=null;function Qh(){if(ks)return ks;var t,r=Cu,i=r.length,s,h="value"in yi?yi.value:yi.textContent,g=h.length;for(t=0;t<i&&r[t]===h[t];t++);var T=i-t;for(s=1;s<=T&&r[i-s]===h[g-s];s++);return ks=h.slice(t,1<s?1-s:void 0)}function Ds(t){var r=t.keyCode;
vendor: 4,829 bytes, line 48
48return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Us(){return!0}function Yh(){return!1}function kr(t){function r(i,s,h,g,T){this._reactName=i,this._targetInst=h,this.type=s,this.nativeEvent=g,this.target=T,this.currentTarget=null;for(var O in t)t.hasOwnProperty(O)&&(i=t[O],this[O]=i?i(g):g[O]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Us:Yh,this.isPropagationStopped=Yh,this}return N(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Us)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Us)},persist:function(){},isPersistent:Us}),r}var Vi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zs=kr(Vi),hl=N({},Vi,{view:0,detail:0}),sy=kr(hl),Ou,Bu,dl,Ls=N({},hl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==dl&&(dl&&t.type==="mousemove"?(Ou=t.screenX-dl.screenX,Bu=t.screenY-dl.screenY):Bu=Ou=0,dl=t),Ou)},movementY:function(t){return"movementY"in t?t.movementY:Bu}}),Xh=kr(Ls),oy=N({},Ls,{dataTransfer:0}),uy=kr(oy),fy=N({},hl,{relatedTarget:0}),ku=kr(fy),cy=N({},Vi,{animationName:0,elapsedTime:0,pseudoElement:0}),hy=kr(cy),dy=N({},Vi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),py=kr(dy),my=N({},Vi,{data:0}),Vh=kr(my),gy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vy={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"},yy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function by(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=yy[t])?!!r[t]:!1}function Du(){return by}var wy=N({},hl,{key:function(t){if(t.key){var r=gy[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Ds(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?vy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(t){return t.type==="keypress"?Ds(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ds(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),xy=kr(wy),Ay=N({},Ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kh=kr(Ay),_y=N({},hl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),Ey=kr(_y),My=N({},Vi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Sy=kr(My),Ty=N({},Ls,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ny=kr(Ty),Ry=N({},Vi,{newState:0,oldState:0}),Cy=kr(Ry),Oy=[9,13,27,32],Uu=Jn&&"CompositionEvent"in window,pl=null;Jn&&"documentMode"in document&&(pl=document.documentMode);var By=Jn&&"TextEvent"in window&&!pl,Zh=Jn&&(!Uu||pl&&8<pl&&11>=pl),Jh=" ",Fh=!1;function Wh(t,r){switch(t){case"keyup":return Oy.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $h(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ea=!1;function ky(t,r){switch(t){case"compositionend":return $h(r);case"keypress":return r.which!==32?null:(Fh=!0,Jh);case"textInput":return t=r.data,t===Jh&&Fh?null:t;default:return null}}function Dy(t,r){if(Ea)return t==="compositionend"||!Uu&&Wh(t,r)?(t=Qh(),ks=Cu=yi=null,Ea=!1,t):null;switch(t){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;
vendor: 77,818 bytes, line 48
48if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Zh&&r.locale!=="ko"?null:r.data;default:return null}}var Uy={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 t0(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!Uy[t.type]:r==="textarea"}function e0(t,r,i,s){Aa?_a?_a.push(s):_a=[s]:Aa=s,r=Eo(r,"onChange"),0<r.length&&(i=new zs("onChange","change",null,i,s),t.push({event:i,listeners:r}))}var ml=null,gl=null;function zy(t){Up(t,0)}function qs(t){var r=qt(t);if(zh(r))return t}function r0(t,r){if(t==="change")return r}var n0=!1;if(Jn){var zu;if(Jn){var Lu="oninput"in document;if(!Lu){var i0=document.createElement("div");i0.setAttribute("oninput","return;"),Lu=typeof i0.oninput=="function"}zu=Lu}else zu=!1;n0=zu&&(!document.documentMode||9<document.documentMode)}function a0(){ml&&(ml.detachEvent("onpropertychange",l0),gl=ml=null)}function l0(t){if(t.propertyName==="value"&&qs(gl)){var r=[];e0(r,gl,t,Tu(t)),Ph(zy,r)}}function Ly(t,r,i){t==="focusin"?(a0(),ml=r,gl=i,ml.attachEvent("onpropertychange",l0)):t==="focusout"&&a0()}function qy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return qs(gl)}function Hy(t,r){if(t==="click")return qs(r)}function jy(t,r){if(t==="input"||t==="change")return qs(r)}function Iy(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var jr=typeof Object.is=="function"?Object.is:Iy;function vl(t,r){if(jr(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),s=Object.keys(r);if(i.length!==s.length)return!1;for(s=0;s<i.length;s++){var h=i[s];if(!ot.call(r,h)||!jr(t[h],r[h]))return!1}return!0}function s0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function o0(t,r){var i=s0(t);t=0;for(var s;i;){if(i.nodeType===3){if(s=t+i.textContent.length,t<=r&&s>=r)return{node:i,offset:r-t};t=s}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=s0(i)}}function u0(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?u0(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function f0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Os(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Os(t.document)}return r}function qu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var Gy=Jn&&"documentMode"in document&&11>=document.documentMode,Ma=null,Hu=null,yl=null,ju=!1;function c0(t,r,i){var s=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ju||Ma==null||Ma!==Os(s)||(s=Ma,"selectionStart"in s&&qu(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}),yl&&vl(yl,s)||(yl=s,s=Eo(Hu,"onSelect"),0<s.length&&(r=new zs("onSelect","select",null,r,i),t.push({event:r,listeners:s}),r.target=Ma)))}function Ki(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Sa={animationend:Ki("Animation","AnimationEnd"),animationiteration:Ki("Animation","AnimationIteration"),animationstart:Ki("Animation","AnimationStart"),transitionrun:Ki("Transition","TransitionRun"),transitionstart:Ki("Transition","TransitionStart"),transitioncancel:Ki("Transition","TransitionCancel"),transitionend:Ki("Transition","TransitionEnd")},Iu={},h0={};Jn&&(h0=document.createElement("div").style,"AnimationEvent"in window||(delete Sa.animationend.animation,delete Sa.animationiteration.animation,delete Sa.animationstart.animation),"TransitionEvent"in window||delete Sa.transitionend.transition);function Zi(t){if(Iu[t])return Iu[t];if(!Sa[t])return t;var r=Sa[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in h0)return Iu[t]=r[i];return t}var d0=Zi("animationend"),p0=Zi("animationiteration"),m0=Zi("animationstart"),Py=Zi("transitionrun"),Qy=Zi("transitionstart"),Yy=Zi("transitioncancel"),g0=Zi("transitionend"),v0=new Map,Gu="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(" ");Gu.push("scrollEnd");function An(t,r){v0.set(t,r),Ye(r,[t])}var y0=new WeakMap;function sn(t,r){if(typeof t=="object"&&t!==null){var i=y0.get(t);return i!==void 0?i:(r={value:t,source:r,stack:kn(r)},y0.set(t,r),r)}return{value:t,source:r,stack:kn(r)}}var on=[],Ta=0,Pu=0;function Hs(){for(var t=Ta,r=Pu=Ta=0;r<t;){var i=on[r];on[r++]=null;var s=on[r];on[r++]=null;var h=on[r];on[r++]=null;var g=on[r];if(on[r++]=null,s!==null&&h!==null){var T=s.pending;T===null?h.next=h:(h.next=T.next,T.next=h),s.pending=h}g!==0&&b0(i,h,g)}}function js(t,r,i,s){on[Ta++]=t,on[Ta++]=r,on[Ta++]=i,on[Ta++]=s,Pu|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function Qu(t,r,i,s){return js(t,r,i,s),Is(t)}function Na(t,r){return js(t,null,null,r),Is(t)}function b0(t,r,i){t.lanes|=i;var s=t.alternate;s!==null&&(s.lanes|=i);for(var h=!1,g=t.return;g!==null;)g.childLanes|=i,s=g.alternate,s!==null&&(s.childLanes|=i),g.tag===22&&(t=g.stateNode,t===null||t._visibility&1||(h=!0)),t=g,g=g.return;return t.tag===3?(g=t.stateNode,h&&r!==null&&(h=31-Et(i),t=g.hiddenUpdates,s=t[h],s===null?t[h]=[r]:s.push(r),r.lane=i|536870912),g):null}function Is(t){if(50<Pl)throw Pl=0,Ff=null,Error(a(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var Ra={};function Xy(t,r,i,s){this.tag=t,this.key=i,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 Ir(t,r,i,s){return new Xy(t,r,i,s)}function Yu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Fn(t,r){var i=t.alternate;return i===null?(i=Ir(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function w0(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function Gs(t,r,i,s,h,g){var T=0;if(s=t,typeof t=="function")Yu(t)&&(T=1);else if(typeof t=="string")T=K1(t,i,K.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case vt:return t=Ir(31,i,r,h),t.elementType=vt,t.lanes=g,t;case q:return Ji(i.children,h,g,r);case k:T=8,h|=24;break;case z:return t=Ir(12,i,r,h|2),t.elementType=z,t.lanes=g,t;case W:return t=Ir(13,i,r,h),t.elementType=W,t.lanes=g,t;case lt:return t=Ir(19,i,r,h),t.elementType=lt,t.lanes=g,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case L:case I:T=10;break t;case G:T=9;break t;case Q:T=11;break t;case ut:T=14;break t;case ht:T=16,s=null;break t}T=29,i=Error(a(130,t===null?"null":typeof t,"")),s=null}return r=Ir(T,i,r,h),r.elementType=t,r.type=s,r.lanes=g,r}function Ji(t,r,i,s){return t=Ir(7,t,s,r),t.lanes=i,t}function Xu(t,r,i){return t=Ir(6,t,null,r),t.lanes=i,t}function Vu(t,r,i){return r=Ir(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var Ca=[],Oa=0,Ps=null,Qs=0,un=[],fn=0,Fi=null,Wn=1,$n="";function Wi(t,r){Ca[Oa++]=Qs,Ca[Oa++]=Ps,Ps=t,Qs=r}function x0(t,r,i){un[fn++]=Wn,un[fn++]=$n,un[fn++]=Fi,Fi=t;var s=Wn;t=$n;var h=32-Et(s)-1;s&=~(1<<h),i+=1;var g=32-Et(r)+h;if(30<g){var T=h-h%5;g=(s&(1<<T)-1).toString(32),s>>=T,h-=T,Wn=1<<32-Et(r)+h|i<<h|s,$n=g+t}else Wn=1<<g|i<<h|s,$n=t}function Ku(t){t.return!==null&&(Wi(t,1),x0(t,1,0))}function Zu(t){for(;t===Ps;)Ps=Ca[--Oa],Ca[Oa]=null,Qs=Ca[--Oa],Ca[Oa]=null;for(;t===Fi;)Fi=un[--fn],un[fn]=null,$n=un[--fn],un[fn]=null,Wn=un[--fn],un[fn]=null}var Rr=null,qe=null,Ae=!1,$i=null,Dn=!1,Ju=Error(a(519));function ta(t){var r=Error(a(418,""));throw xl(sn(r,t)),Ju}function A0(t){var r=t.stateNode,i=t.type,s=t.memoizedProps;switch(r[At]=t,r[ke]=s,i){case"dialog":me("cancel",r),me("close",r);break;case"iframe":case"object":case"embed":me("load",r);break;case"video":case"audio":for(i=0;i<Yl.length;i++)me(Yl[i],r);break;case"source":me("error",r);break;case"img":case"image":case"link":me("error",r),me("load",r);break;case"details":me("toggle",r);break;case"input":me("invalid",r),Lh(r,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0),Cs(r);break;case"select":me("invalid",r);break;case"textarea":me("invalid",r),Hh(r,s.value,s.defaultValue,s.children),Cs(r)}i=s.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||s.suppressHydrationWarning===!0||Hp(r.textContent,i)?(s.popover!=null&&(me("beforetoggle",r),me("toggle",r)),s.onScroll!=null&&me("scroll",r),s.onScrollEnd!=null&&me("scrollend",r),s.onClick!=null&&(r.onclick=Mo),r=!0):r=!1,r||ta(t)}function _0(t){for(Rr=t.return;Rr;)switch(Rr.tag){case 5:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:Rr=Rr.return}}function bl(t){if(t!==Rr)return!1;if(!Ae)return _0(t),Ae=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||dc(t.type,t.memoizedProps)),i=!i),i&&qe&&ta(t),_0(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(a(317));t:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(r===0){qe=En(t.nextSibling);break t}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}qe=null}}else r===27?(r=qe,Di(t.type)?(t=vc,vc=null,qe=t):qe=r):qe=Rr?En(t.stateNode.nextSibling):null;return!0}function wl(){qe=Rr=null,Ae=!1}function E0(){var t=$i;return t!==null&&(zr===null?zr=t:zr.push.apply(zr,t),$i=null),t}function xl(t){$i===null?$i=[t]:$i.push(t)}var Fu=b(null),ea=null,ti=null;function bi(t,r,i){A(Fu,r._currentValue),r._currentValue=i}function ei(t){t._currentValue=Fu.current,c(Fu)}function Wu(t,r,i){for(;t!==null;){var s=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),t===i)break;t=t.return}}function $u(t,r,i,s){var h=t.child;for(h!==null&&(h.return=t);h!==null;){var g=h.dependencies;if(g!==null){var T=h.child;g=g.firstContext;t:for(;g!==null;){var O=g;g=h;for(var U=0;U<r.length;U++)if(O.context===r[U]){g.lanes|=i,O=g.alternate,O!==null&&(O.lanes|=i),Wu(g.return,i,t),s||(T=null);break t}g=O.next}}else if(h.tag===18){if(T=h.return,T===null)throw Error(a(341));T.lanes|=i,g=T.alternate,g!==null&&(g.lanes|=i),Wu(T,i,t),T=null}else T=h.child;if(T!==null)T.return=h;else for(T=h;T!==null;){if(T===t){T=null;break}if(h=T.sibling,h!==null){h.return=T.return,T=h;break}T=T.return}h=T}}function Al(t,r,i,s){t=null;for(var h=r,g=!1;h!==null;){if(!g){if((h.flags&524288)!==0)g=!0;else if((h.flags&262144)!==0)break}if(h.tag===10){var T=h.alternate;if(T===null)throw Error(a(387));if(T=T.memoizedProps,T!==null){var O=h.type;jr(h.pendingProps.value,T.value)||(t!==null?t.push(O):t=[O])}}else if(h===et.current){if(T=h.alternate,T===null)throw Error(a(387));T.memoizedState.memoizedState!==h.memoizedState.memoizedState&&(t!==null?t.push(Fl):t=[Fl])}h=h.return}t!==null&&$u(r,t,i,s),r.flags|=262144}function Ys(t){for(t=t.firstContext;t!==null;){if(!jr(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ra(t){ea=t,ti=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function wr(t){return M0(ea,t)}function Xs(t,r){return ea===null&&ra(t),M0(t,r)}function M0(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},ti===null){if(t===null)throw Error(a(308));ti=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else ti=ti.next=r;return i}var Vy=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,s){t.push(s)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},Ky=l.unstable_scheduleCallback,Zy=l.unstable_NormalPriority,$e={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tf(){return{controller:new Vy,data:new Map,refCount:0}}function _l(t){t.refCount--,t.refCount===0&&Ky(Zy,function(){t.controller.abort()})}var El=null,ef=0,Ba=0,ka=null;function Jy(t,r){if(El===null){var i=El=[];ef=0,Ba=ic(),ka={status:"pending",value:void 0,then:function(s){i.push(s)}}}return ef++,r.then(S0,S0),r}function S0(){if(--ef===0&&El!==null){ka!==null&&(ka.status="fulfilled");var t=El;El=null,Ba=0,ka=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function Fy(t,r){var i=[],s={status:"pending",value:null,reason:null,then:function(h){i.push(h)}};return t.then(function(){s.status="fulfilled",s.value=r;for(var h=0;h<i.length;h++)(0,i[h])(r)},function(h){for(s.status="rejected",s.reason=h,h=0;h<i.length;h++)(0,i[h])(void 0)}),s}var T0=m.S;m.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&Jy(t,r),T0!==null&&T0(t,r)};var na=b(null);function rf(){var t=na.current;return t!==null?t:Oe.pooledCache}function Vs(t,r){r===null?A(na,na.current):A(na,r.pool)}function N0(){var t=rf();return t===null?null:{parent:$e._currentValue,pool:t}}var Ml=Error(a(460)),R0=Error(a(474)),Ks=Error(a(542)),nf={then:function(){}};function C0(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Zs(){}function O0(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(Zs,Zs),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,k0(t),t;default:if(typeof r.status=="string")r.then(Zs,Zs);else{if(t=Oe,t!==null&&100<t.shellSuspendCounter)throw Error(a(482));t=r,t.status="pending",t.then(function(s){if(r.status==="pending"){var h=r;h.status="fulfilled",h.value=s}},function(s){if(r.status==="pending"){var h=r;h.status="rejected",h.reason=s}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,k0(t),t}throw Sl=r,Ml}}var Sl=null;function B0(){if(Sl===null)throw Error(a(459));var t=Sl;return Sl=null,t}function k0(t){if(t===Ml||t===Ks)throw Error(a(483))}var wi=!1;function af(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function lf(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function xi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Ai(t,r,i){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ee&2)!==0){var h=s.pending;return h===null?r.next=r:(r.next=h.next,h.next=r),s.pending=r,r=Is(t),b0(t,null,i),r}return js(t,s,r,i),Is(t)}function Tl(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var s=r.lanes;s&=t.pendingLanes,i|=s,r.lanes=i,Ft(t,i)}}function sf(t,r){var i=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,i===s)){var h=null,g=null;if(i=i.firstBaseUpdate,i!==null){do{var T={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};g===null?h=g=T:g=g.next=T,i=i.next}while(i!==null);g===null?h=g=r:g=g.next=r}else h=g=r;i={baseState:s.baseState,firstBaseUpdate:h,lastBaseUpdate:g,shared:s.shared,callbacks:s.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var of=!1;function Nl(){if(of){var t=ka;if(t!==null)throw t}}function Rl(t,r,i,s){of=!1;var h=t.updateQueue;wi=!1;var g=h.firstBaseUpdate,T=h.lastBaseUpdate,O=h.shared.pending;if(O!==null){h.shared.pending=null;var U=O,Z=U.next;U.next=null,T===null?g=Z:T.next=Z,T=U;var nt=t.alternate;nt!==null&&(nt=nt.updateQueue,O=nt.lastBaseUpdate,O!==T&&(O===null?nt.firstBaseUpdate=Z:O.next=Z,nt.lastBaseUpdate=U))}if(g!==null){var st=h.baseState;T=0,nt=Z=U=null,O=g;do{var $=O.lane&-536870913,tt=$!==O.lane;if(tt?(ye&$)===$:(s&$)===$){$!==0&&$===Ba&&(of=!0),nt!==null&&(nt=nt.next={lane:0,tag:O.tag,payload:O.payload,callback:null,next:null});t:{var ie=t,Gt=O;$=r;var Ne=i;switch(Gt.tag){case 1:if(ie=Gt.payload,typeof ie=="function"){st=ie.call(Ne,st,$);break t}st=ie;break t;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=Gt.payload,$=typeof ie=="function"?ie.call(Ne,st,$):ie,$==null)break t;st=N({},st,$);break t;case 2:wi=!0}}$=O.callback,$!==null&&(t.flags|=64,tt&&(t.flags|=8192),tt=h.callbacks,tt===null?h.callbacks=[$]:tt.push($))}else tt={lane:$,tag:O.tag,payload:O.payload,callback:O.callback,next:null},nt===null?(Z=nt=tt,U=st):nt=nt.next=tt,T|=$;if(O=O.next,O===null){if(O=h.shared.pending,O===null)break;tt=O,O=tt.next,tt.next=null,h.lastBaseUpdate=tt,h.shared.pending=null}}while(!0);nt===null&&(U=st),h.baseState=U,h.firstBaseUpdate=Z,h.lastBaseUpdate=nt,g===null&&(h.shared.lanes=0),Ci|=T,t.lanes=T,t.memoizedState=st}}function D0(t,r){if(typeof t!="function")throw Error(a(191,t));t.call(r)}function U0(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)D0(i[t],r)}var Da=b(null),Js=b(0);function z0(t,r){t=oi,A(Js,t),A(Da,r),oi=t|r.baseLanes}function uf(){A(Js,oi),A(Da,Da.current)}function ff(){oi=Js.current,c(Da),c(Js)}var _i=0,fe=null,Se=null,Xe=null,Fs=!1,Ua=!1,ia=!1,Ws=0,Cl=0,za=null,Wy=0;function Ge(){throw Error(a(321))}function cf(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!jr(t[i],r[i]))return!1;return!0}function hf(t,r,i,s,h,g){return _i=g,fe=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,m.H=t===null||t.memoizedState===null?bd:wd,ia=!1,g=i(s,h),ia=!1,Ua&&(g=q0(r,i,s,h)),L0(t),g}function L0(t){m.H=io;var r=Se!==null&&Se.next!==null;if(_i=0,Xe=Se=fe=null,Fs=!1,Cl=0,za=null,r)throw Error(a(300));t===null||ir||(t=t.dependencies,t!==null&&Ys(t)&&(ir=!0))}function q0(t,r,i,s){fe=t;var h=0;do{if(Ua&&(za=null),Cl=0,Ua=!1,25<=h)throw Error(a(301));if(h+=1,Xe=Se=null,t.updateQueue!=null){var g=t.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}m.H=a1,g=r(i,s)}while(Ua);return g}function $y(){var t=m.H,r=t.useState()[0];return r=typeof r.then=="function"?Ol(r):r,t=t.useState()[0],(Se!==null?Se.memoizedState:null)!==t&&(fe.flags|=1024),r}function df(){var t=Ws!==0;return Ws=0,t}function pf(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function mf(t){if(Fs){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}Fs=!1}_i=0,Xe=Se=fe=null,Ua=!1,Cl=Ws=0,za=null}function Dr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Xe===null?fe.memoizedState=Xe=t:Xe=Xe.next=t,Xe}function Ve(){if(Se===null){var t=fe.alternate;t=t!==null?t.memoizedState:null}else t=Se.next;var r=Xe===null?fe.memoizedState:Xe.next;if(r!==null)Xe=r,Se=t;else{if(t===null)throw fe.alternate===null?Error(a(467)):Error(a(310));Se=t,t={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Xe===null?fe.memoizedState=Xe=t:Xe=Xe.next=t}return Xe}function gf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ol(t){var r=Cl;return Cl+=1,za===null&&(za=[]),t=O0(za,t,r),r=fe,(Xe===null?r.memoizedState:Xe.next)===null&&(r=r.alternate,m.H=r===null||r.memoizedState===null?bd:wd),t}function $s(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ol(t);if(t.$$typeof===I)return wr(t)}throw Error(a(438,String(t)))}function vf(t){var r=null,i=fe.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var s=fe.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(r={data:s.data.map(function(h){return h.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=gf(),fe.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),s=0;s<t;s++)i[s]=ae;return r.index++,i}function ri(t,r){return typeof r=="function"?r(t):r}function to(t){var r=Ve();return yf(r,Se,t)}function yf(t,r,i){var s=t.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=i;var h=t.baseQueue,g=s.pending;if(g!==null){if(h!==null){var T=h.next;h.next=g.next,g.next=T}r.baseQueue=h=g,s.pending=null}if(g=t.baseState,h===null)t.memoizedState=g;else{r=h.next;var O=T=null,U=null,Z=r,nt=!1;do{var st=Z.lane&-536870913;if(st!==Z.lane?(ye&st)===st:(_i&st)===st){var $=Z.revertLane;if($===0)U!==null&&(U=U.next={lane:0,revertLane:0,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),st===Ba&&(nt=!0);else if((_i&$)===$){Z=Z.next,$===Ba&&(nt=!0);continue}else st={lane:0,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(O=U=st,T=g):U=U.next=st,fe.lanes|=$,Ci|=$;st=Z.action,ia&&i(g,st),g=Z.hasEagerState?Z.eagerState:i(g,st)}else $={lane:st,revertLane:Z.revertLane,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(O=U=$,T=g):U=U.next=$,fe.lanes|=st,Ci|=st;Z=Z.next}while(Z!==null&&Z!==r);if(U===null?T=g:U.next=O,!jr(g,t.memoizedState)&&(ir=!0,nt&&(i=ka,i!==null)))throw i;t.memoizedState=g,t.baseState=T,t.baseQueue=U,s.lastRenderedState=g}return h===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function bf(t){var r=Ve(),i=r.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=t;var s=i.dispatch,h=i.pending,g=r.memoizedState;if(h!==null){i.pending=null;var T=h=h.next;do g=t(g,T.action),T=T.next;while(T!==h);jr(g,r.memoizedState)||(ir=!0),r.memoizedState=g,r.baseQueue===null&&(r.baseState=g),i.lastRenderedState=g}return[g,s]}function H0(t,r,i){var s=fe,h=Ve(),g=Ae;if(g){if(i===void 0)throw Error(a(407));i=i()}else i=r();var T=!jr((Se||h).memoizedState,i);T&&(h.memoizedState=i,ir=!0),h=h.queue;var O=G0.bind(null,s,h,t);if(Bl(2048,8,O,[t]),h.getSnapshot!==r||T||Xe!==null&&Xe.memoizedState.tag&1){if(s.flags|=2048,La(9,eo(),I0.bind(null,s,h,i,r),null),Oe===null)throw Error(a(349));g||(_i&124)!==0||j0(s,r,i)}return i}function j0(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=fe.updateQueue,r===null?(r=gf(),fe.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function I0(t,r,i,s){r.value=i,r.getSnapshot=s,P0(r)&&Q0(t)}function G0(t,r,i){return i(function(){P0(r)&&Q0(t)})}function P0(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!jr(t,i)}catch{return!0}}function Q0(t){var r=Na(t,2);r!==null&&Xr(r,t,2)}function wf(t){var r=Dr();if(typeof t=="function"){var i=t;if(t=i(),ia){Fe(!0);try{i()}finally{Fe(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:t},r}function Y0(t,r,i,s){return t.baseState=i,yf(t,Se,typeof s=="function"?s:ri)}function t1(t,r,i,s,h){if(no(t))throw Error(a(485));if(t=r.action,t!==null){var g={payload:h,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){g.listeners.push(T)}};m.T!==null?i(!0):g.isTransition=!1,s(g),i=r.pending,i===null?(g.next=r.pending=g,X0(r,g)):(g.next=i.next,r.pending=i.next=g)}}function X0(t,r){var i=r.action,s=r.payload,h=t.state;if(r.isTransition){var g=m.T,T={};m.T=T;try{var O=i(h,s),U=m.S;U!==null&&U(T,O),V0(t,r,O)}catch(Z){xf(t,r,Z)}finally{m.T=g}}else try{g=i(h,s),V0(t,r,g)}catch(Z){xf(t,r,Z)}}function V0(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(s){K0(t,r,s)},function(s){return xf(t,r,s)}):K0(t,r,i)}function K0(t,r,i){r.status="fulfilled",r.value=i,Z0(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,X0(t,i)))}function xf(t,r,i){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do r.status="rejected",r.reason=i,Z0(r),r=r.next;while(r!==s)}t.action=null}function Z0(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function J0(t,r){return r}function F0(t,r){if(Ae){var i=Oe.formState;if(i!==null){t:{var s=fe;if(Ae){if(qe){e:{for(var h=qe,g=Dn;h.nodeType!==8;){if(!g){h=null;break e}if(h=En(h.nextSibling),h===null){h=null;break e}}g=h.data,h=g==="F!"||g==="F"?h:null}if(h){qe=En(h.nextSibling),s=h.data==="F!";break t}}ta(s)}s=!1}s&&(r=i[0])}}return i=Dr(),i.memoizedState=i.baseState=r,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:J0,lastRenderedState:r},i.queue=s,i=gd.bind(null,fe,s),s.dispatch=i,s=wf(!1),g=Sf.bind(null,fe,!1,s.queue),s=Dr(),h={state:r,dispatch:null,action:t,pending:null},s.queue=h,i=t1.bind(null,fe,h,g,i),h.dispatch=i,s.memoizedState=t,[r,i,!1]}function W0(t){var r=Ve();return $0(r,Se,t)}function $0(t,r,i){if(r=yf(t,r,J0)[0],t=to(ri)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var s=Ol(r)}catch(T){throw T===Ml?Ks:T}else s=r;r=Ve();var h=r.queue,g=h.dispatch;return i!==r.memoizedState&&(fe.flags|=2048,La(9,eo(),e1.bind(null,h,i),null)),[s,g,t]}function e1(t,r){t.action=r}function td(t){var r=Ve(),i=Se;if(i!==null)return $0(r,i,t);Ve(),r=r.memoizedState,i=Ve();var s=i.queue.dispatch;return i.memoizedState=t,[r,s,!1]}function La(t,r,i,s){return t={tag:t,create:i,deps:s,inst:r,next:null},r=fe.updateQueue,r===null&&(r=gf(),fe.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(s=i.next,i.next=t,t.next=s,r.lastEffect=t),t}function eo(){return{destroy:void 0,resource:void 0}}function ed(){return Ve().memoizedState}function ro(t,r,i,s){var h=Dr();s=s===void 0?null:s,fe.flags|=t,h.memoizedState=La(1|r,eo(),i,s)}function Bl(t,r,i,s){var h=Ve();s=s===void 0?null:s;var g=h.memoizedState.inst;Se!==null&&s!==null&&cf(s,Se.memoizedState.deps)?h.memoizedState=La(r,g,i,s):(fe.flags|=t,h.memoizedState=La(1|r,g,i,s))}function rd(t,r){ro(8390656,8,t,r)}function nd(t,r){Bl(2048,8,t,r)}function id(t,r){return Bl(4,2,t,r)}function ad(t,r){return Bl(4,4,t,r)}function ld(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function sd(t,r,i){i=i!=null?i.concat([t]):null,Bl(4,4,ld.bind(null,r,t),i)}function Af(){}function od(t,r){var i=Ve();r=r===void 0?null:r;var s=i.memoizedState;return r!==null&&cf(r,s[1])?s[0]:(i.memoizedState=[t,r],t)}function ud(t,r){var i=Ve();r=r===void 0?null:r;var s=i.memoizedState;if(r!==null&&cf(r,s[1]))return s[0];if(s=t(),ia){Fe(!0);try{t()}finally{Fe(!1)}}return i.memoizedState=[s,r],s}function _f(t,r,i){return i===void 0||(_i&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=hp(),fe.lanes|=t,Ci|=t,i)}function fd(t,r,i,s){return jr(i,r)?i:Da.current!==null?(t=_f(t,i,s),jr(t,r)||(ir=!0),t):(_i&42)===0?(ir=!0,t.memoizedState=i):(t=hp(),fe.lanes|=t,Ci|=t,r)}function cd(t,r,i,s,h){var g=v.p;v.p=g!==0&&8>g?g:8;var T=m.T,O={};m.T=O,Sf(t,!1,r,i);try{var U=h(),Z=m.S;if(Z!==null&&Z(O,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var nt=Fy(U,s);kl(t,r,nt,Yr(t))}else kl(t,r,s,Yr(t))}catch(st){kl(t,r,{then:function(){},status:"rejected",reason:st},Yr())}finally{v.p=g,m.T=T}}function r1(){}function Ef(t,r,i,s){if(t.tag!==5)throw Error(a(476));var h=hd(t).queue;cd(t,h,r,x,i===null?r1:function(){return dd(t),i(s)})}function hd(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:x,baseState:x,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:x},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ri,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function dd(t){var r=hd(t).next.queue;kl(t,r,{},Yr())}function Mf(){return wr(Fl)}function pd(){return Ve().memoizedState}function md(){return Ve().memoizedState}function n1(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=Yr();t=xi(i);var s=Ai(r,t,i);s!==null&&(Xr(s,r,i),Tl(s,r,i)),r={cache:tf()},t.payload=r;return}r=r.return}}function i1(t,r,i){var s=Yr();i={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},no(t)?vd(r,i):(i=Qu(t,r,i,s),i!==null&&(Xr(i,t,s),yd(i,r,s)))}function gd(t,r,i){var s=Yr();kl(t,r,i,s)}function kl(t,r,i,s){var h={lane:s,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(no(t))vd(r,h);else{var g=t.alternate;if(t.lanes===0&&(g===null||g.lanes===0)&&(g=r.lastRenderedReducer,g!==null))try{var T=r.lastRenderedState,O=g(T,i);if(h.hasEagerState=!0,h.eagerState=O,jr(O,T))return js(t,r,h,0),Oe===null&&Hs(),!1}catch{}finally{}if(i=Qu(t,r,h,s),i!==null)return Xr(i,t,s),yd(i,r,s),!0}return!1}function Sf(t,r,i,s){if(s={lane:2,revertLane:ic(),action:s,hasEagerState:!1,eagerState:null,next:null},no(t)){if(r)throw Error(a(479))}else r=Qu(t,i,s,2),r!==null&&Xr(r,t,2)}function no(t){var r=t.alternate;return t===fe||r!==null&&r===fe}function vd(t,r){Ua=Fs=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function yd(t,r,i){if((i&4194048)!==0){var s=r.lanes;s&=t.pendingLanes,i|=s,r.lanes=i,Ft(t,i)}}var io={readContext:wr,use:$s,useCallback:Ge,useContext:Ge,useEffect:Ge,useImperativeHandle:Ge,useLayoutEffect:Ge,useInsertionEffect:Ge,useMemo:Ge,useReducer:Ge,useRef:Ge,useState:Ge,useDebugValue:Ge,useDeferredValue:Ge,useTransition:Ge,useSyncExternalStore:Ge,useId:Ge,useHostTransitionStatus:Ge,useFormState:Ge,useActionState:Ge,useOptimistic:Ge,useMemoCache:Ge,useCacheRefresh:Ge},bd={readContext:wr,use:$s,useCallback:function(t,r){return Dr().memoizedState=[t,r===void 0?null:r],t},useContext:wr,useEffect:rd,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,ro(4194308,4,ld.bind(null,r,t),i)},useLayoutEffect:function(t,r){return ro(4194308,4,t,r)},useInsertionEffect:function(t,r){ro(4,2,t,r)},useMemo:function(t,r){var i=Dr();r=r===void 0?null:r;var s=t();if(ia){Fe(!0);try{t()}finally{Fe(!1)}}return i.memoizedState=[s,r],s},useReducer:function(t,r,i){var s=Dr();if(i!==void 0){var h=i(r);if(ia){Fe(!0);try{i(r)}finally{Fe(!1)}}}else h=r;return s.memoizedState=s.baseState=h,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:h},s.queue=t,t=t.dispatch=i1.bind(null,fe,t),[s.memoizedState,t]},useRef:function(t){var r=Dr();return t={current:t},r.memoizedState=t},useState:function(t){t=wf(t);var r=t.queue,i=gd.bind(null,fe,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:Af,useDeferredValue:function(t,r){var i=Dr();return _f(i,t,r)},useTransition:function(){var t=wf(!1);return t=cd.bind(null,fe,t.queue,!0,!1),Dr().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var s=fe,h=Dr();if(Ae){if(i===void 0)throw Error(a(407));i=i()}else{if(i=r(),Oe===null)throw Error(a(349));(ye&124)!==0||j0(s,r,i)}h.memoizedState=i;var g={value:i,getSnapshot:r};return h.queue=g,rd(G0.bind(null,s,g,t),[t]),s.flags|=2048,La(9,eo(),I0.bind(null,s,g,i,r),null),i},useId:function(){var t=Dr(),r=Oe.identifierPrefix;if(Ae){var i=$n,s=Wn;i=(s&~(1<<32-Et(s)-1)).toString(32)+i,r="«"+r+"R"+i,i=Ws++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=Wy++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:Mf,useFormState:F0,useActionState:F0,useOptimistic:function(t){var r=Dr();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Sf.bind(null,fe,!0,i),i.dispatch=r,[t,r]},useMemoCache:vf,useCacheRefresh:function(){return Dr().memoizedState=n1.bind(null,fe)}},wd={readContext:wr,use:$s,useCallback:od,useContext:wr,useEffect:nd,useImperativeHandle:sd,useInsertionEffect:id,useLayoutEffect:ad,useMemo:ud,useReducer:to,useRef:ed,useState:function(){return to(ri)},useDebugValue:Af,useDeferredValue:function(t,r){var i=Ve();return fd(i,Se.memoizedState,t,r)},useTransition:function(){var t=to(ri)[0],r=Ve().memoizedState;return[typeof t=="boolean"?t:Ol(t),r]},useSyncExternalStore:H0,useId:pd,useHostTransitionStatus:Mf,useFormState:W0,useActionState:W0,useOptimistic:function(t,r){var i=Ve();return Y0(i,Se,t,r)},useMemoCache:vf,useCacheRefresh:md},a1={readContext:wr,use:$s,useCallback:od,useContext:wr,useEffect:nd,useImperativeHandle:sd,useInsertionEffect:id,useLayoutEffect:ad,useMemo:ud,useReducer:bf,useRef:ed,useState:function(){return bf(ri)},useDebugValue:Af,useDeferredValue:function(t,r){var i=Ve();return Se===null?_f(i,t,r):fd(i,Se.memoizedState,t,r)},useTransition:function(){var t=bf(ri)[0],r=Ve().memoizedState;return[typeof t=="boolean"?t:Ol(t),r]},useSyncExternalStore:H0,useId:pd,useHostTransitionStatus:Mf,useFormState:td,useActionState:td,useOptimistic:function(t,r){var i=Ve();return Se!==null?Y0(i,Se,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:vf,useCacheRefresh:md},qa=null,Dl=0;function ao(t){var r=Dl;return Dl+=1,qa===null&&(qa=[]),O0(qa,t,r)}function Ul(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function lo(t,r){throw r.$$typeof===C?Error(a(525)):(t=Object.prototype.toString.call(r),Error(a(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function xd(t){var r=t._init;return r(t._payload)}function Ad(t){function r(P,j){if(t){var X=P.deletions;X===null?(P.deletions=[j],P.flags|=16):X.push(j)}}function i(P,j){if(!t)return null;for(;j!==null;)r(P,j),j=j.sibling;return null}function s(P){for(var j=new Map;P!==null;)P.key!==null?j.set(P.key,P):j.set(P.index,P),P=P.sibling;return j}function h(P,j){return P=Fn(P,j),P.index=0,P.sibling=null,P}function g(P,j,X){return P.index=X,t?(X=P.alternate,X!==null?(X=X.index,X<j?(P.flags|=67108866,j):X):(P.flags|=67108866,j)):(P.flags|=1048576,j)}function T(P){return t&&P.alternate===null&&(P.flags|=67108866),P}function O(P,j,X,it){return j===null||j.tag!==6?(j=Xu(X,P.mode,it),j.return=P,j):(j=h(j,X),j.return=P,j)}function U(P,j,X,it){var bt=X.type;return bt===q?nt(P,j,X.props.children,it,X.key):j!==null&&(j.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===ht&&xd(bt)===j.type)?(j=h(j,X.props),Ul(j,X),j.return=P,j):(j=Gs(X.type,X.key,X.props,null,P.mode,it),Ul(j,X),j.return=P,j)}function Z(P,j,X,it){return j===null||j.tag!==4||j.stateNode.containerInfo!==X.containerInfo||j.stateNode.implementation!==X.implementation?(j=Vu(X,P.mode,it),j.return=P,j):(j=h(j,X.children||[]),j.return=P,j)}function nt(P,j,X,it,bt){return j===null||j.tag!==7?(j=Ji(X,P.mode,it,bt),j.return=P,j):(j=h(j,X),j.return=P,j)}function st(P,j,X){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Xu(""+j,P.mode,X),j.return=P,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case B:return X=Gs(j.type,j.key,j.props,null,P.mode,X),Ul(X,j),X.return=P,X;case H:return j=Vu(j,P.mode,X),j.return=P,j;case ht:var it=j._init;return j=it(j._payload),st(P,j,X)}if(d(j)||V(j))return j=Ji(j,P.mode,X,null),j.return=P,j;if(typeof j.then=="function")return st(P,ao(j),X);if(j.$$typeof===I)return st(P,Xs(P,j),X);lo(P,j)}return null}function $(P,j,X,it){var bt=j!==null?j.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return bt!==null?null:O(P,j,""+X,it);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case B:return X.key===bt?U(P,j,X,it):null;case H:return X.key===bt?Z(P,j,X,it):null;case ht:return bt=X._init,X=bt(X._payload),$(P,j,X,it)}if(d(X)||V(X))return bt!==null?null:nt(P,j,X,it,null);if(typeof X.then=="function")return $(P,j,ao(X),it);if(X.$$typeof===I)return $(P,j,Xs(P,X),it);lo(P,X)}return null}function tt(P,j,X,it,bt){if(typeof it=="string"&&it!==""||typeof it=="number"||typeof it=="bigint")return P=P.get(X)||null,O(j,P,""+it,bt);if(typeof it=="object"&&it!==null){switch(it.$$typeof){case B:return P=P.get(it.key===null?X:it.key)||null,U(j,P,it,bt);case H:return P=P.get(it.key===null?X:it.key)||null,Z(j,P,it,bt);case ht:var ce=it._init;return it=ce(it._payload),tt(P,j,X,it,bt)}if(d(it)||V(it))return P=P.get(X)||null,nt(j,P,it,bt,null);if(typeof it.then=="function")return tt(P,j,X,ao(it),bt);if(it.$$typeof===I)return tt(P,j,X,Xs(j,it),bt);lo(j,it)}return null}function ie(P,j,X,it){for(var bt=null,ce=null,Mt=j,Vt=j=0,lr=null;Mt!==null&&Vt<X.length;Vt++){Mt.index>Vt?(lr=Mt,Mt=null):lr=Mt.sibling;var be=$(P,Mt,X[Vt],it);if(be===null){Mt===null&&(Mt=lr);break}t&&Mt&&be.alternate===null&&r(P,Mt),j=g(be,j,Vt),ce===null?bt=be:ce.sibling=be,ce=be,Mt=lr}if(Vt===X.length)return i(P,Mt),Ae&&Wi(P,Vt),bt;if(Mt===null){for(;Vt<X.length;Vt++)Mt=st(P,X[Vt],it),Mt!==null&&(j=g(Mt,j,Vt),ce===null?bt=Mt:ce.sibling=Mt,ce=Mt);return Ae&&Wi(P,Vt),bt}for(Mt=s(Mt);Vt<X.length;Vt++)lr=tt(Mt,P,Vt,X[Vt],it),lr!==null&&(t&&lr.alternate!==null&&Mt.delete(lr.key===null?Vt:lr.key),j=g(lr,j,Vt),ce===null?bt=lr:ce.sibling=lr,ce=lr);return t&&Mt.forEach(function(Hi){return r(P,Hi)}),Ae&&Wi(P,Vt),bt}function Gt(P,j,X,it){if(X==null)throw Error(a(151));for(var bt=null,ce=null,Mt=j,Vt=j=0,lr=null,be=X.next();Mt!==null&&!be.done;Vt++,be=X.next()){Mt.index>Vt?(lr=Mt,Mt=null):lr=Mt.sibling;var Hi=$(P,Mt,be.value,it);if(Hi===null){Mt===null&&(Mt=lr);break}t&&Mt&&Hi.alternate===null&&r(P,Mt),j=g(Hi,j,Vt),ce===null?bt=Hi:ce.sibling=Hi,ce=Hi,Mt=lr}if(be.done)return i(P,Mt),Ae&&Wi(P,Vt),bt;if(Mt===null){for(;!be.done;Vt++,be=X.next())be=st(P,be.value,it),be!==null&&(j=g(be,j,Vt),ce===null?bt=be:ce.sibling=be,ce=be);return Ae&&Wi(P,Vt),bt}for(Mt=s(Mt);!be.done;Vt++,be=X.next())be=tt(Mt,P,Vt,be.value,it),be!==null&&(t&&be.alternate!==null&&Mt.delete(be.key===null?Vt:be.key),j=g(be,j,Vt),ce===null?bt=be:ce.sibling=be,ce=be);return t&&Mt.forEach(function(lb){return r(P,lb)}),Ae&&Wi(P,Vt),bt}function Ne(P,j,X,it){if(typeof X=="object"&&X!==null&&X.type===q&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case B:t:{for(var bt=X.key;j!==null;){if(j.key===bt){if(bt=X.type,bt===q){if(j.tag===7){i(P,j.sibling),it=h(j,X.props.children),it.return=P,P=it;break t}}else if(j.elementType===bt||typeof bt=="object"&&bt!==null&&bt.$$typeof===ht&&xd(bt)===j.type){i(P,j.sibling),it=h(j,X.props),Ul(it,X),it.return=P,P=it;break t}i(P,j);break}else r(P,j);j=j.sibling}X.type===q?(it=Ji(X.props.children,P.mode,it,X.key),it.return=P,P=it):(it=Gs(X.type,X.key,X.props,null,P.mode,it),Ul(it,X),it.return=P,P=it)}return T(P);case H:t:{for(bt=X.key;j!==null;){if(j.key===bt)if(j.tag===4&&j.stateNode.containerInfo===X.containerInfo&&j.stateNode.implementation===X.implementation){i(P,j.sibling),it=h(j,X.children||[]),it.return=P,P=it;break t}else{i(P,j);break}else r(P,j);j=j.sibling}it=Vu(X,P.mode,it),it.return=P,P=it}return T(P);case ht:return bt=X._init,X=bt(X._payload),Ne(P,j,X,it)}if(d(X))return ie(P,j,X,it);if(V(X)){if(bt=V(X),typeof bt!="function")throw Error(a(150));return X=bt.call(X),Gt(P,j,X,it)}if(typeof X.then=="function")return Ne(P,j,ao(X),it);if(X.$$typeof===I)return Ne(P,j,Xs(P,X),it);lo(P,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,j!==null&&j.tag===6?(i(P,j.sibling),it=h(j,X),it.return=P,P=it):(i(P,j),it=Xu(X,P.mode,it),it.return=P,P=it),T(P)):i(P,j)}return function(P,j,X,it){try{Dl=0;var bt=Ne(P,j,X,it);return qa=null,bt}catch(Mt){if(Mt===Ml||Mt===Ks)throw Mt;var ce=Ir(29,Mt,null,P.mode);return ce.lanes=it,ce.return=P,ce}finally{}}}var Ha=Ad(!0),_d=Ad(!1),cn=b(null),Un=null;function Ei(t){var r=t.alternate;A(tr,tr.current&1),A(cn,t),Un===null&&(r===null||Da.current!==null||r.memoizedState!==null)&&(Un=t)}function Ed(t){if(t.tag===22){if(A(tr,tr.current),A(cn,t),Un===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Un=t)}}else Mi()}function Mi(){A(tr,tr.current),A(cn,cn.current)}function ni(t){c(cn),Un===t&&(Un=null),c(tr)}var tr=b(0);function so(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||gc(i)))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===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Tf(t,r,i,s){r=t.memoizedState,i=i(s,r),i=i==null?r:N({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Nf={enqueueSetState:function(t,r,i){t=t._reactInternals;var s=Yr(),h=xi(s);h.payload=r,i!=null&&(h.callback=i),r=Ai(t,h,s),r!==null&&(Xr(r,t,s),Tl(r,t,s))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var s=Yr(),h=xi(s);h.tag=1,h.payload=r,i!=null&&(h.callback=i),r=Ai(t,h,s),r!==null&&(Xr(r,t,s),Tl(r,t,s))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=Yr(),s=xi(i);s.tag=2,r!=null&&(s.callback=r),r=Ai(t,s,i),r!==null&&(Xr(r,t,i),Tl(r,t,i))}};function Md(t,r,i,s,h,g,T){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,g,T):r.prototype&&r.prototype.isPureReactComponent?!vl(i,s)||!vl(h,g):!0}function Sd(t,r,i,s){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,s),r.state!==t&&Nf.enqueueReplaceState(r,r.state,null)}function aa(t,r){var i=r;if("ref"in r){i={};for(var s in r)s!=="ref"&&(i[s]=r[s])}if(t=t.defaultProps){i===r&&(i=N({},i));for(var h in t)i[h]===void 0&&(i[h]=t[h])}return i}var oo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Td(t){oo(t)}function Nd(t){console.error(t)}function Rd(t){oo(t)}function uo(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(s){setTimeout(function(){throw s})}}function Cd(t,r,i){try{var s=t.onCaughtError;s(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(h){setTimeout(function(){throw h})}}function Rf(t,r,i){return i=xi(i),i.tag=3,i.payload={element:null},i.callback=function(){uo(t,r)},i}function Od(t){return t=xi(t),t.tag=3,t}function Bd(t,r,i,s){var h=i.type.getDerivedStateFromError;if(typeof h=="function"){var g=s.value;t.payload=function(){return h(g)},t.callback=function(){Cd(r,i,s)}}var T=i.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(t.callback=function(){Cd(r,i,s),typeof h!="function"&&(Oi===null?Oi=new Set([this]):Oi.add(this));var O=s.stack;this.componentDidCatch(s.value,{componentStack:O!==null?O:""})})}function l1(t,r,i,s,h){if(i.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(r=i.alternate,r!==null&&Al(r,i,h,!0),i=cn.current,i!==null){switch(i.tag){case 13:return Un===null?$f():i.alternate===null&&He===0&&(He=3),i.flags&=-257,i.flags|=65536,i.lanes=h,s===nf?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([s]):r.add(s),ec(t,s,h)),!1;case 22:return i.flags|=65536,s===nf?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([s])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([s]):i.add(s)),ec(t,s,h)),!1}throw Error(a(435,i.tag))}return ec(t,s,h),$f(),!1}if(Ae)return r=cn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=h,s!==Ju&&(t=Error(a(422),{cause:s}),xl(sn(t,i)))):(s!==Ju&&(r=Error(a(423),{cause:s}),xl(sn(r,i))),t=t.current.alternate,t.flags|=65536,h&=-h,t.lanes|=h,s=sn(s,i),h=Rf(t.stateNode,s,h),sf(t,h),He!==4&&(He=2)),!1;var g=Error(a(520),{cause:s});if(g=sn(g,i),Gl===null?Gl=[g]:Gl.push(g),He!==4&&(He=2),r===null)return!0;s=sn(s,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=h&-h,i.lanes|=t,t=Rf(i.stateNode,s,t),sf(i,t),!1;case 1:if(r=i.type,g=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Oi===null||!Oi.has(g))))return i.flags|=65536,h&=-h,i.lanes|=h,h=Od(h),Bd(h,t,i,s),sf(i,h),!1}i=i.return}while(i!==null);return!1}var kd=Error(a(461)),ir=!1;function hr(t,r,i,s){r.child=t===null?_d(r,null,i,s):Ha(r,t.child,i,s)}function Dd(t,r,i,s,h){i=i.render;var g=r.ref;if("ref"in s){var T={};for(var O in s)O!=="ref"&&(T[O]=s[O])}else T=s;return ra(r),s=hf(t,r,i,T,g,h),O=df(),t!==null&&!ir?(pf(t,r,h),ii(t,r,h)):(Ae&&O&&Ku(r),r.flags|=1,hr(t,r,s,h),r.child)}function Ud(t,r,i,s,h){if(t===null){var g=i.type;return typeof g=="function"&&!Yu(g)&&g.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=g,zd(t,r,g,s,h)):(t=Gs(i.type,null,s,r,r.mode,h),t.ref=r.ref,t.return=r,r.child=t)}if(g=t.child,!Lf(t,h)){var T=g.memoizedProps;if(i=i.compare,i=i!==null?i:vl,i(T,s)&&t.ref===r.ref)return ii(t,r,h)}return r.flags|=1,t=Fn(g,s),t.ref=r.ref,t.return=r,r.child=t}function zd(t,r,i,s,h){if(t!==null){var g=t.memoizedProps;if(vl(g,s)&&t.ref===r.ref)if(ir=!1,r.pendingProps=s=g,Lf(t,h))(t.flags&131072)!==0&&(ir=!0);else return r.lanes=t.lanes,ii(t,r,h)}return Cf(t,r,i,s,h)}function Ld(t,r,i){var s=r.pendingProps,h=s.children,g=t!==null?t.memoizedState:null;if(s.mode==="hidden"){if((r.flags&128)!==0){if(s=g!==null?g.baseLanes|i:i,t!==null){for(h=r.child=t.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;r.childLanes=g&~s}else r.childLanes=0,r.child=null;return qd(t,r,s,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vs(r,g!==null?g.cachePool:null),g!==null?z0(r,g):uf(),Ed(r);else return r.lanes=r.childLanes=536870912,qd(t,r,g!==null?g.baseLanes|i:i,i)}else g!==null?(Vs(r,g.cachePool),z0(r,g),Mi(),r.memoizedState=null):(t!==null&&Vs(r,null),uf(),Mi());return hr(t,r,h,i),r.child}function qd(t,r,i,s){var h=rf();return h=h===null?null:{parent:$e._currentValue,pool:h},r.memoizedState={baseLanes:i,cachePool:h},t!==null&&Vs(r,null),uf(),Ed(r),t!==null&&Al(t,r,s,!0),null}function fo(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function Cf(t,r,i,s,h){return ra(r),i=hf(t,r,i,s,void 0,h),s=df(),t!==null&&!ir?(pf(t,r,h),ii(t,r,h)):(Ae&&s&&Ku(r),r.flags|=1,hr(t,r,i,h),r.child)}function Hd(t,r,i,s,h,g){return ra(r),r.updateQueue=null,i=q0(r,s,i,h),L0(t),s=df(),t!==null&&!ir?(pf(t,r,g),ii(t,r,g)):(Ae&&s&&Ku(r),r.flags|=1,hr(t,r,i,g),r.child)}function jd(t,r,i,s,h){if(ra(r),r.stateNode===null){var g=Ra,T=i.contextType;typeof T=="object"&&T!==null&&(g=wr(T)),g=new i(s,g),r.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Nf,r.stateNode=g,g._reactInternals=r,g=r.stateNode,g.props=s,g.state=r.memoizedState,g.refs={},af(r),T=i.contextType,g.context=typeof T=="object"&&T!==null?wr(T):Ra,g.state=r.memoizedState,T=i.getDerivedStateFromProps,typeof T=="function"&&(Tf(r,i,T,s),g.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(T=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),T!==g.state&&Nf.enqueueReplaceState(g,g.state,null),Rl(r,s,g,h),Nl(),g.state=r.memoizedState),typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!0}else if(t===null){g=r.stateNode;var O=r.memoizedProps,U=aa(i,O);g.props=U;var Z=g.context,nt=i.contextType;T=Ra,typeof nt=="object"&&nt!==null&&(T=wr(nt));var st=i.getDerivedStateFromProps;nt=typeof st=="function"||typeof g.getSnapshotBeforeUpdate=="function",O=r.pendingProps!==O,nt||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O||Z!==T)&&Sd(r,g,s,T),wi=!1;var $=r.memoizedState;g.state=$,Rl(r,s,g,h),Nl(),Z=r.memoizedState,O||$!==Z||wi?(typeof st=="function"&&(Tf(r,i,st,s),Z=r.memoizedState),(U=wi||Md(r,i,U,s,$,Z,T))?(nt||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(r.flags|=4194308)):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=Z),g.props=s,g.state=Z,g.context=T,s=U):(typeof g.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{g=r.stateNode,lf(t,r),T=r.memoizedProps,nt=aa(i,T),g.props=nt,st=r.pendingProps,$=g.context,Z=i.contextType,U=Ra,typeof Z=="object"&&Z!==null&&(U=wr(Z)),O=i.getDerivedStateFromProps,(Z=typeof O=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(T!==st||$!==U)&&Sd(r,g,s,U),wi=!1,$=r.memoizedState,g.state=$,Rl(r,s,g,h),Nl();var tt=r.memoizedState;T!==st||$!==tt||wi||t!==null&&t.dependencies!==null&&Ys(t.dependencies)?(typeof O=="function"&&(Tf(r,i,O,s),tt=r.memoizedState),(nt=wi||Md(r,i,nt,s,$,tt,U)||t!==null&&t.dependencies!==null&&Ys(t.dependencies))?(Z||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,tt,U),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,tt,U)),typeof g.componentDidUpdate=="function"&&(r.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof g.componentDidUpdate!="function"||T===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=tt),g.props=s,g.state=tt,g.context=U,s=nt):(typeof g.componentDidUpdate!="function"||T===t.memoizedProps&&$===t.memoizedState||(r.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||T===t.memoizedProps&&$===t.memoizedState||(r.flags|=1024),s=!1)}return g=s,fo(t,r),s=(r.flags&128)!==0,g||s?(g=r.stateNode,i=s&&typeof i.getDerivedStateFromError!="function"?null:g.render(),r.flags|=1,t!==null&&s?(r.child=Ha(r,t.child,null,h),r.child=Ha(r,null,i,h)):hr(t,r,i,h),r.memoizedState=g.state,t=r.child):t=ii(t,r,h),t}function Id(t,r,i,s){return wl(),r.flags|=256,hr(t,r,i,s),r.child}var Of={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bf(t){return{baseLanes:t,cachePool:N0()}}function kf(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=hn),t}function Gd(t,r,i){var s=r.pendingProps,h=!1,g=(r.flags&128)!==0,T;if((T=g)||(T=t!==null&&t.memoizedState===null?!1:(tr.current&2)!==0),T&&(h=!0,r.flags&=-129),T=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ae){if(h?Ei(r):Mi(),Ae){var O=qe,U;if(U=O){t:{for(U=O,O=Dn;U.nodeType!==8;){if(!O){O=null;break t}if(U=En(U.nextSibling),U===null){O=null;break t}}O=U}O!==null?(r.memoizedState={dehydrated:O,treeContext:Fi!==null?{id:Wn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},U=Ir(18,null,null,0),U.stateNode=O,U.return=r,r.child=U,Rr=r,qe=null,U=!0):U=!1}U||ta(r)}if(O=r.memoizedState,O!==null&&(O=O.dehydrated,O!==null))return gc(O)?r.lanes=32:r.lanes=536870912,null;ni(r)}return O=s.children,s=s.fallback,h?(Mi(),h=r.mode,O=co({mode:"hidden",children:O},h),s=Ji(s,h,i,null),O.return=r,s.return=r,O.sibling=s,r.child=O,h=r.child,h.memoizedState=Bf(i),h.childLanes=kf(t,T,i),r.memoizedState=Of,s):(Ei(r),Df(r,O))}if(U=t.memoizedState,U!==null&&(O=U.dehydrated,O!==null)){if(g)r.flags&256?(Ei(r),r.flags&=-257,r=Uf(t,r,i)):r.memoizedState!==null?(Mi(),r.child=t.child,r.flags|=128,r=null):(Mi(),h=s.fallback,O=r.mode,s=co({mode:"visible",children:s.children},O),h=Ji(h,O,i,null),h.flags|=2,s.return=r,h.return=r,s.sibling=h,r.child=s,Ha(r,t.child,null,i),s=r.child,s.memoizedState=Bf(i),s.childLanes=kf(t,T,i),r.memoizedState=Of,r=h);else if(Ei(r),gc(O)){if(T=O.nextSibling&&O.nextSibling.dataset,T)var Z=T.dgst;T=Z,s=Error(a(419)),s.stack="",s.digest=T,xl({value:s,source:null,stack:null}),r=Uf(t,r,i)}else if(ir||Al(t,r,i,!1),T=(i&t.childLanes)!==0,ir||T){if(T=Oe,T!==null&&(s=i&-i,s=(s&42)!==0?1:Or(s),s=(s&(T.suspendedLanes|i))!==0?0:s,s!==0&&s!==U.retryLane))throw U.retryLane=s,Na(t,s),Xr(T,t,s),kd;O.data==="$?"||$f(),r=Uf(t,r,i)}else O.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=U.treeContext,qe=En(O.nextSibling),Rr=r,Ae=!0,$i=null,Dn=!1,t!==null&&(un[fn++]=Wn,un[fn++]=$n,un[fn++]=Fi,Wn=t.id,$n=t.overflow,Fi=r),r=Df(r,s.children),r.flags|=4096);return r}return h?(Mi(),h=s.fallback,O=r.mode,U=t.child,Z=U.sibling,s=Fn(U,{mode:"hidden",children:s.children}),s.subtreeFlags=U.subtreeFlags&65011712,Z!==null?h=Fn(Z,h):(h=Ji(h,O,i,null),h.flags|=2),h.return=r,s.return=r,s.sibling=h,r.child=s,s=h,h=r.child,O=t.child.memoizedState,O===null?O=Bf(i):(U=O.cachePool,U!==null?(Z=$e._currentValue,U=U.parent!==Z?{parent:Z,pool:Z}:U):U=N0(),O={baseLanes:O.baseLanes|i,cachePool:U}),h.memoizedState=O,h.childLanes=kf(t,T,i),r.memoizedState=Of,s):(Ei(r),i=t.child,t=i.sibling,i=Fn(i,{mode:"visible",children:s.children}),i.return=r,i.sibling=null,t!==null&&(T=r.deletions,T===null?(r.deletions=[t],r.flags|=16):T.push(t)),r.child=i,r.memoizedState=null,i)}function Df(t,r){return r=co({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function co(t,r){return t=Ir(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Uf(t,r,i){return Ha(r,t.child,null,i),t=Df(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function Pd(t,r,i){t.lanes|=r;var s=t.alternate;s!==null&&(s.lanes|=r),Wu(t.return,r,i)}function zf(t,r,i,s,h){var g=t.memoizedState;g===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:i,tailMode:h}:(g.isBackwards=r,g.rendering=null,g.renderingStartTime=0,g.last=s,g.tail=i,g.tailMode=h)}function Qd(t,r,i){var s=r.pendingProps,h=s.revealOrder,g=s.tail;if(hr(t,r,s.children,i),s=tr.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)t:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Pd(t,i,r);else if(t.tag===19)Pd(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break t;for(;t.sibling===null;){if(t.return===null||t.return===r)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}s&=1}switch(A(tr,s),h){case"forwards":for(i=r.child,h=null;i!==null;)t=i.alternate,t!==null&&so(t)===null&&(h=i),i=i.sibling;i=h,i===null?(h=r.child,r.child=null):(h=i.sibling,i.sibling=null),zf(r,!1,h,i,g);break;case"backwards":for(i=null,h=r.child,r.child=null;h!==null;){if(t=h.alternate,t!==null&&so(t)===null){r.child=h;break}t=h.sibling,h.sibling=i,i=h,h=t}zf(r,!0,i,null,g);break;case"together":zf(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function ii(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Ci|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(Al(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(a(153));if(r.child!==null){for(t=r.child,i=Fn(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=Fn(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Lf(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&Ys(t)))}function s1(t,r,i){switch(r.tag){case 3:Y(r,r.stateNode.containerInfo),bi(r,$e,t.memoizedState.cache),wl();break;case 27:case 5:yt(r);break;case 4:Y(r,r.stateNode.containerInfo);break;case 10:bi(r,r.type,r.memoizedProps.value);break;case 13:var s=r.memoizedState;if(s!==null)return s.dehydrated!==null?(Ei(r),r.flags|=128,null):(i&r.child.childLanes)!==0?Gd(t,r,i):(Ei(r),t=ii(t,r,i),t!==null?t.sibling:null);Ei(r);break;case 19:var h=(t.flags&128)!==0;if(s=(i&r.childLanes)!==0,s||(Al(t,r,i,!1),s=(i&r.childLanes)!==0),h){if(s)return Qd(t,r,i);r.flags|=128}if(h=r.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),A(tr,tr.current),s)break;return null;case 22:case 23:return r.lanes=0,Ld(t,r,i);case 24:bi(r,$e,t.memoizedState.cache)}return ii(t,r,i)}function Yd(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)ir=!0;else{if(!Lf(t,i)&&(r.flags&128)===0)return ir=!1,s1(t,r,i);ir=(t.flags&131072)!==0}else ir=!1,Ae&&(r.flags&1048576)!==0&&x0(r,Qs,r.index);switch(r.lanes=0,r.tag){case 16:t:{t=r.pendingProps;var s=r.elementType,h=s._init;if(s=h(s._payload),r.type=s,typeof s=="function")Yu(s)?(t=aa(s,t),r.tag=1,r=jd(null,r,s,t,i)):(r.tag=0,r=Cf(null,r,s,t,i));else{if(s!=null){if(h=s.$$typeof,h===Q){r.tag=11,r=Dd(null,r,s,t,i);break t}else if(h===ut){r.tag=14,r=Ud(null,r,s,t,i);break t}}throw r=o(s)||s,Error(a(306,r,""))}}return r;case 0:return Cf(t,r,r.type,r.pendingProps,i);case 1:return s=r.type,h=aa(s,r.pendingProps),jd(t,r,s,h,i);case 3:t:{if(Y(r,r.stateNode.containerInfo),t===null)throw Error(a(387));s=r.pendingProps;var g=r.memoizedState;h=g.element,lf(t,r),Rl(r,s,null,i);var T=r.memoizedState;if(s=T.cache,bi(r,$e,s),s!==g.cache&&$u(r,[$e],i,!0),Nl(),s=T.element,g.isDehydrated)if(g={element:s,isDehydrated:!1,cache:T.cache},r.updateQueue.baseState=g,r.memoizedState=g,r.flags&256){r=Id(t,r,s,i);break t}else if(s!==h){h=sn(Error(a(424)),r),xl(h),r=Id(t,r,s,i);break t}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qe=En(t.firstChild),Rr=r,Ae=!0,$i=null,Dn=!0,i=_d(r,null,s,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(wl(),s===h){r=ii(t,r,i);break t}hr(t,r,s,i)}r=r.child}return r;case 26:return fo(t,r),t===null?(i=Zp(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ae||(i=r.type,t=r.pendingProps,s=So(D.current).createElement(i),s[At]=r,s[ke]=t,pr(s,i,t),xe(s),r.stateNode=s):r.memoizedState=Zp(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return yt(r),t===null&&Ae&&(s=r.stateNode=Xp(r.type,r.pendingProps,D.current),Rr=r,Dn=!0,h=qe,Di(r.type)?(vc=h,qe=En(s.firstChild)):qe=h),hr(t,r,r.pendingProps.children,i),fo(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ae&&((h=s=qe)&&(s=U1(s,r.type,r.pendingProps,Dn),s!==null?(r.stateNode=s,Rr=r,qe=En(s.firstChild),Dn=!1,h=!0):h=!1),h||ta(r)),yt(r),h=r.type,g=r.pendingProps,T=t!==null?t.memoizedProps:null,s=g.children,dc(h,g)?s=null:T!==null&&dc(h,T)&&(r.flags|=32),r.memoizedState!==null&&(h=hf(t,r,$y,null,null,i),Fl._currentValue=h),fo(t,r),hr(t,r,s,i),r.child;case 6:return t===null&&Ae&&((t=i=qe)&&(i=z1(i,r.pendingProps,Dn),i!==null?(r.stateNode=i,Rr=r,qe=null,t=!0):t=!1),t||ta(r)),null;case 13:return Gd(t,r,i);case 4:return Y(r,r.stateNode.containerInfo),s=r.pendingProps,t===null?r.child=Ha(r,null,s,i):hr(t,r,s,i),r.child;case 11:return Dd(t,r,r.type,r.pendingProps,i);case 7:return hr(t,r,r.pendingProps,i),r.child;case 8:return hr(t,r,r.pendingProps.children,i),r.child;case 12:return hr(t,r,r.pendingProps.children,i),r.child;case 10:return s=r.pendingProps,bi(r,r.type,s.value),hr(t,r,s.children,i),r.child;case 9:return h=r.type._context,s=r.pendingProps.children,ra(r),h=wr(h),s=s(h),r.flags|=1,hr(t,r,s,i),r.child;case 14:return Ud(t,r,r.type,r.pendingProps,i);case 15:return zd(t,r,r.type,r.pendingProps,i);case 19:return Qd(t,r,i);case 31:return s=r.pendingProps,i=r.mode,s={mode:s.mode,children:s.children},t===null?(i=co(s,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=Fn(t.child,s),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return Ld(t,r,i);case 24:return ra(r),s=wr($e),t===null?(h=rf(),h===null&&(h=Oe,g=tf(),h.pooledCache=g,g.refCount++,g!==null&&(h.pooledCacheLanes|=i),h=g),r.memoizedState={parent:s,cache:h},af(r),bi(r,$e,h)):((t.lanes&i)!==0&&(lf(t,r),Rl(r,null,null,i),Nl()),h=t.memoizedState,g=r.memoizedState,h.parent!==s?(h={parent:s,cache:s},r.memoizedState=h,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=h),bi(r,$e,s)):(s=g.cache,bi(r,$e,s),s!==h.cache&&$u(r,[$e],i,!0))),hr(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(a(156,r.tag))}function ai(t){t.flags|=4}function Xd(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!tm(r)){if(r=cn.current,r!==null&&((ye&4194048)===ye?Un!==null:(ye&62914560)!==ye&&(ye&536870912)===0||r!==Un))throw Sl=nf,R0;t.flags|=8192}}function ho(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Hr():536870912,t.lanes|=r,Pa|=r)}function zl(t,r){if(!Ae)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Ue(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,s=0;if(r)for(var h=t.child;h!==null;)i|=h.lanes|h.childLanes,s|=h.subtreeFlags&65011712,s|=h.flags&65011712,h.return=t,h=h.sibling;else for(h=t.child;h!==null;)i|=h.lanes|h.childLanes,s|=h.subtreeFlags,s|=h.flags,h.return=t,h=h.sibling;return t.subtreeFlags|=s,t.childLanes=i,r}function o1(t,r,i){var s=r.pendingProps;switch(Zu(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ue(r),null;case 1:return Ue(r),null;case 3:return i=r.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),r.memoizedState.cache!==s&&(r.flags|=2048),ei($e),rt(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(bl(r)?ai(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,E0())),Ue(r),null;case 26:return i=r.memoizedState,t===null?(ai(r),i!==null?(Ue(r),Xd(r,i)):(Ue(r),r.flags&=-16777217)):i?i!==t.memoizedState?(ai(r),Ue(r),Xd(r,i)):(Ue(r),r.flags&=-16777217):(t.memoizedProps!==s&&ai(r),Ue(r),r.flags&=-16777217),null;case 27:ft(r),i=D.current;var h=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==s&&ai(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return Ue(r),null}t=K.current,bl(r)?A0(r):(t=Xp(h,s,i),r.stateNode=t,ai(r))}return Ue(r),null;case 5:if(ft(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==s&&ai(r);else{if(!s){if(r.stateNode===null)throw Error(a(166));return Ue(r),null}if(t=K.current,bl(r))A0(r);else{switch(h=So(D.current),t){case 1:t=h.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=h.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=h.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=h.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof s.is=="string"?h.createElement("select",{is:s.is}):h.createElement("select"),s.multiple?t.multiple=!0:s.size&&(t.size=s.size);break;default:t=typeof s.is=="string"?h.createElement(i,{is:s.is}):h.createElement(i)}}t[At]=r,t[ke]=s;t:for(h=r.child;h!==null;){if(h.tag===5||h.tag===6)t.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===r)break t;for(;h.sibling===null;){if(h.return===null||h.return===r)break t;h=h.return}h.sibling.return=h.return,h=h.sibling}r.stateNode=t;t:switch(pr(t,i,s),i){case"button":case"input":case"select":case"textarea":t=!!s.autoFocus;break t;case"img":t=!0;break t;default:t=!1}t&&ai(r)}}return Ue(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==s&&ai(r);else{if(typeof s!="string"&&r.stateNode===null)throw Error(a(166));if(t=D.current,bl(r)){if(t=r.stateNode,i=r.memoizedProps,s=null,h=Rr,h!==null)switch(h.tag){case 27:case 5:s=h.memoizedProps}t[At]=r,t=!!(t.nodeValue===i||s!==null&&s.suppressHydrationWarning===!0||Hp(t.nodeValue,i)),t||ta(r)}else t=So(t).createTextNode(s),t[At]=r,r.stateNode=t}return Ue(r),null;case 13:if(s=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(h=bl(r),s!==null&&s.dehydrated!==null){if(t===null){if(!h)throw Error(a(318));if(h=r.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(a(317));h[At]=r}else wl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Ue(r),h=!1}else h=E0(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=h),h=!0;if(!h)return r.flags&256?(ni(r),r):(ni(r),null)}if(ni(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=s!==null,t=t!==null&&t.memoizedState!==null,i){s=r.child,h=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(h=s.alternate.memoizedState.cachePool.pool);var g=null;s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(g=s.memoizedState.cachePool.pool),g!==h&&(s.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),ho(r,r.updateQueue),Ue(r),null;case 4:return rt(),t===null&&oc(r.stateNode.containerInfo),Ue(r),null;case 10:return ei(r.type),Ue(r),null;case 19:if(c(tr),h=r.memoizedState,h===null)return Ue(r),null;if(s=(r.flags&128)!==0,g=h.rendering,g===null)if(s)zl(h,!1);else{if(He!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(g=so(t),g!==null){for(r.flags|=128,zl(h,!1),t=g.updateQueue,r.updateQueue=t,ho(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)w0(i,t),i=i.sibling;return A(tr,tr.current&1|2),r.child}t=t.sibling}h.tail!==null&&wt()>go&&(r.flags|=128,s=!0,zl(h,!1),r.lanes=4194304)}else{if(!s)if(t=so(g),t!==null){if(r.flags|=128,s=!0,t=t.updateQueue,r.updateQueue=t,ho(r,t),zl(h,!0),h.tail===null&&h.tailMode==="hidden"&&!g.alternate&&!Ae)return Ue(r),null}else 2*wt()-h.renderingStartTime>go&&i!==536870912&&(r.flags|=128,s=!0,zl(h,!1),r.lanes=4194304);h.isBackwards?(g.sibling=r.child,r.child=g):(t=h.last,t!==null?t.sibling=g:r.child=g,h.last=g)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=wt(),r.sibling=null,t=tr.current,A(tr,s?t&1|2:t&1),r):(Ue(r),null);case 22:case 23:return ni(r),ff(),s=r.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(r.flags|=8192):s&&(r.flags|=8192),s?(i&536870912)!==0&&(r.flags&128)===0&&(Ue(r),r.subtreeFlags&6&&(r.flags|=8192)):Ue(r),i=r.updateQueue,i!==null&&ho(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),s=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(s=r.memoizedState.cachePool.pool),s!==i&&(r.flags|=2048),t!==null&&c(na),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),ei($e),Ue(r),null;case 25:return null;case 30:return null}throw Error(a(156,r.tag))}function u1(t,r){switch(Zu(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ei($e),rt(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return ft(r),null;case 13:if(ni(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(a(340));wl()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return c(tr),null;case 4:return rt(),null;case 10:return ei(r.type),null;case 22:case 23:return ni(r),ff(),t!==null&&c(na),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ei($e),null;case 25:return null;default:return null}}function Vd(t,r){switch(Zu(r),r.tag){case 3:ei($e),rt();break;case 26:case 27:case 5:ft(r);break;case 4:rt();break;case 13:ni(r);break;case 19:c(tr);break;case 10:ei(r.type);break;case 22:case 23:ni(r),ff(),t!==null&&c(na);break;case 24:ei($e)}}function Ll(t,r){try{var i=r.updateQueue,s=i!==null?i.lastEffect:null;if(s!==null){var h=s.next;i=h;do{if((i.tag&t)===t){s=void 0;var g=i.create,T=i.inst;s=g(),T.destroy=s}i=i.next}while(i!==h)}}catch(O){Ce(r,r.return,O)}}function Si(t,r,i){try{var s=r.updateQueue,h=s!==null?s.lastEffect:null;if(h!==null){var g=h.next;s=g;do{if((s.tag&t)===t){var T=s.inst,O=T.destroy;if(O!==void 0){T.destroy=void 0,h=r;var U=i,Z=O;try{Z()}catch(nt){Ce(h,U,nt)}}}s=s.next}while(s!==g)}}catch(nt){Ce(r,r.return,nt)}}function Kd(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{U0(r,i)}catch(s){Ce(t,t.return,s)}}}function Zd(t,r,i){i.props=aa(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(s){Ce(t,r,s)}}function ql(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof i=="function"?t.refCleanup=i(s):i.current=s}}catch(h){Ce(t,r,h)}}function zn(t,r){var i=t.ref,s=t.refCleanup;if(i!==null)if(typeof s=="function")try{s()}catch(h){Ce(t,r,h)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(h){Ce(t,r,h)}else i.current=null}function Jd(t){var r=t.type,i=t.memoizedProps,s=t.stateNode;try{t:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&s.focus();break t;case"img":i.src?s.src=i.src:i.srcSet&&(s.srcset=i.srcSet)}}catch(h){Ce(t,t.return,h)}}function qf(t,r,i){try{var s=t.stateNode;C1(s,t.type,i,r),s[ke]=r}catch(h){Ce(t,t.return,h)}}function Fd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Di(t.type)||t.tag===4}function Hf(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Di(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function jf(t,r,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Mo));else if(s!==4&&(s===27&&Di(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(jf(t,r,i),t=t.sibling;t!==null;)jf(t,r,i),t=t.sibling}function po(t,r,i){var s=t.tag;if(s===5||s===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(s!==4&&(s===27&&Di(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(po(t,r,i),t=t.sibling;t!==null;)po(t,r,i),t=t.sibling}function Wd(t){var r=t.stateNode,i=t.memoizedProps;try{for(var s=t.type,h=r.attributes;h.length;)r.removeAttributeNode(h[0]);pr(r,s,i),r[At]=t,r[ke]=i}catch(g){Ce(t,t.return,g)}}var li=!1,Pe=!1,If=!1,$d=typeof WeakSet=="function"?WeakSet:Set,ar=null;function f1(t,r){if(t=t.containerInfo,cc=Bo,t=f0(t),qu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else t:{i=(i=t.ownerDocument)&&i.defaultView||window;var s=i.getSelection&&i.getSelection();if(s&&s.rangeCount!==0){i=s.anchorNode;var h=s.anchorOffset,g=s.focusNode;s=s.focusOffset;try{i.nodeType,g.nodeType}catch{i=null;break t}var T=0,O=-1,U=-1,Z=0,nt=0,st=t,$=null;e:for(;;){for(var tt;st!==i||h!==0&&st.nodeType!==3||(O=T+h),st!==g||s!==0&&st.nodeType!==3||(U=T+s),st.nodeType===3&&(T+=st.nodeValue.length),(tt=st.firstChild)!==null;)$=st,st=tt;for(;;){if(st===t)break e;if($===i&&++Z===h&&(O=T),$===g&&++nt===s&&(U=T),(tt=st.nextSibling)!==null)break;st=$,$=st.parentNode}st=tt}i=O===-1||U===-1?null:{start:O,end:U}}else i=null}i=i||{start:0,end:0}}else i=null;for(hc={focusedElem:t,selectionRange:i},Bo=!1,ar=r;ar!==null;)if(r=ar,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,ar=t;else for(;ar!==null;){switch(r=ar,g=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&g!==null){t=void 0,i=r,h=g.memoizedProps,g=g.memoizedState,s=i.stateNode;try{var ie=aa(i.type,h,i.elementType===i.type);t=s.getSnapshotBeforeUpdate(ie,g),s.__reactInternalSnapshotBeforeUpdate=t}catch(Gt){Ce(i,i.return,Gt)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)mc(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(a(163))}if(t=r.sibling,t!==null){t.return=r.return,ar=t;break}ar=r.return}}function tp(t,r,i){var s=i.flags;switch(i.tag){case 0:case 11:case 15:Ti(t,i),s&4&&Ll(5,i);break;case 1:if(Ti(t,i),s&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(T){Ce(i,i.return,T)}else{var h=aa(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(h,r,t.__reactInternalSnapshotBeforeUpdate)}catch(T){Ce(i,i.return,T)}}s&64&&Kd(i),s&512&&ql(i,i.return);break;case 3:if(Ti(t,i),s&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{U0(t,r)}catch(T){Ce(i,i.return,T)}}break;case 27:r===null&&s&4&&Wd(i);case 26:case 5:Ti(t,i),r===null&&s&4&&Jd(i),s&512&&ql(i,i.return);break;case 12:Ti(t,i);break;case 13:Ti(t,i),s&4&&np(t,i),s&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=b1.bind(null,i),L1(t,i))));break;case 22:if(s=i.memoizedState!==null||li,!s){r=r!==null&&r.memoizedState!==null||Pe,h=li;var g=Pe;li=s,(Pe=r)&&!g?Ni(t,i,(i.subtreeFlags&8772)!==0):Ti(t,i),li=h,Pe=g}break;case 30:break;default:Ti(t,i)}}function ep(t){var r=t.alternate;r!==null&&(t.alternate=null,ep(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&Xt(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var De=null,Ur=!1;function si(t,r,i){for(i=i.child;i!==null;)rp(t,r,i),i=i.sibling}function rp(t,r,i){if(xt&&typeof xt.onCommitFiberUnmount=="function")try{xt.onCommitFiberUnmount(Tt,i)}catch{}switch(i.tag){case 26:Pe||zn(i,r),si(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Pe||zn(i,r);var s=De,h=Ur;Di(i.type)&&(De=i.stateNode,Ur=!1),si(t,r,i),Vl(i.stateNode),De=s,Ur=h;break;case 5:Pe||zn(i,r);case 6:if(s=De,h=Ur,De=null,si(t,r,i),De=s,Ur=h,De!==null)if(Ur)try{(De.nodeType===9?De.body:De.nodeName==="HTML"?De.ownerDocument.body:De).removeChild(i.stateNode)}catch(g){Ce(i,r,g)}else try{De.removeChild(i.stateNode)}catch(g){Ce(i,r,g)}break;case 18:De!==null&&(Ur?(t=De,Qp(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),es(t)):Qp(De,i.stateNode));break;case 4:s=De,h=Ur,De=i.stateNode.containerInfo,Ur=!0,si(t,r,i),De=s,Ur=h;break;case 0:case 11:case 14:case 15:Pe||Si(2,i,r),Pe||Si(4,i,r),si(t,r,i);break;case 1:Pe||(zn(i,r),s=i.stateNode,typeof s.componentWillUnmount=="function"&&Zd(i,r,s)),si(t,r,i);break;case 21:si(t,r,i);break;case 22:Pe=(s=Pe)||i.memoizedState!==null,si(t,r,i),Pe=s;break;default:si(t,r,i)}}function np(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{es(t)}catch(i){Ce(r,r.return,i)}}function c1(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new $d),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new $d),r;default:throw Error(a(435,t.tag))}}function Gf(t,r){var i=c1(t);r.forEach(function(s){var h=w1.bind(null,t,s);i.has(s)||(i.add(s),s.then(h,h))})}function Gr(t,r){var i=r.deletions;if(i!==null)for(var s=0;s<i.length;s++){var h=i[s],g=t,T=r,O=T;t:for(;O!==null;){switch(O.tag){case 27:if(Di(O.type)){De=O.stateNode,Ur=!1;break t}break;case 5:De=O.stateNode,Ur=!1;break t;case 3:case 4:De=O.stateNode.containerInfo,Ur=!0;break t}O=O.return}if(De===null)throw Error(a(160));rp(g,T,h),De=null,Ur=!1,g=h.alternate,g!==null&&(g.return=null),h.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)ip(r,t),r=r.sibling}var _n=null;function ip(t,r){var i=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Gr(r,t),Pr(t),s&4&&(Si(3,t,t.return),Ll(3,t),Si(5,t,t.return));break;case 1:Gr(r,t),Pr(t),s&512&&(Pe||i===null||zn(i,i.return)),s&64&&li&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?s:i.concat(s))));break;case 26:var h=_n;if(Gr(r,t),Pr(t),s&512&&(Pe||i===null||zn(i,i.return)),s&4){var g=i!==null?i.memoizedState:null;if(s=t.memoizedState,i===null)if(s===null)if(t.stateNode===null){t:{s=t.type,i=t.memoizedProps,h=h.ownerDocument||h;e:switch(s){case"title":g=h.getElementsByTagName("title")[0],(!g||g[br]||g[At]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=h.createElement(s),h.head.insertBefore(g,h.querySelector("head > title"))),pr(g,s,i),g[At]=t,xe(g),s=g;break t;case"link":var T=Wp("link","href",h).get(s+(i.href||""));if(T){for(var O=0;O<T.length;O++)if(g=T[O],g.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&g.getAttribute("rel")===(i.rel==null?null:i.rel)&&g.getAttribute("title")===(i.title==null?null:i.title)&&g.getAttribute("crossorigin")===(i.
vendor: 4,652 bytes, line 48
48crossOrigin==null?null:i.crossOrigin)){T.splice(O,1);break e}}g=h.createElement(s),pr(g,s,i),h.head.appendChild(g);break;case"meta":if(T=Wp("meta","content",h).get(s+(i.content||""))){for(O=0;O<T.length;O++)if(g=T[O],g.getAttribute("content")===(i.content==null?null:""+i.content)&&g.getAttribute("name")===(i.name==null?null:i.name)&&g.getAttribute("property")===(i.property==null?null:i.property)&&g.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&g.getAttribute("charset")===(i.charSet==null?null:i.charSet)){T.splice(O,1);break e}}g=h.createElement(s),pr(g,s,i),h.head.appendChild(g);break;default:throw Error(a(468,s))}g[At]=t,xe(g),s=g}t.stateNode=s}else $p(h,t.type,t.stateNode);else t.stateNode=Fp(h,s,t.memoizedProps);else g!==s?(g===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):g.count--,s===null?$p(h,t.type,t.stateNode):Fp(h,s,t.memoizedProps)):s===null&&t.stateNode!==null&&qf(t,t.memoizedProps,i.memoizedProps)}break;case 27:Gr(r,t),Pr(t),s&512&&(Pe||i===null||zn(i,i.return)),i!==null&&s&4&&qf(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Gr(r,t),Pr(t),s&512&&(Pe||i===null||zn(i,i.return)),t.flags&32){h=t.stateNode;try{xa(h,"")}catch(tt){Ce(t,t.return,tt)}}s&4&&t.stateNode!=null&&(h=t.memoizedProps,qf(t,h,i!==null?i.memoizedProps:h)),s&1024&&(If=!0);break;case 6:if(Gr(r,t),Pr(t),s&4){if(t.stateNode===null)throw Error(a(162));s=t.memoizedProps,i=t.stateNode;try{i.nodeValue=s}catch(tt){Ce(t,t.return,tt)}}break;case 3:if(Ro=null,h=_n,_n=To(r.containerInfo),Gr(r,t),_n=h,Pr(t),s&4&&i!==null&&i.memoizedState.isDehydrated)try{es(r.containerInfo)}catch(tt){Ce(t,t.return,tt)}If&&(If=!1,ap(t));break;case 4:s=_n,_n=To(t.stateNode.containerInfo),Gr(r,t),Pr(t),_n=s;break;case 12:Gr(r,t),Pr(t);break;case 13:Gr(r,t),Pr(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Kf=wt()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Gf(t,s)));break;case 22:h=t.memoizedState!==null;var U=i!==null&&i.memoizedState!==null,Z=li,nt=Pe;if(li=Z||h,Pe=nt||U,Gr(r,t),Pe=nt,li=Z,Pr(t),s&8192)t:for(r=t.stateNode,r._visibility=h?r._visibility&-2:r._visibility|1,h&&(i===null||U||li||Pe||la(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){U=i=r;try{if(g=U.stateNode,h)T=g.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{O=U.stateNode;var st=U.memoizedProps.style,$=st!=null&&st.hasOwnProperty("display")?st.display:null;O.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(tt){Ce(U,U.return,tt)}}}else if(r.tag===6){if(i===null){U=r;try{U.stateNode.nodeValue=h?"":U.memoizedProps}catch(tt){Ce(U,U.return,tt)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break t;for(;r.sibling===null;){if(r.return===null||r.return===t)break t;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}s&4&&(s=t.updateQueue,s!==null&&(i=s.retryQueue,i!==null&&(s.retryQueue=null,Gf(t,i))));break;case 19:Gr(r,t),Pr(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Gf(t,s)));break;case 30:break;case 21:break;default:Gr(r,t),Pr(t)}}function Pr(t){var r=t.flags;if(r&2){try{for(var i,s=t.return;s!==null;){if(Fd(s)){i=s;break}s=s.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var h=i.stateNode,g=Hf(t);po(t,g,h);break;case 5:var T=i.stateNode;i.flags&32&&(xa(T,""),i.flags&=-33);var O=Hf(t);po(t,O,T);break;case 3:case 4:var U=i.stateNode.containerInfo,Z=Hf(t);jf(t,Z,U);break;default:throw Error(a(161))}}catch(nt){Ce(t,t.return,nt)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function ap(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;ap(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Ti(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)tp(t,r.alternate,r),r=r.sibling}function la(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Si(4,r,r.return),la(r);break;case 1:zn(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&Zd(r,r.return,i),la(r);break;case 27:Vl(r.stateNode);case 26:case 5:zn(r,r.return),la(r);break;case 22:r.memoizedState===null&&la(r);break;case 30:la(r);break;default:la(r)}t=t.sibling}}function Ni(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var s=r.alternate,h=t,g=r,T=g.flags;switch(g.tag){case 0:case 11:case 15:Ni(h,g,i),Ll(4,g);break;case 1:if(Ni(h,g,i),s=g,h=s.stateNode,typeof h.componentDidMount=="function")try{h.componentDidMount()}catch(Z){Ce(s,s.return,Z)}if(s=g,h=s.updateQueue,h!==null){var O=s.stateNode;try{var U=h.shared.hiddenCallbacks;
vendor: 28,921 bytes, lines 48-49
48if(U!==null)for(h.shared.hiddenCallbacks=null,h=0;h<U.length;h++)D0(U[h],O)}catch(Z){Ce(s,s.return,Z)}}i&&T&64&&Kd(g),ql(g,g.return);break;case 27:Wd(g);case 26:case 5:Ni(h,g,i),i&&s===null&&T&4&&Jd(g),ql(g,g.return);break;case 12:Ni(h,g,i);break;case 13:Ni(h,g,i),i&&T&4&&np(h,g);break;case 22:g.memoizedState===null&&Ni(h,g,i),ql(g,g.return);break;case 30:break;default:Ni(h,g,i)}r=r.sibling}}function Pf(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&_l(i))}function Qf(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&_l(t))}function Ln(t,r,i,s){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)lp(t,r,i,s),r=r.sibling}function lp(t,r,i,s){var h=r.flags;switch(r.tag){case 0:case 11:case 15:Ln(t,r,i,s),h&2048&&Ll(9,r);break;case 1:Ln(t,r,i,s);break;case 3:Ln(t,r,i,s),h&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&_l(t)));break;case 12:if(h&2048){Ln(t,r,i,s),t=r.stateNode;try{var g=r.memoizedProps,T=g.id,O=g.onPostCommit;typeof O=="function"&&O(T,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(U){Ce(r,r.return,U)}}else Ln(t,r,i,s);break;case 13:Ln(t,r,i,s);break;case 23:break;case 22:g=r.stateNode,T=r.alternate,r.memoizedState!==null?g._visibility&2?Ln(t,r,i,s):Hl(t,r):g._visibility&2?Ln(t,r,i,s):(g._visibility|=2,ja(t,r,i,s,(r.subtreeFlags&10256)!==0)),h&2048&&Pf(T,r);break;case 24:Ln(t,r,i,s),h&2048&&Qf(r.alternate,r);break;default:Ln(t,r,i,s)}}function ja(t,r,i,s,h){for(h=h&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var g=t,T=r,O=i,U=s,Z=T.flags;switch(T.tag){case 0:case 11:case 15:ja(g,T,O,U,h),Ll(8,T);break;case 23:break;case 22:var nt=T.stateNode;T.memoizedState!==null?nt._visibility&2?ja(g,T,O,U,h):Hl(g,T):(nt._visibility|=2,ja(g,T,O,U,h)),h&&Z&2048&&Pf(T.alternate,T);break;case 24:ja(g,T,O,U,h),h&&Z&2048&&Qf(T.alternate,T);break;default:ja(g,T,O,U,h)}r=r.sibling}}function Hl(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,s=r,h=s.flags;switch(s.tag){case 22:Hl(i,s),h&2048&&Pf(s.alternate,s);break;case 24:Hl(i,s),h&2048&&Qf(s.alternate,s);break;default:Hl(i,s)}r=r.sibling}}var jl=8192;function Ia(t){if(t.subtreeFlags&jl)for(t=t.child;t!==null;)sp(t),t=t.sibling}function sp(t){switch(t.tag){case 26:Ia(t),t.flags&jl&&t.memoizedState!==null&&J1(_n,t.memoizedState,t.memoizedProps);break;case 5:Ia(t);break;case 3:case 4:var r=_n;_n=To(t.stateNode.containerInfo),Ia(t),_n=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=jl,jl=16777216,Ia(t),jl=r):Ia(t));break;default:Ia(t)}}function op(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function Il(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var s=r[i];ar=s,fp(s,t)}op(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)up(t),t=t.sibling}function up(t){switch(t.tag){case 0:case 11:case 15:Il(t),t.flags&2048&&Si(9,t,t.return);break;case 3:Il(t);break;case 12:Il(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,mo(t)):Il(t);break;default:Il(t)}}function mo(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var s=r[i];ar=s,fp(s,t)}op(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Si(8,r,r.return),mo(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,mo(r));break;default:mo(r)}t=t.sibling}}function fp(t,r){for(;ar!==null;){var i=ar;switch(i.tag){case 0:case 11:case 15:Si(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var s=i.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:_l(i.memoizedState.cache)}if(s=i.child,s!==null)s.return=i,ar=s;else t:for(i=t;ar!==null;){s=ar;var h=s.sibling,g=s.return;if(ep(s),s===i){ar=null;break t}if(h!==null){h.return=g,ar=h;break t}ar=g}}}var h1={getCacheForType:function(t){var r=wr($e),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},d1=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Oe=null,pe=null,ye=0,Me=0,Qr=null,Ri=!1,Ga=!1,Yf=!1,oi=0,He=0,Ci=0,sa=0,Xf=0,hn=0,Pa=0,Gl=null,zr=null,Vf=!1,Kf=0,go=1/0,vo=null,Oi=null,dr=0,Bi=null,Qa=null,Ya=0,Zf=0,Jf=null,cp=null,Pl=0,Ff=null;function Yr(){if((Ee&2)!==0&&ye!==0)return ye&-ye;if(m.T!==null){var t=Ba;return t!==0?t:ic()}return Wt()}function hp(){hn===0&&(hn=(ye&536870912)===0||Ae?Zt():536870912);var t=cn.current;return t!==null&&(t.flags|=32),hn}function Xr(t,r,i){(t===Oe&&(Me===2||Me===9)||t.cancelPendingCommit!==null)&&(Xa(t,0),ki(t,ye,hn,!1)),Lt(t,i),((Ee&2)===0||t!==Oe)&&(t===Oe&&((Ee&2)===0&&(sa|=i),He===4&&ki(t,ye,hn,!1)),qn(t))}function dp(t,r,i){if((Ee&6)!==0)throw Error(a(327));var s=!i&&(r&124)===0&&(r&t.expiredLanes)===0||yr(t,r),h=s?g1(t,r):tc(t,r,!0),g=s;do{if(h===0){Ga&&!s&&ki(t,r,0,!1);break}else{if(i=t.current.alternate,g&&!p1(i)){h=tc(t,r,!1),g=!1;continue}if(h===2){if(g=r,t.errorRecoveryDisabledLanes&g)var T=0;else T=t.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){r=T;t:{var O=t;h=Gl;var U=O.current.memoizedState.isDehydrated;if(U&&(Xa(O,T).flags|=256),T=tc(O,T,!1),T!==2){if(Yf&&!U){O.errorRecoveryDisabledLanes|=g,sa|=g,h=4;break t}g=zr,zr=h,g!==null&&(zr===null?zr=g:zr.push.apply(zr,g))}h=T}if(g=!1,h!==2)continue}}if(h===1){Xa(t,0),ki(t,r,0,!0);break}t:{switch(s=t,g=h,g){case 0:case 1:throw Error(a(345));case 4:if((r&4194048)!==r)break;case 6:ki(s,r,hn,!Ri);break t;case 2:zr=null;break;case 3:case 5:break;default:throw Error(a(329))}if((r&62914560)===r&&(h=Kf+300-wt(),10<h)){if(ki(s,r,hn,!Ri),It(s,0,!0)!==0)break t;s.timeoutHandle=Gp(pp.bind(null,s,i,zr,vo,Vf,r,hn,sa,Pa,Ri,g,2,-0,0),h);break t}pp(s,i,zr,vo,Vf,r,hn,sa,Pa,Ri,g,0,-0,0)}}break}while(!0);qn(t)}function pp(t,r,i,s,h,g,T,O,U,Z,nt,st,$,tt){if(t.timeoutHandle=-1,st=r.subtreeFlags,(st&8192||(st&16785408)===16785408)&&(Jl={stylesheets:null,count:0,unsuspend:Z1},sp(r),st=F1(),st!==null)){t.cancelPendingCommit=st(xp.bind(null,t,r,g,i,s,h,T,O,U,nt,1,$,tt)),ki(t,g,T,!Z);return}xp(t,r,g,i,s,h,T,O,U)}function p1(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var s=0;s<i.length;s++){var h=i[s],g=h.getSnapshot;h=h.value;try{if(!jr(g(),h))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function ki(t,r,i,s){r&=~Xf,r&=~sa,t.suspendedLanes|=r,t.pingedLanes&=~r,s&&(t.warmLanes|=r),s=t.expirationTimes;for(var h=r;0<h;){var g=31-Et(h),T=1<<g;s[g]=-1,h&=~T}i!==0&&Jt(t,i,r)}function yo(){return(Ee&6)===0?(Ql(0),!1):!0}function Wf(){if(pe!==null){if(Me===0)var t=pe.return;else t=pe,ti=ea=null,mf(t),qa=null,Dl=0,t=pe;for(;t!==null;)Vd(t.alternate,t),t=t.return;pe=null}}function Xa(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,B1(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Wf(),Oe=t,pe=i=Fn(t.current,null),ye=r,Me=0,Qr=null,Ri=!1,Ga=yr(t,r),Yf=!1,Pa=hn=Xf=sa=Ci=He=0,zr=Gl=null,Vf=!1,(r&8)!==0&&(r|=r&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=r;0<s;){var h=31-Et(s),g=1<<h;r|=t[h],s&=~g}return oi=r,Hs(),i}function mp(t,r){fe=null,m.H=io,r===Ml||r===Ks?(r=B0(),Me=3):r===R0?(r=B0(),Me=4):Me=r===kd?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Qr=r,pe===null&&(He=1,uo(t,sn(r,t.current)))}function gp(){var t=m.H;return m.H=io,t===null?io:t}function vp(){var t=m.A;return m.A=h1,t}function $f(){He=4,Ri||(ye&4194048)!==ye&&cn.current!==null||(Ga=!0),(Ci&134217727)===0&&(sa&134217727)===0||Oe===null||ki(Oe,ye,hn,!1)}function tc(t,r,i){var s=Ee;Ee|=2;var h=gp(),g=vp();(Oe!==t||ye!==r)&&(vo=null,Xa(t,r)),r=!1;var T=He;t:do try{if(Me!==0&&pe!==null){var O=pe,U=Qr;switch(Me){case 8:Wf(),T=6;break t;case 3:case 2:case 9:case 6:cn.current===null&&(r=!0);var Z=Me;if(Me=0,Qr=null,Va(t,O,U,Z),i&&Ga){T=0;break t}break;default:Z=Me,Me=0,Qr=null,Va(t,O,U,Z)}}m1(),T=He;break}catch(nt){mp(t,nt)}while(!0);return r&&t.shellSuspendCounter++,ti=ea=null,Ee=s,m.H=h,m.A=g,pe===null&&(Oe=null,ye=0,Hs()),T}function m1(){for(;pe!==null;)yp(pe)}function g1(t,r){var i=Ee;Ee|=2;var s=gp(),h=vp();Oe!==t||ye!==r?(vo=null,go=wt()+500,Xa(t,r)):Ga=yr(t,r);t:do try{if(Me!==0&&pe!==null){r=pe;var g=Qr;e:switch(Me){case 1:Me=0,Qr=null,Va(t,r,g,1);break;case 2:case 9:if(C0(g)){Me=0,Qr=null,bp(r);break}r=function(){Me!==2&&Me!==9||Oe!==t||(Me=7),qn(t)},g.then(r,r);break t;case 3:Me=7;break t;case 4:Me=5;break t;case 7:C0(g)?(Me=0,Qr=null,bp(r)):(Me=0,Qr=null,Va(t,r,g,7));break;case 5:var T=null;switch(pe.tag){case 26:T=pe.memoizedState;case 5:case 27:var O=pe;if(!T||tm(T)){Me=0,Qr=null;var U=O.sibling;if(U!==null)pe=U;else{var Z=O.return;Z!==null?(pe=Z,bo(Z)):pe=null}break e}}Me=0,Qr=null,Va(t,r,g,5);break;case 6:Me=0,Qr=null,Va(t,r,g,6);break;case 8:Wf(),He=6;break t;default:throw Error(a(462))}}v1();break}catch(nt){mp(t,nt)}while(!0);return ti=ea=null,m.H=s,m.A=h,Ee=i,pe!==null?0:(Oe=null,ye=0,Hs(),He)}function v1(){for(;pe!==null&&!gt();)yp(pe)}function yp(t){var r=Yd(t.alternate,t,oi);t.memoizedProps=t.pendingProps,r===null?bo(t):pe=r}function bp(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=Hd(i,r,r.pendingProps,r.type,void 0,ye);break;case 11:r=Hd(i,r,r.pendingProps,r.type.render,r.ref,ye);break;case 5:mf(r);default:Vd(i,r),r=pe=w0(r,oi),r=Yd(i,r,oi)}t.memoizedProps=t.pendingProps,r===null?bo(t):pe=r}function Va(t,r,i,s){ti=ea=null,mf(r),qa=null,Dl=0;var h=r.return;try{if(l1(t,h,r,i,ye)){He=1,uo(t,sn(i,t.current)),pe=null;return}}catch(g){if(h!==null)throw pe=h,g;He=1,uo(t,sn(i,t.current)),pe=null;return}r.flags&32768?(Ae||s===1?t=!0:Ga||(ye&536870912)!==0?t=!1:(Ri=t=!0,(s===2||s===9||s===3||s===6)&&(s=cn.current,s!==null&&s.tag===13&&(s.flags|=16384))),wp(r,t)):bo(r)}function bo(t){var r=t;do{if((r.flags&32768)!==0){wp(r,Ri);return}t=r.return;var i=o1(r.alternate,r,oi);if(i!==null){pe=i;return}if(r=r.sibling,r!==null){pe=r;return}pe=r=t}while(r!==null);He===0&&(He=5)}function wp(t,r){do{var i=u1(t.alternate,t);if(i!==null){i.flags&=32767,pe=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){pe=t;return}pe=t=i}while(t!==null);He=6,pe=null}function xp(t,r,i,s,h,g,T,O,U){t.cancelPendingCommit=null;do wo();while(dr!==0);if((Ee&6)!==0)throw Error(a(327));if(r!==null){if(r===t.current)throw Error(a(177));if(g=r.lanes|r.childLanes,g|=Pu,$r(t,i,g,T,O,U),t===Oe&&(pe=Oe=null,ye=0),Qa=r,Bi=t,Ya=i,Zf=g,Jf=h,cp=s,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,x1(Rt,function(){return Sp(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||s){s=m.T,m.T=null,h=v.p,v.p=2,T=Ee,Ee|=4;try{f1(t,r,i)}finally{Ee=T,v.p=h,m.T=s}}dr=1,Ap(),_p(),Ep()}}function Ap(){if(dr===1){dr=0;var t=Bi,r=Qa,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=m.T,m.T=null;var s=v.p;v.p=2;var h=Ee;Ee|=4;try{ip(r,t);var g=hc,T=f0(t.containerInfo),O=g.focusedElem,U=g.selectionRange;if(T!==O&&O&&O.ownerDocument&&u0(O.ownerDocument.documentElement,O)){if(U!==null&&qu(O)){var Z=U.start,nt=U.end;if(nt===void 0&&(nt=Z),"selectionStart"in O)O.selectionStart=Z,O.selectionEnd=Math.min(nt,O.value.length);else{var st=O.ownerDocument||document,$=st&&st.defaultView||window;if($.getSelection){var tt=$.getSelection(),ie=O.textContent.length,Gt=Math.min(U.start,ie),Ne=U.end===void 0?Gt:Math.min(U.end,ie);!tt.extend&&Gt>Ne&&(T=Ne,Ne=Gt,Gt=T);var P=o0(O,Gt),j=o0(O,Ne);if(P&&j&&(tt.rangeCount!==1||tt.anchorNode!==P.node||tt.anchorOffset!==P.offset||tt.focusNode!==j.node||tt.focusOffset!==j.offset)){var X=st.createRange();X.setStart(P.node,P.offset),tt.removeAllRanges(),Gt>Ne?(tt.addRange(X),tt.extend(j.node,j.offset)):(X.setEnd(j.node,j.offset),tt.addRange(X))}}}}for(st=[],tt=O;tt=tt.parentNode;)tt.nodeType===1&&st.push({element:tt,left:tt.scrollLeft,top:tt.scrollTop});for(typeof O.focus=="function"&&O.focus(),O=0;O<st.length;O++){var it=st[O];it.element.scrollLeft=it.left,it.element.scrollTop=it.top}}Bo=!!cc,hc=cc=null}finally{Ee=h,v.p=s,m.T=i}}t.current=r,dr=2}}function _p(){if(dr===2){dr=0;var t=Bi,r=Qa,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=m.T,m.T=null;var s=v.p;v.p=2;var h=Ee;Ee|=4;try{tp(t,r.alternate,r)}finally{Ee=h,v.p=s,m.T=i}}dr=3}}function Ep(){if(dr===4||dr===3){dr=0,nr();var t=Bi,r=Qa,i=Ya,s=cp;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?dr=5:(dr=0,Qa=Bi=null,Mp(t,t.pendingLanes));var h=t.pendingLanes;if(h===0&&(Oi=null),Qt(i),r=r.stateNode,xt&&typeof xt.onCommitFiberRoot=="function")try{xt.onCommitFiberRoot(Tt,r,void 0,(r.current.flags&128)===128)}catch{}if(s!==null){r=m.T,h=v.p,v.p=2,m.T=null;try{for(var g=t.onRecoverableError,T=0;T<s.length;T++){var O=s[T];g(O.value,{componentStack:O.stack})}}finally{m.T=r,v.p=h}}(Ya&3)!==0&&wo(),qn(t),h=t.pendingLanes,(i&4194090)!==0&&(h&42)!==0?t===Ff?Pl++:(Pl=0,Ff=t):Pl=0,Ql(0)}}function Mp(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,_l(r)))}function wo(t){return Ap(),_p(),Ep(),Sp()}function Sp(){if(dr!==5)return!1;var t=Bi,r=Zf;Zf=0;var i=Qt(Ya),s=m.T,h=v.p;try{v.p=32>i?32:i,m.T=null,i=Jf,Jf=null;var g=Bi,T=Ya;if(dr=0,Qa=Bi=null,Ya=0,(Ee&6)!==0)throw Error(a(331));var O=Ee;if(Ee|=4,up(g.current),lp(g,g.current,T,i),Ee=O,Ql(0,!1),xt&&typeof xt.onPostCommitFiberRoot=="function")try{xt.onPostCommitFiberRoot(Tt,g)}catch{}return!0}finally{v.p=h,m.T=s,Mp(t,r)}}function Tp(t,r,i){r=sn(i,r),r=Rf(t.stateNode,r,2),t=Ai(t,r,2),t!==null&&(Lt(t,2),qn(t))}function Ce(t,r,i){if(t.tag===3)Tp(t,t,i);else for(;r!==null;){if(r.tag===3){Tp(r,t,i);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(Oi===null||!Oi.has(s))){t=sn(i,t),i=Od(2),s=Ai(r,i,2),s!==null&&(Bd(i,s,r,t),Lt(s,2),qn(s));break}}r=r.return}}function ec(t,r,i){var s=t.pingCache;if(s===null){s=t.pingCache=new d1;var h=new Set;s.set(r,h)}else h=s.get(r),h===void 0&&(h=new Set,s.set(r,h));h.has(i)||(Yf=!0,h.add(i),t=y1.bind(null,t,r,i),r.then(t,t))}function y1(t,r,i){var s=t.pingCache;s!==null&&s.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,Oe===t&&(ye&i)===i&&(He===4||He===3&&(ye&62914560)===ye&&300>wt()-Kf?(Ee&2)===0&&Xa(t,0):Xf|=i,Pa===ye&&(Pa=0)),qn(t)}function Np(t,r){r===0&&(r=Hr()),t=Na(t,r),t!==null&&(Lt(t,r),qn(t))}function b1(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),Np(t,i)}function w1(t,r){var i=0;switch(t.tag){case 13:var s=t.stateNode,h=t.memoizedState;h!==null&&(i=h.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(a(314))}s!==null&&s.delete(r),Np(t,i)}function x1(t,r){return de(t,r)}var xo=null,Ka=null,rc=!1,Ao=!1,nc=!1,oa=0;function qn(t){t!==Ka&&t.next===null&&(Ka===null?xo=Ka=t:Ka=Ka.next=t),Ao=!0,rc||(rc=!0,_1())}function Ql(t,r){if(!nc&&Ao){nc=!0;do for(var i=!1,s=xo;s!==null;){if(t!==0){var h=s.pendingLanes;if(h===0)var g=0;else{var T=s.suspendedLanes,O=s.pingedLanes;g=(1<<31-Et(42|t)+1)-1,g&=h&~(T&~O),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(i=!0,Bp(s,g))}else g=ye,g=It(s,s===Oe?g:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(g&3)===0||yr(s,g)||(i=!0,Bp(s,g));s=s.next}while(i);nc=!1}}function A1(){Rp()}function Rp(){Ao=rc=!1;var t=0;oa!==0&&(O1()&&(t=oa),oa=0);for(var r=wt(),i=null,s=xo;s!==null;){var h=s.next,g=Cp(s,r);g===0?(s.next=null,i===null?xo=h:i.next=h,h===null&&(Ka=i)):(i=s,(t!==0||(g&3)!==0)&&(Ao=!0)),s=h}Ql(t)}function Cp(t,r){for(var i=t.suspendedLanes,s=t.pingedLanes,h=t.expirationTimes,g=t.pendingLanes&-62914561;0<g;){var T=31-Et(g),O=1<<T,U=h[T];U===-1?((O&i)===0||(O&s)!==0)&&(h[T]=re(O,r)):U<=r&&(t.expiredLanes|=O),g&=~O}if(r=Oe,i=ye,i=It(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,i===0||t===r&&(Me===2||Me===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&ct(s),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||yr(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(s!==null&&ct(s),Qt(i)){case 2:case 8:i=Ut;break;case 32:i=Rt;break;case 268435456:i=zt;break;default:i=Rt}return s=Op.bind(null,t),i=de(i,s),t.callbackPriority=r,t.callbackNode=i,r}return s!==null&&s!==null&&ct(s),t.callbackPriority=2,t.callbackNode=null,2}function Op(t,r){if(dr!==0&&dr!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(wo()&&t.callbackNode!==i)return null;var s=ye;return s=It(t,t===Oe?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(dp(t,s,r),Cp(t,wt()),t.callbackNode!=null&&t.callbackNode===i?Op.bind(null,t):null)}function Bp(t,r){if(wo())return null;dp(t,r,!0)}function _1(){k1(function(){(Ee&6)!==0?de(vr,A1):Rp()})}function ic(){return oa===0&&(oa=Zt()),oa}function kp(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Bs(""+t)}function Dp(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function E1(t,r,i,s,h){if(r==="submit"&&i&&i.stateNode===h){var g=kp((h[ke]||null).action),T=s.submitter;T&&(r=(r=T[ke]||null)?kp(r.formAction):T.getAttribute("formAction"),r!==null&&(g=r,T=null));var O=new zs("action","action",null,s,h);t.push({event:O,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(oa!==0){var U=T?Dp(h,T):new FormData(h);Ef(i,{pending:!0,data:U,method:h.method,action:g},null,U)}}else typeof g=="function"&&(O.preventDefault(),U=T?Dp(h,T):new FormData(h),Ef(i,{pending:!0,data:U,method:h.method,action:g},g,U))},currentTarget:h}]})}}for(var ac=0;ac<Gu.length;ac++){var lc=Gu[ac],M1=lc.toLowerCase(),S1=lc[0].toUpperCase()+lc.slice(1);An(M1,"on"+S1)}An(d0,"onAnimationEnd"),An(p0,"onAnimationIteration"),An(m0,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Py,"onTransitionRun"),An(Qy,"onTransitionStart"),An(Yy,"onTransitionCancel"),An(g0,"onTransitionEnd"),We("onMouseEnter",["mouseout","mouseover"]),We("onMouseLeave",["mouseout","mouseover"]),We("onPointerEnter",["pointerout","pointerover"]),We("onPointerLeave",["pointerout","pointerover"]),Ye("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ye("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ye("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ye("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ye("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ye("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Yl="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(" "),T1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Yl));function Up(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var s=t[i],h=s.event;s=s.listeners;t:{var g=void 0;if(r)for(var T=s.length-1;0<=T;T--){var O=s[T],U=O.instance,Z=O.currentTarget;if(O=O.listener,U!==g&&h.isPropagationStopped())break t;g=O,h.currentTarget=Z;try{g(h)}catch(nt){oo(nt)}h.currentTarget=null,g=U}else for(T=0;T<s.length;T++){if(O=s[T],U=O.instance,Z=O.currentTarget,O=O.listener,U!==g&&h.isPropagationStopped())break t;g=O,h.currentTarget=Z;try{g(h)}catch(nt){oo(nt)}h.currentTarget=null,g=U}}}}function me(t,r){var i=r[Yt];i===void 0&&(i=r[Yt]=new Set);var s=t+"__bubble";i.has(s)||(zp(r,t,2,!1),i.add(s))}function sc(t,r,i){var s=0;r&&(s|=4),zp(i,t,s,r)}var _o="_reactListening"+Math.random().toString(36).slice(2);function oc(t){if(!t[_o]){t[_o]=!0,Tr.forEach(function(i){i!=="selectionchange"&&(T1.has(i)||sc(i,!1,t),sc(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[_o]||(r[_o]=!0,sc("selectionchange",!1,r))}}function zp(t,r,i,s){switch(lm(r)){case 2:var h=tb;break;case 8:h=eb;break;default:h=Ac}i=h.bind(null,r,i,t),h=void 0,!Ru||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(h=!0),s?h!==void 0?t.addEventListener(r,i,{capture:!0,passive:h}):t.addEventListener(r,i,!0):h!==void 0?t.addEventListener(r,i,{passive:h}):t.addEventListener(r,i,!1)}function uc(t,r,i,s,h){var g=s;if((r&1)===0&&(r&2)===0&&s!==null)t:for(;;){if(s===null)return;var T=s.tag;if(T===3||T===4){var O=s.stateNode.containerInfo;if(O===h)break;if(T===4)for(T=s.return;T!==null;){var U=T.tag;if((U===3||U===4)&&T.stateNode.containerInfo===h)return;T=T.return}for(;O!==null;){if(T=kt(O),T===null)return;if(U=T.tag,U===5||U===6||U===26||U===27){s=g=T;continue t}O=O.parentNode}}s=s.return}Ph(function(){var Z=g,nt=Tu(i),st=[];t:{var $=v0.get(t);if($!==void 0){var tt=zs,ie=t;switch(t){case"keypress":if(Ds(i)===0)break t;case"keydown":case"keyup":tt=xy;break;case"focusin":ie="focus",tt=ku;break;case"focusout":ie="blur",tt=ku;break;case"beforeblur":case"afterblur":tt=ku;break;case"click":if(i.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":tt=Xh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":tt=uy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":tt=Ey;break;case d0:case p0:case m0:tt=hy;break;case g0:tt=Sy;break;case"scroll":case"scrollend":tt=sy;break;case"wheel":tt=Ny;break;case"copy":case"cut":case"paste":tt=py;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":tt=Kh;break;case"toggle":case"beforetoggle":tt=Cy}var Gt=(r&4)!==0,Ne=!Gt&&(t==="scroll"||t==="scrollend"),P=Gt?$!==null?$+"Capture":null:$;Gt=[];for(var j=Z,X;j!==null;){var it=j;if(X=it.stateNode,it=it.tag,it!==5&&it!==26&&it!==27||X===null||P===null||(it=fl(j,P),it!=null&&Gt.push(Xl(j,it,X))),Ne)break;j=j.return}0<Gt.length&&($=new tt($,ie,null,i,nt),st.push({event:$,listeners:Gt}))}}if((r&7)===0){t:{if($=t==="mouseover"||t==="pointerover",tt=t==="mouseout"||t==="pointerout",$&&i!==Su&&(ie=i.relatedTarget||i.fromElement)&&(kt(ie)||ie[Bt]))break t;if((tt||$)&&($=nt.window===nt?nt:($=nt.ownerDocument)?$.defaultView||$.parentWindow:window,tt?(ie=i.relatedTarget||i.toElement,tt=Z,ie=ie?kt(ie):null,ie!==null&&(Ne=u(ie),Gt=ie.tag,ie!==Ne||Gt!==5&&Gt!==27&&Gt!==6)&&(ie=null)):(tt=null,ie=Z),tt!==ie)){if(Gt=Xh,it="onMouseLeave",P="onMouseEnter",j="mouse",(t==="pointerout"||t==="pointerover")&&(Gt=Kh,it="onPointerLeave",P="onPointerEnter",j="pointer"),Ne=tt==null?$:qt(tt),X=ie==null?$:qt(ie),$=new Gt(it,j+"leave",tt,i,nt),$.target=Ne,$.relatedTarget=X,it=null,kt(nt)===Z&&(Gt=new Gt(P,j+"enter",ie,i,nt),Gt.target=X,Gt.relatedTarget=Ne,it=Gt),Ne=it,tt&&ie)e:{for(Gt=tt,P=ie,j=0,X=Gt;X;X=Za(X))j++;for(X=0,it=P;it;it=Za(it))X++;for(;0<j-X;)Gt=Za(Gt),j--;for(;0<X-j;)P=Za(P),X--;for(;j--;){if(Gt===P||P!==null&&Gt===P.alternate)break e;Gt=Za(Gt),P=Za(P)}Gt=null}else Gt=null;tt!==null&&Lp(st,$,tt,Gt,!1),ie!==null&&Ne!==null&&Lp(st,Ne,ie,Gt,!0)}}t:{if($=Z?qt(Z):window,tt=$.nodeName&&$.nodeName.toLowerCase(),tt==="select"||tt==="input"&&$.type==="file")var bt=r0;else if(t0($))if(n0)bt=jy;else{bt=qy;var ce=Ly}else tt=$.nodeName,!tt||tt.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?Z&&Mu(Z.elementType)&&(bt=r0):bt=Hy;if(bt&&(bt=bt(t,Z))){e0(st,bt,i,nt);break t}ce&&ce(t,$,Z),t==="focusout"&&Z&&$.type==="number"&&Z.memoizedProps.value!=null&&Eu($,"number",$.value)}switch(ce=Z?qt(Z):window,t){case"focusin":(t0(ce)||ce.contentEditable==="true")&&(Ma=ce,Hu=Z,yl=null);break;case"focusout":yl=Hu=Ma=null;break;case"mousedown":ju=!0;break;case"contextmenu":case"mouseup":case"dragend":ju=!1,c0(st,i,nt);break;case"selectionchange":if(Gy)break;case"keydown":case"keyup":c0(st,i,nt)}var Mt;if(Uu)t:{switch(t){case"compositionstart":var Vt="onCompositionStart";break t;case"compositionend":Vt="onCompositionEnd";break t;case"compositionupdate":Vt="onCompositionUpdate";break t}Vt=void 0}else Ea?Wh(t,i)&&(Vt="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Vt="onCompositionStart");Vt&&(Zh&&i.locale!=="ko"&&(Ea||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ea&&(Mt=Qh()):(yi=nt,Cu="value"in yi?yi.value:yi.textContent,Ea=!0)),ce=Eo(Z,Vt),0<ce.length&&(Vt=new Vh(Vt,t,null,i,nt),st.push({event:Vt,listeners:ce}),Mt?Vt.data=Mt:(Mt=$h(i),Mt!==null&&(Vt.data=Mt)))),(Mt=By?ky(t,i):Dy(t,i))&&(Vt=Eo(Z,"onBeforeInput"),0<Vt.length&&(ce=new Vh("onBeforeInput","beforeinput",null,i,nt),st.push({event:ce,listeners:Vt}),ce.data=Mt)),E1(st,t,Z,i,nt)}Up(st,r)})}function Xl(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Eo(t,r){for(var i=r+"Capture",s=[];t!==null;){var h=t,g=h.stateNode;if(h=h.tag,h!==5&&h!==26&&h!==27||g===null||(h=fl(t,i),h!=null&&s.unshift(Xl(t,h,g)),h=fl(t,r),h!=null&&s.push(Xl(t,h,g))),t.tag===3)return s;t=t.return}return[]}function Za(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Lp(t,r,i,s,h){for(var g=r._reactName,T=[];i!==null&&i!==s;){var O=i,U=O.alternate,Z=O.stateNode;if(O=O.tag,U!==null&&U===s)break;O!==5&&O!==26&&O!==27||Z===null||(U=Z,h?(Z=fl(i,g),Z!=null&&T.unshift(Xl(i,Z,U))):h||(Z=fl(i,g),Z!=null&&T.push(Xl(i,Z,U)))),i=i.return}T.length!==0&&t.push({event:r,listeners:T})}var N1=/\r\n?/g,R1=/\u0000|\uFFFD/g;function qp(t){return(typeof t=="string"?t:""+t).replace(N1,`
49`).replace(R1,"")}function Hp(t,r){return r=qp(r),qp(t)===r}function Mo(){}function Te(t,r,i,s,h,g){switch(i){case"children":typeof s=="string"?r==="body"||r==="textarea"&&s===""||xa(t,s):(typeof s=="number"||typeof s=="bigint")&&r!=="body"&&xa(t,""+s);break;case"className":nn(t,"class",s);break;case"tabIndex":nn(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":nn(t,i,s);break;case"style":Ih(t,s,g);break;case"data":if(r!=="object"){nn(t,"data",s);break}case"src":case"href":if(s===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=Bs(""+s),t.setAttribute(i,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(i,"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 g=="function"&&(i==="formAction"?(r!=="input"&&Te(t,r,"name",h.name,h,null),Te(t,r,"formEncType",h.formEncType,h,null),Te(t,r,"formMethod",h.formMethod,h,null),Te(t,r,"formTarget",h.formTarget,h,null)):(Te(t,r,"encType",h.encType,h,null),Te(t,r,"method",h.method,h,null),Te(t,r,"target",h.target,h,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(i);break}s=Bs(""+s),t.setAttribute(i,s);break;case"onClick":s!=null&&(t.onclick=Mo);break;case"onScroll":s!=null&&me("scroll",t);break;case"onScrollEnd":s!=null&&me("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(i=s.__html,i!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}i=Bs(""+s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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"?t.setAttribute(i,""+s):t.removeAttribute(i);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"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":s===!0?t.setAttribute(i,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(i,s):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(i,s):t.removeAttribute(i);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(i):t.setAttribute(i,s);break;case"popover":me("beforetoggle",t),me("toggle",t),rn(t,"popover",s);break;case"xlinkActuate":cr(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":cr(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":cr(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":cr(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":cr(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":cr(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":cr(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":cr(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":cr(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":rn(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ay.get(i)||i,rn(t,i,s))}}function fc(t,r,i,s,h,g){switch(i){case"style":Ih(t,s,g);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(a(61));if(i=s.__html,i!=null){if(h.children!=null)throw Error(a(60));t.innerHTML=i}}break;case"children":typeof s=="string"?xa(t,s):(typeof s=="number"||typeof s=="bigint")&&xa(t,""+s);break;case"onScroll":s!=null&&me("scroll",t);break;case"onScrollEnd":s!=null&&me("scrollend",t);break;case"onClick":s!=null&&(t.onclick=Mo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Nr.hasOwnProperty(i))t:{if(i[0]==="o"&&i[1]==="n"&&(h=i.endsWith("Capture"),r=i.slice(2,h?i.length-7:void 0),g=t[ke]||null,g=g!=null?g[i]:null,typeof g=="function"&&t.removeEventListener(r,g,h),typeof s=="function")){typeof g!="function"&&g!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,s,h);break t}i in t?t[i]=s:s===!0?t.setAttribute(i,""):rn(t,i,s)}}}function pr(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",t),me("load",t);var s=!1,h=!1,g;for(g in i)if(i.hasOwnProperty(g)){var T=i[g];if(T!=null)switch(g){case"src":s=!0;break;case"srcSet":h=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Te(t,r,g,T,i,null)}}h&&Te(t,r,"srcSet",i.srcSet,i,null),s&&Te(t,r,"src",i.src,i,null);return;case"input":me("invalid",t);var O=g=T=h=null,U=null,Z=null;for(s in i)if(i.hasOwnProperty(s)){var nt=i[s];if(nt!=null)switch(s){case"name":h=nt;break;case"type":T=nt;break;case"checked":U=nt;break;case"defaultChecked":Z=nt;break;case"value":g=nt;break;case"defaultValue":O=nt;break;case"children":case"dangerouslySetInnerHTML":if(nt!=null)throw Error(a(137,r));break;default:Te(t,r,s,nt,i,null)}}Lh(t,g,O,U,Z,T,h,!1),Cs(t);return;case"select":me("invalid",t),s=T=g=null;for(h in i)if(i.hasOwnProperty(h)&&(O=i[h],O!=null))switch(h){case"value":g=O;break;case"defaultValue":T=O;break;case"multiple":s=O;default:Te(t,r,h,O,i,null)}r=g,i=T,t.multiple=!!s,r!=null?wa(t,!!s,r,!1):i!=null&&wa(t,!!s,i,!0);return;case"textarea":me("invalid",t),g=h=s=null;for(T in i)if(i.hasOwnProperty(T)&&(O=i[T],O!=null))switch(T){case"value":s=O;break;case"defaultValue":h=O;break;case"children":g=O;break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(a(91));break;default:Te(t,r,T,O,i,null)}Hh(t,s,h,g),Cs(t);return;case"option":for(U in i)if(i.hasOwnProperty(U)&&(s=i[U],s!=null))switch(U){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Te(t,r,U,s,i,null)}return;case"dialog":me("beforetoggle",t),me("toggle",t),me("cancel",t),me("close",t);break;case"iframe":case"object":me("load",t);break;case"video":case"audio":for(s=0;s<Yl.length;s++)me(Yl[s],t);break;case"image":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"embed":case"source":case"link":me("error",t),me("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in i)if(i.hasOwnProperty(Z)&&(s=i[Z],s!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,r));default:Te(t,r,Z,s,i,null)}return;default:if(Mu(r)){for(nt in i)i.hasOwnProperty(nt)&&(s=i[nt],s!==void 0&&fc(t,r,nt,s,i,void 0));return}}for(O in i)i.hasOwnProperty(O)&&(s=i[O],s!=null&&Te(t,r,O,s,i,null))}function C1(t,r,i,s){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var h=null,g=null,T=null,O=null,U=null,Z=null,nt=null;for(tt in i){var st=i[tt];if(i.hasOwnProperty(tt)&&st!=null)switch(tt){case"checked":break;case"value":break;case"defaultValue":U=st;default:s.hasOwnProperty(tt)||Te(t,r,tt,null,s,st)}}for(var $ in s){var tt=s[$];if(st=i[$],s.hasOwnProperty($)&&(tt!=null||st!=null))switch($){case"type":g=tt;break;case"name":h=tt;break;case"checked":Z=tt;break;case"defaultChecked":nt=tt;break;case"value":T=tt;break;case"defaultValue":O=tt;break;case"children":case"dangerouslySetInnerHTML":if(tt!=null)throw Error(a(137,r));break;default:tt!==st&&Te(t,r,$,tt,s,st)}}_u(t,T,O,U,Z,nt,g,h);return;case"select":tt=T=O=$=null;for(g in i)if(U=i[g],i.hasOwnProperty(g)&&U!=null)switch(g){case"value":break;case"multiple":tt=U;default:s.hasOwnProperty(g)||Te(t,r,g,null,s,U)}for(h in s)if(g=s[h],U=i[h],s.hasOwnProperty(h)&&(g!=null||U!=null))switch(h){case"value":$=g;break;case"defaultValue":O=g;break;case"multiple":T=g;default:g!==U&&Te(t,r,h,g,s,U)}r=O,i=T,s=tt,$!=null?wa(t,!!i,$,!1):!!s!=!!i&&(r!=null?wa(t,!!i,r,!0):wa(t,!!i,i?[]:"",!1));return;case"textarea":tt=$=null;for(O in i)if(h=i[O],i.hasOwnProperty(O)&&h!=null&&!s.hasOwnProperty(O))switch(O){case"value":break;case"children":break;default:Te(t,r,O,null,s,h)}for(T in s)if(h=s[T],g=i[T],s.hasOwnProperty(T)&&(h!=null||g!=null))switch(T){case"value":$=h;break;case"defaultValue":tt=h;break;case"children":break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(a(91));break;default:h!==g&&Te(t,r,T,h,s,g)}qh(t,$,tt);return;case"option":for(var ie in i)if($=i[ie],i.hasOwnProperty(ie)&&$!=null&&!s.hasOwnProperty(ie))switch(ie){case"selected":t.selected=!1;break;default:Te(t,r,ie,null,s,$)}for(U in s)if($=s[U],tt=i[U],s.hasOwnProperty(U)&&$!==tt&&($!=null||tt!=null))switch(U){case"selected":t.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Te(t,r,U,$,s,tt)}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 Gt in i)$=i[Gt],i.hasOwnProperty(Gt)&&$!=null&&!s.hasOwnProperty(Gt)&&Te(t,r,Gt,null,s,$);for(Z in s)if($=s[Z],tt=i[Z],s.hasOwnProperty(Z)&&$!==tt&&($!=null||tt!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(a(137,r));break;default:Te(t,r,Z,$,s,tt)}return;default:if(Mu(r)){for(var Ne in i)$=i[Ne],i.hasOwnProperty(Ne)&&$!==void 0&&!s.hasOwnProperty(Ne)&&fc(t,r,Ne,void 0,s,$);for(nt in s)$=s[nt],tt=i[nt],!s.hasOwnProperty(nt)||$===tt||$===void 0&&tt===void 0||fc(t,r,nt,$,s,tt);return}}for(var P in i)$=i[P],i.hasOwnProperty(P)&&$!=null&&!s.hasOwnProperty(P)&&Te(t,r,P,null,s,$);for(st in s)$=s[st],tt=i[st],!s.hasOwnProperty(st)||$===tt||$==null&&tt==null||Te(t,r,st,$,s,tt)}var cc=null,hc=null;function So(t){return t.nodeType===9?t:t.ownerDocument}function jp(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ip(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function dc(t,r){return t==="textarea"||t==="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 pc=null;function O1(){var t=window.event;return t&&t.type==="popstate"?t===pc?!1:(pc=t,!0):(pc=null,!1)}var Gp=typeof setTimeout=="function"?setTimeout:void 0,B1=typeof clearTimeout=="function"?clearTimeout:void 0,Pp=typeof Promise=="function"?Promise:void 0,k1=typeof queueMicrotask=="function"?queueMicrotask:typeof Pp<"u"?function(t){return Pp.resolve(null).then(t).cat
vendor: 21,349 bytes, line 49
49ch(D1)}:Gp;function D1(t){setTimeout(function(){throw t})}function Di(t){return t==="head"}function Qp(t,r){var i=r,s=0,h=0;do{var g=i.nextSibling;if(t.removeChild(i),g&&g.nodeType===8)if(i=g.data,i==="/$"){if(0<s&&8>s){i=s;var T=t.ownerDocument;if(i&1&&Vl(T.documentElement),i&2&&Vl(T.body),i&4)for(i=T.head,Vl(i),T=i.firstChild;T;){var O=T.nextSibling,U=T.nodeName;T[br]||U==="SCRIPT"||U==="STYLE"||U==="LINK"&&T.rel.toLowerCase()==="stylesheet"||i.removeChild(T),T=O}}if(h===0){t.removeChild(g),es(r);return}h--}else i==="$"||i==="$?"||i==="$!"?h++:s=i.charCodeAt(0)-48;else s=0;i=g}while(i);es(r)}function mc(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mc(i),Xt(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function U1(t,r,i,s){for(;t.nodeType===1;){var h=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[br])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(g=t.getAttribute("rel"),g==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(g!==h.rel||t.getAttribute("href")!==(h.href==null||h.href===""?null:h.href)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin)||t.getAttribute("title")!==(h.title==null?null:h.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(g=t.getAttribute("src"),(g!==(h.src==null?null:h.src)||t.getAttribute("type")!==(h.type==null?null:h.type)||t.getAttribute("crossorigin")!==(h.crossOrigin==null?null:h.crossOrigin))&&g&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var g=h.name==null?null:""+h.name;if(h.type==="hidden"&&t.getAttribute("name")===g)return t}else return t;if(t=En(t.nextSibling),t===null)break}return null}function z1(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=En(t.nextSibling),t===null))return null;return t}function gc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function L1(t,r){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")r();else{var s=function(){r(),i.removeEventListener("DOMContentLoaded",s)};i.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function En(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var vc=null;function Yp(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}function Xp(t,r,i){switch(r=So(i),t){case"html":if(t=r.documentElement,!t)throw Error(a(452));return t;case"head":if(t=r.head,!t)throw Error(a(453));return t;case"body":if(t=r.body,!t)throw Error(a(454));return t;default:throw Error(a(451))}}function Vl(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Xt(t)}var dn=new Map,Vp=new Set;function To(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ui=v.d;v.d={f:q1,r:H1,D:j1,C:I1,L:G1,m:P1,X:Y1,S:Q1,M:X1};function q1(){var t=ui.f(),r=yo();return t||r}function H1(t){var r=fr(t);r!==null&&r.tag===5&&r.type==="form"?dd(r):ui.r(t)}var Ja=typeof document>"u"?null:document;function Kp(t,r,i){var s=Ja;if(s&&typeof r=="string"&&r){var h=ln(r);h='link[rel="'+t+'"][href="'+h+'"]',typeof i=="string"&&(h+='[crossorigin="'+i+'"]'),Vp.has(h)||(Vp.add(h),t={rel:t,crossOrigin:i,href:r},s.querySelector(h)===null&&(r=s.createElement("link"),pr(r,"link",t),xe(r),s.head.appendChild(r)))}}function j1(t){ui.D(t),Kp("dns-prefetch",t,null)}function I1(t,r){ui.C(t,r),Kp("preconnect",t,r)}function G1(t,r,i){ui.L(t,r,i);var s=Ja;if(s&&t&&r){var h='link[rel="preload"][as="'+ln(r)+'"]';r==="image"&&i&&i.imageSrcSet?(h+='[imagesrcset="'+ln(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(h+='[imagesizes="'+ln(i.imageSizes)+'"]')):h+='[href="'+ln(t)+'"]';var g=h;switch(r){case"style":g=Fa(t);break;case"script":g=Wa(t)}dn.has(g)||(t=N({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),dn.set(g,t),s.querySelector(h)!==null||r==="style"&&s.querySelector(Kl(g))||r==="script"&&s.querySelector(Zl(g))||(r=s.createElement("link"),pr(r,"link",t),xe(r),s.head.appendChild(r)))}}function P1(t,r){ui.m(t,r);var i=Ja;if(i&&t){var s=r&&typeof r.as=="string"?r.as:"script",h='link[rel="modulepreload"][as="'+ln(s)+'"][href="'+ln(t)+'"]',g=h;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Wa(t)}if(!dn.has(g)&&(t=N({rel:"modulepreload",href:t},r),dn.set(g,t),i.querySelector(h)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Zl(g)))return}s=i.createElement("link"),pr(s,"link",t),xe(s),i.head.appendChild(s)}}}function Q1(t,r,i){ui.S(t,r,i);var s=Ja;if(s&&t){var h=Dt(s).hoistableStyles,g=Fa(t);r=r||"default";var T=h.get(g);if(!T){var O={loading:0,preload:null};if(T=s.querySelector(Kl(g)))O.loading=5;else{t=N({rel:"stylesheet",href:t,"data-precedence":r},i),(i=dn.get(g))&&yc(t,i);var U=T=s.createElement("link");xe(U),pr(U,"link",t),U._p=new Promise(function(Z,nt){U.onload=Z,U.onerror=nt}),U.addEventListener("load",function(){O.loading|=1}),U.addEventListener("error",function(){O.loading|=2}),O.loading|=4,No(T,r,s)}T={type:"stylesheet",instance:T,count:1,state:O},h.set(g,T)}}}function Y1(t,r){ui.X(t,r);var i=Ja;if(i&&t){var s=Dt(i).hoistableScripts,h=Wa(t),g=s.get(h);g||(g=i.querySelector(Zl(h)),g||(t=N({src:t,async:!0},r),(r=dn.get(h))&&bc(t,r),g=i.createElement("script"),xe(g),pr(g,"link",t),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(h,g))}}function X1(t,r){ui.M(t,r);var i=Ja;if(i&&t){var s=Dt(i).hoistableScripts,h=Wa(t),g=s.get(h);g||(g=i.querySelector(Zl(h)),g||(t=N({src:t,async:!0,type:"module"},r),(r=dn.get(h))&&bc(t,r),g=i.createElement("script"),xe(g),pr(g,"link",t),i.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},s.set(h,g))}}function Zp(t,r,i,s){var h=(h=D.current)?To(h):null;if(!h)throw Error(a(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=Fa(i.href),i=Dt(h).hoistableStyles,s=i.get(r),s||(s={type:"style",instance:null,count:0,state:null},i.set(r,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Fa(i.href);var g=Dt(h).hoistableStyles,T=g.get(t);if(T||(h=h.ownerDocument||h,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(t,T),(g=h.querySelector(Kl(t)))&&!g._p&&(T.instance=g,T.state.loading=5),dn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},dn.set(t,i),g||V1(h,t,i,T.state))),r&&s===null)throw Error(a(528,""));return T}if(r&&s!==null)throw Error(a(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Wa(i),i=Dt(h).hoistableScripts,s=i.get(r),s||(s={type:"script",instance:null,count:0,state:null},i.set(r,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,t))}}function Fa(t){return'href="'+ln(t)+'"'}function Kl(t){return'link[rel="stylesheet"]['+t+"]"}function Jp(t){return N({},t,{"data-precedence":t.precedence,precedence:null})}function V1(t,r,i,s){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?s.loading=1:(r=t.createElement("link"),s.preload=r,r.addEventListener("load",function(){return s.loading|=1}),r.addEventListener("error",function(){return s.loading|=2}),pr(r,"link",i),xe(r),t.head.appendChild(r))}function Wa(t){return'[src="'+ln(t)+'"]'}function Zl(t){return"script[async]"+t}function Fp(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var s=t.querySelector('style[data-href~="'+ln(i.href)+'"]');if(s)return r.instance=s,xe(s),s;var h=N({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),xe(s),pr(s,"style",h),No(s,i.precedence,t),r.instance=s;case"stylesheet":h=Fa(i.href);var g=t.querySelector(Kl(h));if(g)return r.state.loading|=4,r.instance=g,xe(g),g;s=Jp(i),(h=dn.get(h))&&yc(s,h),g=(t.ownerDocument||t).createElement("link"),xe(g);var T=g;return T._p=new Promise(function(O,U){T.onload=O,T.onerror=U}),pr(g,"link",s),r.state.loading|=4,No(g,i.precedence,t),r.instance=g;case"script":return g=Wa(i.src),(h=t.querySelector(Zl(g)))?(r.instance=h,xe(h),h):(s=i,(h=dn.get(g))&&(s=N({},i),bc(s,h)),t=t.ownerDocument||t,h=t.createElement("script"),xe(h),pr(h,"link",s),t.head.appendChild(h),r.instance=h);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,No(s,i.precedence,t));return r.instance}function No(t,r,i){for(var s=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),h=s.length?s[s.length-1]:null,g=h,T=0;T<s.length;T++){var O=s[T];if(O.dataset.precedence===r)g=O;else if(g!==h)break}g?g.parentNode.insertBefore(t,g.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function yc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function bc(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Ro=null;function Wp(t,r,i){if(Ro===null){var s=new Map,h=Ro=new Map;h.set(i,s)}else h=Ro,s=h.get(i),s||(s=new Map,h.set(i,s));if(s.has(t))return s;for(s.set(t,null),i=i.getElementsByTagName(t),h=0;h<i.length;h++){var g=i[h];if(!(g[br]||g[At]||t==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var T=g.getAttribute(r)||"";T=t+T;var O=s.get(T);O?O.push(g):s.set(T,[g])}}return s}function $p(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function K1(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){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 t=r.disabled,typeof r.precedence=="string"&&t==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 tm(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Jl=null;function Z1(){}function J1(t,r,i){if(Jl===null)throw Error(a(475));var s=Jl;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var h=Fa(i.href),g=t.querySelector(Kl(h));if(g){t=g._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(s.count++,s=Co.bind(s),t.then(s,s)),r.state.loading|=4,r.instance=g,xe(g);return}g=t.ownerDocument||t,i=Jp(i),(h=dn.get(h))&&yc(i,h),g=g.createElement("link"),xe(g);var T=g;T._p=new Promise(function(O,U){T.onload=O,T.onerror=U}),pr(g,"link",i),r.instance=g}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(s.count++,r=Co.bind(s),t.addEventListener("load",r),t.addEventListener("error",r))}}function F1(){if(Jl===null)throw Error(a(475));var t=Jl;return t.stylesheets&&t.count===0&&wc(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&wc(t,t.stylesheets),t.unsuspend){var s=t.unsuspend;t.unsuspend=null,s()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Co(){if(this.count--,this.count===0){if(this.stylesheets)wc(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Oo=null;function wc(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Oo=new Map,r.forEach(W1,t),Oo=null,Co.call(t))}function W1(t,r){if(!(r.state.loading&4)){var i=Oo.get(t);if(i)var s=i.get(null);else{i=new Map,Oo.set(t,i);for(var h=t.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<h.length;g++){var T=h[g];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(i.set(T.dataset.precedence,T),s=T)}s&&i.set(null,s)}h=r.instance,T=h.getAttribute("data-precedence"),g=i.get(T)||s,g===s&&i.set(null,h),i.set(T,h),this.count++,s=Co.bind(this),h.addEventListener("load",s),h.addEventListener("error",s),g?g.parentNode.insertBefore(h,g.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(h,t.firstChild)),r.state.loading|=4}}var Fl={$$typeof:I,Provider:null,Consumer:null,_currentValue:x,_currentValue2:x,_threadCount:0};function $1(t,r,i,s,h,g,T,O){this.tag=1,this.containerInfo=t,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=Pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pt(0),this.hiddenUpdates=Pt(null),this.identifierPrefix=s,this.onUncaughtError=h,this.onCaughtError=g,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function em(t,r,i,s,h,g,T,O,U,Z,nt,st){return t=new $1(t,r,i,T,O,U,Z,st),r=1,g===!0&&(r|=24),g=Ir(3,null,null,r),t.current=g,g.stateNode=t,r=tf(),r.refCount++,t.pooledCache=r,r.refCount++,g.memoizedState={element:s,isDehydrated:i,cache:r},af(g),t}function rm(t){return t?(t=Ra,t):Ra}function nm(t,r,i,s,h,g){h=rm(h),s.context===null?s.context=h:s.pendingContext=h,s=xi(r),s.payload={element:i},g=g===void 0?null:g,g!==null&&(s.callback=g),i=Ai(t,s,r),i!==null&&(Xr(i,t,r),Tl(i,t,r))}function im(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function xc(t,r){im(t,r),(t=t.alternate)&&im(t,r)}function am(t){if(t.tag===13){var r=Na(t,67108864);r!==null&&Xr(r,t,67108864),xc(t,67108864)}}var Bo=!0;function tb(t,r,i,s){var h=m.T;m.T=null;var g=v.p;try{v.p=2,Ac(t,r,i,s)}finally{v.p=g,m.T=h}}function eb(t,r,i,s){var h=m.T;m.T=null;var g=v.p;try{v.p=8,Ac(t,r,i,s)}finally{v.p=g,m.T=h}}function Ac(t,r,i,s){if(Bo){var h=_c(s);if(h===null)uc(t,r,s,ko,i),sm(t,s);else if(nb(h,t,r,i,s))s.stopPropagation();else if(sm(t,s),r&4&&-1<rb.indexOf(t)){for(;h!==null;){var g=fr(h);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var T=Ct(g.pendingLanes);if(T!==0){var O=g;for(O.pendingLanes|=2,O.entangledLanes|=2;T;){var U=1<<31-Et(T);O.entanglements[1]|=U,T&=~U}qn(g),(Ee&6)===0&&(go=wt()+500,Ql(0))}}break;case 13:O=Na(g,2),O!==null&&Xr(O,g,2),yo(),xc(g,2)}if(g=_c(s),g===null&&uc(t,r,s,ko,i),g===h)break;h=g}h!==null&&s.stopPropagation()}else uc(t,r,s,null,i)}}function _c(t){return t=Tu(t),Ec(t)}var ko=null;function Ec(t){if(ko=null,t=kt(t),t!==null){var r=u(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=p(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return ko=t,null}function lm(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(Ht()){case vr:return 2;case Ut:return 8;case Rt:case Mr:return 32;case zt:return 268435456;default:return 32}default:return 32}}var Mc=!1,Ui=null,zi=null,Li=null,Wl=new Map,$l=new Map,qi=[],rb="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 sm(t,r){switch(t){case"focusin":case"focusout":Ui=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":Li=null;break;case"pointerover":case"pointerout":Wl.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":$l.delete(r.pointerId)}}function ts(t,r,i,s,h,g){return t===null||t.nativeEvent!==g?(t={blockedOn:r,domEventName:i,eventSystemFlags:s,nativeEvent:g,targetContainers:[h]},r!==null&&(r=fr(r),r!==null&&am(r)),t):(t.eventSystemFlags|=s,r=t.targetContainers,h!==null&&r.indexOf(h)===-1&&r.push(h),t)}function nb(t,r,i,s,h){switch(r){case"focusin":return Ui=ts(Ui,t,r,i,s,h),!0;case"dragenter":return zi=ts(zi,t,r,i,s,h),!0;case"mouseover":return Li=ts(Li,t,r,i,s,h),!0;case"pointerover":var g=h.pointerId;return Wl.set(g,ts(Wl.get(g)||null,t,r,i,s,h)),!0;case"gotpointercapture":return g=h.pointerId,$l.set(g,ts($l.get(g)||null,t,r,i,s,h)),!0}return!1}function om(t){var r=kt(t.target);if(r!==null){var i=u(r);if(i!==null){if(r=i.tag,r===13){if(r=p(i),r!==null){t.blockedOn=r,tn(t.priority,function(){if(i.tag===13){var s=Yr();s=Or(s);var h=Na(i,s);h!==null&&Xr(h,i,s),xc(i,s)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Do(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=_c(t.nativeEvent);if(i===null){i=t.nativeEvent;var s=new i.constructor(i.type,i);Su=s,i.target.dispatchEvent(s),Su=null}else return r=fr(i),r!==null&&am(r),t.blockedOn=i,!1;r.shift()}return!0}function um(t,r,i){Do(t)&&i.delete(r)}function ib(){Mc=!1,Ui!==null&&Do(Ui)&&(Ui=null),zi!==null&&Do(zi)&&(zi=null),Li!==null&&Do(Li)&&(Li=null),Wl.forEach(um),$l.forEach(um)}function Uo(t,r){t.blockedOn===r&&(t.blockedOn=null,Mc||(Mc=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ib)))}var zo=null;function fm(t){zo!==t&&(zo=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){zo===t&&(zo=null);for(var r=0;r<t.length;r+=3){var i=t[r],s=t[r+1],h=t[r+2];if(typeof s!="function"){if(Ec(s||i)===null)continue;break}var g=fr(i);g!==null&&(t.splice(r,3),r-=3,Ef(g,{pending:!0,data:h,method:i.method,action:s},s,h))}}))}function es(t){function r(U){return Uo(U,t)}Ui!==null&&Uo(Ui,t),zi!==null&&Uo(zi,t),Li!==null&&Uo(Li,t),Wl.forEach(r),$l.forEach(r);for(var i=0;i<qi.length;i++){var s=qi[i];s.blockedOn===t&&(s.blockedOn=null)}for(;0<qi.length&&(i=qi[0],i.blockedOn===null);)om(i),i.blockedOn===null&&qi.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(s=0;s<i.length;s+=3){var h=i[s],g=i[s+1],T=h[ke]||null;if(typeof g=="function")T||fm(i);else if(T){var O=null;if(g&&g.hasAttribute("formAction")){if(h=g,T=g[ke]||null)O=T.formAction;else if(Ec(h)!==null)continue}else O=T.action;typeof O=="function"?i[s+1]=O:(i.splice(s,3),s-=3),fm(i)}}}function Sc(t){this._internalRoot=t}Lo.prototype.render=Sc.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(a(409));var i=r.current,s=Yr();nm(i,s,t,r,null,null)},Lo.prototype.unmount=Sc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;nm(t.current,2,null,t,null,null),yo(),r[Bt]=null}};function Lo(t){this._internalRoot=t}Lo.prototype.unstable_scheduleHydration=function(t){if(t){var r=Wt();t={blockedOn:null,target:t,priority:r};for(var i=0;i<qi.length&&r!==0&&r<qi[i].priority;i++);qi.splice(i,0,t),i===0&&om(t)}};var cm=e.version;if(cm!=="19.1.0")throw Error(a(527,cm,"19.1.0"));v.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(a(188)):(t=Object.keys(t).join(","),Error(a(268,t)));return t=w(r),t=t!==null?_(t):null,t=t===null?null:t.stateNode,t};var ab={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:m,reconcilerVersion:"19.1.0"};
49if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qo.isDisabled&&qo.supportsFiber)try{Tt=qo.inject(ab),xt=qo}catch{}}return ns.createRoot=function(t,r){if(!f(t))throw Error(a(299));var i=!1,s="",h=Td,g=Nd,T=Rd,O=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onUncaughtError!==void 0&&(h=r.onUncaughtError),r.onCaughtError!==void 0&&(g=r.onCaughtError),r.onRecoverableError!==void 0&&(T=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(O=r.unstable_transitionCallbacks)),r=em(t,1,!1,null,null,i,s,h,g,T,O,null),t[Bt]=r.current,oc(t),new Sc(r)},ns.hydrateRoot=function(t,r,i){if(!f(t))throw Error(a(299));var s=!1,h="",g=Td,T=Nd,O=Rd,U=null,Z=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(h=i.identifierPrefix),i.onUncaughtError!==void 0&&(g=i.onUncaughtError),i.onCaughtError!==void 0&&(T=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(U=i.unstable_transitionCallbacks),i.formState!==void 0&&(Z=i.formState)),r=em(t,1,!0,r,i??null,s,h,g,T,O,U,Z),r.context=rm(null),i=r.current,s=Yr(),s=Or(s),h=xi(s),h.callback=null,Ai(i,h,s),i=s,r.current.lanes=i,Lt(r,i),qn(r),t[Bt]=r.current,oc(t),new Lo(r)},ns.version="19.1.0",ns}var xm;function yb(){if(xm)return Rc.exports;xm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(e){console.error(e)}}return l(),Rc.exports=vb(),Rc.exports}var bb=yb();Qg();/**
50 * @remix-run/router v1.23.0
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */function fs(){return fs=Object.assign?Object.assign.bind():function(l){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(l[a]=n[a])}return l},fs.apply(this,arguments)}var Pi;(function(l){l.Pop="POP",l.Push="PUSH",l.Replace="REPLACE"})(Pi||(Pi={}));const Am="popstate";function wb(l){l===void 0&&(l={});function e(a,f){let{pathname:u,search:p,hash:y}=a.location;return ih("",{pathname:u,search:p,hash:y},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function n(a,f){return typeof f=="string"?f:$o(f)}return Ab(e,n,null,l)}function Je(l,e){if(l===!1||l===null||typeof l>"u")throw new Error(e)}function Yg(l,e){if(!l){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function xb(){return Math.random().toString(36).substr(2,8)}function _m(l,e){return{usr:l.state,key:l.key,idx:e}}function ih(l,e,n,a){return n===void 0&&(n=null),fs({pathname:typeof l=="string"?l:l.pathname,search:"",hash:""},typeof e=="string"?sl(e):e,{state:n,key:e&&e.key||a||xb()})}function $o(l){let{pathname:e="/",search:n="",hash:a=""}=l;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function sl(l){let e={};if(l){let n=l.indexOf("#");n>=0&&(e.hash=l.substr(n),l=l.substr(0,n));let a=l.indexOf("?");a>=0&&(e.search=l.substr(a),l=l.substr(0,a)),l&&(e.pathname=l)}return e}function Ab(l,e,n,a){a===void 0&&(a={});let{window:f=document.defaultView,v5Compat:u=!1}=a,p=f.history,y=Pi.Pop,w=null,_=N();_==null&&(_=0,p.replaceState(fs({},p.state,{idx:_}),""));function N(){return(p.state||{idx:null}).idx}function C(){y=Pi.Pop;let z=N(),L=z==null?null:z-_;_=z,w&&w({action:y,location:k.location,delta:L})}function B(z,L){y=Pi.Push;let G=ih(k.location,z,L);_=N()+1;let I=_m(G,_),Q=k.createHref(G);try{p.pushState(I,"",Q)}catch(W){if(W instanceof DOMException&&W.name==="DataCloneError")throw W;f.location.assign(Q)}u&&w&&w({action:y,location:k.location,delta:1})}function H(z,L){y=Pi.Replace;let G=ih(k.location,z,L);_=N();let I=_m(G,_),Q=k.createHref(G);p.replaceState(I,"",Q),u&&w&&w({action:y,location:k.location,delta:0})}function q(z){let L=f.location.origin!=="null"?f.location.origin:f.location.href,G=typeof z=="string"?z:$o(z);return G=G.replace(/ $/,"%20"),Je(L,"No window.location.(origin|href) available to create URL for href: "+G),new URL(G,L)}let k={get action(){return y},get location(){return l(f,p)},listen(z){if(w)throw new Error("A history only accepts one active listener");return f.addEventListener(Am,C),w=z,()=>{f.removeEventListener(Am,C),w=null}},createHref(z){return e(f,z)},createURL:q,encodeLocation(z){let L=q(z);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:B,replace:H,go(z){return p.go(z)}};return k}var Em;(function(l){l.data="data",l.deferred="deferred",l.redirect="redirect",l.error="error"})(Em||(Em={}));function _b(l,e,n){return n===void 0&&(n="/"),Eb(l,e,n)}function Eb(l,e,n,a){let f=typeof e=="string"?sl(e):e,u=xh(f.pathname||"/",n);if(u==null)return null;let p=Xg(l);Mb(p);let y=null;for(let w=0;y==null&&w<p.length;++w){let _=Lb(u);y=Db(p[w],_)}return y}function Xg(l,e,n,a){e===void 0&&(e=[]),n===void 0&&(n=[]),a===void 0&&(a="");let f=(u,p,y)=>{let w={relativePath:y===void 0?u.path||"":y,caseSensitive:u.caseSensitive===!0,childrenIndex:
vendor: 8,600 bytes, lines 58-67
58p,route:u};w.relativePath.startsWith("/")&&(Je(w.relativePath.startsWith(a),'Absolute route path "'+w.relativePath+'" nested under path '+('"'+a+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),w.relativePath=w.relativePath.slice(a.length));let _=Qi([a,w.relativePath]),N=n.concat(w);u.children&&u.children.length>0&&(Je(u.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+_+'".')),Xg(u.children,e,N,_)),!(u.path==null&&!u.index)&&e.push({path:_,score:Bb(_,u.index),routesMeta:N})};return l.forEach((u,p)=>{var y;if(u.path===""||!((y=u.path)!=null&&y.includes("?")))f(u,p);else for(let w of Vg(u.path))f(u,p,w)}),e}function Vg(l){let e=l.split("/");if(e.length===0)return[];let[n,...a]=e,f=n.endsWith("?"),u=n.replace(/\?$/,"");if(a.length===0)return f?[u,""]:[u];let p=Vg(a.join("/")),y=[];return y.push(...p.map(w=>w===""?u:[u,w].join("/"))),f&&y.push(...p),y.map(w=>l.startsWith("/")&&w===""?"/":w)}function Mb(l){l.sort((e,n)=>e.score!==n.score?n.score-e.score:kb(e.routesMeta.map(a=>a.childrenIndex),n.routesMeta.map(a=>a.childrenIndex)))}const Sb=/^:[\w-]+$/,Tb=3,Nb=2,Rb=1,Cb=10,Ob=-2,Mm=l=>l==="*";function Bb(l,e){let n=l.split("/"),a=n.length;return n.some(Mm)&&(a+=Ob),e&&(a+=Nb),n.filter(f=>!Mm(f)).reduce((f,u)=>f+(Sb.test(u)?Tb:u===""?Rb:Cb),a)}function kb(l,e){return l.length===e.length&&l.slice(0,-1).every((a,f)=>a===e[f])?l[l.length-1]-e[e.length-1]:0}function Db(l,e,n){let{routesMeta:a}=l,f={},u="/",p=[];for(let y=0;y<a.length;++y){let w=a[y],_=y===a.length-1,N=u==="/"?e:e.slice(u.length)||"/",C=Ub({path:w.relativePath,caseSensitive:w.caseSensitive,end:_},N),B=w.route;if(!C)return null;Object.assign(f,C.params),p.push({params:f,pathname:Qi([u,C.pathname]),pathnameBase:Ib(Qi([u,C.pathnameBase])),route:B}),C.pathnameBase!=="/"&&(u=Qi([u,C.pathnameBase]))}return p}function Ub(l,e){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[n,a]=zb(l.path,l.caseSensitive,l.end),f=e.match(n);if(!f)return null;let u=f[0],p=u.replace(/(.)\/+$/,"$1"),y=f.slice(1);return{params:a.reduce((_,N,C)=>{let{paramName:B,isOptional:H}=N;if(B==="*"){let k=y[C]||"";p=u.slice(0,u.length-k.length).replace(/(.)\/+$/,"$1")}const q=y[C];return H&&!q?_[B]=void 0:_[B]=(q||"").replace(/%2F/g,"/"),_},{}),pathname:u,pathnameBase:p,pattern:l}}function zb(l,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),Yg(l==="*"||!l.endsWith("*")||l.endsWith("/*"),'Route path "'+l+'" will be treated as if it were '+('"'+l.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+l.replace(/\*$/,"/*")+'".'));let a=[],f="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(p,y,w)=>(a.push({paramName:y,isOptional:w!=null}),w?"/?([^\\/]+)?":"/([^\\/]+)"));return l.endsWith("*")?(a.push({paramName:"*"}),f+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?f+="\\/*$":l!==""&&l!=="/"&&(f+="(?:(?=\\/|$))"),[new RegExp(f,e?void 0:"i"),a]}function Lb(l){try{return l.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Yg(!1,'The URL path "'+l+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),l}}function xh(l,e){if(e==="/")return l;if(!l.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,a=l.charAt(n);return a&&a!=="/"?null:l.slice(n)||"/"}function qb(l,e){e===void 0&&(e="/");let{pathname:n,search:a="",hash:f=""}=typeof l=="string"?sl(l):l;return{pathname:n?n.startsWith("/")?n:Hb(n,e):e,search:Gb(a),hash:Pb(f)}}function Hb(l,e){let n=e.replace(/\/+$/,"").split("/");return l.split("/").forEach(f=>{f===".."?n.length>1&&n.pop():f!=="."&&n.push(f)}),n.length>1?n.join("/"):"/"}function kc(l,e,n,a){return"Cannot include a '"+l+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(a)+"].  Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function jb(l){return l.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function Kg(l,e){let n=jb(l);return e?n.map((a,f)=>f===n.length-1?a.pathname:a.pathnameBase):n.map(a=>a.pathnameBase)}function Zg(l,e,n,a){a===void 0&&(a=!1);let f;typeof l=="string"?f=sl(l):(f=fs({},l),Je(!f.pathname||!f.pathname.includes("?"),kc("?","pathname","search",f)),Je(!f.pathname||!f.pathname.includes("#"),kc("#","pathname","hash",f)),Je(!f.search||!f.search.includes("#"),kc("#","search","hash",f)));let u=l===""||f.pathname==="",p=u?"/":f.pathname,y;if(p==null)y=n;else{let C=e.length-1;if(!a&&p.startsWith("..")){let B=p.split("/");for(;B[0]==="..";)B.shift(),C-=1;f.pathname=B.join("/")}y=C>=0?e[C]:"/"}let w=qb(f,y),_=p&&p!=="/"&&p.endsWith("/"),N=(u||p===".")&&n.endsWith("/");return!w.pathname.endsWith("/")&&(_||N)&&(w.pathname+="/"),w}const Qi=l=>l.join("/").replace(/\/\/+/g,"/"),Ib=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),Gb=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,Pb=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l;function Qb(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}const Jg=["post","put","patch","delete"];new Set(Jg);const Yb=["get",...Jg];new Set(Yb);/**
59 * React Router v6.30.0
60 *
61 * Copyright (c) Remix Software Inc.
62 *
63 * This source code is licensed under the MIT license found in the
64 * LICENSE.md file in the root directory of this source tree.
65 *
66 * @license MIT
67 */function cs(){return cs=Object.assign?Object.assign.bind():function(l){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(l[a]=n[a])}return l},cs.apply(this,arguments)}const Ah=at.createContext(null),Xb=at.createContext(null),ga=at.createContext(null),uu=at.createContext(null),va=at.createContext({outlet:null,matches:[],isDataRoute:!1}),Fg=at.createContext(null);function Vb(l,e){let{relative:n}=e===void 0?{}:e;ws()||Je(!1);let{basename:a,navigator:f}=at.useContext(ga),{hash:u,pathname:p,search:y}=$g(l,{relative:n}),w=p;return a!=="/"&&(w=p==="/"?a:Qi([a,p])),f.createHref({pathname:w,search:y,hash:u})}function ws(){return at.useContext(uu)!=null}function fu(){return ws()||Je(!1),at.useContext(uu).location}function Wg(l){at.useContext(ga).static||at.useLayoutEffect(l)}function xs(){let{isDataRoute:l}=at.useContext(va);return l?l2():Kb()}function Kb(){ws()||Je(!1);let l=at.useContext(Ah),{basename:e,future:n,navigator:a}=at.useContext(ga),{matches:f}=at.useContext(va),{pathname:u}=fu(),p=JSON.stringify(Kg(f,n.v7_relativeSplatPath)),y=at.useRef(!1);return Wg(()=>{y.current=!0}),at.useCallback(function(_,N){if(N===void 0&&(N={}),!y.current)return;if(typeof _=="number"){a.go(_);return}let C=Zg(_,JSON.parse(p),u,N.relative==="path");l==null&&e!=="/"&&(C.pathname=C.pathname==="/"?e:Qi([e,C.pathname])),(N.replace?a.replace:a.push)(C,N.state,N)},[e,a,p,u,l])}function $g(l,e){let{relative:n}=e===void 0?{}:e,{future:a}=at.useContext(ga),{matches:f}=at.useContext(va),{pathname:u}=fu(),p=JSON.stringify(Kg(f,a.v7_relativeSplatPath));return at.useMemo(()=>Zg(l,JSON.parse(p),u,n==="path"),[l,p,u,n])}function Zb(l,e){return Jb(l,e)}function Jb(l,e,n,a){ws()||Je(!1);let{navigator:f,static:u}=at.useContext(ga),{matches:p}=at.useContext(va),y=p[p.length-1],w=y?y.params:{};y&&y.pathname;let _=y?y.pathnameBase:"/";y&&y.route;let N=fu(),C;if(e){var B;let L=typeof e=="string"?sl(e):e;_==="/"||(B=L.pathname)!=null&&B.startsWith(_)||Je(!1),C=L}else C=N;let H=C.pathname||"/",q=H;if(_!=="/"){let L=_.replace(/^\//,"").split("/");q="/"+H.replace(/^\//,"").split("/").slice(L.length).join("/")}let k=_b(l,{pathname:q}),z=e2(k&&k.map(L=>Object.assign({},L,{params:Object.assign({},w,L.params),pathname:Qi([_,f.encodeLocation?f.encodeLocation(L.pathname).pathname:L.pathname]),pathnameBase:L.pathnameBase==="/"?_:Qi([_,f.encodeLocation?f.encodeLocation(L.pathnameBase).pathname:L.pathnameBase])})),p,n,a);return e&&z?at.createElement(uu.Provider,{value:{location:cs({pathname:"/",search:"",hash:"",state:null,key:"default"},C),navigationType:Pi.Pop}},z):z}function Fb(){let l=a2(),e=Qb(l)?l.status+" "+l.statusText:l instanceof Error?l.message:JSON.stringify(l),n=l instanceof Error?l.stack:null,f={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return at.createElement(at.Fragment,null,at.createElement("h2",null,"Unexpected Application 
67Error!"),at.createElement("h3",{style:{fontStyle:"italic"}},e),n?at.createElement("pre",{style:f},n):null,null)}const Wb=at.createElement(Fb,null);class $b extends at.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?at.createElement(va.Provider,{value:this.props.routeContext},at.createElement(Fg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function t2(l){let{routeContext:e,match:n,children:a}=l,f=at.useContext(Ah);return f&&f.static&&f.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(f.staticContext._deepestRenderedBoundaryId=n.route.id),at.createElement(va.Provider,{value:e},a)}function e2(l,e,n,a){var f;if(e===void 0&&(e=[]),n===void 0&&(n=null),a===void 0&&(a=null),l==null){var u;if(!n)return null;if(n.errors)l=n.matches;else if((u=a)!=null&&u.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)l=n.matches;else return null}let p=l,y=(f=n)==null?void 0:f.errors;if(y!=null){let N=p.findIndex(C=>C.route.id&&(y==null?void 0:y[C.route.id])!==void 0);N>=0||Je(!1),p=p.slice(0,Math.min(p.length,N+1))}let w=!1,_=-1;if(n&&a&&a.v7_partialHydration)for(let N=0;N<p.length;N++){let C=p[N];if((C.route.HydrateFallback||C.route.hydrateFallbackElement)&&(_=N),C.route.id){let{loaderData:B,errors:H}=n,q=C.route.loader&&B[C.route.id]===void 0&&(!H||H[C.route.id]===void 0);if(C.route.lazy||q){w=!0,_>=0?p=p.slice(0,_+1):p=[p[0]];break}}}return p.reduceRight((N,C,B)=>{let H,q=!1,k=null,z=null;n&&(H=y&&C.route.id?y[C.route.id]:void 0,k=C.route.errorElement||Wb,w&&(_<0&&B===0?(s2("route-fallback"),q=!0,z=null):_===B&&(q=!0,z=C.route.hydrateFallbackElement||null)));let L=e.concat(p.slice(0,B+1)),G=()=>{let I;return H?I=k:q?I=z:C.route.Component?I=at.createElement(C.route.Component,null):C.route.element?I=C.route.element:I=N,at.createElement(t2,{match:C,routeContext:{outlet:N,matches:L,isDataRoute:n!=null},children:I})};return n&&(C.route.ErrorBoundary||C.route.errorElement||B===0)?at.createElement($b,{location:n.location,revalidation:n.revalidation,component:k,error:H,children:G(),routeContext:{outlet:null,matches:L,isDataRoute:!0}}):G()},null)}var tv=function(l){return l.UseBlocker="useBlocker",l.UseRevalidator="useRevalidator",l.UseNavigateStable="useNavigate",l}(tv||{}),ev=function(l){return l.UseBlocker="useBlocker",l.UseLoaderData="useLoaderData",l.UseActionData="useActionData",l.UseRouteError="useRouteError",l.UseNavigation="useNavigation",l.UseRouteLoaderData="useRouteLoaderData",l.UseMatches="useMatches",l.UseRevalidator="useRevalidator",l.UseNavigateStable="useNavigate",l.UseRouteId="useRouteId",l}(ev||{});function r2(l){let e=at.useContext(Ah);return e||Je(!1),e}function n2(l){let e=at.useContext(Xb);return e||Je(!1),e}function i2(l){let e=at.useContext(va);return e||Je(!1),e}function rv(l){let e=i2(),n=e.matches[e.matches.length-1];return n.route.id||Je(!1),n.route.id}function a2(){var l;let e=at.useContext(Fg),n=n2(),a=rv();return e!==void 0?e:(l=n.errors)==null?void 0:l[a]}function l2(){let{router:l}=r2(tv.UseNavigateStable),e=rv(ev.UseNavigateStable),n=at.useRef(!1);return Wg(()=>{n.current=!0}),at.useCallback(function(f,u){u===void 0&&(u={}),n.current&&(typeof f=="number"?l.navigate(f):l.navigate(f,cs({fromRouteId:e},u)))},[l,e])}const Sm={};function s2(l,e,n){Sm[l]||(Sm[l]=!0)}function o2(l,e){l==null||l.v7_startTransition,l==null||l.v7_relativeSplatPath}function ss(l){Je(!1)}function u2(l){let{basename:e="/",children:n=null,location:a,navigationType:f=Pi.Pop,navigator:u,static:p=!1,future:y}=l;ws()&&Je(!1);let w=e.replace(/^\/*/,"/"),_=at.useMemo(()=>({basename:w,navigator:u,static:p,future:cs({v7_relativeSplatPath:!1},y)}),[w,y,u,p]);
67typeof a=="string"&&(a=sl(a));let{pathname:N="/",search:C="",hash:B="",state:H=null,key:q="default"}=a,k=at.useMemo(()=>{let z=xh(N,w);return z==null?null:{location:{pathname:z,search:C,hash:B,state:H,key:q},navigationType:f}},[w,N,C,B,H,q,f]);return k==null?null:at.createElement(ga.Provider,{value:_},at.createElement(uu.Provider,{children:n,value:k}))}function f2(l){let{children:e,location:n}=l;return Zb(ah(e),n)}new Promise(()=>{});function ah(l,e){e===void 0&&(e=[]);let n=[];return at.Children.forEach(l,(a,f)=>{if(!at.isValidElement(a))return;let u=[...e,f];if(a.type===at.Fragment){n.push.apply(n,ah(a.props.children,u));return}a.type!==ss&&Je(!1),!a.props.index||!a.props.children||Je(!1);let p={id:a.props.id||u.join("-"),caseSensitive:a.props.caseSensitive,element:a.props.element,Component:a.props.Component,index:a.props.index,path:a.props.path,loader:a.props.loader,action:a.props.action,errorElement:a.props.errorElement,ErrorBoundary:a.props.ErrorBoundary,hasErrorBoundary:a.props.ErrorBoundary!=null||a.props.errorElement!=null,shouldRevalidate:a.props.shouldRevalidate,handle:a.props.handle,lazy:a.props.lazy};a.props.children&&(p.children=ah(a.props.children,u)),n.push(p)}),n}/**
68 * React Router DOM v6.30.0
69 *
70 * Copyright (c) Remix Software Inc.
71 *
72 * This source code is licensed under the MIT license found in the
73 * LICENSE.md file in the root directory of this source tree.
74 *
75 * @license MIT
76 */function lh(){return lh=Object.assign?Object.assign.bind():function(l){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(l[a]=n[a])}return l},lh.apply(this,arguments)}function c2(l,e){if(l==null)return{};var n={},a=Object.keys(l),f,u;for(u=0;u<a.length;u++)f=a[u],!(e.indexOf(f)>=0)&&(n[f]=l[f]);return n}function h2(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function d2(l,e){return l.button===0&&(!e||e==="_self")&&!h2(l)}const p2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],m2="6";try{window.__reactRouterVersion=m2}catch{}const g2="startTransition",Tm=db[g2];function v2(l){let{basename:e,children:n,future:a,window:f}=l,u=at.useRef();u.current==null&&(u.current=wb({window:f,v5Compat:!0}));let p=u.current,[y,w]=at.useState({action:p.action,location:p.location}),{v7_startTransition:_}=a||{},N=at.useCallback(C=>{_&&Tm?Tm(()=>w(C)):w(C)},[w,_]);return at.useLayoutEffect(()=>p.listen(N),[p,N]),at.useEffect(()=>o2(a),[a]),at.createElement(u2,{basename:e,children:n,location:y.location,navigationType:y.action,navigator:p,future:a})}const y2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",b2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,w2=at.forwardRef(function(e,n){let{onClick:a,relative:f,reloadDocument:u,replace:p,state:y,target:w,to:_,preventScrollReset:N,viewTransition:C}=e,B=c2(e,p2),{basename:H}=at.useContext(ga),q,k=!1;if(typeof _=="string"&&b2.test(_)&&(q=_,y2))try{let I=new URL(window.location.href),Q=_.startsWith("//")?new URL(I.protocol+_):new URL(_),W=xh(Q.pathname,H);Q.origin===I.origin&&W!=null?_=W+Q.search+Q.hash:k=!0}catch{}let z=Vb(_,{relative:f}),L=x2(_,{replace:p,state:y,target:w,preventScrollReset:N,relative:f,viewTransition:C});function G(I){a&&a(I),I.defaultPrevented||L(I)}return at.createElement("a",lh({},B,{href:q||z,onClick:k||u?a:G,ref:n,target:w}))});var Nm;(function(l){l.UseScrollRestoration="useScrollRestoration",l.UseSubmit="useSubmit",l.UseSubmitFetcher="useSubmitFetcher",l.UseFetcher="useFetcher",l.useViewTransitionState="useViewTransitionState"})(Nm||(Nm={}));var Rm;(function(l){l.UseFetcher="useFetcher",l.UseFetchers="useFetchers",l.UseScrollRestoration="useScrollRestoration"})(Rm||(Rm={}));function x2(l,e){let{target:n,replace:a,state:f,preventScrollReset:u,relative:p,viewTransition:y}=e===void 0?{}:e,w=xs(),_=fu(),N=$g(l,{relative:p});return at.useCallback(C=>{if(d2(C,n)){C.preventDefault();let B=a!==void 0?a:$o(_)===$o(N);w(l,{replace:B,state:f,preventScrollReset:u,relative:p,viewTransition:y})}},[_,w,N,a,f,n,l,u,p,y])}function nv(l){var e,n,a="";if(typeof l=="string"||typeof l=="number")a+=l;else if(typeof l=="object")if(Array.isArray(l)){var f=l.length;for(e=0;e<f;
vendor: 4,995 bytes, line 76
76e++)l[e]&&(n=nv(l[e]))&&(a&&(a+=" "),a+=n)}else for(n in l)l[n]&&(a&&(a+=" "),a+=n);return a}function ca(){for(var l,e,n=0,a="",f=arguments.length;n<f;n++)(l=arguments[n])&&(e=nv(l))&&(a&&(a+=" "),a+=e);return a}function A2(l){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n),n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}A2(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
76.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
76}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
77`);var As=l=>typeof l=="number"&&!isNaN(l),ha=l=>typeof l=="string",pi=l=>typeof l=="function",_2=l=>ha(l)||As(l),sh=l=>ha(l)||pi(l)?l:null,E2=(l,e)=>l===!1||As(l)&&l>0?l:e,oh=l=>at.isValidElement(l)||ha(l)||pi(l)||As(l);function M2(l,e,n=300){let{scrollHeight:a,style:f}=l;requestAnimationFrame(()=>{f.minHeight="initial",f.height=a+"px",f.transition=`all ${n}ms`,requestAnimationFrame(()=>{f.height="0",f.padding="0",f.margin="0",setTimeout(e,n)})})}function S2({enter:l,exit:e,appendPosition:n=!1,collapse:a=!0,collapseDuration:f=300}){return function({children:u,position:p,preventExitTransition:y,done:w,nodeRef:_,isIn:N,playToast:C}){let B=n?`${l}--${p}`:l,H=n?`${e}--${p}`:e,q=at.useRef(0);return at.useLayoutEffect(()=>{let k=_.current,z=B.split(" "),L=G=>{G.target===_.current&&(C(),k.removeEventListener("animationend",L),k.removeEventListener("animationcancel",L),q.current===0&&G.type!=="animationcancel"&&k.classList.remove(...z))};k.classList.add(...z),k.addEventListener("animationend",L),k.addEventListener("animationcancel",L)},[]),at.useEffect(()=>{let k=_.current,z=()=>{k.removeEventListener("animationend",z),a?M2(k,w,f):w()};N||(y?z():(q.current=1,k.className+=` ${H}`,k.addEventListener("animationend",z)))},[N]),Be.createElement(Be.Fragment,null,u)}}function Cm(l,e){return{content:iv(l.content,l.props),containerId:l.props.containerId,id:l.props.toastId,theme:l.props.theme,type:l.props.type,data:l.props.data||{},isLoading:l.props.isLoading,icon:l.props.icon,reason:l.removalReason,status:e}}function iv(l,e,n=!1){return at.isValidElement(l)&&!ha(l.type)?at.cloneElement(l,{closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):pi(l)?l({closeToast:e.closeToast,toastProps:e,data:e.data,isPaused:n}):l}function T2({closeToast:l,theme:e,ariaLabel:n="close"}){return Be.createElement("button",{className:`Toastify__close-button Toastify__close-button--${e}`,type:"button",onClick:a=>{a.stopPropagation(),l(!0)},"aria-label":n},Be.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Be.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function N2({delay:l,isRunning:e,closeToast:n,type:a="default",hide:f,className:u,controlledProgress:p,progress:y,rtl:w,isIn:_,theme:N}){let C=f||p&&y===0,B={animationDuration:`${l}ms`,animationPlayState:e?"running":"paused"};p&&(B.transform=`scaleX(${y})`);let H=ca("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${N}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":w}),q=pi(u)?u({rtl:w,type:a,defaultClassName:H}):ca(H,u),k={[p&&y>=1?"onTransitionEnd":"onAnimationEnd"]:p&&y<1?null:()=>{_&&n()}};return Be.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":C},Be.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${N} Toastify__progress-bar--${a}`}),Be.createElement("div",{role:"progressbar","aria-hidden":C?"true":"false","aria-label":"notification timer",className:q,style:B,...k}))}var R2=1,av=()=>`${R2++}`;function C2(l,e,n){let a=1,f=0,u=[],p=[],y=e,w=new Map,_=new Set,
vendor: 1,602 bytes, line 77
77N=G=>(_.add(G),()=>_.delete(G)),C=()=>{p=Array.from(w.values()),_.forEach(G=>G())},B=({containerId:G,toastId:I,updateId:Q})=>{let W=G?G!==l:l!==1,lt=w.has(I)&&Q==null;return W||lt},H=(G,I)=>{w.forEach(Q=>{var W;(I==null||I===Q.props.toastId)&&((W=Q.toggle)==null||W.call(Q,G))})},q=G=>{var I,Q;(Q=(I=G.props)==null?void 0:I.onClose)==null||Q.call(I,G.removalReason),G.isActive=!1},k=G=>{if(G==null)w.forEach(q);else{let I=w.get(G);I&&q(I)}C()},z=()=>{f-=u.length,u=[]},L=G=>{var I,Q;let{toastId:W,updateId:lt}=G.props,ut=lt==null;G.staleId&&w.delete(G.staleId),G.isActive=!0,w.set(W,G),C(),n(Cm(G,ut?"added":"updated")),ut&&((Q=(I=G.props).onOpen)==null||Q.call(I))};return{id:l,props:y,observe:N,toggle:H,removeToast:k,toasts:w,clearQueue:z,buildToast:(G,I)=>{if(B(I))return;let{toastId:Q,updateId:W,data:lt,staleId:ut,delay:ht}=I,vt=W==null;vt&&f++;let ae={...y,style:y.toastStyle,key:a++,...Object.fromEntries(Object.entries(I).filter(([V,E])=>E!=null)),toastId:Q,updateId:W,data:lt,isIn:!1,className:sh(I.className||y.toastClassName),progressClassName:sh(I.progressClassName||y.progressClassName),autoClose:I.isLoading?!1:E2(I.autoClose,y.autoClose),closeToast(V){w.get(Q).removalReason=V,k(Q)},deleteToast(){let V=w.get(Q);if(V!=null){if(n(Cm(V,"removed")),w.delete(Q),f--,f<0&&(f=0),u.length>0){L(u.shift());return}C()}}};ae.closeButton=y.closeButton,I.closeButton===!1||oh(I.closeButton)?ae.closeButton=I.closeButton:I.closeButton===!0&&(ae.closeButton=oh(y.closeButton)?y.closeButton:!0);let pt={content:G,props:ae,staleId:ut};y.limit&&y.limit>0&&f>y.limit&&vt?u.push(pt):As(ht)?setTimeout(()=>
vendor: 8,869 bytes, line 77
77{L(pt)},ht):L(pt)},setProps(G){y=G},setToggle:(G,I)=>{let Q=w.get(G);Q&&(Q.toggle=I)},isToastActive:G=>{var I;return(I=w.get(G))==null?void 0:I.isActive},getSnapshot:()=>p}}var Cr=new Map,hs=[],uh=new Set,O2=l=>uh.forEach(e=>e(l)),lv=()=>Cr.size>0;function B2(){hs.forEach(l=>ov(l.content,l.options)),hs=[]}var k2=(l,{containerId:e})=>{var n;return(n=Cr.get(e||1))==null?void 0:n.toasts.get(l)};function sv(l,e){var n;if(e)return!!((n=Cr.get(e))!=null&&n.isToastActive(l));let a=!1;return Cr.forEach(f=>{f.isToastActive(l)&&(a=!0)}),a}function D2(l){if(!lv()){hs=hs.filter(e=>l!=null&&e.options.toastId!==l);return}if(l==null||_2(l))Cr.forEach(e=>{e.removeToast(l)});else if(l&&("containerId"in l||"id"in l)){let e=Cr.get(l.containerId);e?e.removeToast(l.id):Cr.forEach(n=>{n.removeToast(l.id)})}}var U2=(l={})=>{Cr.forEach(e=>{e.props.limit&&(!l.containerId||e.id===l.containerId)&&e.clearQueue()})};function ov(l,e){oh(l)&&(lv()||hs.push({content:l,options:e}),Cr.forEach(n=>{n.buildToast(l,e)}))}function z2(l){var e;(e=Cr.get(l.containerId||1))==null||e.setToggle(l.id,l.fn)}function uv(l,e){Cr.forEach(n=>{(e==null||!(e!=null&&e.containerId)||(e==null?void 0:e.containerId)===n.id)&&n.toggle(l,e==null?void 0:e.id)})}function L2(l){let e=l.containerId||1;return{subscribe(n){let a=C2(e,l,O2);Cr.set(e,a);let f=a.observe(n);return B2(),()=>{f(),Cr.delete(e)}},setProps(n){var a;(a=Cr.get(e))==null||a.setProps(n)},getSnapshot(){var n;return(n=Cr.get(e))==null?void 0:n.getSnapshot()}}}function q2(l){return uh.add(l),()=>{uh.delete(l)}}function H2(l){return l&&(ha(l.toastId)||As(l.toastId))?l.toastId:av()}function _s(l,e){return ov(l,e),e.toastId}function cu(l,e){return{...e,type:e&&e.type||l,toastId:H2(e)}}function hu(l){return(e,n)=>_s(e,cu(l,n))}function ue(l,e){return _s(l,cu("default",e))}ue.loading=(l,e)=>_s(l,cu("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...e}));function j2(l,{pending:e,error:n,success:a},f){let u;e&&(u=ha(e)?ue.loading(e,f):ue.loading(e.render,{...f,...e}));let p={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},y=(_,N,C)=>{if(N==null){ue.dismiss(u);return}let B={type:_,...p,...f,data:C},H=ha(N)?{render:N}:N;return u?ue.update(u,{...B,...H}):ue(H.render,{...B,...H}),C},w=pi(l)?l():l;return w.then(_=>y("success",a,_)).catch(_=>y("error",n,_)),w}ue.promise=j2;ue.success=hu("success");ue.info=hu("info");ue.error=hu("error");ue.warning=hu("warning");ue.warn=ue.warning;ue.dark=(l,e)=>_s(l,cu("default",{theme:"dark",...e}));function I2(l){D2(l)}ue.dismiss=I2;ue.clearWaitingQueue=U2;ue.isActive=sv;ue.update=(l,e={})=>{let n=k2(l,e);if(n){let{props:a,content:f}=n,u={delay:100,...a,...e,toastId:e.toastId||l,updateId:av()};u.toastId!==l&&(u.staleId=l);let p=u.render||f;delete u.render,_s(p,u)}};ue.done=l=>{ue.update(l,{progress:1})};ue.onChange=q2;ue.play=l=>uv(!0,l);ue.pause=l=>uv(!1,l);function G2(l){var e;let{subscribe:n,getSnapshot:a,setProps:f}=at.useRef(L2(l)).current;f(l);let u=(e=at.useSyncExternalStore(n,a,a))==null?void 0:e.slice();function p(y){if(!u)return[];let w=new Map;return l.newestOnTop&&u.reverse(),u.forEach(_=>{let{position:N}=_.props;w.has(N)||w.set(N,[]),w.get(N).push(_)}),Array.from(w,_=>y(_[0],_[1]))}return{getToastToRender:p,isToastActive:sv,count:u==null?void 0:u.length}}function P2(l){let[e,n]=at.useState(!1),[a,f]=at.useState(!1),u=at.useRef(null),p=at.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:y,pauseOnHover:w,closeToast:_,onClick:N,closeOnClick:C}=l;z2({id:l.toastId,containerId:l.containerId,fn:n}),at.useEffect(()=>{if(l.pauseOnFocusLoss)return B(),()=>{H()}},[l.pauseOnFocusLoss]);function B(){document.hasFocus()||L(),window.addEventListener("focus",z),window.addEventListener("blur",L)}function H(){window.removeEventListener("focus",z),window.removeEventListener("blur",L)}function q(ut){if(l.draggable===!0||l.draggable===ut.pointerType){G();let ht=u.current;p.canCloseOnClick=!0,p.canDrag=!0,ht.style.transition="none",l.draggableDirection==="x"?(p.start=ut.clientX,p.removalDistance=ht.offsetWidth*(l.draggablePercent/100)):(p.start=ut.clientY,p.removalDistance=ht.offsetHeight*(l.draggablePercent===80?l.draggablePercent*1.5:l.draggablePercent)/100)}}function k(ut){let{top:ht,bottom:vt,left:ae,right:pt}=u.current.getBoundingClientRect();ut.nativeEvent.type!=="touchend"&&l.pauseOnHover&&ut.clientX>=ae&&ut.clientX<=pt&&ut.clientY>=ht&&ut.clientY<=vt?L():z()}function z(){n(!0)}function L(){n(!1)}function G(){p.didMove=!1,document.addEventListener("pointermove",Q),document.addEventListener("pointerup",W)}function I(){document.removeEventListener("pointermove",Q),document.removeEventListener("pointerup",W)}function Q(ut){let ht=u.current;if(p.canDrag&&ht){p.didMove=!0,e&&L(),l.draggableDirection==="x"?p.delta=ut.clientX-p.start:p.delta=ut.clientY-p.start,p.start!==ut.clientX&&(p.canCloseOnClick=!1);let vt=l.draggableDirection==="x"?`${p.delta}px, var(--y)`:`0, calc(${p.delta}px + var(--y))`;ht.style.transform=`translate3d(${vt},0)`,ht.style.opacity=`${1-Math.abs(p.delta/p.removalDistance)}`}}function W(){I();let ut=u.current;if(p.canDrag&&p.didMove&&ut){if(p.canDrag=!1,Math.abs(p.delta)>p.removalDistance){f(!0),l.closeToast(!0),l.collapseAll();return}ut.style.transition="transform 0.2s, opacity 0.2s",ut.style.removeProperty("transform"),ut.style.removeProperty("opacity")}}let lt={onPointerDown:q,onPointerUp:k};return y&&w&&(lt.onMouseEnter=L,l.stacked||(lt.onMouseLeave=z)),C&&(lt.onClick=ut=>{N&&N(ut),p.canCloseOnClick&&_(!0)}),{playToast:z,pauseToast:L,isRunning:e,preventExitTransition:a,toastRef:u,eventHandlers:lt}}var Q2=typeof window<"u"?at.useLayoutEffect:at.useEffect,du=({theme:l,type:e,isLoading:n,...a})=>Be.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:l==="colored"?"currentColor":`var(--toastify-icon-color-${e})`,...a});function Y2(l){return Be.createElement(du,{...l},Be.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function X2(l){return Be.createElement(du,{...l},Be.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function V2(l){return Be.createElement(du,{...l},Be.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function K2(l){return Be.createElement(du,{...l},Be.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function Z2(){return Be.createElement("div",{className:"Toastify__spinner"})}var fh={info:X2,warning:Y2,success:V2,error:K2,spinner:Z2},J2=l=>l in fh;function F2({theme:l,type:e,isLoading:n,icon:a}){let f=null,u={theme:l,type:e};return a===!1||(pi(a)?f=a({...u,isLoading:n}):at.isValidElement(a)?f=at.cloneElement(a,u):n?f=fh.spinner():J2(e)&&(f=fh[e](u))),f}var W2=l=>{let{isRunning:e,preventExitTransition:n,toastRef:a,eventHandlers:f,playToast:u}=P2(l),{closeButton:p,children:y,autoClose:w,onClick:_,type:N,hideProgressBar:C,closeToast:B,transition:H,position:q,className:k,style:z,progressClassName:L,updateId:G,role:I,progress:Q,rtl:W,toastId:lt,deleteToast:ut,isIn:ht,isLoading:vt,closeOnClick:ae,theme:pt,ariaLabel:V}=l,E=ca("Toastify__toast",`Toastify__toast-theme--${pt}`,`Toastify__toast--${N}`,{"Toastify__toast--rtl":W},{"Toastify__toast--close-on-click":ae}),o=pi(k)?k({rtl:W,position:q,type:N,defaultClassName:E}):ca(E,k),d=F2(l),m=!!Q||!w,v={closeToast:B,type:N,theme:pt},x=null;return p===!1||(pi(p)?x=p(v):at.isValidElement(p)?x=at.cloneElement(p,v):x=T2(v)),Be.createElement(H,{isIn:ht,done:ut,position:q,preventExitTransition:n,nodeRef:a,playToast:u},Be.createElement("div",{id:lt,tabIndex:0,onClick:_,"data-in":ht,className:o,...f,style:z,ref:a,...ht&&{role:I,"aria-label":V}},d!=null&&Be.createElement("div",{className:ca("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
77:!vt})},d),iv(y,l,!e),x,!l.customProgressBar&&Be.createElement(N2,{...G&&!m?{key:`p-${G}`}:{},rtl:W,theme:pt,delay:w,isRunning:e,isIn:ht,closeToast:B,hide:C,type:N,className:L,controlledProgress:m,progress:Q||0})))},$2=(l,e=!1)=>({enter:`Toastify--animate Toastify__${l}-enter`,exit:`Toastify--animate Toastify__${l}-exit`,appendPosition:e}),tw=S2($2("bounce",!0)),ew={position:"top-right",transition:tw,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:l=>l.altKey&&l.code==="KeyT"};function rw(l){let e={...ew,...l},n=l.stacked,[a,f]=at.useState(!0),u=at.useRef(null),{getToastToRender:p,isToastActive:y,count:w}=G2(e),{className:_,style:N,rtl:C,containerId:B,hotKeys:H}=e;function q(z){let L=ca("Toastify__toast-container",`Toastify__toast-container--${z}`,{"Toastify__toast-container--rtl":C});return pi(_)?_({position:z,rtl:C,defaultClassName:L}):ca(L,sh(_))}function k(){n&&(f(!0),ue.play())}return Q2(()=>{var z;if(n){let L=u.current.querySelectorAll('[data-in="true"]'),G=12,I=(z=e.position)==null?void 0:z.includes("top"),Q=0,W=0;Array.from(L).reverse().forEach((lt,ut)=>{let ht=lt;ht.classList.add("Toastify__toast--stacked"),ut>0&&(ht.dataset.collapsed=`${a}`),ht.dataset.pos||(ht.dataset.pos=I?"top":"bot");let vt=Q*(a?.2:1)+(a?0:G*ut);ht.style.setProperty("--y",`${I?vt:vt*-1}px`),ht.style.setProperty("--g",`${G}`),ht.style.setProperty("--s",`${1-(a?W:0)}`),Q+=ht.offsetHeight,W+=.025})}},[a,w,n]),at.useEffect(()=>{function z(L){var G;let I=u.current;H(L)&&((G=I.querySelector('[tabIndex="0"]'))==null||G.focus(),f(!1),ue.pause()),L.key==="Escape"&&(document.activeElement===I||I!=null&&I.contains(document.activeElement))&&(f(!0),ue.play())}return document.addEventListener("keydown",z),()=>{document.removeEventListener("keydown",z)}},[H]),Be.createElement("section",{ref:u,className:"Toastify",id:B,onMouseEnter:()=>{n&&(f(!1),ue.pause())},onMouseLeave:k,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":e["aria-label"]},p((z,L)=>{let G=L.length?{...N}:{...N,pointerEvents:"none"};return Be.createElement("div",{tabIndex:-1,className:q(z),"data-stacked":n,style:G,key:`c-${z}`},L.map(({content:I,props:Q})=>Be.createElement(W2,{...Q,stacked:n,collapseAll:k,isIn:y(Q.toastId,Q.containerId),key:`t-${Q.key}`},I)))}))}var Qo={exports:{}};const nw={},iw=Object.freeze(Object.defineProperty({__proto__:null,default:nw},Symbol.toStringTag,{value:"Module"})),fv=ub(iw);var aw=Qo.exports,Om;function lw(){return Om||(Om=1,function(l){(function(e,n){function a(E,o){if(!E)throw new Error(o||"Assertion failed")}function f(E,o){E.super_=o;var d=function(){};d.prototype=o.prototype,E.prototype=new d,E.prototype.constructor=E}function u(E,o,d){if(u.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(E||0,o||10,d||"be"))}typeof e=="object"?e.exports=u:n.BN=u,u.BN=u,u.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=fv.Buffer}catch{}u.isBN=function(o){return o instanceof u?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===u.wordSize&&Array.isArray(o.words)},u.max=function(o,d){return o.cmp(d)>0?o:d},u.min=function(o,d){return o.cmp(d)<0?o:d},u.prototype._init=function(o,d,m){if(typeof o=="number")return this._initNumber(o,d,m);if(typeof o=="object")return this._initArray(o,d,m);d==="hex"&&(d=16),a(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,this.negative=1),v<o.length&&(d===16?this._parseHex(o,v,m):(this._parseBase(o,d,v),m==="le"&&this._initArray(this.toArray(),d,m)))},u.prototype._initNumber=function(o,d,m){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(a(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),d,m)},u.prototype._initArray=function(o,d,m){if(a(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x,R,M=0;if(m==="be")for(v=o.length-1,x=0;v>=0;v-=3)R=o[v]|o[v-1]<<8|o[v-2]<<16,this.words[x]|=R<<M&67108863,this.words[x+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);else if(m==="le")for(v=0,x=0;v<o.length;v+=3)R=o[v]|o[v+1]<<8|o[v+2]<<16,this.words[x]|=R<<M&67108863,this.words[x+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);return this._strip()};function y(E,o){var d=E.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;a(!1,"Invalid character in "+E)}function w(E,o,d){var m=y(E,d);return d-1>=o&&(m|=y(E,d-1)<<4),m}u.prototype._parseHex=function(o,d,m){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x=0,R=0,M;if(m==="be")for(v=o.length-1;v>=d;v-=2)M=w(o,d,v)<<x,this.words[R]|=M&67108863,x>=18?(x-=18,R+=1,this.words[R]|=M>>>26):x+=8;else{var b=o.length-d;for(v=b%2===0?d+1:d;v<o.length;v+=2)M=w(o,d,v)<<x,this.words[R]|=M&67108863,x>=18?(x-=18,R+=1,this.words[R]|=M>>>26):x+=8}this._strip()};function _(E,o,d,m){for(var v=0,x=0,R=Math.min(E.length,d),M=o;M<R;M++){var b=E.charCodeAt(M)-48;v*=m,b>=49?x=b-49+10:b>=17?x=b-17+10:x=b,a(b>=0&&x<m,"Invalid character"),v+=x}return v}u.prototype._parseBase=function(o,d,m){this.words=[0],this.length=1;for(var v=0,x=1;x<=67108863;x*=d)v++;v--,x=x/d|0;for(var R=o.length-m,M=R%v,b=Math.min(R,R-M)+m,c=0,A=m;A<b;A+=v)c=_(o,A,A+v,d),this.imuln(x),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(M!==0){var K=1;for(c=_(o,A,o.length,d),A=0;A<M;A++)K*=d;this.imuln(K),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},u.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function N(E,o){E.words=o.words,E.length=o.length,E.negative=o.negative,E.red=o.red}if(u.prototype._move=function(o){N(o,this)},u.prototype.clone=function(){var o=new u(null);return this.copy(o),o},u.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},u.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{u.prototype.inspect=C}else u.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],H=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 11,119 bytes, line 77
77777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(o,d){o=o||10,d=d|0||1;var m;if(o===16||o==="hex"){m="";for(var v=0,x=0,R=0;R<this.length;R++){var M=this.words[R],b=((M<<v|x)&16777215).toString(16);x=M>>>24-v&16777215,v+=2,v>=26&&(v-=26,R--),x!==0||R!==this.length-1?m=B[6-b.length]+b+m:m=b+m}for(x!==0&&(m=x.toString(16)+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(o===(o|0)&&o>=2&&o<=36){var c=H[o],A=q[o];m="";var K=this.clone();for(K.negative=0;!K.isZero();){var S=K.modrn(A).toString(o);K=K.idivn(A),K.isZero()?m=S+m:m=B[c-S.length]+S+m}for(this.isZero()&&(m="0"+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}a(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},u.prototype.toJSON=function(){return this.toString(16,2)},p&&(u.prototype.toBuffer=function(o,d){return this.toArrayLike(p,o,d)}),u.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var k=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};u.prototype.toArrayLike=function(o,d,m){this._strip();var v=this.byteLength(),x=m||Math.max(1,v);a(v<=x,"byte array longer than desired length"),a(x>0,"Requested array length <= 0");var R=k(o,x),M=d==="le"?"LE":"BE";return this["_toArrayLike"+M](R,v),R},u.prototype._toArrayLikeLE=function(o,d){for(var m=0,v=0,x=0,R=0;x<this.length;x++){var M=this.words[x]<<R|v;o[m++]=M&255,m<o.length&&(o[m++]=M>>8&255),m<o.length&&(o[m++]=M>>16&255),R===6?(m<o.length&&(o[m++]=M>>24&255),v=0,R=0):(v=M>>>24,R+=2)}if(m<o.length)for(o[m++]=v;m<o.length;)o[m++]=0},u.prototype._toArrayLikeBE=function(o,d){for(var m=o.length-1,v=0,x=0,R=0;x<this.length;x++){var M=this.words[x]<<R|v;o[m--]=M&255,m>=0&&(o[m--]=M>>8&255),m>=0&&(o[m--]=M>>16&255),R===6?(m>=0&&(o[m--]=M>>24&255),v=0,R=0):(v=M>>>24,R+=2)}if(m>=0)for(o[m--]=v;m>=0;)o[m--]=0},Math.clz32?u.prototype._countBits=function(o){return 32-Math.clz32(o)}:u.prototype._countBits=function(o){var d=o,m=0;return d>=4096&&(m+=13,d>>>=13),d>=64&&(m+=7,d>>>=7),d>=8&&(m+=4,d>>>=4),d>=2&&(m+=2,d>>>=2),m+d},u.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,m=0;return(d&8191)===0&&(m+=13,d>>>=13),(d&127)===0&&(m+=7,d>>>=7),(d&15)===0&&(m+=4,d>>>=4),(d&3)===0&&(m+=2,d>>>=2),(d&1)===0&&m++,m},u.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function z(E){for(var o=new Array(E.bitLength()),d=0;d<o.length;d++){var m=d/26|0,v=d%26;o[d]=E.words[m]>>>v&1}return o}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var m=this._zeroBits(this.words[d]);if(o+=m,m!==26)break}return o},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},u.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},u.prototype.ior=function(o){return a((this.negative|o.negative)===0),this.iuor(o)},u.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},u.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},u.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var m=0;m<d.length;m++)this.words[m]=this.words[m]&o.words[m];return this.length=d.length,this._strip()},u.prototype.iand=function(o){return a((this.negative|o.negative)===0),this.iuand(o)},u.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},u.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},u.prototype.iuxor=function(o){var d,m;this.length>o.length?(d=this,m=o):(d=o,m=this);for(var v=0;v<m.length;v++)this.words[v]=d.words[v]^m.words[v];if(this!==d)for(;v<d.length;v++)this.words[v]=d.words[v];return this.length=d.length,this._strip()},u.prototype.ixor=function(o){return a((this.negative|o.negative)===0),this.iuxor(o)},u.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},u.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},u.prototype.inotn=function(o){a(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,m=o%26;this._expand(d),m>0&&d--;for(var v=0;v<d;v++)this.words[v]=~this.words[v]&67108863;return m>0&&(this.words[v]=~this.words[v]&67108863>>26-m),this._strip()},u.prototype.notn=function(o){return this.clone().inotn(o)},u.prototype.setn=function(o,d){a(typeof o=="number"&&o>=0);var m=o/26|0,v=o%26;return this._expand(m+1),d?this.words[m]=this.words[m]|1<<v:this.words[m]=this.words[m]&~(1<<v),this._strip()},u.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var m,v;this.length>o.length?(m=this,v=o):(m=o,v=this);for(var x=0,R=0;R<v.length;R++)d=(m.words[R]|0)+(v.words[R]|0)+x,this.words[R]=d&67108863,x=d>>>26;for(;x!==0&&R<m.length;R++)d=(m.words[R]|0)+x,this.words[R]=d&67108863,x=d>>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;R<m.length;R++)this.words[R]=m.words[R];return this},u.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},u.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var m=this.cmp(o);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,x;m>0?(v=this,x=o):(v=o,x=this);for(var R=0,M=0;M<x.length;M++)d=(v.words[M]|0)-(x.words[M]|0)+R,R=d>>26,this.words[M]=d&67108863;for(;R!==0&&M<v.length;M++)d=(v.words[M]|0)+R,R=d>>26,this.words[M]=d&67108863;if(R===0&&M<v.length&&v!==this)for(;M<v.length;M++)this.words[M]=v.words[M];return this.length=Math.max(this.length,M),v!==this&&(this.negative=1),this._strip()},u.prototype.sub=function(o){return this.clone().isub(o)};function L(E,o,d){d.negative=o.negative^E.negative;var m=E.length+o.length|0;d.length=m,m=m-1|0;var v=E.words[0]|0,x=o.words[0]|0,R=v*x,M=R&67108863,b=R/67108864|0;d.words[0]=M;for(var c=1;c<m;c++){for(var A=b>>>26,K=b&67108863,S=Math.min(c,o.length-1),D=Math.max(0,c-E.length+1);D<=S;D++){var et=c-D|0;v=E.words[et]|0,x=o.words[D]|0,R=v*x+K,A+=R/67108864|0,K=R&67108863}d.words[c]=K|0,b=A|0}return b!==0?d.words[c]=b|0:d.length--,d._strip()}var G=function(o,d,m){var v=o.words,x=d.words,R=m.words,M=0,b,c,A,K=v[0]|0,S=K&8191,D=K>>>13,et=v[1]|0,Y=et&8191,rt=et>>>13,yt=v[2]|0,ft=yt&8191,ot=yt>>>13,de=v[3]|0,ct=de&8191,gt=de>>>13,nr=v[4]|0,wt=nr&8191,Ht=nr>>>13,vr=v[5]|0,Ut=vr&8191,Rt=vr>>>13,Mr=v[6]|0,zt=Mr&8191,Ot=Mr>>>13,ur=v[7]|0,Tt=ur&8191,xt=ur>>>13,Fe=v[8]|0,Et=Fe&8191,te=Fe>>>13,Wr=v[9]|0,ee=Wr&8191,jt=Wr>>>13,Sr=x[0]|0,Ct=Sr&8191,It=Sr>>>13,yr=x[1]|0,re=yr&8191,Zt=yr>>>13,Hr=x[2]|0,Pt=Hr&8191,Lt=Hr>>>13,$r=x[3]|0,Jt=$r&8191,Ft=$r>>>13,Or=x[4]|0,Qt=Or&8191,Wt=Or>>>13,tn=x[5]|0,Nt=tn&8191,At=tn>>>13,ke=x[6]|0,Bt=ke&8191,Yt=ke>>>13,en=x[7]|0,ne=en&8191,$t=en>>>13,br=x[8]|0,Xt=br&8191,kt=br>>>13,fr=x[9]|0,qt=fr&8191,Dt=fr>>>13;m.negative=o.negative^d.negative,m.length=19,b=Math.imul(S,Ct),c=Math.imul(S,It),c=c+Math.imul(D,Ct)|0,A=Math.imul(D,It);var xe=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(xe>>>26)|0,xe&=67108863,b=Math.imul(Y,Ct),c=Math.imul(Y,It),c=c+Math.imul(rt,Ct)|0,A=Math.imul(rt,It),b=b+Math.imul(S,re)|0,c=c+Math.imul(S,Zt)|0,c=c+Math.imul(D,re)|0,A=A+Math.imul(D,Zt)|0;var Tr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(ft,Ct),c=Math.imul(ft,It),c=c+Math.imul(ot,Ct)|0,A=Math.imul(ot,It),b=b+Math.imul(Y,re)|0,c=c+Math.imul(Y,Zt)|0,c=c+Math.imul(rt,re)|0,A=A+Math.imul(rt,Zt)|0,b=b+Math.imul(S,Pt)|0,c=c+Math.imul(S,Lt)|0,c=c+Math.imul(D,Pt)|0,A=A+Math.imul(D,Lt)|0;var Nr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,b=Math.imul(ct,Ct),c=Math.imul(ct,It),c=c+Math.imul(gt,Ct)|0,A=Math.imul(gt,It),b=b+Math.imul(ft,re)|0,c=c+Math.imul(ft,Zt)|0,c=c+Math.imul(ot,re)|0,A=A+Math.imul(ot,Zt)|0,b=b+Math.imul(Y,Pt)|0,c=c+Math.imul(Y,Lt)|0,c=c+Math.imul(rt,Pt)|0,A=A+Math.imul(rt,Lt)|0,b=b+Math.imul(S,Jt)|0,c=c+Math.imul(S,Ft)|0,c=c+Math.imul(D,Jt)|0,A=A+Math.imul(D,Ft)|0;var Ye=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,b=Math.imul(wt,Ct),c=Math.imul(wt,It),c=c+Math.imul(Ht,Ct)|0,A=Math.imul(Ht,It),b=b+Math.imul(ct,re)|0,c=c+Math.imul(ct,Zt)|0,c=c+Math.imul(gt,re)|0,A=A+Math.imul(gt,Zt)|0,b=b+Math.imul(ft,Pt)|0,c=c+Math.imul(ft,Lt)|0,c=c+Math.imul(ot,Pt)|0,A=A+Math.imul(ot,Lt)|0,b=b+Math.imul(Y,Jt)|0,c=c+Math.imul(Y,Ft)|0,c=c+Math.imul(rt,Jt)|0,A=A+Math.imul(rt,Ft)|0,b=b+Math.imul(S,Qt)|0,c=c+Math.imul(S,Wt)|0,c=c+Math.imul(D,Qt)|0,A=A+Math.imul(D,Wt)|0;var We=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(We>>>26)|0,We&=67108863,b=Math.imul(Ut,Ct),c=Math.imul(Ut,It),c=c+Math.imul(Rt,Ct)|0,A=Math.imul(Rt,It),b=b+Math.imul(wt,re)|0,c=c+Math.imul(wt,Zt)|0,c=c+Math.imul(Ht,re)|0,A=A+Math.imul(Ht,Zt)|0,b=b+Math.imul(ct,Pt)|0,c=c+Math.imul(ct,Lt)|0,c=c+Math.imul(gt,Pt)|0,A=A+Math.imul(gt,Lt)|0,b=b+Math.imul(ft,Jt)|0,c=c+Math.imul(ft,Ft)|0,c=c+Math.imul(ot,Jt)|0,A=A+Math.imul(ot,Ft)|0,b=b+Math.imul(Y,Qt)|0,c=c+Math.imul(Y,Wt)|0,c=c+Math.imul(rt,Qt)|0,A=A+Math.imul(rt,Wt)|0,b=b+Math.imul(S,Nt)|0,c=c+Math.imul(S,At)|0,c=c+Math.imul(D,Nt)|0,A=A+Math.imul(D,At)|0;var Vn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,b=Math.imul(zt,Ct),c=Math.imul(zt,It),c=c+Math.imul(Ot,Ct)|0,A=Math.imul(Ot,It),b=b+Math.imul(Ut,re)|0,c=c+Math.imul(Ut,Zt)|0,c=c+Math.imul(Rt,re)|0,A=A+Math.imul(Rt,Zt)|0,b=b+Math.imul(wt,Pt)|0,c=c+Math.imul(wt,Lt)|0,c=c+Math.imul(Ht,Pt)|0,A=A+Math.imul(Ht,Lt)|0,b=b+Math.imul(ct,Jt)|0,c=c+Math.imul(ct,Ft)|0,c=c+Math.imul(gt,Jt)|0,A=A+Math.imul(gt,Ft)|0,b=b+Math.imul(ft,Qt)|0,c=c+Math.imul(ft,Wt)|0,c=c+Math.imul(ot,Qt)|0,A=A+Math.imul(ot,Wt)|0,b=b+Math.imul(Y,Nt)|0,c=c+Math.imul(Y,At)|0,c=c+Math.imul(rt,Nt)|0,A=A+Math.imul(rt,At)|0,b=b+Math.imul(S,Bt)|0,c=c+Math.imul(S,Yt)|0,c=c+Math.imul(D,Bt)|0,A=A+Math.imul(D,Yt)|0;
77var Cn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,b=Math.imul(Tt,Ct),c=Math.imul(Tt,It),c=c+Math.imul(xt,Ct)|0,A=Math.imul(xt,It),b=b+Math.imul(zt,re)|0,c=c+Math.imul(zt,Zt)|0,c=c+Math.imul(Ot,re)|0,A=A+Math.imul(Ot,Zt)|0,b=b+Math.imul(Ut,Pt)|0,c=c+Math.imul(Ut,Lt)|0,c=c+Math.imul(Rt,Pt)|0,A=A+Math.imul(Rt,Lt)|0,b=b+Math.imul(wt,Jt)|0,c=c+Math.imul(wt,Ft)|0,c=c+Math.imul(Ht,Jt)|0,A=A+Math.imul(Ht,Ft)|0,b=b+Math.imul(ct,Qt)|0,c=c+Math.imul(ct,Wt)|0,c=c+Math.imul(gt,Qt)|0,A=A+Math.imul(gt,Wt)|0,b=b+Math.imul(ft,Nt)|0,c=c+Math.imul(ft,At)|0,c=c+Math.imul(ot,Nt)|0,A=A+Math.imul(ot,At)|0,b=b+Math.imul(Y,Bt)|0,c=c+Math.imul(Y,Yt)|0,c=c+Math.imul(rt,Bt)|0,A=A+Math.imul(rt,Yt)|0,b=b+Math.imul(S,ne)|0,c=c+Math.imul(S,$t)|0,c=c+Math.imul(D,ne)|0,A=A+Math.imul(D,$t)|0;var On=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(On>>>26)|0,On&=67108863,b=Math.imul(Et,Ct),c=Math.imul(Et,It),c=c+Math.imul(te,Ct)|0,A=Math.imul(te,It),b=b+Math.imul(Tt,re)|0,c=c+Math.imul(Tt,Zt)|0,c=c+Math.imul(xt,re)|0,A=A+Math.imul(xt,Zt)|0,b=b+Math.imul(zt,Pt)|0,c=c+Math.imul(zt,Lt)|0,c=c+Math.imul(Ot,Pt)|0,A=A+Math.imul(Ot,Lt)|0,b=b+Math.imul(Ut,Jt)|0,c=c+Math.imul(Ut,Ft)|0,c=c+Math.imul(Rt,Jt)|0,A=A+Math.imul(Rt,Ft)|0,b=b+Math.imul(wt,Qt)|0,c=c+Math.imul(wt,Wt)|0,c=c+Math.imul(Ht,Qt)|0,A=A+Math.imul(Ht,Wt)|0,b=b+Math.imul(ct,Nt)|0,c=c+Math.imul(ct,At)|0,c=c+Math.imul(gt,Nt)|0,A=A+Math.imul(gt,At)|0,b=b+Math.imul(ft,Bt)|0,c=c+Math.imul(ft,Yt)|0,c=c+Math.imul(ot,Bt)|0,A=A+Math.imul(ot,Yt)|0,b=b+Math.imul(Y,ne)|0,c=c+Math.imul(Y,$t)|0,c=c+Math.imul(rt,ne)|0,A=A+Math.imul(rt,$t)|0,b=b+Math.imul(S,Xt)|0,c=c+Math.imul(S,kt)|0,c=c+Math.imul(D,Xt)|0,A=A+Math.imul(D,kt)|0;var Kn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,b=Math.imul(ee,Ct),c=Math.imul(ee,It),c=c+Math.imul(jt,Ct)|0,A=Math.imul(jt,It),b=b+Math.imul(Et,re)|0,c=c+Math.imul(Et,Zt)|0,c=c+Math.imul(te,re)|0,A=A+Math.imul(te,Zt)|0,b=b+Math.imul(Tt,Pt)|0,c=c+Math.imul(Tt,Lt)|0,c=c+Math.imul(xt,Pt)|0,A=A+Math.imul(xt,Lt)|0,b=b+Math.imul(zt,Jt)|0,c=c+Math.imul(zt,Ft)|0,c=c+Math.imul(Ot,Jt)|0,A=A+Math.imul(Ot,Ft)|0,b=b+Math.imul(Ut,Qt)|0,c=c+Math.imul(Ut,Wt)|0,c=c+Math.imul(Rt,Qt)|0,A=A+Math.imul(Rt,Wt)|0,b=b+Math.imul(wt,Nt)|0,c=c+Math.imul(wt,At)|0,c=c+Math.imul(Ht,Nt)|0,A=A+Math.imul(Ht,At)|0,b=b+Math.imul(ct,Bt)|0,c=c+Math.imul(ct,Yt)|0,c=c+Math.imul(gt,Bt)|0,A=A+Math.imul(gt,Yt)|0,b=b+Math.imul(ft,ne)|0,c=c+Math.imul(ft,$t)|0,c=c+Math.imul(ot,ne)|0,A=A+Math.imul(ot,$t)|0,b=b+Math.imul(Y,Xt)|0,c=c+Math.imul(Y,kt)|0,c=c+Math.imul(rt,Xt)|0,A=A+Math.imul(rt,kt)|0,b=b+Math.imul(S,qt)|0,c=c+Math.imul(S,Dt)|0,c=c+Math.imul(D,qt)|0,A=A+Math.imul(D,Dt)|0;var rn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(rn>>>26)|0,rn&=67108863,b=Math.imul(ee,re),c=Math.imul(ee,Zt),c=c+Math.imul(jt,re)|0,A=Math.imul(jt,Zt),b=b+Math.imul(Et,Pt)|0,c=c+Math.imul(Et,Lt)|0,c=c+Math.imul(te,Pt)|0,A=A+Math.imul(te,Lt)|0,b=b+Math.imul(Tt,Jt)|0,c=c+Math.imul(Tt,Ft)|0,c=c+Math.imul(xt,Jt)|0,A=A+Math.imul(xt,Ft)|0,b=b+Math.imul(zt,Qt)|0,c=c+Math.imul(zt,Wt)|0,c=c+Math.imul(Ot,Qt)|0,A=A+Math.imul(Ot,Wt)|0,b=b+Math.imul(Ut,Nt)|0,c=c+Math.imul(Ut,At)|0,c=c+Math.imul(Rt,Nt)|0,A=A+Math.imul(Rt,At)|0,b=b+Math.imul(wt,Bt)|0,c=c+Math.imul(wt,Yt)|0,c=c+Math.imul(Ht,Bt)|0,A=A+Math.imul(Ht,Yt)|0,b=b+Math.imul(ct,ne)|0,c=c+Math.imul(ct,$t)|0,c=c+Math.imul(gt,ne)|0,A=A+Math.imul(gt,$t)|0,b=b+Math.imul(ft,Xt)|0,c=c+Math.imul(ft,kt)|0,c=c+Math.imul(ot,Xt)|0,A=A+Math.imul(ot,kt)|0,b=b+Math.imul(Y,qt)|0,c=c+Math.imul(Y,Dt)|0,c=c+Math.imul(rt,qt)|0,A=A+Math.imul(rt,Dt)|0;var nn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(nn>>>26)|0,nn&=67108863,b=Math.imul(ee,Pt),c=Math.imul(ee,Lt),c=c+Math.imul(jt,Pt)|0,A=Math.imul(jt,Lt),b=b+Math.imul(Et,Jt)|0,c=c+Math.imul(Et,Ft)|0,c=c+Math.imul(te,Jt)|0,A=A+Math.imul(te,Ft)|0,b=b+Math.imul(Tt,Qt)|0,c=c+Math.imul(Tt,Wt)|0,c=c+Math.imul(xt,Qt)|0,A=A+Math.imul(xt,Wt)|0,b=b+Math.imul(zt,Nt)|0,c=c+Math.imul(zt,At)|0,c=c+Math.imul(Ot,Nt)|0,A=A+Math.imul(Ot,At)|0,b=b+Math.imul(Ut,Bt)|0,c=c+Math.imul(Ut,Yt)|0,c=c+Math.imul(Rt,Bt)|0,A=A+Math.imul(Rt,Yt)|0,b=b+Math.imul(wt,ne)|0,c=c+Math.imul(wt,$t)|0,c=c+Math.imul(Ht,ne)|0,A=A+Math.imul(Ht,$t)|0,b=b+Math.imul(ct,Xt)|0,c=c+Math.imul(ct,kt)|0,c=c+Math.imul(gt,Xt)|0,A=A+Math.imul(gt,kt)|0,b=b+Math.imul(ft,qt)|0,c=c+Math.imul(ft,Dt)|0,c=c+Math.imul(ot,qt)|0,A=A+Math.imul(ot,Dt)|0;var cr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(cr>>>26)|0,cr&=67108863,b=Math.imul(ee,Jt),c=Math.imul(ee,Ft),c=c+Math.imul(jt,Jt)|0,A=Math.imul(jt,Ft),b=b+Math.imul(Et,Qt)|0,c=c+Math.imul(Et,Wt)|0,c=c+Math.imul(te,Qt)|0,A=A+Math.imul(te,Wt)|0,b=b+Math.imul(Tt,Nt)|0,c=c+Math.imul(Tt,At)|0,c=c+Math.imul(xt,Nt)|0,A=A+Math.imul(xt,At)|0,b=b+Math.imul(zt,Bt)|0,c=c+Math.imul(zt,Yt)|0,c=c+Math.imul(Ot,Bt)|0,A=A+Math.imul(Ot,Yt)|0,b=b+Math.imul(Ut,ne)|0,c=c+Math.imul(Ut,$t)|0,c=c+Math.imul(Rt,ne)|0,A=A+Math.imul(Rt,$t)|0,b=b+Math.imul(wt,Xt)|0,c=c+Math.imul(wt,kt)|0,c=c+Math.imul(Ht,Xt)|0,A=A+Math.imul(Ht,kt)|0,b=b+Math.imul(ct,qt)|0,c=c+Math.imul(ct,Dt)|0,c=c+Math.imul(gt,qt)|0,A=A+Math.imul(gt,Dt)|0;var bn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(bn>>>26)|0,bn&=67108863,b=Math.imul(ee,Qt),c=Math.imul(ee,Wt),c=c+Math.imul(jt,Qt)|0,A=Math.imul(jt,Wt),b=b+Math.imul(Et,Nt)|0,c=c+Math.imul(Et,At)|0,c=c+Math.imul(te,Nt)|0,A=A+Math.imul(te,At)|0,b=b+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Yt)|0,c=c+Math.imul(xt,Bt)|0,A=A+Math.imul(xt,Yt)|0,b=b+Math.imul(zt,ne)|0,c=c+Math.imul(zt,$t)|0,c=c+Math.imul(Ot,ne)|0,A=A+Math.imul(Ot,$t)|0,b=b+Math.imul(Ut,Xt)|0,c=c+Math.imul(Ut,kt)|0,c=c+Math.imul(Rt,Xt)|0,A=A+Math.imul(Rt,kt)|0,b=b+Math.imul(wt,qt)|0,c=c+Math.imul(wt,Dt)|0,c=c+Math.imul(Ht,qt)|0,A=A+Math.imul(Ht,Dt)|0;var Bn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,b=Math.imul(ee,Nt),c=Math.imul(ee,At),c=c+Math.imul(jt,Nt)|0,A=Math.imul(jt,At),b=b+Math.imul(Et,Bt)|0,c=c+Math.imul(Et,Yt)|0,c=c+Math.imul(te,Bt)|0,A=A+Math.imul(te,Yt)|0,b=b+Math.imul(Tt,ne)|0,c=c+Math.imul(Tt,$t)|0,c=c+Math.imul(xt,ne)|0,A=A+Math.imul(xt,$t)|0,b=b+Math.imul(zt,Xt)|0,c=c+Math.imul(zt,kt)|0,c=c+Math.imul(Ot,Xt)|0,A=A+Math.imul(Ot,kt)|0,b=b+Math.imul(Ut,qt)|0,c=c+Math.imul(Ut,Dt)|0,c=c+Math.imul(Rt,qt)|0,A=A+Math.imul(Rt,Dt)|0;var Br=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Br>>
vendor: 20,904 bytes, line 77
77>26)|0,Br&=67108863,b=Math.imul(ee,Bt),c=Math.imul(ee,Yt),c=c+Math.imul(jt,Bt)|0,A=Math.imul(jt,Yt),b=b+Math.imul(Et,ne)|0,c=c+Math.imul(Et,$t)|0,c=c+Math.imul(te,ne)|0,A=A+Math.imul(te,$t)|0,b=b+Math.imul(Tt,Xt)|0,c=c+Math.imul(Tt,kt)|0,c=c+Math.imul(xt,Xt)|0,A=A+Math.imul(xt,kt)|0,b=b+Math.imul(zt,qt)|0,c=c+Math.imul(zt,Dt)|0,c=c+Math.imul(Ot,qt)|0,A=A+Math.imul(Ot,Dt)|0;var wn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,b=Math.imul(ee,ne),c=Math.imul(ee,$t),c=c+Math.imul(jt,ne)|0,A=Math.imul(jt,$t),b=b+Math.imul(Et,Xt)|0,c=c+Math.imul(Et,kt)|0,c=c+Math.imul(te,Xt)|0,A=A+Math.imul(te,kt)|0,b=b+Math.imul(Tt,qt)|0,c=c+Math.imul(Tt,Dt)|0,c=c+Math.imul(xt,qt)|0,A=A+Math.imul(xt,Dt)|0;var xn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(xn>>>26)|0,xn&=67108863,b=Math.imul(ee,Xt),c=Math.imul(ee,kt),c=c+Math.imul(jt,Xt)|0,A=Math.imul(jt,kt),b=b+Math.imul(Et,qt)|0,c=c+Math.imul(Et,Dt)|0,c=c+Math.imul(te,qt)|0,A=A+Math.imul(te,Dt)|0;var Zn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,b=Math.imul(ee,qt),c=Math.imul(ee,Dt),c=c+Math.imul(jt,qt)|0,A=Math.imul(jt,Dt);var kn=(M+b|0)+((c&8191)<<13)|0;return M=(A+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,R[0]=xe,R[1]=Tr,R[2]=Nr,R[3]=Ye,R[4]=We,R[5]=Vn,R[6]=Cn,R[7]=On,R[8]=Kn,R[9]=rn,R[10]=nn,R[11]=cr,R[12]=bn,R[13]=Bn,R[14]=Br,R[15]=wn,R[16]=xn,R[17]=Zn,R[18]=kn,M!==0&&(R[19]=M,m.length++),m};Math.imul||(G=L);function I(E,o,d){d.negative=o.negative^E.negative,d.length=E.length+o.length;for(var m=0,v=0,x=0;x<d.length-1;x++){var R=v;v=0;for(var M=m&67108863,b=Math.min(x,o.length-1),c=Math.max(0,x-E.length+1);c<=b;c++){var A=x-c,K=E.words[A]|0,S=o.words[c]|0,D=K*S,et=D&67108863;R=R+(D/67108864|0)|0,et=et+M|0,M=et&67108863,R=R+(et>>>26)|0,v+=R>>>26,R&=67108863}d.words[x]=M,m=R,R=v}return m!==0?d.words[x]=m:d.length--,d._strip()}function Q(E,o,d){return I(E,o,d)}u.prototype.mulTo=function(o,d){var m,v=this.length+o.length;return this.length===10&&o.length===10?m=G(this,o,d):v<63?m=L(this,o,d):v<1024?m=I(this,o,d):m=Q(this,o,d),m},u.prototype.mul=function(o){var d=new u(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},u.prototype.mulf=function(o){var d=new u(null);return d.words=new Array(this.length+o.length),Q(this,o,d)},u.prototype.imul=function(o){return this.clone().mulTo(o,this)},u.prototype.imuln=function(o){var d=o<0;d&&(o=-o),a(typeof o=="number"),a(o<67108864);for(var m=0,v=0;v<this.length;v++){var x=(this.words[v]|0)*o,R=(x&67108863)+(m&67108863);m>>=26,m+=x/67108864|0,m+=R>>>26,this.words[v]=R&67108863}return m!==0&&(this.words[v]=m,this.length++),d?this.ineg():this},u.prototype.muln=function(o){return this.clone().imuln(o)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(o){var d=z(o);if(d.length===0)return new u(1);for(var m=this,v=0;v<d.length&&d[v]===0;v++,m=m.sqr());if(++v<d.length)for(var x=m.sqr();v<d.length;v++,x=x.sqr())d[v]!==0&&(m=m.mul(x));return m},u.prototype.iushln=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26,v=67108863>>>26-d<<26-d,x;if(d!==0){var R=0;for(x=0;x<this.length;x++){var M=this.words[x]&v,b=(this.words[x]|0)-M<<d;this.words[x]=b|R,R=M>>>26-d}R&&(this.words[x]=R,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x<m;x++)this.words[x]=0;this.length+=m}return this._strip()},u.prototype.ishln=function(o){return a(this.negative===0),this.iushln(o)},u.prototype.iushrn=function(o,d,m){a(typeof o=="number"&&o>=0);var v;d?v=(d-d%26)/26:v=0;var x=o%26,R=Math.min((o-x)/26,this.length),M=67108863^67108863>>>x<<x,b=m;if(v-=R,v=Math.max(0,v),b){for(var c=0;c<R;c++)b.words[c]=this.words[c];b.length=R}if(R!==0)if(this.length>R)for(this.length-=R,c=0;c<this.length;c++)this.words[c]=this.words[c+R];else this.words[0]=0,this.length=1;var A=0;for(c=this.length-1;c>=0&&(A!==0||c>=v);c--){var K=this.words[c]|0;this.words[c]=A<<26-x|K>>>x,A=K&M}return b&&A!==0&&(b.words[b.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(o,d,m){return a(this.negative===0),this.iushrn(o,d,m)},u.prototype.shln=function(o){return this.clone().ishln(o)},u.prototype.ushln=function(o){return this.clone().iushln(o)},u.prototype.shrn=function(o){return this.clone().ishrn(o)},u.prototype.ushrn=function(o){return this.clone().iushrn(o)},u.prototype.testn=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26,v=1<<d;if(this.length<=m)return!1;var x=this.words[m];return!!(x&v)},u.prototype.imaskn=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(d!==0&&m++,this.length=Math.min(m,this.length),d!==0){var v=67108863^67108863>>>d<<d;this.words[this.length-1]&=v}return this._strip()},u.prototype.maskn=function(o){return this.clone().imaskn(o)},u.prototype.iaddn=function(o){return a(typeof o=="number"),a(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},u.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},u.prototype.isubn=function(o){if(a(typeof o=="number"),a(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},u.prototype.addn=function(o){return this.clone().iaddn(o)},u.prototype.subn=function(o){return this.clone().isubn(o)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(o,d,m){var v=o.length+m,x;this._expand(v);var R,M=0;for(x=0;x<o.length;x++){R=(this.words[x+m]|0)+M;var b=(o.words[x]|0)*d;R-=b&67108863,M=(R>>26)-(b/67108864|0),this.words[x+m]=R&67108863}for(;x<this.length-m;x++)R=(this.words[x+m]|0)+M,M=R>>26,this.words[x+m]=R&67108863;if(M===0)return this._strip();for(a(M===-1),M=0,x=0;x<this.length;x++)R=-(this.words[x]|0)+M,M=R>>26,this.words[x]=R&67108863;return this.negative=1,this._strip()},u.prototype._wordDiv=function(o,d){var m=this.length-o.length,v=this.clone(),x=o,R=x.words[x.length-1]|0,M=this._countBits(R);m=26-M,m!==0&&(x=x.ushln(m),v.iushln(m),R=x.words[x.length-1]|0);var b=v.length-x.length,c;if(d!=="mod"){c=new u(null),c.length=b+1,c.words=new Array(c.length);for(var A=0;A<c.length;A++)c.words[A]=0}var K=v.clone()._ishlnsubmul(x,1,b);K.negative===0&&(v=K,c&&(c.words[b]=1));for(var S=b-1;S>=0;S--){var D=(v.words[x.length+S]|0)*67108864+(v.words[x.length+S-1]|0);for(D=Math.min(D/R|0,67108863),v._ishlnsubmul(x,D,S);v.negative!==0;)D--,v.negative=0,v._ishlnsubmul(x,1,S),v.isZero()||(v.negative^=1);c&&(c.words[S]=D)}return c&&c._strip(),v._strip(),d!=="div"&&m!==0&&v.iushrn(m),{div:c||null,mod:v}},u.prototype.divmod=function(o,d,m){if(a(!o.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var v,x,R;return this.negative!==0&&o.negative===0?(R=this.neg().divmod(o,d),d!=="mod"&&(v=R.div.neg()),d!=="div"&&(x=R.mod.neg(),m&&x.negative!==0&&x.iadd(o)),{div:v,mod:x}):this.negative===0&&o.negative!==0?(R=this.divmod(o.neg(),d),d!=="mod"&&(v=R.div.neg()),{div:v,mod:R.mod}):(this.negative&o.negative)!==0?(R=this.neg().divmod(o.neg(),d),d!=="div"&&(x=R.mod.neg(),m&&x.negative!==0&&x.isub(o)),{div:R.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new u(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new u(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new u(this.modrn(o.words[0]))}:this._wordDiv(o,d)},u.prototype.div=function(o){return this.divmod(o,"div",!1).div},u.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},u.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},u.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var m=d.div.negative!==0?d.mod.isub(o):d.mod,v=o.ushrn(1),x=o.andln(1),R=m.cmp(v);return R<0||x===1&&R===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},u.prototype.modrn=function(o){var d=o<0;d&&(o=-o),a(o<=67108863);for(var m=(1<<26)%o,v=0,x=this.length-1;x>=0;x--)v=(m*v+(this.words[x]|0))%o;return d?-v:v},u.prototype.modn=function(o){return this.modrn(o)},u.prototype.idivn=function(o){var d=o<0;d&&(o=-o),a(o<=67108863);for(var m=0,v=this.length-1;v>=0;v--){var x=(this.words[v]|0)+m*67108864;this.words[v]=x/o|0,m=x%o}return this._strip(),d?this.ineg():this},u.prototype.divn=function(o){return this.clone().idivn(o)},u.prototype.egcd=function(o){a(o.negative===0),a(!o.isZero());var d=this,m=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var v=new u(1),x=new u(0),R=new u(0),M=new u(1),b=0;d.isEven()&&m.isEven();)d.iushrn(1),m.iushrn(1),++b;for(var c=m.clone(),A=d.clone();!d.isZero();){for(var K=0,S=1;(d.words[0]&S)===0&&K<26;++K,S<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(v.isOdd()||x.isOdd())&&(v.iadd(c),x.isub(A)),v.iushrn(1),x.iushrn(1);for(var D=0,et=1;(m.words[0]&et)===0&&D<26;++D,et<<=1);if(D>0)for(m.iushrn(D);D-- >0;)(R.isOdd()||M.isOdd())&&(R.iadd(c),M.isub(A)),R.iushrn(1),M.iushrn(1);d.cmp(m)>=0?(d.isub(m),v.isub(R),x.isub(M)):(m.isub(d),R.isub(v),M.isub(x))}return{a:R,b:M,gcd:m.iushln(b)}},u.prototype._invmp=function(o){a(o.negative===0),a(!o.isZero());var d=this,m=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var v=new u(1),x=new u(0),R=m.clone();d.cmpn(1)>0&&m.cmpn(1)>0;){for(var M=0,b=1;(d.words[0]&b)===0&&M<26;++M,b<<=1);if(M>0)for(d.iushrn(M);M-- >0;)v.isOdd()&&v.iadd(R),v.iushrn(1);for(var c=0,A=1;(m.words[0]&A)===0&&c<26;++c,A<<=1);if(c>0)for(m.iushrn(c);c-- >0;)x.isOdd()&&x.iadd(R),x.iushrn(1);d.cmp(m)>=0?(d.isub(m),v.isub(x)):(m.isub(d),x.isub(v))}var K;return d.cmpn(1)===0?K=v:K=x,K.cmpn(0)<0&&K.iadd(o),K},u.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),m=o.clone();d.negative=0,m.negative=0;for(var v=0;d.isEven()&&m.isEven();v++)d.iushrn(1),m.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=d.cmp(m);if(x<0){var R=d;d=m,m=R}else if(x===0||m.cmpn(1)===0)break;d.isub(m)}while(!0);return m.iushln(v)},u.prototype.invm=function(o){return this.egcd(o).a.umod(o)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(o){return this.words[0]&o},u.prototype.bincn=function(o){a(typeof o=="number");var d=o%26,m=(o-d)/26,v=1<<d;if(this.length<=m)return this._expand(m+1),this.words[m]|=v,this;for(var x=v,R=m;x!==0&&R<this.length;R++){var M=this.words[R]|0;M+=x,x=M>>>26,M&=67108863,this.words[R]=M}return x!==0&&(this.words[R]=x,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var m;if(this.length>1)m=1;else{d&&(o=-o),a(o<=67108863,"Number is too big");var v=this.words[0]|0;m=v===o?0:v<o?-1:1}return this.negative!==0?-m|0:m},u.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},u.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,m=this.length-1;m>=0;m--){var v=this.words[m]|0,x=o.words[m]|0;if(v!==x){v<x?d=-1:v>x&&(d=1);break}}return d},u.prototype.gtn=function(o){return this.cmpn(o)===1},u.prototype.gt=function(o){return this.cmp(o)===1},u.prototype.gten=function(o){return this.cmpn(o)>=0},u.prototype.gte=function(o){return this.cmp(o)>=0},u.prototype.ltn=function(o){return this.cmpn(o)===-1},u.prototype.lt=function(o){return this.cmp(o)===-1},u.prototype.lten=function(o){return this.cmpn(o)<=0},u.prototype.lte=function(o){return this.cmp(o)<=0},u.prototype.eqn=function(o){return this.cmpn(o)===0},u.prototype.eq=function(o){return this.cmp(o)===0},u.red=function(o){return new pt(o)},u.prototype.toRed=function(o){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},u.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(o){return this.red=o,this},u.prototype.forceRed=function(o){return a(!this.red,"Already a number in reduction context"),this._forceRed(o)},u.prototype.redAdd=function(o){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},u.prototype.redIAdd=function(o){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},u.prototype.redSub=function(o){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},u.prototype.redISub=function(o){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},u.prototype.redShl=function(o){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},u.prototype.redMul=function(o){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},u.prototype.redIMul=function(o){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},u.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(o){return a(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var W={k256:null,p224:null,p192:null,p25519:null};function lt(E,o){this.name=E,this.p=new u(o,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}lt.prototype._tmp=function(){var o=new u(null);return o.words=new Array(Math.ceil(this.n/13)),o},lt.prototype.ireduce=function(o){var d=o,m;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),m=d.bitLength();while(m>this.n);var v=m<this.n?-1:d.ucmp(this.p);return v===0?(d.words[0]=0,d.length=1):v>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},lt.prototype.split=function(o,d){o.iushrn(this.n,0,d)},lt.prototype.imulK=function(o){return o.imul(this.k)};function ut(){lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(ut,lt),ut.prototype.split=function(o,d){for(var m=4194303,v=Math.min(o.length,9),x=0;x<v;x++)d.words[x]=o.words[x];if(d.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var R=o.words[9];for(d.words[d.length++]=R&m,x=10;x<o.length;x++){var M=o.words[x]|0;o.words[x-10]=(M&m)<<4|R>>>22,R=M}R>>>=22,o.words[x-10]=R,R===0&&o.length>10?o.length-=10:o.length-=9},ut.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,m=0;m<o.length;m++){var v=o.words[m]|0;d+=v*977,o.words[m]=d&67108863,d=v*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function ht(){lt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(ht,lt);function vt(){lt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(vt,lt);function ae(){lt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(ae,lt),ae.prototype.imulK=function(o){for(var d=0,m=0;m<o.length;m++){var v=(o.words[m]|0)*19+d,x=v&67108863;v>>>=26,o.words[m]=x,d=v}return d!==0&&(o.words[o.length++]=d),o},u._prime=function(o){if(W[o])return W[o];var d;if(o==="k256")d=new ut;else if(o==="p224")d=new ht;else if(o==="p192")d=new vt;else if(o==="p25519")d=new ae;else throw new Error("Unknown prime "+o);return W[o]=d,d};function pt(E){if(typeof E=="string"){var o=u._prime(E);this.m=o.p,this.prime=o}else a(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}pt.prototype._verify1=function(o){a(o.negative===0,"red works only with positives"),a(o.red,"red works only with red numbers")},pt.prototype._verify2=function(o,d){a((o.negative|d.negative)===0,"red works only with positives"),a(o.red&&o.red===d.red,"red works only with red numbers")},pt.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(N(o,o.umod(this.m)._forceRed(this)),o)},pt.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},pt.prototype.add=function(o,d){this._verify2(o,d);var m=o.add(d);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pt.prototype.iadd=function(o,d){this._verify2(o,d);var m=o.iadd(d);return m.cmp(this.m)>=0&&m.isub(this.m),m},pt.prototype.sub=function(o,d){this._verify2(o,d);var m=o.sub(d);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pt.prototype.isub=function(o,d){this._verify2(o,d);var m=o.isub(d);return m.cmpn(0)<0&&m.iadd(this.m),m},pt.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},pt.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},pt.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},pt.prototype.isqr=function(o){return this.imul(o,o.clone())},pt.prototype.sqr=function(o){return this.mul(o,o)},pt.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(a(d%2===1),d===3){var m=this.m.add(new u(1)).iushrn(2);return this.pow(o,m)}for(var v=this.m.subn(1),x=0;!v.isZero()&&v.andln(1)===0;)x++,v.iushrn(1);a(!v.isZero());var R=new u(1).toRed(this),M=R.redNeg(),b=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new u(2*c*c).toRed(this);this.pow(c,b).cmp(M)!==0;)c.redIAdd(M);for(var A=this.pow(c,v),K=this.pow(o,v.addn(1).iushrn(1)),S=this.pow(o,v),D=x;S.cmp(R)!==0;){for(var et=S,Y=0;et.cmp(R)!==0;Y++)et=et.redSqr();a(Y<D);var rt=this.pow(A,new u(1).iushln(D-Y-1));K=K.redMul(rt),A=rt.redSqr(),S=S.redMul(A),D=Y}return K},pt.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},pt.prototype.pow=function(o,d){if(d.isZero())return new u(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var m=4,v=new Array(1<<m);v[0]=new u(1).toRed(this),v[1]=o;for(var x=2;x<v.length;x++)v[x]=this.mul(v[x-1],o);var R=v[0],M=0,b=0,c=d.bitLength()%26;for(c===0&&(c=26),x=d.length-1;x>=0;x--){for(var A=d.words[x],K=c-1;K>=0;K--){var S=A>>K&1;if(R!==v[0]&&(R=this.sqr(R)),S===0&&M===0){b=0;continue}M<<=1,M|=S,b++,!(b!==m&&(x!==0||K!==0))&&(R=this.mul(R,v[M]),b=0,M=0)}c=26}return R},pt.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},pt.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},u.mont=function(o){return new V(o)};function V(E){pt.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(V,pt),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},V.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var m=o.imul(d),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),R=x;return x.cmp(this.m)>=0?R=x.isub(this.m):x.cmpn(0)<0&&(R=x.iadd(this.m)),R._forceRed(this)},V.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new u(0)._forceRed(this);var m=o.mul(d),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),R=x;return x.cmp(this.m)>=0?R=x.isub(this.m):x.cmpn(0)<0&&(R=x.iadd(this.m)),R._forceRed(this)},V.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(l,aw)}(Qo)),Qo.exports}var sw=lw();const ow=ll(sw),uw="logger/5.8.0";let Bm=!1,km=!1;const Yo={debug:1,default:2,info:2,warning:3,error:4,off:5};let Dm=Yo.default,Dc=null;function fw(){try{const l=[];
77if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{l.push(e)}}),l.length)throw new Error("missing "+l.join(", "));if("é".normalize("NFD")!=="é")throw new Error("broken implementation")}catch(l){return l.message}return null}const Um=fw();var ch;(function(l){l.DEBUG="DEBUG",l.INFO="INFO",l.WARNING="WARNING",l.ERROR="ERROR",l.OFF="OFF"})(ch||(ch={}));var Tn;(function(l){l.UNKNOWN_ERROR="UNKNOWN_ERROR",l.NOT_IMPLEMENTED="NOT_IMPLEMENTED",l.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",l.NETWORK_ERROR="NETWORK_ERROR",l.SERVER_ERROR="SERVER_ERROR",l.TIMEOUT="TIMEOUT",l.BUFFER_OVERRUN="BUFFER_OVERRUN",l.NUMERIC_FAULT="NUMERIC_FAULT",l.MISSING_NEW="MISSING_NEW",l.INVALID_ARGUMENT="INVALID_ARGUMENT",l.MISSING_ARGUMENT="MISSING_ARGUMENT",l.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",l.CALL_EXCEPTION="CALL_EXCEPTION",l.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",l.NONCE_EXPIRED="NONCE_EXPIRED",l.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",l.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",l.TRANSACTION_REPLACED="TRANSACTION_REPLACED",l.ACTION_REJECTED="ACTION_REJECTED"})(Tn||(Tn={}));const zm="0123456789abcdef";class F{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,n){const a=e.toLowerCase();Yo[a]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(Dm>Yo[a])&&console.log.apply(console,n)}debug(...e){this._log(F.levels.DEBUG,e)}info(...e){this._log(F.levels.INFO,e)}warn(...e){this._log(F.levels.WARNING,e)}makeError(e,n,a){if(km)return this.makeError("censored error",n,{});n||(n=F.errors.UNKNOWN_ERROR),a||(a={});const f=[];Object.keys(a).forEach(w=>{const _=a[w];try{if(_ instanceof Uint8Array){let N="";for(let C=0;C<_.length;C++)N+=zm[_[C]>>4],N+=zm[_[C]&15];f.push(w+"=Uint8Array(0x"+N+")")}else f.push(w+"="+JSON.stringify(_))}catch{f.push(w+"="+JSON.stringify(a[w].toString()))}}),f.push(`code=${n}`),f.push(`version=${this.version}`);const u=e;let p="";switch(n){case Tn.NUMERIC_FAULT:{p="NUMERIC_FAULT";const w=e;switch(w){case"overflow":case"underflow":case"division-by-zero":p+="-"+w;break;case"negative-power":case"negative-width":p+="-unsupported";break;case"unbound-bitwise-result":p+="-unbound-result";break}break}case Tn.CALL_EXCEPTION:case Tn.INSUFFICIENT_FUNDS:case Tn.MISSING_NEW:case Tn.NONCE_EXPIRED:case Tn.REPLACEMENT_UNDERPRICED:case Tn.TRANSACTION_REPLACED:case Tn.UNPREDICTABLE_GAS_LIMIT:p=n;break}p&&(e+=" [ See: https://links.ethers.org/v5-errors-"+p+" ]"),f.length&&(e+=" ("+f.join(", ")+")");const y=new Error(e);return y.reason=u,y.code=n,Object.keys(a).forEach(function(w){y[w]=a[w]}),y}throwError(e,n,a){throw this.makeError(e,n,a)}throwArgumentError(e,n,a){return this.throwError(e,F.errors.INVALID_ARGUMENT,{argument:n,value:a})}assert(e,n,a,f){e||this.throwError(n,a,f)}assertArgument(e,n,a,f){e||this.throwArgumentError(n,a,f)}checkNormalize(e){Um&&this.throwError("platform missing String.prototype.normalize",F.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Um})}checkSafeUint53(e,n){typeof e=="number"&&(n==null&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,F.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,F.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,n,a){a?a=": "+a:a="",e<n&&this.throwError("missing argument"+a,F.errors.MISSING_ARGUMENT,{count:e,expectedCount:n}),e>n&&this.throwError("too many arguments"+a,F.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}checkNew(e,n){(e===Object||e==null)&&this.throwError("missing new",F.errors.MISSING_NEW,{name:n.name})}checkAbstract(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",F.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",F.errors.MISSING_NEW,{name:n.name})}static globalLogger(){return Dc||(Dc=new F(uw)),Dc}static setCensorship(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",F.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),Bm){if(!e)return;this.globalLogger().throwError("error censorship permanent",F.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}km=!!e,Bm=!!n}static setLogLevel(e){const n=Yo[e.toLowerCase()];if(n==null){F.globalLogger().warn("invalid log level - "+e);return}Dm=n}static from(e){return new F(e)}}F.errors=Tn;F.levels=ch;
77const cw="bytes/5.8.0",je=new F(cw);function cv(l){return!!l.toHexString}function il(l){return l.slice||(l.slice=function(){const e=Array.prototype.slice.call(arguments);return il(new Uint8Array(Array.prototype.slice.apply(l,e)))}),l}function _h(l){return _e(l)&&!(l.length%2)||pu(l)}function Lm(l){return typeof l=="number"&&l==l&&l%1===0}function pu(l){if(l==null)return!1;if(l.constructor===Uint8Array)return!0;if(typeof l=="string"||!Lm(l.length)||l.length<0)return!1;for(let e=0;e<l.length;e++){const n=l[e];if(!Lm(n)||n<0||n>=256)return!1}return!0}function Kt(l,e){if(e||(e={}),typeof l=="number"){je.checkSafeUint53(l,"invalid arrayify value");const n=[];for(;l;)n.unshift(l&255),l=parseInt(String(l/256));return n.length===0&&n.push(0),il(new Uint8Array(n))}if(e.allowMissingPrefix&&typeof l=="string"&&l.substring(0,2)!=="0x"&&(l="0x"+l),cv(l)&&(l=l.toHexString()),_e(l)){let n=l.substring(2);n.length%2&&(e.hexPad==="left"?n="0"+n:e.hexPad==="right"?n+="0":je.throwArgumentError("hex data is odd-length","value",l));const a=[];for(let f=0;f<n.length;f+=2)a.push(parseInt(n.substring(f,f+2),16));return il(new Uint8Array(a))}return pu(l)?il(new Uint8Array(l)):je.throwArgumentError("invalid arrayify value","value",l)}function Jr(l){const e=l.map(f=>Kt(f)),n=e.reduce((f,u)=>f+u.length,0),a=new Uint8Array(n);return e.reduce((f,u)=>(a.set(u,f),f+u.length),0),il(a)}function al(l){let e=Kt(l);if(e.length===0)return e;let n=0;for(;n<e.length&&e[n]===0;)n++;return n&&(e=e.slice(n)),e}function hw(l,e){l=Kt(l),l.length>e&&je.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(l,e-l.length),il(n)}function _e(l,e){return!(typeof l!="string"||!l.match(/^0x[0-9A-Fa-f]*$/)||e&&l.length!==2+2*e)}const Uc="0123456789abcdef";function St(l,e){if(e||(e={}),typeof l=="number"){je.checkSafeUint53(l,"invalid hexlify value");let n="";for(;l;)n=Uc[l&15]+n,l=Math.floor(l/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if(typeof l=="bigint")return l=l.toString(16),l.length%2?"0x0"+l:"0x"+l;if(e.allowMissingPrefix&&typeof l=="string"&&l.substring(0,2)!=="0x"&&(l="0x"+l),cv(l))return l.toHexString();if(_e(l))return l.length%2&&(e.hexPad==="left"?l="0x0"+l.substring(2):e.hexPad==="right"?l+="0":je.throwArgumentError("hex data is odd-length","value",l)),l.toLowerCase();if(pu(l)){let n="0x";for(let a=0;a<l.length;a++){let f=l[a];n+=Uc[(f&240)>>4]+Uc[f&15]}return n}return je.throwArgumentError("invalid hexlify value","value",l)}function da(l){if(typeof l!="string")l=St(l);else if(!_e(l)||l.length%2)return null;return(l.length-2)/2}function Ar(l,e,n){return typeof l!="string"?l=St(l):(!_e(l)||l.length%2)&&je.throwArgumentError("invalid hexData","value",l),e=2+2*e,n!=null?"0x"+l.substring(e,2+2*n):"0x"+l.substring(e)}function qr(l){let e="0x";return l.forEach(n=>{e+=St(n).substring(2)}),e}function Eh(l){const e=dw(St(l,{hexPad:"left"}));return e==="0x"?"0x0":e}function dw(l){typeof l!="string"&&(l=St(l)),_e(l)||je.throwArgumentError("invalid hex string","value",l),l=l.substring(2);let e=0;for(;e<l.length&&l[e]==="0";)e++;return"0x"+l.substring(e)}function Ie(l,e){for(typeof l!="string"?l=St(l):_e(l)||je.throwArgumentError("invalid hex string","value",l),l.length>2*e+2&&je.throwArgumentError("value out of range","value",arguments[1]);l.length<2*e+2;)l="0x0"+l.substring(2);return l}function mu(l){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(_h(l)){let n=Kt(l);n.length===64?(e.v=27+(n[32]>>7),n[32]&=127,e.r=St(n.slice(0,32)),e.s=St(n.slice(32,64))):n.length===65?(e.r=St(n.slice(0,32)),e.s=St(n.slice(32,64)),e.v=n[64]):je.throwArgumentError("invalid signature string","signature",l),e.v<27&&(e.v===0||e.v===1?e.v+=27:je.throwArgumentError("signature invalid v byte","signature",l)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=St(n.slice(32,64))}else{if(e.r=l.r,e.s=l.s,e.v=l.v,e.recoveryParam=l.recoveryParam,e._vs=l._vs,e._vs!=null){const f=hw(Kt(e._vs),32);e._vs=St(f);const u=f[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=u:e.recoveryParam!==u&&je.throwArgumentError("signature recoveryParam mismatch _vs","signature",l),f[0]&=127;const p=St(f);e.s==null?e.s=p:e.s!==p&&je.throwArgumentError("signature v mismatch _vs","signature",l)}if(e.recoveryParam==null)e.v==null?je.throwArgumentError("signature missing v and recoveryParam","signature",l):e.v===0||e.v===1?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(e.v==null)e.v=27+e.recoveryParam;else{const f=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==f&&je.throwArgumentError("signature recoveryParam mismatch v","signature",l)}e.r==null||!_e(e.r)?je.throwArgumentError("signature missing or invalid r","signature",l):e.r=Ie(e.r,32),e.s==null||!_e(e.s)?je.throwArgumentError("signature missing or invalid s","signature",l):e.s=Ie(e.s,32);const n=Kt(e.s);n[0]>=128&&je.throwArgumentError("signature s out of range","signature",l),e.recoveryParam&&(n[0]|=128);const a=St(n);e._vs&&(_e(e._vs)||je.throwArgumentError("signature invalid _vs","signature",l),e._vs=Ie(e._vs,32)),e._vs==null?e._vs=a:e._vs!==a&&je.throwArgumentError("signature _vs mismatch v and s","signature",l)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}const pw="bignumber/5.8.0";var tu=ow.BN;const fi=new F(pw),zc={},mw=9007199254740991;let qm=!1;class mt{constructor(e,n){e!==zc&&fi.throwError("cannot call constructor directly; use BigNumber.from",F.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Lr(ge(this).fromTwos(e))}toTwos(e){return Lr(ge(this).toTwos(e))}abs(){return this._hex[0]==="-"?mt.from(this._hex.substring(1)):this}add(e){return Lr(ge(this).add(ge(e)))}sub(e){return Lr(ge(this).sub(ge(e)))}div(e){return mt.from(e).isZero()&&pn("division-by-zero","div"),Lr(ge(this).div(ge(e)))}mul(e){return Lr(ge(this).mul(ge(e)))}mod(e){const n=ge(e);return n.isNeg()&&pn("division-by-zero","mod"),Lr(ge(this).umod(n))}pow(e){const n=ge(e);return n.isNeg()&&pn("negative-power","pow"),Lr(ge(this).pow(n))}and(e){const n=ge(e);return(this.isNegative()||n.isNeg())&&pn("unbound-bitwise-result","and"),Lr(ge(this).and(n))}or(e){const n=ge(e);return(this.isNegative()||n.isNeg())&&pn("unbound-bitwise-result","or"),Lr(ge(this).or(n))}xor(e){const n=ge(e);return(this.isNegative()||n.isNeg())&&pn("unbound-bitwise-result","xor"),Lr(ge(this).xor(n))}mask(e){return(this.isNegative()||e<0)&&pn("negative-width","mask"),Lr(ge(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&pn("negative-width","shl"),Lr(ge(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&pn("negative-width","shr"),Lr(ge(this).shrn(e))}eq(e){return ge(this).eq(ge(e))}lt(e){return ge(this).lt(ge(e))}lte(e){return ge(this).lte(ge(e))}gt(e){return ge(this).gt(ge(e))}gte(e){return ge(this).gte(ge(e))}isNegative(){return this._hex[0]==="-"}isZero(){return ge(this).isZero()}toNumber(){try{return ge(this).toNumber()}catch{pn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return fi.throwError("this platform does not support BigInt",F.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?qm||(qm=!0,fi.warn("BigNumber.toString does not accept any parameters;
77 base-10 is assumed")):arguments[0]===16?fi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",F.errors.UNEXPECTED_ARGUMENT,{}):fi.throwError("BigNumber.toString does not accept parameters",F.errors.UNEXPECTED_ARGUMENT,{})),ge(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof mt)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new mt(zc,ds(e)):e.match(/^-?[0-9]+$/)?new mt(zc,ds(new tu(e))):fi.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&pn("underflow","BigNumber.from",e),(e>=mw||e<=-9007199254740991)&&pn("overflow","BigNumber.from",e),mt.from(String(e));const n=e;if(typeof n=="bigint")return mt.from(n.toString());if(pu(n))return mt.from(St(n));if(n)if(n.toHexString){const a=n.toHexString();if(typeof a=="string")return mt.from(a)}else{let a=n._hex;if(a==null&&n.type==="BigNumber"&&(a=n.hex),typeof a=="string"&&(_e(a)||a[0]==="-"&&_e(a.substring(1))))return mt.from(a)}return fi.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function ds(l){if(typeof l!="string")return ds(l.toString(16));if(l[0]==="-")return l=l.substring(1),l[0]==="-"&&fi.throwArgumentError("invalid hex","value",l),l=ds(l),l==="0x00"?l:"-"+l;if(l.substring(0,2)!=="0x"&&(l="0x"+l),l==="0x")return"0x00";for(l.length%2&&(l="0x0"+l.substring(2));l.length>4&&l.substring(0,4)==="0x00";)l="0x"+l.substring(4);return l}function Lr(l){return mt.from(ds(l))}function ge(l){const e=mt.from(l).toHexString();return e[0]==="-"?new tu("-"+e.substring(3),16):new tu(e.substring(2),16)}function pn(l,e,n){const a={fault:l,operation:e};return n!=null&&(a.value=n),fi.throwError(l,F.errors.NUMERIC_FAULT,a)}function gw(l){return new tu(l,36).toString(16)}const vw="properties/5.8.0";var yw=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const eu=new F(vw);function dt(l,e,n){Object.defineProperty(l,e,{enumerable:!0,value:n,writable:!1})}function Qn(l,e){for(let n=0;n<32;n++){if(l[e])return l[e];if(!l.prototype||typeof l.prototype!="object")break;l=Object.getPrototypeOf(l.prototype).constructor}return null}function Ke(l){return yw(this,void 0,void 0,function*(){const e=Object.keys(l).map(a=>{const f=l[a];return Promise.resolve(f).then(u=>({key:a,value:u}))});return(yield Promise.all(e)).reduce((a,f)=>(a[f.key]=f.value,a),{})})}function bw(l,e){(!l||typeof l!="object")&&eu.throwArgumentError("invalid object","object",l),Object.keys(l).forEach(n=>{e[n]||eu.throwArgumentError("invalid object key - "+n,"transaction:"+n,l)})}function rr(l){const e={};for(const n in l)e[n]=l[n];return e}const ww={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function hv(l){if(l==null||ww[typeof l])return!0;if(Array.isArray(l)||typeof l=="object"){if(!Object.isFrozen(l))return!1;const e=Object.keys(l);for(let n=0;n<e.length;n++){let a=null;try{a=l[e[n]]}catch{continue}if(!hv(a))return!1}return!0}return eu.throwArgumentError(`Cannot deepCopy ${typeof l}`,"object",l)}function xw(l){if(hv(l))return l;if(Array.isArray(l))return Object.freeze(l.map(e=>mi(e)));if(typeof l=="object"){const e={};for(const n in l){const a=l[n];a!==void 0&&dt(e,n,mi(a))}return e}return eu.throwArgumentError(`Cannot deepCopy ${typeof l}`,"object",l)}function mi(l){return xw(l)}class Es{constructor(e){for(const n in e)this[n]=mi(e[n])}}const Ms="abi/5.8.0",ve=new F(Ms),pa={};let Hm={calldata:!0,memory:!0,storage:!0},Aw={calldata:!0,memory:!0};function Ho(l,e){if(l==="bytes"||l==="string"){if(Hm[e])return!0}else if(l==="address"){if(e==="payable")return!0}else if((l.indexOf("[")>=0||l==="tuple")&&Aw[e])return!0;return(Hm[e]||e==="payable")&&ve.throwArgumentError("invalid modifier","name",e),!1}function _w(l,e){let n=l;function a(y){ve.throwArgumentError(`unexpected character at position ${y}`,"param",l)}l=l.replace(/\s/g," ");function f(y){let w={type:"",name:"",parent:y,state:{allowType:!0}};return e&&(w.indexed=!1),w}let u={type:"",name:"",state:{allowType:!0}},p=u;for(let y=0;y<l.length;y++){let w=l[y];switch(w){case"(":p.state.allowType&&p.type===""?p.type="tuple":p.state.allowParams||a(y),p.state.allowType=!1,p.type=tl(p.type),p.components=[f(p)],p=p.components[0];break;case")":delete p.state,p.name==="indexed"&&(e||a(y),p.indexed=!0,p.name=""),Ho(p.type,p.name)&&(p.name=""),p.type=tl(p.type);let _=p;p=p.parent,p||a(y),delete _.parent,p.state.allowParams=!1,p.state.allowName=!0,p.state.allowArray=!0;break;case",":delete p.state,p.name==="indexed"&&(e||a(y),p.indexed=!0,p.name=""),Ho(p.type,p.name)&&(p.name=""),p.type=tl(p.type);let N=f(p.parent);p.parent.components.push(N),delete p.parent,p=N;break;case" ":p.state.allowType&&p.type!==""&&(p.type=tl(p.type),delete p.state.allowType,p.state.allowName=!0,p.state.allowParams=!0),p.state.allowName&&p.name!==""&&(p.name==="indexed"?(e||a(y),p.indexed&&a(y),p.indexed=!0,p.name=""):Ho(p.type,p.name)?p.name="":p.state.allowName=!1);break;case"[":p.state.allowArray||a(y),p.type+=w,p.state.allowArray=!1,p.state.allowName=!1,p.state.readArray=!0;break;case"]":p.state.readArray||a(y),p.type+=w,p.state.readArray=!1,p.state.allowArray=!0,p.state.allowName=!0;break;default:p.state.allowType?(p.type+=w,p.state.allowParams=!0,p.state.allowArray=!0):p.state.allowName?(p.name+=w,delete p.state.allowArray):p.state.readArray?p.type+=w:a(y)}}return p.parent&&ve.throwArgumentError("unexpected eof","param",l),delete u.state,p.name==="indexed"?(e||a(n.length-7),p.indexed&&a(n.length-7),p.indexed=!0,p.name=""):Ho(p.type,p.name)&&(p.name=""),u.type=tl(u.type),u}function Xo(l,e){for(let n in e)dt(l,n,e[n])}const we=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Ew=new RegExp(/^(.*)\[([0-9]*)\]$/);class sr{constructor(e,n){e!==pa&&ve.throwError("use fromString",F.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Xo(this,n);let a=this.type.match(Ew);a?Xo(this,{arrayLength:parseInt(a[2]||"-1"),arrayChildren:sr.fromObject({type:a[1],components:this.components}),baseType:"array"}):Xo(this,{arrayLength:null,arrayChildren:null,baseType:this.components!=null?"tuple":this.t
77ype}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=we.sighash),we[e]||ve.throwArgumentError("invalid format type","format",e),e===we.json){let a={type:this.baseType==="tuple"?"tuple":this.type,name:this.name||void 0};return typeof this.indexed=="boolean"&&(a.indexed=this.indexed),this.components&&(a.components=this.components.map(f=>JSON.parse(f.format(e)))),JSON.stringify(a)}let n="";return this.baseType==="array"?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==we.sighash&&(n+=this.type),n+="("+this.components.map(a=>a.format(e)).join(e===we.full?", ":",")+")"):n+=this.type,e!==we.sighash&&(this.indexed===!0&&(n+=" indexed"),e===we.full&&this.name&&(n+=" "+this.name)),n}static from(e,n){return typeof e=="string"?sr.fromString(e,n):sr.fromObject(e)}static fromObject(e){return sr.isParamType(e)?e:new sr(pa,{name:e.name||null,type:tl(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(sr.fromObject):null})}static fromString(e,n){function a(f){return sr.fromObject({name:f.name,type:f.type,indexed:f.indexed,components:f.components})}return a(_w(e,!!n))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function ps(l,e){return Sw(l).map(n=>sr.fromString(n,e))}class di{constructor(e,n){e!==pa&&ve.throwError("use a static from method",F.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Xo(this,n),this._isFragment=!0,Object.freeze(this)}static from(e){return di.isFragment(e)?e:typeof e=="string"?di.fromString(e):di.fromObject(e)}static fromObject(e){if(di.isFragment(e))return e;switch(e.type){case"function":return Pn.fromObject(e);case"event":return hi.fromObject(e);case"constructor":return Gn.fromObject(e);case"error":return Gi.fromObject(e);case"fallback":case"receive":return null}return ve.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return e=e.replace(/\s/g," "),e=e.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),e=e.trim(),e.split(" ")[0]==="event"?hi.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Pn.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Gn.fromString(e.trim()):e.split(" ")[0]==="error"?Gi.fromString(e.substring(5).trim()):ve.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class hi extends di{format(e){if(e||(e=we.sighash),we[e]||ve.throwArgumentError("invalid format type","format",e),e===we.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(a=>JSON.parse(a.format(e)))});let n="";return e!==we.sighash&&(n+="event "),n+=this.name+"("+this.inputs.map(a=>a.format(e)).join(e===we.full?", ":",")+") ",e!==we.sighash&&this.anonymous&&(n+="anonymous "),n.trim()}static from(e){return typeof e=="string"?hi.fromString(e):hi.fromObject(e)}static fromObject(e){if(hi.isEventFragment(e))return e;e.type!=="event"&&ve.throwArgumentError("invalid event object","value",e);const n={name:ms(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(sr.fromObject):[],type:"event"};return new hi(pa,n)}static fromString(e){let n=e.match(gs);n||ve.throwArgumentError("invalid event string","value",e);let a=!1;return n[3].split(" ").forEach(f=>{switch(f.trim()){case"anonymous":a=!0;break;case"":break;default:ve.warn("unknown modifier: "+f)}}),hi.fromObject({name:n[1].trim(),anonymous:a,inputs:ps(n[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function dv(l,e){e.gas=null;let n=l.split("@");return n.length!==1?(n.length>2&&ve.throwArgumentError("invalid human-readable ABI signature","value",l),n[1].match(/^[0-9]+$/)||ve.throwArgumentError("invalid human-readable ABI signature gas","value",l),e.gas=mt.from(n[1]),n[0]):l}function pv(l,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",l.split(" ").forEach(n=>{switch(n.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+n)}})}function mv(l){let e={constant:!1,payable:!0,stateMutability:"payable"};return l.stateMutability!=null?(e.stateMutability=l.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",l.constant!=null&&!!l.constant!==e.constant&&ve.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",l),e.payable=e.stateMutability==="payable",l.payable!=null&&!!l.payable!==e.payable&&ve.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",l)):l.payable!=null?(e.payable=!!l.payable,l.constant==null&&!e.payable&&l.type!=="constructor"&&ve.throwArgumentError("unable to determine stateMutability","value",l),e.constant=!!l.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&ve.throwArgumentError("cannot have constant payable function","value",l)):l.constant!=null?(e.constant=!!l.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):l.type!=="constructor"&&ve.throwArgumentError("unable to determine stateMutability","value",l),e}class Gn extends di{format(e){if(e||(e=we.sighash),we[e]||ve.throwArgumentError("invalid format type","format",e),e===we.json)return JSON.stringify({type:"constructor",stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(e)))});e===we.sighash&&ve.throwError("cannot format a constructor for sighash",F.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let n="constructor("+this.inputs.map(a=>a.format(e)).join(e===we.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "),n.trim()}static from(e){return typeof e=="string"?Gn.fromString(e):Gn.fromObject(e)}static fromObject(e){if(Gn.isConstructorFragment(e))return e;e.type!=="constructor"&&ve.throwArgumentError("invalid constructor object","value",e);let n=mv(e);n.constant&&ve.throwArgumentError("constructor cannot be constant","value",e);const a={name:null,type:e.type,inputs:e.inputs?e.inputs.map(sr.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?mt.from(e.gas):null};
77return new Gn(pa,a)}static fromString(e){let n={type:"constructor"};e=dv(e,n);let a=e.match(gs);return(!a||a[1].trim()!=="constructor")&&ve.throwArgumentError("invalid constructor string","value",e),n.inputs=ps(a[2].trim(),!1),pv(a[3].trim(),n),Gn.fromObject(n)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Pn extends Gn{format(e){if(e||(e=we.sighash),we[e]||ve.throwArgumentError("invalid format type","format",e),e===we.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:this.stateMutability!=="nonpayable"?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(a=>JSON.parse(a.format(e))),outputs:this.outputs.map(a=>JSON.parse(a.format(e)))});let n="";return e!==we.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(a=>a.format(e)).join(e===we.full?", ":",")+") ",e!==we.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(a=>a.format(e)).join(", ")+") "),this.gas!=null&&(n+="@"+this.gas.toString()+" ")),n.trim()}static from(e){return typeof e=="string"?Pn.fromString(e):Pn.fromObject(e)}static fromObject(e){if(Pn.isFunctionFragment(e))return e;e.type!=="function"&&ve.throwArgumentError("invalid function object","value",e);let n=mv(e);const a={type:e.type,name:ms(e.name),constant:n.constant,inputs:e.inputs?e.inputs.map(sr.fromObject):[],outputs:e.outputs?e.outputs.map(sr.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:e.gas?mt.from(e.gas):null};return new Pn(pa,a)}static fromString(e){let n={type:"function"};e=dv(e,n);let a=e.split(" returns ");a.length>2&&ve.throwArgumentError("invalid function string","value",e);let f=a[0].match(gs);if(f||ve.throwArgumentError("invalid function signature","value",e),n.name=f[1].trim(),n.name&&ms(n.name),n.inputs=ps(f[2],!1),pv(f[3].trim(),n),a.length>1){let u=a[1].match(gs);(u[1].trim()!=""||u[3].trim()!="")&&ve.throwArgumentError("unexpected tokens","value",e),n.outputs=ps(u[2],!1)}else n.outputs=[];return Pn.fromObject(n)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function jm(l){const e=l.format();return(e==="Error(string)"||e==="Panic(uint256)")&&ve.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",l),l}class Gi extends di{format(e){if(e||(e=we.sighash),we[e]||ve.throwArgumentError("invalid format type","format",e),e===we.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(a=>JSON.parse(a.format(e)))});let n="";return e!==we.sighash&&(n+="error "),n+=this.name+"("+this.inputs.map(a=>a.format(e)).join(e===we.full?", ":",")+") ",n.trim()}static from(e){return typeof e=="string"?Gi.fromString(e):Gi.fromObject(e)}static fromObject(e){if(Gi.isErrorFragment(e))return e;e.type!=="error"&&ve.throwArgumentError("invalid error object","value",e);const n={type:e.type,name:ms(e.name),inputs:e.inputs?e.inputs.map(sr.fromObject):[]};return jm(new Gi(pa,n))}static fromString(e){let n={type:"error"},a=e.match(gs);return a||ve.throwArgumentError("invalid error signature","value",e),n.name=a[1].trim(),n.name&&ms(n.name),n.inputs=ps(a[2],!1),jm(Gi.fromObject(n))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function tl(l){return l.match(/^uint($|[^1-9])/)?l="uint256"+l.substring(4):l.match(/^int($|[^1-9])/)&&(l="int256"+l.substring(3)),l}const Mw=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function ms(l){return(!l||!l.match(Mw))&&ve.throwArgumentError(`invalid identifier "${l}"`,"value",l),l}const gs=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function Sw(l){l=l.trim();let e=[],n="",a=0;for(let f=0;f<l.length;f++){let u=l[f];u===","&&a===0?(e.push(n),n=""):(n+=u,u==="("?a++:u===")"&&(a--,a===-1&&ve.throwArgumentError("unbalanced parenthesis","value",l)))}return n&&e.push(n),e}const Mh=new F(Ms);function Tw(l){const e=[],n=function(a,f){if(Array.isArray(f))for(let u in f){const p=a.slice();p.push(u);try{n(p,f[u])}catch(y){e.push({path:p,error:y})}}};return n([],l),e}class gi{constructor(e,n,a,f){this.name=e,this.type=n,this.localName=a,this.dynamic=f}_throwError(e,n){Mh.throwArgumentError(e,this.localName,n)}}class hh{constructor(e){dt(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return qr(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Jr(e._data))}writeBytes(e){let n=Kt(e);const a=n.length%this.wordSize;return a&&(n=Jr([n,this._padding.slice(a)])),this._writeData(n)}_getValue(e){let n=Kt(mt.from(e));return n.length>this.wordSize&&Mh.throwError("value out-of-bounds",F.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=Jr([this._padding.slice(n.length%this.wordSize),n])),n}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,n=>{this._data[e]=this._getValue(n)}}}class ru{constructor(e,n,a,f){dt(this,"_data",Kt(e)),dt(this,"wordSize",n||32),dt(this,"_coerceFunc",a),dt(this,"allowLoose",f),this._offset=0}get data(){return St(this._data)}get consumed(){return this._offset}static coerce(e,n){let a=e.match("^u?int([0-9]+)$");return a&&parseInt(a[1])<=48&&(n=n.toNumber()),n}coerce(e,n){return this._coerceFunc?this._coerceFunc(e,n):ru.coerce(e,n)}_peekBytes(e,n,a){let f=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+f>this._data.length&&(this.allowLoose&&a&&this._offset+n<=this._data.length?f=n:Mh.throwError("data out-of-bounds",F.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+f})),this._data.slice(this._offset,this._offset+f)}subReader(e){return new ru(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,n){let a=this._peekBytes(0,e,!!n);return this._offset+=a.length,a.slice(0,e)}readValue(){return mt.from(this.readBytes(this.wordSize))}}var Lc={exports:{}};/**
78 * [js-sha3]{@link https://github.com/emn178/js-sha3}
79 *
80 * @version 0.8.0
81 * @author Chen, Yi-Cyuan [[email protected]]
82 * @copyright Chen, Yi-Cyuan 2015-2018
83 * @license MIT
84 */var Im;function Nw(){return Im||(Im=1,function(l){(function(){var e="input is invali
84d type",n="finalize already called",a=typeof window=="object",f=a?window:{};f.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&typeof self=="object",p=!f.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;p?f=ob:u&&(f=self);var y=!f.JS_SHA3_NO_COMMON_JS&&!0&&l.exports,w=!f.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",_="0123456789abcdef".split(""),N=[31,7936,2031616,520093696],C=[4,1024,262144,67108864],B=[1,256,65536,16777216],H=[6,1536,393216,100663296],q=[0,8,16,24],k=[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],z=[224,256,384,512],L=[128,256],G=["hex","buffer","arrayBuffer","array","digest"],I={128:168,256:136};(f.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(S){return Object.prototype.toString.call(S)==="[object Array]"}),w&&(f.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(S){return typeof S=="object"&&S.buffer&&S.buffer.constructor===ArrayBuffer});for(var Q=function(S,D,et){return function(Y){return new c(S,D,S).update(Y)[et]()}},W=function(S,D,et){return function(Y,rt){return new c(S,D,rt).update(Y)[et]()}},lt=function(S,D,et){return function(Y,rt,yt,ft){return o["cshake"+S].update(Y,rt,yt,ft)[et]()}},ut=function(S,D,et){return function(Y,rt,yt,ft){return o["kmac"+S].update(Y,rt,yt,ft)[et]()}},ht=function(S,D,et,Y){for(var rt=0;rt<G.length;++rt){var yt=G[rt];S[yt]=D(et,Y,yt)}return S},vt=function(S,D){var et=Q(S,D,"hex");return et.create=function(){return new c(S,D,S)},et.update=function(Y){return et.create().update(Y)},ht(et,Q,S,D)},ae=function(S,D){var et=W(S,D,"hex");return et.create=function(Y){return new c(S,D,Y)},et.update=function(Y,rt){return et.create(rt).update(Y)},ht(et,W,S,D)},pt=function(S,D){var et=I[S],Y=lt(S,D,"hex");return Y.create=function(rt,yt,ft){return!yt&&!ft?o["shake"+S].create(rt):new c(S,D,rt).bytepad([yt,ft],et)},Y.update=function(rt,yt,ft,ot){return Y.create(yt,ft,ot).update(rt)},ht(Y,lt,S,D)},V=function(S,D){var et=I[S],Y=ut(S,D,"hex");return Y.create=function(rt,yt,ft){return new A(S,D,yt).bytepad(["KMAC",ft],et).bytepad([rt],et)},Y.update=function(rt,yt,ft,ot){return Y.create(rt,ft,ot).update(yt)},ht(Y,ut,S,D)},E=[{name:"keccak",padding:B,bits:z,createMethod:vt},{name:"sha3",padding:H,bits:z,createMethod:vt},{name:"shake",padding:N,bits:L,createMethod:ae},{name:"cshake",padding:C,bits:L,createMethod:pt},{name:"kmac",padding:C,bits:L,createMethod:V}],o={},d=[],m=0;m<E.length;++m)for(var v=E[m],x=v.bits,R=0;R<x.length;++R){var M=v.name+"_"+x[R];if(d.push(M),o[M]=v.createMethod(x[R],v.padding),v.name!=="sha3"){var b=v.name+x[R];d.push(b),o[b]=o[M]}}function c(S,D,et){this.blocks=[],this.s=[],this.padding=D,this.outputBits=et,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(S<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=et>>5,this.extraBytes=(et&31)>>3;for(var Y=0;Y<50;++Y)this.s[Y]=0}c.prototype.update=function(S){if(this.finalized)throw new Error(n);var D,et=typeof S;if(et!=="string"){if(et==="object"){if(S===null)throw new Error(e);
84if(w&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!w||!ArrayBuffer.isView(S)))throw new Error(e)}else throw new Error(e);D=!0}for(var Y=this.blocks,rt=this.byteCount,yt=S.length,ft=this.blockCount,ot=0,de=this.s,ct,gt;ot<yt;){if(this.reset)for(this.reset=!1,Y[0]=this.block,ct=1;ct<ft+1;++ct)Y[ct]=0;if(D)for(ct=this.start;ot<yt&&ct<rt;++ot)Y[ct>>2]|=S[ot]<<q[ct++&3];else for(ct=this.start;ot<yt&&ct<rt;++ot)gt=S.charCodeAt(ot),gt<128?Y[ct>>2]|=gt<<q[ct++&3]:gt<2048?(Y[ct>>2]|=(192|gt>>6)<<q[ct++&3],Y[ct>>2]|=(128|gt&63)<<q[ct++&3]):gt<55296||gt>=57344?(Y[ct>>2]|=(224|gt>>12)<<q[ct++&3],Y[ct>>2]|=(128|gt>>6&63)<<q[ct++&3],Y[ct>>2]|=(128|gt&63)<<q[ct++&3]):(gt=65536+((gt&1023)<<10|S.charCodeAt(++ot)&1023),Y[ct>>2]|=(240|gt>>18)<<q[ct++&3],Y[ct>>2]|=(128|gt>>12&63)<<q[ct++&3],Y[ct>>2]|=(128|gt>>6&63)<<q[ct++&3],Y[ct>>2]|=(128|gt&63)<<q[ct++&3]);if(this.lastByteIndex=ct,ct>=rt){for(this.start=ct-rt,this.block=Y[ft],ct=0;ct<ft;++ct)de[ct]^=Y[ct];K(de),this.reset=!0}else this.start=ct}return this},c.prototype.encode=function(S,D){var et=S&255,Y=1,rt=[et];for(S=S>>8,et=S&255;et>0;)rt.unshift(et),S=S>>8,et=S&255,++Y;return D?rt.push(Y):rt.unshift(Y),this.update(rt),rt.length},c.prototype.encodeString=function(S){var D,et=typeof S;if(et!=="string"){if(et==="object"){if(S===null)throw new Error(e);
84if(w&&S.constructor===ArrayBuffer)S=new Uint8Array(S);else if(!Array.isArray(S)&&(!w||!ArrayBuffer.isView(S)))throw new Error(e)}else throw new Error(e);D=!0}var Y=0,rt=S.length;if(D)Y=rt;else for(var yt=0;yt<S.length;++yt){var ft=S.charCodeAt(yt);ft<128?Y+=1:ft<2048?Y+=2:ft<55296||ft>=57344?Y+=3:(ft=65536+((ft&1023)<<10|S.charCodeAt(++yt)&1023),Y+=4)}return Y+=this.encode(Y*8),this.update(S),Y},c.prototype.bytepad=function(S,D){for(var et=this.encode(D),Y=0;Y<S.length;++Y)et+=this.encodeString(S[Y]);var rt=D-et%D,yt=[];return yt.length=rt,this.update(yt),this},c.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var S=this.blocks,D=this.lastByteIndex,et=this.blockCount,Y=this.s;if(S[D>>2]|=this.padding[D&3],this.lastByteIndex===this.byteCount)for(S[0]=S[et],D=1;D<et+1;++D)S[D]=0;for(S[et-1]|=2147483648,D=0;D<et;++D)Y[D]^=S[D];K(Y)}},c.prototype.toString=c.prototype.hex=function(){this.finalize();for(var S=this.blockCount,D=this.s,et=this.outputBlocks,Y=this.extraBytes,rt=0,yt=0,ft="",ot;yt<et;){for(rt=0;rt<S&&yt<et;++rt,++yt)ot=D[rt],ft+=_[ot>>4&15]+_[ot&15]+_[ot>>12&15]+_[ot>>8&15]+_[ot>>20&15]+_[ot>>16&15]+_[ot>>28&15]+_[ot>>24&15];yt%S===0&&(K(D),rt=0)}return Y&&(ot=D[rt],ft+=_[ot>>4&15]+_[ot&15],Y>1&&(ft+=_[ot>>12&15]+_[ot>>8&15]),Y>2&&(ft+=_[ot>>20&15]+_[ot>>16&15])),ft},c.prototype.arrayBuffer=function(){this.finalize();var S=this.blockCount,D=this.s,et=this.outputBlocks,Y=this.extraBytes,rt=0,yt=0,ft=this.outputBits>>3,ot;Y?ot=new ArrayBuffer(et+1<<2):ot=new ArrayBuffer(ft);for(var de=new Uint32Array(ot);yt<et;){for(rt=0;rt<S&&yt<et;++rt,++yt)de[yt]=D[rt];yt%S===0&&K(D)}return Y&&(de[rt]=D[rt],ot=ot.slice(0,ft)),ot},c.prototype.buffer=c.prototype.arrayBuffer,c.prototype.digest=c.prototype.array=function(){this.finalize();for(var S=this.blockCount,D=this.s,et=this.outputBlocks,Y=this.extraBytes,rt=0,yt=0,ft=[],ot,de;yt<et;){for(rt=0;rt<S&&yt<et;++rt,++yt)ot=yt<<2,de=D[rt],ft[ot]=de&255,ft[ot+1]=de>>8&255,ft[ot+2]=de>>16&255,ft[ot+3]=de>>24&255;yt%S===0&&K(D)}return Y&&(ot=yt<<2,de=D[rt],ft[ot]=de&255,Y>1&&(ft[ot+1]=de>>8&255),Y>2&&(ft[ot+2]=de>>16&255)),ft};function A(S,D,et){c.call(this,S,D,et)}A.prototype=new c,A.prototype.finalize=function(){return this.encode(this.outputBits,!0),c.prototype.finalize.call(this)};var K=function(S){var D,et,Y,rt,yt,ft,ot,de,ct,gt,nr,wt,Ht,vr,Ut,Rt,Mr,zt,Ot,ur,Tt,xt,Fe,Et,te,Wr,ee,jt,Sr,Ct,It,yr,re,Zt,Hr,Pt,Lt,$r,Jt,Ft,Or,Qt,Wt,tn,Nt,At,ke,Bt,Yt,en,ne,$t,br,Xt,kt,fr,qt,Dt,xe,Tr,Nr,Ye,We;for(Y=0;Y<48;Y+=2)rt=S[0]^S[10]^S[20]^S[30]^S[40],yt=S[1]^S[11]^S[21]^S[31]^S[41],ft=S[2]^S[12]^S[22]^S[32]^S[42],ot=S[3]^S[13]^S[23]^S[33]^S[43],de=S[4]^S[14]^S[24]^S[34]^S[44],ct=S[5]^S[15]^S[25]^S[35]^S[45],gt=S[6]^S[16]^S[26]^S[36]^S[46],nr=S[7]^S[17]^S[27]^S[37]^S[47],wt=S[8]^S[18]^S[28]^S[38]^S[48],Ht=S[9]^S[19]^S[29]^S[39]^S[49],D=wt^(ft<<1|ot>>>31),et=Ht^(ot<<1|ft>>>31),S[0]^=D,S[1]^=et,S[10]^=D,S[11]^=et,S[20]^=D,S[21]^=et,S[30]^=D,S[31]^=et,S[40]^=D,S[41]^=et,D=rt^(de<<1|ct>>>31),et=yt^(ct<<1|de>>>31),S[2]^=D,S[3]^=et,S[12]^=D,S[13]^=et,S[22]^=D,S[23]^=et,S[32]^=D,S[33]^=et,S[42]^=D,S[43]^=et,D=ft^(gt<<1|nr>>>31),et=ot^(nr<<1|gt>>>31),S[4]^=D,S[5]^=et,S[14]^=D,S[15]^=et,S[24]^=D,S[25]^=et,S[34]^=D,S[35]^=et,S[44]^=D,S[45]^=et,D=de^(wt<<1|Ht>>>31),et=ct^(Ht<<1|wt>>>31),S[6]^=D,S[7]^=et,S[16]^=D,S[17]^=et,S[26]^=D,S[27]^=et,S[36]^=D,S[37]^=et,S[46]^=D,S[47]^=et,D=gt^(rt<<1|yt>>>31),et=nr^(yt<<1|rt>>>31),S[8]^=D,S[9]^=et,S[18]^=D,S[19]^=et,S[28]^=D,S[29]^=et,S[38]^=D,S[39]^=et,S[48]^=D,S[49]^=et,vr=S[0],Ut=S[1],At=S[11]<<4|S[10]>>>28,ke=S[10]<<4|S[11]>>>28,jt=S[20]<<3|S[21]>>>29,Sr=S[21]<<3|S[20]>>>29,Tr=S[31]<<9|S[30]>>>23,Nr=S[30]<<9|S[31]>>>23,Qt=S[40]<<18|S[41]>>>14,Wt=S[41]<<18|S[40]>>>14,Zt=S[2]<<1|S[3]>>>31,Hr=S[3]<<1|S[2]>>>31,Rt=S[13]<<12|S[12]>>>20,Mr=S[12]<<12|S[13]>>>20,Bt=S[22]<<10|S[23]>>>22,Yt=S[23]<<10|S[22]>>>22,Ct=S[33]<<13|S[32]>>>19,It=S[32]<<13|S[33]>>>19,Ye=S[42]<<2|S[43]>>>30,We=S[43]<<2|S[42]>>>30,Xt=S[5]<<30|S[4]>>>2,kt=S[4]<<30|S[5]>>>2,Pt=S[14]<<6|S[15]>>>26,Lt=S[15]<<6|S[14]>>>26,zt=S[25]<<11|S[24]>>>21,Ot=S[24]<<11|S[25]>>>21,en=S[34]<<15|S[35]>>>17,ne=S[35]<<15|S[34]>>>17,yr=S[45]<<29|S[44]>>>3,re=S[44]<<29|S[45]>>>3,Et=S[6]<<28|S[7]>>>4,te=S[7]<<28|S[6]>>>4,fr=S[17]<<23|S[16]>>>9,qt=S[16]<<23|S[17]>>>9,$r=S[26]<<25|S[27]>>>7,Jt=S[27]<<25|S[26]>>>7,ur=S[36]<<21|S[37]>>>11,Tt=S[37]<<21|S[36]>>>11,$t=S[47]<<24|S[46]>>>8,br=S[46]<<24|S[47]>>>8,tn=S[8]<<27|S[9]>>>5,Nt=S[9]<<27|S[8]>>>5,Wr=S[18]<<20|S[19]>>>
8412,ee=S[19]<<20|S[18]>>>12,Dt=S[29]<<7|S[28]>>>25,xe=S[28]<<7|S[29]>>>25,Ft=S[38]<<8|S[39]>>>24,Or=S[39]<<8|S[38]>>>24,xt=S[48]<<14|S[49]>>>18,Fe=S[49]<<14|S[48]>>>18,S[0]=vr^~Rt&zt,S[1]=Ut^~Mr&Ot,S[10]=Et^~Wr&jt,S[11]=te^~ee&Sr,S[20]=Zt^~Pt&$r,S[21]=Hr^~Lt&Jt,S[30]=tn^~At&Bt,S[31]=Nt^~ke&Yt,S[40]=Xt^~fr&Dt,S[41]=kt^~qt&xe,S[2]=Rt^~zt&ur,S[3]=Mr^~Ot&Tt,S[12]=Wr^~jt&Ct,S[13]=ee^~Sr&It,S[22]=Pt^~$r&Ft,S[23]=Lt^~Jt&Or,S[32]=At^~Bt&en,S[33]=ke^~Yt&ne,S[42]=fr^~Dt&Tr,S[43]=qt^~xe&Nr,S[4]=zt^~ur&xt,S[5]=Ot^~Tt&Fe,S[14]=jt^~Ct&yr,S[15]=Sr^~It&re,S[24]=$r^~Ft&Qt,S[25]=Jt^~Or&Wt,S[34]=Bt^~en&$t,S[35]=Yt^~ne&br,S[44]=Dt^~Tr&Ye,S[45]=xe^~Nr&We,S[6]=ur^~xt&vr,S[7]=Tt^~Fe&Ut,S[16]=Ct^~yr&Et,S[17]=It^~re&te,S[26]=Ft^~Qt&Zt,S[27]=Or^~Wt&Hr,S[36]=en^~$t&tn,S[37]=ne^~br&Nt,S[46]=Tr^~Ye&Xt,S[47]=Nr^~We&kt,S[8]=xt^~vr&Rt,S[9]=Fe^~Ut&Mr,S[18]=yr^~Et&Wr,S[19]=re^~te&ee,S[28]=Qt^~Zt&Pt,S[29]=Wt^~Hr&Lt,S[38]=$t^~tn&At,S[39]=br^~Nt&ke,S[48]=Ye^~Xt&fr,S[49]=We^~kt&qt,S[0]^=k[Y],S[1]^=k[Y+1]};if(y)l.exports=o;else for(m=0;m<d.length;++m)f[d[m]]=o[d[m]]})()}(Lc)),Lc.exports}var Rw=Nw();const Cw=ll(Rw);function er(l){return"0x"+Cw.keccak_256(Kt(l))}const Ow="rlp/5.8.0",In=new F(Ow);function Gm(l){const e=[];for(;l;)e.unshift(l&255),l>>=8;return e}function Pm(l,e,n){let a=0;for(let f=0;f<n;f++)a=a*256+l[e+f];return a}function gv(l){if(Array.isArray(l)){let a=[];if(l.forEach(function(u){a=a.concat(gv(u))}),a.length<=55)return a.unshift(192+a.length),a;const f=Gm(a.length);return f.unshift(247+f.length),f.concat(a)}_h(l)||In.throwArgumentError("RLP object must be BytesLike","object",l);const e=Array.prototype.slice.call(Kt(l));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const n=Gm(e.length);return n.unshift(183+n.length),n.concat(e)}function gu(l){return St(gv(l))}function Qm(l,e,n,a){const f=[];for(;n<e+1+a;){const u=vv(l,n);f.push(u.result),n+=u.consumed,n>e+1+a&&In.throwError("child data too short",F.errors.BUFFER_OVERRUN,{})}return{consumed:1+a,result:f}}function vv(l,e){if(l.length===0&&In.throwError("data too short",F.errors.BUFFER_OVERRUN,{}),l[e]>=248){const n=l[e]-247;e+1+n>l.length&&In.throwError("data short segment too short",F.errors.BUFFER_OVERRUN,{});const a=Pm(l,e+1,n);return e+1+n+a>l.length&&In.throwError("data long segment too short",F.errors.BUFFER_OVERRUN,{}),Qm(l,e,e+1+n,n+a)}else if(l[e]>=192){const n=l[e]-192;return e+1+n>l.length&&In.throwError("data array too short",F.errors.BUFFER_OVERRUN,{}),Qm(l,e,e+1,n)}else if(l[e]>=184){const n=l[e]-183;e+1+n>l.length&&In.throwError("data array too short",F.errors.BUFFER_OVERRUN,{});const a=Pm(l,e+1,n);e+1+n+a>l.length&&In.throwError("data array too short",F.errors.BUFFER_OVERRUN,{});const f=St(l.slice(e+1+n,e+1+n+a));return{consumed:1+n+a,result:f}}else if(l[e]>=128){const n=l[e]-128;e+1+n>l.length&&In.throwError("data too short",F.errors.BUFFER_OVERRUN,{});const a=St(l.slice(e+1,e+1+n));return{consumed:1+n,result:a}}return{consumed:1,result:St(l[e])}}function Sh(l){const e=Kt(l),n=vv(e,0);return n.consumed!==e.length&&In.throwArgumentError("invalid rlp data","data",l),n.result}const Bw="address/5.8.0",el=new F(Bw);function Ym(l){_e(l,20)||el.throwArgumentError("invalid address","address",l),l=l.toLowerCase();const e=l.substring(2).split(""),n=new Uint8Array(40);for(let f=0;f<40;f++)n[f]=e[f].charCodeAt(0);const a=Kt(er(n));for(let f=0;f<40;f+=2)a[f>>1]>>4>=8&&(e[f]=e[f].toUpperCase()),(a[f>>1]&15)>=8&&(e[f+1]=e[f+1].toUpperCase());return"0x"+e.join("")}const kw=9007199254740991;function Dw(l){return Math.log10?Math.log10(l):Math.log(l)/Math.LN10}const Th={};for(let l=0;l<10;l++)Th[String(l)]=String(l);for(let l=0;l<26;l++)Th[String.fromCharCode(65+l)]=String(10+l);const Xm=Math.floor(Dw(kw));function Uw(l){l=l.toUpperCase(),l=l.substring(4)+l.substring(0,2)+"00";let e=l.split("").map(a=>Th[a]).join("");for(;e.length>=Xm;){let a=e.substring(0,Xm);e=parseInt(a,10)%97+e.substring(a.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}function mr(l){let e=null;if(typeof l!="string"&&el.throwArgumentError("invalid address","address",l),l.match(/^(0x)?[0-9a-fA-F]{40}$/))l.substring(0,2)!=="0x"&&(l="0x"+l),e=Ym(l),l.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==l&&el.throwArgumentError("bad address checksum","address",l);else if(l.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(l.substring(2,4)!==Uw(l)&&el.throwArgumentError("bad icap checksum","address",l),e=gw(l.substring(4));e.length<40;)e="0"+e;e=Ym("0x"+e)}else el.throwArgumentError("invalid address","address",l);return e}function yv(l){let e=null;try{e=mr(l.from)}catch{el.throwArgumentError("missing from address","transaction",l)}const n=al(Kt(mt.from(l.nonce).toHexString()));return mr(Ar(er(gu([e,n])),12))}class zw extends gi{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,n){try{n=mr(n)}catch(a){this._throwError(a.message,n)}return e.writeValue(n)}decode(e){return mr(Ie(e.readValue().toHexString(),20))}}class Lw extends gi{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}
84defaultValue(){return this.coder.defaultValue()}encode(e,n){return this.coder.encode(e,n)}decode(e){return this.coder.decode(e)}}const rl=new F(Ms);function bv(l,e,n){let a=null;if(Array.isArray(n))a=n;else if(n&&typeof n=="object"){let w={};a=e.map(_=>{const N=_.localName;return N||rl.throwError("cannot encode object for signature with missing names",F.errors.INVALID_ARGUMENT,{argument:"values",coder:_,value:n}),w[N]&&rl.throwError("cannot encode object for signature with duplicate names",F.errors.INVALID_ARGUMENT,{argument:"values",coder:_,value:n}),w[N]=!0,n[N]})}else rl.throwArgumentError("invalid tuple value","tuple",n);e.length!==a.length&&rl.throwArgumentError("types/value length mismatch","tuple",n);let f=new hh(l.wordSize),u=new hh(l.wordSize),p=[];e.forEach((w,_)=>{let N=a[_];if(w.dynamic){let C=u.length;w.encode(u,N);let B=f.writeUpdatableValue();p.push(H=>{B(H+C)})}else w.encode(f,N)}),p.forEach(w=>{w(f.length)});let y=l.appendWriter(f);return y+=l.appendWriter(u),y}function wv(l,e){let n=[],a=l.subReader(0);e.forEach(u=>{let p=null;if(u.dynamic){let y=l.readValue(),w=a.subReader(y.toNumber());try{p=u.decode(w)}catch(_){if(_.code===F.errors.BUFFER_OVERRUN)throw _;p=_,p.baseType=u.name,p.name=u.localName,p.type=u.type}}else try{p=u.decode(l)}catch(y){if(y.code===F.errors.BUFFER_OVERRUN)throw y;p=y,p.baseType=u.name,p.name=u.localName,p.type=u.type}p!=null&&n.push(p)});const f=e.reduce((u,p)=>{const y=p.localName;return y&&(u[y]||(u[y]=0),u[y]++),u},{});e.forEach((u,p)=>{let y=u.localName;if(!y||f[y]!==1||(y==="length"&&(y="_length"),n[y]!=null))return;const w=n[p];w instanceof Error?Object.defineProperty(n,y,{enumerable:!0,get:()=>{throw w}}):n[y]=w});for(let u=0;u<n.length;u++){const p=n[u];p instanceof Error&&Object.defineProperty(n,u,{enumerable:!0,get:()=>{throw p}})}return Object.freeze(n)}class qw extends gi{constructor(e,n,a){const f=e.type+"["+(n>=0?n:"")+"]",u=n===-1||e.dynamic;super("array",f,a,u),this.coder=e,this.length=n}defaultValue(){const e=this.coder.defaultValue(),n=[];for(let a=0;a<this.length;a++)n.push(e);return n}encode(e,n){Array.isArray(n)||this._throwError("expected array value",n);let a=this.length;a===-1&&(a=n.length,e.writeValue(n.length)),rl.checkArgumentCount(n.length,a,"coder array"+(this.localName?" "+this.localName:""));let f=[];for(let u=0;u<n.length;u++)f.push(this.coder);return bv(e,f,n)}decode(e){let n=this.length;n===-1&&(n=e.readValue().toNumber(),n*32>e._data.length&&rl.throwError("insufficient data length",F.errors.BUFFER_OVERRUN,{length:e._data.length,count:n}));let a=[];for(let f=0;f<n;f++)a.push(new Lw(this.coder));return e.coerce(this.name,wv(e,a))}}class Hw extends gi{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,n){return e.writeValue(n?1:0)}decode(e){return e.coerce(this.type,!e.readValue().isZero())}}class xv extends gi{constructor(e,n){super(e,e,n,!0)}defaultValue(){return"0x"}encode(e,n){n=Kt(n);let a=e.writeValue(n.length);return a+=e.writeBytes(n),a}decode(e){return e.readBytes(e.readValue().toNumber(),!0)}}class jw extends xv{constructor(e){super("bytes",e)}decode(e){return e.coerce(this.name,St(super.decode(e)))}}class Iw extends gi{constructor(e,n){let a="bytes"+String(e);super(a,a,n,!1),this.size=e}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+this.size*2)}encode(e,n){let a=Kt(n);return a.length!==this.size&&this._throwError("incorrect data length",n),e.writeBytes(a)}decode(e){return e.coerce(this.name,St(e.readBytes(this.size)))}}class Gw extends gi{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,n){return n!=null&&this._throwError("not null",n),e.writeBytes([])}decode(e){return e.readBytes(0),e.coerce(this.name,null)}}const Pw="0x0000000000000000000000000000000000000000",Qw=mt.from(-1),Av=mt.from(0),Yw=mt.from(1),Xw=mt.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Vw="0x0000000000000000000000000000000000000000000000000000000000000000";class Kw extends gi{constructor(e,n,a){const f=(n?"int":"uint")+e*8;super(f,f,a,!1),this.size=e,this.signed=n}defaultValue(){return 0}encode(e,n){let a=mt.from(n),f=Xw.mask(e.wordSize*8);if(this.signed){let u=f.mask(this.size*8-1);(a.gt(u)||a.lt(u.add(Yw).mul(Qw)))&&this._throwError("value out-of-bounds",n)}else(a.lt(Av)||a.gt(f.mask(this.size*8)))&&this._throwError("value out-of-bounds",n);return a=a.toTwos(this.size*8).mask(this.size*8),this.signed&&(a=a.fromTwos(this.size*8).toTwos(8*e.wordSize)),e.writeValue(a)}decode(e){let n=e.readValue().mask(this.size*8);return this.signed&&(n=n.fromTwos(this.size*8)),e.coerce(this.name,n)}}const Zw="strings/5.8.0",_v=new F(Zw);var vs;(function(l){l.current="",l.NFC="NFC",l.NFD="NFD",l.NFKC="NFKC",l.NFKD="NFKD"})(vs||(vs={}));var Kr;(function(l){l.UNEXPECTED_CONTINUE="unexpected continuation byte",l.BAD_PREFIX="bad codepoint prefix",l.OVERRUN="string overrun",l.MISSING_CONTINUE="missing continuation byte",l.OUT_OF_RANGE="out of UTF-8 range",l.UTF16_SURROGATE="UTF-16 surrogate",l.OVERLONG="overlong representation"})(Kr||(Kr={}));function Jw(l,e,n,a,f){return _v.throwArgumentError(`invalid codepoint at offset ${e}; ${l}`,"bytes",n)}function Ev(l,e,n,a,f){if(l===Kr.BAD_PREFIX||l===Kr.UNEXPECTED_CONTINUE){let u=0;for(let p=e+1;p<n.length&&n[p]>>6===2;p++)u++;return u}return l===Kr.OVERRUN?n.length-e-1:0}function Fw(l,e,n,a,f){return l===Kr.OVERLONG?(a.push(f),0):(a.push(65533),Ev(l,e,n))}const Ww=Object.freeze({error:Jw,ignore:Ev,replace:Fw});function Mv(l,e){e==null&&(e=Ww.error),l=Kt(l);const n=[];let a=0;for(;a<l.length;){const f=l[a++];if(f>>7===0){n.push(f);continue}let u=null,p=null;if((f&224)===192)u=1,p=127;else if((f&240)===224)u=2,p=2047;else if((f&248)===240)u=3,p=65535;
84else{(f&192)===128?a+=e(Kr.UNEXPECTED_CONTINUE,a-1,l,n):a+=e(Kr.BAD_PREFIX,a-1,l,n);continue}if(a-1+u>=l.length){a+=e(Kr.OVERRUN,a-1,l,n);continue}let y=f&(1<<8-u-1)-1;for(let w=0;w<u;w++){let _=l[a];if((_&192)!=128){a+=e(Kr.MISSING_CONTINUE,a,l,n),y=null;break}y=y<<6|_&63,a++}if(y!==null){if(y>1114111){a+=e(Kr.OUT_OF_RANGE,a-1-u,l,n,y);continue}if(y>=55296&&y<=57343){a+=e(Kr.UTF16_SURROGATE,a-1-u,l,n,y);continue}if(y<=p){a+=e(Kr.OVERLONG,a-1-u,l,n,y);continue}n.push(y)}}return n}function Yn(l,e=vs.current){e!=vs.current&&(_v.checkNormalize(),l=l.normalize(e));let n=[];for(let a=0;a<l.length;a++){const f=l.charCodeAt(a);if(f<128)n.push(f);else if(f<2048)n.push(f>>6|192),n.push(f&63|128);else if((f&64512)==55296){a++;const u=l.charCodeAt(a);if(a>=l.length||(u&64512)!==56320)throw new Error("invalid utf-8 string");const p=65536+((f&1023)<<10)+(u&1023);n.push(p>>18|240),n.push(p>>12&63|128),n.push(p>>6&63|128),n.push(p&63|128)}else n.push(f>>12|224),n.push(f>>6&63|128),n.push(f&63|128)}return Kt(n)}function $w(l){return l.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ss(l,e){return $w(Mv(l,e))}function tx(l,e=vs.current){return Mv(Yn(l,e))}class ex extends xv{constructor(e){super("string",e)}defaultValue(){return""}encode(e,n){return super.encode(e,Yn(n))}decode(e){return Ss(super.decode(e))}}class jo extends gi{constructor(e,n){let a=!1;const f=[];e.forEach(p=>{p.dynamic&&(a=!0),f.push(p.type)});const u="tuple("+f.join(",")+")";super("tuple",u,n,a),this.coders=e}defaultValue(){const e=[];this.coders.forEach(a=>{e.push(a.defaultValue())});const n=this.coders.reduce((a,f)=>{const u=f.localName;return u&&(a[u]||(a[u]=0),a[u]++),a},{});return this.coders.forEach((a,f)=>{let u=a.localName;!u||n[u]!==1||(u==="length"&&(u="_length"),e[u]==null&&(e[u]=e[f]))}),Object.freeze(e)}encode(e,n){return bv(e,this.coders,n)}decode(e){return e.coerce(this.name,wv(e,this.coders))}}const Io=new F(Ms),rx=new RegExp(/^bytes([0-9]*)$/),nx=new RegExp(/^(u?int)([0-9]*)$/);class ix{constructor(e){dt(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new zw(e.name);case"bool":return new Hw(e.name);case"string":return new ex(e.name);case"bytes":return new jw(e.name);case"array":return new qw(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new jo((e.components||[]).map(a=>this._getCoder(a)),e.name);case"":return new Gw(e.name)}let n=e.type.match(nx);if(n){let a=parseInt(n[2]||"256");return(a===0||a>256||a%8!==0)&&Io.throwArgumentError("invalid "+n[1]+" bit length","param",e),new Kw(a/8,n[1]==="int",e.name)}if(n=e.type.match(rx),n){let a=parseInt(n[1]);return(a===0||a>32)&&Io.throwArgumentError("invalid bytes length","param",e),new Iw(a,e.name)}return Io.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,n){return new ru(e,this._getWordSize(),this.coerceFunc,n)}_getWriter(){return new hh(this._getWordSize())}getDefaultValue(e){const n=e.map(f=>this._getCoder(sr.from(f)));return new jo(n,"_").defaultValue()}encode(e,n){e.length!==n.length&&Io.throwError("types/values length mismatch",F.errors.INVALID_ARGUMENT,{count:{types:e.length,values:n.length},value:{types:e,values:n}});const a=e.map(p=>this._getCoder(sr.from(p))),f=new jo(a,"_"),u=this._getWriter();return f.encode(u,n),u.data}decode(e,n,a){const f=e.map(p=>this._getCoder(sr.from(p)));return new jo(f,"_").decode(this._getReader(Kt(n),a))}}const ax=new ix;function nl(l){return er(Yn(l))}const Sv="hash/5.8.0";function Tv(l){l=atob(l);const e=[];for(let n=0;n<l.length;n++)e.push(l.charCodeAt(n));return Kt(e)}function Nv(l){l=Kt(l);let e="";for(let n=0;n<l.length;n++)e+=String.fromCharCode(l[n]);return btoa(e)}function Rv(l,e){e==null&&(e=1);const n=[],a=n.forEach,f=function(u,p){a.call(u,function(y){p>0&&Array.isArray(y)?f(y,p-1):n.push(y)})};return f(l,e),n}function lx(l){const e={};for(let n=0;n<l.length;n++){const a=l[n];e[a[0]]=a[1]}return e}function sx(l){let e=0;function n(){return l[e++]<<8|l[e++]}let a=n(),f=1,u=[0,1];for(let W=1;W<a;W++)u.push(f+=n());let p=n(),y=e;e+=p;let w=0,_=0;function N(){return w==0&&(_=_<<8|l[e++],w=8),_>>--w&1}const C=31,B=Math.pow(2,C),H=B>>>1,q=H>>1,k=B-1;let z=0;for(let W=0;W<C;W++)z=z<<1|N();let L=[],G=0,I=B;for(;;){let W=Math.floor(((z-G+1)*f-1)/I),lt=0,ut=a;for(;ut-lt>1;){let ae=lt+ut>>>1;W<u[ae]?ut=ae:lt=ae}if(lt==0)break;L.push(lt);let ht=G+Math.floor(I*u[lt]/f),vt=G+Math.floor(I*u[lt+1]/f)-1;for(;((ht^vt)&H)==0;
84)z=z<<1&k|N(),ht=ht<<1&k,vt=vt<<1&k|1;for(;ht&~vt&q;)z=z&H|z<<1&k>>>1|N(),ht=ht<<1^H,vt=(vt^H)<<1|H|1;G=ht,I=1+vt-ht}let Q=a-4;return L.map(W=>{switch(W-Q){case 3:return Q+65792+(l[y++]<<16|l[y++]<<8|l[y++]);case 2:return Q+256+(l[y++]<<8|l[y++]);case 1:return Q+l[y++];default:return W-1}})}function ox(l){let e=0;return()=>l[e++]}function ux(l){return ox(sx(l))}function fx(l){return l&1?~l>>1:l>>1}function cx(l,e){let n=Array(l);for(let a=0;a<l;a++)n[a]=1+e();return n}function Vm(l,e){let n=Array(l);for(let a=0,f=-1;a<l;a++)n[a]=f+=1+e();return n}function hx(l,e){let n=Array(l);for(let a=0,f=0;a<l;a++)n[a]=f+=fx(e());return n}function nu(l,e){let n=Vm(l(),l),a=l(),f=Vm(a,l),u=cx(a,l);for(let p=0;p<a;p++)for(let y=0;y<u[p];y++)n.push(f[p]+y);return e?n.map(p=>e[p]):n}function dx(l){let e=[];for(;;){let n=l();if(n==0)break;e.push(mx(n,l))}for(;;){let n=l()-1;if(n<0)break;e.push(gx(n,l))}return lx(Rv(e))}function px(l){let e=[];for(;;){let n=l();if(n==0)break;e.push(n)}return e}function Cv(l,e,n){let a=Array(l).fill(void 0).map(()=>[]);for(let f=0;f<e;f++)hx(l,n).forEach((u,p)=>a[p].push(u));return a}function mx(l,e){let n=1+e(),a=e(),f=px(e),u=Cv(f.length,1+l,e);return Rv(u.map((p,y)=>{const w=p[0],_=p.slice(1);return Array(f[y]).fill(void 0).map((N,C)=>{let B=C*a;return[w+C*n,_.map(H=>H+B)]})}))}function gx(l,e){let n=1+e();return Cv(n,1+l,e).map(f=>[f[0],f.slice(1)])}function vx(l){let e=nu(l).sort((a,f)=>a-f);return n();function n(){let a=[];for(;;){let _=nu(l,e);if(_.length==0)break;a.push({set:new Set(_),node:n()})}a.sort((_,N)=>N.set.size-_.set.size);let f=l(),u=f%3;f=f/3|0;let p=!!(f&1);f>>=1;let y=f==1,w=f==2;return{branches:a,valid:u,fe0f:p,save:y,check:w}}}function yx(){return ux(Tv
vendor: 14,757 bytes, line 84
84("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))
84}const vu=yx(),bx=new Set(nu(vu)),wx=new Set(nu(vu)),xx=dx(vu),Ax=vx(vu),Km=45,Zm=95;function Ov(l){return tx(l)}function _x(l){return l.filter(e=>e!=65039)}function Bv(l){for(let e of l.split(".")){let n=Ov(e);try{for(let a=n.lastIndexOf(Zm)-1;a>=0;a--)if(n[a]!==Zm)throw new Error("underscore only allowed at start");if(n.length>=4&&n.every(a=>a<128)&&n[2]===Km&&n[3]===Km)throw new Error("invalid label extension")}catch(a){throw new Error(`Invalid label "${e}": ${a.message}`)}}return l}function Ex(l){return Bv(Mx(l,_x))}function Mx(l,e){let n=Ov(l).reverse(),a=[];for(;n.length;){let f=Tx(n);if(f){a.push(...e(f));continue}let u=n.pop();if(bx.has(u)){a.push(u);continue}if(wx.has(u))continue;let p=xx[u];if(p){a.push(...p);continue}throw new Error(`Disallowed codepoint: 0x${u.toString(16).toUpperCase()}`)}return Bv(Sx(String.fromCodePoint(...a)))}function Sx(l){return l.normalize("NFC")}function Tx(l,e){var n;let a=Ax,f,u,p=[],y=l.length;for(;y;){let w=l[--y];if(a=(n=a.branches.find(_=>_.set.has(w)))===null||n===void 0?void 0:n.node,!a)break;if(a.save)u=w;else if(a.check&&w===u)break;p.push(w),a.fe0f&&(p.push(65039),y>0&&l[y-1]==65039&&y--),a.valid&&(f=p.slice(),a.valid==2&&f.splice(1,1),l.length=y)}return f}const Nx=new F(Sv),kv=new Uint8Array(32);kv.fill(0);function Jm(l){if(l.length===0)throw new Error("invalid ENS name; empty component");return l}function Dv(l){const e=Yn(Ex(l)),n=[];if(l.length===0)return n;let a=0;for(let f=0;f<e.length;
84f++)e[f]===46&&(n.push(Jm(e.slice(a,f))),a=f+1);if(a>=e.length)throw new Error("invalid ENS name; empty component");return n.push(Jm(e.slice(a))),n}function Vo(l){typeof l!="string"&&Nx.throwArgumentError("invalid ENS name; not a string","name",l);let e=kv;const n=Dv(l);for(;n.length;)e=er(Jr([e,er(n.pop())]));return St(e)}function Rx(l){return St(Jr(Dv(l).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const n=new Uint8Array(e.length+1);return n.set(e,1),n[0]=n.length-1,n})))+"00"}var Cx=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const Le=new F(Sv),Uv=new Uint8Array(32);Uv.fill(0);const Ox=mt.from(-1),zv=mt.from(0),Lv=mt.from(1),Bx=mt.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function kx(l){const e=Kt(l),n=e.length%32;return n?qr([e,Uv.slice(n)]):St(e)}const Dx=Ie(Lv.toHexString(),32),Ux=Ie(zv.toHexString(),32),Fm={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},qc=["name","version","chainId","verifyingContract","salt"];function Wm(l){return function(e){return typeof e!="string"&&Le.throwArgumentError(`invalid domain value for ${JSON.stringify(l)}`,`domain.${l}`,e),e}}const zx={name:Wm("name"),version:Wm("version"),chainId:function(l){try{return mt.from(l).toString()}catch{}return Le.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",l)},verifyingContract:function(l){try{return mr(l).toLowerCase()}catch{}return Le.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",l)},salt:function(l){try{const e=Kt(l);if(e.length!==32)throw new Error("bad length");return St(e)}catch{}return Le.throwArgumentError('invalid domain value "salt"',"domain.salt",l)}};function Hc(l){{const e=l.match(/^(u?)int(\d*)$/);if(e){const n=e[1]==="",a=parseInt(e[2]||"256");(a%8!==0||a>256||e[2]&&e[2]!==String(a))&&Le.throwArgumentError("invalid numeric width","type",l);const f=Bx.mask(n?a-1:a),u=n?f.add(Lv).mul(Ox):zv;return function(p){const y=mt.from(p);return(y.lt(u)||y.gt(f))&&Le.throwArgumentError(`value out-of-bounds for ${l}`,"value",p),Ie(y.toTwos(256).toHexString(),32)}}}{const e=l.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(n===0||n>32||e[1]!==String(n))&&Le.throwArgumentError("invalid bytes width","type",l),function(a){return Kt(a).length!==n&&Le.throwArgumentError(`invalid length for ${l}`,"value",a),kx(a)}}}switch(l){case"address":return function(e){return Ie(mr(e),32)};case"bool":return function(e){return e?Dx:Ux};case"bytes":return function(e){return er(e)};case"string":return function(e){return nl(e)}}return null}function $m(l,e){return`${l}(${e.map(({name:n,type:a})=>a+" "+n).join(",")})`}class Vr{constructor(e){dt(this,"types",Object.freeze(mi(e))),dt(this,"_encoderCache",{}),dt(this,"_types",{});const n={},a={},f={};Object.keys(e).forEach(y=>{n[y]={},a[y]=[],f[y]={}});for(const y in e){const w={};e[y].forEach(_=>{w[_.name]&&Le.throwArgumentError(`duplicate variable name ${JSON.stringify(_.name)} in ${JSON.stringify(y)}`,"types",e),w[_.name]=!0;const N=_.type.match(/^([^\x5b]*)(\x5b|$)/)[1];N===y&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(N)}`,"types",e),!Hc(N)&&(a[N]||Le.throwArgumentError(`unknown type ${JSON.stringify(N)}`,"types",e),a[N].push(y),n[y][N]=!0)})}const u=Object.keys(a).filter(y=>a[y].length===0);u.length===0?Le.throwArgumentError("missing primary type","types",e):u.length>1&&Le.throwArgumentError(`ambiguous primary types or unused types: ${u.map(y=>JSON.stringify(y)).join(", ")}`,"types",e),dt(this,"primaryType",u[0]);function p(y,w){w[y]&&Le.throwArgumentError(`circular type reference to ${JSON.stringify(y)}`,"types",e),w[y]=!0,Object.keys(n[y]).forEach(_=>
84{a[_]&&(p(_,w),Object.keys(w).forEach(N=>{f[N][_]=!0}))}),delete w[y]}p(this.primaryType,{});for(const y in f){const w=Object.keys(f[y]);w.sort(),this._types[y]=$m(y,e[y])+w.map(_=>$m(_,e[_])).join("")}}getEncoder(e){let n=this._encoderCache[e];return n||(n=this._encoderCache[e]=this._getEncoder(e)),n}_getEncoder(e){{const f=Hc(e);if(f)return f}const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const f=n[1],u=this.getEncoder(f),p=parseInt(n[3]);return y=>{p>=0&&y.length!==p&&Le.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",y);let w=y.map(u);return this._types[f]&&(w=w.map(er)),er(qr(w))}}const a=this.types[e];if(a){const f=nl(this._types[e]);return u=>{const p=a.map(({name:y,type:w})=>{const _=this.getEncoder(w)(u[y]);return this._types[w]?er(_):_});return p.unshift(f),qr(p)}}return Le.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const n=this._types[e];return n||Le.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),n}encodeData(e,n){return this.getEncoder(e)(n)}hashStruct(e,n){return er(this.encodeData(e,n))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,n,a){if(Hc(e))return a(e,n);const f=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(f){const p=f[1],y=parseInt(f[3]);return y>=0&&n.length!==y&&Le.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n),n.map(w=>this._visit(p,w,a))}const u=this.types[e];return u?u.reduce((p,{name:y,type:w})=>(p[y]=this._visit(w,n[y],a),p),{}):Le.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,n){return this._visit(this.primaryType,e,n)}static from(e){return new Vr(e)}static getPrimaryType(e){return Vr.from(e).primaryType}static hashStruct(e,n,a){return Vr.from(n).hashStruct(e,a)}static hashDomain(e){const n=[];for(const a in e){const f=Fm[a];f||Le.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(a)}`,"domain",e),n.push({name:a,type:f})}return n.sort((a,f)=>qc.indexOf(a.name)-qc.indexOf(f.name)),Vr.hashStruct("EIP712Domain",{EIP712Domain:n},e)}static encode(e,n,a){return qr(["0x1901",Vr.hashDomain(e),Vr.from(n).hash(a)])}static hash(e,n,a){return er(Vr.encode(e,n,a))}static resolveNames(e,n,a,f){return Cx(this,void 0,void 0,function*(){e=rr(e);const u={};e.verifyingContract&&!_e(e.verifyingContract,20)&&(u[e.verifyingContract]="0x");const p=Vr.from(n);p.visit(a,(y,w)=>(y==="address"&&!_e(w,20)&&(u[w]="0x"),w));for(const y in u)u[y]=yield f(y);return e.verifyingContract&&u[e.verifyingContract]&&(e.verifyingContract=u[e.verifyingContract]),a=p.visit(a,(y,w)=>y==="address"&&u[w]?u[w]:w),{domain:e,value:a}})}static getPayload(e,n,a){Vr.hashDomain(e);const f={},u=[];qc.forEach(w=>{const _=e[w];_!=null&&(f[w]=zx[w](_),u.push({name:w,type:Fm[w]}))});const p=Vr.from(n),y=rr(n);return y.EIP712Domain?Le.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):y.EIP712Domain=u,p.encode(a),{types:y,domain:f,primaryType:p.primaryType,message:p.visit(a,(w,_)=>{if(w.match(/^bytes(\d*)/))return St(Kt(_));if(w.match(/^u?int/))return mt.from(_).toString();switch(w){case"address":return _.toLowerCase();case"bool":return!!_;case"string":return typeof _!="string"&&Le.throwArgumentError("invalid string","value",_),_}return Le.throwArgumentError("unsupported type","type",w)})}}}const ze=new F(Ms);class Lx extends Es{}
84class qx extends Es{}class Hx extends Es{}class dh extends Es{static isIndexed(e){return!!(e&&e._isIndexed)}}const jx={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function tg(l,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${l}`);return n.error=e,n}class eg{constructor(e){let n=[];typeof e=="string"?n=JSON.parse(e):n=e,dt(this,"fragments",n.map(a=>di.from(a)).filter(a=>a!=null)),dt(this,"_abiCoder",Qn(new.target,"getAbiCoder")()),dt(this,"functions",{}),dt(this,"errors",{}),dt(this,"events",{}),dt(this,"structs",{}),this.fragments.forEach(a=>{let f=null;switch(a.type){case"constructor":if(this.deploy){ze.warn("duplicate definition - constructor");return}dt(this,"deploy",a);return;case"function":f=this.functions;break;case"event":f=this.events;break;case"error":f=this.errors;break;default:return}let u=a.format();if(f[u]){ze.warn("duplicate definition - "+u);return}f[u]=a}),this.deploy||dt(this,"deploy",Gn.from({payable:!1,type:"constructor"})),dt(this,"_isInterface",!0)}format(e){e||(e=we.full),e===we.sighash&&ze.throwArgumentError("interface does not support formatting sighash","format",e);const n=this.fragments.map(a=>a.format(e));return e===we.json?JSON.stringify(n.map(a=>JSON.parse(a))):n}static getAbiCoder(){return ax}static getAddress(e){return mr(e)}static getSighash(e){return Ar(nl(e.format()),0,4)}static getEventTopic(e){return nl(e.format())}getFunction(e){if(_e(e)){for(const a in this.functions)if(e===this.getSighash(a))return this.functions[a];ze.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const a=e.trim(),f=Object.keys(this.functions).filter(u=>u.split("(")[0]===a);return f.length===0?ze.throwArgumentError("no matching function","name",a):f.length>1&&ze.throwArgumentError("multiple matching functions","name",a),this.functions[f[0]]}const n=this.functions[Pn.fromString(e).format()];return n||ze.throwArgumentError("no matching function","signature",e),n}getEvent(e){if(_e(e)){const a=e.toLowerCase();for(const f in this.events)if(a===this.getEventTopic(f))return this.events[f];ze.throwArgumentError("no matching event","topichash",a)}if(e.indexOf("(")===-1){const a=e.trim(),f=Object.keys(this.events).filter(u=>u.split("(")[0]===a);return f.length===0?ze.throwArgumentError("no matching event","name",a):f.length>1&&ze.throwArgumentError("multiple matching events","name",a),this.events[f[0]]}const n=this.events[hi.fromString(e).format()];return n||ze.throwArgumentError("no matching event","signature",e),n}getError(e){if(_e(e)){const a=Qn(this.constructor,"getSighash");for(const f in this.errors){const u=this.errors[f];if(e===a(u))return this.errors[f]}ze.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const a=e.trim(),f=Object.keys(this.errors).filter(u=>u.split("(")[0]===a);return f.length===0?ze.throwArgumentError("no matching error","name",a):f.length>1&&ze.throwArgumentError("multiple matching errors","name",a),this.errors[f[0]]}const n=this.errors[Pn.fromString(e).format()];return n||ze.throwArgumentError("no matching error","signature",e),n}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(n){try{e=this.getError(e)}catch{throw n}}return Qn(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Qn(this.constructor,"getEventTopic")(e)}_decodeParams(e,n){return this._abiCoder.decode(e,n)}_encodeParams(e,n){return this._abiCoder.encode(e,n)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,n){typeof e=="string"&&(e=this.getError(e));const a=Kt(n);return St(a.slice(0,4))!==this.getSighash(e)&&ze.throwArgumentError(`data signature does not match error ${e.name}.`,"data",St(a)),this._decodeParams(e.inputs,a.slice(4))}encodeErrorResult(e,n){return typeof e=="string"&&(e=this.getError(e)),St(Jr([this.getSighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionData(e,n){typeof e=="string"&&(e=this.getFunction(e));const a=Kt(n);return St(a.slice(0,4))!==this.getSighash(e)&&ze.throwArgumentError(`data signature does not match function ${e.name}.`,"data",St(a)),this._decodeParams(e.inputs,a.slice(4))}encodeFunctionData(e,n){return typeof e=="string"&&(e=this.getFunction(e)),St(Jr([this.get
84Sighash(e),this._encodeParams(e.inputs,n||[])]))}decodeFunctionResult(e,n){typeof e=="string"&&(e=this.getFunction(e));let a=Kt(n),f=null,u="",p=null,y=null,w=null;switch(a.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,a)}catch{}break;case 4:{const _=St(a.slice(0,4)),N=jx[_];if(N)p=this._abiCoder.decode(N.inputs,a.slice(4)),y=N.name,w=N.signature,N.reason&&(f=p[0]),y==="Error"?u=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(p[0])}`:y==="Panic"&&(u=`; VM Exception while processing transaction: reverted with panic code ${p[0]}`);else try{const C=this.getError(_);p=this._abiCoder.decode(C.inputs,a.slice(4)),y=C.name,w=C.format()}catch{}break}}return ze.throwError("call revert exception"+u,F.errors.CALL_EXCEPTION,{method:e.format(),data:St(n),errorArgs:p,errorName:y,errorSignature:w,reason:f})}encodeFunctionResult(e,n){return typeof e=="string"&&(e=this.getFunction(e)),St(this._abiCoder.encode(e.outputs,n||[]))}encodeFilterTopics(e,n){typeof e=="string"&&(e=this.getEvent(e)),n.length>e.inputs.length&&ze.throwError("too many arguments for "+e.format(),F.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});let a=[];e.anonymous||a.push(this.getEventTopic(e));const f=(u,p)=>u.type==="string"?nl(p):u.type==="bytes"?er(St(p)):(u.type==="bool"&&typeof p=="boolean"&&(p=p?"0x01":"0x00"),u.type.match(/^u?int/)&&(p=mt.from(p).toHexString()),u.type==="address"&&this._abiCoder.encode(["address"],[p]),Ie(St(p),32));for(n.forEach((u,p)=>{let y=e.inputs[p];if(!y.indexed){u!=null&&ze.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+y.name,u);return}u==null?a.push(null):y.baseType==="array"||y.baseType==="tuple"?ze.throwArgumentError("filtering with tuples or arrays not supported","contract."+y.name,u):Array.isArray(u)?a.push(u.map(w=>f(y,w))):a.push(f(y,u))});a.length&&a[a.length-1]===null;)a.pop();return a}encodeEventLog(e,n){typeof e=="string"&&(e=this.getEvent(e));const a=[],f=[],u=[];return e.anonymous||a.push(this.getEventTopic(e)),n.length!==e.inputs.length&&ze.throwArgumentError("event arguments/values mismatch","values",n),e.inputs.forEach((p,y)=>{const w=n[y];if(p.indexed)if(p.type==="string")a.push(nl(w));else if(p.type==="bytes")a.push(er(w));else{if(p.baseType==="tuple"||p.baseType==="array")throw new Error("not implemented");a.push(this._abiCoder.encode([p.type],[w]))}else f.push(p),u.push(w)}),{data:this._abiCoder.encode(f,u),topics:a}}decodeEventLog(e,n,a){if(typeof e=="string"&&(e=this.getEvent(e)),a!=null&&!e.anonymous){let B=this.getEventTopic(e);(!_e(a[0],32)||a[0].toLowerCase()!==B)&&ze.throwError("fragment/topic mismatch",F.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:B,value:a[0]}),a=a.slice(1)}let f=[],u=[],p=[];e.inputs.forEach((B,H)=>{B.indexed?B.type==="string"||B.type==="bytes"||B.baseType==="tuple"||B.baseType==="array"?(f.push(sr.fromObject({type:"bytes32",name:B.name})),p.push(!0)):(f.push(B),p.push(!1)):(u.push(B),p.push(!1))});let y=a!=null?this._abiCoder.decode(f,Jr(a)):null,w=this._abiCoder.decode(u,n,!0),_=[],N=0,C=0;e.inputs.forEach((B,H)=>{if(B.indexed)if(y==null)_[H]=new dh({_isIndexed:!0,hash:null});else if(p[H])_[H]=new dh({_isIndexed:!0,hash:y[C++]});else try{_[H]=y[C++]}catch(q){_[H]=q}else try{_[H]=w[N++]}catch(q){_[H]=q}if(B.name&&_[B.name]==null){const q=_[H];q instanceof Error?Object.defineProperty(_,B.name,{enumerable:!0,get:()=>{throw tg(`property ${JSON.stringify(B.name)}`,q)}}):_[B.name]=q}});for(let B=0;B<_.length;B++){const H=_[B];H instanceof Error&&Object.defineProperty(_,B,{enumerable:!0,get:()=>{throw tg(`index ${B}`,H)}})}return Object.freeze(_)}parseTransaction(e){let n=this.getFunction(e.data.substring(0,10).toLowerCase());return n?new qx({args:this._abiCoder.decode(n.inputs,"0x"+e.data.substring(10)),functionFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n),value:mt.from(e.value||"0")}):null}parseLog(e){let n=this.getEvent(e.topics[0]);return!n||n.anonymous?null:new Lx({eventFragment:n,name:n.name,signature:n.format(),topic:this.getEventTopic(n),args:this.decodeEventLog(n,e.data,e.topics)})}parseError(e){const n=St(e);let a=this.getError(n.substring(0,10).toLowerCase());return a?new Hx({args:this._abiCoder.decode(a.inputs,"0x"+n.substring(10)),errorFragment:a,name:a.name,signature:a.format(),sighash:this.getSighash(a)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const Ix="abstract-provider/5.8.0";var Gx=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}
84return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const Px=new F(Ix);class Qx extends Es{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class yu{constructor(){Px.checkAbstract(new.target,yu),dt(this,"_isProvider",!0)}getFeeData(){return Gx(this,void 0,void 0,function*(){const{block:e,gasPrice:n}=yield Ke({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(p=>null)});let a=null,f=null,u=null;return e&&e.baseFeePerGas&&(a=e.baseFeePerGas,u=mt.from("1500000000"),f=e.baseFeePerGas.mul(2).add(u)),{lastBaseFeePerGas:a,maxFeePerGas:f,maxPriorityFeePerGas:u,gasPrice:n}})}addListener(e,n){return this.on(e,n)}removeListener(e,n){return this.off(e,n)}static isProvider(e){return!!(e&&e._isProvider)}}const Yx="abstract-signer/5.8.0";var Mn=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const mn=new F(Yx),Xx=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Vx=[F.errors.INSUFFICIENT_FUNDS,F.errors.NONCE_EXPIRED,F.errors.REPLACEMENT_UNDERPRICED];class Ts{constructor(){mn.checkAbstract(new.target,Ts),dt(this,"_isSigner",!0)}getBalance(e){return Mn(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return Mn(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return Mn(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const n=yield Ke(this.checkTransaction(e));return yield this.provider.estimateGas(n)})}call(e,n){return Mn(this,void 0,void 0,function*(){this._checkProvider("call");const a=yield Ke(this.checkTransaction(e));return yield this.provider.call(a,n)})}sendTransaction(e){return Mn(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const n=yield this.populateTransaction(e),a=yield this.signTransaction(n);return yield this.provider.sendTransaction(a)})}getChainId(){return Mn(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return Mn(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return Mn(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return Mn(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const a in e)Xx.indexOf(a)===-1&&mn.throwArgumentError("invalid transaction key: "+a,"transaction",e);const n=rr(e);return n.from==null?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then(a=>(a[0].toLowerCase()!==a[1].toLowerCase()&&mn.throwArgumentError("from address mismatch","transaction",e),a[0])),n}populateTransaction(e){return Mn(this,void 0,void 0,function*(){const n=yield Ke(this.checkTransaction(e));n.to!=null&&(n.to=Promise.resolve(n.to).then(f=>Mn(this,void 0,void 0,function*(){if(f==null)return null;const u=yield this.resolveName(f);return u==null&&mn.throwArgumentError("provided ENS name resolves to null","tx.to",f),u})),n.to.catch(f=>{}));const a=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||a)?mn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(n.type===0||n.type===1)&&a&&mn.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1)n.gasPrice==null&&(n.gasPrice=this.getGasPrice());else{const f=yield this.getFeeData();if(n.type==null)if(f.maxFeePerGas!=null&&f.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const u=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=u,n.maxPriorityFeePerGas=u}else n.maxFeePerGas==null&&(n.maxFeePerGas=f.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=f.maxPriorityFeePerGas);else f.gasPrice!=null?(a&&mn.throwError("network does not support EIP-1559",F.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=f.gasPrice),n.type=0):mn.throwError("failed to get consistent fee data",F.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else n.type===2&&(n.maxFeePerGas==null&&(n.maxFeePerGas=f.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=f.maxPriorityFeePerGas))}return n.nonce==null&&(n.nonce=this.getTransactionCount("pending")),n.gasLimit==null&&(n.gasLimit=this.estimateGas(n).catch(f=>{if(Vx.indexOf(f.code)>=0)throw f;return mn.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",F.errors.UNPREDICTABLE_GAS_LIMIT,{error:f,tx:n})})),n.chainId==null?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then(f=>(f[1]!==0&&f[0]!==f[1]&&mn.throwArgumentError("chainId address mismatch","transaction",e),f[0])),yield Ke(n)})}_checkProvider(e){this.provider||mn.throwError("missing provider",F.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class Nh extends Ts{constructor(e,n){super(),dt(this,"address",e),dt(this,"provider",n||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,n){return Promise.resolve().then(()=>{mn.throwError(e,F.errors.UNSUPPORTED_OPERATION,{operation:n})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,n,a){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Nh(this.address,e)}}var Ko={exports:{}},Kx=Ko.exports,rg;function Zx(){return rg||(rg=1,function(l){(function(e,n){function a(E,o){if(!E)throw new Error(o||"Assertion failed")}function f(E,o){E.super_=o;var d=function(){};d.prototype=o.prototype,E.prototype=new d,E.prototype.constructor=E}function u(E,o,d){if(u.isBN(E))return E;this.negative=0,this.words=null,this.length=0,this.red=null,E!==null&&((o==="le"||o==="be")&&(d=o,o=10),this._init(E||0,o||10,d||"be"))}
vendor: 15,599 bytes, line 84
84typeof e=="object"?e.exports=u:n.BN=u,u.BN=u,u.wordSize=26;var p;try{typeof window<"u"&&typeof window.Buffer<"u"?p=window.Buffer:p=fv.Buffer}catch{}u.isBN=function(o){return o instanceof u?!0:o!==null&&typeof o=="object"&&o.constructor.wordSize===u.wordSize&&Array.isArray(o.words)},u.max=function(o,d){return o.cmp(d)>0?o:d},u.min=function(o,d){return o.cmp(d)<0?o:d},u.prototype._init=function(o,d,m){if(typeof o=="number")return this._initNumber(o,d,m);if(typeof o=="object")return this._initArray(o,d,m);d==="hex"&&(d=16),a(d===(d|0)&&d>=2&&d<=36),o=o.toString().replace(/\s+/g,"");var v=0;o[0]==="-"&&(v++,this.negative=1),v<o.length&&(d===16?this._parseHex(o,v,m):(this._parseBase(o,d,v),m==="le"&&this._initArray(this.toArray(),d,m)))},u.prototype._initNumber=function(o,d,m){o<0&&(this.negative=1,o=-o),o<67108864?(this.words=[o&67108863],this.length=1):o<4503599627370496?(this.words=[o&67108863,o/67108864&67108863],this.length=2):(a(o<9007199254740992),this.words=[o&67108863,o/67108864&67108863,1],this.length=3),m==="le"&&this._initArray(this.toArray(),d,m)},u.prototype._initArray=function(o,d,m){if(a(typeof o.length=="number"),o.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(o.length/3),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x,R,M=0;if(m==="be")for(v=o.length-1,x=0;v>=0;v-=3)R=o[v]|o[v-1]<<8|o[v-2]<<16,this.words[x]|=R<<M&67108863,this.words[x+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);else if(m==="le")for(v=0,x=0;v<o.length;v+=3)R=o[v]|o[v+1]<<8|o[v+2]<<16,this.words[x]|=R<<M&67108863,this.words[x+1]=R>>>26-M&67108863,M+=24,M>=26&&(M-=26,x++);return this._strip()};function y(E,o){var d=E.charCodeAt(o);if(d>=48&&d<=57)return d-48;if(d>=65&&d<=70)return d-55;if(d>=97&&d<=102)return d-87;a(!1,"Invalid character in "+E)}function w(E,o,d){var m=y(E,d);return d-1>=o&&(m|=y(E,d-1)<<4),m}u.prototype._parseHex=function(o,d,m){this.length=Math.ceil((o.length-d)/6),this.words=new Array(this.length);for(var v=0;v<this.length;v++)this.words[v]=0;var x=0,R=0,M;if(m==="be")for(v=o.length-1;v>=d;v-=2)M=w(o,d,v)<<x,this.words[R]|=M&67108863,x>=18?(x-=18,R+=1,this.words[R]|=M>>>26):x+=8;else{var b=o.length-d;for(v=b%2===0?d+1:d;v<o.length;v+=2)M=w(o,d,v)<<x,this.words[R]|=M&67108863,x>=18?(x-=18,R+=1,this.words[R]|=M>>>26):x+=8}this._strip()};function _(E,o,d,m){for(var v=0,x=0,R=Math.min(E.length,d),M=o;M<R;M++){var b=E.charCodeAt(M)-48;v*=m,b>=49?x=b-49+10:b>=17?x=b-17+10:x=b,a(b>=0&&x<m,"Invalid character"),v+=x}return v}u.prototype._parseBase=function(o,d,m){this.words=[0],this.length=1;for(var v=0,x=1;x<=67108863;x*=d)v++;v--,x=x/d|0;for(var R=o.length-m,M=R%v,b=Math.min(R,R-M)+m,c=0,A=m;A<b;A+=v)c=_(o,A,A+v,d),this.imuln(x),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(M!==0){var K=1;for(c=_(o,A,o.length,d),A=0;A<M;A++)K*=d;this.imuln(K),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},u.prototype.copy=function(o){o.words=new Array(this.length);for(var d=0;d<this.length;d++)o.words[d]=this.words[d];o.length=this.length,o.negative=this.negative,o.red=this.red};function N(E,o){E.words=o.words,E.length=o.length,E.negative=o.negative,E.red=o.red}if(u.prototype._move=function(o){N(o,this)},u.prototype.clone=function(){var o=new u(null);return this.copy(o),o},u.prototype._expand=function(o){for(;this.length<o;)this.words[this.length++]=0;return this},u.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},u.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{u.prototype[Symbol.for("nodejs.util.inspect.custom")]=C}catch{u.prototype.inspect=C}else u.prototype.inspect=C;function C(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var B=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],H=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],q=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];u.prototype.toString=function(o,d){o=o||10,d=d|0||1;var m;if(o===16||o==="hex"){m="";for(var v=0,x=0,R=0;R<this.length;R++){var M=this.words[R],b=((M<<v|x)&16777215).toString(16);x=M>>>24-v&16777215,v+=2,v>=26&&(v-=26,R--),x!==0||R!==this.length-1?m=B[6-b.length]+b+m:m=b+m}for(x!==0&&(m=x.toString(16)+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}if(o===(o|0)&&o>=2&&o<=36){var c=H[o],A=q[o];m="";var K=this.clone();for(K.negative=0;!K.isZero();){var S=K.modrn(A).toString(o);K=K.idivn(A),K.isZero()?m=S+m:m=B[c-S.length]+S+m}for(this.isZero()&&(m="0"+m);m.length%d!==0;)m="0"+m;return this.negative!==0&&(m="-"+m),m}a(!1,"Base should be between 2 and 36")},u.prototype.toNumber=function(){var o=this.words[0];return this.length===2?o+=this.words[1]*67108864:this.length===3&&this.words[2]===1?o+=4503599627370496+this.words[1]*67108864:this.length>2&&a(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-o:o},u.prototype.toJSON=function(){return this.toString(16,2)},p&&(u.prototype.toBuffer=function(o,d){return this.toArrayLike(p,o,d)}),u.prototype.toArray=function(o,d){return this.toArrayLike(Array,o,d)};var k=function(o,d){return o.allocUnsafe?o.allocUnsafe(d):new o(d)};u.prototype.toArrayLike=function(o,d,m){this._strip();var v=this.byteLength(),x=m||Math.max(1,v);a(v<=x,"byte array longer than desired length"),a(x>0,"Requested array length <= 0");var R=k(o,x),M=d==="le"?"LE":"BE";return this["_toArrayLike"+M](R,v),R},u.prototype._toArrayLikeLE=function(o,d){for(var m=0,v=0,x=0,R=0;x<this.length;x++){var M=this.words[x]<<R|v;o[m++]=M&255,m<o.length&&(o[m++]=M>>8&255),m<o.length&&(o[m++]=M>>16&255),R===6?(m<o.length&&(o[m++]=M>>24&255),v=0,R=0):(v=M>>>24,R+=2)}if(m<o.length)for(o[m++]=v;m<o.length;)o[m++]=0},u.prototype._toArrayLikeBE=function(o,d){for(var m=o.length-1,v=0,x=0,R=0;x<this.length;x++){var M=this.words[x]<<R|v;o[m--]=M&255,m>=0&&(o[m--]=M>>8&255),m>=0&&(o[m--]=M>>16&255),R===6?(m>=0&&(o[m--]=M>>24&255),v=0,R=0):(v=M>>>24,R+=2)}if(m>=0)for(o[m--]=v;m>=0;)o[m--]=0},Math.clz32?u.prototype._countBits=function(o){return 32-Math.clz32(o)}:u.prototype._countBits=function(o){var d=o,m=0;return d>=4096&&(m+=13,d>>>=13),d>=64&&(m+=7,d>>>=7),d>=8&&(m+=4,d>>>=4),d>=2&&(m+=2,d>>>=2),m+d},u.prototype._zeroBits=function(o){if(o===0)return 26;var d=o,m=0;return(d&8191)===0&&(m+=13,d>>>=13),(d&127)===0&&(m+=7,d>>>=7),(d&15)===0&&(m+=4,d>>>=4),(d&3)===0&&(m+=2,d>>>=2),(d&1)===0&&m++,m},u.prototype.bitLength=function(){var o=this.words[this.length-1],d=this._countBits(o);return(this.length-1)*26+d};function z(E){for(var o=new Array(E.bitLength()),d=0;d<o.length;d++){var m=d/26|0,v=d%26;o[d]=E.words[m]>>>v&1}return o}u.prototype.zeroBits=function(){if(this.isZero())return 0;for(var o=0,d=0;d<this.length;d++){var m=this._zeroBits(this.words[d]);if(o+=m,m!==26)break}return o},u.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},u.prototype.toTwos=function(o){return this.negative!==0?this.abs().inotn(o).iaddn(1):this.clone()},u.prototype.fromTwos=function(o){return this.testn(o-1)?this.notn(o).iaddn(1).ineg():this.clone()},u.prototype.isNeg=function(){return this.negative!==0},u.prototype.neg=function(){return this.clone().ineg()},u.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},u.prototype.iuor=function(o){for(;this.length<o.length;)this.words[this.length++]=0;for(var d=0;d<o.length;d++)this.words[d]=this.words[d]|o.words[d];return this._strip()},u.prototype.ior=function(o){return a((this.negative|o.negative)===0),this.iuor(o)},u.prototype.or=function(o){return this.length>o.length?this.clone().ior(o):o.clone().ior(this)},u.prototype.uor=function(o){return this.length>o.length?this.clone().iuor(o):o.clone().iuor(this)},u.prototype.iuand=function(o){var d;this.length>o.length?d=o:d=this;for(var m=0;m<d.length;m++)this.words[m]=this.words[m]&o.words[m];return this.length=d.length,this._strip()},u.prototype.iand=function(o){return a((this.negative|o.negative)===0),this.iuand(o)},u.prototype.and=function(o){return this.length>o.length?this.clone().iand(o):o.clone().iand(this)},u.prototype.uand=function(o){return this.length>o.length?this.clone().iuand(o):o.clone().iuand(this)},u.prototype.iuxor=function(o){var d,m;this.length>o.length?(d=this,m=o):(d=o,m=this);for(var v=0;v<m.length;v++)this.words[v]=d.words[v]^m.words[v];if(this!==d)for(;v<d.length;v++)this.words[v]=d.words[v];return this.length=d.length,this._strip()},u.prototype.ixor=function(o){return a((this.negative|o.negative)===0),this.iuxor(o)},u.prototype.xor=function(o){return this.length>o.length?this.clone().ixor(o):o.clone().ixor(this)},u.prototype.uxor=function(o){return this.length>o.length?this.clone().iuxor(o):o.clone().iuxor(this)},u.prototype.inotn=function(o){a(typeof o=="number"&&o>=0);var d=Math.ceil(o/26)|0,m=o%26;this._expand(d),m>0&&d--;for(var v=0;v<d;v++)this.words[v]=~this.words[v]&67108863;return m>0&&(this.words[v]=~this.words[v]&67108863>>26-m),this._strip()},u.prototype.notn=function(o){return this.clone().inotn(o)},u.prototype.setn=function(o,d){a(typeof o=="number"&&o>=0);var m=o/26|0,v=o%26;return this._expand(m+1),d?this.words[m]=this.words[m]|1<<v:this.words[m]=this.words[m]&~(1<<v),this._strip()},u.prototype.iadd=function(o){var d;if(this.negative!==0&&o.negative===0)return this.negative=0,d=this.isub(o),this.negative^=1,this._normSign();if(this.negative===0&&o.negative!==0)return o.negative=0,d=this.isub(o),o.negative=1,d._normSign();var m,v;this.length>o.length?(m=this,v=o):(m=o,v=this);for(var x=0,R=0;R<v.length;R++)d=(m.words[R]|0)+(v.words[R]|0)+x,this.words[R]=d&67108863,x=d>>>26;for(;x!==0&&R<m.length;R++)d=(m.words[R]|0)+x,this.words[R]=d&67108863,x=d>>>26;if(this.length=m.length,x!==0)this.words[this.length]=x,this.length++;else if(m!==this)for(;R<m.length;R++)this.words[R]=m.words[R];return this},u.prototype.add=function(o){var d;return o.negative!==0&&this.negative===0?(o.negative=0,d=this.sub(o),o.negative^=1,d):o.negative===0&&this.negative!==0?(this.negative=0,d=o.sub(this),this.negative=1,d):this.length>o.length?this.clone().iadd(o):o.clone().iadd(this)},u.prototype.isub=function(o){if(o.negative!==0){o.negative=0;var d=this.iadd(o);return o.negative=1,d._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(o),this.negative=1,this._normSign();var m=this.cmp(o);if(m===0)return this.negative=0,this.length=1,this.words[0]=0,this;var v,x;m>0?(v=this,x=o):(v=o,x=this);for(var R=0,M=0;M<x.length;M++)d=(v.words[M]|0)-(x.words[M]|0)+R,R=d>>26,this.words[M]=d&67108863;for(;R!==0&&M<v.length;M++)d=(v.words[M]|0)+R,R=d>>26,this.words[M]=d&67108863;if(R===0&&M<v.length&&v!==this)for(;M<v.length;M++)this.words[M]=v.words[M];return this.length=Math.max(this.length,M),v!==this&&(this.negative=1),this._strip()},u.prototype.sub=function(o){return this.clone().isub(o)};function L(E,o,d){d.negative=o.negative^E.negative;var m=E.length+o.length|0;d.length=m,m=m-1|0;var v=E.words[0]|0,x=o.words[0]|0,R=v*x,M=R&67108863,b=R/67108864|0;d.words[0]=M;for(var c=1;c<m;c++){for(var A=b>>>26,K=b&67108863,S=Math.min(c,o.length-1),D=Math.max(0,c-E.length+1);D<=S;D++){var et=c-D|0;v=E.words[et]|0,x=o.words[D]|0,R=v*x+K,A+=R/67108864|0,K=R&67108863}d.words[c]=K|0,b=A|0}return b!==0?d.words[c]=b|0:d.length--,d._strip()}var G=function(o,d,m){var v=o.words,x=d.words,R=m.words,M=0,b,c,A,K=v[0]|0,S=K&8191,D=K>>>13,et=v[1]|0,Y=et&8191,rt=et>>>13,yt=v[2]|0,ft=yt&8191,ot=yt>>>13,de=v[3]|0,ct=de&8191,gt=de>>>13,nr=v[4]|0,wt=nr&8191,Ht=nr>>>13,vr=v[5]|0,Ut=vr&8191,Rt=vr>>>13,Mr=v[6]|0,zt=Mr&8191,Ot=Mr>>>13,ur=v[7]|0,Tt=ur&8191,xt=ur>>>13,Fe=v[8]|0,Et=Fe&8191,te=Fe>>>13,Wr=v[9]|0,ee=Wr&8191,jt=Wr>>>13,Sr=x[0]|0,Ct=Sr&8191,It=Sr>>>13,yr=x[1]|0,re=yr&8191,Zt=yr>>>13,Hr=x[2]|0,Pt=Hr&8191,Lt=Hr>>>13,$r=x[3]|0,Jt=$r&8191,Ft=$r>>>13,Or=x[4]|0,Qt=Or&8191,Wt=Or>>>13,tn=x[5]|0,Nt=tn&8191,At=tn>>>13,ke=x[6]|0,Bt=ke&8191,Yt=ke>>>13,en=x[7]|0,ne=en&8191,$t=en>>>13,br=x[8]|0,Xt=br&8191,kt=br>>>13,fr=x[9]|0,qt=fr&8191,Dt=fr>>>13;m.negative=o.negative^d.negative,m.length=19,b=Math.imul(S,Ct),c=Math.imul(S,It),c=c+Math.imul(D,Ct)|0,A=Math.imul(D,It);var xe=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(xe>>>26)|0,xe&=67108863,b=Math.imul(Y,Ct),c=Math.imul(Y,It),c=c+Math.imul(rt,Ct)|0,A=Math.imul(rt,It),b=b+Math.imul(S,re)|0,c=c+Math.imul(S,Zt)|0,c=c+Math.imul(D,re)|0,A=A+Math.imul(D,Zt)|0;var Tr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Tr>>>26)|0,Tr&=67108863,b=Math.imul(ft,Ct),c=Math.imul(ft,It),c=c+Math.imul(ot,Ct)|0,A=Math.imul(ot,It),b=b+Math.imul(Y,re)|0,c=c+Math.imul(Y,Zt)|0,c=c+Math.imul(rt,re)|0,A=A+Math.imul(rt,Zt)|0,b=b+Math.imul(S,Pt)|0,c=c+Math.imul(S,Lt)|0,c=c+Math.imul(D,Pt)|0,A=A+Math.imul(D,Lt)|0;var Nr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,b=Math.imul(ct,Ct),c=Math.imul(ct,It),c=c+Math.imul(gt,Ct)|0,A=Math.imul(gt,It),b=b+Math.imul(ft,re)|0,c=c+Math.imul(ft,Zt)|0,c=c+Math.imul(ot,re)|0,A=A+Math.imul(ot,Zt)|0,b=b+Math.imul(Y,Pt)|0,c=c+Math.imul(Y,Lt)|0,c=c+Math.imul(rt,Pt)|0,A=A+Math.imul(rt,Lt)|0,b=b+Math.imul(S,Jt)|0,c=c+Math.imul(S,Ft)|0,c=c+Math.imul(D,Jt)|0,A=A+Math.imul(D,Ft)|0;var Ye=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Ye>>>26)|0,Ye&=67108863,b=Math.imul(wt,Ct),c=Math.imul(wt,It),c=c+Math.imul(Ht,Ct)|0,A=Math.imul(Ht,It),b=b+Math.imul(ct,re)|0,c=c+Math.imul(ct,Zt)|0,c=c+Math.imul(gt,re)|0,A=A+Math.imul(gt,Zt)|0,b=b+Math.imul(ft,Pt)|0,c=c+Math.imul(ft,Lt)|0,c=c+Math.imul(ot,Pt)|0,A=A+Math.imul(ot,Lt)|0,b=b+Math.imul(Y,Jt)|0,c=c+Math.imul(Y,Ft)|0,c=c+Math.imul(rt,Jt)|0,A=A+Math.imul(rt,Ft)|0,b=b+Math.imul(S,Qt)|0,c=c+Math.imul(S,Wt)|0,c=c+Math.imul(D,Qt)|0,A=A+Math.imul(D,Wt)|0;var We=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(We>>>26)|0,We&=67108863,b=Math.imul(Ut,Ct),c=Math.imul(Ut,It),c=c+Math.imul(Rt,Ct)|0,A=Math.imul(Rt,It),b=b+Math.imul(wt,re)|0,c=c+Math.imul(wt,Zt)|0,c=c+Math.imul(Ht,re)|0,A=A+Math.imul(Ht,Zt)|0,b=b+Math.imul(ct,Pt)|0,c=c+Math.imul(ct,Lt)|0,c=c+Math.imul(gt,Pt)|0,A=A+Math.imul(gt,Lt)|0,b=b+Math.imul(ft,Jt)|0,c=c+Math.imul(ft,Ft)|0,c=c+Math.imul(ot,Jt)|0,A=A+Math.imul(ot,Ft)|0,b=b+Math.imul(Y,Qt)|0,c=c+Math.imul(Y,Wt)|0,c=c+Math.imul(rt,Qt)|0,A=A+Math.imul(rt,Wt)|0,b=b+Math.imul(S,Nt)|0,c=c+Math.imul(S,At)|0,c=c+Math.imul(D,Nt)|0,A=A+Math.imul(D,At)|0;var Vn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,b=Math.imul(zt,Ct),c=Math.imul(zt,It),c=c+Math.imul(Ot,Ct)|0,A=Math.imul(Ot,It),b=b+Math.imul(Ut,re)|0,c=c+Math.imul(Ut,Zt)|0,c=c+Math.imul(Rt,re)|0,A=A+Math.imul(Rt,Zt)|0,b=b+Math.imul(wt,Pt)|0,c=c+Math.imul(wt,Lt)|0,c=c+Math.imul(Ht,Pt)|0,A=A+Math.imul(Ht,Lt)|0,b=b+Math.imul(ct,Jt)|0,c=c+Math.imul(ct,Ft)|0,c=c+Math.imul(gt,Jt)|0,A=A+Math.imul(gt,Ft)|0,b=b+Math.imul(ft,Qt)|0,c=c+Math.imul(ft,Wt)|0,c=c+Math.imul(ot,Qt)|0,A=A+Math.imul(ot,Wt)|0,b=b+Math.imul(Y,Nt)|0,c=c+Math.imul(Y,At)|0,c=c+Math.imul(rt,Nt)|0,A=A+Math.imul(rt,At)|0,b=b+Math.imul(S,Bt)|0,c=c+Math.imul(S,Yt)|0,c=c+Math.imul(D,Bt)|0,A=A+Math.imul(D,Yt)|0;
84var Cn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,b=Math.imul(Tt,Ct),c=Math.imul(Tt,It),c=c+Math.imul(xt,Ct)|0,A=Math.imul(xt,It),b=b+Math.imul(zt,re)|0,c=c+Math.imul(zt,Zt)|0,c=c+Math.imul(Ot,re)|0,A=A+Math.imul(Ot,Zt)|0,b=b+Math.imul(Ut,Pt)|0,c=c+Math.imul(Ut,Lt)|0,c=c+Math.imul(Rt,Pt)|0,A=A+Math.imul(Rt,Lt)|0,b=b+Math.imul(wt,Jt)|0,c=c+Math.imul(wt,Ft)|0,c=c+Math.imul(Ht,Jt)|0,A=A+Math.imul(Ht,Ft)|0,b=b+Math.imul(ct,Qt)|0,c=c+Math.imul(ct,Wt)|0,c=c+Math.imul(gt,Qt)|0,A=A+Math.imul(gt,Wt)|0,b=b+Math.imul(ft,Nt)|0,c=c+Math.imul(ft,At)|0,c=c+Math.imul(ot,Nt)|0,A=A+Math.imul(ot,At)|0,b=b+Math.imul(Y,Bt)|0,c=c+Math.imul(Y,Yt)|0,c=c+Math.imul(rt,Bt)|0,A=A+Math.imul(rt,Yt)|0,b=b+Math.imul(S,ne)|0,c=c+Math.imul(S,$t)|0,c=c+Math.imul(D,ne)|0,A=A+Math.imul(D,$t)|0;var On=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(On>>>26)|0,On&=67108863,b=Math.imul(Et,Ct),c=Math.imul(Et,It),c=c+Math.imul(te,Ct)|0,A=Math.imul(te,It),b=b+Math.imul(Tt,re)|0,c=c+Math.imul(Tt,Zt)|0,c=c+Math.imul(xt,re)|0,A=A+Math.imul(xt,Zt)|0,b=b+Math.imul(zt,Pt)|0,c=c+Math.imul(zt,Lt)|0,c=c+Math.imul(Ot,Pt)|0,A=A+Math.imul(Ot,Lt)|0,b=b+Math.imul(Ut,Jt)|0,c=c+Math.imul(Ut,Ft)|0,c=c+Math.imul(Rt,Jt)|0,A=A+Math.imul(Rt,Ft)|0,b=b+Math.imul(wt,Qt)|0,c=c+Math.imul(wt,Wt)|0,c=c+Math.imul(Ht,Qt)|0,A=A+Math.imul(Ht,Wt)|0,b=b+Math.imul(ct,Nt)|0,c=c+Math.imul(ct,At)|0,c=c+Math.imul(gt,Nt)|0,A=A+Math.imul(gt,At)|0,b=b+Math.imul(ft,Bt)|0,c=c+Math.imul(ft,Yt)|0,c=c+Math.imul(ot,Bt)|0,A=A+Math.imul(ot,Yt)|0,b=b+Math.imul(Y,ne)|0,c=c+Math.imul(Y,$t)|0,c=c+Math.imul(rt,ne)|0,A=A+Math.imul(rt,$t)|0,b=b+Math.imul(S,Xt)|0,c=c+Math.imul(S,kt)|0,c=c+Math.imul(D,Xt)|0,A=A+Math.imul(D,kt)|0;var Kn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Kn>>>26)|0,Kn&=67108863,b=Math.imul(ee,Ct),c=Math.imul(ee,It),c=c+Math.imul(jt,Ct)|0,A=Math.imul(jt,It),b=b+Math.imul(Et,re)|0,c=c+Math.imul(Et,Zt)|0,c=c+Math.imul(te,re)|0,A=A+Math.imul(te,Zt)|0,b=b+Math.imul(Tt,Pt)|0,c=c+Math.imul(Tt,Lt)|0,c=c+Math.imul(xt,Pt)|0,A=A+Math.imul(xt,Lt)|0,b=b+Math.imul(zt,Jt)|0,c=c+Math.imul(zt,Ft)|0,c=c+Math.imul(Ot,Jt)|0,A=A+Math.imul(Ot,Ft)|0,b=b+Math.imul(Ut,Qt)|0,c=c+Math.imul(Ut,Wt)|0,c=c+Math.imul(Rt,Qt)|0,A=A+Math.imul(Rt,Wt)|0,b=b+Math.imul(wt,Nt)|0,c=c+Math.imul(wt,At)|0,c=c+Math.imul(Ht,Nt)|0,A=A+Math.imul(Ht,At)|0,b=b+Math.imul(ct,Bt)|0,c=c+Math.imul(ct,Yt)|0,c=c+Math.imul(gt,Bt)|0,A=A+Math.imul(gt,Yt)|0,b=b+Math.imul(ft,ne)|0,c=c+Math.imul(ft,$t)|0,c=c+Math.imul(ot,ne)|0,A=A+Math.imul(ot,$t)|0,b=b+Math.imul(Y,Xt)|0,c=c+Math.imul(Y,kt)|0,c=c+Math.imul(rt,Xt)|0,A=A+Math.imul(rt,kt)|0,b=b+Math.imul(S,qt)|0,c=c+Math.imul(S,Dt)|0,c=c+Math.imul(D,qt)|0,A=A+Math.imul(D,Dt)|0;var rn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(rn>>>26)|0,rn&=67108863,b=Math.imul(ee,re),c=Math.imul(ee,Zt),c=c+Math.imul(jt,re)|0,A=Math.imul(jt,Zt),b=b+Math.imul(Et,Pt)|0,c=c+Math.imul(Et,Lt)|0,c=c+Math.imul(te,Pt)|0,A=A+Math.imul(te,Lt)|0,b=b+Math.imul(Tt,Jt)|0,c=c+Math.imul(Tt,Ft)|0,c=c+Math.imul(xt,Jt)|0,A=A+Math.imul(xt,Ft)|0,b=b+Math.imul(zt,Qt)|0,c=c+Math.imul(zt,Wt)|0,c=c+Math.imul(Ot,Qt)|0,A=A+Math.imul(Ot,Wt)|0,b=b+Math.imul(Ut,Nt)|0,c=c+Math.imul(Ut,At)|0,c=c+Math.imul(Rt,Nt)|0,A=A+Math.imul(Rt,At)|0,b=b+Math.imul(wt,Bt)|0,c=c+Math.imul(wt,Yt)|0,c=c+Math.imul(Ht,Bt)|0,A=A+Math.imul(Ht,Yt)|0,b=b+Math.imul(ct,ne)|0,c=c+Math.imul(ct,$t)|0,c=c+Math.imul(gt,ne)|0,A=A+Math.imul(gt,$t)|0,b=b+Math.imul(ft,Xt)|0,c=c+Math.imul(ft,kt)|0,c=c+Math.imul(ot,Xt)|0,A=A+Math.imul(ot,kt)|0,b=b+Math.imul(Y,qt)|0,c=c+Math.imul(Y,Dt)|0,c=c+Math.imul(rt,qt)|0,A=A+Math.imul(rt,Dt)|0;var nn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(nn>>>26)|0,nn&=67108863,b=Math.imul(ee,Pt),c=Math.imul(ee,Lt),c=c+Math.imul(jt,Pt)|0,A=Math.imul(jt,Lt),b=b+Math.imul(Et,Jt)|0,c=c+Math.imul(Et,Ft)|0,c=c+Math.imul(te,Jt)|0,A=A+Math.imul(te,Ft)|0,b=b+Math.imul(Tt,Qt)|0,c=c+Math.imul(Tt,Wt)|0,c=c+Math.imul(xt,Qt)|0,A=A+Math.imul(xt,Wt)|0,b=b+Math.imul(zt,Nt)|0,c=c+Math.imul(zt,At)|0,c=c+Math.imul(Ot,Nt)|0,A=A+Math.imul(Ot,At)|0,b=b+Math.imul(Ut,Bt)|0,c=c+Math.imul(Ut,Yt)|0,c=c+Math.imul(Rt,Bt)|0,A=A+Math.imul(Rt,Yt)|0,b=b+Math.imul(wt,ne)|0,c=c+Math.imul(wt,$t)|0,c=c+Math.imul(Ht,ne)|0,A=A+Math.imul(Ht,$t)|0,b=b+Math.imul(ct,Xt)|0,c=c+Math.imul(ct,kt)|0,c=c+Math.imul(gt,Xt)|0,A=A+Math.imul(gt,kt)|0,b=b+Math.imul(ft,qt)|0,c=c+Math.imul(ft,Dt)|0,c=c+Math.imul(ot,qt)|0,A=A+Math.imul(ot,Dt)|0;var cr=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(cr>>>26)|0,cr&=67108863,b=Math.imul(ee,Jt),c=Math.imul(ee,Ft),c=c+Math.imul(jt,Jt)|0,A=Math.imul(jt,Ft),b=b+Math.imul(Et,Qt)|0,c=c+Math.imul(Et,Wt)|0,c=c+Math.imul(te,Qt)|0,A=A+Math.imul(te,Wt)|0,b=b+Math.imul(Tt,Nt)|0,c=c+Math.imul(Tt,At)|0,c=c+Math.imul(xt,Nt)|0,A=A+Math.imul(xt,At)|0,b=b+Math.imul(zt,Bt)|0,c=c+Math.imul(zt,Yt)|0,c=c+Math.imul(Ot,Bt)|0,A=A+Math.imul(Ot,Yt)|0,b=b+Math.imul(Ut,ne)|0,c=c+Math.imul(Ut,$t)|0,c=c+Math.imul(Rt,ne)|0,A=A+Math.imul(Rt,$t)|0,b=b+Math.imul(wt,Xt)|0,c=c+Math.imul(wt,kt)|0,c=c+Math.imul(Ht,Xt)|0,A=A+Math.imul(Ht,kt)|0,b=b+Math.imul(ct,qt)|0,c=c+Math.imul(ct,Dt)|0,c=c+Math.imul(gt,qt)|0,A=A+Math.imul(gt,Dt)|0;var bn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(bn>>>26)|0,bn&=67108863,b=Math.imul(ee,Qt),c=Math.imul(ee,Wt),c=c+Math.imul(jt,Qt)|0,A=Math.imul(jt,Wt),b=b+Math.imul(Et,Nt)|0,c=c+Math.imul(Et,At)|0,c=c+Math.imul(te,Nt)|0,A=A+Math.imul(te,At)|0,b=b+Math.imul(Tt,Bt)|0,c=c+Math.imul(Tt,Yt)|0,c=c+Math.imul(xt,Bt)|0,A=A+Math.imul(xt,Yt)|0,b=b+Math.imul(zt,ne)|0,c=c+Math.imul(zt,$t)|0,c=c+Math.imul(Ot,ne)|0,A=A+Math.imul(Ot,$t)|0,b=b+Math.imul(Ut,Xt)|0,c=c+Math.imul(Ut,kt)|0,c=c+Math.imul(Rt,Xt)|0,A=A+Math.imul(Rt,kt)|0,b=b+Math.imul(wt,qt)|0,c=c+Math.imul(wt,Dt)|0,c=c+Math.imul(Ht,qt)|0,A=A+Math.imul(Ht,Dt)|0;var Bn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,b=Math.imul(ee,Nt),c=Math.imul(ee,At),c=c+Math.imul(jt,Nt)|0,A=Math.imul(jt,At),b=b+Math.imul(Et,Bt)|0,c=c+Math.imul(Et,Yt)|0,c=c+Math.imul(te,Bt)|0,A=A+Math.imul(te,Yt)|0,b=b+Math.imul(Tt,ne)|0,c=c+Math.imul(Tt,$t)|0,c=c+Math.imul(xt,ne)|0,A=A+Math.imul(xt,$t)|0,b=b+Math.imul(zt,Xt)|0,c=c+Math.imul(zt,kt)|0,c=c+Math.imul(Ot,Xt)|0,A=A+Math.imul(Ot,kt)|0,b=b+Math.imul(Ut,qt)|0,c=c+Math.imul(Ut,Dt)|0,c=c+Math.imul(Rt,qt)|0,A=A+Math.imul(Rt,Dt)|0;var Br=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Br>>
vendor: 21,085 bytes, line 84
84>26)|0,Br&=67108863,b=Math.imul(ee,Bt),c=Math.imul(ee,Yt),c=c+Math.imul(jt,Bt)|0,A=Math.imul(jt,Yt),b=b+Math.imul(Et,ne)|0,c=c+Math.imul(Et,$t)|0,c=c+Math.imul(te,ne)|0,A=A+Math.imul(te,$t)|0,b=b+Math.imul(Tt,Xt)|0,c=c+Math.imul(Tt,kt)|0,c=c+Math.imul(xt,Xt)|0,A=A+Math.imul(xt,kt)|0,b=b+Math.imul(zt,qt)|0,c=c+Math.imul(zt,Dt)|0,c=c+Math.imul(Ot,qt)|0,A=A+Math.imul(Ot,Dt)|0;var wn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(wn>>>26)|0,wn&=67108863,b=Math.imul(ee,ne),c=Math.imul(ee,$t),c=c+Math.imul(jt,ne)|0,A=Math.imul(jt,$t),b=b+Math.imul(Et,Xt)|0,c=c+Math.imul(Et,kt)|0,c=c+Math.imul(te,Xt)|0,A=A+Math.imul(te,kt)|0,b=b+Math.imul(Tt,qt)|0,c=c+Math.imul(Tt,Dt)|0,c=c+Math.imul(xt,qt)|0,A=A+Math.imul(xt,Dt)|0;var xn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(xn>>>26)|0,xn&=67108863,b=Math.imul(ee,Xt),c=Math.imul(ee,kt),c=c+Math.imul(jt,Xt)|0,A=Math.imul(jt,kt),b=b+Math.imul(Et,qt)|0,c=c+Math.imul(Et,Dt)|0,c=c+Math.imul(te,qt)|0,A=A+Math.imul(te,Dt)|0;var Zn=(M+b|0)+((c&8191)<<13)|0;M=(A+(c>>>13)|0)+(Zn>>>26)|0,Zn&=67108863,b=Math.imul(ee,qt),c=Math.imul(ee,Dt),c=c+Math.imul(jt,qt)|0,A=Math.imul(jt,Dt);var kn=(M+b|0)+((c&8191)<<13)|0;return M=(A+(c>>>13)|0)+(kn>>>26)|0,kn&=67108863,R[0]=xe,R[1]=Tr,R[2]=Nr,R[3]=Ye,R[4]=We,R[5]=Vn,R[6]=Cn,R[7]=On,R[8]=Kn,R[9]=rn,R[10]=nn,R[11]=cr,R[12]=bn,R[13]=Bn,R[14]=Br,R[15]=wn,R[16]=xn,R[17]=Zn,R[18]=kn,M!==0&&(R[19]=M,m.length++),m};Math.imul||(G=L);function I(E,o,d){d.negative=o.negative^E.negative,d.length=E.length+o.length;for(var m=0,v=0,x=0;x<d.length-1;x++){var R=v;v=0;for(var M=m&67108863,b=Math.min(x,o.length-1),c=Math.max(0,x-E.length+1);c<=b;c++){var A=x-c,K=E.words[A]|0,S=o.words[c]|0,D=K*S,et=D&67108863;R=R+(D/67108864|0)|0,et=et+M|0,M=et&67108863,R=R+(et>>>26)|0,v+=R>>>26,R&=67108863}d.words[x]=M,m=R,R=v}return m!==0?d.words[x]=m:d.length--,d._strip()}function Q(E,o,d){return I(E,o,d)}u.prototype.mulTo=function(o,d){var m,v=this.length+o.length;return this.length===10&&o.length===10?m=G(this,o,d):v<63?m=L(this,o,d):v<1024?m=I(this,o,d):m=Q(this,o,d),m},u.prototype.mul=function(o){var d=new u(null);return d.words=new Array(this.length+o.length),this.mulTo(o,d)},u.prototype.mulf=function(o){var d=new u(null);return d.words=new Array(this.length+o.length),Q(this,o,d)},u.prototype.imul=function(o){return this.clone().mulTo(o,this)},u.prototype.imuln=function(o){var d=o<0;d&&(o=-o),a(typeof o=="number"),a(o<67108864);for(var m=0,v=0;v<this.length;v++){var x=(this.words[v]|0)*o,R=(x&67108863)+(m&67108863);m>>=26,m+=x/67108864|0,m+=R>>>26,this.words[v]=R&67108863}return m!==0&&(this.words[v]=m,this.length++),d?this.ineg():this},u.prototype.muln=function(o){return this.clone().imuln(o)},u.prototype.sqr=function(){return this.mul(this)},u.prototype.isqr=function(){return this.imul(this.clone())},u.prototype.pow=function(o){var d=z(o);if(d.length===0)return new u(1);for(var m=this,v=0;v<d.length&&d[v]===0;v++,m=m.sqr());if(++v<d.length)for(var x=m.sqr();v<d.length;v++,x=x.sqr())d[v]!==0&&(m=m.mul(x));return m},u.prototype.iushln=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26,v=67108863>>>26-d<<26-d,x;if(d!==0){var R=0;for(x=0;x<this.length;x++){var M=this.words[x]&v,b=(this.words[x]|0)-M<<d;this.words[x]=b|R,R=M>>>26-d}R&&(this.words[x]=R,this.length++)}if(m!==0){for(x=this.length-1;x>=0;x--)this.words[x+m]=this.words[x];for(x=0;x<m;x++)this.words[x]=0;this.length+=m}return this._strip()},u.prototype.ishln=function(o){return a(this.negative===0),this.iushln(o)},u.prototype.iushrn=function(o,d,m){a(typeof o=="number"&&o>=0);var v;d?v=(d-d%26)/26:v=0;var x=o%26,R=Math.min((o-x)/26,this.length),M=67108863^67108863>>>x<<x,b=m;if(v-=R,v=Math.max(0,v),b){for(var c=0;c<R;c++)b.words[c]=this.words[c];b.length=R}if(R!==0)if(this.length>R)for(this.length-=R,c=0;c<this.length;c++)this.words[c]=this.words[c+R];else this.words[0]=0,this.length=1;var A=0;for(c=this.length-1;c>=0&&(A!==0||c>=v);c--){var K=this.words[c]|0;this.words[c]=A<<26-x|K>>>x,A=K&M}return b&&A!==0&&(b.words[b.length++]=A),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},u.prototype.ishrn=function(o,d,m){return a(this.negative===0),this.iushrn(o,d,m)},u.prototype.shln=function(o){return this.clone().ishln(o)},u.prototype.ushln=function(o){return this.clone().iushln(o)},u.prototype.shrn=function(o){return this.clone().ishrn(o)},u.prototype.ushrn=function(o){return this.clone().iushrn(o)},u.prototype.testn=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26,v=1<<d;if(this.length<=m)return!1;var x=this.words[m];return!!(x&v)},u.prototype.imaskn=function(o){a(typeof o=="number"&&o>=0);var d=o%26,m=(o-d)/26;if(a(this.negative===0,"imaskn works only with positive numbers"),this.length<=m)return this;if(d!==0&&m++,this.length=Math.min(m,this.length),d!==0){var v=67108863^67108863>>>d<<d;this.words[this.length-1]&=v}return this._strip()},u.prototype.maskn=function(o){return this.clone().imaskn(o)},u.prototype.iaddn=function(o){return a(typeof o=="number"),a(o<67108864),o<0?this.isubn(-o):this.negative!==0?this.length===1&&(this.words[0]|0)<=o?(this.words[0]=o-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(o),this.negative=1,this):this._iaddn(o)},u.prototype._iaddn=function(o){this.words[0]+=o;for(var d=0;d<this.length&&this.words[d]>=67108864;d++)this.words[d]-=67108864,d===this.length-1?this.words[d+1]=1:this.words[d+1]++;return this.length=Math.max(this.length,d+1),this},u.prototype.isubn=function(o){if(a(typeof o=="number"),a(o<67108864),o<0)return this.iaddn(-o);if(this.negative!==0)return this.negative=0,this.iaddn(o),this.negative=1,this;if(this.words[0]-=o,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var d=0;d<this.length&&this.words[d]<0;d++)this.words[d]+=67108864,this.words[d+1]-=1;return this._strip()},u.prototype.addn=function(o){return this.clone().iaddn(o)},u.prototype.subn=function(o){return this.clone().isubn(o)},u.prototype.iabs=function(){return this.negative=0,this},u.prototype.abs=function(){return this.clone().iabs()},u.prototype._ishlnsubmul=function(o,d,m){var v=o.length+m,x;this._expand(v);var R,M=0;for(x=0;x<o.length;x++){R=(this.words[x+m]|0)+M;var b=(o.words[x]|0)*d;R-=b&67108863,M=(R>>26)-(b/67108864|0),this.words[x+m]=R&67108863}for(;x<this.length-m;x++)R=(this.words[x+m]|0)+M,M=R>>26,this.words[x+m]=R&67108863;if(M===0)return this._strip();for(a(M===-1),M=0,x=0;x<this.length;x++)R=-(this.words[x]|0)+M,M=R>>26,this.words[x]=R&67108863;return this.negative=1,this._strip()},u.prototype._wordDiv=function(o,d){var m=this.length-o.length,v=this.clone(),x=o,R=x.words[x.length-1]|0,M=this._countBits(R);m=26-M,m!==0&&(x=x.ushln(m),v.iushln(m),R=x.words[x.length-1]|0);var b=v.length-x.length,c;if(d!=="mod"){c=new u(null),c.length=b+1,c.words=new Array(c.length);for(var A=0;A<c.length;A++)c.words[A]=0}var K=v.clone()._ishlnsubmul(x,1,b);K.negative===0&&(v=K,c&&(c.words[b]=1));for(var S=b-1;S>=0;S--){var D=(v.words[x.length+S]|0)*67108864+(v.words[x.length+S-1]|0);for(D=Math.min(D/R|0,67108863),v._ishlnsubmul(x,D,S);v.negative!==0;)D--,v.negative=0,v._ishlnsubmul(x,1,S),v.isZero()||(v.negative^=1);c&&(c.words[S]=D)}return c&&c._strip(),v._strip(),d!=="div"&&m!==0&&v.iushrn(m),{div:c||null,mod:v}},u.prototype.divmod=function(o,d,m){if(a(!o.isZero()),this.isZero())return{div:new u(0),mod:new u(0)};var v,x,R;return this.negative!==0&&o.negative===0?(R=this.neg().divmod(o,d),d!=="mod"&&(v=R.div.neg()),d!=="div"&&(x=R.mod.neg(),m&&x.negative!==0&&x.iadd(o)),{div:v,mod:x}):this.negative===0&&o.negative!==0?(R=this.divmod(o.neg(),d),d!=="mod"&&(v=R.div.neg()),{div:v,mod:R.mod}):(this.negative&o.negative)!==0?(R=this.neg().divmod(o.neg(),d),d!=="div"&&(x=R.mod.neg(),m&&x.negative!==0&&x.isub(o)),{div:R.div,mod:x}):o.length>this.length||this.cmp(o)<0?{div:new u(0),mod:this}:o.length===1?d==="div"?{div:this.divn(o.words[0]),mod:null}:d==="mod"?{div:null,mod:new u(this.modrn(o.words[0]))}:{div:this.divn(o.words[0]),mod:new u(this.modrn(o.words[0]))}:this._wordDiv(o,d)},u.prototype.div=function(o){return this.divmod(o,"div",!1).div},u.prototype.mod=function(o){return this.divmod(o,"mod",!1).mod},u.prototype.umod=function(o){return this.divmod(o,"mod",!0).mod},u.prototype.divRound=function(o){var d=this.divmod(o);if(d.mod.isZero())return d.div;var m=d.div.negative!==0?d.mod.isub(o):d.mod,v=o.ushrn(1),x=o.andln(1),R=m.cmp(v);return R<0||x===1&&R===0?d.div:d.div.negative!==0?d.div.isubn(1):d.div.iaddn(1)},u.prototype.modrn=function(o){var d=o<0;d&&(o=-o),a(o<=67108863);for(var m=(1<<26)%o,v=0,x=this.length-1;x>=0;x--)v=(m*v+(this.words[x]|0))%o;return d?-v:v},u.prototype.modn=function(o){return this.modrn(o)},u.prototype.idivn=function(o){var d=o<0;d&&(o=-o),a(o<=67108863);for(var m=0,v=this.length-1;v>=0;v--){var x=(this.words[v]|0)+m*67108864;this.words[v]=x/o|0,m=x%o}return this._strip(),d?this.ineg():this},u.prototype.divn=function(o){return this.clone().idivn(o)},u.prototype.egcd=function(o){a(o.negative===0),a(!o.isZero());var d=this,m=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var v=new u(1),x=new u(0),R=new u(0),M=new u(1),b=0;d.isEven()&&m.isEven();)d.iushrn(1),m.iushrn(1),++b;for(var c=m.clone(),A=d.clone();!d.isZero();){for(var K=0,S=1;(d.words[0]&S)===0&&K<26;++K,S<<=1);if(K>0)for(d.iushrn(K);K-- >0;)(v.isOdd()||x.isOdd())&&(v.iadd(c),x.isub(A)),v.iushrn(1),x.iushrn(1);for(var D=0,et=1;(m.words[0]&et)===0&&D<26;++D,et<<=1);if(D>0)for(m.iushrn(D);D-- >0;)(R.isOdd()||M.isOdd())&&(R.iadd(c),M.isub(A)),R.iushrn(1),M.iushrn(1);d.cmp(m)>=0?(d.isub(m),v.isub(R),x.isub(M)):(m.isub(d),R.isub(v),M.isub(x))}return{a:R,b:M,gcd:m.iushln(b)}},u.prototype._invmp=function(o){a(o.negative===0),a(!o.isZero());var d=this,m=o.clone();d.negative!==0?d=d.umod(o):d=d.clone();for(var v=new u(1),x=new u(0),R=m.clone();d.cmpn(1)>0&&m.cmpn(1)>0;){for(var M=0,b=1;(d.words[0]&b)===0&&M<26;++M,b<<=1);if(M>0)for(d.iushrn(M);M-- >0;)v.isOdd()&&v.iadd(R),v.iushrn(1);for(var c=0,A=1;(m.words[0]&A)===0&&c<26;++c,A<<=1);if(c>0)for(m.iushrn(c);c-- >0;)x.isOdd()&&x.iadd(R),x.iushrn(1);d.cmp(m)>=0?(d.isub(m),v.isub(x)):(m.isub(d),x.isub(v))}var K;return d.cmpn(1)===0?K=v:K=x,K.cmpn(0)<0&&K.iadd(o),K},u.prototype.gcd=function(o){if(this.isZero())return o.abs();if(o.isZero())return this.abs();var d=this.clone(),m=o.clone();d.negative=0,m.negative=0;for(var v=0;d.isEven()&&m.isEven();v++)d.iushrn(1),m.iushrn(1);do{for(;d.isEven();)d.iushrn(1);for(;m.isEven();)m.iushrn(1);var x=d.cmp(m);if(x<0){var R=d;d=m,m=R}else if(x===0||m.cmpn(1)===0)break;d.isub(m)}while(!0);return m.iushln(v)},u.prototype.invm=function(o){return this.egcd(o).a.umod(o)},u.prototype.isEven=function(){return(this.words[0]&1)===0},u.prototype.isOdd=function(){return(this.words[0]&1)===1},u.prototype.andln=function(o){return this.words[0]&o},u.prototype.bincn=function(o){a(typeof o=="number");var d=o%26,m=(o-d)/26,v=1<<d;if(this.length<=m)return this._expand(m+1),this.words[m]|=v,this;for(var x=v,R=m;x!==0&&R<this.length;R++){var M=this.words[R]|0;M+=x,x=M>>>26,M&=67108863,this.words[R]=M}return x!==0&&(this.words[R]=x,this.length++),this},u.prototype.isZero=function(){return this.length===1&&this.words[0]===0},u.prototype.cmpn=function(o){var d=o<0;if(this.negative!==0&&!d)return-1;if(this.negative===0&&d)return 1;this._strip();var m;if(this.length>1)m=1;else{d&&(o=-o),a(o<=67108863,"Number is too big");var v=this.words[0]|0;m=v===o?0:v<o?-1:1}return this.negative!==0?-m|0:m},u.prototype.cmp=function(o){if(this.negative!==0&&o.negative===0)return-1;if(this.negative===0&&o.negative!==0)return 1;var d=this.ucmp(o);return this.negative!==0?-d|0:d},u.prototype.ucmp=function(o){if(this.length>o.length)return 1;if(this.length<o.length)return-1;for(var d=0,m=this.length-1;m>=0;m--){var v=this.words[m]|0,x=o.words[m]|0;if(v!==x){v<x?d=-1:v>x&&(d=1);break}}return d},u.prototype.gtn=function(o){return this.cmpn(o)===1},u.prototype.gt=function(o){return this.cmp(o)===1},u.prototype.gten=function(o){return this.cmpn(o)>=0},u.prototype.gte=function(o){return this.cmp(o)>=0},u.prototype.ltn=function(o){return this.cmpn(o)===-1},u.prototype.lt=function(o){return this.cmp(o)===-1},u.prototype.lten=function(o){return this.cmpn(o)<=0},u.prototype.lte=function(o){return this.cmp(o)<=0},u.prototype.eqn=function(o){return this.cmpn(o)===0},u.prototype.eq=function(o){return this.cmp(o)===0},u.red=function(o){return new pt(o)},u.prototype.toRed=function(o){return a(!this.red,"Already a number in reduction context"),a(this.negative===0,"red works only with positives"),o.convertTo(this)._forceRed(o)},u.prototype.fromRed=function(){return a(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},u.prototype._forceRed=function(o){return this.red=o,this},u.prototype.forceRed=function(o){return a(!this.red,"Already a number in reduction context"),this._forceRed(o)},u.prototype.redAdd=function(o){return a(this.red,"redAdd works only with red numbers"),this.red.add(this,o)},u.prototype.redIAdd=function(o){return a(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,o)},u.prototype.redSub=function(o){return a(this.red,"redSub works only with red numbers"),this.red.sub(this,o)},u.prototype.redISub=function(o){return a(this.red,"redISub works only with red numbers"),this.red.isub(this,o)},u.prototype.redShl=function(o){return a(this.red,"redShl works only with red numbers"),this.red.shl(this,o)},u.prototype.redMul=function(o){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.mul(this,o)},u.prototype.redIMul=function(o){return a(this.red,"redMul works only with red numbers"),this.red._verify2(this,o),this.red.imul(this,o)},u.prototype.redSqr=function(){return a(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},u.prototype.redISqr=function(){return a(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},u.prototype.redSqrt=function(){return a(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},u.prototype.redInvm=function(){return a(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},u.prototype.redNeg=function(){return a(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},u.prototype.redPow=function(o){return a(this.red&&!o.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,o)};var W={k256:null,p224:null,p192:null,p25519:null};function lt(E,o){this.name=E,this.p=new u(o,16),this.n=this.p.bitLength(),this.k=new u(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}lt.prototype._tmp=function(){var o=new u(null);return o.words=new Array(Math.ceil(this.n/13)),o},lt.prototype.ireduce=function(o){var d=o,m;do this.split(d,this.tmp),d=this.imulK(d),d=d.iadd(this.tmp),m=d.bitLength();while(m>this.n);var v=m<this.n?-1:d.ucmp(this.p);return v===0?(d.words[0]=0,d.length=1):v>0?d.isub(this.p):d.strip!==void 0?d.strip():d._strip(),d},lt.prototype.split=function(o,d){o.iushrn(this.n,0,d)},lt.prototype.imulK=function(o){return o.imul(this.k)};function ut(){lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}f(ut,lt),ut.prototype.split=function(o,d){for(var m=4194303,v=Math.min(o.length,9),x=0;x<v;x++)d.words[x]=o.words[x];if(d.length=v,o.length<=9){o.words[0]=0,o.length=1;return}var R=o.words[9];for(d.words[d.length++]=R&m,x=10;x<o.length;x++){var M=o.words[x]|0;o.words[x-10]=(M&m)<<4|R>>>22,R=M}R>>>=22,o.words[x-10]=R,R===0&&o.length>10?o.length-=10:o.length-=9},ut.prototype.imulK=function(o){o.words[o.length]=0,o.words[o.length+1]=0,o.length+=2;for(var d=0,m=0;m<o.length;m++){var v=o.words[m]|0;d+=v*977,o.words[m]=d&67108863,d=v*64+(d/67108864|0)}return o.words[o.length-1]===0&&(o.length--,o.words[o.length-1]===0&&o.length--),o};function ht(){lt.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}f(ht,lt);function vt(){lt.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}f(vt,lt);function ae(){lt.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}f(ae,lt),ae.prototype.imulK=function(o){for(var d=0,m=0;m<o.length;m++){var v=(o.words[m]|0)*19+d,x=v&67108863;v>>>=26,o.words[m]=x,d=v}return d!==0&&(o.words[o.length++]=d),o},u._prime=function(o){if(W[o])return W[o];var d;if(o==="k256")d=new ut;else if(o==="p224")d=new ht;else if(o==="p192")d=new vt;else if(o==="p25519")d=new ae;else throw new Error("Unknown prime "+o);return W[o]=d,d};function pt(E){if(typeof E=="string"){var o=u._prime(E);this.m=o.p,this.prime=o}else a(E.gtn(1),"modulus must be greater than 1"),this.m=E,this.prime=null}pt.prototype._verify1=function(o){a(o.negative===0,"red works only with positives"),a(o.red,"red works only with red numbers")},pt.prototype._verify2=function(o,d){a((o.negative|d.negative)===0,"red works only with positives"),a(o.red&&o.red===d.red,"red works only with red numbers")},pt.prototype.imod=function(o){return this.prime?this.prime.ireduce(o)._forceRed(this):(N(o,o.umod(this.m)._forceRed(this)),o)},pt.prototype.neg=function(o){return o.isZero()?o.clone():this.m.sub(o)._forceRed(this)},pt.prototype.add=function(o,d){this._verify2(o,d);var m=o.add(d);return m.cmp(this.m)>=0&&m.isub(this.m),m._forceRed(this)},pt.prototype.iadd=function(o,d){this._verify2(o,d);var m=o.iadd(d);return m.cmp(this.m)>=0&&m.isub(this.m),m},pt.prototype.sub=function(o,d){this._verify2(o,d);var m=o.sub(d);return m.cmpn(0)<0&&m.iadd(this.m),m._forceRed(this)},pt.prototype.isub=function(o,d){this._verify2(o,d);var m=o.isub(d);return m.cmpn(0)<0&&m.iadd(this.m),m},pt.prototype.shl=function(o,d){return this._verify1(o),this.imod(o.ushln(d))},pt.prototype.imul=function(o,d){return this._verify2(o,d),this.imod(o.imul(d))},pt.prototype.mul=function(o,d){return this._verify2(o,d),this.imod(o.mul(d))},pt.prototype.isqr=function(o){return this.imul(o,o.clone())},pt.prototype.sqr=function(o){return this.mul(o,o)},pt.prototype.sqrt=function(o){if(o.isZero())return o.clone();var d=this.m.andln(3);if(a(d%2===1),d===3){var m=this.m.add(new u(1)).iushrn(2);return this.pow(o,m)}for(var v=this.m.subn(1),x=0;!v.isZero()&&v.andln(1)===0;)x++,v.iushrn(1);a(!v.isZero());var R=new u(1).toRed(this),M=R.redNeg(),b=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new u(2*c*c).toRed(this);this.pow(c,b).cmp(M)!==0;)c.redIAdd(M);for(var A=this.pow(c,v),K=this.pow(o,v.addn(1).iushrn(1)),S=this.pow(o,v),D=x;S.cmp(R)!==0;){for(var et=S,Y=0;et.cmp(R)!==0;Y++)et=et.redSqr();a(Y<D);var rt=this.pow(A,new u(1).iushln(D-Y-1));K=K.redMul(rt),A=rt.redSqr(),S=S.redMul(A),D=Y}return K},pt.prototype.invm=function(o){var d=o._invmp(this.m);return d.negative!==0?(d.negative=0,this.imod(d).redNeg()):this.imod(d)},pt.prototype.pow=function(o,d){if(d.isZero())return new u(1).toRed(this);if(d.cmpn(1)===0)return o.clone();var m=4,v=new Array(1<<m);v[0]=new u(1).toRed(this),v[1]=o;for(var x=2;x<v.length;x++)v[x]=this.mul(v[x-1],o);var R=v[0],M=0,b=0,c=d.bitLength()%26;for(c===0&&(c=26),x=d.length-1;x>=0;x--){for(var A=d.words[x],K=c-1;K>=0;K--){var S=A>>K&1;if(R!==v[0]&&(R=this.sqr(R)),S===0&&M===0){b=0;continue}M<<=1,M|=S,b++,!(b!==m&&(x!==0||K!==0))&&(R=this.mul(R,v[M]),b=0,M=0)}c=26}return R},pt.prototype.convertTo=function(o){var d=o.umod(this.m);return d===o?d.clone():d},pt.prototype.convertFrom=function(o){var d=o.clone();return d.red=null,d},u.mont=function(o){return new V(o)};function V(E){pt.call(this,E),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new u(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}f(V,pt),V.prototype.convertTo=function(o){return this.imod(o.ushln(this.shift))},V.prototype.convertFrom=function(o){var d=this.imod(o.mul(this.rinv));return d.red=null,d},V.prototype.imul=function(o,d){if(o.isZero()||d.isZero())return o.words[0]=0,o.length=1,o;var m=o.imul(d),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),R=x;return x.cmp(this.m)>=0?R=x.isub(this.m):x.cmpn(0)<0&&(R=x.iadd(this.m)),R._forceRed(this)},V.prototype.mul=function(o,d){if(o.isZero()||d.isZero())return new u(0)._forceRed(this);var m=o.mul(d),v=m.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=m.isub(v).iushrn(this.shift),R=x;return x.cmp(this.m)>=0?R=x.isub(this.m):x.cmpn(0)<0&&(R=x.iadd(this.m)),R._forceRed(this)},V.prototype.invm=function(o){var d=this.imod(o._invmp(this.m).mul(this.r2));return d._forceRed(this)}})(l,Kx)}(Ko)),Ko.exports}var Jx=Zx();const le=ll(Jx);var jc={},Re={},Ic,ng;function Ns(){if(ng)return Ic;ng=1,Ic=l;function l(e,n){if(!e)throw new Error(n||"Assertion failed")}return l.equal=function(n,a,f){if(n!=a)throw new Error(f||"Assertion failed: "+n+" != "+a)},Ic}var Go={exports:{}},ig;function Fx(){return ig||(ig=1,typeof Object.create=="function"?Go.exports=function(e,n){
84n&&(e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Go.exports=function(e,n){if(n){e.super_=n;var a=function(){};a.prototype=n.prototype,e.prototype=new a,e.prototype.constructor=e}}),Go.exports}var ag;function Xn(){if(ag)return Re;ag=1;var l=Ns(),e=Fx();Re.inherits=e;function n(V,E){return(V.charCodeAt(E)&64512)!==55296||E<0||E+1>=V.length?!1:(V.charCodeAt(E+1)&64512)===56320}function a(V,E){if(Array.isArray(V))return V.slice();if(!V)return[];var o=[];if(typeof V=="string")if(E){if(E==="hex")for(V=V.replace(/[^a-z0-9]+/ig,""),V.length%2!==0&&(V="0"+V),m=0;m<V.length;m+=2)o.push(parseInt(V[m]+V[m+1],16))}else for(var d=0,m=0;m<V.length;m++){var v=V.charCodeAt(m);v<128?o[d++]=v:v<2048?(o[d++]=v>>6|192,o[d++]=v&63|128):n(V,m)?(v=65536+((v&1023)<<10)+(V.charCodeAt(++m)&1023),o[d++]=v>>18|240,o[d++]=v>>12&63|128,o[d++]=v>>6&63|128,o[d++]=v&63|128):(o[d++]=v>>12|224,o[d++]=v>>6&63|128,o[d++]=v&63|128)}else for(m=0;m<V.length;m++)o[m]=V[m]|0;return o}Re.toArray=a;function f(V){for(var E="",o=0;o<V.length;o++)E+=y(V[o].toString(16));return E}Re.toHex=f;function u(V){var E=V>>>24|V>>>8&65280|V<<8&16711680|(V&255)<<24;return E>>>0}Re.htonl=u;function p(V,E){for(var o="",d=0;d<V.length;d++){var m=V[d];E==="little"&&(m=u(m)),o+=w(m.toString(16))}return o}Re.toHex32=p;function y(V){return V.length===1?"0"+V:V}Re.zero2=y;function w(V){return V.length===7?"0"+V:V.length===6?"00"+V:V.length===5?"000"+V:V.length===4?"0000"+V:V.length===3?"00000"+V:V.length===2?"000000"+V:V.length===1?"0000000"+V:V}Re.zero8=w;function _(V,E,o,d){var m=o-E;l(m%4===0);for(var v=new Array(m/4),x=0,R=E;x<v.length;x++,R+=4){var M;d==="big"?M=V[R]<<24|V[R+1]<<16|V[R+2]<<8|V[R+3]:M=V[R+3]<<24|V[R+2]<<16|V[R+1]<<8|V[R],v[x]=M>>>0}return v}Re.join32=_;function N(V,E){for(var o=new Array(V.length*4),d=0,m=0;d<V.length;d++,m+=4){var v=V[d];E==="big"?(o[m]=v>>>24,o[m+1]=v>>>16&255,o[m+2]=v>>>8&255,o[m+3]=v&255):(o[m+3]=v>>>24,o[m+2]=v>>>16&255,o[m+1]=v>>>8&255,o[m]=v&255)}return o}Re.split32=N;function C(V,E){return V>>>E|V<<32-E}Re.rotr32=C;function B(V,E){return V<<E|V>>>32-E}Re.rotl32=B;function H(V,E){return V+E>>>0}Re.sum32=H;function q(V,E,o){return V+E+o>>>0}Re.sum32_3=q;function k(V,E,o,d){return V+E+o+d>>>0}Re.sum32_4=k;function z(V,E,o,d,m){return V+E+o+d+m>>>0}Re.sum32_5=z;function L(V,E,o,d){var m=V[E],v=V[E+1],x=d+v>>>0,R=(x<d?1:0)+o+m;V[E]=R>>>0,V[E+1]=x}Re.sum64=L;function G(V,E,o,d){var m=E+d>>>0,v=(m<E?1:0)+V+o;return v>>>0}Re.sum64_hi=G;function I(V,E,o,d){var m=E+d;return m>>>0}Re.sum64_lo=I;function Q(V,E,o,d,m,v,x,R){var M=0,b=E;b=b+d>>>0,M+=b<E?1:0,b=b+v>>>0,M+=b<v?1:0,b=b+R>>>0,M+=b<R?1:0;var c=V+o+m+x+M;return c>>>0}Re.sum64_4_hi=Q;function W(V,E,o,d,m,v,x,R){var M=E+d+v+R;return M>>>0}Re.sum64_4_lo=W;function lt(V,E,o,d,m,v,x,R,M,b){var c=0,A=E;A=A+d>>>0,c+=A<E?1:0,A=A+v>>>0,c+=A<v?1:0,A=A+R>>>0,c+=A<R?1:0,A=A+b>>>0,c+=A<b?1:0;var K=V+o+m+x+M+c;return K>>>0}Re.sum64_5_hi=lt;function ut(V,E,o,d,m,v,x,R,M,b){var c=E+d+v+R+b;return c>>>0}Re.sum64_5_lo=ut;function ht(V,E,o){var d=E<<32-o|V>>>o;return d>>>0}Re.rotr64_hi=ht;function vt(V,E,o){var d=V<<32-o|E>>>o;return d>>>0}Re.rotr64_lo=vt;function ae(V,E,o){return V>>>o}Re.shr64_hi=ae;function pt(V,E,o){var d=V<<32-o|E>>>o;return d>>>0}return Re.shr64_lo=pt,Re}var Gc={},lg;function Rs(){if(lg)return Gc;lg=1;var l=Xn(),e=Ns();function n(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}return Gc.BlockHash=n,n.prototype.update=function(f,u){if(f=l.toArray(f,u),this.pending?this.pending=this.pending.concat(f):this.pending=f,this.pendingTotal+=f.length,this.pending.length>=this._delta8){f=this.pending;var p=f.length%this._delta8;this.pending=f.slice(f.length-p,f.length),this.pending.length===0&&(this.pending=null),f=l.join32(f,0,f.length-p,this.endian);for(var y=0;y<f.length;y+=this._delta32)this._update(f,y,y+this._delta32)}return this},n.prototype.digest=function(f){return this.update(this._pad()),e(this.pending===null),this._digest(f)},n.prototype._pad=function(){var f=this.pendingTotal,u=this._delta8,p=u-(f+this.padLength)%u,y=new Array(p+this.padLength);y[0]=128;for(var w=1;w<p;w++)y[w]=0;if(f<<=3,this.endian==="big"){for(var _=8;_<this.padLength;_++)y[w++]=0;y[w++]=0,y[w++]=0,y[w++]=0,y[w++]=0,y[w++]=f>>>24&255,y[w++]=f>>>16&255,y[w++]=f>>>8&255,y[w++]=f&255}else for(y[w++]=f&255,y[w++]=f>>>8&255,y[w++]=f>>>16&255,y[w++]=f>>>24&255,y[w++]=0,y[w++]=0,y[w++]=0,y[w++]=0,_=8;_<this.padLength;_++)y[w++]=0;return y},Gc}var ua={},Hn={},sg;function qv(){if(sg)return Hn;sg=1;var l=Xn(),e=l.rotr32;function n(N,C,B,H){if(N===0)return a(C,B,H);if(N===1||N===3)return u(C,B,H);if(N===2)return f(C,B,H)}Hn.ft_1=n;function a(N,C,B){return N&C^~N&B}Hn.ch32=a;function f(N,C,B){return N&C^N&B^C&B}Hn.maj32=f;function u(N,C,B){return N^C^B}Hn.p32=u;function p(N){return e(N,2)^e(N,13)^e(N,22)}Hn.s0_256=p;function y(N){return e(N,6)^e(N,11)^e(N,25)}Hn.s1_256=y;function w(N){return e(N,7)^e(N,18)^N>>>3}Hn.g0_256=w;function _(N){return e(N,17)^e(N,19)^N>>>10}return Hn.g1_256=_,Hn}var Pc,og;function Wx(){if(og)return Pc;og=1;var l=Xn(),e=Rs(),n=qv(),a=l.rotl32,f=l.sum32,u=l.sum32_5,p=n.ft_1,y=e.BlockHash,w=[1518500249,1859775393,2400959708,3395469782];function _(){if(!(this instanceof _))return new _;y.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}return l.inherits(_,y),Pc=_,_.blockSize=512,_.outSize=160,_.hmacStrength=80,_.padLength=64,_.prototype._update=function(C,B){for(var H=this.W,q=0;q<16;q++)H[q]=C[B+q];for(;q<H.length;q++)H[q]=a(H[q-3]^H[q-8]^H[q-14]^H[q-16],1);var k=this.h[0],z=this.h[1],L=this.h[2],G=this.h[3],I=this.h[4];for(q=0;q<H.length;q++){var Q=~~(q/20),W=u(a(k,5),p(Q,z,L,G),I,H[q],w[Q]);I=G,G=L,L=a(z,30),z=k,k=W}this.h[0]=f(this.h[0],k),this.h[1]=f(this.h[1],z),this.h[2]=f(this.h[2],L),this.h[3]=f(this.h[3],G),this.h[4]=f(this.h[4],I)},_.prototype._digest=function(C){return C==="hex"?l.toHex32(this.h,"big"):l.split32(this.h,"big")},Pc}var Qc,ug;function Hv(){if(ug)return Qc;ug=1;var l=Xn(),e=Rs(),n=qv(),a=Ns(),f=l.sum32,u=l.sum32_4,p=l.sum32_5,y=n.ch32,w=n.maj32,_=n.s0_256,N=n.s1_256,C=n.g0_256,B=n.g1_256,H=e.BlockHash,q=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
84734187,3204031479,3329325298];function k(){if(!(this instanceof k))return new k;H.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=q,this.W=new Array(64)}return l.inherits(k,H),Qc=k,k.blockSize=512,k.outSize=256,k.hmacStrength=192,k.padLength=64,k.prototype._update=function(L,G){for(var I=this.W,Q=0;Q<16;Q++)I[Q]=L[G+Q];for(;Q<I.length;Q++)I[Q]=u(B(I[Q-2]),I[Q-7],C(I[Q-15]),I[Q-16]);var W=this.h[0],lt=this.h[1],ut=this.h[2],ht=this.h[3],vt=this.h[4],ae=this.h[5],pt=this.h[6],V=this.h[7];for(a(this.k.length===I.length),Q=0;Q<I.length;Q++){var E=p(V,N(vt),y(vt,ae,pt),this.k[Q],I[Q]),o=f(_(W),w(W,lt,ut));V=pt,pt=ae,ae=vt,vt=f(ht,E),ht=ut,ut=lt,lt=W,W=f(E,o)}this.h[0]=f(this.h[0],W),this.h[1]=f(this.h[1],lt),this.h[2]=f(this.h[2],ut),this.h[3]=f(this.h[3],ht),this.h[4]=f(this.h[4],vt),this.h[5]=f(this.h[5],ae),this.h[6]=f(this.h[6],pt),this.h[7]=f(this.h[7],V)},k.prototype._digest=function(L){return L==="hex"?l.toHex32(this.h,"big"):l.split32(this.h,"big")},Qc}var Yc,fg;function $x(){if(fg)return Yc;fg=1;var l=Xn(),e=Hv();function n(){if(!(this instanceof n))return new n;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}return l.inherits(n,e),Yc=n,n.blockSize=512,n.outSize=224,n.hmacStrength=192,n.padLength=64,n.prototype._digest=function(f){return f==="hex"?l.toHex32(this.h.slice(0,7),"big"):l.split32(this.h.slice(0,7),"big")},Yc}var Xc,cg;function jv(){if(cg)return Xc;cg=1;var l=Xn(),e=Rs(),n=Ns(),a=l.rotr64_hi,f=l.rotr64_lo,u=l.shr64_hi,p=l.shr64_lo,y=l.sum64,w=l.sum64_hi,_=l.sum64_lo,N=l.sum64_4_hi,C=l.sum64_4_lo,B=l.sum64_5_hi,H=l.sum64_5_lo,q=e.BlockHash,k=[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,
841126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function z(){if(!(this instanceof z))return new z;q.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=k,this.W=new Array(160)}l.inherits(z,q),Xc=z,z.blockSize=1024,z.outSize=512,z.hmacStrength=192,z.padLength=128,z.prototype._prepareBlock=function(o,d){for(var m=this.W,v=0;v<32;v++)m[v]=o[d+v];for(;v<m.length;v+=2){var x=pt(m[v-4],m[v-3]),R=V(m[v-4],m[v-3]),M=m[v-14],b=m[v-13],c=vt(m[v-30],m[v-29]),A=ae(m[v-30],m[v-29]),K=m[v-32],S=m[v-31];m[v]=N(x,R,M,b,c,A,K,S),m[v+1]=C(x,R,M,b,c,A,K,S)}},z.prototype._update=function(o,d){this._prepareBlock(o,d);var m=this.W,v=this.h[0],x=this.h[1],R=this.h[2],M=this.h[3],b=this.h[4],c=this.h[5],A=this.h[6],K=this.h[7],S=this.h[8],D=this.h[9],et=this.h[10],Y=this.h[11],rt=this.h[12],yt=this.h[13],ft=this.h[14],ot=this.h[15];n(this.k.length===m.length);for(var de=0;de<m.length;de+=2){var ct=ft,gt=ot,nr=ut(S,D),wt=ht(S,D),Ht=L(S,D,et,Y,rt),vr=G(S,D,et,Y,rt,yt),Ut=this.k[de],Rt=this.k[de+1],Mr=m[de],zt=m[de+1],Ot=B(ct,gt,nr,wt,Ht,vr,Ut,Rt,Mr,zt),ur=H(ct,gt,nr,wt,Ht,vr,Ut,Rt,Mr,zt);ct=W(v,x),gt=lt(v,x),nr=I(v,x,R,M,b),wt=Q(v,x,R,M,b,c);var Tt=w(ct,gt,nr,wt),xt=_(ct,gt,nr,wt);ft=rt,ot=yt,rt=et,yt=Y,et=S,Y=D,S=w(A,K,Ot,ur),D=_(K,K,Ot,ur),A=b,K=c,b=R,c=M,R=v,M=x,v=w(Ot,ur,Tt,xt),x=_(Ot,ur,Tt,xt)}y(this.h,0,v,x),y(this.h,2,R,M),y(this.h,4,b,c),y(this.h,6,A,K),y(this.h,8,S,D),y(this.h,10,et,Y),y(this.h,12,rt,yt),y(this.h,14,ft,ot)},z.prototype._digest=function(o){return o==="hex"?l.toHex32(this.h,"big"):l.split32(this.h,"big")};function L(E,o,d,m,v){var x=E&d^~E&v;return x<0&&(x+=4294967296),x}function G(E,o,d,m,v,x){var R=o&m^~o&x;return R<0&&(R+=4294967296),R}function I(E,o,d,m,v){var x=E&d^E&v^d&v;return x<0&&(x+=4294967296),x}function Q(E,o,d,m,v,x){var R=o&m^o&x^m&x;return R<0&&(R+=4294967296),R}function W(E,o){var d=a(E,o,28),m=a(o,E,2),v=a(o,E,7),x=d^m^v;return x<0&&(x+=4294967296),x}function lt(E,o){var d=f(E,o,28),m=f(o,E,2),v=f(o,E,7),x=d^m^v;return x<0&&(x+=4294967296),x}function ut(E,o){var d=a(E,o,14),m=a(E,o,18),v=a(o,E,9),x=d^m^v;return x<0&&(x+=4294967296),x}function ht(E,o){var d=f(E,o,14),m=f(E,o,18),v=f(o,E,9),x=d^m^v;return x<0&&(x+=4294967296),x}function vt(E,o){var d=a(E,o,1),m=a(E,o,8),v=u(E,o,7),x=d^m^v;return x<0&&(x+=4294967296),x}function ae(E,o){var d=f(E,o,1),m=f(E,o,8),v=p(E,o,7),x=d^m^v;return x<0&&(x+=4294967296),x}function pt(E,o){var d=a(E,o,19),m=a(o,E,29),v=u(E,o,6),x=d^m^v;return x<0&&(x+=4294967296),x}function V(E,o){var d=f(E,o,19),m=f(o,E,29),v=p(E,o,6),x=d^m^v;return x<0&&(x+=4294967296),x}return Xc}var Vc,hg;function tA(){if(hg)return Vc;hg=1;var l=Xn(),e=jv();function n(){if(!(this instanceof n))return new n;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}return l.inherits(n,e),Vc=n,n.blockSize=1024,n.outSize=384,n.hmacStrength=192,n.padLength=128,n.prototype._digest=function(f){return f==="hex"?l.toHex32(this.h.slice(0,12),"big"):l.split32(this.h.slice(0,12),"big")},Vc}var dg;function eA(){return dg||(dg=1,ua.sha1=Wx(),ua.sha224=$x(),ua.sha256=Hv(),ua.sha384=tA(),ua.sha512=jv()),ua}var Kc={},pg;function rA(){if(pg)return Kc;pg=1;var l=Xn(),e=Rs(),n=l.rotl32,a=l.sum32,f=l.sum32_3,u=l.sum32_4,p=e.BlockHash;function y(){if(!(this instanceof y))return new y;p.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}l.inherits(y,p),Kc.ripemd160=y,y.blockSize=512,y.outSize=160,y.hmacStrength=192,y.padLength=64,y.prototype._update=function(z,L){for(var G=this.h[0],I=this.h[1],Q=this.h[2],W=this.h[3],lt=this.h[4],ut=G,ht=I,vt=Q,ae=W,pt=lt,V=0;V<80;V++){var E=a(n(u(G,w(V,I,Q,W),z[C[V]+L],_(V)),H[V]),lt);G=lt,lt=W,W=n(Q,10),Q=I,I=E,E=a(n(u(ut,w(79-V,ht,vt,ae),z[B[V]+L],N(V)),q[V]),pt),ut=pt,pt=ae,ae=n(vt,10),vt=ht,ht=E}E=f(this.h[1],Q,ae),this.h[1]=f(this.h[2],W,pt),this.h[2]=f(this.h[3],lt,ut),this.h[3]=f(this.h[4],G,ht),this.h[4]=f(this.h[0],I,vt),this.h[0]=E},y.prototype._digest=function(z){return z==="hex"?l.toHex32(this.h,"little"):l.split32(this.h,"little")};function w(k,z,L,G){return k<=15?z^L^G:k<=31?z&L|~z&G:k<=47?(z|~L)^G:k<=63?z&G|L&~G:z^(L|~G)}function _(k){return k<=15?0:k<=31?1518500249:k<=47?1859775393:k<=63?2400959708:2840853838}function N(k){return k<=15?1352829926:k<=31?1548603684:k<=47?1836072691:k<=63?2053994217:0}var C=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],B=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],H=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],q=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11];return Kc}var Zc,mg;
84function nA(){if(mg)return Zc;mg=1;var l=Xn(),e=Ns();function n(a,f,u){if(!(this instanceof n))return new n(a,f,u);this.Hash=a,this.blockSize=a.blockSize/8,this.outSize=a.outSize/8,this.inner=null,this.outer=null,this._init(l.toArray(f,u))}return Zc=n,n.prototype._init=function(f){f.length>this.blockSize&&(f=new this.Hash().update(f).digest()),e(f.length<=this.blockSize);for(var u=f.length;u<this.blockSize;u++)f.push(0);for(u=0;u<f.length;u++)f[u]^=54;for(this.inner=new this.Hash().update(f),u=0;u<f.length;u++)f[u]^=106;this.outer=new this.Hash().update(f)},n.prototype.update=function(f,u){return this.inner.update(f,u),this},n.prototype.digest=function(f){return this.outer.update(this.inner.digest()),this.outer.digest(f)},Zc}var gg;function iA(){return gg||(gg=1,function(l){var e=l;e.utils=Xn(),e.common=Rs(),e.sha=eA(),e.ripemd=rA(),e.hmac=nA(),e.sha1=e.sha.sha1,e.sha256=e.sha.sha256,e.sha224=e.sha.sha224,e.sha384=e.sha.sha384,e.sha512=e.sha.sha512,e.ripemd160=e.ripemd.ripemd160}(jc)),jc}var aA=iA();const jn=ll(aA);function ol(l,e,n){return n={path:e,exports:{},require:function(a,f){return lA(a,f??n.path)}},l(n,n.exports),n.exports}function lA(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Rh=Iv;function Iv(l,e){if(!l)throw new Error(e||"Assertion failed")}Iv.equal=function(e,n,a){if(e!=n)throw new Error(a||"Assertion failed: "+e+" != "+n)};var Rn=ol(function(l,e){var n=e;function a(p,y){if(Array.isArray(p))return p.slice();if(!p)return[];var w=[];if(typeof p!="string"){for(var _=0;_<p.length;_++)w[_]=p[_]|0;return w}if(y==="hex"){p=p.replace(/[^a-z0-9]+/ig,""),p.length%2!==0&&(p="0"+p);for(var _=0;_<p.length;_+=2)w.push(parseInt(p[_]+p[_+1],16))}else for(var _=0;_<p.length;_++){var N=p.charCodeAt(_),C=N>>8,B=N&255;C?w.push(C,B):w.push(B)}return w}n.toArray=a;function f(p){return p.length===1?"0"+p:p}n.zero2=f;function u(p){for(var y="",w=0;w<p.length;w++)y+=f(p[w].toString(16));return y}n.toHex=u,n.encode=function(y,w){return w==="hex"?u(y):y}}),Fr=ol(function(l,e){var n=e;n.assert=Rh,n.toArray=Rn.toArray,n.zero2=Rn.zero2,n.toHex=Rn.toHex,n.encode=Rn.encode;function a(w,_,N){var C=new Array(Math.max(w.bitLength(),N)+1),B;for(B=0;B<C.length;B+=1)C[B]=0;var H=1<<_+1,q=w.clone();for(B=0;B<C.length;B++){var k,z=q.andln(H-1);q.isOdd()?(z>(H>>1)-1?k=(H>>1)-z:k=z,q.isubn(k)):k=0,C[B]=k,q.iushrn(1)}return C}n.getNAF=a;function f(w,_){var N=[[],[]];w=w.clone(),_=_.clone();for(var C=0,B=0,H;w.cmpn(-C)>0||_.cmpn(-B)>0;){var q=w.andln(3)+C&3,k=_.andln(3)+B&3;q===3&&(q=-1),k===3&&(k=-1);var z;(q&1)===0?z=0:(H=w.andln(7)+C&7,(H===3||H===5)&&k===2?z=-q:z=q),N[0].push(z);var L;(k&1)===0?L=0:(H=_.andln(7)+B&7,(H===3||H===5)&&q===2?L=-k:L=k),N[1].push(L),2*C===z+1&&(C=1-C),2*B===L+1&&(B=1-B),w.iushrn(1),_.iushrn(1)}return N}n.getJSF=f;function u(w,_,N){var C="_"+_;w.prototype[_]=function(){return this[C]!==void 0?this[C]:this[C]=N.call(this)}}n.cachedProperty=u;function p(w){return typeof w=="string"?n.toArray(w,"hex"):w}n.parseBytes=p;function y(w){return new le(w,"hex","le")}n.intFromLE=y}),iu=Fr.getNAF,sA=Fr.getJSF,au=Fr.assert;function Xi(l,e){this.type=l,this.p=new le(e.p,16),this.red=e.prime?le.red(e.prime):le.mont(this.p),this.zero=new le(0).toRed(this.red),this.one=new le(1).toRed(this.red),this.two=new le(2).toRed(this.red),this.n=e.n&&new le(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var ya=Xi;Xi.prototype.point=function(){throw new Error("Not implemented")};Xi.prototype.validate=function(){throw new Error("Not implemented")};Xi.prototype._fixedNafMul=function(e,n){au(e.precomputed);var a=e._getDoubles(),f=iu(n,1,this._bitLength),u=(1<<a.step+1)-(a.step%2===0?2:1);u/=3;var p=[],y,w;for(y=0;y<f.length;y+=a.step){w=0;for(var _=y+a.step-1;_>=y;_--)w=(w<<1)+f[_];p.push(w)}for(var N=this.jpoint(null,null,null),C=this.jpoint(null,null,null),B=u;B>0;B--){for(y=0;y<p.length;y++)w=p[y],w===B?C=C.mixedAdd(a.points[y]):w===-B&&(C=C.mixedAdd(a.points[y].neg()));N=N.add(C)}return N.toP()};Xi.prototype._wnafMul=function(e,n){var a=4,f=e._getNAFPoints(a);a=f.wnd;for(var u=f.points,p=iu(n,a,this._bitLength),y=this.jpoint(null,null,null),w=p.length-1;w>=0;w--){for(var _=0;w>=0&&p[w]===0;w--)_++;if(w>=0&&_++,y=y.dblp(_),w<0)break;var N=p[w];au(N!==0),e.type==="affine"?N>0?y=y.mixedAdd(u[N-1>>1]):y=y.mixedAdd(u[-N-1>>1].neg()):N>0?y=y.add(u[N-1>>1]):y=y.add(u[-N-1>>1].neg())}return e.type==="affine"?y.toP():y};Xi.prototype._wnafMulAdd=function(e,n,a,f,u){var p=this._wnafT1,y=this._wnafT2,w=this._wnafT3,_=0,N,C,B;for(N=0;N<f;N++){B=n[N];var H=B._getNAFPoints(e);p[N]=H.wnd,y[N]=H.points}for(N=f-1;N>=1;N-=2){var q=N-1,k=N;if(p[q]!==1||p[k]!==1){w[q]=iu(a[q],p[q],this._bitLength),w[k]=iu(a[k],p[k],this._bitLength),_=Math.max(w[q].length,_),_=Math.max(w[k].length,_);continue}var z=[n[q],null,null,n[k]];
84n[q].y.cmp(n[k].y)===0?(z[1]=n[q].add(n[k]),z[2]=n[q].toJ().mixedAdd(n[k].neg())):n[q].y.cmp(n[k].y.redNeg())===0?(z[1]=n[q].toJ().mixedAdd(n[k]),z[2]=n[q].add(n[k].neg())):(z[1]=n[q].toJ().mixedAdd(n[k]),z[2]=n[q].toJ().mixedAdd(n[k].neg()));var L=[-3,-1,-5,-7,0,7,5,1,3],G=sA(a[q],a[k]);for(_=Math.max(G[0].length,_),w[q]=new Array(_),w[k]=new Array(_),C=0;C<_;C++){var I=G[0][C]|0,Q=G[1][C]|0;w[q][C]=L[(I+1)*3+(Q+1)],w[k][C]=0,y[q]=z}}var W=this.jpoint(null,null,null),lt=this._wnafT4;for(N=_;N>=0;N--){for(var ut=0;N>=0;){var ht=!0;for(C=0;C<f;C++)lt[C]=w[C][N]|0,lt[C]!==0&&(ht=!1);if(!ht)break;ut++,N--}if(N>=0&&ut++,W=W.dblp(ut),N<0)break;for(C=0;C<f;C++){var vt=lt[C];vt!==0&&(vt>0?B=y[C][vt-1>>1]:vt<0&&(B=y[C][-vt-1>>1].neg()),B.type==="affine"?W=W.mixedAdd(B):W=W.add(B))}}for(N=0;N<f;N++)y[N]=null;return u?W:W.toP()};function vn(l,e){this.curve=l,this.type=e,this.precomputed=null}Xi.BasePoint=vn;vn.prototype.eq=function(){throw new Error("Not implemented")};vn.prototype.validate=function(){return this.curve.validate(this)};Xi.prototype.decodePoint=function(e,n){e=Fr.toArray(e,n);var a=this.p.byteLength();if((e[0]===4||e[0]===6||e[0]===7)&&e.length-1===2*a){e[0]===6?au(e[e.length-1]%2===0):e[0]===7&&au(e[e.length-1]%2===1);var f=this.point(e.slice(1,1+a),e.slice(1+a,1+2*a));return f}else if((e[0]===2||e[0]===3)&&e.length-1===a)return this.pointFromX(e.slice(1,1+a),e[0]===3);throw new Error("Unknown point format")};vn.prototype.encodeCompressed=function(e){return this.encode(e,!0)};vn.prototype._encode=function(e){var n=this.curve.p.byteLength(),a=this.getX().toArray("be",n);return e?[this.getY().isEven()?2:3].concat(a):[4].concat(a,this.getY().toArray("be",n))};vn.prototype.encode=function(e,n){return Fr.encode(this._encode(n),e)};vn.prototype.precompute=function(e){if(this.precomputed)return this;var n={doubles:null,naf:null,beta:null};return n.naf=this._getNAFPoints(8),n.doubles=this._getDoubles(4,e),n.beta=this._getBeta(),this.precomputed=n,this};vn.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var n=this.precomputed.doubles;return n?n.points.length>=Math.ceil((e.bitLength()+1)/n.step):!1};vn.prototype._getDoubles=function(e,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var a=[this],f=this,u=0;u<n;u+=e){for(var p=0;p<e;p++)f=f.dbl();a.push(f)}return{step:e,points:a}};vn.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var n=[this],a=(1<<e)-1,f=a===1?null:this.dbl(),u=1;u<a;u++)n[u]=n[u-1].add(f);return{wnd:e,points:n}};vn.prototype._getBeta=function(){return null};vn.prototype.dblp=function(e){for(var n=this,a=0;a<e;a++)n=n.dbl();return n};var Ch=ol(function(l){typeof Object.create=="function"?l.exports=function(n,a){a&&(n.super_=a,n.prototype=Object.create(a.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}))}:l.exports=function(n,a){if(a){n.super_=a;var f=function(){};f.prototype=a.prototype,n.prototype=new f,n.prototype.constructor=n}}}),oA=Fr.assert;function yn(l){ya.call(this,"short",l),this.a=new le(l.a,16).toRed(this.red),this.b=new le(l.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(l),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Ch(yn,ya);var uA=yn;yn.prototype._getEndomorphism=function(e){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var n,a;if(e.beta)n=new le(e.beta,16).toRed(this.red);else{var f=this._getEndoRoots(this.p);n=f[0].cmp(f[1])<0?f[0]:f[1],n=n.toRed(this.red)}if(e.lambda)a=new le(e.lambda,16);else{var u=this._getEndoRoots(this.n);this.g.mul(u[0]).x.cmp(this.g.x.redMul(n))===0?a=u[0]:(a=u[1],oA(this.g.mul(a).x.cmp(this.g.x.redMul(n))===0))}var p;return e.basis?p=e.basis.map(function(y){return{a:new le(y.a,16),b:new le(y.b,16)}}):p=this._getEndoBasis(a),{beta:n,lambda:a,basis:p}}};yn.prototype._getEndoRoots=function(e){var n=e===this.p?this.red:le.mont(e),a=new le(2).toRed(n).redInvm(),f=a.redNeg(),u=new le(3).toRed(n).redNeg().redSqrt().redMul(a),p=f.redAdd(u).fromRed(),y=f.redSub(u).fromRed();return[p,y]};yn.prototype._getEndoBasis=function(e){for(var n=this.n.ushrn(Math.floor(this.n.bitLength()/2)),a=e,f=this.n.clone(),u=new le(1),p=new le(0),y=new le(0),w=new le(1),_,N,C,B,H,q,k,z=0,L,G;a.cmpn(0)!==0;){var I=f.div(a);
84L=f.sub(I.mul(a)),G=y.sub(I.mul(u));var Q=w.sub(I.mul(p));if(!C&&L.cmp(n)<0)_=k.neg(),N=u,C=L.neg(),B=G;else if(C&&++z===2)break;k=L,f=a,a=L,y=u,u=G,w=p,p=Q}H=L.neg(),q=G;var W=C.sqr().add(B.sqr()),lt=H.sqr().add(q.sqr());return lt.cmp(W)>=0&&(H=_,q=N),C.negative&&(C=C.neg(),B=B.neg()),H.negative&&(H=H.neg(),q=q.neg()),[{a:C,b:B},{a:H,b:q}]};yn.prototype._endoSplit=function(e){var n=this.endo.basis,a=n[0],f=n[1],u=f.b.mul(e).divRound(this.n),p=a.b.neg().mul(e).divRound(this.n),y=u.mul(a.a),w=p.mul(f.a),_=u.mul(a.b),N=p.mul(f.b),C=e.sub(y).sub(w),B=_.add(N).neg();return{k1:C,k2:B}};yn.prototype.pointFromX=function(e,n){e=new le(e,16),e.red||(e=e.toRed(this.red));var a=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),f=a.redSqrt();if(f.redSqr().redSub(a).cmp(this.zero)!==0)throw new Error("invalid point");var u=f.fromRed().isOdd();return(n&&!u||!n&&u)&&(f=f.redNeg()),this.point(e,f)};yn.prototype.validate=function(e){if(e.inf)return!0;var n=e.x,a=e.y,f=this.a.redMul(n),u=n.redSqr().redMul(n).redIAdd(f).redIAdd(this.b);return a.redSqr().redISub(u).cmpn(0)===0};yn.prototype._endoWnafMulAdd=function(e,n,a){for(var f=this._endoWnafT1,u=this._endoWnafT2,p=0;p<e.length;p++){var y=this._endoSplit(n[p]),w=e[p],_=w._getBeta();y.k1.negative&&(y.k1.ineg(),w=w.neg(!0)),y.k2.negative&&(y.k2.ineg(),_=_.neg(!0)),f[p*2]=w,f[p*2+1]=_,u[p*2]=y.k1,u[p*2+1]=y.k2}for(var N=this._wnafMulAdd(1,f,u,p*2,a),C=0;C<p*2;C++)f[C]=null,u[C]=null;return N};function or(l,e,n,a){ya.BasePoint.call(this,l,"affine"),e===null&&n===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new le(e,16),this.y=new le(n,16),a&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Ch(or,ya.BasePoint);yn.prototype.point=function(e,n,a){return new or(this,e,n,a)};yn.prototype.pointFromJSON=function(e,n){return or.fromJSON(this,e,n)};or.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var n=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var a=this.curve,f=function(u){return a.point(u.x.redMul(a.endo.beta),u.y)};e.beta=n,n.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(f)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(f)}}}return n}};or.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]};or.fromJSON=function(e,n,a){typeof n=="string"&&(n=JSON.parse(n));var f=e.point(n[0],n[1],a);if(!n[2])return f;function u(y){return e.point(y[0],y[1],a)}var p=n[2];return f.precomputed={beta:null,doubles:p.doubles&&{step:p.doubles.step,points:[f].concat(p.doubles.points.map(u))},naf:p.naf&&{wnd:p.naf.wnd,points:[f].concat(p.naf.points.map(u))}},f};or.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"};or.prototype.isInfinity=function(){return this.inf};or.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(this.x.cmp(e.x)===0)return this.curve.point(null,null);var n=this.y.redSub(e.y);n.cmpn(0)!==0&&(n=n.redMul(this.x.redSub(e.x).redInvm()));var a=n.redSqr().redISub(this.x).redISub(e.x),f=n.redMul(this.x.redSub(a)).redISub(this.y);return this.curve.point(a,f)};or.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(e.cmpn(0)===0)return this.curve.point(null,null);var n=this.curve.a,a=this.x.redSqr(),f=e.redInvm(),u=a.redAdd(a).redIAdd(a).redIAdd(n).redMul(f),p=u.redSqr().redISub(this.x.redAdd(this.x)),y=u.redMul(this.x.redSub(p)).redISub(this.y);return this.curve.point(p,y)};or.prototype.getX=function(){return this.x.fromRed()};or.prototype.getY=function(){return this.y.fromRed()};or.prototype.mul=function(e){return e=new le(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)};or.prototype.mulAdd=function(e,n,a){var f=[this,n],u=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(f,u):this.curve._wnafMulAdd(1,f,u,2)};or.prototype.jmulAdd=function(e,n,a){var f=[this,n],u=[e,a];return this.curve.endo?this.curve._endoWnafMulAdd(f,u,!0):this.curve._wnafMulAdd(1,f,u,2,!0)};or.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||this.x.cmp(e.x)===0&&this.y.cmp(e.y)===0)};or.prototype.neg=function(e){if(this.inf)return this;var n=this.curve.point(this.x,this.y.redNeg());
84if(e&&this.precomputed){var a=this.precomputed,f=function(u){return u.neg()};n.precomputed={naf:a.naf&&{wnd:a.naf.wnd,points:a.naf.points.map(f)},doubles:a.doubles&&{step:a.doubles.step,points:a.doubles.points.map(f)}}}return n};or.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e};function gr(l,e,n,a){ya.BasePoint.call(this,l,"jacobian"),e===null&&n===null&&a===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new le(0)):(this.x=new le(e,16),this.y=new le(n,16),this.z=new le(a,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Ch(gr,ya.BasePoint);yn.prototype.jpoint=function(e,n,a){return new gr(this,e,n,a)};gr.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),n=e.redSqr(),a=this.x.redMul(n),f=this.y.redMul(n).redMul(e);return this.curve.point(a,f)};gr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};gr.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var n=e.z.redSqr(),a=this.z.redSqr(),f=this.x.redMul(n),u=e.x.redMul(a),p=this.y.redMul(n.redMul(e.z)),y=e.y.redMul(a.redMul(this.z)),w=f.redSub(u),_=p.redSub(y);if(w.cmpn(0)===0)return _.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var N=w.redSqr(),C=N.redMul(w),B=f.redMul(N),H=_.redSqr().redIAdd(C).redISub(B).redISub(B),q=_.redMul(B.redISub(H)).redISub(p.redMul(C)),k=this.z.redMul(e.z).redMul(w);return this.curve.jpoint(H,q,k)};gr.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var n=this.z.redSqr(),a=this.x,f=e.x.redMul(n),u=this.y,p=e.y.redMul(n).redMul(this.z),y=a.redSub(f),w=u.redSub(p);if(y.cmpn(0)===0)return w.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var _=y.redSqr(),N=_.redMul(y),C=a.redMul(_),B=w.redSqr().redIAdd(N).redISub(C).redISub(C),H=w.redMul(C.redISub(B)).redISub(u.redMul(N)),q=this.z.redMul(y);return this.curve.jpoint(B,H,q)};gr.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var n;if(this.curve.zeroA||this.curve.threeA){var a=this;for(n=0;n<e;n++)a=a.dbl();return a}var f=this.curve.a,u=this.curve.tinv,p=this.x,y=this.y,w=this.z,_=w.redSqr().redSqr(),N=y.redAdd(y);for(n=0;n<e;n++){var C=p.redSqr(),B=N.redSqr(),H=B.redSqr(),q=C.redAdd(C).redIAdd(C).redIAdd(f.redMul(_)),k=p.redMul(B),z=q.redSqr().redISub(k.redAdd(k)),L=k.redISub(z),G=q.redMul(L);G=G.redIAdd(G).redISub(H);var I=N.redMul(w);n+1<e&&(_=_.redMul(H)),p=z,w=I,N=G}return this.curve.jpoint(p,N.redMul(u),w)};gr.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()};gr.prototype._zeroDbl=function(){var e,n,a;if(this.zOne){var f=this.x.redSqr(),u=this.y.redSqr(),p=u.redSqr(),y=this.x.redAdd(u).redSqr().redISub(f).redISub(p);y=y.redIAdd(y);var w=f.redAdd(f).redIAdd(f),_=w.redSqr().redISub(y).redISub(y),N=p.redIAdd(p);N=N.redIAdd(N),N=N.redIAdd(N),e=_,n=w.redMul(y.redISub(_)).redISub(N),a=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),B=this.y.redSqr(),H=B.redSqr(),q=this.x.redAdd(B).redSqr().redISub(C).redISub(H);q=q.redIAdd(q);var k=C.redAdd(C).redIAdd(C),z=k.redSqr(),L=H.redIAdd(H);L=L.redIAdd(L),L=L.redIAdd(L),e=z.redISub(q).redISub(q),n=k.redMul(q.redISub(e)).redISub(L),a=this.y.redMul(this.z),a=a.redIAdd(a)}return this.curve.jpoint(e,n,a)};gr.prototype._threeDbl=function(){var e,n,a;if(this.zOne){var f=this.x.redSqr(),u=this.y.redSqr(),p=u.redSqr(),y=this.x.redAdd(u).redSqr().redISub(f).redISub(p);y=y.redIAdd(y);var w=f.redAdd(f).redIAdd(f).redIAdd(this.curve.a),_=w.redSqr().redISub(y).redISub(y);e=_;var N=p.redIAdd(p);N=N.redIAdd(N),N=N.redIAdd(N),n=w.redMul(y.redISub(_)).redISub(N),a=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),B=this.y.redSqr(),H=this.x.redMul(B),q=this.x.redSub(C).redMul(this.x.redAdd(C));q=q.redAdd(q).redIAdd(q);var k=H.redIAdd(H);k=k.redIAdd(k);var z=k.redAdd(k);e=q.redSqr().redISub(z),a=this.y.redAdd(this.z).redSqr().redISub(B).redISub(C);var L=B.redSqr();L=L.redIAdd(L),L=L.redIAdd(L),L=L.redIAdd(L),n=q.redMul(k.redISub(e)).redISub(L)}return this.curve.jpoint(e,n,a)};gr.prototype._dbl=function(){var e=this.curve.a,n=this.x,a=this.y,f=this.z,u=f.redSqr().redSqr(),p=n.redSqr(),y=a.redSqr(),w=p.redAdd(p).redIAdd(p).redIAdd(e.redMul(u)),_=n.redAdd(n);_=_.redIAdd(_);var N=_.redMul(y),C=w.redSqr().redISub(N.redAdd(N)),B=N.redISub(C),H=y.redSqr();H=H.redIAdd(H),H=H.redIAdd(H),H=H.redIAdd(H);var q=w.redMul(B).redISub(H),k=a.redAdd(a).redMul(f);return this.curve.jpoint(C,q,k)};gr.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),n=this.y.redSqr(),a=this.z.redSqr(),f=n.redSqr(),u=e.redAdd(e).redIAdd(e),p=u.redSqr(),y=this.x.redAdd(n).redSqr().redISub(e).redISub(f);y=y.redIAdd(y),y=y.redAdd(y).redIAdd(y),y=y.redISub(p);var w=y.redSqr(),_=f.redIAdd(f);_=_.redIAdd(_),_=_.redIAdd(_),_=_.redIAdd(_);var N=u.redIAdd(y).redSqr().redISub(p).redISub(w).redISub(_),C=n.redMul(N);C=C.redIAdd(C),C=C.redIAdd(C);var B=this.x.redMul(w).redISub(C);B=B.redIAdd(B),B=B.redIAdd(B);var H=this.y.redMul(N.redMul(_.redISub(N)).redISub(y.redMul(w)));H=H.redIAdd(H),H=H.redIAdd(H),H=H.redIAdd(H);var q=this.z.redAdd(y).redSqr().redISub(a).redISub(w);return this.curve.jpoint(B,H,q)};gr.prototype.mul=function(e,n){return e=new le(e,n),this.curve._wnafMul(this,e)};gr.prototype.eq=function(e){if(e.type==="affine")return this.eq(e.toJ());if(this===e)return!0;var n=this.z.redSqr(),a=e.z.redSqr();if(this.x.redMul(a).redISub(e.x.redMul(n)).cmpn(0)!==0)return!1;var f=n.redMul(this.z),u=a.redMul(e.z);return this.y.redMul(u).redISub(e.y.redMul(f)).cmpn(0)===0};gr.prototype.eqXToP=function(e){var n=this.z.redSqr(),a=e.toRed(this.curve.red).redMul(n);if(this.x.cmp(a)===0)return!0;for(var f=e.clone(),u=this.curve.redN.redMul(n);;){if(f.iadd(this.curve.n),f.cmp(this.curve.p)>=0)return!1;if(a.redIAdd(u),this.x.cmp(a)===0)return!0}};gr.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>
84":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"};gr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Zo=ol(function(l,e){var n=e;n.base=ya,n.short=uA,n.mont=null,n.edwards=null}),Jo=ol(function(l,e){var n=e,a=Fr.assert;function f(y){y.type==="short"?this.curve=new Zo.short(y):y.type==="edwards"?this.curve=new Zo.edwards(y):this.curve=new Zo.mont(y),this.g=this.curve.g,this.n=this.curve.n,this.hash=y.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}n.PresetCurve=f;function u(y,w){Object.defineProperty(n,y,{configurable:!0,enumerable:!0,get:function(){var _=new f(w);return Object.defineProperty(n,y,{configurable:!0,enumerable:!0,value:_}),_}})}u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:jn.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:jn.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:jn.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:jn.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:jn.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:jn.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:jn.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var p;try{p=null.crash()}catch{p=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:jn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
84,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",p]})});function Yi(l){if(!(this instanceof Yi))return new Yi(l);this.hash=l.hash,this.predResist=!!l.predResist,this.outLen=this.hash.outSize,this.minEntropy=l.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Rn.toArray(l.entropy,l.entropyEnc||"hex"),n=Rn.toArray(l.nonce,l.nonceEnc||"hex"),a=Rn.toArray(l.pers,l.persEnc||"hex");Rh(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,a)}var Gv=Yi;Yi.prototype._init=function(e,n,a){var f=e.concat(n).concat(a);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var u=0;u<this.V.length;u++)this.K[u]=0,this.V[u]=1;this._update(f),this._reseed=1,this.reseedInterval=281474976710656};Yi.prototype._hmac=function(){return new jn.hmac(this.hash,this.K)};Yi.prototype._update=function(e){var n=this._hmac().update(this.V).update([0]);e&&(n=n.update(e)),this.K=n.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())};Yi.prototype.reseed=function(e,n,a,f){typeof n!="string"&&(f=a,a=n,n=null),e=Rn.toArray(e,n),a=Rn.toArray(a,f),Rh(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(a||[])),this._reseed=1};Yi.prototype.generate=function(e,n,a,f){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof n!="string"&&(f=a,a=n,n=null),a&&(a=Rn.toArray(a,f||"hex"),this._update(a));for(var u=[];u.length<e;)this.V=this._hmac().update(this.V).digest(),u=u.concat(this.V);var p=u.slice(0,e);return this._update(a),this._reseed++,Rn.encode(p,n)};var ph=Fr.assert;function Er(l,e){this.ec=l,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}var Oh=Er;Er.fromPublic=function(e,n,a){return n instanceof Er?n:new Er(e,{pub:n,pubEnc:a})};Er.fromPrivate=function(e,n,a){return n instanceof Er?n:new Er(e,{priv:n,privEnc:a})};Er.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}};Er.prototype.getPublic=function(e,n){return typeof e=="string"&&(n=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,e):this.pub};Er.prototype.getPrivate=function(e){return e==="hex"?this.priv.toString(16,2):this.priv};Er.prototype._importPrivate=function(e,n){this.priv=new le(e,n||16),this.priv=this.priv.umod(this.ec.curve.n)};Er.prototype._importPublic=function(e,n){if(e.x||e.y){this.ec.curve.type==="mont"?ph(e.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&ph(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,n)};Er.prototype.derive=function(e){return e.validate()||ph(e.validate(),"public point not validated"),e.mul(this.priv).getX()};Er.prototype.sign=function(e,n,a){return this.ec.sign(e,this,n,a)};Er.prototype.verify=function(e,n,a){return this.ec.verify(e,n,this,void 0,a)};Er.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var fA=Fr.assert;function bu(l,e){if(l instanceof bu)return l;this._importDER(l,e)||(fA(l.r&&l.s,"Signature without r or s"),this.r=new le(l.r,16),this.s=new le(l.s,16),l.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=l.recoveryParam)}var wu=bu;function cA(){this.place=0}function Jc(l,e){var n=l[e.place++];if(!(n&128))return n;var a=n&15;if(a===0||a>4||l[e.place]===0)return!1;for(var f=0,u=0,p=e.place;u<a;u++,p++)f<<=8,f|=l[p],f>>>=0;return f<=127?!1:(e.place=p,f)}function vg(l){for(var e=0,n=l.length-1;!l[e]&&!(l[e+1]&128)&&e<n;)e++;return e===0?l:l.slice(e)}bu.prototype._importDER=function(e,n){e=Fr.toArray(e,n);var a=new cA;if(e[a.place++]!==48)return!1;var f=Jc(e,a);if(f===!1||f+a.place!==e.length||e[a.place++]!==2)return!1;var u=Jc(e,a);if(u===!1||(e[a.place]&128)!==0)return!1;var p=e.slice(a.place,u+a.place);if(a.place+=u,e[a.place++]!==2)return!1;var y=Jc(e,a);if(y===!1||e.length!==y+a.place||(e[a.place]&128)!==0)return!1;var w=e.slice(a.place,y+a.place);if(p[0]===0)if(p[1]&128)p=p.slice(1);else return!1;if(w[0]===0)if(w[1]&128)w=w.slice(1);else return!1;return this.r=new le(p),this.s=new le(w),this.recoveryParam=null,!0};function Fc(l,e){if(e<128){l.push(e);return}var n=1+(Math.log(e)/Math.LN2>>>3);for(l.push(n|128);--n;)l.push(e>>>(n<<3)&255);l.push(e)}bu.prototype.toDER=function(e){var n=this.r.toArray(),a=this.s.toArray();for(n[0]&128&&(n=[0].concat(n)),a[0]&128&&(a=[0].concat(a)),n=vg(n),a=vg(a);!a[0]&&!(a[1]&128);)a=a.slice(1);var f=[2];Fc(f,n.length),f=f.concat(n),f.push(2),Fc(f,a.length);var u=f.concat(a),p=[48];return Fc(p,u.length),p=p.concat(u),Fr.encode(p,e)};var hA=function(){throw new Error("unsupported")},fa=Fr.assert;function gn(l){if(!(this instanceof gn))return new gn(l);typeof l=="string"&&(fa(Object.prototype.hasOwnProperty.call(Jo,l),"Unknown curve "+l),l=Jo[l]),l instanceof Jo.PresetCurve&&(l={curve:l}),this.curve=l.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=l.curve.g,this.g.precompute(l.curve.n.bitLength()+1),this.hash=l.hash||l.curve.hash}var dA=gn;gn.prototype.keyPair=function(e){return new Oh(this,e)};gn.prototype.keyFromPrivate=function(e,n){return Oh.fromPrivate(this,e,n)};gn.prototype.keyFromPublic=function(e,n){return Oh.fromPublic(this,e,n)};gn.prototype.genKeyPair=function(e){e||(e={});for(var n=new Gv({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entro
84py:e.entropy||hA(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),a=this.n.byteLength(),f=this.n.sub(new le(2));;){var u=new le(n.generate(a));if(!(u.cmp(f)>0))return u.iaddn(1),this.keyFromPrivate(u)}};gn.prototype._truncateToN=function(e,n,a){var f;if(le.isBN(e)||typeof e=="number")e=new le(e,16),f=e.byteLength();else if(typeof e=="object")f=e.length,e=new le(e,16);else{var u=e.toString();f=u.length+1>>>1,e=new le(u,16)}typeof a!="number"&&(a=f*8);var p=a-this.n.bitLength();return p>0&&(e=e.ushrn(p)),!n&&e.cmp(this.n)>=0?e.sub(this.n):e};gn.prototype.sign=function(e,n,a,f){if(typeof a=="object"&&(f=a,a=null),f||(f={}),typeof e!="string"&&typeof e!="number"&&!le.isBN(e)){fa(typeof e=="object"&&e&&typeof e.length=="number","Expected message to be an array-like, a hex string, or a BN instance"),fa(e.length>>>0===e.length);for(var u=0;u<e.length;u++)fa((e[u]&255)===e[u])}n=this.keyFromPrivate(n,a),e=this._truncateToN(e,!1,f.msgBitLength),fa(!e.isNeg(),"Can not sign a negative message");var p=this.n.byteLength(),y=n.getPrivate().toArray("be",p),w=e.toArray("be",p);fa(new le(w).eq(e),"Can not sign message");for(var _=new Gv({hash:this.hash,entropy:y,nonce:w,pers:f.pers,persEnc:f.persEnc||"utf8"}),N=this.n.sub(new le(1)),C=0;;C++){var B=f.k?f.k(C):new le(_.generate(this.n.byteLength()));if(B=this._truncateToN(B,!0),!(B.cmpn(1)<=0||B.cmp(N)>=0)){var H=this.g.mul(B);if(!H.isInfinity()){var q=H.getX(),k=q.umod(this.n);if(k.cmpn(0)!==0){var z=B.invm(this.n).mul(k.mul(n.getPrivate()).iadd(e));if(z=z.umod(this.n),z.cmpn(0)!==0){var L=(H.getY().isOdd()?1:0)|(q.cmp(k)!==0?2:0);return f.canonical&&z.cmp(this.nh)>0&&(z=this.n.sub(z),L^=1),new wu({r:k,s:z,recoveryParam:L})}}}}}};gn.prototype.verify=function(e,n,a,f,u){u||(u={}),e=this._truncateToN(e,!1,u.msgBitLength),a=this.keyFromPublic(a,f),n=new wu(n,"hex");var p=n.r,y=n.s;if(p.cmpn(1)<0||p.cmp(this.n)>=0||y.cmpn(1)<0||y.cmp(this.n)>=0)return!1;var w=y.invm(this.n),_=w.mul(e).umod(this.n),N=w.mul(p).umod(this.n),C;return this.curve._maxwellTrick?(C=this.g.jmulAdd(_,a.getPublic(),N),C.isInfinity()?!1:C.eqXToP(p)):(C=this.g.mulAdd(_,a.getPublic(),N),C.isInfinity()?!1:C.getX().umod(this.n).cmp(p)===0)};gn.prototype.recoverPubKey=function(l,e,n,a){fa((3&n)===n,"The recovery param is more than two bits"),e=new wu(e,a);var f=this.n,u=new le(l),p=e.r,y=e.s,w=n&1,_=n>>1;if(p.cmp(this.curve.p.umod(this.curve.n))>=0&&_)throw new Error("Unable to find sencond key candinate");_?p=this.curve.pointFromX(p.add(this.curve.n),w):p=this.curve.pointFromX(p,w);var N=e.r.invm(f),C=f.sub(u).mul(N).umod(f),B=y.mul(N).umod(f);return this.g.mulAdd(C,p,B)};gn.prototype.getKeyRecoveryParam=function(l,e,n,a){if(e=new wu(e,a),e.recoveryParam!==null)return e.recoveryParam;for(var f=0;f<4;f++){var u;try{u=this.recoverPubKey(l,e,f)}catch{continue}if(u.eq(n))return f}throw new Error("Unable to find valid recovery factor")};var pA=ol(function(l,e){var n=e;n.version="6.6.1",n.utils=Fr,n.rand=function(){throw new Error("unsupported")},n.curve=Zo,n.curves=Jo,n.ec=dA,n.eddsa=null}),mA=pA.ec;const gA="signing-key/5.8.0",mh=new F(gA);let Wc=null;function Ii(){return Wc||(Wc=new mA("secp256k1")),Wc}class vA{constructor(e){dt(this,"curve","secp256k1"),dt(this,"privateKey",St(e)),da(this.privateKey)!==32&&mh.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const n=Ii().keyFromPrivate(Kt(this.privateKey));dt(this,"publicKey","0x"+n.getPublic(!1,"hex")),dt(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),dt(this,"_isSigningKey",!0)}_addPoint(e){const n=Ii().keyFromPublic(Kt(this.publicKey)),a=Ii().keyFromPublic(Kt(e));return"0x"+n.pub.add(a.pub).encodeCompressed("hex")}signDigest(e){const n=Ii().keyFromPrivate(Kt(this.privateKey)),a=Kt(e);a.length!==32&&mh.throwArgumentError("bad digest length","digest",e);const f=n.sign(a,{canonical:!0});return mu({recoveryParam:f.recoveryParam,r:Ie("0x"+f.r.toString(16),32),s:Ie("0x"+f.s.toString(16),32)})}computeSharedSecret(e){const n=Ii().keyFromPrivate(Kt(this.privateKey)),a=Ii().keyFromPublic(Kt(Pv(e)));return Ie("0x"+n.derive(a.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function yA(l,e){const n=mu(e),a={r:Kt(n.r),s:Kt(n.s)};return"0x"+Ii().recoverPubKey(Kt(l),a,n.recoveryParam).encode("hex",!1)}function Pv(l,e){const n=Kt(l);return n.length===32?new vA(n).publicKey:n.length===33?"0x"+Ii().keyFromPublic(n).getPublic(!1,"hex"):n.length===65?St(n):mh.throwArgumentError("invalid public or private key","key","[REDACTED]")}const bA="transactions/5.8.0",vi=new F(bA);var yg;(function(l){l[l.legacy=0]="legacy",l[l.eip2930=1]="eip2930",l[l.eip1559=2]="eip1559"})(yg||(yg={}));function Bh(l){return l==="0x"?null:mr(l)}function _r(l){return l==="0x"?Av:mt.from(l)}function wA(l){const e=Pv(l);return mr(Ar(er(Ar(e,1)),12))}function Qv(l,e){return wA(yA(Kt(l),e))}function Zr(l,e){const n=al(mt.from(l).toHexString());return n.length>32&&vi.throwArgumentError("invalid length for "+e,"transaction:"+e,l),n}function $c(l,e){return{address:mr(l),storageKeys:(e||[]).map((n,a)=>(da(n)!==32&&vi.throwArgumentError("invalid access list storageKey",`accessList[${l}:${a}]`,n),n.toLowerCase()))}}function ul(l){if(Array.isArray(l))return l.map((n,a)=>Array.isArray(n)?(n.length>2&&vi.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${a}]`,n),$c(n[0],n[1])):$c(n.address,n.storageKeys));const e=Object.keys(l).map(n=>{const a=l[n].reduce((f,u)=>(f[u]=!0,f),{});return $c(n,Object.keys(a).sort())});return e.sort((n,a)=>n.address.localeCompare(a.address)),e}function Yv(l){return ul(l).map(e=>[e.address,e.storageKeys])}function xA(l,e){if(l.gasPrice!=null){const a=mt.from(l.gasPrice),f=mt.from(l.maxFeePerGas||0);a.eq(f)||vi.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:a,maxFeePerGas:f})}const n=[Zr(l.chainId||0,"chainId"),Zr(l.nonce||0,"nonce"),Zr(l.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Zr(l.maxFeePerGas||0,"maxFeePerGas"),Zr(l.gasLim
84it||0,"gasLimit"),l.to!=null?mr(l.to):"0x",Zr(l.value||0,"value"),l.data||"0x",Yv(l.accessList||[])];if(e){const a=mu(e);n.push(Zr(a.recoveryParam,"recoveryParam")),n.push(al(a.r)),n.push(al(a.s))}return qr(["0x02",gu(n)])}function AA(l,e){const n=[Zr(l.chainId||0,"chainId"),Zr(l.nonce||0,"nonce"),Zr(l.gasPrice||0,"gasPrice"),Zr(l.gasLimit||0,"gasLimit"),l.to!=null?mr(l.to):"0x",Zr(l.value||0,"value"),l.data||"0x",Yv(l.accessList||[])];if(e){const a=mu(e);n.push(Zr(a.recoveryParam,"recoveryParam")),n.push(al(a.r)),n.push(al(a.s))}return qr(["0x01",gu(n)])}function Xv(l,e,n){try{const a=_r(e[0]).toNumber();if(a!==0&&a!==1)throw new Error("bad recid");l.v=a}catch{vi.throwArgumentError("invalid v for transaction type: 1","v",e[0])}l.r=Ie(e[1],32),l.s=Ie(e[2],32);try{const a=er(n(l));l.from=Qv(a,{r:l.r,s:l.s,recoveryParam:l.v})}catch{}}function _A(l){const e=Sh(l.slice(1));e.length!==9&&e.length!==12&&vi.throwArgumentError("invalid component count for transaction type: 2","payload",St(l));const n=_r(e[2]),a=_r(e[3]),f={type:2,chainId:_r(e[0]).toNumber(),nonce:_r(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:a,gasPrice:null,gasLimit:_r(e[4]),to:Bh(e[5]),value:_r(e[6]),data:e[7],accessList:ul(e[8])};return e.length===9||(f.hash=er(l),Xv(f,e.slice(9),xA)),f}function EA(l){const e=Sh(l.slice(1));e.length!==8&&e.length!==11&&vi.throwArgumentError("invalid component count for transaction type: 1","payload",St(l));const n={type:1,chainId:_r(e[0]).toNumber(),nonce:_r(e[1]).toNumber(),gasPrice:_r(e[2]),gasLimit:_r(e[3]),to:Bh(e[4]),value:_r(e[5]),data:e[6],accessList:ul(e[7])};return e.length===8||(n.hash=er(l),Xv(n,e.slice(8),AA)),n}function MA(l){const e=Sh(l);e.length!==9&&e.length!==6&&vi.throwArgumentError("invalid raw transaction","rawTransaction",l);const n={nonce:_r(e[0]).toNumber(),gasPrice:_r(e[1]),gasLimit:_r(e[2]),to:Bh(e[3]),value:_r(e[4]),data:e[5],chainId:0};if(e.length===6)return n;try{n.v=mt.from(e[6]).toNumber()}catch{return n}if(n.r=Ie(e[7],32),n.s=Ie(e[8],32),mt.from(n.r).isZero()&&mt.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let a=n.v-27;const f=e.slice(0,6);n.chainId!==0&&(f.push(St(n.chainId)),f.push("0x"),f.push("0x"),a-=n.chainId*2+8);const u=er(gu(f));try{n.from=Qv(u,{r:St(n.r),s:St(n.s),recoveryParam:a})}catch{}n.hash=er(l)}return n.type=null,n}function SA(l){const e=Kt(l);if(e[0]>127)return MA(e);switch(e[0]){case 1:return EA(e);case 2:return _A(e)}return vi.throwError(`unsupported transaction type: ${e[0]}`,F.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const TA="contracts/5.8.0";var ma=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const Qe=new F(TA);function lu(l,e){return ma(this,void 0,void 0,function*(){const n=yield e;typeof n!="string"&&Qe.throwArgumentError("invalid address or ENS name","name",n);try{return mr(n)}catch{}l||Qe.throwError("a provider or signer is needed to resolve ENS names",F.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const a=yield l.resolveName(n);return a==null&&Qe.throwArgumentError("resolver or addr is not configured for ENS name","name",n),a})}function Fo(l,e,n){return ma(this,void 0,void 0,function*(){return Array.isArray(n)?yield Promise.all(n.map((a,f)=>Fo(l,Array.isArray(e)?e[f]:e[a.name],a))):n.type==="address"?yield lu(l,e):n.type==="tuple"?yield Fo(l,e,n.components):n.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(a=>Fo(l,a,n.arrayChildren))):Promise.reject(Qe.makeError("invalid value for array",F.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function xu(l,e,n){return ma(this,void 0,void 0,function*(){let a={};n.length===e.inputs.length+1&&typeof n[n.length-1]=="object"&&(a=rr(n.pop())),Qe.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),l.signer?a.from?a.from=Ke({override:lu(l.signer,a.from),signer:l.signer.getAddress()}).then(_=>ma(this,void 0,void 0,function*(){return mr(_.signer)!==_.override&&Qe.throwError("Contract with a Signer cannot override from",F.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),_.override})):a.from=l.signer.getAddress():a.from&&(a.from=lu(l.provider,a.from));const f=yield Ke({args:Fo(l.signer||l.provider,n,e.inputs),address:l.resolvedAddress,overrides:Ke(a)||{}}),u=l.interface.encodeFunctionData(e,f.args),p={data:u,to:f.address},y=f.overrides;if(y.nonce!=null&&(p.nonce=mt.from(y.nonce).toNumber()),y.gasLimit!=null&&(p.gasLimit=mt.from(y.gasLimit)),y.gasPrice!=null&&(p.gasPrice=mt.from(y.gasPrice)),y.maxFeePerGas!=null&&(p.maxFeePerGas=mt.from(y.maxFeePerGas)),y.maxPriorityFeePerGas!=null&&(p.maxPriorityFeePerGas=mt.from(y.maxPriorityFeePerGas)),y.from!=null&&(p.from=y.from),y.type!=null&&(p.type=y.type),y.accessList!=null&&(p.accessList=ul(y.accessList)),p.gasLimit==null&&e.gas!=null){let _=21e3;const N=Kt(u);for(let C=0;C<N.length;C++)_+=4,N[C]&&(_+=64);p.gasLimit=mt.from(e.gas).add(_)}if(y.value){const _=mt.from(y.value);
84!_.isZero()&&!e.payable&&Qe.throwError("non-payable method cannot override value",F.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:a.value}),p.value=_}y.customData&&(p.customData=rr(y.customData)),y.ccipReadEnabled&&(p.ccipReadEnabled=!!y.ccipReadEnabled),delete a.nonce,delete a.gasLimit,delete a.gasPrice,delete a.from,delete a.value,delete a.type,delete a.accessList,delete a.maxFeePerGas,delete a.maxPriorityFeePerGas,delete a.customData,delete a.ccipReadEnabled;const w=Object.keys(a).filter(_=>a[_]!=null);return w.length&&Qe.throwError(`cannot override ${w.map(_=>JSON.stringify(_)).join(",")}`,F.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:w}),p})}function NA(l,e){return function(...n){return xu(l,e,n)}}function RA(l,e){const n=l.signer||l.provider;return function(...a){return ma(this,void 0,void 0,function*(){n||Qe.throwError("estimate require a provider or signer",F.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const f=yield xu(l,e,a);return yield n.estimateGas(f)})}}function CA(l,e){const n=e.wait.bind(e);e.wait=a=>n(a).then(f=>(f.events=f.logs.map(u=>{let p=mi(u),y=null;try{y=l.interface.parseLog(u)}catch{}return y&&(p.args=y.args,p.decode=(w,_)=>l.interface.decodeEventLog(y.eventFragment,w,_),p.event=y.name,p.eventSignature=y.signature),p.removeListener=()=>l.provider,p.getBlock=()=>l.provider.getBlock(f.blockHash),p.getTransaction=()=>l.provider.getTransaction(f.transactionHash),p.getTransactionReceipt=()=>Promise.resolve(f),p}),f))}function Vv(l,e,n){const a=l.signer||l.provider;return function(...f){return ma(this,void 0,void 0,function*(){let u;if(f.length===e.inputs.length+1&&typeof f[f.length-1]=="object"){const w=rr(f.pop());w.blockTag!=null&&(u=yield w.blockTag),delete w.blockTag,f.push(w)}l.deployTransaction!=null&&(yield l._deployed(u));const p=yield xu(l,e,f),y=yield a.call(p,u);try{let w=l.interface.decodeFunctionResult(e,y);return n&&e.outputs.length===1&&(w=w[0]),w}catch(w){throw w.code===F.errors.CALL_EXCEPTION&&(w.address=l.address,w.args=f,w.transaction=p),w}})}}function OA(l,e){return function(...n){return ma(this,void 0,void 0,function*(){l.signer||Qe.throwError("sending a transaction requires a signer",F.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),l.deployTransaction!=null&&(yield l._deployed());const a=yield xu(l,e,n),f=yield l.signer.sendTransaction(a);return CA(l,f),f})}}function bg(l,e,n){return e.constant?Vv(l,e,n):OA(l,e)}function Kv(l){return l.address&&(l.topics==null||l.topics.length===0)?"*":(l.address||"*")+"@"+(l.topics?l.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class ys{constructor(e,n){dt(this,"tag",e),dt(this,"filter",n),this._listeners=[]}addListener(e,n){this._listeners.push({listener:e,once:n})}removeListener(e){let n=!1;this._listeners=this._listeners.filter(a=>n||a.listener!==e?!0:(n=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const n=this.listenerCount();return this._listeners=this._listeners.filter(a=>{const f=e.slice();return setTimeout(()=>{a.listener.apply(this,f)},0),!a.once}),n}prepareEvent(e){}getEmit(e){return[e]}}class BA extends ys{constructor(){super("error",null)}}class wg extends ys{constructor(e,n,a,f){const u={address:e};let p=n.getEventTopic(a);f?(p!==f[0]&&Qe.throwArgumentError("topic mismatch","topics",f),u.topics=f.slice()):u.topics=[p],super(Kv(u),u),dt(this,"address",e),dt(this,"interface",n),dt(this,"fragment",a)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(n,a)=>this.interface.decodeEventLog(this.fragment,n,a);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}getEmit(e){const n=Tw(e.args);if(n.length)throw n[0].error;const a=(e.args||[]).slice();return a.push(e),a}}class xg extends ys{constructor(e,n){super("*",{address:e}),dt(this,"address",e),dt(this,"interface",n)}prepareEvent(e){super.prepareEvent(e);try{const n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=(a,f)=>this.interface.decodeEventLog(n.eventFragment,a,f),e.args=n.args}catch{}}}
84class kA{constructor(e,n,a){dt(this,"interface",Qn(new.target,"getInterface")(n)),a==null?(dt(this,"provider",null),dt(this,"signer",null)):Ts.isSigner(a)?(dt(this,"provider",a.provider||null),dt(this,"signer",a)):yu.isProvider(a)?(dt(this,"provider",a),dt(this,"signer",null)):Qe.throwArgumentError("invalid signer or provider","signerOrProvider",a),dt(this,"callStatic",{}),dt(this,"estimateGas",{}),dt(this,"functions",{}),dt(this,"populateTransaction",{}),dt(this,"filters",{});{const p={};Object.keys(this.interface.events).forEach(y=>{const w=this.interface.events[y];dt(this.filters,y,(..._)=>({address:this.address,topics:this.interface.encodeFilterTopics(w,_)})),p[w.name]||(p[w.name]=[]),p[w.name].push(y)}),Object.keys(p).forEach(y=>{const w=p[y];w.length===1?dt(this.filters,y,this.filters[w[0]]):Qe.warn(`Duplicate definition of ${y} (${w.join(", ")})`)})}if(dt(this,"_runningEvents",{}),dt(this,"_wrappedEmits",{}),e==null&&Qe.throwArgumentError("invalid contract address or ENS name","addressOrName",e),dt(this,"address",e),this.provider)dt(this,"resolvedAddress",lu(this.provider,e));else try{dt(this,"resolvedAddress",Promise.resolve(mr(e)))}catch{Qe.throwError("provider is required to use ENS name as contract address",F.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(p=>{});const f={},u={};Object.keys(this.interface.functions).forEach(p=>{const y=this.interface.functions[p];if(u[p]){Qe.warn(`Duplicate ABI entry for ${JSON.stringify(p)}`);return}u[p]=!0;{const w=y.name;f[`%${w}`]||(f[`%${w}`]=[]),f[`%${w}`].push(p)}this[p]==null&&dt(this,p,bg(this,y,!0)),this.functions[p]==null&&dt(this.functions,p,bg(this,y,!1)),this.callStatic[p]==null&&dt(this.callStatic,p,Vv(this,y,!0)),this.populateTransaction[p]==null&&dt(this.populateTransaction,p,NA(this,y)),this.estimateGas[p]==null&&dt(this.estimateGas,p,RA(this,y))}),Object.keys(f).forEach(p=>{const y=f[p];if(y.length>1)return;p=p.substring(1);const w=y[0];try{this[p]==null&&dt(this,p,this[w])}catch{}this.functions[p]==null&&dt(this.functions,p,this.functions[w]),this.callStatic[p]==null&&dt(this.callStatic,p,this.callStatic[w]),this.populateTransaction[p]==null&&dt(this.populateTransaction,p,this.populateTransaction[w]),this.estimateGas[p]==null&&dt(this.estimateGas,p,this.estimateGas[w])})}static getContractAddress(e){return yv(e)}static getInterface(e){return eg.isInterface(e)?e:new eg(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then(()=>this):this._deployedPromise=this.provider.getCode(this.address,e).then(n=>(n==="0x"&&Qe.throwError("contract not deployed",F.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Qe.throwError("sending a transactions require a signer",F.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const n=rr(e||{});return["from","to"].forEach(function(a){n[a]!=null&&Qe.throwError("cannot override "+a,F.errors.UNSUPPORTED_OPERATION,{operation:a})}),n.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(n))}connect(e){typeof e=="string"&&(e=new Nh(e,this.provider));const n=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&dt(n,"deployTransaction",this.deployTransaction),n}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return dh.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if(typeof e=="string"){if(e==="error")return this._normalizeRunningEvent(new BA);if(e==="event")return this._normalizeRunningEvent(new ys("event",null));if(e==="*")return this._normalizeRunningEvent(new xg(this.address,this.interface));const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new wg(this.address,this.interface,n))}if(e.topics&&e.topics.length>0){try{const a=e.topics[0];if(typeof a!="string")throw new Error("invalid topic");const f=this.interface.getEvent(a);return this._normalizeRunningEvent(new wg(this.address,this.interface,f,e.topics))}catch{}const n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new ys(Kv(n),n))}return this._normalizeRunningEvent(new xg(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const n=this._wrappedEmits[e.tag];n&&e.filter&&(this.provider.off(e.filter,n),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,n,a){const f=mi(n);return f.removeListener=()=>{a&&(e.removeListener(a),this._checkRunningEvents(e))},f.getBlock=()=>this.provider.getBlock(n.blockHash),f.getTransaction=()=>this.provider.getTransaction(n.transactionHash),f.getTransactionReceipt=()=>this.provider.getTransactionReceipt(n.transactionHash),e.prepareEvent(f),f}_addEventListener(e,n,a){if(this.provider||Qe.throwError("events require a provider or a signer with a provider",F.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(n,a),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const f=u=>{let p=this._wrapEvent(e,u,n);if(p.decodeError==null)try{const y=e.getEmit(p);
84this.emit(e.filter,...y)}catch(y){p.decodeError=y.error}e.filter!=null&&this.emit("event",p),p.decodeError!=null&&this.emit("error",p.decodeError,p)};this._wrappedEmits[e.tag]=f,e.filter!=null&&this.provider.on(e.filter,f)}}queryFilter(e,n,a){const f=this._getRunningEvent(e),u=rr(f.filter);return typeof n=="string"&&_e(n,32)?(a!=null&&Qe.throwArgumentError("cannot specify toBlock with blockhash","toBlock",a),u.blockHash=n):(u.fromBlock=n??0,u.toBlock=a??"latest"),this.provider.getLogs(u).then(p=>p.map(y=>this._wrapEvent(f,y,null)))}on(e,n){return this._addEventListener(this._getRunningEvent(e),n,!1),this}once(e,n){return this._addEventListener(this._getRunningEvent(e),n,!0),this}emit(e,...n){if(!this.provider)return!1;const a=this._getRunningEvent(e),f=a.run(n)>0;return this._checkRunningEvents(a),f}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((n,a)=>n+this._runningEvents[a].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const n=[];for(let a in this._runningEvents)this._runningEvents[a].listeners().forEach(f=>{n.push(f)});return n}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const a in this._runningEvents){const f=this._runningEvents[a];f.removeAllListeners(),this._checkRunningEvents(f)}return this}const n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}off(e,n){if(!this.provider)return this;const a=this._getRunningEvent(e);return a.removeListener(n),this._checkRunningEvents(a),this}removeListener(e,n){return this.off(e,n)}}class DA extends kA{}class Zv{constructor(e){dt(this,"alphabet",e),dt(this,"base",e.length),dt(this,"_alphabetMap",{}),dt(this,"_leader",e.charAt(0));for(let n=0;n<e.length;n++)this._alphabetMap[e.charAt(n)]=n}encode(e){let n=Kt(e);if(n.length===0)return"";let a=[0];for(let u=0;u<n.length;++u){let p=n[u];for(let y=0;y<a.length;++y)p+=a[y]<<8,a[y]=p%this.base,p=p/this.base|0;for(;p>0;)a.push(p%this.base),p=p/this.base|0}let f="";for(let u=0;n[u]===0&&u<n.length-1;++u)f+=this._leader;for(let u=a.length-1;u>=0;--u)f+=this.alphabet[a[u]];return f}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let n=[];if(e.length===0)return new Uint8Array(n);n.push(0);for(let a=0;a<e.length;a++){let f=this._alphabetMap[e[a]];if(f===void 0)throw new Error("Non-base"+this.base+" character");let u=f;for(let p=0;p<n.length;++p)u+=n[p]*this.base,n[p]=u&255,u>>=8;for(;u>0;)n.push(u&255),u>>=8}for(let a=0;e[a]===this._leader&&a<e.length-1;++a)n.push(0);return Kt(new Uint8Array(n.reverse()))}}new Zv("abcdefghijklmnopqrstuvwxyz234567");const gh=new Zv("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function Ag(l){return"0x"+jn.sha256().update(Kt(l)).digest("hex")}const UA="networks/5.8.0",_g=new F(UA);function zA(l){return l&&typeof l.renetwork=="function"}function Nn(l){const e=function(n,a){a==null&&(a={});const f=[];if(n.InfuraProvider&&a.infura!=="-")try{f.push(new n.InfuraProvider(l,a.infura))}catch{}if(n.EtherscanProvider&&a.etherscan!=="-")try{f.push(new n.EtherscanProvider(l,a.etherscan))}catch{}if(n.AlchemyProvider&&a.alchemy!=="-")try{f.push(new n.AlchemyProvider(l,a.alchemy))}catch{}if(n.PocketProvider&&a.pocket!=="-"){const u=["goerli","ropsten","rinkeby","sepolia"];try{const p=new n.PocketProvider(l,a.pocket);p.network&&u.indexOf(p.network.name)===-1&&f.push(p)}catch{}}if(n.CloudflareProvider&&a.cloudflare!=="-")try{f.push(new n.CloudflareProvider(l))}catch{}if(n.AnkrProvider&&a.ankr!=="-")try{const u=["ropsten"],p=new n.AnkrProvider(l,a.ankr);p.network&&u.indexOf(p.network.name)===-1&&f.push(p)}catch{}if(n.QuickNodeProvider&&a.quicknode!=="-")try{f.push(new n.QuickNodeProvider(l,a.quicknode))}catch{}if(f.length===0)return null;if(n.FallbackProvider){let u=1;return a.quorum!=null?u=a.quorum:l==="homestead"&&(u=2),new n.FallbackProvider(f,u)}return f[0]};return e.renetwork=function(n){return Nn(n)},e}function su(l,e){const n=function(a,f){return a.JsonRpcProvider?new a.JsonRpcProvider(l,e):null};return n.renetwork=function(a){return su(l,a)},n}const Eg={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Nn("homestead")},Mg={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Nn("ropsten")},Sg={chainId:63,name:"classicMordor",_defaultProvider:su("https://www.ethercluster.com/mordor","classicMordor")},Po={unspecified:{chainId:0,name:"unspecified"},homestead:Eg,mainnet:Eg,morden:{chainId:2,name:"morden"}
84,ropsten:Mg,testnet:Mg,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Nn("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Nn("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Nn("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"sepolia",_defaultProvider:Nn("sepolia")},holesky:{chainId:17e3,name:"holesky",_defaultProvider:Nn("holesky")},classic:{chainId:61,name:"classic",_defaultProvider:su("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Sg,classicTestnet:Sg,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:su("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Nn("matic")},maticmum:{chainId:80001,name:"maticmum",_defaultProvider:Nn("maticmum")},optimism:{chainId:10,name:"optimism",_defaultProvider:Nn("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},"optimism-sepolia":{chainId:11155420,name:"optimism-sepolia"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},"arbitrum-sepolia":{chainId:421614,name:"arbitrum-sepolia"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function LA(l){if(l==null)return null;if(typeof l=="number"){for(const a in Po){const f=Po[a];if(f.chainId===l)return{name:f.name,chainId:f.chainId,ensAddress:f.ensAddress||null,_defaultProvider:f._defaultProvider||null}}return{chainId:l,name:"unknown"}}if(typeof l=="string"){const a=Po[l];return a==null?null:{name:a.name,chainId:a.chainId,ensAddress:a.ensAddress,_defaultProvider:a._defaultProvider||null}}const e=Po[l.name];if(!e)return typeof l.chainId!="number"&&_g.throwArgumentError("invalid network chainId","network",l),l;l.chainId!==0&&l.chainId!==e.chainId&&_g.throwArgumentError("network chainId mismatch","network",l);let n=l._defaultProvider||null;return n==null&&e._defaultProvider&&(zA(e._defaultProvider)?n=e._defaultProvider.renetwork(l):n=e._defaultProvider),{name:l.name,chainId:e.chainId,ensAddress:l.ensAddress||e.ensAddress||null,_defaultProvider:n}}const qA="web/5.8.0";var HA=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};function jA(l,e){return HA(this,void 0,void 0,function*(){e==null&&(e={});const n={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(n.mode="cors",n.cache="no-cache",n.credentials="same-origin",n.redirect="follow",n.referrer="client"),e.fetchOptions!=null){const p=e.fetchOptions;p.mode&&(n.mode=p.mode),p.cache&&(n.cache=p.cache),p.credentials&&(n.credentials=p.credentials),p.redirect&&(n.redirect=p.redirect),p.referrer&&(n.referrer=p.referrer)}const a=yield fetch(l,n),f=yield a.arrayBuffer(),u={};return a.headers.forEach?a.headers.forEach((p,y)=>{u[y.toLowerCase()]=p}):a.headers.keys().forEach(p=>{u[p.toLowerCase()]=a.headers.get(p)}),{headers:u,statusCode:a.status,statusMessage:a.statusText,body:Kt(new Uint8Array(f))}})}var IA=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const Sn=new F(qA);function Tg(l){return new Promise(e=>{setTimeout(e,l)})}function ji(l,e){if(l==null)return null;if(typeof l=="string")return l;if(_h(l)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return Ss(l)}catch{}return St(l)}return l}function GA(l){return Yn(l.replace(/%([0-9a-f][0-9a-f])/gi,(e,n)=>String.fromCharCode(parseInt(n,16))))}function PA(l,e,n){const a=typeof l=="object"&&l.throttleLimit!=null?l.throttleLimit:12;Sn.assertArgument(a>0&&a%1===0,"invalid connection throttle limit","connection.throttleLimit",a);const f=typeof l=="object"?l.throttleCallback:null,u=typeof l=="object"&&typeof l.throttleSlotInterval=="number"?l.throttleSlotInterval:100;Sn.assertArgument(u>0&&u%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",u);const p=typeof l=="object"?!!l.errorPassThrough:!1,y={};let w=null;const _={method:"GET"};let N=!1,C=2*60*1e3;if(typeof l=="string")w=l;else if(typeof l=="object"){if((l==null||l.url==null)&&Sn.throwArgumentError("missing URL","connection.url",l),w=l.url,typeof l.t
84imeout=="number"&&l.timeout>0&&(C=l.timeout),l.headers)for(const L in l.headers)y[L.toLowerCase()]={key:L,value:String(l.headers[L])},["if-none-match","if-modified-since"].indexOf(L.toLowerCase())>=0&&(N=!0);if(_.allowGzip=!!l.allowGzip,l.user!=null&&l.password!=null){w.substring(0,6)!=="https:"&&l.allowInsecureAuthentication!==!0&&Sn.throwError("basic authentication requires a secure https url",F.errors.INVALID_ARGUMENT,{argument:"url",url:w,user:l.user,password:"[REDACTED]"});const L=l.user+":"+l.password;y.authorization={key:"Authorization",value:"Basic "+Nv(Yn(L))}}l.skipFetchSetup!=null&&(_.skipFetchSetup=!!l.skipFetchSetup),l.fetchOptions!=null&&(_.fetchOptions=rr(l.fetchOptions))}const B=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),H=w?w.match(B):null;if(H)try{const L={statusCode:200,statusMessage:"OK",headers:{"content-type":H[1]||"text/plain"},body:H[2]?Tv(H[3]):GA(H[3])};let G=L.body;return n&&(G=n(L.body,L)),Promise.resolve(G)}catch(L){Sn.throwError("processing response error",F.errors.SERVER_ERROR,{body:ji(H[1],H[2]),error:L,requestBody:null,requestMethod:"GET",url:w})}e&&(_.method="POST",_.body=e,y["content-type"]==null&&(y["content-type"]={key:"Content-Type",value:"application/octet-stream"}),y["content-length"]==null&&(y["content-length"]={key:"Content-Length",value:String(e.length)}));const q={};Object.keys(y).forEach(L=>{const G=y[L];q[G.key]=G.value}),_.headers=q;const k=function(){let L=null;return{promise:new Promise(function(Q,W){C&&(L=setTimeout(()=>{L!=null&&(L=null,W(Sn.makeError("timeout",F.errors.TIMEOUT,{requestBody:ji(_.body,q["content-type"]),requestMethod:_.method,timeout:C,url:w})))},C))}),cancel:function(){L!=null&&(clearTimeout(L),L=null)}}}(),z=function(){return IA(this,void 0,void 0,function*(){for(let L=0;L<a;L++){let G=null;try{if(G=yield jA(w,_),L<a){if(G.statusCode===301||G.statusCode===302){const Q=G.headers.location||"";if(_.method==="GET"&&Q.match(/^https:/)){w=G.headers.location;continue}}else if(G.statusCode===429){let Q=!0;if(f&&(Q=yield f(L,w)),Q){let W=0;const lt=G.headers["retry-after"];typeof lt=="string"&&lt.match(/^[1-9][0-9]*$/)?W=parseInt(lt)*1e3:W=u*parseInt(String(Math.random()*Math.pow(2,L))),yield Tg(W);continue}}}}catch(Q){G=Q.response,G==null&&(k.cancel(),Sn.throwError("missing response",F.errors.SERVER_ERROR,{requestBody:ji(_.body,q["content-type"]),requestMethod:_.method,serverError:Q,url:w}))}let I=G.body;if(N&&G.statusCode===304?I=null:!p&&(G.statusCode<200||G.statusCode>=300)&&(k.cancel(),Sn.throwError("bad response",F.errors.SERVER_ERROR,{status:G.statusCode,headers:G.headers,body:ji(I,G.headers?G.headers["content-type"]:null),requestBody:ji(_.body,q["content-type"]),requestMethod:_.method,url:w})),n)try{const Q=yield n(I,G);return k.cancel(),Q}catch(Q){if(Q.throttleRetry&&L<a){let W=!0;if(f&&(W=yield f(L,w)),W){const lt=u*parseInt(String(Math.random()*Math.pow(2,L)));yield Tg(lt);continue}}k.cancel(),Sn.throwError("processing response error",F.errors.SERVER_ERROR,{body:ji(I,G.headers?G.headers["content-type"]:null),error:Q,requestBody:ji(_.body,q["content-type"]),requestMethod:_.method,url:w})}return k.cancel(),I}return Sn.throwError("failed response",F.errors.SERVER_ERROR,{requestBody:ji(_.body,q["content-type"]),requestMethod:_.method,url:w})})}();return Promise.race([k.promise,z])}function kh(l,e,n){let a=(u,p)=>{let y=null;if(u!=null)try{y=JSON.parse(Ss(u))}catch(w){Sn.throwError("invalid JSON",F.errors.SERVER_ERROR,{body:u,error:w})}return n&&(y=n(y,p)),y},f=null;if(e!=null){f=Yn(e);const u=typeof l=="string"?{url:l}:rr(l);u.headers?Object.keys(u.headers).filter(y=>y.toLowerCase()==="content-type").length!==0||(u.headers=rr(u.headers),u.headers["content-type"]="application/json"):u.headers={"content-type":"application/json"},l=u}return PA(l,f,a)}function os(l,e){return e||(e={}),e=rr(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(n,a){let f=null,u=!1;const p=()=>u?!1:(u=!0,f&&clearTimeout(f),!0);e.timeout&&(f=setTimeout(()=>{p()&&a(new Error("timeout"))},e.timeout));const y=e.retryLimit;let w=0;function _(){return l().then(function(N){if(N!==void 0)p()&&n(N);else if(e.oncePoll)e.oncePoll.once("poll",_);else if(e.onceBlock)e.onceBlock.once("block",_);else if(!u){if(w++,w>y){p()&&a(new Error("retry limit reached"));return}let C=e.interval*parseInt(String(Math.random()*Math.pow(2,w)));C<e.floor&&(C=e.floor),C>e.ceiling&&(C=e.ceiling),setTimeout(_,C)}return null},function(N){p()&&a(N)})}_()})}var th,Ng;function QA(){if(Ng)return th;Ng=1;
84for(var l="qpzry9x8gf2tvdw0s3jn54khce6mua7l",e={},n=0;n<l.length;n++){var a=l.charAt(n);if(e[a]!==void 0)throw new TypeError(a+" is ambiguous");e[a]=n}function f(k){var z=k>>25;return(k&33554431)<<5^-(z>>0&1)&996825010^-(z>>1&1)&642813549^-(z>>2&1)&513874426^-(z>>3&1)&1027748829^-(z>>4&1)&705979059}function u(k){for(var z=1,L=0;L<k.length;++L){var G=k.charCodeAt(L);if(G<33||G>126)return"Invalid prefix ("+k+")";z=f(z)^G>>5}for(z=f(z),L=0;L<k.length;++L){var I=k.charCodeAt(L);z=f(z)^I&31}return z}function p(k,z,L){if(L=L||90,k.length+7+z.length>L)throw new TypeError("Exceeds length limit");k=k.toLowerCase();var G=u(k);if(typeof G=="string")throw new Error(G);for(var I=k+"1",Q=0;Q<z.length;++Q){var W=z[Q];if(W>>5!==0)throw new Error("Non 5-bit word");G=f(G)^W,I+=l.charAt(W)}for(Q=0;Q<6;++Q)G=f(G);for(G^=1,Q=0;Q<6;++Q){var lt=G>>(5-Q)*5&31;I+=l.charAt(lt)}return I}function y(k,z){if(z=z||90,k.length<8)return k+" too short";if(k.length>z)return"Exceeds length limit";var L=k.toLowerCase(),G=k.toUpperCase();if(k!==L&&k!==G)return"Mixed-case string "+k;k=L;var I=k.lastIndexOf("1");if(I===-1)return"No separator character for "+k;if(I===0)return"Missing prefix for "+k;var Q=k.slice(0,I),W=k.slice(I+1);if(W.length<6)return"Data too short";var lt=u(Q);if(typeof lt=="string")return lt;for(var ut=[],ht=0;ht<W.length;++ht){var vt=W.charAt(ht),ae=e[vt];if(ae===void 0)return"Unknown character "+vt;lt=f(lt)^ae,!(ht+6>=W.length)&&ut.push(ae)}return lt!==1?"Invalid checksum for "+k:{prefix:Q,words:ut}}function w(){var k=y.apply(null,arguments);if(typeof k=="object")return k}function _(k){var z=y.apply(null,arguments);if(typeof z=="object")return z;throw new Error(z)}function N(k,z,L,G){for(var I=0,Q=0,W=(1<<L)-1,lt=[],ut=0;ut<k.length;++ut)for(I=I<<z|k[ut],Q+=z;Q>=L;)Q-=L,lt.push(I>>Q&W);if(G)Q>0&&lt.push(I<<L-Q&W);else{if(Q>=z)return"Excess padding";if(I<<L-Q&W)return"Non-zero padding"}return lt}function C(k){var z=N(k,8,5,!0);if(Array.isArray(z))return z}function B(k){var z=N(k,8,5,!0);if(Array.isArray(z))return z;throw new Error(z)}function H(k){var z=N(k,5,8,!1);if(Array.isArray(z))return z}function q(k){var z=N(k,5,8,!1);if(Array.isArray(z))return z;throw new Error(z)}return th={decodeUnsafe:w,decode:_,encode:p,toWordsUnsafe:C,toWords:B,fromWordsUnsafe:H,fromWords:q},th}var YA=QA();const Rg=ll(YA),Au="providers/5.8.0",is=new F(Au);class _t{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},n=this.address.bind(this),a=this.bigNumber.bind(this),f=this.blockTag.bind(this),u=this.data.bind(this),p=this.hash.bind(this),y=this.hex.bind(this),w=this.number.bind(this),_=this.type.bind(this),N=C=>this.data(C,!0);return e.transaction={hash:p,type:_,accessList:_t.allowNull(this.accessList.bind(this),null),blockHash:_t.allowNull(p,null),blockNumber:_t.allowNull(w,null),transactionIndex:_t.allowNull(w,null),confirmations:_t.allowNull(w,null),from:n,gasPrice:_t.allowNull(a),maxPriorityFeePerGas:_t.allowNull(a),maxFeePerGas:_t.allowNull(a),gasLimit:a,to:_t.allowNull(n,null),value:a,nonce:w,data:u,r:_t.allowNull(this.uint256),s:_t.allowNull(this.uint256),v:_t.allowNull(w),creates:_t.allowNull(n,null),raw:_t.allowNull(u)},e.transactionRequest={from:_t.allowNull(n),nonce:_t.allowNull(w),gasLimit:_t.allowNull(a),gasPrice:_t.allowNull(a),maxPriorityFeePerGas:_t.allowNull(a),maxFeePerGas:_t.allowNull(a),to:_t.allowNull(n),value:_t.allowNull(a),data:_t.allowNull(N),type:_t.allowNull(w),accessList:_t.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:w,blockNumber:w,transactionHash:p,address:n,topics:_t.arrayOf(p),data:u,logIndex:w,blockHash:p},e.receipt={to:_t.allowNull(this.address,null),from:_t.allowNull(this.address,null),contractAddress:_t.allowNull(n,null),transactionIndex:w,root:_t.allowNull(y),gasUsed:a,logsBloom:_t.allowNull(u),blockHash:p,transactionHash:p,logs:_t.arrayOf(this.receiptLog.bind(this)),blockNumber:w,confirmations:_t.allowNull(w,null),cumulativeGasUsed:a,effectiveGasPrice:_t.allowNull(a),status:_t.allowNull(w),type:_},e.block={hash:_t.allowNull(p),parentHash:p,number:w,timestamp:w,nonce:_t.allowNull(y),difficulty:this.difficulty.bind(this),gasLimit:a,gasUsed:a,miner:_t.allowNull(n),extraData:u,transactions:_t.allowNull(_t.arrayOf(p)),baseFeePerGas:_t.allowNull(a)},e.blockWithTransactions=rr(e.block),e.blockWithTransactions.transactions=_t.allowNull(_t.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:_t.allowNull(f,void 0),toBlock:_t.allowNull(f,void 0),blockHash:_t.allowNull(p,void 0),address:_t.allowNull(n,void 0),topics:_t.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:_t.allowNull(w),blockHash:_t.allowNull(p),transactionIndex:w,removed:_t.allowNull(this.boolean.bind(this)),address:n,data:_t.allowFalsish(u,"0x"),topics:_t.arrayOf(p),transactionHash:p,logIndex:w},e}accessList(e){return ul(e||[])}number(e){return e==="0x"?0:mt.from(e).toNumber()}type(e){return e==="0x"||e==null?0:mt.from(e).toNumber()}bigNumber(e){return mt.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;
84if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,n){return typeof e=="string"&&(!n&&e.substring(0,2)!=="0x"&&(e="0x"+e),_e(e))?e.toLowerCase():is.throwArgumentError("invalid hash","value",e)}data(e,n){const a=this.hex(e,n);if(a.length%2!==0)throw new Error("invalid data; odd-length - "+e);return a}address(e){return mr(e)}callAddress(e){if(!_e(e,32))return null;const n=mr(Ar(e,12));return n===Pw?null:n}contractAddress(e){return yv(e)}blockTag(e){if(e==null)return"latest";if(e==="earliest")return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if(typeof e=="number"||_e(e))return Eh(e);throw new Error("invalid blockTag")}hash(e,n){const a=this.hex(e,n);return da(a)!==32?is.throwArgumentError("invalid hash","value",e):a}difficulty(e){if(e==null)return null;const n=mt.from(e);try{return n.toNumber()}catch{}return null}uint256(e){if(!_e(e))throw new Error("invalid uint256");return Ie(e,32)}_block(e,n){e.author!=null&&e.miner==null&&(e.miner=e.author);const a=e._difficulty!=null?e._difficulty:e.difficulty,f=_t.check(n,e);return f._difficulty=a==null?null:mt.from(a),f}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return _t.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&mt.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),e.input!=null&&e.data==null&&(e.data=e.input),e.to==null&&e.creates==null&&(e.creates=this.contractAddress(e)),(e.type===1||e.type===2)&&e.accessList==null&&(e.accessList=[]);const n=_t.check(this.formats.transaction,e);if(e.chainId!=null){let a=e.chainId;_e(a)&&(a=mt.from(a).toNumber()),n.chainId=a}else{let a=e.networkId;a==null&&n.v==null&&(a=e.chainId),_e(a)&&(a=mt.from(a).toNumber()),typeof a!="number"&&n.v!=null&&(a=(n.v-35)/2,a<0&&(a=0),a=parseInt(a)),typeof a!="number"&&(a=0),n.chainId=a}return n.blockHash&&n.blockHash.replace(/0/g,"")==="x"&&(n.blockHash=null),n}transaction(e){return SA(e)}receiptLog(e){return _t.check(this.formats.receiptLog,e)}receipt(e){const n=_t.check(this.formats.receipt,e);if(n.root!=null)if(n.root.length<=4){const a=mt.from(n.root).toNumber();a===0||a===1?(n.status!=null&&n.status!==a&&is.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=a,delete n.root):is.throwArgumentError("invalid alt-root-status","value.root",n.root)}else n.root.length!==66&&is.throwArgumentError("invalid root hash","value.root",n.root);return n.status!=null&&(n.byzantium=!0),n}topics(e){return Array.isArray(e)?e.map(n=>this.topics(n)):e!=null?this.hash(e,!0):null}filter(e){return _t.check(this.formats.filter,e)}filterLog(e){return _t.check(this.formats.filterLog,e)}static check(e,n){const a={};for(const f in e)try{const u=e[f](n[f]);u!==void 0&&(a[f]=u)}catch(u){throw u.checkKey=f,u.checkValue=n[f],u}return a}static allowNull(e,n){return function(a){return a==null?n:e(a)}}static allowFalsish(e,n){return function(a){return a?e(a):n}}static arrayOf(e){return function(n){if(!Array.isArray(n))throw new Error("not an array");const a=[];return n.forEach(function(f){a.push(e(f))}),a}}}var se=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const he=new F(Au),XA=10;function Cg(l){return l==null?"null":(da(l)!==32&&he.throwArgumentError("invalid topic","topic",l),l.toLowerCase())}function Og(l){for(l=l.slice();l.length>0&&l[l.length-1]==null;)l.pop();return l.map(e=>{if(Array.isArray(e)){const n={};e.forEach(f=>{n[Cg(f)]=!0});const a=Object.keys(n);return a.sort(),a.join("|")}else return Cg(e)}).join("&")}function VA(l){return l===""?[]:l.split(/&/g).map(e=>{if(e==="")return[];const n=e.split("|").map(a=>a==="null"?null:a);return n.length===1?n[0]:n}
84)}function $a(l){if(typeof l=="string"){if(l=l.toLowerCase(),da(l)===32)return"tx:"+l;if(l.indexOf(":")===-1)return l}else{if(Array.isArray(l))return"filter:*:"+Og(l);if(Qx.isForkEvent(l))throw he.warn("not implemented"),new Error("not implemented");if(l&&typeof l=="object")return"filter:"+(l.address||"*")+":"+Og(l.topics||[])}throw new Error("invalid event - "+l)}function as(){return new Date().getTime()}function Bg(l){return new Promise(e=>{setTimeout(e,l)})}const KA=["block","network","pending","poll"];class ZA{constructor(e,n,a){dt(this,"tag",e),dt(this,"listener",n),dt(this,"once",a),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return e[0]!=="tx"?null:e[1]}get filter(){const e=this.tag.split(":");if(e[0]!=="filter")return null;const n=e[1],a=VA(e[2]),f={};return a.length>0&&(f.topics=a),n&&n!=="*"&&(f.address=n),f}pollable(){return this.tag.indexOf(":")>=0||KA.indexOf(this.tag)>=0}}const JA={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function eh(l){return Ie(mt.from(l).toHexString(),32)}function kg(l){return gh.encode(Jr([l,Ar(Ag(Ag(l)),0,4)]))}const Jv=new RegExp("^(ipfs)://(.*)$","i"),Dg=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),Jv,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Wo(l,e){try{return Ss(bs(l,e))}catch{}return null}function bs(l,e){if(l==="0x")return null;const n=mt.from(Ar(l,e,e+32)).toNumber(),a=mt.from(Ar(l,n,n+32)).toNumber();return Ar(l,n+32,n+32+a)}function rh(l){return l.match(/^ipfs:\/\/ipfs\//i)?l=l.substring(12):l.match(/^ipfs:\/\//i)?l=l.substring(7):he.throwArgumentError("unsupported IPFS format","link",l),`https://gateway.ipfs.io/ipfs/${l}`}function Ug(l){const e=Kt(l);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function FA(l){if(l.length%32===0)return l;const e=new Uint8Array(Math.ceil(l.length/32)*32);return e.set(l),e}function Fv(l){const e=[];let n=0;for(let a=0;a<l.length;a++)e.push(null),n+=32;for(let a=0;a<l.length;a++){const f=Kt(l[a]);e[a]=Ug(n),e.push(Ug(f.length)),e.push(FA(f)),n+=32+Math.ceil(f.length/32)*32}return qr(e)}class zg{constructor(e,n,a,f){dt(this,"provider",e),dt(this,"name",a),dt(this,"address",e.formatter.address(n)),dt(this,"_resolvedAddress",f)}supportsWildcard(){return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then(e=>mt.from(e).eq(1)).catch(e=>{if(e.code===F.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,n){return se(this,void 0,void 0,function*(){const a={to:this.address,ccipReadEnabled:!0,data:qr([e,Vo(this.name),n||"0x"])};let f=!1;(yield this.supportsWildcard())&&(f=!0,a.data=qr(["0x9061b923",Fv([Rx(this.name),a.data])]));try{let u=yield this.provider.call(a);return Kt(u).length%32===4&&he.throwError("resolver threw error",F.errors.CALL_EXCEPTION,{transaction:a,data:u}),f&&(u=bs(u,0)),u}catch(u){if(u.code===F.errors.CALL_EXCEPTION)return null;throw u}})}_fetchBytes(e,n){return se(this,void 0,void 0,function*(){const a=yield this._fetch(e,n);return a!=null?bs(a,0):null})}_getAddress(e,n){const a=JA[String(e)];if(a==null&&he.throwError(`unsupported coin type: ${e}`,F.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),a.ilk==="eth")return this.provider.formatter.address(n);const f=Kt(n);if(a.p2pkh!=null){const u=n.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(u){const p=parseInt(u[1],16);if(u[2].length===p*2&&p>=1&&p<=75)return kg(Jr([[a.p2pkh],"0x"+u[2]]))}}if(a.p2sh!=null){const u=n.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(u){const p=parseInt(u[1],16);if(u[2].length===p*2&&p>=1&&p<=75)return kg(Jr([[a.p2sh],"0x"+u[2]]))}}if(a.prefix!=null){const u=f[1];let p=f[0];if(p===0?u!==20&&u!==32&&(p=-1):p=-1,p>=0&&f.length===2+u&&u>=1&&u<=75){const y=Rg.toWords(f.slice(2));return y.unshift(p),Rg.encode(a.prefix,y)}}return null}getAddress(e){return se(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const f=yield this._fetch("0x3b3b57de");return f==="0x"||f===Vw?null:this.provider.formatter.callAddress(f)}catch(f){if(f.code===F.errors.CALL_EXCEPTION)return null;throw f}const n=yield this._fetchBytes("0xf1cb7e06",eh(e));if(n==null||n==="0x")return null;const a=this._getAddress(e,n);return a==null&&he.throwError("invalid or unsupported coin data",F.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:n}),a})}getAvatar(){return se(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const n=yield this.getText("avatar");if(n==null)return null;for(let a=0;a<Dg.length;a++){const f=n.match(Dg[a]);if(f==null)continue;const u=f[1].toLowerCase();switch(u){case"https":return e.push({type:"url",content:n}),{linkage:e,url:n};case"data":return e.push({type:"data",content:n}),{linkage:e,url:n};case"ipfs":return e.push({type:"ipfs",content:n}),{linkage:e,url:rh(n)};case"erc721":case"erc1155":{const p=u==="erc721"?"0xc87b56dd":"0x0e89341c";e.push({type:u,content:n});const y=this._resolvedAddress||(yield this.getAddress()),w=(f[2]||"").split("/");if(w.length!==2)return null;const _=yield this.provider.formatter.address(w[0]),N=Ie(mt.from(w[1]).toHexString(),32);if(u==="erc721"){const k=this.provider.formatter.callAddress(yield this.provider.call({to:_,data:qr(["0x6352211e",N])}));if(y!==k)return null;e.push({type:"owner",content:k})}else if(u==="erc1155"){const k=mt.from(yield this.provider.call({to:_,data:qr(["0x00fdd58e",Ie(y,32),N])}));if(k.isZero())return null;e.push({type:"balance",content:k.toString()})}const C={to:this.provider.formatter.address(w[0]),data:qr([p,N])};let B=Wo(yield this.provider.call(C),0);if(B==null)return null;e.push({type:"metadata-url-base",content:B}),u==="erc1155"&&(B=B.replace("{id}",N.substring(2)),e.push({type:"metadata-url-expanded",content:B})),B.match(/^ipfs:/i)&&(B=rh(B)),e.push({type:"metadata-url",content:B});const H=yield kh(B);if(!H)return null;e.push({type:"metadata",content:JSON.stringify(H)});let q=H.image;if(typeof q!="string")return null;
84if(!q.match(/^(https:\/\/|data:)/i)){if(q.match(Jv)==null)return null;e.push({type:"url-ipfs",content:q}),q=rh(q)}return e.push({type:"url",content:q}),{linkage:e,url:q}}}}}catch{}return null})}getContentHash(){return se(this,void 0,void 0,function*(){const e=yield this._fetchBytes("0xbc1c58d1");if(e==null||e==="0x")return null;const n=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(n){const p=parseInt(n[3],16);if(n[4].length===p*2)return"ipfs://"+gh.encode("0x"+n[1])}const a=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(a){const p=parseInt(a[3],16);if(a[4].length===p*2)return"ipns://"+gh.encode("0x"+a[1])}const f=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(f&&f[1].length===32*2)return"bzz://"+f[1];const u=e.match(/^0x90b2c605([0-9a-f]*)$/);if(u&&u[1].length===34*2){const p={"=":"","+":"-","/":"_"};return"sia://"+Nv("0x"+u[1]).replace(/[=+\/]/g,w=>p[w])}return he.throwError("invalid or unsupported content hash data",F.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return se(this,void 0,void 0,function*(){let n=Yn(e);n=Jr([eh(64),eh(n.length),n]),n.length%32!==0&&(n=Jr([n,Ie("0x",32-e.length%32)]));const a=yield this._fetchBytes("0x59d1d43c",St(n));return a==null||a==="0x"?null:Ss(a)})}}let nh=null,WA=1;class $A extends yu{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),dt(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(n=>{}),this._ready().catch(n=>{});else{const n=Qn(new.target,"getNetwork")(e);n?(dt(this,"_network",n),this.emit("network",n,null)):he.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return se(this,void 0,void 0,function*(){if(this._network==null){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch{}e==null&&(e=yield this.detectNetwork()),e||he.throwError("no network detected",F.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:dt(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return os(()=>this._ready().then(e=>e,e=>{if(!(e.code===F.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return nh==null&&(nh=new _t),nh}static getNetwork(e){return LA(e??"homestead")}ccipReadFetch(e,n,a){return se(this,void 0,void 0,function*(){if(this.disableCcipRead||a.length===0)return null;const f=e.to.toLowerCase(),u=n.toLowerCase(),p=[];for(let y=0;y<a.length;y++){const w=a[y],_=w.replace("{sender}",f).replace("{data}",u),N=w.indexOf("{data}")>=0?null:JSON.stringify({data:u,sender:f}),C=yield kh({url:_,errorPassThrough:!0},N,(H,q)=>(H.status=q.statusCode,H));if(C.data)return C.data;const B=C.message||"unknown error";if(C.status>=400&&C.status<500)return he.throwError(`response not found during CCIP fetch: ${B}`,F.errors.SERVER_ERROR,{url:w,errorMessage:B});p.push(B)}return he.throwError(`error encountered during CCIP fetch: ${p.map(y=>JSON.stringify(y)).join(", ")}`,F.errors.SERVER_ERROR,{urls:a,errorMessages:p})})}_getInternalBlockNumber(e){return se(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const f=this._internalBlockNumber;try{const u=yield f;if(as()-u.respTime<=e)return u.blockNumber;break}catch{if(this._internalBlockNumber===f)break}}const n=as(),a=Ke({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(f=>null,f=>f)}).then(({blockNumber:f,networkError:u})=>{if(u)throw this._internalBlockNumber===a&&(this._internalBlockNumber=null),u;const p=as();return f=mt.from(f).toNumber(),f<this._maxInternalBlockNumber&&(f=this._maxInternalBlockNumber),this._maxInternalBlockNumber=f,this._setFastBlockNumber(f),{blockNumber:f,reqTime:n,respTime:p}});return this._internalBlockNumber=a,a.catch(f=>{this._internalBlockNumber===a&&(this._internalBlockNumber=null)}),(yield a).blockNumber})}poll(){return se(this,void 0,void 0,function*(){const e=WA++,n=[];let a=null;try{a=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}
84catch(f){this.emit("error",f);return}if(this._setFastBlockNumber(a),this.emit("poll",e,a),a===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=a-1),Math.abs(this._emitted.block-a)>1e3)he.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${a})`),this.emit("error",he.makeError("network block skew detected",F.errors.NETWORK_ERROR,{blockNumber:a,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",a);else for(let f=this._emitted.block+1;f<=a;f++)this.emit("block",f);this._emitted.block!==a&&(this._emitted.block=a,Object.keys(this._emitted).forEach(f=>{if(f==="block")return;const u=this._emitted[f];u!=="pending"&&a-u>12&&delete this._emitted[f]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=a-1),this._events.forEach(f=>{switch(f.type){case"tx":{const u=f.hash;let p=this.getTransactionReceipt(u).then(y=>(!y||y.blockNumber==null||(this._emitted["t:"+u]=y.blockNumber,this.emit(u,y)),null)).catch(y=>{this.emit("error",y)});n.push(p);break}case"filter":{if(!f._inflight){f._inflight=!0,f._lastBlockNumber===-2&&(f._lastBlockNumber=a-1);const u=f.filter;u.fromBlock=f._lastBlockNumber+1,u.toBlock=a;const p=u.toBlock-this._maxFilterBlockRange;p>u.fromBlock&&(u.fromBlock=p),u.fromBlock<0&&(u.fromBlock=0);const y=this.getLogs(u).then(w=>{f._inflight=!1,w.length!==0&&w.forEach(_=>{_.blockNumber>f._lastBlockNumber&&(f._lastBlockNumber=_.blockNumber),this._emitted["b:"+_.blockHash]=_.blockNumber,this._emitted["t:"+_.transactionHash]=_.blockNumber,this.emit(u,_)})}).catch(w=>{this.emit("error",w),f._inflight=!1});n.push(y)}break}}}),this._lastBlockNumber=a,Promise.all(n).then(()=>{this.emit("didPoll",e)}).catch(f=>{this.emit("error",f)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return se(this,void 0,void 0,function*(){return he.throwError("provider does not support network detection",F.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return se(this,void 0,void 0,function*(){const e=yield this._ready(),n=yield this.detectNetwork();if(e.chainId!==n.chainId){if(this.anyNetwork)return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,e),yield Bg(0),this._network;const a=he.makeError("underlying network changed",F.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:n});throw this.emit("error",a),a}return e})}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then(e=>{this._setFastBlockNumber(e)},e=>{}),this._fastBlockNumber!=null?this._fastBlockNumber:-1}get polling(){return this._poller!=null}set polling(e){e&&!this._poller?(this._poller=setInterval(()=>{this.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(()=>{this.poll(),this._bootstrapPoll=setTimeout(()=>{this._poller||this.poll(),this._bootstrapPoll=null},this.pollingInterval)},0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if(typeof e!="number"||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval(()=>{this.poll()},this._pollingInterval))}_getFastBlockNumber(){const e=as();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(n=>((this._fastBlockNumber==null||n>this._fastBlockNumber)&&(this._fastBlockNumber=n),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&e<this._fastBlockNumber||(this._fastQueryDate=as(),(this._fastBlockNumber==null||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,n,a){return se(this,void 0,void 0,function*(){return this._waitForTransaction(e,n??1,a||0,null)})}_waitForTransaction(e,n,a,f){return se(this,void 0,void 0,function*(){const u=yield this.getTransactionReceipt(e);return(u?u.confirmations:0)>=n?u:new Promise((p,y)=>{const w=[];let _=!1;
84const N=function(){return _?!0:(_=!0,w.forEach(B=>{B()}),!1)},C=B=>{B.confirmations<n||N()||p(B)};if(this.on(e,C),w.push(()=>{this.removeListener(e,C)}),f){let B=f.startBlock,H=null;const q=k=>se(this,void 0,void 0,function*(){_||(yield Bg(1e3),this.getTransactionCount(f.from).then(z=>se(this,void 0,void 0,function*(){if(!_){if(z<=f.nonce)B=k;else{{const L=yield this.getTransaction(e);if(L&&L.blockNumber!=null)return}for(H==null&&(H=B-3,H<f.startBlock&&(H=f.startBlock));H<=k;){if(_)return;const L=yield this.getBlockWithTransactions(H);for(let G=0;G<L.transactions.length;G++){const I=L.transactions[G];if(I.hash===e)return;if(I.from===f.from&&I.nonce===f.nonce){if(_)return;const Q=yield this.waitForTransaction(I.hash,n);if(N())return;let W="replaced";I.data===f.data&&I.to===f.to&&I.value.eq(f.value)?W="repriced":I.data==="0x"&&I.from===I.to&&I.value.isZero()&&(W="cancelled"),y(he.makeError("transaction was replaced",F.errors.TRANSACTION_REPLACED,{cancelled:W==="replaced"||W==="cancelled",reason:W,replacement:this._wrapTransaction(I),hash:e,receipt:Q}));return}}H++}}_||this.once("block",q)}}),z=>{_||this.once("block",q)}))});if(_)return;this.once("block",q),w.push(()=>{this.removeListener("block",q)})}if(typeof a=="number"&&a>0){const B=setTimeout(()=>{N()||y(he.makeError("timeout exceeded",F.errors.TIMEOUT,{timeout:a}))},a);B.unref&&B.unref(),w.push(()=>{clearTimeout(B)})}})})}getBlockNumber(){return se(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return se(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return mt.from(e)}catch(n){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:n})}})}getBalance(e,n){return se(this,void 0,void 0,function*(){yield this.getNetwork();const a=yield Ke({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),f=yield this.perform("getBalance",a);try{return mt.from(f)}catch(u){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"getBalance",params:a,result:f,error:u})}})}getTransactionCount(e,n){return se(this,void 0,void 0,function*(){yield this.getNetwork();const a=yield Ke({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),f=yield this.perform("getTransactionCount",a);try{return mt.from(f).toNumber()}catch(u){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"getTransactionCount",params:a,result:f,error:u})}})}getCode(e,n){return se(this,void 0,void 0,function*(){yield this.getNetwork();const a=yield Ke({address:this._getAddress(e),blockTag:this._getBlockTag(n)}),f=yield this.perform("getCode",a);try{return St(f)}catch(u){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"getCode",params:a,result:f,error:u})}})}getStorageAt(e,n,a){return se(this,void 0,void 0,function*(){yield this.getNetwork();const f=yield Ke({address:this._getAddress(e),blockTag:this._getBlockTag(a),position:Promise.resolve(n).then(p=>Eh(p))}),u=yield this.perform("getStorageAt",f);try{return St(u)}catch(p){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"getStorageAt",params:f,result:u,error:p})}})}_wrapTransaction(e,n,a){if(n!=null&&da(n)!==32)throw new Error("invalid response - sendTransaction");const f=e;return n!=null&&e.hash!==n&&he.throwError("Transaction hash mismatch from Provider.sendTransaction.",F.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:n}),f.wait=(u,p)=>se(this,void 0,void 0,function*(){u==null&&(u=1),p==null&&(p=0);let y;u!==0&&a!=null&&(y={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:a});const w=yield this._waitForTransaction(e.hash,u,p,y);return w==null&&u===0?null:(this._emitted["t:"+e.hash]=w.blockNumber,w.status===0&&he.throwError("transaction failed",F.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:w}),w)}),f}sendTransaction(e){return se(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Promise.resolve(e).then(u=>St(u)),a=this.formatter.transaction(e);a.confirmations==null&&(a.confirmations=0);const f=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const u=yield this.perform("sendTransaction",{signedTransaction:n});return this._wrapTransaction(a,u,f)}catch(u){throw u.transaction=a,u.transactionHash=a.hash,u}})}_getTransactionRequest(e){return se(this,void 0,void 0,function*(){const n=yield e,a={};return["from","to"].forEach(f=>{n[f]!=null&&(a[f]=Promise.resolve(n[f]).then(u=>u?this._getAddress(u):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(f=>{n[f]!=null&&(a[f]=Promise.resolve(n[f]).then(u=>u?mt.from(u):null))}),["type"].forEach(f=>{n[f]!=null&&(a[f]=Promise.resolve(n[f]).then(u=>u??null))}),n.accessList&&(a.accessList=this.formatter.accessList(n.accessList)),["data"].forEach(f=>{n[f]!=null&&(a[f]=Promise.resolve(n[f]).then(u=>
84u?St(u):null))}),this.formatter.transactionRequest(yield Ke(a))})}_getFilter(e){return se(this,void 0,void 0,function*(){e=yield e;const n={};return e.address!=null&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach(a=>{e[a]!=null&&(n[a]=e[a])}),["fromBlock","toBlock"].forEach(a=>{e[a]!=null&&(n[a]=this._getBlockTag(e[a]))}),this.formatter.filter(yield Ke(n))})}_call(e,n,a){return se(this,void 0,void 0,function*(){a>=XA&&he.throwError("CCIP read exceeded maximum redirections",F.errors.SERVER_ERROR,{redirects:a,transaction:e});const f=e.to,u=yield this.perform("call",{transaction:e,blockTag:n});if(a>=0&&n==="latest"&&f!=null&&u.substring(0,10)==="0x556f1830"&&da(u)%32===4)try{const p=Ar(u,4),y=Ar(p,0,32);mt.from(y).eq(f)||he.throwError("CCIP Read sender did not match",F.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u});const w=[],_=mt.from(Ar(p,32,64)).toNumber(),N=mt.from(Ar(p,_,_+32)).toNumber(),C=Ar(p,_+32);for(let L=0;L<N;L++){const G=Wo(C,L*32);G==null&&he.throwError("CCIP Read contained corrupt URL string",F.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u}),w.push(G)}const B=bs(p,64);mt.from(Ar(p,100,128)).isZero()||he.throwError("CCIP Read callback selector included junk",F.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u});const H=Ar(p,96,100),q=bs(p,128),k=yield this.ccipReadFetch(e,B,w);k==null&&he.throwError("CCIP Read disabled or provided no URLs",F.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:u});const z={to:f,data:qr([H,Fv([k,q])])};return this._call(z,n,a+1)}catch(p){if(p.code===F.errors.SERVER_ERROR)throw p}try{return St(u)}catch(p){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:n},result:u,error:p})}})}call(e,n){return se(this,void 0,void 0,function*(){yield this.getNetwork();const a=yield Ke({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(n),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});return this._call(a.transaction,a.blockTag,a.ccipReadEnabled?0:-1)})}estimateGas(e){return se(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Ke({transaction:this._getTransactionRequest(e)}),a=yield this.perform("estimateGas",n);try{return mt.from(a)}catch(f){return he.throwError("bad result from backend",F.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:a,error:f})}})}_getAddress(e){return se(this,void 0,void 0,function*(){e=yield e,typeof e!="string"&&he.throwArgumentError("invalid address or ENS name","name",e);const n=yield this.resolveName(e);return n==null&&he.throwError("ENS name not configured",F.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(e)})`}),n})}_getBlock(e,n){return se(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;let a=-128;const f={includeTransactions:!!n};if(_e(e,32))f.blockHash=e;else try{f.blockTag=yield this._getBlockTag(e),_e(f.blockTag)&&(a=parseInt(f.blockTag.substring(2),16))}catch{he.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e)}return os(()=>se(this,void 0,void 0,function*(){const u=yield this.perform("getBlock",f);if(u==null)return f.blockHash!=null&&this._emitted["b:"+f.blockHash]==null||f.blockTag!=null&&a>this._emitted.block?null:void 0;if(n){let p=null;for(let w=0;w<u.transactions.length;w++){const _=u.transactions[w];if(_.blockNumber==null)_.confirmations=0;else if(_.confirmations==null){p==null&&(p=yield this._getInternalBlockNumber(100+2*this.pollingInterval));let N=p-_.blockNumber+1;N<=0&&(N=1),_.confirmations=N}}const y=this.formatter.blockWithTransactions(u);return y.transactions=y.transactions.map(w=>this._wrapTransaction(w)),y}return this.formatter.block(u)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return se(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return os(()=>se(this,void 0,void 0,function*(){const a=yield this.perform("getTransaction",n);if(a==null)return this._emitted["t:"+e]==null?null:void 0;
84const f=this.formatter.transactionResponse(a);if(f.blockNumber==null)f.confirmations=0;else if(f.confirmations==null){let p=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-f.blockNumber+1;p<=0&&(p=1),f.confirmations=p}return this._wrapTransaction(f)}),{oncePoll:this})})}getTransactionReceipt(e){return se(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const n={transactionHash:this.formatter.hash(e,!0)};return os(()=>se(this,void 0,void 0,function*(){const a=yield this.perform("getTransactionReceipt",n);if(a==null)return this._emitted["t:"+e]==null?null:void 0;if(a.blockHash==null)return;const f=this.formatter.receipt(a);if(f.blockNumber==null)f.confirmations=0;else if(f.confirmations==null){let p=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-f.blockNumber+1;p<=0&&(p=1),f.confirmations=p}return f}),{oncePoll:this})})}getLogs(e){return se(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield Ke({filter:this._getFilter(e)}),a=yield this.perform("getLogs",n);return a.forEach(f=>{f.removed==null&&(f.removed=!1)}),_t.arrayOf(this.formatter.filterLog.bind(this.formatter))(a)})}getEtherPrice(){return se(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return se(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&he.throwArgumentError("invalid BlockTag","blockTag",e);let n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return n+=e,n<0&&(n=0),this.formatter.blockTag(n)}return this.formatter.blockTag(e)})}getResolver(e){return se(this,void 0,void 0,function*(){let n=e;for(;;){if(n===""||n==="."||e!=="eth"&&n==="eth")return null;const a=yield this._getResolver(n,"getResolver");if(a!=null){const f=new zg(this,a,e);return n!==e&&!(yield f.supportsWildcard())?null:f}n=n.split(".").slice(1).join(".")}})}_getResolver(e,n){return se(this,void 0,void 0,function*(){n==null&&(n="ENS");const a=yield this.getNetwork();a.ensAddress||he.throwError("network does not support ENS",F.errors.UNSUPPORTED_OPERATION,{operation:n,network:a.name});try{const f=yield this.call({to:a.ensAddress,data:"0x0178b8bf"+Vo(e).substring(2)});return this.formatter.callAddress(f)}catch{}return null})}resolveName(e){return se(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(a){if(_e(e))throw a}typeof e!="string"&&he.throwArgumentError("invalid ENS name","name",e);const n=yield this.getResolver(e);return n?yield n.getAddress():null})}lookupAddress(e){return se(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const n=e.substring(2).toLowerCase()+".addr.reverse",a=yield this._getResolver(n,"lookupAddress");if(a==null)return null;const f=Wo(yield this.call({to:a,data:"0x691f3431"+Vo(n).substring(2)}),0);return(yield this.resolveName(f))!=e?null:f})}getAvatar(e){return se(this,void 0,void 0,function*(){let n=null;if(_e(e)){const u=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",p=yield this._getResolver(u,"getAvatar");if(!p)return null;n=new zg(this,p,u);try{const y=yield n.getAvatar();if(y)return y.url}catch(y){if(y.code!==F.errors.CALL_EXCEPTION)throw y}try{const y=Wo(yield this.call({to:p,data:"0x691f3431"+Vo(u).substring(2)}),0);n=yield this.getResolver(y)}catch(y){if(y.code!==F.errors.CALL_EXCEPTION)throw y;return null}}else if(n=yield this.getResolver(e),!n)return null;const a=yield n.getAvatar();return a==null?null:a.url})}perform(e,n){return he.throwError(e+" not implemented",F.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(n=>n.pollable()).length>0}_addEventListener(e,n,a){const f=new ZA($a(e),n,a);return this._events.push(f),this._startEvent(f),this}on(e,n){return this._addEventListener(e,n,!1)}once(e,n){return this._addEventListener(e,n,!0)}emit(e,...n){let a=!1,f=[],u=$a(e);return this._events=this._events.filter(p=>p.tag!==u?!0:(setTimeout(()=>{p.listener.apply(this,n)},0),a=!0,p.once?(f.push(p),!1):!0)),f.forEach(p=>{this._stopEvent(p)}),a}listenerCount(e){if(!e)return this._events.length;let n=$a(e);return this._events.filter(a=>a.tag===n).length}listeners(e){if(e==null)return this._events.map(a=>a.listener);let n=$a(e);return this._events.filter(a=>a.tag===n).map(a=>a.listener)}off(e,n){if(n==null)return this.removeAllListeners(e);const a=[];let f=!1,u=$a(e);return this._events=this._events.filter(p=>p.tag!==u||p.listener!=n||f?!0:(f=!0,a.push(p),!1)),a.forEach(p=>{this._stopEvent(p)}),this}removeAllListeners(e){let n=[];if(e==null)n=this._events,this._events=[];else{const a=$a(e);this._events=this._events.filter(f=>f.tag!==a?!0:(n.push(f),!1))}
84return n.forEach(a=>{this._stopEvent(a)}),this}}var ci=function(l,e,n,a){function f(u){return u instanceof n?u:new n(function(p){p(u)})}return new(n||(n=Promise))(function(u,p){function y(N){try{_(a.next(N))}catch(C){p(C)}}function w(N){try{_(a.throw(N))}catch(C){p(C)}}function _(N){N.done?u(N.value):f(N.value).then(y,w)}_((a=a.apply(l,e||[])).next())})};const Ze=new F(Au),t3=["call","estimateGas"];function us(l,e){if(l==null)return null;if(typeof l.message=="string"&&l.message.match("reverted")){const n=_e(l.data)?l.data:null;if(!e||n)return{message:l.message,data:n}}if(typeof l=="object"){for(const n in l){const a=us(l[n],e);if(a)return a}return null}if(typeof l=="string")try{return us(JSON.parse(l),e)}catch{}return null}function Wv(l,e,n){const a=n.transaction||n.signedTransaction;if(l==="call"){const u=us(e,!0);if(u)return u.data;Ze.throwError("missing revert data in call exception; Transaction reverted without a reason string",F.errors.CALL_EXCEPTION,{data:"0x",transaction:a,error:e})}if(l==="estimateGas"){let u=us(e.body,!1);u==null&&(u=us(e,!1)),u&&Ze.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",F.errors.UNPREDICTABLE_GAS_LIMIT,{reason:u.message,method:l,transaction:a,error:e})}let f=e.message;throw e.code===F.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?f=e.error.message:typeof e.body=="string"?f=e.body:typeof e.responseText=="string"&&(f=e.responseText),f=(f||"").toLowerCase(),f.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Ze.throwError("insufficient funds for intrinsic transaction cost",F.errors.INSUFFICIENT_FUNDS,{error:e,method:l,transaction:a}),f.match(/nonce (is )?too low/i)&&Ze.throwError("nonce has already been used",F.errors.NONCE_EXPIRED,{error:e,method:l,transaction:a}),f.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Ze.throwError("replacement fee too low",F.errors.REPLACEMENT_UNDERPRICED,{error:e,method:l,transaction:a}),f.match(/only replay-protected/i)&&Ze.throwError("legacy pre-eip-155 transactions not supported",F.errors.UNSUPPORTED_OPERATION,{error:e,method:l,transaction:a}),t3.indexOf(l)>=0&&f.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Ze.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",F.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:l,transaction:a}),e}function Lg(l){return new Promise(function(e){setTimeout(e,l)})}function e3(l){if(l.error){const e=new Error(l.error.message);throw e.code=l.error.code,e.data=l.error.data,e}return l.result}function ls(l){return l&&l.toLowerCase()}const vh={};class $v extends Ts{constructor(e,n,a){if(super(),e!==vh)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");dt(this,"provider",n),a==null&&(a=0),typeof a=="string"?(dt(this,"_address",this.provider.formatter.address(a)),dt(this,"_index",null)):typeof a=="number"?(dt(this,"_index",a),dt(this,"_address",null)):Ze.throwArgumentError("invalid address or index","addressOrIndex",a)}connect(e){return Ze.throwError("cannot alter JSON-RPC Signer connection",F.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new r3(vh,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(e=>(e.length<=this._index&&Ze.throwError("unknown account #"+this._index,F.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=rr(e);const n=this.getAddress().then(a=>(a&&(a=a.toLowerCase()),a));if(e.gasLimit==null){const a=rr(e);a.from=n,e.gasLimit=this.provider.estimateGas(a)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(a=>ci(this,void 0,void 0,function*(){if(a==null)return null;const f=yield this.provider.resolveName(a);return f==null&&Ze.throwArgumentError("provided ENS name resolves to null","tx.to",a),f}))),Ke({tx:Ke(e),sender:n}).then(({tx:a,sender:f})=>{a.from!=null?a.from.toLowerCase()!==f&&Ze.throwArgumentError("from address mismatch","transaction",e):a.from=f;const u=this.provider.constructor.hexlifyTransaction(a,{from:!0});return this.provider.send("eth_sendTransaction",[u]).then(p=>p,p=>(typeof p.message=="string"&&p.message.match(/user denied/i)&&Ze.throwError("user rejected transaction",F.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:a}),Wv("sendTransaction",p,u)))})}signTransaction(e){return Ze.throwError("signing transactions is unsupported",F.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ci(this,void 0,void 0,function*(){const n=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),a=yield this.sendUncheckedTransaction(e);try{return yield os(()=>ci(this,void 0,void 0,function*(){const f=yield this.provider.getTransaction(a);if(f!==null)return this.provider._wrapTransaction(f,a,n)}),{oncePoll:this.provider})}catch(f){throw f.transactionHash=a,f}})}signMessage(e){return ci(this,void 0,void 0,function*(){const n=typeof e=="string"?Yn(e):e,a=yield this.getAddress();try{return yield this.provider.send("personal_sign",[St(n),a.toLowerCase()])}catch(f){throw typeof f.message=="string"&&f.message.match(/user denied/i)&&Ze.throwError("user rejected signing",F.errors.ACTION_REJECTED,{action:"signMessage",from:a,messageData:e}),f}})}_legacySignMessage(e){return ci(this,void 0,void 0,function*(){const n=typeof e=="string"?Yn(e):e,a=yield this.getAddress();try{return yield this.provider.send("eth_sign",[a.toLowerCase(),St(n)])}catch(f){throw typeof f.message=="string"&&f.message.match(/user denied/i)&&Ze.throwError("user rejected signing",F.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:a,messageData:e}),f}})}_signTypedData(e,n,a){return ci(this,void 0,void 0,function*(){const f=yield Vr.resolveNames(e,n,a,p=>this.provider.resolveName(p)),u=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[u.toLowerCase(),JSON.stringify(Vr.getPayload(f.domain,n,f.value))])}catch(p){throw typeof p.message=="string"&&p.message.match(/user denied/i)&&Ze.throwError("user rejected signing",F.errors.ACTION_REJECTED,{action:"_signTypedData",from:u,messageData:{domain:f.domain,types:n,value:f.value}}),p}})}unlock(e){return ci(this,void 0,void 0,function*(){const n=this.provider,a=yield this.getAddress();return n.send("personal_unlockAccount",[a.toLowerCase(),e,null])})}}class r3 extends $v{sendTransaction(e){return this.sendUncheckedTransaction(e).then(n=>({hash:n,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:a=>this.provider.waitForTransaction(n,a)}))}}const n3={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class i3 extends $A{constructor(e,n){let a=n;a==null&&(a=new Promise((f,u)=>{setTimeout(()=>{this.detectNetwork().then(p=>{f(p)},p=>{u(p)})},0)})),super(a),e||(e=Qn(this.constructor,"defaultUrl")()),typeof e=="string"?dt(this,"connection",Object.freeze({url:e})):dt(this,"connection",Object.freeze(rr(e))),this._nextId=42}get _cache(){return this._eventLoopCache==null&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(()=>{this._cache.detectNetwork=null},0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return ci(this,void 0,void 0,function*(){yield Lg(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const n=Qn(this.constructor,"getNetwork");try{return n(mt.from(e).toNumber())}catch(a){return Ze.throwError("could not detect network",F.errors.NETWORK_E
84RROR,{chainId:e,event:"invalidNetwork",serverError:a})}}return Ze.throwError("could not detect network",F.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new $v(vh,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(n=>this.formatter.address(n)))}send(e,n){const a={method:e,params:n,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:mi(a),provider:this});const f=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(f&&this._cache[e])return this._cache[e];const u=kh(this.connection,JSON.stringify(a),e3).then(p=>(this.emit("debug",{action:"response",request:a,response:p,provider:this}),p),p=>{throw this.emit("debug",{action:"response",error:p,request:a,provider:this}),p});return f&&(this._cache[e]=u,setTimeout(()=>{this._cache[e]=null},0)),u}prepareRequest(e,n){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[ls(n.address),n.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[ls(n.address),n.blockTag]];case"getCode":return["eth_getCode",[ls(n.address),n.blockTag]];case"getStorageAt":return["eth_getStorageAt",[ls(n.address),Ie(n.position,32),n.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[n.signedTransaction]];case"getBlock":return n.blockTag?["eth_getBlockByNumber",[n.blockTag,!!n.includeTransactions]]:n.blockHash?["eth_getBlockByHash",[n.blockHash,!!n.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[n.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[n.transactionHash]];case"call":return["eth_call",[Qn(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0}),n.blockTag]];case"estimateGas":return["eth_estimateGas",[Qn(this.constructor,"hexlifyTransaction")(n.transaction,{from:!0})]];case"getLogs":return n.filter&&n.filter.address!=null&&(n.filter.address=ls(n.filter.address)),["eth_getLogs",[n.filter]]}return null}perform(e,n){return ci(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const f=n.transaction;if(f&&f.type!=null&&mt.from(f.type).isZero()&&f.maxFeePerGas==null&&f.maxPriorityFeePerGas==null){const u=yield this.getFeeData();u.maxFeePerGas==null&&u.maxPriorityFeePerGas==null&&(n=rr(n),n.transaction=rr(f),delete n.transaction.type)}}const a=this.prepareRequest(e,n);a==null&&Ze.throwError(e+" not implemented",F.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(a[0],a[1])}catch(f){return Wv(e,f,n)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,n=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=n,n.then(function(a){function f(){e.send("eth_getFilterChanges",[a]).then(function(u){if(e._pendingFilter!=n)return null;let p=Promise.resolve();return u.forEach(function(y){e._emitted["t:"+y.toLowerCase()]="pending",p=p.then(function(){return e.getTransaction(y).then(function(w){return e.emit("pending",w),null})})}),p.then(function(){return Lg(1e3)})}).then(function(){if(e._pendingFilter!=n){e.send("eth_uninstallFilter",[a]);return}return setTimeout(function(){f()},0),null}).catch(u=>{})}return f(),a}).catch(a=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,n){const a=rr(n3);if(n)for(const u in n)n[u]&&(a[u]=!0);bw(e,a);const f={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(u){if(e[u]==null)return;const p=Eh(mt.from(e[u]));u==="gasLimit"&&(u="gas"),f[u]=p}),["from","to","data"].forEach(function(u){e[u]!=null&&(f[u]=St(e[u]))}),e.accessList&&(f.accessList=ul(e.accessList)),f}}const qg=new F(Au);let a3=1;function Hg(l,e){const n="Web3LegacyFetcher";return function(a,f){const u={method:a,params:f,id:a3++,jsonrpc:"2.0"};return new Promise((p,y)=>{this.emit("debug",{action:"request",fetcher:n,request:mi(u),provider:this}),e(u,(w,_)=>
84{if(w)return this.emit("debug",{action:"response",fetcher:n,error:w,request:u,provider:this}),y(w);if(this.emit("debug",{action:"response",fetcher:n,request:u,response:_,provider:this}),_.error){const N=new Error(_.error.message);return N.code=_.error.code,N.data=_.error.data,y(N)}p(_.result)})})}}function l3(l){return function(e,n){n==null&&(n=[]);const a={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:mi(a),provider:this}),l.request(a).then(f=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,response:f,provider:this}),f),f=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:a,error:f,provider:this}),f})}}class ty extends i3{constructor(e,n){e==null&&qg.throwArgumentError("missing provider","provider",e);let a=null,f=null,u=null;typeof e=="function"?(a="unknown:",f=e):(a=e.host||e.path||"",!a&&e.isMetaMask&&(a="metamask"),u=e,e.request?(a===""&&(a="eip-1193:"),f=l3(e)):e.sendAsync?f=Hg(e,e.sendAsync.bind(e)):e.send?f=Hg(e,e.send.bind(e)):qg.throwArgumentError("unsupported provider","provider",e),a||(a="unknown:")),super(a,n),dt(this,"jsonRpcFetchFunc",f),dt(this,"provider",u)}send(e,n){return this.jsonRpcFetchFunc(e,n)}}var s3={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function o3(l){if(typeof l=="number")return{value:l,unit:"px"};var e,n=(l.match(/^[0-9.]*/)||"").toString();n.includes(".")?e=parseFloat(n):e=parseInt(n,10);var a=(l.match(/[^0-9]*$/)||"").toString();return s3[a]?{value:e,unit:a}:(console.warn("React Spinners: ".concat(l," is not a valid css value. Defaulting to ").concat(e,"px.")),{value:e,unit:"px"})}function jg(l){var e=o3(l);return"".concat(e.value).concat(e.unit)}var u3=function(l,e,n){var a="react-spinners-".concat(l,"-").concat(n);if(typeof window>"u"||!window.document)return a;var f=document.createElement("style");document.head.appendChild(f);var u=f.sheet,p=`
85    @keyframes `.concat(a,` {
86      `).concat(e,`
87    }
88  `);return u&&u.insertRule(p,0),a},ou=function(){return ou=Object.assign||function(l){for(var e,n=1,a=arguments.length;n<a;n++){e=arguments[n];for(var f in e)Object.prototype.hasOwnProperty.call(e,f)&&(l[f]=e[f])}return l},ou.apply(this,arguments)},f3=function(l,e){var n={};for(var a in l)Object.prototype.hasOwnProperty.call(l,a)&&e.indexOf(a)<0&&(n[a]=l[a]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,a=Object.getOwnPropertySymbols(l);f<a.length;f++)e.indexOf(a[f])<0&&Object.prototype.propertyIsEnumerable.call(l,a[f])&&(n[a[f]]=l[a[f]]);return n},c3=u3("ClipLoader","0% {transform: rotate(0deg) scale(1)} 50% {transform: rotate(180deg) scale(0.8)} 100% {transform: rotate(360deg) scale(1)}","clip");function Dh(l){var e=l.loading,n=e===void 0?!0:e,a=l.color,f=a===void 0?"#000000":a,u=l.speedMultiplier,p=u===void 0?1:u,y=l.cssOverride,w=y===void 0?{}:y,_=l.size,N=_===void 0?35:_,C=f3(l,["loading","color","speedMultiplier","cssOverride","size"]),B=ou({background:"transparent !important",width:jg(N),height:jg(N),borderRadius:"100%",border:"2px solid",borderTopColor:f,borderBottomColor:"transparent",borderLeftColor:f,borderRightColor:f,display:"inline-block",animation:"".concat(c3," ").concat(.75/p,"s 0s infinite linear"),animationFillMode:"both"},w);return n?at.createElement("span",ou({style:B},C)):null}/**
89 * @license lucide-react v0.503.0 - ISC
90 *
91 * This source code is licensed under the ISC license.
92 * See the LICENSE file in the root directory of this source tree.
93 */const h3=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),d3=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,a)=>a?a.toUpperCase():n.toLowerCase()),Ig=l=>{const e=d3(l);return e.charAt(0).toUpperCase()+e.slice(1)},ey=(...l)=>l.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim(),p3=l=>{for(const e in l)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/**
94 * @license lucide-react v0.503.0 - ISC
95 *
96 * This source code is licensed under the ISC license.
97 * See the LICENSE file in the root directory of this source tree.
98 */var m3={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
99 * @license lucide-react v0.503.0 - ISC
100 *
101 * This source code is licensed under the ISC license.
102 * See the LICENSE file in the root directory of this source tree.
103 */const g3=at.forwardRef(({color:l="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:f="",children:u,iconNode:p,...y},w)=>at.createElement("svg",{ref:w,...m3,width:e,height:e,stroke:l,strokeWidth:a?Number(n)*24/Number(e):n,className:ey("lucide",f),...!u&&!p3(y)&&{"aria-hidden":"true"},...y},[...p.map(([_,N])=>at.createElement(_,N)),...Array.isArray(u)?u:[u]]));/**
104 * @license lucide-react v0.503.0 - ISC
105 *
106 * This source code is licensed under the ISC license.
107 * See the LICENSE file in the root directory of this source tree.
108 */const ba=(l,e)=>{const n=at.forwardRef(({className:a,...f},u)=>at.createElement(g3,{ref:u,iconNode:e,className:ey(`lucide-${h3(Ig(l))}`,`lucide-${l}`,a),...f}));return n.displayName=Ig(l),n};/**
109 * @license lucide-react v0.503.0 - ISC
110 *
111 * This source code is licensed under the ISC license.
112 * See the LICENSE file in the root directory of this source tree.
113 */const v3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],y3=ba("calendar",v3);/**
114 * @license lucide-react v0.503.0 - ISC
115 *
116 * This source code is licensed under the ISC license.
117 * See the LICENSE file in the root directory of this source tree.
118 */const b3=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
118y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],w3=ba("compass",b3);/**
119 * @license lucide-react v0.503.0 - ISC
120 *
121 * This source code is licensed under the ISC license.
122 * See the LICENSE file in the root directory of this source tree.
123 */const x3=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Gg=ba("shield",x3);/**
124 * @license lucide-react v0.503.0 - ISC
125 *
126 * This source code is licensed under the ISC license.
127 * See the LICENSE file in the root directory of this source tree.
128 */const A3=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}]],yh=ba("sword",A3);/**
129 * @license lucide-react v0.503.0 - ISC
130 *
131 * This source code is licensed under the ISC license.
132 * See the LICENSE file in the root directory of this source tree.
133 */const _3=[["path",{d:"M6 9H4.5a2.5 2.5 0 0 1 0-5H6",key:"17hqa7"}],["path",{d:"M18 9h1.5a2.5 2.5 0 0 0 0-5H18",key:"lmptdp"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22",key:"1nw9bq"}],["path",{d:"M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22",key:"1np0yb"}],["path",{d:"M18 2H6v7a6 6 0 0 0 12 0V2Z",key:"u46fv3"}]],bh=ba("trophy",_3);/**
134 * @license lucide-react v0.503.0 - ISC
135 *
136 * This source code is licensed under the ISC license.
137 * See the LICENSE file in the root directory of this source tree.
138 */const E3=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],M3=ba("upload",E3);/**
139 * @license lucide-react v0.503.0 - ISC
140 *
141 * This source code is licensed under the ISC license.
142 * See the LICENSE file in the root directory of this source tree.
143 */const S3=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],T3=ba("video",S3);function N3({walletAddress:l,signer:e,contract:n,setProfile:a,connectWallet:f}){const u=xs(),[p,y]=at.useState(!1);at.useEffect(()=>{l&&e&&n&&(async()=>{if(l&&e&&n){y(!0);try{const C=await n.getXP(l),B=await n.getLevel(l),H={level:Number(B),xp:Number(C),completedQuests:[],gridTheme:"basic-tent"};a(H),setTimeout(()=>{},2e3)}catch(C){console.error("Error initializing profile:",C),ue.error("Failed to load profile data")}finally{y(!1)}}})()},[l,e,n,a,u]);const w=async()=>{if(l)u("/dashboard");else try{await f()}catch(N){console.error("Error connecting wallet:",N),ue.error("Failed to connect wallet")}},_=[{icon:J.jsx(w3,{className:"w-8 h-8 text-indigo-500"}),title:"Explore Quests",description:"Discover exciting challenges and adventures in the GridQuest world"},{icon:J.jsx(Gg,{className:"w-8 h-8 text-indigo-500"}),title:"Earn Rewards",description:"Complete quests to earn XP and level up your profile"},{icon:J.jsx(yh,{className:"w-8 h-8 text-indigo-500"}),title:"Battle Challenges",description:"Face unique challenges and prove your worth"},{icon:J.jsx(bh,{className:"w-8 h-8 text-indigo-500"}),title:"Climb Leaderboards",description:"Compete with others and reach the top of the rankings"}];return l&&p?J.jsx("div",{className:"flex items-center justify-center min-h-screen",children:J.jsxs("div",{className:"text-center",children:[J.jsx(Dh,{color:"#4f46e5",size:40,className:"mx-auto"}),J.jsx("p",{className:"mt-4 text-lg text-gray-600",children:"Loading your adventure..."})]})}):J.jsx("div",{className:"min-h-screen w-full bg-gradient-to-br from-indigo-50 via-white to-purple-50",children:J.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-20",children:[J.jsxs("div",{className:"text-center mb-16",children:[J.jsx("h1",{className:"text-5xl sm:text-6xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600 mb-6",children:"Welcome to GridQuest"}),J.jsx("p",{className:"text-xl sm:text-2xl text-gray-600 max-w-3xl mx-auto mb-8",children:"Embark on an epic journey through the blockchain realm. Complete quests, earn rewards, and become a legendary hero."}),J.jsxs("div",{className:"relative inline-flex group",children:[J.jsx("div",{className:"absolute -inset-0.5 bg-gradient-to-r from-indigo-500 to-purple-500 rounded-lg blur opacity-60 group-hover:opacity-100 transition duration-1000 group-hover:duration-200 animate-pulse"}),J.jsx("button",{onClick:w,className:"relative px-8 py-4 bg-black text-white rounded-lg leading-none flex items-center",children:l?"Continue Your Quest":"Begin Your Quest"})]})]}),J.jsx("div",{className:`grid grid-cols-1 sm:grid-cols-2 lg
144        lg:grid-cols-4 gap-8 mb-16`,children:_.map((N,C)=>J.jsxs("div",{className:"bg-white rounded-xl shadow-xl p-6 transform hover:scale-105 transition-transform duration-300",children:[J.jsx("div",{className:"mb-4",children:N.icon}),J.jsx("h3",{className:"text-xl font-semibold text-gray-900 mb-2",children:N.title}),J.jsx("p",{className:"text-gray-600",children:N.description})]},C))}),J.jsx("div",{className:"bg-gradient-to-r from-indigo-100 to-purple-100 rounded-2xl p-8 sm:p-12",children:J.jsxs("div",{className:"text-center",children:[J.jsx("h2",{className:"text-3xl sm:text-4xl font-bold text-gray-900 mb-4",children:"Ready to Start Your Adventure?"}),J.jsx("p",{className:"text-lg text-gray-600 mb-8",children:"Connect your wallet to join thousands of heroes in the GridQuest. Glory awaits!"}),J.jsxs("div",{className:"flex justify-center space-x-4",children:[J.jsxs("div",{className:"flex items-center text-gray-600",children:[J.jsx(Gg,{className:"w-5 h-5 mr-2"}),J.jsx("span",{children:"Secure Blockchain"})]}),J.jsxs("div",{className:"flex items-center text-gray-600",children:[J.jsx(bh,{className:"w-5 h-5 mr-2"}),J.jsx("span",{children:"Daily Rewards"})]}),J.jsxs("div",{className:"flex items-center text-gray-600",children:[J.jsx(yh,{className:"w-5 h-5 mr-2"}),J.jsx("span",{children:"Epic Challenges"})]})]})]})})]})})}const R3=({videoId:l,onVideoEnd:e})=>{const n=at.useRef(null),[a,f]=at.useState(null);return at.useEffect(()=>{const u=()=>{if(window.YT&&window.YT.Player){const p=new window.YT.Player(n.current,{events:{onStateChange:y=>{y.data===window.YT.PlayerState.ENDED&&e()}}});f(p)}else setTimeout(u,500)};u()},[e]),J.jsxs("div",{className:"relative aspect-w-16 aspect-h-9 max-w-3xl mx-auto",children:[console.log("Video ID:",l),J.jsx("iframe",{ref:n,id:"player",src:`https://www.youtube.com/embed/${l}?enablejsapi=1`,title:"YouTube Video",allow:"autoplay; encrypted-media",allowFullScreen:!0,className:"w-full h-full rounded-lg shadow-md"}),J.jsx("div",{className:"absolute inset-0 rounded-lg ring-2 ring-indigo-200 ring-opacity-50 pointer-events-none"})]})};function C3({contract:l,signer:e}){const n=xs(),[a,f]=at.useState([]),[u,p]=at.useState(null),[y,w]=at.useState(!0),[_,N]=at.useState(!1);at.useEffect(()=>{const B=async()=>
144{if(l&&e)try{await e.getAddress()?(N(!0),H()):(N(!1),w(!1))}catch(q){console.error("Error checking wallet connection:",q),N(!1),w(!1)}else N(!1),w(!1)},H=async()=>{try{const q=await e.getAddress(),k=await l.getXP(q),z=await l.getLevel(q),L=Number(await l.questCount()),G=[];for(let Q=0;Q<L;Q++)await l.hasCompleted(q,Q)&&G.push(Q);p({xp:Number(k),level:Number(z),completedQuests:G,gridTheme:"default"});const I=[];for(let Q=0;Q<L;Q++){const W=await l.quests(Q),lt=await l.hasCompleted(q,Q);I.push({id:Q,title:W.title,questType:W.questType,xpReward:Number(W.xpReward),isActive:W.isActive,givesNFT:W.givesNFT,hasCompleted:lt,videoId:"BB49x_uMlGA"})}f(I),w(!1)}catch(q){console.error("Error fetching profile and quests:",q),ue.error("Failed to load data"),w(!1)}};B()},[l,e]);const C=async B=>{if(!l||!e){ue.error("Wallet not connected");return}try{await(await l.completeQuest(B)).wait(),ue.success("Quest completed!");const q=await e.getAddress(),k=await l.getXP(q),z=await l.getLevel(q),L={...u,xp:Number(k),level:Number(z),completedQuests:[...u.completedQuests,B]};p(L);const G=await l.hasCompleted(q,B);f(I=>I.map(Q=>Q.id===B?{...Q,hasCompleted:G}:Q))}catch(H){console.error("Error completing quest:",H),ue.error("Failed to complete quest")}};return _?y?J.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-gray-50 to-gray-200",children:J.jsx(Dh,{color:"#4f46e5",size:60})}):J.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:J.jsxs("div",{className:"bg-white shadow-lg rounded-xl p-6",children:[J.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Quest Dashboard"}),u&&J.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4 mb-6",children:[J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Level"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900",children:u.level})]}),J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"XP"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900",children:u.xp})]})]}),J.jsx("button",{onClick:()=>n("/grid"),className:"mb-6 px-4 py-2 bg-indigo-600 text-white rounded-lg shadow-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition-colors duration-200",children:"View Quest Grid"}),J.jsx("div",{className:"grid gap-6 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3",children:a.length===0?J.jsx("p",{className:"text-gray-600 col-span-full text-center",children:"No quests available."}):a.filter(B=>!B.hasCompleted).length===0?J.jsx("p",{className:"text-gray-600 col-span-full text-center",children:"No active or incomplete quests available."}):a.filter(B=>!B.hasCompleted).map(B=>J.jsxs("div",{className:"p-6 bg-white rounded-xl shadow-md hover:shadow-lg transition-shadow duration-200",children:[console.log("Quest Dashboard Quest:",B),J.jsx("h2",{className:"text-xl font-semibold text-gray-900 mb-3",children:B.title}),J.jsxs("div",{className:"space-y-2 text-sm text-gray-600",children:[J.jsxs("p",{children:[J.jsx("span",{className:"font-medium",children:"Type:"})," ",B.questType.replace("-"," ").toUpperCase()]}),J.jsxs("p",{children:[J.jsx("span",{className:"font-medium",children:"XP Reward:"})," ",B.xpReward]}),J.jsxs("p",{children:[J.jsx("span",{className:"font-medium",children:"Status:"})," ",B.isActive?"Active":"Inactive"]}),J.jsxs("p",{children:[J.jsx("span",{className:"font-medium",children:"NFT Reward:"})," ",B.givesNFT?"Yes":"No"]})]}),B.isActive?J.jsx("div",{className:"mt-4",children:B.questType==="video-task"&&B.videoId?J.jsxs(J.Fragment,{children:[console.log("Quest Dashboard Video ID:",B.videoId),J.jsx(R3,{videoId:B.videoId,onVideoEnd:()=>C(B.id)})]}):B.questType==="daily-login"?J.jsx("button",{onClick:()=>C(B.id),className:"w-full px-4 py-2 bg-indigo-600 text-white rounded-lg shadow-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition-colors duration-200",children:"Claim Daily Login Reward"}):B.questType==="file-upload"?J.jsx("input",{type:"file",accept:"*",onChange:H=>{H.target.files.length>0&&C(B.id)},className:"mt-2 w-full text-sm text-gray-600 file:mr-4 file:py-2 file:px-4 file:rounded-lg file:border-0 file:bg-indigo-600 file:text-white file:hover:bg-indigo-700 file:transition-colors"}):B.questType==="click-task"?J.jsx("button",{onClick:()=>C(B.id),className:"w-full px-4 py-2 bg-yellow-500 text-white rounded-lg shadow-md hover:bg-yellow-600 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 transition-colors duration-200",children:"Click to Complete"}):J.jsx("p",{className:"text-red-500 text-sm",children:"Unknown or misconfigured quest type."})}):J.jsx("p",{className:"text-gray-500 mt-4 text-sm",children:"This quest is not currently active."})]},B.id))})]})}):J.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-gray-50 to-gray-200",children:J.jsx("div",{className:"bg-white p-8 rounded-xl shadow-lg text-center",children:J.jsx("p",{className:"text-lg font-medium text-gray-700",children:"Please connect your wallet to view quests."})})})}function O3({contract:l,signer:e}){const n=xs(),[a,f]=at.useState(null),[u,p]=at.useState([]),[y,w]=at.useState(!0),[_,N]=at.useState(!1),C={default:{backgroundColor:"bg-gray-100",completedColor:"bg-green-500",incompleteColor:"bg-gray-300",textColor:"text-gray-900",border:"border-gray-400"},dark:{backgroundColor:"bg-gray-800",completedColor:"bg-green-600",incompleteColor:"bg-gray-600",textColor:"text-white",border:"border-gray-200"},vibrant:{backgroundColor:"bg-indigo-100",completedColor:"bg-purple-500",incompleteColor:"bg-indigo-200",textColor:"text-gray-900",border:"border-purple-600"}};if(at.useEffect(()=>{const k=async()=>
144{if(l&&e)try{await e.getAddress()?(N(!0),z()):(N(!1),w(!1))}catch(L){console.error("Error checking wallet connection:",L),N(!1),w(!1)}else N(!1),w(!1)},z=async()=>{try{const L=await e.getAddress(),G=await l.getXP(L),I=await l.getLevel(L),Q=Number(await l.questCount()),W=[],lt=[];for(let ut=0;ut<Q;ut++){const ht=await l.quests(ut),vt=await l.hasCompleted(L,ut);vt&&W.push(ut),lt.push({id:ut,title:ht.title,questType:ht.questType,xpReward:Number(ht.xpReward),isActive:ht.isActive,givesNFT:ht.givesNFT,hasCompleted:vt})}f({xp:Number(G),level:Number(I),completedQuests:W,gridTheme:"default"}),p(lt),w(!1)}catch(L){console.error("Error fetching profile and quests:",L),ue.error("Failed to load data"),w(!1)}};k()},[l,e]),!_)return J.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-gray-50 to-gray-200",children:J.jsx("div",{className:"bg-white p-8 rounded-xl shadow-lg text-center",children:J.jsx("p",{className:"text-lg font-medium text-gray-700",children:"Please connect your wallet to view quests."})})});if(y)return J.jsx("div",{className:"flex items-center justify-center min-h-screen bg-gradient-to-br from-gray-50 to-gray-200",children:J.jsx(Dh,{color:"#4f46e5",size:60})});const B=C[a.gridTheme]||C.default,H=Math.ceil(Math.sqrt(u.length)),q={display:"grid",gridTemplateColumns:`repeat(${H}, minmax(120px, 1fr))`,gap:"16px",padding:"16px"};return J.jsx("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8",children:J.jsxs("div",{className:"bg-white shadow-lg rounded-xl p-6",children:[J.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-6",children:"Quest Grid Visualization"}),J.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:[J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Level"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900",children:a.level})]}),J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"XP"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900",children:a.xp})]}),J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Theme"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900 capitalize",children:a.gridTheme})]}),J.jsxs("div",{className:"bg-gray-50 p-4 rounded-lg",children:[J.jsx("p",{className:"text-sm font-medium text-gray-600",children:"Completed Quests"}),J.jsx("p",{className:"text-lg font-semibold text-gray-900",children:a.completedQuests.length})]})]}),J.jsx("button",{onClick:()=>n("/dashboard"),className:"mb-6 px-4 py-2 bg-indigo-600 text-white rounded-lg shadow-md hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 transition-colors duration-200",children:"Back to Dashboard"}),J.jsxs("div",{className:`p-6 rounded-xl ${B.backgroundColor}`,children:[J.jsx("h2",{className:`text-xl font-semibold mb-4 ${B.textColor}`,children:"Quest Grid"}),J.jsxs("div",{style:q,children:[u.map(k=>J.jsxs("div",{className:`p-4 rounded-lg border ${B.border} ${k.hasCompleted?B.completedColor:B.incompleteColor} ${B.textColor} cursor-pointer hover:shadow-md transition-shadow duration-200`,onClick:()=>ue.info(`Quest: ${k.title}`),title:`Quest: ${k.title}
145XP: ${k.xpReward}
146Status: ${k.hasCompleted?"Completed":"Incomplete"}`,children:[J.jsx("p",{className:"font-semibold truncate text-sm",children:k.title}),J.jsxs("p",{className:"text-xs mt-1",children:["XP: ",k.xpReward]}),J.jsx("p",{className:"text-xs mt-1",children:k.hasCompleted?"✅ Completed":"⏳ Incomplete"})]},k.id)),Array.from({length:H*H-u.length}).map((k,z)=>J.jsx("div",{className:`p-4 rounded-lg border ${B.border} ${B.incompleteColor} opacity-50`},`empty-${z}`))]})]})]})})}function B3({contract:l,signer:e}){const[n,a]=at.useState({title:"",questType:"",xpReward:"",givesNFT:!1}),f=[{id:"daily-login",label:"Daily Login Reward",icon:y3},{id:"file-upload",label:"File Upload",icon:M3},{id:"click-task",label:"Click Task",icon:yh},{id:"video-task",label:"Video Task (YouTube)",icon:T3}],u=y=>{const{name:w,value:_,type:N,checked:C}=y.target;a({...n,[w]:N==="checkbox"?C:_})},p=async y=>{y.preventDefault();try{await(await l.connect(e).createQuest(n.title,n.questType,parseInt(n.xpReward),n.givesNFT)).wait(),alert("Quest created successfully!"),a({title:"",questType:"",xpReward:"",givesNFT:!1})}catch(w){console.error("Error creating quest:",w),alert("Failed to create quest")}};
146return J.jsx("div",{className:"max-w-2xl mx-auto mt-10",children:J.jsxs("div",{className:"bg-gradient-to-r from-indigo-50 to-purple-50 rounded-2xl p-8",children:[J.jsxs("div",{className:"flex items-center justify-center mb-8",children:[J.jsx(bh,{className:"w-10 h-10 text-indigo-600 mr-3"}),J.jsx("h2",{className:"text-4xl font-bold text-transparent bg-clip-text bg-gradient-to-r from-indigo-600 to-purple-600",children:"Create New Quest"})]}),J.jsxs("form",{onSubmit:p,className:"space-y-8",children:[J.jsxs("div",{className:"space-y-2",children:[J.jsx("label",{htmlFor:"title",className:"text-sm font-semibold text-gray-700",children:"Quest Title"}),J.jsx("input",{id:"title",className:"w-full px-4 py-3 rounded-lg border border-gray-200 focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition duration-200 bg-white shadow-sm",type:"text",name:"title",placeholder:"Enter an epic quest title",value:n.title,onChange:u,required:!0})]}),J.jsxs("div",{className:"space-y-2",children:[J.jsx("label",{htmlFor:"questType",className:"text-sm font-semibold text-gray-700",children:"Quest Type"}),J.jsx("div",{className:"grid grid-cols-2 gap-4",children:f.map(y=>{const w=y.icon;return J.jsxs("label",{className:`flex items-center p-4 rounded-lg border-2 cursor-pointer transition duration-200 ${n.questType===y.id?"border-indigo-500 bg-indigo-50":"border-gray-200 hover:border-indigo-200"}`,children:[J.jsx("input",{type:"radio",name:"questType",value:y.id,checked:n.questType===y.id,onChange:u,className:"hidden"}),J.jsx(w,{className:"w-5 h-5 text-indigo-600 mr-3"}),J.jsx("span",{className:"text-sm font-medium text-gray-900",children:y.label})]},y.id)})})]}),J.jsxs("div",{className:"space-y-2",children:[J.jsx("label",{htmlFor:"xpReward",className:"text-sm font-semibold text-gray-700",children:"XP Reward"}),J.jsxs("div",{className:"relative",children:[J.jsx("input",{id:"xpReward",className:"w-full px-4 py-3 rounded-lg border border-gray-200 focus:ring-2 focus:ring-indigo-500 focus:border-transparent transition duration-200 bg-white shadow-sm",type:"number",name:"xpReward",placeholder:"Enter XP amount",value:n.xpReward,onChange:u,required:!0}),J.jsx("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:J.jsx("span",{className:"text-gray-500",children:"XP"})})]})]}),J.jsxs("div",{className:"flex items-center bg-white p-4 rounded-lg border border-gray-200",children:[J.jsx("input",{id:"givesNFT",type:"checkbox",name:"givesNFT",checked:n.givesNFT,onChange:u,className:"w-5 h-5 text-indigo-600 border-gray-300 rounded focus:ring-indigo-500"}),J.jsx("label",{htmlFor:"givesNFT",className:"ml-3 text-sm font-medium text-gray-700",children:"Include NFT Reward"})]}),J.jsxs("button",{className:"w-full relative group overflow-hidden px-6 py-4 rounded-lg bg-gradient-to-r from-indigo-600 to-purple-600 text-white font-semibold shadow-lg hover:shadow-xl transition duration-200",type:"submit",children:[J.jsx("span",{className:"relative z-10",children:"Create Epic Quest"}),J.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-purple-600 to-indigo-600 opacity-0 group-hover:opacity-100 transition-opacity duration-200"})]})]})]})})}const k3="0xE3A88C0C4d1ffCEEA35d558360D1507972f486F8",D3=[{inputs:[{internalType:"address",name:"_rewardNFTContract",type:"address"},{internalType:"address",name:"_universalProfile",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ERC725Y_DataKeysValuesEmptyArray",type:"error"},{inputs:[],name:"ERC725Y_DataKeysValuesLengthMismatch",type:"error"},{inputs:[],name:"ERC725Y_MsgValueDisallowed",type:"error"},{inputs:[{internalType:"address",name:"callerAddress",type:"address"}],name:"OwnableCallerNotTheOwner",type:"error"},{inputs:[],name:"OwnableCannotSetZeroAddressAsOwner",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldAdmin",type:"address"},{indexed:!1,internalType:"address",name:"newAdmin",type:"address"}],name:"AdminChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"dataKey",type:"bytes32"},{indexed:!1,internalType:"bytes",name:"dataValue",type:"bytes"}],name:"DataChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"player",type:"address"},{indexed:!1,internalType:"uint256",name:"newLevel",type:"uint256"}],name:"LevelUp",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"player",type:"address"},{indexed:!1,internalType:"uint256",name:"level",type:"uint256"},{indexed:!1,internalType:"uint256",name:"xp",type:"uint256"}],name:"MetadataUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"player",type:"address"},{indexed:!1,internalType:"uint256",name:"questId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenId",type:"uint256"}],name:"NFTRewarded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"player",type:"address"},{indexed:!1,internalType:"uint256",name:"questId",type:"uint256"},{indexed:!1,internalType:"uint256",name:"xpEarned",type:"uint256"}],name:"QuestCompleted",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"questId",type:"uint256"},{indexed:!1,internalType:"string",name:"title",type:"string"},{indexed:!1,internalType:"uint256",name:"xp",type:"uint256"}],name:"QuestCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"player",type:"address"},{indexed:!1,internalType:"uint256",name:"newXP",type:"uint256"}],name:"XPUpdated",type:"event"},{inputs:[],name:"admin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"changeAdmin",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_questId",type:"uint256"}],name:"completeQuest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"completed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_title",type:"string"},{internalType:"string",name:"_type",type:"string"},{internalType:"uint256",name:"_xp",type:"uint256"},{internalType:"bool",name:"_givesNFT",type:"bool"}],name:"createQuest",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"eRC725Y",outputs:[{internalType:"contract ERC725Y",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataKey",type:"bytes32"}],name:"getData",outputs:[{internalType:"bytes",name:"dataValue",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32[]",name:"dataKeys",type:"bytes32[]"}],name:"getDataBatch",outputs:[{internalType:"bytes[]",name:"dataValues",type:"bytes[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getLevel",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"}],name:"getXP",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"player",type:"address"},{internalType:"uint256",name:"questId",type:"uint256"}],name:"hasCompleted",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"questCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"quests",outputs:[{internalType:"string",name:"title",type:"string"},{internalType:"string",name:"questType",type:"string"},{internalType:"uint256",name:"xpReward",type:"uint256"},{internalType:"bool",name:"isActive",type:"bool"},{internalType:"bool",name:"givesNFT",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"rewardNFTContract",outputs:[{internalType:"contract IERC721",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"dataKey",type:"bytes32"},{internalType:"bytes",name:"dataValue",type:"bytes"}],name:"setData",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"dataKeys",type:"bytes32[]"},{internalType:"bytes[]",name:"dataValues",type:"bytes[]"}],name:"setDataBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_newContract",type:"address"}],name:"setNFTContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"xp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];function Pg(){if(!window.ethereum)return alert("MetaMask is not installed!"),null;const l=new ty(window.lukso),e=l.getSigner();try{const n=new DA(k3,D3,e);return console.log(n),{provider:l,signer:e,contract:n}}catch(n){return console.error("Error creating contract:",n),null}}function U3(){const l=xs(),[e,n]=at.useState(null),[a,f]=at.useState(null),[u,p]=at.useState(""),[y,w]=at.useState(""),[_,N]=at.useState(null),[C,B]=at.useState(null),H="0x1069",q="0xBba320Afb3690192d10eA9664
146c2CA9F85b40dc58",k=I=>`${I.slice(0,5)}...${I.slice(-4)}`,z=async()=>{if(!window.lukso){ue.error("MetaMask or Lukso extension is not installed!");return}try{const I=new ty(window.lukso);await I.send("eth_requestAccounts",[]);const Q=I.getSigner(),W=await Q.getAddress();(await I.getNetwork()).chainId!==parseInt(H,16)?w("Please switch to the Lukso Testnet."):w("");const ut=await Pg();ut&&(n(ut.contract),f(ut.signer)),p(W),N(I),f(Q),W.toLowerCase()===q.toLowerCase()&&l("/add-quest")}catch(I){console.error("Failed to connect wallet:",I),ue.error("Failed to connect wallet")}};at.useEffect(()=>{(async()=>{if(_)try{(await _.getNetwork()).chainId!==parseInt(H,16)?w("Please switch to the Lukso Testnet."):w("")}catch(Q){console.error("Error checking network:",Q),ue.error("Error checking network")}})()},[_]),at.useEffect(()=>{if(window.lukso&&_){const I=async W=>{if(W.length===0)p(""),n(null),f(null),N(null),l("/");else{const lt=W[0];p(lt);const ut=_.getSigner();f(ut);const ht=await Pg();ht&&(n(ht.contract),f(ht.signer)),lt.toLowerCase()===q.toLowerCase()&&l("/add-quest")}},Q=()=>{window.location.reload()};return window.lukso.on("accountsChanged",I),window.lukso.on("chainChanged",Q),()=>{window.lukso.removeListener("accountsChanged",I),window.lukso.removeListener("chainChanged",Q)}}},[_,l]);const L=async()=>{if(!window.lukso){ue.error("MetaMask or Lukso extension is not installed!");return}try{await window.lukso.request({method:"wallet_switchEthereumChain",params:[{chainId:H}]}),w("")}catch(I){I.code===4902?await G():(console.error("Error switching network:",I),ue.error("Error switching network"))}},G=async()=>{try{await window.lukso.request({method:"wallet_addEthereumChain",params:[{chainId:H,chainName:"Lukso Testnet",rpcUrls:["https://rpc.testnet.lukso.network"],nativeCurrency:{name:"Lukso",symbol:"LYXt",decimals:18},blockExplorerUrls:["https://explorer.execution.testnet.lukso.network"]}]})}catch(I){console.error("Error adding network:",I),ue.error("Error adding network")}};return J.jsxs("div",{className:"min-h-screen bg-gradient-to-br from-gray-50 to-gray-200 text-gray-900 font-sans",children:[J.jsx(rw,{position:"top-right",autoClose:5e3,hideProgressBar:!1,newestOnTop:!0,closeOnClick:!0,rtl:!1,pauseOnFocusLoss:!0,draggable:!0,pauseOnHover:!0,theme:"colored"}),J.jsx("header",{className:"fixed top-0 left-0 right-0 z-50 bg-white shadow-md",children:J.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center",children:[J.jsx("h1",{className:"text-2xl font-bold text-indigo-600",children:J.jsx(w2,{to:"/",children:"GridQuest"})}),J.jsxs("button",{onClick:z,className:"px-4 py-2 bg-indigo-600 text-white rounded-lg shadow-md hover:bg-indigo-700 transition-colors duration-200 flex items-center gap-2","aria-label":"Connect Wallet",children:[J.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:J.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5.121 18.879A3 3 0 018 17h8a3 3 0 012.879 1.879M15 10a3 3 0 11-6 0 3 3 0 016 0zm6 2a9 9 0 11-18 0 9 9 0 0118 0z"})}),u?k(u):"Connect Wallet"]})]})}),y&&J.jsxs("div",{className:"fixed top-20 left-0 right-0 mx-auto max-w-md bg-red-500 text-white rounded-lg shadow-lg p-4 flex items-center justify-between z-50",children:[J.jsx("span",{children:y}),J.jsx("button",{onClick:L,className:"px-3 py-1 bg-white text-red-500 rounded-md hover:bg-gray-100 transition-colors duration-200",children:"Switch Network"})]}),J.jsx("main",{className:"pt-24 pb-8 px-4 sm:px-6 lg:px-8 min-h-screen flex items-center justify-center",children:J.jsxs(f2,{children:[J.jsx(ss,{path:"/",element:J.jsx(N3,{contract:e,signer:a,setProfile:B,walletAddress:u,connectWallet:z})}),J.jsx(ss,{path:"/dashboard",element:J.jsx(C3,{contract:e,signer:a,profile:C,setProfile:B})}),J.jsx(ss,{path:"/grid",element:J.jsx(O3,{contract:e,signer:a})}),J.jsx(ss,{path:"/add-quest",element:J.jsx(B3,{contract:e,signer:a})})]})})]})}bb.createRoot(document.getElementById("root")).render(J.jsx(at.StrictMode,{children:J.jsx(v2,{children:J.jsx(U3,{})})}));

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