diff --git a/assets/index-B1vQEfkO.js b/assets/index-B1vQEfkO.js deleted file mode 100644 index b4b791b..0000000 --- a/assets/index-B1vQEfkO.js +++ /dev/null @@ -1,170 +0,0 @@ -var UA=Object.defineProperty;var zA=(t,e,r)=>e in t?UA(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Ue=(t,e,r)=>(zA(t,typeof e!="symbol"?e+"":e,r),r);function VA(t,e){for(var r=0;rn[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function n(i){if(i.ep)return;i.ep=!0;const s=r(i);fetch(i.href,s)}})();var H5=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function mo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function qA(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var W5={exports:{}},wh={},G5={exports:{}},$e={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var vu=Symbol.for("react.element"),HA=Symbol.for("react.portal"),WA=Symbol.for("react.fragment"),GA=Symbol.for("react.strict_mode"),KA=Symbol.for("react.profiler"),JA=Symbol.for("react.provider"),YA=Symbol.for("react.context"),QA=Symbol.for("react.forward_ref"),XA=Symbol.for("react.suspense"),ZA=Symbol.for("react.memo"),e_=Symbol.for("react.lazy"),gb=Symbol.iterator;function t_(t){return t===null||typeof t!="object"?null:(t=gb&&t[gb]||t["@@iterator"],typeof t=="function"?t:null)}var K5={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J5=Object.assign,Y5={};function nc(t,e,r){this.props=t,this.context=e,this.refs=Y5,this.updater=r||K5}nc.prototype.isReactComponent={};nc.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};nc.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Q5(){}Q5.prototype=nc.prototype;function pg(t,e,r){this.props=t,this.context=e,this.refs=Y5,this.updater=r||K5}var gg=pg.prototype=new Q5;gg.constructor=pg;J5(gg,nc.prototype);gg.isPureReactComponent=!0;var mb=Array.isArray,X5=Object.prototype.hasOwnProperty,mg={current:null},Z5={key:!0,ref:!0,__self:!0,__source:!0};function e3(t,e,r){var n,i={},s=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)X5.call(e,n)&&!Z5.hasOwnProperty(n)&&(i[n]=e[n]);var a=arguments.length-2;if(a===1)i.children=r;else if(1>>1,d=x[b];if(0>>1;bi(m,R))Ni(B,m)?(x[b]=B,x[N]=R,b=N):(x[b]=m,x[$]=R,b=$);else if(Ni(B,R))x[b]=B,x[N]=R,b=N;else break e}}return _}function i(x,_){var R=x.sortIndex-_.sortIndex;return R!==0?R:x.id-_.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var l=[],c=[],f=1,u=null,h=3,y=!1,g=!1,p=!1,k=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function A(x){for(var _=r(c);_!==null;){if(_.callback===null)n(c);else if(_.startTime<=x)n(c),_.sortIndex=_.expirationTime,e(l,_);else break;_=r(c)}}function P(x){if(p=!1,A(x),!g)if(r(l)!==null)g=!0,I(M);else{var _=r(c);_!==null&&O(P,_.startTime-x)}}function M(x,_){g=!1,p&&(p=!1,w(F),F=-1),y=!0;var R=h;try{for(A(_),u=r(l);u!==null&&(!(u.expirationTime>_)||x&&!te());){var b=u.callback;if(typeof b=="function"){u.callback=null,h=u.priorityLevel;var d=b(u.expirationTime<=_);_=t.unstable_now(),typeof d=="function"?u.callback=d:u===r(l)&&n(l),A(_)}else n(l);u=r(l)}if(u!==null)var T=!0;else{var $=r(c);$!==null&&O(P,$.startTime-_),T=!1}return T}finally{u=null,h=R,y=!1}}var j=!1,U=null,F=-1,G=5,J=-1;function te(){return!(t.unstable_now()-Jx||125b?(x.sortIndex=R,e(c,x),r(l)===null&&x===r(c)&&(p?(w(F),F=-1):p=!0,O(P,R-b))):(x.sortIndex=d,e(l,x),g||y||(g=!0,I(M))),x},t.unstable_shouldYield=te,t.unstable_wrapCallback=function(x){var _=h;return function(){var R=h;h=_;try{return x.apply(this,arguments)}finally{h=R}}}})(i3);n3.exports=i3;var h_=n3.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var s3=S,xn=h_;function ie(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iy=Object.prototype.hasOwnProperty,v_=/^[: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]*$/,bb={},wb={};function y_(t){return iy.call(wb,t)?!0:iy.call(bb,t)?!1:v_.test(t)?wb[t]=!0:(bb[t]=!0,!1)}function p_(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function g_(t,e,r,n){if(e===null||typeof e>"u"||p_(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Xr(t,e,r,n,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Tr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Tr[t]=new Xr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Tr[e]=new Xr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Tr[t]=new Xr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Tr[t]=new Xr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Tr[t]=new Xr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Tr[t]=new Xr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Tr[t]=new Xr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Tr[t]=new Xr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Tr[t]=new Xr(t,5,!1,t.toLowerCase(),null,!1,!1)});var bg=/[\-:]([a-z])/g;function wg(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(bg,wg);Tr[e]=new Xr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(bg,wg);Tr[e]=new Xr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(bg,wg);Tr[e]=new Xr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Tr[t]=new Xr(t,1,!1,t.toLowerCase(),null,!1,!1)});Tr.xlinkHref=new Xr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Tr[t]=new Xr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Cg(t,e,r,n){var i=Tr.hasOwnProperty(e)?Tr[e]:null;(i!==null?i.type!==0:n||!(2a||i[o]!==s[a]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{F1=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Vc(t):""}function m_(t){switch(t.tag){case 5:return Vc(t.type);case 16:return Vc("Lazy");case 13:return Vc("Suspense");case 19:return Vc("SuspenseList");case 0:case 2:case 15:return t=U1(t.type,!1),t;case 11:return t=U1(t.type.render,!1),t;case 1:return t=U1(t.type,!0),t;default:return""}}function ly(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case el:return"Fragment";case Za:return"Portal";case sy:return"Profiler";case Eg:return"StrictMode";case oy:return"Suspense";case ay:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case l3:return(t.displayName||"Context")+".Consumer";case a3:return(t._context.displayName||"Context")+".Provider";case Sg:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case kg:return e=t.displayName||null,e!==null?e:ly(t.type)||"Memo";case Os:e=t._payload,t=t._init;try{return ly(t(e))}catch{}}return null}function x_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ly(e);case 8:return e===Eg?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function oo(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function f3(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function b_(t){var e=f3(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,s=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){n=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fu(t){t._valueTracker||(t._valueTracker=b_(t))}function u3(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=f3(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function n0(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function cy(t,e){var r=e.checked;return Vt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Eb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=oo(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function d3(t,e){e=e.checked,e!=null&&Cg(t,"checked",e,!1)}function fy(t,e){d3(t,e);var r=oo(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?uy(t,e.type,r):e.hasOwnProperty("defaultValue")&&uy(t,e.type,oo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Sb(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function uy(t,e,r){(e!=="number"||n0(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var qc=Array.isArray;function gl(t,e,r,n){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Uu.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Pf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Qc={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},w_=["Webkit","ms","Moz","O"];Object.keys(Qc).forEach(function(t){w_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qc[e]=Qc[t]})});function p3(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Qc.hasOwnProperty(t)&&Qc[t]?(""+e).trim():e+"px"}function g3(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=p3(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var C_=Vt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vy(t,e){if(e){if(C_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ie(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ie(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ie(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ie(62))}}function yy(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";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 py=null;function Ag(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gy=null,ml=null,xl=null;function _b(t){if(t=gu(t)){if(typeof gy!="function")throw Error(ie(280));var e=t.stateNode;e&&(e=Ah(e),gy(t.stateNode,t.type,e))}}function m3(t){ml?xl?xl.push(t):xl=[t]:ml=t}function x3(){if(ml){var t=ml,e=xl;if(xl=ml=null,_b(t),e)for(t=0;t>>=0,t===0?32:31-(O_(t)/N_|0)|0}var zu=64,Vu=4194304;function Hc(t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function a0(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~i;a!==0?n=Hc(a):(s&=o,s!==0&&(n=Hc(s)))}else o=r&~i,o!==0?n=Hc(o):s!==0&&(n=Hc(s));if(n===0)return 0;if(e!==0&&e!==n&&!(e&i)&&(i=n&-n,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function yu(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ii(e),t[e]=r}function L_(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=Zc),Db=" ",Bb=!1;function j3(t,e){switch(t){case"keyup":return dT.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F3(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var tl=!1;function vT(t,e){switch(t){case"compositionend":return F3(e);case"keypress":return e.which!==32?null:(Bb=!0,Db);case"textInput":return t=e.data,t===Db&&Bb?null:t;default:return null}}function yT(t,e){if(tl)return t==="compositionend"||!Ng&&j3(t,e)?(t=B3(),Ad=Rg=js=null,tl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Ub(r)}}function q3(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?q3(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function H3(){for(var t=window,e=n0();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=n0(t.document)}return e}function $g(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function ST(t){var e=H3(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&q3(r.ownerDocument.documentElement,r)){if(n!==null&&$g(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=r.textContent.length,s=Math.min(n.start,i);n=n.end===void 0?s:Math.min(n.end,i),!t.extend&&s>n&&(i=n,n=s,s=i),i=zb(r,s);var o=zb(r,n);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,rl=null,Ey=null,tf=null,Sy=!1;function Vb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sy||rl==null||rl!==n0(n)||(n=rl,"selectionStart"in n&&$g(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),tf&&Df(tf,n)||(tf=n,n=f0(Ey,"onSelect"),0sl||(t.current=Py[sl],Py[sl]=null,sl--)}function st(t,e){sl++,Py[sl]=t.current,t.current=e}var ao={},Lr=bo(ao),on=bo(!1),ha=ao;function $l(t,e){var r=t.type.contextTypes;if(!r)return ao;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in r)i[s]=e[s];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function an(t){return t=t.childContextTypes,t!=null}function d0(){Nt(on),Nt(Lr)}function Yb(t,e,r){if(Lr.current!==ao)throw Error(ie(168));st(Lr,e),st(on,r)}function e4(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var i in n)if(!(i in e))throw Error(ie(108,x_(t)||"Unknown",i));return Vt({},r,n)}function h0(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ao,ha=Lr.current,st(Lr,t),st(on,on.current),!0}function Qb(t,e,r){var n=t.stateNode;if(!n)throw Error(ie(169));r?(t=e4(t,e,ha),n.__reactInternalMemoizedMergedChildContext=t,Nt(on),Nt(Lr),st(Lr,t)):Nt(on),st(on,r)}var Gi=null,_h=!1,tv=!1;function t4(t){Gi===null?Gi=[t]:Gi.push(t)}function DT(t){_h=!0,t4(t)}function wo(){if(!tv&&Gi!==null){tv=!0;var t=0,e=Xe;try{var r=Gi;for(Xe=1;t>=o,i-=o,Qi=1<<32-ii(e)+i|r<F?(G=U,U=null):G=U.sibling;var J=h(w,U,A[F],P);if(J===null){U===null&&(U=G);break}t&&U&&J.alternate===null&&e(w,U),E=s(J,E,F),j===null?M=J:j.sibling=J,j=J,U=G}if(F===A.length)return r(w,U),Bt&&Vo(w,F),M;if(U===null){for(;FF?(G=U,U=null):G=U.sibling;var te=h(w,U,J.value,P);if(te===null){U===null&&(U=G);break}t&&U&&te.alternate===null&&e(w,U),E=s(te,E,F),j===null?M=te:j.sibling=te,j=te,U=G}if(J.done)return r(w,U),Bt&&Vo(w,F),M;if(U===null){for(;!J.done;F++,J=A.next())J=u(w,J.value,P),J!==null&&(E=s(J,E,F),j===null?M=J:j.sibling=J,j=J);return Bt&&Vo(w,F),M}for(U=n(w,U);!J.done;F++,J=A.next())J=y(U,w,F,J.value,P),J!==null&&(t&&J.alternate!==null&&U.delete(J.key===null?F:J.key),E=s(J,E,F),j===null?M=J:j.sibling=J,j=J);return t&&U.forEach(function(se){return e(w,se)}),Bt&&Vo(w,F),M}function k(w,E,A,P){if(typeof A=="object"&&A!==null&&A.type===el&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case ju:e:{for(var M=A.key,j=E;j!==null;){if(j.key===M){if(M=A.type,M===el){if(j.tag===7){r(w,j.sibling),E=i(j,A.props.children),E.return=w,w=E;break e}}else if(j.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===Os&&i2(M)===j.type){r(w,j.sibling),E=i(j,A.props),E.ref=Tc(w,j,A),E.return=w,w=E;break e}r(w,j);break}else e(w,j);j=j.sibling}A.type===el?(E=ia(A.props.children,w.mode,P,A.key),E.return=w,w=E):(P=Nd(A.type,A.key,A.props,null,w.mode,P),P.ref=Tc(w,E,A),P.return=w,w=P)}return o(w);case Za:e:{for(j=A.key;E!==null;){if(E.key===j)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){r(w,E.sibling),E=i(E,A.children||[]),E.return=w,w=E;break e}else{r(w,E);break}else e(w,E);E=E.sibling}E=cv(A,w.mode,P),E.return=w,w=E}return o(w);case Os:return j=A._init,k(w,E,j(A._payload),P)}if(qc(A))return g(w,E,A,P);if(Ec(A))return p(w,E,A,P);Yu(w,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,E!==null&&E.tag===6?(r(w,E.sibling),E=i(E,A),E.return=w,w=E):(r(w,E),E=lv(A,w.mode,P),E.return=w,w=E),o(w)):r(w,E)}return k}var Bl=c4(!0),f4=c4(!1),mu={},Ai=bo(mu),Ff=bo(mu),Uf=bo(mu);function Xo(t){if(t===mu)throw Error(ie(174));return t}function qg(t,e){switch(st(Uf,e),st(Ff,t),st(Ai,mu),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:hy(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=hy(e,t)}Nt(Ai),st(Ai,e)}function Ll(){Nt(Ai),Nt(Ff),Nt(Uf)}function u4(t){Xo(Uf.current);var e=Xo(Ai.current),r=hy(e,t.type);e!==r&&(st(Ff,t),st(Ai,r))}function Hg(t){Ff.current===t&&(Nt(Ai),Nt(Ff))}var Ut=bo(0);function x0(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var rv=[];function Wg(){for(var t=0;tr?r:4,t(!0);var n=nv.transition;nv.transition={};try{t(!1),e()}finally{Xe=r,nv.transition=n}}function _4(){return $n().memoizedState}function FT(t,e,r){var n=Xs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},T4(t))I4(e,r);else if(r=s4(t,e,r,n),r!==null){var i=Kr();si(r,t,n,i),P4(r,e,n)}}function UT(t,e,r){var n=Xs(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(T4(t))I4(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,a=s(o,r);if(i.hasEagerState=!0,i.eagerState=a,li(a,o)){var l=e.interleaved;l===null?(i.next=i,zg(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=s4(t,e,i,n),r!==null&&(i=Kr(),si(r,t,n,i),P4(r,e,n))}}function T4(t){var e=t.alternate;return t===zt||e!==null&&e===zt}function I4(t,e){rf=b0=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function P4(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Tg(t,r)}}var w0={readContext:Nn,useCallback:Pr,useContext:Pr,useEffect:Pr,useImperativeHandle:Pr,useInsertionEffect:Pr,useLayoutEffect:Pr,useMemo:Pr,useReducer:Pr,useRef:Pr,useState:Pr,useDebugValue:Pr,useDeferredValue:Pr,useTransition:Pr,useMutableSource:Pr,useSyncExternalStore:Pr,useId:Pr,unstable_isNewReconciler:!1},zT={readContext:Nn,useCallback:function(t,e){return vi().memoizedState=[t,e===void 0?null:e],t},useContext:Nn,useEffect:o2,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Pd(4194308,4,C4.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Pd(4194308,4,t,e)},useInsertionEffect:function(t,e){return Pd(4,2,t,e)},useMemo:function(t,e){var r=vi();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=vi();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=FT.bind(null,zt,t),[n.memoizedState,t]},useRef:function(t){var e=vi();return t={current:t},e.memoizedState=t},useState:s2,useDebugValue:Qg,useDeferredValue:function(t){return vi().memoizedState=t},useTransition:function(){var t=s2(!1),e=t[0];return t=jT.bind(null,t[1]),vi().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=zt,i=vi();if(Bt){if(r===void 0)throw Error(ie(407));r=r()}else{if(r=e(),xr===null)throw Error(ie(349));ya&30||v4(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,o2(p4.bind(null,n,s,t),[t]),n.flags|=2048,qf(9,y4.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=vi(),e=xr.identifierPrefix;if(Bt){var r=Xi,n=Qi;r=(n&~(1<<32-ii(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=zf++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[mi]=e,t[jf]=n,j4(t,e,!1,!1),e.stateNode=t;e:{switch(o=yy(r,n),r){case"dialog":Mt("cancel",t),Mt("close",t),i=n;break;case"iframe":case"object":case"embed":Mt("load",t),i=n;break;case"video":case"audio":for(i=0;iFl&&(e.flags|=128,n=!0,Ic(s,!1),e.lanes=4194304)}else{if(!n)if(t=x0(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Ic(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Bt)return Rr(e),null}else 2*tr()-s.renderingStartTime>Fl&&r!==1073741824&&(e.flags|=128,n=!0,Ic(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(r=s.last,r!==null?r.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=tr(),e.sibling=null,r=Ut.current,st(Ut,n?r&1|2:r&1),e):(Rr(e),null);case 22:case 23:return nm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?dn&1073741824&&(Rr(e),e.subtreeFlags&6&&(e.flags|=8192)):Rr(e),null;case 24:return null;case 25:return null}throw Error(ie(156,e.tag))}function YT(t,e){switch(Bg(e),e.tag){case 1:return an(e.type)&&d0(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ll(),Nt(on),Nt(Lr),Wg(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Hg(e),null;case 13:if(Nt(Ut),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ie(340));Dl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Nt(Ut),null;case 4:return Ll(),null;case 10:return Ug(e.type._context),null;case 22:case 23:return nm(),null;case 24:return null;default:return null}}var Xu=!1,Or=!1,QT=typeof WeakSet=="function"?WeakSet:Set,fe=null;function cl(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Wt(t,e,n)}else r.current=null}function zy(t,e,r){try{r()}catch(n){Wt(t,e,n)}}var y2=!1;function XT(t,e){if(ky=l0,t=H3(),$g(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{r.nodeType,s.nodeType}catch{r=null;break e}var o=0,a=-1,l=-1,c=0,f=0,u=t,h=null;t:for(;;){for(var y;u!==r||i!==0&&u.nodeType!==3||(a=o+i),u!==s||n!==0&&u.nodeType!==3||(l=o+n),u.nodeType===3&&(o+=u.nodeValue.length),(y=u.firstChild)!==null;)h=u,u=y;for(;;){if(u===t)break t;if(h===r&&++c===i&&(a=o),h===s&&++f===n&&(l=o),(y=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=y}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ay={focusedElem:t,selectionRange:r},l0=!1,fe=e;fe!==null;)if(e=fe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,fe=t;else for(;fe!==null;){e=fe;try{var g=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var p=g.memoizedProps,k=g.memoizedState,w=e.stateNode,E=w.getSnapshotBeforeUpdate(e.elementType===e.type?p:Yn(e.type,p),k);w.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var A=e.stateNode.containerInfo;A.nodeType===1?A.textContent="":A.nodeType===9&&A.documentElement&&A.removeChild(A.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ie(163))}}catch(P){Wt(e,e.return,P)}if(t=e.sibling,t!==null){t.return=e.return,fe=t;break}fe=e.return}return g=y2,y2=!1,g}function nf(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&zy(e,r,s)}i=i.next}while(i!==n)}}function Ph(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Vy(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function z4(t){var e=t.alternate;e!==null&&(t.alternate=null,z4(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[mi],delete e[jf],delete e[Iy],delete e[NT],delete e[$T])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function V4(t){return t.tag===5||t.tag===3||t.tag===4}function p2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||V4(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.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function qy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=u0));else if(n!==4&&(t=t.child,t!==null))for(qy(t,e,r),t=t.sibling;t!==null;)qy(t,e,r),t=t.sibling}function Hy(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Hy(t,e,r),t=t.sibling;t!==null;)Hy(t,e,r),t=t.sibling}var Cr=null,Xn=!1;function ks(t,e,r){for(r=r.child;r!==null;)q4(t,e,r),r=r.sibling}function q4(t,e,r){if(ki&&typeof ki.onCommitFiberUnmount=="function")try{ki.onCommitFiberUnmount(Ch,r)}catch{}switch(r.tag){case 5:Or||cl(r,e);case 6:var n=Cr,i=Xn;Cr=null,ks(t,e,r),Cr=n,Xn=i,Cr!==null&&(Xn?(t=Cr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Cr.removeChild(r.stateNode));break;case 18:Cr!==null&&(Xn?(t=Cr,r=r.stateNode,t.nodeType===8?ev(t.parentNode,r):t.nodeType===1&&ev(t,r),Nf(t)):ev(Cr,r.stateNode));break;case 4:n=Cr,i=Xn,Cr=r.stateNode.containerInfo,Xn=!0,ks(t,e,r),Cr=n,Xn=i;break;case 0:case 11:case 14:case 15:if(!Or&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){i=n=n.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&zy(r,e,o),i=i.next}while(i!==n)}ks(t,e,r);break;case 1:if(!Or&&(cl(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){Wt(r,e,a)}ks(t,e,r);break;case 21:ks(t,e,r);break;case 22:r.mode&1?(Or=(n=Or)||r.memoizedState!==null,ks(t,e,r),Or=n):ks(t,e,r);break;default:ks(t,e,r)}}function g2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new QT),e.forEach(function(n){var i=aI.bind(null,t,n);r.has(n)||(r.add(n),n.then(i,i))})}}function zn(t,e){var r=e.deletions;if(r!==null)for(var n=0;ni&&(i=o),n&=~s}if(n=i,n=tr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*eI(n/1960))-n,10t?16:t,Fs===null)var n=!1;else{if(t=Fs,Fs=null,S0=0,qe&6)throw Error(ie(331));var i=qe;for(qe|=4,fe=t.current;fe!==null;){var s=fe,o=s.child;if(fe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;ltr()-tm?na(t,0):em|=r),ln(t,e)}function X4(t,e){e===0&&(t.mode&1?(e=Vu,Vu<<=1,!(Vu&130023424)&&(Vu=4194304)):e=1);var r=Kr();t=ss(t,e),t!==null&&(yu(t,e,r),ln(t,r))}function oI(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),X4(t,r)}function aI(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,i=t.memoizedState;i!==null&&(r=i.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ie(314))}n!==null&&n.delete(e),X4(t,r)}var Z4;Z4=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||on.current)nn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return nn=!1,KT(t,e,r);nn=!!(t.flags&131072)}else nn=!1,Bt&&e.flags&1048576&&r4(e,y0,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Rd(t,e),t=e.pendingProps;var i=$l(e,Lr.current);wl(e,r),i=Kg(null,e,n,t,i,r);var s=Jg();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,an(n)?(s=!0,h0(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Vg(e),i.updater=Th,e.stateNode=i,i._reactInternals=e,$y(e,n,t,r),e=Ly(null,e,n,!0,s,r)):(e.tag=0,Bt&&s&&Dg(e),Hr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Rd(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=cI(n),t=Yn(n,t),i){case 0:e=By(null,e,n,t,r);break e;case 1:e=d2(null,e,n,t,r);break e;case 11:e=f2(null,e,n,t,r);break e;case 14:e=u2(null,e,n,Yn(n.type,t),r);break e}throw Error(ie(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Yn(n,i),By(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Yn(n,i),d2(t,e,n,i,r);case 3:e:{if(D4(e),t===null)throw Error(ie(387));n=e.pendingProps,s=e.memoizedState,i=s.element,o4(t,e),m0(e,n,null,r);var o=e.memoizedState;if(n=o.element,s.isDehydrated)if(s={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=jl(Error(ie(423)),e),e=h2(t,e,n,r,i);break e}else if(n!==i){i=jl(Error(ie(424)),e),e=h2(t,e,n,r,i);break e}else for(pn=Js(e.stateNode.containerInfo.firstChild),gn=e,Bt=!0,Zn=null,r=f4(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Dl(),n===i){e=os(t,e,r);break e}Hr(t,e,n,r)}e=e.child}return e;case 5:return u4(e),t===null&&My(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,_y(n,i)?o=null:s!==null&&_y(n,s)&&(e.flags|=32),$4(t,e),Hr(t,e,o,r),e.child;case 6:return t===null&&My(e),null;case 13:return B4(t,e,r);case 4:return qg(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Bl(e,null,n,r):Hr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Yn(n,i),f2(t,e,n,i,r);case 7:return Hr(t,e,e.pendingProps,r),e.child;case 8:return Hr(t,e,e.pendingProps.children,r),e.child;case 12:return Hr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,st(p0,n._currentValue),n._currentValue=o,s!==null)if(li(s.value,o)){if(s.children===i.children&&!on.current){e=os(t,e,r);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var a=s.dependencies;if(a!==null){o=s.child;for(var l=a.firstContext;l!==null;){if(l.context===n){if(s.tag===1){l=ts(-1,r&-r),l.tag=2;var c=s.updateQueue;if(c!==null){c=c.shared;var f=c.pending;f===null?l.next=l:(l.next=f.next,f.next=l),c.pending=l}}s.lanes|=r,l=s.alternate,l!==null&&(l.lanes|=r),Oy(s.return,r,e),a.lanes|=r;break}l=l.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(ie(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),Oy(o,r,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}Hr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,wl(e,r),i=Nn(i),n=n(i),e.flags|=1,Hr(t,e,n,r),e.child;case 14:return n=e.type,i=Yn(n,e.pendingProps),i=Yn(n.type,i),u2(t,e,n,i,r);case 15:return O4(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:Yn(n,i),Rd(t,e),e.tag=1,an(n)?(t=!0,h0(e)):t=!1,wl(e,r),l4(e,n,i),$y(e,n,i,r),Ly(null,e,n,!0,t,r);case 19:return L4(t,e,r);case 22:return N4(t,e,r)}throw Error(ie(156,e.tag))};function e8(t,e){return A3(t,e)}function lI(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(t,e,r,n){return new lI(t,e,r,n)}function sm(t){return t=t.prototype,!(!t||!t.isReactComponent)}function cI(t){if(typeof t=="function")return sm(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Sg)return 11;if(t===kg)return 14}return 2}function Zs(t,e){var r=t.alternate;return r===null?(r=Rn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Nd(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")sm(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case el:return ia(r.children,i,s,e);case Eg:o=8,i|=8;break;case sy:return t=Rn(12,r,e,i|2),t.elementType=sy,t.lanes=s,t;case oy:return t=Rn(13,r,e,i),t.elementType=oy,t.lanes=s,t;case ay:return t=Rn(19,r,e,i),t.elementType=ay,t.lanes=s,t;case c3:return Mh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case a3:o=10;break e;case l3:o=9;break e;case Sg:o=11;break e;case kg:o=14;break e;case Os:o=16,n=null;break e}throw Error(ie(130,t==null?t:typeof t,""))}return e=Rn(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function ia(t,e,r,n){return t=Rn(7,t,n,e),t.lanes=r,t}function Mh(t,e,r,n){return t=Rn(22,t,n,e),t.elementType=c3,t.lanes=r,t.stateNode={isHidden:!1},t}function lv(t,e,r){return t=Rn(6,t,null,e),t.lanes=r,t}function cv(t,e,r){return e=Rn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function fI(t,e,r,n,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=V1(0),this.expirationTimes=V1(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=V1(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function om(t,e,r,n,i,s,o,a,l){return t=new fI(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Rn(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vg(s),t}function uI(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i8)}catch(t){console.error(t)}}i8(),r3.exports=Cn;var Co=r3.exports;const pI=mo(Co),fm=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Bh=S.createContext({});function gI(){return S.useContext(Bh).visualElement}const xu=S.createContext(null),Lh=typeof document<"u",_0=Lh?S.useLayoutEffect:S.useEffect,s8=S.createContext({strict:!1});function mI(t,e,r,n){const i=gI(),s=S.useContext(s8),o=S.useContext(xu),a=S.useContext(fm).reducedMotion,l=S.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceId:o?o.id:void 0,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;return _0(()=>{c&&c.render()}),(window.HandoffAppearAnimations?_0:S.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),c}function ul(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function xI(t,e,r){return S.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):ul(r)&&(r.current=n))},[e])}function Wf(t){return typeof t=="string"||Array.isArray(t)}function jh(t){return typeof t=="object"&&typeof t.start=="function"}const bI=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function Fh(t){return jh(t.animate)||bI.some(e=>Wf(t[e]))}function o8(t){return!!(Fh(t)||t.variants)}function wI(t,e){if(Fh(t)){const{initial:r,animate:n}=t;return{initial:r===!1||Wf(r)?r:void 0,animate:Wf(n)?n:void 0}}return t.inherit!==!1?e:{}}function CI(t){const{initial:e,animate:r}=wI(t,S.useContext(Bh));return S.useMemo(()=>({initial:e,animate:r}),[k2(e),k2(r)])}function k2(t){return Array.isArray(t)?t.join(" "):t}const Ui=t=>({isEnabled:e=>t.some(r=>!!e[r])}),Gf={measureLayout:Ui(["layout","layoutId","drag"]),animation:Ui(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:Ui(["exit"]),drag:Ui(["drag","dragControls"]),focus:Ui(["whileFocus"]),hover:Ui(["whileHover","onHoverStart","onHoverEnd"]),tap:Ui(["whileTap","onTap","onTapStart","onTapCancel"]),pan:Ui(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:Ui(["whileInView","onViewportEnter","onViewportLeave"])};function EI(t){for(const e in t)e==="projectionNodeConstructor"?Gf.projectionNodeConstructor=t[e]:Gf[e].Component=t[e]}function Uh(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const af={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let SI=1;function kI(){return Uh(()=>{if(af.hasEverUpdated)return SI++})}const um=S.createContext({});class AI extends dr.Component{getSnapshotBeforeUpdate(){const{visualElement:e,props:r}=this.props;return e&&e.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}}const a8=S.createContext({}),_I=Symbol.for("motionComponentSymbol");function TI({preloadedFeatures:t,createVisualElement:e,projectionNodeConstructor:r,useRender:n,useVisualState:i,Component:s}){t&&EI(t);function o(l,c){const f={...S.useContext(fm),...l,layoutId:II(l)},{isStatic:u}=f;let h=null;const y=CI(l),g=u?void 0:kI(),p=i(l,u);if(!u&&Lh){y.visualElement=mI(s,p,f,e);const k=S.useContext(s8).strict,w=S.useContext(a8);y.visualElement&&(h=y.visualElement.loadFeatures(f,k,t,g,r||Gf.projectionNodeConstructor,w))}return S.createElement(AI,{visualElement:y.visualElement,props:f},h,S.createElement(Bh.Provider,{value:y},n(s,l,g,xI(p,y.visualElement,c),p,u,y.visualElement)))}const a=S.forwardRef(o);return a[_I]=s,a}function II({layoutId:t}){const e=S.useContext(um).id;return e&&t!==void 0?e+"-"+t:t}function PI(t){function e(n,i={}){return TI(t(n,i))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,i)=>(r.has(i)||r.set(i,e(i)),r.get(i))})}const RI=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dm(t){return typeof t!="string"||t.includes("-")?!1:!!(RI.indexOf(t)>-1||/[A-Z]/.test(t))}const T0={};function MI(t){Object.assign(T0,t)}const I0=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],oc=new Set(I0);function l8(t,{layout:e,layoutId:r}){return oc.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!T0[t]||t==="opacity")}const cn=t=>!!(t!=null&&t.getVelocity),OI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},NI=(t,e)=>I0.indexOf(t)-I0.indexOf(e);function $I({transform:t,transformKeys:e},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},i,s){let o="";e.sort(NI);for(const a of e)o+=`${OI[a]||a}(${t[a]}) `;return r&&!t.z&&(o+="translateZ(0)"),o=o.trim(),s?o=s(t,i?"":o):n&&i&&(o="none"),o}function c8(t){return t.startsWith("--")}const DI=(t,e)=>e&&typeof t=="number"?e.transform(t):t,Ul=(t,e,r)=>Math.min(Math.max(r,t),e),Ta={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},lf={...Ta,transform:t=>Ul(0,1,t)},td={...Ta,default:1},cf=t=>Math.round(t*1e5)/1e5,Kf=/(-)?([\d]*\.?[\d])+/g,Yy=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,BI=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function bu(t){return typeof t=="string"}const wu=t=>({test:e=>bu(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Rs=wu("deg"),_i=wu("%"),me=wu("px"),LI=wu("vh"),jI=wu("vw"),A2={..._i,parse:t=>_i.parse(t)/100,transform:t=>_i.transform(t*100)},_2={...Ta,transform:Math.round},f8={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,size:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,rotate:Rs,rotateX:Rs,rotateY:Rs,rotateZ:Rs,scale:td,scaleX:td,scaleY:td,scaleZ:td,skew:Rs,skewX:Rs,skewY:Rs,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:lf,originX:A2,originY:A2,originZ:me,zIndex:_2,fillOpacity:lf,strokeOpacity:lf,numOctaves:_2};function hm(t,e,r,n){const{style:i,vars:s,transform:o,transformKeys:a,transformOrigin:l}=t;a.length=0;let c=!1,f=!1,u=!0;for(const h in e){const y=e[h];if(c8(h)){s[h]=y;continue}const g=f8[h],p=DI(y,g);if(oc.has(h)){if(c=!0,o[h]=p,a.push(h),!u)continue;y!==(g.default||0)&&(u=!1)}else h.startsWith("origin")?(f=!0,l[h]=p):i[h]=p}if(e.transform||(c||n?i.transform=$I(t,r,u,n):i.transform&&(i.transform="none")),f){const{originX:h="50%",originY:y="50%",originZ:g=0}=l;i.transformOrigin=`${h} ${y} ${g}`}}const vm=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function u8(t,e,r){for(const n in e)!cn(e[n])&&!l8(n,r)&&(t[n]=e[n])}function FI({transformTemplate:t},e,r){return S.useMemo(()=>{const n=vm();return hm(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function UI(t,e,r){const n=t.style||{},i={};return u8(i,n,t),Object.assign(i,FI(t,e,r)),t.transformValues?t.transformValues(i):i}function zI(t,e,r){const n={},i=UI(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n}const VI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","viewport"]);function P0(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||VI.has(t)}let d8=t=>!P0(t);function qI(t){t&&(d8=e=>e.startsWith("on")?!P0(e):t(e))}try{qI(require("@emotion/is-prop-valid").default)}catch{}function HI(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(d8(i)||r===!0&&P0(i)||!e&&!P0(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function T2(t,e,r){return typeof t=="string"?t:me.transform(e+r*t)}function WI(t,e,r){const n=T2(e,t.x,t.width),i=T2(r,t.y,t.height);return`${n} ${i}`}const GI={offset:"stroke-dashoffset",array:"stroke-dasharray"},KI={offset:"strokeDashoffset",array:"strokeDasharray"};function JI(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?GI:KI;t[s.offset]=me.transform(-n);const o=me.transform(e),a=me.transform(r);t[s.array]=`${o} ${a}`}function ym(t,{attrX:e,attrY:r,originX:n,originY:i,pathLength:s,pathSpacing:o=1,pathOffset:a=0,...l},c,f,u){if(hm(t,l,c,u),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:y,dimensions:g}=t;h.transform&&(g&&(y.transform=h.transform),delete h.transform),g&&(n!==void 0||i!==void 0||y.transform)&&(y.transformOrigin=WI(g,n!==void 0?n:.5,i!==void 0?i:.5)),e!==void 0&&(h.x=e),r!==void 0&&(h.y=r),s!==void 0&&JI(h,s,o,a,!1)}const h8=()=>({...vm(),attrs:{}}),pm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function YI(t,e,r,n){const i=S.useMemo(()=>{const s=h8();return ym(s,e,{enableHardwareAcceleration:!1},pm(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};u8(s,t.style,t),i.style={...s,...i.style}}return i}function QI(t=!1){return(r,n,i,s,{latestValues:o},a)=>{const c=(dm(r)?YI:zI)(n,o,a,r),u={...HI(n,typeof r=="string",t),...c,ref:s},{children:h}=n,y=S.useMemo(()=>cn(h)?h.get():h,[h]);return i&&(u["data-projection-id"]=i),S.createElement(r,{...u,children:y})}}const gm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function v8(t,{style:e,vars:r},n,i){Object.assign(t.style,e,i&&i.getProjectionStyles(n));for(const s in r)t.style.setProperty(s,r[s])}const y8=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function p8(t,e,r,n){v8(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(y8.has(i)?i:gm(i),e.attrs[i])}function mm(t,e){const{style:r}=t,n={};for(const i in r)(cn(r[i])||e.style&&cn(e.style[i])||l8(i,t))&&(n[i]=r[i]);return n}function g8(t,e){const r=mm(t,e);for(const n in t)if(cn(t[n])||cn(e[n])){const i=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[i]=t[n]}return r}function xm(t,e,r,n={},i={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,i)),e}const R0=t=>Array.isArray(t),XI=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),ZI=t=>R0(t)?t[t.length-1]||0:t;function $d(t){const e=cn(t)?t.get():t;return XI(e)?e.toValue():e}function eP({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:tP(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const m8=t=>(e,r)=>{const n=S.useContext(Bh),i=S.useContext(xu),s=()=>eP(t,e,n,i);return r?s():Uh(s)};function tP(t,e,r,n){const i={},s=n(t,{});for(const h in s)i[h]=$d(s[h]);let{initial:o,animate:a}=t;const l=Fh(t),c=o8(t);e&&c&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let f=r?r.initial===!1:!1;f=f||o===!1;const u=f?a:o;return u&&typeof u!="boolean"&&!jh(u)&&(Array.isArray(u)?u:[u]).forEach(y=>{const g=xm(t,y);if(!g)return;const{transitionEnd:p,transition:k,...w}=g;for(const E in w){let A=w[E];if(Array.isArray(A)){const P=f?A.length-1:0;A=A[P]}A!==null&&(i[E]=A)}for(const E in p)i[E]=p[E]}),i}const rP={useVisualState:m8({scrapeMotionValuesFromProps:g8,createRenderState:h8,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}ym(r,n,{enableHardwareAcceleration:!1},pm(e.tagName),t.transformTemplate),p8(e,r)}})},nP={useVisualState:m8({scrapeMotionValuesFromProps:mm,createRenderState:vm})};function iP(t,{forwardMotionProps:e=!1},r,n,i){return{...dm(t)?rP:nP,preloadedFeatures:r,useRender:QI(e),createVisualElement:n,projectionNodeConstructor:i,Component:t}}var it;(function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"})(it||(it={}));function sa(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}function M0(t,e,r,n){S.useEffect(()=>{const i=t.current;if(r&&i)return sa(i,e,r,n)},[t,e,r,n])}function sP({whileFocus:t,visualElement:e}){const r=S.useRef(!1),{animationState:n}=e,i=S.useCallback(()=>{let o=!1;try{o=e.current.matches(":focus-visible")}catch{o=!0}!o||!n||(n.setActive(it.Focus,!0),r.current=!0)},[n]),s=S.useCallback(()=>{!r.current||!n||(n.setActive(it.Focus,!1),r.current=!1)},[n]);M0(e,"focus",t?i:void 0),M0(e,"blur",t?s:void 0)}const x8=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function zh(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const b8=t=>e=>x8(e)&&t(e,zh(e));function El(t,e,r,n){return sa(t,e,b8(r),n)}function O0(t,e,r,n){return M0(t,e,r&&b8(r),n)}function w8(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const I2=w8("dragHorizontal"),P2=w8("dragVertical");function C8(t){let e=!1;if(t==="y")e=P2();else if(t==="x")e=I2();else{const r=I2(),n=P2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function E8(){const t=C8(!0);return t?(t(),!1):!0}function R2(t,e,r,n){return(i,s)=>{i.type==="touch"||E8()||(r&&t.animationState&&t.animationState.setActive(it.Hover,e),n&&n(i,s))}}function oP({onHoverStart:t,onHoverEnd:e,whileHover:r,visualElement:n}){O0(n,"pointerenter",S.useMemo(()=>t||r?R2(n,!0,!!r,t):void 0,[t,!!r,n]),{passive:!t}),O0(n,"pointerleave",S.useMemo(()=>e||r?R2(n,!1,!!r,e):void 0,[t,!!r,n]),{passive:!e})}const S8=(t,e)=>e?t===e?!0:S8(t,e.parentElement):!1;function bm(t){return S.useEffect(()=>()=>t(),[])}const aP=(t,e)=>r=>e(t(r)),Vh=(...t)=>t.reduce(aP);function fv(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,zh(r))}function lP({onTap:t,onTapStart:e,onTapCancel:r,whileTap:n,visualElement:i,...s}){const o=t||e||r||n,a=S.useRef(!1),l=S.useRef(null),c={passive:!(e||t||r||s.onPointerDown)};function f(){l.current&&l.current(),l.current=null}function u(){return f(),a.current=!1,i.getProps().whileTap&&i.animationState&&i.animationState.setActive(it.Tap,!1),!E8()}function h(E,A){var P,M,j,U;u()&&(S8(i.current,E.target)?(U=(j=i.getProps()).onTap)===null||U===void 0||U.call(j,E,A):(M=(P=i.getProps()).onTapCancel)===null||M===void 0||M.call(P,E,A))}function y(E,A){var P,M;u()&&((M=(P=i.getProps()).onTapCancel)===null||M===void 0||M.call(P,E,A))}function g(E,A){var P;const M=i.getProps();M.whileTap&&i.animationState&&i.animationState.setActive(it.Tap,!0),(P=M.onTapStart)===null||P===void 0||P.call(M,E,A)}const p=[!!e,!!t,!!n,i],k=S.useCallback((E,A)=>{f(),!a.current&&(a.current=!0,l.current=Vh(El(window,"pointerup",h,c),El(window,"pointercancel",y,c)),g(E,A))},p);O0(i,"pointerdown",o?k:void 0,c);const w=S.useCallback(()=>{const E=sa(i.current,"keydown",P=>{P.key!=="Enter"||a.current||(a.current=!0,l.current=sa(i.current,"keyup",()=>{P.key!=="Enter"||!u()||fv("up",i.getProps().onTap)},c),fv("down",g))}),A=sa(i.current,"blur",()=>{E(),A(),a.current&&fv("cancel",y)})},p);M0(i,"focus",o?w:void 0),bm(f)}const Qy=new WeakMap,uv=new WeakMap,cP=t=>{const e=Qy.get(t.target);e&&e(t)},fP=t=>{t.forEach(cP)};function uP({root:t,...e}){const r=t||document;uv.has(r)||uv.set(r,{});const n=uv.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(fP,{root:t,...e})),n[i]}function dP(t,e,r){const n=uP(e);return Qy.set(t,r),n.observe(t),()=>{Qy.delete(t),n.unobserve(t)}}function hP({visualElement:t,whileInView:e,onViewportEnter:r,onViewportLeave:n,viewport:i={}}){const s=S.useRef({hasEnteredView:!1,isInView:!1});let o=!!(e||r||n);i.once&&s.current.hasEnteredView&&(o=!1),(typeof IntersectionObserver>"u"?pP:yP)(o,s.current,t,i)}const vP={some:0,all:1};function yP(t,e,r,{root:n,margin:i,amount:s="some",once:o}){S.useEffect(()=>{if(!t||!r.current)return;const a={root:n==null?void 0:n.current,rootMargin:i,threshold:typeof s=="number"?s:vP[s]},l=c=>{const{isIntersecting:f}=c;if(e.isInView===f||(e.isInView=f,o&&!f&&e.hasEnteredView))return;f&&(e.hasEnteredView=!0),r.animationState&&r.animationState.setActive(it.InView,f);const u=r.getProps(),h=f?u.onViewportEnter:u.onViewportLeave;h&&h(c)};return dP(r.current,a,l)},[t,n,i,s])}function pP(t,e,r,{fallback:n=!0}){S.useEffect(()=>{!t||!n||requestAnimationFrame(()=>{e.hasEnteredView=!0;const{onViewportEnter:i}=r.getProps();i&&i(null),r.animationState&&r.animationState.setActive(it.InView,!0)})},[t])}const Us=t=>e=>(t(e),null),gP={inView:Us(hP),tap:Us(lP),focus:Us(sP),hover:Us(oP)};function k8(){const t=S.useContext(xu);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=S.useId();return S.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}function A8(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),xP=t=>/^0[^.\s]+$/.test(t),rs={delta:0,timestamp:0},_8=1/60*1e3,bP=typeof performance<"u"?()=>performance.now():()=>Date.now(),T8=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(bP()),_8);function wP(t){let e=[],r=[],n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,h=u?e:r;return c&&o.add(l),h.indexOf(l)===-1&&(h.push(l),u&&i&&(n=e.length)),l},cancel:l=>{const c=r.indexOf(l);c!==-1&&r.splice(c,1),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let c=0;c(t[e]=wP(()=>Jf=!0),t),{}),Dr=Cu.reduce((t,e)=>{const r=qh[e];return t[e]=(n,i=!1,s=!1)=>(Jf||SP(),r.schedule(n,i,s)),t},{}),lo=Cu.reduce((t,e)=>(t[e]=qh[e].cancel,t),{}),dv=Cu.reduce((t,e)=>(t[e]=()=>qh[e].process(rs),t),{}),EP=t=>qh[t].process(rs),I8=t=>{Jf=!1,rs.delta=Xy?_8:Math.max(Math.min(t-rs.timestamp,CP),1),rs.timestamp=t,Zy=!0,Cu.forEach(EP),Zy=!1,Jf&&(Xy=!1,T8(I8))},SP=()=>{Jf=!0,Xy=!0,Zy||T8(I8)};function wm(t,e){t.indexOf(e)===-1&&t.push(e)}function Cm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Em{constructor(){this.subscriptions=[]}add(e){return wm(this.subscriptions,e),()=>Cm(this.subscriptions,e)}notify(e,r,n){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,r,n);else for(let s=0;s!isNaN(parseFloat(t));class AP{constructor(e,r={}){this.version="9.0.1",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,i=!0)=>{this.prev=this.current,this.current=n;const{delta:s,timestamp:o}=rs;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Dr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Dr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=kP(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Em);const n=this.events[e].add(r);return e==="change"?()=>{n(),Dr.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Sm(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function zl(t,e){return new AP(t,e)}const km=(t,e)=>r=>!!(bu(r)&&BI.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),P8=(t,e,r)=>n=>{if(!bu(n))return n;const[i,s,o,a]=n.match(Kf);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},_P=t=>Ul(0,255,t),hv={...Ta,transform:t=>Math.round(_P(t))},Zo={test:km("rgb","red"),parse:P8("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+hv.transform(t)+", "+hv.transform(e)+", "+hv.transform(r)+", "+cf(lf.transform(n))+")"};function TP(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:i?parseInt(i,16)/255:1}}const ep={test:km("#"),parse:TP,transform:Zo.transform},dl={test:km("hsl","hue"),parse:P8("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+_i.transform(cf(e))+", "+_i.transform(cf(r))+", "+cf(lf.transform(n))+")"},qr={test:t=>Zo.test(t)||ep.test(t)||dl.test(t),parse:t=>Zo.test(t)?Zo.parse(t):dl.test(t)?dl.parse(t):ep.parse(t),transform:t=>bu(t)?t:t.hasOwnProperty("red")?Zo.transform(t):dl.transform(t)},R8="${c}",M8="${n}";function IP(t){var e,r;return isNaN(t)&&bu(t)&&(((e=t.match(Kf))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Yy))===null||r===void 0?void 0:r.length)||0)>0}function N0(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const i=t.match(Yy);i&&(r=i.length,t=t.replace(Yy,R8),e.push(...i.map(qr.parse)));const s=t.match(Kf);return s&&(n=s.length,t=t.replace(Kf,M8),e.push(...s.map(Ta.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function O8(t){return N0(t).values}function N8(t){const{values:e,numColors:r,tokenised:n}=N0(t),i=e.length;return s=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function RP(t){const e=O8(t);return N8(t)(e.map(PP))}const co={test:IP,parse:O8,createTransformer:N8,getAnimatableNone:RP},MP=new Set(["brightness","contrast","saturate","opacity"]);function OP(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Kf)||[];if(!n)return t;const i=r.replace(n,"");let s=MP.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const NP=/([a-z-]*)\(.*?\)/g,tp={...co,getAnimatableNone:t=>{const e=t.match(NP);return e?e.map(OP).join(" "):t}},$P={...f8,color:qr,backgroundColor:qr,outlineColor:qr,fill:qr,stroke:qr,borderColor:qr,borderTopColor:qr,borderRightColor:qr,borderBottomColor:qr,borderLeftColor:qr,filter:tp,WebkitFilter:tp},Am=t=>$P[t];function _m(t,e){var r;let n=Am(t);return n!==tp&&(n=co),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,e)}const $8=t=>e=>e.test(t),DP={test:t=>t==="auto",parse:t=>t},D8=[Ta,me,_i,Rs,jI,LI,DP],Rc=t=>D8.find($8(t)),BP=[...D8,qr,co],LP=t=>BP.find($8(t));function jP(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function FP(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function Hh(t,e,r){const n=t.getProps();return xm(n,e,r!==void 0?r:n.custom,jP(t),FP(t))}function UP(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,zl(r))}function zP(t,e){const r=Hh(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=ZI(s[o]);UP(t,o,a)}}function VP(t,e,r){var n,i;const s=Object.keys(e).filter(a=>!t.hasValue(a)),o=s.length;if(o)for(let a=0;at*1e3,KP={current:!1},Tm=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,Im=t=>e=>1-t(1-e),Pm=t=>t*t,JP=Im(Pm),Rm=Tm(Pm),Yt=(t,e,r)=>-r*t+r*e+t;function vv(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function YP({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let i=0,s=0,o=0;if(!e)i=s=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,l=2*r-a;i=vv(l,a,t+1/3),s=vv(l,a,t),o=vv(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const yv=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},QP=[ep,Zo,dl],XP=t=>QP.find(e=>e.test(t));function M2(t){const e=XP(t);let r=e.parse(t);return e===dl&&(r=YP(r)),r}const B8=(t,e)=>{const r=M2(t),n=M2(e),i={...r};return s=>(i.red=yv(r.red,n.red,s),i.green=yv(r.green,n.green,s),i.blue=yv(r.blue,n.blue,s),i.alpha=Yt(r.alpha,n.alpha,s),Zo.transform(i))};function L8(t,e){return typeof t=="number"?r=>Yt(t,e,r):qr.test(t)?B8(t,e):F8(t,e)}const j8=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>L8(s,e[o]));return s=>{for(let o=0;o{const r={...t,...e},n={};for(const i in r)t[i]!==void 0&&e[i]!==void 0&&(n[i]=L8(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},F8=(t,e)=>{const r=co.createTransformer(e),n=N0(t),i=N0(e);return n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?Vh(j8(n.values,i.values),r):o=>`${o>0?e:t}`},B0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},O2=(t,e)=>r=>Yt(t,e,r);function eR(t){return typeof t=="number"?O2:typeof t=="string"?qr.test(t)?B8:F8:Array.isArray(t)?j8:typeof t=="object"?ZP:O2}function tR(t,e,r){const n=[],i=r||eR(t[0]),s=t.length-1;for(let o=0;ot[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=tR(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(Ul(t[0],t[s-1],c)):l}const Mm=t=>t,z8=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,rR=1e-7,nR=12;function iR(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=z8(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>rR&&++aiR(s,0,1,t,r);return s=>s===0||s===1?s:z8(i(s),e,n)}const q8=t=>1-Math.sin(Math.acos(t)),Om=Im(q8),sR=Tm(Om),H8=V8(.33,1.53,.69,.99),Nm=Im(H8),oR=Tm(Nm),aR=t=>(t*=2)<1?.5*Nm(t):.5*(2-Math.pow(2,-10*(t-1))),lR={linear:Mm,easeIn:Pm,easeInOut:Rm,easeOut:JP,circIn:q8,circInOut:sR,circOut:Om,backIn:Nm,backInOut:oR,backOut:H8,anticipate:aR},N2=t=>{if(Array.isArray(t)){D0(t.length===4);const[e,r,n,i]=t;return V8(e,r,n,i)}else if(typeof t=="string")return lR[t];return t},cR=t=>Array.isArray(t)&&typeof t[0]!="number";function fR(t,e){return t.map(()=>e||Rm).splice(0,t.length-1)}function uR(t){const e=t.length;return t.map((r,n)=>n!==0?n/(e-1):0)}function dR(t,e){return t.map(r=>r*e)}function rp({keyframes:t,ease:e=Rm,times:r,duration:n=300}){t=[...t];const i=cR(e)?e.map(N2):N2(e),s={done:!1,value:t[0]},o=dR(r&&r.length===t.length?r:uR(t),n);function a(){return U8(o,t,{ease:Array.isArray(i)?i:fR(t,i)})}let l=a();return{next:c=>(s.value=l(c),s.done=c>=n,s),flipTarget:()=>{t.reverse(),l=a()}}}const pv=.001,hR=.01,vR=10,yR=.05,pR=1;function gR({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s,o=1-e;o=Ul(yR,pR,o),t=Ul(hR,vR,t/1e3),o<1?(i=c=>{const f=c*o,u=f*t,h=f-r,y=np(c,o),g=Math.exp(-u);return pv-h/y*g},s=c=>{const u=c*o*t,h=u*r+r,y=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-u),p=np(Math.pow(c,2),o);return(-i(c)+pv>0?-1:1)*((h-y)*g)/p}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-pv+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=xR(i,s,a);if(t=t*1e3,isNaN(l))return{stiffness:100,damping:10,duration:t};{const c=Math.pow(l,2)*n;return{stiffness:c,damping:o*2*Math.sqrt(n*c),duration:t}}}const mR=12;function xR(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function CR(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!$2(t,wR)&&$2(t,bR)){const r=gR(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const ER=5;function W8({keyframes:t,restDelta:e,restSpeed:r,...n}){let i=t[0],s=t[t.length-1];const o={done:!1,value:i},{stiffness:a,damping:l,mass:c,velocity:f,duration:u,isResolvedFromDuration:h}=CR(n);let y=SR,g=f?-(f/1e3):0;const p=l/(2*Math.sqrt(a*c));function k(){const w=s-i,E=Math.sqrt(a/c)/1e3,A=Math.abs(w)<5;if(r||(r=A?.01:2),e||(e=A?.005:.5),p<1){const P=np(E,p);y=M=>{const j=Math.exp(-p*E*M);return s-j*((g+p*E*w)/P*Math.sin(P*M)+w*Math.cos(P*M))}}else if(p===1)y=P=>s-Math.exp(-E*P)*(w+(g+E*w)*P);else{const P=E*Math.sqrt(p*p-1);y=M=>{const j=Math.exp(-p*E*M),U=Math.min(P*M,300);return s-j*((g+p*E*w)*Math.sinh(U)+P*w*Math.cosh(U))/P}}}return k(),{next:w=>{const E=y(w);if(h)o.done=w>=u;else{let A=g;if(w!==0)if(p<1){const j=Math.max(0,w-ER);A=Sm(E-y(j),w-j)}else A=0;const P=Math.abs(A)<=r,M=Math.abs(s-E)<=e;o.done=P&&M}return o.value=o.done?s:E,o},flipTarget:()=>{g=-g,[i,s]=[s,i],k()}}}W8.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const SR=t=>0;function kR({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:i=.5,modifyTarget:s}){const o=t[0],a={done:!1,value:o};let l=r*e;const c=o+l,f=s===void 0?c:s(c);return f!==c&&(l=f-o),{next:u=>{const h=-l*Math.exp(-u/n);return a.done=!(h>i||h<-i),a.value=a.done?f:f+h,a},flipTarget:()=>{}}}const AR={decay:kR,keyframes:rp,tween:rp,spring:W8};function G8(t,e,r=0){return t-e-r}function _R(t,e=0,r=0,n=!0){return n?G8(e+-t,e,r):e-(t-e)+r}function TR(t,e,r,n){return n?t>=e+r:t<=-r}const IR=t=>{const e=({delta:r})=>t(r);return{start:()=>Dr.update(e,!0),stop:()=>lo.update(e)}};function L0({duration:t,driver:e=IR,elapsed:r=0,repeat:n=0,repeatType:i="loop",repeatDelay:s=0,keyframes:o,autoplay:a=!0,onPlay:l,onStop:c,onComplete:f,onRepeat:u,onUpdate:h,type:y="keyframes",...g}){var p,k;const w=r;let E,A=0,P=t,M=!1,j=!0,U;const F=AR[o.length>2?"keyframes":y]||rp,G=o[0],J=o[o.length-1];let te={done:!1,value:G};!((k=(p=F).needsInterpolation)===null||k===void 0)&&k.call(p,G,J)&&(U=U8([0,100],[G,J],{clamp:!1}),o=[0,100]);const se=F({...g,duration:t,keyframes:o});function D(){A++,i==="reverse"?(j=A%2===0,r=_R(r,P,s,j)):(r=G8(r,P,s),i==="mirror"&&se.flipTarget()),M=!1,u&&u()}function v(){E&&E.stop(),f&&f()}function C(O){j||(O=-O),r+=O,M||(te=se.next(Math.max(0,r)),U&&(te.value=U(te.value)),M=j?te.done:r<=0),h&&h(te.value),M&&(A===0&&(P=P!==void 0?P:r),A{c&&c(),E&&E.stop()},set currentTime(O){r=w,C(O)},sample:O=>{r=w;const x=t&&typeof t=="number"?Math.max(t*.5,50):50;let _=0;for(C(0);_<=O;){const R=O-_;C(Math.min(R,x)),_+=x}return te}}}function PR(t){return!t||Array.isArray(t)||typeof t=="string"&&K8[t]}const Gc=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,K8={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gc([0,.65,.55,1]),circOut:Gc([.55,0,1,.45]),backIn:Gc([.31,.01,.66,-.59]),backOut:Gc([.33,1.53,.69,.99])};function RR(t){if(t)return Array.isArray(t)?Gc(t):K8[t]}function MR(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){return t.animate({[e]:r,offset:l},{delay:n,duration:i,easing:RR(a),fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}const D2={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},gv={},J8={};for(const t in D2)J8[t]=()=>(gv[t]===void 0&&(gv[t]=D2[t]()),gv[t]);function OR(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const NR=new Set(["opacity"]),rd=10;function $R(t,e,{onUpdate:r,onComplete:n,...i}){if(!(J8.waapi()&&NR.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:l=0,ease:c}=i;if(i.type==="spring"||!PR(i.ease)){if(i.repeat===1/0)return;const u=L0({...i,elapsed:0});let h={done:!1,value:o[0]};const y=[];let g=0;for(;!h.done&&g<2e4;)h=u.sample(g),y.push(h.value),g+=rd;o=y,a=g-rd,c="linear"}const f=MR(t.owner.current,e,o,{...i,delay:-l,duration:a,ease:c});return f.onfinish=()=>{t.set(OR(o,i)),Dr.update(()=>f.cancel()),n&&n()},{get currentTime(){return f.currentTime||0},set currentTime(u){f.currentTime=u},stop:()=>{const{currentTime:u}=f;if(u){const h=L0({...i,autoplay:!1});t.setWithVelocity(h.sample(u-rd).value,h.sample(u).value,rd)}Dr.update(()=>f.cancel())}}}function Y8(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(lo.read(n),t(s-e))};return Dr.read(n,!0),()=>lo.read(n)}function DR({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const i=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:Y8(i,-e)}:i()}function BR({keyframes:t,velocity:e=0,min:r,max:n,power:i=.8,timeConstant:s=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:l=1,modifyTarget:c,driver:f,onUpdate:u,onComplete:h,onStop:y}){const g=t[0];let p;function k(P){return r!==void 0&&Pn}function w(P){return r===void 0?n:n===void 0||Math.abs(r-P){var j;u==null||u(M),(j=P.onUpdate)===null||j===void 0||j.call(P,M)},onComplete:h,onStop:y})}function A(P){E({type:"spring",stiffness:o,damping:a,restDelta:l,...P})}if(k(g))A({velocity:e,keyframes:[g,w(g)]});else{let P=i*e+g;typeof c<"u"&&(P=c(P));const M=w(P),j=M===r?-1:1;let U,F;const G=J=>{U=F,F=J,e=Sm(J-U,rs.delta),(j===1&&J>M||j===-1&&Jp==null?void 0:p.stop()}}const Fo=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),nd=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),mv=()=>({type:"keyframes",ease:"linear",duration:.3}),LR={type:"keyframes",duration:.8},B2={x:Fo,y:Fo,z:Fo,rotate:Fo,rotateX:Fo,rotateY:Fo,rotateZ:Fo,scaleX:nd,scaleY:nd,scale:nd,opacity:mv,backgroundColor:mv,color:mv,default:nd},jR=(t,{keyframes:e})=>e.length>2?LR:(B2[t]||B2.default)(e[1]),ip=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&co.test(e)&&!e.startsWith("url("));function FR({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:c,...f}){return!!Object.keys(f).length}function L2(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function j2(t){return typeof t=="number"?0:_m("",t)}function Q8(t,e){return t[e]||t.default||t}function UR(t,e,r,n){const i=ip(e,r);let s=n.from!==void 0?n.from:t.get();return s==="none"&&i&&typeof r=="string"?s=_m(e,r):L2(s)&&typeof r=="string"?s=j2(r):!Array.isArray(r)&&L2(r)&&typeof s=="string"&&(r=j2(s)),Array.isArray(r)?(r[0]===null&&(r[0]=s),r):[s,r]}const $m=(t,e,r,n={})=>i=>{const s=Q8(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Dd(o);const l=UR(e,t,r,s),c=l[0],f=l[l.length-1],u=ip(t,c),h=ip(t,f);let y={keyframes:l,velocity:e.getVelocity(),...s,elapsed:a,onUpdate:k=>{e.set(k),s.onUpdate&&s.onUpdate(k)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(!u||!h||KP.current||s.type===!1)return DR(y);if(s.type==="inertia")return BR(y);FR(s)||(y={...y,...jR(t,y)}),y.duration&&(y.duration=Dd(y.duration)),y.repeatDelay&&(y.repeatDelay=Dd(y.repeatDelay));const g=e.owner,p=g&&g.current;if(g&&p instanceof HTMLElement&&!(g!=null&&g.getProps().onUpdate)){const k=$R(e,t,y);if(k)return k}return L0(y)};function zR(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>sp(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=sp(t,e,r);else{const i=typeof e=="function"?Hh(t,e,r.custom):e;n=X8(t,i,r)}return n.then(()=>t.notify("AnimationComplete",e))}function sp(t,e,r={}){var n;const i=Hh(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(s=r.transitionOverride);const o=i?()=>X8(t,i,r):()=>Promise.resolve(),a=!((n=t.variantChildren)===null||n===void 0)&&n.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:u,staggerDirection:h}=s;return VR(t,e,f+c,u,h,r)}:()=>Promise.resolve(),{when:l}=s;if(l){const[c,f]=l==="beforeChildren"?[o,a]:[a,o];return c().then(f)}else return Promise.all([o(),a(r.delay)])}function X8(t,e,{delay:r=0,transitionOverride:n,type:i}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:a,...l}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(o=n);const f=[],u=i&&((s=t.animationState)===null||s===void 0?void 0:s.getState()[i]);for(const h in l){const y=t.getValue(h),g=l[h];if(!y||g===void 0||u&&HR(u,h))continue;const p={delay:r,elapsed:0,...o};if(window.HandoffAppearAnimations&&!y.hasAnimated){const w=t.getProps()[GP];w&&(p.elapsed=window.HandoffAppearAnimations(w,h,y,Dr))}let k=y.start($m(h,y,g,t.shouldReduceMotion&&oc.has(h)?{type:!1}:p));$0(c)&&(c.add(h),k=k.then(()=>c.remove(h))),f.push(k)}return Promise.all(f).then(()=>{a&&zP(t,a)})}function VR(t,e,r=0,n=0,i=1,s){const o=[],a=(t.variantChildren.size-1)*n,l=i===1?(c=0)=>c*n:(c=0)=>a-c*n;return Array.from(t.variantChildren).sort(qR).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(sp(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function qR(t,e){return t.sortNodePosition(e)}function HR({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const Dm=[it.Animate,it.InView,it.Focus,it.Hover,it.Tap,it.Drag,it.Exit],WR=[...Dm].reverse(),GR=Dm.length;function KR(t){return e=>Promise.all(e.map(({animation:r,options:n})=>zR(t,r,n)))}function JR(t){let e=KR(t);const r=QR();let n=!0;const i=(l,c)=>{const f=Hh(t,c);if(f){const{transition:u,transitionEnd:h,...y}=f;l={...l,...y,...h}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},h=[],y=new Set;let g={},p=1/0;for(let w=0;wp&&M;const J=Array.isArray(P)?P:[P];let te=J.reduce(i,{});j===!1&&(te={});const{prevResolvedValues:se={}}=A,D={...se,...te},v=C=>{G=!0,y.delete(C),A.needsAnimating[C]=!0};for(const C in D){const I=te[C],O=se[C];g.hasOwnProperty(C)||(I!==O?R0(I)&&R0(O)?!A8(I,O)||F?v(C):A.protectedKeys[C]=!0:I!==void 0?v(C):y.add(C):I!==void 0&&y.has(C)?v(C):A.protectedKeys[C]=!0)}A.prevProp=P,A.prevResolvedValues=te,A.isActive&&(g={...g,...te}),n&&t.blockInitialAnimation&&(G=!1),G&&!U&&h.push(...J.map(C=>({animation:C,options:{type:E,...l}})))}if(y.size){const w={};y.forEach(E=>{const A=t.getBaseTarget(E);A!==void 0&&(w[E]=A)}),h.push({animation:w})}let k=!!h.length;return n&&f.initial===!1&&!t.manuallyAnimateOnMount&&(k=!1),n=!1,k?e(h):Promise.resolve()}function a(l,c,f){var u;if(r[l].isActive===c)return Promise.resolve();(u=t.variantChildren)===null||u===void 0||u.forEach(y=>{var g;return(g=y.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const h=o(f,l);for(const y in r)r[y].protectedKeys={};return h}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function YR(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!A8(e,t):!1}function Uo(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QR(){return{[it.Animate]:Uo(!0),[it.InView]:Uo(),[it.Hover]:Uo(),[it.Tap]:Uo(),[it.Drag]:Uo(),[it.Focus]:Uo(),[it.Exit]:Uo()}}const XR={animation:Us(({visualElement:t,animate:e})=>{t.animationState||(t.animationState=JR(t)),jh(e)&&S.useEffect(()=>e.subscribe(t),[e])}),exit:Us(t=>{const{custom:e,visualElement:r}=t,[n,i]=k8(),s=S.useContext(xu);S.useEffect(()=>{r.isPresent=n;const o=r.animationState&&r.animationState.setActive(it.Exit,!n,{custom:s&&s.custom||e});o&&!n&&o.then(i)},[n])})},F2=(t,e)=>Math.abs(t-e);function ZR(t,e){const r=F2(t.x,e.x),n=F2(t.y,e.y);return Math.sqrt(r**2+n**2)}class Z8{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const c=bv(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,u=ZR(c.offset,{x:0,y:0})>=3;if(!f&&!u)return;const{point:h}=c,{timestamp:y}=rs;this.history.push({...h,timestamp:y});const{onStart:g,onMove:p}=this.handlers;f||(g&&g(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,c)},this.handlePointerMove=(c,f)=>{this.lastMoveEvent=c,this.lastMoveEventInfo=xv(f,this.transformPagePoint),Dr.update(this.updatePoint,!0)},this.handlePointerUp=(c,f)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:u,onSessionEnd:h}=this.handlers,y=bv(c.type==="pointercancel"?this.lastMoveEventInfo:xv(f,this.transformPagePoint),this.history);this.startEvent&&u&&u(c,y),h&&h(c,y)},!x8(e))return;this.handlers=r,this.transformPagePoint=n;const i=zh(e),s=xv(i,this.transformPagePoint),{point:o}=s,{timestamp:a}=rs;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=r;l&&l(e,bv(s,this.history)),this.removeListeners=Vh(El(window,"pointermove",this.handlePointerMove),El(window,"pointerup",this.handlePointerUp),El(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),lo.update(this.updatePoint)}}function xv(t,e){return e?{point:e(t.point)}:t}function U2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function bv({point:t},e){return{point:t,delta:U2(t,eC(e)),offset:U2(t,eM(e)),velocity:tM(e,.1)}}function eM(t){return t[0]}function eC(t){return t[t.length-1]}function tM(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=eC(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>Dd(e)));)r--;if(!n)return{x:0,y:0};const s=(i.timestamp-n.timestamp)/1e3;if(s===0)return{x:0,y:0};const o={x:(i.x-n.x)/s,y:(i.y-n.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function bn(t){return t.max-t.min}function op(t,e=0,r=.01){return Math.abs(t-e)<=r}function z2(t,e,r,n=.5){t.origin=n,t.originPoint=Yt(e.min,e.max,t.origin),t.scale=bn(r)/bn(e),(op(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Yt(r.min,r.max,t.origin)-t.originPoint,(op(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ff(t,e,r,n){z2(t.x,e.x,r.x,n==null?void 0:n.originX),z2(t.y,e.y,r.y,n==null?void 0:n.originY)}function V2(t,e,r){t.min=r.min+e.min,t.max=t.min+bn(e)}function rM(t,e,r){V2(t.x,e.x,r.x),V2(t.y,e.y,r.y)}function q2(t,e,r){t.min=e.min-r.min,t.max=t.min+bn(e)}function uf(t,e,r){q2(t.x,e.x,r.x),q2(t.y,e.y,r.y)}function nM(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Yt(r,t,n.max):Math.min(t,r)),t}function H2(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function iM(t,{top:e,left:r,bottom:n,right:i}){return{x:H2(t.x,r,i),y:H2(t.y,e,n)}}function W2(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=B0(e.min,e.max-n,t.min):n>i&&(r=B0(t.min,t.max-i,e.min)),Ul(0,1,r)}function aM(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const ap=.35;function lM(t=ap){return t===!1?t=0:t===!0&&(t=ap),{x:G2(t,"left","right"),y:G2(t,"top","bottom")}}function G2(t,e,r){return{min:K2(t,e),max:K2(t,r)}}function K2(t,e){return typeof t=="number"?t:t[e]||0}const J2=()=>({translate:0,scale:1,origin:0,originPoint:0}),df=()=>({x:J2(),y:J2()}),Y2=()=>({min:0,max:0}),fr=()=>({x:Y2(),y:Y2()});function yi(t){return[t("x"),t("y")]}function tC({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function cM({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fM(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function wv(t){return t===void 0||t===1}function lp({scale:t,scaleX:e,scaleY:r}){return!wv(t)||!wv(e)||!wv(r)}function Ho(t){return lp(t)||rC(t)||t.z||t.rotate||t.rotateX||t.rotateY}function rC(t){return Q2(t.x)||Q2(t.y)}function Q2(t){return t&&t!=="0%"}function j0(t,e,r){const n=t-r,i=e*n;return r+i}function X2(t,e,r,n,i){return i!==void 0&&(t=j0(t,i,n)),j0(t,r,n)+e}function cp(t,e=0,r=1,n,i){t.min=X2(t.min,e,r,n,i),t.max=X2(t.max,e,r,n,i)}function nC(t,{x:e,y:r}){cp(t.x,e.translate,e.scale,e.originPoint),cp(t.y,r.translate,r.scale,r.originPoint)}function uM(t,e,r,n=!1){var i,s;const o=r.length;if(!o)return;e.x=e.y=1;let a,l;for(let c=0;c1.0000000000001||t<.999999999999?t:1}function $s(t,e){t.min=t.min+e,t.max=t.max+e}function ew(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Yt(t.min,t.max,s);cp(t,e[r],e[n],o,e.scale)}const dM=["x","scaleX","originX"],hM=["y","scaleY","originY"];function hl(t,e){ew(t.x,e,dM),ew(t.y,e,hM)}function iC(t,e){return tC(fM(t.getBoundingClientRect(),e))}function vM(t,e,r){const n=iC(t,r),{scroll:i}=e;return i&&($s(n.x,i.offset.x),$s(n.y,i.offset.y)),n}const yM=new WeakMap;class pM{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fr(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;const n=a=>{this.stopAnimation(),r&&this.snapToCursor(zh(a,"page").point)},i=(a,l)=>{var c;const{drag:f,dragPropagation:u,onDragStart:h}=this.getProps();f&&!u&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=C8(f),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),yi(y=>{var g,p;let k=this.getAxisMotionValue(y).get()||0;if(_i.test(k)){const w=(p=(g=this.visualElement.projection)===null||g===void 0?void 0:g.layout)===null||p===void 0?void 0:p.layoutBox[y];w&&(k=bn(w)*(parseFloat(k)/100))}this.originPoint[y]=k}),h==null||h(a,l),(c=this.visualElement.animationState)===null||c===void 0||c.setActive(it.Drag,!0))},s=(a,l)=>{const{dragPropagation:c,dragDirectionLock:f,onDirectionLock:u,onDrag:h}=this.getProps();if(!c&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=gM(y),this.currentDirection!==null&&(u==null||u(this.currentDirection));return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h==null||h(a,l)},o=(a,l)=>this.stop(a,l);this.panSession=new Z8(e,{onSessionStart:n,onStart:i,onMove:s,onSessionEnd:o},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:i}=r;this.startAnimation(i);const{onDragEnd:s}=this.getProps();s==null||s(e,r)}cancel(){var e,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(e=this.panSession)===null||e===void 0||e.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(it.Drag,!1)}updateAxis(e,r,n){const{drag:i}=this.getProps();if(!n||!id(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=nM(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},i=this.constraints;e&&ul(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=iM(n.layoutBox,e):this.constraints=!1,this.elastic=lM(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&yi(s=>{this.getAxisMotionValue(s)&&(this.constraints[s]=aM(n.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!ul(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=vM(n,i.root,this.visualElement.getTransformPagePoint());let o=sM(i.layout.layoutBox,s);if(r){const a=r(cM(o));this.hasMutatedConstraints=!!a,a&&(o=tC(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=yi(f=>{if(!id(f,r,this.currentDirection))return;let u=(l==null?void 0:l[f])||{};o&&(u={min:0,max:0});const h=i?200:1e6,y=i?40:1e7,g={type:"inertia",velocity:n?e[f]:0,bounceStiffness:h,bounceDamping:y,timeConstant:750,restDelta:1,restSpeed:10,...s,...u};return this.startAxisValueAnimation(f,g)});return Promise.all(c).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start($m(e,n,0,r))}stopAnimation(){yi(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){var r;const n="_drag"+e.toUpperCase(),i=this.visualElement.getProps()[n];return i||this.visualElement.getValue(e,((r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[e])||0)}snapToCursor(e){yi(r=>{const{drag:n}=this.getProps();if(!id(r,n,this.currentDirection))return;const{projection:i}=this.visualElement,s=this.getAxisMotionValue(r);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[r];s.set(e[r]-Yt(o,a,.5))}})}scalePositionWithinConstraints(){var e;if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ul(n)||!i||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};yi(a=>{const l=this.getAxisMotionValue(a);if(l){const c=l.get();s[a]=oM({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",(e=i.root)===null||e===void 0||e.updateScroll(),i.updateLayout(),this.resolveConstraints(),yi(a=>{if(!id(a,r,null))return;const l=this.getAxisMotionValue(a),{min:c,max:f}=this.constraints[a];l.set(Yt(c,f,s[a]))})}addListeners(){var e;if(!this.visualElement.current)return;yM.set(this.visualElement,this);const r=this.visualElement.current,n=El(r,"pointerdown",c=>{const{drag:f,dragListener:u=!0}=this.getProps();f&&u&&this.start(c)}),i=()=>{const{dragConstraints:c}=this.getProps();ul(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,o=s.addEventListener("measure",i);s&&!s.layout&&((e=s.root)===null||e===void 0||e.updateScroll(),s.updateLayout()),i();const a=sa(window,"resize",()=>this.scalePositionWithinConstraints()),l=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f})=>{this.isDragging&&f&&(yi(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l==null||l()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=ap,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function id(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function gM(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}function mM(t){const{dragControls:e,visualElement:r}=t,n=Uh(()=>new pM(r));S.useEffect(()=>e&&e.subscribe(n),[n,e]),S.useEffect(()=>n.addListeners(),[n])}function xM({onPan:t,onPanStart:e,onPanEnd:r,onPanSessionStart:n,visualElement:i}){const s=t||e||r||n,o=S.useRef(null),{transformPagePoint:a}=S.useContext(fm),l={onSessionStart:n,onStart:e,onMove:t,onEnd:(f,u)=>{o.current=null,r&&r(f,u)}};S.useEffect(()=>{o.current!==null&&o.current.updateHandlers(l)});function c(f){o.current=new Z8(f,l,{transformPagePoint:a})}O0(i,"pointerdown",s&&c),bm(()=>o.current&&o.current.end())}const bM={pan:Us(xM),drag:Us(mM)};function fp(t){return typeof t=="string"&&t.startsWith("var(--")}const sC=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function wM(t){const e=sC.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function up(t,e,r=1){const[n,i]=wM(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);return s?s.trim():fp(i)?up(i,e,r+1):i}function CM(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(i=>{const s=i.get();if(!fp(s))return;const o=up(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!fp(s))continue;const o=up(s,n);o&&(e[i]=o,r&&r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const EM=new Set(["width","height","top","left","right","bottom","x","y"]),oC=t=>EM.has(t),SM=t=>Object.keys(t).some(oC),tw=t=>t===Ta||t===me;var rw;(function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"})(rw||(rw={}));const nw=(t,e)=>parseFloat(t.split(", ")[e]),iw=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return nw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?nw(s[1],t):0}},kM=new Set(["x","y","z"]),AM=I0.filter(t=>!kM.has(t));function _M(t){const e=[];return AM.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const sw={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iw(4,13),y:iw(5,14)},TM=(t,e,r)=>{const n=e.measureViewportBox(),i=e.current,s=getComputedStyle(i),{display:o}=s,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(c=>{a[c]=sw[c](n,s)}),e.render();const l=e.measureViewportBox();return r.forEach(c=>{const f=e.getValue(c);f&&f.jump(a[c]),t[c]=sw[c](l,s)}),t},IM=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter(oC);let s=[],o=!1;const a=[];if(i.forEach(l=>{const c=t.getValue(l);if(!t.hasValue(l))return;let f=r[l],u=Rc(f);const h=e[l];let y;if(R0(h)){const g=h.length,p=h[0]===null?1:0;f=h[p],u=Rc(f);for(let k=p;k=0?window.pageYOffset:null,c=TM(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Lh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function PM(t,e,r,n){return SM(e)?IM(t,e,r,n):{target:e,transitionEnd:n}}const RM=(t,e,r,n)=>{const i=CM(t,e,n);return e=i.target,n=i.transitionEnd,PM(t,e,r,n)},dp={current:null},aC={current:!1};function MM(){if(aC.current=!0,!!Lh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>dp.current=t.matches;t.addListener(e),e()}else dp.current=!1}function OM(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(cn(s))t.addValue(i,s),$0(n)&&n.add(i);else if(cn(o))t.addValue(i,zl(s,{owner:t})),$0(n)&&n.remove(i);else if(o!==s)if(t.hasValue(i)){const a=t.getValue(i);!a.hasAnimated&&a.set(s)}else{const a=t.getStaticValue(i);t.addValue(i,zl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const lC=Object.keys(Gf),NM=lC.length,ow=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class $M{constructor({parent:e,props:r,reducedMotionConfig:n,visualState:i},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Dr.render(this.render,!1,!0);const{latestValues:o,renderState:a}=i;this.latestValues=o,this.baseTarget={...o},this.initialValues=r.initial?{...o}:{},this.renderState=a,this.parent=e,this.props=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.isControllingVariants=Fh(r),this.isVariantNode=o8(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(r,{});for(const f in c){const u=c[f];o[f]!==void 0&&cn(u)&&(u.set(o[f],!1),$0(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){var r;this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,i)=>this.bindToMotionValue(i,n)),aC.current||MM(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:dp.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var e,r,n;(e=this.projection)===null||e===void 0||e.unmount(),lo.update(this.notifyUpdate),lo.render(this.render),this.valueSubscriptions.forEach(i=>i()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(const i in this.events)this.events[i].clear();this.current=null}bindToMotionValue(e,r){const n=oc.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Dr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,i,s,o,a){const l=[];for(let c=0;cthis.scheduleRender(),animationType:typeof f=="string"?f:"both",initialPromotionConfig:a,layoutScroll:y,layoutRoot:g})}return l}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fr()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}setProps(e){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender();const r=this.props;this.props=e;for(let n=0;nn.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){var r;this.values.delete(e),(r=this.valueSubscriptions.get(e))===null||r===void 0||r(),this.valueSubscriptions.delete(e),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=zl(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,i=typeof n=="string"||typeof n=="object"?(r=xm(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&i!==void 0)return i;const s=this.getBaseTargetFromProps(this.props,e);return s!==void 0&&!cn(s)?s:this.initialValues[e]!==void 0&&i===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new Em),this.events[e].add(r)}notify(e,...r){var n;(n=this.events[e])===null||n===void 0||n.notify(...r)}}const cC=["initial",...Dm],DM=cC.length;class fC extends $M{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){var n;return(n=e.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:i},s){let o=HP(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){VP(this,n,o);const a=RM(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function BM(t){return window.getComputedStyle(t)}class LM extends fC{readValueFromInstance(e,r){if(oc.has(r)){const n=Am(r);return n&&n.default||0}else{const n=BM(e),i=(c8(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return iC(e,r)}build(e,r,n,i){hm(e,r,n,i.transformTemplate)}scrapeMotionValuesFromProps(e,r){return mm(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;cn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){v8(e,r,n,i)}}class jM extends fC{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){var n;return oc.has(r)?((n=Am(r))===null||n===void 0?void 0:n.default)||0:(r=y8.has(r)?r:gm(r),e.getAttribute(r))}measureInstanceViewportBox(){return fr()}scrapeMotionValuesFromProps(e,r){return g8(e,r)}build(e,r,n,i){ym(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){p8(e,r,n,i)}mount(e){this.isSVGTag=pm(e.tagName),super.mount(e)}}const FM=(t,e)=>dm(t)?new jM(e,{enableHardwareAcceleration:!1}):new LM(e,{enableHardwareAcceleration:!0});function aw(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Mc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const r=aw(t,e.target.x),n=aw(t,e.target.y);return`${r}% ${n}%`}},lw="_$css",UM={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=t.includes("var("),s=[];i&&(t=t.replace(sC,y=>(s.push(y),lw)));const o=co.parse(t);if(o.length>5)return n;const a=co.createTransformer(t),l=typeof o[0]!="number"?1:0,c=r.x.scale*e.x,f=r.y.scale*e.y;o[0+l]/=c,o[1+l]/=f;const u=Yt(c,f,.5);typeof o[2+l]=="number"&&(o[2+l]/=u),typeof o[3+l]=="number"&&(o[3+l]/=u);let h=a(o);if(i){let y=0;h=h.replace(lw,()=>{const g=s[y];return y++,g})}return h}};class zM extends dr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;MI(qM),s&&(r.group&&r.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),af.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==s&&(s?o.promote():o.relegate()||Dr.postRender(()=>{var a;!((a=o.getStack())===null||a===void 0)&&a.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(i),n!=null&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e==null||e()}render(){return null}}function VM(t){const[e,r]=k8(),n=S.useContext(um);return dr.createElement(zM,{...t,layoutGroup:n,switchLayoutGroup:S.useContext(a8),isPresent:e,safeToRemove:r})}const qM={borderRadius:{...Mc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Mc,borderTopRightRadius:Mc,borderBottomLeftRadius:Mc,borderBottomRightRadius:Mc,boxShadow:UM},HM={measureLayout:VM};function WM(t,e,r={}){const n=cn(t)?t:zl(t);return n.start($m("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const uC=["TopLeft","TopRight","BottomLeft","BottomRight"],GM=uC.length,cw=t=>typeof t=="string"?parseFloat(t):t,fw=t=>typeof t=="number"||me.test(t);function KM(t,e,r,n,i,s){i?(t.opacity=Yt(0,r.opacity!==void 0?r.opacity:1,JM(n)),t.opacityExit=Yt(e.opacity!==void 0?e.opacity:1,0,YM(n))):s&&(t.opacity=Yt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(B0(t,e,n))}function dw(t,e){t.min=e.min,t.max=e.max}function Vn(t,e){dw(t.x,e.x),dw(t.y,e.y)}function hw(t,e,r,n,i){return t-=e,t=j0(t,1/r,n),i!==void 0&&(t=j0(t,1/i,n)),t}function QM(t,e=0,r=1,n=.5,i,s=t,o=t){if(_i.test(e)&&(e=parseFloat(e),e=Yt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Yt(s.min,s.max,n);t===s&&(a-=e),t.min=hw(t.min,e,r,a,i),t.max=hw(t.max,e,r,a,i)}function vw(t,e,[r,n,i],s,o){QM(t,e[r],e[n],e[i],e.scale,s,o)}const XM=["x","scaleX","originX"],ZM=["y","scaleY","originY"];function yw(t,e,r,n){vw(t.x,e,XM,r==null?void 0:r.x,n==null?void 0:n.x),vw(t.y,e,ZM,r==null?void 0:r.y,n==null?void 0:n.y)}function pw(t){return t.translate===0&&t.scale===1}function hC(t){return pw(t.x)&&pw(t.y)}function vC(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function gw(t){return bn(t.x)/bn(t.y)}class eO{constructor(){this.members=[]}add(e){wm(this.members,e),e.scheduleRender()}remove(e){if(Cm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(i=>e===i);if(r===0)return!1;let n;for(let i=r;i>=0;i--){const s=this.members[i];if(s.isPresent!==!1){n=s;break}}return n?(this.promote(n),!0):!1}promote(e,r){var n;const i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.instance&&i.scheduleRender(),e.scheduleRender(),e.resumeFrom=i,r&&(e.resumeFrom.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),!((n=e.root)===null||n===void 0)&&n.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var r,n,i,s,o;(n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r),(o=(i=e.resumingFrom)===null||i===void 0?void 0:(s=i.options).onExitComplete)===null||o===void 0||o.call(s)})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function mw(t,e,r){let n="";const i=t.x.translate/e.x,s=t.y.translate/e.y;if((i||s)&&(n=`translate3d(${i}px, ${s}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:l,rotateX:c,rotateY:f}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),f&&(n+=`rotateY(${f}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const tO=(t,e)=>t.depth-e.depth;class rO{constructor(){this.children=[],this.isDirty=!1}add(e){wm(this.children,e),this.isDirty=!0}remove(e){Cm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(tO),this.isDirty=!1,this.children.forEach(e)}}const xw=["","X","Y","Z"],bw=1e3;let nO=0;function yC({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o,a={},l=e==null?void 0:e()){this.id=nO++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(oO),this.nodes.forEach(cO),this.nodes.forEach(fO)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let c=0;cthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Y8(y,250),af.hasAnimatedSinceResize&&(af.hasAnimatedSinceResize=!1,this.nodes.forEach(Cw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:y,hasRelativeTargetChanged:g,layout:p})=>{var k,w,E,A,P;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const M=(w=(k=this.options.transition)!==null&&k!==void 0?k:u.getDefaultTransition())!==null&&w!==void 0?w:yO,{onLayoutAnimationStart:j,onLayoutAnimationComplete:U}=u.getProps(),F=!this.targetLayout||!vC(this.targetLayout,p)||g,G=!y&&g;if(this.options.layoutRoot||!((E=this.resumeFrom)===null||E===void 0)&&E.instance||G||y&&(F||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,G);const J={...Q8(M,"layout"),onPlay:j,onComplete:U};(u.shouldReduceMotion||this.options.layoutRoot)&&(J.delay=0,J.type=!1),this.startAnimation(J)}else!y&&this.animationProgress===0&&Cw(this),this.isLead()&&((P=(A=this.options).onExitComplete)===null||P===void 0||P.call(A));this.targetLayout=p})}unmount(){var o,a;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(o=this.getStack())===null||o===void 0||o.remove(this),(a=this.parent)===null||a===void 0||a.children.delete(this),this.instance=void 0,lo.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var o;return this.isAnimationBlocked||((o=this.parent)===null||o===void 0?void 0:o.isTreeAnimationBlocked())||!1}startUpdate(){var o;this.isUpdateBlocked()||(this.isUpdating=!0,(o=this.nodes)===null||o===void 0||o.forEach(uO),this.animationId++)}getTransformTemplate(){var o;return(o=this.options.visualElement)===null||o===void 0?void 0:o.getProps().transformTemplate}willUpdate(o=!0){var a,l,c;if(this.root.isUpdateBlocked()){(l=(a=this.options).onExitComplete)===null||l===void 0||l.call(a);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let h=0;h{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var o;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{var A;const P=E/1e3;Ew(y.x,o.x,P),Ew(y.y,o.y,P),this.setTargetDelta(y),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((A=this.relativeParent)===null||A===void 0)&&A.layout)&&(uf(g,this.layout.layoutBox,this.relativeParent.layout.layoutBox),hO(this.relativeTarget,this.relativeTargetOrigin,g,P)),p&&(this.animationValues=h,KM(h,u,this.latestValues,P,w,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l;this.notifyListeners("animationStart"),(a=this.currentAnimation)===null||a===void 0||a.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(lo.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dr.update(()=>{af.hasAnimatedSinceResize=!0,this.currentAnimation=WM(0,bw,{...o,onUpdate:c=>{var f;this.mixTargetDelta(c),(f=o.onUpdate)===null||f===void 0||f.call(o,c)},onComplete:()=>{var c;(c=o.onComplete)===null||c===void 0||c.call(o),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var o;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(o=this.getStack())===null||o===void 0||o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var o;this.currentAnimation&&((o=this.mixTargetDelta)===null||o===void 0||o.call(this,bw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:c,latestValues:f}=o;if(!(!a||!l||!c)){if(this!==o&&this.layout&&c&&pC(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||fr();const u=bn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const h=bn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+h}Vn(a,l),hl(a,f),ff(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){var l,c,f;this.sharedNodes.has(o)||this.sharedNodes.set(o,new eO),this.sharedNodes.get(o).add(a),a.promote({transition:(l=a.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(f=(c=a.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||f===void 0?void 0:f.call(c,a)})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(a=!0),!a)return;const c={};for(let f=0;f{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(ww),this.root.sharedNodes.clear()}}}function iO(t){t.updateLayout()}function sO(t){var e,r,n;const i=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:o}=t.layout,{animationType:a}=t.options,l=i.source!==t.layout.source;a==="size"?yi(y=>{const g=l?i.measuredBox[y]:i.layoutBox[y],p=bn(g);g.min=s[y].min,g.max=g.min+p}):pC(a,i.layoutBox,s)&&yi(y=>{const g=l?i.measuredBox[y]:i.layoutBox[y],p=bn(s[y]);g.max=g.min+p});const c=df();ff(c,s,i.layoutBox);const f=df();l?ff(f,t.applyTransform(o,!0),i.measuredBox):ff(f,s,i.layoutBox);const u=!hC(c);let h=!1;if(!t.resumeFrom){const y=t.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:p}=y;if(g&&p){const k=fr();uf(k,i.layoutBox,g.layoutBox);const w=fr();uf(w,s,p.layoutBox),vC(k,w)||(h=!0),y.options.layoutRoot&&(t.relativeTarget=w,t.relativeTargetOrigin=k,t.relativeParent=y)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:i,delta:f,layoutDelta:c,hasLayoutChanged:u,hasRelativeTargetChanged:h})}else t.isLead()&&((n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r));t.options.transition=void 0}function oO(t){t.isProjectionDirty||(t.isProjectionDirty=!!(t.parent&&t.parent.isProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=!!(t.parent&&t.parent.isTransformDirty))}function aO(t){t.clearSnapshot()}function ww(t){t.clearMeasurements()}function lO(t){const{visualElement:e}=t.options;e!=null&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Cw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function cO(t){t.resolveTargetDelta()}function fO(t){t.calcProjection()}function uO(t){t.resetRotation()}function dO(t){t.removeLeadSnapshot()}function Ew(t,e,r){t.translate=Yt(e.translate,0,r),t.scale=Yt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function Sw(t,e,r,n){t.min=Yt(e.min,r.min,n),t.max=Yt(e.max,r.max,n)}function hO(t,e,r,n){Sw(t.x,e.x,r.x,n),Sw(t.y,e.y,r.y,n)}function vO(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const yO={duration:.45,ease:[.4,0,.1,1]};function pO(t,e){let r=t.root;for(let s=t.path.length-1;s>=0;s--)if(t.path[s].instance){r=t.path[s];break}const i=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);i&&t.mount(i,!0)}function kw(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function gO(t){kw(t.x),kw(t.y)}function pC(t,e,r){return t==="position"||t==="preserve-aspect"&&!op(gw(e),gw(r),.2)}const mO=yC({attachResizeListener:(t,e)=>sa(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cv={current:void 0},xO=yC({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Cv.current){const t=new mO(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Cv.current=t}return Cv.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),bO={...XR,...gP,...bM,...HM},Sl=PI((t,e)=>iP(t,e,bO,FM,xO));function gC(){const t=S.useRef(!1);return _0(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function wO(){const t=gC(),[e,r]=S.useState(0),n=S.useCallback(()=>{t.current&&r(e+1)},[e]);return[S.useCallback(()=>Dr.postRender(n),[n]),e]}class CO extends S.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function EO({children:t,isPresent:e}){const r=S.useId(),n=S.useRef(null),i=S.useRef({width:0,height:0,top:0,left:0});return S.useInsertionEffect(()=>{const{width:s,height:o,top:a,left:l}=i.current;if(e||!n.current||!s||!o)return;n.current.dataset.motionPopId=r;const c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(` - [data-motion-pop-id="${r}"] { - position: absolute !important; - width: ${s}px !important; - height: ${o}px !important; - top: ${a}px !important; - left: ${l}px !important; - } - `),()=>{document.head.removeChild(c)}},[e]),S.createElement(CO,{isPresent:e,childRef:n,sizeRef:i},S.cloneElement(t,{ref:n}))}const Ev=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=Uh(SO),l=S.useId(),c=S.useMemo(()=>({id:l,initial:e,isPresent:r,custom:i,onExitComplete:f=>{a.set(f,!0);for(const u of a.values())if(!u)return;n&&n()},register:f=>(a.set(f,!1),()=>a.delete(f))}),s?void 0:[r]);return S.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),S.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=S.createElement(EO,{isPresent:r},t)),S.createElement(xu.Provider,{value:c},t)};function SO(){return new Map}const Ga=t=>t.key||"";function kO(t,e){t.forEach(r=>{const n=Ga(r);e.set(n,r)})}function AO(t){const e=[];return S.Children.forEach(t,r=>{S.isValidElement(r)&&e.push(r)}),e}const mC=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{i&&(o="wait");let[a]=wO();const l=S.useContext(um).forceRender;l&&(a=l);const c=gC(),f=AO(t);let u=f;const h=new Set,y=S.useRef(u),g=S.useRef(new Map).current,p=S.useRef(!0);if(_0(()=>{p.current=!1,kO(f,g),y.current=u}),bm(()=>{p.current=!0,g.clear(),h.clear()}),p.current)return S.createElement(S.Fragment,null,u.map(A=>S.createElement(Ev,{key:Ga(A),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},A)));u=[...u];const k=y.current.map(Ga),w=f.map(Ga),E=k.length;for(let A=0;A{if(w.indexOf(A)!==-1)return;const P=g.get(A);if(!P)return;const M=k.indexOf(A),j=()=>{g.delete(A),h.delete(A);const U=y.current.findIndex(F=>F.key===A);if(y.current.splice(U,1),!h.size){if(y.current=f,c.current===!1)return;a(),n&&n()}};u.splice(M,0,S.createElement(Ev,{key:Ga(P),isPresent:!1,onExitComplete:j,custom:e,presenceAffectsLayout:s,mode:o},P))}),u=u.map(A=>{const P=A.key;return h.has(P)?A:S.createElement(Ev,{key:Ga(A),isPresent:!0,presenceAffectsLayout:s,mode:o},A)}),S.createElement(S.Fragment,null,h.size?u:u.map(A=>S.cloneElement(A)))},xC={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( - 243.18deg, - rgba(86, 52, 189, 0.85) 0%, - rgba(49, 41, 223, 0.85) 63.54%, - rgba(7, 98, 149, 0.85) 100% - )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},_O={...xC,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},TO={...xC,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},IO={dark:_O,light:TO},PO={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var Aw={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function RO(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function MO(t){var e=RO(t,"string");return typeof e=="symbol"?e:String(e)}function OO(t,e,r){return e=MO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _w(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Sv(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nl.styles)),s=Object.keys(i),o=s.filter(l=>"mappings"in i[l]),a=l=>{var c=[],f={},u=Sv({},l),h=!1;for(var y of o){var g=l[y];if(g!=null){var p=i[y];h=!0;for(var k of p.mappings)f[k]=g,u[k]==null&&delete u[k]}}var w=h?Sv(Sv({},f),u):l,E=function(){var j=w[A],U=i[A];try{if(U.mappings)return"continue";if(typeof j=="string"||typeof j=="number")c.push(U.values[j].defaultClass);else if(Array.isArray(j))for(var F=0;Ft,DO=function(){return NO($O)(...arguments)},bC=DO({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const BO=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],hp=t=>(t.display||(t.display=Object.keys(t).some(e=>BO.includes(e))?"flex":void 0),bC(t));hp.properties=bC.properties;function wC(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e{const{as:r="div",sx:n={},className:i,...s}=t,o={},a={};for(const c in s)hp.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=hp({...o,...n});return S.createElement(r,{className:un(l,i),...a,ref:e})});var CC={exports:{}},Oc={};/** - * @license React - * react-jsx-runtime.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Tw;function LO(){if(Tw)return Oc;Tw=1;var t=dr,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function o(a,l,c){var f,u={},h=null,y=null;c!==void 0&&(h=""+c),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(y=l.ref);for(f in l)n.call(l,f)&&!s.hasOwnProperty(f)&&(u[f]=l[f]);if(a&&a.defaultProps)for(f in l=a.defaultProps,l)u[f]===void 0&&(u[f]=l[f]);return{$$typeof:e,type:a,key:h,ref:y,props:u,_owner:i.current}}return Oc.Fragment=r,Oc.jsx=o,Oc.jsxs=o,Oc}CC.exports=LO();var Y=CC.exports;function jO(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function FO(t){var e=jO(t,"string");return typeof e=="symbol"?e:String(e)}function UO(t,e,r){return e=FO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Iw(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Pw(t){for(var e=1;e{for(var n of Object.keys(t)){var i;if(t[n]!==((i=e[n])!==null&&i!==void 0?i:r[n]))return!1}return!0},Xt=t=>{var e=r=>{var n=t.defaultClassName,i=Pw(Pw({},t.defaultVariants),r);for(var s in i){var o,a=(o=i[s])!==null&&o!==void 0?o:t.defaultVariants[s];if(a!=null){var l=a;typeof l=="boolean"&&(l=l===!0?"true":"false");var c=t.variantClassNames[s][l];c&&(n+=" "+c)}}for(var[f,u]of t.compoundVariants)zO(f,i,t.defaultVariants)&&(n+=" "+u);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return Rw(t.variantClassNames,r=>Rw(r,n=>n.split(" ")[0]))}},e};Xt({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const Mw=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return Y.jsx(ye,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var VO=Xt({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Gt=S.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:i,hidden:s,italic:o,underline:a,children:l,ellipsis:c,uppercase:f,capitalize:u,...h}=t,y=PO[n];return Y.jsx(ye,{as:r,className:un(i,VO({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...y,...h,children:l})});var qO=Xt({defaultClassName:"_140wn8ng _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0",variantClassNames:{variant:{base:"_140wn8nh",feature:"_140wn8ni _140wn8n1 fyvr11pj fyvr12od",primary:"_140wn8nj _140wn8n2 fyvr11pd fyvr12od",glass:"_140wn8nk _140wn8n3 fyvr11tv fyvr12s1",emphasis:"_140wn8nl _140wn8n4 fyvr11u1 fyvr12s1",raised:"_140wn8nm _140wn8n5 fyvr11tp fyvr12s1",danger:"_140wn8nn _140wn8n6 fyvr11op fyvr12od",text:"_140wn8no _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n7 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8np _140wn8n8 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nq _140wn8n9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nr _140wn8na fyvr12v1 fyvr12vp",false:"_140wn8ns _140wn8nb fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nt _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8nc fyvr1ws fyvr1yo",sm:"_140wn8nu _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nd fyvr1ww fyvr1ys",md:"_140wn8nv _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ne fyvr1x0 fyvr1yw",lg:"_140wn8nw _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8nx"},hasLeftIcon:{true:"_140wn8ny"},hasRightIcon:{true:"_140wn8nz"},activeOutline:{light:"_140wn8n10",bold:"_140wn8n11"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n12"],[{iconOnly:!0,size:"sm"},"_140wn8n13"],[{iconOnly:!0,size:"md"},"_140wn8n14"],[{iconOnly:!0,size:"lg"},"_140wn8n15"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n16"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n17"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n18"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1b"]]});const Fe=S.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:i,disabled:s=!1,display:o="inline-flex",fontWeight:a="bold",pending:l=!1,label:c,leftIcon:f,rightIcon:u,size:h="md",variant:y="glass",width:g="fit",shape:p="circle",type:k="button",...w}=t,E=f!==void 0&&c!==void 0,A=u!==void 0&&c!==void 0,P=f!==void 0&&c===void 0,M=h==="xs"?"xs":"sm";return Y.jsx(ye,{as:r,className:un(i,qO({activeOutline:n,disabled:s||l,hasLeftIcon:E,hasRightIcon:A,iconOnly:P,size:y==="text"?void 0:h,shape:y==="text"?void 0:p,variant:y})),disabled:s||l,display:o,fontWeight:a,ref:e,type:k,width:g,...w,children:P?Y.jsx(f,{size:M}):Y.jsxs(ye,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:h==="xs"?"1":"2",children:[Y.jsxs(ye,{justifyContent:"flex-start",alignItems:"center",gap:h==="xs"?"1":"2",children:[f&&Y.jsx(f,{size:M}),Y.jsx(Gt,{children:c})]}),u&&Y.jsx(u,{size:M})]})})});var HO=Xt({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr12vz fyvr12v7"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const WO=S.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return Y.jsx(ye,{className:un(r,HO({clickable:i,outlined:s,disabled:o,blur:a})),background:s?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:l,ref:e,...c,children:n})});function Qt(){return Qt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>GO(r,e))}function $t(...t){return S.useCallback(EC(...t),t)}function jr(t,e=[]){let r=[];function n(s,o){const a=S.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:h,children:y,...g}=u,p=(h==null?void 0:h[t][l])||a,k=S.useMemo(()=>g,Object.values(g));return S.createElement(p.Provider,{value:k},y)}function f(u,h){const y=(h==null?void 0:h[t][l])||a,g=S.useContext(y);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,f]}const i=()=>{const s=r.map(o=>S.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return S.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,KO(i,...e)]}function KO(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=n.reduce((a,{useScope:l,scopeName:c})=>{const u=l(s)[`__scope${c}`];return{...a,...u}},{});return S.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function be(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t==null||t(i),r===!1||!i.defaultPrevented)return e==null?void 0:e(i)}}function Dn(t){const e=S.useRef(t);return S.useEffect(()=>{e.current=t}),S.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function ma({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=JO({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Dn(r),l=S.useCallback(c=>{if(s){const u=typeof c=="function"?c(t):c;u!==t&&a(u)}else i(c)},[s,t,i,a]);return[o,l]}function JO({defaultProp:t,onChange:e}){const r=S.useState(t),[n]=r,i=S.useRef(n),s=Dn(e);return S.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function Bm(t){const e=S.useRef({value:t,previous:t});return S.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const wn=globalThis!=null&&globalThis.document?S.useLayoutEffect:()=>{};function Lm(t){const[e,r]=S.useState(void 0);return wn(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let o,a;if("borderBoxSize"in s){const l=s.borderBoxSize,c=Array.isArray(l)?l[0]:l;o=c.inlineSize,a=c.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function YO(t,e){return S.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const Eo=t=>{const{present:e,children:r}=t,n=QO(e),i=typeof r=="function"?r({present:n.isPresent}):S.Children.only(r),s=$t(n.ref,i.ref);return typeof r=="function"||n.isPresent?S.cloneElement(i,{ref:s}):null};Eo.displayName="Presence";function QO(t){const[e,r]=S.useState(),n=S.useRef({}),i=S.useRef(t),s=S.useRef("none"),o=t?"mounted":"unmounted",[a,l]=YO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return S.useEffect(()=>{const c=sd(n.current);s.current=a==="mounted"?c:"none"},[a]),wn(()=>{const c=n.current,f=i.current;if(f!==t){const h=s.current,y=sd(c);t?l("MOUNT"):y==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&h!==y?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),wn(()=>{if(e){const c=u=>{const y=sd(n.current).includes(u.animationName);u.target===e&&y&&Co.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=sd(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",c),e.addEventListener("animationend",c),()=>{e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",c),e.removeEventListener("animationend",c)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:S.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function sd(t){return(t==null?void 0:t.animationName)||"none"}function Ce(){return Ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,i=S.Children.toArray(r),s=i.find(ZO);if(s){const o=s.props.children,a=i.map(l=>l===s?S.Children.count(o)>1?S.Children.only(null):S.isValidElement(o)?o.props.children:null:l);return S.createElement(vp,Ce({},n,{ref:e}),S.isValidElement(o)?S.cloneElement(o,void 0,a):null)}return S.createElement(vp,Ce({},n,{ref:e}),r)});Vl.displayName="Slot";const vp=S.forwardRef((t,e)=>{const{children:r,...n}=t;return S.isValidElement(r)?S.cloneElement(r,{...eN(n,r.props),ref:e?EC(e,r.ref):r.ref}):S.Children.count(r)>1?S.Children.only(null):null});vp.displayName="SlotClone";const XO=({children:t})=>S.createElement(S.Fragment,null,t);function ZO(t){return S.isValidElement(t)&&t.type===XO}function eN(t,e){const r={...e};for(const n in e){const i=t[n],s=e[n];/^on[A-Z]/.test(n)?i&&s?r[n]=(...a)=>{s(...a),i(...a)}:i&&(r[n]=i):n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...t,...r}}const tN=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],He=tN.reduce((t,e)=>{const r=S.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?Vl:e;return S.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),S.createElement(a,Qt({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function jm(t,e){t&&Co.flushSync(()=>t.dispatchEvent(e))}const SC="Checkbox",[rN,vQ]=jr(SC),[nN,iN]=rN(SC),sN=S.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,h]=S.useState(null),y=$t(e,A=>h(A)),g=S.useRef(!1),p=u?!!u.closest("form"):!0,[k=!1,w]=ma({prop:i,defaultProp:s,onChange:c}),E=S.useRef(k);return S.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const P=()=>w(E.current);return A.addEventListener("reset",P),()=>A.removeEventListener("reset",P)}},[u,w]),S.createElement(nN,{scope:r,state:k,disabled:a},S.createElement(He.button,Qt({type:"button",role:"checkbox","aria-checked":oa(k)?"mixed":k,"aria-required":o,"data-state":kC(k),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:y,onKeyDown:be(t.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:be(t.onClick,A=>{w(P=>oa(P)?!0:!P),p&&(g.current=A.isPropagationStopped(),g.current||A.stopPropagation())})})),p&&S.createElement(lN,{control:u,bubbles:!g.current,name:n,value:l,checked:k,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),oN="CheckboxIndicator",aN=S.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=iN(oN,r);return S.createElement(Eo,{present:n||oa(s.state)||s.state===!0},S.createElement(He.span,Qt({"data-state":kC(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),lN=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=S.useRef(null),o=Bm(r),a=Lm(e);return S.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const h=new Event("click",{bubbles:n});l.indeterminate=oa(r),u.call(l,oa(r)?!1:r),l.dispatchEvent(h)}},[o,r,n]),S.createElement("input",Qt({type:"checkbox","aria-hidden":!0,defaultChecked:oa(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function oa(t){return t==="indeterminate"}function kC(t){return oa(t)?"indeterminate":t?"checked":"unchecked"}const cN=sN,fN=aN;var uN=Xt({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const ac=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?Y.jsxs(ye,{flexDirection:"column",gap:"0.5",children:[r&&Y.jsx(Gt,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&Y.jsx(Gt,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return Y.jsxs(ye,{as:"label",className:uN({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var lc=Xt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const dN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),AC=({size:t="sm",...e})=>Y.jsx(ye,{as:dN,className:lc({size:t}),...e}),hN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),_C=({size:t="sm",...e})=>Y.jsx(ye,{as:hN,className:lc({size:t}),...e}),vN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),Fm=({size:t="sm",...e})=>Y.jsx(ye,{as:vN,className:lc({size:t}),...e}),yN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),pN=({size:t="sm",...e})=>Y.jsx(ye,{as:yN,className:lc({size:t}),...e}),gN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),mN=({size:t="sm",...e})=>Y.jsx(ye,{as:gN,className:lc({size:t}),...e}),xN=t=>Y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:Y.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),bN=({size:t="sm",...e})=>Y.jsx(ye,{as:xN,className:lc({size:t}),...e});var wN=Xt({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),CN="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const EN=({size:t="sm"})=>Y.jsx(fN,{className:CN,children:Y.jsx(AC,{size:t==="lg"?"sm":"xs"})});S.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return Y.jsx(ac,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:Y.jsx(cN,{className:wN({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:Y.jsx(EN,{size:a})})})});dr.createContext(null);const SN=o_.useId||(()=>{});let kN=0;function eo(t){const[e,r]=S.useState(SN());return wn(()=>{t||r(n=>n??String(kN++))},[t]),t||(e?`radix-${e}`:"")}const TC="Collapsible",[AN,yQ]=jr(TC),[_N,Um]=AN(TC),TN=S.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=ma({prop:n,defaultProp:i,onChange:o});return S.createElement(_N,{scope:r,disabled:s,contentId:eo(),open:l,onOpenToggle:S.useCallback(()=>c(f=>!f),[c])},S.createElement(He.div,Qt({"data-state":zm(l),"data-disabled":s?"":void 0},a,{ref:e})))}),IN="CollapsibleTrigger",PN=S.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Um(IN,r);return S.createElement(He.button,Qt({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":zm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:be(t.onClick,i.onOpenToggle)}))}),IC="CollapsibleContent",RN=S.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Um(IC,t.__scopeCollapsible);return S.createElement(Eo,{present:r||i.open},({present:s})=>S.createElement(MN,Qt({},n,{ref:e,present:s})))}),MN=S.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Um(IC,r),[a,l]=S.useState(n),c=S.useRef(null),f=$t(e,c),u=S.useRef(0),h=u.current,y=S.useRef(0),g=y.current,p=o.open||a,k=S.useRef(p),w=S.useRef();return S.useEffect(()=>{const E=requestAnimationFrame(()=>k.current=!1);return()=>cancelAnimationFrame(E)},[]),wn(()=>{const E=c.current;if(E){w.current=w.current||{transitionDuration:E.style.transitionDuration,animationName:E.style.animationName},E.style.transitionDuration="0s",E.style.animationName="none";const A=E.getBoundingClientRect();u.current=A.height,y.current=A.width,k.current||(E.style.transitionDuration=w.current.transitionDuration,E.style.animationName=w.current.animationName),l(n)}},[o.open,n]),S.createElement(He.div,Qt({"data-state":zm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p},s,{ref:f,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style}}),p&&i)});function zm(t){return t?"open":"closed"}const ON=TN,NN=PN,$N=RN;var Ow="64px",DN="_4j62fl0",BN="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4",LN="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",jN="_4j62fl5";const FN=t=>{const{className:e,children:r,defaultOpen:n,open:i,onOpenChange:s,label:o,...a}=t,[l,c]=S.useState(n),f=i??l,u=y=>{i===void 0&&c(y)},h=y=>{u(y),s==null||s(y)};return Y.jsx(ON,{open:f,defaultOpen:n,onOpenChange:h,asChild:!0,children:Y.jsxs(ye,{as:Sl.div,className:un(e,DN),initial:{height:f?"auto":Ow},animate:{height:f?"auto":Ow},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[Y.jsxs(NN,{className:BN,children:[Y.jsx(Gt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),Y.jsx(ye,{as:Sl.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:f?180:0},animate:{rotate:f?180:0},transition:{ease:"linear",duration:.1},children:Y.jsx(_C,{className:jN,color:"text50"})})]}),Y.jsx(mC,{children:f&&Y.jsx($N,{className:LN,asChild:!0,forceMount:!0,children:Y.jsx(Sl.div,{initial:{opacity:f?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function Wh(t){const e=t+"CollectionProvider",[r,n]=jr(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=y=>{const{scope:g,children:p}=y,k=dr.useRef(null),w=dr.useRef(new Map).current;return dr.createElement(i,{scope:g,itemMap:w,collectionRef:k},p)},a=t+"CollectionSlot",l=dr.forwardRef((y,g)=>{const{scope:p,children:k}=y,w=s(a,p),E=$t(g,w.collectionRef);return dr.createElement(Vl,{ref:E},k)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=dr.forwardRef((y,g)=>{const{scope:p,children:k,...w}=y,E=dr.useRef(null),A=$t(g,E),P=s(c,p);return dr.useEffect(()=>(P.itemMap.set(E,{ref:E,...w}),()=>void P.itemMap.delete(E))),dr.createElement(Vl,{[f]:"",ref:A},k)});function h(y){const g=s(t+"CollectionConsumer",y);return dr.useCallback(()=>{const k=g.collectionRef.current;if(!k)return[];const w=Array.from(k.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,M)=>w.indexOf(P.ref.current)-w.indexOf(M.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},h,n]}const UN=S.createContext(void 0);function Vm(t){const e=S.useContext(UN);return t||e||"ltr"}function zN(t,e=globalThis==null?void 0:globalThis.document){const r=Dn(t);S.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const yp="dismissableLayer.update",VN="dismissableLayer.pointerDownOutside",qN="dismissableLayer.focusOutside";let Nw;const HN=S.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qm=S.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=S.useContext(HN),[u,h]=S.useState(null),y=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=S.useState({}),p=$t(e,F=>h(F)),k=Array.from(f.layers),[w]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=k.indexOf(w),A=u?k.indexOf(u):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,M=A>=E,j=WN(F=>{const G=F.target,J=[...f.branches].some(te=>te.contains(G));!M||J||(s==null||s(F),a==null||a(F),F.defaultPrevented||l==null||l())},y),U=GN(F=>{const G=F.target;[...f.branches].some(te=>te.contains(G))||(o==null||o(F),a==null||a(F),F.defaultPrevented||l==null||l())},y);return zN(F=>{A===f.layers.size-1&&(i==null||i(F),!F.defaultPrevented&&l&&(F.preventDefault(),l()))},y),S.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Nw=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),$w(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Nw)}},[u,y,n,f]),S.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),$w())},[u,f]),S.useEffect(()=>{const F=()=>g({});return document.addEventListener(yp,F),()=>document.removeEventListener(yp,F)},[]),S.createElement(He.div,Ce({},c,{ref:p,style:{pointerEvents:P?M?"auto":"none":void 0,...t.style},onFocusCapture:be(t.onFocusCapture,U.onFocusCapture),onBlurCapture:be(t.onBlurCapture,U.onBlurCapture),onPointerDownCapture:be(t.onPointerDownCapture,j.onPointerDownCapture)}))});function WN(t,e=globalThis==null?void 0:globalThis.document){const r=Dn(t),n=S.useRef(!1),i=S.useRef(()=>{});return S.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){PC(VN,r,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=l,e.addEventListener("click",i.current,{once:!0})):l()}else e.removeEventListener("click",i.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",s),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function GN(t,e=globalThis==null?void 0:globalThis.document){const r=Dn(t),n=S.useRef(!1);return S.useEffect(()=>{const i=s=>{s.target&&!n.current&&PC(qN,r,{originalEvent:s},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function $w(){const t=new CustomEvent(yp);document.dispatchEvent(t)}function PC(t,e,r,{discrete:n}){const i=r.originalEvent.target,s=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?jm(i,s):i.dispatchEvent(s)}const KN=qm;let kv=0;function RC(){S.useEffect(()=>{var t,e;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(t=r[0])!==null&&t!==void 0?t:Dw()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Dw()),kv++,()=>{kv===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),kv--}},[])}function Dw(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}const Av="focusScope.autoFocusOnMount",_v="focusScope.autoFocusOnUnmount",Bw={bubbles:!1,cancelable:!0},MC=S.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=S.useState(null),c=Dn(i),f=Dn(s),u=S.useRef(null),h=$t(e,p=>l(p)),y=S.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;S.useEffect(()=>{if(n){let p=function(A){if(y.paused||!a)return;const P=A.target;a.contains(P)?u.current=P:Ms(u.current,{select:!0})},k=function(A){if(y.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||Ms(u.current,{select:!0}))},w=function(A){if(document.activeElement===document.body)for(const M of A)M.removedNodes.length>0&&Ms(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",k);const E=new MutationObserver(w);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",k),E.disconnect()}}},[n,a,y.paused]),S.useEffect(()=>{if(a){jw.add(y);const p=document.activeElement;if(!a.contains(p)){const w=new CustomEvent(Av,Bw);a.addEventListener(Av,c),a.dispatchEvent(w),w.defaultPrevented||(JN(e$(OC(a)),{select:!0}),document.activeElement===p&&Ms(a))}return()=>{a.removeEventListener(Av,c),setTimeout(()=>{const w=new CustomEvent(_v,Bw);a.addEventListener(_v,f),a.dispatchEvent(w),w.defaultPrevented||Ms(p??document.body,{select:!0}),a.removeEventListener(_v,f),jw.remove(y)},0)}}},[a,c,f,y]);const g=S.useCallback(p=>{if(!r&&!n||y.paused)return;const k=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,w=document.activeElement;if(k&&w){const E=p.currentTarget,[A,P]=YN(E);A&&P?!p.shiftKey&&w===P?(p.preventDefault(),r&&Ms(A,{select:!0})):p.shiftKey&&w===A&&(p.preventDefault(),r&&Ms(P,{select:!0})):w===E&&p.preventDefault()}},[r,n,y.paused]);return S.createElement(He.div,Ce({tabIndex:-1},o,{ref:h,onKeyDown:g}))});function JN(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ms(n,{select:e}),document.activeElement!==r)return}function YN(t){const e=OC(t),r=Lw(e,t),n=Lw(e.reverse(),t);return[r,n]}function OC(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Lw(t,e){for(const r of t)if(!QN(r,{upTo:e}))return r}function QN(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function XN(t){return t instanceof HTMLInputElement&&"select"in t}function Ms(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&XN(t)&&e&&t.select()}}const jw=ZN();function ZN(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=Fw(t,e),t.unshift(e)},remove(e){var r;t=Fw(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function Fw(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function e$(t){return t.filter(e=>e.tagName!=="A")}const t$=["top","right","bottom","left"],fo=Math.min,yn=Math.max,F0=Math.round,od=Math.floor,uo=t=>({x:t,y:t}),r$={left:"right",right:"left",bottom:"top",top:"bottom"},n$={start:"end",end:"start"};function pp(t,e,r){return yn(t,fo(e,r))}function as(t,e){return typeof t=="function"?t(e):t}function ls(t){return t.split("-")[0]}function cc(t){return t.split("-")[1]}function Hm(t){return t==="x"?"y":"x"}function Wm(t){return t==="y"?"height":"width"}function fc(t){return["top","bottom"].includes(ls(t))?"y":"x"}function Gm(t){return Hm(fc(t))}function i$(t,e,r){r===void 0&&(r=!1);const n=cc(t),i=Gm(t),s=Wm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=U0(o)),[o,U0(o)]}function s$(t){const e=U0(t);return[gp(t),e,gp(e)]}function gp(t){return t.replace(/start|end/g,e=>n$[e])}function o$(t,e,r){const n=["left","right"],i=["right","left"],s=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?s:o;default:return[]}}function a$(t,e,r,n){const i=cc(t);let s=o$(ls(t),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(gp)))),s}function U0(t){return t.replace(/left|right|bottom|top/g,e=>r$[e])}function l$(t){return{top:0,right:0,bottom:0,left:0,...t}}function NC(t){return typeof t!="number"?l$(t):{top:t,right:t,bottom:t,left:t}}function z0(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Uw(t,e,r){let{reference:n,floating:i}=t;const s=fc(e),o=Gm(e),a=Wm(o),l=ls(e),c=s==="y",f=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,h=n[a]/2-i[a]/2;let y;switch(l){case"top":y={x:f,y:n.y-i.height};break;case"bottom":y={x:f,y:n.y+n.height};break;case"right":y={x:n.x+n.width,y:u};break;case"left":y={x:n.x-i.width,y:u};break;default:y={x:n.x,y:n.y}}switch(cc(e)){case"start":y[o]-=h*(r&&c?-1:1);break;case"end":y[o]+=h*(r&&c?-1:1);break}return y}const c$=async(t,e,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=Uw(c,n,l),h=n,y={},g=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:i,rects:s,platform:o,elements:a,middlewareData:l}=e,{element:c,padding:f=0}=as(t,e)||{};if(c==null)return{};const u=NC(f),h={x:r,y:n},y=Gm(i),g=Wm(y),p=await o.getDimensions(c),k=y==="y",w=k?"top":"left",E=k?"bottom":"right",A=k?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[y]-h[y]-s.floating[g],M=h[y]-s.reference[y],j=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let U=j?j[A]:0;(!U||!await(o.isElement==null?void 0:o.isElement(j)))&&(U=a.floating[A]||s.floating[g]);const F=P/2-M/2,G=U/2-p[g]/2-1,J=fo(u[w],G),te=fo(u[E],G),se=J,D=U-p[g]-te,v=U/2-p[g]/2+F,C=pp(se,v,D),I=!l.arrow&&cc(i)!=null&&v!=C&&s.reference[g]/2-(vse<=0)){var G,J;const se=(((G=s.flip)==null?void 0:G.index)||0)+1,D=M[se];if(D)return{data:{index:se,overflows:F},reset:{placement:D}};let v=(J=F.filter(C=>C.overflows[0]<=0).sort((C,I)=>C.overflows[1]-I.overflows[1])[0])==null?void 0:J.placement;if(!v)switch(y){case"bestFit":{var te;const C=(te=F.map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,x)=>O+x,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:te[0];C&&(v=C);break}case"initialPlacement":v=a;break}if(i!==v)return{reset:{placement:v}}}return{}}}};function Vw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function qw(t){return t$.some(e=>t[e]>=0)}const u$=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=as(t,e);switch(n){case"referenceHidden":{const s=await Yf(e,{...i,elementContext:"reference"}),o=Vw(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:qw(o)}}}case"escaped":{const s=await Yf(e,{...i,altBoundary:!0}),o=Vw(s,r.floating);return{data:{escapedOffsets:o,escaped:qw(o)}}}default:return{}}}}};async function d$(t,e){const{placement:r,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=ls(r),a=cc(r),l=fc(r)==="y",c=["left","top"].includes(o)?-1:1,f=s&&l?-1:1,u=as(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(y=a==="end"?g*-1:g),l?{x:y*f,y:h*c}:{x:h*c,y:y*f}}const h$=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await d$(e,t);return{x:r+i.x,y:n+i.y,data:i}}}},v$=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:i}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:k=>{let{x:w,y:E}=k;return{x:w,y:E}}},...l}=as(t,e),c={x:r,y:n},f=await Yf(e,l),u=fc(ls(i)),h=Hm(u);let y=c[h],g=c[u];if(s){const k=h==="y"?"top":"left",w=h==="y"?"bottom":"right",E=y+f[k],A=y-f[w];y=pp(E,y,A)}if(o){const k=u==="y"?"top":"left",w=u==="y"?"bottom":"right",E=g+f[k],A=g-f[w];g=pp(E,g,A)}const p=a.fn({...e,[h]:y,[u]:g});return{...p,data:{x:p.x-r,y:p.y-n}}}}},y$=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:i,rects:s,middlewareData:o}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=as(t,e),f={x:r,y:n},u=fc(i),h=Hm(u);let y=f[h],g=f[u];const p=as(a,e),k=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const A=h==="y"?"height":"width",P=s.reference[h]-s.floating[A]+k.mainAxis,M=s.reference[h]+s.reference[A]-k.mainAxis;yM&&(y=M)}if(c){var w,E;const A=h==="y"?"width":"height",P=["top","left"].includes(ls(i)),M=s.reference[u]-s.floating[A]+(P&&((w=o.offset)==null?void 0:w[u])||0)+(P?0:k.crossAxis),j=s.reference[u]+s.reference[A]+(P?0:((E=o.offset)==null?void 0:E[u])||0)-(P?k.crossAxis:0);gj&&(g=j)}return{[h]:y,[u]:g}}}},p$=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:i,elements:s}=e,{apply:o=()=>{},...a}=as(t,e),l=await Yf(e,a),c=ls(r),f=cc(r),u=fc(r)==="y",{width:h,height:y}=n.floating;let g,p;c==="top"||c==="bottom"?(g=c,p=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(p=c,g=f==="end"?"top":"bottom");const k=y-l[g],w=h-l[p],E=!e.middlewareData.shift;let A=k,P=w;if(u){const j=h-l.left-l.right;P=f||E?fo(w,j):j}else{const j=y-l.top-l.bottom;A=f||E?fo(k,j):j}if(E&&!f){const j=yn(l.left,0),U=yn(l.right,0),F=yn(l.top,0),G=yn(l.bottom,0);u?P=h-2*(j!==0||U!==0?j+U:yn(l.left,l.right)):A=y-2*(F!==0||G!==0?F+G:yn(l.top,l.bottom))}await o({...e,availableWidth:P,availableHeight:A});const M=await i.getDimensions(s.floating);return h!==M.width||y!==M.height?{reset:{rects:!0}}:{}}}};function ho(t){return $C(t)?(t.nodeName||"").toLowerCase():"#document"}function mn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vs(t){var e;return(e=($C(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function $C(t){return t instanceof Node||t instanceof mn(t).Node}function cs(t){return t instanceof Element||t instanceof mn(t).Element}function Mi(t){return t instanceof HTMLElement||t instanceof mn(t).HTMLElement}function Hw(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mn(t).ShadowRoot}function Eu(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Bn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function g$(t){return["table","td","th"].includes(ho(t))}function Km(t){const e=Jm(),r=Bn(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function m$(t){let e=ql(t);for(;Mi(e)&&!Gh(e);){if(Km(e))return e;e=ql(e)}return null}function Jm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Gh(t){return["html","body","#document"].includes(ho(t))}function Bn(t){return mn(t).getComputedStyle(t)}function Kh(t){return cs(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ql(t){if(ho(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Hw(t)&&t.host||vs(t);return Hw(e)?e.host:e}function DC(t){const e=ql(t);return Gh(e)?t.ownerDocument?t.ownerDocument.body:t.body:Mi(e)&&Eu(e)?e:DC(e)}function Qf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=DC(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=mn(i);return s?e.concat(o,o.visualViewport||[],Eu(i)?i:[],o.frameElement&&r?Qf(o.frameElement):[]):e.concat(i,Qf(i,[],r))}function BC(t){const e=Bn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Mi(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=F0(r)!==s||F0(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function Ym(t){return cs(t)?t:t.contextElement}function kl(t){const e=Ym(t);if(!Mi(e))return uo(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=BC(e);let o=(s?F0(r.width):r.width)/n,a=(s?F0(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const x$=uo(0);function LC(t){const e=mn(t);return!Jm()||!e.visualViewport?x$:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function b$(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==mn(t)?!1:e}function xa(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=Ym(t);let o=uo(1);e&&(n?cs(n)&&(o=kl(n)):o=kl(t));const a=b$(s,r,n)?LC(s):uo(0);let l=(i.left+a.x)/o.x,c=(i.top+a.y)/o.y,f=i.width/o.x,u=i.height/o.y;if(s){const h=mn(s),y=n&&cs(n)?mn(n):n;let g=h.frameElement;for(;g&&n&&y!==h;){const p=kl(g),k=g.getBoundingClientRect(),w=Bn(g),E=k.left+(g.clientLeft+parseFloat(w.paddingLeft))*p.x,A=k.top+(g.clientTop+parseFloat(w.paddingTop))*p.y;l*=p.x,c*=p.y,f*=p.x,u*=p.y,l+=E,c+=A,g=mn(g).frameElement}}return z0({width:f,height:u,x:l,y:c})}function w$(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=Mi(r),s=vs(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a=uo(1);const l=uo(0);if((i||!i&&n!=="fixed")&&((ho(r)!=="body"||Eu(s))&&(o=Kh(r)),Mi(r))){const c=xa(r);a=kl(r),l.x=c.x+r.clientLeft,l.y=c.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}}function C$(t){return Array.from(t.getClientRects())}function jC(t){return xa(vs(t)).left+Kh(t).scrollLeft}function E$(t){const e=vs(t),r=Kh(t),n=t.ownerDocument.body,i=yn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=yn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+jC(t);const a=-r.scrollTop;return Bn(n).direction==="rtl"&&(o+=yn(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function S$(t,e){const r=mn(t),n=vs(t),i=r.visualViewport;let s=n.clientWidth,o=n.clientHeight,a=0,l=0;if(i){s=i.width,o=i.height;const c=Jm();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function k$(t,e){const r=xa(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=Mi(t)?kl(t):uo(1),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=n*s.y;return{width:o,height:a,x:l,y:c}}function Ww(t,e,r){let n;if(e==="viewport")n=S$(t,r);else if(e==="document")n=E$(vs(t));else if(cs(e))n=k$(e,r);else{const i=LC(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return z0(n)}function FC(t,e){const r=ql(t);return r===e||!cs(r)||Gh(r)?!1:Bn(r).position==="fixed"||FC(r,e)}function A$(t,e){const r=e.get(t);if(r)return r;let n=Qf(t,[],!1).filter(a=>cs(a)&&ho(a)!=="body"),i=null;const s=Bn(t).position==="fixed";let o=s?ql(t):t;for(;cs(o)&&!Gh(o);){const a=Bn(o),l=Km(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Eu(o)&&!l&&FC(t,o))?n=n.filter(f=>f!==o):i=a,o=ql(o)}return e.set(t,n),n}function _$(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?A$(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,f)=>{const u=Ww(e,f,i);return c.top=yn(u.top,c.top),c.right=fo(u.right,c.right),c.bottom=fo(u.bottom,c.bottom),c.left=yn(u.left,c.left),c},Ww(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function T$(t){return BC(t)}function I$(t,e,r){const n=Mi(e),i=vs(e),s=r==="fixed",o=xa(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=uo(0);if(n||!n&&!s)if((ho(e)!=="body"||Eu(i))&&(a=Kh(e)),n){const c=xa(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=jC(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function Gw(t,e){return!Mi(t)||Bn(t).position==="fixed"?null:e?e(t):t.offsetParent}function UC(t,e){const r=mn(t);if(!Mi(t))return r;let n=Gw(t,e);for(;n&&g$(n)&&Bn(n).position==="static";)n=Gw(n,e);return n&&(ho(n)==="html"||ho(n)==="body"&&Bn(n).position==="static"&&!Km(n))?r:n||m$(t)||r}const P$=async function(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||UC,s=this.getDimensions;return{reference:I$(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}};function R$(t){return Bn(t).direction==="rtl"}const M$={convertOffsetParentRelativeRectToViewportRelativeRect:w$,getDocumentElement:vs,getClippingRect:_$,getOffsetParent:UC,getElementRects:P$,getClientRects:C$,getDimensions:T$,getScale:kl,isElement:cs,isRTL:R$};function O$(t,e){let r=null,n;const i=vs(t);function s(){clearTimeout(n),r&&r.disconnect(),r=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const{left:c,top:f,width:u,height:h}=t.getBoundingClientRect();if(a||e(),!u||!h)return;const y=od(f),g=od(i.clientWidth-(c+u)),p=od(i.clientHeight-(f+h)),k=od(c),E={rootMargin:-y+"px "+-g+"px "+-p+"px "+-k+"px",threshold:yn(0,fo(1,l))||1};let A=!0;function P(M){const j=M[0].intersectionRatio;if(j!==l){if(!A)return o();j?o(!1,j):n=setTimeout(()=>{o(!1,1e-7)},100)}A=!1}try{r=new IntersectionObserver(P,{...E,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,E)}r.observe(t)}return o(!0),s}function N$(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Ym(t),f=i||s?[...c?Qf(c):[],...Qf(e)]:[];f.forEach(w=>{i&&w.addEventListener("scroll",r,{passive:!0}),s&&w.addEventListener("resize",r)});const u=c&&a?O$(c,r):null;let h=-1,y=null;o&&(y=new ResizeObserver(w=>{let[E]=w;E&&E.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{y&&y.observe(e)})),r()}),c&&!l&&y.observe(c),y.observe(e));let g,p=l?xa(t):null;l&&k();function k(){const w=xa(t);p&&(w.x!==p.x||w.y!==p.y||w.width!==p.width||w.height!==p.height)&&r(),p=w,g=requestAnimationFrame(k)}return r(),()=>{f.forEach(w=>{i&&w.removeEventListener("scroll",r),s&&w.removeEventListener("resize",r)}),u&&u(),y&&y.disconnect(),y=null,l&&cancelAnimationFrame(g)}}const $$=(t,e,r)=>{const n=new Map,i={platform:M$,...r},s={...i.platform,_c:n};return c$(t,e,{...i,platform:s})},D$=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:i}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?zw({element:n.current,padding:i}).fn(r):{}:n?zw({element:n,padding:i}).fn(r):{}}}};var Bd=typeof document<"u"?S.useLayoutEffect:S.useEffect;function V0(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,i;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!V0(t[n],e[n]))return!1;return!0}if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){const s=i[n];if(!(s==="_owner"&&t.$$typeof)&&!V0(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function zC(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Kw(t,e){const r=zC(t);return Math.round(e*r)/r}function Jw(t){const e=S.useRef(t);return Bd(()=>{e.current=t}),e}function B$(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:s,floating:o}={},transform:a=!0,whileElementsMounted:l,open:c}=t,[f,u]=S.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[h,y]=S.useState(n);V0(h,n)||y(n);const[g,p]=S.useState(null),[k,w]=S.useState(null),E=S.useCallback(I=>{I!=j.current&&(j.current=I,p(I))},[p]),A=S.useCallback(I=>{I!==U.current&&(U.current=I,w(I))},[w]),P=s||g,M=o||k,j=S.useRef(null),U=S.useRef(null),F=S.useRef(f),G=Jw(l),J=Jw(i),te=S.useCallback(()=>{if(!j.current||!U.current)return;const I={placement:e,strategy:r,middleware:h};J.current&&(I.platform=J.current),$$(j.current,U.current,I).then(O=>{const x={...O,isPositioned:!0};se.current&&!V0(F.current,x)&&(F.current=x,Co.flushSync(()=>{u(x)}))})},[h,e,r,J]);Bd(()=>{c===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,u(I=>({...I,isPositioned:!1})))},[c]);const se=S.useRef(!1);Bd(()=>(se.current=!0,()=>{se.current=!1}),[]),Bd(()=>{if(P&&(j.current=P),M&&(U.current=M),P&&M){if(G.current)return G.current(P,M,te);te()}},[P,M,te,G]);const D=S.useMemo(()=>({reference:j,floating:U,setReference:E,setFloating:A}),[E,A]),v=S.useMemo(()=>({reference:P,floating:M}),[P,M]),C=S.useMemo(()=>{const I={position:r,left:0,top:0};if(!v.floating)return I;const O=Kw(v.floating,f.x),x=Kw(v.floating,f.y);return a?{...I,transform:"translate("+O+"px, "+x+"px)",...zC(v.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:O,top:x}},[r,a,v.floating,f.x,f.y]);return S.useMemo(()=>({...f,update:te,refs:D,elements:v,floatingStyles:C}),[f,te,D,v,C])}const VC="Popper",[qC,uc]=jr(VC),[L$,HC]=qC(VC),j$=t=>{const{__scopePopper:e,children:r}=t,[n,i]=S.useState(null);return S.createElement(L$,{scope:e,anchor:n,onAnchorChange:i},r)},F$="PopperAnchor",U$=S.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=HC(F$,r),o=S.useRef(null),a=$t(e,o);return S.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:S.createElement(He.div,Ce({},i,{ref:a}))}),WC="PopperContent",[z$,pQ]=qC(WC),V$=S.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:h=0,align:y="center",alignOffset:g=0,arrowPadding:p=0,avoidCollisions:k=!0,collisionBoundary:w=[],collisionPadding:E=0,sticky:A="partial",hideWhenDetached:P=!1,updatePositionStrategy:M="optimized",onPlaced:j,...U}=t,F=HC(WC,f),[G,J]=S.useState(null),te=$t(e,he=>J(he)),[se,D]=S.useState(null),v=Lm(se),C=(r=v==null?void 0:v.width)!==null&&r!==void 0?r:0,I=(n=v==null?void 0:v.height)!==null&&n!==void 0?n:0,O=u+(y!=="center"?"-"+y:""),x=typeof E=="number"?E:{top:0,right:0,bottom:0,left:0,...E},_=Array.isArray(w)?w:[w],R=_.length>0,b={padding:x,boundary:_.filter(q$),altBoundary:R},{refs:d,floatingStyles:T,placement:$,isPositioned:m,middlewareData:N}=B$({strategy:"fixed",placement:O,whileElementsMounted:(...he)=>N$(...he,{animationFrame:M==="always"}),elements:{reference:F.anchor},middleware:[h$({mainAxis:h+I,alignmentAxis:g}),k&&v$({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?y$():void 0,...b}),k&&f$({...b}),p$({...b,apply:({elements:he,rects:qt,availableWidth:z,availableHeight:re})=>{const{width:ae,height:ce}=qt.reference,ve=he.floating.style;ve.setProperty("--radix-popper-available-width",`${z}px`),ve.setProperty("--radix-popper-available-height",`${re}px`),ve.setProperty("--radix-popper-anchor-width",`${ae}px`),ve.setProperty("--radix-popper-anchor-height",`${ce}px`)}}),se&&D$({element:se,padding:p}),H$({arrowWidth:C,arrowHeight:I}),P&&u$({strategy:"referenceHidden",...b})]}),[B,L]=GC($),V=Dn(j);wn(()=>{m&&(V==null||V())},[m,V]);const ee=(i=N.arrow)===null||i===void 0?void 0:i.x,H=(s=N.arrow)===null||s===void 0?void 0:s.y,Z=((o=N.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[pe,le]=S.useState();return wn(()=>{G&&le(window.getComputedStyle(G).zIndex)},[G]),S.createElement("div",{ref:d.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:m?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(a=N.transformOrigin)===null||a===void 0?void 0:a.x,(l=N.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},S.createElement(z$,{scope:f,placedSide:B,onArrowChange:D,arrowX:ee,arrowY:H,shouldHideArrow:Z},S.createElement(He.div,Ce({"data-side":B,"data-align":L},U,{ref:te,style:{...U.style,animation:m?void 0:"none",opacity:(c=N.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function q$(t){return t!==null}const H$=t=>({name:"transformOrigin",options:t,fn(e){var r,n,i,s,o;const{placement:a,rects:l,middlewareData:c}=e,u=((r=c.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,h=u?0:t.arrowWidth,y=u?0:t.arrowHeight,[g,p]=GC(a),k={start:"0%",center:"50%",end:"100%"}[p],w=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+h/2,E=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+y/2;let A="",P="";return g==="bottom"?(A=u?k:`${w}px`,P=`${-y}px`):g==="top"?(A=u?k:`${w}px`,P=`${l.floating.height+y}px`):g==="right"?(A=`${-y}px`,P=u?k:`${E}px`):g==="left"&&(A=`${l.floating.width+y}px`,P=u?k:`${E}px`),{data:{x:A,y:P}}}});function GC(t){const[e,r="center"]=t.split("-");return[e,r]}const W$=j$,G$=U$,K$=V$,KC=S.forwardRef((t,e)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...i}=t;return n?pI.createPortal(S.createElement(He.div,Ce({},i,{ref:e})),n):null}),Tv="rovingFocusGroup.onEntryFocus",J$={bubbles:!1,cancelable:!0},Qm="RovingFocusGroup",[mp,JC,Y$]=Wh(Qm),[Q$,dc]=jr(Qm,[Y$]),[X$,Z$]=Q$(Qm),eD=S.forwardRef((t,e)=>S.createElement(mp.Provider,{scope:t.__scopeRovingFocusGroup},S.createElement(mp.Slot,{scope:t.__scopeRovingFocusGroup},S.createElement(tD,Qt({},t,{ref:e}))))),tD=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=S.useRef(null),h=$t(e,u),y=Vm(s),[g=null,p]=ma({prop:o,defaultProp:a,onChange:l}),[k,w]=S.useState(!1),E=Dn(c),A=JC(r),P=S.useRef(!1),[M,j]=S.useState(0);return S.useEffect(()=>{const U=u.current;if(U)return U.addEventListener(Tv,E),()=>U.removeEventListener(Tv,E)},[E]),S.createElement(X$,{scope:r,orientation:n,dir:y,loop:i,currentTabStopId:g,onItemFocus:S.useCallback(U=>p(U),[p]),onItemShiftTab:S.useCallback(()=>w(!0),[]),onFocusableItemAdd:S.useCallback(()=>j(U=>U+1),[]),onFocusableItemRemove:S.useCallback(()=>j(U=>U-1),[])},S.createElement(He.div,Qt({tabIndex:k||M===0?-1:0,"data-orientation":n},f,{ref:h,style:{outline:"none",...t.style},onMouseDown:be(t.onMouseDown,()=>{P.current=!0}),onFocus:be(t.onFocus,U=>{const F=!P.current;if(U.target===U.currentTarget&&F&&!k){const G=new CustomEvent(Tv,J$);if(U.currentTarget.dispatchEvent(G),!G.defaultPrevented){const J=A().filter(C=>C.focusable),te=J.find(C=>C.active),se=J.find(C=>C.id===g),v=[te,se,...J].filter(Boolean).map(C=>C.ref.current);YC(v)}}P.current=!1}),onBlur:be(t.onBlur,()=>w(!1))})))}),rD="RovingFocusGroupItem",nD=S.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=eo(),l=s||a,c=Z$(rD,r),f=c.currentTabStopId===l,u=JC(r),{onFocusableItemAdd:h,onFocusableItemRemove:y}=c;return S.useEffect(()=>{if(n)return h(),()=>y()},[n,h,y]),S.createElement(mp.ItemSlot,{scope:r,id:l,focusable:n,active:i},S.createElement(He.span,Qt({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:be(t.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:be(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:be(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const p=oD(g,c.orientation,c.dir);if(p!==void 0){g.preventDefault();let w=u().filter(E=>E.focusable).map(E=>E.ref.current);if(p==="last")w.reverse();else if(p==="prev"||p==="next"){p==="prev"&&w.reverse();const E=w.indexOf(g.currentTarget);w=c.loop?aD(w,E+1):w.slice(E+1)}setTimeout(()=>YC(w))}})})))}),iD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function oD(t,e,r){const n=sD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return iD[n]}function YC(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function aD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const lD=eD,QC=nD;var cD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},La=new WeakMap,ad=new WeakMap,ld={},Iv=0,XC=function(t){return t&&(t.host||XC(t.parentNode))},fD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=XC(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},uD=function(t,e,r,n){var i=fD(e,Array.isArray(t)?t:[t]);ld[r]||(ld[r]=new WeakMap);var s=ld[r],o=[],a=new Set,l=new Set(i),c=function(u){!u||a.has(u)||(a.add(u),c(u.parentNode))};i.forEach(c);var f=function(u){!u||l.has(u)||Array.prototype.forEach.call(u.children,function(h){if(a.has(h))f(h);else{var y=h.getAttribute(n),g=y!==null&&y!=="false",p=(La.get(h)||0)+1,k=(s.get(h)||0)+1;La.set(h,p),s.set(h,k),o.push(h),p===1&&g&&ad.set(h,!0),k===1&&h.setAttribute(r,"true"),g||h.setAttribute(n,"true")}})};return f(e),a.clear(),Iv++,function(){o.forEach(function(u){var h=La.get(u)-1,y=s.get(u)-1;La.set(u,h),s.set(u,y),h||(ad.has(u)||u.removeAttribute(n),ad.delete(u)),y||u.removeAttribute(r)}),Iv--,Iv||(La=new WeakMap,La=new WeakMap,ad=new WeakMap,ld={})}},ZC=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=e||cD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),uD(n,i,r,"aria-hidden")):function(){return null}},xi=function(){return xi=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return TD;var e=ID(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},RD=nE(),MD=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` - .`.concat(hD,` { - overflow: hidden `).concat(n,`; - padding-right: `).concat(a,"px ").concat(n,`; - } - body { - overflow: hidden `).concat(n,`; - overscroll-behavior: contain; - `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` - padding-left: `.concat(i,`px; - padding-top: `).concat(s,`px; - padding-right: `).concat(o,`px; - margin-left:0; - margin-top:0; - margin-right: `).concat(a,"px ").concat(n,`; - `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` - } - - .`).concat(Ld,` { - right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(jd,` { - margin-right: `).concat(a,"px ").concat(n,`; - } - - .`).concat(Ld," .").concat(Ld,` { - right: 0 `).concat(n,`; - } - - .`).concat(jd," .").concat(jd,` { - margin-right: 0 `).concat(n,`; - } - - body { - `).concat(vD,": ").concat(a,`px; - } -`)},OD=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=S.useMemo(function(){return PD(i)},[i]);return S.createElement(RD,{styles:MD(s,!e,i,r?"":"!important")})},xp=!1;if(typeof window<"u")try{var cd=Object.defineProperty({},"passive",{get:function(){return xp=!0,!0}});window.addEventListener("test",cd,cd),window.removeEventListener("test",cd,cd)}catch{xp=!1}var ja=xp?{passive:!1}:!1,ND=function(t){return t.tagName==="TEXTAREA"},iE=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!ND(t)&&r[e]==="visible")},$D=function(t){return iE(t,"overflowY")},DD=function(t){return iE(t,"overflowX")},Yw=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=sE(t,r);if(n){var i=oE(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},BD=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},LD=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},sE=function(t,e){return t==="v"?$D(e):DD(e)},oE=function(t,e){return t==="v"?BD(e):LD(e)},jD=function(t,e){return t==="h"&&e==="rtl"?-1:1},FD=function(t,e,r,n,i){var s=jD(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,h=0;do{var y=oE(t,a),g=y[0],p=y[1],k=y[2],w=p-k-s*g;(g||w)&&sE(t,a)&&(u+=w,h+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(i&&u===0||!i&&o>u)||!f&&(i&&h===0||!i&&-o>h))&&(c=!0),c},fd=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Qw=function(t){return[t.deltaX,t.deltaY]},Xw=function(t){return t&&"current"in t?t.current:t},UD=function(t,e){return t[0]===e[0]&&t[1]===e[1]},zD=function(t){return` - .block-interactivity-`.concat(t,` {pointer-events: none;} - .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},VD=0,Fa=[];function qD(t){var e=S.useRef([]),r=S.useRef([0,0]),n=S.useRef(),i=S.useState(VD++)[0],s=S.useState(function(){return nE()})[0],o=S.useRef(t);S.useEffect(function(){o.current=t},[t]),S.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var p=dD([t.lockRef.current],(t.shards||[]).map(Xw),!0).filter(Boolean);return p.forEach(function(k){return k.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),p.forEach(function(k){return k.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=S.useCallback(function(p,k){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var w=fd(p),E=r.current,A="deltaX"in p?p.deltaX:E[0]-w[0],P="deltaY"in p?p.deltaY:E[1]-w[1],M,j=p.target,U=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in p&&U==="h"&&j.type==="range")return!1;var F=Yw(U,j);if(!F)return!0;if(F?M=U:(M=U==="v"?"h":"v",F=Yw(U,j)),!F)return!1;if(!n.current&&"changedTouches"in p&&(A||P)&&(n.current=M),!M)return!0;var G=n.current||M;return FD(G,k,p,G==="h"?A:P,!0)},[]),l=S.useCallback(function(p){var k=p;if(!(!Fa.length||Fa[Fa.length-1]!==s)){var w="deltaY"in k?Qw(k):fd(k),E=e.current.filter(function(M){return M.name===k.type&&M.target===k.target&&UD(M.delta,w)})[0];if(E&&E.should){k.cancelable&&k.preventDefault();return}if(!E){var A=(o.current.shards||[]).map(Xw).filter(Boolean).filter(function(M){return M.contains(k.target)}),P=A.length>0?a(k,A[0]):!o.current.noIsolation;P&&k.cancelable&&k.preventDefault()}}},[]),c=S.useCallback(function(p,k,w,E){var A={name:p,delta:k,target:w,should:E};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(P){return P!==A})},1)},[]),f=S.useCallback(function(p){r.current=fd(p),n.current=void 0},[]),u=S.useCallback(function(p){c(p.type,Qw(p),p.target,a(p,t.lockRef.current))},[]),h=S.useCallback(function(p){c(p.type,fd(p),p.target,a(p,t.lockRef.current))},[]);S.useEffect(function(){return Fa.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",l,ja),document.addEventListener("touchmove",l,ja),document.addEventListener("touchstart",f,ja),function(){Fa=Fa.filter(function(p){return p!==s}),document.removeEventListener("wheel",l,ja),document.removeEventListener("touchmove",l,ja),document.removeEventListener("touchstart",f,ja)}},[]);var y=t.removeScrollBar,g=t.inert;return S.createElement(S.Fragment,null,g?S.createElement(s,{styles:zD(i)}):null,y?S.createElement(OD,{gapMode:"margin"}):null)}const HD=wD(rE,qD);var aE=S.forwardRef(function(t,e){return S.createElement(Jh,xi({},t,{ref:e,sideCar:HD}))});aE.classNames=Jh.classNames;const lE=aE,WD=["Enter"," "],Yh="Menu",[GD,gQ,KD]=Wh(Yh),[Ia,cE]=jr(Yh,[KD,uc,dc]);uc();const JD=dc();Ia(Yh);const[mQ,YD]=Ia(Yh),QD="MenuPortal";Ia(QD,{forceMount:void 0});const XD="MenuContent",[xQ,fE]=Ia(XD),bp="MenuItem",Zw="menu.itemSelect",uE=S.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=S.useRef(null),o=YD(bp,t.__scopeMenu),a=fE(bp,t.__scopeMenu),l=$t(e,s),c=S.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const h=new CustomEvent(Zw,{bubbles:!0,cancelable:!0});u.addEventListener(Zw,y=>n==null?void 0:n(y),{once:!0}),jm(u,h),h.defaultPrevented?c.current=!1:o.onClose()}};return S.createElement(ZD,Ce({},i,{ref:l,disabled:r,onClick:be(t.onClick,f),onPointerDown:u=>{var h;(h=t.onPointerDown)===null||h===void 0||h.call(t,u),c.current=!0},onPointerUp:be(t.onPointerUp,u=>{var h;c.current||(h=u.currentTarget)===null||h===void 0||h.click()}),onKeyDown:be(t.onKeyDown,u=>{const h=a.searchRef.current!=="";r||h&&u.key===" "||WD.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),ZD=S.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=fE(bp,r),a=JD(r),l=S.useRef(null),c=$t(e,l),[f,u]=S.useState(!1),[h,y]=S.useState("");return S.useEffect(()=>{const g=l.current;if(g){var p;y(((p=g.textContent)!==null&&p!==void 0?p:"").trim())}},[s.children]),S.createElement(GD.ItemSlot,{scope:r,disabled:n,textValue:i??h},S.createElement(QC,Ce({asChild:!0},a,{focusable:!n}),S.createElement(He.div,Ce({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:be(t.onPointerMove,e6(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:be(t.onPointerLeave,e6(g=>o.onItemLeave(g))),onFocus:be(t.onFocus,()=>u(!0)),onBlur:be(t.onBlur,()=>u(!1))}))))}),eB=S.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return S.createElement(hE,{scope:t.__scopeMenu,checked:r},S.createElement(uE,Ce({role:"menuitemcheckbox","aria-checked":q0(r)?"mixed":r},i,{ref:e,"data-state":Xm(r),onSelect:be(i.onSelect,()=>n==null?void 0:n(q0(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),tB="MenuRadioGroup",[bQ,rB]=Ia(tB,{value:void 0,onValueChange:()=>{}}),nB="MenuRadioItem",iB=S.forwardRef((t,e)=>{const{value:r,...n}=t,i=rB(nB,t.__scopeMenu),s=r===i.value;return S.createElement(hE,{scope:t.__scopeMenu,checked:s},S.createElement(uE,Ce({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":Xm(s),onSelect:be(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),dE="MenuItemIndicator",[hE,sB]=Ia(dE,{checked:!1}),oB=S.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=sB(dE,r);return S.createElement(Eo,{present:n||q0(s.checked)||s.checked===!0},S.createElement(He.span,Ce({},i,{ref:e,"data-state":Xm(s.checked)})))}),aB="MenuSub";Ia(aB);function q0(t){return t==="indeterminate"}function Xm(t){return q0(t)?"indeterminate":t?"checked":"unchecked"}function e6(t){return e=>e.pointerType==="mouse"?t(e):void 0}const lB=eB,cB=iB,fB=oB,vE="DropdownMenu",[uB,wQ]=jr(vE,[cE]),Zm=cE();uB(vE);const dB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Zm(r);return S.createElement(lB,Ce({},i,n,{ref:e}))}),hB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Zm(r);return S.createElement(cB,Ce({},i,n,{ref:e}))}),vB=S.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=Zm(r);return S.createElement(fB,Ce({},i,n,{ref:e}))}),yB=dB,pB=hB,yE=vB;var pE="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",gE="_1k2mbvi5";const gB=({children:t})=>Y.jsx(yE,{className:gE,children:t});S.forwardRef(({className:t,children:e,...r},n)=>Y.jsxs(yB,{className:un(pE,t),...r,ref:n,children:[Y.jsx(gB,{children:Y.jsx(AC,{size:"xs"})}),Y.jsx(Gt,{variant:"small",children:e})]}));S.forwardRef(({className:t,children:e,...r},n)=>Y.jsxs(pB,{className:un(pE,t),...r,ref:n,children:[Y.jsx(yE,{className:gE,children:Y.jsx(Gt,{children:"ā€¢"})}),Y.jsx(Gt,{variant:"small",children:e})]}));const ex=S.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return Y.jsx(Fe,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),mB=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var xB="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",bB=Xt({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),wB="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const CB={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*",pdf:".pdf,application/pdf"};S.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:i=!1,id:s,label:o="",labelLocation:a="hidden",name:l,onValueChange:c,placeholder:f="Upload a file",validExtensions:u,...h}=t,y=S.useRef(null),g=mB(y,e),[p,k]=S.useState(null),w=A=>{const P=A.currentTarget.files;if(!P||!P[0])return;const M=P[0],j=M.name,U=M.size/1e3;k({name:j,size:U,extension:j.split(".").pop()??""}),c==null||c(M)},E=u.map(A=>CB[A]).join(",");return Y.jsx(ac,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:Y.jsxs(ye,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:un(xB,bB({borderRadius:r})),children:[p?Y.jsxs(ye,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[Y.jsx(Gt,{ellipsis:!0,children:p.name}),Y.jsxs(Gt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):Y.jsx(Gt,{ellipsis:!0,children:f}),Y.jsx(ye,{accept:E,as:"input",className:wB,cursor:"pointer",disabled:i,id:s??l,name:l,onChange:w,ref:g,type:"file",...h}),p&&Y.jsx(ex,{cursor:"pointer",icon:Fm,size:"xs",onClick:A=>{var P;A.preventDefault(),A.stopPropagation(),(P=y.current)!=null&&P.value&&(y.current.value=""),c==null||c(null),k(null)},zIndex:"10"})]})})});var EB=Xt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const wp=1e3,Al=64,Mv=Al/2,Ov=(t,e=wp)=>t%e/(wp/Al),Wo=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let i=0,s;i>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},SB=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:Wo(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},kB=(t,e)=>{const r=[];for(let n=0;n{const s=Al/10+Ov(n.r,wp*1.5/(i+1));return{...SB(n.a,n.b,n.c),x:Ov(n.x),y:Ov(n.y),r:s}})};S.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=kB(r,i);return Y.jsxs(ye,{as:"svg",className:un(e,EB({size:n})),viewBox:`0 0 ${Al} ${Al}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[Y.jsxs("defs",{children:[Y.jsx("clipPath",{id:"circle-clip",children:Y.jsx("circle",{cx:Mv,cy:Mv,r:Mv})}),Y.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[Y.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),Y.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),Y.jsx("feGaussianBlur",{stdDeviation:Al/10,result:"effect1_foregroundBlur"})]}),Y.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[Y.jsx("stop",{offset:"0",stopColor:o[0].c}),Y.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>Y.jsxs(S.Fragment,{children:[Y.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[Y.jsx("stop",{offset:"0",stopColor:a.a}),Y.jsx("stop",{offset:"1",stopColor:a.b})]}),Y.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[Y.jsx("stop",{offset:"0",stopColor:a.c}),Y.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),Y.jsxs("g",{clipPath:"url(#circle-clip)",children:[Y.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),Y.jsx("g",{filter:"url(#blur)",children:o.map(a=>Y.jsxs(S.Fragment,{children:[Y.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),Y.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const mE=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=S.useState(!1),o=a=>{s(!0),r==null||r(a)};return Y.jsx(ye,{as:Sl.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},xE="Dialog",[bE,CQ]=jr(xE),[AB,So]=bE(xE),_B=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=S.useRef(null),l=S.useRef(null),[c=!1,f]=ma({prop:n,defaultProp:i,onChange:s});return S.createElement(AB,{scope:e,triggerRef:a,contentRef:l,contentId:eo(),titleId:eo(),descriptionId:eo(),open:c,onOpenChange:f,onOpenToggle:S.useCallback(()=>f(u=>!u),[f]),modal:o},r)},wE="DialogPortal",[TB,CE]=bE(wE,{forceMount:void 0}),IB=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=So(wE,e);return S.createElement(TB,{scope:e,forceMount:r},S.Children.map(n,o=>S.createElement(Eo,{present:r||s.open},S.createElement(KC,{asChild:!0,container:i},o))))},Cp="DialogOverlay",PB=S.forwardRef((t,e)=>{const r=CE(Cp,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=So(Cp,t.__scopeDialog);return s.modal?S.createElement(Eo,{present:n||s.open},S.createElement(RB,Ce({},i,{ref:e}))):null}),RB=S.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=So(Cp,r);return S.createElement(lE,{as:Vl,allowPinchZoom:!0,shards:[i.contentRef]},S.createElement(He.div,Ce({"data-state":SE(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),Xf="DialogContent",MB=S.forwardRef((t,e)=>{const r=CE(Xf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=So(Xf,t.__scopeDialog);return S.createElement(Eo,{present:n||s.open},s.modal?S.createElement(OB,Ce({},i,{ref:e})):S.createElement(NB,Ce({},i,{ref:e})))}),OB=S.forwardRef((t,e)=>{const r=So(Xf,t.__scopeDialog),n=S.useRef(null),i=$t(e,r.contentRef,n);return S.useEffect(()=>{const s=n.current;if(s)return ZC(s)},[]),S.createElement(EE,Ce({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:be(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:be(t.onFocusOutside,s=>s.preventDefault())}))}),NB=S.forwardRef((t,e)=>{const r=So(Xf,t.__scopeDialog),n=S.useRef(!1),i=S.useRef(!1);return S.createElement(EE,Ce({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var o;if((o=t.onCloseAutoFocus)===null||o===void 0||o.call(t,s),!s.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),s.preventDefault()}n.current=!1,i.current=!1},onInteractOutside:s=>{var o,a;(o=t.onInteractOutside)===null||o===void 0||o.call(t,s),s.defaultPrevented||(n.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}}))}),EE=S.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=So(Xf,r),l=S.useRef(null),c=$t(e,l);return RC(),S.createElement(S.Fragment,null,S.createElement(MC,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},S.createElement(qm,Ce({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":SE(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),$B="DialogClose",DB=S.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=So($B,r);return S.createElement(He.button,Ce({type:"button"},n,{ref:e,onClick:be(t.onClick,()=>i.onOpenChange(!1))}))});function SE(t){return t?"open":"closed"}const BB=_B,LB=IB,jB=PB,FB=MB,UB=DB;var zB=Xt({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),VB=Xt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const qB=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return Y.jsx(ye,{className:VB({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:Y.jsx(ye,{className:zB({direction:n}),background:"backgroundPrimary",...i,children:e})})};function HB(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function WB(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function kE(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=t.constructor();for(var i in t){var s=t[i],o=[...r,i];typeof s=="string"||typeof s=="number"||s==null?n[i]=e(s,o):typeof s=="object"&&!Array.isArray(s)?n[i]=kE(s,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(s)?"Array":typeof s,'"'))}return n}function t6(t,e,r){t.style.setProperty(HB(e),r)}function r6(t,e,r){if(typeof r=="object"){var n=e;kE(r,(a,l)=>{a!=null&&t6(t,WB(n,l),String(a))})}else{var i=e;for(var s in i){var o=i[s];o!=null&&t6(t,s,i[s])}}}const tx=["dark","light"],GB="dark",KB="data-theme",n6="@sequence.theme",JB=t=>tx.includes(t),YB=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),AE=t=>t?`${n6}.${t}`:n6,QB=t=>{const e=localStorage.getItem(AE(t));return e&&tx.includes(e)?e:GB},_E=S.createContext(null),XB=t=>{const[e,r]=S.useState(t.theme||QB(t.scope));S.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),S.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),S.useEffect(()=>{const i=document.querySelector(t.root||":root");i&&(JB(e)?(i.setAttribute(KB,e),r6(i,Aw,{colors:IO[e]})):YB(e)&&r6(i,Aw,{colors:e}))},[e,t.root]);const n=S.useMemo(()=>({theme:e,root:t.root,setTheme:i=>{tx.includes(i)&&(localStorage.setItem(AE(t.scope),i),r(i))}}),[e,t.root,t.scope]);return Y.jsx(_E.Provider,{value:n,children:t.children})},ZB=()=>{const t=S.useContext(_E);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var eL="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",tL="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",rL=Xt({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),nL="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const iL=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:i=!1,isDismissible:s=!0,onClose:o,scroll:a=!0,size:l="lg",overlayProps:c,contentProps:f}=t,{root:u}=ZB(),h=document.querySelector(u||"body");return Y.jsx(BB,{modal:!0,defaultOpen:!0,onOpenChange:o,children:Y.jsx(LB,{forceMount:!0,container:h,children:Y.jsxs(ye,{className:eL,children:[Y.jsx(ye,{as:jB,asChild:!0,background:r,className:tL,forceMount:!0,children:Y.jsx(Sl.div,{initial:i?!1:{opacity:0},animate:i?!1:{opacity:1},exit:i?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...c},"modal-overlay")}),Y.jsx(FB,{asChild:!0,className:rL({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:y=>{s?o==null||o():y.preventDefault()},onInteractOutside:y=>{s||y.preventDefault()},children:Y.jsxs(Sl.div,{initial:i?!1:{y:"100%",opacity:l==="sm"?0:1},animate:i?!1:{y:0,opacity:1},exit:i?void 0:{y:"100%",opacity:l==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...f,children:[a?Y.jsx(qB,{children:n}):n,s&&Y.jsx(UB,{asChild:!0,children:Y.jsx(ex,{icon:Fm,backdropFilter:"blur",size:"xs",className:nL,"aria-label":"Close"})})]},"modal-content")})]})})})};var sL="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",oL=Xt({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),aL=Xt({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const rx=S.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",leftIcon:f,rightIcon:u,name:h,controls:y,type:g="text",numeric:p=!1,...k}=t;return Y.jsx(ac,{description:s,disabled:o,display:"grid",id:a??h,label:l,labelLocation:c,children:Y.jsx(ye,{width:"full",children:Y.jsxs(ye,{className:un(sL,oL({borderRadius:i})),children:[f&&Y.jsx(f,{size:"sm"}),Y.jsx(ye,{as:r,autoComplete:n,spellCheck:"false",className:aL({numeric:p}),disabled:o,id:a??h,name:h,ref:e,type:g,...k}),u&&Y.jsx(u,{size:"sm"}),y]})})})}),lL=RegExp("^\\d*(?:\\\\[.])?\\d*$");function cL(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}S.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:i,onBlur:s,...o}=t,a=c=>{let{value:f}=c.target;f=f.replace(/,/g,"."),f.startsWith(".")&&(f="0"+f),f.startsWith("0")&&(f=f.replace(/^0+(?=\d)/,"")),(f===""||lL.test(cL(f)))&&(i==null||i({...c,target:{...c.target,value:f}}))},l=c=>{const{value:f}=c.target;let u=f;u.endsWith(".")&&(u=u.slice(0,-1)),u.endsWith(".0")&&(u=u.slice(0,-2)),u==="0"&&(u=""),s==null||s(c),u!==f&&(i==null||i({...c,target:{...c.target,value:u}}))};return Y.jsx(rx,{name:r,onChange:a,onBlur:l,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});Xt({defaultClassName:"dtv8gt1",variantClassNames:{size:{sm:"dtv8gt2",normal:"dtv8gt3",md:"dtv8gt4",lg:"dtv8gt5",xl:"dtv8gt6"}},defaultVariants:{},compoundVariants:[]});const TE="Progress",Qh=100,[fL,EQ]=jr(TE),[uL,SQ]=fL(TE),dL=S.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=hL,...o}=t,a=Ep(i)?i:Qh,l=IE(n,a)?n:null,c=H0(l)?s(l,a):void 0;return S.createElement(uL,{scope:r,value:l,max:a},S.createElement(He.div,Qt({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":H0(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":vL(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});dL.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!Ep(n)?new Error(yL(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=Ep(t.max)?t.max:Qh;return n!=null&&!IE(n,s)?new Error(pL(i,r)):null}};function hL(t,e){return`${Math.round(t/e*100)}%`}function vL(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function H0(t){return typeof t=="number"}function Ep(t){return H0(t)&&!isNaN(t)&&t>0}function IE(t,e){return H0(t)&&!isNaN(t)&&t<=e&&t>=0}function yL(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Qh}\`.`}function pL(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: - - a positive number - - less than the value passed to \`max\` (or ${Qh} if no \`max\` prop is set) - - \`null\` if the progress is indeterminate. - -Defaulting to \`null\`.`}const PE="Radio",[gL,RE]=jr(PE),[mL,xL]=gL(PE),bL=S.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=S.useState(null),h=$t(e,p=>u(p)),y=S.useRef(!1),g=f?!!f.closest("form"):!0;return S.createElement(mL,{scope:r,checked:i,disabled:o},S.createElement(He.button,Qt({type:"button",role:"radio","aria-checked":i,"data-state":ME(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:h,onClick:be(t.onClick,p=>{i||l==null||l(),g&&(y.current=p.isPropagationStopped(),y.current||p.stopPropagation())})})),g&&S.createElement(EL,{control:f,bubbles:!y.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),wL="RadioIndicator",CL=S.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=xL(wL,r);return S.createElement(Eo,{present:n||s.checked},S.createElement(He.span,Qt({"data-state":ME(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),EL=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=S.useRef(null),o=Bm(r),a=Lm(e);return S.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const h=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(h)}},[o,r,n]),S.createElement("input",Qt({type:"radio","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function ME(t){return t?"checked":"unchecked"}const SL=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],OE="RadioGroup",[kL,kQ]=jr(OE,[dc,RE]),NE=dc(),$E=RE(),[AL,_L]=kL(OE),TL=S.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:i,value:s,required:o=!1,disabled:a=!1,orientation:l,dir:c,loop:f=!0,onValueChange:u,...h}=t,y=NE(r),g=Vm(c),[p,k]=ma({prop:s,defaultProp:i,onChange:u});return S.createElement(AL,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:k},S.createElement(lD,Qt({asChild:!0},y,{orientation:l,dir:g,loop:f}),S.createElement(He.div,Qt({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},h,{ref:e}))))}),IL="RadioGroupItem",PL=S.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=_L(IL,r),o=s.disabled||n,a=NE(r),l=$E(r),c=S.useRef(null),f=$t(e,c),u=s.value===i.value,h=S.useRef(!1);return S.useEffect(()=>{const y=p=>{SL.includes(p.key)&&(h.current=!0)},g=()=>h.current=!1;return document.addEventListener("keydown",y),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",y),document.removeEventListener("keyup",g)}},[]),S.createElement(QC,Qt({asChild:!0},a,{focusable:!o,active:u}),S.createElement(bL,Qt({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:be(y=>{y.key==="Enter"&&y.preventDefault()}),onFocus:be(i.onFocus,()=>{var y;h.current&&((y=c.current)===null||y===void 0||y.click())})})))}),RL=S.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=$E(r);return S.createElement(CL,Qt({},i,n,{ref:e}))}),ML=TL,OL=PL,NL=RL;var $L=Xt({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),DL=Xt({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const BL=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return Y.jsx(ye,{alignItems:"center",children:Y.jsx(ac,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:Y.jsx(OL,{className:$L({size:n}),value:i,id:e,disabled:s,children:Y.jsx(NL,{className:DL({size:n})})})})})};S.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return Y.jsx(ML,{disabled:n,name:s,ref:e,...l,children:Y.jsx(ye,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>Y.jsx(BL,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function i6(t,[e,r]){return Math.min(r,Math.max(e,t))}const DE=S.forwardRef((t,e)=>S.createElement(He.span,Ce({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),LL=[" ","Enter","ArrowUp","ArrowDown"],jL=[" ","Enter"],Xh="Select",[Zh,nx,FL]=Wh(Xh),[hc,AQ]=jr(Xh,[FL,uc]),ix=uc(),[UL,Pa]=hc(Xh),[zL,VL]=hc(Xh),qL=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:i,onOpenChange:s,value:o,defaultValue:a,onValueChange:l,dir:c,name:f,autoComplete:u,disabled:h,required:y}=t,g=ix(e),[p,k]=S.useState(null),[w,E]=S.useState(null),[A,P]=S.useState(!1),M=Vm(c),[j=!1,U]=ma({prop:n,defaultProp:i,onChange:s}),[F,G]=ma({prop:o,defaultProp:a,onChange:l}),J=S.useRef(null),te=p?!!p.closest("form"):!0,[se,D]=S.useState(new Set),v=Array.from(se).map(C=>C.props.value).join(";");return S.createElement(W$,g,S.createElement(UL,{required:y,scope:e,trigger:p,onTriggerChange:k,valueNode:w,onValueNodeChange:E,valueNodeHasChildren:A,onValueNodeHasChildrenChange:P,contentId:eo(),value:F,onValueChange:G,open:j,onOpenChange:U,dir:M,triggerPointerDownPosRef:J,disabled:h},S.createElement(Zh.Provider,{scope:e},S.createElement(zL,{scope:t.__scopeSelect,onNativeOptionAdd:S.useCallback(C=>{D(I=>new Set(I).add(C))},[]),onNativeOptionRemove:S.useCallback(C=>{D(I=>{const O=new Set(I);return O.delete(C),O})},[])},r)),te?S.createElement(jE,{key:v,"aria-hidden":!0,required:y,tabIndex:-1,name:f,autoComplete:u,value:F,onChange:C=>G(C.target.value),disabled:h},F===void 0?S.createElement("option",{value:""}):null,Array.from(se)):null))},HL="SelectTrigger",WL=S.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=ix(r),o=Pa(HL,r),a=o.disabled||n,l=$t(e,o.onTriggerChange),c=nx(r),[f,u,h]=FE(g=>{const p=c().filter(E=>!E.disabled),k=p.find(E=>E.value===o.value),w=UE(p,g,k);w!==void 0&&o.onValueChange(w.value)}),y=()=>{a||(o.onOpenChange(!0),h())};return S.createElement(G$,Ce({asChild:!0},s),S.createElement(He.button,Ce({type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":LE(o.value)?"":void 0},i,{ref:l,onClick:be(i.onClick,g=>{g.currentTarget.focus()}),onPointerDown:be(i.onPointerDown,g=>{const p=g.target;p.hasPointerCapture(g.pointerId)&&p.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(y(),o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:be(i.onKeyDown,g=>{const p=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&u(g.key),!(p&&g.key===" ")&&LL.includes(g.key)&&(y(),g.preventDefault())})})))}),GL="SelectValue",KL=S.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o="",...a}=t,l=Pa(GL,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=$t(e,l.onValueNodeChange);return wn(()=>{c(f)},[c,f]),S.createElement(He.span,Ce({},a,{ref:u,style:{pointerEvents:"none"}}),LE(l.value)?S.createElement(S.Fragment,null,o):s)}),JL=S.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return S.createElement(He.span,Ce({"aria-hidden":!0},i,{ref:e}),n||"ā–¼")}),Hl="SelectContent",YL=S.forwardRef((t,e)=>{const r=Pa(Hl,t.__scopeSelect),[n,i]=S.useState();if(wn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?Co.createPortal(S.createElement(BE,{scope:t.__scopeSelect},S.createElement(Zh.Slot,{scope:t.__scopeSelect},S.createElement("div",null,t.children))),s):null}return S.createElement(QL,Ce({},t,{ref:e}))}),Vi=10,[BE,e1]=hc(Hl),QL=S.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:o,side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:p,avoidCollisions:k,...w}=t,E=Pa(Hl,r),[A,P]=S.useState(null),[M,j]=S.useState(null),U=$t(e,B=>P(B)),[F,G]=S.useState(null),[J,te]=S.useState(null),se=nx(r),[D,v]=S.useState(!1),C=S.useRef(!1);S.useEffect(()=>{if(A)return ZC(A)},[A]),RC();const I=S.useCallback(B=>{const[L,...V]=se().map(Z=>Z.ref.current),[ee]=V.slice(-1),H=document.activeElement;for(const Z of B)if(Z===H||(Z==null||Z.scrollIntoView({block:"nearest"}),Z===L&&M&&(M.scrollTop=0),Z===ee&&M&&(M.scrollTop=M.scrollHeight),Z==null||Z.focus(),document.activeElement!==H))return},[se,M]),O=S.useCallback(()=>I([F,A]),[I,F,A]);S.useEffect(()=>{D&&O()},[D,O]);const{onOpenChange:x,triggerPointerDownPosRef:_}=E;S.useEffect(()=>{if(A){let B={x:0,y:0};const L=ee=>{var H,Z,pe,le;B={x:Math.abs(Math.round(ee.pageX)-((H=(Z=_.current)===null||Z===void 0?void 0:Z.x)!==null&&H!==void 0?H:0)),y:Math.abs(Math.round(ee.pageY)-((pe=(le=_.current)===null||le===void 0?void 0:le.y)!==null&&pe!==void 0?pe:0))}},V=ee=>{B.x<=10&&B.y<=10?ee.preventDefault():A.contains(ee.target)||x(!1),document.removeEventListener("pointermove",L),_.current=null};return _.current!==null&&(document.addEventListener("pointermove",L),document.addEventListener("pointerup",V,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",L),document.removeEventListener("pointerup",V,{capture:!0})}}},[A,x,_]),S.useEffect(()=>{const B=()=>x(!1);return window.addEventListener("blur",B),window.addEventListener("resize",B),()=>{window.removeEventListener("blur",B),window.removeEventListener("resize",B)}},[x]);const[R,b]=FE(B=>{const L=se().filter(H=>!H.disabled),V=L.find(H=>H.ref.current===document.activeElement),ee=UE(L,B,V);ee&&setTimeout(()=>ee.ref.current.focus())}),d=S.useCallback((B,L,V)=>{const ee=!C.current&&!V;(E.value!==void 0&&E.value===L||ee)&&(G(B),ee&&(C.current=!0))},[E.value]),T=S.useCallback(()=>A==null?void 0:A.focus(),[A]),$=S.useCallback((B,L,V)=>{const ee=!C.current&&!V;(E.value!==void 0&&E.value===L||ee)&&te(B)},[E.value]),m=n==="popper"?s6:XL,N=m===s6?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:h,collisionPadding:y,sticky:g,hideWhenDetached:p,avoidCollisions:k}:{};return S.createElement(BE,{scope:r,content:A,viewport:M,onViewportChange:j,itemRefCallback:d,selectedItem:F,onItemLeave:T,itemTextRefCallback:$,focusSelectedItem:O,selectedItemText:J,position:n,isPositioned:D,searchRef:R},S.createElement(lE,{as:Vl,allowPinchZoom:!0},S.createElement(MC,{asChild:!0,trapped:E.open,onMountAutoFocus:B=>{B.preventDefault()},onUnmountAutoFocus:be(i,B=>{var L;(L=E.trigger)===null||L===void 0||L.focus({preventScroll:!0}),B.preventDefault()})},S.createElement(qm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:B=>B.preventDefault(),onDismiss:()=>E.onOpenChange(!1)},S.createElement(m,Ce({role:"listbox",id:E.contentId,"data-state":E.open?"open":"closed",dir:E.dir,onContextMenu:B=>B.preventDefault()},w,N,{onPlaced:()=>v(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:be(w.onKeyDown,B=>{const L=B.ctrlKey||B.altKey||B.metaKey;if(B.key==="Tab"&&B.preventDefault(),!L&&B.key.length===1&&b(B.key),["ArrowUp","ArrowDown","Home","End"].includes(B.key)){let ee=se().filter(H=>!H.disabled).map(H=>H.ref.current);if(["ArrowUp","End"].includes(B.key)&&(ee=ee.slice().reverse()),["ArrowUp","ArrowDown"].includes(B.key)){const H=B.target,Z=ee.indexOf(H);ee=ee.slice(Z+1)}setTimeout(()=>I(ee)),B.preventDefault()}})}))))))}),XL=S.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=Pa(Hl,r),o=e1(Hl,r),[a,l]=S.useState(null),[c,f]=S.useState(null),u=$t(e,U=>f(U)),h=nx(r),y=S.useRef(!1),g=S.useRef(!0),{viewport:p,selectedItem:k,selectedItemText:w,focusSelectedItem:E}=o,A=S.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&p&&k&&w){const U=s.trigger.getBoundingClientRect(),F=c.getBoundingClientRect(),G=s.valueNode.getBoundingClientRect(),J=w.getBoundingClientRect();if(s.dir!=="rtl"){const H=J.left-F.left,Z=G.left-H,pe=U.left-Z,le=U.width+pe,he=Math.max(le,F.width),qt=window.innerWidth-Vi,z=i6(Z,[Vi,qt-he]);a.style.minWidth=le+"px",a.style.left=z+"px"}else{const H=F.right-J.right,Z=window.innerWidth-G.right-H,pe=window.innerWidth-U.right-Z,le=U.width+pe,he=Math.max(le,F.width),qt=window.innerWidth-Vi,z=i6(Z,[Vi,qt-he]);a.style.minWidth=le+"px",a.style.right=z+"px"}const te=h(),se=window.innerHeight-Vi*2,D=p.scrollHeight,v=window.getComputedStyle(c),C=parseInt(v.borderTopWidth,10),I=parseInt(v.paddingTop,10),O=parseInt(v.borderBottomWidth,10),x=parseInt(v.paddingBottom,10),_=C+I+D+x+O,R=Math.min(k.offsetHeight*5,_),b=window.getComputedStyle(p),d=parseInt(b.paddingTop,10),T=parseInt(b.paddingBottom,10),$=U.top+U.height/2-Vi,m=se-$,N=k.offsetHeight/2,B=k.offsetTop+N,L=C+I+B,V=_-L;if(L<=$){const H=k===te[te.length-1].ref.current;a.style.bottom="0px";const Z=c.clientHeight-p.offsetTop-p.offsetHeight,pe=Math.max(m,N+(H?T:0)+Z+O),le=L+pe;a.style.height=le+"px"}else{const H=k===te[0].ref.current;a.style.top="0px";const pe=Math.max($,C+p.offsetTop+(H?d:0)+N)+V;a.style.height=pe+"px",p.scrollTop=L-$+p.offsetTop}a.style.margin=`${Vi}px 0`,a.style.minHeight=R+"px",a.style.maxHeight=se+"px",n==null||n(),requestAnimationFrame(()=>y.current=!0)}},[h,s.trigger,s.valueNode,a,c,p,k,w,s.dir,n]);wn(()=>A(),[A]);const[P,M]=S.useState();wn(()=>{c&&M(window.getComputedStyle(c).zIndex)},[c]);const j=S.useCallback(U=>{U&&g.current===!0&&(A(),E==null||E(),g.current=!1)},[A,E]);return S.createElement(ZL,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:y,onScrollButtonChange:j},S.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},S.createElement(He.div,Ce({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),s6=S.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Vi,...s}=t,o=ix(r);return S.createElement(K$,Ce({},o,s,{ref:e,align:n,collisionPadding:i,style:{boxSizing:"border-box",...s.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}}))}),[ZL,ej]=hc(Hl,{}),o6="SelectViewport",tj=S.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=e1(o6,r),s=ej(o6,r),o=$t(e,i.onViewportChange),a=S.useRef(0);return S.createElement(S.Fragment,null,S.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),S.createElement(Zh.Slot,{scope:r},S.createElement(He.div,Ce({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:be(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const h=Math.abs(a.current-c.scrollTop);if(h>0){const y=window.innerHeight-Vi*2,g=parseFloat(f.style.minHeight),p=parseFloat(f.style.height),k=Math.max(g,p);if(k0?A:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),rj="SelectGroup",[nj,_Q]=hc(rj),ij=S.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=eo();return S.createElement(nj,{scope:r,id:i},S.createElement(He.div,Ce({role:"group","aria-labelledby":i},n,{ref:e})))}),Sp="SelectItem",[sj,oj]=hc(Sp),aj=S.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=Pa(Sp,r),l=e1(Sp,r),c=a.value===n,[f,u]=S.useState(s??""),[h,y]=S.useState(!1),g=$t(e,w=>{var E;return(E=l.itemRefCallback)===null||E===void 0?void 0:E.call(l,w,n,i)}),p=eo(),k=()=>{i||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return S.createElement(sj,{scope:r,value:n,disabled:i,textId:p,isSelected:c,onItemTextChange:S.useCallback(w=>{u(E=>{var A;return E||((A=w==null?void 0:w.textContent)!==null&&A!==void 0?A:"").trim()})},[])},S.createElement(Zh.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},S.createElement(He.div,Ce({role:"option","aria-labelledby":p,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:g,onFocus:be(o.onFocus,()=>y(!0)),onBlur:be(o.onBlur,()=>y(!1)),onPointerUp:be(o.onPointerUp,k),onPointerMove:be(o.onPointerMove,w=>{if(i){var E;(E=l.onItemLeave)===null||E===void 0||E.call(l)}else w.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(o.onPointerLeave,w=>{if(w.currentTarget===document.activeElement){var E;(E=l.onItemLeave)===null||E===void 0||E.call(l)}}),onKeyDown:be(o.onKeyDown,w=>{var E;((E=l.searchRef)===null||E===void 0?void 0:E.current)!==""&&w.key===" "||(jL.includes(w.key)&&k(),w.key===" "&&w.preventDefault())})}))))}),ud="SelectItemText",lj=S.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=Pa(ud,r),a=e1(ud,r),l=oj(ud,r),c=VL(ud,r),[f,u]=S.useState(null),h=$t(e,w=>u(w),l.onItemTextChange,w=>{var E;return(E=a.itemTextRefCallback)===null||E===void 0?void 0:E.call(a,w,l.value,l.disabled)}),y=f==null?void 0:f.textContent,g=S.useMemo(()=>S.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},y),[l.disabled,l.value,y]),{onNativeOptionAdd:p,onNativeOptionRemove:k}=c;return wn(()=>(p(g),()=>k(g)),[p,k,g]),S.createElement(S.Fragment,null,S.createElement(He.span,Ce({id:l.textId},s,{ref:h})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Co.createPortal(s.children,o.valueNode):null)});function LE(t){return t===""||t===void 0}const jE=S.forwardRef((t,e)=>{const{value:r,...n}=t,i=S.useRef(null),s=$t(e,i),o=Bm(r);return S.useEffect(()=>{const a=i.current,l=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(l,"value").set;if(o!==r&&f){const u=new Event("change",{bubbles:!0});f.call(a,r),a.dispatchEvent(u)}},[o,r]),S.createElement(DE,{asChild:!0},S.createElement("select",Ce({},n,{ref:s,defaultValue:r})))});jE.displayName="BubbleSelect";function FE(t){const e=Dn(t),r=S.useRef(""),n=S.useRef(0),i=S.useCallback(o=>{const a=r.current+o;e(a),function l(c){r.current=c,window.clearTimeout(n.current),c!==""&&(n.current=window.setTimeout(()=>l(""),1e3))}(a)},[e]),s=S.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return S.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function UE(t,e,r){const i=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,s=r?t.indexOf(r):-1;let o=cj(t,Math.max(s,0));i.length===1&&(o=o.filter(c=>c!==r));const l=o.find(c=>c.textValue.toLowerCase().startsWith(i.toLowerCase()));return l!==r?l:void 0}function cj(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const fj=qL,uj=WL,dj=KL,hj=JL,vj=YL,yj=tj,pj=ij,gj=aj,mj=lj;var xj="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",bj=Xt({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),wj="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",Cj="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const Ej=S.forwardRef(({children:t,className:e,...r},n)=>Y.jsx(gj,{className:un(Cj,e),...r,ref:n,children:Y.jsx(mj,{children:t})})),a6=S.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:i,label:s="",description:o,labelLocation:a="hidden",name:l,options:c,placeholder:f,...u}=t;return Y.jsx(ac,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:Y.jsxs(fj,{disabled:n,name:l,...u,children:[Y.jsxs(uj,{id:i??l,className:un(xj,bj({borderRadius:r})),ref:e,children:[Y.jsx(dj,{placeholder:f}),Y.jsx(ye,{as:hj,display:"inline-flex",children:Y.jsx(_C,{})})]}),Y.jsx(vj,{className:wj,children:Y.jsx(yj,{children:Y.jsx(pj,{children:c.map(({value:h,label:y,...g})=>Y.jsx(Ej,{value:h,...g,children:y},h))})})})]})})});S.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?Y.jsx(ex,{icon:Fm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return Y.jsx(rx,{ref:e,name:s,leftIcon:mN,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var Sj=Xt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});S.forwardRef((t,e)=>{const{size:r="md",...n}=t;return Y.jsx(ye,{className:Sj({size:r}),color:"text50",ref:e,...n,children:Y.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[Y.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),Y.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});S.forwardRef(({children:t},e)=>Y.jsx(ye,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));const zE="Switch",[kj,TQ]=jr(zE);kj(zE);Xt({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});const VE="Tabs",[Aj,IQ]=jr(VE,[dc]);dc();Aj(VE);var _j="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";S.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return Y.jsxs(ye,{className:_j,ref:e,background:"buttonGlass",color:"text80",...i,children:[r&&Y.jsx(r,{size:"xs"}),Y.jsx(Gt,{children:n})]})});const Tj="ToastProvider",[Ij,PQ,Pj]=Wh("Toast"),[qE,RQ]=jr("Toast",[Pj]),[MQ,HE]=qE(Tj),l6="toast.viewportPause",c6="toast.viewportResume",t1="Toast",Rj="toast.swipeStart",Mj="toast.swipeMove",Oj="toast.swipeCancel",Nj="toast.swipeEnd",[$j,Dj]=qE(t1,{onClose(){}}),Bj=S.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:i,open:s,onClose:o,onEscapeKeyDown:a,onPause:l,onResume:c,onSwipeStart:f,onSwipeMove:u,onSwipeCancel:h,onSwipeEnd:y,...g}=t,p=HE(t1,r),[k,w]=S.useState(null),E=$t(e,v=>w(v)),A=S.useRef(null),P=S.useRef(null),M=i||p.duration,j=S.useRef(0),U=S.useRef(M),F=S.useRef(0),{onToastAdd:G,onToastRemove:J}=p,te=Dn(()=>{var v;(k==null?void 0:k.contains(document.activeElement))&&((v=p.viewport)===null||v===void 0||v.focus()),o()}),se=S.useCallback(v=>{!v||v===1/0||(window.clearTimeout(F.current),j.current=new Date().getTime(),F.current=window.setTimeout(te,v))},[te]);S.useEffect(()=>{const v=p.viewport;if(v){const C=()=>{se(U.current),c==null||c()},I=()=>{const O=new Date().getTime()-j.current;U.current=U.current-O,window.clearTimeout(F.current),l==null||l()};return v.addEventListener(l6,I),v.addEventListener(c6,C),()=>{v.removeEventListener(l6,I),v.removeEventListener(c6,C)}}},[p.viewport,M,l,c,se]),S.useEffect(()=>{s&&!p.isClosePausedRef.current&&se(M)},[s,M,p.isClosePausedRef,se]),S.useEffect(()=>(G(),()=>J()),[G,J]);const D=S.useMemo(()=>k?GE(k):null,[k]);return p.viewport?S.createElement(S.Fragment,null,D&&S.createElement(Lj,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},D),S.createElement($j,{scope:r,onClose:te},Co.createPortal(S.createElement(Ij.ItemSlot,{scope:r},S.createElement(KN,{asChild:!0,onEscapeKeyDown:be(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||te(),p.isFocusedToastEscapeKeyDownRef.current=!1})},S.createElement(He.li,Ce({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":p.swipeDirection},g,{ref:E,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:be(t.onKeyDown,v=>{v.key==="Escape"&&(a==null||a(v.nativeEvent),v.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,te()))}),onPointerDown:be(t.onPointerDown,v=>{v.button===0&&(A.current={x:v.clientX,y:v.clientY})}),onPointerMove:be(t.onPointerMove,v=>{if(!A.current)return;const C=v.clientX-A.current.x,I=v.clientY-A.current.y,O=!!P.current,x=["left","right"].includes(p.swipeDirection),_=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,R=x?_(0,C):0,b=x?0:_(0,I),d=v.pointerType==="touch"?10:2,T={x:R,y:b},$={originalEvent:v,delta:T};O?(P.current=T,dd(Mj,u,$,{discrete:!1})):f6(T,p.swipeDirection,d)?(P.current=T,dd(Rj,f,$,{discrete:!1}),v.target.setPointerCapture(v.pointerId)):(Math.abs(C)>d||Math.abs(I)>d)&&(A.current=null)}),onPointerUp:be(t.onPointerUp,v=>{const C=P.current,I=v.target;if(I.hasPointerCapture(v.pointerId)&&I.releasePointerCapture(v.pointerId),P.current=null,A.current=null,C){const O=v.currentTarget,x={originalEvent:v,delta:C};f6(C,p.swipeDirection,p.swipeThreshold)?dd(Nj,y,x,{discrete:!0}):dd(Oj,h,x,{discrete:!0}),O.addEventListener("click",_=>_.preventDefault(),{once:!0})}})})))),p.viewport))):null});Bj.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${t1}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const Lj=t=>{const{__scopeToast:e,children:r,...n}=t,i=HE(t1,e),[s,o]=S.useState(!1),[a,l]=S.useState(!1);return Vj(()=>o(!0)),S.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:S.createElement(KC,{asChild:!0},S.createElement(DE,n,s&&S.createElement(S.Fragment,null,i.label," ",r)))},jj="ToastAction",Fj=S.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?S.createElement(WE,{altText:r,asChild:!0},S.createElement(zj,Ce({},n,{ref:e}))):null});Fj.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${jj}\``)}};const Uj="ToastClose",zj=S.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=Dj(Uj,r);return S.createElement(WE,{asChild:!0},S.createElement(He.button,Ce({type:"button"},n,{ref:e,onClick:be(t.onClick,i.onClose)})))}),WE=S.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return S.createElement(He.div,Ce({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function GE(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),qj(n)){const i=n.ariaHidden||n.hidden||n.style.display==="none",s=n.dataset.radixToastAnnounceExclude==="";if(!i)if(s){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...GE(n))}}),e}function dd(t,e,r,{discrete:n}){const i=r.originalEvent.currentTarget,s=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),n?jm(i,s):i.dispatchEvent(s)}const f6=(t,e,r=0)=>{const n=Math.abs(t.x),i=Math.abs(t.y),s=n>i;return e==="left"||e==="right"?s&&n>r:!s&&i>r};function Vj(t=()=>{}){const e=Dn(t);wn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function qj(t){return t.nodeType===t.ELEMENT_NODE}Xt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});S.createContext(null);var Hj="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",Wj="_15pztn2";S.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:i="md",description:s,disabled:o=!1,id:a,label:l="",labelLocation:c="hidden",name:f,rows:u,resize:h=!1,...y}=t;return Y.jsx(ac,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:Y.jsx(ye,{as:r,autoComplete:n,spellCheck:"false",className:un(Hj,h&&Wj),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...y})})});var Gj=Xt({defaultClassName:"bnrreb5 bnrreb0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"bnrreb6",sm:"bnrreb7",md:"bnrreb8",lg:"bnrreb9",xl:"bnrreba"},borderRadius:{circle:"bnrrebb bnrreb1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"bnrrebc bnrreb2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"bnrrebd bnrreb3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"bnrrebe bnrreb4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),Kj="bnrrebf",Jj="bnrrebh bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const Yj=S.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return Y.jsx(ye,{className:un(r,Gj({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?Y.jsx(mE,{className:Kj,disableAnimation:n,src:s}):Y.jsx(Gt,{className:Jj,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})}),[r1,OQ]=jr("Tooltip",[uc]);uc();const Qj="TooltipProvider";r1(Qj);const KE="Tooltip";r1(KE);const Xj="TooltipPortal";r1(Xj,{forceMount:void 0});r1(KE,{isInside:!1});var JE,u6=Co;JE=u6.createRoot,u6.hydrateRoot;var sx={exports:{}};const Zj={},eF=Object.freeze(Object.defineProperty({__proto__:null,default:Zj},Symbol.toStringTag,{value:"Module"})),tF=qA(eF);sx.exports;(function(t){(function(e,r){function n(D,v){if(!D)throw new Error(v||"Assertion failed")}function i(D,v){D.super_=v;var C=function(){};C.prototype=v.prototype,D.prototype=new C,D.prototype.constructor=D}function s(D,v,C){if(s.isBN(D))return D;this.negative=0,this.words=null,this.length=0,this.red=null,D!==null&&((v==="le"||v==="be")&&(C=v,v=10),this._init(D||0,v||10,C||"be"))}typeof e=="object"?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;var o;try{typeof window<"u"&&typeof window.Buffer<"u"?o=window.Buffer:o=tF.Buffer}catch{}s.isBN=function(v){return v instanceof s?!0:v!==null&&typeof v=="object"&&v.constructor.wordSize===s.wordSize&&Array.isArray(v.words)},s.max=function(v,C){return v.cmp(C)>0?v:C},s.min=function(v,C){return v.cmp(C)<0?v:C},s.prototype._init=function(v,C,I){if(typeof v=="number")return this._initNumber(v,C,I);if(typeof v=="object")return this._initArray(v,C,I);C==="hex"&&(C=16),n(C===(C|0)&&C>=2&&C<=36),v=v.toString().replace(/\s+/g,"");var O=0;v[0]==="-"&&(O++,this.negative=1),O=0;O-=3)_=v[O]|v[O-1]<<8|v[O-2]<<16,this.words[x]|=_<>>26-R&67108863,R+=24,R>=26&&(R-=26,x++);else if(I==="le")for(O=0,x=0;O>>26-R&67108863,R+=24,R>=26&&(R-=26,x++);return this._strip()};function a(D,v){var C=D.charCodeAt(v);if(C>=48&&C<=57)return C-48;if(C>=65&&C<=70)return C-55;if(C>=97&&C<=102)return C-87;n(!1,"Invalid character in "+D)}function l(D,v,C){var I=a(D,C);return C-1>=v&&(I|=a(D,C-1)<<4),I}s.prototype._parseHex=function(v,C,I){this.length=Math.ceil((v.length-C)/6),this.words=new Array(this.length);for(var O=0;O=C;O-=2)R=l(v,C,O)<=18?(x-=18,_+=1,this.words[_]|=R>>>26):x+=8;else{var b=v.length-C;for(O=b%2===0?C+1:C;O=18?(x-=18,_+=1,this.words[_]|=R>>>26):x+=8}this._strip()};function c(D,v,C,I){for(var O=0,x=0,_=Math.min(D.length,C),R=v;R<_;R++){var b=D.charCodeAt(R)-48;O*=I,b>=49?x=b-49+10:b>=17?x=b-17+10:x=b,n(b>=0&&x1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},s.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch{s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?""}var h=["","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"],y=[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],g=[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];s.prototype.toString=function(v,C){v=v||10,C=C|0||1;var I;if(v===16||v==="hex"){I="";for(var O=0,x=0,_=0;_>>24-O&16777215,O+=2,O>=26&&(O-=26,_--),x!==0||_!==this.length-1?I=h[6-b.length]+b+I:I=b+I}for(x!==0&&(I=x.toString(16)+I);I.length%C!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(v===(v|0)&&v>=2&&v<=36){var d=y[v],T=g[v];I="";var $=this.clone();for($.negative=0;!$.isZero();){var m=$.modrn(T).toString(v);$=$.idivn(T),$.isZero()?I=m+I:I=h[d-m.length]+m+I}for(this.isZero()&&(I="0"+I);I.length%C!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var v=this.words[0];return this.length===2?v+=this.words[1]*67108864:this.length===3&&this.words[2]===1?v+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-v:v},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(v,C){return this.toArrayLike(o,v,C)}),s.prototype.toArray=function(v,C){return this.toArrayLike(Array,v,C)};var p=function(v,C){return v.allocUnsafe?v.allocUnsafe(C):new v(C)};s.prototype.toArrayLike=function(v,C,I){this._strip();var O=this.byteLength(),x=I||Math.max(1,O);n(O<=x,"byte array longer than desired length"),n(x>0,"Requested array length <= 0");var _=p(v,x),R=C==="le"?"LE":"BE";return this["_toArrayLike"+R](_,O),_},s.prototype._toArrayLikeLE=function(v,C){for(var I=0,O=0,x=0,_=0;x>8&255),I>16&255),_===6?(I>24&255),O=0,_=0):(O=R>>>24,_+=2)}if(I=0&&(v[I--]=R>>8&255),I>=0&&(v[I--]=R>>16&255),_===6?(I>=0&&(v[I--]=R>>24&255),O=0,_=0):(O=R>>>24,_+=2)}if(I>=0)for(v[I--]=O;I>=0;)v[I--]=0},Math.clz32?s.prototype._countBits=function(v){return 32-Math.clz32(v)}:s.prototype._countBits=function(v){var C=v,I=0;return C>=4096&&(I+=13,C>>>=13),C>=64&&(I+=7,C>>>=7),C>=8&&(I+=4,C>>>=4),C>=2&&(I+=2,C>>>=2),I+C},s.prototype._zeroBits=function(v){if(v===0)return 26;var C=v,I=0;return C&8191||(I+=13,C>>>=13),C&127||(I+=7,C>>>=7),C&15||(I+=4,C>>>=4),C&3||(I+=2,C>>>=2),C&1||I++,I},s.prototype.bitLength=function(){var v=this.words[this.length-1],C=this._countBits(v);return(this.length-1)*26+C};function k(D){for(var v=new Array(D.bitLength()),C=0;C>>O&1}return v}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var v=0,C=0;Cv.length?this.clone().ior(v):v.clone().ior(this)},s.prototype.uor=function(v){return this.length>v.length?this.clone().iuor(v):v.clone().iuor(this)},s.prototype.iuand=function(v){var C;this.length>v.length?C=v:C=this;for(var I=0;Iv.length?this.clone().iand(v):v.clone().iand(this)},s.prototype.uand=function(v){return this.length>v.length?this.clone().iuand(v):v.clone().iuand(this)},s.prototype.iuxor=function(v){var C,I;this.length>v.length?(C=this,I=v):(C=v,I=this);for(var O=0;Ov.length?this.clone().ixor(v):v.clone().ixor(this)},s.prototype.uxor=function(v){return this.length>v.length?this.clone().iuxor(v):v.clone().iuxor(this)},s.prototype.inotn=function(v){n(typeof v=="number"&&v>=0);var C=Math.ceil(v/26)|0,I=v%26;this._expand(C),I>0&&C--;for(var O=0;O0&&(this.words[O]=~this.words[O]&67108863>>26-I),this._strip()},s.prototype.notn=function(v){return this.clone().inotn(v)},s.prototype.setn=function(v,C){n(typeof v=="number"&&v>=0);var I=v/26|0,O=v%26;return this._expand(I+1),C?this.words[I]=this.words[I]|1<v.length?(I=this,O=v):(I=v,O=this);for(var x=0,_=0;_>>26;for(;x!==0&&_>>26;if(this.length=I.length,x!==0)this.words[this.length]=x,this.length++;else if(I!==this)for(;_v.length?this.clone().iadd(v):v.clone().iadd(this)},s.prototype.isub=function(v){if(v.negative!==0){v.negative=0;var C=this.iadd(v);return v.negative=1,C._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(v),this.negative=1,this._normSign();var I=this.cmp(v);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var O,x;I>0?(O=this,x=v):(O=v,x=this);for(var _=0,R=0;R>26,this.words[R]=C&67108863;for(;_!==0&&R>26,this.words[R]=C&67108863;if(_===0&&R>>26,$=b&67108863,m=Math.min(d,v.length-1),N=Math.max(0,d-D.length+1);N<=m;N++){var B=d-N|0;O=D.words[B]|0,x=v.words[N]|0,_=O*x+$,T+=_/67108864|0,$=_&67108863}C.words[d]=$|0,b=T|0}return b!==0?C.words[d]=b|0:C.length--,C._strip()}var E=function(v,C,I){var O=v.words,x=C.words,_=I.words,R=0,b,d,T,$=O[0]|0,m=$&8191,N=$>>>13,B=O[1]|0,L=B&8191,V=B>>>13,ee=O[2]|0,H=ee&8191,Z=ee>>>13,pe=O[3]|0,le=pe&8191,he=pe>>>13,qt=O[4]|0,z=qt&8191,re=qt>>>13,ae=O[5]|0,ce=ae&8191,ve=ae>>>13,tt=O[6]|0,Be=tt&8191,Je=tt>>>13,Un=O[7]|0,ot=Un&8191,at=Un>>>13,To=O[8]|0,lt=To&8191,ct=To>>>13,Io=O[9]|0,ft=Io&8191,ut=Io>>>13,Po=x[0]|0,dt=Po&8191,ht=Po>>>13,Ro=x[1]|0,vt=Ro&8191,yt=Ro>>>13,Mo=x[2]|0,pt=Mo&8191,gt=Mo>>>13,Oo=x[3]|0,mt=Oo&8191,xt=Oo>>>13,No=x[4]|0,bt=No&8191,wt=No>>>13,$o=x[5]|0,Ct=$o&8191,Et=$o>>>13,Do=x[6]|0,St=Do&8191,kt=Do>>>13,Bo=x[7]|0,At=Bo&8191,_t=Bo>>>13,Lo=x[8]|0,Tt=Lo&8191,It=Lo>>>13,jo=x[9]|0,Pt=jo&8191,Rt=jo>>>13;I.negative=v.negative^C.negative,I.length=19,b=Math.imul(m,dt),d=Math.imul(m,ht),d=d+Math.imul(N,dt)|0,T=Math.imul(N,ht);var bs=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(bs>>>26)|0,bs&=67108863,b=Math.imul(L,dt),d=Math.imul(L,ht),d=d+Math.imul(V,dt)|0,T=Math.imul(V,ht),b=b+Math.imul(m,vt)|0,d=d+Math.imul(m,yt)|0,d=d+Math.imul(N,vt)|0,T=T+Math.imul(N,yt)|0;var ws=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(ws>>>26)|0,ws&=67108863,b=Math.imul(H,dt),d=Math.imul(H,ht),d=d+Math.imul(Z,dt)|0,T=Math.imul(Z,ht),b=b+Math.imul(L,vt)|0,d=d+Math.imul(L,yt)|0,d=d+Math.imul(V,vt)|0,T=T+Math.imul(V,yt)|0,b=b+Math.imul(m,pt)|0,d=d+Math.imul(m,gt)|0,d=d+Math.imul(N,pt)|0,T=T+Math.imul(N,gt)|0;var Cs=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(Cs>>>26)|0,Cs&=67108863,b=Math.imul(le,dt),d=Math.imul(le,ht),d=d+Math.imul(he,dt)|0,T=Math.imul(he,ht),b=b+Math.imul(H,vt)|0,d=d+Math.imul(H,yt)|0,d=d+Math.imul(Z,vt)|0,T=T+Math.imul(Z,yt)|0,b=b+Math.imul(L,pt)|0,d=d+Math.imul(L,gt)|0,d=d+Math.imul(V,pt)|0,T=T+Math.imul(V,gt)|0,b=b+Math.imul(m,mt)|0,d=d+Math.imul(m,xt)|0,d=d+Math.imul(N,mt)|0,T=T+Math.imul(N,xt)|0;var Es=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(Es>>>26)|0,Es&=67108863,b=Math.imul(z,dt),d=Math.imul(z,ht),d=d+Math.imul(re,dt)|0,T=Math.imul(re,ht),b=b+Math.imul(le,vt)|0,d=d+Math.imul(le,yt)|0,d=d+Math.imul(he,vt)|0,T=T+Math.imul(he,yt)|0,b=b+Math.imul(H,pt)|0,d=d+Math.imul(H,gt)|0,d=d+Math.imul(Z,pt)|0,T=T+Math.imul(Z,gt)|0,b=b+Math.imul(L,mt)|0,d=d+Math.imul(L,xt)|0,d=d+Math.imul(V,mt)|0,T=T+Math.imul(V,xt)|0,b=b+Math.imul(m,bt)|0,d=d+Math.imul(m,wt)|0,d=d+Math.imul(N,bt)|0,T=T+Math.imul(N,wt)|0;var Ss=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(Ss>>>26)|0,Ss&=67108863,b=Math.imul(ce,dt),d=Math.imul(ce,ht),d=d+Math.imul(ve,dt)|0,T=Math.imul(ve,ht),b=b+Math.imul(z,vt)|0,d=d+Math.imul(z,yt)|0,d=d+Math.imul(re,vt)|0,T=T+Math.imul(re,yt)|0,b=b+Math.imul(le,pt)|0,d=d+Math.imul(le,gt)|0,d=d+Math.imul(he,pt)|0,T=T+Math.imul(he,gt)|0,b=b+Math.imul(H,mt)|0,d=d+Math.imul(H,xt)|0,d=d+Math.imul(Z,mt)|0,T=T+Math.imul(Z,xt)|0,b=b+Math.imul(L,bt)|0,d=d+Math.imul(L,wt)|0,d=d+Math.imul(V,bt)|0,T=T+Math.imul(V,wt)|0,b=b+Math.imul(m,Ct)|0,d=d+Math.imul(m,Et)|0,d=d+Math.imul(N,Ct)|0,T=T+Math.imul(N,Et)|0;var S1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(S1>>>26)|0,S1&=67108863,b=Math.imul(Be,dt),d=Math.imul(Be,ht),d=d+Math.imul(Je,dt)|0,T=Math.imul(Je,ht),b=b+Math.imul(ce,vt)|0,d=d+Math.imul(ce,yt)|0,d=d+Math.imul(ve,vt)|0,T=T+Math.imul(ve,yt)|0,b=b+Math.imul(z,pt)|0,d=d+Math.imul(z,gt)|0,d=d+Math.imul(re,pt)|0,T=T+Math.imul(re,gt)|0,b=b+Math.imul(le,mt)|0,d=d+Math.imul(le,xt)|0,d=d+Math.imul(he,mt)|0,T=T+Math.imul(he,xt)|0,b=b+Math.imul(H,bt)|0,d=d+Math.imul(H,wt)|0,d=d+Math.imul(Z,bt)|0,T=T+Math.imul(Z,wt)|0,b=b+Math.imul(L,Ct)|0,d=d+Math.imul(L,Et)|0,d=d+Math.imul(V,Ct)|0,T=T+Math.imul(V,Et)|0,b=b+Math.imul(m,St)|0,d=d+Math.imul(m,kt)|0,d=d+Math.imul(N,St)|0,T=T+Math.imul(N,kt)|0;var k1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(k1>>>26)|0,k1&=67108863,b=Math.imul(ot,dt),d=Math.imul(ot,ht),d=d+Math.imul(at,dt)|0,T=Math.imul(at,ht),b=b+Math.imul(Be,vt)|0,d=d+Math.imul(Be,yt)|0,d=d+Math.imul(Je,vt)|0,T=T+Math.imul(Je,yt)|0,b=b+Math.imul(ce,pt)|0,d=d+Math.imul(ce,gt)|0,d=d+Math.imul(ve,pt)|0,T=T+Math.imul(ve,gt)|0,b=b+Math.imul(z,mt)|0,d=d+Math.imul(z,xt)|0,d=d+Math.imul(re,mt)|0,T=T+Math.imul(re,xt)|0,b=b+Math.imul(le,bt)|0,d=d+Math.imul(le,wt)|0,d=d+Math.imul(he,bt)|0,T=T+Math.imul(he,wt)|0,b=b+Math.imul(H,Ct)|0,d=d+Math.imul(H,Et)|0,d=d+Math.imul(Z,Ct)|0,T=T+Math.imul(Z,Et)|0,b=b+Math.imul(L,St)|0,d=d+Math.imul(L,kt)|0,d=d+Math.imul(V,St)|0,T=T+Math.imul(V,kt)|0,b=b+Math.imul(m,At)|0,d=d+Math.imul(m,_t)|0,d=d+Math.imul(N,At)|0,T=T+Math.imul(N,_t)|0;var A1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(A1>>>26)|0,A1&=67108863,b=Math.imul(lt,dt),d=Math.imul(lt,ht),d=d+Math.imul(ct,dt)|0,T=Math.imul(ct,ht),b=b+Math.imul(ot,vt)|0,d=d+Math.imul(ot,yt)|0,d=d+Math.imul(at,vt)|0,T=T+Math.imul(at,yt)|0,b=b+Math.imul(Be,pt)|0,d=d+Math.imul(Be,gt)|0,d=d+Math.imul(Je,pt)|0,T=T+Math.imul(Je,gt)|0,b=b+Math.imul(ce,mt)|0,d=d+Math.imul(ce,xt)|0,d=d+Math.imul(ve,mt)|0,T=T+Math.imul(ve,xt)|0,b=b+Math.imul(z,bt)|0,d=d+Math.imul(z,wt)|0,d=d+Math.imul(re,bt)|0,T=T+Math.imul(re,wt)|0,b=b+Math.imul(le,Ct)|0,d=d+Math.imul(le,Et)|0,d=d+Math.imul(he,Ct)|0,T=T+Math.imul(he,Et)|0,b=b+Math.imul(H,St)|0,d=d+Math.imul(H,kt)|0,d=d+Math.imul(Z,St)|0,T=T+Math.imul(Z,kt)|0,b=b+Math.imul(L,At)|0,d=d+Math.imul(L,_t)|0,d=d+Math.imul(V,At)|0,T=T+Math.imul(V,_t)|0,b=b+Math.imul(m,Tt)|0,d=d+Math.imul(m,It)|0,d=d+Math.imul(N,Tt)|0,T=T+Math.imul(N,It)|0;var _1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(_1>>>26)|0,_1&=67108863,b=Math.imul(ft,dt),d=Math.imul(ft,ht),d=d+Math.imul(ut,dt)|0,T=Math.imul(ut,ht),b=b+Math.imul(lt,vt)|0,d=d+Math.imul(lt,yt)|0,d=d+Math.imul(ct,vt)|0,T=T+Math.imul(ct,yt)|0,b=b+Math.imul(ot,pt)|0,d=d+Math.imul(ot,gt)|0,d=d+Math.imul(at,pt)|0,T=T+Math.imul(at,gt)|0,b=b+Math.imul(Be,mt)|0,d=d+Math.imul(Be,xt)|0,d=d+Math.imul(Je,mt)|0,T=T+Math.imul(Je,xt)|0,b=b+Math.imul(ce,bt)|0,d=d+Math.imul(ce,wt)|0,d=d+Math.imul(ve,bt)|0,T=T+Math.imul(ve,wt)|0,b=b+Math.imul(z,Ct)|0,d=d+Math.imul(z,Et)|0,d=d+Math.imul(re,Ct)|0,T=T+Math.imul(re,Et)|0,b=b+Math.imul(le,St)|0,d=d+Math.imul(le,kt)|0,d=d+Math.imul(he,St)|0,T=T+Math.imul(he,kt)|0,b=b+Math.imul(H,At)|0,d=d+Math.imul(H,_t)|0,d=d+Math.imul(Z,At)|0,T=T+Math.imul(Z,_t)|0,b=b+Math.imul(L,Tt)|0,d=d+Math.imul(L,It)|0,d=d+Math.imul(V,Tt)|0,T=T+Math.imul(V,It)|0,b=b+Math.imul(m,Pt)|0,d=d+Math.imul(m,Rt)|0,d=d+Math.imul(N,Pt)|0,T=T+Math.imul(N,Rt)|0;var T1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(T1>>>26)|0,T1&=67108863,b=Math.imul(ft,vt),d=Math.imul(ft,yt),d=d+Math.imul(ut,vt)|0,T=Math.imul(ut,yt),b=b+Math.imul(lt,pt)|0,d=d+Math.imul(lt,gt)|0,d=d+Math.imul(ct,pt)|0,T=T+Math.imul(ct,gt)|0,b=b+Math.imul(ot,mt)|0,d=d+Math.imul(ot,xt)|0,d=d+Math.imul(at,mt)|0,T=T+Math.imul(at,xt)|0,b=b+Math.imul(Be,bt)|0,d=d+Math.imul(Be,wt)|0,d=d+Math.imul(Je,bt)|0,T=T+Math.imul(Je,wt)|0,b=b+Math.imul(ce,Ct)|0,d=d+Math.imul(ce,Et)|0,d=d+Math.imul(ve,Ct)|0,T=T+Math.imul(ve,Et)|0,b=b+Math.imul(z,St)|0,d=d+Math.imul(z,kt)|0,d=d+Math.imul(re,St)|0,T=T+Math.imul(re,kt)|0,b=b+Math.imul(le,At)|0,d=d+Math.imul(le,_t)|0,d=d+Math.imul(he,At)|0,T=T+Math.imul(he,_t)|0,b=b+Math.imul(H,Tt)|0,d=d+Math.imul(H,It)|0,d=d+Math.imul(Z,Tt)|0,T=T+Math.imul(Z,It)|0,b=b+Math.imul(L,Pt)|0,d=d+Math.imul(L,Rt)|0,d=d+Math.imul(V,Pt)|0,T=T+Math.imul(V,Rt)|0;var I1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(I1>>>26)|0,I1&=67108863,b=Math.imul(ft,pt),d=Math.imul(ft,gt),d=d+Math.imul(ut,pt)|0,T=Math.imul(ut,gt),b=b+Math.imul(lt,mt)|0,d=d+Math.imul(lt,xt)|0,d=d+Math.imul(ct,mt)|0,T=T+Math.imul(ct,xt)|0,b=b+Math.imul(ot,bt)|0,d=d+Math.imul(ot,wt)|0,d=d+Math.imul(at,bt)|0,T=T+Math.imul(at,wt)|0,b=b+Math.imul(Be,Ct)|0,d=d+Math.imul(Be,Et)|0,d=d+Math.imul(Je,Ct)|0,T=T+Math.imul(Je,Et)|0,b=b+Math.imul(ce,St)|0,d=d+Math.imul(ce,kt)|0,d=d+Math.imul(ve,St)|0,T=T+Math.imul(ve,kt)|0,b=b+Math.imul(z,At)|0,d=d+Math.imul(z,_t)|0,d=d+Math.imul(re,At)|0,T=T+Math.imul(re,_t)|0,b=b+Math.imul(le,Tt)|0,d=d+Math.imul(le,It)|0,d=d+Math.imul(he,Tt)|0,T=T+Math.imul(he,It)|0,b=b+Math.imul(H,Pt)|0,d=d+Math.imul(H,Rt)|0,d=d+Math.imul(Z,Pt)|0,T=T+Math.imul(Z,Rt)|0;var P1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(P1>>>26)|0,P1&=67108863,b=Math.imul(ft,mt),d=Math.imul(ft,xt),d=d+Math.imul(ut,mt)|0,T=Math.imul(ut,xt),b=b+Math.imul(lt,bt)|0,d=d+Math.imul(lt,wt)|0,d=d+Math.imul(ct,bt)|0,T=T+Math.imul(ct,wt)|0,b=b+Math.imul(ot,Ct)|0,d=d+Math.imul(ot,Et)|0,d=d+Math.imul(at,Ct)|0,T=T+Math.imul(at,Et)|0,b=b+Math.imul(Be,St)|0,d=d+Math.imul(Be,kt)|0,d=d+Math.imul(Je,St)|0,T=T+Math.imul(Je,kt)|0,b=b+Math.imul(ce,At)|0,d=d+Math.imul(ce,_t)|0,d=d+Math.imul(ve,At)|0,T=T+Math.imul(ve,_t)|0,b=b+Math.imul(z,Tt)|0,d=d+Math.imul(z,It)|0,d=d+Math.imul(re,Tt)|0,T=T+Math.imul(re,It)|0,b=b+Math.imul(le,Pt)|0,d=d+Math.imul(le,Rt)|0,d=d+Math.imul(he,Pt)|0,T=T+Math.imul(he,Rt)|0;var R1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(R1>>>26)|0,R1&=67108863,b=Math.imul(ft,bt),d=Math.imul(ft,wt),d=d+Math.imul(ut,bt)|0,T=Math.imul(ut,wt),b=b+Math.imul(lt,Ct)|0,d=d+Math.imul(lt,Et)|0,d=d+Math.imul(ct,Ct)|0,T=T+Math.imul(ct,Et)|0,b=b+Math.imul(ot,St)|0,d=d+Math.imul(ot,kt)|0,d=d+Math.imul(at,St)|0,T=T+Math.imul(at,kt)|0,b=b+Math.imul(Be,At)|0,d=d+Math.imul(Be,_t)|0,d=d+Math.imul(Je,At)|0,T=T+Math.imul(Je,_t)|0,b=b+Math.imul(ce,Tt)|0,d=d+Math.imul(ce,It)|0,d=d+Math.imul(ve,Tt)|0,T=T+Math.imul(ve,It)|0,b=b+Math.imul(z,Pt)|0,d=d+Math.imul(z,Rt)|0,d=d+Math.imul(re,Pt)|0,T=T+Math.imul(re,Rt)|0;var M1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(M1>>>26)|0,M1&=67108863,b=Math.imul(ft,Ct),d=Math.imul(ft,Et),d=d+Math.imul(ut,Ct)|0,T=Math.imul(ut,Et),b=b+Math.imul(lt,St)|0,d=d+Math.imul(lt,kt)|0,d=d+Math.imul(ct,St)|0,T=T+Math.imul(ct,kt)|0,b=b+Math.imul(ot,At)|0,d=d+Math.imul(ot,_t)|0,d=d+Math.imul(at,At)|0,T=T+Math.imul(at,_t)|0,b=b+Math.imul(Be,Tt)|0,d=d+Math.imul(Be,It)|0,d=d+Math.imul(Je,Tt)|0,T=T+Math.imul(Je,It)|0,b=b+Math.imul(ce,Pt)|0,d=d+Math.imul(ce,Rt)|0,d=d+Math.imul(ve,Pt)|0,T=T+Math.imul(ve,Rt)|0;var O1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(O1>>>26)|0,O1&=67108863,b=Math.imul(ft,St),d=Math.imul(ft,kt),d=d+Math.imul(ut,St)|0,T=Math.imul(ut,kt),b=b+Math.imul(lt,At)|0,d=d+Math.imul(lt,_t)|0,d=d+Math.imul(ct,At)|0,T=T+Math.imul(ct,_t)|0,b=b+Math.imul(ot,Tt)|0,d=d+Math.imul(ot,It)|0,d=d+Math.imul(at,Tt)|0,T=T+Math.imul(at,It)|0,b=b+Math.imul(Be,Pt)|0,d=d+Math.imul(Be,Rt)|0,d=d+Math.imul(Je,Pt)|0,T=T+Math.imul(Je,Rt)|0;var N1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(N1>>>26)|0,N1&=67108863,b=Math.imul(ft,At),d=Math.imul(ft,_t),d=d+Math.imul(ut,At)|0,T=Math.imul(ut,_t),b=b+Math.imul(lt,Tt)|0,d=d+Math.imul(lt,It)|0,d=d+Math.imul(ct,Tt)|0,T=T+Math.imul(ct,It)|0,b=b+Math.imul(ot,Pt)|0,d=d+Math.imul(ot,Rt)|0,d=d+Math.imul(at,Pt)|0,T=T+Math.imul(at,Rt)|0;var $1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+($1>>>26)|0,$1&=67108863,b=Math.imul(ft,Tt),d=Math.imul(ft,It),d=d+Math.imul(ut,Tt)|0,T=Math.imul(ut,It),b=b+Math.imul(lt,Pt)|0,d=d+Math.imul(lt,Rt)|0,d=d+Math.imul(ct,Pt)|0,T=T+Math.imul(ct,Rt)|0;var D1=(R+b|0)+((d&8191)<<13)|0;R=(T+(d>>>13)|0)+(D1>>>26)|0,D1&=67108863,b=Math.imul(ft,Pt),d=Math.imul(ft,Rt),d=d+Math.imul(ut,Pt)|0,T=Math.imul(ut,Rt);var B1=(R+b|0)+((d&8191)<<13)|0;return R=(T+(d>>>13)|0)+(B1>>>26)|0,B1&=67108863,_[0]=bs,_[1]=ws,_[2]=Cs,_[3]=Es,_[4]=Ss,_[5]=S1,_[6]=k1,_[7]=A1,_[8]=_1,_[9]=T1,_[10]=I1,_[11]=P1,_[12]=R1,_[13]=M1,_[14]=O1,_[15]=N1,_[16]=$1,_[17]=D1,_[18]=B1,R!==0&&(_[19]=R,I.length++),I};Math.imul||(E=w);function A(D,v,C){C.negative=v.negative^D.negative,C.length=D.length+v.length;for(var I=0,O=0,x=0;x>>26)|0,O+=_>>>26,_&=67108863}C.words[x]=R,I=_,_=O}return I!==0?C.words[x]=I:C.length--,C._strip()}function P(D,v,C){return A(D,v,C)}s.prototype.mulTo=function(v,C){var I,O=this.length+v.length;return this.length===10&&v.length===10?I=E(this,v,C):O<63?I=w(this,v,C):O<1024?I=A(this,v,C):I=P(this,v,C),I},s.prototype.mul=function(v){var C=new s(null);return C.words=new Array(this.length+v.length),this.mulTo(v,C)},s.prototype.mulf=function(v){var C=new s(null);return C.words=new Array(this.length+v.length),P(this,v,C)},s.prototype.imul=function(v){return this.clone().mulTo(v,this)},s.prototype.imuln=function(v){var C=v<0;C&&(v=-v),n(typeof v=="number"),n(v<67108864);for(var I=0,O=0;O>=26,I+=x/67108864|0,I+=_>>>26,this.words[O]=_&67108863}return I!==0&&(this.words[O]=I,this.length++),C?this.ineg():this},s.prototype.muln=function(v){return this.clone().imuln(v)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(v){var C=k(v);if(C.length===0)return new s(1);for(var I=this,O=0;O=0);var C=v%26,I=(v-C)/26,O=67108863>>>26-C<<26-C,x;if(C!==0){var _=0;for(x=0;x>>26-C}_&&(this.words[x]=_,this.length++)}if(I!==0){for(x=this.length-1;x>=0;x--)this.words[x+I]=this.words[x];for(x=0;x=0);var O;C?O=(C-C%26)/26:O=0;var x=v%26,_=Math.min((v-x)/26,this.length),R=67108863^67108863>>>x<_)for(this.length-=_,d=0;d=0&&(T!==0||d>=O);d--){var $=this.words[d]|0;this.words[d]=T<<26-x|$>>>x,T=$&R}return b&&T!==0&&(b.words[b.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(v,C,I){return n(this.negative===0),this.iushrn(v,C,I)},s.prototype.shln=function(v){return this.clone().ishln(v)},s.prototype.ushln=function(v){return this.clone().iushln(v)},s.prototype.shrn=function(v){return this.clone().ishrn(v)},s.prototype.ushrn=function(v){return this.clone().iushrn(v)},s.prototype.testn=function(v){n(typeof v=="number"&&v>=0);var C=v%26,I=(v-C)/26,O=1<=0);var C=v%26,I=(v-C)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(C!==0&&I++,this.length=Math.min(I,this.length),C!==0){var O=67108863^67108863>>>C<=67108864;C++)this.words[C]-=67108864,C===this.length-1?this.words[C+1]=1:this.words[C+1]++;return this.length=Math.max(this.length,C+1),this},s.prototype.isubn=function(v){if(n(typeof v=="number"),n(v<67108864),v<0)return this.iaddn(-v);if(this.negative!==0)return this.negative=0,this.iaddn(v),this.negative=1,this;if(this.words[0]-=v,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var C=0;C>26)-(b/67108864|0),this.words[x+I]=_&67108863}for(;x>26,this.words[x+I]=_&67108863;if(R===0)return this._strip();for(n(R===-1),R=0,x=0;x>26,this.words[x]=_&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(v,C){var I=this.length-v.length,O=this.clone(),x=v,_=x.words[x.length-1]|0,R=this._countBits(_);I=26-R,I!==0&&(x=x.ushln(I),O.iushln(I),_=x.words[x.length-1]|0);var b=O.length-x.length,d;if(C!=="mod"){d=new s(null),d.length=b+1,d.words=new Array(d.length);for(var T=0;T=0;m--){var N=(O.words[x.length+m]|0)*67108864+(O.words[x.length+m-1]|0);for(N=Math.min(N/_|0,67108863),O._ishlnsubmul(x,N,m);O.negative!==0;)N--,O.negative=0,O._ishlnsubmul(x,1,m),O.isZero()||(O.negative^=1);d&&(d.words[m]=N)}return d&&d._strip(),O._strip(),C!=="div"&&I!==0&&O.iushrn(I),{div:d||null,mod:O}},s.prototype.divmod=function(v,C,I){if(n(!v.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var O,x,_;return this.negative!==0&&v.negative===0?(_=this.neg().divmod(v,C),C!=="mod"&&(O=_.div.neg()),C!=="div"&&(x=_.mod.neg(),I&&x.negative!==0&&x.iadd(v)),{div:O,mod:x}):this.negative===0&&v.negative!==0?(_=this.divmod(v.neg(),C),C!=="mod"&&(O=_.div.neg()),{div:O,mod:_.mod}):this.negative&v.negative?(_=this.neg().divmod(v.neg(),C),C!=="div"&&(x=_.mod.neg(),I&&x.negative!==0&&x.isub(v)),{div:_.div,mod:x}):v.length>this.length||this.cmp(v)<0?{div:new s(0),mod:this}:v.length===1?C==="div"?{div:this.divn(v.words[0]),mod:null}:C==="mod"?{div:null,mod:new s(this.modrn(v.words[0]))}:{div:this.divn(v.words[0]),mod:new s(this.modrn(v.words[0]))}:this._wordDiv(v,C)},s.prototype.div=function(v){return this.divmod(v,"div",!1).div},s.prototype.mod=function(v){return this.divmod(v,"mod",!1).mod},s.prototype.umod=function(v){return this.divmod(v,"mod",!0).mod},s.prototype.divRound=function(v){var C=this.divmod(v);if(C.mod.isZero())return C.div;var I=C.div.negative!==0?C.mod.isub(v):C.mod,O=v.ushrn(1),x=v.andln(1),_=I.cmp(O);return _<0||x===1&&_===0?C.div:C.div.negative!==0?C.div.isubn(1):C.div.iaddn(1)},s.prototype.modrn=function(v){var C=v<0;C&&(v=-v),n(v<=67108863);for(var I=(1<<26)%v,O=0,x=this.length-1;x>=0;x--)O=(I*O+(this.words[x]|0))%v;return C?-O:O},s.prototype.modn=function(v){return this.modrn(v)},s.prototype.idivn=function(v){var C=v<0;C&&(v=-v),n(v<=67108863);for(var I=0,O=this.length-1;O>=0;O--){var x=(this.words[O]|0)+I*67108864;this.words[O]=x/v|0,I=x%v}return this._strip(),C?this.ineg():this},s.prototype.divn=function(v){return this.clone().idivn(v)},s.prototype.egcd=function(v){n(v.negative===0),n(!v.isZero());var C=this,I=v.clone();C.negative!==0?C=C.umod(v):C=C.clone();for(var O=new s(1),x=new s(0),_=new s(0),R=new s(1),b=0;C.isEven()&&I.isEven();)C.iushrn(1),I.iushrn(1),++b;for(var d=I.clone(),T=C.clone();!C.isZero();){for(var $=0,m=1;!(C.words[0]&m)&&$<26;++$,m<<=1);if($>0)for(C.iushrn($);$-- >0;)(O.isOdd()||x.isOdd())&&(O.iadd(d),x.isub(T)),O.iushrn(1),x.iushrn(1);for(var N=0,B=1;!(I.words[0]&B)&&N<26;++N,B<<=1);if(N>0)for(I.iushrn(N);N-- >0;)(_.isOdd()||R.isOdd())&&(_.iadd(d),R.isub(T)),_.iushrn(1),R.iushrn(1);C.cmp(I)>=0?(C.isub(I),O.isub(_),x.isub(R)):(I.isub(C),_.isub(O),R.isub(x))}return{a:_,b:R,gcd:I.iushln(b)}},s.prototype._invmp=function(v){n(v.negative===0),n(!v.isZero());var C=this,I=v.clone();C.negative!==0?C=C.umod(v):C=C.clone();for(var O=new s(1),x=new s(0),_=I.clone();C.cmpn(1)>0&&I.cmpn(1)>0;){for(var R=0,b=1;!(C.words[0]&b)&&R<26;++R,b<<=1);if(R>0)for(C.iushrn(R);R-- >0;)O.isOdd()&&O.iadd(_),O.iushrn(1);for(var d=0,T=1;!(I.words[0]&T)&&d<26;++d,T<<=1);if(d>0)for(I.iushrn(d);d-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);C.cmp(I)>=0?(C.isub(I),O.isub(x)):(I.isub(C),x.isub(O))}var $;return C.cmpn(1)===0?$=O:$=x,$.cmpn(0)<0&&$.iadd(v),$},s.prototype.gcd=function(v){if(this.isZero())return v.abs();if(v.isZero())return this.abs();var C=this.clone(),I=v.clone();C.negative=0,I.negative=0;for(var O=0;C.isEven()&&I.isEven();O++)C.iushrn(1),I.iushrn(1);do{for(;C.isEven();)C.iushrn(1);for(;I.isEven();)I.iushrn(1);var x=C.cmp(I);if(x<0){var _=C;C=I,I=_}else if(x===0||I.cmpn(1)===0)break;C.isub(I)}while(!0);return I.iushln(O)},s.prototype.invm=function(v){return this.egcd(v).a.umod(v)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(v){return this.words[0]&v},s.prototype.bincn=function(v){n(typeof v=="number");var C=v%26,I=(v-C)/26,O=1<>>26,R&=67108863,this.words[_]=R}return x!==0&&(this.words[_]=x,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(v){var C=v<0;if(this.negative!==0&&!C)return-1;if(this.negative===0&&C)return 1;this._strip();var I;if(this.length>1)I=1;else{C&&(v=-v),n(v<=67108863,"Number is too big");var O=this.words[0]|0;I=O===v?0:Ov.length)return 1;if(this.length=0;I--){var O=this.words[I]|0,x=v.words[I]|0;if(O!==x){Ox&&(C=1);break}}return C},s.prototype.gtn=function(v){return this.cmpn(v)===1},s.prototype.gt=function(v){return this.cmp(v)===1},s.prototype.gten=function(v){return this.cmpn(v)>=0},s.prototype.gte=function(v){return this.cmp(v)>=0},s.prototype.ltn=function(v){return this.cmpn(v)===-1},s.prototype.lt=function(v){return this.cmp(v)===-1},s.prototype.lten=function(v){return this.cmpn(v)<=0},s.prototype.lte=function(v){return this.cmp(v)<=0},s.prototype.eqn=function(v){return this.cmpn(v)===0},s.prototype.eq=function(v){return this.cmp(v)===0},s.red=function(v){return new te(v)},s.prototype.toRed=function(v){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),v.convertTo(this)._forceRed(v)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(v){return this.red=v,this},s.prototype.forceRed=function(v){return n(!this.red,"Already a number in reduction context"),this._forceRed(v)},s.prototype.redAdd=function(v){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,v)},s.prototype.redIAdd=function(v){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,v)},s.prototype.redSub=function(v){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,v)},s.prototype.redISub=function(v){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,v)},s.prototype.redShl=function(v){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,v)},s.prototype.redMul=function(v){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.mul(this,v)},s.prototype.redIMul=function(v){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,v),this.red.imul(this,v)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(v){return n(this.red&&!v.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,v)};var M={k256:null,p224:null,p192:null,p25519:null};function j(D,v){this.name=D,this.p=new s(v,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j.prototype._tmp=function(){var v=new s(null);return v.words=new Array(Math.ceil(this.n/13)),v},j.prototype.ireduce=function(v){var C=v,I;do this.split(C,this.tmp),C=this.imulK(C),C=C.iadd(this.tmp),I=C.bitLength();while(I>this.n);var O=I0?C.isub(this.p):C.strip!==void 0?C.strip():C._strip(),C},j.prototype.split=function(v,C){v.iushrn(this.n,0,C)},j.prototype.imulK=function(v){return v.imul(this.k)};function U(){j.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(U,j),U.prototype.split=function(v,C){for(var I=4194303,O=Math.min(v.length,9),x=0;x>>22,_=R}_>>>=22,v.words[x-10]=_,_===0&&v.length>10?v.length-=10:v.length-=9},U.prototype.imulK=function(v){v.words[v.length]=0,v.words[v.length+1]=0,v.length+=2;for(var C=0,I=0;I>>=26,v.words[I]=x,C=O}return C!==0&&(v.words[v.length++]=C),v},s._prime=function(v){if(M[v])return M[v];var C;if(v==="k256")C=new U;else if(v==="p224")C=new F;else if(v==="p192")C=new G;else if(v==="p25519")C=new J;else throw new Error("Unknown prime "+v);return M[v]=C,C};function te(D){if(typeof D=="string"){var v=s._prime(D);this.m=v.p,this.prime=v}else n(D.gtn(1),"modulus must be greater than 1"),this.m=D,this.prime=null}te.prototype._verify1=function(v){n(v.negative===0,"red works only with positives"),n(v.red,"red works only with red numbers")},te.prototype._verify2=function(v,C){n((v.negative|C.negative)===0,"red works only with positives"),n(v.red&&v.red===C.red,"red works only with red numbers")},te.prototype.imod=function(v){return this.prime?this.prime.ireduce(v)._forceRed(this):(f(v,v.umod(this.m)._forceRed(this)),v)},te.prototype.neg=function(v){return v.isZero()?v.clone():this.m.sub(v)._forceRed(this)},te.prototype.add=function(v,C){this._verify2(v,C);var I=v.add(C);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},te.prototype.iadd=function(v,C){this._verify2(v,C);var I=v.iadd(C);return I.cmp(this.m)>=0&&I.isub(this.m),I},te.prototype.sub=function(v,C){this._verify2(v,C);var I=v.sub(C);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},te.prototype.isub=function(v,C){this._verify2(v,C);var I=v.isub(C);return I.cmpn(0)<0&&I.iadd(this.m),I},te.prototype.shl=function(v,C){return this._verify1(v),this.imod(v.ushln(C))},te.prototype.imul=function(v,C){return this._verify2(v,C),this.imod(v.imul(C))},te.prototype.mul=function(v,C){return this._verify2(v,C),this.imod(v.mul(C))},te.prototype.isqr=function(v){return this.imul(v,v.clone())},te.prototype.sqr=function(v){return this.mul(v,v)},te.prototype.sqrt=function(v){if(v.isZero())return v.clone();var C=this.m.andln(3);if(n(C%2===1),C===3){var I=this.m.add(new s(1)).iushrn(2);return this.pow(v,I)}for(var O=this.m.subn(1),x=0;!O.isZero()&&O.andln(1)===0;)x++,O.iushrn(1);n(!O.isZero());var _=new s(1).toRed(this),R=_.redNeg(),b=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new s(2*d*d).toRed(this);this.pow(d,b).cmp(R)!==0;)d.redIAdd(R);for(var T=this.pow(d,O),$=this.pow(v,O.addn(1).iushrn(1)),m=this.pow(v,O),N=x;m.cmp(_)!==0;){for(var B=m,L=0;B.cmp(_)!==0;L++)B=B.redSqr();n(L=0;x--){for(var T=C.words[x],$=d-1;$>=0;$--){var m=T>>$&1;if(_!==O[0]&&(_=this.sqr(_)),m===0&&R===0){b=0;continue}R<<=1,R|=m,b++,!(b!==I&&(x!==0||$!==0))&&(_=this.mul(_,O[R]),b=0,R=0)}d=26}return _},te.prototype.convertTo=function(v){var C=v.umod(this.m);return C===v?C.clone():C},te.prototype.convertFrom=function(v){var C=v.clone();return C.red=null,C},s.mont=function(v){return new se(v)};function se(D){te.call(this,D),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new s(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)}i(se,te),se.prototype.convertTo=function(v){return this.imod(v.ushln(this.shift))},se.prototype.convertFrom=function(v){var C=this.imod(v.mul(this.rinv));return C.red=null,C},se.prototype.imul=function(v,C){if(v.isZero()||C.isZero())return v.words[0]=0,v.length=1,v;var I=v.imul(C),O=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(O).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},se.prototype.mul=function(v,C){if(v.isZero()||C.isZero())return new s(0)._forceRed(this);var I=v.mul(C),O=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=I.isub(O).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},se.prototype.invm=function(v){var C=this.imod(v._invmp(this.m).mul(this.r2));return C._forceRed(this)}})(t,H5)})(sx);var rF=sx.exports;const Ee=mo(rF),nF="logger/5.7.0";let d6=!1,h6=!1;const Fd={debug:1,default:2,info:2,warning:3,error:4,off:5};let v6=Fd.default,Nv=null;function iF(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach(e=>{try{if("test".normalize(e)!=="test")throw new Error("bad normalize")}catch{t.push(e)}}),t.length)throw new Error("missing "+t.join(", "));if("Ć©".normalize("NFD")!=="eĢ")throw new Error("broken implementation")}catch(t){return t.message}return null}const y6=iF();var kp;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(kp||(kp={}));var Qn;(function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"})(Qn||(Qn={}));const p6="0123456789abcdef";let W=class cr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();Fd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(v6>Fd[n])&&console.log.apply(console,r)}debug(...e){this._log(cr.levels.DEBUG,e)}info(...e){this._log(cr.levels.INFO,e)}warn(...e){this._log(cr.levels.WARNING,e)}makeError(e,r,n){if(h6)return this.makeError("censored error",r,{});r||(r=cr.errors.UNKNOWN_ERROR),n||(n={});const i=[];Object.keys(n).forEach(l=>{const c=n[l];try{if(c instanceof Uint8Array){let f="";for(let u=0;u>4],f+=p6[c[u]&15];i.push(l+"=Uint8Array(0x"+f+")")}else i.push(l+"="+JSON.stringify(c))}catch{i.push(l+"="+JSON.stringify(n[l].toString()))}}),i.push(`code=${r}`),i.push(`version=${this.version}`);const s=e;let o="";switch(r){case Qn.NUMERIC_FAULT:{o="NUMERIC_FAULT";const l=e;switch(l){case"overflow":case"underflow":case"division-by-zero":o+="-"+l;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result";break}break}case Qn.CALL_EXCEPTION:case Qn.INSUFFICIENT_FUNDS:case Qn.MISSING_NEW:case Qn.NONCE_EXPIRED:case Qn.REPLACEMENT_UNDERPRICED:case Qn.TRANSACTION_REPLACED:case Qn.UNPREDICTABLE_GAS_LIMIT:o=r;break}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),i.length&&(e+=" ("+i.join(", ")+")");const a=new Error(e);return a.reason=s,a.code=r,Object.keys(n).forEach(function(l){a[l]=n[l]}),a}throwError(e,r,n){throw this.makeError(e,r,n)}throwArgumentError(e,r,n){return this.throwError(e,cr.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(e,r,n,i){e||this.throwError(r,n,i)}assertArgument(e,r,n,i){e||this.throwArgumentError(r,n,i)}checkNormalize(e){y6&&this.throwError("platform missing String.prototype.normalize",cr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:y6})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,cr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,cr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,r,n){n?n=": "+n:n="",er&&this.throwError("too many arguments"+n,cr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",cr.errors.MISSING_NEW,{name:r.name})}checkAbstract(e,r){e===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",cr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",cr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return Nv||(Nv=new cr(nF)),Nv}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",cr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),d6){if(!e)return;this.globalLogger().throwError("error censorship permanent",cr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}h6=!!e,d6=!!r}static setLogLevel(e){const r=Fd[e.toLowerCase()];if(r==null){cr.globalLogger().warn("invalid log level - "+e);return}v6=r}static from(e){return new cr(e)}};W.errors=Qn;W.levels=kp;const sF="bytes/5.7.0",Ht=new W(sF);function YE(t){return!!t.toHexString}function _l(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return _l(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Oi(t){return Le(t)&&!(t.length%2)||ko(t)}function g6(t){return typeof t=="number"&&t==t&&t%1===0}function ko(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!g6(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function X(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid arrayify value");const r=[];for(;t;)r.unshift(t&255),t=parseInt(String(t/256));return r.length===0&&r.push(0),_l(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),YE(t)&&(t=t.toHexString()),Le(t)){let r=t.substring(2);r.length%2&&(e.hexPad==="left"?r="0"+r:e.hexPad==="right"?r+="0":Ht.throwArgumentError("hex data is odd-length","value",t));const n=[];for(let i=0;iX(i)),r=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(r);return e.reduce((i,s)=>(n.set(s,i),i+s.length),0),_l(n)}function Ti(t){let e=X(t);if(e.length===0)return e;let r=0;for(;re&&Ht.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(e);return r.set(t,e-t.length),_l(r)}function Le(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const $v="0123456789abcdef";function Q(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=$v[t&15]+r,t=Math.floor(t/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof t=="bigint")return t=t.toString(16),t.length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),YE(t))return t.toHexString();if(Le(t))return t.length%2&&(e.hexPad==="left"?t="0x0"+t.substring(2):e.hexPad==="right"?t+="0":Ht.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(ko(t)){let r="0x";for(let n=0;n>4]+$v[i&15]}return r}return Ht.throwArgumentError("invalid hexlify value","value",t)}function Ni(t){if(typeof t!="string")t=Q(t);else if(!Le(t)||t.length%2)return null;return(t.length-2)/2}function Kt(t,e,r){return typeof t!="string"?t=Q(t):(!Le(t)||t.length%2)&&Ht.throwArgumentError("invalid hexData","value",t),e=2+2*e,r!=null?"0x"+t.substring(e,2+2*r):"0x"+t.substring(e)}function Wr(t){let e="0x";return t.forEach(r=>{e+=Q(r).substring(2)}),e}function oi(t){const e=QE(Q(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function QE(t){typeof t!="string"&&(t=Q(t)),Le(t)||Ht.throwArgumentError("invalid hex string","value",t),t=t.substring(2);let e=0;for(;e2*e+2&&Ht.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Ra(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Oi(t)){let r=X(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=Q(r.slice(0,32)),e.s=Q(r.slice(32,64))):r.length===65?(e.r=Q(r.slice(0,32)),e.s=Q(r.slice(32,64)),e.v=r[64]):Ht.throwArgumentError("invalid signature string","signature",t),e.v<27&&(e.v===0||e.v===1?e.v+=27:Ht.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(r[32]|=128),e._vs=Q(r.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,e._vs!=null){const i=hf(X(e._vs),32);e._vs=Q(i);const s=i[0]>=128?1:0;e.recoveryParam==null?e.recoveryParam=s:e.recoveryParam!==s&&Ht.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),i[0]&=127;const o=Q(i);e.s==null?e.s=o:e.s!==o&&Ht.throwArgumentError("signature v mismatch _vs","signature",t)}if(e.recoveryParam==null)e.v==null?Ht.throwArgumentError("signature missing v and recoveryParam","signature",t):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 i=e.v===0||e.v===1?e.v:1-e.v%2;e.recoveryParam!==i&&Ht.throwArgumentError("signature recoveryParam mismatch v","signature",t)}e.r==null||!Le(e.r)?Ht.throwArgumentError("signature missing or invalid r","signature",t):e.r=et(e.r,32),e.s==null||!Le(e.s)?Ht.throwArgumentError("signature missing or invalid s","signature",t):e.s=et(e.s,32);const r=X(e.s);r[0]>=128&&Ht.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=Q(r);e._vs&&(Le(e._vs)||Ht.throwArgumentError("signature invalid _vs","signature",t),e._vs=et(e._vs,32)),e._vs==null?e._vs=n:e._vs!==n&&Ht.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Ap(t){return t=Ra(t),Q(Ze([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const XE="bignumber/5.7.0";var Zf=Ee.BN;const qi=new W(XE),Dv={},m6=9007199254740991;function oF(t){return t!=null&&(q.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||Le(t)||typeof t=="bigint"||ko(t))}let x6=!1;class q{constructor(e,r){e!==Dv&&qi.throwError("cannot call constructor directly; use BigNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Zr(Me(this).fromTwos(e))}toTwos(e){return Zr(Me(this).toTwos(e))}abs(){return this._hex[0]==="-"?q.from(this._hex.substring(1)):this}add(e){return Zr(Me(this).add(Me(e)))}sub(e){return Zr(Me(this).sub(Me(e)))}div(e){return q.from(e).isZero()&&kn("division-by-zero","div"),Zr(Me(this).div(Me(e)))}mul(e){return Zr(Me(this).mul(Me(e)))}mod(e){const r=Me(e);return r.isNeg()&&kn("division-by-zero","mod"),Zr(Me(this).umod(r))}pow(e){const r=Me(e);return r.isNeg()&&kn("negative-power","pow"),Zr(Me(this).pow(r))}and(e){const r=Me(e);return(this.isNegative()||r.isNeg())&&kn("unbound-bitwise-result","and"),Zr(Me(this).and(r))}or(e){const r=Me(e);return(this.isNegative()||r.isNeg())&&kn("unbound-bitwise-result","or"),Zr(Me(this).or(r))}xor(e){const r=Me(e);return(this.isNegative()||r.isNeg())&&kn("unbound-bitwise-result","xor"),Zr(Me(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&kn("negative-width","mask"),Zr(Me(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&kn("negative-width","shl"),Zr(Me(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&kn("negative-width","shr"),Zr(Me(this).shrn(e))}eq(e){return Me(this).eq(Me(e))}lt(e){return Me(this).lt(Me(e))}lte(e){return Me(this).lte(Me(e))}gt(e){return Me(this).gt(Me(e))}gte(e){return Me(this).gte(Me(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Me(this).isZero()}toNumber(){try{return Me(this).toNumber()}catch{kn("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return qi.throwError("this platform does not support BigInt",W.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?x6||(x6=!0,qi.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?qi.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W.errors.UNEXPECTED_ARGUMENT,{}):qi.throwError("BigNumber.toString does not accept parameters",W.errors.UNEXPECTED_ARGUMENT,{})),Me(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof q)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new q(Dv,eu(e)):e.match(/^-?[0-9]+$/)?new q(Dv,eu(new Zf(e))):qi.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&kn("underflow","BigNumber.from",e),(e>=m6||e<=-m6)&&kn("overflow","BigNumber.from",e),q.from(String(e));const r=e;if(typeof r=="bigint")return q.from(r.toString());if(ko(r))return q.from(Q(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return q.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(Le(n)||n[0]==="-"&&Le(n.substring(1))))return q.from(n)}return qi.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function eu(t){if(typeof t!="string")return eu(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&qi.throwArgumentError("invalid hex","value",t),t=eu(t),t==="0x00"?t:"-"+t;if(t.substring(0,2)!=="0x"&&(t="0x"+t),t==="0x")return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&t.substring(0,4)==="0x00";)t="0x"+t.substring(4);return t}function Zr(t){return q.from(eu(t))}function Me(t){const e=q.from(t).toHexString();return e[0]==="-"?new Zf("-"+e.substring(3),16):new Zf(e.substring(2),16)}function kn(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),qi.throwError(t,W.errors.NUMERIC_FAULT,n)}function aF(t){return new Zf(t,36).toString(16)}function lF(t){return new Zf(t,16).toString(36)}const Gr=new W(XE),vf={},ZE=q.from(0),e7=q.from(-1);function t7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Gr.throwError(t,W.errors.NUMERIC_FAULT,i)}let yf="0";for(;yf.length<256;)yf+=yf;function ox(t){if(typeof t!="number")try{t=q.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+yf.substring(0,t):Gr.throwArgumentError("invalid decimal size","decimals",t)}function Ud(t,e){e==null&&(e=0);const r=ox(e);t=q.from(t);const n=t.lt(ZE);n&&(t=t.mul(e7));let i=t.mod(r).toString();for(;i.length2&&Gr.throwArgumentError("too many decimal points","value",t);let s=i[0],o=i[1];for(s||(s="0"),o||(o="0");o[o.length-1]==="0";)o=o.substring(0,o.length-1);for(o.length>r.length-1&&t7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Gr.throwArgumentError("invalid fixed format ("+o+" not "+a+")","format."+o,e[o]),e[o]);r=s("signed","boolean",r),n=s("width","number",n),i=s("decimals","number",i)}return n%8&&Gr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Gr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new Tl(vf,r,n,i)}}class wr{constructor(e,r,n,i){e!==vf&&Gr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",W.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&Gr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=hi(this._value,this.format.decimals),n=hi(e._value,e.format.decimals);return wr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=hi(this._value,this.format.decimals),n=hi(e._value,e.format.decimals);return wr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=hi(this._value,this.format.decimals),n=hi(e._value,e.format.decimals);return wr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=hi(this._value,this.format.decimals),n=hi(e._value,e.format.decimals);return wr.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=wr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(b6.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=wr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(b6.toFormat(r.format))),r}round(e){e==null&&(e=0);const r=this.toString().split(".");if(r.length===1&&r.push("0"),(e<0||e>80||e%1)&&Gr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=wr.from("1"+yf.substring(0,e),this.format),i=cF.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(i).floor().divUnsafe(n)}isZero(){return this._value==="0.0"||this._value==="0"}isNegative(){return this._value[0]==="-"}toString(){return this._value}toHexString(e){if(e==null)return this._hex;e%8&&Gr.throwArgumentError("invalid byte width","width",e);const r=q.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return et(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return wr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!oF(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),wr.fromString(Ud(e,r),Tl.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=Tl.from(r),i=hi(e,n.decimals);!n.signed&&i.lt(ZE)&&t7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=et(s,n.width/8));const o=Ud(i,n.decimals);return new wr(vf,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=Tl.from(r);if(X(e).length>n.width/8)throw new Error("overflow");let i=q.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=Ud(i,n.decimals);return new wr(vf,s,o,n)}static from(e,r){if(typeof e=="string")return wr.fromString(e,r);if(ko(e))return wr.fromBytes(e,r);try{return wr.fromValue(e,0,r)}catch(n){if(n.code!==W.errors.INVALID_ARGUMENT)throw n}return Gr.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const b6=wr.from(1),cF=wr.from("0.5"),fF="properties/5.7.0";var uF=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const W0=new W(fF);function ne(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function ri(t,e){for(let r=0;r<32;r++){if(t[e])return t[e];if(!t.prototype||typeof t.prototype!="object")break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function nt(t){return uF(this,void 0,void 0,function*(){const e=Object.keys(t).map(n=>{const i=t[n];return Promise.resolve(i).then(s=>({key:n,value:s}))});return(yield Promise.all(e)).reduce((n,i)=>(n[i.key]=i.value,n),{})})}function ax(t,e){(!t||typeof t!="object")&&W0.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||W0.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function ar(t){const e={};for(const r in t)e[r]=t[r];return e}const dF={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function r7(t){if(t==null||dF[typeof t])return!0;if(Array.isArray(t)||typeof t=="object"){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let r=0;r$i(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&ne(e,r,$i(n))}return e}return W0.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function $i(t){return hF(t)}class Ma{constructor(e){for(const r in e)this[r]=$i(e[r])}}const Su="abi/5.7.0",je=new W(Su),ba={};let w6={calldata:!0,memory:!0,storage:!0},vF={calldata:!0,memory:!0};function hd(t,e){if(t==="bytes"||t==="string"){if(w6[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&vF[e])return!0;return(w6[e]||e==="payable")&&je.throwArgumentError("invalid modifier","name",e),!1}function yF(t,e){let r=t;function n(a){je.throwArgumentError(`unexpected character at position ${a}`,"param",t)}t=t.replace(/\s/g," ");function i(a){let l={type:"",name:"",parent:a,state:{allowType:!0}};return e&&(l.indexed=!1),l}let s={type:"",name:"",state:{allowType:!0}},o=s;for(let a=0;aJSON.parse(i.format(e)))),JSON.stringify(n)}let r="";return this.baseType==="array"?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):this.baseType==="tuple"?(e!==Ve.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Ve.full?", ":",")+")"):r+=this.type,e!==Ve.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Ve.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?vr.fromString(e,r):vr.fromObject(e)}static fromObject(e){return vr.isParamType(e)?e:new vr(ba,{name:e.name||null,type:Ka(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(vr.fromObject):null})}static fromString(e,r){function n(i){return vr.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(yF(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function tu(t,e){return mF(t).map(r=>vr.fromString(r,e))}class wi{constructor(e,r){e!==ba&&je.throwError("use a static from method",W.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),zd(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return wi.isFragment(e)?e:typeof e=="string"?wi.fromString(e):wi.fromObject(e)}static fromObject(e){if(wi.isFragment(e))return e;switch(e.type){case"function":return ti.fromObject(e);case"event":return bi.fromObject(e);case"constructor":return ei.fromObject(e);case"error":return Ji.fromObject(e);case"fallback":case"receive":return null}return je.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"?bi.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?ti.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?ei.fromString(e.trim()):e.split(" ")[0]==="error"?Ji.fromString(e.substring(5).trim()):je.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class bi extends wi{format(e){if(e||(e=Ve.sighash),Ve[e]||je.throwArgumentError("invalid format type","format",e),e===Ve.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ve.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ve.full?", ":",")+") ",e!==Ve.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?bi.fromString(e):bi.fromObject(e)}static fromObject(e){if(bi.isEventFragment(e))return e;e.type!=="event"&&je.throwArgumentError("invalid event object","value",e);const r={name:ru(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(vr.fromObject):[],type:"event"};return new bi(ba,r)}static fromString(e){let r=e.match(nu);r||je.throwArgumentError("invalid event string","value",e);let n=!1;return r[3].split(" ").forEach(i=>{switch(i.trim()){case"anonymous":n=!0;break;case"":break;default:je.warn("unknown modifier: "+i)}}),bi.fromObject({name:r[1].trim(),anonymous:n,inputs:tu(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function n7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&je.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||je.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=q.from(r[1]),r[0]):t}function i7(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach(r=>{switch(r.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: "+r)}})}function s7(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return t.stateMutability!=null?(e.stateMutability=t.stateMutability,e.constant=e.stateMutability==="view"||e.stateMutability==="pure",t.constant!=null&&!!t.constant!==e.constant&&je.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&je.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):t.payable!=null?(e.payable=!!t.payable,t.constant==null&&!e.payable&&t.type!=="constructor"&&je.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&je.throwArgumentError("cannot have constant payable function","value",t)):t.constant!=null?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):t.type!=="constructor"&&je.throwArgumentError("unable to determine stateMutability","value",t),e}class ei extends wi{format(e){if(e||(e=Ve.sighash),Ve[e]||je.throwArgumentError("invalid format type","format",e),e===Ve.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(n=>JSON.parse(n.format(e)))});e===Ve.sighash&&je.throwError("cannot format a constructor for sighash",W.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let r="constructor("+this.inputs.map(n=>n.format(e)).join(e===Ve.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?ei.fromString(e):ei.fromObject(e)}static fromObject(e){if(ei.isConstructorFragment(e))return e;e.type!=="constructor"&&je.throwArgumentError("invalid constructor object","value",e);let r=s7(e);r.constant&&je.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(vr.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?q.from(e.gas):null};return new ei(ba,n)}static fromString(e){let r={type:"constructor"};e=n7(e,r);let n=e.match(nu);return(!n||n[1].trim()!=="constructor")&&je.throwArgumentError("invalid constructor string","value",e),r.inputs=tu(n[2].trim(),!1),i7(n[3].trim(),r),ei.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class ti extends ei{format(e){if(e||(e=Ve.sighash),Ve[e]||je.throwArgumentError("invalid format type","format",e),e===Ve.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(n=>JSON.parse(n.format(e))),outputs:this.outputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ve.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ve.full?", ":",")+") ",e!==Ve.sighash&&(this.stateMutability?this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "):this.constant&&(r+="view "),this.outputs&&this.outputs.length&&(r+="returns ("+this.outputs.map(n=>n.format(e)).join(", ")+") "),this.gas!=null&&(r+="@"+this.gas.toString()+" ")),r.trim()}static from(e){return typeof e=="string"?ti.fromString(e):ti.fromObject(e)}static fromObject(e){if(ti.isFunctionFragment(e))return e;e.type!=="function"&&je.throwArgumentError("invalid function object","value",e);let r=s7(e);const n={type:e.type,name:ru(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(vr.fromObject):[],outputs:e.outputs?e.outputs.map(vr.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?q.from(e.gas):null};return new ti(ba,n)}static fromString(e){let r={type:"function"};e=n7(e,r);let n=e.split(" returns ");n.length>2&&je.throwArgumentError("invalid function string","value",e);let i=n[0].match(nu);if(i||je.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&ru(r.name),r.inputs=tu(i[2],!1),i7(i[3].trim(),r),n.length>1){let s=n[1].match(nu);(s[1].trim()!=""||s[3].trim()!="")&&je.throwArgumentError("unexpected tokens","value",e),r.outputs=tu(s[2],!1)}else r.outputs=[];return ti.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function C6(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&je.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Ji extends wi{format(e){if(e||(e=Ve.sighash),Ve[e]||je.throwArgumentError("invalid format type","format",e),e===Ve.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Ve.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Ve.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Ji.fromString(e):Ji.fromObject(e)}static fromObject(e){if(Ji.isErrorFragment(e))return e;e.type!=="error"&&je.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:ru(e.name),inputs:e.inputs?e.inputs.map(vr.fromObject):[]};return C6(new Ji(ba,r))}static fromString(e){let r={type:"error"},n=e.match(nu);return n||je.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&ru(r.name),r.inputs=tu(n[2],!1),C6(Ji.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Ka(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const gF=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function ru(t){return(!t||!t.match(gF))&&je.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const nu=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function mF(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&lx.throwError("value out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=Ze([this._padding.slice(r.length%this.wordSize),r])),r}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,r=>{this._data[e]=this._getValue(r)}}}class G0{constructor(e,r,n,i){ne(this,"_data",X(e)),ne(this,"wordSize",r||32),ne(this,"_coerceFunc",n),ne(this,"allowLoose",i),this._offset=0}get data(){return Q(this._data)}get consumed(){return this._offset}static coerce(e,r){let n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(r=r.toNumber()),r}coerce(e,r){return this._coerceFunc?this._coerceFunc(e,r):G0.coerce(e,r)}_peekBytes(e,r,n){let i=Math.ceil(r/this.wordSize)*this.wordSize;return this._offset+i>this._data.length&&(this.allowLoose&&n&&this._offset+r<=this._data.length?i=r:lx.throwError("data out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+i})),this._data.slice(this._offset,this._offset+i)}subReader(e){return new G0(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,r){let n=this._peekBytes(0,e,!!r);return this._offset+=n.length,n.slice(0,e)}readValue(){return q.from(this.readBytes(this.wordSize))}}var a7={exports:{}};/** - * [js-sha3]{@link https://github.com/emn178/js-sha3} - * - * @version 0.8.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2015-2018 - * @license MIT - */(function(t){(function(){var e="input is invalid type",r="finalize already called",n=typeof window=="object",i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var s=!n&&typeof self=="object",o=!i.JS_SHA3_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;o?i=H5:s&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&!0&&t.exports,l=!i.JS_SHA3_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),f=[31,7936,2031616,520093696],u=[4,1024,262144,67108864],h=[1,256,65536,16777216],y=[6,1536,393216,100663296],g=[0,8,16,24],p=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],k=[224,256,384,512],w=[128,256],E=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(m){return Object.prototype.toString.call(m)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(m){return typeof m=="object"&&m.buffer&&m.buffer.constructor===ArrayBuffer});for(var P=function(m,N,B){return function(L){return new d(m,N,m).update(L)[B]()}},M=function(m,N,B){return function(L,V){return new d(m,N,V).update(L)[B]()}},j=function(m,N,B){return function(L,V,ee,H){return v["cshake"+m].update(L,V,ee,H)[B]()}},U=function(m,N,B){return function(L,V,ee,H){return v["kmac"+m].update(L,V,ee,H)[B]()}},F=function(m,N,B,L){for(var V=0;V>5,this.byteCount=this.blockCount<<2,this.outputBlocks=B>>5,this.extraBytes=(B&31)>>3;for(var L=0;L<50;++L)this.s[L]=0}d.prototype.update=function(m){if(this.finalized)throw new Error(r);var N,B=typeof m;if(B!=="string"){if(B==="object"){if(m===null)throw new Error(e);if(l&&m.constructor===ArrayBuffer)m=new Uint8Array(m);else if(!Array.isArray(m)&&(!l||!ArrayBuffer.isView(m)))throw new Error(e)}else throw new Error(e);N=!0}for(var L=this.blocks,V=this.byteCount,ee=m.length,H=this.blockCount,Z=0,pe=this.s,le,he;Z>2]|=m[Z]<>2]|=he<>2]|=(192|he>>6)<>2]|=(128|he&63)<=57344?(L[le>>2]|=(224|he>>12)<>2]|=(128|he>>6&63)<>2]|=(128|he&63)<>2]|=(240|he>>18)<>2]|=(128|he>>12&63)<>2]|=(128|he>>6&63)<>2]|=(128|he&63)<=V){for(this.start=le-V,this.block=L[H],le=0;le>8,B=m&255;B>0;)V.unshift(B),m=m>>8,B=m&255,++L;return N?V.push(L):V.unshift(L),this.update(V),V.length},d.prototype.encodeString=function(m){var N,B=typeof m;if(B!=="string"){if(B==="object"){if(m===null)throw new Error(e);if(l&&m.constructor===ArrayBuffer)m=new Uint8Array(m);else if(!Array.isArray(m)&&(!l||!ArrayBuffer.isView(m)))throw new Error(e)}else throw new Error(e);N=!0}var L=0,V=m.length;if(N)L=V;else for(var ee=0;ee=57344?L+=3:(H=65536+((H&1023)<<10|m.charCodeAt(++ee)&1023),L+=4)}return L+=this.encode(L*8),this.update(m),L},d.prototype.bytepad=function(m,N){for(var B=this.encode(N),L=0;L>2]|=this.padding[N&3],this.lastByteIndex===this.byteCount)for(m[0]=m[B],N=1;N>4&15]+c[Z&15]+c[Z>>12&15]+c[Z>>8&15]+c[Z>>20&15]+c[Z>>16&15]+c[Z>>28&15]+c[Z>>24&15];ee%m===0&&($(N),V=0)}return L&&(Z=N[V],H+=c[Z>>4&15]+c[Z&15],L>1&&(H+=c[Z>>12&15]+c[Z>>8&15]),L>2&&(H+=c[Z>>20&15]+c[Z>>16&15])),H},d.prototype.arrayBuffer=function(){this.finalize();var m=this.blockCount,N=this.s,B=this.outputBlocks,L=this.extraBytes,V=0,ee=0,H=this.outputBits>>3,Z;L?Z=new ArrayBuffer(B+1<<2):Z=new ArrayBuffer(H);for(var pe=new Uint32Array(Z);ee>8&255,H[Z+2]=pe>>16&255,H[Z+3]=pe>>24&255;ee%m===0&&$(N)}return L&&(Z=ee<<2,pe=N[V],H[Z]=pe&255,L>1&&(H[Z+1]=pe>>8&255),L>2&&(H[Z+2]=pe>>16&255)),H};function T(m,N,B){d.call(this,m,N,B)}T.prototype=new d,T.prototype.finalize=function(){return this.encode(this.outputBits,!0),d.prototype.finalize.call(this)};var $=function(m){var N,B,L,V,ee,H,Z,pe,le,he,qt,z,re,ae,ce,ve,tt,Be,Je,Un,ot,at,To,lt,ct,Io,ft,ut,Po,dt,ht,Ro,vt,yt,Mo,pt,gt,Oo,mt,xt,No,bt,wt,$o,Ct,Et,Do,St,kt,Bo,At,_t,Lo,Tt,It,jo,Pt,Rt,bs,ws,Cs,Es,Ss;for(L=0;L<48;L+=2)V=m[0]^m[10]^m[20]^m[30]^m[40],ee=m[1]^m[11]^m[21]^m[31]^m[41],H=m[2]^m[12]^m[22]^m[32]^m[42],Z=m[3]^m[13]^m[23]^m[33]^m[43],pe=m[4]^m[14]^m[24]^m[34]^m[44],le=m[5]^m[15]^m[25]^m[35]^m[45],he=m[6]^m[16]^m[26]^m[36]^m[46],qt=m[7]^m[17]^m[27]^m[37]^m[47],z=m[8]^m[18]^m[28]^m[38]^m[48],re=m[9]^m[19]^m[29]^m[39]^m[49],N=z^(H<<1|Z>>>31),B=re^(Z<<1|H>>>31),m[0]^=N,m[1]^=B,m[10]^=N,m[11]^=B,m[20]^=N,m[21]^=B,m[30]^=N,m[31]^=B,m[40]^=N,m[41]^=B,N=V^(pe<<1|le>>>31),B=ee^(le<<1|pe>>>31),m[2]^=N,m[3]^=B,m[12]^=N,m[13]^=B,m[22]^=N,m[23]^=B,m[32]^=N,m[33]^=B,m[42]^=N,m[43]^=B,N=H^(he<<1|qt>>>31),B=Z^(qt<<1|he>>>31),m[4]^=N,m[5]^=B,m[14]^=N,m[15]^=B,m[24]^=N,m[25]^=B,m[34]^=N,m[35]^=B,m[44]^=N,m[45]^=B,N=pe^(z<<1|re>>>31),B=le^(re<<1|z>>>31),m[6]^=N,m[7]^=B,m[16]^=N,m[17]^=B,m[26]^=N,m[27]^=B,m[36]^=N,m[37]^=B,m[46]^=N,m[47]^=B,N=he^(V<<1|ee>>>31),B=qt^(ee<<1|V>>>31),m[8]^=N,m[9]^=B,m[18]^=N,m[19]^=B,m[28]^=N,m[29]^=B,m[38]^=N,m[39]^=B,m[48]^=N,m[49]^=B,ae=m[0],ce=m[1],Et=m[11]<<4|m[10]>>>28,Do=m[10]<<4|m[11]>>>28,ut=m[20]<<3|m[21]>>>29,Po=m[21]<<3|m[20]>>>29,ws=m[31]<<9|m[30]>>>23,Cs=m[30]<<9|m[31]>>>23,bt=m[40]<<18|m[41]>>>14,wt=m[41]<<18|m[40]>>>14,yt=m[2]<<1|m[3]>>>31,Mo=m[3]<<1|m[2]>>>31,ve=m[13]<<12|m[12]>>>20,tt=m[12]<<12|m[13]>>>20,St=m[22]<<10|m[23]>>>22,kt=m[23]<<10|m[22]>>>22,dt=m[33]<<13|m[32]>>>19,ht=m[32]<<13|m[33]>>>19,Es=m[42]<<2|m[43]>>>30,Ss=m[43]<<2|m[42]>>>30,Tt=m[5]<<30|m[4]>>>2,It=m[4]<<30|m[5]>>>2,pt=m[14]<<6|m[15]>>>26,gt=m[15]<<6|m[14]>>>26,Be=m[25]<<11|m[24]>>>21,Je=m[24]<<11|m[25]>>>21,Bo=m[34]<<15|m[35]>>>17,At=m[35]<<15|m[34]>>>17,Ro=m[45]<<29|m[44]>>>3,vt=m[44]<<29|m[45]>>>3,lt=m[6]<<28|m[7]>>>4,ct=m[7]<<28|m[6]>>>4,jo=m[17]<<23|m[16]>>>9,Pt=m[16]<<23|m[17]>>>9,Oo=m[26]<<25|m[27]>>>7,mt=m[27]<<25|m[26]>>>7,Un=m[36]<<21|m[37]>>>11,ot=m[37]<<21|m[36]>>>11,_t=m[47]<<24|m[46]>>>8,Lo=m[46]<<24|m[47]>>>8,$o=m[8]<<27|m[9]>>>5,Ct=m[9]<<27|m[8]>>>5,Io=m[18]<<20|m[19]>>>12,ft=m[19]<<20|m[18]>>>12,Rt=m[29]<<7|m[28]>>>25,bs=m[28]<<7|m[29]>>>25,xt=m[38]<<8|m[39]>>>24,No=m[39]<<8|m[38]>>>24,at=m[48]<<14|m[49]>>>18,To=m[49]<<14|m[48]>>>18,m[0]=ae^~ve&Be,m[1]=ce^~tt&Je,m[10]=lt^~Io&ut,m[11]=ct^~ft&Po,m[20]=yt^~pt&Oo,m[21]=Mo^~gt&mt,m[30]=$o^~Et&St,m[31]=Ct^~Do&kt,m[40]=Tt^~jo&Rt,m[41]=It^~Pt&bs,m[2]=ve^~Be&Un,m[3]=tt^~Je&ot,m[12]=Io^~ut&dt,m[13]=ft^~Po&ht,m[22]=pt^~Oo&xt,m[23]=gt^~mt&No,m[32]=Et^~St&Bo,m[33]=Do^~kt&At,m[42]=jo^~Rt&ws,m[43]=Pt^~bs&Cs,m[4]=Be^~Un&at,m[5]=Je^~ot&To,m[14]=ut^~dt&Ro,m[15]=Po^~ht&vt,m[24]=Oo^~xt&bt,m[25]=mt^~No&wt,m[34]=St^~Bo&_t,m[35]=kt^~At&Lo,m[44]=Rt^~ws&Es,m[45]=bs^~Cs&Ss,m[6]=Un^~at&ae,m[7]=ot^~To&ce,m[16]=dt^~Ro<,m[17]=ht^~vt&ct,m[26]=xt^~bt&yt,m[27]=No^~wt&Mo,m[36]=Bo^~_t&$o,m[37]=At^~Lo&Ct,m[46]=ws^~Es&Tt,m[47]=Cs^~Ss&It,m[8]=at^~ae&ve,m[9]=To^~ce&tt,m[18]=Ro^~lt&Io,m[19]=vt^~ct&ft,m[28]=bt^~yt&pt,m[29]=wt^~Mo>,m[38]=_t^~$o&Et,m[39]=Lo^~Ct&Do,m[48]=Es^~Tt&jo,m[49]=Ss^~It&Pt,m[0]^=p[L],m[1]^=p[L+1]};if(a)t.exports=v;else for(I=0;I>=8;return e}function S6(t,e,r){let n=0;for(let i=0;ie+1+n&&pi.throwError("child data too short",W.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function c7(t,e){if(t.length===0&&pi.throwError("data too short",W.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&pi.throwError("data short segment too short",W.errors.BUFFER_OVERRUN,{});const n=S6(t,e+1,r);return e+1+r+n>t.length&&pi.throwError("data long segment too short",W.errors.BUFFER_OVERRUN,{}),k6(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&pi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{}),k6(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&pi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const n=S6(t,e+1,r);e+1+r+n>t.length&&pi.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const i=Q(t.slice(e+1+r,e+1+r+n));return{consumed:1+r+n,result:i}}else if(t[e]>=128){const r=t[e]-128;e+1+r>t.length&&pi.throwError("data too short",W.errors.BUFFER_OVERRUN,{});const n=Q(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:Q(t[e])}}function n1(t){const e=X(t),r=c7(e,0);return r.consumed!==e.length&&pi.throwArgumentError("invalid rlp data","data",t),r.result}const CF=Object.freeze(Object.defineProperty({__proto__:null,decode:n1,encode:wa},Symbol.toStringTag,{value:"Module"})),EF="address/5.7.0",zs=new W(EF);function A6(t){Le(t,20)||zs.throwArgumentError("invalid address","address",t),t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=e[i].charCodeAt(0);const n=X(xe(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(n[i>>1]&15)>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}const SF=9007199254740991;function kF(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const cx={};for(let t=0;t<10;t++)cx[String(t)]=String(t);for(let t=0;t<26;t++)cx[String.fromCharCode(65+t)]=String(10+t);const _6=Math.floor(kF(SF));function f7(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>cx[n]).join("");for(;e.length>=_6;){let n=e.substring(0,_6);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}function Se(t){let e=null;if(typeof t!="string"&&zs.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=A6(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&zs.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==f7(t)&&zs.throwArgumentError("bad icap checksum","address",t),e=aF(t.substring(4));e.length<40;)e="0"+e;e=A6("0x"+e)}else zs.throwArgumentError("invalid address","address",t);return e}function u7(t){try{return Se(t),!0}catch{}return!1}function AF(t){let e=lF(Se(t).substring(2)).toUpperCase();for(;e.length<30;)e="0"+e;return"XE"+f7("XE00"+e)+e}function fx(t){let e=null;try{e=Se(t.from)}catch{zs.throwArgumentError("missing from address","transaction",t)}const r=Ti(X(q.from(t.nonce).toHexString()));return Se(Kt(xe(wa([e,r])),12))}function _F(t,e,r){return Ni(e)!==32&&zs.throwArgumentError("salt must be 32 bytes","salt",e),Ni(r)!==32&&zs.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),Se(Kt(xe(Ze(["0xff",Se(t),e,r])),12))}class TF extends ys{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Se(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Se(et(e.readValue().toHexString(),20))}}class IF extends ys{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,r){return this.coder.encode(e,r)}decode(e){return this.coder.decode(e)}}const vl=new W(Su);function d7(t,e,r){let n=null;if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let l={};n=e.map(c=>{const f=c.localName;return f||vl.throwError("cannot encode object for signature with missing names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&vl.throwError("cannot encode object for signature with duplicate names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]=!0,r[f]})}else vl.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&vl.throwArgumentError("types/value length mismatch","tuple",r);let i=new _p(t.wordSize),s=new _p(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let h=i.writeUpdatableValue();o.push(y=>{h(y+u)})}else l.encode(i,f)}),o.forEach(l=>{l(i.length)});let a=t.appendWriter(i);return a+=t.appendWriter(s),a}function h7(t,e){let r=[],n=t.subReader(0);e.forEach(s=>{let o=null;if(s.dynamic){let a=t.readValue(),l=n.subReader(a.toNumber());try{o=s.decode(l)}catch(c){if(c.code===W.errors.BUFFER_OVERRUN)throw c;o=c,o.baseType=s.name,o.name=s.localName,o.type=s.type}}else try{o=s.decode(t)}catch(a){if(a.code===W.errors.BUFFER_OVERRUN)throw a;o=a,o.baseType=s.name,o.name=s.localName,o.type=s.type}o!=null&&r.push(o)});const i=e.reduce((s,o)=>{const a=o.localName;return a&&(s[a]||(s[a]=0),s[a]++),s},{});e.forEach((s,o)=>{let a=s.localName;if(!a||i[a]!==1||(a==="length"&&(a="_length"),r[a]!=null))return;const l=r[o];l instanceof Error?Object.defineProperty(r,a,{enumerable:!0,get:()=>{throw l}}):r[a]=l});for(let s=0;s{throw o}})}return Object.freeze(r)}class PF extends ys{constructor(e,r,n){const i=e.type+"["+(r>=0?r:"")+"]",s=r===-1||e.dynamic;super("array",i,n,s),this.coder=e,this.length=r}defaultValue(){const e=this.coder.defaultValue(),r=[];for(let n=0;ne._data.length&&vl.throwError("insufficient data length",W.errors.BUFFER_OVERRUN,{length:e._data.length,count:r}));let n=[];for(let i=0;i>6===2;o++)s++;return s}return t===tn.OVERRUN?r.length-e-1:0}function FF(t,e,r,n,i){return t===tn.OVERLONG?(n.push(i),0):(n.push(65533),g7(t,e,r))}const m7=Object.freeze({error:jF,ignore:g7,replace:FF});function dx(t,e){e==null&&(e=m7.error),t=X(t);const r=[];let n=0;for(;n>7)){r.push(i);continue}let s=null,o=null;if((i&224)===192)s=1,o=127;else if((i&240)===224)s=2,o=2047;else if((i&248)===240)s=3,o=65535;else{(i&192)===128?n+=e(tn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(tn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(tn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(tn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(tn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(tn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function Ke(t,e=Di.current){e!=Di.current&&(p7.checkNormalize(),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(i&63|128);else if((i&64512)==55296){n++;const s=t.charCodeAt(n);if(n>=t.length||(s&64512)!==56320)throw new Error("invalid utf-8 string");const o=65536+((i&1023)<<10)+(s&1023);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(i>>12|224),r.push(i>>6&63|128),r.push(i&63|128)}return X(r)}function Bv(t){const e="0000"+t.toString(16);return"\\u"+e.substring(e.length-4)}function UF(t,e){return'"'+dx(t,e).map(r=>{if(r<256){switch(r){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(r>=32&&r<127)return String.fromCharCode(r)}return r<=65535?Bv(r):(r-=65536,Bv((r>>10&1023)+55296)+Bv((r&1023)+56320))}).join("")+'"'}function Tp(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ps(t,e){return Tp(dx(t,e))}function K0(t,e=Di.current){return dx(Ke(t,e))}function zF(t){const e=Ke(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Q(Ze([e,Wl]).slice(0,32))}function VF(t){const e=X(t);if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return ps(e.slice(0,r))}function qF(t){if(t.length%4!==0)throw new Error("bad data");let e=[];for(let r=0;r{let s=i.split(":");r+=parseInt(s[0],16),n[r]=e(s[1])}),n}function x7(t){let e=0;return t.split(",").map(r=>{let n=r.split("-");n.length===1?n[1]="0":n[1]===""&&(n[1]="1");let i=e+parseInt(n[0],16);return e=parseInt(n[1],16),{l:i,h:e}})}function vx(t,e){let r=0;for(let n=0;n=r&&t<=r+i.h&&(t-r)%(i.d||1)===0){if(i.e&&i.e.indexOf(t-r)!==-1)continue;return i}}return null}const HF=x7("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),WF="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(t=>parseInt(t,16)),GF=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],KF=hx("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),JF=hx("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),YF=hx("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",qF),QF=x7("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function XF(t){return t.reduce((e,r)=>(r.forEach(n=>{e.push(n)}),e),[])}function ZF(t){return!!vx(t,HF)}function eU(t){let e=vx(t,GF);if(e)return[t+e.s];let r=KF[t];if(r)return r;let n=JF[t];if(n)return[t+n[0]];let i=YF[t];return i||null}function tU(t){return!!vx(t,QF)}function rU(t){if(t.match(/^[a-z0-9-]*$/i)&&t.length<=59)return t.toLowerCase();let e=K0(t);e=XF(e.map(n=>{if(WF.indexOf(n)>=0)return[];if(n>=65024&&n<=65039)return[];let i=eU(n);return i||[n]})),e=K0(Tp(e),Di.NFKC),e.forEach(n=>{if(tU(n))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),e.forEach(n=>{if(ZF(n))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});let r=Tp(e);if(r.substring(0,1)==="-"||r.substring(2,4)==="--"||r.substring(r.length-1)==="-")throw new Error("invalid hyphen");return r}class nU extends v7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,Ke(r))}decode(e){return ps(super.decode(e))}}class vd extends ys{constructor(e,r){let n=!1;const i=[];e.forEach(o=>{o.dynamic&&(n=!0),i.push(o.type)});const s="tuple("+i.join(",")+")";super("tuple",s,r,n),this.coders=e}defaultValue(){const e=[];this.coders.forEach(n=>{e.push(n.defaultValue())});const r=this.coders.reduce((n,i)=>{const s=i.localName;return s&&(n[s]||(n[s]=0),n[s]++),n},{});return this.coders.forEach((n,i)=>{let s=n.localName;!s||r[s]!==1||(s==="length"&&(s="_length"),e[s]==null&&(e[s]=e[i]))}),Object.freeze(e)}encode(e,r){return d7(e,this.coders,r)}decode(e){return e.coerce(this.name,h7(e,this.coders))}}const yd=new W(Su),iU=new RegExp(/^bytes([0-9]*)$/),sU=new RegExp(/^(u?int)([0-9]*)$/);class yx{constructor(e){ne(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new TF(e.name);case"bool":return new RF(e.name);case"string":return new nU(e.name);case"bytes":return new MF(e.name);case"array":return new PF(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new vd((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new NF(e.name)}let r=e.type.match(sU);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&yd.throwArgumentError("invalid "+r[1]+" bit length","param",e),new BF(n/8,r[1]==="int",e.name)}if(r=e.type.match(iU),r){let n=parseInt(r[1]);return(n===0||n>32)&&yd.throwArgumentError("invalid bytes length","param",e),new OF(n,e.name)}return yd.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new G0(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new _p(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(vr.from(i)));return new vd(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&yd.throwError("types/values length mismatch",W.errors.INVALID_ARGUMENT,{count:{types:e.length,values:r.length},value:{types:e,values:r}});const n=e.map(o=>this._getCoder(vr.from(o))),i=new vd(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(vr.from(o)));return new vd(i,"_").decode(this._getReader(X(r),n))}}const Yr=new yx;function Vs(t){return xe(Ke(t))}const b7="hash/5.7.0";function px(t){t=atob(t);const e=[];for(let r=0;r0&&Array.isArray(a)?i(a,o-1):r.push(a)})};return i(t,e),r}function aU(t){const e={};for(let r=0;r>--l&1}const u=31,h=Math.pow(2,u),y=h>>>1,g=y>>1,p=h-1;let k=0;for(let M=0;M1;){let J=j+U>>>1;M>>1|f(),F=F<<1^y,G=(G^y)<<1|y|1;E=F,A=1+G-F}let P=n-4;return w.map(M=>{switch(M-P){case 3:return P+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return P+256+(t[a++]<<8|t[a++]);case 1:return P+t[a++];default:return M-1}})}function cU(t){let e=0;return()=>t[e++]}function fU(t){return cU(lU(t))}function uU(t){return t&1?~t>>1:t>>1}function dU(t,e){let r=Array(t);for(let n=0;ne[o]):r}function vU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(pU(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(gU(r,t))}return aU(w7(e))}function yU(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function C7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function pU(t,e){let r=1+e(),n=e(),i=yU(e),s=C7(i.length,1+t,e);return w7(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let h=u*n;return[l+u*r,c.map(y=>y+h)]})}))}function gU(t,e){let r=1+e();return C7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function mU(t){let e=J0(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=J0(t,e);if(c.length==0)break;n.push({set:new Set(c),node:r()})}n.sort((c,f)=>f.set.size-c.set.size);let i=t(),s=i%3;i=i/3|0;let o=!!(i&1);i>>=1;let a=i==1,l=i==2;return{branches:n,valid:s,fe0f:o,save:a,check:l}}}function xU(){return fU(px("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=="))}const i1=xU(),bU=new Set(J0(i1)),wU=new Set(J0(i1)),CU=vU(i1),EU=mU(i1),I6=45,P6=95;function E7(t){return K0(t)}function SU(t){return t.filter(e=>e!=65039)}function S7(t){for(let e of t.split(".")){let r=E7(e);try{for(let n=r.lastIndexOf(P6)-1;n>=0;n--)if(r[n]!==P6)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===I6&&r[3]===I6)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function kU(t){return S7(AU(t,SU))}function AU(t,e){let r=E7(t).reverse(),n=[];for(;r.length;){let i=TU(r);if(i){n.push(...e(i));continue}let s=r.pop();if(bU.has(s)){n.push(s);continue}if(wU.has(s))continue;let o=CU[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return S7(_U(String.fromCodePoint(...n)))}function _U(t){return t.normalize("NFC")}function TU(t,e){var r;let n=EU,i,s,o=[],a=t.length;for(e&&(e.length=0);a;){let l=t[--a];if(n=(r=n.branches.find(c=>c.set.has(l)))===null||r===void 0?void 0:r.node,!n)break;if(n.save)s=l;else if(n.check&&l===s)break;o.push(l),n.fe0f&&(o.push(65039),a>0&&t[a-1]==65039&&a--),n.valid&&(i=o.slice(),n.valid==2&&i.splice(1,1),e&&e.push(...t.slice(a).reverse()),t.length=a)}return i}const IU=new W(b7),k7=new Uint8Array(32);k7.fill(0);function R6(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function mx(t){const e=Ke(kU(t)),r=[];if(t.length===0)return r;let n=0;for(let i=0;i=e.length)throw new Error("invalid ENS name; empty component");return r.push(R6(e.slice(n))),r}function PU(t){try{return mx(t).length!==0}catch{}return!1}function pf(t){typeof t!="string"&&IU.throwArgumentError("invalid ENS name; not a string","name",t);let e=k7;const r=mx(t);for(;r.length;)e=xe(Ze([e,xe(r.pop())]));return Q(e)}function A7(t){return Q(Ze(mx(t).map(e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const r=new Uint8Array(e.length+1);return r.set(e,1),r[0]=r.length-1,r})))+"00"}const RU=`Ethereum Signed Message: -`;function s1(t){return typeof t=="string"&&(t=Ke(t)),xe(Ze([Ke(RU),Ke(String(t.length)),t]))}var MU=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Ft=new W(b7),_7=new Uint8Array(32);_7.fill(0);const OU=q.from(-1),T7=q.from(0),I7=q.from(1),NU=q.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function $U(t){const e=X(t),r=e.length%32;return r?Wr([e,_7.slice(r)]):Q(e)}const DU=et(I7.toHexString(),32),BU=et(T7.toHexString(),32),M6={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Lv=["name","version","chainId","verifyingContract","salt"];function O6(t){return function(e){return typeof e!="string"&&Ft.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const LU={name:O6("name"),version:O6("version"),chainId:function(t){try{return q.from(t).toString()}catch{}return Ft.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Se(t).toLowerCase()}catch{}return Ft.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=X(t);if(e.length!==32)throw new Error("bad length");return Q(e)}catch{}return Ft.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function jv(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const r=e[1]==="",n=parseInt(e[2]||"256");(n%8!==0||n>256||e[2]&&e[2]!==String(n))&&Ft.throwArgumentError("invalid numeric width","type",t);const i=NU.mask(r?n-1:n),s=r?i.add(I7).mul(OU):T7;return function(o){const a=q.from(o);return(a.lt(s)||a.gt(i))&&Ft.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),et(a.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return(r===0||r>32||e[1]!==String(r))&&Ft.throwArgumentError("invalid bytes width","type",t),function(n){return X(n).length!==r&&Ft.throwArgumentError(`invalid length for ${t}`,"value",n),$U(n)}}}switch(t){case"address":return function(e){return et(Se(e),32)};case"bool":return function(e){return e?DU:BU};case"bytes":return function(e){return xe(e)};case"string":return function(e){return Vs(e)}}return null}function N6(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class ir{constructor(e){ne(this,"types",Object.freeze($i(e))),ne(this,"_encoderCache",{}),ne(this,"_types",{});const r={},n={},i={};Object.keys(e).forEach(a=>{r[a]={},n[a]=[],i[a]={}});for(const a in e){const l={};e[a].forEach(c=>{l[c.name]&&Ft.throwArgumentError(`duplicate variable name ${JSON.stringify(c.name)} in ${JSON.stringify(a)}`,"types",e),l[c.name]=!0;const f=c.type.match(/^([^\x5b]*)(\x5b|$)/)[1];f===a&&Ft.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!jv(f)&&(n[f]||Ft.throwArgumentError(`unknown type ${JSON.stringify(f)}`,"types",e),n[f].push(a),r[a][f]=!0)})}const s=Object.keys(n).filter(a=>n[a].length===0);s.length===0?Ft.throwArgumentError("missing primary type","types",e):s.length>1&&Ft.throwArgumentError(`ambiguous primary types or unused types: ${s.map(a=>JSON.stringify(a)).join(", ")}`,"types",e),ne(this,"primaryType",s[0]);function o(a,l){l[a]&&Ft.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",e),l[a]=!0,Object.keys(r[a]).forEach(c=>{n[c]&&(o(c,l),Object.keys(l).forEach(f=>{i[f][c]=!0}))}),delete l[a]}o(this.primaryType,{});for(const a in i){const l=Object.keys(i[a]);l.sort(),this._types[a]=N6(a,e[a])+l.map(c=>N6(c,e[c])).join("")}}getEncoder(e){let r=this._encoderCache[e];return r||(r=this._encoderCache[e]=this._getEncoder(e)),r}_getEncoder(e){{const i=jv(e);if(i)return i}const r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const i=r[1],s=this.getEncoder(i),o=parseInt(r[3]);return a=>{o>=0&&a.length!==o&&Ft.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(xe)),xe(Wr(l))}}const n=this.types[e];if(n){const i=Vs(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?xe(c):c});return o.unshift(i),Wr(o)}}return Ft.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Ft.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return xe(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(jv(e))return n(e,r);const i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){const o=i[1],a=parseInt(i[3]);return a>=0&&r.length!==a&&Ft.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",r),r.map(l=>this._visit(o,l,n))}const s=this.types[e];return s?s.reduce((o,{name:a,type:l})=>(o[a]=this._visit(l,r[a],n),o),{}):Ft.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new ir(e)}static getPrimaryType(e){return ir.from(e).primaryType}static hashStruct(e,r,n){return ir.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=M6[n];i||Ft.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>Lv.indexOf(n.name)-Lv.indexOf(i.name)),ir.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Wr(["0x1901",ir.hashDomain(e),ir.from(r).hash(n)])}static hash(e,r,n){return xe(ir.encode(e,r,n))}static resolveNames(e,r,n,i){return MU(this,void 0,void 0,function*(){e=ar(e);const s={};e.verifyingContract&&!Le(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=ir.from(r);o.visit(n,(a,l)=>(a==="address"&&!Le(l,20)&&(s[l]="0x"),l));for(const a in s)s[a]=yield i(a);return e.verifyingContract&&s[e.verifyingContract]&&(e.verifyingContract=s[e.verifyingContract]),n=o.visit(n,(a,l)=>a==="address"&&s[l]?s[l]:l),{domain:e,value:n}})}static getPayload(e,r,n){ir.hashDomain(e);const i={},s=[];Lv.forEach(l=>{const c=e[l];c!=null&&(i[l]=LU[l](c),s.push({name:l,type:M6[l]}))});const o=ir.from(r),a=ar(r);return a.EIP712Domain?Ft.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):a.EIP712Domain=s,o.encode(n),{types:a,domain:i,primaryType:o.primaryType,message:o.visit(n,(l,c)=>{if(l.match(/^bytes(\d*)/))return Q(X(c));if(l.match(/^u?int/))return q.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Ft.throwArgumentError("invalid string","value",c),c}return Ft.throwArgumentError("unsupported type","type",l)})}}}const jt=new W(Su);class P7 extends Ma{}class R7 extends Ma{}class jU extends Ma{}class Y0 extends Ma{static isIndexed(e){return!!(e&&e._isIndexed)}}const FU={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function $6(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class Dt{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,ne(this,"fragments",r.map(n=>wi.from(n)).filter(n=>n!=null)),ne(this,"_abiCoder",ri(new.target,"getAbiCoder")()),ne(this,"functions",{}),ne(this,"errors",{}),ne(this,"events",{}),ne(this,"structs",{}),this.fragments.forEach(n=>{let i=null;switch(n.type){case"constructor":if(this.deploy){jt.warn("duplicate definition - constructor");return}ne(this,"deploy",n);return;case"function":i=this.functions;break;case"event":i=this.events;break;case"error":i=this.errors;break;default:return}let s=n.format();if(i[s]){jt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ne(this,"deploy",ei.from({payable:!1,type:"constructor"})),ne(this,"_isInterface",!0)}format(e){e||(e=Ve.full),e===Ve.sighash&&jt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Ve.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return Yr}static getAddress(e){return Se(e)}static getSighash(e){return Kt(Vs(e.format()),0,4)}static getEventTopic(e){return Vs(e.format())}getFunction(e){if(Le(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];jt.throwArgumentError("no matching function","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.functions).filter(s=>s.split("(")[0]===n);return i.length===0?jt.throwArgumentError("no matching function","name",n):i.length>1&&jt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[ti.fromString(e).format()];return r||jt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(Le(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];jt.throwArgumentError("no matching event","topichash",n)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.events).filter(s=>s.split("(")[0]===n);return i.length===0?jt.throwArgumentError("no matching event","name",n):i.length>1&&jt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[bi.fromString(e).format()];return r||jt.throwArgumentError("no matching event","signature",e),r}getError(e){if(Le(e)){const n=ri(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}jt.throwArgumentError("no matching error","sighash",e)}if(e.indexOf("(")===-1){const n=e.trim(),i=Object.keys(this.errors).filter(s=>s.split("(")[0]===n);return i.length===0?jt.throwArgumentError("no matching error","name",n):i.length>1&&jt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[ti.fromString(e).format()];return r||jt.throwArgumentError("no matching error","signature",e),r}getSighash(e){if(typeof e=="string")try{e=this.getFunction(e)}catch(r){try{e=this.getError(e)}catch{throw r}}return ri(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),ri(this.constructor,"getEventTopic")(e)}_decodeParams(e,r){return this._abiCoder.decode(e,r)}_encodeParams(e,r){return this._abiCoder.encode(e,r)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,r){typeof e=="string"&&(e=this.getError(e));const n=X(r);return Q(n.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Q(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),Q(Ze([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=X(r);return Q(n.slice(0,4))!==this.getSighash(e)&&jt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Q(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Q(Ze([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=X(r),i=null,s="",o=null,a=null,l=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch{}break;case 4:{const c=Q(n.slice(0,4)),f=FU[c];if(f)o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,l=f.signature,f.reason&&(i=o[0]),a==="Error"?s=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:a==="Panic"&&(s=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const u=this.getError(c);o=this._abiCoder.decode(u.inputs,n.slice(4)),a=u.name,l=u.format()}catch{}break}}return jt.throwError("call revert exception"+s,W.errors.CALL_EXCEPTION,{method:e.format(),data:Q(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),Q(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&jt.throwError("too many arguments for "+e.format(),W.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:r});let n=[];e.anonymous||n.push(this.getEventTopic(e));const i=(s,o)=>s.type==="string"?Vs(o):s.type==="bytes"?xe(Q(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=q.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),et(Q(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&jt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+a.name,s);return}s==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?jt.throwArgumentError("filtering with tuples or arrays not supported","contract."+a.name,s):Array.isArray(s)?n.push(s.map(l=>i(a,l))):n.push(i(a,s))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){typeof e=="string"&&(e=this.getEvent(e));const n=[],i=[],s=[];return e.anonymous||n.push(this.getEventTopic(e)),r.length!==e.inputs.length&&jt.throwArgumentError("event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const l=r[a];if(o.indexed)if(o.type==="string")n.push(Vs(l));else if(o.type==="bytes")n.push(xe(l));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(this._abiCoder.encode([o.type],[l]))}else i.push(o),s.push(l)}),{data:this._abiCoder.encode(i,s),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"&&(e=this.getEvent(e)),n!=null&&!e.anonymous){let h=this.getEventTopic(e);(!Le(n[0],32)||n[0].toLowerCase()!==h)&&jt.throwError("fragment/topic mismatch",W.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:h,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(i.push(vr.fromObject({type:"bytes32",name:h.name})),o.push(!0)):(i.push(h),o.push(!1)):(s.push(h),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,Ze(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((h,y)=>{if(h.indexed)if(a==null)c[y]=new Y0({_isIndexed:!0,hash:null});else if(o[y])c[y]=new Y0({_isIndexed:!0,hash:a[u++]});else try{c[y]=a[u++]}catch(g){c[y]=g}else try{c[y]=l[f++]}catch(g){c[y]=g}if(h.name&&c[h.name]==null){const g=c[y];g instanceof Error?Object.defineProperty(c,h.name,{enumerable:!0,get:()=>{throw $6(`property ${JSON.stringify(h.name)}`,g)}}):c[h.name]=g}});for(let h=0;h{throw $6(`index ${h}`,y)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new R7({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:q.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new P7({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=Q(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new jU({args:this._abiCoder.decode(n.inputs,"0x"+r.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(e){return!!(e&&e._isInterface)}}const UU="abstract-provider/5.7.0";var zU=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const VU=new W(UU);class qU extends Ma{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class Ao{constructor(){VU.checkAbstract(new.target,Ao),ne(this,"_isProvider",!0)}getFeeData(){return zU(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield nt({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch(o=>null)});let n=null,i=null,s=null;return e&&e.baseFeePerGas&&(n=e.baseFeePerGas,s=q.from("1500000000"),i=e.baseFeePerGas.mul(2).add(s)),{lastBaseFeePerGas:n,maxFeePerGas:i,maxPriorityFeePerGas:s,gasPrice:r}})}addListener(e,r){return this.on(e,r)}removeListener(e,r){return this.off(e,r)}static isProvider(e){return!!(e&&e._isProvider)}}const HU="abstract-signer/5.7.0";var qn=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const An=new W(HU),WU=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],GU=[W.errors.INSUFFICIENT_FUNDS,W.errors.NONCE_EXPIRED,W.errors.REPLACEMENT_UNDERPRICED];let vo=class M7{constructor(){An.checkAbstract(new.target,M7),ne(this,"_isSigner",!0)}getBalance(e){return qn(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return qn(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return qn(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield nt(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return qn(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield nt(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return qn(this,void 0,void 0,function*(){this._checkProvider("sendTransaction");const r=yield this.populateTransaction(e),n=yield this.signTransaction(r);return yield this.provider.sendTransaction(n)})}getChainId(){return qn(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return qn(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return qn(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return qn(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)WU.indexOf(n)===-1&&An.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=ar(e);return r.from==null?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then(n=>(n[0].toLowerCase()!==n[1].toLowerCase()&&An.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return qn(this,void 0,void 0,function*(){const r=yield nt(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>qn(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&An.throwArgumentError("provided ENS name resolves to null","tx.to",i),s})),r.to.catch(i=>{}));const n=r.maxFeePerGas!=null||r.maxPriorityFeePerGas!=null;if(r.gasPrice!=null&&(r.type===2||n)?An.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&An.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e),(r.type===2||r.type==null)&&r.maxFeePerGas!=null&&r.maxPriorityFeePerGas!=null)r.type=2;else if(r.type===0||r.type===1)r.gasPrice==null&&(r.gasPrice=this.getGasPrice());else{const i=yield this.getFeeData();if(r.type==null)if(i.maxFeePerGas!=null&&i.maxPriorityFeePerGas!=null)if(r.type=2,r.gasPrice!=null){const s=r.gasPrice;delete r.gasPrice,r.maxFeePerGas=s,r.maxPriorityFeePerGas=s}else r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas);else i.gasPrice!=null?(n&&An.throwError("network does not support EIP-1559",W.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):An.throwError("failed to get consistent fee data",W.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else r.type===2&&(r.maxFeePerGas==null&&(r.maxFeePerGas=i.maxFeePerGas),r.maxPriorityFeePerGas==null&&(r.maxPriorityFeePerGas=i.maxPriorityFeePerGas))}return r.nonce==null&&(r.nonce=this.getTransactionCount("pending")),r.gasLimit==null&&(r.gasLimit=this.estimateGas(r).catch(i=>{if(GU.indexOf(i.code)>=0)throw i;return An.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:i,tx:r})})),r.chainId==null?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then(i=>(i[1]!==0&&i[0]!==i[1]&&An.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield nt(r)})}_checkProvider(e){this.provider||An.throwError("missing provider",W.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}};class xx extends vo{constructor(e,r){super(),ne(this,"address",e),ne(this,"provider",r||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,r){return Promise.resolve().then(()=>{An.throwError(e,W.errors.UNSUPPORTED_OPERATION,{operation:r})})}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,r,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new xx(this.address,e)}}var O7={},De={},ku=N7;function N7(t,e){if(!t)throw new Error(e||"Assertion failed")}N7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Ip={exports:{}};typeof Object.create=="function"?Ip.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Ip.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}};var KU=Ip.exports,JU=ku,YU=KU;De.inherits=YU;function QU(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function XU(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if(typeof t=="string")if(e){if(e==="hex")for(t=t.replace(/[^a-z0-9]+/ig,""),t.length%2!==0&&(t="0"+t),i=0;i>6|192,r[n++]=s&63|128):QU(t,i)?(s=65536+((s&1023)<<10)+(t.charCodeAt(++i)&1023),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=s&63|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=s&63|128)}else for(i=0;i>>24|t>>>8&65280|t<<8&16711680|(t&255)<<24;return e>>>0}De.htonl=$7;function ez(t,e){for(var r="",n=0;n>>0}return s}De.join32=tz;function rz(t,e){for(var r=new Array(t.length*4),n=0,i=0;n>>24,r[i+1]=s>>>16&255,r[i+2]=s>>>8&255,r[i+3]=s&255):(r[i+3]=s>>>24,r[i+2]=s>>>16&255,r[i+1]=s>>>8&255,r[i]=s&255)}return r}De.split32=rz;function nz(t,e){return t>>>e|t<<32-e}De.rotr32=nz;function iz(t,e){return t<>>32-e}De.rotl32=iz;function sz(t,e){return t+e>>>0}De.sum32=sz;function oz(t,e,r){return t+e+r>>>0}De.sum32_3=oz;function az(t,e,r,n){return t+e+r+n>>>0}De.sum32_4=az;function lz(t,e,r,n,i){return t+e+r+n+i>>>0}De.sum32_5=lz;function cz(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}De.sum64=cz;function fz(t,e,r,n){var i=e+n>>>0,s=(i>>0}De.sum64_hi=fz;function uz(t,e,r,n){var i=e+n;return i>>>0}De.sum64_lo=uz;function dz(t,e,r,n,i,s,o,a){var l=0,c=e;c=c+n>>>0,l+=c>>0,l+=c>>0,l+=c>>0}De.sum64_4_hi=dz;function hz(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}De.sum64_4_lo=hz;function vz(t,e,r,n,i,s,o,a,l,c){var f=0,u=e;u=u+n>>>0,f+=u>>0,f+=u>>0,f+=u>>0,f+=u>>0}De.sum64_5_hi=vz;function yz(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}De.sum64_5_lo=yz;function pz(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}De.rotr64_hi=pz;function gz(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}De.rotr64_lo=gz;function mz(t,e,r){return t>>>r}De.shr64_hi=mz;function xz(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}De.shr64_lo=xz;var vc={},D6=De,bz=ku;function o1(){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}vc.BlockHash=o1;o1.prototype.update=function(e,r){if(e=D6.toArray(e,r),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var n=e.length%this._delta8;this.pending=e.slice(e.length-n,e.length),this.pending.length===0&&(this.pending=null),e=D6.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,i[s++]=e>>>16&255,i[s++]=e>>>8&255,i[s++]=e&255}else for(i[s++]=e&255,i[s++]=e>>>8&255,i[s++]=e>>>16&255,i[s++]=e>>>24&255,i[s++]=0,i[s++]=0,i[s++]=0,i[s++]=0,o=8;o>>3}Fi.g0_256=kz;function Az(t){return Ii(t,17)^Ii(t,19)^t>>>10}Fi.g1_256=Az;var Gl=De,_z=vc,Tz=Fi,Fv=Gl.rotl32,Nc=Gl.sum32,Iz=Gl.sum32_5,Pz=Tz.ft_1,U7=_z.BlockHash,Rz=[1518500249,1859775393,2400959708,3395469782];function Bi(){if(!(this instanceof Bi))return new Bi;U7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Gl.inherits(Bi,U7);var Mz=Bi;Bi.blockSize=512;Bi.outSize=160;Bi.hmacStrength=80;Bi.padLength=64;Bi.prototype._update=function(e,r){for(var n=this.W,i=0;i<16;i++)n[i]=e[r+i];for(;ithis.blockSize&&(e=new this.Hash().update(e).digest()),xV(e.length<=this.blockSize);for(var r=e.length;r>8,h=f&255;u?l.push(u,h):l.push(h)}return l}r.toArray=n;function i(o){return o.length===1?"0"+o:o}r.zero2=i;function s(o){for(var a="",l=0;l(h>>1)-1?p=(h>>1)-k:p=k,y.isubn(p)):p=0,u[g]=p,y.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,h=0,y;l.cmpn(-u)>0||c.cmpn(-h)>0;){var g=l.andln(3)+u&3,p=c.andln(3)+h&3;g===3&&(g=-1),p===3&&(p=-1);var k;g&1?(y=l.andln(7)+u&7,(y===3||y===5)&&p===2?k=-g:k=g):k=0,f[0].push(k);var w;p&1?(y=c.andln(7)+h&7,(y===3||y===5)&&g===2?w=-p:w=p):w=0,f[1].push(w),2*u===k+1&&(u=1-u),2*h===w+1&&(h=1-h),l.iushrn(1),c.iushrn(1)}return f}r.getJSF=i;function s(l,c,f){var u="_"+c;l.prototype[c]=function(){return this[u]!==void 0?this[u]:this[u]=f.call(this)}}r.cachedProperty=s;function o(l){return typeof l=="string"?r.toArray(l,"hex"):l}r.parseBytes=o;function a(l){return new Ee(l,"hex","le")}r.intFromLE=a}),Q0=Sn.getNAF,CV=Sn.getJSF,X0=Sn.assert;function _o(t,e){this.type=t,this.p=new Ee(e.p,16),this.red=e.prime?Ee.red(e.prime):Ee.mont(this.p),this.zero=new Ee(0).toRed(this.red),this.one=new Ee(1).toRed(this.red),this.two=new Ee(2).toRed(this.red),this.n=e.n&&new Ee(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 r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Oa=_o;_o.prototype.point=function(){throw new Error("Not implemented")};_o.prototype.validate=function(){throw new Error("Not implemented")};_o.prototype._fixedNafMul=function(e,r){X0(e.precomputed);var n=e._getDoubles(),i=Q0(r,1,this._bitLength),s=(1<=a;c--)l=(l<<1)+i[c];o.push(l)}for(var f=this.jpoint(null,null,null),u=this.jpoint(null,null,null),h=s;h>0;h--){for(a=0;a=0;l--){for(var c=0;l>=0&&o[l]===0;l--)c++;if(l>=0&&c++,a=a.dblp(c),l<0)break;var f=o[l];X0(f!==0),e.type==="affine"?f>0?a=a.mixedAdd(s[f-1>>1]):a=a.mixedAdd(s[-f-1>>1].neg()):f>0?a=a.add(s[f-1>>1]):a=a.add(s[-f-1>>1].neg())}return e.type==="affine"?a.toP():a};_o.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,h;for(f=0;f=1;f-=2){var g=f-1,p=f;if(o[g]!==1||o[p]!==1){l[g]=Q0(n[g],o[g],this._bitLength),l[p]=Q0(n[p],o[p],this._bitLength),c=Math.max(l[g].length,c),c=Math.max(l[p].length,c);continue}var k=[r[g],null,null,r[p]];r[g].y.cmp(r[p].y)===0?(k[1]=r[g].add(r[p]),k[2]=r[g].toJ().mixedAdd(r[p].neg())):r[g].y.cmp(r[p].y.redNeg())===0?(k[1]=r[g].toJ().mixedAdd(r[p]),k[2]=r[g].add(r[p].neg())):(k[1]=r[g].toJ().mixedAdd(r[p]),k[2]=r[g].toJ().mixedAdd(r[p].neg()));var w=[-3,-1,-5,-7,0,7,5,1,3],E=CV(n[g],n[p]);for(c=Math.max(E[0].length,c),l[g]=new Array(c),l[p]=new Array(c),u=0;u=0;f--){for(var U=0;f>=0;){var F=!0;for(u=0;u=0&&U++,M=M.dblp(U),f<0)break;for(u=0;u0?h=a[u][G-1>>1]:G<0&&(h=a[u][-G-1>>1].neg()),h.type==="affine"?M=M.mixedAdd(h):M=M.add(h))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};jn.prototype._getDoubles=function(e,r){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,s=0;s=0&&(y=c,g=f),u.negative&&(u=u.neg(),h=h.neg()),y.negative&&(y=y.neg(),g=g.neg()),[{a:u,b:h},{a:y,b:g}]};Fn.prototype._endoSplit=function(e){var r=this.endo.basis,n=r[0],i=r[1],s=i.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=s.mul(n.a),l=o.mul(i.a),c=s.mul(n.b),f=o.mul(i.b),u=e.sub(a).sub(l),h=c.add(f).neg();return{k1:u,k2:h}};Fn.prototype.pointFromX=function(e,r){e=new Ee(e,16),e.red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(i.redSqr().redSub(n).cmp(this.zero)!==0)throw new Error("invalid point");var s=i.fromRed().isOdd();return(r&&!s||!r&&s)&&(i=i.redNeg()),this.point(e,i)};Fn.prototype.validate=function(e){if(e.inf)return!0;var r=e.x,n=e.y,i=this.a.redMul(r),s=r.redSqr().redMul(r).redIAdd(i).redIAdd(this.b);return n.redSqr().redISub(s).cmpn(0)===0};Fn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};br.prototype.isInfinity=function(){return this.inf};br.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 r=this.y.redSub(e.y);r.cmpn(0)!==0&&(r=r.redMul(this.x.redSub(e.x).redInvm()));var n=r.redSqr().redISub(this.x).redISub(e.x),i=r.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)};br.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 r=this.curve.a,n=this.x.redSqr(),i=e.redInvm(),s=n.redAdd(n).redIAdd(n).redIAdd(r).redMul(i),o=s.redSqr().redISub(this.x.redAdd(this.x)),a=s.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)};br.prototype.getX=function(){return this.x.fromRed()};br.prototype.getY=function(){return this.y.fromRed()};br.prototype.mul=function(e){return e=new Ee(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)};br.prototype.mulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s):this.curve._wnafMulAdd(1,i,s,2)};br.prototype.jmulAdd=function(e,r,n){var i=[this,r],s=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,s,!0):this.curve._wnafMulAdd(1,i,s,2,!0)};br.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)};br.prototype.neg=function(e){if(this.inf)return this;var r=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,i=function(s){return s.neg()};r.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return r};br.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 Ir(t,e,r,n){Oa.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Ee(0)):(this.x=new Ee(e,16),this.y=new Ee(r,16),this.z=new Ee(n,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}wx(Ir,Oa.BasePoint);Fn.prototype.jpoint=function(e,r,n){return new Ir(this,e,r,n)};Ir.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),r=e.redSqr(),n=this.x.redMul(r),i=this.y.redMul(r).redMul(e);return this.curve.point(n,i)};Ir.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Ir.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var r=e.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(r),s=e.x.redMul(n),o=this.y.redMul(r.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),l=i.redSub(s),c=o.redSub(a);if(l.cmpn(0)===0)return c.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var f=l.redSqr(),u=f.redMul(l),h=i.redMul(f),y=c.redSqr().redIAdd(u).redISub(h).redISub(h),g=c.redMul(h.redISub(y)).redISub(o.redMul(u)),p=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(y,g,p)};Ir.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var r=this.z.redSqr(),n=this.x,i=e.x.redMul(r),s=this.y,o=e.y.redMul(r).redMul(this.z),a=n.redSub(i),l=s.redSub(o);if(a.cmpn(0)===0)return l.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),f=c.redMul(a),u=n.redMul(c),h=l.redSqr().redIAdd(f).redISub(u).redISub(u),y=l.redMul(u.redISub(h)).redISub(s.redMul(f)),g=this.z.redMul(a);return this.curve.jpoint(h,y,g)};Ir.prototype.dblp=function(e){if(e===0)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var r;if(this.curve.zeroA||this.curve.threeA){var n=this;for(r=0;r=0)return!1;if(n.redIAdd(s),this.x.cmp(n)===0)return!0}};Ir.prototype.inspect=function(){return this.isInfinity()?"":""};Ir.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var Vd=gc(function(t,e){var r=e;r.base=Oa,r.short=SV,r.mont=null,r.edwards=null}),qd=gc(function(t,e){var r=e,n=Sn.assert;function i(a){a.type==="short"?this.curve=new Vd.short(a):a.type==="edwards"?this.curve=new Vd.edwards(a):this.curve=new Vd.mont(a),this.g=this.curve.g,this.n=this.curve.n,this.hash=a.hash,n(this.g.validate(),"Invalid curve"),n(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}r.PresetCurve=i;function s(a,l){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){var c=new i(l);return Object.defineProperty(r,a,{configurable:!0,enumerable:!0,value:c}),c}})}s("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:en.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("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:en.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("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:en.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("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:en.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"]}),s("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:en.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"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:en.sha256,gRed:!1,g:["9"]}),s("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:en.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var o;try{o=null.crash()}catch{o=void 0}s("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:en.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function yo(t){if(!(this instanceof yo))return new yo(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=ni.toArray(t.entropy,t.entropyEnc||"hex"),r=ni.toArray(t.nonce,t.nonceEnc||"hex"),n=ni.toArray(t.pers,t.persEnc||"hex");bx(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var Z7=yo;yo.prototype._init=function(e,r,n){var i=e.concat(r).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var s=0;s=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1};yo.prototype.generate=function(e,r,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof r!="string"&&(i=n,n=r,r=null),n&&(n=ni.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var kV=Sn.assert;function a1(t,e){if(t instanceof a1)return t;this._importDER(t,e)||(kV(t.r&&t.s,"Signature without r or s"),this.r=new Ee(t.r,16),this.s=new Ee(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var l1=a1;function AV(){this.place=0}function Vv(t,e){var r=t[e.place++];if(!(r&128))return r;var n=r&15;if(n===0||n>4)return!1;for(var i=0,s=0,o=e.place;s>>=0;return i<=127?!1:(e.place=o,i)}function F6(t){for(var e=0,r=t.length-1;!t[e]&&!(t[e+1]&128)&&e>>3);for(t.push(r|128);--r;)t.push(e>>>(r<<3)&255);t.push(e)}a1.prototype.toDER=function(e){var r=this.r.toArray(),n=this.s.toArray();for(r[0]&128&&(r=[0].concat(r)),n[0]&128&&(n=[0].concat(n)),r=F6(r),n=F6(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];qv(i,r.length),i=i.concat(r),i.push(2),qv(i,n.length);var s=i.concat(n),o=[48];return qv(o,s.length),o=o.concat(s),Sn.encode(o,e)};var _V=function(){throw new Error("unsupported")},e9=Sn.assert;function Ln(t){if(!(this instanceof Ln))return new Ln(t);typeof t=="string"&&(e9(Object.prototype.hasOwnProperty.call(qd,t),"Unknown curve "+t),t=qd[t]),t instanceof qd.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var TV=Ln;Ln.prototype.keyPair=function(e){return new Cx(this,e)};Ln.prototype.keyFromPrivate=function(e,r){return Cx.fromPrivate(this,e,r)};Ln.prototype.keyFromPublic=function(e,r){return Cx.fromPublic(this,e,r)};Ln.prototype.genKeyPair=function(e){e||(e={});for(var r=new Z7({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||_V(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Ee(2));;){var s=new Ee(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Ln.prototype._truncateToN=function(e,r){var n=e.byteLength()*8-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!r&&e.cmp(this.n)>=0?e.sub(this.n):e};Ln.prototype.sign=function(e,r,n,i){typeof n=="object"&&(i=n,n=null),i||(i={}),r=this.keyFromPrivate(r,n),e=this._truncateToN(new Ee(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new Z7({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Ee(1)),f=0;;f++){var u=i.k?i.k(f):new Ee(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var h=this.g.mul(u);if(!h.isInfinity()){var y=h.getX(),g=y.umod(this.n);if(g.cmpn(0)!==0){var p=u.invm(this.n).mul(g.mul(r.getPrivate()).iadd(e));if(p=p.umod(this.n),p.cmpn(0)!==0){var k=(h.getY().isOdd()?1:0)|(y.cmp(g)!==0?2:0);return i.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),k^=1),new l1({r:g,s:p,recoveryParam:k})}}}}}};Ln.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Ee(e,16)),n=this.keyFromPublic(n,i),r=new l1(r,"hex");var s=r.r,o=r.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a=o.invm(this.n),l=a.mul(e).umod(this.n),c=a.mul(s).umod(this.n),f;return this.curve._maxwellTrick?(f=this.g.jmulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.eqXToP(s)):(f=this.g.mulAdd(l,n.getPublic(),c),f.isInfinity()?!1:f.getX().umod(this.n).cmp(s)===0)};Ln.prototype.recoverPubKey=function(t,e,r,n){e9((3&r)===r,"The recovery param is more than two bits"),e=new l1(e,n);var i=this.n,s=new Ee(t),o=e.r,a=e.s,l=r&1,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");c?o=this.curve.pointFromX(o.add(this.curve.n),l):o=this.curve.pointFromX(o,l);var f=e.r.invm(i),u=i.sub(s).mul(f).umod(i),h=a.mul(f).umod(i);return this.g.mulAdd(u,o,h)};Ln.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new l1(e,n),e.recoveryParam!==null)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch{continue}if(s.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var IV=gc(function(t,e){var r=e;r.version="6.5.4",r.utils=Sn,r.rand=function(){throw new Error("unsupported")},r.curve=Vd,r.curves=qd,r.ec=TV,r.eddsa=null}),PV=IV.ec;const RV="signing-key/5.7.0",Op=new W(RV);let Hv=null;function gi(){return Hv||(Hv=new PV("secp256k1")),Hv}class aa{constructor(e){ne(this,"curve","secp256k1"),ne(this,"privateKey",Q(e)),Ni(this.privateKey)!==32&&Op.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=gi().keyFromPrivate(X(this.privateKey));ne(this,"publicKey","0x"+r.getPublic(!1,"hex")),ne(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),ne(this,"_isSigningKey",!0)}_addPoint(e){const r=gi().keyFromPublic(X(this.publicKey)),n=gi().keyFromPublic(X(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=gi().keyFromPrivate(X(this.privateKey)),n=X(e);n.length!==32&&Op.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Ra({recoveryParam:i.recoveryParam,r:et("0x"+i.r.toString(16),32),s:et("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=gi().keyFromPrivate(X(this.privateKey)),n=gi().keyFromPublic(X(Ex(e)));return et("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function t9(t,e){const r=Ra(e),n={r:X(r.r),s:X(r.s)};return"0x"+gi().recoverPubKey(X(t),n,r.recoveryParam).encode("hex",!1)}function Ex(t,e){const r=X(t);if(r.length===32){const n=new aa(r);return e?"0x"+gi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?Q(r):"0x"+gi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+gi().keyFromPublic(r).getPublic(!0,"hex"):Q(r)}return Op.throwArgumentError("invalid public or private key","key","[REDACTED]")}const MV="transactions/5.7.0",$r=new W(MV);var Np;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(Np||(Np={}));function Sx(t){return t==="0x"?null:Se(t)}function Nr(t){return t==="0x"?Lt:q.from(t)}const OV=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],NV={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function to(t){const e=Ex(t);return Se(Kt(xe(Kt(e,1)),12))}function Ea(t,e){return to(t9(X(t),e))}function hn(t,e){const r=Ti(q.from(t).toHexString());return r.length>32&&$r.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function Wv(t,e){return{address:Se(t),storageKeys:(e||[]).map((r,n)=>(Ni(r)!==32&&$r.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Na(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&$r.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),Wv(r[0],r[1])):Wv(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return Wv(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function r9(t){return Na(t).map(e=>[e.address,e.storageKeys])}function n9(t,e){if(t.gasPrice!=null){const n=q.from(t.gasPrice),i=q.from(t.maxFeePerGas||0);n.eq(i)||$r.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[hn(t.chainId||0,"chainId"),hn(t.nonce||0,"nonce"),hn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),hn(t.maxFeePerGas||0,"maxFeePerGas"),hn(t.gasLimit||0,"gasLimit"),t.to!=null?Se(t.to):"0x",hn(t.value||0,"value"),t.data||"0x",r9(t.accessList||[])];if(e){const n=Ra(e);r.push(hn(n.recoveryParam,"recoveryParam")),r.push(Ti(n.r)),r.push(Ti(n.s))}return Wr(["0x02",wa(r)])}function i9(t,e){const r=[hn(t.chainId||0,"chainId"),hn(t.nonce||0,"nonce"),hn(t.gasPrice||0,"gasPrice"),hn(t.gasLimit||0,"gasLimit"),t.to!=null?Se(t.to):"0x",hn(t.value||0,"value"),t.data||"0x",r9(t.accessList||[])];if(e){const n=Ra(e);r.push(hn(n.recoveryParam,"recoveryParam")),r.push(Ti(n.r)),r.push(Ti(n.s))}return Wr(["0x01",wa(r)])}function $V(t,e){ax(t,NV);const r=[];OV.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=X(Q(a,l)),o.length&&a.length!==o.length&&a.length>0&&$r.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=Ti(a),a.length>o.maxLength&&$r.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(Q(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&$r.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!Oi(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(Q(n)),r.push("0x"),r.push("0x")),!e)return wa(r);const i=Ra(e);let s=27+i.recoveryParam;return n!==0?(r.pop(),r.pop(),r.pop(),s+=n*2+8,i.v>28&&i.v!==s&&$r.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&$r.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(Q(s)),r.push(Ti(X(i.r))),r.push(Ti(X(i.s))),wa(r)}function $p(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&$r.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),$V(t,e);switch(t.type){case 1:return i9(t,e);case 2:return n9(t,e)}return $r.throwError(`unsupported transaction type: ${t.type}`,W.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function s9(t,e,r){try{const n=Nr(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{$r.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=et(e[1],32),t.s=et(e[2],32);try{const n=xe(r(t));t.from=Ea(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function DV(t){const e=n1(t.slice(1));e.length!==9&&e.length!==12&&$r.throwArgumentError("invalid component count for transaction type: 2","payload",Q(t));const r=Nr(e[2]),n=Nr(e[3]),i={type:2,chainId:Nr(e[0]).toNumber(),nonce:Nr(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Nr(e[4]),to:Sx(e[5]),value:Nr(e[6]),data:e[7],accessList:Na(e[8])};return e.length===9||(i.hash=xe(t),s9(i,e.slice(9),n9)),i}function BV(t){const e=n1(t.slice(1));e.length!==8&&e.length!==11&&$r.throwArgumentError("invalid component count for transaction type: 1","payload",Q(t));const r={type:1,chainId:Nr(e[0]).toNumber(),nonce:Nr(e[1]).toNumber(),gasPrice:Nr(e[2]),gasLimit:Nr(e[3]),to:Sx(e[4]),value:Nr(e[5]),data:e[6],accessList:Na(e[7])};return e.length===8||(r.hash=xe(t),s9(r,e.slice(8),i9)),r}function LV(t){const e=n1(t);e.length!==9&&e.length!==6&&$r.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:Nr(e[0]).toNumber(),gasPrice:Nr(e[1]),gasLimit:Nr(e[2]),to:Sx(e[3]),value:Nr(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=q.from(e[6]).toNumber()}catch{return r}if(r.r=et(e[7],32),r.s=et(e[8],32),q.from(r.r).isZero()&&q.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=e.slice(0,6);r.chainId!==0&&(i.push(Q(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=xe(wa(i));try{r.from=Ea(s,{r:Q(r.r),s:Q(r.s),recoveryParam:n})}catch{}r.hash=xe(t)}return r.type=null,r}function o9(t){const e=X(t);if(e[0]>127)return LV(e);switch(e[0]){case 1:return BV(e);case 2:return DV(e)}return $r.throwError(`unsupported transaction type: ${e[0]}`,W.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const jV="contracts/5.7.0";var Sa=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Zt=new W(jV);function Z0(t,e){return Sa(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&Zt.throwArgumentError("invalid address or ENS name","name",r);try{return Se(r)}catch{}t||Zt.throwError("a provider or signer is needed to resolve ENS names",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield t.resolveName(r);return n==null&&Zt.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function Hd(t,e,r){return Sa(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>Hd(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield Z0(t,e):r.type==="tuple"?yield Hd(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>Hd(t,n,r.arrayChildren))):Promise.reject(Zt.makeError("invalid value for array",W.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function c1(t,e,r){return Sa(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=ar(r.pop())),Zt.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=nt({override:Z0(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>Sa(this,void 0,void 0,function*(){return Se(c.signer)!==c.override&&Zt.throwError("Contract with a Signer cannot override from",W.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),c.override})):n.from=t.signer.getAddress():n.from&&(n.from=Z0(t.provider,n.from));const i=yield nt({args:Hd(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:nt(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=q.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=q.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=q.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=q.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=q.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Na(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=X(s);for(let u=0;un[c]!=null);return l.length&&Zt.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,W.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function FV(t,e){return function(...r){return c1(t,e,r)}}function UV(t,e){const r=t.signer||t.provider;return function(...n){return Sa(this,void 0,void 0,function*(){r||Zt.throwError("estimate require a provider or signer",W.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield c1(t,e,n);return yield r.estimateGas(i)})}}function zV(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=$i(s),a=null;try{a=t.interface.parseLog(s)}catch{}return a&&(o.args=a.args,o.decode=(l,c)=>t.interface.decodeEventLog(a.eventFragment,l,c),o.event=a.name,o.eventSignature=a.signature),o.removeListener=()=>t.provider,o.getBlock=()=>t.provider.getBlock(i.blockHash),o.getTransaction=()=>t.provider.getTransaction(i.transactionHash),o.getTransactionReceipt=()=>Promise.resolve(i),o}),i))}function a9(t,e,r){const n=t.signer||t.provider;return function(...i){return Sa(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=ar(i.pop());l.blockTag!=null&&(s=yield l.blockTag),delete l.blockTag,i.push(l)}t.deployTransaction!=null&&(yield t._deployed(s));const o=yield c1(t,e,i),a=yield n.call(o,s);try{let l=t.interface.decodeFunctionResult(e,a);return r&&e.outputs.length===1&&(l=l[0]),l}catch(l){throw l.code===W.errors.CALL_EXCEPTION&&(l.address=t.address,l.args=i,l.transaction=o),l}})}}function VV(t,e){return function(...r){return Sa(this,void 0,void 0,function*(){t.signer||Zt.throwError("sending a transaction requires a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield c1(t,e,r),i=yield t.signer.sendTransaction(n);return zV(t,i),i})}}function U6(t,e,r){return e.constant?a9(t,e,r):VV(t,e)}function l9(t){return t.address&&(t.topics==null||t.topics.length===0)?"*":(t.address||"*")+"@"+(t.topics?t.topics.map(e=>Array.isArray(e)?e.join("|"):e).join(":"):"")}class su{constructor(e,r){ne(this,"tag",e),ne(this,"filter",r),this._listeners=[]}addListener(e,r){this._listeners.push({listener:e,once:r})}removeListener(e){let r=!1;this._listeners=this._listeners.filter(n=>r||n.listener!==e?!0:(r=!0,!1))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map(e=>e.listener)}listenerCount(){return this._listeners.length}run(e){const r=this.listenerCount();return this._listeners=this._listeners.filter(n=>{const i=e.slice();return setTimeout(()=>{n.listener.apply(this,i)},0),!n.once}),r}prepareEvent(e){}getEmit(e){return[e]}}class qV extends su{constructor(){super("error",null)}}class z6 extends su{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&Zt.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(l9(s),s),ne(this,"address",e),ne(this,"interface",r),ne(this,"fragment",n)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(r,n)=>this.interface.decodeEventLog(this.fragment,r,n);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}getEmit(e){const r=o7(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class V6 extends su{constructor(e,r){super("*",{address:e}),ne(this,"address",e),ne(this,"interface",r)}prepareEvent(e){super.prepareEvent(e);try{const r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=(n,i)=>this.interface.decodeEventLog(r.eventFragment,n,i),e.args=r.args}catch{}}}class HV{constructor(e,r,n){ne(this,"interface",ri(new.target,"getInterface")(r)),n==null?(ne(this,"provider",null),ne(this,"signer",null)):vo.isSigner(n)?(ne(this,"provider",n.provider||null),ne(this,"signer",n)):Ao.isProvider(n)?(ne(this,"provider",n),ne(this,"signer",null)):Zt.throwArgumentError("invalid signer or provider","signerOrProvider",n),ne(this,"callStatic",{}),ne(this,"estimateGas",{}),ne(this,"functions",{}),ne(this,"populateTransaction",{}),ne(this,"filters",{});{const o={};Object.keys(this.interface.events).forEach(a=>{const l=this.interface.events[a];ne(this.filters,a,(...c)=>({address:this.address,topics:this.interface.encodeFilterTopics(l,c)})),o[l.name]||(o[l.name]=[]),o[l.name].push(a)}),Object.keys(o).forEach(a=>{const l=o[a];l.length===1?ne(this.filters,a,this.filters[l[0]]):Zt.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ne(this,"_runningEvents",{}),ne(this,"_wrappedEmits",{}),e==null&&Zt.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ne(this,"address",e),this.provider)ne(this,"resolvedAddress",Z0(this.provider,e));else try{ne(this,"resolvedAddress",Promise.resolve(Se(e)))}catch{Zt.throwError("provider is required to use ENS name as contract address",W.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch(o=>{});const i={},s={};Object.keys(this.interface.functions).forEach(o=>{const a=this.interface.functions[o];if(s[o]){Zt.warn(`Duplicate ABI entry for ${JSON.stringify(o)}`);return}s[o]=!0;{const l=a.name;i[`%${l}`]||(i[`%${l}`]=[]),i[`%${l}`].push(o)}this[o]==null&&ne(this,o,U6(this,a,!0)),this.functions[o]==null&&ne(this.functions,o,U6(this,a,!1)),this.callStatic[o]==null&&ne(this.callStatic,o,a9(this,a,!0)),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,FV(this,a)),this.estimateGas[o]==null&&ne(this.estimateGas,o,UV(this,a))}),Object.keys(i).forEach(o=>{const a=i[o];if(a.length>1)return;o=o.substring(1);const l=a[0];try{this[o]==null&&ne(this,o,this[l])}catch{}this.functions[o]==null&&ne(this.functions,o,this.functions[l]),this.callStatic[o]==null&&ne(this.callStatic,o,this.callStatic[l]),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,this.populateTransaction[l]),this.estimateGas[o]==null&&ne(this.estimateGas,o,this.estimateGas[l])})}static getContractAddress(e){return fx(e)}static getInterface(e){return Dt.isInterface(e)?e:new Dt(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(r=>(r==="0x"&&Zt.throwError("contract not deployed",W.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||Zt.throwError("sending a transactions require a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=ar(e||{});return["from","to"].forEach(function(n){r[n]!=null&&Zt.throwError("cannot override "+n,W.errors.UNSUPPORTED_OPERATION,{operation:n})}),r.to=this.resolvedAddress,this.deployed().then(()=>this.signer.sendTransaction(r))}connect(e){typeof e=="string"&&(e=new xx(e,this.provider));const r=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&ne(r,"deployTransaction",this.deployTransaction),r}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Y0.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 qV);if(e==="event")return this._normalizeRunningEvent(new su("event",null));if(e==="*")return this._normalizeRunningEvent(new V6(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new z6(this.address,this.interface,r))}if(e.topics&&e.topics.length>0){try{const n=e.topics[0];if(typeof n!="string")throw new Error("invalid topic");const i=this.interface.getEvent(n);return this._normalizeRunningEvent(new z6(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new su(l9(r),r))}return this._normalizeRunningEvent(new V6(this.address,this.interface))}_checkRunningEvents(e){if(e.listenerCount()===0){delete this._runningEvents[e.tag];const r=this._wrappedEmits[e.tag];r&&e.filter&&(this.provider.off(e.filter,r),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,r,n){const i=$i(r);return i.removeListener=()=>{n&&(e.removeListener(n),this._checkRunningEvents(e))},i.getBlock=()=>this.provider.getBlock(r.blockHash),i.getTransaction=()=>this.provider.getTransaction(r.transactionHash),i.getTransactionReceipt=()=>this.provider.getTransactionReceipt(r.transactionHash),e.prepareEvent(i),i}_addEventListener(e,r,n){if(this.provider||Zt.throwError("events require a provider or a signer with a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(r,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const i=s=>{let o=this._wrapEvent(e,s,r);if(o.decodeError==null)try{const a=e.getEmit(o);this.emit(e.filter,...a)}catch(a){o.decodeError=a.error}e.filter!=null&&this.emit("event",o),o.decodeError!=null&&this.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=i,e.filter!=null&&this.provider.on(e.filter,i)}}queryFilter(e,r,n){const i=this._getRunningEvent(e),s=ar(i.filter);return typeof r=="string"&&Le(r,32)?(n!=null&&Zt.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),s.blockHash=r):(s.fromBlock=r??0,s.toBlock=n??"latest"),this.provider.getLogs(s).then(o=>o.map(a=>this._wrapEvent(i,a,null)))}on(e,r){return this._addEventListener(this._getRunningEvent(e),r,!1),this}once(e,r){return this._addEventListener(this._getRunningEvent(e),r,!0),this}emit(e,...r){if(!this.provider)return!1;const n=this._getRunningEvent(e),i=n.run(r)>0;return this._checkRunningEvents(n),i}listenerCount(e){return this.provider?e==null?Object.keys(this._runningEvents).reduce((r,n)=>r+this._runningEvents[n].listenerCount(),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(e==null){const r=[];for(let n in this._runningEvents)this._runningEvents[n].listeners().forEach(i=>{r.push(i)});return r}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(e==null){for(const n in this._runningEvents){const i=this._runningEvents[n];i.removeAllListeners(),this._checkRunningEvents(i)}return this}const r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}off(e,r){if(!this.provider)return this;const n=this._getRunningEvent(e);return n.removeListener(r),this._checkRunningEvents(n),this}removeListener(e,r){return this.off(e,r)}}class $a extends HV{}class c9{constructor(e){ne(this,"alphabet",e),ne(this,"base",e.length),ne(this,"_alphabetMap",{}),ne(this,"_leader",e.charAt(0));for(let r=0;r0;)n.push(o%this.base),o=o/this.base|0}let i="";for(let s=0;r[s]===0&&s=0;--s)i+=this.alphabet[n[s]];return i}decode(e){if(typeof e!="string")throw new TypeError("Expected String");let r=[];if(e.length===0)return new Uint8Array(r);r.push(0);for(let n=0;n>=8;for(;s>0;)r.push(s&255),s>>=8}for(let n=0;e[n]===this._leader&&n>24&255,l[e.length+1]=u>>16&255,l[e.length+2]=u>>8&255,l[e.length+3]=u&255;let h=X(ou(i,t,l));s||(s=h.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(h);for(let p=1;p=256)throw new Error("Depth too large!");return W6(Ze([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",Q(this.depth),this.parentFingerprint,et(Q(this.index),4),this.chainCode,this.privateKey!=null?Ze(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new vn(Ua,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let r=this.path;r&&(r+="/"+(e&~Ja));const n=new Uint8Array(37);if(e&Ja){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(X(this.privateKey),1),r&&(r+="'")}else n.set(X(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=X(ou(Ql.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=gd(q.from(s).add(this.privateKey).mod(eq)):l=new aa(Q(s))._addPoint(this.publicKey);let c=r;const f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new vn(Ua,a,l,this.fingerprint,gd(o),e,this.depth+1,c)}derivePath(e){const r=e.split("/");if(r.length===0||r[0]==="m"&&this.depth!==0)throw new Error("invalid path - "+e);r[0]==="m"&&r.shift();let n=this;for(let i=0;i=Ja)throw new Error("invalid path index - "+s);n=n._derive(Ja+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=Ja)throw new Error("invalid path index - "+s);n=n._derive(o)}else throw new Error("invalid path component - "+s)}return n}static _fromSeed(e,r){const n=X(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=X(ou(Ql.sha512,tq,n));return new vn(Ua,gd(i.slice(0,32)),null,"0x00000000",gd(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Ax(n),e=u1(f1(e,n),n),vn._fromSeed(h9(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return vn._fromSeed(e,null)}static fromExtendedKey(e){const r=Yl.decode(e);(r.length!==82||W6(r.slice(0,78))!==e)&&au.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=Q(r.slice(5,9)),s=parseInt(Q(r.slice(9,13)).substring(2),16),o=Q(r.slice(13,45)),a=r.slice(45,78);switch(Q(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new vn(Ua,null,Q(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new vn(Ua,Q(a.slice(1)),null,i,o,s,n,null)}return au.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function h9(t,e){e||(e="");const r=Ke("mnemonic"+e,Di.NFKD);return kx(Ke(t,Di.NFKD),r,2048,64,"sha512")}function f1(t,e){e=Ax(e),au.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=X(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let c=0;c>3]|=1<<7-i%8),i++}const s=32*r.length/3,o=r.length/3,a=d9(o);if((X(ds(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return Q(n.slice(0,s/8))}function u1(t,e){if(e=Ax(e),t=X(t),t.length%4!==0||t.length<16||t.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&rq(8-n)),n+=3);const i=t.length/4,s=X(ds(t))[0]&d9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}function nq(t,e){try{return f1(t,e),!0}catch{}return!1}function iq(t){return(typeof t!="number"||t<0||t>=Ja||t%1)&&au.throwArgumentError("invalid account index","index",t),`m/44'/60'/${t}'/0/0`}const sq="random/5.7.0",Dp=new W(sq);function oq(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const G6=oq();let Wd=G6.crypto||G6.msCrypto;(!Wd||!Wd.getRandomValues)&&(Dp.warn("WARNING: Missing strong random number source"),Wd={getRandomValues:function(t){return Dp.throwError("no secure random source avaialble",W.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function Ci(t){(t<=0||t>1024||t%1||t!=t)&&Dp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return Wd.getRandomValues(e),X(e)}function aq(t){t=t.slice();for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t}var v9={exports:{}};(function(t,e){(function(r){function n(b){return parseInt(b)===b}function i(b){if(!n(b.length))return!1;for(var d=0;d255)return!1;return!0}function s(b,d){if(b.buffer&&ArrayBuffer.isView(b)&&b.name==="Uint8Array")return d&&(b.slice?b=b.slice():b=Array.prototype.slice.call(b)),b;if(Array.isArray(b)){if(!i(b))throw new Error("Array contains invalid value: "+b);return new Uint8Array(b)}if(n(b.length)&&i(b))return new Uint8Array(b);throw new Error("unsupported array-like object")}function o(b){return new Uint8Array(b)}function a(b,d,T,$,m){($!=null||m!=null)&&(b.slice?b=b.slice($,m):b=Array.prototype.slice.call(b,$,m)),d.set(b,T)}var l=function(){function b(T){var $=[],m=0;for(T=encodeURI(T);m191&&N<224?($.push(String.fromCharCode((N&31)<<6|T[m+1]&63)),m+=2):($.push(String.fromCharCode((N&15)<<12|(T[m+1]&63)<<6|T[m+2]&63)),m+=3)}return $.join("")}return{toBytes:b,fromBytes:d}}(),c=function(){function b($){for(var m=[],N=0;N<$.length;N+=2)m.push(parseInt($.substr(N,2),16));return m}var d="0123456789abcdef";function T($){for(var m=[],N=0;N<$.length;N++){var B=$[N];m.push(d[(B&240)>>4]+d[B&15])}return m.join("")}return{toBytes:b,fromBytes:T}}(),f={16:10,24:12,32:14},u=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],h=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],y=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],g=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],k=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],w=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],E=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],A=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],P=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],M=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],j=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],U=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],F=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],G=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function J(b){for(var d=[],T=0;T>2,this._Ke[N][d%4]=m[d],this._Kd[b-N][d%4]=m[d];for(var B=0,L=$,V;L>16&255]<<24^h[V>>8&255]<<16^h[V&255]<<8^h[V>>24&255]^u[B]<<24,B+=1,$!=8)for(var d=1;d<$;d++)m[d]^=m[d-1];else{for(var d=1;d<$/2;d++)m[d]^=m[d-1];V=m[$/2-1],m[$/2]^=h[V&255]^h[V>>8&255]<<8^h[V>>16&255]<<16^h[V>>24&255]<<24;for(var d=$/2+1;d<$;d++)m[d]^=m[d-1]}for(var d=0,ee,H;d<$&&L>2,H=L%4,this._Ke[ee][H]=m[d],this._Kd[b-ee][H]=m[d++],L++}for(var ee=1;ee>24&255]^U[V>>16&255]^F[V>>8&255]^G[V&255]},te.prototype.encrypt=function(b){if(b.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var d=this._Ke.length-1,T=[0,0,0,0],$=J(b),m=0;m<4;m++)$[m]^=this._Ke[0][m];for(var N=1;N>24&255]^p[$[(m+1)%4]>>16&255]^k[$[(m+2)%4]>>8&255]^w[$[(m+3)%4]&255]^this._Ke[N][m];$=T.slice()}for(var B=o(16),L,m=0;m<4;m++)L=this._Ke[d][m],B[4*m]=(h[$[m]>>24&255]^L>>24)&255,B[4*m+1]=(h[$[(m+1)%4]>>16&255]^L>>16)&255,B[4*m+2]=(h[$[(m+2)%4]>>8&255]^L>>8)&255,B[4*m+3]=(h[$[(m+3)%4]&255]^L)&255;return B},te.prototype.decrypt=function(b){if(b.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var d=this._Kd.length-1,T=[0,0,0,0],$=J(b),m=0;m<4;m++)$[m]^=this._Kd[0][m];for(var N=1;N>24&255]^A[$[(m+3)%4]>>16&255]^P[$[(m+2)%4]>>8&255]^M[$[(m+1)%4]&255]^this._Kd[N][m];$=T.slice()}for(var B=o(16),L,m=0;m<4;m++)L=this._Kd[d][m],B[4*m]=(y[$[m]>>24&255]^L>>24)&255,B[4*m+1]=(y[$[(m+3)%4]>>16&255]^L>>16)&255,B[4*m+2]=(y[$[(m+2)%4]>>8&255]^L>>8)&255,B[4*m+3]=(y[$[(m+1)%4]&255]^L)&255;return B};var se=function(b){if(!(this instanceof se))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new te(b)};se.prototype.encrypt=function(b){if(b=s(b),b.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var d=o(b.length),T=o(16),$=0;$=0;--d)this._counter[d]=b%256,b=b>>8},I.prototype.setBytes=function(b){if(b=s(b,!0),b.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=b},I.prototype.increment=function(){for(var b=15;b>=0;b--)if(this._counter[b]===255)this._counter[b]=0;else{this._counter[b]++;break}};var O=function(b,d){if(!(this instanceof O))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",d instanceof I||(d=new I(d)),this._counter=d,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new te(b)};O.prototype.encrypt=function(b){for(var d=s(b,!0),T=0;T16)throw new Error("PKCS#7 padding byte out of range");for(var T=b.length-d,$=0;$=64;){let R=w,b=E,d=A,T=P,$=M,m=j,N=U,B=F,L,V,ee,H,Z;for(V=0;V<16;V++)ee=x+V*4,G[V]=(O[ee]&255)<<24|(O[ee+1]&255)<<16|(O[ee+2]&255)<<8|O[ee+3]&255;for(V=16;V<64;V++)L=G[V-2],H=(L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10,L=G[V-15],Z=(L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3,G[V]=(H+G[V-7]|0)+(Z+G[V-16]|0)|0;for(V=0;V<64;V++)H=((($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7))+($&m^~$&N)|0)+(B+(k[V]+G[V]|0)|0)|0,Z=((R>>>2|R<<30)^(R>>>13|R<<19)^(R>>>22|R<<10))+(R&b^R&d^b&d)|0,B=N,N=m,m=$,$=T+H|0,T=d,d=b,b=R,R=H+Z|0;w=w+R|0,E=E+b|0,A=A+d|0,P=P+T|0,M=M+$|0,j=j+m|0,U=U+N|0,F=F+B|0,x+=64,_-=64}}J(p);let te,se=p.length%64,D=p.length/536870912|0,v=p.length<<3,C=se<56?56:120,I=p.slice(p.length-se,p.length);for(I.push(128),te=se+1;te>>24&255),I.push(D>>>16&255),I.push(D>>>8&255),I.push(D>>>0&255),I.push(v>>>24&255),I.push(v>>>16&255),I.push(v>>>8&255),I.push(v>>>0&255),J(I),[w>>>24&255,w>>>16&255,w>>>8&255,w>>>0&255,E>>>24&255,E>>>16&255,E>>>8&255,E>>>0&255,A>>>24&255,A>>>16&255,A>>>8&255,A>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,M>>>24&255,M>>>16&255,M>>>8&255,M>>>0&255,j>>>24&255,j>>>16&255,j>>>8&255,j>>>0&255,U>>>24&255,U>>>16&255,U>>>8&255,U>>>0&255,F>>>24&255,F>>>16&255,F>>>8&255,F>>>0&255]}function s(p,k,w){p=p.length<=64?p:i(p);const E=64+k.length+4,A=new Array(E),P=new Array(64);let M,j=[];for(M=0;M<64;M++)A[M]=54;for(M=0;M=E-4;F--){if(A[F]++,A[F]<=255)return;A[F]=0}}for(;w>=32;)U(),j=j.concat(i(P.concat(i(A)))),w-=32;return w>0&&(U(),j=j.concat(i(P.concat(i(A))).slice(0,w))),j}function o(p,k,w,E,A){let P;for(f(p,(2*w-1)*16,A,0,16),P=0;P<2*w;P++)c(p,P*16,A,16),l(A,E),f(A,0,p,k+P*16,16);for(P=0;P>>32-k}function l(p,k){f(p,0,k,0,16);for(let w=8;w>0;w-=2)k[4]^=a(k[0]+k[12],7),k[8]^=a(k[4]+k[0],9),k[12]^=a(k[8]+k[4],13),k[0]^=a(k[12]+k[8],18),k[9]^=a(k[5]+k[1],7),k[13]^=a(k[9]+k[5],9),k[1]^=a(k[13]+k[9],13),k[5]^=a(k[1]+k[13],18),k[14]^=a(k[10]+k[6],7),k[2]^=a(k[14]+k[10],9),k[6]^=a(k[2]+k[14],13),k[10]^=a(k[6]+k[2],18),k[3]^=a(k[15]+k[11],7),k[7]^=a(k[3]+k[15],9),k[11]^=a(k[7]+k[3],13),k[15]^=a(k[11]+k[7],18),k[1]^=a(k[0]+k[3],7),k[2]^=a(k[1]+k[0],9),k[3]^=a(k[2]+k[1],13),k[0]^=a(k[3]+k[2],18),k[6]^=a(k[5]+k[4],7),k[7]^=a(k[6]+k[5],9),k[4]^=a(k[7]+k[6],13),k[5]^=a(k[4]+k[7],18),k[11]^=a(k[10]+k[9],7),k[8]^=a(k[11]+k[10],9),k[9]^=a(k[8]+k[11],13),k[10]^=a(k[9]+k[8],18),k[12]^=a(k[15]+k[14],7),k[13]^=a(k[12]+k[15],9),k[14]^=a(k[13]+k[12],13),k[15]^=a(k[14]+k[13],18);for(let w=0;w<16;++w)p[w]+=k[w]}function c(p,k,w,E){for(let A=0;A=256)return!1}return!0}function h(p,k){if(typeof p!="number"||p%1)throw new Error("invalid "+k);return p}function y(p,k,w,E,A,P,M){if(w=h(w,"N"),E=h(E,"r"),A=h(A,"p"),P=h(P,"dkLen"),w===0||w&w-1)throw new Error("N must be power of 2");if(w>2147483647/128/E)throw new Error("N too large");if(E>2147483647/128/A)throw new Error("r too large");if(!u(p))throw new Error("password must be an array or buffer");if(p=Array.prototype.slice.call(p),!u(k))throw new Error("salt must be an array or buffer");k=Array.prototype.slice.call(k);let j=s(p,k,A*128*E);const U=new Uint32Array(A*32*E);for(let $=0;$b&&($=b);for(let N=0;N<$;N++)f(F,0,G,(_+N)*J,J),o(F,J,E,te,se);if(_+=$,v+=$,M){const N=parseInt(1e3*v/D);if(N!==C){if(I=M(null,v/D),I)break;C=N}}if(_b&&($=b);for(let N=0;N<$;N++){const B=(2*E-1)*16,L=F[B]&w-1;c(G,L*J,F,J),o(F,J,E,te,se)}if(_+=$,v+=$,M){const N=parseInt(1e3*v/D);if(N!==C){if(I=M(null,v/D),I)break;C=N}}if(_>0&255),j.push(U[N]>>8&255),j.push(U[N]>>16&255),j.push(U[N]>>24&255);const m=s(p,j,P);return M&&M(null,1,m),m}M&&d(T)};if(!M)for(;;){const $=T();if($!=null)return $}T()}const g={scrypt:function(p,k,w,E,A,P,M){return new Promise(function(j,U){let F=0;M&&M(0),y(p,k,w,E,A,P,function(G,J,te){if(G)U(G);else if(te)M&&F!==1&&M(1),j(new Uint8Array(te));else if(M&&J!==F)return F=J,M(J)})})},syncScrypt:function(p,k,w,E,A,P){return new Uint8Array(y(p,k,w,E,A,P))}};t.exports=g})()})(g9);var hq=g9.exports;const Px=mo(hq);var vq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Bp=new W(y9);function K6(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class yq extends Ma{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function pq(t,e,r){if(er(t,"crypto/cipher")==="aes-128-ctr"){const i=la(er(t,"crypto/cipherparams/iv")),s=new Ei.Counter(i),o=new Ei.ModeOfOperation.ctr(e,s);return X(o.decrypt(r))}return null}function m9(t,e){const r=la(er(t,"crypto/ciphertext"));if(Q(xe(Ze([e.slice(16,32),r]))).substring(2)!==er(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=pq(t,e.slice(0,16),r);i||Bp.throwError("unsupported cipher",W.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=to(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Se(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:Q(i)};if(er(t,"x-ethers/version")==="0.1"){const l=la(er(t,"x-ethers/mnemonicCiphertext")),c=la(er(t,"x-ethers/mnemonicCounter")),f=new Ei.Counter(c),u=new Ei.ModeOfOperation.ctr(s,f),h=er(t,"x-ethers/path")||Xl,y=er(t,"x-ethers/locale")||"en",g=X(u.decrypt(l));try{const p=u1(g,y),k=vn.fromMnemonic(p,null,y).derivePath(h);if(k.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=k.mnemonic}catch(p){if(p.code!==W.errors.INVALID_ARGUMENT||p.argument!=="wordlist")throw p}}return new yq(a)}function x9(t,e,r,n,i){return X(kx(t,e,r,n,i))}function gq(t,e,r,n,i){return Promise.resolve(x9(t,e,r,n,i))}function b9(t,e,r,n,i){const s=_x(e),o=er(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return Bp.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=la(er(t,"crypto/kdfparams/salt")),c=parseInt(er(t,"crypto/kdfparams/n")),f=parseInt(er(t,"crypto/kdfparams/r")),u=parseInt(er(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const h=parseInt(er(t,"crypto/kdfparams/dklen"));return h!==32&&a("dklen",h),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=la(er(t,"crypto/kdfparams/salt"));let c=null;const f=er(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(er(t,"crypto/kdfparams/c")),h=parseInt(er(t,"crypto/kdfparams/dklen"));return h!==32&&a("dklen",h),r(s,l,u,h,c)}}return Bp.throwArgumentError("unsupported key-derivation function","kdf",o)}function mq(t,e){const r=JSON.parse(t),n=b9(r,e,x9,Px.syncScrypt);return m9(r,n)}function xq(t,e,r){return vq(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield b9(n,e,gq,Px.scrypt,r);return m9(n,i)})}function bq(t,e,r,n){try{if(Se(t.address)!==to(t.privateKey))throw new Error("address/privateKey mismatch");if(K6(t)){const k=t.mnemonic;if(vn.fromMnemonic(k.phrase,null,k.locale).derivePath(k.path||Xl).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(k){return Promise.reject(k)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=X(t.privateKey),s=_x(e);let o=null,a=null,l=null;if(K6(t)){const k=t.mnemonic;o=X(f1(k.phrase,k.locale||"en")),a=k.path||Xl,l=k.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=X(r.salt):f=Ci(32);let u=null;if(r.iv){if(u=X(r.iv),u.length!==16)throw new Error("invalid iv")}else u=Ci(16);let h=null;if(r.uuid){if(h=X(r.uuid),h.length!==16)throw new Error("invalid uuid")}else h=Ci(16);let y=1<<17,g=8,p=1;return r.scrypt&&(r.scrypt.N&&(y=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(p=r.scrypt.p)),Px.scrypt(s,f,y,g,p,64,n).then(k=>{k=X(k);const w=k.slice(0,16),E=k.slice(16,32),A=k.slice(32,64),P=new Ei.Counter(u),M=new Ei.ModeOfOperation.ctr(w,P),j=X(M.encrypt(i)),U=xe(Ze([E,j])),F={address:t.address.substring(2).toLowerCase(),id:cq(h),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Q(u).substring(2)},ciphertext:Q(j).substring(2),kdf:"scrypt",kdfparams:{salt:Q(f).substring(2),n:y,dklen:32,p,r:g},mac:U.substring(2)}};if(o){const G=Ci(16),J=new Ei.Counter(G),te=new Ei.ModeOfOperation.ctr(A,J),se=X(te.encrypt(o)),D=new Date,v=D.getUTCFullYear()+"-"+Dc(D.getUTCMonth()+1,2)+"-"+Dc(D.getUTCDate(),2)+"T"+Dc(D.getUTCHours(),2)+"-"+Dc(D.getUTCMinutes(),2)+"-"+Dc(D.getUTCSeconds(),2)+".0Z";F["x-ethers"]={client:c,gethFilename:"UTC--"+v+"--"+F.address,mnemonicCounter:Q(G).substring(2),mnemonicCiphertext:Q(se).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(F)})}function wq(t,e,r){if(Tx(t)){r&&r(0);const n=p9(t,e);return r&&r(1),Promise.resolve(n)}return Ix(t)?xq(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function Cq(t,e){if(Tx(t))return p9(t,e);if(Ix(t))return mq(t,e);throw new Error("invalid JSON wallet")}const Eq="wallet/5.7.0";var J6=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const za=new W(Eq);function Sq(t){return t!=null&&Le(t.privateKey,32)&&t.address!=null}function kq(t){const e=t.mnemonic;return e&&e.phrase}let Aq=class Ya extends vo{constructor(e,r){if(super(),Sq(e)){const n=new aa(e.privateKey);if(ne(this,"_signingKey",()=>n),ne(this,"address",to(this.publicKey)),this.address!==Se(e.address)&&za.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),kq(e)){const i=e.mnemonic;ne(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Xl,locale:i.locale||"en"}));const s=this.mnemonic,o=vn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);to(o.privateKey)!==this.address&&za.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ne(this,"_mnemonic",()=>null)}else{if(aa.isSigningKey(e))e.curve!=="secp256k1"&&za.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),ne(this,"_signingKey",()=>e);else{typeof e=="string"&&e.match(/^[0-9a-f]*$/i)&&e.length===64&&(e="0x"+e);const n=new aa(e);ne(this,"_signingKey",()=>n)}ne(this,"_mnemonic",()=>null),ne(this,"address",to(this.publicKey))}r&&!Ao.isProvider(r)&&za.throwArgumentError("invalid provider","provider",r),ne(this,"provider",r||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new Ya(this,e)}signTransaction(e){return nt(e).then(r=>{r.from!=null&&(Se(r.from)!==this.address&&za.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(xe($p(r)));return $p(r,n)})}signMessage(e){return J6(this,void 0,void 0,function*(){return Ap(this._signingKey().signDigest(s1(e)))})}_signTypedData(e,r,n){return J6(this,void 0,void 0,function*(){const i=yield ir.resolveNames(e,r,n,s=>(this.provider==null&&za.throwError("cannot resolve ENS names without a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return Ap(this._signingKey().signDigest(ir.hash(i.domain,r,i.value)))})}encrypt(e,r,n){if(typeof r=="function"&&!n&&(n=r,r={}),n&&typeof n!="function")throw new Error("invalid callback");return r||(r={}),bq(this,e,r,n)}static createRandom(e){let r=Ci(16);e||(e={}),e.extraEntropy&&(r=X(Kt(xe(Ze([r,e.extraEntropy])),0,16)));const n=u1(r,e.locale);return Ya.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return wq(e,r,n).then(i=>new Ya(i))}static fromEncryptedJsonSync(e,r){return new Ya(Cq(e,r))}static fromMnemonic(e,r,n){return r||(r=Xl),new Ya(vn.fromMnemonic(e,null,n).derivePath(r))}};function w9(t,e){return Ea(s1(t),e)}function _q(t,e,r,n){return Ea(ir.hash(t,e,r),n)}const Tq="networks/5.7.1",Y6=new W(Tq);function Iq(t){return t&&typeof t.renetwork=="function"}function Ki(t){const e=function(r,n){n==null&&(n={});const i=[];if(r.InfuraProvider&&n.infura!=="-")try{i.push(new r.InfuraProvider(t,n.infura))}catch{}if(r.EtherscanProvider&&n.etherscan!=="-")try{i.push(new r.EtherscanProvider(t,n.etherscan))}catch{}if(r.AlchemyProvider&&n.alchemy!=="-")try{i.push(new r.AlchemyProvider(t,n.alchemy))}catch{}if(r.PocketProvider&&n.pocket!=="-"){const s=["goerli","ropsten","rinkeby","sepolia"];try{const o=new r.PocketProvider(t,n.pocket);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}}if(r.CloudflareProvider&&n.cloudflare!=="-")try{i.push(new r.CloudflareProvider(t))}catch{}if(r.AnkrProvider&&n.ankr!=="-")try{const s=["ropsten"],o=new r.AnkrProvider(t,n.ankr);o.network&&s.indexOf(o.network.name)===-1&&i.push(o)}catch{}if(i.length===0)return null;if(r.FallbackProvider){let s=1;return n.quorum!=null?s=n.quorum:t==="homestead"&&(s=2),new r.FallbackProvider(i,s)}return i[0]};return e.renetwork=function(r){return Ki(r)},e}function eh(t,e){const r=function(n,i){return n.JsonRpcProvider?new n.JsonRpcProvider(t,e):null};return r.renetwork=function(n){return eh(t,n)},r}const Q6={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Ki("homestead")},X6={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Ki("ropsten")},Z6={chainId:63,name:"classicMordor",_defaultProvider:eh("https://www.ethercluster.com/mordor","classicMordor")},md={unspecified:{chainId:0,name:"unspecified"},homestead:Q6,mainnet:Q6,morden:{chainId:2,name:"morden"},ropsten:X6,testnet:X6,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Ki("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Ki("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Ki("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Ki("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:eh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Z6,classicTestnet:Z6,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:eh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Ki("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Ki("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Pq(t){if(t==null)return null;if(typeof t=="number"){for(const n in md){const i=md[n];if(i.chainId===t)return{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress||null,_defaultProvider:i._defaultProvider||null}}return{chainId:t,name:"unknown"}}if(typeof t=="string"){const n=md[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=md[t.name];if(!e)return typeof t.chainId!="number"&&Y6.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&Y6.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(Iq(e._defaultProvider)?r=e._defaultProvider.renetwork(t):r=e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:r}}const Rq="web/5.7.1";var Mq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};function Oq(t,e){return Mq(this,void 0,void 0,function*(){e==null&&(e={});const r={method:e.method||"GET",headers:e.headers||{},body:e.body||void 0};if(e.skipFetchSetup!==!0&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),e.fetchOptions!=null){const o=e.fetchOptions;o.mode&&(r.mode=o.mode),o.cache&&(r.cache=o.cache),o.credentials&&(r.credentials=o.credentials),o.redirect&&(r.redirect=o.redirect),o.referrer&&(r.referrer=o.referrer)}const n=yield fetch(t,r),i=yield n.arrayBuffer(),s={};return n.headers.forEach?n.headers.forEach((o,a)=>{s[a.toLowerCase()]=o}):n.headers.keys().forEach(o=>{s[o.toLowerCase()]=n.headers.get(o)}),{headers:s,statusCode:n.status,statusMessage:n.statusText,body:X(new Uint8Array(i))}})}var Nq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Kn=new W(Rq);function e5(t){return new Promise(e=>{setTimeout(e,t)})}function _s(t,e){if(t==null)return null;if(typeof t=="string")return t;if(Oi(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return ps(t)}catch{}return Q(t)}return t}function $q(t){return Ke(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function C9(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;Kn.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);const i=typeof t=="object"?t.throttleCallback:null,s=typeof t=="object"&&typeof t.throttleSlotInterval=="number"?t.throttleSlotInterval:100;Kn.assertArgument(s>0&&s%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",s);const o=typeof t=="object"?!!t.errorPassThrough:!1,a={};let l=null;const c={method:"GET"};let f=!1,u=2*60*1e3;if(typeof t=="string")l=t;else if(typeof t=="object"){if((t==null||t.url==null)&&Kn.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const w in t.headers)a[w.toLowerCase()]={key:w,value:String(t.headers[w])},["if-none-match","if-modified-since"].indexOf(w.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&Kn.throwError("basic authentication requires a secure https url",W.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const w=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+gx(Ke(w))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=ar(t.fetchOptions))}const h=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),y=l?l.match(h):null;if(y)try{const w={statusCode:200,statusMessage:"OK",headers:{"content-type":y[1]||"text/plain"},body:y[2]?px(y[3]):$q(y[3])};let E=w.body;return r&&(E=r(w.body,w)),Promise.resolve(E)}catch(w){Kn.throwError("processing response error",W.errors.SERVER_ERROR,{body:_s(y[1],y[2]),error:w,requestBody:null,requestMethod:"GET",url:l})}e&&(c.method="POST",c.body=e,a["content-type"]==null&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),a["content-length"]==null&&(a["content-length"]={key:"Content-Length",value:String(e.length)}));const g={};Object.keys(a).forEach(w=>{const E=a[w];g[E.key]=E.value}),c.headers=g;const p=function(){let w=null;return{promise:new Promise(function(P,M){u&&(w=setTimeout(()=>{w!=null&&(w=null,M(Kn.makeError("timeout",W.errors.TIMEOUT,{requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){w!=null&&(clearTimeout(w),w=null)}}}(),k=function(){return Nq(this,void 0,void 0,function*(){for(let w=0;w=300)&&(p.cancel(),Kn.throwError("bad response",W.errors.SERVER_ERROR,{status:E.statusCode,headers:E.headers,body:_s(A,E.headers?E.headers["content-type"]:null),requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,url:l})),r)try{const P=yield r(A,E);return p.cancel(),P}catch(P){if(P.throttleRetry&&w{let a=null;if(s!=null)try{a=JSON.parse(ps(s))}catch(l){Kn.throwError("invalid JSON",W.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=Ke(e);const s=typeof t=="string"?{url:t}:ar(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=ar(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return C9(t,i,n)}function ea(t,e){return e||(e={}),e=ar(e),e.floor==null&&(e.floor=0),e.ceiling==null&&(e.ceiling=1e4),e.interval==null&&(e.interval=250),new Promise(function(r,n){let i=null,s=!1;const o=()=>s?!1:(s=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout(()=>{o()&&n(new Error("timeout"))},e.timeout));const a=e.retryLimit;let l=0;function c(){return t().then(function(f){if(f!==void 0)o()&&r(f);else if(e.oncePoll)e.oncePoll.once("poll",c);else if(e.onceBlock)e.onceBlock.once("block",c);else if(!s){if(l++,l>a){o()&&n(new Error("retry limit reached"));return}let u=e.interval*parseInt(String(Math.random()*Math.pow(2,l)));ue.ceiling&&(u=e.ceiling),setTimeout(c,u)}return null},function(f){o()&&n(f)})}c()})}var th="qpzry9x8gf2tvdw0s3jn54khce6mua7l",Lp={};for(var xd=0;xd>25;return(t&33554431)<<5^-(e>>0&1)&996825010^-(e>>1&1)&642813549^-(e>>2&1)&513874426^-(e>>3&1)&1027748829^-(e>>4&1)&705979059}function E9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=Il(e)^n>>5}for(e=Il(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=E9(t);if(typeof n=="string")throw new Error(n);for(var i=t+"1",s=0;s>5)throw new Error("Non 5-bit word");n=Il(n)^o,i+=th.charAt(o)}for(s=0;s<6;++s)n=Il(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=th.charAt(a)}return i}function S9(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var r=t.toLowerCase(),n=t.toUpperCase();if(t!==r&&t!==n)return"Mixed-case string "+t;t=r;var i=t.lastIndexOf("1");if(i===-1)return"No separator character for "+t;if(i===0)return"Missing prefix for "+t;var s=t.slice(0,i),o=t.slice(i+1);if(o.length<6)return"Data too short";var a=E9(s);if(typeof a=="string")return a;for(var l=[],c=0;c=o.length)&&l.push(u)}return a!==1?"Invalid checksum for "+t:{prefix:s,words:l}}function Bq(){var t=S9.apply(null,arguments);if(typeof t=="object")return t}function Lq(t){var e=S9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function d1(t,e,r,n){for(var i=0,s=0,o=(1<=r;)s-=r,a.push(i>>s&o);if(n)s>0&&a.push(i<=e)return"Excess padding";if(i<this.data(u,!0);return e.transaction={hash:o,type:c,accessList:de.allowNull(this.accessList.bind(this),null),blockHash:de.allowNull(o,null),blockNumber:de.allowNull(l,null),transactionIndex:de.allowNull(l,null),confirmations:de.allowNull(l,null),from:r,gasPrice:de.allowNull(n),maxPriorityFeePerGas:de.allowNull(n),maxFeePerGas:de.allowNull(n),gasLimit:n,to:de.allowNull(r,null),value:n,nonce:l,data:s,r:de.allowNull(this.uint256),s:de.allowNull(this.uint256),v:de.allowNull(l),creates:de.allowNull(r,null),raw:de.allowNull(s)},e.transactionRequest={from:de.allowNull(r),nonce:de.allowNull(l),gasLimit:de.allowNull(n),gasPrice:de.allowNull(n),maxPriorityFeePerGas:de.allowNull(n),maxFeePerGas:de.allowNull(n),to:de.allowNull(r),value:de.allowNull(n),data:de.allowNull(f),type:de.allowNull(l),accessList:de.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:de.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:de.allowNull(this.address,null),from:de.allowNull(this.address,null),contractAddress:de.allowNull(r,null),transactionIndex:l,root:de.allowNull(a),gasUsed:n,logsBloom:de.allowNull(s),blockHash:o,transactionHash:o,logs:de.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:de.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:de.allowNull(n),status:de.allowNull(l),type:c},e.block={hash:de.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:de.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:de.allowNull(r),extraData:s,transactions:de.allowNull(de.arrayOf(o)),baseFeePerGas:de.allowNull(n)},e.blockWithTransactions=ar(e.block),e.blockWithTransactions.transactions=de.allowNull(de.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:de.allowNull(i,void 0),toBlock:de.allowNull(i,void 0),blockHash:de.allowNull(o,void 0),address:de.allowNull(r,void 0),topics:de.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:de.allowNull(l),blockHash:de.allowNull(o),transactionIndex:l,removed:de.allowNull(this.boolean.bind(this)),address:r,data:de.allowFalsish(s,"0x"),topics:de.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Na(e||[])}number(e){return e==="0x"?0:q.from(e).toNumber()}type(e){return e==="0x"||e==null?0:q.from(e).toNumber()}bigNumber(e){return q.from(e)}boolean(e){if(typeof e=="boolean")return e;if(typeof e=="string"){if(e=e.toLowerCase(),e==="true")return!0;if(e==="false")return!1}throw new Error("invalid boolean - "+e)}hex(e,r){return typeof e=="string"&&(!r&&e.substring(0,2)!=="0x"&&(e="0x"+e),Le(e))?e.toLowerCase():Bc.throwArgumentError("invalid hash","value",e)}data(e,r){const n=this.hex(e,r);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}address(e){return Se(e)}callAddress(e){if(!Le(e,32))return null;const r=Se(Kt(e,12));return r===iu?null:r}contractAddress(e){return fx(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"||Le(e))return oi(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return Ni(n)!==32?Bc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=q.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!Le(e))throw new Error("invalid uint256");return et(e,32)}_block(e,r){e.author!=null&&e.miner==null&&(e.miner=e.author);const n=e._difficulty!=null?e._difficulty:e.difficulty,i=de.check(r,e);return i._difficulty=n==null?null:q.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return de.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&q.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 r=de.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;Le(n)&&(n=q.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),Le(n)&&(n=q.from(n).toNumber()),typeof n!="number"&&r.v!=null&&(n=(r.v-35)/2,n<0&&(n=0),n=parseInt(n)),typeof n!="number"&&(n=0),r.chainId=n}return r.blockHash&&r.blockHash.replace(/0/g,"")==="x"&&(r.blockHash=null),r}transaction(e){return o9(e)}receiptLog(e){return de.check(this.formats.receiptLog,e)}receipt(e){const r=de.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=q.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&Bc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):Bc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&Bc.throwArgumentError("invalid root hash","value.root",r.root);return r.status!=null&&(r.byzantium=!0),r}topics(e){return Array.isArray(e)?e.map(r=>this.topics(r)):e!=null?this.hash(e,!0):null}filter(e){return de.check(this.formats.filter,e)}filterLog(e){return de.check(this.formats.filterLog,e)}static check(e,r){const n={};for(const i in e)try{const s=e[i](r[i]);s!==void 0&&(n[i]=s)}catch(s){throw s.checkKey=i,s.checkValue=r[i],s}return n}static allowNull(e,r){return function(n){return n==null?r:e(n)}}static allowFalsish(e,r){return function(n){return n?e(n):r}}static arrayOf(e){return function(r){if(!Array.isArray(r))throw new Error("not an array");const n=[];return r.forEach(function(i){n.push(e(i))}),n}}}var we=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const Pe=new W(Tu),qq=10;function r5(t){return t==null?"null":(Ni(t)!==32&&Pe.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function n5(t){for(t=t.slice();t.length>0&&t[t.length-1]==null;)t.pop();return t.map(e=>{if(Array.isArray(e)){const r={};e.forEach(i=>{r[r5(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return r5(e)}).join("&")}function Hq(t){return t===""?[]:t.split(/&/g).map(e=>{if(e==="")return[];const r=e.split("|").map(n=>n==="null"?null:n);return r.length===1?r[0]:r})}function Va(t){if(typeof t=="string"){if(t=t.toLowerCase(),Ni(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+n5(t);if(qU.isForkEvent(t))throw Pe.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+n5(t.topics||[])}throw new Error("invalid event - "+t)}function Lc(){return new Date().getTime()}function i5(t){return new Promise(e=>{setTimeout(e,t)})}const Wq=["block","network","pending","poll"];let Gq=class{constructor(e,r,n){ne(this,"tag",e),ne(this,"listener",r),ne(this,"once",n),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 r=e[1],n=Hq(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||Wq.indexOf(this.tag)>=0}};const Kq={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 Kv(t){return et(q.from(t).toHexString(),32)}function s5(t){return Yl.encode(Ze([t,Kt(ds(ds(t)),0,4)]))}const k9=new RegExp("^(ipfs)://(.*)$","i"),o5=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),k9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Gd(t,e){try{return ps(lu(t,e))}catch{}return null}function lu(t,e){if(t==="0x")return null;const r=q.from(Kt(t,e,e+32)).toNumber(),n=q.from(Kt(t,r,r+32)).toNumber();return Kt(t,r+32,r+32+n)}function Jv(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Pe.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function a5(t){const e=X(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function Jq(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}function A9(t){const e=[];let r=0;for(let n=0;nq.from(e).eq(1)).catch(e=>{if(e.code===W.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e})),this._supportsEip2544}_fetch(e,r){return we(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:Wr([e,pf(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=Wr(["0x9061b923",A9([A7(this.name),n.data])]));try{let s=yield this.provider.call(n);return X(s).length%32===4&&Pe.throwError("resolver threw error",W.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=lu(s,0)),s}catch(s){if(s.code===W.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return we(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?lu(n,0):null})}_getAddress(e,r){const n=Kq[String(e)];if(n==null&&Pe.throwError(`unsupported coin type: ${e}`,W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=X(r);if(n.p2pkh!=null){const s=r.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return s5(Ze([[n.p2pkh],"0x"+s[2]]))}}if(n.p2sh!=null){const s=r.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(s){const o=parseInt(s[1],16);if(s[2].length===o*2&&o>=1&&o<=75)return s5(Ze([[n.p2sh],"0x"+s[2]]))}}if(n.prefix!=null){const s=i[1];let o=i[0];if(o===0?s!==20&&s!==32&&(o=-1):o=-1,o>=0&&i.length===2+s&&s>=1&&s<=75){const a=t5.toWords(i.slice(2));return a.unshift(o),t5.encode(n.prefix,a)}}return null}getAddress(e){return we(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Wl?null:this.provider.formatter.callAddress(i)}catch(i){if(i.code===W.errors.CALL_EXCEPTION)return null;throw i}const r=yield this._fetchBytes("0xf1cb7e06",Kv(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Pe.throwError("invalid or unsupported coin data",W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return we(this,void 0,void 0,function*(){const e=[{type:"name",content:this.name}];try{const r=yield this.getText("avatar");if(r==null)return null;for(let n=0;no[l])}return Pe.throwError("invalid or unsupported content hash data",W.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return we(this,void 0,void 0,function*(){let r=Ke(e);r=Ze([Kv(64),Kv(r.length),r]),r.length%32!==0&&(r=Ze([r,et("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Q(r));return n==null||n==="0x"?null:ps(n)})}}let Yv=null,Yq=1;class Rx extends Ao{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ne(this,"anyNetwork",e==="any"),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch(r=>{}),this._ready().catch(r=>{});else{const r=ri(new.target,"getNetwork")(e);r?(ne(this,"_network",r),this.emit("network",r,null)):Pe.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return we(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||Pe.throwError("no network detected",W.errors.UNKNOWN_ERROR,{}),this._network==null&&(this.anyNetwork?this._network=e:ne(this,"_network",e),this.emit("network",e,null))}return this._network})}get ready(){return ea(()=>this._ready().then(e=>e,e=>{if(!(e.code===W.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return Yv==null&&(Yv=new de),Yv}static getNetwork(e){return Pq(e??"homestead")}ccipReadFetch(e,r,n){return we(this,void 0,void 0,function*(){if(this.disableCcipRead||n.length===0)return null;const i=e.to.toLowerCase(),s=r.toLowerCase(),o=[];for(let a=0;a=0?null:JSON.stringify({data:s,sender:i}),u=yield _u({url:c,errorPassThrough:!0},f,(y,g)=>(y.status=g.statusCode,y));if(u.data)return u.data;const h=u.message||"unknown error";if(u.status>=400&&u.status<500)return Pe.throwError(`response not found during CCIP fetch: ${h}`,W.errors.SERVER_ERROR,{url:l,errorMessage:h});o.push(h)}return Pe.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,W.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return we(this,void 0,void 0,function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const i=this._internalBlockNumber;try{const s=yield i;if(Lc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=Lc(),n=nt({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(i=>null,i=>i)}).then(({blockNumber:i,networkError:s})=>{if(s)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),s;const o=Lc();return i=q.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return we(this,void 0,void 0,function*(){const e=Yq++,r=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(i){this.emit("error",i);return}if(this._setFastBlockNumber(n),this.emit("poll",e,n),n===this._lastBlockNumber){this.emit("didPoll",e);return}if(this._emitted.block===-2&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Pe.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Pe.makeError("network block skew detected",W.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let i=this._emitted.block+1;i<=n;i++)this.emit("block",i);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(i=>{if(i==="block")return;const s=this._emitted[i];s!=="pending"&&n-s>12&&delete this._emitted[i]})),this._lastBlockNumber===-2&&(this._lastBlockNumber=n-1),this._events.forEach(i=>{switch(i.type){case"tx":{const s=i.hash;let o=this.getTransactionReceipt(s).then(a=>(!a||a.blockNumber==null||(this._emitted["t:"+s]=a.blockNumber,this.emit(s,a)),null)).catch(a=>{this.emit("error",a)});r.push(o);break}case"filter":{if(!i._inflight){i._inflight=!0,i._lastBlockNumber===-2&&(i._lastBlockNumber=n-1);const s=i.filter;s.fromBlock=i._lastBlockNumber+1,s.toBlock=n;const o=s.toBlock-this._maxFilterBlockRange;o>s.fromBlock&&(s.fromBlock=o),s.fromBlock<0&&(s.fromBlock=0);const a=this.getLogs(s).then(l=>{i._inflight=!1,l.length!==0&&l.forEach(c=>{c.blockNumber>i._lastBlockNumber&&(i._lastBlockNumber=c.blockNumber),this._emitted["b:"+c.blockHash]=c.blockNumber,this._emitted["t:"+c.transactionHash]=c.blockNumber,this.emit(s,c)})}).catch(l=>{this.emit("error",l),i._inflight=!1});r.push(a)}break}}}),this._lastBlockNumber=n,Promise.all(r).then(()=>{this.emit("didPoll",e)}).catch(i=>{this.emit("error",i)})})}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return we(this,void 0,void 0,function*(){return Pe.throwError("provider does not support network detection",W.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return we(this,void 0,void 0,function*(){const e=yield this._ready(),r=yield this.detectNetwork();if(e.chainId!==r.chainId){if(this.anyNetwork)return this._network=r,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",r,e),yield i5(0),this._network;const n=Pe.makeError("underlying network changed",W.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:r});throw this.emit("error",n),n}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=Lc();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(r=>((this._fastBlockNumber==null||r>this._fastBlockNumber)&&(this._fastBlockNumber=r),this._fastBlockNumber))),this._fastBlockNumberPromise}_setFastBlockNumber(e){this._fastBlockNumber!=null&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,r,n){return we(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return we(this,void 0,void 0,function*(){const s=yield this.getTransactionReceipt(e);return(s?s.confirmations:0)>=r?s:new Promise((o,a)=>{const l=[];let c=!1;const f=function(){return c?!0:(c=!0,l.forEach(h=>{h()}),!1)},u=h=>{h.confirmations{this.removeListener(e,u)}),i){let h=i.startBlock,y=null;const g=p=>we(this,void 0,void 0,function*(){c||(yield i5(1e3),this.getTransactionCount(i.from).then(k=>we(this,void 0,void 0,function*(){if(!c){if(k<=i.nonce)h=p;else{{const w=yield this.getTransaction(e);if(w&&w.blockNumber!=null)return}for(y==null&&(y=h-3,y{c||this.once("block",g)}))});if(c)return;this.once("block",g),l.push(()=>{this.removeListener("block",g)})}if(typeof n=="number"&&n>0){const h=setTimeout(()=>{f()||a(Pe.makeError("timeout exceeded",W.errors.TIMEOUT,{timeout:n}))},n);h.unref&&h.unref(),l.push(()=>{clearTimeout(h)})}})})}getBlockNumber(){return we(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return we(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return q.from(e)}catch(r){return Pe.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return we(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield nt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return q.from(i)}catch(s){return Pe.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return we(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield nt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return q.from(i).toNumber()}catch(s){return Pe.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return we(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield nt({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return Q(i)}catch(s){return Pe.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return we(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield nt({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>oi(o))}),s=yield this.perform("getStorageAt",i);try{return Q(s)}catch(o){return Pe.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&Ni(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Pe.throwError("Transaction hash mismatch from Provider.sendTransaction.",W.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>we(this,void 0,void 0,function*(){s==null&&(s=1),o==null&&(o=0);let a;s!==0&&n!=null&&(a={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n});const l=yield this._waitForTransaction(e.hash,s,o,a);return l==null&&s===0?null:(this._emitted["t:"+e.hash]=l.blockNumber,l.status===0&&Pe.throwError("transaction failed",W.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return we(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>Q(s)),n=this.formatter.transaction(e);n.confirmations==null&&(n.confirmations=0);const i=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const s=yield this.perform("sendTransaction",{signedTransaction:r});return this._wrapTransaction(n,s,i)}catch(s){throw s.transaction=n,s.transactionHash=n.hash,s}})}_getTransactionRequest(e){return we(this,void 0,void 0,function*(){const r=yield e,n={};return["from","to"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?this._getAddress(s):null))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?q.from(s):null))}),["type"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s??null))}),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach(i=>{r[i]!=null&&(n[i]=Promise.resolve(r[i]).then(s=>s?Q(s):null))}),this.formatter.transactionRequest(yield nt(n))})}_getFilter(e){return we(this,void 0,void 0,function*(){e=yield e;const r={};return e.address!=null&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach(n=>{e[n]!=null&&(r[n]=e[n])}),["fromBlock","toBlock"].forEach(n=>{e[n]!=null&&(r[n]=this._getBlockTag(e[n]))}),this.formatter.filter(yield nt(r))})}_call(e,r,n){return we(this,void 0,void 0,function*(){n>=qq&&Pe.throwError("CCIP read exceeded maximum redirections",W.errors.SERVER_ERROR,{redirects:n,transaction:e});const i=e.to,s=yield this.perform("call",{transaction:e,blockTag:r});if(n>=0&&r==="latest"&&i!=null&&s.substring(0,10)==="0x556f1830"&&Ni(s)%32===4)try{const o=Kt(s,4),a=Kt(o,0,32);q.from(a).eq(i)||Pe.throwError("CCIP Read sender did not match",W.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:s});const l=[],c=q.from(Kt(o,32,64)).toNumber(),f=q.from(Kt(o,c,c+32)).toNumber(),u=Kt(o,c+32);for(let w=0;wwe(this,void 0,void 0,function*(){const s=yield this.perform("getBlock",i);if(s==null)return i.blockHash!=null&&this._emitted["b:"+i.blockHash]==null||i.blockTag!=null&&n>this._emitted.block?null:void 0;if(r){let o=null;for(let l=0;lthis._wrapTransaction(l)),a}return this.formatter.block(s)}),{oncePoll:this})})}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return we(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return ea(()=>we(this,void 0,void 0,function*(){const n=yield this.perform("getTransaction",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;const i=this.formatter.transactionResponse(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return this._wrapTransaction(i)}),{oncePoll:this})})}getTransactionReceipt(e){return we(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return ea(()=>we(this,void 0,void 0,function*(){const n=yield this.perform("getTransactionReceipt",r);if(n==null)return this._emitted["t:"+e]==null?null:void 0;if(n.blockHash==null)return;const i=this.formatter.receipt(n);if(i.blockNumber==null)i.confirmations=0;else if(i.confirmations==null){let o=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-i.blockNumber+1;o<=0&&(o=1),i.confirmations=o}return i}),{oncePoll:this})})}getLogs(e){return we(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield nt({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),de.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return we(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return we(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Pe.throwArgumentError("invalid BlockTag","blockTag",e);let r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return r+=e,r<0&&(r=0),this.formatter.blockTag(r)}return this.formatter.blockTag(e)})}getResolver(e){return we(this,void 0,void 0,function*(){let r=e;for(;;){if(r===""||r==="."||e!=="eth"&&r==="eth")return null;const n=yield this._getResolver(r,"getResolver");if(n!=null){const i=new jp(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return we(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Pe.throwError("network does not support ENS",W.errors.UNSUPPORTED_OPERATION,{operation:r,network:n.name});try{const i=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+pf(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return we(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(Le(e))throw n}typeof e!="string"&&Pe.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return we(this,void 0,void 0,function*(){e=yield e,e=this.formatter.address(e);const r=e.substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"lookupAddress");if(n==null)return null;const i=Gd(yield this.call({to:n,data:"0x691f3431"+pf(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return we(this,void 0,void 0,function*(){let r=null;if(Le(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new jp(this,o,s);try{const a=yield r.getAvatar();if(a)return a.url}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a}try{const a=Gd(yield this.call({to:o,data:"0x691f3431"+pf(s).substring(2)}),0);r=yield this.getResolver(a)}catch(a){if(a.code!==W.errors.CALL_EXCEPTION)throw a;return null}}else if(r=yield this.getResolver(e),!r)return null;const n=yield r.getAvatar();return n==null?null:n.url})}perform(e,r){return Pe.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_stopEvent(e){this.polling=this._events.filter(r=>r.pollable()).length>0}_addEventListener(e,r,n){const i=new Gq(Va(e),r,n);return this._events.push(i),this._startEvent(i),this}on(e,r){return this._addEventListener(e,r,!1)}once(e,r){return this._addEventListener(e,r,!0)}emit(e,...r){let n=!1,i=[],s=Va(e);return this._events=this._events.filter(o=>o.tag!==s?!0:(setTimeout(()=>{o.listener.apply(this,r)},0),n=!0,o.once?(i.push(o),!1):!0)),i.forEach(o=>{this._stopEvent(o)}),n}listenerCount(e){if(!e)return this._events.length;let r=Va(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=Va(e);return this._events.filter(n=>n.tag===r).map(n=>n.listener)}off(e,r){if(r==null)return this.removeAllListeners(e);const n=[];let i=!1,s=Va(e);return this._events=this._events.filter(o=>o.tag!==s||o.listener!=r||i?!0:(i=!0,n.push(o),!1)),n.forEach(o=>{this._stopEvent(o)}),this}removeAllListeners(e){let r=[];if(e==null)r=this._events,this._events=[];else{const n=Va(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var Hi=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const sr=new W(Tu),Qq=["call","estimateGas"];function mf(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=Le(t.data)?t.data:null;if(!e||r)return{message:t.message,data:r}}if(typeof t=="object"){for(const r in t){const n=mf(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return mf(JSON.parse(t),e)}catch{}return null}function _9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=mf(e,!0);if(s)return s.data;sr.throwError("missing revert data in call exception; Transaction reverted without a reason string",W.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:e})}if(t==="estimateGas"){let s=mf(e.body,!1);s==null&&(s=mf(e,!1)),s&&sr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{reason:s.message,method:t,transaction:n,error:e})}let i=e.message;throw e.code===W.errors.SERVER_ERROR&&e.error&&typeof e.error.message=="string"?i=e.error.message:typeof e.body=="string"?i=e.body:typeof e.responseText=="string"&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&sr.throwError("insufficient funds for intrinsic transaction cost",W.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&sr.throwError("nonce has already been used",W.errors.NONCE_EXPIRED,{error:e,method:t,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&sr.throwError("replacement fee too low",W.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&sr.throwError("legacy pre-eip-155 transactions not supported",W.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),Qq.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&sr.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",W.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:n}),e}function l5(t){return new Promise(function(e){setTimeout(e,t)})}function Xq(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function jc(t){return t&&t.toLowerCase()}const Fp={};class T9 extends vo{constructor(e,r,n){if(super(),e!==Fp)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ne(this,"provider",r),n==null&&(n=0),typeof n=="string"?(ne(this,"_address",this.provider.formatter.address(n)),ne(this,"_index",null)):typeof n=="number"?(ne(this,"_index",n),ne(this,"_address",null)):sr.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return sr.throwError("cannot alter JSON-RPC Signer connection",W.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Zq(Fp,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&&sr.throwError("unknown account #"+this._index,W.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=ar(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=ar(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>Hi(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&sr.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),nt({tx:nt(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&sr.throwArgumentError("from address mismatch","transaction",e):n.from=i;const s=this.provider.constructor.hexlifyTransaction(n,{from:!0});return this.provider.send("eth_sendTransaction",[s]).then(o=>o,o=>(typeof o.message=="string"&&o.message.match(/user denied/i)&&sr.throwError("user rejected transaction",W.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),_9("sendTransaction",o,s)))})}signTransaction(e){return sr.throwError("signing transactions is unsupported",W.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return Hi(this,void 0,void 0,function*(){const r=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(e);try{return yield ea(()=>Hi(this,void 0,void 0,function*(){const i=yield this.provider.getTransaction(n);if(i!==null)return this.provider._wrapTransaction(i,n,r)}),{oncePoll:this.provider})}catch(i){throw i.transactionHash=n,i}})}signMessage(e){return Hi(this,void 0,void 0,function*(){const r=typeof e=="string"?Ke(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Q(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&sr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return Hi(this,void 0,void 0,function*(){const r=typeof e=="string"?Ke(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),Q(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&sr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return Hi(this,void 0,void 0,function*(){const i=yield ir.resolveNames(e,r,n,o=>this.provider.resolveName(o)),s=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[s.toLowerCase(),JSON.stringify(ir.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&sr.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_signTypedData",from:s,messageData:{domain:i.domain,types:r,value:i.value}}),o}})}unlock(e){return Hi(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class Zq extends T9{sendTransaction(e){return this.sendUncheckedTransaction(e).then(r=>({hash:r,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:n=>this.provider.waitForTransaction(r,n)}))}}const eH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let Da=class extends Rx{constructor(e,r){let n=r;n==null&&(n=new Promise((i,s)=>{setTimeout(()=>{this.detectNetwork().then(o=>{i(o)},o=>{s(o)})},0)})),super(n),e||(e=ri(this.constructor,"defaultUrl")()),typeof e=="string"?ne(this,"connection",Object.freeze({url:e})):ne(this,"connection",Object.freeze(ar(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 Hi(this,void 0,void 0,function*(){yield l5(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch{try{e=yield this.send("net_version",[])}catch{}}if(e!=null){const r=ri(this.constructor,"getNetwork");try{return r(q.from(e).toNumber())}catch(n){return sr.throwError("could not detect network",W.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return sr.throwError("could not detect network",W.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new T9(Fp,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then(e=>e.map(r=>this.formatter.address(r)))}send(e,r){const n={method:e,params:r,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:$i(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=_u(this.connection,JSON.stringify(n),Xq).then(o=>(this.emit("debug",{action:"response",request:n,response:o,provider:this}),o),o=>{throw this.emit("debug",{action:"response",error:o,request:n,provider:this}),o});return i&&(this._cache[e]=s,setTimeout(()=>{this._cache[e]=null},0)),s}prepareRequest(e,r){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[jc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[jc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[jc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[jc(r.address),et(r.position,32),r.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[r.signedTransaction]];case"getBlock":return r.blockTag?["eth_getBlockByNumber",[r.blockTag,!!r.includeTransactions]]:r.blockHash?["eth_getBlockByHash",[r.blockHash,!!r.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[r.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[r.transactionHash]];case"call":return["eth_call",[ri(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[ri(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=jc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return Hi(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&q.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=ar(r),r.transaction=ar(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&sr.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return _9(e,i,r)}})}_startEvent(e){e.tag==="pending"&&this._startPending(),super._startEvent(e)}_startPending(){if(this._pendingFilter!=null)return;const e=this,r=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=r,r.then(function(n){function i(){e.send("eth_getFilterChanges",[n]).then(function(s){if(e._pendingFilter!=r)return null;let o=Promise.resolve();return s.forEach(function(a){e._emitted["t:"+a.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(a).then(function(l){return e.emit("pending",l),null})})}),o.then(function(){return l5(1e3)})}).then(function(){if(e._pendingFilter!=r){e.send("eth_uninstallFilter",[n]);return}return setTimeout(function(){i()},0),null}).catch(s=>{})}return i(),n}).catch(n=>{})}_stopEvent(e){e.tag==="pending"&&this.listenerCount("pending")===0&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,r){const n=ar(eH);if(r)for(const s in r)r[s]&&(n[s]=!0);ax(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=oi(q.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=Q(e[s]))}),e.accessList&&(i.accessList=Na(e.accessList)),i}};var tH=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(o){o(s)})}return new(r||(r=Promise))(function(s,o){function a(f){try{c(n.next(f))}catch(u){o(u)}}function l(f){try{c(n.throw(f))}catch(u){o(u)}}function c(f){f.done?s(f.value):i(f.value).then(a,l)}c((n=n.apply(t,e||[])).next())})};const rH=new W(Tu);class rh extends Da{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return tH(this,void 0,void 0,function*(){let r=this.network;return r==null&&(r=yield e.detectNetwork.call(this),r||rH.throwError("no network detected",W.errors.UNKNOWN_ERROR,{}),this._network==null&&(ne(this,"_network",r),this.emit("network",r,null))),r})}}const c5=new W(Tu);let nH=1;function f5(t,e){const r="Web3LegacyFetcher";return function(n,i){const s={method:n,params:i,id:nH++,jsonrpc:"2.0"};return new Promise((o,a)=>{this.emit("debug",{action:"request",fetcher:r,request:$i(s),provider:this}),e(s,(l,c)=>{if(l)return this.emit("debug",{action:"response",fetcher:r,error:l,request:s,provider:this}),a(l);if(this.emit("debug",{action:"response",fetcher:r,request:s,response:c,provider:this}),c.error){const f=new Error(c.error.message);return f.code=c.error.code,f.data=c.error.data,a(f)}o(c.result)})})}}function iH(t){return function(e,r){r==null&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:$i(n),provider:this}),t.request(n).then(i=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:i,provider:this}),i),i=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:i,provider:this}),i})}}class sH extends Da{constructor(e,r){e==null&&c5.throwArgumentError("missing provider","provider",e);let n=null,i=null,s=null;typeof e=="function"?(n="unknown:",i=e):(n=e.host||e.path||"",!n&&e.isMetaMask&&(n="metamask"),s=e,e.request?(n===""&&(n="eip-1193:"),i=iH(e)):e.sendAsync?i=f5(e,e.sendAsync.bind(e)):e.send?i=f5(e,e.send.bind(e)):c5.throwArgumentError("unsupported provider","provider",e),n||(n="unknown:")),super(n,r),ne(this,"jsonRpcFetchFunc",i),ne(this,"provider",s)}send(e,r){return this.jsonRpcFetchFunc(e,r)}}const oH="solidity/5.7.0",aH=new RegExp("^bytes([0-9]+)$"),lH=new RegExp("^(u?int)([0-9]*)$"),cH=new RegExp("^(.*)\\[([0-9]*)\\]$"),fH="0000000000000000000000000000000000000000000000000000000000000000",Qa=new W(oH);function I9(t,e,r){switch(t){case"address":return r?hf(e,32):X(e);case"string":return Ke(e);case"bytes":return X(e);case"bool":return e=e?"0x01":"0x00",r?hf(e,32):X(e)}let n=t.match(lH);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!==0||i===0||i>256)&&Qa.throwArgumentError("invalid number type","type",t),r&&(i=256),e=q.from(e).toTwos(i),hf(e,i/8)}if(n=t.match(aH),n){const i=parseInt(n[1]);return(String(i)!==n[1]||i===0||i>32)&&Qa.throwArgumentError("invalid bytes type","type",t),X(e).byteLength!==i&&Qa.throwArgumentError(`invalid value for ${t}`,"value",e),r?X((e+fH).substring(0,66)):e}if(n=t.match(cH),n&&Array.isArray(e)){const i=n[1];parseInt(n[2]||String(e.length))!=e.length&&Qa.throwArgumentError(`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(I9(i,a,!0))}),Ze(o)}return Qa.throwArgumentError("invalid type","type",t)}function Ie(t,e){t.length!=e.length&&Qa.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,i){r.push(I9(n,e[i]))}),Q(Ze(r))}function ro(t,e){return xe(Ie(t,e))}function uH(t,e){return ds(Ie(t,e))}const dH="units/5.7.0",P9=new W(dH),R9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function hH(t){const e=String(t).split(".");(e.length>2||!e[0].match(/^-?[0-9]*$/)||e[1]&&!e[1].match(/^[0-9]*$/)||t==="."||t==="-.")&&P9.throwArgumentError("invalid value","value",t);let r=e[0],n="";for(r.substring(0,1)==="-"&&(n="-",r=r.substring(1));r.substring(0,1)==="0";)r=r.substring(1);r===""&&(r="0");let i="";for(e.length===2&&(i="."+(e[1]||"0"));i.length>2&&i[i.length-1]==="0";)i=i.substring(0,i.length-1);const s=[];for(;r.length;)if(r.length<=3){s.unshift(r);break}else{const o=r.length-3;s.unshift(r.substring(o)),r=r.substring(0,o)}return n+s.join(",")+i}function M9(t,e){if(typeof e=="string"){const r=R9.indexOf(e);r!==-1&&(e=3*r)}return Ud(t,e??18)}function nh(t,e){if(typeof t!="string"&&P9.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=R9.indexOf(e);r!==-1&&(e=3*r)}return hi(t,e??18)}function vH(t){return M9(t,18)}function Up(t){return nh(t,18)}const yH=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:yx,ConstructorFragment:ei,ErrorFragment:Ji,EventFragment:bi,FormatTypes:Ve,Fragment:wi,FunctionFragment:ti,HDNode:vn,Indexed:Y0,Interface:Dt,LogDescription:P7,Logger:W,ParamType:vr,RLP:CF,SigningKey:aa,get SupportedAlgorithm(){return Ql},TransactionDescription:R7,get TransactionTypes(){return Np},get UnicodeNormalizationForm(){return Di},Utf8ErrorFuncs:m7,get Utf8ErrorReason(){return tn},_TypedDataEncoder:ir,_fetchData:C9,_toEscapedUtf8String:UF,accessListify:Na,arrayify:X,base58:Yl,base64:oU,checkProperties:ax,checkResultErrors:o7,commify:hH,computeAddress:to,computeHmac:ou,computePublicKey:Ex,concat:Ze,deepCopy:$i,defaultAbiCoder:Yr,defaultPath:Xl,defineReadOnly:ne,dnsEncode:A7,entropyToMnemonic:u1,fetchJson:_u,formatBytes32String:zF,formatEther:vH,formatUnits:M9,getAccountPath:iq,getAddress:Se,getContractAddress:fx,getCreate2Address:_F,getIcapAddress:AF,getJsonWalletAddress:dq,getStatic:ri,hashMessage:s1,hexConcat:Wr,hexDataLength:Ni,hexDataSlice:Kt,hexStripZeros:QE,hexValue:oi,hexZeroPad:et,hexlify:Q,id:Vs,isAddress:u7,isBytes:ko,isBytesLike:Oi,isHexString:Le,isValidMnemonic:nq,isValidName:PU,joinSignature:Ap,keccak256:xe,mnemonicToEntropy:f1,mnemonicToSeed:h9,namehash:pf,nameprep:rU,parseBytes32String:VF,parseEther:Up,parseTransaction:o9,parseUnits:nh,poll:ea,randomBytes:Ci,recoverAddress:Ea,recoverPublicKey:t9,resolveProperties:nt,ripemd160:f9,serializeTransaction:$p,sha256:ds,sha512:KV,shallowCopy:ar,shuffled:aq,solidityKeccak256:ro,solidityPack:Ie,soliditySha256:uH,splitSignature:Ra,stripZeros:Ti,toUtf8Bytes:Ke,toUtf8CodePoints:K0,toUtf8String:ps,verifyMessage:w9,verifyTypedData:_q,zeroPad:hf},Symbol.toStringTag,{value:"Module"})),pH=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var gH=Object.freeze({__proto__:null,abi:pH});const mH=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],xH={isValidSignatureBytes32:"0x1626ba7e"};var bH=Object.freeze({__proto__:null,abi:mH,returns:xH});const wH=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var CH=Object.freeze({__proto__:null,abi:wH});const EH=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var SH=Object.freeze({__proto__:null,abi:EH});const kH=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var AH=Object.freeze({__proto__:null,abi:kH});const _H=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var TH=Object.freeze({__proto__:null,abi:_H});const IH=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var PH=Object.freeze({__proto__:null,abi:IH});const RH=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var MH=Object.freeze({__proto__:null,abi:RH});const lr={erc6492:CH,erc5719:gH,erc1271:bH,factory:SH,mainModule:AH,mainModuleUpgradable:TH,sequenceUtils:PH,requireFreshSigner:MH},OH=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:lr},Symbol.toStringTag,{value:"Module"}));function ih(){return ih=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),ke({},n)).then(i=>Ae(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),ke({},n)).then(i=>Ae(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),ke({},n)).then(i=>Ae(i).then(s=>({status:s.status}))),this.clock=n=>this.fetch(this.url("Clock"),ke({},n)).then(i=>Ae(i).then(s=>({serverTime:s.serverTime}))),this.getSequenceContext=n=>this.fetch(this.url("GetSequenceContext"),ke({},n)).then(i=>Ae(i).then(s=>({data:s.data}))),this.getAuthToken=(n,i)=>this.fetch(this.url("GetAuthToken"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,jwtToken:o.jwtToken,address:o.address,user:o.user}))),this.getAuthToken2=(n,i)=>this.fetch(this.url("GetAuthToken2"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,jwtToken:o.jwtToken,address:o.address,user:o.user}))),this.sendPasswordlessLink=(n,i)=>this.fetch(this.url("SendPasswordlessLink"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status}))),this.friendList=(n,i)=>this.fetch(this.url("FriendList"),ke(n,i)).then(s=>Ae(s).then(o=>({page:o.page,friends:o.friends}))),this.getFriendByAddress=(n,i)=>this.fetch(this.url("GetFriendByAddress"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,friend:o.friend}))),this.searchFriends=(n,i)=>this.fetch(this.url("SearchFriends"),ke(n,i)).then(s=>Ae(s).then(o=>({friends:o.friends}))),this.addFriend=(n,i)=>this.fetch(this.url("AddFriend"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,friend:o.friend}))),this.updateFriendNickname=(n,i)=>this.fetch(this.url("UpdateFriendNickname"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,friend:o.friend}))),this.removeFriend=(n,i)=>this.fetch(this.url("RemoveFriend"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status}))),this.contractCall=(n,i)=>this.fetch(this.url("ContractCall"),ke(n,i)).then(s=>Ae(s).then(o=>({returns:o.returns}))),this.decodeContractCall=(n,i)=>this.fetch(this.url("DecodeContractCall"),ke(n,i)).then(s=>Ae(s).then(o=>({call:o.call}))),this.lookupContractCallSelectors=(n,i)=>this.fetch(this.url("LookupContractCallSelectors"),ke(n,i)).then(s=>Ae(s).then(o=>({signatures:o.signatures}))),this.userStorageFetch=(n,i)=>this.fetch(this.url("UserStorageFetch"),ke(n,i)).then(s=>Ae(s).then(o=>({object:o.object}))),this.userStorageSave=(n,i)=>this.fetch(this.url("UserStorageSave"),ke(n,i)).then(s=>Ae(s).then(o=>({ok:o.ok}))),this.userStorageDelete=(n,i)=>this.fetch(this.url("UserStorageDelete"),ke(n,i)).then(s=>Ae(s).then(o=>({ok:o.ok}))),this.userStorageFetchAll=(n,i)=>this.fetch(this.url("UserStorageFetchAll"),ke(n,i)).then(s=>Ae(s).then(o=>({objects:o.objects}))),this.getMoonpayLink=(n,i)=>this.fetch(this.url("GetMoonpayLink"),ke(n,i)).then(s=>Ae(s).then(o=>({signedUrl:o.signedUrl}))),this.getSardineClientToken=n=>this.fetch(this.url("GetSardineClientToken"),ke({},n)).then(i=>Ae(i).then(s=>({token:s.token}))),this.resolveENSAddress=(n,i)=>this.fetch(this.url("ResolveENSAddress"),ke(n,i)).then(s=>Ae(s).then(o=>({address:o.address,ok:o.ok}))),this.isValidSignature=(n,i)=>this.fetch(this.url("IsValidSignature"),ke(n,i)).then(s=>Ae(s).then(o=>({isValid:o.isValid}))),this.isValidMessageSignature=(n,i)=>this.fetch(this.url("IsValidMessageSignature"),ke(n,i)).then(s=>Ae(s).then(o=>({isValid:o.isValid}))),this.isValidTypedDataSignature=(n,i)=>this.fetch(this.url("IsValidTypedDataSignature"),ke(n,i)).then(s=>Ae(s).then(o=>({isValid:o.isValid}))),this.isValidETHAuthProof=(n,i)=>this.fetch(this.url("IsValidETHAuthProof"),ke(n,i)).then(s=>Ae(s).then(o=>({isValid:o.isValid}))),this.getCoinPrices=(n,i)=>this.fetch(this.url("GetCoinPrices"),ke(n,i)).then(s=>Ae(s).then(o=>({tokenPrices:o.tokenPrices}))),this.getCollectiblePrices=(n,i)=>this.fetch(this.url("GetCollectiblePrices"),ke(n,i)).then(s=>Ae(s).then(o=>({tokenPrices:o.tokenPrices}))),this.getExchangeRate=(n,i)=>this.fetch(this.url("GetExchangeRate"),ke(n,i)).then(s=>Ae(s).then(o=>({exchangeRate:o.exchangeRate}))),this.memoryStore=(n,i)=>this.fetch(this.url("MemoryStore"),ke(n,i)).then(s=>Ae(s).then(o=>({ok:o.ok}))),this.memoryLoad=(n,i)=>this.fetch(this.url("MemoryLoad"),ke(n,i)).then(s=>Ae(s).then(o=>({value:o.value}))),this.getInviteInfo=n=>this.fetch(this.url("GetInviteInfo"),ke({},n)).then(i=>Ae(i).then(s=>({inviteInfo:s.inviteInfo}))),this.isValidAccessCode=(n,i)=>this.fetch(this.url("IsValidAccessCode"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status}))),this.internalClaimAccessCode=(n,i)=>this.fetch(this.url("InternalClaimAccessCode"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status}))),this.blockNumberAtTime=(n,i)=>this.fetch(this.url("BlockNumberAtTime"),ke(n,i)).then(s=>Ae(s).then(o=>({blocks:o.blocks}))),this.paperSessionSecret=(n,i)=>this.fetch(this.url("PaperSessionSecret"),ke(n,i)).then(s=>Ae(s).then(o=>({secret:o.secret}))),this.paperSessionSecret2=(n,i)=>this.fetch(this.url("PaperSessionSecret2"),ke(n,i)).then(s=>Ae(s).then(o=>({secret:o.secret}))),this.linkWallet=(n,i)=>this.fetch(this.url("LinkWallet"),ke(n,i)).then(s=>Ae(s).then(o=>({status:o.status,linkedWalletAddress:o.linkedWalletAddress}))),this.getLinkedWallets=(n,i)=>this.fetch(this.url("GetLinkedWallets"),ke(n,i)).then(s=>Ae(s).then(o=>({linkedWallets:o.linkedWallets}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const ke=(t={},e={})=>({method:"POST",headers:ih({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Ae=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r}),u5=typeof global=="object"?global.fetch:window.fetch;class Kd extends O9{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,u5),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(i,s)=>{const o={},a=this.jwtAuth,l=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),l&&l.length>0&&(o["X-Access-Key"]=l),s.headers=ih({},s.headers,o),u5(i,s)},this.fetch=this._fetch}}const LH=Object.freeze(Object.defineProperty({__proto__:null,API:O9,SequenceAPIClient:Kd,SortOrder:BH,WebRPCSchemaHash:DH,WebRPCSchemaVersion:$H,WebRPCVersion:NH},Symbol.toStringTag,{value:"Module"})),N9="3.7.5",jH=N9,FH=typeof atob=="function",UH=typeof btoa=="function",mc=typeof Buffer=="function",d5=typeof TextDecoder=="function"?new TextDecoder:void 0,h5=typeof TextEncoder=="function"?new TextEncoder:void 0,zH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Kc=Array.prototype.slice.call(zH),bd=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(Kc),VH=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Er=String.fromCharCode.bind(String),v5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),$9=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),D9=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),B9=t=>{let e,r,n,i,s="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,s+=Kc[e>>18&63]+Kc[e>>12&63]+Kc[e>>6&63]+Kc[e&63]}return o?s.slice(0,o-3)+"===".substring(o):s},Mx=UH?t=>btoa(t):mc?t=>Buffer.from(t,"binary").toString("base64"):B9,zp=mc?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,i=t.length;ne?$9(zp(t)):zp(t),qH=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Er(192|e>>>6)+Er(128|e&63):Er(224|e>>>12&15)+Er(128|e>>>6&63)+Er(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Er(240|e>>>18&7)+Er(128|e>>>12&63)+Er(128|e>>>6&63)+Er(128|e&63)}},HH=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,L9=t=>t.replace(HH,qH),y5=mc?t=>Buffer.from(t,"utf8").toString("base64"):h5?t=>zp(h5.encode(t)):t=>Mx(L9(t)),Pl=(t,e=!1)=>e?$9(y5(t)):y5(t),p5=t=>Pl(t,!0),WH=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,GH=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Er((r>>>10)+55296)+Er((r&1023)+56320);case 3:return Er((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Er((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},j9=t=>t.replace(WH,GH),F9=t=>{if(t=t.replace(/\s+/g,""),!VH.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,i;for(let s=0;s>16&255):i===64?Er(e>>16&255,e>>8&255):Er(e>>16&255,e>>8&255,e&255);return r},Ox=FH?t=>atob(D9(t)):mc?t=>Buffer.from(t,"base64").toString("binary"):F9,U9=mc?t=>v5(Buffer.from(t,"base64")):t=>v5(Ox(t).split("").map(e=>e.charCodeAt(0))),z9=t=>U9(V9(t)),KH=mc?t=>Buffer.from(t,"base64").toString("utf8"):d5?t=>d5.decode(U9(t)):t=>j9(Ox(t)),V9=t=>D9(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Vp=t=>KH(V9(t)),JH=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},q9=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),H9=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,q9(r));t("fromBase64",function(){return Vp(this)}),t("toBase64",function(e){return Pl(this,e)}),t("toBase64URI",function(){return Pl(this,!0)}),t("toBase64URL",function(){return Pl(this,!0)}),t("toUint8Array",function(){return z9(this)})},W9=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,q9(r));t("toBase64",function(e){return Jd(this,e)}),t("toBase64URI",function(){return Jd(this,!0)}),t("toBase64URL",function(){return Jd(this,!0)})},YH=()=>{H9(),W9()},g5={version:N9,VERSION:jH,atob:Ox,atobPolyfill:F9,btoa:Mx,btoaPolyfill:B9,fromBase64:Vp,toBase64:Pl,encode:Pl,encodeURI:p5,encodeURL:p5,utob:L9,btou:j9,decode:Vp,isValid:JH,fromUint8Array:Jd,toUint8Array:z9,extendString:H9,extendUint8Array:W9,extendBuiltins:YH};var qp=function(){return qp=Object.assign||function(e){for(var r,n=1,i=arguments.length;n0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]0&&(i.types.Claims.push({name:"app",type:"string"}),i.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(i.types.Claims.push({name:"iat",type:"int64"}),i.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(i.types.Claims.push({name:"exp",type:"int64"}),i.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(i.types.Claims.push({name:"n",type:"uint64"}),i.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(i.types.Claims.push({name:"typ",type:"string"}),i.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(i.types.Claims.push({name:"ogn",type:"string"}),i.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(i.types.Claims.push({name:"v",type:"string"}),i.message.v=this.claims.v),i},t}(),XH=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},ZH=function(t,e,r){return Go(void 0,void 0,void 0,function(){var n,i;return Ko(this,function(s){return n=r.messageDigest(),i=w9(n,r.signature),i.slice(0,2)==="0x"&&i.length===42&&i.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},eW=function(t,e,r){return Go(void 0,void 0,void 0,function(){var n,i,s,o,a;return Ko(this,function(l){switch(l.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(i=l.sent(),i==="0x"||i.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return s=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new $a(r.address,s,t),[4,o.isValidSignature(n,X(r.signature))];case 2:return a=l.sent(),a===tW?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},tW="0x1626ba7e",G9="1",Hp="eth",rW={name:"ETHAuth",version:G9},sh=function(){function t(){for(var e=[],r=0;r0&&(l+="."+i.extra),[2,l]}})})},this.decodeProof=function(i,s){return s===void 0&&(s=!1),Go(n,void 0,void 0,function(){var o,a,l,c,f,u,h,y,g,p;return Ko(this,function(k){switch(k.label){case 0:if(o=i.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],l=o[1],c=o[2],f=o[3],u=o[4],a!==Hp)throw new Error("ethauth: not an ethauth proof");return h=g5.decode(c),y=JSON.parse(h),g=new Nx({address:l,claims:y,signature:f,extra:u}),[4,this.validateProof(g,s)];case 1:if(p=k.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,g]}})})},this.validateProof=function(i,s){return s===void 0&&(s=!1),Go(n,void 0,void 0,function(){var o,a;return Ko(this,function(l){switch(l.label){case 0:if(o=this.validateProofClaims(i),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return s===!0?[3,2]:[4,this.validateProofSignature(i)];case 1:if(a=l.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");l.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(i){return Go(n,void 0,void 0,function(){var s,l,o,a,l;return Ko(this,function(c){switch(c.label){case 0:s=[],l=0,c.label=1;case 1:if(!(l{let e={};return t.forEach((r,n)=>e[r]=n),e})(Jc),sW=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Sr=String.fromCharCode.bind(String),b5=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),J9=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),Y9=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Q9=t=>{let e,r,n,i,s="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(i=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|i,s+=Jc[e>>18&63]+Jc[e>>12&63]+Jc[e>>6&63]+Jc[e&63]}return o?s.slice(0,o-3)+"===".substring(o):s},$x=typeof btoa=="function"?t=>btoa(t):xc?t=>Buffer.from(t,"binary").toString("base64"):Q9,Wp=xc?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,i=t.length;ne?J9(Wp(t)):Wp(t),oW=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?Sr(192|e>>>6)+Sr(128|e&63):Sr(224|e>>>12&15)+Sr(128|e>>>6&63)+Sr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return Sr(240|e>>>18&7)+Sr(128|e>>>12&63)+Sr(128|e>>>6&63)+Sr(128|e&63)}},aW=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,X9=t=>t.replace(aW,oW),w5=xc?t=>Buffer.from(t,"utf8").toString("base64"):x5?t=>Wp(x5.encode(t)):t=>$x(X9(t)),Rl=(t,e=!1)=>e?J9(w5(t)):w5(t),C5=t=>Rl(t,!0),lW=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,cW=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return Sr((r>>>10)+55296)+Sr((r&1023)+56320);case 3:return Sr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return Sr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},Z9=t=>t.replace(lW,cW),eS=t=>{if(t=t.replace(/\s+/g,""),!sW.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,i;for(let s=0;s>16&255):i===64?Sr(e>>16&255,e>>8&255):Sr(e>>16&255,e>>8&255,e&255);return r},Dx=typeof atob=="function"?t=>atob(Y9(t)):xc?t=>Buffer.from(t,"base64").toString("binary"):eS,tS=xc?t=>b5(Buffer.from(t,"base64")):t=>b5(Dx(t).split("").map(e=>e.charCodeAt(0))),rS=t=>tS(nS(t)),fW=xc?t=>Buffer.from(t,"base64").toString("utf8"):m5?t=>m5.decode(tS(t)):t=>Z9(Dx(t)),nS=t=>Y9(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),Gp=t=>fW(nS(t)),uW=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},iS=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),sS=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,iS(r));t("fromBase64",function(){return Gp(this)}),t("toBase64",function(e){return Rl(this,e)}),t("toBase64URI",function(){return Rl(this,!0)}),t("toBase64URL",function(){return Rl(this,!0)}),t("toUint8Array",function(){return rS(this)})},oS=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,iS(r));t("toBase64",function(e){return Yd(this,e)}),t("toBase64URI",function(){return Yd(this,!0)}),t("toBase64URL",function(){return Yd(this,!0)})},dW=()=>{sS(),oS()},Iu={version:K9,VERSION:nW,atob:Dx,atobPolyfill:eS,btoa:$x,btoaPolyfill:Q9,fromBase64:Gp,toBase64:Rl,encode:Rl,encodeURI:C5,encodeURL:C5,utob:X9,btou:Z9,decode:Gp,isValid:uW,fromUint8Array:Yd,toUint8Array:rS,extendString:sS,extendUint8Array:oS,extendBuiltins:dW},hW=t=>Iu.encode(t,!0),Bx=t=>Iu.encode(JSON.stringify(t),!0),vW=t=>{if(t!=null)return Iu.decode(t)},Lx=t=>{if(t!=null)return JSON.parse(Iu.decode(t))};function aS(t){return t!=null&&(q.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||Le(t)||typeof t=="bigint"||ko(t))}const jx=t=>X(xe(typeof t=="string"?Ke(t):t)),lS=(t,e,r)=>Ie(["string","uint256","address","bytes32"],["",e,t,r]),Kp=(t,e,r)=>xe(lS(t,e,r)),cS=()=>typeof window>"u"&&typeof process=="object",yW=()=>!cS(),fS=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(Iu.decode(e[1]))};function oh(){return oh=Object.assign?Object.assign.bind():function(t){for(var e=1;ege.configure(t),cu=(t,e,r)=>{const n={};return r&&r.length>0&&(n.Authorization=`BEARER ${r}`),e&&e.length>0&&(n["X-Access-Key"]=e),{url:t,headers:n,skipFetchSetup:!0,fetchOptions:{mode:"cors",cache:"force-cache",credentials:"same-origin",redirect:"follow",referrer:"client"}}};let pW=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...i){e=`${e}:${xe(Ke(JSON.stringify(i,gW)))}`;let s=this.cache.get(e);if(s&&s.expiration&&new Date>=s.expiration&&(s=void 0,this.cache.delete(e)),!s){const o={promise:n(...i)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),s=o,this.cache.set(e,s)}return s.promise}};function gW(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function Fx(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(i,s)=>{try{n.push((o,a)=>o?s(o):i(a)),await t.apply(e,n)}catch(o){s(o)}})}}function mW(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function xW(t){const e=t.split("&"),r={};for(const n of e){const i=n.split("=");r[decodeURIComponent(i[0])]=JSON.parse(decodeURIComponent(i[1]))}return r}const Ux=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),hS=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},vS=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},yS=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},bW=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),pS=t=>{const e=oh({},t.types);return delete e.EIP712Domain,ir.hash(t.domain,e,t.message)},Pu=t=>X(pS(t)),{defineReadOnly:wW,getStatic:CW,resolveProperties:EW,checkProperties:SW,shallowCopy:kW,deepCopy:AW}=yH,_W=t=>t.replace(/([^:]\/)\/+/g,"$1"),TW=Object.freeze(Object.defineProperty({__proto__:null,Logger:uS,PromiseCache:pW,base64Decode:vW,base64DecodeObject:Lx,base64Encode:hW,base64EncodeObject:Bx,checkProperties:SW,configureLogger:dS,deepCopy:AW,defineReadOnly:wW,encodeMessageDigest:jx,encodeTypedDataDigest:Pu,encodeTypedDataHash:pS,getEthersConnectionInfo:cu,getRandomInt:Ux,getStatic:CW,isBigNumberish:aS,isBrowser:yW,isNode:cS,jwtDecodeClaims:fS,logger:ge,packMessageData:lS,promisify:Fx,queryStringFromObject:mW,queryStringToObject:xW,resolveProperties:EW,sanitizeAlphanumeric:vS,sanitizeHost:yS,sanitizeNumberString:hS,shallowCopy:kW,sleep:bW,subDigestOf:Kp,urlClean:_W},Symbol.toStringTag,{value:"Module"}));function Ge(){return Ge=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:q.from(t).toNumber(),PW=t=>{if(t)return gS(t)},mS=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const i=n.map(c=>c.chainId).sort(),s=i.filter((c,f)=>i.indexOf(c)!==f);if(s.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${s}`);return!1}n.forEach(c=>c.name=c.name.toLowerCase());const o=n.map(c=>c.name).sort(),a=o.filter((c,f)=>o.indexOf(c)!==f);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let l=!1;for(let c=0;c(mS(t,!0,e),t),RW=(t,e=!0)=>{const r=t.map(i=>i.chainId).sort(),n=r.filter((i,s)=>r.indexOf(i)!==s);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},MW=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},bS=t=>xS(wS(t)),ai=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=q.from(e).toNumber();return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(q.isBigNumber(e)){const r=e.toNumber();return t.find(n=>n.chainId===r)}else return}},OW=(t,e)=>t?t.name===e||t.chainId===e:!1,NW=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,i)=>n.chainId===i.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},h1=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let i=e[n];return typeof i=="function"?i=i():i==null?i="":typeof i=="object"||typeof i=="symbol"?i=i.toString():i=i.valueOf(),i})):"",CS=t=>h1("https://${network}-indexer.sequence.app",{network:t}),ES=t=>h1("https://${network}-relayer.sequence.app",{network:t}),SS=t=>h1("https://nodes.sequence.app/${network}",{network:t});function zx(t){return ai(Zl,t)}function kS(t){return q.isBigNumber(t)?t:aS(t)?q.from(t):q.from(t.chainId)}const rt=t=>{const e=SS(t);return{rpcUrl:e,relayer:{url:ES(t),provider:{url:e}},indexerUrl:CS(t)}},Zl=bS([Ge({},We[K.POLYGON],rt("polygon"),{isDefaultChain:!0,isAuthChain:!0}),Ge({},We[K.MAINNET],rt("mainnet")),Ge({},We[K.BSC],rt("bsc")),Ge({},We[K.AVALANCHE],rt("avalanche")),Ge({},We[K.ARBITRUM],rt("arbitrum")),Ge({},We[K.ARBITRUM_NOVA],rt("arbitrum-nova")),Ge({},We[K.OPTIMISM],rt("optimism")),Ge({},We[K.OPTIMISM_SEPOLIA],rt("optimism-sepolia")),Ge({},We[K.POLYGON_ZKEVM],rt("polygon-zkevm")),Ge({},We[K.GNOSIS],rt("gnosis")),Ge({},We[K.RINKEBY],rt("rinkeby"),{disabled:!0}),Ge({},We[K.GOERLI],rt("goerli"),{disabled:!0}),Ge({},We[K.SEPOLIA],rt("sepolia")),Ge({},We[K.POLYGON_MUMBAI],rt("mumbai"),{disabled:!0}),Ge({},We[K.POLYGON_AMOY],rt("amoy")),Ge({},We[K.BSC_TESTNET],rt("bsc-testnet")),Ge({},We[K.ARBITRUM_SEPOLIA],rt("arbitrum-sepolia")),Ge({},We[K.BASE],rt("base")),Ge({},We[K.BASE_SEPOLIA],rt("base-sepolia")),Ge({},We[K.HOMEVERSE],rt("homeverse")),Ge({},We[K.HOMEVERSE_TESTNET],rt("homeverse-testnet")),Ge({},We[K.XAI],rt("xai")),Ge({},We[K.XAI_SEPOLIA],rt("xai-sepolia")),Ge({},We[K.AVALANCHE_TESTNET],rt("avalanche-testnet")),Ge({},We[K.ASTAR_ZKEVM],rt("astar-zkevm")),Ge({},We[K.ASTAR_ZKYOTO],rt("astar-zkyoto")),Ge({},We[K.XR_SEPOLIA],rt("xr-sepolia")),Ge({},We[K.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),Ge({},We[K.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]),ec="2.0";class Vx{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=AS(e,this.sender.sendAsync)}sendAsync(e,r,n){try{this.handler(e,r,n)}catch(i){r(i,void 0)}}}const AS=(t,e)=>{if(t.length===0)return e;const r=i=>i.sendAsyncMiddleware?i.sendAsyncMiddleware:i;let n;n=r(t[t.length-1])(e);for(let i=t.length-2;i>=0;i--)n=r(t[i])(n);return n};function _S(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function TS(t){return t!==void 0&&t.sendAsync!==void 0}let $W=0;class ah{constructor(e,r){this.send=void 0,this.request=void 0,this.defaultChainId=void 0,this.sendAsync=(n,i,s)=>{this.send(n.method,n.params,s||this.defaultChainId).then(o=>{i(void 0,{jsonrpc:"2.0",id:n.id,result:o})}).catch(o=>{i(o,void 0)})},this.defaultChainId=r,_S(e)?this.send=e.send.bind(e):TS(e)?this.send=(n,i,s)=>new Promise((o,a)=>{e.sendAsync({jsonrpc:ec,id:++$W,method:n,params:i},(l,c)=>{l?a(l):o(c?c.result:void 0)},s||this.defaultChainId)}):this.send=e,this.request=(n,i)=>this.send(n.method,n.params,i)}}class DW{constructor(e){this.provider=e,this.sendAsync=(r,n)=>{this.provider.send(r.method,r.params).then(i=>{n(void 0,{jsonrpc:"2.0",id:r.id,result:i})}).catch(i=>{n(i,void 0)})},this.send=this.sendAsync}}class BW{constructor(e){this.sendAsyncMiddleware=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.sendAsyncMiddleware=Jp(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.sendAsyncMiddleware=Jp(this.isAllowedFunc)}}const Jp=t=>e=>(r,n,i)=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");e(r,n,i)};class qx{constructor(e){this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.sendAsyncMiddleware=r=>(n,i,s)=>{if(this.cachableJsonRpcMethods.includes(n.method)||this.cachableJsonRpcMethodsByBlock.includes(n.method)){const o=this.cacheKey(n.method,n.params,s||this.defaultChainId),a=this.getCacheValue(o);if(a&&a!==""){i(void 0,{jsonrpc:"2.0",id:n.id,result:a});return}}r(n,(o,a,l)=>{if((this.cachableJsonRpcMethods.includes(n.method)||this.cachableJsonRpcMethodsByBlock.includes(n.method))&&a&&a.result&&this.shouldCacheResponse(n,a)){const c=this.cacheKey(n.method,n.params,l||this.defaultChainId);this.cachableJsonRpcMethods.includes(n.method)?this.setCacheValue(c,a.result):this.setCacheByBlockValue(c,a.result)}i(o,a)},s||this.defaultChainId)},this.cacheKey=(r,n,i)=>{let s="";return i?s=`${i}:${r}:`:s=`:${r}:`,!n||n.length===0?s+"[]":s+JSON.stringify(n)},this.getCache=()=>this.cache,this.setCache=r=>{this.cache=r,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=r=>{if(this.cache[r])return this.cache[r];if(this.cacheByBlock[r])return this.cacheByBlock[r]},this.setCacheValue=(r,n)=>{this.cache[r]=n,this.onUpdateCallback&&this.onUpdateCallback(r,n)},this.setCacheByBlockValue=(r,n)=>{this.cacheByBlock[r]=n,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(r,n)=>!(!n||!n.result||r.method==="eth_getCode"&&n.result.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class IS{constructor(e){this.options=void 0,this.sendAsyncMiddleware=r=>(n,i,s)=>{const{id:o,method:a}=n;switch(a){case"net_version":if(this.options.chainId){i(void 0,{jsonrpc:"2.0",id:o,result:`${this.options.chainId}`});return}break;case"eth_chainId":if(this.options.chainId){i(void 0,{jsonrpc:"2.0",id:o,result:Q(this.options.chainId)});return}break;case"eth_accounts":if(this.options.accountAddress){i(void 0,{jsonrpc:"2.0",id:o,result:[Se(this.options.accountAddress)]});return}break;case"sequence_getWalletContext":if(this.options.walletContext){i(void 0,{jsonrpc:"2.0",id:o,result:this.options.walletContext});return}break}r(n,i,s)},this.options=e}}const PS=t=>(e,r,n)=>{t(e,(i,s)=>{if(!i&&s&&s.error)throw typeof s.error=="string"?new Error(s.error):new Error(s.error.message);r(i,s)},n)},RS=t=>(e,r,n)=>{const i=n?` chainId:${n}`:"";ge.info(`[provider request]${i} id:${e.id} method:${e.method} params:`,e.params),t(e,(s,o)=>{s?ge.warn(`[provider response]${i} id:${e.id} method:${e.method} params:`,e.params,"error:",s):ge.info(`[provider response]${i} id:${e.id} method:${e.method} params:`,e.params,"response:",o),r(s,o)},n)},LW=t=>e=>(r,n,i)=>{const s=t(r),{id:o,method:a}=r;switch(a){case"net_version":n(void 0,{jsonrpc:"2.0",id:o,result:`${s}`});return;case"eth_chainId":n(void 0,{jsonrpc:"2.0",id:o,result:Q(s)});return}e(r,n,i)},MS=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class jW{constructor(e){this.provider=void 0,this.sendAsyncMiddleware=r=>(n,i,s)=>{if(MS.includes(n.method)){this.provider.sendAsync(n,i,s);return}r(n,i,s)},this.provider=e}}class FW{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...MS],this.provider=void 0,this.rpcUrl=void 0,this.sendAsyncMiddleware=r=>(n,i)=>{if(this.provider&&!this.privateJsonRpcMethods.includes(n.method)){this.provider.send(n.method,n.params).then(s=>{i(void 0,{jsonrpc:"2.0",id:n.id,result:s})}).catch(s=>i(s));return}ge.debug("[public-provider] sending request to signer window",n.method),r(n,i)},e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new Da(e))}}class OS{constructor(){this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.sendAsyncMiddleware=e=>(r,n,i)=>{if(!this.singleflightJsonRpcMethods.includes(r.method)){e(r,n,i);return}const s=this.requestKey(r.method,r.params||[],i);if(!this.inflight[s])this.inflight[s]=[];else{this.inflight[s].push({id:r.id,callback:n});return}e(r,(o,a,l)=>{n(o,a);for(let c=0;c{let i="";return n?i=`${n}:${e}:`:i=`:${e}:`,!r||r.length===0?i+"[]":i+JSON.stringify(r)},this.inflight={}}}class UW extends Da{constructor(e,r){super(e,r==null?void 0:r.chainId),this._chainId=void 0,this._sender=void 0,this.send=(a,l)=>this._sender.send(a,l),this.fetch=(a,l)=>{const c={method:a,params:l,id:this._nextId++,jsonrpc:"2.0"};return _u(this.connection,JSON.stringify(c),zW).then(u=>u,u=>{throw u})};const n=r==null?void 0:r.chainId,i=r==null?void 0:r.middlewares,s=r==null?void 0:r.blockCache;this._chainId=n;const o=new Vx(i??[new IS({chainId:n}),new OS,new qx({defaultChainId:n,blockCache:s})],new ah(this.fetch,n));this._sender=new ah(o,n)}async getNetwork(){const e=this._chainId;if(e){const r=We[e],n=(r==null?void 0:r.name)||"",i=r==null?void 0:r.ensAddress;return{name:n,chainId:e,ensAddress:i}}else{const r=await this.send("eth_chainId",[]);return this._chainId=q.from(r).toNumber(),this.getNetwork()}}}function zW(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const VW=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:BW,CachedProvider:qx,ChainId:K,EagerProvider:IS,JsonRpcExternalProvider:DW,JsonRpcProvider:UW,JsonRpcRouter:Vx,JsonRpcSender:ah,JsonRpcVersion:ec,NetworkType:Oe,PublicProvider:FW,SigningProvider:jW,SingleflightMiddleware:OS,allNetworks:Zl,allowProviderMiddleware:Jp,checkNetworkConfig:OW,createJsonRpcMiddlewareStack:AS,ensureUniqueNetworks:RW,ensureValidNetworks:xS,exceptionProviderMiddleware:PS,findNetworkConfig:ai,findSupportedNetwork:zx,getChainId:gS,indexerURL:CS,isJsonRpcHandler:TS,isJsonRpcProvider:_S,isNetworkConfig:IW,isValidNetworkConfig:mS,loggingProviderMiddleware:RS,maybeChainId:PW,networkProviderMiddleware:LW,networks:We,networksIndex:NW,nodesURL:SS,relayerURL:ES,sortNetworks:wS,stringTemplate:h1,toChainIdNumber:kS,updateNetworkConfig:MW,validateAndSortNetworks:bS},Symbol.toStringTag,{value:"Module"}));function Ar(){return Ar=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(Wx(i))return Ie(["uint8","uint8","address"],[ca.Address,i.weight,i.address]);if(i.isDynamic){const s=X(i.signature);return Ie(["uint8","uint8","address","uint16","bytes"],[ca.DynamicSignature,i.weight,i.address,s.length,s])}return Ie(["uint8","uint8","bytes"],[ca.EOASignature,i.weight,i.signature])});return Ie(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function jS(t,e,r){const n=Ru(e),i=await Promise.all(t.signers.map(async s=>{if(Wx(s))return s;if(s.isDynamic){if(!s.address)throw new Error("Dynamic signature part must have address");if(!Hx(s.address,n,s.signature,r))throw new Error(`Invalid dynamic signature part ${s.address}`);return{address:s.address,weight:s.weight,signature:s.signature}}else return{address:Mu(n,s.signature),weight:s.weight,signature:s.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:i}}}function xf(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let i=q.from(0);const s=t.signers.map(a=>{if(!e.has(a.address))return a;const l=e.get(a.address),c=X(l.signature);return i=i.add(a.weight),l.isDynamic||c.length!==66?Ar({},a,{isDynamic:!0,signature:l.signature,address:a.address}):Ar({},a,{isDynamic:!1,signature:l.signature})});return{encoded:Gx({version:1,threshold:t.threshold,signers:s}),weight:i}}const Kx={decode:t=>LS(t),encode:t=>Gx(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>jS(t,e,r),encodeSigners:(t,e,r,n)=>xf(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=Kx.encodeSigners(t,e,[],0);return r.gte(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var XW=Object.freeze({__proto__:null,SignaturePartType:ca,isAddressMember:Wx,isUnrecoveredSignatureMember:DS,isUnrecoveredSignature:BS,decodeSignature:LS,encodeSignature:Gx,recoverSignature:jS,encodeSigners:xf,SignatureCoder:Kx});const Jx={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>xe(Yr.encode(["bytes32","uint8","address"],[e,r.weight,r.address])),Ie(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>q.from(0),signersOf:t=>t.signers.map(e=>({address:e.address,weight:q.from(e.weight).toNumber()})),fromSimple:t=>{if(!Lt.eq(t.checkpoint))throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const i=new Dt([...lr.mainModule.abi,...lr.mainModuleUpgradable.abi]),s=[];return(!n||n==="first")&&s.push({to:t,data:i.encodeFunctionData(i.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),s.push({to:t,data:i.encodeFunctionData(i.getFunction("updateImageHash"),[Jx.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:s}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:q.from(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:q.from(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:q.from(n.weight),address:n.address}));return{version:e.version,threshold:q.from(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&!Lt.eq(e.checkpoint))throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const i of e.add)n.find(s=>s.address===i.address)||n.push({weight:i.weight,address:i.address});if(e.remove)for(const i of e.remove){const s=n.findIndex(o=>o.address===i);s>=0&&n.splice(s,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[i,s]of e.entries()){r.set(i,{signature:s,isDynamic:!0});const{encoded:o,weight:a}=xf(t,r,[]);if(a.gte(t.threshold))return o}const n=t.signers;for(const{address:i}of n.sort(({weight:s},{weight:o})=>q.from(s).sub(o).toNumber())){r.set(i,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=xf(t,r,[]);if(a.gte(t.threshold))return o}return xf(t,r,[]).encoded}};var ZW=Object.freeze({__proto__:null,ConfigCoder:Jx});const FS=1,US={version:FS,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Yi=Object.freeze({__proto__:null,config:ZW,signature:XW,version:FS,DeployedWalletContext:US});const Yx="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function zS(t){return xe(VS(t))}function VS(t){return Ie(["bytes32","bytes32"],[Yx,t])}function qS(t){const e=X(t);if(e.length===64&&Q(e.slice(0,32))===Yx)return Q(e.slice(32,64))}function eG(t){return qS(t)!==void 0}var tG=Object.freeze({__proto__:null,SetImageHashPrefix:Yx,hashSetImageHash:zS,messageSetImageHash:VS,decodeMessageSetImageHash:qS,isMessageSetImageHash:eG});let mr=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),Jt=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const lh=66;function ka(t){return t.left!==void 0&&t.right!==void 0}function bc(t){return t.tree!==void 0}function Ou(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function ch(t){let e=X(t),r;const n=(i,s)=>i?i.right?{left:i,right:s}:{left:i.left,right:s}:{left:s};for(;e.length>0;){const i=e[0];switch(e=e.slice(1),i){case Jt.Signature:{const s=e[0],o=Q(e.slice(1,lh+1));r=n(r,{signature:o,weight:s,unrecovered:!0,isDynamic:!1}),e=e.slice(lh+1)}break;case Jt.Address:{const s=e[0],o=Se(Q(e.slice(1,21)));r=n(r,{address:o,weight:s}),e=e.slice(21)}break;case Jt.DynamicSignature:{const s=e[0],o=Se(Q(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],l=Q(e.slice(24,24+a));r=n(r,{address:o,signature:l,weight:s,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case Jt.Node:{const s=Q(e.slice(0,32));r=n(r,{nodeHash:s}),e=e.slice(32)}break;case Jt.Branch:{const s=e[0]<<16|e[1]<<8|e[2],o=ch(e.slice(3,3+s));r=n(r,o),e=e.slice(3+s)}break;case Jt.Subdigest:{const s=Q(e.slice(0,32));r=n(r,{subdigest:s}),e=e.slice(32)}break;case Jt.Nested:{const s=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],l=ch(e.slice(6,6+a));r=n(r,{weight:s,threshold:o,tree:l}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${i}: ${Q(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class HS extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function fa(t,e,r){if(ka(t)){const[n,i]=await Promise.all([fa(t.left,e,r),fa(t.right,e,r)]);return{left:n,right:i}}if(bc(t))return{weight:t.weight,threshold:t.threshold,tree:await fa(t.tree,e,r)};if(Ou(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await Hx(t.address,e,t.signature,r))throw new HS(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:Mu(e,t.signature),signature:t.signature,subdigest:e};return t}const Mr={concat:(t,e)=>Ie(["bytes","bytes"],[t,e]),node:t=>Ie(["uint8","bytes32"],[Jt.Node,t]),branch:t=>{const e=X(t);return Ie(["uint8","uint24","bytes"],[Jt.Branch,e.length,e])},nested:(t,e,r)=>{const n=X(r);return Ie(["uint8","uint8","uint16","uint24","bytes"],[Jt.Nested,t,e,n.length,n])},subdigest:t=>Ie(["uint8","bytes32"],[Jt.Subdigest,t]),signature:(t,e)=>Ie(["uint8","uint8","bytes"],[Jt.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=X(r);return Ie(["uint8","uint8","address","uint24","bytes"],[Jt.DynamicSignature,t,e,n.length,n])},address:(t,e)=>Ie(["uint8","uint8","address"],[Jt.Address,t,e])};function bf(t,e,r,n,i={}){const s=wf(t.tree,e,r,i);return q.from(n).isZero()?{encoded:Ie(["uint8","uint16","uint32","bytes"],[mr.NoChainIdDynamic,t.threshold,t.checkpoint,s.encoded]),weight:s.weight}:q.from(t.threshold).gt(255)?{encoded:Ie(["uint8","uint16","uint32","bytes"],[mr.Dynamic,t.threshold,t.checkpoint,s.encoded]),weight:s.weight}:{encoded:Ie(["uint8","uint8","uint32","bytes"],[mr.Legacy,t.threshold,t.checkpoint,s.encoded]),weight:s.weight}}function wf(t,e,r,n={}){const i=!n.disableTrim;if(fi(t)){const s=wf(t.left,e,r),o=wf(t.right,e,r),a=Jr(t.left),l=Jr(t.right);return i&&s.weight.eq(0)&&o.weight.eq(0)&&!a&&!l?{encoded:Mr.node(Pn(t)),weight:Lt}:i&&o.weight.eq(0)&&!l?{encoded:Mr.concat(s.encoded,Mr.node(Pn(t.right))),weight:s.weight}:i&&s.weight.eq(0)&&!a?{encoded:Mr.concat(Mr.node(Pn(t.left)),Mr.branch(o.encoded)),weight:o.weight}:{encoded:Mr.concat(s.encoded,Mr.branch(o.encoded)),weight:s.weight.add(o.weight)}}if(ms(t)){const s=wf(t.tree,e,r);return i&&s.weight.eq(0)?{encoded:Mr.node(Pn(t)),weight:Lt}:{encoded:Mr.nested(t.weight,t.threshold,s.encoded),weight:s.weight}}if(xs(t))return{encoded:Mr.node(Pn(t)),weight:Lt};if(gs(t)){const s=r.includes(t.subdigest);return{encoded:Mr.subdigest(t.subdigest),weight:s?ux:Lt}}if(Jr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Mr.dynamicSignature(t.weight,t.address,a),weight:q.from(t.weight)}:{encoded:Mr.signature(t.weight,a),weight:q.from(t.weight)}}else return{encoded:Mr.address(t.weight,t.address),weight:Lt};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function Qx(t){return Zx(t)?Qx(t.suffix[t.suffix.length-1]):t.config}function Xx(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function Nu(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(Xx)}function WS(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function Zx(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(WS)}function v1(t){const e=X(t),r=e[0];switch(r){case mr.Legacy:return{version:2,type:mr.Legacy,decoded:Qd(e)};case mr.Dynamic:return{version:2,type:mr.Dynamic,decoded:Qd(e.slice(1))};case mr.NoChainIdDynamic:return{version:2,type:mr.NoChainIdDynamic,decoded:Qd(e.slice(1))};case mr.Chained:return GS(e);default:throw new Error(`Invalid signature type: ${r}`)}}function Qd(t){const e=X(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],i=ch(e.slice(6));return{threshold:r,checkpoint:n,tree:i}}function GS(t){const e=X(t),r=e[0];if(r!==mr.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let i=1;for(;iX(io(s))),i=Ie(n.map(()=>["uint24","bytes"]).flat(),n.map(s=>[s.length,s]).flat());return Ie(["uint8","bytes"],[mr.Chained,i])}function io(t){if(Oi(t))return Q(t);if(Nu(t)||Zx(t))return y1(io(t),(t.suffix||[]).map(io));const e=Xx(t)?t.decoded:t.config;switch(t.type){case mr.Legacy:if(q.from(e.threshold).gt(255))throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return Yp(e);case mr.NoChainIdDynamic:case mr.Dynamic:return Ie(["uint8","bytes"],[t.type,Yp(e)]);case mr.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function Yp(t){return Ie(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Cf(t.tree)])}function Cf(t){if(fi(t)||ka(t)){const e=X(Cf(t.right)),r=X(Cf(t.left));return fi(t.right)||ka(t.right)?Ie(["bytes","uint8","uint24","bytes"],[r,Jt.Branch,e.length,e]):Ie(["bytes","bytes"],[r,e])}if(ms(t)||bc(t)){const e=X(Cf(t.tree));return Ie(["uint8","uint8","uint16","uint24","bytes"],[Jt.Nested,t.weight,t.threshold,e.length,e])}if(Ou(t)||Jr(t)&&t.signature!==void 0){const e=X(t.signature);if(t.isDynamic||e.length!==lh){if(!t.address)throw new Error("Dynamic signature leaf must have address");return Ie(["uint8","uint8","address","uint24","bytes"],[Jt.DynamicSignature,t.weight,t.address,e.length,e])}else return Ie(["uint8","uint8","bytes"],[Jt.Signature,t.weight,e])}if(Jr(t))return Ie(["uint8","uint8","address"],[Jt.Address,t.weight,t.address]);if(xs(t))return Ie(["uint8","bytes32"],[Jt.Node,t.nodeHash]);if(gs(t))return Ie(["uint8","bytes32"],[Jt.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Ef(t){return fi(t)?[...Ef(t.left),...Ef(t.right)]:ms(t)?Ef(t.tree):Jr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function Sf(t){return ka(t)?[...Sf(t.left),...Sf(t.right)]:bc(t)?Sf(t.tree):Ou(t)?[t.signature]:[]}function Xd(t){return ka(t)?[...Xd(t.left),...Xd(t.right)]:bc(t)?Xd(t.tree):gs(t)?[t.subdigest]:[]}async function fh(t){const e=typeof t=="string"?v1(t):t;if(Nu(e)){const n=await Promise.all([fh(Ar({},e,{suffix:void 0})),...e.suffix.map(i=>fh(i))]);return y1(n[0],n.slice(1))}const{trimmed:r}=await kf(e.decoded.tree);return io(Ar({},e,{decoded:Ar({},e.decoded,{tree:r})}))}async function kf(t,e=!0){if(ka(t)){const[r,n]=await Promise.all([kf(t.left),kf(t.right)]);if(r.weight===0&&n.weight===0)try{const i=await fa(t,Wl,void 0);return{weight:0,trimmed:{nodeHash:Pn(i)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(bc(t)){const r=await kf(t.tree);if(r.weight===0)try{const n=await fa(t,Wl,void 0);return{weight:0,trimmed:{nodeHash:Pn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return xs(t)&&QS(t.nodeHash)?{weight:0,trimmed:Ar({},YS(t.nodeHash))}:Ou(t)||Jr(t)&&t.signature!==void 0?{weight:q.from(t.weight).toNumber(),trimmed:t}:!e&&gs(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const p1={decode:t=>v1(t),encode:t=>io(t),trim:t=>fh(t),supportsNoChainId:!0,recover:(t,e,r)=>eb(t,e,r),encodeSigners:(t,e,r,n)=>bf(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=p1.encodeSigners(t,e,[],0);return r.gte(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=Oi(t)?t:io(t),i=r.map(s=>Oi(s)?s:io(s));return y1(n,i)},hashSetImageHash:function(t){return zS(t)},signaturesOf(t){return Ef(t.tree)},signaturesOfDecoded:function(t){return Sf(t.decoded.tree)}};var rG=Object.freeze({__proto__:null,SignatureType:mr,SignaturePartType:Jt,SignaturePartTypeLength:lh,isUnrecoveredNode:ka,isUnrecoveredNestedLeaf:bc,isUnrecoveredSignatureLeaf:Ou,decodeSignatureTree:ch,InvalidSignatureLeafError:HS,recoverTopology:fa,partEncoder:Mr,encodeSigners:bf,encodeTree:wf,deepestConfigOfSignature:Qx,isUnrecoveredSignature:Xx,isUnrecoveredChainedSignature:Nu,isSignature:WS,isChainedSignature:Zx,decodeSignature:v1,decodeSignatureBody:Qd,decodeChainedSignature:GS,setImageHashStruct:KS,recoverSignature:eb,encodeChain:y1,encodeSignature:io,encodeSignatureBody:Yp,encodeSignatureTree:Cf,signaturesOf:Ef,signaturesOfDecoded:Sf,subdigestsOfDecoded:Xd,trimSignature:fh,trimUnrecoveredTree:kf,SignatureCoder:p1});function Jr(t){return t.address!==void 0&&t.weight!==void 0}function gs(t){return t.subdigest!==void 0&&t.address===void 0}function Af(t){return fi(t)?JSON.stringify({left:Af(t.left),right:Af(t.right)}):ms(t)?JSON.stringify({weight:q.from(t.weight).toString(),threshold:q.from(t.threshold).toString(),tree:Af(t.tree)}):Jr(t)?JSON.stringify({address:t.address,weight:q.from(t.weight).toString()}):JSON.stringify(t)}function _f(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:_f(e.left),right:_f(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:q.from(e.weight),threshold:q.from(e.threshold),tree:_f(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:q.from(e.weight)}:e}function ms(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function xs(t){return t.nodeHash!==void 0}function tb(t){return Jr(t)||gs(t)||ms(t)||xs(t)}function fi(t){return t.left!==void 0&&t.right!==void 0}function nG(t){return fi(t)||tb(t)}function JS(t){return Ie(["uint96","address"],[t.weight,t.address])}function YS(t){const e=X(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=q.from(e.slice(0,12)),n=Se(Q(e.slice(12)));return{weight:r,address:n}}function QS(t){const e=X(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Pn(t){if(Jr(t))return JS(t);if(gs(t))return ro(["string","bytes32"],[`Sequence static digest: -`,t.subdigest]);if(ms(t)){const e=Pn(t.tree);return ro(["string","bytes32","uint256","uint256"],[`Sequence nested config: -`,e,t.threshold,t.weight])}return xs(t)?t.nodeHash:ro(["bytes32","bytes32"],[Pn(t.left),Pn(t.right)])}function iG(t){const e=[];let r=t;for(;!tb(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function sG(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function rb(t){return ro(["bytes32","uint256"],[ro(["bytes32","uint256"],[Pn(t.tree),t.threshold]),t.checkpoint])}function XS(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Ml(t){return Jr(t)||gs(t)?[t]:ms(t)?[{threshold:t.threshold,weight:t.weight,members:Ml(t.tree)}]:xs(t)?[]:[...Ml(t.left),...Ml(t.right)]}function Qp(t){return xs(t)?!0:fi(t)?Qp(t.left)||Qp(t.right):!1}function oG(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Ml(t.tree)}}const ZS=(t,e)=>t.map(r=>XS(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function nb(t){if(t.length===0)throw new Error("Empty members array");return ZS(t,nb).reduce((r,n)=>({left:r,right:n}))}function ib(t){if(t.length===0)throw new Error("Empty members array");const e=ZS(t,ib);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[i]:e[n]={left:e[i],right:e[s]}}return e[0]}function sb(t){return t.length>8?ib(t):nb(t)}function ek(t,e=sb){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function uh(t,e){return gs(t)?t.subdigest===e:fi(t)?uh(t.left,e)||uh(t.right,e):!1}function Xp(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();ms(n)?e.push(n.tree):fi(n)?(e.push(n.left),e.push(n.right)):Jr(n)&&r.add({address:n.address,weight:q.from(n.weight).toNumber()})}return Array.from(r)}function dh(t){return fi(t)?dh(t.left)&&dh(t.right):!xs(t)}const g1={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>rb(t),hasSubdigest:(t,e)=>uh(t.tree,e),checkpointOf:t=>q.from(t.checkpoint),signersOf:t=>Xp(t.tree),fromSimple:t=>{var e;return ek(Ar({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>dh(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const i=new Dt(lr.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:i.encodeFunctionData(i.getFunction("updateImageHash"),[g1.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,i;const s=new Dt(lr.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=s.decodeFunctionData(s.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(!Lt.eq((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0))throw new Error("Invalid transaction bundle, expected value to be 0");if(!Lt.eq((n=(i=t.transactions[0])==null?void 0:i.gasLimit)!=null?n:0))throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:q.from(t.threshold).toString(),checkpoint:q.from(t.checkpoint).toString(),tree:Af(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:q.from(e.threshold),checkpoint:q.from(e.checkpoint),tree:_f(e.tree)}},editConfig:function(t,e){var r,n;const i=Ml(t.tree);if(e.add)for(const s of e.add)i.find(o=>Jr(o)&&o.address===s.address)||i.push({address:s.address,weight:s.weight});if(e.remove)for(const s of e.remove){const o=i.findIndex(a=>Jr(a)&&a.address===s);o>=0&&i.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:sb(i)}},buildStubSignature:function(t,e){const r=new Map;for(const[i,s]of e.entries()){r.set(i,{signature:s,isDynamic:!0});const{encoded:o,weight:a}=bf(t,r,[],0);if(a.gte(t.threshold))return o}const n=Xp(t.tree);for(const{address:i}of n.sort(({weight:s},{weight:o})=>s-o)){r.set(i,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=bf(t,r,[],0);if(a.gte(t.threshold))return o}return bf(t,r,[],0).encoded}};var aG=Object.freeze({__proto__:null,isSignerLeaf:Jr,isSubdigestLeaf:gs,topologyToJSON:Af,topologyFromJSON:_f,isNestedLeaf:ms,isNodeLeaf:xs,isLeaf:tb,isNode:fi,isTopology:nG,encodeSignerLeaf:JS,decodeSignerLeaf:YS,isEncodedSignerLeaf:QS,hashNode:Pn,leftFace:iG,isWalletConfig:sG,imageHash:rb,isSimpleNestedMember:XS,topologyToMembers:Ml,hasUnknownNodes:Qp,toSimpleWalletConfig:oG,legacyTopologyBuilder:nb,merkleTopologyBuilder:ib,optimized2SignersTopologyBuilder:sb,toWalletConfig:ek,hasSubdigest:uh,signersOf:Xp,isComplete:dh,ConfigCoder:g1}),lG=Object.freeze({__proto__:null});const cG={config:g1,signature:p1},tk=2,rk={version:tk,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Re=Object.freeze({__proto__:null,config:aG,signature:rG,context:lG,chained:tG,coders:cG,version:tk,DeployedWalletContext:rk});function Zp(t,e){const r=xe(Ie(["bytes","bytes32"],[t.walletCreationCode,et(t.mainModule,32)])),n=xe(Ie(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Se(Kt(n,12))}async function fG(t,e,r,n,i,s){return(await Promise.all(vk.map(async a=>{try{const l=a.signature.SignatureCoder.decode(Q(r)),c=await a.signature.SignatureCoder.recover(l,{address:t,digest:Q(e),chainId:n},i),f=a.config.ConfigCoder.imageHashOf(c.config);if(Zp(s[a.version],f).toLowerCase()===t.toLowerCase())return!0;const h=await a.signature.SignatureCoder.recover(l,{address:t,digest:Q(e),chainId:n},i),y=a.config.ConfigCoder.imageHashOf(h.config);return Zp(s[a.version],y).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function uG(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function dG(t){const e=Object.keys(t).length;return t[e]}const hG={1:US,2:rk};var vG=Object.freeze({__proto__:null,addressOf:Zp,isValidCounterfactual:fG,isValidVersionedContext:uG,latestContext:dG,defaultContexts:hG});const m1=`tuple( - bool delegateCall, - bool revertOnError, - uint256 gasLimit, - address target, - uint256 value, - bytes data -)[]`;function yG(t,e,r,n){return Ar({},t,{chainId:r,intent:{id:n,wallet:e}})}function pG(t){return xe(Yr.encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function gG(t){const e=Yr.decode(["uint256",m1],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function nk(t,e){return Yr.encode(["uint256",m1],[t,fu(e)])}function ik(t,e){return xe(nk(t,e))}function mG(t,e,r,n){return Ru({address:t,chainId:e,digest:ik(r,n)})}function xG(t,e,r){return Ru({address:t,chainId:e,digest:xe(Yr.encode(["string",m1],["guest:",fu(r)]))})}function sk(t,e){return e.map(r=>ob(t,r))}function ob(t,e){if(e.to&&e.to!==iu)return{nonce:e.nonce,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:e.gasLimit||0,to:e.to,value:e.value||0,data:e.data||"0x"}};{const r=new Dt(lr.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:e.nonce,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:e.gasLimit,to:t,value:e.value||0,data:n}}}}function x1(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function ok(t){return t.every(x1)}function fu(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:e.gasLimit!==void 0?e.gasLimit:Lt,target:(r=e.to)!=null?r:iu,value:e.value!==void 0?e.value:Lt,data:e.data!==void 0?e.data:[]}})}function bG(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function wG(t,e){const r=q.from(t),n=q.from(e),i=y7.pow(q.from(96));if(!n.div(i).eq(Lt))throw new Error("Space already encoded");return n.add(r.mul(i))}function CG(t){const e=q.from(t),r=y7.pow(q.from(96));return[e.div(r),e.mod(r)]}function EG(t,e){return Array.isArray(e)?ok(e)?e:sk(t,e).map(n=>n.transaction):x1(e)?[e]:[ob(t,e).transaction]}function ak(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&x1(r),!0)}function lk(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&ak(t)}function SG(t){const e=new Dt(lr.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),lk(t)?[fu(t.transactions),t.nonce,t.signature]:[fu(t.transactions),0,[]])}const ck="0x61c2926c",fk=`tuple( - bool delegateCall, - bool revertOnError, - uint256 gasLimit, - address target, - uint256 value, - bytes data -)[]`,eg=(t,e)=>{const r=[],n=new Dt(lr.mainModule.abi);for(const i of e){const s=X(i.data||"0x");if(i.to===t&&Q(s.slice(0,4))===ck){const o=s.slice(4),a=Yr.decode([fk],o)[0];r.push(...eg(i.to,a.map(l=>Ar({},l,{to:l.target}))))}else try{const o=n.decodeFunctionData("execute",s)[0],a=eg(t,o.map(l=>Ar({},l,{to:l.target})));r.push(...a)}catch{r.push(i)}}return r};var kG=Object.freeze({__proto__:null,MetaTransactionsType:m1,intendTransactionBundle:yG,intendedTransactionID:pG,unpackMetaTransactionsData:gG,packMetaTransactionsData:nk,digestOfTransactions:ik,subdigestOfTransactions:mG,subdigestOfGuestModuleTransactions:xG,toSequenceTransactions:sk,toSequenceTransaction:ob,isSequenceTransaction:x1,hasSequenceTransactions:ok,sequenceTxAbiEncode:fu,fromTxAbiEncode:bG,encodeNonce:wG,decodeNonce:CG,fromTransactionish:EG,isTransactionBundle:ak,isSignedTransactionBundle:lk,encodeBundleExecData:SG,selfExecuteSelector:ck,selfExecuteAbi:fk,unwind:eg});const uk="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",AG="0x6492649264926492649264926492649264926492649264926492649264926492";async function dk(t,e,r,n){return await t.call({data:Ze([uk,new yx().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}var _G=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:uk,EIP_6492_SUFFIX:AG,validateEIP6492Offchain:dk});class TG{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new $a(e,[...lr.mainModuleUpgradable.abi,...lr.mainModule.abi,...lr.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(i=>X(i))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=Yr.encode(["address"],[e]),n=await this.provider.getStorageAt(e,r).then(i=>X(i));if(n.length===20)return Se(Q(n));if(n.length===32)return Yr.decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return dk(this.provider,e,r,n)}}var IG=Object.freeze({__proto__:null,OnChainReader:TG});function PG(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var ue=Object.freeze({__proto__:null,config:qW,signature:HW,context:vG,signer:QW,EIP1271:KW,transaction:kG,reader:IG,EIP6492:_G,isWalletSignRequestMetadata:PG});const tg=[{config:Jx,signature:Kx},{config:g1,signature:p1}];function hk(t){const e=t-1;if(e<0||e>=tg.length)throw new Error(`No coder for version: ${t}`);return tg[e]}function RG(t){return hk(t)}var kr=Object.freeze({__proto__:null,ALL_CODERS:tg,coderFor:hk,genericCoderFor:RG});const vk=[Yi,Re],MG=Object.freeze(Object.defineProperty({__proto__:null,allVersions:vk,commons:ue,universal:kr,v1:Yi,v2:Re},Symbol.toStringTag,{value:"Module"}));function OG(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:i,chainId:s}=e;let o=n,a=i;const l=Object.values(this.contexts),c=[];for(let f=1;fX(s).length===0))return E5;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:i.to,data:i.data,value:i.value})}))).map(i=>({executed:!0,succeeded:!0,gasUsed:q.from(i).toNumber(),gasLimit:q.from(i).toNumber()}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const s=await new $a(e,lr.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return ue.transaction.encodeNonce(r,s)}async wait(e,r,n=this.waitPollRate,i=5){var s=this;typeof e!="string"&&(e=ue.transaction.intendedTransactionID(e));let o=!1;const a=async function(f,u){let h=0;for(;!o;){try{return await f()}catch(y){if(h++,i!==void 0&&h>=i)throw ge.error(`giving up after ${h} failed attempts${u?`: ${u}`:""}`,y),y;ge.warn(`attempt #${h} failed${u?`: ${u}`:""}`,y)}n>0&&await new Promise(y=>setTimeout(y,n))}throw new Error(`timed out after ${h} failed attempts${u?`: ${u}`:""}`)},l=async function(){let f=s.fromBlockLog;if(f<0&&(f=await a(()=>s.provider.getBlockNumber(),"unable to get latest block number")+f),typeof e!="string")throw new Error("impossible");const u=e.replace("0x","");for(;!o;){const h=await a(()=>s.provider.getBlockNumber(),"unable to get latest block number"),y=await a(()=>s.provider.getLogs({fromBlock:Math.max(0,f-s.deltaBlocksLog),toBlock:h,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,f-s.deltaBlocksLog)} to ${h}`);f=h;const p=(await Promise.all(y.map(k=>a(()=>s.provider.getTransactionReceipt(k.transactionHash),`unable to get receipt for transaction ${k.transactionHash}`)))).find(k=>k.logs.find(w=>w.topics.length===0&&w.data.replace("0x","")===u||w.topics.length===1&&w.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&w.data.length>=64&&w.data.replace("0x","").startsWith(u)));if(p)return po({receipt:p},await a(()=>s.provider.getTransaction(p.transactionHash),`unable to get transaction ${p.transactionHash}`));o||await new Promise(k=>setTimeout(k,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([l(),new Promise((c,f)=>setTimeout(()=>{o=!0,f(`Timeout waiting for transaction receipt ${e}`)},r))]):l()}}function FG(t){return t.signer!==void 0&&vo.isSigner(t.signer)}class UG extends xk{constructor(e){if(super(vo.isSigner(e)?{provider:e.provider}:po({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=vo.isSigner(e)?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&ge.warn("LocalRelayer doesn't accept fee quotes");const i=ue.transaction.encodeBundleExecData(e),s=this.signer.sendTransaction(po({to:e.entrypoint,data:i},this.txnOptions,{gasLimit:9e6}));if(n){const o=await s;return o.receipt=await o.wait(),o}else return s}}const zG="v1",VG="v0.4.1",qG="13cf0e854e8127ae83218cc188ef0e7456241c96";let qs=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),HG=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),WG=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),GG=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class bk{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=n=>this.fetch(this.url("Ping"),Ye({},n)).then(i=>Qe(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),Ye({},n)).then(i=>Qe(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),Ye({},n)).then(i=>Qe(i).then(s=>({status:s.status}))),this.getSequenceContext=n=>this.fetch(this.url("GetSequenceContext"),Ye({},n)).then(i=>Qe(i).then(s=>({data:s.data}))),this.getChainID=n=>this.fetch(this.url("GetChainID"),Ye({},n)).then(i=>Qe(i).then(s=>({chainID:s.chainID}))),this.sendMetaTxn=(n,i)=>this.fetch(this.url("SendMetaTxn"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,txnHash:o.txnHash}))),this.getMetaTxnNonce=(n,i)=>this.fetch(this.url("GetMetaTxnNonce"),Ye(n,i)).then(s=>Qe(s).then(o=>({nonce:o.nonce}))),this.getMetaTxnReceipt=(n,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Ye(n,i)).then(s=>Qe(s).then(o=>({receipt:o.receipt}))),this.simulate=(n,i)=>this.fetch(this.url("Simulate"),Ye(n,i)).then(s=>Qe(s).then(o=>({results:o.results}))),this.updateMetaTxnGasLimits=(n,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Ye(n,i)).then(s=>Qe(s).then(o=>({payload:o.payload}))),this.feeTokens=n=>this.fetch(this.url("FeeTokens"),Ye({},n)).then(i=>Qe(i).then(s=>({isFeeRequired:s.isFeeRequired,tokens:s.tokens}))),this.feeOptions=(n,i)=>this.fetch(this.url("FeeOptions"),Ye(n,i)).then(s=>Qe(s).then(o=>({options:o.options,sponsored:o.sponsored,quote:o.quote}))),this.getMetaTxnNetworkFeeOptions=(n,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Ye(n,i)).then(s=>Qe(s).then(o=>({options:o.options}))),this.getMetaTransactions=(n,i)=>this.fetch(this.url("GetMetaTransactions"),Ye(n,i)).then(s=>Qe(s).then(o=>({page:o.page,transactions:o.transactions}))),this.sentTransactions=(n,i)=>this.fetch(this.url("SentTransactions"),Ye(n,i)).then(s=>Qe(s).then(o=>({page:o.page,transactions:o.transactions}))),this.pendingTransactions=(n,i)=>this.fetch(this.url("PendingTransactions"),Ye(n,i)).then(s=>Qe(s).then(o=>({page:o.page,transactions:o.transactions}))),this.getGasTank=(n,i)=>this.fetch(this.url("GetGasTank"),Ye(n,i)).then(s=>Qe(s).then(o=>({gasTank:o.gasTank}))),this.addGasTank=(n,i)=>this.fetch(this.url("AddGasTank"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,gasTank:o.gasTank}))),this.updateGasTank=(n,i)=>this.fetch(this.url("UpdateGasTank"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,gasTank:o.gasTank}))),this.getGasSponsor=(n,i)=>this.fetch(this.url("GetGasSponsor"),Ye(n,i)).then(s=>Qe(s).then(o=>({gasSponsor:o.gasSponsor}))),this.listGasSponsors=(n,i)=>this.fetch(this.url("ListGasSponsors"),Ye(n,i)).then(s=>Qe(s).then(o=>({page:o.page,gasSponsors:o.gasSponsors}))),this.addGasSponsor=(n,i)=>this.fetch(this.url("AddGasSponsor"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,gasSponsor:o.gasSponsor}))),this.updateGasSponsor=(n,i)=>this.fetch(this.url("UpdateGasSponsor"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,gasSponsor:o.gasSponsor}))),this.removeGasSponsor=(n,i)=>this.fetch(this.url("RemoveGasSponsor"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status}))),this.reportGasSponsorUsage=(n,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Ye(n,i)).then(s=>Qe(s).then(o=>({gasSponsorUsage:o.gasSponsorUsage}))),this.nextGasTankBalanceAdjustmentNonce=(n,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Ye(n,i)).then(s=>Qe(s).then(o=>({nonce:o.nonce}))),this.adjustGasTankBalance=(n,i)=>this.fetch(this.url("AdjustGasTankBalance"),Ye(n,i)).then(s=>Qe(s).then(o=>({status:o.status,adjustment:o.adjustment}))),this.getGasTankBalanceAdjustment=(n,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Ye(n,i)).then(s=>Qe(s).then(o=>({adjustment:o.adjustment}))),this.listGasTankBalanceAdjustments=(n,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Ye(n,i)).then(s=>Qe(s).then(o=>({page:o.page,adjustments:o.adjustments}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Ye=(t={},e={})=>({method:"POST",headers:po({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Qe=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r});var tc=Object.freeze({__proto__:null,WebRPCVersion:zG,WebRPCSchemaVersion:VG,WebRPCSchemaHash:qG,ETHTxnStatus:qs,TransferType:HG,FeeTokenType:WG,SortOrder:GG,Relayer:bk});const KG=[qs.DROPPED,qs.SUCCEEDED,qs.PARTIALLY_FAILED,qs.FAILED],JG=[qs.DROPPED,qs.PARTIALLY_FAILED,qs.FAILED];function YG(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&Ao.isProvider(t.provider)}const QG=typeof global=="object"?global.fetch:window.fetch;class wk{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const i={},{jwtAuth:s,projectAccessKey:o}=this.options;return s&&s.length>0&&(i.Authorization=`BEARER ${s}`),o&&o.length>0&&(i["X-Access-Key"]=o),n.headers=po({},n.headers,i),QG(r,n)},this.service=new bk(e.url,this._fetch),Ao.isProvider(e.provider))this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,i=cu(e.provider.url,n,r);this.provider=new rh(i)}}async waitReceipt(e,r=1e3,n=5,i){typeof e!="string"&&(e=ue.transaction.intendedTransactionID(e)),ge.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let s=0;for(;i===void 0||!i();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&KG.includes(o.status))return{receipt:o}}catch(o){if(s++,s===n)throw o}(i===void 0||!i())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const i=Yr.encode([ue.transaction.MetaTransactionsType],[ue.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:i})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const i=n.tokens.map(l=>l.symbol).join(", ");ge.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${i}`);const s=await this.getNonce(e);if(!this.provider)throw ge.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:ue.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:s})});return ge.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return ge.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:i,quote:s}=await this.service.feeOptions({wallet:e,to:e,data:Q(r),simulate:n==null?void 0:n.simulate});return{options:i,quote:{_tag:"FeeQuote",_quote:s}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){ge.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?q.from(r).toHexString():void 0,i=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),s=q.from(i.nonce),[o,a]=ue.transaction.decodeNonce(s);return ge.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),s}async relay(e,r,n=!0){var i=this;ge.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e)} with quote ${JSON.stringify(r)}`);let s;if(r!==void 0&&(typeof r._quote=="string"?s=r._quote:ge.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw ge.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const o=ue.transaction.encodeBundleExecData(e),a=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:o},quote:s});if(ge.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(a)}`),n)return this.wait(e.intent.id);{const l={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:f=>Promise.reject(new Error("impossible"))},c=async function(u){var h;if(!i.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const y=await i.wait(e.intent.id),g=(h=y.receipt)==null?void 0:h.transactionHash;if(!g)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(l,y),i.provider.waitForTransaction(g,u)};return l.wait=c,l}}async wait(e,r,n=1e3,i=5){var s=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,i,()=>o),new Promise((c,f)=>setTimeout(()=>{o=!0,f(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,i));if(!a.txnReceipt||JG.includes(a.status))throw new XG(a);const l=JSON.parse(a.txnReceipt);return{blockHash:l.blockHash,blockNumber:q.from(l.blockNumber).toNumber(),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:l.transactionHash,raw:a.txnReceipt,receipt:l,wait:async function(c){return s.provider.waitForTransaction(l.transactionHash,c)}}}}class XG{constructor(e){this.receipt=e}}function Ck(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const ZG=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:UG,ProviderRelayer:xk,ProviderRelayerDefaults:mk,RpcRelayer:wk,RpcRelayerProto:tc,isLocalRelayerOptions:FG,isProviderRelayerOptions:jG,isRelayer:Ck,isRpcRelayerOptions:YG,proto:tc},Symbol.toStringTag,{value:"Module"}));function Ek(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class Sk{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e,r){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return[2]}}var og=Object.freeze({__proto__:null,isSapientSigner:Ek,SignerWrapper:Sk});let Hs=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function kk(t){return t===void 0||t.state===Hs.INITIAL||t.state===Hs.SIGNING}class b1{constructor(e,r=b1.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${Q(Ci(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>Ek(r)?r:new Sk(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(i){return i.notifyStatusChange(e,r,n)}),...this.observers.map(async function(i){return i(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const i=await n.buildDeployTransaction(e);r===void 0?r=i:i!=null&&i.transactions&&(r.transactions=i.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(i){const{message:s,metadata:o,callback:a,candidates:l}=e,c={ended:!1,message:s,signers:{}};let f=o??{};const u=p=>{f=p,r.notifyObservers(n,c,f)},h=()=>{try{r.notifyObservers(n,c,f);const p=Object.entries(c.signers).filter(([k,w])=>kk(w));if(a&&a(c,u)||p.length===0){c.ended=!0,i(c),r.notifyObservers(n,c,f);return}}catch(p){console.error("Error while notifying observers",p)}};let y=r.signers;if(l){const p=await Promise.all(r.signers.map(async function(k){return k.getAddress()}));y=r.signers.filter((k,w)=>l.includes(p[w]))}const g=await Promise.allSettled(y.map(async function(p){const k=await p.getAddress();c.signers[k]={state:Hs.SIGNING,request:p.sign(s,o??{}).then(w=>{const E=p.suffix();return c.signers[k]={state:Hs.SIGNED,signature:w,suffix:E},h(),w}).catch(w=>{throw c.signers[k]={state:Hs.ERROR,error:w},h(),w})}}));for(let p=0;pnt(e))):nt(t)}const k5=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===Hs.SIGNED){const i=X(n.suffix),s=Ie(["bytes","bytes"],[n.signature,i]);e.set(r,{signature:s,isDynamic:i.length!==1||i[0]!==2})}}return e};class uu extends vo{constructor(e){if(Lt.eq(e.chainId)&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super(),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.provider=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=e.chainId,this.provider=e.provider,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=ue.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new uu(Ds({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new ue.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:ue.transaction.encodeBundleExecData(r),revertOnError:!0}],i=await this.buildDeployTransaction();return i&&n.unshift(...i.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(ue.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);const n=uu.buildDeployTransaction(this.context,r);if(e!=null&&e.includeChildren){const i=await this.orchestrator.buildDeployTransaction(e);i&&(n.transactions=i.transactions.concat(n.transactions))}return n}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Ds({},r,{chainId:this.chainId,intent:{id:Q(Ci(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r){const n=new Dt(lr.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:n.encodeFunctionData(n.getFunction("deploy"),[e.mainModule,r]),gasLimit:1e5,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return r}async signDigest(e,r){const n=Kp(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const i=Ds({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),s=X(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(l=>l.address),message:s,metadata:i,callback:(l,c)=>{const f=k5(l),u=Ds({},i,{parts:f});return c(u),this.coders.signature.hasEnoughSigningPower(this.config,f)}}),a=k5(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(xe(e),{message:e})}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=q.from(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return ue.transaction.encodeNonce(r,n)}randomNonce(){const e=q.from(Q(Ci(12)));return ue.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const i=await S5(e),s=ue.transaction.fromTransactionish(this.address,i);s.length===0&&s.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=ue.transaction.digestOfTransactions(o,s),l=Ds({digest:a,transactions:s},n),c=await this.signDigest(a,l);return{intent:{id:Kp(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:s,entrypoint:this.address,nonce:o,signature:c}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const i=await this.signTransactions(e,n),s=await this.decorateTransactions(i);return this.sendSignedTransaction(s,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await S5(e),n=ue.transaction.fromTransactionish(this.address,r),i=this.relayer;if(!i)throw new Error("Wallet fillGasLimits requires a relayer");const s=await i.simulate(this.address,...n);return n.map((o,a)=>{const l=o.gasLimit?q.from(o.gasLimit).toNumber():s[a].gasLimit;return Ds({},o,s[a],{gasLimit:l})})}connect(e,r){return this.provider=e,this.relayer=r,this}signTransaction(e){throw new Error("Method not implemented.")}}function Wi(){return Wi=Object.assign?Object.assign.bind():function(t){for(var e=1;etK(t[e])):!1}function nK(t){if(!t)return[];const e=q.from(t.value);switch(t.token.type){case tc.FeeTokenType.UNKNOWN:return[{delegateCall:!1,revertOnError:!0,gasLimit:t.gasLimit,to:t.to,value:e.toHexString(),data:[]}];case tc.FeeTokenType.ERC20_TOKEN:if(!t.token.contractAddress)throw new Error("No contract address for ERC-20 fee option");return[{delegateCall:!1,revertOnError:!0,gasLimit:t.gasLimit,to:t.token.contractAddress,value:0,data:new Dt([{constant:!1,inputs:[{type:"address"},{type:"uint256"}],name:"transfer",outputs:[],type:"function"}]).encodeFunctionData("transfer",[t.to,e.toHexString()])}];default:throw new Error(`Unhandled fee token type ${t.token.type}`)}}class iK{constructor(e,r,n){this.account=e,this.chainId=r,this.options=n,this._isSigner=!0}get provider(){return this.account.providerFor(this.chainId)}async getAddress(){return this.account.address}signMessage(e){var r,n;return this.account.signMessage(e,this.chainId,(r=(n=this.options)==null?void 0:n.cantValidateBehavior)!=null?r:"throw")}async defaultSelectFee(e,r){if(r.length===0)return;const n=[{constant:!0,inputs:[{type:"address"}],name:"balanceOf",outputs:[{type:"uint256"}],type:"function"}];for(const i of r)if(i.token.type===tc.FeeTokenType.UNKNOWN){if((await this.getBalance()).gte(q.from(i.value)))return i}else if(i.token.contractAddress&&i.token.type===tc.FeeTokenType.ERC20_TOKEN&&(await new $a(i.token.contractAddress,n,this.provider).balanceOf(this.account.address)).gte(q.from(i.value)))return i;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,i,s,o,a;const l=rK(e)?await nt(e):e,c=await this.account.prepareTransactions({txs:l,chainId:this.chainId,stubSignatureOverrides:(n=(i=this.options)==null?void 0:i.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((s=(o=this.options)==null?void 0:o.selectFee)!=null?s:this.defaultSelectFee.bind(this))(l,c.feeOptions),h=[...c.transactions,...nK(u)];return this.account.sendTransaction(h,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(e,r)}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(q.from(this.chainId).toNumber())}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class sK{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return Lt}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class Zi{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Se(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||sg.DefaultMigrations,this.migrator=new ig.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new iK(this,e,r)}static async new(e){var r;const i=new ig.Migrator(e.tracker,(r=e.migrations)!=null?r:sg.DefaultMigrations,e.contexts).lastMigration(),s=i.configCoder,o=s.fromSimple(e.config),a=s.imageHashOf(o),l=e.contexts[i.version],c=ue.context.addressOf(l,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new Zi({address:c,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=q.from(e),n=this.networks.find(i=>r.eq(i.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);return r.provider||new rh(cu(r.rpcUrl,this.projectAccessKey,this.jwt),{name:"",chainId:q.from(e).toNumber()})}reader(e){return Lt.eq(e)?new sK:new ue.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return Ck(r.relayer)?r.relayer:new wk(Wi({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=kr.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,i){const s=Lt.eq(e);return new uu({config:n,context:r,chainId:e,coders:i,relayer:s?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const i=this.reader(e).isDeployed(this.address),s=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(M=>{if(!M)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return M}),o=s.then(M=>yk.counterfactualVersion(this.address,M.imageHash,Object.values(this.contexts))),a=async function(){if(!await i)return o;const j=await n.reader(e).implementation(n.address);if(!j)throw new Error(`Implementation not found for wallet ${n.address}`);const U=Object.values(n.contexts);for(let F=0;F0?p[p.length-1].nextImageHash:h,w=await this.tracker.configOfImageHash({imageHash:k});if(!w)throw new Error(`Config not found for imageHash ${k}`);const E=await i,A=await s,P=kr.coderFor(y).config.checkpointOf(w);return{original:Wi({},A,{version:await o}),onChain:{imageHash:u,config:await c,version:f,deployed:E},fullyMigrated:y===this.version,signedMigrations:g,version:y,presignedConfigurations:p,imageHash:k,config:w,checkpoint:P,canOnchainValidate:f===this.version&&E}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),i=await this.predecorateTransactions([],e,r);return ue.transaction.fromTransactionish(this.address,i).length>0&&n.push(await this.signTransactions(i,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const s=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],s.transactions].flat()}return e}async decorateTransactions(e,r,n){var i,s;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(i=n)!=null?i:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:l}=a?o:e[0],c={entrypoint:l,chainId:n,intent:(s=e[0])==null?void 0:s.intent,transactions:[...o.transactions,...e.map(f=>({to:f.entrypoint,data:ue.transaction.encodeBundleExecData(f),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const f=ue.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,c.transactions);c.intent===void 0?c.intent={id:f,wallet:this.address}:c.intent.id=f}return c}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,i=r.presignedConfigurations.map(o=>o.signature),s=n.chainSignatures(e,i);return n.trim(s)}async publishWitness(){const e=xe(Ke(`This is a Sequence account woo! ${Date.now()}`)),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),i=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:i})}async signDigest(e,r,n=!0,i="ignore",s){const o=Lt.eq(r)?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&i==="throw")throw new Error("Wallet cannot validate onchain");const c=await this.walletForStatus(r,a).signDigest(e,s),f=n?this.decorateSignature(c,a):c;if(!a.canOnchainValidate)switch(i){case"ignore":return f;case"eip6492":return this.buildEIP6492Signature(await f,a,r)}return f}buildOnChainSignature(e){const r=ue.signature.subdigestOf({digest:Q(e),chainId:0,address:this.address}),n=Q(r),i=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),s=new Dt(lr.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:s.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(i),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:i});const a=this.coders.signature.encodeSigners(i,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const i=await this.buildBootstrapTransactions(r,n);if(i.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const s=Yr.encode(["address","bytes","bytes"],[i.entrypoint,ue.transaction.encodeBundleExecData(i),e]);return Ie(["bytes","bytes32"],[s,ue.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(i=>i.config),n=this.coders.config.editConfig(r,Wi({},e,{checkpoint:this.coders.config.checkpointOf(r).add(1)}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),i=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:i});const s=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!s||this.coders.config.imageHashOf(s)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const i=await this.orchestrator.buildDeployTransaction({chainId:r}),s=(n=i==null?void 0:i.transactions)!=null?n:[];if(!e.onChain.deployed){const l=uu.buildDeployTransaction(e.original.context,e.original.imageHash);s.push(...l.transactions)}s.length,s.push(...e.signedMigrations.map(l=>({to:l.tx.entrypoint,data:ue.transaction.encodeBundleExecData(l.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:ue.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,s),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:s,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const i=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(Wi({},i,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(xe(e),r,!0,n)}async signTransactions(e,r,n,i){const s=n||await this.status(r);this.mustBeFullyMigrated(s);const o=this.walletForStatus(r,s),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},l=i!=null&&i.serial?{serial:!0}:(i==null?void 0:i.nonceSpace)!==void 0?{space:i.nonceSpace}:void 0,c=await o.signTransactions(e,l,a);return Wi({},c,{signature:await this.decorateSignature(c.signature,s)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const i=this.walletForStatus(e,n),s=r(i.config),o=await this.migrator.signNextMigration(this.address,n.version,i,s);if(!o)return!1;await this.tracker.saveWalletConfig({config:s});const a=kr.coderFor(s.version).config,l=a.imageHashOf(s),c=await this.tracker.configOfImageHash({imageHash:l,noCache:!0});if(!c||a.imageHashOf(c)!==l)throw Error(`Reverse lookup failed for imageHash ${l}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(s){try{return await e.status(s.chainId)}catch(o){return r.push(s.chainId),console.warn(`Failed to get status for chain ${s.chainId}`,o),{fullyMigrated:!0}}}))).every(s=>s.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,i,s){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,i,s);const o=i||await this.status(r);this.mustBeFullyMigrated(o);const a=await this.decorateTransactions(e,o,r);return s==null||s(a),this.relayer(r).relay(a,n)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,i,s){const o=i||await this.status(r),a=this.walletForStatus(r,o),l=await this.predecorateTransactions(e,o,r),c=ue.transaction.fromTransactionish(this.address,l),f=a.coders.config.buildStubSignature(a.config,n),u=Q(Ci(32)),h={chainId:r,intent:{id:u,wallet:this.address},signature:f,transactions:c,entrypoint:this.address,nonce:0},y=await this.decorateTransactions(h,o),g=ue.transaction.encodeBundleExecData(y),p=await this.relayer(r).getFeeOptionsRaw(y.entrypoint,g,s);return Wi({},p,{decorated:y})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),i=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions}),s=ue.transaction.unwind(this.address,i.decorated.transactions);return{transactions:n,flatDecorated:s,feeOptions:i.options,feeQuote:i.quote}}async sendTransaction(e,r,n,i=!1,s,o){const a=await this.status(r),l=i?e:await this.predecorateTransactions(e,a,r),f=ue.transaction.fromTransactionish(this.address,l).length>0?await this.signTransactions(l,r,void 0,o):void 0,u=await this.orchestrator.predecorateSignedTransactions({chainId:r}),h=[];return f!==void 0&&f.transactions.length>0&&h.push(f),h.push(...u.filter(y=>y.transactions.length>0)),this.sendSignedTransactions(h,r,n,void 0,s)}async signTypedData(e,r,n,i,s="ignore"){const o=Pu({domain:e,types:r,message:n});return this.signDigest(o,i,!0,s)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:i}){try{var s;const o=await e.status(n);let a=(s=r(o.presignedConfigurations))==null?void 0:s.nextImageHash;if(!a&&o.onChain.version!==o.version){const u=r(o.signedMigrations);if(u){const{toVersion:h,toConfig:y}=u;a=kr.genericCoderFor(h).config.imageHashOf(y)}}a||(a=o.onChain.imageHash);const l=await e.tracker.configOfImageHash({imageHash:a});if(!l)throw new Error(`unable to find config for image hash ${a}`);return kr.genericCoderFor(l.version).config.signersOf(l).map(u=>Wi({},u,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${i}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const i=n.chainId,s=await e.status(i,!0),o=[s.onChain.imageHash,...s.onChain.version!==s.version?s.signedMigrations.map(a=>kr.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...s.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,l){const c=l===o.length-1,f=await e.tracker.configOfImageHash({imageHash:a});if(!f){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}kr.genericCoderFor(f.version).config.signersOf(f).forEach(y=>{const g=r.find(p=>p.address===y.address&&p.network===i);if(g&&c&&g.flaggedForRemoval){g.flaggedForRemoval=!1;return}g||r.push({address:y.address,weight:y.weight,network:i,flaggedForRemoval:!c})})}))})),r}}function oK(t){return t instanceof Zi}const aK=Object.freeze(Object.defineProperty({__proto__:null,Account:Zi,isAccount:oK},Symbol.toStringTag,{value:"Module"}));function hh(){return hh=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),rr({},n)).then(i=>nr(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),rr({},n)).then(i=>nr(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),rr({},n)).then(i=>nr(i).then(s=>({status:s.status}))),this.getChainID=n=>this.fetch(this.url("GetChainID"),rr({},n)).then(i=>nr(i).then(s=>({chainID:s.chainID}))),this.getEtherBalance=(n,i)=>this.fetch(this.url("GetEtherBalance"),rr(n,i)).then(s=>nr(s).then(o=>({balance:o.balance}))),this.getTokenBalances=(n,i)=>this.fetch(this.url("GetTokenBalances"),rr(n,i)).then(s=>nr(s).then(o=>({page:o.page,balances:o.balances}))),this.getTokenSupplies=(n,i)=>this.fetch(this.url("GetTokenSupplies"),rr(n,i)).then(s=>nr(s).then(o=>({page:o.page,contractType:o.contractType,tokenIDs:o.tokenIDs}))),this.getTokenSuppliesMap=(n,i)=>this.fetch(this.url("GetTokenSuppliesMap"),rr(n,i)).then(s=>nr(s).then(o=>({supplies:o.supplies}))),this.getBalanceUpdates=(n,i)=>this.fetch(this.url("GetBalanceUpdates"),rr(n,i)).then(s=>nr(s).then(o=>({page:o.page,balances:o.balances}))),this.getTransactionHistory=(n,i)=>this.fetch(this.url("GetTransactionHistory"),rr(n,i)).then(s=>nr(s).then(o=>({page:o.page,transactions:o.transactions}))),this.syncBalance=(n,i)=>this.fetch(this.url("SyncBalance"),rr(n,i)).then(s=>nr(s).then(o=>({}))),this.fetchTransactionReceipt=(n,i)=>this.fetch(this.url("FetchTransactionReceipt"),rr(n,i)).then(s=>nr(s).then(o=>({receipt:o.receipt}))),this.getOrderbookOrders=(n,i)=>this.fetch(this.url("GetOrderbookOrders"),rr(n,i)).then(s=>nr(s).then(o=>({page:o.page,orders:o.orders}))),this.getTopOrders=(n,i)=>this.fetch(this.url("GetTopOrders"),rr(n,i)).then(s=>nr(s).then(o=>({orders:o.orders}))),this.fetchTransactionReceiptWithFilter=(n,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),rr(n,i)).then(s=>nr(s).then(o=>({receipt:o.receipt}))),this.getAllWebhookListeners=(n,i)=>this.fetch(this.url("GetAllWebhookListeners"),rr(n,i)).then(s=>nr(s).then(o=>({listeners:o.listeners}))),this.getWebhookListener=(n,i)=>this.fetch(this.url("GetWebhookListener"),rr(n,i)).then(s=>nr(s).then(o=>({listener:o.listener}))),this.addWebhookListener=(n,i)=>this.fetch(this.url("AddWebhookListener"),rr(n,i)).then(s=>nr(s).then(o=>({status:o.status,listener:o.listener}))),this.updateWebhookListener=(n,i)=>this.fetch(this.url("UpdateWebhookListener"),rr(n,i)).then(s=>nr(s).then(o=>({status:o.status}))),this.removeWebhookListener=(n,i)=>this.fetch(this.url("RemoveWebhookListener"),rr(n,i)).then(s=>nr(s).then(o=>({status:o.status}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const rr=(t={},e={})=>({method:"POST",headers:hh({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),nr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r}),A5=typeof global=="object"?global.fetch:window.fetch;class _k extends Ak{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,A5),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(i,s)=>{const o={},a=this.jwtAuth,l=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),l&&l.length>0&&(o["X-Access-Key"]=l),s.headers=hh({},s.headers,o),A5(i,s)},this.fetch=this._fetch}}const xK=Object.freeze(Object.defineProperty({__proto__:null,ContractType:uK,EventLogDataType:hK,EventLogType:dK,Indexer:Ak,OrderStatus:vK,SequenceIndexer:_k,SortOrder:mK,TransactionStatus:pK,TransactionType:gK,TxnTransferType:yK,WebRPCSchemaHash:fK,WebRPCSchemaVersion:cK,WebRPCVersion:lK},Symbol.toStringTag,{value:"Module"}));function du(){return du=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),_e({},n)).then(i=>Te(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),_e({},n)).then(i=>Te(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),_e({},n)).then(i=>Te(i).then(s=>({status:s.status}))),this.getTokenMetadata=(n,i)=>this.fetch(this.url("GetTokenMetadata"),_e(n,i)).then(s=>Te(s).then(o=>({tokenMetadata:o.tokenMetadata}))),this.refreshTokenMetadata=(n,i)=>this.fetch(this.url("RefreshTokenMetadata"),_e(n,i)).then(s=>Te(s).then(o=>({taskId:o.taskId}))),this.enqueueTokensForRefresh=(n,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),_e(n,i)).then(s=>Te(s).then(o=>({taskId:o.taskId}))),this.getTokenRefreshStatus=(n,i)=>this.fetch(this.url("GetTokenRefreshStatus"),_e(n,i)).then(s=>Te(s).then(o=>({status:o.status}))),this.getTokenRefreshResult=(n,i)=>this.fetch(this.url("GetTokenRefreshResult"),_e(n,i)).then(s=>Te(s).then(o=>({status:o.status,tokens:o.tokens,failureReasons:o.failureReasons}))),this.cancelRefreshJob=(n,i)=>this.fetch(this.url("CancelRefreshJob"),_e(n,i)).then(s=>Te(s).then(o=>({ok:o.ok}))),this.getTokenMetadataBatch=(n,i)=>this.fetch(this.url("GetTokenMetadataBatch"),_e(n,i)).then(s=>Te(s).then(o=>({contractTokenMetadata:o.contractTokenMetadata}))),this.searchTokenMetadata=(n,i)=>this.fetch(this.url("SearchTokenMetadata"),_e(n,i)).then(s=>Te(s).then(o=>({page:o.page,tokenMetadata:o.tokenMetadata}))),this.searchTokenIDs=(n,i)=>this.fetch(this.url("SearchTokenIDs"),_e(n,i)).then(s=>Te(s).then(o=>({page:o.page,tokenIds:o.tokenIds}))),this.tokenCollectionFilters=(n,i)=>this.fetch(this.url("TokenCollectionFilters"),_e(n,i)).then(s=>Te(s).then(o=>({filters:o.filters}))),this.getContractInfo=(n,i)=>this.fetch(this.url("GetContractInfo"),_e(n,i)).then(s=>Te(s).then(o=>({contractInfo:o.contractInfo}))),this.getContractInfoBatch=(n,i)=>this.fetch(this.url("GetContractInfoBatch"),_e(n,i)).then(s=>Te(s).then(o=>({contractInfoMap:o.contractInfoMap}))),this.searchContractInfo=(n,i)=>this.fetch(this.url("SearchContractInfo"),_e(n,i)).then(s=>Te(s).then(o=>({contractInfoList:o.contractInfoList}))),this.searchContractInfoBatch=(n,i)=>this.fetch(this.url("SearchContractInfoBatch"),_e(n,i)).then(s=>Te(s).then(o=>({contractInfoByChain:o.contractInfoByChain}))),this.searchMetadata=(n,i)=>this.fetch(this.url("SearchMetadata"),_e(n,i)).then(s=>Te(s).then(o=>({tokenMetadata:o.tokenMetadata,contractInfo:o.contractInfo}))),this.getNiftyswapTokenQuantity=(n,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),_e(n,i)).then(s=>Te(s).then(o=>({quantity:o.quantity}))),this.getNiftyswapUnitPrices=(n,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),_e(n,i)).then(s=>Te(s).then(o=>({prices:o.prices}))),this.getNiftyswapUnitPricesWithQuantities=(n,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),_e(n,i)).then(s=>Te(s).then(o=>({prices:o.prices}))),this.addContractToMintMonitor=(n,i)=>this.fetch(this.url("AddContractToMintMonitor"),_e(n,i)).then(s=>Te(s).then(o=>({ok:o.ok}))),this.removeContractFromMintMonitor=(n,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),_e(n,i)).then(s=>Te(s).then(o=>({ok:o.ok}))),this.mintMonitorJobStatus=(n,i)=>this.fetch(this.url("MintMonitorJobStatus"),_e(n,i)).then(s=>Te(s).then(o=>({task:o.task}))),this.mintMonitorTriggerJob=(n,i)=>this.fetch(this.url("MintMonitorTriggerJob"),_e(n,i)).then(s=>Te(s).then(o=>({ok:o.ok}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}class Ik{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,i)=>this.fetch(this.url("CreateCollection"),_e(n,i)).then(s=>Te(s).then(o=>({collection:o.collection}))),this.getCollection=(n,i)=>this.fetch(this.url("GetCollection"),_e(n,i)).then(s=>Te(s).then(o=>({collection:o.collection}))),this.listCollections=(n,i)=>this.fetch(this.url("ListCollections"),_e(n,i)).then(s=>Te(s).then(o=>({page:o.page,collections:o.collections}))),this.updateCollection=(n,i)=>this.fetch(this.url("UpdateCollection"),_e(n,i)).then(s=>Te(s).then(o=>({collection:o.collection}))),this.deleteCollection=(n,i)=>this.fetch(this.url("DeleteCollection"),_e(n,i)).then(s=>Te(s).then(o=>({status:o.status}))),this.publishCollection=(n,i)=>this.fetch(this.url("PublishCollection"),_e(n,i)).then(s=>Te(s).then(o=>({collection:o.collection}))),this.unpublishCollection=(n,i)=>this.fetch(this.url("UnpublishCollection"),_e(n,i)).then(s=>Te(s).then(o=>({collection:o.collection}))),this.createToken=(n,i)=>this.fetch(this.url("CreateToken"),_e(n,i)).then(s=>Te(s).then(o=>({token:o.token,assets:o.assets}))),this.getToken=(n,i)=>this.fetch(this.url("GetToken"),_e(n,i)).then(s=>Te(s).then(o=>({token:o.token,assets:o.assets}))),this.listTokens=(n,i)=>this.fetch(this.url("ListTokens"),_e(n,i)).then(s=>Te(s).then(o=>({page:o.page,tokens:o.tokens}))),this.updateToken=(n,i)=>this.fetch(this.url("UpdateToken"),_e(n,i)).then(s=>Te(s).then(o=>({token:o.token}))),this.deleteToken=(n,i)=>this.fetch(this.url("DeleteToken"),_e(n,i)).then(s=>Te(s).then(o=>({status:o.status}))),this.createAsset=(n,i)=>this.fetch(this.url("CreateAsset"),_e(n,i)).then(s=>Te(s).then(o=>({asset:o.asset}))),this.getAsset=(n,i)=>this.fetch(this.url("GetAsset"),_e(n,i)).then(s=>Te(s).then(o=>({asset:o.asset}))),this.updateAsset=(n,i)=>this.fetch(this.url("UpdateAsset"),_e(n,i)).then(s=>Te(s).then(o=>({asset:o.asset}))),this.deleteAsset=(n,i)=>this.fetch(this.url("DeleteAsset"),_e(n,i)).then(s=>Te(s).then(o=>({status:o.status}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const _e=(t={},e={})=>({method:"POST",headers:du({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Te=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r}),vh=typeof global=="object"?global.fetch:window.fetch;class Pk extends Tk{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,vh),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(i,s)=>{const o={},a=this.jwtAuth,l=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),l&&l.length>0&&(o["X-Access-Key"]=l),s.headers=du({},s.headers,o),vh(i,s)},this.fetch=this._fetch}}class _K extends Ik{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,vh),this.jwtAuth=r,this._fetch=(n,i)=>{const s={},o=this.jwtAuth;return o&&o.length>0&&(s.Authorization=`BEARER ${o}`),i.headers=du({},i.headers,s),vh(n,i)},this.fetch=this._fetch}}const TK=Object.freeze(Object.defineProperty({__proto__:null,Collections:Ik,ContractType:EK,Metadata:Tk,PropertyType:SK,SequenceCollections:_K,SequenceMetadata:Pk,SwapType:kK,TaskStatus:AK,WebRPCSchemaHash:CK,WebRPCSchemaVersion:wK,WebRPCVersion:bK},Symbol.toStringTag,{value:"Module"}));function IK(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function PK(t){return t.startsWith("ipfs://")}class RK{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const i=`${e}-${r}-${n}`,s=Date.now();if(this.pending.has(i)&&s-this.pending.get(i).timestamp10)throw new Error("EIP5719 - Too many tries");if(ue.signer.canRecover(n)){const l=ue.signer.recoverSigner(r,n);if(l&&l.toLowerCase()===t.toLowerCase())return n}try{if(await ue.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await OK(MK(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=Q(await(i||new NK).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===Q(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return Rk(t,e,r,a,i,s+1)}class NK{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>PK(n)?IK(n,this.gateway):n,this.resolve=async function(n){const i=r.uri(n),s=await fetch(i);if(!s.ok)throw new Error(`URISolverIPFS - Failed to fetch ${i}`);return await s.text()}}}const $K=(t,e)=>e.some(r=>t instanceof r);let _5,T5;function DK(){return _5||(_5=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function BK(){return T5||(T5=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const Mk=new WeakMap,ag=new WeakMap,Ok=new WeakMap,Qv=new WeakMap,ab=new WeakMap;function LK(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{r(so(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&Mk.set(r,t)}).catch(()=>{}),ab.set(e,t),e}function jK(t){if(ag.has(t))return;const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("complete",s),t.removeEventListener("error",o),t.removeEventListener("abort",o)},s=()=>{r(),i()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",s),t.addEventListener("error",o),t.addEventListener("abort",o)});ag.set(t,e)}let lg={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return ag.get(t);if(e==="objectStoreNames")return t.objectStoreNames||Ok.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return so(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function FK(t){lg=t(lg)}function UK(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(Xv(this),e,...r);return Ok.set(n,e.sort?e.sort():[e]),so(n)}:BK().includes(t)?function(...e){return t.apply(Xv(this),e),so(Mk.get(this))}:function(...e){return so(t.apply(Xv(this),e))}}function zK(t){return typeof t=="function"?UK(t):(t instanceof IDBTransaction&&jK(t),$K(t,DK())?new Proxy(t,lg):t)}function so(t){if(t instanceof IDBRequest)return LK(t);if(Qv.has(t))return Qv.get(t);const e=zK(t);return e!==t&&(Qv.set(t,e),ab.set(e,t)),e}const Xv=t=>ab.get(t);function VK(t,e,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=so(o);return n&&o.addEventListener("upgradeneeded",l=>{n(so(o.result),l.oldVersion,l.newVersion,so(o.transaction),l)}),r&&o.addEventListener("blocked",l=>r(l.oldVersion,l.newVersion,l)),a.then(l=>{s&&l.addEventListener("close",()=>s()),i&&l.addEventListener("versionchange",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const qK=["get","getKey","getAll","getAllKeys","count"],HK=["put","add","delete","clear"],Zv=new Map;function I5(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Zv.get(e))return Zv.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,i=HK.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||qK.includes(r)))return;const s=async function(o,...a){const l=this.transaction(o,i?"readwrite":"readonly");let c=l.store;return n&&(c=c.index(a.shift())),(await Promise.all([c[r](...a),i&&l.done]))[0]};return Zv.set(e,s),s}FK(t=>({...t,get:(e,r,n)=>I5(e,r)||t.get(e,r,n),has:(e,r)=>!!I5(e,r)||t.has(e,r)}));class WK{constructor(){this.loadPresignedConfiguration=void 0,this.savePresignedConfiguration=void 0,this.saveWitnesses=void 0,this.configOfImageHash=void 0,this.saveWalletConfig=void 0,this.imageHashOfCounterfactualWallet=void 0,this.saveCounterfactualWallet=void 0,this.walletsOfSigner=void 0}}var GK=Object.freeze({__proto__:null,ConfigTracker:WK});class KK{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Ur(e,"? "),Ur(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Ur(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Ur(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Ur(e,"? "),Ur(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Ur(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Ur(e,"? "),Ur(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Ur(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Ur(e,"? "),Ur(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,i){return console.debug("? getMigration"),Ur({address:e,fromImageHash:r,fromVersion:n,chainId:i},"? "),Ur(await this.tracker.getMigration(e,r,n,i),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Ur({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Ur(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,void 0,2).split(` -`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var JK=Object.freeze({__proto__:null,DebugConfigTracker:KK});function go(){return go=Object.assign?Object.assign.bind():function(t){for(var e=1;ePromise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var i;return Promise.resolve(((i=this.migrations[e])==null||(i=i[r])==null?void 0:i[n])||[])},this.saveMigrationsSubdigest=(e,r,n,i,s)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:i,toImageHash:s}),Promise.resolve())}}function Ol(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=q.from(n):Array.isArray(n)?e[r]=n.map(i=>Ol(i)):typeof n=="object"&&n!==null?e[r]=Ol(n):e[r]=n}return e}class YK{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(s=>Ol(s))},this.saveConfig=async function(n,i){await(await r.getDb()).put("configs",i,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(s=>Ol(s))},this.saveV2Node=async function(n,i){await(await r.getDb()).put("v2Nodes",i,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,i,s){await(await r.getDb()).put("counterfactualWallets",{imageHash:i,context:s},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(s=>Ol(s))},this.savePayloadOfSubdigest=async function(n,i){await(await r.getDb()).put("payloads",i,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,i){const o=await(await r.getDb()).get("signatures",[i,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,i,s){await(await r.getDb()).put("signatures",{signature:s,signer:n},[i,n].join("-"))},this.loadMigrationsSubdigest=async function(n,i,s){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,i,s]))).map(l=>({subdigest:l.subdigest,toImageHash:l.toImageHash}))},this.saveMigrationsSubdigest=async function(n,i,s,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:i,toVersion:s,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await VK(e,1,{upgrade(r,n,i,s){console.log(`upgrading ${e} from ${n} to ${i} - ${s}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function $k(t){return t.left!==void 0&&t.right!==void 0}function Dk(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function cg(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var QK=Object.freeze({__proto__:null,isPlainNode:$k,isPlainNested:Dk,isPlainV2Config:cg,MemoryTrackerStore:Nk,recreateBigNumbers:Ol,IndexedDBStore:YK});class lb{constructor(e,r=new Nk,n=!1){var i=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(s){const o=await i.store.loadV2Node(s);if(!o)return{nodeHash:s};if($k(o)){const[a,l]=await Promise.all([i.loadTopology(o.left),i.loadTopology(o.right)]);return{left:a,right:l}}return Dk(o)?{weight:q.from(o.weight),threshold:q.from(o.threshold),tree:await i.loadTopology(o.tree)}:o},this.saveTopology=async function(s){if(Re.config.isNodeLeaf(s))return;const o=Re.config.hashNode(s);if(Re.config.isNode(s)){const a=i.saveTopology(s.left),l=i.saveTopology(s.right),c=i.store.saveV2Node(o,{left:Re.config.hashNode(s.left),right:Re.config.hashNode(s.right)});await Promise.all([a,l,c]);return}if(Re.config.isNestedLeaf(s)){const a=i.saveTopology(s.tree),l=i.store.saveV2Node(o,{weight:q.from(s.weight).toString(),threshold:q.from(s.threshold).toString(),tree:Re.config.hashNode(s.tree)});await Promise.all([a,l]);return}if(Re.config.isSignerLeaf(s))return i.store.saveV2Node(o,{address:s.address,weight:s.weight});if(Re.config.isSubdigestLeaf(s))return i.store.saveV2Node(o,{subdigest:s.subdigest});throw new Error(`Unknown topology type: ${s}`)},this.saveWalletConfig=async function(s){const{config:o}=s;if(Yi.config.ConfigCoder.isWalletConfig(o)){const a=Yi.config.ConfigCoder.imageHashOf(o);return i.store.saveConfig(a,o)}if(Re.config.ConfigCoder.isWalletConfig(o)){const a=Re.config.ConfigCoder.imageHashOf(o);if(Re.config.isComplete(o.tree))return i.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(s){const{imageHash:o}=s;if(i.configOfImageHashCache[s.imageHash])return i.configOfImageHashCache[s.imageHash];const a=await i.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!cg(a))return i.configOfImageHashCache[s.imageHash]=a,a;if(cg(a)){const l={version:2,threshold:q.from(a.threshold),checkpoint:q.from(a.checkpoint),tree:await i.loadTopology(a.tree)};return i.configOfImageHashCache[s.imageHash]=l,l}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(s){const{config:o,context:a}=s,l=kr.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([i.saveWalletConfig({config:o}),...a.map(c=>{const f=ue.context.addressOf(c,l);return i.store.saveCounterfactualWallet(f,l,c)})])},this.imageHashOfCounterfactualWallet=async function(s){const{wallet:o}=s,a=await i.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(s){const{payload:o}=s,a=ue.signature.subdigestOf(o);await i.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(s){if(i.payloadOfSubdigestCache[s.subdigest])return i.payloadOfSubdigestCache[s.subdigest];const{subdigest:o}=s,a=await i.store.loadPayloadOfSubdigest(o);return a&&(i.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(s){const o=Re.signature.SignatureCoder.decode(s.signature),a=kr.genericCoderFor(s.nextConfig.version).config.imageHashOf(s.nextConfig),l=Re.chained.messageSetImageHash(a),c=xe(l),f={message:l,address:s.wallet,chainId:0,digest:c},u=i.savePayload({payload:f}),h=i.saveWalletConfig({config:s.nextConfig}),y=await Re.signature.SignatureCoder.recover(o,f,i.provider),g=Re.signature.signaturesOf(y.config.tree);await Promise.all([u,h,i.saveWalletConfig({config:y.config}),...g.map(p=>i.store.saveSignatureOfSubdigest(p.address,y.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(s){const{wallet:o,fromImageHash:a,longestPath:l}=s,c=await i.configOfImageHash({imageHash:a});if(!c||!Re.config.ConfigCoder.isWalletConfig(c))return[];const f=Re.config.signersOf(c.tree).map(A=>A.address),u=await Promise.all(f.map(A=>i.store.loadSubdigestsOfSigner(A))),h=[...new Set(u.flat())],g=(await Promise.all([...new Set(h)].map(async function(A){return go({},await i.payloadOfSubdigest({subdigest:A}),{subdigest:A})}))).filter(A=>(A==null?void 0:A.message)&&(A==null?void 0:A.address)&&A.address===o).map(A=>({payload:A,nextImageHash:Re.chained.decodeMessageSetImageHash(A.message)})).filter(A=>A==null?void 0:A.nextImageHash);let p;const w=(await Promise.all(g.map(async function({nextImageHash:A,payload:P}){const M=await i.configOfImageHash({imageHash:A});if(!M||!Re.config.isWalletConfig(M))return;const j=q.from(M.checkpoint);return{nextConfig:M,nextCheckpoint:j,nextImageHash:A,payload:P}}))).filter(A=>A!==void 0).filter(A=>A.nextCheckpoint.gt(c.checkpoint)).sort((A,P)=>A.nextCheckpoint.gt(P.nextCheckpoint)?l?1:-1:l?-1:1);for(const A of w){const{nextConfig:P,nextCheckpoint:M,nextImageHash:j,payload:U}=A;if(p){const J=p.checkpoint;if(l){if(M.gte(J))continue}else if(M.lte(J))continue}const F=new Map((await Promise.all(f.map(async function(J){const te=await i.store.loadSignatureOfSubdigest(J,U.subdigest);if(!te)return[J,void 0];const se=Q(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(J,U.subdigest,te):te),D=ue.signer.tryRecoverSigner(U.subdigest,se)!==J;return[J,{isDynamic:D,signature:se}]}))).filter(J=>!!J[1]));if(F.size===0)continue;const G=Re.signature.SignatureCoder.encodeSigners(c,F,[],0);G.weight.lt(c.threshold)||(p={nextImageHash:j,checkpoint:q.from(P.checkpoint),signature:G.encoded})}if(!p)return[];const E=await i.loadPresignedConfiguration({wallet:o,fromImageHash:p.nextImageHash,longestPath:l});return[{wallet:o,nextImageHash:p.nextImageHash,signature:p.signature},...E]},this.saveWitnesses=async function(s){const o={digest:s.digest,address:s.wallet,chainId:s.chainId},a=ue.signature.subdigestOf(o);await Promise.all([i.savePayload({payload:o}),...s.signatures.filter(l=>ue.signer.canRecover(l)).map(l=>{const c=ue.signer.recoverSigner(a,l);return i.store.saveSignatureOfSubdigest(c,a,l)})])},this.walletsOfSigner=async function(s){const o=await i.store.loadSubdigestsOfSigner(s.signer),a=await Promise.all(o.map(c=>i.payloadOfSubdigest({subdigest:c}))).then(c=>c.filter(f=>f!==void 0)),l=[];for(const c of a){const f=c.address;if(l.find(y=>y.wallet===f))continue;const u=ue.signature.subdigestOf(c),h=await i.store.loadSignatureOfSubdigest(s.signer,u);h&&l.push({wallet:f,proof:{digest:c.digest,chainId:q.from(c.chainId),signature:Q(h)}})}return l},this.cachedEIP5719=new RK(e)}async saveMigration(e,r,n){const i=r.fromVersion;if(i!==1)throw new Error("Migration not supported");if(!Re.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:s,address:o}=gk.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(Re.config.ConfigCoder.imageHashOf(r.toConfig)!=s)throw new Error("Invalid migration transaction - config");const a=ue.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),l=xe(a),c={chainId:r.tx.chainId,message:a,address:e,digest:l},f=ue.signature.subdigestOf(c),u=this.savePayload({payload:c}),h=this.saveWalletConfig({config:r.toConfig}),y=Yi.signature.SignatureCoder.decode(r.tx.signature),g=await Yi.signature.SignatureCoder.recover(y,c,this.provider),p=Yi.signature.SignatureCoder.signaturesOf(g.config);await Promise.all([u,h,this.saveWalletConfig({config:g.config}),this.store.saveMigrationsSubdigest(e,i,i+1,f,s),...p.map(k=>this.store.saveSignatureOfSubdigest(k.address,g.subdigest,k.signature))])}async getMigration(e,r,n,i){var s=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),l=kr.coderFor(n);return!o||!l.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(f){const{subdigest:u,toImageHash:h}=f,y=await s.payloadOfSubdigest({subdigest:u});if(!y||!y.message||!q.from(i).eq(y.chainId))return;const g=l.config.signersOf(o).map(A=>A.address),p=new Map((await Promise.all(g.map(async function(A){const P=await s.store.loadSignatureOfSubdigest(A,u);if(!P)return[A,void 0];const M=Q(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(A,u,P):P),j=ue.signer.tryRecoverSigner(u,M)!==A;return[A,{isDynamic:j,signature:M}]}))).filter(A=>!!A[1])),k=l.signature.encodeSigners(o,p,[],i);if(!k||k.weightf.filter(u=>u!==void 0)))[0]}updateProvider(e){this.provider=e}}var XK=Object.freeze({__proto__:null,LocalConfigTracker:lb});let ey=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class ZK{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=n=>this.fetch(this.url("Ping"),Wn({},n)).then(i=>Gn(i).then(s=>({}))),this.config=(n,i)=>this.fetch(this.url("Config"),Wn(n,i)).then(s=>Gn(s).then(o=>({version:o.version,config:o.config}))),this.wallets=(n,i)=>this.fetch(this.url("Wallets"),Wn(n,i)).then(s=>Gn(s).then(o=>({wallets:o.wallets}))),this.deployHash=(n,i)=>this.fetch(this.url("DeployHash"),Wn(n,i)).then(s=>Gn(s).then(o=>({deployHash:o.deployHash,context:o.context}))),this.configUpdates=(n,i)=>this.fetch(this.url("ConfigUpdates"),Wn(n,i)).then(s=>Gn(s).then(o=>({updates:o.updates}))),this.migrations=(n,i)=>this.fetch(this.url("Migrations"),Wn(n,i)).then(s=>Gn(s).then(o=>({migrations:o.migrations}))),this.saveConfig=(n,i)=>this.fetch(this.url("SaveConfig"),Wn(n,i)).then(s=>Gn(s).then(o=>({}))),this.saveWallet=(n,i)=>this.fetch(this.url("SaveWallet"),Wn(n,i)).then(s=>Gn(s).then(o=>({}))),this.saveSignature=(n,i)=>this.fetch(this.url("SaveSignature"),Wn(n,i)).then(s=>Gn(s).then(o=>({}))),this.saveSignerSignatures=(n,i)=>this.fetch(this.url("SaveSignerSignatures"),Wn(n,i)).then(s=>Gn(s).then(o=>({}))),this.saveMigration=(n,i)=>this.fetch(this.url("SaveMigration"),Wn(n,i)).then(s=>Gn(s).then(o=>({}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Wn=(t={},e={})=>({method:"POST",headers:go({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Gn=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r});class eJ{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new ZK(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:i})=>({wallet:e.wallet,nextImageHash:n,signature:i}))}catch(r){if(ty(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=kr.genericCoderFor(r.version).config.imageHashOf(r),i=Re.signature.setImageHashStruct(n),s=xe(i);await this.sessions.saveSignature({wallet:e.wallet,digest:s,chainID:"0",signature:e.signature,toConfig:Cd(r)})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>ue.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:yl(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return tJ(r,n)}catch(r){if(ty(r))return;throw r}}async saveWalletConfig(e){const r=Cd(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(ty(r))return;throw r}}async saveCounterfactualWallet(e){const r=Cd(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:i,chainID:s,type:o,signature:a}])=>{switch(o){case ey.EIP712:a+=Q(ue.signer.SigType.EIP712).slice(2);break;case ey.EthSign:a+=Q(ue.signer.SigType.ETH_SIGN).slice(2);break;case ey.EIP1271:a+=Q(ue.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:i,signature:a,chainId:q.from(s)}}})}async getMigration(e,r,n,i){var s=this;const o=yl(i),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),l=async function(u){const h=a[u];if(h){const y=Object.keys(h).map(Number).sort((g,p)=>p-g);for(const g of y)for(const[p,k]of Object.entries(h[g]))try{const w=await s.configOfImageHash({imageHash:p});if(w)return{fromVersion:n,toVersion:g,toConfig:w,tx:{entrypoint:k.executor,transactions:k.transactions,nonce:k.nonce,signature:k.signature,chainId:u,intent:{id:ue.transaction.subdigestOfTransactions(e,u,k.nonce,k.transactions),wallet:e}}}}catch(w){console.error(w)}}},c=await l(o);if(c)return c;for(const f in a)if(f!==o){const u=await l(f);if(u)return u}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Cd(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(rJ),nonce:yl(r.tx.nonce),signature:r.tx.signature,chainID:yl(r.tx.chainId)})}}function Cd(t){switch(t.version){case 1:if(Yi.config.ConfigCoder.isWalletConfig(t))return{threshold:ta(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:ta(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(Re.config.ConfigCoder.isWalletConfig(t))return{threshold:ta(t.threshold),checkpoint:ta(t.checkpoint),tree:Zd(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function Zd(t){return Re.config.isNode(t)?{left:Zd(t.left),right:Zd(t.right)}:Re.config.isSignerLeaf(t)?{weight:ta(t.weight),address:t.address}:Re.config.isNestedLeaf(t)?{weight:ta(t.weight),threshold:ta(t.threshold),tree:Zd(t.tree)}:Re.config.isNodeLeaf(t)?{node:t.nodeHash}:go({},t)}function tJ(t,e){switch(t){case 1:return go({},e,{version:t});case 2:return go({},e,{version:t,tree:e0(e.tree)});default:throw new Error(`unknown version ${t}`)}}function e0(t){switch(typeof t){case"object":const e=go({},t);return e.left!==void 0&&(e.left=e0(e.left)),e.right!==void 0&&(e.right=e0(e.right)),e.tree!==void 0&&(e.tree=e0(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function rJ(t){return{to:t.to,value:t.value!==void 0?yl(t.value):void 0,data:t.data!==void 0?Q(t.data):void 0,gasLimit:t.gasLimit!==void 0?yl(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function ta(t){return q.from(t).toNumber()}function yl(t){return q.from(t).toString()}function ty(t){return typeof t=="object"&&t.status===404}var nJ=Object.freeze({__proto__:null,RemoteConfigTracker:eJ});function fg(t,e,r){return new Promise(n=>{let i=0;t.forEach(s=>s.then(o=>{r(o)?n(o):(i++,i===t.length&&n(e))}).catch(()=>{i++,i===t.length&&n(e)}))})}async function Yc(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class iJ{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,l){return{res:await a.configOfImageHash(e),i:l}}),n=await fg(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:kr.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const i=new lb(void 0),s=await Yc(r,void 0);for(const a of s)a!=null&&a.res&&await i.saveWalletConfig({config:a.res});const o=await i.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await fg(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await Yc(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const i=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),s=new Map;return i.forEach(({wallet:o,proof:{digest:a,chainId:l,signature:c}})=>{const f=`${o}-${a}-${l}`;let u=s.get(f);u||(u={wallet:o,digest:a,chainId:l,signatures:[]},s.set(f,u)),u.signatures.push(c)}),s.forEach(o=>this.saveWitnesses(o)),i}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await Yc(this.trackers.map(l=>l.loadPresignedConfiguration(e)),[]),s=(await Yc(n.map(async function(l){const c=l[l.length-1],f=await r.configOfImageHash({imageHash:c.nextImageHash});if(f)return{checkpoint:kr.genericCoderFor(f.version).config.checkpointOf(f),result:l}}),void 0)).reduce((l,c)=>c&&(!l||c.checkpoint.gt(l.checkpoint))?c:l);if(!s)return[];const o=new Map,a=l=>(o.has(l)||o.set(l,this.configOfImageHash({imageHash:l})),o.get(l));return s.result.forEach(async function(l){const c=await a(l.nextImageHash);c&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:c,signature:l.signature})}),s.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,i){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,i)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(i=>i.saveMigration(e,r,n)))}}class sJ{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let i;const[s,o]=await Promise.all(n);if(s.length>0&&o.length>0&&s[s.length-1].nextImageHash===o[o.length-1].nextImageHash)i=e.longestPath===!0?s.length>o.length?s:o:s.lengthu&&(!f||u.checkpoint.gt(f.checkpoint))?u:f))==null?void 0:l.result)!=null?a:[]}return i||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const i of r)for(const s of i)n.set(s.wallet,s);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,i){const s=await this.cache.getMigration(e,r,n,i);if(s)return s;const o=await this.tracker.getMigration(e,r,n,i);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class P5{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...i){e=`${e}:${xe(Ke(JSON.stringify(i,oJ)))}`;let s=this.cache.get(e);if(s&&s.expiration&&new Date>=s.expiration&&(s=void 0,this.cache.delete(e)),!s){const o={promise:n(...i)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),s=o,this.cache.set(e,s)}return s.promise}}function oJ(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function aJ(t){return t instanceof Bk}class Bk{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new P5}invalidateCache(){this.cache=new P5}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,i){return this.cache.do("getMigration",this.window,(...s)=>this.tracker.getMigration(...s),e,r,n,i)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...i)=>this.tracker.saveMigration(...i),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof lb&&this.tracker.updateProvider(e)}}var cb=Object.freeze({__proto__:null,debug:JK,local:XK,remote:nJ,stores:QK,raceUntil:fg,allSafe:Yc,MultipleTracker:iJ,CachedTracker:sJ,isDedupedTracker:aJ,DedupedTracker:Bk});const lJ=Object.freeze(Object.defineProperty({__proto__:null,tracker:GK,trackers:cb},Symbol.toStringTag,{value:"Module"})),Lk=60*60*24*7,cJ=60;class R5{constructor(e,r,n={},i){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=i}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:Lk,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let i;for(let s=1;;s++)try{i=(await r.getJWT(!0)).token;break}catch(o){if(s===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new Kd(n,void 0,i)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const c=this.status.jwt,f=await c.token;if(this.now(){throw this.status.jwt=void 0,c}),expiration:o};return this.status.jwt=a,a.token.then(c=>{this.onAuthCallbacks.forEach(f=>{try{f({status:"fulfilled",value:c})}catch{}})}).catch(c=>{this.onAuthCallbacks.forEach(f=>{try{f({status:"rejected",reason:c})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new sh,n=q.from(this.settings.sequenceApiChainId),i=ai(this.account.networks,n);if(!i)throw Error("No network found");return r.chainId=n.toNumber(),r.provider=new rh(cu(i.rpcUrl,this.projectAccessKey),{name:"",chainId:n.toNumber()}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new Kd(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new Pk(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=ai(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const i=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new _k(n.indexerUrl,void 0,i))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:o};return this.proofStrings.set(e,a),a}}const jk=async(t,e,r)=>{const n=Se(await t.getAddress());if(!n||n===""||n==="0x")throw Fk;const i=new Nx;if(i.address=n,!r||!r.app||r.app==="")throw new fb("authorization options requires app to be set");i.claims.app=r.app,i.claims.ogn=r.origin,i.claims.n=r.nonce,i.setExpiryIn(r.expiry?Math.max(r.expiry,200):Lk);const s=i.messageTypedData(),o=kS(e);i.signature=await(t instanceof Zi?t.signTypedData(s.domain,s.types,s.message,o,"eip6492"):t.signTypedData(s.domain,s.types,s.message,o));const l=await new sh().encodeProof(i,!0);return{typedData:s,proofString:l}};class fb extends Error{constructor(e){super(e),this.name="AuthError"}}const Fk=new fb("auth error: account address is empty");function Jo(){return Jo=Object.assign?Object.assign.bind():function(t){for(var e=1;eJ.wallet));let F;if(U){if(u==null||u(U),F=new Zi({address:U,tracker:A,networks:E,contexts:w,orchestrator:p,projectAccessKey:k}),c&&c.length>0){let J=await F.status(M);if(J.original.version!==J.version||F.version!==J.version){const{migratedAllChains:D,failedChains:v}=await F.isMigratedAllChains();if(v.some(C=>ug.includes(C)))throw Error(`Failed to fetch account status on ${v.join(", ")}`);if(!D){if(g&&!await g(F))throw Error("Migration cancelled, cannot open session");const{failedChains:C}=await F.signAllMigrations(y||(O=>O));if(C.some(O=>ug.includes(O)))throw Error(`Failed to sign migrations on ${C.join(", ")}`);cb.isDedupedTracker(A)&&A.invalidateCache();let I;if([I,J]=await Promise.all([F.isMigratedAllChains().then(O=>O.migratedAllChains),F.status(M)]),!I)throw Error("Failed to migrate account")}}J.onChain.version!==J.version&&await F.doBootstrap(M,void 0,J);const te=J.config,se=F.coders.config.editConfig(te,{add:c,threshold:l});if(F.coders.config.imageHashOf(te)!==F.coders.config.imageHashOf(se)){const D=F.coders.config.editConfig(se,{checkpoint:F.coders.config.checkpointOf(te).add(1)});await F.updateConfig(D)}}}else{if(!c||c.length===0)throw Error("Cannot create new account without signers");if(!l)throw Error("Cannot create new account without threshold");if(F=await Zi.new({config:{threshold:l,checkpoint:0,signers:c},tracker:A,contexts:w,orchestrator:p,networks:E,projectAccessKey:k}),u==null||u(F.address),await F.publishWitness(),!(await A.walletsOfSigner({signer:a,noCache:!0})).some(te=>te.wallet===F.address))throw Error("Account not found on tracker")}let G;return P&&(G=new R5(F,P),G.auth(),G.onAuth(J=>{J.status==="fulfilled"&&F.setJwt(J.value)})),new Tf(E,w,F,G)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:i,onMigration:s,orchestrator:o}=e,{contexts:a,networks:l,tracker:c,services:f}=Jo({},t0,n);let u;if(Uk(r)){var h,y,g;const P=r.config.address||ue.context.addressOf(a[1],Yi.config.ConfigCoder.imageHashOf(Jo({},r.config,{version:1}))),M=((h=(y=r.jwt)==null?void 0:y.expiration)!=null?h:0)j.migratedAllChains)){if(s&&!await s(u))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await u.signAllMigrations(i),!await u.isMigratedAllChains().then(j=>j.migratedAllChains))throw Error("Failed to migrate account")}}else if(zk(r)){var p,k,w;const P=((p=(k=r.jwt)==null?void 0:k.expiration)!=null?p:0)async(n,i,s)=>{const o=s.messageDigest();return{isValid:await t(i).isValidSignature(s.address,o,s.signature)}},uJ=Object.freeze(Object.defineProperty({__proto__:null,AuthError:fb,CRITICAL_CHAINS:ug,ErrAccountIsRequired:Fk,Session:Tf,SessionSettingsDefault:t0,ValidateSequenceWalletProof:fJ,isSessionDumpV1:Uk,isSessionDumpV2:zk,signAuthorization:jk},Symbol.toStringTag,{value:"Module"}));function yh(){return yh=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),zr({},n)).then(i=>Vr(i).then(s=>({status:s.status}))),this.version=n=>this.fetch(this.url("Version"),zr({},n)).then(i=>Vr(i).then(s=>({version:s.version}))),this.runtimeStatus=n=>this.fetch(this.url("RuntimeStatus"),zr({},n)).then(i=>Vr(i).then(s=>({status:s.status}))),this.getSignerConfig=(n,i)=>this.fetch(this.url("GetSignerConfig"),zr(n,i)).then(s=>Vr(s).then(o=>({signerConfig:o.signerConfig}))),this.sign=(n,i)=>this.fetch(this.url("Sign"),zr(n,i)).then(s=>Vr(s).then(o=>({sig:o.sig}))),this.signWith=(n,i)=>this.fetch(this.url("SignWith"),zr(n,i)).then(s=>Vr(s).then(o=>({sig:o.sig}))),this.authMethods=(n,i)=>this.fetch(this.url("AuthMethods"),zr(n,i)).then(s=>Vr(s).then(o=>({methods:o.methods,active:o.active}))),this.setPIN=(n,i)=>this.fetch(this.url("SetPIN"),zr(n,i)).then(s=>Vr(s).then(o=>({}))),this.resetPIN=(n,i)=>this.fetch(this.url("ResetPIN"),zr(n,i)).then(s=>Vr(s).then(o=>({}))),this.createTOTP=(n,i)=>this.fetch(this.url("CreateTOTP"),zr(n,i)).then(s=>Vr(s).then(o=>({uri:o.uri}))),this.commitTOTP=(n,i)=>this.fetch(this.url("CommitTOTP"),zr(n,i)).then(s=>Vr(s).then(o=>({codes:o.codes}))),this.resetTOTP=(n,i)=>this.fetch(this.url("ResetTOTP"),zr(n,i)).then(s=>Vr(s).then(o=>({}))),this.reset2FA=(n,i)=>this.fetch(this.url("Reset2FA"),zr(n,i)).then(s=>Vr(s).then(o=>({}))),this.recoveryCodes=(n,i)=>this.fetch(this.url("RecoveryCodes"),zr(n,i)).then(s=>Vr(s).then(o=>({codes:o.codes}))),this.resetRecoveryCodes=(n,i)=>this.fetch(this.url("ResetRecoveryCodes"),zr(n,i)).then(s=>Vr(s).then(o=>({codes:o.codes}))),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const zr=(t={},e={})=>({method:"POST",headers:yh({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{})}),Vr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch{throw{code:"unknown",msg:`expecting JSON, got: ${e}`,status:t.status}}if(!t.ok)throw r;return r}),hJ=typeof global=="object"?global.fetch:window.fetch;class vJ{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new dJ(r,hJ)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!ue.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const i=r.guardTotpCode,s=kr.genericCoderFor(r.config.version),{encoded:o}=s.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:Q(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:q.from(r.chainId).toNumber()},token:i?{id:ph.TOTP,token:i}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await dg(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return yh({},r,{methods:r.methods.map(yJ)})}async setPin(e,r){const n=await Fc(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await Fc(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await Fc(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await dg(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await Fc(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await Fc(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,i){return Yr.encode(["address","uint256","bytes","bytes"],[e,i,r,n])}suffix(){return this.appendSuffix?[3]:[]}}let ph=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function yJ(t){switch(t){case ph.PIN:case ph.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function Vk(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function dg(t){if(Vk(t))return t;{const e=og.isSapientSigner(t.signer)?t.signer:new og.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,i=qk(t.walletAddress,n),s=Pu(i);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:Q(await e.sign(s,{}))}}}async function Fc(t){if("wallet"in t){var e;const r=new Date,n=Hk(r),i=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:i}}else return t}function qk(t,e){return{domain:Wk,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Se(t),timestamp:Gk(e)}}}function Hk(t){return{domain:Wk,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:Gk(t)}}}const Wk={name:"Sequence Guard",version:"1",chainId:1};function Gk(t){return t.toUTCString().replace("GMT","UTC")}const pJ=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:ph,GuardSigner:vJ,getAuthUpdateProofTypedData:Hk,getOwnershipProofTypedData:qk,isSignedOwnershipProof:Vk,signOwnershipProof:dg},Symbol.toStringTag,{value:"Module"}));function gh(){return gh=Object.assign?Object.assign.bind():function(t){for(var e=1;e{this.queue.length>0&&(this.timeout&&clearTimeout(this.timeout),this.timeout=setTimeout(this.run,this.options.timeWindow))},this.handle=(n,i,s)=>{if(this.batchableJsonRpcMethods.find(o=>o===i.method)){this.queue.push({request:i,callback:s,next:n}),this.options.verbose&&console.log("Scheduling call",i.method),this.scheduleExecution();return}return this.options.verbose&&console.log("Forwarded call",i.method),n(i,s)},this.run=async function(){r.options.verbose&&console.log("Processing multicall");const n=Math.min(r.options.batchSize,r.queue.length);if(n===0){r.options.verbose&&console.log("Skip multicall, empty queue");return}if(n===1){r.forward(r.queue[0]),r.queue=[],r.options.verbose&&console.log("Skip multicall, single item");return}r.options.verbose&&console.log("Resolving",n);var a=r.queue.slice(0,n);r.queue=n===r.queue.length?[]:r.queue.slice(n),r.options.verbose&&console.log("Updated queue",r.queue.length),r.queue.length!==0&&(r.options.verbose&&console.log("Scheduling next batch"),r.scheduleExecution());const i=a[0].next;let s;var[a,l]=M5(a,y=>{try{if(y.next!==i)return!1;switch(y.request.method){case ur.ethCall:if(y.request.params[0].from||y.request.params[0].gasPrice||y.request.params[0].value)return!1;case ur.ethGetBalance:case ur.ethGetCode:const g=mJ(y.request.params[1]);if(s===void 0&&(s=g),!xJ(g,s))return!1}return!0}catch{return!1}});if(l.length!==0&&(r.options.verbose&&console.log("Forwarding incompatible calls",l.length),r.forward(l),a.length===0)){r.options.verbose&&console.log("Skip multicall, all calls are incompatible");return}let o=a.map(y=>{try{switch(y.request.method){case ur.ethCall:return{delegateCall:!1,revertOnError:!1,target:y.request.params[0].to,data:y.request.params[0].data,gasLimit:y.request.params[0].gas?y.request.params[0].gas:0,value:0};case ur.ethGetCode:return{delegateCall:!1,revertOnError:!1,target:r.options.contract,gasLimit:0,value:0,data:r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("callCode"),[y.request.params[0]])};case ur.ethGetBalance:return{delegateCall:!1,revertOnError:!1,target:r.options.contract,gasLimit:0,value:0,data:r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("callBalanceOf"),[y.request.params[0]])};default:return null}}catch{return null}});var[a,l]=M5(a,(y,g)=>o[g]!==void 0);if(o=o.filter(y=>y),l.length!==0&&(r.options.verbose&&console.log("Forwarding calls on error",l.length),r.forward(l),a.length===0)){r.options.verbose&&console.log("Skip multicall, all calls had encoding errors");return}let c;try{r.options.verbose&&console.log("Encoding multicall"),c=r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("multiCall"),[o])}catch(y){r.options.verbose&&console.warn("Error encoding multicall, forwarding one by one",y),r.forward(a);return}const f=Ux(),u=await gJ(Fx(i)({id:f,jsonrpc:ec,method:ur.ethCall,params:[{to:r.options.contract,value:0,data:c},q.isBigNumber(s)?s.toNumber():s]}),y=>({jsonrpc:ec,id:f,result:void 0,error:y}));if(u.error)return r.options.verbose&&console.warn("Error calling multicall, forwarding one by one",u.error),r.forward(a);let h;try{h=r.multicallInterface.decodeFunctionResult(r.multicallInterface.getFunction("multiCall"),u.result)}catch(y){r.options.verbose&&console.warn("Error decoding multicall result, forwarding one by one",y),r.forward(a);return}r.options.verbose&&console.log("Got response for",a.length),a.forEach((y,g)=>{if(!h[0][g])r.options.verbose&&console.warn(`Multicall error for ${y.request.method} not found`),r.forward(y);else switch(y.request.method){case ur.ethCall:y.callback(void 0,{jsonrpc:y.request.jsonrpc,id:y.request.id,result:h[1][g]});break;case ur.ethGetCode:y.callback(void 0,{jsonrpc:y.request.jsonrpc,id:y.request.id,result:Yr.decode(["bytes"],h[1][g])[0]});break;case ur.ethGetBalance:y.callback(void 0,{jsonrpc:y.request.jsonrpc,id:y.request.id,result:Yr.decode(["uint256"],h[1][g])[0]});break}})},this.options=e?gh({},On.DefaultOptions,e):On.DefaultOptions,this.options.batchSize<=0)throw new Error(`Invalid batch size of ${this.options.batchSize}`)}forward(e){Array.isArray(e)?e.forEach(r=>r.next(r.request,r.callback)):e.next(e.request,e.callback)}static isMulticall(e){return e&&e.handle!==void 0&&e.conf!==void 0&&On.isMulticallOptions(e.options)}static isMulticallOptions(e){return e!==void 0&&e.batchSize!==void 0&&e.timeWindow!==void 0&&e.contract!==void 0}}On.DefaultOptions=gh({},bJ);const Kk=["getNetwork","getBlockNumber","getGasPrice","getTransactionCount","getStorageAt","sendTransaction","estimateGas","getBlock","getTransaction","getTransactionReceipt","getLogs","emit","litenerCount","addListener","removeListener","waitForTransaction","detectNetwork","getBlockWithTransactions"];class wJ extends Rx{constructor(e,r){var n;super(e.getNetwork()),n=this,this.provider=e,this.multicall=void 0,this.getResolver=async function(i){const s=n.provider;if(s.getResolver){const o=await s.getResolver(await i);return o?new jp(n,o.address,o.name):null}return s.getResolver(await i)},this.next=async function(i,s){try{switch(i.method){case ur.ethCall:n.callback(i,s,await n.provider.call(i.params[0],i.params[1]));break;case ur.ethGetCode:n.callback(i,s,await n.provider.getCode(i.params[0],i.params[1]));break;case ur.ethGetBalance:n.callback(i,s,await n.provider.getBalance(i.params[0],i.params[1]));break}}catch(o){n.callback(i,s,void 0,o)}},this.listenerCount=e.listenerCount.bind(e),this.multicall=On.isMulticall(r)?r:new On(r),Kk.forEach(i=>{e[i]!==void 0&&(this[i]=(...s)=>e[i](...s))})}callback(e,r,n,i){r(i,{jsonrpc:ec,id:e.id,result:n,error:i})}async call(e,r){return this.rpcCall(ur.ethCall,e,r)}async getCode(e,r){return this.rpcCall(ur.ethGetCode,e,r)}async getBalance(e,r){return this.rpcCall(ur.ethGetBalance,e,r)}async rpcCall(e,...r){const n=Ux();return(await Fx(this.multicall.handle)(this.next,{jsonrpc:ec,id:n,method:e,params:r})).result}}class CJ{constructor(e,r){if(this.provider=e,this.multicall=void 0,this.multicall=On.isMulticall(r)?r:new On(r),e.send){const n=async function(s,o){e.send(s,o)};this.send=(i,s)=>{this.multicall.handle(n,i,s)}}if(e.sendAsync){const n=async function(s,o){e.sendAsync(s,o)};this.sendAsync=(i,s)=>{this.multicall.handle(n,i,s)}}}get isMetaMask(){return this.provider.isMetaMask}get isStatus(){return this.provider.isStatus}}const EJ=t=>e=>{const r=On.isMulticall(t)?t:new On(t);return(n,i)=>r.handle(e,n,i)};var SJ=Object.freeze({__proto__:null,ProxyMethods:Kk,MulticallProvider:wJ,MulticallExternalProvider:CJ,multicallMiddleware:EJ});const kJ=Object.freeze(Object.defineProperty({__proto__:null,Multicall:On,providers:SJ},Symbol.toStringTag,{value:"Module"}));var Jk={exports:{}};/*! - * EventEmitter2 - * https://github.com/hij1nx/EventEmitter2 - * - * Copyright (c) 2013 hij1nx - * Licensed under the MIT license. - */(function(t,e){(function(r){var n=Object.hasOwnProperty,i=Array.isArray?Array.isArray:function(_){return Object.prototype.toString.call(_)==="[object Array]"},s=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",l=typeof Reflect=="object",c=typeof setImmediate=="function",f=c?setImmediate:setTimeout,u=a?l&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(x){var _=Object.getOwnPropertyNames(x);return _.push.apply(_,Object.getOwnPropertySymbols(x)),_}:Object.keys;function h(){this._events={},this._conf&&y.call(this,this._conf)}function y(x){x&&(this._conf=x,x.delimiter&&(this.delimiter=x.delimiter),x.maxListeners!==r&&(this._maxListeners=x.maxListeners),x.wildcard&&(this.wildcard=x.wildcard),x.newListener&&(this._newListener=x.newListener),x.removeListener&&(this._removeListener=x.removeListener),x.verboseMemoryLeak&&(this.verboseMemoryLeak=x.verboseMemoryLeak),x.ignoreErrors&&(this.ignoreErrors=x.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function g(x,_){var R="(node) warning: possible EventEmitter memory leak detected. "+x+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(R+=" Event name: "+_+"."),typeof process<"u"&&process.emitWarning){var b=new Error(R);b.name="MaxListenersExceededWarning",b.emitter=this,b.count=x,process.emitWarning(b)}else console.error(R),console.trace&&console.trace()}var p=function(x,_,R){var b=arguments.length;switch(b){case 0:return[];case 1:return[x];case 2:return[x,_];case 3:return[x,_,R];default:for(var d=new Array(b);b--;)d[b]=arguments[b];return d}};function k(x,_){for(var R={},b,d=x.length,T=_?_.length:0,$=0;$0;)x=T[N],$.call(m,x,R[x]);this._listeners={},this._listenersCount=0,B()}}});function E(x,_,R,b){var d=Object.assign({},_);if(!x)return d;if(typeof x!="object")throw TypeError("options must be an object");var T=Object.keys(x),$=T.length,m,N,B;function L(ee){throw Error('Invalid "'+m+'" option value'+(ee?". Reason: "+ee:""))}for(var V=0;V<$;V++){if(m=T[V],!b&&!n.call(_,m))throw Error('Unknown "'+m+'" option');N=x[m],N!==r&&(B=R[m],d[m]=B?B(N,L):N)}return d}function A(x,_){return(typeof x!="function"||!x.hasOwnProperty("prototype"))&&_("value must be a constructor"),x}function P(x){var _="value must be type of "+x.join("|"),R=x.length,b=x[0],d=x[1];return R===1?function(T,$){if(typeof T===b)return T;$(_)}:R===2?function(T,$){var m=typeof T;if(m===b||m===d)return T;$(_)}:function(T,$){for(var m=typeof T,N=R;N-- >0;)if(m===x[N])return T;$(_)}}var M=P(["function"]),j=P(["object","function"]);function U(x,_,R){var b,d,T=0,$,m=new x(function(N,B,L){R=E(R,{timeout:0,overload:!1},{timeout:function(Z,pe){return Z*=1,(typeof Z!="number"||Z<0||!Number.isFinite(Z))&&pe("timeout must be a positive number"),Z}}),b=!R.overload&&typeof x.prototype.cancel=="function"&&typeof L=="function";function V(){d&&(d=null),T&&(clearTimeout(T),T=0)}var ee=function(Z){V(),N(Z)},H=function(Z){V(),B(Z)};b?_(ee,H,L):(d=[function(Z){H(Z||Error("canceled"))}],_(ee,H,function(Z){if($)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Z!="function")throw TypeError("onCancel callback must be a function");d.push(Z)}),$=!0),R.timeout>0&&(T=setTimeout(function(){var Z=Error("timeout");Z.code="ETIMEDOUT",T=0,m.cancel(Z),B(Z)},R.timeout))});return b||(m.cancel=function(N){if(d){for(var B=d.length,L=1;L0;)H=re[m],H!=="_listeners"&&(ae=G(x,_,R[H],b+1,d),ae&&(ee?ee.push.apply(ee,ae):ee=ae));return ee}else if(qt==="**"){for(he=b+1===d||b+2===d&&z==="*",he&&R._listeners&&(ee=G(x,_,R,d,d)),re=u(R),m=re.length;m-- >0;)H=re[m],H!=="_listeners"&&(H==="*"||H==="**"?(R[H]._listeners&&!he&&(ae=G(x,_,R[H],d,d),ae&&(ee?ee.push.apply(ee,ae):ee=ae)),ae=G(x,_,R[H],b,d)):H===z?ae=G(x,_,R[H],b+2,d):ae=G(x,_,R[H],b,d),ae&&(ee?ee.push.apply(ee,ae):ee=ae));return ee}else R[qt]&&(ee=G(x,_,R[qt],b+1,d));if(Z=R["*"],Z&&G(x,_,Z,b+1,d),pe=R["**"],pe)if(b0;)H=re[m],H!=="_listeners"&&(H===z?G(x,_,pe[H],b+2,d):H===qt?G(x,_,pe[H],b+1,d):(le={},le[H]=pe[H],G(x,_,{"**":le},b+1,d)));else pe._listeners?G(x,_,pe,d,d):pe["*"]&&pe["*"]._listeners&&G(x,_,pe["*"],d,d);return ee}function J(x,_,R){var b=0,d=0,T,$=this.delimiter,m=$.length,N;if(typeof x=="string")if((T=x.indexOf($))!==-1){N=new Array(5);do N[b++]=x.slice(d,T),d=T+m;while((T=x.indexOf($,d))!==-1);N[b++]=x.slice(d)}else N=[x],b=1;else N=x,b=x.length;if(b>1){for(T=0;T+10&&B._listeners.length>this._maxListeners&&(B._listeners.warned=!0,g.call(this,B._listeners.length,L))):B._listeners=_,!0;return!0}function te(x,_,R,b){for(var d=u(x),T=d.length,$,m,N,B=x._listeners,L;T-- >0;)m=d[T],$=x[m],m==="_listeners"?N=R:N=R?R.concat(m):[m],L=b||typeof m=="symbol",B&&_.push(L?N:N.join(this.delimiter)),typeof $=="object"&&te.call(this,$,_,N,L);return _}function se(x){for(var _=u(x),R=_.length,b,d,T;R-- >0;)d=_[R],b=x[d],b&&(T=!0,d!=="_listeners"&&!se(b)&&delete x[d]);return T}function D(x,_,R){this.emitter=x,this.event=_,this.listener=R}D.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function v(x,_,R){if(R===!0)d=!0;else if(R===!1)b=!0;else{if(!R||typeof R!="object")throw TypeError("options should be an object or true");var b=R.async,d=R.promisify,T=R.nextTick,$=R.objectify}if(b||T||d){var m=_,N=_._origin||_;if(T&&!o)throw Error("process.nextTick is not supported");d===r&&(d=_.constructor.name==="AsyncFunction"),_=function(){var B=arguments,L=this,V=this.event;return d?T?Promise.resolve():new Promise(function(ee){f(ee)}).then(function(){return L.event=V,m.apply(L,B)}):(T?process.nextTick:f)(function(){L.event=V,m.apply(L,B)})},_._async=!0,_._origin=N}return[_,$?new D(this,x,_):this]}function C(x){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,y.call(this,x)}C.EventEmitter2=C,C.prototype.listenTo=function(x,_,R){if(typeof x!="object")throw TypeError("target musts be an object");var b=this;R=E(R,{on:r,off:r,reducers:r},{on:M,off:M,reducers:j});function d(T){if(typeof T!="object")throw TypeError("events must be an object");var $=R.reducers,m=F.call(b,x),N;m===-1?N=new w(b,x,R):N=b._observers[m];for(var B=u(T),L=B.length,V,ee=typeof $=="function",H=0;H0;)d=R[b],(!x||d._target===x)&&(d.unsubscribe(_),T=!0);return T},C.prototype.delimiter=".",C.prototype.setMaxListeners=function(x){x!==r&&(this._maxListeners=x,this._conf||(this._conf={}),this._conf.maxListeners=x)},C.prototype.getMaxListeners=function(){return this._maxListeners},C.prototype.event="",C.prototype.once=function(x,_,R){return this._once(x,_,!1,R)},C.prototype.prependOnceListener=function(x,_,R){return this._once(x,_,!0,R)},C.prototype._once=function(x,_,R,b){return this._many(x,1,_,R,b)},C.prototype.many=function(x,_,R,b){return this._many(x,_,R,!1,b)},C.prototype.prependMany=function(x,_,R,b){return this._many(x,_,R,!0,b)},C.prototype._many=function(x,_,R,b,d){var T=this;if(typeof R!="function")throw new Error("many only accepts instances of Function");function $(){return--_===0&&T.off(x,$),R.apply(this,arguments)}return $._origin=R,this._on(x,$,b,d)},C.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||h.call(this);var x=arguments[0],_,R=this.wildcard,b,d,T,$,m;if(x==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(R&&(_=x,x!=="newListener"&&x!=="removeListener"&&typeof x=="object")){if(d=x.length,a){for(T=0;T3)for(b=new Array(N-1),$=1;$3)for(d=new Array(B-1),m=1;m0&&this._events[x].length>this._maxListeners&&(this._events[x].warned=!0,g.call(this,this._events[x].length,x))):this._events[x]=_,d)},C.prototype.off=function(x,_){if(typeof _!="function")throw new Error("removeListener only takes instances of Function");var R,b=[];if(this.wildcard){var d=typeof x=="string"?x.split(this.delimiter):x.slice();if(b=G.call(this,null,d,this.listenerTree,0),!b)return this}else{if(!this._events[x])return this;R=this._events[x],b.push({_listeners:R})}for(var T=0;T0){for(b=this._all,_=0,R=b.length;_0;)b=_[R[T]],typeof b=="function"?d.push(b):d.push.apply(d,b);return d}else{if(this.wildcard){if($=this.listenerTree,!$)return[];var m=[],N=typeof x=="string"?x.split(this.delimiter):x.slice();return G.call(this,m,N,$,0),m}return _?(b=_[x],b?typeof b=="function"?[b]:b:[]):[]}},C.prototype.eventNames=function(x){var _=this._events;return this.wildcard?te.call(this,this.listenerTree,[],null,x):_?u(_):[]},C.prototype.listenerCount=function(x){return this.listeners(x).length},C.prototype.hasListeners=function(x){if(this.wildcard){var _=[],R=typeof x=="string"?x.split(this.delimiter):x.slice();return G.call(this,_,R,this.listenerTree,0),_.length>0}var b=this._events,d=this._all;return!!(d&&d.length||b&&(x===r?u(b).length:b[x]))},C.prototype.listenersAny=function(){return this._all?this._all:[]},C.prototype.waitFor=function(x,_){var R=this,b=typeof _;return b==="number"?_={timeout:_}:b==="function"&&(_={filter:_}),_=E(_,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:M,Promise:A}),U(_.Promise,function(d,T,$){function m(){var N=_.filter;if(!(N&&!N.apply(R,arguments)))if(R.off(x,m),_.handleError){var B=arguments[0];B?T(B):d(p.apply(null,arguments).slice(1))}else d(p.apply(null,arguments))}$(function(){R.off(x,m)}),R._on(x,m,!1)},{timeout:_.timeout,overload:_.overload})};function I(x,_,R){R=E(R,{Promise,timeout:0,overload:!1},{Promise:A});var b=R.Promise;return U(b,function(d,T,$){var m;if(typeof x.addEventListener=="function"){m=function(){d(p.apply(null,arguments))},$(function(){x.removeEventListener(_,m)}),x.addEventListener(_,m,{once:!0});return}var N=function(){B&&x.removeListener("error",B),d(p.apply(null,arguments))},B;_!=="error"&&(B=function(L){x.removeListener(_,N),T(L)},x.once("error",B)),$(function(){B&&x.removeListener("error",B),x.removeListener(_,N)}),x.once(_,N)},{timeout:R.timeout,overload:R.overload})}var O=C.prototype;Object.defineProperties(C,{defaultMaxListeners:{get:function(){return O._maxListeners},set:function(x){if(typeof x!="number"||x<0||Number.isNaN(x))throw TypeError("n must be a non-negative number");O._maxListeners=x},enumerable:!0},once:{value:I,writable:!0,configurable:!0}}),Object.defineProperties(O,{_maxListeners:{value:s,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),typeof r=="function"&&r.amd?r(function(){return C}):t.exports=C})()})(Jk);var w1=Jk.exports;function AJ(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ub(t,...e){if(!AJ(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function O5(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function _J(t,e){ub(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),di=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];const TJ=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function IJ(t){ub(t);let e="";for(let r=0;rt().update(Yk(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function OJ(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const i=BigInt(32),s=BigInt(4294967295),o=Number(r>>i&s),a=Number(r&s),l=n?4:0,c=n?0:4;t.setUint32(e+l,o,n),t.setUint32(e+c,a,n)}const NJ=(t,e,r)=>t&e^~t&r,$J=(t,e,r)=>t&e^t&r^e&r;class DJ extends RJ{constructor(e,r,n,i){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=ry(this.buffer)}update(e){O5(this);const{view:r,buffer:n,blockLen:i}=this;e=Yk(e);const s=e.length;for(let o=0;oi-o&&(this.process(n,0),o=0);for(let u=o;uf.length)throw new Error("_sha2: outputLen bigger than state");for(let u=0;u>>3,p=di(y,17)^di(y,19)^y>>>10;Is[u]=p+Is[u-7]+g+Is[u-16]|0}let{A:n,B:i,C:s,D:o,E:a,F:l,G:c,H:f}=this;for(let u=0;u<64;u++){const h=di(a,6)^di(a,11)^di(a,25),y=f+h+NJ(a,l,c)+BJ[u]+Is[u]|0,p=(di(n,2)^di(n,13)^di(n,22))+$J(n,i,s)|0;f=c,c=l,l=a,a=o+y|0,o=s,s=i,i=n,n=y+p|0}n=n+this.A|0,i=i+this.B|0,s=s+this.C|0,o=o+this.D|0,a=a+this.E|0,l=l+this.F|0,c=c+this.G|0,f=f+this.H|0,this.set(n,i,s,o,a,l,c,f)}roundClean(){Is.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const jJ=MJ(()=>new LJ);var FJ=class{constructor(t,e){Ue(this,"hostname");Ue(this,"fetch");Ue(this,"path","/rpc/Databeat/");Ue(this,"ping",(t,e)=>this.fetch(this.url("Ping"),Uc({},t,e)).then(r=>zc(r).then(n=>({status:n.status})),r=>{throw Xa.new({cause:`fetch(): ${r.message||""}`})}));Ue(this,"version",(t,e)=>this.fetch(this.url("Version"),Uc({},t,e)).then(r=>zc(r).then(n=>({version:n.version})),r=>{throw Xa.new({cause:`fetch(): ${r.message||""}`})}));Ue(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),Uc({},t,e)).then(r=>zc(r).then(n=>({status:n.status})),r=>{throw Xa.new({cause:`fetch(): ${r.message||""}`})}));Ue(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),Uc(t,e,r)).then(n=>zc(n).then(i=>({ok:i.ok})),n=>{throw Xa.new({cause:`fetch(): ${n.message||""}`})}));Ue(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),Uc(t,e,r)).then(n=>zc(n).then(i=>({ok:i.ok})),n=>{throw Xa.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},Uc=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),zc=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),nA.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(nY[n]||pr).new(r)}return r}),pr=class Qk extends Error{constructor(r,n,i,s,o){super(i);Ue(this,"name");Ue(this,"code");Ue(this,"message");Ue(this,"status");Ue(this,"cause");Ue(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=i||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=o,Object.setPrototypeOf(this,Qk.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},UJ=class Xk extends pr{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Xk.prototype)}},Xa=class Zk extends pr{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Zk.prototype)}},zJ=class eA extends pr{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,eA.prototype)}},VJ=class tA extends pr{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,tA.prototype)}},qJ=class rA extends pr{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,rA.prototype)}},nA=class iA extends pr{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,iA.prototype)}},HJ=class sA extends pr{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,sA.prototype)}},WJ=class oA extends pr{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,oA.prototype)}},GJ=class aA extends pr{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,aA.prototype)}},KJ=class lA extends pr{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,lA.prototype)}},JJ=class cA extends pr{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,cA.prototype)}},YJ=class fA extends pr{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,fA.prototype)}},QJ=class uA extends pr{constructor(e="PermissionDenied",r=2e3,n="Permission denied",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,uA.prototype)}},XJ=class dA extends pr{constructor(e="SessionExpired",r=2001,n="Session expired",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,dA.prototype)}},ZJ=class hA extends pr{constructor(e="NotFound",r=3e3,n="Resource not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,hA.prototype)}},eY=class vA extends pr{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,vA.prototype)}},tY=class yA extends pr{constructor(e="QueryFailed",r=4001,n="DB query failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,yA.prototype)}},rY=class pA extends pr{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,pA.prototype)}},nY={0:UJ,[-1]:Xa,[-2]:zJ,[-3]:VJ,[-4]:qJ,[-5]:nA,[-6]:HJ,[-7]:WJ,[-8]:GJ,[-9]:KJ,[-10]:JJ,1e3:YJ,2e3:QJ,2001:XJ,3e3:ZJ,4e3:eY,4001:tY,4002:rY},iY=class extends FJ{constructor(e,r){const n=typeof global=="object"?global.fetch.bind(global):window.fetch.bind(window);super(e.endsWith("/")?e.slice(0,-1):e,n);Ue(this,"_globalFetch");Ue(this,"_fetch",(e,r)=>{var n;if(this.auth){let i={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(i.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(i={...i,...this.auth.headers}),r.headers={...r.headers,...i}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},N5=150,zo={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},sY=class{constructor(t,e,r){Ue(this,"rpc");Ue(this,"auth");Ue(this,"options");Ue(this,"enabled");Ue(this,"ident");Ue(this,"userId");Ue(this,"sessionId");Ue(this,"allowUserTracking");Ue(this,"projectId");Ue(this,"queue");Ue(this,"flushTimeout");Ue(this,"defaultProps");Ue(this,"previousPageKey");Ue(this,"ts");Ue(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});Ue(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;eN5&&(this.queue=this.queue.splice(this.queue.length-N5)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=D5(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.previousPageKey!==n&&(this.previousPageKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=hg();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!gA(this.auth)){this.enabled=!1;return}es()&&(this.enabled=!0,this.ts=qa({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){es()&&(this.enabled=!1,this.ts=qa({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},es=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",$5=(t,e)=>{if(!gA(e))return!1;if(!es())return!0;const r=hg();return r===null?t??!0:r.on},gA=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},D5=()=>{try{return window.location.pathname}catch{return""}},oY=()=>{if(!es())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),e},mh="_dbeat",hg=()=>{try{return JSON.parse(window.localStorage.getItem(mh))}catch{return null}},qa=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(mh,JSON.stringify(t)),t.ts}catch{return}},aY=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return es()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:IJ(jJ(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},lY=()=>{if(es()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(mh);if(e&&e.length>0)return e;{const r=B5(16);return window.sessionStorage.setItem(mh,r),r}}else return B5(16)},B5=t=>{let e="";for(let r=0;r++cY;class Du{constructor(){var e=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new w1.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.sendAsync=async function(r,n,i){e.state===_n.CLOSED&&(e.confirmationOnly=!0),e.openWallet(void 0,{type:"jsonRpcRequest",method:r.method},i);try{e.isOpened()||await e.waitUntilOpened();const s=await e.sendMessageRequest({idx:wA(),type:Ne.MESSAGE,data:r,chainId:i});n(void 0,s.data)}catch(s){n(s)}},this.sendMessageRequest=async function(r){return new Promise((n,i)=>{(!r.idx||r.idx<=0)&&r.type!=="init"&&i(new Error("message idx not set"));const s=(a,l)=>{if(a)i(a);else if(l)n(l);else throw new Error("no valid response to return")},o=r.idx;e.responseCallbacks.get(o)?i(new Error("duplicate message idx, should never happen")):e.responseCallbacks.set(o,s),e.isOpened()?e.sendMessage(r):(ge.debug("pushing to pending requests",r),e.pendingMessageRequests.push(r))})},this.waitUntilOpened=async function(r=db){let n=!1;return Promise.race([new Promise((i,s)=>{const o=setTimeout(()=>{clearTimeout(o),n||(e.state=_n.CLOSED,e.events.emit("close",{code:1005,message:"opening wallet timed out"})),s(new Error("opening wallet timed out"))},r)}),new Promise(i=>{if(e.isOpened()){var s;n=!0,i((s=e.openPayload)==null?void 0:s.session);return}e.events.once("open",o=>{e.openPayload=o,n=!0,i(o.session)})})])},this.waitUntilConnected=async function(){await e.waitUntilOpened();const r=new Promise(i=>{if(e.connectPayload){i(e.connectPayload);return}e.events.once("connect",s=>{e.connectPayload=s,i(s)})}),n=new Promise((i,s)=>{e.events.once("close",o=>{s(o?new Error(`wallet closed due to ${JSON.stringify(o)}`):new Error("user closed the wallet"))})});return Promise.race([r,n])},this.state=_n.CLOSED,this._registered=!1,this._init=Ot.NIL}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===_n.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}handleMessage(e){var r=this;if(e.type===Ne.INIT){ge.debug("MessageProvider, received INIT message",e);const{nonce:l}=e.data;if(!l||l.length==0){ge.error("invalid init nonce");return}this._init=Ot.OK,this.sendMessage({idx:-1,type:Ne.INIT,data:{sessionId:this._sessionId,nonce:l}})}if(this._init!==Ot.OK)return;ge.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,i=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===Ne.OPEN&&!this.isOpened()){var s,o;if(this._sessionId&&this._sessionId!==((s=e.data)==null?void 0:s.sessionId)){ge.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const l=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw ge.error(l),this.close(),l}this.state=_n.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(c){r.sendMessage(c)});return}if(e.type===Ne.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!i)throw new Error("impossible state");if(i){this.events.emit("message",e),i(e.data.error,e);return}}if(e.type===Ne.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Se(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===Ne.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===Ne.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===Ne.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===Ne.CLOSE&&this.state!==_n.CLOSED&&this.close(e.data),e.type===Ne.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===Ne.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==_n.CLOSED&&(this.state=_n.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,ge.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(sn({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function fY(t){return uY.some(e=>e.predicate(t))}const uY=[{name:"Decentraland Exception",predicate:hY},{name:"0x v3 Exception",predicate:vY}],dY=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function hY(t){try{const e=ps(t);return dY.test(e)}catch{return!1}}function vY(t){const e=new Dt(yY);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const yY=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],r0=Ke(`Ethereum Signed Message: -`),hb=t=>Oi(t)?X(t):Ke(t),C1=t=>{const e=hb(t);return fY(e)?e:Ze([r0,Ke(String(e.length)),e])},pY=t=>{if(JSON.stringify(t.slice(0,r0.length))!==JSON.stringify(r0))return t;const e=t.slice(r0.length),r=String(e.length).length;let n,i;try{i=Number(ps(e.slice(0,r)))}catch{i=Number(Q(e.slice(0,r)))}return i>e.length||!Number.isInteger(i)?n=r-1:n=r,e.slice(n)},rc=async(t,e,r,n)=>new ue.reader.OnChainReader(n).isValidSignature(t,e,r),CA=async(t,e,r,n)=>{const i=C1(e),s=jx(i);return rc(t,s,r,n)},EA=(t,e,r,n)=>rc(t,Pu(e),r,n),xh=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",SA=()=>!!navigator.userAgent.match(/UnitySequence/i),kA=t=>t.onChain.deployed&&t.fullyMigrated;class AA{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class hu{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!hu.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(i=>i.key===r).forEach(i=>i.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function bh(){return hu.isAvailable()?new hu:new AA}async function _A(t){return Array.isArray(t)?Promise.all(t.map(e=>nt(e))):nt(t)}const L5="@sequence.transportSession";class Bu{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.sendAsync=async function(n,i,s){throw new Error("abstract method")},this.handleMessage=async function(n){const i=n;if(r._init!==Ot.OK){if(i.type===Ne.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(i.type){case Ne.OPEN:{if(r._init!==Ot.OK)return;const s={sessionId:i.data.sessionId,intent:i.data.intent,networkId:i.data.networkId};await r.open(s);return}case Ne.CLOSE:return r._init!==Ot.OK,void 0;case Ne.MESSAGE:{const s=await r.walletRequestHandler.sendMessageRequest(i);r.sendMessage(s),s.data.error;return}default:ge.error(`unexpected payload type ${i.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:i,networkId:s}){n&&(r._sessionId=hS(n),r.saveTransportSession({sessionId:n,intent:i,networkId:s})),r.walletRequestHandler.setOpenIntent(i),await r.init();let o;try{if(s){const a=zx(s);if(a)o=a.chainId;else throw new Error(`unknown network ${s}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(i&&i.type==="connect"&&i.options){const a=i.options,l=a;if(r.appOrigin&&l!=null&&l.origin){if(!xh()&&l.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&l!=null&&l.origin?a.origin=yS(l.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=vS(a.app)),a.networkId?s=a.networkId:s&&(a.networkId=s),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(i&&i.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(i.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){ge.warn("promptConnect not connected:",a)}finally{(!i.options||i.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${s}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{bh().setItem(L5,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=bh().getItem(L5);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=Ot.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,i)=>{this.registered&&this.notifyDisconnect(n,i)}),this.walletRequestHandler.on("accountsChanged",(n,i)=>{this.registered&&this.notifyAccountsChanged(n,i)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(oi(n.find(i=>i.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,i)=>{this.notifyChainChanged(n,i)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:i,error:s}=e;this.sendMessage({idx:-1,type:Ne.OPEN,data:{chainId:r,sessionId:n,session:i,error:s}})}notifyClose(e){this.sendMessage({idx:-1,type:Ne.CLOSE,data:e?{error:e}:null})}notifyConnect(e){this.sendMessage({idx:-1,type:Ne.CONNECT,data:e})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:Ne.DISCONNECT,data:e?{error:e}:null,origin:r})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:Ne.ACCOUNTS_CHANGED,data:e,origin:r})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:Ne.CHAIN_CHANGED,data:e,origin:r})}notifyNetworks(e){this.sendMessage({idx:-1,type:Ne.NETWORKS,data:e})}notifyWalletContext(e){this.sendMessage({idx:-1,type:Ne.WALLET_CONTEXT,data:e})}isValidInitAck(e){if(this._init===Ot.OK)return ge.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==Ne.INIT)return ge.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(ge.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(ge.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===Ot.OK){e();return}if(this._init!==Ot.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{ge.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},db/2);this._initCallback=i=>{this._initCallback=void 0,clearTimeout(n),i?r(i):(this._init=Ot.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:Ne.INIT,data:{nonce:this._initNonce}}),this._init=Ot.SENT_NONCE})}}class gY{constructor(){this.app=void 0,this.wallet=void 0;const e=new vg,r=new vg;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class vg{constructor(){this.conn=void 0,this.events=new w1.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class TA extends Du{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,i)=>{if(this.state===_n.CLOSED){this.state=_n.OPENING;const s=`${performance.now()}`;this._sessionId=s,this.sendMessage({idx:-1,type:Ne.OPEN,data:{path:r,intent:n,networkId:i,sessionId:s}})}},this.state=_n.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=Ot.OK}closeWallet(){this.sendMessage({idx:-1,type:Ne.CLOSE,data:null}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class mY extends Bu{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=Ot.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function IA(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...i)=>{n.logfromjs(`${t}: ${ny(i)}`)},console.warn=(...i)=>{n.warnfromjs(`${t}: ${ny(i)}`)},console.error=(...i)=>{n.errorfromjs(`${t}: ${ny(i)}`)},window.logsOverriddenForUnreal=!0}}function ny(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Ha;class PA extends Du{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;IA("dapp"),Ha&&(Ha.unregister(),Ha=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Ha=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Ha===this&&(Ha=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,i)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const s=new URL(this.walletURL.href),o=new $u;r&&(s.pathname=r.toLowerCase()),this._init=Ot.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",Bx(n)),i&&o.set("net",`${i}`),s.search=o.toString(),console.log("opening wallet to",s.href),window.open(s.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class xY extends Bu{constructor(e){super(e),this.onMessageFromUnreal=r=>{ge.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new $u(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:Lx(n.get("intent"))}},this._init=Ot.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;IA("wallet");const{search:n}=new URL(e||window.location.href);let i=this.getUnrealTransportSession(n);if(!!i.sessionId||(i=await this.getCachedTransportSession()),!i){ge.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(i).then(o=>{if(!o){var a;const l=`failed to open to network ${(a=i)==null?void 0:a.networkId}`;ge.error(l),this.notifyClose({message:l}),window.close()}}).catch(o=>{var a;const l=`failed to open to network ${(a=i)==null?void 0:a.networkId}, due to: ${o}`;ge.error(l),this.notifyClose({message:l}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==Ne.INIT&&this._init!==Ot.OK){ge.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const vb="sequence-extension-message-handler";class bY extends Bu{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=Ot.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:vb})}sendMessage(e){ge.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class RA extends Du{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===vb&&(this._init=Ot.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class wY extends w1.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;ge.info("[received message]",n);const i=n.idx,s=this.responseCallbacks.get(i);switch(i&&this.responseCallbacks.delete(i),n.type){case Ne.MESSAGE:if(s)this.emit(Ne.MESSAGE,n),s(n.data.error,n);else throw new Error("impossible state");break;case Ne.DISCONNECT:case Ne.ACCOUNTS_CHANGED:case Ne.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((i,s)=>{(!n.idx||n.idx<=0)&&s(new Error("message idx not set"));const o=(l,c)=>{if(l)s(l);else if(c)i(c);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?s(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let Wa;class MA extends Du{constructor(e){super(),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{Wa&&(Wa.unregister(),Wa=this),window.addEventListener("message",this.onWindowEvent),Wa=this,this.on("open",()=>{const r=this.walletWindow,n=setInterval(()=>{r&&r.closed&&(clearInterval(n),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),Wa===this&&(Wa=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(r,n,i)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const s=new URL(this.walletURL.href),o=new $u;r&&r!==""&&(s.pathname=r.toLowerCase()),this._init=Ot.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&(n.type==="connect"&&(n.options||(n.options={app:window.location.origin}),!xh()&&!SA()&&n.options&&(n.options.origin=window.location.origin)),o.set("intent",Bx(n))),i&&o.set("net",`${i}`);let a,l;xh()?(a=[450,750],l=[Math.abs(window.screen.width/2-a[0]/2),Math.abs(window.screen.height/2-a[1]/2)]):(a=[450,750],l=[Math.abs(window.screenX+window.innerWidth/2-a[0]/2),Math.abs(window.screenY+window.innerHeight/2-a[1]/2)]);const c=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${a[0]},height=${a[1]},left=${l[0]},top=${l[1]}`;s.search=o.toString(),this.walletWindow=window.open(s.href,"sequence.app",c)},this.onWindowEvent=r=>{if(r.origin!==this.walletURL.origin)return;let n;try{n=JSON.parse(r.data)}catch{return}if(!n)throw new Error("ProviderMessage object is empty");this.handleMessage(n)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){ge.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class CY extends Bu{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let i;try{i=JSON.parse(n.data)}catch{return}if(ge.debug("RECEIVED MESSAGE",i),r._init!==Ot.OK&&r.isValidInitAck(i)&&(r.appOrigin=n.origin),r._init===Ot.OK&&(!r.appOrigin||r.appOrigin.length<8)){ge.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(i)},this.getWindowTransportSession=n=>{const i=new $u(n);return{sessionId:i.get("sid"),networkId:i.get("net"),intent:Lx(i.get("intent"))}},this._init=Ot.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{pathname:n,search:i}=new URL(e||window.location.href);let s=this.getWindowTransportSession(i);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){ge.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(a=>{if(!a){var l;const c=`failed to open to network ${(l=s)==null?void 0:l.networkId}`;ge.error(c),this.notifyClose({message:c}),window.close()}}).catch(a=>{var l;const c=`failed to open to network ${(l=s)==null?void 0:l.networkId}, due to: ${a}`;ge.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e);e.type===Ne.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==Ot.OK){ge.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):ge.error("unable to postMessage as parentOrigin is invalid")}}function OA(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class E1{constructor(...e){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(i=>{this.provider!==i&&i.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,i,s)=>{if(this.provider){this.provider.openWallet(n,i,s);return}this.messageProviders.forEach(o=>o.openWallet(n,i,s))},this.sendAsync=async function(n,i,s){if(r.provider){r.provider.sendAsync(n,i,s);return}throw new Error("impossible state, wallet must be opened first")},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e){var r,n,i,s;const o=new E1;if((r=e.windowTransport)!=null&&r.enabled&&typeof window=="object"&&e.walletAppURL){const a=new MA(e.walletAppURL);o.add(a)}if((n=e.proxyTransport)!=null&&n.enabled){const a=new TA(e.proxyTransport.appPort);o.add(a)}if((i=e.extensionTransport)!=null&&i.enabled){const a=new RA(e.extensionTransport.runtime);o.add(a)}if((s=e.unrealTransport)!=null&&s.enabled&&e.windowTransport&&e.walletAppURL){const a=new PA(e.walletAppURL);o.add(a)}return o.register(),o}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;nkY(t,i))}function kY(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=X(e.data);if(r.length>=4&&!AY(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden")}function AY(t){const e=new Dt(lr.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}const _Y=1e4;class TY{constructor(e,r,n){var i=this;this.account=void 0,this.signerReadyCallbacks=[],this.prompter=void 0,this.networks=void 0,this._openIntent=void 0,this._connectOptions=void 0,this.events=new w1.EventEmitter2,this.onConnectOptionsChange=void 0,this.promptConnect=async function(s){if(!s&&!i._connectOptions)throw new Error("prompter connect options are empty");if(!i.prompter)return i.connect(s);const o=await i.prompter.promptConnect(s||i._connectOptions).catch(l=>({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await i.walletSession(s==null?void 0:s.networkId)),o},this.sendAsync=async function(s,o,a){const l={jsonrpc:"2.0",id:s.id,result:null};await i.getAccount();try{var c;if((!i.account||i.account===null)&&!IY.includes(s.method))throw bA;const u=i.account;if(!u)throw new Error("WalletRequestHandler: wallet account is not configured");const h=(c=i.account)==null?void 0:c.providerFor(a??i.defaultChainId());if(!h)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${a}`);const y=h instanceof Da?h:void 0;switch(s.method){case"net_version":{if(!y)throw new Error("Account provider doesn't support send method");const g=await y.send("net_version",[]);l.result=g;break}case"eth_chainId":{if(!y)throw new Error("Account provider doesn't support send method");const g=await y.send("eth_chainId",[]);l.result=g;break}case"eth_accounts":{const g=u.address;l.result=[g];break}case"eth_getBalance":{const[g,p]=s.params,k=await h.getBalance(g,p);l.result=k.toHexString();break}case"sequence_sign":case"personal_sign":case"eth_sign":{let g;switch(s.method){case"sequence_sign":case"personal_sign":{const[E,A]=s.params;g=E;break}case"eth_sign":{const[E,A]=s.params;g=A;break}}let p="";const k=C1(g),w=s.method==="sequence_sign";if(i.prompter===null?p=await u.signMessage(k,a??i.defaultChainId(),w?"eip6492":"ignore"):p=await i.prompter.promptSignMessage({chainId:a,message:k,eip6492:w},i.connectOptions),p&&p.length>0)l.result=p;else throw new Error("declined by user");break}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[g,p]=s.params;let k;if(typeof p=="string")try{k=JSON.parse(p)}catch(A){console.warn("walletRequestHandler: error parsing typedData",A)}else k=p;if(!k||!k.domain||!k.types||!k.message)throw new Error("invalid typedData object");let w="";const E=s.method==="sequence_signTypedData_v4";if(i.prompter===null?w=await u.signTypedData(k.domain,k.types,k.message,a??i.defaultChainId(),E?"eip6492":"ignore"):w=await i.prompter.promptSignMessage({chainId:a,typedData:k,eip6492:E},i.connectOptions),w&&w.length>0)l.result=w;else throw new Error("declined by user");break}case"eth_sendTransaction":{const g=SY(s.params[0]).map(k=>("gas"in k&&k.gasLimit===void 0&&(k.gasLimit=k.gas,delete k.gas),k));j5(u.address,g);let p="";if(i.prompter===null){var f;const k=await u.sendTransaction(g,a??i.defaultChainId());p=(f=k==null?void 0:k.hash)!=null?f:""}else p=await i.prompter.promptSendTransaction(g,a,i.connectOptions);if(p)l.result=p;else throw new Error("declined by user");break}case"eth_signTransaction":{const[g]=s.params;if(Se(g.from)!==u.address)throw new Error("sender address does not match wallet");j5(u.address,g),i.prompter===null?l.result=await u.signTransactions(g,a??i.defaultChainId()):l.result=await i.prompter.promptSignTransaction(g,a,i.connectOptions);break}case"eth_sendRawTransaction":{if(ue.transaction.isSignedTransactionBundle(s.params[0])){const g=q.from(s.params[0].chainId).toNumber(),p=await u.relayer(g).relay(s.params[0]);l.result=p.hash}else{const g=await h.sendTransaction(s.params[0]);l.result=g.hash}break}case"eth_getTransactionCount":{const g=Se(s.params[0]),p=s.params[1],k=await h.getTransactionCount(g,p);l.result=q.from(k).toHexString();break}case"eth_blockNumber":{l.result=await h.getBlockNumber();break}case"eth_getBlockByNumber":{l.result=await h.getBlock(s.params[0]);break}case"eth_getBlockByHash":{l.result=await h.getBlock(s.params[0]);break}case"eth_getTransactionByHash":{l.result=await h.getTransaction(s.params[0]);break}case"eth_call":{const[g,p]=s.params;l.result=await h.call(g,p);break}case"eth_getCode":{const[g,p]=s.params;l.result=await h.getCode(g,p);break}case"eth_estimateGas":{const[g]=s.params;l.result=await h.estimateGas(g);break}case"eth_gasPrice":{const g=await h.getGasPrice();l.result=g.toHexString();break}case"wallet_switchEthereumChain":{const[g]=s.params;if(!g.chainId||g.chainId.length===0)throw new Error("invalid chainId");const p=q.from(g.chainId);i.setDefaultChainId(p.toNumber()),l.result=null;break}case"sequence_getWalletContext":{l.result=u.contexts;break}case"sequence_getWalletConfig":{const[g]=s.params;g?l.result=[(await u.status(g)).onChain.config]:l.result=await Promise.all(u.networks.map(async function(p){return(await u.status(p.chainId)).onChain.config}));break}case"sequence_getWalletState":{const[g]=s.params;g?l.result=[F5(g,await u.status(g))]:l.result=await Promise.all(u.networks.map(async function(p){const k=await u.status(p.chainId);return F5(p.chainId,k)}));break}case"sequence_getNetworks":{l.result=await i.getNetworks(!0);break}case"sequence_isSequence":{l.result=!0;break}case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[g]=s.params;if(!g)throw new Error("invalid request, method argument defaultChainId cannot be empty");i.setDefaultChainId(g),l.result=await i.getNetworks(!0);break}default:{if(!y)throw new Error("Account provider doesn't support send method");const g=await y.send(s.method,s.params);l.result=g}}}catch(u){ge.error(u),l.result=null,l.error=sn({},new Error(u),{code:4001})}o(void 0,l)},this.isSignedIn=async function(){return await i.signerReady(),!!i.account},this.getAccount=async function(){if(await i.signerReady(),i.account===void 0)throw new Error("signerReady failed resolve");return i.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:i}=r;if(n){const a=this._connectOptions;let l;if(this.prompter!==null){var s;l=await((s=this.prompter)==null?void 0:s.promptSignInConnect(a))}else l=await this.connect(a);this.notifyConnect(l),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(i&&this.defaultChainId()!==i){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(i))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=_Y){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const i=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:K.MAINNET,s=zx(i).chainId,o={connected:!0,chainId:oi(s)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await jk(this.account,s,a)}catch(l){return ge.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${l.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${l.message}`}}}return o.session=this.walletSession(s),o}sendMessageRequest(e){return new Promise(r=>{this.sendAsync(e.data,(n,i)=>{const s=sn({},e,{data:i});r(s)},e.chainId)})}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=sn({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(ge.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(i=>sn({},i,{provider:void 0,relayer:void 0}))};if(e){const i=ai(r.networks,e);if(i){var n;(n=r.networks)==null||n.forEach(s=>delete s.isDefaultChain),i.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var i;this.events.emit("accountsChanged",[(i=e.session)==null?void 0:i.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",oi(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(i=>i.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",oi(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){ge.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rl.canOnchainValidate||l.original.version===2&&n,o=await r.status(i);if(s(o))return!0;if(await e.promptConfirmWalletDeploy(i,this.connectOptions)){const l=await r.status(i);return s(l)?!0:(ge.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function F5(t,e){return{context:e.original.context,config:e.onChain.config,address:ue.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const IY=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];class wc{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSigner=!0,this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Cc.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new wc(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new yb(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},i=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:i})}async signTypedData(e,r,n,i){const{eip6492:s=!0}=i||{},o=this.useChainId(i==null?void 0:i.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:s,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),i=await _A(e),s=await this.client.sendTransaction(i,{chainId:n}),o=this.getProvider(n);try{return await ea(async function(){const a=await o.getTransaction(s);return a?o._wrapTransaction(a,s):void 0},{onceBlock:o})}catch(a){throw a.transactionHash=s,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r,n){return this.getProvider(n==null?void 0:n.chainId).call(e,r)}getChainId(){return Promise.resolve(this.client.getChainId())}async getGasPrice(e){return this.getProvider(e==null?void 0:e.chainId).getGasPrice()}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class yb extends wc{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class PY{constructor(e){if(this.signer=e,yb.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,i,s){return this.signer.signTypedData(e,r,n,{chainId:i,eip6492:s})}async isValidSignature(e,r,n,i){return rc(e,r,n,this.signer.getProvider(i))}async isValidMessageSignature(e,r,n,i){const s=this.signer.getProvider(i),o=C1(r),a=jx(o);return rc(e,a,n,s)}isValidTypedDataSignature(e,r,n,i){return this.isValidSignature(e,Pu(r),n,i)}}class Cc extends Rx{constructor(e,r,n=Zl){super(e.getChainId()),this.client=e,this.providerFor=r,this.networks=n,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,e.onConnect(i=>{this.emit("connect",i)}),e.onDisconnect(i=>{this.emit("disconnect",i)}),e.onDefaultChainIdChanged(i=>{this.emit("chainChanged",i)}),e.onAccountsChanged(i=>{this.emit("accountsChanged",i)}),this.signer=new wc(this.client,this),this.utils=new PY(this.signer)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(sn({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=ai(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new $A(this.client,this.providerFor,r)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async perform(e,r){var n;if(e==="eth_chainId")return oi(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const o=r[0],a=NA(o);return this.setDefaultChainId(a)}if(e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4")return this.client.send({method:e,params:r},this.getChainId());const i=await this._getSubprovider(),s=(n=i.prepareRequest(e,r))!=null?n:[e,r];return i.send(s[0],s[1])}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async detectNetwork(){const e=this.client.getChainId(),r=ai(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return r}async waitForTransaction(e,r,n,i){return(await this._getSubprovider(i==null?void 0:i.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getGasPrice(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getGasPrice()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorageAt(e,r,n,i){return(await this._getSubprovider(i==null?void 0:i.chainId)).getStorageAt(e,r,n)}async call(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).call(e,r)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getBlock(e)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return u7(await e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Cc.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function NA(t){return typeof t=="object"?NA(t.chainId):q.from(t).toNumber()}class $A extends Cc{constructor(e,r,n){super(e,r),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=ai(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return r}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}class RY extends sY{}const MY=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new RY(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>es()?{origin:window.location.origin}:{}})};var OY={name:"@0xsequence/provider",version:"1.9.17",description:"provider sub-package for Sequence",repository:"https://github.com/0xsequence/sequence.js/tree/master/packages/provider",source:"src/index.ts",main:"dist/0xsequence-provider.cjs.js",module:"dist/0xsequence-provider.esm.js",author:"Horizon Blockchain Games",license:"Apache-2.0",scripts:{test:"pnpm test:concurrently 'pnpm test:run'","test:run":"pnpm test:file tests/**/*.spec.ts","test:file":"NODE_OPTIONS='--import tsx' mocha --timeout 30000",typecheck:"tsc --noEmit","test:concurrently":"concurrently -k --success first 'pnpm start:hardhat1' 'pnpm start:hardhat2'","start:hardhat1":"pnpm start:hardhat1:verbose > /dev/null 2>&1","start:hardhat2":"pnpm start:hardhat2:verbose > /dev/null 2>&1","start:hardhat1:verbose":"hardhat node --config hardhat1.config.js --hostname 0.0.0.0 --port 9595","start:hardhat2:verbose":"hardhat node --config hardhat2.config.js --hostname 0.0.0.0 --port 8595"},dependencies:{"@0xsequence/abi":"workspace:*","@0xsequence/account":"workspace:*","@0xsequence/auth":"workspace:*","@0xsequence/core":"workspace:*","@0xsequence/migration":"workspace:*","@0xsequence/network":"workspace:*","@0xsequence/relayer":"workspace:*","@0xsequence/utils":"workspace:*","@0xsequence/wallet":"workspace:*","@databeat/tracker":"^0.9.1",eventemitter2:"^6.4.5","webextension-polyfill":"^0.10.0"},peerDependencies:{ethers:">=5.5 < 6"},devDependencies:{"@types/webextension-polyfill":"^0.10.0",ethers:"^5.7.2",hardhat:"^2.20.1"},files:["src","dist"]};class ua{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(ua.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(ua.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(ua.SESSION_LOCALSTORE_KEY)}}ua.SESSION_LOCALSTORE_KEY="@sequence.session";class da{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(da.SESSION_CHAIN_ID_KEY,n=>{if(n){const i=parseInt(n);this.callbacks.forEach(s=>s(i))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(da.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(da.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}da.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class pb{constructor(e,r,n){var i,s;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,OA(e))this.transport=E1.new(e);else if(mA(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(i=n==null?void 0:n.defaultEIP6492)!=null?i:!1,this.session=new ua(r),this.defaultChainId=new da(r,o),this.transport.on("accountsChanged",c=>{var f;c.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(f=this.callbacks.accountsChanged)==null||f.forEach(u=>u(c))}),this.transport.on("connect",c=>{var f;const u=oi(this.getChainId());(f=this.callbacks.connect)==null||f.forEach(h=>h(sn({},c,{chainId:u})))}),this.transport.on("disconnect",(c,f)=>{var u;(u=this.callbacks.disconnect)==null||u.forEach(h=>h(c,f))}),this.transport.on("networks",c=>{var f;(f=this.callbacks.networks)==null||f.forEach(u=>u(c))}),this.transport.on("walletContext",c=>{var f;(f=this.callbacks.walletContext)==null||f.forEach(u=>u(c))}),this.transport.on("open",c=>{var f;(f=this.callbacks.open)==null||f.forEach(u=>u(c))}),this.transport.on("close",()=>{var c;(c=this.callbacks.close)==null||c.forEach(f=>f())}),this.transport.on("chainChanged",(c,f)=>{var u;(u=this.callbacks.chainChanged)==null||u.forEach(h=>h(c,f))}),this.defaultChainId.onDefaultChainIdChanged(c=>{var f;const u=oi(c);(f=this.callbacks.chainChanged)==null||f.forEach(h=>h(u))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=MY(this.projectAccessKey)),(s=this.session.getSession())!=null&&s.accountAddress){var a,l;(a=this.analytics)==null||a.identify((l=this.session.getSession())==null||(l=l.accountAddress)==null?void 0:l.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:sn({},e,{networkId:this.getChainId(),clientVersion:OY.version})});const r=await this.transport.waitUntilConnected().catch(s=>s instanceof Error?{connected:!1,error:s.message}:{connected:!1,error:JSON.stringify(s)});if(r.chainId&&(r.chainId=q.from(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var i;(i=this.analytics)==null||i.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}send(e,r){return e.method=this.mapSignMethod(e.method),new Promise((n,i)=>{this.transport.sendAsync(e,(s,o)=>{s?i(s):o===void 0?i(new Error(`Got undefined response for request: ${e}`)):typeof o=="object"&&o.error?i(o.error):typeof o=="object"&&o.result?n(o.result):i(new Error(`Got invalid response for request: ${e}`))},r||this.getChainId())})}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.send({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const i=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=Q(hb(e)),this.send({method:i,params:[e,this.getAddress()]},r==null?void 0:r.chainId)}async signTypedData(e,r){var n;const i=this.signTypedDataMethod(r),s=ir.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.send({method:i,params:[this.getAddress(),s]},(r==null?void 0:r.chainId)||e.domain.chainId&&q.from(e.domain.chainId).toNumber()||this.getChainId())}async sendTransaction(e,r){var n;const i=Array.isArray(e)?e:[e],s=EY(i);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.send({method:"eth_sendTransaction",params:[s]},r==null?void 0:r.chainId)}async getWalletContext(){return this.send({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.send({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()]},e==null?void 0:e.chainId);return Array.isArray(r)?r[0]:r}}const yg={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let Si;const DA=(t,e)=>{var r,n,i;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(Si)return Si;const s=sn({},yg,e,{transports:sn({},yg.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=s.networks)==null?void 0:n.filter(y=>{y.rpcUrl!==void 0&&y.chainId!==void 0&&Zl.find(g=>g.chainId===y.chainId)}))!=null?r:[],l=Zl.map(y=>{var g;const p=(g=s.networks)==null?void 0:g.find(k=>k.chainId===y.chainId);return p?sn({},y,p):y}).concat(a).map(y=>(y.rpcUrl.includes(t)||(y.rpcUrl=y.rpcUrl+`/${t}`),y)),c=y=>{if(!o[y]){var g;const p=(g=l.find(E=>E.chainId===y))==null?void 0:g.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${y}`);const k=new Da(p),w=new Vx([RS,PS,new qx],new ah(k));o[y]=new sH(w,y)}return o[y]},f=s.defaultNetwork?(i=ai(l,s.defaultNetwork))==null?void 0:i.chainId:void 0;if(!f&&s.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${s.defaultNetwork}`);const u=s.localStorage||bh(),h=new pb(s.transports,u,{defaultChainId:f,defaultEIP6492:s.defaultEIP6492,projectAccessKey:t,analytics:s.analytics});return Si=new Cc(h,c),Si},BA=()=>{Si&&(Si.client.closeWallet(),Si.client.transport.unregister(),Si=void 0)},LA=()=>{if(!Si)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return Si},NY=Object.freeze(Object.defineProperty({__proto__:null,BaseInjectedTransport:wY,BaseProviderTransport:Du,BaseWalletTransport:Bu,CHANNEL_ID:vb,DefaultChainIdTracker:da,DefaultProviderConfig:yg,ErrSignedInRequired:bA,EventType:Ne,ExtensionMessageHandler:bY,ExtensionMessageProvider:RA,InitState:Ot,LocalStorage:hu,MemoryItemStore:AA,MuxMessageProvider:E1,OpenState:_n,PROVIDER_OPEN_TIMEOUT:db,ProviderError:xA,ProxyMessageChannel:gY,ProxyMessageChannelPort:vg,ProxyMessageHandler:mY,ProxyMessageProvider:TA,SequenceClient:pb,SequenceClientSession:ua,SequenceProvider:Cc,SequenceSigner:wc,SingleNetworkSequenceProvider:$A,SingleNetworkSequenceSigner:yb,UnrealMessageHandler:xY,UnrealMessageProvider:PA,WalletRequestHandler:TY,WindowMessageHandler:CY,WindowMessageProvider:MA,WindowSessionParams:$u,getWallet:LA,initWallet:DA,isBrowserExtension:xh,isMuxTransportTemplate:OA,isProviderTransport:mA,isUnityPlugin:SA,isValidMessageSignature:CA,isValidSignature:rc,isValidTypedDataSignature:EA,isWalletUpToDate:kA,messageToBytes:hb,nextMessageIdx:wA,prefixEIP191Message:C1,resolveArrayProperties:_A,trimEIP191Prefix:pY,unregisterWallet:BA,useBestStore:bh},Symbol.toStringTag,{value:"Module"}));function Fr(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var $Y=Fr({__proto__:null},[OH]),DY=Fr({__proto__:null},[LH]),BY=Fr({__proto__:null},[uJ]),LY=Fr({__proto__:null},[pJ]),jY=Fr({__proto__:null},[xK]),FY=Fr({__proto__:null},[TK]),UY=Fr({__proto__:null},[kJ]),zY=Fr({__proto__:null},[VW]),VY=Fr({__proto__:null},[NY]),qY=Fr({__proto__:null},[ZG]);const HY=ue.transaction;var WY=Object.freeze({__proto__:null,transactions:HY}),GY=Fr({__proto__:null,isValidSignature:rc,isValidMessageSignature:CA,isValidTypedDataSignature:EA,isWalletUpToDate:kA},[TW]),KY=Fr({__proto__:null},[MG]),JY=Fr({__proto__:null},[eK]),YY=Fr({__proto__:null},[lJ]),QY=Fr({__proto__:null},[LG]),XY=Fr({__proto__:null},[aK]),ze=Object.freeze({__proto__:null,abi:$Y,api:DY,auth:BY,guard:LY,indexer:jY,metadata:FY,multicall:UY,network:zY,provider:VY,relayer:qY,transactions:WY,utils:GY,core:KY,signhub:JY,sessions:YY,migration:QY,account:XY,initWallet:DA,getWallet:LA,unregisterWallet:BA,SequenceProvider:Cc,SequenceClient:pb,SequenceSigner:wc});const U5=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var ZY="_1e9z9271";const eQ=({message:t,loading:e})=>{const r=()=>t?` -...`:"...";return oe.jsx(FN,{label:"Console",defaultOpen:!0,children:oe.jsxs(ye,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),oe.jsx(ye,{className:ZY,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var tQ="_1q07ov40";const Ps=t=>{const{label:e,children:r,style:n,className:i}=t;return oe.jsxs(ye,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:i,style:n,children:[e&&oe.jsx(ye,{marginBottom:"2",children:oe.jsx(rQ,{children:e})}),oe.jsx(ye,{className:tQ,children:dr.Children.map(r,(s,o)=>oe.jsx(ye,{children:s},o))})]})},rQ=t=>oe.jsx(Gt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),nQ=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},iQ="/demo-dapp/assets/logo-EKCqYZBG.svg",z5="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",sQ="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",V5="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";dS({logLevel:"DEBUG"});const jA=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],oQ="https://api.sequence.app",q5=nQ()||K.MAINNET,ra=new URLSearchParams(window.location.search),FA=ra.get("env")??"production",aQ=jA.find(t=>t.name===FA),pl=ra.get("walletAppURL")??aQ.walletUrl,lQ=ra.has("showProhibitedActions");pl&&pl.length>0?ze.initWallet(V5,{defaultNetwork:q5,transports:{walletAppURL:pl}}):ze.initWallet(V5,{defaultNetwork:q5,transports:{walletAppURL:pl}});const cQ=()=>{const[t,e]=S.useState(null),[r,n]=S.useState(null),[i,s]=S.useState(!1),[o,a]=S.useState(!1),l=ze.getWallet().getProvider(),[c,f]=S.useState(l.getChainId()),[u,h]=S.useState(!1),[y,g]=S.useState(!1);S.useMemo(()=>{l.on("chainChanged",z=>{f(q.from(z).toNumber())})},[]),S.useEffect(()=>{a(l.isConnected())},[l]),S.useEffect(()=>{ee()},[o]),S.useEffect(()=>{l.client.onOpen(()=>{console.log("wallet window opened")}),l.client.onClose(()=>{console.log("wallet window closed")})},[l]);const p={app:"Demo Dapp",askForEmail:!0},k=async(z={app:"Demo dapp"})=>{if(o){V(),L("Wallet already connected!"),s(!1);return}z={...p,...z,settings:{...p.settings,...z.settings}};try{V(),L("Connecting");const re=ze.getWallet(),ae=await re.connect(z);if(z.authorize&&ae.connected){let ce=ra.get("apiUrl");(!ce||ce.length===0)&&(ce=oQ);const ve=new ze.api.SequenceAPIClient(ce),{isValid:tt}=await ve.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});L(`isValid (API)?: ${tt}`)}if(z.authorize){const ce=new sh;if(ae.proof){const ve=await ce.decodeProof(ae.proof.proofString,!0),tt=await re.utils.isValidTypedDataSignature(re.getAddress(),ae.proof.typedData,ve.signature,q.from(ae.chainId).toNumber());L(`connected using chainId: ${q.from(ae.chainId).toString()}`),L(`isValid (client)?: ${tt}`)}}s(!1),ae.connected?(L("Wallet connected!"),L(`shared email: ${ae.email}`),a(!0)):L("Failed to connect wallet - "+ae.error)}catch(re){console.error(re),H()}},w=()=>{ze.getWallet().disconnect(),ee(),a(!1)},E=()=>{ze.getWallet().openWallet()},A=()=>{const z=ze.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};z.openWallet("wallet/add-funds",ae)},P=()=>{ze.getWallet().closeWallet()},M=async()=>{V();const z=ze.getWallet();L(`isConnected?: ${z.isConnected()}`),s(!1)},j=async()=>{V();const z=ze.getWallet();L(`isOpened?: ${z.isOpened()}`),s(!1)},U=async()=>{try{V();const z=l.getChainId();L(`top chainId: ${z}`);const ae=l.getProvider().getChainId();L(`provider.getChainId(): ${ae}`);const ve=await l.getSigner().getChainId();L(`signer.getChainId(): ${ve}`),s(!1)}catch(z){console.error(z),H()}},F=async()=>{try{V();const z=ze.getWallet(),re=z.getAddress();L(`getAddress(): ${re}`);const ce=z.getProvider().listAccounts();L(`accounts: ${JSON.stringify(ce)}`),s(!1)}catch(z){console.error(z),H()}},G=async()=>{try{V();const z=ze.getWallet(),re=z.getProvider(),ae=z.getAddress(),ce=await re.getBalance(ae);L(`balance check 1: ${ce.toString()}`);const tt=await z.getSigner().getBalance();L(`balance check 2: ${tt.toString()}`),s(!1)}catch(z){console.error(z),H()}},J=async()=>{try{V();const re=await ze.getWallet().getNetworks();L(`networks: ${JSON.stringify(re,null,2)}`),s(!1)}catch(z){console.error(z),H()}},te=async()=>{try{V();const z=ze.getWallet();L("signing message...");const re=z.getSigner(),ae=`1915 Robert Frost -The Road Not Taken - -Two roads diverged in a yellow wood, -And sorry I could not travel both -And be one traveler, long I stood -And looked down one as far as I could -To where it bent in the undergrowth - -Then took the other, as just as fair, -And having perhaps the better claim, -Because it was grassy and wanted wear -Though as for that the passing there -Had worn them really about the same, - -And both that morning equally lay -In leaves no step had trodden black. -Oh, I kept the first for another day! -Yet knowing how way leads on to way, -I doubted if I should ever come back. - -I shall be telling this with a sigh -Somewhere ages and ages hence: -Two roads diverged in a wood, and Iā€” -I took the one less traveled by, -And that has made all the difference. - -ā˜ ā˜€ ā˜‚`,ce=await re.signMessage(ae);L(`signature: ${ce}`);const ve=await z.utils.isValidMessageSignature(z.getAddress(),ae,ce,await re.getChainId());if(L(`isValid?: ${ve}`),!ve)throw new Error("sig invalid");s(!1)}catch(z){console.error(z),H()}},se=async()=>{try{V();const z=ze.getWallet();L("signing message...");const re=z.getSigner(),ae=Q(Ke("Hello, world!")),ce=await re.signMessage(ae);L(`signature: ${ce}`);const ve=await z.utils.isValidMessageSignature(z.getAddress(),ae,ce,await re.getChainId());if(L(`isValid?: ${ve}`),!ve)throw new Error("sig invalid");s(!1)}catch(z){console.error(z),H()}},D=async()=>{try{V();const z=ze.getWallet();L("signing message...");const re=z.getSigner(),ae=Ke("Hello, world!"),ce=await re.signMessage(ae);L(`signature: ${ce}`);const ve=await z.utils.isValidMessageSignature(z.getAddress(),ae,ce,await re.getChainId());if(L(`isValid?: ${ve}`),!ve)throw new Error("sig invalid");s(!1)}catch(z){console.error(z),H()}},v=async()=>{try{V();const z=ze.getWallet();L("signing typedData...");const re={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=z.getSigner(),ce=await ae.signTypedData(re.domain,re.types,re.message);L(`signature: ${ce}`);const ve=await z.utils.isValidTypedDataSignature(z.getAddress(),re,ce,await ae.getChainId());L(`isValid?: ${ve}`),s(!1)}catch(z){console.error(z),H()}},C=async()=>{try{V();const z=ze.getWallet(),re="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new Dt(["function withdraw(uint256 amount)"]),ce={to:re,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},tt=await z.getProvider().estimateGas(ce);L(`estimated gas needed for wmatic withdrawal : ${tt.toString()}`),s(!1)}catch(z){console.error(z),H()}},I=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner(),L(`Transfer txn on ${z.getChainId()} chainId`);const ae=await z.getAddress(),ce={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Up("1.234"),data:"0x"},ve={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Up("0.4242"),data:"0x"},tt=z.provider,Be=await tt.getBalance(ae);L(`balance of ${ae}, before: ${Be}`);const Je=await z.sendTransaction([ce,ve]);L(`txnResponse: ${JSON.stringify(Je)}`);const Un=await tt.getBalance(ae);L(`balance of ${ae}, after: ${Un}`),s(!1)}catch(re){console.error(re),H()}},O=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae=await z.getAddress(),ce=nh("1",1),tt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new Dt(U5).encodeFunctionData("transfer",[ae,ce.toHexString()])},Be=await z.sendTransaction([tt],{chainId:K.SEPOLIA});L(`txnResponse: ${JSON.stringify(Be)}`),s(!1)}catch(re){console.error(re),H()}},x=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae=await z.getAddress(),ce=nh("0.05",18),tt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new Dt(U5).encodeFunctionData("transfer",[ae,ce.toHexString()])},Be=await z.sendTransaction([tt]);L(`txnResponse: ${JSON.stringify(Be)}`),s(!1)}catch(re){console.error(re),H()}},_=async()=>{try{const z=ze.getWallet(),re=z.getChainId()===K.ARBITRUM?K.OPTIMISM:K.ARBITRUM;I(z.getSigner(re))}catch(z){console.error(z),H()}},R=async()=>{try{V(),L("TODO"),s(!1)}catch(z){console.error(z),H()}},b=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],ce="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",ve=new $a(ce,ae,z),tt=await ve.symbol();L(`Token symbol: ${tt}`);const Be=await ve.balanceOf(await z.getAddress());L(`Token Balance: ${Be.toString()}`),s(!1)}catch(re){console.error(re),H()}},d=async()=>{try{V();const z=ze.getWallet(),ae=await z.getSigner().getAddress(),ve=(await z.getNetworks()).find(Un=>Un.chainId===K.POLYGON);if(!ve)throw new Error("Could not find Polygon network in networks list");const tt=new ze.indexer.SequenceIndexer(ve.indexerUrl),Be=await tt.getTokenBalances({accountAddress:ae,includeMetadata:!0});L(`tokens in your account: ${JSON.stringify(Be)}`);const Je=await tt.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});L(`skyweaver collectibles in your account: ${JSON.stringify(Je)}`),s(!1)}catch(z){console.error(z),H()}},T=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae={to:re.getAddress(),data:new Dt(lr.mainModule.abi).encodeFunctionData("updateImplementation",[iu])},ce=await z.sendTransaction(ae);L(`response: ${JSON.stringify(ce)}`),s(!1)}catch(re){console.error(re),H()}},$=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae={to:re.getAddress(),data:new Dt(lr.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[Wl])},ce=await z.sendTransaction(ae);L(`response: ${JSON.stringify(ce)}`),s(!1)}catch(re){console.error(re),H()}},m=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae={to:re.getAddress(),delegateCall:!0},ce=await z.sendTransaction(ae);L(`response: ${JSON.stringify(ce)}`),s(!1)}catch(re){console.error(re),H()}},N=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae={to:re.getAddress(),data:new Dt(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",iu])},ce=await z.sendTransaction(ae);L(`response: ${JSON.stringify(ce)}`),s(!1)}catch(re){console.error(re),H()}},B=async z=>{try{V();const re=ze.getWallet();z=z||re.getSigner();const ae={to:re.getAddress(),data:new Dt(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[Wl,ux])},ce=await z.sendTransaction(ae);L(`response: ${JSON.stringify(ce)}`),s(!1)}catch(re){console.error(re),H()}},L=(z,re=!1)=>(console.log(z),e(re?z:ae=>`${ae} - -${z}`)),V=()=>{s(!0)},ee=()=>{s(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},H=()=>{s(!1),e("An error occurred")},Z=[K.RINKEBY,K.HARDHAT,K.HARDHAT_2,K.KOVAN,K.ROPSTEN,K.HOMEVERSE_TESTNET,K.BASE_GOERLI],pe=Object.values(ze.network.networks).filter(z=>z.type===Oe.MAINNET).sort((z,re)=>z.chainId-re.chainId),le=Object.values(ze.network.networks).filter(z=>z.type===Oe.TESTNET).sort((z,re)=>z.chainId-re.chainId),he=[...pe,...le].filter(z=>!z.deprecated&&!Z.includes(z.chainId));S.useEffect(()=>{r&&!u&&(console.log(r),k({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${z5}`}}),n(null))},[r,u]);const qt=z=>(z=z.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(z));return oe.jsxs(ye,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[oe.jsx(ye,{marginBottom:"10",children:oe.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:oe.jsx(mE,{height:"6",alt:"logo",src:iQ})})}),oe.jsx(ye,{children:oe.jsx(Gt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),oe.jsx(ye,{marginTop:"1",marginBottom:"4",children:oe.jsx(Gt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),oe.jsxs(WO,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[oe.jsx(bN,{}),oe.jsx(Gt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),oe.jsx(Mw,{background:"buttonGlass"}),oe.jsx(ye,{marginBottom:"4",children:oe.jsx(a6,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:z=>{ra.set("env",z),ra.delete("walletAppURL"),window.location.search=ra.toString()},value:FA,options:[...Object.values(jA).map(z=>({label:oe.jsx(ye,{alignItems:"center",gap:"2",children:oe.jsx(Gt,{capitalize:!0,children:z.name})}),value:String(z.name)}))]})}),oe.jsxs(ye,{marginBottom:"4",children:[oe.jsx(Gt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),oe.jsxs(ye,{as:"a",href:pl,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[oe.jsx(Gt,{as:"div",variant:"normal",color:"text80",children:pl}),oe.jsx(pN,{})]})]}),oe.jsx(Mw,{background:"buttonGlass"}),oe.jsx(ye,{marginBottom:"4",children:oe.jsx(a6,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:z=>l.setDefaultChainId(Number(z)),value:String(c),options:[...Object.values(he).map(z=>({label:oe.jsxs(ye,{alignItems:"center",gap:"2",children:[oe.jsx(Yj,{src:z.logoURI,size:"sm"}),oe.jsx(Gt,{children:z.title})]}),value:String(z.chainId)}))]})}),oe.jsxs(Ps,{label:"Connection",children:[oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>k(),label:"Connect"}),oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>k({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>k({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${sQ}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>{h(!0)},label:"Connect with Email"}),oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>{k({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${z5}`}})},label:"Connect with Google"}),oe.jsx(Fe,{width:"full",shape:"square",onClick:()=>w(),label:"Disconnect"})]}),oe.jsxs(Ps,{label:"Basics",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>E(),label:"Open Wallet"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Open Wallet with Settings"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>P(),label:"Close Wallet"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>M(),label:"Is Connected?"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>j(),label:"Is Opened?"})]}),oe.jsxs(Ps,{label:"State",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>U(),label:"ChainID"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Networks"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Get Accounts"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Get Balance"})]}),oe.jsxs(Ps,{label:"Signing",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Sign Message"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>se(),label:"Sign Message (Hex)"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Sign Message (Bytes)"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>v(),label:"Sign TypedData"})]}),oe.jsx(Ps,{label:"Simulation",children:oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>C(),label:"Estimate Unwrap Gas"})}),oe.jsxs(Ps,{label:"Transactions",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>I(),label:"Send funds"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>_(),label:"Send on L2"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>x(),label:"Send DAI"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>R(),label:"Send ERC-1155 Tokens"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>O(),label:"Send USDC on Sepolia"})]}),oe.jsxs(Ps,{label:"Various",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>b(),label:"Read Symbol and Balance"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>d(),label:"Fetch Token Balances"})]}),lQ&&oe.jsxs(Ps,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>T(),label:"Update Implementation"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Update Image Hash"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>m(),label:"Delegate Call"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>N(),label:"Add Hook"}),oe.jsx(Fe,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Set Extra Image Hash"})]}),oe.jsx(mC,{children:u&&oe.jsx(iL,{onClose:()=>h(!1),size:"sm",children:oe.jsx(ye,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:oe.jsxs(ye,{flexDirection:"column",children:[oe.jsx(ye,{marginTop:"6",children:oe.jsx(Gt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),oe.jsx(ye,{marginTop:"4",children:oe.jsx(rx,{onChange:z=>{n(z.target.value)}})}),y?oe.jsx(ye,{marginTop:"6",children:oe.jsx(Gt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,oe.jsx(ye,{gap:"2",marginY:"4",children:oe.jsx(Fe,{variant:"primary",label:"Login",onClick:()=>{qt(r)?(g(!1),h(!1)):g(!0)},"data-id":"login"})})]})})})}),oe.jsx(eQ,{message:t,loading:i})]})},fQ=dr.memo(cQ),uQ=JE(document.getElementById("root"));uQ.render(oe.jsx(dr.StrictMode,{children:oe.jsx(XB,{children:oe.jsx(fQ,{})})})); diff --git a/assets/index-CPfVSVG6.css b/assets/index-CO3VYRCy.css similarity index 94% rename from assets/index-CPfVSVG6.css rename to assets/index-CO3VYRCy.css index d537ce4..cdb72c7 100644 --- a/assets/index-CPfVSVG6.css +++ b/assets/index-CO3VYRCy.css @@ -1 +1 @@ -*,*:before,*:after{box-sizing:border-box}body{background:var(--seq-colors-background-primary)}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-0_25)}.fyvr11o{width:var(--seq-space-0_5)}.fyvr11s{width:var(--seq-space-1_5)}.fyvr11w{width:0}.fyvr120{width:1px}.fyvr124{width:auto}.fyvr128{width:100%}.fyvr12c{width:50%}.fyvr12g{width:33.33333%}.fyvr12k{width:66.66667%}.fyvr12o{width:25%}.fyvr12s{width:75%}.fyvr12w{width:-moz-fit-content;width:fit-content}.fyvr130{width:-moz-max-content;width:max-content}.fyvr134{width:-moz-min-content;width:min-content}.fyvr138{width:100vw}.fyvr13c{width:100vh}.fyvr13g{height:var(--seq-space-0)}.fyvr13k{height:var(--seq-space-1)}.fyvr13o{height:var(--seq-space-2)}.fyvr13s{height:var(--seq-space-3)}.fyvr13w{height:var(--seq-space-4)}.fyvr140{height:var(--seq-space-5)}.fyvr144{height:var(--seq-space-6)}.fyvr148{height:var(--seq-space-7)}.fyvr14c{height:var(--seq-space-8)}.fyvr14g{height:var(--seq-space-9)}.fyvr14k{height:var(--seq-space-10)}.fyvr14o{height:var(--seq-space-12)}.fyvr14s{height:var(--seq-space-14)}.fyvr14w{height:var(--seq-space-16)}.fyvr150{height:var(--seq-space-0_25)}.fyvr154{height:var(--seq-space-0_5)}.fyvr158{height:var(--seq-space-1_5)}.fyvr15c{height:0}.fyvr15g{height:1px}.fyvr15k{height:auto}.fyvr15o{height:100%}.fyvr15s{height:50%}.fyvr15w{height:33.33333%}.fyvr160{height:66.66667%}.fyvr164{height:25%}.fyvr168{height:75%}.fyvr16c{height:-moz-fit-content;height:fit-content}.fyvr16g{height:-moz-max-content;height:max-content}.fyvr16k{height:-moz-min-content;height:min-content}.fyvr16o{height:100vw}.fyvr16s{height:100vh}.fyvr16w{max-width:var(--seq-space-0)}.fyvr170{max-width:var(--seq-space-1)}.fyvr174{max-width:var(--seq-space-2)}.fyvr178{max-width:var(--seq-space-3)}.fyvr17c{max-width:var(--seq-space-4)}.fyvr17g{max-width:var(--seq-space-5)}.fyvr17k{max-width:var(--seq-space-6)}.fyvr17o{max-width:var(--seq-space-7)}.fyvr17s{max-width:var(--seq-space-8)}.fyvr17w{max-width:var(--seq-space-9)}.fyvr180{max-width:var(--seq-space-10)}.fyvr184{max-width:var(--seq-space-12)}.fyvr188{max-width:var(--seq-space-14)}.fyvr18c{max-width:var(--seq-space-16)}.fyvr18g{max-width:var(--seq-space-0_25)}.fyvr18k{max-width:var(--seq-space-0_5)}.fyvr18o{max-width:var(--seq-space-1_5)}.fyvr18s{max-width:0}.fyvr18w{max-width:1px}.fyvr190{max-width:auto}.fyvr194{max-width:100%}.fyvr198{max-width:50%}.fyvr19c{max-width:33.33333%}.fyvr19g{max-width:66.66667%}.fyvr19k{max-width:25%}.fyvr19o{max-width:75%}.fyvr19s{max-width:-moz-fit-content;max-width:fit-content}.fyvr19w{max-width:-moz-max-content;max-width:max-content}.fyvr1a0{max-width:-moz-min-content;max-width:min-content}.fyvr1a4{max-width:100vw}.fyvr1a8{max-width:100vh}.fyvr1ac{max-height:var(--seq-space-0)}.fyvr1ag{max-height:var(--seq-space-1)}.fyvr1ak{max-height:var(--seq-space-2)}.fyvr1ao{max-height:var(--seq-space-3)}.fyvr1as{max-height:var(--seq-space-4)}.fyvr1aw{max-height:var(--seq-space-5)}.fyvr1b0{max-height:var(--seq-space-6)}.fyvr1b4{max-height:var(--seq-space-7)}.fyvr1b8{max-height:var(--seq-space-8)}.fyvr1bc{max-height:var(--seq-space-9)}.fyvr1bg{max-height:var(--seq-space-10)}.fyvr1bk{max-height:var(--seq-space-12)}.fyvr1bo{max-height:var(--seq-space-14)}.fyvr1bs{max-height:var(--seq-space-16)}.fyvr1bw{max-height:var(--seq-space-0_25)}.fyvr1c0{max-height:var(--seq-space-0_5)}.fyvr1c4{max-height:var(--seq-space-1_5)}.fyvr1c8{max-height:0}.fyvr1cc{max-height:1px}.fyvr1cg{max-height:auto}.fyvr1ck{max-height:100%}.fyvr1co{max-height:50%}.fyvr1cs{max-height:33.33333%}.fyvr1cw{max-height:66.66667%}.fyvr1d0{max-height:25%}.fyvr1d4{max-height:75%}.fyvr1d8{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dc{max-height:-moz-max-content;max-height:max-content}.fyvr1dg{max-height:-moz-min-content;max-height:min-content}.fyvr1dk{max-height:100vw}.fyvr1do{max-height:100vh}.fyvr1ds{min-width:var(--seq-space-0)}.fyvr1dw{min-width:var(--seq-space-1)}.fyvr1e0{min-width:var(--seq-space-2)}.fyvr1e4{min-width:var(--seq-space-3)}.fyvr1e8{min-width:var(--seq-space-4)}.fyvr1ec{min-width:var(--seq-space-5)}.fyvr1eg{min-width:var(--seq-space-6)}.fyvr1ek{min-width:var(--seq-space-7)}.fyvr1eo{min-width:var(--seq-space-8)}.fyvr1es{min-width:var(--seq-space-9)}.fyvr1ew{min-width:var(--seq-space-10)}.fyvr1f0{min-width:var(--seq-space-12)}.fyvr1f4{min-width:var(--seq-space-14)}.fyvr1f8{min-width:var(--seq-space-16)}.fyvr1fc{min-width:var(--seq-space-0_25)}.fyvr1fg{min-width:var(--seq-space-0_5)}.fyvr1fk{min-width:var(--seq-space-1_5)}.fyvr1fo{min-width:0}.fyvr1fs{min-width:1px}.fyvr1fw{min-width:auto}.fyvr1g0{min-width:100%}.fyvr1g4{min-width:50%}.fyvr1g8{min-width:33.33333%}.fyvr1gc{min-width:66.66667%}.fyvr1gg{min-width:25%}.fyvr1gk{min-width:75%}.fyvr1go{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gs{min-width:-moz-max-content;min-width:max-content}.fyvr1gw{min-width:-moz-min-content;min-width:min-content}.fyvr1h0{min-width:100vw}.fyvr1h4{min-width:100vh}.fyvr1h8{min-height:var(--seq-space-0)}.fyvr1hc{min-height:var(--seq-space-1)}.fyvr1hg{min-height:var(--seq-space-2)}.fyvr1hk{min-height:var(--seq-space-3)}.fyvr1ho{min-height:var(--seq-space-4)}.fyvr1hs{min-height:var(--seq-space-5)}.fyvr1hw{min-height:var(--seq-space-6)}.fyvr1i0{min-height:var(--seq-space-7)}.fyvr1i4{min-height:var(--seq-space-8)}.fyvr1i8{min-height:var(--seq-space-9)}.fyvr1ic{min-height:var(--seq-space-10)}.fyvr1ig{min-height:var(--seq-space-12)}.fyvr1ik{min-height:var(--seq-space-14)}.fyvr1io{min-height:var(--seq-space-16)}.fyvr1is{min-height:var(--seq-space-0_25)}.fyvr1iw{min-height:var(--seq-space-0_5)}.fyvr1j0{min-height:var(--seq-space-1_5)}.fyvr1j4{min-height:0}.fyvr1j8{min-height:1px}.fyvr1jc{min-height:auto}.fyvr1jg{min-height:100%}.fyvr1jk{min-height:50%}.fyvr1jo{min-height:33.33333%}.fyvr1js{min-height:66.66667%}.fyvr1jw{min-height:25%}.fyvr1k0{min-height:75%}.fyvr1k4{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k8{min-height:-moz-max-content;min-height:max-content}.fyvr1kc{min-height:-moz-min-content;min-height:min-content}.fyvr1kg{min-height:100vw}.fyvr1kk{min-height:100vh}.fyvr1ko{top:var(--seq-space-0)}.fyvr1ks{top:var(--seq-space-1)}.fyvr1kw{top:var(--seq-space-2)}.fyvr1l0{top:var(--seq-space-3)}.fyvr1l4{top:var(--seq-space-4)}.fyvr1l8{top:var(--seq-space-5)}.fyvr1lc{top:var(--seq-space-6)}.fyvr1lg{top:var(--seq-space-7)}.fyvr1lk{top:var(--seq-space-8)}.fyvr1lo{top:var(--seq-space-9)}.fyvr1ls{top:var(--seq-space-10)}.fyvr1lw{top:var(--seq-space-12)}.fyvr1m0{top:var(--seq-space-14)}.fyvr1m4{top:var(--seq-space-16)}.fyvr1m8{top:var(--seq-space-0_25)}.fyvr1mc{top:var(--seq-space-0_5)}.fyvr1mg{top:var(--seq-space-1_5)}.fyvr1mk{top:auto}.fyvr1mo{bottom:var(--seq-space-0)}.fyvr1ms{bottom:var(--seq-space-1)}.fyvr1mw{bottom:var(--seq-space-2)}.fyvr1n0{bottom:var(--seq-space-3)}.fyvr1n4{bottom:var(--seq-space-4)}.fyvr1n8{bottom:var(--seq-space-5)}.fyvr1nc{bottom:var(--seq-space-6)}.fyvr1ng{bottom:var(--seq-space-7)}.fyvr1nk{bottom:var(--seq-space-8)}.fyvr1no{bottom:var(--seq-space-9)}.fyvr1ns{bottom:var(--seq-space-10)}.fyvr1nw{bottom:var(--seq-space-12)}.fyvr1o0{bottom:var(--seq-space-14)}.fyvr1o4{bottom:var(--seq-space-16)}.fyvr1o8{bottom:var(--seq-space-0_25)}.fyvr1oc{bottom:var(--seq-space-0_5)}.fyvr1og{bottom:var(--seq-space-1_5)}.fyvr1ok{bottom:auto}.fyvr1oo{left:var(--seq-space-0)}.fyvr1os{left:var(--seq-space-1)}.fyvr1ow{left:var(--seq-space-2)}.fyvr1p0{left:var(--seq-space-3)}.fyvr1p4{left:var(--seq-space-4)}.fyvr1p8{left:var(--seq-space-5)}.fyvr1pc{left:var(--seq-space-6)}.fyvr1pg{left:var(--seq-space-7)}.fyvr1pk{left:var(--seq-space-8)}.fyvr1po{left:var(--seq-space-9)}.fyvr1ps{left:var(--seq-space-10)}.fyvr1pw{left:var(--seq-space-12)}.fyvr1q0{left:var(--seq-space-14)}.fyvr1q4{left:var(--seq-space-16)}.fyvr1q8{left:var(--seq-space-0_25)}.fyvr1qc{left:var(--seq-space-0_5)}.fyvr1qg{left:var(--seq-space-1_5)}.fyvr1qk{left:auto}.fyvr1qo{right:var(--seq-space-0)}.fyvr1qs{right:var(--seq-space-1)}.fyvr1qw{right:var(--seq-space-2)}.fyvr1r0{right:var(--seq-space-3)}.fyvr1r4{right:var(--seq-space-4)}.fyvr1r8{right:var(--seq-space-5)}.fyvr1rc{right:var(--seq-space-6)}.fyvr1rg{right:var(--seq-space-7)}.fyvr1rk{right:var(--seq-space-8)}.fyvr1ro{right:var(--seq-space-9)}.fyvr1rs{right:var(--seq-space-10)}.fyvr1rw{right:var(--seq-space-12)}.fyvr1s0{right:var(--seq-space-14)}.fyvr1s4{right:var(--seq-space-16)}.fyvr1s8{right:var(--seq-space-0_25)}.fyvr1sc{right:var(--seq-space-0_5)}.fyvr1sg{right:var(--seq-space-1_5)}.fyvr1sk{right:auto}.fyvr1so{padding-top:var(--seq-space-0)}.fyvr1ss{padding-top:var(--seq-space-1)}.fyvr1sw{padding-top:var(--seq-space-2)}.fyvr1t0{padding-top:var(--seq-space-3)}.fyvr1t4{padding-top:var(--seq-space-4)}.fyvr1t8{padding-top:var(--seq-space-5)}.fyvr1tc{padding-top:var(--seq-space-6)}.fyvr1tg{padding-top:var(--seq-space-7)}.fyvr1tk{padding-top:var(--seq-space-8)}.fyvr1to{padding-top:var(--seq-space-9)}.fyvr1ts{padding-top:var(--seq-space-10)}.fyvr1tw{padding-top:var(--seq-space-12)}.fyvr1u0{padding-top:var(--seq-space-14)}.fyvr1u4{padding-top:var(--seq-space-16)}.fyvr1u8{padding-top:var(--seq-space-0_25)}.fyvr1uc{padding-top:var(--seq-space-0_5)}.fyvr1ug{padding-top:var(--seq-space-1_5)}.fyvr1uk{padding-bottom:var(--seq-space-0)}.fyvr1uo{padding-bottom:var(--seq-space-1)}.fyvr1us{padding-bottom:var(--seq-space-2)}.fyvr1uw{padding-bottom:var(--seq-space-3)}.fyvr1v0{padding-bottom:var(--seq-space-4)}.fyvr1v4{padding-bottom:var(--seq-space-5)}.fyvr1v8{padding-bottom:var(--seq-space-6)}.fyvr1vc{padding-bottom:var(--seq-space-7)}.fyvr1vg{padding-bottom:var(--seq-space-8)}.fyvr1vk{padding-bottom:var(--seq-space-9)}.fyvr1vo{padding-bottom:var(--seq-space-10)}.fyvr1vs{padding-bottom:var(--seq-space-12)}.fyvr1vw{padding-bottom:var(--seq-space-14)}.fyvr1w0{padding-bottom:var(--seq-space-16)}.fyvr1w4{padding-bottom:var(--seq-space-0_25)}.fyvr1w8{padding-bottom:var(--seq-space-0_5)}.fyvr1wc{padding-bottom:var(--seq-space-1_5)}.fyvr1wg{padding-left:var(--seq-space-0)}.fyvr1wk{padding-left:var(--seq-space-1)}.fyvr1wo{padding-left:var(--seq-space-2)}.fyvr1ws{padding-left:var(--seq-space-3)}.fyvr1ww{padding-left:var(--seq-space-4)}.fyvr1x0{padding-left:var(--seq-space-5)}.fyvr1x4{padding-left:var(--seq-space-6)}.fyvr1x8{padding-left:var(--seq-space-7)}.fyvr1xc{padding-left:var(--seq-space-8)}.fyvr1xg{padding-left:var(--seq-space-9)}.fyvr1xk{padding-left:var(--seq-space-10)}.fyvr1xo{padding-left:var(--seq-space-12)}.fyvr1xs{padding-left:var(--seq-space-14)}.fyvr1xw{padding-left:var(--seq-space-16)}.fyvr1y0{padding-left:var(--seq-space-0_25)}.fyvr1y4{padding-left:var(--seq-space-0_5)}.fyvr1y8{padding-left:var(--seq-space-1_5)}.fyvr1yc{padding-right:var(--seq-space-0)}.fyvr1yg{padding-right:var(--seq-space-1)}.fyvr1yk{padding-right:var(--seq-space-2)}.fyvr1yo{padding-right:var(--seq-space-3)}.fyvr1ys{padding-right:var(--seq-space-4)}.fyvr1yw{padding-right:var(--seq-space-5)}.fyvr1z0{padding-right:var(--seq-space-6)}.fyvr1z4{padding-right:var(--seq-space-7)}.fyvr1z8{padding-right:var(--seq-space-8)}.fyvr1zc{padding-right:var(--seq-space-9)}.fyvr1zg{padding-right:var(--seq-space-10)}.fyvr1zk{padding-right:var(--seq-space-12)}.fyvr1zo{padding-right:var(--seq-space-14)}.fyvr1zs{padding-right:var(--seq-space-16)}.fyvr1zw{padding-right:var(--seq-space-0_25)}.fyvr1100{padding-right:var(--seq-space-0_5)}.fyvr1104{padding-right:var(--seq-space-1_5)}.fyvr1108{margin-top:var(--seq-space-0)}.fyvr110c{margin-top:var(--seq-space-1)}.fyvr110g{margin-top:var(--seq-space-2)}.fyvr110k{margin-top:var(--seq-space-3)}.fyvr110o{margin-top:var(--seq-space-4)}.fyvr110s{margin-top:var(--seq-space-5)}.fyvr110w{margin-top:var(--seq-space-6)}.fyvr1110{margin-top:var(--seq-space-7)}.fyvr1114{margin-top:var(--seq-space-8)}.fyvr1118{margin-top:var(--seq-space-9)}.fyvr111c{margin-top:var(--seq-space-10)}.fyvr111g{margin-top:var(--seq-space-12)}.fyvr111k{margin-top:var(--seq-space-14)}.fyvr111o{margin-top:var(--seq-space-16)}.fyvr111s{margin-top:var(--seq-space-0_25)}.fyvr111w{margin-top:var(--seq-space-0_5)}.fyvr1120{margin-top:var(--seq-space-1_5)}.fyvr1124{margin-top:auto}.fyvr1128{margin-bottom:var(--seq-space-0)}.fyvr112c{margin-bottom:var(--seq-space-1)}.fyvr112g{margin-bottom:var(--seq-space-2)}.fyvr112k{margin-bottom:var(--seq-space-3)}.fyvr112o{margin-bottom:var(--seq-space-4)}.fyvr112s{margin-bottom:var(--seq-space-5)}.fyvr112w{margin-bottom:var(--seq-space-6)}.fyvr1130{margin-bottom:var(--seq-space-7)}.fyvr1134{margin-bottom:var(--seq-space-8)}.fyvr1138{margin-bottom:var(--seq-space-9)}.fyvr113c{margin-bottom:var(--seq-space-10)}.fyvr113g{margin-bottom:var(--seq-space-12)}.fyvr113k{margin-bottom:var(--seq-space-14)}.fyvr113o{margin-bottom:var(--seq-space-16)}.fyvr113s{margin-bottom:var(--seq-space-0_25)}.fyvr113w{margin-bottom:var(--seq-space-0_5)}.fyvr1140{margin-bottom:var(--seq-space-1_5)}.fyvr1144{margin-bottom:auto}.fyvr1148{margin-left:var(--seq-space-0)}.fyvr114c{margin-left:var(--seq-space-1)}.fyvr114g{margin-left:var(--seq-space-2)}.fyvr114k{margin-left:var(--seq-space-3)}.fyvr114o{margin-left:var(--seq-space-4)}.fyvr114s{margin-left:var(--seq-space-5)}.fyvr114w{margin-left:var(--seq-space-6)}.fyvr1150{margin-left:var(--seq-space-7)}.fyvr1154{margin-left:var(--seq-space-8)}.fyvr1158{margin-left:var(--seq-space-9)}.fyvr115c{margin-left:var(--seq-space-10)}.fyvr115g{margin-left:var(--seq-space-12)}.fyvr115k{margin-left:var(--seq-space-14)}.fyvr115o{margin-left:var(--seq-space-16)}.fyvr115s{margin-left:var(--seq-space-0_25)}.fyvr115w{margin-left:var(--seq-space-0_5)}.fyvr1160{margin-left:var(--seq-space-1_5)}.fyvr1164{margin-left:auto}.fyvr1168{margin-right:var(--seq-space-0)}.fyvr116c{margin-right:var(--seq-space-1)}.fyvr116g{margin-right:var(--seq-space-2)}.fyvr116k{margin-right:var(--seq-space-3)}.fyvr116o{margin-right:var(--seq-space-4)}.fyvr116s{margin-right:var(--seq-space-5)}.fyvr116w{margin-right:var(--seq-space-6)}.fyvr1170{margin-right:var(--seq-space-7)}.fyvr1174{margin-right:var(--seq-space-8)}.fyvr1178{margin-right:var(--seq-space-9)}.fyvr117c{margin-right:var(--seq-space-10)}.fyvr117g{margin-right:var(--seq-space-12)}.fyvr117k{margin-right:var(--seq-space-14)}.fyvr117o{margin-right:var(--seq-space-16)}.fyvr117s{margin-right:var(--seq-space-0_25)}.fyvr117w{margin-right:var(--seq-space-0_5)}.fyvr1180{margin-right:var(--seq-space-1_5)}.fyvr1184{margin-right:auto}.fyvr1188{gap:var(--seq-space-0)}.fyvr118c{gap:var(--seq-space-1)}.fyvr118g{gap:var(--seq-space-2)}.fyvr118k{gap:var(--seq-space-3)}.fyvr118o{gap:var(--seq-space-4)}.fyvr118s{gap:var(--seq-space-5)}.fyvr118w{gap:var(--seq-space-6)}.fyvr1190{gap:var(--seq-space-7)}.fyvr1194{gap:var(--seq-space-8)}.fyvr1198{gap:var(--seq-space-9)}.fyvr119c{gap:var(--seq-space-10)}.fyvr119g{gap:var(--seq-space-12)}.fyvr119k{gap:var(--seq-space-14)}.fyvr119o{gap:var(--seq-space-16)}.fyvr119s{gap:var(--seq-space-0_25)}.fyvr119w{gap:var(--seq-space-0_5)}.fyvr11a0{gap:var(--seq-space-1_5)}.fyvr11a4{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a8{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ac{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ag{border-left-width:var(--seq-border-widths-none)}.fyvr11ak{border-left-width:var(--seq-border-widths-thin)}.fyvr11ao{border-left-width:var(--seq-border-widths-thick)}.fyvr11as{border-right-width:var(--seq-border-widths-none)}.fyvr11aw{border-right-width:var(--seq-border-widths-thin)}.fyvr11b0{border-right-width:var(--seq-border-widths-thick)}.fyvr11b4{border-top-width:var(--seq-border-widths-none)}.fyvr11b8{border-top-width:var(--seq-border-widths-thin)}.fyvr11bc{border-top-width:var(--seq-border-widths-thick)}.fyvr11bg{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bk{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bo{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bs{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bw{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c0{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c4{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c8{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cc{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cg{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11ck{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11co{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cs{border-top-left-radius:var(--seq-radii-none)}.fyvr11cw{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d0{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d4{border-top-left-radius:var(--seq-radii-md)}.fyvr11d8{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dc{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dg{border-top-right-radius:var(--seq-radii-none)}.fyvr11dk{border-top-right-radius:var(--seq-radii-xs)}.fyvr11do{border-top-right-radius:var(--seq-radii-sm)}.fyvr11ds{border-top-right-radius:var(--seq-radii-md)}.fyvr11dw{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e0{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e4{font-size:var(--seq-font-sizes-inherit)}.fyvr11e8{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ec{font-size:var(--seq-font-sizes-small)}.fyvr11eg{font-size:var(--seq-font-sizes-normal)}.fyvr11ek{font-size:var(--seq-font-sizes-medium)}.fyvr11eo{font-size:var(--seq-font-sizes-large)}.fyvr11es{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ew{font-weight:var(--seq-font-weights-inherit)}.fyvr11f0{font-weight:var(--seq-font-weights-normal)}.fyvr11f4{font-weight:var(--seq-font-weights-medium)}.fyvr11f8{font-weight:var(--seq-font-weights-semibold)}.fyvr11fc{font-weight:var(--seq-font-weights-bold)}.fyvr11fg{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fk{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fo{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fs{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fw{line-height:var(--seq-line-heights-4)}.fyvr11g0{line-height:var(--seq-line-heights-5)}.fyvr11g4{line-height:var(--seq-line-heights-6)}.fyvr11g8{line-height:var(--seq-line-heights-7)}.fyvr11gc{line-height:var(--seq-line-heights-9)}.fyvr11gg{line-height:var(--seq-line-heights-inherit)}.fyvr11gk{text-align:center}.fyvr11go{text-align:left}.fyvr11gs{text-align:right}.fyvr11gw{display:block}.fyvr11h0{display:flex}.fyvr11h4{display:grid}.fyvr11h8{display:inline-block}.fyvr11hc{display:inline-flex}.fyvr11hg{display:none}.fyvr11hk{display:contents}.fyvr11ho{position:absolute}.fyvr11hs{position:fixed}.fyvr11hw{position:relative}.fyvr11i0{position:sticky}.fyvr11i4{flex-direction:column}.fyvr11i8{flex-direction:column-reverse}.fyvr11ic{flex-direction:row}.fyvr11ig{flex-direction:row-reverse}.fyvr11ik{flex-shrink:0}.fyvr11io{flex-shrink:1}.fyvr11is{flex-grow:0}.fyvr11iw{flex-grow:1}.fyvr11j0{flex-wrap:nowrap}.fyvr11j4{flex-wrap:wrap}.fyvr11j8{flex-wrap:wrap-reverse}.fyvr11jc{justify-content:flex-start}.fyvr11jg{justify-content:center}.fyvr11jk{justify-content:flex-end}.fyvr11jo{justify-content:stretch}.fyvr11js{justify-content:space-around}.fyvr11jw{justify-content:space-between}.fyvr11k0{justify-content:space-evenly}.fyvr11k4{justify-self:flex-start}.fyvr11k8{justify-self:center}.fyvr11kc{justify-self:flex-end}.fyvr11kg{justify-self:stretch}.fyvr11kk{align-items:flex-start}.fyvr11ko{align-items:center}.fyvr11ks{align-items:flex-end}.fyvr11kw{align-items:stretch}.fyvr11l0{align-items:baseline}.fyvr11l4{align-self:flex-start}.fyvr11l8{align-self:center}.fyvr11lc{align-self:flex-end}.fyvr11lg{align-self:stretch}.fyvr11lk{align-self:baseline}.fyvr11lo{overflow-x:auto}.fyvr11ls{overflow-x:hidden}.fyvr11lw{overflow-x:scroll}.fyvr11m0{overflow-x:visible}.fyvr11m4{overflow-y:auto}.fyvr11m8{overflow-y:hidden}.fyvr11mc{overflow-y:scroll}.fyvr11mg{overflow-y:visible}.fyvr11mk{visibility:hidden}.fyvr11mo{visibility:visible}.fyvr11ms{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11mt{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11mu{font-family:var(--seq-fonts-inherit)}.fyvr11mv{font-family:var(--seq-fonts-body)}.fyvr11mw{font-family:var(--seq-fonts-mono)}.fyvr11mx{text-overflow:ellipsis}.fyvr11my{text-overflow:clip}.fyvr11mz{text-transform:capitalize}.fyvr11n0{text-transform:lowercase}.fyvr11n1{text-transform:uppercase}.fyvr11n2{-webkit-text-decoration:none;text-decoration:none}.fyvr11n3{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11n4{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11n5{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11n6{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11n7{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11n8{white-space:normal}.fyvr11n9{white-space:nowrap}.fyvr11na{white-space:normal;white-space:initial}.fyvr11nb{white-space:inherit}.fyvr11nc{word-break:break-word}.fyvr11nd{word-wrap:normal}.fyvr11ne{word-wrap:break-word}.fyvr11nf{word-wrap:initial}.fyvr11ng{word-wrap:inherit}.fyvr11nh{z-index:0}.fyvr11ni{z-index:1}.fyvr11nj{z-index:10}.fyvr11nk{z-index:20}.fyvr11nl{z-index:30}.fyvr11nm{z-index:40}.fyvr11nn{z-index:50}.fyvr11no{z-index:-1}.fyvr11np{z-index:auto}.fyvr11nq{aspect-ratio:1 / 1}.fyvr11nr{aspect-ratio:16 / 9}.fyvr11ns{aspect-ratio:4 / 3}.fyvr11nt{aspect-ratio:3 / 1}.fyvr11nu{aspect-ratio:auto}.fyvr11nv,.fyvr11nw:active{background:var(--seq-colors-black)}.fyvr11nx:disabled,.fyvr11nx[data-disabled]{background:var(--seq-colors-black)}.fyvr11ny:focus{background:var(--seq-colors-black)}.fyvr11nz:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11o0[data-state=checked]{background:var(--seq-colors-black)}.fyvr11o1,.fyvr11o2:active{background:var(--seq-colors-white)}.fyvr11o3:disabled,.fyvr11o3[data-disabled]{background:var(--seq-colors-white)}.fyvr11o4:focus{background:var(--seq-colors-white)}.fyvr11o5:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11o6[data-state=checked]{background:var(--seq-colors-white)}.fyvr11o7,.fyvr11o8:active{background:var(--seq-colors-inherit)}.fyvr11o9:disabled,.fyvr11o9[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11oa:focus{background:var(--seq-colors-inherit)}.fyvr11ob:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11oc[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11od,.fyvr11oe:active{background:var(--seq-colors-transparent)}.fyvr11of:disabled,.fyvr11of[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11og:focus{background:var(--seq-colors-transparent)}.fyvr11oh:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11oi[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11oj,.fyvr11ok:active{background:var(--seq-colors-positive)}.fyvr11ol:disabled,.fyvr11ol[data-disabled]{background:var(--seq-colors-positive)}.fyvr11om:focus{background:var(--seq-colors-positive)}.fyvr11on:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11oo[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11op,.fyvr11oq:active{background:var(--seq-colors-negative)}.fyvr11or:disabled,.fyvr11or[data-disabled]{background:var(--seq-colors-negative)}.fyvr11os:focus{background:var(--seq-colors-negative)}.fyvr11ot:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11ou[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11ov,.fyvr11ow:active{background:var(--seq-colors-info)}.fyvr11ox:disabled,.fyvr11ox[data-disabled]{background:var(--seq-colors-info)}.fyvr11oy:focus{background:var(--seq-colors-info)}.fyvr11oz:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11p0[data-state=checked]{background:var(--seq-colors-info)}.fyvr11p1,.fyvr11p2:active{background:var(--seq-colors-warning)}.fyvr11p3:disabled,.fyvr11p3[data-disabled]{background:var(--seq-colors-warning)}.fyvr11p4:focus{background:var(--seq-colors-warning)}.fyvr11p5:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11p6[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11p7,.fyvr11p8:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11p9:disabled,.fyvr11p9[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pa:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11pb:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11pc[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pd,.fyvr11pe:active{background:var(--seq-colors-gradient-primary)}.fyvr11pf:disabled,.fyvr11pf[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11pg:focus{background:var(--seq-colors-gradient-primary)}.fyvr11ph:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11pi[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11pj,.fyvr11pk:active{background:var(--seq-colors-gradient-secondary)}.fyvr11pl:disabled,.fyvr11pl[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11pm:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11pn:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11po[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11pp,.fyvr11pq:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11pr:disabled,.fyvr11pr[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11ps:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11pt:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11pu[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11pv,.fyvr11pw:active{background:var(--seq-colors-arbitrum-light)}.fyvr11px:disabled,.fyvr11px[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11py:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11pz:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11q0[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11q1,.fyvr11q2:active{background:var(--seq-colors-avalance-dark)}.fyvr11q3:disabled,.fyvr11q3[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11q4:focus{background:var(--seq-colors-avalance-dark)}.fyvr11q5:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11q6[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11q7,.fyvr11q8:active{background:var(--seq-colors-avalance-light)}.fyvr11q9:disabled,.fyvr11q9[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11qa:focus{background:var(--seq-colors-avalance-light)}.fyvr11qb:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11qc[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11qd,.fyvr11qe:active{background:var(--seq-colors-bsc-dark)}.fyvr11qf:disabled,.fyvr11qf[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11qg:focus{background:var(--seq-colors-bsc-dark)}.fyvr11qh:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11qi[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11qj,.fyvr11qk:active{background:var(--seq-colors-bsc-light)}.fyvr11ql:disabled,.fyvr11ql[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11qm:focus{background:var(--seq-colors-bsc-light)}.fyvr11qn:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11qo[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11qp,.fyvr11qq:active{background:var(--seq-colors-ethereum-dark)}.fyvr11qr:disabled,.fyvr11qr[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11qs:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11qt:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11qu[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11qv,.fyvr11qw:active{background:var(--seq-colors-ethereum-light)}.fyvr11qx:disabled,.fyvr11qx[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11qy:focus{background:var(--seq-colors-ethereum-light)}.fyvr11qz:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11r0[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11r1,.fyvr11r2:active{background:var(--seq-colors-gnosis-dark)}.fyvr11r3:disabled,.fyvr11r3[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11r4:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11r5:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11r6[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11r7,.fyvr11r8:active{background:var(--seq-colors-gnosis-light)}.fyvr11r9:disabled,.fyvr11r9[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11ra:focus{background:var(--seq-colors-gnosis-light)}.fyvr11rb:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11rc[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11rd,.fyvr11re:active{background:var(--seq-colors-polygon-dark)}.fyvr11rf:disabled,.fyvr11rf[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11rg:focus{background:var(--seq-colors-polygon-dark)}.fyvr11rh:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11ri[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11rj,.fyvr11rk:active{background:var(--seq-colors-polygon-light)}.fyvr11rl:disabled,.fyvr11rl[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11rm:focus{background:var(--seq-colors-polygon-light)}.fyvr11rn:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11ro[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11rp,.fyvr11rq:active{background:var(--seq-colors-text100)}.fyvr11rr:disabled,.fyvr11rr[data-disabled]{background:var(--seq-colors-text100)}.fyvr11rs:focus{background:var(--seq-colors-text100)}.fyvr11rt:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11ru[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11rv,.fyvr11rw:active{background:var(--seq-colors-text80)}.fyvr11rx:disabled,.fyvr11rx[data-disabled]{background:var(--seq-colors-text80)}.fyvr11ry:focus{background:var(--seq-colors-text80)}.fyvr11rz:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11s0[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11s1,.fyvr11s2:active{background:var(--seq-colors-text50)}.fyvr11s3:disabled,.fyvr11s3[data-disabled]{background:var(--seq-colors-text50)}.fyvr11s4:focus{background:var(--seq-colors-text50)}.fyvr11s5:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11s6[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11s7,.fyvr11s8:active{background:var(--seq-colors-text-inverse100)}.fyvr11s9:disabled,.fyvr11s9[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11sa:focus{background:var(--seq-colors-text-inverse100)}.fyvr11sb:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11sc[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11sd,.fyvr11se:active{background:var(--seq-colors-background-primary)}.fyvr11sf:disabled,.fyvr11sf[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11sg:focus{background:var(--seq-colors-background-primary)}.fyvr11sh:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11si[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11sj,.fyvr11sk:active{background:var(--seq-colors-background-secondary)}.fyvr11sl:disabled,.fyvr11sl[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11sm:focus{background:var(--seq-colors-background-secondary)}.fyvr11sn:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11so[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11sp,.fyvr11sq:active{background:var(--seq-colors-background-contrast)}.fyvr11sr:disabled,.fyvr11sr[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11ss:focus{background:var(--seq-colors-background-contrast)}.fyvr11st:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11su[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11sv,.fyvr11sw:active{background:var(--seq-colors-background-muted)}.fyvr11sx:disabled,.fyvr11sx[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11sy:focus{background:var(--seq-colors-background-muted)}.fyvr11sz:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11t0[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11t1,.fyvr11t2:active{background:var(--seq-colors-background-control)}.fyvr11t3:disabled,.fyvr11t3[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11t4:focus{background:var(--seq-colors-background-control)}.fyvr11t5:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11t6[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11t7,.fyvr11t8:active{background:var(--seq-colors-background-inverse)}.fyvr11t9:disabled,.fyvr11t9[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11ta:focus{background:var(--seq-colors-background-inverse)}.fyvr11tb:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11tc[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11td,.fyvr11te:active{background:var(--seq-colors-background-backdrop)}.fyvr11tf:disabled,.fyvr11tf[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11tg:focus{background:var(--seq-colors-background-backdrop)}.fyvr11th:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11ti[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11tj,.fyvr11tk:active{background:var(--seq-colors-background-overlay)}.fyvr11tl:disabled,.fyvr11tl[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11tm:focus{background:var(--seq-colors-background-overlay)}.fyvr11tn:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11to[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11tp,.fyvr11tq:active{background:var(--seq-colors-background-raised)}.fyvr11tr:disabled,.fyvr11tr[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11ts:focus{background:var(--seq-colors-background-raised)}.fyvr11tt:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11tu[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11tv,.fyvr11tw:active{background:var(--seq-colors-button-glass)}.fyvr11tx:disabled,.fyvr11tx[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11ty:focus{background:var(--seq-colors-button-glass)}.fyvr11tz:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11u0[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11u1,.fyvr11u2:active{background:var(--seq-colors-button-emphasis)}.fyvr11u3:disabled,.fyvr11u3[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11u4:focus{background:var(--seq-colors-button-emphasis)}.fyvr11u5:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11u6[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11u7,.fyvr11u8:active{background:var(--seq-colors-button-inverse)}.fyvr11u9:disabled,.fyvr11u9[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11ua:focus{background:var(--seq-colors-button-inverse)}.fyvr11ub:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11uc[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11ud,.fyvr11ue:active{background:var(--seq-colors-border-normal)}.fyvr11uf:disabled,.fyvr11uf[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11ug:focus{background:var(--seq-colors-border-normal)}.fyvr11uh:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11ui[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11uj,.fyvr11uk:active{background:var(--seq-colors-border-focus)}.fyvr11ul:disabled,.fyvr11ul[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11um:focus{background:var(--seq-colors-border-focus)}.fyvr11un:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11uo[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11up,.fyvr11uq:active{border-bottom-color:var(--seq-colors-black)}.fyvr11ur:disabled,.fyvr11ur[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11us:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11ut:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11uu[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11uv,.fyvr11uw:active{border-bottom-color:var(--seq-colors-white)}.fyvr11ux:disabled,.fyvr11ux[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11uy:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11uz:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11v0[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11v1,.fyvr11v2:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v3:disabled,.fyvr11v3[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v4:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v5:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11v6[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v7,.fyvr11v8:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11v9:disabled,.fyvr11v9[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11va:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vb:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11vc[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vd,.fyvr11ve:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11vf:disabled,.fyvr11vf[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vg:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11vh:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11vi[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vj,.fyvr11vk:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11vl:disabled,.fyvr11vl[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vm:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11vn:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11vo[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vp,.fyvr11vq:active{border-bottom-color:var(--seq-colors-info)}.fyvr11vr:disabled,.fyvr11vr[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr11vs:focus{border-bottom-color:var(--seq-colors-info)}.fyvr11vt:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr11vu[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr11vv,.fyvr11vw:active{border-bottom-color:var(--seq-colors-warning)}.fyvr11vx:disabled,.fyvr11vx[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr11vy:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr11vz:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr11w0[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr11w1,.fyvr11w2:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w3:disabled,.fyvr11w3[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w4:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w6[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w7,.fyvr11w8:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11w9:disabled,.fyvr11w9[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wa:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wb:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wc[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wd,.fyvr11we:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wf:disabled,.fyvr11wf[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wg:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wh:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wi[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wj,.fyvr11wk:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wl:disabled,.fyvr11wl[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wm:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wn:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wo[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wp,.fyvr11wq:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wr:disabled,.fyvr11wr[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11ws:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wt:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wu[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wv,.fyvr11ww:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wx:disabled,.fyvr11wx[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wy:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wz:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x0[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x1,.fyvr11x2:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x3:disabled,.fyvr11x3[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x4:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x5:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x6[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x7,.fyvr11x8:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11x9:disabled,.fyvr11x9[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xa:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xb:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xc[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xd,.fyvr11xe:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xf:disabled,.fyvr11xf[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xg:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xh:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xi[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xj,.fyvr11xk:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xl:disabled,.fyvr11xl[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xm:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xn:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xo[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xp,.fyvr11xq:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xr:disabled,.fyvr11xr[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xs:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xt:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xu[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xv,.fyvr11xw:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xx:disabled,.fyvr11xx[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xy:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xz:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y0[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y1,.fyvr11y2:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y3:disabled,.fyvr11y3[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y4:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y6[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y7,.fyvr11y8:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11y9:disabled,.fyvr11y9[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11ya:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yb:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yc[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yd,.fyvr11ye:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yf:disabled,.fyvr11yf[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yg:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yh:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yi[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yj,.fyvr11yk:active{border-bottom-color:var(--seq-colors-text100)}.fyvr11yl:disabled,.fyvr11yl[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr11ym:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr11yn:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr11yo[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr11yp,.fyvr11yq:active{border-bottom-color:var(--seq-colors-text80)}.fyvr11yr:disabled,.fyvr11yr[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr11ys:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr11yt:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr11yu[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr11yv,.fyvr11yw:active{border-bottom-color:var(--seq-colors-text50)}.fyvr11yx:disabled,.fyvr11yx[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr11yy:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr11yz:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr11z0[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr11z1,.fyvr11z2:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z3:disabled,.fyvr11z3[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z4:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z5:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z6[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z7,.fyvr11z8:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11z9:disabled,.fyvr11z9[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11za:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zb:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zc[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zd,.fyvr11ze:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zf:disabled,.fyvr11zf[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zg:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zh:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zi[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zj,.fyvr11zk:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zl:disabled,.fyvr11zl[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zm:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zn:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zo[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zp,.fyvr11zq:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zr:disabled,.fyvr11zr[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zs:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zt:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zu[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zv,.fyvr11zw:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zx:disabled,.fyvr11zx[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zy:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zz:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1200[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1201,.fyvr1202:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1203:disabled,.fyvr1203[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1204:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1205:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1206[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1207,.fyvr1208:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr1209:disabled,.fyvr1209[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120a:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120b:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120c[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120d,.fyvr120e:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120f:disabled,.fyvr120f[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120g:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120h:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120i[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120j,.fyvr120k:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120l:disabled,.fyvr120l[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120m:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120n:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr120o[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120p,.fyvr120q:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120r:disabled,.fyvr120r[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120s:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120t:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr120u[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120v,.fyvr120w:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120x:disabled,.fyvr120x[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120y:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120z:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1210[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1211,.fyvr1212:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1213:disabled,.fyvr1213[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1214:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1215:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1216[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1217,.fyvr1218:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr1219:disabled,.fyvr1219[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121a:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121b:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr121c[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121d,.fyvr121e:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121f:disabled,.fyvr121f[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121g:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121h:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr121i[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121j,.fyvr121k:active{border-bottom-style:solid}.fyvr121l:disabled,.fyvr121l[data-disabled]{border-bottom-style:solid}.fyvr121m:focus{border-bottom-style:solid}.fyvr121n:hover:not([disabled]){border-bottom-style:solid}.fyvr121o[data-state=checked]{border-bottom-style:solid}.fyvr121p,.fyvr121q:active{border-bottom-style:dashed}.fyvr121r:disabled,.fyvr121r[data-disabled]{border-bottom-style:dashed}.fyvr121s:focus{border-bottom-style:dashed}.fyvr121t:hover:not([disabled]){border-bottom-style:dashed}.fyvr121u[data-state=checked]{border-bottom-style:dashed}.fyvr121v,.fyvr121w:active{border-bottom-style:dotted}.fyvr121x:disabled,.fyvr121x[data-disabled]{border-bottom-style:dotted}.fyvr121y:focus{border-bottom-style:dotted}.fyvr121z:hover:not([disabled]){border-bottom-style:dotted}.fyvr1220[data-state=checked]{border-bottom-style:dotted}.fyvr1221,.fyvr1222:active{border-left-color:var(--seq-colors-black)}.fyvr1223:disabled,.fyvr1223[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr1224:focus{border-left-color:var(--seq-colors-black)}.fyvr1225:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr1226[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr1227,.fyvr1228:active{border-left-color:var(--seq-colors-white)}.fyvr1229:disabled,.fyvr1229[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr122a:focus{border-left-color:var(--seq-colors-white)}.fyvr122b:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr122c[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr122d,.fyvr122e:active{border-left-color:var(--seq-colors-inherit)}.fyvr122f:disabled,.fyvr122f[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr122g:focus{border-left-color:var(--seq-colors-inherit)}.fyvr122h:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr122i[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr122j,.fyvr122k:active{border-left-color:var(--seq-colors-transparent)}.fyvr122l:disabled,.fyvr122l[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr122m:focus{border-left-color:var(--seq-colors-transparent)}.fyvr122n:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr122o[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr122p,.fyvr122q:active{border-left-color:var(--seq-colors-positive)}.fyvr122r:disabled,.fyvr122r[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr122s:focus{border-left-color:var(--seq-colors-positive)}.fyvr122t:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr122u[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr122v,.fyvr122w:active{border-left-color:var(--seq-colors-negative)}.fyvr122x:disabled,.fyvr122x[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr122y:focus{border-left-color:var(--seq-colors-negative)}.fyvr122z:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1230[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1231,.fyvr1232:active{border-left-color:var(--seq-colors-info)}.fyvr1233:disabled,.fyvr1233[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr1234:focus{border-left-color:var(--seq-colors-info)}.fyvr1235:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr1236[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr1237,.fyvr1238:active{border-left-color:var(--seq-colors-warning)}.fyvr1239:disabled,.fyvr1239[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr123a:focus{border-left-color:var(--seq-colors-warning)}.fyvr123b:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr123c[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr123d,.fyvr123e:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123f:disabled,.fyvr123f[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123g:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123h:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123i[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123j,.fyvr123k:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123l:disabled,.fyvr123l[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123m:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123n:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr123o[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123p,.fyvr123q:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123r:disabled,.fyvr123r[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123s:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123t:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123u[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123v,.fyvr123w:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123x:disabled,.fyvr123x[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123y:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123z:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1240[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1241,.fyvr1242:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1243:disabled,.fyvr1243[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1244:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1245:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1246[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1247,.fyvr1248:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr1249:disabled,.fyvr1249[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124a:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124b:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr124c[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124d,.fyvr124e:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr124f:disabled,.fyvr124f[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124g:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr124h:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr124i[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124j,.fyvr124k:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124l:disabled,.fyvr124l[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124m:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124n:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr124o[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124p,.fyvr124q:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr124r:disabled,.fyvr124r[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124s:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr124t:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr124u[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124v,.fyvr124w:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124x:disabled,.fyvr124x[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124y:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124z:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1250[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1251,.fyvr1252:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1253:disabled,.fyvr1253[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1254:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1255:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr1256[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1257,.fyvr1258:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr1259:disabled,.fyvr1259[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125a:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125b:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125c[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125d,.fyvr125e:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125f:disabled,.fyvr125f[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125g:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125h:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr125i[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125j,.fyvr125k:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125l:disabled,.fyvr125l[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125m:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125n:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr125o[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125p,.fyvr125q:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr125r:disabled,.fyvr125r[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125s:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr125t:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr125u[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125v,.fyvr125w:active{border-left-color:var(--seq-colors-text100)}.fyvr125x:disabled,.fyvr125x[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr125y:focus{border-left-color:var(--seq-colors-text100)}.fyvr125z:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr1260[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr1261,.fyvr1262:active{border-left-color:var(--seq-colors-text80)}.fyvr1263:disabled,.fyvr1263[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr1264:focus{border-left-color:var(--seq-colors-text80)}.fyvr1265:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr1266[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr1267,.fyvr1268:active{border-left-color:var(--seq-colors-text50)}.fyvr1269:disabled,.fyvr1269[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr126a:focus{border-left-color:var(--seq-colors-text50)}.fyvr126b:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr126c[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr126d,.fyvr126e:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126f:disabled,.fyvr126f[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126g:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126h:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr126i[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126j,.fyvr126k:active{border-left-color:var(--seq-colors-background-primary)}.fyvr126l:disabled,.fyvr126l[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr126m:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr126n:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr126o[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr126p,.fyvr126q:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr126r:disabled,.fyvr126r[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126s:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr126t:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr126u[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126v,.fyvr126w:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr126x:disabled,.fyvr126x[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr126y:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr126z:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr1270[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr1271,.fyvr1272:active{border-left-color:var(--seq-colors-background-muted)}.fyvr1273:disabled,.fyvr1273[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr1274:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr1275:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr1276[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr1277,.fyvr1278:active{border-left-color:var(--seq-colors-background-control)}.fyvr1279:disabled,.fyvr1279[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr127a:focus{border-left-color:var(--seq-colors-background-control)}.fyvr127b:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr127c[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr127d,.fyvr127e:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr127f:disabled,.fyvr127f[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127g:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr127h:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr127i[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127j,.fyvr127k:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127l:disabled,.fyvr127l[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127m:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127n:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr127o[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127p,.fyvr127q:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr127r:disabled,.fyvr127r[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127s:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr127t:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr127u[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127v,.fyvr127w:active{border-left-color:var(--seq-colors-background-raised)}.fyvr127x:disabled,.fyvr127x[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr127y:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr127z:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr1280[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr1281,.fyvr1282:active{border-left-color:var(--seq-colors-button-glass)}.fyvr1283:disabled,.fyvr1283[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr1284:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr1285:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr1286[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr1287,.fyvr1288:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr1289:disabled,.fyvr1289[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128a:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128b:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr128c[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128d,.fyvr128e:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr128f:disabled,.fyvr128f[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128g:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr128h:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr128i[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128j,.fyvr128k:active{border-left-color:var(--seq-colors-border-normal)}.fyvr128l:disabled,.fyvr128l[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr128m:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr128n:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr128o[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr128p,.fyvr128q:active{border-left-color:var(--seq-colors-border-focus)}.fyvr128r:disabled,.fyvr128r[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr128s:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr128t:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr128u[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr128v,.fyvr128w:active{border-left-style:solid}.fyvr128x:disabled,.fyvr128x[data-disabled]{border-left-style:solid}.fyvr128y:focus{border-left-style:solid}.fyvr128z:hover:not([disabled]){border-left-style:solid}.fyvr1290[data-state=checked]{border-left-style:solid}.fyvr1291,.fyvr1292:active{border-left-style:dashed}.fyvr1293:disabled,.fyvr1293[data-disabled]{border-left-style:dashed}.fyvr1294:focus{border-left-style:dashed}.fyvr1295:hover:not([disabled]){border-left-style:dashed}.fyvr1296[data-state=checked]{border-left-style:dashed}.fyvr1297,.fyvr1298:active{border-left-style:dotted}.fyvr1299:disabled,.fyvr1299[data-disabled]{border-left-style:dotted}.fyvr129a:focus{border-left-style:dotted}.fyvr129b:hover:not([disabled]){border-left-style:dotted}.fyvr129c[data-state=checked]{border-left-style:dotted}.fyvr129d,.fyvr129e:active{border-right-color:var(--seq-colors-black)}.fyvr129f:disabled,.fyvr129f[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr129g:focus{border-right-color:var(--seq-colors-black)}.fyvr129h:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr129i[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr129j,.fyvr129k:active{border-right-color:var(--seq-colors-white)}.fyvr129l:disabled,.fyvr129l[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr129m:focus{border-right-color:var(--seq-colors-white)}.fyvr129n:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr129o[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr129p,.fyvr129q:active{border-right-color:var(--seq-colors-inherit)}.fyvr129r:disabled,.fyvr129r[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr129s:focus{border-right-color:var(--seq-colors-inherit)}.fyvr129t:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr129u[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr129v,.fyvr129w:active{border-right-color:var(--seq-colors-transparent)}.fyvr129x:disabled,.fyvr129x[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr129y:focus{border-right-color:var(--seq-colors-transparent)}.fyvr129z:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12a0[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12a1,.fyvr12a2:active{border-right-color:var(--seq-colors-positive)}.fyvr12a3:disabled,.fyvr12a3[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12a4:focus{border-right-color:var(--seq-colors-positive)}.fyvr12a5:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12a6[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12a7,.fyvr12a8:active{border-right-color:var(--seq-colors-negative)}.fyvr12a9:disabled,.fyvr12a9[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12aa:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ab:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ac[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12ad,.fyvr12ae:active{border-right-color:var(--seq-colors-info)}.fyvr12af:disabled,.fyvr12af[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12ag:focus{border-right-color:var(--seq-colors-info)}.fyvr12ah:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12ai[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12aj,.fyvr12ak:active{border-right-color:var(--seq-colors-warning)}.fyvr12al:disabled,.fyvr12al[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12am:focus{border-right-color:var(--seq-colors-warning)}.fyvr12an:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ao[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ap,.fyvr12aq:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ar:disabled,.fyvr12ar[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12as:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12at:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12au[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12av,.fyvr12aw:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ax:disabled,.fyvr12ax[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ay:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12az:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b0[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b1,.fyvr12b2:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b3:disabled,.fyvr12b3[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b4:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b5:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b6[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b7,.fyvr12b8:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12b9:disabled,.fyvr12b9[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12ba:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bb:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bc[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bd,.fyvr12be:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bf:disabled,.fyvr12bf[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bg:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bh:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bi[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bj,.fyvr12bk:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bl:disabled,.fyvr12bl[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bm:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bn:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bo[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bp,.fyvr12bq:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12br:disabled,.fyvr12br[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bs:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bt:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12bu[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bv,.fyvr12bw:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bx:disabled,.fyvr12bx[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12by:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bz:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c0[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c1,.fyvr12c2:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c3:disabled,.fyvr12c3[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c4:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c5:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12c6[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c7,.fyvr12c8:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12c9:disabled,.fyvr12c9[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12ca:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cb:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cc[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cd,.fyvr12ce:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cf:disabled,.fyvr12cf[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cg:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ch:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ci[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cj,.fyvr12ck:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cl:disabled,.fyvr12cl[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cm:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cn:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12co[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cp,.fyvr12cq:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cr:disabled,.fyvr12cr[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cs:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12ct:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cu[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cv,.fyvr12cw:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cx:disabled,.fyvr12cx[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cy:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cz:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d0[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d1,.fyvr12d2:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d3:disabled,.fyvr12d3[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d4:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d5:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12d6[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d7,.fyvr12d8:active{border-right-color:var(--seq-colors-text100)}.fyvr12d9:disabled,.fyvr12d9[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12da:focus{border-right-color:var(--seq-colors-text100)}.fyvr12db:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12dc[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12dd,.fyvr12de:active{border-right-color:var(--seq-colors-text80)}.fyvr12df:disabled,.fyvr12df[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12dg:focus{border-right-color:var(--seq-colors-text80)}.fyvr12dh:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12di[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12dj,.fyvr12dk:active{border-right-color:var(--seq-colors-text50)}.fyvr12dl:disabled,.fyvr12dl[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12dm:focus{border-right-color:var(--seq-colors-text50)}.fyvr12dn:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12do[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12dp,.fyvr12dq:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dr:disabled,.fyvr12dr[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12ds:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dt:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12du[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dv,.fyvr12dw:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12dx:disabled,.fyvr12dx[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12dy:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12dz:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12e0[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12e1,.fyvr12e2:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e3:disabled,.fyvr12e3[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e4:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e5:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12e6[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e7,.fyvr12e8:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12e9:disabled,.fyvr12e9[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ea:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12eb:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ec[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ed,.fyvr12ee:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12ef:disabled,.fyvr12ef[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12eg:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12eh:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12ei[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ej,.fyvr12ek:active{border-right-color:var(--seq-colors-background-control)}.fyvr12el:disabled,.fyvr12el[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12em:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12en:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12eo[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ep,.fyvr12eq:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12er:disabled,.fyvr12er[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12es:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12et:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12eu[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12ev,.fyvr12ew:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ex:disabled,.fyvr12ex[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ey:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ez:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f0[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f1,.fyvr12f2:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f3:disabled,.fyvr12f3[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f4:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f5:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12f6[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f7,.fyvr12f8:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12f9:disabled,.fyvr12f9[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fa:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12fb:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12fc[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fd,.fyvr12fe:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12ff:disabled,.fyvr12ff[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fg:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12fh:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12fi[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fj,.fyvr12fk:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fl:disabled,.fyvr12fl[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fm:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fn:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fo[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fp,.fyvr12fq:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fr:disabled,.fyvr12fr[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fs:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12ft:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12fu[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fv,.fyvr12fw:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12fx:disabled,.fyvr12fx[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12fy:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12fz:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12g0[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12g1,.fyvr12g2:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12g3:disabled,.fyvr12g3[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g4:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12g5:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12g6[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g7,.fyvr12g8:active{border-right-style:solid}.fyvr12g9:disabled,.fyvr12g9[data-disabled]{border-right-style:solid}.fyvr12ga:focus{border-right-style:solid}.fyvr12gb:hover:not([disabled]){border-right-style:solid}.fyvr12gc[data-state=checked]{border-right-style:solid}.fyvr12gd,.fyvr12ge:active{border-right-style:dashed}.fyvr12gf:disabled,.fyvr12gf[data-disabled]{border-right-style:dashed}.fyvr12gg:focus{border-right-style:dashed}.fyvr12gh:hover:not([disabled]){border-right-style:dashed}.fyvr12gi[data-state=checked]{border-right-style:dashed}.fyvr12gj,.fyvr12gk:active{border-right-style:dotted}.fyvr12gl:disabled,.fyvr12gl[data-disabled]{border-right-style:dotted}.fyvr12gm:focus{border-right-style:dotted}.fyvr12gn:hover:not([disabled]){border-right-style:dotted}.fyvr12go[data-state=checked]{border-right-style:dotted}.fyvr12gp,.fyvr12gq:active{border-top-color:var(--seq-colors-black)}.fyvr12gr:disabled,.fyvr12gr[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12gs:focus{border-top-color:var(--seq-colors-black)}.fyvr12gt:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12gu[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12gv,.fyvr12gw:active{border-top-color:var(--seq-colors-white)}.fyvr12gx:disabled,.fyvr12gx[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12gy:focus{border-top-color:var(--seq-colors-white)}.fyvr12gz:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12h0[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12h1,.fyvr12h2:active{border-top-color:var(--seq-colors-inherit)}.fyvr12h3:disabled,.fyvr12h3[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12h4:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12h5:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12h6[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12h7,.fyvr12h8:active{border-top-color:var(--seq-colors-transparent)}.fyvr12h9:disabled,.fyvr12h9[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12ha:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12hb:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12hc[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12hd,.fyvr12he:active{border-top-color:var(--seq-colors-positive)}.fyvr12hf:disabled,.fyvr12hf[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12hg:focus{border-top-color:var(--seq-colors-positive)}.fyvr12hh:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12hi[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12hj,.fyvr12hk:active{border-top-color:var(--seq-colors-negative)}.fyvr12hl:disabled,.fyvr12hl[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12hm:focus{border-top-color:var(--seq-colors-negative)}.fyvr12hn:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12ho[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12hp,.fyvr12hq:active{border-top-color:var(--seq-colors-info)}.fyvr12hr:disabled,.fyvr12hr[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12hs:focus{border-top-color:var(--seq-colors-info)}.fyvr12ht:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12hu[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12hv,.fyvr12hw:active{border-top-color:var(--seq-colors-warning)}.fyvr12hx:disabled,.fyvr12hx[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12hy:focus{border-top-color:var(--seq-colors-warning)}.fyvr12hz:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12i0[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12i1,.fyvr12i2:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i3:disabled,.fyvr12i3[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i4:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i5:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i6[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i7,.fyvr12i8:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12i9:disabled,.fyvr12i9[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ia:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ib:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ic[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12id,.fyvr12ie:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12if:disabled,.fyvr12if[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ig:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ih:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ii[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ij,.fyvr12ik:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12il:disabled,.fyvr12il[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12im:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12in:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12io[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12ip,.fyvr12iq:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12ir:disabled,.fyvr12ir[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12is:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12it:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iu[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iv,.fyvr12iw:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12ix:disabled,.fyvr12ix[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iy:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iz:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j0[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j1,.fyvr12j2:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j3:disabled,.fyvr12j3[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j4:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j5:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12j6[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j7,.fyvr12j8:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12j9:disabled,.fyvr12j9[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ja:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jb:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jc[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jd,.fyvr12je:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jf:disabled,.fyvr12jf[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jg:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jh:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12ji[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jj,.fyvr12jk:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jl:disabled,.fyvr12jl[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jm:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jn:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jo[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jp,.fyvr12jq:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jr:disabled,.fyvr12jr[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12js:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jt:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12ju[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jv,.fyvr12jw:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jx:disabled,.fyvr12jx[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jy:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jz:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k0[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k1,.fyvr12k2:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k3:disabled,.fyvr12k3[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k4:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k5:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k6[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k7,.fyvr12k8:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12k9:disabled,.fyvr12k9[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ka:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kb:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kc[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kd,.fyvr12ke:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kf:disabled,.fyvr12kf[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kg:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kh:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12ki[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kj,.fyvr12kk:active{border-top-color:var(--seq-colors-text100)}.fyvr12kl:disabled,.fyvr12kl[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12km:focus{border-top-color:var(--seq-colors-text100)}.fyvr12kn:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ko[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12kp,.fyvr12kq:active{border-top-color:var(--seq-colors-text80)}.fyvr12kr:disabled,.fyvr12kr[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12ks:focus{border-top-color:var(--seq-colors-text80)}.fyvr12kt:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12ku[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12kv,.fyvr12kw:active{border-top-color:var(--seq-colors-text50)}.fyvr12kx:disabled,.fyvr12kx[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12ky:focus{border-top-color:var(--seq-colors-text50)}.fyvr12kz:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12l0[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12l1,.fyvr12l2:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l3:disabled,.fyvr12l3[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l4:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l5:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l6[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l7,.fyvr12l8:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12l9:disabled,.fyvr12l9[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12la:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12lb:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12lc[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12ld,.fyvr12le:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lf:disabled,.fyvr12lf[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lg:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lh:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12li[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lj,.fyvr12lk:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ll:disabled,.fyvr12ll[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lm:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ln:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12lo[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lp,.fyvr12lq:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12lr:disabled,.fyvr12lr[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12ls:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12lt:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12lu[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12lv,.fyvr12lw:active{border-top-color:var(--seq-colors-background-control)}.fyvr12lx:disabled,.fyvr12lx[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12ly:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12lz:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12m0[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12m1,.fyvr12m2:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m3:disabled,.fyvr12m3[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m4:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m5:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12m6[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m7,.fyvr12m8:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12m9:disabled,.fyvr12m9[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ma:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mb:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mc[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12md,.fyvr12me:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mf:disabled,.fyvr12mf[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mg:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mh:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12mi[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mj,.fyvr12mk:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12ml:disabled,.fyvr12ml[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mm:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12mn:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12mo[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mp,.fyvr12mq:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12mr:disabled,.fyvr12mr[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12ms:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12mt:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12mu[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12mv,.fyvr12mw:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mx:disabled,.fyvr12mx[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12my:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mz:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n0[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n1,.fyvr12n2:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n3:disabled,.fyvr12n3[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n4:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n5:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12n6[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n7,.fyvr12n8:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12n9:disabled,.fyvr12n9[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12na:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12nb:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12nc[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12nd,.fyvr12ne:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12nf:disabled,.fyvr12nf[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ng:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12nh:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12ni[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12nj,.fyvr12nk:active{border-top-style:solid}.fyvr12nl:disabled,.fyvr12nl[data-disabled]{border-top-style:solid}.fyvr12nm:focus{border-top-style:solid}.fyvr12nn:hover:not([disabled]){border-top-style:solid}.fyvr12no[data-state=checked]{border-top-style:solid}.fyvr12np,.fyvr12nq:active{border-top-style:dashed}.fyvr12nr:disabled,.fyvr12nr[data-disabled]{border-top-style:dashed}.fyvr12ns:focus{border-top-style:dashed}.fyvr12nt:hover:not([disabled]){border-top-style:dashed}.fyvr12nu[data-state=checked]{border-top-style:dashed}.fyvr12nv,.fyvr12nw:active{border-top-style:dotted}.fyvr12nx:disabled,.fyvr12nx[data-disabled]{border-top-style:dotted}.fyvr12ny:focus{border-top-style:dotted}.fyvr12nz:hover:not([disabled]){border-top-style:dotted}.fyvr12o0[data-state=checked]{border-top-style:dotted}.fyvr12o1,.fyvr12o2:active{border:none}.fyvr12o3:disabled,.fyvr12o3[data-disabled]{border:none}.fyvr12o4:focus{border:none}.fyvr12o5:hover:not([disabled]){border:none}.fyvr12o6[data-state=checked]{border:none}.fyvr12o7,.fyvr12o8:active{color:var(--seq-colors-black)}.fyvr12o9:disabled,.fyvr12o9[data-disabled]{color:var(--seq-colors-black)}.fyvr12oa:focus{color:var(--seq-colors-black)}.fyvr12ob:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12oc[data-state=checked]{color:var(--seq-colors-black)}.fyvr12od,.fyvr12oe:active{color:var(--seq-colors-white)}.fyvr12of:disabled,.fyvr12of[data-disabled]{color:var(--seq-colors-white)}.fyvr12og:focus{color:var(--seq-colors-white)}.fyvr12oh:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12oi[data-state=checked]{color:var(--seq-colors-white)}.fyvr12oj,.fyvr12ok:active{color:var(--seq-colors-inherit)}.fyvr12ol:disabled,.fyvr12ol[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12om:focus{color:var(--seq-colors-inherit)}.fyvr12on:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12oo[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12op,.fyvr12oq:active{color:var(--seq-colors-transparent)}.fyvr12or:disabled,.fyvr12or[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12os:focus{color:var(--seq-colors-transparent)}.fyvr12ot:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12ou[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12ov,.fyvr12ow:active{color:var(--seq-colors-positive)}.fyvr12ox:disabled,.fyvr12ox[data-disabled]{color:var(--seq-colors-positive)}.fyvr12oy:focus{color:var(--seq-colors-positive)}.fyvr12oz:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12p0[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12p1,.fyvr12p2:active{color:var(--seq-colors-negative)}.fyvr12p3:disabled,.fyvr12p3[data-disabled]{color:var(--seq-colors-negative)}.fyvr12p4:focus{color:var(--seq-colors-negative)}.fyvr12p5:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12p6[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12p7,.fyvr12p8:active{color:var(--seq-colors-info)}.fyvr12p9:disabled,.fyvr12p9[data-disabled]{color:var(--seq-colors-info)}.fyvr12pa:focus{color:var(--seq-colors-info)}.fyvr12pb:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12pc[data-state=checked]{color:var(--seq-colors-info)}.fyvr12pd,.fyvr12pe:active{color:var(--seq-colors-warning)}.fyvr12pf:disabled,.fyvr12pf[data-disabled]{color:var(--seq-colors-warning)}.fyvr12pg:focus{color:var(--seq-colors-warning)}.fyvr12ph:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12pi[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12pj,.fyvr12pk:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12pl:disabled,.fyvr12pl[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pm:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12pn:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12po[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pp,.fyvr12pq:active{color:var(--seq-colors-gradient-primary)}.fyvr12pr:disabled,.fyvr12pr[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12ps:focus{color:var(--seq-colors-gradient-primary)}.fyvr12pt:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12pu[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12pv,.fyvr12pw:active{color:var(--seq-colors-gradient-secondary)}.fyvr12px:disabled,.fyvr12px[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12py:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12pz:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12q0[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12q1,.fyvr12q2:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12q3:disabled,.fyvr12q3[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q4:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12q5:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12q6[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q7,.fyvr12q8:active{color:var(--seq-colors-arbitrum-light)}.fyvr12q9:disabled,.fyvr12q9[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12qa:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12qb:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12qc[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12qd,.fyvr12qe:active{color:var(--seq-colors-avalance-dark)}.fyvr12qf:disabled,.fyvr12qf[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12qg:focus{color:var(--seq-colors-avalance-dark)}.fyvr12qh:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12qi[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12qj,.fyvr12qk:active{color:var(--seq-colors-avalance-light)}.fyvr12ql:disabled,.fyvr12ql[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12qm:focus{color:var(--seq-colors-avalance-light)}.fyvr12qn:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12qo[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12qp,.fyvr12qq:active{color:var(--seq-colors-bsc-dark)}.fyvr12qr:disabled,.fyvr12qr[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12qs:focus{color:var(--seq-colors-bsc-dark)}.fyvr12qt:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12qu[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12qv,.fyvr12qw:active{color:var(--seq-colors-bsc-light)}.fyvr12qx:disabled,.fyvr12qx[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12qy:focus{color:var(--seq-colors-bsc-light)}.fyvr12qz:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12r0[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12r1,.fyvr12r2:active{color:var(--seq-colors-ethereum-dark)}.fyvr12r3:disabled,.fyvr12r3[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12r4:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12r5:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12r6[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12r7,.fyvr12r8:active{color:var(--seq-colors-ethereum-light)}.fyvr12r9:disabled,.fyvr12r9[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12ra:focus{color:var(--seq-colors-ethereum-light)}.fyvr12rb:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12rc[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12rd,.fyvr12re:active{color:var(--seq-colors-gnosis-dark)}.fyvr12rf:disabled,.fyvr12rf[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12rg:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12rh:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12ri[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12rj,.fyvr12rk:active{color:var(--seq-colors-gnosis-light)}.fyvr12rl:disabled,.fyvr12rl[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12rm:focus{color:var(--seq-colors-gnosis-light)}.fyvr12rn:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12ro[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12rp,.fyvr12rq:active{color:var(--seq-colors-polygon-dark)}.fyvr12rr:disabled,.fyvr12rr[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12rs:focus{color:var(--seq-colors-polygon-dark)}.fyvr12rt:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12ru[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12rv,.fyvr12rw:active{color:var(--seq-colors-polygon-light)}.fyvr12rx:disabled,.fyvr12rx[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12ry:focus{color:var(--seq-colors-polygon-light)}.fyvr12rz:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12s0[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12s1,.fyvr12s2:active{color:var(--seq-colors-text100)}.fyvr12s3:disabled,.fyvr12s3[data-disabled]{color:var(--seq-colors-text100)}.fyvr12s4:focus{color:var(--seq-colors-text100)}.fyvr12s5:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12s6[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12s7,.fyvr12s8:active{color:var(--seq-colors-text80)}.fyvr12s9:disabled,.fyvr12s9[data-disabled]{color:var(--seq-colors-text80)}.fyvr12sa:focus{color:var(--seq-colors-text80)}.fyvr12sb:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12sc[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12sd,.fyvr12se:active{color:var(--seq-colors-text50)}.fyvr12sf:disabled,.fyvr12sf[data-disabled]{color:var(--seq-colors-text50)}.fyvr12sg:focus{color:var(--seq-colors-text50)}.fyvr12sh:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12si[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12sj,.fyvr12sk:active{color:var(--seq-colors-text-inverse100)}.fyvr12sl:disabled,.fyvr12sl[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12sm:focus{color:var(--seq-colors-text-inverse100)}.fyvr12sn:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12so[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12sp,.fyvr12sq:active{color:var(--seq-colors-background-primary)}.fyvr12sr:disabled,.fyvr12sr[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12ss:focus{color:var(--seq-colors-background-primary)}.fyvr12st:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12su[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12sv,.fyvr12sw:active{color:var(--seq-colors-background-secondary)}.fyvr12sx:disabled,.fyvr12sx[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12sy:focus{color:var(--seq-colors-background-secondary)}.fyvr12sz:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12t0[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12t1,.fyvr12t2:active{color:var(--seq-colors-background-contrast)}.fyvr12t3:disabled,.fyvr12t3[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12t4:focus{color:var(--seq-colors-background-contrast)}.fyvr12t5:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12t6[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12t7,.fyvr12t8:active{color:var(--seq-colors-background-muted)}.fyvr12t9:disabled,.fyvr12t9[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12ta:focus{color:var(--seq-colors-background-muted)}.fyvr12tb:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12tc[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12td,.fyvr12te:active{color:var(--seq-colors-background-control)}.fyvr12tf:disabled,.fyvr12tf[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12tg:focus{color:var(--seq-colors-background-control)}.fyvr12th:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12ti[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12tj,.fyvr12tk:active{color:var(--seq-colors-background-inverse)}.fyvr12tl:disabled,.fyvr12tl[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12tm:focus{color:var(--seq-colors-background-inverse)}.fyvr12tn:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12to[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12tp,.fyvr12tq:active{color:var(--seq-colors-background-backdrop)}.fyvr12tr:disabled,.fyvr12tr[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12ts:focus{color:var(--seq-colors-background-backdrop)}.fyvr12tt:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12tu[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12tv,.fyvr12tw:active{color:var(--seq-colors-background-overlay)}.fyvr12tx:disabled,.fyvr12tx[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12ty:focus{color:var(--seq-colors-background-overlay)}.fyvr12tz:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12u0[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12u1,.fyvr12u2:active{color:var(--seq-colors-background-raised)}.fyvr12u3:disabled,.fyvr12u3[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12u4:focus{color:var(--seq-colors-background-raised)}.fyvr12u5:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12u6[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12u7,.fyvr12u8:active{color:var(--seq-colors-button-glass)}.fyvr12u9:disabled,.fyvr12u9[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12ua:focus{color:var(--seq-colors-button-glass)}.fyvr12ub:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12uc[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12ud,.fyvr12ue:active{color:var(--seq-colors-button-emphasis)}.fyvr12uf:disabled,.fyvr12uf[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12ug:focus{color:var(--seq-colors-button-emphasis)}.fyvr12uh:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12ui[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12uj,.fyvr12uk:active{color:var(--seq-colors-button-inverse)}.fyvr12ul:disabled,.fyvr12ul[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12um:focus{color:var(--seq-colors-button-inverse)}.fyvr12un:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12uo[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12up,.fyvr12uq:active{color:var(--seq-colors-border-normal)}.fyvr12ur:disabled,.fyvr12ur[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12us:focus{color:var(--seq-colors-border-normal)}.fyvr12ut:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12uu[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12uv,.fyvr12uw:active{color:var(--seq-colors-border-focus)}.fyvr12ux:disabled,.fyvr12ux[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12uy:focus{color:var(--seq-colors-border-focus)}.fyvr12uz:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12v0[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12v1,.fyvr12v2:active{cursor:default}.fyvr12v3:disabled,.fyvr12v3[data-disabled]{cursor:default}.fyvr12v4:focus{cursor:default}.fyvr12v5:hover:not([disabled]){cursor:default}.fyvr12v6[data-state=checked]{cursor:default}.fyvr12v7,.fyvr12v8:active{cursor:pointer}.fyvr12v9:disabled,.fyvr12v9[data-disabled]{cursor:pointer}.fyvr12va:focus{cursor:pointer}.fyvr12vb:hover:not([disabled]){cursor:pointer}.fyvr12vc[data-state=checked]{cursor:pointer}.fyvr12vd,.fyvr12ve:active{cursor:text}.fyvr12vf:disabled,.fyvr12vf[data-disabled]{cursor:text}.fyvr12vg:focus{cursor:text}.fyvr12vh:hover:not([disabled]){cursor:text}.fyvr12vi[data-state=checked]{cursor:text}.fyvr12vj,.fyvr12vk:active{opacity:var(--seq-opacity-0)}.fyvr12vl:disabled,.fyvr12vl[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12vm:focus{opacity:var(--seq-opacity-0)}.fyvr12vn:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12vo[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12vp,.fyvr12vq:active{opacity:var(--seq-opacity-50)}.fyvr12vr:disabled,.fyvr12vr[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr12vs:focus{opacity:var(--seq-opacity-50)}.fyvr12vt:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr12vu[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr12vv,.fyvr12vw:active{opacity:var(--seq-opacity-80)}.fyvr12vx:disabled,.fyvr12vx[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr12vy:focus{opacity:var(--seq-opacity-80)}.fyvr12vz:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr12w0[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr12w1,.fyvr12w2:active{opacity:var(--seq-opacity-100)}.fyvr12w3:disabled,.fyvr12w3[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr12w4:focus{opacity:var(--seq-opacity-100)}.fyvr12w5:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr12w6[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr12w7,.fyvr12w8:active{pointer-events:none}.fyvr12w9:disabled,.fyvr12w9[data-disabled]{pointer-events:none}.fyvr12wa:focus{pointer-events:none}.fyvr12wb:hover:not([disabled]){pointer-events:none}.fyvr12wc[data-state=checked]{pointer-events:none}.fyvr12wd,.fyvr12we:active{pointer-events:auto}.fyvr12wf:disabled,.fyvr12wf[data-disabled]{pointer-events:auto}.fyvr12wg:focus{pointer-events:auto}.fyvr12wh:hover:not([disabled]){pointer-events:auto}.fyvr12wi[data-state=checked]{pointer-events:auto}.fyvr12wj,.fyvr12wk:active{outline:none}.fyvr12wl:disabled,.fyvr12wl[data-disabled]{outline:none}.fyvr12wm:focus{outline:none}.fyvr12wn:hover:not([disabled]){outline:none}.fyvr12wo[data-state=checked]{outline:none}.fyvr12wp,.fyvr12wq:active{box-shadow:none}.fyvr12wr:disabled,.fyvr12wr[data-disabled]{box-shadow:none}.fyvr12ws:focus{box-shadow:none}.fyvr12wt:hover:not([disabled]){box-shadow:none}.fyvr12wu[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-0_25)}.fyvr11p{width:var(--seq-space-0_5)}.fyvr11t{width:var(--seq-space-1_5)}.fyvr11x{width:0}.fyvr121{width:1px}.fyvr125{width:auto}.fyvr129{width:100%}.fyvr12d{width:50%}.fyvr12h{width:33.33333%}.fyvr12l{width:66.66667%}.fyvr12p{width:25%}.fyvr12t{width:75%}.fyvr12x{width:-moz-fit-content;width:fit-content}.fyvr131{width:-moz-max-content;width:max-content}.fyvr135{width:-moz-min-content;width:min-content}.fyvr139{width:100vw}.fyvr13d{width:100vh}.fyvr13h{height:var(--seq-space-0)}.fyvr13l{height:var(--seq-space-1)}.fyvr13p{height:var(--seq-space-2)}.fyvr13t{height:var(--seq-space-3)}.fyvr13x{height:var(--seq-space-4)}.fyvr141{height:var(--seq-space-5)}.fyvr145{height:var(--seq-space-6)}.fyvr149{height:var(--seq-space-7)}.fyvr14d{height:var(--seq-space-8)}.fyvr14h{height:var(--seq-space-9)}.fyvr14l{height:var(--seq-space-10)}.fyvr14p{height:var(--seq-space-12)}.fyvr14t{height:var(--seq-space-14)}.fyvr14x{height:var(--seq-space-16)}.fyvr151{height:var(--seq-space-0_25)}.fyvr155{height:var(--seq-space-0_5)}.fyvr159{height:var(--seq-space-1_5)}.fyvr15d{height:0}.fyvr15h{height:1px}.fyvr15l{height:auto}.fyvr15p{height:100%}.fyvr15t{height:50%}.fyvr15x{height:33.33333%}.fyvr161{height:66.66667%}.fyvr165{height:25%}.fyvr169{height:75%}.fyvr16d{height:-moz-fit-content;height:fit-content}.fyvr16h{height:-moz-max-content;height:max-content}.fyvr16l{height:-moz-min-content;height:min-content}.fyvr16p{height:100vw}.fyvr16t{height:100vh}.fyvr16x{max-width:var(--seq-space-0)}.fyvr171{max-width:var(--seq-space-1)}.fyvr175{max-width:var(--seq-space-2)}.fyvr179{max-width:var(--seq-space-3)}.fyvr17d{max-width:var(--seq-space-4)}.fyvr17h{max-width:var(--seq-space-5)}.fyvr17l{max-width:var(--seq-space-6)}.fyvr17p{max-width:var(--seq-space-7)}.fyvr17t{max-width:var(--seq-space-8)}.fyvr17x{max-width:var(--seq-space-9)}.fyvr181{max-width:var(--seq-space-10)}.fyvr185{max-width:var(--seq-space-12)}.fyvr189{max-width:var(--seq-space-14)}.fyvr18d{max-width:var(--seq-space-16)}.fyvr18h{max-width:var(--seq-space-0_25)}.fyvr18l{max-width:var(--seq-space-0_5)}.fyvr18p{max-width:var(--seq-space-1_5)}.fyvr18t{max-width:0}.fyvr18x{max-width:1px}.fyvr191{max-width:auto}.fyvr195{max-width:100%}.fyvr199{max-width:50%}.fyvr19d{max-width:33.33333%}.fyvr19h{max-width:66.66667%}.fyvr19l{max-width:25%}.fyvr19p{max-width:75%}.fyvr19t{max-width:-moz-fit-content;max-width:fit-content}.fyvr19x{max-width:-moz-max-content;max-width:max-content}.fyvr1a1{max-width:-moz-min-content;max-width:min-content}.fyvr1a5{max-width:100vw}.fyvr1a9{max-width:100vh}.fyvr1ad{max-height:var(--seq-space-0)}.fyvr1ah{max-height:var(--seq-space-1)}.fyvr1al{max-height:var(--seq-space-2)}.fyvr1ap{max-height:var(--seq-space-3)}.fyvr1at{max-height:var(--seq-space-4)}.fyvr1ax{max-height:var(--seq-space-5)}.fyvr1b1{max-height:var(--seq-space-6)}.fyvr1b5{max-height:var(--seq-space-7)}.fyvr1b9{max-height:var(--seq-space-8)}.fyvr1bd{max-height:var(--seq-space-9)}.fyvr1bh{max-height:var(--seq-space-10)}.fyvr1bl{max-height:var(--seq-space-12)}.fyvr1bp{max-height:var(--seq-space-14)}.fyvr1bt{max-height:var(--seq-space-16)}.fyvr1bx{max-height:var(--seq-space-0_25)}.fyvr1c1{max-height:var(--seq-space-0_5)}.fyvr1c5{max-height:var(--seq-space-1_5)}.fyvr1c9{max-height:0}.fyvr1cd{max-height:1px}.fyvr1ch{max-height:auto}.fyvr1cl{max-height:100%}.fyvr1cp{max-height:50%}.fyvr1ct{max-height:33.33333%}.fyvr1cx{max-height:66.66667%}.fyvr1d1{max-height:25%}.fyvr1d5{max-height:75%}.fyvr1d9{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dd{max-height:-moz-max-content;max-height:max-content}.fyvr1dh{max-height:-moz-min-content;max-height:min-content}.fyvr1dl{max-height:100vw}.fyvr1dp{max-height:100vh}.fyvr1dt{min-width:var(--seq-space-0)}.fyvr1dx{min-width:var(--seq-space-1)}.fyvr1e1{min-width:var(--seq-space-2)}.fyvr1e5{min-width:var(--seq-space-3)}.fyvr1e9{min-width:var(--seq-space-4)}.fyvr1ed{min-width:var(--seq-space-5)}.fyvr1eh{min-width:var(--seq-space-6)}.fyvr1el{min-width:var(--seq-space-7)}.fyvr1ep{min-width:var(--seq-space-8)}.fyvr1et{min-width:var(--seq-space-9)}.fyvr1ex{min-width:var(--seq-space-10)}.fyvr1f1{min-width:var(--seq-space-12)}.fyvr1f5{min-width:var(--seq-space-14)}.fyvr1f9{min-width:var(--seq-space-16)}.fyvr1fd{min-width:var(--seq-space-0_25)}.fyvr1fh{min-width:var(--seq-space-0_5)}.fyvr1fl{min-width:var(--seq-space-1_5)}.fyvr1fp{min-width:0}.fyvr1ft{min-width:1px}.fyvr1fx{min-width:auto}.fyvr1g1{min-width:100%}.fyvr1g5{min-width:50%}.fyvr1g9{min-width:33.33333%}.fyvr1gd{min-width:66.66667%}.fyvr1gh{min-width:25%}.fyvr1gl{min-width:75%}.fyvr1gp{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gt{min-width:-moz-max-content;min-width:max-content}.fyvr1gx{min-width:-moz-min-content;min-width:min-content}.fyvr1h1{min-width:100vw}.fyvr1h5{min-width:100vh}.fyvr1h9{min-height:var(--seq-space-0)}.fyvr1hd{min-height:var(--seq-space-1)}.fyvr1hh{min-height:var(--seq-space-2)}.fyvr1hl{min-height:var(--seq-space-3)}.fyvr1hp{min-height:var(--seq-space-4)}.fyvr1ht{min-height:var(--seq-space-5)}.fyvr1hx{min-height:var(--seq-space-6)}.fyvr1i1{min-height:var(--seq-space-7)}.fyvr1i5{min-height:var(--seq-space-8)}.fyvr1i9{min-height:var(--seq-space-9)}.fyvr1id{min-height:var(--seq-space-10)}.fyvr1ih{min-height:var(--seq-space-12)}.fyvr1il{min-height:var(--seq-space-14)}.fyvr1ip{min-height:var(--seq-space-16)}.fyvr1it{min-height:var(--seq-space-0_25)}.fyvr1ix{min-height:var(--seq-space-0_5)}.fyvr1j1{min-height:var(--seq-space-1_5)}.fyvr1j5{min-height:0}.fyvr1j9{min-height:1px}.fyvr1jd{min-height:auto}.fyvr1jh{min-height:100%}.fyvr1jl{min-height:50%}.fyvr1jp{min-height:33.33333%}.fyvr1jt{min-height:66.66667%}.fyvr1jx{min-height:25%}.fyvr1k1{min-height:75%}.fyvr1k5{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k9{min-height:-moz-max-content;min-height:max-content}.fyvr1kd{min-height:-moz-min-content;min-height:min-content}.fyvr1kh{min-height:100vw}.fyvr1kl{min-height:100vh}.fyvr1kp{top:var(--seq-space-0)}.fyvr1kt{top:var(--seq-space-1)}.fyvr1kx{top:var(--seq-space-2)}.fyvr1l1{top:var(--seq-space-3)}.fyvr1l5{top:var(--seq-space-4)}.fyvr1l9{top:var(--seq-space-5)}.fyvr1ld{top:var(--seq-space-6)}.fyvr1lh{top:var(--seq-space-7)}.fyvr1ll{top:var(--seq-space-8)}.fyvr1lp{top:var(--seq-space-9)}.fyvr1lt{top:var(--seq-space-10)}.fyvr1lx{top:var(--seq-space-12)}.fyvr1m1{top:var(--seq-space-14)}.fyvr1m5{top:var(--seq-space-16)}.fyvr1m9{top:var(--seq-space-0_25)}.fyvr1md{top:var(--seq-space-0_5)}.fyvr1mh{top:var(--seq-space-1_5)}.fyvr1ml{top:auto}.fyvr1mp{bottom:var(--seq-space-0)}.fyvr1mt{bottom:var(--seq-space-1)}.fyvr1mx{bottom:var(--seq-space-2)}.fyvr1n1{bottom:var(--seq-space-3)}.fyvr1n5{bottom:var(--seq-space-4)}.fyvr1n9{bottom:var(--seq-space-5)}.fyvr1nd{bottom:var(--seq-space-6)}.fyvr1nh{bottom:var(--seq-space-7)}.fyvr1nl{bottom:var(--seq-space-8)}.fyvr1np{bottom:var(--seq-space-9)}.fyvr1nt{bottom:var(--seq-space-10)}.fyvr1nx{bottom:var(--seq-space-12)}.fyvr1o1{bottom:var(--seq-space-14)}.fyvr1o5{bottom:var(--seq-space-16)}.fyvr1o9{bottom:var(--seq-space-0_25)}.fyvr1od{bottom:var(--seq-space-0_5)}.fyvr1oh{bottom:var(--seq-space-1_5)}.fyvr1ol{bottom:auto}.fyvr1op{left:var(--seq-space-0)}.fyvr1ot{left:var(--seq-space-1)}.fyvr1ox{left:var(--seq-space-2)}.fyvr1p1{left:var(--seq-space-3)}.fyvr1p5{left:var(--seq-space-4)}.fyvr1p9{left:var(--seq-space-5)}.fyvr1pd{left:var(--seq-space-6)}.fyvr1ph{left:var(--seq-space-7)}.fyvr1pl{left:var(--seq-space-8)}.fyvr1pp{left:var(--seq-space-9)}.fyvr1pt{left:var(--seq-space-10)}.fyvr1px{left:var(--seq-space-12)}.fyvr1q1{left:var(--seq-space-14)}.fyvr1q5{left:var(--seq-space-16)}.fyvr1q9{left:var(--seq-space-0_25)}.fyvr1qd{left:var(--seq-space-0_5)}.fyvr1qh{left:var(--seq-space-1_5)}.fyvr1ql{left:auto}.fyvr1qp{right:var(--seq-space-0)}.fyvr1qt{right:var(--seq-space-1)}.fyvr1qx{right:var(--seq-space-2)}.fyvr1r1{right:var(--seq-space-3)}.fyvr1r5{right:var(--seq-space-4)}.fyvr1r9{right:var(--seq-space-5)}.fyvr1rd{right:var(--seq-space-6)}.fyvr1rh{right:var(--seq-space-7)}.fyvr1rl{right:var(--seq-space-8)}.fyvr1rp{right:var(--seq-space-9)}.fyvr1rt{right:var(--seq-space-10)}.fyvr1rx{right:var(--seq-space-12)}.fyvr1s1{right:var(--seq-space-14)}.fyvr1s5{right:var(--seq-space-16)}.fyvr1s9{right:var(--seq-space-0_25)}.fyvr1sd{right:var(--seq-space-0_5)}.fyvr1sh{right:var(--seq-space-1_5)}.fyvr1sl{right:auto}.fyvr1sp{padding-top:var(--seq-space-0)}.fyvr1st{padding-top:var(--seq-space-1)}.fyvr1sx{padding-top:var(--seq-space-2)}.fyvr1t1{padding-top:var(--seq-space-3)}.fyvr1t5{padding-top:var(--seq-space-4)}.fyvr1t9{padding-top:var(--seq-space-5)}.fyvr1td{padding-top:var(--seq-space-6)}.fyvr1th{padding-top:var(--seq-space-7)}.fyvr1tl{padding-top:var(--seq-space-8)}.fyvr1tp{padding-top:var(--seq-space-9)}.fyvr1tt{padding-top:var(--seq-space-10)}.fyvr1tx{padding-top:var(--seq-space-12)}.fyvr1u1{padding-top:var(--seq-space-14)}.fyvr1u5{padding-top:var(--seq-space-16)}.fyvr1u9{padding-top:var(--seq-space-0_25)}.fyvr1ud{padding-top:var(--seq-space-0_5)}.fyvr1uh{padding-top:var(--seq-space-1_5)}.fyvr1ul{padding-bottom:var(--seq-space-0)}.fyvr1up{padding-bottom:var(--seq-space-1)}.fyvr1ut{padding-bottom:var(--seq-space-2)}.fyvr1ux{padding-bottom:var(--seq-space-3)}.fyvr1v1{padding-bottom:var(--seq-space-4)}.fyvr1v5{padding-bottom:var(--seq-space-5)}.fyvr1v9{padding-bottom:var(--seq-space-6)}.fyvr1vd{padding-bottom:var(--seq-space-7)}.fyvr1vh{padding-bottom:var(--seq-space-8)}.fyvr1vl{padding-bottom:var(--seq-space-9)}.fyvr1vp{padding-bottom:var(--seq-space-10)}.fyvr1vt{padding-bottom:var(--seq-space-12)}.fyvr1vx{padding-bottom:var(--seq-space-14)}.fyvr1w1{padding-bottom:var(--seq-space-16)}.fyvr1w5{padding-bottom:var(--seq-space-0_25)}.fyvr1w9{padding-bottom:var(--seq-space-0_5)}.fyvr1wd{padding-bottom:var(--seq-space-1_5)}.fyvr1wh{padding-left:var(--seq-space-0)}.fyvr1wl{padding-left:var(--seq-space-1)}.fyvr1wp{padding-left:var(--seq-space-2)}.fyvr1wt{padding-left:var(--seq-space-3)}.fyvr1wx{padding-left:var(--seq-space-4)}.fyvr1x1{padding-left:var(--seq-space-5)}.fyvr1x5{padding-left:var(--seq-space-6)}.fyvr1x9{padding-left:var(--seq-space-7)}.fyvr1xd{padding-left:var(--seq-space-8)}.fyvr1xh{padding-left:var(--seq-space-9)}.fyvr1xl{padding-left:var(--seq-space-10)}.fyvr1xp{padding-left:var(--seq-space-12)}.fyvr1xt{padding-left:var(--seq-space-14)}.fyvr1xx{padding-left:var(--seq-space-16)}.fyvr1y1{padding-left:var(--seq-space-0_25)}.fyvr1y5{padding-left:var(--seq-space-0_5)}.fyvr1y9{padding-left:var(--seq-space-1_5)}.fyvr1yd{padding-right:var(--seq-space-0)}.fyvr1yh{padding-right:var(--seq-space-1)}.fyvr1yl{padding-right:var(--seq-space-2)}.fyvr1yp{padding-right:var(--seq-space-3)}.fyvr1yt{padding-right:var(--seq-space-4)}.fyvr1yx{padding-right:var(--seq-space-5)}.fyvr1z1{padding-right:var(--seq-space-6)}.fyvr1z5{padding-right:var(--seq-space-7)}.fyvr1z9{padding-right:var(--seq-space-8)}.fyvr1zd{padding-right:var(--seq-space-9)}.fyvr1zh{padding-right:var(--seq-space-10)}.fyvr1zl{padding-right:var(--seq-space-12)}.fyvr1zp{padding-right:var(--seq-space-14)}.fyvr1zt{padding-right:var(--seq-space-16)}.fyvr1zx{padding-right:var(--seq-space-0_25)}.fyvr1101{padding-right:var(--seq-space-0_5)}.fyvr1105{padding-right:var(--seq-space-1_5)}.fyvr1109{margin-top:var(--seq-space-0)}.fyvr110d{margin-top:var(--seq-space-1)}.fyvr110h{margin-top:var(--seq-space-2)}.fyvr110l{margin-top:var(--seq-space-3)}.fyvr110p{margin-top:var(--seq-space-4)}.fyvr110t{margin-top:var(--seq-space-5)}.fyvr110x{margin-top:var(--seq-space-6)}.fyvr1111{margin-top:var(--seq-space-7)}.fyvr1115{margin-top:var(--seq-space-8)}.fyvr1119{margin-top:var(--seq-space-9)}.fyvr111d{margin-top:var(--seq-space-10)}.fyvr111h{margin-top:var(--seq-space-12)}.fyvr111l{margin-top:var(--seq-space-14)}.fyvr111p{margin-top:var(--seq-space-16)}.fyvr111t{margin-top:var(--seq-space-0_25)}.fyvr111x{margin-top:var(--seq-space-0_5)}.fyvr1121{margin-top:var(--seq-space-1_5)}.fyvr1125{margin-top:auto}.fyvr1129{margin-bottom:var(--seq-space-0)}.fyvr112d{margin-bottom:var(--seq-space-1)}.fyvr112h{margin-bottom:var(--seq-space-2)}.fyvr112l{margin-bottom:var(--seq-space-3)}.fyvr112p{margin-bottom:var(--seq-space-4)}.fyvr112t{margin-bottom:var(--seq-space-5)}.fyvr112x{margin-bottom:var(--seq-space-6)}.fyvr1131{margin-bottom:var(--seq-space-7)}.fyvr1135{margin-bottom:var(--seq-space-8)}.fyvr1139{margin-bottom:var(--seq-space-9)}.fyvr113d{margin-bottom:var(--seq-space-10)}.fyvr113h{margin-bottom:var(--seq-space-12)}.fyvr113l{margin-bottom:var(--seq-space-14)}.fyvr113p{margin-bottom:var(--seq-space-16)}.fyvr113t{margin-bottom:var(--seq-space-0_25)}.fyvr113x{margin-bottom:var(--seq-space-0_5)}.fyvr1141{margin-bottom:var(--seq-space-1_5)}.fyvr1145{margin-bottom:auto}.fyvr1149{margin-left:var(--seq-space-0)}.fyvr114d{margin-left:var(--seq-space-1)}.fyvr114h{margin-left:var(--seq-space-2)}.fyvr114l{margin-left:var(--seq-space-3)}.fyvr114p{margin-left:var(--seq-space-4)}.fyvr114t{margin-left:var(--seq-space-5)}.fyvr114x{margin-left:var(--seq-space-6)}.fyvr1151{margin-left:var(--seq-space-7)}.fyvr1155{margin-left:var(--seq-space-8)}.fyvr1159{margin-left:var(--seq-space-9)}.fyvr115d{margin-left:var(--seq-space-10)}.fyvr115h{margin-left:var(--seq-space-12)}.fyvr115l{margin-left:var(--seq-space-14)}.fyvr115p{margin-left:var(--seq-space-16)}.fyvr115t{margin-left:var(--seq-space-0_25)}.fyvr115x{margin-left:var(--seq-space-0_5)}.fyvr1161{margin-left:var(--seq-space-1_5)}.fyvr1165{margin-left:auto}.fyvr1169{margin-right:var(--seq-space-0)}.fyvr116d{margin-right:var(--seq-space-1)}.fyvr116h{margin-right:var(--seq-space-2)}.fyvr116l{margin-right:var(--seq-space-3)}.fyvr116p{margin-right:var(--seq-space-4)}.fyvr116t{margin-right:var(--seq-space-5)}.fyvr116x{margin-right:var(--seq-space-6)}.fyvr1171{margin-right:var(--seq-space-7)}.fyvr1175{margin-right:var(--seq-space-8)}.fyvr1179{margin-right:var(--seq-space-9)}.fyvr117d{margin-right:var(--seq-space-10)}.fyvr117h{margin-right:var(--seq-space-12)}.fyvr117l{margin-right:var(--seq-space-14)}.fyvr117p{margin-right:var(--seq-space-16)}.fyvr117t{margin-right:var(--seq-space-0_25)}.fyvr117x{margin-right:var(--seq-space-0_5)}.fyvr1181{margin-right:var(--seq-space-1_5)}.fyvr1185{margin-right:auto}.fyvr1189{gap:var(--seq-space-0)}.fyvr118d{gap:var(--seq-space-1)}.fyvr118h{gap:var(--seq-space-2)}.fyvr118l{gap:var(--seq-space-3)}.fyvr118p{gap:var(--seq-space-4)}.fyvr118t{gap:var(--seq-space-5)}.fyvr118x{gap:var(--seq-space-6)}.fyvr1191{gap:var(--seq-space-7)}.fyvr1195{gap:var(--seq-space-8)}.fyvr1199{gap:var(--seq-space-9)}.fyvr119d{gap:var(--seq-space-10)}.fyvr119h{gap:var(--seq-space-12)}.fyvr119l{gap:var(--seq-space-14)}.fyvr119p{gap:var(--seq-space-16)}.fyvr119t{gap:var(--seq-space-0_25)}.fyvr119x{gap:var(--seq-space-0_5)}.fyvr11a1{gap:var(--seq-space-1_5)}.fyvr11a5{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a9{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ad{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ah{border-left-width:var(--seq-border-widths-none)}.fyvr11al{border-left-width:var(--seq-border-widths-thin)}.fyvr11ap{border-left-width:var(--seq-border-widths-thick)}.fyvr11at{border-right-width:var(--seq-border-widths-none)}.fyvr11ax{border-right-width:var(--seq-border-widths-thin)}.fyvr11b1{border-right-width:var(--seq-border-widths-thick)}.fyvr11b5{border-top-width:var(--seq-border-widths-none)}.fyvr11b9{border-top-width:var(--seq-border-widths-thin)}.fyvr11bd{border-top-width:var(--seq-border-widths-thick)}.fyvr11bh{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bl{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bp{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bt{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bx{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c1{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c5{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c9{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cd{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ch{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cl{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cp{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11ct{border-top-left-radius:var(--seq-radii-none)}.fyvr11cx{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d1{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d5{border-top-left-radius:var(--seq-radii-md)}.fyvr11d9{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dd{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dh{border-top-right-radius:var(--seq-radii-none)}.fyvr11dl{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dp{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dt{border-top-right-radius:var(--seq-radii-md)}.fyvr11dx{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e1{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e5{font-size:var(--seq-font-sizes-inherit)}.fyvr11e9{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ed{font-size:var(--seq-font-sizes-small)}.fyvr11eh{font-size:var(--seq-font-sizes-normal)}.fyvr11el{font-size:var(--seq-font-sizes-medium)}.fyvr11ep{font-size:var(--seq-font-sizes-large)}.fyvr11et{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ex{font-weight:var(--seq-font-weights-inherit)}.fyvr11f1{font-weight:var(--seq-font-weights-normal)}.fyvr11f5{font-weight:var(--seq-font-weights-medium)}.fyvr11f9{font-weight:var(--seq-font-weights-semibold)}.fyvr11fd{font-weight:var(--seq-font-weights-bold)}.fyvr11fh{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fl{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fp{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11ft{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fx{line-height:var(--seq-line-heights-4)}.fyvr11g1{line-height:var(--seq-line-heights-5)}.fyvr11g5{line-height:var(--seq-line-heights-6)}.fyvr11g9{line-height:var(--seq-line-heights-7)}.fyvr11gd{line-height:var(--seq-line-heights-9)}.fyvr11gh{line-height:var(--seq-line-heights-inherit)}.fyvr11gl{text-align:center}.fyvr11gp{text-align:left}.fyvr11gt{text-align:right}.fyvr11gx{display:block}.fyvr11h1{display:flex}.fyvr11h5{display:grid}.fyvr11h9{display:inline-block}.fyvr11hd{display:inline-flex}.fyvr11hh{display:none}.fyvr11hl{display:contents}.fyvr11hp{position:absolute}.fyvr11ht{position:fixed}.fyvr11hx{position:relative}.fyvr11i1{position:sticky}.fyvr11i5{flex-direction:column}.fyvr11i9{flex-direction:column-reverse}.fyvr11id{flex-direction:row}.fyvr11ih{flex-direction:row-reverse}.fyvr11il{flex-shrink:0}.fyvr11ip{flex-shrink:1}.fyvr11it{flex-grow:0}.fyvr11ix{flex-grow:1}.fyvr11j1{flex-wrap:nowrap}.fyvr11j5{flex-wrap:wrap}.fyvr11j9{flex-wrap:wrap-reverse}.fyvr11jd{justify-content:flex-start}.fyvr11jh{justify-content:center}.fyvr11jl{justify-content:flex-end}.fyvr11jp{justify-content:stretch}.fyvr11jt{justify-content:space-around}.fyvr11jx{justify-content:space-between}.fyvr11k1{justify-content:space-evenly}.fyvr11k5{justify-self:flex-start}.fyvr11k9{justify-self:center}.fyvr11kd{justify-self:flex-end}.fyvr11kh{justify-self:stretch}.fyvr11kl{align-items:flex-start}.fyvr11kp{align-items:center}.fyvr11kt{align-items:flex-end}.fyvr11kx{align-items:stretch}.fyvr11l1{align-items:baseline}.fyvr11l5{align-self:flex-start}.fyvr11l9{align-self:center}.fyvr11ld{align-self:flex-end}.fyvr11lh{align-self:stretch}.fyvr11ll{align-self:baseline}.fyvr11lp{overflow-x:auto}.fyvr11lt{overflow-x:hidden}.fyvr11lx{overflow-x:scroll}.fyvr11m1{overflow-x:visible}.fyvr11m5{overflow-y:auto}.fyvr11m9{overflow-y:hidden}.fyvr11md{overflow-y:scroll}.fyvr11mh{overflow-y:visible}.fyvr11ml{visibility:hidden}.fyvr11mp{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-0_25)}.fyvr11q{width:var(--seq-space-0_5)}.fyvr11u{width:var(--seq-space-1_5)}.fyvr11y{width:0}.fyvr122{width:1px}.fyvr126{width:auto}.fyvr12a{width:100%}.fyvr12e{width:50%}.fyvr12i{width:33.33333%}.fyvr12m{width:66.66667%}.fyvr12q{width:25%}.fyvr12u{width:75%}.fyvr12y{width:-moz-fit-content;width:fit-content}.fyvr132{width:-moz-max-content;width:max-content}.fyvr136{width:-moz-min-content;width:min-content}.fyvr13a{width:100vw}.fyvr13e{width:100vh}.fyvr13i{height:var(--seq-space-0)}.fyvr13m{height:var(--seq-space-1)}.fyvr13q{height:var(--seq-space-2)}.fyvr13u{height:var(--seq-space-3)}.fyvr13y{height:var(--seq-space-4)}.fyvr142{height:var(--seq-space-5)}.fyvr146{height:var(--seq-space-6)}.fyvr14a{height:var(--seq-space-7)}.fyvr14e{height:var(--seq-space-8)}.fyvr14i{height:var(--seq-space-9)}.fyvr14m{height:var(--seq-space-10)}.fyvr14q{height:var(--seq-space-12)}.fyvr14u{height:var(--seq-space-14)}.fyvr14y{height:var(--seq-space-16)}.fyvr152{height:var(--seq-space-0_25)}.fyvr156{height:var(--seq-space-0_5)}.fyvr15a{height:var(--seq-space-1_5)}.fyvr15e{height:0}.fyvr15i{height:1px}.fyvr15m{height:auto}.fyvr15q{height:100%}.fyvr15u{height:50%}.fyvr15y{height:33.33333%}.fyvr162{height:66.66667%}.fyvr166{height:25%}.fyvr16a{height:75%}.fyvr16e{height:-moz-fit-content;height:fit-content}.fyvr16i{height:-moz-max-content;height:max-content}.fyvr16m{height:-moz-min-content;height:min-content}.fyvr16q{height:100vw}.fyvr16u{height:100vh}.fyvr16y{max-width:var(--seq-space-0)}.fyvr172{max-width:var(--seq-space-1)}.fyvr176{max-width:var(--seq-space-2)}.fyvr17a{max-width:var(--seq-space-3)}.fyvr17e{max-width:var(--seq-space-4)}.fyvr17i{max-width:var(--seq-space-5)}.fyvr17m{max-width:var(--seq-space-6)}.fyvr17q{max-width:var(--seq-space-7)}.fyvr17u{max-width:var(--seq-space-8)}.fyvr17y{max-width:var(--seq-space-9)}.fyvr182{max-width:var(--seq-space-10)}.fyvr186{max-width:var(--seq-space-12)}.fyvr18a{max-width:var(--seq-space-14)}.fyvr18e{max-width:var(--seq-space-16)}.fyvr18i{max-width:var(--seq-space-0_25)}.fyvr18m{max-width:var(--seq-space-0_5)}.fyvr18q{max-width:var(--seq-space-1_5)}.fyvr18u{max-width:0}.fyvr18y{max-width:1px}.fyvr192{max-width:auto}.fyvr196{max-width:100%}.fyvr19a{max-width:50%}.fyvr19e{max-width:33.33333%}.fyvr19i{max-width:66.66667%}.fyvr19m{max-width:25%}.fyvr19q{max-width:75%}.fyvr19u{max-width:-moz-fit-content;max-width:fit-content}.fyvr19y{max-width:-moz-max-content;max-width:max-content}.fyvr1a2{max-width:-moz-min-content;max-width:min-content}.fyvr1a6{max-width:100vw}.fyvr1aa{max-width:100vh}.fyvr1ae{max-height:var(--seq-space-0)}.fyvr1ai{max-height:var(--seq-space-1)}.fyvr1am{max-height:var(--seq-space-2)}.fyvr1aq{max-height:var(--seq-space-3)}.fyvr1au{max-height:var(--seq-space-4)}.fyvr1ay{max-height:var(--seq-space-5)}.fyvr1b2{max-height:var(--seq-space-6)}.fyvr1b6{max-height:var(--seq-space-7)}.fyvr1ba{max-height:var(--seq-space-8)}.fyvr1be{max-height:var(--seq-space-9)}.fyvr1bi{max-height:var(--seq-space-10)}.fyvr1bm{max-height:var(--seq-space-12)}.fyvr1bq{max-height:var(--seq-space-14)}.fyvr1bu{max-height:var(--seq-space-16)}.fyvr1by{max-height:var(--seq-space-0_25)}.fyvr1c2{max-height:var(--seq-space-0_5)}.fyvr1c6{max-height:var(--seq-space-1_5)}.fyvr1ca{max-height:0}.fyvr1ce{max-height:1px}.fyvr1ci{max-height:auto}.fyvr1cm{max-height:100%}.fyvr1cq{max-height:50%}.fyvr1cu{max-height:33.33333%}.fyvr1cy{max-height:66.66667%}.fyvr1d2{max-height:25%}.fyvr1d6{max-height:75%}.fyvr1da{max-height:-moz-fit-content;max-height:fit-content}.fyvr1de{max-height:-moz-max-content;max-height:max-content}.fyvr1di{max-height:-moz-min-content;max-height:min-content}.fyvr1dm{max-height:100vw}.fyvr1dq{max-height:100vh}.fyvr1du{min-width:var(--seq-space-0)}.fyvr1dy{min-width:var(--seq-space-1)}.fyvr1e2{min-width:var(--seq-space-2)}.fyvr1e6{min-width:var(--seq-space-3)}.fyvr1ea{min-width:var(--seq-space-4)}.fyvr1ee{min-width:var(--seq-space-5)}.fyvr1ei{min-width:var(--seq-space-6)}.fyvr1em{min-width:var(--seq-space-7)}.fyvr1eq{min-width:var(--seq-space-8)}.fyvr1eu{min-width:var(--seq-space-9)}.fyvr1ey{min-width:var(--seq-space-10)}.fyvr1f2{min-width:var(--seq-space-12)}.fyvr1f6{min-width:var(--seq-space-14)}.fyvr1fa{min-width:var(--seq-space-16)}.fyvr1fe{min-width:var(--seq-space-0_25)}.fyvr1fi{min-width:var(--seq-space-0_5)}.fyvr1fm{min-width:var(--seq-space-1_5)}.fyvr1fq{min-width:0}.fyvr1fu{min-width:1px}.fyvr1fy{min-width:auto}.fyvr1g2{min-width:100%}.fyvr1g6{min-width:50%}.fyvr1ga{min-width:33.33333%}.fyvr1ge{min-width:66.66667%}.fyvr1gi{min-width:25%}.fyvr1gm{min-width:75%}.fyvr1gq{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gu{min-width:-moz-max-content;min-width:max-content}.fyvr1gy{min-width:-moz-min-content;min-width:min-content}.fyvr1h2{min-width:100vw}.fyvr1h6{min-width:100vh}.fyvr1ha{min-height:var(--seq-space-0)}.fyvr1he{min-height:var(--seq-space-1)}.fyvr1hi{min-height:var(--seq-space-2)}.fyvr1hm{min-height:var(--seq-space-3)}.fyvr1hq{min-height:var(--seq-space-4)}.fyvr1hu{min-height:var(--seq-space-5)}.fyvr1hy{min-height:var(--seq-space-6)}.fyvr1i2{min-height:var(--seq-space-7)}.fyvr1i6{min-height:var(--seq-space-8)}.fyvr1ia{min-height:var(--seq-space-9)}.fyvr1ie{min-height:var(--seq-space-10)}.fyvr1ii{min-height:var(--seq-space-12)}.fyvr1im{min-height:var(--seq-space-14)}.fyvr1iq{min-height:var(--seq-space-16)}.fyvr1iu{min-height:var(--seq-space-0_25)}.fyvr1iy{min-height:var(--seq-space-0_5)}.fyvr1j2{min-height:var(--seq-space-1_5)}.fyvr1j6{min-height:0}.fyvr1ja{min-height:1px}.fyvr1je{min-height:auto}.fyvr1ji{min-height:100%}.fyvr1jm{min-height:50%}.fyvr1jq{min-height:33.33333%}.fyvr1ju{min-height:66.66667%}.fyvr1jy{min-height:25%}.fyvr1k2{min-height:75%}.fyvr1k6{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ka{min-height:-moz-max-content;min-height:max-content}.fyvr1ke{min-height:-moz-min-content;min-height:min-content}.fyvr1ki{min-height:100vw}.fyvr1km{min-height:100vh}.fyvr1kq{top:var(--seq-space-0)}.fyvr1ku{top:var(--seq-space-1)}.fyvr1ky{top:var(--seq-space-2)}.fyvr1l2{top:var(--seq-space-3)}.fyvr1l6{top:var(--seq-space-4)}.fyvr1la{top:var(--seq-space-5)}.fyvr1le{top:var(--seq-space-6)}.fyvr1li{top:var(--seq-space-7)}.fyvr1lm{top:var(--seq-space-8)}.fyvr1lq{top:var(--seq-space-9)}.fyvr1lu{top:var(--seq-space-10)}.fyvr1ly{top:var(--seq-space-12)}.fyvr1m2{top:var(--seq-space-14)}.fyvr1m6{top:var(--seq-space-16)}.fyvr1ma{top:var(--seq-space-0_25)}.fyvr1me{top:var(--seq-space-0_5)}.fyvr1mi{top:var(--seq-space-1_5)}.fyvr1mm{top:auto}.fyvr1mq{bottom:var(--seq-space-0)}.fyvr1mu{bottom:var(--seq-space-1)}.fyvr1my{bottom:var(--seq-space-2)}.fyvr1n2{bottom:var(--seq-space-3)}.fyvr1n6{bottom:var(--seq-space-4)}.fyvr1na{bottom:var(--seq-space-5)}.fyvr1ne{bottom:var(--seq-space-6)}.fyvr1ni{bottom:var(--seq-space-7)}.fyvr1nm{bottom:var(--seq-space-8)}.fyvr1nq{bottom:var(--seq-space-9)}.fyvr1nu{bottom:var(--seq-space-10)}.fyvr1ny{bottom:var(--seq-space-12)}.fyvr1o2{bottom:var(--seq-space-14)}.fyvr1o6{bottom:var(--seq-space-16)}.fyvr1oa{bottom:var(--seq-space-0_25)}.fyvr1oe{bottom:var(--seq-space-0_5)}.fyvr1oi{bottom:var(--seq-space-1_5)}.fyvr1om{bottom:auto}.fyvr1oq{left:var(--seq-space-0)}.fyvr1ou{left:var(--seq-space-1)}.fyvr1oy{left:var(--seq-space-2)}.fyvr1p2{left:var(--seq-space-3)}.fyvr1p6{left:var(--seq-space-4)}.fyvr1pa{left:var(--seq-space-5)}.fyvr1pe{left:var(--seq-space-6)}.fyvr1pi{left:var(--seq-space-7)}.fyvr1pm{left:var(--seq-space-8)}.fyvr1pq{left:var(--seq-space-9)}.fyvr1pu{left:var(--seq-space-10)}.fyvr1py{left:var(--seq-space-12)}.fyvr1q2{left:var(--seq-space-14)}.fyvr1q6{left:var(--seq-space-16)}.fyvr1qa{left:var(--seq-space-0_25)}.fyvr1qe{left:var(--seq-space-0_5)}.fyvr1qi{left:var(--seq-space-1_5)}.fyvr1qm{left:auto}.fyvr1qq{right:var(--seq-space-0)}.fyvr1qu{right:var(--seq-space-1)}.fyvr1qy{right:var(--seq-space-2)}.fyvr1r2{right:var(--seq-space-3)}.fyvr1r6{right:var(--seq-space-4)}.fyvr1ra{right:var(--seq-space-5)}.fyvr1re{right:var(--seq-space-6)}.fyvr1ri{right:var(--seq-space-7)}.fyvr1rm{right:var(--seq-space-8)}.fyvr1rq{right:var(--seq-space-9)}.fyvr1ru{right:var(--seq-space-10)}.fyvr1ry{right:var(--seq-space-12)}.fyvr1s2{right:var(--seq-space-14)}.fyvr1s6{right:var(--seq-space-16)}.fyvr1sa{right:var(--seq-space-0_25)}.fyvr1se{right:var(--seq-space-0_5)}.fyvr1si{right:var(--seq-space-1_5)}.fyvr1sm{right:auto}.fyvr1sq{padding-top:var(--seq-space-0)}.fyvr1su{padding-top:var(--seq-space-1)}.fyvr1sy{padding-top:var(--seq-space-2)}.fyvr1t2{padding-top:var(--seq-space-3)}.fyvr1t6{padding-top:var(--seq-space-4)}.fyvr1ta{padding-top:var(--seq-space-5)}.fyvr1te{padding-top:var(--seq-space-6)}.fyvr1ti{padding-top:var(--seq-space-7)}.fyvr1tm{padding-top:var(--seq-space-8)}.fyvr1tq{padding-top:var(--seq-space-9)}.fyvr1tu{padding-top:var(--seq-space-10)}.fyvr1ty{padding-top:var(--seq-space-12)}.fyvr1u2{padding-top:var(--seq-space-14)}.fyvr1u6{padding-top:var(--seq-space-16)}.fyvr1ua{padding-top:var(--seq-space-0_25)}.fyvr1ue{padding-top:var(--seq-space-0_5)}.fyvr1ui{padding-top:var(--seq-space-1_5)}.fyvr1um{padding-bottom:var(--seq-space-0)}.fyvr1uq{padding-bottom:var(--seq-space-1)}.fyvr1uu{padding-bottom:var(--seq-space-2)}.fyvr1uy{padding-bottom:var(--seq-space-3)}.fyvr1v2{padding-bottom:var(--seq-space-4)}.fyvr1v6{padding-bottom:var(--seq-space-5)}.fyvr1va{padding-bottom:var(--seq-space-6)}.fyvr1ve{padding-bottom:var(--seq-space-7)}.fyvr1vi{padding-bottom:var(--seq-space-8)}.fyvr1vm{padding-bottom:var(--seq-space-9)}.fyvr1vq{padding-bottom:var(--seq-space-10)}.fyvr1vu{padding-bottom:var(--seq-space-12)}.fyvr1vy{padding-bottom:var(--seq-space-14)}.fyvr1w2{padding-bottom:var(--seq-space-16)}.fyvr1w6{padding-bottom:var(--seq-space-0_25)}.fyvr1wa{padding-bottom:var(--seq-space-0_5)}.fyvr1we{padding-bottom:var(--seq-space-1_5)}.fyvr1wi{padding-left:var(--seq-space-0)}.fyvr1wm{padding-left:var(--seq-space-1)}.fyvr1wq{padding-left:var(--seq-space-2)}.fyvr1wu{padding-left:var(--seq-space-3)}.fyvr1wy{padding-left:var(--seq-space-4)}.fyvr1x2{padding-left:var(--seq-space-5)}.fyvr1x6{padding-left:var(--seq-space-6)}.fyvr1xa{padding-left:var(--seq-space-7)}.fyvr1xe{padding-left:var(--seq-space-8)}.fyvr1xi{padding-left:var(--seq-space-9)}.fyvr1xm{padding-left:var(--seq-space-10)}.fyvr1xq{padding-left:var(--seq-space-12)}.fyvr1xu{padding-left:var(--seq-space-14)}.fyvr1xy{padding-left:var(--seq-space-16)}.fyvr1y2{padding-left:var(--seq-space-0_25)}.fyvr1y6{padding-left:var(--seq-space-0_5)}.fyvr1ya{padding-left:var(--seq-space-1_5)}.fyvr1ye{padding-right:var(--seq-space-0)}.fyvr1yi{padding-right:var(--seq-space-1)}.fyvr1ym{padding-right:var(--seq-space-2)}.fyvr1yq{padding-right:var(--seq-space-3)}.fyvr1yu{padding-right:var(--seq-space-4)}.fyvr1yy{padding-right:var(--seq-space-5)}.fyvr1z2{padding-right:var(--seq-space-6)}.fyvr1z6{padding-right:var(--seq-space-7)}.fyvr1za{padding-right:var(--seq-space-8)}.fyvr1ze{padding-right:var(--seq-space-9)}.fyvr1zi{padding-right:var(--seq-space-10)}.fyvr1zm{padding-right:var(--seq-space-12)}.fyvr1zq{padding-right:var(--seq-space-14)}.fyvr1zu{padding-right:var(--seq-space-16)}.fyvr1zy{padding-right:var(--seq-space-0_25)}.fyvr1102{padding-right:var(--seq-space-0_5)}.fyvr1106{padding-right:var(--seq-space-1_5)}.fyvr110a{margin-top:var(--seq-space-0)}.fyvr110e{margin-top:var(--seq-space-1)}.fyvr110i{margin-top:var(--seq-space-2)}.fyvr110m{margin-top:var(--seq-space-3)}.fyvr110q{margin-top:var(--seq-space-4)}.fyvr110u{margin-top:var(--seq-space-5)}.fyvr110y{margin-top:var(--seq-space-6)}.fyvr1112{margin-top:var(--seq-space-7)}.fyvr1116{margin-top:var(--seq-space-8)}.fyvr111a{margin-top:var(--seq-space-9)}.fyvr111e{margin-top:var(--seq-space-10)}.fyvr111i{margin-top:var(--seq-space-12)}.fyvr111m{margin-top:var(--seq-space-14)}.fyvr111q{margin-top:var(--seq-space-16)}.fyvr111u{margin-top:var(--seq-space-0_25)}.fyvr111y{margin-top:var(--seq-space-0_5)}.fyvr1122{margin-top:var(--seq-space-1_5)}.fyvr1126{margin-top:auto}.fyvr112a{margin-bottom:var(--seq-space-0)}.fyvr112e{margin-bottom:var(--seq-space-1)}.fyvr112i{margin-bottom:var(--seq-space-2)}.fyvr112m{margin-bottom:var(--seq-space-3)}.fyvr112q{margin-bottom:var(--seq-space-4)}.fyvr112u{margin-bottom:var(--seq-space-5)}.fyvr112y{margin-bottom:var(--seq-space-6)}.fyvr1132{margin-bottom:var(--seq-space-7)}.fyvr1136{margin-bottom:var(--seq-space-8)}.fyvr113a{margin-bottom:var(--seq-space-9)}.fyvr113e{margin-bottom:var(--seq-space-10)}.fyvr113i{margin-bottom:var(--seq-space-12)}.fyvr113m{margin-bottom:var(--seq-space-14)}.fyvr113q{margin-bottom:var(--seq-space-16)}.fyvr113u{margin-bottom:var(--seq-space-0_25)}.fyvr113y{margin-bottom:var(--seq-space-0_5)}.fyvr1142{margin-bottom:var(--seq-space-1_5)}.fyvr1146{margin-bottom:auto}.fyvr114a{margin-left:var(--seq-space-0)}.fyvr114e{margin-left:var(--seq-space-1)}.fyvr114i{margin-left:var(--seq-space-2)}.fyvr114m{margin-left:var(--seq-space-3)}.fyvr114q{margin-left:var(--seq-space-4)}.fyvr114u{margin-left:var(--seq-space-5)}.fyvr114y{margin-left:var(--seq-space-6)}.fyvr1152{margin-left:var(--seq-space-7)}.fyvr1156{margin-left:var(--seq-space-8)}.fyvr115a{margin-left:var(--seq-space-9)}.fyvr115e{margin-left:var(--seq-space-10)}.fyvr115i{margin-left:var(--seq-space-12)}.fyvr115m{margin-left:var(--seq-space-14)}.fyvr115q{margin-left:var(--seq-space-16)}.fyvr115u{margin-left:var(--seq-space-0_25)}.fyvr115y{margin-left:var(--seq-space-0_5)}.fyvr1162{margin-left:var(--seq-space-1_5)}.fyvr1166{margin-left:auto}.fyvr116a{margin-right:var(--seq-space-0)}.fyvr116e{margin-right:var(--seq-space-1)}.fyvr116i{margin-right:var(--seq-space-2)}.fyvr116m{margin-right:var(--seq-space-3)}.fyvr116q{margin-right:var(--seq-space-4)}.fyvr116u{margin-right:var(--seq-space-5)}.fyvr116y{margin-right:var(--seq-space-6)}.fyvr1172{margin-right:var(--seq-space-7)}.fyvr1176{margin-right:var(--seq-space-8)}.fyvr117a{margin-right:var(--seq-space-9)}.fyvr117e{margin-right:var(--seq-space-10)}.fyvr117i{margin-right:var(--seq-space-12)}.fyvr117m{margin-right:var(--seq-space-14)}.fyvr117q{margin-right:var(--seq-space-16)}.fyvr117u{margin-right:var(--seq-space-0_25)}.fyvr117y{margin-right:var(--seq-space-0_5)}.fyvr1182{margin-right:var(--seq-space-1_5)}.fyvr1186{margin-right:auto}.fyvr118a{gap:var(--seq-space-0)}.fyvr118e{gap:var(--seq-space-1)}.fyvr118i{gap:var(--seq-space-2)}.fyvr118m{gap:var(--seq-space-3)}.fyvr118q{gap:var(--seq-space-4)}.fyvr118u{gap:var(--seq-space-5)}.fyvr118y{gap:var(--seq-space-6)}.fyvr1192{gap:var(--seq-space-7)}.fyvr1196{gap:var(--seq-space-8)}.fyvr119a{gap:var(--seq-space-9)}.fyvr119e{gap:var(--seq-space-10)}.fyvr119i{gap:var(--seq-space-12)}.fyvr119m{gap:var(--seq-space-14)}.fyvr119q{gap:var(--seq-space-16)}.fyvr119u{gap:var(--seq-space-0_25)}.fyvr119y{gap:var(--seq-space-0_5)}.fyvr11a2{gap:var(--seq-space-1_5)}.fyvr11a6{border-bottom-width:var(--seq-border-widths-none)}.fyvr11aa{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ae{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ai{border-left-width:var(--seq-border-widths-none)}.fyvr11am{border-left-width:var(--seq-border-widths-thin)}.fyvr11aq{border-left-width:var(--seq-border-widths-thick)}.fyvr11au{border-right-width:var(--seq-border-widths-none)}.fyvr11ay{border-right-width:var(--seq-border-widths-thin)}.fyvr11b2{border-right-width:var(--seq-border-widths-thick)}.fyvr11b6{border-top-width:var(--seq-border-widths-none)}.fyvr11ba{border-top-width:var(--seq-border-widths-thin)}.fyvr11be{border-top-width:var(--seq-border-widths-thick)}.fyvr11bi{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bm{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bq{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bu{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11by{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c2{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c6{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11ca{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11ce{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ci{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cm{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cq{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cu{border-top-left-radius:var(--seq-radii-none)}.fyvr11cy{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d2{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d6{border-top-left-radius:var(--seq-radii-md)}.fyvr11da{border-top-left-radius:var(--seq-radii-lg)}.fyvr11de{border-top-left-radius:var(--seq-radii-circle)}.fyvr11di{border-top-right-radius:var(--seq-radii-none)}.fyvr11dm{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dq{border-top-right-radius:var(--seq-radii-sm)}.fyvr11du{border-top-right-radius:var(--seq-radii-md)}.fyvr11dy{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e2{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e6{font-size:var(--seq-font-sizes-inherit)}.fyvr11ea{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ee{font-size:var(--seq-font-sizes-small)}.fyvr11ei{font-size:var(--seq-font-sizes-normal)}.fyvr11em{font-size:var(--seq-font-sizes-medium)}.fyvr11eq{font-size:var(--seq-font-sizes-large)}.fyvr11eu{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ey{font-weight:var(--seq-font-weights-inherit)}.fyvr11f2{font-weight:var(--seq-font-weights-normal)}.fyvr11f6{font-weight:var(--seq-font-weights-medium)}.fyvr11fa{font-weight:var(--seq-font-weights-semibold)}.fyvr11fe{font-weight:var(--seq-font-weights-bold)}.fyvr11fi{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fm{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fq{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fu{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fy{line-height:var(--seq-line-heights-4)}.fyvr11g2{line-height:var(--seq-line-heights-5)}.fyvr11g6{line-height:var(--seq-line-heights-6)}.fyvr11ga{line-height:var(--seq-line-heights-7)}.fyvr11ge{line-height:var(--seq-line-heights-9)}.fyvr11gi{line-height:var(--seq-line-heights-inherit)}.fyvr11gm{text-align:center}.fyvr11gq{text-align:left}.fyvr11gu{text-align:right}.fyvr11gy{display:block}.fyvr11h2{display:flex}.fyvr11h6{display:grid}.fyvr11ha{display:inline-block}.fyvr11he{display:inline-flex}.fyvr11hi{display:none}.fyvr11hm{display:contents}.fyvr11hq{position:absolute}.fyvr11hu{position:fixed}.fyvr11hy{position:relative}.fyvr11i2{position:sticky}.fyvr11i6{flex-direction:column}.fyvr11ia{flex-direction:column-reverse}.fyvr11ie{flex-direction:row}.fyvr11ii{flex-direction:row-reverse}.fyvr11im{flex-shrink:0}.fyvr11iq{flex-shrink:1}.fyvr11iu{flex-grow:0}.fyvr11iy{flex-grow:1}.fyvr11j2{flex-wrap:nowrap}.fyvr11j6{flex-wrap:wrap}.fyvr11ja{flex-wrap:wrap-reverse}.fyvr11je{justify-content:flex-start}.fyvr11ji{justify-content:center}.fyvr11jm{justify-content:flex-end}.fyvr11jq{justify-content:stretch}.fyvr11ju{justify-content:space-around}.fyvr11jy{justify-content:space-between}.fyvr11k2{justify-content:space-evenly}.fyvr11k6{justify-self:flex-start}.fyvr11ka{justify-self:center}.fyvr11ke{justify-self:flex-end}.fyvr11ki{justify-self:stretch}.fyvr11km{align-items:flex-start}.fyvr11kq{align-items:center}.fyvr11ku{align-items:flex-end}.fyvr11ky{align-items:stretch}.fyvr11l2{align-items:baseline}.fyvr11l6{align-self:flex-start}.fyvr11la{align-self:center}.fyvr11le{align-self:flex-end}.fyvr11li{align-self:stretch}.fyvr11lm{align-self:baseline}.fyvr11lq{overflow-x:auto}.fyvr11lu{overflow-x:hidden}.fyvr11ly{overflow-x:scroll}.fyvr11m2{overflow-x:visible}.fyvr11m6{overflow-y:auto}.fyvr11ma{overflow-y:hidden}.fyvr11me{overflow-y:scroll}.fyvr11mi{overflow-y:visible}.fyvr11mm{visibility:hidden}.fyvr11mq{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-0_25)}.fyvr11r{width:var(--seq-space-0_5)}.fyvr11v{width:var(--seq-space-1_5)}.fyvr11z{width:0}.fyvr123{width:1px}.fyvr127{width:auto}.fyvr12b{width:100%}.fyvr12f{width:50%}.fyvr12j{width:33.33333%}.fyvr12n{width:66.66667%}.fyvr12r{width:25%}.fyvr12v{width:75%}.fyvr12z{width:-moz-fit-content;width:fit-content}.fyvr133{width:-moz-max-content;width:max-content}.fyvr137{width:-moz-min-content;width:min-content}.fyvr13b{width:100vw}.fyvr13f{width:100vh}.fyvr13j{height:var(--seq-space-0)}.fyvr13n{height:var(--seq-space-1)}.fyvr13r{height:var(--seq-space-2)}.fyvr13v{height:var(--seq-space-3)}.fyvr13z{height:var(--seq-space-4)}.fyvr143{height:var(--seq-space-5)}.fyvr147{height:var(--seq-space-6)}.fyvr14b{height:var(--seq-space-7)}.fyvr14f{height:var(--seq-space-8)}.fyvr14j{height:var(--seq-space-9)}.fyvr14n{height:var(--seq-space-10)}.fyvr14r{height:var(--seq-space-12)}.fyvr14v{height:var(--seq-space-14)}.fyvr14z{height:var(--seq-space-16)}.fyvr153{height:var(--seq-space-0_25)}.fyvr157{height:var(--seq-space-0_5)}.fyvr15b{height:var(--seq-space-1_5)}.fyvr15f{height:0}.fyvr15j{height:1px}.fyvr15n{height:auto}.fyvr15r{height:100%}.fyvr15v{height:50%}.fyvr15z{height:33.33333%}.fyvr163{height:66.66667%}.fyvr167{height:25%}.fyvr16b{height:75%}.fyvr16f{height:-moz-fit-content;height:fit-content}.fyvr16j{height:-moz-max-content;height:max-content}.fyvr16n{height:-moz-min-content;height:min-content}.fyvr16r{height:100vw}.fyvr16v{height:100vh}.fyvr16z{max-width:var(--seq-space-0)}.fyvr173{max-width:var(--seq-space-1)}.fyvr177{max-width:var(--seq-space-2)}.fyvr17b{max-width:var(--seq-space-3)}.fyvr17f{max-width:var(--seq-space-4)}.fyvr17j{max-width:var(--seq-space-5)}.fyvr17n{max-width:var(--seq-space-6)}.fyvr17r{max-width:var(--seq-space-7)}.fyvr17v{max-width:var(--seq-space-8)}.fyvr17z{max-width:var(--seq-space-9)}.fyvr183{max-width:var(--seq-space-10)}.fyvr187{max-width:var(--seq-space-12)}.fyvr18b{max-width:var(--seq-space-14)}.fyvr18f{max-width:var(--seq-space-16)}.fyvr18j{max-width:var(--seq-space-0_25)}.fyvr18n{max-width:var(--seq-space-0_5)}.fyvr18r{max-width:var(--seq-space-1_5)}.fyvr18v{max-width:0}.fyvr18z{max-width:1px}.fyvr193{max-width:auto}.fyvr197{max-width:100%}.fyvr19b{max-width:50%}.fyvr19f{max-width:33.33333%}.fyvr19j{max-width:66.66667%}.fyvr19n{max-width:25%}.fyvr19r{max-width:75%}.fyvr19v{max-width:-moz-fit-content;max-width:fit-content}.fyvr19z{max-width:-moz-max-content;max-width:max-content}.fyvr1a3{max-width:-moz-min-content;max-width:min-content}.fyvr1a7{max-width:100vw}.fyvr1ab{max-width:100vh}.fyvr1af{max-height:var(--seq-space-0)}.fyvr1aj{max-height:var(--seq-space-1)}.fyvr1an{max-height:var(--seq-space-2)}.fyvr1ar{max-height:var(--seq-space-3)}.fyvr1av{max-height:var(--seq-space-4)}.fyvr1az{max-height:var(--seq-space-5)}.fyvr1b3{max-height:var(--seq-space-6)}.fyvr1b7{max-height:var(--seq-space-7)}.fyvr1bb{max-height:var(--seq-space-8)}.fyvr1bf{max-height:var(--seq-space-9)}.fyvr1bj{max-height:var(--seq-space-10)}.fyvr1bn{max-height:var(--seq-space-12)}.fyvr1br{max-height:var(--seq-space-14)}.fyvr1bv{max-height:var(--seq-space-16)}.fyvr1bz{max-height:var(--seq-space-0_25)}.fyvr1c3{max-height:var(--seq-space-0_5)}.fyvr1c7{max-height:var(--seq-space-1_5)}.fyvr1cb{max-height:0}.fyvr1cf{max-height:1px}.fyvr1cj{max-height:auto}.fyvr1cn{max-height:100%}.fyvr1cr{max-height:50%}.fyvr1cv{max-height:33.33333%}.fyvr1cz{max-height:66.66667%}.fyvr1d3{max-height:25%}.fyvr1d7{max-height:75%}.fyvr1db{max-height:-moz-fit-content;max-height:fit-content}.fyvr1df{max-height:-moz-max-content;max-height:max-content}.fyvr1dj{max-height:-moz-min-content;max-height:min-content}.fyvr1dn{max-height:100vw}.fyvr1dr{max-height:100vh}.fyvr1dv{min-width:var(--seq-space-0)}.fyvr1dz{min-width:var(--seq-space-1)}.fyvr1e3{min-width:var(--seq-space-2)}.fyvr1e7{min-width:var(--seq-space-3)}.fyvr1eb{min-width:var(--seq-space-4)}.fyvr1ef{min-width:var(--seq-space-5)}.fyvr1ej{min-width:var(--seq-space-6)}.fyvr1en{min-width:var(--seq-space-7)}.fyvr1er{min-width:var(--seq-space-8)}.fyvr1ev{min-width:var(--seq-space-9)}.fyvr1ez{min-width:var(--seq-space-10)}.fyvr1f3{min-width:var(--seq-space-12)}.fyvr1f7{min-width:var(--seq-space-14)}.fyvr1fb{min-width:var(--seq-space-16)}.fyvr1ff{min-width:var(--seq-space-0_25)}.fyvr1fj{min-width:var(--seq-space-0_5)}.fyvr1fn{min-width:var(--seq-space-1_5)}.fyvr1fr{min-width:0}.fyvr1fv{min-width:1px}.fyvr1fz{min-width:auto}.fyvr1g3{min-width:100%}.fyvr1g7{min-width:50%}.fyvr1gb{min-width:33.33333%}.fyvr1gf{min-width:66.66667%}.fyvr1gj{min-width:25%}.fyvr1gn{min-width:75%}.fyvr1gr{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gv{min-width:-moz-max-content;min-width:max-content}.fyvr1gz{min-width:-moz-min-content;min-width:min-content}.fyvr1h3{min-width:100vw}.fyvr1h7{min-width:100vh}.fyvr1hb{min-height:var(--seq-space-0)}.fyvr1hf{min-height:var(--seq-space-1)}.fyvr1hj{min-height:var(--seq-space-2)}.fyvr1hn{min-height:var(--seq-space-3)}.fyvr1hr{min-height:var(--seq-space-4)}.fyvr1hv{min-height:var(--seq-space-5)}.fyvr1hz{min-height:var(--seq-space-6)}.fyvr1i3{min-height:var(--seq-space-7)}.fyvr1i7{min-height:var(--seq-space-8)}.fyvr1ib{min-height:var(--seq-space-9)}.fyvr1if{min-height:var(--seq-space-10)}.fyvr1ij{min-height:var(--seq-space-12)}.fyvr1in{min-height:var(--seq-space-14)}.fyvr1ir{min-height:var(--seq-space-16)}.fyvr1iv{min-height:var(--seq-space-0_25)}.fyvr1iz{min-height:var(--seq-space-0_5)}.fyvr1j3{min-height:var(--seq-space-1_5)}.fyvr1j7{min-height:0}.fyvr1jb{min-height:1px}.fyvr1jf{min-height:auto}.fyvr1jj{min-height:100%}.fyvr1jn{min-height:50%}.fyvr1jr{min-height:33.33333%}.fyvr1jv{min-height:66.66667%}.fyvr1jz{min-height:25%}.fyvr1k3{min-height:75%}.fyvr1k7{min-height:-moz-fit-content;min-height:fit-content}.fyvr1kb{min-height:-moz-max-content;min-height:max-content}.fyvr1kf{min-height:-moz-min-content;min-height:min-content}.fyvr1kj{min-height:100vw}.fyvr1kn{min-height:100vh}.fyvr1kr{top:var(--seq-space-0)}.fyvr1kv{top:var(--seq-space-1)}.fyvr1kz{top:var(--seq-space-2)}.fyvr1l3{top:var(--seq-space-3)}.fyvr1l7{top:var(--seq-space-4)}.fyvr1lb{top:var(--seq-space-5)}.fyvr1lf{top:var(--seq-space-6)}.fyvr1lj{top:var(--seq-space-7)}.fyvr1ln{top:var(--seq-space-8)}.fyvr1lr{top:var(--seq-space-9)}.fyvr1lv{top:var(--seq-space-10)}.fyvr1lz{top:var(--seq-space-12)}.fyvr1m3{top:var(--seq-space-14)}.fyvr1m7{top:var(--seq-space-16)}.fyvr1mb{top:var(--seq-space-0_25)}.fyvr1mf{top:var(--seq-space-0_5)}.fyvr1mj{top:var(--seq-space-1_5)}.fyvr1mn{top:auto}.fyvr1mr{bottom:var(--seq-space-0)}.fyvr1mv{bottom:var(--seq-space-1)}.fyvr1mz{bottom:var(--seq-space-2)}.fyvr1n3{bottom:var(--seq-space-3)}.fyvr1n7{bottom:var(--seq-space-4)}.fyvr1nb{bottom:var(--seq-space-5)}.fyvr1nf{bottom:var(--seq-space-6)}.fyvr1nj{bottom:var(--seq-space-7)}.fyvr1nn{bottom:var(--seq-space-8)}.fyvr1nr{bottom:var(--seq-space-9)}.fyvr1nv{bottom:var(--seq-space-10)}.fyvr1nz{bottom:var(--seq-space-12)}.fyvr1o3{bottom:var(--seq-space-14)}.fyvr1o7{bottom:var(--seq-space-16)}.fyvr1ob{bottom:var(--seq-space-0_25)}.fyvr1of{bottom:var(--seq-space-0_5)}.fyvr1oj{bottom:var(--seq-space-1_5)}.fyvr1on{bottom:auto}.fyvr1or{left:var(--seq-space-0)}.fyvr1ov{left:var(--seq-space-1)}.fyvr1oz{left:var(--seq-space-2)}.fyvr1p3{left:var(--seq-space-3)}.fyvr1p7{left:var(--seq-space-4)}.fyvr1pb{left:var(--seq-space-5)}.fyvr1pf{left:var(--seq-space-6)}.fyvr1pj{left:var(--seq-space-7)}.fyvr1pn{left:var(--seq-space-8)}.fyvr1pr{left:var(--seq-space-9)}.fyvr1pv{left:var(--seq-space-10)}.fyvr1pz{left:var(--seq-space-12)}.fyvr1q3{left:var(--seq-space-14)}.fyvr1q7{left:var(--seq-space-16)}.fyvr1qb{left:var(--seq-space-0_25)}.fyvr1qf{left:var(--seq-space-0_5)}.fyvr1qj{left:var(--seq-space-1_5)}.fyvr1qn{left:auto}.fyvr1qr{right:var(--seq-space-0)}.fyvr1qv{right:var(--seq-space-1)}.fyvr1qz{right:var(--seq-space-2)}.fyvr1r3{right:var(--seq-space-3)}.fyvr1r7{right:var(--seq-space-4)}.fyvr1rb{right:var(--seq-space-5)}.fyvr1rf{right:var(--seq-space-6)}.fyvr1rj{right:var(--seq-space-7)}.fyvr1rn{right:var(--seq-space-8)}.fyvr1rr{right:var(--seq-space-9)}.fyvr1rv{right:var(--seq-space-10)}.fyvr1rz{right:var(--seq-space-12)}.fyvr1s3{right:var(--seq-space-14)}.fyvr1s7{right:var(--seq-space-16)}.fyvr1sb{right:var(--seq-space-0_25)}.fyvr1sf{right:var(--seq-space-0_5)}.fyvr1sj{right:var(--seq-space-1_5)}.fyvr1sn{right:auto}.fyvr1sr{padding-top:var(--seq-space-0)}.fyvr1sv{padding-top:var(--seq-space-1)}.fyvr1sz{padding-top:var(--seq-space-2)}.fyvr1t3{padding-top:var(--seq-space-3)}.fyvr1t7{padding-top:var(--seq-space-4)}.fyvr1tb{padding-top:var(--seq-space-5)}.fyvr1tf{padding-top:var(--seq-space-6)}.fyvr1tj{padding-top:var(--seq-space-7)}.fyvr1tn{padding-top:var(--seq-space-8)}.fyvr1tr{padding-top:var(--seq-space-9)}.fyvr1tv{padding-top:var(--seq-space-10)}.fyvr1tz{padding-top:var(--seq-space-12)}.fyvr1u3{padding-top:var(--seq-space-14)}.fyvr1u7{padding-top:var(--seq-space-16)}.fyvr1ub{padding-top:var(--seq-space-0_25)}.fyvr1uf{padding-top:var(--seq-space-0_5)}.fyvr1uj{padding-top:var(--seq-space-1_5)}.fyvr1un{padding-bottom:var(--seq-space-0)}.fyvr1ur{padding-bottom:var(--seq-space-1)}.fyvr1uv{padding-bottom:var(--seq-space-2)}.fyvr1uz{padding-bottom:var(--seq-space-3)}.fyvr1v3{padding-bottom:var(--seq-space-4)}.fyvr1v7{padding-bottom:var(--seq-space-5)}.fyvr1vb{padding-bottom:var(--seq-space-6)}.fyvr1vf{padding-bottom:var(--seq-space-7)}.fyvr1vj{padding-bottom:var(--seq-space-8)}.fyvr1vn{padding-bottom:var(--seq-space-9)}.fyvr1vr{padding-bottom:var(--seq-space-10)}.fyvr1vv{padding-bottom:var(--seq-space-12)}.fyvr1vz{padding-bottom:var(--seq-space-14)}.fyvr1w3{padding-bottom:var(--seq-space-16)}.fyvr1w7{padding-bottom:var(--seq-space-0_25)}.fyvr1wb{padding-bottom:var(--seq-space-0_5)}.fyvr1wf{padding-bottom:var(--seq-space-1_5)}.fyvr1wj{padding-left:var(--seq-space-0)}.fyvr1wn{padding-left:var(--seq-space-1)}.fyvr1wr{padding-left:var(--seq-space-2)}.fyvr1wv{padding-left:var(--seq-space-3)}.fyvr1wz{padding-left:var(--seq-space-4)}.fyvr1x3{padding-left:var(--seq-space-5)}.fyvr1x7{padding-left:var(--seq-space-6)}.fyvr1xb{padding-left:var(--seq-space-7)}.fyvr1xf{padding-left:var(--seq-space-8)}.fyvr1xj{padding-left:var(--seq-space-9)}.fyvr1xn{padding-left:var(--seq-space-10)}.fyvr1xr{padding-left:var(--seq-space-12)}.fyvr1xv{padding-left:var(--seq-space-14)}.fyvr1xz{padding-left:var(--seq-space-16)}.fyvr1y3{padding-left:var(--seq-space-0_25)}.fyvr1y7{padding-left:var(--seq-space-0_5)}.fyvr1yb{padding-left:var(--seq-space-1_5)}.fyvr1yf{padding-right:var(--seq-space-0)}.fyvr1yj{padding-right:var(--seq-space-1)}.fyvr1yn{padding-right:var(--seq-space-2)}.fyvr1yr{padding-right:var(--seq-space-3)}.fyvr1yv{padding-right:var(--seq-space-4)}.fyvr1yz{padding-right:var(--seq-space-5)}.fyvr1z3{padding-right:var(--seq-space-6)}.fyvr1z7{padding-right:var(--seq-space-7)}.fyvr1zb{padding-right:var(--seq-space-8)}.fyvr1zf{padding-right:var(--seq-space-9)}.fyvr1zj{padding-right:var(--seq-space-10)}.fyvr1zn{padding-right:var(--seq-space-12)}.fyvr1zr{padding-right:var(--seq-space-14)}.fyvr1zv{padding-right:var(--seq-space-16)}.fyvr1zz{padding-right:var(--seq-space-0_25)}.fyvr1103{padding-right:var(--seq-space-0_5)}.fyvr1107{padding-right:var(--seq-space-1_5)}.fyvr110b{margin-top:var(--seq-space-0)}.fyvr110f{margin-top:var(--seq-space-1)}.fyvr110j{margin-top:var(--seq-space-2)}.fyvr110n{margin-top:var(--seq-space-3)}.fyvr110r{margin-top:var(--seq-space-4)}.fyvr110v{margin-top:var(--seq-space-5)}.fyvr110z{margin-top:var(--seq-space-6)}.fyvr1113{margin-top:var(--seq-space-7)}.fyvr1117{margin-top:var(--seq-space-8)}.fyvr111b{margin-top:var(--seq-space-9)}.fyvr111f{margin-top:var(--seq-space-10)}.fyvr111j{margin-top:var(--seq-space-12)}.fyvr111n{margin-top:var(--seq-space-14)}.fyvr111r{margin-top:var(--seq-space-16)}.fyvr111v{margin-top:var(--seq-space-0_25)}.fyvr111z{margin-top:var(--seq-space-0_5)}.fyvr1123{margin-top:var(--seq-space-1_5)}.fyvr1127{margin-top:auto}.fyvr112b{margin-bottom:var(--seq-space-0)}.fyvr112f{margin-bottom:var(--seq-space-1)}.fyvr112j{margin-bottom:var(--seq-space-2)}.fyvr112n{margin-bottom:var(--seq-space-3)}.fyvr112r{margin-bottom:var(--seq-space-4)}.fyvr112v{margin-bottom:var(--seq-space-5)}.fyvr112z{margin-bottom:var(--seq-space-6)}.fyvr1133{margin-bottom:var(--seq-space-7)}.fyvr1137{margin-bottom:var(--seq-space-8)}.fyvr113b{margin-bottom:var(--seq-space-9)}.fyvr113f{margin-bottom:var(--seq-space-10)}.fyvr113j{margin-bottom:var(--seq-space-12)}.fyvr113n{margin-bottom:var(--seq-space-14)}.fyvr113r{margin-bottom:var(--seq-space-16)}.fyvr113v{margin-bottom:var(--seq-space-0_25)}.fyvr113z{margin-bottom:var(--seq-space-0_5)}.fyvr1143{margin-bottom:var(--seq-space-1_5)}.fyvr1147{margin-bottom:auto}.fyvr114b{margin-left:var(--seq-space-0)}.fyvr114f{margin-left:var(--seq-space-1)}.fyvr114j{margin-left:var(--seq-space-2)}.fyvr114n{margin-left:var(--seq-space-3)}.fyvr114r{margin-left:var(--seq-space-4)}.fyvr114v{margin-left:var(--seq-space-5)}.fyvr114z{margin-left:var(--seq-space-6)}.fyvr1153{margin-left:var(--seq-space-7)}.fyvr1157{margin-left:var(--seq-space-8)}.fyvr115b{margin-left:var(--seq-space-9)}.fyvr115f{margin-left:var(--seq-space-10)}.fyvr115j{margin-left:var(--seq-space-12)}.fyvr115n{margin-left:var(--seq-space-14)}.fyvr115r{margin-left:var(--seq-space-16)}.fyvr115v{margin-left:var(--seq-space-0_25)}.fyvr115z{margin-left:var(--seq-space-0_5)}.fyvr1163{margin-left:var(--seq-space-1_5)}.fyvr1167{margin-left:auto}.fyvr116b{margin-right:var(--seq-space-0)}.fyvr116f{margin-right:var(--seq-space-1)}.fyvr116j{margin-right:var(--seq-space-2)}.fyvr116n{margin-right:var(--seq-space-3)}.fyvr116r{margin-right:var(--seq-space-4)}.fyvr116v{margin-right:var(--seq-space-5)}.fyvr116z{margin-right:var(--seq-space-6)}.fyvr1173{margin-right:var(--seq-space-7)}.fyvr1177{margin-right:var(--seq-space-8)}.fyvr117b{margin-right:var(--seq-space-9)}.fyvr117f{margin-right:var(--seq-space-10)}.fyvr117j{margin-right:var(--seq-space-12)}.fyvr117n{margin-right:var(--seq-space-14)}.fyvr117r{margin-right:var(--seq-space-16)}.fyvr117v{margin-right:var(--seq-space-0_25)}.fyvr117z{margin-right:var(--seq-space-0_5)}.fyvr1183{margin-right:var(--seq-space-1_5)}.fyvr1187{margin-right:auto}.fyvr118b{gap:var(--seq-space-0)}.fyvr118f{gap:var(--seq-space-1)}.fyvr118j{gap:var(--seq-space-2)}.fyvr118n{gap:var(--seq-space-3)}.fyvr118r{gap:var(--seq-space-4)}.fyvr118v{gap:var(--seq-space-5)}.fyvr118z{gap:var(--seq-space-6)}.fyvr1193{gap:var(--seq-space-7)}.fyvr1197{gap:var(--seq-space-8)}.fyvr119b{gap:var(--seq-space-9)}.fyvr119f{gap:var(--seq-space-10)}.fyvr119j{gap:var(--seq-space-12)}.fyvr119n{gap:var(--seq-space-14)}.fyvr119r{gap:var(--seq-space-16)}.fyvr119v{gap:var(--seq-space-0_25)}.fyvr119z{gap:var(--seq-space-0_5)}.fyvr11a3{gap:var(--seq-space-1_5)}.fyvr11a7{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ab{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11af{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11aj{border-left-width:var(--seq-border-widths-none)}.fyvr11an{border-left-width:var(--seq-border-widths-thin)}.fyvr11ar{border-left-width:var(--seq-border-widths-thick)}.fyvr11av{border-right-width:var(--seq-border-widths-none)}.fyvr11az{border-right-width:var(--seq-border-widths-thin)}.fyvr11b3{border-right-width:var(--seq-border-widths-thick)}.fyvr11b7{border-top-width:var(--seq-border-widths-none)}.fyvr11bb{border-top-width:var(--seq-border-widths-thin)}.fyvr11bf{border-top-width:var(--seq-border-widths-thick)}.fyvr11bj{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bn{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11br{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bv{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bz{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c3{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c7{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11cb{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cf{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cj{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cn{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cr{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cv{border-top-left-radius:var(--seq-radii-none)}.fyvr11cz{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d3{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d7{border-top-left-radius:var(--seq-radii-md)}.fyvr11db{border-top-left-radius:var(--seq-radii-lg)}.fyvr11df{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dj{border-top-right-radius:var(--seq-radii-none)}.fyvr11dn{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dr{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dv{border-top-right-radius:var(--seq-radii-md)}.fyvr11dz{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e3{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e7{font-size:var(--seq-font-sizes-inherit)}.fyvr11eb{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ef{font-size:var(--seq-font-sizes-small)}.fyvr11ej{font-size:var(--seq-font-sizes-normal)}.fyvr11en{font-size:var(--seq-font-sizes-medium)}.fyvr11er{font-size:var(--seq-font-sizes-large)}.fyvr11ev{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ez{font-weight:var(--seq-font-weights-inherit)}.fyvr11f3{font-weight:var(--seq-font-weights-normal)}.fyvr11f7{font-weight:var(--seq-font-weights-medium)}.fyvr11fb{font-weight:var(--seq-font-weights-semibold)}.fyvr11ff{font-weight:var(--seq-font-weights-bold)}.fyvr11fj{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fn{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fr{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fv{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fz{line-height:var(--seq-line-heights-4)}.fyvr11g3{line-height:var(--seq-line-heights-5)}.fyvr11g7{line-height:var(--seq-line-heights-6)}.fyvr11gb{line-height:var(--seq-line-heights-7)}.fyvr11gf{line-height:var(--seq-line-heights-9)}.fyvr11gj{line-height:var(--seq-line-heights-inherit)}.fyvr11gn{text-align:center}.fyvr11gr{text-align:left}.fyvr11gv{text-align:right}.fyvr11gz{display:block}.fyvr11h3{display:flex}.fyvr11h7{display:grid}.fyvr11hb{display:inline-block}.fyvr11hf{display:inline-flex}.fyvr11hj{display:none}.fyvr11hn{display:contents}.fyvr11hr{position:absolute}.fyvr11hv{position:fixed}.fyvr11hz{position:relative}.fyvr11i3{position:sticky}.fyvr11i7{flex-direction:column}.fyvr11ib{flex-direction:column-reverse}.fyvr11if{flex-direction:row}.fyvr11ij{flex-direction:row-reverse}.fyvr11in{flex-shrink:0}.fyvr11ir{flex-shrink:1}.fyvr11iv{flex-grow:0}.fyvr11iz{flex-grow:1}.fyvr11j3{flex-wrap:nowrap}.fyvr11j7{flex-wrap:wrap}.fyvr11jb{flex-wrap:wrap-reverse}.fyvr11jf{justify-content:flex-start}.fyvr11jj{justify-content:center}.fyvr11jn{justify-content:flex-end}.fyvr11jr{justify-content:stretch}.fyvr11jv{justify-content:space-around}.fyvr11jz{justify-content:space-between}.fyvr11k3{justify-content:space-evenly}.fyvr11k7{justify-self:flex-start}.fyvr11kb{justify-self:center}.fyvr11kf{justify-self:flex-end}.fyvr11kj{justify-self:stretch}.fyvr11kn{align-items:flex-start}.fyvr11kr{align-items:center}.fyvr11kv{align-items:flex-end}.fyvr11kz{align-items:stretch}.fyvr11l3{align-items:baseline}.fyvr11l7{align-self:flex-start}.fyvr11lb{align-self:center}.fyvr11lf{align-self:flex-end}.fyvr11lj{align-self:stretch}.fyvr11ln{align-self:baseline}.fyvr11lr{overflow-x:auto}.fyvr11lv{overflow-x:hidden}.fyvr11lz{overflow-x:scroll}.fyvr11m3{overflow-x:visible}.fyvr11m7{overflow-y:auto}.fyvr11mb{overflow-y:hidden}.fyvr11mf{overflow-y:scroll}.fyvr11mj{overflow-y:visible}.fyvr11mn{visibility:hidden}.fyvr11mr{visibility:visible}}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8ng:focus{outline:none}._140wn8ng:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._140wn8ni{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8no{outline-offset:1px}._140wn8nt{height:28px}._140wn8nu{height:36px}._140wn8nv{height:44px}._140wn8nw{height:52px}._140wn8nx{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n10{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n11{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n12{width:28px}._140wn8n13{width:36px}._140wn8n14{width:44px}._140wn8n15{width:52px}._140wn8n16,._140wn8n17{padding-left:var(--seq-space-2)}._140wn8n18{padding-left:var(--seq-space-4)}._140wn8n19,._140wn8n1a{padding-right:var(--seq-space-2)}._140wn8n1b{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f1:focus{outline:none}._1c9x66f1:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}@keyframes dtv8gt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.dtv8gt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:dtv8gt0 1s ease infinite}.dtv8gt2{width:96px;height:var(--seq-line-heights-4)}.dtv8gt3{width:100px;height:var(--seq-line-heights-5)}.dtv8gt4{width:124px;height:var(--seq-line-heights-6)}.dtv8gt5{width:124px;height:var(--seq-line-heights-7)}.dtv8gt6{width:148px;height:var(--seq-line-heights-9)}.io59uy3:focus{outline:none}.io59uy3:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e1:focus{outline:none}._1lp2u8e1:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}.bnrreb6{width:12px;height:12px;font-size:4px}.bnrreb7{width:20px;height:20px;font-size:8px}.bnrreb8{width:32px;height:32px;font-size:9px}.bnrreb9{width:40px;height:40px;font-size:11px}.bnrreba{width:64px;height:64px;font-size:16px}.bnrrebf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb5.bnrreb0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0.bnrreb6 .bnrrebf{max-width:12px;max-height:12px}.bnrreb5.bnrreb0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0.bnrreb7 .bnrrebf{max-width:20px;max-height:20px}.bnrreb5.bnrreb0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0.bnrreb8 .bnrrebf{max-width:32px;max-height:32px}.bnrreb5.bnrreb0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0.bnrreb9 .bnrrebf{max-width:40px;max-height:40px}.bnrreb5.bnrreb0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0.bnrreba .bnrrebf{max-width:64px;max-height:64px}.bnrrebh{font-size:inherit}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} +body{background:var(--seq-colors-background-primary)}*,*:before,*:after{box-sizing:border-box}:root{--seq-blur-blur: blur(12.5px);--seq-blur-none: none;--seq-border-widths-none: 0;--seq-border-widths-thin: .075rem;--seq-border-widths-thick: .125rem;--seq-fonts-inherit: inherit;--seq-fonts-body: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, "Helvetica Neue", Arial;--seq-fonts-mono: "iAWriter Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--seq-font-sizes-inherit: inherit;--seq-font-sizes-xsmall: .625rem;--seq-font-sizes-small: .75rem;--seq-font-sizes-normal: .875rem;--seq-font-sizes-medium: 1rem;--seq-font-sizes-large: 1.25rem;--seq-font-sizes-xlarge: 1.875rem;--seq-font-weights-inherit: inherit;--seq-font-weights-normal: 400;--seq-font-weights-medium: 500;--seq-font-weights-semibold: 600;--seq-font-weights-bold: 700;--seq-letter-spacings-inherit: inherit;--seq-letter-spacings-none: 0;--seq-letter-spacings-normal: .01em;--seq-letter-spacings-wide: .03em;--seq-line-heights-4: 1rem;--seq-line-heights-5: 1.25rem;--seq-line-heights-6: 1.5rem;--seq-line-heights-7: 1.75rem;--seq-line-heights-9: 2.25rem;--seq-line-heights-inherit: inherit;--seq-opacity-0: 0;--seq-opacity-50: .5;--seq-opacity-80: .8;--seq-opacity-100: 1;--seq-radii-none: 0;--seq-radii-xs: .25rem;--seq-radii-sm: .5rem;--seq-radii-md: .75rem;--seq-radii-lg: 1rem;--seq-radii-circle: 9999px;--seq-space-0: 0;--seq-space-1: .25rem;--seq-space-2: .5rem;--seq-space-3: .75rem;--seq-space-4: 1rem;--seq-space-5: 1.25rem;--seq-space-6: 1.5rem;--seq-space-7: 1.75rem;--seq-space-8: 2rem;--seq-space-9: 2.25rem;--seq-space-10: 2.5rem;--seq-space-12: 3rem;--seq-space-14: 3.5rem;--seq-space-16: 4rem;--seq-space-0_25: .0625rem;--seq-space-0_5: .125rem;--seq-space-1_5: .375rem}:root{--seq-colors-black: #000000;--seq-colors-white: #ffffff;--seq-colors-inherit: inherit;--seq-colors-transparent: transparent;--seq-colors-positive: #1FC266;--seq-colors-negative: #C2501F;--seq-colors-info: #0076CC;--seq-colors-warning: #F4B03E;--seq-colors-gradient-backdrop: linear-gradient( 243.18deg, rgba(86, 52, 189, .85) 0%, rgba(49, 41, 223, .85) 63.54%, rgba(7, 98, 149, .85) 100% );--seq-colors-gradient-primary: linear-gradient(89.69deg, #4411E1 .27%, #7537F9 99.73%);--seq-colors-gradient-secondary: linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%);--seq-colors-arbitrum-dark: #212D44;--seq-colors-arbitrum-light: #93D4FF;--seq-colors-avalance-dark: #810C0C;--seq-colors-avalance-light: #FF8080;--seq-colors-bsc-dark: #584508;--seq-colors-bsc-light: #FCCF43;--seq-colors-ethereum-dark: #132362;--seq-colors-ethereum-light: #AABBFF;--seq-colors-gnosis-dark: #084246;--seq-colors-gnosis-light: #8CF6FD;--seq-colors-polygon-dark: #350881;--seq-colors-polygon-light: #C7A6FF;--seq-colors-text100: rgba(255, 255, 255, 1);--seq-colors-text80: rgba(255, 255, 255, .8);--seq-colors-text50: rgba(255, 255, 255, .5);--seq-colors-text-inverse100: rgba(0, 0, 0, 1);--seq-colors-background-primary: rgba(0, 0, 0, 1);--seq-colors-background-secondary: rgba(255, 255, 255, .1);--seq-colors-background-contrast: rgba(0, 0, 0, .5);--seq-colors-background-muted: rgba(255, 255, 255, .05);--seq-colors-background-control: rgba(255, 255, 255, .25);--seq-colors-background-inverse: rgba(255, 255, 255, 1);--seq-colors-background-backdrop: rgba(34, 34, 34, .9);--seq-colors-background-overlay: rgba(0, 0, 0, .7);--seq-colors-background-raised: rgba(54, 54, 54, .7);--seq-colors-button-glass: rgba(255, 255, 255, .15);--seq-colors-button-emphasis: rgba(0, 0, 0, .5);--seq-colors-button-inverse: rgba(255, 255, 255, .8);--seq-colors-border-normal: rgba(255, 255, 255, .25);--seq-colors-border-focus: rgba(255, 255, 255, .5)}.fyvr10{width:var(--seq-space-0)}.fyvr14{width:var(--seq-space-1)}.fyvr18{width:var(--seq-space-2)}.fyvr1c{width:var(--seq-space-3)}.fyvr1g{width:var(--seq-space-4)}.fyvr1k{width:var(--seq-space-5)}.fyvr1o{width:var(--seq-space-6)}.fyvr1s{width:var(--seq-space-7)}.fyvr1w{width:var(--seq-space-8)}.fyvr110{width:var(--seq-space-9)}.fyvr114{width:var(--seq-space-10)}.fyvr118{width:var(--seq-space-12)}.fyvr11c{width:var(--seq-space-14)}.fyvr11g{width:var(--seq-space-16)}.fyvr11k{width:var(--seq-space-0_25)}.fyvr11o{width:var(--seq-space-0_5)}.fyvr11s{width:var(--seq-space-1_5)}.fyvr11w{width:0}.fyvr120{width:1px}.fyvr124{width:auto}.fyvr128{width:100%}.fyvr12c{width:50%}.fyvr12g{width:33.33333%}.fyvr12k{width:66.66667%}.fyvr12o{width:25%}.fyvr12s{width:75%}.fyvr12w{width:-moz-fit-content;width:fit-content}.fyvr130{width:-moz-max-content;width:max-content}.fyvr134{width:-moz-min-content;width:min-content}.fyvr138{width:100vw}.fyvr13c{width:100vh}.fyvr13g{height:var(--seq-space-0)}.fyvr13k{height:var(--seq-space-1)}.fyvr13o{height:var(--seq-space-2)}.fyvr13s{height:var(--seq-space-3)}.fyvr13w{height:var(--seq-space-4)}.fyvr140{height:var(--seq-space-5)}.fyvr144{height:var(--seq-space-6)}.fyvr148{height:var(--seq-space-7)}.fyvr14c{height:var(--seq-space-8)}.fyvr14g{height:var(--seq-space-9)}.fyvr14k{height:var(--seq-space-10)}.fyvr14o{height:var(--seq-space-12)}.fyvr14s{height:var(--seq-space-14)}.fyvr14w{height:var(--seq-space-16)}.fyvr150{height:var(--seq-space-0_25)}.fyvr154{height:var(--seq-space-0_5)}.fyvr158{height:var(--seq-space-1_5)}.fyvr15c{height:0}.fyvr15g{height:1px}.fyvr15k{height:auto}.fyvr15o{height:100%}.fyvr15s{height:50%}.fyvr15w{height:33.33333%}.fyvr160{height:66.66667%}.fyvr164{height:25%}.fyvr168{height:75%}.fyvr16c{height:-moz-fit-content;height:fit-content}.fyvr16g{height:-moz-max-content;height:max-content}.fyvr16k{height:-moz-min-content;height:min-content}.fyvr16o{height:100vw}.fyvr16s{height:100vh}.fyvr16w{max-width:var(--seq-space-0)}.fyvr170{max-width:var(--seq-space-1)}.fyvr174{max-width:var(--seq-space-2)}.fyvr178{max-width:var(--seq-space-3)}.fyvr17c{max-width:var(--seq-space-4)}.fyvr17g{max-width:var(--seq-space-5)}.fyvr17k{max-width:var(--seq-space-6)}.fyvr17o{max-width:var(--seq-space-7)}.fyvr17s{max-width:var(--seq-space-8)}.fyvr17w{max-width:var(--seq-space-9)}.fyvr180{max-width:var(--seq-space-10)}.fyvr184{max-width:var(--seq-space-12)}.fyvr188{max-width:var(--seq-space-14)}.fyvr18c{max-width:var(--seq-space-16)}.fyvr18g{max-width:var(--seq-space-0_25)}.fyvr18k{max-width:var(--seq-space-0_5)}.fyvr18o{max-width:var(--seq-space-1_5)}.fyvr18s{max-width:0}.fyvr18w{max-width:1px}.fyvr190{max-width:auto}.fyvr194{max-width:100%}.fyvr198{max-width:50%}.fyvr19c{max-width:33.33333%}.fyvr19g{max-width:66.66667%}.fyvr19k{max-width:25%}.fyvr19o{max-width:75%}.fyvr19s{max-width:-moz-fit-content;max-width:fit-content}.fyvr19w{max-width:-moz-max-content;max-width:max-content}.fyvr1a0{max-width:-moz-min-content;max-width:min-content}.fyvr1a4{max-width:100vw}.fyvr1a8{max-width:100vh}.fyvr1ac{max-height:var(--seq-space-0)}.fyvr1ag{max-height:var(--seq-space-1)}.fyvr1ak{max-height:var(--seq-space-2)}.fyvr1ao{max-height:var(--seq-space-3)}.fyvr1as{max-height:var(--seq-space-4)}.fyvr1aw{max-height:var(--seq-space-5)}.fyvr1b0{max-height:var(--seq-space-6)}.fyvr1b4{max-height:var(--seq-space-7)}.fyvr1b8{max-height:var(--seq-space-8)}.fyvr1bc{max-height:var(--seq-space-9)}.fyvr1bg{max-height:var(--seq-space-10)}.fyvr1bk{max-height:var(--seq-space-12)}.fyvr1bo{max-height:var(--seq-space-14)}.fyvr1bs{max-height:var(--seq-space-16)}.fyvr1bw{max-height:var(--seq-space-0_25)}.fyvr1c0{max-height:var(--seq-space-0_5)}.fyvr1c4{max-height:var(--seq-space-1_5)}.fyvr1c8{max-height:0}.fyvr1cc{max-height:1px}.fyvr1cg{max-height:auto}.fyvr1ck{max-height:100%}.fyvr1co{max-height:50%}.fyvr1cs{max-height:33.33333%}.fyvr1cw{max-height:66.66667%}.fyvr1d0{max-height:25%}.fyvr1d4{max-height:75%}.fyvr1d8{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dc{max-height:-moz-max-content;max-height:max-content}.fyvr1dg{max-height:-moz-min-content;max-height:min-content}.fyvr1dk{max-height:100vw}.fyvr1do{max-height:100vh}.fyvr1ds{min-width:var(--seq-space-0)}.fyvr1dw{min-width:var(--seq-space-1)}.fyvr1e0{min-width:var(--seq-space-2)}.fyvr1e4{min-width:var(--seq-space-3)}.fyvr1e8{min-width:var(--seq-space-4)}.fyvr1ec{min-width:var(--seq-space-5)}.fyvr1eg{min-width:var(--seq-space-6)}.fyvr1ek{min-width:var(--seq-space-7)}.fyvr1eo{min-width:var(--seq-space-8)}.fyvr1es{min-width:var(--seq-space-9)}.fyvr1ew{min-width:var(--seq-space-10)}.fyvr1f0{min-width:var(--seq-space-12)}.fyvr1f4{min-width:var(--seq-space-14)}.fyvr1f8{min-width:var(--seq-space-16)}.fyvr1fc{min-width:var(--seq-space-0_25)}.fyvr1fg{min-width:var(--seq-space-0_5)}.fyvr1fk{min-width:var(--seq-space-1_5)}.fyvr1fo{min-width:0}.fyvr1fs{min-width:1px}.fyvr1fw{min-width:auto}.fyvr1g0{min-width:100%}.fyvr1g4{min-width:50%}.fyvr1g8{min-width:33.33333%}.fyvr1gc{min-width:66.66667%}.fyvr1gg{min-width:25%}.fyvr1gk{min-width:75%}.fyvr1go{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gs{min-width:-moz-max-content;min-width:max-content}.fyvr1gw{min-width:-moz-min-content;min-width:min-content}.fyvr1h0{min-width:100vw}.fyvr1h4{min-width:100vh}.fyvr1h8{min-height:var(--seq-space-0)}.fyvr1hc{min-height:var(--seq-space-1)}.fyvr1hg{min-height:var(--seq-space-2)}.fyvr1hk{min-height:var(--seq-space-3)}.fyvr1ho{min-height:var(--seq-space-4)}.fyvr1hs{min-height:var(--seq-space-5)}.fyvr1hw{min-height:var(--seq-space-6)}.fyvr1i0{min-height:var(--seq-space-7)}.fyvr1i4{min-height:var(--seq-space-8)}.fyvr1i8{min-height:var(--seq-space-9)}.fyvr1ic{min-height:var(--seq-space-10)}.fyvr1ig{min-height:var(--seq-space-12)}.fyvr1ik{min-height:var(--seq-space-14)}.fyvr1io{min-height:var(--seq-space-16)}.fyvr1is{min-height:var(--seq-space-0_25)}.fyvr1iw{min-height:var(--seq-space-0_5)}.fyvr1j0{min-height:var(--seq-space-1_5)}.fyvr1j4{min-height:0}.fyvr1j8{min-height:1px}.fyvr1jc{min-height:auto}.fyvr1jg{min-height:100%}.fyvr1jk{min-height:50%}.fyvr1jo{min-height:33.33333%}.fyvr1js{min-height:66.66667%}.fyvr1jw{min-height:25%}.fyvr1k0{min-height:75%}.fyvr1k4{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k8{min-height:-moz-max-content;min-height:max-content}.fyvr1kc{min-height:-moz-min-content;min-height:min-content}.fyvr1kg{min-height:100vw}.fyvr1kk{min-height:100vh}.fyvr1ko{top:var(--seq-space-0)}.fyvr1ks{top:var(--seq-space-1)}.fyvr1kw{top:var(--seq-space-2)}.fyvr1l0{top:var(--seq-space-3)}.fyvr1l4{top:var(--seq-space-4)}.fyvr1l8{top:var(--seq-space-5)}.fyvr1lc{top:var(--seq-space-6)}.fyvr1lg{top:var(--seq-space-7)}.fyvr1lk{top:var(--seq-space-8)}.fyvr1lo{top:var(--seq-space-9)}.fyvr1ls{top:var(--seq-space-10)}.fyvr1lw{top:var(--seq-space-12)}.fyvr1m0{top:var(--seq-space-14)}.fyvr1m4{top:var(--seq-space-16)}.fyvr1m8{top:var(--seq-space-0_25)}.fyvr1mc{top:var(--seq-space-0_5)}.fyvr1mg{top:var(--seq-space-1_5)}.fyvr1mk{top:auto}.fyvr1mo{bottom:var(--seq-space-0)}.fyvr1ms{bottom:var(--seq-space-1)}.fyvr1mw{bottom:var(--seq-space-2)}.fyvr1n0{bottom:var(--seq-space-3)}.fyvr1n4{bottom:var(--seq-space-4)}.fyvr1n8{bottom:var(--seq-space-5)}.fyvr1nc{bottom:var(--seq-space-6)}.fyvr1ng{bottom:var(--seq-space-7)}.fyvr1nk{bottom:var(--seq-space-8)}.fyvr1no{bottom:var(--seq-space-9)}.fyvr1ns{bottom:var(--seq-space-10)}.fyvr1nw{bottom:var(--seq-space-12)}.fyvr1o0{bottom:var(--seq-space-14)}.fyvr1o4{bottom:var(--seq-space-16)}.fyvr1o8{bottom:var(--seq-space-0_25)}.fyvr1oc{bottom:var(--seq-space-0_5)}.fyvr1og{bottom:var(--seq-space-1_5)}.fyvr1ok{bottom:auto}.fyvr1oo{left:var(--seq-space-0)}.fyvr1os{left:var(--seq-space-1)}.fyvr1ow{left:var(--seq-space-2)}.fyvr1p0{left:var(--seq-space-3)}.fyvr1p4{left:var(--seq-space-4)}.fyvr1p8{left:var(--seq-space-5)}.fyvr1pc{left:var(--seq-space-6)}.fyvr1pg{left:var(--seq-space-7)}.fyvr1pk{left:var(--seq-space-8)}.fyvr1po{left:var(--seq-space-9)}.fyvr1ps{left:var(--seq-space-10)}.fyvr1pw{left:var(--seq-space-12)}.fyvr1q0{left:var(--seq-space-14)}.fyvr1q4{left:var(--seq-space-16)}.fyvr1q8{left:var(--seq-space-0_25)}.fyvr1qc{left:var(--seq-space-0_5)}.fyvr1qg{left:var(--seq-space-1_5)}.fyvr1qk{left:auto}.fyvr1qo{right:var(--seq-space-0)}.fyvr1qs{right:var(--seq-space-1)}.fyvr1qw{right:var(--seq-space-2)}.fyvr1r0{right:var(--seq-space-3)}.fyvr1r4{right:var(--seq-space-4)}.fyvr1r8{right:var(--seq-space-5)}.fyvr1rc{right:var(--seq-space-6)}.fyvr1rg{right:var(--seq-space-7)}.fyvr1rk{right:var(--seq-space-8)}.fyvr1ro{right:var(--seq-space-9)}.fyvr1rs{right:var(--seq-space-10)}.fyvr1rw{right:var(--seq-space-12)}.fyvr1s0{right:var(--seq-space-14)}.fyvr1s4{right:var(--seq-space-16)}.fyvr1s8{right:var(--seq-space-0_25)}.fyvr1sc{right:var(--seq-space-0_5)}.fyvr1sg{right:var(--seq-space-1_5)}.fyvr1sk{right:auto}.fyvr1so{padding-top:var(--seq-space-0)}.fyvr1ss{padding-top:var(--seq-space-1)}.fyvr1sw{padding-top:var(--seq-space-2)}.fyvr1t0{padding-top:var(--seq-space-3)}.fyvr1t4{padding-top:var(--seq-space-4)}.fyvr1t8{padding-top:var(--seq-space-5)}.fyvr1tc{padding-top:var(--seq-space-6)}.fyvr1tg{padding-top:var(--seq-space-7)}.fyvr1tk{padding-top:var(--seq-space-8)}.fyvr1to{padding-top:var(--seq-space-9)}.fyvr1ts{padding-top:var(--seq-space-10)}.fyvr1tw{padding-top:var(--seq-space-12)}.fyvr1u0{padding-top:var(--seq-space-14)}.fyvr1u4{padding-top:var(--seq-space-16)}.fyvr1u8{padding-top:var(--seq-space-0_25)}.fyvr1uc{padding-top:var(--seq-space-0_5)}.fyvr1ug{padding-top:var(--seq-space-1_5)}.fyvr1uk{padding-bottom:var(--seq-space-0)}.fyvr1uo{padding-bottom:var(--seq-space-1)}.fyvr1us{padding-bottom:var(--seq-space-2)}.fyvr1uw{padding-bottom:var(--seq-space-3)}.fyvr1v0{padding-bottom:var(--seq-space-4)}.fyvr1v4{padding-bottom:var(--seq-space-5)}.fyvr1v8{padding-bottom:var(--seq-space-6)}.fyvr1vc{padding-bottom:var(--seq-space-7)}.fyvr1vg{padding-bottom:var(--seq-space-8)}.fyvr1vk{padding-bottom:var(--seq-space-9)}.fyvr1vo{padding-bottom:var(--seq-space-10)}.fyvr1vs{padding-bottom:var(--seq-space-12)}.fyvr1vw{padding-bottom:var(--seq-space-14)}.fyvr1w0{padding-bottom:var(--seq-space-16)}.fyvr1w4{padding-bottom:var(--seq-space-0_25)}.fyvr1w8{padding-bottom:var(--seq-space-0_5)}.fyvr1wc{padding-bottom:var(--seq-space-1_5)}.fyvr1wg{padding-left:var(--seq-space-0)}.fyvr1wk{padding-left:var(--seq-space-1)}.fyvr1wo{padding-left:var(--seq-space-2)}.fyvr1ws{padding-left:var(--seq-space-3)}.fyvr1ww{padding-left:var(--seq-space-4)}.fyvr1x0{padding-left:var(--seq-space-5)}.fyvr1x4{padding-left:var(--seq-space-6)}.fyvr1x8{padding-left:var(--seq-space-7)}.fyvr1xc{padding-left:var(--seq-space-8)}.fyvr1xg{padding-left:var(--seq-space-9)}.fyvr1xk{padding-left:var(--seq-space-10)}.fyvr1xo{padding-left:var(--seq-space-12)}.fyvr1xs{padding-left:var(--seq-space-14)}.fyvr1xw{padding-left:var(--seq-space-16)}.fyvr1y0{padding-left:var(--seq-space-0_25)}.fyvr1y4{padding-left:var(--seq-space-0_5)}.fyvr1y8{padding-left:var(--seq-space-1_5)}.fyvr1yc{padding-right:var(--seq-space-0)}.fyvr1yg{padding-right:var(--seq-space-1)}.fyvr1yk{padding-right:var(--seq-space-2)}.fyvr1yo{padding-right:var(--seq-space-3)}.fyvr1ys{padding-right:var(--seq-space-4)}.fyvr1yw{padding-right:var(--seq-space-5)}.fyvr1z0{padding-right:var(--seq-space-6)}.fyvr1z4{padding-right:var(--seq-space-7)}.fyvr1z8{padding-right:var(--seq-space-8)}.fyvr1zc{padding-right:var(--seq-space-9)}.fyvr1zg{padding-right:var(--seq-space-10)}.fyvr1zk{padding-right:var(--seq-space-12)}.fyvr1zo{padding-right:var(--seq-space-14)}.fyvr1zs{padding-right:var(--seq-space-16)}.fyvr1zw{padding-right:var(--seq-space-0_25)}.fyvr1100{padding-right:var(--seq-space-0_5)}.fyvr1104{padding-right:var(--seq-space-1_5)}.fyvr1108{margin-top:var(--seq-space-0)}.fyvr110c{margin-top:var(--seq-space-1)}.fyvr110g{margin-top:var(--seq-space-2)}.fyvr110k{margin-top:var(--seq-space-3)}.fyvr110o{margin-top:var(--seq-space-4)}.fyvr110s{margin-top:var(--seq-space-5)}.fyvr110w{margin-top:var(--seq-space-6)}.fyvr1110{margin-top:var(--seq-space-7)}.fyvr1114{margin-top:var(--seq-space-8)}.fyvr1118{margin-top:var(--seq-space-9)}.fyvr111c{margin-top:var(--seq-space-10)}.fyvr111g{margin-top:var(--seq-space-12)}.fyvr111k{margin-top:var(--seq-space-14)}.fyvr111o{margin-top:var(--seq-space-16)}.fyvr111s{margin-top:var(--seq-space-0_25)}.fyvr111w{margin-top:var(--seq-space-0_5)}.fyvr1120{margin-top:var(--seq-space-1_5)}.fyvr1124{margin-top:auto}.fyvr1128{margin-bottom:var(--seq-space-0)}.fyvr112c{margin-bottom:var(--seq-space-1)}.fyvr112g{margin-bottom:var(--seq-space-2)}.fyvr112k{margin-bottom:var(--seq-space-3)}.fyvr112o{margin-bottom:var(--seq-space-4)}.fyvr112s{margin-bottom:var(--seq-space-5)}.fyvr112w{margin-bottom:var(--seq-space-6)}.fyvr1130{margin-bottom:var(--seq-space-7)}.fyvr1134{margin-bottom:var(--seq-space-8)}.fyvr1138{margin-bottom:var(--seq-space-9)}.fyvr113c{margin-bottom:var(--seq-space-10)}.fyvr113g{margin-bottom:var(--seq-space-12)}.fyvr113k{margin-bottom:var(--seq-space-14)}.fyvr113o{margin-bottom:var(--seq-space-16)}.fyvr113s{margin-bottom:var(--seq-space-0_25)}.fyvr113w{margin-bottom:var(--seq-space-0_5)}.fyvr1140{margin-bottom:var(--seq-space-1_5)}.fyvr1144{margin-bottom:auto}.fyvr1148{margin-left:var(--seq-space-0)}.fyvr114c{margin-left:var(--seq-space-1)}.fyvr114g{margin-left:var(--seq-space-2)}.fyvr114k{margin-left:var(--seq-space-3)}.fyvr114o{margin-left:var(--seq-space-4)}.fyvr114s{margin-left:var(--seq-space-5)}.fyvr114w{margin-left:var(--seq-space-6)}.fyvr1150{margin-left:var(--seq-space-7)}.fyvr1154{margin-left:var(--seq-space-8)}.fyvr1158{margin-left:var(--seq-space-9)}.fyvr115c{margin-left:var(--seq-space-10)}.fyvr115g{margin-left:var(--seq-space-12)}.fyvr115k{margin-left:var(--seq-space-14)}.fyvr115o{margin-left:var(--seq-space-16)}.fyvr115s{margin-left:var(--seq-space-0_25)}.fyvr115w{margin-left:var(--seq-space-0_5)}.fyvr1160{margin-left:var(--seq-space-1_5)}.fyvr1164{margin-left:auto}.fyvr1168{margin-right:var(--seq-space-0)}.fyvr116c{margin-right:var(--seq-space-1)}.fyvr116g{margin-right:var(--seq-space-2)}.fyvr116k{margin-right:var(--seq-space-3)}.fyvr116o{margin-right:var(--seq-space-4)}.fyvr116s{margin-right:var(--seq-space-5)}.fyvr116w{margin-right:var(--seq-space-6)}.fyvr1170{margin-right:var(--seq-space-7)}.fyvr1174{margin-right:var(--seq-space-8)}.fyvr1178{margin-right:var(--seq-space-9)}.fyvr117c{margin-right:var(--seq-space-10)}.fyvr117g{margin-right:var(--seq-space-12)}.fyvr117k{margin-right:var(--seq-space-14)}.fyvr117o{margin-right:var(--seq-space-16)}.fyvr117s{margin-right:var(--seq-space-0_25)}.fyvr117w{margin-right:var(--seq-space-0_5)}.fyvr1180{margin-right:var(--seq-space-1_5)}.fyvr1184{margin-right:auto}.fyvr1188{gap:var(--seq-space-0)}.fyvr118c{gap:var(--seq-space-1)}.fyvr118g{gap:var(--seq-space-2)}.fyvr118k{gap:var(--seq-space-3)}.fyvr118o{gap:var(--seq-space-4)}.fyvr118s{gap:var(--seq-space-5)}.fyvr118w{gap:var(--seq-space-6)}.fyvr1190{gap:var(--seq-space-7)}.fyvr1194{gap:var(--seq-space-8)}.fyvr1198{gap:var(--seq-space-9)}.fyvr119c{gap:var(--seq-space-10)}.fyvr119g{gap:var(--seq-space-12)}.fyvr119k{gap:var(--seq-space-14)}.fyvr119o{gap:var(--seq-space-16)}.fyvr119s{gap:var(--seq-space-0_25)}.fyvr119w{gap:var(--seq-space-0_5)}.fyvr11a0{gap:var(--seq-space-1_5)}.fyvr11a4{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a8{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ac{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ag{border-left-width:var(--seq-border-widths-none)}.fyvr11ak{border-left-width:var(--seq-border-widths-thin)}.fyvr11ao{border-left-width:var(--seq-border-widths-thick)}.fyvr11as{border-right-width:var(--seq-border-widths-none)}.fyvr11aw{border-right-width:var(--seq-border-widths-thin)}.fyvr11b0{border-right-width:var(--seq-border-widths-thick)}.fyvr11b4{border-top-width:var(--seq-border-widths-none)}.fyvr11b8{border-top-width:var(--seq-border-widths-thin)}.fyvr11bc{border-top-width:var(--seq-border-widths-thick)}.fyvr11bg{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bk{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bo{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bs{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bw{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c0{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c4{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c8{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cc{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cg{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11ck{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11co{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cs{border-top-left-radius:var(--seq-radii-none)}.fyvr11cw{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d0{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d4{border-top-left-radius:var(--seq-radii-md)}.fyvr11d8{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dc{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dg{border-top-right-radius:var(--seq-radii-none)}.fyvr11dk{border-top-right-radius:var(--seq-radii-xs)}.fyvr11do{border-top-right-radius:var(--seq-radii-sm)}.fyvr11ds{border-top-right-radius:var(--seq-radii-md)}.fyvr11dw{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e0{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e4{font-size:var(--seq-font-sizes-inherit)}.fyvr11e8{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ec{font-size:var(--seq-font-sizes-small)}.fyvr11eg{font-size:var(--seq-font-sizes-normal)}.fyvr11ek{font-size:var(--seq-font-sizes-medium)}.fyvr11eo{font-size:var(--seq-font-sizes-large)}.fyvr11es{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ew{font-weight:var(--seq-font-weights-inherit)}.fyvr11f0{font-weight:var(--seq-font-weights-normal)}.fyvr11f4{font-weight:var(--seq-font-weights-medium)}.fyvr11f8{font-weight:var(--seq-font-weights-semibold)}.fyvr11fc{font-weight:var(--seq-font-weights-bold)}.fyvr11fg{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fk{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fo{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fs{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fw{line-height:var(--seq-line-heights-4)}.fyvr11g0{line-height:var(--seq-line-heights-5)}.fyvr11g4{line-height:var(--seq-line-heights-6)}.fyvr11g8{line-height:var(--seq-line-heights-7)}.fyvr11gc{line-height:var(--seq-line-heights-9)}.fyvr11gg{line-height:var(--seq-line-heights-inherit)}.fyvr11gk{text-align:center}.fyvr11go{text-align:left}.fyvr11gs{text-align:right}.fyvr11gw{display:block}.fyvr11h0{display:flex}.fyvr11h4{display:grid}.fyvr11h8{display:inline-block}.fyvr11hc{display:inline-flex}.fyvr11hg{display:none}.fyvr11hk{display:contents}.fyvr11ho{position:absolute}.fyvr11hs{position:fixed}.fyvr11hw{position:relative}.fyvr11i0{position:sticky}.fyvr11i4{flex-direction:column}.fyvr11i8{flex-direction:column-reverse}.fyvr11ic{flex-direction:row}.fyvr11ig{flex-direction:row-reverse}.fyvr11ik{flex-shrink:0}.fyvr11io{flex-shrink:1}.fyvr11is{flex-grow:0}.fyvr11iw{flex-grow:1}.fyvr11j0{flex-wrap:nowrap}.fyvr11j4{flex-wrap:wrap}.fyvr11j8{flex-wrap:wrap-reverse}.fyvr11jc{justify-content:flex-start}.fyvr11jg{justify-content:center}.fyvr11jk{justify-content:flex-end}.fyvr11jo{justify-content:stretch}.fyvr11js{justify-content:space-around}.fyvr11jw{justify-content:space-between}.fyvr11k0{justify-content:space-evenly}.fyvr11k4{justify-self:flex-start}.fyvr11k8{justify-self:center}.fyvr11kc{justify-self:flex-end}.fyvr11kg{justify-self:stretch}.fyvr11kk{align-items:flex-start}.fyvr11ko{align-items:center}.fyvr11ks{align-items:flex-end}.fyvr11kw{align-items:stretch}.fyvr11l0{align-items:baseline}.fyvr11l4{align-self:flex-start}.fyvr11l8{align-self:center}.fyvr11lc{align-self:flex-end}.fyvr11lg{align-self:stretch}.fyvr11lk{align-self:baseline}.fyvr11lo{overflow-x:auto}.fyvr11ls{overflow-x:hidden}.fyvr11lw{overflow-x:scroll}.fyvr11m0{overflow-x:visible}.fyvr11m4{overflow-y:auto}.fyvr11m8{overflow-y:hidden}.fyvr11mc{overflow-y:scroll}.fyvr11mg{overflow-y:visible}.fyvr11mk{visibility:hidden}.fyvr11mo{visibility:visible}.fyvr11ms{-webkit-backdrop-filter:var(--seq-blur-blur);backdrop-filter:var(--seq-blur-blur)}.fyvr11mt{-webkit-backdrop-filter:var(--seq-blur-none);backdrop-filter:var(--seq-blur-none)}.fyvr11mu{font-family:var(--seq-fonts-inherit)}.fyvr11mv{font-family:var(--seq-fonts-body)}.fyvr11mw{font-family:var(--seq-fonts-mono)}.fyvr11mx{text-overflow:ellipsis}.fyvr11my{text-overflow:clip}.fyvr11mz{text-transform:capitalize}.fyvr11n0{text-transform:lowercase}.fyvr11n1{text-transform:uppercase}.fyvr11n2{-webkit-text-decoration:none;text-decoration:none}.fyvr11n3{-webkit-text-decoration:underline;text-decoration:underline}.fyvr11n4{-webkit-user-select:none;-moz-user-select:none;user-select:none}.fyvr11n5{-webkit-user-select:text;-moz-user-select:text;user-select:text}.fyvr11n6{-webkit-user-select:all;-moz-user-select:all;user-select:all}.fyvr11n7{-webkit-user-select:auto;-moz-user-select:auto;user-select:auto}.fyvr11n8{white-space:normal}.fyvr11n9{white-space:nowrap}.fyvr11na{white-space:normal;white-space:initial}.fyvr11nb{white-space:inherit}.fyvr11nc{word-break:break-word}.fyvr11nd{word-wrap:normal}.fyvr11ne{word-wrap:break-word}.fyvr11nf{word-wrap:initial}.fyvr11ng{word-wrap:inherit}.fyvr11nh{z-index:0}.fyvr11ni{z-index:1}.fyvr11nj{z-index:10}.fyvr11nk{z-index:20}.fyvr11nl{z-index:30}.fyvr11nm{z-index:40}.fyvr11nn{z-index:50}.fyvr11no{z-index:-1}.fyvr11np{z-index:auto}.fyvr11nq{aspect-ratio:1 / 1}.fyvr11nr{aspect-ratio:16 / 9}.fyvr11ns{aspect-ratio:4 / 3}.fyvr11nt{aspect-ratio:3 / 1}.fyvr11nu{aspect-ratio:auto}.fyvr11nv,.fyvr11nw:active{background:var(--seq-colors-black)}.fyvr11nx:disabled,.fyvr11nx[data-disabled]{background:var(--seq-colors-black)}.fyvr11ny:focus{background:var(--seq-colors-black)}.fyvr11nz:hover:not([disabled]){background:var(--seq-colors-black)}.fyvr11o0[data-state=checked]{background:var(--seq-colors-black)}.fyvr11o1,.fyvr11o2:active{background:var(--seq-colors-white)}.fyvr11o3:disabled,.fyvr11o3[data-disabled]{background:var(--seq-colors-white)}.fyvr11o4:focus{background:var(--seq-colors-white)}.fyvr11o5:hover:not([disabled]){background:var(--seq-colors-white)}.fyvr11o6[data-state=checked]{background:var(--seq-colors-white)}.fyvr11o7,.fyvr11o8:active{background:var(--seq-colors-inherit)}.fyvr11o9:disabled,.fyvr11o9[data-disabled]{background:var(--seq-colors-inherit)}.fyvr11oa:focus{background:var(--seq-colors-inherit)}.fyvr11ob:hover:not([disabled]){background:var(--seq-colors-inherit)}.fyvr11oc[data-state=checked]{background:var(--seq-colors-inherit)}.fyvr11od,.fyvr11oe:active{background:var(--seq-colors-transparent)}.fyvr11of:disabled,.fyvr11of[data-disabled]{background:var(--seq-colors-transparent)}.fyvr11og:focus{background:var(--seq-colors-transparent)}.fyvr11oh:hover:not([disabled]){background:var(--seq-colors-transparent)}.fyvr11oi[data-state=checked]{background:var(--seq-colors-transparent)}.fyvr11oj,.fyvr11ok:active{background:var(--seq-colors-positive)}.fyvr11ol:disabled,.fyvr11ol[data-disabled]{background:var(--seq-colors-positive)}.fyvr11om:focus{background:var(--seq-colors-positive)}.fyvr11on:hover:not([disabled]){background:var(--seq-colors-positive)}.fyvr11oo[data-state=checked]{background:var(--seq-colors-positive)}.fyvr11op,.fyvr11oq:active{background:var(--seq-colors-negative)}.fyvr11or:disabled,.fyvr11or[data-disabled]{background:var(--seq-colors-negative)}.fyvr11os:focus{background:var(--seq-colors-negative)}.fyvr11ot:hover:not([disabled]){background:var(--seq-colors-negative)}.fyvr11ou[data-state=checked]{background:var(--seq-colors-negative)}.fyvr11ov,.fyvr11ow:active{background:var(--seq-colors-info)}.fyvr11ox:disabled,.fyvr11ox[data-disabled]{background:var(--seq-colors-info)}.fyvr11oy:focus{background:var(--seq-colors-info)}.fyvr11oz:hover:not([disabled]){background:var(--seq-colors-info)}.fyvr11p0[data-state=checked]{background:var(--seq-colors-info)}.fyvr11p1,.fyvr11p2:active{background:var(--seq-colors-warning)}.fyvr11p3:disabled,.fyvr11p3[data-disabled]{background:var(--seq-colors-warning)}.fyvr11p4:focus{background:var(--seq-colors-warning)}.fyvr11p5:hover:not([disabled]){background:var(--seq-colors-warning)}.fyvr11p6[data-state=checked]{background:var(--seq-colors-warning)}.fyvr11p7,.fyvr11p8:active{background:var(--seq-colors-gradient-backdrop)}.fyvr11p9:disabled,.fyvr11p9[data-disabled]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pa:focus{background:var(--seq-colors-gradient-backdrop)}.fyvr11pb:hover:not([disabled]){background:var(--seq-colors-gradient-backdrop)}.fyvr11pc[data-state=checked]{background:var(--seq-colors-gradient-backdrop)}.fyvr11pd,.fyvr11pe:active{background:var(--seq-colors-gradient-primary)}.fyvr11pf:disabled,.fyvr11pf[data-disabled]{background:var(--seq-colors-gradient-primary)}.fyvr11pg:focus{background:var(--seq-colors-gradient-primary)}.fyvr11ph:hover:not([disabled]){background:var(--seq-colors-gradient-primary)}.fyvr11pi[data-state=checked]{background:var(--seq-colors-gradient-primary)}.fyvr11pj,.fyvr11pk:active{background:var(--seq-colors-gradient-secondary)}.fyvr11pl:disabled,.fyvr11pl[data-disabled]{background:var(--seq-colors-gradient-secondary)}.fyvr11pm:focus{background:var(--seq-colors-gradient-secondary)}.fyvr11pn:hover:not([disabled]){background:var(--seq-colors-gradient-secondary)}.fyvr11po[data-state=checked]{background:var(--seq-colors-gradient-secondary)}.fyvr11pp,.fyvr11pq:active{background:var(--seq-colors-arbitrum-dark)}.fyvr11pr:disabled,.fyvr11pr[data-disabled]{background:var(--seq-colors-arbitrum-dark)}.fyvr11ps:focus{background:var(--seq-colors-arbitrum-dark)}.fyvr11pt:hover:not([disabled]){background:var(--seq-colors-arbitrum-dark)}.fyvr11pu[data-state=checked]{background:var(--seq-colors-arbitrum-dark)}.fyvr11pv,.fyvr11pw:active{background:var(--seq-colors-arbitrum-light)}.fyvr11px:disabled,.fyvr11px[data-disabled]{background:var(--seq-colors-arbitrum-light)}.fyvr11py:focus{background:var(--seq-colors-arbitrum-light)}.fyvr11pz:hover:not([disabled]){background:var(--seq-colors-arbitrum-light)}.fyvr11q0[data-state=checked]{background:var(--seq-colors-arbitrum-light)}.fyvr11q1,.fyvr11q2:active{background:var(--seq-colors-avalance-dark)}.fyvr11q3:disabled,.fyvr11q3[data-disabled]{background:var(--seq-colors-avalance-dark)}.fyvr11q4:focus{background:var(--seq-colors-avalance-dark)}.fyvr11q5:hover:not([disabled]){background:var(--seq-colors-avalance-dark)}.fyvr11q6[data-state=checked]{background:var(--seq-colors-avalance-dark)}.fyvr11q7,.fyvr11q8:active{background:var(--seq-colors-avalance-light)}.fyvr11q9:disabled,.fyvr11q9[data-disabled]{background:var(--seq-colors-avalance-light)}.fyvr11qa:focus{background:var(--seq-colors-avalance-light)}.fyvr11qb:hover:not([disabled]){background:var(--seq-colors-avalance-light)}.fyvr11qc[data-state=checked]{background:var(--seq-colors-avalance-light)}.fyvr11qd,.fyvr11qe:active{background:var(--seq-colors-bsc-dark)}.fyvr11qf:disabled,.fyvr11qf[data-disabled]{background:var(--seq-colors-bsc-dark)}.fyvr11qg:focus{background:var(--seq-colors-bsc-dark)}.fyvr11qh:hover:not([disabled]){background:var(--seq-colors-bsc-dark)}.fyvr11qi[data-state=checked]{background:var(--seq-colors-bsc-dark)}.fyvr11qj,.fyvr11qk:active{background:var(--seq-colors-bsc-light)}.fyvr11ql:disabled,.fyvr11ql[data-disabled]{background:var(--seq-colors-bsc-light)}.fyvr11qm:focus{background:var(--seq-colors-bsc-light)}.fyvr11qn:hover:not([disabled]){background:var(--seq-colors-bsc-light)}.fyvr11qo[data-state=checked]{background:var(--seq-colors-bsc-light)}.fyvr11qp,.fyvr11qq:active{background:var(--seq-colors-ethereum-dark)}.fyvr11qr:disabled,.fyvr11qr[data-disabled]{background:var(--seq-colors-ethereum-dark)}.fyvr11qs:focus{background:var(--seq-colors-ethereum-dark)}.fyvr11qt:hover:not([disabled]){background:var(--seq-colors-ethereum-dark)}.fyvr11qu[data-state=checked]{background:var(--seq-colors-ethereum-dark)}.fyvr11qv,.fyvr11qw:active{background:var(--seq-colors-ethereum-light)}.fyvr11qx:disabled,.fyvr11qx[data-disabled]{background:var(--seq-colors-ethereum-light)}.fyvr11qy:focus{background:var(--seq-colors-ethereum-light)}.fyvr11qz:hover:not([disabled]){background:var(--seq-colors-ethereum-light)}.fyvr11r0[data-state=checked]{background:var(--seq-colors-ethereum-light)}.fyvr11r1,.fyvr11r2:active{background:var(--seq-colors-gnosis-dark)}.fyvr11r3:disabled,.fyvr11r3[data-disabled]{background:var(--seq-colors-gnosis-dark)}.fyvr11r4:focus{background:var(--seq-colors-gnosis-dark)}.fyvr11r5:hover:not([disabled]){background:var(--seq-colors-gnosis-dark)}.fyvr11r6[data-state=checked]{background:var(--seq-colors-gnosis-dark)}.fyvr11r7,.fyvr11r8:active{background:var(--seq-colors-gnosis-light)}.fyvr11r9:disabled,.fyvr11r9[data-disabled]{background:var(--seq-colors-gnosis-light)}.fyvr11ra:focus{background:var(--seq-colors-gnosis-light)}.fyvr11rb:hover:not([disabled]){background:var(--seq-colors-gnosis-light)}.fyvr11rc[data-state=checked]{background:var(--seq-colors-gnosis-light)}.fyvr11rd,.fyvr11re:active{background:var(--seq-colors-polygon-dark)}.fyvr11rf:disabled,.fyvr11rf[data-disabled]{background:var(--seq-colors-polygon-dark)}.fyvr11rg:focus{background:var(--seq-colors-polygon-dark)}.fyvr11rh:hover:not([disabled]){background:var(--seq-colors-polygon-dark)}.fyvr11ri[data-state=checked]{background:var(--seq-colors-polygon-dark)}.fyvr11rj,.fyvr11rk:active{background:var(--seq-colors-polygon-light)}.fyvr11rl:disabled,.fyvr11rl[data-disabled]{background:var(--seq-colors-polygon-light)}.fyvr11rm:focus{background:var(--seq-colors-polygon-light)}.fyvr11rn:hover:not([disabled]){background:var(--seq-colors-polygon-light)}.fyvr11ro[data-state=checked]{background:var(--seq-colors-polygon-light)}.fyvr11rp,.fyvr11rq:active{background:var(--seq-colors-text100)}.fyvr11rr:disabled,.fyvr11rr[data-disabled]{background:var(--seq-colors-text100)}.fyvr11rs:focus{background:var(--seq-colors-text100)}.fyvr11rt:hover:not([disabled]){background:var(--seq-colors-text100)}.fyvr11ru[data-state=checked]{background:var(--seq-colors-text100)}.fyvr11rv,.fyvr11rw:active{background:var(--seq-colors-text80)}.fyvr11rx:disabled,.fyvr11rx[data-disabled]{background:var(--seq-colors-text80)}.fyvr11ry:focus{background:var(--seq-colors-text80)}.fyvr11rz:hover:not([disabled]){background:var(--seq-colors-text80)}.fyvr11s0[data-state=checked]{background:var(--seq-colors-text80)}.fyvr11s1,.fyvr11s2:active{background:var(--seq-colors-text50)}.fyvr11s3:disabled,.fyvr11s3[data-disabled]{background:var(--seq-colors-text50)}.fyvr11s4:focus{background:var(--seq-colors-text50)}.fyvr11s5:hover:not([disabled]){background:var(--seq-colors-text50)}.fyvr11s6[data-state=checked]{background:var(--seq-colors-text50)}.fyvr11s7,.fyvr11s8:active{background:var(--seq-colors-text-inverse100)}.fyvr11s9:disabled,.fyvr11s9[data-disabled]{background:var(--seq-colors-text-inverse100)}.fyvr11sa:focus{background:var(--seq-colors-text-inverse100)}.fyvr11sb:hover:not([disabled]){background:var(--seq-colors-text-inverse100)}.fyvr11sc[data-state=checked]{background:var(--seq-colors-text-inverse100)}.fyvr11sd,.fyvr11se:active{background:var(--seq-colors-background-primary)}.fyvr11sf:disabled,.fyvr11sf[data-disabled]{background:var(--seq-colors-background-primary)}.fyvr11sg:focus{background:var(--seq-colors-background-primary)}.fyvr11sh:hover:not([disabled]){background:var(--seq-colors-background-primary)}.fyvr11si[data-state=checked]{background:var(--seq-colors-background-primary)}.fyvr11sj,.fyvr11sk:active{background:var(--seq-colors-background-secondary)}.fyvr11sl:disabled,.fyvr11sl[data-disabled]{background:var(--seq-colors-background-secondary)}.fyvr11sm:focus{background:var(--seq-colors-background-secondary)}.fyvr11sn:hover:not([disabled]){background:var(--seq-colors-background-secondary)}.fyvr11so[data-state=checked]{background:var(--seq-colors-background-secondary)}.fyvr11sp,.fyvr11sq:active{background:var(--seq-colors-background-contrast)}.fyvr11sr:disabled,.fyvr11sr[data-disabled]{background:var(--seq-colors-background-contrast)}.fyvr11ss:focus{background:var(--seq-colors-background-contrast)}.fyvr11st:hover:not([disabled]){background:var(--seq-colors-background-contrast)}.fyvr11su[data-state=checked]{background:var(--seq-colors-background-contrast)}.fyvr11sv,.fyvr11sw:active{background:var(--seq-colors-background-muted)}.fyvr11sx:disabled,.fyvr11sx[data-disabled]{background:var(--seq-colors-background-muted)}.fyvr11sy:focus{background:var(--seq-colors-background-muted)}.fyvr11sz:hover:not([disabled]){background:var(--seq-colors-background-muted)}.fyvr11t0[data-state=checked]{background:var(--seq-colors-background-muted)}.fyvr11t1,.fyvr11t2:active{background:var(--seq-colors-background-control)}.fyvr11t3:disabled,.fyvr11t3[data-disabled]{background:var(--seq-colors-background-control)}.fyvr11t4:focus{background:var(--seq-colors-background-control)}.fyvr11t5:hover:not([disabled]){background:var(--seq-colors-background-control)}.fyvr11t6[data-state=checked]{background:var(--seq-colors-background-control)}.fyvr11t7,.fyvr11t8:active{background:var(--seq-colors-background-inverse)}.fyvr11t9:disabled,.fyvr11t9[data-disabled]{background:var(--seq-colors-background-inverse)}.fyvr11ta:focus{background:var(--seq-colors-background-inverse)}.fyvr11tb:hover:not([disabled]){background:var(--seq-colors-background-inverse)}.fyvr11tc[data-state=checked]{background:var(--seq-colors-background-inverse)}.fyvr11td,.fyvr11te:active{background:var(--seq-colors-background-backdrop)}.fyvr11tf:disabled,.fyvr11tf[data-disabled]{background:var(--seq-colors-background-backdrop)}.fyvr11tg:focus{background:var(--seq-colors-background-backdrop)}.fyvr11th:hover:not([disabled]){background:var(--seq-colors-background-backdrop)}.fyvr11ti[data-state=checked]{background:var(--seq-colors-background-backdrop)}.fyvr11tj,.fyvr11tk:active{background:var(--seq-colors-background-overlay)}.fyvr11tl:disabled,.fyvr11tl[data-disabled]{background:var(--seq-colors-background-overlay)}.fyvr11tm:focus{background:var(--seq-colors-background-overlay)}.fyvr11tn:hover:not([disabled]){background:var(--seq-colors-background-overlay)}.fyvr11to[data-state=checked]{background:var(--seq-colors-background-overlay)}.fyvr11tp,.fyvr11tq:active{background:var(--seq-colors-background-raised)}.fyvr11tr:disabled,.fyvr11tr[data-disabled]{background:var(--seq-colors-background-raised)}.fyvr11ts:focus{background:var(--seq-colors-background-raised)}.fyvr11tt:hover:not([disabled]){background:var(--seq-colors-background-raised)}.fyvr11tu[data-state=checked]{background:var(--seq-colors-background-raised)}.fyvr11tv,.fyvr11tw:active{background:var(--seq-colors-button-glass)}.fyvr11tx:disabled,.fyvr11tx[data-disabled]{background:var(--seq-colors-button-glass)}.fyvr11ty:focus{background:var(--seq-colors-button-glass)}.fyvr11tz:hover:not([disabled]){background:var(--seq-colors-button-glass)}.fyvr11u0[data-state=checked]{background:var(--seq-colors-button-glass)}.fyvr11u1,.fyvr11u2:active{background:var(--seq-colors-button-emphasis)}.fyvr11u3:disabled,.fyvr11u3[data-disabled]{background:var(--seq-colors-button-emphasis)}.fyvr11u4:focus{background:var(--seq-colors-button-emphasis)}.fyvr11u5:hover:not([disabled]){background:var(--seq-colors-button-emphasis)}.fyvr11u6[data-state=checked]{background:var(--seq-colors-button-emphasis)}.fyvr11u7,.fyvr11u8:active{background:var(--seq-colors-button-inverse)}.fyvr11u9:disabled,.fyvr11u9[data-disabled]{background:var(--seq-colors-button-inverse)}.fyvr11ua:focus{background:var(--seq-colors-button-inverse)}.fyvr11ub:hover:not([disabled]){background:var(--seq-colors-button-inverse)}.fyvr11uc[data-state=checked]{background:var(--seq-colors-button-inverse)}.fyvr11ud,.fyvr11ue:active{background:var(--seq-colors-border-normal)}.fyvr11uf:disabled,.fyvr11uf[data-disabled]{background:var(--seq-colors-border-normal)}.fyvr11ug:focus{background:var(--seq-colors-border-normal)}.fyvr11uh:hover:not([disabled]){background:var(--seq-colors-border-normal)}.fyvr11ui[data-state=checked]{background:var(--seq-colors-border-normal)}.fyvr11uj,.fyvr11uk:active{background:var(--seq-colors-border-focus)}.fyvr11ul:disabled,.fyvr11ul[data-disabled]{background:var(--seq-colors-border-focus)}.fyvr11um:focus{background:var(--seq-colors-border-focus)}.fyvr11un:hover:not([disabled]){background:var(--seq-colors-border-focus)}.fyvr11uo[data-state=checked]{background:var(--seq-colors-border-focus)}.fyvr11up,.fyvr11uq:active{border-bottom-color:var(--seq-colors-black)}.fyvr11ur:disabled,.fyvr11ur[data-disabled]{border-bottom-color:var(--seq-colors-black)}.fyvr11us:focus{border-bottom-color:var(--seq-colors-black)}.fyvr11ut:hover:not([disabled]){border-bottom-color:var(--seq-colors-black)}.fyvr11uu[data-state=checked]{border-bottom-color:var(--seq-colors-black)}.fyvr11uv,.fyvr11uw:active{border-bottom-color:var(--seq-colors-white)}.fyvr11ux:disabled,.fyvr11ux[data-disabled]{border-bottom-color:var(--seq-colors-white)}.fyvr11uy:focus{border-bottom-color:var(--seq-colors-white)}.fyvr11uz:hover:not([disabled]){border-bottom-color:var(--seq-colors-white)}.fyvr11v0[data-state=checked]{border-bottom-color:var(--seq-colors-white)}.fyvr11v1,.fyvr11v2:active{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v3:disabled,.fyvr11v3[data-disabled]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v4:focus{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v5:hover:not([disabled]){border-bottom-color:var(--seq-colors-inherit)}.fyvr11v6[data-state=checked]{border-bottom-color:var(--seq-colors-inherit)}.fyvr11v7,.fyvr11v8:active{border-bottom-color:var(--seq-colors-transparent)}.fyvr11v9:disabled,.fyvr11v9[data-disabled]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11va:focus{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vb:hover:not([disabled]){border-bottom-color:var(--seq-colors-transparent)}.fyvr11vc[data-state=checked]{border-bottom-color:var(--seq-colors-transparent)}.fyvr11vd,.fyvr11ve:active{border-bottom-color:var(--seq-colors-positive)}.fyvr11vf:disabled,.fyvr11vf[data-disabled]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vg:focus{border-bottom-color:var(--seq-colors-positive)}.fyvr11vh:hover:not([disabled]){border-bottom-color:var(--seq-colors-positive)}.fyvr11vi[data-state=checked]{border-bottom-color:var(--seq-colors-positive)}.fyvr11vj,.fyvr11vk:active{border-bottom-color:var(--seq-colors-negative)}.fyvr11vl:disabled,.fyvr11vl[data-disabled]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vm:focus{border-bottom-color:var(--seq-colors-negative)}.fyvr11vn:hover:not([disabled]){border-bottom-color:var(--seq-colors-negative)}.fyvr11vo[data-state=checked]{border-bottom-color:var(--seq-colors-negative)}.fyvr11vp,.fyvr11vq:active{border-bottom-color:var(--seq-colors-info)}.fyvr11vr:disabled,.fyvr11vr[data-disabled]{border-bottom-color:var(--seq-colors-info)}.fyvr11vs:focus{border-bottom-color:var(--seq-colors-info)}.fyvr11vt:hover:not([disabled]){border-bottom-color:var(--seq-colors-info)}.fyvr11vu[data-state=checked]{border-bottom-color:var(--seq-colors-info)}.fyvr11vv,.fyvr11vw:active{border-bottom-color:var(--seq-colors-warning)}.fyvr11vx:disabled,.fyvr11vx[data-disabled]{border-bottom-color:var(--seq-colors-warning)}.fyvr11vy:focus{border-bottom-color:var(--seq-colors-warning)}.fyvr11vz:hover:not([disabled]){border-bottom-color:var(--seq-colors-warning)}.fyvr11w0[data-state=checked]{border-bottom-color:var(--seq-colors-warning)}.fyvr11w1,.fyvr11w2:active{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w3:disabled,.fyvr11w3[data-disabled]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w4:focus{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w6[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-backdrop)}.fyvr11w7,.fyvr11w8:active{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11w9:disabled,.fyvr11w9[data-disabled]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wa:focus{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wb:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wc[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-primary)}.fyvr11wd,.fyvr11we:active{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wf:disabled,.fyvr11wf[data-disabled]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wg:focus{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wh:hover:not([disabled]){border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wi[data-state=checked]{border-bottom-color:var(--seq-colors-gradient-secondary)}.fyvr11wj,.fyvr11wk:active{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wl:disabled,.fyvr11wl[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wm:focus{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wn:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wo[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-dark)}.fyvr11wp,.fyvr11wq:active{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wr:disabled,.fyvr11wr[data-disabled]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11ws:focus{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wt:hover:not([disabled]){border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wu[data-state=checked]{border-bottom-color:var(--seq-colors-arbitrum-light)}.fyvr11wv,.fyvr11ww:active{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wx:disabled,.fyvr11wx[data-disabled]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wy:focus{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11wz:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x0[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-dark)}.fyvr11x1,.fyvr11x2:active{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x3:disabled,.fyvr11x3[data-disabled]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x4:focus{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x5:hover:not([disabled]){border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x6[data-state=checked]{border-bottom-color:var(--seq-colors-avalance-light)}.fyvr11x7,.fyvr11x8:active{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11x9:disabled,.fyvr11x9[data-disabled]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xa:focus{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xb:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xc[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-dark)}.fyvr11xd,.fyvr11xe:active{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xf:disabled,.fyvr11xf[data-disabled]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xg:focus{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xh:hover:not([disabled]){border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xi[data-state=checked]{border-bottom-color:var(--seq-colors-bsc-light)}.fyvr11xj,.fyvr11xk:active{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xl:disabled,.fyvr11xl[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xm:focus{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xn:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xo[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-dark)}.fyvr11xp,.fyvr11xq:active{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xr:disabled,.fyvr11xr[data-disabled]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xs:focus{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xt:hover:not([disabled]){border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xu[data-state=checked]{border-bottom-color:var(--seq-colors-ethereum-light)}.fyvr11xv,.fyvr11xw:active{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xx:disabled,.fyvr11xx[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xy:focus{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11xz:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y0[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-dark)}.fyvr11y1,.fyvr11y2:active{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y3:disabled,.fyvr11y3[data-disabled]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y4:focus{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y5:hover:not([disabled]){border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y6[data-state=checked]{border-bottom-color:var(--seq-colors-gnosis-light)}.fyvr11y7,.fyvr11y8:active{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11y9:disabled,.fyvr11y9[data-disabled]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11ya:focus{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yb:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yc[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-dark)}.fyvr11yd,.fyvr11ye:active{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yf:disabled,.fyvr11yf[data-disabled]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yg:focus{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yh:hover:not([disabled]){border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yi[data-state=checked]{border-bottom-color:var(--seq-colors-polygon-light)}.fyvr11yj,.fyvr11yk:active{border-bottom-color:var(--seq-colors-text100)}.fyvr11yl:disabled,.fyvr11yl[data-disabled]{border-bottom-color:var(--seq-colors-text100)}.fyvr11ym:focus{border-bottom-color:var(--seq-colors-text100)}.fyvr11yn:hover:not([disabled]){border-bottom-color:var(--seq-colors-text100)}.fyvr11yo[data-state=checked]{border-bottom-color:var(--seq-colors-text100)}.fyvr11yp,.fyvr11yq:active{border-bottom-color:var(--seq-colors-text80)}.fyvr11yr:disabled,.fyvr11yr[data-disabled]{border-bottom-color:var(--seq-colors-text80)}.fyvr11ys:focus{border-bottom-color:var(--seq-colors-text80)}.fyvr11yt:hover:not([disabled]){border-bottom-color:var(--seq-colors-text80)}.fyvr11yu[data-state=checked]{border-bottom-color:var(--seq-colors-text80)}.fyvr11yv,.fyvr11yw:active{border-bottom-color:var(--seq-colors-text50)}.fyvr11yx:disabled,.fyvr11yx[data-disabled]{border-bottom-color:var(--seq-colors-text50)}.fyvr11yy:focus{border-bottom-color:var(--seq-colors-text50)}.fyvr11yz:hover:not([disabled]){border-bottom-color:var(--seq-colors-text50)}.fyvr11z0[data-state=checked]{border-bottom-color:var(--seq-colors-text50)}.fyvr11z1,.fyvr11z2:active{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z3:disabled,.fyvr11z3[data-disabled]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z4:focus{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z5:hover:not([disabled]){border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z6[data-state=checked]{border-bottom-color:var(--seq-colors-text-inverse100)}.fyvr11z7,.fyvr11z8:active{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11z9:disabled,.fyvr11z9[data-disabled]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11za:focus{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zb:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zc[data-state=checked]{border-bottom-color:var(--seq-colors-background-primary)}.fyvr11zd,.fyvr11ze:active{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zf:disabled,.fyvr11zf[data-disabled]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zg:focus{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zh:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zi[data-state=checked]{border-bottom-color:var(--seq-colors-background-secondary)}.fyvr11zj,.fyvr11zk:active{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zl:disabled,.fyvr11zl[data-disabled]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zm:focus{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zn:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zo[data-state=checked]{border-bottom-color:var(--seq-colors-background-contrast)}.fyvr11zp,.fyvr11zq:active{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zr:disabled,.fyvr11zr[data-disabled]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zs:focus{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zt:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zu[data-state=checked]{border-bottom-color:var(--seq-colors-background-muted)}.fyvr11zv,.fyvr11zw:active{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zx:disabled,.fyvr11zx[data-disabled]{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zy:focus{border-bottom-color:var(--seq-colors-background-control)}.fyvr11zz:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-control)}.fyvr1200[data-state=checked]{border-bottom-color:var(--seq-colors-background-control)}.fyvr1201,.fyvr1202:active{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1203:disabled,.fyvr1203[data-disabled]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1204:focus{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1205:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1206[data-state=checked]{border-bottom-color:var(--seq-colors-background-inverse)}.fyvr1207,.fyvr1208:active{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr1209:disabled,.fyvr1209[data-disabled]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120a:focus{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120b:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120c[data-state=checked]{border-bottom-color:var(--seq-colors-background-backdrop)}.fyvr120d,.fyvr120e:active{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120f:disabled,.fyvr120f[data-disabled]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120g:focus{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120h:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120i[data-state=checked]{border-bottom-color:var(--seq-colors-background-overlay)}.fyvr120j,.fyvr120k:active{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120l:disabled,.fyvr120l[data-disabled]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120m:focus{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120n:hover:not([disabled]){border-bottom-color:var(--seq-colors-background-raised)}.fyvr120o[data-state=checked]{border-bottom-color:var(--seq-colors-background-raised)}.fyvr120p,.fyvr120q:active{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120r:disabled,.fyvr120r[data-disabled]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120s:focus{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120t:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-glass)}.fyvr120u[data-state=checked]{border-bottom-color:var(--seq-colors-button-glass)}.fyvr120v,.fyvr120w:active{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120x:disabled,.fyvr120x[data-disabled]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120y:focus{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr120z:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1210[data-state=checked]{border-bottom-color:var(--seq-colors-button-emphasis)}.fyvr1211,.fyvr1212:active{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1213:disabled,.fyvr1213[data-disabled]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1214:focus{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1215:hover:not([disabled]){border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1216[data-state=checked]{border-bottom-color:var(--seq-colors-button-inverse)}.fyvr1217,.fyvr1218:active{border-bottom-color:var(--seq-colors-border-normal)}.fyvr1219:disabled,.fyvr1219[data-disabled]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121a:focus{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121b:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-normal)}.fyvr121c[data-state=checked]{border-bottom-color:var(--seq-colors-border-normal)}.fyvr121d,.fyvr121e:active{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121f:disabled,.fyvr121f[data-disabled]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121g:focus{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121h:hover:not([disabled]){border-bottom-color:var(--seq-colors-border-focus)}.fyvr121i[data-state=checked]{border-bottom-color:var(--seq-colors-border-focus)}.fyvr121j,.fyvr121k:active{border-bottom-style:solid}.fyvr121l:disabled,.fyvr121l[data-disabled]{border-bottom-style:solid}.fyvr121m:focus{border-bottom-style:solid}.fyvr121n:hover:not([disabled]){border-bottom-style:solid}.fyvr121o[data-state=checked]{border-bottom-style:solid}.fyvr121p,.fyvr121q:active{border-bottom-style:dashed}.fyvr121r:disabled,.fyvr121r[data-disabled]{border-bottom-style:dashed}.fyvr121s:focus{border-bottom-style:dashed}.fyvr121t:hover:not([disabled]){border-bottom-style:dashed}.fyvr121u[data-state=checked]{border-bottom-style:dashed}.fyvr121v,.fyvr121w:active{border-bottom-style:dotted}.fyvr121x:disabled,.fyvr121x[data-disabled]{border-bottom-style:dotted}.fyvr121y:focus{border-bottom-style:dotted}.fyvr121z:hover:not([disabled]){border-bottom-style:dotted}.fyvr1220[data-state=checked]{border-bottom-style:dotted}.fyvr1221,.fyvr1222:active{border-left-color:var(--seq-colors-black)}.fyvr1223:disabled,.fyvr1223[data-disabled]{border-left-color:var(--seq-colors-black)}.fyvr1224:focus{border-left-color:var(--seq-colors-black)}.fyvr1225:hover:not([disabled]){border-left-color:var(--seq-colors-black)}.fyvr1226[data-state=checked]{border-left-color:var(--seq-colors-black)}.fyvr1227,.fyvr1228:active{border-left-color:var(--seq-colors-white)}.fyvr1229:disabled,.fyvr1229[data-disabled]{border-left-color:var(--seq-colors-white)}.fyvr122a:focus{border-left-color:var(--seq-colors-white)}.fyvr122b:hover:not([disabled]){border-left-color:var(--seq-colors-white)}.fyvr122c[data-state=checked]{border-left-color:var(--seq-colors-white)}.fyvr122d,.fyvr122e:active{border-left-color:var(--seq-colors-inherit)}.fyvr122f:disabled,.fyvr122f[data-disabled]{border-left-color:var(--seq-colors-inherit)}.fyvr122g:focus{border-left-color:var(--seq-colors-inherit)}.fyvr122h:hover:not([disabled]){border-left-color:var(--seq-colors-inherit)}.fyvr122i[data-state=checked]{border-left-color:var(--seq-colors-inherit)}.fyvr122j,.fyvr122k:active{border-left-color:var(--seq-colors-transparent)}.fyvr122l:disabled,.fyvr122l[data-disabled]{border-left-color:var(--seq-colors-transparent)}.fyvr122m:focus{border-left-color:var(--seq-colors-transparent)}.fyvr122n:hover:not([disabled]){border-left-color:var(--seq-colors-transparent)}.fyvr122o[data-state=checked]{border-left-color:var(--seq-colors-transparent)}.fyvr122p,.fyvr122q:active{border-left-color:var(--seq-colors-positive)}.fyvr122r:disabled,.fyvr122r[data-disabled]{border-left-color:var(--seq-colors-positive)}.fyvr122s:focus{border-left-color:var(--seq-colors-positive)}.fyvr122t:hover:not([disabled]){border-left-color:var(--seq-colors-positive)}.fyvr122u[data-state=checked]{border-left-color:var(--seq-colors-positive)}.fyvr122v,.fyvr122w:active{border-left-color:var(--seq-colors-negative)}.fyvr122x:disabled,.fyvr122x[data-disabled]{border-left-color:var(--seq-colors-negative)}.fyvr122y:focus{border-left-color:var(--seq-colors-negative)}.fyvr122z:hover:not([disabled]){border-left-color:var(--seq-colors-negative)}.fyvr1230[data-state=checked]{border-left-color:var(--seq-colors-negative)}.fyvr1231,.fyvr1232:active{border-left-color:var(--seq-colors-info)}.fyvr1233:disabled,.fyvr1233[data-disabled]{border-left-color:var(--seq-colors-info)}.fyvr1234:focus{border-left-color:var(--seq-colors-info)}.fyvr1235:hover:not([disabled]){border-left-color:var(--seq-colors-info)}.fyvr1236[data-state=checked]{border-left-color:var(--seq-colors-info)}.fyvr1237,.fyvr1238:active{border-left-color:var(--seq-colors-warning)}.fyvr1239:disabled,.fyvr1239[data-disabled]{border-left-color:var(--seq-colors-warning)}.fyvr123a:focus{border-left-color:var(--seq-colors-warning)}.fyvr123b:hover:not([disabled]){border-left-color:var(--seq-colors-warning)}.fyvr123c[data-state=checked]{border-left-color:var(--seq-colors-warning)}.fyvr123d,.fyvr123e:active{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123f:disabled,.fyvr123f[data-disabled]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123g:focus{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123h:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123i[data-state=checked]{border-left-color:var(--seq-colors-gradient-backdrop)}.fyvr123j,.fyvr123k:active{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123l:disabled,.fyvr123l[data-disabled]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123m:focus{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123n:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-primary)}.fyvr123o[data-state=checked]{border-left-color:var(--seq-colors-gradient-primary)}.fyvr123p,.fyvr123q:active{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123r:disabled,.fyvr123r[data-disabled]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123s:focus{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123t:hover:not([disabled]){border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123u[data-state=checked]{border-left-color:var(--seq-colors-gradient-secondary)}.fyvr123v,.fyvr123w:active{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123x:disabled,.fyvr123x[data-disabled]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123y:focus{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr123z:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1240[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-dark)}.fyvr1241,.fyvr1242:active{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1243:disabled,.fyvr1243[data-disabled]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1244:focus{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1245:hover:not([disabled]){border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1246[data-state=checked]{border-left-color:var(--seq-colors-arbitrum-light)}.fyvr1247,.fyvr1248:active{border-left-color:var(--seq-colors-avalance-dark)}.fyvr1249:disabled,.fyvr1249[data-disabled]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124a:focus{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124b:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-dark)}.fyvr124c[data-state=checked]{border-left-color:var(--seq-colors-avalance-dark)}.fyvr124d,.fyvr124e:active{border-left-color:var(--seq-colors-avalance-light)}.fyvr124f:disabled,.fyvr124f[data-disabled]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124g:focus{border-left-color:var(--seq-colors-avalance-light)}.fyvr124h:hover:not([disabled]){border-left-color:var(--seq-colors-avalance-light)}.fyvr124i[data-state=checked]{border-left-color:var(--seq-colors-avalance-light)}.fyvr124j,.fyvr124k:active{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124l:disabled,.fyvr124l[data-disabled]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124m:focus{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124n:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-dark)}.fyvr124o[data-state=checked]{border-left-color:var(--seq-colors-bsc-dark)}.fyvr124p,.fyvr124q:active{border-left-color:var(--seq-colors-bsc-light)}.fyvr124r:disabled,.fyvr124r[data-disabled]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124s:focus{border-left-color:var(--seq-colors-bsc-light)}.fyvr124t:hover:not([disabled]){border-left-color:var(--seq-colors-bsc-light)}.fyvr124u[data-state=checked]{border-left-color:var(--seq-colors-bsc-light)}.fyvr124v,.fyvr124w:active{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124x:disabled,.fyvr124x[data-disabled]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124y:focus{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr124z:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1250[data-state=checked]{border-left-color:var(--seq-colors-ethereum-dark)}.fyvr1251,.fyvr1252:active{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1253:disabled,.fyvr1253[data-disabled]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1254:focus{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1255:hover:not([disabled]){border-left-color:var(--seq-colors-ethereum-light)}.fyvr1256[data-state=checked]{border-left-color:var(--seq-colors-ethereum-light)}.fyvr1257,.fyvr1258:active{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr1259:disabled,.fyvr1259[data-disabled]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125a:focus{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125b:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125c[data-state=checked]{border-left-color:var(--seq-colors-gnosis-dark)}.fyvr125d,.fyvr125e:active{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125f:disabled,.fyvr125f[data-disabled]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125g:focus{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125h:hover:not([disabled]){border-left-color:var(--seq-colors-gnosis-light)}.fyvr125i[data-state=checked]{border-left-color:var(--seq-colors-gnosis-light)}.fyvr125j,.fyvr125k:active{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125l:disabled,.fyvr125l[data-disabled]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125m:focus{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125n:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-dark)}.fyvr125o[data-state=checked]{border-left-color:var(--seq-colors-polygon-dark)}.fyvr125p,.fyvr125q:active{border-left-color:var(--seq-colors-polygon-light)}.fyvr125r:disabled,.fyvr125r[data-disabled]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125s:focus{border-left-color:var(--seq-colors-polygon-light)}.fyvr125t:hover:not([disabled]){border-left-color:var(--seq-colors-polygon-light)}.fyvr125u[data-state=checked]{border-left-color:var(--seq-colors-polygon-light)}.fyvr125v,.fyvr125w:active{border-left-color:var(--seq-colors-text100)}.fyvr125x:disabled,.fyvr125x[data-disabled]{border-left-color:var(--seq-colors-text100)}.fyvr125y:focus{border-left-color:var(--seq-colors-text100)}.fyvr125z:hover:not([disabled]){border-left-color:var(--seq-colors-text100)}.fyvr1260[data-state=checked]{border-left-color:var(--seq-colors-text100)}.fyvr1261,.fyvr1262:active{border-left-color:var(--seq-colors-text80)}.fyvr1263:disabled,.fyvr1263[data-disabled]{border-left-color:var(--seq-colors-text80)}.fyvr1264:focus{border-left-color:var(--seq-colors-text80)}.fyvr1265:hover:not([disabled]){border-left-color:var(--seq-colors-text80)}.fyvr1266[data-state=checked]{border-left-color:var(--seq-colors-text80)}.fyvr1267,.fyvr1268:active{border-left-color:var(--seq-colors-text50)}.fyvr1269:disabled,.fyvr1269[data-disabled]{border-left-color:var(--seq-colors-text50)}.fyvr126a:focus{border-left-color:var(--seq-colors-text50)}.fyvr126b:hover:not([disabled]){border-left-color:var(--seq-colors-text50)}.fyvr126c[data-state=checked]{border-left-color:var(--seq-colors-text50)}.fyvr126d,.fyvr126e:active{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126f:disabled,.fyvr126f[data-disabled]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126g:focus{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126h:hover:not([disabled]){border-left-color:var(--seq-colors-text-inverse100)}.fyvr126i[data-state=checked]{border-left-color:var(--seq-colors-text-inverse100)}.fyvr126j,.fyvr126k:active{border-left-color:var(--seq-colors-background-primary)}.fyvr126l:disabled,.fyvr126l[data-disabled]{border-left-color:var(--seq-colors-background-primary)}.fyvr126m:focus{border-left-color:var(--seq-colors-background-primary)}.fyvr126n:hover:not([disabled]){border-left-color:var(--seq-colors-background-primary)}.fyvr126o[data-state=checked]{border-left-color:var(--seq-colors-background-primary)}.fyvr126p,.fyvr126q:active{border-left-color:var(--seq-colors-background-secondary)}.fyvr126r:disabled,.fyvr126r[data-disabled]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126s:focus{border-left-color:var(--seq-colors-background-secondary)}.fyvr126t:hover:not([disabled]){border-left-color:var(--seq-colors-background-secondary)}.fyvr126u[data-state=checked]{border-left-color:var(--seq-colors-background-secondary)}.fyvr126v,.fyvr126w:active{border-left-color:var(--seq-colors-background-contrast)}.fyvr126x:disabled,.fyvr126x[data-disabled]{border-left-color:var(--seq-colors-background-contrast)}.fyvr126y:focus{border-left-color:var(--seq-colors-background-contrast)}.fyvr126z:hover:not([disabled]){border-left-color:var(--seq-colors-background-contrast)}.fyvr1270[data-state=checked]{border-left-color:var(--seq-colors-background-contrast)}.fyvr1271,.fyvr1272:active{border-left-color:var(--seq-colors-background-muted)}.fyvr1273:disabled,.fyvr1273[data-disabled]{border-left-color:var(--seq-colors-background-muted)}.fyvr1274:focus{border-left-color:var(--seq-colors-background-muted)}.fyvr1275:hover:not([disabled]){border-left-color:var(--seq-colors-background-muted)}.fyvr1276[data-state=checked]{border-left-color:var(--seq-colors-background-muted)}.fyvr1277,.fyvr1278:active{border-left-color:var(--seq-colors-background-control)}.fyvr1279:disabled,.fyvr1279[data-disabled]{border-left-color:var(--seq-colors-background-control)}.fyvr127a:focus{border-left-color:var(--seq-colors-background-control)}.fyvr127b:hover:not([disabled]){border-left-color:var(--seq-colors-background-control)}.fyvr127c[data-state=checked]{border-left-color:var(--seq-colors-background-control)}.fyvr127d,.fyvr127e:active{border-left-color:var(--seq-colors-background-inverse)}.fyvr127f:disabled,.fyvr127f[data-disabled]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127g:focus{border-left-color:var(--seq-colors-background-inverse)}.fyvr127h:hover:not([disabled]){border-left-color:var(--seq-colors-background-inverse)}.fyvr127i[data-state=checked]{border-left-color:var(--seq-colors-background-inverse)}.fyvr127j,.fyvr127k:active{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127l:disabled,.fyvr127l[data-disabled]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127m:focus{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127n:hover:not([disabled]){border-left-color:var(--seq-colors-background-backdrop)}.fyvr127o[data-state=checked]{border-left-color:var(--seq-colors-background-backdrop)}.fyvr127p,.fyvr127q:active{border-left-color:var(--seq-colors-background-overlay)}.fyvr127r:disabled,.fyvr127r[data-disabled]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127s:focus{border-left-color:var(--seq-colors-background-overlay)}.fyvr127t:hover:not([disabled]){border-left-color:var(--seq-colors-background-overlay)}.fyvr127u[data-state=checked]{border-left-color:var(--seq-colors-background-overlay)}.fyvr127v,.fyvr127w:active{border-left-color:var(--seq-colors-background-raised)}.fyvr127x:disabled,.fyvr127x[data-disabled]{border-left-color:var(--seq-colors-background-raised)}.fyvr127y:focus{border-left-color:var(--seq-colors-background-raised)}.fyvr127z:hover:not([disabled]){border-left-color:var(--seq-colors-background-raised)}.fyvr1280[data-state=checked]{border-left-color:var(--seq-colors-background-raised)}.fyvr1281,.fyvr1282:active{border-left-color:var(--seq-colors-button-glass)}.fyvr1283:disabled,.fyvr1283[data-disabled]{border-left-color:var(--seq-colors-button-glass)}.fyvr1284:focus{border-left-color:var(--seq-colors-button-glass)}.fyvr1285:hover:not([disabled]){border-left-color:var(--seq-colors-button-glass)}.fyvr1286[data-state=checked]{border-left-color:var(--seq-colors-button-glass)}.fyvr1287,.fyvr1288:active{border-left-color:var(--seq-colors-button-emphasis)}.fyvr1289:disabled,.fyvr1289[data-disabled]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128a:focus{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128b:hover:not([disabled]){border-left-color:var(--seq-colors-button-emphasis)}.fyvr128c[data-state=checked]{border-left-color:var(--seq-colors-button-emphasis)}.fyvr128d,.fyvr128e:active{border-left-color:var(--seq-colors-button-inverse)}.fyvr128f:disabled,.fyvr128f[data-disabled]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128g:focus{border-left-color:var(--seq-colors-button-inverse)}.fyvr128h:hover:not([disabled]){border-left-color:var(--seq-colors-button-inverse)}.fyvr128i[data-state=checked]{border-left-color:var(--seq-colors-button-inverse)}.fyvr128j,.fyvr128k:active{border-left-color:var(--seq-colors-border-normal)}.fyvr128l:disabled,.fyvr128l[data-disabled]{border-left-color:var(--seq-colors-border-normal)}.fyvr128m:focus{border-left-color:var(--seq-colors-border-normal)}.fyvr128n:hover:not([disabled]){border-left-color:var(--seq-colors-border-normal)}.fyvr128o[data-state=checked]{border-left-color:var(--seq-colors-border-normal)}.fyvr128p,.fyvr128q:active{border-left-color:var(--seq-colors-border-focus)}.fyvr128r:disabled,.fyvr128r[data-disabled]{border-left-color:var(--seq-colors-border-focus)}.fyvr128s:focus{border-left-color:var(--seq-colors-border-focus)}.fyvr128t:hover:not([disabled]){border-left-color:var(--seq-colors-border-focus)}.fyvr128u[data-state=checked]{border-left-color:var(--seq-colors-border-focus)}.fyvr128v,.fyvr128w:active{border-left-style:solid}.fyvr128x:disabled,.fyvr128x[data-disabled]{border-left-style:solid}.fyvr128y:focus{border-left-style:solid}.fyvr128z:hover:not([disabled]){border-left-style:solid}.fyvr1290[data-state=checked]{border-left-style:solid}.fyvr1291,.fyvr1292:active{border-left-style:dashed}.fyvr1293:disabled,.fyvr1293[data-disabled]{border-left-style:dashed}.fyvr1294:focus{border-left-style:dashed}.fyvr1295:hover:not([disabled]){border-left-style:dashed}.fyvr1296[data-state=checked]{border-left-style:dashed}.fyvr1297,.fyvr1298:active{border-left-style:dotted}.fyvr1299:disabled,.fyvr1299[data-disabled]{border-left-style:dotted}.fyvr129a:focus{border-left-style:dotted}.fyvr129b:hover:not([disabled]){border-left-style:dotted}.fyvr129c[data-state=checked]{border-left-style:dotted}.fyvr129d,.fyvr129e:active{border-right-color:var(--seq-colors-black)}.fyvr129f:disabled,.fyvr129f[data-disabled]{border-right-color:var(--seq-colors-black)}.fyvr129g:focus{border-right-color:var(--seq-colors-black)}.fyvr129h:hover:not([disabled]){border-right-color:var(--seq-colors-black)}.fyvr129i[data-state=checked]{border-right-color:var(--seq-colors-black)}.fyvr129j,.fyvr129k:active{border-right-color:var(--seq-colors-white)}.fyvr129l:disabled,.fyvr129l[data-disabled]{border-right-color:var(--seq-colors-white)}.fyvr129m:focus{border-right-color:var(--seq-colors-white)}.fyvr129n:hover:not([disabled]){border-right-color:var(--seq-colors-white)}.fyvr129o[data-state=checked]{border-right-color:var(--seq-colors-white)}.fyvr129p,.fyvr129q:active{border-right-color:var(--seq-colors-inherit)}.fyvr129r:disabled,.fyvr129r[data-disabled]{border-right-color:var(--seq-colors-inherit)}.fyvr129s:focus{border-right-color:var(--seq-colors-inherit)}.fyvr129t:hover:not([disabled]){border-right-color:var(--seq-colors-inherit)}.fyvr129u[data-state=checked]{border-right-color:var(--seq-colors-inherit)}.fyvr129v,.fyvr129w:active{border-right-color:var(--seq-colors-transparent)}.fyvr129x:disabled,.fyvr129x[data-disabled]{border-right-color:var(--seq-colors-transparent)}.fyvr129y:focus{border-right-color:var(--seq-colors-transparent)}.fyvr129z:hover:not([disabled]){border-right-color:var(--seq-colors-transparent)}.fyvr12a0[data-state=checked]{border-right-color:var(--seq-colors-transparent)}.fyvr12a1,.fyvr12a2:active{border-right-color:var(--seq-colors-positive)}.fyvr12a3:disabled,.fyvr12a3[data-disabled]{border-right-color:var(--seq-colors-positive)}.fyvr12a4:focus{border-right-color:var(--seq-colors-positive)}.fyvr12a5:hover:not([disabled]){border-right-color:var(--seq-colors-positive)}.fyvr12a6[data-state=checked]{border-right-color:var(--seq-colors-positive)}.fyvr12a7,.fyvr12a8:active{border-right-color:var(--seq-colors-negative)}.fyvr12a9:disabled,.fyvr12a9[data-disabled]{border-right-color:var(--seq-colors-negative)}.fyvr12aa:focus{border-right-color:var(--seq-colors-negative)}.fyvr12ab:hover:not([disabled]){border-right-color:var(--seq-colors-negative)}.fyvr12ac[data-state=checked]{border-right-color:var(--seq-colors-negative)}.fyvr12ad,.fyvr12ae:active{border-right-color:var(--seq-colors-info)}.fyvr12af:disabled,.fyvr12af[data-disabled]{border-right-color:var(--seq-colors-info)}.fyvr12ag:focus{border-right-color:var(--seq-colors-info)}.fyvr12ah:hover:not([disabled]){border-right-color:var(--seq-colors-info)}.fyvr12ai[data-state=checked]{border-right-color:var(--seq-colors-info)}.fyvr12aj,.fyvr12ak:active{border-right-color:var(--seq-colors-warning)}.fyvr12al:disabled,.fyvr12al[data-disabled]{border-right-color:var(--seq-colors-warning)}.fyvr12am:focus{border-right-color:var(--seq-colors-warning)}.fyvr12an:hover:not([disabled]){border-right-color:var(--seq-colors-warning)}.fyvr12ao[data-state=checked]{border-right-color:var(--seq-colors-warning)}.fyvr12ap,.fyvr12aq:active{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12ar:disabled,.fyvr12ar[data-disabled]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12as:focus{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12at:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12au[data-state=checked]{border-right-color:var(--seq-colors-gradient-backdrop)}.fyvr12av,.fyvr12aw:active{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ax:disabled,.fyvr12ax[data-disabled]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12ay:focus{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12az:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b0[data-state=checked]{border-right-color:var(--seq-colors-gradient-primary)}.fyvr12b1,.fyvr12b2:active{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b3:disabled,.fyvr12b3[data-disabled]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b4:focus{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b5:hover:not([disabled]){border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b6[data-state=checked]{border-right-color:var(--seq-colors-gradient-secondary)}.fyvr12b7,.fyvr12b8:active{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12b9:disabled,.fyvr12b9[data-disabled]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12ba:focus{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bb:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bc[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-dark)}.fyvr12bd,.fyvr12be:active{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bf:disabled,.fyvr12bf[data-disabled]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bg:focus{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bh:hover:not([disabled]){border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bi[data-state=checked]{border-right-color:var(--seq-colors-arbitrum-light)}.fyvr12bj,.fyvr12bk:active{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bl:disabled,.fyvr12bl[data-disabled]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bm:focus{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bn:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bo[data-state=checked]{border-right-color:var(--seq-colors-avalance-dark)}.fyvr12bp,.fyvr12bq:active{border-right-color:var(--seq-colors-avalance-light)}.fyvr12br:disabled,.fyvr12br[data-disabled]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bs:focus{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bt:hover:not([disabled]){border-right-color:var(--seq-colors-avalance-light)}.fyvr12bu[data-state=checked]{border-right-color:var(--seq-colors-avalance-light)}.fyvr12bv,.fyvr12bw:active{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bx:disabled,.fyvr12bx[data-disabled]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12by:focus{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12bz:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c0[data-state=checked]{border-right-color:var(--seq-colors-bsc-dark)}.fyvr12c1,.fyvr12c2:active{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c3:disabled,.fyvr12c3[data-disabled]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c4:focus{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c5:hover:not([disabled]){border-right-color:var(--seq-colors-bsc-light)}.fyvr12c6[data-state=checked]{border-right-color:var(--seq-colors-bsc-light)}.fyvr12c7,.fyvr12c8:active{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12c9:disabled,.fyvr12c9[data-disabled]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12ca:focus{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cb:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cc[data-state=checked]{border-right-color:var(--seq-colors-ethereum-dark)}.fyvr12cd,.fyvr12ce:active{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cf:disabled,.fyvr12cf[data-disabled]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cg:focus{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ch:hover:not([disabled]){border-right-color:var(--seq-colors-ethereum-light)}.fyvr12ci[data-state=checked]{border-right-color:var(--seq-colors-ethereum-light)}.fyvr12cj,.fyvr12ck:active{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cl:disabled,.fyvr12cl[data-disabled]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cm:focus{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cn:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12co[data-state=checked]{border-right-color:var(--seq-colors-gnosis-dark)}.fyvr12cp,.fyvr12cq:active{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cr:disabled,.fyvr12cr[data-disabled]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cs:focus{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12ct:hover:not([disabled]){border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cu[data-state=checked]{border-right-color:var(--seq-colors-gnosis-light)}.fyvr12cv,.fyvr12cw:active{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cx:disabled,.fyvr12cx[data-disabled]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cy:focus{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12cz:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d0[data-state=checked]{border-right-color:var(--seq-colors-polygon-dark)}.fyvr12d1,.fyvr12d2:active{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d3:disabled,.fyvr12d3[data-disabled]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d4:focus{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d5:hover:not([disabled]){border-right-color:var(--seq-colors-polygon-light)}.fyvr12d6[data-state=checked]{border-right-color:var(--seq-colors-polygon-light)}.fyvr12d7,.fyvr12d8:active{border-right-color:var(--seq-colors-text100)}.fyvr12d9:disabled,.fyvr12d9[data-disabled]{border-right-color:var(--seq-colors-text100)}.fyvr12da:focus{border-right-color:var(--seq-colors-text100)}.fyvr12db:hover:not([disabled]){border-right-color:var(--seq-colors-text100)}.fyvr12dc[data-state=checked]{border-right-color:var(--seq-colors-text100)}.fyvr12dd,.fyvr12de:active{border-right-color:var(--seq-colors-text80)}.fyvr12df:disabled,.fyvr12df[data-disabled]{border-right-color:var(--seq-colors-text80)}.fyvr12dg:focus{border-right-color:var(--seq-colors-text80)}.fyvr12dh:hover:not([disabled]){border-right-color:var(--seq-colors-text80)}.fyvr12di[data-state=checked]{border-right-color:var(--seq-colors-text80)}.fyvr12dj,.fyvr12dk:active{border-right-color:var(--seq-colors-text50)}.fyvr12dl:disabled,.fyvr12dl[data-disabled]{border-right-color:var(--seq-colors-text50)}.fyvr12dm:focus{border-right-color:var(--seq-colors-text50)}.fyvr12dn:hover:not([disabled]){border-right-color:var(--seq-colors-text50)}.fyvr12do[data-state=checked]{border-right-color:var(--seq-colors-text50)}.fyvr12dp,.fyvr12dq:active{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dr:disabled,.fyvr12dr[data-disabled]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12ds:focus{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dt:hover:not([disabled]){border-right-color:var(--seq-colors-text-inverse100)}.fyvr12du[data-state=checked]{border-right-color:var(--seq-colors-text-inverse100)}.fyvr12dv,.fyvr12dw:active{border-right-color:var(--seq-colors-background-primary)}.fyvr12dx:disabled,.fyvr12dx[data-disabled]{border-right-color:var(--seq-colors-background-primary)}.fyvr12dy:focus{border-right-color:var(--seq-colors-background-primary)}.fyvr12dz:hover:not([disabled]){border-right-color:var(--seq-colors-background-primary)}.fyvr12e0[data-state=checked]{border-right-color:var(--seq-colors-background-primary)}.fyvr12e1,.fyvr12e2:active{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e3:disabled,.fyvr12e3[data-disabled]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e4:focus{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e5:hover:not([disabled]){border-right-color:var(--seq-colors-background-secondary)}.fyvr12e6[data-state=checked]{border-right-color:var(--seq-colors-background-secondary)}.fyvr12e7,.fyvr12e8:active{border-right-color:var(--seq-colors-background-contrast)}.fyvr12e9:disabled,.fyvr12e9[data-disabled]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ea:focus{border-right-color:var(--seq-colors-background-contrast)}.fyvr12eb:hover:not([disabled]){border-right-color:var(--seq-colors-background-contrast)}.fyvr12ec[data-state=checked]{border-right-color:var(--seq-colors-background-contrast)}.fyvr12ed,.fyvr12ee:active{border-right-color:var(--seq-colors-background-muted)}.fyvr12ef:disabled,.fyvr12ef[data-disabled]{border-right-color:var(--seq-colors-background-muted)}.fyvr12eg:focus{border-right-color:var(--seq-colors-background-muted)}.fyvr12eh:hover:not([disabled]){border-right-color:var(--seq-colors-background-muted)}.fyvr12ei[data-state=checked]{border-right-color:var(--seq-colors-background-muted)}.fyvr12ej,.fyvr12ek:active{border-right-color:var(--seq-colors-background-control)}.fyvr12el:disabled,.fyvr12el[data-disabled]{border-right-color:var(--seq-colors-background-control)}.fyvr12em:focus{border-right-color:var(--seq-colors-background-control)}.fyvr12en:hover:not([disabled]){border-right-color:var(--seq-colors-background-control)}.fyvr12eo[data-state=checked]{border-right-color:var(--seq-colors-background-control)}.fyvr12ep,.fyvr12eq:active{border-right-color:var(--seq-colors-background-inverse)}.fyvr12er:disabled,.fyvr12er[data-disabled]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12es:focus{border-right-color:var(--seq-colors-background-inverse)}.fyvr12et:hover:not([disabled]){border-right-color:var(--seq-colors-background-inverse)}.fyvr12eu[data-state=checked]{border-right-color:var(--seq-colors-background-inverse)}.fyvr12ev,.fyvr12ew:active{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ex:disabled,.fyvr12ex[data-disabled]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ey:focus{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12ez:hover:not([disabled]){border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f0[data-state=checked]{border-right-color:var(--seq-colors-background-backdrop)}.fyvr12f1,.fyvr12f2:active{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f3:disabled,.fyvr12f3[data-disabled]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f4:focus{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f5:hover:not([disabled]){border-right-color:var(--seq-colors-background-overlay)}.fyvr12f6[data-state=checked]{border-right-color:var(--seq-colors-background-overlay)}.fyvr12f7,.fyvr12f8:active{border-right-color:var(--seq-colors-background-raised)}.fyvr12f9:disabled,.fyvr12f9[data-disabled]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fa:focus{border-right-color:var(--seq-colors-background-raised)}.fyvr12fb:hover:not([disabled]){border-right-color:var(--seq-colors-background-raised)}.fyvr12fc[data-state=checked]{border-right-color:var(--seq-colors-background-raised)}.fyvr12fd,.fyvr12fe:active{border-right-color:var(--seq-colors-button-glass)}.fyvr12ff:disabled,.fyvr12ff[data-disabled]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fg:focus{border-right-color:var(--seq-colors-button-glass)}.fyvr12fh:hover:not([disabled]){border-right-color:var(--seq-colors-button-glass)}.fyvr12fi[data-state=checked]{border-right-color:var(--seq-colors-button-glass)}.fyvr12fj,.fyvr12fk:active{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fl:disabled,.fyvr12fl[data-disabled]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fm:focus{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fn:hover:not([disabled]){border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fo[data-state=checked]{border-right-color:var(--seq-colors-button-emphasis)}.fyvr12fp,.fyvr12fq:active{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fr:disabled,.fyvr12fr[data-disabled]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fs:focus{border-right-color:var(--seq-colors-button-inverse)}.fyvr12ft:hover:not([disabled]){border-right-color:var(--seq-colors-button-inverse)}.fyvr12fu[data-state=checked]{border-right-color:var(--seq-colors-button-inverse)}.fyvr12fv,.fyvr12fw:active{border-right-color:var(--seq-colors-border-normal)}.fyvr12fx:disabled,.fyvr12fx[data-disabled]{border-right-color:var(--seq-colors-border-normal)}.fyvr12fy:focus{border-right-color:var(--seq-colors-border-normal)}.fyvr12fz:hover:not([disabled]){border-right-color:var(--seq-colors-border-normal)}.fyvr12g0[data-state=checked]{border-right-color:var(--seq-colors-border-normal)}.fyvr12g1,.fyvr12g2:active{border-right-color:var(--seq-colors-border-focus)}.fyvr12g3:disabled,.fyvr12g3[data-disabled]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g4:focus{border-right-color:var(--seq-colors-border-focus)}.fyvr12g5:hover:not([disabled]){border-right-color:var(--seq-colors-border-focus)}.fyvr12g6[data-state=checked]{border-right-color:var(--seq-colors-border-focus)}.fyvr12g7,.fyvr12g8:active{border-right-style:solid}.fyvr12g9:disabled,.fyvr12g9[data-disabled]{border-right-style:solid}.fyvr12ga:focus{border-right-style:solid}.fyvr12gb:hover:not([disabled]){border-right-style:solid}.fyvr12gc[data-state=checked]{border-right-style:solid}.fyvr12gd,.fyvr12ge:active{border-right-style:dashed}.fyvr12gf:disabled,.fyvr12gf[data-disabled]{border-right-style:dashed}.fyvr12gg:focus{border-right-style:dashed}.fyvr12gh:hover:not([disabled]){border-right-style:dashed}.fyvr12gi[data-state=checked]{border-right-style:dashed}.fyvr12gj,.fyvr12gk:active{border-right-style:dotted}.fyvr12gl:disabled,.fyvr12gl[data-disabled]{border-right-style:dotted}.fyvr12gm:focus{border-right-style:dotted}.fyvr12gn:hover:not([disabled]){border-right-style:dotted}.fyvr12go[data-state=checked]{border-right-style:dotted}.fyvr12gp,.fyvr12gq:active{border-top-color:var(--seq-colors-black)}.fyvr12gr:disabled,.fyvr12gr[data-disabled]{border-top-color:var(--seq-colors-black)}.fyvr12gs:focus{border-top-color:var(--seq-colors-black)}.fyvr12gt:hover:not([disabled]){border-top-color:var(--seq-colors-black)}.fyvr12gu[data-state=checked]{border-top-color:var(--seq-colors-black)}.fyvr12gv,.fyvr12gw:active{border-top-color:var(--seq-colors-white)}.fyvr12gx:disabled,.fyvr12gx[data-disabled]{border-top-color:var(--seq-colors-white)}.fyvr12gy:focus{border-top-color:var(--seq-colors-white)}.fyvr12gz:hover:not([disabled]){border-top-color:var(--seq-colors-white)}.fyvr12h0[data-state=checked]{border-top-color:var(--seq-colors-white)}.fyvr12h1,.fyvr12h2:active{border-top-color:var(--seq-colors-inherit)}.fyvr12h3:disabled,.fyvr12h3[data-disabled]{border-top-color:var(--seq-colors-inherit)}.fyvr12h4:focus{border-top-color:var(--seq-colors-inherit)}.fyvr12h5:hover:not([disabled]){border-top-color:var(--seq-colors-inherit)}.fyvr12h6[data-state=checked]{border-top-color:var(--seq-colors-inherit)}.fyvr12h7,.fyvr12h8:active{border-top-color:var(--seq-colors-transparent)}.fyvr12h9:disabled,.fyvr12h9[data-disabled]{border-top-color:var(--seq-colors-transparent)}.fyvr12ha:focus{border-top-color:var(--seq-colors-transparent)}.fyvr12hb:hover:not([disabled]){border-top-color:var(--seq-colors-transparent)}.fyvr12hc[data-state=checked]{border-top-color:var(--seq-colors-transparent)}.fyvr12hd,.fyvr12he:active{border-top-color:var(--seq-colors-positive)}.fyvr12hf:disabled,.fyvr12hf[data-disabled]{border-top-color:var(--seq-colors-positive)}.fyvr12hg:focus{border-top-color:var(--seq-colors-positive)}.fyvr12hh:hover:not([disabled]){border-top-color:var(--seq-colors-positive)}.fyvr12hi[data-state=checked]{border-top-color:var(--seq-colors-positive)}.fyvr12hj,.fyvr12hk:active{border-top-color:var(--seq-colors-negative)}.fyvr12hl:disabled,.fyvr12hl[data-disabled]{border-top-color:var(--seq-colors-negative)}.fyvr12hm:focus{border-top-color:var(--seq-colors-negative)}.fyvr12hn:hover:not([disabled]){border-top-color:var(--seq-colors-negative)}.fyvr12ho[data-state=checked]{border-top-color:var(--seq-colors-negative)}.fyvr12hp,.fyvr12hq:active{border-top-color:var(--seq-colors-info)}.fyvr12hr:disabled,.fyvr12hr[data-disabled]{border-top-color:var(--seq-colors-info)}.fyvr12hs:focus{border-top-color:var(--seq-colors-info)}.fyvr12ht:hover:not([disabled]){border-top-color:var(--seq-colors-info)}.fyvr12hu[data-state=checked]{border-top-color:var(--seq-colors-info)}.fyvr12hv,.fyvr12hw:active{border-top-color:var(--seq-colors-warning)}.fyvr12hx:disabled,.fyvr12hx[data-disabled]{border-top-color:var(--seq-colors-warning)}.fyvr12hy:focus{border-top-color:var(--seq-colors-warning)}.fyvr12hz:hover:not([disabled]){border-top-color:var(--seq-colors-warning)}.fyvr12i0[data-state=checked]{border-top-color:var(--seq-colors-warning)}.fyvr12i1,.fyvr12i2:active{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i3:disabled,.fyvr12i3[data-disabled]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i4:focus{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i5:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i6[data-state=checked]{border-top-color:var(--seq-colors-gradient-backdrop)}.fyvr12i7,.fyvr12i8:active{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12i9:disabled,.fyvr12i9[data-disabled]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ia:focus{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ib:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-primary)}.fyvr12ic[data-state=checked]{border-top-color:var(--seq-colors-gradient-primary)}.fyvr12id,.fyvr12ie:active{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12if:disabled,.fyvr12if[data-disabled]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ig:focus{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ih:hover:not([disabled]){border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ii[data-state=checked]{border-top-color:var(--seq-colors-gradient-secondary)}.fyvr12ij,.fyvr12ik:active{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12il:disabled,.fyvr12il[data-disabled]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12im:focus{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12in:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12io[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-dark)}.fyvr12ip,.fyvr12iq:active{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12ir:disabled,.fyvr12ir[data-disabled]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12is:focus{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12it:hover:not([disabled]){border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iu[data-state=checked]{border-top-color:var(--seq-colors-arbitrum-light)}.fyvr12iv,.fyvr12iw:active{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12ix:disabled,.fyvr12ix[data-disabled]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iy:focus{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12iz:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j0[data-state=checked]{border-top-color:var(--seq-colors-avalance-dark)}.fyvr12j1,.fyvr12j2:active{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j3:disabled,.fyvr12j3[data-disabled]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j4:focus{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j5:hover:not([disabled]){border-top-color:var(--seq-colors-avalance-light)}.fyvr12j6[data-state=checked]{border-top-color:var(--seq-colors-avalance-light)}.fyvr12j7,.fyvr12j8:active{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12j9:disabled,.fyvr12j9[data-disabled]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12ja:focus{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jb:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jc[data-state=checked]{border-top-color:var(--seq-colors-bsc-dark)}.fyvr12jd,.fyvr12je:active{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jf:disabled,.fyvr12jf[data-disabled]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jg:focus{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jh:hover:not([disabled]){border-top-color:var(--seq-colors-bsc-light)}.fyvr12ji[data-state=checked]{border-top-color:var(--seq-colors-bsc-light)}.fyvr12jj,.fyvr12jk:active{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jl:disabled,.fyvr12jl[data-disabled]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jm:focus{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jn:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jo[data-state=checked]{border-top-color:var(--seq-colors-ethereum-dark)}.fyvr12jp,.fyvr12jq:active{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jr:disabled,.fyvr12jr[data-disabled]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12js:focus{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jt:hover:not([disabled]){border-top-color:var(--seq-colors-ethereum-light)}.fyvr12ju[data-state=checked]{border-top-color:var(--seq-colors-ethereum-light)}.fyvr12jv,.fyvr12jw:active{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jx:disabled,.fyvr12jx[data-disabled]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jy:focus{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12jz:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k0[data-state=checked]{border-top-color:var(--seq-colors-gnosis-dark)}.fyvr12k1,.fyvr12k2:active{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k3:disabled,.fyvr12k3[data-disabled]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k4:focus{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k5:hover:not([disabled]){border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k6[data-state=checked]{border-top-color:var(--seq-colors-gnosis-light)}.fyvr12k7,.fyvr12k8:active{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12k9:disabled,.fyvr12k9[data-disabled]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12ka:focus{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kb:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kc[data-state=checked]{border-top-color:var(--seq-colors-polygon-dark)}.fyvr12kd,.fyvr12ke:active{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kf:disabled,.fyvr12kf[data-disabled]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kg:focus{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kh:hover:not([disabled]){border-top-color:var(--seq-colors-polygon-light)}.fyvr12ki[data-state=checked]{border-top-color:var(--seq-colors-polygon-light)}.fyvr12kj,.fyvr12kk:active{border-top-color:var(--seq-colors-text100)}.fyvr12kl:disabled,.fyvr12kl[data-disabled]{border-top-color:var(--seq-colors-text100)}.fyvr12km:focus{border-top-color:var(--seq-colors-text100)}.fyvr12kn:hover:not([disabled]){border-top-color:var(--seq-colors-text100)}.fyvr12ko[data-state=checked]{border-top-color:var(--seq-colors-text100)}.fyvr12kp,.fyvr12kq:active{border-top-color:var(--seq-colors-text80)}.fyvr12kr:disabled,.fyvr12kr[data-disabled]{border-top-color:var(--seq-colors-text80)}.fyvr12ks:focus{border-top-color:var(--seq-colors-text80)}.fyvr12kt:hover:not([disabled]){border-top-color:var(--seq-colors-text80)}.fyvr12ku[data-state=checked]{border-top-color:var(--seq-colors-text80)}.fyvr12kv,.fyvr12kw:active{border-top-color:var(--seq-colors-text50)}.fyvr12kx:disabled,.fyvr12kx[data-disabled]{border-top-color:var(--seq-colors-text50)}.fyvr12ky:focus{border-top-color:var(--seq-colors-text50)}.fyvr12kz:hover:not([disabled]){border-top-color:var(--seq-colors-text50)}.fyvr12l0[data-state=checked]{border-top-color:var(--seq-colors-text50)}.fyvr12l1,.fyvr12l2:active{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l3:disabled,.fyvr12l3[data-disabled]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l4:focus{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l5:hover:not([disabled]){border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l6[data-state=checked]{border-top-color:var(--seq-colors-text-inverse100)}.fyvr12l7,.fyvr12l8:active{border-top-color:var(--seq-colors-background-primary)}.fyvr12l9:disabled,.fyvr12l9[data-disabled]{border-top-color:var(--seq-colors-background-primary)}.fyvr12la:focus{border-top-color:var(--seq-colors-background-primary)}.fyvr12lb:hover:not([disabled]){border-top-color:var(--seq-colors-background-primary)}.fyvr12lc[data-state=checked]{border-top-color:var(--seq-colors-background-primary)}.fyvr12ld,.fyvr12le:active{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lf:disabled,.fyvr12lf[data-disabled]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lg:focus{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lh:hover:not([disabled]){border-top-color:var(--seq-colors-background-secondary)}.fyvr12li[data-state=checked]{border-top-color:var(--seq-colors-background-secondary)}.fyvr12lj,.fyvr12lk:active{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ll:disabled,.fyvr12ll[data-disabled]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lm:focus{border-top-color:var(--seq-colors-background-contrast)}.fyvr12ln:hover:not([disabled]){border-top-color:var(--seq-colors-background-contrast)}.fyvr12lo[data-state=checked]{border-top-color:var(--seq-colors-background-contrast)}.fyvr12lp,.fyvr12lq:active{border-top-color:var(--seq-colors-background-muted)}.fyvr12lr:disabled,.fyvr12lr[data-disabled]{border-top-color:var(--seq-colors-background-muted)}.fyvr12ls:focus{border-top-color:var(--seq-colors-background-muted)}.fyvr12lt:hover:not([disabled]){border-top-color:var(--seq-colors-background-muted)}.fyvr12lu[data-state=checked]{border-top-color:var(--seq-colors-background-muted)}.fyvr12lv,.fyvr12lw:active{border-top-color:var(--seq-colors-background-control)}.fyvr12lx:disabled,.fyvr12lx[data-disabled]{border-top-color:var(--seq-colors-background-control)}.fyvr12ly:focus{border-top-color:var(--seq-colors-background-control)}.fyvr12lz:hover:not([disabled]){border-top-color:var(--seq-colors-background-control)}.fyvr12m0[data-state=checked]{border-top-color:var(--seq-colors-background-control)}.fyvr12m1,.fyvr12m2:active{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m3:disabled,.fyvr12m3[data-disabled]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m4:focus{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m5:hover:not([disabled]){border-top-color:var(--seq-colors-background-inverse)}.fyvr12m6[data-state=checked]{border-top-color:var(--seq-colors-background-inverse)}.fyvr12m7,.fyvr12m8:active{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12m9:disabled,.fyvr12m9[data-disabled]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12ma:focus{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mb:hover:not([disabled]){border-top-color:var(--seq-colors-background-backdrop)}.fyvr12mc[data-state=checked]{border-top-color:var(--seq-colors-background-backdrop)}.fyvr12md,.fyvr12me:active{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mf:disabled,.fyvr12mf[data-disabled]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mg:focus{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mh:hover:not([disabled]){border-top-color:var(--seq-colors-background-overlay)}.fyvr12mi[data-state=checked]{border-top-color:var(--seq-colors-background-overlay)}.fyvr12mj,.fyvr12mk:active{border-top-color:var(--seq-colors-background-raised)}.fyvr12ml:disabled,.fyvr12ml[data-disabled]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mm:focus{border-top-color:var(--seq-colors-background-raised)}.fyvr12mn:hover:not([disabled]){border-top-color:var(--seq-colors-background-raised)}.fyvr12mo[data-state=checked]{border-top-color:var(--seq-colors-background-raised)}.fyvr12mp,.fyvr12mq:active{border-top-color:var(--seq-colors-button-glass)}.fyvr12mr:disabled,.fyvr12mr[data-disabled]{border-top-color:var(--seq-colors-button-glass)}.fyvr12ms:focus{border-top-color:var(--seq-colors-button-glass)}.fyvr12mt:hover:not([disabled]){border-top-color:var(--seq-colors-button-glass)}.fyvr12mu[data-state=checked]{border-top-color:var(--seq-colors-button-glass)}.fyvr12mv,.fyvr12mw:active{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mx:disabled,.fyvr12mx[data-disabled]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12my:focus{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12mz:hover:not([disabled]){border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n0[data-state=checked]{border-top-color:var(--seq-colors-button-emphasis)}.fyvr12n1,.fyvr12n2:active{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n3:disabled,.fyvr12n3[data-disabled]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n4:focus{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n5:hover:not([disabled]){border-top-color:var(--seq-colors-button-inverse)}.fyvr12n6[data-state=checked]{border-top-color:var(--seq-colors-button-inverse)}.fyvr12n7,.fyvr12n8:active{border-top-color:var(--seq-colors-border-normal)}.fyvr12n9:disabled,.fyvr12n9[data-disabled]{border-top-color:var(--seq-colors-border-normal)}.fyvr12na:focus{border-top-color:var(--seq-colors-border-normal)}.fyvr12nb:hover:not([disabled]){border-top-color:var(--seq-colors-border-normal)}.fyvr12nc[data-state=checked]{border-top-color:var(--seq-colors-border-normal)}.fyvr12nd,.fyvr12ne:active{border-top-color:var(--seq-colors-border-focus)}.fyvr12nf:disabled,.fyvr12nf[data-disabled]{border-top-color:var(--seq-colors-border-focus)}.fyvr12ng:focus{border-top-color:var(--seq-colors-border-focus)}.fyvr12nh:hover:not([disabled]){border-top-color:var(--seq-colors-border-focus)}.fyvr12ni[data-state=checked]{border-top-color:var(--seq-colors-border-focus)}.fyvr12nj,.fyvr12nk:active{border-top-style:solid}.fyvr12nl:disabled,.fyvr12nl[data-disabled]{border-top-style:solid}.fyvr12nm:focus{border-top-style:solid}.fyvr12nn:hover:not([disabled]){border-top-style:solid}.fyvr12no[data-state=checked]{border-top-style:solid}.fyvr12np,.fyvr12nq:active{border-top-style:dashed}.fyvr12nr:disabled,.fyvr12nr[data-disabled]{border-top-style:dashed}.fyvr12ns:focus{border-top-style:dashed}.fyvr12nt:hover:not([disabled]){border-top-style:dashed}.fyvr12nu[data-state=checked]{border-top-style:dashed}.fyvr12nv,.fyvr12nw:active{border-top-style:dotted}.fyvr12nx:disabled,.fyvr12nx[data-disabled]{border-top-style:dotted}.fyvr12ny:focus{border-top-style:dotted}.fyvr12nz:hover:not([disabled]){border-top-style:dotted}.fyvr12o0[data-state=checked]{border-top-style:dotted}.fyvr12o1,.fyvr12o2:active{border:none}.fyvr12o3:disabled,.fyvr12o3[data-disabled]{border:none}.fyvr12o4:focus{border:none}.fyvr12o5:hover:not([disabled]){border:none}.fyvr12o6[data-state=checked]{border:none}.fyvr12o7,.fyvr12o8:active{color:var(--seq-colors-black)}.fyvr12o9:disabled,.fyvr12o9[data-disabled]{color:var(--seq-colors-black)}.fyvr12oa:focus{color:var(--seq-colors-black)}.fyvr12ob:hover:not([disabled]){color:var(--seq-colors-black)}.fyvr12oc[data-state=checked]{color:var(--seq-colors-black)}.fyvr12od,.fyvr12oe:active{color:var(--seq-colors-white)}.fyvr12of:disabled,.fyvr12of[data-disabled]{color:var(--seq-colors-white)}.fyvr12og:focus{color:var(--seq-colors-white)}.fyvr12oh:hover:not([disabled]){color:var(--seq-colors-white)}.fyvr12oi[data-state=checked]{color:var(--seq-colors-white)}.fyvr12oj,.fyvr12ok:active{color:var(--seq-colors-inherit)}.fyvr12ol:disabled,.fyvr12ol[data-disabled]{color:var(--seq-colors-inherit)}.fyvr12om:focus{color:var(--seq-colors-inherit)}.fyvr12on:hover:not([disabled]){color:var(--seq-colors-inherit)}.fyvr12oo[data-state=checked]{color:var(--seq-colors-inherit)}.fyvr12op,.fyvr12oq:active{color:var(--seq-colors-transparent)}.fyvr12or:disabled,.fyvr12or[data-disabled]{color:var(--seq-colors-transparent)}.fyvr12os:focus{color:var(--seq-colors-transparent)}.fyvr12ot:hover:not([disabled]){color:var(--seq-colors-transparent)}.fyvr12ou[data-state=checked]{color:var(--seq-colors-transparent)}.fyvr12ov,.fyvr12ow:active{color:var(--seq-colors-positive)}.fyvr12ox:disabled,.fyvr12ox[data-disabled]{color:var(--seq-colors-positive)}.fyvr12oy:focus{color:var(--seq-colors-positive)}.fyvr12oz:hover:not([disabled]){color:var(--seq-colors-positive)}.fyvr12p0[data-state=checked]{color:var(--seq-colors-positive)}.fyvr12p1,.fyvr12p2:active{color:var(--seq-colors-negative)}.fyvr12p3:disabled,.fyvr12p3[data-disabled]{color:var(--seq-colors-negative)}.fyvr12p4:focus{color:var(--seq-colors-negative)}.fyvr12p5:hover:not([disabled]){color:var(--seq-colors-negative)}.fyvr12p6[data-state=checked]{color:var(--seq-colors-negative)}.fyvr12p7,.fyvr12p8:active{color:var(--seq-colors-info)}.fyvr12p9:disabled,.fyvr12p9[data-disabled]{color:var(--seq-colors-info)}.fyvr12pa:focus{color:var(--seq-colors-info)}.fyvr12pb:hover:not([disabled]){color:var(--seq-colors-info)}.fyvr12pc[data-state=checked]{color:var(--seq-colors-info)}.fyvr12pd,.fyvr12pe:active{color:var(--seq-colors-warning)}.fyvr12pf:disabled,.fyvr12pf[data-disabled]{color:var(--seq-colors-warning)}.fyvr12pg:focus{color:var(--seq-colors-warning)}.fyvr12ph:hover:not([disabled]){color:var(--seq-colors-warning)}.fyvr12pi[data-state=checked]{color:var(--seq-colors-warning)}.fyvr12pj,.fyvr12pk:active{color:var(--seq-colors-gradient-backdrop)}.fyvr12pl:disabled,.fyvr12pl[data-disabled]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pm:focus{color:var(--seq-colors-gradient-backdrop)}.fyvr12pn:hover:not([disabled]){color:var(--seq-colors-gradient-backdrop)}.fyvr12po[data-state=checked]{color:var(--seq-colors-gradient-backdrop)}.fyvr12pp,.fyvr12pq:active{color:var(--seq-colors-gradient-primary)}.fyvr12pr:disabled,.fyvr12pr[data-disabled]{color:var(--seq-colors-gradient-primary)}.fyvr12ps:focus{color:var(--seq-colors-gradient-primary)}.fyvr12pt:hover:not([disabled]){color:var(--seq-colors-gradient-primary)}.fyvr12pu[data-state=checked]{color:var(--seq-colors-gradient-primary)}.fyvr12pv,.fyvr12pw:active{color:var(--seq-colors-gradient-secondary)}.fyvr12px:disabled,.fyvr12px[data-disabled]{color:var(--seq-colors-gradient-secondary)}.fyvr12py:focus{color:var(--seq-colors-gradient-secondary)}.fyvr12pz:hover:not([disabled]){color:var(--seq-colors-gradient-secondary)}.fyvr12q0[data-state=checked]{color:var(--seq-colors-gradient-secondary)}.fyvr12q1,.fyvr12q2:active{color:var(--seq-colors-arbitrum-dark)}.fyvr12q3:disabled,.fyvr12q3[data-disabled]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q4:focus{color:var(--seq-colors-arbitrum-dark)}.fyvr12q5:hover:not([disabled]){color:var(--seq-colors-arbitrum-dark)}.fyvr12q6[data-state=checked]{color:var(--seq-colors-arbitrum-dark)}.fyvr12q7,.fyvr12q8:active{color:var(--seq-colors-arbitrum-light)}.fyvr12q9:disabled,.fyvr12q9[data-disabled]{color:var(--seq-colors-arbitrum-light)}.fyvr12qa:focus{color:var(--seq-colors-arbitrum-light)}.fyvr12qb:hover:not([disabled]){color:var(--seq-colors-arbitrum-light)}.fyvr12qc[data-state=checked]{color:var(--seq-colors-arbitrum-light)}.fyvr12qd,.fyvr12qe:active{color:var(--seq-colors-avalance-dark)}.fyvr12qf:disabled,.fyvr12qf[data-disabled]{color:var(--seq-colors-avalance-dark)}.fyvr12qg:focus{color:var(--seq-colors-avalance-dark)}.fyvr12qh:hover:not([disabled]){color:var(--seq-colors-avalance-dark)}.fyvr12qi[data-state=checked]{color:var(--seq-colors-avalance-dark)}.fyvr12qj,.fyvr12qk:active{color:var(--seq-colors-avalance-light)}.fyvr12ql:disabled,.fyvr12ql[data-disabled]{color:var(--seq-colors-avalance-light)}.fyvr12qm:focus{color:var(--seq-colors-avalance-light)}.fyvr12qn:hover:not([disabled]){color:var(--seq-colors-avalance-light)}.fyvr12qo[data-state=checked]{color:var(--seq-colors-avalance-light)}.fyvr12qp,.fyvr12qq:active{color:var(--seq-colors-bsc-dark)}.fyvr12qr:disabled,.fyvr12qr[data-disabled]{color:var(--seq-colors-bsc-dark)}.fyvr12qs:focus{color:var(--seq-colors-bsc-dark)}.fyvr12qt:hover:not([disabled]){color:var(--seq-colors-bsc-dark)}.fyvr12qu[data-state=checked]{color:var(--seq-colors-bsc-dark)}.fyvr12qv,.fyvr12qw:active{color:var(--seq-colors-bsc-light)}.fyvr12qx:disabled,.fyvr12qx[data-disabled]{color:var(--seq-colors-bsc-light)}.fyvr12qy:focus{color:var(--seq-colors-bsc-light)}.fyvr12qz:hover:not([disabled]){color:var(--seq-colors-bsc-light)}.fyvr12r0[data-state=checked]{color:var(--seq-colors-bsc-light)}.fyvr12r1,.fyvr12r2:active{color:var(--seq-colors-ethereum-dark)}.fyvr12r3:disabled,.fyvr12r3[data-disabled]{color:var(--seq-colors-ethereum-dark)}.fyvr12r4:focus{color:var(--seq-colors-ethereum-dark)}.fyvr12r5:hover:not([disabled]){color:var(--seq-colors-ethereum-dark)}.fyvr12r6[data-state=checked]{color:var(--seq-colors-ethereum-dark)}.fyvr12r7,.fyvr12r8:active{color:var(--seq-colors-ethereum-light)}.fyvr12r9:disabled,.fyvr12r9[data-disabled]{color:var(--seq-colors-ethereum-light)}.fyvr12ra:focus{color:var(--seq-colors-ethereum-light)}.fyvr12rb:hover:not([disabled]){color:var(--seq-colors-ethereum-light)}.fyvr12rc[data-state=checked]{color:var(--seq-colors-ethereum-light)}.fyvr12rd,.fyvr12re:active{color:var(--seq-colors-gnosis-dark)}.fyvr12rf:disabled,.fyvr12rf[data-disabled]{color:var(--seq-colors-gnosis-dark)}.fyvr12rg:focus{color:var(--seq-colors-gnosis-dark)}.fyvr12rh:hover:not([disabled]){color:var(--seq-colors-gnosis-dark)}.fyvr12ri[data-state=checked]{color:var(--seq-colors-gnosis-dark)}.fyvr12rj,.fyvr12rk:active{color:var(--seq-colors-gnosis-light)}.fyvr12rl:disabled,.fyvr12rl[data-disabled]{color:var(--seq-colors-gnosis-light)}.fyvr12rm:focus{color:var(--seq-colors-gnosis-light)}.fyvr12rn:hover:not([disabled]){color:var(--seq-colors-gnosis-light)}.fyvr12ro[data-state=checked]{color:var(--seq-colors-gnosis-light)}.fyvr12rp,.fyvr12rq:active{color:var(--seq-colors-polygon-dark)}.fyvr12rr:disabled,.fyvr12rr[data-disabled]{color:var(--seq-colors-polygon-dark)}.fyvr12rs:focus{color:var(--seq-colors-polygon-dark)}.fyvr12rt:hover:not([disabled]){color:var(--seq-colors-polygon-dark)}.fyvr12ru[data-state=checked]{color:var(--seq-colors-polygon-dark)}.fyvr12rv,.fyvr12rw:active{color:var(--seq-colors-polygon-light)}.fyvr12rx:disabled,.fyvr12rx[data-disabled]{color:var(--seq-colors-polygon-light)}.fyvr12ry:focus{color:var(--seq-colors-polygon-light)}.fyvr12rz:hover:not([disabled]){color:var(--seq-colors-polygon-light)}.fyvr12s0[data-state=checked]{color:var(--seq-colors-polygon-light)}.fyvr12s1,.fyvr12s2:active{color:var(--seq-colors-text100)}.fyvr12s3:disabled,.fyvr12s3[data-disabled]{color:var(--seq-colors-text100)}.fyvr12s4:focus{color:var(--seq-colors-text100)}.fyvr12s5:hover:not([disabled]){color:var(--seq-colors-text100)}.fyvr12s6[data-state=checked]{color:var(--seq-colors-text100)}.fyvr12s7,.fyvr12s8:active{color:var(--seq-colors-text80)}.fyvr12s9:disabled,.fyvr12s9[data-disabled]{color:var(--seq-colors-text80)}.fyvr12sa:focus{color:var(--seq-colors-text80)}.fyvr12sb:hover:not([disabled]){color:var(--seq-colors-text80)}.fyvr12sc[data-state=checked]{color:var(--seq-colors-text80)}.fyvr12sd,.fyvr12se:active{color:var(--seq-colors-text50)}.fyvr12sf:disabled,.fyvr12sf[data-disabled]{color:var(--seq-colors-text50)}.fyvr12sg:focus{color:var(--seq-colors-text50)}.fyvr12sh:hover:not([disabled]){color:var(--seq-colors-text50)}.fyvr12si[data-state=checked]{color:var(--seq-colors-text50)}.fyvr12sj,.fyvr12sk:active{color:var(--seq-colors-text-inverse100)}.fyvr12sl:disabled,.fyvr12sl[data-disabled]{color:var(--seq-colors-text-inverse100)}.fyvr12sm:focus{color:var(--seq-colors-text-inverse100)}.fyvr12sn:hover:not([disabled]){color:var(--seq-colors-text-inverse100)}.fyvr12so[data-state=checked]{color:var(--seq-colors-text-inverse100)}.fyvr12sp,.fyvr12sq:active{color:var(--seq-colors-background-primary)}.fyvr12sr:disabled,.fyvr12sr[data-disabled]{color:var(--seq-colors-background-primary)}.fyvr12ss:focus{color:var(--seq-colors-background-primary)}.fyvr12st:hover:not([disabled]){color:var(--seq-colors-background-primary)}.fyvr12su[data-state=checked]{color:var(--seq-colors-background-primary)}.fyvr12sv,.fyvr12sw:active{color:var(--seq-colors-background-secondary)}.fyvr12sx:disabled,.fyvr12sx[data-disabled]{color:var(--seq-colors-background-secondary)}.fyvr12sy:focus{color:var(--seq-colors-background-secondary)}.fyvr12sz:hover:not([disabled]){color:var(--seq-colors-background-secondary)}.fyvr12t0[data-state=checked]{color:var(--seq-colors-background-secondary)}.fyvr12t1,.fyvr12t2:active{color:var(--seq-colors-background-contrast)}.fyvr12t3:disabled,.fyvr12t3[data-disabled]{color:var(--seq-colors-background-contrast)}.fyvr12t4:focus{color:var(--seq-colors-background-contrast)}.fyvr12t5:hover:not([disabled]){color:var(--seq-colors-background-contrast)}.fyvr12t6[data-state=checked]{color:var(--seq-colors-background-contrast)}.fyvr12t7,.fyvr12t8:active{color:var(--seq-colors-background-muted)}.fyvr12t9:disabled,.fyvr12t9[data-disabled]{color:var(--seq-colors-background-muted)}.fyvr12ta:focus{color:var(--seq-colors-background-muted)}.fyvr12tb:hover:not([disabled]){color:var(--seq-colors-background-muted)}.fyvr12tc[data-state=checked]{color:var(--seq-colors-background-muted)}.fyvr12td,.fyvr12te:active{color:var(--seq-colors-background-control)}.fyvr12tf:disabled,.fyvr12tf[data-disabled]{color:var(--seq-colors-background-control)}.fyvr12tg:focus{color:var(--seq-colors-background-control)}.fyvr12th:hover:not([disabled]){color:var(--seq-colors-background-control)}.fyvr12ti[data-state=checked]{color:var(--seq-colors-background-control)}.fyvr12tj,.fyvr12tk:active{color:var(--seq-colors-background-inverse)}.fyvr12tl:disabled,.fyvr12tl[data-disabled]{color:var(--seq-colors-background-inverse)}.fyvr12tm:focus{color:var(--seq-colors-background-inverse)}.fyvr12tn:hover:not([disabled]){color:var(--seq-colors-background-inverse)}.fyvr12to[data-state=checked]{color:var(--seq-colors-background-inverse)}.fyvr12tp,.fyvr12tq:active{color:var(--seq-colors-background-backdrop)}.fyvr12tr:disabled,.fyvr12tr[data-disabled]{color:var(--seq-colors-background-backdrop)}.fyvr12ts:focus{color:var(--seq-colors-background-backdrop)}.fyvr12tt:hover:not([disabled]){color:var(--seq-colors-background-backdrop)}.fyvr12tu[data-state=checked]{color:var(--seq-colors-background-backdrop)}.fyvr12tv,.fyvr12tw:active{color:var(--seq-colors-background-overlay)}.fyvr12tx:disabled,.fyvr12tx[data-disabled]{color:var(--seq-colors-background-overlay)}.fyvr12ty:focus{color:var(--seq-colors-background-overlay)}.fyvr12tz:hover:not([disabled]){color:var(--seq-colors-background-overlay)}.fyvr12u0[data-state=checked]{color:var(--seq-colors-background-overlay)}.fyvr12u1,.fyvr12u2:active{color:var(--seq-colors-background-raised)}.fyvr12u3:disabled,.fyvr12u3[data-disabled]{color:var(--seq-colors-background-raised)}.fyvr12u4:focus{color:var(--seq-colors-background-raised)}.fyvr12u5:hover:not([disabled]){color:var(--seq-colors-background-raised)}.fyvr12u6[data-state=checked]{color:var(--seq-colors-background-raised)}.fyvr12u7,.fyvr12u8:active{color:var(--seq-colors-button-glass)}.fyvr12u9:disabled,.fyvr12u9[data-disabled]{color:var(--seq-colors-button-glass)}.fyvr12ua:focus{color:var(--seq-colors-button-glass)}.fyvr12ub:hover:not([disabled]){color:var(--seq-colors-button-glass)}.fyvr12uc[data-state=checked]{color:var(--seq-colors-button-glass)}.fyvr12ud,.fyvr12ue:active{color:var(--seq-colors-button-emphasis)}.fyvr12uf:disabled,.fyvr12uf[data-disabled]{color:var(--seq-colors-button-emphasis)}.fyvr12ug:focus{color:var(--seq-colors-button-emphasis)}.fyvr12uh:hover:not([disabled]){color:var(--seq-colors-button-emphasis)}.fyvr12ui[data-state=checked]{color:var(--seq-colors-button-emphasis)}.fyvr12uj,.fyvr12uk:active{color:var(--seq-colors-button-inverse)}.fyvr12ul:disabled,.fyvr12ul[data-disabled]{color:var(--seq-colors-button-inverse)}.fyvr12um:focus{color:var(--seq-colors-button-inverse)}.fyvr12un:hover:not([disabled]){color:var(--seq-colors-button-inverse)}.fyvr12uo[data-state=checked]{color:var(--seq-colors-button-inverse)}.fyvr12up,.fyvr12uq:active{color:var(--seq-colors-border-normal)}.fyvr12ur:disabled,.fyvr12ur[data-disabled]{color:var(--seq-colors-border-normal)}.fyvr12us:focus{color:var(--seq-colors-border-normal)}.fyvr12ut:hover:not([disabled]){color:var(--seq-colors-border-normal)}.fyvr12uu[data-state=checked]{color:var(--seq-colors-border-normal)}.fyvr12uv,.fyvr12uw:active{color:var(--seq-colors-border-focus)}.fyvr12ux:disabled,.fyvr12ux[data-disabled]{color:var(--seq-colors-border-focus)}.fyvr12uy:focus{color:var(--seq-colors-border-focus)}.fyvr12uz:hover:not([disabled]){color:var(--seq-colors-border-focus)}.fyvr12v0[data-state=checked]{color:var(--seq-colors-border-focus)}.fyvr12v1,.fyvr12v2:active{cursor:default}.fyvr12v3:disabled,.fyvr12v3[data-disabled]{cursor:default}.fyvr12v4:focus{cursor:default}.fyvr12v5:hover:not([disabled]){cursor:default}.fyvr12v6[data-state=checked]{cursor:default}.fyvr12v7,.fyvr12v8:active{cursor:pointer}.fyvr12v9:disabled,.fyvr12v9[data-disabled]{cursor:pointer}.fyvr12va:focus{cursor:pointer}.fyvr12vb:hover:not([disabled]){cursor:pointer}.fyvr12vc[data-state=checked]{cursor:pointer}.fyvr12vd,.fyvr12ve:active{cursor:text}.fyvr12vf:disabled,.fyvr12vf[data-disabled]{cursor:text}.fyvr12vg:focus{cursor:text}.fyvr12vh:hover:not([disabled]){cursor:text}.fyvr12vi[data-state=checked]{cursor:text}.fyvr12vj,.fyvr12vk:active{opacity:var(--seq-opacity-0)}.fyvr12vl:disabled,.fyvr12vl[data-disabled]{opacity:var(--seq-opacity-0)}.fyvr12vm:focus{opacity:var(--seq-opacity-0)}.fyvr12vn:hover:not([disabled]){opacity:var(--seq-opacity-0)}.fyvr12vo[data-state=checked]{opacity:var(--seq-opacity-0)}.fyvr12vp,.fyvr12vq:active{opacity:var(--seq-opacity-50)}.fyvr12vr:disabled,.fyvr12vr[data-disabled]{opacity:var(--seq-opacity-50)}.fyvr12vs:focus{opacity:var(--seq-opacity-50)}.fyvr12vt:hover:not([disabled]){opacity:var(--seq-opacity-50)}.fyvr12vu[data-state=checked]{opacity:var(--seq-opacity-50)}.fyvr12vv,.fyvr12vw:active{opacity:var(--seq-opacity-80)}.fyvr12vx:disabled,.fyvr12vx[data-disabled]{opacity:var(--seq-opacity-80)}.fyvr12vy:focus{opacity:var(--seq-opacity-80)}.fyvr12vz:hover:not([disabled]){opacity:var(--seq-opacity-80)}.fyvr12w0[data-state=checked]{opacity:var(--seq-opacity-80)}.fyvr12w1,.fyvr12w2:active{opacity:var(--seq-opacity-100)}.fyvr12w3:disabled,.fyvr12w3[data-disabled]{opacity:var(--seq-opacity-100)}.fyvr12w4:focus{opacity:var(--seq-opacity-100)}.fyvr12w5:hover:not([disabled]){opacity:var(--seq-opacity-100)}.fyvr12w6[data-state=checked]{opacity:var(--seq-opacity-100)}.fyvr12w7,.fyvr12w8:active{pointer-events:none}.fyvr12w9:disabled,.fyvr12w9[data-disabled]{pointer-events:none}.fyvr12wa:focus{pointer-events:none}.fyvr12wb:hover:not([disabled]){pointer-events:none}.fyvr12wc[data-state=checked]{pointer-events:none}.fyvr12wd,.fyvr12we:active{pointer-events:auto}.fyvr12wf:disabled,.fyvr12wf[data-disabled]{pointer-events:auto}.fyvr12wg:focus{pointer-events:auto}.fyvr12wh:hover:not([disabled]){pointer-events:auto}.fyvr12wi[data-state=checked]{pointer-events:auto}.fyvr12wj,.fyvr12wk:active{outline:none}.fyvr12wl:disabled,.fyvr12wl[data-disabled]{outline:none}.fyvr12wm:focus{outline:none}.fyvr12wn:hover:not([disabled]){outline:none}.fyvr12wo[data-state=checked]{outline:none}.fyvr12wp,.fyvr12wq:active{box-shadow:none}.fyvr12wr:disabled,.fyvr12wr[data-disabled]{box-shadow:none}.fyvr12ws:focus{box-shadow:none}.fyvr12wt:hover:not([disabled]){box-shadow:none}.fyvr12wu[data-state=checked]{box-shadow:none}@media (min-width: 480px){.fyvr11{width:var(--seq-space-0)}.fyvr15{width:var(--seq-space-1)}.fyvr19{width:var(--seq-space-2)}.fyvr1d{width:var(--seq-space-3)}.fyvr1h{width:var(--seq-space-4)}.fyvr1l{width:var(--seq-space-5)}.fyvr1p{width:var(--seq-space-6)}.fyvr1t{width:var(--seq-space-7)}.fyvr1x{width:var(--seq-space-8)}.fyvr111{width:var(--seq-space-9)}.fyvr115{width:var(--seq-space-10)}.fyvr119{width:var(--seq-space-12)}.fyvr11d{width:var(--seq-space-14)}.fyvr11h{width:var(--seq-space-16)}.fyvr11l{width:var(--seq-space-0_25)}.fyvr11p{width:var(--seq-space-0_5)}.fyvr11t{width:var(--seq-space-1_5)}.fyvr11x{width:0}.fyvr121{width:1px}.fyvr125{width:auto}.fyvr129{width:100%}.fyvr12d{width:50%}.fyvr12h{width:33.33333%}.fyvr12l{width:66.66667%}.fyvr12p{width:25%}.fyvr12t{width:75%}.fyvr12x{width:-moz-fit-content;width:fit-content}.fyvr131{width:-moz-max-content;width:max-content}.fyvr135{width:-moz-min-content;width:min-content}.fyvr139{width:100vw}.fyvr13d{width:100vh}.fyvr13h{height:var(--seq-space-0)}.fyvr13l{height:var(--seq-space-1)}.fyvr13p{height:var(--seq-space-2)}.fyvr13t{height:var(--seq-space-3)}.fyvr13x{height:var(--seq-space-4)}.fyvr141{height:var(--seq-space-5)}.fyvr145{height:var(--seq-space-6)}.fyvr149{height:var(--seq-space-7)}.fyvr14d{height:var(--seq-space-8)}.fyvr14h{height:var(--seq-space-9)}.fyvr14l{height:var(--seq-space-10)}.fyvr14p{height:var(--seq-space-12)}.fyvr14t{height:var(--seq-space-14)}.fyvr14x{height:var(--seq-space-16)}.fyvr151{height:var(--seq-space-0_25)}.fyvr155{height:var(--seq-space-0_5)}.fyvr159{height:var(--seq-space-1_5)}.fyvr15d{height:0}.fyvr15h{height:1px}.fyvr15l{height:auto}.fyvr15p{height:100%}.fyvr15t{height:50%}.fyvr15x{height:33.33333%}.fyvr161{height:66.66667%}.fyvr165{height:25%}.fyvr169{height:75%}.fyvr16d{height:-moz-fit-content;height:fit-content}.fyvr16h{height:-moz-max-content;height:max-content}.fyvr16l{height:-moz-min-content;height:min-content}.fyvr16p{height:100vw}.fyvr16t{height:100vh}.fyvr16x{max-width:var(--seq-space-0)}.fyvr171{max-width:var(--seq-space-1)}.fyvr175{max-width:var(--seq-space-2)}.fyvr179{max-width:var(--seq-space-3)}.fyvr17d{max-width:var(--seq-space-4)}.fyvr17h{max-width:var(--seq-space-5)}.fyvr17l{max-width:var(--seq-space-6)}.fyvr17p{max-width:var(--seq-space-7)}.fyvr17t{max-width:var(--seq-space-8)}.fyvr17x{max-width:var(--seq-space-9)}.fyvr181{max-width:var(--seq-space-10)}.fyvr185{max-width:var(--seq-space-12)}.fyvr189{max-width:var(--seq-space-14)}.fyvr18d{max-width:var(--seq-space-16)}.fyvr18h{max-width:var(--seq-space-0_25)}.fyvr18l{max-width:var(--seq-space-0_5)}.fyvr18p{max-width:var(--seq-space-1_5)}.fyvr18t{max-width:0}.fyvr18x{max-width:1px}.fyvr191{max-width:auto}.fyvr195{max-width:100%}.fyvr199{max-width:50%}.fyvr19d{max-width:33.33333%}.fyvr19h{max-width:66.66667%}.fyvr19l{max-width:25%}.fyvr19p{max-width:75%}.fyvr19t{max-width:-moz-fit-content;max-width:fit-content}.fyvr19x{max-width:-moz-max-content;max-width:max-content}.fyvr1a1{max-width:-moz-min-content;max-width:min-content}.fyvr1a5{max-width:100vw}.fyvr1a9{max-width:100vh}.fyvr1ad{max-height:var(--seq-space-0)}.fyvr1ah{max-height:var(--seq-space-1)}.fyvr1al{max-height:var(--seq-space-2)}.fyvr1ap{max-height:var(--seq-space-3)}.fyvr1at{max-height:var(--seq-space-4)}.fyvr1ax{max-height:var(--seq-space-5)}.fyvr1b1{max-height:var(--seq-space-6)}.fyvr1b5{max-height:var(--seq-space-7)}.fyvr1b9{max-height:var(--seq-space-8)}.fyvr1bd{max-height:var(--seq-space-9)}.fyvr1bh{max-height:var(--seq-space-10)}.fyvr1bl{max-height:var(--seq-space-12)}.fyvr1bp{max-height:var(--seq-space-14)}.fyvr1bt{max-height:var(--seq-space-16)}.fyvr1bx{max-height:var(--seq-space-0_25)}.fyvr1c1{max-height:var(--seq-space-0_5)}.fyvr1c5{max-height:var(--seq-space-1_5)}.fyvr1c9{max-height:0}.fyvr1cd{max-height:1px}.fyvr1ch{max-height:auto}.fyvr1cl{max-height:100%}.fyvr1cp{max-height:50%}.fyvr1ct{max-height:33.33333%}.fyvr1cx{max-height:66.66667%}.fyvr1d1{max-height:25%}.fyvr1d5{max-height:75%}.fyvr1d9{max-height:-moz-fit-content;max-height:fit-content}.fyvr1dd{max-height:-moz-max-content;max-height:max-content}.fyvr1dh{max-height:-moz-min-content;max-height:min-content}.fyvr1dl{max-height:100vw}.fyvr1dp{max-height:100vh}.fyvr1dt{min-width:var(--seq-space-0)}.fyvr1dx{min-width:var(--seq-space-1)}.fyvr1e1{min-width:var(--seq-space-2)}.fyvr1e5{min-width:var(--seq-space-3)}.fyvr1e9{min-width:var(--seq-space-4)}.fyvr1ed{min-width:var(--seq-space-5)}.fyvr1eh{min-width:var(--seq-space-6)}.fyvr1el{min-width:var(--seq-space-7)}.fyvr1ep{min-width:var(--seq-space-8)}.fyvr1et{min-width:var(--seq-space-9)}.fyvr1ex{min-width:var(--seq-space-10)}.fyvr1f1{min-width:var(--seq-space-12)}.fyvr1f5{min-width:var(--seq-space-14)}.fyvr1f9{min-width:var(--seq-space-16)}.fyvr1fd{min-width:var(--seq-space-0_25)}.fyvr1fh{min-width:var(--seq-space-0_5)}.fyvr1fl{min-width:var(--seq-space-1_5)}.fyvr1fp{min-width:0}.fyvr1ft{min-width:1px}.fyvr1fx{min-width:auto}.fyvr1g1{min-width:100%}.fyvr1g5{min-width:50%}.fyvr1g9{min-width:33.33333%}.fyvr1gd{min-width:66.66667%}.fyvr1gh{min-width:25%}.fyvr1gl{min-width:75%}.fyvr1gp{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gt{min-width:-moz-max-content;min-width:max-content}.fyvr1gx{min-width:-moz-min-content;min-width:min-content}.fyvr1h1{min-width:100vw}.fyvr1h5{min-width:100vh}.fyvr1h9{min-height:var(--seq-space-0)}.fyvr1hd{min-height:var(--seq-space-1)}.fyvr1hh{min-height:var(--seq-space-2)}.fyvr1hl{min-height:var(--seq-space-3)}.fyvr1hp{min-height:var(--seq-space-4)}.fyvr1ht{min-height:var(--seq-space-5)}.fyvr1hx{min-height:var(--seq-space-6)}.fyvr1i1{min-height:var(--seq-space-7)}.fyvr1i5{min-height:var(--seq-space-8)}.fyvr1i9{min-height:var(--seq-space-9)}.fyvr1id{min-height:var(--seq-space-10)}.fyvr1ih{min-height:var(--seq-space-12)}.fyvr1il{min-height:var(--seq-space-14)}.fyvr1ip{min-height:var(--seq-space-16)}.fyvr1it{min-height:var(--seq-space-0_25)}.fyvr1ix{min-height:var(--seq-space-0_5)}.fyvr1j1{min-height:var(--seq-space-1_5)}.fyvr1j5{min-height:0}.fyvr1j9{min-height:1px}.fyvr1jd{min-height:auto}.fyvr1jh{min-height:100%}.fyvr1jl{min-height:50%}.fyvr1jp{min-height:33.33333%}.fyvr1jt{min-height:66.66667%}.fyvr1jx{min-height:25%}.fyvr1k1{min-height:75%}.fyvr1k5{min-height:-moz-fit-content;min-height:fit-content}.fyvr1k9{min-height:-moz-max-content;min-height:max-content}.fyvr1kd{min-height:-moz-min-content;min-height:min-content}.fyvr1kh{min-height:100vw}.fyvr1kl{min-height:100vh}.fyvr1kp{top:var(--seq-space-0)}.fyvr1kt{top:var(--seq-space-1)}.fyvr1kx{top:var(--seq-space-2)}.fyvr1l1{top:var(--seq-space-3)}.fyvr1l5{top:var(--seq-space-4)}.fyvr1l9{top:var(--seq-space-5)}.fyvr1ld{top:var(--seq-space-6)}.fyvr1lh{top:var(--seq-space-7)}.fyvr1ll{top:var(--seq-space-8)}.fyvr1lp{top:var(--seq-space-9)}.fyvr1lt{top:var(--seq-space-10)}.fyvr1lx{top:var(--seq-space-12)}.fyvr1m1{top:var(--seq-space-14)}.fyvr1m5{top:var(--seq-space-16)}.fyvr1m9{top:var(--seq-space-0_25)}.fyvr1md{top:var(--seq-space-0_5)}.fyvr1mh{top:var(--seq-space-1_5)}.fyvr1ml{top:auto}.fyvr1mp{bottom:var(--seq-space-0)}.fyvr1mt{bottom:var(--seq-space-1)}.fyvr1mx{bottom:var(--seq-space-2)}.fyvr1n1{bottom:var(--seq-space-3)}.fyvr1n5{bottom:var(--seq-space-4)}.fyvr1n9{bottom:var(--seq-space-5)}.fyvr1nd{bottom:var(--seq-space-6)}.fyvr1nh{bottom:var(--seq-space-7)}.fyvr1nl{bottom:var(--seq-space-8)}.fyvr1np{bottom:var(--seq-space-9)}.fyvr1nt{bottom:var(--seq-space-10)}.fyvr1nx{bottom:var(--seq-space-12)}.fyvr1o1{bottom:var(--seq-space-14)}.fyvr1o5{bottom:var(--seq-space-16)}.fyvr1o9{bottom:var(--seq-space-0_25)}.fyvr1od{bottom:var(--seq-space-0_5)}.fyvr1oh{bottom:var(--seq-space-1_5)}.fyvr1ol{bottom:auto}.fyvr1op{left:var(--seq-space-0)}.fyvr1ot{left:var(--seq-space-1)}.fyvr1ox{left:var(--seq-space-2)}.fyvr1p1{left:var(--seq-space-3)}.fyvr1p5{left:var(--seq-space-4)}.fyvr1p9{left:var(--seq-space-5)}.fyvr1pd{left:var(--seq-space-6)}.fyvr1ph{left:var(--seq-space-7)}.fyvr1pl{left:var(--seq-space-8)}.fyvr1pp{left:var(--seq-space-9)}.fyvr1pt{left:var(--seq-space-10)}.fyvr1px{left:var(--seq-space-12)}.fyvr1q1{left:var(--seq-space-14)}.fyvr1q5{left:var(--seq-space-16)}.fyvr1q9{left:var(--seq-space-0_25)}.fyvr1qd{left:var(--seq-space-0_5)}.fyvr1qh{left:var(--seq-space-1_5)}.fyvr1ql{left:auto}.fyvr1qp{right:var(--seq-space-0)}.fyvr1qt{right:var(--seq-space-1)}.fyvr1qx{right:var(--seq-space-2)}.fyvr1r1{right:var(--seq-space-3)}.fyvr1r5{right:var(--seq-space-4)}.fyvr1r9{right:var(--seq-space-5)}.fyvr1rd{right:var(--seq-space-6)}.fyvr1rh{right:var(--seq-space-7)}.fyvr1rl{right:var(--seq-space-8)}.fyvr1rp{right:var(--seq-space-9)}.fyvr1rt{right:var(--seq-space-10)}.fyvr1rx{right:var(--seq-space-12)}.fyvr1s1{right:var(--seq-space-14)}.fyvr1s5{right:var(--seq-space-16)}.fyvr1s9{right:var(--seq-space-0_25)}.fyvr1sd{right:var(--seq-space-0_5)}.fyvr1sh{right:var(--seq-space-1_5)}.fyvr1sl{right:auto}.fyvr1sp{padding-top:var(--seq-space-0)}.fyvr1st{padding-top:var(--seq-space-1)}.fyvr1sx{padding-top:var(--seq-space-2)}.fyvr1t1{padding-top:var(--seq-space-3)}.fyvr1t5{padding-top:var(--seq-space-4)}.fyvr1t9{padding-top:var(--seq-space-5)}.fyvr1td{padding-top:var(--seq-space-6)}.fyvr1th{padding-top:var(--seq-space-7)}.fyvr1tl{padding-top:var(--seq-space-8)}.fyvr1tp{padding-top:var(--seq-space-9)}.fyvr1tt{padding-top:var(--seq-space-10)}.fyvr1tx{padding-top:var(--seq-space-12)}.fyvr1u1{padding-top:var(--seq-space-14)}.fyvr1u5{padding-top:var(--seq-space-16)}.fyvr1u9{padding-top:var(--seq-space-0_25)}.fyvr1ud{padding-top:var(--seq-space-0_5)}.fyvr1uh{padding-top:var(--seq-space-1_5)}.fyvr1ul{padding-bottom:var(--seq-space-0)}.fyvr1up{padding-bottom:var(--seq-space-1)}.fyvr1ut{padding-bottom:var(--seq-space-2)}.fyvr1ux{padding-bottom:var(--seq-space-3)}.fyvr1v1{padding-bottom:var(--seq-space-4)}.fyvr1v5{padding-bottom:var(--seq-space-5)}.fyvr1v9{padding-bottom:var(--seq-space-6)}.fyvr1vd{padding-bottom:var(--seq-space-7)}.fyvr1vh{padding-bottom:var(--seq-space-8)}.fyvr1vl{padding-bottom:var(--seq-space-9)}.fyvr1vp{padding-bottom:var(--seq-space-10)}.fyvr1vt{padding-bottom:var(--seq-space-12)}.fyvr1vx{padding-bottom:var(--seq-space-14)}.fyvr1w1{padding-bottom:var(--seq-space-16)}.fyvr1w5{padding-bottom:var(--seq-space-0_25)}.fyvr1w9{padding-bottom:var(--seq-space-0_5)}.fyvr1wd{padding-bottom:var(--seq-space-1_5)}.fyvr1wh{padding-left:var(--seq-space-0)}.fyvr1wl{padding-left:var(--seq-space-1)}.fyvr1wp{padding-left:var(--seq-space-2)}.fyvr1wt{padding-left:var(--seq-space-3)}.fyvr1wx{padding-left:var(--seq-space-4)}.fyvr1x1{padding-left:var(--seq-space-5)}.fyvr1x5{padding-left:var(--seq-space-6)}.fyvr1x9{padding-left:var(--seq-space-7)}.fyvr1xd{padding-left:var(--seq-space-8)}.fyvr1xh{padding-left:var(--seq-space-9)}.fyvr1xl{padding-left:var(--seq-space-10)}.fyvr1xp{padding-left:var(--seq-space-12)}.fyvr1xt{padding-left:var(--seq-space-14)}.fyvr1xx{padding-left:var(--seq-space-16)}.fyvr1y1{padding-left:var(--seq-space-0_25)}.fyvr1y5{padding-left:var(--seq-space-0_5)}.fyvr1y9{padding-left:var(--seq-space-1_5)}.fyvr1yd{padding-right:var(--seq-space-0)}.fyvr1yh{padding-right:var(--seq-space-1)}.fyvr1yl{padding-right:var(--seq-space-2)}.fyvr1yp{padding-right:var(--seq-space-3)}.fyvr1yt{padding-right:var(--seq-space-4)}.fyvr1yx{padding-right:var(--seq-space-5)}.fyvr1z1{padding-right:var(--seq-space-6)}.fyvr1z5{padding-right:var(--seq-space-7)}.fyvr1z9{padding-right:var(--seq-space-8)}.fyvr1zd{padding-right:var(--seq-space-9)}.fyvr1zh{padding-right:var(--seq-space-10)}.fyvr1zl{padding-right:var(--seq-space-12)}.fyvr1zp{padding-right:var(--seq-space-14)}.fyvr1zt{padding-right:var(--seq-space-16)}.fyvr1zx{padding-right:var(--seq-space-0_25)}.fyvr1101{padding-right:var(--seq-space-0_5)}.fyvr1105{padding-right:var(--seq-space-1_5)}.fyvr1109{margin-top:var(--seq-space-0)}.fyvr110d{margin-top:var(--seq-space-1)}.fyvr110h{margin-top:var(--seq-space-2)}.fyvr110l{margin-top:var(--seq-space-3)}.fyvr110p{margin-top:var(--seq-space-4)}.fyvr110t{margin-top:var(--seq-space-5)}.fyvr110x{margin-top:var(--seq-space-6)}.fyvr1111{margin-top:var(--seq-space-7)}.fyvr1115{margin-top:var(--seq-space-8)}.fyvr1119{margin-top:var(--seq-space-9)}.fyvr111d{margin-top:var(--seq-space-10)}.fyvr111h{margin-top:var(--seq-space-12)}.fyvr111l{margin-top:var(--seq-space-14)}.fyvr111p{margin-top:var(--seq-space-16)}.fyvr111t{margin-top:var(--seq-space-0_25)}.fyvr111x{margin-top:var(--seq-space-0_5)}.fyvr1121{margin-top:var(--seq-space-1_5)}.fyvr1125{margin-top:auto}.fyvr1129{margin-bottom:var(--seq-space-0)}.fyvr112d{margin-bottom:var(--seq-space-1)}.fyvr112h{margin-bottom:var(--seq-space-2)}.fyvr112l{margin-bottom:var(--seq-space-3)}.fyvr112p{margin-bottom:var(--seq-space-4)}.fyvr112t{margin-bottom:var(--seq-space-5)}.fyvr112x{margin-bottom:var(--seq-space-6)}.fyvr1131{margin-bottom:var(--seq-space-7)}.fyvr1135{margin-bottom:var(--seq-space-8)}.fyvr1139{margin-bottom:var(--seq-space-9)}.fyvr113d{margin-bottom:var(--seq-space-10)}.fyvr113h{margin-bottom:var(--seq-space-12)}.fyvr113l{margin-bottom:var(--seq-space-14)}.fyvr113p{margin-bottom:var(--seq-space-16)}.fyvr113t{margin-bottom:var(--seq-space-0_25)}.fyvr113x{margin-bottom:var(--seq-space-0_5)}.fyvr1141{margin-bottom:var(--seq-space-1_5)}.fyvr1145{margin-bottom:auto}.fyvr1149{margin-left:var(--seq-space-0)}.fyvr114d{margin-left:var(--seq-space-1)}.fyvr114h{margin-left:var(--seq-space-2)}.fyvr114l{margin-left:var(--seq-space-3)}.fyvr114p{margin-left:var(--seq-space-4)}.fyvr114t{margin-left:var(--seq-space-5)}.fyvr114x{margin-left:var(--seq-space-6)}.fyvr1151{margin-left:var(--seq-space-7)}.fyvr1155{margin-left:var(--seq-space-8)}.fyvr1159{margin-left:var(--seq-space-9)}.fyvr115d{margin-left:var(--seq-space-10)}.fyvr115h{margin-left:var(--seq-space-12)}.fyvr115l{margin-left:var(--seq-space-14)}.fyvr115p{margin-left:var(--seq-space-16)}.fyvr115t{margin-left:var(--seq-space-0_25)}.fyvr115x{margin-left:var(--seq-space-0_5)}.fyvr1161{margin-left:var(--seq-space-1_5)}.fyvr1165{margin-left:auto}.fyvr1169{margin-right:var(--seq-space-0)}.fyvr116d{margin-right:var(--seq-space-1)}.fyvr116h{margin-right:var(--seq-space-2)}.fyvr116l{margin-right:var(--seq-space-3)}.fyvr116p{margin-right:var(--seq-space-4)}.fyvr116t{margin-right:var(--seq-space-5)}.fyvr116x{margin-right:var(--seq-space-6)}.fyvr1171{margin-right:var(--seq-space-7)}.fyvr1175{margin-right:var(--seq-space-8)}.fyvr1179{margin-right:var(--seq-space-9)}.fyvr117d{margin-right:var(--seq-space-10)}.fyvr117h{margin-right:var(--seq-space-12)}.fyvr117l{margin-right:var(--seq-space-14)}.fyvr117p{margin-right:var(--seq-space-16)}.fyvr117t{margin-right:var(--seq-space-0_25)}.fyvr117x{margin-right:var(--seq-space-0_5)}.fyvr1181{margin-right:var(--seq-space-1_5)}.fyvr1185{margin-right:auto}.fyvr1189{gap:var(--seq-space-0)}.fyvr118d{gap:var(--seq-space-1)}.fyvr118h{gap:var(--seq-space-2)}.fyvr118l{gap:var(--seq-space-3)}.fyvr118p{gap:var(--seq-space-4)}.fyvr118t{gap:var(--seq-space-5)}.fyvr118x{gap:var(--seq-space-6)}.fyvr1191{gap:var(--seq-space-7)}.fyvr1195{gap:var(--seq-space-8)}.fyvr1199{gap:var(--seq-space-9)}.fyvr119d{gap:var(--seq-space-10)}.fyvr119h{gap:var(--seq-space-12)}.fyvr119l{gap:var(--seq-space-14)}.fyvr119p{gap:var(--seq-space-16)}.fyvr119t{gap:var(--seq-space-0_25)}.fyvr119x{gap:var(--seq-space-0_5)}.fyvr11a1{gap:var(--seq-space-1_5)}.fyvr11a5{border-bottom-width:var(--seq-border-widths-none)}.fyvr11a9{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ad{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ah{border-left-width:var(--seq-border-widths-none)}.fyvr11al{border-left-width:var(--seq-border-widths-thin)}.fyvr11ap{border-left-width:var(--seq-border-widths-thick)}.fyvr11at{border-right-width:var(--seq-border-widths-none)}.fyvr11ax{border-right-width:var(--seq-border-widths-thin)}.fyvr11b1{border-right-width:var(--seq-border-widths-thick)}.fyvr11b5{border-top-width:var(--seq-border-widths-none)}.fyvr11b9{border-top-width:var(--seq-border-widths-thin)}.fyvr11bd{border-top-width:var(--seq-border-widths-thick)}.fyvr11bh{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bl{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bp{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bt{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bx{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c1{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c5{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11c9{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cd{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ch{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cl{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cp{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11ct{border-top-left-radius:var(--seq-radii-none)}.fyvr11cx{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d1{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d5{border-top-left-radius:var(--seq-radii-md)}.fyvr11d9{border-top-left-radius:var(--seq-radii-lg)}.fyvr11dd{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dh{border-top-right-radius:var(--seq-radii-none)}.fyvr11dl{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dp{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dt{border-top-right-radius:var(--seq-radii-md)}.fyvr11dx{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e1{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e5{font-size:var(--seq-font-sizes-inherit)}.fyvr11e9{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ed{font-size:var(--seq-font-sizes-small)}.fyvr11eh{font-size:var(--seq-font-sizes-normal)}.fyvr11el{font-size:var(--seq-font-sizes-medium)}.fyvr11ep{font-size:var(--seq-font-sizes-large)}.fyvr11et{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ex{font-weight:var(--seq-font-weights-inherit)}.fyvr11f1{font-weight:var(--seq-font-weights-normal)}.fyvr11f5{font-weight:var(--seq-font-weights-medium)}.fyvr11f9{font-weight:var(--seq-font-weights-semibold)}.fyvr11fd{font-weight:var(--seq-font-weights-bold)}.fyvr11fh{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fl{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fp{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11ft{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fx{line-height:var(--seq-line-heights-4)}.fyvr11g1{line-height:var(--seq-line-heights-5)}.fyvr11g5{line-height:var(--seq-line-heights-6)}.fyvr11g9{line-height:var(--seq-line-heights-7)}.fyvr11gd{line-height:var(--seq-line-heights-9)}.fyvr11gh{line-height:var(--seq-line-heights-inherit)}.fyvr11gl{text-align:center}.fyvr11gp{text-align:left}.fyvr11gt{text-align:right}.fyvr11gx{display:block}.fyvr11h1{display:flex}.fyvr11h5{display:grid}.fyvr11h9{display:inline-block}.fyvr11hd{display:inline-flex}.fyvr11hh{display:none}.fyvr11hl{display:contents}.fyvr11hp{position:absolute}.fyvr11ht{position:fixed}.fyvr11hx{position:relative}.fyvr11i1{position:sticky}.fyvr11i5{flex-direction:column}.fyvr11i9{flex-direction:column-reverse}.fyvr11id{flex-direction:row}.fyvr11ih{flex-direction:row-reverse}.fyvr11il{flex-shrink:0}.fyvr11ip{flex-shrink:1}.fyvr11it{flex-grow:0}.fyvr11ix{flex-grow:1}.fyvr11j1{flex-wrap:nowrap}.fyvr11j5{flex-wrap:wrap}.fyvr11j9{flex-wrap:wrap-reverse}.fyvr11jd{justify-content:flex-start}.fyvr11jh{justify-content:center}.fyvr11jl{justify-content:flex-end}.fyvr11jp{justify-content:stretch}.fyvr11jt{justify-content:space-around}.fyvr11jx{justify-content:space-between}.fyvr11k1{justify-content:space-evenly}.fyvr11k5{justify-self:flex-start}.fyvr11k9{justify-self:center}.fyvr11kd{justify-self:flex-end}.fyvr11kh{justify-self:stretch}.fyvr11kl{align-items:flex-start}.fyvr11kp{align-items:center}.fyvr11kt{align-items:flex-end}.fyvr11kx{align-items:stretch}.fyvr11l1{align-items:baseline}.fyvr11l5{align-self:flex-start}.fyvr11l9{align-self:center}.fyvr11ld{align-self:flex-end}.fyvr11lh{align-self:stretch}.fyvr11ll{align-self:baseline}.fyvr11lp{overflow-x:auto}.fyvr11lt{overflow-x:hidden}.fyvr11lx{overflow-x:scroll}.fyvr11m1{overflow-x:visible}.fyvr11m5{overflow-y:auto}.fyvr11m9{overflow-y:hidden}.fyvr11md{overflow-y:scroll}.fyvr11mh{overflow-y:visible}.fyvr11ml{visibility:hidden}.fyvr11mp{visibility:visible}}@media (min-width: 769px){.fyvr12{width:var(--seq-space-0)}.fyvr16{width:var(--seq-space-1)}.fyvr1a{width:var(--seq-space-2)}.fyvr1e{width:var(--seq-space-3)}.fyvr1i{width:var(--seq-space-4)}.fyvr1m{width:var(--seq-space-5)}.fyvr1q{width:var(--seq-space-6)}.fyvr1u{width:var(--seq-space-7)}.fyvr1y{width:var(--seq-space-8)}.fyvr112{width:var(--seq-space-9)}.fyvr116{width:var(--seq-space-10)}.fyvr11a{width:var(--seq-space-12)}.fyvr11e{width:var(--seq-space-14)}.fyvr11i{width:var(--seq-space-16)}.fyvr11m{width:var(--seq-space-0_25)}.fyvr11q{width:var(--seq-space-0_5)}.fyvr11u{width:var(--seq-space-1_5)}.fyvr11y{width:0}.fyvr122{width:1px}.fyvr126{width:auto}.fyvr12a{width:100%}.fyvr12e{width:50%}.fyvr12i{width:33.33333%}.fyvr12m{width:66.66667%}.fyvr12q{width:25%}.fyvr12u{width:75%}.fyvr12y{width:-moz-fit-content;width:fit-content}.fyvr132{width:-moz-max-content;width:max-content}.fyvr136{width:-moz-min-content;width:min-content}.fyvr13a{width:100vw}.fyvr13e{width:100vh}.fyvr13i{height:var(--seq-space-0)}.fyvr13m{height:var(--seq-space-1)}.fyvr13q{height:var(--seq-space-2)}.fyvr13u{height:var(--seq-space-3)}.fyvr13y{height:var(--seq-space-4)}.fyvr142{height:var(--seq-space-5)}.fyvr146{height:var(--seq-space-6)}.fyvr14a{height:var(--seq-space-7)}.fyvr14e{height:var(--seq-space-8)}.fyvr14i{height:var(--seq-space-9)}.fyvr14m{height:var(--seq-space-10)}.fyvr14q{height:var(--seq-space-12)}.fyvr14u{height:var(--seq-space-14)}.fyvr14y{height:var(--seq-space-16)}.fyvr152{height:var(--seq-space-0_25)}.fyvr156{height:var(--seq-space-0_5)}.fyvr15a{height:var(--seq-space-1_5)}.fyvr15e{height:0}.fyvr15i{height:1px}.fyvr15m{height:auto}.fyvr15q{height:100%}.fyvr15u{height:50%}.fyvr15y{height:33.33333%}.fyvr162{height:66.66667%}.fyvr166{height:25%}.fyvr16a{height:75%}.fyvr16e{height:-moz-fit-content;height:fit-content}.fyvr16i{height:-moz-max-content;height:max-content}.fyvr16m{height:-moz-min-content;height:min-content}.fyvr16q{height:100vw}.fyvr16u{height:100vh}.fyvr16y{max-width:var(--seq-space-0)}.fyvr172{max-width:var(--seq-space-1)}.fyvr176{max-width:var(--seq-space-2)}.fyvr17a{max-width:var(--seq-space-3)}.fyvr17e{max-width:var(--seq-space-4)}.fyvr17i{max-width:var(--seq-space-5)}.fyvr17m{max-width:var(--seq-space-6)}.fyvr17q{max-width:var(--seq-space-7)}.fyvr17u{max-width:var(--seq-space-8)}.fyvr17y{max-width:var(--seq-space-9)}.fyvr182{max-width:var(--seq-space-10)}.fyvr186{max-width:var(--seq-space-12)}.fyvr18a{max-width:var(--seq-space-14)}.fyvr18e{max-width:var(--seq-space-16)}.fyvr18i{max-width:var(--seq-space-0_25)}.fyvr18m{max-width:var(--seq-space-0_5)}.fyvr18q{max-width:var(--seq-space-1_5)}.fyvr18u{max-width:0}.fyvr18y{max-width:1px}.fyvr192{max-width:auto}.fyvr196{max-width:100%}.fyvr19a{max-width:50%}.fyvr19e{max-width:33.33333%}.fyvr19i{max-width:66.66667%}.fyvr19m{max-width:25%}.fyvr19q{max-width:75%}.fyvr19u{max-width:-moz-fit-content;max-width:fit-content}.fyvr19y{max-width:-moz-max-content;max-width:max-content}.fyvr1a2{max-width:-moz-min-content;max-width:min-content}.fyvr1a6{max-width:100vw}.fyvr1aa{max-width:100vh}.fyvr1ae{max-height:var(--seq-space-0)}.fyvr1ai{max-height:var(--seq-space-1)}.fyvr1am{max-height:var(--seq-space-2)}.fyvr1aq{max-height:var(--seq-space-3)}.fyvr1au{max-height:var(--seq-space-4)}.fyvr1ay{max-height:var(--seq-space-5)}.fyvr1b2{max-height:var(--seq-space-6)}.fyvr1b6{max-height:var(--seq-space-7)}.fyvr1ba{max-height:var(--seq-space-8)}.fyvr1be{max-height:var(--seq-space-9)}.fyvr1bi{max-height:var(--seq-space-10)}.fyvr1bm{max-height:var(--seq-space-12)}.fyvr1bq{max-height:var(--seq-space-14)}.fyvr1bu{max-height:var(--seq-space-16)}.fyvr1by{max-height:var(--seq-space-0_25)}.fyvr1c2{max-height:var(--seq-space-0_5)}.fyvr1c6{max-height:var(--seq-space-1_5)}.fyvr1ca{max-height:0}.fyvr1ce{max-height:1px}.fyvr1ci{max-height:auto}.fyvr1cm{max-height:100%}.fyvr1cq{max-height:50%}.fyvr1cu{max-height:33.33333%}.fyvr1cy{max-height:66.66667%}.fyvr1d2{max-height:25%}.fyvr1d6{max-height:75%}.fyvr1da{max-height:-moz-fit-content;max-height:fit-content}.fyvr1de{max-height:-moz-max-content;max-height:max-content}.fyvr1di{max-height:-moz-min-content;max-height:min-content}.fyvr1dm{max-height:100vw}.fyvr1dq{max-height:100vh}.fyvr1du{min-width:var(--seq-space-0)}.fyvr1dy{min-width:var(--seq-space-1)}.fyvr1e2{min-width:var(--seq-space-2)}.fyvr1e6{min-width:var(--seq-space-3)}.fyvr1ea{min-width:var(--seq-space-4)}.fyvr1ee{min-width:var(--seq-space-5)}.fyvr1ei{min-width:var(--seq-space-6)}.fyvr1em{min-width:var(--seq-space-7)}.fyvr1eq{min-width:var(--seq-space-8)}.fyvr1eu{min-width:var(--seq-space-9)}.fyvr1ey{min-width:var(--seq-space-10)}.fyvr1f2{min-width:var(--seq-space-12)}.fyvr1f6{min-width:var(--seq-space-14)}.fyvr1fa{min-width:var(--seq-space-16)}.fyvr1fe{min-width:var(--seq-space-0_25)}.fyvr1fi{min-width:var(--seq-space-0_5)}.fyvr1fm{min-width:var(--seq-space-1_5)}.fyvr1fq{min-width:0}.fyvr1fu{min-width:1px}.fyvr1fy{min-width:auto}.fyvr1g2{min-width:100%}.fyvr1g6{min-width:50%}.fyvr1ga{min-width:33.33333%}.fyvr1ge{min-width:66.66667%}.fyvr1gi{min-width:25%}.fyvr1gm{min-width:75%}.fyvr1gq{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gu{min-width:-moz-max-content;min-width:max-content}.fyvr1gy{min-width:-moz-min-content;min-width:min-content}.fyvr1h2{min-width:100vw}.fyvr1h6{min-width:100vh}.fyvr1ha{min-height:var(--seq-space-0)}.fyvr1he{min-height:var(--seq-space-1)}.fyvr1hi{min-height:var(--seq-space-2)}.fyvr1hm{min-height:var(--seq-space-3)}.fyvr1hq{min-height:var(--seq-space-4)}.fyvr1hu{min-height:var(--seq-space-5)}.fyvr1hy{min-height:var(--seq-space-6)}.fyvr1i2{min-height:var(--seq-space-7)}.fyvr1i6{min-height:var(--seq-space-8)}.fyvr1ia{min-height:var(--seq-space-9)}.fyvr1ie{min-height:var(--seq-space-10)}.fyvr1ii{min-height:var(--seq-space-12)}.fyvr1im{min-height:var(--seq-space-14)}.fyvr1iq{min-height:var(--seq-space-16)}.fyvr1iu{min-height:var(--seq-space-0_25)}.fyvr1iy{min-height:var(--seq-space-0_5)}.fyvr1j2{min-height:var(--seq-space-1_5)}.fyvr1j6{min-height:0}.fyvr1ja{min-height:1px}.fyvr1je{min-height:auto}.fyvr1ji{min-height:100%}.fyvr1jm{min-height:50%}.fyvr1jq{min-height:33.33333%}.fyvr1ju{min-height:66.66667%}.fyvr1jy{min-height:25%}.fyvr1k2{min-height:75%}.fyvr1k6{min-height:-moz-fit-content;min-height:fit-content}.fyvr1ka{min-height:-moz-max-content;min-height:max-content}.fyvr1ke{min-height:-moz-min-content;min-height:min-content}.fyvr1ki{min-height:100vw}.fyvr1km{min-height:100vh}.fyvr1kq{top:var(--seq-space-0)}.fyvr1ku{top:var(--seq-space-1)}.fyvr1ky{top:var(--seq-space-2)}.fyvr1l2{top:var(--seq-space-3)}.fyvr1l6{top:var(--seq-space-4)}.fyvr1la{top:var(--seq-space-5)}.fyvr1le{top:var(--seq-space-6)}.fyvr1li{top:var(--seq-space-7)}.fyvr1lm{top:var(--seq-space-8)}.fyvr1lq{top:var(--seq-space-9)}.fyvr1lu{top:var(--seq-space-10)}.fyvr1ly{top:var(--seq-space-12)}.fyvr1m2{top:var(--seq-space-14)}.fyvr1m6{top:var(--seq-space-16)}.fyvr1ma{top:var(--seq-space-0_25)}.fyvr1me{top:var(--seq-space-0_5)}.fyvr1mi{top:var(--seq-space-1_5)}.fyvr1mm{top:auto}.fyvr1mq{bottom:var(--seq-space-0)}.fyvr1mu{bottom:var(--seq-space-1)}.fyvr1my{bottom:var(--seq-space-2)}.fyvr1n2{bottom:var(--seq-space-3)}.fyvr1n6{bottom:var(--seq-space-4)}.fyvr1na{bottom:var(--seq-space-5)}.fyvr1ne{bottom:var(--seq-space-6)}.fyvr1ni{bottom:var(--seq-space-7)}.fyvr1nm{bottom:var(--seq-space-8)}.fyvr1nq{bottom:var(--seq-space-9)}.fyvr1nu{bottom:var(--seq-space-10)}.fyvr1ny{bottom:var(--seq-space-12)}.fyvr1o2{bottom:var(--seq-space-14)}.fyvr1o6{bottom:var(--seq-space-16)}.fyvr1oa{bottom:var(--seq-space-0_25)}.fyvr1oe{bottom:var(--seq-space-0_5)}.fyvr1oi{bottom:var(--seq-space-1_5)}.fyvr1om{bottom:auto}.fyvr1oq{left:var(--seq-space-0)}.fyvr1ou{left:var(--seq-space-1)}.fyvr1oy{left:var(--seq-space-2)}.fyvr1p2{left:var(--seq-space-3)}.fyvr1p6{left:var(--seq-space-4)}.fyvr1pa{left:var(--seq-space-5)}.fyvr1pe{left:var(--seq-space-6)}.fyvr1pi{left:var(--seq-space-7)}.fyvr1pm{left:var(--seq-space-8)}.fyvr1pq{left:var(--seq-space-9)}.fyvr1pu{left:var(--seq-space-10)}.fyvr1py{left:var(--seq-space-12)}.fyvr1q2{left:var(--seq-space-14)}.fyvr1q6{left:var(--seq-space-16)}.fyvr1qa{left:var(--seq-space-0_25)}.fyvr1qe{left:var(--seq-space-0_5)}.fyvr1qi{left:var(--seq-space-1_5)}.fyvr1qm{left:auto}.fyvr1qq{right:var(--seq-space-0)}.fyvr1qu{right:var(--seq-space-1)}.fyvr1qy{right:var(--seq-space-2)}.fyvr1r2{right:var(--seq-space-3)}.fyvr1r6{right:var(--seq-space-4)}.fyvr1ra{right:var(--seq-space-5)}.fyvr1re{right:var(--seq-space-6)}.fyvr1ri{right:var(--seq-space-7)}.fyvr1rm{right:var(--seq-space-8)}.fyvr1rq{right:var(--seq-space-9)}.fyvr1ru{right:var(--seq-space-10)}.fyvr1ry{right:var(--seq-space-12)}.fyvr1s2{right:var(--seq-space-14)}.fyvr1s6{right:var(--seq-space-16)}.fyvr1sa{right:var(--seq-space-0_25)}.fyvr1se{right:var(--seq-space-0_5)}.fyvr1si{right:var(--seq-space-1_5)}.fyvr1sm{right:auto}.fyvr1sq{padding-top:var(--seq-space-0)}.fyvr1su{padding-top:var(--seq-space-1)}.fyvr1sy{padding-top:var(--seq-space-2)}.fyvr1t2{padding-top:var(--seq-space-3)}.fyvr1t6{padding-top:var(--seq-space-4)}.fyvr1ta{padding-top:var(--seq-space-5)}.fyvr1te{padding-top:var(--seq-space-6)}.fyvr1ti{padding-top:var(--seq-space-7)}.fyvr1tm{padding-top:var(--seq-space-8)}.fyvr1tq{padding-top:var(--seq-space-9)}.fyvr1tu{padding-top:var(--seq-space-10)}.fyvr1ty{padding-top:var(--seq-space-12)}.fyvr1u2{padding-top:var(--seq-space-14)}.fyvr1u6{padding-top:var(--seq-space-16)}.fyvr1ua{padding-top:var(--seq-space-0_25)}.fyvr1ue{padding-top:var(--seq-space-0_5)}.fyvr1ui{padding-top:var(--seq-space-1_5)}.fyvr1um{padding-bottom:var(--seq-space-0)}.fyvr1uq{padding-bottom:var(--seq-space-1)}.fyvr1uu{padding-bottom:var(--seq-space-2)}.fyvr1uy{padding-bottom:var(--seq-space-3)}.fyvr1v2{padding-bottom:var(--seq-space-4)}.fyvr1v6{padding-bottom:var(--seq-space-5)}.fyvr1va{padding-bottom:var(--seq-space-6)}.fyvr1ve{padding-bottom:var(--seq-space-7)}.fyvr1vi{padding-bottom:var(--seq-space-8)}.fyvr1vm{padding-bottom:var(--seq-space-9)}.fyvr1vq{padding-bottom:var(--seq-space-10)}.fyvr1vu{padding-bottom:var(--seq-space-12)}.fyvr1vy{padding-bottom:var(--seq-space-14)}.fyvr1w2{padding-bottom:var(--seq-space-16)}.fyvr1w6{padding-bottom:var(--seq-space-0_25)}.fyvr1wa{padding-bottom:var(--seq-space-0_5)}.fyvr1we{padding-bottom:var(--seq-space-1_5)}.fyvr1wi{padding-left:var(--seq-space-0)}.fyvr1wm{padding-left:var(--seq-space-1)}.fyvr1wq{padding-left:var(--seq-space-2)}.fyvr1wu{padding-left:var(--seq-space-3)}.fyvr1wy{padding-left:var(--seq-space-4)}.fyvr1x2{padding-left:var(--seq-space-5)}.fyvr1x6{padding-left:var(--seq-space-6)}.fyvr1xa{padding-left:var(--seq-space-7)}.fyvr1xe{padding-left:var(--seq-space-8)}.fyvr1xi{padding-left:var(--seq-space-9)}.fyvr1xm{padding-left:var(--seq-space-10)}.fyvr1xq{padding-left:var(--seq-space-12)}.fyvr1xu{padding-left:var(--seq-space-14)}.fyvr1xy{padding-left:var(--seq-space-16)}.fyvr1y2{padding-left:var(--seq-space-0_25)}.fyvr1y6{padding-left:var(--seq-space-0_5)}.fyvr1ya{padding-left:var(--seq-space-1_5)}.fyvr1ye{padding-right:var(--seq-space-0)}.fyvr1yi{padding-right:var(--seq-space-1)}.fyvr1ym{padding-right:var(--seq-space-2)}.fyvr1yq{padding-right:var(--seq-space-3)}.fyvr1yu{padding-right:var(--seq-space-4)}.fyvr1yy{padding-right:var(--seq-space-5)}.fyvr1z2{padding-right:var(--seq-space-6)}.fyvr1z6{padding-right:var(--seq-space-7)}.fyvr1za{padding-right:var(--seq-space-8)}.fyvr1ze{padding-right:var(--seq-space-9)}.fyvr1zi{padding-right:var(--seq-space-10)}.fyvr1zm{padding-right:var(--seq-space-12)}.fyvr1zq{padding-right:var(--seq-space-14)}.fyvr1zu{padding-right:var(--seq-space-16)}.fyvr1zy{padding-right:var(--seq-space-0_25)}.fyvr1102{padding-right:var(--seq-space-0_5)}.fyvr1106{padding-right:var(--seq-space-1_5)}.fyvr110a{margin-top:var(--seq-space-0)}.fyvr110e{margin-top:var(--seq-space-1)}.fyvr110i{margin-top:var(--seq-space-2)}.fyvr110m{margin-top:var(--seq-space-3)}.fyvr110q{margin-top:var(--seq-space-4)}.fyvr110u{margin-top:var(--seq-space-5)}.fyvr110y{margin-top:var(--seq-space-6)}.fyvr1112{margin-top:var(--seq-space-7)}.fyvr1116{margin-top:var(--seq-space-8)}.fyvr111a{margin-top:var(--seq-space-9)}.fyvr111e{margin-top:var(--seq-space-10)}.fyvr111i{margin-top:var(--seq-space-12)}.fyvr111m{margin-top:var(--seq-space-14)}.fyvr111q{margin-top:var(--seq-space-16)}.fyvr111u{margin-top:var(--seq-space-0_25)}.fyvr111y{margin-top:var(--seq-space-0_5)}.fyvr1122{margin-top:var(--seq-space-1_5)}.fyvr1126{margin-top:auto}.fyvr112a{margin-bottom:var(--seq-space-0)}.fyvr112e{margin-bottom:var(--seq-space-1)}.fyvr112i{margin-bottom:var(--seq-space-2)}.fyvr112m{margin-bottom:var(--seq-space-3)}.fyvr112q{margin-bottom:var(--seq-space-4)}.fyvr112u{margin-bottom:var(--seq-space-5)}.fyvr112y{margin-bottom:var(--seq-space-6)}.fyvr1132{margin-bottom:var(--seq-space-7)}.fyvr1136{margin-bottom:var(--seq-space-8)}.fyvr113a{margin-bottom:var(--seq-space-9)}.fyvr113e{margin-bottom:var(--seq-space-10)}.fyvr113i{margin-bottom:var(--seq-space-12)}.fyvr113m{margin-bottom:var(--seq-space-14)}.fyvr113q{margin-bottom:var(--seq-space-16)}.fyvr113u{margin-bottom:var(--seq-space-0_25)}.fyvr113y{margin-bottom:var(--seq-space-0_5)}.fyvr1142{margin-bottom:var(--seq-space-1_5)}.fyvr1146{margin-bottom:auto}.fyvr114a{margin-left:var(--seq-space-0)}.fyvr114e{margin-left:var(--seq-space-1)}.fyvr114i{margin-left:var(--seq-space-2)}.fyvr114m{margin-left:var(--seq-space-3)}.fyvr114q{margin-left:var(--seq-space-4)}.fyvr114u{margin-left:var(--seq-space-5)}.fyvr114y{margin-left:var(--seq-space-6)}.fyvr1152{margin-left:var(--seq-space-7)}.fyvr1156{margin-left:var(--seq-space-8)}.fyvr115a{margin-left:var(--seq-space-9)}.fyvr115e{margin-left:var(--seq-space-10)}.fyvr115i{margin-left:var(--seq-space-12)}.fyvr115m{margin-left:var(--seq-space-14)}.fyvr115q{margin-left:var(--seq-space-16)}.fyvr115u{margin-left:var(--seq-space-0_25)}.fyvr115y{margin-left:var(--seq-space-0_5)}.fyvr1162{margin-left:var(--seq-space-1_5)}.fyvr1166{margin-left:auto}.fyvr116a{margin-right:var(--seq-space-0)}.fyvr116e{margin-right:var(--seq-space-1)}.fyvr116i{margin-right:var(--seq-space-2)}.fyvr116m{margin-right:var(--seq-space-3)}.fyvr116q{margin-right:var(--seq-space-4)}.fyvr116u{margin-right:var(--seq-space-5)}.fyvr116y{margin-right:var(--seq-space-6)}.fyvr1172{margin-right:var(--seq-space-7)}.fyvr1176{margin-right:var(--seq-space-8)}.fyvr117a{margin-right:var(--seq-space-9)}.fyvr117e{margin-right:var(--seq-space-10)}.fyvr117i{margin-right:var(--seq-space-12)}.fyvr117m{margin-right:var(--seq-space-14)}.fyvr117q{margin-right:var(--seq-space-16)}.fyvr117u{margin-right:var(--seq-space-0_25)}.fyvr117y{margin-right:var(--seq-space-0_5)}.fyvr1182{margin-right:var(--seq-space-1_5)}.fyvr1186{margin-right:auto}.fyvr118a{gap:var(--seq-space-0)}.fyvr118e{gap:var(--seq-space-1)}.fyvr118i{gap:var(--seq-space-2)}.fyvr118m{gap:var(--seq-space-3)}.fyvr118q{gap:var(--seq-space-4)}.fyvr118u{gap:var(--seq-space-5)}.fyvr118y{gap:var(--seq-space-6)}.fyvr1192{gap:var(--seq-space-7)}.fyvr1196{gap:var(--seq-space-8)}.fyvr119a{gap:var(--seq-space-9)}.fyvr119e{gap:var(--seq-space-10)}.fyvr119i{gap:var(--seq-space-12)}.fyvr119m{gap:var(--seq-space-14)}.fyvr119q{gap:var(--seq-space-16)}.fyvr119u{gap:var(--seq-space-0_25)}.fyvr119y{gap:var(--seq-space-0_5)}.fyvr11a2{gap:var(--seq-space-1_5)}.fyvr11a6{border-bottom-width:var(--seq-border-widths-none)}.fyvr11aa{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11ae{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11ai{border-left-width:var(--seq-border-widths-none)}.fyvr11am{border-left-width:var(--seq-border-widths-thin)}.fyvr11aq{border-left-width:var(--seq-border-widths-thick)}.fyvr11au{border-right-width:var(--seq-border-widths-none)}.fyvr11ay{border-right-width:var(--seq-border-widths-thin)}.fyvr11b2{border-right-width:var(--seq-border-widths-thick)}.fyvr11b6{border-top-width:var(--seq-border-widths-none)}.fyvr11ba{border-top-width:var(--seq-border-widths-thin)}.fyvr11be{border-top-width:var(--seq-border-widths-thick)}.fyvr11bi{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bm{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11bq{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bu{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11by{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c2{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c6{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11ca{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11ce{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11ci{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cm{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cq{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cu{border-top-left-radius:var(--seq-radii-none)}.fyvr11cy{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d2{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d6{border-top-left-radius:var(--seq-radii-md)}.fyvr11da{border-top-left-radius:var(--seq-radii-lg)}.fyvr11de{border-top-left-radius:var(--seq-radii-circle)}.fyvr11di{border-top-right-radius:var(--seq-radii-none)}.fyvr11dm{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dq{border-top-right-radius:var(--seq-radii-sm)}.fyvr11du{border-top-right-radius:var(--seq-radii-md)}.fyvr11dy{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e2{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e6{font-size:var(--seq-font-sizes-inherit)}.fyvr11ea{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ee{font-size:var(--seq-font-sizes-small)}.fyvr11ei{font-size:var(--seq-font-sizes-normal)}.fyvr11em{font-size:var(--seq-font-sizes-medium)}.fyvr11eq{font-size:var(--seq-font-sizes-large)}.fyvr11eu{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ey{font-weight:var(--seq-font-weights-inherit)}.fyvr11f2{font-weight:var(--seq-font-weights-normal)}.fyvr11f6{font-weight:var(--seq-font-weights-medium)}.fyvr11fa{font-weight:var(--seq-font-weights-semibold)}.fyvr11fe{font-weight:var(--seq-font-weights-bold)}.fyvr11fi{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fm{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fq{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fu{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fy{line-height:var(--seq-line-heights-4)}.fyvr11g2{line-height:var(--seq-line-heights-5)}.fyvr11g6{line-height:var(--seq-line-heights-6)}.fyvr11ga{line-height:var(--seq-line-heights-7)}.fyvr11ge{line-height:var(--seq-line-heights-9)}.fyvr11gi{line-height:var(--seq-line-heights-inherit)}.fyvr11gm{text-align:center}.fyvr11gq{text-align:left}.fyvr11gu{text-align:right}.fyvr11gy{display:block}.fyvr11h2{display:flex}.fyvr11h6{display:grid}.fyvr11ha{display:inline-block}.fyvr11he{display:inline-flex}.fyvr11hi{display:none}.fyvr11hm{display:contents}.fyvr11hq{position:absolute}.fyvr11hu{position:fixed}.fyvr11hy{position:relative}.fyvr11i2{position:sticky}.fyvr11i6{flex-direction:column}.fyvr11ia{flex-direction:column-reverse}.fyvr11ie{flex-direction:row}.fyvr11ii{flex-direction:row-reverse}.fyvr11im{flex-shrink:0}.fyvr11iq{flex-shrink:1}.fyvr11iu{flex-grow:0}.fyvr11iy{flex-grow:1}.fyvr11j2{flex-wrap:nowrap}.fyvr11j6{flex-wrap:wrap}.fyvr11ja{flex-wrap:wrap-reverse}.fyvr11je{justify-content:flex-start}.fyvr11ji{justify-content:center}.fyvr11jm{justify-content:flex-end}.fyvr11jq{justify-content:stretch}.fyvr11ju{justify-content:space-around}.fyvr11jy{justify-content:space-between}.fyvr11k2{justify-content:space-evenly}.fyvr11k6{justify-self:flex-start}.fyvr11ka{justify-self:center}.fyvr11ke{justify-self:flex-end}.fyvr11ki{justify-self:stretch}.fyvr11km{align-items:flex-start}.fyvr11kq{align-items:center}.fyvr11ku{align-items:flex-end}.fyvr11ky{align-items:stretch}.fyvr11l2{align-items:baseline}.fyvr11l6{align-self:flex-start}.fyvr11la{align-self:center}.fyvr11le{align-self:flex-end}.fyvr11li{align-self:stretch}.fyvr11lm{align-self:baseline}.fyvr11lq{overflow-x:auto}.fyvr11lu{overflow-x:hidden}.fyvr11ly{overflow-x:scroll}.fyvr11m2{overflow-x:visible}.fyvr11m6{overflow-y:auto}.fyvr11ma{overflow-y:hidden}.fyvr11me{overflow-y:scroll}.fyvr11mi{overflow-y:visible}.fyvr11mm{visibility:hidden}.fyvr11mq{visibility:visible}}@media (min-width: 1281px){.fyvr13{width:var(--seq-space-0)}.fyvr17{width:var(--seq-space-1)}.fyvr1b{width:var(--seq-space-2)}.fyvr1f{width:var(--seq-space-3)}.fyvr1j{width:var(--seq-space-4)}.fyvr1n{width:var(--seq-space-5)}.fyvr1r{width:var(--seq-space-6)}.fyvr1v{width:var(--seq-space-7)}.fyvr1z{width:var(--seq-space-8)}.fyvr113{width:var(--seq-space-9)}.fyvr117{width:var(--seq-space-10)}.fyvr11b{width:var(--seq-space-12)}.fyvr11f{width:var(--seq-space-14)}.fyvr11j{width:var(--seq-space-16)}.fyvr11n{width:var(--seq-space-0_25)}.fyvr11r{width:var(--seq-space-0_5)}.fyvr11v{width:var(--seq-space-1_5)}.fyvr11z{width:0}.fyvr123{width:1px}.fyvr127{width:auto}.fyvr12b{width:100%}.fyvr12f{width:50%}.fyvr12j{width:33.33333%}.fyvr12n{width:66.66667%}.fyvr12r{width:25%}.fyvr12v{width:75%}.fyvr12z{width:-moz-fit-content;width:fit-content}.fyvr133{width:-moz-max-content;width:max-content}.fyvr137{width:-moz-min-content;width:min-content}.fyvr13b{width:100vw}.fyvr13f{width:100vh}.fyvr13j{height:var(--seq-space-0)}.fyvr13n{height:var(--seq-space-1)}.fyvr13r{height:var(--seq-space-2)}.fyvr13v{height:var(--seq-space-3)}.fyvr13z{height:var(--seq-space-4)}.fyvr143{height:var(--seq-space-5)}.fyvr147{height:var(--seq-space-6)}.fyvr14b{height:var(--seq-space-7)}.fyvr14f{height:var(--seq-space-8)}.fyvr14j{height:var(--seq-space-9)}.fyvr14n{height:var(--seq-space-10)}.fyvr14r{height:var(--seq-space-12)}.fyvr14v{height:var(--seq-space-14)}.fyvr14z{height:var(--seq-space-16)}.fyvr153{height:var(--seq-space-0_25)}.fyvr157{height:var(--seq-space-0_5)}.fyvr15b{height:var(--seq-space-1_5)}.fyvr15f{height:0}.fyvr15j{height:1px}.fyvr15n{height:auto}.fyvr15r{height:100%}.fyvr15v{height:50%}.fyvr15z{height:33.33333%}.fyvr163{height:66.66667%}.fyvr167{height:25%}.fyvr16b{height:75%}.fyvr16f{height:-moz-fit-content;height:fit-content}.fyvr16j{height:-moz-max-content;height:max-content}.fyvr16n{height:-moz-min-content;height:min-content}.fyvr16r{height:100vw}.fyvr16v{height:100vh}.fyvr16z{max-width:var(--seq-space-0)}.fyvr173{max-width:var(--seq-space-1)}.fyvr177{max-width:var(--seq-space-2)}.fyvr17b{max-width:var(--seq-space-3)}.fyvr17f{max-width:var(--seq-space-4)}.fyvr17j{max-width:var(--seq-space-5)}.fyvr17n{max-width:var(--seq-space-6)}.fyvr17r{max-width:var(--seq-space-7)}.fyvr17v{max-width:var(--seq-space-8)}.fyvr17z{max-width:var(--seq-space-9)}.fyvr183{max-width:var(--seq-space-10)}.fyvr187{max-width:var(--seq-space-12)}.fyvr18b{max-width:var(--seq-space-14)}.fyvr18f{max-width:var(--seq-space-16)}.fyvr18j{max-width:var(--seq-space-0_25)}.fyvr18n{max-width:var(--seq-space-0_5)}.fyvr18r{max-width:var(--seq-space-1_5)}.fyvr18v{max-width:0}.fyvr18z{max-width:1px}.fyvr193{max-width:auto}.fyvr197{max-width:100%}.fyvr19b{max-width:50%}.fyvr19f{max-width:33.33333%}.fyvr19j{max-width:66.66667%}.fyvr19n{max-width:25%}.fyvr19r{max-width:75%}.fyvr19v{max-width:-moz-fit-content;max-width:fit-content}.fyvr19z{max-width:-moz-max-content;max-width:max-content}.fyvr1a3{max-width:-moz-min-content;max-width:min-content}.fyvr1a7{max-width:100vw}.fyvr1ab{max-width:100vh}.fyvr1af{max-height:var(--seq-space-0)}.fyvr1aj{max-height:var(--seq-space-1)}.fyvr1an{max-height:var(--seq-space-2)}.fyvr1ar{max-height:var(--seq-space-3)}.fyvr1av{max-height:var(--seq-space-4)}.fyvr1az{max-height:var(--seq-space-5)}.fyvr1b3{max-height:var(--seq-space-6)}.fyvr1b7{max-height:var(--seq-space-7)}.fyvr1bb{max-height:var(--seq-space-8)}.fyvr1bf{max-height:var(--seq-space-9)}.fyvr1bj{max-height:var(--seq-space-10)}.fyvr1bn{max-height:var(--seq-space-12)}.fyvr1br{max-height:var(--seq-space-14)}.fyvr1bv{max-height:var(--seq-space-16)}.fyvr1bz{max-height:var(--seq-space-0_25)}.fyvr1c3{max-height:var(--seq-space-0_5)}.fyvr1c7{max-height:var(--seq-space-1_5)}.fyvr1cb{max-height:0}.fyvr1cf{max-height:1px}.fyvr1cj{max-height:auto}.fyvr1cn{max-height:100%}.fyvr1cr{max-height:50%}.fyvr1cv{max-height:33.33333%}.fyvr1cz{max-height:66.66667%}.fyvr1d3{max-height:25%}.fyvr1d7{max-height:75%}.fyvr1db{max-height:-moz-fit-content;max-height:fit-content}.fyvr1df{max-height:-moz-max-content;max-height:max-content}.fyvr1dj{max-height:-moz-min-content;max-height:min-content}.fyvr1dn{max-height:100vw}.fyvr1dr{max-height:100vh}.fyvr1dv{min-width:var(--seq-space-0)}.fyvr1dz{min-width:var(--seq-space-1)}.fyvr1e3{min-width:var(--seq-space-2)}.fyvr1e7{min-width:var(--seq-space-3)}.fyvr1eb{min-width:var(--seq-space-4)}.fyvr1ef{min-width:var(--seq-space-5)}.fyvr1ej{min-width:var(--seq-space-6)}.fyvr1en{min-width:var(--seq-space-7)}.fyvr1er{min-width:var(--seq-space-8)}.fyvr1ev{min-width:var(--seq-space-9)}.fyvr1ez{min-width:var(--seq-space-10)}.fyvr1f3{min-width:var(--seq-space-12)}.fyvr1f7{min-width:var(--seq-space-14)}.fyvr1fb{min-width:var(--seq-space-16)}.fyvr1ff{min-width:var(--seq-space-0_25)}.fyvr1fj{min-width:var(--seq-space-0_5)}.fyvr1fn{min-width:var(--seq-space-1_5)}.fyvr1fr{min-width:0}.fyvr1fv{min-width:1px}.fyvr1fz{min-width:auto}.fyvr1g3{min-width:100%}.fyvr1g7{min-width:50%}.fyvr1gb{min-width:33.33333%}.fyvr1gf{min-width:66.66667%}.fyvr1gj{min-width:25%}.fyvr1gn{min-width:75%}.fyvr1gr{min-width:-moz-fit-content;min-width:fit-content}.fyvr1gv{min-width:-moz-max-content;min-width:max-content}.fyvr1gz{min-width:-moz-min-content;min-width:min-content}.fyvr1h3{min-width:100vw}.fyvr1h7{min-width:100vh}.fyvr1hb{min-height:var(--seq-space-0)}.fyvr1hf{min-height:var(--seq-space-1)}.fyvr1hj{min-height:var(--seq-space-2)}.fyvr1hn{min-height:var(--seq-space-3)}.fyvr1hr{min-height:var(--seq-space-4)}.fyvr1hv{min-height:var(--seq-space-5)}.fyvr1hz{min-height:var(--seq-space-6)}.fyvr1i3{min-height:var(--seq-space-7)}.fyvr1i7{min-height:var(--seq-space-8)}.fyvr1ib{min-height:var(--seq-space-9)}.fyvr1if{min-height:var(--seq-space-10)}.fyvr1ij{min-height:var(--seq-space-12)}.fyvr1in{min-height:var(--seq-space-14)}.fyvr1ir{min-height:var(--seq-space-16)}.fyvr1iv{min-height:var(--seq-space-0_25)}.fyvr1iz{min-height:var(--seq-space-0_5)}.fyvr1j3{min-height:var(--seq-space-1_5)}.fyvr1j7{min-height:0}.fyvr1jb{min-height:1px}.fyvr1jf{min-height:auto}.fyvr1jj{min-height:100%}.fyvr1jn{min-height:50%}.fyvr1jr{min-height:33.33333%}.fyvr1jv{min-height:66.66667%}.fyvr1jz{min-height:25%}.fyvr1k3{min-height:75%}.fyvr1k7{min-height:-moz-fit-content;min-height:fit-content}.fyvr1kb{min-height:-moz-max-content;min-height:max-content}.fyvr1kf{min-height:-moz-min-content;min-height:min-content}.fyvr1kj{min-height:100vw}.fyvr1kn{min-height:100vh}.fyvr1kr{top:var(--seq-space-0)}.fyvr1kv{top:var(--seq-space-1)}.fyvr1kz{top:var(--seq-space-2)}.fyvr1l3{top:var(--seq-space-3)}.fyvr1l7{top:var(--seq-space-4)}.fyvr1lb{top:var(--seq-space-5)}.fyvr1lf{top:var(--seq-space-6)}.fyvr1lj{top:var(--seq-space-7)}.fyvr1ln{top:var(--seq-space-8)}.fyvr1lr{top:var(--seq-space-9)}.fyvr1lv{top:var(--seq-space-10)}.fyvr1lz{top:var(--seq-space-12)}.fyvr1m3{top:var(--seq-space-14)}.fyvr1m7{top:var(--seq-space-16)}.fyvr1mb{top:var(--seq-space-0_25)}.fyvr1mf{top:var(--seq-space-0_5)}.fyvr1mj{top:var(--seq-space-1_5)}.fyvr1mn{top:auto}.fyvr1mr{bottom:var(--seq-space-0)}.fyvr1mv{bottom:var(--seq-space-1)}.fyvr1mz{bottom:var(--seq-space-2)}.fyvr1n3{bottom:var(--seq-space-3)}.fyvr1n7{bottom:var(--seq-space-4)}.fyvr1nb{bottom:var(--seq-space-5)}.fyvr1nf{bottom:var(--seq-space-6)}.fyvr1nj{bottom:var(--seq-space-7)}.fyvr1nn{bottom:var(--seq-space-8)}.fyvr1nr{bottom:var(--seq-space-9)}.fyvr1nv{bottom:var(--seq-space-10)}.fyvr1nz{bottom:var(--seq-space-12)}.fyvr1o3{bottom:var(--seq-space-14)}.fyvr1o7{bottom:var(--seq-space-16)}.fyvr1ob{bottom:var(--seq-space-0_25)}.fyvr1of{bottom:var(--seq-space-0_5)}.fyvr1oj{bottom:var(--seq-space-1_5)}.fyvr1on{bottom:auto}.fyvr1or{left:var(--seq-space-0)}.fyvr1ov{left:var(--seq-space-1)}.fyvr1oz{left:var(--seq-space-2)}.fyvr1p3{left:var(--seq-space-3)}.fyvr1p7{left:var(--seq-space-4)}.fyvr1pb{left:var(--seq-space-5)}.fyvr1pf{left:var(--seq-space-6)}.fyvr1pj{left:var(--seq-space-7)}.fyvr1pn{left:var(--seq-space-8)}.fyvr1pr{left:var(--seq-space-9)}.fyvr1pv{left:var(--seq-space-10)}.fyvr1pz{left:var(--seq-space-12)}.fyvr1q3{left:var(--seq-space-14)}.fyvr1q7{left:var(--seq-space-16)}.fyvr1qb{left:var(--seq-space-0_25)}.fyvr1qf{left:var(--seq-space-0_5)}.fyvr1qj{left:var(--seq-space-1_5)}.fyvr1qn{left:auto}.fyvr1qr{right:var(--seq-space-0)}.fyvr1qv{right:var(--seq-space-1)}.fyvr1qz{right:var(--seq-space-2)}.fyvr1r3{right:var(--seq-space-3)}.fyvr1r7{right:var(--seq-space-4)}.fyvr1rb{right:var(--seq-space-5)}.fyvr1rf{right:var(--seq-space-6)}.fyvr1rj{right:var(--seq-space-7)}.fyvr1rn{right:var(--seq-space-8)}.fyvr1rr{right:var(--seq-space-9)}.fyvr1rv{right:var(--seq-space-10)}.fyvr1rz{right:var(--seq-space-12)}.fyvr1s3{right:var(--seq-space-14)}.fyvr1s7{right:var(--seq-space-16)}.fyvr1sb{right:var(--seq-space-0_25)}.fyvr1sf{right:var(--seq-space-0_5)}.fyvr1sj{right:var(--seq-space-1_5)}.fyvr1sn{right:auto}.fyvr1sr{padding-top:var(--seq-space-0)}.fyvr1sv{padding-top:var(--seq-space-1)}.fyvr1sz{padding-top:var(--seq-space-2)}.fyvr1t3{padding-top:var(--seq-space-3)}.fyvr1t7{padding-top:var(--seq-space-4)}.fyvr1tb{padding-top:var(--seq-space-5)}.fyvr1tf{padding-top:var(--seq-space-6)}.fyvr1tj{padding-top:var(--seq-space-7)}.fyvr1tn{padding-top:var(--seq-space-8)}.fyvr1tr{padding-top:var(--seq-space-9)}.fyvr1tv{padding-top:var(--seq-space-10)}.fyvr1tz{padding-top:var(--seq-space-12)}.fyvr1u3{padding-top:var(--seq-space-14)}.fyvr1u7{padding-top:var(--seq-space-16)}.fyvr1ub{padding-top:var(--seq-space-0_25)}.fyvr1uf{padding-top:var(--seq-space-0_5)}.fyvr1uj{padding-top:var(--seq-space-1_5)}.fyvr1un{padding-bottom:var(--seq-space-0)}.fyvr1ur{padding-bottom:var(--seq-space-1)}.fyvr1uv{padding-bottom:var(--seq-space-2)}.fyvr1uz{padding-bottom:var(--seq-space-3)}.fyvr1v3{padding-bottom:var(--seq-space-4)}.fyvr1v7{padding-bottom:var(--seq-space-5)}.fyvr1vb{padding-bottom:var(--seq-space-6)}.fyvr1vf{padding-bottom:var(--seq-space-7)}.fyvr1vj{padding-bottom:var(--seq-space-8)}.fyvr1vn{padding-bottom:var(--seq-space-9)}.fyvr1vr{padding-bottom:var(--seq-space-10)}.fyvr1vv{padding-bottom:var(--seq-space-12)}.fyvr1vz{padding-bottom:var(--seq-space-14)}.fyvr1w3{padding-bottom:var(--seq-space-16)}.fyvr1w7{padding-bottom:var(--seq-space-0_25)}.fyvr1wb{padding-bottom:var(--seq-space-0_5)}.fyvr1wf{padding-bottom:var(--seq-space-1_5)}.fyvr1wj{padding-left:var(--seq-space-0)}.fyvr1wn{padding-left:var(--seq-space-1)}.fyvr1wr{padding-left:var(--seq-space-2)}.fyvr1wv{padding-left:var(--seq-space-3)}.fyvr1wz{padding-left:var(--seq-space-4)}.fyvr1x3{padding-left:var(--seq-space-5)}.fyvr1x7{padding-left:var(--seq-space-6)}.fyvr1xb{padding-left:var(--seq-space-7)}.fyvr1xf{padding-left:var(--seq-space-8)}.fyvr1xj{padding-left:var(--seq-space-9)}.fyvr1xn{padding-left:var(--seq-space-10)}.fyvr1xr{padding-left:var(--seq-space-12)}.fyvr1xv{padding-left:var(--seq-space-14)}.fyvr1xz{padding-left:var(--seq-space-16)}.fyvr1y3{padding-left:var(--seq-space-0_25)}.fyvr1y7{padding-left:var(--seq-space-0_5)}.fyvr1yb{padding-left:var(--seq-space-1_5)}.fyvr1yf{padding-right:var(--seq-space-0)}.fyvr1yj{padding-right:var(--seq-space-1)}.fyvr1yn{padding-right:var(--seq-space-2)}.fyvr1yr{padding-right:var(--seq-space-3)}.fyvr1yv{padding-right:var(--seq-space-4)}.fyvr1yz{padding-right:var(--seq-space-5)}.fyvr1z3{padding-right:var(--seq-space-6)}.fyvr1z7{padding-right:var(--seq-space-7)}.fyvr1zb{padding-right:var(--seq-space-8)}.fyvr1zf{padding-right:var(--seq-space-9)}.fyvr1zj{padding-right:var(--seq-space-10)}.fyvr1zn{padding-right:var(--seq-space-12)}.fyvr1zr{padding-right:var(--seq-space-14)}.fyvr1zv{padding-right:var(--seq-space-16)}.fyvr1zz{padding-right:var(--seq-space-0_25)}.fyvr1103{padding-right:var(--seq-space-0_5)}.fyvr1107{padding-right:var(--seq-space-1_5)}.fyvr110b{margin-top:var(--seq-space-0)}.fyvr110f{margin-top:var(--seq-space-1)}.fyvr110j{margin-top:var(--seq-space-2)}.fyvr110n{margin-top:var(--seq-space-3)}.fyvr110r{margin-top:var(--seq-space-4)}.fyvr110v{margin-top:var(--seq-space-5)}.fyvr110z{margin-top:var(--seq-space-6)}.fyvr1113{margin-top:var(--seq-space-7)}.fyvr1117{margin-top:var(--seq-space-8)}.fyvr111b{margin-top:var(--seq-space-9)}.fyvr111f{margin-top:var(--seq-space-10)}.fyvr111j{margin-top:var(--seq-space-12)}.fyvr111n{margin-top:var(--seq-space-14)}.fyvr111r{margin-top:var(--seq-space-16)}.fyvr111v{margin-top:var(--seq-space-0_25)}.fyvr111z{margin-top:var(--seq-space-0_5)}.fyvr1123{margin-top:var(--seq-space-1_5)}.fyvr1127{margin-top:auto}.fyvr112b{margin-bottom:var(--seq-space-0)}.fyvr112f{margin-bottom:var(--seq-space-1)}.fyvr112j{margin-bottom:var(--seq-space-2)}.fyvr112n{margin-bottom:var(--seq-space-3)}.fyvr112r{margin-bottom:var(--seq-space-4)}.fyvr112v{margin-bottom:var(--seq-space-5)}.fyvr112z{margin-bottom:var(--seq-space-6)}.fyvr1133{margin-bottom:var(--seq-space-7)}.fyvr1137{margin-bottom:var(--seq-space-8)}.fyvr113b{margin-bottom:var(--seq-space-9)}.fyvr113f{margin-bottom:var(--seq-space-10)}.fyvr113j{margin-bottom:var(--seq-space-12)}.fyvr113n{margin-bottom:var(--seq-space-14)}.fyvr113r{margin-bottom:var(--seq-space-16)}.fyvr113v{margin-bottom:var(--seq-space-0_25)}.fyvr113z{margin-bottom:var(--seq-space-0_5)}.fyvr1143{margin-bottom:var(--seq-space-1_5)}.fyvr1147{margin-bottom:auto}.fyvr114b{margin-left:var(--seq-space-0)}.fyvr114f{margin-left:var(--seq-space-1)}.fyvr114j{margin-left:var(--seq-space-2)}.fyvr114n{margin-left:var(--seq-space-3)}.fyvr114r{margin-left:var(--seq-space-4)}.fyvr114v{margin-left:var(--seq-space-5)}.fyvr114z{margin-left:var(--seq-space-6)}.fyvr1153{margin-left:var(--seq-space-7)}.fyvr1157{margin-left:var(--seq-space-8)}.fyvr115b{margin-left:var(--seq-space-9)}.fyvr115f{margin-left:var(--seq-space-10)}.fyvr115j{margin-left:var(--seq-space-12)}.fyvr115n{margin-left:var(--seq-space-14)}.fyvr115r{margin-left:var(--seq-space-16)}.fyvr115v{margin-left:var(--seq-space-0_25)}.fyvr115z{margin-left:var(--seq-space-0_5)}.fyvr1163{margin-left:var(--seq-space-1_5)}.fyvr1167{margin-left:auto}.fyvr116b{margin-right:var(--seq-space-0)}.fyvr116f{margin-right:var(--seq-space-1)}.fyvr116j{margin-right:var(--seq-space-2)}.fyvr116n{margin-right:var(--seq-space-3)}.fyvr116r{margin-right:var(--seq-space-4)}.fyvr116v{margin-right:var(--seq-space-5)}.fyvr116z{margin-right:var(--seq-space-6)}.fyvr1173{margin-right:var(--seq-space-7)}.fyvr1177{margin-right:var(--seq-space-8)}.fyvr117b{margin-right:var(--seq-space-9)}.fyvr117f{margin-right:var(--seq-space-10)}.fyvr117j{margin-right:var(--seq-space-12)}.fyvr117n{margin-right:var(--seq-space-14)}.fyvr117r{margin-right:var(--seq-space-16)}.fyvr117v{margin-right:var(--seq-space-0_25)}.fyvr117z{margin-right:var(--seq-space-0_5)}.fyvr1183{margin-right:var(--seq-space-1_5)}.fyvr1187{margin-right:auto}.fyvr118b{gap:var(--seq-space-0)}.fyvr118f{gap:var(--seq-space-1)}.fyvr118j{gap:var(--seq-space-2)}.fyvr118n{gap:var(--seq-space-3)}.fyvr118r{gap:var(--seq-space-4)}.fyvr118v{gap:var(--seq-space-5)}.fyvr118z{gap:var(--seq-space-6)}.fyvr1193{gap:var(--seq-space-7)}.fyvr1197{gap:var(--seq-space-8)}.fyvr119b{gap:var(--seq-space-9)}.fyvr119f{gap:var(--seq-space-10)}.fyvr119j{gap:var(--seq-space-12)}.fyvr119n{gap:var(--seq-space-14)}.fyvr119r{gap:var(--seq-space-16)}.fyvr119v{gap:var(--seq-space-0_25)}.fyvr119z{gap:var(--seq-space-0_5)}.fyvr11a3{gap:var(--seq-space-1_5)}.fyvr11a7{border-bottom-width:var(--seq-border-widths-none)}.fyvr11ab{border-bottom-width:var(--seq-border-widths-thin)}.fyvr11af{border-bottom-width:var(--seq-border-widths-thick)}.fyvr11aj{border-left-width:var(--seq-border-widths-none)}.fyvr11an{border-left-width:var(--seq-border-widths-thin)}.fyvr11ar{border-left-width:var(--seq-border-widths-thick)}.fyvr11av{border-right-width:var(--seq-border-widths-none)}.fyvr11az{border-right-width:var(--seq-border-widths-thin)}.fyvr11b3{border-right-width:var(--seq-border-widths-thick)}.fyvr11b7{border-top-width:var(--seq-border-widths-none)}.fyvr11bb{border-top-width:var(--seq-border-widths-thin)}.fyvr11bf{border-top-width:var(--seq-border-widths-thick)}.fyvr11bj{border-bottom-left-radius:var(--seq-radii-none)}.fyvr11bn{border-bottom-left-radius:var(--seq-radii-xs)}.fyvr11br{border-bottom-left-radius:var(--seq-radii-sm)}.fyvr11bv{border-bottom-left-radius:var(--seq-radii-md)}.fyvr11bz{border-bottom-left-radius:var(--seq-radii-lg)}.fyvr11c3{border-bottom-left-radius:var(--seq-radii-circle)}.fyvr11c7{border-bottom-right-radius:var(--seq-radii-none)}.fyvr11cb{border-bottom-right-radius:var(--seq-radii-xs)}.fyvr11cf{border-bottom-right-radius:var(--seq-radii-sm)}.fyvr11cj{border-bottom-right-radius:var(--seq-radii-md)}.fyvr11cn{border-bottom-right-radius:var(--seq-radii-lg)}.fyvr11cr{border-bottom-right-radius:var(--seq-radii-circle)}.fyvr11cv{border-top-left-radius:var(--seq-radii-none)}.fyvr11cz{border-top-left-radius:var(--seq-radii-xs)}.fyvr11d3{border-top-left-radius:var(--seq-radii-sm)}.fyvr11d7{border-top-left-radius:var(--seq-radii-md)}.fyvr11db{border-top-left-radius:var(--seq-radii-lg)}.fyvr11df{border-top-left-radius:var(--seq-radii-circle)}.fyvr11dj{border-top-right-radius:var(--seq-radii-none)}.fyvr11dn{border-top-right-radius:var(--seq-radii-xs)}.fyvr11dr{border-top-right-radius:var(--seq-radii-sm)}.fyvr11dv{border-top-right-radius:var(--seq-radii-md)}.fyvr11dz{border-top-right-radius:var(--seq-radii-lg)}.fyvr11e3{border-top-right-radius:var(--seq-radii-circle)}.fyvr11e7{font-size:var(--seq-font-sizes-inherit)}.fyvr11eb{font-size:var(--seq-font-sizes-xsmall)}.fyvr11ef{font-size:var(--seq-font-sizes-small)}.fyvr11ej{font-size:var(--seq-font-sizes-normal)}.fyvr11en{font-size:var(--seq-font-sizes-medium)}.fyvr11er{font-size:var(--seq-font-sizes-large)}.fyvr11ev{font-size:var(--seq-font-sizes-xlarge)}.fyvr11ez{font-weight:var(--seq-font-weights-inherit)}.fyvr11f3{font-weight:var(--seq-font-weights-normal)}.fyvr11f7{font-weight:var(--seq-font-weights-medium)}.fyvr11fb{font-weight:var(--seq-font-weights-semibold)}.fyvr11ff{font-weight:var(--seq-font-weights-bold)}.fyvr11fj{letter-spacing:var(--seq-letter-spacings-inherit)}.fyvr11fn{letter-spacing:var(--seq-letter-spacings-none)}.fyvr11fr{letter-spacing:var(--seq-letter-spacings-normal)}.fyvr11fv{letter-spacing:var(--seq-letter-spacings-wide)}.fyvr11fz{line-height:var(--seq-line-heights-4)}.fyvr11g3{line-height:var(--seq-line-heights-5)}.fyvr11g7{line-height:var(--seq-line-heights-6)}.fyvr11gb{line-height:var(--seq-line-heights-7)}.fyvr11gf{line-height:var(--seq-line-heights-9)}.fyvr11gj{line-height:var(--seq-line-heights-inherit)}.fyvr11gn{text-align:center}.fyvr11gr{text-align:left}.fyvr11gv{text-align:right}.fyvr11gz{display:block}.fyvr11h3{display:flex}.fyvr11h7{display:grid}.fyvr11hb{display:inline-block}.fyvr11hf{display:inline-flex}.fyvr11hj{display:none}.fyvr11hn{display:contents}.fyvr11hr{position:absolute}.fyvr11hv{position:fixed}.fyvr11hz{position:relative}.fyvr11i3{position:sticky}.fyvr11i7{flex-direction:column}.fyvr11ib{flex-direction:column-reverse}.fyvr11if{flex-direction:row}.fyvr11ij{flex-direction:row-reverse}.fyvr11in{flex-shrink:0}.fyvr11ir{flex-shrink:1}.fyvr11iv{flex-grow:0}.fyvr11iz{flex-grow:1}.fyvr11j3{flex-wrap:nowrap}.fyvr11j7{flex-wrap:wrap}.fyvr11jb{flex-wrap:wrap-reverse}.fyvr11jf{justify-content:flex-start}.fyvr11jj{justify-content:center}.fyvr11jn{justify-content:flex-end}.fyvr11jr{justify-content:stretch}.fyvr11jv{justify-content:space-around}.fyvr11jz{justify-content:space-between}.fyvr11k3{justify-content:space-evenly}.fyvr11k7{justify-self:flex-start}.fyvr11kb{justify-self:center}.fyvr11kf{justify-self:flex-end}.fyvr11kj{justify-self:stretch}.fyvr11kn{align-items:flex-start}.fyvr11kr{align-items:center}.fyvr11kv{align-items:flex-end}.fyvr11kz{align-items:stretch}.fyvr11l3{align-items:baseline}.fyvr11l7{align-self:flex-start}.fyvr11lb{align-self:center}.fyvr11lf{align-self:flex-end}.fyvr11lj{align-self:stretch}.fyvr11ln{align-self:baseline}.fyvr11lr{overflow-x:auto}.fyvr11lv{overflow-x:hidden}.fyvr11lz{overflow-x:scroll}.fyvr11m3{overflow-x:visible}.fyvr11m7{overflow-y:auto}.fyvr11mb{overflow-y:hidden}.fyvr11mf{overflow-y:scroll}.fyvr11mj{overflow-y:visible}.fyvr11mn{visibility:hidden}.fyvr11mr{visibility:visible}}._4efw240:focus{outline:none}._4efw240:focus-visible{outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1qxj1ibj{font-style:italic}._1qxj1ibk{-webkit-text-decoration:underline;text-decoration:underline}._1qxj1ibl{text-transform:uppercase}._1qxj1ibm{text-transform:capitalize}._1qxj1ibn{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}._2q9vfj7{font-weight:var(--seq-font-weights-normal)}._140wn8nl{outline:2px solid rgba(255,255,255,.1);outline-offset:-2px}._140wn8nr{outline-offset:1px}._140wn8nw{height:28px}._140wn8nx{height:36px}._140wn8ny{height:44px}._140wn8nz{height:52px}._140wn8n10{padding:0;display:flex;align-items:center;justify-content:center}._140wn8n13{outline-color:var(--seq-colors-background-secondary);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n14{outline-color:var(--seq-colors-border-normal);outline-style:solid;outline-offset:calc(var(--seq-border-widths-thick) * -1);outline-width:var(--seq-border-widths-thick);border-color:transparent}._140wn8n15{width:28px}._140wn8n16{width:36px}._140wn8n17{width:44px}._140wn8n18{width:52px}._140wn8n19,._140wn8n1a{padding-left:var(--seq-space-2)}._140wn8n1b{padding-left:var(--seq-space-4)}._140wn8n1c,._140wn8n1d{padding-right:var(--seq-space-2)}._140wn8n1e{padding-right:var(--seq-space-4)}.rhmai65{opacity:.5;cursor:default;pointer-events:none}._43lu9r6{grid-template-columns:1fr 2fr}._43lu9r7{grid-template-columns:2fr 1fr}._1dizidw0{flex-shrink:0}._1dizidw1{height:var(--seq-line-heights-4);width:var(--seq-line-heights-4)}._1dizidw2{height:var(--seq-line-heights-5);width:var(--seq-line-heights-5)}._1dizidw3{height:var(--seq-line-heights-6);width:var(--seq-line-heights-6)}._1dizidw4{height:var(--seq-line-heights-7);width:var(--seq-line-heights-7)}._1dizidw5{height:var(--seq-line-heights-9);width:var(--seq-line-heights-9)}._1c9x66f2{height:20px;width:20px}._1c9x66f3{height:28px;width:28px}._4j62fl0{min-height:64px}._4j62fl2{border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;height:64px}._4j62fl4{transform-origin:top}._4j62fl5{height:1.25rem;width:1.25rem;display:block}._1k2mbvi1{width:160px}._1k2mbvi2{fill:var(--seq-colors-background-raised)}._1k2mbvi4[data-disabled]{opacity:.8;cursor:default;pointer-events:none;color:var(--seq-colors-text50)}._1k2mbvi4[data-highlighted]{background:var(--seq-colors-background-contrast)}._1k2mbvi5{position:absolute;left:0;width:var(--seq-space-6);display:inline-flex;align-items:center;justify-content:center}._1hq71vk1{height:52px}._1hq71vk1:has(:disabled),._1hq71vk1:has(:disabled):hover{cursor:default;opacity:.5}._1hq71vk1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._1bhyzin1{width:12px;height:12px}._1bhyzin2{width:20px;height:20px}._1bhyzin3{width:32px;height:32px}._1bhyzin4{width:40px;height:40px}._1bhyzin5{width:52px;height:52px}._1vqx0w92{height:100%;overflow-y:auto;overscroll-behavior-y:contain}._1vqx0w93{overflow-x:auto;overscroll-behavior-x:contain;width:100%}._1vqx0w95:before{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w95:after{content:"";position:absolute;z-index:1;pointer-events:none}._1vqx0w96:before{display:none}._1vqx0w96:after{display:none}._1vqx0w97:before{background:linear-gradient(to top,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;width:100%;height:var(--seq-space-4)}._1vqx0w97:after{background:linear-gradient(to bottom,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;bottom:0;width:100%;height:var(--seq-space-4)}._1vqx0w98:before{background:linear-gradient(to left,transparent 0%,var(--seq-colors-background-primary) 100%);left:0;top:0;height:100%;width:var(--seq-space-4)}._1vqx0w98:after{background:linear-gradient(to right,transparent 0%,var(--seq-colors-background-primary) 100%);right:0;top:0;height:100%;width:var(--seq-space-4)}._5b32m95{-ms-overflow-style:none;scrollbar-width:none}._5b32m95::-webkit-scrollbar{display:none}._5b32m96{width:100vw;min-height:100px;max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px)}._5b32m97{width:100vw;height:calc(100vh - 70px);height:calc(100dvh - 70px)}._5b32m99{height:auto!important}@media screen and (min-width: 769px){._5b32m96{width:540px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px))}._5b32m97{width:720px;max-height:min(800px,calc(100vh - 80px));max-height:min(800px,calc(100dvh - 80px));height:800px}}._1acm19y1{cursor:text;height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._1acm19y1:has(:disabled),._1acm19y1:has(:disabled):hover{cursor:default;opacity:.5}._1acm19y1:focus-within{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.y5zf970{width:40px;height:48px;display:flex;justify-content:center;align-items:center;padding:10px;background:var(--seq-colors-background-secondary);border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100)}.y5zf971{height:48px;width:40px;display:flex;justify-content:center;align-items:center;padding:10px;border:none;border-radius:var(--seq-radii-sm);color:var(--seq-colors-text100);background:transparent;text-align:center;caret-color:transparent;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.y5zf971:disabled{cursor:default;opacity:.5}.y5zf971::-moz-selection{background:transparent}.y5zf971::selection{background:transparent}.y5zf971:hover:not(.y5zf971:disabled){border-color:var(--seq-colors-border-focus)}@keyframes _1jujggt0{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}._1jujggt1{background-image:linear-gradient(-45deg,transparent,var(--seq-colors-background-secondary),transparent);background-size:400% 400%;background-repeat:no-repeat;animation:_1jujggt0 1s ease infinite}._1jujggt2{width:96px;height:var(--seq-line-heights-4)}._1jujggt3{width:100px;height:var(--seq-line-heights-5)}._1jujggt4{width:124px;height:var(--seq-line-heights-6)}._1jujggt5{width:124px;height:var(--seq-line-heights-7)}._1jujggt6{width:148px;height:var(--seq-line-heights-9)}.io59uy4{height:20px;width:20px}.io59uy5{height:28px;width:28px}.io59uy7:after{content:"";display:block;border-radius:999px;background:currentColor}.io59uy9:after{width:14px;height:14px}.io59uya:after{width:18px;height:18px}.gohwum1{height:52px;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}.gohwum1:has(:disabled),.gohwum1:has(:disabled):hover{cursor:default;opacity:.5}.gohwum1:focus{outline:none}.gohwum1:focus-within{outline:none;opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}.gohwuma{box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}.gohwume{height:52px}.gohwume[data-highlighted]{background:var(--seq-colors-background-secondary)}.gohwume[data-state=checked]{background:var(--seq-colors-background-control)}@keyframes en4abt0{to{transform:rotate(1turn)}}.en4abt1{animation:en4abt0 2s linear infinite}.en4abt2{width:16px;height:16px;stroke-width:3px}.en4abt3{width:24px;height:24px;stroke-width:2px}.en4abt4{width:32px;height:32px;stroke-width:1.5px}._1lp2u8e1{width:48px;height:28px}._1lp2u8e1[data-state=checked]{background:var(--seq-colors-gradient-primary)}._1lp2u8e1:disabled{cursor:default;opacity:.5}._1lp2u8e3{transition:transform .1s ease-out,background .1s ease-out;transform:translate(0);will-change:transform}._1lp2u8e3[data-state=checked]{transform:translate(var(--seq-space-5))}.nwwh3z0{list-style-type:none}.nwwh3za{font-size:.625rem;letter-spacing:.8px}._10c8o0n1:has(:focus-visible){outline:none;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset}._10c8o0n3{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;z-index:2}._10c8o0n3[data-state=active]{color:var(--seq-colors-text100)}._10c8o0n3[disabled]{opacity:.5}._10c8o0n5{transition:transform .2s ease-out}@keyframes _6wut8v2{0%{transform:translate(var(--radix-toast-swipe-end-x))}to{transform:translate(100%)}}._6wut8v1{padding:var(--seq-space-4);padding-top:0;z-index:1000;list-style:none;max-width:532px}._6wut8v3{will-change:transform,opacity}._6wut8v3[data-swipe=move]{transform:translate(var(--radix-toast-swipe-move-x))!important}._6wut8v3[data-swipe=cancel]{transition:transform .2s ease-out;transform:translate(0)}._6wut8v3[data-swipe=end]{animation:_6wut8v2 .2s ease-out}._6wut8v5{color:positive}._6wut8v6{color:negative}._15pztn1{resize:none;cursor:text;box-shadow:0 0 0 var(--seq-border-widths-thin) var(--seq-colors-border-normal) inset}._15pztn1:disabled,._15pztn1:disabled:hover{cursor:default;opacity:.5}._15pztn1:focus{opacity:1!important;box-shadow:0 0 0 var(--seq-border-widths-thick) var(--seq-colors-border-focus) inset;border-color:transparent}._15pztn2{resize:vertical}._18h918k6{width:12px;height:12px}._18h918k7{width:20px;height:20px}._18h918k8{width:32px;height:32px}._18h918k9{width:40px;height:40px}._18h918ka{width:64px;height:64px}._18h918kf{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k6 ._18h918kf{max-width:16px;max-height:16px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k7 ._18h918kf{max-width:20px;max-height:20px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k8 ._18h918kf{max-width:32px;max-height:32px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918k9 ._18h918kf{max-width:40px;max-height:40px}._18h918k5._18h918k0.fyvr11ls.fyvr11m8.fyvr11jg.fyvr11ko.fyvr11h0._18h918ka ._18h918kf{max-width:64px;max-height:64px}.bnrreb2{width:12px;height:12px;font-size:4px}.bnrreb3{width:20px;height:20px;font-size:8px}.bnrreb4{width:32px;height:32px;font-size:9px}.bnrreb5{width:40px;height:40px;font-size:11px}.bnrreb6{width:64px;height:64px;font-size:16px}.bnrreb7{max-width:100%;max-height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb2 .bnrreb7{max-width:12px;max-height:12px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb3 .bnrreb7{max-width:20px;max-height:20px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb4 .bnrreb7{max-width:32px;max-height:32px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb5 .bnrreb7{max-width:40px;max-height:40px}.bnrreb1.bnrreb0.fyvr11jg.fyvr11ko.fyvr11hw.fyvr11h0.bnrreb6 .bnrreb7{max-width:64px;max-height:64px}.bnrreb9{font-size:inherit}.q888p21{fill:var(--seq-colors-background-raised);box-shadow:0 0 10px #00000080}@keyframes _1e9z9270{0%{visibility:hidden}50%{visibility:hidden}to{visibility:visible}}._1e9z9271{animation:_1e9z9270 2s infinite}._1q07ov40{display:grid;grid-column-gap:var(--seq-space-2);grid-row-gap:var(--seq-space-2);grid-template-columns:repeat(1,minmax(0,1fr))}@media screen and (min-width: 769px){._1q07ov40{grid-template-columns:repeat(2,minmax(0,1fr))}}@media screen and (min-width: 1281px){._1q07ov40{grid-template-columns:repeat(3,minmax(0,1fr))}} diff --git a/assets/index-DdY2Dpeu.js b/assets/index-DdY2Dpeu.js new file mode 100644 index 0000000..0d5764b --- /dev/null +++ b/assets/index-DdY2Dpeu.js @@ -0,0 +1,168 @@ +var jF=Object.defineProperty;var Gk=t=>{throw TypeError(t)};var FF=(t,e,r)=>e in t?jF(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var N=(t,e,r)=>FF(t,typeof e!="symbol"?e+"":e,r),vm=(t,e,r)=>e.has(t)||Gk("Cannot "+r);var w=(t,e,r)=>(vm(t,e,"read from private field"),r?r.call(t):e.get(t)),j=(t,e,r)=>e.has(t)?Gk("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),T=(t,e,r,n)=>(vm(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Y=(t,e,r)=>(vm(t,e,"access private method"),r);var Il=(t,e,r,n)=>({set _(s){T(t,e,s,r)},get _(){return w(t,e,n)}});function UF(t,e){for(var r=0;rn[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function D3(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var B3={exports:{}},Lv={},L3={exports:{}},Fe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Z0=Symbol.for("react.element"),$F=Symbol.for("react.portal"),WF=Symbol.for("react.fragment"),VF=Symbol.for("react.strict_mode"),HF=Symbol.for("react.profiler"),zF=Symbol.for("react.provider"),GF=Symbol.for("react.context"),qF=Symbol.for("react.forward_ref"),KF=Symbol.for("react.suspense"),QF=Symbol.for("react.memo"),JF=Symbol.for("react.lazy"),qk=Symbol.iterator;function YF(t){return t===null||typeof t!="object"?null:(t=qk&&t[qk]||t["@@iterator"],typeof t=="function"?t:null)}var j3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F3=Object.assign,U3={};function ad(t,e,r){this.props=t,this.context=e,this.refs=U3,this.updater=r||j3}ad.prototype.isReactComponent={};ad.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};ad.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function $3(){}$3.prototype=ad.prototype;function q2(t,e,r){this.props=t,this.context=e,this.refs=U3,this.updater=r||j3}var K2=q2.prototype=new $3;K2.constructor=q2;F3(K2,ad.prototype);K2.isPureReactComponent=!0;var Kk=Array.isArray,W3=Object.prototype.hasOwnProperty,Q2={current:null},V3={key:!0,ref:!0,__self:!0,__source:!0};function H3(t,e,r){var n,s={},i=null,o=null;if(e!=null)for(n in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(i=""+e.key),e)W3.call(e,n)&&!V3.hasOwnProperty(n)&&(s[n]=e[n]);var a=arguments.length-2;if(a===1)s.children=r;else if(1>>1,B=C[M];if(0>>1;Ms(te,O))Js($,te)?(C[M]=$,C[J]=O,M=J):(C[M]=te,C[q]=O,M=q);else if(Js($,O))C[M]=$,C[J]=O,M=J;else break e}}return A}function s(C,A){var O=C.sortIndex-A.sortIndex;return O!==0?O:C.id-A.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var o=Date,a=o.now();t.unstable_now=function(){return o.now()-a}}var c=[],l=[],u=1,f=null,d=3,h=!1,y=!1,p=!1,b=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(C){for(var A=r(l);A!==null;){if(A.callback===null)n(l);else if(A.startTime<=C)n(l),A.sortIndex=A.expirationTime,e(c,A);else break;A=r(l)}}function k(C){if(p=!1,x(C),!y)if(r(c)!==null)y=!0,G(S);else{var A=r(l);A!==null&&Z(k,A.startTime-C)}}function S(C,A){y=!1,p&&(p=!1,v(_),_=-1),h=!0;var O=d;try{for(x(A),f=r(c);f!==null&&(!(f.expirationTime>A)||C&&!X());){var M=f.callback;if(typeof M=="function"){f.callback=null,d=f.priorityLevel;var B=M(f.expirationTime<=A);A=t.unstable_now(),typeof B=="function"?f.callback=B:f===r(c)&&n(c),x(A)}else n(c);f=r(c)}if(f!==null)var W=!0;else{var q=r(l);q!==null&&Z(k,q.startTime-A),W=!1}return W}finally{f=null,d=O,h=!1}}var I=!1,R=null,_=-1,V=5,F=-1;function X(){return!(t.unstable_now()-FC||125M?(C.sortIndex=O,e(l,C),r(c)===null&&C===r(l)&&(p?(v(_),_=-1):p=!0,Z(k,O-M))):(C.sortIndex=B,e(c,C),y||h||(y=!0,G(S))),C},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(C){var A=d;return function(){var O=d;d=A;try{return C.apply(this,arguments)}finally{d=O}}}})(Q3);K3.exports=Q3;var lU=K3.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var uU=m,On=lU;function ne(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Qx=Object.prototype.hasOwnProperty,fU=/^[: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]*$/,Jk={},Yk={};function dU(t){return Qx.call(Yk,t)?!0:Qx.call(Jk,t)?!1:fU.test(t)?Yk[t]=!0:(Jk[t]=!0,!1)}function hU(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function pU(t,e,r,n){if(e===null||typeof e>"u"||hU(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Jr(t,e,r,n,s,i,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=s,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=o}var mr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){mr[t]=new Jr(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];mr[e]=new Jr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){mr[t]=new Jr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){mr[t]=new Jr(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){mr[t]=new Jr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){mr[t]=new Jr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){mr[t]=new Jr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){mr[t]=new Jr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){mr[t]=new Jr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Y2=/[\-:]([a-z])/g;function X2(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Y2,X2);mr[e]=new Jr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){mr[t]=new Jr(t,1,!1,t.toLowerCase(),null,!1,!1)});mr.xlinkHref=new Jr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){mr[t]=new Jr(t,1,!1,t.toLowerCase(),null,!0,!0)});function Z2(t,e,r,n){var s=mr.hasOwnProperty(e)?mr[e]:null;(s!==null?s.type!==0:n||!(2a||s[o]!==i[a]){var c=` +`+s[o].replace(" at new "," at ");return t.displayName&&c.includes("")&&(c=c.replace("",t.displayName)),c}while(1<=o&&0<=a);break}}}finally{xm=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Gd(t):""}function yU(t){switch(t.tag){case 5:return Gd(t.type);case 16:return Gd("Lazy");case 13:return Gd("Suspense");case 19:return Gd("SuspenseList");case 0:case 2:case 15:return t=bm(t.type,!1),t;case 11:return t=bm(t.type.render,!1),t;case 1:return t=bm(t.type,!0),t;default:return""}}function Zx(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Yl:return"Fragment";case Jl:return"Portal";case Jx:return"Profiler";case eC:return"StrictMode";case Yx:return"Suspense";case Xx:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case X3:return(t.displayName||"Context")+".Consumer";case Y3:return(t._context.displayName||"Context")+".Provider";case tC:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case rC:return e=t.displayName||null,e!==null?e:Zx(t.type)||"Memo";case Ro:e=t._payload,t=t._init;try{return Zx(t(e))}catch{}}return null}function vU(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zx(e);case 8:return e===eC?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function ka(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function e4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function gU(t){var e=e4(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return s.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function M1(t){t._valueTracker||(t._valueTracker=gU(t))}function t4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=e4(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function py(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function eb(t,e){var r=e.checked;return kt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Zk(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=ka(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function r4(t,e){e=e.checked,e!=null&&Z2(t,"checked",e,!1)}function tb(t,e){r4(t,e);var r=ka(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?rb(t,e.type,r):e.hasOwnProperty("defaultValue")&&rb(t,e.type,ka(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function e6(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function rb(t,e,r){(e!=="number"||py(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var qd=Array.isArray;function xu(t,e,r,n){if(t=t.options,e){e={};for(var s=0;s"+e.valueOf().toString()+"",e=D1.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function $h(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var uh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mU=["Webkit","ms","Moz","O"];Object.keys(uh).forEach(function(t){mU.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),uh[e]=uh[t]})});function o4(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||uh.hasOwnProperty(t)&&uh[t]?(""+e).trim():e+"px"}function a4(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,s=o4(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,s):t[r]=s}}var xU=kt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ib(t,e){if(e){if(xU[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(ne(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(ne(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(ne(61))}if(e.style!=null&&typeof e.style!="object")throw Error(ne(62))}}function ob(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";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 ab=null;function nC(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var cb=null,bu=null,wu=null;function n6(t){if(t=r1(t)){if(typeof cb!="function")throw Error(ne(280));var e=t.stateNode;e&&(e=Wv(e),cb(t.stateNode,t.type,e))}}function c4(t){bu?wu?wu.push(t):wu=[t]:bu=t}function l4(){if(bu){var t=bu,e=wu;if(wu=bu=null,n6(t),e)for(t=0;t>>=0,t===0?32:31-(OU(t)/RU|0)|0}var B1=64,L1=4194304;function Kd(t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function my(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,s=t.suspendedLanes,i=t.pingedLanes,o=r&268435455;if(o!==0){var a=o&~s;a!==0?n=Kd(a):(i&=o,i!==0&&(n=Kd(i)))}else o=r&~s,o!==0?n=Kd(o):i!==0&&(n=Kd(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&s)&&(s=n&-n,i=e&-e,s>=i||s===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0r;r++)e.push(t);return e}function e1(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Ts(e),t[e]=r}function DU(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0=dh),d6=" ",h6=!1;function I4(t,e){switch(t){case"keyup":return l$.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function O4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xl=!1;function f$(t,e){switch(t){case"compositionend":return O4(e);case"keypress":return e.which!==32?null:(h6=!0,d6);case"textInput":return t=e.data,t===d6&&h6?null:t;default:return null}}function d$(t,e){if(Xl)return t==="compositionend"||!fC&&I4(t,e)?(t=T4(),Ip=cC=ia=null,Xl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=g6(r)}}function M4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?M4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function D4(){for(var t=window,e=py();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=py(t.document)}return e}function dC(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function w$(t){var e=D4(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&M4(r.ownerDocument.documentElement,r)){if(n!==null&&dC(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var s=r.textContent.length,i=Math.min(n.start,s);n=n.end===void 0?i:Math.min(n.end,s),!t.extend&&i>n&&(s=n,n=i,i=s),s=m6(r,i);var o=m6(r,n);s&&o&&(t.rangeCount!==1||t.anchorNode!==s.node||t.anchorOffset!==s.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(s.node,s.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,Zl=null,pb=null,ph=null,yb=!1;function x6(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;yb||Zl==null||Zl!==py(n)||(n=Zl,"selectionStart"in n&&dC(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ph&&qh(ph,n)||(ph=n,n=wy(pb,"onSelect"),0ru||(t.current=wb[ru],wb[ru]=null,ru--)}function lt(t,e){ru++,wb[ru]=t.current,t.current=e}var Aa={},Nr=Ba(Aa),ln=Ba(!1),sl=Aa;function Nf(t,e){var r=t.type.contextTypes;if(!r)return Aa;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var s={},i;for(i in r)s[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=s),s}function un(t){return t=t.childContextTypes,t!=null}function Ey(){yt(ln),yt(Nr)}function S6(t,e,r){if(Nr.current!==Aa)throw Error(ne(168));lt(Nr,e),lt(ln,r)}function H4(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var s in n)if(!(s in e))throw Error(ne(108,vU(t)||"Unknown",s));return kt({},r,n)}function ky(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Aa,sl=Nr.current,lt(Nr,t),lt(ln,ln.current),!0}function T6(t,e,r){var n=t.stateNode;if(!n)throw Error(ne(169));r?(t=H4(t,e,sl),n.__reactInternalMemoizedMergedChildContext=t,yt(ln),yt(Nr),lt(Nr,t)):yt(ln),lt(ln,r)}var Pi=null,Vv=!1,Mm=!1;function z4(t){Pi===null?Pi=[t]:Pi.push(t)}function _$(t){Vv=!0,z4(t)}function La(){if(!Mm&&Pi!==null){Mm=!0;var t=0,e=tt;try{var r=Pi;for(tt=1;t>=o,s-=o,Hi=1<<32-Ts(e)+s|r<_?(V=R,R=null):V=R.sibling;var F=d(v,R,x[_],k);if(F===null){R===null&&(R=V);break}t&&R&&F.alternate===null&&e(v,R),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F,R=V}if(_===x.length)return r(v,R),gt&&Za(v,_),S;if(R===null){for(;__?(V=R,R=null):V=R.sibling;var X=d(v,R,F.value,k);if(X===null){R===null&&(R=V);break}t&&R&&X.alternate===null&&e(v,R),g=i(X,g,_),I===null?S=X:I.sibling=X,I=X,R=V}if(F.done)return r(v,R),gt&&Za(v,_),S;if(R===null){for(;!F.done;_++,F=x.next())F=f(v,F.value,k),F!==null&&(g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return gt&&Za(v,_),S}for(R=n(v,R);!F.done;_++,F=x.next())F=h(R,v,_,F.value,k),F!==null&&(t&&F.alternate!==null&&R.delete(F.key===null?_:F.key),g=i(F,g,_),I===null?S=F:I.sibling=F,I=F);return t&&R.forEach(function(re){return e(v,re)}),gt&&Za(v,_),S}function b(v,g,x,k){if(typeof x=="object"&&x!==null&&x.type===Yl&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case _1:e:{for(var S=x.key,I=g;I!==null;){if(I.key===S){if(S=x.type,S===Yl){if(I.tag===7){r(v,I.sibling),g=s(I,x.props.children),g.return=v,v=g;break e}}else if(I.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===Ro&&O6(S)===I.type){r(v,I.sibling),g=s(I,x.props),g.ref=Nd(v,I,x),g.return=v,v=g;break e}r(v,I);break}else e(v,I);I=I.sibling}x.type===Yl?(g=Jc(x.props.children,v.mode,k,x.key),g.return=v,v=g):(k=Lp(x.type,x.key,x.props,null,v.mode,k),k.ref=Nd(v,g,x),k.return=v,v=k)}return o(v);case Jl:e:{for(I=x.key;g!==null;){if(g.key===I)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){r(v,g.sibling),g=s(g,x.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else e(v,g);g=g.sibling}g=Wm(x,v.mode,k),g.return=v,v=g}return o(v);case Ro:return I=x._init,b(v,g,I(x._payload),k)}if(qd(x))return y(v,g,x,k);if(Td(x))return p(v,g,x,k);H1(v,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,g!==null&&g.tag===6?(r(v,g.sibling),g=s(g,x),g.return=v,v=g):(r(v,g),g=$m(x,v.mode,k),g.return=v,v=g),o(v)):r(v,g)}return b}var Mf=Q4(!0),J4=Q4(!1),Ty=Ba(null),Py=null,iu=null,vC=null;function gC(){vC=iu=Py=null}function mC(t){var e=Ty.current;yt(Ty),t._currentValue=e}function kb(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function Eu(t,e){Py=t,vC=iu=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(cn=!0),t.firstContext=null)}function ns(t){var e=t._currentValue;if(vC!==t)if(t={context:t,memoizedValue:e,next:null},iu===null){if(Py===null)throw Error(ne(308));iu=t,Py.dependencies={lanes:0,firstContext:t}}else iu=iu.next=t;return e}var pc=null;function xC(t){pc===null?pc=[t]:pc.push(t)}function Y4(t,e,r,n){var s=e.interleaved;return s===null?(r.next=r,xC(e)):(r.next=s.next,s.next=r),e.interleaved=r,no(t,n)}function no(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var No=!1;function bC(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function X4(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Qi(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function pa(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,Ge&2){var s=n.pending;return s===null?e.next=e:(e.next=s.next,s.next=e),n.pending=e,no(t,r)}return s=n.interleaved,s===null?(e.next=e,xC(n)):(e.next=s.next,s.next=e),n.interleaved=e,no(t,r)}function Rp(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,iC(t,r)}}function R6(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var s=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?s=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?s=i=e:i=i.next=e}else s=i=e;r={baseState:n.baseState,firstBaseUpdate:s,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function Iy(t,e,r,n){var s=t.updateQueue;No=!1;var i=s.firstBaseUpdate,o=s.lastBaseUpdate,a=s.shared.pending;if(a!==null){s.shared.pending=null;var c=a,l=c.next;c.next=null,o===null?i=l:o.next=l,o=c;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==o&&(a===null?u.firstBaseUpdate=l:a.next=l,u.lastBaseUpdate=c))}if(i!==null){var f=s.baseState;o=0,u=l=c=null,a=i;do{var d=a.lane,h=a.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var y=t,p=a;switch(d=e,h=r,p.tag){case 1:if(y=p.payload,typeof y=="function"){f=y.call(h,f,d);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=p.payload,d=typeof y=="function"?y.call(h,f,d):y,d==null)break e;f=kt({},f,d);break e;case 2:No=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=s.effects,d===null?s.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(l=u=h,c=f):u=u.next=h,o|=d;if(a=a.next,a===null){if(a=s.shared.pending,a===null)break;d=a,a=d.next,d.next=null,s.lastBaseUpdate=d,s.shared.pending=null}}while(!0);if(u===null&&(c=f),s.baseState=c,s.firstBaseUpdate=l,s.lastBaseUpdate=u,e=s.shared.interleaved,e!==null){s=e;do o|=s.lane,s=s.next;while(s!==e)}else i===null&&(s.shared.lanes=0);al|=o,t.lanes=o,t.memoizedState=f}}function N6(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=Bm.transition;Bm.transition={};try{t(!1),e()}finally{tt=r,Bm.transition=n}}function yT(){return ss().memoizedState}function L$(t,e,r){var n=va(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},vT(t))gT(e,r);else if(r=Y4(t,e,r,n),r!==null){var s=zr();Ps(r,t,n,s),mT(r,e,n)}}function j$(t,e,r){var n=va(t),s={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(vT(t))gT(e,s);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var o=e.lastRenderedState,a=i(o,r);if(s.hasEagerState=!0,s.eagerState=a,Ns(a,o)){var c=e.interleaved;c===null?(s.next=s,xC(e)):(s.next=c.next,c.next=s),e.interleaved=s;return}}catch{}finally{}r=Y4(t,e,s,n),r!==null&&(s=zr(),Ps(r,t,n,s),mT(r,e,n))}}function vT(t){var e=t.alternate;return t===Et||e!==null&&e===Et}function gT(t,e){yh=Ry=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function mT(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,iC(t,r)}}var Ny={readContext:ns,useCallback:wr,useContext:wr,useEffect:wr,useImperativeHandle:wr,useInsertionEffect:wr,useLayoutEffect:wr,useMemo:wr,useReducer:wr,useRef:wr,useState:wr,useDebugValue:wr,useDeferredValue:wr,useTransition:wr,useMutableSource:wr,useSyncExternalStore:wr,useId:wr,unstable_isNewReconciler:!1},F$={readContext:ns,useCallback:function(t,e){return Hs().memoizedState=[t,e===void 0?null:e],t},useContext:ns,useEffect:M6,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,_p(4194308,4,uT.bind(null,e,t),r)},useLayoutEffect:function(t,e){return _p(4194308,4,t,e)},useInsertionEffect:function(t,e){return _p(4,2,t,e)},useMemo:function(t,e){var r=Hs();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Hs();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=L$.bind(null,Et,t),[n.memoizedState,t]},useRef:function(t){var e=Hs();return t={current:t},e.memoizedState=t},useState:_6,useDebugValue:PC,useDeferredValue:function(t){return Hs().memoizedState=t},useTransition:function(){var t=_6(!1),e=t[0];return t=B$.bind(null,t[1]),Hs().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Et,s=Hs();if(gt){if(r===void 0)throw Error(ne(407));r=r()}else{if(r=e(),ir===null)throw Error(ne(349));ol&30||rT(n,e,r)}s.memoizedState=r;var i={value:r,getSnapshot:e};return s.queue=i,M6(sT.bind(null,n,i,t),[t]),n.flags|=2048,t0(9,nT.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Hs(),e=ir.identifierPrefix;if(gt){var r=zi,n=Hi;r=(n&~(1<<32-Ts(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Zh++,0<\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=o.createElement(r,{is:n.is}):(t=o.createElement(r),r==="select"&&(o=t,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):t=o.createElementNS(t,r),t[si]=e,t[Jh]=n,PT(t,e,!1,!1),e.stateNode=t;e:{switch(o=ob(r,n),r){case"dialog":ut("cancel",t),ut("close",t),s=n;break;case"iframe":case"object":case"embed":ut("load",t),s=n;break;case"video":case"audio":for(s=0;sLf&&(e.flags|=128,n=!0,_d(i,!1),e.lanes=4194304)}else{if(!n)if(t=Oy(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),_d(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!gt)return Cr(e),null}else 2*_t()-i.renderingStartTime>Lf&&r!==1073741824&&(e.flags|=128,n=!0,_d(i,!1),e.lanes=4194304);i.isBackwards?(o.sibling=e.child,e.child=o):(r=i.last,r!==null?r.sibling=o:e.child=o,i.last=o)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=_t(),e.sibling=null,r=bt.current,lt(bt,n?r&1|2:r&1),e):(Cr(e),null);case 22:case 23:return MC(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?En&1073741824&&(Cr(e),e.subtreeFlags&6&&(e.flags|=8192)):Cr(e),null;case 24:return null;case 25:return null}throw Error(ne(156,e.tag))}function q$(t,e){switch(pC(e),e.tag){case 1:return un(e.type)&&Ey(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Df(),yt(ln),yt(Nr),EC(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return CC(e),null;case 13:if(yt(bt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ne(340));_f()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return yt(bt),null;case 4:return Df(),null;case 10:return mC(e.type._context),null;case 22:case 23:return MC(),null;case 24:return null;default:return null}}var G1=!1,Ir=!1,K$=typeof WeakSet=="function"?WeakSet:Set,pe=null;function ou(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){St(t,e,n)}else r.current=null}function _b(t,e,r){try{r()}catch(n){St(t,e,n)}}var z6=!1;function Q$(t,e){if(vb=xy,t=D4(),dC(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var s=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,a=-1,c=-1,l=0,u=0,f=t,d=null;t:for(;;){for(var h;f!==r||s!==0&&f.nodeType!==3||(a=o+s),f!==i||n!==0&&f.nodeType!==3||(c=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===t)break t;if(d===r&&++l===s&&(a=o),d===i&&++u===n&&(c=o),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}r=a===-1||c===-1?null:{start:a,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(gb={focusedElem:t,selectionRange:r},xy=!1,pe=e;pe!==null;)if(e=pe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,pe=t;else for(;pe!==null;){e=pe;try{var y=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var p=y.memoizedProps,b=y.memoizedState,v=e.stateNode,g=v.getSnapshotBeforeUpdate(e.elementType===e.type?p:ps(e.type,p),b);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var x=e.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(ne(163))}}catch(k){St(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,pe=t;break}pe=e.return}return y=z6,z6=!1,y}function vh(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var s=n=n.next;do{if((s.tag&t)===t){var i=s.destroy;s.destroy=void 0,i!==void 0&&_b(e,r,i)}s=s.next}while(s!==n)}}function Gv(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function Mb(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function RT(t){var e=t.alternate;e!==null&&(t.alternate=null,RT(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[si],delete e[Jh],delete e[bb],delete e[R$],delete e[N$])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function NT(t){return t.tag===5||t.tag===3||t.tag===4}function G6(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||NT(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.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Db(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=Cy));else if(n!==4&&(t=t.child,t!==null))for(Db(t,e,r),t=t.sibling;t!==null;)Db(t,e,r),t=t.sibling}function Bb(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(Bb(t,e,r),t=t.sibling;t!==null;)Bb(t,e,r),t=t.sibling}var ur=null,Cs=!1;function bo(t,e,r){for(r=r.child;r!==null;)_T(t,e,r),r=r.sibling}function _T(t,e,r){if(ui&&typeof ui.onCommitFiberUnmount=="function")try{ui.onCommitFiberUnmount(jv,r)}catch{}switch(r.tag){case 5:Ir||ou(r,e);case 6:var n=ur,s=Cs;ur=null,bo(t,e,r),ur=n,Cs=s,ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):ur.removeChild(r.stateNode));break;case 18:ur!==null&&(Cs?(t=ur,r=r.stateNode,t.nodeType===8?_m(t.parentNode,r):t.nodeType===1&&_m(t,r),zh(t)):_m(ur,r.stateNode));break;case 4:n=ur,s=Cs,ur=r.stateNode.containerInfo,Cs=!0,bo(t,e,r),ur=n,Cs=s;break;case 0:case 11:case 14:case 15:if(!Ir&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){s=n=n.next;do{var i=s,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&_b(r,e,o),s=s.next}while(s!==n)}bo(t,e,r);break;case 1:if(!Ir&&(ou(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(a){St(r,e,a)}bo(t,e,r);break;case 21:bo(t,e,r);break;case 22:r.mode&1?(Ir=(n=Ir)||r.memoizedState!==null,bo(t,e,r),Ir=n):bo(t,e,r);break;default:bo(t,e,r)}}function q6(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new K$),e.forEach(function(n){var s=sW.bind(null,t,n);r.has(n)||(r.add(n),n.then(s,s))})}}function as(t,e){var r=e.deletions;if(r!==null)for(var n=0;ns&&(s=o),n&=~i}if(n=s,n=_t()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Y$(n/1960))-n,10t?16:t,oa===null)var n=!1;else{if(t=oa,oa=null,Dy=0,Ge&6)throw Error(ne(331));var s=Ge;for(Ge|=4,pe=t.current;pe!==null;){var i=pe,o=i.child;if(pe.flags&16){var a=i.deletions;if(a!==null){for(var c=0;c_t()-NC?Qc(t,0):RC|=r),fn(t,e)}function $T(t,e){e===0&&(t.mode&1?(e=L1,L1<<=1,!(L1&130023424)&&(L1=4194304)):e=1);var r=zr();t=no(t,e),t!==null&&(e1(t,e,r),fn(t,r))}function nW(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),$T(t,r)}function sW(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,s=t.memoizedState;s!==null&&(r=s.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(ne(314))}n!==null&&n.delete(e),$T(t,r)}var WT;WT=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ln.current)cn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return cn=!1,z$(t,e,r);cn=!!(t.flags&131072)}else cn=!1,gt&&e.flags&1048576&&G4(e,Sy,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Mp(t,e),t=e.pendingProps;var s=Nf(e,Nr.current);Eu(e,r),s=AC(null,e,n,t,s,r);var i=SC();return e.flags|=1,typeof s=="object"&&s!==null&&typeof s.render=="function"&&s.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,un(n)?(i=!0,ky(e)):i=!1,e.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,bC(e),s.updater=zv,e.stateNode=s,s._reactInternals=e,Sb(e,n,t,r),e=Ib(null,e,n,!0,i,r)):(e.tag=0,gt&&i&&hC(e),Fr(null,e,s,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Mp(t,e),t=e.pendingProps,s=n._init,n=s(n._payload),e.type=n,s=e.tag=oW(n),t=ps(n,t),s){case 0:e=Pb(null,e,n,t,r);break e;case 1:e=W6(null,e,n,t,r);break e;case 11:e=U6(null,e,n,t,r);break e;case 14:e=$6(null,e,n,ps(n.type,t),r);break e}throw Error(ne(306,n,""))}return e;case 0:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Pb(t,e,n,s,r);case 1:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),W6(t,e,n,s,r);case 3:e:{if(AT(e),t===null)throw Error(ne(387));n=e.pendingProps,i=e.memoizedState,s=i.element,X4(t,e),Iy(e,n,null,r);var o=e.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){s=Bf(Error(ne(423)),e),e=V6(t,e,n,r,s);break e}else if(n!==s){s=Bf(Error(ne(424)),e),e=V6(t,e,n,r,s);break e}else for(Sn=ha(e.stateNode.containerInfo.firstChild),Tn=e,gt=!0,Es=null,r=J4(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(_f(),n===s){e=so(t,e,r);break e}Fr(t,e,n,r)}e=e.child}return e;case 5:return Z4(e),t===null&&Eb(e),n=e.type,s=e.pendingProps,i=t!==null?t.memoizedProps:null,o=s.children,mb(n,s)?o=null:i!==null&&mb(n,i)&&(e.flags|=32),kT(t,e),Fr(t,e,o,r),e.child;case 6:return t===null&&Eb(e),null;case 13:return ST(t,e,r);case 4:return wC(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Mf(e,null,n,r):Fr(t,e,n,r),e.child;case 11:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),U6(t,e,n,s,r);case 7:return Fr(t,e,e.pendingProps,r),e.child;case 8:return Fr(t,e,e.pendingProps.children,r),e.child;case 12:return Fr(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,s=e.pendingProps,i=e.memoizedProps,o=s.value,lt(Ty,n._currentValue),n._currentValue=o,i!==null)if(Ns(i.value,o)){if(i.children===s.children&&!ln.current){e=so(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){o=i.child;for(var c=a.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Qi(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),kb(i.return,r,e),a.lanes|=r;break}c=c.next}}else if(i.tag===10)o=i.type===e.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(ne(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),kb(o,r,e),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Fr(t,e,s.children,r),e=e.child}return e;case 9:return s=e.type,n=e.pendingProps.children,Eu(e,r),s=ns(s),n=n(s),e.flags|=1,Fr(t,e,n,r),e.child;case 14:return n=e.type,s=ps(n,e.pendingProps),s=ps(n.type,s),$6(t,e,n,s,r);case 15:return CT(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,s=e.pendingProps,s=e.elementType===n?s:ps(n,s),Mp(t,e),e.tag=1,un(n)?(t=!0,ky(e)):t=!1,Eu(e,r),xT(e,n,s),Sb(e,n,s,r),Ib(null,e,n,!0,t,r);case 19:return TT(t,e,r);case 22:return ET(t,e,r)}throw Error(ne(156,e.tag))};function VT(t,e){return v4(t,e)}function iW(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xn(t,e,r,n){return new iW(t,e,r,n)}function BC(t){return t=t.prototype,!(!t||!t.isReactComponent)}function oW(t){if(typeof t=="function")return BC(t)?1:0;if(t!=null){if(t=t.$$typeof,t===tC)return 11;if(t===rC)return 14}return 2}function ga(t,e){var r=t.alternate;return r===null?(r=Xn(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Lp(t,e,r,n,s,i){var o=2;if(n=t,typeof t=="function")BC(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Yl:return Jc(r.children,s,i,e);case eC:o=8,s|=8;break;case Jx:return t=Xn(12,r,e,s|2),t.elementType=Jx,t.lanes=i,t;case Yx:return t=Xn(13,r,e,s),t.elementType=Yx,t.lanes=i,t;case Xx:return t=Xn(19,r,e,s),t.elementType=Xx,t.lanes=i,t;case Z3:return Kv(r,s,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Y3:o=10;break e;case X3:o=9;break e;case tC:o=11;break e;case rC:o=14;break e;case Ro:o=16,n=null;break e}throw Error(ne(130,t==null?t:typeof t,""))}return e=Xn(o,r,e,s),e.elementType=t,e.type=n,e.lanes=i,e}function Jc(t,e,r,n){return t=Xn(7,t,n,e),t.lanes=r,t}function Kv(t,e,r,n){return t=Xn(22,t,n,e),t.elementType=Z3,t.lanes=r,t.stateNode={isHidden:!1},t}function $m(t,e,r){return t=Xn(6,t,null,e),t.lanes=r,t}function Wm(t,e,r){return e=Xn(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function aW(t,e,r,n,s){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Cm(0),this.expirationTimes=Cm(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cm(0),this.identifierPrefix=n,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function LC(t,e,r,n,s,i,o,a,c){return t=new aW(t,e,r,a,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Xn(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bC(i),t}function cW(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qT)}catch(t){console.error(t)}}qT(),q3.exports=Nn;var ja=q3.exports;const hW=D3(ja),KT=m.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Zv=m.createContext({});function pW(){return m.useContext(Zv).visualElement}const eg=m.createContext(null),tg=typeof document<"u",jy=tg?m.useLayoutEffect:m.useEffect,QT=m.createContext({strict:!1});function yW(t,e,r,n){const s=pW(),i=m.useContext(QT),o=m.useContext(eg),a=m.useContext(KT).reducedMotion,c=m.useRef();n=n||i.renderer,!c.current&&n&&(c.current=n(t,{visualState:e,parent:s,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const l=c.current;return m.useInsertionEffect(()=>{l&&l.update(r,o)}),jy(()=>{l&&l.render()}),m.useEffect(()=>{l&&l.updateFeatures()}),(window.HandoffAppearAnimations?jy:m.useEffect)(()=>{l&&l.animationState&&l.animationState.animateChanges()}),l}function cu(t){return typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function vW(t,e,r){return m.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):cu(r)&&(r.current=n))},[e])}function n0(t){return typeof t=="string"||Array.isArray(t)}function rg(t){return typeof t=="object"&&typeof t.start=="function"}const $C=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],WC=["initial",...$C];function ng(t){return rg(t.animate)||WC.some(e=>n0(t[e]))}function JT(t){return!!(ng(t)||t.variants)}function gW(t,e){if(ng(t)){const{initial:r,animate:n}=t;return{initial:r===!1||n0(r)?r:void 0,animate:n0(n)?n:void 0}}return t.inherit!==!1?e:{}}function mW(t){const{initial:e,animate:r}=gW(t,m.useContext(Zv));return m.useMemo(()=>({initial:e,animate:r}),[tA(e),tA(r)])}function tA(t){return Array.isArray(t)?t.join(" "):t}const rA={animation:["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},s0={};for(const t in rA)s0[t]={isEnabled:e=>rA[t].some(r=>!!e[r])};function xW(t){for(const e in t)s0[e]={...s0[e],...t[e]}}function VC(t){const e=m.useRef(null);return e.current===null&&(e.current=t()),e.current}const xh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let bW=1;function wW(){return VC(()=>{if(xh.hasEverUpdated)return bW++})}const HC=m.createContext({}),YT=m.createContext({}),CW=Symbol.for("motionComponentSymbol");function EW({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:s}){t&&xW(t);function i(a,c){let l;const u={...m.useContext(KT),...a,layoutId:kW(a)},{isStatic:f}=u,d=mW(a),h=f?void 0:wW(),y=n(a,f);if(!f&&tg){d.visualElement=yW(s,y,u,e);const p=m.useContext(YT),b=m.useContext(QT).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,b,t,h,p))}return m.createElement(Zv.Provider,{value:d},l&&d.visualElement?m.createElement(l,{visualElement:d.visualElement,...u}):null,r(s,a,h,vW(y,d.visualElement,c),y,f,d.visualElement))}const o=m.forwardRef(i);return o[CW]=s,o}function kW({layoutId:t}){const e=m.useContext(HC).id;return e&&t!==void 0?e+"-"+t:t}function AW(t){function e(n,s={}){return EW(t(n,s))}if(typeof Proxy>"u")return e;const r=new Map;return new Proxy(e,{get:(n,s)=>(r.has(s)||r.set(s,e(s)),r.get(s))})}const SW=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function zC(t){return typeof t!="string"||t.includes("-")?!1:!!(SW.indexOf(t)>-1||/[A-Z]/.test(t))}const Fy={};function TW(t){Object.assign(Fy,t)}const sg=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Al=new Set(sg);function XT(t,{layout:e,layoutId:r}){return Al.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Fy[t]||t==="opacity")}const hn=t=>!!(t&&t.getVelocity),PW={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},IW=sg.length;function OW(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,s){let i="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),eP=ZT("--"),$b=ZT("var(--"),RW=(t,e)=>e&&typeof t=="number"?e.transform(t):t,jf=(t,e,r)=>Math.min(Math.max(r,t),e),Sl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},bh={...Sl,transform:t=>jf(0,1,t)},Q1={...Sl,default:1},wh=t=>Math.round(t*1e5)/1e5,i0=/(-)?([\d]*\.?[\d])+/g,Wb=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,NW=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function s1(t){return typeof t=="string"}const i1=t=>({test:e=>s1(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Po=i1("deg"),di=i1("%"),Ie=i1("px"),_W=i1("vh"),MW=i1("vw"),nA={...di,parse:t=>di.parse(t)/100,transform:t=>di.transform(t*100)},sA={...Sl,transform:Math.round},tP={borderWidth:Ie,borderTopWidth:Ie,borderRightWidth:Ie,borderBottomWidth:Ie,borderLeftWidth:Ie,borderRadius:Ie,radius:Ie,borderTopLeftRadius:Ie,borderTopRightRadius:Ie,borderBottomRightRadius:Ie,borderBottomLeftRadius:Ie,width:Ie,maxWidth:Ie,height:Ie,maxHeight:Ie,size:Ie,top:Ie,right:Ie,bottom:Ie,left:Ie,padding:Ie,paddingTop:Ie,paddingRight:Ie,paddingBottom:Ie,paddingLeft:Ie,margin:Ie,marginTop:Ie,marginRight:Ie,marginBottom:Ie,marginLeft:Ie,rotate:Po,rotateX:Po,rotateY:Po,rotateZ:Po,scale:Q1,scaleX:Q1,scaleY:Q1,scaleZ:Q1,skew:Po,skewX:Po,skewY:Po,distance:Ie,translateX:Ie,translateY:Ie,translateZ:Ie,x:Ie,y:Ie,z:Ie,perspective:Ie,transformPerspective:Ie,opacity:bh,originX:nA,originY:nA,originZ:Ie,zIndex:sA,fillOpacity:bh,strokeOpacity:bh,numOctaves:sA};function GC(t,e,r,n){const{style:s,vars:i,transform:o,transformOrigin:a}=t;let c=!1,l=!1,u=!0;for(const f in e){const d=e[f];if(eP(f)){i[f]=d;continue}const h=tP[f],y=RW(d,h);if(Al.has(f)){if(c=!0,o[f]=y,!u)continue;d!==(h.default||0)&&(u=!1)}else f.startsWith("origin")?(l=!0,a[f]=y):s[f]=y}if(e.transform||(c||n?s.transform=OW(t.transform,r,u,n):s.transform&&(s.transform="none")),l){const{originX:f="50%",originY:d="50%",originZ:h=0}=a;s.transformOrigin=`${f} ${d} ${h}`}}const qC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function rP(t,e,r){for(const n in e)!hn(e[n])&&!XT(n,r)&&(t[n]=e[n])}function DW({transformTemplate:t},e,r){return m.useMemo(()=>{const n=qC();return GC(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function BW(t,e,r){const n=t.style||{},s={};return rP(s,n,t),Object.assign(s,DW(t,e,r)),t.transformValues?t.transformValues(s):s}function LW(t,e,r){const n={},s=BW(t,e,r);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const jW=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Uy(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||jW.has(t)}let nP=t=>!Uy(t);function FW(t){t&&(nP=e=>e.startsWith("on")?!Uy(e):t(e))}try{FW(require("@emotion/is-prop-valid").default)}catch{}function UW(t,e,r){const n={};for(const s in t)s==="values"&&typeof t.values=="object"||(nP(s)||r===!0&&Uy(s)||!e&&!Uy(s)||t.draggable&&s.startsWith("onDrag"))&&(n[s]=t[s]);return n}function iA(t,e,r){return typeof t=="string"?t:Ie.transform(e+r*t)}function $W(t,e,r){const n=iA(e,t.x,t.width),s=iA(r,t.y,t.height);return`${n} ${s}`}const WW={offset:"stroke-dashoffset",array:"stroke-dasharray"},VW={offset:"strokeDashoffset",array:"strokeDasharray"};function HW(t,e,r=1,n=0,s=!0){t.pathLength=1;const i=s?WW:VW;t[i.offset]=Ie.transform(-n);const o=Ie.transform(e),a=Ie.transform(r);t[i.array]=`${o} ${a}`}function KC(t,{attrX:e,attrY:r,originX:n,originY:s,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...c},l,u,f){if(GC(t,c,l,f),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:d,style:h,dimensions:y}=t;d.transform&&(y&&(h.transform=d.transform),delete d.transform),y&&(n!==void 0||s!==void 0||h.transform)&&(h.transformOrigin=$W(y,n!==void 0?n:.5,s!==void 0?s:.5)),e!==void 0&&(d.x=e),r!==void 0&&(d.y=r),i!==void 0&&HW(d,i,o,a,!1)}const sP=()=>({...qC(),attrs:{}}),QC=t=>typeof t=="string"&&t.toLowerCase()==="svg";function zW(t,e,r,n){const s=m.useMemo(()=>{const i=sP();return KC(i,e,{enableHardwareAcceleration:!1},QC(n),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){const i={};rP(i,t.style,t),s.style={...i,...s.style}}return s}function GW(t=!1){return(r,n,s,i,{latestValues:o},a)=>{const l=(zC(r)?zW:LW)(n,o,a,r),f={...UW(n,typeof r=="string",t),...l,ref:i},{children:d}=n,h=m.useMemo(()=>hn(d)?d.get():d,[d]);return s&&(f["data-projection-id"]=s),m.createElement(r,{...f,children:h})}}const JC=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function iP(t,{style:e,vars:r},n,s){Object.assign(t.style,e,s&&s.getProjectionStyles(n));for(const i in r)t.style.setProperty(i,r[i])}const oP=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function aP(t,e,r,n){iP(t,e,void 0,n);for(const s in e.attrs)t.setAttribute(oP.has(s)?s:JC(s),e.attrs[s])}function YC(t,e){const{style:r}=t,n={};for(const s in r)(hn(r[s])||e.style&&hn(e.style[s])||XT(s,t))&&(n[s]=r[s]);return n}function cP(t,e){const r=YC(t,e);for(const n in t)if(hn(t[n])||hn(e[n])){const s=n==="x"||n==="y"?"attr"+n.toUpperCase():n;r[s]=t[n]}return r}function XC(t,e,r,n={},s={}){return typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"&&(e=e(r!==void 0?r:t.custom,n,s)),e}const $y=t=>Array.isArray(t),qW=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),KW=t=>$y(t)?t[t.length-1]||0:t;function jp(t){const e=hn(t)?t.get():t;return qW(e)?e.toValue():e}function QW({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,s,i){const o={latestValues:JW(n,s,i,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const lP=t=>(e,r)=>{const n=m.useContext(Zv),s=m.useContext(eg),i=()=>QW(t,e,n,s);return r?i():VC(i)};function JW(t,e,r,n){const s={},i=n(t,{});for(const d in i)s[d]=jp(i[d]);let{initial:o,animate:a}=t;const c=ng(t),l=JT(t);e&&l&&!c&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let u=r?r.initial===!1:!1;u=u||o===!1;const f=u?a:o;return f&&typeof f!="boolean"&&!rg(f)&&(Array.isArray(f)?f:[f]).forEach(h=>{const y=XC(t,h);if(!y)return;const{transitionEnd:p,transition:b,...v}=y;for(const g in v){let x=v[g];if(Array.isArray(x)){const k=u?x.length-1:0;x=x[k]}x!==null&&(s[g]=x)}for(const g in p)s[g]=p[g]}),s}const YW={useVisualState:lP({scrapeMotionValuesFromProps:cP,createRenderState:sP,onMount:(t,e,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}KC(r,n,{enableHardwareAcceleration:!1},QC(e.tagName),t.transformTemplate),aP(e,r)}})},XW={useVisualState:lP({scrapeMotionValuesFromProps:YC,createRenderState:qC})};function ZW(t,{forwardMotionProps:e=!1},r,n){return{...zC(t)?YW:XW,preloadedFeatures:r,useRender:GW(e),createVisualElement:n,Component:t}}function Gi(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const uP=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function ig(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const eV=t=>e=>uP(e)&&t(e,ig(e));function Ji(t,e,r,n){return Gi(t,e,eV(r),n)}const tV=(t,e)=>r=>e(t(r)),ma=(...t)=>t.reduce(tV);function fP(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const oA=fP("dragHorizontal"),aA=fP("dragVertical");function dP(t){let e=!1;if(t==="y")e=aA();else if(t==="x")e=oA();else{const r=oA(),n=aA();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function hP(){const t=dP(!0);return t?(t(),!1):!0}class Fa{constructor(e){this.isMounted=!1,this.node=e}update(){}}function cA(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),s=(i,o)=>{if(i.type==="touch"||hP())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&a[n](i,o)};return Ji(t.current,r,s,{passive:!t.getProps()[n]})}class rV extends Fa{mount(){this.unmount=ma(cA(this.node,!0),cA(this.node,!1))}unmount(){}}class nV extends Fa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ma(Gi(this.node.current,"focus",()=>this.onFocus()),Gi(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const pP=(t,e)=>e?t===e?!0:pP(t,e.parentElement):!1,Is=t=>t;function Vm(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,ig(r))}class sV extends Fa{constructor(){super(...arguments),this.removeStartListeners=Is,this.removeEndListeners=Is,this.removeAccessibleListeners=Is,this.startPointerPress=(e,r)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),i=Ji(window,"pointerup",(a,c)=>{if(!this.checkPressEnd())return;const{onTap:l,onTapCancel:u}=this.node.getProps();pP(this.node.current,a.target)?l&&l(a,c):u&&u(a,c)},{passive:!(n.onTap||n.onPointerUp)}),o=Ji(window,"pointercancel",(a,c)=>this.cancelPress(a,c),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=ma(i,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=i=>{if(i.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||Vm("up",this.node.getProps().onTap)};this.removeEndListeners(),this.removeEndListeners=Gi(this.node.current,"keyup",o),Vm("down",(a,c)=>{this.startPress(a,c)})},r=Gi(this.node.current,"keydown",e),n=()=>{this.isPressing&&Vm("cancel",(i,o)=>this.cancelPress(i,o))},s=Gi(this.node.current,"blur",n);this.removeAccessibleListeners=ma(r,s)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:s}=this.node.getProps();s&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,r)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!hP()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,r)}mount(){const e=this.node.getProps(),r=Ji(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Gi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=ma(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const Vb=new WeakMap,Hm=new WeakMap,iV=t=>{const e=Vb.get(t.target);e&&e(t)},oV=t=>{t.forEach(iV)};function aV({root:t,...e}){const r=t||document;Hm.has(r)||Hm.set(r,{});const n=Hm.get(r),s=JSON.stringify(e);return n[s]||(n[s]=new IntersectionObserver(oV,{root:t,...e})),n[s]}function cV(t,e,r){const n=aV(e);return Vb.set(t,r),n.observe(t),()=>{Vb.delete(t),n.unobserve(t)}}const lV={some:0,all:1};class uV extends Fa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}viewportFallback(){requestAnimationFrame(()=>{this.hasEnteredView=!0;const{onViewportEnter:e}=this.node.getProps();e&&e(null),this.node.animationState&&this.node.animationState.setActive("whileInView",!0)})}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:s="some",once:i,fallback:o=!0}=e;if(typeof IntersectionObserver>"u"){o&&this.viewportFallback();return}const a={root:r?r.current:void 0,rootMargin:n,threshold:typeof s=="number"?s:lV[s]},c=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=u?f:d;h&&h(l)};return cV(this.node.current,a,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(fV(e,r))&&this.startObserver()}unmount(){}}function fV({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const dV={inView:{Feature:uV},tap:{Feature:sV},focus:{Feature:nV},hover:{Feature:rV}};function yP(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;n/^\-?\d*\.?\d+$/.test(t),pV=t=>/^0[^.\s]+$/.test(t),Yi={delta:0,timestamp:0},vP=1/60*1e3,yV=typeof performance<"u"?()=>performance.now():()=>Date.now(),gP=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(yV()),vP);function vV(t){let e=[],r=[],n=0,s=!1,i=!1;const o=new WeakSet,a={schedule:(c,l=!1,u=!1)=>{const f=u&&s,d=f?e:r;return l&&o.add(c),d.indexOf(c)===-1&&(d.push(c),f&&s&&(n=e.length)),c},cancel:c=>{const l=r.indexOf(c);l!==-1&&r.splice(l,1),o.delete(c)},process:c=>{if(s){i=!0;return}if(s=!0,[e,r]=[r,e],r.length=0,n=e.length,n)for(let l=0;l(t[e]=vV(()=>o0=!0),t),{}),Or=o1.reduce((t,e)=>{const r=og[e];return t[e]=(n,s=!1,i=!1)=>(o0||xV(),r.schedule(n,s,i)),t},{}),Sa=o1.reduce((t,e)=>(t[e]=og[e].cancel,t),{}),zm=o1.reduce((t,e)=>(t[e]=()=>og[e].process(Yi),t),{}),mV=t=>og[t].process(Yi),mP=t=>{o0=!1,Yi.delta=Hb?vP:Math.max(Math.min(t-Yi.timestamp,gV),1),Yi.timestamp=t,zb=!0,o1.forEach(mV),zb=!1,o0&&(Hb=!1,gP(mP))},xV=()=>{o0=!0,Hb=!0,zb||gP(mP)};function ZC(t,e){t.indexOf(e)===-1&&t.push(e)}function eE(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class tE{constructor(){this.subscriptions=[]}add(e){return ZC(this.subscriptions,e),()=>eE(this.subscriptions,e)}notify(e,r,n){const s=this.subscriptions.length;if(s)if(s===1)this.subscriptions[0](e,r,n);else for(let i=0;i!isNaN(parseFloat(t));class wV{constructor(e,r={}){this.version="9.1.7",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(n,s=!0)=>{this.prev=this.current,this.current=n;const{delta:i,timestamp:o}=Yi;this.lastUpdated!==o&&(this.timeDelta=i,this.lastUpdated=o,Or.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),s&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Or.postRender(this.velocityCheck),this.velocityCheck=({timestamp:n})=>{n!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=bV(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new tE);const n=this.events[e].add(r);return e==="change"?()=>{n(),Or.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,r){this.passiveEffect=e,this.stopPassiveEffect=r}set(e,r=!0){!r||!this.passiveEffect?this.updateAndNotify(e,r):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,r,n){this.set(r),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?rE(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r)||null,this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=null}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Ff(t,e){return new wV(t,e)}const nE=(t,e)=>r=>!!(s1(r)&&NW.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),xP=(t,e,r)=>n=>{if(!s1(n))return n;const[s,i,o,a]=n.match(i0);return{[t]:parseFloat(s),[e]:parseFloat(i),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},CV=t=>jf(0,255,t),Gm={...Sl,transform:t=>Math.round(CV(t))},vc={test:nE("rgb","red"),parse:xP("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+Gm.transform(t)+", "+Gm.transform(e)+", "+Gm.transform(r)+", "+wh(bh.transform(n))+")"};function EV(t){let e="",r="",n="",s="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),s=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),s=t.substring(4,5),e+=e,r+=r,n+=n,s+=s),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:s?parseInt(s,16)/255:1}}const Gb={test:nE("#"),parse:EV,transform:vc.transform},lu={test:nE("hsl","hue"),parse:xP("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+di.transform(wh(e))+", "+di.transform(wh(r))+", "+wh(bh.transform(n))+")"},jr={test:t=>vc.test(t)||Gb.test(t)||lu.test(t),parse:t=>vc.test(t)?vc.parse(t):lu.test(t)?lu.parse(t):Gb.parse(t),transform:t=>s1(t)?t:t.hasOwnProperty("red")?vc.transform(t):lu.transform(t)},bP="${c}",wP="${n}";function kV(t){var e,r;return isNaN(t)&&s1(t)&&(((e=t.match(i0))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(Wb))===null||r===void 0?void 0:r.length)||0)>0}function Wy(t){typeof t=="number"&&(t=`${t}`);const e=[];let r=0,n=0;const s=t.match(Wb);s&&(r=s.length,t=t.replace(Wb,bP),e.push(...s.map(jr.parse)));const i=t.match(i0);return i&&(n=i.length,t=t.replace(i0,wP),e.push(...i.map(Sl.parse))),{values:e,numColors:r,numNumbers:n,tokenised:t}}function CP(t){return Wy(t).values}function EP(t){const{values:e,numColors:r,tokenised:n}=Wy(t),s=e.length;return i=>{let o=n;for(let a=0;atypeof t=="number"?0:t;function SV(t){const e=CP(t);return EP(t)(e.map(AV))}const Ta={test:kV,parse:CP,createTransformer:EP,getAnimatableNone:SV},TV=new Set(["brightness","contrast","saturate","opacity"]);function PV(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(i0)||[];if(!n)return t;const s=r.replace(n,"");let i=TV.has(e)?1:0;return n!==r&&(i*=100),e+"("+i+s+")"}const IV=/([a-z-]*)\(.*?\)/g,qb={...Ta,getAnimatableNone:t=>{const e=t.match(IV);return e?e.map(PV).join(" "):t}},OV={...tP,color:jr,backgroundColor:jr,outlineColor:jr,fill:jr,stroke:jr,borderColor:jr,borderTopColor:jr,borderRightColor:jr,borderBottomColor:jr,borderLeftColor:jr,filter:qb,WebkitFilter:qb},sE=t=>OV[t];function iE(t,e){let r=sE(t);return r!==qb&&(r=Ta),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const kP=t=>e=>e.test(t),RV={test:t=>t==="auto",parse:t=>t},AP=[Sl,Ie,di,Po,MW,_W,RV],Dd=t=>AP.find(kP(t)),NV=[...AP,jr,Ta],_V=t=>NV.find(kP(t));function MV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.get()),e}function DV(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function ag(t,e,r){const n=t.getProps();return XC(n,e,r!==void 0?r:n.custom,MV(t),DV(t))}function BV(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,Ff(r))}function LV(t,e){const r=ag(t,e);let{transitionEnd:n={},transition:s={},...i}=r?t.makeTargetAnimatable(r,!1):{};i={...i,...n};for(const o in i){const a=KW(i[o]);BV(t,o,a)}}function jV(t,e,r){var n,s;const i=Object.keys(e).filter(a=>!t.hasValue(a)),o=i.length;if(o)for(let a=0;at*1e3,VV={current:!1},oE=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,aE=t=>e=>1-t(1-e),cE=t=>t*t,HV=aE(cE),lE=oE(cE),Ct=(t,e,r)=>-r*t+r*e+t;function qm(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function zV({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,e/=100,r/=100;let s=0,i=0,o=0;if(!e)s=i=o=r;else{const a=r<.5?r*(1+e):r+e-r*e,c=2*r-a;s=qm(c,a,t+1/3),i=qm(c,a,t),o=qm(c,a,t-1/3)}return{red:Math.round(s*255),green:Math.round(i*255),blue:Math.round(o*255),alpha:n}}const Km=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},GV=[Gb,vc,lu],qV=t=>GV.find(e=>e.test(t));function lA(t){const e=qV(t);let r=e.parse(t);return e===lu&&(r=zV(r)),r}const SP=(t,e)=>{const r=lA(t),n=lA(e),s={...r};return i=>(s.red=Km(r.red,n.red,i),s.green=Km(r.green,n.green,i),s.blue=Km(r.blue,n.blue,i),s.alpha=Ct(r.alpha,n.alpha,i),vc.transform(s))};function TP(t,e){return typeof t=="number"?r=>Ct(t,e,r):jr.test(t)?SP(t,e):IP(t,e)}const PP=(t,e)=>{const r=[...t],n=r.length,s=t.map((i,o)=>TP(i,e[o]));return i=>{for(let o=0;o{const r={...t,...e},n={};for(const s in r)t[s]!==void 0&&e[s]!==void 0&&(n[s]=TP(t[s],e[s]));return s=>{for(const i in n)r[i]=n[i](s);return r}},IP=(t,e)=>{const r=Ta.createTransformer(e),n=Wy(t),s=Wy(e);return n.numColors===s.numColors&&n.numNumbers>=s.numNumbers?ma(PP(n.values,s.values),r):o=>`${o>0?e:t}`},c0=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},uA=(t,e)=>r=>Ct(t,e,r);function QV(t){return typeof t=="number"?uA:typeof t=="string"?jr.test(t)?SP:IP:Array.isArray(t)?PP:typeof t=="object"?KV:uA}function JV(t,e,r){const n=[],s=r||QV(t[0]),i=t.length-1;for(let o=0;ot[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=JV(e,n,s),a=o.length,c=l=>{let u=0;if(a>1)for(;uc(jf(t[0],t[i-1],l)):c}function YV(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const s=c0(0,e,n);t.push(Ct(r,1,s))}}function XV(t){const e=[0];return YV(e,t.length-1),e}function ZV(t,e){return t.map(r=>r*e)}const RP=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,eH=1e-7,tH=12;function rH(t,e,r,n,s){let i,o,a=0;do o=e+(r-e)/2,i=RP(o,n,s)-t,i>0?r=o:e=o;while(Math.abs(i)>eH&&++arH(i,0,1,t,r);return i=>i===0||i===1?i:RP(s(i),e,n)}const _P=t=>1-Math.sin(Math.acos(t)),uE=aE(_P),nH=oE(uE),MP=NP(.33,1.53,.69,.99),fE=aE(MP),sH=oE(fE),iH=t=>(t*=2)<1?.5*fE(t):.5*(2-Math.pow(2,-10*(t-1))),fA={linear:Is,easeIn:cE,easeInOut:lE,easeOut:HV,circIn:_P,circInOut:nH,circOut:uE,backIn:fE,backInOut:sH,backOut:MP,anticipate:iH},dA=t=>{if(Array.isArray(t)){a0(t.length===4);const[e,r,n,s]=t;return NP(e,r,n,s)}else if(typeof t=="string")return a0(fA[t]!==void 0),fA[t];return t},oH=t=>Array.isArray(t)&&typeof t[0]!="number";function aH(t,e){return t.map(()=>e||lE).splice(0,t.length-1)}function Kb({keyframes:t,ease:e=lE,times:r,duration:n=300}){t=[...t];const s=oH(e)?e.map(dA):dA(e),i={done:!1,value:t[0]},o=ZV(r&&r.length===t.length?r:XV(t),n);function a(){return OP(o,t,{ease:Array.isArray(s)?s:aH(t,s)})}let c=a();return{next:l=>(i.value=c(l),i.done=l>=n,i),flipTarget:()=>{t.reverse(),c=a()}}}const Qm=.001,cH=.01,lH=10,uH=.05,fH=1;function dH({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let s,i,o=1-e;o=jf(uH,fH,o),t=jf(cH,lH,t/1e3),o<1?(s=l=>{const u=l*o,f=u*t,d=u-r,h=Qb(l,o),y=Math.exp(-f);return Qm-d/h*y},i=l=>{const f=l*o*t,d=f*r+r,h=Math.pow(o,2)*Math.pow(l,2)*t,y=Math.exp(-f),p=Qb(Math.pow(l,2),o);return(-s(l)+Qm>0?-1:1)*((d-h)*y)/p}):(s=l=>{const u=Math.exp(-l*t),f=(l-r)*t+1;return-Qm+u*f},i=l=>{const u=Math.exp(-l*t),f=(r-l)*(t*t);return u*f});const a=5/t,c=pH(s,i,a);if(t=t*1e3,isNaN(c))return{stiffness:100,damping:10,duration:t};{const l=Math.pow(c,2)*n;return{stiffness:l,damping:o*2*Math.sqrt(n*l),duration:t}}}const hH=12;function pH(t,e,r){let n=r;for(let s=1;st[r]!==void 0)}function gH(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!hA(t,vH)&&hA(t,yH)){const r=dH(t);e={...e,...r,velocity:0,mass:1},e.isResolvedFromDuration=!0}return e}const mH=5;function DP({keyframes:t,restDelta:e,restSpeed:r,...n}){let s=t[0],i=t[t.length-1];const o={done:!1,value:s},{stiffness:a,damping:c,mass:l,velocity:u,duration:f,isResolvedFromDuration:d}=gH(n);let h=xH,y=u?-(u/1e3):0;const p=c/(2*Math.sqrt(a*l));function b(){const v=i-s,g=Math.sqrt(a/l)/1e3,x=Math.abs(v)<5;if(r||(r=x?.01:2),e||(e=x?.005:.5),p<1){const k=Qb(g,p);h=S=>{const I=Math.exp(-p*g*S);return i-I*((y+p*g*v)/k*Math.sin(k*S)+v*Math.cos(k*S))}}else if(p===1)h=k=>i-Math.exp(-g*k)*(v+(y+g*v)*k);else{const k=g*Math.sqrt(p*p-1);h=S=>{const I=Math.exp(-p*g*S),R=Math.min(k*S,300);return i-I*((y+p*g*v)*Math.sinh(R)+k*v*Math.cosh(R))/k}}}return b(),{next:v=>{const g=h(v);if(d)o.done=v>=f;else{let x=y;if(v!==0)if(p<1){const I=Math.max(0,v-mH);x=rE(g-h(I),v-I)}else x=0;const k=Math.abs(x)<=r,S=Math.abs(i-g)<=e;o.done=k&&S}return o.value=o.done?i:g,o},flipTarget:()=>{y=-y,[s,i]=[i,s],b()}}}DP.needsInterpolation=(t,e)=>typeof t=="string"||typeof e=="string";const xH=t=>0;function bH({keyframes:t=[0],velocity:e=0,power:r=.8,timeConstant:n=350,restDelta:s=.5,modifyTarget:i}){const o=t[0],a={done:!1,value:o};let c=r*e;const l=o+c,u=i===void 0?l:i(l);return u!==l&&(c=u-o),{next:f=>{const d=-c*Math.exp(-f/n);return a.done=!(d>s||d<-s),a.value=a.done?u:u+d,a},flipTarget:()=>{}}}const wH={decay:bH,keyframes:Kb,tween:Kb,spring:DP};function BP(t,e,r=0){return t-e-r}function CH(t,e=0,r=0,n=!0){return n?BP(e+-t,e,r):e-(t-e)+r}function EH(t,e,r,n){return n?t>=e+r:t<=-r}const kH=t=>{const e=({delta:r})=>t(r);return{start:()=>Or.update(e,!0),stop:()=>Sa.update(e)}};function Hy({duration:t,driver:e=kH,elapsed:r=0,repeat:n=0,repeatType:s="loop",repeatDelay:i=0,keyframes:o,autoplay:a=!0,onPlay:c,onStop:l,onComplete:u,onRepeat:f,onUpdate:d,type:h="keyframes",...y}){const p=r;let b,v=0,g=t,x=!1,k=!0,S;const I=wH[o.length>2?"keyframes":h]||Kb,R=o[0],_=o[o.length-1];let V={done:!1,value:R};const{needsInterpolation:F}=I;F&&F(R,_)&&(S=OP([0,100],[R,_],{clamp:!1}),o=[0,100]);const X=I({...y,duration:t,keyframes:o});function re(){v++,s==="reverse"?(k=v%2===0,r=CH(r,g,i,k)):(r=BP(r,g,i),s==="mirror"&&X.flipTarget()),x=!1,f&&f()}function le(){b&&b.stop(),u&&u()}function ee(G){k||(G=-G),r+=G,x||(V=X.next(Math.max(0,r)),S&&(V.value=S(V.value)),x=k?V.done:r<=0),d&&d(V.value),x&&(v===0&&(g=g!==void 0?g:r),v{l&&l(),b&&b.stop()},set currentTime(G){r=p,ee(G)},sample:G=>{r=p;const Z=t&&typeof t=="number"?Math.max(t*.5,50):50;let C=0;for(ee(0);C<=G;){const A=G-C;ee(Math.min(A,Z)),C+=Z}return V}}}function AH(t){return!t||Array.isArray(t)||typeof t=="string"&&LP[t]}const Jd=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,LP={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Jd([0,.65,.55,1]),circOut:Jd([.55,0,1,.45]),backIn:Jd([.31,.01,.66,-.59]),backOut:Jd([.33,1.53,.69,.99])};function SH(t){if(t)return Array.isArray(t)?Jd(t):LP[t]}function TH(t,e,r,{delay:n=0,duration:s,repeat:i=0,repeatType:o="loop",ease:a,times:c}={}){return t.animate({[e]:r,offset:c},{delay:n,duration:s,easing:SH(a),fill:"both",iterations:i+1,direction:o==="reverse"?"alternate":"normal"})}const pA={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},Jm={},jP={};for(const t in pA)jP[t]=()=>(Jm[t]===void 0&&(Jm[t]=pA[t]()),Jm[t]);function PH(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const IH=new Set(["opacity","clipPath","filter","transform"]),J1=10;function OH(t,e,{onUpdate:r,onComplete:n,...s}){if(!(jP.waapi()&&IH.has(e)&&!s.repeatDelay&&s.repeatType!=="mirror"&&s.damping!==0))return!1;let{keyframes:o,duration:a=300,elapsed:c=0,ease:l}=s;if(s.type==="spring"||!AH(s.ease)){if(s.repeat===1/0)return;const f=Hy({...s,elapsed:0});let d={done:!1,value:o[0]};const h=[];let y=0;for(;!d.done&&y<2e4;)d=f.sample(y),h.push(d.value),y+=J1;o=h,a=y-J1,l="linear"}const u=TH(t.owner.current,e,o,{...s,delay:-c,duration:a,ease:l});return u.onfinish=()=>{t.set(PH(o,s)),Or.update(()=>u.cancel()),n&&n()},{get currentTime(){return u.currentTime||0},set currentTime(f){u.currentTime=f},stop:()=>{const{currentTime:f}=u;if(f){const d=Hy({...s,autoplay:!1});t.setWithVelocity(d.sample(f-J1).value,d.sample(f).value,J1)}Or.update(()=>u.cancel())}}}function FP(t,e){const r=performance.now(),n=({timestamp:s})=>{const i=s-r;i>=e&&(Sa.read(n),t(i-e))};return Or.read(n,!0),()=>Sa.read(n)}function RH({keyframes:t,elapsed:e,onUpdate:r,onComplete:n}){const s=()=>{r&&r(t[t.length-1]),n&&n()};return e?{stop:FP(s,-e)}:s()}function NH({keyframes:t,velocity:e=0,min:r,max:n,power:s=.8,timeConstant:i=750,bounceStiffness:o=500,bounceDamping:a=10,restDelta:c=1,modifyTarget:l,driver:u,onUpdate:f,onComplete:d,onStop:h}){const y=t[0];let p;function b(k){return r!==void 0&&kn}function v(k){return r===void 0?n:n===void 0||Math.abs(r-k){f&&f(S),k.onUpdate&&k.onUpdate(S)},onComplete:d,onStop:h})}function x(k){g({type:"spring",stiffness:o,damping:a,restDelta:c,...k})}if(b(y))x({velocity:e,keyframes:[y,v(y)]});else{let k=s*e+y;typeof l<"u"&&(k=l(k));const S=v(k),I=S===r?-1:1;let R,_;const V=F=>{R=_,_=F,e=rE(F-R,Yi.delta),(I===1&&F>S||I===-1&&Fp&&p.stop()}}const _H={type:"spring",stiffness:500,damping:25,restSpeed:10},MH=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),DH={type:"keyframes",duration:.8},BH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},LH=(t,{keyframes:e})=>e.length>2?DH:Al.has(t)?t.startsWith("scale")?MH(e[1]):_H:BH,Jb=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&Ta.test(e)&&!e.startsWith("url("));function jH({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:s,repeat:i,repeatType:o,repeatDelay:a,from:c,elapsed:l,...u}){return!!Object.keys(u).length}function yA(t){return t===0||typeof t=="string"&&parseFloat(t)===0&&t.indexOf(" ")===-1}function vA(t){return typeof t=="number"?0:iE("",t)}function UP(t,e){return t[e]||t.default||t}function FH(t,e,r,n){const s=Jb(e,r);let i=n.from!==void 0?n.from:t.get();return i==="none"&&s&&typeof r=="string"?i=iE(e,r):yA(i)&&typeof r=="string"?i=vA(r):!Array.isArray(r)&&yA(r)&&typeof i=="string"&&(r=vA(i)),Array.isArray(r)?(r[0]===null&&(r[0]=i),r):[i,r]}const dE=(t,e,r,n={})=>s=>{const i=UP(n,t)||{},o=i.delay||n.delay||0;let{elapsed:a=0}=n;a=a-Fp(o);const c=FH(e,t,r,i),l=c[0],u=c[c.length-1],f=Jb(t,l),d=Jb(t,u);let h={keyframes:c,velocity:e.getVelocity(),...i,elapsed:a,onUpdate:y=>{e.set(y),i.onUpdate&&i.onUpdate(y)},onComplete:()=>{s(),i.onComplete&&i.onComplete()}};if(!f||!d||VV.current||i.type===!1)return RH(h);if(i.type==="inertia")return NH(h);if(jH(i)||(h={...h,...LH(t,h)}),h.duration&&(h.duration=Fp(h.duration)),h.repeatDelay&&(h.repeatDelay=Fp(h.repeatDelay)),e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const y=OH(e,t,h);if(y)return y}return Hy(h)};function UH(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const s=e.map(i=>Yb(t,i,r));n=Promise.all(s)}else if(typeof e=="string")n=Yb(t,e,r);else{const s=typeof e=="function"?ag(t,e,r.custom):e;n=$P(t,s,r)}return n.then(()=>t.notify("AnimationComplete",e))}function Yb(t,e,r={}){const n=ag(t,e,r.custom);let{transition:s=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);const i=n?()=>$P(t,n,r):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(c=0)=>{const{delayChildren:l=0,staggerChildren:u,staggerDirection:f}=s;return $H(t,e,l+c,u,f,r)}:()=>Promise.resolve(),{when:a}=s;if(a){const[c,l]=a==="beforeChildren"?[i,o]:[o,i];return c().then(l)}else return Promise.all([i(),o(r.delay)])}function $P(t,e,{delay:r=0,transitionOverride:n,type:s}={}){let{transition:i=t.getDefaultTransition(),transitionEnd:o,...a}=t.makeTargetAnimatable(e);const c=t.getValue("willChange");n&&(i=n);const l=[],u=s&&t.animationState&&t.animationState.getState()[s];for(const f in a){const d=t.getValue(f),h=a[f];if(!d||h===void 0||u&&VH(u,f))continue;const y={delay:r,elapsed:0,...i};if(window.HandoffAppearAnimations&&!d.hasAnimated){const b=t.getProps()[WV];b&&(y.elapsed=window.HandoffAppearAnimations(b,f,d,Or))}let p=d.start(dE(f,d,h,t.shouldReduceMotion&&Al.has(f)?{type:!1}:y));Vy(c)&&(c.add(f),p=p.then(()=>c.remove(f))),l.push(p)}return Promise.all(l).then(()=>{o&&LV(t,o)})}function $H(t,e,r=0,n=0,s=1,i){const o=[],a=(t.variantChildren.size-1)*n,c=s===1?(l=0)=>l*n:(l=0)=>a-l*n;return Array.from(t.variantChildren).sort(WH).forEach((l,u)=>{l.notify("AnimationStart",e),o.push(Yb(l,e,{...i,delay:r+c(u)}).then(()=>l.notify("AnimationComplete",e)))}),Promise.all(o)}function WH(t,e){return t.sortNodePosition(e)}function VH({protectedKeys:t,needsAnimating:e},r){const n=t.hasOwnProperty(r)&&e[r]!==!0;return e[r]=!1,n}const HH=[...$C].reverse(),zH=$C.length;function GH(t){return e=>Promise.all(e.map(({animation:r,options:n})=>UH(t,r,n)))}function qH(t){let e=GH(t);const r=QH();let n=!0;const s=(c,l)=>{const u=ag(t,l);if(u){const{transition:f,transitionEnd:d,...h}=u;c={...c,...h,...d}}return c};function i(c){e=c(t)}function o(c,l){const u=t.getProps(),f=t.getVariantContext(!0)||{},d=[],h=new Set;let y={},p=1/0;for(let v=0;vp&&S;const F=Array.isArray(k)?k:[k];let X=F.reduce(s,{});I===!1&&(X={});const{prevResolvedValues:re={}}=x,le={...re,...X},ee=D=>{V=!0,h.delete(D),x.needsAnimating[D]=!0};for(const D in le){const G=X[D],Z=re[D];y.hasOwnProperty(D)||(G!==Z?$y(G)&&$y(Z)?!yP(G,Z)||_?ee(D):x.protectedKeys[D]=!0:G!==void 0?ee(D):h.add(D):G!==void 0&&h.has(D)?ee(D):x.protectedKeys[D]=!0)}x.prevProp=k,x.prevResolvedValues=X,x.isActive&&(y={...y,...X}),n&&t.blockInitialAnimation&&(V=!1),V&&!R&&d.push(...F.map(D=>({animation:D,options:{type:g,...c}})))}if(h.size){const v={};h.forEach(g=>{const x=t.getBaseTarget(g);x!==void 0&&(v[g]=x)}),d.push({animation:v})}let b=!!d.length;return n&&u.initial===!1&&!t.manuallyAnimateOnMount&&(b=!1),n=!1,b?e(d):Promise.resolve()}function a(c,l,u){var f;if(r[c].isActive===l)return Promise.resolve();(f=t.variantChildren)===null||f===void 0||f.forEach(h=>{var y;return(y=h.animationState)===null||y===void 0?void 0:y.setActive(c,l)}),r[c].isActive=l;const d=o(u,c);for(const h in r)r[h].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:i,getState:()=>r}}function KH(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!yP(e,t):!1}function Qa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function QH(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}class JH extends Fa{constructor(e){super(e),e.animationState||(e.animationState=qH(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),rg(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:r}=this.node.prevProps||{};e!==r&&this.updateAnimationControlsSubscription()}unmount(){}}let YH=0;class XH extends Fa{constructor(){super(...arguments),this.id=YH++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const i=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&i.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const ZH={animation:{Feature:JH},exit:{Feature:XH}},gA=(t,e)=>Math.abs(t-e);function ez(t,e){const r=gA(t.x,e.x),n=gA(t.y,e.y);return Math.sqrt(r**2+n**2)}class WP{constructor(e,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const l=Xm(this.lastMoveEventInfo,this.history),u=this.startEvent!==null,f=ez(l.offset,{x:0,y:0})>=3;if(!u&&!f)return;const{point:d}=l,{timestamp:h}=Yi;this.history.push({...d,timestamp:h});const{onStart:y,onMove:p}=this.handlers;u||(y&&y(this.lastMoveEvent,l),this.startEvent=this.lastMoveEvent),p&&p(this.lastMoveEvent,l)},this.handlePointerMove=(l,u)=>{this.lastMoveEvent=l,this.lastMoveEventInfo=Ym(u,this.transformPagePoint),Or.update(this.updatePoint,!0)},this.handlePointerUp=(l,u)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:f,onSessionEnd:d}=this.handlers,h=Xm(l.type==="pointercancel"?this.lastMoveEventInfo:Ym(u,this.transformPagePoint),this.history);this.startEvent&&f&&f(l,h),d&&d(l,h)},!uP(e))return;this.handlers=r,this.transformPagePoint=n;const s=ig(e),i=Ym(s,this.transformPagePoint),{point:o}=i,{timestamp:a}=Yi;this.history=[{...o,timestamp:a}];const{onSessionStart:c}=r;c&&c(e,Xm(i,this.history)),this.removeListeners=ma(Ji(window,"pointermove",this.handlePointerMove),Ji(window,"pointerup",this.handlePointerUp),Ji(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Sa.update(this.updatePoint)}}function Ym(t,e){return e?{point:e(t.point)}:t}function mA(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Xm({point:t},e){return{point:t,delta:mA(t,VP(e)),offset:mA(t,tz(e)),velocity:rz(e,.1)}}function tz(t){return t[0]}function VP(t){return t[t.length-1]}function rz(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const s=VP(t);for(;r>=0&&(n=t[r],!(s.timestamp-n.timestamp>Fp(e)));)r--;if(!n)return{x:0,y:0};const i=(s.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};const o={x:(s.x-n.x)/i,y:(s.y-n.y)/i};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Rn(t){return t.max-t.min}function Xb(t,e=0,r=.01){return Math.abs(t-e)<=r}function xA(t,e,r,n=.5){t.origin=n,t.originPoint=Ct(e.min,e.max,t.origin),t.scale=Rn(r)/Rn(e),(Xb(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Ct(r.min,r.max,t.origin)-t.originPoint,(Xb(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Ch(t,e,r,n){xA(t.x,e.x,r.x,n?n.originX:void 0),xA(t.y,e.y,r.y,n?n.originY:void 0)}function bA(t,e,r){t.min=r.min+e.min,t.max=t.min+Rn(e)}function nz(t,e,r){bA(t.x,e.x,r.x),bA(t.y,e.y,r.y)}function wA(t,e,r){t.min=e.min-r.min,t.max=t.min+Rn(e)}function Eh(t,e,r){wA(t.x,e.x,r.x),wA(t.y,e.y,r.y)}function sz(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Ct(r,t,n.max):Math.min(t,r)),t}function CA(t,e,r){return{min:e!==void 0?t.min+e:void 0,max:r!==void 0?t.max+r-(t.max-t.min):void 0}}function iz(t,{top:e,left:r,bottom:n,right:s}){return{x:CA(t.x,r,s),y:CA(t.y,e,n)}}function EA(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=c0(e.min,e.max-n,t.min):n>s&&(r=c0(t.min,t.max-s,e.min)),jf(0,1,r)}function cz(t,e){const r={};return e.min!==void 0&&(r.min=e.min-t.min),e.max!==void 0&&(r.max=e.max-t.min),r}const Zb=.35;function lz(t=Zb){return t===!1?t=0:t===!0&&(t=Zb),{x:kA(t,"left","right"),y:kA(t,"top","bottom")}}function kA(t,e,r){return{min:AA(t,e),max:AA(t,r)}}function AA(t,e){return typeof t=="number"?t:t[e]||0}const SA=()=>({translate:0,scale:1,origin:0,originPoint:0}),kh=()=>({x:SA(),y:SA()}),TA=()=>({min:0,max:0}),Lt=()=>({x:TA(),y:TA()});function zs(t){return[t("x"),t("y")]}function HP({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function uz({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function fz(t,e){if(!e)return t;const r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}function Zm(t){return t===void 0||t===1}function ew({scale:t,scaleX:e,scaleY:r}){return!Zm(t)||!Zm(e)||!Zm(r)}function tc(t){return ew(t)||zP(t)||t.z||t.rotate||t.rotateX||t.rotateY}function zP(t){return PA(t.x)||PA(t.y)}function PA(t){return t&&t!=="0%"}function zy(t,e,r){const n=t-r,s=e*n;return r+s}function IA(t,e,r,n,s){return s!==void 0&&(t=zy(t,s,n)),zy(t,r,n)+e}function tw(t,e=0,r=1,n,s){t.min=IA(t.min,e,r,n,s),t.max=IA(t.max,e,r,n,s)}function GP(t,{x:e,y:r}){tw(t.x,e.translate,e.scale,e.originPoint),tw(t.y,r.translate,r.scale,r.originPoint)}function dz(t,e,r,n=!1){const s=r.length;if(!s)return;e.x=e.y=1;let i,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function _o(t,e){t.min=t.min+e,t.max=t.max+e}function RA(t,e,[r,n,s]){const i=e[s]!==void 0?e[s]:.5,o=Ct(t.min,t.max,i);tw(t,e[r],e[n],o,e.scale)}const hz=["x","scaleX","originX"],pz=["y","scaleY","originY"];function uu(t,e){RA(t.x,e,hz),RA(t.y,e,pz)}function qP(t,e){return HP(fz(t.getBoundingClientRect(),e))}function yz(t,e,r){const n=qP(t,r),{scroll:s}=e;return s&&(_o(n.x,s.offset.x),_o(n.y,s.offset.y)),n}const vz=new WeakMap;class gz{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const s=c=>{this.stopAnimation(),r&&this.snapToCursor(ig(c,"page").point)},i=(c,l)=>{const{drag:u,dragPropagation:f,onDragStart:d}=this.getProps();if(u&&!f&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=dP(u),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),zs(y=>{let p=this.getAxisMotionValue(y).get()||0;if(di.test(p)){const{projection:b}=this.visualElement;if(b&&b.layout){const v=b.layout.layoutBox[y];v&&(p=Rn(v)*(parseFloat(p)/100))}}this.originPoint[y]=p}),d&&d(c,l);const{animationState:h}=this.visualElement;h&&h.setActive("whileDrag",!0)},o=(c,l)=>{const{dragPropagation:u,dragDirectionLock:f,onDirectionLock:d,onDrag:h}=this.getProps();if(!u&&!this.openGlobalLock)return;const{offset:y}=l;if(f&&this.currentDirection===null){this.currentDirection=mz(y),this.currentDirection!==null&&d&&d(this.currentDirection);return}this.updateAxis("x",l.point,y),this.updateAxis("y",l.point,y),this.visualElement.render(),h&&h(c,l)},a=(c,l)=>this.stop(c,l);this.panSession=new WP(e,{onSessionStart:s,onStart:i,onMove:o,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(e,r){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:s}=r;this.startAnimation(s);const{onDragEnd:i}=this.getProps();i&&i(e,r)}cancel(){this.isDragging=!1;const{projection:e,animationState:r}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),r&&r.setActive("whileDrag",!1)}updateAxis(e,r,n){const{drag:s}=this.getProps();if(!n||!Y1(e,s,this.currentDirection))return;const i=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=sz(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){const{dragConstraints:e,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},s=this.constraints;e&&cu(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=iz(n.layoutBox,e):this.constraints=!1,this.elastic=lz(r),s!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&zs(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=cz(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!cu(e))return!1;const n=e.current,{projection:s}=this.visualElement;if(!s||!s.layout)return!1;const i=yz(n,s.root,this.visualElement.getTransformPagePoint());let o=oz(s.layout.layoutBox,i);if(r){const a=r(uz(o));this.hasMutatedConstraints=!!a,a&&(o=HP(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:s,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),c=this.constraints||{},l=zs(u=>{if(!Y1(u,r,this.currentDirection))return;let f=c&&c[u]||{};o&&(f={min:0,max:0});const d=s?200:1e6,h=s?40:1e7,y={type:"inertia",velocity:n?e[u]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(u,y)});return Promise.all(l).then(a)}startAxisValueAnimation(e,r){const n=this.getAxisMotionValue(e);return n.start(dE(e,n,0,r))}stopAnimation(){zs(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),s=n[r];return s||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){zs(r=>{const{drag:n}=this.getProps();if(!Y1(r,n,this.currentDirection))return;const{projection:s}=this.visualElement,i=this.getAxisMotionValue(r);if(s&&s.layout){const{min:o,max:a}=s.layout.layoutBox[r];i.set(e[r]-Ct(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!cu(r)||!n||!this.constraints)return;this.stopAnimation();const s={x:0,y:0};zs(o=>{const a=this.getAxisMotionValue(o);if(a){const c=a.get();s[o]=az({min:c,max:c},this.constraints[o])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),zs(o=>{if(!Y1(o,e,null))return;const a=this.getAxisMotionValue(o),{min:c,max:l}=this.constraints[o];a.set(Ct(c,l,s[o]))})}addListeners(){if(!this.visualElement.current)return;vz.set(this.visualElement,this);const e=this.visualElement.current,r=Ji(e,"pointerdown",c=>{const{drag:l,dragListener:u=!0}=this.getProps();l&&u&&this.start(c)}),n=()=>{const{dragConstraints:c}=this.getProps();cu(c)&&(this.constraints=this.resolveRefConstraints())},{projection:s}=this.visualElement,i=s.addEventListener("measure",n);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),n();const o=Gi(window,"resize",()=>this.scalePositionWithinConstraints()),a=s.addEventListener("didUpdate",({delta:c,hasLayoutChanged:l})=>{this.isDragging&&l&&(zs(u=>{const f=this.getAxisMotionValue(u);f&&(this.originPoint[u]+=c[u].translate,f.set(f.get()+c[u].translate))}),this.visualElement.render())});return()=>{o(),r(),i(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:s=!1,dragConstraints:i=!1,dragElastic:o=Zb,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:s,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function Y1(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function mz(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class xz extends Fa{constructor(e){super(e),this.removeGroupControls=Is,this.removeListeners=Is,this.controls=new gz(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Is}unmount(){this.removeGroupControls(),this.removeListeners()}}class bz extends Fa{constructor(){super(...arguments),this.removePointerDownListener=Is}onPointerDown(e){this.session=new WP(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:s}=this.node.getProps();return{onSessionStart:e,onStart:r,onMove:n,onEnd:(i,o)=>{delete this.session,s&&s(i,o)}}}mount(){this.removePointerDownListener=Ji(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function wz(){const t=m.useContext(eg);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,s=m.useId();return m.useEffect(()=>n(s),[]),!e&&r?[!1,()=>r&&r(s)]:[!0]}function NA(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Bd={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ie.test(t))t=parseFloat(t);else return t;const r=NA(t,e.target.x),n=NA(t,e.target.y);return`${r}% ${n}%`}},KP=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Cz(t){const e=KP.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function rw(t,e,r=1){const[n,s]=Cz(t);if(!n)return;const i=window.getComputedStyle(e).getPropertyValue(n);return i?i.trim():$b(s)?rw(s,e,r+1):s}function Ez(t,{...e},r){const n=t.current;if(!(n instanceof Element))return{target:e,transitionEnd:r};r&&(r={...r}),t.values.forEach(s=>{const i=s.get();if(!$b(i))return;const o=rw(i,n);o&&s.set(o)});for(const s in e){const i=e[s];if(!$b(i))continue;const o=rw(i,n);o&&(e[s]=o,r&&r[s]===void 0&&(r[s]=i))}return{target:e,transitionEnd:r}}const _A="_$css",kz={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,s=t.includes("var("),i=[];s&&(t=t.replace(KP,h=>(i.push(h),_A)));const o=Ta.parse(t);if(o.length>5)return n;const a=Ta.createTransformer(t),c=typeof o[0]!="number"?1:0,l=r.x.scale*e.x,u=r.y.scale*e.y;o[0+c]/=l,o[1+c]/=u;const f=Ct(l,u,.5);typeof o[2+c]=="number"&&(o[2+c]/=f),typeof o[3+c]=="number"&&(o[3+c]/=f);let d=a(o);if(s){let h=0;d=d.replace(_A,()=>{const y=i[h];return h++,y})}return d}};class Az extends $r.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:s}=this.props,{projection:i}=e;TW(Sz),i&&(r.group&&r.group.add(i),n&&n.register&&s&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xh.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:r,visualElement:n,drag:s,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,s||e.layoutDependency!==r||r===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Or.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:s}=e;s&&(s.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(s),n&&n.deregister&&n.deregister(s))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function QP(t){const[e,r]=wz(),n=m.useContext(HC);return $r.createElement(Az,{...t,layoutGroup:n,switchLayoutGroup:m.useContext(YT),isPresent:e,safeToRemove:r})}const Sz={borderRadius:{...Bd,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bd,borderTopRightRadius:Bd,borderBottomLeftRadius:Bd,borderBottomRightRadius:Bd,boxShadow:kz};function Tz(t,e,r={}){const n=hn(t)?t:Ff(t);return n.start(dE("",n,e,r)),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}const JP=["TopLeft","TopRight","BottomLeft","BottomRight"],Pz=JP.length,MA=t=>typeof t=="string"?parseFloat(t):t,DA=t=>typeof t=="number"||Ie.test(t);function Iz(t,e,r,n,s,i){s?(t.opacity=Ct(0,r.opacity!==void 0?r.opacity:1,Oz(n)),t.opacityExit=Ct(e.opacity!==void 0?e.opacity:1,0,Rz(n))):i&&(t.opacity=Ct(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(c0(t,e,n))}function LA(t,e){t.min=e.min,t.max=e.max}function Mn(t,e){LA(t.x,e.x),LA(t.y,e.y)}function jA(t,e,r,n,s){return t-=e,t=zy(t,1/r,n),s!==void 0&&(t=zy(t,1/s,n)),t}function Nz(t,e=0,r=1,n=.5,s,i=t,o=t){if(di.test(e)&&(e=parseFloat(e),e=Ct(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Ct(i.min,i.max,n);t===i&&(a-=e),t.min=jA(t.min,e,r,a,s),t.max=jA(t.max,e,r,a,s)}function FA(t,e,[r,n,s],i,o){Nz(t,e[r],e[n],e[s],e.scale,i,o)}const _z=["x","scaleX","originX"],Mz=["y","scaleY","originY"];function UA(t,e,r,n){FA(t.x,e,_z,r?r.x:void 0,n?n.x:void 0),FA(t.y,e,Mz,r?r.y:void 0,n?n.y:void 0)}function $A(t){return t.translate===0&&t.scale===1}function XP(t){return $A(t.x)&&$A(t.y)}function nw(t,e){return t.x.min===e.x.min&&t.x.max===e.x.max&&t.y.min===e.y.min&&t.y.max===e.y.max}function WA(t){return Rn(t.x)/Rn(t.y)}class Dz{constructor(){this.members=[]}add(e){ZC(this.members,e),e.scheduleRender()}remove(e){if(eE(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(e){const r=this.members.findIndex(s=>e===s);if(r===0)return!1;let n;for(let s=r;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(e,r){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,r&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:s}=e.options;s===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:r,resumingFrom:n}=e;r.onExitComplete&&r.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function VA(t,e,r){let n="";const s=t.x.translate/e.x,i=t.y.translate/e.y;if((s||i)&&(n=`translate3d(${s}px, ${i}px, 0) `),(e.x!==1||e.y!==1)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){const{rotate:c,rotateX:l,rotateY:u}=r;c&&(n+=`rotate(${c}deg) `),l&&(n+=`rotateX(${l}deg) `),u&&(n+=`rotateY(${u}deg) `)}const o=t.x.scale*e.x,a=t.y.scale*e.y;return(o!==1||a!==1)&&(n+=`scale(${o}, ${a})`),n||"none"}const Bz=(t,e)=>t.depth-e.depth;class Lz{constructor(){this.children=[],this.isDirty=!1}add(e){ZC(this.children,e),this.isDirty=!0}remove(e){eE(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Bz),this.isDirty=!1,this.children.forEach(e)}}function jz(t){window.MotionDebug&&window.MotionDebug.record(t)}const HA=["","X","Y","Z"],zA=1e3;let Fz=0;const rc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function ZP({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:s}){return class{constructor(o,a={},c=e==null?void 0:e()){this.id=Fz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{rc.totalNodes=rc.resolvedTargetDeltas=rc.recalculatedProjection=0,this.nodes.forEach(Wz),this.nodes.forEach(Gz),this.nodes.forEach(qz),this.nodes.forEach(Vz),jz(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=o,this.latestValues=a,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0,o&&this.root.registerPotentialNode(o,this);for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=FP(d,250),xh.hasAnimatedSinceResize&&(xh.hasAnimatedSinceResize=!1,this.nodes.forEach(qA))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&u&&(c||l)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Xz,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=u.getProps(),g=!this.targetLayout||!nw(this.targetLayout,y)||h,x=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const k={...UP(p,"layout"),onPlay:b,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(k.delay=0,k.type=!1),this.startAnimation(k)}else!d&&this.animationProgress===0&&qA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Sa.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Kz),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c{const S=k/1e3;KA(f.x,o.x,S),KA(f.y,o.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Eh(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Jz(this.relativeTarget,this.relativeTargetOrigin,d,S),x&&nw(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=Lt()),Mn(x,this.relativeTarget)),p&&(this.animationValues=u,Iz(u,l,this.latestValues,S,g,v)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Sa.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Or.update(()=>{xh.hasAnimatedSinceResize=!0,this.currentAnimation=Tz(0,zA,{...o,onUpdate:a=>{this.mixTargetDelta(a),o.onUpdate&&o.onUpdate(a)},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(zA),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:c,layout:l,latestValues:u}=o;if(!(!a||!c||!l)){if(this!==o&&this.layout&&l&&eI(this.options.animationType,this.layout.layoutBox,l.layoutBox)){c=this.target||Lt();const f=Rn(this.layout.layoutBox.x);c.x.min=o.target.x.min,c.x.max=c.x.min+f;const d=Rn(this.layout.layoutBox.y);c.y.min=o.target.y.min,c.y.max=c.y.min+d}Mn(a,c),uu(a,u),Ch(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new Dz),this.sharedNodes.get(o).add(a);const l=a.options.initialPromotionConfig;a.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:a}=this.options;return a?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:a}=this.options;return a?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:c}={}){const l=this.getStack();l&&l.promote(this,c),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:c}=o;if((c.rotate||c.rotateX||c.rotateY||c.rotateZ)&&(a=!0),!a)return;const l={};for(let u=0;u{var a;return(a=o.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(GA),this.root.sharedNodes.clear()}}}function Uz(t){t.updateLayout()}function $z(t){var e;const r=((e=t.resumeFrom)===null||e===void 0?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:s}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;i==="size"?zs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(d);d.min=n[f].min,d.max=d.min+h}):eI(i,r.layoutBox,n)&&zs(f=>{const d=o?r.measuredBox[f]:r.layoutBox[f],h=Rn(n[f]);d.max=d.min+h});const a=kh();Ch(a,n,r.layoutBox);const c=kh();o?Ch(c,t.applyTransform(s,!0),r.measuredBox):Ch(c,n,r.layoutBox);const l=!XP(a);let u=!1;if(!t.resumeFrom){const f=t.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const y=Lt();Eh(y,r.layoutBox,d.layoutBox);const p=Lt();Eh(p,n,h.layoutBox),nw(y,p)||(u=!0),f.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=f)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:c,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function Wz(t){rc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function Vz(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function Hz(t){t.clearSnapshot()}function GA(t){t.clearMeasurements()}function zz(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function qA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0}function Gz(t){t.resolveTargetDelta()}function qz(t){t.calcProjection()}function Kz(t){t.resetRotation()}function Qz(t){t.removeLeadSnapshot()}function KA(t,e,r){t.translate=Ct(e.translate,0,r),t.scale=Ct(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function QA(t,e,r,n){t.min=Ct(e.min,r.min,n),t.max=Ct(e.max,r.max,n)}function Jz(t,e,r,n){QA(t.x,e.x,r.x,n),QA(t.y,e.y,r.y,n)}function Yz(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const Xz={duration:.45,ease:[.4,0,.1,1]};function Zz(t,e){let r=t.root;for(let i=t.path.length-1;i>=0;i--)if(t.path[i].instance){r=t.path[i];break}const s=(r&&r!==t.root?r.instance:document).querySelector(`[data-projection-id="${e}"]`);s&&t.mount(s,!0)}function JA(t){t.min=Math.round(t.min),t.max=Math.round(t.max)}function eG(t){JA(t.x),JA(t.y)}function eI(t,e,r){return t==="position"||t==="preserve-aspect"&&!Xb(WA(e),WA(r),.2)}const tG=ZP({attachResizeListener:(t,e)=>Gi(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ex={current:void 0},tI=ZP({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!ex.current){const t=new tG(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),ex.current=t}return ex.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),rG={pan:{Feature:bz},drag:{Feature:xz,ProjectionNode:tI,MeasureLayout:QP}},nG=new Set(["width","height","top","left","right","bottom","x","y"]),rI=t=>nG.has(t),sG=t=>Object.keys(t).some(rI),YA=t=>t===Sl||t===Ie,XA=(t,e)=>parseFloat(t.split(", ")[e]),ZA=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const s=n.match(/^matrix3d\((.+)\)$/);if(s)return XA(s[1],e);{const i=n.match(/^matrix\((.+)\)$/);return i?XA(i[1],t):0}},iG=new Set(["x","y","z"]),oG=sg.filter(t=>!iG.has(t));function aG(t){const e=[];return oG.forEach(r=>{const n=t.getValue(r);n!==void 0&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e.length&&t.render(),e}const eS={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:ZA(4,13),y:ZA(5,14)},cG=(t,e,r)=>{const n=e.measureViewportBox(),s=e.current,i=getComputedStyle(s),{display:o}=i,a={};o==="none"&&e.setStaticValue("display",t.display||"block"),r.forEach(l=>{a[l]=eS[l](n,i)}),e.render();const c=e.measureViewportBox();return r.forEach(l=>{const u=e.getValue(l);u&&u.jump(a[l]),t[l]=eS[l](c,i)}),t},lG=(t,e,r={},n={})=>{e={...e},n={...n};const s=Object.keys(e).filter(rI);let i=[],o=!1;const a=[];if(s.forEach(c=>{const l=t.getValue(c);if(!t.hasValue(c))return;let u=r[c],f=Dd(u);const d=e[c];let h;if($y(d)){const y=d.length,p=d[0]===null?1:0;u=d[p],f=Dd(u);for(let b=p;b=0?window.pageYOffset:null,l=cG(e,t,a);return i.length&&i.forEach(([u,f])=>{t.getValue(u).set(f)}),t.render(),tg&&c!==null&&window.scrollTo({top:c}),{target:l,transitionEnd:n}}else return{target:e,transitionEnd:n}};function uG(t,e,r,n){return sG(e)?lG(t,e,r,n):{target:e,transitionEnd:n}}const fG=(t,e,r,n)=>{const s=Ez(t,e,n);return e=s.target,n=s.transitionEnd,uG(t,e,r,n)},sw={current:null},nI={current:!1};function dG(){if(nI.current=!0,!!tg)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sw.current=t.matches;t.addListener(e),e()}else sw.current=!1}function hG(t,e,r){const{willChange:n}=e;for(const s in e){const i=e[s],o=r[s];if(hn(i))t.addValue(s,i),Vy(n)&&n.add(s);else if(hn(o))t.addValue(s,Ff(i,{owner:t})),Vy(n)&&n.remove(s);else if(o!==i)if(t.hasValue(s)){const a=t.getValue(s);!a.hasAnimated&&a.set(i)}else{const a=t.getStaticValue(s);t.addValue(s,Ff(a!==void 0?a:i,{owner:t}))}}for(const s in r)e[s]===void 0&&t.removeValue(s);return e}const sI=Object.keys(s0),pG=sI.length,tS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],yG=WC.length;class vG{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:s,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Or.render(this.render,!1,!0);const{latestValues:a,renderState:c}=i;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=c,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.options=o,this.isControllingVariants=ng(r),this.isVariantNode=JT(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:l,...u}=this.scrapeMotionValuesFromProps(r,{});for(const f in u){const d=u[f];a[f]!==void 0&&hn(d)&&(d.set(a[f],!1),Vy(l)&&l.add(f))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,this.projection&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,n)=>this.bindToMotionValue(n,r)),nI.current||dG(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:sw.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Sa.update(this.notifyUpdate),Sa.render(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,r){const n=Al.has(e),s=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Or.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{s(),i()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}loadFeatures({children:e,...r},n,s,i,o){let a,c;for(let l=0;lthis.scheduleRender(),animationType:typeof u=="string"?u:"both",initialPromotionConfig:o,layoutScroll:h,layoutRoot:y})}return c}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update(this.props,this.prevProps):(r.mount(),r.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,r){this.latestValues[e]=r}makeTargetAnimatable(e,r=!0){return this.makeTargetAnimatableFromInstance(e,this.props,r)}update(e,r){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=r;for(let n=0;nr.variantChildren.delete(e)}addValue(e,r){r!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,r)),this.values.set(e,r),this.latestValues[e]=r.get()}removeValue(e){this.values.delete(e);const r=this.valueSubscriptions.get(e);r&&(r(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,r){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&r!==void 0&&(n=Ff(r,{owner:this}),this.addValue(e,n)),n}readValue(e){return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.readValueFromInstance(this.current,e,this.options)}setBaseTarget(e,r){this.baseTarget[e]=r}getBaseTarget(e){var r;const{initial:n}=this.props,s=typeof n=="string"||typeof n=="object"?(r=XC(this.props,n))===null||r===void 0?void 0:r[e]:void 0;if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!hn(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,r){return this.events[e]||(this.events[e]=new tE),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class iI extends vG{sortInstanceNodePosition(e,r){return e.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(e,r){return e.style?e.style[r]:void 0}removeValueFromRenderState(e,{vars:r,style:n}){delete r[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:r,...n},{transformValues:s},i){let o=UV(n,e||{},this);if(s&&(r&&(r=s(r)),n&&(n=s(n)),o&&(o=s(o))),i){jV(this,n,o);const a=fG(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function gG(t){return window.getComputedStyle(t)}class mG extends iI{readValueFromInstance(e,r){if(Al.has(r)){const n=sE(r);return n&&n.default||0}else{const n=gG(e),s=(eP(r)?n.getPropertyValue(r):n[r])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:r}){return qP(e,r)}build(e,r,n,s){GC(e,r,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,r){return YC(e,r)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;hn(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,s){iP(e,r,n,s)}}class xG extends iI{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(Al.has(r)){const n=sE(r);return n&&n.default||0}return r=oP.has(r)?r:JC(r),e.getAttribute(r)}measureInstanceViewportBox(){return Lt()}scrapeMotionValuesFromProps(e,r){return cP(e,r)}build(e,r,n,s){KC(e,r,n,this.isSVGTag,s.transformTemplate)}renderInstance(e,r,n,s){aP(e,r,n,s)}mount(e){this.isSVGTag=QC(e.tagName),super.mount(e)}}const bG=(t,e)=>zC(t)?new xG(e,{enableHardwareAcceleration:!1}):new mG(e,{enableHardwareAcceleration:!0}),wG={layout:{ProjectionNode:tI,MeasureLayout:QP}},CG={...ZH,...dV,...rG,...wG},Au=AW((t,e)=>ZW(t,e,CG,bG));function oI(){const t=m.useRef(!1);return jy(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function EG(){const t=oI(),[e,r]=m.useState(0),n=m.useCallback(()=>{t.current&&r(e+1)},[e]);return[m.useCallback(()=>Or.postRender(n),[n]),e]}class kG extends m.Component{getSnapshotBeforeUpdate(e){const r=this.props.childRef.current;if(r&&e.isPresent&&!this.props.isPresent){const n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function AG({children:t,isPresent:e}){const r=m.useId(),n=m.useRef(null),s=m.useRef({width:0,height:0,top:0,left:0});return m.useInsertionEffect(()=>{const{width:i,height:o,top:a,left:c}=s.current;if(e||!n.current||!i||!o)return;n.current.dataset.motionPopId=r;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` + [data-motion-pop-id="${r}"] { + position: absolute !important; + width: ${i}px !important; + height: ${o}px !important; + top: ${a}px !important; + left: ${c}px !important; + } + `),()=>{document.head.removeChild(l)}},[e]),m.createElement(kG,{isPresent:e,childRef:n,sizeRef:s},m.cloneElement(t,{ref:n}))}const tx=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:s,presenceAffectsLayout:i,mode:o})=>{const a=VC(SG),c=m.useId(),l=m.useMemo(()=>({id:c,initial:e,isPresent:r,custom:s,onExitComplete:u=>{a.set(u,!0);for(const f of a.values())if(!f)return;n&&n()},register:u=>(a.set(u,!1),()=>a.delete(u))}),i?void 0:[r]);return m.useMemo(()=>{a.forEach((u,f)=>a.set(f,!1))},[r]),m.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=m.createElement(AG,{isPresent:r},t)),m.createElement(eg.Provider,{value:l},t)};function SG(){return new Map}function TG(t){return m.useEffect(()=>()=>t(),[])}const zl=t=>t.key||"";function PG(t,e){t.forEach(r=>{const n=zl(r);e.set(n,r)})}function IG(t){const e=[];return m.Children.forEach(t,r=>{m.isValidElement(r)&&e.push(r)}),e}const aI=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:s,presenceAffectsLayout:i=!0,mode:o="sync"})=>{s&&(o="wait");let[a]=EG();const c=m.useContext(HC).forceRender;c&&(a=c);const l=oI(),u=IG(t);let f=u;const d=new Set,h=m.useRef(f),y=m.useRef(new Map).current,p=m.useRef(!0);if(jy(()=>{p.current=!1,PG(u,y),h.current=f}),TG(()=>{p.current=!0,y.clear(),d.clear()}),p.current)return m.createElement(m.Fragment,null,f.map(x=>m.createElement(tx,{key:zl(x),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:i,mode:o},x)));f=[...f];const b=h.current.map(zl),v=u.map(zl),g=b.length;for(let x=0;x{if(v.indexOf(x)!==-1)return;const k=y.get(x);if(!k)return;const S=b.indexOf(x),I=()=>{y.delete(x),d.delete(x);const R=h.current.findIndex(_=>_.key===x);if(h.current.splice(R,1),!d.size){if(h.current=u,l.current===!1)return;a(),n&&n()}};f.splice(S,0,m.createElement(tx,{key:zl(k),isPresent:!1,onExitComplete:I,custom:e,presenceAffectsLayout:i,mode:o},k))}),f=f.map(x=>{const k=x.key;return d.has(k)?x:m.createElement(tx,{key:zl(x),isPresent:!0,presenceAffectsLayout:i,mode:o},x)}),m.createElement(m.Fragment,null,d.size?f:f.map(x=>m.cloneElement(x)))},cI={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( + 243.18deg, + rgba(86, 52, 189, 0.85) 0%, + rgba(49, 41, 223, 0.85) 63.54%, + rgba(7, 98, 149, 0.85) 100% + )`,gradientPrimary:"linear-gradient(89.69deg, #4411E1 0.27%, #7537F9 99.73%)",gradientSecondary:"linear-gradient(32.51deg, #951990 -15.23%, #3A35B1 48.55%, #20A8B0 100%)",arbitrumDark:"#212D44",arbitrumLight:"#93D4FF",avalanceDark:"#810C0C",avalanceLight:"#FF8080",bscDark:"#584508",bscLight:"#FCCF43",ethereumDark:"#132362",ethereumLight:"#AABBFF",gnosisDark:"#084246",gnosisLight:"#8CF6FD",polygonDark:"#350881",polygonLight:"#C7A6FF"},OG={...cI,text100:"rgba(255, 255, 255, 1)",text80:"rgba(255, 255, 255, 0.8)",text50:"rgba(255, 255, 255, 0.5)",textInverse100:"rgba(0, 0, 0, 1)",backgroundPrimary:"rgba(0, 0, 0, 1)",backgroundSecondary:"rgba(255, 255, 255, 0.1)",backgroundContrast:"rgba(0, 0, 0, 0.5)",backgroundMuted:"rgba(255, 255, 255, 0.05)",backgroundControl:"rgba(255, 255, 255, 0.25)",backgroundInverse:"rgba(255, 255, 255, 1)",backgroundBackdrop:"rgba(34, 34, 34, 0.9)",backgroundOverlay:"rgba(0, 0, 0, 0.7)",backgroundRaised:"rgba(54, 54, 54, 0.7)",buttonGlass:"rgba(255, 255, 255, 0.15)",buttonEmphasis:"rgba(0, 0, 0, 0.5)",buttonInverse:"rgba(255, 255, 255, 0.8)",borderNormal:"rgba(255, 255, 255, 0.25)",borderFocus:"rgba(255, 255, 255, 0.5)"},RG={...cI,text100:"rgba(0, 0, 0, 1)",text80:"rgba(0, 0, 0, 0.8)",text50:"rgba(0, 0, 0, 0.5)",textInverse100:"rgba(255, 255, 255, 1)",backgroundPrimary:"rgba(244, 244, 244, 1)",backgroundSecondary:"rgba(0, 0, 0, 0.1)",backgroundContrast:"rgba(244, 244, 244, 0.5)",backgroundMuted:"rgba(0, 0, 0, 0.05)",backgroundControl:"rgba(0, 0, 0, 0.25)",backgroundInverse:"rgba(0, 0, 0, 1)",backgroundBackdrop:"rgba(221, 221, 221, 0.9)",backgroundOverlay:"rgba(244, 244, 244, 0.7)",backgroundRaised:"rgba(192, 192, 192, 0.7)",buttonGlass:"rgba(0, 0, 0, 0.15)",buttonEmphasis:"rgba(255, 255, 255, 0.5)",buttonInverse:"rgba(0, 0, 0, 0.8)",borderNormal:"rgba(0, 0, 0, 0.25)",borderFocus:"rgba(0, 0, 0, 0.5)"},NG={dark:OG,light:RG},_G={inherit:{fontFamily:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit",fontWeight:"inherit"},xlarge:{fontFamily:"body",fontSize:"xlarge",lineHeight:"9",letterSpacing:"none",fontWeight:"bold"},large:{fontFamily:"body",fontSize:"large",lineHeight:"7",letterSpacing:"normal",fontWeight:"semibold"},medium:{fontFamily:"body",fontSize:"medium",lineHeight:"6",letterSpacing:"normal",fontWeight:"bold"},normal:{fontFamily:"body",fontSize:"normal",lineHeight:"5",letterSpacing:"wide",fontWeight:"normal"},small:{fontFamily:"body",fontSize:"small",lineHeight:"4",letterSpacing:"wide",fontWeight:"medium"},xsmall:{fontFamily:"body",fontSize:"xsmall",lineHeight:"4",letterSpacing:"wide",fontWeight:"bold"},code:{fontFamily:"mono",fontSize:"normal",lineHeight:"5",letterSpacing:"none",fontWeight:"normal"}};var rS={colors:{black:"var(--seq-colors-black)",white:"var(--seq-colors-white)",inherit:"var(--seq-colors-inherit)",transparent:"var(--seq-colors-transparent)",positive:"var(--seq-colors-positive)",negative:"var(--seq-colors-negative)",info:"var(--seq-colors-info)",warning:"var(--seq-colors-warning)",gradientBackdrop:"var(--seq-colors-gradient-backdrop)",gradientPrimary:"var(--seq-colors-gradient-primary)",gradientSecondary:"var(--seq-colors-gradient-secondary)",arbitrumDark:"var(--seq-colors-arbitrum-dark)",arbitrumLight:"var(--seq-colors-arbitrum-light)",avalanceDark:"var(--seq-colors-avalance-dark)",avalanceLight:"var(--seq-colors-avalance-light)",bscDark:"var(--seq-colors-bsc-dark)",bscLight:"var(--seq-colors-bsc-light)",ethereumDark:"var(--seq-colors-ethereum-dark)",ethereumLight:"var(--seq-colors-ethereum-light)",gnosisDark:"var(--seq-colors-gnosis-dark)",gnosisLight:"var(--seq-colors-gnosis-light)",polygonDark:"var(--seq-colors-polygon-dark)",polygonLight:"var(--seq-colors-polygon-light)",text100:"var(--seq-colors-text100)",text80:"var(--seq-colors-text80)",text50:"var(--seq-colors-text50)",textInverse100:"var(--seq-colors-text-inverse100)",backgroundPrimary:"var(--seq-colors-background-primary)",backgroundSecondary:"var(--seq-colors-background-secondary)",backgroundContrast:"var(--seq-colors-background-contrast)",backgroundMuted:"var(--seq-colors-background-muted)",backgroundControl:"var(--seq-colors-background-control)",backgroundInverse:"var(--seq-colors-background-inverse)",backgroundBackdrop:"var(--seq-colors-background-backdrop)",backgroundOverlay:"var(--seq-colors-background-overlay)",backgroundRaised:"var(--seq-colors-background-raised)",buttonGlass:"var(--seq-colors-button-glass)",buttonEmphasis:"var(--seq-colors-button-emphasis)",buttonInverse:"var(--seq-colors-button-inverse)",borderNormal:"var(--seq-colors-border-normal)",borderFocus:"var(--seq-colors-border-focus)"}};function MG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DG(t){var e=MG(t,"string");return typeof e=="symbol"?e:String(e)}function BG(t,e,r){return e=DG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function rx(t){for(var e=1;efunction(){for(var e=arguments.length,r=new Array(e),n=0;nc.styles)),i=Object.keys(s),o=i.filter(c=>"mappings"in s[c]),a=c=>{var l=[],u={},f=rx({},c),d=!1;for(var h of o){var y=c[h];if(y!=null){var p=s[h];d=!0;for(var b of p.mappings)u[b]=y,f[b]==null&&delete f[b]}}var v=d?rx(rx({},u),f):c,g=function(){var S=v[x],I=s[x];try{if(I.mappings)return 1;if(typeof S=="string"||typeof S=="number")l.push(I.values[S].defaultClass);else if(Array.isArray(S))for(var R=0;Rt,FG=function(){return LG(jG)(...arguments)},lI=FG({conditions:{defaultCondition:"sm",conditionNames:["sm","md","lg","xl"],responsiveArray:void 0},styles:{borderWidth:{mappings:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"]},borderRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderLeftRadius:{mappings:["borderBottomLeftRadius","borderTopLeftRadius"]},borderRightRadius:{mappings:["borderBottomRightRadius","borderTopRightRadius"]},borderTopRadius:{mappings:["borderTopLeftRadius","borderTopRightRadius"]},borderBottomRadius:{mappings:["borderBottomLeftRadius","borderBottomRightRadius"]},margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},overflow:{mappings:["overflowX","overflowY"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},placeItems:{mappings:["justifyContent","alignItems"]},inset:{mappings:["top","bottom","left","right"]},width:{values:{0:{conditions:{sm:"fyvr10",md:"fyvr11",lg:"fyvr12",xl:"fyvr13"},defaultClass:"fyvr10"},1:{conditions:{sm:"fyvr14",md:"fyvr15",lg:"fyvr16",xl:"fyvr17"},defaultClass:"fyvr14"},2:{conditions:{sm:"fyvr18",md:"fyvr19",lg:"fyvr1a",xl:"fyvr1b"},defaultClass:"fyvr18"},3:{conditions:{sm:"fyvr1c",md:"fyvr1d",lg:"fyvr1e",xl:"fyvr1f"},defaultClass:"fyvr1c"},4:{conditions:{sm:"fyvr1g",md:"fyvr1h",lg:"fyvr1i",xl:"fyvr1j"},defaultClass:"fyvr1g"},5:{conditions:{sm:"fyvr1k",md:"fyvr1l",lg:"fyvr1m",xl:"fyvr1n"},defaultClass:"fyvr1k"},6:{conditions:{sm:"fyvr1o",md:"fyvr1p",lg:"fyvr1q",xl:"fyvr1r"},defaultClass:"fyvr1o"},7:{conditions:{sm:"fyvr1s",md:"fyvr1t",lg:"fyvr1u",xl:"fyvr1v"},defaultClass:"fyvr1s"},8:{conditions:{sm:"fyvr1w",md:"fyvr1x",lg:"fyvr1y",xl:"fyvr1z"},defaultClass:"fyvr1w"},9:{conditions:{sm:"fyvr110",md:"fyvr111",lg:"fyvr112",xl:"fyvr113"},defaultClass:"fyvr110"},10:{conditions:{sm:"fyvr114",md:"fyvr115",lg:"fyvr116",xl:"fyvr117"},defaultClass:"fyvr114"},12:{conditions:{sm:"fyvr118",md:"fyvr119",lg:"fyvr11a",xl:"fyvr11b"},defaultClass:"fyvr118"},14:{conditions:{sm:"fyvr11c",md:"fyvr11d",lg:"fyvr11e",xl:"fyvr11f"},defaultClass:"fyvr11c"},16:{conditions:{sm:"fyvr11g",md:"fyvr11h",lg:"fyvr11i",xl:"fyvr11j"},defaultClass:"fyvr11g"},"0.25":{conditions:{sm:"fyvr11k",md:"fyvr11l",lg:"fyvr11m",xl:"fyvr11n"},defaultClass:"fyvr11k"},"0.5":{conditions:{sm:"fyvr11o",md:"fyvr11p",lg:"fyvr11q",xl:"fyvr11r"},defaultClass:"fyvr11o"},"1.5":{conditions:{sm:"fyvr11s",md:"fyvr11t",lg:"fyvr11u",xl:"fyvr11v"},defaultClass:"fyvr11s"},none:{conditions:{sm:"fyvr11w",md:"fyvr11x",lg:"fyvr11y",xl:"fyvr11z"},defaultClass:"fyvr11w"},px:{conditions:{sm:"fyvr120",md:"fyvr121",lg:"fyvr122",xl:"fyvr123"},defaultClass:"fyvr120"},auto:{conditions:{sm:"fyvr124",md:"fyvr125",lg:"fyvr126",xl:"fyvr127"},defaultClass:"fyvr124"},full:{conditions:{sm:"fyvr128",md:"fyvr129",lg:"fyvr12a",xl:"fyvr12b"},defaultClass:"fyvr128"},"1/2":{conditions:{sm:"fyvr12c",md:"fyvr12d",lg:"fyvr12e",xl:"fyvr12f"},defaultClass:"fyvr12c"},"1/3":{conditions:{sm:"fyvr12g",md:"fyvr12h",lg:"fyvr12i",xl:"fyvr12j"},defaultClass:"fyvr12g"},"2/3":{conditions:{sm:"fyvr12k",md:"fyvr12l",lg:"fyvr12m",xl:"fyvr12n"},defaultClass:"fyvr12k"},"1/4":{conditions:{sm:"fyvr12o",md:"fyvr12p",lg:"fyvr12q",xl:"fyvr12r"},defaultClass:"fyvr12o"},"3/4":{conditions:{sm:"fyvr12s",md:"fyvr12t",lg:"fyvr12u",xl:"fyvr12v"},defaultClass:"fyvr12s"},fit:{conditions:{sm:"fyvr12w",md:"fyvr12x",lg:"fyvr12y",xl:"fyvr12z"},defaultClass:"fyvr12w"},max:{conditions:{sm:"fyvr130",md:"fyvr131",lg:"fyvr132",xl:"fyvr133"},defaultClass:"fyvr130"},min:{conditions:{sm:"fyvr134",md:"fyvr135",lg:"fyvr136",xl:"fyvr137"},defaultClass:"fyvr134"},vw:{conditions:{sm:"fyvr138",md:"fyvr139",lg:"fyvr13a",xl:"fyvr13b"},defaultClass:"fyvr138"},vh:{conditions:{sm:"fyvr13c",md:"fyvr13d",lg:"fyvr13e",xl:"fyvr13f"},defaultClass:"fyvr13c"}}},height:{values:{0:{conditions:{sm:"fyvr13g",md:"fyvr13h",lg:"fyvr13i",xl:"fyvr13j"},defaultClass:"fyvr13g"},1:{conditions:{sm:"fyvr13k",md:"fyvr13l",lg:"fyvr13m",xl:"fyvr13n"},defaultClass:"fyvr13k"},2:{conditions:{sm:"fyvr13o",md:"fyvr13p",lg:"fyvr13q",xl:"fyvr13r"},defaultClass:"fyvr13o"},3:{conditions:{sm:"fyvr13s",md:"fyvr13t",lg:"fyvr13u",xl:"fyvr13v"},defaultClass:"fyvr13s"},4:{conditions:{sm:"fyvr13w",md:"fyvr13x",lg:"fyvr13y",xl:"fyvr13z"},defaultClass:"fyvr13w"},5:{conditions:{sm:"fyvr140",md:"fyvr141",lg:"fyvr142",xl:"fyvr143"},defaultClass:"fyvr140"},6:{conditions:{sm:"fyvr144",md:"fyvr145",lg:"fyvr146",xl:"fyvr147"},defaultClass:"fyvr144"},7:{conditions:{sm:"fyvr148",md:"fyvr149",lg:"fyvr14a",xl:"fyvr14b"},defaultClass:"fyvr148"},8:{conditions:{sm:"fyvr14c",md:"fyvr14d",lg:"fyvr14e",xl:"fyvr14f"},defaultClass:"fyvr14c"},9:{conditions:{sm:"fyvr14g",md:"fyvr14h",lg:"fyvr14i",xl:"fyvr14j"},defaultClass:"fyvr14g"},10:{conditions:{sm:"fyvr14k",md:"fyvr14l",lg:"fyvr14m",xl:"fyvr14n"},defaultClass:"fyvr14k"},12:{conditions:{sm:"fyvr14o",md:"fyvr14p",lg:"fyvr14q",xl:"fyvr14r"},defaultClass:"fyvr14o"},14:{conditions:{sm:"fyvr14s",md:"fyvr14t",lg:"fyvr14u",xl:"fyvr14v"},defaultClass:"fyvr14s"},16:{conditions:{sm:"fyvr14w",md:"fyvr14x",lg:"fyvr14y",xl:"fyvr14z"},defaultClass:"fyvr14w"},"0.25":{conditions:{sm:"fyvr150",md:"fyvr151",lg:"fyvr152",xl:"fyvr153"},defaultClass:"fyvr150"},"0.5":{conditions:{sm:"fyvr154",md:"fyvr155",lg:"fyvr156",xl:"fyvr157"},defaultClass:"fyvr154"},"1.5":{conditions:{sm:"fyvr158",md:"fyvr159",lg:"fyvr15a",xl:"fyvr15b"},defaultClass:"fyvr158"},none:{conditions:{sm:"fyvr15c",md:"fyvr15d",lg:"fyvr15e",xl:"fyvr15f"},defaultClass:"fyvr15c"},px:{conditions:{sm:"fyvr15g",md:"fyvr15h",lg:"fyvr15i",xl:"fyvr15j"},defaultClass:"fyvr15g"},auto:{conditions:{sm:"fyvr15k",md:"fyvr15l",lg:"fyvr15m",xl:"fyvr15n"},defaultClass:"fyvr15k"},full:{conditions:{sm:"fyvr15o",md:"fyvr15p",lg:"fyvr15q",xl:"fyvr15r"},defaultClass:"fyvr15o"},"1/2":{conditions:{sm:"fyvr15s",md:"fyvr15t",lg:"fyvr15u",xl:"fyvr15v"},defaultClass:"fyvr15s"},"1/3":{conditions:{sm:"fyvr15w",md:"fyvr15x",lg:"fyvr15y",xl:"fyvr15z"},defaultClass:"fyvr15w"},"2/3":{conditions:{sm:"fyvr160",md:"fyvr161",lg:"fyvr162",xl:"fyvr163"},defaultClass:"fyvr160"},"1/4":{conditions:{sm:"fyvr164",md:"fyvr165",lg:"fyvr166",xl:"fyvr167"},defaultClass:"fyvr164"},"3/4":{conditions:{sm:"fyvr168",md:"fyvr169",lg:"fyvr16a",xl:"fyvr16b"},defaultClass:"fyvr168"},fit:{conditions:{sm:"fyvr16c",md:"fyvr16d",lg:"fyvr16e",xl:"fyvr16f"},defaultClass:"fyvr16c"},max:{conditions:{sm:"fyvr16g",md:"fyvr16h",lg:"fyvr16i",xl:"fyvr16j"},defaultClass:"fyvr16g"},min:{conditions:{sm:"fyvr16k",md:"fyvr16l",lg:"fyvr16m",xl:"fyvr16n"},defaultClass:"fyvr16k"},vw:{conditions:{sm:"fyvr16o",md:"fyvr16p",lg:"fyvr16q",xl:"fyvr16r"},defaultClass:"fyvr16o"},vh:{conditions:{sm:"fyvr16s",md:"fyvr16t",lg:"fyvr16u",xl:"fyvr16v"},defaultClass:"fyvr16s"}}},maxWidth:{values:{0:{conditions:{sm:"fyvr16w",md:"fyvr16x",lg:"fyvr16y",xl:"fyvr16z"},defaultClass:"fyvr16w"},1:{conditions:{sm:"fyvr170",md:"fyvr171",lg:"fyvr172",xl:"fyvr173"},defaultClass:"fyvr170"},2:{conditions:{sm:"fyvr174",md:"fyvr175",lg:"fyvr176",xl:"fyvr177"},defaultClass:"fyvr174"},3:{conditions:{sm:"fyvr178",md:"fyvr179",lg:"fyvr17a",xl:"fyvr17b"},defaultClass:"fyvr178"},4:{conditions:{sm:"fyvr17c",md:"fyvr17d",lg:"fyvr17e",xl:"fyvr17f"},defaultClass:"fyvr17c"},5:{conditions:{sm:"fyvr17g",md:"fyvr17h",lg:"fyvr17i",xl:"fyvr17j"},defaultClass:"fyvr17g"},6:{conditions:{sm:"fyvr17k",md:"fyvr17l",lg:"fyvr17m",xl:"fyvr17n"},defaultClass:"fyvr17k"},7:{conditions:{sm:"fyvr17o",md:"fyvr17p",lg:"fyvr17q",xl:"fyvr17r"},defaultClass:"fyvr17o"},8:{conditions:{sm:"fyvr17s",md:"fyvr17t",lg:"fyvr17u",xl:"fyvr17v"},defaultClass:"fyvr17s"},9:{conditions:{sm:"fyvr17w",md:"fyvr17x",lg:"fyvr17y",xl:"fyvr17z"},defaultClass:"fyvr17w"},10:{conditions:{sm:"fyvr180",md:"fyvr181",lg:"fyvr182",xl:"fyvr183"},defaultClass:"fyvr180"},12:{conditions:{sm:"fyvr184",md:"fyvr185",lg:"fyvr186",xl:"fyvr187"},defaultClass:"fyvr184"},14:{conditions:{sm:"fyvr188",md:"fyvr189",lg:"fyvr18a",xl:"fyvr18b"},defaultClass:"fyvr188"},16:{conditions:{sm:"fyvr18c",md:"fyvr18d",lg:"fyvr18e",xl:"fyvr18f"},defaultClass:"fyvr18c"},"0.25":{conditions:{sm:"fyvr18g",md:"fyvr18h",lg:"fyvr18i",xl:"fyvr18j"},defaultClass:"fyvr18g"},"0.5":{conditions:{sm:"fyvr18k",md:"fyvr18l",lg:"fyvr18m",xl:"fyvr18n"},defaultClass:"fyvr18k"},"1.5":{conditions:{sm:"fyvr18o",md:"fyvr18p",lg:"fyvr18q",xl:"fyvr18r"},defaultClass:"fyvr18o"},none:{conditions:{sm:"fyvr18s",md:"fyvr18t",lg:"fyvr18u",xl:"fyvr18v"},defaultClass:"fyvr18s"},px:{conditions:{sm:"fyvr18w",md:"fyvr18x",lg:"fyvr18y",xl:"fyvr18z"},defaultClass:"fyvr18w"},auto:{conditions:{sm:"fyvr190",md:"fyvr191",lg:"fyvr192",xl:"fyvr193"},defaultClass:"fyvr190"},full:{conditions:{sm:"fyvr194",md:"fyvr195",lg:"fyvr196",xl:"fyvr197"},defaultClass:"fyvr194"},"1/2":{conditions:{sm:"fyvr198",md:"fyvr199",lg:"fyvr19a",xl:"fyvr19b"},defaultClass:"fyvr198"},"1/3":{conditions:{sm:"fyvr19c",md:"fyvr19d",lg:"fyvr19e",xl:"fyvr19f"},defaultClass:"fyvr19c"},"2/3":{conditions:{sm:"fyvr19g",md:"fyvr19h",lg:"fyvr19i",xl:"fyvr19j"},defaultClass:"fyvr19g"},"1/4":{conditions:{sm:"fyvr19k",md:"fyvr19l",lg:"fyvr19m",xl:"fyvr19n"},defaultClass:"fyvr19k"},"3/4":{conditions:{sm:"fyvr19o",md:"fyvr19p",lg:"fyvr19q",xl:"fyvr19r"},defaultClass:"fyvr19o"},fit:{conditions:{sm:"fyvr19s",md:"fyvr19t",lg:"fyvr19u",xl:"fyvr19v"},defaultClass:"fyvr19s"},max:{conditions:{sm:"fyvr19w",md:"fyvr19x",lg:"fyvr19y",xl:"fyvr19z"},defaultClass:"fyvr19w"},min:{conditions:{sm:"fyvr1a0",md:"fyvr1a1",lg:"fyvr1a2",xl:"fyvr1a3"},defaultClass:"fyvr1a0"},vw:{conditions:{sm:"fyvr1a4",md:"fyvr1a5",lg:"fyvr1a6",xl:"fyvr1a7"},defaultClass:"fyvr1a4"},vh:{conditions:{sm:"fyvr1a8",md:"fyvr1a9",lg:"fyvr1aa",xl:"fyvr1ab"},defaultClass:"fyvr1a8"}}},maxHeight:{values:{0:{conditions:{sm:"fyvr1ac",md:"fyvr1ad",lg:"fyvr1ae",xl:"fyvr1af"},defaultClass:"fyvr1ac"},1:{conditions:{sm:"fyvr1ag",md:"fyvr1ah",lg:"fyvr1ai",xl:"fyvr1aj"},defaultClass:"fyvr1ag"},2:{conditions:{sm:"fyvr1ak",md:"fyvr1al",lg:"fyvr1am",xl:"fyvr1an"},defaultClass:"fyvr1ak"},3:{conditions:{sm:"fyvr1ao",md:"fyvr1ap",lg:"fyvr1aq",xl:"fyvr1ar"},defaultClass:"fyvr1ao"},4:{conditions:{sm:"fyvr1as",md:"fyvr1at",lg:"fyvr1au",xl:"fyvr1av"},defaultClass:"fyvr1as"},5:{conditions:{sm:"fyvr1aw",md:"fyvr1ax",lg:"fyvr1ay",xl:"fyvr1az"},defaultClass:"fyvr1aw"},6:{conditions:{sm:"fyvr1b0",md:"fyvr1b1",lg:"fyvr1b2",xl:"fyvr1b3"},defaultClass:"fyvr1b0"},7:{conditions:{sm:"fyvr1b4",md:"fyvr1b5",lg:"fyvr1b6",xl:"fyvr1b7"},defaultClass:"fyvr1b4"},8:{conditions:{sm:"fyvr1b8",md:"fyvr1b9",lg:"fyvr1ba",xl:"fyvr1bb"},defaultClass:"fyvr1b8"},9:{conditions:{sm:"fyvr1bc",md:"fyvr1bd",lg:"fyvr1be",xl:"fyvr1bf"},defaultClass:"fyvr1bc"},10:{conditions:{sm:"fyvr1bg",md:"fyvr1bh",lg:"fyvr1bi",xl:"fyvr1bj"},defaultClass:"fyvr1bg"},12:{conditions:{sm:"fyvr1bk",md:"fyvr1bl",lg:"fyvr1bm",xl:"fyvr1bn"},defaultClass:"fyvr1bk"},14:{conditions:{sm:"fyvr1bo",md:"fyvr1bp",lg:"fyvr1bq",xl:"fyvr1br"},defaultClass:"fyvr1bo"},16:{conditions:{sm:"fyvr1bs",md:"fyvr1bt",lg:"fyvr1bu",xl:"fyvr1bv"},defaultClass:"fyvr1bs"},"0.25":{conditions:{sm:"fyvr1bw",md:"fyvr1bx",lg:"fyvr1by",xl:"fyvr1bz"},defaultClass:"fyvr1bw"},"0.5":{conditions:{sm:"fyvr1c0",md:"fyvr1c1",lg:"fyvr1c2",xl:"fyvr1c3"},defaultClass:"fyvr1c0"},"1.5":{conditions:{sm:"fyvr1c4",md:"fyvr1c5",lg:"fyvr1c6",xl:"fyvr1c7"},defaultClass:"fyvr1c4"},none:{conditions:{sm:"fyvr1c8",md:"fyvr1c9",lg:"fyvr1ca",xl:"fyvr1cb"},defaultClass:"fyvr1c8"},px:{conditions:{sm:"fyvr1cc",md:"fyvr1cd",lg:"fyvr1ce",xl:"fyvr1cf"},defaultClass:"fyvr1cc"},auto:{conditions:{sm:"fyvr1cg",md:"fyvr1ch",lg:"fyvr1ci",xl:"fyvr1cj"},defaultClass:"fyvr1cg"},full:{conditions:{sm:"fyvr1ck",md:"fyvr1cl",lg:"fyvr1cm",xl:"fyvr1cn"},defaultClass:"fyvr1ck"},"1/2":{conditions:{sm:"fyvr1co",md:"fyvr1cp",lg:"fyvr1cq",xl:"fyvr1cr"},defaultClass:"fyvr1co"},"1/3":{conditions:{sm:"fyvr1cs",md:"fyvr1ct",lg:"fyvr1cu",xl:"fyvr1cv"},defaultClass:"fyvr1cs"},"2/3":{conditions:{sm:"fyvr1cw",md:"fyvr1cx",lg:"fyvr1cy",xl:"fyvr1cz"},defaultClass:"fyvr1cw"},"1/4":{conditions:{sm:"fyvr1d0",md:"fyvr1d1",lg:"fyvr1d2",xl:"fyvr1d3"},defaultClass:"fyvr1d0"},"3/4":{conditions:{sm:"fyvr1d4",md:"fyvr1d5",lg:"fyvr1d6",xl:"fyvr1d7"},defaultClass:"fyvr1d4"},fit:{conditions:{sm:"fyvr1d8",md:"fyvr1d9",lg:"fyvr1da",xl:"fyvr1db"},defaultClass:"fyvr1d8"},max:{conditions:{sm:"fyvr1dc",md:"fyvr1dd",lg:"fyvr1de",xl:"fyvr1df"},defaultClass:"fyvr1dc"},min:{conditions:{sm:"fyvr1dg",md:"fyvr1dh",lg:"fyvr1di",xl:"fyvr1dj"},defaultClass:"fyvr1dg"},vw:{conditions:{sm:"fyvr1dk",md:"fyvr1dl",lg:"fyvr1dm",xl:"fyvr1dn"},defaultClass:"fyvr1dk"},vh:{conditions:{sm:"fyvr1do",md:"fyvr1dp",lg:"fyvr1dq",xl:"fyvr1dr"},defaultClass:"fyvr1do"}}},minWidth:{values:{0:{conditions:{sm:"fyvr1ds",md:"fyvr1dt",lg:"fyvr1du",xl:"fyvr1dv"},defaultClass:"fyvr1ds"},1:{conditions:{sm:"fyvr1dw",md:"fyvr1dx",lg:"fyvr1dy",xl:"fyvr1dz"},defaultClass:"fyvr1dw"},2:{conditions:{sm:"fyvr1e0",md:"fyvr1e1",lg:"fyvr1e2",xl:"fyvr1e3"},defaultClass:"fyvr1e0"},3:{conditions:{sm:"fyvr1e4",md:"fyvr1e5",lg:"fyvr1e6",xl:"fyvr1e7"},defaultClass:"fyvr1e4"},4:{conditions:{sm:"fyvr1e8",md:"fyvr1e9",lg:"fyvr1ea",xl:"fyvr1eb"},defaultClass:"fyvr1e8"},5:{conditions:{sm:"fyvr1ec",md:"fyvr1ed",lg:"fyvr1ee",xl:"fyvr1ef"},defaultClass:"fyvr1ec"},6:{conditions:{sm:"fyvr1eg",md:"fyvr1eh",lg:"fyvr1ei",xl:"fyvr1ej"},defaultClass:"fyvr1eg"},7:{conditions:{sm:"fyvr1ek",md:"fyvr1el",lg:"fyvr1em",xl:"fyvr1en"},defaultClass:"fyvr1ek"},8:{conditions:{sm:"fyvr1eo",md:"fyvr1ep",lg:"fyvr1eq",xl:"fyvr1er"},defaultClass:"fyvr1eo"},9:{conditions:{sm:"fyvr1es",md:"fyvr1et",lg:"fyvr1eu",xl:"fyvr1ev"},defaultClass:"fyvr1es"},10:{conditions:{sm:"fyvr1ew",md:"fyvr1ex",lg:"fyvr1ey",xl:"fyvr1ez"},defaultClass:"fyvr1ew"},12:{conditions:{sm:"fyvr1f0",md:"fyvr1f1",lg:"fyvr1f2",xl:"fyvr1f3"},defaultClass:"fyvr1f0"},14:{conditions:{sm:"fyvr1f4",md:"fyvr1f5",lg:"fyvr1f6",xl:"fyvr1f7"},defaultClass:"fyvr1f4"},16:{conditions:{sm:"fyvr1f8",md:"fyvr1f9",lg:"fyvr1fa",xl:"fyvr1fb"},defaultClass:"fyvr1f8"},"0.25":{conditions:{sm:"fyvr1fc",md:"fyvr1fd",lg:"fyvr1fe",xl:"fyvr1ff"},defaultClass:"fyvr1fc"},"0.5":{conditions:{sm:"fyvr1fg",md:"fyvr1fh",lg:"fyvr1fi",xl:"fyvr1fj"},defaultClass:"fyvr1fg"},"1.5":{conditions:{sm:"fyvr1fk",md:"fyvr1fl",lg:"fyvr1fm",xl:"fyvr1fn"},defaultClass:"fyvr1fk"},none:{conditions:{sm:"fyvr1fo",md:"fyvr1fp",lg:"fyvr1fq",xl:"fyvr1fr"},defaultClass:"fyvr1fo"},px:{conditions:{sm:"fyvr1fs",md:"fyvr1ft",lg:"fyvr1fu",xl:"fyvr1fv"},defaultClass:"fyvr1fs"},auto:{conditions:{sm:"fyvr1fw",md:"fyvr1fx",lg:"fyvr1fy",xl:"fyvr1fz"},defaultClass:"fyvr1fw"},full:{conditions:{sm:"fyvr1g0",md:"fyvr1g1",lg:"fyvr1g2",xl:"fyvr1g3"},defaultClass:"fyvr1g0"},"1/2":{conditions:{sm:"fyvr1g4",md:"fyvr1g5",lg:"fyvr1g6",xl:"fyvr1g7"},defaultClass:"fyvr1g4"},"1/3":{conditions:{sm:"fyvr1g8",md:"fyvr1g9",lg:"fyvr1ga",xl:"fyvr1gb"},defaultClass:"fyvr1g8"},"2/3":{conditions:{sm:"fyvr1gc",md:"fyvr1gd",lg:"fyvr1ge",xl:"fyvr1gf"},defaultClass:"fyvr1gc"},"1/4":{conditions:{sm:"fyvr1gg",md:"fyvr1gh",lg:"fyvr1gi",xl:"fyvr1gj"},defaultClass:"fyvr1gg"},"3/4":{conditions:{sm:"fyvr1gk",md:"fyvr1gl",lg:"fyvr1gm",xl:"fyvr1gn"},defaultClass:"fyvr1gk"},fit:{conditions:{sm:"fyvr1go",md:"fyvr1gp",lg:"fyvr1gq",xl:"fyvr1gr"},defaultClass:"fyvr1go"},max:{conditions:{sm:"fyvr1gs",md:"fyvr1gt",lg:"fyvr1gu",xl:"fyvr1gv"},defaultClass:"fyvr1gs"},min:{conditions:{sm:"fyvr1gw",md:"fyvr1gx",lg:"fyvr1gy",xl:"fyvr1gz"},defaultClass:"fyvr1gw"},vw:{conditions:{sm:"fyvr1h0",md:"fyvr1h1",lg:"fyvr1h2",xl:"fyvr1h3"},defaultClass:"fyvr1h0"},vh:{conditions:{sm:"fyvr1h4",md:"fyvr1h5",lg:"fyvr1h6",xl:"fyvr1h7"},defaultClass:"fyvr1h4"}}},minHeight:{values:{0:{conditions:{sm:"fyvr1h8",md:"fyvr1h9",lg:"fyvr1ha",xl:"fyvr1hb"},defaultClass:"fyvr1h8"},1:{conditions:{sm:"fyvr1hc",md:"fyvr1hd",lg:"fyvr1he",xl:"fyvr1hf"},defaultClass:"fyvr1hc"},2:{conditions:{sm:"fyvr1hg",md:"fyvr1hh",lg:"fyvr1hi",xl:"fyvr1hj"},defaultClass:"fyvr1hg"},3:{conditions:{sm:"fyvr1hk",md:"fyvr1hl",lg:"fyvr1hm",xl:"fyvr1hn"},defaultClass:"fyvr1hk"},4:{conditions:{sm:"fyvr1ho",md:"fyvr1hp",lg:"fyvr1hq",xl:"fyvr1hr"},defaultClass:"fyvr1ho"},5:{conditions:{sm:"fyvr1hs",md:"fyvr1ht",lg:"fyvr1hu",xl:"fyvr1hv"},defaultClass:"fyvr1hs"},6:{conditions:{sm:"fyvr1hw",md:"fyvr1hx",lg:"fyvr1hy",xl:"fyvr1hz"},defaultClass:"fyvr1hw"},7:{conditions:{sm:"fyvr1i0",md:"fyvr1i1",lg:"fyvr1i2",xl:"fyvr1i3"},defaultClass:"fyvr1i0"},8:{conditions:{sm:"fyvr1i4",md:"fyvr1i5",lg:"fyvr1i6",xl:"fyvr1i7"},defaultClass:"fyvr1i4"},9:{conditions:{sm:"fyvr1i8",md:"fyvr1i9",lg:"fyvr1ia",xl:"fyvr1ib"},defaultClass:"fyvr1i8"},10:{conditions:{sm:"fyvr1ic",md:"fyvr1id",lg:"fyvr1ie",xl:"fyvr1if"},defaultClass:"fyvr1ic"},12:{conditions:{sm:"fyvr1ig",md:"fyvr1ih",lg:"fyvr1ii",xl:"fyvr1ij"},defaultClass:"fyvr1ig"},14:{conditions:{sm:"fyvr1ik",md:"fyvr1il",lg:"fyvr1im",xl:"fyvr1in"},defaultClass:"fyvr1ik"},16:{conditions:{sm:"fyvr1io",md:"fyvr1ip",lg:"fyvr1iq",xl:"fyvr1ir"},defaultClass:"fyvr1io"},"0.25":{conditions:{sm:"fyvr1is",md:"fyvr1it",lg:"fyvr1iu",xl:"fyvr1iv"},defaultClass:"fyvr1is"},"0.5":{conditions:{sm:"fyvr1iw",md:"fyvr1ix",lg:"fyvr1iy",xl:"fyvr1iz"},defaultClass:"fyvr1iw"},"1.5":{conditions:{sm:"fyvr1j0",md:"fyvr1j1",lg:"fyvr1j2",xl:"fyvr1j3"},defaultClass:"fyvr1j0"},none:{conditions:{sm:"fyvr1j4",md:"fyvr1j5",lg:"fyvr1j6",xl:"fyvr1j7"},defaultClass:"fyvr1j4"},px:{conditions:{sm:"fyvr1j8",md:"fyvr1j9",lg:"fyvr1ja",xl:"fyvr1jb"},defaultClass:"fyvr1j8"},auto:{conditions:{sm:"fyvr1jc",md:"fyvr1jd",lg:"fyvr1je",xl:"fyvr1jf"},defaultClass:"fyvr1jc"},full:{conditions:{sm:"fyvr1jg",md:"fyvr1jh",lg:"fyvr1ji",xl:"fyvr1jj"},defaultClass:"fyvr1jg"},"1/2":{conditions:{sm:"fyvr1jk",md:"fyvr1jl",lg:"fyvr1jm",xl:"fyvr1jn"},defaultClass:"fyvr1jk"},"1/3":{conditions:{sm:"fyvr1jo",md:"fyvr1jp",lg:"fyvr1jq",xl:"fyvr1jr"},defaultClass:"fyvr1jo"},"2/3":{conditions:{sm:"fyvr1js",md:"fyvr1jt",lg:"fyvr1ju",xl:"fyvr1jv"},defaultClass:"fyvr1js"},"1/4":{conditions:{sm:"fyvr1jw",md:"fyvr1jx",lg:"fyvr1jy",xl:"fyvr1jz"},defaultClass:"fyvr1jw"},"3/4":{conditions:{sm:"fyvr1k0",md:"fyvr1k1",lg:"fyvr1k2",xl:"fyvr1k3"},defaultClass:"fyvr1k0"},fit:{conditions:{sm:"fyvr1k4",md:"fyvr1k5",lg:"fyvr1k6",xl:"fyvr1k7"},defaultClass:"fyvr1k4"},max:{conditions:{sm:"fyvr1k8",md:"fyvr1k9",lg:"fyvr1ka",xl:"fyvr1kb"},defaultClass:"fyvr1k8"},min:{conditions:{sm:"fyvr1kc",md:"fyvr1kd",lg:"fyvr1ke",xl:"fyvr1kf"},defaultClass:"fyvr1kc"},vw:{conditions:{sm:"fyvr1kg",md:"fyvr1kh",lg:"fyvr1ki",xl:"fyvr1kj"},defaultClass:"fyvr1kg"},vh:{conditions:{sm:"fyvr1kk",md:"fyvr1kl",lg:"fyvr1km",xl:"fyvr1kn"},defaultClass:"fyvr1kk"}}},top:{values:{0:{conditions:{sm:"fyvr1ko",md:"fyvr1kp",lg:"fyvr1kq",xl:"fyvr1kr"},defaultClass:"fyvr1ko"},1:{conditions:{sm:"fyvr1ks",md:"fyvr1kt",lg:"fyvr1ku",xl:"fyvr1kv"},defaultClass:"fyvr1ks"},2:{conditions:{sm:"fyvr1kw",md:"fyvr1kx",lg:"fyvr1ky",xl:"fyvr1kz"},defaultClass:"fyvr1kw"},3:{conditions:{sm:"fyvr1l0",md:"fyvr1l1",lg:"fyvr1l2",xl:"fyvr1l3"},defaultClass:"fyvr1l0"},4:{conditions:{sm:"fyvr1l4",md:"fyvr1l5",lg:"fyvr1l6",xl:"fyvr1l7"},defaultClass:"fyvr1l4"},5:{conditions:{sm:"fyvr1l8",md:"fyvr1l9",lg:"fyvr1la",xl:"fyvr1lb"},defaultClass:"fyvr1l8"},6:{conditions:{sm:"fyvr1lc",md:"fyvr1ld",lg:"fyvr1le",xl:"fyvr1lf"},defaultClass:"fyvr1lc"},7:{conditions:{sm:"fyvr1lg",md:"fyvr1lh",lg:"fyvr1li",xl:"fyvr1lj"},defaultClass:"fyvr1lg"},8:{conditions:{sm:"fyvr1lk",md:"fyvr1ll",lg:"fyvr1lm",xl:"fyvr1ln"},defaultClass:"fyvr1lk"},9:{conditions:{sm:"fyvr1lo",md:"fyvr1lp",lg:"fyvr1lq",xl:"fyvr1lr"},defaultClass:"fyvr1lo"},10:{conditions:{sm:"fyvr1ls",md:"fyvr1lt",lg:"fyvr1lu",xl:"fyvr1lv"},defaultClass:"fyvr1ls"},12:{conditions:{sm:"fyvr1lw",md:"fyvr1lx",lg:"fyvr1ly",xl:"fyvr1lz"},defaultClass:"fyvr1lw"},14:{conditions:{sm:"fyvr1m0",md:"fyvr1m1",lg:"fyvr1m2",xl:"fyvr1m3"},defaultClass:"fyvr1m0"},16:{conditions:{sm:"fyvr1m4",md:"fyvr1m5",lg:"fyvr1m6",xl:"fyvr1m7"},defaultClass:"fyvr1m4"},"0.25":{conditions:{sm:"fyvr1m8",md:"fyvr1m9",lg:"fyvr1ma",xl:"fyvr1mb"},defaultClass:"fyvr1m8"},"0.5":{conditions:{sm:"fyvr1mc",md:"fyvr1md",lg:"fyvr1me",xl:"fyvr1mf"},defaultClass:"fyvr1mc"},"1.5":{conditions:{sm:"fyvr1mg",md:"fyvr1mh",lg:"fyvr1mi",xl:"fyvr1mj"},defaultClass:"fyvr1mg"},auto:{conditions:{sm:"fyvr1mk",md:"fyvr1ml",lg:"fyvr1mm",xl:"fyvr1mn"},defaultClass:"fyvr1mk"}}},bottom:{values:{0:{conditions:{sm:"fyvr1mo",md:"fyvr1mp",lg:"fyvr1mq",xl:"fyvr1mr"},defaultClass:"fyvr1mo"},1:{conditions:{sm:"fyvr1ms",md:"fyvr1mt",lg:"fyvr1mu",xl:"fyvr1mv"},defaultClass:"fyvr1ms"},2:{conditions:{sm:"fyvr1mw",md:"fyvr1mx",lg:"fyvr1my",xl:"fyvr1mz"},defaultClass:"fyvr1mw"},3:{conditions:{sm:"fyvr1n0",md:"fyvr1n1",lg:"fyvr1n2",xl:"fyvr1n3"},defaultClass:"fyvr1n0"},4:{conditions:{sm:"fyvr1n4",md:"fyvr1n5",lg:"fyvr1n6",xl:"fyvr1n7"},defaultClass:"fyvr1n4"},5:{conditions:{sm:"fyvr1n8",md:"fyvr1n9",lg:"fyvr1na",xl:"fyvr1nb"},defaultClass:"fyvr1n8"},6:{conditions:{sm:"fyvr1nc",md:"fyvr1nd",lg:"fyvr1ne",xl:"fyvr1nf"},defaultClass:"fyvr1nc"},7:{conditions:{sm:"fyvr1ng",md:"fyvr1nh",lg:"fyvr1ni",xl:"fyvr1nj"},defaultClass:"fyvr1ng"},8:{conditions:{sm:"fyvr1nk",md:"fyvr1nl",lg:"fyvr1nm",xl:"fyvr1nn"},defaultClass:"fyvr1nk"},9:{conditions:{sm:"fyvr1no",md:"fyvr1np",lg:"fyvr1nq",xl:"fyvr1nr"},defaultClass:"fyvr1no"},10:{conditions:{sm:"fyvr1ns",md:"fyvr1nt",lg:"fyvr1nu",xl:"fyvr1nv"},defaultClass:"fyvr1ns"},12:{conditions:{sm:"fyvr1nw",md:"fyvr1nx",lg:"fyvr1ny",xl:"fyvr1nz"},defaultClass:"fyvr1nw"},14:{conditions:{sm:"fyvr1o0",md:"fyvr1o1",lg:"fyvr1o2",xl:"fyvr1o3"},defaultClass:"fyvr1o0"},16:{conditions:{sm:"fyvr1o4",md:"fyvr1o5",lg:"fyvr1o6",xl:"fyvr1o7"},defaultClass:"fyvr1o4"},"0.25":{conditions:{sm:"fyvr1o8",md:"fyvr1o9",lg:"fyvr1oa",xl:"fyvr1ob"},defaultClass:"fyvr1o8"},"0.5":{conditions:{sm:"fyvr1oc",md:"fyvr1od",lg:"fyvr1oe",xl:"fyvr1of"},defaultClass:"fyvr1oc"},"1.5":{conditions:{sm:"fyvr1og",md:"fyvr1oh",lg:"fyvr1oi",xl:"fyvr1oj"},defaultClass:"fyvr1og"},auto:{conditions:{sm:"fyvr1ok",md:"fyvr1ol",lg:"fyvr1om",xl:"fyvr1on"},defaultClass:"fyvr1ok"}}},left:{values:{0:{conditions:{sm:"fyvr1oo",md:"fyvr1op",lg:"fyvr1oq",xl:"fyvr1or"},defaultClass:"fyvr1oo"},1:{conditions:{sm:"fyvr1os",md:"fyvr1ot",lg:"fyvr1ou",xl:"fyvr1ov"},defaultClass:"fyvr1os"},2:{conditions:{sm:"fyvr1ow",md:"fyvr1ox",lg:"fyvr1oy",xl:"fyvr1oz"},defaultClass:"fyvr1ow"},3:{conditions:{sm:"fyvr1p0",md:"fyvr1p1",lg:"fyvr1p2",xl:"fyvr1p3"},defaultClass:"fyvr1p0"},4:{conditions:{sm:"fyvr1p4",md:"fyvr1p5",lg:"fyvr1p6",xl:"fyvr1p7"},defaultClass:"fyvr1p4"},5:{conditions:{sm:"fyvr1p8",md:"fyvr1p9",lg:"fyvr1pa",xl:"fyvr1pb"},defaultClass:"fyvr1p8"},6:{conditions:{sm:"fyvr1pc",md:"fyvr1pd",lg:"fyvr1pe",xl:"fyvr1pf"},defaultClass:"fyvr1pc"},7:{conditions:{sm:"fyvr1pg",md:"fyvr1ph",lg:"fyvr1pi",xl:"fyvr1pj"},defaultClass:"fyvr1pg"},8:{conditions:{sm:"fyvr1pk",md:"fyvr1pl",lg:"fyvr1pm",xl:"fyvr1pn"},defaultClass:"fyvr1pk"},9:{conditions:{sm:"fyvr1po",md:"fyvr1pp",lg:"fyvr1pq",xl:"fyvr1pr"},defaultClass:"fyvr1po"},10:{conditions:{sm:"fyvr1ps",md:"fyvr1pt",lg:"fyvr1pu",xl:"fyvr1pv"},defaultClass:"fyvr1ps"},12:{conditions:{sm:"fyvr1pw",md:"fyvr1px",lg:"fyvr1py",xl:"fyvr1pz"},defaultClass:"fyvr1pw"},14:{conditions:{sm:"fyvr1q0",md:"fyvr1q1",lg:"fyvr1q2",xl:"fyvr1q3"},defaultClass:"fyvr1q0"},16:{conditions:{sm:"fyvr1q4",md:"fyvr1q5",lg:"fyvr1q6",xl:"fyvr1q7"},defaultClass:"fyvr1q4"},"0.25":{conditions:{sm:"fyvr1q8",md:"fyvr1q9",lg:"fyvr1qa",xl:"fyvr1qb"},defaultClass:"fyvr1q8"},"0.5":{conditions:{sm:"fyvr1qc",md:"fyvr1qd",lg:"fyvr1qe",xl:"fyvr1qf"},defaultClass:"fyvr1qc"},"1.5":{conditions:{sm:"fyvr1qg",md:"fyvr1qh",lg:"fyvr1qi",xl:"fyvr1qj"},defaultClass:"fyvr1qg"},auto:{conditions:{sm:"fyvr1qk",md:"fyvr1ql",lg:"fyvr1qm",xl:"fyvr1qn"},defaultClass:"fyvr1qk"}}},right:{values:{0:{conditions:{sm:"fyvr1qo",md:"fyvr1qp",lg:"fyvr1qq",xl:"fyvr1qr"},defaultClass:"fyvr1qo"},1:{conditions:{sm:"fyvr1qs",md:"fyvr1qt",lg:"fyvr1qu",xl:"fyvr1qv"},defaultClass:"fyvr1qs"},2:{conditions:{sm:"fyvr1qw",md:"fyvr1qx",lg:"fyvr1qy",xl:"fyvr1qz"},defaultClass:"fyvr1qw"},3:{conditions:{sm:"fyvr1r0",md:"fyvr1r1",lg:"fyvr1r2",xl:"fyvr1r3"},defaultClass:"fyvr1r0"},4:{conditions:{sm:"fyvr1r4",md:"fyvr1r5",lg:"fyvr1r6",xl:"fyvr1r7"},defaultClass:"fyvr1r4"},5:{conditions:{sm:"fyvr1r8",md:"fyvr1r9",lg:"fyvr1ra",xl:"fyvr1rb"},defaultClass:"fyvr1r8"},6:{conditions:{sm:"fyvr1rc",md:"fyvr1rd",lg:"fyvr1re",xl:"fyvr1rf"},defaultClass:"fyvr1rc"},7:{conditions:{sm:"fyvr1rg",md:"fyvr1rh",lg:"fyvr1ri",xl:"fyvr1rj"},defaultClass:"fyvr1rg"},8:{conditions:{sm:"fyvr1rk",md:"fyvr1rl",lg:"fyvr1rm",xl:"fyvr1rn"},defaultClass:"fyvr1rk"},9:{conditions:{sm:"fyvr1ro",md:"fyvr1rp",lg:"fyvr1rq",xl:"fyvr1rr"},defaultClass:"fyvr1ro"},10:{conditions:{sm:"fyvr1rs",md:"fyvr1rt",lg:"fyvr1ru",xl:"fyvr1rv"},defaultClass:"fyvr1rs"},12:{conditions:{sm:"fyvr1rw",md:"fyvr1rx",lg:"fyvr1ry",xl:"fyvr1rz"},defaultClass:"fyvr1rw"},14:{conditions:{sm:"fyvr1s0",md:"fyvr1s1",lg:"fyvr1s2",xl:"fyvr1s3"},defaultClass:"fyvr1s0"},16:{conditions:{sm:"fyvr1s4",md:"fyvr1s5",lg:"fyvr1s6",xl:"fyvr1s7"},defaultClass:"fyvr1s4"},"0.25":{conditions:{sm:"fyvr1s8",md:"fyvr1s9",lg:"fyvr1sa",xl:"fyvr1sb"},defaultClass:"fyvr1s8"},"0.5":{conditions:{sm:"fyvr1sc",md:"fyvr1sd",lg:"fyvr1se",xl:"fyvr1sf"},defaultClass:"fyvr1sc"},"1.5":{conditions:{sm:"fyvr1sg",md:"fyvr1sh",lg:"fyvr1si",xl:"fyvr1sj"},defaultClass:"fyvr1sg"},auto:{conditions:{sm:"fyvr1sk",md:"fyvr1sl",lg:"fyvr1sm",xl:"fyvr1sn"},defaultClass:"fyvr1sk"}}},paddingTop:{values:{0:{conditions:{sm:"fyvr1so",md:"fyvr1sp",lg:"fyvr1sq",xl:"fyvr1sr"},defaultClass:"fyvr1so"},1:{conditions:{sm:"fyvr1ss",md:"fyvr1st",lg:"fyvr1su",xl:"fyvr1sv"},defaultClass:"fyvr1ss"},2:{conditions:{sm:"fyvr1sw",md:"fyvr1sx",lg:"fyvr1sy",xl:"fyvr1sz"},defaultClass:"fyvr1sw"},3:{conditions:{sm:"fyvr1t0",md:"fyvr1t1",lg:"fyvr1t2",xl:"fyvr1t3"},defaultClass:"fyvr1t0"},4:{conditions:{sm:"fyvr1t4",md:"fyvr1t5",lg:"fyvr1t6",xl:"fyvr1t7"},defaultClass:"fyvr1t4"},5:{conditions:{sm:"fyvr1t8",md:"fyvr1t9",lg:"fyvr1ta",xl:"fyvr1tb"},defaultClass:"fyvr1t8"},6:{conditions:{sm:"fyvr1tc",md:"fyvr1td",lg:"fyvr1te",xl:"fyvr1tf"},defaultClass:"fyvr1tc"},7:{conditions:{sm:"fyvr1tg",md:"fyvr1th",lg:"fyvr1ti",xl:"fyvr1tj"},defaultClass:"fyvr1tg"},8:{conditions:{sm:"fyvr1tk",md:"fyvr1tl",lg:"fyvr1tm",xl:"fyvr1tn"},defaultClass:"fyvr1tk"},9:{conditions:{sm:"fyvr1to",md:"fyvr1tp",lg:"fyvr1tq",xl:"fyvr1tr"},defaultClass:"fyvr1to"},10:{conditions:{sm:"fyvr1ts",md:"fyvr1tt",lg:"fyvr1tu",xl:"fyvr1tv"},defaultClass:"fyvr1ts"},12:{conditions:{sm:"fyvr1tw",md:"fyvr1tx",lg:"fyvr1ty",xl:"fyvr1tz"},defaultClass:"fyvr1tw"},14:{conditions:{sm:"fyvr1u0",md:"fyvr1u1",lg:"fyvr1u2",xl:"fyvr1u3"},defaultClass:"fyvr1u0"},16:{conditions:{sm:"fyvr1u4",md:"fyvr1u5",lg:"fyvr1u6",xl:"fyvr1u7"},defaultClass:"fyvr1u4"},"0.25":{conditions:{sm:"fyvr1u8",md:"fyvr1u9",lg:"fyvr1ua",xl:"fyvr1ub"},defaultClass:"fyvr1u8"},"0.5":{conditions:{sm:"fyvr1uc",md:"fyvr1ud",lg:"fyvr1ue",xl:"fyvr1uf"},defaultClass:"fyvr1uc"},"1.5":{conditions:{sm:"fyvr1ug",md:"fyvr1uh",lg:"fyvr1ui",xl:"fyvr1uj"},defaultClass:"fyvr1ug"}}},paddingBottom:{values:{0:{conditions:{sm:"fyvr1uk",md:"fyvr1ul",lg:"fyvr1um",xl:"fyvr1un"},defaultClass:"fyvr1uk"},1:{conditions:{sm:"fyvr1uo",md:"fyvr1up",lg:"fyvr1uq",xl:"fyvr1ur"},defaultClass:"fyvr1uo"},2:{conditions:{sm:"fyvr1us",md:"fyvr1ut",lg:"fyvr1uu",xl:"fyvr1uv"},defaultClass:"fyvr1us"},3:{conditions:{sm:"fyvr1uw",md:"fyvr1ux",lg:"fyvr1uy",xl:"fyvr1uz"},defaultClass:"fyvr1uw"},4:{conditions:{sm:"fyvr1v0",md:"fyvr1v1",lg:"fyvr1v2",xl:"fyvr1v3"},defaultClass:"fyvr1v0"},5:{conditions:{sm:"fyvr1v4",md:"fyvr1v5",lg:"fyvr1v6",xl:"fyvr1v7"},defaultClass:"fyvr1v4"},6:{conditions:{sm:"fyvr1v8",md:"fyvr1v9",lg:"fyvr1va",xl:"fyvr1vb"},defaultClass:"fyvr1v8"},7:{conditions:{sm:"fyvr1vc",md:"fyvr1vd",lg:"fyvr1ve",xl:"fyvr1vf"},defaultClass:"fyvr1vc"},8:{conditions:{sm:"fyvr1vg",md:"fyvr1vh",lg:"fyvr1vi",xl:"fyvr1vj"},defaultClass:"fyvr1vg"},9:{conditions:{sm:"fyvr1vk",md:"fyvr1vl",lg:"fyvr1vm",xl:"fyvr1vn"},defaultClass:"fyvr1vk"},10:{conditions:{sm:"fyvr1vo",md:"fyvr1vp",lg:"fyvr1vq",xl:"fyvr1vr"},defaultClass:"fyvr1vo"},12:{conditions:{sm:"fyvr1vs",md:"fyvr1vt",lg:"fyvr1vu",xl:"fyvr1vv"},defaultClass:"fyvr1vs"},14:{conditions:{sm:"fyvr1vw",md:"fyvr1vx",lg:"fyvr1vy",xl:"fyvr1vz"},defaultClass:"fyvr1vw"},16:{conditions:{sm:"fyvr1w0",md:"fyvr1w1",lg:"fyvr1w2",xl:"fyvr1w3"},defaultClass:"fyvr1w0"},"0.25":{conditions:{sm:"fyvr1w4",md:"fyvr1w5",lg:"fyvr1w6",xl:"fyvr1w7"},defaultClass:"fyvr1w4"},"0.5":{conditions:{sm:"fyvr1w8",md:"fyvr1w9",lg:"fyvr1wa",xl:"fyvr1wb"},defaultClass:"fyvr1w8"},"1.5":{conditions:{sm:"fyvr1wc",md:"fyvr1wd",lg:"fyvr1we",xl:"fyvr1wf"},defaultClass:"fyvr1wc"}}},paddingLeft:{values:{0:{conditions:{sm:"fyvr1wg",md:"fyvr1wh",lg:"fyvr1wi",xl:"fyvr1wj"},defaultClass:"fyvr1wg"},1:{conditions:{sm:"fyvr1wk",md:"fyvr1wl",lg:"fyvr1wm",xl:"fyvr1wn"},defaultClass:"fyvr1wk"},2:{conditions:{sm:"fyvr1wo",md:"fyvr1wp",lg:"fyvr1wq",xl:"fyvr1wr"},defaultClass:"fyvr1wo"},3:{conditions:{sm:"fyvr1ws",md:"fyvr1wt",lg:"fyvr1wu",xl:"fyvr1wv"},defaultClass:"fyvr1ws"},4:{conditions:{sm:"fyvr1ww",md:"fyvr1wx",lg:"fyvr1wy",xl:"fyvr1wz"},defaultClass:"fyvr1ww"},5:{conditions:{sm:"fyvr1x0",md:"fyvr1x1",lg:"fyvr1x2",xl:"fyvr1x3"},defaultClass:"fyvr1x0"},6:{conditions:{sm:"fyvr1x4",md:"fyvr1x5",lg:"fyvr1x6",xl:"fyvr1x7"},defaultClass:"fyvr1x4"},7:{conditions:{sm:"fyvr1x8",md:"fyvr1x9",lg:"fyvr1xa",xl:"fyvr1xb"},defaultClass:"fyvr1x8"},8:{conditions:{sm:"fyvr1xc",md:"fyvr1xd",lg:"fyvr1xe",xl:"fyvr1xf"},defaultClass:"fyvr1xc"},9:{conditions:{sm:"fyvr1xg",md:"fyvr1xh",lg:"fyvr1xi",xl:"fyvr1xj"},defaultClass:"fyvr1xg"},10:{conditions:{sm:"fyvr1xk",md:"fyvr1xl",lg:"fyvr1xm",xl:"fyvr1xn"},defaultClass:"fyvr1xk"},12:{conditions:{sm:"fyvr1xo",md:"fyvr1xp",lg:"fyvr1xq",xl:"fyvr1xr"},defaultClass:"fyvr1xo"},14:{conditions:{sm:"fyvr1xs",md:"fyvr1xt",lg:"fyvr1xu",xl:"fyvr1xv"},defaultClass:"fyvr1xs"},16:{conditions:{sm:"fyvr1xw",md:"fyvr1xx",lg:"fyvr1xy",xl:"fyvr1xz"},defaultClass:"fyvr1xw"},"0.25":{conditions:{sm:"fyvr1y0",md:"fyvr1y1",lg:"fyvr1y2",xl:"fyvr1y3"},defaultClass:"fyvr1y0"},"0.5":{conditions:{sm:"fyvr1y4",md:"fyvr1y5",lg:"fyvr1y6",xl:"fyvr1y7"},defaultClass:"fyvr1y4"},"1.5":{conditions:{sm:"fyvr1y8",md:"fyvr1y9",lg:"fyvr1ya",xl:"fyvr1yb"},defaultClass:"fyvr1y8"}}},paddingRight:{values:{0:{conditions:{sm:"fyvr1yc",md:"fyvr1yd",lg:"fyvr1ye",xl:"fyvr1yf"},defaultClass:"fyvr1yc"},1:{conditions:{sm:"fyvr1yg",md:"fyvr1yh",lg:"fyvr1yi",xl:"fyvr1yj"},defaultClass:"fyvr1yg"},2:{conditions:{sm:"fyvr1yk",md:"fyvr1yl",lg:"fyvr1ym",xl:"fyvr1yn"},defaultClass:"fyvr1yk"},3:{conditions:{sm:"fyvr1yo",md:"fyvr1yp",lg:"fyvr1yq",xl:"fyvr1yr"},defaultClass:"fyvr1yo"},4:{conditions:{sm:"fyvr1ys",md:"fyvr1yt",lg:"fyvr1yu",xl:"fyvr1yv"},defaultClass:"fyvr1ys"},5:{conditions:{sm:"fyvr1yw",md:"fyvr1yx",lg:"fyvr1yy",xl:"fyvr1yz"},defaultClass:"fyvr1yw"},6:{conditions:{sm:"fyvr1z0",md:"fyvr1z1",lg:"fyvr1z2",xl:"fyvr1z3"},defaultClass:"fyvr1z0"},7:{conditions:{sm:"fyvr1z4",md:"fyvr1z5",lg:"fyvr1z6",xl:"fyvr1z7"},defaultClass:"fyvr1z4"},8:{conditions:{sm:"fyvr1z8",md:"fyvr1z9",lg:"fyvr1za",xl:"fyvr1zb"},defaultClass:"fyvr1z8"},9:{conditions:{sm:"fyvr1zc",md:"fyvr1zd",lg:"fyvr1ze",xl:"fyvr1zf"},defaultClass:"fyvr1zc"},10:{conditions:{sm:"fyvr1zg",md:"fyvr1zh",lg:"fyvr1zi",xl:"fyvr1zj"},defaultClass:"fyvr1zg"},12:{conditions:{sm:"fyvr1zk",md:"fyvr1zl",lg:"fyvr1zm",xl:"fyvr1zn"},defaultClass:"fyvr1zk"},14:{conditions:{sm:"fyvr1zo",md:"fyvr1zp",lg:"fyvr1zq",xl:"fyvr1zr"},defaultClass:"fyvr1zo"},16:{conditions:{sm:"fyvr1zs",md:"fyvr1zt",lg:"fyvr1zu",xl:"fyvr1zv"},defaultClass:"fyvr1zs"},"0.25":{conditions:{sm:"fyvr1zw",md:"fyvr1zx",lg:"fyvr1zy",xl:"fyvr1zz"},defaultClass:"fyvr1zw"},"0.5":{conditions:{sm:"fyvr1100",md:"fyvr1101",lg:"fyvr1102",xl:"fyvr1103"},defaultClass:"fyvr1100"},"1.5":{conditions:{sm:"fyvr1104",md:"fyvr1105",lg:"fyvr1106",xl:"fyvr1107"},defaultClass:"fyvr1104"}}},marginTop:{values:{0:{conditions:{sm:"fyvr1108",md:"fyvr1109",lg:"fyvr110a",xl:"fyvr110b"},defaultClass:"fyvr1108"},1:{conditions:{sm:"fyvr110c",md:"fyvr110d",lg:"fyvr110e",xl:"fyvr110f"},defaultClass:"fyvr110c"},2:{conditions:{sm:"fyvr110g",md:"fyvr110h",lg:"fyvr110i",xl:"fyvr110j"},defaultClass:"fyvr110g"},3:{conditions:{sm:"fyvr110k",md:"fyvr110l",lg:"fyvr110m",xl:"fyvr110n"},defaultClass:"fyvr110k"},4:{conditions:{sm:"fyvr110o",md:"fyvr110p",lg:"fyvr110q",xl:"fyvr110r"},defaultClass:"fyvr110o"},5:{conditions:{sm:"fyvr110s",md:"fyvr110t",lg:"fyvr110u",xl:"fyvr110v"},defaultClass:"fyvr110s"},6:{conditions:{sm:"fyvr110w",md:"fyvr110x",lg:"fyvr110y",xl:"fyvr110z"},defaultClass:"fyvr110w"},7:{conditions:{sm:"fyvr1110",md:"fyvr1111",lg:"fyvr1112",xl:"fyvr1113"},defaultClass:"fyvr1110"},8:{conditions:{sm:"fyvr1114",md:"fyvr1115",lg:"fyvr1116",xl:"fyvr1117"},defaultClass:"fyvr1114"},9:{conditions:{sm:"fyvr1118",md:"fyvr1119",lg:"fyvr111a",xl:"fyvr111b"},defaultClass:"fyvr1118"},10:{conditions:{sm:"fyvr111c",md:"fyvr111d",lg:"fyvr111e",xl:"fyvr111f"},defaultClass:"fyvr111c"},12:{conditions:{sm:"fyvr111g",md:"fyvr111h",lg:"fyvr111i",xl:"fyvr111j"},defaultClass:"fyvr111g"},14:{conditions:{sm:"fyvr111k",md:"fyvr111l",lg:"fyvr111m",xl:"fyvr111n"},defaultClass:"fyvr111k"},16:{conditions:{sm:"fyvr111o",md:"fyvr111p",lg:"fyvr111q",xl:"fyvr111r"},defaultClass:"fyvr111o"},"0.25":{conditions:{sm:"fyvr111s",md:"fyvr111t",lg:"fyvr111u",xl:"fyvr111v"},defaultClass:"fyvr111s"},"0.5":{conditions:{sm:"fyvr111w",md:"fyvr111x",lg:"fyvr111y",xl:"fyvr111z"},defaultClass:"fyvr111w"},"1.5":{conditions:{sm:"fyvr1120",md:"fyvr1121",lg:"fyvr1122",xl:"fyvr1123"},defaultClass:"fyvr1120"},auto:{conditions:{sm:"fyvr1124",md:"fyvr1125",lg:"fyvr1126",xl:"fyvr1127"},defaultClass:"fyvr1124"}}},marginBottom:{values:{0:{conditions:{sm:"fyvr1128",md:"fyvr1129",lg:"fyvr112a",xl:"fyvr112b"},defaultClass:"fyvr1128"},1:{conditions:{sm:"fyvr112c",md:"fyvr112d",lg:"fyvr112e",xl:"fyvr112f"},defaultClass:"fyvr112c"},2:{conditions:{sm:"fyvr112g",md:"fyvr112h",lg:"fyvr112i",xl:"fyvr112j"},defaultClass:"fyvr112g"},3:{conditions:{sm:"fyvr112k",md:"fyvr112l",lg:"fyvr112m",xl:"fyvr112n"},defaultClass:"fyvr112k"},4:{conditions:{sm:"fyvr112o",md:"fyvr112p",lg:"fyvr112q",xl:"fyvr112r"},defaultClass:"fyvr112o"},5:{conditions:{sm:"fyvr112s",md:"fyvr112t",lg:"fyvr112u",xl:"fyvr112v"},defaultClass:"fyvr112s"},6:{conditions:{sm:"fyvr112w",md:"fyvr112x",lg:"fyvr112y",xl:"fyvr112z"},defaultClass:"fyvr112w"},7:{conditions:{sm:"fyvr1130",md:"fyvr1131",lg:"fyvr1132",xl:"fyvr1133"},defaultClass:"fyvr1130"},8:{conditions:{sm:"fyvr1134",md:"fyvr1135",lg:"fyvr1136",xl:"fyvr1137"},defaultClass:"fyvr1134"},9:{conditions:{sm:"fyvr1138",md:"fyvr1139",lg:"fyvr113a",xl:"fyvr113b"},defaultClass:"fyvr1138"},10:{conditions:{sm:"fyvr113c",md:"fyvr113d",lg:"fyvr113e",xl:"fyvr113f"},defaultClass:"fyvr113c"},12:{conditions:{sm:"fyvr113g",md:"fyvr113h",lg:"fyvr113i",xl:"fyvr113j"},defaultClass:"fyvr113g"},14:{conditions:{sm:"fyvr113k",md:"fyvr113l",lg:"fyvr113m",xl:"fyvr113n"},defaultClass:"fyvr113k"},16:{conditions:{sm:"fyvr113o",md:"fyvr113p",lg:"fyvr113q",xl:"fyvr113r"},defaultClass:"fyvr113o"},"0.25":{conditions:{sm:"fyvr113s",md:"fyvr113t",lg:"fyvr113u",xl:"fyvr113v"},defaultClass:"fyvr113s"},"0.5":{conditions:{sm:"fyvr113w",md:"fyvr113x",lg:"fyvr113y",xl:"fyvr113z"},defaultClass:"fyvr113w"},"1.5":{conditions:{sm:"fyvr1140",md:"fyvr1141",lg:"fyvr1142",xl:"fyvr1143"},defaultClass:"fyvr1140"},auto:{conditions:{sm:"fyvr1144",md:"fyvr1145",lg:"fyvr1146",xl:"fyvr1147"},defaultClass:"fyvr1144"}}},marginLeft:{values:{0:{conditions:{sm:"fyvr1148",md:"fyvr1149",lg:"fyvr114a",xl:"fyvr114b"},defaultClass:"fyvr1148"},1:{conditions:{sm:"fyvr114c",md:"fyvr114d",lg:"fyvr114e",xl:"fyvr114f"},defaultClass:"fyvr114c"},2:{conditions:{sm:"fyvr114g",md:"fyvr114h",lg:"fyvr114i",xl:"fyvr114j"},defaultClass:"fyvr114g"},3:{conditions:{sm:"fyvr114k",md:"fyvr114l",lg:"fyvr114m",xl:"fyvr114n"},defaultClass:"fyvr114k"},4:{conditions:{sm:"fyvr114o",md:"fyvr114p",lg:"fyvr114q",xl:"fyvr114r"},defaultClass:"fyvr114o"},5:{conditions:{sm:"fyvr114s",md:"fyvr114t",lg:"fyvr114u",xl:"fyvr114v"},defaultClass:"fyvr114s"},6:{conditions:{sm:"fyvr114w",md:"fyvr114x",lg:"fyvr114y",xl:"fyvr114z"},defaultClass:"fyvr114w"},7:{conditions:{sm:"fyvr1150",md:"fyvr1151",lg:"fyvr1152",xl:"fyvr1153"},defaultClass:"fyvr1150"},8:{conditions:{sm:"fyvr1154",md:"fyvr1155",lg:"fyvr1156",xl:"fyvr1157"},defaultClass:"fyvr1154"},9:{conditions:{sm:"fyvr1158",md:"fyvr1159",lg:"fyvr115a",xl:"fyvr115b"},defaultClass:"fyvr1158"},10:{conditions:{sm:"fyvr115c",md:"fyvr115d",lg:"fyvr115e",xl:"fyvr115f"},defaultClass:"fyvr115c"},12:{conditions:{sm:"fyvr115g",md:"fyvr115h",lg:"fyvr115i",xl:"fyvr115j"},defaultClass:"fyvr115g"},14:{conditions:{sm:"fyvr115k",md:"fyvr115l",lg:"fyvr115m",xl:"fyvr115n"},defaultClass:"fyvr115k"},16:{conditions:{sm:"fyvr115o",md:"fyvr115p",lg:"fyvr115q",xl:"fyvr115r"},defaultClass:"fyvr115o"},"0.25":{conditions:{sm:"fyvr115s",md:"fyvr115t",lg:"fyvr115u",xl:"fyvr115v"},defaultClass:"fyvr115s"},"0.5":{conditions:{sm:"fyvr115w",md:"fyvr115x",lg:"fyvr115y",xl:"fyvr115z"},defaultClass:"fyvr115w"},"1.5":{conditions:{sm:"fyvr1160",md:"fyvr1161",lg:"fyvr1162",xl:"fyvr1163"},defaultClass:"fyvr1160"},auto:{conditions:{sm:"fyvr1164",md:"fyvr1165",lg:"fyvr1166",xl:"fyvr1167"},defaultClass:"fyvr1164"}}},marginRight:{values:{0:{conditions:{sm:"fyvr1168",md:"fyvr1169",lg:"fyvr116a",xl:"fyvr116b"},defaultClass:"fyvr1168"},1:{conditions:{sm:"fyvr116c",md:"fyvr116d",lg:"fyvr116e",xl:"fyvr116f"},defaultClass:"fyvr116c"},2:{conditions:{sm:"fyvr116g",md:"fyvr116h",lg:"fyvr116i",xl:"fyvr116j"},defaultClass:"fyvr116g"},3:{conditions:{sm:"fyvr116k",md:"fyvr116l",lg:"fyvr116m",xl:"fyvr116n"},defaultClass:"fyvr116k"},4:{conditions:{sm:"fyvr116o",md:"fyvr116p",lg:"fyvr116q",xl:"fyvr116r"},defaultClass:"fyvr116o"},5:{conditions:{sm:"fyvr116s",md:"fyvr116t",lg:"fyvr116u",xl:"fyvr116v"},defaultClass:"fyvr116s"},6:{conditions:{sm:"fyvr116w",md:"fyvr116x",lg:"fyvr116y",xl:"fyvr116z"},defaultClass:"fyvr116w"},7:{conditions:{sm:"fyvr1170",md:"fyvr1171",lg:"fyvr1172",xl:"fyvr1173"},defaultClass:"fyvr1170"},8:{conditions:{sm:"fyvr1174",md:"fyvr1175",lg:"fyvr1176",xl:"fyvr1177"},defaultClass:"fyvr1174"},9:{conditions:{sm:"fyvr1178",md:"fyvr1179",lg:"fyvr117a",xl:"fyvr117b"},defaultClass:"fyvr1178"},10:{conditions:{sm:"fyvr117c",md:"fyvr117d",lg:"fyvr117e",xl:"fyvr117f"},defaultClass:"fyvr117c"},12:{conditions:{sm:"fyvr117g",md:"fyvr117h",lg:"fyvr117i",xl:"fyvr117j"},defaultClass:"fyvr117g"},14:{conditions:{sm:"fyvr117k",md:"fyvr117l",lg:"fyvr117m",xl:"fyvr117n"},defaultClass:"fyvr117k"},16:{conditions:{sm:"fyvr117o",md:"fyvr117p",lg:"fyvr117q",xl:"fyvr117r"},defaultClass:"fyvr117o"},"0.25":{conditions:{sm:"fyvr117s",md:"fyvr117t",lg:"fyvr117u",xl:"fyvr117v"},defaultClass:"fyvr117s"},"0.5":{conditions:{sm:"fyvr117w",md:"fyvr117x",lg:"fyvr117y",xl:"fyvr117z"},defaultClass:"fyvr117w"},"1.5":{conditions:{sm:"fyvr1180",md:"fyvr1181",lg:"fyvr1182",xl:"fyvr1183"},defaultClass:"fyvr1180"},auto:{conditions:{sm:"fyvr1184",md:"fyvr1185",lg:"fyvr1186",xl:"fyvr1187"},defaultClass:"fyvr1184"}}},gap:{values:{0:{conditions:{sm:"fyvr1188",md:"fyvr1189",lg:"fyvr118a",xl:"fyvr118b"},defaultClass:"fyvr1188"},1:{conditions:{sm:"fyvr118c",md:"fyvr118d",lg:"fyvr118e",xl:"fyvr118f"},defaultClass:"fyvr118c"},2:{conditions:{sm:"fyvr118g",md:"fyvr118h",lg:"fyvr118i",xl:"fyvr118j"},defaultClass:"fyvr118g"},3:{conditions:{sm:"fyvr118k",md:"fyvr118l",lg:"fyvr118m",xl:"fyvr118n"},defaultClass:"fyvr118k"},4:{conditions:{sm:"fyvr118o",md:"fyvr118p",lg:"fyvr118q",xl:"fyvr118r"},defaultClass:"fyvr118o"},5:{conditions:{sm:"fyvr118s",md:"fyvr118t",lg:"fyvr118u",xl:"fyvr118v"},defaultClass:"fyvr118s"},6:{conditions:{sm:"fyvr118w",md:"fyvr118x",lg:"fyvr118y",xl:"fyvr118z"},defaultClass:"fyvr118w"},7:{conditions:{sm:"fyvr1190",md:"fyvr1191",lg:"fyvr1192",xl:"fyvr1193"},defaultClass:"fyvr1190"},8:{conditions:{sm:"fyvr1194",md:"fyvr1195",lg:"fyvr1196",xl:"fyvr1197"},defaultClass:"fyvr1194"},9:{conditions:{sm:"fyvr1198",md:"fyvr1199",lg:"fyvr119a",xl:"fyvr119b"},defaultClass:"fyvr1198"},10:{conditions:{sm:"fyvr119c",md:"fyvr119d",lg:"fyvr119e",xl:"fyvr119f"},defaultClass:"fyvr119c"},12:{conditions:{sm:"fyvr119g",md:"fyvr119h",lg:"fyvr119i",xl:"fyvr119j"},defaultClass:"fyvr119g"},14:{conditions:{sm:"fyvr119k",md:"fyvr119l",lg:"fyvr119m",xl:"fyvr119n"},defaultClass:"fyvr119k"},16:{conditions:{sm:"fyvr119o",md:"fyvr119p",lg:"fyvr119q",xl:"fyvr119r"},defaultClass:"fyvr119o"},"0.25":{conditions:{sm:"fyvr119s",md:"fyvr119t",lg:"fyvr119u",xl:"fyvr119v"},defaultClass:"fyvr119s"},"0.5":{conditions:{sm:"fyvr119w",md:"fyvr119x",lg:"fyvr119y",xl:"fyvr119z"},defaultClass:"fyvr119w"},"1.5":{conditions:{sm:"fyvr11a0",md:"fyvr11a1",lg:"fyvr11a2",xl:"fyvr11a3"},defaultClass:"fyvr11a0"}}},borderBottomWidth:{values:{none:{conditions:{sm:"fyvr11a4",md:"fyvr11a5",lg:"fyvr11a6",xl:"fyvr11a7"},defaultClass:"fyvr11a4"},thin:{conditions:{sm:"fyvr11a8",md:"fyvr11a9",lg:"fyvr11aa",xl:"fyvr11ab"},defaultClass:"fyvr11a8"},thick:{conditions:{sm:"fyvr11ac",md:"fyvr11ad",lg:"fyvr11ae",xl:"fyvr11af"},defaultClass:"fyvr11ac"}}},borderLeftWidth:{values:{none:{conditions:{sm:"fyvr11ag",md:"fyvr11ah",lg:"fyvr11ai",xl:"fyvr11aj"},defaultClass:"fyvr11ag"},thin:{conditions:{sm:"fyvr11ak",md:"fyvr11al",lg:"fyvr11am",xl:"fyvr11an"},defaultClass:"fyvr11ak"},thick:{conditions:{sm:"fyvr11ao",md:"fyvr11ap",lg:"fyvr11aq",xl:"fyvr11ar"},defaultClass:"fyvr11ao"}}},borderRightWidth:{values:{none:{conditions:{sm:"fyvr11as",md:"fyvr11at",lg:"fyvr11au",xl:"fyvr11av"},defaultClass:"fyvr11as"},thin:{conditions:{sm:"fyvr11aw",md:"fyvr11ax",lg:"fyvr11ay",xl:"fyvr11az"},defaultClass:"fyvr11aw"},thick:{conditions:{sm:"fyvr11b0",md:"fyvr11b1",lg:"fyvr11b2",xl:"fyvr11b3"},defaultClass:"fyvr11b0"}}},borderTopWidth:{values:{none:{conditions:{sm:"fyvr11b4",md:"fyvr11b5",lg:"fyvr11b6",xl:"fyvr11b7"},defaultClass:"fyvr11b4"},thin:{conditions:{sm:"fyvr11b8",md:"fyvr11b9",lg:"fyvr11ba",xl:"fyvr11bb"},defaultClass:"fyvr11b8"},thick:{conditions:{sm:"fyvr11bc",md:"fyvr11bd",lg:"fyvr11be",xl:"fyvr11bf"},defaultClass:"fyvr11bc"}}},borderBottomLeftRadius:{values:{none:{conditions:{sm:"fyvr11bg",md:"fyvr11bh",lg:"fyvr11bi",xl:"fyvr11bj"},defaultClass:"fyvr11bg"},xs:{conditions:{sm:"fyvr11bk",md:"fyvr11bl",lg:"fyvr11bm",xl:"fyvr11bn"},defaultClass:"fyvr11bk"},sm:{conditions:{sm:"fyvr11bo",md:"fyvr11bp",lg:"fyvr11bq",xl:"fyvr11br"},defaultClass:"fyvr11bo"},md:{conditions:{sm:"fyvr11bs",md:"fyvr11bt",lg:"fyvr11bu",xl:"fyvr11bv"},defaultClass:"fyvr11bs"},lg:{conditions:{sm:"fyvr11bw",md:"fyvr11bx",lg:"fyvr11by",xl:"fyvr11bz"},defaultClass:"fyvr11bw"},circle:{conditions:{sm:"fyvr11c0",md:"fyvr11c1",lg:"fyvr11c2",xl:"fyvr11c3"},defaultClass:"fyvr11c0"}}},borderBottomRightRadius:{values:{none:{conditions:{sm:"fyvr11c4",md:"fyvr11c5",lg:"fyvr11c6",xl:"fyvr11c7"},defaultClass:"fyvr11c4"},xs:{conditions:{sm:"fyvr11c8",md:"fyvr11c9",lg:"fyvr11ca",xl:"fyvr11cb"},defaultClass:"fyvr11c8"},sm:{conditions:{sm:"fyvr11cc",md:"fyvr11cd",lg:"fyvr11ce",xl:"fyvr11cf"},defaultClass:"fyvr11cc"},md:{conditions:{sm:"fyvr11cg",md:"fyvr11ch",lg:"fyvr11ci",xl:"fyvr11cj"},defaultClass:"fyvr11cg"},lg:{conditions:{sm:"fyvr11ck",md:"fyvr11cl",lg:"fyvr11cm",xl:"fyvr11cn"},defaultClass:"fyvr11ck"},circle:{conditions:{sm:"fyvr11co",md:"fyvr11cp",lg:"fyvr11cq",xl:"fyvr11cr"},defaultClass:"fyvr11co"}}},borderTopLeftRadius:{values:{none:{conditions:{sm:"fyvr11cs",md:"fyvr11ct",lg:"fyvr11cu",xl:"fyvr11cv"},defaultClass:"fyvr11cs"},xs:{conditions:{sm:"fyvr11cw",md:"fyvr11cx",lg:"fyvr11cy",xl:"fyvr11cz"},defaultClass:"fyvr11cw"},sm:{conditions:{sm:"fyvr11d0",md:"fyvr11d1",lg:"fyvr11d2",xl:"fyvr11d3"},defaultClass:"fyvr11d0"},md:{conditions:{sm:"fyvr11d4",md:"fyvr11d5",lg:"fyvr11d6",xl:"fyvr11d7"},defaultClass:"fyvr11d4"},lg:{conditions:{sm:"fyvr11d8",md:"fyvr11d9",lg:"fyvr11da",xl:"fyvr11db"},defaultClass:"fyvr11d8"},circle:{conditions:{sm:"fyvr11dc",md:"fyvr11dd",lg:"fyvr11de",xl:"fyvr11df"},defaultClass:"fyvr11dc"}}},borderTopRightRadius:{values:{none:{conditions:{sm:"fyvr11dg",md:"fyvr11dh",lg:"fyvr11di",xl:"fyvr11dj"},defaultClass:"fyvr11dg"},xs:{conditions:{sm:"fyvr11dk",md:"fyvr11dl",lg:"fyvr11dm",xl:"fyvr11dn"},defaultClass:"fyvr11dk"},sm:{conditions:{sm:"fyvr11do",md:"fyvr11dp",lg:"fyvr11dq",xl:"fyvr11dr"},defaultClass:"fyvr11do"},md:{conditions:{sm:"fyvr11ds",md:"fyvr11dt",lg:"fyvr11du",xl:"fyvr11dv"},defaultClass:"fyvr11ds"},lg:{conditions:{sm:"fyvr11dw",md:"fyvr11dx",lg:"fyvr11dy",xl:"fyvr11dz"},defaultClass:"fyvr11dw"},circle:{conditions:{sm:"fyvr11e0",md:"fyvr11e1",lg:"fyvr11e2",xl:"fyvr11e3"},defaultClass:"fyvr11e0"}}},fontSize:{values:{inherit:{conditions:{sm:"fyvr11e4",md:"fyvr11e5",lg:"fyvr11e6",xl:"fyvr11e7"},defaultClass:"fyvr11e4"},xsmall:{conditions:{sm:"fyvr11e8",md:"fyvr11e9",lg:"fyvr11ea",xl:"fyvr11eb"},defaultClass:"fyvr11e8"},small:{conditions:{sm:"fyvr11ec",md:"fyvr11ed",lg:"fyvr11ee",xl:"fyvr11ef"},defaultClass:"fyvr11ec"},normal:{conditions:{sm:"fyvr11eg",md:"fyvr11eh",lg:"fyvr11ei",xl:"fyvr11ej"},defaultClass:"fyvr11eg"},medium:{conditions:{sm:"fyvr11ek",md:"fyvr11el",lg:"fyvr11em",xl:"fyvr11en"},defaultClass:"fyvr11ek"},large:{conditions:{sm:"fyvr11eo",md:"fyvr11ep",lg:"fyvr11eq",xl:"fyvr11er"},defaultClass:"fyvr11eo"},xlarge:{conditions:{sm:"fyvr11es",md:"fyvr11et",lg:"fyvr11eu",xl:"fyvr11ev"},defaultClass:"fyvr11es"}}},fontWeight:{values:{inherit:{conditions:{sm:"fyvr11ew",md:"fyvr11ex",lg:"fyvr11ey",xl:"fyvr11ez"},defaultClass:"fyvr11ew"},normal:{conditions:{sm:"fyvr11f0",md:"fyvr11f1",lg:"fyvr11f2",xl:"fyvr11f3"},defaultClass:"fyvr11f0"},medium:{conditions:{sm:"fyvr11f4",md:"fyvr11f5",lg:"fyvr11f6",xl:"fyvr11f7"},defaultClass:"fyvr11f4"},semibold:{conditions:{sm:"fyvr11f8",md:"fyvr11f9",lg:"fyvr11fa",xl:"fyvr11fb"},defaultClass:"fyvr11f8"},bold:{conditions:{sm:"fyvr11fc",md:"fyvr11fd",lg:"fyvr11fe",xl:"fyvr11ff"},defaultClass:"fyvr11fc"}}},letterSpacing:{values:{inherit:{conditions:{sm:"fyvr11fg",md:"fyvr11fh",lg:"fyvr11fi",xl:"fyvr11fj"},defaultClass:"fyvr11fg"},none:{conditions:{sm:"fyvr11fk",md:"fyvr11fl",lg:"fyvr11fm",xl:"fyvr11fn"},defaultClass:"fyvr11fk"},normal:{conditions:{sm:"fyvr11fo",md:"fyvr11fp",lg:"fyvr11fq",xl:"fyvr11fr"},defaultClass:"fyvr11fo"},wide:{conditions:{sm:"fyvr11fs",md:"fyvr11ft",lg:"fyvr11fu",xl:"fyvr11fv"},defaultClass:"fyvr11fs"}}},lineHeight:{values:{4:{conditions:{sm:"fyvr11fw",md:"fyvr11fx",lg:"fyvr11fy",xl:"fyvr11fz"},defaultClass:"fyvr11fw"},5:{conditions:{sm:"fyvr11g0",md:"fyvr11g1",lg:"fyvr11g2",xl:"fyvr11g3"},defaultClass:"fyvr11g0"},6:{conditions:{sm:"fyvr11g4",md:"fyvr11g5",lg:"fyvr11g6",xl:"fyvr11g7"},defaultClass:"fyvr11g4"},7:{conditions:{sm:"fyvr11g8",md:"fyvr11g9",lg:"fyvr11ga",xl:"fyvr11gb"},defaultClass:"fyvr11g8"},9:{conditions:{sm:"fyvr11gc",md:"fyvr11gd",lg:"fyvr11ge",xl:"fyvr11gf"},defaultClass:"fyvr11gc"},inherit:{conditions:{sm:"fyvr11gg",md:"fyvr11gh",lg:"fyvr11gi",xl:"fyvr11gj"},defaultClass:"fyvr11gg"}}},textAlign:{values:{center:{conditions:{sm:"fyvr11gk",md:"fyvr11gl",lg:"fyvr11gm",xl:"fyvr11gn"},defaultClass:"fyvr11gk"},left:{conditions:{sm:"fyvr11go",md:"fyvr11gp",lg:"fyvr11gq",xl:"fyvr11gr"},defaultClass:"fyvr11go"},right:{conditions:{sm:"fyvr11gs",md:"fyvr11gt",lg:"fyvr11gu",xl:"fyvr11gv"},defaultClass:"fyvr11gs"}}},display:{values:{block:{conditions:{sm:"fyvr11gw",md:"fyvr11gx",lg:"fyvr11gy",xl:"fyvr11gz"},defaultClass:"fyvr11gw"},flex:{conditions:{sm:"fyvr11h0",md:"fyvr11h1",lg:"fyvr11h2",xl:"fyvr11h3"},defaultClass:"fyvr11h0"},grid:{conditions:{sm:"fyvr11h4",md:"fyvr11h5",lg:"fyvr11h6",xl:"fyvr11h7"},defaultClass:"fyvr11h4"},"inline-block":{conditions:{sm:"fyvr11h8",md:"fyvr11h9",lg:"fyvr11ha",xl:"fyvr11hb"},defaultClass:"fyvr11h8"},"inline-flex":{conditions:{sm:"fyvr11hc",md:"fyvr11hd",lg:"fyvr11he",xl:"fyvr11hf"},defaultClass:"fyvr11hc"},none:{conditions:{sm:"fyvr11hg",md:"fyvr11hh",lg:"fyvr11hi",xl:"fyvr11hj"},defaultClass:"fyvr11hg"},contents:{conditions:{sm:"fyvr11hk",md:"fyvr11hl",lg:"fyvr11hm",xl:"fyvr11hn"},defaultClass:"fyvr11hk"}}},position:{values:{absolute:{conditions:{sm:"fyvr11ho",md:"fyvr11hp",lg:"fyvr11hq",xl:"fyvr11hr"},defaultClass:"fyvr11ho"},fixed:{conditions:{sm:"fyvr11hs",md:"fyvr11ht",lg:"fyvr11hu",xl:"fyvr11hv"},defaultClass:"fyvr11hs"},relative:{conditions:{sm:"fyvr11hw",md:"fyvr11hx",lg:"fyvr11hy",xl:"fyvr11hz"},defaultClass:"fyvr11hw"},sticky:{conditions:{sm:"fyvr11i0",md:"fyvr11i1",lg:"fyvr11i2",xl:"fyvr11i3"},defaultClass:"fyvr11i0"}}},flexDirection:{values:{column:{conditions:{sm:"fyvr11i4",md:"fyvr11i5",lg:"fyvr11i6",xl:"fyvr11i7"},defaultClass:"fyvr11i4"},"column-reverse":{conditions:{sm:"fyvr11i8",md:"fyvr11i9",lg:"fyvr11ia",xl:"fyvr11ib"},defaultClass:"fyvr11i8"},row:{conditions:{sm:"fyvr11ic",md:"fyvr11id",lg:"fyvr11ie",xl:"fyvr11if"},defaultClass:"fyvr11ic"},"row-reverse":{conditions:{sm:"fyvr11ig",md:"fyvr11ih",lg:"fyvr11ii",xl:"fyvr11ij"},defaultClass:"fyvr11ig"}}},flexShrink:{values:{0:{conditions:{sm:"fyvr11ik",md:"fyvr11il",lg:"fyvr11im",xl:"fyvr11in"},defaultClass:"fyvr11ik"},1:{conditions:{sm:"fyvr11io",md:"fyvr11ip",lg:"fyvr11iq",xl:"fyvr11ir"},defaultClass:"fyvr11io"}}},flexGrow:{values:{0:{conditions:{sm:"fyvr11is",md:"fyvr11it",lg:"fyvr11iu",xl:"fyvr11iv"},defaultClass:"fyvr11is"},1:{conditions:{sm:"fyvr11iw",md:"fyvr11ix",lg:"fyvr11iy",xl:"fyvr11iz"},defaultClass:"fyvr11iw"}}},flexWrap:{values:{nowrap:{conditions:{sm:"fyvr11j0",md:"fyvr11j1",lg:"fyvr11j2",xl:"fyvr11j3"},defaultClass:"fyvr11j0"},wrap:{conditions:{sm:"fyvr11j4",md:"fyvr11j5",lg:"fyvr11j6",xl:"fyvr11j7"},defaultClass:"fyvr11j4"},"wrap-reverse":{conditions:{sm:"fyvr11j8",md:"fyvr11j9",lg:"fyvr11ja",xl:"fyvr11jb"},defaultClass:"fyvr11j8"}}},justifyContent:{values:{"flex-start":{conditions:{sm:"fyvr11jc",md:"fyvr11jd",lg:"fyvr11je",xl:"fyvr11jf"},defaultClass:"fyvr11jc"},center:{conditions:{sm:"fyvr11jg",md:"fyvr11jh",lg:"fyvr11ji",xl:"fyvr11jj"},defaultClass:"fyvr11jg"},"flex-end":{conditions:{sm:"fyvr11jk",md:"fyvr11jl",lg:"fyvr11jm",xl:"fyvr11jn"},defaultClass:"fyvr11jk"},stretch:{conditions:{sm:"fyvr11jo",md:"fyvr11jp",lg:"fyvr11jq",xl:"fyvr11jr"},defaultClass:"fyvr11jo"},"space-around":{conditions:{sm:"fyvr11js",md:"fyvr11jt",lg:"fyvr11ju",xl:"fyvr11jv"},defaultClass:"fyvr11js"},"space-between":{conditions:{sm:"fyvr11jw",md:"fyvr11jx",lg:"fyvr11jy",xl:"fyvr11jz"},defaultClass:"fyvr11jw"},"space-evenly":{conditions:{sm:"fyvr11k0",md:"fyvr11k1",lg:"fyvr11k2",xl:"fyvr11k3"},defaultClass:"fyvr11k0"}}},justifySelf:{values:{"flex-start":{conditions:{sm:"fyvr11k4",md:"fyvr11k5",lg:"fyvr11k6",xl:"fyvr11k7"},defaultClass:"fyvr11k4"},center:{conditions:{sm:"fyvr11k8",md:"fyvr11k9",lg:"fyvr11ka",xl:"fyvr11kb"},defaultClass:"fyvr11k8"},"flex-end":{conditions:{sm:"fyvr11kc",md:"fyvr11kd",lg:"fyvr11ke",xl:"fyvr11kf"},defaultClass:"fyvr11kc"},stretch:{conditions:{sm:"fyvr11kg",md:"fyvr11kh",lg:"fyvr11ki",xl:"fyvr11kj"},defaultClass:"fyvr11kg"}}},alignItems:{values:{"flex-start":{conditions:{sm:"fyvr11kk",md:"fyvr11kl",lg:"fyvr11km",xl:"fyvr11kn"},defaultClass:"fyvr11kk"},center:{conditions:{sm:"fyvr11ko",md:"fyvr11kp",lg:"fyvr11kq",xl:"fyvr11kr"},defaultClass:"fyvr11ko"},"flex-end":{conditions:{sm:"fyvr11ks",md:"fyvr11kt",lg:"fyvr11ku",xl:"fyvr11kv"},defaultClass:"fyvr11ks"},stretch:{conditions:{sm:"fyvr11kw",md:"fyvr11kx",lg:"fyvr11ky",xl:"fyvr11kz"},defaultClass:"fyvr11kw"},baseline:{conditions:{sm:"fyvr11l0",md:"fyvr11l1",lg:"fyvr11l2",xl:"fyvr11l3"},defaultClass:"fyvr11l0"}}},alignSelf:{values:{"flex-start":{conditions:{sm:"fyvr11l4",md:"fyvr11l5",lg:"fyvr11l6",xl:"fyvr11l7"},defaultClass:"fyvr11l4"},center:{conditions:{sm:"fyvr11l8",md:"fyvr11l9",lg:"fyvr11la",xl:"fyvr11lb"},defaultClass:"fyvr11l8"},"flex-end":{conditions:{sm:"fyvr11lc",md:"fyvr11ld",lg:"fyvr11le",xl:"fyvr11lf"},defaultClass:"fyvr11lc"},stretch:{conditions:{sm:"fyvr11lg",md:"fyvr11lh",lg:"fyvr11li",xl:"fyvr11lj"},defaultClass:"fyvr11lg"},baseline:{conditions:{sm:"fyvr11lk",md:"fyvr11ll",lg:"fyvr11lm",xl:"fyvr11ln"},defaultClass:"fyvr11lk"}}},overflowX:{values:{auto:{conditions:{sm:"fyvr11lo",md:"fyvr11lp",lg:"fyvr11lq",xl:"fyvr11lr"},defaultClass:"fyvr11lo"},hidden:{conditions:{sm:"fyvr11ls",md:"fyvr11lt",lg:"fyvr11lu",xl:"fyvr11lv"},defaultClass:"fyvr11ls"},scroll:{conditions:{sm:"fyvr11lw",md:"fyvr11lx",lg:"fyvr11ly",xl:"fyvr11lz"},defaultClass:"fyvr11lw"},visible:{conditions:{sm:"fyvr11m0",md:"fyvr11m1",lg:"fyvr11m2",xl:"fyvr11m3"},defaultClass:"fyvr11m0"}}},overflowY:{values:{auto:{conditions:{sm:"fyvr11m4",md:"fyvr11m5",lg:"fyvr11m6",xl:"fyvr11m7"},defaultClass:"fyvr11m4"},hidden:{conditions:{sm:"fyvr11m8",md:"fyvr11m9",lg:"fyvr11ma",xl:"fyvr11mb"},defaultClass:"fyvr11m8"},scroll:{conditions:{sm:"fyvr11mc",md:"fyvr11md",lg:"fyvr11me",xl:"fyvr11mf"},defaultClass:"fyvr11mc"},visible:{conditions:{sm:"fyvr11mg",md:"fyvr11mh",lg:"fyvr11mi",xl:"fyvr11mj"},defaultClass:"fyvr11mg"}}},visibility:{values:{hidden:{conditions:{sm:"fyvr11mk",md:"fyvr11ml",lg:"fyvr11mm",xl:"fyvr11mn"},defaultClass:"fyvr11mk"},visible:{conditions:{sm:"fyvr11mo",md:"fyvr11mp",lg:"fyvr11mq",xl:"fyvr11mr"},defaultClass:"fyvr11mo"}}}}},{conditions:void 0,styles:{backdropFilter:{values:{blur:{defaultClass:"fyvr11ms"},none:{defaultClass:"fyvr11mt"}}},fontFamily:{values:{inherit:{defaultClass:"fyvr11mu"},body:{defaultClass:"fyvr11mv"},mono:{defaultClass:"fyvr11mw"}}},textOverflow:{values:{ellipsis:{defaultClass:"fyvr11mx"},clip:{defaultClass:"fyvr11my"}}},textTransform:{values:{capitalize:{defaultClass:"fyvr11mz"},lowercase:{defaultClass:"fyvr11n0"},uppercase:{defaultClass:"fyvr11n1"}}},textDecoration:{values:{none:{defaultClass:"fyvr11n2"},underline:{defaultClass:"fyvr11n3"}}},userSelect:{values:{none:{defaultClass:"fyvr11n4"},text:{defaultClass:"fyvr11n5"},all:{defaultClass:"fyvr11n6"},auto:{defaultClass:"fyvr11n7"}}},whiteSpace:{values:{normal:{defaultClass:"fyvr11n8"},nowrap:{defaultClass:"fyvr11n9"},initial:{defaultClass:"fyvr11na"},inherit:{defaultClass:"fyvr11nb"}}},wordBreak:{values:{"break-word":{defaultClass:"fyvr11nc"}}},wordWrap:{values:{normal:{defaultClass:"fyvr11nd"},"break-word":{defaultClass:"fyvr11ne"},initial:{defaultClass:"fyvr11nf"},inherit:{defaultClass:"fyvr11ng"}}},zIndex:{values:{0:{defaultClass:"fyvr11nh"},1:{defaultClass:"fyvr11ni"},10:{defaultClass:"fyvr11nj"},20:{defaultClass:"fyvr11nk"},30:{defaultClass:"fyvr11nl"},40:{defaultClass:"fyvr11nm"},50:{defaultClass:"fyvr11nn"},"-1":{defaultClass:"fyvr11no"},auto:{defaultClass:"fyvr11np"}}},aspectRatio:{values:{"1/1":{defaultClass:"fyvr11nq"},"16/9":{defaultClass:"fyvr11nr"},"4/3":{defaultClass:"fyvr11ns"},"3/1":{defaultClass:"fyvr11nt"},auto:{defaultClass:"fyvr11nu"}}}}},{conditions:{defaultCondition:"base",conditionNames:["base","active","disabled","focus","hover","checked"],responsiveArray:void 0},styles:{borderColor:{mappings:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]},borderStyle:{mappings:["borderTopStyle","borderRightStyle","borderBottomStyle","borderLeftStyle"]},focusRing:{mappings:["boxShadow","outline"]},background:{values:{black:{conditions:{base:"fyvr11nv",active:"fyvr11nw",disabled:"fyvr11nx",focus:"fyvr11ny",hover:"fyvr11nz",checked:"fyvr11o0"},defaultClass:"fyvr11nv"},white:{conditions:{base:"fyvr11o1",active:"fyvr11o2",disabled:"fyvr11o3",focus:"fyvr11o4",hover:"fyvr11o5",checked:"fyvr11o6"},defaultClass:"fyvr11o1"},inherit:{conditions:{base:"fyvr11o7",active:"fyvr11o8",disabled:"fyvr11o9",focus:"fyvr11oa",hover:"fyvr11ob",checked:"fyvr11oc"},defaultClass:"fyvr11o7"},transparent:{conditions:{base:"fyvr11od",active:"fyvr11oe",disabled:"fyvr11of",focus:"fyvr11og",hover:"fyvr11oh",checked:"fyvr11oi"},defaultClass:"fyvr11od"},positive:{conditions:{base:"fyvr11oj",active:"fyvr11ok",disabled:"fyvr11ol",focus:"fyvr11om",hover:"fyvr11on",checked:"fyvr11oo"},defaultClass:"fyvr11oj"},negative:{conditions:{base:"fyvr11op",active:"fyvr11oq",disabled:"fyvr11or",focus:"fyvr11os",hover:"fyvr11ot",checked:"fyvr11ou"},defaultClass:"fyvr11op"},info:{conditions:{base:"fyvr11ov",active:"fyvr11ow",disabled:"fyvr11ox",focus:"fyvr11oy",hover:"fyvr11oz",checked:"fyvr11p0"},defaultClass:"fyvr11ov"},warning:{conditions:{base:"fyvr11p1",active:"fyvr11p2",disabled:"fyvr11p3",focus:"fyvr11p4",hover:"fyvr11p5",checked:"fyvr11p6"},defaultClass:"fyvr11p1"},gradientBackdrop:{conditions:{base:"fyvr11p7",active:"fyvr11p8",disabled:"fyvr11p9",focus:"fyvr11pa",hover:"fyvr11pb",checked:"fyvr11pc"},defaultClass:"fyvr11p7"},gradientPrimary:{conditions:{base:"fyvr11pd",active:"fyvr11pe",disabled:"fyvr11pf",focus:"fyvr11pg",hover:"fyvr11ph",checked:"fyvr11pi"},defaultClass:"fyvr11pd"},gradientSecondary:{conditions:{base:"fyvr11pj",active:"fyvr11pk",disabled:"fyvr11pl",focus:"fyvr11pm",hover:"fyvr11pn",checked:"fyvr11po"},defaultClass:"fyvr11pj"},arbitrumDark:{conditions:{base:"fyvr11pp",active:"fyvr11pq",disabled:"fyvr11pr",focus:"fyvr11ps",hover:"fyvr11pt",checked:"fyvr11pu"},defaultClass:"fyvr11pp"},arbitrumLight:{conditions:{base:"fyvr11pv",active:"fyvr11pw",disabled:"fyvr11px",focus:"fyvr11py",hover:"fyvr11pz",checked:"fyvr11q0"},defaultClass:"fyvr11pv"},avalanceDark:{conditions:{base:"fyvr11q1",active:"fyvr11q2",disabled:"fyvr11q3",focus:"fyvr11q4",hover:"fyvr11q5",checked:"fyvr11q6"},defaultClass:"fyvr11q1"},avalanceLight:{conditions:{base:"fyvr11q7",active:"fyvr11q8",disabled:"fyvr11q9",focus:"fyvr11qa",hover:"fyvr11qb",checked:"fyvr11qc"},defaultClass:"fyvr11q7"},bscDark:{conditions:{base:"fyvr11qd",active:"fyvr11qe",disabled:"fyvr11qf",focus:"fyvr11qg",hover:"fyvr11qh",checked:"fyvr11qi"},defaultClass:"fyvr11qd"},bscLight:{conditions:{base:"fyvr11qj",active:"fyvr11qk",disabled:"fyvr11ql",focus:"fyvr11qm",hover:"fyvr11qn",checked:"fyvr11qo"},defaultClass:"fyvr11qj"},ethereumDark:{conditions:{base:"fyvr11qp",active:"fyvr11qq",disabled:"fyvr11qr",focus:"fyvr11qs",hover:"fyvr11qt",checked:"fyvr11qu"},defaultClass:"fyvr11qp"},ethereumLight:{conditions:{base:"fyvr11qv",active:"fyvr11qw",disabled:"fyvr11qx",focus:"fyvr11qy",hover:"fyvr11qz",checked:"fyvr11r0"},defaultClass:"fyvr11qv"},gnosisDark:{conditions:{base:"fyvr11r1",active:"fyvr11r2",disabled:"fyvr11r3",focus:"fyvr11r4",hover:"fyvr11r5",checked:"fyvr11r6"},defaultClass:"fyvr11r1"},gnosisLight:{conditions:{base:"fyvr11r7",active:"fyvr11r8",disabled:"fyvr11r9",focus:"fyvr11ra",hover:"fyvr11rb",checked:"fyvr11rc"},defaultClass:"fyvr11r7"},polygonDark:{conditions:{base:"fyvr11rd",active:"fyvr11re",disabled:"fyvr11rf",focus:"fyvr11rg",hover:"fyvr11rh",checked:"fyvr11ri"},defaultClass:"fyvr11rd"},polygonLight:{conditions:{base:"fyvr11rj",active:"fyvr11rk",disabled:"fyvr11rl",focus:"fyvr11rm",hover:"fyvr11rn",checked:"fyvr11ro"},defaultClass:"fyvr11rj"},text100:{conditions:{base:"fyvr11rp",active:"fyvr11rq",disabled:"fyvr11rr",focus:"fyvr11rs",hover:"fyvr11rt",checked:"fyvr11ru"},defaultClass:"fyvr11rp"},text80:{conditions:{base:"fyvr11rv",active:"fyvr11rw",disabled:"fyvr11rx",focus:"fyvr11ry",hover:"fyvr11rz",checked:"fyvr11s0"},defaultClass:"fyvr11rv"},text50:{conditions:{base:"fyvr11s1",active:"fyvr11s2",disabled:"fyvr11s3",focus:"fyvr11s4",hover:"fyvr11s5",checked:"fyvr11s6"},defaultClass:"fyvr11s1"},textInverse100:{conditions:{base:"fyvr11s7",active:"fyvr11s8",disabled:"fyvr11s9",focus:"fyvr11sa",hover:"fyvr11sb",checked:"fyvr11sc"},defaultClass:"fyvr11s7"},backgroundPrimary:{conditions:{base:"fyvr11sd",active:"fyvr11se",disabled:"fyvr11sf",focus:"fyvr11sg",hover:"fyvr11sh",checked:"fyvr11si"},defaultClass:"fyvr11sd"},backgroundSecondary:{conditions:{base:"fyvr11sj",active:"fyvr11sk",disabled:"fyvr11sl",focus:"fyvr11sm",hover:"fyvr11sn",checked:"fyvr11so"},defaultClass:"fyvr11sj"},backgroundContrast:{conditions:{base:"fyvr11sp",active:"fyvr11sq",disabled:"fyvr11sr",focus:"fyvr11ss",hover:"fyvr11st",checked:"fyvr11su"},defaultClass:"fyvr11sp"},backgroundMuted:{conditions:{base:"fyvr11sv",active:"fyvr11sw",disabled:"fyvr11sx",focus:"fyvr11sy",hover:"fyvr11sz",checked:"fyvr11t0"},defaultClass:"fyvr11sv"},backgroundControl:{conditions:{base:"fyvr11t1",active:"fyvr11t2",disabled:"fyvr11t3",focus:"fyvr11t4",hover:"fyvr11t5",checked:"fyvr11t6"},defaultClass:"fyvr11t1"},backgroundInverse:{conditions:{base:"fyvr11t7",active:"fyvr11t8",disabled:"fyvr11t9",focus:"fyvr11ta",hover:"fyvr11tb",checked:"fyvr11tc"},defaultClass:"fyvr11t7"},backgroundBackdrop:{conditions:{base:"fyvr11td",active:"fyvr11te",disabled:"fyvr11tf",focus:"fyvr11tg",hover:"fyvr11th",checked:"fyvr11ti"},defaultClass:"fyvr11td"},backgroundOverlay:{conditions:{base:"fyvr11tj",active:"fyvr11tk",disabled:"fyvr11tl",focus:"fyvr11tm",hover:"fyvr11tn",checked:"fyvr11to"},defaultClass:"fyvr11tj"},backgroundRaised:{conditions:{base:"fyvr11tp",active:"fyvr11tq",disabled:"fyvr11tr",focus:"fyvr11ts",hover:"fyvr11tt",checked:"fyvr11tu"},defaultClass:"fyvr11tp"},buttonGlass:{conditions:{base:"fyvr11tv",active:"fyvr11tw",disabled:"fyvr11tx",focus:"fyvr11ty",hover:"fyvr11tz",checked:"fyvr11u0"},defaultClass:"fyvr11tv"},buttonEmphasis:{conditions:{base:"fyvr11u1",active:"fyvr11u2",disabled:"fyvr11u3",focus:"fyvr11u4",hover:"fyvr11u5",checked:"fyvr11u6"},defaultClass:"fyvr11u1"},buttonInverse:{conditions:{base:"fyvr11u7",active:"fyvr11u8",disabled:"fyvr11u9",focus:"fyvr11ua",hover:"fyvr11ub",checked:"fyvr11uc"},defaultClass:"fyvr11u7"},borderNormal:{conditions:{base:"fyvr11ud",active:"fyvr11ue",disabled:"fyvr11uf",focus:"fyvr11ug",hover:"fyvr11uh",checked:"fyvr11ui"},defaultClass:"fyvr11ud"},borderFocus:{conditions:{base:"fyvr11uj",active:"fyvr11uk",disabled:"fyvr11ul",focus:"fyvr11um",hover:"fyvr11un",checked:"fyvr11uo"},defaultClass:"fyvr11uj"}}},borderBottomColor:{values:{black:{conditions:{base:"fyvr11up",active:"fyvr11uq",disabled:"fyvr11ur",focus:"fyvr11us",hover:"fyvr11ut",checked:"fyvr11uu"},defaultClass:"fyvr11up"},white:{conditions:{base:"fyvr11uv",active:"fyvr11uw",disabled:"fyvr11ux",focus:"fyvr11uy",hover:"fyvr11uz",checked:"fyvr11v0"},defaultClass:"fyvr11uv"},inherit:{conditions:{base:"fyvr11v1",active:"fyvr11v2",disabled:"fyvr11v3",focus:"fyvr11v4",hover:"fyvr11v5",checked:"fyvr11v6"},defaultClass:"fyvr11v1"},transparent:{conditions:{base:"fyvr11v7",active:"fyvr11v8",disabled:"fyvr11v9",focus:"fyvr11va",hover:"fyvr11vb",checked:"fyvr11vc"},defaultClass:"fyvr11v7"},positive:{conditions:{base:"fyvr11vd",active:"fyvr11ve",disabled:"fyvr11vf",focus:"fyvr11vg",hover:"fyvr11vh",checked:"fyvr11vi"},defaultClass:"fyvr11vd"},negative:{conditions:{base:"fyvr11vj",active:"fyvr11vk",disabled:"fyvr11vl",focus:"fyvr11vm",hover:"fyvr11vn",checked:"fyvr11vo"},defaultClass:"fyvr11vj"},info:{conditions:{base:"fyvr11vp",active:"fyvr11vq",disabled:"fyvr11vr",focus:"fyvr11vs",hover:"fyvr11vt",checked:"fyvr11vu"},defaultClass:"fyvr11vp"},warning:{conditions:{base:"fyvr11vv",active:"fyvr11vw",disabled:"fyvr11vx",focus:"fyvr11vy",hover:"fyvr11vz",checked:"fyvr11w0"},defaultClass:"fyvr11vv"},gradientBackdrop:{conditions:{base:"fyvr11w1",active:"fyvr11w2",disabled:"fyvr11w3",focus:"fyvr11w4",hover:"fyvr11w5",checked:"fyvr11w6"},defaultClass:"fyvr11w1"},gradientPrimary:{conditions:{base:"fyvr11w7",active:"fyvr11w8",disabled:"fyvr11w9",focus:"fyvr11wa",hover:"fyvr11wb",checked:"fyvr11wc"},defaultClass:"fyvr11w7"},gradientSecondary:{conditions:{base:"fyvr11wd",active:"fyvr11we",disabled:"fyvr11wf",focus:"fyvr11wg",hover:"fyvr11wh",checked:"fyvr11wi"},defaultClass:"fyvr11wd"},arbitrumDark:{conditions:{base:"fyvr11wj",active:"fyvr11wk",disabled:"fyvr11wl",focus:"fyvr11wm",hover:"fyvr11wn",checked:"fyvr11wo"},defaultClass:"fyvr11wj"},arbitrumLight:{conditions:{base:"fyvr11wp",active:"fyvr11wq",disabled:"fyvr11wr",focus:"fyvr11ws",hover:"fyvr11wt",checked:"fyvr11wu"},defaultClass:"fyvr11wp"},avalanceDark:{conditions:{base:"fyvr11wv",active:"fyvr11ww",disabled:"fyvr11wx",focus:"fyvr11wy",hover:"fyvr11wz",checked:"fyvr11x0"},defaultClass:"fyvr11wv"},avalanceLight:{conditions:{base:"fyvr11x1",active:"fyvr11x2",disabled:"fyvr11x3",focus:"fyvr11x4",hover:"fyvr11x5",checked:"fyvr11x6"},defaultClass:"fyvr11x1"},bscDark:{conditions:{base:"fyvr11x7",active:"fyvr11x8",disabled:"fyvr11x9",focus:"fyvr11xa",hover:"fyvr11xb",checked:"fyvr11xc"},defaultClass:"fyvr11x7"},bscLight:{conditions:{base:"fyvr11xd",active:"fyvr11xe",disabled:"fyvr11xf",focus:"fyvr11xg",hover:"fyvr11xh",checked:"fyvr11xi"},defaultClass:"fyvr11xd"},ethereumDark:{conditions:{base:"fyvr11xj",active:"fyvr11xk",disabled:"fyvr11xl",focus:"fyvr11xm",hover:"fyvr11xn",checked:"fyvr11xo"},defaultClass:"fyvr11xj"},ethereumLight:{conditions:{base:"fyvr11xp",active:"fyvr11xq",disabled:"fyvr11xr",focus:"fyvr11xs",hover:"fyvr11xt",checked:"fyvr11xu"},defaultClass:"fyvr11xp"},gnosisDark:{conditions:{base:"fyvr11xv",active:"fyvr11xw",disabled:"fyvr11xx",focus:"fyvr11xy",hover:"fyvr11xz",checked:"fyvr11y0"},defaultClass:"fyvr11xv"},gnosisLight:{conditions:{base:"fyvr11y1",active:"fyvr11y2",disabled:"fyvr11y3",focus:"fyvr11y4",hover:"fyvr11y5",checked:"fyvr11y6"},defaultClass:"fyvr11y1"},polygonDark:{conditions:{base:"fyvr11y7",active:"fyvr11y8",disabled:"fyvr11y9",focus:"fyvr11ya",hover:"fyvr11yb",checked:"fyvr11yc"},defaultClass:"fyvr11y7"},polygonLight:{conditions:{base:"fyvr11yd",active:"fyvr11ye",disabled:"fyvr11yf",focus:"fyvr11yg",hover:"fyvr11yh",checked:"fyvr11yi"},defaultClass:"fyvr11yd"},text100:{conditions:{base:"fyvr11yj",active:"fyvr11yk",disabled:"fyvr11yl",focus:"fyvr11ym",hover:"fyvr11yn",checked:"fyvr11yo"},defaultClass:"fyvr11yj"},text80:{conditions:{base:"fyvr11yp",active:"fyvr11yq",disabled:"fyvr11yr",focus:"fyvr11ys",hover:"fyvr11yt",checked:"fyvr11yu"},defaultClass:"fyvr11yp"},text50:{conditions:{base:"fyvr11yv",active:"fyvr11yw",disabled:"fyvr11yx",focus:"fyvr11yy",hover:"fyvr11yz",checked:"fyvr11z0"},defaultClass:"fyvr11yv"},textInverse100:{conditions:{base:"fyvr11z1",active:"fyvr11z2",disabled:"fyvr11z3",focus:"fyvr11z4",hover:"fyvr11z5",checked:"fyvr11z6"},defaultClass:"fyvr11z1"},backgroundPrimary:{conditions:{base:"fyvr11z7",active:"fyvr11z8",disabled:"fyvr11z9",focus:"fyvr11za",hover:"fyvr11zb",checked:"fyvr11zc"},defaultClass:"fyvr11z7"},backgroundSecondary:{conditions:{base:"fyvr11zd",active:"fyvr11ze",disabled:"fyvr11zf",focus:"fyvr11zg",hover:"fyvr11zh",checked:"fyvr11zi"},defaultClass:"fyvr11zd"},backgroundContrast:{conditions:{base:"fyvr11zj",active:"fyvr11zk",disabled:"fyvr11zl",focus:"fyvr11zm",hover:"fyvr11zn",checked:"fyvr11zo"},defaultClass:"fyvr11zj"},backgroundMuted:{conditions:{base:"fyvr11zp",active:"fyvr11zq",disabled:"fyvr11zr",focus:"fyvr11zs",hover:"fyvr11zt",checked:"fyvr11zu"},defaultClass:"fyvr11zp"},backgroundControl:{conditions:{base:"fyvr11zv",active:"fyvr11zw",disabled:"fyvr11zx",focus:"fyvr11zy",hover:"fyvr11zz",checked:"fyvr1200"},defaultClass:"fyvr11zv"},backgroundInverse:{conditions:{base:"fyvr1201",active:"fyvr1202",disabled:"fyvr1203",focus:"fyvr1204",hover:"fyvr1205",checked:"fyvr1206"},defaultClass:"fyvr1201"},backgroundBackdrop:{conditions:{base:"fyvr1207",active:"fyvr1208",disabled:"fyvr1209",focus:"fyvr120a",hover:"fyvr120b",checked:"fyvr120c"},defaultClass:"fyvr1207"},backgroundOverlay:{conditions:{base:"fyvr120d",active:"fyvr120e",disabled:"fyvr120f",focus:"fyvr120g",hover:"fyvr120h",checked:"fyvr120i"},defaultClass:"fyvr120d"},backgroundRaised:{conditions:{base:"fyvr120j",active:"fyvr120k",disabled:"fyvr120l",focus:"fyvr120m",hover:"fyvr120n",checked:"fyvr120o"},defaultClass:"fyvr120j"},buttonGlass:{conditions:{base:"fyvr120p",active:"fyvr120q",disabled:"fyvr120r",focus:"fyvr120s",hover:"fyvr120t",checked:"fyvr120u"},defaultClass:"fyvr120p"},buttonEmphasis:{conditions:{base:"fyvr120v",active:"fyvr120w",disabled:"fyvr120x",focus:"fyvr120y",hover:"fyvr120z",checked:"fyvr1210"},defaultClass:"fyvr120v"},buttonInverse:{conditions:{base:"fyvr1211",active:"fyvr1212",disabled:"fyvr1213",focus:"fyvr1214",hover:"fyvr1215",checked:"fyvr1216"},defaultClass:"fyvr1211"},borderNormal:{conditions:{base:"fyvr1217",active:"fyvr1218",disabled:"fyvr1219",focus:"fyvr121a",hover:"fyvr121b",checked:"fyvr121c"},defaultClass:"fyvr1217"},borderFocus:{conditions:{base:"fyvr121d",active:"fyvr121e",disabled:"fyvr121f",focus:"fyvr121g",hover:"fyvr121h",checked:"fyvr121i"},defaultClass:"fyvr121d"}}},borderBottomStyle:{values:{solid:{conditions:{base:"fyvr121j",active:"fyvr121k",disabled:"fyvr121l",focus:"fyvr121m",hover:"fyvr121n",checked:"fyvr121o"},defaultClass:"fyvr121j"},dashed:{conditions:{base:"fyvr121p",active:"fyvr121q",disabled:"fyvr121r",focus:"fyvr121s",hover:"fyvr121t",checked:"fyvr121u"},defaultClass:"fyvr121p"},dotted:{conditions:{base:"fyvr121v",active:"fyvr121w",disabled:"fyvr121x",focus:"fyvr121y",hover:"fyvr121z",checked:"fyvr1220"},defaultClass:"fyvr121v"}}},borderLeftColor:{values:{black:{conditions:{base:"fyvr1221",active:"fyvr1222",disabled:"fyvr1223",focus:"fyvr1224",hover:"fyvr1225",checked:"fyvr1226"},defaultClass:"fyvr1221"},white:{conditions:{base:"fyvr1227",active:"fyvr1228",disabled:"fyvr1229",focus:"fyvr122a",hover:"fyvr122b",checked:"fyvr122c"},defaultClass:"fyvr1227"},inherit:{conditions:{base:"fyvr122d",active:"fyvr122e",disabled:"fyvr122f",focus:"fyvr122g",hover:"fyvr122h",checked:"fyvr122i"},defaultClass:"fyvr122d"},transparent:{conditions:{base:"fyvr122j",active:"fyvr122k",disabled:"fyvr122l",focus:"fyvr122m",hover:"fyvr122n",checked:"fyvr122o"},defaultClass:"fyvr122j"},positive:{conditions:{base:"fyvr122p",active:"fyvr122q",disabled:"fyvr122r",focus:"fyvr122s",hover:"fyvr122t",checked:"fyvr122u"},defaultClass:"fyvr122p"},negative:{conditions:{base:"fyvr122v",active:"fyvr122w",disabled:"fyvr122x",focus:"fyvr122y",hover:"fyvr122z",checked:"fyvr1230"},defaultClass:"fyvr122v"},info:{conditions:{base:"fyvr1231",active:"fyvr1232",disabled:"fyvr1233",focus:"fyvr1234",hover:"fyvr1235",checked:"fyvr1236"},defaultClass:"fyvr1231"},warning:{conditions:{base:"fyvr1237",active:"fyvr1238",disabled:"fyvr1239",focus:"fyvr123a",hover:"fyvr123b",checked:"fyvr123c"},defaultClass:"fyvr1237"},gradientBackdrop:{conditions:{base:"fyvr123d",active:"fyvr123e",disabled:"fyvr123f",focus:"fyvr123g",hover:"fyvr123h",checked:"fyvr123i"},defaultClass:"fyvr123d"},gradientPrimary:{conditions:{base:"fyvr123j",active:"fyvr123k",disabled:"fyvr123l",focus:"fyvr123m",hover:"fyvr123n",checked:"fyvr123o"},defaultClass:"fyvr123j"},gradientSecondary:{conditions:{base:"fyvr123p",active:"fyvr123q",disabled:"fyvr123r",focus:"fyvr123s",hover:"fyvr123t",checked:"fyvr123u"},defaultClass:"fyvr123p"},arbitrumDark:{conditions:{base:"fyvr123v",active:"fyvr123w",disabled:"fyvr123x",focus:"fyvr123y",hover:"fyvr123z",checked:"fyvr1240"},defaultClass:"fyvr123v"},arbitrumLight:{conditions:{base:"fyvr1241",active:"fyvr1242",disabled:"fyvr1243",focus:"fyvr1244",hover:"fyvr1245",checked:"fyvr1246"},defaultClass:"fyvr1241"},avalanceDark:{conditions:{base:"fyvr1247",active:"fyvr1248",disabled:"fyvr1249",focus:"fyvr124a",hover:"fyvr124b",checked:"fyvr124c"},defaultClass:"fyvr1247"},avalanceLight:{conditions:{base:"fyvr124d",active:"fyvr124e",disabled:"fyvr124f",focus:"fyvr124g",hover:"fyvr124h",checked:"fyvr124i"},defaultClass:"fyvr124d"},bscDark:{conditions:{base:"fyvr124j",active:"fyvr124k",disabled:"fyvr124l",focus:"fyvr124m",hover:"fyvr124n",checked:"fyvr124o"},defaultClass:"fyvr124j"},bscLight:{conditions:{base:"fyvr124p",active:"fyvr124q",disabled:"fyvr124r",focus:"fyvr124s",hover:"fyvr124t",checked:"fyvr124u"},defaultClass:"fyvr124p"},ethereumDark:{conditions:{base:"fyvr124v",active:"fyvr124w",disabled:"fyvr124x",focus:"fyvr124y",hover:"fyvr124z",checked:"fyvr1250"},defaultClass:"fyvr124v"},ethereumLight:{conditions:{base:"fyvr1251",active:"fyvr1252",disabled:"fyvr1253",focus:"fyvr1254",hover:"fyvr1255",checked:"fyvr1256"},defaultClass:"fyvr1251"},gnosisDark:{conditions:{base:"fyvr1257",active:"fyvr1258",disabled:"fyvr1259",focus:"fyvr125a",hover:"fyvr125b",checked:"fyvr125c"},defaultClass:"fyvr1257"},gnosisLight:{conditions:{base:"fyvr125d",active:"fyvr125e",disabled:"fyvr125f",focus:"fyvr125g",hover:"fyvr125h",checked:"fyvr125i"},defaultClass:"fyvr125d"},polygonDark:{conditions:{base:"fyvr125j",active:"fyvr125k",disabled:"fyvr125l",focus:"fyvr125m",hover:"fyvr125n",checked:"fyvr125o"},defaultClass:"fyvr125j"},polygonLight:{conditions:{base:"fyvr125p",active:"fyvr125q",disabled:"fyvr125r",focus:"fyvr125s",hover:"fyvr125t",checked:"fyvr125u"},defaultClass:"fyvr125p"},text100:{conditions:{base:"fyvr125v",active:"fyvr125w",disabled:"fyvr125x",focus:"fyvr125y",hover:"fyvr125z",checked:"fyvr1260"},defaultClass:"fyvr125v"},text80:{conditions:{base:"fyvr1261",active:"fyvr1262",disabled:"fyvr1263",focus:"fyvr1264",hover:"fyvr1265",checked:"fyvr1266"},defaultClass:"fyvr1261"},text50:{conditions:{base:"fyvr1267",active:"fyvr1268",disabled:"fyvr1269",focus:"fyvr126a",hover:"fyvr126b",checked:"fyvr126c"},defaultClass:"fyvr1267"},textInverse100:{conditions:{base:"fyvr126d",active:"fyvr126e",disabled:"fyvr126f",focus:"fyvr126g",hover:"fyvr126h",checked:"fyvr126i"},defaultClass:"fyvr126d"},backgroundPrimary:{conditions:{base:"fyvr126j",active:"fyvr126k",disabled:"fyvr126l",focus:"fyvr126m",hover:"fyvr126n",checked:"fyvr126o"},defaultClass:"fyvr126j"},backgroundSecondary:{conditions:{base:"fyvr126p",active:"fyvr126q",disabled:"fyvr126r",focus:"fyvr126s",hover:"fyvr126t",checked:"fyvr126u"},defaultClass:"fyvr126p"},backgroundContrast:{conditions:{base:"fyvr126v",active:"fyvr126w",disabled:"fyvr126x",focus:"fyvr126y",hover:"fyvr126z",checked:"fyvr1270"},defaultClass:"fyvr126v"},backgroundMuted:{conditions:{base:"fyvr1271",active:"fyvr1272",disabled:"fyvr1273",focus:"fyvr1274",hover:"fyvr1275",checked:"fyvr1276"},defaultClass:"fyvr1271"},backgroundControl:{conditions:{base:"fyvr1277",active:"fyvr1278",disabled:"fyvr1279",focus:"fyvr127a",hover:"fyvr127b",checked:"fyvr127c"},defaultClass:"fyvr1277"},backgroundInverse:{conditions:{base:"fyvr127d",active:"fyvr127e",disabled:"fyvr127f",focus:"fyvr127g",hover:"fyvr127h",checked:"fyvr127i"},defaultClass:"fyvr127d"},backgroundBackdrop:{conditions:{base:"fyvr127j",active:"fyvr127k",disabled:"fyvr127l",focus:"fyvr127m",hover:"fyvr127n",checked:"fyvr127o"},defaultClass:"fyvr127j"},backgroundOverlay:{conditions:{base:"fyvr127p",active:"fyvr127q",disabled:"fyvr127r",focus:"fyvr127s",hover:"fyvr127t",checked:"fyvr127u"},defaultClass:"fyvr127p"},backgroundRaised:{conditions:{base:"fyvr127v",active:"fyvr127w",disabled:"fyvr127x",focus:"fyvr127y",hover:"fyvr127z",checked:"fyvr1280"},defaultClass:"fyvr127v"},buttonGlass:{conditions:{base:"fyvr1281",active:"fyvr1282",disabled:"fyvr1283",focus:"fyvr1284",hover:"fyvr1285",checked:"fyvr1286"},defaultClass:"fyvr1281"},buttonEmphasis:{conditions:{base:"fyvr1287",active:"fyvr1288",disabled:"fyvr1289",focus:"fyvr128a",hover:"fyvr128b",checked:"fyvr128c"},defaultClass:"fyvr1287"},buttonInverse:{conditions:{base:"fyvr128d",active:"fyvr128e",disabled:"fyvr128f",focus:"fyvr128g",hover:"fyvr128h",checked:"fyvr128i"},defaultClass:"fyvr128d"},borderNormal:{conditions:{base:"fyvr128j",active:"fyvr128k",disabled:"fyvr128l",focus:"fyvr128m",hover:"fyvr128n",checked:"fyvr128o"},defaultClass:"fyvr128j"},borderFocus:{conditions:{base:"fyvr128p",active:"fyvr128q",disabled:"fyvr128r",focus:"fyvr128s",hover:"fyvr128t",checked:"fyvr128u"},defaultClass:"fyvr128p"}}},borderLeftStyle:{values:{solid:{conditions:{base:"fyvr128v",active:"fyvr128w",disabled:"fyvr128x",focus:"fyvr128y",hover:"fyvr128z",checked:"fyvr1290"},defaultClass:"fyvr128v"},dashed:{conditions:{base:"fyvr1291",active:"fyvr1292",disabled:"fyvr1293",focus:"fyvr1294",hover:"fyvr1295",checked:"fyvr1296"},defaultClass:"fyvr1291"},dotted:{conditions:{base:"fyvr1297",active:"fyvr1298",disabled:"fyvr1299",focus:"fyvr129a",hover:"fyvr129b",checked:"fyvr129c"},defaultClass:"fyvr1297"}}},borderRightColor:{values:{black:{conditions:{base:"fyvr129d",active:"fyvr129e",disabled:"fyvr129f",focus:"fyvr129g",hover:"fyvr129h",checked:"fyvr129i"},defaultClass:"fyvr129d"},white:{conditions:{base:"fyvr129j",active:"fyvr129k",disabled:"fyvr129l",focus:"fyvr129m",hover:"fyvr129n",checked:"fyvr129o"},defaultClass:"fyvr129j"},inherit:{conditions:{base:"fyvr129p",active:"fyvr129q",disabled:"fyvr129r",focus:"fyvr129s",hover:"fyvr129t",checked:"fyvr129u"},defaultClass:"fyvr129p"},transparent:{conditions:{base:"fyvr129v",active:"fyvr129w",disabled:"fyvr129x",focus:"fyvr129y",hover:"fyvr129z",checked:"fyvr12a0"},defaultClass:"fyvr129v"},positive:{conditions:{base:"fyvr12a1",active:"fyvr12a2",disabled:"fyvr12a3",focus:"fyvr12a4",hover:"fyvr12a5",checked:"fyvr12a6"},defaultClass:"fyvr12a1"},negative:{conditions:{base:"fyvr12a7",active:"fyvr12a8",disabled:"fyvr12a9",focus:"fyvr12aa",hover:"fyvr12ab",checked:"fyvr12ac"},defaultClass:"fyvr12a7"},info:{conditions:{base:"fyvr12ad",active:"fyvr12ae",disabled:"fyvr12af",focus:"fyvr12ag",hover:"fyvr12ah",checked:"fyvr12ai"},defaultClass:"fyvr12ad"},warning:{conditions:{base:"fyvr12aj",active:"fyvr12ak",disabled:"fyvr12al",focus:"fyvr12am",hover:"fyvr12an",checked:"fyvr12ao"},defaultClass:"fyvr12aj"},gradientBackdrop:{conditions:{base:"fyvr12ap",active:"fyvr12aq",disabled:"fyvr12ar",focus:"fyvr12as",hover:"fyvr12at",checked:"fyvr12au"},defaultClass:"fyvr12ap"},gradientPrimary:{conditions:{base:"fyvr12av",active:"fyvr12aw",disabled:"fyvr12ax",focus:"fyvr12ay",hover:"fyvr12az",checked:"fyvr12b0"},defaultClass:"fyvr12av"},gradientSecondary:{conditions:{base:"fyvr12b1",active:"fyvr12b2",disabled:"fyvr12b3",focus:"fyvr12b4",hover:"fyvr12b5",checked:"fyvr12b6"},defaultClass:"fyvr12b1"},arbitrumDark:{conditions:{base:"fyvr12b7",active:"fyvr12b8",disabled:"fyvr12b9",focus:"fyvr12ba",hover:"fyvr12bb",checked:"fyvr12bc"},defaultClass:"fyvr12b7"},arbitrumLight:{conditions:{base:"fyvr12bd",active:"fyvr12be",disabled:"fyvr12bf",focus:"fyvr12bg",hover:"fyvr12bh",checked:"fyvr12bi"},defaultClass:"fyvr12bd"},avalanceDark:{conditions:{base:"fyvr12bj",active:"fyvr12bk",disabled:"fyvr12bl",focus:"fyvr12bm",hover:"fyvr12bn",checked:"fyvr12bo"},defaultClass:"fyvr12bj"},avalanceLight:{conditions:{base:"fyvr12bp",active:"fyvr12bq",disabled:"fyvr12br",focus:"fyvr12bs",hover:"fyvr12bt",checked:"fyvr12bu"},defaultClass:"fyvr12bp"},bscDark:{conditions:{base:"fyvr12bv",active:"fyvr12bw",disabled:"fyvr12bx",focus:"fyvr12by",hover:"fyvr12bz",checked:"fyvr12c0"},defaultClass:"fyvr12bv"},bscLight:{conditions:{base:"fyvr12c1",active:"fyvr12c2",disabled:"fyvr12c3",focus:"fyvr12c4",hover:"fyvr12c5",checked:"fyvr12c6"},defaultClass:"fyvr12c1"},ethereumDark:{conditions:{base:"fyvr12c7",active:"fyvr12c8",disabled:"fyvr12c9",focus:"fyvr12ca",hover:"fyvr12cb",checked:"fyvr12cc"},defaultClass:"fyvr12c7"},ethereumLight:{conditions:{base:"fyvr12cd",active:"fyvr12ce",disabled:"fyvr12cf",focus:"fyvr12cg",hover:"fyvr12ch",checked:"fyvr12ci"},defaultClass:"fyvr12cd"},gnosisDark:{conditions:{base:"fyvr12cj",active:"fyvr12ck",disabled:"fyvr12cl",focus:"fyvr12cm",hover:"fyvr12cn",checked:"fyvr12co"},defaultClass:"fyvr12cj"},gnosisLight:{conditions:{base:"fyvr12cp",active:"fyvr12cq",disabled:"fyvr12cr",focus:"fyvr12cs",hover:"fyvr12ct",checked:"fyvr12cu"},defaultClass:"fyvr12cp"},polygonDark:{conditions:{base:"fyvr12cv",active:"fyvr12cw",disabled:"fyvr12cx",focus:"fyvr12cy",hover:"fyvr12cz",checked:"fyvr12d0"},defaultClass:"fyvr12cv"},polygonLight:{conditions:{base:"fyvr12d1",active:"fyvr12d2",disabled:"fyvr12d3",focus:"fyvr12d4",hover:"fyvr12d5",checked:"fyvr12d6"},defaultClass:"fyvr12d1"},text100:{conditions:{base:"fyvr12d7",active:"fyvr12d8",disabled:"fyvr12d9",focus:"fyvr12da",hover:"fyvr12db",checked:"fyvr12dc"},defaultClass:"fyvr12d7"},text80:{conditions:{base:"fyvr12dd",active:"fyvr12de",disabled:"fyvr12df",focus:"fyvr12dg",hover:"fyvr12dh",checked:"fyvr12di"},defaultClass:"fyvr12dd"},text50:{conditions:{base:"fyvr12dj",active:"fyvr12dk",disabled:"fyvr12dl",focus:"fyvr12dm",hover:"fyvr12dn",checked:"fyvr12do"},defaultClass:"fyvr12dj"},textInverse100:{conditions:{base:"fyvr12dp",active:"fyvr12dq",disabled:"fyvr12dr",focus:"fyvr12ds",hover:"fyvr12dt",checked:"fyvr12du"},defaultClass:"fyvr12dp"},backgroundPrimary:{conditions:{base:"fyvr12dv",active:"fyvr12dw",disabled:"fyvr12dx",focus:"fyvr12dy",hover:"fyvr12dz",checked:"fyvr12e0"},defaultClass:"fyvr12dv"},backgroundSecondary:{conditions:{base:"fyvr12e1",active:"fyvr12e2",disabled:"fyvr12e3",focus:"fyvr12e4",hover:"fyvr12e5",checked:"fyvr12e6"},defaultClass:"fyvr12e1"},backgroundContrast:{conditions:{base:"fyvr12e7",active:"fyvr12e8",disabled:"fyvr12e9",focus:"fyvr12ea",hover:"fyvr12eb",checked:"fyvr12ec"},defaultClass:"fyvr12e7"},backgroundMuted:{conditions:{base:"fyvr12ed",active:"fyvr12ee",disabled:"fyvr12ef",focus:"fyvr12eg",hover:"fyvr12eh",checked:"fyvr12ei"},defaultClass:"fyvr12ed"},backgroundControl:{conditions:{base:"fyvr12ej",active:"fyvr12ek",disabled:"fyvr12el",focus:"fyvr12em",hover:"fyvr12en",checked:"fyvr12eo"},defaultClass:"fyvr12ej"},backgroundInverse:{conditions:{base:"fyvr12ep",active:"fyvr12eq",disabled:"fyvr12er",focus:"fyvr12es",hover:"fyvr12et",checked:"fyvr12eu"},defaultClass:"fyvr12ep"},backgroundBackdrop:{conditions:{base:"fyvr12ev",active:"fyvr12ew",disabled:"fyvr12ex",focus:"fyvr12ey",hover:"fyvr12ez",checked:"fyvr12f0"},defaultClass:"fyvr12ev"},backgroundOverlay:{conditions:{base:"fyvr12f1",active:"fyvr12f2",disabled:"fyvr12f3",focus:"fyvr12f4",hover:"fyvr12f5",checked:"fyvr12f6"},defaultClass:"fyvr12f1"},backgroundRaised:{conditions:{base:"fyvr12f7",active:"fyvr12f8",disabled:"fyvr12f9",focus:"fyvr12fa",hover:"fyvr12fb",checked:"fyvr12fc"},defaultClass:"fyvr12f7"},buttonGlass:{conditions:{base:"fyvr12fd",active:"fyvr12fe",disabled:"fyvr12ff",focus:"fyvr12fg",hover:"fyvr12fh",checked:"fyvr12fi"},defaultClass:"fyvr12fd"},buttonEmphasis:{conditions:{base:"fyvr12fj",active:"fyvr12fk",disabled:"fyvr12fl",focus:"fyvr12fm",hover:"fyvr12fn",checked:"fyvr12fo"},defaultClass:"fyvr12fj"},buttonInverse:{conditions:{base:"fyvr12fp",active:"fyvr12fq",disabled:"fyvr12fr",focus:"fyvr12fs",hover:"fyvr12ft",checked:"fyvr12fu"},defaultClass:"fyvr12fp"},borderNormal:{conditions:{base:"fyvr12fv",active:"fyvr12fw",disabled:"fyvr12fx",focus:"fyvr12fy",hover:"fyvr12fz",checked:"fyvr12g0"},defaultClass:"fyvr12fv"},borderFocus:{conditions:{base:"fyvr12g1",active:"fyvr12g2",disabled:"fyvr12g3",focus:"fyvr12g4",hover:"fyvr12g5",checked:"fyvr12g6"},defaultClass:"fyvr12g1"}}},borderRightStyle:{values:{solid:{conditions:{base:"fyvr12g7",active:"fyvr12g8",disabled:"fyvr12g9",focus:"fyvr12ga",hover:"fyvr12gb",checked:"fyvr12gc"},defaultClass:"fyvr12g7"},dashed:{conditions:{base:"fyvr12gd",active:"fyvr12ge",disabled:"fyvr12gf",focus:"fyvr12gg",hover:"fyvr12gh",checked:"fyvr12gi"},defaultClass:"fyvr12gd"},dotted:{conditions:{base:"fyvr12gj",active:"fyvr12gk",disabled:"fyvr12gl",focus:"fyvr12gm",hover:"fyvr12gn",checked:"fyvr12go"},defaultClass:"fyvr12gj"}}},borderTopColor:{values:{black:{conditions:{base:"fyvr12gp",active:"fyvr12gq",disabled:"fyvr12gr",focus:"fyvr12gs",hover:"fyvr12gt",checked:"fyvr12gu"},defaultClass:"fyvr12gp"},white:{conditions:{base:"fyvr12gv",active:"fyvr12gw",disabled:"fyvr12gx",focus:"fyvr12gy",hover:"fyvr12gz",checked:"fyvr12h0"},defaultClass:"fyvr12gv"},inherit:{conditions:{base:"fyvr12h1",active:"fyvr12h2",disabled:"fyvr12h3",focus:"fyvr12h4",hover:"fyvr12h5",checked:"fyvr12h6"},defaultClass:"fyvr12h1"},transparent:{conditions:{base:"fyvr12h7",active:"fyvr12h8",disabled:"fyvr12h9",focus:"fyvr12ha",hover:"fyvr12hb",checked:"fyvr12hc"},defaultClass:"fyvr12h7"},positive:{conditions:{base:"fyvr12hd",active:"fyvr12he",disabled:"fyvr12hf",focus:"fyvr12hg",hover:"fyvr12hh",checked:"fyvr12hi"},defaultClass:"fyvr12hd"},negative:{conditions:{base:"fyvr12hj",active:"fyvr12hk",disabled:"fyvr12hl",focus:"fyvr12hm",hover:"fyvr12hn",checked:"fyvr12ho"},defaultClass:"fyvr12hj"},info:{conditions:{base:"fyvr12hp",active:"fyvr12hq",disabled:"fyvr12hr",focus:"fyvr12hs",hover:"fyvr12ht",checked:"fyvr12hu"},defaultClass:"fyvr12hp"},warning:{conditions:{base:"fyvr12hv",active:"fyvr12hw",disabled:"fyvr12hx",focus:"fyvr12hy",hover:"fyvr12hz",checked:"fyvr12i0"},defaultClass:"fyvr12hv"},gradientBackdrop:{conditions:{base:"fyvr12i1",active:"fyvr12i2",disabled:"fyvr12i3",focus:"fyvr12i4",hover:"fyvr12i5",checked:"fyvr12i6"},defaultClass:"fyvr12i1"},gradientPrimary:{conditions:{base:"fyvr12i7",active:"fyvr12i8",disabled:"fyvr12i9",focus:"fyvr12ia",hover:"fyvr12ib",checked:"fyvr12ic"},defaultClass:"fyvr12i7"},gradientSecondary:{conditions:{base:"fyvr12id",active:"fyvr12ie",disabled:"fyvr12if",focus:"fyvr12ig",hover:"fyvr12ih",checked:"fyvr12ii"},defaultClass:"fyvr12id"},arbitrumDark:{conditions:{base:"fyvr12ij",active:"fyvr12ik",disabled:"fyvr12il",focus:"fyvr12im",hover:"fyvr12in",checked:"fyvr12io"},defaultClass:"fyvr12ij"},arbitrumLight:{conditions:{base:"fyvr12ip",active:"fyvr12iq",disabled:"fyvr12ir",focus:"fyvr12is",hover:"fyvr12it",checked:"fyvr12iu"},defaultClass:"fyvr12ip"},avalanceDark:{conditions:{base:"fyvr12iv",active:"fyvr12iw",disabled:"fyvr12ix",focus:"fyvr12iy",hover:"fyvr12iz",checked:"fyvr12j0"},defaultClass:"fyvr12iv"},avalanceLight:{conditions:{base:"fyvr12j1",active:"fyvr12j2",disabled:"fyvr12j3",focus:"fyvr12j4",hover:"fyvr12j5",checked:"fyvr12j6"},defaultClass:"fyvr12j1"},bscDark:{conditions:{base:"fyvr12j7",active:"fyvr12j8",disabled:"fyvr12j9",focus:"fyvr12ja",hover:"fyvr12jb",checked:"fyvr12jc"},defaultClass:"fyvr12j7"},bscLight:{conditions:{base:"fyvr12jd",active:"fyvr12je",disabled:"fyvr12jf",focus:"fyvr12jg",hover:"fyvr12jh",checked:"fyvr12ji"},defaultClass:"fyvr12jd"},ethereumDark:{conditions:{base:"fyvr12jj",active:"fyvr12jk",disabled:"fyvr12jl",focus:"fyvr12jm",hover:"fyvr12jn",checked:"fyvr12jo"},defaultClass:"fyvr12jj"},ethereumLight:{conditions:{base:"fyvr12jp",active:"fyvr12jq",disabled:"fyvr12jr",focus:"fyvr12js",hover:"fyvr12jt",checked:"fyvr12ju"},defaultClass:"fyvr12jp"},gnosisDark:{conditions:{base:"fyvr12jv",active:"fyvr12jw",disabled:"fyvr12jx",focus:"fyvr12jy",hover:"fyvr12jz",checked:"fyvr12k0"},defaultClass:"fyvr12jv"},gnosisLight:{conditions:{base:"fyvr12k1",active:"fyvr12k2",disabled:"fyvr12k3",focus:"fyvr12k4",hover:"fyvr12k5",checked:"fyvr12k6"},defaultClass:"fyvr12k1"},polygonDark:{conditions:{base:"fyvr12k7",active:"fyvr12k8",disabled:"fyvr12k9",focus:"fyvr12ka",hover:"fyvr12kb",checked:"fyvr12kc"},defaultClass:"fyvr12k7"},polygonLight:{conditions:{base:"fyvr12kd",active:"fyvr12ke",disabled:"fyvr12kf",focus:"fyvr12kg",hover:"fyvr12kh",checked:"fyvr12ki"},defaultClass:"fyvr12kd"},text100:{conditions:{base:"fyvr12kj",active:"fyvr12kk",disabled:"fyvr12kl",focus:"fyvr12km",hover:"fyvr12kn",checked:"fyvr12ko"},defaultClass:"fyvr12kj"},text80:{conditions:{base:"fyvr12kp",active:"fyvr12kq",disabled:"fyvr12kr",focus:"fyvr12ks",hover:"fyvr12kt",checked:"fyvr12ku"},defaultClass:"fyvr12kp"},text50:{conditions:{base:"fyvr12kv",active:"fyvr12kw",disabled:"fyvr12kx",focus:"fyvr12ky",hover:"fyvr12kz",checked:"fyvr12l0"},defaultClass:"fyvr12kv"},textInverse100:{conditions:{base:"fyvr12l1",active:"fyvr12l2",disabled:"fyvr12l3",focus:"fyvr12l4",hover:"fyvr12l5",checked:"fyvr12l6"},defaultClass:"fyvr12l1"},backgroundPrimary:{conditions:{base:"fyvr12l7",active:"fyvr12l8",disabled:"fyvr12l9",focus:"fyvr12la",hover:"fyvr12lb",checked:"fyvr12lc"},defaultClass:"fyvr12l7"},backgroundSecondary:{conditions:{base:"fyvr12ld",active:"fyvr12le",disabled:"fyvr12lf",focus:"fyvr12lg",hover:"fyvr12lh",checked:"fyvr12li"},defaultClass:"fyvr12ld"},backgroundContrast:{conditions:{base:"fyvr12lj",active:"fyvr12lk",disabled:"fyvr12ll",focus:"fyvr12lm",hover:"fyvr12ln",checked:"fyvr12lo"},defaultClass:"fyvr12lj"},backgroundMuted:{conditions:{base:"fyvr12lp",active:"fyvr12lq",disabled:"fyvr12lr",focus:"fyvr12ls",hover:"fyvr12lt",checked:"fyvr12lu"},defaultClass:"fyvr12lp"},backgroundControl:{conditions:{base:"fyvr12lv",active:"fyvr12lw",disabled:"fyvr12lx",focus:"fyvr12ly",hover:"fyvr12lz",checked:"fyvr12m0"},defaultClass:"fyvr12lv"},backgroundInverse:{conditions:{base:"fyvr12m1",active:"fyvr12m2",disabled:"fyvr12m3",focus:"fyvr12m4",hover:"fyvr12m5",checked:"fyvr12m6"},defaultClass:"fyvr12m1"},backgroundBackdrop:{conditions:{base:"fyvr12m7",active:"fyvr12m8",disabled:"fyvr12m9",focus:"fyvr12ma",hover:"fyvr12mb",checked:"fyvr12mc"},defaultClass:"fyvr12m7"},backgroundOverlay:{conditions:{base:"fyvr12md",active:"fyvr12me",disabled:"fyvr12mf",focus:"fyvr12mg",hover:"fyvr12mh",checked:"fyvr12mi"},defaultClass:"fyvr12md"},backgroundRaised:{conditions:{base:"fyvr12mj",active:"fyvr12mk",disabled:"fyvr12ml",focus:"fyvr12mm",hover:"fyvr12mn",checked:"fyvr12mo"},defaultClass:"fyvr12mj"},buttonGlass:{conditions:{base:"fyvr12mp",active:"fyvr12mq",disabled:"fyvr12mr",focus:"fyvr12ms",hover:"fyvr12mt",checked:"fyvr12mu"},defaultClass:"fyvr12mp"},buttonEmphasis:{conditions:{base:"fyvr12mv",active:"fyvr12mw",disabled:"fyvr12mx",focus:"fyvr12my",hover:"fyvr12mz",checked:"fyvr12n0"},defaultClass:"fyvr12mv"},buttonInverse:{conditions:{base:"fyvr12n1",active:"fyvr12n2",disabled:"fyvr12n3",focus:"fyvr12n4",hover:"fyvr12n5",checked:"fyvr12n6"},defaultClass:"fyvr12n1"},borderNormal:{conditions:{base:"fyvr12n7",active:"fyvr12n8",disabled:"fyvr12n9",focus:"fyvr12na",hover:"fyvr12nb",checked:"fyvr12nc"},defaultClass:"fyvr12n7"},borderFocus:{conditions:{base:"fyvr12nd",active:"fyvr12ne",disabled:"fyvr12nf",focus:"fyvr12ng",hover:"fyvr12nh",checked:"fyvr12ni"},defaultClass:"fyvr12nd"}}},borderTopStyle:{values:{solid:{conditions:{base:"fyvr12nj",active:"fyvr12nk",disabled:"fyvr12nl",focus:"fyvr12nm",hover:"fyvr12nn",checked:"fyvr12no"},defaultClass:"fyvr12nj"},dashed:{conditions:{base:"fyvr12np",active:"fyvr12nq",disabled:"fyvr12nr",focus:"fyvr12ns",hover:"fyvr12nt",checked:"fyvr12nu"},defaultClass:"fyvr12np"},dotted:{conditions:{base:"fyvr12nv",active:"fyvr12nw",disabled:"fyvr12nx",focus:"fyvr12ny",hover:"fyvr12nz",checked:"fyvr12o0"},defaultClass:"fyvr12nv"}}},border:{values:{none:{conditions:{base:"fyvr12o1",active:"fyvr12o2",disabled:"fyvr12o3",focus:"fyvr12o4",hover:"fyvr12o5",checked:"fyvr12o6"},defaultClass:"fyvr12o1"}}},color:{values:{black:{conditions:{base:"fyvr12o7",active:"fyvr12o8",disabled:"fyvr12o9",focus:"fyvr12oa",hover:"fyvr12ob",checked:"fyvr12oc"},defaultClass:"fyvr12o7"},white:{conditions:{base:"fyvr12od",active:"fyvr12oe",disabled:"fyvr12of",focus:"fyvr12og",hover:"fyvr12oh",checked:"fyvr12oi"},defaultClass:"fyvr12od"},inherit:{conditions:{base:"fyvr12oj",active:"fyvr12ok",disabled:"fyvr12ol",focus:"fyvr12om",hover:"fyvr12on",checked:"fyvr12oo"},defaultClass:"fyvr12oj"},transparent:{conditions:{base:"fyvr12op",active:"fyvr12oq",disabled:"fyvr12or",focus:"fyvr12os",hover:"fyvr12ot",checked:"fyvr12ou"},defaultClass:"fyvr12op"},positive:{conditions:{base:"fyvr12ov",active:"fyvr12ow",disabled:"fyvr12ox",focus:"fyvr12oy",hover:"fyvr12oz",checked:"fyvr12p0"},defaultClass:"fyvr12ov"},negative:{conditions:{base:"fyvr12p1",active:"fyvr12p2",disabled:"fyvr12p3",focus:"fyvr12p4",hover:"fyvr12p5",checked:"fyvr12p6"},defaultClass:"fyvr12p1"},info:{conditions:{base:"fyvr12p7",active:"fyvr12p8",disabled:"fyvr12p9",focus:"fyvr12pa",hover:"fyvr12pb",checked:"fyvr12pc"},defaultClass:"fyvr12p7"},warning:{conditions:{base:"fyvr12pd",active:"fyvr12pe",disabled:"fyvr12pf",focus:"fyvr12pg",hover:"fyvr12ph",checked:"fyvr12pi"},defaultClass:"fyvr12pd"},gradientBackdrop:{conditions:{base:"fyvr12pj",active:"fyvr12pk",disabled:"fyvr12pl",focus:"fyvr12pm",hover:"fyvr12pn",checked:"fyvr12po"},defaultClass:"fyvr12pj"},gradientPrimary:{conditions:{base:"fyvr12pp",active:"fyvr12pq",disabled:"fyvr12pr",focus:"fyvr12ps",hover:"fyvr12pt",checked:"fyvr12pu"},defaultClass:"fyvr12pp"},gradientSecondary:{conditions:{base:"fyvr12pv",active:"fyvr12pw",disabled:"fyvr12px",focus:"fyvr12py",hover:"fyvr12pz",checked:"fyvr12q0"},defaultClass:"fyvr12pv"},arbitrumDark:{conditions:{base:"fyvr12q1",active:"fyvr12q2",disabled:"fyvr12q3",focus:"fyvr12q4",hover:"fyvr12q5",checked:"fyvr12q6"},defaultClass:"fyvr12q1"},arbitrumLight:{conditions:{base:"fyvr12q7",active:"fyvr12q8",disabled:"fyvr12q9",focus:"fyvr12qa",hover:"fyvr12qb",checked:"fyvr12qc"},defaultClass:"fyvr12q7"},avalanceDark:{conditions:{base:"fyvr12qd",active:"fyvr12qe",disabled:"fyvr12qf",focus:"fyvr12qg",hover:"fyvr12qh",checked:"fyvr12qi"},defaultClass:"fyvr12qd"},avalanceLight:{conditions:{base:"fyvr12qj",active:"fyvr12qk",disabled:"fyvr12ql",focus:"fyvr12qm",hover:"fyvr12qn",checked:"fyvr12qo"},defaultClass:"fyvr12qj"},bscDark:{conditions:{base:"fyvr12qp",active:"fyvr12qq",disabled:"fyvr12qr",focus:"fyvr12qs",hover:"fyvr12qt",checked:"fyvr12qu"},defaultClass:"fyvr12qp"},bscLight:{conditions:{base:"fyvr12qv",active:"fyvr12qw",disabled:"fyvr12qx",focus:"fyvr12qy",hover:"fyvr12qz",checked:"fyvr12r0"},defaultClass:"fyvr12qv"},ethereumDark:{conditions:{base:"fyvr12r1",active:"fyvr12r2",disabled:"fyvr12r3",focus:"fyvr12r4",hover:"fyvr12r5",checked:"fyvr12r6"},defaultClass:"fyvr12r1"},ethereumLight:{conditions:{base:"fyvr12r7",active:"fyvr12r8",disabled:"fyvr12r9",focus:"fyvr12ra",hover:"fyvr12rb",checked:"fyvr12rc"},defaultClass:"fyvr12r7"},gnosisDark:{conditions:{base:"fyvr12rd",active:"fyvr12re",disabled:"fyvr12rf",focus:"fyvr12rg",hover:"fyvr12rh",checked:"fyvr12ri"},defaultClass:"fyvr12rd"},gnosisLight:{conditions:{base:"fyvr12rj",active:"fyvr12rk",disabled:"fyvr12rl",focus:"fyvr12rm",hover:"fyvr12rn",checked:"fyvr12ro"},defaultClass:"fyvr12rj"},polygonDark:{conditions:{base:"fyvr12rp",active:"fyvr12rq",disabled:"fyvr12rr",focus:"fyvr12rs",hover:"fyvr12rt",checked:"fyvr12ru"},defaultClass:"fyvr12rp"},polygonLight:{conditions:{base:"fyvr12rv",active:"fyvr12rw",disabled:"fyvr12rx",focus:"fyvr12ry",hover:"fyvr12rz",checked:"fyvr12s0"},defaultClass:"fyvr12rv"},text100:{conditions:{base:"fyvr12s1",active:"fyvr12s2",disabled:"fyvr12s3",focus:"fyvr12s4",hover:"fyvr12s5",checked:"fyvr12s6"},defaultClass:"fyvr12s1"},text80:{conditions:{base:"fyvr12s7",active:"fyvr12s8",disabled:"fyvr12s9",focus:"fyvr12sa",hover:"fyvr12sb",checked:"fyvr12sc"},defaultClass:"fyvr12s7"},text50:{conditions:{base:"fyvr12sd",active:"fyvr12se",disabled:"fyvr12sf",focus:"fyvr12sg",hover:"fyvr12sh",checked:"fyvr12si"},defaultClass:"fyvr12sd"},textInverse100:{conditions:{base:"fyvr12sj",active:"fyvr12sk",disabled:"fyvr12sl",focus:"fyvr12sm",hover:"fyvr12sn",checked:"fyvr12so"},defaultClass:"fyvr12sj"},backgroundPrimary:{conditions:{base:"fyvr12sp",active:"fyvr12sq",disabled:"fyvr12sr",focus:"fyvr12ss",hover:"fyvr12st",checked:"fyvr12su"},defaultClass:"fyvr12sp"},backgroundSecondary:{conditions:{base:"fyvr12sv",active:"fyvr12sw",disabled:"fyvr12sx",focus:"fyvr12sy",hover:"fyvr12sz",checked:"fyvr12t0"},defaultClass:"fyvr12sv"},backgroundContrast:{conditions:{base:"fyvr12t1",active:"fyvr12t2",disabled:"fyvr12t3",focus:"fyvr12t4",hover:"fyvr12t5",checked:"fyvr12t6"},defaultClass:"fyvr12t1"},backgroundMuted:{conditions:{base:"fyvr12t7",active:"fyvr12t8",disabled:"fyvr12t9",focus:"fyvr12ta",hover:"fyvr12tb",checked:"fyvr12tc"},defaultClass:"fyvr12t7"},backgroundControl:{conditions:{base:"fyvr12td",active:"fyvr12te",disabled:"fyvr12tf",focus:"fyvr12tg",hover:"fyvr12th",checked:"fyvr12ti"},defaultClass:"fyvr12td"},backgroundInverse:{conditions:{base:"fyvr12tj",active:"fyvr12tk",disabled:"fyvr12tl",focus:"fyvr12tm",hover:"fyvr12tn",checked:"fyvr12to"},defaultClass:"fyvr12tj"},backgroundBackdrop:{conditions:{base:"fyvr12tp",active:"fyvr12tq",disabled:"fyvr12tr",focus:"fyvr12ts",hover:"fyvr12tt",checked:"fyvr12tu"},defaultClass:"fyvr12tp"},backgroundOverlay:{conditions:{base:"fyvr12tv",active:"fyvr12tw",disabled:"fyvr12tx",focus:"fyvr12ty",hover:"fyvr12tz",checked:"fyvr12u0"},defaultClass:"fyvr12tv"},backgroundRaised:{conditions:{base:"fyvr12u1",active:"fyvr12u2",disabled:"fyvr12u3",focus:"fyvr12u4",hover:"fyvr12u5",checked:"fyvr12u6"},defaultClass:"fyvr12u1"},buttonGlass:{conditions:{base:"fyvr12u7",active:"fyvr12u8",disabled:"fyvr12u9",focus:"fyvr12ua",hover:"fyvr12ub",checked:"fyvr12uc"},defaultClass:"fyvr12u7"},buttonEmphasis:{conditions:{base:"fyvr12ud",active:"fyvr12ue",disabled:"fyvr12uf",focus:"fyvr12ug",hover:"fyvr12uh",checked:"fyvr12ui"},defaultClass:"fyvr12ud"},buttonInverse:{conditions:{base:"fyvr12uj",active:"fyvr12uk",disabled:"fyvr12ul",focus:"fyvr12um",hover:"fyvr12un",checked:"fyvr12uo"},defaultClass:"fyvr12uj"},borderNormal:{conditions:{base:"fyvr12up",active:"fyvr12uq",disabled:"fyvr12ur",focus:"fyvr12us",hover:"fyvr12ut",checked:"fyvr12uu"},defaultClass:"fyvr12up"},borderFocus:{conditions:{base:"fyvr12uv",active:"fyvr12uw",disabled:"fyvr12ux",focus:"fyvr12uy",hover:"fyvr12uz",checked:"fyvr12v0"},defaultClass:"fyvr12uv"}}},cursor:{values:{default:{conditions:{base:"fyvr12v1",active:"fyvr12v2",disabled:"fyvr12v3",focus:"fyvr12v4",hover:"fyvr12v5",checked:"fyvr12v6"},defaultClass:"fyvr12v1"},pointer:{conditions:{base:"fyvr12v7",active:"fyvr12v8",disabled:"fyvr12v9",focus:"fyvr12va",hover:"fyvr12vb",checked:"fyvr12vc"},defaultClass:"fyvr12v7"},text:{conditions:{base:"fyvr12vd",active:"fyvr12ve",disabled:"fyvr12vf",focus:"fyvr12vg",hover:"fyvr12vh",checked:"fyvr12vi"},defaultClass:"fyvr12vd"}}},opacity:{values:{0:{conditions:{base:"fyvr12vj",active:"fyvr12vk",disabled:"fyvr12vl",focus:"fyvr12vm",hover:"fyvr12vn",checked:"fyvr12vo"},defaultClass:"fyvr12vj"},50:{conditions:{base:"fyvr12vp",active:"fyvr12vq",disabled:"fyvr12vr",focus:"fyvr12vs",hover:"fyvr12vt",checked:"fyvr12vu"},defaultClass:"fyvr12vp"},80:{conditions:{base:"fyvr12vv",active:"fyvr12vw",disabled:"fyvr12vx",focus:"fyvr12vy",hover:"fyvr12vz",checked:"fyvr12w0"},defaultClass:"fyvr12vv"},100:{conditions:{base:"fyvr12w1",active:"fyvr12w2",disabled:"fyvr12w3",focus:"fyvr12w4",hover:"fyvr12w5",checked:"fyvr12w6"},defaultClass:"fyvr12w1"}}},pointerEvents:{values:{none:{conditions:{base:"fyvr12w7",active:"fyvr12w8",disabled:"fyvr12w9",focus:"fyvr12wa",hover:"fyvr12wb",checked:"fyvr12wc"},defaultClass:"fyvr12w7"},auto:{conditions:{base:"fyvr12wd",active:"fyvr12we",disabled:"fyvr12wf",focus:"fyvr12wg",hover:"fyvr12wh",checked:"fyvr12wi"},defaultClass:"fyvr12wd"}}},outline:{values:{none:{conditions:{base:"fyvr12wj",active:"fyvr12wk",disabled:"fyvr12wl",focus:"fyvr12wm",hover:"fyvr12wn",checked:"fyvr12wo"},defaultClass:"fyvr12wj"}}},boxShadow:{values:{none:{conditions:{base:"fyvr12wp",active:"fyvr12wq",disabled:"fyvr12wr",focus:"fyvr12ws",hover:"fyvr12wt",checked:"fyvr12wu"},defaultClass:"fyvr12wp"}}}}});const UG=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],iw=t=>(t.display||(t.display=Object.keys(t).some(e=>UG.includes(e))?"flex":void 0),lI(t));iw.properties=lI.properties;const $G="https://assets.sequence.info/",WG=5,VG={xs:"small",sm:"small",md:"medium",lg:"large",xl:"large"},uI=t=>t?VG[t]||t:"medium",HG=(t,e)=>t.replace(/\/(small|medium|large)\//,`/${uI(e)}/`),zG=(t,e)=>$G+`images/networks/${uI(e)}/${t}.webp?v${WG}`;function fI(t){var e,r,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(e=0;e{const{as:r="div",sx:n={},className:s,...i}=t,o={},a={};for(const l in i)iw.properties.has(l)?o[l]=i[l]:a[l]=i[l];const c=iw({...o,...n});return m.createElement(r,{className:Yr(c,s),...a,ref:e})});var dI={exports:{}},Ld={};/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sS;function GG(){if(sS)return Ld;sS=1;var t=$r,e=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,s=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function o(a,c,l){var u,f={},d=null,h=null;l!==void 0&&(d=""+l),c.key!==void 0&&(d=""+c.key),c.ref!==void 0&&(h=c.ref);for(u in c)n.call(c,u)&&!i.hasOwnProperty(u)&&(f[u]=c[u]);if(a&&a.defaultProps)for(u in c=a.defaultProps,c)f[u]===void 0&&(f[u]=c[u]);return{$$typeof:e,type:a,key:d,ref:h,props:f,_owner:s.current}}return Ld.Fragment=r,Ld.jsx=o,Ld.jsxs=o,Ld}dI.exports=GG();var E=dI.exports;function qG(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function KG(t){var e=qG(t,"string");return typeof e=="symbol"?e:String(e)}function QG(t,e,r){return e=KG(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function iS(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function oS(t){for(var e=1;e{for(var n of Object.keys(t)){var s;if(t[n]!==((s=e[n])!==null&&s!==void 0?s:r[n]))return!1}return!0},At=t=>{var e=r=>{var n=t.defaultClassName,s=oS(oS({},t.defaultVariants),r);for(var i in s){var o,a=(o=s[i])!==null&&o!==void 0?o:t.defaultVariants[i];if(a!=null){var c=a;typeof c=="boolean"&&(c=c===!0?"true":"false");var l=t.variantClassNames[i][c];l&&(n+=" "+l)}}for(var[u,f]of t.compoundVariants)JG(u,s,t.defaultVariants)&&(n+=" "+f);return n};return e.variants=()=>Object.keys(t.variantClassNames),e.classNames={get base(){return t.defaultClassName.split(" ")[0]},get variants(){return aS(t.variantClassNames,r=>aS(r,n=>n.split(" ")[0]))}},e};At({defaultClassName:"_2q9vfj7",variantClassNames:{variant:{info:"_2q9vfj8 _2q9vfj0 fyvr11ov",warning:"_2q9vfj9 _2q9vfj1 fyvr11p1",success:"_2q9vfja _2q9vfj2 fyvr11oj",error:"_2q9vfjb _2q9vfj3 fyvr11op"},size:{sm:"_2q9vfjc _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _2q9vfj4 fyvr1wo fyvr1yk fyvr13w fyvr1e8",md:"_2q9vfjd _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _2q9vfj5 fyvr1ws fyvr1yo fyvr140 fyvr1ec",lg:"_2q9vfje _1qxj1ib9 _1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc _2q9vfj6 fyvr1ww fyvr1ys fyvr144 fyvr1eg"}},defaultVariants:{},compoundVariants:[]});const cS=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return E.jsx(me,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var YG=At({defaultClassName:"_1qxj1ib9",variantClassNames:{variant:{inherit:"_1qxj1iba _1qxj1ib0 fyvr11mu fyvr11e4 fyvr11gg fyvr11fg fyvr11ew",xlarge:"_1qxj1ibb _1qxj1ib1 fyvr11mv fyvr11es fyvr11gc fyvr11fk fyvr11fc",large:"_1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8",medium:"_1qxj1ibd _1qxj1ib3 fyvr11mv fyvr11ek fyvr11g4 fyvr11fo fyvr11fc",normal:"_1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",small:"_1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4",xsmall:"_1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc",code:"_1qxj1ibh _1qxj1ib7 fyvr11mw fyvr11eg fyvr11g0 fyvr11fk fyvr11f0"},ellipsis:{true:"_1qxj1ibi _1qxj1ib8 fyvr11ls fyvr11m8 fyvr11n9 fyvr11mx"},italic:{true:"_1qxj1ibj"},underline:{true:"_1qxj1ibk"},uppercase:{true:"_1qxj1ibl"},capitalize:{true:"_1qxj1ibm"},hidden:{true:"_1qxj1ibn"}},defaultVariants:{},compoundVariants:[]});const Tt=m.forwardRef((t,e)=>{const{as:r="span",variant:n="inherit",className:s,hidden:i,italic:o,underline:a,children:c,ellipsis:l,uppercase:u,capitalize:f,...d}=t,h=_G[n];return E.jsx(me,{as:r,className:Yr(s,YG({hidden:i,ellipsis:l,italic:o,underline:a,uppercase:u,capitalize:f})),ref:e,...h,...d,children:c})});var XG=At({defaultClassName:"_140wn8ni _140wn8n0 fyvr11ls fyvr11m8 fyvr11n9 fyvr11ko fyvr12o1 fyvr11n2 fyvr11h0 _4efw240",variantClassNames:{variant:{base:"_140wn8nj _140wn8n1 fyvr11od fyvr12s1",ghost:"_140wn8nk _140wn8n2 fyvr11od fyvr12s1",feature:"_140wn8nl _140wn8n3 fyvr11pj fyvr12od",primary:"_140wn8nm _140wn8n4 fyvr11pd fyvr12od",glass:"_140wn8nn _140wn8n5 fyvr11tv fyvr12s1",emphasis:"_140wn8no _140wn8n6 fyvr11u1 fyvr12s1",raised:"_140wn8np _140wn8n7 fyvr11tp fyvr12s1",danger:"_140wn8nq _140wn8n8 fyvr11op fyvr12od",text:"_140wn8nr _1qxj1ib9 _1qxj1ibf _1qxj1ib5 fyvr11mv fyvr11ec fyvr11fw fyvr11fs fyvr11f4 _140wn8n9 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr11od fyvr12sd"},shape:{circle:"_140wn8ns _140wn8na fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",square:"_140wn8nt _140wn8nb fyvr11d0 fyvr11do fyvr11bo fyvr11cc"},disabled:{true:"_140wn8nu _140wn8nc fyvr12v1 fyvr12vp",false:"_140wn8nv _140wn8nd fyvr12v7 fyvr12w1 fyvr12vz"},size:{xs:"_140wn8nw _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _140wn8ne fyvr1ws fyvr1yo",sm:"_140wn8nx _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nf fyvr1ww fyvr1ys",md:"_140wn8ny _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8ng fyvr1x0 fyvr1yw",lg:"_140wn8nz _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _140wn8nh fyvr1x0 fyvr1yw"},iconOnly:{true:"_140wn8n10"},hasLeftIcon:{true:"_140wn8n11"},hasRightIcon:{true:"_140wn8n12"},activeOutline:{light:"_140wn8n13",bold:"_140wn8n14"}},defaultVariants:{},compoundVariants:[[{iconOnly:!0,size:"xs"},"_140wn8n15"],[{iconOnly:!0,size:"sm"},"_140wn8n16"],[{iconOnly:!0,size:"md"},"_140wn8n17"],[{iconOnly:!0,size:"lg"},"_140wn8n18"],[{iconOnly:!1,hasLeftIcon:!0,size:"xs"},"_140wn8n19"],[{iconOnly:!1,hasLeftIcon:!0,size:"sm"},"_140wn8n1a"],[{iconOnly:!1,hasLeftIcon:!0,size:"md"},"_140wn8n1b"],[{iconOnly:!1,hasRightIcon:!0,size:"xs"},"_140wn8n1c"],[{iconOnly:!1,hasRightIcon:!0,size:"sm"},"_140wn8n1d"],[{iconOnly:!1,hasRightIcon:!0,size:"md"},"_140wn8n1e"]]});const We=m.forwardRef((t,e)=>{const{as:r="button",activeOutline:n,className:s,disabled:i=!1,display:o="inline-flex",fontWeight:a="bold",pending:c=!1,label:l,leftIcon:u,rightIcon:f,size:d="md",variant:h="glass",width:y="fit",shape:p="circle",type:b="button",...v}=t,g=u!==void 0&&l!==void 0,x=f!==void 0&&l!==void 0,k=u!==void 0&&l===void 0,S=d==="xs"?"xs":"sm";return E.jsx(me,{as:r,className:Yr(s,XG({activeOutline:n,disabled:i||c,hasLeftIcon:g,hasRightIcon:x,iconOnly:k,size:h==="text"?void 0:d,shape:h==="text"?void 0:p,variant:h})),disabled:i||c,display:o,fontWeight:a,ref:e,type:b,width:y,...v,children:k?E.jsx(u,{size:S}):E.jsxs(me,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[E.jsxs(me,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[u&&E.jsx(u,{size:S}),E.jsx(Tt,{children:l})]}),f&&E.jsx(f,{size:S})]})})});var ZG=At({defaultClassName:"rhmai63",variantClassNames:{clickable:{true:"rhmai64 rhmai60 fyvr11a4 fyvr11ag fyvr11as fyvr11b4 fyvr12vz fyvr12v7 _4efw240"},disabled:{true:"rhmai65"},outlined:{true:"rhmai66 rhmai61 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12nj fyvr12g7 fyvr121j fyvr128v"},blur:{true:"rhmai67 rhmai62 fyvr11ms"}},defaultVariants:{},compoundVariants:[]});const eq=m.forwardRef((t,e)=>{const{className:r,children:n,clickable:s,outlined:i,disabled:o,blur:a,width:c="full",...l}=t;return E.jsx(me,{className:Yr(r,ZG({clickable:s,outlined:i,disabled:o,blur:a})),background:i?"transparent":"backgroundSecondary",overflow:"hidden",borderRadius:"md",padding:"4",width:c,ref:e,...l,children:n})});function tq(t,e){typeof t=="function"?t(e):t!=null&&(t.current=e)}function cg(...t){return e=>t.forEach(r=>tq(r,e))}function $e(...t){return m.useCallback(cg(...t),t)}function rq(t,e){const r=m.createContext(e);function n(i){const{children:o,...a}=i,c=m.useMemo(()=>a,Object.values(a));return E.jsx(r.Provider,{value:c,children:o})}function s(i){const o=m.useContext(r);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return n.displayName=t+"Provider",[n,s]}function Mr(t,e=[]){let r=[];function n(i,o){const a=m.createContext(o),c=r.length;r=[...r,o];function l(f){const{scope:d,children:h,...y}=f,p=(d==null?void 0:d[t][c])||a,b=m.useMemo(()=>y,Object.values(y));return E.jsx(p.Provider,{value:b,children:h})}function u(f,d){const h=(d==null?void 0:d[t][c])||a,y=m.useContext(h);if(y)return y;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const s=()=>{const i=r.map(o=>m.createContext(o));return function(a){const c=(a==null?void 0:a[t])||i;return m.useMemo(()=>({[`__scope${t}`]:{...a,[t]:c}}),[a,c])}};return s.scopeName=t,[n,nq(s,...e)]}function nq(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(i){const o=n.reduce((a,{useScope:c,scopeName:l})=>{const f=c(i)[`__scope${l}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function ce(t,e,{checkForDefaultPrevented:r=!0}={}){return function(s){if(t==null||t(s),r===!1||!s.defaultPrevented)return e==null?void 0:e(s)}}function _r(t){const e=m.useRef(t);return m.useEffect(()=>{e.current=t}),m.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function is({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,s]=sq({defaultProp:e,onChange:r}),i=t!==void 0,o=i?t:n,a=_r(r),c=m.useCallback(l=>{if(i){const f=typeof l=="function"?l(t):l;f!==t&&a(f)}else s(l)},[i,t,s,a]);return[o,c]}function sq({defaultProp:t,onChange:e}){const r=m.useState(t),[n]=r,s=m.useRef(n),i=_r(e);return m.useEffect(()=>{s.current!==n&&(i(n),s.current=n)},[n,s,i]),r}function lg(t){const e=m.useRef({value:t,previous:t});return m.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var xr=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{};function ug(t){const[e,r]=m.useState(void 0);return xr(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const i=s[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=t.offsetWidth,a=t.offsetHeight;r({width:o,height:a})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}function iq(t,e){return m.useReducer((r,n)=>e[r][n]??r,t)}var Xr=t=>{const{present:e,children:r}=t,n=oq(e),s=typeof r=="function"?r({present:n.isPresent}):m.Children.only(r),i=$e(n.ref,aq(s));return typeof r=="function"||n.isPresent?m.cloneElement(s,{ref:i}):null};Xr.displayName="Presence";function oq(t){const[e,r]=m.useState(),n=m.useRef({}),s=m.useRef(t),i=m.useRef("none"),o=t?"mounted":"unmounted",[a,c]=iq(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const l=X1(n.current);i.current=a==="mounted"?l:"none"},[a]),xr(()=>{const l=n.current,u=s.current;if(u!==t){const d=i.current,h=X1(l);t?c("MOUNT"):h==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==h?"ANIMATION_OUT":"UNMOUNT"),s.current=t}},[t,c]),xr(()=>{if(e){const l=f=>{const h=X1(n.current).includes(f.animationName);f.target===e&&h&&ja.flushSync(()=>c("ANIMATION_END"))},u=f=>{f.target===e&&(i.current=X1(n.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(l=>{l&&(n.current=getComputedStyle(l)),r(l)},[])}}function X1(t){return(t==null?void 0:t.animationName)||"none"}function aq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var ll=m.forwardRef((t,e)=>{const{children:r,...n}=t,s=m.Children.toArray(r),i=s.find(cq);if(i){const o=i.props.children,a=s.map(c=>c===i?m.Children.count(o)>1?m.Children.only(null):m.isValidElement(o)?o.props.children:null:c);return E.jsx(ow,{...n,ref:e,children:m.isValidElement(o)?m.cloneElement(o,void 0,a):null})}return E.jsx(ow,{...n,ref:e,children:r})});ll.displayName="Slot";var ow=m.forwardRef((t,e)=>{const{children:r,...n}=t;if(m.isValidElement(r)){const s=uq(r);return m.cloneElement(r,{...lq(n,r.props),ref:e?cg(e,s):s})}return m.Children.count(r)>1?m.Children.only(null):null});ow.displayName="SlotClone";var hI=({children:t})=>E.jsx(E.Fragment,{children:t});function cq(t){return m.isValidElement(t)&&t.type===hI}function lq(t,e){const r={...e};for(const n in e){const s=t[n],i=e[n];/^on[A-Z]/.test(n)?s&&i?r[n]=(...a)=>{i(...a),s(...a)}:s&&(r[n]=s):n==="style"?r[n]={...s,...i}:n==="className"&&(r[n]=[s,i].filter(Boolean).join(" "))}return{...t,...r}}function uq(t){var e,r;let n=(e=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:e.get,s=n&&"isReactWarning"in n&&n.isReactWarning;return s?t.ref:(n=(r=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:r.get,s=n&&"isReactWarning"in n&&n.isReactWarning,s?t.props.ref:t.props.ref||t.ref)}var fq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Ae=fq.reduce((t,e)=>{const r=m.forwardRef((n,s)=>{const{asChild:i,...o}=n,a=i?ll:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),E.jsx(a,{...o,ref:s})});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function hE(t,e){t&&ja.flushSync(()=>t.dispatchEvent(e))}var pE="Checkbox",[dq,Nde]=Mr(pE),[hq,pq]=dq(pE),pI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,x=>d(x)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l}),g=m.useRef(b);return m.useEffect(()=>{const x=f==null?void 0:f.form;if(x){const k=()=>v(g.current);return x.addEventListener("reset",k),()=>x.removeEventListener("reset",k)}},[f,v]),E.jsxs(hq,{scope:r,state:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"checkbox","aria-checked":Yc(b)?"mixed":b,"aria-required":o,"data-state":gI(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onKeyDown:ce(t.onKeyDown,x=>{x.key==="Enter"&&x.preventDefault()}),onClick:ce(t.onClick,x=>{v(k=>Yc(k)?!0:!k),p&&(y.current=x.isPropagationStopped(),y.current||x.stopPropagation())})}),p&&E.jsx(yq,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});pI.displayName=pE;var yI="CheckboxIndicator",vI=m.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...s}=t,i=pq(yI,r);return E.jsx(Xr,{present:n||Yc(i.state)||i.state===!0,children:E.jsx(Ae.span,{"data-state":gI(i.state),"data-disabled":i.disabled?"":void 0,...s,ref:e,style:{pointerEvents:"none",...t.style}})})});vI.displayName=yI;var yq=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});c.indeterminate=Yc(r),f.call(c,Yc(r)?!1:r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:Yc(r)?!1:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function Yc(t){return t==="indeterminate"}function gI(t){return Yc(t)?"indeterminate":t?"checked":"unchecked"}var vq=pI,gq=vI,mq=At({defaultClassName:"_43lu9r4",variantClassNames:{labelLocation:{top:"_43lu9r5 _43lu9r0 fyvr11kw fyvr11i4 fyvr118k fyvr11h0",left:"_43lu9r6 _43lu9r1 fyvr11ko fyvr11ic fyvr118k fyvr11h0",right:"_43lu9r7 _43lu9r2 fyvr11ko fyvr11ic fyvr118k fyvr11h0",hidden:"_43lu9r8 _43lu9r3 fyvr1188 fyvr11h0"}},defaultVariants:{},compoundVariants:[]});const ud=t=>{const{id:e,label:r,description:n,labelLocation:s="top",children:i,...o}=t,a=()=>r||n?E.jsxs(me,{flexDirection:"column",gap:"0.5",children:[r&&E.jsx(Tt,{variant:"small",color:"text100",hidden:s==="hidden",children:r}),n&&E.jsx(Tt,{variant:"small",color:"text50",hidden:s==="hidden",children:n})]}):null;return E.jsxs(me,{as:"label",className:mq({labelLocation:s}),htmlFor:e,...o,children:[["left","top","hidden"].includes(s)&&a(),i,s==="right"&&a()]})};var fd=At({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const xq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),mI=({size:t="sm",...e})=>E.jsx(me,{as:xq,className:fd({size:t}),...e}),bq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m3.888 7.53 1.06-1.06 5.47 5.47 5.47-5.47 1.06 1.06-6.53 6.53-6.53-6.53Z",clipRule:"evenodd"})}),xI=({size:t="sm",...e})=>E.jsx(me,{as:bq,className:fd({size:t}),...e}),wq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m10.418 11.06 4.47 4.47 1.06-1.06L11.48 10l4.47-4.47-1.06-1.06-4.47 4.47-4.47-4.47-1.06 1.06L9.357 10l-4.47 4.47 1.06 1.06 4.47-4.47Z",clipRule:"evenodd"})}),yE=({size:t="sm",...e})=>E.jsx(me,{as:wq,className:fd({size:t}),...e}),Cq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.608 6.75h-5.19v-1.5h7.75V13h-1.5V7.81l-7.72 7.72-1.06-1.06 7.72-7.72Z",clipRule:"evenodd"})}),Eq=({size:t="sm",...e})=>E.jsx(me,{as:Cq,className:fd({size:t}),...e}),kq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.918 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0Zm-.677 4.383a5.5 5.5 0 1 1 1.06-1.06l2.648 2.647-1.061 1.06-2.647-2.647Z",clipRule:"evenodd"})}),Aq=({size:t="sm",...e})=>E.jsx(me,{as:kq,className:fd({size:t}),...e}),Sq=t=>E.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:E.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"m12.28 2.856-6.71 8.887h4.134l-1.424 6.2 6.887-8.71h-4.322l1.435-6.377Z",clipRule:"evenodd"})}),Tq=({size:t="sm",...e})=>E.jsx(me,{as:Sq,className:fd({size:t}),...e});var Pq=At({defaultClassName:"_1c9x66f1 _1c9x66f0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11h0 fyvr11ko fyvr11jg fyvr11od fyvr12w1 fyvr12vz fyvr12vr fyvr12v7 fyvr12v3 _4efw240",variantClassNames:{size:{sm:"_1c9x66f2",lg:"_1c9x66f3"}},defaultVariants:{},compoundVariants:[]}),Iq="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const Oq=({size:t="sm"})=>E.jsx(gq,{className:Iq,children:E.jsx(mI,{size:t==="lg"?"sm":"xs"})});m.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:s,label:i="",labelLocation:o="left",size:a="sm",...c}=t;return E.jsx(ud,{disabled:r,display:"flex",id:n??s,label:i,labelLocation:o,whiteSpace:"nowrap",children:E.jsx(vq,{className:Pq({size:a}),disabled:r,id:n??s,name:s,ref:e,...c,children:E.jsx(Oq,{size:a})})})});$r.createContext(null);var Rq=rU.useId||(()=>{}),Nq=0;function es(t){const[e,r]=m.useState(Rq());return xr(()=>{t||r(n=>n??String(Nq++))},[t]),t||(e?`radix-${e}`:"")}var vE="Collapsible",[_q,_de]=Mr(vE),[Mq,gE]=_q(vE),bI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:s,disabled:i,onOpenChange:o,...a}=t,[c=!1,l]=is({prop:n,defaultProp:s,onChange:o});return E.jsx(Mq,{scope:r,disabled:i,contentId:es(),open:c,onOpenToggle:m.useCallback(()=>l(u=>!u),[l]),children:E.jsx(Ae.div,{"data-state":xE(c),"data-disabled":i?"":void 0,...a,ref:e})})});bI.displayName=vE;var wI="CollapsibleTrigger",CI=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,s=gE(wI,r);return E.jsx(Ae.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":xE(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...n,ref:e,onClick:ce(t.onClick,s.onOpenToggle)})});CI.displayName=wI;var mE="CollapsibleContent",EI=m.forwardRef((t,e)=>{const{forceMount:r,...n}=t,s=gE(mE,t.__scopeCollapsible);return E.jsx(Xr,{present:r||s.open,children:({present:i})=>E.jsx(Dq,{...n,ref:e,present:i})})});EI.displayName=mE;var Dq=m.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:s,...i}=t,o=gE(mE,r),[a,c]=m.useState(n),l=m.useRef(null),u=$e(e,l),f=m.useRef(0),d=f.current,h=m.useRef(0),y=h.current,p=o.open||a,b=m.useRef(p),v=m.useRef();return m.useEffect(()=>{const g=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(g)},[]),xr(()=>{const g=l.current;if(g){v.current=v.current||{transitionDuration:g.style.transitionDuration,animationName:g.style.animationName},g.style.transitionDuration="0s",g.style.animationName="none";const x=g.getBoundingClientRect();f.current=x.height,h.current=x.width,b.current||(g.style.transitionDuration=v.current.transitionDuration,g.style.animationName=v.current.animationName),c(n)}},[o.open,n]),E.jsx(Ae.div,{"data-state":xE(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!p,...i,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":y?`${y}px`:void 0,...t.style},children:p&&s})});function xE(t){return t?"open":"closed"}var Bq=bI,Lq=CI,jq=EI,lS="64px",Fq="_4j62fl0",Uq="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",$q="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",Wq="_4j62fl5";const Vq=t=>{const{className:e,children:r,defaultOpen:n,open:s,onOpenChange:i,label:o,...a}=t,[c,l]=m.useState(n),u=s??c,f=h=>{s===void 0&&l(h)},d=h=>{f(h),i==null||i(h)};return E.jsx(Bq,{open:u,defaultOpen:n,onOpenChange:d,asChild:!0,children:E.jsxs(me,{as:Au.div,className:Yr(e,Fq),initial:{height:u?"auto":lS},animate:{height:u?"auto":lS},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[E.jsxs(Lq,{className:Uq,children:[E.jsx(Tt,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),E.jsx(me,{as:Au.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:u?180:0},animate:{rotate:u?180:0},transition:{ease:"linear",duration:.1},children:E.jsx(xI,{className:Wq,color:"text50"})})]}),E.jsx(aI,{children:u&&E.jsx(jq,{className:$q,asChild:!0,forceMount:!0,children:E.jsx(Au.div,{initial:{opacity:u?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function fg(t){const e=t+"CollectionProvider",[r,n]=Mr(e),[s,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=h=>{const{scope:y,children:p}=h,b=$r.useRef(null),v=$r.useRef(new Map).current;return E.jsx(s,{scope:y,itemMap:v,collectionRef:b,children:p})};o.displayName=e;const a=t+"CollectionSlot",c=$r.forwardRef((h,y)=>{const{scope:p,children:b}=h,v=i(a,p),g=$e(y,v.collectionRef);return E.jsx(ll,{ref:g,children:b})});c.displayName=a;const l=t+"CollectionItemSlot",u="data-radix-collection-item",f=$r.forwardRef((h,y)=>{const{scope:p,children:b,...v}=h,g=$r.useRef(null),x=$e(y,g),k=i(l,p);return $r.useEffect(()=>(k.itemMap.set(g,{ref:g,...v}),()=>void k.itemMap.delete(g))),E.jsx(ll,{[u]:"",ref:x,children:b})});f.displayName=l;function d(h){const y=i(t+"CollectionConsumer",h);return $r.useCallback(()=>{const b=y.collectionRef.current;if(!b)return[];const v=Array.from(b.querySelectorAll(`[${u}]`));return Array.from(y.itemMap.values()).sort((k,S)=>v.indexOf(k.ref.current)-v.indexOf(S.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:o,Slot:c,ItemSlot:f},d,n]}var Hq=m.createContext(void 0);function a1(t){const e=m.useContext(Hq);return t||e||"ltr"}function zq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t);m.useEffect(()=>{const n=s=>{s.key==="Escape"&&r(s)};return e.addEventListener("keydown",n,{capture:!0}),()=>e.removeEventListener("keydown",n,{capture:!0})},[r,e])}var Gq="DismissableLayer",aw="dismissableLayer.update",qq="dismissableLayer.pointerDownOutside",Kq="dismissableLayer.focusOutside",uS,kI=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dd=m.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:s,onFocusOutside:i,onInteractOutside:o,onDismiss:a,...c}=t,l=m.useContext(kI),[u,f]=m.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=m.useState({}),y=$e(e,R=>f(R)),p=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),v=p.indexOf(b),g=u?p.indexOf(u):-1,x=l.layersWithOutsidePointerEventsDisabled.size>0,k=g>=v,S=Jq(R=>{const _=R.target,V=[...l.branches].some(F=>F.contains(_));!k||V||(s==null||s(R),o==null||o(R),R.defaultPrevented||a==null||a())},d),I=Yq(R=>{const _=R.target;[...l.branches].some(F=>F.contains(_))||(i==null||i(R),o==null||o(R),R.defaultPrevented||a==null||a())},d);return zq(R=>{g===l.layers.size-1&&(n==null||n(R),!R.defaultPrevented&&a&&(R.preventDefault(),a()))},d),m.useEffect(()=>{if(u)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(uS=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(u)),l.layers.add(u),fS(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=uS)}},[u,d,r,l]),m.useEffect(()=>()=>{u&&(l.layers.delete(u),l.layersWithOutsidePointerEventsDisabled.delete(u),fS())},[u,l]),m.useEffect(()=>{const R=()=>h({});return document.addEventListener(aw,R),()=>document.removeEventListener(aw,R)},[]),E.jsx(Ae.div,{...c,ref:y,style:{pointerEvents:x?k?"auto":"none":void 0,...t.style},onFocusCapture:ce(t.onFocusCapture,I.onFocusCapture),onBlurCapture:ce(t.onBlurCapture,I.onBlurCapture),onPointerDownCapture:ce(t.onPointerDownCapture,S.onPointerDownCapture)})});dd.displayName=Gq;var Qq="DismissableLayerBranch",AI=m.forwardRef((t,e)=>{const r=m.useContext(kI),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),E.jsx(Ae.div,{...t,ref:s})});AI.displayName=Qq;function Jq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1),s=m.useRef(()=>{});return m.useEffect(()=>{const i=a=>{if(a.target&&!n.current){let c=function(){SI(qq,r,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",s.current),s.current=c,e.addEventListener("click",s.current,{once:!0})):c()}else e.removeEventListener("click",s.current);n.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",s.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function Yq(t,e=globalThis==null?void 0:globalThis.document){const r=_r(t),n=m.useRef(!1);return m.useEffect(()=>{const s=i=>{i.target&&!n.current&&SI(Kq,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",s),()=>e.removeEventListener("focusin",s)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fS(){const t=new CustomEvent(aw);document.dispatchEvent(t)}function SI(t,e,r,{discrete:n}){const s=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?hE(s,i):s.dispatchEvent(i)}var Xq=dd,Zq=AI,nx=0;function bE(){m.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??dS()),document.body.insertAdjacentElement("beforeend",t[1]??dS()),nx++,()=>{nx===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),nx--}},[])}function dS(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}var sx="focusScope.autoFocusOnMount",ix="focusScope.autoFocusOnUnmount",hS={bubbles:!1,cancelable:!0},eK="FocusScope",dg=m.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:s,onUnmountAutoFocus:i,...o}=t,[a,c]=m.useState(null),l=_r(s),u=_r(i),f=m.useRef(null),d=$e(e,p=>c(p)),h=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(n){let p=function(x){if(h.paused||!a)return;const k=x.target;a.contains(k)?f.current=k:Io(f.current,{select:!0})},b=function(x){if(h.paused||!a)return;const k=x.relatedTarget;k!==null&&(a.contains(k)||Io(f.current,{select:!0}))},v=function(x){if(document.activeElement===document.body)for(const S of x)S.removedNodes.length>0&&Io(a)};document.addEventListener("focusin",p),document.addEventListener("focusout",b);const g=new MutationObserver(v);return a&&g.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",b),g.disconnect()}}},[n,a,h.paused]),m.useEffect(()=>{if(a){yS.add(h);const p=document.activeElement;if(!a.contains(p)){const v=new CustomEvent(sx,hS);a.addEventListener(sx,l),a.dispatchEvent(v),v.defaultPrevented||(tK(oK(TI(a)),{select:!0}),document.activeElement===p&&Io(a))}return()=>{a.removeEventListener(sx,l),setTimeout(()=>{const v=new CustomEvent(ix,hS);a.addEventListener(ix,u),a.dispatchEvent(v),v.defaultPrevented||Io(p??document.body,{select:!0}),a.removeEventListener(ix,u),yS.remove(h)},0)}}},[a,l,u,h]);const y=m.useCallback(p=>{if(!r&&!n||h.paused)return;const b=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(b&&v){const g=p.currentTarget,[x,k]=rK(g);x&&k?!p.shiftKey&&v===k?(p.preventDefault(),r&&Io(x,{select:!0})):p.shiftKey&&v===x&&(p.preventDefault(),r&&Io(k,{select:!0})):v===g&&p.preventDefault()}},[r,n,h.paused]);return E.jsx(Ae.div,{tabIndex:-1,...o,ref:d,onKeyDown:y})});dg.displayName=eK;function tK(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Io(n,{select:e}),document.activeElement!==r)return}function rK(t){const e=TI(t),r=pS(e,t),n=pS(e.reverse(),t);return[r,n]}function TI(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function pS(t,e){for(const r of t)if(!nK(r,{upTo:e}))return r}function nK(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function sK(t){return t instanceof HTMLInputElement&&"select"in t}function Io(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&sK(t)&&e&&t.select()}}var yS=iK();function iK(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=vS(t,e),t.unshift(e)},remove(e){var r;t=vS(t,e),(r=t[0])==null||r.resume()}}}function vS(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function oK(t){return t.filter(e=>e.tagName!=="A")}const aK=["top","right","bottom","left"],oi=Math.min,kn=Math.max,Gy=Math.round,Z1=Math.floor,Pa=t=>({x:t,y:t}),cK={left:"right",right:"left",bottom:"top",top:"bottom"},lK={start:"end",end:"start"};function cw(t,e,r){return kn(t,oi(e,r))}function io(t,e){return typeof t=="function"?t(e):t}function oo(t){return t.split("-")[0]}function hd(t){return t.split("-")[1]}function wE(t){return t==="x"?"y":"x"}function CE(t){return t==="y"?"height":"width"}function Ia(t){return["top","bottom"].includes(oo(t))?"y":"x"}function EE(t){return wE(Ia(t))}function uK(t,e,r){r===void 0&&(r=!1);const n=hd(t),s=EE(t),i=CE(s);let o=s==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=qy(o)),[o,qy(o)]}function fK(t){const e=qy(t);return[lw(t),e,lw(e)]}function lw(t){return t.replace(/start|end/g,e=>lK[e])}function dK(t,e,r){const n=["left","right"],s=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(t){case"top":case"bottom":return r?e?s:n:e?n:s;case"left":case"right":return e?i:o;default:return[]}}function hK(t,e,r,n){const s=hd(t);let i=dK(oo(t),r==="start",n);return s&&(i=i.map(o=>o+"-"+s),e&&(i=i.concat(i.map(lw)))),i}function qy(t){return t.replace(/left|right|bottom|top/g,e=>cK[e])}function pK(t){return{top:0,right:0,bottom:0,left:0,...t}}function PI(t){return typeof t!="number"?pK(t):{top:t,right:t,bottom:t,left:t}}function Ky(t){const{x:e,y:r,width:n,height:s}=t;return{width:n,height:s,top:r,left:e,right:e+n,bottom:r+s,x:e,y:r}}function gS(t,e,r){let{reference:n,floating:s}=t;const i=Ia(e),o=EE(e),a=CE(o),c=oo(e),l=i==="y",u=n.x+n.width/2-s.width/2,f=n.y+n.height/2-s.height/2,d=n[a]/2-s[a]/2;let h;switch(c){case"top":h={x:u,y:n.y-s.height};break;case"bottom":h={x:u,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:f};break;case"left":h={x:n.x-s.width,y:f};break;default:h={x:n.x,y:n.y}}switch(hd(e)){case"start":h[o]-=d*(r&&l?-1:1);break;case"end":h[o]+=d*(r&&l?-1:1);break}return h}const yK=async(t,e,r)=>{const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:o}=r,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:f}=gS(l,n,c),d=n,h={},y=0;for(let p=0;p({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:s,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=io(t,e)||{};if(l==null)return{};const f=PI(u),d={x:r,y:n},h=EE(s),y=CE(h),p=await o.getDimensions(l),b=h==="y",v=b?"top":"left",g=b?"bottom":"right",x=b?"clientHeight":"clientWidth",k=i.reference[y]+i.reference[h]-d[h]-i.floating[y],S=d[h]-i.reference[h],I=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let R=I?I[x]:0;(!R||!await(o.isElement==null?void 0:o.isElement(I)))&&(R=a.floating[x]||i.floating[y]);const _=k/2-S/2,V=R/2-p[y]/2-1,F=oi(f[v],V),X=oi(f[g],V),re=F,le=R-p[y]-X,ee=R/2-p[y]/2+_,D=cw(re,ee,le),G=!c.arrow&&hd(s)!=null&&ee!==D&&i.reference[y]/2-(eeee<=0)){var X,re;const ee=(((X=i.flip)==null?void 0:X.index)||0)+1,D=R[ee];if(D)return{data:{index:ee,overflows:F},reset:{placement:D}};let G=(re=F.filter(Z=>Z.overflows[0]<=0).sort((Z,C)=>Z.overflows[1]-C.overflows[1])[0])==null?void 0:re.placement;if(!G)switch(h){case"bestFit":{var le;const Z=(le=F.filter(C=>{if(I){const A=Ia(C.placement);return A===g||A==="y"}return!0}).map(C=>[C.placement,C.overflows.filter(A=>A>0).reduce((A,O)=>A+O,0)]).sort((C,A)=>C[1]-A[1])[0])==null?void 0:le[0];Z&&(G=Z);break}case"initialPlacement":G=a;break}if(s!==G)return{reset:{placement:G}}}return{}}}};function mS(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function xS(t){return aK.some(e=>t[e]>=0)}const mK=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...s}=io(t,e);switch(n){case"referenceHidden":{const i=await l0(e,{...s,elementContext:"reference"}),o=mS(i,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:xS(o)}}}case"escaped":{const i=await l0(e,{...s,altBoundary:!0}),o=mS(i,r.floating);return{data:{escapedOffsets:o,escaped:xS(o)}}}default:return{}}}}};async function xK(t,e){const{placement:r,platform:n,elements:s}=t,i=await(n.isRTL==null?void 0:n.isRTL(s.floating)),o=oo(r),a=hd(r),c=Ia(r)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,f=io(e,t);let{mainAxis:d,crossAxis:h,alignmentAxis:y}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&typeof y=="number"&&(h=a==="end"?y*-1:y),c?{x:h*u,y:d*l}:{x:d*l,y:h*u}}const bK=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:s,y:i,placement:o,middlewareData:a}=e,c=await xK(e,t);return o===((r=a.offset)==null?void 0:r.placement)&&(n=a.arrow)!=null&&n.alignmentOffset?{}:{x:s+c.x,y:i+c.y,data:{...c,placement:o}}}}},wK=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:s}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:b=>{let{x:v,y:g}=b;return{x:v,y:g}}},...c}=io(t,e),l={x:r,y:n},u=await l0(e,c),f=Ia(oo(s)),d=wE(f);let h=l[d],y=l[f];if(i){const b=d==="y"?"top":"left",v=d==="y"?"bottom":"right",g=h+u[b],x=h-u[v];h=cw(g,h,x)}if(o){const b=f==="y"?"top":"left",v=f==="y"?"bottom":"right",g=y+u[b],x=y-u[v];y=cw(g,y,x)}const p=a.fn({...e,[d]:h,[f]:y});return{...p,data:{x:p.x-r,y:p.y-n}}}}},CK=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:s,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=io(t,e),u={x:r,y:n},f=Ia(s),d=wE(f);let h=u[d],y=u[f];const p=io(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const x=d==="y"?"height":"width",k=i.reference[d]-i.floating[x]+b.mainAxis,S=i.reference[d]+i.reference[x]-b.mainAxis;hS&&(h=S)}if(l){var v,g;const x=d==="y"?"width":"height",k=["top","left"].includes(oo(s)),S=i.reference[f]-i.floating[x]+(k&&((v=o.offset)==null?void 0:v[f])||0)+(k?0:b.crossAxis),I=i.reference[f]+i.reference[x]+(k?0:((g=o.offset)==null?void 0:g[f])||0)-(k?b.crossAxis:0);yI&&(y=I)}return{[d]:h,[f]:y}}}},EK=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){const{placement:r,rects:n,platform:s,elements:i}=e,{apply:o=()=>{},...a}=io(t,e),c=await l0(e,a),l=oo(r),u=hd(r),f=Ia(r)==="y",{width:d,height:h}=n.floating;let y,p;l==="top"||l==="bottom"?(y=l,p=u===(await(s.isRTL==null?void 0:s.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,y=u==="end"?"top":"bottom");const b=h-c.top-c.bottom,v=d-c.left-c.right,g=oi(h-c[y],b),x=oi(d-c[p],v),k=!e.middlewareData.shift;let S=g,I=x;if(f?I=u||k?oi(x,v):v:S=u||k?oi(g,b):b,k&&!u){const _=kn(c.left,0),V=kn(c.right,0),F=kn(c.top,0),X=kn(c.bottom,0);f?I=d-2*(_!==0||V!==0?_+V:kn(c.left,c.right)):S=h-2*(F!==0||X!==0?F+X:kn(c.top,c.bottom))}await o({...e,availableWidth:I,availableHeight:S});const R=await s.getDimensions(i.floating);return d!==R.width||h!==R.height?{reset:{rects:!0}}:{}}}};function pd(t){return II(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ho(t){var e;return(e=(II(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function II(t){return t instanceof Node||t instanceof Pn(t).Node}function yi(t){return t instanceof Element||t instanceof Pn(t).Element}function vi(t){return t instanceof HTMLElement||t instanceof Pn(t).HTMLElement}function bS(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function c1(t){const{overflow:e,overflowX:r,overflowY:n,display:s}=_s(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(s)}function kK(t){return["table","td","th"].includes(pd(t))}function hg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function kE(t){const e=AE(),r=_s(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function AK(t){let e=Oa(t);for(;vi(e)&&!Uf(e);){if(hg(e))return null;if(kE(e))return e;e=Oa(e)}return null}function AE(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Uf(t){return["html","body","#document"].includes(pd(t))}function _s(t){return Pn(t).getComputedStyle(t)}function pg(t){return yi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Oa(t){if(pd(t)==="html")return t;const e=t.assignedSlot||t.parentNode||bS(t)&&t.host||ho(t);return bS(e)?e.host:e}function OI(t){const e=Oa(t);return Uf(e)?t.ownerDocument?t.ownerDocument.body:t.body:vi(e)&&c1(e)?e:OI(e)}function u0(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const s=OI(t),i=s===((n=t.ownerDocument)==null?void 0:n.body),o=Pn(s);return i?e.concat(o,o.visualViewport||[],c1(s)?s:[],o.frameElement&&r?u0(o.frameElement):[]):e.concat(s,u0(s,[],r))}function RI(t){const e=_s(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const s=vi(t),i=s?t.offsetWidth:r,o=s?t.offsetHeight:n,a=Gy(r)!==i||Gy(n)!==o;return a&&(r=i,n=o),{width:r,height:n,$:a}}function SE(t){return yi(t)?t:t.contextElement}function Su(t){const e=SE(t);if(!vi(e))return Pa(1);const r=e.getBoundingClientRect(),{width:n,height:s,$:i}=RI(e);let o=(i?Gy(r.width):r.width)/n,a=(i?Gy(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const SK=Pa(0);function NI(t){const e=Pn(t);return!AE()||!e.visualViewport?SK:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function TK(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Pn(t)?!1:e}function ul(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const s=t.getBoundingClientRect(),i=SE(t);let o=Pa(1);e&&(n?yi(n)&&(o=Su(n)):o=Su(t));const a=TK(i,r,n)?NI(i):Pa(0);let c=(s.left+a.x)/o.x,l=(s.top+a.y)/o.y,u=s.width/o.x,f=s.height/o.y;if(i){const d=Pn(i),h=n&&yi(n)?Pn(n):n;let y=d,p=y.frameElement;for(;p&&n&&h!==y;){const b=Su(p),v=p.getBoundingClientRect(),g=_s(p),x=v.left+(p.clientLeft+parseFloat(g.paddingLeft))*b.x,k=v.top+(p.clientTop+parseFloat(g.paddingTop))*b.y;c*=b.x,l*=b.y,u*=b.x,f*=b.y,c+=x,l+=k,y=Pn(p),p=y.frameElement}}return Ky({width:u,height:f,x:c,y:l})}function PK(t){let{elements:e,rect:r,offsetParent:n,strategy:s}=t;const i=s==="fixed",o=ho(n),a=e?hg(e.floating):!1;if(n===o||a&&i)return r;let c={scrollLeft:0,scrollTop:0},l=Pa(1);const u=Pa(0),f=vi(n);if((f||!f&&!i)&&((pd(n)!=="body"||c1(o))&&(c=pg(n)),vi(n))){const d=ul(n);l=Su(n),u.x=d.x+n.clientLeft,u.y=d.y+n.clientTop}return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-c.scrollLeft*l.x+u.x,y:r.y*l.y-c.scrollTop*l.y+u.y}}function IK(t){return Array.from(t.getClientRects())}function _I(t){return ul(ho(t)).left+pg(t).scrollLeft}function OK(t){const e=ho(t),r=pg(t),n=t.ownerDocument.body,s=kn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=kn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+_I(t);const a=-r.scrollTop;return _s(n).direction==="rtl"&&(o+=kn(e.clientWidth,n.clientWidth)-s),{width:s,height:i,x:o,y:a}}function RK(t,e){const r=Pn(t),n=ho(t),s=r.visualViewport;let i=n.clientWidth,o=n.clientHeight,a=0,c=0;if(s){i=s.width,o=s.height;const l=AE();(!l||l&&e==="fixed")&&(a=s.offsetLeft,c=s.offsetTop)}return{width:i,height:o,x:a,y:c}}function NK(t,e){const r=ul(t,!0,e==="fixed"),n=r.top+t.clientTop,s=r.left+t.clientLeft,i=vi(t)?Su(t):Pa(1),o=t.clientWidth*i.x,a=t.clientHeight*i.y,c=s*i.x,l=n*i.y;return{width:o,height:a,x:c,y:l}}function wS(t,e,r){let n;if(e==="viewport")n=RK(t,r);else if(e==="document")n=OK(ho(t));else if(yi(e))n=NK(e,r);else{const s=NI(t);n={...e,x:e.x-s.x,y:e.y-s.y}}return Ky(n)}function MI(t,e){const r=Oa(t);return r===e||!yi(r)||Uf(r)?!1:_s(r).position==="fixed"||MI(r,e)}function _K(t,e){const r=e.get(t);if(r)return r;let n=u0(t,[],!1).filter(a=>yi(a)&&pd(a)!=="body"),s=null;const i=_s(t).position==="fixed";let o=i?Oa(t):t;for(;yi(o)&&!Uf(o);){const a=_s(o),c=kE(o);!c&&a.position==="fixed"&&(s=null),(i?!c&&!s:!c&&a.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||c1(o)&&!c&&MI(t,o))?n=n.filter(u=>u!==o):s=a,o=Oa(o)}return e.set(t,n),n}function MK(t){let{element:e,boundary:r,rootBoundary:n,strategy:s}=t;const o=[...r==="clippingAncestors"?hg(e)?[]:_K(e,this._c):[].concat(r),n],a=o[0],c=o.reduce((l,u)=>{const f=wS(e,u,s);return l.top=kn(f.top,l.top),l.right=oi(f.right,l.right),l.bottom=oi(f.bottom,l.bottom),l.left=kn(f.left,l.left),l},wS(e,a,s));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function DK(t){const{width:e,height:r}=RI(t);return{width:e,height:r}}function BK(t,e,r){const n=vi(e),s=ho(e),i=r==="fixed",o=ul(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=Pa(0);if(n||!n&&!i)if((pd(e)!=="body"||c1(s))&&(a=pg(e)),n){const f=ul(e,!0,i,e);c.x=f.x+e.clientLeft,c.y=f.y+e.clientTop}else s&&(c.x=_I(s));const l=o.left+a.scrollLeft-c.x,u=o.top+a.scrollTop-c.y;return{x:l,y:u,width:o.width,height:o.height}}function ox(t){return _s(t).position==="static"}function CS(t,e){return!vi(t)||_s(t).position==="fixed"?null:e?e(t):t.offsetParent}function DI(t,e){const r=Pn(t);if(hg(t))return r;if(!vi(t)){let s=Oa(t);for(;s&&!Uf(s);){if(yi(s)&&!ox(s))return s;s=Oa(s)}return r}let n=CS(t,e);for(;n&&kK(n)&&ox(n);)n=CS(n,e);return n&&Uf(n)&&ox(n)&&!kE(n)?r:n||AK(t)||r}const LK=async function(t){const e=this.getOffsetParent||DI,r=this.getDimensions,n=await r(t.floating);return{reference:BK(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function jK(t){return _s(t).direction==="rtl"}const FK={convertOffsetParentRelativeRectToViewportRelativeRect:PK,getDocumentElement:ho,getClippingRect:MK,getOffsetParent:DI,getElementRects:LK,getClientRects:IK,getDimensions:DK,getScale:Su,isElement:yi,isRTL:jK};function UK(t,e){let r=null,n;const s=ho(t);function i(){var a;clearTimeout(n),(a=r)==null||a.disconnect(),r=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:f,height:d}=t.getBoundingClientRect();if(a||e(),!f||!d)return;const h=Z1(u),y=Z1(s.clientWidth-(l+f)),p=Z1(s.clientHeight-(u+d)),b=Z1(l),g={rootMargin:-h+"px "+-y+"px "+-p+"px "+-b+"px",threshold:kn(0,oi(1,c))||1};let x=!0;function k(S){const I=S[0].intersectionRatio;if(I!==c){if(!x)return o();I?o(!1,I):n=setTimeout(()=>{o(!1,1e-7)},1e3)}x=!1}try{r=new IntersectionObserver(k,{...g,root:s.ownerDocument})}catch{r=new IntersectionObserver(k,g)}r.observe(t)}return o(!0),i}function $K(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:s=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=n,l=SE(t),u=s||i?[...l?u0(l):[],...u0(e)]:[];u.forEach(v=>{s&&v.addEventListener("scroll",r,{passive:!0}),i&&v.addEventListener("resize",r)});const f=l&&a?UK(l,r):null;let d=-1,h=null;o&&(h=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&h&&(h.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var x;(x=h)==null||x.observe(e)})),r()}),l&&!c&&h.observe(l),h.observe(e));let y,p=c?ul(t):null;c&&b();function b(){const v=ul(t);p&&(v.x!==p.x||v.y!==p.y||v.width!==p.width||v.height!==p.height)&&r(),p=v,y=requestAnimationFrame(b)}return r(),()=>{var v;u.forEach(g=>{s&&g.removeEventListener("scroll",r),i&&g.removeEventListener("resize",r)}),f==null||f(),(v=h)==null||v.disconnect(),h=null,c&&cancelAnimationFrame(y)}}const WK=bK,VK=wK,HK=gK,zK=EK,GK=mK,ES=vK,qK=CK,KK=(t,e,r)=>{const n=new Map,s={platform:FK,...r},i={...s.platform,_c:n};return yK(t,e,{...s,platform:i})};var Up=typeof document<"u"?m.useLayoutEffect:m.useEffect;function Qy(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let r,n,s;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(r=t.length,r!==e.length)return!1;for(n=r;n--!==0;)if(!Qy(t[n],e[n]))return!1;return!0}if(s=Object.keys(t),r=s.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){const i=s[n];if(!(i==="_owner"&&t.$$typeof)&&!Qy(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function BI(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function kS(t,e){const r=BI(t);return Math.round(e*r)/r}function AS(t){const e=m.useRef(t);return Up(()=>{e.current=t}),e}function QK(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:s,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=t,[u,f]=m.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,h]=m.useState(n);Qy(d,n)||h(n);const[y,p]=m.useState(null),[b,v]=m.useState(null),g=m.useCallback(Z=>{Z!==I.current&&(I.current=Z,p(Z))},[]),x=m.useCallback(Z=>{Z!==R.current&&(R.current=Z,v(Z))},[]),k=i||y,S=o||b,I=m.useRef(null),R=m.useRef(null),_=m.useRef(u),V=c!=null,F=AS(c),X=AS(s),re=m.useCallback(()=>{if(!I.current||!R.current)return;const Z={placement:e,strategy:r,middleware:d};X.current&&(Z.platform=X.current),KK(I.current,R.current,Z).then(C=>{const A={...C,isPositioned:!0};le.current&&!Qy(_.current,A)&&(_.current=A,ja.flushSync(()=>{f(A)}))})},[d,e,r,X]);Up(()=>{l===!1&&_.current.isPositioned&&(_.current.isPositioned=!1,f(Z=>({...Z,isPositioned:!1})))},[l]);const le=m.useRef(!1);Up(()=>(le.current=!0,()=>{le.current=!1}),[]),Up(()=>{if(k&&(I.current=k),S&&(R.current=S),k&&S){if(F.current)return F.current(k,S,re);re()}},[k,S,re,F,V]);const ee=m.useMemo(()=>({reference:I,floating:R,setReference:g,setFloating:x}),[g,x]),D=m.useMemo(()=>({reference:k,floating:S}),[k,S]),G=m.useMemo(()=>{const Z={position:r,left:0,top:0};if(!D.floating)return Z;const C=kS(D.floating,u.x),A=kS(D.floating,u.y);return a?{...Z,transform:"translate("+C+"px, "+A+"px)",...BI(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:C,top:A}},[r,a,D.floating,u.x,u.y]);return m.useMemo(()=>({...u,update:re,refs:ee,elements:D,floatingStyles:G}),[u,re,ee,D,G])}const JK=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:s}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?ES({element:n.current,padding:s}).fn(r):{}:n?ES({element:n,padding:s}).fn(r):{}}}},YK=(t,e)=>({...WK(t),options:[t,e]}),XK=(t,e)=>({...VK(t),options:[t,e]}),ZK=(t,e)=>({...qK(t),options:[t,e]}),eQ=(t,e)=>({...HK(t),options:[t,e]}),tQ=(t,e)=>({...zK(t),options:[t,e]}),rQ=(t,e)=>({...GK(t),options:[t,e]}),nQ=(t,e)=>({...JK(t),options:[t,e]});var sQ="Arrow",LI=m.forwardRef((t,e)=>{const{children:r,width:n=10,height:s=5,...i}=t;return E.jsx(Ae.svg,{...i,ref:e,width:n,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:E.jsx("polygon",{points:"0,0 30,0 15,10"})})});LI.displayName=sQ;var iQ=LI,TE="Popper",[jI,yd]=Mr(TE),[oQ,FI]=jI(TE),UI=t=>{const{__scopePopper:e,children:r}=t,[n,s]=m.useState(null);return E.jsx(oQ,{scope:e,anchor:n,onAnchorChange:s,children:r})};UI.displayName=TE;var $I="PopperAnchor",WI=m.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...s}=t,i=FI($I,r),o=m.useRef(null),a=$e(e,o);return m.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:E.jsx(Ae.div,{...s,ref:a})});WI.displayName=$I;var PE="PopperContent",[aQ,cQ]=jI(PE),VI=m.forwardRef((t,e)=>{var r,n,s,i,o,a;const{__scopePopper:c,side:l="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:b=0,sticky:v="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:k,...S}=t,I=FI(PE,c),[R,_]=m.useState(null),V=$e(e,Re=>_(Re)),[F,X]=m.useState(null),re=ug(F),le=(re==null?void 0:re.width)??0,ee=(re==null?void 0:re.height)??0,D=l+(f!=="center"?"-"+f:""),G=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},Z=Array.isArray(p)?p:[p],C=Z.length>0,A={padding:G,boundary:Z.filter(uQ),altBoundary:C},{refs:O,floatingStyles:M,placement:B,isPositioned:W,middlewareData:q}=QK({strategy:"fixed",placement:D,whileElementsMounted:(...Re)=>$K(...Re,{animationFrame:x==="always"}),elements:{reference:I.anchor},middleware:[YK({mainAxis:u+ee,alignmentAxis:d}),y&&XK({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?ZK():void 0,...A}),y&&eQ({...A}),tQ({...A,apply:({elements:Re,rects:xt,availableWidth:tn,availableHeight:br})=>{const{width:U,height:se}=xt.reference,ae=Re.floating.style;ae.setProperty("--radix-popper-available-width",`${tn}px`),ae.setProperty("--radix-popper-available-height",`${br}px`),ae.setProperty("--radix-popper-anchor-width",`${U}px`),ae.setProperty("--radix-popper-anchor-height",`${se}px`)}}),F&&nQ({element:F,padding:h}),fQ({arrowWidth:le,arrowHeight:ee}),g&&rQ({strategy:"referenceHidden",...A})]}),[te,J]=GI(B),$=_r(k);xr(()=>{W&&($==null||$())},[W,$]);const K=(r=q.arrow)==null?void 0:r.x,ue=(n=q.arrow)==null?void 0:n.y,de=((s=q.arrow)==null?void 0:s.centerOffset)!==0,[oe,Ce]=m.useState();return xr(()=>{R&&Ce(window.getComputedStyle(R).zIndex)},[R]),E.jsx("div",{ref:O.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:W?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:oe,"--radix-popper-transform-origin":[(i=q.transformOrigin)==null?void 0:i.x,(o=q.transformOrigin)==null?void 0:o.y].join(" "),...((a=q.hide)==null?void 0:a.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:E.jsx(aQ,{scope:c,placedSide:te,onArrowChange:X,arrowX:K,arrowY:ue,shouldHideArrow:de,children:E.jsx(Ae.div,{"data-side":te,"data-align":J,...S,ref:V,style:{...S.style,animation:W?void 0:"none"}})})})});VI.displayName=PE;var HI="PopperArrow",lQ={top:"bottom",right:"left",bottom:"top",left:"right"},zI=m.forwardRef(function(e,r){const{__scopePopper:n,...s}=e,i=cQ(HI,n),o=lQ[i.placedSide];return E.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:E.jsx(iQ,{...s,ref:r,style:{...s.style,display:"block"}})})});zI.displayName=HI;function uQ(t){return t!==null}var fQ=t=>({name:"transformOrigin",options:t,fn(e){var r,n,s;const{placement:i,rects:o,middlewareData:a}=e,l=((r=a.arrow)==null?void 0:r.centerOffset)!==0,u=l?0:t.arrowWidth,f=l?0:t.arrowHeight,[d,h]=GI(i),y={start:"0%",center:"50%",end:"100%"}[h],p=(((n=a.arrow)==null?void 0:n.x)??0)+u/2,b=(((s=a.arrow)==null?void 0:s.y)??0)+f/2;let v="",g="";return d==="bottom"?(v=l?y:`${p}px`,g=`${-f}px`):d==="top"?(v=l?y:`${p}px`,g=`${o.floating.height+f}px`):d==="right"?(v=`${-f}px`,g=l?y:`${b}px`):d==="left"&&(v=`${o.floating.width+f}px`,g=l?y:`${b}px`),{data:{x:v,y:g}}}});function GI(t){const[e,r="center"]=t.split("-");return[e,r]}var IE=UI,OE=WI,RE=VI,NE=zI,dQ="Portal",l1=m.forwardRef((t,e)=>{var r;const{container:n,...s}=t,[i,o]=m.useState(!1);xr(()=>o(!0),[]);const a=n||i&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return a?hW.createPortal(E.jsx(Ae.div,{...s,ref:e}),a):null});l1.displayName=dQ;var ax="rovingFocusGroup.onEntryFocus",hQ={bubbles:!1,cancelable:!0},yg="RovingFocusGroup",[uw,qI,pQ]=fg(yg),[yQ,vd]=Mr(yg,[pQ]),[vQ,gQ]=yQ(yg),KI=m.forwardRef((t,e)=>E.jsx(uw.Provider,{scope:t.__scopeRovingFocusGroup,children:E.jsx(uw.Slot,{scope:t.__scopeRovingFocusGroup,children:E.jsx(mQ,{...t,ref:e})})}));KI.displayName=yg;var mQ=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:s=!1,dir:i,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...f}=t,d=m.useRef(null),h=$e(e,d),y=a1(i),[p=null,b]=is({prop:o,defaultProp:a,onChange:c}),[v,g]=m.useState(!1),x=_r(l),k=qI(r),S=m.useRef(!1),[I,R]=m.useState(0);return m.useEffect(()=>{const _=d.current;if(_)return _.addEventListener(ax,x),()=>_.removeEventListener(ax,x)},[x]),E.jsx(vQ,{scope:r,orientation:n,dir:y,loop:s,currentTabStopId:p,onItemFocus:m.useCallback(_=>b(_),[b]),onItemShiftTab:m.useCallback(()=>g(!0),[]),onFocusableItemAdd:m.useCallback(()=>R(_=>_+1),[]),onFocusableItemRemove:m.useCallback(()=>R(_=>_-1),[]),children:E.jsx(Ae.div,{tabIndex:v||I===0?-1:0,"data-orientation":n,...f,ref:h,style:{outline:"none",...t.style},onMouseDown:ce(t.onMouseDown,()=>{S.current=!0}),onFocus:ce(t.onFocus,_=>{const V=!S.current;if(_.target===_.currentTarget&&V&&!v){const F=new CustomEvent(ax,hQ);if(_.currentTarget.dispatchEvent(F),!F.defaultPrevented){const X=k().filter(G=>G.focusable),re=X.find(G=>G.active),le=X.find(G=>G.id===p),D=[re,le,...X].filter(Boolean).map(G=>G.ref.current);YI(D,u)}}S.current=!1}),onBlur:ce(t.onBlur,()=>g(!1))})})}),QI="RovingFocusGroupItem",JI=m.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:s=!1,tabStopId:i,...o}=t,a=es(),c=i||a,l=gQ(QI,r),u=l.currentTabStopId===c,f=qI(r),{onFocusableItemAdd:d,onFocusableItemRemove:h}=l;return m.useEffect(()=>{if(n)return d(),()=>h()},[n,d,h]),E.jsx(uw.ItemSlot,{scope:r,id:c,focusable:n,active:s,children:E.jsx(Ae.span,{tabIndex:u?0:-1,"data-orientation":l.orientation,...o,ref:e,onMouseDown:ce(t.onMouseDown,y=>{n?l.onItemFocus(c):y.preventDefault()}),onFocus:ce(t.onFocus,()=>l.onItemFocus(c)),onKeyDown:ce(t.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){l.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const p=wQ(y,l.orientation,l.dir);if(p!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let v=f().filter(g=>g.focusable).map(g=>g.ref.current);if(p==="last")v.reverse();else if(p==="prev"||p==="next"){p==="prev"&&v.reverse();const g=v.indexOf(y.currentTarget);v=l.loop?CQ(v,g+1):v.slice(g+1)}setTimeout(()=>YI(v))}})})})});JI.displayName=QI;var xQ={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function bQ(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function wQ(t,e,r){const n=bQ(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return xQ[n]}function YI(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function CQ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var _E=KI,ME=JI,EQ=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},Rl=new WeakMap,ep=new WeakMap,tp={},cx=0,XI=function(t){return t&&(t.host||XI(t.parentNode))},kQ=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=XI(r);return n&&t.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},AQ=function(t,e,r,n){var s=kQ(e,Array.isArray(t)?t:[t]);tp[r]||(tp[r]=new WeakMap);var i=tp[r],o=[],a=new Set,c=new Set(s),l=function(f){!f||a.has(f)||(a.add(f),l(f.parentNode))};s.forEach(l);var u=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var h=d.getAttribute(n),y=h!==null&&h!=="false",p=(Rl.get(d)||0)+1,b=(i.get(d)||0)+1;Rl.set(d,p),i.set(d,b),o.push(d),p===1&&y&&ep.set(d,!0),b===1&&d.setAttribute(r,"true"),y||d.setAttribute(n,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return u(e),a.clear(),cx++,function(){o.forEach(function(f){var d=Rl.get(f)-1,h=i.get(f)-1;Rl.set(f,d),i.set(f,h),d||(ep.has(f)||f.removeAttribute(n),ep.delete(f)),h||f.removeAttribute(r)}),cx--,cx||(Rl=new WeakMap,Rl=new WeakMap,ep=new WeakMap,tp={})}},DE=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),s=EQ(t);return s?(n.push.apply(n,Array.from(s.querySelectorAll("[aria-live]"))),AQ(n,s,r,"aria-hidden")):function(){return null}},ii=function(){return ii=Object.assign||function(e){for(var r,n=1,s=arguments.length;n"u")return WQ;var e=VQ(t),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,n-r+e[2]-e[0])}},zQ=rO(),Tu="data-scroll-locked",GQ=function(t,e,r,n){var s=t.left,i=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` + .`.concat(TQ,` { + overflow: hidden `).concat(n,`; + padding-right: `).concat(a,"px ").concat(n,`; + } + body[`).concat(Tu,`] { + overflow: hidden `).concat(n,`; + overscroll-behavior: contain; + `).concat([e&&"position: relative ".concat(n,";"),r==="margin"&&` + padding-left: `.concat(s,`px; + padding-top: `).concat(i,`px; + padding-right: `).concat(o,`px; + margin-left:0; + margin-top:0; + margin-right: `).concat(a,"px ").concat(n,`; + `),r==="padding"&&"padding-right: ".concat(a,"px ").concat(n,";")].filter(Boolean).join(""),` + } + + .`).concat($p,` { + right: `).concat(a,"px ").concat(n,`; + } + + .`).concat(Wp,` { + margin-right: `).concat(a,"px ").concat(n,`; + } + + .`).concat($p," .").concat($p,` { + right: 0 `).concat(n,`; + } + + .`).concat(Wp," .").concat(Wp,` { + margin-right: 0 `).concat(n,`; + } + + body[`).concat(Tu,`] { + `).concat(PQ,": ").concat(a,`px; + } +`)},TS=function(){var t=parseInt(document.body.getAttribute(Tu)||"0",10);return isFinite(t)?t:0},qQ=function(){m.useEffect(function(){return document.body.setAttribute(Tu,(TS()+1).toString()),function(){var t=TS()-1;t<=0?document.body.removeAttribute(Tu):document.body.setAttribute(Tu,t.toString())}},[])},KQ=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,s=n===void 0?"margin":n;qQ();var i=m.useMemo(function(){return HQ(s)},[s]);return m.createElement(zQ,{styles:GQ(i,!e,s,r?"":"!important")})},fw=!1;if(typeof window<"u")try{var rp=Object.defineProperty({},"passive",{get:function(){return fw=!0,!0}});window.addEventListener("test",rp,rp),window.removeEventListener("test",rp,rp)}catch{fw=!1}var Nl=fw?{passive:!1}:!1,QQ=function(t){return t.tagName==="TEXTAREA"},nO=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!QQ(t)&&r[e]==="visible")},JQ=function(t){return nO(t,"overflowY")},YQ=function(t){return nO(t,"overflowX")},PS=function(t,e){var r=e.ownerDocument,n=e;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var s=sO(t,n);if(s){var i=iO(t,n),o=i[1],a=i[2];if(o>a)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},XQ=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},ZQ=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},sO=function(t,e){return t==="v"?JQ(e):YQ(e)},iO=function(t,e){return t==="v"?XQ(e):ZQ(e)},eJ=function(t,e){return t==="h"&&e==="rtl"?-1:1},tJ=function(t,e,r,n,s){var i=eJ(t,window.getComputedStyle(e).direction),o=i*n,a=r.target,c=e.contains(a),l=!1,u=o>0,f=0,d=0;do{var h=iO(t,a),y=h[0],p=h[1],b=h[2],v=p-b-i*y;(y||v)&&sO(t,a)&&(f+=v,d+=y),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!c&&a!==document.body||c&&(e.contains(a)||e===a));return(u&&(Math.abs(f)<1||!s)||!u&&(Math.abs(d)<1||!s))&&(l=!0),l},np=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},IS=function(t){return[t.deltaX,t.deltaY]},OS=function(t){return t&&"current"in t?t.current:t},rJ=function(t,e){return t[0]===e[0]&&t[1]===e[1]},nJ=function(t){return` + .block-interactivity-`.concat(t,` {pointer-events: none;} + .allow-interactivity-`).concat(t,` {pointer-events: all;} +`)},sJ=0,_l=[];function iJ(t){var e=m.useRef([]),r=m.useRef([0,0]),n=m.useRef(),s=m.useState(sJ++)[0],i=m.useState(rO)[0],o=m.useRef(t);m.useEffect(function(){o.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(s));var p=SQ([t.lockRef.current],(t.shards||[]).map(OS)).filter(Boolean);return p.forEach(function(b){return b.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(s))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.useCallback(function(p,b){if("touches"in p&&p.touches.length===2)return!o.current.allowPinchZoom;var v=np(p),g=r.current,x="deltaX"in p?p.deltaX:g[0]-v[0],k="deltaY"in p?p.deltaY:g[1]-v[1],S,I=p.target,R=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in p&&R==="h"&&I.type==="range")return!1;var _=PS(R,I);if(!_)return!0;if(_?S=R:(S=R==="v"?"h":"v",_=PS(R,I)),!_)return!1;if(!n.current&&"changedTouches"in p&&(x||k)&&(n.current=S),!S)return!0;var V=n.current||S;return tJ(V,b,p,V==="h"?x:k,!0)},[]),c=m.useCallback(function(p){var b=p;if(!(!_l.length||_l[_l.length-1]!==i)){var v="deltaY"in b?IS(b):np(b),g=e.current.filter(function(S){return S.name===b.type&&(S.target===b.target||b.target===S.shadowParent)&&rJ(S.delta,v)})[0];if(g&&g.should){b.cancelable&&b.preventDefault();return}if(!g){var x=(o.current.shards||[]).map(OS).filter(Boolean).filter(function(S){return S.contains(b.target)}),k=x.length>0?a(b,x[0]):!o.current.noIsolation;k&&b.cancelable&&b.preventDefault()}}},[]),l=m.useCallback(function(p,b,v,g){var x={name:p,delta:b,target:v,should:g,shadowParent:oJ(v)};e.current.push(x),setTimeout(function(){e.current=e.current.filter(function(k){return k!==x})},1)},[]),u=m.useCallback(function(p){r.current=np(p),n.current=void 0},[]),f=m.useCallback(function(p){l(p.type,IS(p),p.target,a(p,t.lockRef.current))},[]),d=m.useCallback(function(p){l(p.type,np(p),p.target,a(p,t.lockRef.current))},[]);m.useEffect(function(){return _l.push(i),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Nl),document.addEventListener("touchmove",c,Nl),document.addEventListener("touchstart",u,Nl),function(){_l=_l.filter(function(p){return p!==i}),document.removeEventListener("wheel",c,Nl),document.removeEventListener("touchmove",c,Nl),document.removeEventListener("touchstart",u,Nl)}},[]);var h=t.removeScrollBar,y=t.inert;return m.createElement(m.Fragment,null,y?m.createElement(i,{styles:nJ(s)}):null,h?m.createElement(KQ,{gapMode:t.gapMode}):null)}function oJ(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const aJ=DQ(tO,iJ);var gg=m.forwardRef(function(t,e){return m.createElement(vg,ii({},t,{ref:e,sideCar:aJ}))});gg.classNames=vg.classNames;var dw=["Enter"," "],cJ=["ArrowDown","PageUp","Home"],oO=["ArrowUp","PageDown","End"],lJ=[...cJ,...oO],uJ={ltr:[...dw,"ArrowRight"],rtl:[...dw,"ArrowLeft"]},fJ={ltr:["ArrowLeft"],rtl:["ArrowRight"]},u1="Menu",[f0,dJ,hJ]=fg(u1),[Tl,aO]=Mr(u1,[hJ,yd,vd]),mg=yd(),cO=vd(),[pJ,Pl]=Tl(u1),[yJ,f1]=Tl(u1),lO=t=>{const{__scopeMenu:e,open:r=!1,children:n,dir:s,onOpenChange:i,modal:o=!0}=t,a=mg(e),[c,l]=m.useState(null),u=m.useRef(!1),f=_r(i),d=a1(s);return m.useEffect(()=>{const h=()=>{u.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>u.current=!1;return document.addEventListener("keydown",h,{capture:!0}),()=>{document.removeEventListener("keydown",h,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),E.jsx(IE,{...a,children:E.jsx(pJ,{scope:e,open:r,onOpenChange:f,content:c,onContentChange:l,children:E.jsx(yJ,{scope:e,onClose:m.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:o,children:n})})})};lO.displayName=u1;var vJ="MenuAnchor",BE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=mg(r);return E.jsx(OE,{...s,...n,ref:e})});BE.displayName=vJ;var LE="MenuPortal",[gJ,uO]=Tl(LE,{forceMount:void 0}),fO=t=>{const{__scopeMenu:e,forceMount:r,children:n,container:s}=t,i=Pl(LE,e);return E.jsx(gJ,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:n})})})};fO.displayName=LE;var ts="MenuContent",[mJ,jE]=Tl(ts),dO=m.forwardRef((t,e)=>{const r=uO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Pl(ts,t.__scopeMenu),o=f1(ts,t.__scopeMenu);return E.jsx(f0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(f0.Slot,{scope:t.__scopeMenu,children:o.modal?E.jsx(xJ,{...s,ref:e}):E.jsx(bJ,{...s,ref:e})})})})}),xJ=m.forwardRef((t,e)=>{const r=Pl(ts,t.__scopeMenu),n=m.useRef(null),s=$e(e,n);return m.useEffect(()=>{const i=n.current;if(i)return DE(i)},[]),E.jsx(FE,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),bJ=m.forwardRef((t,e)=>{const r=Pl(ts,t.__scopeMenu);return E.jsx(FE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),FE=m.forwardRef((t,e)=>{const{__scopeMenu:r,loop:n=!1,trapFocus:s,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,disableOutsideScroll:y,...p}=t,b=Pl(ts,r),v=f1(ts,r),g=mg(r),x=cO(r),k=dJ(r),[S,I]=m.useState(null),R=m.useRef(null),_=$e(e,R,b.onContentChange),V=m.useRef(0),F=m.useRef(""),X=m.useRef(0),re=m.useRef(null),le=m.useRef("right"),ee=m.useRef(0),D=y?gg:m.Fragment,G=y?{as:ll,allowPinchZoom:!0}:void 0,Z=A=>{var O,M;const B=F.current+A,W=k().filter(ue=>!ue.disabled),q=document.activeElement,te=(O=W.find(ue=>ue.ref.current===q))==null?void 0:O.textValue,J=W.map(ue=>ue.textValue),$=NJ(J,B,te),K=(M=W.find(ue=>ue.textValue===$))==null?void 0:M.ref.current;(function ue(de){F.current=de,window.clearTimeout(V.current),de!==""&&(V.current=window.setTimeout(()=>ue(""),1e3))})(B),K&&setTimeout(()=>K.focus())};m.useEffect(()=>()=>window.clearTimeout(V.current),[]),bE();const C=m.useCallback(A=>{var O,M;return le.current===((O=re.current)==null?void 0:O.side)&&MJ(A,(M=re.current)==null?void 0:M.area)},[]);return E.jsx(mJ,{scope:r,searchRef:F,onItemEnter:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),onItemLeave:m.useCallback(A=>{var O;C(A)||((O=R.current)==null||O.focus(),I(null))},[C]),onTriggerLeave:m.useCallback(A=>{C(A)&&A.preventDefault()},[C]),pointerGraceTimerRef:X,onPointerGraceIntentChange:m.useCallback(A=>{re.current=A},[]),children:E.jsx(D,{...G,children:E.jsx(dg,{asChild:!0,trapped:s,onMountAutoFocus:ce(i,A=>{var O;A.preventDefault(),(O=R.current)==null||O.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:h,children:E.jsx(_E,{asChild:!0,...x,dir:v.dir,orientation:"vertical",loop:n,currentTabStopId:S,onCurrentTabStopIdChange:I,onEntryFocus:ce(c,A=>{v.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:E.jsx(RE,{role:"menu","aria-orientation":"vertical","data-state":PO(b.open),"data-radix-menu-content":"",dir:v.dir,...g,...p,ref:_,style:{outline:"none",...p.style},onKeyDown:ce(p.onKeyDown,A=>{const M=A.target.closest("[data-radix-menu-content]")===A.currentTarget,B=A.ctrlKey||A.altKey||A.metaKey,W=A.key.length===1;M&&(A.key==="Tab"&&A.preventDefault(),!B&&W&&Z(A.key));const q=R.current;if(A.target!==q||!lJ.includes(A.key))return;A.preventDefault();const J=k().filter($=>!$.disabled).map($=>$.ref.current);oO.includes(A.key)&&J.reverse(),OJ(J)}),onBlur:ce(t.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(V.current),F.current="")}),onPointerMove:ce(t.onPointerMove,d0(A=>{const O=A.target,M=ee.current!==A.clientX;if(A.currentTarget.contains(O)&&M){const B=A.clientX>ee.current?"right":"left";le.current=B,ee.current=A.clientX}}))})})})})})})});dO.displayName=ts;var wJ="MenuGroup",UE=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"group",...n,ref:e})});UE.displayName=wJ;var CJ="MenuLabel",hO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});hO.displayName=CJ;var Jy="MenuItem",RS="menu.itemSelect",xg=m.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...s}=t,i=m.useRef(null),o=f1(Jy,t.__scopeMenu),a=jE(Jy,t.__scopeMenu),c=$e(e,i),l=m.useRef(!1),u=()=>{const f=i.current;if(!r&&f){const d=new CustomEvent(RS,{bubbles:!0,cancelable:!0});f.addEventListener(RS,h=>n==null?void 0:n(h),{once:!0}),hE(f,d),d.defaultPrevented?l.current=!1:o.onClose()}};return E.jsx(pO,{...s,ref:c,disabled:r,onClick:ce(t.onClick,u),onPointerDown:f=>{var d;(d=t.onPointerDown)==null||d.call(t,f),l.current=!0},onPointerUp:ce(t.onPointerUp,f=>{var d;l.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:ce(t.onKeyDown,f=>{const d=a.searchRef.current!=="";r||d&&f.key===" "||dw.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});xg.displayName=Jy;var pO=m.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:s,...i}=t,o=jE(Jy,r),a=cO(r),c=m.useRef(null),l=$e(e,c),[u,f]=m.useState(!1),[d,h]=m.useState("");return m.useEffect(()=>{const y=c.current;y&&h((y.textContent??"").trim())},[i.children]),E.jsx(f0.ItemSlot,{scope:r,disabled:n,textValue:s??d,children:E.jsx(ME,{asChild:!0,...a,focusable:!n,children:E.jsx(Ae.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0,...i,ref:l,onPointerMove:ce(t.onPointerMove,d0(y=>{n?o.onItemLeave(y):(o.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ce(t.onPointerLeave,d0(y=>o.onItemLeave(y))),onFocus:ce(t.onFocus,()=>f(!0)),onBlur:ce(t.onBlur,()=>f(!1))})})})}),EJ="MenuCheckboxItem",yO=m.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...s}=t;return E.jsx(bO,{scope:t.__scopeMenu,checked:r,children:E.jsx(xg,{role:"menuitemcheckbox","aria-checked":Yy(r)?"mixed":r,...s,ref:e,"data-state":WE(r),onSelect:ce(s.onSelect,()=>n==null?void 0:n(Yy(r)?!0:!r),{checkForDefaultPrevented:!1})})})});yO.displayName=EJ;var vO="MenuRadioGroup",[kJ,AJ]=Tl(vO,{value:void 0,onValueChange:()=>{}}),gO=m.forwardRef((t,e)=>{const{value:r,onValueChange:n,...s}=t,i=_r(n);return E.jsx(kJ,{scope:t.__scopeMenu,value:r,onValueChange:i,children:E.jsx(UE,{...s,ref:e})})});gO.displayName=vO;var mO="MenuRadioItem",xO=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=AJ(mO,t.__scopeMenu),i=r===s.value;return E.jsx(bO,{scope:t.__scopeMenu,checked:i,children:E.jsx(xg,{role:"menuitemradio","aria-checked":i,...n,ref:e,"data-state":WE(i),onSelect:ce(n.onSelect,()=>{var o;return(o=s.onValueChange)==null?void 0:o.call(s,r)},{checkForDefaultPrevented:!1})})})});xO.displayName=mO;var $E="MenuItemIndicator",[bO,SJ]=Tl($E,{checked:!1}),wO=m.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...s}=t,i=SJ($E,r);return E.jsx(Xr,{present:n||Yy(i.checked)||i.checked===!0,children:E.jsx(Ae.span,{...s,ref:e,"data-state":WE(i.checked)})})});wO.displayName=$E;var TJ="MenuSeparator",CO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t;return E.jsx(Ae.div,{role:"separator","aria-orientation":"horizontal",...n,ref:e})});CO.displayName=TJ;var PJ="MenuArrow",EO=m.forwardRef((t,e)=>{const{__scopeMenu:r,...n}=t,s=mg(r);return E.jsx(NE,{...s,...n,ref:e})});EO.displayName=PJ;var IJ="MenuSub",[Mde,kO]=Tl(IJ),Yd="MenuSubTrigger",AO=m.forwardRef((t,e)=>{const r=Pl(Yd,t.__scopeMenu),n=f1(Yd,t.__scopeMenu),s=kO(Yd,t.__scopeMenu),i=jE(Yd,t.__scopeMenu),o=m.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:t.__scopeMenu},u=m.useCallback(()=>{o.current&&window.clearTimeout(o.current),o.current=null},[]);return m.useEffect(()=>u,[u]),m.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),c(null)}},[a,c]),E.jsx(BE,{asChild:!0,...l,children:E.jsx(pO,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":PO(r.open),...t,ref:cg(e,s.onTriggerChange),onClick:f=>{var d;(d=t.onClick)==null||d.call(t,f),!(t.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ce(t.onPointerMove,d0(f=>{i.onItemEnter(f),!f.defaultPrevented&&!t.disabled&&!r.open&&!o.current&&(i.onPointerGraceIntentChange(null),o.current=window.setTimeout(()=>{r.onOpenChange(!0),u()},100))})),onPointerLeave:ce(t.onPointerLeave,d0(f=>{var d,h;u();const y=(d=r.content)==null?void 0:d.getBoundingClientRect();if(y){const p=(h=r.content)==null?void 0:h.dataset.side,b=p==="right",v=b?-5:5,g=y[b?"left":"right"],x=y[b?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+v,y:f.clientY},{x:g,y:y.top},{x,y:y.top},{x,y:y.bottom},{x:g,y:y.bottom}],side:p}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:ce(t.onKeyDown,f=>{var d;const h=i.searchRef.current!=="";t.disabled||h&&f.key===" "||uJ[n.dir].includes(f.key)&&(r.onOpenChange(!0),(d=r.content)==null||d.focus(),f.preventDefault())})})})});AO.displayName=Yd;var SO="MenuSubContent",TO=m.forwardRef((t,e)=>{const r=uO(ts,t.__scopeMenu),{forceMount:n=r.forceMount,...s}=t,i=Pl(ts,t.__scopeMenu),o=f1(ts,t.__scopeMenu),a=kO(SO,t.__scopeMenu),c=m.useRef(null),l=$e(e,c);return E.jsx(f0.Provider,{scope:t.__scopeMenu,children:E.jsx(Xr,{present:n||i.open,children:E.jsx(f0.Slot,{scope:t.__scopeMenu,children:E.jsx(FE,{id:a.contentId,"aria-labelledby":a.triggerId,...s,ref:l,align:"start",side:o.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;o.isUsingKeyboardRef.current&&((f=c.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:ce(t.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:ce(t.onEscapeKeyDown,u=>{o.onClose(),u.preventDefault()}),onKeyDown:ce(t.onKeyDown,u=>{var f;const d=u.currentTarget.contains(u.target),h=fJ[o.dir].includes(u.key);d&&h&&(i.onOpenChange(!1),(f=a.trigger)==null||f.focus(),u.preventDefault())})})})})})});TO.displayName=SO;function PO(t){return t?"open":"closed"}function Yy(t){return t==="indeterminate"}function WE(t){return Yy(t)?"indeterminate":t?"checked":"unchecked"}function OJ(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function RJ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}function NJ(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=RJ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function _J(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function MJ(t,e){if(!e)return!1;const r={x:t.clientX,y:t.clientY};return _J(r,e)}function d0(t){return e=>e.pointerType==="mouse"?t(e):void 0}var DJ=lO,BJ=BE,LJ=fO,jJ=dO,FJ=UE,UJ=hO,$J=xg,WJ=yO,VJ=gO,HJ=xO,zJ=wO,GJ=CO,qJ=EO,KJ=AO,QJ=TO,VE="DropdownMenu",[JJ,Dde]=Mr(VE,[aO]),Zr=aO(),[YJ,IO]=JJ(VE),XJ=t=>{const{__scopeDropdownMenu:e,children:r,dir:n,open:s,defaultOpen:i,onOpenChange:o,modal:a=!0}=t,c=Zr(e),l=m.useRef(null),[u=!1,f]=is({prop:s,defaultProp:i,onChange:o});return E.jsx(YJ,{scope:e,triggerId:es(),triggerRef:l,contentId:es(),open:u,onOpenChange:f,onOpenToggle:m.useCallback(()=>f(d=>!d),[f]),modal:a,children:E.jsx(DJ,{...c,open:u,onOpenChange:f,dir:n,modal:a,children:r})})};XJ.displayName=VE;var OO="DropdownMenuTrigger",ZJ=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,disabled:n=!1,...s}=t,i=IO(OO,r),o=Zr(r);return E.jsx(BJ,{asChild:!0,...o,children:E.jsx(Ae.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...s,ref:cg(e,i.triggerRef),onPointerDown:ce(t.onPointerDown,a=>{!n&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:ce(t.onKeyDown,a=>{n||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ZJ.displayName=OO;var eY="DropdownMenuPortal",tY=t=>{const{__scopeDropdownMenu:e,...r}=t,n=Zr(e);return E.jsx(LJ,{...n,...r})};tY.displayName=eY;var RO="DropdownMenuContent",rY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=IO(RO,r),i=Zr(r),o=m.useRef(!1);return E.jsx(jJ,{id:s.contentId,"aria-labelledby":s.triggerId,...i,...n,ref:e,onCloseAutoFocus:ce(t.onCloseAutoFocus,a=>{var c;o.current||(c=s.triggerRef.current)==null||c.focus(),o.current=!1,a.preventDefault()}),onInteractOutside:ce(t.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,u=c.button===2||l;(!s.modal||u)&&(o.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});rY.displayName=RO;var nY="DropdownMenuGroup",sY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(FJ,{...s,...n,ref:e})});sY.displayName=nY;var iY="DropdownMenuLabel",oY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(UJ,{...s,...n,ref:e})});oY.displayName=iY;var aY="DropdownMenuItem",cY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx($J,{...s,...n,ref:e})});cY.displayName=aY;var lY="DropdownMenuCheckboxItem",NO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(WJ,{...s,...n,ref:e})});NO.displayName=lY;var uY="DropdownMenuRadioGroup",fY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(VJ,{...s,...n,ref:e})});fY.displayName=uY;var dY="DropdownMenuRadioItem",_O=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(HJ,{...s,...n,ref:e})});_O.displayName=dY;var hY="DropdownMenuItemIndicator",MO=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(zJ,{...s,...n,ref:e})});MO.displayName=hY;var pY="DropdownMenuSeparator",yY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(GJ,{...s,...n,ref:e})});yY.displayName=pY;var vY="DropdownMenuArrow",gY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(qJ,{...s,...n,ref:e})});gY.displayName=vY;var mY="DropdownMenuSubTrigger",xY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(KJ,{...s,...n,ref:e})});xY.displayName=mY;var bY="DropdownMenuSubContent",wY=m.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,s=Zr(r);return E.jsx(QJ,{...s,...n,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});wY.displayName=bY;var CY=NO,EY=_O,DO=MO,BO="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",LO="_1k2mbvi5";const kY=({children:t})=>E.jsx(DO,{className:LO,children:t});m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(CY,{className:Yr(BO,t),...r,ref:n,children:[E.jsx(kY,{children:E.jsx(mI,{size:"xs"})}),E.jsx(Tt,{variant:"small",children:e})]}));m.forwardRef(({className:t,children:e,...r},n)=>E.jsxs(EY,{className:Yr(BO,t),...r,ref:n,children:[E.jsx(DO,{className:LO,children:E.jsx(Tt,{children:"ā€¢"})}),E.jsx(Tt,{variant:"small",children:e})]}));const HE=m.forwardRef((t,e)=>{const{icon:r,size:n="md",...s}=t;return E.jsx(We,{leftIcon:r,size:n,flexShrink:"0",ref:e,...s})}),AY=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var SY="_1hq71vk1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _1hq71vk0 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr12n7 fyvr12fv fyvr1217 fyvr128j fyvr12np fyvr12gd fyvr121p fyvr1291 fyvr11ko fyvr11hc fyvr11ic fyvr11jc fyvr1g0 fyvr11hw",TY=At({defaultClassName:"_1hq71vk5",variantClassNames:{borderRadius:{xs:"_1hq71vk6 _1hq71vk2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1hq71vk7 _1hq71vk3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1hq71vk8 _1hq71vk4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),PY="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const IY={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4",csv:".csv,text/csv",json:".json,application/json"};m.forwardRef((t,e)=>{const{borderRadius:r="md",description:n,disabled:s=!1,id:i,label:o="",labelLocation:a="hidden",name:c,onValueChange:l,placeholder:u="Upload a file",validExtensions:f,...d}=t,h=m.useRef(null),y=AY(h,e),[p,b]=m.useState(null),v=x=>{const k=x.currentTarget.files;if(!k||!k[0])return;const S=k[0],I=S.name,R=S.size/1e3;b({name:I,size:R,extension:I.split(".").pop()??""}),l==null||l(S)},g=f.map(x=>IY[x]).join(",");return E.jsx(ud,{description:n,disabled:s,display:"grid",id:i??c,label:o,labelLocation:a,children:E.jsxs(me,{width:"full",minWidth:"0",justifyContent:p?"space-between":"flex-start",gap:"2",color:p?"text100":"text50",className:Yr(SY,TY({borderRadius:r})),children:[p?E.jsxs(me,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[E.jsx(Tt,{ellipsis:!0,children:p.name}),E.jsxs(Tt,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[p.size.toFixed(2)," kb"]})]}):E.jsx(Tt,{ellipsis:!0,children:u}),E.jsx(me,{accept:g,as:"input",className:PY,cursor:"pointer",disabled:s,id:i??c,name:c,onChange:v,ref:y,type:"file",...d}),p&&E.jsx(HE,{cursor:"pointer",icon:yE,size:"xs",onClick:x=>{var k;x.preventDefault(),x.stopPropagation(),(k=h.current)!=null&&k.value&&(h.current.value=""),l==null||l(null),b(null)},zIndex:"10"})]})})});var OY=At({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const hw=1e3,Pu=64,dx=Pu/2,hx=(t,e=hw)=>t%e/(hw/Pu),Ml=(t,e=0)=>{let r=3735928559^e,n=1103547991^e;for(let s=0,i;s>>16,2246822507)^Math.imul(n^n>>>13,3266489909),n=Math.imul(n^n>>>16,2246822507)^Math.imul(r^r>>>13,3266489909),4294967296*(2097151&n)+(r>>>0)},RY=(t,e,r)=>{const n=t%360,s=(t+120)%360,i=r%360;return{a:`hsl(${n}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${i}deg 100% 50%)`}},NY=(t,e)=>{const r=[];for(let n=0;n{const i=Pu/10+hx(n.r,hw*1.5/(s+1));return{...RY(n.a,n.b,n.c),x:hx(n.x),y:hx(n.y),r:i}})};m.memo(t=>{const{className:e,address:r,size:n="md",complexity:s=1,...i}=t,o=NY(r,s);return E.jsxs(me,{as:"svg",className:Yr(e,OY({size:n})),viewBox:`0 0 ${Pu} ${Pu}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...i,children:[E.jsxs("defs",{children:[E.jsx("clipPath",{id:"circle-clip",children:E.jsx("circle",{cx:dx,cy:dx,r:dx})}),E.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[E.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),E.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),E.jsx("feGaussianBlur",{stdDeviation:Pu/10,result:"effect1_foregroundBlur"})]}),E.jsxs("linearGradient",{id:`gradient-background-${r}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[E.jsx("stop",{offset:"0",stopColor:o[0].c}),E.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsxs("radialGradient",{id:`gradient-primary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.a}),E.jsx("stop",{offset:"1",stopColor:a.b})]}),E.jsxs("radialGradient",{id:`gradient-secondary-${r}-${c}`,children:[E.jsx("stop",{offset:"0",stopColor:a.c}),E.jsx("stop",{offset:"1",stopColor:a.b})]})]},c))]}),E.jsxs("g",{clipPath:"url(#circle-clip)",children:[E.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${r})`}),E.jsx("g",{filter:"url(#blur)",children:o.map((a,c)=>E.jsxs(m.Fragment,{children:[E.jsx("circle",{fill:`url(#gradient-primary-${r}-${c})`,cx:a.x,cy:a.y,r:a.r}),E.jsx("circle",{fill:`url(#gradient-secondary-${r}-${c})`,cx:a.y,cy:a.x,r:a.r/2})]},c))})]})]})});const zE=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[s,i]=m.useState(!1),o=a=>{i(!0),r==null||r(a)};return E.jsx(me,{as:Au.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:s?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})};var GE="Dialog",[jO,Bde]=Mr(GE),[_Y,js]=jO(GE),FO=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:s,onOpenChange:i,modal:o=!0}=t,a=m.useRef(null),c=m.useRef(null),[l=!1,u]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(_Y,{scope:e,triggerRef:a,contentRef:c,contentId:es(),titleId:es(),descriptionId:es(),open:l,onOpenChange:u,onOpenToggle:m.useCallback(()=>u(f=>!f),[u]),modal:o,children:r})};FO.displayName=GE;var UO="DialogTrigger",MY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(UO,r),i=$e(e,s.triggerRef);return E.jsx(Ae.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":QE(s.open),...n,ref:i,onClick:ce(t.onClick,s.onOpenToggle)})});MY.displayName=UO;var qE="DialogPortal",[DY,$O]=jO(qE,{forceMount:void 0}),WO=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:s}=t,i=js(qE,e);return E.jsx(DY,{scope:e,forceMount:r,children:m.Children.map(n,o=>E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:o})}))})};WO.displayName=qE;var Xy="DialogOverlay",VO=m.forwardRef((t,e)=>{const r=$O(Xy,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=js(Xy,t.__scopeDialog);return i.modal?E.jsx(Xr,{present:n||i.open,children:E.jsx(BY,{...s,ref:e})}):null});VO.displayName=Xy;var BY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(Xy,r);return E.jsx(gg,{as:ll,allowPinchZoom:!0,shards:[s.contentRef],children:E.jsx(Ae.div,{"data-state":QE(s.open),...n,ref:e,style:{pointerEvents:"auto",...n.style}})})}),fl="DialogContent",HO=m.forwardRef((t,e)=>{const r=$O(fl,t.__scopeDialog),{forceMount:n=r.forceMount,...s}=t,i=js(fl,t.__scopeDialog);return E.jsx(Xr,{present:n||i.open,children:i.modal?E.jsx(LY,{...s,ref:e}):E.jsx(jY,{...s,ref:e})})});HO.displayName=fl;var LY=m.forwardRef((t,e)=>{const r=js(fl,t.__scopeDialog),n=m.useRef(null),s=$e(e,r.contentRef,n);return m.useEffect(()=>{const i=n.current;if(i)return DE(i)},[]),E.jsx(zO,{...t,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ce(t.onCloseAutoFocus,i=>{var o;i.preventDefault(),(o=r.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ce(t.onPointerDownOutside,i=>{const o=i.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&i.preventDefault()}),onFocusOutside:ce(t.onFocusOutside,i=>i.preventDefault())})}),jY=m.forwardRef((t,e)=>{const r=js(fl,t.__scopeDialog),n=m.useRef(!1),s=m.useRef(!1);return E.jsx(zO,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var o,a;(o=t.onCloseAutoFocus)==null||o.call(t,i),i.defaultPrevented||(n.current||(a=r.triggerRef.current)==null||a.focus(),i.preventDefault()),n.current=!1,s.current=!1},onInteractOutside:i=>{var o,a;(o=t.onInteractOutside)==null||o.call(t,i),i.defaultPrevented||(n.current=!0,i.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const c=i.target;((a=r.triggerRef.current)==null?void 0:a.contains(c))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&s.current&&i.preventDefault()}})}),zO=m.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:s,onCloseAutoFocus:i,...o}=t,a=js(fl,r),c=m.useRef(null),l=$e(e,c);return bE(),E.jsxs(E.Fragment,{children:[E.jsx(dg,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:s,onUnmountAutoFocus:i,children:E.jsx(dd,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":QE(a.open),...o,ref:l,onDismiss:()=>a.onOpenChange(!1)})}),E.jsxs(E.Fragment,{children:[E.jsx($Y,{titleId:a.titleId}),E.jsx(VY,{contentRef:c,descriptionId:a.descriptionId})]})]})}),KE="DialogTitle",FY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(KE,r);return E.jsx(Ae.h2,{id:s.titleId,...n,ref:e})});FY.displayName=KE;var GO="DialogDescription",UY=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(GO,r);return E.jsx(Ae.p,{id:s.descriptionId,...n,ref:e})});UY.displayName=GO;var qO="DialogClose",KO=m.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,s=js(qO,r);return E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,()=>s.onOpenChange(!1))})});KO.displayName=qO;function QE(t){return t?"open":"closed"}var QO="DialogTitleWarning",[Lde,JO]=rq(QO,{contentName:fl,titleName:KE,docsSlug:"dialog"}),$Y=({titleId:t})=>{const e=JO(QO),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users. + +If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component. + +For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},WY="DialogDescriptionWarning",VY=({contentRef:t,descriptionId:e})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JO(WY).contentName}}.`;return m.useEffect(()=>{var s;const i=(s=t.current)==null?void 0:s.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(n))},[n,t,e]),null},HY=FO,zY=WO,GY=VO,qY=HO,KY=KO,QY=At({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),JY=At({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const YY=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:s,...i}=t;return E.jsx(me,{className:JY({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...i,children:E.jsx(me,{className:QY({direction:n}),background:"backgroundPrimary",...s,children:e})})};function XY(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function ZY(t,e){var r=t;for(var n of e){if(!(n in r))throw new Error("Path ".concat(e.join(" -> ")," does not exist in object"));r=r[n]}return r}function YO(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n={};for(var s in t){var i=t[s],o=[...r,s];typeof i=="string"||typeof i=="number"||i==null?n[s]=e(i,o):typeof i=="object"&&!Array.isArray(i)?n[s]=YO(i,e,o):console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"'))}return n}function NS(t,e,r){t.style.setProperty(XY(e),r)}function _S(t,e,r){if(typeof r=="object"){var n=e;YO(r,(a,c)=>{a!=null&&NS(t,ZY(n,c),String(a))})}else{var s=e;for(var i in s){var o=s[i];o!=null&&NS(t,i,s[i])}}}const JE=["dark","light"],XO="dark",eX="data-theme",MS="@sequence.theme",tX=t=>JE.includes(t),rX=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),ZO=t=>t?`${MS}.${t}`:MS,nX=t=>{const e=localStorage.getItem(ZO(t));return e&&JE.includes(e)?e:XO},e9=m.createContext(null),sX=t=>{const[e,r]=m.useState(t.theme||XO);m.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),m.useEffect(()=>{t.theme||r(nX(t.scope))},[t.theme,t.scope]),m.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),m.useEffect(()=>{const s=document.querySelector(t.root||":root");s&&(tX(e)?(s.setAttribute(eX,e),_S(s,rS,{colors:NG[e]})):rX(e)&&_S(s,rS,{colors:e}))},[e,t.root]);const n=m.useMemo(()=>({theme:e,root:t.root,setTheme:s=>{JE.includes(s)&&(localStorage.setItem(ZO(t.scope),s),r(s))}}),[e,t.root,t.scope]);return E.jsx(e9.Provider,{value:n,children:t.children})},iX=()=>{const t=m.useContext(e9);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var oX="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",aX="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",cX=At({defaultClassName:"_5b32m95 _5b32m94 fyvr11d8 fyvr11dw fyvr11bg fyvr11by fyvr11c4 fyvr11cm fyvr11ls fyvr11m8 fyvr12ws fyvr12wm fyvr11h0 fyvr11i4 fyvr11hs fyvr11sd fyvr1mo fyvr1om",variantClassNames:{size:{sm:"_5b32m96",lg:"_5b32m97"},autoHeight:{true:"_5b32m98"}},defaultVariants:{},compoundVariants:[[{autoHeight:!0,size:"lg"},"_5b32m99"]]}),lX="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const uX=t=>{const{autoHeight:e=!1,backdropColor:r="backgroundBackdrop",children:n,disableAnimation:s=!1,isDismissible:i=!0,onClose:o,scroll:a=!0,size:c="lg",overlayProps:l,contentProps:u}=t,{root:f}=iX(),[d,h]=m.useState(null);return m.useEffect(()=>{h(document.querySelector(f||"body"))},[f]),d?E.jsx(HY,{modal:!0,defaultOpen:!0,onOpenChange:o,children:E.jsx(zY,{forceMount:!0,container:d,children:E.jsxs(me,{className:oX,children:[E.jsx(me,{as:GY,asChild:!0,background:r,className:aX,forceMount:!0,children:E.jsx(Au.div,{initial:s?!1:{opacity:0},animate:s?!1:{opacity:1},exit:s?void 0:{opacity:0},transition:{type:"tween",ease:"linear"},...l},"modal-overlay")}),E.jsx(qY,{asChild:!0,className:cX({autoHeight:e,size:c}),forceMount:!0,onEscapeKeyDown:y=>{i?o==null||o():y.preventDefault()},onInteractOutside:y=>{i||y.preventDefault()},children:E.jsxs(Au.div,{initial:s?!1:{y:"100%",opacity:c==="sm"?0:1},animate:s?!1:{y:0,opacity:1},exit:s?void 0:{y:"100%",opacity:c==="sm"?0:1},transition:{type:"tween",ease:"easeOut"},...u,children:[a?E.jsx(YY,{children:n}):n,i&&E.jsx(KY,{asChild:!0,children:E.jsx(HE,{icon:yE,backdropFilter:"blur",size:"xs",className:lX,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var fX="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",dX=At({defaultClassName:"_1acm19y5",variantClassNames:{borderRadius:{xs:"_1acm19y6 _1acm19y2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"_1acm19y7 _1acm19y3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"_1acm19y8 _1acm19y4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),hX=At({defaultClassName:"_1acm19ya _1acm19y9 fyvr1wg fyvr1yc fyvr1t4 fyvr1v0 fyvr12wp fyvr12wj fyvr11gw fyvr11od fyvr12s1 fyvr12o1 fyvr128 fyvr15o",variantClassNames:{numeric:{false:"_1acm19yb _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0",true:"_1acm19yc _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8"}},defaultVariants:{},compoundVariants:[]});const YE=m.forwardRef((t,e)=>{const{as:r="input",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",leftIcon:u,rightIcon:f,name:d,controls:h,type:y="text",numeric:p=!1,...b}=t;return E.jsx(ud,{description:i,disabled:o,display:"grid",id:a??d,label:c,labelLocation:l,children:E.jsx(me,{width:"full",children:E.jsxs(me,{className:Yr(fX,dX({borderRadius:s})),children:[u&&E.jsx(u,{size:"sm"}),E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:hX({numeric:p}),disabled:o,id:a??d,name:d,ref:e,type:y,...b}),f&&E.jsx(f,{size:"sm"}),h]})})})}),pX=RegExp("^\\d*(?:\\\\[.])?\\d*$");function yX(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}m.forwardRef((t,e)=>{const{name:r="amount",placeholder:n,onChange:s,onBlur:i,...o}=t,a=l=>{let{value:u}=l.target;u=u.replace(/,/g,"."),u.startsWith(".")&&(u="0"+u),u.startsWith("0")&&(u=u.replace(/^0+(?=\d)/,"")),(u===""||pX.test(yX(u)))&&(s==null||s({...l,target:{...l.target,value:u}}))},c=l=>{const{value:u}=l.target;let f=u;f.endsWith(".")&&(f=f.slice(0,-1)),f.endsWith(".0")&&(f=f.slice(0,-2)),f==="0"&&(f=""),i==null||i(l),f!==u&&(s==null||s({...l,target:{...l.target,value:f}}))};return E.jsx(YE,{name:r,onChange:a,onBlur:c,inputMode:"decimal",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:n||"0",minLength:1,maxLength:79,spellCheck:"false",numeric:!0,ref:e,...o})});At({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});var XE="Progress",ZE=100,[vX,jde]=Mr(XE),[gX,mX]=vX(XE),xX=m.forwardRef((t,e)=>{const{__scopeProgress:r,value:n=null,max:s,getValueLabel:i=wX,...o}=t;(s||s===0)&&!DS(s)&&console.error(CX(`${s}`,"Progress"));const a=DS(s)?s:ZE;n!==null&&!BS(n,a)&&console.error(EX(`${n}`,"Progress"));const c=BS(n,a)?n:null,l=Zy(c)?i(c,a):void 0;return E.jsx(gX,{scope:r,value:c,max:a,children:E.jsx(Ae.div,{"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":Zy(c)?c:void 0,"aria-valuetext":l,role:"progressbar","data-state":r9(c,a),"data-value":c??void 0,"data-max":a,...o,ref:e})})});xX.displayName=XE;var t9="ProgressIndicator",bX=m.forwardRef((t,e)=>{const{__scopeProgress:r,...n}=t,s=mX(t9,r);return E.jsx(Ae.div,{"data-state":r9(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...n,ref:e})});bX.displayName=t9;function wX(t,e){return`${Math.round(t/e*100)}%`}function r9(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function Zy(t){return typeof t=="number"}function DS(t){return Zy(t)&&!isNaN(t)&&t>0}function BS(t,e){return Zy(t)&&!isNaN(t)&&t<=e&&t>=0}function CX(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${ZE}\`.`}function EX(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: + - a positive number + - less than the value passed to \`max\` (or ${ZE} if no \`max\` prop is set) + - \`null\` or \`undefined\` if the progress is indeterminate. + +Defaulting to \`null\`.`}var e5="Radio",[kX,n9]=Mr(e5),[AX,SX]=kX(e5),s9=m.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:s=!1,required:i,disabled:o,value:a="on",onCheck:c,...l}=t,[u,f]=m.useState(null),d=$e(e,p=>f(p)),h=m.useRef(!1),y=u?!!u.closest("form"):!0;return E.jsxs(AX,{scope:r,checked:s,disabled:o,children:[E.jsx(Ae.button,{type:"button",role:"radio","aria-checked":s,"data-state":a9(s),"data-disabled":o?"":void 0,disabled:o,value:a,...l,ref:d,onClick:ce(t.onClick,p=>{s||c==null||c(),y&&(h.current=p.isPropagationStopped(),h.current||p.stopPropagation())})}),y&&E.jsx(TX,{control:u,bubbles:!h.current,name:n,value:a,checked:s,required:i,disabled:o,style:{transform:"translateX(-100%)"}})]})});s9.displayName=e5;var i9="RadioIndicator",o9=m.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...s}=t,i=SX(i9,r);return E.jsx(Xr,{present:n||i.checked,children:E.jsx(Ae.span,{"data-state":a9(i.checked),"data-disabled":i.disabled?"":void 0,...s,ref:e})})});o9.displayName=i9;var TX=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function a9(t){return t?"checked":"unchecked"}var PX=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],t5="RadioGroup",[IX,Fde]=Mr(t5,[vd,n9]),c9=vd(),l9=n9(),[OX,RX]=IX(t5),u9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,name:n,defaultValue:s,value:i,required:o=!1,disabled:a=!1,orientation:c,dir:l,loop:u=!0,onValueChange:f,...d}=t,h=c9(r),y=a1(l),[p,b]=is({prop:i,defaultProp:s,onChange:f});return E.jsx(OX,{scope:r,name:n,required:o,disabled:a,value:p,onValueChange:b,children:E.jsx(_E,{asChild:!0,...h,orientation:c,dir:y,loop:u,children:E.jsx(Ae.div,{role:"radiogroup","aria-required":o,"aria-orientation":c,"data-disabled":a?"":void 0,dir:y,...d,ref:e})})})});u9.displayName=t5;var f9="RadioGroupItem",d9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...s}=t,i=RX(f9,r),o=i.disabled||n,a=c9(r),c=l9(r),l=m.useRef(null),u=$e(e,l),f=i.value===s.value,d=m.useRef(!1);return m.useEffect(()=>{const h=p=>{PX.includes(p.key)&&(d.current=!0)},y=()=>d.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",y),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",y)}},[]),E.jsx(ME,{asChild:!0,...a,focusable:!o,active:f,children:E.jsx(s9,{disabled:o,required:i.required,checked:f,...c,...s,name:i.name,ref:u,onCheck:()=>i.onValueChange(s.value),onKeyDown:ce(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:ce(s.onFocus,()=>{var h;d.current&&((h=l.current)==null||h.click())})})})});d9.displayName=f9;var NX="RadioGroupIndicator",h9=m.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,s=l9(r);return E.jsx(o9,{...s,...n,ref:e})});h9.displayName=NX;var _X=u9,MX=d9,DX=h9,BX=At({defaultClassName:"io59uy3 io59uy0 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr1so fyvr1uk fyvr1wg fyvr1yc fyvr12nd fyvr12g1 fyvr121d fyvr128p fyvr12nj fyvr12g7 fyvr121j fyvr128v fyvr11od fyvr12v7 fyvr12v3 fyvr12vz fyvr12vr _4efw240",variantClassNames:{size:{sm:"io59uy4 io59uy1 fyvr11a8 fyvr11ak fyvr11aw fyvr11b8",lg:"io59uy5 io59uy2 fyvr11ac fyvr11ao fyvr11b0 fyvr11bc"}},defaultVariants:{},compoundVariants:[]}),LX=At({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const jX=t=>{const{id:e,label:r,size:n="sm",value:s,disabled:i}=t;return E.jsx(me,{alignItems:"center",children:E.jsx(ud,{disabled:i,display:"flex",id:e,label:r,labelLocation:"right",children:E.jsx(MX,{className:BX({size:n}),value:s,id:e,disabled:i,children:E.jsx(DX,{className:LX({size:n})})})})})};m.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:s="2",name:i,options:o,size:a="sm",...c}=t;return E.jsx(_X,{disabled:n,name:i,ref:e,...c,children:E.jsx(me,{flexDirection:r,gap:s,children:o.map(({label:l,value:u,disabled:f})=>E.jsx(jX,{id:`${i}-${u}`,label:l,size:a,value:u,disabled:f},u))})})});function LS(t,[e,r]){return Math.min(r,Math.max(e,t))}var FX="VisuallyHidden",d1=m.forwardRef((t,e)=>E.jsx(Ae.span,{...t,ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}));d1.displayName=FX;var UX=d1,$X=[" ","Enter","ArrowUp","ArrowDown"],WX=[" ","Enter"],h1="Select",[bg,wg,VX]=fg(h1),[gd,Ude]=Mr(h1,[VX,yd]),Cg=yd(),[HX,Ua]=gd(h1),[zX,GX]=gd(h1),p9=t=>{const{__scopeSelect:e,children:r,open:n,defaultOpen:s,onOpenChange:i,value:o,defaultValue:a,onValueChange:c,dir:l,name:u,autoComplete:f,disabled:d,required:h}=t,y=Cg(e),[p,b]=m.useState(null),[v,g]=m.useState(null),[x,k]=m.useState(!1),S=a1(l),[I=!1,R]=is({prop:n,defaultProp:s,onChange:i}),[_,V]=is({prop:o,defaultProp:a,onChange:c}),F=m.useRef(null),X=p?!!p.closest("form"):!0,[re,le]=m.useState(new Set),ee=Array.from(re).map(D=>D.props.value).join(";");return E.jsx(IE,{...y,children:E.jsxs(HX,{required:h,scope:e,trigger:p,onTriggerChange:b,valueNode:v,onValueNodeChange:g,valueNodeHasChildren:x,onValueNodeHasChildrenChange:k,contentId:es(),value:_,onValueChange:V,open:I,onOpenChange:R,dir:S,triggerPointerDownPosRef:F,disabled:d,children:[E.jsx(bg.Provider,{scope:e,children:E.jsx(zX,{scope:t.__scopeSelect,onNativeOptionAdd:m.useCallback(D=>{le(G=>new Set(G).add(D))},[]),onNativeOptionRemove:m.useCallback(D=>{le(G=>{const Z=new Set(G);return Z.delete(D),Z})},[]),children:r})}),X?E.jsxs(M9,{"aria-hidden":!0,required:h,tabIndex:-1,name:u,autoComplete:f,value:_,onChange:D=>V(D.target.value),disabled:d,children:[_===void 0?E.jsx("option",{value:""}):null,Array.from(re)]},ee):null]})})};p9.displayName=h1;var y9="SelectTrigger",v9=m.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...s}=t,i=Cg(r),o=Ua(y9,r),a=o.disabled||n,c=$e(e,o.onTriggerChange),l=wg(r),[u,f,d]=D9(y=>{const p=l().filter(g=>!g.disabled),b=p.find(g=>g.value===o.value),v=B9(p,y,b);v!==void 0&&o.onValueChange(v.value)}),h=()=>{a||(o.onOpenChange(!0),d())};return E.jsx(OE,{asChild:!0,...i,children:E.jsx(Ae.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":_9(o.value)?"":void 0,...s,ref:c,onClick:ce(s.onClick,y=>{y.currentTarget.focus()}),onPointerDown:ce(s.onPointerDown,y=>{const p=y.target;p.hasPointerCapture(y.pointerId)&&p.releasePointerCapture(y.pointerId),y.button===0&&y.ctrlKey===!1&&(h(),o.triggerPointerDownPosRef.current={x:Math.round(y.pageX),y:Math.round(y.pageY)},y.preventDefault())}),onKeyDown:ce(s.onKeyDown,y=>{const p=u.current!=="";!(y.ctrlKey||y.altKey||y.metaKey)&&y.key.length===1&&f(y.key),!(p&&y.key===" ")&&$X.includes(y.key)&&(h(),y.preventDefault())})})})});v9.displayName=y9;var g9="SelectValue",m9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,children:i,placeholder:o="",...a}=t,c=Ua(g9,r),{onValueNodeHasChildrenChange:l}=c,u=i!==void 0,f=$e(e,c.onValueNodeChange);return xr(()=>{l(u)},[l,u]),E.jsx(Ae.span,{...a,ref:f,style:{pointerEvents:"none"},children:_9(c.value)?E.jsx(E.Fragment,{children:o}):i})});m9.displayName=g9;var qX="SelectIcon",x9=m.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...s}=t;return E.jsx(Ae.span,{"aria-hidden":!0,...s,ref:e,children:n||"ā–¼"})});x9.displayName=qX;var dl="SelectContent",b9=m.forwardRef((t,e)=>{const r=Ua(dl,t.__scopeSelect),[n,s]=m.useState();if(xr(()=>{s(new DocumentFragment)},[]),!r.open){const i=n;return i?ja.createPortal(E.jsx(w9,{scope:t.__scopeSelect,children:E.jsx(bg.Slot,{scope:t.__scopeSelect,children:E.jsx("div",{children:t.children})})}),i):null}return E.jsx(C9,{...t,ref:e})});b9.displayName=dl;var ki=10,[w9,$a]=gd(dl),KX="SelectContentImpl",C9=m.forwardRef((t,e)=>{const{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:i,onPointerDownOutside:o,side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b,...v}=t,g=Ua(dl,r),[x,k]=m.useState(null),[S,I]=m.useState(null),R=$e(e,$=>k($)),[_,V]=m.useState(null),[F,X]=m.useState(null),re=wg(r),[le,ee]=m.useState(!1),D=m.useRef(!1);m.useEffect(()=>{if(x)return DE(x)},[x]),bE();const G=m.useCallback($=>{const[K,...ue]=re().map(Ce=>Ce.ref.current),[de]=ue.slice(-1),oe=document.activeElement;for(const Ce of $)if(Ce===oe||(Ce==null||Ce.scrollIntoView({block:"nearest"}),Ce===K&&S&&(S.scrollTop=0),Ce===de&&S&&(S.scrollTop=S.scrollHeight),Ce==null||Ce.focus(),document.activeElement!==oe))return},[re,S]),Z=m.useCallback(()=>G([_,x]),[G,_,x]);m.useEffect(()=>{le&&Z()},[le,Z]);const{onOpenChange:C,triggerPointerDownPosRef:A}=g;m.useEffect(()=>{if(x){let $={x:0,y:0};const K=de=>{var oe,Ce;$={x:Math.abs(Math.round(de.pageX)-(((oe=A.current)==null?void 0:oe.x)??0)),y:Math.abs(Math.round(de.pageY)-(((Ce=A.current)==null?void 0:Ce.y)??0))}},ue=de=>{$.x<=10&&$.y<=10?de.preventDefault():x.contains(de.target)||C(!1),document.removeEventListener("pointermove",K),A.current=null};return A.current!==null&&(document.addEventListener("pointermove",K),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",ue,{capture:!0})}}},[x,C,A]),m.useEffect(()=>{const $=()=>C(!1);return window.addEventListener("blur",$),window.addEventListener("resize",$),()=>{window.removeEventListener("blur",$),window.removeEventListener("resize",$)}},[C]);const[O,M]=D9($=>{const K=re().filter(oe=>!oe.disabled),ue=K.find(oe=>oe.ref.current===document.activeElement),de=B9(K,$,ue);de&&setTimeout(()=>de.ref.current.focus())}),B=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&(V($),de&&(D.current=!0))},[g.value]),W=m.useCallback(()=>x==null?void 0:x.focus(),[x]),q=m.useCallback(($,K,ue)=>{const de=!D.current&&!ue;(g.value!==void 0&&g.value===K||de)&&X($)},[g.value]),te=n==="popper"?pw:E9,J=te===pw?{side:a,sideOffset:c,align:l,alignOffset:u,arrowPadding:f,collisionBoundary:d,collisionPadding:h,sticky:y,hideWhenDetached:p,avoidCollisions:b}:{};return E.jsx(w9,{scope:r,content:x,viewport:S,onViewportChange:I,itemRefCallback:B,selectedItem:_,onItemLeave:W,itemTextRefCallback:q,focusSelectedItem:Z,selectedItemText:F,position:n,isPositioned:le,searchRef:O,children:E.jsx(gg,{as:ll,allowPinchZoom:!0,children:E.jsx(dg,{asChild:!0,trapped:g.open,onMountAutoFocus:$=>{$.preventDefault()},onUnmountAutoFocus:ce(s,$=>{var K;(K=g.trigger)==null||K.focus({preventScroll:!0}),$.preventDefault()}),children:E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:$=>$.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:E.jsx(te,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:$=>$.preventDefault(),...v,...J,onPlaced:()=>ee(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:ce(v.onKeyDown,$=>{const K=$.ctrlKey||$.altKey||$.metaKey;if($.key==="Tab"&&$.preventDefault(),!K&&$.key.length===1&&M($.key),["ArrowUp","ArrowDown","Home","End"].includes($.key)){let de=re().filter(oe=>!oe.disabled).map(oe=>oe.ref.current);if(["ArrowUp","End"].includes($.key)&&(de=de.slice().reverse()),["ArrowUp","ArrowDown"].includes($.key)){const oe=$.target,Ce=de.indexOf(oe);de=de.slice(Ce+1)}setTimeout(()=>G(de)),$.preventDefault()}})})})})})})});C9.displayName=KX;var QX="SelectItemAlignedPosition",E9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...s}=t,i=Ua(dl,r),o=$a(dl,r),[a,c]=m.useState(null),[l,u]=m.useState(null),f=$e(e,R=>u(R)),d=wg(r),h=m.useRef(!1),y=m.useRef(!0),{viewport:p,selectedItem:b,selectedItemText:v,focusSelectedItem:g}=o,x=m.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&l&&p&&b&&v){const R=i.trigger.getBoundingClientRect(),_=l.getBoundingClientRect(),V=i.valueNode.getBoundingClientRect(),F=v.getBoundingClientRect();if(i.dir!=="rtl"){const oe=F.left-_.left,Ce=V.left-oe,Re=R.left-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-ki,U=LS(Ce,[ki,br-tn]);a.style.minWidth=xt+"px",a.style.left=U+"px"}else{const oe=_.right-F.right,Ce=window.innerWidth-V.right-oe,Re=window.innerWidth-R.right-Ce,xt=R.width+Re,tn=Math.max(xt,_.width),br=window.innerWidth-ki,U=LS(Ce,[ki,br-tn]);a.style.minWidth=xt+"px",a.style.right=U+"px"}const X=d(),re=window.innerHeight-ki*2,le=p.scrollHeight,ee=window.getComputedStyle(l),D=parseInt(ee.borderTopWidth,10),G=parseInt(ee.paddingTop,10),Z=parseInt(ee.borderBottomWidth,10),C=parseInt(ee.paddingBottom,10),A=D+G+le+C+Z,O=Math.min(b.offsetHeight*5,A),M=window.getComputedStyle(p),B=parseInt(M.paddingTop,10),W=parseInt(M.paddingBottom,10),q=R.top+R.height/2-ki,te=re-q,J=b.offsetHeight/2,$=b.offsetTop+J,K=D+G+$,ue=A-K;if(K<=q){const oe=b===X[X.length-1].ref.current;a.style.bottom="0px";const Ce=l.clientHeight-p.offsetTop-p.offsetHeight,Re=Math.max(te,J+(oe?W:0)+Ce+Z),xt=K+Re;a.style.height=xt+"px"}else{const oe=b===X[0].ref.current;a.style.top="0px";const Re=Math.max(q,D+p.offsetTop+(oe?B:0)+J)+ue;a.style.height=Re+"px",p.scrollTop=K-q+p.offsetTop}a.style.margin=`${ki}px 0`,a.style.minHeight=O+"px",a.style.maxHeight=re+"px",n==null||n(),requestAnimationFrame(()=>h.current=!0)}},[d,i.trigger,i.valueNode,a,l,p,b,v,i.dir,n]);xr(()=>x(),[x]);const[k,S]=m.useState();xr(()=>{l&&S(window.getComputedStyle(l).zIndex)},[l]);const I=m.useCallback(R=>{R&&y.current===!0&&(x(),g==null||g(),y.current=!1)},[x,g]);return E.jsx(YX,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:h,onScrollButtonChange:I,children:E.jsx("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:E.jsx(Ae.div,{...s,ref:f,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});E9.displayName=QX;var JX="SelectPopperPosition",pw=m.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:s=ki,...i}=t,o=Cg(r);return E.jsx(RE,{...o,...i,ref:e,align:n,collisionPadding:s,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});pw.displayName=JX;var[YX,r5]=gd(dl,{}),yw="SelectViewport",k9=m.forwardRef((t,e)=>{const{__scopeSelect:r,nonce:n,...s}=t,i=$a(yw,r),o=r5(yw,r),a=$e(e,i.onViewportChange),c=m.useRef(0);return E.jsxs(E.Fragment,{children:[E.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),E.jsx(bg.Slot,{scope:r,children:E.jsx(Ae.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:a,style:{position:"relative",flex:1,overflow:"auto",...s.style},onScroll:ce(s.onScroll,l=>{const u=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:d}=o;if(d!=null&&d.current&&f){const h=Math.abs(c.current-u.scrollTop);if(h>0){const y=window.innerHeight-ki*2,p=parseFloat(f.style.minHeight),b=parseFloat(f.style.height),v=Math.max(p,b);if(v0?k:0,f.style.justifyContent="flex-end")}}}c.current=u.scrollTop})})})]})});k9.displayName=yw;var A9="SelectGroup",[XX,ZX]=gd(A9),S9=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=es();return E.jsx(XX,{scope:r,id:s,children:E.jsx(Ae.div,{role:"group","aria-labelledby":s,...n,ref:e})})});S9.displayName=A9;var T9="SelectLabel",eZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=ZX(T9,r);return E.jsx(Ae.div,{id:s.id,...n,ref:e})});eZ.displayName=T9;var ev="SelectItem",[tZ,P9]=gd(ev),I9=m.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:s=!1,textValue:i,...o}=t,a=Ua(ev,r),c=$a(ev,r),l=a.value===n,[u,f]=m.useState(i??""),[d,h]=m.useState(!1),y=$e(e,v=>{var g;return(g=c.itemRefCallback)==null?void 0:g.call(c,v,n,s)}),p=es(),b=()=>{s||(a.onValueChange(n),a.onOpenChange(!1))};if(n==="")throw new Error("A must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return E.jsx(tZ,{scope:r,value:n,disabled:s,textId:p,isSelected:l,onItemTextChange:m.useCallback(v=>{f(g=>g||((v==null?void 0:v.textContent)??"").trim())},[]),children:E.jsx(bg.ItemSlot,{scope:r,value:n,disabled:s,textValue:u,children:E.jsx(Ae.div,{role:"option","aria-labelledby":p,"data-highlighted":d?"":void 0,"aria-selected":l&&d,"data-state":l?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...o,ref:y,onFocus:ce(o.onFocus,()=>h(!0)),onBlur:ce(o.onBlur,()=>h(!1)),onPointerUp:ce(o.onPointerUp,b),onPointerMove:ce(o.onPointerMove,v=>{var g;s?(g=c.onItemLeave)==null||g.call(c):v.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ce(o.onPointerLeave,v=>{var g;v.currentTarget===document.activeElement&&((g=c.onItemLeave)==null||g.call(c))}),onKeyDown:ce(o.onKeyDown,v=>{var g;((g=c.searchRef)==null?void 0:g.current)!==""&&v.key===" "||(WX.includes(v.key)&&b(),v.key===" "&&v.preventDefault())})})})})});I9.displayName=ev;var Xd="SelectItemText",O9=m.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:s,...i}=t,o=Ua(Xd,r),a=$a(Xd,r),c=P9(Xd,r),l=GX(Xd,r),[u,f]=m.useState(null),d=$e(e,v=>f(v),c.onItemTextChange,v=>{var g;return(g=a.itemTextRefCallback)==null?void 0:g.call(a,v,c.value,c.disabled)}),h=u==null?void 0:u.textContent,y=m.useMemo(()=>E.jsx("option",{value:c.value,disabled:c.disabled,children:h},c.value),[c.disabled,c.value,h]),{onNativeOptionAdd:p,onNativeOptionRemove:b}=l;return xr(()=>(p(y),()=>b(y)),[p,b,y]),E.jsxs(E.Fragment,{children:[E.jsx(Ae.span,{id:c.textId,...i,ref:d}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ja.createPortal(i.children,o.valueNode):null]})});O9.displayName=Xd;var R9="SelectItemIndicator",rZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return P9(R9,r).isSelected?E.jsx(Ae.span,{"aria-hidden":!0,...n,ref:e}):null});rZ.displayName=R9;var vw="SelectScrollUpButton",nZ=m.forwardRef((t,e)=>{const r=$a(vw,t.__scopeSelect),n=r5(vw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollTop>0;i(l)};const c=r.viewport;return a(),c.addEventListener("scroll",a),()=>c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(N9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop-c.offsetHeight)}}):null});nZ.displayName=vw;var gw="SelectScrollDownButton",sZ=m.forwardRef((t,e)=>{const r=$a(gw,t.__scopeSelect),n=r5(gw,t.__scopeSelect),[s,i]=m.useState(!1),o=$e(e,n.onScrollButtonChange);return xr(()=>{if(r.viewport&&r.isPositioned){let a=function(){const l=c.scrollHeight-c.clientHeight,u=Math.ceil(c.scrollTop)c.removeEventListener("scroll",a)}},[r.viewport,r.isPositioned]),s?E.jsx(N9,{...t,ref:o,onAutoScroll:()=>{const{viewport:a,selectedItem:c}=r;a&&c&&(a.scrollTop=a.scrollTop+c.offsetHeight)}}):null});sZ.displayName=gw;var N9=m.forwardRef((t,e)=>{const{__scopeSelect:r,onAutoScroll:n,...s}=t,i=$a("SelectScrollButton",r),o=m.useRef(null),a=wg(r),c=m.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return m.useEffect(()=>()=>c(),[c]),xr(()=>{var l;const u=a().find(f=>f.ref.current===document.activeElement);(l=u==null?void 0:u.ref.current)==null||l.scrollIntoView({block:"nearest"})},[a]),E.jsx(Ae.div,{"aria-hidden":!0,...s,ref:e,style:{flexShrink:0,...s.style},onPointerDown:ce(s.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(n,50))}),onPointerMove:ce(s.onPointerMove,()=>{var l;(l=i.onItemLeave)==null||l.call(i),o.current===null&&(o.current=window.setInterval(n,50))}),onPointerLeave:ce(s.onPointerLeave,()=>{c()})})}),iZ="SelectSeparator",oZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t;return E.jsx(Ae.div,{"aria-hidden":!0,...n,ref:e})});oZ.displayName=iZ;var mw="SelectArrow",aZ=m.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,s=Cg(r),i=Ua(mw,r),o=$a(mw,r);return i.open&&o.position==="popper"?E.jsx(NE,{...s,...n,ref:e}):null});aZ.displayName=mw;function _9(t){return t===""||t===void 0}var M9=m.forwardRef((t,e)=>{const{value:r,...n}=t,s=m.useRef(null),i=$e(e,s),o=lg(r);return m.useEffect(()=>{const a=s.current,c=window.HTMLSelectElement.prototype,u=Object.getOwnPropertyDescriptor(c,"value").set;if(o!==r&&u){const f=new Event("change",{bubbles:!0});u.call(a,r),a.dispatchEvent(f)}},[o,r]),E.jsx(d1,{asChild:!0,children:E.jsx("select",{...n,ref:i,defaultValue:r})})});M9.displayName="BubbleSelect";function D9(t){const e=_r(t),r=m.useRef(""),n=m.useRef(0),s=m.useCallback(o=>{const a=r.current+o;e(a),function c(l){r.current=l,window.clearTimeout(n.current),l!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(a)},[e]),i=m.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return m.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,s,i]}function B9(t,e,r){const s=e.length>1&&Array.from(e).every(l=>l===e[0])?e[0]:e,i=r?t.indexOf(r):-1;let o=cZ(t,Math.max(i,0));s.length===1&&(o=o.filter(l=>l!==r));const c=o.find(l=>l.textValue.toLowerCase().startsWith(s.toLowerCase()));return c!==r?c:void 0}function cZ(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var lZ=p9,uZ=v9,fZ=m9,dZ=x9,hZ=b9,pZ=k9,yZ=S9,vZ=I9,gZ=O9,mZ="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",xZ=At({defaultClassName:"gohwum5",variantClassNames:{borderRadius:{xs:"gohwum6 gohwum2 fyvr11cw fyvr11dk fyvr11bk fyvr11c8",sm:"gohwum7 gohwum3 fyvr11d0 fyvr11do fyvr11bo fyvr11cc",md:"gohwum8 gohwum4 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg"}},defaultVariants:{},compoundVariants:[]}),bZ="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",wZ="gohwume _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwumd fyvr1ww fyvr1ys fyvr1t0 fyvr1uw fyvr12ws fyvr12wt fyvr12wm fyvr12wn fyvr11h0 fyvr11jw fyvr11ko fyvr12v7 fyvr12v3 fyvr12s1 fyvr12w1 fyvr12vr";const CZ=m.forwardRef(({children:t,className:e,...r},n)=>E.jsx(vZ,{className:Yr(wZ,e),...r,ref:n,children:E.jsx(gZ,{children:t})})),jS=m.forwardRef((t,e)=>{const{borderRadius:r="md",disabled:n=!1,id:s,label:i="",description:o,labelLocation:a="hidden",name:c,options:l,placeholder:u,...f}=t;return E.jsx(ud,{disabled:n,display:"grid",id:s??c,label:i,labelLocation:a,description:o,whiteSpace:"nowrap",children:E.jsxs(lZ,{disabled:n,name:c,...f,children:[E.jsxs(uZ,{id:s??c,className:Yr(mZ,xZ({borderRadius:r})),ref:e,children:[E.jsx(fZ,{placeholder:u}),E.jsx(me,{as:dZ,display:"inline-flex",children:E.jsx(xI,{})})]}),E.jsx(hZ,{className:bZ,children:E.jsx(pZ,{children:E.jsx(yZ,{children:l.map(({value:d,label:h,...y})=>E.jsx(CZ,{value:d,...y,children:h},d))})})})]})})});m.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:s="Search",name:i="search",value:o,...a}=t,c=o?E.jsx(HE,{icon:yE,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return E.jsx(YE,{ref:e,name:i,leftIcon:Aq,controls:r||c,placeholder:s,value:o,onChange:l=>n==null?void 0:n(l),...a})});var EZ=At({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});m.forwardRef((t,e)=>{const{size:r="md",...n}=t;return E.jsx(me,{className:EZ({size:r}),color:"text50",ref:e,...n,children:E.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[E.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),E.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});m.forwardRef(({children:t},e)=>E.jsx(me,{ref:e,width:"fit",height:"fit",onClick:r=>{r.preventDefault(),r.stopPropagation()},onKeyDown:r=>{(r.key==="Enter"||r.key===" ")&&(r.preventDefault(),r.stopPropagation())},children:t}));var n5="Switch",[kZ,$de]=Mr(n5),[AZ,SZ]=kZ(n5),TZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,name:n,checked:s,defaultChecked:i,required:o,disabled:a,value:c="on",onCheckedChange:l,...u}=t,[f,d]=m.useState(null),h=$e(e,g=>d(g)),y=m.useRef(!1),p=f?!!f.closest("form"):!0,[b=!1,v]=is({prop:s,defaultProp:i,onChange:l});return E.jsxs(AZ,{scope:r,checked:b,disabled:a,children:[E.jsx(Ae.button,{type:"button",role:"switch","aria-checked":b,"aria-required":o,"data-state":j9(b),"data-disabled":a?"":void 0,disabled:a,value:c,...u,ref:h,onClick:ce(t.onClick,g=>{v(x=>!x),p&&(y.current=g.isPropagationStopped(),y.current||g.stopPropagation())})}),p&&E.jsx(IZ,{control:f,bubbles:!y.current,name:n,value:c,checked:b,required:o,disabled:a,style:{transform:"translateX(-100%)"}})]})});TZ.displayName=n5;var L9="SwitchThumb",PZ=m.forwardRef((t,e)=>{const{__scopeSwitch:r,...n}=t,s=SZ(L9,r);return E.jsx(Ae.span,{"data-state":j9(s.checked),"data-disabled":s.disabled?"":void 0,...n,ref:e})});PZ.displayName=L9;var IZ=t=>{const{control:e,checked:r,bubbles:n=!0,...s}=t,i=m.useRef(null),o=lg(r),a=ug(e);return m.useEffect(()=>{const c=i.current,l=window.HTMLInputElement.prototype,f=Object.getOwnPropertyDescriptor(l,"checked").set;if(o!==r&&f){const d=new Event("click",{bubbles:n});f.call(c,r),c.dispatchEvent(d)}},[o,r,n]),E.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:i,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})};function j9(t){return t?"checked":"unchecked"}At({defaultClassName:"nwwh3z8",variantClassNames:{variant:{pill:"nwwh3z9",line:"nwwh3za nwwh3z1 fyvr11g0"},active:{true:"nwwh3zb nwwh3z2 fyvr12w5",false:"nwwh3zc"},disabled:{true:"nwwh3zd nwwh3z3 fyvr12vp"}},defaultVariants:{},compoundVariants:[[{active:!0,variant:"pill"},"nwwh3z4 fyvr11u7 fyvr12sj"],[{active:!1,variant:"pill"},"nwwh3z5 fyvr11od fyvr12s7"],[{active:!0,variant:"line"},"nwwh3z6 fyvr12s1"],[{active:!1,variant:"line"},"nwwh3z7 fyvr12s7"]]});var s5="Tabs",[OZ,Wde]=Mr(s5,[vd]),F9=vd(),[RZ,i5]=OZ(s5),NZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,onValueChange:s,defaultValue:i,orientation:o="horizontal",dir:a,activationMode:c="automatic",...l}=t,u=a1(a),[f,d]=is({prop:n,onChange:s,defaultProp:i});return E.jsx(RZ,{scope:r,baseId:es(),value:f,onValueChange:d,orientation:o,dir:u,activationMode:c,children:E.jsx(Ae.div,{dir:u,"data-orientation":o,...l,ref:e})})});NZ.displayName=s5;var U9="TabsList",_Z=m.forwardRef((t,e)=>{const{__scopeTabs:r,loop:n=!0,...s}=t,i=i5(U9,r),o=F9(r);return E.jsx(_E,{asChild:!0,...o,orientation:i.orientation,dir:i.dir,loop:n,children:E.jsx(Ae.div,{role:"tablist","aria-orientation":i.orientation,...s,ref:e})})});_Z.displayName=U9;var $9="TabsTrigger",MZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,disabled:s=!1,...i}=t,o=i5($9,r),a=F9(r),c=V9(o.baseId,n),l=H9(o.baseId,n),u=n===o.value;return E.jsx(ME,{asChild:!0,...a,focusable:!s,active:u,children:E.jsx(Ae.button,{type:"button",role:"tab","aria-selected":u,"aria-controls":l,"data-state":u?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...i,ref:e,onMouseDown:ce(t.onMouseDown,f=>{!s&&f.button===0&&f.ctrlKey===!1?o.onValueChange(n):f.preventDefault()}),onKeyDown:ce(t.onKeyDown,f=>{[" ","Enter"].includes(f.key)&&o.onValueChange(n)}),onFocus:ce(t.onFocus,()=>{const f=o.activationMode!=="manual";!u&&!s&&f&&o.onValueChange(n)})})})});MZ.displayName=$9;var W9="TabsContent",DZ=m.forwardRef((t,e)=>{const{__scopeTabs:r,value:n,forceMount:s,children:i,...o}=t,a=i5(W9,r),c=V9(a.baseId,n),l=H9(a.baseId,n),u=n===a.value,f=m.useRef(u);return m.useEffect(()=>{const d=requestAnimationFrame(()=>f.current=!1);return()=>cancelAnimationFrame(d)},[]),E.jsx(Xr,{present:s||u,children:({present:d})=>E.jsx(Ae.div,{"data-state":u?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!d,id:l,tabIndex:0,...o,ref:e,style:{...t.style,animationDuration:f.current?"0s":void 0},children:d&&i})})});DZ.displayName=W9;function V9(t,e){return`${t}-trigger-${e}`}function H9(t,e){return`${t}-content-${e}`}var BZ="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";m.forwardRef((t,e)=>{const{icon:r,label:n,...s}=t;return E.jsxs(me,{className:BZ,ref:e,background:"buttonGlass",color:"text80",...s,children:[r&&E.jsx(r,{size:"xs"}),E.jsx(Tt,{children:n})]})});var LZ="ToastProvider",[z9,jZ,FZ]=fg("Toast"),[G9,Vde]=Mr("Toast",[FZ]),[Hde,Eg]=G9(LZ),q9="ToastViewport",UZ=["F8"],xw="toast.viewportPause",bw="toast.viewportResume",$Z=m.forwardRef((t,e)=>{const{__scopeToast:r,hotkey:n=UZ,label:s="Notifications ({hotkey})",...i}=t,o=Eg(q9,r),a=jZ(r),c=m.useRef(null),l=m.useRef(null),u=m.useRef(null),f=m.useRef(null),d=$e(e,f,o.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),y=o.toastCount>0;m.useEffect(()=>{const b=v=>{var g;n.every(k=>v[k]||v.code===k)&&((g=f.current)==null||g.focus())};return document.addEventListener("keydown",b),()=>document.removeEventListener("keydown",b)},[n]),m.useEffect(()=>{const b=c.current,v=f.current;if(y&&b&&v){const g=()=>{if(!o.isClosePausedRef.current){const I=new CustomEvent(xw);v.dispatchEvent(I),o.isClosePausedRef.current=!0}},x=()=>{if(o.isClosePausedRef.current){const I=new CustomEvent(bw);v.dispatchEvent(I),o.isClosePausedRef.current=!1}},k=I=>{!b.contains(I.relatedTarget)&&x()},S=()=>{b.contains(document.activeElement)||x()};return b.addEventListener("focusin",g),b.addEventListener("focusout",k),b.addEventListener("pointermove",g),b.addEventListener("pointerleave",S),window.addEventListener("blur",g),window.addEventListener("focus",x),()=>{b.removeEventListener("focusin",g),b.removeEventListener("focusout",k),b.removeEventListener("pointermove",g),b.removeEventListener("pointerleave",S),window.removeEventListener("blur",g),window.removeEventListener("focus",x)}}},[y,o.isClosePausedRef]);const p=m.useCallback(({tabbingDirection:b})=>{const g=a().map(x=>{const k=x.ref.current,S=[k,...see(k)];return b==="forwards"?S:S.reverse()});return(b==="forwards"?g.reverse():g).flat()},[a]);return m.useEffect(()=>{const b=f.current;if(b){const v=g=>{var x,k,S;const I=g.altKey||g.ctrlKey||g.metaKey;if(g.key==="Tab"&&!I){const _=document.activeElement,V=g.shiftKey;if(g.target===b&&V){(x=l.current)==null||x.focus();return}const re=p({tabbingDirection:V?"backwards":"forwards"}),le=re.findIndex(ee=>ee===_);px(re.slice(le+1))?g.preventDefault():V?(k=l.current)==null||k.focus():(S=u.current)==null||S.focus()}};return b.addEventListener("keydown",v),()=>b.removeEventListener("keydown",v)}},[a,p]),E.jsxs(Zq,{ref:c,role:"region","aria-label":s.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:y?void 0:"none"},children:[y&&E.jsx(ww,{ref:l,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"forwards"});px(b)}}),E.jsx(z9.Slot,{scope:r,children:E.jsx(Ae.ol,{tabIndex:-1,...i,ref:d})}),y&&E.jsx(ww,{ref:u,onFocusFromOutsideViewport:()=>{const b=p({tabbingDirection:"backwards"});px(b)}})]})});$Z.displayName=q9;var K9="ToastFocusProxy",ww=m.forwardRef((t,e)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...s}=t,i=Eg(K9,r);return E.jsx(d1,{"aria-hidden":!0,tabIndex:0,...s,ref:e,style:{position:"fixed"},onFocus:o=>{var a;const c=o.relatedTarget;!((a=i.viewport)!=null&&a.contains(c))&&n()}})});ww.displayName=K9;var kg="Toast",WZ="toast.swipeStart",VZ="toast.swipeMove",HZ="toast.swipeCancel",zZ="toast.swipeEnd",GZ=m.forwardRef((t,e)=>{const{forceMount:r,open:n,defaultOpen:s,onOpenChange:i,...o}=t,[a=!0,c]=is({prop:n,defaultProp:s,onChange:i});return E.jsx(Xr,{present:r||a,children:E.jsx(QZ,{open:a,...o,ref:e,onClose:()=>c(!1),onPause:_r(t.onPause),onResume:_r(t.onResume),onSwipeStart:ce(t.onSwipeStart,l=>{l.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ce(t.onSwipeMove,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","move"),l.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${f}px`)}),onSwipeCancel:ce(t.onSwipeCancel,l=>{l.currentTarget.setAttribute("data-swipe","cancel"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ce(t.onSwipeEnd,l=>{const{x:u,y:f}=l.detail.delta;l.currentTarget.setAttribute("data-swipe","end"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),l.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${u}px`),l.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${f}px`),c(!1)})})})});GZ.displayName=kg;var[qZ,KZ]=G9(kg,{onClose(){}}),QZ=m.forwardRef((t,e)=>{const{__scopeToast:r,type:n="foreground",duration:s,open:i,onClose:o,onEscapeKeyDown:a,onPause:c,onResume:l,onSwipeStart:u,onSwipeMove:f,onSwipeCancel:d,onSwipeEnd:h,...y}=t,p=Eg(kg,r),[b,v]=m.useState(null),g=$e(e,ee=>v(ee)),x=m.useRef(null),k=m.useRef(null),S=s||p.duration,I=m.useRef(0),R=m.useRef(S),_=m.useRef(0),{onToastAdd:V,onToastRemove:F}=p,X=_r(()=>{var ee;(b==null?void 0:b.contains(document.activeElement))&&((ee=p.viewport)==null||ee.focus()),o()}),re=m.useCallback(ee=>{!ee||ee===1/0||(window.clearTimeout(_.current),I.current=new Date().getTime(),_.current=window.setTimeout(X,ee))},[X]);m.useEffect(()=>{const ee=p.viewport;if(ee){const D=()=>{re(R.current),l==null||l()},G=()=>{const Z=new Date().getTime()-I.current;R.current=R.current-Z,window.clearTimeout(_.current),c==null||c()};return ee.addEventListener(xw,G),ee.addEventListener(bw,D),()=>{ee.removeEventListener(xw,G),ee.removeEventListener(bw,D)}}},[p.viewport,S,c,l,re]),m.useEffect(()=>{i&&!p.isClosePausedRef.current&&re(S)},[i,S,p.isClosePausedRef,re]),m.useEffect(()=>(V(),()=>F()),[V,F]);const le=m.useMemo(()=>b?Z9(b):null,[b]);return p.viewport?E.jsxs(E.Fragment,{children:[le&&E.jsx(JZ,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0,children:le}),E.jsx(qZ,{scope:r,onClose:X,children:ja.createPortal(E.jsx(z9.ItemSlot,{scope:r,children:E.jsx(Xq,{asChild:!0,onEscapeKeyDown:ce(a,()=>{p.isFocusedToastEscapeKeyDownRef.current||X(),p.isFocusedToastEscapeKeyDownRef.current=!1}),children:E.jsx(Ae.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":p.swipeDirection,...y,ref:g,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:ce(t.onKeyDown,ee=>{ee.key==="Escape"&&(a==null||a(ee.nativeEvent),ee.nativeEvent.defaultPrevented||(p.isFocusedToastEscapeKeyDownRef.current=!0,X()))}),onPointerDown:ce(t.onPointerDown,ee=>{ee.button===0&&(x.current={x:ee.clientX,y:ee.clientY})}),onPointerMove:ce(t.onPointerMove,ee=>{if(!x.current)return;const D=ee.clientX-x.current.x,G=ee.clientY-x.current.y,Z=!!k.current,C=["left","right"].includes(p.swipeDirection),A=["left","up"].includes(p.swipeDirection)?Math.min:Math.max,O=C?A(0,D):0,M=C?0:A(0,G),B=ee.pointerType==="touch"?10:2,W={x:O,y:M},q={originalEvent:ee,delta:W};Z?(k.current=W,sp(VZ,f,q,{discrete:!1})):FS(W,p.swipeDirection,B)?(k.current=W,sp(WZ,u,q,{discrete:!1}),ee.target.setPointerCapture(ee.pointerId)):(Math.abs(D)>B||Math.abs(G)>B)&&(x.current=null)}),onPointerUp:ce(t.onPointerUp,ee=>{const D=k.current,G=ee.target;if(G.hasPointerCapture(ee.pointerId)&&G.releasePointerCapture(ee.pointerId),k.current=null,x.current=null,D){const Z=ee.currentTarget,C={originalEvent:ee,delta:D};FS(D,p.swipeDirection,p.swipeThreshold)?sp(zZ,h,C,{discrete:!0}):sp(HZ,d,C,{discrete:!0}),Z.addEventListener("click",A=>A.preventDefault(),{once:!0})}})})})}),p.viewport)})]}):null}),JZ=t=>{const{__scopeToast:e,children:r,...n}=t,s=Eg(kg,e),[i,o]=m.useState(!1),[a,c]=m.useState(!1);return ree(()=>o(!0)),m.useEffect(()=>{const l=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(l)},[]),a?null:E.jsx(l1,{asChild:!0,children:E.jsx(d1,{...n,children:i&&E.jsxs(E.Fragment,{children:[s.label," ",r]})})})},YZ="ToastTitle",XZ=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});XZ.displayName=YZ;var ZZ="ToastDescription",eee=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t;return E.jsx(Ae.div,{...n,ref:e})});eee.displayName=ZZ;var Q9="ToastAction",tee=m.forwardRef((t,e)=>{const{altText:r,...n}=t;return r.trim()?E.jsx(X9,{altText:r,asChild:!0,children:E.jsx(Y9,{...n,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${Q9}\`. Expected non-empty \`string\`.`),null)});tee.displayName=Q9;var J9="ToastClose",Y9=m.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,s=KZ(J9,r);return E.jsx(X9,{asChild:!0,children:E.jsx(Ae.button,{type:"button",...n,ref:e,onClick:ce(t.onClick,s.onClose)})})});Y9.displayName=J9;var X9=m.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...s}=t;return E.jsx(Ae.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0,...s,ref:e})});function Z9(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),nee(n)){const s=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!s)if(i){const o=n.dataset.radixToastAnnounceAlt;o&&e.push(o)}else e.push(...Z9(n))}}),e}function sp(t,e,r,{discrete:n}){const s=r.originalEvent.currentTarget,i=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:r});e&&s.addEventListener(t,e,{once:!0}),n?hE(s,i):s.dispatchEvent(i)}var FS=(t,e,r=0)=>{const n=Math.abs(t.x),s=Math.abs(t.y),i=n>s;return e==="left"||e==="right"?i&&n>r:!i&&s>r};function ree(t=()=>{}){const e=_r(t);xr(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function nee(t){return t.nodeType===t.ELEMENT_NODE}function see(t){const e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const s=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||s?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function px(t){const e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}At({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});m.createContext(null);var iee="_15pztn1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 _15pztn0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr12s1 fyvr12o1 fyvr12wj fyvr128 fyvr11h0",oee="_15pztn2";m.forwardRef((t,e)=>{const{as:r="textarea",autoComplete:n="off",borderRadius:s="md",description:i,disabled:o=!1,id:a,label:c="",labelLocation:l="hidden",name:u,rows:f,resize:d=!1,...h}=t;return E.jsx(ud,{description:i,disabled:o,display:"grid",id:a??u,label:c,labelLocation:l,children:E.jsx(me,{as:r,autoComplete:n,spellCheck:"false",className:Yr(iee,d&&oee),disabled:o,id:a??u,name:u,ref:e,rows:f,borderRadius:s,...h})})});var aee=At({defaultClassName:"_18h918k5 _18h918k0 fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11h0",variantClassNames:{size:{xs:"_18h918k6",sm:"_18h918k7",md:"_18h918k8",lg:"_18h918k9",xl:"_18h918ka"},borderRadius:{circle:"_18h918kb _18h918k1 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co",lg:"_18h918kc _18h918k2 fyvr11d8 fyvr11dw fyvr11bw fyvr11ck",md:"_18h918kd _18h918k3 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg",sm:"_18h918ke _18h918k4 fyvr11d0 fyvr11do fyvr11bo fyvr11cc"}},defaultVariants:{},compoundVariants:[]}),cee="_18h918kf";const lee=m.memo(t=>{const{chainId:e,borderRadius:r="circle",className:n,disableAnimation:s=!1,style:i,src:o,size:a="md",...c}=t,l=o||HG(zG(e),a);return E.jsx(me,{className:Yr(n,aee({borderRadius:r,size:a})),style:i,flexShrink:"0",...c,children:E.jsx(zE,{className:cee,disableAnimation:s,src:l})})});var uee=At({defaultClassName:"bnrreb1 bnrreb0 fyvr11jg fyvr11ko fyvr11hw fyvr11h0",variantClassNames:{size:{xs:"bnrreb2",sm:"bnrreb3",md:"bnrreb4",lg:"bnrreb5",xl:"bnrreb6"}},defaultVariants:{},compoundVariants:[]}),fee="bnrreb7",dee="bnrreb9 bnrreb8 fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const hee=m.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:s,src:i,symbol:o,size:a="md",withNetwork:c,...l}=t;return E.jsxs(me,{className:Yr(r,uee({size:a})),style:s,flexShrink:"0",...l,children:[i?E.jsx(zE,{className:fee,disableAnimation:n,borderRadius:e,overflow:"hidden",src:i}):E.jsx(Tt,{className:dee,variant:"normal",fontWeight:"medium",color:"text50",borderRadius:e,overflow:"hidden",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)}),c&&E.jsx(me,{position:"absolute",zIndex:"1",borderRadius:"circle",borderWidth:"thin",borderStyle:"solid",borderColor:"backgroundPrimary",background:"backgroundPrimary",placeItems:"center",style:{width:18,height:18,right:-2,bottom:-2},children:E.jsx(lee,{chainId:c,style:{width:16,height:16}})})]})});var[Ag,zde]=Mr("Tooltip",[yd]),Sg=yd(),eR="TooltipProvider",pee=700,Cw="tooltip.open",[yee,o5]=Ag(eR),vee=t=>{const{__scopeTooltip:e,delayDuration:r=pee,skipDelayDuration:n=300,disableHoverableContent:s=!1,children:i}=t,[o,a]=m.useState(!0),c=m.useRef(!1),l=m.useRef(0);return m.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),E.jsx(yee,{scope:e,isOpenDelayed:o,delayDuration:r,onOpen:m.useCallback(()=>{window.clearTimeout(l.current),a(!1)},[]),onClose:m.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>a(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:m.useCallback(u=>{c.current=u},[]),disableHoverableContent:s,children:i})};vee.displayName=eR;var Tg="Tooltip",[gee,p1]=Ag(Tg),mee=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:s=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=t,c=o5(Tg,t.__scopeTooltip),l=Sg(e),[u,f]=m.useState(null),d=es(),h=m.useRef(0),y=o??c.disableHoverableContent,p=a??c.delayDuration,b=m.useRef(!1),[v=!1,g]=is({prop:n,defaultProp:s,onChange:R=>{R?(c.onOpen(),document.dispatchEvent(new CustomEvent(Cw))):c.onClose(),i==null||i(R)}}),x=m.useMemo(()=>v?b.current?"delayed-open":"instant-open":"closed",[v]),k=m.useCallback(()=>{window.clearTimeout(h.current),b.current=!1,g(!0)},[g]),S=m.useCallback(()=>{window.clearTimeout(h.current),g(!1)},[g]),I=m.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{b.current=!0,g(!0)},p)},[p,g]);return m.useEffect(()=>()=>window.clearTimeout(h.current),[]),E.jsx(IE,{...l,children:E.jsx(gee,{scope:e,contentId:d,open:v,stateAttribute:x,trigger:u,onTriggerChange:f,onTriggerEnter:m.useCallback(()=>{c.isOpenDelayed?I():k()},[c.isOpenDelayed,I,k]),onTriggerLeave:m.useCallback(()=>{y?S():window.clearTimeout(h.current)},[S,y]),onOpen:k,onClose:S,disableHoverableContent:y,children:r})})};mee.displayName=Tg;var Ew="TooltipTrigger",xee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=p1(Ew,r),i=o5(Ew,r),o=Sg(r),a=m.useRef(null),c=$e(e,a,s.onTriggerChange),l=m.useRef(!1),u=m.useRef(!1),f=m.useCallback(()=>l.current=!1,[]);return m.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),E.jsx(OE,{asChild:!0,...o,children:E.jsx(Ae.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...n,ref:c,onPointerMove:ce(t.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(s.onTriggerEnter(),u.current=!0)}),onPointerLeave:ce(t.onPointerLeave,()=>{s.onTriggerLeave(),u.current=!1}),onPointerDown:ce(t.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:ce(t.onFocus,()=>{l.current||s.onOpen()}),onBlur:ce(t.onBlur,s.onClose),onClick:ce(t.onClick,s.onClose)})})});xee.displayName=Ew;var a5="TooltipPortal",[bee,wee]=Ag(a5,{forceMount:void 0}),Cee=t=>{const{__scopeTooltip:e,forceMount:r,children:n,container:s}=t,i=p1(a5,e);return E.jsx(bee,{scope:e,forceMount:r,children:E.jsx(Xr,{present:r||i.open,children:E.jsx(l1,{asChild:!0,container:s,children:n})})})};Cee.displayName=a5;var $f="TooltipContent",Eee=m.forwardRef((t,e)=>{const r=wee($f,t.__scopeTooltip),{forceMount:n=r.forceMount,side:s="top",...i}=t,o=p1($f,t.__scopeTooltip);return E.jsx(Xr,{present:n||o.open,children:o.disableHoverableContent?E.jsx(tR,{side:s,...i,ref:e}):E.jsx(kee,{side:s,...i,ref:e})})}),kee=m.forwardRef((t,e)=>{const r=p1($f,t.__scopeTooltip),n=o5($f,t.__scopeTooltip),s=m.useRef(null),i=$e(e,s),[o,a]=m.useState(null),{trigger:c,onClose:l}=r,u=s.current,{onPointerInTransitChange:f}=n,d=m.useCallback(()=>{a(null),f(!1)},[f]),h=m.useCallback((y,p)=>{const b=y.currentTarget,v={x:y.clientX,y:y.clientY},g=Pee(v,b.getBoundingClientRect()),x=Iee(v,g),k=Oee(p.getBoundingClientRect()),S=Nee([...x,...k]);a(S),f(!0)},[f]);return m.useEffect(()=>()=>d(),[d]),m.useEffect(()=>{if(c&&u){const y=b=>h(b,u),p=b=>h(b,c);return c.addEventListener("pointerleave",y),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",y),u.removeEventListener("pointerleave",p)}}},[c,u,h,d]),m.useEffect(()=>{if(o){const y=p=>{const b=p.target,v={x:p.clientX,y:p.clientY},g=(c==null?void 0:c.contains(b))||(u==null?void 0:u.contains(b)),x=!Ree(v,o);g?d():x&&(d(),l())};return document.addEventListener("pointermove",y),()=>document.removeEventListener("pointermove",y)}},[c,u,o,l,d]),E.jsx(tR,{...t,ref:i})}),[Aee,See]=Ag(Tg,{isInside:!1}),tR=m.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":s,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=t,c=p1($f,r),l=Sg(r),{onClose:u}=c;return m.useEffect(()=>(document.addEventListener(Cw,u),()=>document.removeEventListener(Cw,u)),[u]),m.useEffect(()=>{if(c.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(c.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[c.trigger,u]),E.jsx(dd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:E.jsxs(RE,{"data-state":c.stateAttribute,...l,...a,ref:e,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[E.jsx(hI,{children:n}),E.jsx(Aee,{scope:r,isInside:!0,children:E.jsx(UX,{id:c.contentId,role:"tooltip",children:s||n})})]})})});Eee.displayName=$f;var rR="TooltipArrow",Tee=m.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,s=Sg(r);return See(rR,r).isInside?null:E.jsx(NE,{...s,...n,ref:e})});Tee.displayName=rR;function Pee(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),s=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,s,i)){case i:return"left";case s:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function Iee(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function Oee(t){const{top:e,right:r,bottom:n,left:s}=t;return[{x:s,y:e},{x:r,y:e},{x:r,y:n},{x:s,y:n}]}function Ree(t,e){const{x:r,y:n}=t;let s=!1;for(let i=0,o=e.length-1;in!=u>n&&r<(l-a)*(n-c)/(u-c)+a&&(s=!s)}return s}function Nee(t){const e=t.slice();return e.sort((r,n)=>r.xn.x?1:r.yn.y?1:0),_ee(e)}function _ee(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))e.pop();else break}e.push(s)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const s=t[n];for(;r.length>=2;){const i=r[r.length-1],o=r[r.length-2];if((i.x-o.x)*(s.y-o.y)>=(i.y-o.y)*(s.x-o.x))r.pop();else break}r.push(s)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var nR,US=ja;nR=US.createRoot,US.hydrateRoot;const c5="6.13.2";function Mee(t,e,r){const n=e.split("|").map(i=>i.trim());for(let i=0;iPromise.resolve(t[n])))).reduce((n,s,i)=>(n[e[i]]=s,n),{})}function fe(t,e,r){for(let n in e){let s=e[n];const i=r?r[n]:null;i&&Mee(s,i,n),Object.defineProperty(t,n,{enumerable:!0,value:s,writable:!1})}}function fu(t){if(t==null)return"null";if(Array.isArray(t))return"[ "+t.map(fu).join(", ")+" ]";if(t instanceof Uint8Array){const e="0123456789abcdef";let r="0x";for(let n=0;n>4],r+=e[t[n]&15];return r}if(typeof t=="object"&&typeof t.toJSON=="function")return fu(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"number":return t.toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{ "+e.map(r=>`${fu(r)}: ${fu(t[r])}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Ht(t,e){return t&&t.code===e}function Pg(t){return Ht(t,"CALL_EXCEPTION")}function ft(t,e,r){let n=t;{const i=[];if(r){if("message"in r||"code"in r||"name"in r)throw new Error(`value will overwrite populated values: ${fu(r)}`);for(const o in r){if(o==="shortMessage")continue;const a=r[o];i.push(o+"="+fu(a))}}i.push(`code=${e}`),i.push(`version=${c5}`),i.length&&(t+=" ("+i.join(", ")+")")}let s;switch(e){case"INVALID_ARGUMENT":s=new TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":s=new RangeError(t);break;default:s=new Error(t)}return fe(s,{code:e}),r&&Object.assign(s,r),s.shortMessage==null&&fe(s,{shortMessage:n}),s}function z(t,e,r,n){if(!t)throw ft(e,r,n)}function P(t,e,r,n){z(t,e,"INVALID_ARGUMENT",{argument:r,value:n})}function l5(t,e,r){r==null&&(r=""),r&&(r=": "+r),z(t>=e,"missing arguemnt"+r,"MISSING_ARGUMENT",{count:t,expectedCount:e}),z(t<=e,"too many arguments"+r,"UNEXPECTED_ARGUMENT",{count:t,expectedCount:e})}const Dee=["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test".normalize(e)!=="test")throw new Error("bad");if(e==="NFD"&&"Ć©".normalize("NFD")!=="eĢ")throw new Error("broken");t.push(e)}catch{}return t},[]);function u5(t){z(Dee.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}})}function po(t,e,r){if(r==null&&(r=""),t!==e){let n=r,s="new";r&&(n+=".",s+=" "+r),z(!1,`private constructor; use ${n}from* methods`,"UNSUPPORTED_OPERATION",{operation:s})}}function sR(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if(typeof t=="string"&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const n=new Uint8Array((t.length-2)/2);let s=2;for(let i=0;i>4]+$S[s&15]}return r}function Le(t){return"0x"+t.map(e=>H(e).substring(2)).join("")}function xa(t){return et(t,!0)?(t.length-2)/2:Q(t).length}function st(t,e,r){const n=Q(t);return r!=null&&r>n.length&&z(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:n,length:n.length,offset:r}),H(n.slice(e??0,r??n.length))}function Bee(t){let e=H(t).substring(2);for(;e.startsWith("00");)e=e.substring(2);return"0x"+e}function iR(t,e,r){const n=Q(t);z(e>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:e,offset:e+1});const s=new Uint8Array(e);return s.fill(0),r?s.set(n,e-n.length):s.set(n,0),H(s)}function rs(t,e){return iR(t,e,!0)}function Ig(t,e){return iR(t,e,!1)}const Og=BigInt(0),ks=BigInt(1),du=9007199254740991;function h0(t,e){const r=y1(t,"value"),n=BigInt(Pe(e,"width"));if(z(r>>n===Og,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>n-ks){const s=(ks<=-du&&t<=du,"overflow",e||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(r){P(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}P(!1,"invalid BigNumberish value",e||"value",t)}function y1(t,e){const r=ve(t,e);return z(r>=Og,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}const WS="0123456789abcdef";function md(t){if(t instanceof Uint8Array){let e="0x0";for(const r of t)e+=WS[r>>4],e+=WS[r&15];return BigInt(e)}return ve(t)}function Pe(t,e){switch(typeof t){case"bigint":return P(t>=-du&&t<=du,"overflow",e||"value",t),Number(t);case"number":return P(Number.isInteger(t),"underflow",e||"value",t),P(t>=-du&&t<=du,"overflow",e||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return Pe(BigInt(t),e)}catch(r){P(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}P(!1,"invalid numeric value",e||"value",t)}function oR(t){return Pe(md(t))}function In(t,e){let n=y1(t,"value").toString(16);if(e==null)n.length%2&&(n="0"+n);else{const s=Pe(e,"width");for(z(s*2>=n.length,`value exceeds width (${s} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});n.length>6===2;o++)i++;return i}return t==="OVERRUN"?r.length-e-1:0}function Uee(t,e,r,n,s){return t==="OVERLONG"?(P(typeof s=="number","invalid bad code point for replacement","badCodepoint",s),n.push(s),0):(n.push(65533),uR(t,e,r))}const fR=Object.freeze({error:Fee,ignore:uR,replace:Uee});function dR(t,e){e==null&&(e=fR.error);const r=Q(t,"bytes"),n=[];let s=0;for(;s>7)){n.push(i);continue}let o=null,a=null;if((i&224)===192)o=1,a=127;else if((i&240)===224)o=2,a=2047;else if((i&248)===240)o=3,a=65535;else{(i&192)===128?s+=e("UNEXPECTED_CONTINUE",s-1,r,n):s+=e("BAD_PREFIX",s-1,r,n);continue}if(s-1+o>=r.length){s+=e("OVERRUN",s-1,r,n);continue}let c=i&(1<<8-o-1)-1;for(let l=0;l1114111){s+=e("OUT_OF_RANGE",s-1-o,r,n,c);continue}if(c>=55296&&c<=57343){s+=e("UTF16_SURROGATE",s-1-o,r,n,c);continue}if(c<=a){s+=e("OVERLONG",s-1-o,r,n,c);continue}n.push(c)}}return n}function mt(t,e){P(typeof t=="string","invalid string value","str",t),e!=null&&(u5(e),t=t.normalize(e));let r=[];for(let n=0;n>6|192),r.push(s&63|128);else if((s&64512)==55296){n++;const i=t.charCodeAt(n);P(n>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(o&63|128)}else r.push(s>>12|224),r.push(s>>6&63|128),r.push(s&63|128)}return new Uint8Array(r)}function $ee(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function Ms(t,e){return $ee(dR(t,e))}function Wee(t,e){return dR(mt(t,e))}function hR(t){async function e(r,n){z(n==null||!n.cancelled,"request cancelled before sending","CANCELLED");const s=r.url.split(":")[0].toLowerCase();z(s==="http"||s==="https",`unsupported protocol ${s}`,"UNSUPPORTED_OPERATION",{info:{protocol:s},operation:"request"}),z(s==="https"||!r.credentials||r.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let i=null;const o=new AbortController,a=setTimeout(()=>{i=ft("request timeout","TIMEOUT"),o.abort()},r.timeout);n&&n.addListener(()=>{i=ft("request cancelled","CANCELLED"),o.abort()});const c={method:r.method,headers:new Headers(Array.from(r)),body:r.body||void 0,signal:o.signal};let l;try{l=await fetch(r.url,c)}catch(h){throw clearTimeout(a),i||h}clearTimeout(a);const u={};l.headers.forEach((h,y)=>{u[y.toLowerCase()]=h});const f=await l.arrayBuffer(),d=f==null?null:new Uint8Array(f);return{statusCode:l.status,statusMessage:l.statusText,headers:u,body:d}}return e}const Vee=12,Hee=250;let VS=hR();const zee=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),Gee=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let yx=!1;async function pR(t,e){try{const r=t.match(zee);if(!r)throw new Error("invalid data");return new Xi(200,"OK",{"content-type":r[1]||"text/plain"},r[2]?cR(r[3]):qee(r[3]))}catch{return new Xi(599,"BAD REQUEST (invalid data: URI)",{},null,new qt(t))}}function yR(t){async function e(r,n){try{const s=r.match(Gee);if(!s)throw new Error("invalid link");return new qt(`${t}${s[2]}`)}catch{return new Xi(599,"BAD REQUEST (invalid IPFS URI)",{},null,new qt(r))}}return e}const op={data:pR,ipfs:yR("https://gateway.ipfs.io/ipfs/")},vR=new WeakMap;var Cc,jo;class gR{constructor(e){j(this,Cc);j(this,jo);T(this,Cc,[]),T(this,jo,!1),vR.set(e,()=>{if(!w(this,jo)){T(this,jo,!0);for(const r of w(this,Cc))setTimeout(()=>{r()},0);T(this,Cc,[])}})}addListener(e){z(!w(this,jo),"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),w(this,Cc).push(e)}get cancelled(){return w(this,jo)}checkSignal(){z(!this.cancelled,"cancelled","CANCELLED",{})}}Cc=new WeakMap,jo=new WeakMap;function ap(t){if(t==null)throw new Error("missing signal; should not happen");return t.checkSignal(),t}var Fu,Uu,vs,Ii,$u,Wu,Jt,xn,Oi,Ec,kc,Ac,Ks,gs,Fo,Sc,Zd;const Ov=class Ov{constructor(e){j(this,Sc);j(this,Fu);j(this,Uu);j(this,vs);j(this,Ii);j(this,$u);j(this,Wu);j(this,Jt);j(this,xn);j(this,Oi);j(this,Ec);j(this,kc);j(this,Ac);j(this,Ks);j(this,gs);j(this,Fo);T(this,Wu,String(e)),T(this,Fu,!1),T(this,Uu,!0),T(this,vs,{}),T(this,Ii,""),T(this,$u,3e5),T(this,gs,{slotInterval:Hee,maxAttempts:Vee}),T(this,Fo,null)}get url(){return w(this,Wu)}set url(e){T(this,Wu,String(e))}get body(){return w(this,Jt)==null?null:new Uint8Array(w(this,Jt))}set body(e){if(e==null)T(this,Jt,void 0),T(this,xn,void 0);else if(typeof e=="string")T(this,Jt,mt(e)),T(this,xn,"text/plain");else if(e instanceof Uint8Array)T(this,Jt,e),T(this,xn,"application/octet-stream");else if(typeof e=="object")T(this,Jt,mt(JSON.stringify(e))),T(this,xn,"application/json");else throw new Error("invalid body")}hasBody(){return w(this,Jt)!=null}get method(){return w(this,Ii)?w(this,Ii):this.hasBody()?"POST":"GET"}set method(e){e==null&&(e=""),T(this,Ii,String(e).toUpperCase())}get headers(){const e=Object.assign({},w(this,vs));return w(this,Oi)&&(e.authorization=`Basic ${lR(mt(w(this,Oi)))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),e["content-type"]==null&&w(this,xn)&&(e["content-type"]=w(this,xn)),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,r){w(this,vs)[String(e).toLowerCase()]=String(r)}clearHeaders(){T(this,vs,{})}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"timeout must be non-zero","timeout",e),T(this,$u,e)}get preflightFunc(){return w(this,Ec)||null}set preflightFunc(e){T(this,Ec,e)}get processFunc(){return w(this,kc)||null}set processFunc(e){T(this,kc,e)}get retryFunc(){return w(this,Ac)||null}set retryFunc(e){T(this,Ac,e)}get getUrlFunc(){return w(this,Fo)||VS}set getUrlFunc(e){T(this,Fo,e)}toString(){return``}setThrottleParams(e){e.slotInterval!=null&&(w(this,gs).slotInterval=e.slotInterval),e.maxAttempts!=null&&(w(this,gs).maxAttempts=e.maxAttempts)}send(){return z(w(this,Ks)==null,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),T(this,Ks,new gR(this)),Y(this,Sc,Zd).call(this,0,HS()+this.timeout,0,this,new Xi(0,"",{},null,this))}cancel(){z(w(this,Ks)!=null,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=vR.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const r=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();z(this.method==="GET"&&(r!=="https"||n!=="http")&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const s=new Ov(e);return s.method="GET",s.allowGzip=this.allowGzip,s.timeout=this.timeout,T(s,vs,Object.assign({},w(this,vs))),w(this,Jt)&&T(s,Jt,new Uint8Array(w(this,Jt))),T(s,xn,w(this,xn)),s}clone(){const e=new Ov(this.url);return T(e,Ii,w(this,Ii)),w(this,Jt)&&T(e,Jt,w(this,Jt)),T(e,xn,w(this,xn)),T(e,vs,Object.assign({},w(this,vs))),T(e,Oi,w(this,Oi)),this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),T(e,Ec,w(this,Ec)),T(e,kc,w(this,kc)),T(e,Ac,w(this,Ac)),T(e,gs,Object.assign({},w(this,gs))),T(e,Fo,w(this,Fo)),e}static lockConfig(){yx=!0}static getGateway(e){return op[e.toLowerCase()]||null}static registerGateway(e,r){if(e=e.toLowerCase(),e==="http"||e==="https")throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(yx)throw new Error("gateways locked");op[e]=r}static registerGetUrl(e){if(yx)throw new Error("gateways locked");VS=e}static createGetUrlFunc(e){return hR()}static createDataGateway(){return pR}static createIpfsGatewayFunc(e){return yR(e)}};Fu=new WeakMap,Uu=new WeakMap,vs=new WeakMap,Ii=new WeakMap,$u=new WeakMap,Wu=new WeakMap,Jt=new WeakMap,xn=new WeakMap,Oi=new WeakMap,Ec=new WeakMap,kc=new WeakMap,Ac=new WeakMap,Ks=new WeakMap,gs=new WeakMap,Fo=new WeakMap,Sc=new WeakSet,Zd=async function(e,r,n,s,i){var u,f,d;if(e>=w(this,gs).maxAttempts)return i.makeServerError("exceeded maximum retry limit");z(HS()<=r,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:s}),n>0&&await Kee(n);let o=this.clone();const a=(o.url.split(":")[0]||"").toLowerCase();if(a in op){const h=await op[a](o.url,ap(w(s,Ks)));if(h instanceof Xi){let y=h;if(this.processFunc){ap(w(s,Ks));try{y=await this.processFunc(o,y)}catch(p){(p.throttle==null||typeof p.stall!="number")&&y.makeServerError("error in post-processing function",p).assertOk()}}return y}o=h}this.preflightFunc&&(o=await this.preflightFunc(o));const c=await this.getUrlFunc(o,ap(w(s,Ks)));let l=new Xi(c.statusCode,c.statusMessage,c.headers,c.body,s);if(l.statusCode===301||l.statusCode===302){try{const h=l.headers.location||"";return Y(u=o.redirect(h),Sc,Zd).call(u,e+1,r,0,s,l)}catch{}return l}else if(l.statusCode===429&&(this.retryFunc==null||await this.retryFunc(o,l,e))){const h=l.headers["retry-after"];let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return typeof h=="string"&&h.match(/^[1-9][0-9]*$/)&&(y=parseInt(h)),Y(f=o.clone(),Sc,Zd).call(f,e+1,r,y,s,l)}if(this.processFunc){ap(w(s,Ks));try{l=await this.processFunc(o,l)}catch(h){(h.throttle==null||typeof h.stall!="number")&&l.makeServerError("error in post-processing function",h).assertOk();let y=w(this,gs).slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return h.stall>=0&&(y=h.stall),Y(d=o.clone(),Sc,Zd).call(d,e+1,r,y,s,l)}}return l};let qt=Ov;var M0,D0,B0,bn,Vu,Tc;const Fk=class Fk{constructor(e,r,n,s,i){j(this,M0);j(this,D0);j(this,B0);j(this,bn);j(this,Vu);j(this,Tc);T(this,M0,e),T(this,D0,r),T(this,B0,Object.keys(n).reduce((o,a)=>(o[a.toLowerCase()]=String(n[a]),o),{})),T(this,bn,s==null?null:new Uint8Array(s)),T(this,Vu,i||null),T(this,Tc,{message:""})}toString(){return``}get statusCode(){return w(this,M0)}get statusMessage(){return w(this,D0)}get headers(){return Object.assign({},w(this,B0))}get body(){return w(this,bn)==null?null:new Uint8Array(w(this,bn))}get bodyText(){try{return w(this,bn)==null?"":Ms(w(this,bn))}catch{z(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch{z(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,r=Object.keys(e);let n=0;return{next:()=>{if(n=0,"invalid stall timeout","stall",r);const n=new Error(e||"throttling requests");throw fe(n,{stall:r,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return w(this,bn)!=null}get request(){return w(this,Vu)}ok(){return w(this,Tc).message===""&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:r}=w(this,Tc);e===""&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let s=null;try{w(this,bn)&&(s=Ms(w(this,bn)))}catch{}z(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:r,info:{requestUrl:n,responseBody:s,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}};M0=new WeakMap,D0=new WeakMap,B0=new WeakMap,bn=new WeakMap,Vu=new WeakMap,Tc=new WeakMap;let Xi=Fk;function HS(){return new Date().getTime()}function qee(t){return mt(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function Kee(t){return new Promise(e=>setTimeout(e,t))}const Qee=BigInt(-1),fs=BigInt(0),hu=BigInt(1),Jee=BigInt(5),Dl={};let Iu="0000";for(;Iu.length<80;)Iu+=Iu;function Ja(t){let e=Iu;for(;e.length=-s&&tfs?t=h0(aa(t,n),n):t=-h0(aa(-t,n),n)}else{const s=hu<=0&&ti[a]==null?l:(P(typeof i[a]===c,"invalid fixed format ("+a+" not "+c+")","format."+a,i[a]),i[a]);e=o("signed","boolean",e),r=o("width","number",r),n=o("decimals","number",n)}P(r%8===0,"invalid FixedNumber width (not byte aligned)","format.width",r),P(n<=80,"invalid FixedNumber decimals (too large)","format.decimals",n);const s=(e?"":"u")+"fixed"+String(r)+"x"+String(n);return{signed:e,width:r,decimals:n,name:s}}function Yee(t,e){let r="";t0?n*=Ja(s):s<0&&(r*=Ja(-s)),rn?1:0}eq(e){return this.cmp(e)===0}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=w(this,nt);return w(this,nt)fs&&(e+=w(this,Br)-hu),e=w(this,nt)/w(this,Br)*w(this,Br),Y(this,Xe,wi).call(this,e,"ceiling")}round(e){if(e==null&&(e=0),e>=this.decimals)return this;const r=this.decimals-e,n=Jee*Ja(r-1);let s=this.value+n;const i=Ja(r);return s=s/i*i,jd(s,w(this,ms),"round"),new Do(Dl,s,w(this,ms))}isZero(){return w(this,nt)===fs}isNegative(){return w(this,nt)0){const c=Ja(a);z(o%c===fs,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),o/=c}else a<0&&(o*=Ja(-a));return jd(o,i,"fromValue"),new Do(Dl,o,i)}static fromString(e,r){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);P(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const s=vx(r);let i=n[2]||"0",o=n[3]||"";for(;o.length{z(n<=t.length,"data short segment too short","BUFFER_OVERRUN",{buffer:t,length:t.length,offset:n})};if(t[e]>=248){const n=t[e]-247;r(e+1+n);const s=zS(t,e+1,n);return r(e+1+n+s),GS(t,e,e+1+n,n+s)}else if(t[e]>=192){const n=t[e]-192;return r(e+1+n),GS(t,e,e+1,n)}else if(t[e]>=184){const n=t[e]-183;r(e+1+n);const s=zS(t,e+1,n);r(e+1+n+s);const i=H(t.slice(e+1+n,e+1+n+s));return{consumed:1+n+s,result:i}}else if(t[e]>=128){const n=t[e]-128;r(e+1+n);const s=H(t.slice(e+1,e+1+n));return{consumed:1+n,result:s}}return{consumed:1,result:Xee(t[e])}}function v1(t){const e=Q(t,"data"),r=mR(e,0);return P(r.consumed===e.length,"unexpected junk after rlp payload","data",t),r.result}function qS(t){const e=[];for(;t;)e.unshift(t&255),t>>=8;return e}function xR(t){if(Array.isArray(t)){let n=[];if(t.forEach(function(i){n=n.concat(xR(i))}),n.length<=55)return n.unshift(192+n.length),n;const s=qS(n.length);return s.unshift(247+s.length),s.concat(n)}const e=Array.prototype.slice.call(Q(t,"object"));if(e.length===1&&e[0]<=127)return e;if(e.length<=55)return e.unshift(128+e.length),e;const r=qS(e.length);return r.unshift(183+r.length),r.concat(e)}const KS="0123456789abcdef";function Ra(t){let e="0x";for(const r of xR(t))e+=KS[r>>4],e+=KS[r&15];return e}const bR=["wei","kwei","mwei","gwei","szabo","finney","ether"];function wR(t,e){let r=18;if(typeof e=="string"){const n=bR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return p0.fromValue(t,r,{decimals:r,width:512}).toString()}function rv(t,e){P(typeof t=="string","value must be a string","value",t);let r=18;if(typeof e=="string"){const n=bR.indexOf(e);P(n>=0,"invalid unit","unit",e),r=3*n}else e!=null&&(r=Pe(e,"unit"));return p0.fromString(t,{decimals:r,width:512}).value}function Zee(t){return wR(t,18)}function Iw(t){return rv(t,18)}function CR(t){const e=Q(t,"randomBytes");e[6]=e[6]&15|64,e[8]=e[8]&63|128;const r=H(e);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}const Vr=32,Ow=new Uint8Array(Vr),ete=["then"],cp={},ER=new WeakMap;function oc(t){return ER.get(t)}function QS(t,e){ER.set(t,e)}function Fd(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);throw r.error=e,r}function Rw(t,e,r){return t.indexOf(null)>=0?e.map((n,s)=>n instanceof hl?Rw(oc(n),n,r):n):t.reduce((n,s,i)=>{let o=e.getValue(s);return s in n||(r&&o instanceof hl&&(o=Rw(oc(o),o,r)),n[s]=o),n},{})}var Hu;const vu=class vu extends Array{constructor(...r){const n=r[0];let s=r[1],i=(r[2]||[]).slice(),o=!0;n!==cp&&(s=r,i=[],o=!1);super(s.length);j(this,Hu);s.forEach((l,u)=>{this[u]=l});const a=i.reduce((l,u)=>(typeof u=="string"&&l.set(u,(l.get(u)||0)+1),l),new Map);if(QS(this,Object.freeze(s.map((l,u)=>{const f=i[u];return f!=null&&a.get(f)===1?f:null}))),T(this,Hu,[]),w(this,Hu)==null&&w(this,Hu),!o)return;Object.freeze(this);const c=new Proxy(this,{get:(l,u,f)=>{if(typeof u=="string"){if(u.match(/^[0-9]+$/)){const h=Pe(u,"%index");if(h<0||h>=this.length)throw new RangeError("out of result range");const y=l[h];return y instanceof Error&&Fd(`index ${h}`,y),y}if(ete.indexOf(u)>=0)return Reflect.get(l,u,f);const d=l[u];if(d instanceof Function)return function(...h){return d.apply(this===f?l:this,h)};if(!(u in l))return l.getValue.apply(this===f?l:this,[u])}return Reflect.get(l,u,f)}});return QS(c,oc(this)),c}toArray(r){const n=[];return this.forEach((s,i)=>{s instanceof Error&&Fd(`index ${i}`,s),r&&s instanceof vu&&(s=s.toArray(r)),n.push(s)}),n}toObject(r){const n=oc(this);return n.reduce((s,i,o)=>(z(i!=null,`value at index ${o} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),Rw(n,this,r)),{})}slice(r,n){r==null&&(r=0),r<0&&(r+=this.length,r<0&&(r=0)),n==null&&(n=this.length),n<0&&(n+=this.length,n<0&&(n=0)),n>this.length&&(n=this.length);const s=oc(this),i=[],o=[];for(let a=r;a{w(this,Ri)[e]=JS(r)}}}Ri=new WeakMap,Pc=new WeakMap,zu=new WeakSet,Vp=function(e){return w(this,Ri).push(e),T(this,Pc,w(this,Pc)+e.length),e.length};var rn,wn,Ic,Oc,Uo,Cl,Mw,kR;const Uk=class Uk{constructor(e,r,n){j(this,Cl);N(this,"allowLoose");j(this,rn);j(this,wn);j(this,Ic);j(this,Oc);j(this,Uo);fe(this,{allowLoose:!!r}),T(this,rn,tr(e)),T(this,Ic,0),T(this,Oc,null),T(this,Uo,n??1024),T(this,wn,0)}get data(){return H(w(this,rn))}get dataLength(){return w(this,rn).length}get consumed(){return w(this,wn)}get bytes(){return new Uint8Array(w(this,rn))}subReader(e){const r=new Uk(w(this,rn).slice(w(this,wn)+e),this.allowLoose,w(this,Uo));return T(r,Oc,this),r}readBytes(e,r){let n=Y(this,Cl,kR).call(this,0,e,!!r);return Y(this,Cl,Mw).call(this,e),T(this,wn,w(this,wn)+n.length),n.slice(0,e)}readValue(){return md(this.readBytes(Vr))}readIndex(){return oR(this.readBytes(Vr))}};rn=new WeakMap,wn=new WeakMap,Ic=new WeakMap,Oc=new WeakMap,Uo=new WeakMap,Cl=new WeakSet,Mw=function(e){var r;if(w(this,Oc))return Y(r=w(this,Oc),Cl,Mw).call(r,e);T(this,Ic,w(this,Ic)+e),z(w(this,Uo)<1||w(this,Ic)<=w(this,Uo)*this.dataLength,`compressed ABI data exceeds inflation ratio of ${w(this,Uo)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:tr(w(this,rn)),offset:w(this,wn),length:e,info:{bytesRead:w(this,Ic),dataLength:this.dataLength}})},kR=function(e,r,n){let s=Math.ceil(r/Vr)*Vr;return w(this,wn)+s>w(this,rn).length&&(this.allowLoose&&n&&w(this,wn)+r<=w(this,rn).length?s=r:z(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:tr(w(this,rn)),length:w(this,rn).length,offset:w(this,wn)+s})),w(this,rn).slice(w(this,wn),w(this,wn)+s)};let _w=Uk;function An(t){if(!Number.isSafeInteger(t)||t<0)throw new Error(`Wrong positive integer: ${t}`)}function h5(t,...e){if(!(t instanceof Uint8Array))throw new Error("Expected Uint8Array");if(e.length>0&&!e.includes(t.length))throw new Error(`Expected Uint8Array of length ${e}, not of length=${t.length}`)}function AR(t){if(typeof t!="function"||typeof t.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");An(t.outputLen),An(t.blockLen)}function Wf(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function SR(t,e){h5(t);const r=e.outputLen;if(t.lengtht instanceof Uint8Array,Hp=t=>new Uint32Array(t.buffer,t.byteOffset,Math.floor(t.byteLength/4)),zp=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),$s=(t,e)=>t<<32-e|t>>>e,rte=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!rte)throw new Error("Non little-endian hardware is not supported");const nte=async()=>{};async function YS(t,e,r){let n=Date.now();for(let s=0;s=0&&in+s.length,0));let r=0;return t.forEach(n=>{if(!TR(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}let p5=class{clone(){return this._cloneInto()}};const ote={}.toString;function PR(t,e){if(e!==void 0&&ote.call(e)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(t,e)}function Ng(t){const e=n=>t().update(Vf(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function ate(t=32){if(gx&&typeof gx.getRandomValues=="function")return gx.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}class IR extends p5{constructor(e,r){super(),this.finished=!1,this.destroyed=!1,AR(e);const n=Vf(r);if(this.iHash=e.create(),typeof this.iHash.update!="function")throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const s=this.blockLen,i=new Uint8Array(s);i.set(n.length>s?e.create().update(n).digest():n);for(let o=0;onew IR(t,e).update(r).digest();_g.create=(t,e)=>new IR(t,e);function cte(t,e,r,n){AR(t);const s=PR({dkLen:32,asyncTick:10},n),{c:i,dkLen:o,asyncTick:a}=s;if(An(i),An(o),An(a),i<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const c=Vf(e),l=Vf(r),u=new Uint8Array(o),f=_g.create(t,c),d=f._cloneInto().update(l);return{c:i,dkLen:o,asyncTick:a,DK:u,PRF:f,PRFSalt:d}}function lte(t,e,r,n,s){return t.destroy(),e.destroy(),n&&n.destroy(),s.fill(0),r}function y5(t,e,r,n){const{c:s,dkLen:i,DK:o,PRF:a,PRFSalt:c}=cte(t,e,r,n);let l;const u=new Uint8Array(4),f=zp(u),d=new Uint8Array(a.outputLen);for(let h=1,y=0;y>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}class v5 extends p5{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=zp(this.buffer)}update(e){Wf(this);const{view:r,buffer:n,blockLen:s}=this;e=Vf(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;ft&e^~t&r,dte=(t,e,r)=>t&e^t&r^e&r,hte=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),wo=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Co=new Uint32Array(64);let pte=class extends v5{constructor(){super(64,32,8,!1),this.A=wo[0]|0,this.B=wo[1]|0,this.C=wo[2]|0,this.D=wo[3]|0,this.E=wo[4]|0,this.F=wo[5]|0,this.G=wo[6]|0,this.H=wo[7]|0}get(){const{A:e,B:r,C:n,D:s,E:i,F:o,G:a,H:c}=this;return[e,r,n,s,i,o,a,c]}set(e,r,n,s,i,o,a,c){this.A=e|0,this.B=r|0,this.C=n|0,this.D=s|0,this.E=i|0,this.F=o|0,this.G=a|0,this.H=c|0}process(e,r){for(let f=0;f<16;f++,r+=4)Co[f]=e.getUint32(r,!1);for(let f=16;f<64;f++){const d=Co[f-15],h=Co[f-2],y=$s(d,7)^$s(d,18)^d>>>3,p=$s(h,17)^$s(h,19)^h>>>10;Co[f]=p+Co[f-7]+y+Co[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=$s(a,6)^$s(a,11)^$s(a,25),h=u+d+fte(a,c,l)+hte[f]+Co[f]|0,p=($s(n,2)^$s(n,13)^$s(n,22))+dte(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){Co.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}};const xd=Ng(()=>new pte),lp=BigInt(2**32-1),Dw=BigInt(32);function OR(t,e=!1){return e?{h:Number(t&lp),l:Number(t>>Dw&lp)}:{h:Number(t>>Dw&lp)|0,l:Number(t&lp)|0}}function RR(t,e=!1){let r=new Uint32Array(t.length),n=new Uint32Array(t.length);for(let s=0;sBigInt(t>>>0)<>>0),vte=(t,e,r)=>t>>>r,gte=(t,e,r)=>t<<32-r|e>>>r,mte=(t,e,r)=>t>>>r|e<<32-r,xte=(t,e,r)=>t<<32-r|e>>>r,bte=(t,e,r)=>t<<64-r|e>>>r-32,wte=(t,e,r)=>t>>>r-32|e<<64-r,Cte=(t,e)=>e,Ete=(t,e)=>t,NR=(t,e,r)=>t<>>32-r,_R=(t,e,r)=>e<>>32-r,MR=(t,e,r)=>e<>>64-r,DR=(t,e,r)=>t<>>64-r;function kte(t,e,r,n){const s=(e>>>0)+(n>>>0);return{h:t+r+(s/2**32|0)|0,l:s|0}}const Ate=(t,e,r)=>(t>>>0)+(e>>>0)+(r>>>0),Ste=(t,e,r,n)=>e+r+n+(t/2**32|0)|0,Tte=(t,e,r,n)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0),Pte=(t,e,r,n,s)=>e+r+n+s+(t/2**32|0)|0,Ite=(t,e,r,n,s)=>(t>>>0)+(e>>>0)+(r>>>0)+(n>>>0)+(s>>>0),Ote=(t,e,r,n,s,i)=>e+r+n+s+i+(t/2**32|0)|0,Me={fromBig:OR,split:RR,toBig:yte,shrSH:vte,shrSL:gte,rotrSH:mte,rotrSL:xte,rotrBH:bte,rotrBL:wte,rotr32H:Cte,rotr32L:Ete,rotlSH:NR,rotlSL:_R,rotlBH:MR,rotlBL:DR,add:kte,add3L:Ate,add3H:Ste,add4L:Tte,add4H:Pte,add5H:Ote,add5L:Ite},[Rte,Nte]=Me.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))),Eo=new Uint32Array(80),ko=new Uint32Array(80);class _te extends v5{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:r,Bh:n,Bl:s,Ch:i,Cl:o,Dh:a,Dl:c,Eh:l,El:u,Fh:f,Fl:d,Gh:h,Gl:y,Hh:p,Hl:b}=this;return[e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b]}set(e,r,n,s,i,o,a,c,l,u,f,d,h,y,p,b){this.Ah=e|0,this.Al=r|0,this.Bh=n|0,this.Bl=s|0,this.Ch=i|0,this.Cl=o|0,this.Dh=a|0,this.Dl=c|0,this.Eh=l|0,this.El=u|0,this.Fh=f|0,this.Fl=d|0,this.Gh=h|0,this.Gl=y|0,this.Hh=p|0,this.Hl=b|0}process(e,r){for(let x=0;x<16;x++,r+=4)Eo[x]=e.getUint32(r),ko[x]=e.getUint32(r+=4);for(let x=16;x<80;x++){const k=Eo[x-15]|0,S=ko[x-15]|0,I=Me.rotrSH(k,S,1)^Me.rotrSH(k,S,8)^Me.shrSH(k,S,7),R=Me.rotrSL(k,S,1)^Me.rotrSL(k,S,8)^Me.shrSL(k,S,7),_=Eo[x-2]|0,V=ko[x-2]|0,F=Me.rotrSH(_,V,19)^Me.rotrBH(_,V,61)^Me.shrSH(_,V,6),X=Me.rotrSL(_,V,19)^Me.rotrBL(_,V,61)^Me.shrSL(_,V,6),re=Me.add4L(R,X,ko[x-7],ko[x-16]),le=Me.add4H(re,I,F,Eo[x-7],Eo[x-16]);Eo[x]=le|0,ko[x]=re|0}let{Ah:n,Al:s,Bh:i,Bl:o,Ch:a,Cl:c,Dh:l,Dl:u,Eh:f,El:d,Fh:h,Fl:y,Gh:p,Gl:b,Hh:v,Hl:g}=this;for(let x=0;x<80;x++){const k=Me.rotrSH(f,d,14)^Me.rotrSH(f,d,18)^Me.rotrBH(f,d,41),S=Me.rotrSL(f,d,14)^Me.rotrSL(f,d,18)^Me.rotrBL(f,d,41),I=f&h^~f&p,R=d&y^~d&b,_=Me.add5L(g,S,R,Nte[x],ko[x]),V=Me.add5H(_,v,k,I,Rte[x],Eo[x]),F=_|0,X=Me.rotrSH(n,s,28)^Me.rotrBH(n,s,34)^Me.rotrBH(n,s,39),re=Me.rotrSL(n,s,28)^Me.rotrBL(n,s,34)^Me.rotrBL(n,s,39),le=n&i^n&a^i&a,ee=s&o^s&c^o&c;v=p|0,g=b|0,p=h|0,b=y|0,h=f|0,y=d|0,{h:f,l:d}=Me.add(l|0,u|0,V|0,F|0),l=a|0,u=c|0,a=i|0,c=o|0,i=n|0,o=s|0;const D=Me.add3L(F,re,ee);n=Me.add3H(D,V,X,le),s=D|0}({h:n,l:s}=Me.add(this.Ah|0,this.Al|0,n|0,s|0)),{h:i,l:o}=Me.add(this.Bh|0,this.Bl|0,i|0,o|0),{h:a,l:c}=Me.add(this.Ch|0,this.Cl|0,a|0,c|0),{h:l,l:u}=Me.add(this.Dh|0,this.Dl|0,l|0,u|0),{h:f,l:d}=Me.add(this.Eh|0,this.El|0,f|0,d|0),{h,l:y}=Me.add(this.Fh|0,this.Fl|0,h|0,y|0),{h:p,l:b}=Me.add(this.Gh|0,this.Gl|0,p|0,b|0),{h:v,l:g}=Me.add(this.Hh|0,this.Hl|0,v|0,g|0),this.set(n,s,i,o,a,c,l,u,f,d,h,y,p,b,v,g)}roundClean(){Eo.fill(0),ko.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const g5=Ng(()=>new _te);function Mte(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const XS=Mte(),ZS=XS.crypto||XS.msCrypto;function BR(t){switch(t){case"sha256":return xd.create();case"sha512":return g5.create()}P(!1,"invalid hashing algorithm name","algorithm",t)}function Dte(t,e){const r={sha256:xd,sha512:g5}[t];return P(r!=null,"invalid hmac algorithm","algorithm",t),_g.create(r,e)}function Bte(t,e,r,n,s){const i={sha256:xd,sha512:g5}[s];return P(i!=null,"invalid pbkdf2 algorithm","algorithm",s),y5(i,t,e,{c:r,dkLen:n})}function Lte(t){z(ZS!=null,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),P(Number.isInteger(t)&&t>0&&t<=1024,"invalid length","length",t);const e=new Uint8Array(t);return ZS.getRandomValues(e),e}let LR=!1;const jR=function(t,e,r){return Dte(t,e).update(r).digest()};let FR=jR;function Wa(t,e,r){const n=Q(e,"key"),s=Q(r,"data");return H(FR(t,n,s))}Wa._=jR;Wa.lock=function(){LR=!0};Wa.register=function(t){if(LR)throw new Error("computeHmac is locked");FR=t};Object.freeze(Wa);const[UR,$R,WR]=[[],[],[]],jte=BigInt(0),Ud=BigInt(1),Fte=BigInt(2),Ute=BigInt(7),$te=BigInt(256),Wte=BigInt(113);for(let t=0,e=Ud,r=1,n=0;t<24;t++){[r,n]=[n,(2*r+3*n)%5],UR.push(2*(5*n+r)),$R.push((t+1)*(t+2)/2%64);let s=jte;for(let i=0;i<7;i++)e=(e<>Ute)*Wte)%$te,e&Fte&&(s^=Ud<<(Ud<r>32?MR(t,e,r):NR(t,e,r),t8=(t,e,r)=>r>32?DR(t,e,r):_R(t,e,r);function zte(t,e=24){const r=new Uint32Array(10);for(let n=24-e;n<24;n++){for(let o=0;o<10;o++)r[o]=t[o]^t[o+10]^t[o+20]^t[o+30]^t[o+40];for(let o=0;o<10;o+=2){const a=(o+8)%10,c=(o+2)%10,l=r[c],u=r[c+1],f=e8(l,u,1)^r[a],d=t8(l,u,1)^r[a+1];for(let h=0;h<50;h+=10)t[o+h]^=f,t[o+h+1]^=d}let s=t[2],i=t[3];for(let o=0;o<24;o++){const a=$R[o],c=e8(s,i,a),l=t8(s,i,a),u=UR[o];s=t[u],i=t[u+1],t[u]=c,t[u+1]=l}for(let o=0;o<50;o+=10){for(let a=0;a<10;a++)r[a]=t[o+a];for(let a=0;a<10;a++)t[o+a]^=~r[(a+2)%10]&r[(a+4)%10]}t[0]^=Vte[n],t[1]^=Hte[n]}r.fill(0)}class m5 extends p5{constructor(e,r,n,s=!1,i=24){if(super(),this.blockLen=e,this.suffix=r,this.outputLen=n,this.enableXOF=s,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,An(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=Hp(this.state)}keccak(){zte(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){Wf(this);const{blockLen:r,state:n}=this;e=Vf(e);const s=e.length;for(let i=0;i=n&&this.keccak();const o=Math.min(n-this.posOut,i-s);e.set(r.subarray(this.posOut,this.posOut+o),s),this.posOut+=o,s+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return An(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(SR(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:r,suffix:n,outputLen:s,rounds:i,enableXOF:o}=this;return e||(e=new m5(r,n,s,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=s,e.enableXOF=o,e.destroyed=this.destroyed,e}}const Gte=(t,e,r)=>Ng(()=>new m5(e,t,r)),qte=Gte(1,136,256/8);let VR=!1;const HR=function(t){return qte(t)};let zR=HR;function Ne(t){const e=Q(t,"data");return H(zR(e))}Ne._=HR;Ne.lock=function(){VR=!0};Ne.register=function(t){if(VR)throw new TypeError("keccak256 is locked");zR=t};Object.freeze(Ne);const Kte=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),GR=Uint8Array.from({length:16},(t,e)=>e),Qte=GR.map(t=>(9*t+5)%16);let x5=[GR],b5=[Qte];for(let t=0;t<4;t++)for(let e of[x5,b5])e.push(e[t].map(r=>Kte[r]));const qR=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>new Uint8Array(t)),Jte=x5.map((t,e)=>t.map(r=>qR[e][r])),Yte=b5.map((t,e)=>t.map(r=>qR[e][r])),Xte=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Zte=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),up=(t,e)=>t<>>32-e;function r8(t,e,r,n){return t===0?e^r^n:t===1?e&r|~e&n:t===2?(e|~r)^n:t===3?e&n|r&~n:e^(r|~n)}const fp=new Uint32Array(16);class ere extends v5{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:r,h2:n,h3:s,h4:i}=this;return[e,r,n,s,i]}set(e,r,n,s,i){this.h0=e|0,this.h1=r|0,this.h2=n|0,this.h3=s|0,this.h4=i|0}process(e,r){for(let h=0;h<16;h++,r+=4)fp[h]=e.getUint32(r,!0);let n=this.h0|0,s=n,i=this.h1|0,o=i,a=this.h2|0,c=a,l=this.h3|0,u=l,f=this.h4|0,d=f;for(let h=0;h<5;h++){const y=4-h,p=Xte[h],b=Zte[h],v=x5[h],g=b5[h],x=Jte[h],k=Yte[h];for(let S=0;S<16;S++){const I=up(n+r8(h,i,a,l)+fp[v[S]]+p,x[S])+f|0;n=f,f=l,l=up(a,10)|0,a=i,i=I}for(let S=0;S<16;S++){const I=up(s+r8(y,o,c,u)+fp[g[S]]+b,k[S])+d|0;s=d,d=u,u=up(c,10)|0,c=o,o=I}}this.set(this.h1+a+u|0,this.h2+l+d|0,this.h3+f+s|0,this.h4+n+o|0,this.h0+i+c|0)}roundClean(){fp.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}const tre=Ng(()=>new ere);let KR=!1;const QR=function(t){return tre(t)};let JR=QR;function Va(t){const e=Q(t,"data");return H(JR(e))}Va._=QR;Va.lock=function(){KR=!0};Va.register=function(t){if(KR)throw new TypeError("ripemd160 is locked");JR=t};Object.freeze(Va);let YR=!1;const XR=function(t,e,r,n,s){return Bte(t,e,r,n,s)};let ZR=XR;function xi(t,e,r,n,s){const i=Q(t,"password"),o=Q(e,"salt");return H(ZR(i,o,r,n,s))}xi._=XR;xi.lock=function(){YR=!0};xi.register=function(t){if(YR)throw new Error("pbkdf2 is locked");ZR=t};Object.freeze(xi);let eN=!1;const tN=function(t){return new Uint8Array(Lte(t))};let rN=tN;function Rr(t){return rN(t)}Rr._=tN;Rr.lock=function(){eN=!0};Rr.register=function(t){if(eN)throw new Error("randomBytes is locked");rN=t};Object.freeze(Rr);const qe=(t,e)=>t<>>32-e;function n8(t,e,r,n,s,i){let o=t[e++]^r[n++],a=t[e++]^r[n++],c=t[e++]^r[n++],l=t[e++]^r[n++],u=t[e++]^r[n++],f=t[e++]^r[n++],d=t[e++]^r[n++],h=t[e++]^r[n++],y=t[e++]^r[n++],p=t[e++]^r[n++],b=t[e++]^r[n++],v=t[e++]^r[n++],g=t[e++]^r[n++],x=t[e++]^r[n++],k=t[e++]^r[n++],S=t[e++]^r[n++],I=o,R=a,_=c,V=l,F=u,X=f,re=d,le=h,ee=y,D=p,G=b,Z=v,C=g,A=x,O=k,M=S;for(let B=0;B<8;B+=2)F^=qe(I+C|0,7),ee^=qe(F+I|0,9),C^=qe(ee+F|0,13),I^=qe(C+ee|0,18),D^=qe(X+R|0,7),A^=qe(D+X|0,9),R^=qe(A+D|0,13),X^=qe(R+A|0,18),O^=qe(G+re|0,7),_^=qe(O+G|0,9),re^=qe(_+O|0,13),G^=qe(re+_|0,18),V^=qe(M+Z|0,7),le^=qe(V+M|0,9),Z^=qe(le+V|0,13),M^=qe(Z+le|0,18),R^=qe(I+V|0,7),_^=qe(R+I|0,9),V^=qe(_+R|0,13),I^=qe(V+_|0,18),re^=qe(X+F|0,7),le^=qe(re+X|0,9),F^=qe(le+re|0,13),X^=qe(F+le|0,18),Z^=qe(G+D|0,7),ee^=qe(Z+G|0,9),D^=qe(ee+Z|0,13),G^=qe(D+ee|0,18),C^=qe(M+O|0,7),A^=qe(C+M|0,9),O^=qe(A+C|0,13),M^=qe(O+A|0,18);s[i++]=o+I|0,s[i++]=a+R|0,s[i++]=c+_|0,s[i++]=l+V|0,s[i++]=u+F|0,s[i++]=f+X|0,s[i++]=d+re|0,s[i++]=h+le|0,s[i++]=y+ee|0,s[i++]=p+D|0,s[i++]=b+G|0,s[i++]=v+Z|0,s[i++]=g+C|0,s[i++]=x+A|0,s[i++]=k+O|0,s[i++]=S+M|0}function Ou(t,e,r,n,s){let i=n+0,o=n+16*s;for(let a=0;a<16;a++)r[o+a]=t[e+(2*s-1)*16+a];for(let a=0;a0&&(o+=16),n8(r,i,t,e+=16,r,o)}function nN(t,e,r){const n=PR({dkLen:32,asyncTick:10,maxmem:1073742848},r),{N:s,r:i,p:o,dkLen:a,asyncTick:c,maxmem:l,onProgress:u}=n;if(An(s),An(i),An(o),An(a),An(c),An(l),u!==void 0&&typeof u!="function")throw new Error("progressCb should be function");const f=128*i,d=f/4;if(s<=1||s&s-1||s>=2**(f/8)||s>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(o<0||o>(2**32-1)*32/f)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(a<0||a>(2**32-1)*32)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const h=f*(s+o);if(h>l)throw new Error(`Scrypt: parameters too large, ${h} (128 * r * (N + p)) > ${l} (maxmem)`);const y=y5(xd,t,e,{c:1,dkLen:f*o}),p=Hp(y),b=Hp(new Uint8Array(f*s)),v=Hp(new Uint8Array(f));let g=()=>{};if(u){const x=2*s*o,k=Math.max(Math.floor(x/1e4),1);let S=0;g=()=>{S++,u&&(!(S%k)||S===x)&&u(S/x)}}return{N:s,r:i,p:o,dkLen:a,blockSize32:d,V:b,B32:p,B:y,tmp:v,blockMixCb:g,asyncTick:c}}function sN(t,e,r,n,s){const i=y5(xd,t,r,{c:1,dkLen:e});return r.fill(0),n.fill(0),s.fill(0),i}function rre(t,e,r){const{N:n,r:s,p:i,dkLen:o,blockSize32:a,V:c,B32:l,B:u,tmp:f,blockMixCb:d}=nN(t,e,r);for(let h=0;h{Ou(c,b,c,b+=a,s),d()}),Ou(c,(n-1)*a,l,p,s),d(),await YS(n,h,()=>{const v=l[p+a-16]%n;for(let g=0;gt instanceof Uint8Array,ire=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Hf(t){if(!Dg(t))throw new Error("Uint8Array expected");let e="";for(let r=0;rn+s.length,0));let r=0;return t.forEach(n=>{if(!Dg(n))throw new Error("Uint8Array expected");e.set(n,r),r+=n.length}),e}function are(t,e){if(t.length!==e.length)return!1;for(let r=0;rgN;t>>=Mg,e+=1);return e}function ure(t,e){return t>>BigInt(e)&Mg}const fre=(t,e,r)=>t|(r?Mg:gN)<(sre<new Uint8Array(t),s8=t=>Uint8Array.from(t);function xN(t,e,r){if(typeof t!="number"||t<2)throw new Error("hashLen must be a number");if(typeof e!="number"||e<2)throw new Error("qByteLen must be a number");if(typeof r!="function")throw new Error("hmacFn must be a function");let n=mx(t),s=mx(t),i=0;const o=()=>{n.fill(1),s.fill(0),i=0},a=(...f)=>r(s,n,...f),c=(f=mx())=>{s=a(s8([0]),f),n=a(),f.length!==0&&(s=a(s8([1]),f),n=a())},l=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let f=0;const d=[];for(;f{o(),c(f);let h;for(;!(h=d(l()));)c();return o(),h}}const dre={bigint:t=>typeof t=="bigint",function:t=>typeof t=="function",boolean:t=>typeof t=="boolean",string:t=>typeof t=="string",stringOrUint8Array:t=>typeof t=="string"||t instanceof Uint8Array,isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>typeof t=="function"&&Number.isSafeInteger(t.outputLen)};function m1(t,e,r={}){const n=(s,i,o)=>{const a=dre[i];if(typeof a!="function")throw new Error(`Invalid validator "${i}", expected function`);const c=t[s];if(!(o&&c===void 0)&&!a(c,t))throw new Error(`Invalid param ${String(s)}=${c} (${typeof c}), expected ${i}`)};for(const[s,i]of Object.entries(e))n(s,i,!1);for(const[s,i]of Object.entries(r))n(s,i,!0);return t}const hre=Object.freeze(Object.defineProperty({__proto__:null,bitGet:ure,bitLen:lre,bitMask:k5,bitSet:fre,bytesToHex:Hf,bytesToNumberBE:Xc,bytesToNumberLE:C5,concatBytes:y0,createHmacDrbg:xN,ensureBytes:ys,equalBytes:are,hexToBytes:zf,hexToNumber:w5,numberToBytesBE:Gf,numberToBytesLE:E5,numberToHexUnpadded:mN,numberToVarBytesBE:ore,utf8ToBytes:cre,validateObject:m1},Symbol.toStringTag,{value:"Module"}));/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const nr=BigInt(0),Mt=BigInt(1),ac=BigInt(2),pre=BigInt(3),Bw=BigInt(4),i8=BigInt(5),o8=BigInt(8);BigInt(9);BigInt(16);function on(t,e){const r=t%e;return r>=nr?r:e+r}function yre(t,e,r){if(r<=nr||e 0");if(r===Mt)return nr;let n=Mt;for(;e>nr;)e&Mt&&(n=n*t%r),t=t*t%r,e>>=Mt;return n}function Dn(t,e,r){let n=t;for(;e-- >nr;)n*=n,n%=r;return n}function Lw(t,e){if(t===nr||e<=nr)throw new Error(`invert: expected positive integers, got n=${t} mod=${e}`);let r=on(t,e),n=e,s=nr,i=Mt;for(;r!==nr;){const a=n/r,c=n%r,l=s-i*a;n=r,r=c,s=i,i=l}if(n!==Mt)throw new Error("invert: does not exist");return on(s,e)}function vre(t){const e=(t-Mt)/ac;let r,n,s;for(r=t-Mt,n=0;r%ac===nr;r/=ac,n++);for(s=ac;s(n[s]="function",n),e);return m1(t,r)}function bre(t,e,r){if(r 0");if(r===nr)return t.ONE;if(r===Mt)return e;let n=t.ONE,s=e;for(;r>nr;)r&Mt&&(n=t.mul(n,s)),s=t.sqr(s),r>>=Mt;return n}function wre(t,e){const r=new Array(e.length),n=e.reduce((i,o,a)=>t.is0(o)?i:(r[a]=i,t.mul(i,o)),t.ONE),s=t.inv(n);return e.reduceRight((i,o,a)=>t.is0(o)?i:(r[a]=t.mul(i,r[a]),t.mul(i,o)),s),r}function bN(t,e){const r=e!==void 0?e:t.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function Cre(t,e,r=!1,n={}){if(t<=nr)throw new Error(`Expected Field ORDER > 0, got ${t}`);const{nBitLength:s,nByteLength:i}=bN(t,e);if(i>2048)throw new Error("Field lengths over 2048 bytes are not supported");const o=gre(t),a=Object.freeze({ORDER:t,BITS:s,BYTES:i,MASK:k5(s),ZERO:nr,ONE:Mt,create:c=>on(c,t),isValid:c=>{if(typeof c!="bigint")throw new Error(`Invalid field element: expected bigint, got ${typeof c}`);return nr<=c&&cc===nr,isOdd:c=>(c&Mt)===Mt,neg:c=>on(-c,t),eql:(c,l)=>c===l,sqr:c=>on(c*c,t),add:(c,l)=>on(c+l,t),sub:(c,l)=>on(c-l,t),mul:(c,l)=>on(c*l,t),pow:(c,l)=>bre(a,c,l),div:(c,l)=>on(c*Lw(l,t),t),sqrN:c=>c*c,addN:(c,l)=>c+l,subN:(c,l)=>c-l,mulN:(c,l)=>c*l,inv:c=>Lw(c,t),sqrt:n.sqrt||(c=>o(a,c)),invertBatch:c=>wre(a,c),cmov:(c,l,u)=>u?l:c,toBytes:c=>r?E5(c,i):Gf(c,i),fromBytes:c=>{if(c.length!==i)throw new Error(`Fp.fromBytes: expected ${i}, got ${c.length}`);return r?C5(c):Xc(c)}});return Object.freeze(a)}function wN(t){if(typeof t!="bigint")throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function CN(t){const e=wN(t);return e+Math.ceil(e/2)}function Ere(t,e,r=!1){const n=t.length,s=wN(e),i=CN(e);if(n<16||n1024)throw new Error(`expected ${i}-1024 bytes of input, got ${n}`);const o=r?Xc(t):C5(t),a=on(o,e-Mt)+Mt;return r?E5(a,s):Gf(a,s)}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kre=BigInt(0),xx=BigInt(1);function Are(t,e){const r=(s,i)=>{const o=i.negate();return s?o:i},n=s=>{const i=Math.ceil(e/s)+1,o=2**(s-1);return{windows:i,windowSize:o}};return{constTimeNegate:r,unsafeLadder(s,i){let o=t.ZERO,a=s;for(;i>kre;)i&xx&&(o=o.add(a)),a=a.double(),i>>=xx;return o},precomputeWindow(s,i){const{windows:o,windowSize:a}=n(i),c=[];let l=s,u=l;for(let f=0;f>=h,b>c&&(b-=d,o+=xx);const v=p,g=p+Math.abs(b)-1,x=y%2!==0,k=b<0;b===0?u=u.add(r(x,i[v])):l=l.add(r(k,i[g]))}return{p:l,f:u}},wNAFCached(s,i,o,a){const c=s._WINDOW_SIZE||1;let l=i.get(s);return l||(l=this.precomputeWindow(s,c),c!==1&&i.set(s,a(l))),this.wNAF(c,l,o)}}}function EN(t){return xre(t.Fp),m1(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...bN(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Sre(t){const e=EN(t);m1(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:r,Fp:n,a:s}=e;if(r){if(!n.eql(s,n.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if(typeof r!="object"||typeof r.beta!="bigint"||typeof r.splitScalar!="function")throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...e})}const{bytesToNumberBE:Tre,hexToBytes:Pre}=hre,gc={Err:class extends Error{constructor(e=""){super(e)}},_parseInt(t){const{Err:e}=gc;if(t.length<2||t[0]!==2)throw new e("Invalid signature integer tag");const r=t[1],n=t.subarray(2,r+2);if(!r||n.length!==r)throw new e("Invalid signature integer: wrong length");if(n[0]&128)throw new e("Invalid signature integer: negative");if(n[0]===0&&!(n[1]&128))throw new e("Invalid signature integer: unnecessary leading zero");return{d:Tre(n),l:t.subarray(r+2)}},toSig(t){const{Err:e}=gc,r=typeof t=="string"?Pre(t):t;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let n=r.length;if(n<2||r[0]!=48)throw new e("Invalid signature tag");if(r[1]!==n-2)throw new e("Invalid signature: incorrect length");const{d:s,l:i}=gc._parseInt(r.subarray(2)),{d:o,l:a}=gc._parseInt(i);if(a.length)throw new e("Invalid signature: left bytes after parsing");return{r:s,s:o}},hexFromSig(t){const e=l=>Number.parseInt(l[0],16)&8?"00"+l:l,r=l=>{const u=l.toString(16);return u.length&1?`0${u}`:u},n=e(r(t.s)),s=e(r(t.r)),i=n.length/2,o=s.length/2,a=r(i),c=r(o);return`30${r(o+i+4)}02${c}${s}02${a}${n}`}},Wi=BigInt(0),qn=BigInt(1);BigInt(2);const a8=BigInt(3);BigInt(4);function Ire(t){const e=Sre(t),{Fp:r}=e,n=e.toBytes||((y,p,b)=>{const v=p.toAffine();return y0(Uint8Array.from([4]),r.toBytes(v.x),r.toBytes(v.y))}),s=e.fromBytes||(y=>{const p=y.subarray(1),b=r.fromBytes(p.subarray(0,r.BYTES)),v=r.fromBytes(p.subarray(r.BYTES,2*r.BYTES));return{x:b,y:v}});function i(y){const{a:p,b}=e,v=r.sqr(y),g=r.mul(v,y);return r.add(r.add(g,r.mul(y,p)),b)}if(!r.eql(r.sqr(e.Gy),i(e.Gx)))throw new Error("bad generator point: equation left != right");function o(y){return typeof y=="bigint"&&Wir.eql(x,r.ZERO);return g(b)&&g(v)?f.ZERO:new f(b,v,r.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(p){const b=r.invertBatch(p.map(v=>v.pz));return p.map((v,g)=>v.toAffine(b[g])).map(f.fromAffine)}static fromHex(p){const b=f.fromAffine(s(ys("pointHex",p)));return b.assertValidity(),b}static fromPrivateKey(p){return f.BASE.multiply(c(p))}_setWindowSize(p){this._WINDOW_SIZE=p,l.delete(this)}assertValidity(){if(this.is0()){if(e.allowInfinityPoint&&!r.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:p,y:b}=this.toAffine();if(!r.isValid(p)||!r.isValid(b))throw new Error("bad point: x or y not FE");const v=r.sqr(b),g=i(p);if(!r.eql(v,g))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:p}=this.toAffine();if(r.isOdd)return!r.isOdd(p);throw new Error("Field doesn't support isOdd")}equals(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p,I=r.eql(r.mul(b,S),r.mul(x,g)),R=r.eql(r.mul(v,S),r.mul(k,g));return I&&R}negate(){return new f(this.px,r.neg(this.py),this.pz)}double(){const{a:p,b}=e,v=r.mul(b,a8),{px:g,py:x,pz:k}=this;let S=r.ZERO,I=r.ZERO,R=r.ZERO,_=r.mul(g,g),V=r.mul(x,x),F=r.mul(k,k),X=r.mul(g,x);return X=r.add(X,X),R=r.mul(g,k),R=r.add(R,R),S=r.mul(p,R),I=r.mul(v,F),I=r.add(S,I),S=r.sub(V,I),I=r.add(V,I),I=r.mul(S,I),S=r.mul(X,S),R=r.mul(v,R),F=r.mul(p,F),X=r.sub(_,F),X=r.mul(p,X),X=r.add(X,R),R=r.add(_,_),_=r.add(R,_),_=r.add(_,F),_=r.mul(_,X),I=r.add(I,_),F=r.mul(x,k),F=r.add(F,F),_=r.mul(F,X),S=r.sub(S,_),R=r.mul(F,V),R=r.add(R,R),R=r.add(R,R),new f(S,I,R)}add(p){u(p);const{px:b,py:v,pz:g}=this,{px:x,py:k,pz:S}=p;let I=r.ZERO,R=r.ZERO,_=r.ZERO;const V=e.a,F=r.mul(e.b,a8);let X=r.mul(b,x),re=r.mul(v,k),le=r.mul(g,S),ee=r.add(b,v),D=r.add(x,k);ee=r.mul(ee,D),D=r.add(X,re),ee=r.sub(ee,D),D=r.add(b,g);let G=r.add(x,S);return D=r.mul(D,G),G=r.add(X,le),D=r.sub(D,G),G=r.add(v,g),I=r.add(k,S),G=r.mul(G,I),I=r.add(re,le),G=r.sub(G,I),_=r.mul(V,D),I=r.mul(F,le),_=r.add(I,_),I=r.sub(re,_),_=r.add(re,_),R=r.mul(I,_),re=r.add(X,X),re=r.add(re,X),le=r.mul(V,le),D=r.mul(F,D),re=r.add(re,le),le=r.sub(X,le),le=r.mul(V,le),D=r.add(D,le),X=r.mul(re,D),R=r.add(R,X),X=r.mul(G,D),I=r.mul(ee,I),I=r.sub(I,X),X=r.mul(ee,re),_=r.mul(G,_),_=r.add(_,X),new f(I,R,_)}subtract(p){return this.add(p.negate())}is0(){return this.equals(f.ZERO)}wNAF(p){return h.wNAFCached(this,l,p,b=>{const v=r.invertBatch(b.map(g=>g.pz));return b.map((g,x)=>g.toAffine(v[x])).map(f.fromAffine)})}multiplyUnsafe(p){const b=f.ZERO;if(p===Wi)return b;if(a(p),p===qn)return this;const{endo:v}=e;if(!v)return h.unsafeLadder(this,p);let{k1neg:g,k1:x,k2neg:k,k2:S}=v.splitScalar(p),I=b,R=b,_=this;for(;x>Wi||S>Wi;)x&qn&&(I=I.add(_)),S&qn&&(R=R.add(_)),_=_.double(),x>>=qn,S>>=qn;return g&&(I=I.negate()),k&&(R=R.negate()),R=new f(r.mul(R.px,v.beta),R.py,R.pz),I.add(R)}multiply(p){a(p);let b=p,v,g;const{endo:x}=e;if(x){const{k1neg:k,k1:S,k2neg:I,k2:R}=x.splitScalar(b);let{p:_,f:V}=this.wNAF(S),{p:F,f:X}=this.wNAF(R);_=h.constTimeNegate(k,_),F=h.constTimeNegate(I,F),F=new f(r.mul(F.px,x.beta),F.py,F.pz),v=_.add(F),g=V.add(X)}else{const{p:k,f:S}=this.wNAF(b);v=k,g=S}return f.normalizeZ([v,g])[0]}multiplyAndAddUnsafe(p,b,v){const g=f.BASE,x=(S,I)=>I===Wi||I===qn||!S.equals(g)?S.multiplyUnsafe(I):S.multiply(I),k=x(this,b).add(x(p,v));return k.is0()?void 0:k}toAffine(p){const{px:b,py:v,pz:g}=this,x=this.is0();p==null&&(p=x?r.ONE:r.inv(g));const k=r.mul(b,p),S=r.mul(v,p),I=r.mul(g,p);if(x)return{x:r.ZERO,y:r.ZERO};if(!r.eql(I,r.ONE))throw new Error("invZ was invalid");return{x:k,y:S}}isTorsionFree(){const{h:p,isTorsionFree:b}=e;if(p===qn)return!0;if(b)return b(f,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:p,clearCofactor:b}=e;return p===qn?this:b?b(f,this):this.multiplyUnsafe(e.h)}toRawBytes(p=!0){return this.assertValidity(),n(f,this,p)}toHex(p=!0){return Hf(this.toRawBytes(p))}}f.BASE=new f(e.Gx,e.Gy,r.ONE),f.ZERO=new f(r.ZERO,r.ONE,r.ZERO);const d=e.nBitLength,h=Are(f,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:f,normPrivateKeyToScalar:c,weierstrassEquation:i,isWithinCurveOrder:o}}function Ore(t){const e=EN(t);return m1(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}function Rre(t){const e=Ore(t),{Fp:r,n}=e,s=r.BYTES+1,i=2*r.BYTES+1;function o(D){return WiHf(Gf(D,e.nByteLength));function y(D){const G=n>>qn;return D>G}function p(D){return y(D)?a(-D):D}const b=(D,G,Z)=>Xc(D.slice(G,Z));class v{constructor(G,Z,C){this.r=G,this.s=Z,this.recovery=C,this.assertValidity()}static fromCompact(G){const Z=e.nByteLength;return G=ys("compactSignature",G,Z*2),new v(b(G,0,Z),b(G,Z,2*Z))}static fromDER(G){const{r:Z,s:C}=gc.toSig(ys("DER",G));return new v(Z,C)}assertValidity(){if(!d(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!d(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(G){return new v(this.r,this.s,G)}recoverPublicKey(G){const{r:Z,s:C,recovery:A}=this,O=R(ys("msgHash",G));if(A==null||![0,1,2,3].includes(A))throw new Error("recovery id invalid");const M=A===2||A===3?Z+e.n:Z;if(M>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");const B=A&1?"03":"02",W=l.fromHex(B+h(M)),q=c(M),te=a(-O*q),J=a(C*q),$=l.BASE.multiplyAndAddUnsafe(W,te,J);if(!$)throw new Error("point at infinify");return $.assertValidity(),$}hasHighS(){return y(this.s)}normalizeS(){return this.hasHighS()?new v(this.r,a(-this.s),this.recovery):this}toDERRawBytes(){return zf(this.toDERHex())}toDERHex(){return gc.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return zf(this.toCompactHex())}toCompactHex(){return h(this.r)+h(this.s)}}const g={isValidPrivateKey(D){try{return u(D),!0}catch{return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const D=CN(e.n);return Ere(e.randomBytes(D),e.n)},precompute(D=8,G=l.BASE){return G._setWindowSize(D),G.multiply(BigInt(3)),G}};function x(D,G=!0){return l.fromPrivateKey(D).toRawBytes(G)}function k(D){const G=D instanceof Uint8Array,Z=typeof D=="string",C=(G||Z)&&D.length;return G?C===s||C===i:Z?C===2*s||C===2*i:D instanceof l}function S(D,G,Z=!0){if(k(D))throw new Error("first arg must be private key");if(!k(G))throw new Error("second arg must be public key");return l.fromHex(G).multiply(u(D)).toRawBytes(Z)}const I=e.bits2int||function(D){const G=Xc(D),Z=D.length*8-e.nBitLength;return Z>0?G>>BigInt(Z):G},R=e.bits2int_modN||function(D){return a(I(D))},_=k5(e.nBitLength);function V(D){if(typeof D!="bigint")throw new Error("bigint expected");if(!(Wi<=D&&D<_))throw new Error(`bigint expected < 2^${e.nBitLength}`);return Gf(D,e.nByteLength)}function F(D,G,Z=X){if(["recovered","canonical"].some(ue=>ue in Z))throw new Error("sign() legacy options not supported");const{hash:C,randomBytes:A}=e;let{lowS:O,prehash:M,extraEntropy:B}=Z;O==null&&(O=!0),D=ys("msgHash",D),M&&(D=ys("prehashed msgHash",C(D)));const W=R(D),q=u(G),te=[V(q),V(W)];if(B!=null){const ue=B===!0?A(r.BYTES):B;te.push(ys("extraEntropy",ue))}const J=y0(...te),$=W;function K(ue){const de=I(ue);if(!d(de))return;const oe=c(de),Ce=l.BASE.multiply(de).toAffine(),Re=a(Ce.x);if(Re===Wi)return;const xt=a(oe*a($+Re*q));if(xt===Wi)return;let tn=(Ce.x===Re?0:2)|Number(Ce.y&qn),br=xt;return O&&y(xt)&&(br=p(xt),tn^=1),new v(Re,br,tn)}return{seed:J,k2sig:K}}const X={lowS:e.lowS,prehash:!1},re={lowS:e.lowS,prehash:!1};function le(D,G,Z=X){const{seed:C,k2sig:A}=F(D,G,Z),O=e;return xN(O.hash.outputLen,O.nByteLength,O.hmac)(C,A)}l.BASE._setWindowSize(8);function ee(D,G,Z,C=re){var Ce;const A=D;if(G=ys("msgHash",G),Z=ys("publicKey",Z),"strict"in C)throw new Error("options.strict was renamed to lowS");const{lowS:O,prehash:M}=C;let B,W;try{if(typeof A=="string"||A instanceof Uint8Array)try{B=v.fromDER(A)}catch(Re){if(!(Re instanceof gc.Err))throw Re;B=v.fromCompact(A)}else if(typeof A=="object"&&typeof A.r=="bigint"&&typeof A.s=="bigint"){const{r:Re,s:xt}=A;B=new v(Re,xt)}else throw new Error("PARSE");W=l.fromHex(Z)}catch(Re){if(Re.message==="PARSE")throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(O&&B.hasHighS())return!1;M&&(G=e.hash(G));const{r:q,s:te}=B,J=R(G),$=c(te),K=a(J*$),ue=a(q*$),de=(Ce=l.BASE.multiplyAndAddUnsafe(W,K,ue))==null?void 0:Ce.toAffine();return de?a(de.x)===q:!1}return{CURVE:e,getPublicKey:x,getSharedSecret:S,sign:le,verify:ee,ProjectivePoint:l,Signature:v,utils:g}}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Nre(t){return{hash:t,hmac:(e,...r)=>_g(t,e,ite(...r)),randomBytes:ate}}function _re(t,e){const r=n=>Rre({...t,...Nre(n)});return Object.freeze({...r(e),create:r})}/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const kN=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),c8=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Mre=BigInt(1),jw=BigInt(2),l8=(t,e)=>(t+e/jw)/e;function Dre(t){const e=kN,r=BigInt(3),n=BigInt(6),s=BigInt(11),i=BigInt(22),o=BigInt(23),a=BigInt(44),c=BigInt(88),l=t*t*t%e,u=l*l*t%e,f=Dn(u,r,e)*u%e,d=Dn(f,r,e)*u%e,h=Dn(d,jw,e)*l%e,y=Dn(h,s,e)*h%e,p=Dn(y,i,e)*y%e,b=Dn(p,a,e)*p%e,v=Dn(b,c,e)*b%e,g=Dn(v,a,e)*p%e,x=Dn(g,r,e)*u%e,k=Dn(x,o,e)*y%e,S=Dn(k,n,e)*l%e,I=Dn(S,jw,e);if(!Fw.eql(Fw.sqr(I),t))throw new Error("Cannot find square root");return I}const Fw=Cre(kN,void 0,void 0,{sqrt:Dre}),Oo=_re({a:BigInt(0),b:BigInt(7),Fp:Fw,n:c8,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=c8,r=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),n=-Mre*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),s=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=r,o=BigInt("0x100000000000000000000000000000000"),a=l8(i*t,e),c=l8(-n*t,e);let l=on(t-a*r-c*s,e),u=on(-a*n-c*i,e);const f=l>o,d=u>o;if(f&&(l=e-l),d&&(u=e-u),l>o||u>o)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:f,k1:l,k2neg:d,k2:u}}}},xd);BigInt(0);Oo.ProjectivePoint;const mi="0x0000000000000000000000000000000000000000",pl="0x0000000000000000000000000000000000000000000000000000000000000000",Bre=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Lre=BigInt("1000000000000000000"),AN=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),jre=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),Fre=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ure="Īž",SN=`Ethereum Signed Message: +`,u8=BigInt(0),f8=BigInt(1),d8=BigInt(2),h8=BigInt(27),p8=BigInt(28),dp=BigInt(35),Bl={};function y8(t){return rs(rr(t),32)}var Gu,qu,Ku,Rc;const ds=class ds{constructor(e,r,n,s){j(this,Gu);j(this,qu);j(this,Ku);j(this,Rc);po(e,Bl,"Signature"),T(this,Gu,r),T(this,qu,n),T(this,Ku,s),T(this,Rc,null)}get r(){return w(this,Gu)}set r(e){P(xa(e)===32,"invalid r","value",e),T(this,Gu,H(e))}get s(){return w(this,qu)}set s(e){P(xa(e)===32,"invalid s","value",e);const r=H(e);P(parseInt(r.substring(0,3))<8,"non-canonical s","value",r),T(this,qu,r)}get v(){return w(this,Ku)}set v(e){const r=Pe(e,"value");P(r===27||r===28,"invalid v","v",e),T(this,Ku,r)}get networkV(){return w(this,Rc)}get legacyChainId(){const e=this.networkV;return e==null?null:ds.getChainId(e)}get yParity(){return this.v===27?0:1}get yParityAndS(){const e=Q(this.s);return this.yParity&&(e[0]|=128),H(e)}get compactSerialized(){return Le([this.r,this.yParityAndS])}get serialized(){return Le([this.r,this.s,this.yParity?"0x1c":"0x1b"])}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new ds(Bl,this.r,this.s,this.v);return this.networkV&&T(e,Rc,this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:e!=null?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const r=ve(e,"v");return r==h8||r==p8?u8:(P(r>=dp,"invalid EIP-155 v","v",e),(r-dp)/d8)}static getChainIdV(e,r){return ve(e)*d8+BigInt(35+r-27)}static getNormalizedV(e){const r=ve(e);return r===u8||r===h8?27:r===f8||r===p8?28:(P(r>=dp,"invalid v","v",e),r&f8?27:28)}static from(e){function r(l,u){P(l,u,"signature",e)}if(e==null)return new ds(Bl,pl,pl,27);if(typeof e=="string"){const l=Q(e,"signature");if(l.length===64){const u=H(l.slice(0,32)),f=l.slice(32,64),d=f[0]&128?28:27;return f[0]&=127,new ds(Bl,u,H(f),d)}if(l.length===65){const u=H(l.slice(0,32)),f=l.slice(32,64);r((f[0]&128)===0,"non-canonical s");const d=ds.getNormalizedV(l[64]);return new ds(Bl,u,H(f),d)}r(!1,"invalid raw signature length")}if(e instanceof ds)return e.clone();const n=e.r;r(n!=null,"missing r");const s=y8(n),i=function(l,u){if(l!=null)return y8(l);if(u!=null){r(et(u,32),"invalid yParityAndS");const f=Q(u);return f[0]&=127,H(f)}r(!1,"missing s")}(e.s,e.yParityAndS);r((Q(i)[0]&128)==0,"non-canonical s");const{networkV:o,v:a}=function(l,u,f){if(l!=null){const d=ve(l);return{networkV:d>=dp?d:void 0,v:ds.getNormalizedV(d)}}if(u!=null)return r(et(u,32),"invalid yParityAndS"),{v:Q(u)[0]&128?28:27};if(f!=null){switch(Pe(f,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}r(!1,"invalid yParity")}r(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new ds(Bl,s,i,a);return o&&T(c,Rc,o),r(e.yParity==null||Pe(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),r(e.yParityAndS==null||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}};Gu=new WeakMap,qu=new WeakMap,Ku=new WeakMap,Rc=new WeakMap;let os=ds;var Ni;const fc=class fc{constructor(e){j(this,Ni);P(xa(e)===32,"invalid private key","privateKey","[REDACTED]"),T(this,Ni,H(e))}get privateKey(){return w(this,Ni)}get publicKey(){return fc.computePublicKey(w(this,Ni))}get compressedPublicKey(){return fc.computePublicKey(w(this,Ni),!0)}sign(e){P(xa(e)===32,"invalid digest length","digest",e);const r=Oo.sign(tr(e),tr(w(this,Ni)),{lowS:!0});return os.from({r:In(r.r,32),s:In(r.s,32),v:r.recovery?28:27})}computeSharedSecret(e){const r=fc.computePublicKey(e);return H(Oo.getSharedSecret(tr(w(this,Ni)),Q(r),!1))}static computePublicKey(e,r){let n=Q(e,"key");if(n.length===32){const i=Oo.getPublicKey(n,!!r);return H(i)}if(n.length===64){const i=new Uint8Array(65);i[0]=4,i.set(n,1),n=i}const s=Oo.ProjectivePoint.fromHex(n);return H(s.toRawBytes(r))}static recoverPublicKey(e,r){P(xa(e)===32,"invalid digest length","digest",e);const n=os.from(r);let s=Oo.Signature.fromCompact(tr(Le([n.r,n.s])));s=s.addRecoveryBit(n.yParity);const i=s.recoverPublicKey(tr(e));return P(i!=null,"invalid signautre for digest","signature",r),"0x"+i.toHex(!1)}static addPoints(e,r,n){const s=Oo.ProjectivePoint.fromHex(fc.computePublicKey(e).substring(2)),i=Oo.ProjectivePoint.fromHex(fc.computePublicKey(r).substring(2));return"0x"+s.add(i).toHex(!!n)}};Ni=new WeakMap;let Os=fc;function $re(){Wa.lock(),Ne.lock(),xi.lock(),Rr.lock(),Va.lock(),Ha.lock(),za.lock(),qr.lock(),g1.lock(),Rr.lock()}const Wre=BigInt(0),Vre=BigInt(36);function v8(t){t=t.toLowerCase();const e=t.substring(2).split(""),r=new Uint8Array(40);for(let s=0;s<40;s++)r[s]=e[s].charCodeAt(0);const n=Q(Ne(r));for(let s=0;s<40;s+=2)n[s>>1]>>4>=8&&(e[s]=e[s].toUpperCase()),(n[s>>1]&15)>=8&&(e[s+1]=e[s+1].toUpperCase());return"0x"+e.join("")}const A5={};for(let t=0;t<10;t++)A5[String(t)]=String(t);for(let t=0;t<26;t++)A5[String.fromCharCode(65+t)]=String(10+t);const g8=15;function TN(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>A5[n]).join("");for(;e.length>=g8;){let n=e.substring(0,g8);e=parseInt(n,10)%97+e.substring(n.length)}let r=String(98-parseInt(e,10)%97);for(;r.length<2;)r="0"+r;return r}const Hre=function(){const t={};for(let e=0;e<36;e++){const r="0123456789abcdefghijklmnopqrstuvwxyz"[e];t[r]=BigInt(e)}return t}();function zre(t){t=t.toLowerCase();let e=Wre;for(let r=0;re.format()).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return this.type==="string"}get tupleName(){if(this.type!=="tuple")throw TypeError("not a tuple");return w(this,Nc)}get arrayLength(){if(this.type!=="array")throw TypeError("not an array");return w(this,Nc)===!0?-1:w(this,Nc)===!1?this.value.length:null}static from(e,r){return new Si(Ai,e,r)}static uint8(e){return he(e,8)}static uint16(e){return he(e,16)}static uint24(e){return he(e,24)}static uint32(e){return he(e,32)}static uint40(e){return he(e,40)}static uint48(e){return he(e,48)}static uint56(e){return he(e,56)}static uint64(e){return he(e,64)}static uint72(e){return he(e,72)}static uint80(e){return he(e,80)}static uint88(e){return he(e,88)}static uint96(e){return he(e,96)}static uint104(e){return he(e,104)}static uint112(e){return he(e,112)}static uint120(e){return he(e,120)}static uint128(e){return he(e,128)}static uint136(e){return he(e,136)}static uint144(e){return he(e,144)}static uint152(e){return he(e,152)}static uint160(e){return he(e,160)}static uint168(e){return he(e,168)}static uint176(e){return he(e,176)}static uint184(e){return he(e,184)}static uint192(e){return he(e,192)}static uint200(e){return he(e,200)}static uint208(e){return he(e,208)}static uint216(e){return he(e,216)}static uint224(e){return he(e,224)}static uint232(e){return he(e,232)}static uint240(e){return he(e,240)}static uint248(e){return he(e,248)}static uint256(e){return he(e,256)}static uint(e){return he(e,256)}static int8(e){return he(e,-8)}static int16(e){return he(e,-16)}static int24(e){return he(e,-24)}static int32(e){return he(e,-32)}static int40(e){return he(e,-40)}static int48(e){return he(e,-48)}static int56(e){return he(e,-56)}static int64(e){return he(e,-64)}static int72(e){return he(e,-72)}static int80(e){return he(e,-80)}static int88(e){return he(e,-88)}static int96(e){return he(e,-96)}static int104(e){return he(e,-104)}static int112(e){return he(e,-112)}static int120(e){return he(e,-120)}static int128(e){return he(e,-128)}static int136(e){return he(e,-136)}static int144(e){return he(e,-144)}static int152(e){return he(e,-152)}static int160(e){return he(e,-160)}static int168(e){return he(e,-168)}static int176(e){return he(e,-176)}static int184(e){return he(e,-184)}static int192(e){return he(e,-192)}static int200(e){return he(e,-200)}static int208(e){return he(e,-208)}static int216(e){return he(e,-216)}static int224(e){return he(e,-224)}static int232(e){return he(e,-232)}static int240(e){return he(e,-240)}static int248(e){return he(e,-248)}static int256(e){return he(e,-256)}static int(e){return he(e,-256)}static bytes1(e){return Ke(e,1)}static bytes2(e){return Ke(e,2)}static bytes3(e){return Ke(e,3)}static bytes4(e){return Ke(e,4)}static bytes5(e){return Ke(e,5)}static bytes6(e){return Ke(e,6)}static bytes7(e){return Ke(e,7)}static bytes8(e){return Ke(e,8)}static bytes9(e){return Ke(e,9)}static bytes10(e){return Ke(e,10)}static bytes11(e){return Ke(e,11)}static bytes12(e){return Ke(e,12)}static bytes13(e){return Ke(e,13)}static bytes14(e){return Ke(e,14)}static bytes15(e){return Ke(e,15)}static bytes16(e){return Ke(e,16)}static bytes17(e){return Ke(e,17)}static bytes18(e){return Ke(e,18)}static bytes19(e){return Ke(e,19)}static bytes20(e){return Ke(e,20)}static bytes21(e){return Ke(e,21)}static bytes22(e){return Ke(e,22)}static bytes23(e){return Ke(e,23)}static bytes24(e){return Ke(e,24)}static bytes25(e){return Ke(e,25)}static bytes26(e){return Ke(e,26)}static bytes27(e){return Ke(e,27)}static bytes28(e){return Ke(e,28)}static bytes29(e){return Ke(e,29)}static bytes30(e){return Ke(e,30)}static bytes31(e){return Ke(e,31)}static bytes32(e){return Ke(e,32)}static address(e){return new Si(Ai,"address",e)}static bool(e){return new Si(Ai,"bool",!!e)}static bytes(e){return new Si(Ai,"bytes",e)}static string(e){return new Si(Ai,"string",e)}static array(e,r){throw new Error("not implemented yet")}static tuple(e,r){throw new Error("not implemented yet")}static overrides(e){return new Si(Ai,"overrides",Object.assign({},e))}static isTyped(e){return e&&typeof e=="object"&&"_typedSymbol"in e&&e._typedSymbol===m8}static dereference(e,r){if(Si.isTyped(e)){if(e.type!==r)throw new Error(`invalid type: expecetd ${r}, got ${e.type}`);return e.value}return e}};Nc=new WeakMap;let gr=Si;class Kre extends yo{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){let n=gr.dereference(r,"string");try{n=Te(n)}catch(s){return this._throwError(s.message,r)}return e.writeValue(n)}decode(e){return Te(In(e.readValue(),20))}}class Qre extends yo{constructor(r){super(r.name,r.type,"_",r.dynamic);N(this,"coder");this.coder=r}defaultValue(){return this.coder.defaultValue()}encode(r,n){return this.coder.encode(r,n)}decode(r){return this.coder.decode(r)}}function IN(t,e,r){let n=[];if(Array.isArray(r))n=r;else if(r&&typeof r=="object"){let c={};n=e.map(l=>{const u=l.localName;return z(u,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),z(!c[u],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:l},value:r}),c[u]=!0,r[u]})}else P(!1,"invalid tuple value","tuple",r);P(e.length===n.length,"types/value length mismatch","tuple",r);let s=new Nw,i=new Nw,o=[];e.forEach((c,l)=>{let u=n[l];if(c.dynamic){let f=i.length;c.encode(i,u);let d=s.writeUpdatableValue();o.push(h=>{d(h+f)})}else c.encode(s,u)}),o.forEach(c=>{c(s.length)});let a=t.appendWriter(s);return a+=t.appendWriter(i),a}function ON(t,e){let r=[],n=[],s=t.subReader(0);return e.forEach(i=>{let o=null;if(i.dynamic){let a=t.readIndex(),c=s.subReader(a);try{o=i.decode(c)}catch(l){if(Ht(l,"BUFFER_OVERRUN"))throw l;o=l,o.baseType=i.name,o.name=i.localName,o.type=i.type}}else try{o=i.decode(t)}catch(a){if(Ht(a,"BUFFER_OVERRUN"))throw a;o=a,o.baseType=i.name,o.name=i.localName,o.type=i.type}if(o==null)throw new Error("investigate");r.push(o),n.push(i.localName||null)}),hl.fromItems(r,n)}class Jre extends yo{constructor(r,n,s){const i=r.type+"["+(n>=0?n:"")+"]",o=n===-1||r.dynamic;super("array",i,s,o);N(this,"coder");N(this,"length");fe(this,{coder:r,length:n})}defaultValue(){const r=this.coder.defaultValue(),n=[];for(let s=0;so||s<-(o+nne))&&this._throwError("value out-of-bounds",n),s=Rg(s,8*Vr)}else(saa(i,this.size*8))&&this._throwError("value out-of-bounds",n);return r.writeValue(s)}decode(r){let n=aa(r.readValue(),this.size*8);return this.signed&&(n=h0(n,this.size*8)),n}}class one extends RN{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,mt(gr.dereference(r,"string")))}decode(e){return Ms(super.decode(e))}}class hp extends yo{constructor(r,n){let s=!1;const i=[];r.forEach(a=>{a.dynamic&&(s=!0),i.push(a.type)});const o="tuple("+i.join(",")+")";super("tuple",o,n,s);N(this,"coders");fe(this,{coders:Object.freeze(r.slice())})}defaultValue(){const r=[];this.coders.forEach(s=>{r.push(s.defaultValue())});const n=this.coders.reduce((s,i)=>{const o=i.localName;return o&&(s[o]||(s[o]=0),s[o]++),s},{});return this.coders.forEach((s,i)=>{let o=s.localName;!o||n[o]!==1||(o==="length"&&(o="_length"),r[o]==null&&(r[o]=r[i]))}),Object.freeze(r)}encode(r,n){const s=gr.dereference(n,"tuple");return IN(r,this.coders,s)}decode(r){return ON(r,this.coders)}}function Kr(t){return Ne(mt(t))}var ane="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const x8=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),b8=4;function cne(t){let e=0;function r(){return t[e++]<<8|t[e++]}let n=r(),s=1,i=[0,1];for(let S=1;S>--c&1}const f=31,d=2**f,h=d>>>1,y=h>>1,p=d-1;let b=0;for(let S=0;S1;){let F=I+R>>>1;S>>1|u(),_=_<<1^h,V=(V^h)<<1|h|1;g=_,x=1+V-_}let k=n-4;return v.map(S=>{switch(S-k){case 3:return k+65792+(t[a++]<<16|t[a++]<<8|t[a++]);case 2:return k+256+(t[a++]<<8|t[a++]);case 1:return k+t[a++];default:return S-1}})}function lne(t){let e=0;return()=>t[e++]}function NN(t){return lne(cne(une(t)))}function une(t){let e=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((s,i)=>e[s.charCodeAt(0)]=i);let r=t.length,n=new Uint8Array(6*r>>3);for(let s=0,i=0,o=0,a=0;s=8&&(n[i++]=a>>(o-=8));return n}function fne(t){return t&1?~t>>1:t>>1}function dne(t,e){let r=Array(t);for(let n=0,s=0;n{let e=v0(t);if(e.length)return e})}function MN(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(hne(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(pne(r,t))}return e.flat()}function g0(t){let e=[];for(;;){let r=t(e.length);if(!r)break;e.push(r)}return e}function DN(t,e,r){let n=Array(t).fill().map(()=>[]);for(let s=0;sn[o].push(i));return n}function hne(t,e){let r=1+e(),n=e(),s=g0(e);return DN(s.length,1+t,e).flatMap((o,a)=>{let[c,...l]=o;return Array(s[a]).fill().map((u,f)=>{let d=f*n;return[c+f*r,l.map(h=>h+d)]})})}function pne(t,e){let r=1+e();return DN(r,1+t,e).map(s=>[s[0],s.slice(1)])}function yne(t){let e=[],r=v0(t);return s(n([]),[]),e;function n(i){let o=t(),a=g0(()=>{let c=v0(t).map(l=>r[l]);if(c.length)return n(c)});return{S:o,B:a,Q:i}}function s({S:i,B:o},a,c){if(!(i&4&&c===a[a.length-1])){i&2&&(c=a[a.length-1]),i&1&&e.push(a);for(let l of o)for(let u of l.Q)s(l,[...a,u],c)}}}function vne(t){return t.toString(16).toUpperCase().padStart(2,"0")}function BN(t){return`{${vne(t)}}`}function gne(t){let e=[];for(let r=0,n=t.length;r>24&255}function FN(t){return t&16777215}let Uw,w8,$w,Gp;function Ane(){let t=NN(xne);Uw=new Map(_N(t).flatMap((e,r)=>e.map(n=>[n,r+1<<24]))),w8=new Set(v0(t)),$w=new Map,Gp=new Map;for(let[e,r]of MN(t)){if(!w8.has(e)&&r.length==2){let[n,s]=r,i=Gp.get(n);i||(i=new Map,Gp.set(n,i)),i.set(s,e)}$w.set(e,r.reverse())}}function UN(t){return t>=m0&&t=nv&&t=sv&&eiv&&e0&&s(iv+l)}else{let o=$w.get(i);o?r.push(...o):s(i)}if(!r.length)break;i=r.pop()}if(n&&e.length>1){let i=eh(e[0]);for(let o=1;o0&&s>=o)o==0?(e.push(n,...r),r.length=0,n=a):r.push(a),s=o;else{let c=Sne(n,a);c>=0?n=c:s==0&&o==0?(e.push(n),n=a):(r.push(a),s=o)}}return n>=0&&e.push(n,...r),e}function WN(t){return $N(t).map(FN)}function Pne(t){return Tne($N(t))}const C8=45,VN=".",HN=65039,zN=1,av=t=>Array.from(t);function x0(t,e){return t.P.has(e)||t.Q.has(e)}class Ine extends Array{get is_emoji(){return!0}}let Ww,GN,mc,Vw,qN,Ru,wx,Gl,sc,E8,Hw;function P5(){if(Ww)return;let t=NN(ane);const e=()=>v0(t),r=()=>new Set(e()),n=(u,f)=>f.forEach(d=>u.add(d));Ww=new Map(MN(t)),GN=r(),mc=e(),Vw=new Set(e().map(u=>mc[u])),mc=new Set(mc),qN=r(),r();let s=_N(t),i=t();const o=()=>{let u=new Set;return e().forEach(f=>n(u,s[f])),n(u,e()),u};Ru=g0(u=>{let f=g0(t).map(d=>d+96);if(f.length){let d=u>=i;f[0]-=32,f=qf(f),d&&(f=`Restricted[${f}]`);let h=o(),y=o(),p=!t();return{N:f,P:h,Q:y,M:p,R:d}}}),wx=r(),Gl=new Map;let a=e().concat(av(wx)).sort((u,f)=>u-f);a.forEach((u,f)=>{let d=t(),h=a[f]=d?a[f-d]:{V:[],M:new Map};h.V.push(u),wx.has(u)||Gl.set(u,h)});for(let{V:u,M:f}of new Set(Gl.values())){let d=[];for(let y of u){let p=Ru.filter(v=>x0(v,y)),b=d.find(({G:v})=>p.some(g=>v.has(g)));b||(b={G:new Set,V:[]},d.push(b)),b.V.push(y),n(b.G,p)}let h=d.flatMap(y=>av(y.G));for(let{G:y,V:p}of d){let b=new Set(h.filter(v=>!y.has(v)));for(let v of p)f.set(v,b)}}sc=new Set;let c=new Set;const l=u=>sc.has(u)?c.add(u):sc.add(u);for(let u of Ru){for(let f of u.P)l(f);for(let f of u.Q)l(f)}for(let u of sc)!Gl.has(u)&&!c.has(u)&&Gl.set(u,zN);n(sc,WN(sc)),E8=yne(t).map(u=>Ine.from(u)).sort(mne),Hw=new Map;for(let u of E8){let f=[Hw];for(let d of u){let h=f.map(y=>{let p=y.get(d);return p||(p=new Map,y.set(d,p)),p});d===HN?f.push(...h):f=h}for(let d of f)d.V=u}}function I5(t){return(KN(t)?"":`${O5(Bg([t]))} `)+BN(t)}function O5(t){return`"${t}"ā€Ž`}function One(t){if(t.length>=4&&t[2]==C8&&t[3]==C8)throw new Error(`invalid label extension: "${qf(t.slice(0,4))}"`)}function Rne(t){for(let r=t.lastIndexOf(95);r>0;)if(t[--r]!==95)throw new Error("underscore allowed only at start")}function Nne(t){let e=t[0],r=x8.get(e);if(r)throw Ah(`leading ${r}`);let n=t.length,s=-1;for(let i=1;ie&&(e>>=1,t=[...t.slice(0,e),8230,...t.slice(-e)]);let s=0,i=t.length;for(let o=0;o{let i=gne(s),o={input:i,offset:n};n+=i.length+1;try{let a=o.tokens=Une(i,e,r),c=a.length,l;if(!c)throw new Error("empty label");let u=o.output=a.flat();if(Rne(u),!(o.emoji=c>1||a[0].is_emoji)&&u.every(d=>d<128))One(u),l="ASCII";else{let d=a.flatMap(h=>h.is_emoji?[]:h);if(!d.length)l="Emoji";else{if(mc.has(u[0]))throw Ah("leading combining mark");for(let p=1;po.has(a)):av(o),!r.length)return}else n.push(s)}if(r){for(let s of r)if(n.every(i=>x0(s,i)))throw new Error(`whole-script confusable: ${t.N}/${s.N}`)}}function Lne(t){let e=Ru;for(let r of t){let n=e.filter(s=>x0(s,r));if(!n.length)throw Ru.some(s=>x0(s,r))?JN(e[0],r):QN(r);if(e=n,n.length==1)break}return e}function jne(t){return t.map(({input:e,error:r,output:n})=>{if(r){let s=r.message;throw new Error(t.length==1?s:`Invalid label ${O5(Bg(e,63))}: ${s}`)}return qf(n)}).join(VN)}function QN(t){return new Error(`disallowed character: ${I5(t)}`)}function JN(t,e){let r=I5(e),n=Ru.find(s=>s.P.has(e));return n&&(r=`${n.N} ${r}`),new Error(`illegal mixture: ${t.N} + ${r}`)}function Ah(t){return new Error(`illegal placement: ${t}`)}function Fne(t,e){for(let r of e)if(!x0(t,r))throw JN(t,r);if(t.M){let r=WN(e);for(let n=1,s=r.length;nb8)throw new Error(`excessive non-spacing marks: ${O5(Bg(r.slice(n-1,i)))} (${i-n}/${b8})`);n=i}}}function Une(t,e,r){let n=[],s=[];for(t=t.slice().reverse();t.length;){let i=Wne(t);if(i)s.length&&(n.push(e(s)),s=[]),n.push(r(i));else{let o=t.pop();if(sc.has(o))s.push(o);else{let a=Ww.get(o);if(a)s.push(...a);else if(!GN.has(o))throw QN(o)}}}return s.length&&n.push(e(s)),n}function $ne(t){return t.filter(e=>e!=HN)}function Wne(t,e){let r=Hw,n,s=t.length;for(;s&&(r=r.get(t[--s]),!!r);){let{V:i}=r;i&&(n=i,t.length=s)}return n}const YN=new Uint8Array(32);YN.fill(0);function k8(t){return P(t.length!==0,"invalid ENS name; empty component","comp",t),t}function R5(t){const e=mt(XN(t)),r=[];if(t.length===0)return r;let n=0;for(let s=0;s{P(n.length<=r,`label ${JSON.stringify(t)} exceeds ${r} bytes`,"name",t);const s=new Uint8Array(n.length+1);return s.set(n,1),s[0]=s.length-1,s})))+"00"}function Cx(t,e){return{address:Te(t),storageKeys:e.map((r,n)=>(P(et(r,32),"invalid slot",`storageKeys[${n}]`,r),r.toLowerCase()))}}function vo(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(P(r.length===2,"invalid slot set",`value[${n}]`,r),Cx(r[0],r[1])):(P(r!=null&&typeof r=="object","invalid address-slot set","value",t),Cx(r.address,r.storageKeys)));P(t!=null&&typeof t=="object","invalid access list","value",t);const e=Object.keys(t).map(r=>{const n=t[r].reduce((s,i)=>(s[i]=!0,s),{});return Cx(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function bd(t){let e;return typeof t=="string"?e=Os.computePublicKey(t,!1):e=t.publicKey,Te(Ne("0x"+e.substring(4)).substring(26))}function Qf(t,e){return bd(Os.recoverPublicKey(t,e))}const Xt=BigInt(0),Hne=BigInt(2),zne=BigInt(27),Gne=BigInt(28),qne=BigInt(35),Kne=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ex=4096*32;function A8(t,e){let r=t.toString(16);for(;r.length<2;)r="0"+r;return r+=qr(e).substring(4),"0x"+r}function Lg(t){return t==="0x"?null:Te(t)}function N5(t,e){try{return vo(t)}catch(r){P(!1,r.message,e,t)}}function x1(t,e){return t==="0x"?0:Pe(t,e)}function Dt(t,e){if(t==="0x")return Xt;const r=ve(t,e);return P(r<=Kne,"value exceeds uint size",e,r),r}function ht(t,e){const r=ve(t,"value"),n=rr(r);return P(n.length<=32,"value too large",`tx.${e}`,r),n}function _5(t){return vo(t).map(e=>[e.address,e.storageKeys])}function Qne(t,e){P(Array.isArray(t),`invalid ${e}`,"value",t);for(let r=0;rs.data),r.map(s=>s.commitment),r.map(s=>s.proof)])]):Le(["0x03",Ra(n)])}var Qs,Qu,Ju,Yu,Xu,Zu,ef,tf,rf,nf,sf,of,_c,$o,_i,Wo,af,qp;const Ti=class Ti{constructor(){j(this,af);j(this,Qs);j(this,Qu);j(this,Ju);j(this,Yu);j(this,Xu);j(this,Zu);j(this,ef);j(this,tf);j(this,rf);j(this,nf);j(this,sf);j(this,of);j(this,_c);j(this,$o);j(this,_i);j(this,Wo);T(this,Qs,null),T(this,Qu,null),T(this,Yu,0),T(this,Xu,Xt),T(this,Zu,null),T(this,ef,null),T(this,tf,null),T(this,Ju,"0x"),T(this,rf,Xt),T(this,nf,Xt),T(this,sf,null),T(this,of,null),T(this,_c,null),T(this,$o,null),T(this,Wo,null),T(this,_i,null)}get type(){return w(this,Qs)}set type(e){switch(e){case null:T(this,Qs,null);break;case 0:case"legacy":T(this,Qs,0);break;case 1:case"berlin":case"eip-2930":T(this,Qs,1);break;case 2:case"london":case"eip-1559":T(this,Qs,2);break;case 3:case"cancun":case"eip-4844":T(this,Qs,3);break;default:P(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=w(this,Qu);return e==null&&this.type===3?mi:e}set to(e){T(this,Qu,e==null?null:Te(e))}get nonce(){return w(this,Yu)}set nonce(e){T(this,Yu,Pe(e,"value"))}get gasLimit(){return w(this,Xu)}set gasLimit(e){T(this,Xu,ve(e))}get gasPrice(){const e=w(this,Zu);return e==null&&(this.type===0||this.type===1)?Xt:e}set gasPrice(e){T(this,Zu,e==null?null:ve(e,"gasPrice"))}get maxPriorityFeePerGas(){const e=w(this,ef);return e??(this.type===2||this.type===3?Xt:null)}set maxPriorityFeePerGas(e){T(this,ef,e==null?null:ve(e,"maxPriorityFeePerGas"))}get maxFeePerGas(){const e=w(this,tf);return e??(this.type===2||this.type===3?Xt:null)}set maxFeePerGas(e){T(this,tf,e==null?null:ve(e,"maxFeePerGas"))}get data(){return w(this,Ju)}set data(e){T(this,Ju,H(e))}get value(){return w(this,rf)}set value(e){T(this,rf,ve(e,"value"))}get chainId(){return w(this,nf)}set chainId(e){T(this,nf,ve(e))}get signature(){return w(this,sf)||null}set signature(e){T(this,sf,e==null?null:os.from(e))}get accessList(){const e=w(this,of)||null;return e??(this.type===1||this.type===2||this.type===3?[]:null)}set accessList(e){T(this,of,e==null?null:vo(e))}get maxFeePerBlobGas(){const e=w(this,_c);return e==null&&this.type===3?Xt:e}set maxFeePerBlobGas(e){T(this,_c,e==null?null:ve(e,"maxFeePerBlobGas"))}get blobVersionedHashes(){let e=w(this,$o);return e==null&&this.type===3?[]:e}set blobVersionedHashes(e){if(e!=null){P(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let r=0;rObject.assign({},e))}set blobs(e){if(e==null){T(this,Wo,null);return}const r=[],n=[];for(let s=0;s=0?2:e.pop()}inferTypes(){const e=this.gasPrice!=null,r=this.maxFeePerGas!=null||this.maxPriorityFeePerGas!=null,n=this.accessList!=null,s=w(this,_c)!=null||w(this,$o);this.maxFeePerGas!=null&&this.maxPriorityFeePerGas!=null&&z(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),z(!r||this.type!==0&&this.type!==1,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),z(this.type!==0||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const i=[];return this.type!=null?i.push(this.type):r?i.push(2):e?(i.push(1),n||i.push(0)):n?(i.push(1),i.push(2)):(s&&this.to||(i.push(0),i.push(1),i.push(2)),i.push(3)),i.sort(),i}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}clone(){return Ti.from(this)}toJSON(){const e=r=>r==null?null:r.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(e==null)return new Ti;if(typeof e=="string"){const n=Q(e);if(n[0]>=127)return Ti.from(Jne(n));switch(n[0]){case 1:return Ti.from(ese(n));case 2:return Ti.from(Xne(n));case 3:return Ti.from(rse(n))}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const r=new Ti;return e.type!=null&&(r.type=e.type),e.to!=null&&(r.to=e.to),e.nonce!=null&&(r.nonce=e.nonce),e.gasLimit!=null&&(r.gasLimit=e.gasLimit),e.gasPrice!=null&&(r.gasPrice=e.gasPrice),e.maxPriorityFeePerGas!=null&&(r.maxPriorityFeePerGas=e.maxPriorityFeePerGas),e.maxFeePerGas!=null&&(r.maxFeePerGas=e.maxFeePerGas),e.maxFeePerBlobGas!=null&&(r.maxFeePerBlobGas=e.maxFeePerBlobGas),e.data!=null&&(r.data=e.data),e.value!=null&&(r.value=e.value),e.chainId!=null&&(r.chainId=e.chainId),e.signature!=null&&(r.signature=os.from(e.signature)),e.accessList!=null&&(r.accessList=e.accessList),e.blobVersionedHashes!=null&&(r.blobVersionedHashes=e.blobVersionedHashes),e.kzg!=null&&(r.kzg=e.kzg),e.blobs!=null&&(r.blobs=e.blobs),e.hash!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),P(r.hash===e.hash,"hash mismatch","tx",e)),e.from!=null&&(P(r.isSigned(),"unsigned transaction cannot define '.from'","tx",e),P(r.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),r}};Qs=new WeakMap,Qu=new WeakMap,Ju=new WeakMap,Yu=new WeakMap,Xu=new WeakMap,Zu=new WeakMap,ef=new WeakMap,tf=new WeakMap,rf=new WeakMap,nf=new WeakMap,sf=new WeakMap,of=new WeakMap,_c=new WeakMap,$o=new WeakMap,_i=new WeakMap,Wo=new WeakMap,af=new WeakSet,qp=function(e,r){z(!e||this.signature!=null,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return Yne(this,n);case 1:return tse(this,n);case 2:return Zne(this,n);case 3:return nse(this,n,r?this.blobs:null)}z(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})};let yl=Ti;function jg(t){return typeof t=="string"&&(t=mt(t)),Ne(Le([mt(SN),mt(String(t.length)),t]))}function e7(t,e){const r=jg(t);return Qf(r,e)}const sse=new RegExp("^bytes([0-9]+)$"),ise=new RegExp("^(u?int)([0-9]*)$"),ose=new RegExp("^(.*)\\[([0-9]*)\\]$");function t7(t,e,r){switch(t){case"address":return Q(r?rs(e,32):Te(e));case"string":return mt(e);case"bytes":return Q(e);case"bool":return e=e?"0x01":"0x00",Q(r?rs(e,32):e)}let n=t.match(ise);if(n){let s=n[1]==="int",i=parseInt(n[2]||"256");return P((!n[2]||n[2]===String(i))&&i%8===0&&i!==0&&i<=256,"invalid number type","type",t),r&&(i=256),s&&(e=Rg(e,i)),Q(rs(rr(e),i/8))}if(n=t.match(sse),n){const s=parseInt(n[1]);return P(String(s)===n[1]&&s!==0&&s<=32,"invalid bytes type","type",t),P(xa(e)===s,`invalid value for ${t}`,"value",e),r?Q(Ig(e,32)):e}if(n=t.match(ose),n&&Array.isArray(e)){const s=n[1],i=parseInt(n[2]||String(e.length));P(i===e.length,`invalid array length for ${t}`,"value",e);const o=[];return e.forEach(function(a){o.push(t7(s,a,!0))}),Q(Le(o))}P(!1,"invalid type","type",t)}function De(t,e){P(t.length===e.length,"wrong number of values; expected ${ types.length }","values",e);const r=[];return t.forEach(function(n,s){r.push(t7(n,e[s]))}),H(Le(r))}function Zi(t,e){return Ne(De(t,e))}function ase(t,e){return qr(De(t,e))}const r7=new Uint8Array(32);r7.fill(0);const cse=BigInt(-1),n7=BigInt(0),s7=BigInt(1),lse=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function use(t){const e=Q(t),r=e.length%32;return r?Le([e,r7.slice(r)]):H(e)}const fse=In(s7,32),dse=In(n7,32),S8={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},kx=["name","version","chainId","verifyingContract","salt"];function T8(t){return function(e){return P(typeof e=="string",`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const hse={name:T8("name"),version:T8("version"),chainId:function(t){const e=ve(t,"domain.chainId");return P(e>=0,"invalid chain ID","domain.chainId",t),Number.isSafeInteger(e)?Number(e):pr(e)},verifyingContract:function(t){try{return Te(t).toLowerCase()}catch{}P(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){const e=Q(t,"domain.salt");return P(e.length===32,'invalid domain value "salt"',"domain.salt",t),H(e)}};function Ax(t){{const e=t.match(/^(u?)int(\d+)$/);if(e){const r=e[1]==="",n=parseInt(e[2]);P(n%8===0&&n!==0&&n<=256&&e[2]===String(n),"invalid numeric width","type",t);const s=aa(lse,r?n-1:n),i=r?(s+s7)*cse:n7;return function(o){const a=ve(o,"value");return P(a>=i&&a<=s,`value out-of-bounds for ${t}`,"value",a),In(r?Rg(a,256):a,32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const r=parseInt(e[1]);return P(r!==0&&r<=32&&e[1]===String(r),"invalid bytes width","type",t),function(n){const s=Q(n);return P(s.length===r,`invalid length for ${t}`,"value",n),use(n)}}}switch(t){case"address":return function(e){return rs(Te(e),32)};case"bool":return function(e){return e?fse:dse};case"bytes":return function(e){return Ne(e)};case"string":return function(e){return Kr(e)}}return null}function P8(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}function pp(t){const e=t.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return e?{base:e[1],index:e[2]+e[4],array:{base:e[1],prefix:e[1]+e[2],count:e[5]?parseInt(e[5]):-1}}:{base:t}}var L0,Mi,cf,Rv,i7;const $n=class $n{constructor(e){j(this,Rv);N(this,"primaryType");j(this,L0);j(this,Mi);j(this,cf);T(this,Mi,new Map),T(this,cf,new Map);const r=new Map,n=new Map,s=new Map,i={};Object.keys(e).forEach(c=>{i[c]=e[c].map(({name:l,type:u})=>{let{base:f,index:d}=pp(u);return f==="int"&&!e.int&&(f="int256"),f==="uint"&&!e.uint&&(f="uint256"),{name:l,type:f+(d||"")}}),r.set(c,new Set),n.set(c,[]),s.set(c,new Set)}),T(this,L0,JSON.stringify(i));for(const c in i){const l=new Set;for(const u of i[c]){P(!l.has(u.name),`duplicate variable name ${JSON.stringify(u.name)} in ${JSON.stringify(c)}`,"types",e),l.add(u.name);const f=pp(u.type).base;P(f!==c,`circular type reference to ${JSON.stringify(f)}`,"types",e),!Ax(f)&&(P(n.has(f),`unknown type ${JSON.stringify(f)}`,"types",e),n.get(f).push(c),r.get(c).add(f))}}const o=Array.from(n.keys()).filter(c=>n.get(c).length===0);P(o.length!==0,"missing primary type","types",e),P(o.length===1,`ambiguous primary types or unused types: ${o.map(c=>JSON.stringify(c)).join(", ")}`,"types",e),fe(this,{primaryType:o[0]});function a(c,l){P(!l.has(c),`circular type reference to ${JSON.stringify(c)}`,"types",e),l.add(c);for(const u of r.get(c))if(n.has(u)){a(u,l);for(const f of l)s.get(f).add(u)}l.delete(c)}a(this.primaryType,new Set);for(const[c,l]of s){const u=Array.from(l);u.sort(),w(this,Mi).set(c,P8(c,i[c])+u.map(f=>P8(f,i[f])).join(""))}}get types(){return JSON.parse(w(this,L0))}getEncoder(e){let r=w(this,cf).get(e);return r||(r=Y(this,Rv,i7).call(this,e),w(this,cf).set(e,r)),r}encodeType(e){const r=w(this,Mi).get(e);return P(r,`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Ne(this.encodeData(e,r))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,r,n){if(Ax(e))return n(e,r);const s=pp(e).array;if(s)return P(s.count===-1||s.count===r.length,`array length mismatch; expected length ${s.count}`,"value",r),r.map(o=>this._visit(s.prefix,o,n));const i=this.types[e];if(i)return i.reduce((o,{name:a,type:c})=>(o[a]=this._visit(c,r[a],n),o),{});P(!1,`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new $n(e)}static getPrimaryType(e){return $n.from(e).primaryType}static hashStruct(e,r,n){return $n.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){if(e[n]==null)continue;const s=S8[n];P(s,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:s})}return r.sort((n,s)=>kx.indexOf(n.name)-kx.indexOf(s.name)),$n.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return Le(["0x1901",$n.hashDomain(e),$n.from(r).hash(n)])}static hash(e,r,n){return Ne($n.encode(e,r,n))}static async resolveNames(e,r,n,s){e=Object.assign({},e);for(const a in e)e[a]==null&&delete e[a];const i={};e.verifyingContract&&!et(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=$n.from(r);o.visit(n,(a,c)=>(a==="address"&&!et(c,20)&&(i[c]="0x"),c));for(const a in i)i[a]=await s(a);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),n=o.visit(n,(a,c)=>a==="address"&&i[c]?i[c]:c),{domain:e,value:n}}static getPayload(e,r,n){$n.hashDomain(e);const s={},i=[];kx.forEach(c=>{const l=e[c];l!=null&&(s[c]=hse[c](l),i.push({name:c,type:S8[c]}))});const o=$n.from(r);r=o.types;const a=Object.assign({},r);return P(a.EIP712Domain==null,"types must not contain EIP712Domain type","types.EIP712Domain",r),a.EIP712Domain=i,o.encode(n),{types:a,domain:s,primaryType:o.primaryType,message:o.visit(n,(c,l)=>{if(c.match(/^bytes(\d*)/))return H(Q(l));if(c.match(/^u?int/))return ve(l).toString();switch(c){case"address":return l.toLowerCase();case"bool":return!!l;case"string":return P(typeof l=="string","invalid string","value",l),l}P(!1,"unsupported type","type",c)})}}};L0=new WeakMap,Mi=new WeakMap,cf=new WeakMap,Rv=new WeakSet,i7=function(e){{const s=Ax(e);if(s)return s}const r=pp(e).array;if(r){const s=r.prefix,i=this.getEncoder(s);return o=>{P(r.count===-1||r.count===o.length,`array length mismatch; expected length ${r.count}`,"value",o);let a=o.map(i);return w(this,Mi).has(s)&&(a=a.map(Ne)),Ne(Le(a))}}const n=this.types[e];if(n){const s=Kr(w(this,Mi).get(e));return i=>{const o=n.map(({name:a,type:c})=>{const l=this.getEncoder(c)(i[a]);return w(this,Mi).has(c)?Ne(l):l});return o.unshift(s),Le(o)}}P(!1,`unknown type: ${e}`,"type",e)};let Ds=$n;function pse(t,e,r,n){return Qf(Ds.hash(t,e,r),n)}function Hr(t){const e=new Set;return t.forEach(r=>e.add(r)),Object.freeze(e)}const yse="external public payable override",vse=Hr(yse.split(" ")),o7="constant external internal payable private public pure view override",gse=Hr(o7.split(" ")),a7="constructor error event fallback function receive struct",c7=Hr(a7.split(" ")),l7="calldata memory storage payable indexed",mse=Hr(l7.split(" ")),xse="tuple returns",bse=[a7,l7,xse,o7].join(" "),wse=Hr(bse.split(" ")),Cse={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},Ese=new RegExp("^(\\s*)"),kse=new RegExp("^([0-9]+)"),Ase=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),u7=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),f7=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");var lr,xs,j0,zw;const Nv=class Nv{constructor(e){j(this,j0);j(this,lr);j(this,xs);T(this,lr,0),T(this,xs,e.slice())}get offset(){return w(this,lr)}get length(){return w(this,xs).length-w(this,lr)}clone(){return new Nv(w(this,xs))}reset(){T(this,lr,0)}popKeyword(e){const r=this.peek();if(r.type!=="KEYWORD"||!e.has(r.text))throw new Error(`expected keyword ${r.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const r=this.peek();throw new Error(`expected ${e}; got ${r.type} ${JSON.stringify(r.text)}`)}return this.pop().text}popParen(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=Y(this,j0,zw).call(this,w(this,lr)+1,e.match+1);return T(this,lr,e.match+1),r}popParams(){const e=this.peek();if(e.type!=="OPEN_PAREN")throw new Error("bad start");const r=[];for(;w(this,lr)=w(this,xs).length)throw new Error("out-of-bounds");return w(this,xs)[w(this,lr)]}peekKeyword(e){const r=this.peekType("KEYWORD");return r!=null&&e.has(r)?r:null}peekType(e){if(this.length===0)return null;const r=this.peek();return r.type===e?r.text:null}pop(){const e=this.peek();return Il(this,lr)._++,e}toString(){const e=[];for(let r=w(this,lr);r`}};lr=new WeakMap,xs=new WeakMap,j0=new WeakSet,zw=function(e=0,r=0){return new Nv(w(this,xs).slice(e,r).map(n=>Object.freeze(Object.assign({},n,{match:n.match-e,linkBack:n.linkBack-e,linkNext:n.linkNext-e}))))};let Bs=Nv;function Ga(t){const e=[],r=o=>{const a=i0&&e[e.length-1].type==="NUMBER"){const f=e.pop().text;u=f+u,e[e.length-1].value=Pe(f)}if(e.length===0||e[e.length-1].type!=="BRACKET")throw new Error("missing opening bracket");e[e.length-1].text+=u}continue}if(a=o.match(Ase),a){if(c.text=a[1],i+=c.text.length,wse.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(f7)){c.type="TYPE";continue}c.type="ID";continue}if(a=o.match(kse),a){c.text=a[1],c.type="NUMBER",i+=c.text.length;continue}throw new Error(`unexpected token ${JSON.stringify(o[0])} at position ${i}`)}return new Bs(e.map(o=>Object.freeze(o)))}function I8(t,e){let r=[];for(const n in e.keys())t.has(n)&&r.push(n);if(r.length>1)throw new Error(`conflicting types: ${r.join(", ")}`)}function Fg(t,e){if(e.peekKeyword(c7)){const r=e.pop().text;if(r!==t)throw new Error(`expected ${t}, got ${r}`)}return e.popType("ID")}function ao(t,e){const r=new Set;for(;;){const n=t.peekType("KEYWORD");if(n==null||e&&!e.has(n))break;if(t.pop(),r.has(n))throw new Error(`duplicate keywords: ${JSON.stringify(n)}`);r.add(n)}return Object.freeze(r)}function d7(t){let e=ao(t,gse);return I8(e,Hr("constant payable nonpayable".split(" "))),I8(e,Hr("pure view payable nonpayable".split(" "))),e.has("view")?"view":e.has("pure")?"pure":e.has("payable")?"payable":e.has("nonpayable")?"nonpayable":e.has("constant")?"view":"nonpayable"}function eo(t,e){return t.popParams().map(r=>or.from(r,e))}function h7(t){if(t.peekType("AT")){if(t.pop(),t.peekType("NUMBER"))return ve(t.pop().text);throw new Error("invalid gas")}return null}function vl(t){if(t.length)throw new Error(`unexpected tokens at offset ${t.offset}: ${t.toString()}`)}const Sse=new RegExp(/^(.*)\[([0-9]*)\]$/);function O8(t){const e=t.match(f7);if(P(e,"invalid type","type",t),t==="uint")return"uint256";if(t==="int")return"int256";if(e[2]){const r=parseInt(e[2]);P(r!==0&&r<=32,"invalid bytes length","type",t)}else if(e[3]){const r=parseInt(e[3]);P(r!==0&&r<=256&&r%8===0,"invalid numeric width","type",t)}return t}const wt={},pn=Symbol.for("_ethers_internal"),R8="_ParamTypeInternal",N8="_ErrorInternal",_8="_EventInternal",M8="_ConstructorInternal",D8="_FallbackInternal",B8="_FunctionInternal",L8="_StructInternal";var lf,Kp;const Wn=class Wn{constructor(e,r,n,s,i,o,a,c){j(this,lf);N(this,"name");N(this,"type");N(this,"baseType");N(this,"indexed");N(this,"components");N(this,"arrayLength");N(this,"arrayChildren");if(po(e,wt,"ParamType"),Object.defineProperty(this,pn,{value:R8}),o&&(o=Object.freeze(o.slice())),s==="array"){if(a==null||c==null)throw new Error("")}else if(a!=null||c!=null)throw new Error("");if(s==="tuple"){if(o==null)throw new Error("")}else if(o!=null)throw new Error("");fe(this,{name:r,type:n,baseType:s,indexed:i,components:o,arrayLength:a,arrayChildren:c})}format(e){if(e==null&&(e="sighash"),e==="json"){const n=this.name||"";if(this.isArray()){const i=JSON.parse(this.arrayChildren.format("json"));return i.name=n,i.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(i)}const s={type:this.baseType==="tuple"?"tuple":this.type,name:n};return typeof this.indexed=="boolean"&&(s.indexed=this.indexed),this.isTuple()&&(s.components=this.components.map(i=>JSON.parse(i.format(e)))),JSON.stringify(s)}let r="";return this.isArray()?(r+=this.arrayChildren.format(e),r+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?r+="("+this.components.map(n=>n.format(e)).join(e==="full"?", ":",")+")":r+=this.type,e!=="sighash"&&(this.indexed===!0&&(r+=" indexed"),e==="full"&&this.name&&(r+=" "+this.name)),r}isArray(){return this.baseType==="array"}isTuple(){return this.baseType==="tuple"}isIndexable(){return this.indexed!=null}walk(e,r){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(this.arrayLength!==-1&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map(s=>n.arrayChildren.walk(s,r))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map((s,i)=>n.components[i].walk(s,r))}return r(this.type,e)}async walkAsync(e,r){const n=[],s=[e];return Y(this,lf,Kp).call(this,n,e,r,i=>{s[0]=i}),n.length&&await Promise.all(n),s[0]}static from(e,r){if(Wn.isParamType(e))return e;if(typeof e=="string")try{return Wn.from(Ga(e),r)}catch{P(!1,"invalid param type","obj",e)}else if(e instanceof Bs){let a="",c="",l=null;ao(e,Hr(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(c="tuple",l=e.popParams().map(p=>Wn.from(p)),a=`tuple(${l.map(p=>p.format()).join(",")})`):(a=O8(e.popType("TYPE")),c=a);let u=null,f=null;for(;e.length&&e.peekType("BRACKET");){const p=e.pop();u=new Wn(wt,"",a,c,null,l,f,u),f=p.value,a+=p.text,c="array",l=null}let d=null;if(ao(e,mse).has("indexed")){if(!r)throw new Error("");d=!0}const y=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new Wn(wt,y,a,c,d,l,f,u)}const n=e.name;P(!n||typeof n=="string"&&n.match(u7),"invalid name","obj.name",n);let s=e.indexed;s!=null&&(P(r,"parameter cannot be indexed","obj.indexed",e.indexed),s=!!s);let i=e.type,o=i.match(Sse);if(o){const a=parseInt(o[2]||"-1"),c=Wn.from({type:o[1],components:e.components});return new Wn(wt,n||"",i,"array",s,null,a,c)}if(i==="tuple"||i.startsWith("tuple(")||i.startsWith("(")){const a=e.components!=null?e.components.map(l=>Wn.from(l)):null;return new Wn(wt,n||"",i,"tuple",s,a,null,null)}return i=O8(e.type),new Wn(wt,n||"",i,i,s,null,null,null)}static isParamType(e){return e&&e[pn]===R8}};lf=new WeakSet,Kp=function(e,r,n,s){if(this.isArray()){if(!Array.isArray(r))throw new Error("invalid array value");if(this.arrayLength!==-1&&r.length!==this.arrayLength)throw new Error("array is wrong length");const o=this.arrayChildren,a=r.slice();a.forEach((c,l)=>{var u;Y(u=o,lf,Kp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}if(this.isTuple()){const o=this.components;let a;if(Array.isArray(r))a=r.slice();else{if(r==null||typeof r!="object")throw new Error("invalid tuple value");a=o.map(c=>{if(!c.name)throw new Error("cannot use object value with unnamed components");if(!(c.name in r))throw new Error(`missing value for component ${c.name}`);return r[c.name]})}if(a.length!==this.components.length)throw new Error("array is wrong length");a.forEach((c,l)=>{var u;Y(u=o[l],lf,Kp).call(u,e,c,n,f=>{a[l]=f})}),s(a);return}const i=n(this.type,r);i.then?e.push(async function(){s(await i)}()):s(i)};let or=Wn;class Na{constructor(e,r,n){N(this,"type");N(this,"inputs");po(e,wt,"Fragment"),n=Object.freeze(n.slice()),fe(this,{type:r,inputs:n})}static from(e){if(typeof e=="string"){try{Na.from(JSON.parse(e))}catch{}return Na.from(Ga(e))}if(e instanceof Bs)switch(e.peekKeyword(c7)){case"constructor":return ai.from(e);case"error":return Wr.from(e);case"event":return As.from(e);case"fallback":case"receive":return ni.from(e);case"function":return Ss.from(e);case"struct":return ba.from(e)}else if(typeof e=="object"){switch(e.type){case"constructor":return ai.from(e);case"error":return Wr.from(e);case"event":return As.from(e);case"fallback":case"receive":return ni.from(e);case"function":return Ss.from(e);case"struct":return ba.from(e)}z(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}P(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return ai.isFragment(e)}static isError(e){return Wr.isFragment(e)}static isEvent(e){return As.isFragment(e)}static isFunction(e){return Ss.isFragment(e)}static isStruct(e){return ba.isFragment(e)}}class b1 extends Na{constructor(r,n,s,i){super(r,n,i);N(this,"name");P(typeof s=="string"&&s.match(u7),"invalid identifier","name",s),i=Object.freeze(i.slice()),fe(this,{name:s})}}function b0(t,e){return"("+e.map(r=>r.format(t)).join(t==="full"?", ":",")+")"}class Wr extends b1{constructor(e,r,n){super(e,"error",r,n),Object.defineProperty(this,pn,{value:N8})}get selector(){return Kr(this.format("sighash")).substring(0,10)}format(e){if(e==null&&(e="sighash"),e==="json")return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});const r=[];return e!=="sighash"&&r.push("error"),r.push(this.name+b0(e,this.inputs)),r.join(" ")}static from(e){if(Wr.isFragment(e))return e;if(typeof e=="string")return Wr.from(Ga(e));if(e instanceof Bs){const r=Fg("error",e),n=eo(e);return vl(e),new Wr(wt,r,n)}return new Wr(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===N8}}class As extends b1{constructor(r,n,s,i){super(r,"event",n,s);N(this,"anonymous");Object.defineProperty(this,pn,{value:_8}),fe(this,{anonymous:i})}get topicHash(){return Kr(this.format("sighash"))}format(r){if(r==null&&(r="sighash"),r==="json")return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("event"),n.push(this.name+b0(r,this.inputs)),r!=="sighash"&&this.anonymous&&n.push("anonymous"),n.join(" ")}static getTopicHash(r,n){return n=(n||[]).map(i=>or.from(i)),new As(wt,r,n,!1).topicHash}static from(r){if(As.isFragment(r))return r;if(typeof r=="string")try{return As.from(Ga(r))}catch{P(!1,"invalid event fragment","obj",r)}else if(r instanceof Bs){const n=Fg("event",r),s=eo(r,!0),i=!!ao(r,Hr(["anonymous"])).has("anonymous");return vl(r),new As(wt,n,s,i)}return new As(wt,r.name,r.inputs?r.inputs.map(n=>or.from(n,!0)):[],!!r.anonymous)}static isFragment(r){return r&&r[pn]===_8}}class ai extends Na{constructor(r,n,s,i,o){super(r,n,s);N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:M8}),fe(this,{payable:i,gas:o})}format(r){if(z(r!=null&&r!=="sighash","cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),r==="json")return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:this.gas!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r)))});const n=[`constructor${b0(r,this.inputs)}`];return this.payable&&n.push("payable"),this.gas!=null&&n.push(`@${this.gas.toString()}`),n.join(" ")}static from(r){if(ai.isFragment(r))return r;if(typeof r=="string")try{return ai.from(Ga(r))}catch{P(!1,"invalid constuctor fragment","obj",r)}else if(r instanceof Bs){ao(r,Hr(["constructor"]));const n=eo(r),s=!!ao(r,vse).has("payable"),i=h7(r);return vl(r),new ai(wt,"constructor",n,s,i)}return new ai(wt,"constructor",r.inputs?r.inputs.map(or.from):[],!!r.payable,r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===M8}}class ni extends Na{constructor(r,n,s){super(r,"fallback",n);N(this,"payable");Object.defineProperty(this,pn,{value:D8}),fe(this,{payable:s})}format(r){const n=this.inputs.length===0?"receive":"fallback";if(r==="json"){const s=this.payable?"payable":"nonpayable";return JSON.stringify({type:n,stateMutability:s})}return`${n}()${this.payable?" payable":""}`}static from(r){if(ni.isFragment(r))return r;if(typeof r=="string")try{return ni.from(Ga(r))}catch{P(!1,"invalid fallback fragment","obj",r)}else if(r instanceof Bs){const n=r.toString(),s=r.peekKeyword(Hr(["fallback","receive"]));if(P(s,"type must be fallback or receive","obj",n),r.popKeyword(Hr(["fallback","receive"]))==="receive"){const c=eo(r);return P(c.length===0,"receive cannot have arguments","obj.inputs",c),ao(r,Hr(["payable"])),vl(r),new ni(wt,[],!0)}let o=eo(r);o.length?P(o.length===1&&o[0].type==="bytes","invalid fallback inputs","obj.inputs",o.map(c=>c.format("minimal")).join(", ")):o=[or.from("bytes")];const a=d7(r);if(P(a==="nonpayable"||a==="payable","fallback cannot be constants","obj.stateMutability",a),ao(r,Hr(["returns"])).has("returns")){const c=eo(r);P(c.length===1&&c[0].type==="bytes","invalid fallback outputs","obj.outputs",c.map(l=>l.format("minimal")).join(", "))}return vl(r),new ni(wt,o,a==="payable")}if(r.type==="receive")return new ni(wt,[],!0);if(r.type==="fallback"){const n=[or.from("bytes")],s=r.stateMutability==="payable";return new ni(wt,n,s)}P(!1,"invalid fallback description","obj",r)}static isFragment(r){return r&&r[pn]===D8}}class Ss extends b1{constructor(r,n,s,i,o,a){super(r,"function",n,i);N(this,"constant");N(this,"outputs");N(this,"stateMutability");N(this,"payable");N(this,"gas");Object.defineProperty(this,pn,{value:B8}),o=Object.freeze(o.slice()),fe(this,{constant:s==="view"||s==="pure",gas:a,outputs:o,payable:s==="payable",stateMutability:s})}get selector(){return Kr(this.format("sighash")).substring(0,10)}format(r){if(r==null&&(r="sighash"),r==="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!=null?this.gas:void 0,inputs:this.inputs.map(s=>JSON.parse(s.format(r))),outputs:this.outputs.map(s=>JSON.parse(s.format(r)))});const n=[];return r!=="sighash"&&n.push("function"),n.push(this.name+b0(r,this.inputs)),r!=="sighash"&&(this.stateMutability!=="nonpayable"&&n.push(this.stateMutability),this.outputs&&this.outputs.length&&(n.push("returns"),n.push(b0(r,this.outputs))),this.gas!=null&&n.push(`@${this.gas.toString()}`)),n.join(" ")}static getSelector(r,n){return n=(n||[]).map(i=>or.from(i)),new Ss(wt,r,"view",n,[],null).selector}static from(r){if(Ss.isFragment(r))return r;if(typeof r=="string")try{return Ss.from(Ga(r))}catch{P(!1,"invalid function fragment","obj",r)}else if(r instanceof Bs){const s=Fg("function",r),i=eo(r),o=d7(r);let a=[];ao(r,Hr(["returns"])).has("returns")&&(a=eo(r));const c=h7(r);return vl(r),new Ss(wt,s,o,i,a,c)}let n=r.stateMutability;return n==null&&(n="payable",typeof r.constant=="boolean"?(n="view",r.constant||(n="payable",typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable"))):typeof r.payable=="boolean"&&!r.payable&&(n="nonpayable")),new Ss(wt,r.name,n,r.inputs?r.inputs.map(or.from):[],r.outputs?r.outputs.map(or.from):[],r.gas!=null?r.gas:null)}static isFragment(r){return r&&r[pn]===B8}}class ba extends b1{constructor(e,r,n){super(e,"struct",r,n),Object.defineProperty(this,pn,{value:L8})}format(){throw new Error("@TODO")}static from(e){if(typeof e=="string")try{return ba.from(Ga(e))}catch{P(!1,"invalid struct fragment","obj",e)}else if(e instanceof Bs){const r=Fg("struct",e),n=eo(e);return vl(e),new ba(wt,r,n)}return new ba(wt,e.name,e.inputs?e.inputs.map(or.from):[])}static isFragment(e){return e&&e[pn]===L8}}const Fs=new Map;Fs.set(0,"GENERIC_PANIC");Fs.set(1,"ASSERT_FALSE");Fs.set(17,"OVERFLOW");Fs.set(18,"DIVIDE_BY_ZERO");Fs.set(33,"ENUM_RANGE_ERROR");Fs.set(34,"BAD_STORAGE_DATA");Fs.set(49,"STACK_UNDERFLOW");Fs.set(50,"ARRAY_RANGE_ERROR");Fs.set(65,"OUT_OF_MEMORY");Fs.set(81,"UNINITIALIZED_FUNCTION_CALL");const Tse=new RegExp(/^bytes([0-9]*)$/),Pse=new RegExp(/^(u?int)([0-9]*)$/);let Sx=null,j8=1024;function Ise(t,e,r,n){let s="missing revert data",i=null;const o=null;let a=null;if(r){s="execution reverted";const l=Q(r);if(r=H(r),l.length===0)s+=" (no data present; likely require(false) occurred",i="require(false)";else if(l.length%32!==4)s+=" (could not decode reason; invalid data length)";else if(H(l.slice(0,4))==="0x08c379a0")try{i=n.decode(["string"],l.slice(4))[0],a={signature:"Error(string)",name:"Error",args:[i]},s+=`: ${JSON.stringify(i)}`}catch{s+=" (could not decode reason; invalid string data)"}else if(H(l.slice(0,4))==="0x4e487b71")try{const u=Number(n.decode(["uint256"],l.slice(4))[0]);a={signature:"Panic(uint256)",name:"Panic",args:[u]},i=`Panic due to ${Fs.get(u)||"UNKNOWN"}(${u})`,s+=`: ${i}`}catch{s+=" (could not decode panic code)"}else s+=" (unknown custom error)"}const c={to:e.to?Te(e.to):null,data:e.data||"0x"};return e.from&&(c.from=Te(e.from)),ft(s,"CALL_EXCEPTION",{action:t,data:r,reason:i,transaction:c,invocation:o,revert:a})}var Vo,ql;const _v=class _v{constructor(){j(this,Vo)}getDefaultValue(e){const r=e.map(s=>Y(this,Vo,ql).call(this,or.from(s)));return new hp(r,"_").defaultValue()}encode(e,r){l5(r.length,e.length,"types/values length mismatch");const n=e.map(o=>Y(this,Vo,ql).call(this,or.from(o))),s=new hp(n,"_"),i=new Nw;return s.encode(i,r),i.data}decode(e,r,n){const s=e.map(o=>Y(this,Vo,ql).call(this,or.from(o)));return new hp(s,"_").decode(new _w(r,n,j8))}static _setDefaultMaxInflation(e){P(typeof e=="number"&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),j8=e}static defaultAbiCoder(){return Sx==null&&(Sx=new _v),Sx}static getBuiltinCallException(e,r,n){return Ise(e,r,n,_v.defaultAbiCoder())}};Vo=new WeakSet,ql=function(e){if(e.isArray())return new Jre(Y(this,Vo,ql).call(this,e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new hp(e.components.map(n=>Y(this,Vo,ql).call(this,n)),e.name);switch(e.baseType){case"address":return new Kre(e.name);case"bool":return new Yre(e.name);case"string":return new one(e.name);case"bytes":return new Xre(e.name);case"":return new tne(e.name)}let r=e.type.match(Pse);if(r){let n=parseInt(r[2]||"256");return P(n!==0&&n<=256&&n%8===0,"invalid "+r[1]+" bit length","param",e),new ine(n/8,r[1]==="int",e.name)}if(r=e.type.match(Tse),r){let n=parseInt(r[1]);return P(n!==0&&n<=32,"invalid bytes length","param",e),new Zre(n,e.name)}P(!1,"invalid type","type",e.type)};let Kt=_v;function Ose(t){const e=mt(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Ig(e,32)}function Rse(t){const e=Q(t,"bytes");if(e.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(e[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;e[r-1]===0;)r--;return Ms(e.slice(0,r))}class p7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"signature");N(this,"topic");N(this,"args");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,signature:i,topic:r,args:n})}}class y7{constructor(e,r,n,s){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");N(this,"value");const i=e.name,o=e.format();fe(this,{fragment:e,name:i,args:n,signature:o,selector:r,value:s})}}class v7{constructor(e,r,n){N(this,"fragment");N(this,"name");N(this,"args");N(this,"signature");N(this,"selector");const s=e.name,i=e.format();fe(this,{fragment:e,name:s,args:n,signature:i,selector:r})}}class Gw{constructor(e){N(this,"hash");N(this,"_isIndexed");fe(this,{hash:e,_isIndexed:!0})}static isIndexed(e){return!!(e&&e._isIndexed)}}const F8={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},U8={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:t=>`reverted with reason string ${JSON.stringify(t)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:t=>{let e="unknown panic code";return t>=0&&t<=255&&F8[t.toString()]&&(e=F8[t.toString()]),`reverted with panic code 0x${t.toString(16)} (${e})`}}};var Js,Ys,Xs,Sr,pi,Qp,Jp;const dc=class dc{constructor(e){j(this,pi);N(this,"fragments");N(this,"deploy");N(this,"fallback");N(this,"receive");j(this,Js);j(this,Ys);j(this,Xs);j(this,Sr);let r=[];typeof e=="string"?r=JSON.parse(e):r=e,T(this,Xs,new Map),T(this,Js,new Map),T(this,Ys,new Map);const n=[];for(const o of r)try{n.push(Na.from(o))}catch(a){console.log(`[Warning] Invalid Fragment ${JSON.stringify(o)}:`,a.message)}fe(this,{fragments:Object.freeze(n)});let s=null,i=!1;T(this,Sr,this.getAbiCoder()),this.fragments.forEach((o,a)=>{let c;switch(o.type){case"constructor":if(this.deploy){console.log("duplicate definition - constructor");return}fe(this,{deploy:o});return;case"fallback":o.inputs.length===0?i=!0:(P(!s||o.payable!==s.payable,"conflicting fallback fragments",`fragments[${a}]`,o),s=o,i=s.payable);return;case"function":c=w(this,Xs);break;case"event":c=w(this,Ys);break;case"error":c=w(this,Js);break;default:return}const l=o.format();c.has(l)||c.set(l,o)}),this.deploy||fe(this,{deploy:ai.from("constructor()")}),fe(this,{fallback:s,receive:i})}format(e){const r=e?"minimal":"full";return this.fragments.map(s=>s.format(r))}formatJson(){const e=this.fragments.map(r=>r.format("json"));return JSON.stringify(e.map(r=>JSON.parse(r)))}getAbiCoder(){return Kt.defaultAbiCoder()}getFunctionName(e){const r=Y(this,pi,Qp).call(this,e,null,!1);return P(r,"no matching function","key",e),r.name}hasFunction(e){return!!Y(this,pi,Qp).call(this,e,null,!1)}getFunction(e,r){return Y(this,pi,Qp).call(this,e,r||null,!0)}forEachFunction(e){const r=Array.from(w(this,Xs).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;nn.localeCompare(s));for(let n=0;n1){const i=s.map(o=>JSON.stringify(o.format())).join(", ");P(!1,`ambiguous error description (i.e. ${i})`,"name",e)}return s[0]}if(e=Wr.from(e).format(),e==="Error(string)")return Wr.from("error Error(string)");if(e==="Panic(uint256)")return Wr.from("error Panic(uint256)");const n=w(this,Js).get(e);return n||null}forEachError(e){const r=Array.from(w(this,Js).keys());r.sort((n,s)=>n.localeCompare(s));for(let n=0;ni.type==="string"?Kr(o):i.type==="bytes"?Ne(H(o)):(i.type==="bool"&&typeof o=="boolean"?o=o?"0x01":"0x00":i.type.match(/^u?int/)?o=In(o):i.type.match(/^bytes/)?o=Ig(o,32):i.type==="address"&&w(this,Sr).encode(["address"],[o]),rs(H(o),32));for(r.forEach((i,o)=>{const a=e.inputs[o];if(!a.indexed){P(i==null,"cannot filter non-indexed parameters; must be null","contract."+a.name,i);return}i==null?n.push(null):a.baseType==="array"||a.baseType==="tuple"?P(!1,"filtering with tuples or arrays not supported","contract."+a.name,i):Array.isArray(i)?n.push(i.map(c=>s(a,c))):n.push(s(a,i))});n.length&&n[n.length-1]===null;)n.pop();return n}encodeEventLog(e,r){if(typeof e=="string"){const o=this.getEvent(e);P(o,"unknown event","eventFragment",e),e=o}const n=[],s=[],i=[];return e.anonymous||n.push(e.topicHash),P(r.length===e.inputs.length,"event arguments/values mismatch","values",r),e.inputs.forEach((o,a)=>{const c=r[a];if(o.indexed)if(o.type==="string")n.push(Kr(c));else if(o.type==="bytes")n.push(Ne(c));else{if(o.baseType==="tuple"||o.baseType==="array")throw new Error("not implemented");n.push(w(this,Sr).encode([o.type],[c]))}else s.push(o),i.push(c)}),{data:w(this,Sr).encode(s,i),topics:n}}decodeEventLog(e,r,n){if(typeof e=="string"){const h=this.getEvent(e);P(h,"unknown event","eventFragment",e),e=h}if(n!=null&&!e.anonymous){const h=e.topicHash;P(et(n[0],32)&&n[0].toLowerCase()===h,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const s=[],i=[],o=[];e.inputs.forEach((h,y)=>{h.indexed?h.type==="string"||h.type==="bytes"||h.baseType==="tuple"||h.baseType==="array"?(s.push(or.from({type:"bytes32",name:h.name})),o.push(!0)):(s.push(h),o.push(!1)):(i.push(h),o.push(!1))});const a=n!=null?w(this,Sr).decode(s,Le(n)):null,c=w(this,Sr).decode(i,r,!0),l=[],u=[];let f=0,d=0;return e.inputs.forEach((h,y)=>{let p=null;if(h.indexed)if(a==null)p=new Gw(null);else if(o[y])p=new Gw(a[d++]);else try{p=a[d++]}catch(b){p=b}else try{p=c[f++]}catch(b){p=b}l.push(p),u.push(h.name||null)}),hl.fromItems(l,u)}parseTransaction(e){const r=Q(e.data,"tx.data"),n=ve(e.value!=null?e.value:0,"tx.value"),s=this.getFunction(H(r.slice(0,4)));if(!s)return null;const i=w(this,Sr).decode(s.inputs,r.slice(4));return new y7(s,s.selector,i,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new p7(r,r.topicHash,this.decodeEventLog(r,e.data,e.topics))}parseError(e){const r=H(e),n=this.getError(st(r,0,4));if(!n)return null;const s=w(this,Sr).decode(n.inputs,st(r,4));return new v7(n,n.selector,s)}static from(e){return e instanceof dc?e:typeof e=="string"?new dc(JSON.parse(e)):typeof e.formatJson=="function"?new dc(e.formatJson()):typeof e.format=="function"?new dc(e.format("json")):new dc(e)}};Js=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Sr=new WeakMap,pi=new WeakSet,Qp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Xs).values())if(i===o.selector)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Xs))o.split("(")[0]===e&&i.push(a);if(r){const o=r.length>0?r[r.length-1]:null;let a=r.length,c=!0;gr.isTyped(o)&&o.type==="overrides"&&(c=!1,a--);for(let l=i.length-1;l>=0;l--){const u=i[l].inputs.length;u!==a&&(!c||u!==a-1)&&i.splice(l,1)}for(let l=i.length-1;l>=0;l--){const u=i[l].inputs;for(let f=0;f=u.length){if(r[f].type==="overrides")continue;i.splice(l,1);break}if(r[f].type!==u[f].baseType){i.splice(l,1);break}}}}if(i.length===1&&r&&r.length!==i[0].inputs.length){const o=r[r.length-1];(o==null||Array.isArray(o)||typeof o!="object")&&i.splice(0,1)}if(i.length===0)return null;if(i.length>1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous function description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Xs).get(Ss.from(e).format());return s||null},Jp=function(e,r,n){if(et(e)){const i=e.toLowerCase();for(const o of w(this,Ys).values())if(i===o.topicHash)return o;return null}if(e.indexOf("(")===-1){const i=[];for(const[o,a]of w(this,Ys))o.split("(")[0]===e&&i.push(a);if(r){for(let o=i.length-1;o>=0;o--)i[o].inputs.length=0;o--){const a=i[o].inputs;for(let c=0;c1&&n){const o=i.map(a=>JSON.stringify(a.format())).join(", ");P(!1,`ambiguous event description (i.e. matches ${o})`,"key",e)}return i[0]}const s=w(this,Ys).get(As.from(e).format());return s||null};let pt=dc;const g7=BigInt(0);function Nu(t){return t??null}function Nt(t){return t==null?null:t.toString()}class qw{constructor(e,r,n){N(this,"gasPrice");N(this,"maxFeePerGas");N(this,"maxPriorityFeePerGas");fe(this,{gasPrice:Nu(e),maxFeePerGas:Nu(r),maxPriorityFeePerGas:Nu(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:r,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:Nt(e),maxFeePerGas:Nt(r),maxPriorityFeePerGas:Nt(n)}}}function Jf(t){const e={};t.to&&(e.to=t.to),t.from&&(e.from=t.from),t.data&&(e.data=H(t.data));const r="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const s of r)!(s in t)||t[s]==null||(e[s]=ve(t[s],`request.${s}`));const n="type,nonce".split(/,/);for(const s of n)!(s in t)||t[s]==null||(e[s]=Pe(t[s],`request.${s}`));return t.accessList&&(e.accessList=vo(t.accessList)),"blockTag"in t&&(e.blockTag=t.blockTag),"enableCcipRead"in t&&(e.enableCcipRead=!!t.enableCcipRead),"customData"in t&&(e.customData=t.customData),"blobVersionedHashes"in t&&t.blobVersionedHashes&&(e.blobVersionedHashes=t.blobVersionedHashes.slice()),"kzg"in t&&(e.kzg=t.kzg),"blobs"in t&&t.blobs&&(e.blobs=t.blobs.map(s=>gi(s)?H(s):Object.assign({},s))),e}var Di;class m7{constructor(e,r){N(this,"provider");N(this,"number");N(this,"hash");N(this,"timestamp");N(this,"parentHash");N(this,"parentBeaconBlockRoot");N(this,"nonce");N(this,"difficulty");N(this,"gasLimit");N(this,"gasUsed");N(this,"stateRoot");N(this,"receiptsRoot");N(this,"blobGasUsed");N(this,"excessBlobGas");N(this,"miner");N(this,"prevRandao");N(this,"extraData");N(this,"baseFeePerGas");j(this,Di);T(this,Di,e.transactions.map(n=>typeof n!="string"?new Yf(n,r):n)),fe(this,{provider:r,hash:Nu(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:Nu(e.prevRandao),extraData:e.extraData,baseFeePerGas:Nu(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return w(this,Di).map(e=>typeof e=="string"?e:e.hash)}get prefetchedTransactions(){const e=w(this,Di).slice();return e.length===0?[]:(z(typeof e[0]=="object","transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:r,extraData:n,gasLimit:s,gasUsed:i,hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,timestamp:p,transactions:b}=this;return{_type:"Block",baseFeePerGas:Nt(e),difficulty:Nt(r),extraData:n,gasLimit:Nt(s),gasUsed:Nt(i),blobGasUsed:Nt(this.blobGasUsed),excessBlobGas:Nt(this.excessBlobGas),hash:o,miner:a,prevRandao:c,nonce:l,number:u,parentHash:f,timestamp:p,parentBeaconBlockRoot:d,stateRoot:h,receiptsRoot:y,transactions:b}}[Symbol.iterator](){let e=0;const r=this.transactions;return{next:()=>enew wd(s,r))));let n=g7;e.effectiveGasPrice!=null?n=e.effectiveGasPrice:e.gasPrice!=null&&(n=e.gasPrice),fe(this,{provider:r,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return w(this,F0)}toJSON(){const{to:e,from:r,contractAddress:n,hash:s,index:i,blockHash:o,blockNumber:a,logsBloom:c,logs:l,status:u,root:f}=this;return{_type:"TransactionReceipt",blockHash:o,blockNumber:a,contractAddress:n,cumulativeGasUsed:Nt(this.cumulativeGasUsed),from:r,gasPrice:Nt(this.gasPrice),blobGasUsed:Nt(this.blobGasUsed),blobGasPrice:Nt(this.blobGasPrice),gasUsed:Nt(this.gasUsed),hash:s,index:i,logs:l,logsBloom:c,root:f,status:u,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e{if(a)return null;const{blockNumber:d,nonce:h}=await Pt({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(h{if(d==null||d.status!==0)return d;z(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:d.to,from:d.from,data:""},receipt:d})},u=await this.provider.getTransactionReceipt(this.hash);if(n===0)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),n===0)return null;return await new Promise((d,h)=>{const y=[],p=()=>{y.forEach(v=>v())};if(y.push(()=>{a=!0}),s>0){const v=setTimeout(()=>{p(),h(ft("wait for transaction timeout","TIMEOUT"))},s);y.push(()=>{clearTimeout(v)})}const b=async v=>{if(await v.confirmations()>=n){p();try{d(l(v))}catch(g){h(g)}}};if(y.push(()=>{this.provider.off(this.hash,b)}),this.provider.on(this.hash,b),i>=0){const v=async()=>{try{await c()}catch(g){if(Ht(g,"TRANSACTION_REPLACED")){p(),h(g);return}}a||this.provider.once("block",v)};y.push(()=>{this.provider.off("block",v)}),this.provider.once("block",v)}})}isMined(){return this.blockHash!=null}isLegacy(){return this.type===0}isBerlin(){return this.type===1}isLondon(){return this.type===2}isCancun(){return this.type===3}removedEvent(){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),b7(this)}reorderedEvent(e){return z(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),z(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),x7(this,e)}replaceableTransaction(e){P(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const r=new $k(this,this.provider);return T(r,Ho,e),r}};Ho=new WeakMap;let Yf=$k;function Nse(t){return{orphan:"drop-block",hash:t.hash,number:t.number}}function x7(t,e){return{orphan:"reorder-transaction",tx:t,other:e}}function b7(t){return{orphan:"drop-transaction",tx:t}}function _se(t){return{orphan:"drop-log",log:{transactionHash:t.transactionHash,blockHash:t.blockHash,blockNumber:t.blockNumber,address:t.address,data:t.data,topics:Object.freeze(t.topics.slice()),index:t.index}}}class Ug extends wd{constructor(r,n,s){super(r,r.provider);N(this,"interface");N(this,"fragment");N(this,"args");const i=n.decodeEventLog(s,r.data,r.topics);fe(this,{args:i,fragment:s,interface:n})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class B5 extends wd{constructor(r,n){super(r,r.provider);N(this,"error");fe(this,{error:n})}}var uf;class w7 extends D5{constructor(r,n,s){super(s,n);j(this,uf);T(this,uf,r)}get logs(){return super.logs.map(r=>{const n=r.topics.length?w(this,uf).getEvent(r.topics[0]):null;if(n)try{return new Ug(r,w(this,uf),n)}catch(s){return new B5(r,s)}return r})}}uf=new WeakMap;var U0;class $g extends Yf{constructor(r,n,s){super(s,n);j(this,U0);T(this,U0,r)}async wait(r,n){const s=await super.wait(r,n);return s==null?null:new w7(w(this,U0),this.provider,s)}}U0=new WeakMap;class L5 extends d5{constructor(r,n,s,i){super(r,n,s);N(this,"log");fe(this,{log:i})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class C7 extends L5{constructor(e,r,n,s,i){super(e,r,n,new Ug(i,e.interface,s));const o=e.interface.decodeEventLog(s,this.log.data,this.log.topics);fe(this,{args:o,fragment:s})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const $8=BigInt(0);function E7(t){return t&&typeof t.call=="function"}function k7(t){return t&&typeof t.estimateGas=="function"}function Wg(t){return t&&typeof t.resolveName=="function"}function A7(t){return t&&typeof t.sendTransaction=="function"}function S7(t){if(t!=null){if(Wg(t))return t;if(t.provider)return t.provider}}var $0;class Mse{constructor(e,r,n){j(this,$0);N(this,"fragment");if(fe(this,{fragment:r}),r.inputs.lengthn[c]==null?null:a.walkAsync(n[c],(u,f)=>u==="address"?Array.isArray(f)?Promise.all(f.map(d=>sr(d,i))):sr(f,i):f)));return e.interface.encodeFilterTopics(r,o)}())}getTopicFilter(){return w(this,$0)}}$0=new WeakMap;function gl(t,e){return t==null?null:typeof t[e]=="function"?t:t.provider&&typeof t.provider[e]=="function"?t.provider:null}function xc(t){return t==null?null:t.provider||null}async function j5(t,e){const r=gr.dereference(t,"overrides");P(typeof r=="object","invalid overrides parameter","overrides",t);const n=Jf(r);return P(n.to==null||(e||[]).indexOf("to")>=0,"cannot override to","overrides.to",n.to),P(n.data==null||(e||[]).indexOf("data")>=0,"cannot override data","overrides.data",n.data),n.from&&(n.from=n.from),n}async function T7(t,e,r){const n=gl(t,"resolveName"),s=Wg(n)?n:null;return await Promise.all(e.map((i,o)=>i.walkAsync(r[o],(a,c)=>(c=gr.dereference(c,a),a==="address"?sr(c,s):c))))}function Dse(t){const e=async function(o){const a=await j5(o,["data"]);a.to=await t.getAddress(),a.from&&(a.from=await sr(a.from,S7(t.runner)));const c=t.interface,l=ve(a.value||$8,"overrides.value")===$8,u=(a.data||"0x")==="0x";c.fallback&&!c.fallback.payable&&c.receive&&!u&&!l&&P(!1,"cannot send data to receive or send value to non-payable fallback","overrides",o),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data);const f=c.receive||c.fallback&&c.fallback.payable;return P(f||l,"cannot send value to non-payable fallback","overrides.value",a.value),P(c.fallback||u,"cannot send data to receive-only contract","overrides.data",a.data),a},r=async function(o){const a=gl(t.runner,"call");z(E7(a),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const c=await e(o);try{return await a.call(c)}catch(l){throw Pg(l)&&l.data?t.interface.makeError(l.data,c):l}},n=async function(o){const a=t.runner;z(A7(a),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const c=await a.sendTransaction(await e(o)),l=xc(t.runner);return new $g(t.interface,l,c)},s=async function(o){const a=gl(t.runner,"estimateGas");return z(k7(a),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await a.estimateGas(await e(o))},i=async o=>await n(o);return fe(i,{_contract:t,estimateGas:s,populateTransaction:e,send:n,staticCall:r}),i}function Bse(t,e){const r=function(...l){const u=t.interface.getFunction(e,l);return z(u,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:l}}),u},n=async function(...l){const u=r(...l);let f={};if(u.inputs.length+1===l.length&&(f=await j5(l.pop()),f.from&&(f.from=await sr(f.from,S7(t.runner)))),u.inputs.length!==l.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const d=await T7(t.runner,u.inputs,l);return Object.assign({},f,await Pt({to:t.getAddress(),data:t.interface.encodeFunctionData(u,d)}))},s=async function(...l){const u=await a(...l);return u.length===1?u[0]:u},i=async function(...l){const u=t.runner;z(A7(u),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const f=await u.sendTransaction(await n(...l)),d=xc(t.runner);return new $g(t.interface,d,f)},o=async function(...l){const u=gl(t.runner,"estimateGas");return z(k7(u),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await u.estimateGas(await n(...l))},a=async function(...l){const u=gl(t.runner,"call");z(E7(u),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const f=await n(...l);let d="0x";try{d=await u.call(f)}catch(y){throw Pg(y)&&y.data?t.interface.makeError(y.data,f):y}const h=r(...l);return t.interface.decodeFunctionResult(h,d)},c=async(...l)=>r(...l).constant?await s(...l):await i(...l);return fe(c,{name:t.interface.getFunctionName(e),_contract:t,_key:e,getFragment:r,estimateGas:o,populateTransaction:n,send:i,staticCall:s,staticCallResult:a}),Object.defineProperty(c,"fragment",{configurable:!1,enumerable:!0,get:()=>{const l=t.interface.getFunction(e);return z(l,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),l}}),c}function Lse(t,e){const r=function(...s){const i=t.interface.getEvent(e,s);return z(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e,args:s}}),i},n=function(...s){return new Mse(t,r(...s),s)};return fe(n,{name:t.interface.getEventName(e),_contract:t,_key:e,getFragment:r}),Object.defineProperty(n,"fragment",{configurable:!1,enumerable:!0,get:()=>{const s=t.interface.getEvent(e);return z(s,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:e}}),s}}),n}const lv=Symbol.for("_ethersInternal_contract"),P7=new WeakMap;function jse(t,e){P7.set(t[lv],e)}function mn(t){return P7.get(t[lv])}function Fse(t){return t&&typeof t=="object"&&"getTopicFilter"in t&&typeof t.getTopicFilter=="function"&&t.fragment}async function F5(t,e){let r,n=null;if(Array.isArray(e)){const i=function(o){if(et(o,32))return o;const a=t.interface.getEvent(o);return P(a,"unknown fragment","name",o),a.topicHash};r=e.map(o=>o==null?null:Array.isArray(o)?o.map(i):i(o))}else e==="*"?r=[null]:typeof e=="string"?et(e,32)?r=[e]:(n=t.interface.getEvent(e),P(n,"unknown fragment","event",e),r=[n.topicHash]):Fse(e)?r=await e.getTopicFilter():"fragment"in e?(n=e.fragment,r=[n.topicHash]):P(!1,"unknown event name","event",e);r=r.map(i=>{if(i==null)return null;if(Array.isArray(i)){const o=Array.from(new Set(i.map(a=>a.toLowerCase())).values());return o.length===1?o[0]:(o.sort(),o)}return i.toLowerCase()});const s=r.map(i=>i==null?"null":Array.isArray(i)?i.join("|"):i).join("&");return{fragment:n,tag:s,topics:r}}async function th(t,e){const{subs:r}=mn(t);return r.get((await F5(t,e)).tag)||null}async function W8(t,e,r){const n=xc(t.runner);z(n,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:e});const{fragment:s,tag:i,topics:o}=await F5(t,r),{addr:a,subs:c}=mn(t);let l=c.get(i);if(!l){const f={address:a||t,topics:o},d=b=>{let v=s;if(v==null)try{v=t.interface.getEvent(b.topics[0])}catch{}if(v){const g=v,x=s?t.interface.decodeEventLog(s,b.data,b.topics):[];Qw(t,r,x,k=>new C7(t,k,r,g,b))}else Qw(t,r,[],g=>new L5(t,g,r,b))};let h=[];l={tag:i,listeners:[],start:()=>{h.length||h.push(n.on(f,d))},stop:async()=>{if(h.length==0)return;let b=h;h=[],await Promise.all(b),n.off(f,d)}},c.set(i,l)}return l}let Kw=Promise.resolve();async function Use(t,e,r,n){await Kw;const s=await th(t,e);if(!s)return!1;const i=s.listeners.length;return s.listeners=s.listeners.filter(({listener:o,once:a})=>{const c=Array.from(r);n&&c.push(n(a?null:o));try{o.call(t,...c)}catch{}return!a}),s.listeners.length===0&&(s.stop(),mn(t).subs.delete(s.tag)),i>0}async function Qw(t,e,r,n){try{await Kw}catch{}const s=Use(t,e,r,n);return Kw=s,await s}const yp=["then"];var _3;_3=lv;const Fh=class Fh{constructor(e,r,n,s){N(this,"target");N(this,"interface");N(this,"runner");N(this,"filters");N(this,_3);N(this,"fallback");P(typeof e=="string"||T5(e),"invalid value for Contract target","target",e),n==null&&(n=null);const i=pt.from(r);fe(this,{target:e,runner:n,interface:i}),Object.defineProperty(this,lv,{value:{}});let o,a=null,c=null;if(s){const f=xc(n);c=new $g(this.interface,f,s)}let l=new Map;if(typeof e=="string")if(et(e))a=e,o=Promise.resolve(e);else{const f=gl(n,"resolveName");if(!Wg(f))throw ft("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});o=f.resolveName(e).then(d=>{if(d==null)throw ft("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return mn(this).addr=d,d})}else o=e.getAddress().then(f=>{if(f==null)throw new Error("TODO");return mn(this).addr=f,f});jse(this,{addrPromise:o,addr:a,deployTx:c,subs:l});const u=new Proxy({},{get:(f,d,h)=>{if(typeof d=="symbol"||yp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return this.getEvent(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>yp.indexOf(d)>=0?Reflect.has(f,d):Reflect.has(f,d)||this.interface.hasEvent(String(d))});return fe(this,{filters:u}),fe(this,{fallback:i.receive||i.fallback?Dse(this):null}),new Proxy(this,{get:(f,d,h)=>{if(typeof d=="symbol"||d in f||yp.indexOf(d)>=0)return Reflect.get(f,d,h);try{return f.getFunction(d)}catch(y){if(!Ht(y,"INVALID_ARGUMENT")||y.argument!=="key")throw y}},has:(f,d)=>typeof d=="symbol"||d in f||yp.indexOf(d)>=0?Reflect.has(f,d):f.interface.hasFunction(d)})}connect(e){return new Fh(this.target,this.interface,e)}attach(e){return new Fh(e,this.interface,this.runner)}async getAddress(){return await mn(this).addrPromise}async getDeployedCode(){const e=xc(this.runner);z(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const r=await e.getCode(await this.getAddress());return r==="0x"?null:r}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(await this.getDeployedCode()!=null)return this;const n=xc(this.runner);return z(n!=null,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise((s,i)=>{const o=async()=>{try{if(await this.getDeployedCode()!=null)return s(this);n.once("block",o)}catch(a){i(a)}};o()})}deploymentTransaction(){return mn(this).deployTx}getFunction(e){return typeof e!="string"&&(e=e.format()),Bse(this,e)}getEvent(e){return typeof e!="string"&&(e=e.format()),Lse(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,r,n){r==null&&(r=0),n==null&&(n="latest");const{addr:s,addrPromise:i}=mn(this),o=s||await i,{fragment:a,topics:c}=await F5(this,e),l={address:o,topics:c,fromBlock:r,toBlock:n},u=xc(this.runner);return z(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map(f=>{let d=a;if(d==null)try{d=this.interface.getEvent(f.topics[0])}catch{}if(d)try{return new Ug(f,this.interface,d)}catch(h){return new B5(f,h)}return new wd(f,u)})}async on(e,r){const n=await W8(this,"on",e);return n.listeners.push({listener:r,once:!1}),n.start(),this}async once(e,r){const n=await W8(this,"once",e);return n.listeners.push({listener:r,once:!0}),n.start(),this}async emit(e,...r){return await Qw(this,e,r,null)}async listenerCount(e){if(e){const s=await th(this,e);return s?s.listeners.length:0}const{subs:r}=mn(this);let n=0;for(const{listeners:s}of r.values())n+=s.length;return n}async listeners(e){if(e){const s=await th(this,e);return s?s.listeners.map(({listener:i})=>i):[]}const{subs:r}=mn(this);let n=[];for(const{listeners:s}of r.values())n=n.concat(s.map(({listener:i})=>i));return n}async off(e,r){const n=await th(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(r==null||n.listeners.length===0)&&(n.stop(),mn(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const r=await th(this,e);if(!r)return this;r.stop(),mn(this).subs.delete(r.tag)}else{const{subs:r}=mn(this);for(const{tag:n,stop:s}of r.values())s(),r.delete(n)}return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return await this.off(e,r)}static buildClass(e){class r extends Fh{constructor(s,i=null){super(s,e,i)}}return r}static from(e,r,n){return n==null&&(n=null),new this(e,r,n)}};let Xf=Fh;function $se(){return Xf}class dn extends $se(){}class U5{constructor(e,r,n){N(this,"interface");N(this,"bytecode");N(this,"runner");const s=pt.from(e);r instanceof Uint8Array||(typeof r=="object"&&(r=r.object),r.startsWith("0x")||(r="0x"+r)),r=H(Q(r)),fe(this,{bytecode:r,interface:s,runner:n||null})}attach(e){return new Xf(e,this.interface,this.runner)}async getDeployTransaction(...e){let r={};const n=this.interface.deploy;if(n.inputs.length+1===e.length&&(r=await j5(e.pop())),n.inputs.length!==e.length)throw new Error("incorrect number of arguments to constructor");const s=await T7(this.runner,n.inputs,e),i=Le([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},r,{data:i})}async deploy(...e){const r=await this.getDeployTransaction(...e);z(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await this.runner.sendTransaction(r),s=S5(n);return new Xf(s,this.interface,this.runner,n)}connect(e){return new U5(this.interface,this.bytecode,e)}static fromSolidity(e,r){P(e!=null,"bad compiler output","output",e),typeof e=="string"&&(e=JSON.parse(e));const n=e.abi;let s="";return e.bytecode?s=e.bytecode:e.evm&&e.evm.bytecode&&(s=e.evm.bytecode),new this(n,s,r)}}function Tx(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):P(!1,"unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}class I7{constructor(e){N(this,"name");fe(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,r){throw new Error("unsupported coin")}async decodeAddress(e,r){throw new Error("unsupported coin")}}const O7=new RegExp("^(ipfs)://(.*)$","i"),V8=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),O7,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];var zo,Mc,Go,Kl,Mv,R7;const gu=class gu{constructor(e,r,n){j(this,Go);N(this,"provider");N(this,"address");N(this,"name");j(this,zo);j(this,Mc);fe(this,{provider:e,address:r,name:n}),T(this,zo,null),T(this,Mc,new dn(r,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e))}async supportsWildcard(){return w(this,zo)==null&&T(this,zo,(async()=>{try{return await w(this,Mc).supportsInterface("0x9061b923")}catch(e){if(Ht(e,"CALL_EXCEPTION"))return!1;throw T(this,zo,null),e}})()),await w(this,zo)}async getAddress(e){if(e==null&&(e=60),e===60)try{const i=await Y(this,Go,Kl).call(this,"addr(bytes32)");return i==null||i===mi?null:i}catch(i){if(Ht(i,"CALL_EXCEPTION"))return null;throw i}if(e>=0&&e<2147483648){let i=e+2147483648;const o=await Y(this,Go,Kl).call(this,"addr(bytes32,uint)",[i]);if(et(o,20))return Te(o)}let r=null;for(const i of this.provider.plugins)if(i instanceof I7&&i.supportsCoinType(e)){r=i;break}if(r==null)return null;const n=await Y(this,Go,Kl).call(this,"addr(bytes32,uint)",[e]);if(n==null||n==="0x")return null;const s=await r.decodeAddress(e,n);if(s!=null)return s;z(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const r=await Y(this,Go,Kl).call(this,"text(bytes32,string)",[e]);return r==null||r==="0x"?null:r}async getContentHash(){const e=await Y(this,Go,Kl).call(this,"contenthash(bytes32)");if(e==null||e==="0x")return null;const r=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(r){const s=r[1]==="e3010170"?"ipfs":"ipns",i=parseInt(r[4],16);if(r[5].length===i*2)return`${s}://${f5("0x"+r[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&n[1].length===64)return`bzz://${n[1]}`;z(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const r=await this.getText("avatar");if(r==null)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:r});for(let n=0;n{if(e&&r==null)return null;if(!Array.isArray(r))throw new Error("not an array");return r.map(n=>t(n))}}function w1(t,e){return r=>{const n={};for(const s in t){let i=s;if(e&&s in e&&!(i in r)){for(const o of e[s])if(o in r){i=o;break}}try{const o=t[s](r[i]);o!==void 0&&(n[s]=o)}catch(o){const a=o instanceof Error?o.message:"not-an-error";z(!1,`invalid value for value.${s} (${a})`,"BAD_DATA",{value:r})}}return n}}function Wse(t){switch(t){case!0:case"true":return!0;case!1:case"false":return!1}P(!1,`invalid boolean; ${JSON.stringify(t)}`,"value",t)}function Zf(t){return P(et(t,!0),"invalid data","value",t),t}function hr(t){return P(et(t,32),"invalid hash","value",t),t}const Vse=w1({address:Te,blockHash:hr,blockNumber:Pe,data:Zf,index:Pe,removed:Ve(Wse,!1),topics:Vg(hr),transactionHash:hr,transactionIndex:Pe},{index:["logIndex"]});function Hse(t){return Vse(t)}const zse=w1({hash:Ve(hr),parentHash:hr,parentBeaconBlockRoot:Ve(hr,null),number:Pe,timestamp:Pe,nonce:Ve(Zf),difficulty:ve,gasLimit:ve,gasUsed:ve,stateRoot:Ve(hr,null),receiptsRoot:Ve(hr,null),blobGasUsed:Ve(ve,null),excessBlobGas:Ve(ve,null),miner:Ve(Te),prevRandao:Ve(hr,null),extraData:Zf,baseFeePerGas:Ve(ve)},{prevRandao:["mixHash"]});function Gse(t){const e=zse(t);return e.transactions=t.transactions.map(r=>typeof r=="string"?r:N7(r)),e}const qse=w1({transactionIndex:Pe,blockNumber:Pe,transactionHash:hr,address:Te,topics:Vg(hr),data:Zf,index:Pe,blockHash:hr},{index:["logIndex"]});function Kse(t){return qse(t)}const Qse=w1({to:Ve(Te,null),from:Ve(Te,null),contractAddress:Ve(Te,null),index:Pe,root:Ve(H),gasUsed:ve,blobGasUsed:Ve(ve,null),logsBloom:Ve(Zf),blockHash:hr,hash:hr,logs:Vg(Kse),blockNumber:Pe,cumulativeGasUsed:ve,effectiveGasPrice:Ve(ve),blobGasPrice:Ve(ve,null),status:Ve(Pe),type:Ve(Pe,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function Jse(t){return Qse(t)}function N7(t){t.to&&ve(t.to)===H8&&(t.to="0x0000000000000000000000000000000000000000");const e=w1({hash:hr,index:Ve(Pe,void 0),type:r=>r==="0x"||r==null?0:Pe(r),accessList:Ve(vo,null),blobVersionedHashes:Ve(Vg(hr,!0),null),blockHash:Ve(hr,null),blockNumber:Ve(Pe,null),transactionIndex:Ve(Pe,null),from:Te,gasPrice:Ve(ve),maxPriorityFeePerGas:Ve(ve),maxFeePerGas:Ve(ve),maxFeePerBlobGas:Ve(ve,null),gasLimit:ve,to:Ve(Te,null),value:ve,nonce:Pe,data:Zf,creates:Ve(Te,null),chainId:Ve(ve,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(t);if(e.to==null&&e.creates==null&&(e.creates=S5(e)),(t.type===1||t.type===2)&&t.accessList==null&&(e.accessList=[]),t.signature?e.signature=os.from(t.signature):e.signature=os.from(t),e.chainId==null){const r=e.signature.legacyChainId;r!=null&&(e.chainId=r)}return e.blockHash&&ve(e.blockHash)===H8&&(e.blockHash=null),e}const Yse="0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";class qa{constructor(e){N(this,"name");fe(this,{name:e})}clone(){return new qa(this.name)}}class C1 extends qa{constructor(r,n){r==null&&(r=0);super(`org.ethers.network.plugins.GasCost#${r||0}`);N(this,"effectiveBlock");N(this,"txBase");N(this,"txCreate");N(this,"txDataZero");N(this,"txDataNonzero");N(this,"txAccessListStorageKey");N(this,"txAccessListAddress");const s={effectiveBlock:r};function i(o,a){let c=(n||{})[o];c==null&&(c=a),P(typeof c=="number",`invalud value for ${o}`,"costs",n),s[o]=c}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),fe(this,s)}clone(){return new C1(this.effectiveBlock,this)}}class E1 extends qa{constructor(r,n){super("org.ethers.plugins.network.Ens");N(this,"address");N(this,"targetNetwork");fe(this,{address:r||Yse,targetNetwork:n??1})}clone(){return new E1(this.address,this.targetNetwork)}}var Dc;const Wk=class Wk extends qa{constructor(r){super("org.ethers.plugins.network.FeeData");j(this,Dc);T(this,Dc,r)}get feeDataFunc(){return w(this,Dc)}async getFeeData(r){return await w(this,Dc).call(this,r)}clone(){return new Wk(w(this,Dc))}};Dc=new WeakMap;let Jw=Wk;var W0,V0;class _7 extends qa{constructor(r,n){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin");j(this,W0);j(this,V0);T(this,W0,r),T(this,V0,n)}get url(){return w(this,W0)}get processFunc(){return w(this,V0)}clone(){return this}}W0=new WeakMap,V0=new WeakMap;const Px=new Map;var ff,df,qo;const mu=class mu{constructor(e,r){j(this,ff);j(this,df);j(this,qo);T(this,ff,e),T(this,df,ve(r)),T(this,qo,new Map)}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return w(this,ff)}set name(e){T(this,ff,e)}get chainId(){return w(this,df)}set chainId(e){T(this,df,ve(e,"chainId"))}matches(e){if(e==null)return!1;if(typeof e=="string"){try{return this.chainId===ve(e)}catch{}return this.name===e}if(typeof e=="number"||typeof e=="bigint"){try{return this.chainId===ve(e)}catch{}return!1}if(typeof e=="object"){if(e.chainId!=null){try{return this.chainId===ve(e.chainId)}catch{}return!1}return e.name!=null?this.name===e.name:!1}return!1}get plugins(){return Array.from(w(this,qo).values())}attachPlugin(e){if(w(this,qo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,qo).set(e.name,e.clone()),this}getPlugin(e){return w(this,qo).get(e)||null}getPlugins(e){return this.plugins.filter(r=>r.name.split("#")[0]===e)}clone(){const e=new mu(this.name,this.chainId);return this.plugins.forEach(r=>{e.attachPlugin(r.clone())}),e}computeIntrinsicGas(e){const r=this.getPlugin("org.ethers.plugins.network.GasCost")||new C1;let n=r.txBase;if(e.to==null&&(n+=r.txCreate),e.data)for(let s=2;s9){let s=BigInt(n[1].substring(0,9));n[1].substring(9).match(/^0+$/)||s++,n[1]=s.toString()}return BigInt(n[0]+n[1])}function G8(t){return new _7(t,async(e,r,n)=>{n.setHeader("User-Agent","ethers");let s;try{const[i,o]=await Promise.all([n.send(),e()]);s=i;const a=s.bodyJson.standard;return{gasPrice:o.gasPrice,maxFeePerGas:z8(a.maxFee,9),maxPriorityFeePerGas:z8(a.maxPriorityFee,9)}}catch(i){z(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:s,error:i})}})}let q8=!1;function Xse(){if(q8)return;q8=!0;function t(e,r,n){const s=function(){const i=new ot(e,r);return n.ensNetwork!=null&&i.attachPlugin(new E1(null,n.ensNetwork)),i.attachPlugin(new C1),(n.plugins||[]).forEach(o=>{i.attachPlugin(o)}),i};ot.register(e,s),ot.register(r,s),n.altNames&&n.altNames.forEach(i=>{ot.register(i,s)})}t("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),t("ropsten",3,{ensNetwork:3}),t("rinkeby",4,{ensNetwork:4}),t("goerli",5,{ensNetwork:5}),t("kovan",42,{ensNetwork:42}),t("sepolia",11155111,{ensNetwork:11155111}),t("holesky",17e3,{ensNetwork:17e3}),t("classic",61,{}),t("classicKotti",6,{}),t("arbitrum",42161,{ensNetwork:1}),t("arbitrum-goerli",421613,{}),t("arbitrum-sepolia",421614,{}),t("base",8453,{ensNetwork:1}),t("base-goerli",84531,{}),t("base-sepolia",84532,{}),t("bnb",56,{ensNetwork:1}),t("bnbt",97,{}),t("linea",59144,{ensNetwork:1}),t("linea-goerli",59140,{}),t("linea-sepolia",59141,{}),t("matic",137,{ensNetwork:1,plugins:[G8("https://gasstation.polygon.technology/v2")]}),t("matic-amoy",80002,{}),t("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[G8("https://gasstation-testnet.polygon.technology/v2")]}),t("optimism",10,{ensNetwork:1,plugins:[]}),t("optimism-goerli",420,{}),t("optimism-sepolia",11155420,{}),t("xdai",100,{ensNetwork:1})}function Yw(t){return JSON.parse(JSON.stringify(t))}var Bi,Vn,Ko,Zs,hf,Yp;class Zse{constructor(e){j(this,hf);j(this,Bi);j(this,Vn);j(this,Ko);j(this,Zs);T(this,Bi,e),T(this,Vn,null),T(this,Ko,4e3),T(this,Zs,-2)}get pollingInterval(){return w(this,Ko)}set pollingInterval(e){T(this,Ko,e)}start(){w(this,Vn)||(T(this,Vn,w(this,Bi)._setTimeout(Y(this,hf,Yp).bind(this),w(this,Ko))),Y(this,hf,Yp).call(this))}stop(){w(this,Vn)&&(w(this,Bi)._clearTimeout(w(this,Vn)),T(this,Vn,null))}pause(e){this.stop(),e&&T(this,Zs,-2)}resume(){this.start()}}Bi=new WeakMap,Vn=new WeakMap,Ko=new WeakMap,Zs=new WeakMap,hf=new WeakSet,Yp=async function(){try{const e=await w(this,Bi).getBlockNumber();if(w(this,Zs)===-2){T(this,Zs,e);return}if(e!==w(this,Zs)){for(let r=w(this,Zs)+1;r<=e;r++){if(w(this,Vn)==null)return;await w(this,Bi).emit("block",r)}T(this,Zs,e)}}catch{}w(this,Vn)!=null&&T(this,Vn,w(this,Bi)._setTimeout(Y(this,hf,Yp).bind(this),w(this,Ko)))};var Bc,Lc,Qo;class $5{constructor(e){j(this,Bc);j(this,Lc);j(this,Qo);T(this,Bc,e),T(this,Qo,!1),T(this,Lc,r=>{this._poll(r,w(this,Bc))})}async _poll(e,r){throw new Error("sub-classes must override this")}start(){w(this,Qo)||(T(this,Qo,!0),w(this,Lc).call(this,-2),w(this,Bc).on("block",w(this,Lc)))}stop(){w(this,Qo)&&(T(this,Qo,!1),w(this,Bc).off("block",w(this,Lc)))}pause(e){this.stop()}resume(){this.start()}}Bc=new WeakMap,Lc=new WeakMap,Qo=new WeakMap;var pf,Li;class eie extends $5{constructor(r,n){super(r);j(this,pf);j(this,Li);T(this,pf,n),T(this,Li,-2)}pause(r){r&&T(this,Li,-2),super.pause(r)}async _poll(r,n){const s=await n.getBlock(w(this,pf));s!=null&&(w(this,Li)===-2?T(this,Li,s.number):s.number>w(this,Li)&&(n.emit(w(this,pf),s.number),T(this,Li,s.number)))}}pf=new WeakMap,Li=new WeakMap;var Dv;class tie extends $5{constructor(r,n){super(r);j(this,Dv);T(this,Dv,Yw(n))}async _poll(r,n){throw new Error("@TODO")}}Dv=new WeakMap;var yf;class rie extends $5{constructor(r,n){super(r);j(this,yf);T(this,yf,n)}async _poll(r,n){const s=await n.getTransactionReceipt(w(this,yf));s&&n.emit(w(this,yf),s)}}yf=new WeakMap;var ji,vf,gf,Jo,Hn,Bv,M7;class W5{constructor(e,r){j(this,Bv);j(this,ji);j(this,vf);j(this,gf);j(this,Jo);j(this,Hn);T(this,ji,e),T(this,vf,Yw(r)),T(this,gf,Y(this,Bv,M7).bind(this)),T(this,Jo,!1),T(this,Hn,-2)}start(){w(this,Jo)||(T(this,Jo,!0),w(this,Hn)===-2&&w(this,ji).getBlockNumber().then(e=>{T(this,Hn,e)}),w(this,ji).on("block",w(this,gf)))}stop(){w(this,Jo)&&(T(this,Jo,!1),w(this,ji).off("block",w(this,gf)))}pause(e){this.stop(),e&&T(this,Hn,-2)}resume(){this.start()}}ji=new WeakMap,vf=new WeakMap,gf=new WeakMap,Jo=new WeakMap,Hn=new WeakMap,Bv=new WeakSet,M7=async function(e){if(w(this,Hn)===-2)return;const r=Yw(w(this,vf));r.fromBlock=w(this,Hn)+1,r.toBlock=e;const n=await w(this,ji).getLogs(r);if(n.length===0){w(this,Hn){if(n==null)return"null";if(typeof n=="bigint")return`bigint:${n.toString()}`;if(typeof n=="string")return n.toLowerCase();if(typeof n=="object"&&!Array.isArray(n)){const s=Object.keys(n);return s.sort(),s.reduce((i,o)=>(i[o]=n[o],i),{})}return n})}class C0{constructor(e){N(this,"name");fe(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function iie(t){return JSON.parse(JSON.stringify(t))}function Xw(t){return t=Array.from(new Set(t).values()),t.sort(),t}async function Ix(t,e){if(t==null)throw new Error("invalid event");if(Array.isArray(t)&&(t={topics:t}),typeof t=="string")switch(t){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:t,tag:t}}if(et(t,32)){const r=t.toLowerCase();return{type:"transaction",tag:Xp("tx",{hash:r}),hash:r}}if(t.orphan){const r=t;return{type:"orphan",tag:Xp("orphan",r),filter:iie(r)}}if(t.address||t.topics){const r=t,n={topics:(r.topics||[]).map(s=>s==null?null:Array.isArray(s)?Xw(s.map(i=>i.toLowerCase())):s.toLowerCase())};if(r.address){const s=[],i=[],o=a=>{et(a)?s.push(a):i.push((async()=>{s.push(await sr(a,e))})())};Array.isArray(r.address)?r.address.forEach(o):o(r.address),i.length&&await Promise.all(i),n.address=Xw(s.map(a=>a.toLowerCase()))}return{filter:n,tag:Xp("event",n),type:"event"}}P(!1,"unknown ProviderEvent","event",t)}function Ox(){return new Date().getTime()}const oie={cacheTimeout:250,pollingInterval:4e3};var Tr,Yo,Pr,mf,Cn,jc,Xo,Fi,H0,zn,xf,bf,Be,gn,Zw,e2,rh,t2,nh,Zp;class co{constructor(e,r){j(this,Be);j(this,Tr);j(this,Yo);j(this,Pr);j(this,mf);j(this,Cn);j(this,jc);j(this,Xo);j(this,Fi);j(this,H0);j(this,zn);j(this,xf);j(this,bf);if(T(this,bf,Object.assign({},oie,r||{})),e==="any")T(this,jc,!0),T(this,Cn,null);else if(e){const n=ot.from(e);T(this,jc,!1),T(this,Cn,Promise.resolve(n)),setTimeout(()=>{this.emit("network",n,null)},0)}else T(this,jc,!1),T(this,Cn,null);T(this,Fi,-1),T(this,Xo,new Map),T(this,Tr,new Map),T(this,Yo,new Map),T(this,Pr,null),T(this,mf,!1),T(this,H0,1),T(this,zn,new Map),T(this,xf,!1)}get pollingInterval(){return w(this,bf).pollingInterval}get provider(){return this}get plugins(){return Array.from(w(this,Yo).values())}attachPlugin(e){if(w(this,Yo).get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return w(this,Yo).set(e.name,e.connect(this)),this}getPlugin(e){return w(this,Yo).get(e)||null}get disableCcipRead(){return w(this,xf)}set disableCcipRead(e){T(this,xf,!!e)}async ccipReadFetch(e,r,n){if(this.disableCcipRead||n.length===0||e.to==null)return null;const s=e.to.toLowerCase(),i=r.toLowerCase(),o=[];for(let a=0;a=500,`response not found during CCIP fetch: ${f}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:c,errorMessage:f}}),o.push(f)}z(!1,`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:o}})}_wrapBlock(e,r){return new m7(Gse(e),this)}_wrapLog(e,r){return new wd(Hse(e),this)}_wrapTransactionReceipt(e,r){return new D5(Jse(e),this)}_wrapTransactionResponse(e,r){return new Yf(N7(e),this)}_detectNetwork(){z(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){z(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=Pe(await Y(this,Be,gn).call(this,{method:"getBlockNumber"}),"%response");return w(this,Fi)>=0&&T(this,Fi,e),e}_getAddress(e){return sr(e,this)}_getBlockTag(e){if(e==null)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}if(et(e))return et(e,32)?e:pr(e);if(typeof e=="bigint"&&(e=Pe(e,"blockTag")),typeof e=="number")return e>=0?pr(e):w(this,Fi)>=0?pr(w(this,Fi)+e):this.getBlockNumber().then(r=>pr(r+e));P(!1,"invalid blockTag","blockTag",e)}_getFilter(e){const r=(e.topics||[]).map(c=>c==null?null:Array.isArray(c)?Xw(c.map(l=>l.toLowerCase())):c.toLowerCase()),n="blockHash"in e?e.blockHash:void 0,s=(c,l,u)=>{let f;switch(c.length){case 0:break;case 1:f=c[0];break;default:c.sort(),f=c}if(n&&(l!=null||u!=null))throw new Error("invalid filter");const d={};return f&&(d.address=f),r.length&&(d.topics=r),l&&(d.fromBlock=l),u&&(d.toBlock=u),n&&(d.blockHash=n),d};let i=[];if(e.address)if(Array.isArray(e.address))for(const c of e.address)i.push(this._getAddress(c));else i.push(this._getAddress(e.address));let o;"fromBlock"in e&&(o=this._getBlockTag(e.fromBlock));let a;return"toBlock"in e&&(a=this._getBlockTag(e.toBlock)),i.filter(c=>typeof c!="string").length||o!=null&&typeof o!="string"||a!=null&&typeof a!="string"?Promise.all([Promise.all(i),o,a]).then(c=>s(c[0],c[1],c[2])):s(i,o,a)}_getTransactionRequest(e){const r=Jf(e),n=[];if(["to","from"].forEach(s=>{if(r[s]==null)return;const i=sr(r[s],this);vp(i)?n.push(async function(){r[s]=await i}()):r[s]=i}),r.blockTag!=null){const s=this._getBlockTag(r.blockTag);vp(s)?n.push(async function(){r.blockTag=await s}()):r.blockTag=s}return n.length?async function(){return await Promise.all(n),r}():r}async getNetwork(){if(w(this,Cn)==null){const s=(async()=>{try{const i=await this._detectNetwork();return this.emit("network",i,null),i}catch(i){throw w(this,Cn)===s&&T(this,Cn,null),i}})();return T(this,Cn,s),(await s).clone()}const e=w(this,Cn),[r,n]=await Promise.all([e,this._detectNetwork()]);return r.chainId!==n.chainId&&(w(this,jc)?(this.emit("network",n,r),w(this,Cn)===e&&T(this,Cn,Promise.resolve(n))):z(!1,`network changed: ${r.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),r.clone()}async getFeeData(){const e=await this.getNetwork(),r=async()=>{const{_block:s,gasPrice:i,priorityFee:o}=await Pt({_block:Y(this,Be,t2).call(this,"latest",!1),gasPrice:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getGasPrice"});return ve(u,"%response")}catch{}return null})(),priorityFee:(async()=>{try{const u=await Y(this,Be,gn).call(this,{method:"getPriorityFee"});return ve(u,"%response")}catch{}return null})()});let a=null,c=null;const l=this._wrapBlock(s,e);return l&&l.baseFeePerGas&&(c=o??BigInt("1000000000"),a=l.baseFeePerGas*nie+c),new qw(i,a,c)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const s=new qt(n.url),i=await n.processFunc(r,this,s);return new qw(i.gasPrice,i.maxFeePerGas,i.maxPriorityFeePerGas)}return await r()}async estimateGas(e){let r=this._getTransactionRequest(e);return vp(r)&&(r=await r),ve(await Y(this,Be,gn).call(this,{method:"estimateGas",transaction:r}),"%response")}async call(e){const{tx:r,blockTag:n}=await Pt({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await Y(this,Be,e2).call(this,Y(this,Be,Zw).call(this,r,n,e.enableCcipRead?0:-1))}async getBalance(e,r){return ve(await Y(this,Be,rh).call(this,{method:"getBalance"},e,r),"%response")}async getTransactionCount(e,r){return Pe(await Y(this,Be,rh).call(this,{method:"getTransactionCount"},e,r),"%response")}async getCode(e,r){return H(await Y(this,Be,rh).call(this,{method:"getCode"},e,r))}async getStorage(e,r,n){const s=ve(r,"position");return H(await Y(this,Be,rh).call(this,{method:"getStorage",position:s},e,n))}async broadcastTransaction(e){const{blockNumber:r,hash:n,network:s}=await Pt({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),i=yl.from(e);if(i.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(i,s).replaceableTransaction(r)}async getBlock(e,r){const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,t2).call(this,e,!!r)});return s==null?null:this._wrapBlock(s,n)}async getTransaction(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransaction",hash:e})});return n==null?null:this._wrapTransactionResponse(n,r)}async getTransactionReceipt(e){const{network:r,params:n}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getTransactionReceipt",hash:e})});if(n==null)return null;if(n.gasPrice==null&&n.effectiveGasPrice==null){const s=await Y(this,Be,gn).call(this,{method:"getTransaction",hash:e});if(s==null)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=s.gasPrice}return this._wrapTransactionReceipt(n,r)}async getTransactionResult(e){const{result:r}=await Pt({network:this.getNetwork(),result:Y(this,Be,gn).call(this,{method:"getTransactionResult",hash:e})});return r==null?null:H(r)}async getLogs(e){let r=this._getFilter(e);vp(r)&&(r=await r);const{network:n,params:s}=await Pt({network:this.getNetwork(),params:Y(this,Be,gn).call(this,{method:"getLogs",filter:r})});return s.map(i=>this._wrapLog(i,n))}_getProvider(e){z(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await w0.fromName(this,e)}async getAvatar(e){const r=await this.getResolver(e);return r?await r.getAvatar():null}async resolveName(e){const r=await this.getResolver(e);return r?await r.getAddress():null}async lookupAddress(e){e=Te(e);const r=cv(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await w0.getEnsAddress(this),i=await new dn(n,["function resolver(bytes32) view returns (address)"],this).resolver(r);if(i==null||i===mi)return null;const a=await new dn(i,["function name(bytes32) view returns (string)"],this).name(r);return await this.resolveName(a)!==e?null:a}catch(n){if(Ht(n,"BAD_DATA")&&n.value==="0x"||Ht(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,r,n){const s=r??1;return s===0?this.getTransactionReceipt(e):new Promise(async(i,o)=>{let a=null;const c=async l=>{try{const u=await this.getTransactionReceipt(e);if(u!=null&&l-u.blockNumber+1>=s){i(u),a&&(clearTimeout(a),a=null);return}}catch(u){console.log("EEE",u)}this.once("block",c)};n!=null&&(a=setTimeout(()=>{a!=null&&(a=null,this.off("block",c),o(ft("timeout","TIMEOUT",{reason:"timeout"})))},n)),c(await this.getBlockNumber())})}async waitForBlock(e){z(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const r=w(this,zn).get(e);r&&(r.timer&&clearTimeout(r.timer),w(this,zn).delete(e))}_setTimeout(e,r){r==null&&(r=0);const n=Il(this,H0)._++,s=()=>{w(this,zn).delete(n),e()};if(this.paused)w(this,zn).set(n,{timer:null,func:s,time:r});else{const i=setTimeout(s,r);w(this,zn).set(n,{timer:i,func:s,time:Ox()})}return n}_forEachSubscriber(e){for(const r of w(this,Tr).values())e(r.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new C0(e.type);case"block":{const r=new Zse(this);return r.pollingInterval=this.pollingInterval,r}case"safe":case"finalized":return new eie(this,e.type);case"event":return new W5(this,e.filter);case"transaction":return new rie(this,e.hash);case"orphan":return new tie(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,r){for(const n of w(this,Tr).values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=r,n.started&&r.start(),w(this,Pr)!=null&&r.pause(w(this,Pr));break}}async on(e,r){const n=await Y(this,Be,Zp).call(this,e);return n.listeners.push({listener:r,once:!1}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async once(e,r){const n=await Y(this,Be,Zp).call(this,e);return n.listeners.push({listener:r,once:!0}),n.started||(n.subscriber.start(),n.started=!0,w(this,Pr)!=null&&n.subscriber.pause(w(this,Pr))),this}async emit(e,...r){const n=await Y(this,Be,nh).call(this,e,r);if(!n||n.listeners.length===0)return!1;const s=n.listeners.length;return n.listeners=n.listeners.filter(({listener:i,once:o})=>{const a=new d5(this,o?null:i,e);try{i.call(this,...r,a)}catch{}return!o}),n.listeners.length===0&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),s>0}async listenerCount(e){if(e){const n=await Y(this,Be,nh).call(this,e);return n?n.listeners.length:0}let r=0;for(const{listeners:n}of w(this,Tr).values())r+=n.length;return r}async listeners(e){if(e){const n=await Y(this,Be,nh).call(this,e);return n?n.listeners.map(({listener:s})=>s):[]}let r=[];for(const{listeners:n}of w(this,Tr).values())r=r.concat(n.map(({listener:s})=>s));return r}async off(e,r){const n=await Y(this,Be,nh).call(this,e);if(!n)return this;if(r){const s=n.listeners.map(({listener:i})=>i).indexOf(r);s>=0&&n.listeners.splice(s,1)}return(!r||n.listeners.length===0)&&(n.started&&n.subscriber.stop(),w(this,Tr).delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:r,started:n,subscriber:s}=await Y(this,Be,Zp).call(this,e);n&&s.stop(),w(this,Tr).delete(r)}else for(const[r,{started:n,subscriber:s}]of w(this,Tr))n&&s.stop(),w(this,Tr).delete(r);return this}async addListener(e,r){return await this.on(e,r)}async removeListener(e,r){return this.off(e,r)}get destroyed(){return w(this,mf)}destroy(){this.removeAllListeners();for(const e of w(this,zn).keys())this._clearTimeout(e);T(this,mf,!0)}get paused(){return w(this,Pr)!=null}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(T(this,Fi,-1),w(this,Pr)!=null){if(w(this,Pr)==!!e)return;z(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber(r=>r.pause(e)),T(this,Pr,!!e);for(const r of w(this,zn).values())r.timer&&clearTimeout(r.timer),r.time=Ox()-r.time}resume(){if(w(this,Pr)!=null){this._forEachSubscriber(e=>e.resume()),T(this,Pr,null);for(const e of w(this,zn).values()){let r=e.time;r<0&&(r=0),e.time=Ox(),setTimeout(e.func,r)}}}}Tr=new WeakMap,Yo=new WeakMap,Pr=new WeakMap,mf=new WeakMap,Cn=new WeakMap,jc=new WeakMap,Xo=new WeakMap,Fi=new WeakMap,H0=new WeakMap,zn=new WeakMap,xf=new WeakMap,bf=new WeakMap,Be=new WeakSet,gn=async function(e){const r=w(this,bf).cacheTimeout;if(r<0)return await this._perform(e);const n=Xp(e.method,e);let s=w(this,Xo).get(n);return s||(s=this._perform(e),w(this,Xo).set(n,s),setTimeout(()=>{w(this,Xo).get(n)===s&&w(this,Xo).delete(n)},r)),await s},Zw=async function(e,r,n){z(n=0&&r==="latest"&&s.to!=null&&st(i.data,0,4)==="0x556f1830"){const o=i.data,a=await sr(s.to,this);let c;try{c=fie(st(i.data,4))}catch(f){z(!1,f.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:s,info:{data:o}})}z(c.sender.toLowerCase()===a.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:o,reason:"OffchainLookup",transaction:s,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:c.errorArgs}});const l=await this.ccipReadFetch(s,c.calldata,c.urls);z(l!=null,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:s,info:{data:i.data,errorArgs:c.errorArgs}});const u={to:a,data:Le([c.selector,uie([l,c.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:u});try{const f=await Y(this,Be,Zw).call(this,u,r,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},u),result:f}),f}catch(f){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},u),error:f}),f}}throw i}},e2=async function(e){const{value:r}=await Pt({network:this.getNetwork(),value:e});return r},rh=async function(e,r,n){let s=this._getAddress(r),i=this._getBlockTag(n);return(typeof s!="string"||typeof i!="string")&&([s,i]=await Promise.all([s,i])),await Y(this,Be,e2).call(this,Y(this,Be,gn).call(this,Object.assign(e,{address:s,blockTag:i})))},t2=async function(e,r){if(et(e,32))return await Y(this,Be,gn).call(this,{method:"getBlock",blockHash:e,includeTransactions:r});let n=this._getBlockTag(e);return typeof n!="string"&&(n=await n),await Y(this,Be,gn).call(this,{method:"getBlock",blockTag:n,includeTransactions:r})},nh=async function(e,r){let n=await Ix(e,this);return n.type==="event"&&r&&r.length>0&&r[0].removed===!0&&(n=await Ix({orphan:"drop-log",log:r[0]},this)),w(this,Tr).get(n.tag)||null},Zp=async function(e){const r=await Ix(e,this),n=r.tag;let s=w(this,Tr).get(n);return s||(s={subscriber:this._getSubscriber(r),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},w(this,Tr).set(n,s)),s};function aie(t,e){try{const r=r2(t,e);if(r)return Ms(r)}catch{}return null}function r2(t,e){if(t==="0x")return null;try{const r=Pe(st(t,e,e+32)),n=Pe(st(t,r,r+32));return st(t,r+32,r+32+n)}catch{}return null}function K8(t){const e=rr(t);if(e.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(e,32-e.length),r}function cie(t){if(t.length%32===0)return t;const e=new Uint8Array(Math.ceil(t.length/32)*32);return e.set(t),e}const lie=new Uint8Array([]);function uie(t){const e=[];let r=0;for(let n=0;n=5*32,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const r=st(t,0,32);z(st(r,0,12)===st(Q8,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),e.sender=st(r,12);try{const n=[],s=Pe(st(t,32,64)),i=Pe(st(t,s,s+32)),o=st(t,s+32);for(let a=0;ae[n]),e}function Ll(t,e){if(t.provider)return t.provider;z(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:e})}async function J8(t,e){let r=Jf(e);if(r.to!=null&&(r.to=sr(r.to,t)),r.from!=null){const n=r.from;r.from=Promise.all([t.getAddress(),sr(n,t)]).then(([s,i])=>(P(s.toLowerCase()===i.toLowerCase(),"transaction from mismatch","tx.from",i),s))}else r.from=t.getAddress();return await Pt(r)}class lo{constructor(e){N(this,"provider");fe(this,{provider:e||null})}async getNonce(e){return Ll(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await J8(this,e)}async populateTransaction(e){const r=Ll(this,"populateTransaction"),n=await J8(this,e);n.nonce==null&&(n.nonce=await this.getNonce("pending")),n.gasLimit==null&&(n.gasLimit=await this.estimateGas(n));const s=await this.provider.getNetwork();if(n.chainId!=null){const o=ve(n.chainId);P(o===s.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=s.chainId;const i=n.maxFeePerGas!=null||n.maxPriorityFeePerGas!=null;if(n.gasPrice!=null&&(n.type===2||i)?P(!1,"eip-1559 transaction do not support gasPrice","tx",e):(n.type===0||n.type===1)&&i&&P(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e),(n.type===2||n.type==null)&&n.maxFeePerGas!=null&&n.maxPriorityFeePerGas!=null)n.type=2;else if(n.type===0||n.type===1){const o=await r.getFeeData();z(o.gasPrice!=null,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice)}else{const o=await r.getFeeData();if(n.type==null)if(o.maxFeePerGas!=null&&o.maxPriorityFeePerGas!=null)if(n.type=2,n.gasPrice!=null){const a=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=a,n.maxPriorityFeePerGas=a}else n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas);else o.gasPrice!=null?(z(!i,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),n.gasPrice==null&&(n.gasPrice=o.gasPrice),n.type=0):z(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else(n.type===2||n.type===3)&&(n.maxFeePerGas==null&&(n.maxFeePerGas=o.maxFeePerGas),n.maxPriorityFeePerGas==null&&(n.maxPriorityFeePerGas=o.maxPriorityFeePerGas))}return await Pt(n)}async estimateGas(e){return Ll(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return Ll(this,"call").call(await this.populateCall(e))}async resolveName(e){return await Ll(this,"resolveName").resolveName(e)}async sendTransaction(e){const r=Ll(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const s=yl.from(n);return await r.broadcastTransaction(await this.signTransaction(s))}}var wf,ey;const Vk=class Vk extends lo{constructor(r,n){super(n);j(this,wf);N(this,"address");fe(this,{address:r})}async getAddress(){return this.address}connect(r){return new Vk(this.address,r)}async signTransaction(r){Y(this,wf,ey).call(this,"transactions","signTransaction")}async signMessage(r){Y(this,wf,ey).call(this,"messages","signMessage")}async signTypedData(r,n,s){Y(this,wf,ey).call(this,"typed-data","signTypedData")}};wf=new WeakSet,ey=function(r,n){z(!1,`VoidSigner cannot sign ${r}`,"UNSUPPORTED_OPERATION",{operation:n})};let uv=Vk;const Y8=new Set;function Ka(t){Y8.has(t)||(Y8.add(t),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${t} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}function die(t){return JSON.parse(JSON.stringify(t))}var Lr,ei,Fc,Zo,Uc,Cf,Ma,n2,s2;class D7{constructor(e){j(this,Ma);j(this,Lr);j(this,ei);j(this,Fc);j(this,Zo);j(this,Uc);j(this,Cf);T(this,Lr,e),T(this,ei,null),T(this,Fc,Y(this,Ma,n2).bind(this)),T(this,Zo,!1),T(this,Uc,null),T(this,Cf,!1)}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,r){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}start(){w(this,Zo)||(T(this,Zo,!0),Y(this,Ma,n2).call(this,-2))}stop(){w(this,Zo)&&(T(this,Zo,!1),T(this,Cf,!0),Y(this,Ma,s2).call(this),w(this,Lr).off("block",w(this,Fc)))}pause(e){e&&Y(this,Ma,s2).call(this),w(this,Lr).off("block",w(this,Fc))}resume(){this.start()}}Lr=new WeakMap,ei=new WeakMap,Fc=new WeakMap,Zo=new WeakMap,Uc=new WeakMap,Cf=new WeakMap,Ma=new WeakSet,n2=async function(e){try{w(this,ei)==null&&T(this,ei,this._subscribe(w(this,Lr)));let r=null;try{r=await w(this,ei)}catch(i){if(!Ht(i,"UNSUPPORTED_OPERATION")||i.operation!=="eth_newFilter")throw i}if(r==null){T(this,ei,null),w(this,Lr)._recoverSubscriber(this,this._recover(w(this,Lr)));return}const n=await w(this,Lr).getNetwork();if(w(this,Uc)||T(this,Uc,n),w(this,Uc).chainId!==n.chainId)throw new Error("chaid changed");if(w(this,Cf))return;const s=await w(this,Lr).send("eth_getFilterChanges",[r]);await this._emitResults(w(this,Lr),s)}catch(r){console.log("@TODO",r)}w(this,Lr).once("block",w(this,Fc))},s2=function(){const e=w(this,ei);e&&(T(this,ei,null),e.then(r=>{w(this,Lr).destroyed||w(this,Lr).send("eth_uninstallFilter",[r])}))};var $c;class hie extends D7{constructor(r,n){super(r);j(this,$c);T(this,$c,die(n))}_recover(r){return new W5(r,w(this,$c))}async _subscribe(r){return await r.send("eth_newFilter",[w(this,$c)])}async _emitResults(r,n){for(const s of n)r.emit(w(this,$c),r._wrapLog(s,r._network))}}$c=new WeakMap;class pie extends D7{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,r){for(const n of r)e.emit("pending",n)}}const yie="bigint,boolean,function,number,string,symbol".split(/,/g);function ty(t){if(t==null||yie.indexOf(typeof t)>=0||typeof t.getAddress=="function")return t;if(Array.isArray(t))return t.map(ty);if(typeof t=="object")return Object.keys(t).reduce((e,r)=>(e[r]=t[r],e),{});throw new Error(`should not happen: ${t} (${typeof t})`)}function vie(t){return new Promise(e=>{setTimeout(e,t)})}function jl(t){return t&&t.toLowerCase()}function X8(t){return t&&typeof t.pollingInterval=="number"}const B7={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class ry extends lo{constructor(r,n){super(r);N(this,"address");n=Te(n),fe(this,{address:n})}connect(r){z(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(r){return await this.populateCall(r)}async sendUncheckedTransaction(r){const n=ty(r),s=[];if(n.from){const o=n.from;s.push((async()=>{const a=await sr(o,this.provider);P(a!=null&&a.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=a})())}else n.from=this.address;if(n.gasLimit==null&&s.push((async()=>{n.gasLimit=await this.provider.estimateGas({...n,from:this.address})})()),n.to!=null){const o=n.to;s.push((async()=>{n.to=await sr(o,this.provider)})())}s.length&&await Promise.all(s);const i=this.provider.getRpcTransaction(n);return this.provider.send("eth_sendTransaction",[i])}async sendTransaction(r){const n=await this.provider.getBlockNumber(),s=await this.sendUncheckedTransaction(r);return await new Promise((i,o)=>{const a=[1e3,100];let c=0;const l=async()=>{try{const u=await this.provider.getTransaction(s);if(u!=null){i(u.replaceableTransaction(n));return}}catch(u){if(Ht(u,"CANCELLED")||Ht(u,"BAD_DATA")||Ht(u,"NETWORK_ERROR")){u.info==null&&(u.info={}),u.info.sendTransactionHash=s,o(u);return}if(Ht(u,"INVALID_ARGUMENT")&&(c++,u.info==null&&(u.info={}),u.info.sendTransactionHash=s,c>10)){o(u);return}this.provider.emit("error",ft("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:u}))}this.provider._setTimeout(()=>{l()},a.pop()||4e3)};l()})}async signTransaction(r){const n=ty(r);if(n.from){const i=await sr(n.from,this.provider);P(i!=null&&i.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",r),n.from=i}else n.from=this.address;const s=this.provider.getRpcTransaction(n);return await this.provider.send("eth_signTransaction",[s])}async signMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("personal_sign",[H(n),this.address.toLowerCase()])}async signTypedData(r,n,s){const i=ty(s),o=await Ds.resolveNames(r,n,i,async a=>{const c=await sr(a);return P(c!=null,"TypedData does not support null address","value",a),c});return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(Ds.getPayload(o.domain,n,o.value))])}async unlock(r){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),r,null])}async _legacySignMessage(r){const n=typeof r=="string"?mt(r):r;return await this.provider.send("eth_sign",[this.address.toLowerCase(),H(n)])}}var Wc,Ef,Ui,ti,bs,Gn,nn,z0,i2;class V5 extends co{constructor(r,n){super(r,n);j(this,z0);j(this,Wc);j(this,Ef);j(this,Ui);j(this,ti);j(this,bs);j(this,Gn);j(this,nn);T(this,Ef,1),T(this,Wc,Object.assign({},B7,n||{})),T(this,Ui,[]),T(this,ti,null),T(this,Gn,null),T(this,nn,null);{let i=null;const o=new Promise(a=>{i=a});T(this,bs,{promise:o,resolve:i})}const s=this._getOption("staticNetwork");typeof s=="boolean"?(P(!s||r!=="any","staticNetwork cannot be used on special network 'any'","options",n),s&&r!=null&&T(this,Gn,ot.from(r))):s&&(P(r==null||s.matches(r),"staticNetwork MUST match network object","options",n),T(this,Gn,s))}_getOption(r){return w(this,Wc)[r]}get _network(){return z(w(this,Gn),"network is not available yet","NETWORK_ERROR"),w(this,Gn)}async _perform(r){if(r.method==="call"||r.method==="estimateGas"){let s=r.transaction;if(s&&s.type!=null&&ve(s.type)&&s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null){const i=await this.getFeeData();i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null&&(r=Object.assign({},r,{transaction:Object.assign({},s,{type:void 0})}))}}const n=this.getRpcRequest(r);return n!=null?await this.send(n.method,n.args):super._perform(r)}async _detectNetwork(){const r=this._getOption("staticNetwork");if(r)if(r===!0){if(w(this,Gn))return w(this,Gn)}else return r;return w(this,nn)?await w(this,nn):this.ready?(T(this,nn,(async()=>{try{const n=ot.from(ve(await this.send("eth_chainId",[])));return T(this,nn,null),n}catch(n){throw T(this,nn,null),n}})()),await w(this,nn)):(T(this,nn,(async()=>{const n={id:Il(this,Ef)._++,method:"eth_chainId",params:[],jsonrpc:"2.0"};this.emit("debug",{action:"sendRpcPayload",payload:n});let s;try{s=(await this._send(n))[0],T(this,nn,null)}catch(i){throw T(this,nn,null),this.emit("debug",{action:"receiveRpcError",error:i}),i}if(this.emit("debug",{action:"receiveRpcResult",result:s}),"result"in s)return ot.from(ve(s.result));throw this.getRpcError(n,s)})()),await w(this,nn))}_start(){w(this,bs)==null||w(this,bs).resolve==null||(w(this,bs).resolve(),T(this,bs,null),(async()=>{for(;w(this,Gn)==null&&!this.destroyed;)try{T(this,Gn,await this._detectNetwork())}catch(r){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",ft("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:r}})),await vie(1e3)}Y(this,z0,i2).call(this)})())}async _waitUntilReady(){if(w(this,bs)!=null)return await w(this,bs).promise}_getSubscriber(r){return r.type==="pending"?new pie(this):r.type==="event"?this._getOption("polling")?new W5(this,r.filter):new hie(this,r.filter):r.type==="orphan"&&r.filter.orphan==="drop-log"?new C0("orphan"):super._getSubscriber(r)}get ready(){return w(this,bs)==null}getRpcTransaction(r){const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(s=>{if(r[s]==null)return;let i=s;s==="gasLimit"&&(i="gas"),n[i]=pr(ve(r[s],`tx.${s}`))}),["from","to","data"].forEach(s=>{r[s]!=null&&(n[s]=H(r[s]))}),r.accessList&&(n.accessList=vo(r.accessList)),r.blobVersionedHashes&&(n.blobVersionedHashes=r.blobVersionedHashes.map(s=>s.toLowerCase())),n}getRpcRequest(r){switch(r.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[jl(r.address),r.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[jl(r.address),r.blockTag]};case"getCode":return{method:"eth_getCode",args:[jl(r.address),r.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[jl(r.address),"0x"+r.position.toString(16),r.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[r.signedTransaction]};case"getBlock":if("blockTag"in r)return{method:"eth_getBlockByNumber",args:[r.blockTag,!!r.includeTransactions]};if("blockHash"in r)return{method:"eth_getBlockByHash",args:[r.blockHash,!!r.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[r.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[r.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(r.transaction),r.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(r.transaction)]};case"getLogs":return r.filter&&r.filter.address!=null&&(Array.isArray(r.filter.address)?r.filter.address=r.filter.address.map(jl):r.filter.address=jl(r.filter.address)),{method:"eth_getLogs",args:[r.filter]}}return null}getRpcError(r,n){const{method:s}=r,{error:i}=n;if(s==="eth_estimateGas"&&i.message){const c=i.message;if(!c.match(/revert/i)&&c.match(/insufficient funds/i))return ft("insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.params[0],info:{payload:r,error:i}})}if(s==="eth_call"||s==="eth_estimateGas"){const c=o2(i),l=Kt.getBuiltinCallException(s==="eth_call"?"call":"estimateGas",r.params[0],c?c.data:null);return l.info={error:i,payload:r},l}const o=JSON.stringify(gie(i));if(typeof i.message=="string"&&i.message.match(/user denied|ethers-user-denied/i))return ft("user rejected action","ACTION_REJECTED",{action:{eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"}[s]||"unknown",reason:"rejected",info:{payload:r,error:i}});if(s==="eth_sendRawTransaction"||s==="eth_sendTransaction"){const c=r.params[0];if(o.match(/insufficient funds|base fee exceeds gas limit/i))return ft("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:c,info:{error:i}});if(o.match(/nonce/i)&&o.match(/too low/i))return ft("nonce has already been used","NONCE_EXPIRED",{transaction:c,info:{error:i}});if(o.match(/replacement transaction/i)&&o.match(/underpriced/i))return ft("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:c,info:{error:i}});if(o.match(/only replay-protected/i))return ft("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:s,info:{transaction:c,info:{error:i}}})}let a=!!o.match(/the method .* does not exist/i);return a||i&&i.details&&i.details.startsWith("Unauthorized method:")&&(a=!0),a?ft("unsupported operation","UNSUPPORTED_OPERATION",{operation:r.method,info:{error:i,payload:r}}):ft("could not coalesce error","UNKNOWN_ERROR",{error:i,payload:r})}send(r,n){if(this.destroyed)return Promise.reject(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r}));const s=Il(this,Ef)._++,i=new Promise((o,a)=>{w(this,Ui).push({resolve:o,reject:a,payload:{method:r,params:n,id:s,jsonrpc:"2.0"}})});return Y(this,z0,i2).call(this),i}async getSigner(r){r==null&&(r=0);const n=this.send("eth_accounts",[]);if(typeof r=="number"){const i=await n;if(r>=i.length)throw new Error("no such account");return new ry(this,i[r])}const{accounts:s}=await Pt({network:this.getNetwork(),accounts:n});r=Te(r);for(const i of s)if(Te(i)===r)return new ry(this,r);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map(n=>new ry(this,n))}destroy(){w(this,ti)&&(clearTimeout(w(this,ti)),T(this,ti,null));for(const{payload:r,reject:n}of w(this,Ui))n(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:r.method}));T(this,Ui,[]),super.destroy()}}Wc=new WeakMap,Ef=new WeakMap,Ui=new WeakMap,ti=new WeakMap,bs=new WeakMap,Gn=new WeakMap,nn=new WeakMap,z0=new WeakSet,i2=function(){if(w(this,ti))return;const r=this._getOption("batchMaxCount")===1?0:this._getOption("batchStallTime");T(this,ti,setTimeout(()=>{T(this,ti,null);const n=w(this,Ui);for(T(this,Ui,[]);n.length;){const s=[n.shift()];for(;n.length&&s.length!==w(this,Wc).batchMaxCount;)if(s.push(n.shift()),JSON.stringify(s.map(o=>o.payload)).length>w(this,Wc).batchMaxSize){n.unshift(s.pop());break}(async()=>{const i=s.length===1?s[0].payload:s.map(o=>o.payload);this.emit("debug",{action:"sendRpcPayload",payload:i});try{const o=await this._send(i);this.emit("debug",{action:"receiveRpcResult",result:o});for(const{resolve:a,reject:c,payload:l}of s){if(this.destroyed){c(ft("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:l.method}));continue}const u=o.filter(f=>f.id===l.id)[0];if(u==null){const f=ft("missing response for request","BAD_DATA",{value:o,info:{payload:l}});this.emit("error",f),c(f);continue}if("error"in u){c(this.getRpcError(l,u));continue}a(u.result)}}catch(o){this.emit("debug",{action:"receiveRpcError",error:o});for(const{reject:a}of s)a(o)}})()}},r))};var ea;class L7 extends V5{constructor(r,n){super(r,n);j(this,ea);let s=this._getOption("pollingInterval");s==null&&(s=B7.pollingInterval),T(this,ea,s)}_getSubscriber(r){const n=super._getSubscriber(r);return X8(n)&&(n.pollingInterval=w(this,ea)),n}get pollingInterval(){return w(this,ea)}set pollingInterval(r){if(!Number.isInteger(r)||r<0)throw new Error("invalid interval");T(this,ea,r),this._forEachSubscriber(n=>{X8(n)&&(n.pollingInterval=w(this,ea))})}}ea=new WeakMap;var kf,M3;let zt=(M3=class extends L7{constructor(r,n,s){r==null&&(r="http://localhost:8545");super(n,s);j(this,kf);typeof r=="string"?T(this,kf,new qt(r)):T(this,kf,r.clone())}_getConnection(){return w(this,kf).clone()}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){const n=this._getConnection();n.body=JSON.stringify(r),n.setHeader("content-type","application/json");const s=await n.send();s.assertOk();let i=s.bodyJson;return Array.isArray(i)||(i=[i]),i}},kf=new WeakMap,M3);function o2(t){if(t==null)return null;if(typeof t.message=="string"&&t.message.match(/revert/i)&&et(t.data))return{message:t.message,data:t.data};if(typeof t=="object"){for(const e in t){const r=o2(t[e]);if(r)return r}return null}if(typeof t=="string")try{return o2(JSON.parse(t))}catch{}return null}function a2(t,e){if(t!=null){if(typeof t.message=="string"&&e.push(t.message),typeof t=="object")for(const r in t)a2(t[r],e);if(typeof t=="string")try{return a2(JSON.parse(t),e)}catch{}}}function gie(t){const e=[];return a2(t,e),e}const gp="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function mie(t){switch(t){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}P(!1,"unsupported network","network",t)}class E0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=gp);const i={polling:!0,staticNetwork:s},o=E0.getRequest(s,n);super(o,s,i);N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new E0(r,this.apiKey)}catch{}return super._getProvider(r)}static getRequest(r,n){n==null&&(n=gp);const s=new qt(`https://${mie(r.name)}/${n}`);return s.allowGzip=!0,n===gp&&(s.retryFunc=async(i,o,a)=>(Ka("AnkrProvider"),!0)),s}getRpcError(r,n){return r.method==="eth_sendRawTransaction"&&n&&n.error&&n.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(n.error.message="replacement transaction underpriced"),super.getRpcError(r,n)}isCommunityResource(){return this.apiKey===gp}}const mp="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function xie(t){switch(t){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}P(!1,"unsupported network","network",t)}class k0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=mp);const i=k0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new k0(r,this.apiKey)}catch{}return super._getProvider(r)}async _perform(r){if(r.method==="getTransactionResult"){const{trace:n,tx:s}=await Pt({trace:this.send("trace_transaction",[r.hash]),tx:this.getTransaction(r.hash)});if(n==null||s==null)return null;let i,o=!1;try{i=n[0].result.output,o=n[0].error==="Reverted"}catch{}if(i)return z(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:s,invocation:null,revert:null}),i;z(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(r)}isCommunityResource(){return this.apiKey===mp}static getRequest(r,n){n==null&&(n=mp);const s=new qt(`https://${xie(r.name)}/v2/${n}`);return s.allowGzip=!0,n===mp&&(s.retryFunc=async(i,o,a)=>(Ka("alchemy"),!0)),s}}function xp(t){switch(t){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}P(!1,"unsupported network","network",t)}function bie(t){switch(t){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}P(!1,"unsupported network","network",t)}class A0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=xp(s.name));const i=A0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"apiKey");fe(this,{apiKey:n})}_getProvider(r){try{return new A0(r,this.apiKey)}catch{}return super._getProvider(r)}isCommunityResource(){return this.apiKey===xp(this._network.name)}static getRequest(r,n){n==null&&(n=xp(r.name));const s=new qt(`https://${bie(r.name)}/${n}`);return s.allowGzip=!0,n===xp(r.name)&&(s.retryFunc=async(i,o,a)=>(Ka("ChainstackProvider"),!0)),s}}class j7 extends zt{constructor(e){e==null&&(e="mainnet");const r=ot.from(e);P(r.name==="mainnet","unsupported network","network",e),super("https://cloudflare-eth.com/",r,{staticNetwork:r})}}const Z8=2e3;function wie(t){return t&&typeof t.then=="function"}const F7="org.ethers.plugins.provider.Etherscan";class H5 extends qa{constructor(r){super(F7);N(this,"baseUrl");fe(this,{baseUrl:r})}clone(){return new H5(this.baseUrl)}}const Cie=["enableCcipRead"];let Eie=1;var Af;class U7 extends co{constructor(r,n){const s=n??null;super();N(this,"network");N(this,"apiKey");j(this,Af);const i=ot.from(r);T(this,Af,i.getPlugin(F7)),fe(this,{apiKey:s,network:i}),this.getBaseUrl()}getBaseUrl(){if(w(this,Af))return w(this,Af).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}P(!1,"unsupported network","network",this.network)}getUrl(r,n){const s=Object.keys(n).reduce((o,a)=>{const c=n[a];return c!=null&&(o+=`&${a}=${c}`),o},""),i=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${r}${s}${i}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(r,n){return n.module=r,n.apikey=this.apiKey,n}async detectNetwork(){return this.network}async fetch(r,n,s){const i=Eie++,o=s?this.getPostUrl():this.getUrl(r,n),a=s?this.getPostData(r,n):null;this.emit("debug",{action:"sendRequest",id:i,url:o,payload:a});const c=new qt(o);c.setThrottleParams({slotInterval:1e3}),c.retryFunc=(f,d,h)=>(this.isCommunityResource()&&Ka("Etherscan"),Promise.resolve(!0)),c.processFunc=async(f,d)=>{const h=d.hasBody()?JSON.parse(Ms(d.body)):{},y=(typeof h.result=="string"?h.result:"").toLowerCase().indexOf("rate limit")>=0;return r==="proxy"?h&&h.status==0&&h.message=="NOTOK"&&y&&(this.emit("debug",{action:"receiveError",id:i,reason:"proxy-NOTOK",error:h}),d.throwThrottleError(h.result,Z8)):y&&(this.emit("debug",{action:"receiveError",id:i,reason:"null result",error:h.result}),d.throwThrottleError(h.result,Z8)),d},a&&(c.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),c.body=Object.keys(a).map(f=>`${f}=${a[f]}`).join("&"));const l=await c.send();try{l.assertOk()}catch(f){this.emit("debug",{action:"receiveError",id:i,error:f,reason:"assertOk"}),z(!1,"response error","SERVER_ERROR",{request:c,response:l})}l.hasBody()||(this.emit("debug",{action:"receiveError",id:i,error:"missing body",reason:"null body"}),z(!1,"missing response","SERVER_ERROR",{request:c,response:l}));const u=JSON.parse(Ms(l.body));return r==="proxy"?(u.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"invalid JSON-RPC"}),z(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:c,response:l,info:{result:u}})),u.error&&(this.emit("debug",{action:"receiveError",id:i,result:u,reason:"JSON-RPC error"}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):u.status==0&&(u.message==="No records found"||u.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result):((u.status!=1||typeof u.message=="string"&&!u.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:i,result:u}),z(!1,"error response","SERVER_ERROR",{request:c,response:l,info:{result:u}})),this.emit("debug",{action:"receiveRequest",id:i,result:u}),u.result)}_getTransactionPostData(r){const n={};for(let s in r){if(Cie.indexOf(s)>=0||r[s]==null)continue;let i=r[s];if(!(s==="type"&&i===0)&&!(s==="blockTag"&&i==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[s])i=pr(i);else if(s==="accessList")i="["+vo(i).map(o=>`{address:"${o.address}",storageKeys:["${o.storageKeys.join('","')}"]}`).join(",")+"]";else if(s==="blobVersionedHashes"){if(i.length===0)continue;z(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:r}})}else i=H(i);n[s]=i}}return n}_checkError(r,n,s){let i="";if(Ht(n,"SERVER_ERROR")){try{i=n.info.result.error.message}catch{}if(!i)try{i=n.info.message}catch{}}if(r.method==="estimateGas"&&!i.match(/revert/i)&&i.match(/insufficient funds/i)&&z(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:r.transaction}),(r.method==="call"||r.method==="estimateGas")&&i.match(/execution reverted/i)){let o="";try{o=n.info.result.error.data}catch{}const a=Kt.getBuiltinCallException(r.method,r.transaction,o);throw a.info={request:r,error:n},a}if(i&&r.method==="broadcastTransaction"){const o=yl.from(r.signedTransaction);i.match(/replacement/i)&&i.match(/underpriced/i)&&z(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:o}),i.match(/insufficient funds/)&&z(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:o}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&z(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:o})}throw n}async _detectNetwork(){return this.network}async _perform(r){switch(r.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch(n=>this._checkError(r,n,r.signedTransaction));case"getBlock":if("blockTag"in r)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"});z(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.hash});case"call":{if(r.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(r.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(s){return this._checkError(r,s,r.transaction)}}}return super._perform(r)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(r){let n=this._getAddress(r);wie(n)&&(n=await n);try{const s=await this.fetch("contract",{action:"getabi",address:n}),i=JSON.parse(s);return new dn(n,i,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}Af=new WeakMap;function kie(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const Aie=kie().WebSocket;var ri,G0,ta,Vc,ra;class Hg{constructor(e,r){j(this,ri);j(this,G0);j(this,ta);j(this,Vc);j(this,ra);T(this,ri,e),T(this,G0,JSON.stringify(r)),T(this,ta,null),T(this,Vc,null),T(this,ra,null)}get filter(){return JSON.parse(w(this,G0))}start(){T(this,ta,w(this,ri).send("eth_subscribe",this.filter).then(e=>(w(this,ri)._register(e,this),e)))}stop(){w(this,ta).then(e=>{w(this,ri).destroyed||w(this,ri).send("eth_unsubscribe",[e])}),T(this,ta,null)}pause(e){z(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),T(this,Vc,!!e)}resume(){T(this,Vc,null)}_handleMessage(e){if(w(this,ta)!=null&&w(this,Vc)===null){let r=w(this,ra);r==null?r=this._emit(w(this,ri),e):r=r.then(async()=>{await this._emit(w(this,ri),e)}),T(this,ra,r.then(()=>{w(this,ra)===r&&T(this,ra,null)}))}}async _emit(e,r){throw new Error("sub-classes must implemente this; _emit")}}ri=new WeakMap,G0=new WeakMap,ta=new WeakMap,Vc=new WeakMap,ra=new WeakMap;class $7 extends Hg{constructor(e){super(e,["newHeads"])}async _emit(e,r){e.emit("block",parseInt(r.number))}}class W7 extends Hg{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,r){e.emit("pending",r)}}var q0;class V7 extends Hg{constructor(r,n){super(r,["logs",n]);j(this,q0);T(this,q0,JSON.stringify(n))}get logFilter(){return JSON.parse(w(this,q0))}async _emit(r,n){r.emit(this.logFilter,r._wrapLog(n,r._network))}}q0=new WeakMap;var Hc,Sf,na;class H7 extends V5{constructor(r,n){const s=Object.assign({},n??{});P(s.batchMaxCount==null||s.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",n),s.batchMaxCount=1,s.staticNetwork==null&&(s.staticNetwork=!0);super(r,s);j(this,Hc);j(this,Sf);j(this,na);T(this,Hc,new Map),T(this,Sf,new Map),T(this,na,new Map)}_getSubscriber(r){switch(r.type){case"close":return new C0("close");case"block":return new $7(this);case"pending":return new W7(this);case"event":return new V7(this,r.filter);case"orphan":if(r.filter.orphan==="drop-log")return new C0("drop-log")}return super._getSubscriber(r)}_register(r,n){w(this,Sf).set(r,n);const s=w(this,na).get(r);if(s){for(const i of s)n._handleMessage(i);w(this,na).delete(r)}}async _send(r){P(!Array.isArray(r),"WebSocket does not support batch send","payload",r);const n=new Promise((s,i)=>{w(this,Hc).set(r.id,{payload:r,resolve:s,reject:i})});return await this._waitUntilReady(),await this._write(JSON.stringify(r)),[await n]}async _processMessage(r){const n=JSON.parse(r);if(n&&typeof n=="object"&&"id"in n){const s=w(this,Hc).get(n.id);if(s==null){this.emit("error",ft("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:n}));return}w(this,Hc).delete(n.id),s.resolve(n)}else if(n&&n.method==="eth_subscription"){const s=n.params.subscription,i=w(this,Sf).get(s);if(i)i._handleMessage(n.params.result);else{let o=w(this,na).get(s);o==null&&(o=[],w(this,na).set(s,o)),o.push(n.params.result)}}else{this.emit("error",ft("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:n}));return}}async _write(r){throw new Error("sub-classes must override this")}}Hc=new WeakMap,Sf=new WeakMap,na=new WeakMap;var zc,ws;class z5 extends H7{constructor(r,n,s){super(n,s);j(this,zc);j(this,ws);typeof r=="string"?(T(this,zc,()=>new Aie(r)),T(this,ws,w(this,zc).call(this))):typeof r=="function"?(T(this,zc,r),T(this,ws,r())):(T(this,zc,null),T(this,ws,r)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(i){console.log("failed to start WebsocketProvider",i)}},this.websocket.onmessage=i=>{this._processMessage(i.data)}}get websocket(){if(w(this,ws)==null)throw new Error("websocket closed");return w(this,ws)}async _write(r){this.websocket.send(r)}async destroy(){w(this,ws)!=null&&(w(this,ws).close(),T(this,ws,null)),super.destroy()}}zc=new WeakMap,ws=new WeakMap;const sh="84842078b09946638c03157f83405213";function Sie(t){switch(t){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}P(!1,"unsupported network","network",t)}class z7 extends z5{constructor(r,n){const s=new ed(r,n),i=s._getConnection();z(!i.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const o=i.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(o,s._network);N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:s.projectId,projectSecret:s.projectSecret})}isCommunityResource(){return this.projectId===sh}}class ed extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=sh),s==null&&(s=null);const o=ed.getRequest(i,n,s);super(o,i,{staticNetwork:i});N(this,"projectId");N(this,"projectSecret");fe(this,{projectId:n,projectSecret:s})}_getProvider(r){try{return new ed(r,this.projectId,this.projectSecret)}catch{}return super._getProvider(r)}isCommunityResource(){return this.projectId===sh}static getWebSocketProvider(r,n){return new z7(r,n)}static getRequest(r,n,s){n==null&&(n=sh),s==null&&(s=null);const i=new qt(`https://${Sie(r.name)}/v3/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===sh&&(i.retryFunc=async(o,a,c)=>(Ka("InfuraProvider"),!0)),i}}const bp="919b412a057b5e9c9b6dce193c5a60242d6efadb";function Tie(t){switch(t){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}P(!1,"unsupported network","network",t)}class S0 extends zt{constructor(r,n){r==null&&(r="mainnet");const s=ot.from(r);n==null&&(n=bp);const i=S0.getRequest(s,n);super(i,s,{staticNetwork:s});N(this,"token");fe(this,{token:n})}_getProvider(r){try{return new S0(r,this.token)}catch{}return super._getProvider(r)}isCommunityResource(){return this.token===bp}static getRequest(r,n){n==null&&(n=bp);const s=new qt(`https://${Tie(r.name)}/${n}`);return s.allowGzip=!0,n===bp&&(s.retryFunc=async(i,o,a)=>(Ka("QuickNodeProvider"),!0)),s}}const Pie=BigInt("1"),Iie=BigInt("2");function Oie(t){for(let e=t.length-1;e>0;e--){const r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}}function Rie(t){return new Promise(e=>{setTimeout(e,t)})}function c2(){return new Date().getTime()}function Rx(t){return JSON.stringify(t,(e,r)=>typeof r=="bigint"?{type:"bigint",value:r.toString()}:r)}const e3={stallTimeout:400,priority:1,weight:1},t3={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function Nie(t,e){for(;(t.blockNumber<0||t.blockNumber{try{const r=await t.provider.getBlockNumber();r>t.blockNumber&&(t.blockNumber=r)}catch(r){t.blockNumber=-2,t._lastFatalError=r,t._lastFatalErrorTimestamp=c2()}t._updateNumber=null})()),await t._updateNumber,t.outOfSync++,!t._lastFatalError););}function Sh(t){if(t==null)return"null";if(Array.isArray(t))return"["+t.map(Sh).join(",")+"]";if(typeof t=="object"&&typeof t.toJSON=="function")return Sh(t.toJSON());switch(typeof t){case"boolean":case"symbol":return t.toString();case"bigint":case"number":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{const e=Object.keys(t);return e.sort(),"{"+e.map(r=>`${JSON.stringify(r)}:${Sh(t[r])}`).join(",")+"}"}}throw console.log("Could not serialize",t),new Error("Hmm...")}function Nx(t){if("error"in t){const r=t.error;return{tag:Sh(r),value:r}}const e=t.result;return{tag:Sh(e),value:e}}function ny(t,e){const r=new Map;for(const{value:s,tag:i,weight:o}of e){const a=r.get(i)||{value:s,weight:0};a.weight+=o,r.set(i,a)}let n=null;for(const s of r.values())s.weight>=t&&(!n||s.weight>n.weight)&&(n=s);if(n)return n.value}function l2(t,e){let r=0;const n=new Map;let s=null;const i=[];for(const{value:a,tag:c,weight:l}of e)if(a instanceof Error){const u=n.get(c)||{value:a,weight:0};u.weight+=l,n.set(c,u),(s==null||u.weight>s.weight)&&(s=u)}else i.push(BigInt(a)),r+=l;if(r=t?s.value:void 0;i.sort((a,c)=>aa?1:0);const o=Math.floor(i.length/2);return i.length%2?i[o]:(i[o-1]+i[o]+Pie)/Iie}function _x(t,e){const r=ny(t,e);if(r!==void 0)return r;for(const n of e)if(n.value)return n.value}function _ie(t,e){if(t===1)return Pe(l2(t,e),"%internal");const r=new Map,n=(o,a)=>{const c=r.get(o)||{result:o,weight:0};c.weight+=a,r.set(o,c)};for(const{weight:o,value:a}of e){const c=Pe(a);n(c-1,o),n(c,o),n(c+1,o)}let s=0,i;for(const{weight:o,result:a}of r.values())o>=t&&(o>s||i!=null&&o===s&&a>i)&&(s=o,i=a);return i}var sn,$i,Tf,yn,q7,u2,K7,Q7,f2;class G7 extends co{constructor(r,n,s){super(n,s);j(this,yn);N(this,"quorum");N(this,"eventQuorum");N(this,"eventWorkers");j(this,sn);j(this,$i);j(this,Tf);T(this,sn,r.map(i=>i instanceof co?Object.assign({provider:i},e3,t3):Object.assign({},e3,i,t3))),T(this,$i,-2),T(this,Tf,null),s&&s.quorum!=null?this.quorum=s.quorum:this.quorum=Math.ceil(w(this,sn).reduce((i,o)=>(i+=o.weight,i),0)/2),this.eventQuorum=1,this.eventWorkers=1,P(this.quorum<=w(this,sn).reduce((i,o)=>i+o.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return w(this,sn).map(r=>{const n=Object.assign({},r);for(const s in n)s[0]==="_"&&delete n[s];return n})}async _detectNetwork(){return ot.from(ve(await this._perform({method:"chainId"})))}async _translatePerform(r,n){switch(n.method){case"broadcastTransaction":return await r.broadcastTransaction(n.signedTransaction);case"call":return await r.call(Object.assign({},n.transaction,{blockTag:n.blockTag}));case"chainId":return(await r.getNetwork()).chainId;case"estimateGas":return await r.estimateGas(n.transaction);case"getBalance":return await r.getBalance(n.address,n.blockTag);case"getBlock":{const s="blockHash"in n?n.blockHash:n.blockTag;return await r.getBlock(s,n.includeTransactions)}case"getBlockNumber":return await r.getBlockNumber();case"getCode":return await r.getCode(n.address,n.blockTag);case"getGasPrice":return(await r.getFeeData()).gasPrice;case"getPriorityFee":return(await r.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await r.getLogs(n.filter);case"getStorage":return await r.getStorage(n.address,n.position,n.blockTag);case"getTransaction":return await r.getTransaction(n.hash);case"getTransactionCount":return await r.getTransactionCount(n.address,n.blockTag);case"getTransactionReceipt":return await r.getTransactionReceipt(n.hash);case"getTransactionResult":return await r.getTransactionResult(n.hash)}}async _perform(r){if(r.method==="broadcastTransaction"){const o=w(this,sn).map(l=>null),a=w(this,sn).map(async({provider:l,weight:u},f)=>{try{const d=await l._perform(r);o[f]=Object.assign(Nx({result:d}),{weight:u})}catch(d){o[f]=Object.assign(Nx({error:d}),{weight:u})}});for(;;){const l=o.filter(d=>d!=null);for(const{value:d}of l)if(!(d instanceof Error))return d;const u=ny(this.quorum,o.filter(d=>d!=null));if(Ht(u,"INSUFFICIENT_FUNDS"))throw u;const f=a.filter((d,h)=>o[h]==null);if(f.length===0)break;await Promise.race(f)}const c=_x(this.quorum,o);if(z(c!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:r,results:o.map(Rx)}}),c instanceof Error)throw c;return c}await Y(this,yn,K7).call(this);const n=new Set;let s=0;for(;;){const o=Y(this,yn,u2).call(this,n,r);if(o==null||(s+=o.config.weight,s>=this.quorum))break}const i=await Y(this,yn,f2).call(this,n,r);for(const o of n)o.perform&&o.result==null&&o.config.lateResponses++;return i}async destroy(){for(const{provider:r}of w(this,sn))r.destroy();super.destroy()}}sn=new WeakMap,$i=new WeakMap,Tf=new WeakMap,yn=new WeakSet,q7=function(r){const n=Array.from(r).map(i=>i.config),s=w(this,sn).slice();Oie(s),s.sort((i,o)=>i.priority-o.priority);for(const i of s)if(!i._lastFatalError&&n.indexOf(i)===-1)return i;return null},u2=function(r,n){const s=Y(this,yn,q7).call(this,r);if(s==null)return null;const i={config:s,result:null,didBump:!1,perform:null,staller:null},o=c2();return i.perform=(async()=>{try{s.requests++;const c=await this._translatePerform(s.provider,n);i.result={result:c}}catch(c){s.errorResponses++,i.result={error:c}}const a=c2()-o;s._totalTime+=a,s.rollingDuration=.95*s.rollingDuration+.05*a,i.perform=null})(),i.staller=(async()=>{await Rie(s.stallTimeout),i.staller=null})(),r.add(i),i},K7=async function(){let r=w(this,Tf);if(!r){const n=[];w(this,sn).forEach(s=>{n.push((async()=>{await Nie(s,0),s._lastFatalError||(s._network=await s.provider.getNetwork())})())}),T(this,Tf,r=(async()=>{await Promise.all(n);let s=null;for(const i of w(this,sn)){if(i._lastFatalError)continue;const o=i._network;s==null?s=o.chainId:o.chainId!==s&&z(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await r},Q7=async function(r,n){const s=[];for(const i of r)if(i.result!=null){const{tag:o,value:a}=Nx(i.result);s.push({tag:o,value:a,weight:i.config.weight})}if(!(s.reduce((i,o)=>i+o.weight,0)!o._lastFatalError).map(o=>({value:o.blockNumber,tag:Pe(o.blockNumber).toString(),weight:o.weight}))))));const i=_ie(this.quorum,s);return i===void 0?void 0:(i>w(this,$i)&&T(this,$i,i),w(this,$i))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return l2(this.quorum,s);case"getBlock":return"blockTag"in n&&n.blockTag==="pending"?_x(this.quorum,s):ny(this.quorum,s);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return ny(this.quorum,s);case"broadcastTransaction":return _x(this.quorum,s)}z(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${Rx(n.method)})`})}},f2=async function(r,n){if(r.size===0)throw new Error("no runners?!");const s=[];let i=0;for(const a of r){if(a.perform&&s.push(a.perform),a.staller){s.push(a.staller);continue}a.didBump||(a.didBump=!0,i++)}const o=await Y(this,yn,Q7).call(this,r,n);if(o!==void 0){if(o instanceof Error)throw o;return o}for(let a=0;a0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:n,results:Array.from(r).map(a=>Rx(a.result))}}),await Promise.race(s),await Y(this,yn,f2).call(this,r,n)};function Mie(t){return t&&typeof t.send=="function"&&typeof t.close=="function"}const Die="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function Bie(t,e){e==null&&(e={});const r=o=>e[o]==="-"?!1:typeof e.exclusive=="string"?o===e.exclusive:Array.isArray(e.exclusive)?e.exclusive.indexOf(o)!==-1:!0;if(typeof t=="string"&&t.match(/^https?:/))return new zt(t);if(typeof t=="string"&&t.match(/^wss?:/)||Mie(t))return new z5(t);let n=null;try{n=ot.from(t)}catch{}const s=[];if(r("publicPolygon")&&n&&(n.name==="matic"?s.push(new zt("https://polygon-rpc.com/",n,{staticNetwork:n})):n.name==="matic-amoy"&&s.push(new zt("https://rpc-amoy.polygon.technology/",n,{staticNetwork:n}))),r("alchemy"))try{s.push(new k0(t,e.alchemy))}catch{}if(r("ankr")&&e.ankr!=null)try{s.push(new E0(t,e.ankr))}catch{}if(r("chainstack"))try{s.push(new A0(t,e.chainstack))}catch{}if(r("cloudflare"))try{s.push(new j7(t))}catch{}if(r("etherscan"))try{s.push(new U7(t,e.etherscan))}catch{}if(r("infura"))try{let o=e.infura,a;typeof o=="object"&&(a=o.projectSecret,o=o.projectId),s.push(new ed(t,o,a))}catch{}if(r("quicknode"))try{let o=e.quicknode;s.push(new S0(t,o))}catch{}if(z(s.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),s.length===1)return s[0];let i=Math.floor(s.length/2);return i>2&&(i=2),n&&Die.indexOf(n.name)!==-1&&(i=1),e&&e.quorum&&(i=e.quorum),new G7(s,void 0,{quorum:i})}var sa,Gc;const Hk=class Hk extends lo{constructor(r){super(r.provider);N(this,"signer");j(this,sa);j(this,Gc);fe(this,{signer:r}),T(this,sa,null),T(this,Gc,0)}async getAddress(){return this.signer.getAddress()}connect(r){return new Hk(this.signer.connect(r))}async getNonce(r){if(r==="pending"){w(this,sa)==null&&T(this,sa,super.getNonce("pending"));const n=w(this,Gc);return await w(this,sa)+n}return super.getNonce(r)}increment(){Il(this,Gc)._++}reset(){T(this,Gc,0),T(this,sa,null)}async sendTransaction(r){const n=this.getNonce("pending");return this.increment(),r=await this.signer.populateTransaction(r),r.nonce=await n,await this.signer.sendTransaction(r)}signTransaction(r){return this.signer.signTransaction(r)}signMessage(r){return this.signer.signMessage(r)}signTypedData(r,n,s){return this.signer.signTypedData(r,n,s)}};sa=new WeakMap,Gc=new WeakMap;let d2=Hk;var Pf;class Lie extends L7{constructor(r,n,s){const i=Object.assign({},s??{},{batchMaxCount:1});P(r&&r.request,"invalid EIP-1193 provider","ethereum",r);super(n,i);j(this,Pf);T(this,Pf,async(o,a)=>{const c={method:o,params:a};this.emit("debug",{action:"sendEip1193Request",payload:c});try{const l=await r.request(c);return this.emit("debug",{action:"receiveEip1193Result",result:l}),l}catch(l){const u=new Error(l.message);throw u.code=l.code,u.data=l.data,u.payload=c,this.emit("debug",{action:"receiveEip1193Error",error:u}),u}})}async send(r,n){return await this._start(),await super.send(r,n)}async _send(r){P(!Array.isArray(r),"EIP-1193 does not support batch request","payload",r);try{const n=await w(this,Pf).call(this,r.method,r.params||[]);return[{id:r.id,result:n}]}catch(n){return[{id:r.id,error:{code:n.code,data:n.data,message:n.message}}]}}getRpcError(r,n){switch(n=JSON.parse(JSON.stringify(n)),n.error.code||-1){case 4001:n.error.message=`ethers-user-denied: ${n.error.message}`;break;case 4200:n.error.message=`ethers-unsupported: ${n.error.message}`;break}return super.getRpcError(r,n)}async hasSigner(r){r==null&&(r=0);const n=await this.send("eth_accounts",[]);return typeof r=="number"?n.length>r:(r=r.toLowerCase(),n.filter(s=>s.toLowerCase()===r).length!==0)}async getSigner(r){if(r==null&&(r=0),!await this.hasSigner(r))try{await w(this,Pf).call(this,"eth_requestAccounts",[])}catch(n){const s=n.payload;throw this.getRpcError(s,{id:s.id,error:n})}return await super.getSigner(r)}}Pf=new WeakMap;const wp="62e1ad51b37b8e00394bda3b";function jie(t){switch(t){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}P(!1,"unsupported network","network",t)}class fv extends zt{constructor(r,n,s){r==null&&(r="mainnet");const i=ot.from(r);n==null&&(n=wp),s==null&&(s=null);const o={staticNetwork:i},a=fv.getRequest(i,n,s);super(a,i,o);N(this,"applicationId");N(this,"applicationSecret");fe(this,{applicationId:n,applicationSecret:s})}_getProvider(r){try{return new fv(r,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(r)}static getRequest(r,n,s){n==null&&(n=wp);const i=new qt(`https://${jie(r.name)}/v1/lb/${n}`);return i.allowGzip=!0,s&&i.setCredentials("",s),n===wp&&(i.retryFunc=async(o,a,c)=>(Ka("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===wp}}const Fie=void 0;var If;const zk=class zk extends lo{constructor(r,n){super(n);N(this,"address");j(this,If);P(r&&typeof r.sign=="function","invalid private key","privateKey","[ REDACTED ]"),T(this,If,r);const s=bd(this.signingKey.publicKey);fe(this,{address:s})}get signingKey(){return w(this,If)}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(r){return new zk(w(this,If),r)}async signTransaction(r){r=Jf(r);const{to:n,from:s}=await Pt({to:r.to?sr(r.to,this.provider):void 0,from:r.from?sr(r.from,this.provider):void 0});n!=null&&(r.to=n),s!=null&&(r.from=s),r.from!=null&&(P(Te(r.from)===this.address,"transaction from address mismatch","tx.from",r.from),delete r.from);const i=yl.from(r);return i.signature=this.signingKey.sign(i.unsignedHash),i.serialized}async signMessage(r){return this.signMessageSync(r)}signMessageSync(r){return this.signingKey.sign(jg(r)).serialized}async signTypedData(r,n,s){const i=await Ds.resolveNames(r,n,s,async o=>{z(this.provider!=null,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:o}});const a=await this.provider.resolveName(o);return z(a!=null,"unconfigured ENS name","UNCONFIGURED_NAME",{value:o}),a});return this.signingKey.sign(Ds.hash(i.domain,n,i.value)).serialized}};If=new WeakMap;let T0=zk;const dv=" !#$%&'()*+,-./<=>?@[]^_`{|}~",Uie=/^[a-z]*$/i;function r3(t,e){let r=97;return t.reduce((n,s)=>(s===e?r++:s.match(Uie)?n.push(String.fromCharCode(r)+s):(r=97,n.push(s)),n),[])}function $ie(t,e){for(let s=dv.length-1;s>=0;s--)t=t.split(dv[s]).join(e.substring(2*s,2*s+2));const r=[],n=t.replace(/(:|([0-9])|([A-Z][a-z]*))/g,(s,i,o,a)=>{if(o)for(let c=parseInt(o);c>=0;c--)r.push(";");else r.push(i.toLowerCase());return""});if(n)throw new Error(`leftovers: ${JSON.stringify(n)}`);return r3(r3(r,";"),":")}function J7(t){return P(t[0]==="0","unsupported auwl data","data",t),$ie(t.substring(1+2*dv.length),t.substring(1,1+2*dv.length))}class Y7{constructor(e){N(this,"locale");fe(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}var Of,K0,qc,Q0,h2;class G5 extends Y7{constructor(r,n,s){super(r);j(this,Q0);j(this,Of);j(this,K0);j(this,qc);T(this,Of,n),T(this,K0,s),T(this,qc,null)}get _data(){return w(this,Of)}_decodeWords(){return J7(w(this,Of))}getWord(r){const n=Y(this,Q0,h2).call(this);return P(r>=0&&r=12&&r.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const n=new Uint8Array(Math.ceil(11*r.length/8));let s=0;for(let l=0;l=0,`invalid mnemonic word at index ${l}`,"mnemonic","[ REDACTED ]");for(let f=0;f<11;f++)u&1<<10-f&&(n[s>>3]|=1<<7-s%8),s++}const i=32*r.length/3,o=r.length/3,a=X7(o),c=Q(qr(n.slice(0,i/8)))[0]&a;return P(c===(n[n.length-1]&a),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),H(n.slice(0,i/8))}function Bx(t,e){P(t.length%4===0&&t.length>=16&&t.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),e==null&&(e=uo.wordlist());const r=[0];let n=11;for(let o=0;o8?(r[r.length-1]<<=8,r[r.length-1]|=t[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=t[o]>>8-n,r.push(t[o]&Hie(8-n)),n+=3);const s=t.length/4,i=parseInt(qr(t).substring(2,4),16)&X7(s);return r[r.length-1]<<=s,r[r.length-1]|=i>>8-s,e.join(r.map(o=>e.getWord(o)))}const Lx={};class ml{constructor(e,r,n,s,i){N(this,"phrase");N(this,"password");N(this,"wordlist");N(this,"entropy");s==null&&(s=""),i==null&&(i=uo.wordlist()),po(e,Lx,"Mnemonic"),fe(this,{phrase:n,password:s,wordlist:i,entropy:r})}computeSeed(){const e=mt("mnemonic"+this.password,"NFKD");return xi(mt(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,r,n){const s=Dx(e,n);return e=Bx(Q(s),n),new ml(Lx,s,e,r,n)}static fromEntropy(e,r,n){const s=Q(e,"entropy"),i=Bx(s,n);return new ml(Lx,H(s),i,r,n)}static entropyToPhrase(e,r){const n=Q(e,"entropy");return Bx(n,r)}static phraseToEntropy(e,r){return Dx(e,r)}static isValidMnemonic(e,r){try{return Dx(e,r),!0}catch{}return!1}}/*! MIT License. Copyright 2015-2022 Richard Moore . See LICENSE.txt. */var ar=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jx=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},sy,jn,Vs;const zie={16:10,24:12,32:14},Gie=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],Bn=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],Cp=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],qie=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],Kie=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],Qie=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],Jie=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],Yie=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],Xie=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],Zie=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],eoe=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],toe=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],roe=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],noe=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],soe=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function Fx(t){const e=[];for(let r=0;r>2,ar(this,Vs,"f")[o][u%4]=i[u],ar(this,jn,"f")[r-o][u%4]=i[u];let a=0,c=s,l;for(;c>16&255]<<24^Bn[l>>8&255]<<16^Bn[l&255]<<8^Bn[l>>24&255]^Gie[a]<<24,a+=1,s!=8)for(let h=1;h>8&255]<<8^Bn[l>>16&255]<<16^Bn[l>>24&255]<<24;for(let h=s/2+1;h>2,d=c%4,ar(this,Vs,"f")[f][d]=i[u],ar(this,jn,"f")[r-f][d]=i[u++],c++}for(let u=1;u>24&255]^roe[l>>16&255]^noe[l>>8&255]^soe[l&255]}encrypt(e){if(e.length!=16)throw new TypeError("invalid plaintext size (must be 16 bytes)");const r=ar(this,Vs,"f").length-1,n=[0,0,0,0];let s=Fx(e);for(let a=0;a<4;a++)s[a]^=ar(this,Vs,"f")[0][a];for(let a=1;a>24&255]^Kie[s[(c+1)%4]>>16&255]^Qie[s[(c+2)%4]>>8&255]^Jie[s[(c+3)%4]&255]^ar(this,Vs,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,Vs,"f")[r][a],i[4*a]=(Bn[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Bn[s[(a+1)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Bn[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Bn[s[(a+3)%4]&255]^o)&255;return i}decrypt(e){if(e.length!=16)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const r=ar(this,jn,"f").length-1,n=[0,0,0,0];let s=Fx(e);for(let a=0;a<4;a++)s[a]^=ar(this,jn,"f")[0][a];for(let a=1;a>24&255]^Xie[s[(c+3)%4]>>16&255]^Zie[s[(c+2)%4]>>8&255]^eoe[s[(c+1)%4]&255]^ar(this,jn,"f")[a][c];s=n.slice()}const i=new Uint8Array(16);let o=0;for(let a=0;a<4;a++)o=ar(this,jn,"f")[r][a],i[4*a]=(Cp[s[a]>>24&255]^o>>24)&255,i[4*a+1]=(Cp[s[(a+3)%4]>>16&255]^o>>16)&255,i[4*a+2]=(Cp[s[(a+2)%4]>>8&255]^o>>8)&255,i[4*a+3]=(Cp[s[(a+1)%4]&255]^o)&255;return i}}sy=new WeakMap,jn=new WeakMap,Vs=new WeakMap;class Z7{constructor(e,r,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new q5(r)},name:{enumerable:!0,value:e}})}}var Ep=function(t,e,r,n,s){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!s)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?s.call(t,r):s?s.value=r:e.set(t,r),r},Fl=function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},ih,Ci;class K5 extends Z7{constructor(e,r){if(super("ECC",e,K5),ih.set(this,void 0),Ci.set(this,void 0),r){if(r.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");Ep(this,ih,new Uint8Array(r),"f")}else Ep(this,ih,new Uint8Array(16),"f");Ep(this,Ci,this.iv,"f")}get iv(){return new Uint8Array(Fl(this,ih,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e.length);for(let n=0;nNumber.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let r=15;r>=0;--r)Ln(this,Fn,"f")[r]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(e.length!==16)throw new TypeError("invalid counter initial Uint8Array value length");Ln(this,Fn,"f").set(e)}increment(){for(let e=15;e>=0;e--)if(Ln(this,Fn,"f")[e]===255)Ln(this,Fn,"f")[e]=0;else{Ln(this,Fn,"f")[e]++;break}}encrypt(e){var r,n;const s=new Uint8Array(e);for(let i=0;i16)throw new TypeError("PKCS#7 padding byte out of range");const r=t.length-e;for(let n=0;n0&&(n&n-1)===0,"invalid kdf.N","kdf.N",n),P(s>0&&i>0,"invalid kdf","kdf",e);const o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:r,N:n,r:s,p:i,dkLen:64}}else if(e.toLowerCase()==="pbkdf2"){const r=Rt(t,"crypto.kdfparams.salt:data!"),n=Rt(t,"crypto.kdfparams.prf:string!"),s=n.split("-").pop();P(s==="sha256"||s==="sha512","invalid kdf.pdf","kdf.pdf",n);const i=Rt(t,"crypto.kdfparams.c:int!"),o=Rt(t,"crypto.kdfparams.dklen:int!");return P(o===32,"invalid kdf.dklen","kdf.dklen",o),{name:"pbkdf2",salt:r,count:i,dkLen:o,algorithm:s}}}P(!1,"unsupported key-derivation function","kdf",e)}function n_(t,e){const r=JSON.parse(t),n=k1(e),s=r_(r);if(s.name==="pbkdf2"){const{salt:f,count:d,dkLen:h,algorithm:y}=s,p=xi(n,f,d,h,y);return hv(r,p)}z(s.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:s});const{salt:i,N:o,r:a,p:c,dkLen:l}=s,u=za(n,i,o,a,c,l);return hv(r,u)}function n3(t){return new Promise(e=>{setTimeout(()=>{e()},t)})}async function s_(t,e,r){const n=JSON.parse(t),s=k1(e),i=r_(n);if(i.name==="pbkdf2"){r&&(r(0),await n3(0));const{salt:d,count:h,dkLen:y,algorithm:p}=i,b=xi(s,d,h,y,p);return r&&(r(1),await n3(0)),hv(n,b)}z(i.name==="scrypt","cannot be reached","UNKNOWN_ERROR",{params:i});const{salt:o,N:a,r:c,p:l,dkLen:u}=i,f=await Ha(s,o,a,c,l,u,r);return hv(n,f)}function i_(t){const e=t.salt!=null?Q(t.salt,"options.salt"):Rr(32);let r=1<<17,n=8,s=1;return t.scrypt&&(t.scrypt.N&&(r=t.scrypt.N),t.scrypt.r&&(n=t.scrypt.r),t.scrypt.p&&(s=t.scrypt.p)),P(typeof r=="number"&&r>0&&Number.isSafeInteger(r)&&(BigInt(r)&BigInt(r-1))===BigInt(0),"invalid scrypt N parameter","options.N",r),P(typeof n=="number"&&n>0&&Number.isSafeInteger(n),"invalid scrypt r parameter","options.r",n),P(typeof s=="number"&&s>0&&Number.isSafeInteger(s),"invalid scrypt p parameter","options.p",s),{name:"scrypt",dkLen:32,salt:e,N:r,r:n,p:s}}function o_(t,e,r,n){const s=Q(r.privateKey,"privateKey"),i=n.iv!=null?Q(n.iv,"options.iv"):Rr(16);P(i.length===16,"invalid options.iv length","options.iv",n.iv);const o=n.uuid!=null?Q(n.uuid,"options.uuid"):Rr(16);P(o.length===16,"invalid options.uuid length","options.uuid",n.iv);const a=t.slice(0,16),c=t.slice(16,32),l=new td(a,i),u=Q(l.encrypt(s)),f=Ne(Le([c,u])),d={address:r.address.substring(2).toLowerCase(),id:CR(o),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:H(i).substring(2)},ciphertext:H(u).substring(2),kdf:"scrypt",kdfparams:{salt:H(e.salt).substring(2),n:e.N,dklen:32,p:e.p,r:e.r},mac:f.substring(2)}};if(r.mnemonic){const h=n.client!=null?n.client:`ethers/${c5}`,y=r.mnemonic.path||t_,p=r.mnemonic.locale||"en",b=t.slice(32,64),v=Q(r.mnemonic.entropy,"account.mnemonic.entropy"),g=Rr(16),x=new td(b,g),k=Q(x.encrypt(v)),S=new Date,R="UTC--"+(S.getUTCFullYear()+"-"+$d(S.getUTCMonth()+1,2)+"-"+$d(S.getUTCDate(),2)+"T"+$d(S.getUTCHours(),2)+"-"+$d(S.getUTCMinutes(),2)+"-"+$d(S.getUTCSeconds(),2)+".0Z")+"--"+d.address;d["x-ethers"]={client:h,gethFilename:R,path:y,locale:p,mnemonicCounter:H(g).substring(2),mnemonicCiphertext:H(k).substring(2),version:"0.1"}}return JSON.stringify(d)}function Q5(t,e,r){r==null&&(r={});const n=k1(e),s=i_(r),i=za(n,s.salt,s.N,s.r,s.p,64);return o_(Q(i),s,t,r)}async function J5(t,e,r){r==null&&(r={});const n=k1(e),s=i_(r),i=await Ha(n,s.salt,s.N,s.r,s.p,64,r.progressCallback);return o_(Q(i),s,t,r)}const iy="m/44'/60'/0'/0/0",aoe=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),hi=2147483648,coe=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),loe="0123456789abcdef";function pv(t,e){let r="";for(;t;)r=loe[t%16]+r,t=Math.trunc(t/16);for(;r.length=0;o-=8)s[33+(o>>3)]=t>>24-o&255;const i=Q(Wa("sha512",e,s));return{IL:i.slice(0,32),IR:i.slice(32)}}function c_(t,e){const r=e.split("/");P(r.length>0,"invalid path","path",e),r[0]==="m"&&(P(t.depth===0,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${t.depth}`,"path",e),r.shift());let n=t;for(let s=0;s=16&&s.length<=64,"invalid seed","seed","[REDACTED]");const i=Q(Wa("sha512",aoe,s)),o=new Os(H(i.slice(0,32)));return new hs(Gs,o,"0x00000000",H(i.slice(32)),"m",0,0,n,null)},j(hs,Kc);let _u=hs;class rd extends uv{constructor(r,n,s,i,o,a,c,l,u){super(n,u);N(this,"publicKey");N(this,"fingerprint");N(this,"parentFingerprint");N(this,"chainCode");N(this,"path");N(this,"index");N(this,"depth");po(r,Gs,"HDNodeVoidWallet"),fe(this,{publicKey:s});const f=st(Va(qr(s)),0,4);fe(this,{publicKey:s,fingerprint:f,parentFingerprint:i,chainCode:o,path:a,index:c,depth:l})}connect(r){return new rd(Gs,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,r)}get extendedKey(){return z(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),y2(Le(["0x0488B21E",pv(this.depth,1),this.parentFingerprint,pv(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return this.path!=null}deriveChild(r){const n=Pe(r,"index");P(n<=4294967295,"invalid index","index",n);let s=this.path;s&&(s+="/"+(n&~hi),n&hi&&(s+="'"));const{IR:i,IL:o}=a_(n,this.chainCode,this.publicKey,null),a=Os.addPoints(o,this.publicKey,!0),c=bd(a);return new rd(Gs,c,a,this.fingerprint,H(i),s,n,this.depth+1,this.provider)}derivePath(r){return c_(this,r)}}function uoe(t){const e=Pe(t,"index");return P(e>=0&&e=0&&e{setTimeout(()=>{e()},t)})}var Y0,li,x2;let l_=(li=class extends T0{constructor(e,r){typeof e=="string"&&!e.startsWith("0x")&&(e="0x"+e);let n=typeof e=="string"?new Os(e):e;super(n,r)}connect(e){return new li(this.signingKey,e)}async encrypt(e,r){const n={address:this.address,privateKey:this.privateKey};return await J5(n,e,{progressCallback:r})}encryptSync(e){const r={address:this.address,privateKey:this.privateKey};return Q5(r,e)}static async fromEncryptedJson(e,r,n){var i;let s=null;return p2(e)?s=await s_(e,r,n):g2(e)&&(n&&(n(0),await s3(0)),s=m2(e,r),n&&(n(1),await s3(0))),Y(i=li,Y0,x2).call(i,s)}static fromEncryptedJsonSync(e,r){var s;let n=null;return p2(e)?n=n_(e,r):g2(e)?n=m2(e,r):P(!1,"invalid JSON wallet","json","[ REDACTED ]"),Y(s=li,Y0,x2).call(s,n)}static createRandom(e){const r=_u.createRandom();return e?r.connect(e):r}static fromPhrase(e,r){const n=_u.fromPhrase(e);return r?n.connect(r):n}},Y0=new WeakSet,x2=function(e){if(P(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&e.mnemonic.locale==="en"){const n=ml.fromEntropy(e.mnemonic.entropy),s=_u.fromMnemonic(n,e.mnemonic.path);if(s.address===e.address&&s.privateKey===e.privateKey)return s;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const r=new li(e.privateKey);return P(r.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),r},j(li,Y0),li);const doe=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function hoe(t,e){const r=(1<=t;){const c=s>>i-t;s&=(1<{const s=n.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);P(s!==null,"internal error parsing accents","accents",e);let i=0;const o=hoe(parseInt(s[3]),s[4]),a=parseInt(s[2]),c=new RegExp(`([${s[1]}])`,"g");r=r.replace(c,(l,u)=>(--o[i]===0&&(u=String.fromCharCode(u.charCodeAt(0),a),i++),u))}),r.split(",")}var X0;class yoe extends G5{constructor(r,n,s,i){super(r,n,i);j(this,X0);T(this,X0,s)}get _accent(){return w(this,X0)}_decodeWords(){return poe(this._data,this._accent)}}X0=new WeakMap;const voe={en:uo.wordlist()},goe=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:Kt,AbstractProvider:co,AbstractSigner:lo,AlchemyProvider:k0,AnkrProvider:E0,BaseContract:Xf,BaseWallet:T0,Block:m7,BrowserProvider:Lie,ChainstackProvider:A0,CloudflareProvider:j7,ConstructorFragment:ai,Contract:dn,ContractEventPayload:C7,ContractFactory:U5,ContractTransactionReceipt:w7,ContractTransactionResponse:$g,ContractUnknownEventPayload:L5,EnsPlugin:E1,EnsResolver:w0,ErrorDescription:v7,ErrorFragment:Wr,EtherSymbol:Ure,EtherscanPlugin:H5,EtherscanProvider:U7,EventFragment:As,EventLog:Ug,EventPayload:d5,FallbackFragment:ni,FallbackProvider:G7,FeeData:qw,FeeDataNetworkPlugin:Jw,FetchCancelSignal:gR,FetchRequest:qt,FetchResponse:Xi,FetchUrlFeeDataNetworkPlugin:_7,FixedNumber:p0,Fragment:Na,FunctionFragment:Ss,GasCostPlugin:C1,HDNodeVoidWallet:rd,HDNodeWallet:_u,Indexed:Gw,InfuraProvider:ed,InfuraWebSocketProvider:z7,Interface:pt,IpcSocketProvider:Fie,JsonRpcApiProvider:V5,JsonRpcProvider:zt,JsonRpcSigner:ry,LangEn:uo,Log:wd,LogDescription:p7,MaxInt256:Fre,MaxUint256:AN,MessagePrefix:SN,MinInt256:jre,Mnemonic:ml,MulticoinProviderPlugin:I7,N:Bre,NamedFragment:b1,Network:ot,NetworkPlugin:qa,NonceManager:d2,ParamType:or,PocketProvider:fv,QuickNodeProvider:S0,Result:hl,Signature:os,SigningKey:Os,SocketBlockSubscriber:$7,SocketEventSubscriber:V7,SocketPendingSubscriber:W7,SocketProvider:H7,SocketSubscriber:Hg,StructFragment:ba,Transaction:yl,TransactionDescription:y7,TransactionReceipt:D5,TransactionResponse:Yf,Typed:gr,TypedDataEncoder:Ds,UndecodedEventLog:B5,UnmanagedSubscriber:C0,Utf8ErrorFuncs:fR,VoidSigner:uv,Wallet:l_,WebSocketProvider:z5,WeiPerEther:Lre,Wordlist:Y7,WordlistOwl:G5,WordlistOwlA:yoe,ZeroAddress:mi,ZeroHash:pl,accessListify:vo,assert:z,assertArgument:P,assertArgumentCount:l5,assertNormalize:u5,assertPrivate:po,checkResultErrors:tte,computeAddress:bd,computeHmac:Wa,concat:Le,copyRequest:Jf,dataLength:xa,dataSlice:st,decodeBase58:aR,decodeBase64:cR,decodeBytes32String:Rse,decodeRlp:v1,decryptCrowdsaleJson:m2,decryptKeystoreJson:s_,decryptKeystoreJsonSync:n_,defaultPath:iy,defineProperties:fe,dnsEncode:ZN,encodeBase58:f5,encodeBase64:lR,encodeBytes32String:Ose,encodeRlp:Ra,encryptKeystoreJson:J5,encryptKeystoreJsonSync:Q5,ensNormalize:XN,formatEther:Zee,formatUnits:wR,fromTwos:h0,getAccountPath:uoe,getAddress:Te,getBigInt:ve,getBytes:Q,getBytesCopy:tr,getCreate2Address:qre,getCreateAddress:S5,getDefaultProvider:Bie,getIcapAddress:Gre,getIndexedAccountPath:foe,getNumber:Pe,getUint:y1,hashMessage:jg,hexlify:H,id:Kr,isAddress:PN,isAddressable:T5,isBytesLike:gi,isCallException:Pg,isCrowdsaleJson:g2,isError:Ht,isHexString:et,isKeystoreJson:p2,isValidName:Vne,keccak256:Ne,lock:$re,makeError:ft,mask:aa,namehash:cv,parseEther:Iw,parseUnits:rv,pbkdf2:xi,randomBytes:Rr,recoverAddress:Qf,resolveAddress:sr,resolveProperties:Pt,ripemd160:Va,scrypt:Ha,scryptSync:za,sha256:qr,sha512:g1,showThrottleMessage:Ka,solidityPacked:De,solidityPackedKeccak256:Zi,solidityPackedSha256:ase,stripZerosLeft:Bee,toBeArray:rr,toBeHex:In,toBigInt:md,toNumber:oR,toQuantity:pr,toTwos:Rg,toUtf8Bytes:mt,toUtf8CodePoints:Wee,toUtf8String:Ms,uuidV4:CR,verifyMessage:e7,verifyTypedData:pse,version:c5,wordlists:voe,zeroPadBytes:Ig,zeroPadValue:rs},Symbol.toStringTag,{value:"Module"})),moe=[{inputs:[{internalType:"bytes32",type:"bytes32"}],name:"getAlternativeSignature",outputs:[{internalType:"string",type:"string"}],stateMutability:"view",type:"function"}];var xoe=Object.freeze({__proto__:null,abi:moe});const boe=[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],woe={isValidSignatureBytes32:"0x1626ba7e"};var Coe=Object.freeze({__proto__:null,abi:boe,returns:woe});const Eoe=[{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC1271Revert",type:"error"},{inputs:[{internalType:"bytes",name:"error",type:"bytes"}],name:"ERC6492DeployFailed",type:"error"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSig",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"allowSideEffects",type:"bool"},{internalType:"bool",name:"deployAlreadyDeployed",type:"bool"}],name:"isValidSigImpl",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffects",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],name:"isValidSigWithSideEffectsNoThrow",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];var koe=Object.freeze({__proto__:null,abi:Eoe});const Aoe=[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}];var Soe=Object.freeze({__proto__:null,abi:Aoe});const Toe=[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"},{type:"function",name:"setExtraImageHash",constant:!1,inputs:[{type:"bytes32",name:"imageHash"},{type:"uint256",name:"expiration"}],outputs:[],payable:!1,stateMutability:"nonpayable"}];var Poe=Object.freeze({__proto__:null,abi:Toe});const Ioe=[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}];var Ooe=Object.freeze({__proto__:null,abi:Ioe});const Roe=[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}];var Noe=Object.freeze({__proto__:null,abi:Roe});const _oe=[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}];var Moe=Object.freeze({__proto__:null,abi:_oe});const Gt={erc6492:koe,erc5719:xoe,erc1271:Coe,factory:Soe,mainModule:Poe,mainModuleUpgradable:Ooe,sequenceUtils:Noe,requireFreshSigner:Moe},Doe=Object.freeze(Object.defineProperty({__proto__:null,walletContracts:Gt},Symbol.toStringTag,{value:"Module"}));function yv(){return yv=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Ee({},n,s)).then(i=>ke(i).then(o=>({version:o.version})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Ee({},n,s)).then(i=>ke(i).then(o=>({status:o.status})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.clock=(n,s)=>this.fetch(this.url("Clock"),Ee({},n,s)).then(i=>ke(i).then(o=>({serverTime:o.serverTime})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Ee({},n,s)).then(i=>ke(i).then(o=>({data:o.data})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getAuthToken=(n,s,i)=>this.fetch(this.url("GetAuthToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getAuthToken2=(n,s,i)=>this.fetch(this.url("GetAuthToken2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,jwtToken:a.jwtToken,address:a.address,user:a.user})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.sendPasswordlessLink=(n,s,i)=>this.fetch(this.url("SendPasswordlessLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.friendList=(n,s,i)=>this.fetch(this.url("FriendList"),Ee(n,s,i)).then(o=>ke(o).then(a=>({page:a.page,friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getFriendByAddress=(n,s,i)=>this.fetch(this.url("GetFriendByAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.searchFriends=(n,s,i)=>this.fetch(this.url("SearchFriends"),Ee(n,s,i)).then(o=>ke(o).then(a=>({friends:a.friends})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addFriend=(n,s,i)=>this.fetch(this.url("AddFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateFriendNickname=(n,s,i)=>this.fetch(this.url("UpdateFriendNickname"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,friend:a.friend})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeFriend=(n,s,i)=>this.fetch(this.url("RemoveFriend"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.contractCall=(n,s,i)=>this.fetch(this.url("ContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({returns:a.returns})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.decodeContractCall=(n,s,i)=>this.fetch(this.url("DecodeContractCall"),Ee(n,s,i)).then(o=>ke(o).then(a=>({call:a.call})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.lookupContractCallSelectors=(n,s,i)=>this.fetch(this.url("LookupContractCallSelectors"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signatures:a.signatures})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetch=(n,s,i)=>this.fetch(this.url("UserStorageFetch"),Ee(n,s,i)).then(o=>ke(o).then(a=>({object:a.object})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageSave=(n,s,i)=>this.fetch(this.url("UserStorageSave"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageDelete=(n,s,i)=>this.fetch(this.url("UserStorageDelete"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.userStorageFetchAll=(n,s,i)=>this.fetch(this.url("UserStorageFetchAll"),Ee(n,s,i)).then(o=>ke(o).then(a=>({objects:a.objects})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getMoonpayLink=(n,s,i)=>this.fetch(this.url("GetMoonpayLink"),Ee(n,s,i)).then(o=>ke(o).then(a=>({signedUrl:a.signedUrl})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineClientToken=(n,s)=>this.fetch(this.url("GetSardineClientToken"),Ee({},n,s)).then(i=>ke(i).then(o=>({token:o.token})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.getSardineNFTCheckoutToken=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutToken"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSardineNFTCheckoutOrderStatus=(n,s,i)=>this.fetch(this.url("GetSardineNFTCheckoutOrderStatus"),Ee(n,s,i)).then(o=>ke(o).then(a=>({resp:a.resp})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.resolveENSAddress=(n,s,i)=>this.fetch(this.url("ResolveENSAddress"),Ee(n,s,i)).then(o=>ke(o).then(a=>({address:a.address,ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidSignature=(n,s,i)=>this.fetch(this.url("IsValidSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidMessageSignature=(n,s,i)=>this.fetch(this.url("IsValidMessageSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidTypedDataSignature=(n,s,i)=>this.fetch(this.url("IsValidTypedDataSignature"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.isValidETHAuthProof=(n,s,i)=>this.fetch(this.url("IsValidETHAuthProof"),Ee(n,s,i)).then(o=>ke(o).then(a=>({isValid:a.isValid})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCoinPrices=(n,s,i)=>this.fetch(this.url("GetCoinPrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getCollectiblePrices=(n,s,i)=>this.fetch(this.url("GetCollectiblePrices"),Ee(n,s,i)).then(o=>ke(o).then(a=>({tokenPrices:a.tokenPrices})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getExchangeRate=(n,s,i)=>this.fetch(this.url("GetExchangeRate"),Ee(n,s,i)).then(o=>ke(o).then(a=>({exchangeRate:a.exchangeRate})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryStore=(n,s,i)=>this.fetch(this.url("MemoryStore"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.memoryLoad=(n,s,i)=>this.fetch(this.url("MemoryLoad"),Ee(n,s,i)).then(o=>ke(o).then(a=>({value:a.value})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInviteInfo=(n,s)=>this.fetch(this.url("GetInviteInfo"),Ee({},n,s)).then(i=>ke(i).then(o=>({inviteInfo:o.inviteInfo})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.isValidAccessCode=(n,s,i)=>this.fetch(this.url("IsValidAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.internalClaimAccessCode=(n,s,i)=>this.fetch(this.url("InternalClaimAccessCode"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.blockNumberAtTime=(n,s,i)=>this.fetch(this.url("BlockNumberAtTime"),Ee(n,s,i)).then(o=>ke(o).then(a=>({blocks:a.blocks})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret=(n,s,i)=>this.fetch(this.url("PaperSessionSecret"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.paperSessionSecret2=(n,s,i)=>this.fetch(this.url("PaperSessionSecret2"),Ee(n,s,i)).then(o=>ke(o).then(a=>({secret:a.secret})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.linkWallet=(n,s,i)=>this.fetch(this.url("LinkWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status,linkedWalletAddress:a.linkedWalletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getLinkedWallets=(n,s,i)=>this.fetch(this.url("GetLinkedWallets"),Ee(n,s,i)).then(o=>ke(o).then(a=>({linkedWallets:a.linkedWallets})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.removeLinkedWallet=(n,s,i)=>this.fetch(this.url("RemoveLinkedWallet"),Ee(n,s,i)).then(o=>ke(o).then(a=>({status:a.status})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.generateWaaSVerificationURL=(n,s,i)=>this.fetch(this.url("GenerateWaaSVerificationURL"),Ee(n,s,i)).then(o=>ke(o).then(a=>({nonce:a.nonce,verificationURL:a.verificationURL})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.validateWaaSVerificationNonce=(n,s,i)=>this.fetch(this.url("ValidateWaaSVerificationNonce"),Ee(n,s,i)).then(o=>ke(o).then(a=>({walletAddress:a.walletAddress})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getSwapQuotes=(n,s,i)=>this.fetch(this.url("GetSwapQuotes"),Ee(n,s,i)).then(o=>ke(o).then(a=>({swapQuotes:a.swapQuotes})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addCurrencyGroup=(n,s,i)=>this.fetch(this.url("AddCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({groupId:a.groupId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateCurrencyGroup=(n,s,i)=>this.fetch(this.url("UpdateCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listCurrencyGroups=(n,s)=>this.fetch(this.url("ListCurrencyGroups"),Ee({},n,s)).then(i=>ke(i).then(o=>({currencyGroups:o.currencyGroups})),i=>{throw xe.new({cause:`fetch(): ${i.message||""}`})}),this.deleteCurrencyGroup=(n,s,i)=>this.fetch(this.url("DeleteCurrencyGroup"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.addInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("AddInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configId:a.configId})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.getInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("GetInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({config:a.config})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.listInventoryPaymentConfigs=(n,s,i)=>this.fetch(this.url("ListInventoryPaymentConfigs"),Ee(n,s,i)).then(o=>ke(o).then(a=>({configs:a.configs})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.updateInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("UpdateInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.deleteInventoryPaymentConfig=(n,s,i)=>this.fetch(this.url("DeleteInventoryPaymentConfig"),Ee(n,s,i)).then(o=>ke(o).then(a=>({ok:a.ok})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.requestInventoryPayment=(n,s,i)=>this.fetch(this.url("RequestInventoryPayment"),Ee(n,s,i)).then(o=>ke(o).then(a=>({payment:a.payment})),o=>{throw xe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Ee=(t={},e={},r=null)=>({method:"POST",headers:yv({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ke=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Y5.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Woe[n]||Ot).new(r)}return r});let Ot=class f_ extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,f_.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},d_=class h_ extends Ot{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,h_.prototype)}},xe=class p_ extends Ot{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,p_.prototype)}},y_=class v_ extends Ot{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,v_.prototype)}},g_=class m_ extends Ot{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,m_.prototype)}},x_=class b_ extends Ot{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,b_.prototype)}},Y5=class w_ extends Ot{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,w_.prototype)}},C_=class E_ extends Ot{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,E_.prototype)}},k_=class A_ extends Ot{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,A_.prototype)}},S_=class T_ extends Ot{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,T_.prototype)}},P_=class I_ extends Ot{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,I_.prototype)}},O_=class R_ extends Ot{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,R_.prototype)}},N_=class __ extends Ot{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,__.prototype)}},M_=class D_ extends Ot{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,D_.prototype)}},B_=class L_ extends Ot{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,L_.prototype)}},j_=class F_ extends Ot{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,F_.prototype)}},U_=class $_ extends Ot{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$_.prototype)}},W_=class V_ extends Ot{constructor(e="InvalidArgument",r=2e3,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,V_.prototype)}},H_=class z_ extends Ot{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,z_.prototype)}},G_=class q_ extends Ot{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,q_.prototype)}},K_=class Q_ extends Ot{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Q_.prototype)}},$oe=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.Aborted="Aborted",t.Geoblocked="Geoblocked",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const Woe={0:d_,[-1]:xe,[-2]:y_,[-3]:g_,[-4]:x_,[-5]:Y5,[-6]:C_,[-7]:k_,[-8]:S_,[-9]:P_,[-10]:O_,1e3:N_,1001:M_,1002:B_,1005:j_,1006:U_,2e3:W_,2002:H_,2003:G_,3e3:K_},i3=globalThis.fetch;class oy extends u_{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,i3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=yv({},i.headers,o),i3(s,i)},this.fetch=this._fetch}}const Voe=Object.freeze(Object.defineProperty({__proto__:null,API:u_,AbortedError:j_,GeoblockedError:U_,InvalidArgumentError:W_,NotFoundError:K_,PermissionDeniedError:M_,QueryFailedError:G_,SequenceAPIClient:oy,SessionExpiredError:B_,SortOrder:Foe,TokenType:Uoe,UnauthorizedError:N_,UnavailableError:H_,WebRPCSchemaHash:joe,WebRPCSchemaVersion:Loe,WebRPCVersion:Boe,WebrpcBadMethodError:g_,WebrpcBadRequestError:x_,WebrpcBadResponseError:Y5,WebrpcBadRouteError:y_,WebrpcClientDisconnectedError:S_,WebrpcEndpointError:d_,WebrpcError:Ot,WebrpcInternalErrorError:k_,WebrpcRequestFailedError:xe,WebrpcServerPanicError:C_,WebrpcStreamFinishedError:O_,WebrpcStreamLostError:P_,errors:$oe},Symbol.toStringTag,{value:"Module"})),J_="3.7.7",Hoe=J_,Cd=typeof Buffer=="function",o3=typeof TextDecoder=="function"?new TextDecoder:void 0,a3=typeof TextEncoder=="function"?new TextEncoder:void 0,zoe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ch=Array.prototype.slice.call(zoe),kp=(t=>{let e={};return t.forEach((r,n)=>e[r]=n),e})(ch),Goe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,fr=String.fromCharCode.bind(String),c3=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):t=>new Uint8Array(Array.prototype.slice.call(t,0)),Y_=t=>t.replace(/=/g,"").replace(/[+\/]/g,e=>e=="+"?"-":"_"),X_=t=>t.replace(/[^A-Za-z0-9\+\/]/g,""),Z_=t=>{let e,r,n,s,i="";const o=t.length%3;for(let a=0;a255||(n=t.charCodeAt(a++))>255||(s=t.charCodeAt(a++))>255)throw new TypeError("invalid character found");e=r<<16|n<<8|s,i+=ch[e>>18&63]+ch[e>>12&63]+ch[e>>6&63]+ch[e&63]}return o?i.slice(0,o-3)+"===".substring(o):i},X5=typeof btoa=="function"?t=>btoa(t):Cd?t=>Buffer.from(t,"binary").toString("base64"):Z_,b2=Cd?t=>Buffer.from(t).toString("base64"):t=>{let r=[];for(let n=0,s=t.length;ne?Y_(b2(t)):b2(t),qoe=t=>{if(t.length<2){var e=t.charCodeAt(0);return e<128?t:e<2048?fr(192|e>>>6)+fr(128|e&63):fr(224|e>>>12&15)+fr(128|e>>>6&63)+fr(128|e&63)}else{var e=65536+(t.charCodeAt(0)-55296)*1024+(t.charCodeAt(1)-56320);return fr(240|e>>>18&7)+fr(128|e>>>12&63)+fr(128|e>>>6&63)+fr(128|e&63)}},Koe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,eM=t=>t.replace(Koe,qoe),l3=Cd?t=>Buffer.from(t,"utf8").toString("base64"):a3?t=>b2(a3.encode(t)):t=>X5(eM(t)),Mu=(t,e=!1)=>e?Y_(l3(t)):l3(t),u3=t=>Mu(t,!0),Qoe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,Joe=t=>{switch(t.length){case 4:var e=(7&t.charCodeAt(0))<<18|(63&t.charCodeAt(1))<<12|(63&t.charCodeAt(2))<<6|63&t.charCodeAt(3),r=e-65536;return fr((r>>>10)+55296)+fr((r&1023)+56320);case 3:return fr((15&t.charCodeAt(0))<<12|(63&t.charCodeAt(1))<<6|63&t.charCodeAt(2));default:return fr((31&t.charCodeAt(0))<<6|63&t.charCodeAt(1))}},tM=t=>t.replace(Qoe,Joe),rM=t=>{if(t=t.replace(/\s+/g,""),!Goe.test(t))throw new TypeError("malformed base64.");t+="==".slice(2-(t.length&3));let e,r="",n,s;for(let i=0;i>16&255):s===64?fr(e>>16&255,e>>8&255):fr(e>>16&255,e>>8&255,e&255);return r},Z5=typeof atob=="function"?t=>atob(X_(t)):Cd?t=>Buffer.from(t,"base64").toString("binary"):rM,nM=Cd?t=>c3(Buffer.from(t,"base64")):t=>c3(Z5(t).split("").map(e=>e.charCodeAt(0))),sM=t=>nM(iM(t)),Yoe=Cd?t=>Buffer.from(t,"base64").toString("utf8"):o3?t=>o3.decode(nM(t)):t=>tM(Z5(t)),iM=t=>X_(t.replace(/[-_]/g,e=>e=="-"?"+":"/")),w2=t=>Yoe(iM(t)),Xoe=t=>{if(typeof t!="string")return!1;const e=t.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(e)||!/[^\s0-9a-zA-Z\-_]/.test(e)},oM=t=>({value:t,enumerable:!1,writable:!0,configurable:!0}),aM=function(){const t=(e,r)=>Object.defineProperty(String.prototype,e,oM(r));t("fromBase64",function(){return w2(this)}),t("toBase64",function(e){return Mu(this,e)}),t("toBase64URI",function(){return Mu(this,!0)}),t("toBase64URL",function(){return Mu(this,!0)}),t("toUint8Array",function(){return sM(this)})},cM=function(){const t=(e,r)=>Object.defineProperty(Uint8Array.prototype,e,oM(r));t("toBase64",function(e){return ay(this,e)}),t("toBase64URI",function(){return ay(this,!0)}),t("toBase64URL",function(){return ay(this,!0)})},Zoe=()=>{aM(),cM()},xl={version:J_,VERSION:Hoe,atob:Z5,atobPolyfill:rM,btoa:X5,btoaPolyfill:Z_,fromBase64:w2,toBase64:Mu,encode:Mu,encodeURI:u3,encodeURL:u3,utob:eM,btou:tM,decode:w2,isValid:Xoe,fromUint8Array:ay,toUint8Array:sM,extendString:aM,extendUint8Array:cM,extendBuiltins:Zoe};var C2=function(){return C2=Object.assign||function(e){for(var r,n=1,s=arguments.length;n0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&(s.types.Claims.push({name:"app",type:"string"}),s.message.app=this.claims.app),this.claims.iat&&this.claims.iat>0&&(s.types.Claims.push({name:"iat",type:"int64"}),s.message.iat=this.claims.iat),this.claims.exp&&this.claims.exp>0&&(s.types.Claims.push({name:"exp",type:"int64"}),s.message.exp=this.claims.exp),this.claims.n&&this.claims.n>0&&(s.types.Claims.push({name:"n",type:"uint64"}),s.message.n=this.claims.n),this.claims.typ&&this.claims.typ.length>0&&(s.types.Claims.push({name:"typ",type:"string"}),s.message.typ=this.claims.typ),this.claims.ogn&&this.claims.ogn.length>0&&(s.types.Claims.push({name:"ogn",type:"string"}),s.message.ogn=this.claims.ogn),this.claims.v&&this.claims.v.length>0&&(s.types.Claims.push({name:"v",type:"string"}),s.message.v=this.claims.v),s},t}(),rae=function(t){if(t.app==="")return{ok:!1,err:new Error("claims: app is empty")};var e=Math.round(new Date().getTime()/1e3),r=5*60,n=60*60*24*365+r;return t.v===""?{ok:!1,err:new Error("claims: ethauth version is empty")}:t.iat&&t.iat!==0&&(t.iat>e+r||t.iate+n?{ok:!1,err:new Error("claims: token has expired")}:{ok:!0}},nae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s;return lc(this,function(i){return n=r.messageDigest(),s=e7(n,r.signature),s.slice(0,2)==="0x"&&s.length===42&&s.toLowerCase()===r.address.toLowerCase()?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]})})},sae=function(t,e,r){return cc(void 0,void 0,void 0,function(){var n,s,i,o,a;return lc(this,function(c){switch(c.label){case 0:return!t||t===void 0?[2,{isValid:!1}]:(n=r.messageDigest(),[4,t.getCode(r.address)]);case 1:if(s=c.sent(),s==="0x"||s.length<=2)throw new Error("ValidateContractAccountProof failed. unable to fetch wallet contract code");return i=["function isValidSignature(bytes32, bytes) public view returns (bytes4)"],o=new dn(r.address,i,t),[4,o.isValidSignature(n,Q(r.signature))];case 2:return a=c.sent(),a===iae?[2,{isValid:!0,address:r.address}]:[2,{isValid:!1}]}})})},iae="0x1626ba7e",vv=function(){function t(){for(var e=[],r=0;r0&&(c+="."+s.extra),[2,c]}})})},this.decodeProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a,c,l,u,f,d,h,y,p;return lc(this,function(b){switch(b.label){case 0:if(o=s.split("."),o.length<4||o.length>5)throw new Error("ethauth: invalid proof string");if(a=o[0],c=o[1],l=o[2],u=o[3],f=o[4],a!==E2)throw new Error("ethauth: not an ethauth proof");return d=xl.decode(l),h=JSON.parse(d),y=new ek({address:c,claims:h,signature:u,extra:f}),[4,this.validateProof(y,i)];case 1:if(p=b.sent(),!p)throw new Error("ethauth: proof is invalid");return[2,y]}})})},this.validateProof=function(s,i){return i===void 0&&(i=!1),cc(n,void 0,void 0,function(){var o,a;return lc(this,function(c){switch(c.label){case 0:if(o=this.validateProofClaims(s),o.err)throw new Error("ethauth: proof claims are invalid ".concat(o.err));return i===!0?[3,2]:[4,this.validateProofSignature(s)];case 1:if(a=c.sent(),a!==!0)throw new Error("ethauth: proof signature is invalid");c.label=2;case 2:return[2,!0]}})})},this.validateProofSignature=function(s){return cc(n,void 0,void 0,function(){var i,c,o,a,c;return lc(this,function(l){switch(l.label){case 0:i=[],c=0,l.label=1;case 1:if(!(c{const e=t.replace(/-/g,"+").replace(/_/g,"/"),r=atob(e),n=new Uint8Array(r.length);for(let o=0;oxl.encode(t,!0),tk=t=>xl.encode(JSON.stringify(t),!0),cae=t=>{if(t!=null)return xl.decode(t)},rk=t=>{if(t!=null)return JSON.parse(xl.decode(t))};BigInt.prototype.toJSON=function(){return this.toString()};const uM=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),fM=t=>t!=null&&(typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||et(t)||typeof t=="bigint"),Zc=t=>{const e=t.toString(16);return`${e.length%2===0?"0x":"0x0"}${e}`},dM=(t,e=18)=>{let[r,n="0"]=t.split(".");const s=r.startsWith("-");if(s&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),e===0)r=`${Math.round(+`${r}.${n}`)}`,n="";else if(n.length>e){const[i,o,a]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${o}.${a}`);c>9?n=`${BigInt(i)+1n}0`.padStart(i.length+1,"0"):n=`${i}${c}`,n.length>e&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${s?"-":""}${r}${n}`)},lae=t=>dM(t,18),hM=(t,e=18)=>{let r=t.toString();const n=r.startsWith("-");n&&(r=r.slice(1)),r=r.padStart(e,"0");const s=r.slice(0,r.length-e);let i=r.slice(r.length-e);return i=i.replace(/(0+)$/,""),`${n?"-":""}${s||"0"}${i?`.${i}`:""}`},uae=t=>hM(t,18),nk=t=>Q(typeof t=="string"?Kr(t):Ne(t)),pM=(t,e,r)=>De(["string","uint256","address","bytes32"],["",e,t,r]),k2=(t,e,r)=>Ne(pM(t,e,r)),yM=()=>typeof window>"u"&&typeof process=="object",fae=()=>!yM(),vM=t=>{const e=t.split(".");if(e.length!==3)throw new Error("invalid jwt");return JSON.parse(xl.decode(e[1]))};function gv(){return gv=Object.assign?Object.assign.bind():function(t){for(var e=1;eSe.configure(t);class $t{static bufferIndexOf(e,r,n=!1){if(n)return $t.binarySearch(e,r,$t.compare);const s=(i,o)=>{if(i===o)return!0;if(i.length!==o.length)return!1;for(let a=0;a=0;c--)if(n(e[c],r)!==0)return c+1;return 0}else a<0?s=o+1:i=o-1}return-1}static compare(e,r){const n=Math.min(e.length,r.length);for(let s=0;s$t.bufferify(e(r))}}class dae extends $t{constructor(e,r={}){super(),this.hashFn=void 0,this.leaves=[],this.layers=[],this.sortLeaves=!1,this.sortPairs=!1,this.sortLeaves=!!r.sortLeaves,this.sortPairs=!!r.sortPairs,this.hashFn=$t.bufferifyFn(Ne),this.processLeaves(e)}getOptions(){return{sortLeaves:this.sortLeaves,sortPairs:this.sortPairs}}processLeaves(e){this.leaves=e.map($t.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort($t.compare)),this.createHashes(this.leaves)}createHashes(e){for(this.layers=[e];e.length>1;){const r=this.layers.length;this.layers.push([]);const n=e.length;for(let s=0;s=n){this.layers[r].push(...e.slice(n));break}else if(s+1===e.length&&e.length%2===1){this.layers[r].push(e[s]);continue}const i=e[s],o=s+1===e.length?i:e[s+1],a=[i,o];this.sortPairs&&a.sort($t.compare);const c=this.hashFn(Le(a));this.layers[r].push(c)}e=this.layers[r]}}getRoot(){return this.layers.length===0?Uint8Array.from([]):this.layers[this.layers.length-1][0]||Uint8Array.from([])}getHexRoot(){return $t.bufferToHex(this.getRoot())}getProof(e,r){if(typeof e>"u")throw new Error("leaf is required");e=$t.bufferify(e);const n=[];if(!Number.isInteger(r)){r=-1;for(let s=0;s$t.bufferToHex(n.data))}verify(e,r,n){let s=$t.bufferify(r);if(n=$t.bufferify(n),!Array.isArray(e)||!r||!n)return!1;for(let i=0;ithis.toLeaf(r));return new dae(e,{sortPairs:!0,sortLeaves:!0})}generateRoot(){return this.tree||(this.tree=this.generateTree()),this.tree.getHexRoot()}generateProof(e){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.getHexProof(this.toLeaf(e))}verifyProof(e,r){if(!this.elements.includes(e))throw new Error("Element not found");return this.tree||(this.tree=this.generateTree()),this.tree.verify(r,this.toLeaf(e),this.generateRoot())}}const pae=t=>Zi(["address","uint256"],[t.address.toLowerCase(),t.tokenId]),I0=(t,e,r)=>{const n=new qt(t);return r&&n.setHeader("Authorization",`BEARER ${r}`),e&&n.setHeader("X-Access-Key",e),n};let yae=class{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Kr(JSON.stringify(s,vae))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}};function vae(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):e}function gae(t,e){return function(...r){const n=Array.prototype.slice.call(r);return new Promise(async(s,i)=>{try{n.push((o,a)=>o?i(o):s(a)),await t.apply(e,n)}catch(o){i(o)}})}}function mae(t,e){const r=encodeURIComponent(t),n=encodeURIComponent(JSON.stringify(e));return`${r}=${n}`}function xae(t){const e=t.split("&"),r={};for(const n of e){const s=n.split("=");r[decodeURIComponent(s[0])]=JSON.parse(decodeURIComponent(s[1]))}return r}const bae=(t=0,e=Number.MAX_SAFE_INTEGER)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t),xM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\d.]+/);return e&&e.length>0?e[0].trim():""},bM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\s\d]+/);return e&&e.length>0?e[0].trim():""},wM=t=>{if(!t||typeof t!="string")return"";const e=t.match(/[\w\d.\-:\/]+/);return e&&e.length>0?e[0].trim():""},wae=t=>new Promise(e=>{const r=setTimeout(()=>{clearTimeout(r),e()},t)}),CM=t=>{const e=gv({},t.types);return delete e.EIP712Domain,Ds.hash(t.domain,e,t.message)},Ed=t=>Q(CM(t)),{defineProperties:Cae,resolveProperties:Eae}=goe,kae=t=>t.replace(/([^:]\/)\/+/g,"$1"),Aae=Object.freeze(Object.defineProperty({__proto__:null,Logger:gM,MAX_UINT_256:uM,MerkleTreeGenerator:hae,PromiseCache:yae,base64Decode:cae,base64DecodeObject:rk,base64Encode:aae,base64EncodeObject:tk,configureLogger:mM,defineProperties:Cae,encodeMessageDigest:nk,encodeTypedDataDigest:Ed,encodeTypedDataHash:CM,extractProjectIdFromAccessKey:oae,formatEther:uae,formatUnits:hM,getFetchRequest:I0,getRandomInt:bae,getSaleItemsLeaf:pae,isBigNumberish:fM,isBrowser:fae,isNode:yM,jwtDecodeClaims:vM,logger:Se,packMessageData:pM,parseEther:lae,parseUnits:dM,promisify:gae,queryStringFromObject:mae,queryStringToObject:xae,resolveProperties:Eae,sanitizeAlphanumeric:bM,sanitizeHost:wM,sanitizeNumberString:xM,sleep:wae,subDigestOf:k2,toHexString:Zc,urlClean:kae},Symbol.toStringTag,{value:"Module"}));function nd(){return nd=Object.assign?Object.assign.bind():function(t){for(var e=1;etypeof t=="number"?t:t.chainId?t.chainId:Number(t),Tae=t=>{if(t)return EM(t)},kM=(t,e=!1,r=!1)=>{if(!t)throw new Error("invalid network config: empty config");const n=[];if(Array.isArray(t)?n.push(...t):n.push(t),n.length===0){if(e)throw new Error("invalid network config: empty config");return!1}const s=n.map(l=>l.chainId).sort(),i=s.filter((l,u)=>s.indexOf(l)!==u);if(i.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${i}`);return!1}n.forEach(l=>l.name=l.name.toLowerCase());const o=n.map(l=>l.name).sort(),a=o.filter((l,u)=>o.indexOf(l)!==u);if(a.length>0){if(e)throw new Error(`invalid network config: duplicate network names ${a}`);return!1}let c=!1;for(let l=0;l(kM(t,!0,e),t),Pae=(t,e=!0)=>{const r=t.map(s=>s.chainId).sort(),n=r.filter((s,i)=>r.indexOf(s)!==i);if(n.length>0){if(e)throw new Error(`invalid network config: duplicate chainIds ${n}`);return!1}return!0},Iae=(t,e)=>{if(!(!t||!e)){if(!t.chainId&&!t.name)throw new Error("failed to update network config: source config is missing chainId or name");if(t.chainId!==e.chainId&&t.name!==e.name)throw new Error("failed to update network config: one of chainId or name must match");t.rpcUrl&&(e.rpcUrl=t.rpcUrl,e.provider=void 0),t.provider&&(e.provider=t.provider),t.relayer&&(e.relayer=t.relayer)}},SM=t=>AM(TM(t)),Rs=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=Number(e);return t.find(n=>n.chainId===r)}else return t.find(r=>r.name===e||`${r.chainId}`===e);else{if(typeof e=="number")return t.find(r=>r.chainId===e);if(e.chainId)return t.find(r=>r.chainId===e.chainId);if(typeof e=="bigint"){const r=Number(e);return t.find(n=>n.chainId===r)}else return}},Oae=(t,e)=>t?t.name===e||t.chainId===e:!1,Rae=t=>{const e={};for(let r=0;r{if(!t)return[];const e=t.sort((n,s)=>n.chainId===s.chainId?0:n.chainIdn.isDefaultChain);return r>0&&e.splice(0,0,e.splice(r,1)[0]),e},zg=(t,e)=>typeof t=="string"?(e=e||{},t.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,function(r,n){let s=e[n];return typeof s=="function"?s=s():s==null?s="":typeof s=="object"||typeof s=="symbol"?s=s.toString():s=s.valueOf(),s})):"",PM=t=>zg("https://${network}-indexer.sequence.app",{network:t}),IM=t=>zg("https://${network}-relayer.sequence.app",{network:t}),OM=t=>zg("https://nodes.sequence.app/${network}",{network:t});function sk(t){return Rs(sd,t)}function RM(t){return typeof t=="bigint"?t:fM(t)?BigInt(t):BigInt(t.chainId)}const He=(t,e)=>{const r=P0[t];if(!r)throw new Error(`Network with chainId ${t} not found`);const n=OM(r.name);return nd({},r,{rpcUrl:n,indexerUrl:PM(r.name),relayer:{url:IM(r.name),provider:{url:n}}},e)},NM=[nd({},P0[L.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),nd({},P0[L.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})],sd=SM([nd({},He(L.POLYGON),{isDefaultChain:!0,isAuthChain:!0}),He(L.MAINNET),He(L.BSC),He(L.AVALANCHE),He(L.ARBITRUM),He(L.ARBITRUM_NOVA),He(L.OPTIMISM),He(L.OPTIMISM_SEPOLIA),He(L.POLYGON_ZKEVM),He(L.GNOSIS),He(L.RINKEBY,{disabled:!0}),He(L.GOERLI,{disabled:!0}),He(L.SEPOLIA),He(L.POLYGON_MUMBAI,{disabled:!0}),He(L.POLYGON_AMOY),He(L.BSC_TESTNET),He(L.ARBITRUM_SEPOLIA),He(L.BASE),He(L.BASE_SEPOLIA),He(L.HOMEVERSE),He(L.HOMEVERSE_TESTNET),He(L.XAI),He(L.XAI_SEPOLIA),He(L.AVALANCHE_TESTNET),He(L.ASTAR_ZKEVM),He(L.ASTAR_ZKYOTO),He(L.XR_SEPOLIA),He(L.B3_SEPOLIA),He(L.APECHAIN_TESTNET),He(L.BLAST),He(L.BLAST_SEPOLIA),He(L.TELOS),He(L.BORNE_TESTNET),...NM]);class _M{constructor(e,r){this.sender=void 0,this.handler=void 0,this.sender=r,e&&this.setMiddleware(e)}setMiddleware(e){this.handler=MM(e,this.sender)}request(e){return this.handler.request(e)}}const MM=(t,e)=>{if(t.length===0)return e;const r=s=>s.requestHandler?s.requestHandler:s;let n;n=r(t[t.length-1])(e.request);for(let s=t.length-2;s>=0;s--)n=r(t[s])(n);return{request:n}};function DM(t){return t!==void 0&&t.send!==void 0&&t.constructor.defaultUrl!==void 0&&t.detectNetwork!==void 0&&t.getSigner!==void 0&&t.perform!==void 0}function BM(t){return t!==void 0&&t.send!==void 0}class LM{constructor(e,r){this.provider=void 0,this.defaultChainId=void 0,this.request=n=>(n.chainId||(n.chainId=this.defaultChainId),this.provider(n)),BM(e)?this.provider=n=>e.send(n.method,n.params,n.chainId):DM(e)?this.provider=n=>e.send(n.method,n.params||[]):this.provider=e,this.defaultChainId=r}send(e,r,n){const s={method:e,params:r,chainId:n};return this.request(s)}}class Nae{constructor(e){this.requestHandler=void 0,this.isAllowedFunc=void 0,e?this.isAllowedFunc=e:this.isAllowedFunc=r=>!0,this.requestHandler=A2(this.isAllowedFunc)}setIsAllowedFunc(e){this.isAllowedFunc=e,this.requestHandler=A2(this.isAllowedFunc)}}const A2=t=>e=>r=>{if(!t(r))throw new Error("allowProvider middleware precondition is unmet.");return e(r)};class ik{constructor(e){var r=this;this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.requestHandler=n=>async function(s){if(r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId),a=r.getCacheValue(o);if(a&&a!=="")return{id:s.id,result:a}}const i=await n(s);if((r.cachableJsonRpcMethods.includes(s.method)||r.cachableJsonRpcMethodsByBlock.includes(s.method))&&i&&r.shouldCacheResponse(s,i)){const o=r.cacheKey(s.method,s.params,s.chainId||r.defaultChainId);r.cachableJsonRpcMethods.includes(s.method)?r.setCacheValue(o,i):r.setCacheByBlockValue(o,i)}return i},this.cacheKey=(n,s,i)=>{let o="";return i?o=`${i}:${n}:`:o=`:${n}:`,!s||s.length===0?o+"[]":o+JSON.stringify(s)},this.getCache=()=>this.cache,this.setCache=n=>{this.cache=n,this.onUpdateCallback&&this.onUpdateCallback()},this.getCacheValue=n=>{if(this.cache[n])return this.cache[n];if(this.cacheByBlock[n])return this.cacheByBlock[n]},this.setCacheValue=(n,s)=>{this.cache[n]=s,this.onUpdateCallback&&this.onUpdateCallback(n,s)},this.setCacheByBlockValue=(n,s)=>{this.cacheByBlock[n]=s,this.cacheByBlockResetLock||(this.cacheByBlockResetLock=!0,setTimeout(()=>{this.cacheByBlockResetLock=!1,this.cacheByBlock={}},1500))},this.shouldCacheResponse=(n,s)=>!(!s||n.method==="eth_getCode"&&s.length<=2),this.clearCache=()=>{this.cache={},this.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=e==null?void 0:e.defaultChainId,e!=null&&e.blockCache?(e==null?void 0:e.blockCache)!==!0&&(this.cachableJsonRpcMethodsByBlock=e==null?void 0:e.blockCache):this.cachableJsonRpcMethodsByBlock=[]}onUpdate(e){this.onUpdateCallback=e}}class jM{constructor(e){var r=this;this.options=void 0,this.requestHandler=n=>async function(s){switch(s.method){case"net_version":if(r.options.chainId)return`${r.options.chainId}`;break;case"eth_chainId":if(r.options.chainId)return pr(r.options.chainId);break;case"eth_accounts":if(r.options.accountAddress)return[Te(r.options.accountAddress)];break;case"sequence_getWalletContext":if(r.options.walletContext)return r.options.walletContext;break}return n(s)},this.options=e}}const FM=t=>async e=>{try{return await t(e)}catch(r){throw typeof r=="string"?new Error(r):new Error(r.message)}},UM=t=>async e=>{const r=e.chainId?` chainId:${e.chainId}`:"";Se.info(`[provider request]${r} id:${e.id} method:${e.method} params:`,e.params);try{const n=await t(e);return Se.info(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"result:",n),n}catch(n){Se.warn(`[provider response]${r} id:${e.id} method:${e.method} params:`,e.params,"error:",n)}},_ae=t=>e=>async r=>{const n=t(r);switch(r.method){case"net_version":return`${n}`;case"eth_chainId":return pr(n)}return e(r)},$M=["personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4","eth_sendTransaction","eth_sendRawTransaction","sequence_sign","sequence_signTypedData_v4","sequence_getWalletContext","sequence_getWalletConfig","sequence_getWalletState","sequence_getNetworks","sequence_updateConfig","sequence_publishConfig","sequence_gasRefundOptions","sequence_getNonce","sequence_relay","eth_decrypt","eth_getEncryptionPublicKey","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];class Mae{constructor(e){this.provider=void 0,this.requestHandler=r=>n=>$M.includes(n.method)?this.provider.request(n):r(n),this.provider=e}}class Dae{constructor(e){this.privateJsonRpcMethods=["net_version","eth_chainId","eth_accounts",...$M],this.provider=void 0,this.rpcUrl=void 0,this.requestHandler=r=>n=>this.provider&&!this.privateJsonRpcMethods.includes(n.method)?this.provider.send(n.method,n.params||[]):(Se.debug("[public-provider] sending request to signer window",n.method),r(n)),e&&this.setRpcUrl(e)}getRpcUrl(){return this.rpcUrl}setRpcUrl(e){!e||e===""?(this.rpcUrl=void 0,this.provider=void 0):(this.rpcUrl=e,this.provider=new zt(e))}}class WM{constructor(){var e=this;this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.requestHandler=r=>async function(n){if(!e.singleflightJsonRpcMethods.includes(n.method))return r(n);const s=e.requestKey(n.method,n.params||[],n.chainId);if(!e.inflight[s])e.inflight[s]=[];else return new Promise((i,o)=>{e.inflight[s].push({id:n.id,callback:(a,c)=>{a?o(a):i(c)}})});try{const i=await r(n);return e.inflight[s].forEach(({callback:o})=>o(void 0,i)),i}catch(i){throw e.inflight[s].forEach(({callback:o})=>o(i,void 0)),i}finally{delete e.inflight[s]}},this.requestKey=(r,n,s)=>{let i="";return s?i=`${s}:${r}:`:i=`:${r}:`,!n||n.length===0?i+"[]":i+JSON.stringify(n)},this.inflight={}}}function $l(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}var Bae=0;function ok(t){return"__private_"+Bae+++"_"+t}var Ya=ok("chainId"),Ux=ok("nextId"),Wd=ok("sender");class VM extends zt{constructor(e,r,n){var s;super(e,r==null?void 0:r.chainId,n),s=this,this.url=e,Object.defineProperty(this,Ya,{writable:!0,value:void 0}),Object.defineProperty(this,Ux,{writable:!0,value:1}),Object.defineProperty(this,Wd,{writable:!0,value:void 0}),this.fetch=async function(l){if(s.url===void 0)throw new Error("missing provider URL");const{method:u,params:f}=l,d={method:u,params:f,id:$l(s,Ux)[Ux]++,jsonrpc:"2.0"},h=typeof s.url=="string"?new qt(s.url):s.url;h.body=JSON.stringify(d);try{const y=await h.send();if(y.body)try{const p=JSON.parse(Ms(y.body));return Lae(p)}catch{throw new Error("invalid JSON response")}return null}catch(y){throw y}};const i=r==null?void 0:r.chainId,o=r==null?void 0:r.middlewares,a=r==null?void 0:r.blockCache;$l(this,Ya)[Ya]=i;const c=new _M(o??[new jM({chainId:i}),new WM,new ik({defaultChainId:i,blockCache:a})],new LM(this.fetch,i));$l(this,Wd)[Wd]=c}async request(e){return $l(this,Wd)[Wd].request(e)}async send(e,r,n){return this.request({method:e,params:r,chainId:n})}async getNetwork(){const e=$l(this,Ya)[Ya];if(e){const r=P0[e],n=(r==null?void 0:r.name)||"",s=r==null?void 0:r.ensAddress;return ot.from({name:n,chainId:e,ensAddress:s})}else{const r=await this.send("eth_chainId",[]);return $l(this,Ya)[Ya]=Number(r),this.getNetwork()}}}function Lae(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}const jae=Object.freeze(Object.defineProperty({__proto__:null,AllowProvider:Nae,CachedProvider:ik,ChainId:L,EagerProvider:jM,JsonRpcHandler:LM,JsonRpcProvider:VM,JsonRpcRouter:_M,NetworkType:_e,PublicProvider:Dae,SigningProvider:Mae,SingleflightMiddleware:WM,allNetworks:sd,allowProviderMiddleware:A2,checkNetworkConfig:Oae,createJsonRpcMiddlewareStack:MM,ensureUniqueNetworks:Pae,ensureValidNetworks:AM,exceptionProviderMiddleware:FM,findNetworkConfig:Rs,findSupportedNetwork:sk,getChainId:EM,hardhatNetworks:NM,indexerURL:PM,isJsonRpcProvider:DM,isJsonRpcSender:BM,isNetworkConfig:Sae,isValidNetworkConfig:kM,loggingProviderMiddleware:UM,maybeChainId:Tae,networkProviderMiddleware:_ae,networks:P0,networksIndex:Rae,nodesURL:OM,relayerURL:IM,sortNetworks:TM,stringTemplate:zg,toChainIdNumber:RM,updateNetworkConfig:Iae,validateAndSortNetworks:SM},Symbol.toStringTag,{value:"Module"}));function yr(){return yr=Object.assign?Object.assign.bind():function(t){for(var e=1;e{if(ck(s))return De(["uint8","uint8","address"],[el.Address,s.weight,s.address]);if(s.isDynamic){const i=Q(s.signature);return De(["uint8","uint8","address","uint16","bytes"],[el.DynamicSignature,s.weight,s.address,i.length,i])}return De(["uint8","uint8","bytes"],[el.EOASignature,s.weight,s.signature])});return De(["uint16",...new Array(n.length).fill("bytes")],[r,...n])}async function QM(t,e,r){const n=A1(e),s=await Promise.all(t.signers.map(async i=>{if(ck(i))return i;if(i.isDynamic){if(!i.address)throw new Error("Dynamic signature part must have address");if(!ak(i.address,n,i.signature,r))throw new Error(`Invalid dynamic signature part ${i.address}`);return{address:i.address,weight:i.weight,signature:i.signature}}else return{address:S1(n,i.signature),weight:i.weight,signature:i.signature}}));return{version:1,payload:e,subdigest:n,config:{version:1,threshold:t.threshold,signers:s}}}function Th(t,e,r,n){if(r.length!==0)throw new Error("Explicit subdigests not supported on v1");let s=0n;const i=t.signers.map(a=>{if(!e.has(a.address))return a;const c=e.get(a.address),l=Q(c.signature);return s+=BigInt(a.weight),c.isDynamic||l.length!==66?yr({},a,{isDynamic:!0,signature:c.signature,address:a.address}):yr({},a,{isDynamic:!1,signature:c.signature})});return{encoded:lk({version:1,threshold:t.threshold,signers:i}),weight:s}}const uk={decode:t=>KM(t),encode:t=>lk(t),trim:async t=>t,supportsNoChainId:!0,recover:(t,e,r)=>QM(t,e,r),encodeSigners:(t,e,r,n)=>Th(t,e,r),hasEnoughSigningPower:(t,e)=>{const{weight:r}=uk.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{throw new Error("Signature chaining not supported on v1")},hashSetImageHash:function(t){throw new Error("Image hash not supported on v1")},signaturesOf(t){return t.signers.filter(e=>e.signature!==void 0).map(e=>({address:e.address,signature:e.signature}))},signaturesOfDecoded:function(t){return t.signers.map(e=>e.signature).filter(e=>e!==void 0)}};var qae=Object.freeze({__proto__:null,SignaturePartType:el,isAddressMember:ck,isUnrecoveredSignatureMember:GM,isUnrecoveredSignature:qM,decodeSignature:KM,encodeSignature:lk,recoverSignature:QM,encodeSigners:Th,SignatureCoder:uk});const fk={isWalletConfig:t=>t.version===1&&t.threshold!==void 0&&t.signers!==void 0,imageHashOf:t=>t.signers.reduce((e,r)=>Ne(Kt.defaultAbiCoder().encode(["bytes32","uint8","address"],[e,r.weight,r.address])),De(["uint256"],[t.threshold])),hasSubdigest:(t,e)=>!1,isComplete:t=>!0,checkpointOf:t=>0n,signersOf:t=>t.signers.map(e=>({address:e.address,weight:Number(e.weight)})),fromSimple:t=>{if(BigInt(t.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(t.subdigests&&t.subdigests.length>0)throw new Error("v1 wallet config does not support subdigests");return{version:1,threshold:t.threshold,signers:t.signers}},update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt([...Gt.mainModule.abi,...Gt.mainModuleUpgradable.abi]),i=[];return(!n||n==="first")&&i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImplementation"),[r.mainModuleUpgradable]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),i.push({to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[fk.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}),{entrypoint:t,transactions:i}},decodeTransaction:function(t){throw new Error("Function not implemented.")}},toJSON:function(t){const e=t.signers.map(r=>({weight:BigInt(r.weight).toString(),address:r.address}));return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),signers:e})},fromJSON:function(t){const e=JSON.parse(t),r=e.signers.map(n=>({weight:BigInt(n.weight),address:n.address}));return{version:e.version,threshold:BigInt(e.threshold),signers:r}},editConfig:function(t,e){var r;const n=t.signers.slice();if(e.checkpoint&&BigInt(e.checkpoint)!==0n)throw new Error("v1 wallet config does not support checkpoint");if(e.add)for(const s of e.add)n.find(i=>i.address===s.address)||n.push({weight:s.weight,address:s.address});if(e.remove)for(const s of e.remove){const i=n.findIndex(o=>o.address===s);i>=0&&n.splice(i,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,signers:n}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Th(t,r,[]);if(a>=BigInt(t.threshold))return o}const n=t.signers;for(const{address:s}of n.sort(({weight:i},{weight:o})=>Number(i)-Number(o))){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Th(t,r,[]);if(a>=BigInt(t.threshold))return o}return Th(t,r,[]).encoded}};var Kae=Object.freeze({__proto__:null,ConfigCoder:fk}),Qae=Object.freeze({__proto__:null});const JM=1,YM={version:JM,factory:"0xf9D09D634Fb818b05149329C1dcCFAeA53639d96",guestModule:"0x02390F3E6E5FD1C6786CB78FD3027C117a9955A7",mainModule:"0xd01F11855bCcb95f88D7A48492F66410d4637313",mainModuleUpgradable:"0x7EFE6cE415956c5f80C6530cC6cc81b4808F6118",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var Vi=Object.freeze({__proto__:null,config:Kae,context:Qae,signature:qae,version:JM,DeployedWalletContext:YM});const dk="0x8713a7c4465f6fbee2b6e9d6646d1d9f83fec929edfc4baf661f3c865bdd04d1";function XM(t){return Ne(ZM(t))}function ZM(t){return De(["bytes32","bytes32"],[dk,t])}function eD(t){const e=Q(t);if(e.length===64&&H(e.slice(0,32))===dk)return H(e.slice(32,64))}function Jae(t){return eD(t)!==void 0}var Yae=Object.freeze({__proto__:null,SetImageHashPrefix:dk,hashSetImageHash:XM,messageSetImageHash:ZM,decodeMessageSetImageHash:eD,isMessageSetImageHash:Jae});let Zt=function(t){return t[t.Legacy=0]="Legacy",t[t.Dynamic=1]="Dynamic",t[t.NoChainIdDynamic=2]="NoChainIdDynamic",t[t.Chained=3]="Chained",t}({}),It=function(t){return t[t.Signature=0]="Signature",t[t.Address=1]="Address",t[t.DynamicSignature=2]="DynamicSignature",t[t.Node=3]="Node",t[t.Branch=4]="Branch",t[t.Subdigest=5]="Subdigest",t[t.Nested=6]="Nested",t}({});const mv=66;function bl(t){return t.left!==void 0&&t.right!==void 0}function kd(t){return t.tree!==void 0}function T1(t){return t.unrecovered&&t.signature!==void 0&&t.isDynamic!==void 0}function xv(t){let e=Q(t),r;const n=(s,i)=>s?s.right?{left:s,right:i}:{left:s.left,right:i}:{left:i};for(;e.length>0;){const s=e[0];switch(e=e.slice(1),s){case It.Signature:{const i=e[0],o=H(e.slice(1,mv+1));r=n(r,{signature:o,weight:i,unrecovered:!0,isDynamic:!1}),e=e.slice(mv+1)}break;case It.Address:{const i=e[0],o=Te(H(e.slice(1,21)));r=n(r,{address:o,weight:i}),e=e.slice(21)}break;case It.DynamicSignature:{const i=e[0],o=Te(H(e.slice(1,21))),a=e[21]<<16|e[22]<<8|e[23],c=H(e.slice(24,24+a));r=n(r,{address:o,signature:c,weight:i,unrecovered:!0,isDynamic:!0}),e=e.slice(24+a)}break;case It.Node:{const i=H(e.slice(0,32));r=n(r,{nodeHash:i}),e=e.slice(32)}break;case It.Branch:{const i=e[0]<<16|e[1]<<8|e[2],o=xv(e.slice(3,3+i));r=n(r,o),e=e.slice(3+i)}break;case It.Subdigest:{const i=H(e.slice(0,32));r=n(r,{subdigest:i}),e=e.slice(32)}break;case It.Nested:{const i=e[0],o=e[1]<<8|e[2],a=e[3]<<16|e[4]<<8|e[5],c=xv(e.slice(6,6+a));r=n(r,{weight:i,threshold:o,tree:c}),e=e.slice(6+a)}break;default:throw new Error(`Unknown signature part type: ${s}: ${H(e)}`)}}if(!r)throw new Error("Empty signature tree");return r.right?r:r.left}class tD extends Error{constructor(e){super(`Invalid signature leaf: ${JSON.stringify(e)}`),this.leaf=e}}async function tl(t,e,r){if(bl(t)){const[n,s]=await Promise.all([tl(t.left,e,r),tl(t.right,e,r)]);return{left:n,right:s}}if(kd(t))return{weight:t.weight,threshold:t.threshold,tree:await tl(t.tree,e,r)};if(T1(t))if(t.isDynamic){if(!t.address)throw new Error("Dynamic signature leaf without address");if(!await ak(t.address,e,t.signature,r))throw new tD(t);return{weight:t.weight,address:t.address,signature:t.signature,subdigest:e}}else return{weight:t.weight,address:S1(e,t.signature),signature:t.signature,subdigest:e};return t}const Ar={concat:(t,e)=>De(["bytes","bytes"],[t,e]),node:t=>De(["uint8","bytes32"],[It.Node,t]),branch:t=>{const e=Q(t);return De(["uint8","uint24","bytes"],[It.Branch,e.length,e])},nested:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t,e,n.length,n])},subdigest:t=>De(["uint8","bytes32"],[It.Subdigest,t]),signature:(t,e)=>De(["uint8","uint8","bytes"],[It.Signature,t,e]),dynamicSignature:(t,e,r)=>{const n=Q(r);return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t,e,n.length,n])},address:(t,e)=>De(["uint8","uint8","address"],[It.Address,t,e])};function Ph(t,e,r,n,s={}){const i=Ih(t.tree,e,r,s);return BigInt(n)===0n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.NoChainIdDynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:BigInt(t.threshold)>255n?{encoded:De(["uint8","uint16","uint32","bytes"],[Zt.Dynamic,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}:{encoded:De(["uint8","uint8","uint32","bytes"],[Zt.Legacy,t.threshold,t.checkpoint,i.encoded]),weight:i.weight}}function Ih(t,e,r,n={}){const s=!n.disableTrim;if(Ls(t)){const i=Ih(t.left,e,r),o=Ih(t.right,e,r),a=Gr(t.left),c=Gr(t.right);return s&&i.weight===0n&&o.weight===0n&&!a&&!c?{encoded:Ar.node(Yn(t)),weight:0n}:s&&o.weight===0n&&!c?{encoded:Ar.concat(i.encoded,Ar.node(Yn(t.right))),weight:i.weight}:s&&i.weight===0n&&!a?{encoded:Ar.concat(Ar.node(Yn(t.left)),Ar.branch(o.encoded)),weight:o.weight}:{encoded:Ar.concat(i.encoded,Ar.branch(o.encoded)),weight:i.weight+o.weight}}if(mo(t)){const i=Ih(t.tree,e,r);return s&&i.weight===0n?{encoded:Ar.node(Yn(t)),weight:0n}:{encoded:Ar.nested(t.weight,t.threshold,i.encoded),weight:i.weight}}if(xo(t))return{encoded:Ar.node(Yn(t)),weight:0n};if(go(t)){const i=r.includes(t.subdigest);return{encoded:Ar.subdigest(t.subdigest),weight:i?uM:0n}}if(Gr(t))if(e.has(t.address)){const o=e.get(t.address),a=o.signature;return n.forceDynamicEncoding||o.isDynamic?{encoded:Ar.dynamicSignature(t.weight,t.address,a),weight:BigInt(t.weight)}:{encoded:Ar.signature(t.weight,a),weight:BigInt(t.weight)}}else return{encoded:Ar.address(t.weight,t.address),weight:0n};throw new Error(`Invalid topology - unknown error: ${JSON.stringify(t)}`)}function hk(t){return yk(t)?hk(t.suffix[t.suffix.length-1]):t.config}function pk(t){return t.type!==void 0&&t.decoded!==void 0&&t.version!==void 0&&t.version===2}function P1(t){return t.suffix!==void 0&&Array.isArray(t.suffix)&&t.suffix.every(pk)}function rD(t){return t.type!==void 0&&t.config!==void 0&&t.digest!==void 0&&t.version!==void 0&&t.version===2}function yk(t){return t.chain!==void 0&&Array.isArray(t.chain)&&t.chain.every(rD)}function Gg(t){const e=Q(t),r=e[0];switch(r){case Zt.Legacy:return{version:2,type:Zt.Legacy,decoded:cy(e)};case Zt.Dynamic:return{version:2,type:Zt.Dynamic,decoded:cy(e.slice(1))};case Zt.NoChainIdDynamic:return{version:2,type:Zt.NoChainIdDynamic,decoded:cy(e.slice(1))};case Zt.Chained:return nD(e);default:throw new Error(`Invalid signature type: ${r}`)}}function cy(t){const e=Q(t),r=e[0]<<8|e[1],n=e[2]<<24|e[3]<<16|e[4]<<8|e[5],s=xv(e.slice(6));return{threshold:r,checkpoint:n,tree:s}}function nD(t){const e=Q(t),r=e[0];if(r!==Zt.Chained)throw new Error(`Expected chained signature type: ${r}`);const n=[];let s=1;for(;sQ(Ca(i))),s=De(n.map(()=>["uint24","bytes"]).flat(),n.map(i=>[i.length,i]).flat());return De(["uint8","bytes"],[Zt.Chained,s])}function Ca(t){if(gi(t))return H(t);if(P1(t)||yk(t))return qg(Ca(t),(t.suffix||[]).map(Ca));const e=pk(t)?t.decoded:t.config;switch(t.type){case Zt.Legacy:if(BigInt(e.threshold)>255n)throw new Error(`Legacy signature threshold is too large: ${e.threshold} (max 255)`);return S2(e);case Zt.NoChainIdDynamic:case Zt.Dynamic:return De(["uint8","bytes"],[t.type,S2(e)]);case Zt.Chained:throw new Error("Unreachable code: Chained signature should be handled above");default:throw new Error(`Invalid signature type: ${t.type}`)}}function S2(t){return De(["uint16","uint32","bytes"],[t.threshold,t.checkpoint,Oh(t.tree)])}function Oh(t){if(Ls(t)||bl(t)){const e=Q(Oh(t.right)),r=Q(Oh(t.left));return Ls(t.right)||bl(t.right)?De(["bytes","uint8","uint24","bytes"],[r,It.Branch,e.length,e]):De(["bytes","bytes"],[r,e])}if(mo(t)||kd(t)){const e=Q(Oh(t.tree));return De(["uint8","uint8","uint16","uint24","bytes"],[It.Nested,t.weight,t.threshold,e.length,e])}if(T1(t)||Gr(t)&&t.signature!==void 0){const e=Q(t.signature);if(t.isDynamic||e.length!==mv){if(!t.address)throw new Error("Dynamic signature leaf must have address");return De(["uint8","uint8","address","uint24","bytes"],[It.DynamicSignature,t.weight,t.address,e.length,e])}else return De(["uint8","uint8","bytes"],[It.Signature,t.weight,e])}if(Gr(t))return De(["uint8","uint8","address"],[It.Address,t.weight,t.address]);if(xo(t))return De(["uint8","bytes32"],[It.Node,t.nodeHash]);if(go(t))return De(["uint8","bytes32"],[It.Subdigest,t.subdigest]);throw new Error(`Unknown signature tree type: ${t}`)}function Rh(t){return Ls(t)?[...Rh(t.left),...Rh(t.right)]:mo(t)?Rh(t.tree):Gr(t)&&t.signature?[{address:t.address,signature:t.signature}]:[]}function Nh(t){return bl(t)?[...Nh(t.left),...Nh(t.right)]:kd(t)?Nh(t.tree):T1(t)?[t.signature]:[]}function ly(t){return bl(t)?[...ly(t.left),...ly(t.right)]:kd(t)?ly(t.tree):go(t)?[t.subdigest]:[]}async function bv(t){const e=typeof t=="string"?Gg(t):t;if(P1(e)){const n=await Promise.all([bv(yr({},e,{suffix:void 0})),...e.suffix.map(s=>bv(s))]);return qg(n[0],n.slice(1))}const{trimmed:r}=await _h(e.decoded.tree);return Ca(yr({},e,{decoded:yr({},e.decoded,{tree:r})}))}async function _h(t,e=!0){if(bl(t)){const[r,n]=await Promise.all([_h(t.left),_h(t.right)]);if(r.weight===0&&n.weight===0)try{const s=await tl(t,pl,void 0);return{weight:0,trimmed:{nodeHash:Yn(s)}}}catch{}else return{weight:r.weight+n.weight,trimmed:{left:r.trimmed,right:n.trimmed}}}if(kd(t)){const r=await _h(t.tree);if(r.weight===0)try{const n=await tl(t,pl,void 0);return{weight:0,trimmed:{nodeHash:Yn(n)}}}catch{}return{weight:r.weight,trimmed:{weight:t.weight,threshold:t.threshold,tree:r.trimmed}}}return xo(t)&&aD(t.nodeHash)?{weight:0,trimmed:yr({},oD(t.nodeHash))}:T1(t)||Gr(t)&&t.signature!==void 0?{weight:Number(t.weight),trimmed:t}:!e&&go(t)?{weight:1/0,trimmed:t}:{weight:0,trimmed:t}}const Kg={decode:t=>Gg(t),encode:t=>Ca(t),trim:t=>bv(t),supportsNoChainId:!0,recover:(t,e,r)=>vk(t,e,r),encodeSigners:(t,e,r,n)=>Ph(t,e,r,n),hasEnoughSigningPower:(t,e)=>{const{weight:r}=Kg.encodeSigners(t,e,[],0);return r>=BigInt(t.threshold)},chainSignatures:(t,e)=>{const r=e.reverse(),n=gi(t)?t:Ca(t),s=r.map(i=>gi(i)?i:Ca(i));return qg(n,s)},hashSetImageHash:function(t){return XM(t)},signaturesOf(t){return Rh(t.tree)},signaturesOfDecoded:function(t){return Nh(t.decoded.tree)}};var Xae=Object.freeze({__proto__:null,SignatureType:Zt,SignaturePartType:It,SignaturePartTypeLength:mv,isUnrecoveredNode:bl,isUnrecoveredNestedLeaf:kd,isUnrecoveredSignatureLeaf:T1,decodeSignatureTree:xv,InvalidSignatureLeafError:tD,recoverTopology:tl,partEncoder:Ar,encodeSigners:Ph,encodeTree:Ih,deepestConfigOfSignature:hk,isUnrecoveredSignature:pk,isUnrecoveredChainedSignature:P1,isSignature:rD,isChainedSignature:yk,decodeSignature:Gg,decodeSignatureBody:cy,decodeChainedSignature:nD,setImageHashStruct:sD,recoverSignature:vk,encodeChain:qg,encodeSignature:Ca,encodeSignatureBody:S2,encodeSignatureTree:Oh,signaturesOf:Rh,signaturesOfDecoded:Nh,subdigestsOfDecoded:ly,trimSignature:bv,trimUnrecoveredTree:_h,SignatureCoder:Kg});function Gr(t){return t.address!==void 0&&t.weight!==void 0}function go(t){return t.subdigest!==void 0&&t.address===void 0}function Mh(t){return Ls(t)?JSON.stringify({left:Mh(t.left),right:Mh(t.right)}):mo(t)?JSON.stringify({weight:BigInt(t.weight).toString(),threshold:BigInt(t.threshold).toString(),tree:Mh(t.tree)}):Gr(t)?JSON.stringify({address:t.address,weight:BigInt(t.weight).toString()}):JSON.stringify(t)}function Dh(t){const e=typeof t=="string"?JSON.parse(t):t;return e.left!==void 0&&e.right!==void 0?{left:Dh(e.left),right:Dh(e.right)}:e.weight!==void 0&&e.threshold!==void 0&&e.tree!==void 0?{weight:BigInt(e.weight),threshold:BigInt(e.threshold),tree:Dh(e.tree)}:e.address!==void 0&&e.weight!==void 0?{address:e.address,weight:BigInt(e.weight)}:e}function mo(t){return t.tree!==void 0&&t.weight!==void 0&&t.threshold!==void 0}function xo(t){return t.nodeHash!==void 0}function gk(t){return Gr(t)||go(t)||mo(t)||xo(t)}function Ls(t){return t.left!==void 0&&t.right!==void 0}function Zae(t){return Ls(t)||gk(t)}function iD(t){return De(["uint96","address"],[t.weight,t.address])}function oD(t){const e=Q(t);if(e.length!==32)throw new Error("Invalid encoded string length");const r=BigInt(H(e.slice(0,12))),n=Te(H(e.slice(12)));return{weight:r,address:n}}function aD(t){const e=Q(t);return e.length!==32?!1:e.slice(0,11).every(n=>n===0)}function Yn(t){if(Gr(t))return iD(t);if(go(t))return Zi(["string","bytes32"],[`Sequence static digest: +`,t.subdigest]);if(mo(t)){const e=Yn(t.tree);return Zi(["string","bytes32","uint256","uint256"],[`Sequence nested config: +`,e,t.threshold,t.weight])}return xo(t)?t.nodeHash:Zi(["bytes32","bytes32"],[Yn(t.left),Yn(t.right)])}function ece(t){const e=[];let r=t;for(;!gk(r);)e.unshift(r.right),r=r.left;return e.unshift(r),e}function tce(t){return t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&t.version!==void 0&&t.version===2}function mk(t){return Zi(["bytes32","uint256"],[Zi(["bytes32","uint256"],[Yn(t.tree),t.threshold]),t.checkpoint])}function cD(t){return t.threshold!==void 0&&t.weight!==void 0&&t.members!==void 0}function Du(t){return Gr(t)||go(t)?[t]:mo(t)?[{threshold:t.threshold,weight:t.weight,members:Du(t.tree)}]:xo(t)?[]:[...Du(t.left),...Du(t.right)]}function T2(t){return xo(t)?!0:Ls(t)?T2(t.left)||T2(t.right):!1}function rce(t){return{threshold:t.threshold,checkpoint:t.checkpoint,members:Du(t.tree)}}const lD=(t,e)=>t.map(r=>cD(r)?{tree:e(r.members),threshold:r.threshold,weight:r.weight}:r);function xk(t){if(t.length===0)throw new Error("Empty members array");return lD(t,xk).reduce((r,n)=>({left:r,right:n}))}function bk(t){if(t.length===0)throw new Error("Empty members array");const e=lD(t,bk);for(let r=e.length;r>1;r=r/2)for(let n=0;n=r?e[n]=e[s]:e[n]={left:e[s],right:e[i]}}return e[0]}function wk(t){return t.length>8?bk(t):xk(t)}function uD(t,e=wk){return{version:2,threshold:t.threshold,checkpoint:t.checkpoint,tree:e(t.members)}}function wv(t,e){return go(t)?t.subdigest===e:Ls(t)?wv(t.left,e)||wv(t.right,e):!1}function P2(t){const e=[t],r=new Set;for(;e.length>0;){const n=e.pop();mo(n)?e.push(n.tree):Ls(n)?(e.push(n.left),e.push(n.right)):Gr(n)&&r.add({address:n.address,weight:Number(n.weight)})}return Array.from(r)}function Cv(t){return Ls(t)?Cv(t.left)&&Cv(t.right):!xo(t)}const Qg={isWalletConfig:t=>t.version===2&&t.threshold!==void 0&&t.tree!==void 0,imageHashOf:t=>mk(t),hasSubdigest:(t,e)=>wv(t.tree,e),checkpointOf:t=>BigInt(t.checkpoint),signersOf:t=>P2(t.tree),fromSimple:t=>{var e;return uD(yr({},t,{members:[...t.signers,...((e=t.subdigests)!=null?e:[]).map(r=>({subdigest:r}))]}))},isComplete:t=>Cv(t.tree),update:{isKindUsed:!0,buildTransaction:(t,e,r,n)=>{const s=new pt(Gt.mainModuleUpgradable.abi);return{entrypoint:t,transactions:[{to:t,data:s.encodeFunctionData(s.getFunction("updateImageHash"),[Qg.imageHashOf(e)]),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}]}},decodeTransaction:function(t){var e,r,n,s;const i=new pt(Gt.mainModuleUpgradable.abi);if(t.transactions.length!==1)throw new Error("Invalid transaction bundle, expected 1 transaction");const o=t.transactions[0].data;if(!o)throw new Error("Invalid transaction bundle, expected data");const a=i.decodeFunctionData(i.getFunction("updateImageHash"),o);if(!a)throw new Error("Invalid transaction bundle, expected valid data");if(t.transactions[0].to!==t.entrypoint)throw new Error("Invalid transaction bundle, expected to be sent to entrypoint");if(t.transactions[0].delegateCall)throw new Error("Invalid transaction bundle, expected not to be a delegateCall");if(!t.transactions[0].revertOnError)throw new Error("Invalid transaction bundle, expected revertOnError");if(BigInt((e=(r=t.transactions[0])==null?void 0:r.value)!=null?e:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");if(BigInt((n=(s=t.transactions[0])==null?void 0:s.gasLimit)!=null?n:0)!==0n)throw new Error("Invalid transaction bundle, expected value to be 0");return{address:t.entrypoint,newImageHash:a[0],kind:void 0}}},toJSON:function(t){return JSON.stringify({version:t.version,threshold:BigInt(t.threshold).toString(),checkpoint:BigInt(t.checkpoint).toString(),tree:Mh(t.tree)})},fromJSON:function(t){const e=JSON.parse(t);return{version:e.version,threshold:BigInt(e.threshold),checkpoint:BigInt(e.checkpoint),tree:Dh(e.tree)}},editConfig:function(t,e){var r,n;const s=Du(t.tree);if(e.add)for(const i of e.add)s.find(o=>Gr(o)&&o.address===i.address)||s.push({address:i.address,weight:i.weight});if(e.remove)for(const i of e.remove){const o=s.findIndex(a=>Gr(a)&&a.address===i);o>=0&&s.splice(o,1)}return{version:t.version,threshold:(r=e.threshold)!=null?r:t.threshold,checkpoint:(n=e.checkpoint)!=null?n:t.checkpoint,tree:wk(s)}},buildStubSignature:function(t,e){const r=new Map;for(const[s,i]of e.entries()){r.set(s,{signature:i,isDynamic:!0});const{encoded:o,weight:a}=Ph(t,r,[],0);if(a>=BigInt(t.threshold))return o}const n=P2(t.tree);for(const{address:s}of n.sort(({weight:i},{weight:o})=>i-o)){r.set(s,{signature:"0x4e82f02f388a12b5f9d29eaf2452dd040c0ee5804b4e504b4dd64e396c6c781f2c7624195acba242dd825bfd25a290912e3c230841fd55c9a734c4de8d9899451b02",isDynamic:!1});const{encoded:o,weight:a}=Ph(t,r,[],0);if(a>=BigInt(t.threshold))return o}return Ph(t,r,[],0).encoded}};var nce=Object.freeze({__proto__:null,isSignerLeaf:Gr,isSubdigestLeaf:go,topologyToJSON:Mh,topologyFromJSON:Dh,isNestedLeaf:mo,isNodeLeaf:xo,isLeaf:gk,isNode:Ls,isTopology:Zae,encodeSignerLeaf:iD,decodeSignerLeaf:oD,isEncodedSignerLeaf:aD,hashNode:Yn,leftFace:ece,isWalletConfig:tce,imageHash:mk,isSimpleNestedMember:cD,topologyToMembers:Du,hasUnknownNodes:T2,toSimpleWalletConfig:rce,legacyTopologyBuilder:xk,merkleTopologyBuilder:bk,optimized2SignersTopologyBuilder:wk,toWalletConfig:uD,hasSubdigest:wv,signersOf:P2,isComplete:Cv,ConfigCoder:Qg}),sce=Object.freeze({__proto__:null});const ice={config:Qg,signature:Kg},fD=2,dD={version:fD,factory:"0xFaA5c0b14d1bED5C888Ca655B9a8A5911F78eF4A",guestModule:"0xfea230Ee243f88BC698dD8f1aE93F8301B6cdfaE",mainModule:"0xfBf8f1A5E00034762D928f46d438B947f5d4065d",mainModuleUpgradable:"0x4222dcA3974E39A8b41c411FeDDE9b09Ae14b911",walletCreationCode:"0x603a600e3d39601a805130553df3363d3d373d3d3d363d30545af43d82803e903d91601857fd5bf3"};var je=Object.freeze({__proto__:null,config:nce,signature:Xae,context:sce,chained:Yae,coders:ice,version:fD,DeployedWalletContext:dD});function I2(t,e){const r=Ne(De(["bytes","bytes32"],[t.walletCreationCode,rs(t.mainModule,32)])),n=Ne(De(["bytes1","address","bytes32","bytes32"],["0xff",t.factory,e,r]));return Te(st(n,12))}async function oce(t,e,r,n,s,i){return(await Promise.all(kD.map(async a=>{try{const c=a.signature.SignatureCoder.decode(H(r)),l=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),u=a.config.ConfigCoder.imageHashOf(l.config);if(I2(i[a.version],u).toLowerCase()===t.toLowerCase())return!0;const d=await a.signature.SignatureCoder.recover(c,{address:t,digest:H(e),chainId:n},s),h=a.config.ConfigCoder.imageHashOf(d.config);return I2(i[a.version],h).toLowerCase()===t.toLowerCase()}catch{}return!1}))).some(a=>a)}function ace(t){const e=Object.keys(t).length;for(let r=1;r<=e;r++){const n=t[r];if(!n||n.version!==r)return!1}return!0}function cce(t){const e=Object.keys(t).length;return t[e]}const lce={1:YM,2:dD};var uce=Object.freeze({__proto__:null,addressOf:I2,isValidCounterfactual:oce,isValidVersionedContext:ace,latestContext:cce,defaultContexts:lce});const Jg=`tuple( + bool delegateCall, + bool revertOnError, + uint256 gasLimit, + address target, + uint256 value, + bytes data +)[]`;function fce(t,e,r,n){return yr({},t,{chainId:r,intent:{id:n,wallet:e}})}function dce(t){return Ne(Kt.defaultAbiCoder().encode(["address","uint256","bytes32"],[t.intent.wallet,t.chainId,t.intent.id]))}function hce(t){const e=Kt.defaultAbiCoder().decode(["uint256",Jg],t);if(e.length!==2||!e[0]||!e[1])throw new Error("Invalid meta transaction data");return[e[0],e[1]]}function hD(t,e){return Kt.defaultAbiCoder().encode(["uint256",Jg],[t,O0(e)])}function pD(t,e){return Ne(hD(t,e))}function pce(t,e,r,n){return A1({address:t,chainId:e,digest:pD(r,n)})}function yce(t,e,r){return A1({address:t,chainId:e,digest:Ne(Kt.defaultAbiCoder().encode(["string",Jg],["guest:",O0(r)]))})}function yD(t,e){return e.map(r=>Ck(t,r))}function Ck(t,e){if(e.to&&e.to!==mi)return{nonce:Bh(e.nonce)?void 0:BigInt(e.nonce),transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Bh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:e.to,value:BigInt(e.value||0),data:e.data||"0x"}};{const r=new pt(Gt.mainModule.abi),n=r.encodeFunctionData(r.getFunction("createContract"),[e.data]);return{nonce:typeof e.nonce=="number"?BigInt(e.nonce):void 0,transaction:{delegateCall:!1,revertOnError:!1,gasLimit:Bh(e.gasLimit)?void 0:BigInt(e.gasLimit),to:t,value:BigInt(e.value||0),data:n}}}}function Yg(t){return t.delegateCall!==void 0||t.revertOnError!==void 0}function vD(t){return t.every(Yg)}function O0(t){return t.map(e=>{var r;return{delegateCall:e.delegateCall===!0,revertOnError:e.revertOnError===!0,gasLimit:Bh(e.gasLimit)?0n:BigInt(e.gasLimit),target:(r=e.to)!=null?r:mi,value:Bh(e.value)?0n:e.value,data:e.data||"0x"}})}function vce(t){return t.map(e=>({delegateCall:e.delegateCall,revertOnError:e.revertOnError,gasLimit:e.gasLimit,to:e.target,value:e.value,data:e.data}))}function gce(t,e){const r=BigInt(t),n=BigInt(e),s=2n**96n;if(n/s!==0n)throw new Error("Space already encoded");return n+r*s}function mce(t){const e=BigInt(t),r=2n**96n;return[e/r,e%r]}function xce(t,e){return Array.isArray(e)?vD(e)?e:yD(t,e).map(n=>n.transaction):Yg(e)?[e]:[Ck(t,e).transaction]}function gD(t){return t!==void 0&&t.entrypoint!==void 0&&t.chainId!==void 0&&t.transactions!==void 0&&t.nonce!==void 0&&t.intent!==void 0&&t.intent.id!==void 0&&t.intent.wallet!==void 0&&Array.isArray(t.transactions)&&t.transactions.reduce((e,r)=>e&&Yg(r),!0)}function mD(t){return t!==void 0&&t.signature!==void 0&&t.signature!==""&&gD(t)}function bce(t){const e=new pt(Gt.mainModule.abi);return e.encodeFunctionData(e.getFunction("execute"),mD(t)?[O0(t.transactions),t.nonce,t.signature]:[O0(t.transactions),0,new Uint8Array([])])}const xD="0x61c2926c",bD=`tuple( + bool delegateCall, + bool revertOnError, + uint256 gasLimit, + address target, + uint256 value, + bytes data +)[]`,O2=(t,e)=>{const r=[],n=new pt(Gt.mainModule.abi);for(const s of e){const i=Q(s.data||"0x");if(s.to===t&&H(i.slice(0,4))===xD){const o=i.slice(4),a=Kt.defaultAbiCoder().decode([bD],o)[0];r.push(...O2(s.to,a.map(c=>yr({},c,{to:c.target}))))}else try{const o=n.decodeFunctionData("execute",i)[0],a=O2(t,o.map(c=>yr({},c.toObject(),{to:c.target})));r.push(...a)}catch{r.push(s)}}return r},Bh=t=>t==null;var wce=Object.freeze({__proto__:null,MetaTransactionsType:Jg,intendTransactionBundle:fce,intendedTransactionID:dce,unpackMetaTransactionsData:hce,packMetaTransactionsData:hD,digestOfTransactions:pD,subdigestOfTransactions:pce,subdigestOfGuestModuleTransactions:yce,toSequenceTransactions:yD,toSequenceTransaction:Ck,isSequenceTransaction:Yg,hasSequenceTransactions:vD,sequenceTxAbiEncode:O0,fromTxAbiEncode:vce,encodeNonce:gce,decodeNonce:mce,fromTransactionish:xce,isTransactionBundle:gD,isSignedTransactionBundle:mD,encodeBundleExecData:bce,selfExecuteSelector:xD,selfExecuteAbi:bD,unwind:O2});const wD="0x608060405234801561001057600080fd5b5060405161124a38038061124a83398101604081905261002f91610124565b600060405161003d906100dd565b604051809103906000f080158015610059573d6000803e3d6000fd5b5090506000816001600160a01b0316638f0684308686866040518463ffffffff1660e01b815260040161008e939291906101fb565b6020604051808303816000875af11580156100ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906100d19190610244565b9050806000526001601ff35b610fdc8061026e83390190565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561011b578181015183820152602001610103565b50506000910152565b60008060006060848603121561013957600080fd5b83516001600160a01b038116811461015057600080fd5b6020850151604086015191945092506001600160401b038082111561017457600080fd5b818601915086601f83011261018857600080fd5b81518181111561019a5761019a6100ea565b604051601f8201601f19908116603f011681019083821181831017156101c2576101c26100ea565b816040528281528960208487010111156101db57600080fd5b6101ec836020830160208801610100565b80955050505050509250925092565b60018060a01b0384168152826020820152606060408201526000825180606084015261022e816080850160208701610100565b601f01601f191691909101608001949350505050565b60006020828403121561025657600080fd5b8151801515811461026657600080fd5b939250505056fe608060405234801561001057600080fd5b50610fbc806100206000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c806376be4cea1161005057806376be4cea146100a65780638f068430146100b957806398ef1ed8146100cc57600080fd5b80631c6453271461006c5780633d787b6314610093575b600080fd5b61007f61007a366004610ad4565b6100df565b604051901515815260200160405180910390f35b61007f6100a1366004610ad4565b61023d565b61007f6100b4366004610b3e565b61031e565b61007f6100c7366004610ad4565b6108e1565b61007f6100da366004610ad4565b61096e565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061012890889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610181575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261017e91810190610c45565b60015b610232573d8080156101af576040519150601f19603f3d011682016040523d82523d6000602084013e6101b4565b606091505b508051600181900361022757816000815181106101d3576101d3610c69565b6020910101517fff00000000000000000000000000000000000000000000000000000000000000167f0100000000000000000000000000000000000000000000000000000000000000149250610235915050565b600092505050610235565b90505b949350505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906102879088908890889088906001908990600401610bc3565b6020604051808303816000875af19250505080156102e0575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526102dd91810190610c45565b60015b610232573d80801561030e576040519150601f19603f3d011682016040523d82523d6000602084013e610313565b606091505b506000915050610235565b600073ffffffffffffffffffffffffffffffffffffffff87163b6060827f64926492649264926492649264926492649264926492649264926492649264928888610369602082610c98565b610375928b9290610cd8565b61037e91610d02565b1490508015610484576000606089828a610399602082610c98565b926103a693929190610cd8565b8101906103b39190610e18565b955090925090508415806103c45750865b1561047d576000808373ffffffffffffffffffffffffffffffffffffffff16836040516103f19190610eb2565b6000604051808303816000865af19150503d806000811461042e576040519150601f19603f3d011682016040523d82523d6000602084013e610433565b606091505b50915091508161047a57806040517f9d0d6e2d0000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b60405180910390fd5b50505b50506104be565b87878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509294505050505b80806104ca5750600083115b156106bb576040517f1626ba7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8b1690631626ba7e90610523908c908690600401610f2b565b602060405180830381865afa92505050801561057a575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261057791810190610f44565b60015b61060f573d8080156105a8576040519150601f19603f3d011682016040523d82523d6000602084013e6105ad565b606091505b50851580156105bc5750600084115b156105db576105d08b8b8b8b8b600161031e565b9450505050506108d7565b806040517f6f2a95990000000000000000000000000000000000000000000000000000000081526004016104719190610f18565b7fffffffff0000000000000000000000000000000000000000000000000000000081167f1626ba7e000000000000000000000000000000000000000000000000000000001480158161065f575086155b801561066b5750600085115b1561068b5761067f8c8c8c8c8c600161031e565b955050505050506108d7565b841580156106965750825b80156106a0575087155b156106af57806000526001601ffd5b94506108d79350505050565b6041871461074b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f5369676e617475726556616c696461746f72237265636f7665725369676e657260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610471565b600061075a6020828a8c610cd8565b61076391610d02565b90506000610775604060208b8d610cd8565b61077e91610d02565b905060008a8a604081811061079557610795610c69565b919091013560f81c915050601b81148015906107b557508060ff16601c14155b15610842576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602d60248201527f5369676e617475726556616c696461746f723a20696e76616c6964207369676e60448201527f617475726520762076616c7565000000000000000000000000000000000000006064820152608401610471565b6040805160008152602081018083528e905260ff831691810191909152606081018490526080810183905273ffffffffffffffffffffffffffffffffffffffff8e169060019060a0016020604051602081039080840390855afa1580156108ad573d6000803e3d6000fd5b5050506020604051035173ffffffffffffffffffffffffffffffffffffffff161496505050505050505b9695505050505050565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea9061092b9088908890889088906001908990600401610bc3565b6020604051808303816000875af115801561094a573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102329190610c45565b6040517f76be4cea00000000000000000000000000000000000000000000000000000000815260009030906376be4cea906109b790889088908890889088908190600401610bc3565b6020604051808303816000875af1925050508015610a10575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252610a0d91810190610c45565b60015b610232573d808015610a3e576040519150601f19603f3d011682016040523d82523d6000602084013e610a43565b606091505b5080516001819003610a6257816000815181106101d3576101d3610c69565b8082fd5b73ffffffffffffffffffffffffffffffffffffffff81168114610a8857600080fd5b50565b60008083601f840112610a9d57600080fd5b50813567ffffffffffffffff811115610ab557600080fd5b602083019150836020828501011115610acd57600080fd5b9250929050565b60008060008060608587031215610aea57600080fd5b8435610af581610a66565b935060208501359250604085013567ffffffffffffffff811115610b1857600080fd5b610b2487828801610a8b565b95989497509550505050565b8015158114610a8857600080fd5b60008060008060008060a08789031215610b5757600080fd5b8635610b6281610a66565b955060208701359450604087013567ffffffffffffffff811115610b8557600080fd5b610b9189828a01610a8b565b9095509350506060870135610ba581610b30565b91506080870135610bb581610b30565b809150509295509295509295565b73ffffffffffffffffffffffffffffffffffffffff8716815285602082015260a060408201528360a0820152838560c0830137600060c085830181019190915292151560608201529015156080820152601f9092017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016909101019392505050565b600060208284031215610c5757600080fd5b8151610c6281610b30565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b81810381811115610cd2577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b60008085851115610ce857600080fd5b83861115610cf557600080fd5b5050820193919092039150565b80356020831015610cd2577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff602084900360031b1b1692915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082601f830112610d7e57600080fd5b813567ffffffffffffffff80821115610d9957610d99610d3e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610ddf57610ddf610d3e565b81604052838152866020858801011115610df857600080fd5b836020870160208301376000602085830101528094505050505092915050565b600080600060608486031215610e2d57600080fd5b8335610e3881610a66565b9250602084013567ffffffffffffffff80821115610e5557600080fd5b610e6187838801610d6d565b93506040860135915080821115610e7757600080fd5b50610e8486828701610d6d565b9150509250925092565b60005b83811015610ea9578181015183820152602001610e91565b50506000910152565b60008251610ec4818460208701610e8e565b9190910192915050565b60008151808452610ee6816020860160208601610e8e565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000610c626020830184610ece565b8281526040602082015260006102356040830184610ece565b600060208284031215610f5657600080fd5b81517fffffffff0000000000000000000000000000000000000000000000000000000081168114610c6257600080fdfea26469706673582212201a72aed4b15ffb05b6502997a9bb655992e06590bd26b336dfbb153d7ff6f34b64736f6c63430008120033",Cce="0x6492649264926492649264926492649264926492649264926492649264926492";async function CD(t,e,r,n){try{return await t.call({data:Le([wD,Kt.defaultAbiCoder().encode(["address","bytes32","bytes"],[e,r,n])])})==="0x01"}catch{return!1}}var Ece=Object.freeze({__proto__:null,EIP_6492_OFFCHAIN_DEPLOY_CODE:wD,EIP_6492_SUFFIX:Cce,validateEIP6492Offchain:CD});class kce{constructor(e){this.provider=e,this.isDeployedCache=new Set}module(e){return new dn(e,[...Gt.mainModuleUpgradable.abi,...Gt.mainModule.abi,...Gt.erc1271.abi],this.provider)}async isDeployed(e){if(this.isDeployedCache.has(e))return!0;const n=(await this.provider.getCode(e).then(s=>Q(s))).length!==0;return n&&this.isDeployedCache.add(e),n}async implementation(e){const r=Kt.defaultAbiCoder().encode(["address"],[e]),n=await this.provider.getStorage(e,r).then(s=>Q(s));if(n.length===20)return Te(H(n));if(n.length===32)return Kt.defaultAbiCoder().decode(["address"],n)[0]}async imageHash(e){try{return await this.module(e).imageHash()}catch{}}async nonce(e,r=0){try{return await this.module(e).readNonce(r)}catch(n){if(!await this.isDeployed(e))return 0;throw n}}async isValidSignature(e,r,n){return CD(this.provider,e,r,n)}}var Ace=Object.freeze({__proto__:null,OnChainReader:kce});function Sce(t){return t&&t.address&&t.digest&&t.chainId!==void 0&&t.config}var ye=Object.freeze({__proto__:null,config:Fae,signature:Uae,context:uce,signer:Gae,EIP1271:Vae,transaction:wce,reader:Ace,EIP6492:Ece,isWalletSignRequestMetadata:Sce});const R2=[{config:fk,signature:uk},{config:Qg,signature:Kg}];function ED(t){const e=t-1;if(e<0||e>=R2.length)throw new Error(`No coder for version: ${t}`);return R2[e]}function Tce(t){return ED(t)}var dr=Object.freeze({__proto__:null,ALL_CODERS:R2,coderFor:ED,genericCoderFor:Tce});const Ur="2.0.0",kD=[Vi,je],Pce=Object.freeze(Object.defineProperty({__proto__:null,VERSION:Ur,allVersions:kD,commons:ye,universal:dr,v1:Vi,v2:je},Symbol.toStringTag,{value:"Module"}));function Ice(t,e,r){for(let n=0;ne.version)&&(e=r);if(e===void 0)throw new Error("No migrations");return e}async getAllMigratePresignedTransaction(e){const{address:r,fromImageHash:n,fromVersion:s,chainId:i}=e;let o=n,a=s;const c=Object.values(this.contexts),l=[];for(let u=1;uQ(i).length===0))return f3;if(!n.provider)throw new Error("signer.provider is not set, but is required");return n.provider.estimateGas({from:e,to:s.to,data:s.data,value:s.value})}))).map(s=>({executed:!0,succeeded:!0,gasUsed:Number(s),gasLimit:Number(s)}))}async getNonce(e,r,n){if(!this.provider)throw new Error("provider is not set");if(await this.provider.getCode(e)==="0x")return 0;r===void 0&&(r=0);const i=await new dn(e,Gt.mainModule.abi,this.provider).readNonce(r,{blockTag:n});return ye.transaction.encodeNonce(r,i)}async wait(e,r,n=this.waitPollRate,s=5){var i=this;typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e));let o=!1;const a=async function(u,f){let d=0;for(;!o;){try{return await u()}catch(h){if(d++,s!==void 0&&d>=s)throw Se.error(`giving up after ${d} failed attempts${f?`: ${f}`:""}`,h),h;Se.warn(`attempt #${d} failed${f?`: ${f}`:""}`,h)}n>0&&await new Promise(h=>setTimeout(h,n))}throw new Error(`timed out after ${d} failed attempts${f?`: ${f}`:""}`)},c=async function(){let u=i.fromBlockLog;if(u<0&&(u=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number")+u),typeof e!="string")throw new Error("impossible");const f=e.replace("0x","");for(;!o;){const d=await a(()=>i.provider.getBlockNumber(),"unable to get latest block number"),h=await a(()=>i.provider.getLogs({fromBlock:Math.max(0,u-i.deltaBlocksLog),toBlock:d,topics:["0x1f180c27086c7a39ea2a7b25239d1ab92348f07ca7bb59d1438fcf527568f881"]}),`unable to get NonceChange logs for blocks ${Math.max(0,u-i.deltaBlocksLog)} to ${d}`);u=d;const p=(await Promise.all(h.map(b=>a(()=>i.provider.getTransactionReceipt(b.transactionHash),`unable to get receipt for transaction ${b.transactionHash}`)))).find(b=>b==null?void 0:b.logs.find(v=>v.topics.length===0&&v.data.replace("0x","")===f||v.topics.length===1&&v.topics[0]==="0x3dbd1590ea96dd3253a91f24e64e3a502e1225d602a5731357bc12643070ccd7"&&v.data.length>=64&&v.data.replace("0x","").startsWith(f)));if(p){const b=await a(()=>i.provider.getTransaction(p.hash),`unable to get transaction ${p.hash}`);if(!b)throw new Error(`Transaction response not found for ${e}`);const v=b;return v.receipt=p,v}o||await new Promise(b=>setTimeout(b,n))}throw new Error(`Timeout waiting for transaction receipt ${e}`)};return r!==void 0?Promise.race([c(),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):c()}}function Bce(t){return typeof t=="object"&&t.signer instanceof lo}class Lce extends ID{constructor(e){if(super(e instanceof lo?{provider:e.provider}:wl({},e,{provider:e.signer.provider})),this.signer=void 0,this.txnOptions=void 0,this.signer=e instanceof lo?e:e.signer,!this.signer.provider)throw new Error("Signer must have a provider")}async getFeeOptions(e,...r){return{options:[]}}async getFeeOptionsRaw(e,r,n){return{options:[]}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}setTransactionOptions(e){this.txnOptions=e}async relay(e,r,n=!0){r!==void 0&&Se.warn("LocalRelayer doesn't accept fee quotes");const s=ye.transaction.encodeBundleExecData(e),i=this.signer.sendTransaction(wl({to:e.entrypoint,data:s},this.txnOptions,{gasLimit:9e6}));if(n){const o=await i;return o.receipt=await o.wait(),o}else return i}}const jce="v1",Fce="v0.4.1",Uce="1e27d0fd295aa5897878939595ef0c6adc54b1a3";let ca=function(t){return t.UNKNOWN="UNKNOWN",t.DROPPED="DROPPED",t.QUEUED="QUEUED",t.SENT="SENT",t.SUCCEEDED="SUCCEEDED",t.PARTIALLY_FAILED="PARTIALLY_FAILED",t.FAILED="FAILED",t}({}),$ce=function(t){return t.SEND="SEND",t.RECEIVE="RECEIVE",t.BRIDGE_DEPOSIT="BRIDGE_DEPOSIT",t.BRIDGE_WITHDRAW="BRIDGE_WITHDRAW",t.BURN="BURN",t.UNKNOWN="UNKNOWN",t}({}),Wce=function(t){return t.UNKNOWN="UNKNOWN",t.ERC20_TOKEN="ERC20_TOKEN",t.ERC1155_TOKEN="ERC1155_TOKEN",t}({}),Vce=function(t){return t.DESC="DESC",t.ASC="ASC",t}({});class OD{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Relayer/",this.ping=(n,s)=>this.fetch(this.url("Ping"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Je({},n,s)).then(i=>Ye(i).then(o=>({version:o.version})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Je({},n,s)).then(i=>Ye(i).then(o=>({status:o.status})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getSequenceContext=(n,s)=>this.fetch(this.url("GetSequenceContext"),Je({},n,s)).then(i=>Ye(i).then(o=>({data:o.data})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),Je({},n,s)).then(i=>Ye(i).then(o=>({chainID:o.chainID})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.sendMetaTxn=(n,s,i)=>this.fetch(this.url("SendMetaTxn"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,txnHash:a.txnHash})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNonce=(n,s,i)=>this.fetch(this.url("GetMetaTxnNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnReceipt=(n,s,i)=>this.fetch(this.url("GetMetaTxnReceipt"),Je(n,s,i)).then(o=>Ye(o).then(a=>({receipt:a.receipt})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.simulate=(n,s,i)=>this.fetch(this.url("Simulate"),Je(n,s,i)).then(o=>Ye(o).then(a=>({results:a.results})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateMetaTxnGasLimits=(n,s,i)=>this.fetch(this.url("UpdateMetaTxnGasLimits"),Je(n,s,i)).then(o=>Ye(o).then(a=>({payload:a.payload})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.feeTokens=(n,s)=>this.fetch(this.url("FeeTokens"),Je({},n,s)).then(i=>Ye(i).then(o=>({isFeeRequired:o.isFeeRequired,tokens:o.tokens})),i=>{throw Qe.new({cause:`fetch(): ${i.message||""}`})}),this.feeOptions=(n,s,i)=>this.fetch(this.url("FeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options,sponsored:a.sponsored,quote:a.quote})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTxnNetworkFeeOptions=(n,s,i)=>this.fetch(this.url("GetMetaTxnNetworkFeeOptions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({options:a.options})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getMetaTransactions=(n,s,i)=>this.fetch(this.url("GetMetaTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.sentTransactions=(n,s,i)=>this.fetch(this.url("SentTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.pendingTransactions=(n,s,i)=>this.fetch(this.url("PendingTransactions"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTank=(n,s,i)=>this.fetch(this.url("GetGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasTank=(n,s,i)=>this.fetch(this.url("AddGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasTank=(n,s,i)=>this.fetch(this.url("UpdateGasTank"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasTank:a.gasTank})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasSponsor=(n,s,i)=>this.fetch(this.url("GetGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addressGasSponsors=(n,s,i)=>this.fetch(this.url("AddressGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasSponsors=(n,s,i)=>this.fetch(this.url("ListGasSponsors"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,gasSponsors:a.gasSponsors})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.addGasSponsor=(n,s,i)=>this.fetch(this.url("AddGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.updateGasSponsor=(n,s,i)=>this.fetch(this.url("UpdateGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,gasSponsor:a.gasSponsor})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.removeGasSponsor=(n,s,i)=>this.fetch(this.url("RemoveGasSponsor"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.reportGasSponsorUsage=(n,s,i)=>this.fetch(this.url("ReportGasSponsorUsage"),Je(n,s,i)).then(o=>Ye(o).then(a=>({gasSponsorUsage:a.gasSponsorUsage})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.nextGasTankBalanceAdjustmentNonce=(n,s,i)=>this.fetch(this.url("NextGasTankBalanceAdjustmentNonce"),Je(n,s,i)).then(o=>Ye(o).then(a=>({nonce:a.nonce})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.adjustGasTankBalance=(n,s,i)=>this.fetch(this.url("AdjustGasTankBalance"),Je(n,s,i)).then(o=>Ye(o).then(a=>({status:a.status,adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.getGasTankBalanceAdjustment=(n,s,i)=>this.fetch(this.url("GetGasTankBalanceAdjustment"),Je(n,s,i)).then(o=>Ye(o).then(a=>({adjustment:a.adjustment})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.listGasTankBalanceAdjustments=(n,s,i)=>this.fetch(this.url("ListGasTankBalanceAdjustments"),Je(n,s,i)).then(o=>Ye(o).then(a=>({page:a.page,adjustments:a.adjustments})),o=>{throw Qe.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Je=(t={},e={},r=null)=>({method:"POST",headers:wl({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Ye=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Ek.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(zce[n]||Bt).new(r)}return r});let Bt=class RD extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,RD.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},ND=class _D extends Bt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_D.prototype)}},Qe=class MD extends Bt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MD.prototype)}},DD=class BD extends Bt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BD.prototype)}},LD=class jD extends Bt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jD.prototype)}},FD=class UD extends Bt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UD.prototype)}},Ek=class $D extends Bt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$D.prototype)}},WD=class VD extends Bt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VD.prototype)}},HD=class zD extends Bt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zD.prototype)}},GD=class qD extends Bt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qD.prototype)}},KD=class QD extends Bt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QD.prototype)}},JD=class YD extends Bt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YD.prototype)}},XD=class ZD extends Bt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZD.prototype)}},eB=class tB extends Bt{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tB.prototype)}},rB=class nB extends Bt{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nB.prototype)}},sB=class iB extends Bt{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iB.prototype)}},oB=class aB extends Bt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aB.prototype)}},cB=class lB extends Bt{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lB.prototype)}},uB=class fB extends Bt{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fB.prototype)}},dB=class hB extends Bt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hB.prototype)}},Hce=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.MethodNotFound="MethodNotFound",t.Aborted="Aborted",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.NotFound="NotFound",t}({});const zce={0:ND,[-1]:Qe,[-2]:DD,[-3]:LD,[-4]:FD,[-5]:Ek,[-6]:WD,[-7]:HD,[-8]:GD,[-9]:KD,[-10]:JD,1e3:XD,1001:eB,1003:rB,1005:sB,2001:oB,2002:cB,2003:uB,3e3:dB};var id=Object.freeze({__proto__:null,WebRPCVersion:jce,WebRPCSchemaVersion:Fce,WebRPCSchemaHash:Uce,ETHTxnStatus:ca,TransferType:$ce,FeeTokenType:Wce,SortOrder:Vce,Relayer:OD,WebrpcError:Bt,WebrpcEndpointError:ND,WebrpcRequestFailedError:Qe,WebrpcBadRouteError:DD,WebrpcBadMethodError:LD,WebrpcBadRequestError:FD,WebrpcBadResponseError:Ek,WebrpcServerPanicError:WD,WebrpcInternalErrorError:HD,WebrpcClientDisconnectedError:GD,WebrpcStreamLostError:KD,WebrpcStreamFinishedError:JD,UnauthorizedError:XD,PermissionDeniedError:eB,MethodNotFoundError:rB,AbortedError:sB,InvalidArgumentError:oB,UnavailableError:cB,QueryFailedError:uB,NotFoundError:dB,errors:Hce});const Gce=[ca.DROPPED,ca.SUCCEEDED,ca.PARTIALLY_FAILED,ca.FAILED],qce=[ca.DROPPED,ca.PARTIALLY_FAILED,ca.FAILED];function Kce(t){return t.url!==void 0&&typeof t.url=="string"&&t.provider!==void 0&&t.provider instanceof co}const Qce=globalThis.fetch;class pB{constructor(e){if(this.options=e,this.service=void 0,this.provider=void 0,this._fetch=(r,n)=>{const s={},{jwtAuth:i,projectAccessKey:o}=this.options;return i&&i.length>0&&(s.Authorization=`BEARER ${i}`),o&&o.length>0&&(s["X-Access-Key"]=o),n.headers=wl({},n.headers,s),Qce(r,n)},this.service=new OD(e.url,this._fetch),e.provider instanceof co)this.provider=e.provider;else{const{jwtAuth:r,projectAccessKey:n}=this.options,s=I0(e.provider.url,n,r);this.provider=new zt(s,void 0,{staticNetwork:!0})}}async waitReceipt(e,r=1e3,n=5,s){typeof e!="string"&&(e=ye.transaction.intendedTransactionID(e)),Se.info(`[rpc-relayer/waitReceipt] waiting for ${e}`);let i=0;for(;s===void 0||!s();){try{const{receipt:o}=await this.service.getMetaTxnReceipt({metaTxID:e});if(o&&o.txnReceipt&&o.txnReceipt!=="null"&&Gce.includes(o.status))return{receipt:o}}catch(o){if(i++,i===n)throw o}(s===void 0||!s())&&await new Promise(o=>setTimeout(o,r))}throw new Error(`Cancelled waiting for transaction receipt ${e}`)}async simulate(e,...r){const s=Kt.defaultAbiCoder().encode([ye.transaction.MetaTransactionsType],[ye.transaction.sequenceTxAbiEncode(r)]);return(await this.service.simulate({wallet:e,transactions:s})).results}async getFeeOptions(e,...r){const n=await this.service.feeTokens();if(n.isFeeRequired){const s=n.tokens.map(c=>c.symbol).join(", ");Se.info(`[rpc-relayer/getFeeOptions] relayer fees are required, accepted tokens are ${s}`);const i=await this.getNonce(e);if(!this.provider)throw Se.warn("[rpc-relayer/getFeeOptions] provider not set, needed for stub signature"),new Error("provider is not set");const{options:o,quote:a}=await this.service.feeOptions({wallet:e,to:e,data:ye.transaction.encodeBundleExecData({entrypoint:e,transactions:r,nonce:i})});return Se.info(`[rpc-relayer/getFeeOptions] got refund options ${JSON.stringify(o)}`),{options:o,quote:{_tag:"FeeQuote",_quote:a}}}else return Se.info("[rpc-relayer/getFeeOptions] relayer fees are not required"),{options:[]}}async getFeeOptionsRaw(e,r,n){const{options:s,quote:i}=await this.service.feeOptions({wallet:e,to:e,data:H(r),simulate:n==null?void 0:n.simulate});return{options:s,quote:{_tag:"FeeQuote",_quote:i}}}async gasRefundOptions(e,...r){const{options:n}=await this.getFeeOptions(e,...r);return n}async getNonce(e,r){Se.info(`[rpc-relayer/getNonce] get nonce for wallet ${e} space: ${r}`);const n=r!==void 0?Zc(BigInt(r)):void 0,s=await this.service.getMetaTxnNonce({walletContractAddress:e,space:n}),i=BigInt(s.nonce),[o,a]=ye.transaction.decodeNonce(i);return Se.info(`[rpc-relayer/getNonce] got next nonce for wallet ${e} ${a} space: ${o}`),i}async relay(e,r,n=!0){var s=this;Se.info(`[rpc-relayer/relay] relaying signed meta-transactions ${JSON.stringify(e)} with quote ${JSON.stringify(r)}`);let i;if(r!==void 0&&(typeof r._quote=="string"?i=r._quote:Se.warn("[rpc-relayer/relay] ignoring invalid fee quote")),!this.provider)throw Se.warn("[rpc-relayer/relay] provider not set, failed relay"),new Error("provider is not set");const o=ye.transaction.encodeBundleExecData(e),a=await this.service.sendMetaTxn({call:{walletAddress:e.intent.wallet,contract:e.entrypoint,input:o},quote:i});if(Se.info(`[rpc-relayer/relay] got relay result ${JSON.stringify(a)}`),n)return this.wait(e.intent.id);{const c={hash:e.intent.id,confirmations:0,from:e.intent.wallet,wait:u=>Promise.reject(new Error("impossible"))},l=async function(f){var d;if(!s.provider)throw new Error("cannot wait for receipt, relayer has no provider set");const h=await s.wait(e.intent.id),y=(d=h.receipt)==null?void 0:d.transactionHash;if(!y)throw new Error("cannot wait for receipt, unknown native transaction hash");return Object.assign(c,h),s.provider.waitForTransaction(y,f)};return c.wait=l,c}}async wait(e,r,n=1e3,s=5){var i=this;let o=!1;const{receipt:a}=await(r!==void 0?Promise.race([this.waitReceipt(e,n,s,()=>o),new Promise((l,u)=>setTimeout(()=>{o=!0,u(`Timeout waiting for transaction receipt ${e}`)},r))]):this.waitReceipt(e,n,s));if(!a.txnReceipt||qce.includes(a.status))throw new Jce(a);const c=JSON.parse(a.txnReceipt);return{blockHash:c.blockHash,blockNumber:Number(c.blockNumber),confirmations:1,from:typeof e=="string"?void 0:e.intent.wallet,hash:c.transactionHash,raw:a.txnReceipt,receipt:c,wait:async function(l){return i.provider.waitForTransaction(c.transactionHash,l)}}}}class Jce{constructor(e){this.receipt=e}}function yB(t){return typeof t=="object"&&typeof t.simulate=="function"&&typeof t.getFeeOptions=="function"&&typeof t.gasRefundOptions=="function"&&typeof t.getNonce=="function"&&typeof t.relay=="function"&&typeof t.wait=="function"}const Yce=Object.freeze(Object.defineProperty({__proto__:null,LocalRelayer:Lce,ProviderRelayer:ID,ProviderRelayerDefaults:PD,RpcRelayer:pB,RpcRelayerProto:id,isLocalRelayerOptions:Bce,isProviderRelayerOptions:Dce,isRelayer:yB,isRpcRelayerOptions:Kce,proto:id},Symbol.toStringTag,{value:"Module"}));function vB(t){return t.getAddress!==void 0&&t.buildDeployTransaction!==void 0&&t.predecorateSignedTransactions!==void 0&&t.decorateTransactions!==void 0&&t.sign!==void 0&&t.notifyStatusChange!==void 0}class gB{constructor(e,r=!0){this.signer=e,this.eoa=r}getAddress(){return this.signer.getAddress()}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}sign(e){return this.signer.signMessage(e)}notifyStatusChange(e,r,n){}suffix(){return new Uint8Array([2])}}var B2=Object.freeze({__proto__:null,isSapientSigner:vB,SignerWrapper:gB});let la=function(t){return t[t.INITIAL=0]="INITIAL",t[t.SIGNING=1]="SIGNING",t[t.SIGNED=2]="SIGNED",t[t.ERROR=3]="ERROR",t}({});function mB(t){return t===void 0||t.state===la.INITIAL||t.state===la.SIGNING}class Xg{constructor(e,r=Xg.randomTag()){this.tag=r,this.observers=[],this.signers=[],this.count=0,this.setSigners(e)}static randomTag(){return`default-${H(Rr(8)).slice(2)}`}pullId(){return`${this.tag}-${this.count++}`}setSigners(e){this.signers=e.map(r=>vB(r)?r:new gB(r))}async getSigners(){return Promise.all(this.signers.map(async function(e){return e.getAddress()}))}subscribe(e){return this.observers.push(e),()=>{this.observers=this.observers.filter(r=>r!==e)}}async notifyObservers(e,r,n){await Promise.all([...this.signers.map(async function(s){return s.notifyStatusChange(e,r,n)}),...this.observers.map(async function(s){return s(r,n)})])}async buildDeployTransaction(e){let r;for(const n of this.signers){const s=await n.buildDeployTransaction(e);r===void 0?r=s:s!=null&&s.transactions&&(r.transactions=s.transactions.concat(r.transactions))}return r}async predecorateSignedTransactions(e){const r=[];for(const n of this.signers)r.push(...await n.predecorateSignedTransactions(e??{}));return r}async decorateTransactions(e,r){for(const n of this.signers)e=await n.decorateTransactions(e,r??{});return e}signMessage(e){var r=this;const n=this.pullId();return new Promise(async function(s){const{message:i,metadata:o,callback:a,candidates:c}=e,l={ended:!1,message:i,signers:{}};let u=o??{};const f=p=>{u=p,r.notifyObservers(n,l,u)},d=()=>{try{r.notifyObservers(n,l,u);const p=Object.entries(l.signers).filter(([b,v])=>mB(v));if(a&&a(l,f)||p.length===0){l.ended=!0,s(l),r.notifyObservers(n,l,u);return}}catch(p){console.error("Error while notifying observers",p)}};let h=r.signers;if(c){const p=await Promise.all(r.signers.map(async function(b){return b.getAddress()}));h=r.signers.filter((b,v)=>c.includes(p[v]))}const y=await Promise.allSettled(h.map(async function(p){const b=await p.getAddress();l.signers[b]={state:la.SIGNING,request:p.sign(i,o??{}).then(v=>{const g=p.suffix();return l.signers[b]={state:la.SIGNED,signature:v,suffix:g},d(),v}).catch(v=>{throw l.signers[b]={state:la.ERROR,error:v},d(),v})}}));for(let p=0;pPt(e))):Pt(t)}const h3=t=>{const e=new Map;for(const r of Object.keys(t.signers)){const n=t.signers[r];if(n.state===la.SIGNED){const s=Q(n.suffix),i=De(["bytes","bytes"],[n.signature,s]);e.set(r,{signature:i,isDynamic:s.length!==1||s[0]!==2})}}return e};class Bu extends lo{constructor(e){var r;if(BigInt(e.chainId)===0n&&!e.coders.signature.supportsNoChainId)throw new Error(`Sequence version ${e.config.version} doesn't support chainId 0`);super((r=e.provider)!=null?r:null),this.context=void 0,this.config=void 0,this.address=void 0,this.chainId=void 0,this.relayer=void 0,this.coders=void 0,this.orchestrator=void 0,this._reader=void 0,this.context=e.context,this.config=e.config,this.orchestrator=e.orchestrator,this.coders=e.coders,this.address=e.address,this.chainId=e.chainId,this.relayer=e.relayer,this._reader=e.reader}static newWallet(e){const r=ye.context.addressOf(e.context,e.coders.config.imageHashOf(e.config));return new Bu(Mo({},e,{address:r}))}reader(){if(this._reader)return this._reader;if(!this.provider)throw new Error("Wallet status provider requires a provider");return new ye.reader.OnChainReader(this.provider)}setConfig(e){this.config=e}setOrchestrator(e){this.orchestrator=e}setAddress(e){this.address=e}getSigners(){return this.orchestrator.getSigners()}async getAddress(){return this.address}async decorateTransactions(e){const r=await this.orchestrator.decorateTransactions(e);if(await this.reader().isDeployed(this.address))return r;const n=[{to:r.entrypoint,data:ye.transaction.encodeBundleExecData(r),revertOnError:!0}],s=await this.buildDeployTransaction();return s&&n.unshift(...s.transactions),{entrypoint:this.context.guestModule,chainId:this.chainId,intent:r.intent,transactions:n}}async buildDeployTransaction(e){if(e!=null&&e.ignoreDeployed&&await this.reader().isDeployed(this.address))return;const r=this.coders.config.imageHashOf(this.config);if(ye.context.addressOf(this.context,r)!==this.address)throw new Error(`First address of config ${r} doesn't match wallet address ${this.address}`);const n=Bu.buildDeployTransaction(this.context,r);if(e!=null&&e.includeChildren){const s=await this.orchestrator.buildDeployTransaction(e);s&&(n.transactions=s.transactions.concat(n.transactions))}return n}async deploy(e){const r=await this.buildDeployTransaction(e);if(r!==void 0){if(!this.relayer)throw new Error("Wallet deploy requires a relayer");return this.relayer.relay(Mo({},r,{chainId:this.chainId,intent:{id:H(Rr(32)),wallet:this.address}}))}}static buildDeployTransaction(e,r){const n=new pt(Gt.factory.abi);return{entrypoint:e.guestModule,transactions:[{to:e.factory,data:n.encodeFunctionData(n.getFunction("deploy"),[e.mainModule,r]),gasLimit:1e5,delegateCall:!1,revertOnError:!0,value:0}]}}async buildUpdateConfigurationTransaction(e){if(this.coders.config.update.isKindUsed){const r=await this.reader().implementation(this.address),n=r&&r===this.context.mainModuleUpgradable;return this.coders.config.update.buildTransaction(this.address,e,this.context,n?"later":"first")}return this.coders.config.update.buildTransaction(this.address,e,this.context)}async getNonce(e=0){const r=await this.reader().nonce(this.address,e);if(r===void 0)throw new Error("Unable to determine nonce");return Number(r)}async signDigest(e,r){const n=k2(this.address,this.chainId,e);if(this.coders.config.hasSubdigest(this.config,n))return this.coders.signature.encodeSigners(this.config,new Map,[n],this.chainId).encoded;const s=Mo({},r,{digest:e,chainId:this.chainId,address:this.address,config:this.config}),i=Q(n),o=await this.orchestrator.signMessage({candidates:this.coders.config.signersOf(this.config).map(c=>c.address),message:i,metadata:s,callback:(c,l)=>{const u=h3(c),f=Mo({},s,{parts:u});return l(f),this.coders.signature.hasEnoughSigningPower(this.config,u)}}),a=h3(o);return this.coders.signature.encodeSigners(this.config,a,[],this.chainId).encoded}signMessage(e){return this.signDigest(Ne(e),{message:e})}signTypedData(e,r,n){const s=Ed({domain:e,types:r,message:n});return this.signDigest(s)}signTransactionBundle(e){if(e.entrypoint!==this.address)throw new Error(`Invalid entrypoint: ${e.entrypoint} !== ${this.address}`);return this.signTransactions(e.transactions,e.nonce)}async fetchNonceOrSpace(e){let r;if(e&&e.space!==void 0)r=BigInt(e.space);else{if(e===void 0)return this.randomNonce();if(e&&e.serial===!0)r=0;else return e}const n=await this.reader().nonce(this.address,r);if(n===void 0)throw new Error("Unable to determine nonce");return ye.transaction.encodeNonce(r,n)}randomNonce(){const e=BigInt(H(Rr(12)));return ye.transaction.encodeNonce(e,0)}async signTransactions(e,r,n){const s=await d3(e),i=ye.transaction.fromTransactionish(this.address,s);i.length===0&&i.push({to:this.address,data:"0x",value:0,gasLimit:0,delegateCall:!1,revertOnError:!0});const o=await this.fetchNonceOrSpace(r),a=ye.transaction.digestOfTransactions(o,i),c=Mo({digest:a,transactions:i},n),l=await this.signDigest(a,c);return{intent:{id:k2(this.address,this.chainId,a),wallet:this.address},chainId:this.chainId,transactions:i,entrypoint:this.address,nonce:o,signature:l}}async sendSignedTransaction(e,r){if(!this.relayer)throw new Error("Wallet sendTransaction requires a relayer");return this.relayer.relay(e,r)}async sendTransaction(e,r){let n;(r==null?void 0:r.nonce)!==void 0?n=r.nonce:r!=null&&r.serial?n={serial:!0}:n=this.randomNonce();const s=await this.signTransactions(e,n),i=await this.decorateTransactions(s);return this.sendSignedTransaction(i,r==null?void 0:r.quote)}async fillGasLimits(e){const r=await d3(e),n=ye.transaction.fromTransactionish(this.address,r),s=this.relayer;if(!s)throw new Error("Wallet fillGasLimits requires a relayer");const i=await s.simulate(this.address,...n);return n.map((o,a)=>{const c=o.gasLimit?Number(o.gasLimit):i[a].gasLimit;return Mo({},o,i[a],{gasLimit:c})})}connect(e,r){return new Bu({coders:this.coders,context:this.context,config:this.config,chainId:this.chainId,address:this.address,orchestrator:this.orchestrator,reader:this._reader,provider:e,relayer:r??this.relayer})}signTransaction(e){throw new Error("Method not implemented.")}}function qs(){return qs=Object.assign?Object.assign.bind():function(t){for(var e=1;e=BigInt(s.value))return s}else if(s.token.contractAddress&&s.token.type===id.FeeTokenType.ERC20_TOKEN&&await new dn(s.token.contractAddress,n,this.provider).balanceOf(this.account.address)>=BigInt(s.value))return s;throw new Error("No fee option available - not enough balance")}async sendTransaction(e,r){var n,s,i,o,a;const c=await this.account.prepareTransactions({txs:e,chainId:this.chainId,stubSignatureOverrides:(n=(s=this.options)==null?void 0:s.stubSignatureOverrides)!=null?n:new Map,simulateForFeeOptions:r==null?void 0:r.simulateForFeeOptions}),u=await((i=(o=this.options)==null?void 0:o.selectFee)!=null?i:this.defaultSelectFee.bind(this))(e,c.feeOptions),f=[...c.transactions,...Zce(u)];return this.account.sendTransaction(f,this.chainId,c.feeQuote,void 0,void 0,((a=this.options)==null?void 0:a.nonceSpace)!==void 0?{nonceSpace:this.options.nonceSpace}:void 0)}getBalance(e){return this.provider.getBalance(this.account.address,e)}call(e,r){return this.provider.call(qs({},e,{blockTag:r}))}async resolveName(e){const r=await this.provider.resolveName(e);if(!r)throw new Error(`Could not resolve name ${e}`);return r}connect(e){throw new Error("Method not implemented.")}signTransaction(e){throw new Error("Method not implemented.")}getTransactionCount(e){throw new Error("Method not implemented.")}estimateGas(e){throw new Error("Method not implemented.")}getChainId(){return Promise.resolve(Number(this.chainId))}getGasPrice(){throw new Error("Method not implemented.")}getFeeData(){throw new Error("Method not implemented.")}getNonce(e){throw new Error("Method not implemented.")}populateCall(e){throw new Error("Method not implemented.")}checkTransaction(e){throw new Error("Method not implemented.")}async populateTransaction(e){throw new Error("Method not implemented.")}_checkProvider(e){throw new Error("Method not implemented.")}}class tle{async isDeployed(e){return!1}async implementation(e){}async imageHash(e){}async nonce(e,r){return 0n}async isValidSignature(e,r,n){throw new Error("Method not supported.")}}class qi{constructor(e){this.address=void 0,this.networks=void 0,this.tracker=void 0,this.contexts=void 0,this.migrator=void 0,this.migrations=void 0,this.orchestrator=void 0,this.jwt=void 0,this.projectAccessKey=void 0,this.address=Te(e.address),this.contexts=e.contexts,this.tracker=e.tracker,this.networks=e.networks,this.orchestrator=e.orchestrator,this.jwt=e.jwt,this.projectAccessKey=e.projectAccessKey,this.migrations=e.migrations||D2.DefaultMigrations,this.migrator=new M2.Migrator(e.tracker,this.migrations,this.contexts)}getSigner(e,r){return new ele(this,e,r)}static async new(e){var r;const s=new M2.Migrator(e.tracker,(r=e.migrations)!=null?r:D2.DefaultMigrations,e.contexts).lastMigration(),i=s.configCoder,o=i.fromSimple(e.config),a=i.imageHashOf(o),c=e.contexts[s.version],l=ye.context.addressOf(c,a);return await e.tracker.saveCounterfactualWallet({config:o,context:Object.values(e.contexts)}),new qi({address:l,tracker:e.tracker,contexts:e.contexts,networks:e.networks,orchestrator:e.orchestrator,migrations:e.migrations,projectAccessKey:e.projectAccessKey})}getAddress(){return Promise.resolve(this.address)}get version(){return this.migrator.lastMigration().version}get coders(){const e=this.migrator.lastMigration();return{signature:e.signatureCoder,config:e.configCoder}}network(e){const r=BigInt(e),n=this.networks.find(s=>r===BigInt(s.chainId));if(!n)throw new Error(`Network not found for chainId ${e}`);return n}providerFor(e){const r=this.network(e);if(!r.provider&&!r.rpcUrl)throw new Error(`Provider not found for chainId ${e}`);const n=new ot(r.name,r.chainId);return r.provider||new zt(I0(r.rpcUrl,this.projectAccessKey,this.jwt),n,{staticNetwork:n})}reader(e){return BigInt(e)===0n?new tle:new ye.reader.OnChainReader(this.providerFor(e))}relayer(e){const r=this.network(e);if(!r.relayer)throw new Error(`Relayer not found for chainId ${e}`);return yB(r.relayer)?r.relayer:new pB(qs({},r.relayer,this.projectAccessKey?{projectAccessKey:this.projectAccessKey}:{jwtAuth:this.jwt}))}setOrchestrator(e){this.orchestrator=e}setJwt(e){this.jwt=e}contextFor(e){const r=this.contexts[e];if(!r)throw new Error(`Context not found for version ${e}`);return r}walletForStatus(e,r){const n=dr.coderFor(r.version);return this.walletFor(e,this.contextFor(r.version),r.config,n)}walletFor(e,r,n,s){const i=BigInt(e)===0n;return new Bu({config:n,context:r,chainId:e,coders:s,relayer:i?void 0:this.relayer(e),address:this.address,orchestrator:this.orchestrator,reader:this.reader(e)})}async status(e,r=!1){var n=this;const s=this.reader(e).isDeployed(this.address),i=this.tracker.imageHashOfCounterfactualWallet({wallet:this.address}).then(S=>{if(!S)throw new Error(`Counterfactual imageHash not found for wallet ${this.address}`);return S}),o=i.then(S=>AD.counterfactualVersion(this.address,S.imageHash,Object.values(this.contexts))),a=async function(){if(!await s)return o;const I=await n.reader(e).implementation(n.address);if(!I)throw new Error(`Implementation not found for wallet ${n.address}`);const R=Object.values(n.contexts);for(let _=0;_0?p[p.length-1].nextImageHash:d,v=await this.tracker.configOfImageHash({imageHash:b});if(!v)throw new Error(`Config not found for imageHash ${b}`);const g=await s,x=await i,k=dr.coderFor(h).config.checkpointOf(v);return{original:qs({},x,{version:await o}),onChain:{imageHash:f,config:await l,version:u,deployed:g},fullyMigrated:h===this.version,signedMigrations:y,version:h,presignedConfigurations:p,imageHash:b,config:v,checkpoint:k,canOnchainValidate:u===this.version&&g}}mustBeFullyMigrated(e){if(!e.fullyMigrated)throw new Error(`Wallet ${this.address} is not fully migrated`)}async predecorateSignedTransactions(e,r){const n=await this.orchestrator.predecorateSignedTransactions({chainId:r}),s=await this.predecorateTransactions([],e,r);return ye.transaction.fromTransactionish(this.address,s).length>0&&n.push(await this.signTransactions(s,r)),n}async predecorateTransactions(e,r,n){if(r.onChain.imageHash!==r.imageHash){const i=await this.walletForStatus(n,r).buildUpdateConfigurationTransaction(r.config);return[Array.isArray(e)?e:[e],i.transactions].flat()}return e}async decorateTransactions(e,r,n){var s,i;if(!Array.isArray(e))return this.decorateTransactions([e],r,n);n=(s=n)!=null?s:e[0].chainId;const o=await this.buildBootstrapTransactions(r,n),a=o.transactions.length>0;if(!a&&e.length===1)return e[0];const{entrypoint:c}=a?o:e[0],l={entrypoint:c,chainId:n,intent:(i=e[0])==null?void 0:i.intent,transactions:[...o.transactions,...e.map(u=>({to:u.entrypoint,data:ye.transaction.encodeBundleExecData(u),gasLimit:0,delegateCall:!1,revertOnError:!0,value:0}))]};if(!r.onChain.deployed){const u=ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,n,l.transactions);l.intent===void 0?l.intent={id:u,wallet:this.address}:l.intent.id=u}return l}async decorateSignature(e,r){if(!r.presignedConfigurations||r.presignedConfigurations.length===0)return e;const n=this.coders.signature,s=r.presignedConfigurations.map(o=>o.signature),i=n.chainSignatures(e,s);return n.trim(i)}async publishWitness(){const e=Kr(`This is a Sequence account woo! ${Date.now()}`),r=await this.signDigest(e,0,!1),n=this.coders.signature.decode(r),s=this.coders.signature.signaturesOfDecoded(n);return this.tracker.saveWitnesses({wallet:this.address,digest:e,chainId:0,signatures:s})}async signDigest(e,r,n=!0,s="ignore",i){const o=BigInt(r)===0n?this.networks[0].chainId:r,a=await this.status(o);if(this.mustBeFullyMigrated(a),!a.canOnchainValidate&&s==="throw")throw new Error("Wallet cannot validate onchain");const l=await this.walletForStatus(r,a).signDigest(e,i),u=n?this.decorateSignature(l,a):l;if(!a.canOnchainValidate)switch(s){case"ignore":return u;case"eip6492":return this.buildEIP6492Signature(await u,a,r)}return u}buildOnChainSignature(e){const r=ye.signature.subdigestOf({digest:H(e),chainId:0,address:this.address}),n=H(r),s=this.coders.config.fromSimple({threshold:32768,checkpoint:0,signers:[],subdigests:[n]}),i=new pt(Gt.mainModule.abi),o={entrypoint:this.address,transactions:[{to:this.address,data:i.encodeFunctionData("setExtraImageHash",[this.coders.config.imageHashOf(s),"57896044618658097711785492504343953926634992332820282019728792003956564819968"]),gasLimit:25e4}]};this.tracker.saveWalletConfig({config:s});const a=this.coders.signature.encodeSigners(s,new Map,[n],0).encoded;return{bundle:o,signature:a}}async buildEIP6492Signature(e,r,n){const s=await this.buildBootstrapTransactions(r,n);if(s.transactions.length===0)throw new Error("Cannot build EIP-6492 signature without bootstrap transactions");const i=Kt.defaultAbiCoder().encode(["address","bytes","bytes"],[s.entrypoint,ye.transaction.encodeBundleExecData(s),e]);return De(["bytes","bytes32"],[i,ye.EIP6492.EIP_6492_SUFFIX])}async editConfig(e){const r=await this.status(0).then(s=>s.config),n=this.coders.config.editConfig(r,qs({},e,{checkpoint:this.coders.config.checkpointOf(r)+1n}));return this.updateConfig(n)}async updateConfig(e){if(!this.coders.config.isWalletConfig(e))throw new Error(`Invalid config for wallet ${this.address}`);const r=this.coders.config.imageHashOf(e),n=this.coders.signature.hashSetImageHash(r),s=await this.signDigest(n,0,!1);await this.tracker.savePresignedConfiguration({wallet:this.address,nextConfig:e,signature:s});const i=await this.tracker.configOfImageHash({imageHash:r,noCache:!0});if(!i||this.coders.config.imageHashOf(i)!==r)throw Error(`Reverse lookup failed for imageHash ${r}`)}async buildBootstrapTransactions(e,r){var n;const s=await this.orchestrator.buildDeployTransaction({chainId:r}),i=(n=s==null?void 0:s.transactions)!=null?n:[];if(!e.onChain.deployed){const c=Bu.buildDeployTransaction(e.original.context,e.original.imageHash);i.push(...c.transactions)}i.push(...e.signedMigrations.map(c=>({to:c.tx.entrypoint,data:ye.transaction.encodeBundleExecData(c.tx),value:0,gasLimit:0,revertOnError:!0,delegateCall:!1})));const o=e.signedMigrations.length>0?e.signedMigrations[0].tx.intent.id:ye.transaction.subdigestOfGuestModuleTransactions(this.contexts[this.version].guestModule,r,i),{guestModule:a}=this.contextFor(e.version);return{entrypoint:a,transactions:i,chainId:r,intent:{id:o,wallet:this.address}}}async bootstrapTransactions(e,r){const n=r||await this.status(e);return this.buildBootstrapTransactions(n,e)}async doBootstrap(e,r,n){const s=await this.bootstrapTransactions(e,n);return this.relayer(e).relay(qs({},s,{chainId:e}),r)}signMessage(e,r,n="ignore"){return this.signDigest(Ne(e),r,!0,n)}async signTransactions(e,r,n,s){const i=n||await this.status(r);this.mustBeFullyMigrated(i);const o=this.walletForStatus(r,i),a={address:this.address,digest:"",chainId:r,config:{version:this.version},decorate:!0,cantValidateBehavior:"ignore"},c=s!=null&&s.serial?{serial:!0}:(s==null?void 0:s.nonceSpace)!==void 0?{space:s.nonceSpace}:void 0,l=await o.signTransactions(e,c,a);return qs({},l,{signature:await this.decorateSignature(l.signature,i)})}async signMigrations(e,r){const n=await this.status(e);if(n.fullyMigrated)return!1;const s=this.walletForStatus(e,n),i=r(s.config),o=await this.migrator.signNextMigration(this.address,n.version,s,i);if(!o)return!1;await this.tracker.saveWalletConfig({config:i});const a=dr.coderFor(i.version).config,c=a.imageHashOf(i),l=await this.tracker.configOfImageHash({imageHash:c,noCache:!0});if(!l||a.imageHashOf(l)!==c)throw Error(`Reverse lookup failed for imageHash ${c}`);return await this.tracker.saveMigration(this.address,o,this.contexts),!0}async signAllMigrations(e){var r=this;const n=[];return{signedMigrations:(await Promise.all(this.networks.map(async function(o){try{return await r.signMigrations(o.chainId,e)}catch(a){return console.warn(`Failed to sign migrations for chain ${o.chainId}`,a),n.push(o.chainId),null}}))).filter(o=>o!==null),failedChains:n}}async isMigratedAllChains(){var e=this;const r=[];return{migratedAllChains:(await Promise.all(this.networks.map(async function(i){try{return await e.status(i.chainId)}catch(o){return r.push(i.chainId),console.warn(`Failed to get status for chain ${i.chainId}`,o),{fullyMigrated:!0}}}))).every(i=>i.fullyMigrated),failedChains:r}}async sendSignedTransactions(e,r,n,s,i){if(!Array.isArray(e))return this.sendSignedTransactions([e],r,n,s,i);const o=s||await this.status(r);this.mustBeFullyMigrated(o);const a=await this.decorateTransactions(e,o,r);return i==null||i(a),this.relayer(r).relay(a,n)}async fillGasLimits(e,r,n){return this.walletForStatus(r,n||await this.status(r)).fillGasLimits(e)}async gasRefundQuotes(e,r,n,s,i){const o=s||await this.status(r),a=this.walletForStatus(r,o),c=await this.predecorateTransactions(e,o,r),l=ye.transaction.fromTransactionish(this.address,c),u=a.coders.config.buildStubSignature(a.config,n),f=H(Rr(32)),d={chainId:r,intent:{id:f,wallet:this.address},signature:u,transactions:l,entrypoint:this.address,nonce:0},h=await this.decorateTransactions(d,o),y=ye.transaction.encodeBundleExecData(h),p=await this.relayer(r).getFeeOptionsRaw(h.entrypoint,y,i);return qs({},p,{decorated:h})}async prepareTransactions(e){const r=await this.status(e.chainId),n=await this.fillGasLimits(e.txs,e.chainId,r),s=await this.gasRefundQuotes(n,e.chainId,e.stubSignatureOverrides,r,{simulate:e.simulateForFeeOptions}),i=ye.transaction.unwind(this.address,s.decorated.transactions);return{transactions:n,flatDecorated:i,feeOptions:s.options,feeQuote:s.quote}}async sendTransaction(e,r,n,s=!1,i,o){const a=await this.status(r),c=s?e:await this.predecorateTransactions(e,a,r),u=ye.transaction.fromTransactionish(this.address,c).length>0?await this.signTransactions(c,r,void 0,o):void 0,f=await this.orchestrator.predecorateSignedTransactions({chainId:r}),d=[];return u!==void 0&&u.transactions.length>0&&d.push(u),d.push(...f.filter(h=>h.transactions.length>0)),this.sendSignedTransactions(d,r,n,void 0,i)}async signTypedData(e,r,n,s,i="ignore"){const o=Ed({domain:e,types:r,message:n});return this.signDigest(o,s,!0,i)}async getSigners(){var e=this;const r=n=>n.length?n[n.length-1]:void 0;return(await Promise.all(this.networks.map(async function({chainId:n,name:s}){try{var i;const o=await e.status(n);let a=(i=r(o.presignedConfigurations))==null?void 0:i.nextImageHash;if(!a&&o.onChain.version!==o.version){const f=r(o.signedMigrations);if(f){const{toVersion:d,toConfig:h}=f;a=dr.genericCoderFor(d).config.imageHashOf(h)}}a||(a=o.onChain.imageHash);const c=await e.tracker.configOfImageHash({imageHash:a});if(!c)throw new Error(`unable to find config for image hash ${a}`);return dr.genericCoderFor(c.version).config.signersOf(c).map(f=>qs({},f,{network:n}))}catch(o){return console.warn(`unable to get signers on network ${n} ${s}`,o),[]}}))).flat()}async getAllSigners(){var e=this;const r=[];return await Promise.all(this.networks.map(async function(n){const s=n.chainId,i=await e.status(s,!0),o=[i.onChain.imageHash,...i.onChain.version!==i.version?i.signedMigrations.map(a=>dr.coderFor(a.toVersion).config.imageHashOf(a.toConfig)):[],...i.presignedConfigurations.map(a=>a.nextImageHash)];return Promise.all(o.map(async function(a,c){const l=c===o.length-1,u=await e.tracker.configOfImageHash({imageHash:a});if(!u){console.warn(`AllSigners may be incomplete, config not found for imageHash ${a}`);return}dr.genericCoderFor(u.version).config.signersOf(u).forEach(h=>{const y=r.find(p=>p.address===h.address&&p.network===s);if(y&&l&&y.flaggedForRemoval){y.flaggedForRemoval=!1;return}y||r.push({address:h.address,weight:h.weight,network:s,flaggedForRemoval:!l})})}))})),r}}function rle(t){return t instanceof qi}const nle=Object.freeze(Object.defineProperty({__proto__:null,Account:qi,isAccount:rle},Symbol.toStringTag,{value:"Module"}));function Ev(){return Ev=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),at({},n,s)).then(i=>vt(i).then(o=>({version:o.version})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),at({},n,s)).then(i=>vt(i).then(o=>({status:o.status})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getChainID=(n,s)=>this.fetch(this.url("GetChainID"),at({},n,s)).then(i=>vt(i).then(o=>({chainID:o.chainID})),i=>{throw ct.new({cause:`fetch(): ${i.message||""}`})}),this.getEtherBalance=(n,s,i)=>this.fetch(this.url("GetEtherBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({balance:a.balance})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,s,i)=>this.fetch(this.url("GetTokenBalances"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,s,i)=>this.fetch(this.url("GetTokenSupplies"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,s,i)=>this.fetch(this.url("GetTokenSuppliesMap"),at(n,s,i)).then(o=>vt(o).then(a=>({supplies:a.supplies})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,s,i)=>this.fetch(this.url("GetBalanceUpdates"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,s,i)=>this.fetch(this.url("GetTransactionHistory"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,s,i)=>this.fetch(this.url("SyncBalance"),at(n,s,i)).then(o=>vt(o).then(a=>({})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,s,i)=>this.fetch(this.url("FetchTransactionReceipt"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,s,i)=>this.fetch(this.url("GetOrderbookOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,s,i)=>this.fetch(this.url("GetTopOrders"),at(n,s,i)).then(o=>vt(o).then(a=>({orders:a.orders})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,s,i)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),at(n,s,i)).then(o=>vt(o).then(a=>({receipt:a.receipt})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,s,i)=>this.fetch(this.url("GetAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({listeners:a.listeners})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,s,i)=>this.fetch(this.url("GetWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,s,i)=>this.fetch(this.url("AddWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,s,i)=>this.fetch(this.url("UpdateWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,s,i)=>this.fetch(this.url("RemoveWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.toggleWebhookListener=(n,s,i)=>this.fetch(this.url("ToggleWebhookListener"),at(n,s,i)).then(o=>vt(o).then(a=>({webhookListener:a.webhookListener})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.pauseAllWebhookListeners=(n,s,i)=>this.fetch(this.url("PauseAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.resumeAllWebhookListeners=(n,s,i)=>this.fetch(this.url("ResumeAllWebhookListeners"),at(n,s,i)).then(o=>vt(o).then(a=>({status:a.status})),o=>{throw ct.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeReceipts"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeEvents=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeEvents"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.subscribeBalanceUpdates=(n,s)=>{const i=()=>this.fetch(this.url("SubscribeBalanceUpdates"),at(n,s.headers,s.signal)).then(async function(o){await $x(o,s,i)},o=>{s.onError(o,i)});return i()},this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const $x=async(t,e,r)=>{const{onMessage:n,onOpen:s,onClose:i,onError:o}=e;if(!t.ok){try{await vt(t)}catch(h){o(h,r)}return}if(!t.body){o(R0.new({status:t.status,cause:"Invalid response, missing body"}),r);return}s&&s();const a=t.body.getReader(),c=new TextDecoder;let l="",u=Date.now();const f=11*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-u>f)throw Lh.new({cause:"Stream timed out"})},f);;){let h,y;try{({value:h,done:y}=await a.read()),u=Date.now(),l+=c.decode(h,{stream:!0})}catch(b){let v="";b instanceof Error&&(v=b.message),b instanceof DOMException&&b.name==="AbortError"?o(ct.new({message:"AbortError",cause:`AbortError: ${v}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(Lh.new({cause:`reader.read(): ${v}`}),r);return}let p=l.split(` +`);for(let b=0;b({method:"POST",headers:Ev({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),vt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),R0.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(uL[n]||it).new(r)}return r});let it=class bB extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,bB.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},wB=class CB extends it{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,CB.prototype)}},ct=class EB extends it{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EB.prototype)}},kB=class AB extends it{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,AB.prototype)}},SB=class TB extends it{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,TB.prototype)}},PB=class IB extends it{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,IB.prototype)}},R0=class OB extends it{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OB.prototype)}},RB=class NB extends it{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NB.prototype)}},_B=class MB extends it{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,MB.prototype)}},DB=class BB extends it{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BB.prototype)}},Lh=class LB extends it{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,LB.prototype)}},jB=class FB extends it{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,FB.prototype)}},UB=class $B extends it{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,$B.prototype)}},WB=class VB extends it{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,VB.prototype)}},HB=class zB extends it{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,zB.prototype)}},GB=class qB extends it{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,qB.prototype)}},KB=class QB extends it{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,QB.prototype)}},JB=class YB extends it{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,YB.prototype)}},XB=class ZB extends it{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ZB.prototype)}},eL=class tL extends it{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tL.prototype)}},rL=class nL extends it{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nL.prototype)}},sL=class iL extends it{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iL.prototype)}};class Zg extends it{constructor(e="ResourceExhausted",r=2004,n="Resource exhausted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zg.prototype)}}let oL=class aL extends it{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aL.prototype)}},cL=class lL extends it{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lL.prototype)}};class em extends it{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,em.prototype)}}let yle=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Aborted="Aborted",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.Unavailable="Unavailable",t.QueryFailed="QueryFailed",t.ResourceExhausted="ResourceExhausted",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.MetadataCallFailed="MetadataCallFailed",t}({});const uL={0:wB,[-1]:ct,[-2]:kB,[-3]:SB,[-4]:PB,[-5]:R0,[-6]:RB,[-7]:_B,[-8]:DB,[-9]:Lh,[-10]:jB,1e3:UB,1001:WB,1002:HB,1003:GB,1004:KB,1005:JB,2e3:XB,2001:eL,2002:rL,2003:sL,2004:Zg,3e3:oL,3002:cL,3003:em},p3=globalThis.fetch;class fL extends xB{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,p3),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=Ev({},i.headers,o),p3(s,i)},this.fetch=this._fetch}}const vle=Object.freeze(Object.defineProperty({__proto__:null,AbortedError:JB,ContractType:ale,EventLogDataType:lle,EventLogType:cle,Indexer:xB,InvalidArgumentError:eL,MetadataCallFailedError:em,MethodNotFoundError:GB,NotFoundError:oL,OrderStatus:ule,PermissionDeniedError:WB,ProjectNotFoundError:cL,QueryFailedError:sL,RequestConflictError:KB,ResourceExhaustedError:Zg,SequenceIndexer:fL,SessionExpiredError:HB,SortOrder:ple,TimeoutError:XB,TransactionStatus:dle,TransactionType:hle,TxnTransferType:fle,UnauthorizedError:UB,UnavailableError:rL,WebRPCSchemaHash:ole,WebRPCSchemaVersion:ile,WebRPCVersion:sle,WebrpcBadMethodError:SB,WebrpcBadRequestError:PB,WebrpcBadResponseError:R0,WebrpcBadRouteError:kB,WebrpcClientDisconnectedError:DB,WebrpcEndpointError:wB,WebrpcError:it,WebrpcInternalErrorError:_B,WebrpcRequestFailedError:ct,WebrpcServerPanicError:RB,WebrpcStreamFinishedError:jB,WebrpcStreamLostError:Lh,errors:yle},Symbol.toStringTag,{value:"Module"}));function N0(){return N0=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),be({},n,s)).then(i=>we(i).then(o=>({version:o.version})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),be({},n,s)).then(i=>we(i).then(o=>({status:o.status})),i=>{throw ge.new({cause:`fetch(): ${i.message||""}`})}),this.getTokenMetadata=(n,s,i)=>this.fetch(this.url("GetTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.refreshTokenMetadata=(n,s,i)=>this.fetch(this.url("RefreshTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.enqueueTokensForRefresh=(n,s,i)=>this.fetch(this.url("EnqueueTokensForRefresh"),be(n,s,i)).then(o=>we(o).then(a=>({taskId:a.taskId})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshStatus=(n,s,i)=>this.fetch(this.url("GetTokenRefreshStatus"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenRefreshResult=(n,s,i)=>this.fetch(this.url("GetTokenRefreshResult"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status,tokens:a.tokens,failureReasons:a.failureReasons})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.cancelRefreshJob=(n,s,i)=>this.fetch(this.url("CancelRefreshJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenMetadataBatch=(n,s,i)=>this.fetch(this.url("GetTokenMetadataBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractTokenMetadata:a.contractTokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenMetadata=(n,s,i)=>this.fetch(this.url("SearchTokenMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenMetadata:a.tokenMetadata})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokenIDs=(n,s,i)=>this.fetch(this.url("SearchTokenIDs"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokenIds:a.tokenIds})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.tokenCollectionFilters=(n,s,i)=>this.fetch(this.url("TokenCollectionFilters"),be(n,s,i)).then(o=>we(o).then(a=>({filters:a.filters})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfo=(n,s,i)=>this.fetch(this.url("GetContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractInfoBatch=(n,s,i)=>this.fetch(this.url("GetContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoMap:a.contractInfoMap})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfo=(n,s,i)=>this.fetch(this.url("SearchContractInfo"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoList:a.contractInfoList})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContractInfoBatch=(n,s,i)=>this.fetch(this.url("SearchContractInfoBatch"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfoByChain:a.contractInfoByChain})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchMetadata=(n,s,i)=>this.fetch(this.url("SearchMetadata"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,contractInfo:a.contractInfo})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchTokens=(n,s,i)=>this.fetch(this.url("SearchTokens"),be(n,s,i)).then(o=>we(o).then(a=>({tokenMetadata:a.tokenMetadata,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.searchContracts=(n,s,i)=>this.fetch(this.url("SearchContracts"),be(n,s,i)).then(o=>we(o).then(a=>({contractInfo:a.contractInfo,nextPage:a.nextPage})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapTokenQuantity=(n,s,i)=>this.fetch(this.url("GetNiftyswapTokenQuantity"),be(n,s,i)).then(o=>we(o).then(a=>({quantity:a.quantity})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPrices=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPrices"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getNiftyswapUnitPricesWithQuantities=(n,s,i)=>this.fetch(this.url("GetNiftyswapUnitPricesWithQuantities"),be(n,s,i)).then(o=>we(o).then(a=>({prices:a.prices})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.addContractToMintMonitor=(n,s,i)=>this.fetch(this.url("AddContractToMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractFromMintMonitor=(n,s,i)=>this.fetch(this.url("RemoveContractFromMintMonitor"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorJobStatus=(n,s,i)=>this.fetch(this.url("MintMonitorJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({task:a.task})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.mintMonitorTriggerJob=(n,s,i)=>this.fetch(this.url("MintMonitorTriggerJob"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.syncContractTokens=(n,s,i)=>this.fetch(this.url("SyncContractTokens"),be(n,s,i)).then(o=>we(o).then(a=>({taskID:a.taskID})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.abortContractSync=(n,s,i)=>this.fetch(this.url("AbortContractSync"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.contractSyncJobStatus=(n,s,i)=>this.fetch(this.url("ContractSyncJobStatus"),be(n,s,i)).then(o=>we(o).then(a=>({refreshTask:a.refreshTask,syncTask:a.syncTask})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetNetworks=(n,s,i)=>this.fetch(this.url("DirectoryGetNetworks"),be(n,s,i)).then(o=>we(o).then(a=>({networks:a.networks})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directoryGetCollections=(n,s,i)=>this.fetch(this.url("DirectoryGetCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.directorySearchCollections=(n,s,i)=>this.fetch(this.url("DirectorySearchCollections"),be(n,s,i)).then(o=>we(o).then(a=>({collections:a.collections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class hL{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Collections/",this.createCollection=(n,s,i)=>this.fetch(this.url("CreateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getCollection=(n,s,i)=>this.fetch(this.url("GetCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listCollections=(n,s,i)=>this.fetch(this.url("ListCollections"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateCollection=(n,s,i)=>this.fetch(this.url("UpdateCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteCollection=(n,s,i)=>this.fetch(this.url("DeleteCollection"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.publishCollection=(n,s,i)=>this.fetch(this.url("PublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.unpublishCollection=(n,s,i)=>this.fetch(this.url("UnpublishCollection"),be(n,s,i)).then(o=>we(o).then(a=>({collection:a.collection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createContractCollection=(n,s,i)=>this.fetch(this.url("CreateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getContractCollection=(n,s,i)=>this.fetch(this.url("GetContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollection:a.contractCollection})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listContractCollections=(n,s,i)=>this.fetch(this.url("ListContractCollections"),be(n,s,i)).then(o=>we(o).then(a=>({contractCollections:a.contractCollections,page:a.page})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateContractCollection=(n,s,i)=>this.fetch(this.url("UpdateContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteContractCollection=(n,s,i)=>this.fetch(this.url("DeleteContractCollection"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createToken=(n,s,i)=>this.fetch(this.url("CreateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getToken=(n,s,i)=>this.fetch(this.url("GetToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token,assets:a.assets})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokens=(n,s,i)=>this.fetch(this.url("ListTokens"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,tokens:a.tokens})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateToken=(n,s,i)=>this.fetch(this.url("UpdateToken"),be(n,s,i)).then(o=>we(o).then(a=>({token:a.token})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteToken=(n,s,i)=>this.fetch(this.url("DeleteToken"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.createAsset=(n,s,i)=>this.fetch(this.url("CreateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getAsset=(n,s,i)=>this.fetch(this.url("GetAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.updateAsset=(n,s,i)=>this.fetch(this.url("UpdateAsset"),be(n,s,i)).then(o=>we(o).then(a=>({asset:a.asset})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.deleteAsset=(n,s,i)=>this.fetch(this.url("DeleteAsset"),be(n,s,i)).then(o=>we(o).then(a=>({status:a.status})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}class kle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Admin/",this.addContractsToTokenDirectory=(n,s,i)=>this.fetch(this.url("AddContractsToTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.removeContractsFromTokenDirectory=(n,s,i)=>this.fetch(this.url("RemoveContractsFromTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.modifyFeatureIndex=(n,s,i)=>this.fetch(this.url("ModifyFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({ok:a.ok})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.getFeatureIndex=(n,s,i)=>this.fetch(this.url("GetFeatureIndex"),be(n,s,i)).then(o=>we(o).then(a=>({featured:a.featured})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.listTokenDirectory=(n,s,i)=>this.fetch(this.url("ListTokenDirectory"),be(n,s,i)).then(o=>we(o).then(a=>({page:a.page,collections:a.collections})),o=>{throw ge.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const be=(t={},e={},r=null)=>({method:"POST",headers:N0({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),we=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),kk.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Sle[n]||Ze).new(r)}return r});let Ze=class pL extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,pL.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},yL=class vL extends Ze{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vL.prototype)}},ge=class gL extends Ze{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,gL.prototype)}},mL=class xL extends Ze{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,xL.prototype)}},bL=class wL extends Ze{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,wL.prototype)}},CL=class EL extends Ze{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,EL.prototype)}},kk=class kL extends Ze{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,kL.prototype)}},AL=class SL extends Ze{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,SL.prototype)}},TL=class PL extends Ze{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,PL.prototype)}},IL=class OL extends Ze{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,OL.prototype)}},RL=class NL extends Ze{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,NL.prototype)}},_L=class ML extends Ze{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ML.prototype)}},DL=class BL extends Ze{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,BL.prototype)}},LL=class jL extends Ze{constructor(e="PermissionDenied",r=1001,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jL.prototype)}},FL=class UL extends Ze{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,UL.prototype)}};class tm extends Ze{constructor(e="MethodNotFound",r=1003,n="Method not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tm.prototype)}}class rm extends Ze{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rm.prototype)}}class nm extends Ze{constructor(e="Fail",r=1005,n="Request Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nm.prototype)}}class sm extends Ze{constructor(e="Geoblocked",r=1006,n="Geoblocked region",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sm.prototype)}}class im extends Ze{constructor(e="Timeout",r=2e3,n="Request timed out",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,im.prototype)}}let $L=class WL extends Ze{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,WL.prototype)}};class om extends Ze{constructor(e="RequiredArgument",r=2002,n="Required argument missing",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,om.prototype)}}let VL=class HL extends Ze{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,HL.prototype)}},zL=class GL extends Ze{constructor(e="ValidationFailed",r=2004,n="Validation failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,GL.prototype)}};class am extends Ze{constructor(e="RateLimited",r=2005,n="Rate limited",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,am.prototype)}}let qL=class KL extends Ze{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,KL.prototype)}};class cm extends Ze{constructor(e="ProjectNotFound",r=3002,n="Project not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cm.prototype)}}class lm extends Ze{constructor(e="ChainNotFound",r=3003,n="Chain not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lm.prototype)}}class um extends Ze{constructor(e="TokenDirectoryDisabled",r=4001,n="Token Directory is disabled",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,um.prototype)}}let Ale=function(t){return t.WebrpcEndpoint="WebrpcEndpoint",t.WebrpcRequestFailed="WebrpcRequestFailed",t.WebrpcBadRoute="WebrpcBadRoute",t.WebrpcBadMethod="WebrpcBadMethod",t.WebrpcBadRequest="WebrpcBadRequest",t.WebrpcBadResponse="WebrpcBadResponse",t.WebrpcServerPanic="WebrpcServerPanic",t.WebrpcInternalError="WebrpcInternalError",t.WebrpcClientDisconnected="WebrpcClientDisconnected",t.WebrpcStreamLost="WebrpcStreamLost",t.WebrpcStreamFinished="WebrpcStreamFinished",t.Unauthorized="Unauthorized",t.PermissionDenied="PermissionDenied",t.SessionExpired="SessionExpired",t.MethodNotFound="MethodNotFound",t.RequestConflict="RequestConflict",t.Fail="Fail",t.Geoblocked="Geoblocked",t.Timeout="Timeout",t.InvalidArgument="InvalidArgument",t.RequiredArgument="RequiredArgument",t.QueryFailed="QueryFailed",t.ValidationFailed="ValidationFailed",t.RateLimited="RateLimited",t.NotFound="NotFound",t.ProjectNotFound="ProjectNotFound",t.ChainNotFound="ChainNotFound",t.TokenDirectoryDisabled="TokenDirectoryDisabled",t}({});const Sle={0:yL,[-1]:ge,[-2]:mL,[-3]:bL,[-4]:CL,[-5]:kk,[-6]:AL,[-7]:TL,[-8]:IL,[-9]:RL,[-10]:_L,1e3:DL,1001:LL,1002:FL,1003:tm,1004:rm,1005:nm,1006:sm,2e3:im,2001:$L,2002:om,2003:VL,2004:zL,2005:am,3e3:qL,3002:cm,3003:lm,4001:um},kv=globalThis.fetch;class QL extends dL{constructor(e="https://metadata.sequence.app",r,n){super(e.endsWith("/")?e.slice(0,-1):e,kv),this.projectAccessKey=r,this.jwtAuth=n,this._fetch=(s,i)=>{const o={},a=this.jwtAuth,c=this.projectAccessKey;return a&&a.length>0&&(o.Authorization=`BEARER ${a}`),c&&c.length>0&&(o["X-Access-Key"]=c),i.headers=N0({},i.headers,o),kv(s,i)},this.fetch=this._fetch}}class Tle extends hL{constructor(e="https://metadata.sequence.app",r){super(e.endsWith("/")?e.slice(0,-1):e,kv),this.jwtAuth=r,this._fetch=(n,s)=>{const i={},o=this.jwtAuth;return o&&o.length>0&&(i.Authorization=`BEARER ${o}`),s.headers=N0({},s.headers,i),kv(n,s)},this.fetch=this._fetch}}const Ple=Object.freeze(Object.defineProperty({__proto__:null,Admin:kle,ChainNotFoundError:lm,Collections:hL,ContractType:ble,FailError:nm,GeoblockedError:sm,InvalidArgumentError:$L,Metadata:dL,MethodNotFoundError:tm,NotFoundError:qL,PermissionDeniedError:LL,ProjectNotFoundError:cm,PropertyType:wle,QueryFailedError:VL,RateLimitedError:am,RequestConflictError:rm,RequiredArgumentError:om,SequenceCollections:Tle,SequenceMetadata:QL,SessionExpiredError:FL,SwapType:Cle,TaskStatus:Ele,TimeoutError:im,TokenDirectoryDisabledError:um,UnauthorizedError:DL,ValidationFailedError:zL,WebRPCSchemaHash:xle,WebRPCSchemaVersion:mle,WebRPCVersion:gle,WebrpcBadMethodError:bL,WebrpcBadRequestError:CL,WebrpcBadResponseError:kk,WebrpcBadRouteError:mL,WebrpcClientDisconnectedError:IL,WebrpcEndpointError:yL,WebrpcError:Ze,WebrpcInternalErrorError:TL,WebrpcRequestFailedError:ge,WebrpcServerPanicError:AL,WebrpcStreamFinishedError:_L,WebrpcStreamLostError:RL,errors:Ale},Symbol.toStringTag,{value:"Module"}));function Ile(t,e){const r=t.replace("ipfs://ipfs/","").replace("ipfs://","");return t.startsWith("ipfs://")?`${e}${r}`:t}function Ole(t){return t.startsWith("ipfs://")}class Rle{constructor(e,r,n=1e3){this.provider=e,this.solver=r,this.window=n,this.pending=new Map}async runByEIP5719(e,r,n){const s=`${e}-${r}-${n}`,i=Date.now();if(this.pending.has(s)&&i-this.pending.get(s).timestamp10)throw new Error("EIP5719 - Too many tries");if(ye.signer.canRecover(n)){const c=ye.signer.recoverSigner(r,n);if(c&&c.toLowerCase()===t.toLowerCase())return n}try{if(await ye.signer.isValidSignature(t,r,n,e))return n}catch{}const o=await _le(Nle(t,e).getAlternativeSignature(r));if(!o||o==="")throw new Error("EIP5719 - Invalid signature and no alternative signature");const a=H(await(s||new Mle).resolve(o));if(!a||a==="")throw new Error("EIP5719 - Empty alternative signature");if(a===H(n))throw new Error("EIP5719 - Alternative signature is invalid or the same");return JL(t,e,r,a,s,i+1)}class Mle{constructor(e="https://cloudflare-ipfs.com/ipfs/"){var r=this;this.gateway=e,this.uri=n=>Ole(n)?Ile(n,this.gateway):n,this.resolve=async function(n){const s=r.uri(n),i=await fetch(s);if(!i.ok)throw new Error(`URISolverIPFS - Failed to fetch ${s}`);return await i.text()}}}const Dle=(t,e)=>e.some(r=>t instanceof r);let y3,v3;function Ble(){return y3||(y3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Lle(){return v3||(v3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const YL=new WeakMap,L2=new WeakMap,XL=new WeakMap,Wx=new WeakMap,Ak=new WeakMap;function jle(t){const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("success",i),t.removeEventListener("error",o)},i=()=>{r(Ea(t.result)),s()},o=()=>{n(t.error),s()};t.addEventListener("success",i),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&YL.set(r,t)}).catch(()=>{}),Ak.set(e,t),e}function Fle(t){if(L2.has(t))return;const e=new Promise((r,n)=>{const s=()=>{t.removeEventListener("complete",i),t.removeEventListener("error",o),t.removeEventListener("abort",o)},i=()=>{r(),s()},o=()=>{n(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",i),t.addEventListener("error",o),t.addEventListener("abort",o)});L2.set(t,e)}let j2={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return L2.get(t);if(e==="objectStoreNames")return t.objectStoreNames||XL.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return Ea(t[e])},set(t,e,r){return t[e]=r,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Ule(t){j2=t(j2)}function $le(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(Vx(this),e,...r);return XL.set(n,e.sort?e.sort():[e]),Ea(n)}:Lle().includes(t)?function(...e){return t.apply(Vx(this),e),Ea(YL.get(this))}:function(...e){return Ea(t.apply(Vx(this),e))}}function Wle(t){return typeof t=="function"?$le(t):(t instanceof IDBTransaction&&Fle(t),Dle(t,Ble())?new Proxy(t,j2):t)}function Ea(t){if(t instanceof IDBRequest)return jle(t);if(Wx.has(t))return Wx.get(t);const e=Wle(t);return e!==t&&(Wx.set(t,e),Ak.set(e,t)),e}const Vx=t=>Ak.get(t);function Vle(t,e,{blocked:r,upgrade:n,blocking:s,terminated:i}={}){const o=indexedDB.open(t,e),a=Ea(o);return n&&o.addEventListener("upgradeneeded",c=>{n(Ea(o.result),c.oldVersion,c.newVersion,Ea(o.transaction),c)}),r&&o.addEventListener("blocked",c=>r(c.oldVersion,c.newVersion,c)),a.then(c=>{i&&c.addEventListener("close",()=>i()),s&&c.addEventListener("versionchange",l=>s(l.oldVersion,l.newVersion,l))}).catch(()=>{}),a}const Hle=["get","getKey","getAll","getAllKeys","count"],zle=["put","add","delete","clear"],Hx=new Map;function g3(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Hx.get(e))return Hx.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,s=zle.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(s||Hle.includes(r)))return;const i=async function(o,...a){const c=this.transaction(o,s?"readwrite":"readonly");let l=c.store;return n&&(l=l.index(a.shift())),(await Promise.all([l[r](...a),s&&c.done]))[0]};return Hx.set(e,i),i}Ule(t=>({...t,get:(e,r,n)=>g3(e,r)||t.get(e,r,n),has:(e,r)=>!!g3(e,r)||t.has(e,r)}));class Gle{constructor(){this.loadPresignedConfiguration=void 0,this.savePresignedConfiguration=void 0,this.saveWitnesses=void 0,this.configOfImageHash=void 0,this.saveWalletConfig=void 0,this.imageHashOfCounterfactualWallet=void 0,this.saveCounterfactualWallet=void 0,this.walletsOfSigner=void 0}}var qle=Object.freeze({__proto__:null,ConfigTracker:Gle});class Kle{constructor(e){this.tracker=e}async loadPresignedConfiguration(e){return console.debug("? loadPresignedConfiguration"),Dr(e,"? "),Dr(await this.tracker.loadPresignedConfiguration(e),"! ")}savePresignedConfiguration(e){return console.debug("? savePresignedConfiguration"),Dr(e,"? "),this.tracker.savePresignedConfiguration(e)}saveWitnesses(e){return console.debug("? saveWitnesses"),Dr(e,"? "),this.tracker.saveWitnesses(e)}async configOfImageHash(e){return console.debug("? configOfImageHash"),Dr(e,"? "),Dr(await this.tracker.configOfImageHash(e),"! ")}saveWalletConfig(e){return console.debug("? saveWalletConfig"),Dr(e,"? "),this.tracker.saveWalletConfig(e)}async imageHashOfCounterfactualWallet(e){return console.debug("? imageHashOfCounterfactualWallet"),Dr(e,"? "),Dr(await this.tracker.imageHashOfCounterfactualWallet(e),"! ")}saveCounterfactualWallet(e){return console.debug("? saveCounterfactualWallet"),Dr(e,"? "),this.tracker.saveCounterfactualWallet(e)}async walletsOfSigner(e){return console.debug("? walletsOfSigner"),Dr(e,"? "),Dr(await this.tracker.walletsOfSigner(e),"! ")}async getMigration(e,r,n,s){return console.debug("? getMigration"),Dr({address:e,fromImageHash:r,fromVersion:n,chainId:s},"? "),Dr(await this.tracker.getMigration(e,r,n,s),"! ")}saveMigration(e,r,n){return console.debug("? saveMigration"),Dr({address:e,signed:r,contexts:n},"? "),this.tracker.saveMigration(e,r,n)}}function Dr(t,e=""){switch(t){case void 0:console.debug(e+"undefined");break;default:JSON.stringify(t,void 0,2).split(` +`).map(r=>e+r).forEach(r=>console.debug(r));break}return t}var Qle=Object.freeze({__proto__:null,DebugConfigTracker:Kle});function _a(){return _a=Object.assign?Object.assign.bind():function(t){for(var e=1;ePromise.resolve(this.configs[e]),this.saveConfig=(e,r)=>(this.configs[e]=r,Promise.resolve()),this.loadV2Node=e=>Promise.resolve(this.v2Nodes[e]),this.saveV2Node=(e,r)=>(this.v2Nodes[e]=r,Promise.resolve()),this.loadCounterfactualWallet=e=>Promise.resolve(this.counterfactualWallets[e]),this.saveCounterfactualWallet=(e,r,n)=>(this.counterfactualWallets[e]={imageHash:r,context:n},Promise.resolve()),this.loadPayloadOfSubdigest=e=>Promise.resolve(this.payloads[e]),this.savePayloadOfSubdigest=(e,r)=>(this.payloads[e]=r,Promise.resolve()),this.loadSubdigestsOfSigner=e=>Promise.resolve(Object.keys(this.signatures[e]||{})),this.loadSignatureOfSubdigest=(e,r)=>{var n;return Promise.resolve((n=this.signatures[e])==null?void 0:n[r])},this.saveSignatureOfSubdigest=(e,r,n)=>(this.signatures[e]||(this.signatures[e]={}),this.signatures[e][r]=n,Promise.resolve()),this.loadMigrationsSubdigest=(e,r,n)=>{var s;return Promise.resolve(((s=this.migrations[e])==null||(s=s[r])==null?void 0:s[n])||[])},this.saveMigrationsSubdigest=(e,r,n,s,i)=>(this.migrations[e]||(this.migrations[e]={}),this.migrations[e][r]||(this.migrations[e][r]={}),this.migrations[e][r][n]||(this.migrations[e][r][n]=[]),this.migrations[e][r][n].push({subdigest:s,toImageHash:i}),Promise.resolve())}}function Lu(t){if(t===void 0)return;const e={};for(const r of Object.keys(t)){const n=t[r];n._isBigNumber===!0&&n._hex!==void 0&&typeof n._hex=="string"&&n._hex.length!==""?e[r]=BigInt(n):Array.isArray(n)?e[r]=n.map(s=>Lu(s)):typeof n=="object"&&n!==null?e[r]=Lu(n):e[r]=n}return e}class Jle{constructor(e){var r=this;this.dbName=e,this._lazyDb=void 0,this.loadConfig=async function(n){return(await r.getDb()).get("configs",n).then(i=>Lu(i))},this.saveConfig=async function(n,s){await(await r.getDb()).put("configs",s,n)},this.loadV2Node=async function(n){return(await r.getDb()).get("v2Nodes",n).then(i=>Lu(i))},this.saveV2Node=async function(n,s){await(await r.getDb()).put("v2Nodes",s,n)},this.loadCounterfactualWallet=async function(n){return(await r.getDb()).get("counterfactualWallets",n)},this.saveCounterfactualWallet=async function(n,s,i){await(await r.getDb()).put("counterfactualWallets",{imageHash:s,context:i},n)},this.loadPayloadOfSubdigest=async function(n){return(await r.getDb()).get("payloads",n).then(i=>Lu(i))},this.savePayloadOfSubdigest=async function(n,s){await(await r.getDb()).put("payloads",s,n)},this.loadSubdigestsOfSigner=async function(n){return(await(await r.getDb()).getAllKeysFromIndex("signatures","signer",IDBKeyRange.only(n))).map(o=>o.split("-")[0])},this.loadSignatureOfSubdigest=async function(n,s){const o=await(await r.getDb()).get("signatures",[s,n].join("-"));return o==null?void 0:o.signature},this.saveSignatureOfSubdigest=async function(n,s,i){await(await r.getDb()).put("signatures",{signature:i,signer:n},[s,n].join("-"))},this.loadMigrationsSubdigest=async function(n,s,i){return(await(await r.getDb()).getAllFromIndex("migrations","jump",IDBKeyRange.only([n,s,i]))).map(c=>({subdigest:c.subdigest,toImageHash:c.toImageHash}))},this.saveMigrationsSubdigest=async function(n,s,i,o,a){await(await r.getDb()).put("migrations",{wallet:n,fromVersion:s,toVersion:i,subdigest:o,toImageHash:a},o)}}async getDb(){if(this._lazyDb)return this._lazyDb;const e=this.dbName;return this._lazyDb=await Vle(e,1,{upgrade(r,n,s,i){console.log(`upgrading ${e} from ${n} to ${s} - ${i}`),n===0&&(r.createObjectStore("configs"),r.createObjectStore("v2Nodes"),r.createObjectStore("counterfactualWallets"),r.createObjectStore("payloads"),r.createObjectStore("signatures").createIndex("signer","signer",{unique:!1}),r.createObjectStore("migrations").createIndex("jump",["wallet","fromVersion","toVersion"]))}}),this._lazyDb}}function ej(t){return t.left!==void 0&&t.right!==void 0}function tj(t){return t.weight!==void 0&&t.threshold!==void 0&&t.tree!==void 0}function F2(t){return t.version===2&&t.threshold!==void 0&&t.checkpoint!==void 0&&t.tree!==void 0&&typeof t.tree=="string"}var Yle=Object.freeze({__proto__:null,isPlainNode:ej,isPlainNested:tj,isPlainV2Config:F2,MemoryTrackerStore:ZL,recreateBigNumbers:Lu,IndexedDBStore:Jle});class Sk{constructor(e,r=new ZL,n=!1){var s=this;this.provider=e,this.store=r,this.useEIP5719=n,this.cachedEIP5719=void 0,this.loadTopology=async function(i){const o=await s.store.loadV2Node(i);if(!o)return{nodeHash:i};if(ej(o)){const[a,c]=await Promise.all([s.loadTopology(o.left),s.loadTopology(o.right)]);return{left:a,right:c}}return tj(o)?{weight:BigInt(o.weight),threshold:BigInt(o.threshold),tree:await s.loadTopology(o.tree)}:o},this.saveTopology=async function(i){if(je.config.isNodeLeaf(i))return;const o=je.config.hashNode(i);if(je.config.isNode(i)){const a=s.saveTopology(i.left),c=s.saveTopology(i.right),l=s.store.saveV2Node(o,{left:je.config.hashNode(i.left),right:je.config.hashNode(i.right)});await Promise.all([a,c,l]);return}if(je.config.isNestedLeaf(i)){const a=s.saveTopology(i.tree),c=s.store.saveV2Node(o,{weight:BigInt(i.weight).toString(),threshold:BigInt(i.threshold).toString(),tree:je.config.hashNode(i.tree)});await Promise.all([a,c]);return}if(je.config.isSignerLeaf(i))return s.store.saveV2Node(o,{address:i.address,weight:i.weight});if(je.config.isSubdigestLeaf(i))return s.store.saveV2Node(o,{subdigest:i.subdigest});throw new Error(`Unknown topology type: ${i}`)},this.saveWalletConfig=async function(i){const{config:o}=i;if(Vi.config.ConfigCoder.isWalletConfig(o)){const a=Vi.config.ConfigCoder.imageHashOf(o);return s.store.saveConfig(a,o)}if(je.config.ConfigCoder.isWalletConfig(o)){const a=je.config.ConfigCoder.imageHashOf(o);if(je.config.isComplete(o.tree))return s.store.saveConfig(a,o)}},this.configOfImageHashCache={},this.configOfImageHash=async function(i){const{imageHash:o}=i;if(s.configOfImageHashCache[i.imageHash])return s.configOfImageHashCache[i.imageHash];const a=await s.store.loadConfig(o);if(a){if(a.version===1||a.version===2&&!F2(a))return s.configOfImageHashCache[i.imageHash]=a,a;if(F2(a)){const c={version:2,threshold:BigInt(a.threshold),checkpoint:BigInt(a.checkpoint),tree:await s.loadTopology(a.tree)};return s.configOfImageHashCache[i.imageHash]=c,c}throw new Error(`Unknown config type: ${a}`)}},this.saveCounterfactualWallet=async function(i){const{config:o,context:a}=i,c=dr.genericCoderFor(o.version).config.imageHashOf(o);await Promise.all([s.saveWalletConfig({config:o}),...a.map(l=>{const u=ye.context.addressOf(l,c);return s.store.saveCounterfactualWallet(u,c,l)})])},this.imageHashOfCounterfactualWallet=async function(i){const{wallet:o}=i,a=await s.store.loadCounterfactualWallet(o);if(a)return{imageHash:a.imageHash,context:a.context}},this.savePayload=async function(i){const{payload:o}=i,a=ye.signature.subdigestOf(o);await s.store.savePayloadOfSubdigest(a,o)},this.payloadOfSubdigestCache={},this.payloadOfSubdigest=async function(i){if(s.payloadOfSubdigestCache[i.subdigest])return s.payloadOfSubdigestCache[i.subdigest];const{subdigest:o}=i,a=await s.store.loadPayloadOfSubdigest(o);return a&&(s.payloadOfSubdigestCache[o]=a),a},this.savePresignedConfiguration=async function(i){const o=je.signature.SignatureCoder.decode(i.signature),a=dr.genericCoderFor(i.nextConfig.version).config.imageHashOf(i.nextConfig),c=je.chained.messageSetImageHash(a),l=Ne(c),u={message:c,address:i.wallet,chainId:0,digest:l},f=s.savePayload({payload:u}),d=s.saveWalletConfig({config:i.nextConfig}),h=await je.signature.SignatureCoder.recover(o,u,s.provider),y=je.signature.signaturesOf(h.config.tree);await Promise.all([f,d,s.saveWalletConfig({config:h.config}),...y.map(p=>s.store.saveSignatureOfSubdigest(p.address,h.subdigest,p.signature))])},this.loadPresignedConfiguration=async function(i){const{wallet:o,fromImageHash:a,longestPath:c}=i,l=await s.configOfImageHash({imageHash:a});if(!l||!je.config.ConfigCoder.isWalletConfig(l))return[];const u=je.config.signersOf(l.tree).map(x=>x.address),f=await Promise.all(u.map(x=>s.store.loadSubdigestsOfSigner(x))),d=[...new Set(f.flat())],y=(await Promise.all([...new Set(d)].map(async function(x){return _a({},await s.payloadOfSubdigest({subdigest:x}),{subdigest:x})}))).filter(x=>(x==null?void 0:x.message)&&(x==null?void 0:x.address)&&x.address===o).map(x=>({payload:x,nextImageHash:je.chained.decodeMessageSetImageHash(x.message)})).filter(x=>x==null?void 0:x.nextImageHash);let p;const v=(await Promise.all(y.map(async function({nextImageHash:x,payload:k}){const S=await s.configOfImageHash({imageHash:x});if(!S||!je.config.isWalletConfig(S))return;const I=BigInt(S.checkpoint);return{nextConfig:S,nextCheckpoint:I,nextImageHash:x,payload:k}}))).filter(x=>x!==void 0).filter(x=>x.nextCheckpoint>BigInt(l.checkpoint)).sort((x,k)=>x.nextCheckpoint>k.nextCheckpoint?c?1:-1:c?-1:1);for(const x of v){const{nextConfig:k,nextCheckpoint:S,nextImageHash:I,payload:R}=x;if(p){const F=p.checkpoint;if(c){if(S>=F)continue}else if(S<=F)continue}const _=new Map((await Promise.all(u.map(async function(F){const X=await s.store.loadSignatureOfSubdigest(F,R.subdigest);if(!X)return[F,void 0];const re=H(s.useEIP5719?await s.cachedEIP5719.runByEIP5719(F,R.subdigest,X):X),le=ye.signer.tryRecoverSigner(R.subdigest,re)!==F;return[F,{isDynamic:le,signature:re}]}))).filter(F=>!!F[1]));if(_.size===0)continue;const V=je.signature.SignatureCoder.encodeSigners(l,_,[],0);V.weightye.signer.canRecover(c)).map(c=>{const l=ye.signer.recoverSigner(a,c);return s.store.saveSignatureOfSubdigest(l,a,c)})])},this.walletsOfSigner=async function(i){const o=await s.store.loadSubdigestsOfSigner(i.signer),a=await Promise.all(o.map(l=>s.payloadOfSubdigest({subdigest:l}))).then(l=>l.filter(u=>u!==void 0)),c=[];for(const l of a){const u=l.address;if(c.find(h=>h.wallet===u))continue;const f=ye.signature.subdigestOf(l),d=await s.store.loadSignatureOfSubdigest(i.signer,f);d&&c.push({wallet:u,proof:{digest:l.digest,chainId:BigInt(l.chainId),signature:H(d)}})}return c},this.cachedEIP5719=new Rle(e)}async saveMigration(e,r,n){const s=r.fromVersion;if(s!==1)throw new Error("Migration not supported");if(!je.config.isWalletConfig(r.toConfig))throw new Error("Invalid to config");const{newImageHash:i,address:o}=TD.v1v2.decodeTransaction(r.tx,n);if(o!==e)throw new Error("Invalid migration transaction - address");if(je.config.ConfigCoder.imageHashOf(r.toConfig)!=i)throw new Error("Invalid migration transaction - config");const a=ye.transaction.packMetaTransactionsData(r.tx.nonce,r.tx.transactions),c=Ne(a),l={chainId:r.tx.chainId,message:a,address:e,digest:c},u=ye.signature.subdigestOf(l),f=this.savePayload({payload:l}),d=this.saveWalletConfig({config:r.toConfig}),h=Vi.signature.SignatureCoder.decode(r.tx.signature),y=await Vi.signature.SignatureCoder.recover(h,l,this.provider),p=Vi.signature.SignatureCoder.signaturesOf(y.config);await Promise.all([f,d,this.saveWalletConfig({config:y.config}),this.store.saveMigrationsSubdigest(e,s,s+1,u,i),...p.map(b=>this.store.saveSignatureOfSubdigest(b.address,y.subdigest,b.signature))])}async getMigration(e,r,n,s){var i=this;const[o,a]=await Promise.all([this.configOfImageHash({imageHash:r}),this.store.loadMigrationsSubdigest(e,n,n+1)]),c=dr.coderFor(n);return!o||!c.config.isWalletConfig(o)?void 0:(await Promise.all(a.map(async function(u){const{subdigest:f,toImageHash:d}=u,h=await i.payloadOfSubdigest({subdigest:f});if(!h||!h.message||BigInt(s)!==BigInt(h.chainId))return;const y=c.config.signersOf(o).map(x=>x.address),p=new Map((await Promise.all(y.map(async function(x){const k=await i.store.loadSignatureOfSubdigest(x,f);if(!k)return[x,void 0];const S=H(i.useEIP5719?await i.cachedEIP5719.runByEIP5719(x,f,k):k),I=ye.signer.tryRecoverSigner(f,S)!==x;return[x,{isDynamic:I,signature:S}]}))).filter(x=>!!x[1])),b=c.signature.encodeSigners(o,p,[],s);if(!b||b.weightu.filter(f=>f!==void 0)))[0]}updateProvider(e){this.provider=e}}var Xle=Object.freeze({__proto__:null,LocalConfigTracker:Sk});let zx=function(t){return t.EIP712="EIP712",t.EthSign="EthSign",t.EIP1271="EIP1271",t}({});class Zle{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/Sessions/",this.ping=(n,s)=>this.fetch(this.url("Ping"),cs({},n,s)).then(i=>ls(i).then(o=>({})),i=>{throw Un.new({cause:`fetch(): ${i.message||""}`})}),this.config=(n,s,i)=>this.fetch(this.url("Config"),cs(n,s,i)).then(o=>ls(o).then(a=>({version:a.version,config:a.config})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.wallets=(n,s,i)=>this.fetch(this.url("Wallets"),cs(n,s,i)).then(o=>ls(o).then(a=>({wallets:a.wallets})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.deployHash=(n,s,i)=>this.fetch(this.url("DeployHash"),cs(n,s,i)).then(o=>ls(o).then(a=>({deployHash:a.deployHash,context:a.context})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.configUpdates=(n,s,i)=>this.fetch(this.url("ConfigUpdates"),cs(n,s,i)).then(o=>ls(o).then(a=>({updates:a.updates})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.migrations=(n,s,i)=>this.fetch(this.url("Migrations"),cs(n,s,i)).then(o=>ls(o).then(a=>({migrations:a.migrations})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveConfig=(n,s,i)=>this.fetch(this.url("SaveConfig"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveWallet=(n,s,i)=>this.fetch(this.url("SaveWallet"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignature=(n,s,i)=>this.fetch(this.url("SaveSignature"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveSignerSignatures=(n,s,i)=>this.fetch(this.url("SaveSignerSignatures"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.saveMigration=(n,s,i)=>this.fetch(this.url("SaveMigration"),cs(n,s,i)).then(o=>ls(o).then(a=>({})),o=>{throw Un.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const cs=(t={},e={},r=null)=>({method:"POST",headers:_a({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),ls=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),cj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(fue[n]||vn).new(r)}return r});let vn=class rj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,rj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},eue=class nj extends vn{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nj.prototype)}},Un=class sj extends vn{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sj.prototype)}},tue=class ij extends vn{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,ij.prototype)}},rue=class oj extends vn{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oj.prototype)}},nue=class aj extends vn{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aj.prototype)}},cj=class lj extends vn{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lj.prototype)}},sue=class uj extends vn{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uj.prototype)}},iue=class fj extends vn{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fj.prototype)}},oue=class dj extends vn{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dj.prototype)}},aue=class hj extends vn{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hj.prototype)}},cue=class pj extends vn{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,pj.prototype)}},lue=class yj extends vn{constructor(e="InvalidArgument",r=1,n="invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,yj.prototype)}},uue=class vj extends vn{constructor(e="NotFound",r=2,n="not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,vj.prototype)}};const fue={0:eue,[-1]:Un,[-2]:tue,[-3]:rue,[-4]:nue,[-5]:cj,[-6]:sue,[-7]:iue,[-8]:oue,[-9]:aue,[-10]:cue,1:lue,2:uue};class due{constructor(e,r=!0){this.onlyRecoverable=r,this.sessions=void 0,this.sessions=new Zle(e,fetch)}async loadPresignedConfiguration(e){try{const{updates:r}=await this.sessions.configUpdates({wallet:e.wallet,fromImageHash:e.fromImageHash,allUpdates:e.longestPath});return r.map(({toImageHash:n,signature:s})=>({wallet:e.wallet,nextImageHash:n,signature:s}))}catch(r){if(Gx(r))return[];throw r}}async savePresignedConfiguration(e){const r=e.nextConfig,n=dr.genericCoderFor(r.version).config.imageHashOf(r),s=je.signature.setImageHashStruct(n),i=Ne(s);await this.sessions.saveSignature({wallet:e.wallet,digest:i,chainID:"0",signature:e.signature,toConfig:Ap(r)})}async saveWitnesses(e){let r=e.signatures;this.onlyRecoverable&&(r=r.filter(n=>ye.signer.canRecover(n))),await this.sessions.saveSignerSignatures({wallet:e.wallet,digest:e.digest,chainID:pu(e.chainId),signatures:r})}async configOfImageHash(e){try{const{version:r,config:n}=await this.sessions.config(e);return hue(r,n)}catch(r){if(Gx(r))return;throw r}}async saveWalletConfig(e){const r=Ap(e.config);await this.sessions.saveConfig({version:e.config.version,config:r})}async imageHashOfCounterfactualWallet(e){try{const{deployHash:r,context:n}=await this.sessions.deployHash(e);return{imageHash:r,context:n}}catch(r){if(Gx(r))return;throw r}}async saveCounterfactualWallet(e){const r=Ap(e.config);await this.sessions.saveWallet({version:e.config.version,deployConfig:r})}async walletsOfSigner(e){const{wallets:r}=await this.sessions.wallets(e);return Object.entries(r).map(([n,{digest:s,chainID:i,type:o,signature:a}])=>{switch(o){case zx.EIP712:a+=In(ye.signer.SigType.EIP712).slice(2);break;case zx.EthSign:a+=In(ye.signer.SigType.ETH_SIGN).slice(2);break;case zx.EIP1271:a+=In(ye.signer.SigType.WALLET_BYTES32).slice(2);break}return{wallet:n,proof:{digest:s,signature:a,chainId:BigInt(i)}}})}async getMigration(e,r,n,s){var i=this;const o=pu(s),{migrations:a}=await this.sessions.migrations({wallet:e,fromVersion:n,fromImageHash:r,chainID:o}),c=async function(f){const d=a[f];if(d){const h=Object.keys(d).map(Number).sort((y,p)=>p-y);for(const y of h)for(const[p,b]of Object.entries(d[y]))try{const v=await i.configOfImageHash({imageHash:p});if(v)return{fromVersion:n,toVersion:y,toConfig:v,tx:{entrypoint:b.executor,transactions:b.transactions,nonce:b.nonce,signature:b.signature,chainId:f,intent:{id:ye.transaction.subdigestOfTransactions(e,f,b.nonce,b.transactions),wallet:e}}}}catch(v){console.error(v)}}},l=await c(o);if(l)return l;for(const u in a)if(u!==o){const f=await c(u);if(f)return f}}async saveMigration(e,r,n){await this.sessions.saveMigration({wallet:e,fromVersion:r.fromVersion,toVersion:r.toVersion,toConfig:Ap(r.toConfig),executor:r.tx.entrypoint,transactions:r.tx.transactions.map(pue),nonce:pu(r.tx.nonce),signature:r.tx.signature,chainID:pu(r.tx.chainId)})}}function Ap(t){switch(t.version){case 1:if(Vi.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),signers:t.signers.map(({weight:e,address:r})=>({weight:bc(e),address:r}))};throw new Error(`not a v${t.version} config: ${t}`);case 2:if(je.config.ConfigCoder.isWalletConfig(t))return{threshold:bc(t.threshold),checkpoint:bc(t.checkpoint),tree:uy(t.tree)};throw new Error(`not a v${t.version} config: ${t}`);default:throw new Error(`unknown version ${t.version}`)}}function uy(t){return je.config.isNode(t)?{left:uy(t.left),right:uy(t.right)}:je.config.isSignerLeaf(t)?{weight:bc(t.weight),address:t.address}:je.config.isNestedLeaf(t)?{weight:bc(t.weight),threshold:bc(t.threshold),tree:uy(t.tree)}:je.config.isNodeLeaf(t)?{node:t.nodeHash}:_a({},t)}function hue(t,e){switch(t){case 1:return _a({},e,{version:t});case 2:return _a({},e,{version:t,tree:fy(e.tree)});default:throw new Error(`unknown version ${t}`)}}function fy(t){switch(typeof t){case"object":const e=_a({},t);return e.left!==void 0&&(e.left=fy(e.left)),e.right!==void 0&&(e.right=fy(e.right)),e.tree!==void 0&&(e.tree=fy(e.tree)),e.node!==void 0&&(e.nodeHash=e.node,delete e.node),e;default:throw new Error(`v2 config tree ${t} is not an object`)}}function pue(t){return{to:t.to,value:t.value!==void 0?pu(t.value):void 0,data:t.data!==void 0?H(t.data):void 0,gasLimit:t.gasLimit!==void 0?pu(t.gasLimit):void 0,delegateCall:t.delegateCall,revertOnError:t.revertOnError}}function bc(t){return Number(t)}function pu(t){return BigInt(t).toString()}function Gx(t){return typeof t=="object"&&t.status===404}var yue=Object.freeze({__proto__:null,RemoteConfigTracker:due});function U2(t,e,r){return new Promise(n=>{let s=0;t.forEach(i=>i.then(o=>{r(o)?n(o):(s++,s===t.length&&n(e))}).catch(()=>{s++,s===t.length&&n(e)}))})}async function lh(t,e){return Promise.all(t.map(r=>r.catch(()=>e)))}class vue{constructor(e){this.trackers=e}async configOfImageHash(e){const r=this.trackers.map(async function(a,c){return{res:await a.configOfImageHash(e),i:c}}),n=await U2(r,void 0,a=>(a==null?void 0:a.res)===void 0?!1:dr.genericCoderFor(a.res.version).config.isComplete(a.res));if(n!=null&&n.res)return this.saveWalletConfig({config:n.res,skipTracker:n.i}),n.res;const s=new Sk(void 0),i=await lh(r,void 0);for(const a of i)a!=null&&a.res&&await s.saveWalletConfig({config:a.res});const o=await s.configOfImageHash(e);return o&&this.saveWalletConfig({config:o}),o}async saveWalletConfig(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveWalletConfig(e)}))}async imageHashOfCounterfactualWallet(e){const r=await U2(this.trackers.map(n=>n.imageHashOfCounterfactualWallet(e)),void 0,n=>!!n);return r&&this.configOfImageHash({imageHash:r.imageHash}).then(n=>{n&&this.saveCounterfactualWallet({config:n,context:[r.context]})}),r}async saveCounterfactualWallet(e){await Promise.all(this.trackers.map((r,n)=>{if(n!==e.skipTracker)return r.saveCounterfactualWallet(e)}))}async walletsOfSigner(e){const r=await lh(this.trackers.map(o=>o.walletsOfSigner(e)),[]).then(o=>o.flat()),n={};for(const o of r)n[o.wallet]=o.proof;const s=Object.keys(n).map(o=>({wallet:o,proof:n[o]})),i=new Map;return s.forEach(({wallet:o,proof:{digest:a,chainId:c,signature:l}})=>{const u=`${o}-${a}-${c}`;let f=i.get(u);f||(f={wallet:o,digest:a,chainId:c,signatures:[]},i.set(u,f)),f.signatures.push(l)}),i.forEach(o=>this.saveWitnesses(o)),s}async saveWitnesses(e){await Promise.all(this.trackers.map(r=>r.saveWitnesses(e)))}async loadPresignedConfiguration(e){var r=this;const n=await lh(this.trackers.map(c=>c.loadPresignedConfiguration(e)),[]),i=(await lh(n.map(async function(c){const l=c[c.length-1],u=await r.configOfImageHash({imageHash:l.nextImageHash});if(u)return{checkpoint:dr.genericCoderFor(u.version).config.checkpointOf(u),result:c}}),void 0)).reduce((c,l)=>l&&(!c||l.checkpoint>c.checkpoint)?l:c);if(!i)return[];const o=new Map,a=c=>(o.has(c)||o.set(c,this.configOfImageHash({imageHash:c})),o.get(c));return i.result.forEach(async function(c){const l=await a(c.nextImageHash);l&&r.savePresignedConfiguration({wallet:e.wallet,nextConfig:l,signature:c.signature})}),i.result}async savePresignedConfiguration(e){await Promise.all(this.trackers.map(r=>r.savePresignedConfiguration(e)))}async getMigration(e,r,n,s){return(await Promise.all(this.trackers.map(o=>o.getMigration(e,r,n,s)))).find(o=>!!o)}async saveMigration(e,r,n){await Promise.all(this.trackers.map(s=>s.saveMigration(e,r,n)))}}class gue{constructor(e,r,n){this.tracker=e,this.cache=r,this.contexts=n}async loadPresignedConfiguration(e){var r=this;const n=[this.tracker.loadPresignedConfiguration(e),this.cache.loadPresignedConfiguration(e)];let s;const[i,o]=await Promise.all(n);if(i.length>0&&o.length>0&&i[i.length-1].nextImageHash===o[o.length-1].nextImageHash)s=e.longestPath===!0?i.length>o.length?i:o:i.lengthf&&(!u||f.checkpoint>u.checkpoint)?f:u))==null?void 0:c.result)!=null?a:[]}return s||[]}async savePresignedConfiguration(e){await Promise.all([this.tracker.savePresignedConfiguration(e),this.cache.savePresignedConfiguration(e)])}async configOfImageHash(e){if(e.noCache!==!0){const n=await this.cache.configOfImageHash(e);if(n)return n}const r=await this.tracker.configOfImageHash(e);return r&&await this.cache.saveWalletConfig({config:r}),r}async saveWalletConfig(e){await Promise.all([this.tracker.saveWalletConfig(e),this.cache.saveWalletConfig(e)])}async imageHashOfCounterfactualWallet(e){if(e.noCache!==!0){const n=await this.cache.imageHashOfCounterfactualWallet(e);if(n)return n}const r=await this.tracker.imageHashOfCounterfactualWallet(e);if(r){const n=await this.configOfImageHash({imageHash:r.imageHash});n&&await this.cache.saveCounterfactualWallet({config:n,context:[r.context]})}return r}async saveCounterfactualWallet(e){await Promise.all([this.tracker.saveCounterfactualWallet(e),this.cache.saveCounterfactualWallet(e)])}async walletsOfSigner(e){if(e.noCache)return this.tracker.walletsOfSigner(e);const r=await Promise.all([this.tracker.walletsOfSigner(e),this.cache.walletsOfSigner(e)]),n=new Map;for(const s of r)for(const i of s)n.set(i.wallet,i);return Array.from(n.values())}async saveWitnesses(e){await Promise.all([this.tracker.saveWitnesses(e),this.cache.saveWitnesses(e)])}async getMigration(e,r,n,s){const i=await this.cache.getMigration(e,r,n,s);if(i)return i;const o=await this.tracker.getMigration(e,r,n,s);return o&&await this.cache.saveMigration(e,o,this.contexts),o}async saveMigration(e,r,n){await Promise.all([this.tracker.saveMigration(e,r,n),this.cache.saveMigration(e,r,n)])}}class m3{constructor(){this.cache=void 0,this.cache=new Map}do(e,r,n,...s){e=`${e}:${Kr(JSON.stringify(s,mue))}`;let i=this.cache.get(e);if(i&&i.expiration&&new Date>=i.expiration&&(i=void 0,this.cache.delete(e)),!i){const o={promise:n(...s)};r!==void 0&&(o.promise=o.promise.then(a=>(o.expiration=new Date(Date.now()+r),a))),i=o,this.cache.set(e,i)}return i.promise}}function mue(t,e){return typeof e=="object"&&e!==null&&!Array.isArray(e)?Object.fromEntries(Object.entries(e).sort()):typeof e=="bigint"?e.toString():e}function xue(t){return t instanceof gj}class gj{constructor(e,r=50,n=!1){this.tracker=e,this.window=r,this.verbose=n,this.cache=new m3}invalidateCache(){this.cache=new m3}configOfImageHash(e){return this.cache.do("configOfImageHash",this.window,r=>this.tracker.configOfImageHash(r),e)}getMigration(e,r,n,s){return this.cache.do("getMigration",this.window,(...i)=>this.tracker.getMigration(...i),e,r,n,s)}saveMigration(e,r,n){return this.cache.do("saveMigration",void 0,(...s)=>this.tracker.saveMigration(...s),e,r,n)}loadPresignedConfiguration(e){return this.cache.do("loadPresignedConfiguration",this.window,r=>this.tracker.loadPresignedConfiguration(r),e)}savePresignedConfiguration(e){return this.cache.do("savePresignedConfiguration",void 0,r=>this.tracker.savePresignedConfiguration(r),e)}saveWitnesses(e){return this.cache.do("saveWitnesses",void 0,r=>this.tracker.saveWitnesses(r),e)}saveWalletConfig(e){return this.cache.do("saveWalletConfig",void 0,r=>this.tracker.saveWalletConfig(r),e)}imageHashOfCounterfactualWallet(e){return this.cache.do("imageHashOfCounterfactualWallet",void 0,r=>this.tracker.imageHashOfCounterfactualWallet(r),e)}saveCounterfactualWallet(e){return this.cache.do("saveCounterfactualWallet",void 0,r=>this.tracker.saveCounterfactualWallet(r),e)}walletsOfSigner(e){return this.cache.do("walletsOfSigner",this.window,r=>this.tracker.walletsOfSigner(r),e)}updateProvider(e){this.tracker instanceof Sk&&this.tracker.updateProvider(e)}}var Tk=Object.freeze({__proto__:null,debug:Qle,local:Xle,remote:yue,stores:Yle,raceUntil:U2,allSafe:lh,MultipleTracker:vue,CachedTracker:gue,isDedupedTracker:xue,DedupedTracker:gj});const bue=Object.freeze(Object.defineProperty({__proto__:null,tracker:qle,trackers:Tk},Symbol.toStringTag,{value:"Module"})),mj=60*60*24*7,wue=60;class x3{constructor(e,r,n={},s){this.account=e,this.settings=r,this.status=n,this._initialAuthRequest=void 0,this.proofStrings=new Map,this.onAuthCallbacks=[],this.apiClient=void 0,this.metadataClient=void 0,this.indexerClients=new Map,this.projectAccessKey=void 0,this.projectAccessKey=s}now(){return Math.floor(Date.now()/1e3)}get expiration(){var e;return Math.max((e=this.settings.metadata.expiration)!=null?e:mj,120)}onAuth(e){return this.onAuthCallbacks.push(e),()=>this.onAuthCallbacks=this.onAuthCallbacks.filter(r=>r!==e)}async dump(){return this.status.jwt?{jwt:{token:await this.status.jwt.token,expiration:this.status.jwt.expiration},metadata:this.status.metadata}:{metadata:this.settings.metadata}}auth(e=5){var r=this;return this._initialAuthRequest?this._initialAuthRequest:(this._initialAuthRequest=async function(){const n=r.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");let s;for(let i=1;;i++)try{s=(await r.getJWT(!0)).token;break}catch(o){if(i===e)throw console.error(`couldn't authenticate after ${e} attempts`,o),o}return new oy(n,void 0,s)}(),this._initialAuthRequest)}async getJWT(e){var r=this;const n=this.settings.sequenceApiUrl;if(!n)throw Error("No sequence api url");if(this.status.jwt){const l=this.status.jwt,u=await l.token;if(this.now(){throw this.status.jwt=void 0,l}),expiration:o};return this.status.jwt=a,a.token.then(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"fulfilled",value:l})}catch{}})}).catch(l=>{this.onAuthCallbacks.forEach(u=>{try{u({status:"rejected",reason:l})}catch{}})}),{token:await a.token,expiration:o}}getProofStringKey(){return`${this.account.address} - ${this.settings.metadata.name}`}async isProofStringValid(e){try{const r=new vv,n=BigInt(this.settings.sequenceApiChainId),s=Rs(this.account.networks,n);if(!s)throw Error("No network found");r.chainId=Number(n);const i=new ot(s.name,n);return r.provider=new zt(I0(s.rpcUrl,this.projectAccessKey),i,{staticNetwork:i}),await r.decodeProof(e),!0}catch{return!1}}async getAPIClient(e=!0){if(!this.apiClient){const r=this.settings.sequenceApiUrl;if(!r)throw Error("No sequence api url");const n=(await this.getJWT(e)).token;this.apiClient=new oy(r,void 0,n)}return this.apiClient}async getMetadataClient(e=!0){if(!this.metadataClient){const r=(await this.getJWT(e)).token;this.metadataClient=new QL(this.settings.sequenceMetadataUrl,void 0,r)}return this.metadataClient}async getIndexerClient(e,r=!0){const n=Rs(this.account.networks,e);if(!n)throw Error(`No network for chain ${e}`);if(!this.indexerClients.has(n.chainId))if(n.indexer)this.indexerClients.set(n.chainId,n.indexer);else if(n.indexerUrl){const s=(await this.getJWT(r)).token;this.indexerClients.set(n.chainId,new fL(n.indexerUrl,void 0,s))}else throw Error(`No indexer url for chain ${e}`);return this.indexerClients.get(n.chainId)}getProofString(e){if(this.proofStrings.has(e)){const l=this.proofStrings.get(e);if(this.now()(r.signature=l,n.encodeProof(r,!0))).catch(l=>{throw this.proofStrings.delete(e),l}),expiration:a};return this.proofStrings.set(e,c),c}}const xj=async(t,e,r)=>{const n=Te(await t.getAddress());if(!n||n===""||n==="0x")throw bj;const s=new ek;if(s.address=n,!r||!r.app||r.app==="")throw new Pk("authorization options requires app to be set");s.claims.app=r.app,s.claims.ogn=r.origin,s.claims.n=r.nonce,s.setExpiryIn(r.expiry?Math.max(r.expiry,200):mj);const i=s.messageTypedData(),o=RM(e);s.signature=await(t instanceof qi?t.signTypedData(i.domain,i.types,i.message,o,"eip6492"):t.signTypedData(i.domain,i.types,i.message,o));const c=await new vv().encodeProof(s,!0);return{typedData:i,proofString:c}};class Pk extends Error{constructor(e){super(e),this.name="AuthError"}}const bj=new Pk("auth error: account address is empty");function uc(){return uc=Object.assign?Object.assign.bind():function(t){for(var e=1;eF.wallet));let _;if(R){if(f==null||f(R),_=new qi({address:R,tracker:x,networks:g,contexts:v,orchestrator:p,projectAccessKey:b}),l&&l.length>0){let F=await _.status(S);if(F.original.version!==F.version||_.version!==F.version){const{migratedAllChains:le,failedChains:ee}=await _.isMigratedAllChains();if(ee.some(D=>$2.includes(D)))throw Error(`Failed to fetch account status on ${ee.join(", ")}`);if(!le){if(y&&!await y(_))throw Error("Migration cancelled, cannot open session");const{failedChains:D}=await _.signAllMigrations(h||(Z=>Z));if(D.some(Z=>$2.includes(Z)))throw Error(`Failed to sign migrations on ${D.join(", ")}`);Tk.isDedupedTracker(x)&&x.invalidateCache();let G;if([G,F]=await Promise.all([_.isMigratedAllChains().then(Z=>Z.migratedAllChains),_.status(S)]),!G)throw Error("Failed to migrate account")}}F.onChain.version!==F.version&&await _.doBootstrap(S,void 0,F);const X=F.config,re=_.coders.config.editConfig(X,{add:l,threshold:c});if(_.coders.config.imageHashOf(X)!==_.coders.config.imageHashOf(re)){const le=_.coders.config.editConfig(re,{checkpoint:_.coders.config.checkpointOf(X)+1n});await _.updateConfig(le)}}}else{if(!l||l.length===0)throw Error("Cannot create new account without signers");if(!c)throw Error("Cannot create new account without threshold");if(_=await qi.new({config:{threshold:c,checkpoint:0,signers:l},tracker:x,contexts:v,orchestrator:p,networks:g,projectAccessKey:b}),f==null||f(_.address),await _.publishWitness(),!(await x.walletsOfSigner({signer:a,noCache:!0})).some(X=>X.wallet===_.address))throw Error("Account not found on tracker")}let V;return k&&(V=new x3(_,k),V.auth(),V.onAuth(F=>{F.status==="fulfilled"&&_.setJwt(F.value)})),new jh(g,v,_,V)}static async load(e){const{dump:r,settings:n,editConfigOnMigration:s,onMigration:i,orchestrator:o}=e,{contexts:a,networks:c,tracker:l,services:u}=uc({},dy,n);let f;if(wj(r)){var d,h,y;const k=r.config.address||ye.context.addressOf(a[1],Vi.config.ConfigCoder.imageHashOf(uc({},r.config,{version:1}))),S=((d=(h=r.jwt)==null?void 0:h.expiration)!=null?d:0)I.migratedAllChains)){if(i&&!await i(f))throw Error("Migration cancelled, cannot open session");if(console.log("Migrating account..."),await f.signAllMigrations(s),!await f.isMigratedAllChains().then(I=>I.migratedAllChains))throw Error("Failed to migrate account")}}else if(Cj(r)){var p,b,v;const k=((p=(b=r.jwt)==null?void 0:b.expiration)!=null?p:0)async(n,s,i)=>{const o=i.messageDigest();return{isValid:await t(s).isValidSignature(i.address,o,i.signature)}},Eue=Object.freeze(Object.defineProperty({__proto__:null,AuthError:Pk,CRITICAL_CHAINS:$2,ErrAccountIsRequired:bj,Session:jh,SessionSettingsDefault:dy,ValidateSequenceWalletProof:Cue,isSessionDumpV1:wj,isSessionDumpV2:Cj,signAuthorization:xj},Symbol.toStringTag,{value:"Module"}));function Av(){return Av=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.version=(n,s)=>this.fetch(this.url("Version"),Er({},n,s)).then(i=>kr(i).then(o=>({version:o.version})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.runtimeStatus=(n,s)=>this.fetch(this.url("RuntimeStatus"),Er({},n,s)).then(i=>kr(i).then(o=>({status:o.status})),i=>{throw cr.new({cause:`fetch(): ${i.message||""}`})}),this.getSignerConfig=(n,s,i)=>this.fetch(this.url("GetSignerConfig"),Er(n,s,i)).then(o=>kr(o).then(a=>({signerConfig:a.signerConfig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.sign=(n,s,i)=>this.fetch(this.url("Sign"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.signWith=(n,s,i)=>this.fetch(this.url("SignWith"),Er(n,s,i)).then(o=>kr(o).then(a=>({sig:a.sig})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.patch=(n,s,i)=>this.fetch(this.url("Patch"),Er(n,s,i)).then(o=>kr(o).then(a=>({txs:a.txs})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.authMethods=(n,s,i)=>this.fetch(this.url("AuthMethods"),Er(n,s,i)).then(o=>kr(o).then(a=>({methods:a.methods,active:a.active})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.setPIN=(n,s,i)=>this.fetch(this.url("SetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetPIN=(n,s,i)=>this.fetch(this.url("ResetPIN"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.createTOTP=(n,s,i)=>this.fetch(this.url("CreateTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({uri:a.uri})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.commitTOTP=(n,s,i)=>this.fetch(this.url("CommitTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetTOTP=(n,s,i)=>this.fetch(this.url("ResetTOTP"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.reset2FA=(n,s,i)=>this.fetch(this.url("Reset2FA"),Er(n,s,i)).then(o=>kr(o).then(a=>({})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.recoveryCodes=(n,s,i)=>this.fetch(this.url("RecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.resetRecoveryCodes=(n,s,i)=>this.fetch(this.url("ResetRecoveryCodes"),Er(n,s,i)).then(o=>kr(o).then(a=>({codes:a.codes})),o=>{throw cr.new({cause:`fetch(): ${o.message||""}`})}),this.hostname=e,this.fetch=(n,s)=>r(n,s)}url(e){return this.hostname+this.path+e}}const Er=(t={},e={},r=null)=>({method:"POST",headers:Av({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),kr=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),Oj.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(Lue[n]||Ft).new(r)}return r});let Ft=class kj extends Error{constructor(e,r,n,s,i){super(n),this.name=void 0,this.code=void 0,this.message=void 0,this.status=void 0,this.cause=void 0,this.msg=void 0,this.name=e||"WebrpcError",this.code=typeof r=="number"?r:0,this.message=n||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof s=="number"?s:0,this.cause=i,Object.setPrototypeOf(this,kj.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},kue=class Aj extends Ft{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Aj.prototype)}},cr=class Sj extends Ft{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Sj.prototype)}},Aue=class Tj extends Ft{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Tj.prototype)}},Sue=class Pj extends Ft{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Pj.prototype)}},Tue=class Ij extends Ft{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ij.prototype)}},Oj=class Rj extends Ft{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rj.prototype)}},Pue=class Nj extends Ft{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nj.prototype)}},Iue=class _j extends Ft{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,_j.prototype)}},Oue=class Mj extends Ft{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Mj.prototype)}},Rue=class Dj extends Ft{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Dj.prototype)}},Nue=class Bj extends Ft{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Bj.prototype)}},_ue=class Lj extends Ft{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Lj.prototype)}},Mue=class jj extends Ft{constructor(e="SessionExpired",r=1002,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,jj.prototype)}};class Ik extends Ft{constructor(e="Aborted",r=1005,n="Request aborted",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ik.prototype)}}class Ok extends Ft{constructor(e="InvalidArgument",r=2001,n="Invalid argument",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Ok.prototype)}}class Rk extends Ft{constructor(e="Unavailable",r=2002,n="Unavailable resource",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Rk.prototype)}}let Due=class Fj extends Ft{constructor(e="QueryFailed",r=2003,n="Query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Fj.prototype)}};class Nk extends Ft{constructor(e="ValidationFailed",r=2004,n="Validation Failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Nk.prototype)}}let Bue=class Uj extends Ft{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Uj.prototype)}};const Lue={0:kue,[-1]:cr,[-2]:Aue,[-3]:Sue,[-4]:Tue,[-5]:Oj,[-6]:Pue,[-7]:Iue,[-8]:Oue,[-9]:Rue,[-10]:Nue,1e3:_ue,1002:Mue,1005:Ik,2001:Ok,2002:Rk,2003:Due,2004:Nk,3e3:Bue},jue=globalThis.fetch;class Fue{constructor(e,r,n=!1){this.address=e,this.url=r,this.appendSuffix=n,this.guard=void 0,this.guard=new Ej(r,jue)}async getAddress(){return this.address}async buildDeployTransaction(e){}async predecorateSignedTransactions(e){return[]}async decorateTransactions(e,r){return e}async sign(e,r){var n;if(!ye.isWalletSignRequestMetadata(r))throw new Error("expected sequence signature request metadata");const s=r.guardTotpCode,i=dr.genericCoderFor(r.config.version),{encoded:o}=i.signature.encodeSigners(r.config,(n=r.parts)!=null?n:new Map,[],r.chainId);return(await this.guard.signWith({signer:this.address,request:{msg:H(e),auxData:this.packMsgAndSig(r.address,r.digest,o,r.chainId),chainId:Number(r.chainId)},token:s?{id:Sv.TOTP,token:s}:void 0})).sig}notifyStatusChange(e,r,n){}async getAuthMethods(e){let r;if("jwt"in e)r=await this.guard.authMethods({},{Authorization:`BEARER ${e.jwt}`});else{const n=await W2(e);r=await this.guard.authMethods({proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}return Av({},r,{methods:r.methods.map(Uue)})}async setPin(e,r){const n=await Vd(r);e===void 0?await this.guard.resetPIN({timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`}):await this.guard.setPIN({pin:e,timestamp:n.timestamp.getTime(),signature:n.signature},{Authorization:`BEARER ${r.jwt}`})}resetPin(e){return this.setPin(void 0,e)}async createTotp(e){const r=await Vd(e),{uri:n}=await this.guard.createTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return new URL(n)}async commitTotp(e,r){const{codes:n}=await this.guard.commitTOTP({token:e},{Authorization:`BEARER ${r}`});return n}async resetTotp(e){const r=await Vd(e);await this.guard.resetTOTP({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`})}async reset2fa(e,r){if("jwt"in r)await this.guard.reset2FA({code:e},{Authorization:`BEARER ${r.jwt}`});else{const n=await W2(r);await this.guard.reset2FA({code:e,proof:{wallet:n.walletAddress,timestamp:n.timestamp.getTime(),signer:n.signerAddress,signature:n.signature}})}}async getRecoveryCodes(e){const r=await Vd(e),{codes:n}=await this.guard.recoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}async resetRecoveryCodes(e){const r=await Vd(e),{codes:n}=await this.guard.resetRecoveryCodes({timestamp:r.timestamp.getTime(),signature:r.signature},{Authorization:`BEARER ${e.jwt}`});return n}packMsgAndSig(e,r,n,s){return Kt.defaultAbiCoder().encode(["address","uint256","bytes","bytes"],[e,s,r,n])}suffix(){return new Uint8Array(this.appendSuffix?[3]:[])}}let Sv=function(t){return t.PIN="PIN",t.TOTP="TOTP",t}({});function Uue(t){switch(t){case Sv.PIN:case Sv.TOTP:return t;default:throw new Error(`unknown auth method '${t}'`)}}function $j(t){return"signerAddress"in t&&typeof t.signerAddress=="string"}async function W2(t){if($j(t))return t;{const e=B2.isSapientSigner(t.signer)?t.signer:new B2.SignerWrapper(t.signer),r=await e.getAddress(),n=new Date,s=Wj(t.walletAddress,n),i=Ed(s);return{walletAddress:t.walletAddress,timestamp:n,signerAddress:r,signature:H(await e.sign(i,{}))}}}async function Vd(t){if("wallet"in t){var e;const r=new Date,n=Vj(r),s=await t.wallet.signTypedData(n.domain,n.types,n.message,(e=n.domain.chainId)!=null?e:1,"eip6492");return{jwt:t.jwt,timestamp:r,signature:s}}else return t}function Wj(t,e){return{domain:Hj,types:{AuthMethods:[{name:"wallet",type:"address"},{name:"timestamp",type:"string"}]},message:{wallet:Te(t),timestamp:zj(e)}}}function Vj(t){return{domain:Hj,types:{AuthUpdate:[{name:"timestamp",type:"string"}]},message:{timestamp:zj(t)}}}const Hj={name:"Sequence Guard",version:"1",chainId:1};function zj(t){return t.toUTCString().replace("GMT","UTC")}const $ue=Object.freeze(Object.defineProperty({__proto__:null,AuthMethod:Sv,Guard:Ej,GuardSigner:Fue,getAuthUpdateProofTypedData:Vj,getOwnershipProofTypedData:Wj,isSignedOwnershipProof:$j,signOwnershipProof:W2},Symbol.toStringTag,{value:"Module"}));var Gj={exports:{}};/*! + * EventEmitter2 + * https://github.com/hij1nx/EventEmitter2 + * + * Copyright (c) 2013 hij1nx + * Licensed under the MIT license. + */(function(t,e){(function(r){var n=Object.hasOwnProperty,s=Array.isArray?Array.isArray:function(A){return Object.prototype.toString.call(A)==="[object Array]"},i=10,o=typeof process=="object"&&typeof process.nextTick=="function",a=typeof Symbol=="function",c=typeof Reflect=="object",l=typeof setImmediate=="function",u=l?setImmediate:setTimeout,f=a?c&&typeof Reflect.ownKeys=="function"?Reflect.ownKeys:function(C){var A=Object.getOwnPropertyNames(C);return A.push.apply(A,Object.getOwnPropertySymbols(C)),A}:Object.keys;function d(){this._events={},this._conf&&h.call(this,this._conf)}function h(C){C&&(this._conf=C,C.delimiter&&(this.delimiter=C.delimiter),C.maxListeners!==r&&(this._maxListeners=C.maxListeners),C.wildcard&&(this.wildcard=C.wildcard),C.newListener&&(this._newListener=C.newListener),C.removeListener&&(this._removeListener=C.removeListener),C.verboseMemoryLeak&&(this.verboseMemoryLeak=C.verboseMemoryLeak),C.ignoreErrors&&(this.ignoreErrors=C.ignoreErrors),this.wildcard&&(this.listenerTree={}))}function y(C,A){var O="(node) warning: possible EventEmitter memory leak detected. "+C+" listeners added. Use emitter.setMaxListeners() to increase limit.";if(this.verboseMemoryLeak&&(O+=" Event name: "+A+"."),typeof process<"u"&&process.emitWarning){var M=new Error(O);M.name="MaxListenersExceededWarning",M.emitter=this,M.count=C,process.emitWarning(M)}else console.error(O),console.trace&&console.trace()}var p=function(C,A,O){var M=arguments.length;switch(M){case 0:return[];case 1:return[C];case 2:return[C,A];case 3:return[C,A,O];default:for(var B=new Array(M);M--;)B[M]=arguments[M];return B}};function b(C,A){for(var O={},M,B=C.length,W=0,q=0;q0;)C=W[J],q.call(te,C,O[C]);this._listeners={},this._listenersCount=0,$()}}});function g(C,A,O,M){var B=Object.assign({},A);if(!C)return B;if(typeof C!="object")throw TypeError("options must be an object");var W=Object.keys(C),q=W.length,te,J,$;function K(de){throw Error('Invalid "'+te+'" option value'+(de?". Reason: "+de:""))}for(var ue=0;ue0;)if(te===C[J])return W;q(A)}}var S=k(["function"]),I=k(["object","function"]);function R(C,A,O){var M,B,W=0,q,te=new C(function(J,$,K){O=g(O,{timeout:0,overload:!1},{timeout:function(Ce,Re){return Ce*=1,(typeof Ce!="number"||Ce<0||!Number.isFinite(Ce))&&Re("timeout must be a positive number"),Ce}}),M=!O.overload&&typeof C.prototype.cancel=="function"&&typeof K=="function";function ue(){B&&(B=null),W&&(clearTimeout(W),W=0)}var de=function(Ce){ue(),J(Ce)},oe=function(Ce){ue(),$(Ce)};M?A(de,oe,K):(B=[function(Ce){oe(Ce||Error("canceled"))}],A(de,oe,function(Ce){if(q)throw Error("Unable to subscribe on cancel event asynchronously");if(typeof Ce!="function")throw TypeError("onCancel callback must be a function");B.push(Ce)}),q=!0),O.timeout>0&&(W=setTimeout(function(){var Ce=Error("timeout");Ce.code="ETIMEDOUT",W=0,te.cancel(Ce),$(Ce)},O.timeout))});return M||(te.cancel=function(J){if(B){for(var $=B.length,K=1;K<$;K++)B[K](J);B[0](J),B=null}}),te}function _(C){var A=this._observers;if(!A)return-1;for(var O=A.length,M=0;M0;)oe=se[te],oe!=="_listeners"&&(ae=V(C,A,O[oe],M+1,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else if(br==="**"){for(tn=M+1===B||M+2===B&&U==="*",tn&&O._listeners&&(de=V(C,A,O,B,B)),se=f(O),te=se.length;te-- >0;)oe=se[te],oe!=="_listeners"&&(oe==="*"||oe==="**"?(O[oe]._listeners&&!tn&&(ae=V(C,A,O[oe],B,B),ae&&(de?de.push.apply(de,ae):de=ae)),ae=V(C,A,O[oe],M,B)):oe===U?ae=V(C,A,O[oe],M+2,B):ae=V(C,A,O[oe],M,B),ae&&(de?de.push.apply(de,ae):de=ae));return de}else O[br]&&(de=V(C,A,O[br],M+1,B));if(Ce=O["*"],Ce&&V(C,A,Ce,M+1,B),Re=O["**"],Re)if(M0;)oe=se[te],oe!=="_listeners"&&(oe===U?V(C,A,Re[oe],M+2,B):oe===br?V(C,A,Re[oe],M+1,B):(xt={},xt[oe]=Re[oe],V(C,A,{"**":xt},M+1,B)));else Re._listeners?V(C,A,Re,B,B):Re["*"]&&Re["*"]._listeners&&V(C,A,Re["*"],B,B);return de}function F(C,A,O){var M=0,B=0,W,q=this.delimiter,te=q.length,J;if(typeof C=="string")if((W=C.indexOf(q))!==-1){J=new Array(5);do J[M++]=C.slice(B,W),B=W+te;while((W=C.indexOf(q,B))!==-1);J[M++]=C.slice(B)}else J=[C],M=1;else J=C,M=C.length;if(M>1){for(W=0;W+10&&$._listeners.length>this._maxListeners&&($._listeners.warned=!0,y.call(this,$._listeners.length,K))):$._listeners=A,!0;return!0}function X(C,A,O,M){for(var B=f(C),W=B.length,q,te,J,$=C._listeners,K;W-- >0;)te=B[W],q=C[te],te==="_listeners"?J=O:J=O?O.concat(te):[te],K=M||typeof te=="symbol",$&&A.push(K?J:J.join(this.delimiter)),typeof q=="object"&&X.call(this,q,A,J,K);return A}function re(C){for(var A=f(C),O=A.length,M,B,W;O-- >0;)B=A[O],M=C[B],M&&(W=!0,B!=="_listeners"&&!re(M)&&delete C[B]);return W}function le(C,A,O){this.emitter=C,this.event=A,this.listener=O}le.prototype.off=function(){return this.emitter.off(this.event,this.listener),this};function ee(C,A,O){if(O===!0)B=!0;else if(O===!1)M=!0;else{if(!O||typeof O!="object")throw TypeError("options should be an object or true");var M=O.async,B=O.promisify,W=O.nextTick,q=O.objectify}if(M||W||B){var te=A,J=A._origin||A;if(W&&!o)throw Error("process.nextTick is not supported");B===r&&(B=A.constructor.name==="AsyncFunction"),A=function(){var $=arguments,K=this,ue=this.event;return B?W?Promise.resolve():new Promise(function(de){u(de)}).then(function(){return K.event=ue,te.apply(K,$)}):(W?process.nextTick:u)(function(){K.event=ue,te.apply(K,$)})},A._async=!0,A._origin=J}return[A,q?new le(this,C,A):this]}function D(C){this._events={},this._newListener=!1,this._removeListener=!1,this.verboseMemoryLeak=!1,h.call(this,C)}D.EventEmitter2=D,D.prototype.listenTo=function(C,A,O){if(typeof C!="object")throw TypeError("target musts be an object");var M=this;O=g(O,{on:r,off:r,reducers:r},{on:S,off:S,reducers:I});function B(W){if(typeof W!="object")throw TypeError("events must be an object");var q=O.reducers,te=_.call(M,C),J;te===-1?J=new v(M,C,O):J=M._observers[te];for(var $=f(W),K=$.length,ue,de=typeof q=="function",oe=0;oe0;)B=O[M],(!C||B._target===C)&&(B.unsubscribe(A),W=!0);return W},D.prototype.delimiter=".",D.prototype.setMaxListeners=function(C){C!==r&&(this._maxListeners=C,this._conf||(this._conf={}),this._conf.maxListeners=C)},D.prototype.getMaxListeners=function(){return this._maxListeners},D.prototype.event="",D.prototype.once=function(C,A,O){return this._once(C,A,!1,O)},D.prototype.prependOnceListener=function(C,A,O){return this._once(C,A,!0,O)},D.prototype._once=function(C,A,O,M){return this._many(C,1,A,O,M)},D.prototype.many=function(C,A,O,M){return this._many(C,A,O,!1,M)},D.prototype.prependMany=function(C,A,O,M){return this._many(C,A,O,!0,M)},D.prototype._many=function(C,A,O,M,B){var W=this;if(typeof O!="function")throw new Error("many only accepts instances of Function");function q(){return--A===0&&W.off(C,q),O.apply(this,arguments)}return q._origin=O,this._on(C,q,M,B)},D.prototype.emit=function(){if(!this._events&&!this._all)return!1;this._events||d.call(this);var C=arguments[0],A,O=this.wildcard,M,B,W,q,te;if(C==="newListener"&&!this._newListener&&!this._events.newListener)return!1;if(O&&(A=C,C!=="newListener"&&C!=="removeListener"&&typeof C=="object")){if(B=C.length,a){for(W=0;W3)for(M=new Array(J-1),q=1;q3)for(B=new Array($-1),te=1;te<$;te++)B[te-1]=arguments[te];for(q=0,W=K.length;q0&&this._events[C].length>this._maxListeners&&(this._events[C].warned=!0,y.call(this,this._events[C].length,C))):this._events[C]=A,B)},D.prototype.off=function(C,A){if(typeof A!="function")throw new Error("removeListener only takes instances of Function");var O,M=[];if(this.wildcard){var B=typeof C=="string"?C.split(this.delimiter):C.slice();if(M=V.call(this,null,B,this.listenerTree,0),!M)return this}else{if(!this._events[C])return this;O=this._events[C],M.push({_listeners:O})}for(var W=0;W0){for(M=this._all,A=0,O=M.length;A0;)M=A[O[W]],typeof M=="function"?B.push(M):B.push.apply(B,M);return B}else{if(this.wildcard){if(q=this.listenerTree,!q)return[];var te=[],J=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,te,J,q,0),te}return A?(M=A[C],M?typeof M=="function"?[M]:M:[]):[]}},D.prototype.eventNames=function(C){var A=this._events;return this.wildcard?X.call(this,this.listenerTree,[],null,C):A?f(A):[]},D.prototype.listenerCount=function(C){return this.listeners(C).length},D.prototype.hasListeners=function(C){if(this.wildcard){var A=[],O=typeof C=="string"?C.split(this.delimiter):C.slice();return V.call(this,A,O,this.listenerTree,0),A.length>0}var M=this._events,B=this._all;return!!(B&&B.length||M&&(C===r?f(M).length:M[C]))},D.prototype.listenersAny=function(){return this._all?this._all:[]},D.prototype.waitFor=function(C,A){var O=this,M=typeof A;return M==="number"?A={timeout:A}:M==="function"&&(A={filter:A}),A=g(A,{timeout:0,filter:r,handleError:!1,Promise,overload:!1},{filter:S,Promise:x}),R(A.Promise,function(B,W,q){function te(){var J=A.filter;if(!(J&&!J.apply(O,arguments)))if(O.off(C,te),A.handleError){var $=arguments[0];$?W($):B(p.apply(null,arguments).slice(1))}else B(p.apply(null,arguments))}q(function(){O.off(C,te)}),O._on(C,te,!1)},{timeout:A.timeout,overload:A.overload})};function G(C,A,O){O=g(O,{Promise,timeout:0,overload:!1},{Promise:x});var M=O.Promise;return R(M,function(B,W,q){var te;if(typeof C.addEventListener=="function"){te=function(){B(p.apply(null,arguments))},q(function(){C.removeEventListener(A,te)}),C.addEventListener(A,te,{once:!0});return}var J=function(){$&&C.removeListener("error",$),B(p.apply(null,arguments))},$;A!=="error"&&($=function(K){C.removeListener(A,J),W(K)},C.once("error",$)),q(function(){$&&C.removeListener("error",$),C.removeListener(A,J)}),C.once(A,J)},{timeout:O.timeout,overload:O.overload})}var Z=D.prototype;Object.defineProperties(D,{defaultMaxListeners:{get:function(){return Z._maxListeners},set:function(C){if(typeof C!="number"||C<0||Number.isNaN(C))throw TypeError("n must be a non-negative number");Z._maxListeners=C},enumerable:!0},once:{value:G,writable:!0,configurable:!0}}),Object.defineProperties(Z,{_maxListeners:{value:i,writable:!0,configurable:!0},_observers:{value:null,writable:!0,configurable:!0}}),t.exports=D})()})(Gj);var fm=Gj.exports;function Wue(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function _k(t,...e){if(!Wue(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function b3(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Vue(t,e){_k(t);const r=e.outputLen;if(t.lengthnew DataView(t.buffer,t.byteOffset,t.byteLength),Ws=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];const Hue=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function zue(t){_k(t);let e="";for(let r=0;rt().update(qj(n)).digest(),r=t();return e.outputLen=r.outputLen,e.blockLen=r.blockLen,e.create=()=>t(),e}function Que(t,e,r,n){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,r,n);const s=BigInt(32),i=BigInt(4294967295),o=Number(r>>s&i),a=Number(r&i),c=n?4:0,l=n?0:4;t.setUint32(e+c,o,n),t.setUint32(e+l,a,n)}const Jue=(t,e,r)=>t&e^~t&r,Yue=(t,e,r)=>t&e^t&r^e&r;class Xue extends que{constructor(e,r,n,s){super(),this.blockLen=e,this.outputLen=r,this.padOffset=n,this.isLE=s,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=qx(this.buffer)}update(e){b3(this);const{view:r,buffer:n,blockLen:s}=this;e=qj(e);const i=e.length;for(let o=0;os-o&&(this.process(n,0),o=0);for(let f=o;fu.length)throw new Error("_sha2: outputLen bigger than state");for(let f=0;f>>3,p=Ws(h,17)^Ws(h,19)^h>>>10;So[f]=p+So[f-7]+y+So[f-16]|0}let{A:n,B:s,C:i,D:o,E:a,F:c,G:l,H:u}=this;for(let f=0;f<64;f++){const d=Ws(a,6)^Ws(a,11)^Ws(a,25),h=u+d+Jue(a,c,l)+Zue[f]+So[f]|0,p=(Ws(n,2)^Ws(n,13)^Ws(n,22))+Yue(n,s,i)|0;u=l,l=c,c=a,a=o+h|0,o=i,i=s,s=n,n=h+p|0}n=n+this.A|0,s=s+this.B|0,i=i+this.C|0,o=o+this.D|0,a=a+this.E|0,c=c+this.F|0,l=l+this.G|0,u=u+this.H|0,this.set(n,s,i,o,a,c,l,u)}roundClean(){So.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const tfe=Kue(()=>new efe);var rfe=class{constructor(t,e){N(this,"hostname");N(this,"fetch");N(this,"path","/rpc/Databeat/");N(this,"ping",(t,e)=>this.fetch(this.url("Ping"),Hd({},t,e)).then(r=>zd(r).then(n=>({status:n.status})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"version",(t,e)=>this.fetch(this.url("Version"),Hd({},t,e)).then(r=>zd(r).then(n=>({version:n.version})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"runtimeStatus",(t,e)=>this.fetch(this.url("RuntimeStatus"),Hd({},t,e)).then(r=>zd(r).then(n=>({status:n.status})),r=>{throw Ql.new({cause:`fetch(): ${r.message||""}`})}));N(this,"tick",(t,e,r)=>this.fetch(this.url("Tick"),Hd(t,e,r)).then(n=>zd(n).then(s=>({ok:s.ok})),n=>{throw Ql.new({cause:`fetch(): ${n.message||""}`})}));N(this,"rawEvents",(t,e,r)=>this.fetch(this.url("RawEvents"),Hd(t,e,r)).then(n=>zd(n).then(s=>({ok:s.ok})),n=>{throw Ql.new({cause:`fetch(): ${n.message||""}`})}));this.hostname=t,this.fetch=(r,n)=>e(r,n)}url(t){return this.hostname+this.path+t}},Hd=(t={},e={},r=null)=>({method:"POST",headers:{...e,"Content-Type":"application/json"},body:JSON.stringify(t||{}),signal:r}),zd=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let s="";throw n instanceof Error&&(s=n.message),eF.new({status:t.status,cause:`JSON.parse(): ${s}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(xfe[n]||Qt).new(r)}return r}),Qt=class Kj extends Error{constructor(r,n,s,i,o){super(s);N(this,"name");N(this,"code");N(this,"message");N(this,"status");N(this,"cause");N(this,"msg");this.name=r||"WebrpcError",this.code=typeof n=="number"?n:0,this.message=s||`endpoint error ${this.code}`,this.msg=this.message,this.status=typeof i=="number"?i:0,this.cause=o,Object.setPrototypeOf(this,Kj.prototype)}static new(r){return new this(r.error,r.code,r.message||r.msg,r.status,r.cause)}},nfe=class Qj extends Qt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Qj.prototype)}},Ql=class Jj extends Qt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Jj.prototype)}},sfe=class Yj extends Qt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Yj.prototype)}},ife=class Xj extends Qt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Xj.prototype)}},ofe=class Zj extends Qt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,Zj.prototype)}},eF=class tF extends Qt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,tF.prototype)}},afe=class rF extends Qt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,rF.prototype)}},cfe=class nF extends Qt{constructor(e="WebrpcInternalError",r=-7,n="internal error",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,nF.prototype)}},lfe=class sF extends Qt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,sF.prototype)}},ufe=class iF extends Qt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,iF.prototype)}},ffe=class oF extends Qt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,oF.prototype)}},dfe=class aF extends Qt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,aF.prototype)}},hfe=class cF extends Qt{constructor(e="PermissionDenied",r=2e3,n="Permission denied",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,cF.prototype)}},pfe=class lF extends Qt{constructor(e="SessionExpired",r=2001,n="Session expired",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,lF.prototype)}},yfe=class uF extends Qt{constructor(e="NotFound",r=3e3,n="Resource not found",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,uF.prototype)}},vfe=class fF extends Qt{constructor(e="InvalidAppKey",r=4e3,n="Invalid app key",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,fF.prototype)}},gfe=class dF extends Qt{constructor(e="QueryFailed",r=4001,n="DB query failed",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,dF.prototype)}},mfe=class hF extends Qt{constructor(e="InvalidProjectId",r=4002,n="Invalid project id",s=0,i){super(e,r,n,s,i),Object.setPrototypeOf(this,hF.prototype)}},xfe={0:nfe,[-1]:Ql,[-2]:sfe,[-3]:ife,[-4]:ofe,[-5]:eF,[-6]:afe,[-7]:cfe,[-8]:lfe,[-9]:ufe,[-10]:ffe,1e3:dfe,2e3:hfe,2001:pfe,3e3:yfe,4e3:vfe,4001:gfe,4002:mfe},bfe=class extends rfe{constructor(e,r){const n=typeof global=="object"?global.fetch.bind(global):window.fetch.bind(window);super(e.endsWith("/")?e.slice(0,-1):e,n);N(this,"_globalFetch");N(this,"_fetch",(e,r)=>{var n;if(this.auth){let s={};((n=this.auth.jwt)==null?void 0:n.length)>0&&(s.Authorization=`BEARER ${this.auth.jwt}`),this.auth.headers&&(s={...s,...this.auth.headers}),r.headers={...r.headers,...s}}return this._globalFetch(e,r)});this.auth=r,this._globalFetch=n,this.fetch=this._fetch}},w3=150,Xa={defaultEnabled:!0,noop:!1,privacy:{userIdHash:!0,userAgentSalt:!1},userIdentTracking:!1,strictMode:!1,flushInterval:500,initProps:()=>({})},wfe=class{constructor(t,e,r){N(this,"rpc");N(this,"auth");N(this,"options");N(this,"enabled");N(this,"ident");N(this,"userId");N(this,"sessionId");N(this,"allowUserTracking");N(this,"projectId");N(this,"queue");N(this,"flushTimeout");N(this,"defaultProps");N(this,"previousPageKey");N(this,"ts");N(this,"flush",async()=>{if(this.flushTimeout!==null&&(clearTimeout(this.flushTimeout),this.flushTimeout=null),!this.enabled||this.options.noop||this.options.strictMode&&!this.allowUserTracking||this.queue.length===0)return;const t=this.dedupedQueue();this.queue=[];try{await this.rpc.tick({events:t})}catch(e){console.warn(`databeat flush failed: ${e}`)}});N(this,"dedupedQueue",()=>{const t=new Map;for(let e=0;ew3&&(this.queue=this.queue.splice(this.queue.length-w3)),this.enabled&&(e&&e.flush?await this.flush():this.flushTimeout===null&&(this.flushTimeout=setTimeout(()=>{this.flush()},this.options.flushInterval)))}trackView(t={}){const e={...this.defaultProps,...t},r=E3(),n=`${r}:${JSON.stringify(e)}:${this.userId}:${this.sessionId}`;this.previousPageKey!==n&&(this.previousPageKey=n,this.track({event:"VIEW",source:r,props:e}))}isEnabled(){return this.enabled}isAnon(){return this.ident===0}getIdent(){return this.ident}getUserId(){return this.userId}getSessionId(){return this.sessionId}getStorageTS(){if(this.ts)return this.ts;const t=V2();if(!(t==null||t.id===null))return this.ts=t.ts,this.ts}enable(){if(!pF(this.auth)){this.enabled=!1;return}Ki()&&(this.enabled=!0,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}),this.identify())}disable(){Ki()&&(this.enabled=!1,this.ts=Wl({on:this.enabled,id:this.userId,it:this.ident,ut:this.allowUserTracking}))}},Ki=()=>typeof window=="object"&&typeof window.localStorage=="object"&&typeof window.localStorage.getItem=="function"&&typeof window.localStorage.setItem=="function",C3=(t,e)=>{if(!pF(e))return!1;if(!Ki())return!0;const r=V2();return r===null?t??!0:r.on},pF=t=>{var e;return!!(((e=t==null?void 0:t.jwt)==null?void 0:e.length)>0||t!=null&&t.headers&&Object.keys(t.headers).length>0)},E3=()=>{try{return window.location.pathname}catch{return""}},Cfe=()=>{if(!Ki())return{};const t=new URL(window.location.href).searchParams,e={};return e.origin=window.location.origin,t.get("ref")&&t.get("ref")!==""&&(e.ref=t.get("ref")||""),t.get("source")&&t.get("source")!==""&&(e.source=t.get("source")||""),t.get("utm_source")&&t.get("utm_source")!==""&&(e.utmSource=t.get("utm_source")||""),t.get("utm_campaign")&&t.get("utm_campaign")!==""&&(e.utmCampaign=t.get("utm_campaign")||""),t.get("utm_medium")&&t.get("utm_medium")!==""&&(e.utmMedium=t.get("utm_medium")||""),t.get("utm_content")&&t.get("utm_content")!==""&&(e.utmContent=t.get("utm_content")||""),t.get("utm_term")&&t.get("utm_term")!==""&&(e.utmTerm=t.get("utm_term")||""),document.referrer&&document.referrer!==""&&(e.referrer=document.referrer),t.get("gclid")&&t.get("gclid")!==""&&(e.gclid=t.get("gclid")||""),e},Tv="_dbeat",V2=()=>{try{return JSON.parse(window.localStorage.getItem(Tv))}catch{return null}},Wl=t=>{try{return t.ts||(t.ts=Math.floor(Date.now()/1e3)),window.localStorage.setItem(Tv,JSON.stringify(t)),t.ts}catch{return}},Efe=(t,e,r)=>{if(!t||t===null||t==="")return{userId:`${Math.floor(Math.random()*1e14)}`,ident:0};if(r.userIdentTracking&&e)return{userId:t,ident:2};if(r.privacy.userIdHash===!0||!r.userIdentTracking||!e)return Ki()&&r.privacy.userAgentSalt===!0&&(t=t+":"+navigator.userAgent),r.privacy.extraSalt&&r.privacy.extraSalt.length>0&&(t=t+":"+r.privacy.extraSalt),{userId:zue(tfe(t)).substring(0,50),ident:1};throw new Error("invalid configuration")},kfe=()=>{if(Ki()&&typeof window.sessionStorage=="object"&&typeof window.sessionStorage.getItem=="function"&&typeof window.sessionStorage.setItem=="function"){const e=window.sessionStorage.getItem(Tv);if(e&&e.length>0)return e;{const r=k3(16);return window.sessionStorage.setItem(Tv,r),r}}else return k3(16)},k3=t=>{let e="";for(let r=0;r[Kr(t).slice(0,10),t]));function H2(t,e){const r=ye.transaction.fromTransactionish(t,e);ye.transaction.unwind(t,r).forEach(s=>Sfe(t,s))}function Sfe(t,e){if(e.to.toLowerCase()===t.toLowerCase()&&e.data){const r=Q(e.data);if(r.length>=4&&!Tfe(r))throw new Error("self calls are forbidden")}if(e.delegateCall)throw new Error("delegate calls are forbidden");if(e.data){const n=H(e.data).slice(0,10),s=Afe.get(n);if(s){const i=s.slice(0,s.indexOf("("));throw new Error(`${i} calls are forbidden`)}}}function Tfe(t){const e=new pt(Gt.mainModule.abi);try{return e.decodeFunctionData("createContract",t),!0}catch{return!1}}function er(){return er=Object.assign?Object.assign.bind():function(t){for(var e=1;e++Pfe;class O1{constructor(){var e=this;this.pendingMessageRequests=[],this.responseCallbacks=new Map,this.state=void 0,this.confirmationOnly=!1,this.events=new fm.EventEmitter2,this.openPayload=void 0,this.connectPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this._sessionId=void 0,this._init=void 0,this._registered=void 0,this.sendMessageRequest=async function(r){return new Promise((n,s)=>{(!r.idx||r.idx<=0)&&r.type!=="init"&&s(new Error("message idx not set"));const i=(a,c)=>{if(a)s(a);else if(c)n(c);else throw new Error("no valid response to return")},o=r.idx;e.responseCallbacks.get(o)?s(new Error("duplicate message idx, should never happen")):e.responseCallbacks.set(o,i),e.isOpened()?e.sendMessage(r):(Se.debug("pushing to pending requests",r),e.pendingMessageRequests.push(r))})},this.waitUntilOpened=async function(r=Mk){let n=!1;return Promise.race([new Promise((s,i)=>{const o=setTimeout(()=>{clearTimeout(o),n||(e.state=Kn.CLOSED,e.events.emit("close",{code:1005,message:"opening wallet timed out"})),i(new Error("opening wallet timed out"))},r)}),new Promise(s=>{if(e.isOpened()){var i;n=!0,s((i=e.openPayload)==null?void 0:i.session);return}e.events.once("open",o=>{e.openPayload=o,n=!0,s(o.session)})})])},this.waitUntilConnected=async function(){await e.waitUntilOpened();const r=new Promise(s=>{if(e.connectPayload){s(e.connectPayload);return}e.events.once("connect",i=>{e.connectPayload=i,s(i)})}),n=new Promise((s,i)=>{e.events.once("close",o=>{i(o?new Error(`wallet closed due to ${JSON.stringify(o)}`):new Error("user closed the wallet"))})});return Promise.race([r,n])},this.state=Kn.CLOSED,this._registered=!1,this._init=dt.NIL}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}openWallet(e,r,n){throw new Error("abstract method")}closeWallet(){throw new Error("abstract method")}isOpened(){return this.registered&&this.state===Kn.OPENED}isConnected(){var e;const r=(e=this.openPayload)==null?void 0:e.session;return this.registered&&r!==void 0&&!!r.accountAddress&&r.accountAddress.length===42&&!!r.networks&&r.networks.length>0}async request(e){return this.state===Kn.CLOSED&&(this.confirmationOnly=!0),this.openWallet(void 0,{type:"jsonRpcRequest",method:e.method},e.chainId),this.isOpened()||await this.waitUntilOpened(),(await this.sendMessageRequest({idx:mF(),type:Ue.MESSAGE,data:e,chainId:e.chainId,clientVersion:Ur})).data}handleMessage(e){var r=this;if(e.type===Ue.INIT){Se.debug("MessageProvider, received INIT message",e);const{nonce:c}=e.data;if(!c||c.length==0){Se.error("invalid init nonce");return}this._init=dt.OK,this.sendMessage({idx:-1,type:Ue.INIT,data:{sessionId:this._sessionId,nonce:c},clientVersion:Ur})}if(this._init!==dt.OK)return;Se.debug("RECEIVED MESSAGE FROM WALLET",e.idx,e);const n=e.idx,s=this.responseCallbacks.get(n);if(n&&this.responseCallbacks.delete(n),e.type===Ue.OPEN&&!this.isOpened()){var i,o;if(this._sessionId&&this._sessionId!==((i=e.data)==null?void 0:i.sessionId)){Se.debug("open event received from wallet, but does not match sessionId",this._sessionId);return}if((o=e.data)!=null&&o.error){var a;const c=new Error(`opening wallet failed: received ${(a=e.data)==null?void 0:a.error}`);throw Se.error(c),this.close(),c}this.state=Kn.OPENED,this.openPayload=e.data,this.events.emit("open",this.openPayload),this.pendingMessageRequests.length!==0&&this.pendingMessageRequests.splice(0,this.pendingMessageRequests.length).forEach(async function(l){r.sendMessage(l)});return}if(e.type===Ue.MESSAGE){if(this.confirmationOnly&&setTimeout(()=>{this.responseCallbacks.size===0&&this.closeWallet()},500),!s)throw new Error("impossible state");if(s){this.events.emit("message",e),s(e.data.error,e);return}}if(e.type===Ue.ACCOUNTS_CHANGED){this.accountsChangedPayload={accounts:[]},e.data&&e.data.length>0?(this.accountsChangedPayload={accounts:[Te(e.data[0])],origin:e.origin},this.events.emit("accountsChanged",this.accountsChangedPayload.accounts,this.accountsChangedPayload.origin)):this.events.emit("accountsChanged",[],e.origin);return}if(e.type===Ue.CHAIN_CHANGED){this.events.emit("chainChanged",e.data,e.origin);return}if(e.type===Ue.NETWORKS){this.networksPayload=e.data,this.events.emit("networks",this.networksPayload);return}if(e.type===Ue.WALLET_CONTEXT){this.walletContextPayload=e.data,this.events.emit("walletContext",this.walletContextPayload);return}e.type===Ue.CLOSE&&this.state!==Kn.CLOSED&&this.close(e.data),e.type===Ue.CONNECT&&(this.connectPayload=e.data,this.events.emit("connect",this.connectPayload)),e.type===Ue.DISCONNECT&&this.isConnected()&&(this.events.emit("disconnect",e.data,e.origin),this.close())}sendMessage(e){throw new Error("abstract method")}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}emit(e,...r){return this.events.emit(e,...r)}close(e){this.state!==Kn.CLOSED&&(this.state=Kn.CLOSED,this.confirmationOnly=!1,this._sessionId=void 0,Se.info("closing wallet and flushing!"),this.pendingMessageRequests.length=0,this.responseCallbacks.forEach(r=>{r(er({},new Error("wallet closed"),{code:4001}))}),this.responseCallbacks.clear(),this.connectPayload=void 0,this.openPayload=void 0,this.accountsChangedPayload=void 0,this.networksPayload=void 0,this.walletContextPayload=void 0,this.events.emit("close",e))}}function Ife(t){return Ofe.some(e=>e.predicate(t))}const Ofe=[{name:"Decentraland Exception",predicate:Nfe},{name:"0x v3 Exception",predicate:_fe}],Rfe=/^Decentraland Login\nEphemeral address: 0x[a-fA-F0-9]{40}\nExpiration: (\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)((-(\d{2}):(\d{2})|Z)?)$/;function Nfe(t){try{const e=Ms(t);return Rfe.test(e)}catch{return!1}}function _fe(t){const e=new pt(Mfe);try{return e.decodeFunctionData("OrderWithHash",t),!0}catch{return!1}}const Mfe=[{inputs:[{components:[{internalType:"address",name:"makerAddress",type:"address"},{internalType:"address",name:"takerAddress",type:"address"},{internalType:"address",name:"feeRecipientAddress",type:"address"},{internalType:"address",name:"senderAddress",type:"address"},{internalType:"uint256",name:"makerAssetAmount",type:"uint256"},{internalType:"uint256",name:"takerAssetAmount",type:"uint256"},{internalType:"uint256",name:"makerFee",type:"uint256"},{internalType:"uint256",name:"takerFee",type:"uint256"},{internalType:"uint256",name:"expirationTimeSeconds",type:"uint256"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes",name:"makerAssetData",type:"bytes"},{internalType:"bytes",name:"takerAssetData",type:"bytes"},{internalType:"bytes",name:"makerFeeAssetData",type:"bytes"},{internalType:"bytes",name:"takerFeeAssetData",type:"bytes"}],internalType:"struct IEIP1271Data.Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderWithHash",outputs:[],stateMutability:"pure",type:"function"}],hy=mt(`Ethereum Signed Message: +`),Dk=t=>gi(t)?Q(t):mt(t),dm=t=>{const e=Dk(t);return Ife(e)?e:Q(Le([hy,mt(String(e.length)),e]))},Dfe=t=>{if(JSON.stringify(t.slice(0,hy.length))!==JSON.stringify(hy))return t;const e=t.slice(hy.length),r=String(e.length).length;let n,s;try{s=Number(Ms(e.slice(0,r)))}catch{s=Number(H(e.slice(0,r)))}return s>e.length||!Number.isInteger(s)?n=r-1:n=r,e.slice(n)},od=async(t,e,r,n)=>new ye.reader.OnChainReader(n).isValidSignature(t,e,r),xF=async(t,e,r,n)=>{const s=dm(e),i=nk(s);return od(t,i,r,n)},bF=(t,e,r,n)=>od(t,Ed(e),r,n),Pv=()=>window.location.protocol==="chrome-extension:"||window.location.protocol==="moz-extension:",wF=()=>!!navigator.userAgent.match(/UnitySequence/i),CF=t=>t.onChain.deployed&&t.fullyMigrated;class EF{constructor(){this.callbacks=[],this.store={}}getItem(e){return this.store[e]||null}setItem(e,r){this.store[e]=r,this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){delete this.store[e]}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}class _0{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(this.callbacks=[],!_0.isAvailable())throw new Error("LocalStorage is not available");window.addEventListener("storage",e=>{const{key:r}=e;this.callbacks.filter(s=>s.key===r).forEach(s=>s.cb(this.getItem(r)))})}getItem(e){return window.localStorage.getItem(e)}setItem(e,r){window.localStorage.setItem(e,r),this.callbacks.filter(n=>n.key===e).forEach(n=>n.cb(r))}removeItem(e){window.localStorage.removeItem(e),this.callbacks.filter(r=>r.key===e).forEach(r=>r.cb(null))}onItemChange(e,r){return this.callbacks.push({key:e,cb:r}),()=>{this.callbacks=this.callbacks.filter(n=>n.cb!==r)}}}function Iv(){return _0.isAvailable()?new _0:new EF}async function kF(t){return Array.isArray(t)?Promise.all(t.map(e=>Pt(e))):Pt(t)}const A3="@sequence.transportSession";class R1{constructor(e){var r=this;this.walletRequestHandler=void 0,this._sessionId=void 0,this._registered=void 0,this._init=void 0,this._initNonce=void 0,this._initCallback=void 0,this.appOrigin=void 0,this.handleMessage=async function(n){const s=n;if(r._init!==dt.OK){if(s.type===Ue.INIT)if(r.isValidInitAck(n))r._initCallback&&r._initCallback();else{r._initCallback&&r._initCallback("invalid init");return}return}switch(s.type){case Ue.OPEN:{if(r._init!==dt.OK)return;const i={sessionId:s.data.sessionId,intent:s.data.intent,networkId:s.data.networkId};await r.open(i);return}case Ue.CLOSE:return r._init!==dt.OK,void 0;case Ue.MESSAGE:{const i=await r.walletRequestHandler.sendMessageRequest(s);r.sendMessage(i),i.data.error;return}default:Se.error(`unexpected payload type ${s.type}`)}},this.sendMessageRequest=async function(n){return r.walletRequestHandler.sendMessageRequest(n)},this.open=async function({sessionId:n,intent:s,networkId:i}){n&&(r._sessionId=xM(n),r.saveTransportSession({sessionId:n,intent:s,networkId:i})),r.walletRequestHandler.setOpenIntent(s),await r.init();let o;try{if(i){const a=sk(i);if(a)o=a.chainId;else throw new Error(`unknown network ${i}`)}else o=r.walletRequestHandler.defaultChainId()}catch(a){console.error(a)}if(s&&s.type==="connect"&&s.options){const a=s.options,c=a;if(r.appOrigin&&c!=null&&c.origin){if(!Pv()&&c.origin!==r.appOrigin)throw new Error("origin is invalid")}else!r.appOrigin&&c!=null&&c.origin?a.origin=wM(c.origin):r.appOrigin&&(a.origin=r.appOrigin);a.app&&(a.app=bM(a.app)),a.networkId?i=a.networkId:i&&(a.networkId=i),r.walletRequestHandler.setConnectOptions(a)}else r.walletRequestHandler.setConnectOptions(void 0);if(await r.walletRequestHandler.getAccount(),await r.walletRequestHandler.isSignedIn())if(s&&s.type==="connect"){(!o||o<=0)&&console.log("Failed to set default network on open"),r.notifyOpen({sessionId:r._sessionId});try{const a=await r.walletRequestHandler.promptConnect(s.options);a.connected&&r.walletRequestHandler.notifyConnect(a)}catch(a){Se.warn("promptConnect not connected:",a)}finally{(!s.options||s.options.keepWalletOpened!==!0)&&r.notifyClose()}}else{if(!o||o<=0)return r.notifyOpen({sessionId:r._sessionId,error:`failed to open wallet on network ${i}`}),!1;r.notifyOpen({sessionId:r._sessionId,chainId:`${o}`,session:await r.walletRequestHandler.walletSession(o)})}else return r.notifyOpen({sessionId:r._sessionId}),!0;return!0},this.saveTransportSession=n=>{Iv().setItem(A3,JSON.stringify(n))},this.getCachedTransportSession=async function(){const n=Iv().getItem(A3);try{return n?JSON.parse(n):null}catch{return console.error(`unable to parse transport session: ${n}`),null}},this.walletRequestHandler=e,this._init=dt.NIL,this.walletRequestHandler.on("connect",n=>{this.registered&&this.notifyConnect(n)}),this.walletRequestHandler.on("disconnect",(n,s)=>{this.registered&&this.notifyDisconnect(n,s)}),this.walletRequestHandler.on("accountsChanged",(n,s)=>{this.registered&&this.notifyAccountsChanged(n,s)}),this.walletRequestHandler.on("networks",n=>{this.registered&&(this.notifyNetworks(n),!n||n.length===0?this.notifyChainChanged("0x0"):this.notifyChainChanged(pr(n.find(s=>s.isDefaultChain).chainId)))}),this.walletRequestHandler.on("chainChanged",(n,s)=>{this.notifyChainChanged(n,s)}),this.walletRequestHandler.on("walletContext",n=>{!this.registered||!n||this.notifyWalletContext(n)}),this.walletRequestHandler.on("close",n=>{this.registered&&this.notifyClose(n)})}get registered(){return this._registered}register(){throw new Error("abstract method")}unregister(){throw new Error("abstract method")}request(e){throw new Error("abstract method")}sendMessage(e){throw new Error("abstract method")}notifyOpen(e){const{chainId:r,sessionId:n,session:s,error:i}=e;this.sendMessage({idx:-1,type:Ue.OPEN,data:{chainId:r,sessionId:n,session:s,error:i},clientVersion:Ur})}notifyClose(e){this.sendMessage({idx:-1,type:Ue.CLOSE,data:e?{error:e}:null,clientVersion:Ur})}notifyConnect(e){this.sendMessage({idx:-1,type:Ue.CONNECT,data:e,clientVersion:Ur})}notifyDisconnect(e,r){this.sendMessage({idx:-1,type:Ue.DISCONNECT,data:e?{error:e}:null,origin:r,clientVersion:Ur})}notifyAccountsChanged(e,r){this.sendMessage({idx:-1,type:Ue.ACCOUNTS_CHANGED,data:e,origin:r,clientVersion:Ur})}notifyChainChanged(e,r){this.sendMessage({idx:-1,type:Ue.CHAIN_CHANGED,data:e,origin:r,clientVersion:Ur})}notifyNetworks(e){this.sendMessage({idx:-1,type:Ue.NETWORKS,data:e,clientVersion:Ur})}notifyWalletContext(e){this.sendMessage({idx:-1,type:Ue.WALLET_CONTEXT,data:e,clientVersion:Ur})}isValidInitAck(e){if(this._init===dt.OK)return Se.warn("isValidInitAck, already in init'd state, so inquiry is invalid."),!1;if(e.type!==Ue.INIT)return Se.warn("isValidInitAck, invalid message type, expecting init"),!1;const{sessionId:r,nonce:n}=e.data;return!r||r.length===0||!n||n.length===0?(Se.error("invalid init ack"),!1):r!==this._sessionId||n!==this._initNonce?(Se.error("invalid init ack match"),!1):!0}init(){return new Promise((e,r)=>{if(this._init===dt.OK){e();return}if(this._init!==dt.NIL||this._initCallback){r("transport init is in progress");return}const n=setTimeout(()=>{Se.warn("transport init timed out"),this._initCallback&&this._initCallback("transport init timed out")},Mk/2);this._initCallback=s=>{this._initCallback=void 0,clearTimeout(n),s?r(s):(this._init=dt.OK,e())},this._initNonce=`${performance.now()}`,this.sendMessage({idx:-1,type:Ue.INIT,data:{nonce:this._initNonce},clientVersion:Ur}),this._init=dt.SENT_NONCE})}}class Bfe{constructor(){this.app=void 0,this.wallet=void 0;const e=new z2,r=new z2;e.conn=r,r.conn=e,this.app=e,this.wallet=r}}class z2{constructor(){this.conn=void 0,this.events=new fm.EventEmitter2,this.handleMessage=e=>{throw new Error("ProxyMessageChannelPort is not registered")},this.sendMessage=e=>{this.conn.handleMessage(e),e.type==="open"&&this.events.emit("open",e),e.type==="close"&&this.events.emit("close",e),e.type==="connect"&&this.events.emit("connect",e),e.type==="disconnect"&&this.events.emit("disconnect",e)}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}}class AF extends O1{constructor(e){if(super(),this.port=void 0,this.register=()=>{this.port.handleMessage=r=>{this.handleMessage(r)},this.on("open",(...r)=>{this.port.events.emit("open",...r)}),this.on("close",(...r)=>{this.port.events.emit("close",...r)}),this.on("connect",(...r)=>{this.port.events.emit("connect",...r)}),this.on("disconnect",(...r)=>{this.port.events.emit("disconnect",...r)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),this.events.removeAllListeners(),this.port.handleMessage=void 0},this.openWallet=(r,n,s)=>{if(this.state===Kn.CLOSED){this.state=Kn.OPENING;const i=`${performance.now()}`;this._sessionId=i,this.sendMessage({idx:-1,type:Ue.OPEN,data:{path:r,intent:n,networkId:s,sessionId:i},clientVersion:Ur})}},this.state=Kn.CLOSED,this.port=e,!e)throw new Error("port argument cannot be empty");this._init=dt.OK}closeWallet(){this.sendMessage({idx:-1,type:Ue.CLOSE,data:null,clientVersion:Ur}),this.close()}sendMessage(e){if(!e.idx)throw new Error("message idx is empty");this.port.sendMessage(e)}}class Lfe extends R1{constructor(e,r){super(e),this.port=void 0,this.port=r,this._init=dt.OK}register(){this.port.handleMessage=e=>{this.handleMessage(e)},this._registered=!0}async restoreSession(){const e=await this.getCachedTransportSession();e&&this.open(e)}unregister(){this.port.handleMessage=void 0,this._registered=!1}sendMessage(e){this.port.sendMessage(e)}}function SF(t){var e;if((e=window.ue)!=null&&e.sequencewallettransport&&!window.logsOverriddenForUnreal){var r;const n=(r=window.ue)==null?void 0:r.sequencewallettransport;console.log=(...s)=>{n.logfromjs(`${t}: ${Kx(s)}`)},console.warn=(...s)=>{n.warnfromjs(`${t}: ${Kx(s)}`)},console.error=(...s)=>{n.errorfromjs(`${t}: ${Kx(s)}`)},window.logsOverriddenForUnreal=!0}}function Kx(t){return t.map(e=>typeof e=="object"?e instanceof Error?e.message:JSON.stringify(e):String(e)).join(" ")}let Vl;class TF extends O1{constructor(e){super(),this.walletURL=void 0,this.register=()=>{var r;SF("dapp"),Vl&&(Vl.unregister(),Vl=this),(r=window.ue)!=null&&r.sequencewallettransport&&(window.ue.sequencewallettransport.onmessagefromwallet=this.onUnrealCallback),Vl=this,this._registered=!0,console.log("registering transport!")},this.unregister=()=>{var r;this._registered=!1,this.closeWallet(),Vl===this&&(Vl=void 0),((r=window.ue)==null||(r=r.sequencewallettransport)==null?void 0:r.onmessagefromwallet)===this.onUnrealCallback&&delete window.ue.sequencewallettransport.onmessagefromwallet,this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.isOpened()){console.log("wallet already open!");return}console.log("opening wallet!");const i=new URL(this.walletURL.href),o=new I1;r&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&o.set("intent",tk(n)),s&&o.set("net",`${s}`),i.search=o.toString(),console.log("opening wallet to",i.href),window.open(i.href)},this.onUnrealCallback=r=>{if(!r)throw new Error("ProviderMessage object is empty");this.handleMessage(r)},this.walletURL=new URL(e)}closeWallet(){this.close()}sendMessage(e){var r;const n=typeof e!="string"?JSON.stringify(e):e;console.log("Sending message to wallet:",n),(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetowallet(n)}}class jfe extends R1{constructor(e){super(e),this.onMessageFromUnreal=r=>{Se.debug("RECEIVED MESSAGE",r),this.handleMessage(r)},this.getUnrealTransportSession=r=>{const n=new I1(r);return{sessionId:n.get("sid"),networkId:n.get("net"),intent:rk(n.get("intent"))}},this._init=dt.NIL}async register(e){var r;if(((r=window.ue)==null?void 0:r.sequencewallettransport)===void 0)return;SF("wallet");const{search:n}=new URL(e||window.location.href);let s=this.getUnrealTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("unreal session is undefined");return}window.ue.sequencewallettransport.onmessagefromsequencejs=this.onMessageFromUnreal,this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){var e;((e=window.ue)==null||(e=e.sequencewallettransport)==null?void 0:e.onmessagefromsequencejs)===this.onMessageFromUnreal&&delete window.ue.sequencewallettransport.onmessagefromsequencejs,this._registered=!1}sendMessage(e){var r;if(e.type!==Ue.INIT&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}const n=JSON.stringify(e);(r=window.ue)==null||(r=r.sequencewallettransport)==null||r.sendmessagetosequencejs(n)}}const Bk="sequence-extension-message-handler";class Ffe extends R1{constructor(e,r){super(e),this.runtime=r,this.port=void 0,this._init=dt.OK}register(){this._registered=!0,this.port=this.runtime.connect({name:Bk})}sendMessage(e){Se.info("[ExtensionMessageHandler send]",e),this.port.postMessage(e)}}class PF extends O1{constructor(e){super(),this.register=()=>{this._registered=!0},e.onConnect.addListener(r=>{r.name===Bk&&(this._init=dt.OK,r.onMessage.addListener(n=>{this.handleMessage(n)}))})}sendMessage(e){}unregister(){}openWallet(e,r,n){}closeWallet(){}}class Ufe extends fm.EventEmitter2{constructor(e){var r;super(),r=this,this.stream=e,this.responseCallbacks=new Map,this._messageIdx=0,this.nextMessageIdx=()=>++this._messageIdx,this.handleMessage=n=>{if(!n.type||!n.data)return;Se.info("[received message]",n);const s=n.idx,i=this.responseCallbacks.get(s);switch(s&&this.responseCallbacks.delete(s),n.type){case Ue.MESSAGE:if(i)this.emit(Ue.MESSAGE,n),i(n.data.error,n);else throw new Error("impossible state");break;case Ue.DISCONNECT:case Ue.ACCOUNTS_CHANGED:case Ue.CHAIN_CHANGED:this.emit(n.type,n.data);break;default:console.error("unknown message type",n);break}},this.sendMessageRequest=async function(n){return new Promise((s,i)=>{(!n.idx||n.idx<=0)&&i(new Error("message idx not set"));const o=(c,l)=>{if(c)i(c);else if(l)s(l);else throw new Error("no valid response to return")},{idx:a}=n;r.responseCallbacks.get(a)?i(new Error("duplicate message idx, should never happen")):r.responseCallbacks.set(a,o),r.sendMessage(n)})},this.stream.on("data",this.handleMessage)}sendMessage(e){this.stream.writable||console.error("window post message stream is not writable"),this.stream.write(e)}}let Hl;class IF extends O1{constructor(e){super(),this.walletURL=void 0,this.walletWindow=void 0,this.register=()=>{Hl&&(Hl.unregister(),Hl=this),window.addEventListener("message",this.onWindowEvent),Hl=this,this.on("open",()=>{const r=this.walletWindow,n=setInterval(()=>{r&&r.closed&&(clearInterval(n),this.close())},500)}),this.on("close",()=>{this.walletWindow&&(this.walletWindow.close(),this.walletWindow=null)}),this._registered=!0},this.unregister=()=>{this._registered=!1,this.closeWallet(),Hl===this&&(Hl=void 0),window.removeEventListener("message",this.onWindowEvent),this.events.removeAllListeners()},this.openWallet=(r,n,s)=>{if(this.walletWindow&&this.isOpened()){this.walletWindow.focus();return}const i=new URL(this.walletURL.href),o=new I1;r&&r!==""&&(i.pathname=r.toLowerCase()),this._init=dt.NIL,this._sessionId=`${performance.now()}`,o.set("sid",this._sessionId),n&&(n.type==="connect"&&(n.options||(n.options={app:window.location.origin}),!Pv()&&!wF()&&n.options&&(n.options.origin=window.location.origin)),o.set("intent",tk(n))),s&&o.set("net",`${s}`);let a,c;Pv()?(a=[450,750],c=[Math.abs(window.screen.width/2-a[0]/2),Math.abs(window.screen.height/2-a[1]/2)]):(a=[450,750],c=[Math.abs(window.screenX+window.innerWidth/2-a[0]/2),Math.abs(window.screenY+window.innerHeight/2-a[1]/2)]);const l=`toolbar=0,location=0,menubar=0,scrollbars=yes,status=yes,width=${a[0]},height=${a[1]},left=${c[0]},top=${c[1]}`;i.search=o.toString(),this.walletWindow=window.open(i.href,"sequence.app",l)},this.onWindowEvent=r=>{if(r.origin!==this.walletURL.origin)return;let n;try{n=JSON.parse(r.data)}catch{return}if(!n)throw new Error("ProviderMessage object is empty");this.handleMessage(n)},this.walletURL=new URL(e)}closeWallet(){var e;this.close(),(e=this.walletWindow)==null||e.close()}sendMessage(e){if(!this.walletWindow){Se.warn("WindowMessageProvider: sendMessage failed as walletWindow is unavailable");return}const r=typeof e!="string"?JSON.stringify(e):e;this.walletWindow.postMessage(r,this.walletURL.origin)}}class $fe extends R1{constructor(e){var r;super(e),r=this,this.parentWindow=void 0,this._isPopup=!1,this.onWindowEvent=async function(n){if(!n.origin||n.origin===""||r.appOrigin&&n.origin!==r.appOrigin)return;let s;try{s=JSON.parse(n.data,(i,o)=>Wfe(o)?BigInt(o.hex):o)}catch{return}if(Se.debug("RECEIVED MESSAGE",s),r._init!==dt.OK&&r.isValidInitAck(s)&&(r.appOrigin=n.origin),r._init===dt.OK&&(!r.appOrigin||r.appOrigin.length<8)){Se.error("impossible state, init.OK and appOrigin required");return}r.handleMessage(s)},this.getWindowTransportSession=n=>{const s=new I1(n);return{sessionId:s.get("sid"),networkId:s.get("net"),intent:rk(s.get("intent"))}},this._init=dt.NIL}async register(e){const r=parent.window.opener!==null;if(this._isPopup=r,r!==!0)return;const{search:n}=new URL(e||window.location.href);let s=this.getWindowTransportSession(n);if(!!s.sessionId||(s=await this.getCachedTransportSession()),!s){Se.error("window session is undefined");return}this.parentWindow=parent.window.opener,window.addEventListener("message",this.onWindowEvent,!1),this._registered=!0,this.open(s).then(o=>{if(!o){var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}`;Se.error(c),this.notifyClose({message:c}),window.close()}}).catch(o=>{var a;const c=`failed to open to network ${(a=s)==null?void 0:a.networkId}, due to: ${o}`;Se.error(c),this.notifyClose({message:c}),window.close()})}unregister(){window.removeEventListener("message",this.onWindowEvent),this._registered=!1}sendMessage(e){const r=JSON.stringify(e);e.type===Ue.INIT?this.postMessage(r,!0):this.postMessage(r)}get isPopup(){return this._isPopup}postMessage(e,r=!1){if(r!==!0&&this._init!==dt.OK){Se.error("impossible state, should not be calling postMessage until inited");return}r?this.parentWindow.postMessage(e,"*"):this.appOrigin&&this.appOrigin.length>4?this.parentWindow.postMessage(e,this.appOrigin):Se.error("unable to postMessage as parentOrigin is invalid")}}const Wfe=t=>typeof t=="object"&&t.type==="BigNumber"&&et(t.hex);function OF(t){return t&&typeof t=="object"&&(t.windowTransport&&typeof t.windowTransport=="object"||t.proxyTransport&&typeof t.proxyTransport=="object"||t.extensionTransport&&typeof t.extensionTransport=="object"||t.unrealTransport&&typeof t.unrealTransport=="object")&&(t.windowTransport&&t.windowTransport.enabled||t.proxyTransport&&t.proxyTransport.enabled||t.extensionTransport&&t.extensionTransport.enabled||t.unrealTransport&&t.unrealTransport.enabled)}class hm{constructor(...e){var r=this;this.messageProviders=void 0,this.provider=void 0,this.register=()=>{if(this.messageProviders.length===1){this.provider=this.messageProviders[0],this.provider.register();return}this.messageProviders.forEach(n=>{n.register(),n.once("open",()=>{this.provider||(this.provider=n,this.messageProviders.forEach(s=>{this.provider!==s&&s.unregister()}))})})},this.unregister=()=>{this.messageProviders.forEach(n=>n.unregister()),this.provider=void 0},this.openWallet=(n,s,i)=>{if(this.provider){this.provider.openWallet(n,s,i);return}this.messageProviders.forEach(o=>o.openWallet(n,s,i))},this.sendMessageRequest=async function(n){if(r.provider)return r.provider.sendMessageRequest(n);throw new Error("impossible state, wallet must be opened first")},this.waitUntilOpened=async function(){return r.provider?r.provider.waitUntilOpened():Promise.race(r.messageProviders.map(n=>n.waitUntilOpened()))},this.waitUntilConnected=async function(){if(r.provider)return r.provider.waitUntilConnected();throw new Error("impossible state, wallet must be opened first")},this.messageProviders=e,this.provider=void 0}static new(e){var r,n,s,i;const o=new hm;if((r=e.windowTransport)!=null&&r.enabled&&typeof window=="object"&&e.walletAppURL){const a=new IF(e.walletAppURL);o.add(a)}if((n=e.proxyTransport)!=null&&n.enabled){const a=new AF(e.proxyTransport.appPort);o.add(a)}if((s=e.extensionTransport)!=null&&s.enabled){const a=new PF(e.extensionTransport.runtime);o.add(a)}if((i=e.unrealTransport)!=null&&i.enabled&&e.windowTransport&&e.walletAppURL){const a=new TF(e.walletAppURL);o.add(a)}return o.register(),o}add(...e){this.messageProviders.push(...e)}closeWallet(){this.provider&&this.provider.closeWallet()}isOpened(){return this.provider?this.provider.isOpened():!1}isConnected(){return this.provider?this.provider.isConnected():!1}on(e,r){if(this.provider){this.provider.on(e,r);return}this.messageProviders.forEach(n=>{n.on(e,r)})}once(e,r){if(this.provider){this.provider.once(e,r);return}this.messageProviders.forEach(n=>{n.once(e,r)})}emit(e,...r){if(this.provider)return this.provider.emit(e,...r);for(let n=0;n({connected:!1})),a=o;return a.connected&&!a.session&&(a.session=await s.walletSession(i==null?void 0:i.networkId)),o},this.isSignedIn=async function(){return await s.signerReady(),!!s.account},this.getAccount=async function(){if(await s.signerReady(),s.account===void 0)throw new Error("signerReady failed resolve");return s.account},this.account=e,this.prompter=r,this.networks=n}defaultChainId(){var e,r;return(e=(r=this.prompter)==null?void 0:r.getDefaultChainId())!=null?e:this.networks[0].chainId}async signIn(e,r={}){this.setAccount(e);const{connect:n,defaultNetworkId:s}=r;if(n){const a=this._connectOptions;let c;if(this.prompter!==null){var i;c=await((i=this.prompter)==null?void 0:i.promptSignInConnect(a))}else c=await this.connect(a);this.notifyConnect(c),(!a||a.keepWalletOpened!==!0)&&this.notifyClose()}if(s&&this.defaultChainId()!==s){var o;await((o=this.prompter)==null?void 0:o.promptChangeNetwork(s))}}signOut(){this.account&&this.notifyDisconnect(),this.setAccount(null)}signerReset(){this.account=void 0}signerReady(e=zfe){return new Promise((r,n)=>{this.account!==void 0?r():(setTimeout(()=>{this.account===void 0&&(this.signerReadyCallbacks=[],n("signerReady timed out"))},e),this.signerReadyCallbacks.push(r))})}async connect(e){var r,n;if(!this.account)return{connected:!1,chainId:"0x0",error:"unable to connect without signed in account"};const s=(r=(n=e==null?void 0:e.networkId)!=null?n:this.defaultChainId())!=null?r:L.MAINNET,i=sk(s).chainId,o={connected:!0,chainId:pr(i)};if(e&&e.authorize){const a={app:e.app,origin:e.origin,expiry:e.expiry,nonce:e.authorizeNonce};try{o.proof=await xj(this.account,i,a)}catch(c){return Se.warn(`connect, signAuthorization failed for options: ${JSON.stringify(e)}, due to: ${c.message}`),{connected:!1,chainId:"0x0",error:`signAuthorization failed: ${c.message}`}}}return o.session=this.walletSession(i),o}async sendMessageRequest(e){var r;const s=Number(((r=e.clientVersion)==null?void 0:r.split(".")[0])||"0")<2,i={id:e.data.id,jsonrpc:"2.0",result:null,error:void 0};try{const o=await this.request({method:e.data.method,params:e.data.params,chainId:e.chainId});return er({},e,{data:s?er({},i,{result:o}):o})}catch(o){return er({},e,{data:s?er({},i,{error:o}):o})}}async request(e){await this.getAccount();try{var r,n;if((!this.account||this.account===null)&&!qfe.includes(e.method))throw gF;const l=this.account;if(!l)throw new Error("WalletRequestHandler: wallet account is not configured");const u=(r=this.account)==null?void 0:r.providerFor((n=e.chainId)!=null?n:this.defaultChainId());if(!u)throw new Error(`WalletRequestHandler: wallet provider is not configured for chainId ${e.chainId}`);const f=u instanceof zt?u:void 0;switch(e.method){case"net_version":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("net_version",[])}case"eth_chainId":{if(!f)throw new Error("Account provider doesn't support send method");return await f.send("eth_chainId",[])}case"eth_accounts":return[l.address];case"eth_getBalance":{const[d,h]=e.params,y=await u.getBalance(d,h);return Zc(y)}case"sequence_sign":case"personal_sign":case"eth_sign":{let d;switch(e.method){case"sequence_sign":case"personal_sign":{const[b,v]=e.params;d=b;break}case"eth_sign":{const[b,v]=e.params;d=v;break}}let h="";const y=dm(d),p=e.method==="sequence_sign";if(this.prompter===null){var s;h=await l.signMessage(y,(s=e.chainId)!=null?s:this.defaultChainId(),p?"eip6492":"ignore")}else h=await this.prompter.promptSignMessage({chainId:e.chainId,message:Q(y),eip6492:p},this.connectOptions);if(h&&h.length>0)return h;throw new Error("declined by user")}case"sequence_signTypedData_v4":case"eth_signTypedData":case"eth_signTypedData_v4":{const[d,h]=e.params;let y;if(typeof h=="string")try{y=JSON.parse(h)}catch(v){console.warn("walletRequestHandler: error parsing typedData",v)}else y=h;if(!y||!y.domain||!y.types||!y.message)throw new Error("invalid typedData object");let p="";const b=e.method==="sequence_signTypedData_v4";if(this.prompter===null){var i;p=await l.signTypedData(y.domain,y.types,y.message,(i=e.chainId)!=null?i:this.defaultChainId(),b?"eip6492":"ignore")}else p=await this.prompter.promptSignMessage({chainId:e.chainId,typedData:y,eip6492:b},this.connectOptions);if(p&&p.length>0)return p;throw new Error("declined by user")}case"eth_sendTransaction":{const d=Hfe(e.params[0]).map(y=>("gas"in y&&y.gasLimit===void 0&&(y.gasLimit=y.gas,delete y.gas),y));H2(l.address,d);let h="";if(this.prompter===null){var o,a;const y=await l.sendTransaction(d,(o=e.chainId)!=null?o:this.defaultChainId());h=(a=y==null?void 0:y.hash)!=null?a:""}else h=await this.prompter.promptSendTransaction(d,e.chainId,this.connectOptions);if(h)return h;throw new Error("declined by user")}case"eth_signTransaction":{const[d]=e.params;if(Te(d.from)!==l.address)throw new Error("sender address does not match wallet");if(H2(l.address,d),this.prompter===null){var c;return await l.signTransactions(d,(c=e.chainId)!=null?c:this.defaultChainId())}else return await this.prompter.promptSignTransaction(d,e.chainId,this.connectOptions)}case"eth_sendRawTransaction":if(ye.transaction.isSignedTransactionBundle(e.params[0])){const d=Number(e.params[0].chainId);return(await l.relayer(d).relay(e.params[0])).hash}else return(await u.broadcastTransaction(e.params[0])).hash;case"eth_getTransactionCount":{const d=Te(e.params[0]),h=e.params[1],y=await u.getTransactionCount(d,h);return Zc(BigInt(y))}case"eth_blockNumber":return await u.getBlockNumber();case"eth_getBlockByNumber":return await u.getBlock(e.params[0]);case"eth_getBlockByHash":return await u.getBlock(e.params[0]);case"eth_getTransactionByHash":return await u.getTransaction(e.params[0]);case"eth_call":{const[d,h]=e.params;return await u.call(er({},d,{blockTag:h}))}case"eth_getCode":{const[d,h]=e.params;return await u.getCode(d,h)}case"eth_estimateGas":{const[d]=e.params;return await u.estimateGas(d)}case"eth_gasPrice":{const d=await u.getFeeData();return d.gasPrice===null?null:Zc(d.gasPrice)}case"wallet_switchEthereumChain":{const[d]=e.params;if(!d.chainId||d.chainId.length===0)throw new Error("invalid chainId");const h=BigInt(d.chainId);return this.setDefaultChainId(Number(h)),null}case"sequence_getWalletContext":return l.contexts;case"sequence_getWalletConfig":{const[d]=e.params;return d?[(await l.status(d)).onChain.config]:await Promise.all(l.networks.map(async function(h){return(await l.status(h.chainId)).onChain.config}))}case"sequence_getWalletState":{const[d]=e.params;return d?[S3(d,await l.status(d))]:await Promise.all(l.networks.map(async function(h){const y=await l.status(h.chainId);return S3(h.chainId,y)}))}case"sequence_getNetworks":return await this.getNetworks(!0);case"sequence_isSequence":return!0;case"sequence_updateConfig":throw new Error("sequence_updateConfig method is not allowed from a dapp");case"sequence_publishConfig":throw new Error("sequence_publishConfig method is not allowed from a dapp");case"sequence_gasRefundOptions":break;case"sequence_getNonce":break;case"sequence_relay":break;case"sequence_setDefaultNetwork":{const[d]=e.params;if(!d)throw new Error("invalid request, method argument defaultChainId cannot be empty");return this.setDefaultChainId(d),await this.getNetworks(!0)}default:{if(!f)throw new Error("Account provider doesn't support send method");return await f.send(e.method,e.params)}}}catch(l){throw Se.error(l),{message:l==null?void 0:l.message,code:4001}}}on(e,r){this.events.on(e,r)}once(e,r){this.events.once(e,r)}async getAddress(){var e,r;return(e=(r=this.account)==null?void 0:r.address)!=null?e:""}get openIntent(){return this._openIntent}setOpenIntent(e){this._openIntent=e}get connectOptions(){return this._connectOptions}setConnectOptions(e){var r;this._connectOptions=e,(r=this.onConnectOptionsChange)==null||r.call(this,e)}async setDefaultChainId(e){var r;return await((r=this.prompter)==null?void 0:r.promptChangeNetwork(e)),this.defaultChainId()}async getNetworks(e){return this.account?e?this.account.networks.map(r=>{const n=er({},r);return n.provider=void 0,n.relayer=void 0,n}):this.account.networks:(Se.warn("signer not set: getNetworks is returning an empty list"),[])}walletSession(e){if(!this.account)return;const r={walletContext:this.account.contexts,accountAddress:this.account.address,networks:this.account.networks.map(s=>er({},s,{provider:void 0,relayer:void 0}))};if(e){const s=Rs(r.networks,e);if(s){var n;(n=r.networks)==null||n.forEach(i=>delete i.isDefaultChain),s.isDefaultChain=!0}}return r}notifyConnect(e,r){var n;if(console.log("emit connect",e),this.events.emit("connect",e),(n=e.session)!=null&&n.accountAddress){var s;this.events.emit("accountsChanged",[(s=e.session)==null?void 0:s.accountAddress],r)}}notifyDisconnect(e){this.events.emit("accountsChanged",[],e),this.events.emit("disconnect",void 0,e)}notifyChainChanged(e,r){this.events.emit("chainChanged",pr(e),r)}async notifyNetworks(e){const r=e||await this.getNetworks(!0);if(this.events.emit("networks",r),r.length>0){const n=r.find(s=>s.chainId===this.defaultChainId());n&&this.events.emit("chainChanged",pr(n.chainId))}else this.events.emit("chainChanged","0x0")}async notifyWalletContext(){if(!this.account){Se.warn("signer not set: skipping to notify wallet context");return}const e=this.account.contexts;this.events.emit("walletContext",e)}notifyClose(e){this.events.emit("close",e)}setAccount(e){if(this.account=e,e!==void 0){for(let r=0;rc.canOnchainValidate||c.original.version===2&&n,o=await r.status(s);if(i(o))return!0;if(await e.promptConfirmWalletDeploy(s,this.connectOptions)){const c=await r.status(s);return i(c)?!0:(Se.error("WalletRequestHandler: result for promptConfirmWalletDeploy is not correct"),!1)}return!1}}function S3(t,e){return{context:e.original.context,config:e.onChain.config,address:ye.context.addressOf(e.original.context,e.original.imageHash),chainId:t,deployed:e.onChain.deployed,imageHash:e.imageHash,lastImageHash:e.onChain.imageHash,published:!0,status:e}}const qfe=["net_version","eth_chainId","eth_getBalance","eth_getTransactionCount","eth_blockNumber","eth_getBlockByNumber","eth_getBlockByHash","eth_getTransactionByHash","eth_getCode","eth_estimateGas","eth_gasPrice","sequence_getWalletContext","sequence_getNetworks","sequence_setDefaultNetwork"];function Kfe(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i=0)&&(r[s]=t[s]);return r}class Ad{get utils(){return this.provider.utils}constructor(e,r){this.client=e,this.provider=r,this.singleNetworkSigners={},this._isSequenceSigner=!0}async getAddress(){return this.client.getAddress()}connect(e){if(!Sd.is(e))throw new Error("SequenceSigner can only be connected to a SequenceProvider");return new Ad(this.client,e)}getSigner(e){if(!e)return this;const r=this.provider.toChainId(e);return this.singleNetworkSigners[r]||(this.singleNetworkSigners[r]=new Lk(this.client,this.provider,r)),this.singleNetworkSigners[r]}useChainId(e){return this.provider.toChainId(e)||this.client.getChainId()}async signMessage(e,r){const{eip6492:n=!0}=r||{},s=this.useChainId(r==null?void 0:r.chainId);return this.client.signMessage(e,{eip6492:n,chainId:s})}async signTypedData(e,r,n,s){const{eip6492:i=!0}=s||{},o=this.useChainId(s==null?void 0:s.chainId);return this.client.signTypedData({domain:e,types:r,message:n},{eip6492:i,chainId:o})}getProvider(e){return this.provider.getProvider(e)}async sendTransaction(e,r){const n=this.useChainId(r==null?void 0:r.chainId),s=await kF(e),i=await this.client.sendTransaction(s,{chainId:n}),o=this.getProvider(n);try{return await new Promise(c=>{(async function u(){const f=await o.getTransaction(i);if(f!==null)return c(f);await o.once("block",u)})()})}catch(a){throw a.transactionHash=i,a}}async getWalletConfig(e){const r=this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}getNetworks(){return this.client.getNetworks()}async getBalance(e,r){return this.getProvider(r==null?void 0:r.chainId).getBalance(this.getAddress(),e)}async estimateGas(e,r){return this.getProvider(r==null?void 0:r.chainId).estimateGas(e)}async call(e,r){return this.getProvider(r==null?void 0:r.chainId).call(e)}getChainId(){return Promise.resolve(this.client.getChainId())}async getFeeData(e){return this.getProvider(e==null?void 0:e.chainId).getFeeData()}async resolveName(e){const r=await this.provider.resolveName(e);if(r===null)throw new Error(`ENS name not found: ${e}`);return r}_checkProvider(e){}getNonce(e){throw new Error("SequenceSigner does not support getNonce")}populateCall(e){throw new Error("SequenceSigner does not support populateCall")}populateTransaction(e){throw new Error("SequenceSigner does not support populateTransaction")}checkTransaction(e){throw new Error("SequenceSigner does not support checkTransaction")}getTransactionCount(e){throw new Error("SequenceSigner does not support getTransactionCount")}signTransaction(e){throw new Error("SequenceWallet does not support signTransaction, use sendTransaction instead.")}static is(e){return e&&typeof e=="object"&&e._isSequenceSigner===!0}}class Lk extends Ad{constructor(e,r,n){super(e,r.getProvider(n)),this.chainId=n,this._isSingleNetworkSequenceSigner=!0}_useChainId(e){const r=this.provider.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This signer only supports the network ${this.chainId}, but ${r} was requested.`);return r||this.provider.toChainId(this.chainId)}useChainId(e){return this._useChainId(e)}getChainId(){return Promise.resolve(this.provider.toChainId(this.chainId))}getProvider(e){return super.getProvider(this._useChainId(e))}getSigner(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceSigner===!0}}class Qfe{constructor(e){if(this.signer=e,Lk.is(e))throw new Error("WalletUtils does not support SingleNetworkSequenceSigner")}signMessage(e,r,n){return this.signer.signMessage(e,{chainId:r,eip6492:n})}signTypedData(e,r,n,s,i){return this.signer.signTypedData(e,r,n,{chainId:s,eip6492:i})}async isValidSignature(e,r,n,s){return od(e,r,n,this.signer.getProvider(s))}async isValidMessageSignature(e,r,n,s){const i=this.signer.getProvider(s),o=dm(r),a=nk(o);return od(e,a,n,i)}isValidTypedDataSignature(e,r,n,s){return this.isValidSignature(e,Ed(r),n,s)}}const Jfe=["method"],T3=["connect","disconnect","chainChanged","accountsChanged"];class Sd extends co{constructor(e,r,n=sd,s){super(e.getChainId(),s),this.client=e,this.providerFor=r,this.networks=n,this.options=s,this.singleNetworkProviders={},this._isSequenceProvider=!0,this.utils=void 0,this.signer=void 0,this.eip1193EventListeners=new Map,e.onConnect(i=>{var o;(o=this.eip1193EventListeners.get("connect"))==null||o.forEach(a=>a(i))}),e.onDisconnect(i=>{var o;(o=this.eip1193EventListeners.get("disconnect"))==null||o.forEach(a=>a(i))}),e.onDefaultChainIdChanged(i=>{var o;(o=this.eip1193EventListeners.get("chainChanged"))==null||o.forEach(a=>a(i))}),e.onAccountsChanged(i=>{var o;(o=this.eip1193EventListeners.get("accountsChanged"))==null||o.forEach(a=>a(i))}),this.signer=new Ad(this.client,this),this.utils=new Qfe(this.signer)}async on(e,r){if(T3.includes(e)){const n=this.eip1193EventListeners.get(e)||new Set;return n.add(r),this.eip1193EventListeners.set(e,n),this}return super.on(e,r)}async off(e,r){if(T3.includes(e)){const n=this.eip1193EventListeners.get(e);return n&&(r?n.delete(r):n.clear()),this}return super.off(e,r)}getSigner(e){return this.signer.getSigner(e)}connect(e){return this.client.connect(e)}disconnect(){return this.client.disconnect()}isConnected(){return this.client.isConnected()}getSession(){return this.client.getSession()}listAccounts(){return[this.client.getAddress()]}getAddress(){return this.client.getAddress()}getNetworks(){return this.client.getNetworks()}getChainId(){return this.client.getChainId()}setDefaultChainId(e){return this.client.setDefaultChainId(this.toChainId(e))}isOpened(){return this.client.isOpened()}closeWallet(){return this.client.closeWallet()}getWalletContext(){return this.client.getWalletContext()}async getWalletConfig(e){const r=await this.useChainId(e);return this.client.getOnchainWalletConfig({chainId:r})}authorize(e){return this.client.connect(er({},e,{authorize:!0}))}async openWallet(e,r){return await this.client.openWallet(e,r),!0}toChainId(e){if(e===void 0)return;const r=Rs(this.networks,e);if(!r)throw new Error(`Unsupported network ${e}`);return r.chainId}async useChainId(e){return this.toChainId(e)||this.client.getChainId()}getProvider(e){if(!e)return this;const r=this.toChainId(e);return this.singleNetworkProviders[r]||(this.singleNetworkProviders[r]=new NF(this.client,this.providerFor,r,this.options)),this.singleNetworkProviders[r]}async _getSubprovider(e){const r=await this.useChainId(e),n=this.providerFor(r);if(!n)throw new Error(`Unsupported network ${r}`);return n}async _perform(e){var r;const{method:n}=e,s=Kfe(e,Jfe),i=await this._getSubprovider(),o=(r=i.getRpcRequest(e))!=null?r:{method:n,args:Object.values(s)};if(!o)throw new Error(`Unsupported method ${e.method}`);return i.send(o.method,o.args)}async perform(e,r){if(e==="eth_chainId")return pr(await this.useChainId());if(e==="eth_accounts")return[this.client.getAddress()];if(e==="wallet_switchEthereumChain"){const n=r[0],s=RF(n);return this.setDefaultChainId(s)}return e==="eth_sendTransaction"||e==="eth_sign"||e==="eth_signTypedData"||e==="eth_signTypedData_v4"||e==="personal_sign"||e==="sequence_sign"||e==="sequence_signTypedData_v4"?this.client.request({method:e,params:r,chainId:this.getChainId()}):this._perform(er({method:e},r))}send(e,r){return this.perform(e,r)}request(e){return this.perform(e.method,e.params)}async _detectNetwork(){const e=this.client.getChainId(),r=Rs(this.networks,e);if(!r)throw new Error(`Unknown network ${e}`);return new ot(r.name,r.chainId)}async detectNetwork(){return this._detectNetwork()}async waitForTransaction(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).waitForTransaction(e,r,n)}async getBlockNumber(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getBlockNumber()}async getFeeData(e){return(await this._getSubprovider(e==null?void 0:e.chainId)).getFeeData()}async getBalance(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBalance(e,r)}async getTransactionCount(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getTransactionCount(e,r)}async getCode(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getCode(e,r)}async getStorage(e,r,n,s){return(await this._getSubprovider(s==null?void 0:s.chainId)).getStorage(e,r,n)}async call(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).call(e)}async estimateGas(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).estimateGas(e)}async getBlock(e,r,n){return(await this._getSubprovider(n==null?void 0:n.chainId)).getBlock(e,r)}async getTransaction(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getTransaction(e)}async getLogs(e,r){return(await this._getSubprovider(r==null?void 0:r.chainId)).getLogs(e)}async supportsENS(){return(await this.getNetworks()).some(r=>r.chainId===1)}async getResolver(e){return await this.supportsENS()?(await this._getSubprovider(1)).getResolver(e):null}async resolveName(e){return PN(e)?e:await this.supportsENS()?(await this._getSubprovider(1)).resolveName(e):null}async lookupAddress(e){return await this.supportsENS()?(await this._getSubprovider(1)).lookupAddress(e):null}async getAvatar(e){return await this.supportsENS()?(await this._getSubprovider(1)).getAvatar(e):null}}Sd.is=t=>t&&typeof t=="object"&&t._isSequenceProvider===!0;function RF(t){return typeof t=="object"?RF(t.chainId):Number(t)}class NF extends Sd{constructor(e,r,n,s){super(e,r,void 0,s),this.chainId=n,this._isSingleNetworkSequenceProvider=!0}_useChainId(e){const r=this.toChainId(e);if(r&&r!==this.chainId)throw new Error(`This provider only supports the network ${this.chainId}, but ${r} was requested.`);return r||super.toChainId(this.chainId)}useChainId(e){return Promise.resolve(this._useChainId(e))}getChainId(){return super.toChainId(this.chainId)}async getNetwork(){const e=await this.client.getNetworks(),r=Rs(e,this.chainId);if(!r)throw new Error(`Unsupported network ${this.chainId}`);return new ot(r.name,r.chainId)}getProvider(e){if(this._useChainId(e)!==this.chainId)throw new Error("Unreachable code");return this}getSigner(e){return super.getSigner(this._useChainId(e))}setDefaultChainId(e){throw new Error(`This provider only supports the network ${this.chainId}; use the parent provider to switch networks.`)}static is(e){return e&&typeof e=="object"&&e._isSingleNetworkSequenceProvider===!0}}class Yfe extends wfe{}const Xfe=(t,e)=>{e||(e="https://nodes.sequence.app");const r=!t,n={};return t&&(n.headers={"X-Access-Key":t}),new Yfe(e,n,{noop:r,defaultEnabled:!0,privacy:{userIdHash:!0,userAgentSalt:!1},initProps:()=>Ki()?{origin:window.location.origin}:{}})};class rl{constructor(e){this.store=e}connectedSession(){const e=this.getSession();if(e&&e.accountAddress&&e.walletContext&&e.networks)return{accountAddress:e.accountAddress,walletContext:e.walletContext,networks:e.networks};throw new Error("Sequence session not connected")}hasSession(){var e;return((e=this.getSession())==null?void 0:e.accountAddress)!==void 0}setSession(e){return this.store.setItem(rl.SESSION_LOCALSTORE_KEY,JSON.stringify(e))}getSession(){const e=this.store.getItem(rl.SESSION_LOCALSTORE_KEY);if(e)return JSON.parse(e)}async clearSession(){return this.store.removeItem(rl.SESSION_LOCALSTORE_KEY)}}rl.SESSION_LOCALSTORE_KEY="@sequence.session";class nl{constructor(e,r=1){this.store=e,this.startingChainId=r,this.callbacks=[],e.onItemChange(nl.SESSION_CHAIN_ID_KEY,n=>{if(n){const s=parseInt(n);this.callbacks.forEach(i=>i(s))}})}onDefaultChainIdChanged(e){return this.callbacks.push(e),()=>{this.callbacks=this.callbacks.filter(r=>r!==e)}}setDefaultChainId(e){e!==this.getDefaultChainId()&&this.store.setItem(nl.SESSION_CHAIN_ID_KEY,e.toString())}getDefaultChainId(){const e=this.store.getItem(nl.SESSION_CHAIN_ID_KEY);return!e||e.length===0?this.startingChainId:parseInt(e)}}nl.SESSION_CHAIN_ID_KEY="@sequence.session.defaultChainId";class jk{constructor(e,r,n){var s,i;if(this.session=void 0,this.defaultChainId=void 0,this.callbacks={},this.transport=void 0,this.defaultEIP6492=void 0,this.projectAccessKey=void 0,this.analytics=void 0,OF(e))this.transport=hm.new(e);else if(yF(e))this.transport=e;else throw new Error("Invalid transport");const o=n==null?void 0:n.defaultChainId;if(this.defaultEIP6492=(s=n==null?void 0:n.defaultEIP6492)!=null?s:!1,this.session=new rl(r),this.defaultChainId=new nl(r,o),this.transport.on("accountsChanged",l=>{var u;l.length>1&&console.warn("SequenceClient: wallet-webapp returned more than one account"),(u=this.callbacks.accountsChanged)==null||u.forEach(f=>f(l))}),this.transport.on("connect",l=>{var u;const f=pr(this.getChainId());(u=this.callbacks.connect)==null||u.forEach(d=>d(er({},l,{chainId:f})))}),this.transport.on("disconnect",(l,u)=>{var f;(f=this.callbacks.disconnect)==null||f.forEach(d=>d(l,u))}),this.transport.on("networks",l=>{var u;(u=this.callbacks.networks)==null||u.forEach(f=>f(l))}),this.transport.on("walletContext",l=>{var u;(u=this.callbacks.walletContext)==null||u.forEach(f=>f(l))}),this.transport.on("open",l=>{var u;(u=this.callbacks.open)==null||u.forEach(f=>f(l))}),this.transport.on("close",()=>{var l;(l=this.callbacks.close)==null||l.forEach(u=>u())}),this.transport.on("chainChanged",(l,u)=>{var f;(f=this.callbacks.chainChanged)==null||f.forEach(d=>d(l,u))}),this.defaultChainId.onDefaultChainIdChanged(l=>{var u;const f=pr(l);(u=this.callbacks.chainChanged)==null||u.forEach(d=>d(f))}),n!=null&&n.projectAccessKey&&(this.projectAccessKey=n.projectAccessKey),this.projectAccessKey&&n!=null&&n.analytics&&(this.analytics=Xfe(this.projectAccessKey)),(i=this.session.getSession())!=null&&i.accountAddress){var a,c;(a=this.analytics)==null||a.identify((c=this.session.getSession())==null||(c=c.accountAddress)==null?void 0:c.toLowerCase())}}registerCallback(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),()=>{this.callbacks[e]=this.callbacks[e].filter(n=>n!==r)}}onOpen(e){return this.registerCallback("open",e)}onClose(e){return this.registerCallback("close",e)}onConnect(e){return this.registerCallback("connect",e)}onDisconnect(e){return this.registerCallback("disconnect",e)}onNetworks(e){return this.registerCallback("networks",e)}onAccountsChanged(e){return this.registerCallback("accountsChanged",e)}onWalletContext(e){return this.registerCallback("walletContext",e)}onChainChanged(e){return this.registerCallback("chainChanged",e)}onDefaultChainIdChanged(e){return this.registerCallback("chainChanged",e)}getChainId(){return this.defaultChainId.getDefaultChainId()}setDefaultChainId(e){return this.defaultChainId.setDefaultChainId(e)}async openWallet(e,r){return this.transport.openWallet(e,r,this.getChainId()),await this.transport.waitUntilOpened(),this.isOpened()}closeWallet(){return this.transport.closeWallet()}isOpened(){return this.transport.isOpened()}isConnected(){return this.session.hasSession()}getSession(){return this.session.getSession()}getAddress(){return this.session.connectedSession().accountAddress}async connect(e){if((e==null?void 0:e.authorizeVersion)===void 0&&(e.authorizeVersion=2),(e==null?void 0:e.refresh)===!0&&this.disconnect(),e.projectAccessKey=this.projectAccessKey,e&&e.authorize){if(!e.app)throw new Error("connecting with 'authorize' option also requires 'app' to be set");e.authorizeVersion===void 0&&(e.authorizeVersion=2)}await this.openWallet(void 0,{type:"connect",options:er({},e,{networkId:this.getChainId(),clientVersion:Ur})});const r=await this.transport.waitUntilConnected().catch(i=>i instanceof Error?{connected:!1,error:i.message}:{connected:!1,error:JSON.stringify(i)});if(r.chainId&&(r.chainId=BigInt(r.chainId).toString()),r.connected){var n;if(!r.session)throw new Error("impossible state, connect response is missing session");if(this.session.setSession(r.session),(n=r.session)!=null&&n.accountAddress){var s;(s=this.analytics)==null||s.identify(r.session.accountAddress.toLowerCase())}}return r}disconnect(){var e;return this.isOpened()&&this.closeWallet(),(e=this.analytics)==null||e.reset(),this.session.clearSession()}async request(e){return e.method=this.mapSignMethod(e.method),this.transport.request(e)}async getNetworks(e){const r=this.session.connectedSession();return e&&(r.networks=await this.request({method:"sequence_getNetworks"}),this.session.setSession(r)),r.networks}signMethod(e){return(e==null?void 0:e.eip6492)===void 0?"personal_sign":e.eip6492?"sequence_sign":"legacy_sign"}signTypedDataMethod(e){return(e==null?void 0:e.eip6492)===void 0?"eth_signTypedData_v4":e.eip6492?"sequence_signTypedData_v4":"legacy_signTypedData_v4"}mapSignMethod(e){return e==="personal_sign"?this.defaultEIP6492?"sequence_sign":"personal_sign":e==="eth_signTypedData_v4"?this.defaultEIP6492?"sequence_signTypedData_v4":"eth_signTypedData_v4":e==="legacy_sign"?"personal_sign":e==="legacy_signTypedData_v4"?"eth_signTypedData_v4":e}async signMessage(e,r){var n;const s=this.signMethod(r);return(n=this.analytics)==null||n.track({event:"SIGN_MESSAGE_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),e=H(Dk(e)),this.request({method:s,params:[e,this.getAddress()],chainId:r==null?void 0:r.chainId})}async signTypedData(e,r){var n;const s=this.signTypedDataMethod(r),i=Ds.getPayload(e.domain,e.types,e.message);return(n=this.analytics)==null||n.track({event:"SIGN_TYPED_DATA_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:s,params:[this.getAddress(),i],chainId:(r==null?void 0:r.chainId)||e.domain.chainId&&Number(e.domain.chainId)||this.getChainId()})}async sendTransaction(e,r){var n;const s=Array.isArray(e)?e:[e],i=Vfe(s);return(n=this.analytics)==null||n.track({event:"SEND_TRANSACTION_REQUEST",props:{chainId:`${(r==null?void 0:r.chainId)||this.getChainId()}`}}),this.request({method:"eth_sendTransaction",params:[i],chainId:r==null?void 0:r.chainId})}async getWalletContext(){return this.request({method:"sequence_getWalletContext"})}async getOnchainWalletConfig(e){const r=await this.request({method:"sequence_getWalletConfig",params:[(e==null?void 0:e.chainId)||this.getChainId()],chainId:e==null?void 0:e.chainId});return Array.isArray(r)?r[0]:r}}const G2={transports:{walletAppURL:"https://sequence.app",windowTransport:{enabled:!0},proxyTransport:{enabled:!1}},defaultNetwork:1,analytics:!0};let ci;const _F=(t,e)=>{var r,n,s;if(!t||typeof t!="string")throw new Error("Please pass a projectAccessKey in initWallet.");if(ci)return ci;const i=er({},G2,e,{transports:er({},G2.transports,e==null?void 0:e.transports)}),o={},a=(r=(n=i.networks)==null?void 0:n.filter(h=>{h.rpcUrl!==void 0&&h.chainId!==void 0&&sd.find(y=>y.chainId===h.chainId)}))!=null?r:[],c=sd.map(h=>{var y;const p=(y=i.networks)==null?void 0:y.find(b=>b.chainId===h.chainId);return p?er({},h,p):h}).concat(a).map(h=>(h.rpcUrl.includes(t)||(h.rpcUrl=h.rpcUrl+`/${t}`),h)),l=h=>{if(!o[h]){var y;const p=(y=c.find(b=>b.chainId===h))==null?void 0:y.rpcUrl;if(!p)throw new Error(`no rpcUrl found for chainId: ${h}`);o[h]=new VM(p,{middlewares:[UM,FM,new ik]},{cacheTimeout:-1})}return o[h]},u=i.defaultNetwork?(s=Rs(c,i.defaultNetwork))==null?void 0:s.chainId:void 0;if(!u&&i.defaultNetwork)throw new Error(`defaultNetwork not found for chainId: ${i.defaultNetwork}`);const f=i.localStorage||Iv(),d=new jk(i.transports,f,{defaultChainId:u,defaultEIP6492:i.defaultEIP6492,projectAccessKey:t,analytics:i.analytics});return ci=new Sd(d,l),ci},MF=()=>{ci&&(ci.client.closeWallet(),ci.client.transport.unregister(),ci=void 0)},DF=()=>{if(!ci)throw new Error("Wallet has not been initialized, call sequence.initWallet(config) first.");return ci},Zfe=Object.freeze(Object.defineProperty({__proto__:null,BaseInjectedTransport:Ufe,BaseProviderTransport:O1,BaseWalletTransport:R1,CHANNEL_ID:Bk,DefaultChainIdTracker:nl,DefaultProviderConfig:G2,ErrSignedInRequired:gF,EventType:Ue,ExtensionMessageHandler:Ffe,ExtensionMessageProvider:PF,InitState:dt,LocalStorage:_0,MemoryItemStore:EF,MuxMessageProvider:hm,OpenState:Kn,PROVIDER_OPEN_TIMEOUT:Mk,ProviderError:vF,ProxyMessageChannel:Bfe,ProxyMessageChannelPort:z2,ProxyMessageHandler:Lfe,ProxyMessageProvider:AF,SequenceClient:jk,SequenceClientSession:rl,SequenceProvider:Sd,SequenceSigner:Ad,SingleNetworkSequenceProvider:NF,SingleNetworkSequenceSigner:Lk,UnrealMessageHandler:jfe,UnrealMessageProvider:TF,WalletRequestHandler:Gfe,WindowMessageHandler:$fe,WindowMessageProvider:IF,WindowSessionParams:I1,getWallet:DF,initWallet:_F,isBrowserExtension:Pv,isMuxTransportTemplate:OF,isProviderTransport:yF,isUnityPlugin:wF,isValidMessageSignature:xF,isValidSignature:od,isValidTypedDataSignature:bF,isWalletUpToDate:CF,messageToBytes:Dk,nextMessageIdx:mF,prefixEIP191Message:dm,resolveArrayProperties:kF,trimEIP191Prefix:Dfe,unregisterWallet:MF,useBestStore:Iv,validateTransactionRequest:H2},Symbol.toStringTag,{value:"Module"}));function en(t,e){return e.forEach(function(r){r&&typeof r!="string"&&!Array.isArray(r)&&Object.keys(r).forEach(function(n){if(n!=="default"&&!(n in t)){var s=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return r[n]}})}})}),Object.freeze(t)}var ede=en({__proto__:null},[Doe]),tde=en({__proto__:null},[Voe]),rde=en({__proto__:null},[Eue]),nde=en({__proto__:null},[$ue]),sde=en({__proto__:null},[vle]),ide=en({__proto__:null},[Ple]),ode=en({__proto__:null},[jae]),ade=en({__proto__:null},[Zfe]),cde=en({__proto__:null},[Yce]);const lde=ye.transaction;var ude=Object.freeze({__proto__:null,transactions:lde}),fde=en({__proto__:null,isValidSignature:od,isValidMessageSignature:xF,isValidTypedDataSignature:bF,isWalletUpToDate:CF},[Aae]),dde=en({__proto__:null},[Pce]),hde=en({__proto__:null},[Xce]),pde=en({__proto__:null},[bue]),yde=en({__proto__:null},[Mce]),vde=en({__proto__:null},[nle]),ze=Object.freeze({__proto__:null,abi:ede,api:tde,auth:rde,guard:nde,indexer:sde,metadata:ide,network:ode,provider:ade,relayer:cde,transactions:ude,utils:fde,core:dde,signhub:hde,sessions:pde,migration:yde,account:vde,initWallet:_F,getWallet:DF,unregisterWallet:MF,SequenceProvider:Sd,SequenceClient:jk,SequenceSigner:Ad});const P3=[{constant:!1,inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}];var gde="_1e9z9271";const mde=({message:t,loading:e})=>{const r=()=>t?` +...`:"...";return ie.jsx(Vq,{label:"Console",defaultOpen:!0,children:ie.jsxs(me,{as:"pre",color:"text80",style:{fontFamily:"monospace",whiteSpace:"break-spaces",overflowWrap:"anywhere"},children:[t,e&&r(),ie.jsx(me,{className:gde,display:"inline-block",fontSize:"large",lineHeight:"4",style:{top:"-4px",position:"relative"},children:"_"})]})})};var xde="_1q07ov40";const To=t=>{const{label:e,children:r,style:n,className:s}=t;return ie.jsxs(me,{marginTop:"10",marginBottom:"8",marginX:"0",width:"full",className:s,style:n,children:[e&&ie.jsx(me,{marginBottom:"2",children:ie.jsx(bde,{children:e})}),ie.jsx(me,{className:xde,children:$r.Children.map(r,(i,o)=>ie.jsx(me,{children:i},o))})]})},bde=t=>ie.jsx(Tt,{variant:"normal",fontWeight:"medium",color:"text50",children:t.children}),wde=()=>{const t=window.localStorage.getItem("defaultChainId");return t==null?null:Number(t)},I3=t=>"0x"+t.toString(16),Cde="/demo-dapp/assets/logo-EKCqYZBG.svg",O3="/demo-dapp/assets/skyweaver-banner-AT9gQtXT.png",Ede="/demo-dapp/assets/skyweaver-banner-large-Dt2dVXke.png",R3="AQAAAAAAAAbvrgpWEC2Aefg5qYStQmwjBpA";mM({logLevel:"DEBUG"});const BF=[{name:"production",walletUrl:"https://sequence.app"},{name:"development",walletUrl:"https://dev.sequence.app"},{name:"local",walletUrl:"http://localhost:3333"}],kde="https://api.sequence.app",N3=wde()||L.MAINNET,wc=new URLSearchParams(window.location.search),LF=wc.get("env")??"production",Ade=BF.find(t=>t.name===LF),yu=wc.get("walletAppURL")??Ade.walletUrl,Sde=wc.has("showProhibitedActions");yu&&yu.length>0?ze.initWallet(R3,{defaultNetwork:N3,transports:{walletAppURL:yu}}):ze.initWallet(R3,{defaultNetwork:N3,transports:{walletAppURL:yu}});const Tde=()=>{const[t,e]=m.useState(null),[r,n]=m.useState(null),[s,i]=m.useState(!1),[o,a]=m.useState(!1),c=ze.getWallet().getProvider(),[l,u]=m.useState(c.getChainId()),[f,d]=m.useState(!1),[h,y]=m.useState(!1);m.useMemo(()=>{c.on("chainChanged",U=>{u(Number(BigInt(U)))})},[]),m.useEffect(()=>{a(c.isConnected())},[c]),m.useEffect(()=>{de()},[o]),m.useEffect(()=>{c.client.onOpen(()=>{console.log("wallet window opened")}),c.client.onClose(()=>{console.log("wallet window closed")})},[c]);const p={app:"Demo Dapp",askForEmail:!0},b=async(U={app:"Demo dapp"})=>{if(o){ue(),K("Wallet already connected!"),i(!1);return}U={...p,...U,settings:{...p.settings,...U.settings}};try{ue(),K("Connecting");const se=ze.getWallet(),ae=await se.connect(U);if(U.authorize&&ae.connected){let Oe=wc.get("apiUrl");(!Oe||Oe.length===0)&&(Oe=kde);const rt=new ze.api.SequenceAPIClient(Oe),{isValid:Ut}=await rt.isValidETHAuthProof({chainId:ae.chainId,walletAddress:ae.session.accountAddress,ethAuthProofString:ae.proof.proofString});K(`isValid (API)?: ${Ut}`)}if(U.authorize){const Oe=new vv;if(ae.proof){const rt=await Oe.decodeProof(ae.proof.proofString,!0),Ut=await se.utils.isValidTypedDataSignature(se.getAddress(),ae.proof.typedData,rt.signature,Number(BigInt(ae.chainId)));K(`connected using chainId: ${BigInt(ae.chainId).toString()}`),K(`isValid (client)?: ${Ut}`)}}i(!1),ae.connected?(K("Wallet connected!"),K(`shared email: ${ae.email}`),a(!0)):K("Failed to connect wallet - "+ae.error)}catch(se){console.error(se),oe()}},v=()=>{ze.getWallet().disconnect(),de(),a(!1)},g=()=>{ze.getWallet().openWallet()},x=()=>{const U=ze.getWallet(),ae={type:"openWithOptions",options:{app:"Demo Dapp",settings:{theme:"light",includedPaymentProviders:["moonpay","ramp"],defaultFundingCurrency:"eth",defaultPurchaseAmount:400,lockFundingCurrencyToDefault:!1}}};U.openWallet("wallet/add-funds",ae)},k=()=>{ze.getWallet().closeWallet()},S=async()=>{ue();const U=ze.getWallet();K(`isConnected?: ${U.isConnected()}`),i(!1)},I=async()=>{ue();const U=ze.getWallet();K(`isOpened?: ${U.isOpened()}`),i(!1)},R=async()=>{try{ue();const U=c.getChainId();K(`top chainId: ${U}`);const ae=c.getProvider().getChainId();K(`provider.getChainId(): ${ae}`);const rt=await c.getSigner().getChainId();K(`signer.getChainId(): ${rt}`),i(!1)}catch(U){console.error(U),oe()}},_=async()=>{try{ue();const U=ze.getWallet(),se=U.getAddress();K(`getAddress(): ${se}`);const Oe=U.getProvider().listAccounts();K(`accounts: ${JSON.stringify(Oe)}`),i(!1)}catch(U){console.error(U),oe()}},V=async()=>{try{ue();const U=ze.getWallet(),se=U.getProvider(),ae=U.getAddress(),Oe=await se.getBalance(ae);K(`balance check 1: ${Oe.toString()}`);const Ut=await U.getSigner().getBalance();K(`balance check 2: ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},F=async()=>{try{ue();const se=await ze.getWallet().getNetworks();K(`networks: ${JSON.stringify(se,null,2)}`),i(!1)}catch(U){console.error(U),oe()}},X=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=`1915 Robert Frost +The Road Not Taken + +Two roads diverged in a yellow wood, +And sorry I could not travel both +And be one traveler, long I stood +And looked down one as far as I could +To where it bent in the undergrowth + +Then took the other, as just as fair, +And having perhaps the better claim, +Because it was grassy and wanted wear +Though as for that the passing there +Had worn them really about the same, + +And both that morning equally lay +In leaves no step had trodden black. +Oh, I kept the first for another day! +Yet knowing how way leads on to way, +I doubted if I should ever come back. + +I shall be telling this with a sigh +Somewhere ages and ages hence: +Two roads diverged in a wood, and Iā€” +I took the one less traveled by, +And that has made all the difference. + +ā˜ ā˜€ ā˜‚`,Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},re=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=H(mt("Hello, world!")),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},le=async()=>{try{ue();const U=ze.getWallet();K("signing message...");const se=U.getSigner(),ae=mt("Hello, world!"),Oe=await se.signMessage(ae);K(`signature: ${Oe}`);const rt=await U.utils.isValidMessageSignature(U.getAddress(),ae,Oe,await se.getChainId());if(K(`isValid?: ${rt}`),!rt)throw new Error("sig invalid");i(!1)}catch(U){console.error(U),oe()}},ee=async()=>{try{ue();const U=ze.getWallet();K("signing typedData...");const se={types:{Person:[{name:"name",type:"string"},{name:"wallet",type:"address"}],Mail:[{name:"from",type:"Person"},{name:"to",type:"Person"},{name:"cc",type:"Person[]"},{name:"contents",type:"string"},{name:"attachements",type:"string[]"}]},primaryType:"Mail",domain:{name:"Ether Mail",version:"1",chainId:1,verifyingContract:"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"},message:{from:{name:"Cow",wallet:"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"},to:{name:"Bob",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},cc:[{name:"Dev Team",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"},{name:"Accounting",wallet:"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"}],contents:"Hello, Bob!",attachements:["cat.png","dog.png"]}},ae=U.getSigner(),Oe=await ae.signTypedData(se.domain,se.types,se.message);K(`signature: ${Oe}`);const rt=await U.utils.isValidTypedDataSignature(U.getAddress(),se,Oe,await ae.getChainId());K(`isValid?: ${rt}`),i(!1)}catch(U){console.error(U),oe()}},D=async()=>{try{ue();const U=ze.getWallet(),se="0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",ae=new pt(["function withdraw(uint256 amount)"]),Oe={to:se,data:ae.encodeFunctionData("withdraw",["1000000000000000000"])},Ut=await U.getProvider().estimateGas(Oe);K(`estimated gas needed for wmatic withdrawal : ${Ut.toString()}`),i(!1)}catch(U){console.error(U),oe()}},G=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner(),K(`Transfer txn on ${U.getChainId()} chainId`);const ae=await U.getAddress(),Oe={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Iw("1.234"),data:"0x"},rt={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:ae,value:Iw("0.4242"),data:"0x"},Ut=U.provider,bi=await Ut.getBalance(ae);K(`balance of ${ae}, before: ${bi}`);const pm=await U.sendTransaction([Oe,rt]);K(`txnResponse: ${JSON.stringify(pm)}`);const ym=await Ut.getBalance(ae);K(`balance of ${ae}, after: ${ym}`),i(!1)}catch(se){console.error(se),oe()}},Z=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=rv("1",1),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x07865c6e87b9f70255377e024ace6630c1eaa37f",value:0,data:new pt(P3).encodeFunctionData("transfer",[ae,I3(Oe)])},bi=await U.sendTransaction([Ut],{chainId:L.SEPOLIA});K(`txnResponse: ${JSON.stringify(bi)}`),i(!1)}catch(se){console.error(se),oe()}},C=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=await U.getAddress(),Oe=rv("0.05",18),Ut={delegateCall:!1,revertOnError:!1,gasLimit:"0x55555",to:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",value:0,data:new pt(P3).encodeFunctionData("transfer",[ae,I3(Oe)])},bi=await U.sendTransaction([Ut]);K(`txnResponse: ${JSON.stringify(bi)}`),i(!1)}catch(se){console.error(se),oe()}},A=async()=>{try{const U=ze.getWallet(),se=U.getChainId()===L.ARBITRUM?L.OPTIMISM:L.ARBITRUM;G(U.getSigner(se))}catch(U){console.error(U),oe()}},O=async()=>{try{ue(),K("TODO"),i(!1)}catch(U){console.error(U),oe()}},M=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae=["function balanceOf(address owner) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)","function transfer(address to, uint amount) returns (bool)","event Transfer(address indexed from, address indexed to, uint amount)"],Oe="0x2791bca1f2de4661ed88a30c99a7a9449aa84174",rt=new dn(Oe,ae),Ut=await rt.symbol();K(`Token symbol: ${Ut}`);const bi=await rt.balanceOf(await U.getAddress());K(`Token Balance: ${bi.toString()}`),i(!1)}catch(se){console.error(se),oe()}},B=async()=>{try{ue();const U=ze.getWallet(),ae=await U.getSigner().getAddress(),rt=(await U.getNetworks()).find(ym=>ym.chainId===L.POLYGON);if(!rt)throw new Error("Could not find Polygon network in networks list");const Ut=new ze.indexer.SequenceIndexer(rt.indexerUrl),bi=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0});K(`tokens in your account: ${JSON.stringify(bi)}`);const pm=await Ut.getTokenBalances({accountAddress:ae,includeMetadata:!0,contractAddress:"0x631998e91476DA5B870D741192fc5Cbc55F5a52E"});K(`skyweaver collectibles in your account: ${JSON.stringify(pm)}`),i(!1)}catch(U){console.error(U),oe()}},W=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModule.abi).encodeFunctionData("updateImplementation",[mi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},q=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(Gt.mainModuleUpgradable.abi).encodeFunctionData("updateImageHash",[pl])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},te=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),delegateCall:!0},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},J=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function addHook(bytes4 _signature, address _implementation)"]).encodeFunctionData("addHook",["0x01234567",mi])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},$=async U=>{try{ue();const se=ze.getWallet();U=U||se.getSigner();const ae={to:se.getAddress(),data:new pt(["function setExtraImageHash(bytes32 _imageHash, uint256 _expiration)"]).encodeFunctionData("setExtraImageHash",[pl,AN])},Oe=await U.sendTransaction(ae);K(`response: ${JSON.stringify(Oe)}`),i(!1)}catch(se){console.error(se),oe()}},K=(U,se=!1)=>(console.log(U),e(se?U:ae=>`${ae} + +${U}`)),ue=()=>{i(!0)},de=()=>{i(!1),e(o?"Status: Wallet is connected :)":"Status: Wallet not connected. Please connect wallet first.")},oe=()=>{i(!1),e("An error occurred")},Ce=[L.RINKEBY,L.HARDHAT,L.HARDHAT_2,L.KOVAN,L.ROPSTEN,L.HOMEVERSE_TESTNET,L.BASE_GOERLI],Re=Object.values(ze.network.networks).filter(U=>U.type===_e.MAINNET).sort((U,se)=>U.chainId-se.chainId),xt=Object.values(ze.network.networks).filter(U=>U.type===_e.TESTNET).sort((U,se)=>U.chainId-se.chainId),tn=[...Re,...xt].filter(U=>!U.deprecated&&!Ce.includes(U.chainId));m.useEffect(()=>{r&&!f&&(console.log(r),b({app:"Demo Dapp",authorize:!0,settings:{signInWithEmail:r,theme:"dark",bannerUrl:`${window.location.origin}${O3}`}}),n(null))},[r,f]);const br=U=>(U=U.trim(),!!/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(U));return ie.jsxs(me,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[ie.jsx(me,{marginBottom:"10",children:ie.jsx("a",{href:"https://sequence.xyz/",target:"_blank",rel:"noopener",children:ie.jsx(zE,{height:"6",alt:"logo",src:Cde})})}),ie.jsx(me,{children:ie.jsx(Tt,{variant:"normal",color:"text100",fontWeight:"bold",children:"Demo Dapp"})}),ie.jsx(me,{marginTop:"1",marginBottom:"4",children:ie.jsx(Tt,{variant:"normal",color:"text80",children:"A dapp example on how to use the Sequence Wallet. This covers how to connect, sign messages and send transctions."})}),ie.jsxs(eq,{background:"backgroundMuted",alignItems:"center",gap:"3",children:[ie.jsx(Tq,{}),ie.jsx(Tt,{variant:"normal",color:"text80",children:"Please open your browser dev inspector to view output of functions below."})]}),ie.jsx(cS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(jS,{name:"environment",label:"Environment",labelLocation:"top",onValueChange:U=>{wc.set("env",U),wc.delete("walletAppURL"),window.location.search=wc.toString()},value:LF,options:[...Object.values(BF).map(U=>({label:ie.jsx(me,{alignItems:"center",gap:"2",children:ie.jsx(Tt,{capitalize:!0,children:U.name})}),value:String(U.name)}))]})}),ie.jsxs(me,{marginBottom:"4",children:[ie.jsx(Tt,{as:"div",variant:"small",color:"text100",children:"Wallet URL"}),ie.jsxs(me,{as:"a",href:yu,target:"_blank",rel:"noopener",textDecoration:"none",gap:"1",marginTop:"1",alignItems:"center",color:"text80",children:[ie.jsx(Tt,{as:"div",variant:"normal",color:"text80",children:yu}),ie.jsx(Eq,{})]})]}),ie.jsx(cS,{background:"buttonGlass"}),ie.jsx(me,{marginBottom:"4",children:ie.jsx(jS,{name:"chainId",label:"Network",labelLocation:"top",onValueChange:U=>c.setDefaultChainId(Number(U)),value:String(l),options:[...Object.values(tn).map(U=>({label:ie.jsxs(me,{alignItems:"center",gap:"2",children:[ie.jsx(hee,{src:U.logoURI,size:"sm"}),ie.jsx(Tt,{children:U.title})]}),value:String(U.chainId)}))]})}),ie.jsxs(To,{label:"Connection",children:[ie.jsx(We,{width:"full",shape:"square",onClick:()=>b(),label:"Connect"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0}),label:"Connect & Auth"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>b({app:"Demo Dapp",authorize:!0,settings:{theme:"dark",bannerUrl:`${window.location.origin}${Ede}`,bannerSize:"medium",includedPaymentProviders:["moonpay"],defaultFundingCurrency:"matic",defaultPurchaseAmount:111}}),label:"Connect with Settings"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{d(!0)},label:"Connect with Email"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>{b({app:"Demo Dapp",authorize:!0,settings:{signInWith:"google",theme:"dark",bannerUrl:`${window.location.origin}${O3}`}})},label:"Connect with Google"}),ie.jsx(We,{width:"full",shape:"square",onClick:()=>v(),label:"Disconnect"})]}),ie.jsxs(To,{label:"Basics",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>g(),label:"Open Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>x(),label:"Open Wallet with Settings"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>k(),label:"Close Wallet"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>S(),label:"Is Connected?"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>I(),label:"Is Opened?"})]}),ie.jsxs(To,{label:"State",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>R(),label:"ChainID"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>F(),label:"Networks"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>_(),label:"Get Accounts"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>V(),label:"Get Balance"})]}),ie.jsxs(To,{label:"Signing",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>X(),label:"Sign Message"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>re(),label:"Sign Message (Hex)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>le(),label:"Sign Message (Bytes)"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>ee(),label:"Sign TypedData"})]}),ie.jsx(To,{label:"Simulation",children:ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>D(),label:"Estimate Unwrap Gas"})}),ie.jsxs(To,{label:"Transactions",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>G(),label:"Send funds"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>A(),label:"Send on L2"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>C(),label:"Send DAI"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o||!0,onClick:()=>O(),label:"Send ERC-1155 Tokens"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>Z(),label:"Send USDC on Sepolia"})]}),ie.jsxs(To,{label:"Various",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>M(),label:"Read Symbol and Balance"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>B(),label:"Fetch Token Balances"})]}),Sde&&ie.jsxs(To,{label:"Prohibited Actions - FOR TESTING ONLY! DO NOT CONFIRM!",children:[ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>W(),label:"Update Implementation"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>q(),label:"Update Image Hash"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>te(),label:"Delegate Call"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>J(),label:"Add Hook"}),ie.jsx(We,{width:"full",shape:"square",disabled:!o,onClick:()=>$(),label:"Set Extra Image Hash"})]}),ie.jsx(aI,{children:f&&ie.jsx(uX,{onClose:()=>d(!1),size:"sm",children:ie.jsx(me,{flexDirection:"column",justifyContent:"space-between",height:"full",padding:"16",children:ie.jsxs(me,{flexDirection:"column",children:[ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"text80",children:"Auto-email login, please specify the email address"})}),ie.jsx(me,{marginTop:"4",children:ie.jsx(YE,{onChange:U=>{n(U.target.value)}})}),h?ie.jsx(me,{marginTop:"6",children:ie.jsx(Tt,{marginTop:"5",variant:"normal",color:"warning",children:"please input an email with correct format"})}):null,ie.jsx(me,{gap:"2",marginY:"4",children:ie.jsx(We,{variant:"primary",label:"Login",onClick:()=>{br(r)?(y(!1),d(!1)):y(!0)},"data-id":"login"})})]})})})}),ie.jsx(mde,{message:t,loading:s})]})},Pde=$r.memo(Tde),Ide=nR(document.getElementById("root"));Ide.render(ie.jsx($r.StrictMode,{children:ie.jsx(sX,{children:ie.jsx(Pde,{})})})); diff --git a/index.html b/index.html index b7a9f97..63da7b1 100644 --- a/index.html +++ b/index.html @@ -25,8 +25,8 @@ Learn how to configure a non-root public URL by running `npm run build`. --> Sequence | Demo Dapp - - + +