From 5b9426728e34a087546f917cba6b3ac557254176 Mon Sep 17 00:00:00 2001 From: taylanpince Date: Mon, 10 Jun 2024 10:32:38 +0000 Subject: [PATCH] Build: (56f9914) Add EOA Wallet link demo (#23) --- .../{index-c6036ac8.js => index-b48d9ac5.js} | 52 +++++++++---------- index.html | 2 +- 2 files changed, 27 insertions(+), 27 deletions(-) rename assets/{index-c6036ac8.js => index-b48d9ac5.js} (84%) diff --git a/assets/index-c6036ac8.js b/assets/index-b48d9ac5.js similarity index 84% rename from assets/index-c6036ac8.js rename to assets/index-b48d9ac5.js index 16b69a3..f3a5280 100644 --- a/assets/index-c6036ac8.js +++ b/assets/index-b48d9ac5.js @@ -6,7 +6,7 @@ function oA(t,e){for(var r=0;r>>1,m=R[C];if(0>>1;Ci(E,j))Bi(V,E)?(R[C]=V,R[B]=j,C=B):(R[C]=E,R[F]=j,C=F);else if(Bi(V,j))R[C]=V,R[B]=j,C=B;else break e}}return N}function i(R,N){var j=R.sortIndex-N.sortIndex;return j!==0?j:R.id-N.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,d=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(R){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=R)n(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=r(c)}}function P(R){if(y=!1,S(R),!g)if(r(l)!==null)g=!0,k(_);else{var N=r(c);N!==null&&I(P,N.startTime-R)}}function _(R,N){g=!1,y&&(y=!1,x(L),L=-1),v=!0;var j=d;try{for(S(N),u=r(l);u!==null&&(!(u.expirationTime>N)||R&&!Y());){var C=u.callback;if(typeof C=="function"){u.callback=null,d=u.priorityLevel;var m=C(u.expirationTime<=N);N=t.unstable_now(),typeof m=="function"?u.callback=m:u===r(l)&&n(l),S(N)}else n(l);u=r(l)}if(u!==null)var T=!0;else{var F=r(c);F!==null&&I(P,F.startTime-N),T=!1}return T}finally{u=null,d=j,v=!1}}var D=!1,M=null,L=-1,z=5,H=-1;function Y(){return!(t.unstable_now()-HR||125C?(R.sortIndex=j,e(c,R),r(l)===null&&R===r(c)&&(y?(x(L),L=-1):y=!0,I(P,j-C))):(R.sortIndex=m,e(l,R),g||v||(g=!0,k(_))),R},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(R){var N=d;return function(){var j=d;d=N;try{return R.apply(this,arguments)}finally{d=j}}}})(EA);wA.exports=EA;var tP=wA.exports;/** + */(function(t){function e(R,N){var B=R.length;R.push(N);e:for(;0>>1,m=R[C];if(0>>1;Ci(E,B))$i(V,E)?(R[C]=V,R[$]=B,C=$):(R[C]=E,R[F]=B,C=F);else if($i(V,B))R[C]=V,R[$]=B,C=$;else break e}}return N}function i(R,N){var B=R.sortIndex-N.sortIndex;return B!==0?B:R.id-N.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,d=3,v=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=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(R){for(var N=r(c);N!==null;){if(N.callback===null)n(c);else if(N.startTime<=R)n(c),N.sortIndex=N.expirationTime,e(l,N);else break;N=r(c)}}function P(R){if(y=!1,A(R),!g)if(r(l)!==null)g=!0,k(_);else{var N=r(c);N!==null&&I(P,N.startTime-R)}}function _(R,N){g=!1,y&&(y=!1,x(L),L=-1),v=!0;var B=d;try{for(A(N),u=r(l);u!==null&&(!(u.expirationTime>N)||R&&!Y());){var C=u.callback;if(typeof C=="function"){u.callback=null,d=u.priorityLevel;var m=C(u.expirationTime<=N);N=t.unstable_now(),typeof m=="function"?u.callback=m:u===r(l)&&n(l),A(N)}else n(l);u=r(l)}if(u!==null)var T=!0;else{var F=r(c);F!==null&&I(P,F.startTime-N),T=!1}return T}finally{u=null,d=B,v=!1}}var D=!1,M=null,L=-1,z=5,H=-1;function Y(){return!(t.unstable_now()-HR||125C?(R.sortIndex=B,e(c,R),r(l)===null&&R===r(c)&&(y?(x(L),L=-1):y=!0,I(P,B-C))):(R.sortIndex=m,e(l,R),g||v||(g=!0,k(_))),R},t.unstable_shouldYield=Y,t.unstable_wrapCallback=function(R){var N=d;return function(){var B=d;d=N;try{return R.apply(this,arguments)}finally{d=B}}}})(EA);wA.exports=EA;var tP=wA.exports;/** * @license React * react-dom.production.min.js * @@ -30,14 +30,14 @@ function oA(t,e){for(var r=0;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rv=Object.prototype.hasOwnProperty,nP=/^[: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]*$/,vb={},yb={};function iP(t){return Rv.call(yb,t)?!0:Rv.call(vb,t)?!1:nP.test(t)?yb[t]=!0:(vb[t]=!0,!1)}function sP(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 oP(t,e,r,n){if(e===null||typeof e>"u"||sP(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 Zr(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 Zr(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 Zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Tr[t]=new Zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Tr[t]=new Zr(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 Zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Tr[t]=new Zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Tr[t]=new Zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Tr[t]=new Zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Tr[t]=new Zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Mp=/[\-:]([a-z])/g;function Ip(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(Mp,Ip);Tr[e]=new Zr(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(Mp,Ip);Tr[e]=new Zr(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(Mp,Ip);Tr[e]=new Zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!1,!1)});Tr.xlinkHref=new Zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function _p(t,e,r,n){var i=Tr.hasOwnProperty(e)?Tr[e]:null;(i!==null?i.type!==0:n||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Rv=Object.prototype.hasOwnProperty,nP=/^[: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]*$/,vb={},yb={};function iP(t){return Rv.call(yb,t)?!0:Rv.call(vb,t)?!1:nP.test(t)?yb[t]=!0:(vb[t]=!0,!1)}function sP(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 oP(t,e,r,n){if(e===null||typeof e>"u"||sP(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 Zr(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 Zr(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 Zr(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Tr[t]=new Zr(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Tr[t]=new Zr(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 Zr(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Tr[t]=new Zr(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Tr[t]=new Zr(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Tr[t]=new Zr(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Tr[t]=new Zr(t,5,!1,t.toLowerCase(),null,!1,!1)});var Mp=/[\-:]([a-z])/g;function Ip(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(Mp,Ip);Tr[e]=new Zr(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(Mp,Ip);Tr[e]=new Zr(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(Mp,Ip);Tr[e]=new Zr(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!1,!1)});Tr.xlinkHref=new Zr("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Tr[t]=new Zr(t,1,!1,t.toLowerCase(),null,!0,!0)});function _p(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{q0=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Pc(t):""}function aP(t){switch(t.tag){case 5:return Pc(t.type);case 16:return Pc("Lazy");case 13:return Pc("Suspense");case 19:return Pc("SuspenseList");case 0:case 2:case 15:return t=H0(t.type,!1),t;case 11:return t=H0(t.type.render,!1),t;case 1:return t=H0(t.type,!0),t;default:return""}}function _v(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 Ta:return"Fragment";case Ra:return"Portal";case Tv:return"Profiler";case Op:return"StrictMode";case Mv:return"Suspense";case Iv:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case CA:return(t.displayName||"Context")+".Consumer";case SA:return(t._context.displayName||"Context")+".Provider";case Np:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Dp:return e=t.displayName||null,e!==null?e:_v(t.type)||"Memo";case js:e=t._payload,t=t._init;try{return _v(t(e))}catch{}}return null}function lP(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 _v(e);case 8:return e===Op?"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 so(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function PA(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cP(t){var e=PA(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=cP(t))}function RA(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=PA(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Sd(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 Ov(t,e){var r=e.checked;return Ft({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function mb(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=so(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 TA(t,e){e=e.checked,e!=null&&_p(t,"checked",e,!1)}function Nv(t,e){TA(t,e);var r=so(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")?Dv(t,e.type,r):e.hasOwnProperty("defaultValue")&&Dv(t,e.type,so(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function gb(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 Dv(t,e,r){(e!=="number"||Sd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Rc=Array.isArray;function Ga(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 nf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Dc={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},fP=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(t){fP.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Dc[e]=Dc[t]})});function OA(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Dc.hasOwnProperty(t)&&Dc[t]?(""+e).trim():e+"px"}function NA(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=OA(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var uP=Ft({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 Bv(t,e){if(e){if(uP[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(le(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(le(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(le(61))}if(e.style!=null&&typeof e.style!="object")throw Error(le(62))}}function $v(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 Fv=null;function Lp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Uv=null,Ka=null,Qa=null;function wb(t){if(t=qf(t)){if(typeof Uv!="function")throw Error(le(280));var e=t.stateNode;e&&(e=jh(e),Uv(t.stateNode,t.type,e))}}function DA(t){Ka?Qa?Qa.push(t):Qa=[t]:Ka=t}function LA(){if(Ka){var t=Ka,e=Qa;if(Qa=Ka=null,wb(t),e)for(t=0;t>>=0,t===0?32:31-(EP(t)/AP|0)|0}var du=64,hu=4194304;function Tc(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 Rd(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=Tc(a):(s&=o,s!==0&&(n=Tc(s)))}else o=r&~i,o!==0?n=Tc(o):s!==0&&(n=Tc(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 zf(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ui(e),t[e]=r}function PP(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=jc),Mb=String.fromCharCode(32),Ib=!1;function r6(t,e){switch(t){case"keyup":return tR.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n6(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ma=!1;function nR(t,e){switch(t){case"compositionend":return n6(e);case"keypress":return e.which!==32?null:(Ib=!0,Mb);case"textInput":return t=e.data,t===Mb&&Ib?null:t;default:return null}}function iR(t,e){if(Ma)return t==="compositionend"||!qp&&r6(t,e)?(t=e6(),Zu=Up=Vs=null,Ma=!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=Db(r)}}function a6(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?a6(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function l6(){for(var t=window,e=Sd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Sd(t.document)}return e}function Hp(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 hR(t){var e=l6(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&a6(r.ownerDocument.documentElement,r)){if(n!==null&&Hp(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=Lb(r,s);var o=Lb(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,Ia=null,Gv=null,$c=null,Kv=!1;function jb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kv||Ia==null||Ia!==Sd(n)||(n=Ia,"selectionStart"in n&&Hp(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}),$c&&ff($c,n)||($c=n,n=Id(Gv,"onSelect"),0Na||(t.current=ey[Na],ey[Na]=null,Na--)}function St(t,e){Na++,ey[Na]=t.current,t.current=e}var oo={},Vr=go(oo),sn=go(!1),Qo=oo;function cl(t,e){var r=t.type.contextTypes;if(!r)return oo;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 on(t){return t=t.childContextTypes,t!=null}function Od(){Mt(sn),Mt(Vr)}function qb(t,e,r){if(Vr.current!==oo)throw Error(le(168));St(Vr,e),St(sn,r)}function m6(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(le(108,lP(t)||"Unknown",i));return Ft({},r,n)}function Nd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||oo,Qo=Vr.current,St(Vr,t),St(sn,sn.current),!0}function Hb(t,e,r){var n=t.stateNode;if(!n)throw Error(le(169));r?(t=m6(t,e,Qo),n.__reactInternalMemoizedMergedChildContext=t,Mt(sn),Mt(Vr),St(Vr,t)):Mt(sn),St(sn,r)}var rs=null,Bh=!1,s1=!1;function g6(t){rs===null?rs=[t]:rs.push(t)}function CR(t){Bh=!0,g6(t)}function xo(){if(!s1&&rs!==null){s1=!0;var t=0,e=ct;try{var r=rs;for(ct=1;t>=o,i-=o,os=1<<32-ui(e)+i|r<L?(z=M,M=null):z=M.sibling;var H=d(x,M,S[L],P);if(H===null){M===null&&(M=z);break}t&&M&&H.alternate===null&&e(x,M),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H,M=z}if(L===S.length)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;LL?(z=M,M=null):z=M.sibling;var Y=d(x,M,H.value,P);if(Y===null){M===null&&(M=z);break}t&&M&&Y.alternate===null&&e(x,M),b=s(Y,b,L),D===null?_=Y:D.sibling=Y,D=Y,M=z}if(H.done)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;!H.done;L++,H=S.next())H=u(x,H.value,P),H!==null&&(b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return Ot&&Po(x,L),_}for(M=n(x,M);!H.done;L++,H=S.next())H=v(M,x,L,H.value,P),H!==null&&(t&&H.alternate!==null&&M.delete(H.key===null?L:H.key),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return t&&M.forEach(function(Z){return e(x,Z)}),Ot&&Po(x,L),_}function w(x,b,S,P){if(typeof S=="object"&&S!==null&&S.type===Ta&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case cu:e:{for(var _=S.key,D=b;D!==null;){if(D.key===_){if(_=S.type,_===Ta){if(D.tag===7){r(x,D.sibling),b=i(D,S.props.children),b.return=x,x=b;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===js&&Kb(_)===D.type){r(x,D.sibling),b=i(D,S.props),b.ref=Xl(x,D,S),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}S.type===Ta?(b=Vo(S.props.children,x.mode,P,S.key),b.return=x,x=b):(P=ad(S.type,S.key,S.props,null,x.mode,P),P.ref=Xl(x,b,S),P.return=x,x=P)}return o(x);case Ra:e:{for(D=S.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===S.containerInfo&&b.stateNode.implementation===S.implementation){r(x,b.sibling),b=i(b,S.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=h1(S,x.mode,P),b.return=x,x=b}return o(x);case js:return D=S._init,w(x,b,D(S._payload),P)}if(Rc(S))return g(x,b,S,P);if(Gl(S))return y(x,b,S,P);bu(x,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,S),b.return=x,x=b):(r(x,b),b=d1(S,x.mode,P),b.return=x,x=b),o(x)):r(x,b)}return w}var ul=E6(!0),A6=E6(!1),jd=go(null),Bd=null,ja=null,Qp=null;function Yp(){Qp=ja=Bd=null}function Jp(t){var e=jd.current;Mt(jd),t._currentValue=e}function ny(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 Ja(t,e){Bd=t,Qp=ja=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(nn=!0),t.firstContext=null)}function Vn(t){var e=t._currentValue;if(Qp!==t)if(t={context:t,memoizedValue:e,next:null},ja===null){if(Bd===null)throw Error(le(308));ja=t,Bd.dependencies={lanes:0,firstContext:t}}else ja=ja.next=t;return e}var No=null;function Xp(t){No===null?No=[t]:No.push(t)}function S6(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,Xp(e)):(r.next=i.next,i.next=r),e.interleaved=r,ps(t,n)}function ps(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 Bs=!1;function Zp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function C6(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 fs(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Ys(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,We&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,ps(t,r)}return i=n.interleaved,i===null?(e.next=e,Xp(n)):(e.next=i.next,i.next=e),n.interleaved=e,ps(t,r)}function td(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,Bp(t,r)}}function Qb(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=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};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 $d(t,e,r,n){var i=t.updateQueue;Bs=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var f=t.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,f=c=l=null,a=s;do{var d=a.lane,v=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,y=a;switch(d=e,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){u=g.call(v,u,d);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,u,d):g,d==null)break e;u=Ft({},u,d);break e;case 2:Bs=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,l=u):f=f.next=v,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(f===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Xo|=o,t.lanes=o,t.memoizedState=u}}function Yb(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=a1.transition;a1.transition={};try{t(!1),e()}finally{ct=r,a1.transition=n}}function z6(){return qn().memoizedState}function TR(t,e,r){var n=Xs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},V6(t))q6(e,r);else if(r=S6(t,e,r,n),r!==null){var i=Jr();di(r,t,n,i),H6(r,e,n)}}function MR(t,e,r){var n=Xs(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(V6(t))q6(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,hi(a,o)){var l=e.interleaved;l===null?(i.next=i,Xp(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=S6(t,e,i,n),r!==null&&(i=Jr(),di(r,t,n,i),H6(r,e,n))}}function V6(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function q6(t,e){Fc=Ud=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function H6(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Bp(t,r)}}var zd={readContext:Vn,useCallback:Dr,useContext:Dr,useEffect:Dr,useImperativeHandle:Dr,useInsertionEffect:Dr,useLayoutEffect:Dr,useMemo:Dr,useReducer:Dr,useRef:Dr,useState:Dr,useDebugValue:Dr,useDeferredValue:Dr,useTransition:Dr,useMutableSource:Dr,useSyncExternalStore:Dr,useId:Dr,unstable_isNewReconciler:!1},IR={readContext:Vn,useCallback:function(t,e){return Si().memoizedState=[t,e===void 0?null:e],t},useContext:Vn,useEffect:Xb,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,nd(4194308,4,j6.bind(null,e,t),r)},useLayoutEffect:function(t,e){return nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return nd(4,2,t,e)},useMemo:function(t,e){var r=Si();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Si();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=TR.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=Si();return t={current:t},e.memoizedState=t},useState:Jb,useDebugValue:am,useDeferredValue:function(t){return Si().memoizedState=t},useTransition:function(){var t=Jb(!1),e=t[0];return t=RR.bind(null,t[1]),Si().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=Si();if(Ot){if(r===void 0)throw Error(le(407));r=r()}else{if(r=e(),Er===null)throw Error(le(349));Jo&30||T6(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,Xb(I6.bind(null,n,s,t),[t]),n.flags|=2048,gf(9,M6.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Si(),e=Er.identifierPrefix;if(Ot){var r=as,n=os;r=(n&~(1<<32-ui(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=pf++,0")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=a);break}}}finally{q0=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Pc(t):""}function aP(t){switch(t.tag){case 5:return Pc(t.type);case 16:return Pc("Lazy");case 13:return Pc("Suspense");case 19:return Pc("SuspenseList");case 0:case 2:case 15:return t=H0(t.type,!1),t;case 11:return t=H0(t.type.render,!1),t;case 1:return t=H0(t.type,!0),t;default:return""}}function _v(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 Ma:return"Fragment";case Ta:return"Portal";case Tv:return"Profiler";case Op:return"StrictMode";case Mv:return"Suspense";case Iv:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case CA:return(t.displayName||"Context")+".Consumer";case SA:return(t._context.displayName||"Context")+".Provider";case Np:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Dp:return e=t.displayName||null,e!==null?e:_v(t.type)||"Memo";case Bs:e=t._payload,t=t._init;try{return _v(t(e))}catch{}}return null}function lP(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 _v(e);case 8:return e===Op?"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 PA(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cP(t){var e=PA(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=cP(t))}function RA(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=PA(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Sd(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 Ov(t,e){var r=e.checked;return Ft({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function mb(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 TA(t,e){e=e.checked,e!=null&&_p(t,"checked",e,!1)}function Nv(t,e){TA(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")?Dv(t,e.type,r):e.hasOwnProperty("defaultValue")&&Dv(t,e.type,oo(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function gb(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 Dv(t,e,r){(e!=="number"||Sd(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Rc=Array.isArray;function Ka(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 nf(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Dc={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},fP=["Webkit","ms","Moz","O"];Object.keys(Dc).forEach(function(t){fP.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Dc[e]=Dc[t]})});function OA(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Dc.hasOwnProperty(t)&&Dc[t]?(""+e).trim():e+"px"}function NA(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,i=OA(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,i):t[r]=i}}var uP=Ft({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 Bv(t,e){if(e){if(uP[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(le(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(le(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(le(61))}if(e.style!=null&&typeof e.style!="object")throw Error(le(62))}}function $v(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 Fv=null;function Lp(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Uv=null,Qa=null,Ya=null;function wb(t){if(t=qf(t)){if(typeof Uv!="function")throw Error(le(280));var e=t.stateNode;e&&(e=jh(e),Uv(t.stateNode,t.type,e))}}function DA(t){Qa?Ya?Ya.push(t):Ya=[t]:Qa=t}function LA(){if(Qa){var t=Qa,e=Ya;if(Ya=Qa=null,wb(t),e)for(t=0;t>>=0,t===0?32:31-(EP(t)/AP|0)|0}var du=64,hu=4194304;function Tc(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 Rd(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=Tc(a):(s&=o,s!==0&&(n=Tc(s)))}else o=r&~i,o!==0?n=Tc(o):s!==0&&(n=Tc(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 zf(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ui(e),t[e]=r}function PP(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=jc),Mb=String.fromCharCode(32),Ib=!1;function r6(t,e){switch(t){case"keyup":return tR.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function n6(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Ia=!1;function nR(t,e){switch(t){case"compositionend":return n6(e);case"keypress":return e.which!==32?null:(Ib=!0,Mb);case"textInput":return t=e.data,t===Mb&&Ib?null:t;default:return null}}function iR(t,e){if(Ia)return t==="compositionend"||!qp&&r6(t,e)?(t=e6(),Zu=Up=qs=null,Ia=!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=Db(r)}}function a6(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?a6(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function l6(){for(var t=window,e=Sd();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Sd(t.document)}return e}function Hp(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 hR(t){var e=l6(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&a6(r.ownerDocument.documentElement,r)){if(n!==null&&Hp(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=Lb(r,s);var o=Lb(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,_a=null,Gv=null,$c=null,Kv=!1;function jb(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Kv||_a==null||_a!==Sd(n)||(n=_a,"selectionStart"in n&&Hp(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}),$c&&ff($c,n)||($c=n,n=Id(Gv,"onSelect"),0Da||(t.current=ey[Da],ey[Da]=null,Da--)}function St(t,e){Da++,ey[Da]=t.current,t.current=e}var ao={},Vr=xo(ao),sn=xo(!1),Qo=ao;function fl(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 on(t){return t=t.childContextTypes,t!=null}function Od(){Mt(sn),Mt(Vr)}function qb(t,e,r){if(Vr.current!==ao)throw Error(le(168));St(Vr,e),St(sn,r)}function m6(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(le(108,lP(t)||"Unknown",i));return Ft({},r,n)}function Nd(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||ao,Qo=Vr.current,St(Vr,t),St(sn,sn.current),!0}function Hb(t,e,r){var n=t.stateNode;if(!n)throw Error(le(169));r?(t=m6(t,e,Qo),n.__reactInternalMemoizedMergedChildContext=t,Mt(sn),Mt(Vr),St(Vr,t)):Mt(sn),St(sn,r)}var rs=null,Bh=!1,s1=!1;function g6(t){rs===null?rs=[t]:rs.push(t)}function CR(t){Bh=!0,g6(t)}function bo(){if(!s1&&rs!==null){s1=!0;var t=0,e=ct;try{var r=rs;for(ct=1;t>=o,i-=o,os=1<<32-ui(e)+i|r<L?(z=M,M=null):z=M.sibling;var H=d(x,M,A[L],P);if(H===null){M===null&&(M=z);break}t&&M&&H.alternate===null&&e(x,M),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H,M=z}if(L===A.length)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;LL?(z=M,M=null):z=M.sibling;var Y=d(x,M,H.value,P);if(Y===null){M===null&&(M=z);break}t&&M&&Y.alternate===null&&e(x,M),b=s(Y,b,L),D===null?_=Y:D.sibling=Y,D=Y,M=z}if(H.done)return r(x,M),Ot&&Po(x,L),_;if(M===null){for(;!H.done;L++,H=A.next())H=u(x,H.value,P),H!==null&&(b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return Ot&&Po(x,L),_}for(M=n(x,M);!H.done;L++,H=A.next())H=v(M,x,L,H.value,P),H!==null&&(t&&H.alternate!==null&&M.delete(H.key===null?L:H.key),b=s(H,b,L),D===null?_=H:D.sibling=H,D=H);return t&&M.forEach(function(Z){return e(x,Z)}),Ot&&Po(x,L),_}function w(x,b,A,P){if(typeof A=="object"&&A!==null&&A.type===Ma&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case cu:e:{for(var _=A.key,D=b;D!==null;){if(D.key===_){if(_=A.type,_===Ma){if(D.tag===7){r(x,D.sibling),b=i(D,A.props.children),b.return=x,x=b;break e}}else if(D.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Bs&&Kb(_)===D.type){r(x,D.sibling),b=i(D,A.props),b.ref=Zl(x,D,A),b.return=x,x=b;break e}r(x,D);break}else e(x,D);D=D.sibling}A.type===Ma?(b=Vo(A.props.children,x.mode,P,A.key),b.return=x,x=b):(P=ad(A.type,A.key,A.props,null,x.mode,P),P.ref=Zl(x,b,A),P.return=x,x=P)}return o(x);case Ta:e:{for(D=A.key;b!==null;){if(b.key===D)if(b.tag===4&&b.stateNode.containerInfo===A.containerInfo&&b.stateNode.implementation===A.implementation){r(x,b.sibling),b=i(b,A.children||[]),b.return=x,x=b;break e}else{r(x,b);break}else e(x,b);b=b.sibling}b=h1(A,x.mode,P),b.return=x,x=b}return o(x);case Bs:return D=A._init,w(x,b,D(A._payload),P)}if(Rc(A))return g(x,b,A,P);if(Kl(A))return y(x,b,A,P);bu(x,A)}return typeof A=="string"&&A!==""||typeof A=="number"?(A=""+A,b!==null&&b.tag===6?(r(x,b.sibling),b=i(b,A),b.return=x,x=b):(r(x,b),b=d1(A,x.mode,P),b.return=x,x=b),o(x)):r(x,b)}return w}var dl=E6(!0),A6=E6(!1),jd=xo(null),Bd=null,Ba=null,Qp=null;function Yp(){Qp=Ba=Bd=null}function Jp(t){var e=jd.current;Mt(jd),t._currentValue=e}function ny(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 Xa(t,e){Bd=t,Qp=Ba=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(nn=!0),t.firstContext=null)}function Vn(t){var e=t._currentValue;if(Qp!==t)if(t={context:t,memoizedValue:e,next:null},Ba===null){if(Bd===null)throw Error(le(308));Ba=t,Bd.dependencies={lanes:0,firstContext:t}}else Ba=Ba.next=t;return e}var No=null;function Xp(t){No===null?No=[t]:No.push(t)}function S6(t,e,r,n){var i=e.interleaved;return i===null?(r.next=r,Xp(e)):(r.next=i.next,i.next=r),e.interleaved=r,ps(t,n)}function ps(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 $s=!1;function Zp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function C6(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 fs(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Js(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,We&2){var i=n.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),n.pending=e,ps(t,r)}return i=n.interleaved,i===null?(e.next=e,Xp(n)):(e.next=i.next,i.next=e),n.interleaved=e,ps(t,r)}function td(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,Bp(t,r)}}function Qb(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var i=null,s=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};s===null?i=s=o:s=s.next=o,r=r.next}while(r!==null);s===null?i=s=e:s=s.next=e}else i=s=e;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:s,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 $d(t,e,r,n){var i=t.updateQueue;$s=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,o===null?s=c:o.next=c,o=l;var f=t.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==o&&(a===null?f.firstBaseUpdate=c:a.next=c,f.lastBaseUpdate=l))}if(s!==null){var u=i.baseState;o=0,f=c=l=null,a=s;do{var d=a.lane,v=a.eventTime;if((n&d)===d){f!==null&&(f=f.next={eventTime:v,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=t,y=a;switch(d=e,v=r,y.tag){case 1:if(g=y.payload,typeof g=="function"){u=g.call(v,u,d);break e}u=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,d=typeof g=="function"?g.call(v,u,d):g,d==null)break e;u=Ft({},u,d);break e;case 2:$s=!0}}a.callback!==null&&a.lane!==0&&(t.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else v={eventTime:v,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(c=f=v,l=u):f=f.next=v,o|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(1);if(f===null&&(l=u),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=f,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);Xo|=o,t.lanes=o,t.memoizedState=u}}function Yb(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;er?r:4,t(!0);var n=a1.transition;a1.transition={};try{t(!1),e()}finally{ct=r,a1.transition=n}}function z6(){return qn().memoizedState}function TR(t,e,r){var n=Zs(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},V6(t))q6(e,r);else if(r=S6(t,e,r,n),r!==null){var i=Jr();di(r,t,n,i),H6(r,e,n)}}function MR(t,e,r){var n=Zs(t),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(V6(t))q6(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,hi(a,o)){var l=e.interleaved;l===null?(i.next=i,Xp(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}r=S6(t,e,i,n),r!==null&&(i=Jr(),di(r,t,n,i),H6(r,e,n))}}function V6(t){var e=t.alternate;return t===$t||e!==null&&e===$t}function q6(t,e){Fc=Ud=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function H6(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Bp(t,r)}}var zd={readContext:Vn,useCallback:Dr,useContext:Dr,useEffect:Dr,useImperativeHandle:Dr,useInsertionEffect:Dr,useLayoutEffect:Dr,useMemo:Dr,useReducer:Dr,useRef:Dr,useState:Dr,useDebugValue:Dr,useDeferredValue:Dr,useTransition:Dr,useMutableSource:Dr,useSyncExternalStore:Dr,useId:Dr,unstable_isNewReconciler:!1},IR={readContext:Vn,useCallback:function(t,e){return Ci().memoizedState=[t,e===void 0?null:e],t},useContext:Vn,useEffect:Xb,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,nd(4194308,4,j6.bind(null,e,t),r)},useLayoutEffect:function(t,e){return nd(4194308,4,t,e)},useInsertionEffect:function(t,e){return nd(4,2,t,e)},useMemo:function(t,e){var r=Ci();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Ci();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=TR.bind(null,$t,t),[n.memoizedState,t]},useRef:function(t){var e=Ci();return t={current:t},e.memoizedState=t},useState:Jb,useDebugValue:am,useDeferredValue:function(t){return Ci().memoizedState=t},useTransition:function(){var t=Jb(!1),e=t[0];return t=RR.bind(null,t[1]),Ci().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=$t,i=Ci();if(Ot){if(r===void 0)throw Error(le(407));r=r()}else{if(r=e(),Er===null)throw Error(le(349));Jo&30||T6(n,e,r)}i.memoizedState=r;var s={value:r,getSnapshot:e};return i.queue=s,Xb(I6.bind(null,n,s,t),[t]),n.flags|=2048,gf(9,M6.bind(null,n,s,r,e),void 0,null),r},useId:function(){var t=Ci(),e=Er.identifierPrefix;if(Ot){var r=as,n=os;r=(n&~(1<<32-ui(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=pf++,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[Pi]=e,t[hf]=n,t5(t,e,!1,!1),e.stateNode=t;e:{switch(o=$v(r,n),r){case"dialog":Tt("cancel",t),Tt("close",t),i=n;break;case"iframe":case"object":case"embed":Tt("load",t),i=n;break;case"video":case"audio":for(i=0;ivl&&(e.flags|=128,n=!0,Zl(s,!1),e.lanes=4194304)}else{if(!n)if(t=Fd(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Zl(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ot)return Lr(e),null}else 2*nr()-s.renderingStartTime>vl&&r!==1073741824&&(e.flags|=128,n=!0,Zl(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=nr(),e.sibling=null,r=jt.current,St(jt,n?r&1|2:r&1),e):(Lr(e),null);case 22:case 23:return hm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?pn&1073741824&&(Lr(e),e.subtreeFlags&6&&(e.flags|=8192)):Lr(e),null;case 24:return null;case 25:return null}throw Error(le(156,e.tag))}function $R(t,e){switch(Gp(e),e.tag){case 1:return on(e.type)&&Od(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return dl(),Mt(sn),Mt(Vr),rm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return tm(e),null;case 13:if(Mt(jt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(le(340));fl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Mt(jt),null;case 4:return dl(),null;case 10:return Jp(e.type._context),null;case 22:case 23:return hm(),null;case 24:return null;default:return null}}var Eu=!1,Br=!1,FR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function Ba(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 dy(t,e,r){try{r()}catch(n){Wt(t,e,n)}}var c2=!1;function UR(t,e){if(Qv=Td,t=l6(),Hp(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,d=null;t:for(;;){for(var v;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),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===t)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yv={focusedElem:t,selectionRange:r},Td=!1,xe=e;xe!==null;)if(e=xe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,xe=t;else for(;xe!==null;){e=xe;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 y=g.memoizedProps,w=g.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:si(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=e.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(le(163))}}catch(P){Wt(e,e.return,P)}if(t=e.sibling,t!==null){t.return=e.return,xe=t;break}xe=e.return}return g=c2,c2=!1,g}function Uc(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&&dy(e,r,s)}i=i.next}while(i!==n)}}function Uh(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 hy(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 i5(t){var e=t.alternate;e!==null&&(t.alternate=null,i5(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Pi],delete e[hf],delete e[Zv],delete e[AR],delete e[SR])),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 s5(t){return t.tag===5||t.tag===3||t.tag===4}function f2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||s5(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 vy(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=_d));else if(n!==4&&(t=t.child,t!==null))for(vy(t,e,r),t=t.sibling;t!==null;)vy(t,e,r),t=t.sibling}function yy(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(yy(t,e,r),t=t.sibling;t!==null;)yy(t,e,r),t=t.sibling}var kr=null,ai=!1;function Ts(t,e,r){for(r=r.child;r!==null;)o5(t,e,r),r=r.sibling}function o5(t,e,r){if(Di&&typeof Di.onCommitFiberUnmount=="function")try{Di.onCommitFiberUnmount(Oh,r)}catch{}switch(r.tag){case 5:Br||Ba(r,e);case 6:var n=kr,i=ai;kr=null,Ts(t,e,r),kr=n,ai=i,kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):kr.removeChild(r.stateNode));break;case 18:kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?i1(t.parentNode,r):t.nodeType===1&&i1(t,r),lf(t)):i1(kr,r.stateNode));break;case 4:n=kr,i=ai,kr=r.stateNode.containerInfo,ai=!0,Ts(t,e,r),kr=n,ai=i;break;case 0:case 11:case 14:case 15:if(!Br&&(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)&&dy(r,e,o),i=i.next}while(i!==n)}Ts(t,e,r);break;case 1:if(!Br&&(Ba(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)}Ts(t,e,r);break;case 21:Ts(t,e,r);break;case 22:r.mode&1?(Br=(n=Br)||r.memoizedState!==null,Ts(t,e,r),Br=n):Ts(t,e,r);break;default:Ts(t,e,r)}}function u2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new FR),e.forEach(function(n){var i=YR.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=nr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VR(n/1960))-n,10t?16:t,qs===null)var n=!1;else{if(t=qs,qs=null,Hd=0,We&6)throw Error(le(331));var i=We;for(We|=4,xe=t.current;xe!==null;){var s=xe,o=s.child;if(xe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lnr()-um?zo(t,0):fm|=r),an(t,e)}function v5(t,e){e===0&&(t.mode&1?(e=hu,hu<<=1,!(hu&130023424)&&(hu=4194304)):e=1);var r=Jr();t=ps(t,e),t!==null&&(zf(t,e,r),an(t,r))}function QR(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),v5(t,r)}function YR(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(le(314))}n!==null&&n.delete(e),v5(t,r)}var y5;y5=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||sn.current)nn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return nn=!1,jR(t,e,r);nn=!!(t.flags&131072)}else nn=!1,Ot&&e.flags&1048576&&x6(e,Ld,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;id(t,e),t=e.pendingProps;var i=cl(e,Vr.current);Ja(e,r),i=im(null,e,n,t,i,r);var s=sm();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,on(n)?(s=!0,Nd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zp(e),i.updater=Fh,e.stateNode=i,i._reactInternals=e,sy(e,n,t,r),e=ly(null,e,n,!0,s,r)):(e.tag=0,Ot&&s&&Wp(e),Qr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(id(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=XR(n),t=si(n,t),i){case 0:e=ay(null,e,n,t,r);break e;case 1:e=o2(null,e,n,t,r);break e;case 11:e=i2(null,e,n,t,r);break e;case 14:e=s2(null,e,n,si(n.type,t),r);break e}throw Error(le(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),ay(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),o2(t,e,n,i,r);case 3:e:{if(X6(e),t===null)throw Error(le(387));n=e.pendingProps,s=e.memoizedState,i=s.element,C6(t,e),$d(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=hl(Error(le(423)),e),e=a2(t,e,n,r,i);break e}else if(n!==i){i=hl(Error(le(424)),e),e=a2(t,e,n,r,i);break e}else for(wn=Qs(e.stateNode.containerInfo.firstChild),En=e,Ot=!0,ci=null,r=A6(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(fl(),n===i){e=ms(t,e,r);break e}Qr(t,e,n,r)}e=e.child}return e;case 5:return k6(e),t===null&&ry(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Jv(n,i)?o=null:s!==null&&Jv(n,s)&&(e.flags|=32),J6(t,e),Qr(t,e,o,r),e.child;case 6:return t===null&&ry(e),null;case 13:return Z6(t,e,r);case 4:return em(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=ul(e,null,n,r):Qr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),i2(t,e,n,i,r);case 7:return Qr(t,e,e.pendingProps,r),e.child;case 8:return Qr(t,e,e.pendingProps.children,r),e.child;case 12:return Qr(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(jd,n._currentValue),n._currentValue=o,s!==null)if(hi(s.value,o)){if(s.children===i.children&&!sn.current){e=ms(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=fs(-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),ny(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(le(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),ny(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}Qr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Ja(e,r),i=Vn(i),n=n(i),e.flags|=1,Qr(t,e,n,r),e.child;case 14:return n=e.type,i=si(n,e.pendingProps),i=si(n.type,i),s2(t,e,n,i,r);case 15:return Q6(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),id(t,e),e.tag=1,on(n)?(t=!0,Nd(e)):t=!1,Ja(e,r),W6(e,n,i),sy(e,n,i,r),ly(null,e,n,!0,t,r);case 19:return e5(t,e,r);case 22:return Y6(t,e,r)}throw Error(le(156,e.tag))};function p5(t,e){return VA(t,e)}function JR(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 Un(t,e,r,n){return new JR(t,e,r,n)}function ym(t){return t=t.prototype,!(!t||!t.isReactComponent)}function XR(t){if(typeof t=="function")return ym(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Np)return 11;if(t===Dp)return 14}return 2}function Zs(t,e){var r=t.alternate;return r===null?(r=Un(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 ad(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")ym(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ta:return Vo(r.children,i,s,e);case Op:o=8,i|=8;break;case Tv:return t=Un(12,r,e,i|2),t.elementType=Tv,t.lanes=s,t;case Mv:return t=Un(13,r,e,i),t.elementType=Mv,t.lanes=s,t;case Iv:return t=Un(19,r,e,i),t.elementType=Iv,t.lanes=s,t;case kA:return Vh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case SA:o=10;break e;case CA:o=9;break e;case Np:o=11;break e;case Dp:o=14;break e;case js:o=16,n=null;break e}throw Error(le(130,t==null?t:typeof t,""))}return e=Un(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Vo(t,e,r,n){return t=Un(7,t,n,e),t.lanes=r,t}function Vh(t,e,r,n){return t=Un(22,t,n,e),t.elementType=kA,t.lanes=r,t.stateNode={isHidden:!1},t}function d1(t,e,r){return t=Un(6,t,null,e),t.lanes=r,t}function h1(t,e,r){return e=Un(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ZR(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=G0(0),this.expirationTimes=G0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G0(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pm(t,e,r,n,i,s,o,a,l){return t=new ZR(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Un(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zp(s),t}function eT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b5)}catch(t){console.error(t)}}b5(),bA.exports=Rn;var ks=bA.exports;const w5=Ss(ks),sT=oA({__proto__:null,default:w5},[ks]);var x2=ks;Pv.createRoot=x2.createRoot,Pv.hydrateRoot=x2.hydrateRoot;const E5=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Kh=p.createContext({}),Qh=p.createContext(null),Yh=typeof document<"u",bm=Yh?p.useLayoutEffect:p.useEffect,A5=p.createContext({strict:!1}),wm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oT="framerAppearId",S5="data-"+wm(oT);function aT(t,e,r,n){const{visualElement:i}=p.useContext(Kh),s=p.useContext(A5),o=p.useContext(Qh),a=p.useContext(E5).reducedMotion,l=p.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.useInsertionEffect(()=>{c&&c.update(r,o)});const f=p.useRef(!!(r[S5]&&!window.HandoffComplete));return bm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Fa(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function lT(t,e,r){return p.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Fa(r)&&(r.current=n))},[e])}function bf(t){return typeof t=="string"||Array.isArray(t)}function Jh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Am=["initial",...Em];function Xh(t){return Jh(t.animate)||Am.some(e=>bf(t[e]))}function C5(t){return!!(Xh(t)||t.variants)}function cT(t,e){if(Xh(t)){const{initial:r,animate:n}=t;return{initial:r===!1||bf(r)?r:void 0,animate:bf(n)?n:void 0}}return t.inherit!==!1?e:{}}function fT(t){const{initial:e,animate:r}=cT(t,p.useContext(Kh));return p.useMemo(()=>({initial:e,animate:r}),[b2(e),b2(r)])}function b2(t){return Array.isArray(t)?t.join(" "):t}const w2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],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"]},wf={};for(const t in w2)wf[t]={isEnabled:e=>w2[t].some(r=>!!e[r])};function uT(t){for(const e in t)wf[e]={...wf[e],...t[e]}}const Sm=p.createContext({}),k5=p.createContext({}),dT=Symbol.for("motionComponentSymbol");function hT({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&uT(t);function s(a,l){let c;const f={...p.useContext(E5),...a,layoutId:vT(a)},{isStatic:u}=f,d=fT(a),v=n(a,u);if(!u&&Yh){d.visualElement=aT(i,v,f,e);const g=p.useContext(k5),y=p.useContext(A5).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,g))}return p.createElement(Kh.Provider,{value:d},c&&d.visualElement?p.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,lT(v,d.visualElement,l),v,u,d.visualElement))}const o=p.forwardRef(s);return o[dT]=i,o}function vT({layoutId:t}){const e=p.useContext(Sm).id;return e&&t!==void 0?e+"-"+t:t}function yT(t){function e(n,i={}){return hT(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 pT=["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 Cm(t){return typeof t!="string"||t.includes("-")?!1:!!(pT.indexOf(t)>-1||/[A-Z]/.test(t))}const Kd={};function mT(t){Object.assign(Kd,t)}const Wf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ua=new Set(Wf);function P5(t,{layout:e,layoutId:r}){return ua.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Kd[t]||t==="opacity")}const ln=t=>!!(t&&t.getVelocity),gT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xT=Wf.length;function bT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),T5=R5("--"),by=R5("var(--"),wT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ET=(t,e)=>e&&typeof t=="number"?e.transform(t):t,ao=(t,e,r)=>Math.min(Math.max(r,t),e),da={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qc={...da,transform:t=>ao(0,1,t)},Cu={...da,default:1},Hc=t=>Math.round(t*1e5)/1e5,Zh=/(-)?([\d]*\.?[\d])+/g,M5=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,AT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gf(t){return typeof t=="string"}const Kf=t=>({test:e=>Gf(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Os=Kf("deg"),ji=Kf("%"),Ee=Kf("px"),ST=Kf("vh"),CT=Kf("vw"),E2={...ji,parse:t=>ji.parse(t)/100,transform:t=>ji.transform(t*100)},A2={...da,transform:Math.round},I5={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,size:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,rotate:Os,rotateX:Os,rotateY:Os,rotateZ:Os,scale:Cu,scaleX:Cu,scaleY:Cu,scaleZ:Cu,skew:Os,skewX:Os,skewY:Os,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:qc,originX:E2,originY:E2,originZ:Ee,zIndex:A2,fillOpacity:qc,strokeOpacity:qc,numOctaves:A2};function km(t,e,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const d=e[u];if(T5(u)){s[u]=d;continue}const v=I5[u],g=ET(d,v);if(ua.has(u)){if(l=!0,o[u]=g,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(e.transform||(l||n?i.transform=bT(t.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const Pm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _5(t,e,r){for(const n in e)!ln(e[n])&&!P5(n,r)&&(t[n]=e[n])}function kT({transformTemplate:t},e,r){return p.useMemo(()=>{const n=Pm();return km(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function PT(t,e,r){const n=t.style||{},i={};return _5(i,n,t),Object.assign(i,kT(t,e,r)),t.transformValues?t.transformValues(i):i}function RT(t,e,r){const n={},i=PT(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 TT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qd(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||TT.has(t)}let O5=t=>!Qd(t);function MT(t){t&&(O5=e=>e.startsWith("on")?!Qd(e):t(e))}try{MT(require("@emotion/is-prop-valid").default)}catch{}function IT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(O5(i)||r===!0&&Qd(i)||!e&&!Qd(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function S2(t,e,r){return typeof t=="string"?t:Ee.transform(e+r*t)}function _T(t,e,r){const n=S2(e,t.x,t.width),i=S2(r,t.y,t.height);return`${n} ${i}`}const OT={offset:"stroke-dashoffset",array:"stroke-dasharray"},NT={offset:"strokeDashoffset",array:"strokeDasharray"};function DT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?OT:NT;t[s.offset]=Ee.transform(-n);const o=Ee.transform(e),a=Ee.transform(r);t[s.array]=`${o} ${a}`}function Rm(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(km(t,c,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:g,dimensions:y}=t;v.transform&&(y&&(g.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=_T(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(v.x=e),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&&DT(v,o,a,l,!1)}const N5=()=>({...Pm(),attrs:{}}),Tm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function LT(t,e,r,n){const i=p.useMemo(()=>{const s=N5();return Rm(s,e,{enableHardwareAcceleration:!1},Tm(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};_5(s,t.style,t),i.style={...s,...i.style}}return i}function jT(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Cm(r)?LT:RT)(n,s,o,r),f={...IT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=p.useMemo(()=>ln(u)?u.get():u,[u]);return p.createElement(r,{...f,children:d})}}function D5(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 L5=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 j5(t,e,r,n){D5(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(L5.has(i)?i:wm(i),e.attrs[i])}function Mm(t,e){const{style:r}=t,n={};for(const i in r)(ln(r[i])||e.style&&ln(e.style[i])||P5(i,t))&&(n[i]=r[i]);return n}function B5(t,e){const r=Mm(t,e);for(const n in t)if(ln(t[n])||ln(e[n])){const i=Wf.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function Im(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}function $5(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const Yd=t=>Array.isArray(t),BT=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$T=t=>Yd(t)?t[t.length-1]||0:t;function ld(t){const e=ln(t)?t.get():t;return BT(e)?e.toValue():e}function FT({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:UT(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const F5=t=>(e,r)=>{const n=p.useContext(Kh),i=p.useContext(Qh),s=()=>FT(t,e,n,i);return r?s():$5(s)};function UT(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=ld(s[d]);let{initial:o,animate:a}=t;const l=Xh(t),c=C5(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(v=>{const g=Im(t,v);if(!g)return;const{transitionEnd:y,transition:w,...x}=g;for(const b in x){let S=x[b];if(Array.isArray(S)){const P=f?S.length-1:0;S=S[P]}S!==null&&(i[b]=S)}for(const b in y)i[b]=y[b]}),i}const Gt=t=>t;class C2{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function zT(t){let e=new C2,r=new C2,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?e:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=e.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c(u[d]=zT(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,VT),1),i.timestamp=u,i.isProcessing=!0,ku.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:ku.reduce((u,d)=>{const v=s[d];return u[d]=(g,y=!1,w=!1)=>(r||l(),v.schedule(g,y,w)),u},{}),cancel:u=>ku.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:Ct,cancel:gs,state:jr,steps:v1}=qT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),HT={useVisualState:F5({scrapeMotionValuesFromProps:B5,createRenderState:N5,onMount:(t,e,{renderState:r,latestValues:n})=>{Ct.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{Rm(r,n,{enableHardwareAcceleration:!1},Tm(e.tagName),t.transformTemplate),j5(e,r)})}})},WT={useVisualState:F5({scrapeMotionValuesFromProps:Mm,createRenderState:Pm})};function GT(t,{forwardMotionProps:e=!1},r,n){return{...Cm(t)?HT:WT,preloadedFeatures:r,useRender:jT(e),createVisualElement:n,Component:t}}function ls(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const U5=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function e0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const KT=t=>e=>U5(e)&&t(e,e0(e));function us(t,e,r,n){return ls(t,e,KT(r),n)}const QT=(t,e)=>r=>e(t(r)),eo=(...t)=>t.reduce(QT);function z5(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const k2=z5("dragHorizontal"),P2=z5("dragVertical");function V5(t){let e=!1;if(t==="y")e=P2();else if(t==="x")e=k2();else{const r=k2(),n=P2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function q5(){const t=V5(!0);return t?(t(),!1):!0}class bo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function R2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||q5())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&Ct.update(()=>a[n](s,o))};return us(t.current,r,i,{passive:!t.getProps()[n]})}class YT extends bo{mount(){this.unmount=eo(R2(this.node,!0),R2(this.node,!1))}unmount(){}}class JT extends bo{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=eo(ls(this.node.current,"focus",()=>this.onFocus()),ls(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const H5=(t,e)=>e?t===e?!0:H5(t,e.parentElement):!1;function y1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,e0(r))}class XT extends bo{constructor(){super(...arguments),this.removeStartListeners=Gt,this.removeEndListeners=Gt,this.removeAccessibleListeners=Gt,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=us(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();Ct.update(()=>{!u&&!H5(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=us(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=eo(s,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||y1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Ct.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ls(this.node.current,"keyup",o),y1("down",(a,l)=>{this.startPress(a,l)})},r=ls(this.node.current,"keydown",e),n=()=>{this.isPressing&&y1("cancel",(s,o)=>this.cancelPress(s,o))},i=ls(this.node.current,"blur",n);this.removeAccessibleListeners=eo(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ct.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!q5()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ct.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=us(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ls(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=eo(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const wy=new WeakMap,p1=new WeakMap,ZT=t=>{const e=wy.get(t.target);e&&e(t)},eM=t=>{t.forEach(ZT)};function tM({root:t,...e}){const r=t||document;p1.has(r)||p1.set(r,{});const n=p1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(eM,{root:t,...e})),n[i]}function rM(t,e,r){const n=tM(e);return wy.set(t,r),n.observe(t),()=>{wy.delete(t),n.unobserve(t)}}const nM={some:0,all:1};class iM extends bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:nM[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return rM(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(sM(e,r))&&this.startObserver()}unmount(){}}function sM({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const oM={inView:{Feature:iM},tap:{Feature:XT},focus:{Feature:JT},hover:{Feature:YT}};function W5(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;ne[n]=r.get()),e}function lM(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function t0(t,e,r){const n=t.getProps();return Im(n,e,r!==void 0?r:n.custom,aM(t),lM(t))}let cM=Gt,_m=Gt;const to=t=>t*1e3,ds=t=>t/1e3,fM={current:!1},G5=t=>Array.isArray(t)&&typeof t[0]=="number";function K5(t){return!!(!t||typeof t=="string"&&Q5[t]||G5(t)||Array.isArray(t)&&t.every(K5))}const Ic=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Q5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ic([0,.65,.55,1]),circOut:Ic([.55,0,1,.45]),backIn:Ic([.31,.01,.66,-.59]),backOut:Ic([.33,1.53,.69,.99])};function Y5(t){if(t)return G5(t)?Ic(t):Array.isArray(t)?t.map(Y5):Q5[t]}function uM(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:r};l&&(c.offset=l);const f=Y5(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function dM(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const J5=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,hM=1e-7,vM=12;function yM(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=J5(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>hM&&++ayM(s,0,1,t,r);return s=>s===0||s===1?s:J5(i(s),e,n)}const pM=Qf(.42,0,1,1),mM=Qf(0,0,.58,1),X5=Qf(.42,0,.58,1),gM=t=>Array.isArray(t)&&typeof t[0]!="number",Z5=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,e8=t=>e=>1-t(1-e),Om=t=>1-Math.sin(Math.acos(t)),t8=e8(Om),xM=Z5(Om),r8=Qf(.33,1.53,.69,.99),Nm=e8(r8),bM=Z5(Nm),wM=t=>(t*=2)<1?.5*Nm(t):.5*(2-Math.pow(2,-10*(t-1))),EM={linear:Gt,easeIn:pM,easeInOut:X5,easeOut:mM,circIn:Om,circInOut:xM,circOut:t8,backIn:Nm,backInOut:bM,backOut:r8,anticipate:wM},T2=t=>{if(Array.isArray(t)){_m(t.length===4);const[e,r,n,i]=t;return Qf(e,r,n,i)}else if(typeof t=="string")return EM[t];return t},Dm=(t,e)=>r=>!!(Gf(r)&&AT.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),n8=(t,e,r)=>n=>{if(!Gf(n))return n;const[i,s,o,a]=n.match(Zh);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},AM=t=>ao(0,255,t),m1={...da,transform:t=>Math.round(AM(t))},Lo={test:Dm("rgb","red"),parse:n8("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+m1.transform(t)+", "+m1.transform(e)+", "+m1.transform(r)+", "+Hc(qc.transform(n))+")"};function SM(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 Ey={test:Dm("#"),parse:SM,transform:Lo.transform},Ua={test:Dm("hsl","hue"),parse:n8("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+ji.transform(Hc(e))+", "+ji.transform(Hc(r))+", "+Hc(qc.transform(n))+")"},Gr={test:t=>Lo.test(t)||Ey.test(t)||Ua.test(t),parse:t=>Lo.test(t)?Lo.parse(t):Ua.test(t)?Ua.parse(t):Ey.parse(t),transform:t=>Gf(t)?t:t.hasOwnProperty("red")?Lo.transform(t):Ua.transform(t)},Bt=(t,e,r)=>-r*t+r*e+t;function g1(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 CM({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=g1(l,a,t+1/3),s=g1(l,a,t),o=g1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const x1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},kM=[Ey,Lo,Ua],PM=t=>kM.find(e=>e.test(t));function M2(t){const e=PM(t);let r=e.parse(t);return e===Ua&&(r=CM(r)),r}const i8=(t,e)=>{const r=M2(t),n=M2(e),i={...r};return s=>(i.red=x1(r.red,n.red,s),i.green=x1(r.green,n.green,s),i.blue=x1(r.blue,n.blue,s),i.alpha=Bt(r.alpha,n.alpha,s),Lo.transform(i))};function RM(t){var e,r;return isNaN(t)&&Gf(t)&&(((e=t.match(Zh))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(M5))===null||r===void 0?void 0:r.length)||0)>0}const s8={regex:wT,countKey:"Vars",token:"${v}",parse:Gt},o8={regex:M5,countKey:"Colors",token:"${c}",parse:Gr.parse},a8={regex:Zh,countKey:"Numbers",token:"${n}",parse:da.parse};function b1(t,{regex:e,countKey:r,token:n,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(i)))}function Jd(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&b1(r,s8),b1(r,o8),b1(r,a8),r}function l8(t){return Jd(t).values}function c8(t){const{values:e,numColors:r,numVars:n,tokenised:i}=Jd(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function MM(t){const e=l8(t);return c8(t)(e.map(TM))}const lo={test:RM,parse:l8,createTransformer:c8,getAnimatableNone:MM},f8=(t,e)=>r=>`${r>0?e:t}`;function u8(t,e){return typeof t=="number"?r=>Bt(t,e,r):Gr.test(t)?i8(t,e):t.startsWith("var(")?f8(t,e):h8(t,e)}const d8=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>u8(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]=u8(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},h8=(t,e)=>{const r=lo.createTransformer(e),n=Jd(t),i=Jd(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?eo(d8(n.values,i.values),r):f8(t,e)},Ef=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},I2=(t,e)=>r=>Bt(t,e,r);function _M(t){return typeof t=="number"?I2:typeof t=="string"?Gr.test(t)?i8:h8:Array.isArray(t)?d8:typeof t=="object"?IM:I2}function OM(t,e,r){const n=[],i=r||_M(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=OM(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(ao(t[0],t[s-1],c)):l}function NM(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Ef(0,e,n);t.push(Bt(r,1,i))}}function DM(t){const e=[0];return NM(e,t.length-1),e}function LM(t,e){return t.map(r=>r*e)}function jM(t,e){return t.map(()=>e||X5).splice(0,t.length-1)}function Xd({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=gM(n)?n.map(T2):T2(n),s={done:!1,value:e[0]},o=LM(r&&r.length===e.length?r:DM(e),t),a=v8(o,e,{ease:Array.isArray(i)?i:jM(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function y8(t,e){return e?t*(1e3/e):0}const BM=5;function p8(t,e,r){const n=Math.max(e-BM,0);return y8(r-t(n),e-n)}const w1=.001,$M=.01,_2=10,FM=.05,UM=1;function zM({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;cM(t<=to(_2));let o=1-e;o=ao(FM,UM,o),t=ao($M,_2,ds(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Ay(c,o),g=Math.exp(-u);return w1-d/v*g},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-u),y=Ay(Math.pow(c,2),o);return(-i(c)+w1>0?-1:1)*((d-v)*g)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-w1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=qM(i,s,a);if(t=to(t),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 VM=12;function qM(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function GM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!O2(t,WM)&&O2(t,HM)){const r=zM(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function m8({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:d}=GM({...n,velocity:-ds(n.velocity||0)}),v=u||0,g=l/(2*Math.sqrt(a*c)),y=s-i,w=ds(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(g<1){const S=Ay(w,g);b=P=>{const _=Math.exp(-g*w*P);return s-_*((v+g*w*y)/S*Math.sin(S*P)+y*Math.cos(S*P))}}else if(g===1)b=S=>s-Math.exp(-w*S)*(y+(v+w*y)*S);else{const S=w*Math.sqrt(g*g-1);b=P=>{const _=Math.exp(-g*w*P),D=Math.min(S*P,300);return s-_*((v+g*w*y)*Math.sinh(D)+S*y*Math.cosh(D))/S}}return{calculatedDuration:d&&f||null,next:S=>{const P=b(S);if(d)o.done=S>=f;else{let _=v;S!==0&&(g<1?_=p8(b,S,P):_=0);const D=Math.abs(_)<=r,M=Math.abs(s-P)<=e;o.done=D&&M}return o.value=o.done?s:P,o}}}function N2({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},v=L=>a!==void 0&&Ll,g=L=>a===void 0?l:l===void 0||Math.abs(a-L)-y*Math.exp(-L/n),S=L=>x+b(L),P=L=>{const z=b(L),H=S(L);d.done=Math.abs(z)<=c,d.value=d.done?x:H};let _,D;const M=L=>{v(d.value)&&(_=L,D=m8({keyframes:[d.value,g(d.value)],velocity:p8(S,L,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return M(0),{calculatedDuration:null,next:L=>{let z=!1;return!D&&_===void 0&&(z=!0,P(L),M(L)),_!==void 0&&L>_?D.next(L-_):(!z&&P(L),d)}}}const KM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ct.update(e,!0),stop:()=>gs(e),now:()=>jr.isProcessing?jr.timestamp:performance.now()}},D2=2e4;function L2(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=D2?1/0:e}const QM={decay:N2,inertia:N2,tween:Xd,keyframes:Xd,spring:m8};function Zd({autoplay:t=!0,delay:e=0,driver:r=KM,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,g=!1,y,w;const x=()=>{w=new Promise(C=>{y=C})};x();let b;const S=QM[i]||Xd;let P;S!==Xd&&typeof n[0]!="number"&&(P=v8([0,100],n,{clamp:!1}),n=[0,100]);const _=S({...d,keyframes:n});let D;a==="mirror"&&(D=S({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let M="idle",L=null,z=null,H=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=L2(_));const{calculatedDuration:Y}=_;let Z=1/0,O=1/0;Y!==null&&(Z=Y+o,O=Z*(s+1)-o);let h=0;const A=C=>{if(z===null)return;v>0&&(z=Math.min(z,C)),v<0&&(z=Math.min(C-O/v,z)),L!==null?h=L:h=Math.round(C-z)*v;const m=h-e*(v>=0?1:-1),T=v>=0?m<0:m>O;h=Math.max(m,0),M==="finished"&&L===null&&(h=O);let F=h,E=_;if(s){const K=Math.min(h,O)/Z;let oe=Math.floor(K),ee=K%1;!ee&&K>=1&&(ee=1),ee===1&&oe--,oe=Math.min(oe,s+1),!!(oe%2)&&(a==="reverse"?(ee=1-ee,o&&(ee-=o/Z)):a==="mirror"&&(E=D)),F=ao(0,1,ee)*Z}const B=T?{done:!1,value:n[0]}:E.next(F);P&&(B.value=P(B.value));let{done:V}=B;!T&&Y!==null&&(V=v>=0?h>=O:h<=0);const q=L===null&&(M==="finished"||M==="running"&&V);return u&&u(B.value),q&&R(),B},k=()=>{b&&b.stop(),b=void 0},I=()=>{M="idle",k(),y(),x(),z=H=null},R=()=>{M="finished",f&&f(),k(),y()},N=()=>{if(g)return;b||(b=r(A));const C=b.now();l&&l(),L!==null?z=C-L:(!z||M==="finished")&&(z=C),M==="finished"&&x(),H=z,L=null,M="running",b.start()};t&&N();const j={then(C,m){return w.then(C,m)},get time(){return ds(h)},set time(C){C=to(C),h=C,L!==null||!b||v===0?L=C:z=b.now()-C/v},get duration(){const C=_.calculatedDuration===null?L2(_):_.calculatedDuration;return ds(C)},get speed(){return v},set speed(C){C===v||!b||(v=C,j.time=ds(h))},get state(){return M},play:N,pause:()=>{M="paused",L=h},stop:()=>{g=!0,M!=="idle"&&(M="idle",c&&c(),I())},cancel:()=>{H!==null&&A(H),I()},complete:()=>{M="finished"},sample:C=>(z=0,A(C))};return j}function YM(t){let e;return()=>(e===void 0&&(e=t()),e)}const JM=YM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),XM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pu=10,ZM=2e4,eI=(t,e)=>e.type==="spring"||t==="backgroundColor"||!K5(e.ease);function tI(t,e,{onUpdate:r,onComplete:n,...i}){if(!(JM()&&XM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,c=!1;const f=()=>{l=new Promise(S=>{a=S})};f();let{keyframes:u,duration:d=300,ease:v,times:g}=i;if(eI(e,i)){const S=Zd({...i,repeat:0,delay:0});let P={done:!1,value:u[0]};const _=[];let D=0;for(;!P.done&&D{c=!1,y.cancel()},x=()=>{c=!0,Ct.update(w),a(),f()};return y.onfinish=()=>{c||(t.set(dM(u,i)),n&&n(),x())},{then(S,P){return l.then(S,P)},attachTimeline(S){return y.timeline=S,y.onfinish=null,Gt},get time(){return ds(y.currentTime||0)},set time(S){y.currentTime=to(S)},get speed(){return y.playbackRate},set speed(S){y.playbackRate=S},get duration(){return ds(d)},play:()=>{o||(y.play(),gs(w))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:S}=y;if(S){const P=Zd({...i,autoplay:!1});t.setWithVelocity(P.sample(S-Pu).value,P.sample(S).value,Pu)}x()},complete:()=>{c||y.finish()},cancel:x}}function rI({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const i=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Gt,pause:Gt,stop:Gt,then:s=>(s(),Promise.resolve()),cancel:Gt,complete:Gt});return e?Zd({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const nI={type:"spring",stiffness:500,damping:25,restSpeed:10},iI=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),sI={type:"keyframes",duration:.8},oI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aI=(t,{keyframes:e})=>e.length>2?sI:ua.has(t)?t.startsWith("scale")?iI(e[1]):nI:oI,Sy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(lo.test(e)||e==="0")&&!e.startsWith("url(")),lI=new Set(["brightness","contrast","saturate","opacity"]);function cI(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Zh)||[];if(!n)return t;const i=r.replace(n,"");let s=lI.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const fI=/([a-z-]*)\(.*?\)/g,Cy={...lo,getAnimatableNone:t=>{const e=t.match(fI);return e?e.map(cI).join(" "):t}},uI={...I5,color:Gr,backgroundColor:Gr,outlineColor:Gr,fill:Gr,stroke:Gr,borderColor:Gr,borderTopColor:Gr,borderRightColor:Gr,borderBottomColor:Gr,borderLeftColor:Gr,filter:Cy,WebkitFilter:Cy},Lm=t=>uI[t];function g8(t,e){let r=Lm(t);return r!==Cy&&(r=lo),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const x8=t=>/^0[^.\s]+$/.test(t);function dI(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||x8(t)}function hI(t,e,r,n){const i=Sy(e,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:t.get();let a;const l=[];for(let c=0;ci=>{const s=jm(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-to(o);const l=hI(e,t,r,s),c=l[0],f=l[l.length-1],u=Sy(t,c),d=Sy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:g=>{e.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(vI(s)||(v={...v,...aI(t,v)}),v.duration&&(v.duration=to(v.duration)),v.repeatDelay&&(v.repeatDelay=to(v.repeatDelay)),!u||!d||fM.current||s.type===!1||yI.skipAnimations)return rI(v);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const g=tI(e,t,v);if(g)return g}return Zd(v)};function eh(t){return!!(ln(t)&&t.add)}const b8=t=>/^\-?\d*\.?\d+$/.test(t);function $m(t,e){t.indexOf(e)===-1&&t.push(e)}function Fm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Um{constructor(){this.subscriptions=[]}add(e){return $m(this.subscriptions,e),()=>Fm(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 mI{constructor(e,r={}){this.version="10.18.0",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}=jr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ct.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=()=>Ct.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=pI(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Um);const n=this.events[e].add(r);return e==="change"?()=>{n(),Ct.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?y8(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),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(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function yl(t,e){return new mI(t,e)}const w8=t=>e=>e.test(t),gI={test:t=>t==="auto",parse:t=>t},E8=[da,Ee,ji,Os,CT,ST,gI],tc=t=>E8.find(w8(t)),xI=[...E8,Gr,lo],bI=t=>xI.find(w8(t));function wI(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,yl(r))}function EI(t,e){const r=t0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=$T(s[o]);wI(t,o,a)}}function AI(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;al.remove(u))),c.push(w)}return o&&Promise.all(c).then(()=>{o&&EI(t,o)}),c}function ky(t,e,r={}){const n=t0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(A8(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return RI(t,e,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function RI(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(TI).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(ky(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function TI(t,e){return t.sortNodePosition(e)}function MI(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>ky(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=ky(t,e,r);else{const i=typeof e=="function"?t0(t,e,r.custom):e;n=Promise.all(A8(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const II=[...Em].reverse(),_I=Em.length;function OI(t){return e=>Promise.all(e.map(({animation:r,options:n})=>MI(t,r,n)))}function NI(t){let e=OI(t);const r=LI();let n=!0;const i=(l,c)=>{const f=t0(t,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],v=new Set;let g={},y=1/0;for(let x=0;x<_I;x++){const b=II[x],S=r[b],P=f[b]!==void 0?f[b]:u[b],_=bf(P),D=b===c?S.isActive:null;D===!1&&(y=x);let M=P===u[b]&&P!==f[b]&&_;if(M&&n&&t.manuallyAnimateOnMount&&(M=!1),S.protectedKeys={...g},!S.isActive&&D===null||!P&&!S.prevProp||Jh(P)||typeof P=="boolean")continue;let z=DI(S.prevProp,P)||b===c&&S.isActive&&!M&&_||x>y&&_,H=!1;const Y=Array.isArray(P)?P:[P];let Z=Y.reduce(i,{});D===!1&&(Z={});const{prevResolvedValues:O={}}=S,h={...O,...Z},A=k=>{z=!0,v.has(k)&&(H=!0,v.delete(k)),S.needsAnimating[k]=!0};for(const k in h){const I=Z[k],R=O[k];if(g.hasOwnProperty(k))continue;let N=!1;Yd(I)&&Yd(R)?N=!W5(I,R):N=I!==R,N?I!==void 0?A(k):v.add(k):I!==void 0&&v.has(k)?A(k):S.protectedKeys[k]=!0}S.prevProp=P,S.prevResolvedValues=Z,S.isActive&&(g={...g,...Z}),n&&t.blockInitialAnimation&&(z=!1),z&&(!M||H)&&d.push(...Y.map(k=>({animation:k,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const S=t.getBaseTarget(b);S!==void 0&&(x[b]=S)}),d.push({animation:x})}let w=!!d.length;return n&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(w=!1),n=!1,w?e(d):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(v=>{var g;return(g=v.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function DI(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!W5(e,t):!1}function So(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LI(){return{animate:So(!0),whileInView:So(),whileHover:So(),whileTap:So(),whileDrag:So(),whileFocus:So(),exit:So()}}class jI extends bo{constructor(e){super(e),e.animationState||(e.animationState=NI(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Jh(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 BI=0;class $I extends bo{constructor(){super(...arguments),this.id=BI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const FI={animation:{Feature:jI},exit:{Feature:$I}},j2=(t,e)=>Math.abs(t-e);function UI(t,e){const r=j2(t.x,e.x),n=j2(t.y,e.y);return Math.sqrt(r**2+n**2)}class S8{constructor(e,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=A1(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,v=UI(u.offset,{x:0,y:0})>=3;if(!d&&!v)return;const{point:g}=u,{timestamp:y}=jr;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;d||(w&&w(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=E1(d,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=A1(u.type==="pointercancel"?this.lastMoveEventInfo:E1(d,this.transformPagePoint),this.history);this.startEvent&&v&&v(u,w),g&&g(u,w)},!U5(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const o=e0(e),a=E1(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=jr;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=r;f&&f(e,A1(a,this.history)),this.removeListeners=eo(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function E1(t,e){return e?{point:e(t.point)}:t}function B2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function A1({point:t},e){return{point:t,delta:B2(t,C8(e)),offset:B2(t,zI(e)),velocity:VI(e,.1)}}function zI(t){return t[0]}function C8(t){return t[t.length-1]}function VI(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=C8(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>to(e)));)r--;if(!n)return{x:0,y:0};const s=ds(i.timestamp-n.timestamp);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 Cn(t){return t.max-t.min}function Py(t,e=0,r=.01){return Math.abs(t-e)<=r}function $2(t,e,r,n=.5){t.origin=n,t.originPoint=Bt(e.min,e.max,t.origin),t.scale=Cn(r)/Cn(e),(Py(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Bt(r.min,r.max,t.origin)-t.originPoint,(Py(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Wc(t,e,r,n){$2(t.x,e.x,r.x,n?n.originX:void 0),$2(t.y,e.y,r.y,n?n.originY:void 0)}function F2(t,e,r){t.min=r.min+e.min,t.max=t.min+Cn(e)}function qI(t,e,r){F2(t.x,e.x,r.x),F2(t.y,e.y,r.y)}function U2(t,e,r){t.min=e.min-r.min,t.max=t.min+Cn(e)}function Gc(t,e,r){U2(t.x,e.x,r.x),U2(t.y,e.y,r.y)}function HI(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Bt(r,t,n.max):Math.min(t,r)),t}function z2(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 WI(t,{top:e,left:r,bottom:n,right:i}){return{x:z2(t.x,r,i),y:z2(t.y,e,n)}}function V2(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Ef(e.min,e.max-n,t.min):n>i&&(r=Ef(t.min,t.max-i,e.min)),ao(0,1,r)}function QI(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 Ry=.35;function YI(t=Ry){return t===!1?t=0:t===!0&&(t=Ry),{x:q2(t,"left","right"),y:q2(t,"top","bottom")}}function q2(t,e,r){return{min:H2(t,e),max:H2(t,r)}}function H2(t,e){return typeof t=="number"?t:t[e]||0}const W2=()=>({translate:0,scale:1,origin:0,originPoint:0}),za=()=>({x:W2(),y:W2()}),G2=()=>({min:0,max:0}),or=()=>({x:G2(),y:G2()});function Dn(t){return[t("x"),t("y")]}function k8({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function JI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function XI(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 S1(t){return t===void 0||t===1}function Ty({scale:t,scaleX:e,scaleY:r}){return!S1(t)||!S1(e)||!S1(r)}function To(t){return Ty(t)||P8(t)||t.z||t.rotate||t.rotateX||t.rotateY}function P8(t){return K2(t.x)||K2(t.y)}function K2(t){return t&&t!=="0%"}function th(t,e,r){const n=t-r,i=e*n;return r+i}function Q2(t,e,r,n,i){return i!==void 0&&(t=th(t,i,n)),th(t,r,n)+e}function My(t,e=0,r=1,n,i){t.min=Q2(t.min,e,r,n,i),t.max=Q2(t.max,e,r,n,i)}function R8(t,{x:e,y:r}){My(t.x,e.translate,e.scale,e.originPoint),My(t.y,r.translate,r.scale,r.originPoint)}function ZI(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function $s(t,e){t.min=t.min+e,t.max=t.max+e}function J2(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Bt(t.min,t.max,s);My(t,e[r],e[n],o,e.scale)}const e_=["x","scaleX","originX"],t_=["y","scaleY","originY"];function Va(t,e){J2(t.x,e,e_),J2(t.y,e,t_)}function T8(t,e){return k8(XI(t.getBoundingClientRect(),e))}function r_(t,e,r){const n=T8(t,r),{scroll:i}=e;return i&&($s(n.x,i.offset.x),$s(n.y,i.offset.y)),n}const M8=({current:t})=>t?t.ownerDocument.defaultView:null,n_=new WeakMap;class i_{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=or(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(e0(f,"page").point)},s=(f,u)=>{const{drag:d,dragPropagation:v,onDragStart:g}=this.getProps();if(d&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=V5(d),!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),Dn(w=>{let x=this.getAxisMotionValue(w).get()||0;if(ji.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const S=b.layout.layoutBox[w];S&&(x=Cn(S)*(parseFloat(x)/100))}}this.originPoint[w]=x}),g&&Ct.update(()=>g(f,u),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(f,u)=>{const{dragPropagation:d,dragDirectionLock:v,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=u;if(v&&this.currentDirection===null){this.currentDirection=s_(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),y&&y(f,u)},a=(f,u)=>this.stop(f,u),l=()=>Dn(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new S8(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:M8(this.visualElement)})}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&&Ct.update(()=>s(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:i}=this.getProps();if(!n||!Ru(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=HI(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;r&&Fa(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=WI(i.layoutBox,r):this.constraints=!1,this.elastic=YI(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Dn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=QI(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Fa(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=r_(n,i.root,this.visualElement.getTransformPagePoint());let o=GI(i.layout.layoutBox,s);if(r){const a=r(JI(o));this.hasMutatedConstraints=!!a,a&&(o=k8(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Dn(f=>{if(!Ru(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,g={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,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(Bm(e,n,0,r))}stopAnimation(){Dn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Dn(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Dn(r=>{const{drag:n}=this.getProps();if(!Ru(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]-Bt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Fa(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Dn(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=KI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Dn(o=>{if(!Ru(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Bt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;n_.set(this.visualElement,this);const e=this.visualElement.current,r=us(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Fa(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ls(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Dn(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ry,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ru(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function s_(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class o_ extends bo{constructor(e){super(e),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new i_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const X2=t=>(e,r)=>{t&&Ct.update(()=>t(e,r))};class a_ extends bo{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(e){this.session=new S8(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:M8(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:X2(e),onStart:X2(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&Ct.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=us(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 l_(){const t=p.useContext(Qh);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=p.useId();return p.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const cd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const rc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ee.test(t))t=parseFloat(t);else return t;const r=Z2(t,e.target.x),n=Z2(t,e.target.y);return`${r}% ${n}%`}},c_={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=lo.parse(t);if(i.length>5)return n;const s=lo.createTransformer(t),o=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=Bt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class f_ extends gr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;mT(u_),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()})),cd.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()||Ct.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function I8(t){const[e,r]=l_(),n=p.useContext(Sm);return gr.createElement(f_,{...t,layoutGroup:n,switchLayoutGroup:p.useContext(k5),isPresent:e,safeToRemove:r})}const u_={borderRadius:{...rc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rc,borderTopRightRadius:rc,borderBottomLeftRadius:rc,borderBottomRightRadius:rc,boxShadow:c_},_8=["TopLeft","TopRight","BottomLeft","BottomRight"],d_=_8.length,ew=t=>typeof t=="string"?parseFloat(t):t,tw=t=>typeof t=="number"||Ee.test(t);function h_(t,e,r,n,i,s){i?(t.opacity=Bt(0,r.opacity!==void 0?r.opacity:1,v_(n)),t.opacityExit=Bt(e.opacity!==void 0?e.opacity:1,0,y_(n))):s&&(t.opacity=Bt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Ef(t,e,n))}function nw(t,e){t.min=e.min,t.max=e.max}function _n(t,e){nw(t.x,e.x),nw(t.y,e.y)}function iw(t,e,r,n,i){return t-=e,t=th(t,1/r,n),i!==void 0&&(t=th(t,1/i,n)),t}function p_(t,e=0,r=1,n=.5,i,s=t,o=t){if(ji.test(e)&&(e=parseFloat(e),e=Bt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Bt(s.min,s.max,n);t===s&&(a-=e),t.min=iw(t.min,e,r,a,i),t.max=iw(t.max,e,r,a,i)}function sw(t,e,[r,n,i],s,o){p_(t,e[r],e[n],e[i],e.scale,s,o)}const m_=["x","scaleX","originX"],g_=["y","scaleY","originY"];function ow(t,e,r,n){sw(t.x,e,m_,r?r.x:void 0,n?n.x:void 0),sw(t.y,e,g_,r?r.y:void 0,n?n.y:void 0)}function aw(t){return t.translate===0&&t.scale===1}function N8(t){return aw(t.x)&&aw(t.y)}function x_(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 D8(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function lw(t){return Cn(t.x)/Cn(t.y)}class b_{constructor(){this.members=[]}add(e){$m(this.members,e),e.scheduleRender()}remove(e){if(Fm(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){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:i}=e.options;i===!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 cw(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 w_=(t,e)=>t.depth-e.depth;class E_{constructor(){this.children=[],this.isDirty=!1}add(e){$m(this.children,e),this.isDirty=!0}remove(e){Fm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w_),this.isDirty=!1,this.children.forEach(e)}}function A_(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(gs(n),t(s-e))};return Ct.read(n,!0),()=>gs(n)}function S_(t){window.MotionDebug&&window.MotionDebug.record(t)}function C_(t){return t instanceof SVGElement&&t.tagName!=="svg"}function k_(t,e,r){const n=ln(t)?t:yl(t);return n.start(Bm("",n,e,r)),n.animation}const fw=["","X","Y","Z"],P_={visibility:"hidden"},uw=1e3;let R_=0;const Mo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function L8({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=R_++,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.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Mo.totalNodes=Mo.resolvedTargetDeltas=Mo.recalculatedProjection=0,this.nodes.forEach(I_),this.nodes.forEach(L_),this.nodes.forEach(j_),this.nodes.forEach(__),S_(Mo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=A_(d,250),cd.hasAnimatedSinceResize&&(cd.hasAnimatedSinceResize=!1,this.nodes.forEach(hw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||z_,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!D8(this.targetLayout,g)||v,S=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||S||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,S);const P={...jm(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||hw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,gs(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(B_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,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 f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(O_),this.sharedNodes.forEach($_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{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 l=0;l{const _=P/1e3;vw(u.x,o.x,_),vw(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F_(this.relativeTarget,this.relativeTargetOrigin,d,_),S&&x_(this.relativeTarget,S)&&(this.isProjectionDirty=!1),S||(S=or()),_n(S,this.relativeTarget)),y&&(this.animationValues=f,h_(f,c,this.latestValues,_,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},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&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{cd.hasAnimatedSinceResize=!0,this.currentAnimation=k_(0,uw,{...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(uw),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&&j8(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||or();const u=Cn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=Cn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}_n(a,l),Va(a,f),Wc(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new b_),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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: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(dw),this.root.sharedNodes.clear()}}}function T_(t){t.updateLayout()}function M_(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:i}=t.layout,{animationType:s}=t.options,o=r.source!==t.layout.source;s==="size"?Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(d);d.min=n[u].min,d.max=d.min+v}):j8(s,r.layoutBox,n)&&Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(n[u]);d.max=d.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+v)});const a=za();Wc(a,n,r.layoutBox);const l=za();o?Wc(l,t.applyTransform(i,!0),r.measuredBox):Wc(l,n,r.layoutBox);const c=!N8(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const g=or();Gc(g,r.layoutBox,d.layoutBox);const y=or();Gc(y,n,v.layoutBox),D8(g,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function I_(t){Mo.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 __(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function O_(t){t.clearSnapshot()}function dw(t){t.clearMeasurements()}function N_(t){t.isLayoutDirty=!1}function D_(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function L_(t){t.resolveTargetDelta()}function j_(t){t.calcProjection()}function B_(t){t.resetRotation()}function $_(t){t.removeLeadSnapshot()}function vw(t,e,r){t.translate=Bt(e.translate,0,r),t.scale=Bt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function yw(t,e,r,n){t.min=Bt(e.min,r.min,n),t.max=Bt(e.max,r.max,n)}function F_(t,e,r,n){yw(t.x,e.x,r.x,n),yw(t.y,e.y,r.y,n)}function U_(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const z_={duration:.45,ease:[.4,0,.1,1]},pw=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),mw=pw("applewebkit/")&&!pw("chrome/")?Math.round:Gt;function gw(t){t.min=mw(t.min),t.max=mw(t.max)}function V_(t){gw(t.x),gw(t.y)}function j8(t,e,r){return t==="position"||t==="preserve-aspect"&&!Py(lw(e),lw(r),.2)}const q_=L8({attachResizeListener:(t,e)=>ls(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),C1={current:void 0},B8=L8({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!C1.current){const t=new q_({});t.mount(window),t.setOptions({layoutScroll:!0}),C1.current=t}return C1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),H_={pan:{Feature:a_},drag:{Feature:o_,ProjectionNode:B8,MeasureLayout:I8}},W_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function G_(t){const e=W_.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Iy(t,e,r=1){const[n,i]=G_(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return b8(o)?parseFloat(o):o}else return by(i)?Iy(i,e,r+1):i}function K_(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(!by(s))return;const o=Iy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!by(s))continue;const o=Iy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const Q_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$8=t=>Q_.has(t),Y_=t=>Object.keys(t).some($8),xw=t=>t===da||t===Ee,bw=(t,e)=>parseFloat(t.split(", ")[e]),ww=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return bw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?bw(s[1],t):0}},J_=new Set(["x","y","z"]),X_=Wf.filter(t=>!J_.has(t));function Z_(t){const e=[];return X_.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 pl={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:ww(4,13),y:ww(5,14)};pl.translateX=pl.x;pl.translateY=pl.y;const eO=(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]=pl[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]=pl[c](l,s)}),t},tO=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter($8);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=tc(f);const d=e[l];let v;if(Yd(d)){const g=d.length,y=d[0]===null?1:0;f=d[y],u=tc(f);for(let w=y;w=0?window.pageYOffset:null,c=eO(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Yh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function rO(t,e,r,n){return Y_(e)?tO(t,e,r,n):{target:e,transitionEnd:n}}const nO=(t,e,r,n)=>{const i=K_(t,e,n);return e=i.target,n=i.transitionEnd,rO(t,e,r,n)},_y={current:null},F8={current:!1};function iO(){if(F8.current=!0,!!Yh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>_y.current=t.matches;t.addListener(e),e()}else _y.current=!1}function sO(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(ln(s))t.addValue(i,s),eh(n)&&n.add(i);else if(ln(o))t.addValue(i,yl(s,{owner:t})),eh(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,yl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Ew=new WeakMap,U8=Object.keys(wf),oO=U8.length,Aw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aO=Am.length;class lO{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},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=()=>Ct.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Xh(r),this.isVariantNode=C5(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&ln(d)&&(d.set(a[u],!1),eh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,Ew.set(e,this),this.projection&&!this.projection.instance&&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)),F8.current||iO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_y.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ew.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(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=ua.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Ct.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){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(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):or()}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=yl(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r: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=Im(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&&!ln(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 Um),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class z8 extends lO{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:i},s){let o=CI(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){AI(this,n,o);const a=nO(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function cO(t){return window.getComputedStyle(t)}class fO extends z8{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}else{const n=cO(e),i=(T5(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return T8(e,r)}build(e,r,n,i){km(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;ln(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){D5(e,r,n,i)}}class uO extends z8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}return r=L5.has(r)?r:wm(r),e.getAttribute(r)}measureInstanceViewportBox(){return or()}scrapeMotionValuesFromProps(e,r){return B5(e,r)}build(e,r,n,i){Rm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){j5(e,r,n,i)}mount(e){this.isSVGTag=Tm(e.tagName),super.mount(e)}}const dO=(t,e)=>Cm(t)?new uO(e,{enableHardwareAcceleration:!1}):new fO(e,{enableHardwareAcceleration:!0}),hO={layout:{ProjectionNode:B8,MeasureLayout:I8}},vO={...FI,...oM,...H_,...hO},Za=yT((t,e)=>GT(t,e,vO,dO));function V8(){const t=p.useRef(!1);return bm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yO(){const t=V8(),[e,r]=p.useState(0),n=p.useCallback(()=>{t.current&&r(e+1)},[e]);return[p.useCallback(()=>Ct.postRender(n),[n]),e]}class pO extends p.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 mO({children:t,isPresent:e}){const r=p.useId(),n=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0});return p.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(` +`+s.stack}return{value:t,source:e,stack:i,digest:null}}function f1(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function oy(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var NR=typeof WeakMap=="function"?WeakMap:Map;function G6(t,e,r){r=fs(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){qd||(qd=!0,py=n),oy(t,e)},r}function K6(t,e,r){r=fs(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var i=e.value;r.payload=function(){return n(i)},r.callback=function(){oy(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(r.callback=function(){oy(t,e),typeof n!="function"&&(Xs===null?Xs=new Set([this]):Xs.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),r}function t2(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new NR;var i=new Set;n.set(e,i)}else i=n.get(e),i===void 0&&(i=new Set,n.set(e,i));i.has(r)||(i.add(r),t=KR.bind(null,t,e,r),e.then(t,t))}function r2(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function n2(t,e,r,n,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=fs(-1,1),e.tag=2,Js(r,e,1))),r.lanes|=1),t)}var DR=Cs.ReactCurrentOwner,nn=!1;function Qr(t,e,r,n){e.child=t===null?A6(e,null,r,n):dl(e,t.child,r,n)}function i2(t,e,r,n,i){r=r.render;var s=e.ref;return Xa(e,i),n=im(t,e,r,n,s,i),r=sm(),t!==null&&!nn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ms(t,e,i)):(Ot&&r&&Wp(e),e.flags|=1,Qr(t,e,n,i),e.child)}function s2(t,e,r,n,i){if(t===null){var s=r.type;return typeof s=="function"&&!ym(s)&&s.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=s,Q6(t,e,s,n,i)):(t=ad(r.type,null,n,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(r=r.compare,r=r!==null?r:ff,r(o,n)&&t.ref===e.ref)return ms(t,e,i)}return e.flags|=1,t=eo(s,n),t.ref=e.ref,t.return=e,e.child=t}function Q6(t,e,r,n,i){if(t!==null){var s=t.memoizedProps;if(ff(s,n)&&t.ref===e.ref)if(nn=!1,e.pendingProps=n=s,(t.lanes&i)!==0)t.flags&131072&&(nn=!0);else return e.lanes=t.lanes,ms(t,e,i)}return ay(t,e,r,n,i)}function Y6(t,e,r){var n=e.pendingProps,i=n.children,s=t!==null?t.memoizedState:null;if(n.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},St(Fa,pn),pn|=r;else{if(!(r&1073741824))return t=s!==null?s.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,St(Fa,pn),pn|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=s!==null?s.baseLanes:r,St(Fa,pn),pn|=n}else s!==null?(n=s.baseLanes|r,e.memoizedState=null):n=r,St(Fa,pn),pn|=n;return Qr(t,e,i,r),e.child}function J6(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function ay(t,e,r,n,i){var s=on(r)?Qo:Vr.current;return s=fl(e,s),Xa(e,i),r=im(t,e,r,n,s,i),n=sm(),t!==null&&!nn?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,ms(t,e,i)):(Ot&&n&&Wp(e),e.flags|=1,Qr(t,e,r,i),e.child)}function o2(t,e,r,n,i){if(on(r)){var s=!0;Nd(e)}else s=!1;if(Xa(e,i),e.stateNode===null)id(t,e),W6(e,r,n),sy(e,r,n,i),n=!0;else if(t===null){var o=e.stateNode,a=e.memoizedProps;o.props=a;var l=o.context,c=r.contextType;typeof c=="object"&&c!==null?c=Vn(c):(c=on(r)?Qo:Vr.current,c=fl(e,c));var f=r.getDerivedStateFromProps,u=typeof f=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==n||l!==c)&&e2(e,o,n,c),$s=!1;var d=e.memoizedState;o.state=d,$d(e,n,o,i),l=e.memoizedState,a!==n||d!==l||sn.current||$s?(typeof f=="function"&&(iy(e,r,f,n),l=e.memoizedState),(a=$s||Zb(e,r,a,n,d,l,c))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=l),o.props=n,o.state=l,o.context=c,n=a):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{o=e.stateNode,C6(t,e),a=e.memoizedProps,c=e.type===e.elementType?a:si(e.type,a),o.props=c,u=e.pendingProps,d=o.context,l=r.contextType,typeof l=="object"&&l!==null?l=Vn(l):(l=on(r)?Qo:Vr.current,l=fl(e,l));var v=r.getDerivedStateFromProps;(f=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a!==u||d!==l)&&e2(e,o,n,l),$s=!1,d=e.memoizedState,o.state=d,$d(e,n,o,i);var g=e.memoizedState;a!==u||d!==g||sn.current||$s?(typeof v=="function"&&(iy(e,r,v,n),g=e.memoizedState),(c=$s||Zb(e,r,c,n,d,g,l)||!1)?(f||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(n,g,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(n,g,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=g),o.props=n,o.state=g,o.context=l,n=c):(typeof o.componentDidUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||a===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return ly(t,e,r,n,s,i)}function ly(t,e,r,n,i,s){J6(t,e);var o=(e.flags&128)!==0;if(!n&&!o)return i&&Hb(e,r,!1),ms(t,e,s);n=e.stateNode,DR.current=e;var a=o&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&o?(e.child=dl(e,t.child,null,s),e.child=dl(e,null,a,s)):Qr(t,e,a,s),e.memoizedState=n.state,i&&Hb(e,r,!0),e.child}function X6(t){var e=t.stateNode;e.pendingContext?qb(t,e.pendingContext,e.pendingContext!==e.context):e.context&&qb(t,e.context,!1),em(t,e.containerInfo)}function a2(t,e,r,n,i){return ul(),Kp(i),e.flags|=256,Qr(t,e,r,n),e.child}var cy={dehydrated:null,treeContext:null,retryLane:0};function fy(t){return{baseLanes:t,cachePool:null,transitions:null}}function Z6(t,e,r){var n=e.pendingProps,i=jt.current,s=!1,o=(e.flags&128)!==0,a;if((a=o)||(a=t!==null&&t.memoizedState===null?!1:(i&2)!==0),a?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),St(jt,i&1),t===null)return ry(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=n.children,t=n.fallback,s?(n=e.mode,s=e.child,o={mode:"hidden",children:o},!(n&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Vh(o,n,0,null),t=Vo(t,n,r,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=fy(r),e.memoizedState=cy,t):lm(e,o));if(i=t.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return LR(t,e,o,n,a,i,r);if(s){s=n.fallback,o=e.mode,i=t.child,a=i.sibling;var l={mode:"hidden",children:n.children};return!(o&1)&&e.child!==i?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=eo(i,l),n.subtreeFlags=i.subtreeFlags&14680064),a!==null?s=eo(a,s):(s=Vo(s,o,r,null),s.flags|=2),s.return=e,n.return=e,n.sibling=s,e.child=n,n=s,s=e.child,o=t.child.memoizedState,o=o===null?fy(r):{baseLanes:o.baseLanes|r,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~r,e.memoizedState=cy,n}return s=t.child,t=s.sibling,n=eo(s,{mode:"visible",children:n.children}),!(e.mode&1)&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function lm(t,e){return e=Vh({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function wu(t,e,r,n){return n!==null&&Kp(n),dl(e,t.child,null,r),t=lm(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function LR(t,e,r,n,i,s,o){if(r)return e.flags&256?(e.flags&=-257,n=f1(Error(le(422))),wu(t,e,o,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=n.fallback,i=e.mode,n=Vh({mode:"visible",children:n.children},i,0,null),s=Vo(s,i,o,null),s.flags|=2,n.return=e,s.return=e,n.sibling=s,e.child=n,e.mode&1&&dl(e,t.child,null,o),e.child.memoizedState=fy(o),e.memoizedState=cy,s);if(!(e.mode&1))return wu(t,e,o,null);if(i.data==="$!"){if(n=i.nextSibling&&i.nextSibling.dataset,n)var a=n.dgst;return n=a,s=Error(le(419)),n=f1(s,n,void 0),wu(t,e,o,n)}if(a=(o&t.childLanes)!==0,nn||a){if(n=Er,n!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(n.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,ps(t,i),di(n,t,i,-1))}return vm(),n=f1(Error(le(421))),wu(t,e,o,n)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=QR.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,wn=Ys(i.nextSibling),En=e,Ot=!0,ci=null,t!==null&&(Bn[$n++]=os,Bn[$n++]=as,Bn[$n++]=Yo,os=t.id,as=t.overflow,Yo=e),e=lm(e,n.children),e.flags|=4096,e)}function l2(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),ny(t.return,e,r)}function u1(t,e,r,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=n,s.tail=r,s.tailMode=i)}function e5(t,e,r){var n=e.pendingProps,i=n.revealOrder,s=n.tail;if(Qr(t,e,n.children,r),n=jt.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&l2(t,r,e);else if(t.tag===19)l2(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(St(jt,n),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(r=e.child,i=null;r!==null;)t=r.alternate,t!==null&&Fd(t)===null&&(i=r),r=r.sibling;r=i,r===null?(i=e.child,e.child=null):(i=r.sibling,r.sibling=null),u1(e,!1,i,r,s);break;case"backwards":for(r=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Fd(t)===null){e.child=i;break}t=i.sibling,i.sibling=r,r=i,i=t}u1(e,!0,r,null,s);break;case"together":u1(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function id(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function ms(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Xo|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(le(153));if(e.child!==null){for(t=e.child,r=eo(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=eo(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function jR(t,e,r){switch(e.tag){case 3:X6(e),ul();break;case 5:k6(e);break;case 1:on(e.type)&&Nd(e);break;case 4:em(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,i=e.memoizedProps.value;St(jd,n._currentValue),n._currentValue=i;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(St(jt,jt.current&1),e.flags|=128,null):r&e.child.childLanes?Z6(t,e,r):(St(jt,jt.current&1),t=ms(t,e,r),t!==null?t.sibling:null);St(jt,jt.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){if(n)return e5(t,e,r);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),St(jt,jt.current),n)break;return null;case 22:case 23:return e.lanes=0,Y6(t,e,r)}return ms(t,e,r)}var t5,uy,r5,n5;t5=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};uy=function(){};r5=function(t,e,r,n){var i=t.memoizedProps;if(i!==n){t=e.stateNode,Do(ji.current);var s=null;switch(r){case"input":i=Ov(t,i),n=Ov(t,n),s=[];break;case"select":i=Ft({},i,{value:void 0}),n=Ft({},n,{value:void 0}),s=[];break;case"textarea":i=Lv(t,i),n=Lv(t,n),s=[];break;default:typeof i.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=_d)}Bv(r,n);var o;r=null;for(c in i)if(!n.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(o in a)a.hasOwnProperty(o)&&(r||(r={}),r[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(rf.hasOwnProperty(c)?s||(s=[]):(s=s||[]).push(c,null));for(c in n){var l=n[c];if(a=i!=null?i[c]:void 0,n.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(o in a)!a.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||(r||(r={}),r[o]="");for(o in l)l.hasOwnProperty(o)&&a[o]!==l[o]&&(r||(r={}),r[o]=l[o])}else r||(s||(s=[]),s.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(s=s||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(s=s||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(rf.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&Tt("scroll",t),s||a===l||(s=[])):(s=s||[]).push(c,l))}r&&(s=s||[]).push("style",r);var c=s;(e.updateQueue=c)&&(e.flags|=4)}};n5=function(t,e,r,n){r!==n&&(e.flags|=4)};function ec(t,e){if(!Ot)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Lr(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags&14680064,n|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function BR(t,e,r){var n=e.pendingProps;switch(Gp(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lr(e),null;case 1:return on(e.type)&&Od(),Lr(e),null;case 3:return n=e.stateNode,hl(),Mt(sn),Mt(Vr),rm(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(xu(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,ci!==null&&(xy(ci),ci=null))),uy(t,e),Lr(e),null;case 5:tm(e);var i=Do(yf.current);if(r=e.type,t!==null&&e.stateNode!=null)r5(t,e,r,n,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(le(166));return Lr(e),null}if(t=Do(ji.current),xu(e)){n=e.stateNode,r=e.type;var s=e.memoizedProps;switch(n[Ri]=e,n[hf]=s,t=(e.mode&1)!==0,r){case"dialog":Tt("cancel",n),Tt("close",n);break;case"iframe":case"object":case"embed":Tt("load",n);break;case"video":case"audio":for(i=0;i<\/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[Ri]=e,t[hf]=n,t5(t,e,!1,!1),e.stateNode=t;e:{switch(o=$v(r,n),r){case"dialog":Tt("cancel",t),Tt("close",t),i=n;break;case"iframe":case"object":case"embed":Tt("load",t),i=n;break;case"video":case"audio":for(i=0;iyl&&(e.flags|=128,n=!0,ec(s,!1),e.lanes=4194304)}else{if(!n)if(t=Fd(o),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),ec(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!Ot)return Lr(e),null}else 2*nr()-s.renderingStartTime>yl&&r!==1073741824&&(e.flags|=128,n=!0,ec(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=nr(),e.sibling=null,r=jt.current,St(jt,n?r&1|2:r&1),e):(Lr(e),null);case 22:case 23:return hm(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?pn&1073741824&&(Lr(e),e.subtreeFlags&6&&(e.flags|=8192)):Lr(e),null;case 24:return null;case 25:return null}throw Error(le(156,e.tag))}function $R(t,e){switch(Gp(e),e.tag){case 1:return on(e.type)&&Od(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hl(),Mt(sn),Mt(Vr),rm(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return tm(e),null;case 13:if(Mt(jt),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(le(340));ul()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Mt(jt),null;case 4:return hl(),null;case 10:return Jp(e.type._context),null;case 22:case 23:return hm(),null;case 24:return null;default:return null}}var Eu=!1,Br=!1,FR=typeof WeakSet=="function"?WeakSet:Set,xe=null;function $a(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 dy(t,e,r){try{r()}catch(n){Wt(t,e,n)}}var c2=!1;function UR(t,e){if(Qv=Td,t=l6(),Hp(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,d=null;t:for(;;){for(var v;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),(v=u.firstChild)!==null;)d=u,u=v;for(;;){if(u===t)break t;if(d===r&&++c===i&&(a=o),d===s&&++f===n&&(l=o),(v=u.nextSibling)!==null)break;u=d,d=u.parentNode}u=v}r=a===-1||l===-1?null:{start:a,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Yv={focusedElem:t,selectionRange:r},Td=!1,xe=e;xe!==null;)if(e=xe,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,xe=t;else for(;xe!==null;){e=xe;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 y=g.memoizedProps,w=g.memoizedState,x=e.stateNode,b=x.getSnapshotBeforeUpdate(e.elementType===e.type?y:si(e.type,y),w);x.__reactInternalSnapshotBeforeUpdate=b}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(le(163))}}catch(P){Wt(e,e.return,P)}if(t=e.sibling,t!==null){t.return=e.return,xe=t;break}xe=e.return}return g=c2,c2=!1,g}function Uc(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&&dy(e,r,s)}i=i.next}while(i!==n)}}function Uh(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 hy(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 i5(t){var e=t.alternate;e!==null&&(t.alternate=null,i5(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Ri],delete e[hf],delete e[Zv],delete e[AR],delete e[SR])),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 s5(t){return t.tag===5||t.tag===3||t.tag===4}function f2(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||s5(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 vy(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=_d));else if(n!==4&&(t=t.child,t!==null))for(vy(t,e,r),t=t.sibling;t!==null;)vy(t,e,r),t=t.sibling}function yy(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(yy(t,e,r),t=t.sibling;t!==null;)yy(t,e,r),t=t.sibling}var kr=null,ai=!1;function Ts(t,e,r){for(r=r.child;r!==null;)o5(t,e,r),r=r.sibling}function o5(t,e,r){if(Li&&typeof Li.onCommitFiberUnmount=="function")try{Li.onCommitFiberUnmount(Oh,r)}catch{}switch(r.tag){case 5:Br||$a(r,e);case 6:var n=kr,i=ai;kr=null,Ts(t,e,r),kr=n,ai=i,kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):kr.removeChild(r.stateNode));break;case 18:kr!==null&&(ai?(t=kr,r=r.stateNode,t.nodeType===8?i1(t.parentNode,r):t.nodeType===1&&i1(t,r),lf(t)):i1(kr,r.stateNode));break;case 4:n=kr,i=ai,kr=r.stateNode.containerInfo,ai=!0,Ts(t,e,r),kr=n,ai=i;break;case 0:case 11:case 14:case 15:if(!Br&&(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)&&dy(r,e,o),i=i.next}while(i!==n)}Ts(t,e,r);break;case 1:if(!Br&&($a(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)}Ts(t,e,r);break;case 21:Ts(t,e,r);break;case 22:r.mode&1?(Br=(n=Br)||r.memoizedState!==null,Ts(t,e,r),Br=n):Ts(t,e,r);break;default:Ts(t,e,r)}}function u2(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new FR),e.forEach(function(n){var i=YR.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=nr()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*VR(n/1960))-n,10t?16:t,Hs===null)var n=!1;else{if(t=Hs,Hs=null,Hd=0,We&6)throw Error(le(331));var i=We;for(We|=4,xe=t.current;xe!==null;){var s=xe,o=s.child;if(xe.flags&16){var a=s.deletions;if(a!==null){for(var l=0;lnr()-um?zo(t,0):fm|=r),an(t,e)}function v5(t,e){e===0&&(t.mode&1?(e=hu,hu<<=1,!(hu&130023424)&&(hu=4194304)):e=1);var r=Jr();t=ps(t,e),t!==null&&(zf(t,e,r),an(t,r))}function QR(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),v5(t,r)}function YR(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(le(314))}n!==null&&n.delete(e),v5(t,r)}var y5;y5=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||sn.current)nn=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return nn=!1,jR(t,e,r);nn=!!(t.flags&131072)}else nn=!1,Ot&&e.flags&1048576&&x6(e,Ld,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;id(t,e),t=e.pendingProps;var i=fl(e,Vr.current);Xa(e,r),i=im(null,e,n,t,i,r);var s=sm();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,on(n)?(s=!0,Nd(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zp(e),i.updater=Fh,e.stateNode=i,i._reactInternals=e,sy(e,n,t,r),e=ly(null,e,n,!0,s,r)):(e.tag=0,Ot&&s&&Wp(e),Qr(null,e,i,r),e=e.child),e;case 16:n=e.elementType;e:{switch(id(t,e),t=e.pendingProps,i=n._init,n=i(n._payload),e.type=n,i=e.tag=XR(n),t=si(n,t),i){case 0:e=ay(null,e,n,t,r);break e;case 1:e=o2(null,e,n,t,r);break e;case 11:e=i2(null,e,n,t,r);break e;case 14:e=s2(null,e,n,si(n.type,t),r);break e}throw Error(le(306,n,""))}return e;case 0:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),ay(t,e,n,i,r);case 1:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),o2(t,e,n,i,r);case 3:e:{if(X6(e),t===null)throw Error(le(387));n=e.pendingProps,s=e.memoizedState,i=s.element,C6(t,e),$d(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=vl(Error(le(423)),e),e=a2(t,e,n,r,i);break e}else if(n!==i){i=vl(Error(le(424)),e),e=a2(t,e,n,r,i);break e}else for(wn=Ys(e.stateNode.containerInfo.firstChild),En=e,Ot=!0,ci=null,r=A6(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(ul(),n===i){e=ms(t,e,r);break e}Qr(t,e,n,r)}e=e.child}return e;case 5:return k6(e),t===null&&ry(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,Jv(n,i)?o=null:s!==null&&Jv(n,s)&&(e.flags|=32),J6(t,e),Qr(t,e,o,r),e.child;case 6:return t===null&&ry(e),null;case 13:return Z6(t,e,r);case 4:return em(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=dl(e,null,n,r):Qr(t,e,n,r),e.child;case 11:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),i2(t,e,n,i,r);case 7:return Qr(t,e,e.pendingProps,r),e.child;case 8:return Qr(t,e,e.pendingProps.children,r),e.child;case 12:return Qr(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(jd,n._currentValue),n._currentValue=o,s!==null)if(hi(s.value,o)){if(s.children===i.children&&!sn.current){e=ms(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=fs(-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),ny(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(le(341));o.lanes|=r,a=o.alternate,a!==null&&(a.lanes|=r),ny(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}Qr(t,e,i.children,r),e=e.child}return e;case 9:return i=e.type,n=e.pendingProps.children,Xa(e,r),i=Vn(i),n=n(i),e.flags|=1,Qr(t,e,n,r),e.child;case 14:return n=e.type,i=si(n,e.pendingProps),i=si(n.type,i),s2(t,e,n,i,r);case 15:return Q6(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,i=e.pendingProps,i=e.elementType===n?i:si(n,i),id(t,e),e.tag=1,on(n)?(t=!0,Nd(e)):t=!1,Xa(e,r),W6(e,n,i),sy(e,n,i,r),ly(null,e,n,!0,t,r);case 19:return e5(t,e,r);case 22:return Y6(t,e,r)}throw Error(le(156,e.tag))};function p5(t,e){return VA(t,e)}function JR(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 Un(t,e,r,n){return new JR(t,e,r,n)}function ym(t){return t=t.prototype,!(!t||!t.isReactComponent)}function XR(t){if(typeof t=="function")return ym(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Np)return 11;if(t===Dp)return 14}return 2}function eo(t,e){var r=t.alternate;return r===null?(r=Un(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 ad(t,e,r,n,i,s){var o=2;if(n=t,typeof t=="function")ym(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case Ma:return Vo(r.children,i,s,e);case Op:o=8,i|=8;break;case Tv:return t=Un(12,r,e,i|2),t.elementType=Tv,t.lanes=s,t;case Mv:return t=Un(13,r,e,i),t.elementType=Mv,t.lanes=s,t;case Iv:return t=Un(19,r,e,i),t.elementType=Iv,t.lanes=s,t;case kA:return Vh(r,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case SA:o=10;break e;case CA:o=9;break e;case Np:o=11;break e;case Dp:o=14;break e;case Bs:o=16,n=null;break e}throw Error(le(130,t==null?t:typeof t,""))}return e=Un(o,r,e,i),e.elementType=t,e.type=n,e.lanes=s,e}function Vo(t,e,r,n){return t=Un(7,t,n,e),t.lanes=r,t}function Vh(t,e,r,n){return t=Un(22,t,n,e),t.elementType=kA,t.lanes=r,t.stateNode={isHidden:!1},t}function d1(t,e,r){return t=Un(6,t,null,e),t.lanes=r,t}function h1(t,e,r){return e=Un(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ZR(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=G0(0),this.expirationTimes=G0(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=G0(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pm(t,e,r,n,i,s,o,a,l){return t=new ZR(t,e,r,a,l),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Un(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zp(s),t}function eT(t,e,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b5)}catch(t){console.error(t)}}b5(),bA.exports=Rn;var ks=bA.exports;const w5=Ss(ks),sT=oA({__proto__:null,default:w5},[ks]);var x2=ks;Pv.createRoot=x2.createRoot,Pv.hydrateRoot=x2.hydrateRoot;const E5=p.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Kh=p.createContext({}),Qh=p.createContext(null),Yh=typeof document<"u",bm=Yh?p.useLayoutEffect:p.useEffect,A5=p.createContext({strict:!1}),wm=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),oT="framerAppearId",S5="data-"+wm(oT);function aT(t,e,r,n){const{visualElement:i}=p.useContext(Kh),s=p.useContext(A5),o=p.useContext(Qh),a=p.useContext(E5).reducedMotion,l=p.useRef();n=n||s.renderer,!l.current&&n&&(l.current=n(t,{visualState:e,parent:i,props:r,presenceContext:o,blockInitialAnimation:o?o.initial===!1:!1,reducedMotionConfig:a}));const c=l.current;p.useInsertionEffect(()=>{c&&c.update(r,o)});const f=p.useRef(!!(r[S5]&&!window.HandoffComplete));return bm(()=>{c&&(c.render(),f.current&&c.animationState&&c.animationState.animateChanges())}),p.useEffect(()=>{c&&(c.updateFeatures(),!f.current&&c.animationState&&c.animationState.animateChanges(),f.current&&(f.current=!1,window.HandoffComplete=!0))}),c}function Ua(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function lT(t,e,r){return p.useCallback(n=>{n&&t.mount&&t.mount(n),e&&(n?e.mount(n):e.unmount()),r&&(typeof r=="function"?r(n):Ua(r)&&(r.current=n))},[e])}function bf(t){return typeof t=="string"||Array.isArray(t)}function Jh(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}const Em=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Am=["initial",...Em];function Xh(t){return Jh(t.animate)||Am.some(e=>bf(t[e]))}function C5(t){return!!(Xh(t)||t.variants)}function cT(t,e){if(Xh(t)){const{initial:r,animate:n}=t;return{initial:r===!1||bf(r)?r:void 0,animate:bf(n)?n:void 0}}return t.inherit!==!1?e:{}}function fT(t){const{initial:e,animate:r}=cT(t,p.useContext(Kh));return p.useMemo(()=>({initial:e,animate:r}),[b2(e),b2(r)])}function b2(t){return Array.isArray(t)?t.join(" "):t}const w2={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],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"]},wf={};for(const t in w2)wf[t]={isEnabled:e=>w2[t].some(r=>!!e[r])};function uT(t){for(const e in t)wf[e]={...wf[e],...t[e]}}const Sm=p.createContext({}),k5=p.createContext({}),dT=Symbol.for("motionComponentSymbol");function hT({preloadedFeatures:t,createVisualElement:e,useRender:r,useVisualState:n,Component:i}){t&&uT(t);function s(a,l){let c;const f={...p.useContext(E5),...a,layoutId:vT(a)},{isStatic:u}=f,d=fT(a),v=n(a,u);if(!u&&Yh){d.visualElement=aT(i,v,f,e);const g=p.useContext(k5),y=p.useContext(A5).strict;d.visualElement&&(c=d.visualElement.loadFeatures(f,y,t,g))}return p.createElement(Kh.Provider,{value:d},c&&d.visualElement?p.createElement(c,{visualElement:d.visualElement,...f}):null,r(i,a,lT(v,d.visualElement,l),v,u,d.visualElement))}const o=p.forwardRef(s);return o[dT]=i,o}function vT({layoutId:t}){const e=p.useContext(Sm).id;return e&&t!==void 0?e+"-"+t:t}function yT(t){function e(n,i={}){return hT(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 pT=["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 Cm(t){return typeof t!="string"||t.includes("-")?!1:!!(pT.indexOf(t)>-1||/[A-Z]/.test(t))}const Kd={};function mT(t){Object.assign(Kd,t)}const Wf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ua=new Set(Wf);function P5(t,{layout:e,layoutId:r}){return ua.has(t)||t.startsWith("origin")||(e||r!==void 0)&&(!!Kd[t]||t==="opacity")}const ln=t=>!!(t&&t.getVelocity),gT={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xT=Wf.length;function bT(t,{enableHardwareAcceleration:e=!0,allowTransformNone:r=!0},n,i){let s="";for(let o=0;oe=>typeof e=="string"&&e.startsWith(t),T5=R5("--"),by=R5("var(--"),wT=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,ET=(t,e)=>e&&typeof t=="number"?e.transform(t):t,lo=(t,e,r)=>Math.min(Math.max(r,t),e),da={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},qc={...da,transform:t=>lo(0,1,t)},Cu={...da,default:1},Hc=t=>Math.round(t*1e5)/1e5,Zh=/(-)?([\d]*\.?[\d])+/g,M5=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,AT=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Gf(t){return typeof t=="string"}const Kf=t=>({test:e=>Gf(e)&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Ns=Kf("deg"),Bi=Kf("%"),Ee=Kf("px"),ST=Kf("vh"),CT=Kf("vw"),E2={...Bi,parse:t=>Bi.parse(t)/100,transform:t=>Bi.transform(t*100)},A2={...da,transform:Math.round},I5={borderWidth:Ee,borderTopWidth:Ee,borderRightWidth:Ee,borderBottomWidth:Ee,borderLeftWidth:Ee,borderRadius:Ee,radius:Ee,borderTopLeftRadius:Ee,borderTopRightRadius:Ee,borderBottomRightRadius:Ee,borderBottomLeftRadius:Ee,width:Ee,maxWidth:Ee,height:Ee,maxHeight:Ee,size:Ee,top:Ee,right:Ee,bottom:Ee,left:Ee,padding:Ee,paddingTop:Ee,paddingRight:Ee,paddingBottom:Ee,paddingLeft:Ee,margin:Ee,marginTop:Ee,marginRight:Ee,marginBottom:Ee,marginLeft:Ee,rotate:Ns,rotateX:Ns,rotateY:Ns,rotateZ:Ns,scale:Cu,scaleX:Cu,scaleY:Cu,scaleZ:Cu,skew:Ns,skewX:Ns,skewY:Ns,distance:Ee,translateX:Ee,translateY:Ee,translateZ:Ee,x:Ee,y:Ee,z:Ee,perspective:Ee,transformPerspective:Ee,opacity:qc,originX:E2,originY:E2,originZ:Ee,zIndex:A2,fillOpacity:qc,strokeOpacity:qc,numOctaves:A2};function km(t,e,r,n){const{style:i,vars:s,transform:o,transformOrigin:a}=t;let l=!1,c=!1,f=!0;for(const u in e){const d=e[u];if(T5(u)){s[u]=d;continue}const v=I5[u],g=ET(d,v);if(ua.has(u)){if(l=!0,o[u]=g,!f)continue;d!==(v.default||0)&&(f=!1)}else u.startsWith("origin")?(c=!0,a[u]=g):i[u]=g}if(e.transform||(l||n?i.transform=bT(t.transform,r,f,n):i.transform&&(i.transform="none")),c){const{originX:u="50%",originY:d="50%",originZ:v=0}=a;i.transformOrigin=`${u} ${d} ${v}`}}const Pm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function _5(t,e,r){for(const n in e)!ln(e[n])&&!P5(n,r)&&(t[n]=e[n])}function kT({transformTemplate:t},e,r){return p.useMemo(()=>{const n=Pm();return km(n,e,{enableHardwareAcceleration:!r},t),Object.assign({},n.vars,n.style)},[e])}function PT(t,e,r){const n=t.style||{},i={};return _5(i,n,t),Object.assign(i,kT(t,e,r)),t.transformValues?t.transformValues(i):i}function RT(t,e,r){const n={},i=PT(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 TT=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Qd(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||TT.has(t)}let O5=t=>!Qd(t);function MT(t){t&&(O5=e=>e.startsWith("on")?!Qd(e):t(e))}try{MT(require("@emotion/is-prop-valid").default)}catch{}function IT(t,e,r){const n={};for(const i in t)i==="values"&&typeof t.values=="object"||(O5(i)||r===!0&&Qd(i)||!e&&!Qd(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}function S2(t,e,r){return typeof t=="string"?t:Ee.transform(e+r*t)}function _T(t,e,r){const n=S2(e,t.x,t.width),i=S2(r,t.y,t.height);return`${n} ${i}`}const OT={offset:"stroke-dashoffset",array:"stroke-dasharray"},NT={offset:"strokeDashoffset",array:"strokeDasharray"};function DT(t,e,r=1,n=0,i=!0){t.pathLength=1;const s=i?OT:NT;t[s.offset]=Ee.transform(-n);const o=Ee.transform(e),a=Ee.transform(r);t[s.array]=`${o} ${a}`}function Rm(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...c},f,u,d){if(km(t,c,f,d),u){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:g,dimensions:y}=t;v.transform&&(y&&(g.transform=v.transform),delete v.transform),y&&(i!==void 0||s!==void 0||g.transform)&&(g.transformOrigin=_T(y,i!==void 0?i:.5,s!==void 0?s:.5)),e!==void 0&&(v.x=e),r!==void 0&&(v.y=r),n!==void 0&&(v.scale=n),o!==void 0&&DT(v,o,a,l,!1)}const N5=()=>({...Pm(),attrs:{}}),Tm=t=>typeof t=="string"&&t.toLowerCase()==="svg";function LT(t,e,r,n){const i=p.useMemo(()=>{const s=N5();return Rm(s,e,{enableHardwareAcceleration:!1},Tm(n),t.transformTemplate),{...s.attrs,style:{...s.style}}},[e]);if(t.style){const s={};_5(s,t.style,t),i.style={...s,...i.style}}return i}function jT(t=!1){return(r,n,i,{latestValues:s},o)=>{const l=(Cm(r)?LT:RT)(n,s,o,r),f={...IT(n,typeof r=="string",t),...l,ref:i},{children:u}=n,d=p.useMemo(()=>ln(u)?u.get():u,[u]);return p.createElement(r,{...f,children:d})}}function D5(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 L5=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 j5(t,e,r,n){D5(t,e,void 0,n);for(const i in e.attrs)t.setAttribute(L5.has(i)?i:wm(i),e.attrs[i])}function Mm(t,e){const{style:r}=t,n={};for(const i in r)(ln(r[i])||e.style&&ln(e.style[i])||P5(i,t))&&(n[i]=r[i]);return n}function B5(t,e){const r=Mm(t,e);for(const n in t)if(ln(t[n])||ln(e[n])){const i=Wf.indexOf(n)!==-1?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n;r[i]=t[n]}return r}function Im(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}function $5(t){const e=p.useRef(null);return e.current===null&&(e.current=t()),e.current}const Yd=t=>Array.isArray(t),BT=t=>!!(t&&typeof t=="object"&&t.mix&&t.toValue),$T=t=>Yd(t)?t[t.length-1]||0:t;function ld(t){const e=ln(t)?t.get():t;return BT(e)?e.toValue():e}function FT({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:r},n,i,s){const o={latestValues:UT(n,i,s,t),renderState:e()};return r&&(o.mount=a=>r(n,a,o)),o}const F5=t=>(e,r)=>{const n=p.useContext(Kh),i=p.useContext(Qh),s=()=>FT(t,e,n,i);return r?s():$5(s)};function UT(t,e,r,n){const i={},s=n(t,{});for(const d in s)i[d]=ld(s[d]);let{initial:o,animate:a}=t;const l=Xh(t),c=C5(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(v=>{const g=Im(t,v);if(!g)return;const{transitionEnd:y,transition:w,...x}=g;for(const b in x){let A=x[b];if(Array.isArray(A)){const P=f?A.length-1:0;A=A[P]}A!==null&&(i[b]=A)}for(const b in y)i[b]=y[b]}),i}const Gt=t=>t;class C2{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const r=this.order.indexOf(e);r!==-1&&(this.order.splice(r,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}function zT(t){let e=new C2,r=new C2,n=0,i=!1,s=!1;const o=new WeakSet,a={schedule:(l,c=!1,f=!1)=>{const u=f&&i,d=u?e:r;return c&&o.add(l),d.add(l)&&u&&i&&(n=e.order.length),l},cancel:l=>{r.remove(l),o.delete(l)},process:l=>{if(i){s=!0;return}if(i=!0,[e,r]=[r,e],r.clear(),n=e.order.length,n)for(let c=0;c(u[d]=zT(()=>r=!0),u),{}),o=u=>s[u].process(i),a=()=>{const u=performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(u-i.timestamp,VT),1),i.timestamp=u,i.isProcessing=!0,ku.forEach(o),i.isProcessing=!1,r&&e&&(n=!1,t(a))},l=()=>{r=!0,n=!0,i.isProcessing||t(a)};return{schedule:ku.reduce((u,d)=>{const v=s[d];return u[d]=(g,y=!1,w=!1)=>(r||l(),v.schedule(g,y,w)),u},{}),cancel:u=>ku.forEach(d=>s[d].cancel(u)),state:i,steps:s}}const{schedule:Ct,cancel:gs,state:jr,steps:v1}=qT(typeof requestAnimationFrame<"u"?requestAnimationFrame:Gt,!0),HT={useVisualState:F5({scrapeMotionValuesFromProps:B5,createRenderState:N5,onMount:(t,e,{renderState:r,latestValues:n})=>{Ct.read(()=>{try{r.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{r.dimensions={x:0,y:0,width:0,height:0}}}),Ct.render(()=>{Rm(r,n,{enableHardwareAcceleration:!1},Tm(e.tagName),t.transformTemplate),j5(e,r)})}})},WT={useVisualState:F5({scrapeMotionValuesFromProps:Mm,createRenderState:Pm})};function GT(t,{forwardMotionProps:e=!1},r,n){return{...Cm(t)?HT:WT,preloadedFeatures:r,useRender:jT(e),createVisualElement:n,Component:t}}function ls(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}const U5=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1;function e0(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}const KT=t=>e=>U5(e)&&t(e,e0(e));function us(t,e,r,n){return ls(t,e,KT(r),n)}const QT=(t,e)=>r=>e(t(r)),to=(...t)=>t.reduce(QT);function z5(t){let e=null;return()=>{const r=()=>{e=null};return e===null?(e=t,r):!1}}const k2=z5("dragHorizontal"),P2=z5("dragVertical");function V5(t){let e=!1;if(t==="y")e=P2();else if(t==="x")e=k2();else{const r=k2(),n=P2();r&&n?e=()=>{r(),n()}:(r&&r(),n&&n())}return e}function q5(){const t=V5(!0);return t?(t(),!1):!0}class wo{constructor(e){this.isMounted=!1,this.node=e}update(){}}function R2(t,e){const r="pointer"+(e?"enter":"leave"),n="onHover"+(e?"Start":"End"),i=(s,o)=>{if(s.pointerType==="touch"||q5())return;const a=t.getProps();t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",e),a[n]&&Ct.update(()=>a[n](s,o))};return us(t.current,r,i,{passive:!t.getProps()[n]})}class YT extends wo{mount(){this.unmount=to(R2(this.node,!0),R2(this.node,!1))}unmount(){}}class JT extends wo{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=to(ls(this.node.current,"focus",()=>this.onFocus()),ls(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const H5=(t,e)=>e?t===e?!0:H5(t,e.parentElement):!1;function y1(t,e){if(!e)return;const r=new PointerEvent("pointer"+t);e(r,e0(r))}class XT extends wo{constructor(){super(...arguments),this.removeStartListeners=Gt,this.removeEndListeners=Gt,this.removeAccessibleListeners=Gt,this.startPointerPress=(e,r)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),s=us(window,"pointerup",(a,l)=>{if(!this.checkPressEnd())return;const{onTap:c,onTapCancel:f,globalTapTarget:u}=this.node.getProps();Ct.update(()=>{!u&&!H5(this.node.current,a.target)?f&&f(a,l):c&&c(a,l)})},{passive:!(n.onTap||n.onPointerUp)}),o=us(window,"pointercancel",(a,l)=>this.cancelPress(a,l),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=to(s,o),this.startPress(e,r)},this.startAccessiblePress=()=>{const e=s=>{if(s.key!=="Enter"||this.isPressing)return;const o=a=>{a.key!=="Enter"||!this.checkPressEnd()||y1("up",(l,c)=>{const{onTap:f}=this.node.getProps();f&&Ct.update(()=>f(l,c))})};this.removeEndListeners(),this.removeEndListeners=ls(this.node.current,"keyup",o),y1("down",(a,l)=>{this.startPress(a,l)})},r=ls(this.node.current,"keydown",e),n=()=>{this.isPressing&&y1("cancel",(s,o)=>this.cancelPress(s,o))},i=ls(this.node.current,"blur",n);this.removeAccessibleListeners=to(r,i)}}startPress(e,r){this.isPressing=!0;const{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Ct.update(()=>n(e,r))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!q5()}cancelPress(e,r){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Ct.update(()=>n(e,r))}mount(){const e=this.node.getProps(),r=us(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=ls(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=to(r,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const wy=new WeakMap,p1=new WeakMap,ZT=t=>{const e=wy.get(t.target);e&&e(t)},eM=t=>{t.forEach(ZT)};function tM({root:t,...e}){const r=t||document;p1.has(r)||p1.set(r,{});const n=p1.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(eM,{root:t,...e})),n[i]}function rM(t,e,r){const n=tM(e);return wy.set(t,r),n.observe(t),()=>{wy.delete(t),n.unobserve(t)}}const nM={some:0,all:1};class iM extends wo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:r,margin:n,amount:i="some",once:s}=e,o={root:r?r.current:void 0,rootMargin:n,threshold:typeof i=="number"?i:nM[i]},a=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,s&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:u}=this.node.getProps(),d=c?f:u;d&&d(l)};return rM(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:r}=this.node;["amount","margin","root"].some(sM(e,r))&&this.startObserver()}unmount(){}}function sM({viewport:t={}},{viewport:e={}}={}){return r=>t[r]!==e[r]}const oM={inView:{Feature:iM},tap:{Feature:XT},focus:{Feature:JT},hover:{Feature:YT}};function W5(t,e){if(!Array.isArray(e))return!1;const r=e.length;if(r!==t.length)return!1;for(let n=0;ne[n]=r.get()),e}function lM(t){const e={};return t.values.forEach((r,n)=>e[n]=r.getVelocity()),e}function t0(t,e,r){const n=t.getProps();return Im(n,e,r!==void 0?r:n.custom,aM(t),lM(t))}let cM=Gt,_m=Gt;const ro=t=>t*1e3,ds=t=>t/1e3,fM={current:!1},G5=t=>Array.isArray(t)&&typeof t[0]=="number";function K5(t){return!!(!t||typeof t=="string"&&Q5[t]||G5(t)||Array.isArray(t)&&t.every(K5))}const Ic=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,Q5={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ic([0,.65,.55,1]),circOut:Ic([.55,0,1,.45]),backIn:Ic([.31,.01,.66,-.59]),backOut:Ic([.33,1.53,.69,.99])};function Y5(t){if(t)return G5(t)?Ic(t):Array.isArray(t)?t.map(Y5):Q5[t]}function uM(t,e,r,{delay:n=0,duration:i,repeat:s=0,repeatType:o="loop",ease:a,times:l}={}){const c={[e]:r};l&&(c.offset=l);const f=Y5(a);return Array.isArray(f)&&(c.easing=f),t.animate(c,{delay:n,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"})}function dM(t,{repeat:e,repeatType:r="loop"}){const n=e&&r!=="loop"&&e%2===1?0:t.length-1;return t[n]}const J5=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t,hM=1e-7,vM=12;function yM(t,e,r,n,i){let s,o,a=0;do o=e+(r-e)/2,s=J5(o,n,i)-t,s>0?r=o:e=o;while(Math.abs(s)>hM&&++ayM(s,0,1,t,r);return s=>s===0||s===1?s:J5(i(s),e,n)}const pM=Qf(.42,0,1,1),mM=Qf(0,0,.58,1),X5=Qf(.42,0,.58,1),gM=t=>Array.isArray(t)&&typeof t[0]!="number",Z5=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,eS=t=>e=>1-t(1-e),Om=t=>1-Math.sin(Math.acos(t)),tS=eS(Om),xM=Z5(Om),rS=Qf(.33,1.53,.69,.99),Nm=eS(rS),bM=Z5(Nm),wM=t=>(t*=2)<1?.5*Nm(t):.5*(2-Math.pow(2,-10*(t-1))),EM={linear:Gt,easeIn:pM,easeInOut:X5,easeOut:mM,circIn:Om,circInOut:xM,circOut:tS,backIn:Nm,backInOut:bM,backOut:rS,anticipate:wM},T2=t=>{if(Array.isArray(t)){_m(t.length===4);const[e,r,n,i]=t;return Qf(e,r,n,i)}else if(typeof t=="string")return EM[t];return t},Dm=(t,e)=>r=>!!(Gf(r)&&AT.test(r)&&r.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(r,e)),nS=(t,e,r)=>n=>{if(!Gf(n))return n;const[i,s,o,a]=n.match(Zh);return{[t]:parseFloat(i),[e]:parseFloat(s),[r]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},AM=t=>lo(0,255,t),m1={...da,transform:t=>Math.round(AM(t))},Lo={test:Dm("rgb","red"),parse:nS("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+m1.transform(t)+", "+m1.transform(e)+", "+m1.transform(r)+", "+Hc(qc.transform(n))+")"};function SM(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 Ey={test:Dm("#"),parse:SM,transform:Lo.transform},za={test:Dm("hsl","hue"),parse:nS("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+Bi.transform(Hc(e))+", "+Bi.transform(Hc(r))+", "+Hc(qc.transform(n))+")"},Gr={test:t=>Lo.test(t)||Ey.test(t)||za.test(t),parse:t=>Lo.test(t)?Lo.parse(t):za.test(t)?za.parse(t):Ey.parse(t),transform:t=>Gf(t)?t:t.hasOwnProperty("red")?Lo.transform(t):za.transform(t)},Bt=(t,e,r)=>-r*t+r*e+t;function g1(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 CM({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=g1(l,a,t+1/3),s=g1(l,a,t),o=g1(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:n}}const x1=(t,e,r)=>{const n=t*t;return Math.sqrt(Math.max(0,r*(e*e-n)+n))},kM=[Ey,Lo,za],PM=t=>kM.find(e=>e.test(t));function M2(t){const e=PM(t);let r=e.parse(t);return e===za&&(r=CM(r)),r}const iS=(t,e)=>{const r=M2(t),n=M2(e),i={...r};return s=>(i.red=x1(r.red,n.red,s),i.green=x1(r.green,n.green,s),i.blue=x1(r.blue,n.blue,s),i.alpha=Bt(r.alpha,n.alpha,s),Lo.transform(i))};function RM(t){var e,r;return isNaN(t)&&Gf(t)&&(((e=t.match(Zh))===null||e===void 0?void 0:e.length)||0)+(((r=t.match(M5))===null||r===void 0?void 0:r.length)||0)>0}const sS={regex:wT,countKey:"Vars",token:"${v}",parse:Gt},oS={regex:M5,countKey:"Colors",token:"${c}",parse:Gr.parse},aS={regex:Zh,countKey:"Numbers",token:"${n}",parse:da.parse};function b1(t,{regex:e,countKey:r,token:n,parse:i}){const s=t.tokenised.match(e);s&&(t["num"+r]=s.length,t.tokenised=t.tokenised.replace(e,n),t.values.push(...s.map(i)))}function Jd(t){const e=t.toString(),r={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return r.value.includes("var(--")&&b1(r,sS),b1(r,oS),b1(r,aS),r}function lS(t){return Jd(t).values}function cS(t){const{values:e,numColors:r,numVars:n,tokenised:i}=Jd(t),s=e.length;return o=>{let a=i;for(let l=0;ltypeof t=="number"?0:t;function MM(t){const e=lS(t);return cS(t)(e.map(TM))}const co={test:RM,parse:lS,createTransformer:cS,getAnimatableNone:MM},fS=(t,e)=>r=>`${r>0?e:t}`;function uS(t,e){return typeof t=="number"?r=>Bt(t,e,r):Gr.test(t)?iS(t,e):t.startsWith("var(")?fS(t,e):hS(t,e)}const dS=(t,e)=>{const r=[...t],n=r.length,i=t.map((s,o)=>uS(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]=uS(t[i],e[i]));return i=>{for(const s in n)r[s]=n[s](i);return r}},hS=(t,e)=>{const r=co.createTransformer(e),n=Jd(t),i=Jd(e);return n.numVars===i.numVars&&n.numColors===i.numColors&&n.numNumbers>=i.numNumbers?to(dS(n.values,i.values),r):fS(t,e)},Ef=(t,e,r)=>{const n=e-t;return n===0?1:(r-t)/n},I2=(t,e)=>r=>Bt(t,e,r);function _M(t){return typeof t=="number"?I2:typeof t=="string"?Gr.test(t)?iS:hS:Array.isArray(t)?dS:typeof t=="object"?IM:I2}function OM(t,e,r){const n=[],i=r||_M(t[0]),s=t.length-1;for(let o=0;oe[0];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());const o=OM(e,n,i),a=o.length,l=c=>{let f=0;if(a>1)for(;fl(lo(t[0],t[s-1],c)):l}function NM(t,e){const r=t[t.length-1];for(let n=1;n<=e;n++){const i=Ef(0,e,n);t.push(Bt(r,1,i))}}function DM(t){const e=[0];return NM(e,t.length-1),e}function LM(t,e){return t.map(r=>r*e)}function jM(t,e){return t.map(()=>e||X5).splice(0,t.length-1)}function Xd({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){const i=gM(n)?n.map(T2):T2(n),s={done:!1,value:e[0]},o=LM(r&&r.length===e.length?r:DM(e),t),a=vS(o,e,{ease:Array.isArray(i)?i:jM(e,i)});return{calculatedDuration:t,next:l=>(s.value=a(l),s.done=l>=t,s)}}function yS(t,e){return e?t*(1e3/e):0}const BM=5;function pS(t,e,r){const n=Math.max(e-BM,0);return yS(r-t(n),e-n)}const w1=.001,$M=.01,_2=10,FM=.05,UM=1;function zM({duration:t=800,bounce:e=.25,velocity:r=0,mass:n=1}){let i,s;cM(t<=ro(_2));let o=1-e;o=lo(FM,UM,o),t=lo($M,_2,ds(t)),o<1?(i=c=>{const f=c*o,u=f*t,d=f-r,v=Ay(c,o),g=Math.exp(-u);return w1-d/v*g},s=c=>{const u=c*o*t,d=u*r+r,v=Math.pow(o,2)*Math.pow(c,2)*t,g=Math.exp(-u),y=Ay(Math.pow(c,2),o);return(-i(c)+w1>0?-1:1)*((d-v)*g)/y}):(i=c=>{const f=Math.exp(-c*t),u=(c-r)*t+1;return-w1+f*u},s=c=>{const f=Math.exp(-c*t),u=(r-c)*(t*t);return f*u});const a=5/t,l=qM(i,s,a);if(t=ro(t),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 VM=12;function qM(t,e,r){let n=r;for(let i=1;it[r]!==void 0)}function GM(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!O2(t,WM)&&O2(t,HM)){const r=zM(t);e={...e,...r,mass:1},e.isResolvedFromDuration=!0}return e}function mS({keyframes:t,restDelta:e,restSpeed:r,...n}){const i=t[0],s=t[t.length-1],o={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:f,velocity:u,isResolvedFromDuration:d}=GM({...n,velocity:-ds(n.velocity||0)}),v=u||0,g=l/(2*Math.sqrt(a*c)),y=s-i,w=ds(Math.sqrt(a/c)),x=Math.abs(y)<5;r||(r=x?.01:2),e||(e=x?.005:.5);let b;if(g<1){const A=Ay(w,g);b=P=>{const _=Math.exp(-g*w*P);return s-_*((v+g*w*y)/A*Math.sin(A*P)+y*Math.cos(A*P))}}else if(g===1)b=A=>s-Math.exp(-w*A)*(y+(v+w*y)*A);else{const A=w*Math.sqrt(g*g-1);b=P=>{const _=Math.exp(-g*w*P),D=Math.min(A*P,300);return s-_*((v+g*w*y)*Math.sinh(D)+A*y*Math.cosh(D))/A}}return{calculatedDuration:d&&f||null,next:A=>{const P=b(A);if(d)o.done=A>=f;else{let _=v;A!==0&&(g<1?_=pS(b,A,P):_=0);const D=Math.abs(_)<=r,M=Math.abs(s-P)<=e;o.done=D&&M}return o.value=o.done?s:P,o}}}function N2({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:c=.5,restSpeed:f}){const u=t[0],d={done:!1,value:u},v=L=>a!==void 0&&Ll,g=L=>a===void 0?l:l===void 0||Math.abs(a-L)-y*Math.exp(-L/n),A=L=>x+b(L),P=L=>{const z=b(L),H=A(L);d.done=Math.abs(z)<=c,d.value=d.done?x:H};let _,D;const M=L=>{v(d.value)&&(_=L,D=mS({keyframes:[d.value,g(d.value)],velocity:pS(A,L,d.value),damping:i,stiffness:s,restDelta:c,restSpeed:f}))};return M(0),{calculatedDuration:null,next:L=>{let z=!1;return!D&&_===void 0&&(z=!0,P(L),M(L)),_!==void 0&&L>_?D.next(L-_):(!z&&P(L),d)}}}const KM=t=>{const e=({timestamp:r})=>t(r);return{start:()=>Ct.update(e,!0),stop:()=>gs(e),now:()=>jr.isProcessing?jr.timestamp:performance.now()}},D2=2e4;function L2(t){let e=0;const r=50;let n=t.next(e);for(;!n.done&&e=D2?1/0:e}const QM={decay:N2,inertia:N2,tween:Xd,keyframes:Xd,spring:mS};function Zd({autoplay:t=!0,delay:e=0,driver:r=KM,keyframes:n,type:i="keyframes",repeat:s=0,repeatDelay:o=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:f,onUpdate:u,...d}){let v=1,g=!1,y,w;const x=()=>{w=new Promise(C=>{y=C})};x();let b;const A=QM[i]||Xd;let P;A!==Xd&&typeof n[0]!="number"&&(P=vS([0,100],n,{clamp:!1}),n=[0,100]);const _=A({...d,keyframes:n});let D;a==="mirror"&&(D=A({...d,keyframes:[...n].reverse(),velocity:-(d.velocity||0)}));let M="idle",L=null,z=null,H=null;_.calculatedDuration===null&&s&&(_.calculatedDuration=L2(_));const{calculatedDuration:Y}=_;let Z=1/0,O=1/0;Y!==null&&(Z=Y+o,O=Z*(s+1)-o);let h=0;const S=C=>{if(z===null)return;v>0&&(z=Math.min(z,C)),v<0&&(z=Math.min(C-O/v,z)),L!==null?h=L:h=Math.round(C-z)*v;const m=h-e*(v>=0?1:-1),T=v>=0?m<0:m>O;h=Math.max(m,0),M==="finished"&&L===null&&(h=O);let F=h,E=_;if(s){const K=Math.min(h,O)/Z;let oe=Math.floor(K),te=K%1;!te&&K>=1&&(te=1),te===1&&oe--,oe=Math.min(oe,s+1),!!(oe%2)&&(a==="reverse"?(te=1-te,o&&(te-=o/Z)):a==="mirror"&&(E=D)),F=lo(0,1,te)*Z}const $=T?{done:!1,value:n[0]}:E.next(F);P&&($.value=P($.value));let{done:V}=$;!T&&Y!==null&&(V=v>=0?h>=O:h<=0);const q=L===null&&(M==="finished"||M==="running"&&V);return u&&u($.value),q&&R(),$},k=()=>{b&&b.stop(),b=void 0},I=()=>{M="idle",k(),y(),x(),z=H=null},R=()=>{M="finished",f&&f(),k(),y()},N=()=>{if(g)return;b||(b=r(S));const C=b.now();l&&l(),L!==null?z=C-L:(!z||M==="finished")&&(z=C),M==="finished"&&x(),H=z,L=null,M="running",b.start()};t&&N();const B={then(C,m){return w.then(C,m)},get time(){return ds(h)},set time(C){C=ro(C),h=C,L!==null||!b||v===0?L=C:z=b.now()-C/v},get duration(){const C=_.calculatedDuration===null?L2(_):_.calculatedDuration;return ds(C)},get speed(){return v},set speed(C){C===v||!b||(v=C,B.time=ds(h))},get state(){return M},play:N,pause:()=>{M="paused",L=h},stop:()=>{g=!0,M!=="idle"&&(M="idle",c&&c(),I())},cancel:()=>{H!==null&&S(H),I()},complete:()=>{M="finished"},sample:C=>(z=0,S(C))};return B}function YM(t){let e;return()=>(e===void 0&&(e=t()),e)}const JM=YM(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),XM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),Pu=10,ZM=2e4,eI=(t,e)=>e.type==="spring"||t==="backgroundColor"||!K5(e.ease);function tI(t,e,{onUpdate:r,onComplete:n,...i}){if(!(JM()&&XM.has(e)&&!i.repeatDelay&&i.repeatType!=="mirror"&&i.damping!==0&&i.type!=="inertia"))return!1;let o=!1,a,l,c=!1;const f=()=>{l=new Promise(A=>{a=A})};f();let{keyframes:u,duration:d=300,ease:v,times:g}=i;if(eI(e,i)){const A=Zd({...i,repeat:0,delay:0});let P={done:!1,value:u[0]};const _=[];let D=0;for(;!P.done&&D{c=!1,y.cancel()},x=()=>{c=!0,Ct.update(w),a(),f()};return y.onfinish=()=>{c||(t.set(dM(u,i)),n&&n(),x())},{then(A,P){return l.then(A,P)},attachTimeline(A){return y.timeline=A,y.onfinish=null,Gt},get time(){return ds(y.currentTime||0)},set time(A){y.currentTime=ro(A)},get speed(){return y.playbackRate},set speed(A){y.playbackRate=A},get duration(){return ds(d)},play:()=>{o||(y.play(),gs(w))},pause:()=>y.pause(),stop:()=>{if(o=!0,y.playState==="idle")return;const{currentTime:A}=y;if(A){const P=Zd({...i,autoplay:!1});t.setWithVelocity(P.sample(A-Pu).value,P.sample(A).value,Pu)}x()},complete:()=>{c||y.finish()},cancel:x}}function rI({keyframes:t,delay:e,onUpdate:r,onComplete:n}){const i=()=>(r&&r(t[t.length-1]),n&&n(),{time:0,speed:1,duration:0,play:Gt,pause:Gt,stop:Gt,then:s=>(s(),Promise.resolve()),cancel:Gt,complete:Gt});return e?Zd({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}const nI={type:"spring",stiffness:500,damping:25,restSpeed:10},iI=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),sI={type:"keyframes",duration:.8},oI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aI=(t,{keyframes:e})=>e.length>2?sI:ua.has(t)?t.startsWith("scale")?iI(e[1]):nI:oI,Sy=(t,e)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(co.test(e)||e==="0")&&!e.startsWith("url(")),lI=new Set(["brightness","contrast","saturate","opacity"]);function cI(t){const[e,r]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[n]=r.match(Zh)||[];if(!n)return t;const i=r.replace(n,"");let s=lI.has(e)?1:0;return n!==r&&(s*=100),e+"("+s+i+")"}const fI=/([a-z-]*)\(.*?\)/g,Cy={...co,getAnimatableNone:t=>{const e=t.match(fI);return e?e.map(cI).join(" "):t}},uI={...I5,color:Gr,backgroundColor:Gr,outlineColor:Gr,fill:Gr,stroke:Gr,borderColor:Gr,borderTopColor:Gr,borderRightColor:Gr,borderBottomColor:Gr,borderLeftColor:Gr,filter:Cy,WebkitFilter:Cy},Lm=t=>uI[t];function gS(t,e){let r=Lm(t);return r!==Cy&&(r=co),r.getAnimatableNone?r.getAnimatableNone(e):void 0}const xS=t=>/^0[^.\s]+$/.test(t);function dI(t){if(typeof t=="number")return t===0;if(t!==null)return t==="none"||t==="0"||xS(t)}function hI(t,e,r,n){const i=Sy(e,r);let s;Array.isArray(r)?s=[...r]:s=[null,r];const o=n.from!==void 0?n.from:t.get();let a;const l=[];for(let c=0;ci=>{const s=jm(n,t)||{},o=s.delay||n.delay||0;let{elapsed:a=0}=n;a=a-ro(o);const l=hI(e,t,r,s),c=l[0],f=l[l.length-1],u=Sy(t,c),d=Sy(t,f);let v={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...s,delay:-a,onUpdate:g=>{e.set(g),s.onUpdate&&s.onUpdate(g)},onComplete:()=>{i(),s.onComplete&&s.onComplete()}};if(vI(s)||(v={...v,...aI(t,v)}),v.duration&&(v.duration=ro(v.duration)),v.repeatDelay&&(v.repeatDelay=ro(v.repeatDelay)),!u||!d||fM.current||s.type===!1||yI.skipAnimations)return rI(v);if(!n.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){const g=tI(e,t,v);if(g)return g}return Zd(v)};function eh(t){return!!(ln(t)&&t.add)}const bS=t=>/^\-?\d*\.?\d+$/.test(t);function $m(t,e){t.indexOf(e)===-1&&t.push(e)}function Fm(t,e){const r=t.indexOf(e);r>-1&&t.splice(r,1)}class Um{constructor(){this.subscriptions=[]}add(e){return $m(this.subscriptions,e),()=>Fm(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 mI{constructor(e,r={}){this.version="10.18.0",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}=jr;this.lastUpdated!==o&&(this.timeDelta=s,this.lastUpdated=o,Ct.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=()=>Ct.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=pI(this.current),this.owner=r.owner}onChange(e){return this.on("change",e)}on(e,r){this.events[e]||(this.events[e]=new Um);const n=this.events[e].add(r);return e==="change"?()=>{n(),Ct.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?yS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.animation=e(r),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(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pl(t,e){return new mI(t,e)}const wS=t=>e=>e.test(t),gI={test:t=>t==="auto",parse:t=>t},ES=[da,Ee,Bi,Ns,CT,ST,gI],rc=t=>ES.find(wS(t)),xI=[...ES,Gr,co],bI=t=>xI.find(wS(t));function wI(t,e,r){t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,pl(r))}function EI(t,e){const r=t0(t,e);let{transitionEnd:n={},transition:i={},...s}=r?t.makeTargetAnimatable(r,!1):{};s={...s,...n};for(const o in s){const a=$T(s[o]);wI(t,o,a)}}function AI(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;al.remove(u))),c.push(w)}return o&&Promise.all(c).then(()=>{o&&EI(t,o)}),c}function ky(t,e,r={}){const n=t0(t,e,r.custom);let{transition:i=t.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(i=r.transitionOverride);const s=n?()=>Promise.all(AS(t,n,r)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(l=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:u}=i;return RI(t,e,c+l,f,u,r)}:()=>Promise.resolve(),{when:a}=i;if(a){const[l,c]=a==="beforeChildren"?[s,o]:[o,s];return l().then(()=>c())}else return Promise.all([s(),o(r.delay)])}function RI(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(TI).forEach((c,f)=>{c.notify("AnimationStart",e),o.push(ky(c,e,{...s,delay:r+l(f)}).then(()=>c.notify("AnimationComplete",e)))}),Promise.all(o)}function TI(t,e){return t.sortNodePosition(e)}function MI(t,e,r={}){t.notify("AnimationStart",e);let n;if(Array.isArray(e)){const i=e.map(s=>ky(t,s,r));n=Promise.all(i)}else if(typeof e=="string")n=ky(t,e,r);else{const i=typeof e=="function"?t0(t,e,r.custom):e;n=Promise.all(AS(t,i,r))}return n.then(()=>t.notify("AnimationComplete",e))}const II=[...Em].reverse(),_I=Em.length;function OI(t){return e=>Promise.all(e.map(({animation:r,options:n})=>MI(t,r,n)))}function NI(t){let e=OI(t);const r=LI();let n=!0;const i=(l,c)=>{const f=t0(t,c);if(f){const{transition:u,transitionEnd:d,...v}=f;l={...l,...v,...d}}return l};function s(l){e=l(t)}function o(l,c){const f=t.getProps(),u=t.getVariantContext(!0)||{},d=[],v=new Set;let g={},y=1/0;for(let x=0;x<_I;x++){const b=II[x],A=r[b],P=f[b]!==void 0?f[b]:u[b],_=bf(P),D=b===c?A.isActive:null;D===!1&&(y=x);let M=P===u[b]&&P!==f[b]&&_;if(M&&n&&t.manuallyAnimateOnMount&&(M=!1),A.protectedKeys={...g},!A.isActive&&D===null||!P&&!A.prevProp||Jh(P)||typeof P=="boolean")continue;let z=DI(A.prevProp,P)||b===c&&A.isActive&&!M&&_||x>y&&_,H=!1;const Y=Array.isArray(P)?P:[P];let Z=Y.reduce(i,{});D===!1&&(Z={});const{prevResolvedValues:O={}}=A,h={...O,...Z},S=k=>{z=!0,v.has(k)&&(H=!0,v.delete(k)),A.needsAnimating[k]=!0};for(const k in h){const I=Z[k],R=O[k];if(g.hasOwnProperty(k))continue;let N=!1;Yd(I)&&Yd(R)?N=!W5(I,R):N=I!==R,N?I!==void 0?S(k):v.add(k):I!==void 0&&v.has(k)?S(k):A.protectedKeys[k]=!0}A.prevProp=P,A.prevResolvedValues=Z,A.isActive&&(g={...g,...Z}),n&&t.blockInitialAnimation&&(z=!1),z&&(!M||H)&&d.push(...Y.map(k=>({animation:k,options:{type:b,...l}})))}if(v.size){const x={};v.forEach(b=>{const A=t.getBaseTarget(b);A!==void 0&&(x[b]=A)}),d.push({animation:x})}let w=!!d.length;return n&&(f.initial===!1||f.initial===f.animate)&&!t.manuallyAnimateOnMount&&(w=!1),n=!1,w?e(d):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(v=>{var g;return(g=v.animationState)===null||g===void 0?void 0:g.setActive(l,c)}),r[l].isActive=c;const d=o(f,l);for(const v in r)r[v].protectedKeys={};return d}return{animateChanges:o,setActive:a,setAnimateFunction:s,getState:()=>r}}function DI(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!W5(e,t):!1}function Co(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function LI(){return{animate:Co(!0),whileInView:Co(),whileHover:Co(),whileTap:Co(),whileDrag:Co(),whileFocus:Co(),exit:Co()}}class jI extends wo{constructor(e){super(e),e.animationState||(e.animationState=NI(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Jh(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 BI=0;class $I extends wo{constructor(){super(...arguments),this.id=BI++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:r,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;const s=this.node.animationState.setActive("exit",!e,{custom:n??this.node.getProps().custom});r&&!e&&s.then(()=>r(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}const FI={animation:{Feature:jI},exit:{Feature:$I}},j2=(t,e)=>Math.abs(t-e);function UI(t,e){const r=j2(t.x,e.x),n=j2(t.y,e.y);return Math.sqrt(r**2+n**2)}class SS{constructor(e,r,{transformPagePoint:n,contextWindow:i,dragSnapToOrigin:s=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const u=A1(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,v=UI(u.offset,{x:0,y:0})>=3;if(!d&&!v)return;const{point:g}=u,{timestamp:y}=jr;this.history.push({...g,timestamp:y});const{onStart:w,onMove:x}=this.handlers;d||(w&&w(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,d)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=E1(d,this.transformPagePoint),Ct.update(this.updatePoint,!0)},this.handlePointerUp=(u,d)=>{this.end();const{onEnd:v,onSessionEnd:g,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=A1(u.type==="pointercancel"?this.lastMoveEventInfo:E1(d,this.transformPagePoint),this.history);this.startEvent&&v&&v(u,w),g&&g(u,w)},!U5(e))return;this.dragSnapToOrigin=s,this.handlers=r,this.transformPagePoint=n,this.contextWindow=i||window;const o=e0(e),a=E1(o,this.transformPagePoint),{point:l}=a,{timestamp:c}=jr;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=r;f&&f(e,A1(a,this.history)),this.removeListeners=to(us(this.contextWindow,"pointermove",this.handlePointerMove),us(this.contextWindow,"pointerup",this.handlePointerUp),us(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),gs(this.updatePoint)}}function E1(t,e){return e?{point:e(t.point)}:t}function B2(t,e){return{x:t.x-e.x,y:t.y-e.y}}function A1({point:t},e){return{point:t,delta:B2(t,CS(e)),offset:B2(t,zI(e)),velocity:VI(e,.1)}}function zI(t){return t[0]}function CS(t){return t[t.length-1]}function VI(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null;const i=CS(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>ro(e)));)r--;if(!n)return{x:0,y:0};const s=ds(i.timestamp-n.timestamp);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 Cn(t){return t.max-t.min}function Py(t,e=0,r=.01){return Math.abs(t-e)<=r}function $2(t,e,r,n=.5){t.origin=n,t.originPoint=Bt(e.min,e.max,t.origin),t.scale=Cn(r)/Cn(e),(Py(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=Bt(r.min,r.max,t.origin)-t.originPoint,(Py(t.translate)||isNaN(t.translate))&&(t.translate=0)}function Wc(t,e,r,n){$2(t.x,e.x,r.x,n?n.originX:void 0),$2(t.y,e.y,r.y,n?n.originY:void 0)}function F2(t,e,r){t.min=r.min+e.min,t.max=t.min+Cn(e)}function qI(t,e,r){F2(t.x,e.x,r.x),F2(t.y,e.y,r.y)}function U2(t,e,r){t.min=e.min-r.min,t.max=t.min+Cn(e)}function Gc(t,e,r){U2(t.x,e.x,r.x),U2(t.y,e.y,r.y)}function HI(t,{min:e,max:r},n){return e!==void 0&&tr&&(t=n?Bt(r,t,n.max):Math.min(t,r)),t}function z2(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 WI(t,{top:e,left:r,bottom:n,right:i}){return{x:z2(t.x,r,i),y:z2(t.y,e,n)}}function V2(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.minn?r=Ef(e.min,e.max-n,t.min):n>i&&(r=Ef(t.min,t.max-i,e.min)),lo(0,1,r)}function QI(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 Ry=.35;function YI(t=Ry){return t===!1?t=0:t===!0&&(t=Ry),{x:q2(t,"left","right"),y:q2(t,"top","bottom")}}function q2(t,e,r){return{min:H2(t,e),max:H2(t,r)}}function H2(t,e){return typeof t=="number"?t:t[e]||0}const W2=()=>({translate:0,scale:1,origin:0,originPoint:0}),Va=()=>({x:W2(),y:W2()}),G2=()=>({min:0,max:0}),or=()=>({x:G2(),y:G2()});function Dn(t){return[t("x"),t("y")]}function kS({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function JI({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function XI(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 S1(t){return t===void 0||t===1}function Ty({scale:t,scaleX:e,scaleY:r}){return!S1(t)||!S1(e)||!S1(r)}function To(t){return Ty(t)||PS(t)||t.z||t.rotate||t.rotateX||t.rotateY}function PS(t){return K2(t.x)||K2(t.y)}function K2(t){return t&&t!=="0%"}function th(t,e,r){const n=t-r,i=e*n;return r+i}function Q2(t,e,r,n,i){return i!==void 0&&(t=th(t,i,n)),th(t,r,n)+e}function My(t,e=0,r=1,n,i){t.min=Q2(t.min,e,r,n,i),t.max=Q2(t.max,e,r,n,i)}function RS(t,{x:e,y:r}){My(t.x,e.translate,e.scale,e.originPoint),My(t.y,r.translate,r.scale,r.originPoint)}function ZI(t,e,r,n=!1){const i=r.length;if(!i)return;e.x=e.y=1;let s,o;for(let a=0;a1.0000000000001||t<.999999999999?t:1}function Fs(t,e){t.min=t.min+e,t.max=t.max+e}function J2(t,e,[r,n,i]){const s=e[i]!==void 0?e[i]:.5,o=Bt(t.min,t.max,s);My(t,e[r],e[n],o,e.scale)}const e_=["x","scaleX","originX"],t_=["y","scaleY","originY"];function qa(t,e){J2(t.x,e,e_),J2(t.y,e,t_)}function TS(t,e){return kS(XI(t.getBoundingClientRect(),e))}function r_(t,e,r){const n=TS(t,r),{scroll:i}=e;return i&&(Fs(n.x,i.offset.x),Fs(n.y,i.offset.y)),n}const MS=({current:t})=>t?t.ownerDocument.defaultView:null,n_=new WeakMap;class i_{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=or(),this.visualElement=e}start(e,{snapToCursor:r=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),r&&this.snapToCursor(e0(f,"page").point)},s=(f,u)=>{const{drag:d,dragPropagation:v,onDragStart:g}=this.getProps();if(d&&!v&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=V5(d),!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),Dn(w=>{let x=this.getAxisMotionValue(w).get()||0;if(Bi.test(x)){const{projection:b}=this.visualElement;if(b&&b.layout){const A=b.layout.layoutBox[w];A&&(x=Cn(A)*(parseFloat(x)/100))}}this.originPoint[w]=x}),g&&Ct.update(()=>g(f,u),!1,!0);const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},o=(f,u)=>{const{dragPropagation:d,dragDirectionLock:v,onDirectionLock:g,onDrag:y}=this.getProps();if(!d&&!this.openGlobalLock)return;const{offset:w}=u;if(v&&this.currentDirection===null){this.currentDirection=s_(w),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",u.point,w),this.updateAxis("y",u.point,w),this.visualElement.render(),y&&y(f,u)},a=(f,u)=>this.stop(f,u),l=()=>Dn(f=>{var u;return this.getAnimationState(f)==="paused"&&((u=this.getAxisMotionValue(f).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new SS(e,{onSessionStart:i,onStart:s,onMove:o,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:MS(this.visualElement)})}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&&Ct.update(()=>s(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:i}=this.getProps();if(!n||!Ru(e,i,this.currentDirection))return;const s=this.getAxisMotionValue(e);let o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=HI(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;const{dragConstraints:r,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,s=this.constraints;r&&Ua(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&i?this.constraints=WI(i.layoutBox,r):this.constraints=!1,this.elastic=YI(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Dn(o=>{this.getAxisMotionValue(o)&&(this.constraints[o]=QI(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!Ua(e))return!1;const n=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const s=r_(n,i.root,this.visualElement.getTransformPagePoint());let o=GI(i.layout.layoutBox,s);if(r){const a=r(JI(o));this.hasMutatedConstraints=!!a,a&&(o=kS(a))}return o}startAnimation(e){const{drag:r,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},c=Dn(f=>{if(!Ru(f,r,this.currentDirection))return;let u=l&&l[f]||{};o&&(u={min:0,max:0});const d=i?200:1e6,v=i?40:1e7,g={type:"inertia",velocity:n?e[f]:0,bounceStiffness:d,bounceDamping:v,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(Bm(e,n,0,r))}stopAnimation(){Dn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Dn(e=>{var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.pause()})}getAnimationState(e){var r;return(r=this.getAxisMotionValue(e).animation)===null||r===void 0?void 0:r.state}getAxisMotionValue(e){const r="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[r];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Dn(r=>{const{drag:n}=this.getProps();if(!Ru(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]-Bt(o,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:r}=this.getProps(),{projection:n}=this.visualElement;if(!Ua(r)||!n||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Dn(o=>{const a=this.getAxisMotionValue(o);if(a){const l=a.get();i[o]=KI({min:l,max:l},this.constraints[o])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Dn(o=>{if(!Ru(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:c}=this.constraints[o];a.set(Bt(l,c,i[o]))})}addListeners(){if(!this.visualElement.current)return;n_.set(this.visualElement,this);const e=this.visualElement.current,r=us(e,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),n=()=>{const{dragConstraints:l}=this.getProps();Ua(l)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,s=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),n();const o=ls(window,"resize",()=>this.scalePositionWithinConstraints()),a=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(Dn(f=>{const u=this.getAxisMotionValue(f);u&&(this.originPoint[f]+=l[f].translate,u.set(u.get()+l[f].translate))}),this.visualElement.render())});return()=>{o(),r(),s(),a&&a()}}getProps(){const e=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=Ry,dragMomentum:a=!0}=e;return{...e,drag:r,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}}function Ru(t,e,r){return(e===!0||e===t)&&(r===null||r===t)}function s_(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}class o_ extends wo{constructor(e){super(e),this.removeGroupControls=Gt,this.removeListeners=Gt,this.controls=new i_(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Gt}unmount(){this.removeGroupControls(),this.removeListeners()}}const X2=t=>(e,r)=>{t&&Ct.update(()=>t(e,r))};class a_ extends wo{constructor(){super(...arguments),this.removePointerDownListener=Gt}onPointerDown(e){this.session=new SS(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:MS(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:r,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:X2(e),onStart:X2(r),onMove:n,onEnd:(s,o)=>{delete this.session,i&&Ct.update(()=>i(s,o))}}}mount(){this.removePointerDownListener=us(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 l_(){const t=p.useContext(Qh);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:r,register:n}=t,i=p.useId();return p.useEffect(()=>n(i),[]),!e&&r?[!1,()=>r&&r(i)]:[!0]}const cd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Z2(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const nc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Ee.test(t))t=parseFloat(t);else return t;const r=Z2(t,e.target.x),n=Z2(t,e.target.y);return`${r}% ${n}%`}},c_={correct:(t,{treeScale:e,projectionDelta:r})=>{const n=t,i=co.parse(t);if(i.length>5)return n;const s=co.createTransformer(t),o=typeof i[0]!="number"?1:0,a=r.x.scale*e.x,l=r.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const c=Bt(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=c),typeof i[3+o]=="number"&&(i[3+o]/=c),s(i)}};class f_ extends gr.Component{componentDidMount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;mT(u_),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()})),cd.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()||Ct.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),r&&r.group&&r.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function IS(t){const[e,r]=l_(),n=p.useContext(Sm);return gr.createElement(f_,{...t,layoutGroup:n,switchLayoutGroup:p.useContext(k5),isPresent:e,safeToRemove:r})}const u_={borderRadius:{...nc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nc,borderTopRightRadius:nc,borderBottomLeftRadius:nc,borderBottomRightRadius:nc,boxShadow:c_},_S=["TopLeft","TopRight","BottomLeft","BottomRight"],d_=_S.length,ew=t=>typeof t=="string"?parseFloat(t):t,tw=t=>typeof t=="number"||Ee.test(t);function h_(t,e,r,n,i,s){i?(t.opacity=Bt(0,r.opacity!==void 0?r.opacity:1,v_(n)),t.opacityExit=Bt(e.opacity!==void 0?e.opacity:1,0,y_(n))):s&&(t.opacity=Bt(e.opacity!==void 0?e.opacity:1,r.opacity!==void 0?r.opacity:1,n));for(let o=0;one?1:r(Ef(t,e,n))}function nw(t,e){t.min=e.min,t.max=e.max}function _n(t,e){nw(t.x,e.x),nw(t.y,e.y)}function iw(t,e,r,n,i){return t-=e,t=th(t,1/r,n),i!==void 0&&(t=th(t,1/i,n)),t}function p_(t,e=0,r=1,n=.5,i,s=t,o=t){if(Bi.test(e)&&(e=parseFloat(e),e=Bt(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=Bt(s.min,s.max,n);t===s&&(a-=e),t.min=iw(t.min,e,r,a,i),t.max=iw(t.max,e,r,a,i)}function sw(t,e,[r,n,i],s,o){p_(t,e[r],e[n],e[i],e.scale,s,o)}const m_=["x","scaleX","originX"],g_=["y","scaleY","originY"];function ow(t,e,r,n){sw(t.x,e,m_,r?r.x:void 0,n?n.x:void 0),sw(t.y,e,g_,r?r.y:void 0,n?n.y:void 0)}function aw(t){return t.translate===0&&t.scale===1}function NS(t){return aw(t.x)&&aw(t.y)}function x_(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 DS(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function lw(t){return Cn(t.x)/Cn(t.y)}class b_{constructor(){this.members=[]}add(e){$m(this.members,e),e.scheduleRender()}remove(e){if(Fm(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){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:i}=e.options;i===!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 cw(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 w_=(t,e)=>t.depth-e.depth;class E_{constructor(){this.children=[],this.isDirty=!1}add(e){$m(this.children,e),this.isDirty=!0}remove(e){Fm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(w_),this.isDirty=!1,this.children.forEach(e)}}function A_(t,e){const r=performance.now(),n=({timestamp:i})=>{const s=i-r;s>=e&&(gs(n),t(s-e))};return Ct.read(n,!0),()=>gs(n)}function S_(t){window.MotionDebug&&window.MotionDebug.record(t)}function C_(t){return t instanceof SVGElement&&t.tagName!=="svg"}function k_(t,e,r){const n=ln(t)?t:pl(t);return n.start(Bm("",n,e,r)),n.animation}const fw=["","X","Y","Z"],P_={visibility:"hidden"},uw=1e3;let R_=0;const Mo={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function LS({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=R_++,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.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Mo.totalNodes=Mo.resolvedTargetDeltas=Mo.recalculatedProjection=0,this.nodes.forEach(I_),this.nodes.forEach(L_),this.nodes.forEach(j_),this.nodes.forEach(__),S_(Mo)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;t(o,()=>{this.root.updateBlockedByResize=!0,u&&u(),u=A_(d,250),cd.hasAnimatedSinceResize&&(cd.hasAnimatedSinceResize=!1,this.nodes.forEach(hw))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:u,hasLayoutChanged:d,hasRelativeTargetChanged:v,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||z_,{onLayoutAnimationStart:w,onLayoutAnimationComplete:x}=f.getProps(),b=!this.targetLayout||!DS(this.targetLayout,g)||v,A=!d&&v;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||A||d&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(u,A);const P={...jm(y,"layout"),onPlay:w,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else d||hw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}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,gs(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(B_),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,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 f=0;fthis.update()))}clearAllSnapshots(){this.nodes.forEach(O_),this.sharedNodes.forEach($_)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ct.postRender(()=>{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 l=0;l{const _=P/1e3;vw(u.x,o.x,_),vw(u.y,o.y,_),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Gc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),F_(this.relativeTarget,this.relativeTargetOrigin,d,_),A&&x_(this.relativeTarget,A)&&(this.isProjectionDirty=!1),A||(A=or()),_n(A,this.relativeTarget)),y&&(this.animationValues=f,h_(f,c,this.latestValues,_,b,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},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&&(gs(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ct.update(()=>{cd.hasAnimatedSinceResize=!0,this.currentAnimation=k_(0,uw,{...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(uw),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&&jS(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||or();const u=Cn(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+u;const d=Cn(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+d}_n(a,l),qa(a,f),Wc(this.projectionDeltaWithTransform,this.layoutCorrected,a,f)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new b_),this.sharedNodes.get(o).add(a);const c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.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: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(dw),this.root.sharedNodes.clear()}}}function T_(t){t.updateLayout()}function M_(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:i}=t.layout,{animationType:s}=t.options,o=r.source!==t.layout.source;s==="size"?Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(d);d.min=n[u].min,d.max=d.min+v}):jS(s,r.layoutBox,n)&&Dn(u=>{const d=o?r.measuredBox[u]:r.layoutBox[u],v=Cn(n[u]);d.max=d.min+v,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+v)});const a=Va();Wc(a,n,r.layoutBox);const l=Va();o?Wc(l,t.applyTransform(i,!0),r.measuredBox):Wc(l,n,r.layoutBox);const c=!NS(a);let f=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:v}=u;if(d&&v){const g=or();Gc(g,r.layoutBox,d.layoutBox);const y=or();Gc(y,n,v.layoutBox),DS(g,y)||(f=!0),u.options.layoutRoot&&(t.relativeTarget=y,t.relativeTargetOrigin=g,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(t.isLead()){const{onExitComplete:n}=t.options;n&&n()}t.options.transition=void 0}function I_(t){Mo.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 __(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function O_(t){t.clearSnapshot()}function dw(t){t.clearMeasurements()}function N_(t){t.isLayoutDirty=!1}function D_(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function hw(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function L_(t){t.resolveTargetDelta()}function j_(t){t.calcProjection()}function B_(t){t.resetRotation()}function $_(t){t.removeLeadSnapshot()}function vw(t,e,r){t.translate=Bt(e.translate,0,r),t.scale=Bt(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function yw(t,e,r,n){t.min=Bt(e.min,r.min,n),t.max=Bt(e.max,r.max,n)}function F_(t,e,r,n){yw(t.x,e.x,r.x,n),yw(t.y,e.y,r.y,n)}function U_(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const z_={duration:.45,ease:[.4,0,.1,1]},pw=t=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes(t),mw=pw("applewebkit/")&&!pw("chrome/")?Math.round:Gt;function gw(t){t.min=mw(t.min),t.max=mw(t.max)}function V_(t){gw(t.x),gw(t.y)}function jS(t,e,r){return t==="position"||t==="preserve-aspect"&&!Py(lw(e),lw(r),.2)}const q_=LS({attachResizeListener:(t,e)=>ls(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),C1={current:void 0},BS=LS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!C1.current){const t=new q_({});t.mount(window),t.setOptions({layoutScroll:!0}),C1.current=t}return C1.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),H_={pan:{Feature:a_},drag:{Feature:o_,ProjectionNode:BS,MeasureLayout:IS}},W_=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function G_(t){const e=W_.exec(t);if(!e)return[,];const[,r,n]=e;return[r,n]}function Iy(t,e,r=1){const[n,i]=G_(t);if(!n)return;const s=window.getComputedStyle(e).getPropertyValue(n);if(s){const o=s.trim();return bS(o)?parseFloat(o):o}else return by(i)?Iy(i,e,r+1):i}function K_(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(!by(s))return;const o=Iy(s,n);o&&i.set(o)});for(const i in e){const s=e[i];if(!by(s))continue;const o=Iy(s,n);o&&(e[i]=o,r||(r={}),r[i]===void 0&&(r[i]=s))}return{target:e,transitionEnd:r}}const Q_=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),$S=t=>Q_.has(t),Y_=t=>Object.keys(t).some($S),xw=t=>t===da||t===Ee,bw=(t,e)=>parseFloat(t.split(", ")[e]),ww=(t,e)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;const i=n.match(/^matrix3d\((.+)\)$/);if(i)return bw(i[1],e);{const s=n.match(/^matrix\((.+)\)$/);return s?bw(s[1],t):0}},J_=new Set(["x","y","z"]),X_=Wf.filter(t=>!J_.has(t));function Z_(t){const e=[];return X_.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 ml={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:ww(4,13),y:ww(5,14)};ml.translateX=ml.x;ml.translateY=ml.y;const eO=(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]=ml[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]=ml[c](l,s)}),t},tO=(t,e,r={},n={})=>{e={...e},n={...n};const i=Object.keys(e).filter($S);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 d=e[l];let v;if(Yd(d)){const g=d.length,y=d[0]===null?1:0;f=d[y],u=rc(f);for(let w=y;w=0?window.pageYOffset:null,c=eO(e,t,a);return s.length&&s.forEach(([f,u])=>{t.getValue(f).set(u)}),t.render(),Yh&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:e,transitionEnd:n}};function rO(t,e,r,n){return Y_(e)?tO(t,e,r,n):{target:e,transitionEnd:n}}const nO=(t,e,r,n)=>{const i=K_(t,e,n);return e=i.target,n=i.transitionEnd,rO(t,e,r,n)},_y={current:null},FS={current:!1};function iO(){if(FS.current=!0,!!Yh)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>_y.current=t.matches;t.addListener(e),e()}else _y.current=!1}function sO(t,e,r){const{willChange:n}=e;for(const i in e){const s=e[i],o=r[i];if(ln(s))t.addValue(i,s),eh(n)&&n.add(i);else if(ln(o))t.addValue(i,pl(s,{owner:t})),eh(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,pl(a!==void 0?a:s,{owner:t}))}}for(const i in r)e[i]===void 0&&t.removeValue(i);return e}const Ew=new WeakMap,US=Object.keys(wf),oO=US.length,Aw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],aO=Am.length;class lO{constructor({parent:e,props:r,presenceContext:n,reducedMotionConfig:i,visualState:s},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=()=>Ct.render(this.render,!1,!0);const{latestValues:a,renderState:l}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=r.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=r,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=Xh(r),this.isVariantNode=C5(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...f}=this.scrapeMotionValuesFromProps(r,{});for(const u in f){const d=f[u];a[u]!==void 0&&ln(d)&&(d.set(a[u],!1),eh(c)&&c.add(u))}}scrapeMotionValuesFromProps(e,r){return{}}mount(e){this.current=e,Ew.set(e,this),this.projection&&!this.projection.instance&&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)),FS.current||iO(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:_y.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Ew.delete(this.current),this.projection&&this.projection.unmount(),gs(this.notifyUpdate),gs(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=ua.has(e),i=r.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&Ct.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){let o,a;for(let l=0;lthis.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,layoutScroll:d,layoutRoot:v})}return a}updateFeatures(){for(const e in this.features){const r=this.features[e];r.isMounted?r.update():(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):or()}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=pl(r,{owner:this}),this.addValue(e,n)),n}readValue(e){var r;return this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(r=this.getBaseTargetFromProps(this.props,e))!==null&&r!==void 0?r: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=Im(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&&!ln(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 Um),this.events[e].add(r)}notify(e,...r){this.events[e]&&this.events[e].notify(...r)}}class zS extends lO{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:i},s){let o=CI(n,e||{},this);if(i&&(r&&(r=i(r)),n&&(n=i(n)),o&&(o=i(o))),s){AI(this,n,o);const a=nO(this,n,o,r);r=a.transitionEnd,n=a.target}return{transition:e,transitionEnd:r,...n}}}function cO(t){return window.getComputedStyle(t)}class fO extends zS{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}else{const n=cO(e),i=(T5(r)?n.getPropertyValue(r):n[r])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:r}){return TS(e,r)}build(e,r,n,i){km(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;ln(e)&&(this.childSubscription=e.on("change",r=>{this.current&&(this.current.textContent=`${r}`)}))}renderInstance(e,r,n,i){D5(e,r,n,i)}}class uO extends zS{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,r){return e[r]}readValueFromInstance(e,r){if(ua.has(r)){const n=Lm(r);return n&&n.default||0}return r=L5.has(r)?r:wm(r),e.getAttribute(r)}measureInstanceViewportBox(){return or()}scrapeMotionValuesFromProps(e,r){return B5(e,r)}build(e,r,n,i){Rm(e,r,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,r,n,i){j5(e,r,n,i)}mount(e){this.isSVGTag=Tm(e.tagName),super.mount(e)}}const dO=(t,e)=>Cm(t)?new uO(e,{enableHardwareAcceleration:!1}):new fO(e,{enableHardwareAcceleration:!0}),hO={layout:{ProjectionNode:BS,MeasureLayout:IS}},vO={...FI,...oM,...H_,...hO},el=yT((t,e)=>GT(t,e,vO,dO));function VS(){const t=p.useRef(!1);return bm(()=>(t.current=!0,()=>{t.current=!1}),[]),t}function yO(){const t=VS(),[e,r]=p.useState(0),n=p.useCallback(()=>{t.current&&r(e+1)},[e]);return[p.useCallback(()=>Ct.postRender(n),[n]),e]}class pO extends p.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 mO({children:t,isPresent:e}){const r=p.useId(),n=p.useRef(null),i=p.useRef({width:0,height:0,top:0,left:0});return p.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; @@ -45,12 +45,12 @@ Error generating stack: `+s.message+` top: ${a}px !important; left: ${l}px !important; } - `),()=>{document.head.removeChild(c)}},[e]),p.createElement(pO,{isPresent:e,childRef:n,sizeRef:i},p.cloneElement(t,{ref:n}))}const k1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=$5(gO),l=p.useId(),c=p.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 p.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),p.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=p.createElement(mO,{isPresent:r},t)),p.createElement(Qh.Provider,{value:c},t)};function gO(){return new Map}function xO(t){return p.useEffect(()=>()=>t(),[])}const Io=t=>t.key||"";function bO(t,e){t.forEach(r=>{const n=Io(r);e.set(n,r)})}function wO(t){const e=[];return p.Children.forEach(t,r=>{p.isValidElement(r)&&e.push(r)}),e}const q8=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=p.useContext(Sm).forceRender||yO()[0],l=V8(),c=wO(t);let f=c;const u=p.useRef(new Map).current,d=p.useRef(f),v=p.useRef(new Map).current,g=p.useRef(!0);if(bm(()=>{g.current=!1,bO(c,v),d.current=f}),xO(()=>{g.current=!0,v.clear(),u.clear()}),g.current)return p.createElement(p.Fragment,null,f.map(b=>p.createElement(k1,{key:Io(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Io),w=c.map(Io),x=y.length;for(let b=0;b{if(w.indexOf(S)!==-1)return;const P=v.get(S);if(!P)return;const _=y.indexOf(S);let D=b;if(!D){const M=()=>{u.delete(S);const L=Array.from(v.keys()).filter(z=>!w.includes(z));if(L.forEach(z=>v.delete(z)),d.current=c.filter(z=>{const H=Io(z);return H===S||L.includes(H)}),!u.size){if(l.current===!1)return;a(),n&&n()}};D=p.createElement(k1,{key:Io(P),isPresent:!1,onExitComplete:M,custom:e,presenceAffectsLayout:s,mode:o},P),u.set(S,D)}f.splice(_,0,D)}),f=f.map(b=>{const S=b.key;return u.has(S)?b:p.createElement(k1,{key:Io(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),p.createElement(p.Fragment,null,u.size?f:f.map(b=>p.cloneElement(b)))},H8={black:"#000000",white:"#ffffff",inherit:"inherit",transparent:"transparent",positive:"#1FC266",negative:"#C2501F",info:"#0076CC",warning:"#F4B03E",gradientBackdrop:`linear-gradient( + `),()=>{document.head.removeChild(c)}},[e]),p.createElement(pO,{isPresent:e,childRef:n,sizeRef:i},p.cloneElement(t,{ref:n}))}const k1=({children:t,initial:e,isPresent:r,onExitComplete:n,custom:i,presenceAffectsLayout:s,mode:o})=>{const a=$5(gO),l=p.useId(),c=p.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 p.useMemo(()=>{a.forEach((f,u)=>a.set(u,!1))},[r]),p.useEffect(()=>{!r&&!a.size&&n&&n()},[r]),o==="popLayout"&&(t=p.createElement(mO,{isPresent:r},t)),p.createElement(Qh.Provider,{value:c},t)};function gO(){return new Map}function xO(t){return p.useEffect(()=>()=>t(),[])}const Io=t=>t.key||"";function bO(t,e){t.forEach(r=>{const n=Io(r);e.set(n,r)})}function wO(t){const e=[];return p.Children.forEach(t,r=>{p.isValidElement(r)&&e.push(r)}),e}const qS=({children:t,custom:e,initial:r=!0,onExitComplete:n,exitBeforeEnter:i,presenceAffectsLayout:s=!0,mode:o="sync"})=>{const a=p.useContext(Sm).forceRender||yO()[0],l=VS(),c=wO(t);let f=c;const u=p.useRef(new Map).current,d=p.useRef(f),v=p.useRef(new Map).current,g=p.useRef(!0);if(bm(()=>{g.current=!1,bO(c,v),d.current=f}),xO(()=>{g.current=!0,v.clear(),u.clear()}),g.current)return p.createElement(p.Fragment,null,f.map(b=>p.createElement(k1,{key:Io(b),isPresent:!0,initial:r?void 0:!1,presenceAffectsLayout:s,mode:o},b)));f=[...f];const y=d.current.map(Io),w=c.map(Io),x=y.length;for(let b=0;b{if(w.indexOf(A)!==-1)return;const P=v.get(A);if(!P)return;const _=y.indexOf(A);let D=b;if(!D){const M=()=>{u.delete(A);const L=Array.from(v.keys()).filter(z=>!w.includes(z));if(L.forEach(z=>v.delete(z)),d.current=c.filter(z=>{const H=Io(z);return H===A||L.includes(H)}),!u.size){if(l.current===!1)return;a(),n&&n()}};D=p.createElement(k1,{key:Io(P),isPresent:!1,onExitComplete:M,custom:e,presenceAffectsLayout:s,mode:o},P),u.set(A,D)}f.splice(_,0,D)}),f=f.map(b=>{const A=b.key;return u.has(A)?b:p.createElement(k1,{key:Io(b),isPresent:!0,presenceAffectsLayout:s,mode:o},b)}),p.createElement(p.Fragment,null,u.size?f:f.map(b=>p.cloneElement(b)))},HS={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"},EO={...H8,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)"},AO={...H8,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)"},SO={dark:EO,light:AO},CO={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 Sw={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 kO(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 PO(t){var e=kO(t,"string");return typeof e=="symbol"?e:String(e)}function RO(t,e,r){return e=PO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cw(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 P1(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=P1({},l),d=!1;for(var v of o){var g=l[v];if(g!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=g,u[w]==null&&delete u[w]}}var x=d?P1(P1({},f),u):l,b=function(){var D=x[S],M=i[S];try{if(M.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push(M.values[D].defaultClass);else if(Array.isArray(D))for(var L=0;Lt,IO=function(){return TO(MO)(...arguments)},W8=IO({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 _O=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],Oy=t=>(t.display||(t.display=Object.keys(t).some(e=>_O.includes(e))?"flex":void 0),W8(t));Oy.properties=W8.properties;function G8(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)Oy.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=Oy({...o,...n});return p.createElement(r,{className:fn(l,i),...a,ref:e})});var K8={exports:{}},nc={};/** + )`,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"},EO={...HS,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)"},AO={...HS,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)"},SO={dark:EO,light:AO},CO={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 Sw={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 kO(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 PO(t){var e=kO(t,"string");return typeof e=="symbol"?e:String(e)}function RO(t,e,r){return e=PO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Cw(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 P1(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=P1({},l),d=!1;for(var v of o){var g=l[v];if(g!=null){var y=i[v];d=!0;for(var w of y.mappings)f[w]=g,u[w]==null&&delete u[w]}}var x=d?P1(P1({},f),u):l,b=function(){var D=x[A],M=i[A];try{if(M.mappings)return"continue";if(typeof D=="string"||typeof D=="number")c.push(M.values[D].defaultClass);else if(Array.isArray(D))for(var L=0;Lt,IO=function(){return TO(MO)(...arguments)},WS=IO({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 _O=["alignItems","alignSelf","flexDirection","gap","justifyContent","justifySelf","placeItems"],Oy=t=>(t.display||(t.display=Object.keys(t).some(e=>_O.includes(e))?"flex":void 0),WS(t));Oy.properties=WS.properties;function GS(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)Oy.properties.has(c)?o[c]=s[c]:a[c]=s[c];const l=Oy({...o,...n});return p.createElement(r,{className:fn(l,i),...a,ref:e})});var KS={exports:{}},ic={};/** * @license React * react-jsx-runtime.production.min.js * @@ -58,7 +58,7 @@ Error generating stack: `+s.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var kw;function OO(){if(kw)return nc;kw=1;var t=gr,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={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=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:d,ref:v,props:u,_owner:i.current}}return nc.Fragment=r,nc.jsx=o,nc.jsxs=o,nc}K8.exports=OO();var J=K8.exports;function NO(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 DO(t){var e=NO(t,"string");return typeof e=="symbol"?e:String(e)}function LO(t,e,r){return e=DO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pw(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 Rw(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},Qt=t=>{var e=r=>{var n=t.defaultClassName,i=Rw(Rw({},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)jO(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 Tw(t.variantClassNames,r=>Tw(r,n=>n.split(" ")[0]))}},e};Qt({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 Co=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return J.jsx(re,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var BO=Qt({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 Se=p.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,...d}=t,v=CO[n];return J.jsx(re,{as:r,className:fn(i,BO({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var $O=Qt({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 pr=p.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:d="md",variant:v="glass",width:g="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,S=u!==void 0&&c!==void 0,P=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return J.jsx(re,{as:r,className:fn(i,$O({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:S,iconOnly:P,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:e,type:w,width:g,...x,children:P?J.jsx(f,{size:_}):J.jsxs(re,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[J.jsxs(re,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&J.jsx(f,{size:_}),J.jsx(Se,{children:c})]}),u&&J.jsx(u,{size:_})]})})});var FO=Qt({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:[]});p.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return J.jsx(re,{className:fn(r,FO({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 Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>UO(r,e))}function It(...t){return p.useCallback(Q8(...t),t)}function qr(t,e=[]){let r=[];function n(s,o){const a=p.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...g}=u,y=(d==null?void 0:d[t][l])||a,w=p.useMemo(()=>g,Object.values(g));return p.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,g=p.useContext(v);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=>p.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return p.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,zO(i,...e)]}function zO(...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 p.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Ce(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 Hn(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function ea({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=VO({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Hn(r),l=p.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 VO({defaultProp:t,onChange:e}){const r=p.useState(t),[n]=r,i=p.useRef(n),s=Hn(e);return p.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function zm(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const kn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function Vm(t){const[e,r]=p.useState(void 0);return kn(()=>{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 qO(t,e){return p.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const wo=t=>{const{present:e,children:r}=t,n=HO(e),i=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=It(n.ref,i.ref);return typeof r=="function"||n.isPresent?p.cloneElement(i,{ref:s}):null};wo.displayName="Presence";function HO(t){const[e,r]=p.useState(),n=p.useRef({}),i=p.useRef(t),s=p.useRef("none"),o=t?"mounted":"unmounted",[a,l]=qO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Tu(n.current);s.current=a==="mounted"?c:"none"},[a]),kn(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Tu(c);t?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),kn(()=>{if(e){const c=u=>{const v=Tu(n.current).includes(u.animationName);u.target===e&&v&&ks.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Tu(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:p.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Tu(t){return(t==null?void 0:t.animationName)||"none"}function Re(){return Re=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,i=p.Children.toArray(r),s=i.find(GO);if(s){const o=s.props.children,a=i.map(l=>l===s?p.Children.count(o)>1?p.Children.only(null):p.isValidElement(o)?o.props.children:null:l);return p.createElement(Ny,Re({},n,{ref:e}),p.isValidElement(o)?p.cloneElement(o,void 0,a):null)}return p.createElement(Ny,Re({},n,{ref:e}),r)});ml.displayName="Slot";const Ny=p.forwardRef((t,e)=>{const{children:r,...n}=t;return p.isValidElement(r)?p.cloneElement(r,{...KO(n,r.props),ref:e?Q8(e,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});Ny.displayName="SlotClone";const WO=({children:t})=>p.createElement(p.Fragment,null,t);function GO(t){return p.isValidElement(t)&&t.type===WO}function KO(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 QO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xe=QO.reduce((t,e)=>{const r=p.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?ml:e;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,Kt({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function qm(t,e){t&&ks.flushSync(()=>t.dispatchEvent(e))}const Y8="Checkbox",[YO,Vee]=qr(Y8),[JO,XO]=YO(Y8),ZO=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,d]=p.useState(null),v=It(e,S=>d(S)),g=p.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=ea({prop:i,defaultProp:s,onChange:c}),b=p.useRef(w);return p.useEffect(()=>{const S=u==null?void 0:u.form;if(S){const P=()=>x(b.current);return S.addEventListener("reset",P),()=>S.removeEventListener("reset",P)}},[u,x]),p.createElement(JO,{scope:r,state:w,disabled:a},p.createElement(Xe.button,Kt({type:"button",role:"checkbox","aria-checked":qo(w)?"mixed":w,"aria-required":o,"data-state":J8(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Ce(t.onKeyDown,S=>{S.key==="Enter"&&S.preventDefault()}),onClick:Ce(t.onClick,S=>{x(P=>qo(P)?!0:!P),y&&(g.current=S.isPropagationStopped(),g.current||S.stopPropagation())})})),y&&p.createElement(rN,{control:u,bubbles:!g.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),eN="CheckboxIndicator",tN=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=XO(eN,r);return p.createElement(wo,{present:n||qo(s.state)||s.state===!0},p.createElement(Xe.span,Kt({"data-state":J8(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),rN=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=qo(r),u.call(l,qo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({type:"checkbox","aria-hidden":!0,defaultChecked:qo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qo(t){return t==="indeterminate"}function J8(t){return qo(t)?"indeterminate":t?"checked":"unchecked"}const nN=ZO,iN=tN;var sN=Qt({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 Tl=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?J.jsxs(re,{flexDirection:"column",gap:"0.5",children:[r&&J.jsx(Se,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&J.jsx(Se,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return J.jsxs(re,{as:"label",className:sN({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var r0=Qt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const oN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),X8=({size:t="sm",...e})=>J.jsx(re,{as:oN,className:r0({size:t}),...e}),aN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),Z8=({size:t="sm",...e})=>J.jsx(re,{as:aN,className:r0({size:t}),...e}),lN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),Hm=({size:t="sm",...e})=>J.jsx(re,{as:lN,className:r0({size:t}),...e}),cN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),fN=({size:t="sm",...e})=>J.jsx(re,{as:cN,className:r0({size:t}),...e});var uN=Qt({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:[]}),dN="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const hN=({size:t="sm"})=>J.jsx(iN,{className:dN,children:J.jsx(X8,{size:t==="lg"?"sm":"xs"})});p.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return J.jsx(Tl,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:J.jsx(nN,{className:uN({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:J.jsx(hN,{size:a})})})});gr.createContext(null);const vN=gA["useId".toString()]||(()=>{});let yN=0;function ro(t){const[e,r]=p.useState(vN());return kn(()=>{t||r(n=>n??String(yN++))},[t]),t||(e?`radix-${e}`:"")}const eS="Collapsible",[pN,qee]=qr(eS),[mN,Wm]=pN(eS),gN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=ea({prop:n,defaultProp:i,onChange:o});return p.createElement(mN,{scope:r,disabled:s,contentId:ro(),open:l,onOpenToggle:p.useCallback(()=>c(f=>!f),[c])},p.createElement(Xe.div,Kt({"data-state":Gm(l),"data-disabled":s?"":void 0},a,{ref:e})))}),xN="CollapsibleTrigger",bN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Wm(xN,r);return p.createElement(Xe.button,Kt({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Gm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Ce(t.onClick,i.onOpenToggle)}))}),tS="CollapsibleContent",wN=p.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Wm(tS,t.__scopeCollapsible);return p.createElement(wo,{present:r||i.open},({present:s})=>p.createElement(EN,Kt({},n,{ref:e,present:s})))}),EN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Wm(tS,r),[a,l]=p.useState(n),c=p.useRef(null),f=It(e,c),u=p.useRef(0),d=u.current,v=p.useRef(0),g=v.current,y=o.open||a,w=p.useRef(y),x=p.useRef();return p.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),kn(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const S=b.getBoundingClientRect();u.current=S.height,v.current=S.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),p.createElement(Xe.div,Kt({"data-state":Gm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style}}),y&&i)});function Gm(t){return t?"open":"closed"}const AN=gN,SN=bN,CN=wN;var Mw="64px",kN="_4j62fl0",PN="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",RN="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",TN="_4j62fl5";const ic=t=>{const{className:e,children:r,defaultOpen:n,open:i,onOpenChange:s,label:o,...a}=t,[l,c]=p.useState(n),f=i??l,u=v=>{i===void 0&&c(v)},d=v=>{u(v),s==null||s(v)};return J.jsx(AN,{open:f,defaultOpen:n,onOpenChange:d,asChild:!0,children:J.jsxs(re,{as:Za.div,className:fn(e,kN),initial:{height:f?"auto":Mw},animate:{height:f?"auto":Mw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[J.jsxs(SN,{className:PN,children:[J.jsx(Se,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),J.jsx(re,{as:Za.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:f?180:0},animate:{rotate:f?180:0},transition:{ease:"linear",duration:.1},children:J.jsx(Z8,{className:TN,color:"text50"})})]}),J.jsx(q8,{children:f&&J.jsx(CN,{className:RN,asChild:!0,forceMount:!0,children:J.jsx(Za.div,{initial:{opacity:f?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function n0(t){const e=t+"CollectionProvider",[r,n]=qr(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:g,children:y}=v,w=gr.useRef(null),x=gr.useRef(new Map).current;return gr.createElement(i,{scope:g,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=gr.forwardRef((v,g)=>{const{scope:y,children:w}=v,x=s(a,y),b=It(g,x.collectionRef);return gr.createElement(ml,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=gr.forwardRef((v,g)=>{const{scope:y,children:w,...x}=v,b=gr.useRef(null),S=It(g,b),P=s(c,y);return gr.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}),()=>void P.itemMap.delete(b))),gr.createElement(ml,{[f]:"",ref:S},w)});function d(v){const g=s(t+"CollectionConsumer",v);return gr.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const MN=p.createContext(void 0);function Km(t){const e=p.useContext(MN);return t||e||"ltr"}function IN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t);p.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const Dy="dismissableLayer.update",_N="dismissableLayer.pointerDownOutside",ON="dismissableLayer.focusOutside";let Iw;const NN=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qm=p.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=p.useContext(NN),[u,d]=p.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=p.useState({}),y=It(e,L=>d(L)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),S=u?w.indexOf(u):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,_=S>=b,D=DN(L=>{const z=L.target,H=[...f.branches].some(Y=>Y.contains(z));!_||H||(s==null||s(L),a==null||a(L),L.defaultPrevented||l==null||l())},v),M=LN(L=>{const z=L.target;[...f.branches].some(Y=>Y.contains(z))||(o==null||o(L),a==null||a(L),L.defaultPrevented||l==null||l())},v);return IN(L=>{S===f.layers.size-1&&(i==null||i(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},v),p.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Iw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),_w(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Iw)}},[u,v,n,f]),p.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),_w())},[u,f]),p.useEffect(()=>{const L=()=>g({});return document.addEventListener(Dy,L),()=>document.removeEventListener(Dy,L)},[]),p.createElement(Xe.div,Re({},c,{ref:y,style:{pointerEvents:P?_?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,D.onPointerDownCapture)}))});function DN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){rS(_N,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 LN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!n.current&&rS(ON,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(Dy);document.dispatchEvent(t)}function rS(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?qm(i,s):i.dispatchEvent(s)}const jN=Qm;let R1=0;function nS(){p.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:Ow()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Ow()),R1++,()=>{R1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),R1--}},[])}function Ow(){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 T1="focusScope.autoFocusOnMount",M1="focusScope.autoFocusOnUnmount",Nw={bubbles:!1,cancelable:!0},iS=p.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=p.useState(null),c=Hn(i),f=Hn(s),u=p.useRef(null),d=It(e,y=>l(y)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let y=function(S){if(v.paused||!a)return;const P=S.target;a.contains(P)?u.current=P:Ns(u.current,{select:!0})},w=function(S){if(v.paused||!a)return;const P=S.relatedTarget;P!==null&&(a.contains(P)||Ns(u.current,{select:!0}))},x=function(S){if(document.activeElement===document.body)for(const _ of S)_.removedNodes.length>0&&Ns(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),p.useEffect(()=>{if(a){Lw.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(T1,Nw);a.addEventListener(T1,c),a.dispatchEvent(x),x.defaultPrevented||(BN(VN(sS(a)),{select:!0}),document.activeElement===y&&Ns(a))}return()=>{a.removeEventListener(T1,c),setTimeout(()=>{const x=new CustomEvent(M1,Nw);a.addEventListener(M1,f),a.dispatchEvent(x),x.defaultPrevented||Ns(y??document.body,{select:!0}),a.removeEventListener(M1,f),Lw.remove(v)},0)}}},[a,c,f,v]);const g=p.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[S,P]=$N(b);S&&P?!y.shiftKey&&x===P?(y.preventDefault(),r&&Ns(S,{select:!0})):y.shiftKey&&x===S&&(y.preventDefault(),r&&Ns(P,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return p.createElement(Xe.div,Re({tabIndex:-1},o,{ref:d,onKeyDown:g}))});function BN(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ns(n,{select:e}),document.activeElement!==r)return}function $N(t){const e=sS(t),r=Dw(e,t),n=Dw(e.reverse(),t);return[r,n]}function sS(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 Dw(t,e){for(const r of t)if(!FN(r,{upTo:e}))return r}function FN(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 UN(t){return t instanceof HTMLInputElement&&"select"in t}function Ns(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UN(t)&&e&&t.select()}}const Lw=zN();function zN(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=jw(t,e),t.unshift(e)},remove(e){var r;t=jw(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function jw(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function VN(t){return t.filter(e=>e.tagName!=="A")}const qN=["top","right","bottom","left"],co=Math.min,bn=Math.max,rh=Math.round,Mu=Math.floor,fo=t=>({x:t,y:t}),HN={left:"right",right:"left",bottom:"top",top:"bottom"},WN={start:"end",end:"start"};function Ly(t,e,r){return bn(t,co(e,r))}function xs(t,e){return typeof t=="function"?t(e):t}function bs(t){return t.split("-")[0]}function Ml(t){return t.split("-")[1]}function Ym(t){return t==="x"?"y":"x"}function Jm(t){return t==="y"?"height":"width"}function Il(t){return["top","bottom"].includes(bs(t))?"y":"x"}function Xm(t){return Ym(Il(t))}function GN(t,e,r){r===void 0&&(r=!1);const n=Ml(t),i=Xm(t),s=Jm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=nh(o)),[o,nh(o)]}function KN(t){const e=nh(t);return[jy(t),e,jy(e)]}function jy(t){return t.replace(/start|end/g,e=>WN[e])}function QN(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 YN(t,e,r,n){const i=Ml(t);let s=QN(bs(t),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(jy)))),s}function nh(t){return t.replace(/left|right|bottom|top/g,e=>HN[e])}function JN(t){return{top:0,right:0,bottom:0,left:0,...t}}function oS(t){return typeof t!="number"?JN(t):{top:t,right:t,bottom:t,left:t}}function ih(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Bw(t,e,r){let{reference:n,floating:i}=t;const s=Il(e),o=Xm(e),a=Jm(o),l=bs(e),c=s==="y",f=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let v;switch(l){case"top":v={x:f,y:n.y-i.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:u};break;case"left":v={x:n.x-i.width,y:u};break;default:v={x:n.x,y:n.y}}switch(Ml(e)){case"start":v[o]-=d*(r&&c?-1:1);break;case"end":v[o]+=d*(r&&c?-1:1);break}return v}const XN=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}=Bw(c,n,l),d=n,v={},g=0;for(let y=0;y({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}=xs(t,e)||{};if(c==null)return{};const u=oS(f),d={x:r,y:n},v=Xm(i),g=Jm(v),y=await o.getDimensions(c),w=v==="y",x=w?"top":"left",b=w?"bottom":"right",S=w?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-d[v]-s.floating[g],_=d[v]-s.reference[v],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let M=D?D[S]:0;(!M||!await(o.isElement==null?void 0:o.isElement(D)))&&(M=a.floating[S]||s.floating[g]);const L=P/2-_/2,z=M/2-y[g]/2-1,H=co(u[x],z),Y=co(u[b],z),Z=H,O=M-y[g]-Y,h=M/2-y[g]/2+L,A=Ly(Z,h,O),k=!l.arrow&&Ml(i)!=null&&h!=A&&s.reference[g]/2-(hZ<=0)){var z,H;const Z=(((z=s.flip)==null?void 0:z.index)||0)+1,O=_[Z];if(O)return{data:{index:Z,overflows:L},reset:{placement:O}};let h=(H=L.filter(A=>A.overflows[0]<=0).sort((A,k)=>A.overflows[1]-k.overflows[1])[0])==null?void 0:H.placement;if(!h)switch(v){case"bestFit":{var Y;const A=(Y=L.map(k=>[k.placement,k.overflows.filter(I=>I>0).reduce((I,R)=>I+R,0)]).sort((k,I)=>k[1]-I[1])[0])==null?void 0:Y[0];A&&(h=A);break}case"initialPlacement":h=a;break}if(i!==h)return{reset:{placement:h}}}return{}}}};function Fw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Uw(t){return qN.some(e=>t[e]>=0)}const eD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=xs(t,e);switch(n){case"referenceHidden":{const s=await Af(e,{...i,elementContext:"reference"}),o=Fw(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uw(o)}}}case"escaped":{const s=await Af(e,{...i,altBoundary:!0}),o=Fw(s,r.floating);return{data:{escapedOffsets:o,escaped:Uw(o)}}}default:return{}}}}};async function tD(t,e){const{placement:r,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=bs(r),a=Ml(r),l=Il(r)==="y",c=["left","top"].includes(o)?-1:1,f=s&&l?-1:1,u=xs(e,t);let{mainAxis:d,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*f,y:d*c}:{x:d*c,y:v*f}}const rD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await tD(e,t);return{x:r+i.x,y:n+i.y,data:i}}}},nD=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:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=xs(t,e),c={x:r,y:n},f=await Af(e,l),u=Il(bs(i)),d=Ym(u);let v=c[d],g=c[u];if(s){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=v+f[w],S=v-f[x];v=Ly(b,v,S)}if(o){const w=u==="y"?"top":"left",x=u==="y"?"bottom":"right",b=g+f[w],S=g-f[x];g=Ly(b,g,S)}const y=a.fn({...e,[d]:v,[u]:g});return{...y,data:{x:y.x-r,y:y.y-n}}}}},iD=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}=xs(t,e),f={x:r,y:n},u=Il(i),d=Ym(u);let v=f[d],g=f[u];const y=xs(a,e),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const S=d==="y"?"height":"width",P=s.reference[d]-s.floating[S]+w.mainAxis,_=s.reference[d]+s.reference[S]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const S=d==="y"?"width":"height",P=["top","left"].includes(bs(i)),_=s.reference[u]-s.floating[S]+(P&&((x=o.offset)==null?void 0:x[u])||0)+(P?0:w.crossAxis),D=s.reference[u]+s.reference[S]+(P?0:((b=o.offset)==null?void 0:b[u])||0)-(P?w.crossAxis:0);g<_?g=_:g>D&&(g=D)}return{[d]:v,[u]:g}}}},sD=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}=xs(t,e),l=await Af(e,a),c=bs(r),f=Ml(r),u=Il(r)==="y",{width:d,height:v}=n.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=f==="end"?"top":"bottom");const w=v-l[g],x=d-l[y],b=!e.middlewareData.shift;let S=w,P=x;if(u){const D=d-l.left-l.right;P=f||b?co(x,D):D}else{const D=v-l.top-l.bottom;S=f||b?co(w,D):D}if(b&&!f){const D=bn(l.left,0),M=bn(l.right,0),L=bn(l.top,0),z=bn(l.bottom,0);u?P=d-2*(D!==0||M!==0?D+M:bn(l.left,l.right)):S=v-2*(L!==0||z!==0?L+z:bn(l.top,l.bottom))}await o({...e,availableWidth:P,availableHeight:S});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function uo(t){return aS(t)?(t.nodeName||"").toLowerCase():"#document"}function An(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ps(t){var e;return(e=(aS(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function aS(t){return t instanceof Node||t instanceof An(t).Node}function ws(t){return t instanceof Element||t instanceof An(t).Element}function Ui(t){return t instanceof HTMLElement||t instanceof An(t).HTMLElement}function zw(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof An(t).ShadowRoot}function Yf(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Wn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function oD(t){return["table","td","th"].includes(uo(t))}function Zm(t){const e=eg(),r=Wn(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 aD(t){let e=gl(t);for(;Ui(e)&&!i0(e);){if(Zm(e))return e;e=gl(e)}return null}function eg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function i0(t){return["html","body","#document"].includes(uo(t))}function Wn(t){return An(t).getComputedStyle(t)}function s0(t){return ws(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function gl(t){if(uo(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zw(t)&&t.host||Ps(t);return zw(e)?e.host:e}function lS(t){const e=gl(t);return i0(e)?t.ownerDocument?t.ownerDocument.body:t.body:Ui(e)&&Yf(e)?e:lS(e)}function Sf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=lS(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=An(i);return s?e.concat(o,o.visualViewport||[],Yf(i)?i:[],o.frameElement&&r?Sf(o.frameElement):[]):e.concat(i,Sf(i,[],r))}function cS(t){const e=Wn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=Ui(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=rh(r)!==s||rh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function tg(t){return ws(t)?t:t.contextElement}function el(t){const e=tg(t);if(!Ui(e))return fo(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=cS(e);let o=(s?rh(r.width):r.width)/n,a=(s?rh(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const lD=fo(0);function fS(t){const e=An(t);return!eg()||!e.visualViewport?lD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==An(t)?!1:e}function ta(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=tg(t);let o=fo(1);e&&(n?ws(n)&&(o=el(n)):o=el(t));const a=cD(s,r,n)?fS(s):fo(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 d=An(s),v=n&&ws(n)?An(n):n;let g=d.frameElement;for(;g&&n&&v!==d;){const y=el(g),w=g.getBoundingClientRect(),x=Wn(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,S=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=b,c+=S,g=An(g).frameElement}}return ih({width:f,height:u,x:l,y:c})}function fD(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=Ui(r),s=Ps(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a=fo(1);const l=fo(0);if((i||!i&&n!=="fixed")&&((uo(r)!=="body"||Yf(s))&&(o=s0(r)),Ui(r))){const c=ta(r);a=el(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 uD(t){return Array.from(t.getClientRects())}function uS(t){return ta(Ps(t)).left+s0(t).scrollLeft}function dD(t){const e=Ps(t),r=s0(t),n=t.ownerDocument.body,i=bn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=bn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+uS(t);const a=-r.scrollTop;return Wn(n).direction==="rtl"&&(o+=bn(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function hD(t,e){const r=An(t),n=Ps(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=eg();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function vD(t,e){const r=ta(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=Ui(t)?el(t):fo(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 Vw(t,e,r){let n;if(e==="viewport")n=hD(t,r);else if(e==="document")n=dD(Ps(t));else if(ws(e))n=vD(e,r);else{const i=fS(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ih(n)}function dS(t,e){const r=gl(t);return r===e||!ws(r)||i0(r)?!1:Wn(r).position==="fixed"||dS(r,e)}function yD(t,e){const r=e.get(t);if(r)return r;let n=Sf(t,[],!1).filter(a=>ws(a)&&uo(a)!=="body"),i=null;const s=Wn(t).position==="fixed";let o=s?gl(t):t;for(;ws(o)&&!i0(o);){const a=Wn(o),l=Zm(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yf(o)&&!l&&dS(t,o))?n=n.filter(f=>f!==o):i=a,o=gl(o)}return e.set(t,n),n}function pD(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?yD(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,f)=>{const u=Vw(e,f,i);return c.top=bn(u.top,c.top),c.right=co(u.right,c.right),c.bottom=co(u.bottom,c.bottom),c.left=bn(u.left,c.left),c},Vw(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mD(t){return cS(t)}function gD(t,e,r){const n=Ui(e),i=Ps(e),s=r==="fixed",o=ta(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=fo(0);if(n||!n&&!s)if((uo(e)!=="body"||Yf(i))&&(a=s0(e)),n){const c=ta(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=uS(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function qw(t,e){return!Ui(t)||Wn(t).position==="fixed"?null:e?e(t):t.offsetParent}function hS(t,e){const r=An(t);if(!Ui(t))return r;let n=qw(t,e);for(;n&&oD(n)&&Wn(n).position==="static";)n=qw(n,e);return n&&(uo(n)==="html"||uo(n)==="body"&&Wn(n).position==="static"&&!Zm(n))?r:n||aD(t)||r}const xD=async function(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||hS,s=this.getDimensions;return{reference:gD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}};function bD(t){return Wn(t).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:fD,getDocumentElement:Ps,getClippingRect:pD,getOffsetParent:hS,getElementRects:xD,getClientRects:uD,getDimensions:mD,getScale:el,isElement:ws,isRTL:bD};function ED(t,e){let r=null,n;const i=Ps(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:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const v=Mu(f),g=Mu(i.clientWidth-(c+u)),y=Mu(i.clientHeight-(f+d)),w=Mu(c),b={rootMargin:-v+"px "+-g+"px "+-y+"px "+-w+"px",threshold:bn(0,co(1,l))||1};let S=!0;function P(_){const D=_[0].intersectionRatio;if(D!==l){if(!S)return o();D?o(!1,D):n=setTimeout(()=>{o(!1,1e-7)},100)}S=!1}try{r=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,b)}r.observe(t)}return o(!0),s}function AD(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=tg(t),f=i||s?[...c?Sf(c):[],...Sf(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const u=c&&a?ED(c,r):null;let d=-1,v=null;o&&(v=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{v&&v.observe(e)})),r()}),c&&!l&&v.observe(c),v.observe(e));let g,y=l?ta(t):null;l&&w();function w(){const x=ta(t);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,g=requestAnimationFrame(w)}return r(),()=>{f.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),u&&u(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const SD=(t,e,r)=>{const n=new Map,i={platform:wD,...r},s={...i.platform,_c:n};return XN(t,e,{...i,platform:s})},CD=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?$w({element:n.current,padding:i}).fn(r):{}:n?$w({element:n,padding:i}).fn(r):{}}}};var fd=typeof document<"u"?p.useLayoutEffect:p.useEffect;function sh(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(!sh(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)&&!sh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function vS(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Hw(t,e){const r=vS(t);return Math.round(e*r)/r}function Ww(t){const e=p.useRef(t);return fd(()=>{e.current=t}),e}function kD(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]=p.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=p.useState(n);sh(d,n)||v(n);const[g,y]=p.useState(null),[w,x]=p.useState(null),b=p.useCallback(k=>{k!=D.current&&(D.current=k,y(k))},[y]),S=p.useCallback(k=>{k!==M.current&&(M.current=k,x(k))},[x]),P=s||g,_=o||w,D=p.useRef(null),M=p.useRef(null),L=p.useRef(f),z=Ww(l),H=Ww(i),Y=p.useCallback(()=>{if(!D.current||!M.current)return;const k={placement:e,strategy:r,middleware:d};H.current&&(k.platform=H.current),SD(D.current,M.current,k).then(I=>{const R={...I,isPositioned:!0};Z.current&&!sh(L.current,R)&&(L.current=R,ks.flushSync(()=>{u(R)}))})},[d,e,r,H]);fd(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,u(k=>({...k,isPositioned:!1})))},[c]);const Z=p.useRef(!1);fd(()=>(Z.current=!0,()=>{Z.current=!1}),[]),fd(()=>{if(P&&(D.current=P),_&&(M.current=_),P&&_){if(z.current)return z.current(P,_,Y);Y()}},[P,_,Y,z]);const O=p.useMemo(()=>({reference:D,floating:M,setReference:b,setFloating:S}),[b,S]),h=p.useMemo(()=>({reference:P,floating:_}),[P,_]),A=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!h.floating)return k;const I=Hw(h.floating,f.x),R=Hw(h.floating,f.y);return a?{...k,transform:"translate("+I+"px, "+R+"px)",...vS(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:R}},[r,a,h.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:Y,refs:O,elements:h,floatingStyles:A}),[f,Y,O,h,A])}const yS="Popper",[pS,_l]=qr(yS),[PD,mS]=pS(yS),RD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=p.useState(null);return p.createElement(PD,{scope:e,anchor:n,onAnchorChange:i},r)},TD="PopperAnchor",MD=p.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=mS(TD,r),o=p.useRef(null),a=It(e,o);return p.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:p.createElement(Xe.div,Re({},i,{ref:a}))}),gS="PopperContent",[ID,Hee]=pS(gS),_D=p.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:S="partial",hideWhenDetached:P=!1,updatePositionStrategy:_="optimized",onPlaced:D,...M}=t,L=mS(gS,f),[z,H]=p.useState(null),Y=It(e,we=>H(we)),[Z,O]=p.useState(null),h=Vm(Z),A=(r=h==null?void 0:h.width)!==null&&r!==void 0?r:0,k=(n=h==null?void 0:h.height)!==null&&n!==void 0?n:0,I=u+(v!=="center"?"-"+v:""),R=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},N=Array.isArray(x)?x:[x],j=N.length>0,C={padding:R,boundary:N.filter(OD),altBoundary:j},{refs:m,floatingStyles:T,placement:F,isPositioned:E,middlewareData:B}=kD({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>AD(...we,{animationFrame:_==="always"}),elements:{reference:L.anchor},middleware:[rD({mainAxis:d+k,alignmentAxis:g}),w&&nD({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?iD():void 0,...C}),w&&ZN({...C}),sD({...C,apply:({elements:we,rects:zt,availableWidth:Ve,availableHeight:ot})=>{const{width:Jn,height:at}=zt.reference,Ge=we.floating.style;Ge.setProperty("--radix-popper-available-width",`${Ve}px`),Ge.setProperty("--radix-popper-available-height",`${ot}px`),Ge.setProperty("--radix-popper-anchor-width",`${Jn}px`),Ge.setProperty("--radix-popper-anchor-height",`${at}px`)}}),Z&&CD({element:Z,padding:y}),ND({arrowWidth:A,arrowHeight:k}),P&&eD({strategy:"referenceHidden",...C})]}),[V,q]=xS(F),K=Hn(D);kn(()=>{E&&(K==null||K())},[E,K]);const oe=(i=B.arrow)===null||i===void 0?void 0:i.x,ee=(s=B.arrow)===null||s===void 0?void 0:s.y,te=((o=B.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Ie,ue]=p.useState();return kn(()=>{z&&ue(window.getComputedStyle(z).zIndex)},[z]),p.createElement("div",{ref:m.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:E?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[(a=B.transformOrigin)===null||a===void 0?void 0:a.x,(l=B.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},p.createElement(ID,{scope:f,placedSide:V,onArrowChange:O,arrowX:oe,arrowY:ee,shouldHideArrow:te},p.createElement(Xe.div,Re({"data-side":V,"data-align":q},M,{ref:Y,style:{...M.style,animation:E?void 0:"none",opacity:(c=B.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function OD(t){return t!==null}const ND=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,d=u?0:t.arrowWidth,v=u?0:t.arrowHeight,[g,y]=xS(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let S="",P="";return g==="bottom"?(S=u?w:`${x}px`,P=`${-v}px`):g==="top"?(S=u?w:`${x}px`,P=`${l.floating.height+v}px`):g==="right"?(S=`${-v}px`,P=u?w:`${b}px`):g==="left"&&(S=`${l.floating.width+v}px`,P=u?w:`${b}px`),{data:{x:S,y:P}}}});function xS(t){const[e,r="center"]=t.split("-");return[e,r]}const DD=RD,LD=MD,jD=_D,bS=p.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?w5.createPortal(p.createElement(Xe.div,Re({},i,{ref:e})),n):null}),I1="rovingFocusGroup.onEntryFocus",BD={bubbles:!1,cancelable:!0},rg="RovingFocusGroup",[By,wS,$D]=n0(rg),[FD,Ol]=qr(rg,[$D]),[UD,zD]=FD(rg),VD=p.forwardRef((t,e)=>p.createElement(By.Provider,{scope:t.__scopeRovingFocusGroup},p.createElement(By.Slot,{scope:t.__scopeRovingFocusGroup},p.createElement(qD,Kt({},t,{ref:e}))))),qD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=p.useRef(null),d=It(e,u),v=Km(s),[g=null,y]=ea({prop:o,defaultProp:a,onChange:l}),[w,x]=p.useState(!1),b=Hn(c),S=wS(r),P=p.useRef(!1),[_,D]=p.useState(0);return p.useEffect(()=>{const M=u.current;if(M)return M.addEventListener(I1,b),()=>M.removeEventListener(I1,b)},[b]),p.createElement(UD,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:g,onItemFocus:p.useCallback(M=>y(M),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>D(M=>M+1),[]),onFocusableItemRemove:p.useCallback(()=>D(M=>M-1),[])},p.createElement(Xe.div,Kt({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Ce(t.onMouseDown,()=>{P.current=!0}),onFocus:Ce(t.onFocus,M=>{const L=!P.current;if(M.target===M.currentTarget&&L&&!w){const z=new CustomEvent(I1,BD);if(M.currentTarget.dispatchEvent(z),!z.defaultPrevented){const H=S().filter(A=>A.focusable),Y=H.find(A=>A.active),Z=H.find(A=>A.id===g),h=[Y,Z,...H].filter(Boolean).map(A=>A.ref.current);ES(h)}}P.current=!1}),onBlur:Ce(t.onBlur,()=>x(!1))})))}),HD="RovingFocusGroupItem",WD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=ro(),l=s||a,c=zD(HD,r),f=c.currentTabStopId===l,u=wS(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return p.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),p.createElement(By.ItemSlot,{scope:r,id:l,focusable:n,active:i},p.createElement(Xe.span,Kt({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Ce(t.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:Ce(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ce(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=QD(g,c.orientation,c.dir);if(y!==void 0){g.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=c.loop?YD(x,b+1):x.slice(b+1)}setTimeout(()=>ES(x))}})})))}),GD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function QD(t,e,r){const n=KD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return GD[n]}function ES(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function YD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const JD=VD,AS=WD;var XD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},xa=new WeakMap,Iu=new WeakMap,_u={},_1=0,SS=function(t){return t&&(t.host||SS(t.parentNode))},ZD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=SS(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})},eL=function(t,e,r,n){var i=ZD(e,Array.isArray(t)?t:[t]);_u[r]||(_u[r]=new WeakMap);var s=_u[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(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),g=v!==null&&v!=="false",y=(xa.get(d)||0)+1,w=(s.get(d)||0)+1;xa.set(d,y),s.set(d,w),o.push(d),y===1&&g&&Iu.set(d,!0),w===1&&d.setAttribute(r,"true"),g||d.setAttribute(n,"true")}})};return f(e),a.clear(),_1++,function(){o.forEach(function(u){var d=xa.get(u)-1,v=s.get(u)-1;xa.set(u,d),s.set(u,v),d||(Iu.has(u)||u.removeAttribute(n),Iu.delete(u)),v||u.removeAttribute(r)}),_1--,_1||(xa=new WeakMap,xa=new WeakMap,Iu=new WeakMap,_u={})}},CS=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=XD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),eL(n,i,r,"aria-hidden")):function(){return null}},Ri=function(){return Ri=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return mL;var e=gL(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])}},bL=TS(),wL=function(t,e,r,n){var i=t.left,s=t.top,o=t.right,a=t.gap;return r===void 0&&(r="margin"),` + */var kw;function OO(){if(kw)return ic;kw=1;var t=gr,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={},d=null,v=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(v=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:d,ref:v,props:u,_owner:i.current}}return ic.Fragment=r,ic.jsx=o,ic.jsxs=o,ic}KS.exports=OO();var J=KS.exports;function NO(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 DO(t){var e=NO(t,"string");return typeof e=="symbol"?e:String(e)}function LO(t,e,r){return e=DO(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pw(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 Rw(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},Qt=t=>{var e=r=>{var n=t.defaultClassName,i=Rw(Rw({},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)jO(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 Tw(t.variantClassNames,r=>Tw(r,n=>n.split(" ")[0]))}},e};Qt({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 Ms=t=>{const{color:e="borderNormal",marginY:r="4",...n}=t;return J.jsx(ee,{as:"hr",marginY:r,background:e,height:"px",borderWidth:"none",...n})};var BO=Qt({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 Se=p.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,...d}=t,v=CO[n];return J.jsx(ee,{as:r,className:fn(i,BO({hidden:s,ellipsis:c,italic:o,underline:a,uppercase:f,capitalize:u})),ref:e,...v,...d,children:l})});var $O=Qt({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 cr=p.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:d="md",variant:v="glass",width:g="fit",shape:y="circle",type:w="button",...x}=t,b=f!==void 0&&c!==void 0,A=u!==void 0&&c!==void 0,P=f!==void 0&&c===void 0,_=d==="xs"?"xs":"sm";return J.jsx(ee,{as:r,className:fn(i,$O({activeOutline:n,disabled:s||l,hasLeftIcon:b,hasRightIcon:A,iconOnly:P,size:v==="text"?void 0:d,shape:v==="text"?void 0:y,variant:v})),disabled:s||l,display:o,fontWeight:a,ref:e,type:w,width:g,...x,children:P?J.jsx(f,{size:_}):J.jsxs(ee,{width:"full",height:"full",justifyContent:"space-between",alignItems:"center",gap:d==="xs"?"1":"2",children:[J.jsxs(ee,{justifyContent:"flex-start",alignItems:"center",gap:d==="xs"?"1":"2",children:[f&&J.jsx(f,{size:_}),J.jsx(Se,{children:c})]}),u&&J.jsx(u,{size:_})]})})});var FO=Qt({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:[]});p.forwardRef((t,e)=>{const{className:r,children:n,clickable:i,outlined:s,disabled:o,blur:a,width:l="full",...c}=t;return J.jsx(ee,{className:fn(r,FO({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 Kt(){return Kt=Object.assign?Object.assign.bind():function(t){for(var e=1;et.forEach(r=>UO(r,e))}function It(...t){return p.useCallback(QS(...t),t)}function qr(t,e=[]){let r=[];function n(s,o){const a=p.createContext(o),l=r.length;r=[...r,o];function c(u){const{scope:d,children:v,...g}=u,y=(d==null?void 0:d[t][l])||a,w=p.useMemo(()=>g,Object.values(g));return p.createElement(y.Provider,{value:w},v)}function f(u,d){const v=(d==null?void 0:d[t][l])||a,g=p.useContext(v);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=>p.createContext(o));return function(a){const l=(a==null?void 0:a[t])||s;return p.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[n,zO(i,...e)]}function zO(...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 p.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return r.scopeName=e.scopeName,r}function Ce(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 Hn(t){const e=p.useRef(t);return p.useEffect(()=>{e.current=t}),p.useMemo(()=>(...r)=>{var n;return(n=e.current)===null||n===void 0?void 0:n.call(e,...r)},[])}function ea({prop:t,defaultProp:e,onChange:r=()=>{}}){const[n,i]=VO({defaultProp:e,onChange:r}),s=t!==void 0,o=s?t:n,a=Hn(r),l=p.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 VO({defaultProp:t,onChange:e}){const r=p.useState(t),[n]=r,i=p.useRef(n),s=Hn(e);return p.useEffect(()=>{i.current!==n&&(s(n),i.current=n)},[n,i,s]),r}function zm(t){const e=p.useRef({value:t,previous:t});return p.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}const kn=globalThis!=null&&globalThis.document?p.useLayoutEffect:()=>{};function Vm(t){const[e,r]=p.useState(void 0);return kn(()=>{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 qO(t,e){return p.useReducer((r,n)=>{const i=e[r][n];return i??r},t)}const Eo=t=>{const{present:e,children:r}=t,n=HO(e),i=typeof r=="function"?r({present:n.isPresent}):p.Children.only(r),s=It(n.ref,i.ref);return typeof r=="function"||n.isPresent?p.cloneElement(i,{ref:s}):null};Eo.displayName="Presence";function HO(t){const[e,r]=p.useState(),n=p.useRef({}),i=p.useRef(t),s=p.useRef("none"),o=t?"mounted":"unmounted",[a,l]=qO(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return p.useEffect(()=>{const c=Tu(n.current);s.current=a==="mounted"?c:"none"},[a]),kn(()=>{const c=n.current,f=i.current;if(f!==t){const d=s.current,v=Tu(c);t?l("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(f&&d!==v?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),kn(()=>{if(e){const c=u=>{const v=Tu(n.current).includes(u.animationName);u.target===e&&v&&ks.flushSync(()=>l("ANIMATION_END"))},f=u=>{u.target===e&&(s.current=Tu(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:p.useCallback(c=>{c&&(n.current=getComputedStyle(c)),r(c)},[])}}function Tu(t){return(t==null?void 0:t.animationName)||"none"}function Re(){return Re=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{children:r,...n}=t,i=p.Children.toArray(r),s=i.find(GO);if(s){const o=s.props.children,a=i.map(l=>l===s?p.Children.count(o)>1?p.Children.only(null):p.isValidElement(o)?o.props.children:null:l);return p.createElement(Ny,Re({},n,{ref:e}),p.isValidElement(o)?p.cloneElement(o,void 0,a):null)}return p.createElement(Ny,Re({},n,{ref:e}),r)});gl.displayName="Slot";const Ny=p.forwardRef((t,e)=>{const{children:r,...n}=t;return p.isValidElement(r)?p.cloneElement(r,{...KO(n,r.props),ref:e?QS(e,r.ref):r.ref}):p.Children.count(r)>1?p.Children.only(null):null});Ny.displayName="SlotClone";const WO=({children:t})=>p.createElement(p.Fragment,null,t);function GO(t){return p.isValidElement(t)&&t.type===WO}function KO(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 QO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],Xe=QO.reduce((t,e)=>{const r=p.forwardRef((n,i)=>{const{asChild:s,...o}=n,a=s?gl:e;return p.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),p.createElement(a,Kt({},o,{ref:i}))});return r.displayName=`Primitive.${e}`,{...t,[e]:r}},{});function qm(t,e){t&&ks.flushSync(()=>t.dispatchEvent(e))}const YS="Checkbox",[YO,qee]=qr(YS),[JO,XO]=YO(YS),ZO=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:i,defaultChecked:s,required:o,disabled:a,value:l="on",onCheckedChange:c,...f}=t,[u,d]=p.useState(null),v=It(e,A=>d(A)),g=p.useRef(!1),y=u?!!u.closest("form"):!0,[w=!1,x]=ea({prop:i,defaultProp:s,onChange:c}),b=p.useRef(w);return p.useEffect(()=>{const A=u==null?void 0:u.form;if(A){const P=()=>x(b.current);return A.addEventListener("reset",P),()=>A.removeEventListener("reset",P)}},[u,x]),p.createElement(JO,{scope:r,state:w,disabled:a},p.createElement(Xe.button,Kt({type:"button",role:"checkbox","aria-checked":qo(w)?"mixed":w,"aria-required":o,"data-state":JS(w),"data-disabled":a?"":void 0,disabled:a,value:l},f,{ref:v,onKeyDown:Ce(t.onKeyDown,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Ce(t.onClick,A=>{x(P=>qo(P)?!0:!P),y&&(g.current=A.isPropagationStopped(),g.current||A.stopPropagation())})})),y&&p.createElement(rN,{control:u,bubbles:!g.current,name:n,value:l,checked:w,required:o,disabled:a,style:{transform:"translateX(-100%)"}}))}),eN="CheckboxIndicator",tN=p.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...i}=t,s=XO(eN,r);return p.createElement(Eo,{present:n||qo(s.state)||s.state===!0},p.createElement(Xe.span,Kt({"data-state":JS(s.state),"data-disabled":s.disabled?"":void 0},i,{ref:e,style:{pointerEvents:"none",...t.style}})))}),rN=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});l.indeterminate=qo(r),u.call(l,qo(r)?!1:r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({type:"checkbox","aria-hidden":!0,defaultChecked:qo(r)?!1:r},i,{tabIndex:-1,ref:s,style:{...t.style,...a,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function qo(t){return t==="indeterminate"}function JS(t){return qo(t)?"indeterminate":t?"checked":"unchecked"}const nN=ZO,iN=tN;var sN=Qt({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 Ml=t=>{const{id:e,label:r,description:n,labelLocation:i="top",children:s,...o}=t,a=()=>r||n?J.jsxs(ee,{flexDirection:"column",gap:"0.5",children:[r&&J.jsx(Se,{variant:"small",color:"text100",hidden:i==="hidden",children:r}),n&&J.jsx(Se,{variant:"small",color:"text50",hidden:i==="hidden",children:n})]}):null;return J.jsxs(ee,{as:"label",className:sN({labelLocation:i}),htmlFor:e,...o,children:[["left","top","hidden"].includes(i)&&a(),s,i==="right"&&a()]})};var r0=Qt({defaultClassName:"_1dizidw0",variantClassNames:{size:{xs:"_1dizidw1",sm:"_1dizidw2",md:"_1dizidw3",lg:"_1dizidw4",xl:"_1dizidw5"}},defaultVariants:{},compoundVariants:[]});const oN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.jsx("path",{stroke:"currentColor",strokeWidth:1.5,d:"m4.304 10.232 4.263 4.79 7.13-11.238"})}),XS=({size:t="sm",...e})=>J.jsx(ee,{as:oN,className:r0({size:t}),...e}),aN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),ZS=({size:t="sm",...e})=>J.jsx(ee,{as:aN,className:r0({size:t}),...e}),lN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),Hm=({size:t="sm",...e})=>J.jsx(ee,{as:lN,className:r0({size:t}),...e}),cN=t=>J.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20",...t,children:J.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"})}),fN=({size:t="sm",...e})=>J.jsx(ee,{as:cN,className:r0({size:t}),...e});var uN=Qt({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:[]}),dN="_1c9x66f4 fyvr12s1 fyvr11h0 fyvr11ko fyvr11jg fyvr128 fyvr15o";const hN=({size:t="sm"})=>J.jsx(iN,{className:dN,children:J.jsx(XS,{size:t==="lg"?"sm":"xs"})});p.forwardRef((t,e)=>{const{disabled:r=!1,id:n,name:i,label:s="",labelLocation:o="left",size:a="sm",...l}=t;return J.jsx(Ml,{disabled:r,display:"flex",id:n??i,label:s,labelLocation:o,whiteSpace:"nowrap",children:J.jsx(nN,{className:uN({size:a}),disabled:r,id:n??i,name:i,ref:e,...l,children:J.jsx(hN,{size:a})})})});gr.createContext(null);const vN=gA["useId".toString()]||(()=>{});let yN=0;function no(t){const[e,r]=p.useState(vN());return kn(()=>{t||r(n=>n??String(yN++))},[t]),t||(e?`radix-${e}`:"")}const e8="Collapsible",[pN,Hee]=qr(e8),[mN,Wm]=pN(e8),gN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,open:n,defaultOpen:i,disabled:s,onOpenChange:o,...a}=t,[l=!1,c]=ea({prop:n,defaultProp:i,onChange:o});return p.createElement(mN,{scope:r,disabled:s,contentId:no(),open:l,onOpenToggle:p.useCallback(()=>c(f=>!f),[c])},p.createElement(Xe.div,Kt({"data-state":Gm(l),"data-disabled":s?"":void 0},a,{ref:e})))}),xN="CollapsibleTrigger",bN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,...n}=t,i=Wm(xN,r);return p.createElement(Xe.button,Kt({type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":Gm(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled},n,{ref:e,onClick:Ce(t.onClick,i.onOpenToggle)}))}),t8="CollapsibleContent",wN=p.forwardRef((t,e)=>{const{forceMount:r,...n}=t,i=Wm(t8,t.__scopeCollapsible);return p.createElement(Eo,{present:r||i.open},({present:s})=>p.createElement(EN,Kt({},n,{ref:e,present:s})))}),EN=p.forwardRef((t,e)=>{const{__scopeCollapsible:r,present:n,children:i,...s}=t,o=Wm(t8,r),[a,l]=p.useState(n),c=p.useRef(null),f=It(e,c),u=p.useRef(0),d=u.current,v=p.useRef(0),g=v.current,y=o.open||a,w=p.useRef(y),x=p.useRef();return p.useEffect(()=>{const b=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(b)},[]),kn(()=>{const b=c.current;if(b){x.current=x.current||{transitionDuration:b.style.transitionDuration,animationName:b.style.animationName},b.style.transitionDuration="0s",b.style.animationName="none";const A=b.getBoundingClientRect();u.current=A.height,v.current=A.width,w.current||(b.style.transitionDuration=x.current.transitionDuration,b.style.animationName=x.current.animationName),l(n)}},[o.open,n]),p.createElement(Xe.div,Kt({"data-state":Gm(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!y},s,{ref:f,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...t.style}}),y&&i)});function Gm(t){return t?"open":"closed"}const AN=gN,SN=bN,CN=wN;var Mw="64px",kN="_4j62fl0",PN="_4j62fl2 _4j62fl1 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11h0 fyvr11ko fyvr11od fyvr128 fyvr12v7 fyvr11n4 _4efw240",RN="_4j62fl4 _4j62fl3 fyvr1ww fyvr1ys fyvr1so fyvr1v0 fyvr128",TN="_4j62fl5";const xa=t=>{const{className:e,children:r,defaultOpen:n,open:i,onOpenChange:s,label:o,...a}=t,[l,c]=p.useState(n),f=i??l,u=v=>{i===void 0&&c(v)},d=v=>{u(v),s==null||s(v)};return J.jsx(AN,{open:f,defaultOpen:n,onOpenChange:d,asChild:!0,children:J.jsxs(ee,{as:el.div,className:fn(e,kN),initial:{height:f?"auto":Mw},animate:{height:f?"auto":Mw},transition:{ease:"easeOut",duration:.3},borderRadius:"md",background:"backgroundSecondary",position:"relative",overflow:"hidden",width:"full",...a,children:[J.jsxs(SN,{className:PN,children:[J.jsx(Se,{as:"div",variant:"normal",fontWeight:"bold",color:"text80",children:o}),J.jsx(ee,{as:el.div,position:"absolute",right:"0",marginRight:"4",initial:{rotate:f?180:0},animate:{rotate:f?180:0},transition:{ease:"linear",duration:.1},children:J.jsx(ZS,{className:TN,color:"text50"})})]}),J.jsx(qS,{children:f&&J.jsx(CN,{className:RN,asChild:!0,forceMount:!0,children:J.jsx(el.div,{initial:{opacity:f?1:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:"easeOut",duration:.3},children:r})})})]})})};function n0(t){const e=t+"CollectionProvider",[r,n]=qr(e),[i,s]=r(e,{collectionRef:{current:null},itemMap:new Map}),o=v=>{const{scope:g,children:y}=v,w=gr.useRef(null),x=gr.useRef(new Map).current;return gr.createElement(i,{scope:g,itemMap:x,collectionRef:w},y)},a=t+"CollectionSlot",l=gr.forwardRef((v,g)=>{const{scope:y,children:w}=v,x=s(a,y),b=It(g,x.collectionRef);return gr.createElement(gl,{ref:b},w)}),c=t+"CollectionItemSlot",f="data-radix-collection-item",u=gr.forwardRef((v,g)=>{const{scope:y,children:w,...x}=v,b=gr.useRef(null),A=It(g,b),P=s(c,y);return gr.useEffect(()=>(P.itemMap.set(b,{ref:b,...x}),()=>void P.itemMap.delete(b))),gr.createElement(gl,{[f]:"",ref:A},w)});function d(v){const g=s(t+"CollectionConsumer",v);return gr.useCallback(()=>{const w=g.collectionRef.current;if(!w)return[];const x=Array.from(w.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((P,_)=>x.indexOf(P.ref.current)-x.indexOf(_.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:o,Slot:l,ItemSlot:u},d,n]}const MN=p.createContext(void 0);function Km(t){const e=p.useContext(MN);return t||e||"ltr"}function IN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t);p.useEffect(()=>{const n=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",n),()=>e.removeEventListener("keydown",n)},[r,e])}const Dy="dismissableLayer.update",_N="dismissableLayer.pointerDownOutside",ON="dismissableLayer.focusOutside";let Iw;const NN=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qm=p.forwardRef((t,e)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:o,onInteractOutside:a,onDismiss:l,...c}=t,f=p.useContext(NN),[u,d]=p.useState(null),v=(r=u==null?void 0:u.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=p.useState({}),y=It(e,L=>d(L)),w=Array.from(f.layers),[x]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),b=w.indexOf(x),A=u?w.indexOf(u):-1,P=f.layersWithOutsidePointerEventsDisabled.size>0,_=A>=b,D=DN(L=>{const z=L.target,H=[...f.branches].some(Y=>Y.contains(z));!_||H||(s==null||s(L),a==null||a(L),L.defaultPrevented||l==null||l())},v),M=LN(L=>{const z=L.target;[...f.branches].some(Y=>Y.contains(z))||(o==null||o(L),a==null||a(L),L.defaultPrevented||l==null||l())},v);return IN(L=>{A===f.layers.size-1&&(i==null||i(L),!L.defaultPrevented&&l&&(L.preventDefault(),l()))},v),p.useEffect(()=>{if(u)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(Iw=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(u)),f.layers.add(u),_w(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=Iw)}},[u,v,n,f]),p.useEffect(()=>()=>{u&&(f.layers.delete(u),f.layersWithOutsidePointerEventsDisabled.delete(u),_w())},[u,f]),p.useEffect(()=>{const L=()=>g({});return document.addEventListener(Dy,L),()=>document.removeEventListener(Dy,L)},[]),p.createElement(Xe.div,Re({},c,{ref:y,style:{pointerEvents:P?_?"auto":"none":void 0,...t.style},onFocusCapture:Ce(t.onFocusCapture,M.onFocusCapture),onBlurCapture:Ce(t.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Ce(t.onPointerDownCapture,D.onPointerDownCapture)}))});function DN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1),i=p.useRef(()=>{});return p.useEffect(()=>{const s=a=>{if(a.target&&!n.current){let l=function(){r8(_N,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 LN(t,e=globalThis==null?void 0:globalThis.document){const r=Hn(t),n=p.useRef(!1);return p.useEffect(()=>{const i=s=>{s.target&&!n.current&&r8(ON,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(Dy);document.dispatchEvent(t)}function r8(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?qm(i,s):i.dispatchEvent(s)}const jN=Qm;let R1=0;function n8(){p.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:Ow()),document.body.insertAdjacentElement("beforeend",(e=r[1])!==null&&e!==void 0?e:Ow()),R1++,()=>{R1===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),R1--}},[])}function Ow(){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 T1="focusScope.autoFocusOnMount",M1="focusScope.autoFocusOnUnmount",Nw={bubbles:!1,cancelable:!0},i8=p.forwardRef((t,e)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...o}=t,[a,l]=p.useState(null),c=Hn(i),f=Hn(s),u=p.useRef(null),d=It(e,y=>l(y)),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(n){let y=function(A){if(v.paused||!a)return;const P=A.target;a.contains(P)?u.current=P:Ds(u.current,{select:!0})},w=function(A){if(v.paused||!a)return;const P=A.relatedTarget;P!==null&&(a.contains(P)||Ds(u.current,{select:!0}))},x=function(A){if(document.activeElement===document.body)for(const _ of A)_.removedNodes.length>0&&Ds(a)};document.addEventListener("focusin",y),document.addEventListener("focusout",w);const b=new MutationObserver(x);return a&&b.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",w),b.disconnect()}}},[n,a,v.paused]),p.useEffect(()=>{if(a){Lw.add(v);const y=document.activeElement;if(!a.contains(y)){const x=new CustomEvent(T1,Nw);a.addEventListener(T1,c),a.dispatchEvent(x),x.defaultPrevented||(BN(VN(s8(a)),{select:!0}),document.activeElement===y&&Ds(a))}return()=>{a.removeEventListener(T1,c),setTimeout(()=>{const x=new CustomEvent(M1,Nw);a.addEventListener(M1,f),a.dispatchEvent(x),x.defaultPrevented||Ds(y??document.body,{select:!0}),a.removeEventListener(M1,f),Lw.remove(v)},0)}}},[a,c,f,v]);const g=p.useCallback(y=>{if(!r&&!n||v.paused)return;const w=y.key==="Tab"&&!y.altKey&&!y.ctrlKey&&!y.metaKey,x=document.activeElement;if(w&&x){const b=y.currentTarget,[A,P]=$N(b);A&&P?!y.shiftKey&&x===P?(y.preventDefault(),r&&Ds(A,{select:!0})):y.shiftKey&&x===A&&(y.preventDefault(),r&&Ds(P,{select:!0})):x===b&&y.preventDefault()}},[r,n,v.paused]);return p.createElement(Xe.div,Re({tabIndex:-1},o,{ref:d,onKeyDown:g}))});function BN(t,{select:e=!1}={}){const r=document.activeElement;for(const n of t)if(Ds(n,{select:e}),document.activeElement!==r)return}function $N(t){const e=s8(t),r=Dw(e,t),n=Dw(e.reverse(),t);return[r,n]}function s8(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 Dw(t,e){for(const r of t)if(!FN(r,{upTo:e}))return r}function FN(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 UN(t){return t instanceof HTMLInputElement&&"select"in t}function Ds(t,{select:e=!1}={}){if(t&&t.focus){const r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&UN(t)&&e&&t.select()}}const Lw=zN();function zN(){let t=[];return{add(e){const r=t[0];e!==r&&(r==null||r.pause()),t=jw(t,e),t.unshift(e)},remove(e){var r;t=jw(t,e),(r=t[0])===null||r===void 0||r.resume()}}}function jw(t,e){const r=[...t],n=r.indexOf(e);return n!==-1&&r.splice(n,1),r}function VN(t){return t.filter(e=>e.tagName!=="A")}const qN=["top","right","bottom","left"],fo=Math.min,bn=Math.max,rh=Math.round,Mu=Math.floor,uo=t=>({x:t,y:t}),HN={left:"right",right:"left",bottom:"top",top:"bottom"},WN={start:"end",end:"start"};function Ly(t,e,r){return bn(t,fo(e,r))}function xs(t,e){return typeof t=="function"?t(e):t}function bs(t){return t.split("-")[0]}function Il(t){return t.split("-")[1]}function Ym(t){return t==="x"?"y":"x"}function Jm(t){return t==="y"?"height":"width"}function _l(t){return["top","bottom"].includes(bs(t))?"y":"x"}function Xm(t){return Ym(_l(t))}function GN(t,e,r){r===void 0&&(r=!1);const n=Il(t),i=Xm(t),s=Jm(i);let o=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=nh(o)),[o,nh(o)]}function KN(t){const e=nh(t);return[jy(t),e,jy(e)]}function jy(t){return t.replace(/start|end/g,e=>WN[e])}function QN(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 YN(t,e,r,n){const i=Il(t);let s=QN(bs(t),r==="start",n);return i&&(s=s.map(o=>o+"-"+i),e&&(s=s.concat(s.map(jy)))),s}function nh(t){return t.replace(/left|right|bottom|top/g,e=>HN[e])}function JN(t){return{top:0,right:0,bottom:0,left:0,...t}}function o8(t){return typeof t!="number"?JN(t):{top:t,right:t,bottom:t,left:t}}function ih(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Bw(t,e,r){let{reference:n,floating:i}=t;const s=_l(e),o=Xm(e),a=Jm(o),l=bs(e),c=s==="y",f=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,d=n[a]/2-i[a]/2;let v;switch(l){case"top":v={x:f,y:n.y-i.height};break;case"bottom":v={x:f,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:u};break;case"left":v={x:n.x-i.width,y:u};break;default:v={x:n.x,y:n.y}}switch(Il(e)){case"start":v[o]-=d*(r&&c?-1:1);break;case"end":v[o]+=d*(r&&c?-1:1);break}return v}const XN=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}=Bw(c,n,l),d=n,v={},g=0;for(let y=0;y({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}=xs(t,e)||{};if(c==null)return{};const u=o8(f),d={x:r,y:n},v=Xm(i),g=Jm(v),y=await o.getDimensions(c),w=v==="y",x=w?"top":"left",b=w?"bottom":"right",A=w?"clientHeight":"clientWidth",P=s.reference[g]+s.reference[v]-d[v]-s.floating[g],_=d[v]-s.reference[v],D=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let M=D?D[A]:0;(!M||!await(o.isElement==null?void 0:o.isElement(D)))&&(M=a.floating[A]||s.floating[g]);const L=P/2-_/2,z=M/2-y[g]/2-1,H=fo(u[x],z),Y=fo(u[b],z),Z=H,O=M-y[g]-Y,h=M/2-y[g]/2+L,S=Ly(Z,h,O),k=!l.arrow&&Il(i)!=null&&h!=S&&s.reference[g]/2-(hZ<=0)){var z,H;const Z=(((z=s.flip)==null?void 0:z.index)||0)+1,O=_[Z];if(O)return{data:{index:Z,overflows:L},reset:{placement:O}};let h=(H=L.filter(S=>S.overflows[0]<=0).sort((S,k)=>S.overflows[1]-k.overflows[1])[0])==null?void 0:H.placement;if(!h)switch(v){case"bestFit":{var Y;const S=(Y=L.map(k=>[k.placement,k.overflows.filter(I=>I>0).reduce((I,R)=>I+R,0)]).sort((k,I)=>k[1]-I[1])[0])==null?void 0:Y[0];S&&(h=S);break}case"initialPlacement":h=a;break}if(i!==h)return{reset:{placement:h}}}return{}}}};function Fw(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Uw(t){return qN.some(e=>t[e]>=0)}const eD=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...i}=xs(t,e);switch(n){case"referenceHidden":{const s=await Af(e,{...i,elementContext:"reference"}),o=Fw(s,r.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Uw(o)}}}case"escaped":{const s=await Af(e,{...i,altBoundary:!0}),o=Fw(s,r.floating);return{data:{escapedOffsets:o,escaped:Uw(o)}}}default:return{}}}}};async function tD(t,e){const{placement:r,platform:n,elements:i}=t,s=await(n.isRTL==null?void 0:n.isRTL(i.floating)),o=bs(r),a=Il(r),l=_l(r)==="y",c=["left","top"].includes(o)?-1:1,f=s&&l?-1:1,u=xs(e,t);let{mainAxis:d,crossAxis:v,alignmentAxis:g}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return a&&typeof g=="number"&&(v=a==="end"?g*-1:g),l?{x:v*f,y:d*c}:{x:d*c,y:v*f}}const rD=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){const{x:r,y:n}=e,i=await tD(e,t);return{x:r+i.x,y:n+i.y,data:i}}}},nD=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:w=>{let{x,y:b}=w;return{x,y:b}}},...l}=xs(t,e),c={x:r,y:n},f=await Af(e,l),u=_l(bs(i)),d=Ym(u);let v=c[d],g=c[u];if(s){const w=d==="y"?"top":"left",x=d==="y"?"bottom":"right",b=v+f[w],A=v-f[x];v=Ly(b,v,A)}if(o){const w=u==="y"?"top":"left",x=u==="y"?"bottom":"right",b=g+f[w],A=g-f[x];g=Ly(b,g,A)}const y=a.fn({...e,[d]:v,[u]:g});return{...y,data:{x:y.x-r,y:y.y-n}}}}},iD=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}=xs(t,e),f={x:r,y:n},u=_l(i),d=Ym(u);let v=f[d],g=f[u];const y=xs(a,e),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(l){const A=d==="y"?"height":"width",P=s.reference[d]-s.floating[A]+w.mainAxis,_=s.reference[d]+s.reference[A]-w.mainAxis;v_&&(v=_)}if(c){var x,b;const A=d==="y"?"width":"height",P=["top","left"].includes(bs(i)),_=s.reference[u]-s.floating[A]+(P&&((x=o.offset)==null?void 0:x[u])||0)+(P?0:w.crossAxis),D=s.reference[u]+s.reference[A]+(P?0:((b=o.offset)==null?void 0:b[u])||0)-(P?w.crossAxis:0);g<_?g=_:g>D&&(g=D)}return{[d]:v,[u]:g}}}},sD=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}=xs(t,e),l=await Af(e,a),c=bs(r),f=Il(r),u=_l(r)==="y",{width:d,height:v}=n.floating;let g,y;c==="top"||c==="bottom"?(g=c,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=c,g=f==="end"?"top":"bottom");const w=v-l[g],x=d-l[y],b=!e.middlewareData.shift;let A=w,P=x;if(u){const D=d-l.left-l.right;P=f||b?fo(x,D):D}else{const D=v-l.top-l.bottom;A=f||b?fo(w,D):D}if(b&&!f){const D=bn(l.left,0),M=bn(l.right,0),L=bn(l.top,0),z=bn(l.bottom,0);u?P=d-2*(D!==0||M!==0?D+M:bn(l.left,l.right)):A=v-2*(L!==0||z!==0?L+z:bn(l.top,l.bottom))}await o({...e,availableWidth:P,availableHeight:A});const _=await i.getDimensions(s.floating);return d!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function ho(t){return a8(t)?(t.nodeName||"").toLowerCase():"#document"}function An(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ps(t){var e;return(e=(a8(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function a8(t){return t instanceof Node||t instanceof An(t).Node}function ws(t){return t instanceof Element||t instanceof An(t).Element}function zi(t){return t instanceof HTMLElement||t instanceof An(t).HTMLElement}function zw(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof An(t).ShadowRoot}function Yf(t){const{overflow:e,overflowX:r,overflowY:n,display:i}=Wn(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function oD(t){return["table","td","th"].includes(ho(t))}function Zm(t){const e=eg(),r=Wn(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 aD(t){let e=xl(t);for(;zi(e)&&!i0(e);){if(Zm(e))return e;e=xl(e)}return null}function eg(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function i0(t){return["html","body","#document"].includes(ho(t))}function Wn(t){return An(t).getComputedStyle(t)}function s0(t){return ws(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function xl(t){if(ho(t)==="html")return t;const e=t.assignedSlot||t.parentNode||zw(t)&&t.host||Ps(t);return zw(e)?e.host:e}function l8(t){const e=xl(t);return i0(e)?t.ownerDocument?t.ownerDocument.body:t.body:zi(e)&&Yf(e)?e:l8(e)}function Sf(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const i=l8(t),s=i===((n=t.ownerDocument)==null?void 0:n.body),o=An(i);return s?e.concat(o,o.visualViewport||[],Yf(i)?i:[],o.frameElement&&r?Sf(o.frameElement):[]):e.concat(i,Sf(i,[],r))}function c8(t){const e=Wn(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=zi(t),s=i?t.offsetWidth:r,o=i?t.offsetHeight:n,a=rh(r)!==s||rh(n)!==o;return a&&(r=s,n=o),{width:r,height:n,$:a}}function tg(t){return ws(t)?t:t.contextElement}function tl(t){const e=tg(t);if(!zi(e))return uo(1);const r=e.getBoundingClientRect(),{width:n,height:i,$:s}=c8(e);let o=(s?rh(r.width):r.width)/n,a=(s?rh(r.height):r.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const lD=uo(0);function f8(t){const e=An(t);return!eg()||!e.visualViewport?lD:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function cD(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==An(t)?!1:e}function ta(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const i=t.getBoundingClientRect(),s=tg(t);let o=uo(1);e&&(n?ws(n)&&(o=tl(n)):o=tl(t));const a=cD(s,r,n)?f8(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 d=An(s),v=n&&ws(n)?An(n):n;let g=d.frameElement;for(;g&&n&&v!==d;){const y=tl(g),w=g.getBoundingClientRect(),x=Wn(g),b=w.left+(g.clientLeft+parseFloat(x.paddingLeft))*y.x,A=w.top+(g.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,f*=y.x,u*=y.y,l+=b,c+=A,g=An(g).frameElement}}return ih({width:f,height:u,x:l,y:c})}function fD(t){let{rect:e,offsetParent:r,strategy:n}=t;const i=zi(r),s=Ps(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"||Yf(s))&&(o=s0(r)),zi(r))){const c=ta(r);a=tl(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 uD(t){return Array.from(t.getClientRects())}function u8(t){return ta(Ps(t)).left+s0(t).scrollLeft}function dD(t){const e=Ps(t),r=s0(t),n=t.ownerDocument.body,i=bn(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),s=bn(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let o=-r.scrollLeft+u8(t);const a=-r.scrollTop;return Wn(n).direction==="rtl"&&(o+=bn(e.clientWidth,n.clientWidth)-i),{width:i,height:s,x:o,y:a}}function hD(t,e){const r=An(t),n=Ps(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=eg();(!c||c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:s,height:o,x:a,y:l}}function vD(t,e){const r=ta(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,s=zi(t)?tl(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 Vw(t,e,r){let n;if(e==="viewport")n=hD(t,r);else if(e==="document")n=dD(Ps(t));else if(ws(e))n=vD(e,r);else{const i=f8(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return ih(n)}function d8(t,e){const r=xl(t);return r===e||!ws(r)||i0(r)?!1:Wn(r).position==="fixed"||d8(r,e)}function yD(t,e){const r=e.get(t);if(r)return r;let n=Sf(t,[],!1).filter(a=>ws(a)&&ho(a)!=="body"),i=null;const s=Wn(t).position==="fixed";let o=s?xl(t):t;for(;ws(o)&&!i0(o);){const a=Wn(o),l=Zm(o);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yf(o)&&!l&&d8(t,o))?n=n.filter(f=>f!==o):i=a,o=xl(o)}return e.set(t,n),n}function pD(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t;const o=[...r==="clippingAncestors"?yD(e,this._c):[].concat(r),n],a=o[0],l=o.reduce((c,f)=>{const u=Vw(e,f,i);return c.top=bn(u.top,c.top),c.right=fo(u.right,c.right),c.bottom=fo(u.bottom,c.bottom),c.left=bn(u.left,c.left),c},Vw(e,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function mD(t){return c8(t)}function gD(t,e,r){const n=zi(e),i=Ps(e),s=r==="fixed",o=ta(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=uo(0);if(n||!n&&!s)if((ho(e)!=="body"||Yf(i))&&(a=s0(e)),n){const c=ta(e,!0,s,e);l.x=c.x+e.clientLeft,l.y=c.y+e.clientTop}else i&&(l.x=u8(i));return{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function qw(t,e){return!zi(t)||Wn(t).position==="fixed"?null:e?e(t):t.offsetParent}function h8(t,e){const r=An(t);if(!zi(t))return r;let n=qw(t,e);for(;n&&oD(n)&&Wn(n).position==="static";)n=qw(n,e);return n&&(ho(n)==="html"||ho(n)==="body"&&Wn(n).position==="static"&&!Zm(n))?r:n||aD(t)||r}const xD=async function(t){let{reference:e,floating:r,strategy:n}=t;const i=this.getOffsetParent||h8,s=this.getDimensions;return{reference:gD(e,await i(r),n),floating:{x:0,y:0,...await s(r)}}};function bD(t){return Wn(t).direction==="rtl"}const wD={convertOffsetParentRelativeRectToViewportRelativeRect:fD,getDocumentElement:Ps,getClippingRect:pD,getOffsetParent:h8,getElementRects:xD,getClientRects:uD,getDimensions:mD,getScale:tl,isElement:ws,isRTL:bD};function ED(t,e){let r=null,n;const i=Ps(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:d}=t.getBoundingClientRect();if(a||e(),!u||!d)return;const v=Mu(f),g=Mu(i.clientWidth-(c+u)),y=Mu(i.clientHeight-(f+d)),w=Mu(c),b={rootMargin:-v+"px "+-g+"px "+-y+"px "+-w+"px",threshold:bn(0,fo(1,l))||1};let A=!0;function P(_){const D=_[0].intersectionRatio;if(D!==l){if(!A)return o();D?o(!1,D):n=setTimeout(()=>{o(!1,1e-7)},100)}A=!1}try{r=new IntersectionObserver(P,{...b,root:i.ownerDocument})}catch{r=new IntersectionObserver(P,b)}r.observe(t)}return o(!0),s}function AD(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=tg(t),f=i||s?[...c?Sf(c):[],...Sf(e)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",r,{passive:!0}),s&&x.addEventListener("resize",r)});const u=c&&a?ED(c,r):null;let d=-1,v=null;o&&(v=new ResizeObserver(x=>{let[b]=x;b&&b.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{v&&v.observe(e)})),r()}),c&&!l&&v.observe(c),v.observe(e));let g,y=l?ta(t):null;l&&w();function w(){const x=ta(t);y&&(x.x!==y.x||x.y!==y.y||x.width!==y.width||x.height!==y.height)&&r(),y=x,g=requestAnimationFrame(w)}return r(),()=>{f.forEach(x=>{i&&x.removeEventListener("scroll",r),s&&x.removeEventListener("resize",r)}),u&&u(),v&&v.disconnect(),v=null,l&&cancelAnimationFrame(g)}}const SD=(t,e,r)=>{const n=new Map,i={platform:wD,...r},s={...i.platform,_c:n};return XN(t,e,{...i,platform:s})},CD=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?$w({element:n.current,padding:i}).fn(r):{}:n?$w({element:n,padding:i}).fn(r):{}}}};var fd=typeof document<"u"?p.useLayoutEffect:p.useEffect;function sh(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(!sh(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)&&!sh(t[s],e[s]))return!1}return!0}return t!==t&&e!==e}function v8(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Hw(t,e){const r=v8(t);return Math.round(e*r)/r}function Ww(t){const e=p.useRef(t);return fd(()=>{e.current=t}),e}function kD(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]=p.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[d,v]=p.useState(n);sh(d,n)||v(n);const[g,y]=p.useState(null),[w,x]=p.useState(null),b=p.useCallback(k=>{k!=D.current&&(D.current=k,y(k))},[y]),A=p.useCallback(k=>{k!==M.current&&(M.current=k,x(k))},[x]),P=s||g,_=o||w,D=p.useRef(null),M=p.useRef(null),L=p.useRef(f),z=Ww(l),H=Ww(i),Y=p.useCallback(()=>{if(!D.current||!M.current)return;const k={placement:e,strategy:r,middleware:d};H.current&&(k.platform=H.current),SD(D.current,M.current,k).then(I=>{const R={...I,isPositioned:!0};Z.current&&!sh(L.current,R)&&(L.current=R,ks.flushSync(()=>{u(R)}))})},[d,e,r,H]);fd(()=>{c===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,u(k=>({...k,isPositioned:!1})))},[c]);const Z=p.useRef(!1);fd(()=>(Z.current=!0,()=>{Z.current=!1}),[]),fd(()=>{if(P&&(D.current=P),_&&(M.current=_),P&&_){if(z.current)return z.current(P,_,Y);Y()}},[P,_,Y,z]);const O=p.useMemo(()=>({reference:D,floating:M,setReference:b,setFloating:A}),[b,A]),h=p.useMemo(()=>({reference:P,floating:_}),[P,_]),S=p.useMemo(()=>{const k={position:r,left:0,top:0};if(!h.floating)return k;const I=Hw(h.floating,f.x),R=Hw(h.floating,f.y);return a?{...k,transform:"translate("+I+"px, "+R+"px)",...v8(h.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:I,top:R}},[r,a,h.floating,f.x,f.y]);return p.useMemo(()=>({...f,update:Y,refs:O,elements:h,floatingStyles:S}),[f,Y,O,h,S])}const y8="Popper",[p8,Ol]=qr(y8),[PD,m8]=p8(y8),RD=t=>{const{__scopePopper:e,children:r}=t,[n,i]=p.useState(null);return p.createElement(PD,{scope:e,anchor:n,onAnchorChange:i},r)},TD="PopperAnchor",MD=p.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...i}=t,s=m8(TD,r),o=p.useRef(null),a=It(e,o);return p.useEffect(()=>{s.onAnchorChange((n==null?void 0:n.current)||o.current)}),n?null:p.createElement(Xe.div,Re({},i,{ref:a}))}),g8="PopperContent",[ID,Wee]=p8(g8),_D=p.forwardRef((t,e)=>{var r,n,i,s,o,a,l,c;const{__scopePopper:f,side:u="bottom",sideOffset:d=0,align:v="center",alignOffset:g=0,arrowPadding:y=0,avoidCollisions:w=!0,collisionBoundary:x=[],collisionPadding:b=0,sticky:A="partial",hideWhenDetached:P=!1,updatePositionStrategy:_="optimized",onPlaced:D,...M}=t,L=m8(g8,f),[z,H]=p.useState(null),Y=It(e,we=>H(we)),[Z,O]=p.useState(null),h=Vm(Z),S=(r=h==null?void 0:h.width)!==null&&r!==void 0?r:0,k=(n=h==null?void 0:h.height)!==null&&n!==void 0?n:0,I=u+(v!=="center"?"-"+v:""),R=typeof b=="number"?b:{top:0,right:0,bottom:0,left:0,...b},N=Array.isArray(x)?x:[x],B=N.length>0,C={padding:R,boundary:N.filter(OD),altBoundary:B},{refs:m,floatingStyles:T,placement:F,isPositioned:E,middlewareData:$}=kD({strategy:"fixed",placement:I,whileElementsMounted:(...we)=>AD(...we,{animationFrame:_==="always"}),elements:{reference:L.anchor},middleware:[rD({mainAxis:d+k,alignmentAxis:g}),w&&nD({mainAxis:!0,crossAxis:!1,limiter:A==="partial"?iD():void 0,...C}),w&&ZN({...C}),sD({...C,apply:({elements:we,rects:zt,availableWidth:Ve,availableHeight:ot})=>{const{width:Jn,height:at}=zt.reference,Ge=we.floating.style;Ge.setProperty("--radix-popper-available-width",`${Ve}px`),Ge.setProperty("--radix-popper-available-height",`${ot}px`),Ge.setProperty("--radix-popper-anchor-width",`${Jn}px`),Ge.setProperty("--radix-popper-anchor-height",`${at}px`)}}),Z&&CD({element:Z,padding:y}),ND({arrowWidth:S,arrowHeight:k}),P&&eD({strategy:"referenceHidden",...C})]}),[V,q]=x8(F),K=Hn(D);kn(()=>{E&&(K==null||K())},[E,K]);const oe=(i=$.arrow)===null||i===void 0?void 0:i.x,te=(s=$.arrow)===null||s===void 0?void 0:s.y,re=((o=$.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[Ie,ue]=p.useState();return kn(()=>{z&&ue(window.getComputedStyle(z).zIndex)},[z]),p.createElement("div",{ref:m.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:E?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ie,"--radix-popper-transform-origin":[(a=$.transformOrigin)===null||a===void 0?void 0:a.x,(l=$.transformOrigin)===null||l===void 0?void 0:l.y].join(" ")},dir:t.dir},p.createElement(ID,{scope:f,placedSide:V,onArrowChange:O,arrowX:oe,arrowY:te,shouldHideArrow:re},p.createElement(Xe.div,Re({"data-side":V,"data-align":q},M,{ref:Y,style:{...M.style,animation:E?void 0:"none",opacity:(c=$.hide)!==null&&c!==void 0&&c.referenceHidden?0:void 0}}))))});function OD(t){return t!==null}const ND=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,d=u?0:t.arrowWidth,v=u?0:t.arrowHeight,[g,y]=x8(a),w={start:"0%",center:"50%",end:"100%"}[y],x=((n=(i=c.arrow)===null||i===void 0?void 0:i.x)!==null&&n!==void 0?n:0)+d/2,b=((s=(o=c.arrow)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:0)+v/2;let A="",P="";return g==="bottom"?(A=u?w:`${x}px`,P=`${-v}px`):g==="top"?(A=u?w:`${x}px`,P=`${l.floating.height+v}px`):g==="right"?(A=`${-v}px`,P=u?w:`${b}px`):g==="left"&&(A=`${l.floating.width+v}px`,P=u?w:`${b}px`),{data:{x:A,y:P}}}});function x8(t){const[e,r="center"]=t.split("-");return[e,r]}const DD=RD,LD=MD,jD=_D,b8=p.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?w5.createPortal(p.createElement(Xe.div,Re({},i,{ref:e})),n):null}),I1="rovingFocusGroup.onEntryFocus",BD={bubbles:!1,cancelable:!0},rg="RovingFocusGroup",[By,w8,$D]=n0(rg),[FD,Nl]=qr(rg,[$D]),[UD,zD]=FD(rg),VD=p.forwardRef((t,e)=>p.createElement(By.Provider,{scope:t.__scopeRovingFocusGroup},p.createElement(By.Slot,{scope:t.__scopeRovingFocusGroup},p.createElement(qD,Kt({},t,{ref:e}))))),qD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:i=!1,dir:s,currentTabStopId:o,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,...f}=t,u=p.useRef(null),d=It(e,u),v=Km(s),[g=null,y]=ea({prop:o,defaultProp:a,onChange:l}),[w,x]=p.useState(!1),b=Hn(c),A=w8(r),P=p.useRef(!1),[_,D]=p.useState(0);return p.useEffect(()=>{const M=u.current;if(M)return M.addEventListener(I1,b),()=>M.removeEventListener(I1,b)},[b]),p.createElement(UD,{scope:r,orientation:n,dir:v,loop:i,currentTabStopId:g,onItemFocus:p.useCallback(M=>y(M),[y]),onItemShiftTab:p.useCallback(()=>x(!0),[]),onFocusableItemAdd:p.useCallback(()=>D(M=>M+1),[]),onFocusableItemRemove:p.useCallback(()=>D(M=>M-1),[])},p.createElement(Xe.div,Kt({tabIndex:w||_===0?-1:0,"data-orientation":n},f,{ref:d,style:{outline:"none",...t.style},onMouseDown:Ce(t.onMouseDown,()=>{P.current=!0}),onFocus:Ce(t.onFocus,M=>{const L=!P.current;if(M.target===M.currentTarget&&L&&!w){const z=new CustomEvent(I1,BD);if(M.currentTarget.dispatchEvent(z),!z.defaultPrevented){const H=A().filter(S=>S.focusable),Y=H.find(S=>S.active),Z=H.find(S=>S.id===g),h=[Y,Z,...H].filter(Boolean).map(S=>S.ref.current);E8(h)}}P.current=!1}),onBlur:Ce(t.onBlur,()=>x(!1))})))}),HD="RovingFocusGroupItem",WD=p.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:i=!1,tabStopId:s,...o}=t,a=no(),l=s||a,c=zD(HD,r),f=c.currentTabStopId===l,u=w8(r),{onFocusableItemAdd:d,onFocusableItemRemove:v}=c;return p.useEffect(()=>{if(n)return d(),()=>v()},[n,d,v]),p.createElement(By.ItemSlot,{scope:r,id:l,focusable:n,active:i},p.createElement(Xe.span,Kt({tabIndex:f?0:-1,"data-orientation":c.orientation},o,{ref:e,onMouseDown:Ce(t.onMouseDown,g=>{n?c.onItemFocus(l):g.preventDefault()}),onFocus:Ce(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:Ce(t.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const y=QD(g,c.orientation,c.dir);if(y!==void 0){g.preventDefault();let x=u().filter(b=>b.focusable).map(b=>b.ref.current);if(y==="last")x.reverse();else if(y==="prev"||y==="next"){y==="prev"&&x.reverse();const b=x.indexOf(g.currentTarget);x=c.loop?YD(x,b+1):x.slice(b+1)}setTimeout(()=>E8(x))}})})))}),GD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KD(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function QD(t,e,r){const n=KD(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return GD[n]}function E8(t){const e=document.activeElement;for(const r of t)if(r===e||(r.focus(),document.activeElement!==e))return}function YD(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const JD=VD,A8=WD;var XD=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ba=new WeakMap,Iu=new WeakMap,_u={},_1=0,S8=function(t){return t&&(t.host||S8(t.parentNode))},ZD=function(t,e){return e.map(function(r){if(t.contains(r))return r;var n=S8(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})},eL=function(t,e,r,n){var i=ZD(e,Array.isArray(t)?t:[t]);_u[r]||(_u[r]=new WeakMap);var s=_u[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(d){if(a.has(d))f(d);else{var v=d.getAttribute(n),g=v!==null&&v!=="false",y=(ba.get(d)||0)+1,w=(s.get(d)||0)+1;ba.set(d,y),s.set(d,w),o.push(d),y===1&&g&&Iu.set(d,!0),w===1&&d.setAttribute(r,"true"),g||d.setAttribute(n,"true")}})};return f(e),a.clear(),_1++,function(){o.forEach(function(u){var d=ba.get(u)-1,v=s.get(u)-1;ba.set(u,d),s.set(u,v),d||(Iu.has(u)||u.removeAttribute(n),Iu.delete(u)),v||u.removeAttribute(r)}),_1--,_1||(ba=new WeakMap,ba=new WeakMap,Iu=new WeakMap,_u={})}},C8=function(t,e,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(t)?t:[t]),i=XD(t);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live]"))),eL(n,i,r,"aria-hidden")):function(){return null}},Ti=function(){return Ti=Object.assign||function(e){for(var r,n=1,i=arguments.length;n"u")return mL;var e=gL(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])}},bL=T8(),wL=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(rL,` { overflow: hidden `).concat(n,`; padding-right: `).concat(a,"px ").concat(n,`; @@ -95,15 +95,15 @@ Error generating stack: `+s.message+` body { `).concat(nL,": ").concat(a,`px; } -`)},EL=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=p.useMemo(function(){return xL(i)},[i]);return p.createElement(bL,{styles:wL(s,!e,i,r?"":"!important")})},$y=!1;if(typeof window<"u")try{var Ou=Object.defineProperty({},"passive",{get:function(){return $y=!0,!0}});window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch{$y=!1}var ba=$y?{passive:!1}:!1,AL=function(t){return t.tagName==="TEXTAREA"},MS=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!AL(t)&&r[e]==="visible")},SL=function(t){return MS(t,"overflowY")},CL=function(t){return MS(t,"overflowX")},Gw=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=IS(t,r);if(n){var i=_S(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},kL=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},PL=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},IS=function(t,e){return t==="v"?SL(e):CL(e)},_S=function(t,e){return t==="v"?kL(e):PL(e)},RL=function(t,e){return t==="h"&&e==="rtl"?-1:1},TL=function(t,e,r,n,i){var s=RL(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=_S(t,a),g=v[0],y=v[1],w=v[2],x=y-w-s*g;(g||x)&&IS(t,a)&&(u+=x,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(u===0||!i)||!f&&(d===0||!i))&&(c=!0),c},Nu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Kw=function(t){return[t.deltaX,t.deltaY]},Qw=function(t){return t&&"current"in t?t.current:t},ML=function(t,e){return t[0]===e[0]&&t[1]===e[1]},IL=function(t){return` +`)},EL=function(t){var e=t.noRelative,r=t.noImportant,n=t.gapMode,i=n===void 0?"margin":n,s=p.useMemo(function(){return xL(i)},[i]);return p.createElement(bL,{styles:wL(s,!e,i,r?"":"!important")})},$y=!1;if(typeof window<"u")try{var Ou=Object.defineProperty({},"passive",{get:function(){return $y=!0,!0}});window.addEventListener("test",Ou,Ou),window.removeEventListener("test",Ou,Ou)}catch{$y=!1}var wa=$y?{passive:!1}:!1,AL=function(t){return t.tagName==="TEXTAREA"},M8=function(t,e){var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!AL(t)&&r[e]==="visible")},SL=function(t){return M8(t,"overflowY")},CL=function(t){return M8(t,"overflowX")},Gw=function(t,e){var r=e;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=I8(t,r);if(n){var i=_8(t,r),s=i[1],o=i[2];if(s>o)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},kL=function(t){var e=t.scrollTop,r=t.scrollHeight,n=t.clientHeight;return[e,r,n]},PL=function(t){var e=t.scrollLeft,r=t.scrollWidth,n=t.clientWidth;return[e,r,n]},I8=function(t,e){return t==="v"?SL(e):CL(e)},_8=function(t,e){return t==="v"?kL(e):PL(e)},RL=function(t,e){return t==="h"&&e==="rtl"?-1:1},TL=function(t,e,r,n,i){var s=RL(t,window.getComputedStyle(e).direction),o=s*n,a=r.target,l=e.contains(a),c=!1,f=o>0,u=0,d=0;do{var v=_8(t,a),g=v[0],y=v[1],w=v[2],x=y-w-s*g;(g||x)&&I8(t,a)&&(u+=x,d+=g),a=a.parentNode}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(f&&(u===0||!i)||!f&&(d===0||!i))&&(c=!0),c},Nu=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Kw=function(t){return[t.deltaX,t.deltaY]},Qw=function(t){return t&&"current"in t?t.current:t},ML=function(t,e){return t[0]===e[0]&&t[1]===e[1]},IL=function(t){return` .block-interactivity-`.concat(t,` {pointer-events: none;} .allow-interactivity-`).concat(t,` {pointer-events: all;} -`)},_L=0,wa=[];function OL(t){var e=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),i=p.useState(_L++)[0],s=p.useState(function(){return TS()})[0],o=p.useRef(t);p.useEffect(function(){o.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=tL([t.lockRef.current],(t.shards||[]).map(Qw),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Nu(y),b=r.current,S="deltaX"in y?y.deltaX:b[0]-x[0],P="deltaY"in y?y.deltaY:b[1]-x[1],_,D=y.target,M=Math.abs(S)>Math.abs(P)?"h":"v";if("touches"in y&&M==="h"&&D.type==="range")return!1;var L=Gw(M,D);if(!L)return!0;if(L?_=M:(_=M==="v"?"h":"v",L=Gw(M,D)),!L)return!1;if(!n.current&&"changedTouches"in y&&(S||P)&&(n.current=_),!_)return!0;var z=n.current||_;return TL(z,w,y,z==="h"?S:P,!0)},[]),l=p.useCallback(function(y){var w=y;if(!(!wa.length||wa[wa.length-1]!==s)){var x="deltaY"in w?Kw(w):Nu(w),b=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&ML(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var S=(o.current.shards||[]).map(Qw).filter(Boolean).filter(function(_){return _.contains(w.target)}),P=S.length>0?a(w,S[0]):!o.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),c=p.useCallback(function(y,w,x,b){var S={name:y,delta:w,target:x,should:b};e.current.push(S),setTimeout(function(){e.current=e.current.filter(function(P){return P!==S})},1)},[]),f=p.useCallback(function(y){r.current=Nu(y),n.current=void 0},[]),u=p.useCallback(function(y){c(y.type,Kw(y),y.target,a(y,t.lockRef.current))},[]),d=p.useCallback(function(y){c(y.type,Nu(y),y.target,a(y,t.lockRef.current))},[]);p.useEffect(function(){return wa.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,ba),document.addEventListener("touchmove",l,ba),document.addEventListener("touchstart",f,ba),function(){wa=wa.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,ba),document.removeEventListener("touchmove",l,ba),document.removeEventListener("touchstart",f,ba)}},[]);var v=t.removeScrollBar,g=t.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:IL(i)}):null,v?p.createElement(EL,{gapMode:"margin"}):null)}const NL=fL(RS,OL);var ng=p.forwardRef(function(t,e){return p.createElement(o0,Ri({},t,{ref:e,sideCar:NL}))});ng.classNames=o0.classNames;const DL=["Enter"," "],a0="Menu",[LL,Wee,jL]=n0(a0),[ha,OS]=qr(a0,[jL,_l,Ol]);_l();const BL=Ol();ha(a0);const[Gee,$L]=ha(a0),FL="MenuPortal";ha(FL,{forceMount:void 0});const UL="MenuContent",[Kee,NS]=ha(UL),Fy="MenuItem",Yw="menu.itemSelect",DS=p.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=p.useRef(null),o=$L(Fy,t.__scopeMenu),a=NS(Fy,t.__scopeMenu),l=It(e,s),c=p.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(Yw,{bubbles:!0,cancelable:!0});u.addEventListener(Yw,v=>n==null?void 0:n(v),{once:!0}),qm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return p.createElement(zL,Re({},i,{ref:l,disabled:r,onClick:Ce(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Ce(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Ce(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||DL.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),zL=p.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=NS(Fy,r),a=BL(r),l=p.useRef(null),c=It(e,l),[f,u]=p.useState(!1),[d,v]=p.useState("");return p.useEffect(()=>{const g=l.current;if(g){var y;v(((y=g.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),p.createElement(LL.ItemSlot,{scope:r,disabled:n,textValue:i??d},p.createElement(AS,Re({asChild:!0},a,{focusable:!n}),p.createElement(Xe.div,Re({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Ce(t.onPointerMove,Jw(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:Ce(t.onPointerLeave,Jw(g=>o.onItemLeave(g))),onFocus:Ce(t.onFocus,()=>u(!0)),onBlur:Ce(t.onBlur,()=>u(!1))}))))}),VL=p.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return p.createElement(jS,{scope:t.__scopeMenu,checked:r},p.createElement(DS,Re({role:"menuitemcheckbox","aria-checked":oh(r)?"mixed":r},i,{ref:e,"data-state":ig(r),onSelect:Ce(i.onSelect,()=>n==null?void 0:n(oh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),qL="MenuRadioGroup",[Qee,HL]=ha(qL,{value:void 0,onValueChange:()=>{}}),WL="MenuRadioItem",GL=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=HL(WL,t.__scopeMenu),s=r===i.value;return p.createElement(jS,{scope:t.__scopeMenu,checked:s},p.createElement(DS,Re({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":ig(s),onSelect:Ce(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),LS="MenuItemIndicator",[jS,KL]=ha(LS,{checked:!1}),QL=p.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=KL(LS,r);return p.createElement(wo,{present:n||oh(s.checked)||s.checked===!0},p.createElement(Xe.span,Re({},i,{ref:e,"data-state":ig(s.checked)})))}),YL="MenuSub";ha(YL);function oh(t){return t==="indeterminate"}function ig(t){return oh(t)?"indeterminate":t?"checked":"unchecked"}function Jw(t){return e=>e.pointerType==="mouse"?t(e):void 0}const JL=VL,XL=GL,ZL=QL,BS="DropdownMenu",[ej,Yee]=qr(BS,[OS]),sg=OS();ej(BS);const tj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(JL,Re({},i,n,{ref:e}))}),rj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(XL,Re({},i,n,{ref:e}))}),nj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(ZL,Re({},i,n,{ref:e}))}),ij=tj,sj=rj,$S=nj;var FS="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",US="_1k2mbvi5";const oj=({children:t})=>J.jsx($S,{className:US,children:t});p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(ij,{className:fn(FS,t),...r,ref:n,children:[J.jsx(oj,{children:J.jsx(X8,{size:"xs"})}),J.jsx(Se,{variant:"small",children:e})]}));p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(sj,{className:fn(FS,t),...r,ref:n,children:[J.jsx($S,{className:US,children:J.jsx(Se,{children:"•"})}),J.jsx(Se,{variant:"small",children:e})]}));const og=p.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return J.jsx(pr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),aj=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var lj="_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",cj=Qt({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:[]}),fj="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const uj={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4"};p.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,...d}=t,v=p.useRef(null),g=aj(v,e),[y,w]=p.useState(null),x=S=>{const P=S.currentTarget.files;if(!P||!P[0])return;const _=P[0],D=_.name,M=_.size/1e3;w({name:D,size:M,extension:D.split(".").pop()??""}),c==null||c(_)},b=u.map(S=>uj[S]).join(",");return J.jsx(Tl,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:J.jsxs(re,{width:"full",minWidth:"0",justifyContent:y?"space-between":"flex-start",gap:"2",color:y?"text100":"text50",className:fn(lj,cj({borderRadius:r})),children:[y?J.jsxs(re,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[J.jsx(Se,{ellipsis:!0,children:y.name}),J.jsxs(Se,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[y.size.toFixed(2)," kb"]})]}):J.jsx(Se,{ellipsis:!0,children:f}),J.jsx(re,{accept:b,as:"input",className:fj,cursor:"pointer",disabled:i,id:s??l,name:l,onChange:x,ref:g,type:"file",...d}),y&&J.jsx(og,{cursor:"pointer",icon:Hm,size:"xs",onClick:S=>{var P;S.preventDefault(),S.stopPropagation(),(P=v.current)!=null&&P.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})});var dj=Qt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const Uy=1e3,tl=64,D1=tl/2,L1=(t,e=Uy)=>t%e/(Uy/tl),_o=(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)},hj=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:_o(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},vj=(t,e)=>{const r=[];for(let n=0;n{const s=tl/10+L1(n.r,Uy*1.5/(i+1));return{...hj(n.a,n.b,n.c),x:L1(n.x),y:L1(n.y),r:s}})};p.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=vj(r,i);return J.jsxs(re,{as:"svg",className:fn(e,dj({size:n})),viewBox:`0 0 ${tl} ${tl}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[J.jsxs("defs",{children:[J.jsx("clipPath",{id:"circle-clip",children:J.jsx("circle",{cx:D1,cy:D1,r:D1})}),J.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[J.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),J.jsx("feGaussianBlur",{stdDeviation:tl/10,result:"effect1_foregroundBlur"})]}),J.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[J.jsx("stop",{offset:"0",stopColor:o[0].c}),J.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>J.jsxs(p.Fragment,{children:[J.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.a}),J.jsx("stop",{offset:"1",stopColor:a.b})]}),J.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.c}),J.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),J.jsxs("g",{clipPath:"url(#circle-clip)",children:[J.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),J.jsx("g",{filter:"url(#blur)",children:o.map(a=>J.jsxs(p.Fragment,{children:[J.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),J.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const yj=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=p.useState(!1),o=a=>{s(!0),r==null||r(a)};return J.jsx(re,{as:Za.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},zS="Dialog",[VS,Jee]=qr(zS),[pj,Eo]=VS(zS),mj=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=p.useRef(null),l=p.useRef(null),[c=!1,f]=ea({prop:n,defaultProp:i,onChange:s});return p.createElement(pj,{scope:e,triggerRef:a,contentRef:l,contentId:ro(),titleId:ro(),descriptionId:ro(),open:c,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(u=>!u),[f]),modal:o},r)},qS="DialogPortal",[gj,HS]=VS(qS,{forceMount:void 0}),xj=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=Eo(qS,e);return p.createElement(gj,{scope:e,forceMount:r},p.Children.map(n,o=>p.createElement(wo,{present:r||s.open},p.createElement(bS,{asChild:!0,container:i},o))))},zy="DialogOverlay",bj=p.forwardRef((t,e)=>{const r=HS(zy,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Eo(zy,t.__scopeDialog);return s.modal?p.createElement(wo,{present:n||s.open},p.createElement(wj,Re({},i,{ref:e}))):null}),wj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Eo(zy,r);return p.createElement(ng,{as:ml,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(Xe.div,Re({"data-state":GS(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),Cf="DialogContent",Ej=p.forwardRef((t,e)=>{const r=HS(Cf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Eo(Cf,t.__scopeDialog);return p.createElement(wo,{present:n||s.open},s.modal?p.createElement(Aj,Re({},i,{ref:e})):p.createElement(Sj,Re({},i,{ref:e})))}),Aj=p.forwardRef((t,e)=>{const r=Eo(Cf,t.__scopeDialog),n=p.useRef(null),i=It(e,r.contentRef,n);return p.useEffect(()=>{const s=n.current;if(s)return CS(s)},[]),p.createElement(WS,Re({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ce(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Ce(t.onFocusOutside,s=>s.preventDefault())}))}),Sj=p.forwardRef((t,e)=>{const r=Eo(Cf,t.__scopeDialog),n=p.useRef(!1),i=p.useRef(!1);return p.createElement(WS,Re({},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()}}))}),WS=p.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=Eo(Cf,r),l=p.useRef(null),c=It(e,l);return nS(),p.createElement(p.Fragment,null,p.createElement(iS,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(Qm,Re({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":GS(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),Cj="DialogClose",kj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Eo(Cj,r);return p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,()=>i.onOpenChange(!1))}))});function GS(t){return t?"open":"closed"}const Pj=mj,Rj=xj,Tj=bj,Mj=Ej,Ij=kj;var _j=Qt({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),Oj=Qt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const Nj=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return J.jsx(re,{className:Oj({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:J.jsx(re,{className:_j({direction:n}),background:"backgroundPrimary",...i,children:e})})};function Dj(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Lj(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 KS(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]=KS(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 Xw(t,e,r){t.style.setProperty(Dj(e),r)}function Zw(t,e,r){if(typeof r=="object"){var n=e;KS(r,(a,l)=>{a!=null&&Xw(t,Lj(n,l),String(a))})}else{var i=e;for(var s in i){var o=i[s];o!=null&&Xw(t,s,i[s])}}}const ag=["dark","light"],QS="dark",jj="data-theme",e3="@sequence.theme",Bj=t=>ag.includes(t),$j=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),YS=t=>t?`${e3}.${t}`:e3,Fj=t=>{const e=localStorage.getItem(YS(t));return e&&ag.includes(e)?e:QS},JS=p.createContext(null),Uj=t=>{const[e,r]=p.useState(t.theme||QS);p.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),p.useEffect(()=>{t.theme||r(Fj(t.scope))},[t.theme,t.scope]),p.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),p.useEffect(()=>{const i=document.querySelector(t.root||":root");i&&(Bj(e)?(i.setAttribute(jj,e),Zw(i,Sw,{colors:SO[e]})):$j(e)&&Zw(i,Sw,{colors:e}))},[e,t.root]);const n=p.useMemo(()=>({theme:e,root:t.root,setTheme:i=>{ag.includes(i)&&(localStorage.setItem(YS(t.scope),i),r(i))}}),[e,t.root,t.scope]);return J.jsx(JS.Provider,{value:n,children:t.children})},XS=()=>{const t=p.useContext(JS);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var zj="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Vj="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",qj=Qt({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"]]}),Hj="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const Wj=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}=XS(),[d,v]=p.useState(null);return p.useEffect(()=>{v(document.querySelector(u||"body"))},[u]),d?J.jsx(Pj,{modal:!0,defaultOpen:!0,onOpenChange:o,children:J.jsx(Rj,{forceMount:!0,container:d,children:J.jsxs(re,{className:zj,children:[J.jsx(re,{as:Tj,asChild:!0,background:r,className:Vj,forceMount:!0,children:J.jsx(Za.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")}),J.jsx(Mj,{asChild:!0,className:qj({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:g=>{s?o==null||o():g.preventDefault()},onInteractOutside:g=>{s||g.preventDefault()},children:J.jsxs(Za.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?J.jsx(Nj,{children:n}):n,s&&J.jsx(Ij,{asChild:!0,children:J.jsx(og,{icon:Hm,backdropFilter:"blur",size:"xs",className:Hj,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var Gj="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",Kj=Qt({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:[]}),Qj=Qt({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 Pr=p.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:d,controls:v,type:g="text",numeric:y=!1,...w}=t;return J.jsx(Tl,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:J.jsx(re,{width:"full",children:J.jsxs(re,{className:fn(Gj,Kj({borderRadius:i})),children:[f&&J.jsx(f,{size:"sm"}),J.jsx(re,{as:r,autoComplete:n,spellCheck:"false",className:Qj({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:g,...w}),u&&J.jsx(u,{size:"sm"}),v]})})})}),Yj=RegExp("^\\d*(?:\\\\[.])?\\d*$");function Jj(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}p.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===""||Yj.test(Jj(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 J.jsx(Pr,{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})});Qt({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const ZS="Progress",l0=100,[Xj,Xee]=qr(ZS),[Zj,Zee]=Xj(ZS),eB=p.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=tB,...o}=t,a=Vy(i)?i:l0,l=eC(n,a)?n:null,c=ah(l)?s(l,a):void 0;return p.createElement(Zj,{scope:r,value:l,max:a},p.createElement(Xe.div,Kt({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ah(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":rB(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});eB.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!Vy(n)?new Error(nB(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=Vy(t.max)?t.max:l0;return n!=null&&!eC(n,s)?new Error(iB(i,r)):null}};function tB(t,e){return`${Math.round(t/e*100)}%`}function rB(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ah(t){return typeof t=="number"}function Vy(t){return ah(t)&&!isNaN(t)&&t>0}function eC(t,e){return ah(t)&&!isNaN(t)&&t<=e&&t>=0}function nB(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${l0}\`.`}function iB(t,e){return`Invalid prop \`value\` of value \`${t}\` supplied to \`${e}\`. The \`value\` prop must be: +`)},_L=0,Ea=[];function OL(t){var e=p.useRef([]),r=p.useRef([0,0]),n=p.useRef(),i=p.useState(_L++)[0],s=p.useState(function(){return T8()})[0],o=p.useRef(t);p.useEffect(function(){o.current=t},[t]),p.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var y=tL([t.lockRef.current],(t.shards||[]).map(Qw),!0).filter(Boolean);return y.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),y.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=p.useCallback(function(y,w){if("touches"in y&&y.touches.length===2)return!o.current.allowPinchZoom;var x=Nu(y),b=r.current,A="deltaX"in y?y.deltaX:b[0]-x[0],P="deltaY"in y?y.deltaY:b[1]-x[1],_,D=y.target,M=Math.abs(A)>Math.abs(P)?"h":"v";if("touches"in y&&M==="h"&&D.type==="range")return!1;var L=Gw(M,D);if(!L)return!0;if(L?_=M:(_=M==="v"?"h":"v",L=Gw(M,D)),!L)return!1;if(!n.current&&"changedTouches"in y&&(A||P)&&(n.current=_),!_)return!0;var z=n.current||_;return TL(z,w,y,z==="h"?A:P,!0)},[]),l=p.useCallback(function(y){var w=y;if(!(!Ea.length||Ea[Ea.length-1]!==s)){var x="deltaY"in w?Kw(w):Nu(w),b=e.current.filter(function(_){return _.name===w.type&&_.target===w.target&&ML(_.delta,x)})[0];if(b&&b.should){w.cancelable&&w.preventDefault();return}if(!b){var A=(o.current.shards||[]).map(Qw).filter(Boolean).filter(function(_){return _.contains(w.target)}),P=A.length>0?a(w,A[0]):!o.current.noIsolation;P&&w.cancelable&&w.preventDefault()}}},[]),c=p.useCallback(function(y,w,x,b){var A={name:y,delta:w,target:x,should:b};e.current.push(A),setTimeout(function(){e.current=e.current.filter(function(P){return P!==A})},1)},[]),f=p.useCallback(function(y){r.current=Nu(y),n.current=void 0},[]),u=p.useCallback(function(y){c(y.type,Kw(y),y.target,a(y,t.lockRef.current))},[]),d=p.useCallback(function(y){c(y.type,Nu(y),y.target,a(y,t.lockRef.current))},[]);p.useEffect(function(){return Ea.push(s),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:d}),document.addEventListener("wheel",l,wa),document.addEventListener("touchmove",l,wa),document.addEventListener("touchstart",f,wa),function(){Ea=Ea.filter(function(y){return y!==s}),document.removeEventListener("wheel",l,wa),document.removeEventListener("touchmove",l,wa),document.removeEventListener("touchstart",f,wa)}},[]);var v=t.removeScrollBar,g=t.inert;return p.createElement(p.Fragment,null,g?p.createElement(s,{styles:IL(i)}):null,v?p.createElement(EL,{gapMode:"margin"}):null)}const NL=fL(R8,OL);var ng=p.forwardRef(function(t,e){return p.createElement(o0,Ti({},t,{ref:e,sideCar:NL}))});ng.classNames=o0.classNames;const DL=["Enter"," "],a0="Menu",[LL,Gee,jL]=n0(a0),[ha,O8]=qr(a0,[jL,Ol,Nl]);Ol();const BL=Nl();ha(a0);const[Kee,$L]=ha(a0),FL="MenuPortal";ha(FL,{forceMount:void 0});const UL="MenuContent",[Qee,N8]=ha(UL),Fy="MenuItem",Yw="menu.itemSelect",D8=p.forwardRef((t,e)=>{const{disabled:r=!1,onSelect:n,...i}=t,s=p.useRef(null),o=$L(Fy,t.__scopeMenu),a=N8(Fy,t.__scopeMenu),l=It(e,s),c=p.useRef(!1),f=()=>{const u=s.current;if(!r&&u){const d=new CustomEvent(Yw,{bubbles:!0,cancelable:!0});u.addEventListener(Yw,v=>n==null?void 0:n(v),{once:!0}),qm(u,d),d.defaultPrevented?c.current=!1:o.onClose()}};return p.createElement(zL,Re({},i,{ref:l,disabled:r,onClick:Ce(t.onClick,f),onPointerDown:u=>{var d;(d=t.onPointerDown)===null||d===void 0||d.call(t,u),c.current=!0},onPointerUp:Ce(t.onPointerUp,u=>{var d;c.current||(d=u.currentTarget)===null||d===void 0||d.click()}),onKeyDown:Ce(t.onKeyDown,u=>{const d=a.searchRef.current!=="";r||d&&u.key===" "||DL.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})}))}),zL=p.forwardRef((t,e)=>{const{__scopeMenu:r,disabled:n=!1,textValue:i,...s}=t,o=N8(Fy,r),a=BL(r),l=p.useRef(null),c=It(e,l),[f,u]=p.useState(!1),[d,v]=p.useState("");return p.useEffect(()=>{const g=l.current;if(g){var y;v(((y=g.textContent)!==null&&y!==void 0?y:"").trim())}},[s.children]),p.createElement(LL.ItemSlot,{scope:r,disabled:n,textValue:i??d},p.createElement(A8,Re({asChild:!0},a,{focusable:!n}),p.createElement(Xe.div,Re({role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":n||void 0,"data-disabled":n?"":void 0},s,{ref:c,onPointerMove:Ce(t.onPointerMove,Jw(g=>{n?o.onItemLeave(g):(o.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus())})),onPointerLeave:Ce(t.onPointerLeave,Jw(g=>o.onItemLeave(g))),onFocus:Ce(t.onFocus,()=>u(!0)),onBlur:Ce(t.onBlur,()=>u(!1))}))))}),VL=p.forwardRef((t,e)=>{const{checked:r=!1,onCheckedChange:n,...i}=t;return p.createElement(j8,{scope:t.__scopeMenu,checked:r},p.createElement(D8,Re({role:"menuitemcheckbox","aria-checked":oh(r)?"mixed":r},i,{ref:e,"data-state":ig(r),onSelect:Ce(i.onSelect,()=>n==null?void 0:n(oh(r)?!0:!r),{checkForDefaultPrevented:!1})})))}),qL="MenuRadioGroup",[Yee,HL]=ha(qL,{value:void 0,onValueChange:()=>{}}),WL="MenuRadioItem",GL=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=HL(WL,t.__scopeMenu),s=r===i.value;return p.createElement(j8,{scope:t.__scopeMenu,checked:s},p.createElement(D8,Re({role:"menuitemradio","aria-checked":s},n,{ref:e,"data-state":ig(s),onSelect:Ce(n.onSelect,()=>{var o;return(o=i.onValueChange)===null||o===void 0?void 0:o.call(i,r)},{checkForDefaultPrevented:!1})})))}),L8="MenuItemIndicator",[j8,KL]=ha(L8,{checked:!1}),QL=p.forwardRef((t,e)=>{const{__scopeMenu:r,forceMount:n,...i}=t,s=KL(L8,r);return p.createElement(Eo,{present:n||oh(s.checked)||s.checked===!0},p.createElement(Xe.span,Re({},i,{ref:e,"data-state":ig(s.checked)})))}),YL="MenuSub";ha(YL);function oh(t){return t==="indeterminate"}function ig(t){return oh(t)?"indeterminate":t?"checked":"unchecked"}function Jw(t){return e=>e.pointerType==="mouse"?t(e):void 0}const JL=VL,XL=GL,ZL=QL,B8="DropdownMenu",[ej,Jee]=qr(B8,[O8]),sg=O8();ej(B8);const tj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(JL,Re({},i,n,{ref:e}))}),rj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(XL,Re({},i,n,{ref:e}))}),nj=p.forwardRef((t,e)=>{const{__scopeDropdownMenu:r,...n}=t,i=sg(r);return p.createElement(ZL,Re({},i,n,{ref:e}))}),ij=tj,sj=rj,$8=nj;var F8="_1k2mbvi4 _1k2mbvi3 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1x4 fyvr1yk fyvr1ss fyvr1uo fyvr12ws fyvr12wm fyvr11h0 fyvr11ko fyvr11jw fyvr12v7 fyvr11n4 fyvr11hw fyvr12s7",U8="_1k2mbvi5";const oj=({children:t})=>J.jsx($8,{className:U8,children:t});p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(ij,{className:fn(F8,t),...r,ref:n,children:[J.jsx(oj,{children:J.jsx(XS,{size:"xs"})}),J.jsx(Se,{variant:"small",children:e})]}));p.forwardRef(({className:t,children:e,...r},n)=>J.jsxs(sj,{className:fn(F8,t),...r,ref:n,children:[J.jsx($8,{className:U8,children:J.jsx(Se,{children:"•"})}),J.jsx(Se,{variant:"small",children:e})]}));const og=p.forwardRef((t,e)=>{const{icon:r,size:n="md",...i}=t;return J.jsx(cr,{leftIcon:r,size:n,flexShrink:"0",ref:e,...i})}),aj=(...t)=>e=>t.forEach(r=>{r&&(typeof r=="function"?r(e):r.current=e)});var lj="_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",cj=Qt({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:[]}),fj="_1hq71vka _1hq71vk9 fyvr12wp fyvr12wj fyvr11ho fyvr12vj fyvr1ko fyvr1oo fyvr1mo fyvr1qo";const uj={png:".png,image/png",jpeg:".jpeg,image/jpeg",jpg:".jpg,image/jpg",images:"image/*, video/*",pdf:".pdf,application/pdf",mp4:".mp4,video/mp4"};p.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,...d}=t,v=p.useRef(null),g=aj(v,e),[y,w]=p.useState(null),x=A=>{const P=A.currentTarget.files;if(!P||!P[0])return;const _=P[0],D=_.name,M=_.size/1e3;w({name:D,size:M,extension:D.split(".").pop()??""}),c==null||c(_)},b=u.map(A=>uj[A]).join(",");return J.jsx(Ml,{description:n,disabled:i,display:"grid",id:s??l,label:o,labelLocation:a,children:J.jsxs(ee,{width:"full",minWidth:"0",justifyContent:y?"space-between":"flex-start",gap:"2",color:y?"text100":"text50",className:fn(lj,cj({borderRadius:r})),children:[y?J.jsxs(ee,{flexDirection:"row",gap:"2",alignItems:"center",minWidth:"0",children:[J.jsx(Se,{ellipsis:!0,children:y.name}),J.jsxs(Se,{color:"text50",variant:"xsmall",whiteSpace:"nowrap",children:[y.size.toFixed(2)," kb"]})]}):J.jsx(Se,{ellipsis:!0,children:f}),J.jsx(ee,{accept:b,as:"input",className:fj,cursor:"pointer",disabled:i,id:s??l,name:l,onChange:x,ref:g,type:"file",...d}),y&&J.jsx(og,{cursor:"pointer",icon:Hm,size:"xs",onClick:A=>{var P;A.preventDefault(),A.stopPropagation(),(P=v.current)!=null&&P.value&&(v.current.value=""),c==null||c(null),w(null)},zIndex:"10"})]})})});var dj=Qt({defaultClassName:"_1bhyzin0",variantClassNames:{size:{xs:"_1bhyzin1",sm:"_1bhyzin2",md:"_1bhyzin3",lg:"_1bhyzin4",xl:"_1bhyzin5"}},defaultVariants:{},compoundVariants:[]});const Uy=1e3,rl=64,D1=rl/2,L1=(t,e=Uy)=>t%e/(Uy/rl),_o=(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)},hj=(t,e,r)=>{const n=Math.random().toString(36).slice(2,12),i=t%360,s=(t+120)%360,o=r%360;return{id:_o(n),a:`hsl(${i}deg 100% 40%)`,b:`hsl(${s}deg 100% 50%)`,c:`hsl(${o}deg 100% 50%)`}},vj=(t,e)=>{const r=[];for(let n=0;n{const s=rl/10+L1(n.r,Uy*1.5/(i+1));return{...hj(n.a,n.b,n.c),x:L1(n.x),y:L1(n.y),r:s}})};p.memo(t=>{const{className:e,address:r,size:n="md",complexity:i=1,...s}=t,o=vj(r,i);return J.jsxs(ee,{as:"svg",className:fn(e,dj({size:n})),viewBox:`0 0 ${rl} ${rl}`,version:"1.1",flexShrink:"0",borderRadius:"circle",overflow:"hidden",xmlns:"http://www.w3.org/2000/svg",...s,children:[J.jsxs("defs",{children:[J.jsx("clipPath",{id:"circle-clip",children:J.jsx("circle",{cx:D1,cy:D1,r:D1})}),J.jsxs("filter",{id:"blur",x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[J.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),J.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),J.jsx("feGaussianBlur",{stdDeviation:rl/10,result:"effect1_foregroundBlur"})]}),J.jsxs("linearGradient",{id:`gradient-background-${o[0].id}`,x1:"0",y1:"0",x2:"1",y2:"1",children:[J.jsx("stop",{offset:"0",stopColor:o[0].c}),J.jsx("stop",{offset:"1",stopColor:o[0].a})]}),o.map(a=>J.jsxs(p.Fragment,{children:[J.jsxs("radialGradient",{id:`gradient-primary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.a}),J.jsx("stop",{offset:"1",stopColor:a.b})]}),J.jsxs("radialGradient",{id:`gradient-secondary-${a.id}`,children:[J.jsx("stop",{offset:"0",stopColor:a.c}),J.jsx("stop",{offset:"1",stopColor:a.b})]})]},a.id))]}),J.jsxs("g",{clipPath:"url(#circle-clip)",children:[J.jsx("rect",{width:"100%",height:"100%",fill:`url(#gradient-background-${o[0].id})`}),J.jsx("g",{filter:"url(#blur)",children:o.map(a=>J.jsxs(p.Fragment,{children:[J.jsx("circle",{fill:`url(#gradient-primary-${a.id})`,cx:a.x,cy:a.y,r:a.r}),J.jsx("circle",{fill:`url(#gradient-secondary-${a.id})`,cx:a.y,cy:a.x,r:a.r/2})]},a.id))})]})]})});const yj=t=>{const{disableAnimation:e=!1,onLoad:r,...n}=t,[i,s]=p.useState(!1),o=a=>{s(!0),r==null||r(a)};return J.jsx(ee,{as:el.img,initial:e?void 0:{opacity:0},animate:e?void 0:{opacity:i?1:0},transition:{duration:.2},onLoad:e?void 0:o,...n})},z8="Dialog",[V8,Xee]=qr(z8),[pj,Ao]=V8(z8),mj=t=>{const{__scopeDialog:e,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:o=!0}=t,a=p.useRef(null),l=p.useRef(null),[c=!1,f]=ea({prop:n,defaultProp:i,onChange:s});return p.createElement(pj,{scope:e,triggerRef:a,contentRef:l,contentId:no(),titleId:no(),descriptionId:no(),open:c,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(u=>!u),[f]),modal:o},r)},q8="DialogPortal",[gj,H8]=V8(q8,{forceMount:void 0}),xj=t=>{const{__scopeDialog:e,forceMount:r,children:n,container:i}=t,s=Ao(q8,e);return p.createElement(gj,{scope:e,forceMount:r},p.Children.map(n,o=>p.createElement(Eo,{present:r||s.open},p.createElement(b8,{asChild:!0,container:i},o))))},zy="DialogOverlay",bj=p.forwardRef((t,e)=>{const r=H8(zy,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ao(zy,t.__scopeDialog);return s.modal?p.createElement(Eo,{present:n||s.open},p.createElement(wj,Re({},i,{ref:e}))):null}),wj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ao(zy,r);return p.createElement(ng,{as:gl,allowPinchZoom:!0,shards:[i.contentRef]},p.createElement(Xe.div,Re({"data-state":G8(i.open)},n,{ref:e,style:{pointerEvents:"auto",...n.style}})))}),Cf="DialogContent",Ej=p.forwardRef((t,e)=>{const r=H8(Cf,t.__scopeDialog),{forceMount:n=r.forceMount,...i}=t,s=Ao(Cf,t.__scopeDialog);return p.createElement(Eo,{present:n||s.open},s.modal?p.createElement(Aj,Re({},i,{ref:e})):p.createElement(Sj,Re({},i,{ref:e})))}),Aj=p.forwardRef((t,e)=>{const r=Ao(Cf,t.__scopeDialog),n=p.useRef(null),i=It(e,r.contentRef,n);return p.useEffect(()=>{const s=n.current;if(s)return C8(s)},[]),p.createElement(W8,Re({},t,{ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ce(t.onCloseAutoFocus,s=>{var o;s.preventDefault(),(o=r.triggerRef.current)===null||o===void 0||o.focus()}),onPointerDownOutside:Ce(t.onPointerDownOutside,s=>{const o=s.detail.originalEvent,a=o.button===0&&o.ctrlKey===!0;(o.button===2||a)&&s.preventDefault()}),onFocusOutside:Ce(t.onFocusOutside,s=>s.preventDefault())}))}),Sj=p.forwardRef((t,e)=>{const r=Ao(Cf,t.__scopeDialog),n=p.useRef(!1),i=p.useRef(!1);return p.createElement(W8,Re({},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()}}))}),W8=p.forwardRef((t,e)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,...o}=t,a=Ao(Cf,r),l=p.useRef(null),c=It(e,l);return n8(),p.createElement(p.Fragment,null,p.createElement(i8,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},p.createElement(Qm,Re({role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":G8(a.open)},o,{ref:c,onDismiss:()=>a.onOpenChange(!1)}))),!1)}),Cj="DialogClose",kj=p.forwardRef((t,e)=>{const{__scopeDialog:r,...n}=t,i=Ao(Cj,r);return p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,()=>i.onOpenChange(!1))}))});function G8(t){return t?"open":"closed"}const Pj=mj,Rj=xj,Tj=bj,Mj=Ej,Ij=kj;var _j=Qt({defaultClassName:"_1vqx0w91 _1vqx0w90 fyvr128 fyvr15o",variantClassNames:{direction:{vertical:"_1vqx0w92",horizontal:"_1vqx0w93"}},defaultVariants:{},compoundVariants:[]}),Oj=Qt({defaultClassName:"_1vqx0w94",variantClassNames:{shadows:{true:"_1vqx0w95",false:"_1vqx0w96"},direction:{vertical:"_1vqx0w97",horizontal:"_1vqx0w98"}},defaultVariants:{},compoundVariants:[]});const Nj=t=>{const{children:e,shadows:r=!0,direction:n="vertical",contentProps:i,...s}=t;return J.jsx(ee,{className:Oj({direction:n,shadows:r}),position:"relative",width:"full",height:"full",...s,children:J.jsx(ee,{className:_j({direction:n}),background:"backgroundPrimary",...i,children:e})})};function Dj(t){var e=t.match(/^var\((.*)\)$/);return e?e[1]:t}function Lj(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 K8(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]=K8(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 Xw(t,e,r){t.style.setProperty(Dj(e),r)}function Zw(t,e,r){if(typeof r=="object"){var n=e;K8(r,(a,l)=>{a!=null&&Xw(t,Lj(n,l),String(a))})}else{var i=e;for(var s in i){var o=i[s];o!=null&&Xw(t,s,i[s])}}}const ag=["dark","light"],Q8="dark",jj="data-theme",e3="@sequence.theme",Bj=t=>ag.includes(t),$j=t=>typeof t=="object"&&t!==null&&!Array.isArray(t),Y8=t=>t?`${e3}.${t}`:e3,Fj=t=>{const e=localStorage.getItem(Y8(t));return e&&ag.includes(e)?e:Q8},J8=p.createContext(null),Uj=t=>{const[e,r]=p.useState(t.theme||Q8);p.useEffect(()=>{/Mac/.test(window.navigator.userAgent)&&window.document.documentElement.classList.add("is-apple")},[]),p.useEffect(()=>{t.theme||r(Fj(t.scope))},[t.theme,t.scope]),p.useEffect(()=>{t.theme&&r(t.theme)},[t.theme]),p.useEffect(()=>{const i=document.querySelector(t.root||":root");i&&(Bj(e)?(i.setAttribute(jj,e),Zw(i,Sw,{colors:SO[e]})):$j(e)&&Zw(i,Sw,{colors:e}))},[e,t.root]);const n=p.useMemo(()=>({theme:e,root:t.root,setTheme:i=>{ag.includes(i)&&(localStorage.setItem(Y8(t.scope),i),r(i))}}),[e,t.root,t.scope]);return J.jsx(J8.Provider,{value:n,children:t.children})},X8=()=>{const t=p.useContext(J8);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t};var zj="_5b32m91 _5b32m90 fyvr11jg fyvr11ko fyvr11h0 fyvr11hs fyvr11nk fyvr1ko fyvr1oo fyvr1qo fyvr1mo",Vj="_5b32m93 _5b32m92 fyvr11hs fyvr1ko fyvr1oo fyvr1qo fyvr1mo",qj=Qt({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"]]}),Hj="_5b32m9b _5b32m9a fyvr110o fyvr112o fyvr114o fyvr116o fyvr11ho fyvr1qo fyvr1ko fyvr11nk";const Wj=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}=X8(),[d,v]=p.useState(null);return p.useEffect(()=>{v(document.querySelector(u||"body"))},[u]),d?J.jsx(Pj,{modal:!0,defaultOpen:!0,onOpenChange:o,children:J.jsx(Rj,{forceMount:!0,container:d,children:J.jsxs(ee,{className:zj,children:[J.jsx(ee,{as:Tj,asChild:!0,background:r,className:Vj,forceMount:!0,children:J.jsx(el.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")}),J.jsx(Mj,{asChild:!0,className:qj({autoHeight:e,size:l}),forceMount:!0,onEscapeKeyDown:g=>{s?o==null||o():g.preventDefault()},onInteractOutside:g=>{s||g.preventDefault()},children:J.jsxs(el.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?J.jsx(Nj,{children:n}):n,s&&J.jsx(Ij,{asChild:!0,children:J.jsx(og,{icon:Hm,backdropFilter:"blur",size:"xs",className:Hj,"aria-label":"Close"})})]},"modal-content")})]})})}):null};var Gj="_1acm19y1 _1acm19y0 fyvr11d4 fyvr11ds fyvr11bs fyvr11cg fyvr1ww fyvr1ys fyvr11hc fyvr11ko fyvr11od fyvr12s1 fyvr1g0 fyvr118g",Kj=Qt({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:[]}),Qj=Qt({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 Pr=p.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:d,controls:v,type:g="text",numeric:y=!1,...w}=t;return J.jsx(Ml,{description:s,disabled:o,display:"grid",id:a??d,label:l,labelLocation:c,children:J.jsx(ee,{width:"full",children:J.jsxs(ee,{className:fn(Gj,Kj({borderRadius:i})),children:[f&&J.jsx(f,{size:"sm"}),J.jsx(ee,{as:r,autoComplete:n,spellCheck:"false",className:Qj({numeric:y}),disabled:o,id:a??d,name:d,ref:e,type:g,...w}),u&&J.jsx(u,{size:"sm"}),v]})})})}),Yj=RegExp("^\\d*(?:\\\\[.])?\\d*$");function Jj(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}p.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===""||Yj.test(Jj(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 J.jsx(Pr,{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})});Qt({defaultClassName:"_1jujggt1",variantClassNames:{size:{sm:"_1jujggt2",normal:"_1jujggt3",md:"_1jujggt4",lg:"_1jujggt5",xl:"_1jujggt6"}},defaultVariants:{},compoundVariants:[]});const Z8="Progress",l0=100,[Xj,Zee]=qr(Z8),[Zj,ete]=Xj(Z8),eB=p.forwardRef((t,e)=>{const{__scopeProgress:r,value:n,max:i,getValueLabel:s=tB,...o}=t,a=Vy(i)?i:l0,l=eC(n,a)?n:null,c=ah(l)?s(l,a):void 0;return p.createElement(Zj,{scope:r,value:l,max:a},p.createElement(Xe.div,Kt({"aria-valuemax":a,"aria-valuemin":0,"aria-valuenow":ah(l)?l:void 0,"aria-valuetext":c,role:"progressbar","data-state":rB(l,a),"data-value":l??void 0,"data-max":a},o,{ref:e})))});eB.propTypes={max(t,e,r){const n=t[e],i=String(n);return n&&!Vy(n)?new Error(nB(i,r)):null},value(t,e,r){const n=t[e],i=String(n),s=Vy(t.max)?t.max:l0;return n!=null&&!eC(n,s)?new Error(iB(i,r)):null}};function tB(t,e){return`${Math.round(t/e*100)}%`}function rB(t,e){return t==null?"indeterminate":t===e?"complete":"loading"}function ah(t){return typeof t=="number"}function Vy(t){return ah(t)&&!isNaN(t)&&t>0}function eC(t,e){return ah(t)&&!isNaN(t)&&t<=e&&t>=0}function nB(t,e){return`Invalid prop \`max\` of value \`${t}\` supplied to \`${e}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${l0}\`.`}function iB(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 ${l0} if no \`max\` prop is set) - \`null\` if the progress is indeterminate. -Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=p.useState(null),d=It(e,y=>u(y)),v=p.useRef(!1),g=f?!!f.closest("form"):!0;return p.createElement(oB,{scope:r,checked:i,disabled:o},p.createElement(Xe.button,Kt({type:"button",role:"radio","aria-checked":i,"data-state":nC(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Ce(t.onClick,y=>{i||l==null||l(),g&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),g&&p.createElement(uB,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),cB="RadioIndicator",fB=p.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=aB(cB,r);return p.createElement(wo,{present:n||s.checked},p.createElement(Xe.span,Kt({"data-state":nC(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),uB=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({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 nC(t){return t?"checked":"unchecked"}const dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],iC="RadioGroup",[hB,ete]=qr(iC,[Ol,rC]),sC=Ol(),oC=rC(),[vB,yB]=hB(iC),pB=p.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,...d}=t,v=sC(r),g=Km(c),[y,w]=ea({prop:s,defaultProp:i,onChange:u});return p.createElement(vB,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},p.createElement(JD,Kt({asChild:!0},v,{orientation:l,dir:g,loop:f}),p.createElement(Xe.div,Kt({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},d,{ref:e}))))}),mB="RadioGroupItem",gB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=yB(mB,r),o=s.disabled||n,a=sC(r),l=oC(r),c=p.useRef(null),f=It(e,c),u=s.value===i.value,d=p.useRef(!1);return p.useEffect(()=>{const v=y=>{dB.includes(y.key)&&(d.current=!0)},g=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),p.createElement(AS,Kt({asChild:!0},a,{focusable:!o,active:u}),p.createElement(lB,Kt({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Ce(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Ce(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),xB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=oC(r);return p.createElement(fB,Kt({},i,n,{ref:e}))}),bB=pB,wB=gB,EB=xB;var AB=Qt({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:[]}),SB=Qt({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const CB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return J.jsx(re,{alignItems:"center",children:J.jsx(Tl,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:J.jsx(wB,{className:AB({size:n}),value:i,id:e,disabled:s,children:J.jsx(EB,{className:SB({size:n})})})})})};p.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return J.jsx(bB,{disabled:n,name:s,ref:e,...l,children:J.jsx(re,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>J.jsx(CB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function t3(t,[e,r]){return Math.min(r,Math.max(e,t))}const aC=p.forwardRef((t,e)=>p.createElement(Xe.span,Re({},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}}))),kB=[" ","Enter","ArrowUp","ArrowDown"],PB=[" ","Enter"],c0="Select",[f0,lg,RB]=n0(c0),[Nl,tte]=qr(c0,[RB,_l]),cg=_l(),[TB,va]=Nl(c0),[MB,IB]=Nl(c0),_B=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:d,required:v}=t,g=cg(e),[y,w]=p.useState(null),[x,b]=p.useState(null),[S,P]=p.useState(!1),_=Km(c),[D=!1,M]=ea({prop:n,defaultProp:i,onChange:s}),[L,z]=ea({prop:o,defaultProp:a,onChange:l}),H=p.useRef(null),Y=y?!!y.closest("form"):!0,[Z,O]=p.useState(new Set),h=Array.from(Z).map(A=>A.props.value).join(";");return p.createElement(DD,g,p.createElement(TB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:S,onValueNodeHasChildrenChange:P,contentId:ro(),value:L,onValueChange:z,open:D,onOpenChange:M,dir:_,triggerPointerDownPosRef:H,disabled:d},p.createElement(f0.Provider,{scope:e},p.createElement(MB,{scope:t.__scopeSelect,onNativeOptionAdd:p.useCallback(A=>{O(k=>new Set(k).add(A))},[]),onNativeOptionRemove:p.useCallback(A=>{O(k=>{const I=new Set(k);return I.delete(A),I})},[])},r)),Y?p.createElement(fC,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:L,onChange:A=>z(A.target.value),disabled:d},L===void 0?p.createElement("option",{value:""}):null,Array.from(Z)):null))},OB="SelectTrigger",NB=p.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=cg(r),o=va(OB,r),a=o.disabled||n,l=It(e,o.onTriggerChange),c=lg(r),[f,u,d]=uC(g=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=dC(y,g,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return p.createElement(LD,Re({asChild:!0},s),p.createElement(Xe.button,Re({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":cC(o.value)?"":void 0},i,{ref:l,onClick:Ce(i.onClick,g=>{g.currentTarget.focus()}),onPointerDown:Ce(i.onPointerDown,g=>{const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Ce(i.onKeyDown,g=>{const y=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&u(g.key),!(y&&g.key===" ")&&kB.includes(g.key)&&(v(),g.preventDefault())})})))}),DB="SelectValue",LB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o="",...a}=t,l=va(DB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=It(e,l.onValueNodeChange);return kn(()=>{c(f)},[c,f]),p.createElement(Xe.span,Re({},a,{ref:u,style:{pointerEvents:"none"}}),cC(l.value)?p.createElement(p.Fragment,null,o):s)}),jB=p.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return p.createElement(Xe.span,Re({"aria-hidden":!0},i,{ref:e}),n||"▼")}),xl="SelectContent",BB=p.forwardRef((t,e)=>{const r=va(xl,t.__scopeSelect),[n,i]=p.useState();if(kn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?ks.createPortal(p.createElement(lC,{scope:t.__scopeSelect},p.createElement(f0.Slot,{scope:t.__scopeSelect},p.createElement("div",null,t.children))),s):null}return p.createElement($B,Re({},t,{ref:e}))}),Zi=10,[lC,u0]=Nl(xl),$B=p.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:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=va(xl,r),[S,P]=p.useState(null),[_,D]=p.useState(null),M=It(e,V=>P(V)),[L,z]=p.useState(null),[H,Y]=p.useState(null),Z=lg(r),[O,h]=p.useState(!1),A=p.useRef(!1);p.useEffect(()=>{if(S)return CS(S)},[S]),nS();const k=p.useCallback(V=>{const[q,...K]=Z().map(te=>te.ref.current),[oe]=K.slice(-1),ee=document.activeElement;for(const te of V)if(te===ee||(te==null||te.scrollIntoView({block:"nearest"}),te===q&&_&&(_.scrollTop=0),te===oe&&_&&(_.scrollTop=_.scrollHeight),te==null||te.focus(),document.activeElement!==ee))return},[Z,_]),I=p.useCallback(()=>k([L,S]),[k,L,S]);p.useEffect(()=>{O&&I()},[O,I]);const{onOpenChange:R,triggerPointerDownPosRef:N}=b;p.useEffect(()=>{if(S){let V={x:0,y:0};const q=oe=>{var ee,te,Ie,ue;V={x:Math.abs(Math.round(oe.pageX)-((ee=(te=N.current)===null||te===void 0?void 0:te.x)!==null&&ee!==void 0?ee:0)),y:Math.abs(Math.round(oe.pageY)-((Ie=(ue=N.current)===null||ue===void 0?void 0:ue.y)!==null&&Ie!==void 0?Ie:0))}},K=oe=>{V.x<=10&&V.y<=10?oe.preventDefault():S.contains(oe.target)||R(!1),document.removeEventListener("pointermove",q),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",K,{capture:!0})}}},[S,R,N]),p.useEffect(()=>{const V=()=>R(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[R]);const[j,C]=uC(V=>{const q=Z().filter(ee=>!ee.disabled),K=q.find(ee=>ee.ref.current===document.activeElement),oe=dC(q,V,K);oe&&setTimeout(()=>oe.ref.current.focus())}),m=p.useCallback((V,q,K)=>{const oe=!A.current&&!K;(b.value!==void 0&&b.value===q||oe)&&(z(V),oe&&(A.current=!0))},[b.value]),T=p.useCallback(()=>S==null?void 0:S.focus(),[S]),F=p.useCallback((V,q,K)=>{const oe=!A.current&&!K;(b.value!==void 0&&b.value===q||oe)&&Y(V)},[b.value]),E=n==="popper"?r3:FB,B=E===r3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w}:{};return p.createElement(lC,{scope:r,content:S,viewport:_,onViewportChange:D,itemRefCallback:m,selectedItem:L,onItemLeave:T,itemTextRefCallback:F,focusSelectedItem:I,selectedItemText:H,position:n,isPositioned:O,searchRef:j},p.createElement(ng,{as:ml,allowPinchZoom:!0},p.createElement(iS,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:Ce(i,V=>{var q;(q=b.trigger)===null||q===void 0||q.focus({preventScroll:!0}),V.preventDefault()})},p.createElement(Qm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},p.createElement(E,Re({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault()},x,B,{onPlaced:()=>h(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ce(x.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&C(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let oe=Z().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);if(["ArrowUp","End"].includes(V.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const ee=V.target,te=oe.indexOf(ee);oe=oe.slice(te+1)}setTimeout(()=>k(oe)),V.preventDefault()}})}))))))}),FB=p.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=va(xl,r),o=u0(xl,r),[a,l]=p.useState(null),[c,f]=p.useState(null),u=It(e,M=>f(M)),d=lg(r),v=p.useRef(!1),g=p.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,S=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const M=s.trigger.getBoundingClientRect(),L=c.getBoundingClientRect(),z=s.valueNode.getBoundingClientRect(),H=x.getBoundingClientRect();if(s.dir!=="rtl"){const ee=H.left-L.left,te=z.left-ee,Ie=M.left-te,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(te,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.left=Ve+"px"}else{const ee=L.right-H.right,te=window.innerWidth-z.right-ee,Ie=window.innerWidth-M.right-te,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(te,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.right=Ve+"px"}const Y=d(),Z=window.innerHeight-Zi*2,O=y.scrollHeight,h=window.getComputedStyle(c),A=parseInt(h.borderTopWidth,10),k=parseInt(h.paddingTop,10),I=parseInt(h.borderBottomWidth,10),R=parseInt(h.paddingBottom,10),N=A+k+O+R+I,j=Math.min(w.offsetHeight*5,N),C=window.getComputedStyle(y),m=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),F=M.top+M.height/2-Zi,E=Z-F,B=w.offsetHeight/2,V=w.offsetTop+B,q=A+k+V,K=N-q;if(q<=F){const ee=w===Y[Y.length-1].ref.current;a.style.bottom="0px";const te=c.clientHeight-y.offsetTop-y.offsetHeight,Ie=Math.max(E,B+(ee?T:0)+te+I),ue=q+Ie;a.style.height=ue+"px"}else{const ee=w===Y[0].ref.current;a.style.top="0px";const Ie=Math.max(F,A+y.offsetTop+(ee?m:0)+B)+K;a.style.height=Ie+"px",y.scrollTop=q-F+y.offsetTop}a.style.margin=`${Zi}px 0`,a.style.minHeight=j+"px",a.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);kn(()=>S(),[S]);const[P,_]=p.useState();kn(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=p.useCallback(M=>{M&&g.current===!0&&(S(),b==null||b(),g.current=!1)},[S,b]);return p.createElement(UB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},p.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},p.createElement(Xe.div,Re({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),r3=p.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Zi,...s}=t,o=cg(r);return p.createElement(jD,Re({},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)"}}))}),[UB,zB]=Nl(xl,{}),n3="SelectViewport",VB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=u0(n3,r),s=zB(n3,r),o=It(e,i.onViewportChange),a=p.useRef(0);return p.createElement(p.Fragment,null,p.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}"}}),p.createElement(f0.Slot,{scope:r},p.createElement(Xe.div,Re({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Ce(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-Zi*2,g=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(g,y);if(w0?S:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),qB="SelectGroup",[HB,rte]=Nl(qB),WB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=ro();return p.createElement(HB,{scope:r,id:i},p.createElement(Xe.div,Re({role:"group","aria-labelledby":i},n,{ref:e})))}),qy="SelectItem",[GB,KB]=Nl(qy),QB=p.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=va(qy,r),l=u0(qy,r),c=a.value===n,[f,u]=p.useState(s??""),[d,v]=p.useState(!1),g=It(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=ro(),w=()=>{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 p.createElement(GB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:p.useCallback(x=>{u(b=>{var S;return b||((S=x==null?void 0:x.textContent)!==null&&S!==void 0?S:"").trim()})},[])},p.createElement(f0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},p.createElement(Xe.div,Re({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:g,onFocus:Ce(o.onFocus,()=>v(!0)),onBlur:Ce(o.onBlur,()=>v(!1)),onPointerUp:Ce(o.onPointerUp,w),onPointerMove:Ce(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Ce(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(PB.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),Du="SelectItemText",YB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=va(Du,r),a=u0(Du,r),l=KB(Du,r),c=IB(Du,r),[f,u]=p.useState(null),d=It(e,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,g=p.useMemo(()=>p.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return kn(()=>(y(g),()=>w(g)),[y,w,g]),p.createElement(p.Fragment,null,p.createElement(Xe.span,Re({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ks.createPortal(s.children,o.valueNode):null)});function cC(t){return t===""||t===void 0}const fC=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=p.useRef(null),s=It(e,i),o=zm(r);return p.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]),p.createElement(aC,{asChild:!0},p.createElement("select",Re({},n,{ref:s,defaultValue:r})))});fC.displayName="BubbleSelect";function uC(t){const e=Hn(t),r=p.useRef(""),n=p.useRef(0),i=p.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=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function dC(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=JB(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 JB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const XB=_B,ZB=NB,e$=LB,t$=jB,r$=BB,n$=VB,i$=WB,s$=QB,o$=YB;var a$="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",l$=Qt({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:[]}),c$="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",f$="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 u$=p.forwardRef(({children:t,className:e,...r},n)=>J.jsx(s$,{className:fn(f$,e),...r,ref:n,children:J.jsx(o$,{children:t})})),d0=p.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 J.jsx(Tl,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:J.jsxs(XB,{disabled:n,name:l,...u,children:[J.jsxs(ZB,{id:i??l,className:fn(a$,l$({borderRadius:r})),ref:e,children:[J.jsx(e$,{placeholder:f}),J.jsx(re,{as:t$,display:"inline-flex",children:J.jsx(Z8,{})})]}),J.jsx(r$,{className:c$,children:J.jsx(n$,{children:J.jsx(i$,{children:c.map(({value:d,label:v,...g})=>J.jsx(u$,{value:d,...g,children:v},d))})})})]})})});p.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?J.jsx(og,{icon:Hm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return J.jsx(Pr,{ref:e,name:s,leftIcon:fN,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var d$=Qt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const zi=p.forwardRef((t,e)=>{const{size:r="md",...n}=t;return J.jsx(re,{className:d$({size:r}),color:"text50",ref:e,...n,children:J.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[J.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),J.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});p.forwardRef(({children:t},e)=>J.jsx(re,{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 hC="Switch",[h$,nte]=qr(hC);h$(hC);Qt({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 vC="Tabs",[v$,ite]=qr(vC,[Ol]);Ol();v$(vC);var y$="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";p.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return J.jsxs(re,{className:y$,ref:e,background:"buttonGlass",color:"text80",...i,children:[r&&J.jsx(r,{size:"xs"}),J.jsx(Se,{children:n})]})});const p$="ToastProvider",[m$,ste,g$]=n0("Toast"),[yC,ote]=qr("Toast",[g$]),[ate,pC]=yC(p$),i3="toast.viewportPause",s3="toast.viewportResume",h0="Toast",x$="toast.swipeStart",b$="toast.swipeMove",w$="toast.swipeCancel",E$="toast.swipeEnd",[A$,S$]=yC(h0,{onClose(){}}),C$=p.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:d,onSwipeEnd:v,...g}=t,y=pC(h0,r),[w,x]=p.useState(null),b=It(e,h=>x(h)),S=p.useRef(null),P=p.useRef(null),_=i||y.duration,D=p.useRef(0),M=p.useRef(_),L=p.useRef(0),{onToastAdd:z,onToastRemove:H}=y,Y=Hn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),Z=p.useCallback(h=>{!h||h===1/0||(window.clearTimeout(L.current),D.current=new Date().getTime(),L.current=window.setTimeout(Y,h))},[Y]);p.useEffect(()=>{const h=y.viewport;if(h){const A=()=>{Z(M.current),c==null||c()},k=()=>{const I=new Date().getTime()-D.current;M.current=M.current-I,window.clearTimeout(L.current),l==null||l()};return h.addEventListener(i3,k),h.addEventListener(s3,A),()=>{h.removeEventListener(i3,k),h.removeEventListener(s3,A)}}},[y.viewport,_,l,c,Z]),p.useEffect(()=>{s&&!y.isClosePausedRef.current&&Z(_)},[s,_,y.isClosePausedRef,Z]),p.useEffect(()=>(z(),()=>H()),[z,H]);const O=p.useMemo(()=>w?gC(w):null,[w]);return y.viewport?p.createElement(p.Fragment,null,O&&p.createElement(k$,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},O),p.createElement(A$,{scope:r,onClose:Y},ks.createPortal(p.createElement(m$.ItemSlot,{scope:r},p.createElement(jN,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Y(),y.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Xe.li,Re({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},g,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ce(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:Ce(t.onPointerDown,h=>{h.button===0&&(S.current={x:h.clientX,y:h.clientY})}),onPointerMove:Ce(t.onPointerMove,h=>{if(!S.current)return;const A=h.clientX-S.current.x,k=h.clientY-S.current.y,I=!!P.current,R=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,j=R?N(0,A):0,C=R?0:N(0,k),m=h.pointerType==="touch"?10:2,T={x:j,y:C},F={originalEvent:h,delta:T};I?(P.current=T,Lu(b$,u,F,{discrete:!1})):o3(T,y.swipeDirection,m)?(P.current=T,Lu(x$,f,F,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(A)>m||Math.abs(k)>m)&&(S.current=null)}),onPointerUp:Ce(t.onPointerUp,h=>{const A=P.current,k=h.target;if(k.hasPointerCapture(h.pointerId)&&k.releasePointerCapture(h.pointerId),P.current=null,S.current=null,A){const I=h.currentTarget,R={originalEvent:h,delta:A};o3(A,y.swipeDirection,y.swipeThreshold)?Lu(E$,v,R,{discrete:!0}):Lu(w$,d,R,{discrete:!0}),I.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});C$.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${h0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const k$=t=>{const{__scopeToast:e,children:r,...n}=t,i=pC(h0,e),[s,o]=p.useState(!1),[a,l]=p.useState(!1);return I$(()=>o(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.createElement(bS,{asChild:!0},p.createElement(aC,n,s&&p.createElement(p.Fragment,null,i.label," ",r)))},P$="ToastAction",R$=p.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?p.createElement(mC,{altText:r,asChild:!0},p.createElement(M$,Re({},n,{ref:e}))):null});R$.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${P$}\``)}};const T$="ToastClose",M$=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=S$(T$,r);return p.createElement(mC,{asChild:!0},p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,i.onClose)})))}),mC=p.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return p.createElement(Xe.div,Re({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function gC(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),_$(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(...gC(n))}}),e}function Lu(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?qm(i,s):i.dispatchEvent(s)}const o3=(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 I$(t=()=>{}){const e=Hn(t);kn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function _$(t){return t.nodeType===t.ELEMENT_NODE}Qt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});p.createContext(null);var O$="_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",N$="_15pztn2";p.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:d=!1,...v}=t;return J.jsx(Tl,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:J.jsx(re,{as:r,autoComplete:n,spellCheck:"false",className:fn(O$,d&&N$),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});var D$=Qt({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:[]}),L$="bnrrebf",j$="bnrrebh bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const B$=p.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return J.jsx(re,{className:fn(r,D$({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?J.jsx(yj,{className:L$,disableAnimation:n,src:s}):J.jsx(Se,{className:j$,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})}),[v0,lte]=qr("Tooltip",[_l]);_l();const $$="TooltipProvider";v0($$);const xC="Tooltip";v0(xC);const F$="TooltipPortal";v0(F$,{forceMount:void 0});v0(xC,{isInside:!1});/** +Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.forwardRef((t,e)=>{const{__scopeRadio:r,name:n,checked:i=!1,required:s,disabled:o,value:a="on",onCheck:l,...c}=t,[f,u]=p.useState(null),d=It(e,y=>u(y)),v=p.useRef(!1),g=f?!!f.closest("form"):!0;return p.createElement(oB,{scope:r,checked:i,disabled:o},p.createElement(Xe.button,Kt({type:"button",role:"radio","aria-checked":i,"data-state":nC(i),"data-disabled":o?"":void 0,disabled:o,value:a},c,{ref:d,onClick:Ce(t.onClick,y=>{i||l==null||l(),g&&(v.current=y.isPropagationStopped(),v.current||y.stopPropagation())})})),g&&p.createElement(uB,{control:f,bubbles:!v.current,name:n,value:a,checked:i,required:s,disabled:o,style:{transform:"translateX(-100%)"}}))}),cB="RadioIndicator",fB=p.forwardRef((t,e)=>{const{__scopeRadio:r,forceMount:n,...i}=t,s=aB(cB,r);return p.createElement(Eo,{present:n||s.checked},p.createElement(Xe.span,Kt({"data-state":nC(s.checked),"data-disabled":s.disabled?"":void 0},i,{ref:e})))}),uB=t=>{const{control:e,checked:r,bubbles:n=!0,...i}=t,s=p.useRef(null),o=zm(r),a=Vm(e);return p.useEffect(()=>{const l=s.current,c=window.HTMLInputElement.prototype,u=Object.getOwnPropertyDescriptor(c,"checked").set;if(o!==r&&u){const d=new Event("click",{bubbles:n});u.call(l,r),l.dispatchEvent(d)}},[o,r,n]),p.createElement("input",Kt({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 nC(t){return t?"checked":"unchecked"}const dB=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],iC="RadioGroup",[hB,tte]=qr(iC,[Nl,rC]),sC=Nl(),oC=rC(),[vB,yB]=hB(iC),pB=p.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,...d}=t,v=sC(r),g=Km(c),[y,w]=ea({prop:s,defaultProp:i,onChange:u});return p.createElement(vB,{scope:r,name:n,required:o,disabled:a,value:y,onValueChange:w},p.createElement(JD,Kt({asChild:!0},v,{orientation:l,dir:g,loop:f}),p.createElement(Xe.div,Kt({role:"radiogroup","aria-required":o,"aria-orientation":l,"data-disabled":a?"":void 0,dir:g},d,{ref:e}))))}),mB="RadioGroupItem",gB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,disabled:n,...i}=t,s=yB(mB,r),o=s.disabled||n,a=sC(r),l=oC(r),c=p.useRef(null),f=It(e,c),u=s.value===i.value,d=p.useRef(!1);return p.useEffect(()=>{const v=y=>{dB.includes(y.key)&&(d.current=!0)},g=()=>d.current=!1;return document.addEventListener("keydown",v),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",v),document.removeEventListener("keyup",g)}},[]),p.createElement(A8,Kt({asChild:!0},a,{focusable:!o,active:u}),p.createElement(lB,Kt({disabled:o,required:s.required,checked:u},l,i,{name:s.name,ref:f,onCheck:()=>s.onValueChange(i.value),onKeyDown:Ce(v=>{v.key==="Enter"&&v.preventDefault()}),onFocus:Ce(i.onFocus,()=>{var v;d.current&&((v=c.current)===null||v===void 0||v.click())})})))}),xB=p.forwardRef((t,e)=>{const{__scopeRadioGroup:r,...n}=t,i=oC(r);return p.createElement(fB,Kt({},i,n,{ref:e}))}),bB=pB,wB=gB,EB=xB;var AB=Qt({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:[]}),SB=Qt({defaultClassName:"io59uy8 io59uy7 io59uy6 fyvr11h0 fyvr11ko fyvr11jg fyvr11hw fyvr128 fyvr15o fyvr12s1",variantClassNames:{size:{sm:"io59uy9",lg:"io59uya"}},defaultVariants:{},compoundVariants:[]});const CB=t=>{const{id:e,label:r,size:n="sm",value:i,disabled:s}=t;return J.jsx(ee,{alignItems:"center",children:J.jsx(Ml,{disabled:s,display:"flex",id:e,label:r,labelLocation:"right",children:J.jsx(wB,{className:AB({size:n}),value:i,id:e,disabled:s,children:J.jsx(EB,{className:SB({size:n})})})})})};p.forwardRef((t,e)=>{const{flexDirection:r="column",disabled:n=!1,gap:i="2",name:s,options:o,size:a="sm",...l}=t;return J.jsx(bB,{disabled:n,name:s,ref:e,...l,children:J.jsx(ee,{flexDirection:r,gap:i,children:o.map(({label:c,value:f,disabled:u})=>J.jsx(CB,{id:`${s}-${f}`,label:c,size:a,value:f,disabled:u},f))})})});function t3(t,[e,r]){return Math.min(r,Math.max(e,t))}const aC=p.forwardRef((t,e)=>p.createElement(Xe.span,Re({},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}}))),kB=[" ","Enter","ArrowUp","ArrowDown"],PB=[" ","Enter"],c0="Select",[f0,lg,RB]=n0(c0),[Dl,rte]=qr(c0,[RB,Ol]),cg=Ol(),[TB,va]=Dl(c0),[MB,IB]=Dl(c0),_B=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:d,required:v}=t,g=cg(e),[y,w]=p.useState(null),[x,b]=p.useState(null),[A,P]=p.useState(!1),_=Km(c),[D=!1,M]=ea({prop:n,defaultProp:i,onChange:s}),[L,z]=ea({prop:o,defaultProp:a,onChange:l}),H=p.useRef(null),Y=y?!!y.closest("form"):!0,[Z,O]=p.useState(new Set),h=Array.from(Z).map(S=>S.props.value).join(";");return p.createElement(DD,g,p.createElement(TB,{required:v,scope:e,trigger:y,onTriggerChange:w,valueNode:x,onValueNodeChange:b,valueNodeHasChildren:A,onValueNodeHasChildrenChange:P,contentId:no(),value:L,onValueChange:z,open:D,onOpenChange:M,dir:_,triggerPointerDownPosRef:H,disabled:d},p.createElement(f0.Provider,{scope:e},p.createElement(MB,{scope:t.__scopeSelect,onNativeOptionAdd:p.useCallback(S=>{O(k=>new Set(k).add(S))},[]),onNativeOptionRemove:p.useCallback(S=>{O(k=>{const I=new Set(k);return I.delete(S),I})},[])},r)),Y?p.createElement(fC,{key:h,"aria-hidden":!0,required:v,tabIndex:-1,name:f,autoComplete:u,value:L,onChange:S=>z(S.target.value),disabled:d},L===void 0?p.createElement("option",{value:""}):null,Array.from(Z)):null))},OB="SelectTrigger",NB=p.forwardRef((t,e)=>{const{__scopeSelect:r,disabled:n=!1,...i}=t,s=cg(r),o=va(OB,r),a=o.disabled||n,l=It(e,o.onTriggerChange),c=lg(r),[f,u,d]=uC(g=>{const y=c().filter(b=>!b.disabled),w=y.find(b=>b.value===o.value),x=dC(y,g,w);x!==void 0&&o.onValueChange(x.value)}),v=()=>{a||(o.onOpenChange(!0),d())};return p.createElement(LD,Re({asChild:!0},s),p.createElement(Xe.button,Re({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":cC(o.value)?"":void 0},i,{ref:l,onClick:Ce(i.onClick,g=>{g.currentTarget.focus()}),onPointerDown:Ce(i.onPointerDown,g=>{const y=g.target;y.hasPointerCapture(g.pointerId)&&y.releasePointerCapture(g.pointerId),g.button===0&&g.ctrlKey===!1&&(v(),o.triggerPointerDownPosRef.current={x:Math.round(g.pageX),y:Math.round(g.pageY)},g.preventDefault())}),onKeyDown:Ce(i.onKeyDown,g=>{const y=f.current!=="";!(g.ctrlKey||g.altKey||g.metaKey)&&g.key.length===1&&u(g.key),!(y&&g.key===" ")&&kB.includes(g.key)&&(v(),g.preventDefault())})})))}),DB="SelectValue",LB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,children:s,placeholder:o="",...a}=t,l=va(DB,r),{onValueNodeHasChildrenChange:c}=l,f=s!==void 0,u=It(e,l.onValueNodeChange);return kn(()=>{c(f)},[c,f]),p.createElement(Xe.span,Re({},a,{ref:u,style:{pointerEvents:"none"}}),cC(l.value)?p.createElement(p.Fragment,null,o):s)}),jB=p.forwardRef((t,e)=>{const{__scopeSelect:r,children:n,...i}=t;return p.createElement(Xe.span,Re({"aria-hidden":!0},i,{ref:e}),n||"▼")}),bl="SelectContent",BB=p.forwardRef((t,e)=>{const r=va(bl,t.__scopeSelect),[n,i]=p.useState();if(kn(()=>{i(new DocumentFragment)},[]),!r.open){const s=n;return s?ks.createPortal(p.createElement(lC,{scope:t.__scopeSelect},p.createElement(f0.Slot,{scope:t.__scopeSelect},p.createElement("div",null,t.children))),s):null}return p.createElement($B,Re({},t,{ref:e}))}),Zi=10,[lC,u0]=Dl(bl),$B=p.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:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w,...x}=t,b=va(bl,r),[A,P]=p.useState(null),[_,D]=p.useState(null),M=It(e,V=>P(V)),[L,z]=p.useState(null),[H,Y]=p.useState(null),Z=lg(r),[O,h]=p.useState(!1),S=p.useRef(!1);p.useEffect(()=>{if(A)return C8(A)},[A]),n8();const k=p.useCallback(V=>{const[q,...K]=Z().map(re=>re.ref.current),[oe]=K.slice(-1),te=document.activeElement;for(const re of V)if(re===te||(re==null||re.scrollIntoView({block:"nearest"}),re===q&&_&&(_.scrollTop=0),re===oe&&_&&(_.scrollTop=_.scrollHeight),re==null||re.focus(),document.activeElement!==te))return},[Z,_]),I=p.useCallback(()=>k([L,A]),[k,L,A]);p.useEffect(()=>{O&&I()},[O,I]);const{onOpenChange:R,triggerPointerDownPosRef:N}=b;p.useEffect(()=>{if(A){let V={x:0,y:0};const q=oe=>{var te,re,Ie,ue;V={x:Math.abs(Math.round(oe.pageX)-((te=(re=N.current)===null||re===void 0?void 0:re.x)!==null&&te!==void 0?te:0)),y:Math.abs(Math.round(oe.pageY)-((Ie=(ue=N.current)===null||ue===void 0?void 0:ue.y)!==null&&Ie!==void 0?Ie:0))}},K=oe=>{V.x<=10&&V.y<=10?oe.preventDefault():A.contains(oe.target)||R(!1),document.removeEventListener("pointermove",q),N.current=null};return N.current!==null&&(document.addEventListener("pointermove",q),document.addEventListener("pointerup",K,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",q),document.removeEventListener("pointerup",K,{capture:!0})}}},[A,R,N]),p.useEffect(()=>{const V=()=>R(!1);return window.addEventListener("blur",V),window.addEventListener("resize",V),()=>{window.removeEventListener("blur",V),window.removeEventListener("resize",V)}},[R]);const[B,C]=uC(V=>{const q=Z().filter(te=>!te.disabled),K=q.find(te=>te.ref.current===document.activeElement),oe=dC(q,V,K);oe&&setTimeout(()=>oe.ref.current.focus())}),m=p.useCallback((V,q,K)=>{const oe=!S.current&&!K;(b.value!==void 0&&b.value===q||oe)&&(z(V),oe&&(S.current=!0))},[b.value]),T=p.useCallback(()=>A==null?void 0:A.focus(),[A]),F=p.useCallback((V,q,K)=>{const oe=!S.current&&!K;(b.value!==void 0&&b.value===q||oe)&&Y(V)},[b.value]),E=n==="popper"?r3:FB,$=E===r3?{side:a,sideOffset:l,align:c,alignOffset:f,arrowPadding:u,collisionBoundary:d,collisionPadding:v,sticky:g,hideWhenDetached:y,avoidCollisions:w}:{};return p.createElement(lC,{scope:r,content:A,viewport:_,onViewportChange:D,itemRefCallback:m,selectedItem:L,onItemLeave:T,itemTextRefCallback:F,focusSelectedItem:I,selectedItemText:H,position:n,isPositioned:O,searchRef:B},p.createElement(ng,{as:gl,allowPinchZoom:!0},p.createElement(i8,{asChild:!0,trapped:b.open,onMountAutoFocus:V=>{V.preventDefault()},onUnmountAutoFocus:Ce(i,V=>{var q;(q=b.trigger)===null||q===void 0||q.focus({preventScroll:!0}),V.preventDefault()})},p.createElement(Qm,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:V=>V.preventDefault(),onDismiss:()=>b.onOpenChange(!1)},p.createElement(E,Re({role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:V=>V.preventDefault()},x,$,{onPlaced:()=>h(!0),ref:M,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:Ce(x.onKeyDown,V=>{const q=V.ctrlKey||V.altKey||V.metaKey;if(V.key==="Tab"&&V.preventDefault(),!q&&V.key.length===1&&C(V.key),["ArrowUp","ArrowDown","Home","End"].includes(V.key)){let oe=Z().filter(te=>!te.disabled).map(te=>te.ref.current);if(["ArrowUp","End"].includes(V.key)&&(oe=oe.slice().reverse()),["ArrowUp","ArrowDown"].includes(V.key)){const te=V.target,re=oe.indexOf(te);oe=oe.slice(re+1)}setTimeout(()=>k(oe)),V.preventDefault()}})}))))))}),FB=p.forwardRef((t,e)=>{const{__scopeSelect:r,onPlaced:n,...i}=t,s=va(bl,r),o=u0(bl,r),[a,l]=p.useState(null),[c,f]=p.useState(null),u=It(e,M=>f(M)),d=lg(r),v=p.useRef(!1),g=p.useRef(!0),{viewport:y,selectedItem:w,selectedItemText:x,focusSelectedItem:b}=o,A=p.useCallback(()=>{if(s.trigger&&s.valueNode&&a&&c&&y&&w&&x){const M=s.trigger.getBoundingClientRect(),L=c.getBoundingClientRect(),z=s.valueNode.getBoundingClientRect(),H=x.getBoundingClientRect();if(s.dir!=="rtl"){const te=H.left-L.left,re=z.left-te,Ie=M.left-re,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(re,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.left=Ve+"px"}else{const te=L.right-H.right,re=window.innerWidth-z.right-te,Ie=window.innerWidth-M.right-re,ue=M.width+Ie,we=Math.max(ue,L.width),zt=window.innerWidth-Zi,Ve=t3(re,[Zi,zt-we]);a.style.minWidth=ue+"px",a.style.right=Ve+"px"}const Y=d(),Z=window.innerHeight-Zi*2,O=y.scrollHeight,h=window.getComputedStyle(c),S=parseInt(h.borderTopWidth,10),k=parseInt(h.paddingTop,10),I=parseInt(h.borderBottomWidth,10),R=parseInt(h.paddingBottom,10),N=S+k+O+R+I,B=Math.min(w.offsetHeight*5,N),C=window.getComputedStyle(y),m=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),F=M.top+M.height/2-Zi,E=Z-F,$=w.offsetHeight/2,V=w.offsetTop+$,q=S+k+V,K=N-q;if(q<=F){const te=w===Y[Y.length-1].ref.current;a.style.bottom="0px";const re=c.clientHeight-y.offsetTop-y.offsetHeight,Ie=Math.max(E,$+(te?T:0)+re+I),ue=q+Ie;a.style.height=ue+"px"}else{const te=w===Y[0].ref.current;a.style.top="0px";const Ie=Math.max(F,S+y.offsetTop+(te?m:0)+$)+K;a.style.height=Ie+"px",y.scrollTop=q-F+y.offsetTop}a.style.margin=`${Zi}px 0`,a.style.minHeight=B+"px",a.style.maxHeight=Z+"px",n==null||n(),requestAnimationFrame(()=>v.current=!0)}},[d,s.trigger,s.valueNode,a,c,y,w,x,s.dir,n]);kn(()=>A(),[A]);const[P,_]=p.useState();kn(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);const D=p.useCallback(M=>{M&&g.current===!0&&(A(),b==null||b(),g.current=!1)},[A,b]);return p.createElement(UB,{scope:r,contentWrapper:a,shouldExpandOnScrollRef:v,onScrollButtonChange:D},p.createElement("div",{ref:l,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:P}},p.createElement(Xe.div,Re({},i,{ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}}))))}),r3=p.forwardRef((t,e)=>{const{__scopeSelect:r,align:n="start",collisionPadding:i=Zi,...s}=t,o=cg(r);return p.createElement(jD,Re({},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)"}}))}),[UB,zB]=Dl(bl,{}),n3="SelectViewport",VB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=u0(n3,r),s=zB(n3,r),o=It(e,i.onViewportChange),a=p.useRef(0);return p.createElement(p.Fragment,null,p.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}"}}),p.createElement(f0.Slot,{scope:r},p.createElement(Xe.div,Re({"data-radix-select-viewport":"",role:"presentation"},n,{ref:o,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:Ce(n.onScroll,l=>{const c=l.currentTarget,{contentWrapper:f,shouldExpandOnScrollRef:u}=s;if(u!=null&&u.current&&f){const d=Math.abs(a.current-c.scrollTop);if(d>0){const v=window.innerHeight-Zi*2,g=parseFloat(f.style.minHeight),y=parseFloat(f.style.height),w=Math.max(g,y);if(w0?A:0,f.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),qB="SelectGroup",[HB,nte]=Dl(qB),WB=p.forwardRef((t,e)=>{const{__scopeSelect:r,...n}=t,i=no();return p.createElement(HB,{scope:r,id:i},p.createElement(Xe.div,Re({role:"group","aria-labelledby":i},n,{ref:e})))}),qy="SelectItem",[GB,KB]=Dl(qy),QB=p.forwardRef((t,e)=>{const{__scopeSelect:r,value:n,disabled:i=!1,textValue:s,...o}=t,a=va(qy,r),l=u0(qy,r),c=a.value===n,[f,u]=p.useState(s??""),[d,v]=p.useState(!1),g=It(e,x=>{var b;return(b=l.itemRefCallback)===null||b===void 0?void 0:b.call(l,x,n,i)}),y=no(),w=()=>{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 p.createElement(GB,{scope:r,value:n,disabled:i,textId:y,isSelected:c,onItemTextChange:p.useCallback(x=>{u(b=>{var A;return b||((A=x==null?void 0:x.textContent)!==null&&A!==void 0?A:"").trim()})},[])},p.createElement(f0.ItemSlot,{scope:r,value:n,disabled:i,textValue:f},p.createElement(Xe.div,Re({role:"option","aria-labelledby":y,"data-highlighted":d?"":void 0,"aria-selected":c&&d,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1},o,{ref:g,onFocus:Ce(o.onFocus,()=>v(!0)),onBlur:Ce(o.onBlur,()=>v(!1)),onPointerUp:Ce(o.onPointerUp,w),onPointerMove:Ce(o.onPointerMove,x=>{if(i){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}else x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ce(o.onPointerLeave,x=>{if(x.currentTarget===document.activeElement){var b;(b=l.onItemLeave)===null||b===void 0||b.call(l)}}),onKeyDown:Ce(o.onKeyDown,x=>{var b;((b=l.searchRef)===null||b===void 0?void 0:b.current)!==""&&x.key===" "||(PB.includes(x.key)&&w(),x.key===" "&&x.preventDefault())})}))))}),Du="SelectItemText",YB=p.forwardRef((t,e)=>{const{__scopeSelect:r,className:n,style:i,...s}=t,o=va(Du,r),a=u0(Du,r),l=KB(Du,r),c=IB(Du,r),[f,u]=p.useState(null),d=It(e,x=>u(x),l.onItemTextChange,x=>{var b;return(b=a.itemTextRefCallback)===null||b===void 0?void 0:b.call(a,x,l.value,l.disabled)}),v=f==null?void 0:f.textContent,g=p.useMemo(()=>p.createElement("option",{key:l.value,value:l.value,disabled:l.disabled},v),[l.disabled,l.value,v]),{onNativeOptionAdd:y,onNativeOptionRemove:w}=c;return kn(()=>(y(g),()=>w(g)),[y,w,g]),p.createElement(p.Fragment,null,p.createElement(Xe.span,Re({id:l.textId},s,{ref:d})),l.isSelected&&o.valueNode&&!o.valueNodeHasChildren?ks.createPortal(s.children,o.valueNode):null)});function cC(t){return t===""||t===void 0}const fC=p.forwardRef((t,e)=>{const{value:r,...n}=t,i=p.useRef(null),s=It(e,i),o=zm(r);return p.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]),p.createElement(aC,{asChild:!0},p.createElement("select",Re({},n,{ref:s,defaultValue:r})))});fC.displayName="BubbleSelect";function uC(t){const e=Hn(t),r=p.useRef(""),n=p.useRef(0),i=p.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=p.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,s]}function dC(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=JB(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 JB(t,e){return t.map((r,n)=>t[(e+n)%t.length])}const XB=_B,ZB=NB,e$=LB,t$=jB,r$=BB,n$=VB,i$=WB,s$=QB,o$=YB;var a$="gohwum1 _1qxj1ib9 _1qxj1ibe _1qxj1ib4 fyvr11mv fyvr11eg fyvr11g0 fyvr11fs fyvr11f0 gohwum0 fyvr1t4 fyvr1v0 fyvr1ww fyvr1ys fyvr11ko fyvr11od fyvr11hc fyvr11f4 fyvr12s1 fyvr118c fyvr11jw fyvr11n4 fyvr12v7 fyvr12o1",l$=Qt({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:[]}),c$="gohwuma gohwum9 fyvr11d0 fyvr11do fyvr11bo fyvr11cc fyvr11ls fyvr11m8 fyvr11ms fyvr11tv fyvr12s1 fyvr11nl",f$="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 u$=p.forwardRef(({children:t,className:e,...r},n)=>J.jsx(s$,{className:fn(f$,e),...r,ref:n,children:J.jsx(o$,{children:t})})),d0=p.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 J.jsx(Ml,{disabled:n,display:"grid",id:i??l,label:s,labelLocation:a,description:o,whiteSpace:"nowrap",children:J.jsxs(XB,{disabled:n,name:l,...u,children:[J.jsxs(ZB,{id:i??l,className:fn(a$,l$({borderRadius:r})),ref:e,children:[J.jsx(e$,{placeholder:f}),J.jsx(ee,{as:t$,display:"inline-flex",children:J.jsx(ZS,{})})]}),J.jsx(r$,{className:c$,children:J.jsx(n$,{children:J.jsx(i$,{children:c.map(({value:d,label:v,...g})=>J.jsx(u$,{value:d,...g,children:v},d))})})})]})})});p.forwardRef((t,e)=>{const{controls:r,onChange:n,placeholder:i="Search",name:s="search",value:o,...a}=t,l=o?J.jsx(og,{icon:Hm,size:"xs",onClick:()=>n==null?void 0:n({target:{value:""}})}):void 0;return J.jsx(Pr,{ref:e,name:s,leftIcon:fN,controls:r||l,placeholder:i,value:o,onChange:c=>n==null?void 0:n(c),...a})});var d$=Qt({defaultClassName:"en4abt1",variantClassNames:{size:{sm:"en4abt2",md:"en4abt3",lg:"en4abt4"}},defaultVariants:{},compoundVariants:[]});const vi=p.forwardRef((t,e)=>{const{size:r="md",...n}=t;return J.jsx(ee,{className:d$({size:r}),color:"text50",ref:e,...n,children:J.jsxs("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",children:[J.jsx("circle",{cx:"12",cy:"12",fill:"none",r:"10.5",strokeDasharray:"42",strokeLinecap:"round"}),J.jsx("circle",{cx:"12",cy:"12",fill:"none",opacity:"0.25",r:"10.5",strokeLinecap:"round"})]})})});p.forwardRef(({children:t},e)=>J.jsx(ee,{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 hC="Switch",[h$,ite]=qr(hC);h$(hC);Qt({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 vC="Tabs",[v$,ste]=qr(vC,[Nl]);Nl();v$(vC);var y$="_1ppqbnx1 _1qxj1ib9 _1qxj1ibg _1qxj1ib6 fyvr11mv fyvr11e8 fyvr11fw fyvr11fs fyvr11fc _1ppqbnx0 fyvr11cw fyvr11dk fyvr11bk fyvr11c8 fyvr1wo fyvr1yk fyvr1ss fyvr1uo fyvr11hc fyvr118c fyvr11n9";p.forwardRef((t,e)=>{const{icon:r,label:n,...i}=t;return J.jsxs(ee,{className:y$,ref:e,background:"buttonGlass",color:"text80",...i,children:[r&&J.jsx(r,{size:"xs"}),J.jsx(Se,{children:n})]})});const p$="ToastProvider",[m$,ote,g$]=n0("Toast"),[yC,ate]=qr("Toast",[g$]),[lte,pC]=yC(p$),i3="toast.viewportPause",s3="toast.viewportResume",h0="Toast",x$="toast.swipeStart",b$="toast.swipeMove",w$="toast.swipeCancel",E$="toast.swipeEnd",[A$,S$]=yC(h0,{onClose(){}}),C$=p.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:d,onSwipeEnd:v,...g}=t,y=pC(h0,r),[w,x]=p.useState(null),b=It(e,h=>x(h)),A=p.useRef(null),P=p.useRef(null),_=i||y.duration,D=p.useRef(0),M=p.useRef(_),L=p.useRef(0),{onToastAdd:z,onToastRemove:H}=y,Y=Hn(()=>{var h;(w==null?void 0:w.contains(document.activeElement))&&((h=y.viewport)===null||h===void 0||h.focus()),o()}),Z=p.useCallback(h=>{!h||h===1/0||(window.clearTimeout(L.current),D.current=new Date().getTime(),L.current=window.setTimeout(Y,h))},[Y]);p.useEffect(()=>{const h=y.viewport;if(h){const S=()=>{Z(M.current),c==null||c()},k=()=>{const I=new Date().getTime()-D.current;M.current=M.current-I,window.clearTimeout(L.current),l==null||l()};return h.addEventListener(i3,k),h.addEventListener(s3,S),()=>{h.removeEventListener(i3,k),h.removeEventListener(s3,S)}}},[y.viewport,_,l,c,Z]),p.useEffect(()=>{s&&!y.isClosePausedRef.current&&Z(_)},[s,_,y.isClosePausedRef,Z]),p.useEffect(()=>(z(),()=>H()),[z,H]);const O=p.useMemo(()=>w?gC(w):null,[w]);return y.viewport?p.createElement(p.Fragment,null,O&&p.createElement(k$,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},O),p.createElement(A$,{scope:r,onClose:Y},ks.createPortal(p.createElement(m$.ItemSlot,{scope:r},p.createElement(jN,{asChild:!0,onEscapeKeyDown:Ce(a,()=>{y.isFocusedToastEscapeKeyDownRef.current||Y(),y.isFocusedToastEscapeKeyDownRef.current=!1})},p.createElement(Xe.li,Re({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":y.swipeDirection},g,{ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Ce(t.onKeyDown,h=>{h.key==="Escape"&&(a==null||a(h.nativeEvent),h.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,Y()))}),onPointerDown:Ce(t.onPointerDown,h=>{h.button===0&&(A.current={x:h.clientX,y:h.clientY})}),onPointerMove:Ce(t.onPointerMove,h=>{if(!A.current)return;const S=h.clientX-A.current.x,k=h.clientY-A.current.y,I=!!P.current,R=["left","right"].includes(y.swipeDirection),N=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,B=R?N(0,S):0,C=R?0:N(0,k),m=h.pointerType==="touch"?10:2,T={x:B,y:C},F={originalEvent:h,delta:T};I?(P.current=T,Lu(b$,u,F,{discrete:!1})):o3(T,y.swipeDirection,m)?(P.current=T,Lu(x$,f,F,{discrete:!1}),h.target.setPointerCapture(h.pointerId)):(Math.abs(S)>m||Math.abs(k)>m)&&(A.current=null)}),onPointerUp:Ce(t.onPointerUp,h=>{const S=P.current,k=h.target;if(k.hasPointerCapture(h.pointerId)&&k.releasePointerCapture(h.pointerId),P.current=null,A.current=null,S){const I=h.currentTarget,R={originalEvent:h,delta:S};o3(S,y.swipeDirection,y.swipeThreshold)?Lu(E$,v,R,{discrete:!0}):Lu(w$,d,R,{discrete:!0}),I.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})))),y.viewport))):null});C$.propTypes={type(t){if(t.type&&!["foreground","background"].includes(t.type)){const e=`Invalid prop \`type\` supplied to \`${h0}\`. Expected \`foreground | background\`.`;return new Error(e)}return null}};const k$=t=>{const{__scopeToast:e,children:r,...n}=t,i=pC(h0,e),[s,o]=p.useState(!1),[a,l]=p.useState(!1);return I$(()=>o(!0)),p.useEffect(()=>{const c=window.setTimeout(()=>l(!0),1e3);return()=>window.clearTimeout(c)},[]),a?null:p.createElement(b8,{asChild:!0},p.createElement(aC,n,s&&p.createElement(p.Fragment,null,i.label," ",r)))},P$="ToastAction",R$=p.forwardRef((t,e)=>{const{altText:r,...n}=t;return r?p.createElement(mC,{altText:r,asChild:!0},p.createElement(M$,Re({},n,{ref:e}))):null});R$.propTypes={altText(t){return t.altText?null:new Error(`Missing prop \`altText\` expected on \`${P$}\``)}};const T$="ToastClose",M$=p.forwardRef((t,e)=>{const{__scopeToast:r,...n}=t,i=S$(T$,r);return p.createElement(mC,{asChild:!0},p.createElement(Xe.button,Re({type:"button"},n,{ref:e,onClick:Ce(t.onClick,i.onClose)})))}),mC=p.forwardRef((t,e)=>{const{__scopeToast:r,altText:n,...i}=t;return p.createElement(Xe.div,Re({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},i,{ref:e}))});function gC(t){const e=[];return Array.from(t.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&e.push(n.textContent),_$(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(...gC(n))}}),e}function Lu(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?qm(i,s):i.dispatchEvent(s)}const o3=(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 I$(t=()=>{}){const e=Hn(t);kn(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[e])}function _$(t){return t.nodeType===t.ELEMENT_NODE}Qt({defaultClassName:"_6wut8v3",variantClassNames:{variant:{normal:"_6wut8v4",success:"_6wut8v5",error:"_6wut8v6"}},defaultVariants:{},compoundVariants:[]});p.createContext(null);var O$="_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",N$="_15pztn2";p.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:d=!1,...v}=t;return J.jsx(Ml,{description:s,disabled:o,display:"grid",id:a??f,label:l,labelLocation:c,children:J.jsx(ee,{as:r,autoComplete:n,spellCheck:"false",className:fn(O$,d&&N$),disabled:o,id:a??f,name:f,ref:e,rows:u,borderRadius:i,...v})})});var D$=Qt({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:[]}),L$="bnrrebf",j$="bnrrebh bnrrebg fyvr11dc fyvr11e0 fyvr11c0 fyvr11co fyvr11ls fyvr11m8 fyvr11jg fyvr11ko fyvr11sj fyvr128 fyvr15o fyvr11h0";const B$=p.memo(t=>{const{borderRadius:e="circle",className:r,disableAnimation:n=!1,style:i,src:s,symbol:o,size:a="md",...l}=t;return J.jsx(ee,{className:fn(r,D$({borderRadius:e,size:a})),style:i,flexShrink:"0",...l,children:s?J.jsx(yj,{className:L$,disableAnimation:n,src:s}):J.jsx(Se,{className:j$,variant:"normal",fontWeight:"medium",color:"text50",uppercase:!0,children:o==null?void 0:o.replace(/\s/,"").slice(0,4)})})}),[v0,cte]=qr("Tooltip",[Ol]);Ol();const $$="TooltipProvider";v0($$);const xC="Tooltip";v0(xC);const F$="TooltipPortal";v0(F$,{forceMount:void 0});v0(xC,{isInside:!1});/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -112,8 +112,8 @@ Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Lt(){return Lt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function ra(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function z$(){return Math.random().toString(36).substr(2,8)}function l3(t,e){return{usr:t.state,key:t.key,idx:e}}function kf(t,e,r,n){return r===void 0&&(r=null),Lt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:r,key:e&&e.key||n||z$()})}function Jf(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wi(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function V$(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Zt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(Lt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Zt.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=Zt.Push;let b=kf(y.location,w,x);r&&r(b,w),c=f()+1;let S=l3(b,c),P=y.createHref(b);try{o.pushState(S,"",P)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(P)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Zt.Replace;let b=kf(y.location,w,x);r&&r(b,w),c=f();let S=l3(b,c),P=y.createHref(b);o.replaceState(S,"",P),s&&l&&l({action:a,location:y.location,delta:0})}function g(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:Jf(w);return b=b.replace(/ $/,"%20"),Fe(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return t(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(a3,u),l=w,()=>{i.removeEventListener(a3,u),l=null}},createHref(w){return e(i,w)},createURL:g,encodeLocation(w){let x=g(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var _t;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(_t||(_t={}));const q$=new Set(["lazy","caseSensitive","path","id","index","children"]);function H$(t){return t.index===!0}function Hy(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(Fe(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fe(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),H$(i)){let l=Lt({},i,e(i),{id:a});return n[a]=l,l}else{let l=Lt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=Hy(i.children,e,o,n)),l}})}function qa(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Wi(e):e,i=Xf(n.pathname||"/",r);if(i==null)return null;let s=bC(t);G$(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Fe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ho([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(Fe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),bC(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:eF(c,s.index),routesMeta:f})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of wC(s.path))i(s,o,l)}),e}function wC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=wC(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function G$(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:tF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const K$=/^:[\w-]+$/,Q$=3,Y$=2,J$=1,X$=10,Z$=-2,c3=t=>t==="*";function eF(t,e){let r=t.split("/"),n=r.length;return r.some(c3)&&(n+=Z$),e&&(n+=Y$),r.filter(i=>!c3(i)).reduce((i,s)=>i+(K$.test(s)?Q$:s===""?J$:X$),n)}function tF(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function rF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{let{paramName:d,isOptional:v}=f;if(d==="*"){let y=a[u]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[u];return v&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function iF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),ra(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function sF(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ra(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Xf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function oF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Wi(t):t;return{pathname:r?r.startsWith("/")?r:aF(r,e):e,search:uF(n),hash:dF(i)}}function aF(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function j1(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function EC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function lF(t,e){let r=EC(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function cF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Wi(t):(i=Lt({},t),Fe(!i.pathname||!i.pathname.includes("?"),j1("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),j1("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),j1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let u=e.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=oF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ho=t=>t.join("/").replace(/\/\/+/g,"/"),fF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uF=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dF=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class fg{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ug(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const AC=["post","put","patch","delete"],hF=new Set(AC),vF=["get",...AC],yF=new Set(vF),pF=new Set([301,302,303,307,308]),mF=new Set([307,308]),B1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xF=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),SC="remix-router-transitions";function bF(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Fe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;i=G=>({hasErrorBoundary:U(G)})}else i=xF;let s={},o=Hy(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.unstable_dataStrategy||SF,f=Lt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),u=null,d=new Set,v=null,g=null,y=null,w=t.hydrationData!=null,x=qa(o,t.history.location,l),b=null;if(x==null){let U=Ln(404,{pathname:t.history.location.pathname}),{matches:G,route:Q}=x3(o);x=G,b={[Q.id]:U}}let S,P=x.some(U=>U.route.lazy),_=x.some(U=>U.route.loader);if(P)S=!1;else if(!_)S=!0;else if(f.v7_partialHydration){let U=t.hydrationData?t.hydrationData.loaderData:null,G=t.hydrationData?t.hydrationData.errors:null,Q=ie=>ie.route.loader?typeof ie.route.loader=="function"&&ie.route.loader.hydrate===!0?!1:U&&U[ie.route.id]!==void 0||G&&G[ie.route.id]!==void 0:!0;if(G){let ie=x.findIndex(he=>G[he.route.id]!==void 0);S=x.slice(0,ie+1).every(Q)}else S=x.every(Q)}else S=t.hydrationData!=null;let D,M={historyAction:t.history.action,location:t.history.location,matches:x,initialized:S,navigation:B1,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||b,fetchers:new Map,blockers:new Map},L=Zt.Pop,z=!1,H,Y=!1,Z=new Map,O=null,h=!1,A=!1,k=[],I=[],R=new Map,N=0,j=-1,C=new Map,m=new Set,T=new Map,F=new Map,E=new Set,B=new Map,V=new Map,q=!1;function K(){if(u=t.history.listen(U=>{let{action:G,location:Q,delta:ie}=U;if(q){q=!1;return}ra(V.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let he=vt({currentLocation:M.location,nextLocation:Q,historyAction:G});if(he&&ie!=null){q=!0,t.history.go(ie*-1),In(he,{state:"blocked",location:Q,proceed(){In(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),t.history.go(ie)},reset(){let me=new Map(M.blockers);me.set(he,sc),te({blockers:me})}});return}return zt(G,Q)}),r){LF(e,Z);let U=()=>jF(e,Z);e.addEventListener("pagehide",U),O=()=>e.removeEventListener("pagehide",U)}return M.initialized||zt(Zt.Pop,M.location,{initialHydration:!0}),D}function oe(){u&&u(),O&&O(),d.clear(),H&&H.abort(),M.fetchers.forEach((U,G)=>nt(G)),M.blockers.forEach((U,G)=>ht(G))}function ee(U){return d.add(U),()=>d.delete(U)}function te(U,G){G===void 0&&(G={}),M=Lt({},M,U);let Q=[],ie=[];f.v7_fetcherPersist&&M.fetchers.forEach((he,me)=>{he.state==="idle"&&(E.has(me)?ie.push(me):Q.push(me))}),[...d].forEach(he=>he(M,{deletedFetchers:ie,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),f.v7_fetcherPersist&&(Q.forEach(he=>M.fetchers.delete(he)),ie.forEach(he=>nt(he)))}function Ie(U,G,Q){var ie,he;let{flushSync:me}=Q===void 0?{}:Q,de=M.actionData!=null&&M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&M.navigation.state==="loading"&&((ie=U.state)==null?void 0:ie._isRedirect)!==!0,ye;G.actionData?Object.keys(G.actionData).length>0?ye=G.actionData:ye=null:de?ye=M.actionData:ye=null;let ge=G.loaderData?m3(M.loaderData,G.loaderData,G.matches||[],G.errors):M.loaderData,pe=M.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((ve,Ke)=>pe.set(Ke,sc)));let Rt=z===!0||M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&((he=U.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),h||L===Zt.Pop||(L===Zt.Push?t.history.push(U,U.state):L===Zt.Replace&&t.history.replace(U,U.state));let _e;if(L===Zt.Pop){let ve=Z.get(M.location.pathname);ve&&ve.has(U.pathname)?_e={currentLocation:M.location,nextLocation:U}:Z.has(U.pathname)&&(_e={currentLocation:U,nextLocation:M.location})}else if(Y){let ve=Z.get(M.location.pathname);ve?ve.add(U.pathname):(ve=new Set([U.pathname]),Z.set(M.location.pathname,ve)),_e={currentLocation:M.location,nextLocation:U}}te(Lt({},G,{actionData:ye,loaderData:ge,historyAction:L,location:U,initialized:!0,navigation:B1,revalidation:"idle",restoreScrollPosition:gi(U,G.matches||M.matches),preventScrollReset:Rt,blockers:pe}),{viewTransitionOpts:_e,flushSync:me===!0}),L=Zt.Pop,z=!1,Y=!1,h=!1,A=!1,k=[],I=[]}async function ue(U,G){if(typeof U=="number"){t.history.go(U);return}let Q=Wy(M.location,M.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:ie,submission:he,error:me}=f3(f.v7_normalizeFormMethod,!1,Q,G),de=M.location,ye=kf(M.location,ie,G&&G.state);ye=Lt({},ye,t.history.encodeLocation(ye));let ge=G&&G.replace!=null?G.replace:void 0,pe=Zt.Push;ge===!0?pe=Zt.Replace:ge===!1||he!=null&&li(he.formMethod)&&he.formAction===M.location.pathname+M.location.search&&(pe=Zt.Replace);let Rt=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,_e=(G&&G.unstable_flushSync)===!0,ve=vt({currentLocation:de,nextLocation:ye,historyAction:pe});if(ve){In(ve,{state:"blocked",location:ye,proceed(){In(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ue(U,G)},reset(){let Ke=new Map(M.blockers);Ke.set(ve,sc),te({blockers:Ke})}});return}return await zt(pe,ye,{submission:he,pendingError:me,preventScrollReset:Rt,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:_e})}function we(){if(Xn(),te({revalidation:"loading"}),M.navigation.state!=="submitting"){if(M.navigation.state==="idle"){zt(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}zt(L||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}}async function zt(U,G,Q){H&&H.abort(),H=null,L=U,h=(Q&&Q.startUninterruptedRevalidation)===!0,gt(M.location,M.matches),z=(Q&&Q.preventScrollReset)===!0,Y=(Q&&Q.enableViewTransition)===!0;let ie=a||o,he=Q&&Q.overrideNavigation,me=qa(ie,G,l),de=(Q&&Q.flushSync)===!0;if(!me){let ve=Ln(404,{pathname:G.pathname}),{matches:Ke,route:ke}=x3(ie);lt(),Ie(G,{matches:Ke,loaderData:{},errors:{[ke.id]:ve}},{flushSync:de});return}if(M.initialized&&!A&&MF(M.location,G)&&!(Q&&Q.submission&&li(Q.submission.formMethod))){Ie(G,{matches:me},{flushSync:de});return}H=new AbortController;let ye=Ea(t.history,G,H.signal,Q&&Q.submission),ge;if(Q&&Q.pendingError)ge=[Kc(me).route.id,{type:_t.error,error:Q.pendingError}];else if(Q&&Q.submission&&li(Q.submission.formMethod)){let ve=await Ve(ye,G,Q.submission,me,{replace:Q.replace,flushSync:de});if(ve.shortCircuited)return;ge=ve.pendingActionResult,he=$1(G,Q.submission),de=!1,ye=Ea(t.history,ye.url,ye.signal)}let{shortCircuited:pe,loaderData:Rt,errors:_e}=await ot(ye,G,me,he,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,de,ge);pe||(H=null,Ie(G,Lt({matches:me},g3(ge),{loaderData:Rt,errors:_e})))}async function Ve(U,G,Q,ie,he){he===void 0&&(he={}),Xn();let me=NF(G,Q);te({navigation:me},{flushSync:he.flushSync===!0});let de,ye=Ky(ie,G);if(!ye.route.action&&!ye.route.lazy)de={type:_t.error,error:Ln(405,{method:U.method,pathname:G.pathname,routeId:ye.route.id})};else if(de=(await Ze("action",U,[ye],ie))[0],U.signal.aborted)return{shortCircuited:!0};if(Bo(de)){let ge;return he&&he.replace!=null?ge=he.replace:ge=v3(de.response.headers.get("Location"),new URL(U.url),l)===M.location.pathname+M.location.search,await un(U,de,{submission:Q,replace:ge}),{shortCircuited:!0}}if(jo(de))throw Ln(400,{type:"defer-action"});if(Fn(de)){let ge=Kc(ie,ye.route.id);return(he&&he.replace)!==!0&&(L=Zt.Push),{pendingActionResult:[ge.route.id,de]}}return{pendingActionResult:[ye.route.id,de]}}async function ot(U,G,Q,ie,he,me,de,ye,ge,pe){let Rt=ie||$1(G,he),_e=he||me||E3(Rt),ve=a||o,[Ke,ke]=u3(t.history,M,Q,_e,G,f.v7_partialHydration&&ye===!0,f.unstable_skipActionErrorRevalidation,A,k,I,E,T,m,ve,l,pe);if(lt(De=>!(Q&&Q.some(fr=>fr.route.id===De))||Ke&&Ke.some(fr=>fr.route.id===De)),j=++N,Ke.length===0&&ke.length===0){let De=dt();return Ie(G,Lt({matches:Q,loaderData:{},errors:pe&&Fn(pe[1])?{[pe[0]]:pe[1].error}:null},g3(pe),De?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge}),{shortCircuited:!0}}if(!h&&(!f.v7_partialHydration||!ye)){ke.forEach(fr=>{let Nr=M.fetchers.get(fr.key),Yt=oc(void 0,Nr?Nr.data:void 0);M.fetchers.set(fr.key,Yt)});let De;pe&&!Fn(pe[1])?De={[pe[0]]:pe[1].data}:M.actionData&&(Object.keys(M.actionData).length===0?De=null:De=M.actionData),te(Lt({navigation:Rt},De!==void 0?{actionData:De}:{},ke.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge})}ke.forEach(De=>{R.has(De.key)&&_r(De.key),De.controller&&R.set(De.key,De.controller)});let tt=()=>ke.forEach(De=>_r(De.key));H&&H.signal.addEventListener("abort",tt);let{loaderResults:Or,fetcherResults:Qe}=await ft(M.matches,Q,Ke,ke,U);if(U.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",tt),ke.forEach(De=>R.delete(De.key));let Ye=b3([...Or,...Qe]);if(Ye){if(Ye.idx>=Ke.length){let De=ke[Ye.idx-Ke.length].key;m.add(De)}return await un(U,Ye.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Hr,errors:cr}=p3(M,Q,Ke,Or,pe,ke,Qe,B);B.forEach((De,fr)=>{De.subscribe(Nr=>{(Nr||De.done)&&B.delete(fr)})}),f.v7_partialHydration&&ye&&M.errors&&Object.entries(M.errors).filter(De=>{let[fr]=De;return!Ke.some(Nr=>Nr.route.id===fr)}).forEach(De=>{let[fr,Nr]=De;cr=Object.assign(cr||{},{[fr]:Nr})});let dn=dt(),hn=mi(j),vn=dn||hn||ke.length>0;return Lt({loaderData:Hr,errors:cr},vn?{fetchers:new Map(M.fetchers)}:{})}function Jn(U,G,Q,ie){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(U)&&_r(U);let he=(ie&&ie.unstable_flushSync)===!0,me=a||o,de=Wy(M.location,M.matches,l,f.v7_prependBasename,Q,f.v7_relativeSplatPath,G,ie==null?void 0:ie.relative),ye=qa(me,de,l);if(!ye){et(U,G,Ln(404,{pathname:de}),{flushSync:he});return}let{path:ge,submission:pe,error:Rt}=f3(f.v7_normalizeFormMethod,!0,de,ie);if(Rt){et(U,G,Rt,{flushSync:he});return}let _e=Ky(ye,ge);if(z=(ie&&ie.preventScrollReset)===!0,pe&&li(pe.formMethod)){at(U,G,ge,_e,ye,he,pe);return}T.set(U,{routeId:G,path:ge}),Ge(U,G,ge,_e,ye,he,pe)}async function at(U,G,Q,ie,he,me,de){if(Xn(),T.delete(U),!ie.route.action&&!ie.route.lazy){let Yt=Ln(405,{method:de.formMethod,pathname:Q,routeId:G});et(U,G,Yt,{flushSync:me});return}let ye=M.fetchers.get(U);ze(U,DF(de,ye),{flushSync:me});let ge=new AbortController,pe=Ea(t.history,Q,ge.signal,de);R.set(U,ge);let Rt=N,ve=(await Ze("action",pe,[ie],he))[0];if(pe.signal.aborted){R.get(U)===ge&&R.delete(U);return}if(f.v7_fetcherPersist&&E.has(U)){if(Bo(ve)||Fn(ve)){ze(U,Ds(void 0));return}}else{if(Bo(ve))if(R.delete(U),j>Rt){ze(U,Ds(void 0));return}else return m.add(U),ze(U,oc(de)),un(pe,ve,{fetcherSubmission:de});if(Fn(ve)){et(U,G,ve.error);return}}if(jo(ve))throw Ln(400,{type:"defer-action"});let Ke=M.navigation.location||M.location,ke=Ea(t.history,Ke,ge.signal),tt=a||o,Or=M.navigation.state!=="idle"?qa(tt,M.navigation.location,l):M.matches;Fe(Or,"Didn't find any matches after fetcher action");let Qe=++N;C.set(U,Qe);let Ye=oc(de,ve.data);M.fetchers.set(U,Ye);let[Hr,cr]=u3(t.history,M,Or,de,Ke,!1,f.unstable_skipActionErrorRevalidation,A,k,I,E,T,m,tt,l,[ie.route.id,ve]);cr.filter(Yt=>Yt.key!==U).forEach(Yt=>{let Yi=Yt.key,ma=M.fetchers.get(Yi),Wl=oc(void 0,ma?ma.data:void 0);M.fetchers.set(Yi,Wl),R.has(Yi)&&_r(Yi),Yt.controller&&R.set(Yi,Yt.controller)}),te({fetchers:new Map(M.fetchers)});let dn=()=>cr.forEach(Yt=>_r(Yt.key));ge.signal.addEventListener("abort",dn);let{loaderResults:hn,fetcherResults:vn}=await ft(M.matches,Or,Hr,cr,ke);if(ge.signal.aborted)return;ge.signal.removeEventListener("abort",dn),C.delete(U),R.delete(U),cr.forEach(Yt=>R.delete(Yt.key));let De=b3([...hn,...vn]);if(De){if(De.idx>=Hr.length){let Yt=cr[De.idx-Hr.length].key;m.add(Yt)}return un(ke,De.result)}let{loaderData:fr,errors:Nr}=p3(M,M.matches,Hr,hn,void 0,cr,vn,B);if(M.fetchers.has(U)){let Yt=Ds(ve.data);M.fetchers.set(U,Yt)}mi(Qe),M.navigation.state==="loading"&&Qe>j?(Fe(L,"Expected pending action"),H&&H.abort(),Ie(M.navigation.location,{matches:Or,loaderData:fr,errors:Nr,fetchers:new Map(M.fetchers)})):(te({errors:Nr,loaderData:m3(M.loaderData,fr,Or,Nr),fetchers:new Map(M.fetchers)}),A=!1)}async function Ge(U,G,Q,ie,he,me,de){let ye=M.fetchers.get(U);ze(U,oc(de,ye?ye.data:void 0),{flushSync:me});let ge=new AbortController,pe=Ea(t.history,Q,ge.signal);R.set(U,ge);let Rt=N,ve=(await Ze("loader",pe,[ie],he))[0];if(jo(ve)&&(ve=await RC(ve,pe.signal,!0)||ve),R.get(U)===ge&&R.delete(U),!pe.signal.aborted){if(E.has(U)){ze(U,Ds(void 0));return}if(Bo(ve))if(j>Rt){ze(U,Ds(void 0));return}else{m.add(U),await un(pe,ve);return}if(Fn(ve)){et(U,G,ve.error);return}Fe(!jo(ve),"Unhandled fetcher deferred data"),ze(U,Ds(ve.data))}}async function un(U,G,Q){let{submission:ie,fetcherSubmission:he,replace:me}=Q===void 0?{}:Q;G.response.headers.has("X-Remix-Revalidate")&&(A=!0);let de=G.response.headers.get("Location");Fe(de,"Expected a Location header on the redirect Response"),de=v3(de,new URL(U.url),l);let ye=kf(M.location,de,{_isRedirect:!0});if(r){let Ke=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Ke=!0;else if(dg.test(de)){const ke=t.history.createURL(de);Ke=ke.origin!==e.location.origin||Xf(ke.pathname,l)==null}if(Ke){me?e.location.replace(de):e.location.assign(de);return}}H=null;let ge=me===!0?Zt.Replace:Zt.Push,{formMethod:pe,formAction:Rt,formEncType:_e}=M.navigation;!ie&&!he&&pe&&Rt&&_e&&(ie=E3(M.navigation));let ve=ie||he;if(mF.has(G.response.status)&&ve&&li(ve.formMethod))await zt(ge,ye,{submission:Lt({},ve,{formAction:de}),preventScrollReset:z});else{let Ke=$1(ye,ie);await zt(ge,ye,{overrideNavigation:Ke,fetcherSubmission:he,preventScrollReset:z})}}async function Ze(U,G,Q,ie){try{let he=await CF(c,U,G,Q,ie,s,i);return await Promise.all(he.map((me,de)=>{if(IF(me)){let ye=me.result;return{type:_t.redirect,response:RF(ye,G,Q[de].route.id,ie,l,f.v7_relativeSplatPath)}}return PF(me)}))}catch(he){return Q.map(()=>({type:_t.error,error:he}))}}async function ft(U,G,Q,ie,he){let[me,...de]=await Promise.all([Q.length?Ze("loader",he,Q,G):[],...ie.map(ye=>{if(ye.matches&&ye.match&&ye.controller){let ge=Ea(t.history,ye.path,ye.controller.signal);return Ze("loader",ge,[ye.match],ye.matches).then(pe=>pe[0])}else return Promise.resolve({type:_t.error,error:Ln(404,{pathname:ye.path})})})]);return await Promise.all([w3(U,Q,me,me.map(()=>he.signal),!1,M.loaderData),w3(U,ie.map(ye=>ye.match),de,ie.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{loaderResults:me,fetcherResults:de}}function Xn(){A=!0,k.push(...lt()),T.forEach((U,G)=>{R.has(G)&&(I.push(G),_r(G))})}function ze(U,G,Q){Q===void 0&&(Q={}),M.fetchers.set(U,G),te({fetchers:new Map(M.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function et(U,G,Q,ie){ie===void 0&&(ie={});let he=Kc(M.matches,G);nt(U),te({errors:{[he.route.id]:Q},fetchers:new Map(M.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function pi(U){return f.v7_fetcherPersist&&(F.set(U,(F.get(U)||0)+1),E.has(U)&&E.delete(U)),M.fetchers.get(U)||gF}function nt(U){let G=M.fetchers.get(U);R.has(U)&&!(G&&G.state==="loading"&&C.has(U))&&_r(U),T.delete(U),C.delete(U),m.delete(U),E.delete(U),M.fetchers.delete(U)}function pt(U){if(f.v7_fetcherPersist){let G=(F.get(U)||0)-1;G<=0?(F.delete(U),E.add(U)):F.set(U,G)}else nt(U);te({fetchers:new Map(M.fetchers)})}function _r(U){let G=R.get(U);Fe(G,"Expected fetch controller: "+U),G.abort(),R.delete(U)}function ut(U){for(let G of U){let Q=pi(G),ie=Ds(Q.data);M.fetchers.set(G,ie)}}function dt(){let U=[],G=!1;for(let Q of m){let ie=M.fetchers.get(Q);Fe(ie,"Expected fetcher: "+Q),ie.state==="loading"&&(m.delete(Q),U.push(Q),G=!0)}return ut(U),G}function mi(U){let G=[];for(let[Q,ie]of C)if(ie0}function mt(U,G){let Q=M.blockers.get(U)||sc;return V.get(U)!==G&&V.set(U,G),Q}function ht(U){M.blockers.delete(U),V.delete(U)}function In(U,G){let Q=M.blockers.get(U)||sc;Fe(Q.state==="unblocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="proceeding"||Q.state==="blocked"&&G.state==="unblocked"||Q.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+G.state);let ie=new Map(M.blockers);ie.set(U,G),te({blockers:ie})}function vt(U){let{currentLocation:G,nextLocation:Q,historyAction:ie}=U;if(V.size===0)return;V.size>1&&ra(!1,"A router only supports one blocker at a time");let he=Array.from(V.entries()),[me,de]=he[he.length-1],ye=M.blockers.get(me);if(!(ye&&ye.state==="proceeding")&&de({currentLocation:G,nextLocation:Q,historyAction:ie}))return me}function lt(U){let G=[];return B.forEach((Q,ie)=>{(!U||U(ie))&&(Q.cancel(),G.push(ie),B.delete(ie))}),G}function Qi(U,G,Q){if(v=U,y=G,g=Q||null,!w&&M.navigation===B1){w=!0;let ie=gi(M.location,M.matches);ie!=null&&te({restoreScrollPosition:ie})}return()=>{v=null,y=null,g=null}}function yt(U,G){return g&&g(U,G.map(ie=>W$(ie,M.loaderData)))||U.key}function gt(U,G){if(v&&y){let Q=yt(U,G);v[Q]=y()}}function gi(U,G){if(v){let Q=yt(U,G),ie=v[Q];if(typeof ie=="number")return ie}return null}function xt(U){s={},a=Hy(U,i,void 0,s)}return D={get basename(){return l},get future(){return f},get state(){return M},get routes(){return o},get window(){return e},initialize:K,subscribe:ee,enableScrollRestoration:Qi,navigate:ue,fetch:Jn,revalidate:we,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:pi,deleteFetcher:pt,dispose:oe,getBlocker:mt,deleteBlocker:ht,_internalFetchControllers:R,_internalActiveDeferreds:B,_internalSetRoutes:xt},D}function wF(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Wy(t,e,r,n,i,s,o,a){let l,c;if(o){l=[];for(let u of e)if(l.push(u),u.route.id===o){c=u;break}}else l=e,c=e[e.length-1];let f=cF(i||".",lF(l,s),Xf(t.pathname,r)||t.pathname,a==="path");return i==null&&(f.search=t.search,f.hash=t.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!hg(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:Ho([r,f.pathname])),Jf(f)}function f3(t,e,r,n){if(!n||!wF(n))return{path:r};if(n.formMethod&&!OF(n.formMethod))return{path:r,error:Ln(405,{method:n.formMethod})};let i=()=>({path:r,error:Ln(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=kC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!li(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,w]=g;return""+v+y+"="+w+` -`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!li(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Fe(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Gy(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Gy(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=y3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=y3(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(li(f.formMethod))return{path:r,submission:f};let u=Wi(r);return e&&u.search&&hg(u.search)&&l.append("index",""),u.search="?"+l,{path:Jf(u),submission:f}}function EF(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function u3(t,e,r,n,i,s,o,a,l,c,f,u,d,v,g,y){let w=y?Fn(y[1])?y[1].error:y[1].data:void 0,x=t.createURL(e.location),b=t.createURL(i),S=y&&Fn(y[1])?y[0]:void 0,P=S?EF(r,S):r,_=y?y[1].statusCode:void 0,D=o&&_&&_>=400,M=P.filter((z,H)=>{let{route:Y}=z;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(s)return typeof Y.loader!="function"||Y.loader.hydrate?!0:e.loaderData[Y.id]===void 0&&(!e.errors||e.errors[Y.id]===void 0);if(AF(e.loaderData,e.matches[H],z)||l.some(h=>h===z.route.id))return!0;let Z=e.matches[H],O=z;return d3(z,Lt({currentUrl:x,currentParams:Z.params,nextUrl:b,nextParams:O.params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||CC(Z,O)}))}),L=[];return u.forEach((z,H)=>{if(s||!r.some(A=>A.route.id===z.routeId)||f.has(H))return;let Y=qa(v,z.path,g);if(!Y){L.push({key:H,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let Z=e.fetchers.get(H),O=Ky(Y,z.path),h=!1;d.has(H)?h=!1:c.includes(H)?h=!0:Z&&Z.state!=="idle"&&Z.data===void 0?h=a:h=d3(O,Lt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a})),h&&L.push({key:H,routeId:z.routeId,path:z.path,matches:Y,match:O,controller:new AbortController})}),[M,L]}function AF(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function CC(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function d3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function h3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Fe(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";ra(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!q$.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Lt({},e(i),{lazy:void 0}))}function SF(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function CF(t,e,r,n,i,s,o,a){let l=n.reduce((u,d)=>u.add(d.route.id),new Set),c=new Set,f=await t({matches:i.map(u=>{let d=l.has(u.route.id);return Lt({},u,{shouldLoad:d,resolve:g=>(c.add(u.route.id),d?kF(e,r,u,s,o,g,a):Promise.resolve({type:_t.data,result:void 0}))})}),request:r,params:i[0].params,context:a});return i.forEach(u=>Fe(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,d)=>l.has(i[d].route.id))}async function kF(t,e,r,n,i,s,o){let a,l,c=f=>{let u,d=new Promise((y,w)=>u=w);l=()=>u(),e.signal.addEventListener("abort",l);let v=y=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):f({request:e,params:r.params,context:o},...y!==void 0?[y]:[]),g;return s?g=s(y=>v(y)):g=(async()=>{try{return{type:"data",result:await v()}}catch(y){return{type:"error",result:y}}})(),Promise.race([g,d])};try{let f=r.route[t];if(r.route.lazy)if(f){let u,[d]=await Promise.all([c(f).catch(v=>{u=v}),h3(r.route,i,n)]);if(u!==void 0)throw u;a=d}else if(await h3(r.route,i,n),f=r.route[t],f)a=await c(f);else if(t==="action"){let u=new URL(e.url),d=u.pathname+u.search;throw Ln(405,{method:e.method,pathname:d,routeId:r.route.id})}else return{type:_t.data,result:void 0};else if(f)a=await c(f);else{let u=new URL(e.url),d=u.pathname+u.search;throw Ln(404,{pathname:d})}Fe(a.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:_t.error,result:f}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function PF(t){let{result:e,type:r,status:n}=t;if(PC(e)){let o;try{let a=e.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?e.body==null?o=null:o=await e.json():o=await e.text()}catch(a){return{type:_t.error,error:a}}return r===_t.error?{type:_t.error,error:new fg(e.status,e.statusText,o),statusCode:e.status,headers:e.headers}:{type:_t.data,data:o,statusCode:e.status,headers:e.headers}}if(r===_t.error)return{type:_t.error,error:e,statusCode:ug(e)?e.status:n};if(_F(e)){var i,s;return{type:_t.deferred,deferredData:e,statusCode:(i=e.init)==null?void 0:i.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:_t.data,data:e,statusCode:n}}function RF(t,e,r,n,i,s){let o=t.headers.get("Location");if(Fe(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!dg.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Wy(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function v3(t,e,r){if(dg.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=Xf(i.pathname,r)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function Ea(t,e,r,n){let i=t.createURL(kC(e)).toString(),s={signal:r};if(n&&li(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=Gy(n.formData):s.body=n.formData}return new Request(i,s)}function Gy(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function y3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function TF(t,e,r,n,i,s){let o={},a=null,l,c=!1,f={},u=n&&Fn(n[1])?n[1].error:void 0;return r.forEach((d,v)=>{let g=e[v].route.id;if(Fe(!Bo(d),"Cannot handle redirect results in processLoaderData"),Fn(d)){let y=d.error;if(u!==void 0&&(y=u,u=void 0),a=a||{},s)a[g]=y;else{let w=Kc(t,g);a[w.route.id]==null&&(a[w.route.id]=y)}o[g]=void 0,c||(c=!0,l=ug(d.error)?d.error.status:500),d.headers&&(f[g]=d.headers)}else jo(d)?(i.set(g,d.deferredData),o[g]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers)):(o[g]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:f}}function p3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=TF(e,r,n,i,a,!1);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function x3(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ln(t,e){let{pathname:r,routeId:n,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new fg(t||500,o,new Error(a),!0)}function b3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(Bo(r))return{result:r,idx:e}}}function kC(t){let e=typeof t=="string"?Wi(t):t;return Jf(Lt({},e,{hash:""}))}function MF(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function IF(t){return PC(t.result)&&pF.has(t.result.status)}function jo(t){return t.type===_t.deferred}function Fn(t){return t.type===_t.error}function Bo(t){return(t&&t.type)===_t.redirect}function _F(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function PC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function OF(t){return yF.has(t.toLowerCase())}function li(t){return hF.has(t.toLowerCase())}async function w3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!CC(c,l)&&(s&&s[l.route.id])!==void 0;if(jo(a)&&(i||f)){let u=n[o];Fe(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await RC(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function RC(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:_t.data,data:t.deferredData.unwrappedData}}catch(i){return{type:_t.error,error:i}}return{type:_t.data,data:t.deferredData.data}}}function hg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Ky(t,e){let r=typeof e=="string"?Wi(e).search:e.search;if(t[t.length-1].route.index&&hg(r||""))return t[t.length-1];let n=EC(t);return n[n.length-1]}function E3(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function $1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function NF(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function oc(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DF(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ds(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function LF(t,e){try{let r=t.sessionStorage.getItem(SC);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function jF(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(SC,JSON.stringify(r))}catch(n){ra(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** + */function Lt(){return Lt=Object.assign?Object.assign.bind():function(t){for(var e=1;e"u")throw new Error(e)}function ra(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function z$(){return Math.random().toString(36).substr(2,8)}function l3(t,e){return{usr:t.state,key:t.key,idx:e}}function kf(t,e,r,n){return r===void 0&&(r=null),Lt({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?Wi(e):e,{state:r,key:e&&e.key||n||z$()})}function Jf(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Wi(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function V$(t,e,r,n){n===void 0&&(n={});let{window:i=document.defaultView,v5Compat:s=!1}=n,o=i.history,a=Zt.Pop,l=null,c=f();c==null&&(c=0,o.replaceState(Lt({},o.state,{idx:c}),""));function f(){return(o.state||{idx:null}).idx}function u(){a=Zt.Pop;let w=f(),x=w==null?null:w-c;c=w,l&&l({action:a,location:y.location,delta:x})}function d(w,x){a=Zt.Push;let b=kf(y.location,w,x);r&&r(b,w),c=f()+1;let A=l3(b,c),P=y.createHref(b);try{o.pushState(A,"",P)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;i.location.assign(P)}s&&l&&l({action:a,location:y.location,delta:1})}function v(w,x){a=Zt.Replace;let b=kf(y.location,w,x);r&&r(b,w),c=f();let A=l3(b,c),P=y.createHref(b);o.replaceState(A,"",P),s&&l&&l({action:a,location:y.location,delta:0})}function g(w){let x=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof w=="string"?w:Jf(w);return b=b.replace(/ $/,"%20"),Fe(x,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,x)}let y={get action(){return a},get location(){return t(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(a3,u),l=w,()=>{i.removeEventListener(a3,u),l=null}},createHref(w){return e(i,w)},createURL:g,encodeLocation(w){let x=g(w);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:d,replace:v,go(w){return o.go(w)}};return y}var _t;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(_t||(_t={}));const q$=new Set(["lazy","caseSensitive","path","id","index","children"]);function H$(t){return t.index===!0}function Hy(t,e,r,n){return r===void 0&&(r=[]),n===void 0&&(n={}),t.map((i,s)=>{let o=[...r,s],a=typeof i.id=="string"?i.id:o.join("-");if(Fe(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fe(!n[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),H$(i)){let l=Lt({},i,e(i),{id:a});return n[a]=l,l}else{let l=Lt({},i,e(i),{id:a,children:void 0});return n[a]=l,i.children&&(l.children=Hy(i.children,e,o,n)),l}})}function Ha(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?Wi(e):e,i=Xf(n.pathname||"/",r);if(i==null)return null;let s=bC(t);G$(s);let o=null;for(let a=0;o==null&&a{let l={relativePath:a===void 0?s.path||"":a,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};l.relativePath.startsWith("/")&&(Fe(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Ho([n,l.relativePath]),f=r.concat(l);s.children&&s.children.length>0&&(Fe(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),bC(s.children,e,f,c)),!(s.path==null&&!s.index)&&e.push({path:c,score:eF(c,s.index),routesMeta:f})};return t.forEach((s,o)=>{var a;if(s.path===""||!((a=s.path)!=null&&a.includes("?")))i(s,o);else for(let l of wC(s.path))i(s,o,l)}),e}function wC(t){let e=t.split("/");if(e.length===0)return[];let[r,...n]=e,i=r.endsWith("?"),s=r.replace(/\?$/,"");if(n.length===0)return i?[s,""]:[s];let o=wC(n.join("/")),a=[];return a.push(...o.map(l=>l===""?s:[s,l].join("/"))),i&&a.push(...o),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function G$(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:tF(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const K$=/^:[\w-]+$/,Q$=3,Y$=2,J$=1,X$=10,Z$=-2,c3=t=>t==="*";function eF(t,e){let r=t.split("/"),n=r.length;return r.some(c3)&&(n+=Z$),e&&(n+=Y$),r.filter(i=>!c3(i)).reduce((i,s)=>i+(K$.test(s)?Q$:s===""?J$:X$),n)}function tF(t,e){return t.length===e.length&&t.slice(0,-1).every((n,i)=>n===e[i])?t[t.length-1]-e[e.length-1]:0}function rF(t,e){let{routesMeta:r}=t,n={},i="/",s=[];for(let o=0;o{let{paramName:d,isOptional:v}=f;if(d==="*"){let y=a[u]||"";o=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const g=a[u];return v&&!g?c[d]=void 0:c[d]=(g||"").replace(/%2F/g,"/"),c},{}),pathname:s,pathnameBase:o,pattern:t}}function iF(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),ra(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(n.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(n.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),n]}function sF(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return ra(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function Xf(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function oF(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:i=""}=typeof t=="string"?Wi(t):t;return{pathname:r?r.startsWith("/")?r:aF(r,e):e,search:uF(n),hash:dF(i)}}function aF(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function j1(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function EC(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function lF(t,e){let r=EC(t);return e?r.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function cF(t,e,r,n){n===void 0&&(n=!1);let i;typeof t=="string"?i=Wi(t):(i=Lt({},t),Fe(!i.pathname||!i.pathname.includes("?"),j1("?","pathname","search",i)),Fe(!i.pathname||!i.pathname.includes("#"),j1("#","pathname","hash",i)),Fe(!i.search||!i.search.includes("#"),j1("#","search","hash",i)));let s=t===""||i.pathname==="",o=s?"/":i.pathname,a;if(o==null)a=r;else{let u=e.length-1;if(!n&&o.startsWith("..")){let d=o.split("/");for(;d[0]==="..";)d.shift(),u-=1;i.pathname=d.join("/")}a=u>=0?e[u]:"/"}let l=oF(i,a),c=o&&o!=="/"&&o.endsWith("/"),f=(s||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}const Ho=t=>t.join("/").replace(/\/\/+/g,"/"),fF=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uF=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dF=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class fg{constructor(e,r,n,i){i===void 0&&(i=!1),this.status=e,this.statusText=r||"",this.internal=i,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}}function ug(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const AC=["post","put","patch","delete"],hF=new Set(AC),vF=["get",...AC],yF=new Set(vF),pF=new Set([301,302,303,307,308]),mF=new Set([307,308]),B1={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},gF={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},dg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xF=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),SC="remix-router-transitions";function bF(t){const e=t.window?t.window:typeof window<"u"?window:void 0,r=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",n=!r;Fe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(t.mapRouteProperties)i=t.mapRouteProperties;else if(t.detectErrorBoundary){let U=t.detectErrorBoundary;i=G=>({hasErrorBoundary:U(G)})}else i=xF;let s={},o=Hy(t.routes,i,void 0,s),a,l=t.basename||"/",c=t.unstable_dataStrategy||SF,f=Lt({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,unstable_skipActionErrorRevalidation:!1},t.future),u=null,d=new Set,v=null,g=null,y=null,w=t.hydrationData!=null,x=Ha(o,t.history.location,l),b=null;if(x==null){let U=Ln(404,{pathname:t.history.location.pathname}),{matches:G,route:Q}=x3(o);x=G,b={[Q.id]:U}}let A,P=x.some(U=>U.route.lazy),_=x.some(U=>U.route.loader);if(P)A=!1;else if(!_)A=!0;else if(f.v7_partialHydration){let U=t.hydrationData?t.hydrationData.loaderData:null,G=t.hydrationData?t.hydrationData.errors:null,Q=ie=>ie.route.loader?typeof ie.route.loader=="function"&&ie.route.loader.hydrate===!0?!1:U&&U[ie.route.id]!==void 0||G&&G[ie.route.id]!==void 0:!0;if(G){let ie=x.findIndex(he=>G[he.route.id]!==void 0);A=x.slice(0,ie+1).every(Q)}else A=x.every(Q)}else A=t.hydrationData!=null;let D,M={historyAction:t.history.action,location:t.history.location,matches:x,initialized:A,navigation:B1,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||b,fetchers:new Map,blockers:new Map},L=Zt.Pop,z=!1,H,Y=!1,Z=new Map,O=null,h=!1,S=!1,k=[],I=[],R=new Map,N=0,B=-1,C=new Map,m=new Set,T=new Map,F=new Map,E=new Set,$=new Map,V=new Map,q=!1;function K(){if(u=t.history.listen(U=>{let{action:G,location:Q,delta:ie}=U;if(q){q=!1;return}ra(V.size===0||ie!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let he=vt({currentLocation:M.location,nextLocation:Q,historyAction:G});if(he&&ie!=null){q=!0,t.history.go(ie*-1),In(he,{state:"blocked",location:Q,proceed(){In(he,{state:"proceeding",proceed:void 0,reset:void 0,location:Q}),t.history.go(ie)},reset(){let me=new Map(M.blockers);me.set(he,sc),re({blockers:me})}});return}return zt(G,Q)}),r){LF(e,Z);let U=()=>jF(e,Z);e.addEventListener("pagehide",U),O=()=>e.removeEventListener("pagehide",U)}return M.initialized||zt(Zt.Pop,M.location,{initialHydration:!0}),D}function oe(){u&&u(),O&&O(),d.clear(),H&&H.abort(),M.fetchers.forEach((U,G)=>it(G)),M.blockers.forEach((U,G)=>ht(G))}function te(U){return d.add(U),()=>d.delete(U)}function re(U,G){G===void 0&&(G={}),M=Lt({},M,U);let Q=[],ie=[];f.v7_fetcherPersist&&M.fetchers.forEach((he,me)=>{he.state==="idle"&&(E.has(me)?ie.push(me):Q.push(me))}),[...d].forEach(he=>he(M,{deletedFetchers:ie,unstable_viewTransitionOpts:G.viewTransitionOpts,unstable_flushSync:G.flushSync===!0})),f.v7_fetcherPersist&&(Q.forEach(he=>M.fetchers.delete(he)),ie.forEach(he=>it(he)))}function Ie(U,G,Q){var ie,he;let{flushSync:me}=Q===void 0?{}:Q,de=M.actionData!=null&&M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&M.navigation.state==="loading"&&((ie=U.state)==null?void 0:ie._isRedirect)!==!0,ye;G.actionData?Object.keys(G.actionData).length>0?ye=G.actionData:ye=null:de?ye=M.actionData:ye=null;let ge=G.loaderData?m3(M.loaderData,G.loaderData,G.matches||[],G.errors):M.loaderData,pe=M.blockers;pe.size>0&&(pe=new Map(pe),pe.forEach((ve,Ke)=>pe.set(Ke,sc)));let Rt=z===!0||M.navigation.formMethod!=null&&li(M.navigation.formMethod)&&((he=U.state)==null?void 0:he._isRedirect)!==!0;a&&(o=a,a=void 0),h||L===Zt.Pop||(L===Zt.Push?t.history.push(U,U.state):L===Zt.Replace&&t.history.replace(U,U.state));let _e;if(L===Zt.Pop){let ve=Z.get(M.location.pathname);ve&&ve.has(U.pathname)?_e={currentLocation:M.location,nextLocation:U}:Z.has(U.pathname)&&(_e={currentLocation:U,nextLocation:M.location})}else if(Y){let ve=Z.get(M.location.pathname);ve?ve.add(U.pathname):(ve=new Set([U.pathname]),Z.set(M.location.pathname,ve)),_e={currentLocation:M.location,nextLocation:U}}re(Lt({},G,{actionData:ye,loaderData:ge,historyAction:L,location:U,initialized:!0,navigation:B1,revalidation:"idle",restoreScrollPosition:xi(U,G.matches||M.matches),preventScrollReset:Rt,blockers:pe}),{viewTransitionOpts:_e,flushSync:me===!0}),L=Zt.Pop,z=!1,Y=!1,h=!1,S=!1,k=[],I=[]}async function ue(U,G){if(typeof U=="number"){t.history.go(U);return}let Q=Wy(M.location,M.matches,l,f.v7_prependBasename,U,f.v7_relativeSplatPath,G==null?void 0:G.fromRouteId,G==null?void 0:G.relative),{path:ie,submission:he,error:me}=f3(f.v7_normalizeFormMethod,!1,Q,G),de=M.location,ye=kf(M.location,ie,G&&G.state);ye=Lt({},ye,t.history.encodeLocation(ye));let ge=G&&G.replace!=null?G.replace:void 0,pe=Zt.Push;ge===!0?pe=Zt.Replace:ge===!1||he!=null&&li(he.formMethod)&&he.formAction===M.location.pathname+M.location.search&&(pe=Zt.Replace);let Rt=G&&"preventScrollReset"in G?G.preventScrollReset===!0:void 0,_e=(G&&G.unstable_flushSync)===!0,ve=vt({currentLocation:de,nextLocation:ye,historyAction:pe});if(ve){In(ve,{state:"blocked",location:ye,proceed(){In(ve,{state:"proceeding",proceed:void 0,reset:void 0,location:ye}),ue(U,G)},reset(){let Ke=new Map(M.blockers);Ke.set(ve,sc),re({blockers:Ke})}});return}return await zt(pe,ye,{submission:he,pendingError:me,preventScrollReset:Rt,replace:G&&G.replace,enableViewTransition:G&&G.unstable_viewTransition,flushSync:_e})}function we(){if(Xn(),re({revalidation:"loading"}),M.navigation.state!=="submitting"){if(M.navigation.state==="idle"){zt(M.historyAction,M.location,{startUninterruptedRevalidation:!0});return}zt(L||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation})}}async function zt(U,G,Q){H&&H.abort(),H=null,L=U,h=(Q&&Q.startUninterruptedRevalidation)===!0,gt(M.location,M.matches),z=(Q&&Q.preventScrollReset)===!0,Y=(Q&&Q.enableViewTransition)===!0;let ie=a||o,he=Q&&Q.overrideNavigation,me=Ha(ie,G,l),de=(Q&&Q.flushSync)===!0;if(!me){let ve=Ln(404,{pathname:G.pathname}),{matches:Ke,route:ke}=x3(ie);lt(),Ie(G,{matches:Ke,loaderData:{},errors:{[ke.id]:ve}},{flushSync:de});return}if(M.initialized&&!S&&MF(M.location,G)&&!(Q&&Q.submission&&li(Q.submission.formMethod))){Ie(G,{matches:me},{flushSync:de});return}H=new AbortController;let ye=Aa(t.history,G,H.signal,Q&&Q.submission),ge;if(Q&&Q.pendingError)ge=[Kc(me).route.id,{type:_t.error,error:Q.pendingError}];else if(Q&&Q.submission&&li(Q.submission.formMethod)){let ve=await Ve(ye,G,Q.submission,me,{replace:Q.replace,flushSync:de});if(ve.shortCircuited)return;ge=ve.pendingActionResult,he=$1(G,Q.submission),de=!1,ye=Aa(t.history,ye.url,ye.signal)}let{shortCircuited:pe,loaderData:Rt,errors:_e}=await ot(ye,G,me,he,Q&&Q.submission,Q&&Q.fetcherSubmission,Q&&Q.replace,Q&&Q.initialHydration===!0,de,ge);pe||(H=null,Ie(G,Lt({matches:me},g3(ge),{loaderData:Rt,errors:_e})))}async function Ve(U,G,Q,ie,he){he===void 0&&(he={}),Xn();let me=NF(G,Q);re({navigation:me},{flushSync:he.flushSync===!0});let de,ye=Ky(ie,G);if(!ye.route.action&&!ye.route.lazy)de={type:_t.error,error:Ln(405,{method:U.method,pathname:G.pathname,routeId:ye.route.id})};else if(de=(await Ze("action",U,[ye],ie))[0],U.signal.aborted)return{shortCircuited:!0};if(Bo(de)){let ge;return he&&he.replace!=null?ge=he.replace:ge=v3(de.response.headers.get("Location"),new URL(U.url),l)===M.location.pathname+M.location.search,await un(U,de,{submission:Q,replace:ge}),{shortCircuited:!0}}if(jo(de))throw Ln(400,{type:"defer-action"});if(Fn(de)){let ge=Kc(ie,ye.route.id);return(he&&he.replace)!==!0&&(L=Zt.Push),{pendingActionResult:[ge.route.id,de]}}return{pendingActionResult:[ye.route.id,de]}}async function ot(U,G,Q,ie,he,me,de,ye,ge,pe){let Rt=ie||$1(G,he),_e=he||me||E3(Rt),ve=a||o,[Ke,ke]=u3(t.history,M,Q,_e,G,f.v7_partialHydration&&ye===!0,f.unstable_skipActionErrorRevalidation,S,k,I,E,T,m,ve,l,pe);if(lt(De=>!(Q&&Q.some(ur=>ur.route.id===De))||Ke&&Ke.some(ur=>ur.route.id===De)),B=++N,Ke.length===0&&ke.length===0){let De=dt();return Ie(G,Lt({matches:Q,loaderData:{},errors:pe&&Fn(pe[1])?{[pe[0]]:pe[1].error}:null},g3(pe),De?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge}),{shortCircuited:!0}}if(!h&&(!f.v7_partialHydration||!ye)){ke.forEach(ur=>{let Nr=M.fetchers.get(ur.key),Yt=oc(void 0,Nr?Nr.data:void 0);M.fetchers.set(ur.key,Yt)});let De;pe&&!Fn(pe[1])?De={[pe[0]]:pe[1].data}:M.actionData&&(Object.keys(M.actionData).length===0?De=null:De=M.actionData),re(Lt({navigation:Rt},De!==void 0?{actionData:De}:{},ke.length>0?{fetchers:new Map(M.fetchers)}:{}),{flushSync:ge})}ke.forEach(De=>{R.has(De.key)&&_r(De.key),De.controller&&R.set(De.key,De.controller)});let tt=()=>ke.forEach(De=>_r(De.key));H&&H.signal.addEventListener("abort",tt);let{loaderResults:Or,fetcherResults:Qe}=await ft(M.matches,Q,Ke,ke,U);if(U.signal.aborted)return{shortCircuited:!0};H&&H.signal.removeEventListener("abort",tt),ke.forEach(De=>R.delete(De.key));let Ye=b3([...Or,...Qe]);if(Ye){if(Ye.idx>=Ke.length){let De=ke[Ye.idx-Ke.length].key;m.add(De)}return await un(U,Ye.result,{replace:de}),{shortCircuited:!0}}let{loaderData:Hr,errors:fr}=p3(M,Q,Ke,Or,pe,ke,Qe,$);$.forEach((De,ur)=>{De.subscribe(Nr=>{(Nr||De.done)&&$.delete(ur)})}),f.v7_partialHydration&&ye&&M.errors&&Object.entries(M.errors).filter(De=>{let[ur]=De;return!Ke.some(Nr=>Nr.route.id===ur)}).forEach(De=>{let[ur,Nr]=De;fr=Object.assign(fr||{},{[ur]:Nr})});let dn=dt(),hn=gi(B),vn=dn||hn||ke.length>0;return Lt({loaderData:Hr,errors:fr},vn?{fetchers:new Map(M.fetchers)}:{})}function Jn(U,G,Q,ie){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");R.has(U)&&_r(U);let he=(ie&&ie.unstable_flushSync)===!0,me=a||o,de=Wy(M.location,M.matches,l,f.v7_prependBasename,Q,f.v7_relativeSplatPath,G,ie==null?void 0:ie.relative),ye=Ha(me,de,l);if(!ye){et(U,G,Ln(404,{pathname:de}),{flushSync:he});return}let{path:ge,submission:pe,error:Rt}=f3(f.v7_normalizeFormMethod,!0,de,ie);if(Rt){et(U,G,Rt,{flushSync:he});return}let _e=Ky(ye,ge);if(z=(ie&&ie.preventScrollReset)===!0,pe&&li(pe.formMethod)){at(U,G,ge,_e,ye,he,pe);return}T.set(U,{routeId:G,path:ge}),Ge(U,G,ge,_e,ye,he,pe)}async function at(U,G,Q,ie,he,me,de){if(Xn(),T.delete(U),!ie.route.action&&!ie.route.lazy){let Yt=Ln(405,{method:de.formMethod,pathname:Q,routeId:G});et(U,G,Yt,{flushSync:me});return}let ye=M.fetchers.get(U);ze(U,DF(de,ye),{flushSync:me});let ge=new AbortController,pe=Aa(t.history,Q,ge.signal,de);R.set(U,ge);let Rt=N,ve=(await Ze("action",pe,[ie],he))[0];if(pe.signal.aborted){R.get(U)===ge&&R.delete(U);return}if(f.v7_fetcherPersist&&E.has(U)){if(Bo(ve)||Fn(ve)){ze(U,Ls(void 0));return}}else{if(Bo(ve))if(R.delete(U),B>Rt){ze(U,Ls(void 0));return}else return m.add(U),ze(U,oc(de)),un(pe,ve,{fetcherSubmission:de});if(Fn(ve)){et(U,G,ve.error);return}}if(jo(ve))throw Ln(400,{type:"defer-action"});let Ke=M.navigation.location||M.location,ke=Aa(t.history,Ke,ge.signal),tt=a||o,Or=M.navigation.state!=="idle"?Ha(tt,M.navigation.location,l):M.matches;Fe(Or,"Didn't find any matches after fetcher action");let Qe=++N;C.set(U,Qe);let Ye=oc(de,ve.data);M.fetchers.set(U,Ye);let[Hr,fr]=u3(t.history,M,Or,de,Ke,!1,f.unstable_skipActionErrorRevalidation,S,k,I,E,T,m,tt,l,[ie.route.id,ve]);fr.filter(Yt=>Yt.key!==U).forEach(Yt=>{let Yi=Yt.key,ma=M.fetchers.get(Yi),Gl=oc(void 0,ma?ma.data:void 0);M.fetchers.set(Yi,Gl),R.has(Yi)&&_r(Yi),Yt.controller&&R.set(Yi,Yt.controller)}),re({fetchers:new Map(M.fetchers)});let dn=()=>fr.forEach(Yt=>_r(Yt.key));ge.signal.addEventListener("abort",dn);let{loaderResults:hn,fetcherResults:vn}=await ft(M.matches,Or,Hr,fr,ke);if(ge.signal.aborted)return;ge.signal.removeEventListener("abort",dn),C.delete(U),R.delete(U),fr.forEach(Yt=>R.delete(Yt.key));let De=b3([...hn,...vn]);if(De){if(De.idx>=Hr.length){let Yt=fr[De.idx-Hr.length].key;m.add(Yt)}return un(ke,De.result)}let{loaderData:ur,errors:Nr}=p3(M,M.matches,Hr,hn,void 0,fr,vn,$);if(M.fetchers.has(U)){let Yt=Ls(ve.data);M.fetchers.set(U,Yt)}gi(Qe),M.navigation.state==="loading"&&Qe>B?(Fe(L,"Expected pending action"),H&&H.abort(),Ie(M.navigation.location,{matches:Or,loaderData:ur,errors:Nr,fetchers:new Map(M.fetchers)})):(re({errors:Nr,loaderData:m3(M.loaderData,ur,Or,Nr),fetchers:new Map(M.fetchers)}),S=!1)}async function Ge(U,G,Q,ie,he,me,de){let ye=M.fetchers.get(U);ze(U,oc(de,ye?ye.data:void 0),{flushSync:me});let ge=new AbortController,pe=Aa(t.history,Q,ge.signal);R.set(U,ge);let Rt=N,ve=(await Ze("loader",pe,[ie],he))[0];if(jo(ve)&&(ve=await RC(ve,pe.signal,!0)||ve),R.get(U)===ge&&R.delete(U),!pe.signal.aborted){if(E.has(U)){ze(U,Ls(void 0));return}if(Bo(ve))if(B>Rt){ze(U,Ls(void 0));return}else{m.add(U),await un(pe,ve);return}if(Fn(ve)){et(U,G,ve.error);return}Fe(!jo(ve),"Unhandled fetcher deferred data"),ze(U,Ls(ve.data))}}async function un(U,G,Q){let{submission:ie,fetcherSubmission:he,replace:me}=Q===void 0?{}:Q;G.response.headers.has("X-Remix-Revalidate")&&(S=!0);let de=G.response.headers.get("Location");Fe(de,"Expected a Location header on the redirect Response"),de=v3(de,new URL(U.url),l);let ye=kf(M.location,de,{_isRedirect:!0});if(r){let Ke=!1;if(G.response.headers.has("X-Remix-Reload-Document"))Ke=!0;else if(dg.test(de)){const ke=t.history.createURL(de);Ke=ke.origin!==e.location.origin||Xf(ke.pathname,l)==null}if(Ke){me?e.location.replace(de):e.location.assign(de);return}}H=null;let ge=me===!0?Zt.Replace:Zt.Push,{formMethod:pe,formAction:Rt,formEncType:_e}=M.navigation;!ie&&!he&&pe&&Rt&&_e&&(ie=E3(M.navigation));let ve=ie||he;if(mF.has(G.response.status)&&ve&&li(ve.formMethod))await zt(ge,ye,{submission:Lt({},ve,{formAction:de}),preventScrollReset:z});else{let Ke=$1(ye,ie);await zt(ge,ye,{overrideNavigation:Ke,fetcherSubmission:he,preventScrollReset:z})}}async function Ze(U,G,Q,ie){try{let he=await CF(c,U,G,Q,ie,s,i);return await Promise.all(he.map((me,de)=>{if(IF(me)){let ye=me.result;return{type:_t.redirect,response:RF(ye,G,Q[de].route.id,ie,l,f.v7_relativeSplatPath)}}return PF(me)}))}catch(he){return Q.map(()=>({type:_t.error,error:he}))}}async function ft(U,G,Q,ie,he){let[me,...de]=await Promise.all([Q.length?Ze("loader",he,Q,G):[],...ie.map(ye=>{if(ye.matches&&ye.match&&ye.controller){let ge=Aa(t.history,ye.path,ye.controller.signal);return Ze("loader",ge,[ye.match],ye.matches).then(pe=>pe[0])}else return Promise.resolve({type:_t.error,error:Ln(404,{pathname:ye.path})})})]);return await Promise.all([w3(U,Q,me,me.map(()=>he.signal),!1,M.loaderData),w3(U,ie.map(ye=>ye.match),de,ie.map(ye=>ye.controller?ye.controller.signal:null),!0)]),{loaderResults:me,fetcherResults:de}}function Xn(){S=!0,k.push(...lt()),T.forEach((U,G)=>{R.has(G)&&(I.push(G),_r(G))})}function ze(U,G,Q){Q===void 0&&(Q={}),M.fetchers.set(U,G),re({fetchers:new Map(M.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function et(U,G,Q,ie){ie===void 0&&(ie={});let he=Kc(M.matches,G);it(U),re({errors:{[he.route.id]:Q},fetchers:new Map(M.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function mi(U){return f.v7_fetcherPersist&&(F.set(U,(F.get(U)||0)+1),E.has(U)&&E.delete(U)),M.fetchers.get(U)||gF}function it(U){let G=M.fetchers.get(U);R.has(U)&&!(G&&G.state==="loading"&&C.has(U))&&_r(U),T.delete(U),C.delete(U),m.delete(U),E.delete(U),M.fetchers.delete(U)}function pt(U){if(f.v7_fetcherPersist){let G=(F.get(U)||0)-1;G<=0?(F.delete(U),E.add(U)):F.set(U,G)}else it(U);re({fetchers:new Map(M.fetchers)})}function _r(U){let G=R.get(U);Fe(G,"Expected fetch controller: "+U),G.abort(),R.delete(U)}function ut(U){for(let G of U){let Q=mi(G),ie=Ls(Q.data);M.fetchers.set(G,ie)}}function dt(){let U=[],G=!1;for(let Q of m){let ie=M.fetchers.get(Q);Fe(ie,"Expected fetcher: "+Q),ie.state==="loading"&&(m.delete(Q),U.push(Q),G=!0)}return ut(U),G}function gi(U){let G=[];for(let[Q,ie]of C)if(ie0}function mt(U,G){let Q=M.blockers.get(U)||sc;return V.get(U)!==G&&V.set(U,G),Q}function ht(U){M.blockers.delete(U),V.delete(U)}function In(U,G){let Q=M.blockers.get(U)||sc;Fe(Q.state==="unblocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="blocked"||Q.state==="blocked"&&G.state==="proceeding"||Q.state==="blocked"&&G.state==="unblocked"||Q.state==="proceeding"&&G.state==="unblocked","Invalid blocker state transition: "+Q.state+" -> "+G.state);let ie=new Map(M.blockers);ie.set(U,G),re({blockers:ie})}function vt(U){let{currentLocation:G,nextLocation:Q,historyAction:ie}=U;if(V.size===0)return;V.size>1&&ra(!1,"A router only supports one blocker at a time");let he=Array.from(V.entries()),[me,de]=he[he.length-1],ye=M.blockers.get(me);if(!(ye&&ye.state==="proceeding")&&de({currentLocation:G,nextLocation:Q,historyAction:ie}))return me}function lt(U){let G=[];return $.forEach((Q,ie)=>{(!U||U(ie))&&(Q.cancel(),G.push(ie),$.delete(ie))}),G}function Qi(U,G,Q){if(v=U,y=G,g=Q||null,!w&&M.navigation===B1){w=!0;let ie=xi(M.location,M.matches);ie!=null&&re({restoreScrollPosition:ie})}return()=>{v=null,y=null,g=null}}function yt(U,G){return g&&g(U,G.map(ie=>W$(ie,M.loaderData)))||U.key}function gt(U,G){if(v&&y){let Q=yt(U,G);v[Q]=y()}}function xi(U,G){if(v){let Q=yt(U,G),ie=v[Q];if(typeof ie=="number")return ie}return null}function xt(U){s={},a=Hy(U,i,void 0,s)}return D={get basename(){return l},get future(){return f},get state(){return M},get routes(){return o},get window(){return e},initialize:K,subscribe:te,enableScrollRestoration:Qi,navigate:ue,fetch:Jn,revalidate:we,createHref:U=>t.history.createHref(U),encodeLocation:U=>t.history.encodeLocation(U),getFetcher:mi,deleteFetcher:pt,dispose:oe,getBlocker:mt,deleteBlocker:ht,_internalFetchControllers:R,_internalActiveDeferreds:$,_internalSetRoutes:xt},D}function wF(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function Wy(t,e,r,n,i,s,o,a){let l,c;if(o){l=[];for(let u of e)if(l.push(u),u.route.id===o){c=u;break}}else l=e,c=e[e.length-1];let f=cF(i||".",lF(l,s),Xf(t.pathname,r)||t.pathname,a==="path");return i==null&&(f.search=t.search,f.hash=t.hash),(i==null||i===""||i===".")&&c&&c.route.index&&!hg(f.search)&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),n&&r!=="/"&&(f.pathname=f.pathname==="/"?r:Ho([r,f.pathname])),Jf(f)}function f3(t,e,r,n){if(!n||!wF(n))return{path:r};if(n.formMethod&&!OF(n.formMethod))return{path:r,error:Ln(405,{method:n.formMethod})};let i=()=>({path:r,error:Ln(400,{type:"invalid-body"})}),s=n.formMethod||"get",o=t?s.toUpperCase():s.toLowerCase(),a=kC(r);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!li(o))return i();let d=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((v,g)=>{let[y,w]=g;return""+v+y+"="+w+` +`},""):String(n.body);return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:d}}}else if(n.formEncType==="application/json"){if(!li(o))return i();try{let d=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:o,formAction:a,formEncType:n.formEncType,formData:void 0,json:d,text:void 0}}}catch{return i()}}}Fe(typeof FormData=="function","FormData is not available in this environment");let l,c;if(n.formData)l=Gy(n.formData),c=n.formData;else if(n.body instanceof FormData)l=Gy(n.body),c=n.body;else if(n.body instanceof URLSearchParams)l=n.body,c=y3(l);else if(n.body==null)l=new URLSearchParams,c=new FormData;else try{l=new URLSearchParams(n.body),c=y3(l)}catch{return i()}let f={formMethod:o,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:c,json:void 0,text:void 0};if(li(f.formMethod))return{path:r,submission:f};let u=Wi(r);return e&&u.search&&hg(u.search)&&l.append("index",""),u.search="?"+l,{path:Jf(u),submission:f}}function EF(t,e){let r=t;if(e){let n=t.findIndex(i=>i.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function u3(t,e,r,n,i,s,o,a,l,c,f,u,d,v,g,y){let w=y?Fn(y[1])?y[1].error:y[1].data:void 0,x=t.createURL(e.location),b=t.createURL(i),A=y&&Fn(y[1])?y[0]:void 0,P=A?EF(r,A):r,_=y?y[1].statusCode:void 0,D=o&&_&&_>=400,M=P.filter((z,H)=>{let{route:Y}=z;if(Y.lazy)return!0;if(Y.loader==null)return!1;if(s)return typeof Y.loader!="function"||Y.loader.hydrate?!0:e.loaderData[Y.id]===void 0&&(!e.errors||e.errors[Y.id]===void 0);if(AF(e.loaderData,e.matches[H],z)||l.some(h=>h===z.route.id))return!0;let Z=e.matches[H],O=z;return d3(z,Lt({currentUrl:x,currentParams:Z.params,nextUrl:b,nextParams:O.params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a||x.pathname+x.search===b.pathname+b.search||x.search!==b.search||CC(Z,O)}))}),L=[];return u.forEach((z,H)=>{if(s||!r.some(S=>S.route.id===z.routeId)||f.has(H))return;let Y=Ha(v,z.path,g);if(!Y){L.push({key:H,routeId:z.routeId,path:z.path,matches:null,match:null,controller:null});return}let Z=e.fetchers.get(H),O=Ky(Y,z.path),h=!1;d.has(H)?h=!1:c.includes(H)?h=!0:Z&&Z.state!=="idle"&&Z.data===void 0?h=a:h=d3(O,Lt({currentUrl:x,currentParams:e.matches[e.matches.length-1].params,nextUrl:b,nextParams:r[r.length-1].params},n,{actionResult:w,unstable_actionStatus:_,defaultShouldRevalidate:D?!1:a})),h&&L.push({key:H,routeId:z.routeId,path:z.path,matches:Y,match:O,controller:new AbortController})}),[M,L]}function AF(t,e,r){let n=!e||r.route.id!==e.route.id,i=t[r.route.id]===void 0;return n||i}function CC(t,e){let r=t.route.path;return t.pathname!==e.pathname||r!=null&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function d3(t,e){if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate(e);if(typeof r=="boolean")return r}return e.defaultShouldRevalidate}async function h3(t,e,r){if(!t.lazy)return;let n=await t.lazy();if(!t.lazy)return;let i=r[t.id];Fe(i,"No route found in manifest");let s={};for(let o in n){let l=i[o]!==void 0&&o!=="hasErrorBoundary";ra(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!q$.has(o)&&(s[o]=n[o])}Object.assign(i,s),Object.assign(i,Lt({},e(i),{lazy:void 0}))}function SF(t){return Promise.all(t.matches.map(e=>e.resolve()))}async function CF(t,e,r,n,i,s,o,a){let l=n.reduce((u,d)=>u.add(d.route.id),new Set),c=new Set,f=await t({matches:i.map(u=>{let d=l.has(u.route.id);return Lt({},u,{shouldLoad:d,resolve:g=>(c.add(u.route.id),d?kF(e,r,u,s,o,g,a):Promise.resolve({type:_t.data,result:void 0}))})}),request:r,params:i[0].params,context:a});return i.forEach(u=>Fe(c.has(u.route.id),'`match.resolve()` was not called for route id "'+u.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),f.filter((u,d)=>l.has(i[d].route.id))}async function kF(t,e,r,n,i,s,o){let a,l,c=f=>{let u,d=new Promise((y,w)=>u=w);l=()=>u(),e.signal.addEventListener("abort",l);let v=y=>typeof f!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+t+'" [routeId: '+r.route.id+"]"))):f({request:e,params:r.params,context:o},...y!==void 0?[y]:[]),g;return s?g=s(y=>v(y)):g=(async()=>{try{return{type:"data",result:await v()}}catch(y){return{type:"error",result:y}}})(),Promise.race([g,d])};try{let f=r.route[t];if(r.route.lazy)if(f){let u,[d]=await Promise.all([c(f).catch(v=>{u=v}),h3(r.route,i,n)]);if(u!==void 0)throw u;a=d}else if(await h3(r.route,i,n),f=r.route[t],f)a=await c(f);else if(t==="action"){let u=new URL(e.url),d=u.pathname+u.search;throw Ln(405,{method:e.method,pathname:d,routeId:r.route.id})}else return{type:_t.data,result:void 0};else if(f)a=await c(f);else{let u=new URL(e.url),d=u.pathname+u.search;throw Ln(404,{pathname:d})}Fe(a.result!==void 0,"You defined "+(t==="action"?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `"+t+"` ")+"function. Please return a value or `null`.")}catch(f){return{type:_t.error,result:f}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function PF(t){let{result:e,type:r,status:n}=t;if(PC(e)){let o;try{let a=e.headers.get("Content-Type");a&&/\bapplication\/json\b/.test(a)?e.body==null?o=null:o=await e.json():o=await e.text()}catch(a){return{type:_t.error,error:a}}return r===_t.error?{type:_t.error,error:new fg(e.status,e.statusText,o),statusCode:e.status,headers:e.headers}:{type:_t.data,data:o,statusCode:e.status,headers:e.headers}}if(r===_t.error)return{type:_t.error,error:e,statusCode:ug(e)?e.status:n};if(_F(e)){var i,s;return{type:_t.deferred,deferredData:e,statusCode:(i=e.init)==null?void 0:i.status,headers:((s=e.init)==null?void 0:s.headers)&&new Headers(e.init.headers)}}return{type:_t.data,data:e,statusCode:n}}function RF(t,e,r,n,i,s){let o=t.headers.get("Location");if(Fe(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!dg.test(o)){let a=n.slice(0,n.findIndex(l=>l.route.id===r)+1);o=Wy(new URL(e.url),a,i,!0,o,s),t.headers.set("Location",o)}return t}function v3(t,e,r){if(dg.test(t)){let n=t,i=n.startsWith("//")?new URL(e.protocol+n):new URL(n),s=Xf(i.pathname,r)!=null;if(i.origin===e.origin&&s)return i.pathname+i.search+i.hash}return t}function Aa(t,e,r,n){let i=t.createURL(kC(e)).toString(),s={signal:r};if(n&&li(n.formMethod)){let{formMethod:o,formEncType:a}=n;s.method=o.toUpperCase(),a==="application/json"?(s.headers=new Headers({"Content-Type":a}),s.body=JSON.stringify(n.json)):a==="text/plain"?s.body=n.text:a==="application/x-www-form-urlencoded"&&n.formData?s.body=Gy(n.formData):s.body=n.formData}return new Request(i,s)}function Gy(t){let e=new URLSearchParams;for(let[r,n]of t.entries())e.append(r,typeof n=="string"?n:n.name);return e}function y3(t){let e=new FormData;for(let[r,n]of t.entries())e.append(r,n);return e}function TF(t,e,r,n,i,s){let o={},a=null,l,c=!1,f={},u=n&&Fn(n[1])?n[1].error:void 0;return r.forEach((d,v)=>{let g=e[v].route.id;if(Fe(!Bo(d),"Cannot handle redirect results in processLoaderData"),Fn(d)){let y=d.error;if(u!==void 0&&(y=u,u=void 0),a=a||{},s)a[g]=y;else{let w=Kc(t,g);a[w.route.id]==null&&(a[w.route.id]=y)}o[g]=void 0,c||(c=!0,l=ug(d.error)?d.error.status:500),d.headers&&(f[g]=d.headers)}else jo(d)?(i.set(g,d.deferredData),o[g]=d.deferredData.data,d.statusCode!=null&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers)):(o[g]=d.data,d.statusCode&&d.statusCode!==200&&!c&&(l=d.statusCode),d.headers&&(f[g]=d.headers))}),u!==void 0&&n&&(a={[n[0]]:u},o[n[0]]=void 0),{loaderData:o,errors:a,statusCode:l||200,loaderHeaders:f}}function p3(t,e,r,n,i,s,o,a){let{loaderData:l,errors:c}=TF(e,r,n,i,a,!1);for(let f=0;fn.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function x3(t){let e=t.length===1?t[0]:t.find(r=>r.index||!r.path||r.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ln(t,e){let{pathname:r,routeId:n,method:i,type:s}=e===void 0?{}:e,o="Unknown Server Error",a="Unknown @remix-run/router error";return t===400?(o="Bad Request",i&&r&&n?a="You made a "+i+' request to "'+r+'" but '+('did not provide a `loader` for route "'+n+'", ')+"so there is no way to handle the request.":s==="defer-action"?a="defer() is not supported in actions":s==="invalid-body"&&(a="Unable to encode submission body")):t===403?(o="Forbidden",a='Route "'+n+'" does not match URL "'+r+'"'):t===404?(o="Not Found",a='No route matches URL "'+r+'"'):t===405&&(o="Method Not Allowed",i&&r&&n?a="You made a "+i.toUpperCase()+' request to "'+r+'" but '+('did not provide an `action` for route "'+n+'", ')+"so there is no way to handle the request.":i&&(a='Invalid request method "'+i.toUpperCase()+'"')),new fg(t||500,o,new Error(a),!0)}function b3(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(Bo(r))return{result:r,idx:e}}}function kC(t){let e=typeof t=="string"?Wi(t):t;return Jf(Lt({},e,{hash:""}))}function MF(t,e){return t.pathname!==e.pathname||t.search!==e.search?!1:t.hash===""?e.hash!=="":t.hash===e.hash?!0:e.hash!==""}function IF(t){return PC(t.result)&&pF.has(t.result.status)}function jo(t){return t.type===_t.deferred}function Fn(t){return t.type===_t.error}function Bo(t){return(t&&t.type)===_t.redirect}function _F(t){let e=t;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function PC(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function OF(t){return yF.has(t.toLowerCase())}function li(t){return hF.has(t.toLowerCase())}async function w3(t,e,r,n,i,s){for(let o=0;ou.route.id===l.route.id),f=c!=null&&!CC(c,l)&&(s&&s[l.route.id])!==void 0;if(jo(a)&&(i||f)){let u=n[o];Fe(u,"Expected an AbortSignal for revalidating fetcher deferred result"),await RC(a,u,i).then(d=>{d&&(r[o]=d||r[o])})}}}async function RC(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:_t.data,data:t.deferredData.unwrappedData}}catch(i){return{type:_t.error,error:i}}return{type:_t.data,data:t.deferredData.data}}}function hg(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function Ky(t,e){let r=typeof e=="string"?Wi(e).search:e.search;if(t[t.length-1].route.index&&hg(r||""))return t[t.length-1];let n=EC(t);return n[n.length-1]}function E3(t){let{formMethod:e,formAction:r,formEncType:n,text:i,formData:s,json:o}=t;if(!(!e||!r||!n)){if(i!=null)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:void 0,text:i};if(s!=null)return{formMethod:e,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0};if(o!==void 0)return{formMethod:e,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}}}function $1(t,e){return e?{state:"loading",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function NF(t,e){return{state:"submitting",location:t,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function oc(t,e){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function DF(t,e){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:e?e.data:void 0}}function Ls(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function LF(t,e){try{let r=t.sessionStorage.getItem(SC);if(r){let n=JSON.parse(r);for(let[i,s]of Object.entries(n||{}))s&&Array.isArray(s)&&e.set(i,new Set(s||[]))}}catch{}}function jF(t,e){if(e.size>0){let r={};for(let[n,i]of e)r[n]=[...i];try{t.sessionStorage.setItem(SC,JSON.stringify(r))}catch(n){ra(!1,"Failed to save applied view transitions in sessionStorage ("+n+").")}}}/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -122,7 +122,7 @@ Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function lh(){return lh=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},w,{params:Object.assign({},a,w.params),pathname:Ho([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ho([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,r,n);return e&&y?p.createElement(y0.Provider,{value:{location:lh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Zt.Pop}},y):y}function FF(){let t=KF(),e=ug(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},e),r?p.createElement("pre",{style:i},r):null,s)}const UF=p.createElement(FF,null);class zF extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?p.createElement(p0.Provider,{value:this.props.routeContext},p.createElement(_C.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VF(t){let{routeContext:e,match:r,children:n}=t,i=p.useContext(TC);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(p0.Provider,{value:e},n)}function qF(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if((s=r)!=null&&s.errors)t=r.matches;else return null}let o=t,a=(i=r)==null?void 0:i.errors;if(a!=null){let f=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);f>=0||Fe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,u,d)=>{let v,g=!1,y=null,w=null;r&&(v=a&&u.route.id?a[u.route.id]:void 0,y=u.route.errorElement||UF,l&&(c<0&&d===0?(QF("route-fallback",!1),g=!0,w=null):c===d&&(g=!0,w=u.route.hydrateFallbackElement||null)));let x=e.concat(o.slice(0,d+1)),b=()=>{let S;return v?S=y:g?S=w:u.route.Component?S=p.createElement(u.route.Component,null):u.route.element?S=u.route.element:S=f,p.createElement(VF,{match:u,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:S})};return r&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?p.createElement(zF,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var Qy=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Qy||{});function HF(t){let e=p.useContext(MC);return e||Fe(!1),e}function WF(t){let e=p.useContext(p0);return e||Fe(!1),e}function GF(t){let e=WF(),r=e.matches[e.matches.length-1];return r.route.id||Fe(!1),r.route.id}function KF(){var t;let e=p.useContext(_C),r=HF(Qy.UseRouteError),n=GF(Qy.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}const A3={};function QF(t,e,r){!e&&!A3[t]&&(A3[t]=!0)}function YF(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Zt.Pop,navigator:s,static:o=!1,future:a}=t;vg()&&Fe(!1);let l=e.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:o,future:lh({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=Wi(n));let{pathname:f="/",search:u="",hash:d="",state:v=null,key:g="default"}=n,y=p.useMemo(()=>{let w=Xf(f,l);return w==null?null:{location:{pathname:w,search:u,hash:d,state:v,key:g},navigationType:i}},[l,f,u,d,v,g,i]);return y==null?null:p.createElement(IC.Provider,{value:c},p.createElement(y0.Provider,{children:r,value:y}))}new Promise(()=>{});function JF(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:p.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:p.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:p.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** + */function lh(){return lh=Object.assign?Object.assign.bind():function(t){for(var e=1;eObject.assign({},w,{params:Object.assign({},a,w.params),pathname:Ho([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Ho([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,r,n);return e&&y?p.createElement(y0.Provider,{value:{location:lh({pathname:"/",search:"",hash:"",state:null,key:"default"},f),navigationType:Zt.Pop}},y):y}function FF(){let t=KF(),e=ug(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},s=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},e),r?p.createElement("pre",{style:i},r):null,s)}const UF=p.createElement(FF,null);class zF extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location||r.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:r.error,location:r.location,revalidation:e.revalidation||r.revalidation}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error!==void 0?p.createElement(p0.Provider,{value:this.props.routeContext},p.createElement(_C.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function VF(t){let{routeContext:e,match:r,children:n}=t,i=p.useContext(TC);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(p0.Provider,{value:e},n)}function qF(t,e,r,n){var i;if(e===void 0&&(e=[]),r===void 0&&(r=null),n===void 0&&(n=null),t==null){var s;if((s=r)!=null&&s.errors)t=r.matches;else return null}let o=t,a=(i=r)==null?void 0:i.errors;if(a!=null){let f=o.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);f>=0||Fe(!1),o=o.slice(0,Math.min(o.length,f+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let f=0;f=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((f,u,d)=>{let v,g=!1,y=null,w=null;r&&(v=a&&u.route.id?a[u.route.id]:void 0,y=u.route.errorElement||UF,l&&(c<0&&d===0?(QF("route-fallback",!1),g=!0,w=null):c===d&&(g=!0,w=u.route.hydrateFallbackElement||null)));let x=e.concat(o.slice(0,d+1)),b=()=>{let A;return v?A=y:g?A=w:u.route.Component?A=p.createElement(u.route.Component,null):u.route.element?A=u.route.element:A=f,p.createElement(VF,{match:u,routeContext:{outlet:f,matches:x,isDataRoute:r!=null},children:A})};return r&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?p.createElement(zF,{location:r.location,revalidation:r.revalidation,component:y,error:v,children:b(),routeContext:{outlet:null,matches:x,isDataRoute:!0}}):b()},null)}var Qy=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(Qy||{});function HF(t){let e=p.useContext(MC);return e||Fe(!1),e}function WF(t){let e=p.useContext(p0);return e||Fe(!1),e}function GF(t){let e=WF(),r=e.matches[e.matches.length-1];return r.route.id||Fe(!1),r.route.id}function KF(){var t;let e=p.useContext(_C),r=HF(Qy.UseRouteError),n=GF(Qy.UseRouteError);return e!==void 0?e:(t=r.errors)==null?void 0:t[n]}const A3={};function QF(t,e,r){!e&&!A3[t]&&(A3[t]=!0)}function YF(t){let{basename:e="/",children:r=null,location:n,navigationType:i=Zt.Pop,navigator:s,static:o=!1,future:a}=t;vg()&&Fe(!1);let l=e.replace(/^\/*/,"/"),c=p.useMemo(()=>({basename:l,navigator:s,static:o,future:lh({v7_relativeSplatPath:!1},a)}),[l,a,s,o]);typeof n=="string"&&(n=Wi(n));let{pathname:f="/",search:u="",hash:d="",state:v=null,key:g="default"}=n,y=p.useMemo(()=>{let w=Xf(f,l);return w==null?null:{location:{pathname:w,search:u,hash:d,state:v,key:g},navigationType:i}},[l,f,u,d,v,g,i]);return y==null?null:p.createElement(IC.Provider,{value:c},p.createElement(y0.Provider,{children:r,value:y}))}new Promise(()=>{});function JF(t){let e={hasErrorBoundary:t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&Object.assign(e,{element:p.createElement(t.Component),Component:void 0}),t.HydrateFallback&&Object.assign(e,{hydrateFallbackElement:p.createElement(t.HydrateFallback),HydrateFallback:void 0}),t.ErrorBoundary&&Object.assign(e,{errorElement:p.createElement(t.ErrorBoundary),ErrorBoundary:void 0}),e}/** * React Router DOM v6.23.1 * * Copyright (c) Remix Software Inc. @@ -131,7 +131,7 @@ Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.for * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ch(){return ch=Object.assign?Object.assign.bind():function(t){for(var e=1;e{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function lU(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=p.useState(r.state),[o,a]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[f,u]=p.useState(),[d,v]=p.useState(),[g,y]=p.useState(),w=p.useRef(new Map),{v7_startTransition:x}=n||{},b=p.useCallback(M=>{x?oU(M):M()},[x]),S=p.useCallback((M,L)=>{let{deletedFetchers:z,unstable_flushSync:H,unstable_viewTransitionOpts:Y}=L;z.forEach(O=>w.current.delete(O)),M.fetchers.forEach((O,h)=>{O.data!==void 0&&w.current.set(h,O.data)});let Z=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!Y||Z){H?ac(()=>s(M)):b(()=>s(M));return}if(H){ac(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})});let O=r.window.document.startViewTransition(()=>{ac(()=>s(M))});O.finished.finally(()=>{ac(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})})}),ac(()=>v(O));return}d?(f&&f.resolve(),d.skipTransition(),y({state:M,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})):(a(M),c({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}))},[r.window,d,f,w,b]);p.useLayoutEffect(()=>r.subscribe(S),[r,S]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&u(new aU)},[l]),p.useEffect(()=>{if(f&&o&&r.window){let M=o,L=f.promise,z=r.window.document.startViewTransition(async()=>{b(()=>s(M)),await L});z.finished.finally(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})}),v(z)}},[b,o,f,r.window]),p.useEffect(()=>{f&&o&&i.location.key===o.location.key&&f.resolve()},[f,d,i.location,o]),p.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,L,z)=>r.navigate(M,{state:L,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(M,L,z)=>r.navigate(M,{replace:!0,state:L,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[r]),_=r.basename||"/",D=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:_}),[r,P,_]);return p.createElement(p.Fragment,null,p.createElement(TC.Provider,{value:D},p.createElement(MC.Provider,{value:i},p.createElement(nU.Provider,{value:w.current},p.createElement(rU.Provider,{value:l},p.createElement(YF,{basename:_,location:i.location,navigationType:i.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?p.createElement(cU,{routes:r.routes,future:r.future,state:i}):e))))),null)}function cU(t){let{routes:e,future:r,state:n}=t;return $F(e,void 0,n,r)}var k3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(k3||(k3={}));var P3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(P3||(P3={}));var fU="_1csw4y80 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8";const OC=t=>{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=p.useMemo(()=>R3(0,r).map(()=>p.createRef()),[]);p.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...e];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var g,y;const u=s[c].current,d=(g=s[c-1])==null?void 0:g.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,g;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((g=(v=s[0])==null?void 0:v.current)==null||g.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return $.jsx(re,{gap:"2",children:R3(0,r).map(c=>$.jsxs(p.Fragment,{children:[c===r/2&&$.jsx("span",{}),$.jsx(re,{as:"input",className:fU,value:e[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},R3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),NC=()=>$.jsxs(re,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[$.jsx(Se,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),$.jsx(Se,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function uU(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=p.useState(!1),o=p.useRef(r);o.current=r;const a=p.useRef(n);return a.current=n,p.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const DC=p.createContext(null);function dU({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=uU({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=p.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return gr.createElement(DC.Provider,{value:o},i)}function hU(){const t=p.useContext(DC);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function vU(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const yU={large:40,medium:32,small:20};function pU({onSuccess:t,onError:e,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...g}){const y=p.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=hU(),b=p.useRef(t);b.current=t;const S=p.useRef(e);S.current=e;const P=p.useRef(n);return P.current=n,p.useEffect(()=>{var _,D,M,L,z,H,Y,Z,O;if(x)return(M=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||M===void 0||M.initialize({client_id:w,callback:h=>{var A;if(!(h!=null&&h.credential))return(A=S.current)===null||A===void 0?void 0:A.call(S);const{credential:k,select_by:I}=h;b.current({credential:k,clientId:vU(h),select_by:I})},...g}),(H=(z=(L=window==null?void 0:window.google)===null||L===void 0?void 0:L.accounts)===null||z===void 0?void 0:z.id)===null||H===void 0||H.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((O=(Z=(Y=window==null?void 0:window.google)===null||Y===void 0?void 0:Y.accounts)===null||Z===void 0?void 0:Z.id)===null||O===void 0||O.prompt(P.current)),()=>{var h,A,k;r&&((k=(A=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||A===void 0?void 0:A.id)===null||k===void 0||k.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),gr.createElement("div",{...v,ref:y,style:{height:yU[o],...v==null?void 0:v.style}})}function mU(){var t,e,r;(r=(e=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.accounts)===null||e===void 0?void 0:e.id)===null||r===void 0||r.disableAutoSelect()}var LC={},m0={},Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=void 0;var gU=p;function xU(t){(0,gU.useEffect)(function(){if(t){var e=document.querySelectorAll('script[src="'.concat(t,'"]'))[0];e||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))}},[t])}var bU=xU;Zf.default=bU;var eu={},g0={};Object.defineProperty(g0,"__esModule",{value:!0});g0.default=void 0;var wU=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(e))return Promise.resolve(l[e]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return t(e,{pollFrequency:i,parent:l,retries:c})})},EU=wU;g0.default=EU;Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var AU=SU(g0);function SU(t){return t&&t.__esModule?t:{default:t}}var CU="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",kU=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,AU.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},PU={APPLE_SCRIPT_SRC:CU,signIn:kU};eu.default=PU;Object.defineProperty(m0,"__esModule",{value:!0});m0.default=void 0;var bi=yg(p),RU=yg(Zf),T3=yg(eu),TU=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function yg(t){return t&&t.__esModule?t:{default:t}}function fh(){return fh=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OU(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}var NU=` + */function ch(){return ch=Object.assign?Object.assign.bind():function(t){for(var e=1;e{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",r(n))}})}}function lU(t){let{fallbackElement:e,router:r,future:n}=t,[i,s]=p.useState(r.state),[o,a]=p.useState(),[l,c]=p.useState({isTransitioning:!1}),[f,u]=p.useState(),[d,v]=p.useState(),[g,y]=p.useState(),w=p.useRef(new Map),{v7_startTransition:x}=n||{},b=p.useCallback(M=>{x?oU(M):M()},[x]),A=p.useCallback((M,L)=>{let{deletedFetchers:z,unstable_flushSync:H,unstable_viewTransitionOpts:Y}=L;z.forEach(O=>w.current.delete(O)),M.fetchers.forEach((O,h)=>{O.data!==void 0&&w.current.set(h,O.data)});let Z=r.window==null||r.window.document==null||typeof r.window.document.startViewTransition!="function";if(!Y||Z){H?ac(()=>s(M)):b(()=>s(M));return}if(H){ac(()=>{d&&(f&&f.resolve(),d.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})});let O=r.window.document.startViewTransition(()=>{ac(()=>s(M))});O.finished.finally(()=>{ac(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})})}),ac(()=>v(O));return}d?(f&&f.resolve(),d.skipTransition(),y({state:M,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})):(a(M),c({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}))},[r.window,d,f,w,b]);p.useLayoutEffect(()=>r.subscribe(A),[r,A]),p.useEffect(()=>{l.isTransitioning&&!l.flushSync&&u(new aU)},[l]),p.useEffect(()=>{if(f&&o&&r.window){let M=o,L=f.promise,z=r.window.document.startViewTransition(async()=>{b(()=>s(M)),await L});z.finished.finally(()=>{u(void 0),v(void 0),a(void 0),c({isTransitioning:!1})}),v(z)}},[b,o,f,r.window]),p.useEffect(()=>{f&&o&&i.location.key===o.location.key&&f.resolve()},[f,d,i.location,o]),p.useEffect(()=>{!l.isTransitioning&&g&&(a(g.state),c({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),y(void 0))},[l.isTransitioning,g]),p.useEffect(()=>{},[]);let P=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:M=>r.navigate(M),push:(M,L,z)=>r.navigate(M,{state:L,preventScrollReset:z==null?void 0:z.preventScrollReset}),replace:(M,L,z)=>r.navigate(M,{replace:!0,state:L,preventScrollReset:z==null?void 0:z.preventScrollReset})}),[r]),_=r.basename||"/",D=p.useMemo(()=>({router:r,navigator:P,static:!1,basename:_}),[r,P,_]);return p.createElement(p.Fragment,null,p.createElement(TC.Provider,{value:D},p.createElement(MC.Provider,{value:i},p.createElement(nU.Provider,{value:w.current},p.createElement(rU.Provider,{value:l},p.createElement(YF,{basename:_,location:i.location,navigationType:i.historyAction,navigator:P,future:{v7_relativeSplatPath:r.future.v7_relativeSplatPath}},i.initialized||r.future.v7_partialHydration?p.createElement(cU,{routes:r.routes,future:r.future,state:i}):e))))),null)}function cU(t){let{routes:e,future:r,state:n}=t;return $F(e,void 0,n,r)}var k3;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(k3||(k3={}));var P3;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(P3||(P3={}));var fU="_1csw4y80 _1qxj1ib9 _1qxj1ibc _1qxj1ib2 fyvr11mv fyvr11eo fyvr11g8 fyvr11fo fyvr11f8";const OC=t=>{const{value:e,digits:r=6,onChange:n,disabled:i=!1}=t,s=p.useMemo(()=>R3(0,r).map(()=>p.createRef()),[]);p.useEffect(()=>{var c,f;(f=(c=s[0])==null?void 0:c.current)==null||f.focus()},[]);const o=(c,f)=>{var d,v;/^\d$/.test(f)||(f="");const u=[...e];u[c]=f,f!==""&&((v=(d=s[c+1])==null?void 0:d.current)==null||v.focus()),n(u)},a=(c,f)=>{var g,y;const u=s[c].current,d=(g=s[c-1])==null?void 0:g.current,v=(y=s[c+1])==null?void 0:y.current;switch(f.key){case"Backspace":f.preventDefault(),u&&(u.value="",o(c,"")),d==null||d.focus();break;case"ArrowLeft":f.preventDefault(),d==null||d.focus();break;case"ArrowRight":f.preventDefault(),v==null||v.focus();break;default:(u==null?void 0:u.value)===f.key&&(f.preventDefault(),o(c,f.key))}},l=(c,f)=>{var v,g;const d=f.clipboardData.getData("text/plain").replace(/\D/g,"");/^\d{6}$/.test(d)&&((g=(v=s[0])==null?void 0:v.current)==null||g.focus(),n(d.split("")),setTimeout(()=>{var y,w;(w=(y=s[s.length-1])==null?void 0:y.current)==null||w.focus()}))};return j.jsx(ee,{gap:"2",children:R3(0,r).map(c=>j.jsxs(p.Fragment,{children:[c===r/2&&j.jsx("span",{}),j.jsx(ee,{as:"input",className:fU,value:e[c]||"",ref:s[c],type:"text",inputMode:"numeric",maxLength:1,disabled:i,onFocus:f=>f.target.select(),onPaste:f=>l(c,f),onChange:f=>o(c,f.target.value),onKeyDown:f=>{a(c,f)}})]},c))})},R3=(t,e)=>Array.from({length:e-t},(r,n)=>n+t),NC=()=>j.jsxs(ee,{gap:"2",flexDirection:"column",borderStyle:"solid",width:"1/3",padding:"4",borderWidth:"thin",borderColor:"borderNormal",borderRadius:"sm",children:[j.jsx(Se,{variant:"xlarge",fontWeight:"bold",color:"gnosisLight",children:"Demo App"}),j.jsx(Se,{variant:"normal",marginLeft:"auto",color:"polygonLight",children:"Showcasing WaaS"})]});function uU(t={}){const{nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}=t,[i,s]=p.useState(!1),o=p.useRef(r);o.current=r;const a=p.useRef(n);return a.current=n,p.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;s(!0),(c=o.current)===null||c===void 0||c.call(o)},l.onerror=()=>{var c;s(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const DC=p.createContext(null);function dU({clientId:t,nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n,children:i}){const s=uU({nonce:e,onScriptLoadSuccess:r,onScriptLoadError:n}),o=p.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:s}),[t,s]);return gr.createElement(DC.Provider,{value:o},i)}function hU(){const t=p.useContext(DC);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function vU(t){var e;return(e=t==null?void 0:t.clientId)!==null&&e!==void 0?e:t==null?void 0:t.client_id}const yU={large:40,medium:32,small:20};function pU({onSuccess:t,onError:e,useOneTap:r,promptMomentNotification:n,type:i="standard",theme:s="outline",size:o="large",text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d,containerProps:v,...g}){const y=p.useRef(null),{clientId:w,scriptLoadedSuccessfully:x}=hU(),b=p.useRef(t);b.current=t;const A=p.useRef(e);A.current=e;const P=p.useRef(n);return P.current=n,p.useEffect(()=>{var _,D,M,L,z,H,Y,Z,O;if(x)return(M=(D=(_=window==null?void 0:window.google)===null||_===void 0?void 0:_.accounts)===null||D===void 0?void 0:D.id)===null||M===void 0||M.initialize({client_id:w,callback:h=>{var S;if(!(h!=null&&h.credential))return(S=A.current)===null||S===void 0?void 0:S.call(A);const{credential:k,select_by:I}=h;b.current({credential:k,clientId:vU(h),select_by:I})},...g}),(H=(z=(L=window==null?void 0:window.google)===null||L===void 0?void 0:L.accounts)===null||z===void 0?void 0:z.id)===null||H===void 0||H.renderButton(y.current,{type:i,theme:s,size:o,text:a,shape:l,logo_alignment:c,width:f,locale:u,click_listener:d}),r&&((O=(Z=(Y=window==null?void 0:window.google)===null||Y===void 0?void 0:Y.accounts)===null||Z===void 0?void 0:Z.id)===null||O===void 0||O.prompt(P.current)),()=>{var h,S,k;r&&((k=(S=(h=window==null?void 0:window.google)===null||h===void 0?void 0:h.accounts)===null||S===void 0?void 0:S.id)===null||k===void 0||k.cancel())}},[w,x,r,i,s,o,a,l,c,f,u]),gr.createElement("div",{...v,ref:y,style:{height:yU[o],...v==null?void 0:v.style}})}function mU(){var t,e,r;(r=(e=(t=window==null?void 0:window.google)===null||t===void 0?void 0:t.accounts)===null||e===void 0?void 0:e.id)===null||r===void 0||r.disableAutoSelect()}var LC={},m0={},Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.default=void 0;var gU=p;function xU(t){(0,gU.useEffect)(function(){if(t){var e=document.querySelectorAll('script[src="'.concat(t,'"]'))[0];e||(e=document.createElement("script"),e.src=t,e.async=!0,document.body.appendChild(e))}},[t])}var bU=xU;Zf.default=bU;var eu={},g0={};Object.defineProperty(g0,"__esModule",{value:!0});g0.default=void 0;var wU=function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{pollFrequency:1e3,retries:100,parent:window},n=r.pollFrequency,i=n===void 0?1e3:n,s=r.retries,o=s===void 0?100:s,a=r.parent,l=a===void 0?window:a;if(l&&l.hasOwnProperty(e))return Promise.resolve(l[e]);if(!o)return Promise.resolve(void 0);var c=o-1;return new Promise(function(f){return setTimeout(f,typeof i=="function"?i({retries:c}):i)}).then(function(){return t(e,{pollFrequency:i,parent:l,retries:c})})},EU=wU;g0.default=EU;Object.defineProperty(eu,"__esModule",{value:!0});eu.default=void 0;var AU=SU(g0);function SU(t){return t&&t.__esModule?t:{default:t}}var CU="https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js",kU=function(e){var r=e.authOptions,n=e.onSuccess,i=e.onError;return(0,AU.default)("AppleID").then(function(){return window.AppleID||console.error(new Error("Error loading apple script")),window.AppleID.auth.init(r),window.AppleID.auth.signIn().then(function(s){return n&&n(s),s}).catch(function(s){return i?i(s):console.error(s),null})}).catch(function(s){return i?i(s):console.error(s),null})},PU={APPLE_SCRIPT_SRC:CU,signIn:kU};eu.default=PU;Object.defineProperty(m0,"__esModule",{value:!0});m0.default=void 0;var wi=yg(p),RU=yg(Zf),T3=yg(eu),TU=["onSuccess","onError","skipScript","authOptions","iconProps","render","uiType","className","noDefaultStyle","buttonExtraChildren"];function yg(t){return t&&t.__esModule?t:{default:t}}function fh(){return fh=Object.assign||function(t){for(var e=1;e=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function OU(t,e){if(t==null)return{};var r={},n=Object.keys(t),i,s;for(s=0;s=0)&&(r[i]=t[i]);return r}var NU=` .react-apple-signin-auth-btn { background-color: transparent; border: none; @@ -157,20 +157,20 @@ Defaulting to \`null\`.`}const tC="Radio",[sB,rC]=qr(tC),[oB,aB]=sB(tC),lB=p.for background-color: #000; color: #FFF; border-color: #FFF; -}`.replace(/ {2}|\n/g,""),DU=function(e){var r=e.onSuccess,n=e.onError,i=e.skipScript,s=i===void 0?!1:i,o=e.authOptions,a=e.iconProps,l=e.render,c=e.uiType,f=c===void 0?"dark":c,u=e.className,d=e.noDefaultStyle,v=d===void 0?!1:d,g=e.buttonExtraChildren,y=g===void 0?"Continue with Apple":g,w=_U(e,TU);(0,RU.default)(s?null:T3.default.APPLE_SCRIPT_SRC);var x=function(P){P&&(P.preventDefault(),P.stopPropagation()),T3.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=MU({children:bi.default.createElement(bi.default.Fragment,null,bi.default.createElement("svg",fh({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),bi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},bi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),bi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):bi.default.createElement(bi.default.Fragment,null,bi.default.createElement("button",fh({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:bi.default.createElement("style",null,NU))},LU=DU;m0.default=LU;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"useScript",{enumerable:!0,get:function(){return n.default}}),t.default=void 0;var e=i(m0),r=i(eu),n=i(Zf);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(LC);const jU=Ss(LC);function uh(){return uh=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.version=(n,i)=>this.fetch(this.url("Version"),Vt({},n,i)).then(s=>Jt(s).then(o=>({version:o.version})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.runtimeStatus=(n,i)=>this.fetch(this.url("RuntimeStatus"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getChainID=(n,i)=>this.fetch(this.url("GetChainID"),Vt({},n,i)).then(s=>Jt(s).then(o=>({chainID:o.chainID})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getEtherBalance=(n,i,s)=>this.fetch(this.url("GetEtherBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({balance:a.balance})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,i,s)=>this.fetch(this.url("GetTokenBalances"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,i,s)=>this.fetch(this.url("GetTokenSupplies"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,i,s)=>this.fetch(this.url("GetTokenSuppliesMap"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({supplies:a.supplies})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,i,s)=>this.fetch(this.url("GetBalanceUpdates"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,i,s)=>this.fetch(this.url("GetTransactionHistory"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,i,s)=>this.fetch(this.url("SyncBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,i,s)=>this.fetch(this.url("FetchTransactionReceipt"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,i,s)=>this.fetch(this.url("GetOrderbookOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,i,s)=>this.fetch(this.url("GetTopOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,i,s)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,i,s)=>this.fetch(this.url("GetAllWebhookListeners"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listeners:a.listeners})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,i,s)=>this.fetch(this.url("GetWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,i,s)=>this.fetch(this.url("AddWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,i,s)=>this.fetch(this.url("UpdateWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,i,s)=>this.fetch(this.url("RemoveWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeReceipts"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.subscribeEvents=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeEvents"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const I3=async(t,e,r)=>{const{onMessage:n,onOpen:i,onClose:s,onError:o}=e;if(!t.ok){try{await Jt(t)}catch(v){o(v,r)}return}if(!t.body){o(dh.new({status:t.status,cause:"Invalid response, missing body"}),r);return}i&&i();const a=t.body.getReader(),l=new TextDecoder;let c="",f=Date.now();const u=(10+1)*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-f>u)throw hd.new({cause:"Stream timed out"})},u);;){let v,g;try{({value:v,done:g}=await a.read()),f=Date.now(),c+=l.decode(v,{stream:!0})}catch(w){let x="";w instanceof Error&&(x=w.message),w instanceof DOMException&&w.name==="AbortError"?o(qt.new({message:"AbortError",cause:`AbortError: ${x}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(hd.new({cause:`reader.read(): ${x}`}),r);return}let y=c.split(` -`);for(let w=0;w({method:"POST",headers:uh({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Jt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),dh.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(YC[n]||Pt).new(r)}return r});let Pt=class jC extends Error{constructor(e,r,n,i,s){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 i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,jC.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},$U=class BC extends Pt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,BC.prototype)}},qt=class $C extends Pt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,$C.prototype)}},FU=class FC extends Pt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,FC.prototype)}},UU=class UC extends Pt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,UC.prototype)}},zU=class zC extends Pt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,zC.prototype)}},dh=class VC extends Pt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,VC.prototype)}},VU=class qC extends Pt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,qC.prototype)}},qU=class HC extends Pt{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,HC.prototype)}},HU=class WC extends Pt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,WC.prototype)}},hd=class GC extends Pt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,GC.prototype)}},WU=class KC extends Pt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,KC.prototype)}},GU=class QC extends Pt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,QC.prototype)}};class pg extends Pt{constructor(e="PermissionDenied",r=1001,n="Permission denied",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,pg.prototype)}}class mg extends Pt{constructor(e="SessionExpired",r=1002,n="Session expired",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,mg.prototype)}}class gg extends Pt{constructor(e="MethodNotFound",r=1003,n="Method not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,gg.prototype)}}class xg extends Pt{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,xg.prototype)}}class bg extends Pt{constructor(e="Aborted",r=1005,n="Request aborted",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,bg.prototype)}}class wg extends Pt{constructor(e="Timeout",r=2e3,n="Request timed out",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,wg.prototype)}}class Eg extends Pt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Eg.prototype)}}class Ag extends Pt{constructor(e="Unavailable",r=2002,n="Unavailable resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ag.prototype)}}class Sg extends Pt{constructor(e="QueryFailed",r=2003,n="Query failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Sg.prototype)}}class Cg extends Pt{constructor(e="NotFound",r=3e3,n="Resource not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Cg.prototype)}}class kg extends Pt{constructor(e="ProjectNotFound",r=3002,n="Project not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,kg.prototype)}}class Pg extends Pt{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pg.prototype)}}const YC={0:$U,[-1]:qt,[-2]:FU,[-3]:UU,[-4]:zU,[-5]:dh,[-6]:VU,[-7]:qU,[-8]:HU,[-9]:hd,[-10]:WU,1e3:GU,1001:pg,1002:mg,1003:gg,1004:xg,1005:bg,2e3:wg,2001:Eg,2002:Ag,2003:Sg,3e3:Cg,3002:kg,3003:Pg},_3=typeof global=="object"?global.fetch:window.fetch;class JC extends BU{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,_3),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=uh({},s.headers,o),_3(i,s)},this.fetch=this._fetch}}let X=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.POLYGON_AMOY=80002]="POLYGON_AMOY",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_KOVAN=69]="OPTIMISM_KOVAN",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.BASE_SEPOLIA=84532]="BASE_SEPOLIA",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.XAI=660279]="XAI",t[t.XAI_SEPOLIA=37714555429]="XAI_SEPOLIA",t[t.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",t[t.ASTAR_ZKYOTO=6038361]="ASTAR_ZKYOTO",t[t.XR_SEPOLIA=2730]="XR_SEPOLIA",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),qe=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const it={[X.MAINNET]:{chainId:X.MAINNET,type:qe.MAINNET,name:"mainnet",title:"Ethereum",logoURI:`https://assets.sequence.info/images/networks/medium/${X.MAINNET}.webp`,blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[X.ROPSTEN]:{chainId:X.ROPSTEN,type:qe.TESTNET,name:"ropsten",title:"Ropsten",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ROPSTEN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.RINKEBY]:{chainId:X.RINKEBY,type:qe.TESTNET,name:"rinkeby",title:"Rinkeby",logoURI:`https://assets.sequence.info/images/networks/medium/${X.RINKEBY}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.GOERLI]:{chainId:X.GOERLI,type:qe.TESTNET,name:"goerli",title:"Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.KOVAN]:{chainId:X.KOVAN,type:qe.TESTNET,name:"kovan",title:"Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"},deprecated:!0},[X.SEPOLIA]:{chainId:X.SEPOLIA,type:qe.TESTNET,name:"sepolia",title:"Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[X.POLYGON]:{chainId:X.POLYGON,type:qe.MAINNET,name:"polygon",title:"Polygon",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON}.webp`,blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[X.POLYGON_MUMBAI]:{chainId:X.POLYGON_MUMBAI,type:qe.TESTNET,name:"mumbai",title:"Polygon Mumbai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_MUMBAI}.webp`,testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"},deprecated:!0},[X.POLYGON_AMOY]:{chainId:X.POLYGON_AMOY,type:qe.TESTNET,name:"amoy",title:"Polygon Amoy",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_AMOY}.webp`,testnet:!0,blockExplorer:{name:"OKLink (Amoy)",rootUrl:"https://www.oklink.com/amoy"}},[X.POLYGON_ZKEVM]:{chainId:X.POLYGON_ZKEVM,type:qe.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_ZKEVM}.webp`,blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[X.BSC]:{chainId:X.BSC,type:qe.MAINNET,name:"bsc",title:"BNB Smart Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC}.webp`,blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[X.BSC_TESTNET]:{chainId:X.BSC_TESTNET,type:qe.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[X.OPTIMISM]:{chainId:X.OPTIMISM,type:qe.MAINNET,name:"optimism",title:"Optimism",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM}.webp`,blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[X.OPTIMISM_KOVAN]:{chainId:X.OPTIMISM_KOVAN,type:qe.TESTNET,name:"optimism-kovan",title:"Optimistic Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Kovan)",rootUrl:"https://kovan-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_GOERLI]:{chainId:X.OPTIMISM_GOERLI,type:qe.TESTNET,name:"optimism-goerli",title:"Optimistic Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Goerli)",rootUrl:"https://goerli-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_SEPOLIA]:{chainId:X.OPTIMISM_SEPOLIA,type:qe.TESTNET,name:"optimism-sepolia",title:"Optimistic Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Sepolia)",rootUrl:"https://sepolia-optimistic.etherscan.io/"}},[X.ARBITRUM]:{chainId:X.ARBITRUM,type:qe.MAINNET,name:"arbitrum",title:"Arbitrum One",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM}.webp`,blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[X.ARBITRUM_GOERLI]:{chainId:X.ARBITRUM_GOERLI,type:qe.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Goerli Testnet)",rootUrl:"https://testnet.arbiscan.io/"},deprecated:!0},[X.ARBITRUM_SEPOLIA]:{chainId:X.ARBITRUM_SEPOLIA,type:qe.TESTNET,name:"arbitrum-sepolia",title:"Arbitrum Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Sepolia Testnet)",rootUrl:"https://sepolia.arbiscan.io/"}},[X.ARBITRUM_NOVA]:{chainId:X.ARBITRUM_NOVA,type:qe.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_NOVA}.webp`,blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[X.AVALANCHE]:{chainId:X.AVALANCHE,type:qe.MAINNET,name:"avalanche",title:"Avalanche",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE}.webp`,blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[X.AVALANCHE_TESTNET]:{chainId:X.AVALANCHE_TESTNET,type:qe.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[X.GNOSIS]:{chainId:X.GNOSIS,type:qe.MAINNET,name:"gnosis",title:"Gnosis Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GNOSIS}.webp`,blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[X.BASE]:{chainId:X.BASE,type:qe.MAINNET,name:"base",title:"Base (Coinbase)",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE}.webp`,blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[X.BASE_GOERLI]:{chainId:X.BASE_GOERLI,type:qe.TESTNET,name:"base-goerli",title:"Base Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"},deprecated:!0},[X.BASE_SEPOLIA]:{chainId:X.BASE_SEPOLIA,type:qe.TESTNET,name:"base-sepolia",title:"Base Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Base Sepolia Explorer",rootUrl:"https://base-sepolia.blockscout.com/"}},[X.HOMEVERSE]:{chainId:X.HOMEVERSE,type:qe.MAINNET,name:"homeverse",title:"Oasys Homeverse",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE}.webp`,blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[X.HOMEVERSE_TESTNET]:{chainId:X.HOMEVERSE_TESTNET,type:qe.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[X.XAI]:{chainId:X.XAI,type:qe.MAINNET,name:"xai",title:"Xai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI}.webp`,blockExplorer:{name:"Xai Explorer",rootUrl:"https://explorer.xai-chain.net/"}},[X.XAI_SEPOLIA]:{chainId:X.XAI_SEPOLIA,type:qe.TESTNET,name:"xai-sepolia",title:"Xai Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Xai Sepolia Explorer",rootUrl:"https://testnet-explorer-v2.xai-chain.net/"}},[X.ASTAR_ZKEVM]:{chainId:X.ASTAR_ZKEVM,type:qe.MAINNET,name:"astar-zkevm",title:"Astar zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKEVM}.webp`,blockExplorer:{name:"Astar zkEVM Explorer",rootUrl:"https://astar-zkevm.explorer.startale.com/"}},[X.ASTAR_ZKYOTO]:{chainId:X.ASTAR_ZKYOTO,type:qe.TESTNET,name:"astar-zkyoto",title:"Astar zKyoto Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKYOTO}.webp`,testnet:!0,blockExplorer:{name:"Astar zKyoto Explorer",rootUrl:"https://astar-zkyoto.blockscout.com/"}},[X.XR_SEPOLIA]:{chainId:X.XR_SEPOLIA,type:qe.TESTNET,name:"xr-sepolia",title:"XR Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XR_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"XR Sepolia Explorer",rootUrl:"https://xr-sepolia-testnet.explorer.caldera.xyz/"}},[X.HARDHAT]:{chainId:X.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[X.HARDHAT_2]:{chainId:X.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var Rg={exports:{}};const KU={},QU=Object.freeze(Object.defineProperty({__proto__:null,default:KU},Symbol.toStringTag,{value:"Module"})),YU=Ih(QU);Rg.exports;(function(t){(function(e,r){function n(O,h){if(!O)throw new Error(h||"Assertion failed")}function i(O,h){O.super_=h;var A=function(){};A.prototype=h.prototype,O.prototype=new A,O.prototype.constructor=O}function s(O,h,A){if(s.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((h==="le"||h==="be")&&(A=h,h=10),this._init(O||0,h||10,A||"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=YU.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,A){return h.cmp(A)>0?h:A},s.min=function(h,A){return h.cmp(A)<0?h:A},s.prototype._init=function(h,A,k){if(typeof h=="number")return this._initNumber(h,A,k);if(typeof h=="object")return this._initArray(h,A,k);A==="hex"&&(A=16),n(A===(A|0)&&A>=2&&A<=36),h=h.toString().replace(/\s+/g,"");var I=0;h[0]==="-"&&(I++,this.negative=1),I=0;I-=3)N=h[I]|h[I-1]<<8|h[I-2]<<16,this.words[R]|=N<>>26-j&67108863,j+=24,j>=26&&(j-=26,R++);else if(k==="le")for(I=0,R=0;I>>26-j&67108863,j+=24,j>=26&&(j-=26,R++);return this._strip()};function a(O,h){var A=O.charCodeAt(h);if(A>=48&&A<=57)return A-48;if(A>=65&&A<=70)return A-55;if(A>=97&&A<=102)return A-87;n(!1,"Invalid character in "+O)}function l(O,h,A){var k=a(O,A);return A-1>=h&&(k|=a(O,A-1)<<4),k}s.prototype._parseHex=function(h,A,k){this.length=Math.ceil((h.length-A)/6),this.words=new Array(this.length);for(var I=0;I=A;I-=2)j=l(h,A,I)<=18?(R-=18,N+=1,this.words[N]|=j>>>26):R+=8;else{var C=h.length-A;for(I=C%2===0?A+1:A;I=18?(R-=18,N+=1,this.words[N]|=j>>>26):R+=8}this._strip()};function c(O,h,A,k){for(var I=0,R=0,N=Math.min(O.length,A),j=h;j=49?R=C-49+10:C>=17?R=C-17+10:R=C,n(C>=0&&R1&&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 d=["","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"],v=[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(h,A){h=h||10,A=A|0||1;var k;if(h===16||h==="hex"){k="";for(var I=0,R=0,N=0;N>>24-I&16777215,I+=2,I>=26&&(I-=26,N--),R!==0||N!==this.length-1?k=d[6-C.length]+C+k:k=C+k}for(R!==0&&(k=R.toString(16)+k);k.length%A!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(h===(h|0)&&h>=2&&h<=36){var m=v[h],T=g[h];k="";var F=this.clone();for(F.negative=0;!F.isZero();){var E=F.modrn(T).toString(h);F=F.idivn(T),F.isZero()?k=E+k:k=d[m-E.length]+E+k}for(this.isZero()&&(k="0"+k);k.length%A!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,A){return this.toArrayLike(o,h,A)}),s.prototype.toArray=function(h,A){return this.toArrayLike(Array,h,A)};var y=function(h,A){return h.allocUnsafe?h.allocUnsafe(A):new h(A)};s.prototype.toArrayLike=function(h,A,k){this._strip();var I=this.byteLength(),R=k||Math.max(1,I);n(I<=R,"byte array longer than desired length"),n(R>0,"Requested array length <= 0");var N=y(h,R),j=A==="le"?"LE":"BE";return this["_toArrayLike"+j](N,I),N},s.prototype._toArrayLikeLE=function(h,A){for(var k=0,I=0,R=0,N=0;R>8&255),k>16&255),N===6?(k>24&255),I=0,N=0):(I=j>>>24,N+=2)}if(k=0&&(h[k--]=j>>8&255),k>=0&&(h[k--]=j>>16&255),N===6?(k>=0&&(h[k--]=j>>24&255),I=0,N=0):(I=j>>>24,N+=2)}if(k>=0)for(h[k--]=I;k>=0;)h[k--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var A=h,k=0;return A>=4096&&(k+=13,A>>>=13),A>=64&&(k+=7,A>>>=7),A>=8&&(k+=4,A>>>=4),A>=2&&(k+=2,A>>>=2),k+A},s.prototype._zeroBits=function(h){if(h===0)return 26;var A=h,k=0;return A&8191||(k+=13,A>>>=13),A&127||(k+=7,A>>>=7),A&15||(k+=4,A>>>=4),A&3||(k+=2,A>>>=2),A&1||k++,k},s.prototype.bitLength=function(){var h=this.words[this.length-1],A=this._countBits(h);return(this.length-1)*26+A};function w(O){for(var h=new Array(O.bitLength()),A=0;A>>I&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,A=0;Ah.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var A;this.length>h.length?A=h:A=this;for(var k=0;kh.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var A,k;this.length>h.length?(A=this,k=h):(A=h,k=this);for(var I=0;Ih.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var A=Math.ceil(h/26)|0,k=h%26;this._expand(A),k>0&&A--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-k),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,A){n(typeof h=="number"&&h>=0);var k=h/26|0,I=h%26;return this._expand(k+1),A?this.words[k]=this.words[k]|1<h.length?(k=this,I=h):(k=h,I=this);for(var R=0,N=0;N>>26;for(;R!==0&&N>>26;if(this.length=k.length,R!==0)this.words[this.length]=R,this.length++;else if(k!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var A=this.iadd(h);return h.negative=1,A._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,R;k>0?(I=this,R=h):(I=h,R=this);for(var N=0,j=0;j>26,this.words[j]=A&67108863;for(;N!==0&&j>26,this.words[j]=A&67108863;if(N===0&&j>>26,F=C&67108863,E=Math.min(m,h.length-1),B=Math.max(0,m-O.length+1);B<=E;B++){var V=m-B|0;I=O.words[V]|0,R=h.words[B]|0,N=I*R+F,T+=N/67108864|0,F=N&67108863}A.words[m]=F|0,C=T|0}return C!==0?A.words[m]=C|0:A.length--,A._strip()}var b=function(h,A,k){var I=h.words,R=A.words,N=k.words,j=0,C,m,T,F=I[0]|0,E=F&8191,B=F>>>13,V=I[1]|0,q=V&8191,K=V>>>13,oe=I[2]|0,ee=oe&8191,te=oe>>>13,Ie=I[3]|0,ue=Ie&8191,we=Ie>>>13,zt=I[4]|0,Ve=zt&8191,ot=zt>>>13,Jn=I[5]|0,at=Jn&8191,Ge=Jn>>>13,un=I[6]|0,Ze=un&8191,ft=un>>>13,Xn=I[7]|0,ze=Xn&8191,et=Xn>>>13,pi=I[8]|0,nt=pi&8191,pt=pi>>>13,_r=I[9]|0,ut=_r&8191,dt=_r>>>13,mi=R[0]|0,mt=mi&8191,ht=mi>>>13,In=R[1]|0,vt=In&8191,lt=In>>>13,Qi=R[2]|0,yt=Qi&8191,gt=Qi>>>13,gi=R[3]|0,xt=gi&8191,U=gi>>>13,G=R[4]|0,Q=G&8191,ie=G>>>13,he=R[5]|0,me=he&8191,de=he>>>13,ye=R[6]|0,ge=ye&8191,pe=ye>>>13,Rt=R[7]|0,_e=Rt&8191,ve=Rt>>>13,Ke=R[8]|0,ke=Ke&8191,tt=Ke>>>13,Or=R[9]|0,Qe=Or&8191,Ye=Or>>>13;k.negative=h.negative^A.negative,k.length=19,C=Math.imul(E,mt),m=Math.imul(E,ht),m=m+Math.imul(B,mt)|0,T=Math.imul(B,ht);var Hr=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,C=Math.imul(q,mt),m=Math.imul(q,ht),m=m+Math.imul(K,mt)|0,T=Math.imul(K,ht),C=C+Math.imul(E,vt)|0,m=m+Math.imul(E,lt)|0,m=m+Math.imul(B,vt)|0,T=T+Math.imul(B,lt)|0;var cr=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(cr>>>26)|0,cr&=67108863,C=Math.imul(ee,mt),m=Math.imul(ee,ht),m=m+Math.imul(te,mt)|0,T=Math.imul(te,ht),C=C+Math.imul(q,vt)|0,m=m+Math.imul(q,lt)|0,m=m+Math.imul(K,vt)|0,T=T+Math.imul(K,lt)|0,C=C+Math.imul(E,yt)|0,m=m+Math.imul(E,gt)|0,m=m+Math.imul(B,yt)|0,T=T+Math.imul(B,gt)|0;var dn=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(dn>>>26)|0,dn&=67108863,C=Math.imul(ue,mt),m=Math.imul(ue,ht),m=m+Math.imul(we,mt)|0,T=Math.imul(we,ht),C=C+Math.imul(ee,vt)|0,m=m+Math.imul(ee,lt)|0,m=m+Math.imul(te,vt)|0,T=T+Math.imul(te,lt)|0,C=C+Math.imul(q,yt)|0,m=m+Math.imul(q,gt)|0,m=m+Math.imul(K,yt)|0,T=T+Math.imul(K,gt)|0,C=C+Math.imul(E,xt)|0,m=m+Math.imul(E,U)|0,m=m+Math.imul(B,xt)|0,T=T+Math.imul(B,U)|0;var hn=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(hn>>>26)|0,hn&=67108863,C=Math.imul(Ve,mt),m=Math.imul(Ve,ht),m=m+Math.imul(ot,mt)|0,T=Math.imul(ot,ht),C=C+Math.imul(ue,vt)|0,m=m+Math.imul(ue,lt)|0,m=m+Math.imul(we,vt)|0,T=T+Math.imul(we,lt)|0,C=C+Math.imul(ee,yt)|0,m=m+Math.imul(ee,gt)|0,m=m+Math.imul(te,yt)|0,T=T+Math.imul(te,gt)|0,C=C+Math.imul(q,xt)|0,m=m+Math.imul(q,U)|0,m=m+Math.imul(K,xt)|0,T=T+Math.imul(K,U)|0,C=C+Math.imul(E,Q)|0,m=m+Math.imul(E,ie)|0,m=m+Math.imul(B,Q)|0,T=T+Math.imul(B,ie)|0;var vn=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(vn>>>26)|0,vn&=67108863,C=Math.imul(at,mt),m=Math.imul(at,ht),m=m+Math.imul(Ge,mt)|0,T=Math.imul(Ge,ht),C=C+Math.imul(Ve,vt)|0,m=m+Math.imul(Ve,lt)|0,m=m+Math.imul(ot,vt)|0,T=T+Math.imul(ot,lt)|0,C=C+Math.imul(ue,yt)|0,m=m+Math.imul(ue,gt)|0,m=m+Math.imul(we,yt)|0,T=T+Math.imul(we,gt)|0,C=C+Math.imul(ee,xt)|0,m=m+Math.imul(ee,U)|0,m=m+Math.imul(te,xt)|0,T=T+Math.imul(te,U)|0,C=C+Math.imul(q,Q)|0,m=m+Math.imul(q,ie)|0,m=m+Math.imul(K,Q)|0,T=T+Math.imul(K,ie)|0,C=C+Math.imul(E,me)|0,m=m+Math.imul(E,de)|0,m=m+Math.imul(B,me)|0,T=T+Math.imul(B,de)|0;var De=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(De>>>26)|0,De&=67108863,C=Math.imul(Ze,mt),m=Math.imul(Ze,ht),m=m+Math.imul(ft,mt)|0,T=Math.imul(ft,ht),C=C+Math.imul(at,vt)|0,m=m+Math.imul(at,lt)|0,m=m+Math.imul(Ge,vt)|0,T=T+Math.imul(Ge,lt)|0,C=C+Math.imul(Ve,yt)|0,m=m+Math.imul(Ve,gt)|0,m=m+Math.imul(ot,yt)|0,T=T+Math.imul(ot,gt)|0,C=C+Math.imul(ue,xt)|0,m=m+Math.imul(ue,U)|0,m=m+Math.imul(we,xt)|0,T=T+Math.imul(we,U)|0,C=C+Math.imul(ee,Q)|0,m=m+Math.imul(ee,ie)|0,m=m+Math.imul(te,Q)|0,T=T+Math.imul(te,ie)|0,C=C+Math.imul(q,me)|0,m=m+Math.imul(q,de)|0,m=m+Math.imul(K,me)|0,T=T+Math.imul(K,de)|0,C=C+Math.imul(E,ge)|0,m=m+Math.imul(E,pe)|0,m=m+Math.imul(B,ge)|0,T=T+Math.imul(B,pe)|0;var fr=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(fr>>>26)|0,fr&=67108863,C=Math.imul(ze,mt),m=Math.imul(ze,ht),m=m+Math.imul(et,mt)|0,T=Math.imul(et,ht),C=C+Math.imul(Ze,vt)|0,m=m+Math.imul(Ze,lt)|0,m=m+Math.imul(ft,vt)|0,T=T+Math.imul(ft,lt)|0,C=C+Math.imul(at,yt)|0,m=m+Math.imul(at,gt)|0,m=m+Math.imul(Ge,yt)|0,T=T+Math.imul(Ge,gt)|0,C=C+Math.imul(Ve,xt)|0,m=m+Math.imul(Ve,U)|0,m=m+Math.imul(ot,xt)|0,T=T+Math.imul(ot,U)|0,C=C+Math.imul(ue,Q)|0,m=m+Math.imul(ue,ie)|0,m=m+Math.imul(we,Q)|0,T=T+Math.imul(we,ie)|0,C=C+Math.imul(ee,me)|0,m=m+Math.imul(ee,de)|0,m=m+Math.imul(te,me)|0,T=T+Math.imul(te,de)|0,C=C+Math.imul(q,ge)|0,m=m+Math.imul(q,pe)|0,m=m+Math.imul(K,ge)|0,T=T+Math.imul(K,pe)|0,C=C+Math.imul(E,_e)|0,m=m+Math.imul(E,ve)|0,m=m+Math.imul(B,_e)|0,T=T+Math.imul(B,ve)|0;var Nr=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,C=Math.imul(nt,mt),m=Math.imul(nt,ht),m=m+Math.imul(pt,mt)|0,T=Math.imul(pt,ht),C=C+Math.imul(ze,vt)|0,m=m+Math.imul(ze,lt)|0,m=m+Math.imul(et,vt)|0,T=T+Math.imul(et,lt)|0,C=C+Math.imul(Ze,yt)|0,m=m+Math.imul(Ze,gt)|0,m=m+Math.imul(ft,yt)|0,T=T+Math.imul(ft,gt)|0,C=C+Math.imul(at,xt)|0,m=m+Math.imul(at,U)|0,m=m+Math.imul(Ge,xt)|0,T=T+Math.imul(Ge,U)|0,C=C+Math.imul(Ve,Q)|0,m=m+Math.imul(Ve,ie)|0,m=m+Math.imul(ot,Q)|0,T=T+Math.imul(ot,ie)|0,C=C+Math.imul(ue,me)|0,m=m+Math.imul(ue,de)|0,m=m+Math.imul(we,me)|0,T=T+Math.imul(we,de)|0,C=C+Math.imul(ee,ge)|0,m=m+Math.imul(ee,pe)|0,m=m+Math.imul(te,ge)|0,T=T+Math.imul(te,pe)|0,C=C+Math.imul(q,_e)|0,m=m+Math.imul(q,ve)|0,m=m+Math.imul(K,_e)|0,T=T+Math.imul(K,ve)|0,C=C+Math.imul(E,ke)|0,m=m+Math.imul(E,tt)|0,m=m+Math.imul(B,ke)|0,T=T+Math.imul(B,tt)|0;var Yt=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(ut,mt),m=Math.imul(ut,ht),m=m+Math.imul(dt,mt)|0,T=Math.imul(dt,ht),C=C+Math.imul(nt,vt)|0,m=m+Math.imul(nt,lt)|0,m=m+Math.imul(pt,vt)|0,T=T+Math.imul(pt,lt)|0,C=C+Math.imul(ze,yt)|0,m=m+Math.imul(ze,gt)|0,m=m+Math.imul(et,yt)|0,T=T+Math.imul(et,gt)|0,C=C+Math.imul(Ze,xt)|0,m=m+Math.imul(Ze,U)|0,m=m+Math.imul(ft,xt)|0,T=T+Math.imul(ft,U)|0,C=C+Math.imul(at,Q)|0,m=m+Math.imul(at,ie)|0,m=m+Math.imul(Ge,Q)|0,T=T+Math.imul(Ge,ie)|0,C=C+Math.imul(Ve,me)|0,m=m+Math.imul(Ve,de)|0,m=m+Math.imul(ot,me)|0,T=T+Math.imul(ot,de)|0,C=C+Math.imul(ue,ge)|0,m=m+Math.imul(ue,pe)|0,m=m+Math.imul(we,ge)|0,T=T+Math.imul(we,pe)|0,C=C+Math.imul(ee,_e)|0,m=m+Math.imul(ee,ve)|0,m=m+Math.imul(te,_e)|0,T=T+Math.imul(te,ve)|0,C=C+Math.imul(q,ke)|0,m=m+Math.imul(q,tt)|0,m=m+Math.imul(K,ke)|0,T=T+Math.imul(K,tt)|0,C=C+Math.imul(E,Qe)|0,m=m+Math.imul(E,Ye)|0,m=m+Math.imul(B,Qe)|0,T=T+Math.imul(B,Ye)|0;var Yi=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(ut,vt),m=Math.imul(ut,lt),m=m+Math.imul(dt,vt)|0,T=Math.imul(dt,lt),C=C+Math.imul(nt,yt)|0,m=m+Math.imul(nt,gt)|0,m=m+Math.imul(pt,yt)|0,T=T+Math.imul(pt,gt)|0,C=C+Math.imul(ze,xt)|0,m=m+Math.imul(ze,U)|0,m=m+Math.imul(et,xt)|0,T=T+Math.imul(et,U)|0,C=C+Math.imul(Ze,Q)|0,m=m+Math.imul(Ze,ie)|0,m=m+Math.imul(ft,Q)|0,T=T+Math.imul(ft,ie)|0,C=C+Math.imul(at,me)|0,m=m+Math.imul(at,de)|0,m=m+Math.imul(Ge,me)|0,T=T+Math.imul(Ge,de)|0,C=C+Math.imul(Ve,ge)|0,m=m+Math.imul(Ve,pe)|0,m=m+Math.imul(ot,ge)|0,T=T+Math.imul(ot,pe)|0,C=C+Math.imul(ue,_e)|0,m=m+Math.imul(ue,ve)|0,m=m+Math.imul(we,_e)|0,T=T+Math.imul(we,ve)|0,C=C+Math.imul(ee,ke)|0,m=m+Math.imul(ee,tt)|0,m=m+Math.imul(te,ke)|0,T=T+Math.imul(te,tt)|0,C=C+Math.imul(q,Qe)|0,m=m+Math.imul(q,Ye)|0,m=m+Math.imul(K,Qe)|0,T=T+Math.imul(K,Ye)|0;var ma=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(ma>>>26)|0,ma&=67108863,C=Math.imul(ut,yt),m=Math.imul(ut,gt),m=m+Math.imul(dt,yt)|0,T=Math.imul(dt,gt),C=C+Math.imul(nt,xt)|0,m=m+Math.imul(nt,U)|0,m=m+Math.imul(pt,xt)|0,T=T+Math.imul(pt,U)|0,C=C+Math.imul(ze,Q)|0,m=m+Math.imul(ze,ie)|0,m=m+Math.imul(et,Q)|0,T=T+Math.imul(et,ie)|0,C=C+Math.imul(Ze,me)|0,m=m+Math.imul(Ze,de)|0,m=m+Math.imul(ft,me)|0,T=T+Math.imul(ft,de)|0,C=C+Math.imul(at,ge)|0,m=m+Math.imul(at,pe)|0,m=m+Math.imul(Ge,ge)|0,T=T+Math.imul(Ge,pe)|0,C=C+Math.imul(Ve,_e)|0,m=m+Math.imul(Ve,ve)|0,m=m+Math.imul(ot,_e)|0,T=T+Math.imul(ot,ve)|0,C=C+Math.imul(ue,ke)|0,m=m+Math.imul(ue,tt)|0,m=m+Math.imul(we,ke)|0,T=T+Math.imul(we,tt)|0,C=C+Math.imul(ee,Qe)|0,m=m+Math.imul(ee,Ye)|0,m=m+Math.imul(te,Qe)|0,T=T+Math.imul(te,Ye)|0;var Wl=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(Wl>>>26)|0,Wl&=67108863,C=Math.imul(ut,xt),m=Math.imul(ut,U),m=m+Math.imul(dt,xt)|0,T=Math.imul(dt,U),C=C+Math.imul(nt,Q)|0,m=m+Math.imul(nt,ie)|0,m=m+Math.imul(pt,Q)|0,T=T+Math.imul(pt,ie)|0,C=C+Math.imul(ze,me)|0,m=m+Math.imul(ze,de)|0,m=m+Math.imul(et,me)|0,T=T+Math.imul(et,de)|0,C=C+Math.imul(Ze,ge)|0,m=m+Math.imul(Ze,pe)|0,m=m+Math.imul(ft,ge)|0,T=T+Math.imul(ft,pe)|0,C=C+Math.imul(at,_e)|0,m=m+Math.imul(at,ve)|0,m=m+Math.imul(Ge,_e)|0,T=T+Math.imul(Ge,ve)|0,C=C+Math.imul(Ve,ke)|0,m=m+Math.imul(Ve,tt)|0,m=m+Math.imul(ot,ke)|0,T=T+Math.imul(ot,tt)|0,C=C+Math.imul(ue,Qe)|0,m=m+Math.imul(ue,Ye)|0,m=m+Math.imul(we,Qe)|0,T=T+Math.imul(we,Ye)|0;var D0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(D0>>>26)|0,D0&=67108863,C=Math.imul(ut,Q),m=Math.imul(ut,ie),m=m+Math.imul(dt,Q)|0,T=Math.imul(dt,ie),C=C+Math.imul(nt,me)|0,m=m+Math.imul(nt,de)|0,m=m+Math.imul(pt,me)|0,T=T+Math.imul(pt,de)|0,C=C+Math.imul(ze,ge)|0,m=m+Math.imul(ze,pe)|0,m=m+Math.imul(et,ge)|0,T=T+Math.imul(et,pe)|0,C=C+Math.imul(Ze,_e)|0,m=m+Math.imul(Ze,ve)|0,m=m+Math.imul(ft,_e)|0,T=T+Math.imul(ft,ve)|0,C=C+Math.imul(at,ke)|0,m=m+Math.imul(at,tt)|0,m=m+Math.imul(Ge,ke)|0,T=T+Math.imul(Ge,tt)|0,C=C+Math.imul(Ve,Qe)|0,m=m+Math.imul(Ve,Ye)|0,m=m+Math.imul(ot,Qe)|0,T=T+Math.imul(ot,Ye)|0;var L0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(L0>>>26)|0,L0&=67108863,C=Math.imul(ut,me),m=Math.imul(ut,de),m=m+Math.imul(dt,me)|0,T=Math.imul(dt,de),C=C+Math.imul(nt,ge)|0,m=m+Math.imul(nt,pe)|0,m=m+Math.imul(pt,ge)|0,T=T+Math.imul(pt,pe)|0,C=C+Math.imul(ze,_e)|0,m=m+Math.imul(ze,ve)|0,m=m+Math.imul(et,_e)|0,T=T+Math.imul(et,ve)|0,C=C+Math.imul(Ze,ke)|0,m=m+Math.imul(Ze,tt)|0,m=m+Math.imul(ft,ke)|0,T=T+Math.imul(ft,tt)|0,C=C+Math.imul(at,Qe)|0,m=m+Math.imul(at,Ye)|0,m=m+Math.imul(Ge,Qe)|0,T=T+Math.imul(Ge,Ye)|0;var j0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(j0>>>26)|0,j0&=67108863,C=Math.imul(ut,ge),m=Math.imul(ut,pe),m=m+Math.imul(dt,ge)|0,T=Math.imul(dt,pe),C=C+Math.imul(nt,_e)|0,m=m+Math.imul(nt,ve)|0,m=m+Math.imul(pt,_e)|0,T=T+Math.imul(pt,ve)|0,C=C+Math.imul(ze,ke)|0,m=m+Math.imul(ze,tt)|0,m=m+Math.imul(et,ke)|0,T=T+Math.imul(et,tt)|0,C=C+Math.imul(Ze,Qe)|0,m=m+Math.imul(Ze,Ye)|0,m=m+Math.imul(ft,Qe)|0,T=T+Math.imul(ft,Ye)|0;var B0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(B0>>>26)|0,B0&=67108863,C=Math.imul(ut,_e),m=Math.imul(ut,ve),m=m+Math.imul(dt,_e)|0,T=Math.imul(dt,ve),C=C+Math.imul(nt,ke)|0,m=m+Math.imul(nt,tt)|0,m=m+Math.imul(pt,ke)|0,T=T+Math.imul(pt,tt)|0,C=C+Math.imul(ze,Qe)|0,m=m+Math.imul(ze,Ye)|0,m=m+Math.imul(et,Qe)|0,T=T+Math.imul(et,Ye)|0;var $0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+($0>>>26)|0,$0&=67108863,C=Math.imul(ut,ke),m=Math.imul(ut,tt),m=m+Math.imul(dt,ke)|0,T=Math.imul(dt,tt),C=C+Math.imul(nt,Qe)|0,m=m+Math.imul(nt,Ye)|0,m=m+Math.imul(pt,Qe)|0,T=T+Math.imul(pt,Ye)|0;var F0=(j+C|0)+((m&8191)<<13)|0;j=(T+(m>>>13)|0)+(F0>>>26)|0,F0&=67108863,C=Math.imul(ut,Qe),m=Math.imul(ut,Ye),m=m+Math.imul(dt,Qe)|0,T=Math.imul(dt,Ye);var U0=(j+C|0)+((m&8191)<<13)|0;return j=(T+(m>>>13)|0)+(U0>>>26)|0,U0&=67108863,N[0]=Hr,N[1]=cr,N[2]=dn,N[3]=hn,N[4]=vn,N[5]=De,N[6]=fr,N[7]=Nr,N[8]=Yt,N[9]=Yi,N[10]=ma,N[11]=Wl,N[12]=D0,N[13]=L0,N[14]=j0,N[15]=B0,N[16]=$0,N[17]=F0,N[18]=U0,j!==0&&(N[19]=j,k.length++),k};Math.imul||(b=x);function S(O,h,A){A.negative=h.negative^O.negative,A.length=O.length+h.length;for(var k=0,I=0,R=0;R>>26)|0,I+=N>>>26,N&=67108863}A.words[R]=j,k=N,N=I}return k!==0?A.words[R]=k:A.length--,A._strip()}function P(O,h,A){return S(O,h,A)}s.prototype.mulTo=function(h,A){var k,I=this.length+h.length;return this.length===10&&h.length===10?k=b(this,h,A):I<63?k=x(this,h,A):I<1024?k=S(this,h,A):k=P(this,h,A),k},s.prototype.mul=function(h){var A=new s(null);return A.words=new Array(this.length+h.length),this.mulTo(h,A)},s.prototype.mulf=function(h){var A=new s(null);return A.words=new Array(this.length+h.length),P(this,h,A)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var A=h<0;A&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var k=0,I=0;I>=26,k+=R/67108864|0,k+=N>>>26,this.words[I]=N&67108863}return k!==0&&(this.words[I]=k,this.length++),A?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var A=w(h);if(A.length===0)return new s(1);for(var k=this,I=0;I=0);var A=h%26,k=(h-A)/26,I=67108863>>>26-A<<26-A,R;if(A!==0){var N=0;for(R=0;R>>26-A}N&&(this.words[R]=N,this.length++)}if(k!==0){for(R=this.length-1;R>=0;R--)this.words[R+k]=this.words[R];for(R=0;R=0);var I;A?I=(A-A%26)/26:I=0;var R=h%26,N=Math.min((h-R)/26,this.length),j=67108863^67108863>>>R<N)for(this.length-=N,m=0;m=0&&(T!==0||m>=I);m--){var F=this.words[m]|0;this.words[m]=T<<26-R|F>>>R,T=F&j}return C&&T!==0&&(C.words[C.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,A,k){return n(this.negative===0),this.iushrn(h,A,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var A=h%26,k=(h-A)/26,I=1<=0);var A=h%26,k=(h-A)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(A!==0&&k++,this.length=Math.min(k,this.length),A!==0){var I=67108863^67108863>>>A<=67108864;A++)this.words[A]-=67108864,A===this.length-1?this.words[A+1]=1:this.words[A+1]++;return this.length=Math.max(this.length,A+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var A=0;A>26)-(C/67108864|0),this.words[R+k]=N&67108863}for(;R>26,this.words[R+k]=N&67108863;if(j===0)return this._strip();for(n(j===-1),j=0,R=0;R>26,this.words[R]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,A){var k=this.length-h.length,I=this.clone(),R=h,N=R.words[R.length-1]|0,j=this._countBits(N);k=26-j,k!==0&&(R=R.ushln(k),I.iushln(k),N=R.words[R.length-1]|0);var C=I.length-R.length,m;if(A!=="mod"){m=new s(null),m.length=C+1,m.words=new Array(m.length);for(var T=0;T=0;E--){var B=(I.words[R.length+E]|0)*67108864+(I.words[R.length+E-1]|0);for(B=Math.min(B/N|0,67108863),I._ishlnsubmul(R,B,E);I.negative!==0;)B--,I.negative=0,I._ishlnsubmul(R,1,E),I.isZero()||(I.negative^=1);m&&(m.words[E]=B)}return m&&m._strip(),I._strip(),A!=="div"&&k!==0&&I.iushrn(k),{div:m||null,mod:I}},s.prototype.divmod=function(h,A,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,R,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,A),A!=="mod"&&(I=N.div.neg()),A!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.iadd(h)),{div:I,mod:R}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),A),A!=="mod"&&(I=N.div.neg()),{div:I,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),A),A!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.isub(h)),{div:N.div,mod:R}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?A==="div"?{div:this.divn(h.words[0]),mod:null}:A==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,A)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var A=this.divmod(h);if(A.mod.isZero())return A.div;var k=A.div.negative!==0?A.mod.isub(h):A.mod,I=h.ushrn(1),R=h.andln(1),N=k.cmp(I);return N<0||R===1&&N===0?A.div:A.div.negative!==0?A.div.isubn(1):A.div.iaddn(1)},s.prototype.modrn=function(h){var A=h<0;A&&(h=-h),n(h<=67108863);for(var k=(1<<26)%h,I=0,R=this.length-1;R>=0;R--)I=(k*I+(this.words[R]|0))%h;return A?-I:I},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var A=h<0;A&&(h=-h),n(h<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var R=(this.words[I]|0)+k*67108864;this.words[I]=R/h|0,k=R%h}return this._strip(),A?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var A=this,k=h.clone();A.negative!==0?A=A.umod(h):A=A.clone();for(var I=new s(1),R=new s(0),N=new s(0),j=new s(1),C=0;A.isEven()&&k.isEven();)A.iushrn(1),k.iushrn(1),++C;for(var m=k.clone(),T=A.clone();!A.isZero();){for(var F=0,E=1;!(A.words[0]&E)&&F<26;++F,E<<=1);if(F>0)for(A.iushrn(F);F-- >0;)(I.isOdd()||R.isOdd())&&(I.iadd(m),R.isub(T)),I.iushrn(1),R.iushrn(1);for(var B=0,V=1;!(k.words[0]&V)&&B<26;++B,V<<=1);if(B>0)for(k.iushrn(B);B-- >0;)(N.isOdd()||j.isOdd())&&(N.iadd(m),j.isub(T)),N.iushrn(1),j.iushrn(1);A.cmp(k)>=0?(A.isub(k),I.isub(N),R.isub(j)):(k.isub(A),N.isub(I),j.isub(R))}return{a:N,b:j,gcd:k.iushln(C)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var A=this,k=h.clone();A.negative!==0?A=A.umod(h):A=A.clone();for(var I=new s(1),R=new s(0),N=k.clone();A.cmpn(1)>0&&k.cmpn(1)>0;){for(var j=0,C=1;!(A.words[0]&C)&&j<26;++j,C<<=1);if(j>0)for(A.iushrn(j);j-- >0;)I.isOdd()&&I.iadd(N),I.iushrn(1);for(var m=0,T=1;!(k.words[0]&T)&&m<26;++m,T<<=1);if(m>0)for(k.iushrn(m);m-- >0;)R.isOdd()&&R.iadd(N),R.iushrn(1);A.cmp(k)>=0?(A.isub(k),I.isub(R)):(k.isub(A),R.isub(I))}var F;return A.cmpn(1)===0?F=I:F=R,F.cmpn(0)<0&&F.iadd(h),F},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var A=this.clone(),k=h.clone();A.negative=0,k.negative=0;for(var I=0;A.isEven()&&k.isEven();I++)A.iushrn(1),k.iushrn(1);do{for(;A.isEven();)A.iushrn(1);for(;k.isEven();)k.iushrn(1);var R=A.cmp(k);if(R<0){var N=A;A=k,k=N}else if(R===0||k.cmpn(1)===0)break;A.isub(k)}while(!0);return k.iushln(I)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var A=h%26,k=(h-A)/26,I=1<>>26,j&=67108863,this.words[N]=j}return R!==0&&(this.words[N]=R,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var A=h<0;if(this.negative!==0&&!A)return-1;if(this.negative===0&&A)return 1;this._strip();var k;if(this.length>1)k=1;else{A&&(h=-h),n(h<=67108863,"Number is too big");var I=this.words[0]|0;k=I===h?0:Ih.length)return 1;if(this.length=0;k--){var I=this.words[k]|0,R=h.words[k]|0;if(I!==R){IR&&(A=1);break}}return A},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new Y(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},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(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var _={k256:null,p224:null,p192:null,p25519:null};function D(O,h){this.name=O,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},D.prototype.ireduce=function(h){var A=h,k;do this.split(A,this.tmp),A=this.imulK(A),A=A.iadd(this.tmp),k=A.bitLength();while(k>this.n);var I=k0?A.isub(this.p):A.strip!==void 0?A.strip():A._strip(),A},D.prototype.split=function(h,A){h.iushrn(this.n,0,A)},D.prototype.imulK=function(h){return h.imul(this.k)};function M(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(M,D),M.prototype.split=function(h,A){for(var k=4194303,I=Math.min(h.length,9),R=0;R>>22,N=j}N>>>=22,h.words[R-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},M.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var A=0,k=0;k>>=26,h.words[k]=R,A=I}return A!==0&&(h.words[h.length++]=A),h},s._prime=function(h){if(_[h])return _[h];var A;if(h==="k256")A=new M;else if(h==="p224")A=new L;else if(h==="p192")A=new z;else if(h==="p25519")A=new H;else throw new Error("Unknown prime "+h);return _[h]=A,A};function Y(O){if(typeof O=="string"){var h=s._prime(O);this.m=h.p,this.prime=h}else n(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}Y.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Y.prototype._verify2=function(h,A){n((h.negative|A.negative)===0,"red works only with positives"),n(h.red&&h.red===A.red,"red works only with red numbers")},Y.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Y.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Y.prototype.add=function(h,A){this._verify2(h,A);var k=h.add(A);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},Y.prototype.iadd=function(h,A){this._verify2(h,A);var k=h.iadd(A);return k.cmp(this.m)>=0&&k.isub(this.m),k},Y.prototype.sub=function(h,A){this._verify2(h,A);var k=h.sub(A);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},Y.prototype.isub=function(h,A){this._verify2(h,A);var k=h.isub(A);return k.cmpn(0)<0&&k.iadd(this.m),k},Y.prototype.shl=function(h,A){return this._verify1(h),this.imod(h.ushln(A))},Y.prototype.imul=function(h,A){return this._verify2(h,A),this.imod(h.imul(A))},Y.prototype.mul=function(h,A){return this._verify2(h,A),this.imod(h.mul(A))},Y.prototype.isqr=function(h){return this.imul(h,h.clone())},Y.prototype.sqr=function(h){return this.mul(h,h)},Y.prototype.sqrt=function(h){if(h.isZero())return h.clone();var A=this.m.andln(3);if(n(A%2===1),A===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}for(var I=this.m.subn(1),R=0;!I.isZero()&&I.andln(1)===0;)R++,I.iushrn(1);n(!I.isZero());var N=new s(1).toRed(this),j=N.redNeg(),C=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new s(2*m*m).toRed(this);this.pow(m,C).cmp(j)!==0;)m.redIAdd(j);for(var T=this.pow(m,I),F=this.pow(h,I.addn(1).iushrn(1)),E=this.pow(h,I),B=R;E.cmp(N)!==0;){for(var V=E,q=0;V.cmp(N)!==0;q++)V=V.redSqr();n(q=0;R--){for(var T=A.words[R],F=m-1;F>=0;F--){var E=T>>F&1;if(N!==I[0]&&(N=this.sqr(N)),E===0&&j===0){C=0;continue}j<<=1,j|=E,C++,!(C!==k&&(R!==0||F!==0))&&(N=this.mul(N,I[j]),C=0,j=0)}m=26}return N},Y.prototype.convertTo=function(h){var A=h.umod(this.m);return A===h?A.clone():A},Y.prototype.convertFrom=function(h){var A=h.clone();return A.red=null,A},s.mont=function(h){return new Z(h)};function Z(O){Y.call(this,O),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(Z,Y),Z.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},Z.prototype.convertFrom=function(h){var A=this.imod(h.mul(this.rinv));return A.red=null,A},Z.prototype.imul=function(h,A){if(h.isZero()||A.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(A),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.mul=function(h,A){if(h.isZero()||A.isZero())return new s(0)._forceRed(this);var k=h.mul(A),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.invm=function(h){var A=this.imod(h._invmp(this.m).mul(this.r2));return A._forceRed(this)}})(t,aA)})(Rg);var JU=Rg.exports;const Oe=Ss(JU),XU="logger/5.7.0";let O3=!1,N3=!1;const vd={debug:1,default:2,info:2,warning:3,error:4,off:5};let D3=vd.default,F1=null;function ZU(){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(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const L3=ZU();var Yy;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Yy||(Yy={}));var oi;(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"})(oi||(oi={}));const j3="0123456789abcdef";let W=class dr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();vd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(D3>vd[n])&&console.log.apply(console,r)}debug(...e){this._log(dr.levels.DEBUG,e)}info(...e){this._log(dr.levels.INFO,e)}warn(...e){this._log(dr.levels.WARNING,e)}makeError(e,r,n){if(N3)return this.makeError("censored error",r,{});r||(r=dr.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+=j3[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 oi.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 oi.CALL_EXCEPTION:case oi.INSUFFICIENT_FUNDS:case oi.MISSING_NEW:case oi.NONCE_EXPIRED:case oi.REPLACEMENT_UNDERPRICED:case oi.TRANSACTION_REPLACED:case oi.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,dr.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){L3&&this.throwError("platform missing String.prototype.normalize",dr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:L3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,dr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,dr.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,dr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",dr.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",dr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",dr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return F1||(F1=new dr(XU)),F1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",dr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),O3){if(!e)return;this.globalLogger().throwError("error censorship permanent",dr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}N3=!!e,O3=!!r}static setLogLevel(e){const r=vd[e.toLowerCase()];if(r==null){dr.globalLogger().warn("invalid log level - "+e);return}D3=r}static from(e){return new dr(e)}};W.errors=oi;W.levels=Yy;const ez="bytes/5.7.0",Ht=new W(ez);function XC(t){return!!t.toHexString}function rl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return rl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function x0(t){return He(t)&&!(t.length%2)||Dl(t)}function B3(t){return typeof t=="number"&&t==t&&t%1===0}function Dl(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!B3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ce(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),rl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),XC(t)&&(t=t.toHexString()),He(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;ice(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),rl(n)}function hs(t){let e=ce(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),rl(r)}function He(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const U1="0123456789abcdef";function fe(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=U1[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),XC(t))return t.toHexString();if(He(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(Dl(t)){let r="0x";for(let n=0;n>4]+U1[i&15]}return r}return Ht.throwArgumentError("invalid hexlify value","value",t)}function na(t){if(typeof t!="string")t=fe(t);else if(!He(t)||t.length%2)return null;return(t.length-2)/2}function vr(t,e,r){return typeof t!="string"?t=fe(t):(!He(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 rn(t){let e="0x";return t.forEach(r=>{e+=fe(r).substring(2)}),e}function Tg(t){const e=rz(fe(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function rz(t){typeof t!="string"&&(t=fe(t)),He(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 Ll(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(x0(t)){let r=ce(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=fe(r.slice(0,32)),e.s=fe(r.slice(32,64))):r.length===65?(e.r=fe(r.slice(0,32)),e.s=fe(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=fe(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=tz(ce(e._vs),32);e._vs=fe(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=fe(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||!He(e.r)?Ht.throwArgumentError("signature missing or invalid r","signature",t):e.r=kt(e.r,32),e.s==null||!He(e.s)?Ht.throwArgumentError("signature missing or invalid s","signature",t):e.s=kt(e.s,32);const r=ce(e.s);r[0]>=128&&Ht.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=fe(r);e._vs&&(He(e._vs)||Ht.throwArgumentError("signature invalid _vs","signature",t),e._vs=kt(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 $3(t){return t=Ll(t),fe(ir([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const ZC="bignumber/5.7.0";var hh=Oe.BN;const es=new W(ZC),z1={},F3=9007199254740991;function nz(t){return t!=null&&(ae.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||He(t)||typeof t=="bigint"||Dl(t))}let U3=!1;class ae{constructor(e,r){e!==z1&&es.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 en(Be(this).fromTwos(e))}toTwos(e){return en(Be(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return en(Be(this).add(Be(e)))}sub(e){return en(Be(this).sub(Be(e)))}div(e){return ae.from(e).isZero()&&On("division-by-zero","div"),en(Be(this).div(Be(e)))}mul(e){return en(Be(this).mul(Be(e)))}mod(e){const r=Be(e);return r.isNeg()&&On("division-by-zero","mod"),en(Be(this).umod(r))}pow(e){const r=Be(e);return r.isNeg()&&On("negative-power","pow"),en(Be(this).pow(r))}and(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),en(Be(this).and(r))}or(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),en(Be(this).or(r))}xor(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),en(Be(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&On("negative-width","mask"),en(Be(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&On("negative-width","shl"),en(Be(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&On("negative-width","shr"),en(Be(this).shrn(e))}eq(e){return Be(this).eq(Be(e))}lt(e){return Be(this).lt(Be(e))}lte(e){return Be(this).lte(Be(e))}gt(e){return Be(this).gt(Be(e))}gte(e){return Be(this).gte(Be(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Be(this).isZero()}toNumber(){try{return Be(this).toNumber()}catch{On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return es.throwError("this platform does not support BigInt",W.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?U3||(U3=!0,es.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?es.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W.errors.UNEXPECTED_ARGUMENT,{}):es.throwError("BigNumber.toString does not accept parameters",W.errors.UNEXPECTED_ARGUMENT,{})),Be(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(z1,Pf(e)):e.match(/^-?[0-9]+$/)?new ae(z1,Pf(new hh(e))):es.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&On("underflow","BigNumber.from",e),(e>=F3||e<=-F3)&&On("overflow","BigNumber.from",e),ae.from(String(e));const r=e;if(typeof r=="bigint")return ae.from(r.toString());if(Dl(r))return ae.from(fe(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return ae.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(He(n)||n[0]==="-"&&He(n.substring(1))))return ae.from(n)}return es.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Pf(t){if(typeof t!="string")return Pf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&es.throwArgumentError("invalid hex","value",t),t=Pf(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 en(t){return ae.from(Pf(t))}function Be(t){const e=ae.from(t).toHexString();return e[0]==="-"?new hh("-"+e.substring(3),16):new hh(e.substring(2),16)}function On(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),es.throwError(t,W.errors.NUMERIC_FAULT,n)}function iz(t){return new hh(t,36).toString(16)}const Yr=new W(ZC),Qc={},e7=ae.from(0),t7=ae.from(-1);function r7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Yr.throwError(t,W.errors.NUMERIC_FAULT,i)}let Yc="0";for(;Yc.length<256;)Yc+=Yc;function Mg(t){if(typeof t!="number")try{t=ae.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Yc.substring(0,t):Yr.throwArgumentError("invalid decimal size","decimals",t)}function yd(t,e){e==null&&(e=0);const r=Mg(e);t=ae.from(t);const n=t.lt(e7);n&&(t=t.mul(t7));let i=t.mod(r).toString();for(;i.length2&&Yr.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&&r7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Yr.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&&Yr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Yr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new nl(Qc,r,n,i)}}class Cr{constructor(e,r,n,i){e!==Qc&&Yr.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&&Yr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=Ai(this._value,this.format.decimals),n=Ai(e._value,e.format.decimals);return Cr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=Ai(this._value,this.format.decimals),n=Ai(e._value,e.format.decimals);return Cr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=Ai(this._value,this.format.decimals),n=Ai(e._value,e.format.decimals);return Cr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=Ai(this._value,this.format.decimals),n=Ai(e._value,e.format.decimals);return Cr.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=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(z3.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(z3.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)&&Yr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Cr.from("1"+Yc.substring(0,e),this.format),i=sz.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&&Yr.throwArgumentError("invalid byte width","width",e);const r=ae.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return kt(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Cr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!nz(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Cr.fromString(yd(e,r),nl.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=nl.from(r),i=Ai(e,n.decimals);!n.signed&&i.lt(e7)&&r7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=kt(s,n.width/8));const o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=nl.from(r);if(ce(e).length>n.width/8)throw new Error("overflow");let i=ae.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static from(e,r){if(typeof e=="string")return Cr.fromString(e,r);if(Dl(e))return Cr.fromBytes(e,r);try{return Cr.fromValue(e,0,r)}catch(n){if(n.code!==W.errors.INVALID_ARGUMENT)throw n}return Yr.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const z3=Cr.from(1),sz=Cr.from("0.5"),oz="properties/5.7.0";var az=globalThis&&globalThis.__awaiter||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 vh=new W(oz);function ne(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Oi(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 er(t){return az(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 n7(t,e){(!t||typeof t!="object")&&vh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||vh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function mr(t){const e={};for(const r in t)e[r]=t[r];return e}const lz={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function i7(t){if(t==null||lz[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;ria(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&ne(e,r,ia(n))}return e}return vh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function ia(t){return cz(t)}class ya{constructor(e){for(const r in e)this[r]=ia(e[r])}}const tu="abi/5.7.0",Ue=new W(tu),sa={};let V3={calldata:!0,memory:!0,storage:!0},fz={calldata:!0,memory:!0};function ju(t,e){if(t==="bytes"||t==="string"){if(V3[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&fz[e])return!0;return(V3[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function uz(t,e){let r=t;function n(a){Ue.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!==Je.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Je.full?", ":",")+")"):r+=this.type,e!==Je.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Je.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?br.fromString(e,r):br.fromObject(e)}static fromObject(e){return br.isParamType(e)?e:new br(sa,{name:e.name||null,type:Pa(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(br.fromObject):null})}static fromString(e,r){function n(i){return br.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(uz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Rf(t,e){return vz(t).map(r=>br.fromString(r,e))}class cs{constructor(e,r){e!==sa&&Ue.throwError("use a static from method",W.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),pd(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return cs.isFragment(e)?e:typeof e=="string"?cs.fromString(e):cs.fromObject(e)}static fromObject(e){if(cs.isFragment(e))return e;switch(e.type){case"function":return Mi.fromObject(e);case"event":return is.fromObject(e);case"constructor":return Ti.fromObject(e);case"error":return zs.fromObject(e);case"fallback":case"receive":return null}return Ue.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"?is.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Mi.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Ti.fromString(e.trim()):e.split(" ")[0]==="error"?zs.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class is extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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!==Je.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?is.fromString(e):is.fromObject(e)}static fromObject(e){if(is.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:Tf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(br.fromObject):[],type:"event"};return new is(sa,r)}static fromString(e){let r=e.match(Mf);r||Ue.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:Ue.warn("unknown modifier: "+i)}}),is.fromObject({name:r[1].trim(),anonymous:n,inputs:Rf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function s7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&Ue.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||Ue.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=ae.from(r[1]),r[0]):t}function o7(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 a7(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&&Ue.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&Ue.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"&&Ue.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&&Ue.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"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e}class Ti extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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===Je.sighash&&Ue.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===Je.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Ti.fromString(e):Ti.fromObject(e)}static fromObject(e){if(Ti.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=a7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Ti(sa,n)}static fromString(e){let r={type:"constructor"};e=s7(e,r);let n=e.match(Mf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=Rf(n[2].trim(),!1),o7(n[3].trim(),r),Ti.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Mi extends Ti{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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!==Je.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.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"?Mi.fromString(e):Mi.fromObject(e)}static fromObject(e){if(Mi.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=a7(e);const n={type:e.type,name:Tf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(br.fromObject):[],outputs:e.outputs?e.outputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Mi(sa,n)}static fromString(e){let r={type:"function"};e=s7(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Mf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(i[2],!1),o7(i[3].trim(),r),n.length>1){let s=n[1].match(Mf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=Rf(s[2],!1)}else r.outputs=[];return Mi.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function q3(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class zs extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Je.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?zs.fromString(e):zs.fromObject(e)}static fromObject(e){if(zs.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Tf(e.name),inputs:e.inputs?e.inputs.map(br.fromObject):[]};return q3(new zs(sa,r))}static fromString(e){let r={type:"error"},n=e.match(Mf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(n[2],!1),q3(zs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Pa(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const hz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Tf(t){return(!t||!t.match(hz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Mf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function vz(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&Ig.throwError("value out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=ir([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 yh{constructor(e,r,n,i){ne(this,"_data",ce(e)),ne(this,"wordSize",r||32),ne(this,"_coerceFunc",n),ne(this,"allowLoose",i),this._offset=0}get data(){return fe(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):yh.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:Ig.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 yh(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 ae.from(this.readBytes(this.wordSize))}}var l7={exports:{}};/** +}`.replace(/ {2}|\n/g,""),DU=function(e){var r=e.onSuccess,n=e.onError,i=e.skipScript,s=i===void 0?!1:i,o=e.authOptions,a=e.iconProps,l=e.render,c=e.uiType,f=c===void 0?"dark":c,u=e.className,d=e.noDefaultStyle,v=d===void 0?!1:d,g=e.buttonExtraChildren,y=g===void 0?"Continue with Apple":g,w=_U(e,TU);(0,RU.default)(s?null:T3.default.APPLE_SCRIPT_SRC);var x=function(P){P&&(P.preventDefault(),P.stopPropagation()),T3.default.signIn({authOptions:o,onSuccess:r,onError:n})},b=MU({children:wi.default.createElement(wi.default.Fragment,null,wi.default.createElement("svg",fh({width:"24px",height:"44px",viewBox:"0 0 24 44"},a),wi.default.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},wi.default.createElement("rect",{fill:f==="light"?"#FFF":"#000",x:"0",y:"0",width:"24",height:"44"}),wi.default.createElement("path",{d:"M12.2337427,16.9879688 C12.8896607,16.9879688 13.7118677,16.5445313 14.2014966,15.9532812 C14.6449341,15.4174609 14.968274,14.6691602 14.968274,13.9208594 C14.968274,13.8192383 14.9590357,13.7176172 14.9405591,13.6344727 C14.2107349,13.6621875 13.3330982,14.1241016 12.8065162,14.7430664 C12.3907935,15.2142188 12.012024,15.9532812 12.012024,16.7108203 C12.012024,16.8216797 12.0305005,16.9325391 12.0397388,16.9694922 C12.0859302,16.9787305 12.1598365,16.9879688 12.2337427,16.9879688 Z M9.92417241,28.1662891 C10.8202857,28.1662891 11.2175318,27.5658008 12.3353638,27.5658008 C13.4716724,27.5658008 13.721106,28.1478125 14.7188404,28.1478125 C15.6980982,28.1478125 16.3540162,27.2424609 16.972981,26.3555859 C17.6658521,25.339375 17.9522388,24.3416406 17.9707154,24.2954492 C17.9060474,24.2769727 16.0306763,23.5101953 16.0306763,21.3576758 C16.0306763,19.491543 17.5088013,18.6508594 17.5919459,18.5861914 C16.612688,17.1819727 15.1253248,17.1450195 14.7188404,17.1450195 C13.6194849,17.1450195 12.7233716,17.8101758 12.1598365,17.8101758 C11.5501099,17.8101758 10.7463794,17.1819727 9.79483648,17.1819727 C7.98413335,17.1819727 6.14571538,18.6785742 6.14571538,21.5054883 C6.14571538,23.2607617 6.8293482,25.1176563 7.67003179,26.3186328 C8.39061773,27.3348438 9.01882085,28.1662891 9.92417241,28.1662891 Z",fill:f==="light"?"#000":"#FFF",fillRule:"nonzero"}))),y),onClick:x},w);return l?l(b):wi.default.createElement(wi.default.Fragment,null,wi.default.createElement("button",fh({className:"".concat(v?"":"react-apple-signin-auth-btn react-apple-signin-auth-btn-".concat(f)).concat(u?" ".concat(u):""),type:"button","aria-label":"Signin with apple ID"},b)),v?null:wi.default.createElement("style",null,NU))},LU=DU;m0.default=LU;(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appleAuthHelpers",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"useScript",{enumerable:!0,get:function(){return n.default}}),t.default=void 0;var e=i(m0),r=i(eu),n=i(Zf);function i(o){return o&&o.__esModule?o:{default:o}}var s=e.default;t.default=s})(LC);const jU=Ss(LC);function uh(){return uh=Object.assign?Object.assign.bind():function(t){for(var e=1;ethis.fetch(this.url("Ping"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.version=(n,i)=>this.fetch(this.url("Version"),Vt({},n,i)).then(s=>Jt(s).then(o=>({version:o.version})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.runtimeStatus=(n,i)=>this.fetch(this.url("RuntimeStatus"),Vt({},n,i)).then(s=>Jt(s).then(o=>({status:o.status})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getChainID=(n,i)=>this.fetch(this.url("GetChainID"),Vt({},n,i)).then(s=>Jt(s).then(o=>({chainID:o.chainID})),s=>{throw qt.new({cause:`fetch(): ${s.message||""}`})}),this.getEtherBalance=(n,i,s)=>this.fetch(this.url("GetEtherBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({balance:a.balance})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenBalances=(n,i,s)=>this.fetch(this.url("GetTokenBalances"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSupplies=(n,i,s)=>this.fetch(this.url("GetTokenSupplies"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,contractType:a.contractType,tokenIDs:a.tokenIDs})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTokenSuppliesMap=(n,i,s)=>this.fetch(this.url("GetTokenSuppliesMap"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({supplies:a.supplies})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getBalanceUpdates=(n,i,s)=>this.fetch(this.url("GetBalanceUpdates"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,balances:a.balances})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTransactionHistory=(n,i,s)=>this.fetch(this.url("GetTransactionHistory"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,transactions:a.transactions})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.syncBalance=(n,i,s)=>this.fetch(this.url("SyncBalance"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceipt=(n,i,s)=>this.fetch(this.url("FetchTransactionReceipt"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getOrderbookOrders=(n,i,s)=>this.fetch(this.url("GetOrderbookOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({page:a.page,orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getTopOrders=(n,i,s)=>this.fetch(this.url("GetTopOrders"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({orders:a.orders})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.fetchTransactionReceiptWithFilter=(n,i,s)=>this.fetch(this.url("FetchTransactionReceiptWithFilter"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({receipt:a.receipt})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getAllWebhookListeners=(n,i,s)=>this.fetch(this.url("GetAllWebhookListeners"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listeners:a.listeners})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.getWebhookListener=(n,i,s)=>this.fetch(this.url("GetWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.addWebhookListener=(n,i,s)=>this.fetch(this.url("AddWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status,listener:a.listener})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.updateWebhookListener=(n,i,s)=>this.fetch(this.url("UpdateWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.removeWebhookListener=(n,i,s)=>this.fetch(this.url("RemoveWebhookListener"),Vt(n,i,s)).then(o=>Jt(o).then(a=>({status:a.status})),o=>{throw qt.new({cause:`fetch(): ${o.message||""}`})}),this.subscribeReceipts=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeReceipts"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.subscribeEvents=(n,i)=>{const s=()=>this.fetch(this.url("SubscribeEvents"),Vt(n,i.headers,i.signal)).then(async function(o){await I3(o,i,s)},o=>{i.onError(o,s)});return s()},this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const I3=async(t,e,r)=>{const{onMessage:n,onOpen:i,onClose:s,onError:o}=e;if(!t.ok){try{await Jt(t)}catch(v){o(v,r)}return}if(!t.body){o(dh.new({status:t.status,cause:"Invalid response, missing body"}),r);return}i&&i();const a=t.body.getReader(),l=new TextDecoder;let c="",f=Date.now();const u=(10+1)*1e3;let d;try{for(d=setInterval(()=>{if(Date.now()-f>u)throw hd.new({cause:"Stream timed out"})},u);;){let v,g;try{({value:v,done:g}=await a.read()),f=Date.now(),c+=l.decode(v,{stream:!0})}catch(w){let x="";w instanceof Error&&(x=w.message),w instanceof DOMException&&w.name==="AbortError"?o(qt.new({message:"AbortError",cause:`AbortError: ${x}`}),()=>{throw new Error("Abort signal cannot be used to reconnect")}):o(hd.new({cause:`reader.read(): ${x}`}),r);return}let y=c.split(` +`);for(let w=0;w({method:"POST",headers:uh({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Jt=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),dh.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(YC[n]||Pt).new(r)}return r});let Pt=class jC extends Error{constructor(e,r,n,i,s){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 i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,jC.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}},$U=class BC extends Pt{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,BC.prototype)}},qt=class $C extends Pt{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,$C.prototype)}},FU=class FC extends Pt{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,FC.prototype)}},UU=class UC extends Pt{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,UC.prototype)}},zU=class zC extends Pt{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,zC.prototype)}},dh=class VC extends Pt{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,VC.prototype)}},VU=class qC extends Pt{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,qC.prototype)}},qU=class HC extends Pt{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,HC.prototype)}},HU=class WC extends Pt{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,WC.prototype)}},hd=class GC extends Pt{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,GC.prototype)}},WU=class KC extends Pt{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,KC.prototype)}},GU=class QC extends Pt{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,QC.prototype)}};class pg extends Pt{constructor(e="PermissionDenied",r=1001,n="Permission denied",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,pg.prototype)}}class mg extends Pt{constructor(e="SessionExpired",r=1002,n="Session expired",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,mg.prototype)}}class gg extends Pt{constructor(e="MethodNotFound",r=1003,n="Method not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,gg.prototype)}}class xg extends Pt{constructor(e="RequestConflict",r=1004,n="Conflict with target resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,xg.prototype)}}class bg extends Pt{constructor(e="Aborted",r=1005,n="Request aborted",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,bg.prototype)}}class wg extends Pt{constructor(e="Timeout",r=2e3,n="Request timed out",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,wg.prototype)}}class Eg extends Pt{constructor(e="InvalidArgument",r=2001,n="Invalid argument",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Eg.prototype)}}class Ag extends Pt{constructor(e="Unavailable",r=2002,n="Unavailable resource",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Ag.prototype)}}class Sg extends Pt{constructor(e="QueryFailed",r=2003,n="Query failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Sg.prototype)}}class Cg extends Pt{constructor(e="NotFound",r=3e3,n="Resource not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Cg.prototype)}}class kg extends Pt{constructor(e="ProjectNotFound",r=3002,n="Project not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,kg.prototype)}}class Pg extends Pt{constructor(e="MetadataCallFailed",r=3003,n="Metadata service call failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Pg.prototype)}}const YC={0:$U,[-1]:qt,[-2]:FU,[-3]:UU,[-4]:zU,[-5]:dh,[-6]:VU,[-7]:qU,[-8]:HU,[-9]:hd,[-10]:WU,1e3:GU,1001:pg,1002:mg,1003:gg,1004:xg,1005:bg,2e3:wg,2001:Eg,2002:Ag,2003:Sg,3e3:Cg,3002:kg,3003:Pg},_3=typeof global=="object"?global.fetch:window.fetch;class JC extends BU{constructor(e,r,n){super(e.endsWith("/")?e.slice(0,-1):e,_3),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=uh({},s.headers,o),_3(i,s)},this.fetch=this._fetch}}let X=function(t){return t[t.MAINNET=1]="MAINNET",t[t.ROPSTEN=3]="ROPSTEN",t[t.RINKEBY=4]="RINKEBY",t[t.GOERLI=5]="GOERLI",t[t.KOVAN=42]="KOVAN",t[t.SEPOLIA=11155111]="SEPOLIA",t[t.POLYGON=137]="POLYGON",t[t.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",t[t.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",t[t.POLYGON_AMOY=80002]="POLYGON_AMOY",t[t.BSC=56]="BSC",t[t.BSC_TESTNET=97]="BSC_TESTNET",t[t.OPTIMISM=10]="OPTIMISM",t[t.OPTIMISM_KOVAN=69]="OPTIMISM_KOVAN",t[t.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",t[t.OPTIMISM_SEPOLIA=11155420]="OPTIMISM_SEPOLIA",t[t.ARBITRUM=42161]="ARBITRUM",t[t.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",t[t.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",t[t.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",t[t.AVALANCHE=43114]="AVALANCHE",t[t.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",t[t.GNOSIS=100]="GNOSIS",t[t.BASE=8453]="BASE",t[t.BASE_GOERLI=84531]="BASE_GOERLI",t[t.BASE_SEPOLIA=84532]="BASE_SEPOLIA",t[t.HOMEVERSE_TESTNET=40875]="HOMEVERSE_TESTNET",t[t.HOMEVERSE=19011]="HOMEVERSE",t[t.XAI=660279]="XAI",t[t.XAI_SEPOLIA=37714555429]="XAI_SEPOLIA",t[t.ASTAR_ZKEVM=3776]="ASTAR_ZKEVM",t[t.ASTAR_ZKYOTO=6038361]="ASTAR_ZKYOTO",t[t.XR_SEPOLIA=2730]="XR_SEPOLIA",t[t.HARDHAT=31337]="HARDHAT",t[t.HARDHAT_2=31338]="HARDHAT_2",t}({}),qe=function(t){return t.MAINNET="mainnet",t.TESTNET="testnet",t}({});const st={[X.MAINNET]:{chainId:X.MAINNET,type:qe.MAINNET,name:"mainnet",title:"Ethereum",logoURI:`https://assets.sequence.info/images/networks/medium/${X.MAINNET}.webp`,blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},[X.ROPSTEN]:{chainId:X.ROPSTEN,type:qe.TESTNET,name:"ropsten",title:"Ropsten",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ROPSTEN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.RINKEBY]:{chainId:X.RINKEBY,type:qe.TESTNET,name:"rinkeby",title:"Rinkeby",logoURI:`https://assets.sequence.info/images/networks/medium/${X.RINKEBY}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.GOERLI]:{chainId:X.GOERLI,type:qe.TESTNET,name:"goerli",title:"Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",deprecated:!0},[X.KOVAN]:{chainId:X.KOVAN,type:qe.TESTNET,name:"kovan",title:"Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"},deprecated:!0},[X.SEPOLIA]:{chainId:X.SEPOLIA,type:qe.TESTNET,name:"sepolia",title:"Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Sepolia)",rootUrl:"https://sepolia.etherscan.io/"}},[X.POLYGON]:{chainId:X.POLYGON,type:qe.MAINNET,name:"polygon",title:"Polygon",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON}.webp`,blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}},[X.POLYGON_MUMBAI]:{chainId:X.POLYGON_MUMBAI,type:qe.TESTNET,name:"mumbai",title:"Polygon Mumbai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_MUMBAI}.webp`,testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"},deprecated:!0},[X.POLYGON_AMOY]:{chainId:X.POLYGON_AMOY,type:qe.TESTNET,name:"amoy",title:"Polygon Amoy",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_AMOY}.webp`,testnet:!0,blockExplorer:{name:"OKLink (Amoy)",rootUrl:"https://www.oklink.com/amoy"}},[X.POLYGON_ZKEVM]:{chainId:X.POLYGON_ZKEVM,type:qe.MAINNET,name:"polygon-zkevm",title:"Polygon zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.POLYGON_ZKEVM}.webp`,blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}},[X.BSC]:{chainId:X.BSC,type:qe.MAINNET,name:"bsc",title:"BNB Smart Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC}.webp`,blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}},[X.BSC_TESTNET]:{chainId:X.BSC_TESTNET,type:qe.TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BSC_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}},[X.OPTIMISM]:{chainId:X.OPTIMISM,type:qe.MAINNET,name:"optimism",title:"Optimism",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM}.webp`,blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}},[X.OPTIMISM_KOVAN]:{chainId:X.OPTIMISM_KOVAN,type:qe.TESTNET,name:"optimism-kovan",title:"Optimistic Kovan",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_KOVAN}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Kovan)",rootUrl:"https://kovan-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_GOERLI]:{chainId:X.OPTIMISM_GOERLI,type:qe.TESTNET,name:"optimism-goerli",title:"Optimistic Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Goerli)",rootUrl:"https://goerli-optimistic.etherscan.io/"},deprecated:!0},[X.OPTIMISM_SEPOLIA]:{chainId:X.OPTIMISM_SEPOLIA,type:qe.TESTNET,name:"optimism-sepolia",title:"Optimistic Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.OPTIMISM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Etherscan (Optimism Sepolia)",rootUrl:"https://sepolia-optimistic.etherscan.io/"}},[X.ARBITRUM]:{chainId:X.ARBITRUM,type:qe.MAINNET,name:"arbitrum",title:"Arbitrum One",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM}.webp`,blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}},[X.ARBITRUM_GOERLI]:{chainId:X.ARBITRUM_GOERLI,type:qe.TESTNET,name:"arbitrum-goerli",title:"Arbitrum Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Goerli Testnet)",rootUrl:"https://testnet.arbiscan.io/"},deprecated:!0},[X.ARBITRUM_SEPOLIA]:{chainId:X.ARBITRUM_SEPOLIA,type:qe.TESTNET,name:"arbitrum-sepolia",title:"Arbitrum Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Arbiscan (Sepolia Testnet)",rootUrl:"https://sepolia.arbiscan.io/"}},[X.ARBITRUM_NOVA]:{chainId:X.ARBITRUM_NOVA,type:qe.MAINNET,name:"arbitrum-nova",title:"Arbitrum Nova",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ARBITRUM_NOVA}.webp`,blockExplorer:{name:"Arbiscan Nova",rootUrl:"https://nova.arbiscan.io/"}},[X.AVALANCHE]:{chainId:X.AVALANCHE,type:qe.MAINNET,name:"avalanche",title:"Avalanche",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE}.webp`,blockExplorer:{name:"Snowtrace",rootUrl:"https://subnets.avax.network/c-chain/"}},[X.AVALANCHE_TESTNET]:{chainId:X.AVALANCHE_TESTNET,type:qe.TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.AVALANCHE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://subnets-test.avax.network/c-chain/"}},[X.GNOSIS]:{chainId:X.GNOSIS,type:qe.MAINNET,name:"gnosis",title:"Gnosis Chain",logoURI:`https://assets.sequence.info/images/networks/medium/${X.GNOSIS}.webp`,blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}},[X.BASE]:{chainId:X.BASE,type:qe.MAINNET,name:"base",title:"Base (Coinbase)",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE}.webp`,blockExplorer:{name:"Base Explorer",rootUrl:"https://basescan.org/"}},[X.BASE_GOERLI]:{chainId:X.BASE_GOERLI,type:qe.TESTNET,name:"base-goerli",title:"Base Goerli",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_GOERLI}.webp`,testnet:!0,blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"},deprecated:!0},[X.BASE_SEPOLIA]:{chainId:X.BASE_SEPOLIA,type:qe.TESTNET,name:"base-sepolia",title:"Base Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.BASE_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Base Sepolia Explorer",rootUrl:"https://base-sepolia.blockscout.com/"}},[X.HOMEVERSE]:{chainId:X.HOMEVERSE,type:qe.MAINNET,name:"homeverse",title:"Oasys Homeverse",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE}.webp`,blockExplorer:{name:"Oasys Homeverse Explorer",rootUrl:"https://explorer.oasys.homeverse.games/"}},[X.HOMEVERSE_TESTNET]:{chainId:X.HOMEVERSE_TESTNET,type:qe.TESTNET,name:"homeverse-testnet",title:"Oasys Homeverse Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.HOMEVERSE_TESTNET}.webp`,testnet:!0,blockExplorer:{name:"Oasys Homeverse Explorer (Testnet)",rootUrl:"https://explorer.testnet.oasys.homeverse.games/"}},[X.XAI]:{chainId:X.XAI,type:qe.MAINNET,name:"xai",title:"Xai",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI}.webp`,blockExplorer:{name:"Xai Explorer",rootUrl:"https://explorer.xai-chain.net/"}},[X.XAI_SEPOLIA]:{chainId:X.XAI_SEPOLIA,type:qe.TESTNET,name:"xai-sepolia",title:"Xai Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XAI_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"Xai Sepolia Explorer",rootUrl:"https://testnet-explorer-v2.xai-chain.net/"}},[X.ASTAR_ZKEVM]:{chainId:X.ASTAR_ZKEVM,type:qe.MAINNET,name:"astar-zkevm",title:"Astar zkEVM",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKEVM}.webp`,blockExplorer:{name:"Astar zkEVM Explorer",rootUrl:"https://astar-zkevm.explorer.startale.com/"}},[X.ASTAR_ZKYOTO]:{chainId:X.ASTAR_ZKYOTO,type:qe.TESTNET,name:"astar-zkyoto",title:"Astar zKyoto Testnet",logoURI:`https://assets.sequence.info/images/networks/medium/${X.ASTAR_ZKYOTO}.webp`,testnet:!0,blockExplorer:{name:"Astar zKyoto Explorer",rootUrl:"https://astar-zkyoto.blockscout.com/"}},[X.XR_SEPOLIA]:{chainId:X.XR_SEPOLIA,type:qe.TESTNET,name:"xr-sepolia",title:"XR Sepolia",logoURI:`https://assets.sequence.info/images/networks/medium/${X.XR_SEPOLIA}.webp`,testnet:!0,blockExplorer:{name:"XR Sepolia Explorer",rootUrl:"https://xr-sepolia-testnet.explorer.caldera.xyz/"}},[X.HARDHAT]:{chainId:X.HARDHAT,name:"hardhat",title:"Hardhat (local testnet)"},[X.HARDHAT_2]:{chainId:X.HARDHAT_2,name:"hardhat2",title:"Hardhat (local testnet)"}};var Rg={exports:{}};const KU={},QU=Object.freeze(Object.defineProperty({__proto__:null,default:KU},Symbol.toStringTag,{value:"Module"})),YU=Ih(QU);Rg.exports;(function(t){(function(e,r){function n(O,h){if(!O)throw new Error(h||"Assertion failed")}function i(O,h){O.super_=h;var S=function(){};S.prototype=h.prototype,O.prototype=new S,O.prototype.constructor=O}function s(O,h,S){if(s.isBN(O))return O;this.negative=0,this.words=null,this.length=0,this.red=null,O!==null&&((h==="le"||h==="be")&&(S=h,h=10),this._init(O||0,h||10,S||"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=YU.Buffer}catch{}s.isBN=function(h){return h instanceof s?!0:h!==null&&typeof h=="object"&&h.constructor.wordSize===s.wordSize&&Array.isArray(h.words)},s.max=function(h,S){return h.cmp(S)>0?h:S},s.min=function(h,S){return h.cmp(S)<0?h:S},s.prototype._init=function(h,S,k){if(typeof h=="number")return this._initNumber(h,S,k);if(typeof h=="object")return this._initArray(h,S,k);S==="hex"&&(S=16),n(S===(S|0)&&S>=2&&S<=36),h=h.toString().replace(/\s+/g,"");var I=0;h[0]==="-"&&(I++,this.negative=1),I=0;I-=3)N=h[I]|h[I-1]<<8|h[I-2]<<16,this.words[R]|=N<>>26-B&67108863,B+=24,B>=26&&(B-=26,R++);else if(k==="le")for(I=0,R=0;I>>26-B&67108863,B+=24,B>=26&&(B-=26,R++);return this._strip()};function a(O,h){var S=O.charCodeAt(h);if(S>=48&&S<=57)return S-48;if(S>=65&&S<=70)return S-55;if(S>=97&&S<=102)return S-87;n(!1,"Invalid character in "+O)}function l(O,h,S){var k=a(O,S);return S-1>=h&&(k|=a(O,S-1)<<4),k}s.prototype._parseHex=function(h,S,k){this.length=Math.ceil((h.length-S)/6),this.words=new Array(this.length);for(var I=0;I=S;I-=2)B=l(h,S,I)<=18?(R-=18,N+=1,this.words[N]|=B>>>26):R+=8;else{var C=h.length-S;for(I=C%2===0?S+1:S;I=18?(R-=18,N+=1,this.words[N]|=B>>>26):R+=8}this._strip()};function c(O,h,S,k){for(var I=0,R=0,N=Math.min(O.length,S),B=h;B=49?R=C-49+10:C>=17?R=C-17+10:R=C,n(C>=0&&R1&&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 d=["","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"],v=[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(h,S){h=h||10,S=S|0||1;var k;if(h===16||h==="hex"){k="";for(var I=0,R=0,N=0;N>>24-I&16777215,I+=2,I>=26&&(I-=26,N--),R!==0||N!==this.length-1?k=d[6-C.length]+C+k:k=C+k}for(R!==0&&(k=R.toString(16)+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(h===(h|0)&&h>=2&&h<=36){var m=v[h],T=g[h];k="";var F=this.clone();for(F.negative=0;!F.isZero();){var E=F.modrn(T).toString(h);F=F.idivn(T),F.isZero()?k=E+k:k=d[m-E.length]+E+k}for(this.isZero()&&(k="0"+k);k.length%S!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var h=this.words[0];return this.length===2?h+=this.words[1]*67108864:this.length===3&&this.words[2]===1?h+=4503599627370496+this.words[1]*67108864:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-h:h},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(h,S){return this.toArrayLike(o,h,S)}),s.prototype.toArray=function(h,S){return this.toArrayLike(Array,h,S)};var y=function(h,S){return h.allocUnsafe?h.allocUnsafe(S):new h(S)};s.prototype.toArrayLike=function(h,S,k){this._strip();var I=this.byteLength(),R=k||Math.max(1,I);n(I<=R,"byte array longer than desired length"),n(R>0,"Requested array length <= 0");var N=y(h,R),B=S==="le"?"LE":"BE";return this["_toArrayLike"+B](N,I),N},s.prototype._toArrayLikeLE=function(h,S){for(var k=0,I=0,R=0,N=0;R>8&255),k>16&255),N===6?(k>24&255),I=0,N=0):(I=B>>>24,N+=2)}if(k=0&&(h[k--]=B>>8&255),k>=0&&(h[k--]=B>>16&255),N===6?(k>=0&&(h[k--]=B>>24&255),I=0,N=0):(I=B>>>24,N+=2)}if(k>=0)for(h[k--]=I;k>=0;)h[k--]=0},Math.clz32?s.prototype._countBits=function(h){return 32-Math.clz32(h)}:s.prototype._countBits=function(h){var S=h,k=0;return S>=4096&&(k+=13,S>>>=13),S>=64&&(k+=7,S>>>=7),S>=8&&(k+=4,S>>>=4),S>=2&&(k+=2,S>>>=2),k+S},s.prototype._zeroBits=function(h){if(h===0)return 26;var S=h,k=0;return S&8191||(k+=13,S>>>=13),S&127||(k+=7,S>>>=7),S&15||(k+=4,S>>>=4),S&3||(k+=2,S>>>=2),S&1||k++,k},s.prototype.bitLength=function(){var h=this.words[this.length-1],S=this._countBits(h);return(this.length-1)*26+S};function w(O){for(var h=new Array(O.bitLength()),S=0;S>>I&1}return h}s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var h=0,S=0;Sh.length?this.clone().ior(h):h.clone().ior(this)},s.prototype.uor=function(h){return this.length>h.length?this.clone().iuor(h):h.clone().iuor(this)},s.prototype.iuand=function(h){var S;this.length>h.length?S=h:S=this;for(var k=0;kh.length?this.clone().iand(h):h.clone().iand(this)},s.prototype.uand=function(h){return this.length>h.length?this.clone().iuand(h):h.clone().iuand(this)},s.prototype.iuxor=function(h){var S,k;this.length>h.length?(S=this,k=h):(S=h,k=this);for(var I=0;Ih.length?this.clone().ixor(h):h.clone().ixor(this)},s.prototype.uxor=function(h){return this.length>h.length?this.clone().iuxor(h):h.clone().iuxor(this)},s.prototype.inotn=function(h){n(typeof h=="number"&&h>=0);var S=Math.ceil(h/26)|0,k=h%26;this._expand(S),k>0&&S--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-k),this._strip()},s.prototype.notn=function(h){return this.clone().inotn(h)},s.prototype.setn=function(h,S){n(typeof h=="number"&&h>=0);var k=h/26|0,I=h%26;return this._expand(k+1),S?this.words[k]=this.words[k]|1<h.length?(k=this,I=h):(k=h,I=this);for(var R=0,N=0;N>>26;for(;R!==0&&N>>26;if(this.length=k.length,R!==0)this.words[this.length]=R,this.length++;else if(k!==this)for(;Nh.length?this.clone().iadd(h):h.clone().iadd(this)},s.prototype.isub=function(h){if(h.negative!==0){h.negative=0;var S=this.iadd(h);return h.negative=1,S._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(h),this.negative=1,this._normSign();var k=this.cmp(h);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var I,R;k>0?(I=this,R=h):(I=h,R=this);for(var N=0,B=0;B>26,this.words[B]=S&67108863;for(;N!==0&&B>26,this.words[B]=S&67108863;if(N===0&&B>>26,F=C&67108863,E=Math.min(m,h.length-1),$=Math.max(0,m-O.length+1);$<=E;$++){var V=m-$|0;I=O.words[V]|0,R=h.words[$]|0,N=I*R+F,T+=N/67108864|0,F=N&67108863}S.words[m]=F|0,C=T|0}return C!==0?S.words[m]=C|0:S.length--,S._strip()}var b=function(h,S,k){var I=h.words,R=S.words,N=k.words,B=0,C,m,T,F=I[0]|0,E=F&8191,$=F>>>13,V=I[1]|0,q=V&8191,K=V>>>13,oe=I[2]|0,te=oe&8191,re=oe>>>13,Ie=I[3]|0,ue=Ie&8191,we=Ie>>>13,zt=I[4]|0,Ve=zt&8191,ot=zt>>>13,Jn=I[5]|0,at=Jn&8191,Ge=Jn>>>13,un=I[6]|0,Ze=un&8191,ft=un>>>13,Xn=I[7]|0,ze=Xn&8191,et=Xn>>>13,mi=I[8]|0,it=mi&8191,pt=mi>>>13,_r=I[9]|0,ut=_r&8191,dt=_r>>>13,gi=R[0]|0,mt=gi&8191,ht=gi>>>13,In=R[1]|0,vt=In&8191,lt=In>>>13,Qi=R[2]|0,yt=Qi&8191,gt=Qi>>>13,xi=R[3]|0,xt=xi&8191,U=xi>>>13,G=R[4]|0,Q=G&8191,ie=G>>>13,he=R[5]|0,me=he&8191,de=he>>>13,ye=R[6]|0,ge=ye&8191,pe=ye>>>13,Rt=R[7]|0,_e=Rt&8191,ve=Rt>>>13,Ke=R[8]|0,ke=Ke&8191,tt=Ke>>>13,Or=R[9]|0,Qe=Or&8191,Ye=Or>>>13;k.negative=h.negative^S.negative,k.length=19,C=Math.imul(E,mt),m=Math.imul(E,ht),m=m+Math.imul($,mt)|0,T=Math.imul($,ht);var Hr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,C=Math.imul(q,mt),m=Math.imul(q,ht),m=m+Math.imul(K,mt)|0,T=Math.imul(K,ht),C=C+Math.imul(E,vt)|0,m=m+Math.imul(E,lt)|0,m=m+Math.imul($,vt)|0,T=T+Math.imul($,lt)|0;var fr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(fr>>>26)|0,fr&=67108863,C=Math.imul(te,mt),m=Math.imul(te,ht),m=m+Math.imul(re,mt)|0,T=Math.imul(re,ht),C=C+Math.imul(q,vt)|0,m=m+Math.imul(q,lt)|0,m=m+Math.imul(K,vt)|0,T=T+Math.imul(K,lt)|0,C=C+Math.imul(E,yt)|0,m=m+Math.imul(E,gt)|0,m=m+Math.imul($,yt)|0,T=T+Math.imul($,gt)|0;var dn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(dn>>>26)|0,dn&=67108863,C=Math.imul(ue,mt),m=Math.imul(ue,ht),m=m+Math.imul(we,mt)|0,T=Math.imul(we,ht),C=C+Math.imul(te,vt)|0,m=m+Math.imul(te,lt)|0,m=m+Math.imul(re,vt)|0,T=T+Math.imul(re,lt)|0,C=C+Math.imul(q,yt)|0,m=m+Math.imul(q,gt)|0,m=m+Math.imul(K,yt)|0,T=T+Math.imul(K,gt)|0,C=C+Math.imul(E,xt)|0,m=m+Math.imul(E,U)|0,m=m+Math.imul($,xt)|0,T=T+Math.imul($,U)|0;var hn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(hn>>>26)|0,hn&=67108863,C=Math.imul(Ve,mt),m=Math.imul(Ve,ht),m=m+Math.imul(ot,mt)|0,T=Math.imul(ot,ht),C=C+Math.imul(ue,vt)|0,m=m+Math.imul(ue,lt)|0,m=m+Math.imul(we,vt)|0,T=T+Math.imul(we,lt)|0,C=C+Math.imul(te,yt)|0,m=m+Math.imul(te,gt)|0,m=m+Math.imul(re,yt)|0,T=T+Math.imul(re,gt)|0,C=C+Math.imul(q,xt)|0,m=m+Math.imul(q,U)|0,m=m+Math.imul(K,xt)|0,T=T+Math.imul(K,U)|0,C=C+Math.imul(E,Q)|0,m=m+Math.imul(E,ie)|0,m=m+Math.imul($,Q)|0,T=T+Math.imul($,ie)|0;var vn=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(vn>>>26)|0,vn&=67108863,C=Math.imul(at,mt),m=Math.imul(at,ht),m=m+Math.imul(Ge,mt)|0,T=Math.imul(Ge,ht),C=C+Math.imul(Ve,vt)|0,m=m+Math.imul(Ve,lt)|0,m=m+Math.imul(ot,vt)|0,T=T+Math.imul(ot,lt)|0,C=C+Math.imul(ue,yt)|0,m=m+Math.imul(ue,gt)|0,m=m+Math.imul(we,yt)|0,T=T+Math.imul(we,gt)|0,C=C+Math.imul(te,xt)|0,m=m+Math.imul(te,U)|0,m=m+Math.imul(re,xt)|0,T=T+Math.imul(re,U)|0,C=C+Math.imul(q,Q)|0,m=m+Math.imul(q,ie)|0,m=m+Math.imul(K,Q)|0,T=T+Math.imul(K,ie)|0,C=C+Math.imul(E,me)|0,m=m+Math.imul(E,de)|0,m=m+Math.imul($,me)|0,T=T+Math.imul($,de)|0;var De=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(De>>>26)|0,De&=67108863,C=Math.imul(Ze,mt),m=Math.imul(Ze,ht),m=m+Math.imul(ft,mt)|0,T=Math.imul(ft,ht),C=C+Math.imul(at,vt)|0,m=m+Math.imul(at,lt)|0,m=m+Math.imul(Ge,vt)|0,T=T+Math.imul(Ge,lt)|0,C=C+Math.imul(Ve,yt)|0,m=m+Math.imul(Ve,gt)|0,m=m+Math.imul(ot,yt)|0,T=T+Math.imul(ot,gt)|0,C=C+Math.imul(ue,xt)|0,m=m+Math.imul(ue,U)|0,m=m+Math.imul(we,xt)|0,T=T+Math.imul(we,U)|0,C=C+Math.imul(te,Q)|0,m=m+Math.imul(te,ie)|0,m=m+Math.imul(re,Q)|0,T=T+Math.imul(re,ie)|0,C=C+Math.imul(q,me)|0,m=m+Math.imul(q,de)|0,m=m+Math.imul(K,me)|0,T=T+Math.imul(K,de)|0,C=C+Math.imul(E,ge)|0,m=m+Math.imul(E,pe)|0,m=m+Math.imul($,ge)|0,T=T+Math.imul($,pe)|0;var ur=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(ur>>>26)|0,ur&=67108863,C=Math.imul(ze,mt),m=Math.imul(ze,ht),m=m+Math.imul(et,mt)|0,T=Math.imul(et,ht),C=C+Math.imul(Ze,vt)|0,m=m+Math.imul(Ze,lt)|0,m=m+Math.imul(ft,vt)|0,T=T+Math.imul(ft,lt)|0,C=C+Math.imul(at,yt)|0,m=m+Math.imul(at,gt)|0,m=m+Math.imul(Ge,yt)|0,T=T+Math.imul(Ge,gt)|0,C=C+Math.imul(Ve,xt)|0,m=m+Math.imul(Ve,U)|0,m=m+Math.imul(ot,xt)|0,T=T+Math.imul(ot,U)|0,C=C+Math.imul(ue,Q)|0,m=m+Math.imul(ue,ie)|0,m=m+Math.imul(we,Q)|0,T=T+Math.imul(we,ie)|0,C=C+Math.imul(te,me)|0,m=m+Math.imul(te,de)|0,m=m+Math.imul(re,me)|0,T=T+Math.imul(re,de)|0,C=C+Math.imul(q,ge)|0,m=m+Math.imul(q,pe)|0,m=m+Math.imul(K,ge)|0,T=T+Math.imul(K,pe)|0,C=C+Math.imul(E,_e)|0,m=m+Math.imul(E,ve)|0,m=m+Math.imul($,_e)|0,T=T+Math.imul($,ve)|0;var Nr=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,C=Math.imul(it,mt),m=Math.imul(it,ht),m=m+Math.imul(pt,mt)|0,T=Math.imul(pt,ht),C=C+Math.imul(ze,vt)|0,m=m+Math.imul(ze,lt)|0,m=m+Math.imul(et,vt)|0,T=T+Math.imul(et,lt)|0,C=C+Math.imul(Ze,yt)|0,m=m+Math.imul(Ze,gt)|0,m=m+Math.imul(ft,yt)|0,T=T+Math.imul(ft,gt)|0,C=C+Math.imul(at,xt)|0,m=m+Math.imul(at,U)|0,m=m+Math.imul(Ge,xt)|0,T=T+Math.imul(Ge,U)|0,C=C+Math.imul(Ve,Q)|0,m=m+Math.imul(Ve,ie)|0,m=m+Math.imul(ot,Q)|0,T=T+Math.imul(ot,ie)|0,C=C+Math.imul(ue,me)|0,m=m+Math.imul(ue,de)|0,m=m+Math.imul(we,me)|0,T=T+Math.imul(we,de)|0,C=C+Math.imul(te,ge)|0,m=m+Math.imul(te,pe)|0,m=m+Math.imul(re,ge)|0,T=T+Math.imul(re,pe)|0,C=C+Math.imul(q,_e)|0,m=m+Math.imul(q,ve)|0,m=m+Math.imul(K,_e)|0,T=T+Math.imul(K,ve)|0,C=C+Math.imul(E,ke)|0,m=m+Math.imul(E,tt)|0,m=m+Math.imul($,ke)|0,T=T+Math.imul($,tt)|0;var Yt=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Yt>>>26)|0,Yt&=67108863,C=Math.imul(ut,mt),m=Math.imul(ut,ht),m=m+Math.imul(dt,mt)|0,T=Math.imul(dt,ht),C=C+Math.imul(it,vt)|0,m=m+Math.imul(it,lt)|0,m=m+Math.imul(pt,vt)|0,T=T+Math.imul(pt,lt)|0,C=C+Math.imul(ze,yt)|0,m=m+Math.imul(ze,gt)|0,m=m+Math.imul(et,yt)|0,T=T+Math.imul(et,gt)|0,C=C+Math.imul(Ze,xt)|0,m=m+Math.imul(Ze,U)|0,m=m+Math.imul(ft,xt)|0,T=T+Math.imul(ft,U)|0,C=C+Math.imul(at,Q)|0,m=m+Math.imul(at,ie)|0,m=m+Math.imul(Ge,Q)|0,T=T+Math.imul(Ge,ie)|0,C=C+Math.imul(Ve,me)|0,m=m+Math.imul(Ve,de)|0,m=m+Math.imul(ot,me)|0,T=T+Math.imul(ot,de)|0,C=C+Math.imul(ue,ge)|0,m=m+Math.imul(ue,pe)|0,m=m+Math.imul(we,ge)|0,T=T+Math.imul(we,pe)|0,C=C+Math.imul(te,_e)|0,m=m+Math.imul(te,ve)|0,m=m+Math.imul(re,_e)|0,T=T+Math.imul(re,ve)|0,C=C+Math.imul(q,ke)|0,m=m+Math.imul(q,tt)|0,m=m+Math.imul(K,ke)|0,T=T+Math.imul(K,tt)|0,C=C+Math.imul(E,Qe)|0,m=m+Math.imul(E,Ye)|0,m=m+Math.imul($,Qe)|0,T=T+Math.imul($,Ye)|0;var Yi=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Yi>>>26)|0,Yi&=67108863,C=Math.imul(ut,vt),m=Math.imul(ut,lt),m=m+Math.imul(dt,vt)|0,T=Math.imul(dt,lt),C=C+Math.imul(it,yt)|0,m=m+Math.imul(it,gt)|0,m=m+Math.imul(pt,yt)|0,T=T+Math.imul(pt,gt)|0,C=C+Math.imul(ze,xt)|0,m=m+Math.imul(ze,U)|0,m=m+Math.imul(et,xt)|0,T=T+Math.imul(et,U)|0,C=C+Math.imul(Ze,Q)|0,m=m+Math.imul(Ze,ie)|0,m=m+Math.imul(ft,Q)|0,T=T+Math.imul(ft,ie)|0,C=C+Math.imul(at,me)|0,m=m+Math.imul(at,de)|0,m=m+Math.imul(Ge,me)|0,T=T+Math.imul(Ge,de)|0,C=C+Math.imul(Ve,ge)|0,m=m+Math.imul(Ve,pe)|0,m=m+Math.imul(ot,ge)|0,T=T+Math.imul(ot,pe)|0,C=C+Math.imul(ue,_e)|0,m=m+Math.imul(ue,ve)|0,m=m+Math.imul(we,_e)|0,T=T+Math.imul(we,ve)|0,C=C+Math.imul(te,ke)|0,m=m+Math.imul(te,tt)|0,m=m+Math.imul(re,ke)|0,T=T+Math.imul(re,tt)|0,C=C+Math.imul(q,Qe)|0,m=m+Math.imul(q,Ye)|0,m=m+Math.imul(K,Qe)|0,T=T+Math.imul(K,Ye)|0;var ma=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(ma>>>26)|0,ma&=67108863,C=Math.imul(ut,yt),m=Math.imul(ut,gt),m=m+Math.imul(dt,yt)|0,T=Math.imul(dt,gt),C=C+Math.imul(it,xt)|0,m=m+Math.imul(it,U)|0,m=m+Math.imul(pt,xt)|0,T=T+Math.imul(pt,U)|0,C=C+Math.imul(ze,Q)|0,m=m+Math.imul(ze,ie)|0,m=m+Math.imul(et,Q)|0,T=T+Math.imul(et,ie)|0,C=C+Math.imul(Ze,me)|0,m=m+Math.imul(Ze,de)|0,m=m+Math.imul(ft,me)|0,T=T+Math.imul(ft,de)|0,C=C+Math.imul(at,ge)|0,m=m+Math.imul(at,pe)|0,m=m+Math.imul(Ge,ge)|0,T=T+Math.imul(Ge,pe)|0,C=C+Math.imul(Ve,_e)|0,m=m+Math.imul(Ve,ve)|0,m=m+Math.imul(ot,_e)|0,T=T+Math.imul(ot,ve)|0,C=C+Math.imul(ue,ke)|0,m=m+Math.imul(ue,tt)|0,m=m+Math.imul(we,ke)|0,T=T+Math.imul(we,tt)|0,C=C+Math.imul(te,Qe)|0,m=m+Math.imul(te,Ye)|0,m=m+Math.imul(re,Qe)|0,T=T+Math.imul(re,Ye)|0;var Gl=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(Gl>>>26)|0,Gl&=67108863,C=Math.imul(ut,xt),m=Math.imul(ut,U),m=m+Math.imul(dt,xt)|0,T=Math.imul(dt,U),C=C+Math.imul(it,Q)|0,m=m+Math.imul(it,ie)|0,m=m+Math.imul(pt,Q)|0,T=T+Math.imul(pt,ie)|0,C=C+Math.imul(ze,me)|0,m=m+Math.imul(ze,de)|0,m=m+Math.imul(et,me)|0,T=T+Math.imul(et,de)|0,C=C+Math.imul(Ze,ge)|0,m=m+Math.imul(Ze,pe)|0,m=m+Math.imul(ft,ge)|0,T=T+Math.imul(ft,pe)|0,C=C+Math.imul(at,_e)|0,m=m+Math.imul(at,ve)|0,m=m+Math.imul(Ge,_e)|0,T=T+Math.imul(Ge,ve)|0,C=C+Math.imul(Ve,ke)|0,m=m+Math.imul(Ve,tt)|0,m=m+Math.imul(ot,ke)|0,T=T+Math.imul(ot,tt)|0,C=C+Math.imul(ue,Qe)|0,m=m+Math.imul(ue,Ye)|0,m=m+Math.imul(we,Qe)|0,T=T+Math.imul(we,Ye)|0;var D0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(D0>>>26)|0,D0&=67108863,C=Math.imul(ut,Q),m=Math.imul(ut,ie),m=m+Math.imul(dt,Q)|0,T=Math.imul(dt,ie),C=C+Math.imul(it,me)|0,m=m+Math.imul(it,de)|0,m=m+Math.imul(pt,me)|0,T=T+Math.imul(pt,de)|0,C=C+Math.imul(ze,ge)|0,m=m+Math.imul(ze,pe)|0,m=m+Math.imul(et,ge)|0,T=T+Math.imul(et,pe)|0,C=C+Math.imul(Ze,_e)|0,m=m+Math.imul(Ze,ve)|0,m=m+Math.imul(ft,_e)|0,T=T+Math.imul(ft,ve)|0,C=C+Math.imul(at,ke)|0,m=m+Math.imul(at,tt)|0,m=m+Math.imul(Ge,ke)|0,T=T+Math.imul(Ge,tt)|0,C=C+Math.imul(Ve,Qe)|0,m=m+Math.imul(Ve,Ye)|0,m=m+Math.imul(ot,Qe)|0,T=T+Math.imul(ot,Ye)|0;var L0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(L0>>>26)|0,L0&=67108863,C=Math.imul(ut,me),m=Math.imul(ut,de),m=m+Math.imul(dt,me)|0,T=Math.imul(dt,de),C=C+Math.imul(it,ge)|0,m=m+Math.imul(it,pe)|0,m=m+Math.imul(pt,ge)|0,T=T+Math.imul(pt,pe)|0,C=C+Math.imul(ze,_e)|0,m=m+Math.imul(ze,ve)|0,m=m+Math.imul(et,_e)|0,T=T+Math.imul(et,ve)|0,C=C+Math.imul(Ze,ke)|0,m=m+Math.imul(Ze,tt)|0,m=m+Math.imul(ft,ke)|0,T=T+Math.imul(ft,tt)|0,C=C+Math.imul(at,Qe)|0,m=m+Math.imul(at,Ye)|0,m=m+Math.imul(Ge,Qe)|0,T=T+Math.imul(Ge,Ye)|0;var j0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(j0>>>26)|0,j0&=67108863,C=Math.imul(ut,ge),m=Math.imul(ut,pe),m=m+Math.imul(dt,ge)|0,T=Math.imul(dt,pe),C=C+Math.imul(it,_e)|0,m=m+Math.imul(it,ve)|0,m=m+Math.imul(pt,_e)|0,T=T+Math.imul(pt,ve)|0,C=C+Math.imul(ze,ke)|0,m=m+Math.imul(ze,tt)|0,m=m+Math.imul(et,ke)|0,T=T+Math.imul(et,tt)|0,C=C+Math.imul(Ze,Qe)|0,m=m+Math.imul(Ze,Ye)|0,m=m+Math.imul(ft,Qe)|0,T=T+Math.imul(ft,Ye)|0;var B0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(B0>>>26)|0,B0&=67108863,C=Math.imul(ut,_e),m=Math.imul(ut,ve),m=m+Math.imul(dt,_e)|0,T=Math.imul(dt,ve),C=C+Math.imul(it,ke)|0,m=m+Math.imul(it,tt)|0,m=m+Math.imul(pt,ke)|0,T=T+Math.imul(pt,tt)|0,C=C+Math.imul(ze,Qe)|0,m=m+Math.imul(ze,Ye)|0,m=m+Math.imul(et,Qe)|0,T=T+Math.imul(et,Ye)|0;var $0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+($0>>>26)|0,$0&=67108863,C=Math.imul(ut,ke),m=Math.imul(ut,tt),m=m+Math.imul(dt,ke)|0,T=Math.imul(dt,tt),C=C+Math.imul(it,Qe)|0,m=m+Math.imul(it,Ye)|0,m=m+Math.imul(pt,Qe)|0,T=T+Math.imul(pt,Ye)|0;var F0=(B+C|0)+((m&8191)<<13)|0;B=(T+(m>>>13)|0)+(F0>>>26)|0,F0&=67108863,C=Math.imul(ut,Qe),m=Math.imul(ut,Ye),m=m+Math.imul(dt,Qe)|0,T=Math.imul(dt,Ye);var U0=(B+C|0)+((m&8191)<<13)|0;return B=(T+(m>>>13)|0)+(U0>>>26)|0,U0&=67108863,N[0]=Hr,N[1]=fr,N[2]=dn,N[3]=hn,N[4]=vn,N[5]=De,N[6]=ur,N[7]=Nr,N[8]=Yt,N[9]=Yi,N[10]=ma,N[11]=Gl,N[12]=D0,N[13]=L0,N[14]=j0,N[15]=B0,N[16]=$0,N[17]=F0,N[18]=U0,B!==0&&(N[19]=B,k.length++),k};Math.imul||(b=x);function A(O,h,S){S.negative=h.negative^O.negative,S.length=O.length+h.length;for(var k=0,I=0,R=0;R>>26)|0,I+=N>>>26,N&=67108863}S.words[R]=B,k=N,N=I}return k!==0?S.words[R]=k:S.length--,S._strip()}function P(O,h,S){return A(O,h,S)}s.prototype.mulTo=function(h,S){var k,I=this.length+h.length;return this.length===10&&h.length===10?k=b(this,h,S):I<63?k=x(this,h,S):I<1024?k=A(this,h,S):k=P(this,h,S),k},s.prototype.mul=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),this.mulTo(h,S)},s.prototype.mulf=function(h){var S=new s(null);return S.words=new Array(this.length+h.length),P(this,h,S)},s.prototype.imul=function(h){return this.clone().mulTo(h,this)},s.prototype.imuln=function(h){var S=h<0;S&&(h=-h),n(typeof h=="number"),n(h<67108864);for(var k=0,I=0;I>=26,k+=R/67108864|0,k+=N>>>26,this.words[I]=N&67108863}return k!==0&&(this.words[I]=k,this.length++),S?this.ineg():this},s.prototype.muln=function(h){return this.clone().imuln(h)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(h){var S=w(h);if(S.length===0)return new s(1);for(var k=this,I=0;I=0);var S=h%26,k=(h-S)/26,I=67108863>>>26-S<<26-S,R;if(S!==0){var N=0;for(R=0;R>>26-S}N&&(this.words[R]=N,this.length++)}if(k!==0){for(R=this.length-1;R>=0;R--)this.words[R+k]=this.words[R];for(R=0;R=0);var I;S?I=(S-S%26)/26:I=0;var R=h%26,N=Math.min((h-R)/26,this.length),B=67108863^67108863>>>R<N)for(this.length-=N,m=0;m=0&&(T!==0||m>=I);m--){var F=this.words[m]|0;this.words[m]=T<<26-R|F>>>R,T=F&B}return C&&T!==0&&(C.words[C.length++]=T),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(h,S,k){return n(this.negative===0),this.iushrn(h,S,k)},s.prototype.shln=function(h){return this.clone().ishln(h)},s.prototype.ushln=function(h){return this.clone().iushln(h)},s.prototype.shrn=function(h){return this.clone().ishrn(h)},s.prototype.ushrn=function(h){return this.clone().iushrn(h)},s.prototype.testn=function(h){n(typeof h=="number"&&h>=0);var S=h%26,k=(h-S)/26,I=1<=0);var S=h%26,k=(h-S)/26;if(n(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(S!==0&&k++,this.length=Math.min(k,this.length),S!==0){var I=67108863^67108863>>>S<=67108864;S++)this.words[S]-=67108864,S===this.length-1?this.words[S+1]=1:this.words[S+1]++;return this.length=Math.max(this.length,S+1),this},s.prototype.isubn=function(h){if(n(typeof h=="number"),n(h<67108864),h<0)return this.iaddn(-h);if(this.negative!==0)return this.negative=0,this.iaddn(h),this.negative=1,this;if(this.words[0]-=h,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var S=0;S>26)-(C/67108864|0),this.words[R+k]=N&67108863}for(;R>26,this.words[R+k]=N&67108863;if(B===0)return this._strip();for(n(B===-1),B=0,R=0;R>26,this.words[R]=N&67108863;return this.negative=1,this._strip()},s.prototype._wordDiv=function(h,S){var k=this.length-h.length,I=this.clone(),R=h,N=R.words[R.length-1]|0,B=this._countBits(N);k=26-B,k!==0&&(R=R.ushln(k),I.iushln(k),N=R.words[R.length-1]|0);var C=I.length-R.length,m;if(S!=="mod"){m=new s(null),m.length=C+1,m.words=new Array(m.length);for(var T=0;T=0;E--){var $=(I.words[R.length+E]|0)*67108864+(I.words[R.length+E-1]|0);for($=Math.min($/N|0,67108863),I._ishlnsubmul(R,$,E);I.negative!==0;)$--,I.negative=0,I._ishlnsubmul(R,1,E),I.isZero()||(I.negative^=1);m&&(m.words[E]=$)}return m&&m._strip(),I._strip(),S!=="div"&&k!==0&&I.iushrn(k),{div:m||null,mod:I}},s.prototype.divmod=function(h,S,k){if(n(!h.isZero()),this.isZero())return{div:new s(0),mod:new s(0)};var I,R,N;return this.negative!==0&&h.negative===0?(N=this.neg().divmod(h,S),S!=="mod"&&(I=N.div.neg()),S!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.iadd(h)),{div:I,mod:R}):this.negative===0&&h.negative!==0?(N=this.divmod(h.neg(),S),S!=="mod"&&(I=N.div.neg()),{div:I,mod:N.mod}):this.negative&h.negative?(N=this.neg().divmod(h.neg(),S),S!=="div"&&(R=N.mod.neg(),k&&R.negative!==0&&R.isub(h)),{div:N.div,mod:R}):h.length>this.length||this.cmp(h)<0?{div:new s(0),mod:this}:h.length===1?S==="div"?{div:this.divn(h.words[0]),mod:null}:S==="mod"?{div:null,mod:new s(this.modrn(h.words[0]))}:{div:this.divn(h.words[0]),mod:new s(this.modrn(h.words[0]))}:this._wordDiv(h,S)},s.prototype.div=function(h){return this.divmod(h,"div",!1).div},s.prototype.mod=function(h){return this.divmod(h,"mod",!1).mod},s.prototype.umod=function(h){return this.divmod(h,"mod",!0).mod},s.prototype.divRound=function(h){var S=this.divmod(h);if(S.mod.isZero())return S.div;var k=S.div.negative!==0?S.mod.isub(h):S.mod,I=h.ushrn(1),R=h.andln(1),N=k.cmp(I);return N<0||R===1&&N===0?S.div:S.div.negative!==0?S.div.isubn(1):S.div.iaddn(1)},s.prototype.modrn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=(1<<26)%h,I=0,R=this.length-1;R>=0;R--)I=(k*I+(this.words[R]|0))%h;return S?-I:I},s.prototype.modn=function(h){return this.modrn(h)},s.prototype.idivn=function(h){var S=h<0;S&&(h=-h),n(h<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var R=(this.words[I]|0)+k*67108864;this.words[I]=R/h|0,k=R%h}return this._strip(),S?this.ineg():this},s.prototype.divn=function(h){return this.clone().idivn(h)},s.prototype.egcd=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),R=new s(0),N=new s(0),B=new s(1),C=0;S.isEven()&&k.isEven();)S.iushrn(1),k.iushrn(1),++C;for(var m=k.clone(),T=S.clone();!S.isZero();){for(var F=0,E=1;!(S.words[0]&E)&&F<26;++F,E<<=1);if(F>0)for(S.iushrn(F);F-- >0;)(I.isOdd()||R.isOdd())&&(I.iadd(m),R.isub(T)),I.iushrn(1),R.iushrn(1);for(var $=0,V=1;!(k.words[0]&V)&&$<26;++$,V<<=1);if($>0)for(k.iushrn($);$-- >0;)(N.isOdd()||B.isOdd())&&(N.iadd(m),B.isub(T)),N.iushrn(1),B.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(N),R.isub(B)):(k.isub(S),N.isub(I),B.isub(R))}return{a:N,b:B,gcd:k.iushln(C)}},s.prototype._invmp=function(h){n(h.negative===0),n(!h.isZero());var S=this,k=h.clone();S.negative!==0?S=S.umod(h):S=S.clone();for(var I=new s(1),R=new s(0),N=k.clone();S.cmpn(1)>0&&k.cmpn(1)>0;){for(var B=0,C=1;!(S.words[0]&C)&&B<26;++B,C<<=1);if(B>0)for(S.iushrn(B);B-- >0;)I.isOdd()&&I.iadd(N),I.iushrn(1);for(var m=0,T=1;!(k.words[0]&T)&&m<26;++m,T<<=1);if(m>0)for(k.iushrn(m);m-- >0;)R.isOdd()&&R.iadd(N),R.iushrn(1);S.cmp(k)>=0?(S.isub(k),I.isub(R)):(k.isub(S),R.isub(I))}var F;return S.cmpn(1)===0?F=I:F=R,F.cmpn(0)<0&&F.iadd(h),F},s.prototype.gcd=function(h){if(this.isZero())return h.abs();if(h.isZero())return this.abs();var S=this.clone(),k=h.clone();S.negative=0,k.negative=0;for(var I=0;S.isEven()&&k.isEven();I++)S.iushrn(1),k.iushrn(1);do{for(;S.isEven();)S.iushrn(1);for(;k.isEven();)k.iushrn(1);var R=S.cmp(k);if(R<0){var N=S;S=k,k=N}else if(R===0||k.cmpn(1)===0)break;S.isub(k)}while(!0);return k.iushln(I)},s.prototype.invm=function(h){return this.egcd(h).a.umod(h)},s.prototype.isEven=function(){return(this.words[0]&1)===0},s.prototype.isOdd=function(){return(this.words[0]&1)===1},s.prototype.andln=function(h){return this.words[0]&h},s.prototype.bincn=function(h){n(typeof h=="number");var S=h%26,k=(h-S)/26,I=1<>>26,B&=67108863,this.words[N]=B}return R!==0&&(this.words[N]=R,this.length++),this},s.prototype.isZero=function(){return this.length===1&&this.words[0]===0},s.prototype.cmpn=function(h){var S=h<0;if(this.negative!==0&&!S)return-1;if(this.negative===0&&S)return 1;this._strip();var k;if(this.length>1)k=1;else{S&&(h=-h),n(h<=67108863,"Number is too big");var I=this.words[0]|0;k=I===h?0:Ih.length)return 1;if(this.length=0;k--){var I=this.words[k]|0,R=h.words[k]|0;if(I!==R){IR&&(S=1);break}}return S},s.prototype.gtn=function(h){return this.cmpn(h)===1},s.prototype.gt=function(h){return this.cmp(h)===1},s.prototype.gten=function(h){return this.cmpn(h)>=0},s.prototype.gte=function(h){return this.cmp(h)>=0},s.prototype.ltn=function(h){return this.cmpn(h)===-1},s.prototype.lt=function(h){return this.cmp(h)===-1},s.prototype.lten=function(h){return this.cmpn(h)<=0},s.prototype.lte=function(h){return this.cmp(h)<=0},s.prototype.eqn=function(h){return this.cmpn(h)===0},s.prototype.eq=function(h){return this.cmp(h)===0},s.red=function(h){return new Y(h)},s.prototype.toRed=function(h){return n(!this.red,"Already a number in reduction context"),n(this.negative===0,"red works only with positives"),h.convertTo(this)._forceRed(h)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(h){return this.red=h,this},s.prototype.forceRed=function(h){return n(!this.red,"Already a number in reduction context"),this._forceRed(h)},s.prototype.redAdd=function(h){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,h)},s.prototype.redIAdd=function(h){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,h)},s.prototype.redSub=function(h){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,h)},s.prototype.redISub=function(h){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,h)},s.prototype.redShl=function(h){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,h)},s.prototype.redMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.mul(this,h)},s.prototype.redIMul=function(h){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,h),this.red.imul(this,h)},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(h){return n(this.red&&!h.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,h)};var _={k256:null,p224:null,p192:null,p25519:null};function D(O,h){this.name=O,this.p=new s(h,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}D.prototype._tmp=function(){var h=new s(null);return h.words=new Array(Math.ceil(this.n/13)),h},D.prototype.ireduce=function(h){var S=h,k;do this.split(S,this.tmp),S=this.imulK(S),S=S.iadd(this.tmp),k=S.bitLength();while(k>this.n);var I=k0?S.isub(this.p):S.strip!==void 0?S.strip():S._strip(),S},D.prototype.split=function(h,S){h.iushrn(this.n,0,S)},D.prototype.imulK=function(h){return h.imul(this.k)};function M(){D.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}i(M,D),M.prototype.split=function(h,S){for(var k=4194303,I=Math.min(h.length,9),R=0;R>>22,N=B}N>>>=22,h.words[R-10]=N,N===0&&h.length>10?h.length-=10:h.length-=9},M.prototype.imulK=function(h){h.words[h.length]=0,h.words[h.length+1]=0,h.length+=2;for(var S=0,k=0;k>>=26,h.words[k]=R,S=I}return S!==0&&(h.words[h.length++]=S),h},s._prime=function(h){if(_[h])return _[h];var S;if(h==="k256")S=new M;else if(h==="p224")S=new L;else if(h==="p192")S=new z;else if(h==="p25519")S=new H;else throw new Error("Unknown prime "+h);return _[h]=S,S};function Y(O){if(typeof O=="string"){var h=s._prime(O);this.m=h.p,this.prime=h}else n(O.gtn(1),"modulus must be greater than 1"),this.m=O,this.prime=null}Y.prototype._verify1=function(h){n(h.negative===0,"red works only with positives"),n(h.red,"red works only with red numbers")},Y.prototype._verify2=function(h,S){n((h.negative|S.negative)===0,"red works only with positives"),n(h.red&&h.red===S.red,"red works only with red numbers")},Y.prototype.imod=function(h){return this.prime?this.prime.ireduce(h)._forceRed(this):(f(h,h.umod(this.m)._forceRed(this)),h)},Y.prototype.neg=function(h){return h.isZero()?h.clone():this.m.sub(h)._forceRed(this)},Y.prototype.add=function(h,S){this._verify2(h,S);var k=h.add(S);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},Y.prototype.iadd=function(h,S){this._verify2(h,S);var k=h.iadd(S);return k.cmp(this.m)>=0&&k.isub(this.m),k},Y.prototype.sub=function(h,S){this._verify2(h,S);var k=h.sub(S);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},Y.prototype.isub=function(h,S){this._verify2(h,S);var k=h.isub(S);return k.cmpn(0)<0&&k.iadd(this.m),k},Y.prototype.shl=function(h,S){return this._verify1(h),this.imod(h.ushln(S))},Y.prototype.imul=function(h,S){return this._verify2(h,S),this.imod(h.imul(S))},Y.prototype.mul=function(h,S){return this._verify2(h,S),this.imod(h.mul(S))},Y.prototype.isqr=function(h){return this.imul(h,h.clone())},Y.prototype.sqr=function(h){return this.mul(h,h)},Y.prototype.sqrt=function(h){if(h.isZero())return h.clone();var S=this.m.andln(3);if(n(S%2===1),S===3){var k=this.m.add(new s(1)).iushrn(2);return this.pow(h,k)}for(var I=this.m.subn(1),R=0;!I.isZero()&&I.andln(1)===0;)R++,I.iushrn(1);n(!I.isZero());var N=new s(1).toRed(this),B=N.redNeg(),C=this.m.subn(1).iushrn(1),m=this.m.bitLength();for(m=new s(2*m*m).toRed(this);this.pow(m,C).cmp(B)!==0;)m.redIAdd(B);for(var T=this.pow(m,I),F=this.pow(h,I.addn(1).iushrn(1)),E=this.pow(h,I),$=R;E.cmp(N)!==0;){for(var V=E,q=0;V.cmp(N)!==0;q++)V=V.redSqr();n(q<$);var K=this.pow(T,new s(1).iushln($-q-1));F=F.redMul(K),T=K.redSqr(),E=E.redMul(T),$=q}return F},Y.prototype.invm=function(h){var S=h._invmp(this.m);return S.negative!==0?(S.negative=0,this.imod(S).redNeg()):this.imod(S)},Y.prototype.pow=function(h,S){if(S.isZero())return new s(1).toRed(this);if(S.cmpn(1)===0)return h.clone();var k=4,I=new Array(1<=0;R--){for(var T=S.words[R],F=m-1;F>=0;F--){var E=T>>F&1;if(N!==I[0]&&(N=this.sqr(N)),E===0&&B===0){C=0;continue}B<<=1,B|=E,C++,!(C!==k&&(R!==0||F!==0))&&(N=this.mul(N,I[B]),C=0,B=0)}m=26}return N},Y.prototype.convertTo=function(h){var S=h.umod(this.m);return S===h?S.clone():S},Y.prototype.convertFrom=function(h){var S=h.clone();return S.red=null,S},s.mont=function(h){return new Z(h)};function Z(O){Y.call(this,O),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(Z,Y),Z.prototype.convertTo=function(h){return this.imod(h.ushln(this.shift))},Z.prototype.convertFrom=function(h){var S=this.imod(h.mul(this.rinv));return S.red=null,S},Z.prototype.imul=function(h,S){if(h.isZero()||S.isZero())return h.words[0]=0,h.length=1,h;var k=h.imul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.mul=function(h,S){if(h.isZero()||S.isZero())return new s(0)._forceRed(this);var k=h.mul(S),I=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),R=k.isub(I).iushrn(this.shift),N=R;return R.cmp(this.m)>=0?N=R.isub(this.m):R.cmpn(0)<0&&(N=R.iadd(this.m)),N._forceRed(this)},Z.prototype.invm=function(h){var S=this.imod(h._invmp(this.m).mul(this.r2));return S._forceRed(this)}})(t,aA)})(Rg);var JU=Rg.exports;const Oe=Ss(JU),XU="logger/5.7.0";let O3=!1,N3=!1;const vd={debug:1,default:2,info:2,warning:3,error:4,off:5};let D3=vd.default,F1=null;function ZU(){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(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}const L3=ZU();var Yy;(function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"})(Yy||(Yy={}));var oi;(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"})(oi||(oi={}));const j3="0123456789abcdef";let W=class hr{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,r){const n=e.toLowerCase();vd[n]==null&&this.throwArgumentError("invalid log level name","logLevel",e),!(D3>vd[n])&&console.log.apply(console,r)}debug(...e){this._log(hr.levels.DEBUG,e)}info(...e){this._log(hr.levels.INFO,e)}warn(...e){this._log(hr.levels.WARNING,e)}makeError(e,r,n){if(N3)return this.makeError("censored error",r,{});r||(r=hr.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+=j3[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 oi.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 oi.CALL_EXCEPTION:case oi.INSUFFICIENT_FUNDS:case oi.MISSING_NEW:case oi.NONCE_EXPIRED:case oi.REPLACEMENT_UNDERPRICED:case oi.TRANSACTION_REPLACED:case oi.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,hr.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){L3&&this.throwError("platform missing String.prototype.normalize",hr.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:L3})}checkSafeUint53(e,r){typeof e=="number"&&(r==null&&(r="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(r,hr.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(r,hr.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,hr.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:r})}checkNew(e,r){(e===Object||e==null)&&this.throwError("missing new",hr.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",hr.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||e==null)&&this.throwError("missing new",hr.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return F1||(F1=new hr(XU)),F1}static setCensorship(e,r){if(!e&&r&&this.globalLogger().throwError("cannot permanently disable censorship",hr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),O3){if(!e)return;this.globalLogger().throwError("error censorship permanent",hr.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}N3=!!e,O3=!!r}static setLogLevel(e){const r=vd[e.toLowerCase()];if(r==null){hr.globalLogger().warn("invalid log level - "+e);return}D3=r}static from(e){return new hr(e)}};W.errors=oi;W.levels=Yy;const ez="bytes/5.7.0",Ht=new W(ez);function XC(t){return!!t.toHexString}function nl(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return nl(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function x0(t){return He(t)&&!(t.length%2)||Ll(t)}function B3(t){return typeof t=="number"&&t==t&&t%1===0}function Ll(t){if(t==null)return!1;if(t.constructor===Uint8Array)return!0;if(typeof t=="string"||!B3(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function ce(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),nl(new Uint8Array(r))}if(e.allowMissingPrefix&&typeof t=="string"&&t.substring(0,2)!=="0x"&&(t="0x"+t),XC(t)&&(t=t.toHexString()),He(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;ice(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),nl(n)}function hs(t){let e=ce(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),nl(r)}function He(t,e){return!(typeof t!="string"||!t.match(/^0x[0-9A-Fa-f]*$/)||e&&t.length!==2+2*e)}const U1="0123456789abcdef";function fe(t,e){if(e||(e={}),typeof t=="number"){Ht.checkSafeUint53(t,"invalid hexlify value");let r="";for(;t;)r=U1[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),XC(t))return t.toHexString();if(He(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(Ll(t)){let r="0x";for(let n=0;n>4]+U1[i&15]}return r}return Ht.throwArgumentError("invalid hexlify value","value",t)}function na(t){if(typeof t!="string")t=fe(t);else if(!He(t)||t.length%2)return null;return(t.length-2)/2}function yr(t,e,r){return typeof t!="string"?t=fe(t):(!He(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 rn(t){let e="0x";return t.forEach(r=>{e+=fe(r).substring(2)}),e}function Tg(t){const e=rz(fe(t,{hexPad:"left"}));return e==="0x"?"0x0":e}function rz(t){typeof t!="string"&&(t=fe(t)),He(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 jl(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(x0(t)){let r=ce(t);r.length===64?(e.v=27+(r[32]>>7),r[32]&=127,e.r=fe(r.slice(0,32)),e.s=fe(r.slice(32,64))):r.length===65?(e.r=fe(r.slice(0,32)),e.s=fe(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=fe(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=tz(ce(e._vs),32);e._vs=fe(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=fe(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||!He(e.r)?Ht.throwArgumentError("signature missing or invalid r","signature",t):e.r=kt(e.r,32),e.s==null||!He(e.s)?Ht.throwArgumentError("signature missing or invalid s","signature",t):e.s=kt(e.s,32);const r=ce(e.s);r[0]>=128&&Ht.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(r[0]|=128);const n=fe(r);e._vs&&(He(e._vs)||Ht.throwArgumentError("signature invalid _vs","signature",t),e._vs=kt(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 $3(t){return t=jl(t),fe(ir([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}const ZC="bignumber/5.7.0";var hh=Oe.BN;const es=new W(ZC),z1={},F3=9007199254740991;function nz(t){return t!=null&&(ae.isBigNumber(t)||typeof t=="number"&&t%1===0||typeof t=="string"&&!!t.match(/^-?[0-9]+$/)||He(t)||typeof t=="bigint"||Ll(t))}let U3=!1;class ae{constructor(e,r){e!==z1&&es.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 en(Be(this).fromTwos(e))}toTwos(e){return en(Be(this).toTwos(e))}abs(){return this._hex[0]==="-"?ae.from(this._hex.substring(1)):this}add(e){return en(Be(this).add(Be(e)))}sub(e){return en(Be(this).sub(Be(e)))}div(e){return ae.from(e).isZero()&&On("division-by-zero","div"),en(Be(this).div(Be(e)))}mul(e){return en(Be(this).mul(Be(e)))}mod(e){const r=Be(e);return r.isNeg()&&On("division-by-zero","mod"),en(Be(this).umod(r))}pow(e){const r=Be(e);return r.isNeg()&&On("negative-power","pow"),en(Be(this).pow(r))}and(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),en(Be(this).and(r))}or(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),en(Be(this).or(r))}xor(e){const r=Be(e);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),en(Be(this).xor(r))}mask(e){return(this.isNegative()||e<0)&&On("negative-width","mask"),en(Be(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&On("negative-width","shl"),en(Be(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&On("negative-width","shr"),en(Be(this).shrn(e))}eq(e){return Be(this).eq(Be(e))}lt(e){return Be(this).lt(Be(e))}lte(e){return Be(this).lte(Be(e))}gt(e){return Be(this).gt(Be(e))}gte(e){return Be(this).gte(Be(e))}isNegative(){return this._hex[0]==="-"}isZero(){return Be(this).isZero()}toNumber(){try{return Be(this).toNumber()}catch{On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch{}return es.throwError("this platform does not support BigInt",W.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?U3||(U3=!0,es.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?es.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",W.errors.UNEXPECTED_ARGUMENT,{}):es.throwError("BigNumber.toString does not accept parameters",W.errors.UNEXPECTED_ARGUMENT,{})),Be(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof ae)return e;if(typeof e=="string")return e.match(/^-?0x[0-9a-f]+$/i)?new ae(z1,Pf(e)):e.match(/^-?[0-9]+$/)?new ae(z1,Pf(new hh(e))):es.throwArgumentError("invalid BigNumber string","value",e);if(typeof e=="number")return e%1&&On("underflow","BigNumber.from",e),(e>=F3||e<=-F3)&&On("overflow","BigNumber.from",e),ae.from(String(e));const r=e;if(typeof r=="bigint")return ae.from(r.toString());if(Ll(r))return ae.from(fe(r));if(r)if(r.toHexString){const n=r.toHexString();if(typeof n=="string")return ae.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(He(n)||n[0]==="-"&&He(n.substring(1))))return ae.from(n)}return es.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function Pf(t){if(typeof t!="string")return Pf(t.toString(16));if(t[0]==="-")return t=t.substring(1),t[0]==="-"&&es.throwArgumentError("invalid hex","value",t),t=Pf(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 en(t){return ae.from(Pf(t))}function Be(t){const e=ae.from(t).toHexString();return e[0]==="-"?new hh("-"+e.substring(3),16):new hh(e.substring(2),16)}function On(t,e,r){const n={fault:t,operation:e};return r!=null&&(n.value=r),es.throwError(t,W.errors.NUMERIC_FAULT,n)}function iz(t){return new hh(t,36).toString(16)}const Yr=new W(ZC),Qc={},e7=ae.from(0),t7=ae.from(-1);function r7(t,e,r,n){const i={fault:e,operation:r};return n!==void 0&&(i.value=n),Yr.throwError(t,W.errors.NUMERIC_FAULT,i)}let Yc="0";for(;Yc.length<256;)Yc+=Yc;function Mg(t){if(typeof t!="number")try{t=ae.from(t).toNumber()}catch{}return typeof t=="number"&&t>=0&&t<=256&&!(t%1)?"1"+Yc.substring(0,t):Yr.throwArgumentError("invalid decimal size","decimals",t)}function yd(t,e){e==null&&(e=0);const r=Mg(e);t=ae.from(t);const n=t.lt(e7);n&&(t=t.mul(t7));let i=t.mod(r).toString();for(;i.length2&&Yr.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&&r7("fractional component exceeds decimals","underflow","parseFixed"),o===""&&(o="0");o.lengthe[o]==null?l:(typeof e[o]!==a&&Yr.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&&Yr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),i>80&&Yr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new il(Qc,r,n,i)}}class Cr{constructor(e,r,n,i){e!==Qc&&Yr.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&&Yr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.add(n),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.sub(n),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const r=Si(this._value,this.format.decimals),n=Si(e._value,e.format.decimals);return Cr.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=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(z3.toFormat(r.format))),r}ceiling(){const e=this.toString().split(".");e.length===1&&e.push("0");let r=Cr.from(e[0],this.format);const n=!e[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(z3.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)&&Yr.throwArgumentError("invalid decimal count","decimals",e),r[1].length<=e)return this;const n=Cr.from("1"+Yc.substring(0,e),this.format),i=sz.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&&Yr.throwArgumentError("invalid byte width","width",e);const r=ae.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return kt(r,e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return Cr.fromString(this._value,e)}static fromValue(e,r,n){return n==null&&r!=null&&!nz(r)&&(n=r,r=null),r==null&&(r=0),n==null&&(n="fixed"),Cr.fromString(yd(e,r),il.from(n))}static fromString(e,r){r==null&&(r="fixed");const n=il.from(r),i=Si(e,n.decimals);!n.signed&&i.lt(e7)&&r7("unsigned value cannot be negative","overflow","value",e);let s=null;n.signed?s=i.toTwos(n.width).toHexString():(s=i.toHexString(),s=kt(s,n.width/8));const o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static fromBytes(e,r){r==null&&(r="fixed");const n=il.from(r);if(ce(e).length>n.width/8)throw new Error("overflow");let i=ae.from(e);n.signed&&(i=i.fromTwos(n.width));const s=i.toTwos((n.signed?0:1)+n.width).toHexString(),o=yd(i,n.decimals);return new Cr(Qc,s,o,n)}static from(e,r){if(typeof e=="string")return Cr.fromString(e,r);if(Ll(e))return Cr.fromBytes(e,r);try{return Cr.fromValue(e,0,r)}catch(n){if(n.code!==W.errors.INVALID_ARGUMENT)throw n}return Yr.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!!(e&&e._isFixedNumber)}}const z3=Cr.from(1),sz=Cr.from("0.5"),oz="properties/5.7.0";var az=globalThis&&globalThis.__awaiter||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 vh=new W(oz);function ne(t,e,r){Object.defineProperty(t,e,{enumerable:!0,value:r,writable:!1})}function Ni(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 er(t){return az(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 n7(t,e){(!t||typeof t!="object")&&vh.throwArgumentError("invalid object","object",t),Object.keys(t).forEach(r=>{e[r]||vh.throwArgumentError("invalid object key - "+r,"transaction:"+r,t)})}function mr(t){const e={};for(const r in t)e[r]=t[r];return e}const lz={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function i7(t){if(t==null||lz[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;ria(e)));if(typeof t=="object"){const e={};for(const r in t){const n=t[r];n!==void 0&&ne(e,r,ia(n))}return e}return vh.throwArgumentError(`Cannot deepCopy ${typeof t}`,"object",t)}function ia(t){return cz(t)}class ya{constructor(e){for(const r in e)this[r]=ia(e[r])}}const tu="abi/5.7.0",Ue=new W(tu),sa={};let V3={calldata:!0,memory:!0,storage:!0},fz={calldata:!0,memory:!0};function ju(t,e){if(t==="bytes"||t==="string"){if(V3[e])return!0}else if(t==="address"){if(e==="payable")return!0}else if((t.indexOf("[")>=0||t==="tuple")&&fz[e])return!0;return(V3[e]||e==="payable")&&Ue.throwArgumentError("invalid modifier","name",e),!1}function uz(t,e){let r=t;function n(a){Ue.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!==Je.sighash&&(r+=this.type),r+="("+this.components.map(n=>n.format(e)).join(e===Je.full?", ":",")+")"):r+=this.type,e!==Je.sighash&&(this.indexed===!0&&(r+=" indexed"),e===Je.full&&this.name&&(r+=" "+this.name)),r}static from(e,r){return typeof e=="string"?br.fromString(e,r):br.fromObject(e)}static fromObject(e){return br.isParamType(e)?e:new br(sa,{name:e.name||null,type:Ra(e.type),indexed:e.indexed==null?null:!!e.indexed,components:e.components?e.components.map(br.fromObject):null})}static fromString(e,r){function n(i){return br.fromObject({name:i.name,type:i.type,indexed:i.indexed,components:i.components})}return n(uz(e,!!r))}static isParamType(e){return!!(e!=null&&e._isParamType)}}function Rf(t,e){return vz(t).map(r=>br.fromString(r,e))}class cs{constructor(e,r){e!==sa&&Ue.throwError("use a static from method",W.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),pd(this,r),this._isFragment=!0,Object.freeze(this)}static from(e){return cs.isFragment(e)?e:typeof e=="string"?cs.fromString(e):cs.fromObject(e)}static fromObject(e){if(cs.isFragment(e))return e;switch(e.type){case"function":return Ii.fromObject(e);case"event":return is.fromObject(e);case"constructor":return Mi.fromObject(e);case"error":return Vs.fromObject(e);case"fallback":case"receive":return null}return Ue.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"?is.fromString(e.substring(5).trim()):e.split(" ")[0]==="function"?Ii.fromString(e.substring(8).trim()):e.split("(")[0].trim()==="constructor"?Mi.fromString(e.trim()):e.split(" ")[0]==="error"?Vs.fromString(e.substring(5).trim()):Ue.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!!(e&&e._isFragment)}}class is extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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!==Je.sighash&&(r+="event "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.sighash&&this.anonymous&&(r+="anonymous "),r.trim()}static from(e){return typeof e=="string"?is.fromString(e):is.fromObject(e)}static fromObject(e){if(is.isEventFragment(e))return e;e.type!=="event"&&Ue.throwArgumentError("invalid event object","value",e);const r={name:Tf(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(br.fromObject):[],type:"event"};return new is(sa,r)}static fromString(e){let r=e.match(Mf);r||Ue.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:Ue.warn("unknown modifier: "+i)}}),is.fromObject({name:r[1].trim(),anonymous:n,inputs:Rf(r[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&e.type==="event"}}function s7(t,e){e.gas=null;let r=t.split("@");return r.length!==1?(r.length>2&&Ue.throwArgumentError("invalid human-readable ABI signature","value",t),r[1].match(/^[0-9]+$/)||Ue.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=ae.from(r[1]),r[0]):t}function o7(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 a7(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&&Ue.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable=e.stateMutability==="payable",t.payable!=null&&!!t.payable!==e.payable&&Ue.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"&&Ue.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&&Ue.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"&&Ue.throwArgumentError("unable to determine stateMutability","value",t),e}class Mi extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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===Je.sighash&&Ue.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===Je.full?", ":",")+") ";return this.stateMutability&&this.stateMutability!=="nonpayable"&&(r+=this.stateMutability+" "),r.trim()}static from(e){return typeof e=="string"?Mi.fromString(e):Mi.fromObject(e)}static fromObject(e){if(Mi.isConstructorFragment(e))return e;e.type!=="constructor"&&Ue.throwArgumentError("invalid constructor object","value",e);let r=a7(e);r.constant&&Ue.throwArgumentError("constructor cannot be constant","value",e);const n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Mi(sa,n)}static fromString(e){let r={type:"constructor"};e=s7(e,r);let n=e.match(Mf);return(!n||n[1].trim()!=="constructor")&&Ue.throwArgumentError("invalid constructor string","value",e),r.inputs=Rf(n[2].trim(),!1),o7(n[3].trim(),r),Mi.fromObject(r)}static isConstructorFragment(e){return e&&e._isFragment&&e.type==="constructor"}}class Ii extends Mi{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.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!==Je.sighash&&(r+="function "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",e!==Je.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"?Ii.fromString(e):Ii.fromObject(e)}static fromObject(e){if(Ii.isFunctionFragment(e))return e;e.type!=="function"&&Ue.throwArgumentError("invalid function object","value",e);let r=a7(e);const n={type:e.type,name:Tf(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(br.fromObject):[],outputs:e.outputs?e.outputs.map(br.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?ae.from(e.gas):null};return new Ii(sa,n)}static fromString(e){let r={type:"function"};e=s7(e,r);let n=e.split(" returns ");n.length>2&&Ue.throwArgumentError("invalid function string","value",e);let i=n[0].match(Mf);if(i||Ue.throwArgumentError("invalid function signature","value",e),r.name=i[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(i[2],!1),o7(i[3].trim(),r),n.length>1){let s=n[1].match(Mf);(s[1].trim()!=""||s[3].trim()!="")&&Ue.throwArgumentError("unexpected tokens","value",e),r.outputs=Rf(s[2],!1)}else r.outputs=[];return Ii.fromObject(r)}static isFunctionFragment(e){return e&&e._isFragment&&e.type==="function"}}function q3(t){const e=t.format();return(e==="Error(string)"||e==="Panic(uint256)")&&Ue.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class Vs extends cs{format(e){if(e||(e=Je.sighash),Je[e]||Ue.throwArgumentError("invalid format type","format",e),e===Je.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(n=>JSON.parse(n.format(e)))});let r="";return e!==Je.sighash&&(r+="error "),r+=this.name+"("+this.inputs.map(n=>n.format(e)).join(e===Je.full?", ":",")+") ",r.trim()}static from(e){return typeof e=="string"?Vs.fromString(e):Vs.fromObject(e)}static fromObject(e){if(Vs.isErrorFragment(e))return e;e.type!=="error"&&Ue.throwArgumentError("invalid error object","value",e);const r={type:e.type,name:Tf(e.name),inputs:e.inputs?e.inputs.map(br.fromObject):[]};return q3(new Vs(sa,r))}static fromString(e){let r={type:"error"},n=e.match(Mf);return n||Ue.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&Tf(r.name),r.inputs=Rf(n[2],!1),q3(Vs.fromObject(r))}static isErrorFragment(e){return e&&e._isFragment&&e.type==="error"}}function Ra(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const hz=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Tf(t){return(!t||!t.match(hz))&&Ue.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Mf=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function vz(t){t=t.trim();let e=[],r="",n=0;for(let i=0;ithis.wordSize&&Ig.throwError("value out-of-bounds",W.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:r.length}),r.length%this.wordSize&&(r=ir([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 yh{constructor(e,r,n,i){ne(this,"_data",ce(e)),ne(this,"wordSize",r||32),ne(this,"_coerceFunc",n),ne(this,"allowLoose",i),this._offset=0}get data(){return fe(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):yh.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:Ig.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 yh(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 ae.from(this.readBytes(this.wordSize))}}var l7={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=aA: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],d=[1,256,65536,16777216],v=[6,1536,393216,100663296],g=[0,8,16,24],y=[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],w=[224,256,384,512],x=[128,256],b=["hex","buffer","arrayBuffer","array","digest"],S={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(E){return Object.prototype.toString.call(E)==="[object Array]"}),l&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(E){return typeof E=="object"&&E.buffer&&E.buffer.constructor===ArrayBuffer});for(var P=function(E,B,V){return function(q){return new m(E,B,E).update(q)[V]()}},_=function(E,B,V){return function(q,K){return new m(E,B,K).update(q)[V]()}},D=function(E,B,V){return function(q,K,oe,ee){return h["cshake"+E].update(q,K,oe,ee)[V]()}},M=function(E,B,V){return function(q,K,oe,ee){return h["kmac"+E].update(q,K,oe,ee)[V]()}},L=function(E,B,V,q){for(var K=0;K>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}m.prototype.update=function(E){if(this.finalized)throw new Error(r);var B,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);B=!0}for(var q=this.blocks,K=this.byteCount,oe=E.length,ee=this.blockCount,te=0,Ie=this.s,ue,we;te>2]|=E[te]<>2]|=we<>2]|=(192|we>>6)<>2]|=(128|we&63)<=57344?(q[ue>>2]|=(224|we>>12)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<>2]|=(240|we>>18)<>2]|=(128|we>>12&63)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<=K){for(this.start=ue-K,this.block=q[ee],ue=0;ue>8,V=E&255;V>0;)K.unshift(V),E=E>>8,V=E&255,++q;return B?K.push(q):K.unshift(q),this.update(K),K.length},m.prototype.encodeString=function(E){var B,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);B=!0}var q=0,K=E.length;if(B)q=K;else for(var oe=0;oe=57344?q+=3:(ee=65536+((ee&1023)<<10|E.charCodeAt(++oe)&1023),q+=4)}return q+=this.encode(q*8),this.update(E),q},m.prototype.bytepad=function(E,B){for(var V=this.encode(B),q=0;q>2]|=this.padding[B&3],this.lastByteIndex===this.byteCount)for(E[0]=E[V],B=1;B>4&15]+c[te&15]+c[te>>12&15]+c[te>>8&15]+c[te>>20&15]+c[te>>16&15]+c[te>>28&15]+c[te>>24&15];oe%E===0&&(F(B),K=0)}return q&&(te=B[K],ee+=c[te>>4&15]+c[te&15],q>1&&(ee+=c[te>>12&15]+c[te>>8&15]),q>2&&(ee+=c[te>>20&15]+c[te>>16&15])),ee},m.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,B=this.s,V=this.outputBlocks,q=this.extraBytes,K=0,oe=0,ee=this.outputBits>>3,te;q?te=new ArrayBuffer(V+1<<2):te=new ArrayBuffer(ee);for(var Ie=new Uint32Array(te);oe>8&255,ee[te+2]=Ie>>16&255,ee[te+3]=Ie>>24&255;oe%E===0&&F(B)}return q&&(te=oe<<2,Ie=B[K],ee[te]=Ie&255,q>1&&(ee[te+1]=Ie>>8&255),q>2&&(ee[te+2]=Ie>>16&255)),ee};function T(E,B,V){m.call(this,E,B,V)}T.prototype=new m,T.prototype.finalize=function(){return this.encode(this.outputBits,!0),m.prototype.finalize.call(this)};var F=function(E){var B,V,q,K,oe,ee,te,Ie,ue,we,zt,Ve,ot,Jn,at,Ge,un,Ze,ft,Xn,ze,et,pi,nt,pt,_r,ut,dt,mi,mt,ht,In,vt,lt,Qi,yt,gt,gi,xt,U,G,Q,ie,he,me,de,ye,ge,pe,Rt,_e,ve,Ke,ke,tt,Or,Qe,Ye,Hr,cr,dn,hn,vn;for(q=0;q<48;q+=2)K=E[0]^E[10]^E[20]^E[30]^E[40],oe=E[1]^E[11]^E[21]^E[31]^E[41],ee=E[2]^E[12]^E[22]^E[32]^E[42],te=E[3]^E[13]^E[23]^E[33]^E[43],Ie=E[4]^E[14]^E[24]^E[34]^E[44],ue=E[5]^E[15]^E[25]^E[35]^E[45],we=E[6]^E[16]^E[26]^E[36]^E[46],zt=E[7]^E[17]^E[27]^E[37]^E[47],Ve=E[8]^E[18]^E[28]^E[38]^E[48],ot=E[9]^E[19]^E[29]^E[39]^E[49],B=Ve^(ee<<1|te>>>31),V=ot^(te<<1|ee>>>31),E[0]^=B,E[1]^=V,E[10]^=B,E[11]^=V,E[20]^=B,E[21]^=V,E[30]^=B,E[31]^=V,E[40]^=B,E[41]^=V,B=K^(Ie<<1|ue>>>31),V=oe^(ue<<1|Ie>>>31),E[2]^=B,E[3]^=V,E[12]^=B,E[13]^=V,E[22]^=B,E[23]^=V,E[32]^=B,E[33]^=V,E[42]^=B,E[43]^=V,B=ee^(we<<1|zt>>>31),V=te^(zt<<1|we>>>31),E[4]^=B,E[5]^=V,E[14]^=B,E[15]^=V,E[24]^=B,E[25]^=V,E[34]^=B,E[35]^=V,E[44]^=B,E[45]^=V,B=Ie^(Ve<<1|ot>>>31),V=ue^(ot<<1|Ve>>>31),E[6]^=B,E[7]^=V,E[16]^=B,E[17]^=V,E[26]^=B,E[27]^=V,E[36]^=B,E[37]^=V,E[46]^=B,E[47]^=V,B=we^(K<<1|oe>>>31),V=zt^(oe<<1|K>>>31),E[8]^=B,E[9]^=V,E[18]^=B,E[19]^=V,E[28]^=B,E[29]^=V,E[38]^=B,E[39]^=V,E[48]^=B,E[49]^=V,Jn=E[0],at=E[1],de=E[11]<<4|E[10]>>>28,ye=E[10]<<4|E[11]>>>28,dt=E[20]<<3|E[21]>>>29,mi=E[21]<<3|E[20]>>>29,cr=E[31]<<9|E[30]>>>23,dn=E[30]<<9|E[31]>>>23,Q=E[40]<<18|E[41]>>>14,ie=E[41]<<18|E[40]>>>14,lt=E[2]<<1|E[3]>>>31,Qi=E[3]<<1|E[2]>>>31,Ge=E[13]<<12|E[12]>>>20,un=E[12]<<12|E[13]>>>20,ge=E[22]<<10|E[23]>>>22,pe=E[23]<<10|E[22]>>>22,mt=E[33]<<13|E[32]>>>19,ht=E[32]<<13|E[33]>>>19,hn=E[42]<<2|E[43]>>>30,vn=E[43]<<2|E[42]>>>30,ke=E[5]<<30|E[4]>>>2,tt=E[4]<<30|E[5]>>>2,yt=E[14]<<6|E[15]>>>26,gt=E[15]<<6|E[14]>>>26,Ze=E[25]<<11|E[24]>>>21,ft=E[24]<<11|E[25]>>>21,Rt=E[34]<<15|E[35]>>>17,_e=E[35]<<15|E[34]>>>17,In=E[45]<<29|E[44]>>>3,vt=E[44]<<29|E[45]>>>3,nt=E[6]<<28|E[7]>>>4,pt=E[7]<<28|E[6]>>>4,Or=E[17]<<23|E[16]>>>9,Qe=E[16]<<23|E[17]>>>9,gi=E[26]<<25|E[27]>>>7,xt=E[27]<<25|E[26]>>>7,Xn=E[36]<<21|E[37]>>>11,ze=E[37]<<21|E[36]>>>11,ve=E[47]<<24|E[46]>>>8,Ke=E[46]<<24|E[47]>>>8,he=E[8]<<27|E[9]>>>5,me=E[9]<<27|E[8]>>>5,_r=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ye=E[29]<<7|E[28]>>>25,Hr=E[28]<<7|E[29]>>>25,U=E[38]<<8|E[39]>>>24,G=E[39]<<8|E[38]>>>24,et=E[48]<<14|E[49]>>>18,pi=E[49]<<14|E[48]>>>18,E[0]=Jn^~Ge&Ze,E[1]=at^~un&ft,E[10]=nt^~_r&dt,E[11]=pt^~ut&mi,E[20]=lt^~yt&gi,E[21]=Qi^~gt&xt,E[30]=he^~de&ge,E[31]=me^~ye&pe,E[40]=ke^~Or&Ye,E[41]=tt^~Qe&Hr,E[2]=Ge^~Ze&Xn,E[3]=un^~ft&ze,E[12]=_r^~dt&mt,E[13]=ut^~mi&ht,E[22]=yt^~gi&U,E[23]=gt^~xt&G,E[32]=de^~ge&Rt,E[33]=ye^~pe&_e,E[42]=Or^~Ye&cr,E[43]=Qe^~Hr&dn,E[4]=Ze^~Xn&et,E[5]=ft^~ze&pi,E[14]=dt^~mt&In,E[15]=mi^~ht&vt,E[24]=gi^~U&Q,E[25]=xt^~G&ie,E[34]=ge^~Rt&ve,E[35]=pe^~_e&Ke,E[44]=Ye^~cr&hn,E[45]=Hr^~dn&vn,E[6]=Xn^~et&Jn,E[7]=ze^~pi&at,E[16]=mt^~In&nt,E[17]=ht^~vt&pt,E[26]=U^~Q<,E[27]=G^~ie&Qi,E[36]=Rt^~ve&he,E[37]=_e^~Ke&me,E[46]=cr^~hn&ke,E[47]=dn^~vn&tt,E[8]=et^~Jn&Ge,E[9]=pi^~at&un,E[18]=In^~nt&_r,E[19]=vt^~pt&ut,E[28]=Q^~lt&yt,E[29]=ie^~Qi>,E[38]=ve^~he&de,E[39]=Ke^~me&ye,E[48]=hn^~ke&Or,E[49]=vn^~tt&Qe,E[0]^=y[q],E[1]^=y[q+1]};if(a)t.exports=h;else for(k=0;k>=8;return e}function W3(t,e,r){let n=0;for(let i=0;ie+1+n&&Ci.throwError("child data too short",W.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function f7(t,e){if(t.length===0&&Ci.throwError("data too short",W.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&Ci.throwError("data short segment too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);return e+1+r+n>t.length&&Ci.throwError("data long segment too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&Ci.throwError("data array too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&Ci.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);e+1+r+n>t.length&&Ci.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const i=fe(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&&Ci.throwError("data too short",W.errors.BUFFER_OVERRUN,{});const n=fe(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:fe(t[e])}}function _g(t){const e=ce(t),r=f7(e,0);return r.consumed!==e.length&&Ci.throwArgumentError("invalid rlp data","data",t),r.result}const xz="address/5.7.0",Ha=new W(xz);function K3(t){He(t,20)||Ha.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=ce(Et(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 bz=9007199254740991;function wz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const Og={};for(let t=0;t<10;t++)Og[String(t)]=String(t);for(let t=0;t<26;t++)Og[String.fromCharCode(65+t)]=String(10+t);const Q3=Math.floor(wz(bz));function Ez(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Og[n]).join("");for(;e.length>=Q3;){let n=e.substring(0,Q3);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 Ut(t){let e=null;if(typeof t!="string"&&Ha.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=K3(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Ha.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)!==Ez(t)&&Ha.throwArgumentError("bad icap checksum","address",t),e=iz(t.substring(4));e.length<40;)e="0"+e;e=K3("0x"+e)}else Ha.throwArgumentError("invalid address","address",t);return e}function Az(t){try{return Ut(t),!0}catch{}return!1}function u7(t){let e=null;try{e=Ut(t.from)}catch{Ha.throwArgumentError("missing from address","transaction",t)}const r=hs(ce(ae.from(t.nonce).toHexString()));return Ut(vr(Et(bl([e,r])),12))}class Sz extends Rs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ut(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ut(kt(e.readValue().toHexString(),20))}}class Cz extends Rs{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 Wa=new W(tu);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||Wa.throwError("cannot encode object for signature with missing names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&Wa.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 Wa.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Wa.throwArgumentError("types/value length mismatch","tuple",r);let i=new Jy(t.wordSize),s=new Jy(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+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 kz extends Rs{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&&Wa.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===gn.OVERRUN?r.length-e-1:0}function Bz(t,e,r,n,i){return t===gn.OVERLONG?(n.push(i),0):(n.push(65533),m7(t,e,r))}const $z=Object.freeze({error:jz,ignore:m7,replace:Bz});function g7(t,e){e==null&&(e=$z.error),t=ce(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(gn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(gn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(gn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(gn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(gn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(gn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function sr(t,e=ho.current){e!=ho.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 ce(r)}function Fz(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ru(t,e){return Fz(g7(t,e))}function Uz(t,e=ho.current){return g7(sr(t,e))}class zz extends v7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,sr(r))}decode(e){return ru(super.decode(e))}}class Bu extends Rs{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 $u=new W(tu),Vz=new RegExp(/^bytes([0-9]*)$/),qz=new RegExp(/^(u?int)([0-9]*)$/);class Hz{constructor(e){ne(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Sz(e.name);case"bool":return new Pz(e.name);case"string":return new zz(e.name);case"bytes":return new Rz(e.name);case"array":return new kz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Bu((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new Mz(e.name)}let r=e.type.match(qz);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&$u.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Dz(n/8,r[1]==="int",e.name)}if(r=e.type.match(Vz),r){let n=parseInt(r[1]);return(n===0||n>32)&&$u.throwArgumentError("invalid bytes length","param",e),new Tz(n,e.name)}return $u.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new yh(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Jy(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(br.from(i)));return new Bu(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&$u.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(br.from(o))),i=new Bu(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(br.from(o)));return new Bu(i,"_").decode(this._getReader(ce(r),n))}}const Wz=new Hz;function $o(t){return Et(sr(t))}const x7="hash/5.7.0";function b7(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 Gz(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,g=v>>1,y=d-1;let w=0;for(let _=0;_1;){let H=D+M>>>1;_>>1|f(),L=L<<1^v,z=(z^v)<<1|v|1;b=L,S=1+z-L}let P=n-4;return x.map(_=>{switch(_-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 _-1}})}function Qz(t){let e=0;return()=>t[e++]}function Yz(t){return Qz(Kz(t))}function Jz(t){return t&1?~t>>1:t>>1}function Xz(t,e){let r=Array(t);for(let n=0;ne[o]):r}function eV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(rV(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(nV(r,t))}return Gz(E7(e))}function tV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function A7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function rV(t,e){let r=1+e(),n=e(),i=tV(e),s=A7(i.length,1+t,e);return E7(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function nV(t,e){let r=1+e();return A7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function iV(t){let e=ph(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=ph(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 sV(){return Yz(b7("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"))}const b0=sV(),oV=new Set(ph(b0)),aV=new Set(ph(b0)),lV=eV(b0),cV=iV(b0),J3=45,X3=95;function S7(t){return Uz(t)}function fV(t){return t.filter(e=>e!=65039)}function C7(t){for(let e of t.split(".")){let r=S7(e);try{for(let n=r.lastIndexOf(X3)-1;n>=0;n--)if(r[n]!==X3)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===J3&&r[3]===J3)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function uV(t){return C7(dV(t,fV))}function dV(t,e){let r=S7(t).reverse(),n=[];for(;r.length;){let i=vV(r);if(i){n.push(...e(i));continue}let s=r.pop();if(oV.has(s)){n.push(s);continue}if(aV.has(s))continue;let o=lV[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return C7(hV(String.fromCodePoint(...n)))}function hV(t){return t.normalize("NFC")}function vV(t,e){var r;let n=cV,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 yV=new W(x7),k7=new Uint8Array(32);k7.fill(0);function Z3(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function P7(t){const e=sr(uV(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(Z3(e.slice(n))),r}function md(t){typeof t!="string"&&yV.throwArgumentError("invalid ENS name; not a string","name",t);let e=k7;const r=P7(t);for(;r.length;)e=Et(ir([e,Et(r.pop())]));return fe(e)}function pV(t){return fe(ir(P7(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 mV=`Ethereum Signed Message: -`;function gV(t){return typeof t=="string"&&(t=sr(t)),Et(ir([sr(mV),sr(String(t.length)),t]))}var xV=globalThis&&globalThis.__awaiter||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 Dt=new W(x7),R7=new Uint8Array(32);R7.fill(0);const bV=ae.from(-1),T7=ae.from(0),M7=ae.from(1),wV=ae.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function EV(t){const e=ce(t),r=e.length%32;return r?rn([e,R7.slice(r)]):fe(e)}const AV=kt(M7.toHexString(),32),SV=kt(T7.toHexString(),32),eE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},V1=["name","version","chainId","verifyingContract","salt"];function tE(t){return function(e){return typeof e!="string"&&Dt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const CV={name:tE("name"),version:tE("version"),chainId:function(t){try{return ae.from(t).toString()}catch{}return Dt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ut(t).toLowerCase()}catch{}return Dt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ce(t);if(e.length!==32)throw new Error("bad length");return fe(e)}catch{}return Dt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function q1(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))&&Dt.throwArgumentError("invalid numeric width","type",t);const i=wV.mask(r?n-1:n),s=r?i.add(M7).mul(bV):T7;return function(o){const a=ae.from(o);return(a.lt(s)||a.gt(i))&&Dt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),kt(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))&&Dt.throwArgumentError("invalid bytes width","type",t),function(n){return ce(n).length!==r&&Dt.throwArgumentError(`invalid length for ${t}`,"value",n),EV(n)}}}switch(t){case"address":return function(e){return kt(Ut(e),32)};case"bool":return function(e){return e?AV:SV};case"bytes":return function(e){return Et(e)};case"string":return function(e){return $o(e)}}return null}function rE(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Kr{constructor(e){ne(this,"types",Object.freeze(ia(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]&&Dt.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&&Dt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!q1(f)&&(n[f]||Dt.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?Dt.throwArgumentError("missing primary type","types",e):s.length>1&&Dt.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]&&Dt.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]=rE(a,e[a])+l.map(c=>rE(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=q1(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&&Dt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(Et)),Et(rn(l))}}const n=this.types[e];if(n){const i=$o(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?Et(c):c});return o.unshift(i),rn(o)}}return Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Dt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Et(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(q1(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&&Dt.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),{}):Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Kr(e)}static getPrimaryType(e){return Kr.from(e).primaryType}static hashStruct(e,r,n){return Kr.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=eE[n];i||Dt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>V1.indexOf(n.name)-V1.indexOf(i.name)),Kr.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return rn(["0x1901",Kr.hashDomain(e),Kr.from(r).hash(n)])}static hash(e,r,n){return Et(Kr.encode(e,r,n))}static resolveNames(e,r,n,i){return xV(this,void 0,void 0,function*(){e=mr(e);const s={};e.verifyingContract&&!He(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Kr.from(r);o.visit(n,(a,l)=>(a==="address"&&!He(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){Kr.hashDomain(e);const i={},s=[];V1.forEach(l=>{const c=e[l];c!=null&&(i[l]=CV[l](c),s.push({name:l,type:eE[l]}))});const o=Kr.from(r),a=mr(r);return a.EIP712Domain?Dt.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 fe(ce(c));if(l.match(/^u?int/))return ae.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Dt.throwArgumentError("invalid string","value",c),c}return Dt.throwArgumentError("unsupported type","type",l)})}}}const Nt=new W(tu);class kV extends ya{}class PV extends ya{}class RV extends ya{}class Xy extends ya{static isIndexed(e){return!!(e&&e._isIndexed)}}const TV={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function nE(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class iE{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,ne(this,"fragments",r.map(n=>cs.from(n)).filter(n=>n!=null)),ne(this,"_abiCoder",Oi(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){Nt.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]){Nt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ne(this,"deploy",Ti.from({payable:!1,type:"constructor"})),ne(this,"_isInterface",!0)}format(e){e||(e=Je.full),e===Je.sighash&&Nt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Je.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return Wz}static getAddress(e){return Ut(e)}static getSighash(e){return vr($o(e.format()),0,4)}static getEventTopic(e){return $o(e.format())}getFunction(e){if(He(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Nt.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?Nt.throwArgumentError("no matching function","name",n):i.length>1&&Nt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Mi.fromString(e).format()];return r||Nt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(He(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Nt.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?Nt.throwArgumentError("no matching event","name",n):i.length>1&&Nt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[is.fromString(e).format()];return r||Nt.throwArgumentError("no matching event","signature",e),r}getError(e){if(He(e)){const n=Oi(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Nt.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?Nt.throwArgumentError("no matching error","name",n):i.length>1&&Nt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Mi.fromString(e).format()];return r||Nt.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 Oi(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Oi(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=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ce(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=fe(n.slice(0,4)),f=TV[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 Nt.throwError("call revert exception"+s,W.errors.CALL_EXCEPTION,{method:e.format(),data:fe(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Nt.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"?$o(o):s.type==="bytes"?Et(fe(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=ae.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),kt(fe(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Nt.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"?Nt.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&&Nt.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($o(l));else if(o.type==="bytes")n.push(Et(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 d=this.getEventTopic(e);(!He(n[0],32)||n[0].toLowerCase()!==d)&&Nt.throwError("fragment/topic mismatch",W.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(br.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,ir(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new Xy({_isIndexed:!0,hash:null});else if(o[v])c[v]=new Xy({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(g){c[v]=g}else try{c[v]=l[f++]}catch(g){c[v]=g}if(d.name&&c[d.name]==null){const g=c[v];g instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw nE(`property ${JSON.stringify(d.name)}`,g)}}):c[d.name]=g}});for(let d=0;d{throw nE(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new PV({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:ae.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new kV({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=fe(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new RV({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 MV="abstract-provider/5.7.0";var IV=globalThis&&globalThis.__awaiter||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 _V=new W(MV);class OV extends ya{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class nu{constructor(){_V.checkAbstract(new.target,nu),ne(this,"_isProvider",!0)}getFeeData(){return IV(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield er({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=ae.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 NV="abstract-signer/5.7.0";var ei=globalThis&&globalThis.__awaiter||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 Nn=new W(NV),DV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],LV=[W.errors.INSUFFICIENT_FUNDS,W.errors.NONCE_EXPIRED,W.errors.REPLACEMENT_UNDERPRICED];class jl{constructor(){Nn.checkAbstract(new.target,jl),ne(this,"_isSigner",!0)}getBalance(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return ei(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield er(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return ei(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield er(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return ei(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 ei(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)DV.indexOf(n)===-1&&Nn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=mr(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()&&Nn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return ei(this,void 0,void 0,function*(){const r=yield er(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>ei(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&Nn.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)?Nn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Nn.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&&Nn.throwError("network does not support EIP-1559",W.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Nn.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(LV.indexOf(i.code)>=0)throw i;return Nn.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]&&Nn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield er(r)})}_checkProvider(e){this.provider||Nn.throwError("missing provider",W.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class Dg extends jl{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(()=>{Nn.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 Dg(this.address,e)}}var I7={},$e={},iu=_7;function _7(t,e){if(!t)throw new Error(e||"Assertion failed")}_7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Zy={exports:{}};typeof Object.create=="function"?Zy.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Zy.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 jV=Zy.exports,BV=iu,$V=jV;$e.inherits=$V;function FV(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function UV(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):FV(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}$e.htonl=O7;function VV(t,e){for(var r="",n=0;n>>0}return s}$e.join32=qV;function HV(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}$e.split32=HV;function WV(t,e){return t>>>e|t<<32-e}$e.rotr32=WV;function GV(t,e){return t<>>32-e}$e.rotl32=GV;function KV(t,e){return t+e>>>0}$e.sum32=KV;function QV(t,e,r){return t+e+r>>>0}$e.sum32_3=QV;function YV(t,e,r,n){return t+e+r+n>>>0}$e.sum32_4=YV;function JV(t,e,r,n,i){return t+e+r+n+i>>>0}$e.sum32_5=JV;function XV(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}$e.sum64=XV;function ZV(t,e,r,n){var i=e+n>>>0,s=(i>>0}$e.sum64_hi=ZV;function eq(t,e,r,n){var i=e+n;return i>>>0}$e.sum64_lo=eq;function tq(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}$e.sum64_4_hi=tq;function rq(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}$e.sum64_4_lo=rq;function nq(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}$e.sum64_5_hi=nq;function iq(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}$e.sum64_5_lo=iq;function sq(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}$e.rotr64_hi=sq;function oq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.rotr64_lo=oq;function aq(t,e,r){return t>>>r}$e.shr64_hi=aq;function lq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.shr64_lo=lq;var Bl={},sE=$e,cq=iu;function w0(){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}Bl.BlockHash=w0;w0.prototype.update=function(e,r){if(e=sE.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=sE.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}Gi.g0_256=vq;function yq(t){return Bi(t,17)^Bi(t,19)^t>>>10}Gi.g1_256=yq;var wl=$e,pq=Bl,mq=Gi,H1=wl.rotl32,lc=wl.sum32,gq=wl.sum32_5,xq=mq.ft_1,$7=pq.BlockHash,bq=[1518500249,1859775393,2400959708,3395469782];function Vi(){if(!(this instanceof Vi))return new Vi;$7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}wl.inherits(Vi,$7);var wq=Vi;Vi.blockSize=512;Vi.outSize=160;Vi.hmacStrength=80;Vi.padLength=64;Vi.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()),lH(e.length<=this.blockSize);for(var r=e.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}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(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[g]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var g=l.andln(3)+u&3,y=c.andln(3)+d&3;g===3&&(g=-1),y===3&&(y=-1);var w;g&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-g:w=g):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&g===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),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 Oe(l,"hex","le")}r.intFromLE=a}),mh=Mn.getNAF,uH=Mn.getJSF,gh=Mn.assert;function Ao(t,e){this.type=t,this.p=new Oe(e.p,16),this.red=e.prime?Oe.red(e.prime):Oe.mont(this.p),this.zero=new Oe(0).toRed(this.red),this.one=new Oe(1).toRed(this.red),this.two=new Oe(2).toRed(this.red),this.n=e.n&&new Oe(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 pa=Ao;Ao.prototype.point=function(){throw new Error("Not implemented")};Ao.prototype.validate=function(){throw new Error("Not implemented")};Ao.prototype._fixedNafMul=function(e,r){gh(e.precomputed);var n=e._getDoubles(),i=mh(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),d=s;d>0;d--){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];gh(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};Ao.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var g=f-1,y=f;if(o[g]!==1||o[y]!==1){l[g]=mh(n[g],o[g],this._bitLength),l[y]=mh(n[y],o[y],this._bitLength),c=Math.max(l[g].length,c),c=Math.max(l[y].length,c);continue}var w=[r[g],null,null,r[y]];r[g].y.cmp(r[y].y)===0?(w[1]=r[g].add(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg())):r[g].y.cmp(r[y].y.redNeg())===0?(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].add(r[y].neg())):(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=uH(n[g],n[y]);for(c=Math.max(b[0].length,c),l[g]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var M=0;f>=0;){var L=!0;for(u=0;u=0&&M++,_=_.dblp(M),f<0)break;for(u=0;u0?d=a[u][z-1>>1]:z<0&&(d=a[u][-z-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};Kn.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&&(v=c,g=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),g=g.neg()),[{a:u,b:d},{a:v,b:g}]};Qn.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),d=c.add(f).neg();return{k1:u,k2:d}};Qn.prototype.pointFromX=function(e,r){e=new Oe(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)};Qn.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};Qn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};Ar.prototype.isInfinity=function(){return this.inf};Ar.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)};Ar.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)};Ar.prototype.getX=function(){return this.x.fromRed()};Ar.prototype.getY=function(){return this.y.fromRed()};Ar.prototype.mul=function(e){return e=new Oe(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)};Ar.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)};Ar.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)};Ar.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)};Ar.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};Ar.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 Mr(t,e,r,n){pa.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Oe(0)):(this.x=new Oe(e,16),this.y=new Oe(r,16),this.z=new Oe(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}jg(Mr,pa.BasePoint);Qn.prototype.jpoint=function(e,r,n){return new Mr(this,e,r,n)};Mr.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)};Mr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Mr.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),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),g=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,g,y)};Mr.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),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),g=this.z.redMul(a);return this.curve.jpoint(d,v,g)};Mr.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}};Mr.prototype.inspect=function(){return this.isInfinity()?"":""};Mr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var gd=Ul(function(t,e){var r=e;r.base=pa,r.short=hH,r.mont=null,r.edwards=null}),xd=Ul(function(t,e){var r=e,n=Mn.assert;function i(a){a.type==="short"?this.curve=new gd.short(a):a.type==="edwards"?this.curve=new gd.edwards(a):this.curve=new gd.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",o]})});function vo(t){if(!(this instanceof vo))return new vo(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=fi.toArray(t.entropy,t.entropyEnc||"hex"),r=fi.toArray(t.nonce,t.nonceEnc||"hex"),n=fi.toArray(t.pers,t.persEnc||"hex");Lg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var J7=vo;vo.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};vo.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=fi.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var vH=Mn.assert;function E0(t,e){if(t instanceof E0)return t;this._importDER(t,e)||(vH(t.r&&t.s,"Signature without r or s"),this.r=new Oe(t.r,16),this.s=new Oe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var A0=E0;function yH(){this.place=0}function K1(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 cE(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)}E0.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=cE(r),n=cE(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Q1(i,r.length),i=i.concat(r),i.push(2),Q1(i,n.length);var s=i.concat(n),o=[48];return Q1(o,s.length),o=o.concat(s),Mn.encode(o,e)};var pH=function(){throw new Error("unsupported")},X7=Mn.assert;function Gn(t){if(!(this instanceof Gn))return new Gn(t);typeof t=="string"&&(X7(Object.prototype.hasOwnProperty.call(xd,t),"Unknown curve "+t),t=xd[t]),t instanceof xd.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 mH=Gn;Gn.prototype.keyPair=function(e){return new Bg(this,e)};Gn.prototype.keyFromPrivate=function(e,r){return Bg.fromPrivate(this,e,r)};Gn.prototype.keyFromPublic=function(e,r){return Bg.fromPublic(this,e,r)};Gn.prototype.genKeyPair=function(e){e||(e={});for(var r=new J7({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||pH(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Oe(2));;){var s=new Oe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Gn.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};Gn.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 Oe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new J7({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Oe(1)),f=0;;f++){var u=i.k?i.k(f):new Oe(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),g=v.umod(this.n);if(g.cmpn(0)!==0){var y=u.invm(this.n).mul(g.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(g)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new A0({r:g,s:y,recoveryParam:w})}}}}}};Gn.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Oe(e,16)),n=this.keyFromPublic(n,i),r=new A0(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)};Gn.prototype.recoverPubKey=function(t,e,r,n){X7((3&r)===r,"The recovery param is more than two bits"),e=new A0(e,n);var i=this.n,s=new Oe(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),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};Gn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new A0(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 gH=Ul(function(t,e){var r=e;r.version="6.5.4",r.utils=Mn,r.rand=function(){throw new Error("unsupported")},r.curve=gd,r.curves=xd,r.ec=mH,r.eddsa=null}),xH=gH.ec;const bH="signing-key/5.7.0",np=new W(bH);let Y1=null;function ki(){return Y1||(Y1=new xH("secp256k1")),Y1}class il{constructor(e){ne(this,"curve","secp256k1"),ne(this,"privateKey",fe(e)),na(this.privateKey)!==32&&np.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=ki().keyFromPrivate(ce(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=ki().keyFromPublic(ce(this.publicKey)),n=ki().keyFromPublic(ce(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=ki().keyFromPrivate(ce(this.privateKey)),n=ce(e);n.length!==32&&np.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return Ll({recoveryParam:i.recoveryParam,r:kt("0x"+i.r.toString(16),32),s:kt("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=ki().keyFromPrivate(ce(this.privateKey)),n=ki().keyFromPublic(ce(Z7(e)));return kt("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function wH(t,e){const r=Ll(e),n={r:ce(r.r),s:ce(r.s)};return"0x"+ki().recoverPubKey(ce(t),n,r.recoveryParam).encode("hex",!1)}function Z7(t,e){const r=ce(t);if(r.length===32){const n=new il(r);return e?"0x"+ki().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?fe(r):"0x"+ki().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+ki().keyFromPublic(r).getPublic(!0,"hex"):fe(r)}return np.throwArgumentError("invalid public or private key","key","[REDACTED]")}const EH="transactions/5.7.0",Fr=new W(EH);var fE;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(fE||(fE={}));function $g(t){return t==="0x"?null:Ut(t)}function $r(t){return t==="0x"?y7:ae.from(t)}const AH=[{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"}],SH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Wo(t){const e=Z7(t);return Ut(vr(Et(vr(e,1)),12))}function e9(t,e){return Wo(wH(ce(t),e))}function xn(t,e){const r=hs(ae.from(t).toHexString());return r.length>32&&Fr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function J1(t,e){return{address:Ut(t),storageKeys:(e||[]).map((r,n)=>(na(r)!==32&&Fr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function zl(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Fr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),J1(r[0],r[1])):J1(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return J1(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function t9(t){return zl(t).map(e=>[e.address,e.storageKeys])}function r9(t,e){if(t.gasPrice!=null){const n=ae.from(t.gasPrice),i=ae.from(t.maxFeePerGas||0);n.eq(i)||Fr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),xn(t.maxFeePerGas||0,"maxFeePerGas"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=Ll(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x02",bl(r)])}function n9(t,e){const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.gasPrice||0,"gasPrice"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=Ll(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x01",bl(r)])}function CH(t,e){n7(t,SH);const r=[];AH.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ce(fe(a,l)),o.length&&a.length!==o.length&&a.length>0&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=hs(a),a.length>o.maxLength&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(fe(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Fr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!x0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(fe(n)),r.push("0x"),r.push("0x")),!e)return bl(r);const i=Ll(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&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(fe(s)),r.push(hs(ce(i.r))),r.push(hs(ce(i.s))),bl(r)}function uE(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Fr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),CH(t,e);switch(t.type){case 1:return n9(t,e);case 2:return r9(t,e)}return Fr.throwError(`unsupported transaction type: ${t.type}`,W.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function i9(t,e,r){try{const n=$r(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Fr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=kt(e[1],32),t.s=kt(e[2],32);try{const n=Et(r(t));t.from=e9(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function kH(t){const e=_g(t.slice(1));e.length!==9&&e.length!==12&&Fr.throwArgumentError("invalid component count for transaction type: 2","payload",fe(t));const r=$r(e[2]),n=$r(e[3]),i={type:2,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:$r(e[4]),to:$g(e[5]),value:$r(e[6]),data:e[7],accessList:zl(e[8])};return e.length===9||(i.hash=Et(t),i9(i,e.slice(9),r9)),i}function PH(t){const e=_g(t.slice(1));e.length!==8&&e.length!==11&&Fr.throwArgumentError("invalid component count for transaction type: 1","payload",fe(t));const r={type:1,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),gasPrice:$r(e[2]),gasLimit:$r(e[3]),to:$g(e[4]),value:$r(e[5]),data:e[6],accessList:zl(e[7])};return e.length===8||(r.hash=Et(t),i9(r,e.slice(8),n9)),r}function RH(t){const e=_g(t);e.length!==9&&e.length!==6&&Fr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:$r(e[0]).toNumber(),gasPrice:$r(e[1]),gasLimit:$r(e[2]),to:$g(e[3]),value:$r(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=ae.from(e[6]).toNumber()}catch{return r}if(r.r=kt(e[7],32),r.s=kt(e[8],32),ae.from(r.r).isZero()&&ae.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(fe(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=Et(bl(i));try{r.from=e9(s,{r:fe(r.r),s:fe(r.s),recoveryParam:n})}catch{}r.hash=Et(t)}return r.type=null,r}function TH(t){const e=ce(t);if(e[0]>127)return RH(e);switch(e[0]){case 1:return PH(e);case 2:return kH(e)}return Fr.throwError(`unsupported transaction type: ${e[0]}`,W.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const MH="contracts/5.7.0";var aa=globalThis&&globalThis.__awaiter||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 tr=new W(MH);function xh(t,e){return aa(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&tr.throwArgumentError("invalid address or ENS name","name",r);try{return Ut(r)}catch{}t||tr.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&&tr.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function bd(t,e,r){return aa(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>bd(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield xh(t,e):r.type==="tuple"?yield bd(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>bd(t,n,r.arrayChildren))):Promise.reject(tr.makeError("invalid value for array",W.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function S0(t,e,r){return aa(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=mr(r.pop())),tr.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=er({override:xh(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>aa(this,void 0,void 0,function*(){return Ut(c.signer)!==c.override&&tr.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=xh(t.provider,n.from));const i=yield er({args:bd(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:er(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=ae.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=ae.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=ae.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=ae.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=ae.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=zl(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ce(s);for(let u=0;un[c]!=null);return l.length&&tr.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,W.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function IH(t,e){return function(...r){return S0(t,e,r)}}function _H(t,e){const r=t.signer||t.provider;return function(...n){return aa(this,void 0,void 0,function*(){r||tr.throwError("estimate require a provider or signer",W.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield S0(t,e,n);return yield r.estimateGas(i)})}}function OH(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=ia(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 s9(t,e,r){const n=t.signer||t.provider;return function(...i){return aa(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=mr(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 S0(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 NH(t,e){return function(...r){return aa(this,void 0,void 0,function*(){t.signer||tr.throwError("sending a transaction requires a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield S0(t,e,r),i=yield t.signer.sendTransaction(n);return OH(t,i),i})}}function dE(t,e,r){return e.constant?s9(t,e,r):NH(t,e)}function o9(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 If{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 DH extends If{constructor(){super("error",null)}}class hE extends If{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&tr.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(o9(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=yz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class vE extends If{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 LH{constructor(e,r,n){ne(this,"interface",Oi(new.target,"getInterface")(r)),n==null?(ne(this,"provider",null),ne(this,"signer",null)):jl.isSigner(n)?(ne(this,"provider",n.provider||null),ne(this,"signer",n)):nu.isProvider(n)?(ne(this,"provider",n),ne(this,"signer",null)):tr.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]]):tr.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ne(this,"_runningEvents",{}),ne(this,"_wrappedEmits",{}),e==null&&tr.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ne(this,"address",e),this.provider)ne(this,"resolvedAddress",xh(this.provider,e));else try{ne(this,"resolvedAddress",Promise.resolve(Ut(e)))}catch{tr.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]){tr.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,dE(this,a,!0)),this.functions[o]==null&&ne(this.functions,o,dE(this,a,!1)),this.callStatic[o]==null&&ne(this.callStatic,o,s9(this,a,!0)),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,IH(this,a)),this.estimateGas[o]==null&&ne(this.estimateGas,o,_H(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 u7(e)}static getInterface(e){return iE.isInterface(e)?e:new iE(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"&&tr.throwError("contract not deployed",W.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||tr.throwError("sending a transactions require a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=mr(e||{});return["from","to"].forEach(function(n){r[n]!=null&&tr.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 Dg(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 Xy.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 DH);if(e==="event")return this._normalizeRunningEvent(new If("event",null));if(e==="*")return this._normalizeRunningEvent(new vE(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new hE(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 hE(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new If(o9(r),r))}return this._normalizeRunningEvent(new vE(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=ia(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||tr.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=mr(i.filter);return typeof r=="string"&&He(r,32)?(n!=null&&tr.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 jH extends LH{}class a9{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 d=ce(bh(i,t,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y>5,this.byteCount=this.blockCount<<2,this.outputBlocks=V>>5,this.extraBytes=(V&31)>>3;for(var q=0;q<50;++q)this.s[q]=0}m.prototype.update=function(E){if(this.finalized)throw new Error(r);var $,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);$=!0}for(var q=this.blocks,K=this.byteCount,oe=E.length,te=this.blockCount,re=0,Ie=this.s,ue,we;re>2]|=E[re]<>2]|=we<>2]|=(192|we>>6)<>2]|=(128|we&63)<=57344?(q[ue>>2]|=(224|we>>12)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<>2]|=(240|we>>18)<>2]|=(128|we>>12&63)<>2]|=(128|we>>6&63)<>2]|=(128|we&63)<=K){for(this.start=ue-K,this.block=q[te],ue=0;ue>8,V=E&255;V>0;)K.unshift(V),E=E>>8,V=E&255,++q;return $?K.push(q):K.unshift(q),this.update(K),K.length},m.prototype.encodeString=function(E){var $,V=typeof E;if(V!=="string"){if(V==="object"){if(E===null)throw new Error(e);if(l&&E.constructor===ArrayBuffer)E=new Uint8Array(E);else if(!Array.isArray(E)&&(!l||!ArrayBuffer.isView(E)))throw new Error(e)}else throw new Error(e);$=!0}var q=0,K=E.length;if($)q=K;else for(var oe=0;oe=57344?q+=3:(te=65536+((te&1023)<<10|E.charCodeAt(++oe)&1023),q+=4)}return q+=this.encode(q*8),this.update(E),q},m.prototype.bytepad=function(E,$){for(var V=this.encode($),q=0;q>2]|=this.padding[$&3],this.lastByteIndex===this.byteCount)for(E[0]=E[V],$=1;$>4&15]+c[re&15]+c[re>>12&15]+c[re>>8&15]+c[re>>20&15]+c[re>>16&15]+c[re>>28&15]+c[re>>24&15];oe%E===0&&(F($),K=0)}return q&&(re=$[K],te+=c[re>>4&15]+c[re&15],q>1&&(te+=c[re>>12&15]+c[re>>8&15]),q>2&&(te+=c[re>>20&15]+c[re>>16&15])),te},m.prototype.arrayBuffer=function(){this.finalize();var E=this.blockCount,$=this.s,V=this.outputBlocks,q=this.extraBytes,K=0,oe=0,te=this.outputBits>>3,re;q?re=new ArrayBuffer(V+1<<2):re=new ArrayBuffer(te);for(var Ie=new Uint32Array(re);oe>8&255,te[re+2]=Ie>>16&255,te[re+3]=Ie>>24&255;oe%E===0&&F($)}return q&&(re=oe<<2,Ie=$[K],te[re]=Ie&255,q>1&&(te[re+1]=Ie>>8&255),q>2&&(te[re+2]=Ie>>16&255)),te};function T(E,$,V){m.call(this,E,$,V)}T.prototype=new m,T.prototype.finalize=function(){return this.encode(this.outputBits,!0),m.prototype.finalize.call(this)};var F=function(E){var $,V,q,K,oe,te,re,Ie,ue,we,zt,Ve,ot,Jn,at,Ge,un,Ze,ft,Xn,ze,et,mi,it,pt,_r,ut,dt,gi,mt,ht,In,vt,lt,Qi,yt,gt,xi,xt,U,G,Q,ie,he,me,de,ye,ge,pe,Rt,_e,ve,Ke,ke,tt,Or,Qe,Ye,Hr,fr,dn,hn,vn;for(q=0;q<48;q+=2)K=E[0]^E[10]^E[20]^E[30]^E[40],oe=E[1]^E[11]^E[21]^E[31]^E[41],te=E[2]^E[12]^E[22]^E[32]^E[42],re=E[3]^E[13]^E[23]^E[33]^E[43],Ie=E[4]^E[14]^E[24]^E[34]^E[44],ue=E[5]^E[15]^E[25]^E[35]^E[45],we=E[6]^E[16]^E[26]^E[36]^E[46],zt=E[7]^E[17]^E[27]^E[37]^E[47],Ve=E[8]^E[18]^E[28]^E[38]^E[48],ot=E[9]^E[19]^E[29]^E[39]^E[49],$=Ve^(te<<1|re>>>31),V=ot^(re<<1|te>>>31),E[0]^=$,E[1]^=V,E[10]^=$,E[11]^=V,E[20]^=$,E[21]^=V,E[30]^=$,E[31]^=V,E[40]^=$,E[41]^=V,$=K^(Ie<<1|ue>>>31),V=oe^(ue<<1|Ie>>>31),E[2]^=$,E[3]^=V,E[12]^=$,E[13]^=V,E[22]^=$,E[23]^=V,E[32]^=$,E[33]^=V,E[42]^=$,E[43]^=V,$=te^(we<<1|zt>>>31),V=re^(zt<<1|we>>>31),E[4]^=$,E[5]^=V,E[14]^=$,E[15]^=V,E[24]^=$,E[25]^=V,E[34]^=$,E[35]^=V,E[44]^=$,E[45]^=V,$=Ie^(Ve<<1|ot>>>31),V=ue^(ot<<1|Ve>>>31),E[6]^=$,E[7]^=V,E[16]^=$,E[17]^=V,E[26]^=$,E[27]^=V,E[36]^=$,E[37]^=V,E[46]^=$,E[47]^=V,$=we^(K<<1|oe>>>31),V=zt^(oe<<1|K>>>31),E[8]^=$,E[9]^=V,E[18]^=$,E[19]^=V,E[28]^=$,E[29]^=V,E[38]^=$,E[39]^=V,E[48]^=$,E[49]^=V,Jn=E[0],at=E[1],de=E[11]<<4|E[10]>>>28,ye=E[10]<<4|E[11]>>>28,dt=E[20]<<3|E[21]>>>29,gi=E[21]<<3|E[20]>>>29,fr=E[31]<<9|E[30]>>>23,dn=E[30]<<9|E[31]>>>23,Q=E[40]<<18|E[41]>>>14,ie=E[41]<<18|E[40]>>>14,lt=E[2]<<1|E[3]>>>31,Qi=E[3]<<1|E[2]>>>31,Ge=E[13]<<12|E[12]>>>20,un=E[12]<<12|E[13]>>>20,ge=E[22]<<10|E[23]>>>22,pe=E[23]<<10|E[22]>>>22,mt=E[33]<<13|E[32]>>>19,ht=E[32]<<13|E[33]>>>19,hn=E[42]<<2|E[43]>>>30,vn=E[43]<<2|E[42]>>>30,ke=E[5]<<30|E[4]>>>2,tt=E[4]<<30|E[5]>>>2,yt=E[14]<<6|E[15]>>>26,gt=E[15]<<6|E[14]>>>26,Ze=E[25]<<11|E[24]>>>21,ft=E[24]<<11|E[25]>>>21,Rt=E[34]<<15|E[35]>>>17,_e=E[35]<<15|E[34]>>>17,In=E[45]<<29|E[44]>>>3,vt=E[44]<<29|E[45]>>>3,it=E[6]<<28|E[7]>>>4,pt=E[7]<<28|E[6]>>>4,Or=E[17]<<23|E[16]>>>9,Qe=E[16]<<23|E[17]>>>9,xi=E[26]<<25|E[27]>>>7,xt=E[27]<<25|E[26]>>>7,Xn=E[36]<<21|E[37]>>>11,ze=E[37]<<21|E[36]>>>11,ve=E[47]<<24|E[46]>>>8,Ke=E[46]<<24|E[47]>>>8,he=E[8]<<27|E[9]>>>5,me=E[9]<<27|E[8]>>>5,_r=E[18]<<20|E[19]>>>12,ut=E[19]<<20|E[18]>>>12,Ye=E[29]<<7|E[28]>>>25,Hr=E[28]<<7|E[29]>>>25,U=E[38]<<8|E[39]>>>24,G=E[39]<<8|E[38]>>>24,et=E[48]<<14|E[49]>>>18,mi=E[49]<<14|E[48]>>>18,E[0]=Jn^~Ge&Ze,E[1]=at^~un&ft,E[10]=it^~_r&dt,E[11]=pt^~ut&gi,E[20]=lt^~yt&xi,E[21]=Qi^~gt&xt,E[30]=he^~de&ge,E[31]=me^~ye&pe,E[40]=ke^~Or&Ye,E[41]=tt^~Qe&Hr,E[2]=Ge^~Ze&Xn,E[3]=un^~ft&ze,E[12]=_r^~dt&mt,E[13]=ut^~gi&ht,E[22]=yt^~xi&U,E[23]=gt^~xt&G,E[32]=de^~ge&Rt,E[33]=ye^~pe&_e,E[42]=Or^~Ye&fr,E[43]=Qe^~Hr&dn,E[4]=Ze^~Xn&et,E[5]=ft^~ze&mi,E[14]=dt^~mt&In,E[15]=gi^~ht&vt,E[24]=xi^~U&Q,E[25]=xt^~G&ie,E[34]=ge^~Rt&ve,E[35]=pe^~_e&Ke,E[44]=Ye^~fr&hn,E[45]=Hr^~dn&vn,E[6]=Xn^~et&Jn,E[7]=ze^~mi&at,E[16]=mt^~In&it,E[17]=ht^~vt&pt,E[26]=U^~Q<,E[27]=G^~ie&Qi,E[36]=Rt^~ve&he,E[37]=_e^~Ke&me,E[46]=fr^~hn&ke,E[47]=dn^~vn&tt,E[8]=et^~Jn&Ge,E[9]=mi^~at&un,E[18]=In^~it&_r,E[19]=vt^~pt&ut,E[28]=Q^~lt&yt,E[29]=ie^~Qi>,E[38]=ve^~he&de,E[39]=Ke^~me&ye,E[48]=hn^~ke&Or,E[49]=vn^~tt&Qe,E[0]^=y[q],E[1]^=y[q+1]};if(a)t.exports=h;else for(k=0;k>=8;return e}function W3(t,e,r){let n=0;for(let i=0;ie+1+n&&ki.throwError("child data too short",W.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function f7(t,e){if(t.length===0&&ki.throwError("data too short",W.errors.BUFFER_OVERRUN,{}),t[e]>=248){const r=t[e]-247;e+1+r>t.length&&ki.throwError("data short segment too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);return e+1+r+n>t.length&&ki.throwError("data long segment too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1+r,r+n)}else if(t[e]>=192){const r=t[e]-192;return e+1+r>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{}),G3(t,e,e+1,r)}else if(t[e]>=184){const r=t[e]-183;e+1+r>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const n=W3(t,e+1,r);e+1+r+n>t.length&&ki.throwError("data array too short",W.errors.BUFFER_OVERRUN,{});const i=fe(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&&ki.throwError("data too short",W.errors.BUFFER_OVERRUN,{});const n=fe(t.slice(e+1,e+1+r));return{consumed:1+r,result:n}}return{consumed:1,result:fe(t[e])}}function _g(t){const e=ce(t),r=f7(e,0);return r.consumed!==e.length&&ki.throwArgumentError("invalid rlp data","data",t),r.result}const xz="address/5.7.0",Wa=new W(xz);function K3(t){He(t,20)||Wa.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=ce(Et(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 bz=9007199254740991;function wz(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}const Og={};for(let t=0;t<10;t++)Og[String(t)]=String(t);for(let t=0;t<26;t++)Og[String.fromCharCode(65+t)]=String(10+t);const Q3=Math.floor(wz(bz));function Ez(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let e=t.split("").map(n=>Og[n]).join("");for(;e.length>=Q3;){let n=e.substring(0,Q3);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 Ut(t){let e=null;if(typeof t!="string"&&Wa.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))t.substring(0,2)!=="0x"&&(t="0x"+t),e=K3(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Wa.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)!==Ez(t)&&Wa.throwArgumentError("bad icap checksum","address",t),e=iz(t.substring(4));e.length<40;)e="0"+e;e=K3("0x"+e)}else Wa.throwArgumentError("invalid address","address",t);return e}function Az(t){try{return Ut(t),!0}catch{}return!1}function u7(t){let e=null;try{e=Ut(t.from)}catch{Wa.throwArgumentError("missing from address","transaction",t)}const r=hs(ce(ae.from(t.nonce).toHexString()));return Ut(yr(Et(wl([e,r])),12))}class Sz extends Rs{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,r){try{r=Ut(r)}catch(n){this._throwError(n.message,r)}return e.writeValue(r)}decode(e){return Ut(kt(e.readValue().toHexString(),20))}}class Cz extends Rs{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 Ga=new W(tu);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||Ga.throwError("cannot encode object for signature with missing names",W.errors.INVALID_ARGUMENT,{argument:"values",coder:c,value:r}),l[f]&&Ga.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 Ga.throwArgumentError("invalid tuple value","tuple",r);e.length!==n.length&&Ga.throwArgumentError("types/value length mismatch","tuple",r);let i=new Jy(t.wordSize),s=new Jy(t.wordSize),o=[];e.forEach((l,c)=>{let f=n[c];if(l.dynamic){let u=s.length;l.encode(s,f);let d=i.writeUpdatableValue();o.push(v=>{d(v+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 kz extends Rs{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&&Ga.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===gn.OVERRUN?r.length-e-1:0}function Bz(t,e,r,n,i){return t===gn.OVERLONG?(n.push(i),0):(n.push(65533),m7(t,e,r))}const $z=Object.freeze({error:jz,ignore:m7,replace:Bz});function g7(t,e){e==null&&(e=$z.error),t=ce(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(gn.UNEXPECTED_CONTINUE,n-1,t,r):n+=e(gn.BAD_PREFIX,n-1,t,r);continue}if(n-1+s>=t.length){n+=e(gn.OVERRUN,n-1,t,r);continue}let a=i&(1<<8-s-1)-1;for(let l=0;l1114111){n+=e(gn.OUT_OF_RANGE,n-1-s,t,r,a);continue}if(a>=55296&&a<=57343){n+=e(gn.UTF16_SURROGATE,n-1-s,t,r,a);continue}if(a<=o){n+=e(gn.OVERLONG,n-1-s,t,r,a);continue}r.push(a)}}return r}function sr(t,e=vo.current){e!=vo.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 ce(r)}function Fz(t){return t.map(e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10&1023)+55296,(e&1023)+56320))).join("")}function ru(t,e){return Fz(g7(t,e))}function Uz(t,e=vo.current){return g7(sr(t,e))}class zz extends v7{constructor(e){super("string",e)}defaultValue(){return""}encode(e,r){return super.encode(e,sr(r))}decode(e){return ru(super.decode(e))}}class Bu extends Rs{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 $u=new W(tu),Vz=new RegExp(/^bytes([0-9]*)$/),qz=new RegExp(/^(u?int)([0-9]*)$/);class Hz{constructor(e){ne(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Sz(e.name);case"bool":return new Pz(e.name);case"string":return new zz(e.name);case"bytes":return new Rz(e.name);case"array":return new kz(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new Bu((e.components||[]).map(n=>this._getCoder(n)),e.name);case"":return new Mz(e.name)}let r=e.type.match(qz);if(r){let n=parseInt(r[2]||"256");return(n===0||n>256||n%8!==0)&&$u.throwArgumentError("invalid "+r[1]+" bit length","param",e),new Dz(n/8,r[1]==="int",e.name)}if(r=e.type.match(Vz),r){let n=parseInt(r[1]);return(n===0||n>32)&&$u.throwArgumentError("invalid bytes length","param",e),new Tz(n,e.name)}return $u.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,r){return new yh(e,this._getWordSize(),this.coerceFunc,r)}_getWriter(){return new Jy(this._getWordSize())}getDefaultValue(e){const r=e.map(i=>this._getCoder(br.from(i)));return new Bu(r,"_").defaultValue()}encode(e,r){e.length!==r.length&&$u.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(br.from(o))),i=new Bu(n,"_"),s=this._getWriter();return i.encode(s,r),s.data}decode(e,r,n){const i=e.map(o=>this._getCoder(br.from(o)));return new Bu(i,"_").decode(this._getReader(ce(r),n))}}const Wz=new Hz;function $o(t){return Et(sr(t))}const x7="hash/5.7.0";function b7(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 Gz(t){const e={};for(let r=0;r>--l&1}const u=31,d=Math.pow(2,u),v=d>>>1,g=v>>1,y=d-1;let w=0;for(let _=0;_1;){let H=D+M>>>1;_>>1|f(),L=L<<1^v,z=(z^v)<<1|v|1;b=L,A=1+z-L}let P=n-4;return x.map(_=>{switch(_-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 _-1}})}function Qz(t){let e=0;return()=>t[e++]}function Yz(t){return Qz(Kz(t))}function Jz(t){return t&1?~t>>1:t>>1}function Xz(t,e){let r=Array(t);for(let n=0;ne[o]):r}function eV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(rV(r,t))}for(;;){let r=t()-1;if(r<0)break;e.push(nV(r,t))}return Gz(E7(e))}function tV(t){let e=[];for(;;){let r=t();if(r==0)break;e.push(r)}return e}function A7(t,e,r){let n=Array(t).fill(void 0).map(()=>[]);for(let i=0;in[o].push(s));return n}function rV(t,e){let r=1+e(),n=e(),i=tV(e),s=A7(i.length,1+t,e);return E7(s.map((o,a)=>{const l=o[0],c=o.slice(1);return Array(i[a]).fill(void 0).map((f,u)=>{let d=u*n;return[l+u*r,c.map(v=>v+d)]})}))}function nV(t,e){let r=1+e();return A7(r,1+t,e).map(i=>[i[0],i.slice(1)])}function iV(t){let e=ph(t).sort((n,i)=>n-i);return r();function r(){let n=[];for(;;){let c=ph(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 sV(){return Yz(b7("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"))}const b0=sV(),oV=new Set(ph(b0)),aV=new Set(ph(b0)),lV=eV(b0),cV=iV(b0),J3=45,X3=95;function S7(t){return Uz(t)}function fV(t){return t.filter(e=>e!=65039)}function C7(t){for(let e of t.split(".")){let r=S7(e);try{for(let n=r.lastIndexOf(X3)-1;n>=0;n--)if(r[n]!==X3)throw new Error("underscore only allowed at start");if(r.length>=4&&r.every(n=>n<128)&&r[2]===J3&&r[3]===J3)throw new Error("invalid label extension")}catch(n){throw new Error(`Invalid label "${e}": ${n.message}`)}}return t}function uV(t){return C7(dV(t,fV))}function dV(t,e){let r=S7(t).reverse(),n=[];for(;r.length;){let i=vV(r);if(i){n.push(...e(i));continue}let s=r.pop();if(oV.has(s)){n.push(s);continue}if(aV.has(s))continue;let o=lV[s];if(o){n.push(...o);continue}throw new Error(`Disallowed codepoint: 0x${s.toString(16).toUpperCase()}`)}return C7(hV(String.fromCodePoint(...n)))}function hV(t){return t.normalize("NFC")}function vV(t,e){var r;let n=cV,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 yV=new W(x7),k7=new Uint8Array(32);k7.fill(0);function Z3(t){if(t.length===0)throw new Error("invalid ENS name; empty component");return t}function P7(t){const e=sr(uV(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(Z3(e.slice(n))),r}function md(t){typeof t!="string"&&yV.throwArgumentError("invalid ENS name; not a string","name",t);let e=k7;const r=P7(t);for(;r.length;)e=Et(ir([e,Et(r.pop())]));return fe(e)}function pV(t){return fe(ir(P7(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 mV=`Ethereum Signed Message: +`;function gV(t){return typeof t=="string"&&(t=sr(t)),Et(ir([sr(mV),sr(String(t.length)),t]))}var xV=globalThis&&globalThis.__awaiter||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 Dt=new W(x7),R7=new Uint8Array(32);R7.fill(0);const bV=ae.from(-1),T7=ae.from(0),M7=ae.from(1),wV=ae.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function EV(t){const e=ce(t),r=e.length%32;return r?rn([e,R7.slice(r)]):fe(e)}const AV=kt(M7.toHexString(),32),SV=kt(T7.toHexString(),32),eE={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},V1=["name","version","chainId","verifyingContract","salt"];function tE(t){return function(e){return typeof e!="string"&&Dt.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const CV={name:tE("name"),version:tE("version"),chainId:function(t){try{return ae.from(t).toString()}catch{}return Dt.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return Ut(t).toLowerCase()}catch{}return Dt.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=ce(t);if(e.length!==32)throw new Error("bad length");return fe(e)}catch{}return Dt.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function q1(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))&&Dt.throwArgumentError("invalid numeric width","type",t);const i=wV.mask(r?n-1:n),s=r?i.add(M7).mul(bV):T7;return function(o){const a=ae.from(o);return(a.lt(s)||a.gt(i))&&Dt.throwArgumentError(`value out-of-bounds for ${t}`,"value",o),kt(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))&&Dt.throwArgumentError("invalid bytes width","type",t),function(n){return ce(n).length!==r&&Dt.throwArgumentError(`invalid length for ${t}`,"value",n),EV(n)}}}switch(t){case"address":return function(e){return kt(Ut(e),32)};case"bool":return function(e){return e?AV:SV};case"bytes":return function(e){return Et(e)};case"string":return function(e){return $o(e)}}return null}function rE(t,e){return`${t}(${e.map(({name:r,type:n})=>n+" "+r).join(",")})`}class Kr{constructor(e){ne(this,"types",Object.freeze(ia(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]&&Dt.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&&Dt.throwArgumentError(`circular type reference to ${JSON.stringify(f)}`,"types",e),!q1(f)&&(n[f]||Dt.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?Dt.throwArgumentError("missing primary type","types",e):s.length>1&&Dt.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]&&Dt.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]=rE(a,e[a])+l.map(c=>rE(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=q1(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&&Dt.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",a);let l=a.map(s);return this._types[i]&&(l=l.map(Et)),Et(rn(l))}}const n=this.types[e];if(n){const i=$o(this._types[e]);return s=>{const o=n.map(({name:a,type:l})=>{const c=this.getEncoder(l)(s[a]);return this._types[l]?Et(c):c});return o.unshift(i),rn(o)}}return Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const r=this._types[e];return r||Dt.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),r}encodeData(e,r){return this.getEncoder(e)(r)}hashStruct(e,r){return Et(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(q1(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&&Dt.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),{}):Dt.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,r){return this._visit(this.primaryType,e,r)}static from(e){return new Kr(e)}static getPrimaryType(e){return Kr.from(e).primaryType}static hashStruct(e,r,n){return Kr.from(r).hashStruct(e,n)}static hashDomain(e){const r=[];for(const n in e){const i=eE[n];i||Dt.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),r.push({name:n,type:i})}return r.sort((n,i)=>V1.indexOf(n.name)-V1.indexOf(i.name)),Kr.hashStruct("EIP712Domain",{EIP712Domain:r},e)}static encode(e,r,n){return rn(["0x1901",Kr.hashDomain(e),Kr.from(r).hash(n)])}static hash(e,r,n){return Et(Kr.encode(e,r,n))}static resolveNames(e,r,n,i){return xV(this,void 0,void 0,function*(){e=mr(e);const s={};e.verifyingContract&&!He(e.verifyingContract,20)&&(s[e.verifyingContract]="0x");const o=Kr.from(r);o.visit(n,(a,l)=>(a==="address"&&!He(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){Kr.hashDomain(e);const i={},s=[];V1.forEach(l=>{const c=e[l];c!=null&&(i[l]=CV[l](c),s.push({name:l,type:eE[l]}))});const o=Kr.from(r),a=mr(r);return a.EIP712Domain?Dt.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 fe(ce(c));if(l.match(/^u?int/))return ae.from(c).toString();switch(l){case"address":return c.toLowerCase();case"bool":return!!c;case"string":return typeof c!="string"&&Dt.throwArgumentError("invalid string","value",c),c}return Dt.throwArgumentError("unsupported type","type",l)})}}}const Nt=new W(tu);class kV extends ya{}class PV extends ya{}class RV extends ya{}class Xy extends ya{static isIndexed(e){return!!(e&&e._isIndexed)}}const TV={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function nE(t,e){const r=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return r.error=e,r}class iE{constructor(e){let r=[];typeof e=="string"?r=JSON.parse(e):r=e,ne(this,"fragments",r.map(n=>cs.from(n)).filter(n=>n!=null)),ne(this,"_abiCoder",Ni(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){Nt.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]){Nt.warn("duplicate definition - "+s);return}i[s]=n}),this.deploy||ne(this,"deploy",Mi.from({payable:!1,type:"constructor"})),ne(this,"_isInterface",!0)}format(e){e||(e=Je.full),e===Je.sighash&&Nt.throwArgumentError("interface does not support formatting sighash","format",e);const r=this.fragments.map(n=>n.format(e));return e===Je.json?JSON.stringify(r.map(n=>JSON.parse(n))):r}static getAbiCoder(){return Wz}static getAddress(e){return Ut(e)}static getSighash(e){return yr($o(e.format()),0,4)}static getEventTopic(e){return $o(e.format())}getFunction(e){if(He(e)){for(const n in this.functions)if(e===this.getSighash(n))return this.functions[n];Nt.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?Nt.throwArgumentError("no matching function","name",n):i.length>1&&Nt.throwArgumentError("multiple matching functions","name",n),this.functions[i[0]]}const r=this.functions[Ii.fromString(e).format()];return r||Nt.throwArgumentError("no matching function","signature",e),r}getEvent(e){if(He(e)){const n=e.toLowerCase();for(const i in this.events)if(n===this.getEventTopic(i))return this.events[i];Nt.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?Nt.throwArgumentError("no matching event","name",n):i.length>1&&Nt.throwArgumentError("multiple matching events","name",n),this.events[i[0]]}const r=this.events[is.fromString(e).format()];return r||Nt.throwArgumentError("no matching event","signature",e),r}getError(e){if(He(e)){const n=Ni(this.constructor,"getSighash");for(const i in this.errors){const s=this.errors[i];if(e===n(s))return this.errors[i]}Nt.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?Nt.throwArgumentError("no matching error","name",n):i.length>1&&Nt.throwArgumentError("multiple matching errors","name",n),this.errors[i[0]]}const r=this.errors[Ii.fromString(e).format()];return r||Nt.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 Ni(this.constructor,"getSighash")(e)}getEventTopic(e){return typeof e=="string"&&(e=this.getEvent(e)),Ni(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=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match error ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeErrorResult(e,r){return typeof e=="string"&&(e=this.getError(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionData(e,r){typeof e=="string"&&(e=this.getFunction(e));const n=ce(r);return fe(n.slice(0,4))!==this.getSighash(e)&&Nt.throwArgumentError(`data signature does not match function ${e.name}.`,"data",fe(n)),this._decodeParams(e.inputs,n.slice(4))}encodeFunctionData(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(ir([this.getSighash(e),this._encodeParams(e.inputs,r||[])]))}decodeFunctionResult(e,r){typeof e=="string"&&(e=this.getFunction(e));let n=ce(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=fe(n.slice(0,4)),f=TV[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 Nt.throwError("call revert exception"+s,W.errors.CALL_EXCEPTION,{method:e.format(),data:fe(r),errorArgs:o,errorName:a,errorSignature:l,reason:i})}encodeFunctionResult(e,r){return typeof e=="string"&&(e=this.getFunction(e)),fe(this._abiCoder.encode(e.outputs,r||[]))}encodeFilterTopics(e,r){typeof e=="string"&&(e=this.getEvent(e)),r.length>e.inputs.length&&Nt.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"?$o(o):s.type==="bytes"?Et(fe(o)):(s.type==="bool"&&typeof o=="boolean"&&(o=o?"0x01":"0x00"),s.type.match(/^u?int/)&&(o=ae.from(o).toHexString()),s.type==="address"&&this._abiCoder.encode(["address"],[o]),kt(fe(o),32));for(r.forEach((s,o)=>{let a=e.inputs[o];if(!a.indexed){s!=null&&Nt.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"?Nt.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&&Nt.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($o(l));else if(o.type==="bytes")n.push(Et(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 d=this.getEventTopic(e);(!He(n[0],32)||n[0].toLowerCase()!==d)&&Nt.throwError("fragment/topic mismatch",W.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:d,value:n[0]}),n=n.slice(1)}let i=[],s=[],o=[];e.inputs.forEach((d,v)=>{d.indexed?d.type==="string"||d.type==="bytes"||d.baseType==="tuple"||d.baseType==="array"?(i.push(br.fromObject({type:"bytes32",name:d.name})),o.push(!0)):(i.push(d),o.push(!1)):(s.push(d),o.push(!1))});let a=n!=null?this._abiCoder.decode(i,ir(n)):null,l=this._abiCoder.decode(s,r,!0),c=[],f=0,u=0;e.inputs.forEach((d,v)=>{if(d.indexed)if(a==null)c[v]=new Xy({_isIndexed:!0,hash:null});else if(o[v])c[v]=new Xy({_isIndexed:!0,hash:a[u++]});else try{c[v]=a[u++]}catch(g){c[v]=g}else try{c[v]=l[f++]}catch(g){c[v]=g}if(d.name&&c[d.name]==null){const g=c[v];g instanceof Error?Object.defineProperty(c,d.name,{enumerable:!0,get:()=>{throw nE(`property ${JSON.stringify(d.name)}`,g)}}):c[d.name]=g}});for(let d=0;d{throw nE(`index ${d}`,v)}})}return Object.freeze(c)}parseTransaction(e){let r=this.getFunction(e.data.substring(0,10).toLowerCase());return r?new PV({args:this._abiCoder.decode(r.inputs,"0x"+e.data.substring(10)),functionFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r),value:ae.from(e.value||"0")}):null}parseLog(e){let r=this.getEvent(e.topics[0]);return!r||r.anonymous?null:new kV({eventFragment:r,name:r.name,signature:r.format(),topic:this.getEventTopic(r),args:this.decodeEventLog(r,e.data,e.topics)})}parseError(e){const r=fe(e);let n=this.getError(r.substring(0,10).toLowerCase());return n?new RV({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 MV="abstract-provider/5.7.0";var IV=globalThis&&globalThis.__awaiter||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 _V=new W(MV);class OV extends ya{static isForkEvent(e){return!!(e&&e._isForkEvent)}}class nu{constructor(){_V.checkAbstract(new.target,nu),ne(this,"_isProvider",!0)}getFeeData(){return IV(this,void 0,void 0,function*(){const{block:e,gasPrice:r}=yield er({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=ae.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 NV="abstract-signer/5.7.0";var ei=globalThis&&globalThis.__awaiter||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 Nn=new W(NV),DV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],LV=[W.errors.INSUFFICIENT_FUNDS,W.errors.NONCE_EXPIRED,W.errors.REPLACEMENT_UNDERPRICED];class Bl{constructor(){Nn.checkAbstract(new.target,Bl),ne(this,"_isSigner",!0)}getBalance(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)})}getTransactionCount(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)})}estimateGas(e){return ei(this,void 0,void 0,function*(){this._checkProvider("estimateGas");const r=yield er(this.checkTransaction(e));return yield this.provider.estimateGas(r)})}call(e,r){return ei(this,void 0,void 0,function*(){this._checkProvider("call");const n=yield er(this.checkTransaction(e));return yield this.provider.call(n,r)})}sendTransaction(e){return ei(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 ei(this,void 0,void 0,function*(){return this._checkProvider("getChainId"),(yield this.provider.getNetwork()).chainId})}getGasPrice(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()})}getFeeData(){return ei(this,void 0,void 0,function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()})}resolveName(e){return ei(this,void 0,void 0,function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)})}checkTransaction(e){for(const n in e)DV.indexOf(n)===-1&&Nn.throwArgumentError("invalid transaction key: "+n,"transaction",e);const r=mr(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()&&Nn.throwArgumentError("from address mismatch","transaction",e),n[0])),r}populateTransaction(e){return ei(this,void 0,void 0,function*(){const r=yield er(this.checkTransaction(e));r.to!=null&&(r.to=Promise.resolve(r.to).then(i=>ei(this,void 0,void 0,function*(){if(i==null)return null;const s=yield this.resolveName(i);return s==null&&Nn.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)?Nn.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e):(r.type===0||r.type===1)&&n&&Nn.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&&Nn.throwError("network does not support EIP-1559",W.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),r.gasPrice==null&&(r.gasPrice=i.gasPrice),r.type=0):Nn.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(LV.indexOf(i.code)>=0)throw i;return Nn.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]&&Nn.throwArgumentError("chainId address mismatch","transaction",e),i[0])),yield er(r)})}_checkProvider(e){this.provider||Nn.throwError("missing provider",W.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!!(e&&e._isSigner)}}class Dg extends Bl{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(()=>{Nn.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 Dg(this.address,e)}}var I7={},$e={},iu=_7;function _7(t,e){if(!t)throw new Error(e||"Assertion failed")}_7.equal=function(e,r,n){if(e!=r)throw new Error(n||"Assertion failed: "+e+" != "+r)};var Zy={exports:{}};typeof Object.create=="function"?Zy.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Zy.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 jV=Zy.exports,BV=iu,$V=jV;$e.inherits=$V;function FV(t,e){return(t.charCodeAt(e)&64512)!==55296||e<0||e+1>=t.length?!1:(t.charCodeAt(e+1)&64512)===56320}function UV(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):FV(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}$e.htonl=O7;function VV(t,e){for(var r="",n=0;n>>0}return s}$e.join32=qV;function HV(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}$e.split32=HV;function WV(t,e){return t>>>e|t<<32-e}$e.rotr32=WV;function GV(t,e){return t<>>32-e}$e.rotl32=GV;function KV(t,e){return t+e>>>0}$e.sum32=KV;function QV(t,e,r){return t+e+r>>>0}$e.sum32_3=QV;function YV(t,e,r,n){return t+e+r+n>>>0}$e.sum32_4=YV;function JV(t,e,r,n,i){return t+e+r+n+i>>>0}$e.sum32_5=JV;function XV(t,e,r,n){var i=t[e],s=t[e+1],o=n+s>>>0,a=(o>>0,t[e+1]=o}$e.sum64=XV;function ZV(t,e,r,n){var i=e+n>>>0,s=(i>>0}$e.sum64_hi=ZV;function eq(t,e,r,n){var i=e+n;return i>>>0}$e.sum64_lo=eq;function tq(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}$e.sum64_4_hi=tq;function rq(t,e,r,n,i,s,o,a){var l=e+n+s+a;return l>>>0}$e.sum64_4_lo=rq;function nq(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}$e.sum64_5_hi=nq;function iq(t,e,r,n,i,s,o,a,l,c){var f=e+n+s+a+c;return f>>>0}$e.sum64_5_lo=iq;function sq(t,e,r){var n=e<<32-r|t>>>r;return n>>>0}$e.rotr64_hi=sq;function oq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.rotr64_lo=oq;function aq(t,e,r){return t>>>r}$e.shr64_hi=aq;function lq(t,e,r){var n=t<<32-r|e>>>r;return n>>>0}$e.shr64_lo=lq;var $l={},sE=$e,cq=iu;function w0(){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}$l.BlockHash=w0;w0.prototype.update=function(e,r){if(e=sE.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=sE.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}Gi.g0_256=vq;function yq(t){return $i(t,17)^$i(t,19)^t>>>10}Gi.g1_256=yq;var El=$e,pq=$l,mq=Gi,H1=El.rotl32,lc=El.sum32,gq=El.sum32_5,xq=mq.ft_1,$7=pq.BlockHash,bq=[1518500249,1859775393,2400959708,3395469782];function Vi(){if(!(this instanceof Vi))return new Vi;$7.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}El.inherits(Vi,$7);var wq=Vi;Vi.blockSize=512;Vi.outSize=160;Vi.hmacStrength=80;Vi.padLength=64;Vi.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()),lH(e.length<=this.blockSize);for(var r=e.length;r>8,d=f&255;u?l.push(u,d):l.push(d)}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(d>>1)-1?y=(d>>1)-w:y=w,v.isubn(y)):y=0,u[g]=y,v.iushrn(1)}return u}r.getNAF=n;function i(l,c){var f=[[],[]];l=l.clone(),c=c.clone();for(var u=0,d=0,v;l.cmpn(-u)>0||c.cmpn(-d)>0;){var g=l.andln(3)+u&3,y=c.andln(3)+d&3;g===3&&(g=-1),y===3&&(y=-1);var w;g&1?(v=l.andln(7)+u&7,(v===3||v===5)&&y===2?w=-g:w=g):w=0,f[0].push(w);var x;y&1?(v=c.andln(7)+d&7,(v===3||v===5)&&g===2?x=-y:x=y):x=0,f[1].push(x),2*u===w+1&&(u=1-u),2*d===x+1&&(d=1-d),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 Oe(l,"hex","le")}r.intFromLE=a}),mh=Mn.getNAF,uH=Mn.getJSF,gh=Mn.assert;function So(t,e){this.type=t,this.p=new Oe(e.p,16),this.red=e.prime?Oe.red(e.prime):Oe.mont(this.p),this.zero=new Oe(0).toRed(this.red),this.one=new Oe(1).toRed(this.red),this.two=new Oe(2).toRed(this.red),this.n=e.n&&new Oe(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 pa=So;So.prototype.point=function(){throw new Error("Not implemented")};So.prototype.validate=function(){throw new Error("Not implemented")};So.prototype._fixedNafMul=function(e,r){gh(e.precomputed);var n=e._getDoubles(),i=mh(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),d=s;d>0;d--){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];gh(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};So.prototype._wnafMulAdd=function(e,r,n,i,s){var o=this._wnafT1,a=this._wnafT2,l=this._wnafT3,c=0,f,u,d;for(f=0;f=1;f-=2){var g=f-1,y=f;if(o[g]!==1||o[y]!==1){l[g]=mh(n[g],o[g],this._bitLength),l[y]=mh(n[y],o[y],this._bitLength),c=Math.max(l[g].length,c),c=Math.max(l[y].length,c);continue}var w=[r[g],null,null,r[y]];r[g].y.cmp(r[y].y)===0?(w[1]=r[g].add(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg())):r[g].y.cmp(r[y].y.redNeg())===0?(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].add(r[y].neg())):(w[1]=r[g].toJ().mixedAdd(r[y]),w[2]=r[g].toJ().mixedAdd(r[y].neg()));var x=[-3,-1,-5,-7,0,7,5,1,3],b=uH(n[g],n[y]);for(c=Math.max(b[0].length,c),l[g]=new Array(c),l[y]=new Array(c),u=0;u=0;f--){for(var M=0;f>=0;){var L=!0;for(u=0;u=0&&M++,_=_.dblp(M),f<0)break;for(u=0;u0?d=a[u][z-1>>1]:z<0&&(d=a[u][-z-1>>1].neg()),d.type==="affine"?_=_.mixedAdd(d):_=_.add(d))}}for(f=0;f=Math.ceil((e.bitLength()+1)/r.step):!1};Kn.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&&(v=c,g=f),u.negative&&(u=u.neg(),d=d.neg()),v.negative&&(v=v.neg(),g=g.neg()),[{a:u,b:d},{a:v,b:g}]};Qn.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),d=c.add(f).neg();return{k1:u,k2:d}};Qn.prototype.pointFromX=function(e,r){e=new Oe(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)};Qn.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};Qn.prototype._endoWnafMulAdd=function(e,r,n){for(var i=this._endoWnafT1,s=this._endoWnafT2,o=0;o":""};Ar.prototype.isInfinity=function(){return this.inf};Ar.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)};Ar.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)};Ar.prototype.getX=function(){return this.x.fromRed()};Ar.prototype.getY=function(){return this.y.fromRed()};Ar.prototype.mul=function(e){return e=new Oe(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)};Ar.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)};Ar.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)};Ar.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)};Ar.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};Ar.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 Mr(t,e,r,n){pa.BasePoint.call(this,t,"jacobian"),e===null&&r===null&&n===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Oe(0)):(this.x=new Oe(e,16),this.y=new Oe(r,16),this.z=new Oe(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}jg(Mr,pa.BasePoint);Qn.prototype.jpoint=function(e,r,n){return new Mr(this,e,r,n)};Mr.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)};Mr.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};Mr.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),d=i.redMul(f),v=c.redSqr().redIAdd(u).redISub(d).redISub(d),g=c.redMul(d.redISub(v)).redISub(o.redMul(u)),y=this.z.redMul(e.z).redMul(l);return this.curve.jpoint(v,g,y)};Mr.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),d=l.redSqr().redIAdd(f).redISub(u).redISub(u),v=l.redMul(u.redISub(d)).redISub(s.redMul(f)),g=this.z.redMul(a);return this.curve.jpoint(d,v,g)};Mr.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}};Mr.prototype.inspect=function(){return this.isInfinity()?"":""};Mr.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var gd=zl(function(t,e){var r=e;r.base=pa,r.short=hH,r.mont=null,r.edwards=null}),xd=zl(function(t,e){var r=e,n=Mn.assert;function i(a){a.type==="short"?this.curve=new gd.short(a):a.type==="edwards"?this.curve=new gd.edwards(a):this.curve=new gd.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.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:mn.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=fi.toArray(t.entropy,t.entropyEnc||"hex"),r=fi.toArray(t.nonce,t.nonceEnc||"hex"),n=fi.toArray(t.pers,t.persEnc||"hex");Lg(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}var J7=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=fi.toArray(n,i||"hex"),this._update(n));for(var s=[];s.length"};var vH=Mn.assert;function E0(t,e){if(t instanceof E0)return t;this._importDER(t,e)||(vH(t.r&&t.s,"Signature without r or s"),this.r=new Oe(t.r,16),this.s=new Oe(t.s,16),t.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var A0=E0;function yH(){this.place=0}function K1(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 cE(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)}E0.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=cE(r),n=cE(n);!n[0]&&!(n[1]&128);)n=n.slice(1);var i=[2];Q1(i,r.length),i=i.concat(r),i.push(2),Q1(i,n.length);var s=i.concat(n),o=[48];return Q1(o,s.length),o=o.concat(s),Mn.encode(o,e)};var pH=function(){throw new Error("unsupported")},X7=Mn.assert;function Gn(t){if(!(this instanceof Gn))return new Gn(t);typeof t=="string"&&(X7(Object.prototype.hasOwnProperty.call(xd,t),"Unknown curve "+t),t=xd[t]),t instanceof xd.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 mH=Gn;Gn.prototype.keyPair=function(e){return new Bg(this,e)};Gn.prototype.keyFromPrivate=function(e,r){return Bg.fromPrivate(this,e,r)};Gn.prototype.keyFromPublic=function(e,r){return Bg.fromPublic(this,e,r)};Gn.prototype.genKeyPair=function(e){e||(e={});for(var r=new J7({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||pH(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),i=this.n.sub(new Oe(2));;){var s=new Oe(r.generate(n));if(!(s.cmp(i)>0))return s.iaddn(1),this.keyFromPrivate(s)}};Gn.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};Gn.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 Oe(e,16));for(var s=this.n.byteLength(),o=r.getPrivate().toArray("be",s),a=e.toArray("be",s),l=new J7({hash:this.hash,entropy:o,nonce:a,pers:i.pers,persEnc:i.persEnc||"utf8"}),c=this.n.sub(new Oe(1)),f=0;;f++){var u=i.k?i.k(f):new Oe(l.generate(this.n.byteLength()));if(u=this._truncateToN(u,!0),!(u.cmpn(1)<=0||u.cmp(c)>=0)){var d=this.g.mul(u);if(!d.isInfinity()){var v=d.getX(),g=v.umod(this.n);if(g.cmpn(0)!==0){var y=u.invm(this.n).mul(g.mul(r.getPrivate()).iadd(e));if(y=y.umod(this.n),y.cmpn(0)!==0){var w=(d.getY().isOdd()?1:0)|(v.cmp(g)!==0?2:0);return i.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),w^=1),new A0({r:g,s:y,recoveryParam:w})}}}}}};Gn.prototype.verify=function(e,r,n,i){e=this._truncateToN(new Oe(e,16)),n=this.keyFromPublic(n,i),r=new A0(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)};Gn.prototype.recoverPubKey=function(t,e,r,n){X7((3&r)===r,"The recovery param is more than two bits"),e=new A0(e,n);var i=this.n,s=new Oe(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),d=a.mul(f).umod(i);return this.g.mulAdd(u,o,d)};Gn.prototype.getKeyRecoveryParam=function(t,e,r,n){if(e=new A0(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 gH=zl(function(t,e){var r=e;r.version="6.5.4",r.utils=Mn,r.rand=function(){throw new Error("unsupported")},r.curve=gd,r.curves=xd,r.ec=mH,r.eddsa=null}),xH=gH.ec;const bH="signing-key/5.7.0",np=new W(bH);let Y1=null;function Pi(){return Y1||(Y1=new xH("secp256k1")),Y1}class sl{constructor(e){ne(this,"curve","secp256k1"),ne(this,"privateKey",fe(e)),na(this.privateKey)!==32&&np.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const r=Pi().keyFromPrivate(ce(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=Pi().keyFromPublic(ce(this.publicKey)),n=Pi().keyFromPublic(ce(e));return"0x"+r.pub.add(n.pub).encodeCompressed("hex")}signDigest(e){const r=Pi().keyFromPrivate(ce(this.privateKey)),n=ce(e);n.length!==32&&np.throwArgumentError("bad digest length","digest",e);const i=r.sign(n,{canonical:!0});return jl({recoveryParam:i.recoveryParam,r:kt("0x"+i.r.toString(16),32),s:kt("0x"+i.s.toString(16),32)})}computeSharedSecret(e){const r=Pi().keyFromPrivate(ce(this.privateKey)),n=Pi().keyFromPublic(ce(Z7(e)));return kt("0x"+r.derive(n.getPublic()).toString(16),32)}static isSigningKey(e){return!!(e&&e._isSigningKey)}}function wH(t,e){const r=jl(e),n={r:ce(r.r),s:ce(r.s)};return"0x"+Pi().recoverPubKey(ce(t),n,r.recoveryParam).encode("hex",!1)}function Z7(t,e){const r=ce(t);if(r.length===32){const n=new sl(r);return e?"0x"+Pi().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}else{if(r.length===33)return e?fe(r):"0x"+Pi().keyFromPublic(r).getPublic(!1,"hex");if(r.length===65)return e?"0x"+Pi().keyFromPublic(r).getPublic(!0,"hex"):fe(r)}return np.throwArgumentError("invalid public or private key","key","[REDACTED]")}const EH="transactions/5.7.0",Fr=new W(EH);var fE;(function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"})(fE||(fE={}));function $g(t){return t==="0x"?null:Ut(t)}function $r(t){return t==="0x"?y7:ae.from(t)}const AH=[{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"}],SH={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Wo(t){const e=Z7(t);return Ut(yr(Et(yr(e,1)),12))}function e9(t,e){return Wo(wH(ce(t),e))}function xn(t,e){const r=hs(ae.from(t).toHexString());return r.length>32&&Fr.throwArgumentError("invalid length for "+e,"transaction:"+e,t),r}function J1(t,e){return{address:Ut(t),storageKeys:(e||[]).map((r,n)=>(na(r)!==32&&Fr.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,r),r.toLowerCase()))}}function Vl(t){if(Array.isArray(t))return t.map((r,n)=>Array.isArray(r)?(r.length>2&&Fr.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${n}]`,r),J1(r[0],r[1])):J1(r.address,r.storageKeys));const e=Object.keys(t).map(r=>{const n=t[r].reduce((i,s)=>(i[s]=!0,i),{});return J1(r,Object.keys(n).sort())});return e.sort((r,n)=>r.address.localeCompare(n.address)),e}function t9(t){return Vl(t).map(e=>[e.address,e.storageKeys])}function r9(t,e){if(t.gasPrice!=null){const n=ae.from(t.gasPrice),i=ae.from(t.maxFeePerGas||0);n.eq(i)||Fr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:i})}const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),xn(t.maxFeePerGas||0,"maxFeePerGas"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=jl(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x02",wl(r)])}function n9(t,e){const r=[xn(t.chainId||0,"chainId"),xn(t.nonce||0,"nonce"),xn(t.gasPrice||0,"gasPrice"),xn(t.gasLimit||0,"gasLimit"),t.to!=null?Ut(t.to):"0x",xn(t.value||0,"value"),t.data||"0x",t9(t.accessList||[])];if(e){const n=jl(e);r.push(xn(n.recoveryParam,"recoveryParam")),r.push(hs(n.r)),r.push(hs(n.s))}return rn(["0x01",wl(r)])}function CH(t,e){n7(t,SH);const r=[];AH.forEach(function(o){let a=t[o.name]||[];const l={};o.numeric&&(l.hexPad="left"),a=ce(fe(a,l)),o.length&&a.length!==o.length&&a.length>0&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a),o.maxLength&&(a=hs(a),a.length>o.maxLength&&Fr.throwArgumentError("invalid length for "+o.name,"transaction:"+o.name,a)),r.push(fe(a))});let n=0;if(t.chainId!=null?(n=t.chainId,typeof n!="number"&&Fr.throwArgumentError("invalid transaction.chainId","transaction",t)):e&&!x0(e)&&e.v>28&&(n=Math.floor((e.v-35)/2)),n!==0&&(r.push(fe(n)),r.push("0x"),r.push("0x")),!e)return wl(r);const i=jl(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&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e)):i.v!==s&&Fr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",e),r.push(fe(s)),r.push(hs(ce(i.r))),r.push(hs(ce(i.s))),wl(r)}function uE(t,e){if(t.type==null||t.type===0)return t.accessList!=null&&Fr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),CH(t,e);switch(t.type){case 1:return n9(t,e);case 2:return r9(t,e)}return Fr.throwError(`unsupported transaction type: ${t.type}`,W.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})}function i9(t,e,r){try{const n=$r(e[0]).toNumber();if(n!==0&&n!==1)throw new Error("bad recid");t.v=n}catch{Fr.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=kt(e[1],32),t.s=kt(e[2],32);try{const n=Et(r(t));t.from=e9(n,{r:t.r,s:t.s,recoveryParam:t.v})}catch{}}function kH(t){const e=_g(t.slice(1));e.length!==9&&e.length!==12&&Fr.throwArgumentError("invalid component count for transaction type: 2","payload",fe(t));const r=$r(e[2]),n=$r(e[3]),i={type:2,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:$r(e[4]),to:$g(e[5]),value:$r(e[6]),data:e[7],accessList:Vl(e[8])};return e.length===9||(i.hash=Et(t),i9(i,e.slice(9),r9)),i}function PH(t){const e=_g(t.slice(1));e.length!==8&&e.length!==11&&Fr.throwArgumentError("invalid component count for transaction type: 1","payload",fe(t));const r={type:1,chainId:$r(e[0]).toNumber(),nonce:$r(e[1]).toNumber(),gasPrice:$r(e[2]),gasLimit:$r(e[3]),to:$g(e[4]),value:$r(e[5]),data:e[6],accessList:Vl(e[7])};return e.length===8||(r.hash=Et(t),i9(r,e.slice(8),n9)),r}function RH(t){const e=_g(t);e.length!==9&&e.length!==6&&Fr.throwArgumentError("invalid raw transaction","rawTransaction",t);const r={nonce:$r(e[0]).toNumber(),gasPrice:$r(e[1]),gasLimit:$r(e[2]),to:$g(e[3]),value:$r(e[4]),data:e[5],chainId:0};if(e.length===6)return r;try{r.v=ae.from(e[6]).toNumber()}catch{return r}if(r.r=kt(e[7],32),r.s=kt(e[8],32),ae.from(r.r).isZero()&&ae.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(fe(r.chainId)),i.push("0x"),i.push("0x"),n-=r.chainId*2+8);const s=Et(wl(i));try{r.from=e9(s,{r:fe(r.r),s:fe(r.s),recoveryParam:n})}catch{}r.hash=Et(t)}return r.type=null,r}function TH(t){const e=ce(t);if(e[0]>127)return RH(e);switch(e[0]){case 1:return PH(e);case 2:return kH(e)}return Fr.throwError(`unsupported transaction type: ${e[0]}`,W.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}const MH="contracts/5.7.0";var aa=globalThis&&globalThis.__awaiter||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 tr=new W(MH);function xh(t,e){return aa(this,void 0,void 0,function*(){const r=yield e;typeof r!="string"&&tr.throwArgumentError("invalid address or ENS name","name",r);try{return Ut(r)}catch{}t||tr.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&&tr.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n})}function bd(t,e,r){return aa(this,void 0,void 0,function*(){return Array.isArray(r)?yield Promise.all(r.map((n,i)=>bd(t,Array.isArray(e)?e[i]:e[n.name],n))):r.type==="address"?yield xh(t,e):r.type==="tuple"?yield bd(t,e,r.components):r.baseType==="array"?Array.isArray(e)?yield Promise.all(e.map(n=>bd(t,n,r.arrayChildren))):Promise.reject(tr.makeError("invalid value for array",W.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e})}function S0(t,e,r){return aa(this,void 0,void 0,function*(){let n={};r.length===e.inputs.length+1&&typeof r[r.length-1]=="object"&&(n=mr(r.pop())),tr.checkArgumentCount(r.length,e.inputs.length,"passed to contract"),t.signer?n.from?n.from=er({override:xh(t.signer,n.from),signer:t.signer.getAddress()}).then(c=>aa(this,void 0,void 0,function*(){return Ut(c.signer)!==c.override&&tr.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=xh(t.provider,n.from));const i=yield er({args:bd(t.signer||t.provider,r,e.inputs),address:t.resolvedAddress,overrides:er(n)||{}}),s=t.interface.encodeFunctionData(e,i.args),o={data:s,to:i.address},a=i.overrides;if(a.nonce!=null&&(o.nonce=ae.from(a.nonce).toNumber()),a.gasLimit!=null&&(o.gasLimit=ae.from(a.gasLimit)),a.gasPrice!=null&&(o.gasPrice=ae.from(a.gasPrice)),a.maxFeePerGas!=null&&(o.maxFeePerGas=ae.from(a.maxFeePerGas)),a.maxPriorityFeePerGas!=null&&(o.maxPriorityFeePerGas=ae.from(a.maxPriorityFeePerGas)),a.from!=null&&(o.from=a.from),a.type!=null&&(o.type=a.type),a.accessList!=null&&(o.accessList=Vl(a.accessList)),o.gasLimit==null&&e.gas!=null){let c=21e3;const f=ce(s);for(let u=0;un[c]!=null);return l.length&&tr.throwError(`cannot override ${l.map(c=>JSON.stringify(c)).join(",")}`,W.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:l}),o})}function IH(t,e){return function(...r){return S0(t,e,r)}}function _H(t,e){const r=t.signer||t.provider;return function(...n){return aa(this,void 0,void 0,function*(){r||tr.throwError("estimate require a provider or signer",W.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield S0(t,e,n);return yield r.estimateGas(i)})}}function OH(t,e){const r=e.wait.bind(e);e.wait=n=>r(n).then(i=>(i.events=i.logs.map(s=>{let o=ia(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 s9(t,e,r){const n=t.signer||t.provider;return function(...i){return aa(this,void 0,void 0,function*(){let s;if(i.length===e.inputs.length+1&&typeof i[i.length-1]=="object"){const l=mr(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 S0(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 NH(t,e){return function(...r){return aa(this,void 0,void 0,function*(){t.signer||tr.throwError("sending a transaction requires a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),t.deployTransaction!=null&&(yield t._deployed());const n=yield S0(t,e,r),i=yield t.signer.sendTransaction(n);return OH(t,i),i})}}function dE(t,e,r){return e.constant?s9(t,e,r):NH(t,e)}function o9(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 If{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 DH extends If{constructor(){super("error",null)}}class hE extends If{constructor(e,r,n,i){const s={address:e};let o=r.getEventTopic(n);i?(o!==i[0]&&tr.throwArgumentError("topic mismatch","topics",i),s.topics=i.slice()):s.topics=[o],super(o9(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=yz(e.args);if(r.length)throw r[0].error;const n=(e.args||[]).slice();return n.push(e),n}}class vE extends If{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 LH{constructor(e,r,n){ne(this,"interface",Ni(new.target,"getInterface")(r)),n==null?(ne(this,"provider",null),ne(this,"signer",null)):Bl.isSigner(n)?(ne(this,"provider",n.provider||null),ne(this,"signer",n)):nu.isProvider(n)?(ne(this,"provider",n),ne(this,"signer",null)):tr.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]]):tr.warn(`Duplicate definition of ${a} (${l.join(", ")})`)})}if(ne(this,"_runningEvents",{}),ne(this,"_wrappedEmits",{}),e==null&&tr.throwArgumentError("invalid contract address or ENS name","addressOrName",e),ne(this,"address",e),this.provider)ne(this,"resolvedAddress",xh(this.provider,e));else try{ne(this,"resolvedAddress",Promise.resolve(Ut(e)))}catch{tr.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]){tr.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,dE(this,a,!0)),this.functions[o]==null&&ne(this.functions,o,dE(this,a,!1)),this.callStatic[o]==null&&ne(this.callStatic,o,s9(this,a,!0)),this.populateTransaction[o]==null&&ne(this.populateTransaction,o,IH(this,a)),this.estimateGas[o]==null&&ne(this.estimateGas,o,_H(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 u7(e)}static getInterface(e){return iE.isInterface(e)?e:new iE(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"&&tr.throwError("contract not deployed",W.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this))),this._deployedPromise}fallback(e){this.signer||tr.throwError("sending a transactions require a signer",W.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const r=mr(e||{});return["from","to"].forEach(function(n){r[n]!=null&&tr.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 Dg(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 Xy.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 DH);if(e==="event")return this._normalizeRunningEvent(new If("event",null));if(e==="*")return this._normalizeRunningEvent(new vE(this.address,this.interface));const r=this.interface.getEvent(e);return this._normalizeRunningEvent(new hE(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 hE(this.address,this.interface,i,e.topics))}catch{}const r={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new If(o9(r),r))}return this._normalizeRunningEvent(new vE(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=ia(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||tr.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=mr(i.filter);return typeof r=="string"&&He(r,32)?(n!=null&&tr.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 jH extends LH{}class a9{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 d=ce(bh(i,t,l));s||(s=d.length,f=new Uint8Array(s),o=Math.ceil(n/s),c=n-(o-1)*s),f.set(d);for(let y=1;y=256)throw new Error("Depth too large!");return pE(ir([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",fe(this.depth),this.parentFingerprint,kt(fe(this.index),4),this.chainCode,this.privateKey!=null?ir(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new jn(Aa,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&~fc));const n=new Uint8Array(37);if(e&fc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ce(this.privateKey),1),r&&(r+="'")}else n.set(ce(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ce(bh(Of.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=Uu(ae.from(s).add(this.privateKey).mod(WH)):l=new il(fe(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 jn(Aa,a,l,this.fingerprint,Uu(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=fc)throw new Error("invalid path index - "+s);n=n._derive(fc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=fc)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=ce(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ce(bh(Of.sha512,GH,n));return new jn(Aa,Uu(i.slice(0,32)),null,"0x00000000",Uu(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Ug(n),e=zg(f9(e,n),n),jn._fromSeed(QH(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return jn._fromSeed(e,null)}static fromExtendedKey(e){const r=_f.decode(e);(r.length!==82||pE(r.slice(0,78))!==e)&&wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=fe(r.slice(5,9)),s=parseInt(fe(r.slice(9,13)).substring(2),16),o=fe(r.slice(13,45)),a=r.slice(45,78);switch(fe(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new jn(Aa,null,fe(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new jn(Aa,fe(a.slice(1)),null,i,o,s,n,null)}return wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function QH(t,e){e||(e="");const r=sr("mnemonic"+e,ho.NFKD);return Fg(sr(t,ho.NFKD),r,2048,64,"sha512")}function f9(t,e){e=Ug(e),wh.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ce(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=c9(o);if((ce(la(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return fe(n.slice(0,s/8))}function zg(t,e){if(e=Ug(e),t=ce(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]&KH(8-n)),n+=3);const i=t.length/4,s=ce(la(t))[0]&c9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const YH="random/5.7.0",sp=new W(YH);function JH(){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 mE=JH();let wd=mE.crypto||mE.msCrypto;(!wd||!wd.getRandomValues)&&(sp.warn("WARNING: Missing strong random number source"),wd={getRandomValues:function(t){return sp.throwError("no secure random source avaialble",W.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function _c(t){(t<=0||t>1024||t%1||t!=t)&&sp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return wd.getRandomValues(e),ce(e)}var u9={exports:{}};(function(t,e){(function(r){function n(C){return parseInt(C)===C}function i(C){if(!n(C.length))return!1;for(var m=0;m255)return!1;return!0}function s(C,m){if(C.buffer&&ArrayBuffer.isView(C)&&C.name==="Uint8Array")return m&&(C.slice?C=C.slice():C=Array.prototype.slice.call(C)),C;if(Array.isArray(C)){if(!i(C))throw new Error("Array contains invalid value: "+C);return new Uint8Array(C)}if(n(C.length)&&i(C))return new Uint8Array(C);throw new Error("unsupported array-like object")}function o(C){return new Uint8Array(C)}function a(C,m,T,F,E){(F!=null||E!=null)&&(C.slice?C=C.slice(F,E):C=Array.prototype.slice.call(C,F,E)),m.set(C,T)}var l=function(){function C(T){var F=[],E=0;for(T=encodeURI(T);E191&&B<224?(F.push(String.fromCharCode((B&31)<<6|T[E+1]&63)),E+=2):(F.push(String.fromCharCode((B&15)<<12|(T[E+1]&63)<<6|T[E+2]&63)),E+=3)}return F.join("")}return{toBytes:C,fromBytes:m}}(),c=function(){function C(F){for(var E=[],B=0;B>4]+m[V&15])}return E.join("")}return{toBytes:C,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],d=[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],v=[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],y=[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],w=[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],x=[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],b=[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],S=[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],_=[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],D=[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],M=[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],L=[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],z=[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 H(C){for(var m=[],T=0;T>2,this._Ke[B][m%4]=E[m],this._Kd[C-B][m%4]=E[m];for(var V=0,q=F,K;q>16&255]<<24^d[K>>8&255]<<16^d[K&255]<<8^d[K>>24&255]^u[V]<<24,V+=1,F!=8)for(var m=1;m>8&255]<<8^d[K>>16&255]<<16^d[K>>24&255]<<24;for(var m=F/2+1;m>2,ee=q%4,this._Ke[oe][ee]=E[m],this._Kd[C-oe][ee]=E[m++],q++}for(var oe=1;oe>24&255]^M[K>>16&255]^L[K>>8&255]^z[K&255]},Y.prototype.encrypt=function(C){if(C.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var m=this._Ke.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Ke[0][E];for(var B=1;B>24&255]^y[F[(E+1)%4]>>16&255]^w[F[(E+2)%4]>>8&255]^x[F[(E+3)%4]&255]^this._Ke[B][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Ke[m][E],V[4*E]=(d[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(d[F[(E+1)%4]>>16&255]^q>>16)&255,V[4*E+2]=(d[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(d[F[(E+3)%4]&255]^q)&255;return V},Y.prototype.decrypt=function(C){if(C.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var m=this._Kd.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Kd[0][E];for(var B=1;B>24&255]^S[F[(E+3)%4]>>16&255]^P[F[(E+2)%4]>>8&255]^_[F[(E+1)%4]&255]^this._Kd[B][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Kd[m][E],V[4*E]=(v[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(v[F[(E+3)%4]>>16&255]^q>>16)&255,V[4*E+2]=(v[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(v[F[(E+1)%4]&255]^q)&255;return V};var Z=function(C){if(!(this instanceof Z))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(C)};Z.prototype.encrypt=function(C){if(C=s(C),C.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var m=o(C.length),T=o(16),F=0;F=0;--m)this._counter[m]=C%256,C=C>>8},k.prototype.setBytes=function(C){if(C=s(C,!0),C.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=C},k.prototype.increment=function(){for(var C=15;C>=0;C--)if(this._counter[C]===255)this._counter[C]=0;else{this._counter[C]++;break}};var I=function(C,m){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",m instanceof k||(m=new k(m)),this._counter=m,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(C)};I.prototype.encrypt=function(C){for(var m=s(C,!0),T=0;T16)throw new Error("PKCS#7 padding byte out of range");for(var T=C.length-m,F=0;F=64;){let j=x,C=b,m=S,T=P,F=_,E=D,B=M,V=L,q,K,oe,ee,te;for(K=0;K<16;K++)oe=R+K*4,z[K]=(I[oe]&255)<<24|(I[oe+1]&255)<<16|(I[oe+2]&255)<<8|I[oe+3]&255;for(K=16;K<64;K++)q=z[K-2],ee=(q>>>17|q<<32-17)^(q>>>19|q<<32-19)^q>>>10,q=z[K-15],te=(q>>>7|q<<32-7)^(q>>>18|q<<32-18)^q>>>3,z[K]=(ee+z[K-7]|0)+(te+z[K-16]|0)|0;for(K=0;K<64;K++)ee=(((F>>>6|F<<32-6)^(F>>>11|F<<32-11)^(F>>>25|F<<32-25))+(F&E^~F&B)|0)+(V+(w[K]+z[K]|0)|0)|0,te=((j>>>2|j<<32-2)^(j>>>13|j<<32-13)^(j>>>22|j<<32-22))+(j&C^j&m^C&m)|0,V=B,B=E,E=F,F=T+ee|0,T=m,m=C,C=j,j=ee+te|0;x=x+j|0,b=b+C|0,S=S+m|0,P=P+T|0,_=_+F|0,D=D+E|0,M=M+B|0,L=L+V|0,R+=64,N-=64}}H(y);let Y,Z=y.length%64,O=y.length/536870912|0,h=y.length<<3,A=Z<56?56:120,k=y.slice(y.length-Z,y.length);for(k.push(128),Y=Z+1;Y>>24&255),k.push(O>>>16&255),k.push(O>>>8&255),k.push(O>>>0&255),k.push(h>>>24&255),k.push(h>>>16&255),k.push(h>>>8&255),k.push(h>>>0&255),H(k),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>0&255,S>>>24&255,S>>>16&255,S>>>8&255,S>>>0&255,P>>>24&255,P>>>16&255,P>>>8&255,P>>>0&255,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,M>>>24&255,M>>>16&255,M>>>8&255,M>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,S=new Array(b),P=new Array(64);let _,D=[];for(_=0;_<64;_++)S[_]=54;for(_=0;_=b-4;L--){if(S[L]++,S[L]<=255)return;S[L]=0}}for(;x>=32;)M(),D=D.concat(i(P.concat(i(S)))),x-=32;return x>0&&(M(),D=D.concat(i(P.concat(i(S))).slice(0,x))),D}function o(y,w,x,b,S){let P;for(f(y,(2*x-1)*16,S,0,16),P=0;P<2*x;P++)c(y,P*16,S,16),l(S,b),f(S,0,y,w+P*16,16);for(P=0;P>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let S=0;S=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,S,P,_){if(x=d(x,"N"),b=d(b,"r"),S=d(S,"p"),P=d(P,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/S)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let D=s(y,w,S*128*b);const M=new Uint32Array(S*32*b);for(let F=0;FC&&(F=C);for(let B=0;BC&&(F=C);for(let B=0;B>0&255),D.push(M[B]>>8&255),D.push(M[B]>>16&255),D.push(M[B]>>24&255);const E=s(y,D,P);return _&&_(null,1,E),E}_&&m(T)};if(!_)for(;;){const F=T();if(F!=null)return F}T()}const g={scrypt:function(y,w,x,b,S,P,_){return new Promise(function(D,M){let L=0;_&&_(0),v(y,w,x,b,S,P,function(z,H,Y){if(z)M(z);else if(Y)_&&L!==1&&_(1),D(new Uint8Array(Y));else if(_&&H!==L)return L=H,_(H)})})},syncScrypt:function(y,w,x,b,S,P){return new Uint8Array(v(y,w,x,b,S,P))}};t.exports=g})()})(p9);var rW=p9.exports;const qg=Ss(rW);var nW=globalThis&&globalThis.__awaiter||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 op=new W(d9);function gE(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class iW extends ya{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function sW(t,e,r){if(rr(t,"crypto/cipher")==="aes-128-ctr"){const i=Go(rr(t,"crypto/cipherparams/iv")),s=new Ni.Counter(i),o=new Ni.ModeOfOperation.ctr(e,s);return ce(o.decrypt(r))}return null}function m9(t,e){const r=Go(rr(t,"crypto/ciphertext"));if(fe(Et(ir([e.slice(16,32),r]))).substring(2)!==rr(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=sW(t,e.slice(0,16),r);i||op.throwError("unsupported cipher",W.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=Wo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ut(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:fe(i)};if(rr(t,"x-ethers/version")==="0.1"){const l=Go(rr(t,"x-ethers/mnemonicCiphertext")),c=Go(rr(t,"x-ethers/mnemonicCounter")),f=new Ni.Counter(c),u=new Ni.ModeOfOperation.ctr(s,f),d=rr(t,"x-ethers/path")||Nf,v=rr(t,"x-ethers/locale")||"en",g=ce(u.decrypt(l));try{const y=zg(g,v),w=jn.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==W.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new iW(a)}function g9(t,e,r,n,i){return ce(Fg(t,e,r,n,i))}function oW(t,e,r,n,i){return Promise.resolve(g9(t,e,r,n,i))}function x9(t,e,r,n,i){const s=Vg(e),o=rr(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return op.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Go(rr(t,"crypto/kdfparams/salt")),c=parseInt(rr(t,"crypto/kdfparams/n")),f=parseInt(rr(t,"crypto/kdfparams/r")),u=parseInt(rr(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=Go(rr(t,"crypto/kdfparams/salt"));let c=null;const f=rr(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(rr(t,"crypto/kdfparams/c")),d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return op.throwArgumentError("unsupported key-derivation function","kdf",o)}function aW(t,e){const r=JSON.parse(t),n=x9(r,e,g9,qg.syncScrypt);return m9(r,n)}function lW(t,e,r){return nW(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield x9(n,e,oW,qg.scrypt,r);return m9(n,i)})}function cW(t,e,r,n){try{if(Ut(t.address)!==Wo(t.privateKey))throw new Error("address/privateKey mismatch");if(gE(t)){const w=t.mnemonic;if(jn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Nf).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=ce(t.privateKey),s=Vg(e);let o=null,a=null,l=null;if(gE(t)){const w=t.mnemonic;o=ce(f9(w.phrase,w.locale||"en")),a=w.path||Nf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ce(r.salt):f=_c(32);let u=null;if(r.iv){if(u=ce(r.iv),u.length!==16)throw new Error("invalid iv")}else u=_c(16);let d=null;if(r.uuid){if(d=ce(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=_c(16);let v=1<<17,g=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),qg.scrypt(s,f,v,g,y,64,n).then(w=>{w=ce(w);const x=w.slice(0,16),b=w.slice(16,32),S=w.slice(32,64),P=new Ni.Counter(u),_=new Ni.ModeOfOperation.ctr(x,P),D=ce(_.encrypt(i)),M=Et(ir([b,D])),L={address:t.address.substring(2).toLowerCase(),id:ZH(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:fe(u).substring(2)},ciphertext:fe(D).substring(2),kdf:"scrypt",kdfparams:{salt:fe(f).substring(2),n:v,dklen:32,p:y,r:g},mac:M.substring(2)}};if(o){const z=_c(16),H=new Ni.Counter(z),Y=new Ni.ModeOfOperation.ctr(S,H),Z=ce(Y.encrypt(o)),O=new Date,h=O.getUTCFullYear()+"-"+uc(O.getUTCMonth()+1,2)+"-"+uc(O.getUTCDate(),2)+"T"+uc(O.getUTCHours(),2)+"-"+uc(O.getUTCMinutes(),2)+"-"+uc(O.getUTCSeconds(),2)+".0Z";L["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+L.address,mnemonicCounter:fe(z).substring(2),mnemonicCiphertext:fe(Z).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(L)})}function fW(t,e,r){if(v9(t)){r&&r(0);const n=h9(t,e);return r&&r(1),Promise.resolve(n)}return y9(t)?lW(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function uW(t,e){if(v9(t))return h9(t,e);if(y9(t))return aW(t,e);throw new Error("invalid JSON wallet")}const dW="wallet/5.7.0";var xE=globalThis&&globalThis.__awaiter||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 Sa=new W(dW);function hW(t){return t!=null&&He(t.privateKey,32)&&t.address!=null}function vW(t){const e=t.mnemonic;return e&&e.phrase}class ss extends jl{constructor(e,r){if(super(),hW(e)){const n=new il(e.privateKey);if(ne(this,"_signingKey",()=>n),ne(this,"address",Wo(this.publicKey)),this.address!==Ut(e.address)&&Sa.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),vW(e)){const i=e.mnemonic;ne(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Nf,locale:i.locale||"en"}));const s=this.mnemonic,o=jn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);Wo(o.privateKey)!==this.address&&Sa.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ne(this,"_mnemonic",()=>null)}else{if(il.isSigningKey(e))e.curve!=="secp256k1"&&Sa.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 il(e);ne(this,"_signingKey",()=>n)}ne(this,"_mnemonic",()=>null),ne(this,"address",Wo(this.publicKey))}r&&!nu.isProvider(r)&&Sa.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 ss(this,e)}signTransaction(e){return er(e).then(r=>{r.from!=null&&(Ut(r.from)!==this.address&&Sa.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(Et(uE(r)));return uE(r,n)})}signMessage(e){return xE(this,void 0,void 0,function*(){return $3(this._signingKey().signDigest(gV(e)))})}_signTypedData(e,r,n){return xE(this,void 0,void 0,function*(){const i=yield Kr.resolveNames(e,r,n,s=>(this.provider==null&&Sa.throwError("cannot resolve ENS names without a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return $3(this._signingKey().signDigest(Kr.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={}),cW(this,e,r,n)}static createRandom(e){let r=_c(16);e||(e={}),e.extraEntropy&&(r=ce(vr(Et(ir([r,e.extraEntropy])),0,16)));const n=zg(r,e.locale);return ss.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return fW(e,r,n).then(i=>new ss(i))}static fromEncryptedJsonSync(e,r){return new ss(uW(e,r))}static fromMnemonic(e,r,n){return r||(r=Nf),new ss(jn.fromMnemonic(e,null,n).derivePath(r))}}const yW="networks/5.7.1",bE=new W(yW);function pW(t){return t&&typeof t.renetwork=="function"}function ns(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 ns(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 wE={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ns("homestead")},EE={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ns("ropsten")},AE={chainId:63,name:"classicMordor",_defaultProvider:Eh("https://www.ethercluster.com/mordor","classicMordor")},zu={unspecified:{chainId:0,name:"unspecified"},homestead:wE,mainnet:wE,morden:{chainId:2,name:"morden"},ropsten:EE,testnet:EE,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ns("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ns("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ns("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ns("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Eh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:AE,classicTestnet:AE,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Eh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ns("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ns("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 mW(t){if(t==null)return null;if(typeof t=="number"){for(const n in zu){const i=zu[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=zu[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=zu[t.name];if(!e)return typeof t.chainId!="number"&&bE.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&bE.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(pW(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 gW="web/5.7.1";var xW=globalThis&&globalThis.__awaiter||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 bW(t,e){return xW(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:ce(new Uint8Array(i))}})}var wW=globalThis&&globalThis.__awaiter||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 ni=new W(gW);function SE(t){return new Promise(e=>{setTimeout(e,t)})}function Is(t,e){if(t==null)return null;if(typeof t=="string")return t;if(x0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return ru(t)}catch{}return fe(t)}return t}function EW(t){return sr(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function AW(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;ni.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;ni.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)&&ni.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const x in t.headers)a[x.toLowerCase()]={key:x,value:String(t.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&ni.throwError("basic authentication requires a secure https url",W.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+w7(sr(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=mr(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?b7(v[3]):EW(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){ni.throwError("processing response error",W.errors.SERVER_ERROR,{body:Is(v[1],v[2]),error:x,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(x=>{const b=a[x];g[b.key]=b.value}),c.headers=g;const y=function(){let x=null;return{promise:new Promise(function(P,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(ni.makeError("timeout",W.errors.TIMEOUT,{requestBody:Is(c.body,g["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return wW(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),ni.throwError("bad response",W.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:Is(S,b.headers?b.headers["content-type"]:null),requestBody:Is(c.body,g["content-type"]),requestMethod:c.method,url:l})),r)try{const P=yield r(S,b);return y.cancel(),P}catch(P){if(P.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(ru(s))}catch(l){ni.throwError("invalid JSON",W.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=sr(e);const s=typeof t=="string"?{url:t}:mr(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=mr(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return AW(t,i,n)}function Oc(t,e){return e||(e={}),e=mr(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 Ah="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ap={};for(var Vu=0;Vu>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 b9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=sl(e)^n>>5}for(e=sl(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=b9(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=sl(n)^o,i+=Ah.charAt(o)}for(s=0;s<6;++s)n=sl(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Ah.charAt(a)}return i}function w9(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=b9(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 CW(){var t=w9.apply(null,arguments);if(typeof t=="object")return t}function kW(t){var e=w9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function C0(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:be.allowNull(this.accessList.bind(this),null),blockHash:be.allowNull(o,null),blockNumber:be.allowNull(l,null),transactionIndex:be.allowNull(l,null),confirmations:be.allowNull(l,null),from:r,gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),gasLimit:n,to:be.allowNull(r,null),value:n,nonce:l,data:s,r:be.allowNull(this.uint256),s:be.allowNull(this.uint256),v:be.allowNull(l),creates:be.allowNull(r,null),raw:be.allowNull(s)},e.transactionRequest={from:be.allowNull(r),nonce:be.allowNull(l),gasLimit:be.allowNull(n),gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),to:be.allowNull(r),value:be.allowNull(n),data:be.allowNull(f),type:be.allowNull(l),accessList:be.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:be.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:be.allowNull(this.address,null),from:be.allowNull(this.address,null),contractAddress:be.allowNull(r,null),transactionIndex:l,root:be.allowNull(a),gasUsed:n,logsBloom:be.allowNull(s),blockHash:o,transactionHash:o,logs:be.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:be.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:be.allowNull(n),status:be.allowNull(l),type:c},e.block={hash:be.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:be.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:be.allowNull(r),extraData:s,transactions:be.allowNull(be.arrayOf(o)),baseFeePerGas:be.allowNull(n)},e.blockWithTransactions=mr(e.block),e.blockWithTransactions.transactions=be.allowNull(be.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:be.allowNull(i,void 0),toBlock:be.allowNull(i,void 0),blockHash:be.allowNull(o,void 0),address:be.allowNull(r,void 0),topics:be.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:be.allowNull(l),blockHash:be.allowNull(o),transactionIndex:l,removed:be.allowNull(this.boolean.bind(this)),address:r,data:be.allowFalsish(s,"0x"),topics:be.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return zl(e||[])}number(e){return e==="0x"?0:ae.from(e).toNumber()}type(e){return e==="0x"||e==null?0:ae.from(e).toNumber()}bigNumber(e){return ae.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),He(e))?e.toLowerCase():dc.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 Ut(e)}callAddress(e){if(!He(e,32))return null;const r=Ut(vr(e,12));return r===Ng?null:r}contractAddress(e){return u7(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"||He(e))return Tg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return na(n)!==32?dc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=ae.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!He(e))throw new Error("invalid uint256");return kt(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=be.check(r,e);return i._difficulty=n==null?null:ae.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return be.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&ae.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=be.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;He(n)&&(n=ae.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),He(n)&&(n=ae.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 TH(e)}receiptLog(e){return be.check(this.formats.receiptLog,e)}receipt(e){const r=be.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=ae.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&dc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):dc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&dc.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 be.check(this.formats.filter,e)}filterLog(e){return be.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 Pe=globalThis&&globalThis.__awaiter||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 Le=new W(Wg),_W=10;function kE(t){return t==null?"null":(na(t)!==32&&Le.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function PE(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[kE(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return kE(e)}).join("&")}function OW(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 Ca(t){if(typeof t=="string"){if(t=t.toLowerCase(),na(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+PE(t);if(OV.isForkEvent(t))throw Le.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+PE(t.topics||[])}throw new Error("invalid event - "+t)}function hc(){return new Date().getTime()}function RE(t){return new Promise(e=>{setTimeout(e,t)})}const NW=["block","network","pending","poll"];let DW=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=OW(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||NW.indexOf(this.tag)>=0}};const LW={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 Z1(t){return kt(ae.from(t).toHexString(),32)}function TE(t){return _f.encode(ir([t,vr(la(la(t)),0,4)]))}const E9=new RegExp("^(ipfs)://(.*)$","i"),ME=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),E9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ed(t,e){try{return ru(Df(t,e))}catch{}return null}function Df(t,e){if(t==="0x")return null;const r=ae.from(vr(t,e,e+32)).toNumber(),n=ae.from(vr(t,r,r+32)).toNumber();return vr(t,r+32,r+32+n)}function ev(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Le.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function IE(t){const e=ce(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 jW(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;nae.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 Pe(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:rn([e,md(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=rn(["0x9061b923",A9([pV(this.name),n.data])]));try{let s=yield this.provider.call(n);return ce(s).length%32===4&&Le.throwError("resolver threw error",W.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Df(s,0)),s}catch(s){if(s.code===W.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Pe(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Df(n,0):null})}_getAddress(e,r){const n=LW[String(e)];if(n==null&&Le.throwError(`unsupported coin type: ${e}`,W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ce(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 TE(ir([[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 TE(ir([[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=CE.toWords(i.slice(2));return a.unshift(o),CE.encode(n.prefix,a)}}return null}getAddress(e){return Pe(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Nz?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",Z1(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Le.throwError("invalid or unsupported coin data",W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Pe(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 Le.throwError("invalid or unsupported content hash data",W.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Pe(this,void 0,void 0,function*(){let r=sr(e);r=ir([Z1(64),Z1(r.length),r]),r.length%32!==0&&(r=ir([r,kt("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",fe(r));return n==null||n==="0x"?null:ru(n)})}}let tv=null,BW=1;class $W extends nu{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=Oi(new.target,"getNetwork")(e);r?(ne(this,"_network",r),this.emit("network",r,null)):Le.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Pe(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||Le.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 Oc(()=>this._ready().then(e=>e,e=>{if(!(e.code===W.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return tv==null&&(tv=new be),tv}static getNetwork(e){return mW(e??"homestead")}ccipReadFetch(e,r,n){return Pe(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 Hg({url:c,errorPassThrough:!0},f,(v,g)=>(v.status=g.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Le.throwError(`response not found during CCIP fetch: ${d}`,W.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Le.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,W.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Pe(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(hc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=hc(),n=er({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=hc();return i=ae.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Pe(this,void 0,void 0,function*(){const e=BW++,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)Le.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Le.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 Pe(this,void 0,void 0,function*(){return Le.throwError("provider does not support network detection",W.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Pe(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 RE(0),this._network;const n=Le.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=hc();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 Pe(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Pe(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(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(e,u)}),i){let d=i.startBlock,v=null;const g=y=>Pe(this,void 0,void 0,function*(){c||(yield RE(1e3),this.getTransactionCount(i.from).then(w=>Pe(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(e);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{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 d=setTimeout(()=>{f()||a(Le.makeError("timeout exceeded",W.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Pe(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return ae.from(e)}catch(r){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return ae.from(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return ae.from(i).toNumber()}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return fe(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>Tg(o))}),s=yield this.perform("getStorageAt",i);try{return fe(s)}catch(o){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&na(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Le.throwError("Transaction hash mismatch from Provider.sendTransaction.",W.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Pe(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&&Le.throwError("transaction failed",W.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>fe(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 Pe(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?ae.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?fe(s):null))}),this.formatter.transactionRequest(yield er(n))})}_getFilter(e){return Pe(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 er(r))})}_call(e,r,n){return Pe(this,void 0,void 0,function*(){n>=_W&&Le.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"&&na(s)%32===4)try{const o=vr(s,4),a=vr(o,0,32);ae.from(a).eq(i)||Le.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=ae.from(vr(o,32,64)).toNumber(),f=ae.from(vr(o,c,c+32)).toNumber(),u=vr(o,c+32);for(let x=0;xPe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield er({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),be.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Pe(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Pe(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Le.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 Pe(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 _E(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Pe(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Le.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"+md(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Pe(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(He(e))throw n}typeof e!="string"&&Le.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Pe(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=Ed(yield this.call({to:n,data:"0x691f3431"+md(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Pe(this,void 0,void 0,function*(){let r=null;if(He(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new _E(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=Ed(yield this.call({to:o,data:"0x691f3431"+md(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 Le.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 DW(Ca(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=Ca(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=Ca(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=Ca(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=Ca(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=Ca(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var ts=globalThis&&globalThis.__awaiter||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 ar=new W(Wg),FW=["call","estimateGas"];function Xc(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=He(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=Xc(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return Xc(JSON.parse(t),e)}catch{}return null}function S9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=Xc(e,!0);if(s)return s.data;ar.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=Xc(e.body,!1);s==null&&(s=Xc(e,!1)),s&&ar.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)&&ar.throwError("insufficient funds for intrinsic transaction cost",W.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&ar.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)&&ar.throwError("replacement fee too low",W.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&ar.throwError("legacy pre-eip-155 transactions not supported",W.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),FW.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ar.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 OE(t){return new Promise(function(e){setTimeout(e,t)})}function UW(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 vc(t){return t&&t.toLowerCase()}const lp={};class C9 extends jl{constructor(e,r,n){if(super(),e!==lp)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)):ar.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return ar.throwError("cannot alter JSON-RPC Signer connection",W.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new zW(lp,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&&ar.throwError("unknown account #"+this._index,W.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=mr(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=mr(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>ts(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&ar.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),er({tx:er(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&ar.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)&&ar.throwError("user rejected transaction",W.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),S9("sendTransaction",o,s)))})}signTransaction(e){return ar.throwError("signing transactions is unsupported",W.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ts(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 Oc(()=>ts(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 ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[fe(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),fe(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return ts(this,void 0,void 0,function*(){const i=yield Kr.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(Kr.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&ar.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 ts(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class zW extends C9{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 VW={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let k9=class extends $W{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=Oi(this.constructor,"defaultUrl")()),typeof e=="string"?ne(this,"connection",Object.freeze({url:e})):ne(this,"connection",Object.freeze(mr(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 ts(this,void 0,void 0,function*(){yield OE(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=Oi(this.constructor,"getNetwork");try{return r(ae.from(e).toNumber())}catch(n){return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new C9(lp,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:ia(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Hg(this.connection,JSON.stringify(n),UW).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",[vc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[vc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[vc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[vc(r.address),kt(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",[Oi(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Oi(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=vc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return ts(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&ae.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=mr(r),r.transaction=mr(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&ar.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return S9(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 OE(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=mr(VW);if(r)for(const s in r)r[s]&&(n[s]=!0);n7(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=Tg(ae.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=fe(e[s]))}),e.accessList&&(i.accessList=zl(e.accessList)),i}};const qW="units/5.7.0",HW=new W(qW),P9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Gg(t,e){if(typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return yd(t,e??18)}function Lf(t,e){if(typeof t!="string"&&HW.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return Ai(t,e??18)}function WW(t){return Gg(t,18)}function NE(t){return Lf(t,18)}function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{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(KW(t,!0,e),t),YW=t=>QW(XW(t)),JW=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=ae.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(ae.isBigNumber(e)){const r=e.toNumber();return t.find(n=>n.chainId===r)}else return}},XW=t=>{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},Kg=(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})):"",R9=t=>Kg("https://${network}-indexer.sequence.app",{network:t}),ZW=t=>Kg("https://${network}-relayer.sequence.app",{network:t}),eG=t=>Kg("https://nodes.sequence.app/${network}",{network:t});function DE(t){return JW(tG,t)}const bt=t=>{const e=eG(t);return{rpcUrl:e,relayer:{url:ZW(t),provider:{url:e}},indexerUrl:R9(t)}},tG=YW([rt({},it[X.POLYGON],bt("polygon"),{isDefaultChain:!0,isAuthChain:!0}),rt({},it[X.MAINNET],bt("mainnet")),rt({},it[X.BSC],bt("bsc")),rt({},it[X.AVALANCHE],bt("avalanche")),rt({},it[X.ARBITRUM],bt("arbitrum")),rt({},it[X.ARBITRUM_NOVA],bt("arbitrum-nova")),rt({},it[X.OPTIMISM],bt("optimism")),rt({},it[X.OPTIMISM_SEPOLIA],bt("optimism-sepolia")),rt({},it[X.POLYGON_ZKEVM],bt("polygon-zkevm")),rt({},it[X.GNOSIS],bt("gnosis")),rt({},it[X.RINKEBY],bt("rinkeby"),{disabled:!0}),rt({},it[X.GOERLI],bt("goerli"),{disabled:!0}),rt({},it[X.SEPOLIA],bt("sepolia")),rt({},it[X.POLYGON_MUMBAI],bt("mumbai"),{disabled:!0}),rt({},it[X.POLYGON_AMOY],bt("amoy")),rt({},it[X.BSC_TESTNET],bt("bsc-testnet")),rt({},it[X.ARBITRUM_SEPOLIA],bt("arbitrum-sepolia")),rt({},it[X.BASE],bt("base")),rt({},it[X.BASE_SEPOLIA],bt("base-sepolia")),rt({},it[X.HOMEVERSE],bt("homeverse")),rt({},it[X.HOMEVERSE_TESTNET],bt("homeverse-testnet")),rt({},it[X.XAI],bt("xai")),rt({},it[X.XAI_SEPOLIA],bt("xai-sepolia")),rt({},it[X.AVALANCHE_TESTNET],bt("avalanche-testnet")),rt({},it[X.ASTAR_ZKEVM],bt("astar-zkevm")),rt({},it[X.ASTAR_ZKYOTO],bt("astar-zkyoto")),rt({},it[X.XR_SEPOLIA],bt("xr-sepolia")),rt({},it[X.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),rt({},it[X.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]),LE=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function rv(){const e=ip.en,r=LE[Math.floor(Math.random()*LE.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function rG({onSuccess:t}){const[e,r]=p.useState(""),[n,i]=p.useState(),[s,o]=p.useState(!1),[a,l]=p.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await st.email.initiateAuth({email:u});l(d),r(u)}catch(d){console.error(d),i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const d=await st.getSessionHash(),{idToken:v}=await st.email.finalizeAuth({instance:a,answer:u,email:e,sessionHash:d});t(v)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function nG(){const[t,e]=p.useState(""),[r,n]=p.useState(void 0);return p.useEffect(()=>{const i=async()=>{try{e(await st.getSessionHash())}catch(s){console.error(s),n(s)}};return i(),st.onSessionStateChanged(i)},[e,n]),{sessionHash:t,error:r,loading:!!t}}function iG(){var P;const{sessionHash:t}=nG(),[e,r]=p.useState(""),n=p.useRef(null),i=(P=n.current)==null?void 0:P.validity.valid,[s,o]=p.useState(!1),[a,l]=p.useState([]),[c,f]=p.useState(!1),{theme:u,setTheme:d}=XS(),{inProgress:v,loading:g,initiateAuth:y,sendChallengeAnswer:w}=rG({onSuccess:async _=>{f(!0);const D=await st.signIn({idToken:_},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")}});p.useEffect(()=>{(async()=>await st.isSignedIn()&&Uo.navigate("/"))()},[]);const x=async _=>{const D=await st.signIn({idToken:_.credential},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")},b="https://"+window.location.host+(window.location.host.includes("github.io")?"/demo-waas-auth":""),S=async _=>{const D=await st.signIn({idToken:_.authorization.id_token},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")};return $.jsxs(re,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[$.jsx(re,{marginBottom:"16",children:$.jsx(NC,{})}),$.jsx(re,{children:$.jsx(pr,{variant:"primary",label:"Change theme",onClick:()=>d(u==="dark"?"light":"dark")})}),$.jsx(re,{children:$.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),w?$.jsxs(re,{flexDirection:"column",children:[$.jsx(re,{marginTop:"6",children:$.jsx(Se,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),$.jsx(re,{marginTop:"4",children:$.jsx(OC,{value:a,digits:6,onChange:l})}),$.jsx(re,{gap:"2",marginY:"4",children:g||c?$.jsx(zi,{}):$.jsx(pr,{variant:"primary",disabled:a.includes(""),label:"Verify",onClick:()=>w(a.join("")),"data-id":"verifyButton"})})]}):$.jsxs(re,{marginTop:"5",marginBottom:"4",children:[$.jsxs(Se,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",$.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),$.jsxs(re,{marginTop:"6",children:[$.jsx(Pr,{name:"email",type:"email",onChange:_=>{r(_.target.value)},ref:n,onKeyDown:_=>{e&&_.key==="Enter"&&y(e)},onBlur:()=>o(!!e&&!i),value:e,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),s&&$.jsx(Se,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),$.jsx(re,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:g?$.jsx(zi,{}):$.jsx(pr,{variant:"primary",disabled:!i,label:"Continue",onClick:()=>y(e),"data-id":"continueButton"})})]}),$.jsx("hr",{}),!v&&!!t&&$.jsxs($.Fragment,{children:[$.jsx(re,{children:$.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),$.jsx(pU,{onSuccess:x,shape:"circle",width:230,nonce:t},t),$.jsx(jU,{authOptions:{clientId:"com.horizon.sequence.waas",scope:"openid email",redirectURI:b,usePopup:!0,nonce:t},onError:_=>console.error(_),onSuccess:S,uiType:"dark"},t)]})]})}function sG(t){var e="";return r(t),e;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)e+=JSON.stringify(i);else if(Array.isArray(i)){e+="[";var s=!1;i.forEach(function(a){s&&(e+=","),s=!0,a===void 0&&(a=null),r(a)}),e+="]"}else{e+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),e+="}"}}function n(i,s,o){o>0&&(e+=","),e+=JSON.stringify(s),e+=":",r(i[s])}}const oG=(t,e)=>e.some(r=>t instanceof r);let jE,BE;function aG(){return jE||(jE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lG(){return BE||(BE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const T9=new WeakMap,fp=new WeakMap,M9=new WeakMap,nv=new WeakMap,Qg=new WeakMap;function cG(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{r(no(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&T9.set(r,t)}).catch(()=>{}),Qg.set(e,t),e}function fG(t){if(fp.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)});fp.set(t,e)}let up={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return fp.get(t);if(e==="objectStoreNames")return t.objectStoreNames||M9.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return no(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 uG(t){up=t(up)}function dG(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(iv(this),e,...r);return M9.set(n,e.sort?e.sort():[e]),no(n)}:lG().includes(t)?function(...e){return t.apply(iv(this),e),no(T9.get(this))}:function(...e){return no(t.apply(iv(this),e))}}function hG(t){return typeof t=="function"?dG(t):(t instanceof IDBTransaction&&fG(t),oG(t,aG())?new Proxy(t,up):t)}function no(t){if(t instanceof IDBRequest)return cG(t);if(nv.has(t))return nv.get(t);const e=hG(t);return e!==t&&(nv.set(t,e),Qg.set(e,t)),e}const iv=t=>Qg.get(t);function vG(t,e,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=no(o);return n&&o.addEventListener("upgradeneeded",l=>{n(no(o.result),l.oldVersion,l.newVersion,no(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 yG=["get","getKey","getAll","getAllKeys","count"],pG=["put","add","delete","clear"],sv=new Map;function $E(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sv.get(e))return sv.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,i=pG.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||yG.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 sv.set(e,s),s}uG(t=>({...t,get:(e,r,n)=>$E(e,r)||t.get(e,r,n),has:(e,r)=>!!$E(e,r)||t.has(e,r)}));class Nc extends Error{}Nc.prototype.name="InvalidTokenError";function mG(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function gG(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return mG(e)}catch{return atob(e)}}function xG(t,e){if(typeof t!="string")throw new Nc("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Nc(`Invalid token specified: missing part #${r+1}`);let i;try{i=gG(n)}catch(s){throw new Nc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Nc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const bG=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},wG=t=>({httpHandler:t.httpHandler()});var FE;(function(t){t.HEADER="header",t.QUERY="query"})(FE||(FE={}));var UE;(function(t){t.HEADER="header",t.QUERY="query"})(UE||(UE={}));var jf;(function(t){t.HTTP="http",t.HTTPS="https"})(jf||(jf={}));var Sh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Sh||(Sh={}));var zE;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zE||(zE={}));const dp="__smithy_context";var VE;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VE||(VE={}));var qE;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(qE||(qE={}));class Ki{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const e=new Ki({...this,headers:{...this.headers}});return e.query&&(e.query=EG(e.query)),e}}function EG(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Ch{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const AG=t=>e=>async r=>{if(!Ki.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},SG={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},CG=t=>({applyToStack:e=>{e.add(AG(t),SG)}}),kG=()=>(t,e)=>async r=>{var n,i;try{const s=await t(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??e.inputFilterSensitiveLog,v=u??e.outputFilterSensitiveLog,{$metadata:g,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:g}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f}=c,u=f??e.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},PG={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},RG=t=>({applyToStack:e=>{e.add(kG(),PG)}}),HE="X-Amzn-Trace-Id",TG="AWS_LAMBDA_FUNCTION_NAME",MG="_X_AMZN_TRACE_ID",IG=t=>e=>async r=>{const{request:n}=r;if(!Ki.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(HE))return e(r);const i=process.env[TG],s=process.env[MG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[HE]=s),e({...r,request:n})},_G={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},OG=t=>({applyToStack:e=>{e.add(IG(t),_G)}});function NG(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const DG=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),I9=t=>DG.test(t)||t.startsWith("[")&&t.endsWith("]"),LG=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Yg=(t,e=!1)=>{if(!e)return LG.test(t);const r=t.split(".");for(const n of r)if(!Yg(n))return!1;return!0},kh={},Bf="endpoints";function yo(t){return typeof t!="object"||t==null?t:"ref"in t?`$${yo(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(yo).join(", ")})`:JSON.stringify(t,null,2)}class Pn extends Error{constructor(e){super(e),this.name="EndpointError"}}const jG=(t,e)=>t===e,BG=t=>{const e=t.split("."),r=[];for(const n of e){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new Pn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Pn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},_9=(t,e)=>BG(e).reduce((r,n)=>{if(typeof r!="object")throw new Pn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),$G=t=>t!=null,FG=t=>!t,ov={[jf.HTTP]:80,[jf.HTTPS]:443},UG=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:g="",path:y="",query:w={}}=t,x=new URL(`${g}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,S])=>`${b}=${S}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;const l=o.slice(0,-1);if(!Object.values(jf).includes(l))return null;const c=I9(i),f=r.includes(`${n}:${ov[l]}`)||typeof t=="string"&&t.includes(`${n}:${ov[l]}`),u=`${n}${f?`:${ov[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},zG=(t,e)=>t===e,VG=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),HG={booleanEquals:jG,getAttr:_9,isSet:$G,isValidHostLabel:Yg,not:FG,parseURL:UG,stringEquals:zG,substring:VG,uriEncode:qG},O9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],k0=(t,e,r)=>{if(typeof t=="string")return O9(t,r);if(t.fn)return N9(t,r);if(t.ref)return WG(t,r);throw new Pn(`'${e}': ${String(t)} is not a string, function or reference.`)},N9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:k0(s,"arg",r)),i=t.split(".");return i[0]in kh&&i[1]!=null?kh[i[0]][i[1]](...n):HG[t](...n)},GG=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new Pn(`'${t}' is already defined in Reference Record.`);const n=N9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,`${Bf} evaluateCondition: ${yo(e)} = ${yo(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Jg=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=GG(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=e.logger)==null?void 0:n.debug)==null||i.call(n,`${Bf} assign: ${a.name} := ${yo(a.value)}`))}return{result:!0,referenceRecord:r}},KG=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=k0(s,"Header value entry",e);if(typeof o!="string")throw new Pn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),D9=(t,e)=>{if(Array.isArray(t))return t.map(r=>D9(r,e));switch(typeof t){case"string":return O9(t,e);case"object":if(t===null)throw new Pn(`Unexpected endpoint property: ${t}`);return L9(t,e);case"boolean":return t;default:throw new Pn(`Unexpected endpoint property type: ${typeof t}`)}},L9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:D9(i,e)}),{}),QG=(t,e)=>{const r=k0(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new Pn(`Endpoint URL must be a string, got ${typeof r}`)},YG=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(!i)return;const o={...e,referenceRecord:{...e.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=e.logger)==null?void 0:f.debug)==null||u.call(f,`${Bf} Resolving endpoint from template: ${yo(n)}`),{...c!=null&&{headers:KG(c,o)},...l!=null&&{properties:L9(l,o)},url:QG(a,o)}},JG=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)throw new Pn(k0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},XG=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)return j9(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},j9=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=YG(r,e);if(n)return n}else if(r.type==="error")JG(r,e);else if(r.type==="tree"){const n=XG(r,e);if(n)return n}else throw new Pn(`Unknown endpoint rule: ${r}`);throw new Pn("Rules evaluation failed")},ZG=(t,e)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=e,{parameters:i,rules:s}=t;(f=(c=e.logger)==null?void 0:c.debug)==null||f.call(c,`${Bf} Initial EndpointParams: ${yo(r)}`);const o=Object.entries(i).filter(([,g])=>g.default!=null).map(([g,y])=>[g,y.default]);if(o.length>0)for(const[g,y]of o)r[g]=r[g]??y;const a=Object.entries(i).filter(([,g])=>g.required).map(([g])=>g);for(const g of a)if(r[g]==null)throw new Pn(`Missing required parameter: '${g}'`);const l=j9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const g=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=g;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${Bf} Resolved endpoint: ${yo(l)}`),l},B9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!B9(r))return!1;return!0}return!(!Yg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||I9(t))},eK=t=>{const e=t.split(":");if(e.length<6)return null;const[r,n,i,s,o,...a]=e;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},tK=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],rK="1.1",nK={partitions:tK,version:rK};let iK=nK;const sK=t=>{const{partitions:e}=iK;for(const n of e){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===t)return{...s,...a}}for(const n of e){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(t))return{...s}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},$9={isVirtualHostableS3Bucket:B9,parseArn:eK,partition:sK};kh.aws=$9;const WE="user-agent",av="x-amz-user-agent",GE=" ",lv="/",oK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,aK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,KE="-",lK=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Ki.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(cv))||[],a=(await t.defaultUserAgentProvider()).map(cv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(cv))||[],c=[].concat([...a,...o,...l]).join(GE),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(GE);return t.runtime!=="browser"?(f&&(s[av]=s[av]?`${s[WE]} ${f}`:f),s[WE]=c):s[av]=c,e({...n,request:i})},cv=t=>{var o;const e=t[0].split(lv).map(a=>a.replace(oK,KE)).join(lv),r=(o=t[1])==null?void 0:o.replace(aK,KE),n=e.indexOf(lv),i=e.substring(0,n);let s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},cK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},fK=t=>({applyToStack:e=>{e.add(lK(t),cK)}});var QE;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(QE||(QE={}));const uK=!1,dK=!1,P0=t=>t[dp]||(t[dp]={}),io=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},F9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),YE=t=>F9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,hK=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return YE(e);const n=await e();return YE(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return F9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}};function vK(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const yK=(t,e)=>(r,n)=>async i=>{var c;const s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,i.input)),o=vK(t.httpAuthSchemes),a=P0(n),l=[];for(const f of s){const u=o.get(f.schemeId);if(!u){l.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const d=u.identityProvider(await e.identityProviderConfigProvider(t));if(!d){l.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:v={},signingProperties:g={}}=((c=f.propertiesExtractor)==null?void 0:c.call(f,t,n))||{};f.identityProperties=Object.assign(f.identityProperties||{},v),f.signingProperties=Object.assign(f.signingProperties||{},g),a.selectedHttpAuthScheme={httpAuthOption:f,identity:await d(f.identityProperties),signer:u.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(l.join(` +`)}static register(e,r){r||(r=e.locale)}}const VH="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo";let Jc=null;function yE(t){if(Jc==null&&(Jc=VH.replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),su.check(t)!=="0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"))throw Jc=null,new Error("BIP39 Wordlist for en (English) FAILED")}class qH extends su{constructor(){super("en")}getWord(e){return yE(this),Jc[e]}getWordIndex(e){return yE(this),Jc.indexOf(e)}}const l9=new qH;su.register(l9);const ip={en:l9},HH="hdnode/5.7.0",wh=new W(HH),WH=ae.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),GH=sr("Bitcoin seed"),fc=2147483648;function c9(t){return(1<=256)throw new Error("Depth too large!");return pE(ir([this.privateKey!=null?"0x0488ADE4":"0x0488B21E",fe(this.depth),this.parentFingerprint,kt(fe(this.index),4),this.chainCode,this.privateKey!=null?ir(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new jn(Sa,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&~fc));const n=new Uint8Array(37);if(e&fc){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(ce(this.privateKey),1),r&&(r+="'")}else n.set(ce(this.publicKey));for(let u=24;u>=0;u-=8)n[33+(u>>3)]=e>>24-u&255;const i=ce(bh(Of.sha512,this.chainCode,n)),s=i.slice(0,32),o=i.slice(32);let a=null,l=null;this.privateKey?a=Uu(ae.from(s).add(this.privateKey).mod(WH)):l=new sl(fe(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 jn(Sa,a,l,this.fingerprint,Uu(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=fc)throw new Error("invalid path index - "+s);n=n._derive(fc+o)}else if(s.match(/^[0-9]+$/)){const o=parseInt(s);if(o>=fc)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=ce(e);if(n.length<16||n.length>64)throw new Error("invalid seed");const i=ce(bh(Of.sha512,GH,n));return new jn(Sa,Uu(i.slice(0,32)),null,"0x00000000",Uu(i.slice(32)),0,0,r)}static fromMnemonic(e,r,n){return n=Ug(n),e=zg(f9(e,n),n),jn._fromSeed(QH(e,r),{phrase:e,path:"m",locale:n.locale})}static fromSeed(e){return jn._fromSeed(e,null)}static fromExtendedKey(e){const r=_f.decode(e);(r.length!==82||pE(r.slice(0,78))!==e)&&wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const n=r[4],i=fe(r.slice(5,9)),s=parseInt(fe(r.slice(9,13)).substring(2),16),o=fe(r.slice(13,45)),a=r.slice(45,78);switch(fe(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new jn(Sa,null,fe(a),i,o,s,n,null);case"0x0488ade4":case"0x04358394 ":if(a[0]!==0)break;return new jn(Sa,fe(a.slice(1)),null,i,o,s,n,null)}return wh.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function QH(t,e){e||(e="");const r=sr("mnemonic"+e,vo.NFKD);return Fg(sr(t,vo.NFKD),r,2048,64,"sha512")}function f9(t,e){e=Ug(e),wh.checkNormalize();const r=e.split(t);if(r.length%3!==0)throw new Error("invalid mnemonic");const n=ce(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=c9(o);if((ce(la(n.slice(0,s/8)))[0]&a)!==(n[n.length-1]&a))throw new Error("invalid checksum");return fe(n.slice(0,s/8))}function zg(t,e){if(e=Ug(e),t=ce(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]&KH(8-n)),n+=3);const i=t.length/4,s=ce(la(t))[0]&c9(i);return r[r.length-1]<<=i,r[r.length-1]|=s>>8-i,e.join(r.map(o=>e.getWord(o)))}const YH="random/5.7.0",sp=new W(YH);function JH(){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 mE=JH();let wd=mE.crypto||mE.msCrypto;(!wd||!wd.getRandomValues)&&(sp.warn("WARNING: Missing strong random number source"),wd={getRandomValues:function(t){return sp.throwError("no secure random source avaialble",W.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});function _c(t){(t<=0||t>1024||t%1||t!=t)&&sp.throwArgumentError("invalid length","length",t);const e=new Uint8Array(t);return wd.getRandomValues(e),ce(e)}var u9={exports:{}};(function(t,e){(function(r){function n(C){return parseInt(C)===C}function i(C){if(!n(C.length))return!1;for(var m=0;m255)return!1;return!0}function s(C,m){if(C.buffer&&ArrayBuffer.isView(C)&&C.name==="Uint8Array")return m&&(C.slice?C=C.slice():C=Array.prototype.slice.call(C)),C;if(Array.isArray(C)){if(!i(C))throw new Error("Array contains invalid value: "+C);return new Uint8Array(C)}if(n(C.length)&&i(C))return new Uint8Array(C);throw new Error("unsupported array-like object")}function o(C){return new Uint8Array(C)}function a(C,m,T,F,E){(F!=null||E!=null)&&(C.slice?C=C.slice(F,E):C=Array.prototype.slice.call(C,F,E)),m.set(C,T)}var l=function(){function C(T){var F=[],E=0;for(T=encodeURI(T);E191&&$<224?(F.push(String.fromCharCode(($&31)<<6|T[E+1]&63)),E+=2):(F.push(String.fromCharCode(($&15)<<12|(T[E+1]&63)<<6|T[E+2]&63)),E+=3)}return F.join("")}return{toBytes:C,fromBytes:m}}(),c=function(){function C(F){for(var E=[],$=0;$>4]+m[V&15])}return E.join("")}return{toBytes:C,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],d=[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],v=[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],y=[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],w=[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],x=[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],b=[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],_=[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],D=[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],M=[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],L=[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],z=[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 H(C){for(var m=[],T=0;T>2,this._Ke[$][m%4]=E[m],this._Kd[C-$][m%4]=E[m];for(var V=0,q=F,K;q>16&255]<<24^d[K>>8&255]<<16^d[K&255]<<8^d[K>>24&255]^u[V]<<24,V+=1,F!=8)for(var m=1;m>8&255]<<8^d[K>>16&255]<<16^d[K>>24&255]<<24;for(var m=F/2+1;m>2,te=q%4,this._Ke[oe][te]=E[m],this._Kd[C-oe][te]=E[m++],q++}for(var oe=1;oe>24&255]^M[K>>16&255]^L[K>>8&255]^z[K&255]},Y.prototype.encrypt=function(C){if(C.length!=16)throw new Error("invalid plaintext size (must be 16 bytes)");for(var m=this._Ke.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Ke[0][E];for(var $=1;$>24&255]^y[F[(E+1)%4]>>16&255]^w[F[(E+2)%4]>>8&255]^x[F[(E+3)%4]&255]^this._Ke[$][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Ke[m][E],V[4*E]=(d[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(d[F[(E+1)%4]>>16&255]^q>>16)&255,V[4*E+2]=(d[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(d[F[(E+3)%4]&255]^q)&255;return V},Y.prototype.decrypt=function(C){if(C.length!=16)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var m=this._Kd.length-1,T=[0,0,0,0],F=H(C),E=0;E<4;E++)F[E]^=this._Kd[0][E];for(var $=1;$>24&255]^A[F[(E+3)%4]>>16&255]^P[F[(E+2)%4]>>8&255]^_[F[(E+1)%4]&255]^this._Kd[$][E];F=T.slice()}for(var V=o(16),q,E=0;E<4;E++)q=this._Kd[m][E],V[4*E]=(v[F[E]>>24&255]^q>>24)&255,V[4*E+1]=(v[F[(E+3)%4]>>16&255]^q>>16)&255,V[4*E+2]=(v[F[(E+2)%4]>>8&255]^q>>8)&255,V[4*E+3]=(v[F[(E+1)%4]&255]^q)&255;return V};var Z=function(C){if(!(this instanceof Z))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new Y(C)};Z.prototype.encrypt=function(C){if(C=s(C),C.length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var m=o(C.length),T=o(16),F=0;F=0;--m)this._counter[m]=C%256,C=C>>8},k.prototype.setBytes=function(C){if(C=s(C,!0),C.length!=16)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=C},k.prototype.increment=function(){for(var C=15;C>=0;C--)if(this._counter[C]===255)this._counter[C]=0;else{this._counter[C]++;break}};var I=function(C,m){if(!(this instanceof I))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",m instanceof k||(m=new k(m)),this._counter=m,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new Y(C)};I.prototype.encrypt=function(C){for(var m=s(C,!0),T=0;T16)throw new Error("PKCS#7 padding byte out of range");for(var T=C.length-m,F=0;F=64;){let B=x,C=b,m=A,T=P,F=_,E=D,$=M,V=L,q,K,oe,te,re;for(K=0;K<16;K++)oe=R+K*4,z[K]=(I[oe]&255)<<24|(I[oe+1]&255)<<16|(I[oe+2]&255)<<8|I[oe+3]&255;for(K=16;K<64;K++)q=z[K-2],te=(q>>>17|q<<32-17)^(q>>>19|q<<32-19)^q>>>10,q=z[K-15],re=(q>>>7|q<<32-7)^(q>>>18|q<<32-18)^q>>>3,z[K]=(te+z[K-7]|0)+(re+z[K-16]|0)|0;for(K=0;K<64;K++)te=(((F>>>6|F<<32-6)^(F>>>11|F<<32-11)^(F>>>25|F<<32-25))+(F&E^~F&$)|0)+(V+(w[K]+z[K]|0)|0)|0,re=((B>>>2|B<<32-2)^(B>>>13|B<<32-13)^(B>>>22|B<<32-22))+(B&C^B&m^C&m)|0,V=$,$=E,E=F,F=T+te|0,T=m,m=C,C=B,B=te+re|0;x=x+B|0,b=b+C|0,A=A+m|0,P=P+T|0,_=_+F|0,D=D+E|0,M=M+$|0,L=L+V|0,R+=64,N-=64}}H(y);let Y,Z=y.length%64,O=y.length/536870912|0,h=y.length<<3,S=Z<56?56:120,k=y.slice(y.length-Z,y.length);for(k.push(128),Y=Z+1;Y>>24&255),k.push(O>>>16&255),k.push(O>>>8&255),k.push(O>>>0&255),k.push(h>>>24&255),k.push(h>>>16&255),k.push(h>>>8&255),k.push(h>>>0&255),H(k),[x>>>24&255,x>>>16&255,x>>>8&255,x>>>0&255,b>>>24&255,b>>>16&255,b>>>8&255,b>>>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,_>>>24&255,_>>>16&255,_>>>8&255,_>>>0&255,D>>>24&255,D>>>16&255,D>>>8&255,D>>>0&255,M>>>24&255,M>>>16&255,M>>>8&255,M>>>0&255,L>>>24&255,L>>>16&255,L>>>8&255,L>>>0&255]}function s(y,w,x){y=y.length<=64?y:i(y);const b=64+w.length+4,A=new Array(b),P=new Array(64);let _,D=[];for(_=0;_<64;_++)A[_]=54;for(_=0;_=b-4;L--){if(A[L]++,A[L]<=255)return;A[L]=0}}for(;x>=32;)M(),D=D.concat(i(P.concat(i(A)))),x-=32;return x>0&&(M(),D=D.concat(i(P.concat(i(A))).slice(0,x))),D}function o(y,w,x,b,A){let P;for(f(y,(2*x-1)*16,A,0,16),P=0;P<2*x;P++)c(y,P*16,A,16),l(A,b),f(A,0,y,w+P*16,16);for(P=0;P>>32-w}function l(y,w){f(y,0,w,0,16);for(let x=8;x>0;x-=2)w[4]^=a(w[0]+w[12],7),w[8]^=a(w[4]+w[0],9),w[12]^=a(w[8]+w[4],13),w[0]^=a(w[12]+w[8],18),w[9]^=a(w[5]+w[1],7),w[13]^=a(w[9]+w[5],9),w[1]^=a(w[13]+w[9],13),w[5]^=a(w[1]+w[13],18),w[14]^=a(w[10]+w[6],7),w[2]^=a(w[14]+w[10],9),w[6]^=a(w[2]+w[14],13),w[10]^=a(w[6]+w[2],18),w[3]^=a(w[15]+w[11],7),w[7]^=a(w[3]+w[15],9),w[11]^=a(w[7]+w[3],13),w[15]^=a(w[11]+w[7],18),w[1]^=a(w[0]+w[3],7),w[2]^=a(w[1]+w[0],9),w[3]^=a(w[2]+w[1],13),w[0]^=a(w[3]+w[2],18),w[6]^=a(w[5]+w[4],7),w[7]^=a(w[6]+w[5],9),w[4]^=a(w[7]+w[6],13),w[5]^=a(w[4]+w[7],18),w[11]^=a(w[10]+w[9],7),w[8]^=a(w[11]+w[10],9),w[9]^=a(w[8]+w[11],13),w[10]^=a(w[9]+w[8],18),w[12]^=a(w[15]+w[14],7),w[13]^=a(w[12]+w[15],9),w[14]^=a(w[13]+w[12],13),w[15]^=a(w[14]+w[13],18);for(let x=0;x<16;++x)y[x]+=w[x]}function c(y,w,x,b){for(let A=0;A=256)return!1}return!0}function d(y,w){if(typeof y!="number"||y%1)throw new Error("invalid "+w);return y}function v(y,w,x,b,A,P,_){if(x=d(x,"N"),b=d(b,"r"),A=d(A,"p"),P=d(P,"dkLen"),x===0||x&x-1)throw new Error("N must be power of 2");if(x>2147483647/128/b)throw new Error("N too large");if(b>2147483647/128/A)throw new Error("r too large");if(!u(y))throw new Error("password must be an array or buffer");if(y=Array.prototype.slice.call(y),!u(w))throw new Error("salt must be an array or buffer");w=Array.prototype.slice.call(w);let D=s(y,w,A*128*b);const M=new Uint32Array(A*32*b);for(let F=0;FC&&(F=C);for(let $=0;$C&&(F=C);for(let $=0;$>0&255),D.push(M[$]>>8&255),D.push(M[$]>>16&255),D.push(M[$]>>24&255);const E=s(y,D,P);return _&&_(null,1,E),E}_&&m(T)};if(!_)for(;;){const F=T();if(F!=null)return F}T()}const g={scrypt:function(y,w,x,b,A,P,_){return new Promise(function(D,M){let L=0;_&&_(0),v(y,w,x,b,A,P,function(z,H,Y){if(z)M(z);else if(Y)_&&L!==1&&_(1),D(new Uint8Array(Y));else if(_&&H!==L)return L=H,_(H)})})},syncScrypt:function(y,w,x,b,A,P){return new Uint8Array(v(y,w,x,b,A,P))}};t.exports=g})()})(p9);var rW=p9.exports;const qg=Ss(rW);var nW=globalThis&&globalThis.__awaiter||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 op=new W(d9);function gE(t){return t!=null&&t.mnemonic&&t.mnemonic.phrase}class iW extends ya{isKeystoreAccount(e){return!!(e&&e._isKeystoreAccount)}}function sW(t,e,r){if(rr(t,"crypto/cipher")==="aes-128-ctr"){const i=Go(rr(t,"crypto/cipherparams/iv")),s=new Di.Counter(i),o=new Di.ModeOfOperation.ctr(e,s);return ce(o.decrypt(r))}return null}function m9(t,e){const r=Go(rr(t,"crypto/ciphertext"));if(fe(Et(ir([e.slice(16,32),r]))).substring(2)!==rr(t,"crypto/mac").toLowerCase())throw new Error("invalid password");const i=sW(t,e.slice(0,16),r);i||op.throwError("unsupported cipher",W.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});const s=e.slice(32,64),o=Wo(i);if(t.address){let l=t.address.toLowerCase();if(l.substring(0,2)!=="0x"&&(l="0x"+l),Ut(l)!==o)throw new Error("address mismatch")}const a={_isKeystoreAccount:!0,address:o,privateKey:fe(i)};if(rr(t,"x-ethers/version")==="0.1"){const l=Go(rr(t,"x-ethers/mnemonicCiphertext")),c=Go(rr(t,"x-ethers/mnemonicCounter")),f=new Di.Counter(c),u=new Di.ModeOfOperation.ctr(s,f),d=rr(t,"x-ethers/path")||Nf,v=rr(t,"x-ethers/locale")||"en",g=ce(u.decrypt(l));try{const y=zg(g,v),w=jn.fromMnemonic(y,null,v).derivePath(d);if(w.privateKey!=a.privateKey)throw new Error("mnemonic mismatch");a.mnemonic=w.mnemonic}catch(y){if(y.code!==W.errors.INVALID_ARGUMENT||y.argument!=="wordlist")throw y}}return new iW(a)}function g9(t,e,r,n,i){return ce(Fg(t,e,r,n,i))}function oW(t,e,r,n,i){return Promise.resolve(g9(t,e,r,n,i))}function x9(t,e,r,n,i){const s=Vg(e),o=rr(t,"crypto/kdf");if(o&&typeof o=="string"){const a=function(l,c){return op.throwArgumentError("invalid key-derivation function parameters",l,c)};if(o.toLowerCase()==="scrypt"){const l=Go(rr(t,"crypto/kdfparams/salt")),c=parseInt(rr(t,"crypto/kdfparams/n")),f=parseInt(rr(t,"crypto/kdfparams/r")),u=parseInt(rr(t,"crypto/kdfparams/p"));(!c||!f||!u)&&a("kdf",o),c&c-1&&a("N",c);const d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),n(s,l,c,f,u,64,i)}else if(o.toLowerCase()==="pbkdf2"){const l=Go(rr(t,"crypto/kdfparams/salt"));let c=null;const f=rr(t,"crypto/kdfparams/prf");f==="hmac-sha256"?c="sha256":f==="hmac-sha512"?c="sha512":a("prf",f);const u=parseInt(rr(t,"crypto/kdfparams/c")),d=parseInt(rr(t,"crypto/kdfparams/dklen"));return d!==32&&a("dklen",d),r(s,l,u,d,c)}}return op.throwArgumentError("unsupported key-derivation function","kdf",o)}function aW(t,e){const r=JSON.parse(t),n=x9(r,e,g9,qg.syncScrypt);return m9(r,n)}function lW(t,e,r){return nW(this,void 0,void 0,function*(){const n=JSON.parse(t),i=yield x9(n,e,oW,qg.scrypt,r);return m9(n,i)})}function cW(t,e,r,n){try{if(Ut(t.address)!==Wo(t.privateKey))throw new Error("address/privateKey mismatch");if(gE(t)){const w=t.mnemonic;if(jn.fromMnemonic(w.phrase,null,w.locale).derivePath(w.path||Nf).privateKey!=t.privateKey)throw new Error("mnemonic mismatch")}}catch(w){return Promise.reject(w)}typeof r=="function"&&!n&&(n=r,r={}),r||(r={});const i=ce(t.privateKey),s=Vg(e);let o=null,a=null,l=null;if(gE(t)){const w=t.mnemonic;o=ce(f9(w.phrase,w.locale||"en")),a=w.path||Nf,l=w.locale||"en"}let c=r.client;c||(c="ethers.js");let f=null;r.salt?f=ce(r.salt):f=_c(32);let u=null;if(r.iv){if(u=ce(r.iv),u.length!==16)throw new Error("invalid iv")}else u=_c(16);let d=null;if(r.uuid){if(d=ce(r.uuid),d.length!==16)throw new Error("invalid uuid")}else d=_c(16);let v=1<<17,g=8,y=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(g=r.scrypt.r),r.scrypt.p&&(y=r.scrypt.p)),qg.scrypt(s,f,v,g,y,64,n).then(w=>{w=ce(w);const x=w.slice(0,16),b=w.slice(16,32),A=w.slice(32,64),P=new Di.Counter(u),_=new Di.ModeOfOperation.ctr(x,P),D=ce(_.encrypt(i)),M=Et(ir([b,D])),L={address:t.address.substring(2).toLowerCase(),id:ZH(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:fe(u).substring(2)},ciphertext:fe(D).substring(2),kdf:"scrypt",kdfparams:{salt:fe(f).substring(2),n:v,dklen:32,p:y,r:g},mac:M.substring(2)}};if(o){const z=_c(16),H=new Di.Counter(z),Y=new Di.ModeOfOperation.ctr(A,H),Z=ce(Y.encrypt(o)),O=new Date,h=O.getUTCFullYear()+"-"+uc(O.getUTCMonth()+1,2)+"-"+uc(O.getUTCDate(),2)+"T"+uc(O.getUTCHours(),2)+"-"+uc(O.getUTCMinutes(),2)+"-"+uc(O.getUTCSeconds(),2)+".0Z";L["x-ethers"]={client:c,gethFilename:"UTC--"+h+"--"+L.address,mnemonicCounter:fe(z).substring(2),mnemonicCiphertext:fe(Z).substring(2),path:a,locale:l,version:"0.1"}}return JSON.stringify(L)})}function fW(t,e,r){if(v9(t)){r&&r(0);const n=h9(t,e);return r&&r(1),Promise.resolve(n)}return y9(t)?lW(t,e,r):Promise.reject(new Error("invalid JSON wallet"))}function uW(t,e){if(v9(t))return h9(t,e);if(y9(t))return aW(t,e);throw new Error("invalid JSON wallet")}const dW="wallet/5.7.0";var xE=globalThis&&globalThis.__awaiter||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 Ca=new W(dW);function hW(t){return t!=null&&He(t.privateKey,32)&&t.address!=null}function vW(t){const e=t.mnemonic;return e&&e.phrase}class ss extends Bl{constructor(e,r){if(super(),hW(e)){const n=new sl(e.privateKey);if(ne(this,"_signingKey",()=>n),ne(this,"address",Wo(this.publicKey)),this.address!==Ut(e.address)&&Ca.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),vW(e)){const i=e.mnemonic;ne(this,"_mnemonic",()=>({phrase:i.phrase,path:i.path||Nf,locale:i.locale||"en"}));const s=this.mnemonic,o=jn.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path);Wo(o.privateKey)!==this.address&&Ca.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else ne(this,"_mnemonic",()=>null)}else{if(sl.isSigningKey(e))e.curve!=="secp256k1"&&Ca.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 sl(e);ne(this,"_signingKey",()=>n)}ne(this,"_mnemonic",()=>null),ne(this,"address",Wo(this.publicKey))}r&&!nu.isProvider(r)&&Ca.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 ss(this,e)}signTransaction(e){return er(e).then(r=>{r.from!=null&&(Ut(r.from)!==this.address&&Ca.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);const n=this._signingKey().signDigest(Et(uE(r)));return uE(r,n)})}signMessage(e){return xE(this,void 0,void 0,function*(){return $3(this._signingKey().signDigest(gV(e)))})}_signTypedData(e,r,n){return xE(this,void 0,void 0,function*(){const i=yield Kr.resolveNames(e,r,n,s=>(this.provider==null&&Ca.throwError("cannot resolve ENS names without a provider",W.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:s}),this.provider.resolveName(s)));return $3(this._signingKey().signDigest(Kr.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={}),cW(this,e,r,n)}static createRandom(e){let r=_c(16);e||(e={}),e.extraEntropy&&(r=ce(yr(Et(ir([r,e.extraEntropy])),0,16)));const n=zg(r,e.locale);return ss.fromMnemonic(n,e.path,e.locale)}static fromEncryptedJson(e,r,n){return fW(e,r,n).then(i=>new ss(i))}static fromEncryptedJsonSync(e,r){return new ss(uW(e,r))}static fromMnemonic(e,r,n){return r||(r=Nf),new ss(jn.fromMnemonic(e,null,n).derivePath(r))}}const yW="networks/5.7.1",bE=new W(yW);function pW(t){return t&&typeof t.renetwork=="function"}function ns(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 ns(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 wE={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:ns("homestead")},EE={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:ns("ropsten")},AE={chainId:63,name:"classicMordor",_defaultProvider:Eh("https://www.ethercluster.com/mordor","classicMordor")},zu={unspecified:{chainId:0,name:"unspecified"},homestead:wE,mainnet:wE,morden:{chainId:2,name:"morden"},ropsten:EE,testnet:EE,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:ns("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:ns("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:ns("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:ns("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Eh("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:AE,classicTestnet:AE,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Eh("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:ns("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:ns("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 mW(t){if(t==null)return null;if(typeof t=="number"){for(const n in zu){const i=zu[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=zu[t];return n==null?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}const e=zu[t.name];if(!e)return typeof t.chainId!="number"&&bE.throwArgumentError("invalid network chainId","network",t),t;t.chainId!==0&&t.chainId!==e.chainId&&bE.throwArgumentError("network chainId mismatch","network",t);let r=t._defaultProvider||null;return r==null&&e._defaultProvider&&(pW(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 gW="web/5.7.1";var xW=globalThis&&globalThis.__awaiter||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 bW(t,e){return xW(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:ce(new Uint8Array(i))}})}var wW=globalThis&&globalThis.__awaiter||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 ni=new W(gW);function SE(t){return new Promise(e=>{setTimeout(e,t)})}function _s(t,e){if(t==null)return null;if(typeof t=="string")return t;if(x0(t)){if(e&&(e.split("/")[0]==="text"||e.split(";")[0].trim()==="application/json"))try{return ru(t)}catch{}return fe(t)}return t}function EW(t){return sr(t.replace(/%([0-9a-f][0-9a-f])/gi,(e,r)=>String.fromCharCode(parseInt(r,16))))}function AW(t,e,r){const n=typeof t=="object"&&t.throttleLimit!=null?t.throttleLimit:12;ni.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;ni.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)&&ni.throwArgumentError("missing URL","connection.url",t),l=t.url,typeof t.timeout=="number"&&t.timeout>0&&(u=t.timeout),t.headers)for(const x in t.headers)a[x.toLowerCase()]={key:x,value:String(t.headers[x])},["if-none-match","if-modified-since"].indexOf(x.toLowerCase())>=0&&(f=!0);if(c.allowGzip=!!t.allowGzip,t.user!=null&&t.password!=null){l.substring(0,6)!=="https:"&&t.allowInsecureAuthentication!==!0&&ni.throwError("basic authentication requires a secure https url",W.errors.INVALID_ARGUMENT,{argument:"url",url:l,user:t.user,password:"[REDACTED]"});const x=t.user+":"+t.password;a.authorization={key:"Authorization",value:"Basic "+w7(sr(x))}}t.skipFetchSetup!=null&&(c.skipFetchSetup=!!t.skipFetchSetup),t.fetchOptions!=null&&(c.fetchOptions=mr(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),v=l?l.match(d):null;if(v)try{const x={statusCode:200,statusMessage:"OK",headers:{"content-type":v[1]||"text/plain"},body:v[2]?b7(v[3]):EW(v[3])};let b=x.body;return r&&(b=r(x.body,x)),Promise.resolve(b)}catch(x){ni.throwError("processing response error",W.errors.SERVER_ERROR,{body:_s(v[1],v[2]),error:x,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(x=>{const b=a[x];g[b.key]=b.value}),c.headers=g;const y=function(){let x=null;return{promise:new Promise(function(P,_){u&&(x=setTimeout(()=>{x!=null&&(x=null,_(ni.makeError("timeout",W.errors.TIMEOUT,{requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,timeout:u,url:l})))},u))}),cancel:function(){x!=null&&(clearTimeout(x),x=null)}}}(),w=function(){return wW(this,void 0,void 0,function*(){for(let x=0;x=300)&&(y.cancel(),ni.throwError("bad response",W.errors.SERVER_ERROR,{status:b.statusCode,headers:b.headers,body:_s(A,b.headers?b.headers["content-type"]:null),requestBody:_s(c.body,g["content-type"]),requestMethod:c.method,url:l})),r)try{const P=yield r(A,b);return y.cancel(),P}catch(P){if(P.throttleRetry&&x{let a=null;if(s!=null)try{a=JSON.parse(ru(s))}catch(l){ni.throwError("invalid JSON",W.errors.SERVER_ERROR,{body:s,error:l})}return r&&(a=r(a,o)),a},i=null;if(e!=null){i=sr(e);const s=typeof t=="string"?{url:t}:mr(t);s.headers?Object.keys(s.headers).filter(a=>a.toLowerCase()==="content-type").length!==0||(s.headers=mr(s.headers),s.headers["content-type"]="application/json"):s.headers={"content-type":"application/json"},t=s}return AW(t,i,n)}function Oc(t,e){return e||(e={}),e=mr(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 Ah="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ap={};for(var Vu=0;Vu>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 b9(t){for(var e=1,r=0;r126)return"Invalid prefix ("+t+")";e=ol(e)^n>>5}for(e=ol(e),r=0;rr)throw new TypeError("Exceeds length limit");t=t.toLowerCase();var n=b9(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=ol(n)^o,i+=Ah.charAt(o)}for(s=0;s<6;++s)n=ol(n);for(n^=1,s=0;s<6;++s){var a=n>>(5-s)*5&31;i+=Ah.charAt(a)}return i}function w9(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=b9(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 CW(){var t=w9.apply(null,arguments);if(typeof t=="object")return t}function kW(t){var e=w9.apply(null,arguments);if(typeof e=="object")return e;throw new Error(e)}function C0(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:be.allowNull(this.accessList.bind(this),null),blockHash:be.allowNull(o,null),blockNumber:be.allowNull(l,null),transactionIndex:be.allowNull(l,null),confirmations:be.allowNull(l,null),from:r,gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),gasLimit:n,to:be.allowNull(r,null),value:n,nonce:l,data:s,r:be.allowNull(this.uint256),s:be.allowNull(this.uint256),v:be.allowNull(l),creates:be.allowNull(r,null),raw:be.allowNull(s)},e.transactionRequest={from:be.allowNull(r),nonce:be.allowNull(l),gasLimit:be.allowNull(n),gasPrice:be.allowNull(n),maxPriorityFeePerGas:be.allowNull(n),maxFeePerGas:be.allowNull(n),to:be.allowNull(r),value:be.allowNull(n),data:be.allowNull(f),type:be.allowNull(l),accessList:be.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:o,address:r,topics:be.arrayOf(o),data:s,logIndex:l,blockHash:o},e.receipt={to:be.allowNull(this.address,null),from:be.allowNull(this.address,null),contractAddress:be.allowNull(r,null),transactionIndex:l,root:be.allowNull(a),gasUsed:n,logsBloom:be.allowNull(s),blockHash:o,transactionHash:o,logs:be.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:be.allowNull(l,null),cumulativeGasUsed:n,effectiveGasPrice:be.allowNull(n),status:be.allowNull(l),type:c},e.block={hash:be.allowNull(o),parentHash:o,number:l,timestamp:l,nonce:be.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:be.allowNull(r),extraData:s,transactions:be.allowNull(be.arrayOf(o)),baseFeePerGas:be.allowNull(n)},e.blockWithTransactions=mr(e.block),e.blockWithTransactions.transactions=be.allowNull(be.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:be.allowNull(i,void 0),toBlock:be.allowNull(i,void 0),blockHash:be.allowNull(o,void 0),address:be.allowNull(r,void 0),topics:be.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:be.allowNull(l),blockHash:be.allowNull(o),transactionIndex:l,removed:be.allowNull(this.boolean.bind(this)),address:r,data:be.allowFalsish(s,"0x"),topics:be.arrayOf(o),transactionHash:o,logIndex:l},e}accessList(e){return Vl(e||[])}number(e){return e==="0x"?0:ae.from(e).toNumber()}type(e){return e==="0x"||e==null?0:ae.from(e).toNumber()}bigNumber(e){return ae.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),He(e))?e.toLowerCase():dc.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 Ut(e)}callAddress(e){if(!He(e,32))return null;const r=Ut(yr(e,12));return r===Ng?null:r}contractAddress(e){return u7(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"||He(e))return Tg(e);throw new Error("invalid blockTag")}hash(e,r){const n=this.hex(e,r);return na(n)!==32?dc.throwArgumentError("invalid hash","value",e):n}difficulty(e){if(e==null)return null;const r=ae.from(e);try{return r.toNumber()}catch{}return null}uint256(e){if(!He(e))throw new Error("invalid uint256");return kt(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=be.check(r,e);return i._difficulty=n==null?null:ae.from(n),i}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return be.check(this.formats.transactionRequest,e)}transactionResponse(e){e.gas!=null&&e.gasLimit==null&&(e.gasLimit=e.gas),e.to&&ae.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=be.check(this.formats.transaction,e);if(e.chainId!=null){let n=e.chainId;He(n)&&(n=ae.from(n).toNumber()),r.chainId=n}else{let n=e.networkId;n==null&&r.v==null&&(n=e.chainId),He(n)&&(n=ae.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 TH(e)}receiptLog(e){return be.check(this.formats.receiptLog,e)}receipt(e){const r=be.check(this.formats.receipt,e);if(r.root!=null)if(r.root.length<=4){const n=ae.from(r.root).toNumber();n===0||n===1?(r.status!=null&&r.status!==n&&dc.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):dc.throwArgumentError("invalid alt-root-status","value.root",r.root)}else r.root.length!==66&&dc.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 be.check(this.formats.filter,e)}filterLog(e){return be.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 Pe=globalThis&&globalThis.__awaiter||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 Le=new W(Wg),_W=10;function kE(t){return t==null?"null":(na(t)!==32&&Le.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function PE(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[kE(i)]=!0});const n=Object.keys(r);return n.sort(),n.join("|")}else return kE(e)}).join("&")}function OW(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 ka(t){if(typeof t=="string"){if(t=t.toLowerCase(),na(t)===32)return"tx:"+t;if(t.indexOf(":")===-1)return t}else{if(Array.isArray(t))return"filter:*:"+PE(t);if(OV.isForkEvent(t))throw Le.warn("not implemented"),new Error("not implemented");if(t&&typeof t=="object")return"filter:"+(t.address||"*")+":"+PE(t.topics||[])}throw new Error("invalid event - "+t)}function hc(){return new Date().getTime()}function RE(t){return new Promise(e=>{setTimeout(e,t)})}const NW=["block","network","pending","poll"];let DW=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=OW(e[2]),i={};return n.length>0&&(i.topics=n),r&&r!=="*"&&(i.address=r),i}pollable(){return this.tag.indexOf(":")>=0||NW.indexOf(this.tag)>=0}};const LW={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 Z1(t){return kt(ae.from(t).toHexString(),32)}function TE(t){return _f.encode(ir([t,yr(la(la(t)),0,4)]))}const E9=new RegExp("^(ipfs)://(.*)$","i"),ME=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),E9,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function Ed(t,e){try{return ru(Df(t,e))}catch{}return null}function Df(t,e){if(t==="0x")return null;const r=ae.from(yr(t,e,e+32)).toNumber(),n=ae.from(yr(t,r,r+32)).toNumber();return yr(t,r+32,r+32+n)}function ev(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):Le.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function IE(t){const e=ce(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 jW(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;nae.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 Pe(this,void 0,void 0,function*(){const n={to:this.address,ccipReadEnabled:!0,data:rn([e,md(this.name),r||"0x"])};let i=!1;(yield this.supportsWildcard())&&(i=!0,n.data=rn(["0x9061b923",A9([pV(this.name),n.data])]));try{let s=yield this.provider.call(n);return ce(s).length%32===4&&Le.throwError("resolver threw error",W.errors.CALL_EXCEPTION,{transaction:n,data:s}),i&&(s=Df(s,0)),s}catch(s){if(s.code===W.errors.CALL_EXCEPTION)return null;throw s}})}_fetchBytes(e,r){return Pe(this,void 0,void 0,function*(){const n=yield this._fetch(e,r);return n!=null?Df(n,0):null})}_getAddress(e,r){const n=LW[String(e)];if(n==null&&Le.throwError(`unsupported coin type: ${e}`,W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),n.ilk==="eth")return this.provider.formatter.address(r);const i=ce(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 TE(ir([[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 TE(ir([[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=CE.toWords(i.slice(2));return a.unshift(o),CE.encode(n.prefix,a)}}return null}getAddress(e){return Pe(this,void 0,void 0,function*(){if(e==null&&(e=60),e===60)try{const i=yield this._fetch("0x3b3b57de");return i==="0x"||i===Nz?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",Z1(e));if(r==null||r==="0x")return null;const n=this._getAddress(e,r);return n==null&&Le.throwError("invalid or unsupported coin data",W.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:r}),n})}getAvatar(){return Pe(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 Le.throwError("invalid or unsupported content hash data",W.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})})}getText(e){return Pe(this,void 0,void 0,function*(){let r=sr(e);r=ir([Z1(64),Z1(r.length),r]),r.length%32!==0&&(r=ir([r,kt("0x",32-e.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",fe(r));return n==null||n==="0x"?null:ru(n)})}}let tv=null,BW=1;class $W extends nu{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=Ni(new.target,"getNetwork")(e);r?(ne(this,"_network",r),this.emit("network",r,null)):Le.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Pe(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||Le.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 Oc(()=>this._ready().then(e=>e,e=>{if(!(e.code===W.errors.NETWORK_ERROR&&e.event==="noNetwork"))throw e}))}static getFormatter(){return tv==null&&(tv=new be),tv}static getNetwork(e){return mW(e??"homestead")}ccipReadFetch(e,r,n){return Pe(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 Hg({url:c,errorPassThrough:!0},f,(v,g)=>(v.status=g.statusCode,v));if(u.data)return u.data;const d=u.message||"unknown error";if(u.status>=400&&u.status<500)return Le.throwError(`response not found during CCIP fetch: ${d}`,W.errors.SERVER_ERROR,{url:l,errorMessage:d});o.push(d)}return Le.throwError(`error encountered during CCIP fetch: ${o.map(a=>JSON.stringify(a)).join(", ")}`,W.errors.SERVER_ERROR,{urls:n,errorMessages:o})})}_getInternalBlockNumber(e){return Pe(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(hc()-s.respTime<=e)return s.blockNumber;break}catch{if(this._internalBlockNumber===i)break}}const r=hc(),n=er({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=hc();return i=ae.from(i).toNumber(),i{this._internalBlockNumber===n&&(this._internalBlockNumber=null)}),(yield n).blockNumber})}poll(){return Pe(this,void 0,void 0,function*(){const e=BW++,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)Le.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",Le.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 Pe(this,void 0,void 0,function*(){return Le.throwError("provider does not support network detection",W.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})})}getNetwork(){return Pe(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 RE(0),this._network;const n=Le.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=hc();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 Pe(this,void 0,void 0,function*(){return this._waitForTransaction(e,r??1,n||0,null)})}_waitForTransaction(e,r,n,i){return Pe(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(d=>{d()}),!1)},u=d=>{d.confirmations{this.removeListener(e,u)}),i){let d=i.startBlock,v=null;const g=y=>Pe(this,void 0,void 0,function*(){c||(yield RE(1e3),this.getTransactionCount(i.from).then(w=>Pe(this,void 0,void 0,function*(){if(!c){if(w<=i.nonce)d=y;else{{const x=yield this.getTransaction(e);if(x&&x.blockNumber!=null)return}for(v==null&&(v=d-3,v{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 d=setTimeout(()=>{f()||a(Le.makeError("timeout exceeded",W.errors.TIMEOUT,{timeout:n}))},n);d.unref&&d.unref(),l.push(()=>{clearTimeout(d)})}})})}getBlockNumber(){return Pe(this,void 0,void 0,function*(){return this._getInternalBlockNumber(0)})}getGasPrice(){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return ae.from(e)}catch(r){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:r})}})}getBalance(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getBalance",n);try{return ae.from(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getBalance",params:n,result:i,error:s})}})}getTransactionCount(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getTransactionCount",n);try{return ae.from(i).toNumber()}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:i,error:s})}})}getCode(e,r){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const n=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(r)}),i=yield this.perform("getCode",n);try{return fe(i)}catch(s){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getCode",params:n,result:i,error:s})}})}getStorageAt(e,r,n){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const i=yield er({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(r).then(o=>Tg(o))}),s=yield this.perform("getStorageAt",i);try{return fe(s)}catch(o){return Le.throwError("bad result from backend",W.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:s,error:o})}})}_wrapTransaction(e,r,n){if(r!=null&&na(r)!==32)throw new Error("invalid response - sendTransaction");const i=e;return r!=null&&e.hash!==r&&Le.throwError("Transaction hash mismatch from Provider.sendTransaction.",W.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:r}),i.wait=(s,o)=>Pe(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&&Le.throwError("transaction failed",W.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:l}),l)}),i}sendTransaction(e){return Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield Promise.resolve(e).then(s=>fe(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 Pe(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?ae.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?fe(s):null))}),this.formatter.transactionRequest(yield er(n))})}_getFilter(e){return Pe(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 er(r))})}_call(e,r,n){return Pe(this,void 0,void 0,function*(){n>=_W&&Le.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"&&na(s)%32===4)try{const o=yr(s,4),a=yr(o,0,32);ae.from(a).eq(i)||Le.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=ae.from(yr(o,32,64)).toNumber(),f=ae.from(yr(o,c,c+32)).toNumber(),u=yr(o,c+32);for(let x=0;xPe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork(),e=yield e;const r={transactionHash:this.formatter.hash(e,!0)};return Oc(()=>Pe(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 Pe(this,void 0,void 0,function*(){yield this.getNetwork();const r=yield er({filter:this._getFilter(e)}),n=yield this.perform("getLogs",r);return n.forEach(i=>{i.removed==null&&(i.removed=!1)}),be.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)})}getEtherPrice(){return Pe(this,void 0,void 0,function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})})}_getBlockTag(e){return Pe(this,void 0,void 0,function*(){if(e=yield e,typeof e=="number"&&e<0){e%1&&Le.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 Pe(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 _E(this,n,e);return r!==e&&!(yield i.supportsWildcard())?null:i}r=r.split(".").slice(1).join(".")}})}_getResolver(e,r){return Pe(this,void 0,void 0,function*(){r==null&&(r="ENS");const n=yield this.getNetwork();n.ensAddress||Le.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"+md(e).substring(2)});return this.formatter.callAddress(i)}catch{}return null})}resolveName(e){return Pe(this,void 0,void 0,function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(n){if(He(e))throw n}typeof e!="string"&&Le.throwArgumentError("invalid ENS name","name",e);const r=yield this.getResolver(e);return r?yield r.getAddress():null})}lookupAddress(e){return Pe(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=Ed(yield this.call({to:n,data:"0x691f3431"+md(r).substring(2)}),0);return(yield this.resolveName(i))!=e?null:i})}getAvatar(e){return Pe(this,void 0,void 0,function*(){let r=null;if(He(e)){const s=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(s,"getAvatar");if(!o)return null;r=new _E(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=Ed(yield this.call({to:o,data:"0x691f3431"+md(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 Le.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 DW(ka(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=ka(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=ka(e);return this._events.filter(n=>n.tag===r).length}listeners(e){if(e==null)return this._events.map(n=>n.listener);let r=ka(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=ka(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=ka(e);this._events=this._events.filter(i=>i.tag!==n?!0:(r.push(i),!1))}return r.forEach(n=>{this._stopEvent(n)}),this}}var ts=globalThis&&globalThis.__awaiter||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 ar=new W(Wg),FW=["call","estimateGas"];function Xc(t,e){if(t==null)return null;if(typeof t.message=="string"&&t.message.match("reverted")){const r=He(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=Xc(t[r],e);if(n)return n}return null}if(typeof t=="string")try{return Xc(JSON.parse(t),e)}catch{}return null}function S9(t,e,r){const n=r.transaction||r.signedTransaction;if(t==="call"){const s=Xc(e,!0);if(s)return s.data;ar.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=Xc(e.body,!1);s==null&&(s=Xc(e,!1)),s&&ar.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)&&ar.throwError("insufficient funds for intrinsic transaction cost",W.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:n}),i.match(/nonce (is )?too low/i)&&ar.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)&&ar.throwError("replacement fee too low",W.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:n}),i.match(/only replay-protected/i)&&ar.throwError("legacy pre-eip-155 transactions not supported",W.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:n}),FW.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&ar.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 OE(t){return new Promise(function(e){setTimeout(e,t)})}function UW(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 vc(t){return t&&t.toLowerCase()}const lp={};class C9 extends Bl{constructor(e,r,n){if(super(),e!==lp)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)):ar.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(e){return ar.throwError("cannot alter JSON-RPC Signer connection",W.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new zW(lp,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&&ar.throwError("unknown account #"+this._index,W.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index])))}sendUncheckedTransaction(e){e=mr(e);const r=this.getAddress().then(n=>(n&&(n=n.toLowerCase()),n));if(e.gasLimit==null){const n=mr(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return e.to!=null&&(e.to=Promise.resolve(e.to).then(n=>ts(this,void 0,void 0,function*(){if(n==null)return null;const i=yield this.provider.resolveName(n);return i==null&&ar.throwArgumentError("provided ENS name resolves to null","tx.to",n),i}))),er({tx:er(e),sender:r}).then(({tx:n,sender:i})=>{n.from!=null?n.from.toLowerCase()!==i&&ar.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)&&ar.throwError("user rejected transaction",W.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),S9("sendTransaction",o,s)))})}signTransaction(e){return ar.throwError("signing transactions is unsupported",W.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return ts(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 Oc(()=>ts(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 ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[fe(r),n.toLowerCase()])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),i}})}_legacySignMessage(e){return ts(this,void 0,void 0,function*(){const r=typeof e=="string"?sr(e):e,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),fe(r)])}catch(i){throw typeof i.message=="string"&&i.message.match(/user denied/i)&&ar.throwError("user rejected signing",W.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),i}})}_signTypedData(e,r,n){return ts(this,void 0,void 0,function*(){const i=yield Kr.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(Kr.getPayload(i.domain,r,i.value))])}catch(o){throw typeof o.message=="string"&&o.message.match(/user denied/i)&&ar.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 ts(this,void 0,void 0,function*(){const r=this.provider,n=yield this.getAddress();return r.send("personal_unlockAccount",[n.toLowerCase(),e,null])})}}class zW extends C9{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 VW={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};let k9=class extends $W{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=Ni(this.constructor,"defaultUrl")()),typeof e=="string"?ne(this,"connection",Object.freeze({url:e})):ne(this,"connection",Object.freeze(mr(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 ts(this,void 0,void 0,function*(){yield OE(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=Ni(this.constructor,"getNetwork");try{return r(ae.from(e).toNumber())}catch(n){return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:n})}}return ar.throwError("could not detect network",W.errors.NETWORK_ERROR,{event:"noNetwork"})})}getSigner(e){return new C9(lp,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:ia(n),provider:this});const i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];const s=Hg(this.connection,JSON.stringify(n),UW).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",[vc(r.address),r.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[vc(r.address),r.blockTag]];case"getCode":return["eth_getCode",[vc(r.address),r.blockTag]];case"getStorageAt":return["eth_getStorageAt",[vc(r.address),kt(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",[Ni(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0}),r.blockTag]];case"estimateGas":return["eth_estimateGas",[Ni(this.constructor,"hexlifyTransaction")(r.transaction,{from:!0})]];case"getLogs":return r.filter&&r.filter.address!=null&&(r.filter.address=vc(r.filter.address)),["eth_getLogs",[r.filter]]}return null}perform(e,r){return ts(this,void 0,void 0,function*(){if(e==="call"||e==="estimateGas"){const i=r.transaction;if(i&&i.type!=null&&ae.from(i.type).isZero()&&i.maxFeePerGas==null&&i.maxPriorityFeePerGas==null){const s=yield this.getFeeData();s.maxFeePerGas==null&&s.maxPriorityFeePerGas==null&&(r=mr(r),r.transaction=mr(i),delete r.transaction.type)}}const n=this.prepareRequest(e,r);n==null&&ar.throwError(e+" not implemented",W.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(n[0],n[1])}catch(i){return S9(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 OE(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=mr(VW);if(r)for(const s in r)r[s]&&(n[s]=!0);n7(e,n);const i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(s){if(e[s]==null)return;const o=Tg(ae.from(e[s]));s==="gasLimit"&&(s="gas"),i[s]=o}),["from","to","data"].forEach(function(s){e[s]!=null&&(i[s]=fe(e[s]))}),e.accessList&&(i.accessList=Vl(e.accessList)),i}};const qW="units/5.7.0",HW=new W(qW),P9=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Gg(t,e){if(typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return yd(t,e??18)}function Lf(t,e){if(typeof t!="string"&&HW.throwArgumentError("value must be a string","value",t),typeof e=="string"){const r=P9.indexOf(e);r!==-1&&(e=3*r)}return Si(t,e??18)}function WW(t){return Gg(t,18)}function NE(t){return Lf(t,18)}function cp(){return cp=Object.assign?Object.assign.bind():function(t){for(var e=1;e{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(KW(t,!0,e),t),YW=t=>QW(XW(t)),JW=(t,e)=>{if(typeof e=="string")if(e.startsWith("0x")){const r=ae.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(ae.isBigNumber(e)){const r=e.toNumber();return t.find(n=>n.chainId===r)}else return}},XW=t=>{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},Kg=(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})):"",R9=t=>Kg("https://${network}-indexer.sequence.app",{network:t}),ZW=t=>Kg("https://${network}-relayer.sequence.app",{network:t}),eG=t=>Kg("https://nodes.sequence.app/${network}",{network:t});function DE(t){return JW(tG,t)}const bt=t=>{const e=eG(t);return{rpcUrl:e,relayer:{url:ZW(t),provider:{url:e}},indexerUrl:R9(t)}},tG=YW([rt({},st[X.POLYGON],bt("polygon"),{isDefaultChain:!0,isAuthChain:!0}),rt({},st[X.MAINNET],bt("mainnet")),rt({},st[X.BSC],bt("bsc")),rt({},st[X.AVALANCHE],bt("avalanche")),rt({},st[X.ARBITRUM],bt("arbitrum")),rt({},st[X.ARBITRUM_NOVA],bt("arbitrum-nova")),rt({},st[X.OPTIMISM],bt("optimism")),rt({},st[X.OPTIMISM_SEPOLIA],bt("optimism-sepolia")),rt({},st[X.POLYGON_ZKEVM],bt("polygon-zkevm")),rt({},st[X.GNOSIS],bt("gnosis")),rt({},st[X.RINKEBY],bt("rinkeby"),{disabled:!0}),rt({},st[X.GOERLI],bt("goerli"),{disabled:!0}),rt({},st[X.SEPOLIA],bt("sepolia")),rt({},st[X.POLYGON_MUMBAI],bt("mumbai"),{disabled:!0}),rt({},st[X.POLYGON_AMOY],bt("amoy")),rt({},st[X.BSC_TESTNET],bt("bsc-testnet")),rt({},st[X.ARBITRUM_SEPOLIA],bt("arbitrum-sepolia")),rt({},st[X.BASE],bt("base")),rt({},st[X.BASE_SEPOLIA],bt("base-sepolia")),rt({},st[X.HOMEVERSE],bt("homeverse")),rt({},st[X.HOMEVERSE_TESTNET],bt("homeverse-testnet")),rt({},st[X.XAI],bt("xai")),rt({},st[X.XAI_SEPOLIA],bt("xai-sepolia")),rt({},st[X.AVALANCHE_TESTNET],bt("avalanche-testnet")),rt({},st[X.ASTAR_ZKEVM],bt("astar-zkevm")),rt({},st[X.ASTAR_ZKYOTO],bt("astar-zkyoto")),rt({},st[X.XR_SEPOLIA],bt("xr-sepolia")),rt({},st[X.HARDHAT],{rpcUrl:"http://localhost:8545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:8545"}}}),rt({},st[X.HARDHAT_2],{rpcUrl:"http://localhost:9545",relayer:{url:"http://localhost:3000",provider:{url:"http://localhost:9545"}}})]),LE=[..."🐶🐱🐭🐹🐰🦊🐻🐼🐨🐯🦁🐮🐷🐽🐸🐵🙈🙉🙊🐒🐔🐧🐦🐤🐣🐥🦆🦅🦉🦇🐺🐗🐴🦄🐝🐛🦋🐌🐞🐜🦟🦗🕷🕸🦂🐢🐍🦎🦖🦕🐙🦑🦐🦞🦀🐡🐠🐟🐬🐳🐋🦈🐊🐅🐆🦓🦍🦧🐘🦛🦏🐪🐫🦒🦘🐃🐂🐄🐎🐖🐏🐑🦙🐐🦌🐕🐩🦮🐈🐓🦃🦚🦜🦢🦩🕊🐇🦝🦨🦡🦦🦥🐁🐀🐿🦔🐾🐉🐲🌵🎄🌲🌳🌴🌱🌿🍀🎍🎋🍃👣🍂🍁🍄🐚🌾💐🌷🌹🥀🌺🌸🌼🌻🌞🌝🍏🍎🍐🍊🍋🍌🍉🍇🍓🍈🥭🍍🥥🥝🍅🥑🥦🥬🥒🌶🌽🥕🧄🧅🥔🍠🥐🥯🍞🥖🥨🧀🥚🍳🧈🥞🧇🥓🥩🍗🍖🦴🌭🍔🍟🍕🥪🥙🧆🌮🌯🥗🥘🥫🍝🍜🍲🍛🍣🍱🥟🦪🍤🍙🍚🍘🍥🥠🥮🍢🍡🍧🍨🍦🥧🧁🍰🎂🍮🍭🍬🍫🍿🍩🍪🌰🥜👀👂👃👄👅👆👇👈👉👊👋👌👍👎👏👐👑👒👓🎯🎰🎱🎲🎳👾👯👺👻👽🏂🏃🏄"];function rv(){const e=ip.en,r=LE[Math.floor(Math.random()*LE.length)],n=e.getWord(Math.floor(Math.random()*2048)),i=e.getWord(Math.floor(Math.random()*2048));return`${r} ${n} ${i}`}function rG({onSuccess:t}){const[e,r]=p.useState(""),[n,i]=p.useState(),[s,o]=p.useState(!1),[a,l]=p.useState("");return{inProgress:s||!!a,loading:s,error:n,initiateAuth:async u=>{o(!0);try{const{instance:d}=await nt.email.initiateAuth({email:u});l(d),r(u)}catch(d){console.error(d),i(d.message||"Unknown error")}finally{o(!1)}},sendChallengeAnswer:a?async u=>{o(!0);try{const d=await nt.getSessionHash(),{idToken:v}=await nt.email.finalizeAuth({instance:a,answer:u,email:e,sessionHash:d});t(v)}catch(d){i(d.message||"Unknown error")}finally{o(!1)}}:void 0}}function nG(){const[t,e]=p.useState(""),[r,n]=p.useState(void 0);return p.useEffect(()=>{const i=async()=>{try{e(await nt.getSessionHash())}catch(s){console.error(s),n(s)}};return i(),nt.onSessionStateChanged(i)},[e,n]),{sessionHash:t,error:r,loading:!!t}}function iG(){var P;const{sessionHash:t}=nG(),[e,r]=p.useState(""),n=p.useRef(null),i=(P=n.current)==null?void 0:P.validity.valid,[s,o]=p.useState(!1),[a,l]=p.useState([]),[c,f]=p.useState(!1),{theme:u,setTheme:d}=X8(),{inProgress:v,loading:g,initiateAuth:y,sendChallengeAnswer:w}=rG({onSuccess:async _=>{f(!0);const D=await nt.signIn({idToken:_},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")}});p.useEffect(()=>{(async()=>await nt.isSignedIn()&&Uo.navigate("/"))()},[]);const x=async _=>{const D=await nt.signIn({idToken:_.credential},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")},b="https://"+window.location.host+(window.location.host.includes("github.io")?"/demo-waas-auth":""),A=async _=>{const D=await nt.signIn({idToken:_.authorization.id_token},rv());console.log(`Wallet address: ${D}`),Uo.navigate("/")};return j.jsxs(ee,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[j.jsx(ee,{marginBottom:"16",children:j.jsx(NC,{})}),j.jsx(ee,{children:j.jsx(cr,{variant:"primary",label:"Change theme",onClick:()=>d(u==="dark"?"light":"dark")})}),j.jsx(ee,{children:j.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Email Login"})}),w?j.jsxs(ee,{flexDirection:"column",children:[j.jsx(ee,{marginTop:"6",children:j.jsx(Se,{marginTop:"5",variant:"normal",color:"text80",children:"Enter code received in email."})}),j.jsx(ee,{marginTop:"4",children:j.jsx(OC,{value:a,digits:6,onChange:l})}),j.jsx(ee,{gap:"2",marginY:"4",children:g||c?j.jsx(vi,{}):j.jsx(cr,{variant:"primary",disabled:a.includes(""),label:"Verify",onClick:()=>w(a.join("")),"data-id":"verifyButton"})})]}):j.jsxs(ee,{marginTop:"5",marginBottom:"4",children:[j.jsxs(Se,{variant:"normal",color:"text80",children:["Enter your email to recieve a code to login and create your wallet. ",j.jsx("br",{}),"Please check your spam folder if you don't see it in your inbox."]}),j.jsxs(ee,{marginTop:"6",children:[j.jsx(Pr,{name:"email",type:"email",onChange:_=>{r(_.target.value)},ref:n,onKeyDown:_=>{e&&_.key==="Enter"&&y(e)},onBlur:()=>o(!!e&&!i),value:e,placeholder:"hello@example.com",required:!0,"data-id":"loginEmail"}),s&&j.jsx(Se,{as:"p",variant:"small",color:"negative",marginY:"2",children:"Invalid email address"})]}),j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:g?j.jsx(vi,{}):j.jsx(cr,{variant:"primary",disabled:!i,label:"Continue",onClick:()=>y(e),"data-id":"continueButton"})})]}),j.jsx("hr",{}),!v&&!!t&&j.jsxs(j.Fragment,{children:[j.jsx(ee,{children:j.jsx(Se,{variant:"large",color:"text100",fontWeight:"bold",children:"Social Login"})}),j.jsx(pU,{onSuccess:x,shape:"circle",width:230,nonce:t},t),j.jsx(jU,{authOptions:{clientId:"com.horizon.sequence.waas",scope:"openid email",redirectURI:b,usePopup:!0,nonce:t},onError:_=>console.error(_),onSuccess:A,uiType:"dark"},t)]})]})}function sG(t){var e="";return r(t),e;function r(i){if(i===null||typeof i!="object"||i.toJSON!=null)e+=JSON.stringify(i);else if(Array.isArray(i)){e+="[";var s=!1;i.forEach(function(a){s&&(e+=","),s=!0,a===void 0&&(a=null),r(a)}),e+="]"}else{e+="{";var o=Object.keys(i).filter(function(a){return i[a]!==void 0}).sort();o.forEach(function(a,l){return n(i,a,l)}),e+="}"}}function n(i,s,o){o>0&&(e+=","),e+=JSON.stringify(s),e+=":",r(i[s])}}const oG=(t,e)=>e.some(r=>t instanceof r);let jE,BE;function aG(){return jE||(jE=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function lG(){return BE||(BE=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const T9=new WeakMap,fp=new WeakMap,M9=new WeakMap,nv=new WeakMap,Qg=new WeakMap;function cG(t){const e=new Promise((r,n)=>{const i=()=>{t.removeEventListener("success",s),t.removeEventListener("error",o)},s=()=>{r(io(t.result)),i()},o=()=>{n(t.error),i()};t.addEventListener("success",s),t.addEventListener("error",o)});return e.then(r=>{r instanceof IDBCursor&&T9.set(r,t)}).catch(()=>{}),Qg.set(e,t),e}function fG(t){if(fp.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)});fp.set(t,e)}let up={get(t,e,r){if(t instanceof IDBTransaction){if(e==="done")return fp.get(t);if(e==="objectStoreNames")return t.objectStoreNames||M9.get(t);if(e==="store")return r.objectStoreNames[1]?void 0:r.objectStore(r.objectStoreNames[0])}return io(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 uG(t){up=t(up)}function dG(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...r){const n=t.call(iv(this),e,...r);return M9.set(n,e.sort?e.sort():[e]),io(n)}:lG().includes(t)?function(...e){return t.apply(iv(this),e),io(T9.get(this))}:function(...e){return io(t.apply(iv(this),e))}}function hG(t){return typeof t=="function"?dG(t):(t instanceof IDBTransaction&&fG(t),oG(t,aG())?new Proxy(t,up):t)}function io(t){if(t instanceof IDBRequest)return cG(t);if(nv.has(t))return nv.get(t);const e=hG(t);return e!==t&&(nv.set(t,e),Qg.set(e,t)),e}const iv=t=>Qg.get(t);function vG(t,e,{blocked:r,upgrade:n,blocking:i,terminated:s}={}){const o=indexedDB.open(t,e),a=io(o);return n&&o.addEventListener("upgradeneeded",l=>{n(io(o.result),l.oldVersion,l.newVersion,io(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 yG=["get","getKey","getAll","getAllKeys","count"],pG=["put","add","delete","clear"],sv=new Map;function $E(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(sv.get(e))return sv.get(e);const r=e.replace(/FromIndex$/,""),n=e!==r,i=pG.includes(r);if(!(r in(n?IDBIndex:IDBObjectStore).prototype)||!(i||yG.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 sv.set(e,s),s}uG(t=>({...t,get:(e,r,n)=>$E(e,r)||t.get(e,r,n),has:(e,r)=>!!$E(e,r)||t.has(e,r)}));class Nc extends Error{}Nc.prototype.name="InvalidTokenError";function mG(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function gG(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return mG(e)}catch{return atob(e)}}function xG(t,e){if(typeof t!="string")throw new Nc("Invalid token specified: must be a string");e||(e={});const r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Nc(`Invalid token specified: missing part #${r+1}`);let i;try{i=gG(n)}catch(s){throw new Nc(`Invalid token specified: invalid base64 for part #${r+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Nc(`Invalid token specified: invalid json for part #${r+1} (${s.message})`)}}const bG=t=>{let e=t.httpHandler;return{setHttpHandler(r){e=r},httpHandler(){return e},updateHttpClientConfig(r,n){e.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return e.httpHandlerConfigs()}}},wG=t=>({httpHandler:t.httpHandler()});var FE;(function(t){t.HEADER="header",t.QUERY="query"})(FE||(FE={}));var UE;(function(t){t.HEADER="header",t.QUERY="query"})(UE||(UE={}));var jf;(function(t){t.HTTP="http",t.HTTPS="https"})(jf||(jf={}));var Sh;(function(t){t.MD5="md5",t.CRC32="crc32",t.CRC32C="crc32c",t.SHA1="sha1",t.SHA256="sha256"})(Sh||(Sh={}));var zE;(function(t){t[t.HEADER=0]="HEADER",t[t.TRAILER=1]="TRAILER"})(zE||(zE={}));const dp="__smithy_context";var VE;(function(t){t.PROFILE="profile",t.SSO_SESSION="sso-session",t.SERVICES="services"})(VE||(VE={}));var qE;(function(t){t.HTTP_0_9="http/0.9",t.HTTP_1_0="http/1.0",t.TDS_8_0="tds/8.0"})(qE||(qE={}));class Ki{constructor(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:",this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/",this.username=e.username,this.password=e.password,this.fragment=e.fragment}static isInstance(e){if(!e)return!1;const r=e;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){const e=new Ki({...this,headers:{...this.headers}});return e.query&&(e.query=EG(e.query)),e}}function EG(t){return Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{})}class Ch{constructor(e){this.statusCode=e.statusCode,this.reason=e.reason,this.headers=e.headers||{},this.body=e.body}static isInstance(e){if(!e)return!1;const r=e;return typeof r.statusCode=="number"&&typeof r.headers=="object"}}const AG=t=>e=>async r=>{if(!Ki.isInstance(r.request))return e(r);const{request:n}=r,{handlerProtocol:i=""}=t.requestHandler.metadata||{};if(i.indexOf("h2")>=0&&!n.headers[":authority"])delete n.headers.host,n.headers[":authority"]=n.hostname+(n.port?":"+n.port:"");else if(!n.headers.host){let s=n.hostname;n.port!=null&&(s+=`:${n.port}`),n.headers.host=s}return e(r)},SG={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},CG=t=>({applyToStack:e=>{e.add(AG(t),SG)}}),kG=()=>(t,e)=>async r=>{var n,i;try{const s=await t(r),{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f,overrideOutputFilterSensitiveLog:u}=c,d=f??e.inputFilterSensitiveLog,v=u??e.outputFilterSensitiveLog,{$metadata:g,...y}=s.output;return(n=l==null?void 0:l.info)==null||n.call(l,{clientName:o,commandName:a,input:d(r.input),output:v(y),metadata:g}),s}catch(s){const{clientName:o,commandName:a,logger:l,dynamoDbDocumentClientOptions:c={}}=e,{overrideInputFilterSensitiveLog:f}=c,u=f??e.inputFilterSensitiveLog;throw(i=l==null?void 0:l.error)==null||i.call(l,{clientName:o,commandName:a,input:u(r.input),error:s,metadata:s.$metadata}),s}},PG={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},RG=t=>({applyToStack:e=>{e.add(kG(),PG)}}),HE="X-Amzn-Trace-Id",TG="AWS_LAMBDA_FUNCTION_NAME",MG="_X_AMZN_TRACE_ID",IG=t=>e=>async r=>{const{request:n}=r;if(!Ki.isInstance(n)||t.runtime!=="node"||n.headers.hasOwnProperty(HE))return e(r);const i=process.env[TG],s=process.env[MG],o=a=>typeof a=="string"&&a.length>0;return o(i)&&o(s)&&(n.headers[HE]=s),e({...r,request:n})},_G={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},OG=t=>({applyToStack:e=>{e.add(IG(t),_G)}});function NG(t){return{...t,customUserAgent:typeof t.customUserAgent=="string"?[[t.customUserAgent]]:t.customUserAgent}}const DG=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),I9=t=>DG.test(t)||t.startsWith("[")&&t.endsWith("]"),LG=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),Yg=(t,e=!1)=>{if(!e)return LG.test(t);const r=t.split(".");for(const n of r)if(!Yg(n))return!1;return!0},kh={},Bf="endpoints";function po(t){return typeof t!="object"||t==null?t:"ref"in t?`$${po(t.ref)}`:"fn"in t?`${t.fn}(${(t.argv||[]).map(po).join(", ")})`:JSON.stringify(t,null,2)}class Pn extends Error{constructor(e){super(e),this.name="EndpointError"}}const jG=(t,e)=>t===e,BG=t=>{const e=t.split("."),r=[];for(const n of e){const i=n.indexOf("[");if(i!==-1){if(n.indexOf("]")!==n.length-1)throw new Pn(`Path: '${t}' does not end with ']'`);const s=n.slice(i+1,-1);if(Number.isNaN(parseInt(s)))throw new Pn(`Invalid array index: '${s}' in path: '${t}'`);i!==0&&r.push(n.slice(0,i)),r.push(s)}else r.push(n)}return r},_9=(t,e)=>BG(e).reduce((r,n)=>{if(typeof r!="object")throw new Pn(`Index '${n}' in '${e}' not found in '${JSON.stringify(t)}'`);return Array.isArray(r)?r[parseInt(n)]:r[n]},t),$G=t=>t!=null,FG=t=>!t,ov={[jf.HTTP]:80,[jf.HTTPS]:443},UG=t=>{const e=(()=>{try{if(t instanceof URL)return t;if(typeof t=="object"&&"hostname"in t){const{hostname:d,port:v,protocol:g="",path:y="",query:w={}}=t,x=new URL(`${g}//${d}${v?`:${v}`:""}${y}`);return x.search=Object.entries(w).map(([b,A])=>`${b}=${A}`).join("&"),x}return new URL(t)}catch{return null}})();if(!e)return console.error(`Unable to parse ${JSON.stringify(t)} as a whatwg URL.`),null;const r=e.href,{host:n,hostname:i,pathname:s,protocol:o,search:a}=e;if(a)return null;const l=o.slice(0,-1);if(!Object.values(jf).includes(l))return null;const c=I9(i),f=r.includes(`${n}:${ov[l]}`)||typeof t=="string"&&t.includes(`${n}:${ov[l]}`),u=`${n}${f?`:${ov[l]}`:""}`;return{scheme:l,authority:u,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:c}},zG=(t,e)=>t===e,VG=(t,e,r,n)=>e>=r||t.lengthencodeURIComponent(t).replace(/[!*'()]/g,e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`),HG={booleanEquals:jG,getAttr:_9,isSet:$G,isValidHostLabel:Yg,not:FG,parseURL:UG,stringEquals:zG,substring:VG,uriEncode:qG},O9=(t,e)=>{const r=[],n={...e.endpointParams,...e.referenceRecord};let i=0;for(;i({...e.endpointParams,...e.referenceRecord})[t],k0=(t,e,r)=>{if(typeof t=="string")return O9(t,r);if(t.fn)return N9(t,r);if(t.ref)return WG(t,r);throw new Pn(`'${e}': ${String(t)} is not a string, function or reference.`)},N9=({fn:t,argv:e},r)=>{const n=e.map(s=>["boolean","number"].includes(typeof s)?s:k0(s,"arg",r)),i=t.split(".");return i[0]in kh&&i[1]!=null?kh[i[0]][i[1]](...n):HG[t](...n)},GG=({assign:t,...e},r)=>{var i,s;if(t&&t in r.referenceRecord)throw new Pn(`'${t}' is already defined in Reference Record.`);const n=N9(e,r);return(s=(i=r.logger)==null?void 0:i.debug)==null||s.call(i,`${Bf} evaluateCondition: ${po(e)} = ${po(n)}`),{result:n===""?!0:!!n,...t!=null&&{toAssign:{name:t,value:n}}}},Jg=(t=[],e)=>{var n,i;const r={};for(const s of t){const{result:o,toAssign:a}=GG(s,{...e,referenceRecord:{...e.referenceRecord,...r}});if(!o)return{result:o};a&&(r[a.name]=a.value,(i=(n=e.logger)==null?void 0:n.debug)==null||i.call(n,`${Bf} assign: ${a.name} := ${po(a.value)}`))}return{result:!0,referenceRecord:r}},KG=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:i.map(s=>{const o=k0(s,"Header value entry",e);if(typeof o!="string")throw new Pn(`Header '${n}' value '${o}' is not a string`);return o})}),{}),D9=(t,e)=>{if(Array.isArray(t))return t.map(r=>D9(r,e));switch(typeof t){case"string":return O9(t,e);case"object":if(t===null)throw new Pn(`Unexpected endpoint property: ${t}`);return L9(t,e);case"boolean":return t;default:throw new Pn(`Unexpected endpoint property type: ${typeof t}`)}},L9=(t,e)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:D9(i,e)}),{}),QG=(t,e)=>{const r=k0(t,"Endpoint URL",e);if(typeof r=="string")try{return new URL(r)}catch(n){throw console.error(`Failed to construct URL with ${r}`,n),n}throw new Pn(`Endpoint URL must be a string, got ${typeof r}`)},YG=(t,e)=>{var f,u;const{conditions:r,endpoint:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(!i)return;const o={...e,referenceRecord:{...e.referenceRecord,...s}},{url:a,properties:l,headers:c}=n;return(u=(f=e.logger)==null?void 0:f.debug)==null||u.call(f,`${Bf} Resolving endpoint from template: ${po(n)}`),{...c!=null&&{headers:KG(c,o)},...l!=null&&{properties:L9(l,o)},url:QG(a,o)}},JG=(t,e)=>{const{conditions:r,error:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)throw new Pn(k0(n,"Error",{...e,referenceRecord:{...e.referenceRecord,...s}}))},XG=(t,e)=>{const{conditions:r,rules:n}=t,{result:i,referenceRecord:s}=Jg(r,e);if(i)return j9(n,{...e,referenceRecord:{...e.referenceRecord,...s}})},j9=(t,e)=>{for(const r of t)if(r.type==="endpoint"){const n=YG(r,e);if(n)return n}else if(r.type==="error")JG(r,e);else if(r.type==="tree"){const n=XG(r,e);if(n)return n}else throw new Pn(`Unknown endpoint rule: ${r}`);throw new Pn("Rules evaluation failed")},ZG=(t,e)=>{var c,f,u,d,v;const{endpointParams:r,logger:n}=e,{parameters:i,rules:s}=t;(f=(c=e.logger)==null?void 0:c.debug)==null||f.call(c,`${Bf} Initial EndpointParams: ${po(r)}`);const o=Object.entries(i).filter(([,g])=>g.default!=null).map(([g,y])=>[g,y.default]);if(o.length>0)for(const[g,y]of o)r[g]=r[g]??y;const a=Object.entries(i).filter(([,g])=>g.required).map(([g])=>g);for(const g of a)if(r[g]==null)throw new Pn(`Missing required parameter: '${g}'`);const l=j9(s,{endpointParams:r,logger:n,referenceRecord:{}});if((u=e.endpointParams)!=null&&u.Endpoint)try{const g=new URL(e.endpointParams.Endpoint),{protocol:y,port:w}=g;l.url.protocol=y,l.url.port=w}catch{}return(v=(d=e.logger)==null?void 0:d.debug)==null||v.call(d,`${Bf} Resolved endpoint: ${po(l)}`),l},B9=(t,e=!1)=>{if(e){for(const r of t.split("."))if(!B9(r))return!1;return!0}return!(!Yg(t)||t.length<3||t.length>63||t!==t.toLowerCase()||I9(t))},eK=t=>{const e=t.split(":");if(e.length<6)return null;const[r,n,i,s,o,...a]=e;return r!=="arn"||n===""||i===""||a[0]===""?null:{partition:n,service:i,region:s,accountId:o,resourceId:a[0].includes("/")?a[0].split("/"):a}},tK=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{}}],rK="1.1",nK={partitions:tK,version:rK};let iK=nK;const sK=t=>{const{partitions:e}=iK;for(const n of e){const{regions:i,outputs:s}=n;for(const[o,a]of Object.entries(i))if(o===t)return{...s,...a}}for(const n of e){const{regionRegex:i,outputs:s}=n;if(new RegExp(i).test(t))return{...s}}const r=e.find(n=>n.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},$9={isVirtualHostableS3Bucket:B9,parseArn:eK,partition:sK};kh.aws=$9;const WE="user-agent",av="x-amz-user-agent",GE=" ",lv="/",oK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,aK=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,KE="-",lK=t=>(e,r)=>async n=>{var u,d;const{request:i}=n;if(!Ki.isInstance(i))return e(n);const{headers:s}=i,o=((u=r==null?void 0:r.userAgent)==null?void 0:u.map(cv))||[],a=(await t.defaultUserAgentProvider()).map(cv),l=((d=t==null?void 0:t.customUserAgent)==null?void 0:d.map(cv))||[],c=[].concat([...a,...o,...l]).join(GE),f=[...a.filter(v=>v.startsWith("aws-sdk-")),...l].join(GE);return t.runtime!=="browser"?(f&&(s[av]=s[av]?`${s[WE]} ${f}`:f),s[WE]=c):s[av]=c,e({...n,request:i})},cv=t=>{var o;const e=t[0].split(lv).map(a=>a.replace(oK,KE)).join(lv),r=(o=t[1])==null?void 0:o.replace(aK,KE),n=e.indexOf(lv),i=e.substring(0,n);let s=e.substring(n+1);return i==="api"&&(s=s.toLowerCase()),[i,s,r].filter(a=>a&&a.length>0).reduce((a,l,c)=>{switch(c){case 0:return l;case 1:return`${a}/${l}`;default:return`${a}#${l}`}},"")},cK={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},fK=t=>({applyToStack:e=>{e.add(lK(t),cK)}});var QE;(function(t){t.ENV="env",t.CONFIG="shared config entry"})(QE||(QE={}));const uK=!1,dK=!1,P0=t=>t[dp]||(t[dp]={}),so=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},F9=t=>typeof t=="string"&&(t.startsWith("fips-")||t.endsWith("-fips")),YE=t=>F9(t)?["fips-aws-global","aws-fips"].includes(t)?"us-east-1":t.replace(/fips-(dkr-|prod-)?|-fips/,""):t,hK=t=>{const{region:e,useFipsEndpoint:r}=t;if(!e)throw new Error("Region is missing");return{...t,region:async()=>{if(typeof e=="string")return YE(e);const n=await e();return YE(n)},useFipsEndpoint:async()=>{const n=typeof e=="string"?e:await e();return F9(n)?!0:typeof r!="function"?Promise.resolve(!!r):r()}}};function vK(t){const e=new Map;for(const r of t)e.set(r.schemeId,r);return e}const yK=(t,e)=>(r,n)=>async i=>{var c;const s=t.httpAuthSchemeProvider(await e.httpAuthSchemeParametersProvider(t,n,i.input)),o=vK(t.httpAuthSchemes),a=P0(n),l=[];for(const f of s){const u=o.get(f.schemeId);if(!u){l.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const d=u.identityProvider(await e.identityProviderConfigProvider(t));if(!d){l.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:v={},signingProperties:g={}}=((c=f.propertiesExtractor)==null?void 0:c.call(f,t,n))||{};f.identityProperties=Object.assign(f.identityProperties||{},v),f.signingProperties=Object.assign(f.signingProperties||{},g),a.selectedHttpAuthScheme={httpAuthOption:f,identity:await d(f.identityProperties),signer:u.signer};break}if(!a.selectedHttpAuthScheme)throw new Error(l.join(` `));return r(i)},pK=async t=>{const e=(t==null?void 0:t.Bucket)||"";if(typeof t.Bucket=="string"&&(t.Bucket=e.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),wK(e)){if(t.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!bK(e)||e.indexOf(".")!==-1&&!String(t.Endpoint).startsWith("http:")||e.toLowerCase()!==e||e.length<3)&&(t.ForcePathStyle=!0);return t.DisableMultiRegionAccessPoints&&(t.disableMultiRegionAccessPoints=!0,t.DisableMRAP=!0),t},mK=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,gK=/(\d+\.){3}\d+/,xK=/\.\./,bK=t=>mK.test(t)&&!gK.test(t)&&!xK.test(t),wK=t=>{const[e,r,n,,,i]=t.split(":"),s=e==="arn"&&t.split(":").length>=6,o=!!(s&&r&&n&&i);if(s&&!o)throw new Error(`Invalid ARN: ${t} was an invalid ARN.`);return o},EK=(t,e,r)=>{const n=async()=>{const i=r[t]??r[e];return typeof i=="function"?i():i};return t==="credentialScope"||e==="CredentialScope"?async()=>{const i=typeof r.credentials=="function"?await r.credentials():r.credentials;return(i==null?void 0:i.credentialScope)??(i==null?void 0:i.CredentialScope)}:t==="endpoint"||e==="endpoint"?async()=>{const i=await n();if(i&&typeof i=="object"){if("url"in i)return i.url.href;if("hostname"in i){const{protocol:s,hostname:o,port:a,path:l}=i;return`${s}//${o}${a?":"+a:""}${l}`}}return i}:n},AK=async t=>{};function SK(t){const e={};if(t=t.replace(/^\?/,""),t)for(const r of t.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in e?Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]:e[n]=i}return e}const Ph=t=>{if(typeof t=="string")return Ph(new URL(t));const{hostname:e,pathname:r,port:n,protocol:i,search:s}=t;let o;return s&&(o=SK(s)),{hostname:e,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}},U9=t=>typeof t=="object"?"url"in t?Ph(t.url):t:Ph(t),CK=async(t,e,r,n)=>{if(!r.endpoint){const o=await AK(r.serviceId||"");o&&(r.endpoint=()=>Promise.resolve(U9(o)))}const i=await kK(t,e,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return r.endpointProvider(i,n)},kK=async(t,e,r)=>{var s;const n={},i=((s=e==null?void 0:e.getEndpointParameterInstructions)==null?void 0:s.call(e))||{};for(const[o,a]of Object.entries(i))switch(a.type){case"staticContextParams":n[o]=a.value;break;case"contextParams":n[o]=t[a.name];break;case"clientContextParams":case"builtInParams":n[o]=await EK(a.name,o,r)();break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(i).length===0&&Object.assign(n,r),String(r.serviceId).toLowerCase()==="s3"&&await pK(n),n},PK=({config:t,instructions:e})=>(r,n)=>async i=>{var a,l,c;const s=await CK(i.input,{getEndpointParameterInstructions(){return e}},{...t},n);n.endpointV2=s,n.authSchemes=(a=s.properties)==null?void 0:a.authSchemes;const o=(l=n.authSchemes)==null?void 0:l[0];if(o){n.signing_region=o.signingRegion,n.signing_service=o.signingName;const f=P0(n),u=(c=f==null?void 0:f.selectedHttpAuthScheme)==null?void 0:c.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:o.signingRegion,signingRegion:o.signingRegion,signing_service:o.signingName,signingName:o.signingName,signingRegionSet:o.signingRegionSet},o.properties))}return r({...i})},RK=(t,e)=>r=>async n=>{const{response:i}=await r(n);try{const s=await e(i,t);return{response:i,output:s}}catch(s){if(Object.defineProperty(s,"$response",{value:i}),!("$metadata"in s)){const o="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";s.message+=` - `+o,typeof s.$responseBodyText<"u"&&s.$response&&(s.$response.body=s.$responseBodyText)}throw s}},TK=(t,e)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&t.urlParser?async()=>t.urlParser(n.endpointV2.url):t.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await e(i.input,{...t,endpoint:s});return r({...i,request:o})},MK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Xg={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Zg(t,e,r){return{applyToStack:n=>{n.add(RK(t,r),MK),n.add(TK(t,e),Xg)}}}const z9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Xg.name},ex=(t,e)=>({applyToStack:r=>{r.addRelativeTo(PK({config:t,instructions:e}),z9)}}),IK=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>U9(await io(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:io(t.useDualstackEndpoint??!1),useFipsEndpoint:io(t.useFipsEndpoint??!1)}},_K={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:z9.name},OK=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(yK(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),_K)}});Xg.name;const NK=t=>e=>{throw e},DK=(t,e)=>{},LK=t=>(e,r)=>async n=>{if(!Ki.isInstance(n.request))return e(n);const s=P0(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,c=await e({...n,request:await l.sign(n.request,a,o)}).catch((l.errorHandler||NK)(o));return(l.successHandler||DK)(c.response,o),c};var Sl;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Sl||(Sl={}));const Rh=3,jK=Sl.STANDARD,BK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$K=["TimeoutError","RequestTimeout","RequestTimeoutException"],FK=[500,502,503,504],UK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zK=t=>{var e;return(e=t.$metadata)==null?void 0:e.clockSkewCorrected},V9=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||BK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},q9=t=>{var e;return zK(t)||$K.includes(t.name)||UK.includes((t==null?void 0:t.code)||"")||FK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},VK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!q9(t)}return!1};class qK{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(e==null?void 0:e.beta)??.7,this.minCapacity=(e==null?void 0:e.minCapacity)??1,this.minFillRate=(e==null?void 0:e.minFillRate)??.5,this.scaleConstant=(e==null?void 0:e.scaleConstant)??.4,this.smooth=(e==null?void 0:e.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),V9(e)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const hp=100,H9=20*1e3,HK=500,JE=500,WK=5,GK=10,KK=1,QK="amz-sdk-invocation-id",YK="amz-sdk-request",JK=()=>{let t=hp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(H9,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},XE=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(H9,t),getRetryCost:()=>r});class W9{constructor(e){this.maxAttempts=e,this.mode=Sl.STANDARD,this.capacity=JE,this.retryBackoffStrategy=JK(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return XE({retryDelay:hp,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?HK:hp);const s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,XE({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(JE,this.capacity+(e.getRetryCost()??KK))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Rh}`),Rh}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?GK:WK}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class XK{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Sl.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new qK,this.standardRetryStrategy=new W9(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}let qu;const ZK=new Uint8Array(16);function eQ(){if(!qu&&(qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qu(ZK)}const Sr=[];for(let t=0;t<256;++t)Sr.push((t+256).toString(16).slice(1));function tQ(t,e=0){return Sr[t[e+0]]+Sr[t[e+1]]+Sr[t[e+2]]+Sr[t[e+3]]+"-"+Sr[t[e+4]]+Sr[t[e+5]]+"-"+Sr[t[e+6]]+Sr[t[e+7]]+"-"+Sr[t[e+8]]+Sr[t[e+9]]+"-"+Sr[t[e+10]]+Sr[t[e+11]]+Sr[t[e+12]]+Sr[t[e+13]]+Sr[t[e+14]]+Sr[t[e+15]]}const rQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ZE={randomUUID:rQ};function nQ(t,e,r){if(ZE.randomUUID&&!e&&!t)return ZE.randomUUID();t=t||{};const n=t.random||(t.rng||eQ)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return tQ(n)}const iQ=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),sQ=t=>{const{retryStrategy:e}=t,r=io(t.maxAttempts??Rh);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await io(t.retryMode)()===Sl.ADAPTIVE?new XK(r):new W9(r))}};class G9{trace(){}debug(){}info(){}warn(){}error(){}}const ko=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},_s=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Th=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>e4[v.step]-e4[d.step]||t4[v.priority||"normal"]-t4[d.priority||"normal"]),s=u=>{let d=!1;const v=g=>{const y=ko(g.name,g.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},o=u=>{let d=!1;const v=g=>{if(g.middleware===u){d=!0;for(const y of ko(g.name,g.aliases))n.delete(y);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},a=u=>{var d;return t.forEach(v=>{u.add(v.middleware,{...v})}),e.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],g={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=g[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${_s(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:g,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${_s(v,y)}'`);for(const b of x){const S=t.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(S===-1)continue;const P=t[S];if(P.step!==w.step||w.priority!==P.priority)throw new Error(`"${_s(P.name,P.aliases)}" middleware with ${P.priority} priority in ${P.step} step cannot be overridden by "${_s(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(S,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:g,aliases:y}=d,w={middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${_s(v,y)}'`);for(const b of x){const S=e.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(S===-1)continue;const P=e[S];if(P.toMiddleware!==w.toMiddleware||P.relation!==w.relation)throw new Error(`"${_s(P.name,P.aliases)}" middleware ${P.relation} "${P.toMiddleware}" middleware cannot be overridden by "${_s(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(S,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Th()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=g=>{const{tags:y,name:w,aliases:x}=g;if(y&&y.includes(u)){const b=ko(w,x);for(const S of b)n.delete(S);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Th());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return _s(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(g=>g.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},e4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t4={high:3,normal:2,low:1};class oQ{constructor(e){this.middlewareStack=Th(),this.config=e}send(e,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(e).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(e).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const po={},Vl=new Array(64);for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e);po[n]=t,Vl[t]=n}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e),i=t+26;po[n]=i,Vl[i]=n}for(let t=0;t<10;t++){po[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;po[e]=r,Vl[r]=e}po["+"]=62;Vl[62]="+";po["/"]=63;Vl[63]="/";const ol=6,Zc=8,aQ=63,tx=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;const r=new ArrayBuffer(e),n=new DataView(r);for(let i=0;i>=ol;const a=i/4*3;s>>=o%Zc;const l=Math.floor(o/Zc);for(let c=0;c>f)}}return new Uint8Array(r)},Cl=t=>new TextEncoder().encode(t),ef=t=>typeof t=="string"?Cl(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),K9=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)};function Q9(t){let e;typeof t=="string"?e=Cl(t):e=t;const r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>f]}i+="==".slice(0,4-l)}return i}function lQ(t,e="utf-8"){return e==="base64"?Q9(t):K9(t)}function cQ(t,e){return e==="base64"?Ko.mutate(tx(t)):Ko.mutate(Cl(t))}class Ko extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return cQ(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,Ko.prototype),e}transformToString(e="utf-8"){return lQ(this,e)}}const Hs=t=>encodeURIComponent(t).replace(/[!'()*]/g,fQ),fQ=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function uQ(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Hs(r),Array.isArray(n))for(let i=0,s=n.length;i{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}const hQ={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class rx{static create(e){return typeof(e==null?void 0:e.handle)=="function"?e:new rx(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(r=>r||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=e.path;const o=uQ(e.query||{});o&&(s+=`?${o}`),e.fragment&&(s+=`#${e.fragment}`);let a="";if(e.username!=null||e.password!=null){const y=e.username??"",w=e.password??"";a=`${y}:${w}@`}const{port:l,method:c}=e,f=`${e.protocol}//${a}${e.hostname}${l?`:${l}`:""}${s}`,u=c==="GET"||c==="HEAD"?void 0:e.body,d={body:u,headers:new Headers(e.headers),method:c};u&&(d.duplex="half"),typeof AbortController<"u"&&(d.signal=r),hQ.supported&&(d.keepalive=i);const v=new Request(f,d),g=[fetch(v).then(y=>{const w=y.headers,x={};for(const S of w.entries())x[S[0]]=S[1];return y.body!=null?{response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(S=>({response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:S})}))}),dQ(n)];return r&&g.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(g)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const vQ=t=>typeof Blob=="function"&&t instanceof Blob?yQ(t):pQ(t);async function yQ(t){const e=await mQ(t),r=tx(e);return new Uint8Array(r)}async function pQ(t){const e=[],r=t.getReader();let n=!1,i=0;for(;!n;){const{done:a,value:l}=await r.read();l&&(e.push(l),i+=l.length),n=a}const s=new Uint8Array(i);let o=0;for(const a of e)s.set(a,o),o+=a.length;return s}function mQ(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}const Y9={},vp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Y9[t]=e,vp[e]=t}function gQ(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r{if(t instanceof Uint8Array)return Ko.mutate(t);if(!t)return Ko.mutate(new Uint8Array);const r=e.streamCollector(t);return Ko.mutate(await r)};class R0{constructor(){this.middlewareStack=Th()}static classBuilder(){return new bQ}resolveMiddlewareWithContext(e,r,n,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:f,CommandCtor:u}){for(const w of i.bind(this)(u,e,r,n))this.middlewareStack.use(w);const d=e.concat(this.middlewareStack),{logger:v}=r,g={logger:v,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[dp]:{...c},...f},{requestHandler:y}=r;return d.resolve(w=>y.handle(w.request,n||{}),g)}}class bQ{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let r;return r=class extends R0{static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=n??{},e._init(this)}resolveMiddleware(n,i,s){return this.resolveMiddlewareWithContext(n,i,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const wr="***SensitiveInformation***";class nx extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,nx.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Ne=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(t[n]==null||t[n]==="")&&(t[n]=i)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},wQ=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=AQ(t),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(e==null?void 0:e.code)||(e==null?void 0:e.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw Ne(o,e)},EQ=t=>({output:e,parsedBody:r,errorCode:n})=>{wQ({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},AQ=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),SQ=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},CQ=t=>{const e=[];for(const r in Sh){const n=Sh[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},kQ=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},PQ=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},RQ=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},TQ=t=>({...CQ(t),...PQ(t)}),MQ=t=>({...kQ(t),...RQ(t)}),yp=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};yp.prototype=Object.create(String.prototype,{constructor:{value:yp,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(yp,String);const Ae=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Ae);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=Ae(t[r]));return e}return t},IQ=t=>(t==null?void 0:t.body)instanceof ReadableStream,_Q=t=>(e,r)=>async n=>{var o;let i=await t.retryStrategy();const s=await t.maxAttempts();if(OQ(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,f=0;const{request:u}=n,d=Ki.isInstance(u);for(d&&(u.headers[QK]=nQ());;)try{d&&(u.headers[YK]=`attempt=${c+1}; max=${s}`);const{response:v,output:g}=await e(n);return i.recordSuccess(a),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=f,{response:v,output:g}}catch(v){const g=NQ(v);if(l=iQ(v),d&&IQ(u))throw(o=r.logger instanceof G9?console:r.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,g)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=f,l}c=a.getRetryCount();const y=a.getRetryDelay();f+=y,await new Promise(w=>setTimeout(w,y))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},OQ=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",NQ=t=>{const e={error:t,errorType:DQ(t)},r=jQ(t.$response);return r&&(e.retryAfterHint=r),e},DQ=t=>V9(t)?"THROTTLING":q9(t)?"TRANSIENT":VK(t)?"SERVER_ERROR":"CLIENT_ERROR",J9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},LQ=t=>({applyToStack:e=>{e.add(_Q(t),J9)}}),jQ=t=>{if(!Ch.isInstance(t))return;const e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)},BQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:J9.name},$Q=t=>({applyToStack:e=>{e.addRelativeTo(LK(),BQ)}});class FQ{constructor(e){this.authSchemes=new Map;for(const[r,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(r,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}class UQ{async sign(e,r,n){return e}}const zQ=t=>e=>X9(e)&&e.expiration.getTime()-Date.now()t.expiration!==void 0,HQ=(t,e,r)=>{if(t===void 0)return;const n=typeof t!="function"?async()=>Promise.resolve(t):t;let i,s,o,a=!1;const l=async c=>{s||(s=n(c));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return e===void 0?async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),i):async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),a?i:r(i)?(e(i)&&await l(c),i):(a=!0,i))},Hu=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},r4="content-length";function WQ(t){return e=>async r=>{const n=r.request;if(Ki.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(r4)===-1)try{const o=t(i);n.headers={...n.headers,[r4]:String(o)}}catch{}}return e({...r,request:n})}}const GQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},KQ=t=>({applyToStack:e=>{e.add(WQ(t.bodyLengthChecker),GQ)}}),n4=t=>{var e,r;return Ch.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},Z9=t=>new Date(Date.now()+t),QQ=(t,e)=>Math.abs(Z9(e).getTime()-t)>=3e5,i4=(t,e)=>{const r=Date.parse(t);return QQ(r,e)?r-Date.now():e},tf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},YQ=async t=>{var l,c,f;const e=tf("context",t.context),r=tf("config",t.config),n=(f=(c=(l=e.endpointV2)==null?void 0:l.properties)==null?void 0:c.authSchemes)==null?void 0:f[0],s=await tf("signer",r.signer)(n),o=t==null?void 0:t.signingRegion,a=t==null?void 0:t.signingName;return{config:r,signer:s,signingRegion:o,signingName:a}};class JQ{async sign(e,r,n){if(!Ki.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:s,signingRegion:o,signingName:a}=await YQ(n);return await s.sign(e,{signingDate:Z9(i.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return r=>{const n=r.ServerTime??n4(r.$response);if(n){const i=tf("config",e.config),s=i.systemClockOffset;i.systemClockOffset=i4(n,i.systemClockOffset),i.systemClockOffset!==s&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const n=n4(e);if(n){const i=tf("config",r.config);i.systemClockOffset=i4(n,i.systemClockOffset)}}}const XQ="X-Amz-Algorithm",ZQ="X-Amz-Credential",ek="X-Amz-Date",eY="X-Amz-SignedHeaders",tY="X-Amz-Expires",tk="X-Amz-Signature",rk="X-Amz-Security-Token",nk="authorization",ik=ek.toLowerCase(),rY="date",nY=[nk,ik,rY],iY=tk.toLowerCase(),pp="x-amz-content-sha256",sY=rk.toLowerCase(),oY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},aY=/^proxy-/,lY=/^sec-/,fv="AWS4-HMAC-SHA256",cY="AWS4-HMAC-SHA256-PAYLOAD",fY="UNSIGNED-PAYLOAD",uY=50,sk="aws4_request",dY=60*60*24*7,Wu={},uv=[],dv=(t,e,r)=>`${t}/${e}/${r}/${sk}`,hY=async(t,e,r,n,i)=>{const s=await s4(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Fo(s)}:${e.sessionToken}`;if(o in Wu)return Wu[o];for(uv.push(o);uv.length>uY;)delete Wu[uv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,sk])a=await s4(t,a,l);return Wu[o]=a},s4=(t,e,r)=>{const n=new t(e);return n.update(ef(r)),n.digest()},o4=({headers:t},e,r)=>{const n={};for(const i of Object.keys(t).sort()){if(t[i]==null)continue;const s=i.toLowerCase();(s in oY||e!=null&&e.has(s)||aY.test(s)||lY.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},vY=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===iY)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Hs(n)}=${Hs(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Hs(n)}=${Hs(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},yY=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",hv=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===pp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||yY(e)){const n=new r;return n.update(ef(e)),Fo(await n.digest())}return fY};class pY{format(e){const r=[];for(const s of Object.keys(e)){const o=Cl(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":const a=Cl(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(ix.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!mY.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(gQ(e.value.replace(/\-/g,"")),1),u}}}var a4;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(a4||(a4={}));const mY=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ix{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)r[n]=i;return e<0&&l4(r),new ix(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&l4(e),parseInt(Fo(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function l4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const gY=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},ok=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?xY(e):void 0}),xY=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),bY=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():ok(t);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=e.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},c4=t=>{t=typeof t.clone=="function"?t.clone():ok(t);for(const e of Object.keys(t.headers))nY.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},wY=t=>EY(t).toISOString().replace(/\.\d{3}Z$/,"Z"),EY=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class f4{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerFormatter=new pY,this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=io(n),this.credentialProvider=io(r)}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=Gu(n);if(i>dY)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=dv(v,u,c??this.service),y=bY(c4(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[rk]=f.sessionToken),y.query[XQ]=fv,y.query[ZQ]=`${f.accessKeyId}/${g}`,y.query[ek]=d,y.query[tY]=i.toString(10);const w=o4(y,s,a);return y.query[eY]=u4(w),y.query[tk]=await this.getSignature(d,g,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await hv(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=Gu(n),f=dv(l,a,o??this.service),u=await hv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=Fo(await d.digest()),g=[cY,c,f,i,v,u].join(` + `+o,typeof s.$responseBodyText<"u"&&s.$response&&(s.$response.body=s.$responseBodyText)}throw s}},TK=(t,e)=>(r,n)=>async i=>{var a;const s=(a=n.endpointV2)!=null&&a.url&&t.urlParser?async()=>t.urlParser(n.endpointV2.url):t.endpoint;if(!s)throw new Error("No valid endpoint provider available.");const o=await e(i.input,{...t,endpoint:s});return r({...i,request:o})},MK={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},Xg={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Zg(t,e,r){return{applyToStack:n=>{n.add(RK(t,r),MK),n.add(TK(t,e),Xg)}}}const z9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Xg.name},ex=(t,e)=>({applyToStack:r=>{r.addRelativeTo(PK({config:t,instructions:e}),z9)}}),IK=t=>{const e=t.tls??!0,{endpoint:r}=t,n=r!=null?async()=>U9(await so(r)()):void 0;return{...t,endpoint:n,tls:e,isCustomEndpoint:!!r,useDualstackEndpoint:so(t.useDualstackEndpoint??!1),useFipsEndpoint:so(t.useFipsEndpoint??!1)}},_K={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:z9.name},OK=(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r})=>({applyToStack:n=>{n.addRelativeTo(yK(t,{httpAuthSchemeParametersProvider:e,identityProviderConfigProvider:r}),_K)}});Xg.name;const NK=t=>e=>{throw e},DK=(t,e)=>{},LK=t=>(e,r)=>async n=>{if(!Ki.isInstance(n.request))return e(n);const s=P0(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:o={}},identity:a,signer:l}=s,c=await e({...n,request:await l.sign(n.request,a,o)}).catch((l.errorHandler||NK)(o));return(l.successHandler||DK)(c.response,o),c};var Cl;(function(t){t.STANDARD="standard",t.ADAPTIVE="adaptive"})(Cl||(Cl={}));const Rh=3,jK=Cl.STANDARD,BK=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],$K=["TimeoutError","RequestTimeout","RequestTimeoutException"],FK=[500,502,503,504],UK=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],zK=t=>{var e;return(e=t.$metadata)==null?void 0:e.clockSkewCorrected},V9=t=>{var e,r;return((e=t.$metadata)==null?void 0:e.httpStatusCode)===429||BK.includes(t.name)||((r=t.$retryable)==null?void 0:r.throttling)==!0},q9=t=>{var e;return zK(t)||$K.includes(t.name)||UK.includes((t==null?void 0:t.code)||"")||FK.includes(((e=t.$metadata)==null?void 0:e.httpStatusCode)||0)},VK=t=>{var e;if(((e=t.$metadata)==null?void 0:e.httpStatusCode)!==void 0){const r=t.$metadata.httpStatusCode;return 500<=r&&r<=599&&!q9(t)}return!1};class qK{constructor(e){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(e==null?void 0:e.beta)??.7,this.minCapacity=(e==null?void 0:e.minCapacity)??1,this.minFillRate=(e==null?void 0:e.minFillRate)??.5,this.scaleConstant=(e==null?void 0:e.scaleConstant)??.4,this.smooth=(e==null?void 0:e.smooth)??.8;const r=this.getCurrentTimeInSeconds();this.lastThrottleTime=r,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(this.enabled){if(this.refillTokenBucket(),e>this.currentCapacity){const r=(e-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-e}}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const r=(e-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=e}updateClientSendingRate(e){let r;if(this.updateMeasuredRate(),V9(e)){const i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());const n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(e){this.refillTokenBucket(),this.fillRate=Math.max(e,this.minFillRate),this.maxCapacity=Math.max(e,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds(),r=Math.floor(e*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){const n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(e){return parseFloat(e.toFixed(8))}}const hp=100,H9=20*1e3,HK=500,JE=500,WK=5,GK=10,KK=1,QK="amz-sdk-invocation-id",YK="amz-sdk-request",JK=()=>{let t=hp;return{computeNextBackoffDelay:n=>Math.floor(Math.min(H9,Math.random()*2**n*t)),setDelayBase:n=>{t=n}}},XE=({retryDelay:t,retryCount:e,retryCost:r})=>({getRetryCount:()=>e,getRetryDelay:()=>Math.min(H9,t),getRetryCost:()=>r});class W9{constructor(e){this.maxAttempts=e,this.mode=Cl.STANDARD,this.capacity=JE,this.retryBackoffStrategy=JK(),this.maxAttemptsProvider=typeof e=="function"?e:async()=>e}async acquireInitialRetryToken(e){return XE({retryDelay:hp,retryCount:0})}async refreshRetryTokenForRetry(e,r){const n=await this.getMaxAttempts();if(this.shouldRetry(e,r,n)){const i=r.errorType;this.retryBackoffStrategy.setDelayBase(i==="THROTTLING"?HK:hp);const s=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount()),o=r.retryAfterHint?Math.max(r.retryAfterHint.getTime()-Date.now()||0,s):s,a=this.getCapacityCost(i);return this.capacity-=a,XE({retryDelay:o,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(JE,this.capacity+(e.getRetryCost()??KK))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${Rh}`),Rh}}shouldRetry(e,r,n){return e.getRetryCount()+1=this.getCapacityCost(r.errorType)&&this.isRetryableError(r.errorType)}getCapacityCost(e){return e==="TRANSIENT"?GK:WK}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class XK{constructor(e,r){this.maxAttemptsProvider=e,this.mode=Cl.ADAPTIVE;const{rateLimiter:n}=r??{};this.rateLimiter=n??new qK,this.standardRetryStrategy=new W9(e)}async acquireInitialRetryToken(e){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,r){return this.rateLimiter.updateClientSendingRate(r),this.standardRetryStrategy.refreshRetryTokenForRetry(e,r)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(e)}}let qu;const ZK=new Uint8Array(16);function eQ(){if(!qu&&(qu=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!qu))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return qu(ZK)}const Sr=[];for(let t=0;t<256;++t)Sr.push((t+256).toString(16).slice(1));function tQ(t,e=0){return Sr[t[e+0]]+Sr[t[e+1]]+Sr[t[e+2]]+Sr[t[e+3]]+"-"+Sr[t[e+4]]+Sr[t[e+5]]+"-"+Sr[t[e+6]]+Sr[t[e+7]]+"-"+Sr[t[e+8]]+Sr[t[e+9]]+"-"+Sr[t[e+10]]+Sr[t[e+11]]+Sr[t[e+12]]+Sr[t[e+13]]+Sr[t[e+14]]+Sr[t[e+15]]}const rQ=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),ZE={randomUUID:rQ};function nQ(t,e,r){if(ZE.randomUUID&&!e&&!t)return ZE.randomUUID();t=t||{};const n=t.random||(t.rng||eQ)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return tQ(n)}const iQ=t=>t instanceof Error?t:t instanceof Object?Object.assign(new Error,t):typeof t=="string"?new Error(t):new Error(`AWS SDK error wrapper for ${t}`),sQ=t=>{const{retryStrategy:e}=t,r=so(t.maxAttempts??Rh);return{...t,maxAttempts:r,retryStrategy:async()=>e||(await so(t.retryMode)()===Cl.ADAPTIVE?new XK(r):new W9(r))}};class G9{trace(){}debug(){}info(){}warn(){}error(){}}const ko=(t,e)=>{const r=[];if(t&&r.push(t),e)for(const n of e)r.push(n);return r},Os=(t,e)=>`${t||"anonymous"}${e&&e.length>0?` (a.k.a. ${e.join(",")})`:""}`,Th=()=>{let t=[],e=[],r=!1;const n=new Set,i=u=>u.sort((d,v)=>e4[v.step]-e4[d.step]||t4[v.priority||"normal"]-t4[d.priority||"normal"]),s=u=>{let d=!1;const v=g=>{const y=ko(g.name,g.aliases);if(y.includes(u)){d=!0;for(const w of y)n.delete(w);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},o=u=>{let d=!1;const v=g=>{if(g.middleware===u){d=!0;for(const y of ko(g.name,g.aliases))n.delete(y);return!1}return!0};return t=t.filter(v),e=e.filter(v),d},a=u=>{var d;return t.forEach(v=>{u.add(v.middleware,{...v})}),e.forEach(v=>{u.addRelativeTo(v.middleware,{...v})}),(d=u.identifyOnResolve)==null||d.call(u,f.identifyOnResolve()),u},l=u=>{const d=[];return u.before.forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d.push(u),u.after.reverse().forEach(v=>{v.before.length===0&&v.after.length===0?d.push(v):d.push(...l(v))}),d},c=(u=!1)=>{const d=[],v=[],g={};return t.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;d.push(x)}),e.forEach(w=>{const x={...w,before:[],after:[]};for(const b of ko(x.name,x.aliases))g[b]=x;v.push(x)}),v.forEach(w=>{if(w.toMiddleware){const x=g[w.toMiddleware];if(x===void 0){if(u)return;throw new Error(`${w.toMiddleware} is not found when adding ${Os(w.name,w.aliases)} middleware ${w.relation} ${w.toMiddleware}`)}w.relation==="after"&&x.after.push(w),w.relation==="before"&&x.before.push(w)}}),i(d).map(l).reduce((w,x)=>(w.push(...x),w),[])},f={add:(u,d={})=>{const{name:v,override:g,aliases:y}=d,w={step:"initialize",priority:"normal",middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Os(v,y)}'`);for(const b of x){const A=t.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(A===-1)continue;const P=t[A];if(P.step!==w.step||w.priority!==P.priority)throw new Error(`"${Os(P.name,P.aliases)}" middleware with ${P.priority} priority in ${P.step} step cannot be overridden by "${Os(v,y)}" middleware with ${w.priority} priority in ${w.step} step.`);t.splice(A,1)}}for(const b of x)n.add(b)}t.push(w)},addRelativeTo:(u,d)=>{const{name:v,override:g,aliases:y}=d,w={middleware:u,...d},x=ko(v,y);if(x.length>0){if(x.some(b=>n.has(b))){if(!g)throw new Error(`Duplicate middleware name '${Os(v,y)}'`);for(const b of x){const A=e.findIndex(_=>{var D;return _.name===b||((D=_.aliases)==null?void 0:D.some(M=>M===b))});if(A===-1)continue;const P=e[A];if(P.toMiddleware!==w.toMiddleware||P.relation!==w.relation)throw new Error(`"${Os(P.name,P.aliases)}" middleware ${P.relation} "${P.toMiddleware}" middleware cannot be overridden by "${Os(v,y)}" middleware ${w.relation} "${w.toMiddleware}" middleware.`);e.splice(A,1)}}for(const b of x)n.add(b)}e.push(w)},clone:()=>a(Th()),use:u=>{u.applyToStack(f)},remove:u=>typeof u=="string"?s(u):o(u),removeByTag:u=>{let d=!1;const v=g=>{const{tags:y,name:w,aliases:x}=g;if(y&&y.includes(u)){const b=ko(w,x);for(const A of b)n.delete(A);return d=!0,!1}return!0};return t=t.filter(v),e=e.filter(v),d},concat:u=>{var v;const d=a(Th());return d.use(u),d.identifyOnResolve(r||d.identifyOnResolve()||(((v=u.identifyOnResolve)==null?void 0:v.call(u))??!1)),d},applyToStack:a,identify:()=>c(!0).map(u=>{const d=u.step??u.relation+" "+u.toMiddleware;return Os(u.name,u.aliases)+" - "+d}),identifyOnResolve(u){return typeof u=="boolean"&&(r=u),r},resolve:(u,d)=>{for(const v of c().map(g=>g.middleware).reverse())u=v(u,d);return r&&console.log(f.identify()),u}};return f},e4={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},t4={high:3,normal:2,low:1};class oQ{constructor(e){this.middlewareStack=Th(),this.config=e}send(e,r,n){const i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=e.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(e).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(e).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}}const mo={},ql=new Array(64);for(let t=0,e="A".charCodeAt(0),r="Z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e);mo[n]=t,ql[t]=n}for(let t=0,e="a".charCodeAt(0),r="z".charCodeAt(0);t+e<=r;t++){const n=String.fromCharCode(t+e),i=t+26;mo[n]=i,ql[i]=n}for(let t=0;t<10;t++){mo[t.toString(10)]=t+52;const e=t.toString(10),r=t+52;mo[e]=r,ql[r]=e}mo["+"]=62;ql[62]="+";mo["/"]=63;ql[63]="/";const al=6,Zc=8,aQ=63,tx=t=>{let e=t.length/4*3;t.slice(-2)==="=="?e-=2:t.slice(-1)==="="&&e--;const r=new ArrayBuffer(e),n=new DataView(r);for(let i=0;i>=al;const a=i/4*3;s>>=o%Zc;const l=Math.floor(o/Zc);for(let c=0;c>f)}}return new Uint8Array(r)},kl=t=>new TextEncoder().encode(t),ef=t=>typeof t=="string"?kl(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),K9=t=>{if(typeof t=="string")return t;if(typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(t)};function Q9(t){let e;typeof t=="string"?e=kl(t):e=t;const r=typeof e=="object"&&typeof e.length=="number",n=typeof e=="object"&&typeof e.byteOffset=="number"&&typeof e.byteLength=="number";if(!r&&!n)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let i="";for(let s=0;s>f]}i+="==".slice(0,4-l)}return i}function lQ(t,e="utf-8"){return e==="base64"?Q9(t):K9(t)}function cQ(t,e){return e==="base64"?Ko.mutate(tx(t)):Ko.mutate(kl(t))}class Ko extends Uint8Array{static fromString(e,r="utf-8"){switch(typeof e){case"string":return cQ(e,r);default:throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}}static mutate(e){return Object.setPrototypeOf(e,Ko.prototype),e}transformToString(e="utf-8"){return lQ(this,e)}}const Ws=t=>encodeURIComponent(t).replace(/[!'()*]/g,fQ),fQ=t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`;function uQ(t){const e=[];for(let r of Object.keys(t).sort()){const n=t[r];if(r=Ws(r),Array.isArray(n))for(let i=0,s=n.length;i{t&&setTimeout(()=>{const n=new Error(`Request did not complete within ${t} ms`);n.name="TimeoutError",r(n)},t)})}const hQ={supported:typeof Request<"u"&&"keepalive"in new Request("https://[::1]")};class rx{static create(e){return typeof(e==null?void 0:e.handle)=="function"?e:new rx(e)}constructor(e){typeof e=="function"?this.configProvider=e().then(r=>r||{}):(this.config=e??{},this.configProvider=Promise.resolve(this.config))}destroy(){}async handle(e,{abortSignal:r}={}){this.config||(this.config=await this.configProvider);const n=this.config.requestTimeout,i=this.config.keepAlive===!0;if(r!=null&&r.aborted){const y=new Error("Request aborted");return y.name="AbortError",Promise.reject(y)}let s=e.path;const o=uQ(e.query||{});o&&(s+=`?${o}`),e.fragment&&(s+=`#${e.fragment}`);let a="";if(e.username!=null||e.password!=null){const y=e.username??"",w=e.password??"";a=`${y}:${w}@`}const{port:l,method:c}=e,f=`${e.protocol}//${a}${e.hostname}${l?`:${l}`:""}${s}`,u=c==="GET"||c==="HEAD"?void 0:e.body,d={body:u,headers:new Headers(e.headers),method:c};u&&(d.duplex="half"),typeof AbortController<"u"&&(d.signal=r),hQ.supported&&(d.keepalive=i);const v=new Request(f,d),g=[fetch(v).then(y=>{const w=y.headers,x={};for(const A of w.entries())x[A[0]]=A[1];return y.body!=null?{response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:y.body})}:y.blob().then(A=>({response:new Ch({headers:x,reason:y.statusText,statusCode:y.status,body:A})}))}),dQ(n)];return r&&g.push(new Promise((y,w)=>{r.onabort=()=>{const x=new Error("Request aborted");x.name="AbortError",w(x)}})),Promise.race(g)}updateHttpClientConfig(e,r){this.config=void 0,this.configProvider=this.configProvider.then(n=>(n[e]=r,n))}httpHandlerConfigs(){return this.config??{}}}const vQ=t=>typeof Blob=="function"&&t instanceof Blob?yQ(t):pQ(t);async function yQ(t){const e=await mQ(t),r=tx(e);return new Uint8Array(r)}async function pQ(t){const e=[],r=t.getReader();let n=!1,i=0;for(;!n;){const{done:a,value:l}=await r.read();l&&(e.push(l),i+=l.length),n=a}const s=new Uint8Array(i);let o=0;for(const a of e)s.set(a,o),o+=a.length;return s}function mQ(t){return new Promise((e,r)=>{const n=new FileReader;n.onloadend=()=>{if(n.readyState!==2)return r(new Error("Reader aborted too early"));const i=n.result??"",s=i.indexOf(","),o=s>-1?s+1:i.length;e(i.substring(o))},n.onabort=()=>r(new Error("Read aborted")),n.onerror=()=>r(n.error),n.readAsDataURL(t)})}const Y9={},vp={};for(let t=0;t<256;t++){let e=t.toString(16).toLowerCase();e.length===1&&(e=`0${e}`),Y9[t]=e,vp[e]=t}function gQ(t){if(t.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const e=new Uint8Array(t.length/2);for(let r=0;r{if(t instanceof Uint8Array)return Ko.mutate(t);if(!t)return Ko.mutate(new Uint8Array);const r=e.streamCollector(t);return Ko.mutate(await r)};class R0{constructor(){this.middlewareStack=Th()}static classBuilder(){return new bQ}resolveMiddlewareWithContext(e,r,n,{middlewareFn:i,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,smithyContext:c,additionalContext:f,CommandCtor:u}){for(const w of i.bind(this)(u,e,r,n))this.middlewareStack.use(w);const d=e.concat(this.middlewareStack),{logger:v}=r,g={logger:v,clientName:s,commandName:o,inputFilterSensitiveLog:a,outputFilterSensitiveLog:l,[dp]:{...c},...f},{requestHandler:y}=r;return d.resolve(w=>y.handle(w.request,n||{}),g)}}class bQ{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=e=>e,this._outputFilterSensitiveLog=e=>e,this._serializer=null,this._deserializer=null}init(e){this._init=e}ep(e){return this._ep=e,this}m(e){return this._middlewareFn=e,this}s(e,r,n={}){return this._smithyContext={service:e,operation:r,...n},this}c(e={}){return this._additionalContext=e,this}n(e,r){return this._clientName=e,this._commandName=r,this}f(e=n=>n,r=n=>n){return this._inputFilterSensitiveLog=e,this._outputFilterSensitiveLog=r,this}ser(e){return this._serializer=e,this}de(e){return this._deserializer=e,this}build(){const e=this;let r;return r=class extends R0{static getEndpointParameterInstructions(){return e._ep}constructor(...[n]){super(),this.serialize=e._serializer,this.deserialize=e._deserializer,this.input=n??{},e._init(this)}resolveMiddleware(n,i,s){return this.resolveMiddlewareWithContext(n,i,s,{CommandCtor:r,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog,outputFilterSensitiveLog:e._outputFilterSensitiveLog,smithyContext:e._smithyContext,additionalContext:e._additionalContext})}}}}const wr="***SensitiveInformation***";class nx extends Error{constructor(e){super(e.message),Object.setPrototypeOf(this,nx.prototype),this.name=e.name,this.$fault=e.$fault,this.$metadata=e.$metadata}}const Ne=(t,e={})=>{Object.entries(e).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(t[n]==null||t[n]==="")&&(t[n]=i)});const r=t.message||t.Message||"UnknownError";return t.message=r,delete t.Message,t},wQ=({output:t,parsedBody:e,exceptionCtor:r,errorCode:n})=>{const i=AQ(t),s=i.httpStatusCode?i.httpStatusCode+"":void 0,o=new r({name:(e==null?void 0:e.code)||(e==null?void 0:e.Code)||n||s||"UnknownError",$fault:"client",$metadata:i});throw Ne(o,e)},EQ=t=>({output:e,parsedBody:r,errorCode:n})=>{wQ({output:e,parsedBody:r,exceptionCtor:t,errorCode:n})},AQ=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),SQ=t=>{switch(t){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},CQ=t=>{const e=[];for(const r in Sh){const n=Sh[r];t[n]!==void 0&&e.push({algorithmId:()=>n,checksumConstructor:()=>t[n]})}return{_checksumAlgorithms:e,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},kQ=t=>{const e={};return t.checksumAlgorithms().forEach(r=>{e[r.algorithmId()]=r.checksumConstructor()}),e},PQ=t=>{let e=t.retryStrategy;return{setRetryStrategy(r){e=r},retryStrategy(){return e}}},RQ=t=>{const e={};return e.retryStrategy=t.retryStrategy(),e},TQ=t=>({...CQ(t),...PQ(t)}),MQ=t=>({...kQ(t),...RQ(t)}),yp=function(){const t=Object.getPrototypeOf(this).constructor,e=Function.bind.apply(String,[null,...arguments]),r=new e;return Object.setPrototypeOf(r,t.prototype),r};yp.prototype=Object.create(String.prototype,{constructor:{value:yp,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(yp,String);const Ae=t=>{if(t==null)return{};if(Array.isArray(t))return t.filter(e=>e!=null).map(Ae);if(typeof t=="object"){const e={};for(const r of Object.keys(t))t[r]!=null&&(e[r]=Ae(t[r]));return e}return t},IQ=t=>(t==null?void 0:t.body)instanceof ReadableStream,_Q=t=>(e,r)=>async n=>{var o;let i=await t.retryStrategy();const s=await t.maxAttempts();if(OQ(i)){i=i;let a=await i.acquireInitialRetryToken(r.partition_id),l=new Error,c=0,f=0;const{request:u}=n,d=Ki.isInstance(u);for(d&&(u.headers[QK]=nQ());;)try{d&&(u.headers[YK]=`attempt=${c+1}; max=${s}`);const{response:v,output:g}=await e(n);return i.recordSuccess(a),g.$metadata.attempts=c+1,g.$metadata.totalRetryDelay=f,{response:v,output:g}}catch(v){const g=NQ(v);if(l=iQ(v),d&&IQ(u))throw(o=r.logger instanceof G9?console:r.logger)==null||o.warn("An error was encountered in a non-retryable streaming request."),l;try{a=await i.refreshRetryTokenForRetry(a,g)}catch{throw l.$metadata||(l.$metadata={}),l.$metadata.attempts=c+1,l.$metadata.totalRetryDelay=f,l}c=a.getRetryCount();const y=a.getRetryDelay();f+=y,await new Promise(w=>setTimeout(w,y))}}else return i=i,i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(e,n)},OQ=t=>typeof t.acquireInitialRetryToken<"u"&&typeof t.refreshRetryTokenForRetry<"u"&&typeof t.recordSuccess<"u",NQ=t=>{const e={error:t,errorType:DQ(t)},r=jQ(t.$response);return r&&(e.retryAfterHint=r),e},DQ=t=>V9(t)?"THROTTLING":q9(t)?"TRANSIENT":VK(t)?"SERVER_ERROR":"CLIENT_ERROR",J9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},LQ=t=>({applyToStack:e=>{e.add(_Q(t),J9)}}),jQ=t=>{if(!Ch.isInstance(t))return;const e=Object.keys(t.headers).find(s=>s.toLowerCase()==="retry-after");if(!e)return;const r=t.headers[e],n=Number(r);return Number.isNaN(n)?new Date(r):new Date(n*1e3)},BQ={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:J9.name},$Q=t=>({applyToStack:e=>{e.addRelativeTo(LK(),BQ)}});class FQ{constructor(e){this.authSchemes=new Map;for(const[r,n]of Object.entries(e))n!==void 0&&this.authSchemes.set(r,n)}getIdentityProvider(e){return this.authSchemes.get(e)}}class UQ{async sign(e,r,n){return e}}const zQ=t=>e=>X9(e)&&e.expiration.getTime()-Date.now()t.expiration!==void 0,HQ=(t,e,r)=>{if(t===void 0)return;const n=typeof t!="function"?async()=>Promise.resolve(t):t;let i,s,o,a=!1;const l=async c=>{s||(s=n(c));try{i=await s,o=!0,a=!1}finally{s=void 0}return i};return e===void 0?async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),i):async c=>((!o||c!=null&&c.forceRefresh)&&(i=await l(c)),a?i:r(i)?(e(i)&&await l(c),i):(a=!0,i))},Hu=t=>{if(typeof t=="function")return t;const e=Promise.resolve(t);return()=>e},r4="content-length";function WQ(t){return e=>async r=>{const n=r.request;if(Ki.isInstance(n)){const{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(r4)===-1)try{const o=t(i);n.headers={...n.headers,[r4]:String(o)}}catch{}}return e({...r,request:n})}}const GQ={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},KQ=t=>({applyToStack:e=>{e.add(WQ(t.bodyLengthChecker),GQ)}}),n4=t=>{var e,r;return Ch.isInstance(t)?((e=t.headers)==null?void 0:e.date)??((r=t.headers)==null?void 0:r.Date):void 0},Z9=t=>new Date(Date.now()+t),QQ=(t,e)=>Math.abs(Z9(e).getTime()-t)>=3e5,i4=(t,e)=>{const r=Date.parse(t);return QQ(r,e)?r-Date.now():e},tf=(t,e)=>{if(!e)throw new Error(`Property \`${t}\` is not resolved for AWS SDK SigV4Auth`);return e},YQ=async t=>{var l,c,f;const e=tf("context",t.context),r=tf("config",t.config),n=(f=(c=(l=e.endpointV2)==null?void 0:l.properties)==null?void 0:c.authSchemes)==null?void 0:f[0],s=await tf("signer",r.signer)(n),o=t==null?void 0:t.signingRegion,a=t==null?void 0:t.signingName;return{config:r,signer:s,signingRegion:o,signingName:a}};class JQ{async sign(e,r,n){if(!Ki.isInstance(e))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:i,signer:s,signingRegion:o,signingName:a}=await YQ(n);return await s.sign(e,{signingDate:Z9(i.systemClockOffset),signingRegion:o,signingService:a})}errorHandler(e){return r=>{const n=r.ServerTime??n4(r.$response);if(n){const i=tf("config",e.config),s=i.systemClockOffset;i.systemClockOffset=i4(n,i.systemClockOffset),i.systemClockOffset!==s&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(e,r){const n=n4(e);if(n){const i=tf("config",r.config);i.systemClockOffset=i4(n,i.systemClockOffset)}}}const XQ="X-Amz-Algorithm",ZQ="X-Amz-Credential",ek="X-Amz-Date",eY="X-Amz-SignedHeaders",tY="X-Amz-Expires",tk="X-Amz-Signature",rk="X-Amz-Security-Token",nk="authorization",ik=ek.toLowerCase(),rY="date",nY=[nk,ik,rY],iY=tk.toLowerCase(),pp="x-amz-content-sha256",sY=rk.toLowerCase(),oY={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},aY=/^proxy-/,lY=/^sec-/,fv="AWS4-HMAC-SHA256",cY="AWS4-HMAC-SHA256-PAYLOAD",fY="UNSIGNED-PAYLOAD",uY=50,sk="aws4_request",dY=60*60*24*7,Wu={},uv=[],dv=(t,e,r)=>`${t}/${e}/${r}/${sk}`,hY=async(t,e,r,n,i)=>{const s=await s4(t,e.secretAccessKey,e.accessKeyId),o=`${r}:${n}:${i}:${Fo(s)}:${e.sessionToken}`;if(o in Wu)return Wu[o];for(uv.push(o);uv.length>uY;)delete Wu[uv.shift()];let a=`AWS4${e.secretAccessKey}`;for(const l of[r,n,i,sk])a=await s4(t,a,l);return Wu[o]=a},s4=(t,e,r)=>{const n=new t(e);return n.update(ef(r)),n.digest()},o4=({headers:t},e,r)=>{const n={};for(const i of Object.keys(t).sort()){if(t[i]==null)continue;const s=i.toLowerCase();(s in oY||e!=null&&e.has(s)||aY.test(s)||lY.test(s))&&(!r||r&&!r.has(s))||(n[s]=t[i].trim().replace(/\s+/g," "))}return n},vY=({query:t={}})=>{const e=[],r={};for(const n of Object.keys(t).sort()){if(n.toLowerCase()===iY)continue;e.push(n);const i=t[n];typeof i=="string"?r[n]=`${Ws(n)}=${Ws(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).reduce((s,o)=>s.concat([`${Ws(n)}=${Ws(o)}`]),[]).sort().join("&"))}return e.map(n=>r[n]).filter(n=>n).join("&")},yY=t=>typeof ArrayBuffer=="function"&&t instanceof ArrayBuffer||Object.prototype.toString.call(t)==="[object ArrayBuffer]",hv=async({headers:t,body:e},r)=>{for(const n of Object.keys(t))if(n.toLowerCase()===pp)return t[n];if(e==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof e=="string"||ArrayBuffer.isView(e)||yY(e)){const n=new r;return n.update(ef(e)),Fo(await n.digest())}return fY};class pY{format(e){const r=[];for(const s of Object.keys(e)){const o=kl(s);r.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[s]))}const n=new Uint8Array(r.reduce((s,o)=>s+o.byteLength,0));let i=0;for(const s of r)n.set(s,i),i+=s.byteLength;return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,e.value,!1),new Uint8Array(r.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":const i=new Uint8Array(9);return i[0]=5,i.set(e.value.bytes,1),i;case"binary":const s=new DataView(new ArrayBuffer(3+e.value.byteLength));s.setUint8(0,6),s.setUint16(1,e.value.byteLength,!1);const o=new Uint8Array(s.buffer);return o.set(e.value,3),o;case"string":const a=kl(e.value),l=new DataView(new ArrayBuffer(3+a.byteLength));l.setUint8(0,7),l.setUint16(1,a.byteLength,!1);const c=new Uint8Array(l.buffer);return c.set(a,3),c;case"timestamp":const f=new Uint8Array(9);return f[0]=8,f.set(ix.fromNumber(e.value.valueOf()).bytes,1),f;case"uuid":if(!mY.test(e.value))throw new Error(`Invalid UUID received: ${e.value}`);const u=new Uint8Array(17);return u[0]=9,u.set(gQ(e.value.replace(/\-/g,"")),1),u}}}var a4;(function(t){t[t.boolTrue=0]="boolTrue",t[t.boolFalse=1]="boolFalse",t[t.byte=2]="byte",t[t.short=3]="short",t[t.integer=4]="integer",t[t.long=5]="long",t[t.byteArray=6]="byteArray",t[t.string=7]="string",t[t.timestamp=8]="timestamp",t[t.uuid=9]="uuid"})(a4||(a4={}));const mY=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class ix{constructor(e){if(this.bytes=e,e.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(e){if(e>9223372036854776e3||e<-9223372036854776e3)throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`);const r=new Uint8Array(8);for(let n=7,i=Math.abs(Math.round(e));n>-1&&i>0;n--,i/=256)r[n]=i;return e<0&&l4(r),new ix(r)}valueOf(){const e=this.bytes.slice(0),r=e[0]&128;return r&&l4(e),parseInt(Fo(e),16)*(r?-1:1)}toString(){return String(this.valueOf())}}function l4(t){for(let e=0;e<8;e++)t[e]^=255;for(let e=7;e>-1&&(t[e]++,t[e]===0);e--);}const gY=(t,e)=>{t=t.toLowerCase();for(const r of Object.keys(e))if(t===r.toLowerCase())return!0;return!1},ok=({headers:t,query:e,...r})=>({...r,headers:{...t},query:e?xY(e):void 0}),xY=t=>Object.keys(t).reduce((e,r)=>{const n=t[r];return{...e,[r]:Array.isArray(n)?[...n]:n}},{}),bY=(t,e={})=>{var i;const{headers:r,query:n={}}=typeof t.clone=="function"?t.clone():ok(t);for(const s of Object.keys(r)){const o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!((i=e.unhoistableHeaders)!=null&&i.has(o))&&(n[s]=r[s],delete r[s])}return{...t,headers:r,query:n}},c4=t=>{t=typeof t.clone=="function"?t.clone():ok(t);for(const e of Object.keys(t.headers))nY.indexOf(e.toLowerCase())>-1&&delete t.headers[e];return t},wY=t=>EY(t).toISOString().replace(/\.\d{3}Z$/,"Z"),EY=t=>typeof t=="number"?new Date(t*1e3):typeof t=="string"?Number(t)?new Date(Number(t)*1e3):new Date(t):t;class f4{constructor({applyChecksum:e,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.headerFormatter=new pY,this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof e=="boolean"?e:!0,this.regionProvider=so(n),this.credentialProvider=so(r)}async presign(e,r={}){const{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:l,signingService:c}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);const u=l??await this.regionProvider(),{longDate:d,shortDate:v}=Gu(n);if(i>dY)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=dv(v,u,c??this.service),y=bY(c4(e),{unhoistableHeaders:o});f.sessionToken&&(y.query[rk]=f.sessionToken),y.query[XQ]=fv,y.query[ZQ]=`${f.accessKeyId}/${g}`,y.query[ek]=d,y.query[tY]=i.toString(10);const w=o4(y,s,a);return y.query[eY]=u4(w),y.query[tk]=await this.getSignature(d,g,this.getSigningKey(f,u,v,c),this.createCanonicalRequest(y,w,await hv(e,this.sha256))),y}async sign(e,r){return typeof e=="string"?this.signString(e,r):e.headers&&e.payload?this.signEvent(e,r):e.message?this.signMessage(e,r):this.signRequest(e,r)}async signEvent({headers:e,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){const a=s??await this.regionProvider(),{shortDate:l,longDate:c}=Gu(n),f=dv(l,a,o??this.service),u=await hv({headers:{},body:r},this.sha256),d=new this.sha256;d.update(e);const v=Fo(await d.digest()),g=[cY,c,f,i,v,u].join(` `);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signMessage(e,{signingDate:r=new Date,signingRegion:n,signingService:i}){return this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:r,signingRegion:n,signingService:i,priorSignature:e.priorSignature}).then(o=>({message:e.message,signature:o}))}async signString(e,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){const s=await this.credentialProvider();this.validateResolvedCredentials(s);const o=n??await this.regionProvider(),{shortDate:a}=Gu(r),l=new this.sha256(await this.getSigningKey(s,o,a,i));return l.update(ef(e)),Fo(await l.digest())}async signRequest(e,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){const a=await this.credentialProvider();this.validateResolvedCredentials(a);const l=s??await this.regionProvider(),c=c4(e),{longDate:f,shortDate:u}=Gu(r),d=dv(u,l,o??this.service);c.headers[ik]=f,a.sessionToken&&(c.headers[sY]=a.sessionToken);const v=await hv(c,this.sha256);!gY(pp,c.headers)&&this.applyChecksum&&(c.headers[pp]=v);const g=o4(c,i,n),y=await this.getSignature(f,d,this.getSigningKey(a,l,u,o),this.createCanonicalRequest(c,g,v));return c.headers[nk]=`${fv} Credential=${a.accessKeyId}/${d}, SignedHeaders=${u4(g)}, Signature=${y}`,c}createCanonicalRequest(e,r,n){const i=Object.keys(r).sort();return`${e.method} ${this.getCanonicalPath(e)} ${vY(e)} @@ -181,7 +181,7 @@ ${i.join(";")} ${n}`}async createStringToSign(e,r,n){const i=new this.sha256;i.update(ef(n));const s=await i.digest();return`${fv} ${e} ${r} -${Fo(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const s of e.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${e!=null&&e.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(e!=null&&e.endsWith("/"))?"/":""}`;return Hs(n).replace(/%2F/g,"/")}return e}async getSignature(e,r,n,i){const s=await this.createStringToSign(e,r,i),o=new this.sha256(await n);return o.update(ef(s)),Fo(await o.digest())}getSigningKey(e,r,n,i){return hY(this.sha256,e,n,r,i||this.service)}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const Gu=t=>{const e=wY(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},u4=t=>Object.keys(t).sort().join(";"),AY=t=>{let e;t.credentials&&(e=HQ(t.credentials,qQ,X9)),e||(t.credentialDefaultProvider?e=Hu(t.credentialDefaultProvider(Object.assign({},t,{parentClientConfig:t}))):e=async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=Hu(t.signer):t.regionInfoProvider?s=()=>Hu(t.region)().then(async o=>[await t.regionInfoProvider(o,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;t.signingRegion=t.signingRegion||l||a,t.signingName=t.signingName||c||t.serviceId;const f={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},u=t.signerConstructor||f4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await Hu(t.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;t.signingRegion=t.signingRegion||a,t.signingName=t.signingName||l||t.serviceId;const c={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},f=t.signerConstructor||f4;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},SY=(t,e)=>xQ(t,e).then(r=>e.utf8Encoder(r)),T0=(t,e)=>SY(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw(n==null?void 0:n.name)==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),CY=async(t,e)=>{const r=await T0(t,e);return r.message=r.message??r.Message,r},kY=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)},PY=async(t,e,r)=>({operation:P0(e).operation,region:await io(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function RY(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-idp",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function At(t){return{schemeId:"smithy.api#noAuth"}}const TY=t=>{const e=[];switch(t.operation){case"AssociateSoftwareToken":{e.push(At());break}case"ChangePassword":{e.push(At());break}case"ConfirmDevice":{e.push(At());break}case"ConfirmForgotPassword":{e.push(At());break}case"ConfirmSignUp":{e.push(At());break}case"DeleteUser":{e.push(At());break}case"DeleteUserAttributes":{e.push(At());break}case"ForgetDevice":{e.push(At());break}case"ForgotPassword":{e.push(At());break}case"GetDevice":{e.push(At());break}case"GetUser":{e.push(At());break}case"GetUserAttributeVerificationCode":{e.push(At());break}case"GlobalSignOut":{e.push(At());break}case"InitiateAuth":{e.push(At());break}case"ListDevices":{e.push(At());break}case"ResendConfirmationCode":{e.push(At());break}case"RespondToAuthChallenge":{e.push(At());break}case"RevokeToken":{e.push(At());break}case"SetUserMFAPreference":{e.push(At());break}case"SetUserSettings":{e.push(At());break}case"SignUp":{e.push(At());break}case"UpdateAuthEventFeedback":{e.push(At());break}case"UpdateDeviceStatus":{e.push(At());break}case"UpdateUserAttributes":{e.push(At());break}case"VerifySoftwareToken":{e.push(At());break}case"VerifyUserAttribute":{e.push(At());break}default:e.push(RY(t))}return e},MY=t=>({...AY(t)}),IY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),sx={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_Y="@aws-sdk/client-cognito-identity-provider",OY="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",NY="3.592.0",DY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity-provider","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},LY="./dist-cjs/index.js",jY="./dist-types/index.d.ts",BY="./dist-es/index.js",$Y=!1,FY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sso-oidc":"3.592.0","@aws-sdk/client-sts":"3.592.0","@aws-sdk/core":"3.592.0","@aws-sdk/credential-provider-node":"3.592.0","@aws-sdk/middleware-host-header":"3.577.0","@aws-sdk/middleware-logger":"3.577.0","@aws-sdk/middleware-recursion-detection":"3.577.0","@aws-sdk/middleware-user-agent":"3.587.0","@aws-sdk/region-config-resolver":"3.587.0","@aws-sdk/types":"3.577.0","@aws-sdk/util-endpoints":"3.587.0","@aws-sdk/util-user-agent-browser":"3.577.0","@aws-sdk/util-user-agent-node":"3.587.0","@smithy/config-resolver":"^3.0.1","@smithy/core":"^2.2.0","@smithy/fetch-http-handler":"^3.0.1","@smithy/hash-node":"^3.0.0","@smithy/invalid-dependency":"^3.0.0","@smithy/middleware-content-length":"^3.0.0","@smithy/middleware-endpoint":"^3.0.1","@smithy/middleware-retry":"^3.0.3","@smithy/middleware-serde":"^3.0.0","@smithy/middleware-stack":"^3.0.0","@smithy/node-config-provider":"^3.1.0","@smithy/node-http-handler":"^3.0.0","@smithy/protocol-http":"^4.0.0","@smithy/smithy-client":"^3.1.1","@smithy/types":"^3.0.0","@smithy/url-parser":"^3.0.0","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.3","@smithy/util-defaults-mode-node":"^3.0.3","@smithy/util-endpoints":"^2.0.1","@smithy/util-middleware":"^3.0.0","@smithy/util-retry":"^3.0.0","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},UY={"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},zY={node:">=16.0.0"},VY={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},qY=["dist-*/**"],HY={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},WY="Apache-2.0",GY={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},KY="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",QY={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},YY={name:_Y,description:OY,version:NY,scripts:DY,main:LY,types:jY,module:BY,sideEffects:$Y,dependencies:FY,devDependencies:UY,engines:zY,typesVersions:VY,files:qY,author:HY,license:WY,browser:GY,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:KY,repository:QY};var ak={};/*! ***************************************************************************** +${Fo(s)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const r=[];for(const s of e.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));const n=`${e!=null&&e.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(e!=null&&e.endsWith("/"))?"/":""}`;return Ws(n).replace(/%2F/g,"/")}return e}async getSignature(e,r,n,i){const s=await this.createStringToSign(e,r,i),o=new this.sha256(await n);return o.update(ef(s)),Fo(await o.digest())}getSigningKey(e,r,n,i){return hY(this.sha256,e,n,r,i||this.service)}validateResolvedCredentials(e){if(typeof e!="object"||typeof e.accessKeyId!="string"||typeof e.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}}const Gu=t=>{const e=wY(t).replace(/[\-:]/g,"");return{longDate:e,shortDate:e.slice(0,8)}},u4=t=>Object.keys(t).sort().join(";"),AY=t=>{let e;t.credentials&&(e=HQ(t.credentials,qQ,X9)),e||(t.credentialDefaultProvider?e=Hu(t.credentialDefaultProvider(Object.assign({},t,{parentClientConfig:t}))):e=async()=>{throw new Error("`credentials` is missing")});const{signingEscapePath:r=!0,systemClockOffset:n=t.systemClockOffset||0,sha256:i}=t;let s;return t.signer?s=Hu(t.signer):t.regionInfoProvider?s=()=>Hu(t.region)().then(async o=>[await t.regionInfoProvider(o,{useFipsEndpoint:await t.useFipsEndpoint(),useDualstackEndpoint:await t.useDualstackEndpoint()})||{},o]).then(([o,a])=>{const{signingRegion:l,signingService:c}=o;t.signingRegion=t.signingRegion||l||a,t.signingName=t.signingName||c||t.serviceId;const f={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},u=t.signerConstructor||f4;return new u(f)}):s=async o=>{o=Object.assign({},{name:"sigv4",signingName:t.signingName||t.defaultSigningName,signingRegion:await Hu(t.region)(),properties:{}},o);const a=o.signingRegion,l=o.signingName;t.signingRegion=t.signingRegion||a,t.signingName=t.signingName||l||t.serviceId;const c={...t,credentials:e,region:t.signingRegion,service:t.signingName,sha256:i,uriEscapePath:r},f=t.signerConstructor||f4;return new f(c)},{...t,systemClockOffset:n,signingEscapePath:r,credentials:e,signer:s}},SY=(t,e)=>xQ(t,e).then(r=>e.utf8Encoder(r)),T0=(t,e)=>SY(t,e).then(r=>{if(r.length)try{return JSON.parse(r)}catch(n){throw(n==null?void 0:n.name)==="SyntaxError"&&Object.defineProperty(n,"$responseBodyText",{value:r}),n}return{}}),CY=async(t,e)=>{const r=await T0(t,e);return r.message=r.message??r.Message,r},kY=(t,e)=>{const r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return typeof o=="number"&&(o=o.toString()),o.indexOf(",")>=0&&(o=o.split(",")[0]),o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(t.headers,"x-amzn-errortype");if(i!==void 0)return n(t.headers[i]);if(e.code!==void 0)return n(e.code);if(e.__type!==void 0)return n(e.__type)},PY=async(t,e,r)=>({operation:P0(e).operation,region:await so(t.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});function RY(t){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"cognito-idp",region:t.region},propertiesExtractor:(e,r)=>({signingProperties:{config:e,context:r}})}}function At(t){return{schemeId:"smithy.api#noAuth"}}const TY=t=>{const e=[];switch(t.operation){case"AssociateSoftwareToken":{e.push(At());break}case"ChangePassword":{e.push(At());break}case"ConfirmDevice":{e.push(At());break}case"ConfirmForgotPassword":{e.push(At());break}case"ConfirmSignUp":{e.push(At());break}case"DeleteUser":{e.push(At());break}case"DeleteUserAttributes":{e.push(At());break}case"ForgetDevice":{e.push(At());break}case"ForgotPassword":{e.push(At());break}case"GetDevice":{e.push(At());break}case"GetUser":{e.push(At());break}case"GetUserAttributeVerificationCode":{e.push(At());break}case"GlobalSignOut":{e.push(At());break}case"InitiateAuth":{e.push(At());break}case"ListDevices":{e.push(At());break}case"ResendConfirmationCode":{e.push(At());break}case"RespondToAuthChallenge":{e.push(At());break}case"RevokeToken":{e.push(At());break}case"SetUserMFAPreference":{e.push(At());break}case"SetUserSettings":{e.push(At());break}case"SignUp":{e.push(At());break}case"UpdateAuthEventFeedback":{e.push(At());break}case"UpdateDeviceStatus":{e.push(At());break}case"UpdateUserAttributes":{e.push(At());break}case"VerifySoftwareToken":{e.push(At());break}case"VerifyUserAttribute":{e.push(At());break}default:e.push(RY(t))}return e},MY=t=>({...AY(t)}),IY=t=>({...t,useDualstackEndpoint:t.useDualstackEndpoint??!1,useFipsEndpoint:t.useFipsEndpoint??!1,defaultSigningName:"cognito-idp"}),sx={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},_Y="@aws-sdk/client-cognito-identity-provider",OY="AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native",NY="3.592.0",DY={build:"concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'","build:cjs":"node ../../scripts/compilation/inline client-cognito-identity-provider","build:es":"tsc -p tsconfig.es.json","build:include:deps":"lerna run --scope $npm_package_name --include-dependencies build","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-* && rimraf *.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo cognito-identity-provider"},LY="./dist-cjs/index.js",jY="./dist-types/index.d.ts",BY="./dist-es/index.js",$Y=!1,FY={"@aws-crypto/sha256-browser":"3.0.0","@aws-crypto/sha256-js":"3.0.0","@aws-sdk/client-sso-oidc":"3.592.0","@aws-sdk/client-sts":"3.592.0","@aws-sdk/core":"3.592.0","@aws-sdk/credential-provider-node":"3.592.0","@aws-sdk/middleware-host-header":"3.577.0","@aws-sdk/middleware-logger":"3.577.0","@aws-sdk/middleware-recursion-detection":"3.577.0","@aws-sdk/middleware-user-agent":"3.587.0","@aws-sdk/region-config-resolver":"3.587.0","@aws-sdk/types":"3.577.0","@aws-sdk/util-endpoints":"3.587.0","@aws-sdk/util-user-agent-browser":"3.577.0","@aws-sdk/util-user-agent-node":"3.587.0","@smithy/config-resolver":"^3.0.1","@smithy/core":"^2.2.0","@smithy/fetch-http-handler":"^3.0.1","@smithy/hash-node":"^3.0.0","@smithy/invalid-dependency":"^3.0.0","@smithy/middleware-content-length":"^3.0.0","@smithy/middleware-endpoint":"^3.0.1","@smithy/middleware-retry":"^3.0.3","@smithy/middleware-serde":"^3.0.0","@smithy/middleware-stack":"^3.0.0","@smithy/node-config-provider":"^3.1.0","@smithy/node-http-handler":"^3.0.0","@smithy/protocol-http":"^4.0.0","@smithy/smithy-client":"^3.1.1","@smithy/types":"^3.0.0","@smithy/url-parser":"^3.0.0","@smithy/util-base64":"^3.0.0","@smithy/util-body-length-browser":"^3.0.0","@smithy/util-body-length-node":"^3.0.0","@smithy/util-defaults-mode-browser":"^3.0.3","@smithy/util-defaults-mode-node":"^3.0.3","@smithy/util-endpoints":"^2.0.1","@smithy/util-middleware":"^3.0.0","@smithy/util-retry":"^3.0.0","@smithy/util-utf8":"^3.0.0",tslib:"^2.6.2"},UY={"@tsconfig/node16":"16.1.3","@types/node":"^16.18.96",concurrently:"7.0.0","downlevel-dts":"0.10.1",rimraf:"3.0.2",typescript:"~4.9.5"},zY={node:">=16.0.0"},VY={"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},qY=["dist-*/**"],HY={name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},WY="Apache-2.0",GY={"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},KY="https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity-provider",QY={type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-cognito-identity-provider"},YY={name:_Y,description:OY,version:NY,scripts:DY,main:LY,types:jY,module:BY,sideEffects:$Y,dependencies:FY,devDependencies:UY,engines:zY,typesVersions:VY,files:qY,author:HY,license:WY,browser:GY,"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:KY,repository:QY};var ak={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -194,9 +194,9 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var mp=function(t,e){return mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},mp(t,e)};function JY(t,e){mp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var gp=function(){return gp=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function eJ(t,e){return function(r,n){e(r,n,t)}}function tJ(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function rJ(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 nJ(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lk(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function oJ(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(g){u(s[0][3],g)}}function l(d){d.value instanceof $f?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function cJ(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:$f(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function fJ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof xp=="function"?xp(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function uJ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function dJ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function hJ(t){return t&&t.__esModule?t:{default:t}}function vJ(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function yJ(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return gp},__asyncDelegator:cJ,__asyncGenerator:lJ,__asyncValues:fJ,__await:$f,__awaiter:rJ,__classPrivateFieldGet:vJ,__classPrivateFieldSet:yJ,__createBinding:iJ,__decorate:ZY,__exportStar:sJ,__extends:JY,__generator:nJ,__importDefault:hJ,__importStar:dJ,__makeTemplateObject:uJ,__metadata:tJ,__param:eJ,__read:lk,__rest:XY,__spread:oJ,__spreadArrays:aJ,__values:xp},Symbol.toStringTag,{value:"Module"})),ql=Ih(pJ);var yc={},pc={},mc={},d4;function mJ(){if(d4)return mc;d4=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return mc.isEmptyData=t,mc}var vv={},h4;function ck(){return h4||(h4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(vv)),vv}const gJ=t=>{const e=[];for(let r=0,n=t.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else e.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(e)},xJ=t=>{let e="";for(let r=0,n=t.length;ra.toString(16)).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((i&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return e};function bJ(t){return new TextEncoder().encode(t)}function wJ(t){return new TextDecoder("utf-8").decode(t)}const EJ=t=>typeof TextEncoder=="function"?bJ(t):gJ(t),AJ=t=>typeof TextDecoder=="function"?wJ(t):xJ(t),SJ=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:EJ,toUtf8:AJ},Symbol.toStringTag,{value:"Module"})),fk=Ih(SJ),CJ={};function kJ(){return typeof window<"u"?window:typeof self<"u"?self:CJ}const PJ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:kJ},Symbol.toStringTag,{value:"Module"})),ox=Ih(PJ);var v4;function uk(){if(v4)return pc;v4=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.Sha256=void 0;var t=mJ(),e=ck(),r=fk,n=ox,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,t.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(e.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();pc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),e.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return pc}var gc={},yv={},xc={},y4;function RJ(){if(y4)return xc;y4=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.convertToBuffer=void 0;var t=fk,e=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:t.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?e(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return xc.convertToBuffer=r,xc}var bc={},p4;function TJ(){if(p4)return bc;p4=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return bc.isEmptyData=t,bc}var wc={},m4;function MJ(){if(m4)return wc;m4=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return wc.numToUint8=t,wc}var Ec={},g4;function IJ(){if(g4)return Ec;g4=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;nt.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],g=0;g>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(w+this.temp[g-7]|0)+(x+this.temp[g-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[g]+this.temp[g]|0)|0)|0,S=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+S|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return Sc.RawSha256=e,Sc}var A4;function OJ(){if(A4)return Ac;A4=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.Sha256=void 0;var t=ql,e=hk(),r=_J(),n=ax(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(e.BLOCK_SIZE);l.set(a);for(var c=0;ce.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(a),c}return Ac}var S4;function NJ(){return S4||(S4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ql;e.__exportStar(OJ(),t)}(pv)),pv}var mv={},ri={},C4;function DJ(){if(C4)return ri;C4=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.supportsZeroByteGCM=ri.supportsSubtleCrypto=ri.supportsSecureRandom=ri.supportsWebCrypto=void 0;var t=ql,e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}ri.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}ri.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}ri.supportsSubtleCrypto=i;function s(o){return t.__awaiter(this,void 0,void 0,function(){var a,l;return t.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return ri.supportsZeroByteGCM=s,ri}var k4;function LJ(){return k4||(k4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ql;e.__exportStar(DJ(),t)}(mv)),mv}var gv={},xv={},P4;function jJ(){return P4||(P4=1,Object.defineProperty(xv,"__esModule",{value:!0})),xv}var bv={},R4;function BJ(){return R4||(R4=1,Object.defineProperty(bv,"__esModule",{value:!0})),bv}var wv={},T4;function $J(){return T4||(T4=1,Object.defineProperty(wv,"__esModule",{value:!0})),wv}var Ev={},M4;function FJ(){return M4||(M4=1,Object.defineProperty(Ev,"__esModule",{value:!0})),Ev}var Cc={},I4;function UJ(){if(I4)return Cc;I4=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.isMsWindow=void 0;var t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function e(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(e(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return t.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return Cc.isMsWindow=r,Cc}var _4;function zJ(){return _4||(_4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=ql;e.__exportStar(jJ(),t),e.__exportStar(BJ(),t),e.__exportStar($J(),t),e.__exportStar(FJ(),t),e.__exportStar(UJ(),t)}(gv)),gv}var O4;function VJ(){if(O4)return yc;O4=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.Sha256=void 0;var t=uk(),e=dk(),r=NJ(),n=LJ(),i=zJ(),s=ox,o=ax(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new e.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return yc.Sha256=a,yc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=ql;e.__exportStar(VJ(),t);var r=uk();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=dk();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(ak);const qJ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},vk={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Wr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Ls={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class se{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const i=se.getVersionPrecision(e),s=se.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=se.map([e,r],c=>{const f=o-se.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return se.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return e}static getBrowserAlias(e){return qJ[e]}static getBrowserTypeByAlias(e){return vk[e]||""}}const wt=/version\/(\d+(\.?_?\d+)+)/i,HJ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=se.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=se.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=se.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=se.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=se.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=se.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=se.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=se.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=se.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=se.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=se.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=se.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=se.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=se.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=se.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=se.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=se.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=se.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=se.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=se.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=se.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=se.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=se.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=se.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=se.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=se.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:se.getFirstMatch(i,t),version:se.getSecondMatch(i,t)}}}],WJ=[{test:[/Roku\/DVP/],describe(t){const e=se.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Wr.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=se.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Wr.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=se.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=se.getWindowsVersionName(e);return{name:Wr.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Wr.iOS},r=se.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=se.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=se.getMacOSVersionName(e),n={name:Wr.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=se.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Wr.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=se.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=se.getAndroidVersionName(e),n={name:Wr.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=se.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Wr.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=se.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||se.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||se.getFirstMatch(/\bbb(\d+)/i,t);return{name:Wr.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=se.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Wr.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=se.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Wr.Linux}}},{test:[/CrOS/],describe(){return{name:Wr.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=se.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.PlayStation4,version:e}}}],GJ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=se.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Xt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=se.getFirstMatch(/(ipod|iphone)/i,t);return{type:Xt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Xt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Xt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Xt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Xt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Xt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Xt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Xt.tv}}}],KJ=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:Ls.Blink};const r=se.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:Ls.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:Ls.Trident},r=se.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:Ls.Presto},r=se.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:Ls.Gecko},r=se.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ls.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:Ls.WebKit},r=se.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class N4{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=se.find(HJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=se.find(WJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=se.find(GJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=se.find(KJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return se.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const i={};let s=0;if(Object.keys(e).forEach(a=>{const l=e[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=se.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=se.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=se.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const s=se.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(e){let r=[0],n=e,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(i=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(i=!0,n=e.substr(1)),r.indexOf(se.compareVersions(s,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}}/*! +***************************************************************************** */var mp=function(t,e){return mp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},mp(t,e)};function JY(t,e){mp(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var gp=function(){return gp=Object.assign||function(e){for(var r,n=1,i=arguments.length;n=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s}function eJ(t,e){return function(r,n){e(r,n,t)}}function tJ(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function rJ(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 nJ(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,i,s,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(f){return l([c,f])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(s=c[0]&2?i.return:c[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,c[1])).done)return s;switch(i=0,s&&(c=[c[0]&2,s.value]),c[0]){case 0:case 1:s=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,i=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!s||c[1]>s[0]&&c[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function lk(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,s=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return s}function oJ(){for(var t=[],e=0;e1||a(d,v)})})}function a(d,v){try{l(n[d](v))}catch(g){u(s[0][3],g)}}function l(d){d.value instanceof $f?Promise.resolve(d.value.v).then(c,f):u(s[0][2],d)}function c(d){a("next",d)}function f(d){a("throw",d)}function u(d,v){d(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function cJ(t){var e,r;return e={},n("next"),n("throw",function(i){throw i}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(i,s){e[i]=t[i]?function(o){return(r=!r)?{value:$f(t[i](o)),done:i==="return"}:s?s(o):o}:s}}function fJ(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof xp=="function"?xp(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(o){return new Promise(function(a,l){o=t[s](o),i(a,l,o.done,o.value)})}}function i(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}function uJ(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function dJ(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function hJ(t){return t&&t.__esModule?t:{default:t}}function vJ(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function yJ(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}const pJ=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return gp},__asyncDelegator:cJ,__asyncGenerator:lJ,__asyncValues:fJ,__await:$f,__awaiter:rJ,__classPrivateFieldGet:vJ,__classPrivateFieldSet:yJ,__createBinding:iJ,__decorate:ZY,__exportStar:sJ,__extends:JY,__generator:nJ,__importDefault:hJ,__importStar:dJ,__makeTemplateObject:uJ,__metadata:tJ,__param:eJ,__read:lk,__rest:XY,__spread:oJ,__spreadArrays:aJ,__values:xp},Symbol.toStringTag,{value:"Module"})),Hl=Ih(pJ);var yc={},pc={},mc={},d4;function mJ(){if(d4)return mc;d4=1,Object.defineProperty(mc,"__esModule",{value:!0}),mc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return mc.isEmptyData=t,mc}var vv={},h4;function ck(){return h4||(h4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])}(vv)),vv}const gJ=t=>{const e=[];for(let r=0,n=t.length;r>6|192,i&63|128);else if(r+1>18|240,s>>12&63|128,s>>6&63|128,s&63|128)}else e.push(i>>12|224,i>>6&63|128,i&63|128)}return Uint8Array.from(e)},xJ=t=>{let e="";for(let r=0,n=t.length;ra.toString(16)).join("%");e+=decodeURIComponent(o)}else e+=String.fromCharCode((i&15)<<12|(t[++r]&63)<<6|t[++r]&63)}return e};function bJ(t){return new TextEncoder().encode(t)}function wJ(t){return new TextDecoder("utf-8").decode(t)}const EJ=t=>typeof TextEncoder=="function"?bJ(t):gJ(t),AJ=t=>typeof TextDecoder=="function"?wJ(t):xJ(t),SJ=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:EJ,toUtf8:AJ},Symbol.toStringTag,{value:"Module"})),fk=Ih(SJ),CJ={};function kJ(){return typeof window<"u"?window:typeof self<"u"?self:CJ}const PJ=Object.freeze(Object.defineProperty({__proto__:null,locateWindow:kJ},Symbol.toStringTag,{value:"Module"})),ox=Ih(PJ);var v4;function uk(){if(v4)return pc;v4=1,Object.defineProperty(pc,"__esModule",{value:!0}),pc.Sha256=void 0;var t=mJ(),e=ck(),r=fk,n=ox,i=function(){function a(l){this.secret=l,this.reset()}return a.prototype.update=function(l){var c=this;(0,t.isEmptyData)(l)||(this.operation=this.operation.then(function(f){return f.onerror=function(){c.operation=Promise.reject(new Error("Error encountered updating hash"))},f.process(o(l)),f}),this.operation.catch(function(){}))},a.prototype.digest=function(){return this.operation.then(function(l){return new Promise(function(c,f){l.onerror=function(){f(new Error("Error encountered finalizing hash"))},l.oncomplete=function(){l.result&&c(new Uint8Array(l.result)),f(new Error("Error encountered finalizing hash"))},l.finish()})})},a.prototype.reset=function(){this.secret?(this.operation=s(this.secret).then(function(l){return(0,n.locateWindow)().msCrypto.subtle.sign(e.SHA_256_HMAC_ALGO,l)}),this.operation.catch(function(){})):this.operation=Promise.resolve((0,n.locateWindow)().msCrypto.subtle.digest("SHA-256"))},a}();pc.Sha256=i;function s(a){return new Promise(function(l,c){var f=(0,n.locateWindow)().msCrypto.subtle.importKey("raw",o(a),e.SHA_256_HMAC_ALGO,!1,["sign"]);f.oncomplete=function(){f.result&&l(f.result),c(new Error("ImportKey completed without importing key."))},f.onerror=function(){c(new Error("ImportKey failed to import key."))}})}function o(a){return typeof a=="string"?(0,r.fromUtf8)(a):ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(a)}return pc}var gc={},yv={},xc={},y4;function RJ(){if(y4)return xc;y4=1,Object.defineProperty(xc,"__esModule",{value:!0}),xc.convertToBuffer=void 0;var t=fk,e=typeof Buffer<"u"&&Buffer.from?function(n){return Buffer.from(n,"utf8")}:t.fromUtf8;function r(n){return n instanceof Uint8Array?n:typeof n=="string"?e(n):ArrayBuffer.isView(n)?new Uint8Array(n.buffer,n.byteOffset,n.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(n)}return xc.convertToBuffer=r,xc}var bc={},p4;function TJ(){if(p4)return bc;p4=1,Object.defineProperty(bc,"__esModule",{value:!0}),bc.isEmptyData=void 0;function t(e){return typeof e=="string"?e.length===0:e.byteLength===0}return bc.isEmptyData=t,bc}var wc={},m4;function MJ(){if(m4)return wc;m4=1,Object.defineProperty(wc,"__esModule",{value:!0}),wc.numToUint8=void 0;function t(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}return wc.numToUint8=t,wc}var Ec={},g4;function IJ(){if(g4)return Ec;g4=1,Object.defineProperty(Ec,"__esModule",{value:!0}),Ec.uint32ArrayFrom=void 0;function t(e){if(!Uint32Array.from){for(var r=new Uint32Array(e.length),n=0;nt.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=n[i++],s--,this.bufferLength===t.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},r.prototype.digest=function(){if(!this.finished){var n=this.bytesHashed*8,i=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(i.setUint8(this.bufferLength++,128),s%t.BLOCK_SIZE>=t.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,a[o*4+1]=this.state[o]>>>16&255,a[o*4+2]=this.state[o]>>>8&255,a[o*4+3]=this.state[o]>>>0&255;return a},r.prototype.hashBuffer=function(){for(var n=this,i=n.buffer,s=n.state,o=s[0],a=s[1],l=s[2],c=s[3],f=s[4],u=s[5],d=s[6],v=s[7],g=0;g>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[g-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[g]=(w+this.temp[g-7]|0)+(x+this.temp[g-16]|0)}var b=(((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)|0)+(v+(t.KEY[g]+this.temp[g]|0)|0)|0,A=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&a^o&l^a&l)|0;v=d,d=u,u=f,f=c+b|0,c=l,l=a,a=o,o=b+A|0}s[0]+=o,s[1]+=a,s[2]+=l,s[3]+=c,s[4]+=f,s[5]+=u,s[6]+=d,s[7]+=v},r}();return Sc.RawSha256=e,Sc}var A4;function OJ(){if(A4)return Ac;A4=1,Object.defineProperty(Ac,"__esModule",{value:!0}),Ac.Sha256=void 0;var t=Hl,e=hk(),r=_J(),n=ax(),i=function(){function o(a){this.secret=a,this.hash=new r.RawSha256,this.reset()}return o.prototype.update=function(a){if(!((0,n.isEmptyData)(a)||this.error))try{this.hash.update((0,n.convertToBuffer)(a))}catch(l){this.error=l}},o.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},o.prototype.digest=function(){return t.__awaiter(this,void 0,void 0,function(){return t.__generator(this,function(a){return[2,this.digestSync()]})})},o.prototype.reset=function(){if(this.hash=new r.RawSha256,this.secret){this.outer=new r.RawSha256;var a=s(this.secret),l=new Uint8Array(e.BLOCK_SIZE);l.set(a);for(var c=0;ce.BLOCK_SIZE){var l=new r.RawSha256;l.update(a),a=l.digest()}var c=new Uint8Array(e.BLOCK_SIZE);return c.set(a),c}return Ac}var S4;function NJ(){return S4||(S4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(OJ(),t)}(pv)),pv}var mv={},ri={},C4;function DJ(){if(C4)return ri;C4=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.supportsZeroByteGCM=ri.supportsSubtleCrypto=ri.supportsSecureRandom=ri.supportsWebCrypto=void 0;var t=Hl,e=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function r(o){if(n(o)&&typeof o.crypto.subtle=="object"){var a=o.crypto.subtle;return i(a)}return!1}ri.supportsWebCrypto=r;function n(o){if(typeof o=="object"&&typeof o.crypto=="object"){var a=o.crypto.getRandomValues;return typeof a=="function"}return!1}ri.supportsSecureRandom=n;function i(o){return o&&e.every(function(a){return typeof o[a]=="function"})}ri.supportsSubtleCrypto=i;function s(o){return t.__awaiter(this,void 0,void 0,function(){var a,l;return t.__generator(this,function(c){switch(c.label){case 0:if(!i(o))return[2,!1];c.label=1;case 1:return c.trys.push([1,4,,5]),[4,o.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=c.sent(),[4,o.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return l=c.sent(),[2,l.byteLength===16];case 4:return c.sent(),[2,!1];case 5:return[2]}})})}return ri.supportsZeroByteGCM=s,ri}var k4;function LJ(){return k4||(k4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(DJ(),t)}(mv)),mv}var gv={},xv={},P4;function jJ(){return P4||(P4=1,Object.defineProperty(xv,"__esModule",{value:!0})),xv}var bv={},R4;function BJ(){return R4||(R4=1,Object.defineProperty(bv,"__esModule",{value:!0})),bv}var wv={},T4;function $J(){return T4||(T4=1,Object.defineProperty(wv,"__esModule",{value:!0})),wv}var Ev={},M4;function FJ(){return M4||(M4=1,Object.defineProperty(Ev,"__esModule",{value:!0})),Ev}var Cc={},I4;function UJ(){if(I4)return Cc;I4=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.isMsWindow=void 0;var t=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function e(n){return"MSInputMethodContext"in n&&"msCrypto"in n}function r(n){if(e(n)&&n.msCrypto.subtle!==void 0){var i=n.msCrypto,s=i.getRandomValues,o=i.subtle;return t.map(function(a){return o[a]}).concat(s).every(function(a){return typeof a=="function"})}return!1}return Cc.isMsWindow=r,Cc}var _4;function zJ(){return _4||(_4=1,function(t){Object.defineProperty(t,"__esModule",{value:!0});var e=Hl;e.__exportStar(jJ(),t),e.__exportStar(BJ(),t),e.__exportStar($J(),t),e.__exportStar(FJ(),t),e.__exportStar(UJ(),t)}(gv)),gv}var O4;function VJ(){if(O4)return yc;O4=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.Sha256=void 0;var t=uk(),e=dk(),r=NJ(),n=LJ(),i=zJ(),s=ox,o=ax(),a=function(){function l(c){(0,n.supportsWebCrypto)((0,s.locateWindow)())?this.hash=new e.Sha256(c):(0,i.isMsWindow)((0,s.locateWindow)())?this.hash=new t.Sha256(c):this.hash=new r.Sha256(c)}return l.prototype.update=function(c,f){this.hash.update((0,o.convertToBuffer)(c))},l.prototype.digest=function(){return this.hash.digest()},l.prototype.reset=function(){this.hash.reset()},l}();return yc.Sha256=a,yc}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var e=Hl;e.__exportStar(VJ(),t);var r=uk();Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return r.Sha256}});var n=dk();Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return n.Sha256}})})(ak);const qJ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},vk={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Xt={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},Wr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},js={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class se{static getFirstMatch(e,r){const n=r.match(e);return n&&n.length>0&&n[1]||""}static getSecondMatch(e,r){const n=r.match(e);return n&&n.length>1&&n[2]||""}static matchAndReturnConst(e,r,n){if(e.test(r))return n}static getWindowsVersionName(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),r[0]===10)switch(r[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(e){const r=e.split(".").splice(0,2).map(n=>parseInt(n,10)||0);if(r.push(0),!(r[0]===1&&r[1]<5)){if(r[0]===1&&r[1]<6)return"Cupcake";if(r[0]===1&&r[1]>=6)return"Donut";if(r[0]===2&&r[1]<2)return"Eclair";if(r[0]===2&&r[1]===2)return"Froyo";if(r[0]===2&&r[1]>2)return"Gingerbread";if(r[0]===3)return"Honeycomb";if(r[0]===4&&r[1]<1)return"Ice Cream Sandwich";if(r[0]===4&&r[1]<4)return"Jelly Bean";if(r[0]===4&&r[1]>=4)return"KitKat";if(r[0]===5)return"Lollipop";if(r[0]===6)return"Marshmallow";if(r[0]===7)return"Nougat";if(r[0]===8)return"Oreo";if(r[0]===9)return"Pie"}}static getVersionPrecision(e){return e.split(".").length}static compareVersions(e,r,n=!1){const i=se.getVersionPrecision(e),s=se.getVersionPrecision(r);let o=Math.max(i,s),a=0;const l=se.map([e,r],c=>{const f=o-se.getVersionPrecision(c),u=c+new Array(f+1).join(".0");return se.map(u.split("."),d=>new Array(20-d.length).join("0")+d).reverse()});for(n&&(a=o-Math.min(i,s)),o-=1;o>=a;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===a)return 0;o-=1}else if(l[0][o]{n[l]=o[l]})}return e}static getBrowserAlias(e){return qJ[e]}static getBrowserTypeByAlias(e){return vk[e]||""}}const wt=/version\/(\d+(\.?_?\d+)+)/i,HJ=[{test:[/googlebot/i],describe(t){const e={name:"Googlebot"},r=se.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/opera/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opr\/|opios/i],describe(t){const e={name:"Opera"},r=se.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/SamsungBrowser/i],describe(t){const e={name:"Samsung Internet for Android"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Whale/i],describe(t){const e={name:"NAVER Whale Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MZBrowser/i],describe(t){const e={name:"MZ Browser"},r=se.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/focus/i],describe(t){const e={name:"Focus"},r=se.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/swing/i],describe(t){const e={name:"Swing"},r=se.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/coast/i],describe(t){const e={name:"Opera Coast"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(t){const e={name:"Opera Touch"},r=se.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/yabrowser/i],describe(t){const e={name:"Yandex Browser"},r=se.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/ucbrowser/i],describe(t){const e={name:"UC Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/Maxthon|mxios/i],describe(t){const e={name:"Maxthon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/epiphany/i],describe(t){const e={name:"Epiphany"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/puffin/i],describe(t){const e={name:"Puffin"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sleipnir/i],describe(t){const e={name:"Sleipnir"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/k-meleon/i],describe(t){const e={name:"K-Meleon"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/micromessenger/i],describe(t){const e={name:"WeChat"},r=se.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qqbrowser/i],describe(t){const e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},r=se.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/msie|trident/i],describe(t){const e={name:"Internet Explorer"},r=se.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/\sedg\//i],describe(t){const e={name:"Microsoft Edge"},r=se.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/edg([ea]|ios)/i],describe(t){const e={name:"Microsoft Edge"},r=se.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/vivaldi/i],describe(t){const e={name:"Vivaldi"},r=se.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/seamonkey/i],describe(t){const e={name:"SeaMonkey"},r=se.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/sailfish/i],describe(t){const e={name:"Sailfish"},r=se.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return r&&(e.version=r),e}},{test:[/silk/i],describe(t){const e={name:"Amazon Silk"},r=se.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/phantom/i],describe(t){const e={name:"PhantomJS"},r=se.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/slimerjs/i],describe(t){const e={name:"SlimerJS"},r=se.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e={name:"BlackBerry"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(web|hpw)[o0]s/i],describe(t){const e={name:"WebOS Browser"},r=se.getFirstMatch(wt,t)||se.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/bada/i],describe(t){const e={name:"Bada"},r=se.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/tizen/i],describe(t){const e={name:"Tizen"},r=se.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/qupzilla/i],describe(t){const e={name:"QupZilla"},r=se.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/firefox|iceweasel|fxios/i],describe(t){const e={name:"Firefox"},r=se.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/electron/i],describe(t){const e={name:"Electron"},r=se.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/MiuiBrowser/i],describe(t){const e={name:"Miui"},r=se.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/chromium/i],describe(t){const e={name:"Chromium"},r=se.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/chrome|crios|crmo/i],describe(t){const e={name:"Chrome"},r=se.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/GSA/i],describe(t){const e={name:"Google Search"},r=se.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e={name:"Android Browser"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/playstation 4/i],describe(t){const e={name:"PlayStation 4"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/safari|applewebkit/i],describe(t){const e={name:"Safari"},r=se.getFirstMatch(wt,t);return r&&(e.version=r),e}},{test:[/.*/i],describe(t){const e=/^(.*)\/(.*) /,r=/^(.*)\/(.*)[ \t]\((.*)/,i=t.search("\\(")!==-1?r:e;return{name:se.getFirstMatch(i,t),version:se.getSecondMatch(i,t)}}}],WJ=[{test:[/Roku\/DVP/],describe(t){const e=se.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:Wr.Roku,version:e}}},{test:[/windows phone/i],describe(t){const e=se.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:Wr.WindowsPhone,version:e}}},{test:[/windows /i],describe(t){const e=se.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),r=se.getWindowsVersionName(e);return{name:Wr.Windows,version:e,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(t){const e={name:Wr.iOS},r=se.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return r&&(e.version=r),e}},{test:[/macintosh/i],describe(t){const e=se.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),r=se.getMacOSVersionName(e),n={name:Wr.MacOS,version:e};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe(t){const e=se.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:Wr.iOS,version:e}}},{test(t){const e=!t.test(/like android/i),r=t.test(/android/i);return e&&r},describe(t){const e=se.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),r=se.getAndroidVersionName(e),n={name:Wr.Android,version:e};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe(t){const e=se.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),r={name:Wr.WebOS};return e&&e.length&&(r.version=e),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(t){const e=se.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||se.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||se.getFirstMatch(/\bbb(\d+)/i,t);return{name:Wr.BlackBerry,version:e}}},{test:[/bada/i],describe(t){const e=se.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:Wr.Bada,version:e}}},{test:[/tizen/i],describe(t){const e=se.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.Tizen,version:e}}},{test:[/linux/i],describe(){return{name:Wr.Linux}}},{test:[/CrOS/],describe(){return{name:Wr.ChromeOS}}},{test:[/PlayStation 4/],describe(t){const e=se.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:Wr.PlayStation4,version:e}}}],GJ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(t){const e=se.getFirstMatch(/(can-l01)/i,t)&&"Nova",r={type:Xt.mobile,vendor:"Huawei"};return e&&(r.model=e),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Xt.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Xt.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Xt.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Xt.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Xt.tablet}}},{test(t){const e=t.test(/ipod|iphone/i),r=t.test(/like (ipod|iphone)/i);return e&&!r},describe(t){const e=se.getFirstMatch(/(ipod|iphone)/i,t);return{type:Xt.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Xt.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName(!0)==="blackberry"},describe(){return{type:Xt.mobile,vendor:"BlackBerry"}}},{test(t){return t.getBrowserName(!0)==="bada"},describe(){return{type:Xt.mobile}}},{test(t){return t.getBrowserName()==="windows phone"},describe(){return{type:Xt.mobile,vendor:"Microsoft"}}},{test(t){const e=Number(String(t.getOSVersion()).split(".")[0]);return t.getOSName(!0)==="android"&&e>=3},describe(){return{type:Xt.tablet}}},{test(t){return t.getOSName(!0)==="android"},describe(){return{type:Xt.mobile}}},{test(t){return t.getOSName(!0)==="macos"},describe(){return{type:Xt.desktop,vendor:"Apple"}}},{test(t){return t.getOSName(!0)==="windows"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="linux"},describe(){return{type:Xt.desktop}}},{test(t){return t.getOSName(!0)==="playstation 4"},describe(){return{type:Xt.tv}}},{test(t){return t.getOSName(!0)==="roku"},describe(){return{type:Xt.tv}}}],KJ=[{test(t){return t.getBrowserName(!0)==="microsoft edge"},describe(t){if(/\sedg\//i.test(t))return{name:js.Blink};const r=se.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:js.EdgeHTML,version:r}}},{test:[/trident/i],describe(t){const e={name:js.Trident},r=se.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){return t.test(/presto/i)},describe(t){const e={name:js.Presto},r=se.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test(t){const e=t.test(/gecko/i),r=t.test(/like gecko/i);return e&&!r},describe(t){const e={name:js.Gecko},r=se.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:js.Blink}}},{test:[/(apple)?webkit/i],describe(t){const e={name:js.WebKit},r=se.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return r&&(e.version=r),e}}];class N4{constructor(e,r=!1){if(e==null||e==="")throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},r!==!0&&this.parse()}getUA(){return this._ua}test(e){return e.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const e=se.find(HJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.browser=e.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const e=se.find(WJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.os=e.describe(this.getUA())),this.parsedResult.os}getOSName(e){const{name:r}=this.getOS();return e?String(r).toLowerCase()||"":r||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(e=!1){const{type:r}=this.getPlatform();return e?String(r).toLowerCase()||"":r||""}parsePlatform(){this.parsedResult.platform={};const e=se.find(GJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.platform=e.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const e=se.find(KJ,r=>{if(typeof r.test=="function")return r.test(this);if(r.test instanceof Array)return r.test.some(n=>this.test(n));throw new Error("Browser's test function is not valid")});return e&&(this.parsedResult.engine=e.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return se.assign({},this.parsedResult)}satisfies(e){const r={};let n=0;const i={};let s=0;if(Object.keys(e).forEach(a=>{const l=e[a];typeof l=="string"?(i[a]=l,s+=1):typeof l=="object"&&(r[a]=l,n+=1)}),n>0){const a=Object.keys(r),l=se.find(a,f=>this.isOS(f));if(l){const f=this.satisfies(r[l]);if(f!==void 0)return f}const c=se.find(a,f=>this.isPlatform(f));if(c){const f=this.satisfies(r[c]);if(f!==void 0)return f}}if(s>0){const a=Object.keys(i),l=se.find(a,c=>this.isBrowser(c,!0));if(l!==void 0)return this.compareVersion(i[l])}}isBrowser(e,r=!1){const n=this.getBrowserName().toLowerCase();let i=e.toLowerCase();const s=se.getBrowserTypeByAlias(i);return r&&s&&(i=s.toLowerCase()),i===n}compareVersion(e){let r=[0],n=e,i=!1;const s=this.getBrowserVersion();if(typeof s=="string")return e[0]===">"||e[0]==="<"?(n=e.substr(1),e[1]==="="?(i=!0,n=e.substr(2)):r=[],e[0]===">"?r.push(1):r.push(-1)):e[0]==="="?n=e.substr(1):e[0]==="~"&&(i=!0,n=e.substr(1)),r.indexOf(se.compareVersions(s,n,i))>-1}isOS(e){return this.getOSName(!0)===String(e).toLowerCase()}isPlatform(e){return this.getPlatformType(!0)===String(e).toLowerCase()}isEngine(e){return this.getEngineName(!0)===String(e).toLowerCase()}is(e,r=!1){return this.isBrowser(e,r)||this.isOS(e)||this.isPlatform(e)}some(e=[]){return e.some(r=>this.is(r))}}/*! * Bowser - a browser detector * https://github.com/lancedikson/bowser * MIT License | (c) Dustin Diaz 2012-2015 * MIT License | (c) Denis Demchenko 2015-2019 - */class yk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new N4(e,r)}static parse(e){return new N4(e).getResult()}static get BROWSER_MAP(){return vk}static get ENGINE_MAP(){return Ls}static get OS_MAP(){return Wr}static get PLATFORMS_MAP(){return Xt}}const QJ=({serviceId:t,clientVersion:e})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?yk.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",e],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return t&&n.push([`api/${t}`,e]),n},YJ=t=>()=>Promise.reject(t),D4=typeof TextEncoder=="function"?new TextEncoder:null,JJ=t=>{if(typeof t=="string"){if(D4)return D4.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},pk="required",Ii="fn",_i="argv",Hl="ref",L4=!0,j4="isSet",Ff="booleanEquals",ka="error",kc="endpoint",Ji="tree",lx="PartitionResult",B4={[pk]:!1,type:"String"},$4={[pk]:!0,default:!1,type:"Boolean"},F4={[Hl]:"Endpoint"},mk={[Ii]:Ff,[_i]:[{[Hl]:"UseFIPS"},!0]},gk={[Ii]:Ff,[_i]:[{[Hl]:"UseDualStack"},!0]},wi={},U4={[Ii]:"getAttr",[_i]:[{[Hl]:lx},"supportsFIPS"]},z4={[Ii]:Ff,[_i]:[!0,{[Ii]:"getAttr",[_i]:[{[Hl]:lx},"supportsDualStack"]}]},V4=[mk],q4=[gk],H4=[{[Hl]:"Region"}],XJ={version:"1.0",parameters:{Region:B4,UseDualStack:$4,UseFIPS:$4,Endpoint:B4},rules:[{conditions:[{[Ii]:j4,[_i]:[F4]}],rules:[{conditions:V4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:ka},{conditions:q4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:ka},{endpoint:{url:F4,properties:wi,headers:wi},type:kc}],type:Ji},{conditions:[{[Ii]:j4,[_i]:H4}],rules:[{conditions:[{[Ii]:"aws.partition",[_i]:H4,assign:lx}],rules:[{conditions:[mk,gk],rules:[{conditions:[{[Ii]:Ff,[_i]:[L4,U4]},z4],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:wi,headers:wi},type:kc}],type:Ji},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:ka}],type:Ji},{conditions:V4,rules:[{conditions:[{[Ii]:Ff,[_i]:[U4,L4]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:wi,headers:wi},type:kc}],type:Ji},{error:"FIPS is enabled but this partition does not support FIPS",type:ka}],type:Ji},{conditions:q4,rules:[{conditions:[z4],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:wi,headers:wi},type:kc}],type:Ji},{error:"DualStack is enabled but this partition does not support DualStack",type:ka}],type:Ji},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:wi,headers:wi},type:kc}],type:Ji}],type:Ji},{error:"Invalid Configuration: Missing Region",type:ka}]},ZJ=XJ,eX=(t,e={})=>ZG(ZJ,{endpointParams:t,logger:e.logger});kh.aws=$9;const tX=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??tx,base64Encoder:(t==null?void 0:t.base64Encoder)??Q9,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??eX,extensions:(t==null?void 0:t.extensions)??[],httpAuthSchemeProvider:(t==null?void 0:t.httpAuthSchemeProvider)??TY,httpAuthSchemes:(t==null?void 0:t.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new JQ},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new UQ}],logger:(t==null?void 0:t.logger)??new G9,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Ph,utf8Decoder:(t==null?void 0:t.utf8Decoder)??Cl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??K9}),rX=(t,e,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=t());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return e===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(e(n)&&await a(),n))},nX=["in-region","cross-region","mobile","standard","legacy"],iX=({defaultsMode:t}={})=>rX(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(sX()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${nX.join(", ")}, got ${e}`)}}),sX=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?yk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},oX=t=>{const e=iX(t),r=()=>e().then(SQ),n=tX(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??JJ,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??QJ({serviceId:n.serviceId,clientVersion:YY.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Rh,region:(t==null?void 0:t.region)??YJ("Region is missing"),requestHandler:rx.create((t==null?void 0:t.requestHandler)??r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||jK),sha256:(t==null?void 0:t.sha256)??ak.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??vQ,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(uK)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(dK))}},aX=t=>{let e=async()=>{if(t.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=t.region;return typeof r=="string"?r:r()};return{setRegion(r){e=r},region(){return e}}},lX=t=>({region:t.region()}),cX=t=>{const e=t.httpAuthSchemes;let r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(i){const s=e.findIndex(o=>o.schemeId===i.schemeId);s===-1?e.push(i):e.splice(s,1,i)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){n=i},credentials(){return n}}},fX=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Ku=t=>t,uX=(t,e)=>{const r={...Ku(aX(t)),...Ku(TQ(t)),...Ku(bG(t)),...Ku(cX(t))};return e.forEach(n=>n.configure(r)),{...t,...lX(r),...MQ(r),...wG(r),...fX(r)}};class dX extends oQ{constructor(...[e]){const r=oX(e||{}),n=IY(r),i=hK(n),s=IK(i),o=sQ(s),a=o,l=NG(a),c=MY(l),f=uX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(LQ(this.config)),this.middlewareStack.use(KQ(this.config)),this.middlewareStack.use(CG(this.config)),this.middlewareStack.use(RG(this.config)),this.middlewareStack.use(OG(this.config)),this.middlewareStack.use(fK(this.config)),this.middlewareStack.use(OK(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use($Q(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return PY}getIdentityProviderConfigProvider(){return async e=>new FQ({"aws.auth#sigv4":e.credentials})}}class Te extends nx{constructor(e){super(e),Object.setPrototypeOf(this,Te.prototype)}}class cx extends Te{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,cx.prototype)}}class fx extends Te{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,fx.prototype)}}class ux extends Te{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,ux.prototype)}}class dx extends Te{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,dx.prototype)}}class hx extends Te{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,hx.prototype)}}class vx extends Te{constructor(e){super({name:"UserImportInProgressException",$fault:"client",...e}),this.name="UserImportInProgressException",this.$fault="client",Object.setPrototypeOf(this,vx.prototype)}}class yx extends Te{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,yx.prototype)}}class px extends Te{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,px.prototype)}}class mx extends Te{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,mx.prototype)}}class gx extends Te{constructor(e){super({name:"TooManyFailedAttemptsException",$fault:"client",...e}),this.name="TooManyFailedAttemptsException",this.$fault="client",Object.setPrototypeOf(this,gx.prototype)}}class xx extends Te{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,xx.prototype)}}class M0 extends Te{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,M0.prototype)}}class bx extends Te{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends Te{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}class Ex extends Te{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ex.prototype)}}class Ax extends Te{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Ax.prototype)}}class Sx extends Te{constructor(e){super({name:"PreconditionNotMetException",$fault:"client",...e}),this.name="PreconditionNotMetException",this.$fault="client",Object.setPrototypeOf(this,Sx.prototype)}}class Cx extends Te{constructor(e){super({name:"UnsupportedUserStateException",$fault:"client",...e}),this.name="UnsupportedUserStateException",this.$fault="client",Object.setPrototypeOf(this,Cx.prototype)}}class kx extends Te{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,kx.prototype)}}class Px extends Te{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Px.prototype)}}class Rx extends Te{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Rx.prototype)}}class Tx extends Te{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tx.prototype)}}class Mx extends Te{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends Te{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class _x extends Te{constructor(e){super({name:"UserPoolAddOnNotEnabledException",$fault:"client",...e}),this.name="UserPoolAddOnNotEnabledException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Ox extends Te{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ox.prototype)}}class Nx extends Te{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class Dx extends Te{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,Dx.prototype)}}class Lx extends Te{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Lx.prototype)}}class jx extends Te{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class Bx extends Te{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class $x extends Te{constructor(e){super({name:"GroupExistsException",$fault:"client",...e}),this.name="GroupExistsException",this.$fault="client",Object.setPrototypeOf(this,$x.prototype)}}class Fx extends Te{constructor(e){super({name:"DuplicateProviderException",$fault:"client",...e}),this.name="DuplicateProviderException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class Ux extends Te{constructor(e){super({name:"UserPoolTaggingException",$fault:"client",...e}),this.name="UserPoolTaggingException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class zx extends Te{constructor(e){super({name:"InvalidOAuthFlowException",$fault:"client",...e}),this.name="InvalidOAuthFlowException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Vx extends Te{constructor(e){super({name:"ScopeDoesNotExistException",$fault:"client",...e}),this.name="ScopeDoesNotExistException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends Te{constructor(e){super({name:"UnsupportedIdentityProviderException",$fault:"client",...e}),this.name="UnsupportedIdentityProviderException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class Hx extends Te{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Wx extends Te{constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e}),this.name="UnsupportedOperationException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Gx extends Te{constructor(e){super({name:"UnsupportedTokenTypeException",$fault:"client",...e}),this.name="UnsupportedTokenTypeException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}const W4=t=>({...t,...t.Value&&{Value:wr}}),xk=t=>({...t,...t.AccessToken&&{AccessToken:wr},...t.RefreshToken&&{RefreshToken:wr},...t.IdToken&&{IdToken:wr}}),hX=t=>({...t,...t.AuthParameters&&{AuthParameters:wr},...t.ClientId&&{ClientId:wr},...t.UserContextData&&{UserContextData:wr}}),vX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}}),yX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.Session&&{Session:wr},...t.ChallengeResponses&&{ChallengeResponses:wr},...t.UserContextData&&{UserContextData:wr}}),pX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}});class Kx extends Te{constructor(e){super({name:"EnableSoftwareTokenMFAException",$fault:"client",...e}),this.name="EnableSoftwareTokenMFAException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}const mX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.SecretHash&&{SecretHash:wr},...t.Username&&{Username:wr},...t.Password&&{Password:wr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>W4(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>W4(e))},...t.UserContextData&&{UserContextData:wr}}),gX=async(t,e)=>{const r=Jx("InitiateAuth");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},xX=async(t,e)=>{const r=Jx("RespondToAuthChallenge");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},bX=async(t,e)=>{const r=Jx("SignUp");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},wX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},EX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},AX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},Qx=async(t,e)=>{const r={...t,body:await CY(t.body,e)},n=kY(t,r.body);switch(n){case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await OX(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await jX(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await qX(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await GX(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await JX(r);case"UserImportInProgressException":case"com.amazonaws.cognitoidentityprovider#UserImportInProgressException":throw await iZ(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await lZ(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await DX(r);case"LimitExceededException":case"com.amazonaws.cognitoidentityprovider#LimitExceededException":throw await zX(r);case"TooManyFailedAttemptsException":case"com.amazonaws.cognitoidentityprovider#TooManyFailedAttemptsException":throw await YX(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ZX(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await sZ(r);case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await CX(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await BX(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await $X(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await FX(r);case"PreconditionNotMetException":case"com.amazonaws.cognitoidentityprovider#PreconditionNotMetException":throw await WX(r);case"UnsupportedUserStateException":case"com.amazonaws.cognitoidentityprovider#UnsupportedUserStateException":throw await nZ(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await oZ(r);case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await SX(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await UX(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await VX(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await HX(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await aZ(r);case"UserPoolAddOnNotEnabledException":case"com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":throw await cZ(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await NX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await kX(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await MX(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await QX(r);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":throw await PX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await IX(r);case"GroupExistsException":case"com.amazonaws.cognitoidentityprovider#GroupExistsException":throw await _X(r);case"DuplicateProviderException":case"com.amazonaws.cognitoidentityprovider#DuplicateProviderException":throw await RX(r);case"UserPoolTaggingException":case"com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":throw await fZ(r);case"InvalidOAuthFlowException":case"com.amazonaws.cognitoidentityprovider#InvalidOAuthFlowException":throw await LX(r);case"ScopeDoesNotExistException":case"com.amazonaws.cognitoidentityprovider#ScopeDoesNotExistException":throw await KX(r);case"UnsupportedIdentityProviderException":case"com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":throw await eZ(r);case"UnauthorizedException":case"com.amazonaws.cognitoidentityprovider#UnauthorizedException":throw await XX(r);case"UnsupportedOperationException":case"com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":throw await tZ(r);case"UnsupportedTokenTypeException":case"com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":throw await rZ(r);case"EnableSoftwareTokenMFAException":case"com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":throw await TX(r);default:const i=r.body;return uZ({output:t,parsedBody:i,errorCode:n})}},SX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Px({$metadata:Me(t),...n});return Ne(i,r)},CX=async(t,e)=>{const r=t.body,n=Ae(r),i=new bx({$metadata:Me(t),...n});return Ne(i,r)},kX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Nx({$metadata:Me(t),...n});return Ne(i,r)},PX=async(t,e)=>{const r=t.body,n=Ae(r),i=new jx({$metadata:Me(t),...n});return Ne(i,r)},RX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Fx({$metadata:Me(t),...n});return Ne(i,r)},TX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Kx({$metadata:Me(t),...n});return Ne(i,r)},MX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Dx({$metadata:Me(t),...n});return Ne(i,r)},IX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Bx({$metadata:Me(t),...n});return Ne(i,r)},_X=async(t,e)=>{const r=t.body,n=Ae(r),i=new $x({$metadata:Me(t),...n});return Ne(i,r)},OX=async(t,e)=>{const r=t.body,n=Ae(r),i=new cx({$metadata:Me(t),...n});return Ne(i,r)},NX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ox({$metadata:Me(t),...n});return Ne(i,r)},DX=async(t,e)=>{const r=t.body,n=Ae(r),i=new px({$metadata:Me(t),...n});return Ne(i,r)},LX=async(t,e)=>{const r=t.body,n=Ae(r),i=new zx({$metadata:Me(t),...n});return Ne(i,r)},jX=async(t,e)=>{const r=t.body,n=Ae(r),i=new fx({$metadata:Me(t),...n});return Ne(i,r)},BX=async(t,e)=>{const r=t.body,n=Ae(r),i=new wx({$metadata:Me(t),...n});return Ne(i,r)},$X=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ex({$metadata:Me(t),...n});return Ne(i,r)},FX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ax({$metadata:Me(t),...n});return Ne(i,r)},UX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Rx({$metadata:Me(t),...n});return Ne(i,r)},zX=async(t,e)=>{const r=t.body,n=Ae(r),i=new mx({$metadata:Me(t),...n});return Ne(i,r)},VX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Tx({$metadata:Me(t),...n});return Ne(i,r)},qX=async(t,e)=>{const r=t.body,n=Ae(r),i=new ux({$metadata:Me(t),...n});return Ne(i,r)},HX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Mx({$metadata:Me(t),...n});return Ne(i,r)},WX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Sx({$metadata:Me(t),...n});return Ne(i,r)},GX=async(t,e)=>{const r=t.body,n=Ae(r),i=new dx({$metadata:Me(t),...n});return Ne(i,r)},KX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Vx({$metadata:Me(t),...n});return Ne(i,r)},QX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Lx({$metadata:Me(t),...n});return Ne(i,r)},YX=async(t,e)=>{const r=t.body,n=Ae(r),i=new gx({$metadata:Me(t),...n});return Ne(i,r)},JX=async(t,e)=>{const r=t.body,n=Ae(r),i=new hx({$metadata:Me(t),...n});return Ne(i,r)},XX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Hx({$metadata:Me(t),...n});return Ne(i,r)},ZX=async(t,e)=>{const r=t.body,n=Ae(r),i=new xx({$metadata:Me(t),...n});return Ne(i,r)},eZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new qx({$metadata:Me(t),...n});return Ne(i,r)},tZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Wx({$metadata:Me(t),...n});return Ne(i,r)},rZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Gx({$metadata:Me(t),...n});return Ne(i,r)},nZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Cx({$metadata:Me(t),...n});return Ne(i,r)},iZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new vx({$metadata:Me(t),...n});return Ne(i,r)},sZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new M0({$metadata:Me(t),...n});return Ne(i,r)},oZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new kx({$metadata:Me(t),...n});return Ne(i,r)},aZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ix({$metadata:Me(t),...n});return Ne(i,r)},lZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new yx({$metadata:Me(t),...n});return Ne(i,r)},cZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new _x({$metadata:Me(t),...n});return Ne(i,r)},fZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ux({$metadata:Me(t),...n});return Ne(i,r)},Me=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),uZ=EQ(Te),Yx=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Ki(c)};function Jx(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}class dZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","InitiateAuth",{}).n("CognitoIdentityProviderClient","InitiateAuthCommand").f(hX,vX).ser(gX).de(wX).build(){}class hZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","RespondToAuthChallenge",{}).n("CognitoIdentityProviderClient","RespondToAuthChallengeCommand").f(yX,pX).ser(xX).de(EX).build(){}class vZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","SignUp",{}).n("CognitoIdentityProviderClient","SignUpCommand").f(mX,void 0).ser(bX).de(AX).build(){}function zr(){return zr=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}const yZ=["signatures"],pZ="0.0.0";function Yn(t,e,r){const n=Math.floor(Date.now()/1e3),i=n+e;return{version:pZ,issuedAt:n,expiresAt:i,name:t,data:r}}async function mZ(t,e){const r=gZ(e),n=await t.sign(new Uint8Array(r));return zr({},e,{signatures:[{sessionId:await t.sessionId(),signature:n}]})}function gZ(t){const{version:e,issuedAt:r,expiresAt:n,name:i,data:s}=t,a=sr(sG({version:e,issuedAt:r,expiresAt:n,name:i,data:s}));return ce(Et(a))}function xZ(t,e){const r=yi(t,yZ),n=t.expiresAt-t.issuedAt;return r.issuedAt=Math.floor(e.getTime()/1e3),r.expiresAt=r.issuedAt+n,r}function bZ({wallet:t,chainId:e,message:r,lifespan:n}){return Yn("signMessage",n,{wallet:t,network:e.toString(),message:r.startsWith("0x")?r:fe(sr(r))})}const wZ=["lifespan"],EZ=["lifespan"],AZ=["lifespan"],SZ=["lifespan"],CZ=["lifespan"],kZ=["lifespan"];async function PZ({lifespan:t,sessionId:e,idToken:r}){return Yn("openSession",t,{sessionId:e,idToken:r})}async function RZ(t){let{lifespan:e}=t,r=yi(t,wZ);return Yn("validateSession",e,r)}function TZ(t){let{lifespan:e}=t,r=yi(t,EZ);return Yn("finishValidateSession",e,r)}function G4(t){let{lifespan:e}=t,r=yi(t,AZ);return Yn("closeSession",e,r)}function MZ(t){let{lifespan:e}=t,r=yi(t,SZ);return Yn("listSessions",e,r)}function IZ(t){let{lifespan:e}=t,r=yi(t,CZ);return Yn("getSession",e,r)}function _Z(t){let{lifespan:e}=t,r=yi(t,kZ);return Yn("sessionAuthProof",e,r)}class OZ{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Av(n,i,s)).then(o=>Sv(o).then(a=>({session:a.session,response:a.response})),o=>{throw al.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Av(n,i,s)).then(o=>Sv(o).then(a=>({response:a.response})),o=>{throw al.new({cause:`fetch(): ${o.message||""}`})}),this.chainList=(n,i)=>this.fetch(this.url("ChainList"),Av({},n,i)).then(s=>Sv(s).then(o=>({chains:o.chains})),s=>{throw al.new({cause:`fetch(): ${s.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Av=(t={},e={},r=null)=>({method:"POST",headers:zr({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Sv=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),I0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(NZ[n]||Ir).new(r)}return r});class Ir extends Error{constructor(e,r,n,i,s){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 i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,Ir.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class Xx extends Ir{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Xx.prototype)}}class al extends Ir{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,al.prototype)}}class Zx extends Ir{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Zx.prototype)}}class eb extends Ir{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,eb.prototype)}}class tb extends Ir{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,tb.prototype)}}class I0 extends Ir{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,I0.prototype)}}class rb extends Ir{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,rb.prototype)}}class nb extends Ir{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,nb.prototype)}}class ib extends Ir{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ib.prototype)}}class sb extends Ir{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,sb.prototype)}}class ob extends Ir{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ob.prototype)}}class ab extends Ir{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ab.prototype)}}class lb extends Ir{constructor(e="TenantNotFound",r=1001,n="Tenant not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,lb.prototype)}}const NZ={0:Xx,[-1]:al,[-2]:Zx,[-3]:eb,[-4]:tb,[-5]:I0,[-6]:rb,[-7]:nb,[-8]:ib,[-9]:sb,[-10]:ob,1e3:ab,1001:lb};let Cv=function(t){return t.unknown="unknown",t.erc20Token="erc20Token",t.erc1155Token="erc1155Token",t}({});function ou(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.txHash=="string"&&typeof t.data.receipt=="object"&&typeof t.data.request=="object"}function bk(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.metaTxHash=="string"&&!t.data.txHash&&typeof t.data.request=="object"}function DZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionFailed"&&typeof t.data=="object"&&typeof t.data.request=="object"&&Array.isArray(t.data.simulations)&&typeof t.data.error=="string"}function K4(t){return ou(t)||DZ(t)||bk(t)}function LZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="signedMessage"&&typeof t.data=="object"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function jZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionAuthProof"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"&&typeof t.data.network=="string"&&typeof t.data.wallet=="string"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function BZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="feeOptions"&&typeof t.data=="object"&&Array.isArray(t.data.feeOptions)}function $Z(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function FZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function UZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionClosed"}function zZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="getSessionResponse"&&typeof t.data=="object"&&typeof t.data.session=="string"&&typeof t.data.wallet=="string"}function Q4(t){var e,r;return!!(t instanceof Ir&&((e=t.cause)!=null&&e.endsWith("intent is invalid: intent expired")||(r=t.cause)!=null&&r.endsWith("intent is invalid: intent issued in the future")))}const VZ=["token","to","value"],qZ=["token","to","id","safe","data"],HZ=["token","to","values","data"],WZ=["to","value","abi","func","args"];function GZ({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i}){return Yn("feeOptions",t,{identifier:r,wallet:e,network:n.toString(),transactions:i.map(s=>{if(!s.to||s.to===Ng)throw new Error("Contract creation not supported");return Ek(s)?{type:"transaction",to:s.to,value:ae.from(s.value||0).toHexString(),data:fe(s.data||[])}:s})})}function au({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i,transactionsFeeQuote:s,transactionsFeeOption:o}){return Yn("sendTransaction",t,{identifier:r,wallet:e,network:n.toString(),transactions:KZ(i,o).map(a=>{if(!a.to||a.to===Ng)throw new Error("Contract creation not supported");return Ek(a)?{type:"transaction",to:a.to,value:ae.from(a.value||0).toHexString(),data:fe(a.data||[])}:a}),transactionsFeeQuote:s})}function KZ(t,e){const r=[...t];if(e)switch(e.token.type){case Cv.unknown:r.push({to:e.to,value:e.value});break;case Cv.erc20Token:if(!e.token.contractAddress)throw new Error("contract address is required");r.push(cb({tokenAddress:e.token.contractAddress,to:e.to,value:e.value}));break;case Cv.erc1155Token:if(!e.token.contractAddress)throw new Error("contract address is required");if(!e.token.tokenID)throw new Error("token ID is required");r.push(fb({tokenAddress:e.token.contractAddress,to:e.to,vals:[{id:e.token.tokenID,amount:e.value}]}));break}return r}function QZ({lifespan:t,chainId:e,wallet:r,metaTxHash:n}){return Yn("getTransactionReceipt",t,{wallet:r,network:e.toString(),metaTxHash:n})}function YZ(t){let{token:e,to:r,value:n}=t,i=yi(t,VZ);return au(zr({transactions:[cb({tokenAddress:e,to:r,value:n.toString()})]},i))}function JZ(t){let{token:e,to:r,id:n,safe:i,data:s}=t,o=yi(t,qZ);return au(zr({transactions:[eee({tokenAddress:e,to:r,id:n,data:s,safe:i})]},o))}function XZ(t){let{token:e,to:r,values:n,data:i}=t,s=yi(t,HZ);const o=n.map(a=>({id:a.id,amount:ae.from(a.amount).toString()}));return au(zr({transactions:[fb({tokenAddress:e,to:r,vals:o,data:i})]},s))}function ZZ(t){let{to:e,value:r,abi:n,func:i,args:s}=t,o=yi(t,WZ);return au(zr({transactions:[wk({to:e,value:ae.from(r).toString(),data:{abi:n,func:i,args:s}})]},o))}function cb(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc20send",tokenAddress:e.token,to:e.to,value:e.value.toString()};if(r.tokenAddress!==void 0)return zr({type:"erc20send"},r);throw new Error("Invalid ERC20 transaction")}function eee(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc721send",tokenAddress:e.token,to:e.to,id:e.id,data:e.data,safe:e.safe};if(r.tokenAddress!==void 0)return zr({type:"erc721send"},r);throw new Error("Invalid ERC721 transaction")}function fb(t){const e=t,r=t;if(e.values!==void 0)return{type:"erc1155send",vals:e.values.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:e.token,to:e.to,data:e.data};if(r.vals!==void 0)return{type:"erc1155send",vals:r.vals.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:r.tokenAddress,to:r.to,data:r.data};throw new Error("Invalid ERC1155 transaction")}function wk(t){const e=t,r=t;if(e.abi!==void 0)return{type:"delayedEncode",to:e.to,value:ae.from(e.value).toString(),data:{abi:e.abi,func:e.func,args:e.args}};if(r.data!==void 0)return{type:"delayedEncode",to:r.to,value:r.value,data:r.data};throw new Error("Invalid delayed encode transaction")}function tee(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].data.network,r=t[0].data.wallet,n=t[0].expiresAt-t[0].issuedAt,i=t[0].data.identifier,s=t[0].data.transactionsFeeQuote;if(!t.every(o=>o.data.network===e))throw new Error("All packets must have the same chainId");if(!t.every(o=>o.data.wallet===r))throw new Error("All packets must have the same wallet");return Yn("sendTransaction",n,{network:e,wallet:r,identifier:i,transactions:t.flatMap(o=>o.data.transactions),transactionsFeeQuote:s})}function Ek(t){return!["transaction","erc20send","erc721send","erc1155send","delayedEncode"].includes(t.type)}class Ad{constructor(e,r,n){this.store=e,this.key=r,this.defaultValue=n}async get(){const e=await this.store.get(this.key);return e||this.defaultValue}async set(e){e?await this.store.set(this.key,e):await this.store.set(this.key,null)}}class Ak{constructor(){this.store=void 0,Mh.isAvailable()?this.store=new Mh:this.store=new ree}async get(e){return this.store.get(e)}async set(e,r){return this.store.set(e,r)}}class Mh{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(!Mh.isAvailable())throw new Error("No localStorage")}async get(e){return window.localStorage.getItem(e)}async set(e,r){r?window.localStorage.setItem(e,r):window.localStorage.removeItem(e)}}class ree{constructor(){this.store={},this.store={}}async get(e){return this.store[e]||null}async set(e,r){r?this.store[e]=r:delete this.store[e]}}const bp="seq-waas-session-p256k1",wp="seq-waas-session";async function Sk(t,e){const r=await e.get(bp,wp,t);if(!r)throw new Error("No private key found");const n=new ss(r);return{sessionId(){return n.getAddress()},sign(i){return n.signMessage(i)},clear:async()=>{await e.delete(bp,wp,t)}}}async function nee(t,e){const n=await new ss(t).getAddress();return await e.set(bp,wp,n,t),Sk(n,e)}async function iee(t){const e=ss.createRandom();return nee(e.privateKey,t)}let Ck=function(t){return t[t.ECDSAP256K1=0]="ECDSAP256K1",t[t.ECDSAP256R1=1]="ECDSAP256R1",t}({});const Ep="seq-waas-session-p256r1",Ap="seq-waas-session";async function kk(t,e,r){const n=await r.get(Ep,Ap,t);if(!n||!n.privateKey)throw new Error("No private key found");const i=new TextEncoder;return{sessionId:async()=>{const s=await e.exportKey("raw",n.publicKey),o=new Uint8Array(s.byteLength+1);return o[0]=Ck.ECDSAP256R1,o.set(new Uint8Array(s),1),fe(o)},sign:async s=>{typeof s=="string"&&(s.startsWith("0x")?(s=s.slice(2),s=ce(s)):s=i.encode(s));const o=await e.sign({name:"ECDSA",hash:{name:"SHA-256"}},n.privateKey,s);return fe(new Uint8Array(o))},clear:async()=>{await r.delete(Ep,Ap,t)}}}async function see(t,e,r){const n=await aee(e,t.publicKey);return await r.set(Ep,Ap,n,t),kk(n,e,r)}async function oee(t,e){const r=await t.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"]);return see(r,t,e)}async function aee(t,e){const r=await t.exportKey("raw",e),n=new Uint8Array(r.byteLength+1);return n[0]=Ck.ECDSAP256R1,n.set(new Uint8Array(r),1),fe(n)}async function Sp(t,e,r){if(!r)throw new Error("No secure store available");return e?kk(t,e,r):Sk(t,r)}async function lee(t,e){if(!e)throw new Error("No secure store available");return t?oee(t,e):iee(e)}const Cp=Object.entries(it).reduce((t,[e,r])=>(t[r.name]=r.chainId,t),{}),cee=Object.entries(Cp).reduce((t,[e,r])=>(t[r]=e,t),{});function kv(t){const e=typeof t=="number"?t:parseInt(t);if(e in cee)return e;const r=t.toString().toLowerCase();if(r in Cp)return Cp[r];throw new Error(`Unknown network: ${t}`)}const Pk=()=>Rk()?new fee:null;function Rk(){return typeof window=="object"&&typeof window.crypto=="object"&&typeof window.crypto.subtle=="object"}class fee{constructor(){if(!Rk())throw new Error("window.crypto.subtle is not available")}async generateKey(e,r,n){return window.crypto.subtle.generateKey(e,r,n)}async exportKey(e,r){const n=await window.crypto.subtle.exportKey(e,r);return new Uint8Array(n)}async digest(e,r){const n=await window.crypto.subtle.digest(e,r);return new Uint8Array(n)}async sign(e,r,n){const i=await window.crypto.subtle.sign(e,r,n);return new Uint8Array(i)}async verify(e,r,n,i){return window.crypto.subtle.verify(e,r,n,i)}getRandomValues(e){const r=new Uint8Array(e);return window.crypto.getRandomValues(r)}}const Tk=()=>Mk()?new uee:null;function Mk(){return typeof indexedDB=="object"}class uee{constructor(){if(this.db=void 0,!Mk())throw new Error("IndexedDB is not available");this.db=null}async openDB(e,r,n){return this.db?this.db:(this.db=await vG(e,1,{upgrade(i){i.createObjectStore(r)}}),this.db)}async get(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readonly"),o=await i.get(r,n);return await s.done,o}async set(e,r,n,i){const s=await this.openDB(e,r,1),o=s.transaction(r,"readwrite");return await s.put(r,i,n),await o.done,!0}async delete(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readwrite");return await i.delete(r,n),await s.done,!0}}const dee="@0xsequence.waas.wallet",hee="@0xsequence.waas.session_id",vee="@0xsequence.waas.status",Ei=5*60;class yee{constructor(e={network:1},r=new Ak,n=Pk(),i=Tk()){this.config=e,this.store=r,this.cryptoBackend=n,this.secureStoreBackend=i,this.VERSION="0.0.0-dev1",this.status=void 0,this.sessionId=void 0,this.wallet=void 0,this.sessionObservers=[],this.gettingSessionIdPromise=void 0,this.status=new Ad(this.store,vee,"signed-out"),this.sessionId=new Ad(this.store,hee,void 0),this.wallet=new Ad(this.store,dee,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const e=await this.wallet.get();if(!e)throw new Error("No wallet");return e}async commonArgs(e){var r;return zr({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Ei,chainId:kv(e.network||this.config.network)})}async signIntent(e){const r=await this.sessionId.get();if(r===void 0)throw new Error("session not open");const n=await Sp(r,this.cryptoBackend,this.secureStoreBackend);return mZ(n,e)}async signUsingSessionKey(e){const r=await this.sessionId.get();if(!r)throw new Error("session not open");return(await Sp(r,this.cryptoBackend,this.secureStoreBackend)).sign(e)}async getSessionId(){var e=this;if(this.gettingSessionIdPromise)return this.gettingSessionIdPromise;const r=async function(){let i=await e.sessionId.get();return i||(i=await(await lee(e.cryptoBackend,e.secureStoreBackend)).sessionId(),await e.sessionId.set(i),e.signalObservers(e.sessionObservers,i)),e.gettingSessionIdPromise=void 0,i};return this.gettingSessionIdPromise=r(),this.gettingSessionIdPromise}async signIn({idToken:e}){if(await this.status.get()!=="signed-out")throw await this.completeSignOut(),new Error("you are already signed in");const n=await this.getSessionId(),i=await PZ({idToken:e,sessionId:n,lifespan:Ei});return await this.status.set("pending"),this.signIntent(i)}onSessionStateChanged(e){return this.sessionObservers.push(e),()=>{this.sessionObservers=this.sessionObservers.filter(r=>r!=e)}}async signOut({lifespan:e,sessionId:r}={}){if(r=r||await this.sessionId.get(),!r)throw new Error("session not open");const n=G4({lifespan:e||Ei,sessionId:r});return this.signIntent(n)}async signOutSession(e){const r=G4({lifespan:Ei,sessionId:e});return this.signIntent(r)}async listSessions(){const e=MZ({lifespan:Ei,wallet:await this.getWalletAddress()});return this.signIntent(e)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.wallet.set(void 0),this.sessionId.set(void 0)]),this.signalObservers(this.sessionObservers,null)}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending")throw new Error("No pending sign in");return await Promise.all([this.status.set("signed-in"),this.wallet.set(e.data.wallet)]),e.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async sessionAuthProof(e){var r;const n=_Z({lifespan:(r=e.lifespan)!=null?r:Ei,network:kv(e.network||this.config.network).toString(),wallet:await this.getWalletAddress(),nonce:e.nonce});return this.signIntent(n)}async signMessage(e){var r;const n=bZ(zr({chainId:kv(e.network||this.config.network)},e,{lifespan:(r=e.lifespan)!=null?r:Ei,wallet:await this.getWalletAddress()}));return this.signIntent(n)}async sendTransaction(e){const r=au(await this.commonArgs(e));return this.signIntent(r)}async getTransactionReceipt(e){const r=QZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=YZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=JZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=XZ(await this.commonArgs(e));return this.signIntent(r)}async callContract(e){const r=ZZ(await this.commonArgs(e));return this.signIntent(r)}async feeOptions(e){const r=GZ(await this.commonArgs(e));return this.signIntent(r)}async validateSession({deviceMetadata:e}){const r=await this.sessionId.get();if(!r)throw new Error("session not open");const n=await RZ({lifespan:Ei,sessionId:r,deviceMetadata:e,wallet:await this.getWalletAddress()});return this.signIntent(n)}async getSession(){const e=await this.sessionId.get();if(!e)throw new Error("session not open");const r=IZ({sessionId:e,wallet:await this.getWalletAddress(),lifespan:Ei});return this.signIntent(r)}async finishValidateSession(e,r){const n=await this.sessionId.get();if(!n)throw new Error("session not open");const i=await this.getWalletAddress(),s=TZ({sessionId:n,wallet:i,lifespan:Ei,salt:e,challenge:r});return this.signIntent(s)}async batch(e){const r=tee(e);return this.signIntent(r)}signalObservers(e,r){e.forEach(n=>n(r))}async updateIntentTime(e,r){const n=xZ(e,r);return this.signIntent(n)}}const pee={rpcServer:"http://localhost:9123",emailRegion:"us-east-2"};class mee{constructor(e,r){this.region=e,this.clientId=r,this.cognitoMemo=void 0}cognito(){return this.cognitoMemo||(this.cognitoMemo=new dX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new vZ({ClientId:this.clientId,Username:e,Password:"aB1%"+gee(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new dZ({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:e}}))}async initiateAuth({email:e}){let r;try{r=await this.signIn(e)}catch(n){if(n instanceof M0&&n.message.includes("user not found"))await this.signUp(e),r=await this.signIn(e);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:e}}async finalizeAuth({instance:e,email:r,answer:n,sessionHash:i}){const s=await this.cognito().send(new hZ({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n},ClientMetadata:{SESSION_HASH:i}}));if(!s.AuthenticationResult||!s.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:s.AuthenticationResult.IdToken}}}function gee(t){return Array.from(xee(t)).map(e=>e.toString(16).padStart(2,"0")).join("")}function xee(t){const e=new Uint8Array(t);if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto.getRandomValues(e);{console.warn("window.crypto.getRandomValues is not available. Falling back to less secure Math.random().");const r=new Uint8Array(t);for(let n=0;n{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==e)}}async handleValidationRequired({onValidationRequired:e}={}){var r;if(!(e?e():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}headers(){return{"X-Access-Key":this.config.projectAccessKey}}async sendIntent(e){if(!await this.waas.getSessionId())throw new Error("session not open");try{return(await this.client.sendIntent({intent:e},this.headers())).response}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return(await this.client.sendIntent({intent:i},this.headers())).response}throw n}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken});if(!xG(e.idToken).iss)throw new Error("Invalid idToken");await this.deviceName.set(r);try{const s=await this.registerSession(n,r);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:s.session.id,wallet:s.response.data.wallet}}),{sessionId:s.session.id,wallet:s.response.data.wallet}}catch(s){throw await this.waas.completeSignOut(),s}}async registerSession(e,r){try{return await this.client.registerSession({intent:e,friendlyName:r},this.headers())}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return await this.client.registerSession({intent:i,friendlyName:r},this.headers())}throw n}}async refreshSession(){throw new Error("Not implemented")}async getSessionId(){return this.waas.getSessionId()}async getSessionHash(){const e=(await this.waas.getSessionId()).toLowerCase();return Et(sr(e))}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionId();if(!n)throw new Error("session not open");const i=e||n;try{const s=await this.waas.signOutSession(i),o=await this.sendIntent(s);if(!UZ(o))throw new Error(`Invalid response: ${JSON.stringify(o)}`)}catch(s){if(r)throw s;console.error(s)}if(i===n){if(!this.secureStoreBackend)throw new Error("No secure store available");(await Sp(n,this.cryptoBackend,this.secureStoreBackend)).clear(),await this.waas.completeSignOut(),await this.deviceName.set(void 0)}}async listSessions(){const e=await this.waas.getSessionId();if(!e)throw new Error("session not open");const r=await this.waas.listSessions();return(await this.sendIntent(r)).data.map(i=>zr({},i,{isThis:i.id===e}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!FZ(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const e=await this.waas.getSession(),r=await this.sendIntent(e);if(!zZ(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async sessionAuthProof({nonce:e,network:r,validation:n}){const i=await this.waas.sessionAuthProof({nonce:e,network:r});return await this.trySendIntent({validation:n},i,jZ)}async useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSessionId()}`;return zr({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if($Z(i)&&await this.handleValidationRequired(e.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(e){const r=await this.waas.signMessage(await this.useIdentifier(e));return this.trySendIntent(e,r,LZ)}async trySendTransactionIntent(e,r){let n=await this.trySendIntent(r,e,K4);for(;bk(n);){await new Promise(o=>setTimeout(o,1e3));const i={metaTxHash:n.data.metaTxHash,network:e.data.network,identifier:e.data.identifier,validation:r.validation},s=await this.waas.getTransactionReceipt(await this.useIdentifier(i));n=await this.trySendIntent(i,s,K4)}return n}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async feeOptions(e){const r=await this.waas.feeOptions(await this.useIdentifier(e));return this.trySendIntent(e,r,BZ)}async networkList(){const e=[],r=await this.client.chainList({"X-Access-Key":this.config.projectAccessKey});for(const n of r.chains)e.push({id:n.id,name:n.name,isEnabled:n.isEnabled});return e}onSessionStateChanged(e){return this.waas.onSessionStateChanged(e)}async fetch(e,r){const n=await window.fetch(e,r),i=n.headers.get("date");return i&&(this.lastDate=new Date(i)),n}}async function _0({transactions:t,network:e}){const r=await st.feeOptions({transactions:t,network:e==null?void 0:e.id});return r.data.feeQuote&&r.data.feeOptions?{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!1}:{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!0}}function O0(t){var s;const{feeOptions:e,onSelected:r}=t,[n,i]=p.useState();return p.useEffect(()=>{e&&e.length>0&&(i(e[0]),r(e[0]))},[e]),p.useEffect(()=>{n&&r(n)},[n]),e?$.jsxs(re,{marginTop:"5",children:[$.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options:"}),$.jsx(re,{marginTop:"3"}),$.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:o=>{const a=e.find(l=>l.token.name===o);a&&i(a)},value:(s=n==null?void 0:n.token)==null?void 0:s.name,options:[...e.map(o=>{var a,l,c;return{label:$.jsx(re,{alignItems:"center",gap:"2",children:$.jsxs(Se,{children:[(a=o==null?void 0:o.token)==null?void 0:a.name," ",Gg(o==null?void 0:o.value,(l=o==null?void 0:o.token)==null?void 0:l.decimals)]})}),value:String((c=o==null?void 0:o.token)==null?void 0:c.name)}})]})]}):$.jsx(re,{})}const Aee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function See(t){const[e,r]=p.useState(),[n,i]=p.useState("ETH"),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(),[v,g]=p.useState(!1),[y,w]=p.useState(),[x,b]=p.useState(),[S,P]=p.useState(),[_,D]=p.useState(),[M,L]=p.useState(!1);p.useEffect(()=>{z()},[]),p.useEffect(()=>{var Z,O;if(t.network){const h=DE(t.network.name);if(h){const A=h.name in{polygon:1,mumbai:1}?"MATIC":"ETH";i(A),z(),(Z=h.blockExplorer)!=null&&Z.rootUrl&&o((O=h.blockExplorer)==null?void 0:O.rootUrl)}}},[t.network]);const z=async()=>{if(!t.network)return;const Z=DE(t.network.name);if(!Z)return;const O=await st.getAddress(),A=await new JC(R9(Z.name),Aee).getEtherBalance({accountAddress:O});r(ae.from(A.balance.balanceWei))},H=async(Z,O)=>{const h=await _0({transactions:[{to:Z,value:NE(O)}],network:t.network});if(h.feeQuote&&h.feeOptions){b(h.feeOptions),D(h.feeQuote),console.log("feeOptions",h);return}L(!0),console.log("tx sponsored")},Y=async(Z,O)=>{var h;try{w(void 0),g(!0);const A=await st.sendTransaction({transactions:[{to:Z,value:NE(O)}],network:(h=t.network)==null?void 0:h.id,transactionsFeeOption:S,transactionsFeeQuote:_});ou(A)?d(A.data.txHash):w(A.data.error),g(!1)}catch(A){console.error(A),g(!1)}finally{D(void 0),b(void 0),P(void 0),L(!1)}};return $.jsxs(re,{children:[$.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Native token balance: ",WW(e||0)," ",n]}),$.jsx(pr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:z}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"sendNativeTokenTo",type:"text",onChange:Z=>{l(Z.target.value)},value:a,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"sendNativeTokenAmount",type:"text",onChange:Z=>{f(Z.target.value)},value:c,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),y&&$.jsxs(re,{marginTop:"3",children:["Transaction failed: ",y]}),$.jsx(O0,{feeOptions:x,onSelected:P}),M&&$.jsx(re,{marginTop:"5",children:$.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v?$.jsx(re,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:$.jsx(zi,{})}):$.jsxs(re,{children:[$.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:a===""&&c==="",onClick:()=>H(a,c)}),$.jsx(pr,{marginTop:"5",label:"Send native token",disabled:a===""&&c==="",onClick:()=>Y(a,c)})]}),u&&$.jsxs(re,{marginTop:"3",children:[$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),$.jsx("br",{}),$.jsx("a",{href:`${s}tx/${u}`,target:"_blank",rel:"noopener noreferrer",children:u})]})]})}function Cee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState(!0),[o,a]=p.useState(),l=async c=>{s(!0),e(void 0);try{await st.dropSession({sessionId:c}),e(await st.listSessions())}catch(f){a(f.message),e(await st.listSessions())}s(!1)};return p.useEffect(()=>{Promise.all([st.listSessions(),st.getSessionId()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),$.jsxs(re,{children:[$.jsxs(re,{marginBottom:"5",children:[$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&$.jsx($.Fragment,{children:t.map(c=>$.jsx(re,{children:$.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:[c.friendlyName,!c.isThis&&$.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&$.jsx($.Fragment,{children:" (current)"})]})},c.id))}),i&&$.jsx(zi,{})]}),o&&$.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function kee(t){const[e,r]=p.useState(""),[n,i]=p.useState(),s=async()=>{var a;const o=await st.signMessage({message:e,network:(a=t.network)==null?void 0:a.id});i(o.data.signature)};return $.jsxs(re,{children:[$.jsx(Pr,{name:"signMessageText",type:"text",onChange:o=>{r(o.target.value),n!=""&&i("")},value:e,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),$.jsx(pr,{marginTop:"5",label:"Sign message",disabled:e==="",onClick:()=>s()}),n&&n!==""&&$.jsxs(re,{flexDirection:"column",marginTop:"5",children:[$.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",e,":"]}),$.jsx(re,{children:$.jsx(Se,{as:"p",wordBreak:"break-word",children:n})})]})]})}function Pee(t){const[e,r]=p.useState(""),[n,i]=p.useState(""),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(),[u,d]=p.useState(!1),[v,g]=p.useState(),[y,w]=p.useState(),[x,b]=p.useState(),[S,P]=p.useState(),[_,D]=p.useState(!1),M=async()=>{const z=await _0({transactions:[wk({to:e,abi:n,func:s,args:JSON.parse(a),value:"0"})],network:t.network});if(z.feeQuote&&z.feeOptions){w(z.feeOptions),P(z.feeQuote),console.log("feeOptions",z);return}D(!0),console.log("tx sponsored")},L=async()=>{var z;try{g(void 0),d(!0);const H=await st.callContract({network:(z=t.network)==null?void 0:z.id,to:e,abi:n,func:s,args:JSON.parse(a),value:0,transactionsFeeOption:x,transactionsFeeQuote:S});ou(H)?f(H.data.txHash):g(H.data.error),d(!1)}catch(H){console.error(H),d(!1)}};return $.jsxs(re,{children:[$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"callContractAddress",type:"text",onChange:z=>{r(z.target.value)},value:e,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"callContractAbi",type:"text",onChange:z=>{i(z.target.value)},value:n,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"callContractMethod",type:"text",onChange:z=>{o(z.target.value)},value:s,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{name:"callContractArgs",type:"text",onChange:z=>{l(z.target.value)},value:a,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),$.jsx(O0,{feeOptions:y,onSelected:b}),_&&$.jsx(re,{marginTop:"5",children:$.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v&&$.jsxs(re,{marginTop:"3",children:["Transaction failed: ",v]}),u?$.jsx(re,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:$.jsx(zi,{})}):$.jsxs(re,{children:[$.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>M()}),$.jsx(pr,{marginTop:"5",label:"Call contract",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>L()})]}),c&&$.jsxs(re,{marginTop:"3",children:[$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),$.jsx("br",{}),$.jsx("a",{href:`https://polygonscan.com/tx/${c}`,target:"_blank",rel:"noopener noreferrer",children:c})]})]})}const Y4=[{label:"Custom Token",value:"Custom"},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function Ree(t){const[e,r]=p.useState(Y4[0].value),[n,i]=p.useState(""),[s,o]=p.useState(!0),[a,l]=p.useState("---"),[c,f]=p.useState(""),[u,d]=p.useState(""),[v,g]=p.useState(""),[y,w]=p.useState(""),[x,b]=p.useState(!1),[S,P]=p.useState(0),[_,D]=p.useState(),[M,L]=p.useState(),[z,H]=p.useState(),[Y,Z]=p.useState(!1);p.useEffect(()=>{O(n)},[n]);const O=async I=>{var j;if(!Az(I)){l("---");return}l("...");const R=new k9(`https://nodes.sequence.app/${(j=t.network)==null?void 0:j.name}`),N=new jH(I,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],R);try{const[C,m,T]=await Promise.all([N.balanceOf(st.getAddress()),N.decimals(),N.symbol()]);P(m),l(`${Gg(C,m)} ${T}`)}catch{l("---")}},h=async()=>{const I=await _0({transactions:[cb({token:n,to:c,value:Lf(u,S).toString()})],network:t.network});if(I.feeQuote&&I.feeOptions){D(I.feeOptions),H(I.feeQuote),console.log("feeOptions",I);return}Z(!0),console.log("tx sponsored")},A=async()=>{var I;try{w(""),b(!0);const R=await st.sendERC20({token:n,to:c,value:Lf(u,S),network:(I=t.network)==null?void 0:I.id,transactionsFeeOption:M,transactionsFeeQuote:z});ou(R)?g(R.data.txHash):w(R.data.error)}catch(R){console.error(R)}finally{b(!1)}},k=I=>{r(I),I==="Custom"?(i(""),o(!0)):(i(I),o(!1))};return $.jsxs(re,{children:[$.jsxs(re,{marginTop:"5",children:[$.jsx(d0,{name:"token",options:Y4,value:e??"",onValueChange:I=>k(I)}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{type:"text",value:n,disabled:!s,onChange:I=>i(I.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),$.jsxs(re,{marginTop:"3",children:[$.jsxs(Se,{variant:"normal",color:"text100",children:["Token Balance: ",a]}),$.jsx(pr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>O(n)})]}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{type:"text",value:c,onChange:I=>f(I.target.value),placeholder:"Destination Address"})}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{type:"text",value:u,onChange:I=>d(I.target.value),placeholder:"Amount"})}),y&&$.jsx(re,{marginTop:"3",children:$.jsxs(Se,{color:"error",children:["Error: ",y]})}),$.jsx(O0,{feeOptions:_,onSelected:L}),Y&&$.jsx(re,{marginTop:"5",children:$.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),x?$.jsx(re,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:$.jsx(zi,{})}):$.jsxs(re,{children:[$.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:n===""&&c==="",onClick:()=>h()}),$.jsx(pr,{marginTop:"5",label:"Send Token",onClick:A})]}),v&&$.jsxs(re,{marginTop:"3",children:[$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),$.jsx("a",{href:`https://polygonscan.com/tx/${v}`,target:"_blank",rel:"noopener noreferrer",children:v})]})]})}const Tee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function Mee(t){var a;const[e,r]=p.useState(""),[n,i]=p.useState("");p.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return $.jsxs(re,{style:s,children:[$.jsx(re,{style:o,children:$.jsx(d0,{name:`sendERC1155TokenId${t.index}`,value:e,disabled:!t.options,onValueChange:l=>{r(l)},options:((a=t.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),$.jsx(re,{style:o,children:$.jsx(Pr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),$.jsx(re,{style:o,children:$.jsx(Pr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),$.jsx(re,{style:o,children:$.jsx(pr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function Iee(t){const[e,r]=p.useState(""),[n,i]=p.useState([]),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(!1),[v,g]=p.useState(void 0),[y,w]=p.useState(),[x,b]=p.useState(),[S,P]=p.useState(),[_,D]=p.useState(!1),M=()=>{i([...n,{tokenId:"",amount:""}])},L=async()=>{if(!e||!t.network)return;const O=t.network.name,h=new JC("https://"+O+"-indexer.sequence.app",Tee),A=e,k=await st.getAddress(),I=!0;g(await h.getTokenBalances({contractAddress:A,accountAddress:k,includeMetadata:I}))};p.useEffect(()=>{L()},[e]);const z=(O,h)=>{const A=[...n];A[O]=h,i(A)},H=O=>{const h=[...n];h.splice(O,1),i(h)},Y=async()=>{const O=await _0({transactions:[fb({to:s,token:e,values:n.map(h=>({id:h.tokenId,amount:Lf(h.amount,0)}))})],network:t.network});if(O.feeQuote&&O.feeOptions){w(O.feeOptions),P(O.feeQuote),console.log("feeOptions",O);return}D(!0),console.log("tx sponsored")},Z=async()=>{var O;try{f(""),d(!0);const h=await st.sendERC1155({to:s,token:e,values:n.map(A=>({id:A.tokenId,amount:Lf(A.amount,0)})),network:(O=t.network)==null?void 0:O.id,transactionsFeeOption:x,transactionsFeeQuote:S});ou(h)?l(h.data.txHash):f(h.data.error)}catch(h){console.error(h)}finally{d(!1)}};return $.jsxs(re,{children:[$.jsx(re,{marginBottom:"5",children:$.jsx(Pr,{type:"text",value:e,onChange:O=>r(O.target.value),placeholder:"Token Contract Address"})}),$.jsx(re,{marginBottom:"5",children:$.jsx(pr,{label:"Fetch metadata",onClick:()=>L()})}),n.map((O,h)=>$.jsx(re,{marginBottom:"3",children:$.jsx(Mee,{index:h,options:v,onChange:(A,k,I)=>z(A,{tokenId:k,amount:I}),removeTokenEntry:H})},h)),$.jsx(pr,{label:"Add Token",onClick:M}),$.jsx(re,{marginTop:"5",children:$.jsx(Pr,{type:"text",value:s,onChange:O=>o(O.target.value),placeholder:"Destination Address"})}),c&&$.jsx(re,{marginTop:"3",children:$.jsxs(Se,{color:"error",children:["Error: ",c]})}),$.jsx(O0,{feeOptions:y,onSelected:b}),_&&$.jsx(re,{marginTop:"5",children:$.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),u?$.jsx(re,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:$.jsx(zi,{})}):$.jsxs(re,{children:[$.jsx(pr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&s===""&&n.length!==0,onClick:()=>Y()}),$.jsx(pr,{marginTop:"5",label:"Send Tokens",onClick:Z})]}),a&&$.jsxs(re,{marginTop:"3",children:[$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),$.jsx("a",{href:`https://polygonscan.com/tx/${a}`,target:"_blank",rel:"noopener noreferrer",children:a})]})]})}const Qu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADaRJREFUeJztXWlsFdcVRmpa8SNSVTVSEmWpqiZR1LT8iBQpSUPVqEJV/vUHqhBK1ffGENJsCiGEJM6bwWwGh0DYF2MIW9gxizEYsGMIYglxjAuFQkMwipHfzDyvD9vYBqb3zHvjDs+z3Fneu+c++0ifogAen3vPN+d+524zYkSeWUS69rMCURlVICmvCqI6VxCVLQTVBOcIGglaCDoJtAzAn6kEPxB8R3CIYDPBLPKccRMK479l3bZhszAhJj9FgvQ2wQ6CBoI+i+CGhaQgqed0UknKRCEW/xXr9g8509/w6Yl/pN/sG1kMNi0gq2wvkNS/RqTmkaz7Jy/NFPTDBF0Igm6HdoJ9w2QIyUiKfTY9DmMOuh3iBKujYvwp1v3InZE3aCzpvDoEQQwLxyErsO5X9EY6apKQUuGsA5YtnCcichzrfkZn6Tc+nwM/TAQri4ry86Qz6hEEhBWqBUl+lnUccm4RSfmFkBJ3txEEgTV6CMqGTNVAGhsRUjNurDseG64Lovwy6/hkzQjD7yeN3Imgo7FjQ95lg/RY34Sgc3nBFUGKP806bqEYacxUIbvz8/mKHlIpRFnHz7fB9K2QEnqsO5JvxORFpC/vYx1PT5ZW+d8y77z8QRU3ukCQmn9DHL6KoNPyDfXRIuVB1vF1NJKuRgnDJV42cV2INePcgzAc/CFMAl6DX7KuTZu3to25H1yTAOpVHoMPkFtua7Vnu7V/zlKZ++KHBMw1QXp27xqCzvCM8uouDezkuR5t9c4O5v74xNmI1HQ/o+DrdT6Xpd778xNad8/dAQJAFvhgQYK5Xz5RxWSeQOB4kqf+Uq9mmEGAPTU3tQKJvW++EJOLcxx8dSrzRvsECD+zGQQAFK/hUhCmICljcxL89MIOt3P7auttWwIcPtmlvTWHS0EI6BEk+cmsBj8t+rhd1dtX26VlmpkAgFJ+BSHgUlanjMkv2IOgkb4wbWHLgPBzIoAuCMm/Ze1vAMzLVvDHIWicb5iFnxsB9n7FsSAkIMP0C6EGP536uZzsAWQKPzcCADidITTQGOpQQB64FUGjfCNT+NEQgHNBCKXhrHCCLykvCxyrfivhR0OAPBCE/aFUBeRBpxE0xhfshB8tAXgXhFFRqQwa/EmsGxEE5/5jLfy8EIB7QRiTnw9CAG6Pay3Y0O4afBoC5IEgrBtyb/9rRc7CzysBjp7q5lsQSsqYIfX2uwk/rwQAlO3mWhB6ywIFkvoqAqd9AYRfb5+z8PNDAMCHn3MsCL1oAfIDZ1g77BcXvncXfn4JwLcglCtog/8ce2f9YdnWDk/B90oAAMwqsm6nf8R/TUMALjd6wL4+WuEXhADVZ7q1t4s5FYQx+WPH4Kfn/NuZO+oDB47TC78gBACs39vJvL0+oThuH+NV/IHwu+395fdNAMBHizgVhDHlT07pv4q5gz5w8Yc+f9EPQID9tTe1idPZt9075JVO6Z+7+/hW7uj0HfwgBAB8+gWXgrDdchjgMf37FX5hEQAE4TtzOdxObjUMkL8oZ+6YRxw84U/4hUUAwMb9HArCmCxaEYCrzZ5BhF+YBAB8soQ7QXj53uBL6hMInPKEIMIvbALwKAgLRPVh09uvTmbtkBcEFX5hEwAwnzNBGBWVV8zpfwdrh2gRhvDLBgG4E4QxuchMgH8zd4gSVSe7Qwt+mATgUBAeTtf/bXDKtweBQ64oXBKO8AOD5zTe6NOndWEHcFgk4EgQ9ujzAQVS4ncInKFCGMIP9gpcbuzVjtelAgYHQmeubNVWbu/QKo7dHGqC8HGoAP6OwBFXlO4MJvySXXe081d6tWPf3hswIEDRitYBLN7crh8VD0IC2I/Iur8oMRrG/7kIHHEECL9E+x1fgVeIYKy/dEs7ZhOsTAIYAFW/vSqpffVNXgvC8UCALQgccUTNGW/C7+5dTWuS+7WzF9wFnh0BDMwta9M27OvUffBCgk0VPAhCuRAIcJi9I/YQl7VSCz9D2HlR9m4EMDCntE0/KeRFMOIXhGopEOAce0fscfmau/DLFHZeQEsAA14EI2xSgS3qrPvQAYeAAI0IHLHEuj3Ows9O2GWTAF4F4+ebUAvCBiBACwJHBgGEX3vSWvi5CbtcEYBGMMKfvTsPrSBsAgJYfUiZOWrP9vgWdrkmgJtg3Hwgybw/bZAYgcCJQTALPz/CjhUBnASjRNrEul+tgJIA/73eF0jYsSaAlWCs/LpLe30mvu3k6AgAwiqosMNCgEzBOGMlviyAjgAwjw4ptNrjxAtmAkwneO/TBMpjZWhF4BuzVa2svJN7AsDWtUkz2PenDXQRiPr2rw8WtGi7jwZfpcs1AWJLWrQ3Z+Mb8zPQyMU9AJA6Z61u03cBYycApHuo+zGmewvUAQG+Q+AIFWBYWL6tAy0BIFtxtBcAUAkEOIrAkQHAmLlqh/NtHCCodh4JZ1gIgwCFi1u0N1y+OgJzG/CdAtb9m4ElKI+Dl1ff1OcCIJ06/Tv4+6DDQhACTF/eqq/7Fzj4CDpgU0VSW1uO8YoZeRpsCZ/F3pF7MYGk0as/9ml9/Zp2or7HcXMFpFyosf2WjX4JMPWzhGO6n5D26+jpbm3/sZsoJ4GiojIOtoSNZ+2IFaaYPuvSkbyjbTnoPJ8Ow8KXB5JZJwCke7dgwr+DpWDjd3y8GO2+gBdHEBY8jcARS6wtv3c5uEm+7TosxJa2ahXH6YcFWgKI5LluN4NMLknoRDU/f9FmvMvB0Zj6KGwLv09AvC38m/O3Bi0Hn/7XLe3dEudhATZm0gwLNASYQrLLBJd0D3P+kO7NzwYtMwFvOdhqOhuo1CFwyBJvzlG11o7B+wJu9d7VJ4gmzbB/K+GNhU0lfgkAt4A4PR8wu9R6fuLoqS7M+wAAh8wng1BvDIW1gTs2m4JhWChZ55xmYQyGt5GWAJDu3W4Gff8zKEXtNQf4zLrfXFBoPh08EYFDjjjsciSs7mKvnqrtft5ukclMAJpFm9dIRlizq0OrcdguDlkH/UxgTPnz/wkQUx9j7pALYJxtvNHvSAIoG/fXdjmm7cxFJoMANIs2sPWrymVXMAwHPHyKloj/BzIviLjG2ik3QJBg7HczOEQCoszpWcYi08xVra6LNvB77YaQTCAu+cxosLohZD0Cx1yxfh/9ETG4NvYjh/t9IU07pWogxhd7O6lPBy3dgrfky4A0mADT1b8hcIwKsCOY1mBYgAC6qXkzYLiB7dxHTtHPJyAv+e5BNKY8N4gA6fkALm4JtSsNnQxmE0t3uR/XgkWbfbXeFppgF/B7DgIUGeIRqfmngwiQHgb2InCQCgs3ttuWhk5mt8j0VnFq0cbPYdDiMvQlnxnzLYPP2zAAqPZ4aNQw8yITpPtlW9sHzeLRAg6B8pL6AZbpn8dhAABl249x59LQyWBYOHLa/3IyzPbxUPKZ8L1t+jcNA2UIHKUGrM719dN/ISTTghw4+WQpFyXfAEjtP9kx+CkCJLi7MxCOXuWaACu2cVPyDSAixh92JUA6C5xg7axXeP1UTBACQMnnpaxEgo1UwQeLSuoYBA57AiwPey0N/RKAo5JvAI7izyYLXGDttFcs+ZLuY5FBCMDpFfE1noKvZwExPg6B456Reaw8TAJsPZjkquQzEBXlFz0TgNcsAKVhPEF/myQtAaDk4/Trod7f/oEswKEWAMB2bdrSkJYA0nJ8J3tp4PvtN2WBr1k3wg9gqTcsArgdVEGMNYGCrxNASsCu4X4EjfGMi1fD+Xz86/yVfICkEJPdPxRJY1FRWYqgQZ5hPlvglwBT8B3nogKJ2dRQgg8WkRT4ohja6+Sc4FYaOhGAozt/M9HgOufv1YiY+AuChvmC1dkCNwJsO8RnyQcgsXom1OAbRh6+hnXj/ABW7OxKQysCQMn3zlwux30IfiwrwQcjaWUk+SVXWDfSD+zOFlgRwO34GVaQcf9U6Kk/09JVAdqjZE6ARRw3AuA8xk2FZCQWfySrwTeMpJkoggZ7hnHs3I4AWI9x04C8/WNyEnzDBFFdxLrRfpBZGpoJAPv/WfvnM/juGz3CNtg+RjIBl18bNx87NwiA/FZvh+DL6yLStZ/knAApEujzA/WsO8EPjNIQCLDrCLclX2XWRZ87CZofFDicJDLOFsBdxJyWfA3RIuXnTINvWERUH+eRBFAalqzjcoNHQ0SUH3CPTA6NVxJwCHzBN2yYBEM4+IbBZITAqTBEjko0Y76bwZQxryUiRqRKPWUk67h6stQ8gVrMuvN4B0zyMKvzwzDC3rECp2sHjJGMSjme3s2WCZL6JGnQJQSdygX0Vb1cLezkylK6QFnIunOxA7ZyMZ/dy6aRIeEPwnCpaIUG0je/Zx2fnFi6SpgpDGsDQG9K6OXxW29nQkx5hnTALgRBYIXNeTfW+zGSDcYQoL2vOAuoicaUUaz7HZ0NASLUBD6qNRSMjImjSWftRhCwsLBl+I33YRFRfoKQIUY6MI4giJ5A/G7SxZ3Y/BDrfuTe0nMIowmWC7hvMYuTFF9C3vYXuJ6+xWwGGUhnzxFwzC7WE3+mDQedkUVF9SESgFcESS0iwagV4FRs9oINz64gKIT79snb/kvW7R82C4tKLY8RQvyREGO8HixRXUH+e0iQYLZNH5sTFmN2IgozlKnP51SSn1kF39WDT6uR/3+JEO2RfHzD/wfDh9DPtZjXuwAAAABJRU5ErkJggg==",J4="data:image/png;base64,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",_ee="/demo-waas-auth/assets/100-cf3a0cbf.png",Oee="/demo-waas-auth/assets/1101-1d0b8ff9.png",X4="data:image/png;base64,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",Z4="/demo-waas-auth/assets/250-2aa72264.png",eA="/demo-waas-auth/assets/42161-90b816d4.png",Nee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAkxQTFRF////AAAA74Ig8Iwx8ZA4//7974Qj74Mh///+//////78////74Mi//v4//////z5/vfx74Um//37////////////////////////////////////////8ZE774Yn8Y42/fLn////////8Isw////86FW/evc/OXR////+dGt/vPp8Igq++HK+9u/976M8pZE/ezd8Icp+dOx/vbu9KZg/vr2/OjW9a9w9Kll+ti5/e/j/vnz8pxO//r3////8Y838pZD////////////////8Iwy////851Q////+MWX+cyk+tWz+97E8ZI9////8Y0z////////////8ptM/fDk9rZ9972J+93C86Nb8ZM+9riB/OXQ+c+p/OfU/OnY8ZRB////9Kdi9a5u////9axr////////////////////////////////////9Kpn////98KS86Rd/////////vfw/////OPN////859U98GQ////////9rmB+9/G9bJ298CO+Mqg/e3f9bR686JZ8plI9a1t+dKv9bJ18ZA6/vXs8Igs+Mui/e7h/OrZ+Mmf+c6n8phI8Iov86Ve////////+MaZ////8Ikt////+tm7+c2l////++LM98OT8pdG////////+Mid9ruF855S////////////////+Mib////9rN49rd++tq997yG+ta3////98OV////////++DI////////9rV7+tW19bBy/vPq9rqD9Ktp////8ppK////////////////////////Mj9/0QAAAMR0Uk5T/wD/////////Af/+///9/////5/W9TQF4uDZ6MT/////x1L/Av///5b////////////////////////////Q///vCh77/6X/uP//////p/8SDgb/////////////////J///UP8QSyRsVr4rDZr/Wf//bwz/9/9N///8L///////////////////////////////h7H/5P9d///c////j+n////zMuxm/6D//////5v/WFv/MCz///////9U/2M11GLeOHwhNZoAAAr/SURBVHicxVv3Y1RFEJ67JCSXkII5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",tA="data:image/png;base64,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",rA="/demo-waas-auth/assets/56-06b98271.png",ur={MAINNET:1,ROPSTEN:3,RINKEBY:4,GOERLI:5,KOVAN:42,POLYGON:137,POLYGON_MUMBAI:80001,POLYGON_ZKEVM:1101,BSC:56,BSC_TESTNET:97,OPTIMISM:10,OPTIMISM_TESTNET:69,ARBITRUM:42161,ARBITRUM_GOERLI:421613,ARBITRUM_NOVA:42170,AVALANCHE:43114,AVALANCHE_TESTNET:43113,FANTOM:250,FANTOM_TESTNET:4002,GNOSIS:100,AURORA:1313161554,AURORA_TESTNET:1313161556,BASE_GOERLI:84531,HOMEVERSE_TESTNET:40875},Dee={[ur.MAINNET]:Qu,[ur.ROPSTEN]:Qu,[ur.GOERLI]:Qu,[ur.KOVAN]:Qu,[ur.OPTIMISM]:J4,[ur.OPTIMISM_TESTNET]:J4,[ur.POLYGON]:X4,[ur.POLYGON_MUMBAI]:X4,[ur.POLYGON_ZKEVM]:Oee,[ur.ARBITRUM]:eA,[ur.ARBITRUM_NOVA]:Nee,[ur.ARBITRUM_GOERLI]:eA,[ur.GNOSIS]:_ee,[ur.BSC]:rA,[ur.BSC_TESTNET]:rA,[ur.FANTOM]:Z4,[ur.FANTOM_TESTNET]:Z4,[ur.AVALANCHE]:tA,[ur.AVALANCHE_TESTNET]:tA};function Lee({onNetworkChange:t}){const[e,r]=p.useState(),[n,i]=p.useState([]);return p.useEffect(()=>{st.networkList().then(s=>{i(s),r(s[0]),t(s[0])})},[]),n.length===0?$.jsx(re,{marginY:"5",children:$.jsx(zi,{})}):$.jsxs(re,{marginBottom:"4",children:[$.jsx(re,{marginBottom:"4",children:$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Network to use with requests:"})}),$.jsx(re,{children:$.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:s=>{const o=n==null?void 0:n.find(a=>a.name===s);o&&(r(o),t(o))},value:e==null?void 0:e.name,options:[...n.map(s=>({label:$.jsxs(re,{alignItems:"center",gap:"2",children:[$.jsx(B$,{src:Dee[s.id],size:"sm"}),$.jsx(Se,{children:s.name})]}),value:String(s.name)}))]})})]})}function jee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState([]),[o,a]=p.useState(!1),[l,c]=p.useState(!1),[f,u]=p.useState();return p.useEffect(()=>{st.getAddress().then(d=>{e(d)}).catch(d=>{n(d.message)})},[]),p.useEffect(()=>{st.isSignedIn().then(d=>{d||Uo.navigate("/login")})},[]),p.useEffect(()=>{const d=i.join("");d.length===6&&(c(!0),st.finishValidateSession(d))},[i]),p.useEffect(()=>{const d=st.onValidationRequired(()=>{a(!0),st.waitForSessionValid(6e5,4e3).then(v=>{console.log("isValid",v),s([]),a(!1),c(!1)})});return()=>{d.then(v=>v())}},[]),$.jsxs($.Fragment,{children:[$.jsx(q8,{children:o&&$.jsx(Wj,{children:$.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:$.jsxs(re,{flexDirection:"column",alignItems:"center",children:[$.jsx(Se,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),$.jsx(OC,{value:i,digits:6,onChange:s}),$.jsx(re,{marginTop:"5",children:l&&$.jsx(zi,{})})]})})})}),$.jsxs(re,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[$.jsx(re,{marginBottom:"10",children:$.jsx(NC,{})}),$.jsxs(re,{marginBottom:"5",flexDirection:"row",children:[$.jsxs(Se,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),$.jsx(pr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await st.dropSession({strict:!1})}catch(d){console.warn(`Could not drop session: ${d.message}`)}mU(),Uo.navigate("/login")}})]}),$.jsx(Co,{background:"buttonGlass"}),$.jsx(re,{marginBottom:"5",children:$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),$.jsx(re,{marginBottom:"5",children:$.jsx(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:t?$.jsx(re,{children:$.jsx(Se,{children:t})}):$.jsx(zi,{})})}),$.jsx(re,{marginBottom:"5",children:$.jsx(Lee,{onNetworkChange:u})}),$.jsx(re,{children:r&&$.jsxs(Se,{children:["Error fetching wallet address: ",r]})}),$.jsx(Co,{background:"buttonGlass"}),$.jsx(Cee,{}),$.jsxs(ic,{marginY:"3",label:"Send native token transaction",children:[$.jsx(Co,{background:"buttonGlass"}),$.jsx(See,{network:f})]}),$.jsxs(ic,{marginY:"3",label:"Send ERC20 transaction",children:[$.jsx(Co,{background:"buttonGlass"}),$.jsx(Ree,{network:f})]}),$.jsxs(ic,{marginY:"3",label:"Send ERC1155 transaction",children:[$.jsx(Co,{background:"buttonGlass"}),$.jsx(Iee,{network:f})]}),$.jsxs(ic,{marginY:"3",label:"Sign a message",children:[$.jsx(Co,{background:"buttonGlass"}),$.jsx(kee,{network:f})]}),$.jsxs(ic,{marginY:"3",label:"Call contracts",children:[$.jsx(Co,{background:"buttonGlass"}),$.jsx(Pee,{network:f})]})]})]})}const Bee="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",nA="970987756660-6ibakd38eibf3cg9rq42hri7o0jn5va8.apps.googleusercontent.com",$ee="AQAAAAAAAEGv4rUgioUNUbcdNZlvOZE72JI",Fee="eyJwcm9qZWN0SWQiOjE2ODE1LCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI2N2V2NXVvc3ZxMzVmcGI2OXI3NnJoYnVoIiwicnBjU2VydmVyIjoiaHR0cHM6Ly93YWFzLnNlcXVlbmNlLmFwcCJ9",iA="AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE",sA="eyJwcm9qZWN0SWQiOjY5NCwicnBjU2VydmVyIjoiaHR0cHM6Ly9kZXYtd2Fhcy5zZXF1ZW5jZS5hcHAiLCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI1NGF0bjV1cGk2M3FjNTlhMWVtM3ZiaHJzbiJ9";new k9("https://nodes.sequence.app/polygon");const N0=new URLSearchParams(window.location.search),Uee=N0.get("env")??"prod";let Ik=N0.get("projectAccessKey")??$ee,_k=N0.get("waasConfigKey")??Fee,Ok=N0.get("googleClientId")??Bee;Uee==="dev"&&(console.log("Using dev environment"),console.log(`Project Access Key: ${iA}`),console.log(`Waas Config Key: ${sA}`),console.log(`Google Client ID: ${nA}`),Ik=iA,_k=sA,Ok=nA);const st=new Eee({network:"polygon",projectAccessKey:Ik,waasConfigKey:_k}),Uo=ZF([{path:"/login",element:$.jsx(iG,{})},{path:"/",element:$.jsx(jee,{})}]);Pv.createRoot(document.getElementById("root")).render($.jsx(gr.StrictMode,{children:$.jsx(Uj,{children:$.jsx(dU,{clientId:Ok,children:$.jsx(lU,{router:Uo})})})})); + */class yk{static getParser(e,r=!1){if(typeof e!="string")throw new Error("UserAgent should be a string");return new N4(e,r)}static parse(e){return new N4(e).getResult()}static get BROWSER_MAP(){return vk}static get ENGINE_MAP(){return js}static get OS_MAP(){return Wr}static get PLATFORMS_MAP(){return Xt}}const QJ=({serviceId:t,clientVersion:e})=>async()=>{var i,s,o,a,l;const r=typeof window<"u"&&((i=window==null?void 0:window.navigator)!=null&&i.userAgent)?yk.parse(window.navigator.userAgent):void 0,n=[["aws-sdk-js",e],["ua","2.0"],[`os/${((s=r==null?void 0:r.os)==null?void 0:s.name)||"other"}`,(o=r==null?void 0:r.os)==null?void 0:o.version],["lang/js"],["md/browser",`${((a=r==null?void 0:r.browser)==null?void 0:a.name)??"unknown"}_${((l=r==null?void 0:r.browser)==null?void 0:l.version)??"unknown"}`]];return t&&n.push([`api/${t}`,e]),n},YJ=t=>()=>Promise.reject(t),D4=typeof TextEncoder=="function"?new TextEncoder:null,JJ=t=>{if(typeof t=="string"){if(D4)return D4.encode(t).byteLength;let e=t.length;for(let r=e-1;r>=0;r--){const n=t.charCodeAt(r);n>127&&n<=2047?e++:n>2047&&n<=65535&&(e+=2),n>=56320&&n<=57343&&r--}return e}else{if(typeof t.byteLength=="number")return t.byteLength;if(typeof t.size=="number")return t.size}throw new Error(`Body Length computation failed for ${t}`)},pk="required",_i="fn",Oi="argv",Wl="ref",L4=!0,j4="isSet",Ff="booleanEquals",Pa="error",kc="endpoint",Ji="tree",lx="PartitionResult",B4={[pk]:!1,type:"String"},$4={[pk]:!0,default:!1,type:"Boolean"},F4={[Wl]:"Endpoint"},mk={[_i]:Ff,[Oi]:[{[Wl]:"UseFIPS"},!0]},gk={[_i]:Ff,[Oi]:[{[Wl]:"UseDualStack"},!0]},Ei={},U4={[_i]:"getAttr",[Oi]:[{[Wl]:lx},"supportsFIPS"]},z4={[_i]:Ff,[Oi]:[!0,{[_i]:"getAttr",[Oi]:[{[Wl]:lx},"supportsDualStack"]}]},V4=[mk],q4=[gk],H4=[{[Wl]:"Region"}],XJ={version:"1.0",parameters:{Region:B4,UseDualStack:$4,UseFIPS:$4,Endpoint:B4},rules:[{conditions:[{[_i]:j4,[Oi]:[F4]}],rules:[{conditions:V4,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:Pa},{conditions:q4,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:Pa},{endpoint:{url:F4,properties:Ei,headers:Ei},type:kc}],type:Ji},{conditions:[{[_i]:j4,[Oi]:H4}],rules:[{conditions:[{[_i]:"aws.partition",[Oi]:H4,assign:lx}],rules:[{conditions:[mk,gk],rules:[{conditions:[{[_i]:Ff,[Oi]:[L4,U4]},z4],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:Pa}],type:Ji},{conditions:V4,rules:[{conditions:[{[_i]:Ff,[Oi]:[U4,L4]}],rules:[{endpoint:{url:"https://cognito-idp-fips.{Region}.{PartitionResult#dnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"FIPS is enabled but this partition does not support FIPS",type:Pa}],type:Ji},{conditions:q4,rules:[{conditions:[z4],rules:[{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji},{error:"DualStack is enabled but this partition does not support DualStack",type:Pa}],type:Ji},{endpoint:{url:"https://cognito-idp.{Region}.{PartitionResult#dnsSuffix}",properties:Ei,headers:Ei},type:kc}],type:Ji}],type:Ji},{error:"Invalid Configuration: Missing Region",type:Pa}]},ZJ=XJ,eX=(t,e={})=>ZG(ZJ,{endpointParams:t,logger:e.logger});kh.aws=$9;const tX=t=>({apiVersion:"2016-04-18",base64Decoder:(t==null?void 0:t.base64Decoder)??tx,base64Encoder:(t==null?void 0:t.base64Encoder)??Q9,disableHostPrefix:(t==null?void 0:t.disableHostPrefix)??!1,endpointProvider:(t==null?void 0:t.endpointProvider)??eX,extensions:(t==null?void 0:t.extensions)??[],httpAuthSchemeProvider:(t==null?void 0:t.httpAuthSchemeProvider)??TY,httpAuthSchemes:(t==null?void 0:t.httpAuthSchemes)??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new JQ},{schemeId:"smithy.api#noAuth",identityProvider:e=>e.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),signer:new UQ}],logger:(t==null?void 0:t.logger)??new G9,serviceId:(t==null?void 0:t.serviceId)??"Cognito Identity Provider",urlParser:(t==null?void 0:t.urlParser)??Ph,utf8Decoder:(t==null?void 0:t.utf8Decoder)??kl,utf8Encoder:(t==null?void 0:t.utf8Encoder)??K9}),rX=(t,e,r)=>{let n,i,s,o=!1;const a=async()=>{i||(i=t());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return e===void 0?async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),n):async l=>((!s||l!=null&&l.forceRefresh)&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(e(n)&&await a(),n))},nX=["in-region","cross-region","mobile","standard","legacy"],iX=({defaultsMode:t}={})=>rX(async()=>{const e=typeof t=="function"?await t():t;switch(e==null?void 0:e.toLowerCase()){case"auto":return Promise.resolve(sX()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(e==null?void 0:e.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${nX.join(", ")}, got ${e}`)}}),sX=()=>{var r,n;const t=typeof window<"u"&&((r=window==null?void 0:window.navigator)!=null&&r.userAgent)?yk.parse(window.navigator.userAgent):void 0,e=(n=t==null?void 0:t.platform)==null?void 0:n.type;return e==="tablet"||e==="mobile"},oX=t=>{const e=iX(t),r=()=>e().then(SQ),n=tX(t);return{...n,...t,runtime:"browser",defaultsMode:e,bodyLengthChecker:(t==null?void 0:t.bodyLengthChecker)??JJ,credentialDefaultProvider:(t==null?void 0:t.credentialDefaultProvider)??(i=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:(t==null?void 0:t.defaultUserAgentProvider)??QJ({serviceId:n.serviceId,clientVersion:YY.version}),maxAttempts:(t==null?void 0:t.maxAttempts)??Rh,region:(t==null?void 0:t.region)??YJ("Region is missing"),requestHandler:rx.create((t==null?void 0:t.requestHandler)??r),retryMode:(t==null?void 0:t.retryMode)??(async()=>(await r()).retryMode||jK),sha256:(t==null?void 0:t.sha256)??ak.Sha256,streamCollector:(t==null?void 0:t.streamCollector)??vQ,useDualstackEndpoint:(t==null?void 0:t.useDualstackEndpoint)??(()=>Promise.resolve(uK)),useFipsEndpoint:(t==null?void 0:t.useFipsEndpoint)??(()=>Promise.resolve(dK))}},aX=t=>{let e=async()=>{if(t.region===void 0)throw new Error("Region is missing from runtimeConfig");const r=t.region;return typeof r=="string"?r:r()};return{setRegion(r){e=r},region(){return e}}},lX=t=>({region:t.region()}),cX=t=>{const e=t.httpAuthSchemes;let r=t.httpAuthSchemeProvider,n=t.credentials;return{setHttpAuthScheme(i){const s=e.findIndex(o=>o.schemeId===i.schemeId);s===-1?e.push(i):e.splice(s,1,i)},httpAuthSchemes(){return e},setHttpAuthSchemeProvider(i){r=i},httpAuthSchemeProvider(){return r},setCredentials(i){n=i},credentials(){return n}}},fX=t=>({httpAuthSchemes:t.httpAuthSchemes(),httpAuthSchemeProvider:t.httpAuthSchemeProvider(),credentials:t.credentials()}),Ku=t=>t,uX=(t,e)=>{const r={...Ku(aX(t)),...Ku(TQ(t)),...Ku(bG(t)),...Ku(cX(t))};return e.forEach(n=>n.configure(r)),{...t,...lX(r),...MQ(r),...wG(r),...fX(r)}};class dX extends oQ{constructor(...[e]){const r=oX(e||{}),n=IY(r),i=hK(n),s=IK(i),o=sQ(s),a=o,l=NG(a),c=MY(l),f=uX(c,(e==null?void 0:e.extensions)||[]);super(f),this.config=f,this.middlewareStack.use(LQ(this.config)),this.middlewareStack.use(KQ(this.config)),this.middlewareStack.use(CG(this.config)),this.middlewareStack.use(RG(this.config)),this.middlewareStack.use(OG(this.config)),this.middlewareStack.use(fK(this.config)),this.middlewareStack.use(OK(this.config,{httpAuthSchemeParametersProvider:this.getDefaultHttpAuthSchemeParametersProvider(),identityProviderConfigProvider:this.getIdentityProviderConfigProvider()})),this.middlewareStack.use($Q(this.config))}destroy(){super.destroy()}getDefaultHttpAuthSchemeParametersProvider(){return PY}getIdentityProviderConfigProvider(){return async e=>new FQ({"aws.auth#sigv4":e.credentials})}}class Te extends nx{constructor(e){super(e),Object.setPrototypeOf(this,Te.prototype)}}class cx extends Te{constructor(e){super({name:"InternalErrorException",$fault:"server",...e}),this.name="InternalErrorException",this.$fault="server",Object.setPrototypeOf(this,cx.prototype)}}class fx extends Te{constructor(e){super({name:"InvalidParameterException",$fault:"client",...e}),this.name="InvalidParameterException",this.$fault="client",Object.setPrototypeOf(this,fx.prototype)}}class ux extends Te{constructor(e){super({name:"NotAuthorizedException",$fault:"client",...e}),this.name="NotAuthorizedException",this.$fault="client",Object.setPrototypeOf(this,ux.prototype)}}class dx extends Te{constructor(e){super({name:"ResourceNotFoundException",$fault:"client",...e}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,dx.prototype)}}class hx extends Te{constructor(e){super({name:"TooManyRequestsException",$fault:"client",...e}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,hx.prototype)}}class vx extends Te{constructor(e){super({name:"UserImportInProgressException",$fault:"client",...e}),this.name="UserImportInProgressException",this.$fault="client",Object.setPrototypeOf(this,vx.prototype)}}class yx extends Te{constructor(e){super({name:"UserNotFoundException",$fault:"client",...e}),this.name="UserNotFoundException",this.$fault="client",Object.setPrototypeOf(this,yx.prototype)}}class px extends Te{constructor(e){super({name:"InvalidLambdaResponseException",$fault:"client",...e}),this.name="InvalidLambdaResponseException",this.$fault="client",Object.setPrototypeOf(this,px.prototype)}}class mx extends Te{constructor(e){super({name:"LimitExceededException",$fault:"client",...e}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,mx.prototype)}}class gx extends Te{constructor(e){super({name:"TooManyFailedAttemptsException",$fault:"client",...e}),this.name="TooManyFailedAttemptsException",this.$fault="client",Object.setPrototypeOf(this,gx.prototype)}}class xx extends Te{constructor(e){super({name:"UnexpectedLambdaException",$fault:"client",...e}),this.name="UnexpectedLambdaException",this.$fault="client",Object.setPrototypeOf(this,xx.prototype)}}class M0 extends Te{constructor(e){super({name:"UserLambdaValidationException",$fault:"client",...e}),this.name="UserLambdaValidationException",this.$fault="client",Object.setPrototypeOf(this,M0.prototype)}}class bx extends Te{constructor(e){super({name:"CodeDeliveryFailureException",$fault:"client",...e}),this.name="CodeDeliveryFailureException",this.$fault="client",Object.setPrototypeOf(this,bx.prototype)}}class wx extends Te{constructor(e){super({name:"InvalidPasswordException",$fault:"client",...e}),this.name="InvalidPasswordException",this.$fault="client",Object.setPrototypeOf(this,wx.prototype)}}class Ex extends Te{constructor(e){super({name:"InvalidSmsRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidSmsRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ex.prototype)}}class Ax extends Te{constructor(e){super({name:"InvalidSmsRoleTrustRelationshipException",$fault:"client",...e}),this.name="InvalidSmsRoleTrustRelationshipException",this.$fault="client",Object.setPrototypeOf(this,Ax.prototype)}}class Sx extends Te{constructor(e){super({name:"PreconditionNotMetException",$fault:"client",...e}),this.name="PreconditionNotMetException",this.$fault="client",Object.setPrototypeOf(this,Sx.prototype)}}class Cx extends Te{constructor(e){super({name:"UnsupportedUserStateException",$fault:"client",...e}),this.name="UnsupportedUserStateException",this.$fault="client",Object.setPrototypeOf(this,Cx.prototype)}}class kx extends Te{constructor(e){super({name:"UsernameExistsException",$fault:"client",...e}),this.name="UsernameExistsException",this.$fault="client",Object.setPrototypeOf(this,kx.prototype)}}class Px extends Te{constructor(e){super({name:"AliasExistsException",$fault:"client",...e}),this.name="AliasExistsException",this.$fault="client",Object.setPrototypeOf(this,Px.prototype)}}class Rx extends Te{constructor(e){super({name:"InvalidUserPoolConfigurationException",$fault:"client",...e}),this.name="InvalidUserPoolConfigurationException",this.$fault="client",Object.setPrototypeOf(this,Rx.prototype)}}class Tx extends Te{constructor(e){super({name:"MFAMethodNotFoundException",$fault:"client",...e}),this.name="MFAMethodNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tx.prototype)}}class Mx extends Te{constructor(e){super({name:"PasswordResetRequiredException",$fault:"client",...e}),this.name="PasswordResetRequiredException",this.$fault="client",Object.setPrototypeOf(this,Mx.prototype)}}class Ix extends Te{constructor(e){super({name:"UserNotConfirmedException",$fault:"client",...e}),this.name="UserNotConfirmedException",this.$fault="client",Object.setPrototypeOf(this,Ix.prototype)}}class _x extends Te{constructor(e){super({name:"UserPoolAddOnNotEnabledException",$fault:"client",...e}),this.name="UserPoolAddOnNotEnabledException",this.$fault="client",Object.setPrototypeOf(this,_x.prototype)}}class Ox extends Te{constructor(e){super({name:"InvalidEmailRoleAccessPolicyException",$fault:"client",...e}),this.name="InvalidEmailRoleAccessPolicyException",this.$fault="client",Object.setPrototypeOf(this,Ox.prototype)}}class Nx extends Te{constructor(e){super({name:"CodeMismatchException",$fault:"client",...e}),this.name="CodeMismatchException",this.$fault="client",Object.setPrototypeOf(this,Nx.prototype)}}class Dx extends Te{constructor(e){super({name:"ExpiredCodeException",$fault:"client",...e}),this.name="ExpiredCodeException",this.$fault="client",Object.setPrototypeOf(this,Dx.prototype)}}class Lx extends Te{constructor(e){super({name:"SoftwareTokenMFANotFoundException",$fault:"client",...e}),this.name="SoftwareTokenMFANotFoundException",this.$fault="client",Object.setPrototypeOf(this,Lx.prototype)}}class jx extends Te{constructor(e){super({name:"ConcurrentModificationException",$fault:"client",...e}),this.name="ConcurrentModificationException",this.$fault="client",Object.setPrototypeOf(this,jx.prototype)}}class Bx extends Te{constructor(e){super({name:"ForbiddenException",$fault:"client",...e}),this.name="ForbiddenException",this.$fault="client",Object.setPrototypeOf(this,Bx.prototype)}}class $x extends Te{constructor(e){super({name:"GroupExistsException",$fault:"client",...e}),this.name="GroupExistsException",this.$fault="client",Object.setPrototypeOf(this,$x.prototype)}}class Fx extends Te{constructor(e){super({name:"DuplicateProviderException",$fault:"client",...e}),this.name="DuplicateProviderException",this.$fault="client",Object.setPrototypeOf(this,Fx.prototype)}}class Ux extends Te{constructor(e){super({name:"UserPoolTaggingException",$fault:"client",...e}),this.name="UserPoolTaggingException",this.$fault="client",Object.setPrototypeOf(this,Ux.prototype)}}class zx extends Te{constructor(e){super({name:"InvalidOAuthFlowException",$fault:"client",...e}),this.name="InvalidOAuthFlowException",this.$fault="client",Object.setPrototypeOf(this,zx.prototype)}}class Vx extends Te{constructor(e){super({name:"ScopeDoesNotExistException",$fault:"client",...e}),this.name="ScopeDoesNotExistException",this.$fault="client",Object.setPrototypeOf(this,Vx.prototype)}}class qx extends Te{constructor(e){super({name:"UnsupportedIdentityProviderException",$fault:"client",...e}),this.name="UnsupportedIdentityProviderException",this.$fault="client",Object.setPrototypeOf(this,qx.prototype)}}class Hx extends Te{constructor(e){super({name:"UnauthorizedException",$fault:"client",...e}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Hx.prototype)}}class Wx extends Te{constructor(e){super({name:"UnsupportedOperationException",$fault:"client",...e}),this.name="UnsupportedOperationException",this.$fault="client",Object.setPrototypeOf(this,Wx.prototype)}}class Gx extends Te{constructor(e){super({name:"UnsupportedTokenTypeException",$fault:"client",...e}),this.name="UnsupportedTokenTypeException",this.$fault="client",Object.setPrototypeOf(this,Gx.prototype)}}const W4=t=>({...t,...t.Value&&{Value:wr}}),xk=t=>({...t,...t.AccessToken&&{AccessToken:wr},...t.RefreshToken&&{RefreshToken:wr},...t.IdToken&&{IdToken:wr}}),hX=t=>({...t,...t.AuthParameters&&{AuthParameters:wr},...t.ClientId&&{ClientId:wr},...t.UserContextData&&{UserContextData:wr}}),vX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}}),yX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.Session&&{Session:wr},...t.ChallengeResponses&&{ChallengeResponses:wr},...t.UserContextData&&{UserContextData:wr}}),pX=t=>({...t,...t.Session&&{Session:wr},...t.AuthenticationResult&&{AuthenticationResult:xk(t.AuthenticationResult)}});class Kx extends Te{constructor(e){super({name:"EnableSoftwareTokenMFAException",$fault:"client",...e}),this.name="EnableSoftwareTokenMFAException",this.$fault="client",Object.setPrototypeOf(this,Kx.prototype)}}const mX=t=>({...t,...t.ClientId&&{ClientId:wr},...t.SecretHash&&{SecretHash:wr},...t.Username&&{Username:wr},...t.Password&&{Password:wr},...t.UserAttributes&&{UserAttributes:t.UserAttributes.map(e=>W4(e))},...t.ValidationData&&{ValidationData:t.ValidationData.map(e=>W4(e))},...t.UserContextData&&{UserContextData:wr}}),gX=async(t,e)=>{const r=Jx("InitiateAuth");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},xX=async(t,e)=>{const r=Jx("RespondToAuthChallenge");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},bX=async(t,e)=>{const r=Jx("SignUp");let n;return n=JSON.stringify(Ae(t)),Yx(e,r,"/",void 0,n)},wX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},EX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},AX=async(t,e)=>{if(t.statusCode>=300)return Qx(t,e);const r=await T0(t.body,e);let n={};return n=Ae(r),{$metadata:Me(t),...n}},Qx=async(t,e)=>{const r={...t,body:await CY(t.body,e)},n=kY(t,r.body);switch(n){case"InternalErrorException":case"com.amazonaws.cognitoidentityprovider#InternalErrorException":throw await OX(r);case"InvalidParameterException":case"com.amazonaws.cognitoidentityprovider#InvalidParameterException":throw await jX(r);case"NotAuthorizedException":case"com.amazonaws.cognitoidentityprovider#NotAuthorizedException":throw await qX(r);case"ResourceNotFoundException":case"com.amazonaws.cognitoidentityprovider#ResourceNotFoundException":throw await GX(r);case"TooManyRequestsException":case"com.amazonaws.cognitoidentityprovider#TooManyRequestsException":throw await JX(r);case"UserImportInProgressException":case"com.amazonaws.cognitoidentityprovider#UserImportInProgressException":throw await iZ(r);case"UserNotFoundException":case"com.amazonaws.cognitoidentityprovider#UserNotFoundException":throw await lZ(r);case"InvalidLambdaResponseException":case"com.amazonaws.cognitoidentityprovider#InvalidLambdaResponseException":throw await DX(r);case"LimitExceededException":case"com.amazonaws.cognitoidentityprovider#LimitExceededException":throw await zX(r);case"TooManyFailedAttemptsException":case"com.amazonaws.cognitoidentityprovider#TooManyFailedAttemptsException":throw await YX(r);case"UnexpectedLambdaException":case"com.amazonaws.cognitoidentityprovider#UnexpectedLambdaException":throw await ZX(r);case"UserLambdaValidationException":case"com.amazonaws.cognitoidentityprovider#UserLambdaValidationException":throw await sZ(r);case"CodeDeliveryFailureException":case"com.amazonaws.cognitoidentityprovider#CodeDeliveryFailureException":throw await CX(r);case"InvalidPasswordException":case"com.amazonaws.cognitoidentityprovider#InvalidPasswordException":throw await BX(r);case"InvalidSmsRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleAccessPolicyException":throw await $X(r);case"InvalidSmsRoleTrustRelationshipException":case"com.amazonaws.cognitoidentityprovider#InvalidSmsRoleTrustRelationshipException":throw await FX(r);case"PreconditionNotMetException":case"com.amazonaws.cognitoidentityprovider#PreconditionNotMetException":throw await WX(r);case"UnsupportedUserStateException":case"com.amazonaws.cognitoidentityprovider#UnsupportedUserStateException":throw await nZ(r);case"UsernameExistsException":case"com.amazonaws.cognitoidentityprovider#UsernameExistsException":throw await oZ(r);case"AliasExistsException":case"com.amazonaws.cognitoidentityprovider#AliasExistsException":throw await SX(r);case"InvalidUserPoolConfigurationException":case"com.amazonaws.cognitoidentityprovider#InvalidUserPoolConfigurationException":throw await UX(r);case"MFAMethodNotFoundException":case"com.amazonaws.cognitoidentityprovider#MFAMethodNotFoundException":throw await VX(r);case"PasswordResetRequiredException":case"com.amazonaws.cognitoidentityprovider#PasswordResetRequiredException":throw await HX(r);case"UserNotConfirmedException":case"com.amazonaws.cognitoidentityprovider#UserNotConfirmedException":throw await aZ(r);case"UserPoolAddOnNotEnabledException":case"com.amazonaws.cognitoidentityprovider#UserPoolAddOnNotEnabledException":throw await cZ(r);case"InvalidEmailRoleAccessPolicyException":case"com.amazonaws.cognitoidentityprovider#InvalidEmailRoleAccessPolicyException":throw await NX(r);case"CodeMismatchException":case"com.amazonaws.cognitoidentityprovider#CodeMismatchException":throw await kX(r);case"ExpiredCodeException":case"com.amazonaws.cognitoidentityprovider#ExpiredCodeException":throw await MX(r);case"SoftwareTokenMFANotFoundException":case"com.amazonaws.cognitoidentityprovider#SoftwareTokenMFANotFoundException":throw await QX(r);case"ConcurrentModificationException":case"com.amazonaws.cognitoidentityprovider#ConcurrentModificationException":throw await PX(r);case"ForbiddenException":case"com.amazonaws.cognitoidentityprovider#ForbiddenException":throw await IX(r);case"GroupExistsException":case"com.amazonaws.cognitoidentityprovider#GroupExistsException":throw await _X(r);case"DuplicateProviderException":case"com.amazonaws.cognitoidentityprovider#DuplicateProviderException":throw await RX(r);case"UserPoolTaggingException":case"com.amazonaws.cognitoidentityprovider#UserPoolTaggingException":throw await fZ(r);case"InvalidOAuthFlowException":case"com.amazonaws.cognitoidentityprovider#InvalidOAuthFlowException":throw await LX(r);case"ScopeDoesNotExistException":case"com.amazonaws.cognitoidentityprovider#ScopeDoesNotExistException":throw await KX(r);case"UnsupportedIdentityProviderException":case"com.amazonaws.cognitoidentityprovider#UnsupportedIdentityProviderException":throw await eZ(r);case"UnauthorizedException":case"com.amazonaws.cognitoidentityprovider#UnauthorizedException":throw await XX(r);case"UnsupportedOperationException":case"com.amazonaws.cognitoidentityprovider#UnsupportedOperationException":throw await tZ(r);case"UnsupportedTokenTypeException":case"com.amazonaws.cognitoidentityprovider#UnsupportedTokenTypeException":throw await rZ(r);case"EnableSoftwareTokenMFAException":case"com.amazonaws.cognitoidentityprovider#EnableSoftwareTokenMFAException":throw await TX(r);default:const i=r.body;return uZ({output:t,parsedBody:i,errorCode:n})}},SX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Px({$metadata:Me(t),...n});return Ne(i,r)},CX=async(t,e)=>{const r=t.body,n=Ae(r),i=new bx({$metadata:Me(t),...n});return Ne(i,r)},kX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Nx({$metadata:Me(t),...n});return Ne(i,r)},PX=async(t,e)=>{const r=t.body,n=Ae(r),i=new jx({$metadata:Me(t),...n});return Ne(i,r)},RX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Fx({$metadata:Me(t),...n});return Ne(i,r)},TX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Kx({$metadata:Me(t),...n});return Ne(i,r)},MX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Dx({$metadata:Me(t),...n});return Ne(i,r)},IX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Bx({$metadata:Me(t),...n});return Ne(i,r)},_X=async(t,e)=>{const r=t.body,n=Ae(r),i=new $x({$metadata:Me(t),...n});return Ne(i,r)},OX=async(t,e)=>{const r=t.body,n=Ae(r),i=new cx({$metadata:Me(t),...n});return Ne(i,r)},NX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ox({$metadata:Me(t),...n});return Ne(i,r)},DX=async(t,e)=>{const r=t.body,n=Ae(r),i=new px({$metadata:Me(t),...n});return Ne(i,r)},LX=async(t,e)=>{const r=t.body,n=Ae(r),i=new zx({$metadata:Me(t),...n});return Ne(i,r)},jX=async(t,e)=>{const r=t.body,n=Ae(r),i=new fx({$metadata:Me(t),...n});return Ne(i,r)},BX=async(t,e)=>{const r=t.body,n=Ae(r),i=new wx({$metadata:Me(t),...n});return Ne(i,r)},$X=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ex({$metadata:Me(t),...n});return Ne(i,r)},FX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ax({$metadata:Me(t),...n});return Ne(i,r)},UX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Rx({$metadata:Me(t),...n});return Ne(i,r)},zX=async(t,e)=>{const r=t.body,n=Ae(r),i=new mx({$metadata:Me(t),...n});return Ne(i,r)},VX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Tx({$metadata:Me(t),...n});return Ne(i,r)},qX=async(t,e)=>{const r=t.body,n=Ae(r),i=new ux({$metadata:Me(t),...n});return Ne(i,r)},HX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Mx({$metadata:Me(t),...n});return Ne(i,r)},WX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Sx({$metadata:Me(t),...n});return Ne(i,r)},GX=async(t,e)=>{const r=t.body,n=Ae(r),i=new dx({$metadata:Me(t),...n});return Ne(i,r)},KX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Vx({$metadata:Me(t),...n});return Ne(i,r)},QX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Lx({$metadata:Me(t),...n});return Ne(i,r)},YX=async(t,e)=>{const r=t.body,n=Ae(r),i=new gx({$metadata:Me(t),...n});return Ne(i,r)},JX=async(t,e)=>{const r=t.body,n=Ae(r),i=new hx({$metadata:Me(t),...n});return Ne(i,r)},XX=async(t,e)=>{const r=t.body,n=Ae(r),i=new Hx({$metadata:Me(t),...n});return Ne(i,r)},ZX=async(t,e)=>{const r=t.body,n=Ae(r),i=new xx({$metadata:Me(t),...n});return Ne(i,r)},eZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new qx({$metadata:Me(t),...n});return Ne(i,r)},tZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Wx({$metadata:Me(t),...n});return Ne(i,r)},rZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Gx({$metadata:Me(t),...n});return Ne(i,r)},nZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Cx({$metadata:Me(t),...n});return Ne(i,r)},iZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new vx({$metadata:Me(t),...n});return Ne(i,r)},sZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new M0({$metadata:Me(t),...n});return Ne(i,r)},oZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new kx({$metadata:Me(t),...n});return Ne(i,r)},aZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ix({$metadata:Me(t),...n});return Ne(i,r)},lZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new yx({$metadata:Me(t),...n});return Ne(i,r)},cZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new _x({$metadata:Me(t),...n});return Ne(i,r)},fZ=async(t,e)=>{const r=t.body,n=Ae(r),i=new Ux({$metadata:Me(t),...n});return Ne(i,r)},Me=t=>({httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}),uZ=EQ(Te),Yx=async(t,e,r,n,i)=>{const{hostname:s,protocol:o="https",port:a,path:l}=await t.endpoint(),c={protocol:o,hostname:s,port:a,method:"POST",path:l.endsWith("/")?l.slice(0,-1)+r:l+r,headers:e};return n!==void 0&&(c.hostname=n),i!==void 0&&(c.body=i),new Ki(c)};function Jx(t){return{"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${t}`}}class dZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","InitiateAuth",{}).n("CognitoIdentityProviderClient","InitiateAuthCommand").f(hX,vX).ser(gX).de(wX).build(){}class hZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","RespondToAuthChallenge",{}).n("CognitoIdentityProviderClient","RespondToAuthChallengeCommand").f(yX,pX).ser(xX).de(EX).build(){}class vZ extends R0.classBuilder().ep({...sx}).m(function(e,r,n,i){return[Zg(n,this.serialize,this.deserialize),ex(n,e.getEndpointParameterInstructions())]}).s("AWSCognitoIdentityProviderService","SignUp",{}).n("CognitoIdentityProviderClient","SignUpCommand").f(mX,void 0).ser(bX).de(AX).build(){}function zr(){return zr=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)&&(r[i]=t[i]);return r}const yZ=["signatures"],pZ="0.0.0";function Yn(t,e,r){const n=Math.floor(Date.now()/1e3),i=n+e;return{version:pZ,issuedAt:n,expiresAt:i,name:t,data:r}}async function mZ(t,e){const r=gZ(e),n=await t.sign(new Uint8Array(r));return zr({},e,{signatures:[{sessionId:await t.sessionId(),signature:n}]})}function gZ(t){const{version:e,issuedAt:r,expiresAt:n,name:i,data:s}=t,a=sr(sG({version:e,issuedAt:r,expiresAt:n,name:i,data:s}));return ce(Et(a))}function xZ(t,e){const r=pi(t,yZ),n=t.expiresAt-t.issuedAt;return r.issuedAt=Math.floor(e.getTime()/1e3),r.expiresAt=r.issuedAt+n,r}function bZ({wallet:t,chainId:e,message:r,lifespan:n}){return Yn("signMessage",n,{wallet:t,network:e.toString(),message:r.startsWith("0x")?r:fe(sr(r))})}const wZ=["lifespan"],EZ=["lifespan"],AZ=["lifespan"],SZ=["lifespan"],CZ=["lifespan"],kZ=["lifespan"];async function PZ({lifespan:t,sessionId:e,idToken:r}){return Yn("openSession",t,{sessionId:e,idToken:r})}async function RZ(t){let{lifespan:e}=t,r=pi(t,wZ);return Yn("validateSession",e,r)}function TZ(t){let{lifespan:e}=t,r=pi(t,EZ);return Yn("finishValidateSession",e,r)}function G4(t){let{lifespan:e}=t,r=pi(t,AZ);return Yn("closeSession",e,r)}function MZ(t){let{lifespan:e}=t,r=pi(t,SZ);return Yn("listSessions",e,r)}function IZ(t){let{lifespan:e}=t,r=pi(t,CZ);return Yn("getSession",e,r)}function _Z(t){let{lifespan:e}=t,r=pi(t,kZ);return Yn("sessionAuthProof",e,r)}class OZ{constructor(e,r){this.hostname=void 0,this.fetch=void 0,this.path="/rpc/WaasAuthenticator/",this.registerSession=(n,i,s)=>this.fetch(this.url("RegisterSession"),Av(n,i,s)).then(o=>Sv(o).then(a=>({session:a.session,response:a.response})),o=>{throw ll.new({cause:`fetch(): ${o.message||""}`})}),this.sendIntent=(n,i,s)=>this.fetch(this.url("SendIntent"),Av(n,i,s)).then(o=>Sv(o).then(a=>({response:a.response})),o=>{throw ll.new({cause:`fetch(): ${o.message||""}`})}),this.chainList=(n,i)=>this.fetch(this.url("ChainList"),Av({},n,i)).then(s=>Sv(s).then(o=>({chains:o.chains})),s=>{throw ll.new({cause:`fetch(): ${s.message||""}`})}),this.hostname=e,this.fetch=(n,i)=>r(n,i)}url(e){return this.hostname+this.path+e}}const Av=(t={},e={},r=null)=>({method:"POST",headers:zr({},e,{"Content-Type":"application/json"}),body:JSON.stringify(t||{}),signal:r}),Sv=t=>t.text().then(e=>{let r;try{r=JSON.parse(e)}catch(n){let i="";throw n instanceof Error&&(i=n.message),I0.new({status:t.status,cause:`JSON.parse(): ${i}: response text: ${e}`})}if(!t.ok){const n=typeof r.code=="number"?r.code:0;throw(NZ[n]||Ir).new(r)}return r});class Ir extends Error{constructor(e,r,n,i,s){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 i=="number"?i:0,this.cause=s,Object.setPrototypeOf(this,Ir.prototype)}static new(e){return new this(e.error,e.code,e.message||e.msg,e.status,e.cause)}}class Xx extends Ir{constructor(e="WebrpcEndpoint",r=0,n="endpoint error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Xx.prototype)}}class ll extends Ir{constructor(e="WebrpcRequestFailed",r=-1,n="request failed",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ll.prototype)}}class Zx extends Ir{constructor(e="WebrpcBadRoute",r=-2,n="bad route",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,Zx.prototype)}}class eb extends Ir{constructor(e="WebrpcBadMethod",r=-3,n="bad method",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,eb.prototype)}}class tb extends Ir{constructor(e="WebrpcBadRequest",r=-4,n="bad request",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,tb.prototype)}}class I0 extends Ir{constructor(e="WebrpcBadResponse",r=-5,n="bad response",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,I0.prototype)}}class rb extends Ir{constructor(e="WebrpcServerPanic",r=-6,n="server panic",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,rb.prototype)}}class nb extends Ir{constructor(e="WebrpcInternalError",r=-7,n="internal error",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,nb.prototype)}}class ib extends Ir{constructor(e="WebrpcClientDisconnected",r=-8,n="client disconnected",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ib.prototype)}}class sb extends Ir{constructor(e="WebrpcStreamLost",r=-9,n="stream lost",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,sb.prototype)}}class ob extends Ir{constructor(e="WebrpcStreamFinished",r=-10,n="stream finished",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ob.prototype)}}class ab extends Ir{constructor(e="Unauthorized",r=1e3,n="Unauthorized access",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,ab.prototype)}}class lb extends Ir{constructor(e="TenantNotFound",r=1001,n="Tenant not found",i=0,s){super(e,r,n,i,s),Object.setPrototypeOf(this,lb.prototype)}}const NZ={0:Xx,[-1]:ll,[-2]:Zx,[-3]:eb,[-4]:tb,[-5]:I0,[-6]:rb,[-7]:nb,[-8]:ib,[-9]:sb,[-10]:ob,1e3:ab,1001:lb};let Cv=function(t){return t.unknown="unknown",t.erc20Token="erc20Token",t.erc1155Token="erc1155Token",t}({});function ou(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.txHash=="string"&&typeof t.data.receipt=="object"&&typeof t.data.request=="object"}function bk(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionReceipt"&&typeof t.data=="object"&&typeof t.data.metaTxHash=="string"&&!t.data.txHash&&typeof t.data.request=="object"}function DZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="transactionFailed"&&typeof t.data=="object"&&typeof t.data.request=="object"&&Array.isArray(t.data.simulations)&&typeof t.data.error=="string"}function K4(t){return ou(t)||DZ(t)||bk(t)}function LZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="signedMessage"&&typeof t.data=="object"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function jZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionAuthProof"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"&&typeof t.data.network=="string"&&typeof t.data.wallet=="string"&&typeof t.data.message=="string"&&typeof t.data.signature=="string"}function BZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="feeOptions"&&typeof t.data=="object"&&Array.isArray(t.data.feeOptions)}function $Z(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="validationRequired"&&typeof t.data=="object"&&typeof t.data.sessionId=="string"}function FZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="finishedSessionValidation"&&typeof t.data=="object"}function UZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="sessionClosed"}function zZ(t){return typeof t=="object"&&typeof t.code=="string"&&t.code==="getSessionResponse"&&typeof t.data=="object"&&typeof t.data.session=="string"&&typeof t.data.wallet=="string"}function Q4(t){var e,r;return!!(t instanceof Ir&&((e=t.cause)!=null&&e.endsWith("intent is invalid: intent expired")||(r=t.cause)!=null&&r.endsWith("intent is invalid: intent issued in the future")))}const VZ=["token","to","value"],qZ=["token","to","id","safe","data"],HZ=["token","to","values","data"],WZ=["to","value","abi","func","args"];function GZ({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i}){return Yn("feeOptions",t,{identifier:r,wallet:e,network:n.toString(),transactions:i.map(s=>{if(!s.to||s.to===Ng)throw new Error("Contract creation not supported");return Ek(s)?{type:"transaction",to:s.to,value:ae.from(s.value||0).toHexString(),data:fe(s.data||[])}:s})})}function au({lifespan:t,wallet:e,identifier:r,chainId:n,transactions:i,transactionsFeeQuote:s,transactionsFeeOption:o}){return Yn("sendTransaction",t,{identifier:r,wallet:e,network:n.toString(),transactions:KZ(i,o).map(a=>{if(!a.to||a.to===Ng)throw new Error("Contract creation not supported");return Ek(a)?{type:"transaction",to:a.to,value:ae.from(a.value||0).toHexString(),data:fe(a.data||[])}:a}),transactionsFeeQuote:s})}function KZ(t,e){const r=[...t];if(e)switch(e.token.type){case Cv.unknown:r.push({to:e.to,value:e.value});break;case Cv.erc20Token:if(!e.token.contractAddress)throw new Error("contract address is required");r.push(cb({tokenAddress:e.token.contractAddress,to:e.to,value:e.value}));break;case Cv.erc1155Token:if(!e.token.contractAddress)throw new Error("contract address is required");if(!e.token.tokenID)throw new Error("token ID is required");r.push(fb({tokenAddress:e.token.contractAddress,to:e.to,vals:[{id:e.token.tokenID,amount:e.value}]}));break}return r}function QZ({lifespan:t,chainId:e,wallet:r,metaTxHash:n}){return Yn("getTransactionReceipt",t,{wallet:r,network:e.toString(),metaTxHash:n})}function YZ(t){let{token:e,to:r,value:n}=t,i=pi(t,VZ);return au(zr({transactions:[cb({tokenAddress:e,to:r,value:n.toString()})]},i))}function JZ(t){let{token:e,to:r,id:n,safe:i,data:s}=t,o=pi(t,qZ);return au(zr({transactions:[eee({tokenAddress:e,to:r,id:n,data:s,safe:i})]},o))}function XZ(t){let{token:e,to:r,values:n,data:i}=t,s=pi(t,HZ);const o=n.map(a=>({id:a.id,amount:ae.from(a.amount).toString()}));return au(zr({transactions:[fb({tokenAddress:e,to:r,vals:o,data:i})]},s))}function ZZ(t){let{to:e,value:r,abi:n,func:i,args:s}=t,o=pi(t,WZ);return au(zr({transactions:[wk({to:e,value:ae.from(r).toString(),data:{abi:n,func:i,args:s}})]},o))}function cb(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc20send",tokenAddress:e.token,to:e.to,value:e.value.toString()};if(r.tokenAddress!==void 0)return zr({type:"erc20send"},r);throw new Error("Invalid ERC20 transaction")}function eee(t){const e=t,r=t;if(e.token!==void 0)return{type:"erc721send",tokenAddress:e.token,to:e.to,id:e.id,data:e.data,safe:e.safe};if(r.tokenAddress!==void 0)return zr({type:"erc721send"},r);throw new Error("Invalid ERC721 transaction")}function fb(t){const e=t,r=t;if(e.values!==void 0)return{type:"erc1155send",vals:e.values.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:e.token,to:e.to,data:e.data};if(r.vals!==void 0)return{type:"erc1155send",vals:r.vals.map(n=>({id:n.id,amount:ae.from(n.amount).toString()})),tokenAddress:r.tokenAddress,to:r.to,data:r.data};throw new Error("Invalid ERC1155 transaction")}function wk(t){const e=t,r=t;if(e.abi!==void 0)return{type:"delayedEncode",to:e.to,value:ae.from(e.value).toString(),data:{abi:e.abi,func:e.func,args:e.args}};if(r.data!==void 0)return{type:"delayedEncode",to:r.to,value:r.value,data:r.data};throw new Error("Invalid delayed encode transaction")}function tee(t){if(t.length===0)throw new Error("No packets provided");const e=t[0].data.network,r=t[0].data.wallet,n=t[0].expiresAt-t[0].issuedAt,i=t[0].data.identifier,s=t[0].data.transactionsFeeQuote;if(!t.every(o=>o.data.network===e))throw new Error("All packets must have the same chainId");if(!t.every(o=>o.data.wallet===r))throw new Error("All packets must have the same wallet");return Yn("sendTransaction",n,{network:e,wallet:r,identifier:i,transactions:t.flatMap(o=>o.data.transactions),transactionsFeeQuote:s})}function Ek(t){return!["transaction","erc20send","erc721send","erc1155send","delayedEncode"].includes(t.type)}class Ad{constructor(e,r,n){this.store=e,this.key=r,this.defaultValue=n}async get(){const e=await this.store.get(this.key);return e||this.defaultValue}async set(e){e?await this.store.set(this.key,e):await this.store.set(this.key,null)}}class Ak{constructor(){this.store=void 0,Mh.isAvailable()?this.store=new Mh:this.store=new ree}async get(e){return this.store.get(e)}async set(e,r){return this.store.set(e,r)}}class Mh{static isAvailable(){return typeof window=="object"&&typeof window.localStorage=="object"}constructor(){if(!Mh.isAvailable())throw new Error("No localStorage")}async get(e){return window.localStorage.getItem(e)}async set(e,r){r?window.localStorage.setItem(e,r):window.localStorage.removeItem(e)}}class ree{constructor(){this.store={},this.store={}}async get(e){return this.store[e]||null}async set(e,r){r?this.store[e]=r:delete this.store[e]}}const bp="seq-waas-session-p256k1",wp="seq-waas-session";async function Sk(t,e){const r=await e.get(bp,wp,t);if(!r)throw new Error("No private key found");const n=new ss(r);return{sessionId(){return n.getAddress()},sign(i){return n.signMessage(i)},clear:async()=>{await e.delete(bp,wp,t)}}}async function nee(t,e){const n=await new ss(t).getAddress();return await e.set(bp,wp,n,t),Sk(n,e)}async function iee(t){const e=ss.createRandom();return nee(e.privateKey,t)}let Ck=function(t){return t[t.ECDSAP256K1=0]="ECDSAP256K1",t[t.ECDSAP256R1=1]="ECDSAP256R1",t}({});const Ep="seq-waas-session-p256r1",Ap="seq-waas-session";async function kk(t,e,r){const n=await r.get(Ep,Ap,t);if(!n||!n.privateKey)throw new Error("No private key found");const i=new TextEncoder;return{sessionId:async()=>{const s=await e.exportKey("raw",n.publicKey),o=new Uint8Array(s.byteLength+1);return o[0]=Ck.ECDSAP256R1,o.set(new Uint8Array(s),1),fe(o)},sign:async s=>{typeof s=="string"&&(s.startsWith("0x")?(s=s.slice(2),s=ce(s)):s=i.encode(s));const o=await e.sign({name:"ECDSA",hash:{name:"SHA-256"}},n.privateKey,s);return fe(new Uint8Array(o))},clear:async()=>{await r.delete(Ep,Ap,t)}}}async function see(t,e,r){const n=await aee(e,t.publicKey);return await r.set(Ep,Ap,n,t),kk(n,e,r)}async function oee(t,e){const r=await t.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign","verify"]);return see(r,t,e)}async function aee(t,e){const r=await t.exportKey("raw",e),n=new Uint8Array(r.byteLength+1);return n[0]=Ck.ECDSAP256R1,n.set(new Uint8Array(r),1),fe(n)}async function Sp(t,e,r){if(!r)throw new Error("No secure store available");return e?kk(t,e,r):Sk(t,r)}async function lee(t,e){if(!e)throw new Error("No secure store available");return t?oee(t,e):iee(e)}const Cp=Object.entries(st).reduce((t,[e,r])=>(t[r.name]=r.chainId,t),{}),cee=Object.entries(Cp).reduce((t,[e,r])=>(t[r]=e,t),{});function kv(t){const e=typeof t=="number"?t:parseInt(t);if(e in cee)return e;const r=t.toString().toLowerCase();if(r in Cp)return Cp[r];throw new Error(`Unknown network: ${t}`)}const Pk=()=>Rk()?new fee:null;function Rk(){return typeof window=="object"&&typeof window.crypto=="object"&&typeof window.crypto.subtle=="object"}class fee{constructor(){if(!Rk())throw new Error("window.crypto.subtle is not available")}async generateKey(e,r,n){return window.crypto.subtle.generateKey(e,r,n)}async exportKey(e,r){const n=await window.crypto.subtle.exportKey(e,r);return new Uint8Array(n)}async digest(e,r){const n=await window.crypto.subtle.digest(e,r);return new Uint8Array(n)}async sign(e,r,n){const i=await window.crypto.subtle.sign(e,r,n);return new Uint8Array(i)}async verify(e,r,n,i){return window.crypto.subtle.verify(e,r,n,i)}getRandomValues(e){const r=new Uint8Array(e);return window.crypto.getRandomValues(r)}}const Tk=()=>Mk()?new uee:null;function Mk(){return typeof indexedDB=="object"}class uee{constructor(){if(this.db=void 0,!Mk())throw new Error("IndexedDB is not available");this.db=null}async openDB(e,r,n){return this.db?this.db:(this.db=await vG(e,1,{upgrade(i){i.createObjectStore(r)}}),this.db)}async get(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readonly"),o=await i.get(r,n);return await s.done,o}async set(e,r,n,i){const s=await this.openDB(e,r,1),o=s.transaction(r,"readwrite");return await s.put(r,i,n),await o.done,!0}async delete(e,r,n){const i=await this.openDB(e,r,1),s=i.transaction(r,"readwrite");return await i.delete(r,n),await s.done,!0}}const dee="@0xsequence.waas.wallet",hee="@0xsequence.waas.session_id",vee="@0xsequence.waas.status",Ai=5*60;class yee{constructor(e={network:1},r=new Ak,n=Pk(),i=Tk()){this.config=e,this.store=r,this.cryptoBackend=n,this.secureStoreBackend=i,this.VERSION="0.0.0-dev1",this.status=void 0,this.sessionId=void 0,this.wallet=void 0,this.sessionObservers=[],this.gettingSessionIdPromise=void 0,this.status=new Ad(this.store,vee,"signed-out"),this.sessionId=new Ad(this.store,hee,void 0),this.wallet=new Ad(this.store,dee,void 0)}async getAddress(){return this.getWalletAddress()}async getWalletAddress(){if(!await this.isSignedIn())throw new Error("Not signed in");const e=await this.wallet.get();if(!e)throw new Error("No wallet");return e}async commonArgs(e){var r;return zr({},e,{identifier:e==null?void 0:e.identifier,wallet:await this.getWalletAddress(),lifespan:(r=e==null?void 0:e.lifespan)!=null?r:Ai,chainId:kv(e.network||this.config.network)})}async signIntent(e){const r=await this.sessionId.get();if(r===void 0)throw new Error("session not open");const n=await Sp(r,this.cryptoBackend,this.secureStoreBackend);return mZ(n,e)}async signUsingSessionKey(e){const r=await this.sessionId.get();if(!r)throw new Error("session not open");return(await Sp(r,this.cryptoBackend,this.secureStoreBackend)).sign(e)}async getSessionId(){var e=this;if(this.gettingSessionIdPromise)return this.gettingSessionIdPromise;const r=async function(){let i=await e.sessionId.get();return i||(i=await(await lee(e.cryptoBackend,e.secureStoreBackend)).sessionId(),await e.sessionId.set(i),e.signalObservers(e.sessionObservers,i)),e.gettingSessionIdPromise=void 0,i};return this.gettingSessionIdPromise=r(),this.gettingSessionIdPromise}async signIn({idToken:e}){if(await this.status.get()!=="signed-out")throw await this.completeSignOut(),new Error("you are already signed in");const n=await this.getSessionId(),i=await PZ({idToken:e,sessionId:n,lifespan:Ai});return await this.status.set("pending"),this.signIntent(i)}onSessionStateChanged(e){return this.sessionObservers.push(e),()=>{this.sessionObservers=this.sessionObservers.filter(r=>r!=e)}}async signOut({lifespan:e,sessionId:r}={}){if(r=r||await this.sessionId.get(),!r)throw new Error("session not open");const n=G4({lifespan:e||Ai,sessionId:r});return this.signIntent(n)}async signOutSession(e){const r=G4({lifespan:Ai,sessionId:e});return this.signIntent(r)}async listSessions(){const e=MZ({lifespan:Ai,wallet:await this.getWalletAddress()});return this.signIntent(e)}async completeSignOut(){await Promise.all([this.status.set("signed-out"),this.wallet.set(void 0),this.sessionId.set(void 0)]),this.signalObservers(this.sessionObservers,null)}async completeSignIn(e){if(e.result)return this.completeSignIn(e.result);const r=await this.status.get();if(e.code!=="sessionOpened")throw new Error("Invalid receipt");if(r!=="pending")throw new Error("No pending sign in");return await Promise.all([this.status.set("signed-in"),this.wallet.set(e.data.wallet)]),e.data.wallet}async isSignedIn(){return await this.status.get()==="signed-in"}async sessionAuthProof(e){var r;const n=_Z({lifespan:(r=e.lifespan)!=null?r:Ai,network:kv(e.network||this.config.network).toString(),wallet:await this.getWalletAddress(),nonce:e.nonce});return this.signIntent(n)}async signMessage(e){var r;const n=bZ(zr({chainId:kv(e.network||this.config.network)},e,{lifespan:(r=e.lifespan)!=null?r:Ai,wallet:await this.getWalletAddress()}));return this.signIntent(n)}async sendTransaction(e){const r=au(await this.commonArgs(e));return this.signIntent(r)}async getTransactionReceipt(e){const r=QZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC20(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC20");const r=YZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC721(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC721");const r=JZ(await this.commonArgs(e));return this.signIntent(r)}async sendERC1155(e){if(e.token.toLowerCase()===e.to.toLowerCase())throw new Error("Cannot burn tokens using sendERC1155");const r=XZ(await this.commonArgs(e));return this.signIntent(r)}async callContract(e){const r=ZZ(await this.commonArgs(e));return this.signIntent(r)}async feeOptions(e){const r=GZ(await this.commonArgs(e));return this.signIntent(r)}async validateSession({deviceMetadata:e}){const r=await this.sessionId.get();if(!r)throw new Error("session not open");const n=await RZ({lifespan:Ai,sessionId:r,deviceMetadata:e,wallet:await this.getWalletAddress()});return this.signIntent(n)}async getSession(){const e=await this.sessionId.get();if(!e)throw new Error("session not open");const r=IZ({sessionId:e,wallet:await this.getWalletAddress(),lifespan:Ai});return this.signIntent(r)}async finishValidateSession(e,r){const n=await this.sessionId.get();if(!n)throw new Error("session not open");const i=await this.getWalletAddress(),s=TZ({sessionId:n,wallet:i,lifespan:Ai,salt:e,challenge:r});return this.signIntent(s)}async batch(e){const r=tee(e);return this.signIntent(r)}signalObservers(e,r){e.forEach(n=>n(r))}async updateIntentTime(e,r){const n=xZ(e,r);return this.signIntent(n)}}const pee={rpcServer:"http://localhost:9123",emailRegion:"us-east-2"};class mee{constructor(e,r){this.region=e,this.clientId=r,this.cognitoMemo=void 0}cognito(){return this.cognitoMemo||(this.cognitoMemo=new dX({region:this.region})),this.cognitoMemo}signUp(e){return this.cognito().send(new vZ({ClientId:this.clientId,Username:e,Password:"aB1%"+gee(14),UserAttributes:[{Name:"email",Value:e}]}))}signIn(e){return this.cognito().send(new dZ({AuthFlow:"CUSTOM_AUTH",ClientId:this.clientId,AuthParameters:{USERNAME:e}}))}async initiateAuth({email:e}){let r;try{r=await this.signIn(e)}catch(n){if(n instanceof M0&&n.message.includes("user not found"))await this.signUp(e),r=await this.signIn(e);else throw n}if(!r.Session)throw new Error("response session is empty");return{instance:r.Session,email:e}}async finalizeAuth({instance:e,email:r,answer:n,sessionHash:i}){const s=await this.cognito().send(new hZ({ClientId:this.clientId,Session:e,ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:{USERNAME:r,ANSWER:n},ClientMetadata:{SESSION_HASH:i}}));if(!s.AuthenticationResult||!s.AuthenticationResult.IdToken)throw new Error("AuthenticationResult.IdToken is empty");return{idToken:s.AuthenticationResult.IdToken}}}function gee(t){return Array.from(xee(t)).map(e=>e.toString(16).padStart(2,"0")).join("")}function xee(t){const e=new Uint8Array(t);if(typeof window=="object"&&typeof window.crypto=="object")return window.crypto.getRandomValues(e);{console.warn("window.crypto.getRandomValues is not available. Falling back to less secure Math.random().");const r=new Uint8Array(t);for(let n=0;n{this.validationRequiredCallback=this.validationRequiredCallback.filter(r=>r!==e)}}async handleValidationRequired({onValidationRequired:e}={}){var r;if(!(e?e():!0))return!1;const i=await this.waas.validateSession({deviceMetadata:(r=await this.deviceName.get())!=null?r:"Unknown device"}),s=await this.sendIntent(i);this.validationRequiredSalt=s.data.salt;for(const o of this.validationRequiredCallback)o();return this.waitForSessionValid()}headers(){return{"X-Access-Key":this.config.projectAccessKey}}async sendIntent(e){if(!await this.waas.getSessionId())throw new Error("session not open");try{return(await this.client.sendIntent({intent:e},this.headers())).response}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return(await this.client.sendIntent({intent:i},this.headers())).response}throw n}}async isSignedIn(){return this.waas.isSignedIn()}async signIn(e,r){const n=await this.waas.signIn({idToken:e.idToken});if(!xG(e.idToken).iss)throw new Error("Invalid idToken");await this.deviceName.set(r);try{const s=await this.registerSession(n,r);return await this.waas.completeSignIn({code:"sessionOpened",data:{sessionId:s.session.id,wallet:s.response.data.wallet}}),{sessionId:s.session.id,wallet:s.response.data.wallet}}catch(s){throw await this.waas.completeSignOut(),s}}async registerSession(e,r){try{return await this.client.registerSession({intent:e,friendlyName:r},this.headers())}catch(n){if(Q4(n)&&this.lastDate){const i=await this.waas.updateIntentTime(e,this.lastDate);return await this.client.registerSession({intent:i,friendlyName:r},this.headers())}throw n}}async refreshSession(){throw new Error("Not implemented")}async getSessionId(){return this.waas.getSessionId()}async getSessionHash(){const e=(await this.waas.getSessionId()).toLowerCase();return Et(sr(e))}async dropSession({sessionId:e,strict:r}={}){const n=await this.waas.getSessionId();if(!n)throw new Error("session not open");const i=e||n;try{const s=await this.waas.signOutSession(i),o=await this.sendIntent(s);if(!UZ(o))throw new Error(`Invalid response: ${JSON.stringify(o)}`)}catch(s){if(r)throw s;console.error(s)}if(i===n){if(!this.secureStoreBackend)throw new Error("No secure store available");(await Sp(n,this.cryptoBackend,this.secureStoreBackend)).clear(),await this.waas.completeSignOut(),await this.deviceName.set(void 0)}}async listSessions(){const e=await this.waas.getSessionId();if(!e)throw new Error("session not open");const r=await this.waas.listSessions();return(await this.sendIntent(r)).data.map(i=>zr({},i,{isThis:i.id===e}))}async getAddress(){return this.waas.getAddress()}async validateSession(e){return await this.isSessionValid()?!0:this.handleValidationRequired(e)}async finishValidateSession(e){const r=await this.waas.finishValidateSession(this.validationRequiredSalt,e),n=await this.sendIntent(r);if(!FZ(n))throw new Error(`Invalid response: ${JSON.stringify(n)}`);return this.validationRequiredSalt="",n.data.isValid}async isSessionValid(){const e=await this.waas.getSession(),r=await this.sendIntent(e);if(!zZ(r))throw new Error(`Invalid response: ${JSON.stringify(r)}`);return r.data.validated}async waitForSessionValid(e=6e5,r=2e3){const n=Date.now();for(;Date.now()-nsetTimeout(i,r))}return!1}async sessionAuthProof({nonce:e,network:r,validation:n}){const i=await this.waas.sessionAuthProof({nonce:e,network:r});return await this.trySendIntent({validation:n},i,jZ)}async useIdentifier(e){if(e.identifier)return e;const r=`ts-sdk-${Date.now()}-${await this.waas.getSessionId()}`;return zr({},e,{identifier:r})}async trySendIntent(e,r,n){const i=await this.sendIntent(r);if(n(i))return i;if($Z(i)&&await this.handleValidationRequired(e.validation)){const o=await this.sendIntent(r);if(n(o))return o}throw new Error(JSON.stringify(i))}async signMessage(e){const r=await this.waas.signMessage(await this.useIdentifier(e));return this.trySendIntent(e,r,LZ)}async trySendTransactionIntent(e,r){let n=await this.trySendIntent(r,e,K4);for(;bk(n);){await new Promise(o=>setTimeout(o,1e3));const i={metaTxHash:n.data.metaTxHash,network:e.data.network,identifier:e.data.identifier,validation:r.validation},s=await this.waas.getTransactionReceipt(await this.useIdentifier(i));n=await this.trySendIntent(i,s,K4)}return n}async sendTransaction(e){const r=await this.waas.sendTransaction(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC20(e){const r=await this.waas.sendERC20(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC721(e){const r=await this.waas.sendERC721(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async sendERC1155(e){const r=await this.waas.sendERC1155(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async callContract(e){const r=await this.waas.callContract(await this.useIdentifier(e));return this.trySendTransactionIntent(r,e)}async feeOptions(e){const r=await this.waas.feeOptions(await this.useIdentifier(e));return this.trySendIntent(e,r,BZ)}async networkList(){const e=[],r=await this.client.chainList({"X-Access-Key":this.config.projectAccessKey});for(const n of r.chains)e.push({id:n.id,name:n.name,isEnabled:n.isEnabled});return e}onSessionStateChanged(e){return this.waas.onSessionStateChanged(e)}async fetch(e,r){const n=await window.fetch(e,r),i=n.headers.get("date");return i&&(this.lastDate=new Date(i)),n}}async function _0({transactions:t,network:e}){const r=await nt.feeOptions({transactions:t,network:e==null?void 0:e.id});return r.data.feeQuote&&r.data.feeOptions?{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!1}:{feeQuote:r.data.feeQuote,feeOptions:r.data.feeOptions,isSponsored:!0}}function O0(t){var s;const{feeOptions:e,onSelected:r}=t,[n,i]=p.useState();return p.useEffect(()=>{e&&e.length>0&&(i(e[0]),r(e[0]))},[e]),p.useEffect(()=>{n&&r(n)},[n]),e?j.jsxs(ee,{marginTop:"5",children:[j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options:"}),j.jsx(ee,{marginTop:"3"}),j.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:o=>{const a=e.find(l=>l.token.name===o);a&&i(a)},value:(s=n==null?void 0:n.token)==null?void 0:s.name,options:[...e.map(o=>{var a,l,c;return{label:j.jsx(ee,{alignItems:"center",gap:"2",children:j.jsxs(Se,{children:[(a=o==null?void 0:o.token)==null?void 0:a.name," ",Gg(o==null?void 0:o.value,(l=o==null?void 0:o.token)==null?void 0:l.decimals)]})}),value:String((c=o==null?void 0:o.token)==null?void 0:c.name)}})]})]}):j.jsx(ee,{})}const Aee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function See(t){const[e,r]=p.useState(),[n,i]=p.useState("ETH"),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(),[v,g]=p.useState(!1),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(),[M,L]=p.useState(!1);p.useEffect(()=>{z()},[]),p.useEffect(()=>{var Z,O;if(t.network){const h=DE(t.network.name);if(h){const S=h.name in{polygon:1,mumbai:1}?"MATIC":"ETH";i(S),z(),(Z=h.blockExplorer)!=null&&Z.rootUrl&&o((O=h.blockExplorer)==null?void 0:O.rootUrl)}}},[t.network]);const z=async()=>{if(!t.network)return;const Z=DE(t.network.name);if(!Z)return;const O=await nt.getAddress(),S=await new JC(R9(Z.name),Aee).getEtherBalance({accountAddress:O});r(ae.from(S.balance.balanceWei))},H=async(Z,O)=>{const h=await _0({transactions:[{to:Z,value:NE(O)}],network:t.network});if(h.feeQuote&&h.feeOptions){b(h.feeOptions),D(h.feeQuote),console.log("feeOptions",h);return}L(!0),console.log("tx sponsored")},Y=async(Z,O)=>{var h;try{w(void 0),g(!0);const S=await nt.sendTransaction({transactions:[{to:Z,value:NE(O)}],network:(h=t.network)==null?void 0:h.id,transactionsFeeOption:A,transactionsFeeQuote:_});ou(S)?d(S.data.txHash):w(S.data.error),g(!1)}catch(S){console.error(S),g(!1)}finally{D(void 0),b(void 0),P(void 0),L(!1)}};return j.jsxs(ee,{children:[j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Native token balance: ",WW(e||0)," ",n]}),j.jsx(cr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:z}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"sendNativeTokenTo",type:"text",onChange:Z=>{l(Z.target.value)},value:a,placeholder:"To address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"sendNativeTokenAmount",type:"text",onChange:Z=>{f(Z.target.value)},value:c,placeholder:"Amount",required:!0,"data-id":"nativeTokenSendAmount"})}),y&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",y]}),j.jsx(O0,{feeOptions:x,onSelected:P}),M&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:a===""&&c==="",onClick:()=>H(a,c)}),j.jsx(cr,{marginTop:"5",label:"Send native token",disabled:a===""&&c==="",onClick:()=>Y(a,c)})]}),u&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),j.jsx("br",{}),j.jsx("a",{href:`${s}tx/${u}`,target:"_blank",rel:"noopener noreferrer",children:u})]})]})}function Cee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState(!0),[o,a]=p.useState(),l=async c=>{s(!0),e(void 0);try{await nt.dropSession({sessionId:c}),e(await nt.listSessions())}catch(f){a(f.message),e(await nt.listSessions())}s(!1)};return p.useEffect(()=>{Promise.all([nt.listSessions(),nt.getSessionId()]).then(([c,f])=>{e(c),n(f),s(!1)}).catch(c=>{a(c.message),s(!1)})},[]),j.jsxs(ee,{children:[j.jsxs(ee,{marginBottom:"5",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your open sessions"}),t&&j.jsx(j.Fragment,{children:t.map(c=>j.jsx(ee,{children:j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:[c.friendlyName,!c.isThis&&j.jsx("a",{style:{marginLeft:"7px",textDecoration:"underline",cursor:"pointer"},onClick:()=>l(c.id),children:"x"}),c.isThis&&j.jsx(j.Fragment,{children:" (current)"})]})},c.id))}),i&&j.jsx(vi,{})]}),o&&j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Error loading sessions: ",o]})]})}function kee(t){const[e,r]=p.useState(""),[n,i]=p.useState(),s=async()=>{var a;const o=await nt.signMessage({message:e,network:(a=t.network)==null?void 0:a.id});i(o.data.signature)};return j.jsxs(ee,{children:[j.jsx(Pr,{name:"signMessageText",type:"text",onChange:o=>{r(o.target.value),n!=""&&i("")},value:e,placeholder:"Enter a message to sign",required:!0,"data-id":"signMessageInput"}),j.jsx(cr,{marginTop:"5",label:"Sign message",disabled:e==="",onClick:()=>s()}),n&&n!==""&&j.jsxs(ee,{flexDirection:"column",marginTop:"5",children:[j.jsxs(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:["Signature for ",e,":"]}),j.jsx(ee,{children:j.jsx(Se,{as:"p",wordBreak:"break-word",children:n})})]})]})}function Pee(t){const[e,r]=p.useState(""),[n,i]=p.useState(""),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(),[u,d]=p.useState(!1),[v,g]=p.useState(),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(!1),M=async()=>{const z=await _0({transactions:[wk({to:e,abi:n,func:s,args:JSON.parse(a),value:"0"})],network:t.network});if(z.feeQuote&&z.feeOptions){w(z.feeOptions),P(z.feeQuote),console.log("feeOptions",z);return}D(!0),console.log("tx sponsored")},L=async()=>{var z;try{g(void 0),d(!0);const H=await nt.callContract({network:(z=t.network)==null?void 0:z.id,to:e,abi:n,func:s,args:JSON.parse(a),value:0,transactionsFeeOption:x,transactionsFeeQuote:A});ou(H)?f(H.data.txHash):g(H.data.error),d(!1)}catch(H){console.error(H),d(!1)}};return j.jsxs(ee,{children:[j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractAddress",type:"text",onChange:z=>{r(z.target.value)},value:e,placeholder:"Contract address 0x...",required:!0,"data-id":"nativeTokenSendAddress"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractAbi",type:"text",onChange:z=>{i(z.target.value)},value:n,placeholder:"Contract ABI or function ABI, e.g. [{...}] or [{...}, {...}] or transfer(address,uint256)",required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractMethod",type:"text",onChange:z=>{o(z.target.value)},value:s,placeholder:"Method name, e.g. transfer",required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{name:"callContractArgs",type:"text",onChange:z=>{l(z.target.value)},value:a,placeholder:'Method args, e.g. [0x..., 1000] or named { "to": "0x...", "amount": "1000" }',required:!0,"data-id":"nativeTokenSendAmount"})}),j.jsx(O0,{feeOptions:y,onSelected:b}),_&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),v&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",v]}),u?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>M()}),j.jsx(cr,{marginTop:"5",label:"Call contract",disabled:e===""&&n===""&&s===""&&a==="",onClick:()=>L()})]}),c&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Send native token transaction hash:"}),j.jsx("br",{}),j.jsx("a",{href:`https://polygonscan.com/tx/${c}`,target:"_blank",rel:"noopener noreferrer",children:c})]})]})}const Y4=[{label:"Custom Token",value:"Custom"},{label:"USDC Old",value:"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174"},{label:"USDC New",value:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359"},{label:"DAI",value:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063"}];function Ree(t){const[e,r]=p.useState(Y4[0].value),[n,i]=p.useState(""),[s,o]=p.useState(!0),[a,l]=p.useState("---"),[c,f]=p.useState(""),[u,d]=p.useState(""),[v,g]=p.useState(""),[y,w]=p.useState(""),[x,b]=p.useState(!1),[A,P]=p.useState(0),[_,D]=p.useState(),[M,L]=p.useState(),[z,H]=p.useState(),[Y,Z]=p.useState(!1);p.useEffect(()=>{O(n)},[n]);const O=async I=>{var B;if(!Az(I)){l("---");return}l("...");const R=new k9(`https://nodes.sequence.app/${(B=t.network)==null?void 0:B.name}`),N=new jH(I,["function balanceOf(address) view returns (uint256)","function decimals() view returns (uint8)","function symbol() view returns (string)"],R);try{const[C,m,T]=await Promise.all([N.balanceOf(nt.getAddress()),N.decimals(),N.symbol()]);P(m),l(`${Gg(C,m)} ${T}`)}catch{l("---")}},h=async()=>{const I=await _0({transactions:[cb({token:n,to:c,value:Lf(u,A).toString()})],network:t.network});if(I.feeQuote&&I.feeOptions){D(I.feeOptions),H(I.feeQuote),console.log("feeOptions",I);return}Z(!0),console.log("tx sponsored")},S=async()=>{var I;try{w(""),b(!0);const R=await nt.sendERC20({token:n,to:c,value:Lf(u,A),network:(I=t.network)==null?void 0:I.id,transactionsFeeOption:M,transactionsFeeQuote:z});ou(R)?g(R.data.txHash):w(R.data.error)}catch(R){console.error(R)}finally{b(!1)}},k=I=>{r(I),I==="Custom"?(i(""),o(!0)):(i(I),o(!1))};return j.jsxs(ee,{children:[j.jsxs(ee,{marginTop:"5",children:[j.jsx(d0,{name:"token",options:Y4,value:e??"",onValueChange:I=>k(I)}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:n,disabled:!s,onChange:I=>i(I.target.value),placeholder:"Custom ERC20 Contract Address"})})]}),j.jsxs(ee,{marginTop:"3",children:[j.jsxs(Se,{variant:"normal",color:"text100",children:["Token Balance: ",a]}),j.jsx(cr,{marginLeft:"2",size:"xs",label:"Fetch",onClick:()=>O(n)})]}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:c,onChange:I=>f(I.target.value),placeholder:"Destination Address"})}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:u,onChange:I=>d(I.target.value),placeholder:"Amount"})}),y&&j.jsx(ee,{marginTop:"3",children:j.jsxs(Se,{color:"error",children:["Error: ",y]})}),j.jsx(O0,{feeOptions:_,onSelected:L}),Y&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),x?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:n===""&&c==="",onClick:()=>h()}),j.jsx(cr,{marginTop:"5",label:"Send Token",onClick:S})]}),v&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),j.jsx("a",{href:`https://polygonscan.com/tx/${v}`,target:"_blank",rel:"noopener noreferrer",children:v})]})]})}const Tee="3XwfKaFvrgRIZ6om79SxYoTAAAAAAAAAA";function Mee(t){var a;const[e,r]=p.useState(""),[n,i]=p.useState("");p.useEffect(()=>{t.onChange(t.index,e,n)},[e,n]);const s={display:"flex",gap:"10px",marginBottom:"10px"},o={flex:1};return j.jsxs(ee,{style:s,children:[j.jsx(ee,{style:o,children:j.jsx(d0,{name:`sendERC1155TokenId${t.index}`,value:e,disabled:!t.options,onValueChange:l=>{r(l)},options:((a=t.options)==null?void 0:a.balances.map(l=>{var c;return{label:`${((c=l.tokenMetadata)==null?void 0:c.name)||"Unknown"} - ${l.balance}`,value:l.tokenID}}))||[],placeholder:"Select a token"})}),j.jsx(ee,{style:o,children:j.jsx(Pr,{type:"text",value:e,onChange:l=>r(l.target.value),placeholder:"Token ID"})}),j.jsx(ee,{style:o,children:j.jsx(Pr,{type:"text",value:n,onChange:l=>i(l.target.value),placeholder:"Amount"})}),j.jsx(ee,{style:o,children:j.jsx(cr,{label:"Remove",onClick:()=>t.removeTokenEntry(t.index)})})]})}function Iee(t){const[e,r]=p.useState(""),[n,i]=p.useState([]),[s,o]=p.useState(""),[a,l]=p.useState(""),[c,f]=p.useState(""),[u,d]=p.useState(!1),[v,g]=p.useState(void 0),[y,w]=p.useState(),[x,b]=p.useState(),[A,P]=p.useState(),[_,D]=p.useState(!1),M=()=>{i([...n,{tokenId:"",amount:""}])},L=async()=>{if(!e||!t.network)return;const O=t.network.name,h=new JC("https://"+O+"-indexer.sequence.app",Tee),S=e,k=await nt.getAddress(),I=!0;g(await h.getTokenBalances({contractAddress:S,accountAddress:k,includeMetadata:I}))};p.useEffect(()=>{L()},[e]);const z=(O,h)=>{const S=[...n];S[O]=h,i(S)},H=O=>{const h=[...n];h.splice(O,1),i(h)},Y=async()=>{const O=await _0({transactions:[fb({to:s,token:e,values:n.map(h=>({id:h.tokenId,amount:Lf(h.amount,0)}))})],network:t.network});if(O.feeQuote&&O.feeOptions){w(O.feeOptions),P(O.feeQuote),console.log("feeOptions",O);return}D(!0),console.log("tx sponsored")},Z=async()=>{var O;try{f(""),d(!0);const h=await nt.sendERC1155({to:s,token:e,values:n.map(S=>({id:S.tokenId,amount:Lf(S.amount,0)})),network:(O=t.network)==null?void 0:O.id,transactionsFeeOption:x,transactionsFeeQuote:A});ou(h)?l(h.data.txHash):f(h.data.error)}catch(h){console.error(h)}finally{d(!1)}};return j.jsxs(ee,{children:[j.jsx(ee,{marginBottom:"5",children:j.jsx(Pr,{type:"text",value:e,onChange:O=>r(O.target.value),placeholder:"Token Contract Address"})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(cr,{label:"Fetch metadata",onClick:()=>L()})}),n.map((O,h)=>j.jsx(ee,{marginBottom:"3",children:j.jsx(Mee,{index:h,options:v,onChange:(S,k,I)=>z(S,{tokenId:k,amount:I}),removeTokenEntry:H})},h)),j.jsx(cr,{label:"Add Token",onClick:M}),j.jsx(ee,{marginTop:"5",children:j.jsx(Pr,{type:"text",value:s,onChange:O=>o(O.target.value),placeholder:"Destination Address"})}),c&&j.jsx(ee,{marginTop:"3",children:j.jsxs(Se,{color:"error",children:["Error: ",c]})}),j.jsx(O0,{feeOptions:y,onSelected:b}),_&&j.jsx(ee,{marginTop:"5",children:j.jsx(Se,{variant:"normal",fontWeight:"bold",children:"Fee options: Tx Sponsored!"})}),u?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsxs(ee,{children:[j.jsx(cr,{marginTop:"5",marginRight:"2",label:"Check fee options",disabled:e===""&&s===""&&n.length!==0,onClick:()=>Y()}),j.jsx(cr,{marginTop:"5",label:"Send Tokens",onClick:Z})]}),a&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Transaction Hash:"}),j.jsx("a",{href:`https://polygonscan.com/tx/${a}`,target:"_blank",rel:"noopener noreferrer",children:a})]})]})}function _ee(t){var g,y;const[e,r]=p.useState(),[n,i]=p.useState(),[s,o]=p.useState(),[a,l]=p.useState(),[c,f]=p.useState(!1),[u,d]=p.useState(),v=async()=>{var w;try{d(void 0),f(!0);const b=await(await fetch("https://demo-waas-wallet-link-server.tpin.workers.dev/generateNonce",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:t.walletAddress})})).json();o(b.verificationUrl),l(b.nonce);const A=await nt.sessionAuthProof({nonce:b.nonce,network:(w=t.network)==null?void 0:w.name});i(A.data.sessionId),r(A.data.signature),f(!1)}catch(x){console.error(x),f(!1)}};return j.jsxs(ee,{children:[u&&j.jsxs(ee,{marginTop:"3",children:["Transaction failed: ",u]}),c?j.jsx(ee,{gap:"2",marginY:"4",alignItems:"center",justifyContent:"center",children:j.jsx(vi,{})}):j.jsx(ee,{children:j.jsx(cr,{marginTop:"5",label:"Generate EOA Link",disabled:a!==void 0,onClick:()=>v()})}),a&&j.jsxs(ee,{marginTop:"3",children:[j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Verification Link:"}),j.jsx("br",{}),j.jsxs("a",{href:`${s}?nonce=${a}&signature=${e}&sessionId=${n}&chainId=${(g=t.network)==null?void 0:g.id}`,target:"_blank",rel:"noopener noreferrer",children:[s,"?nonce=",a,"&signature=",e,"&sessionId=",n,"&chainId=",(y=t.network)==null?void 0:y.id]})]})]})}const Qu="data:image/png;base64,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",J4="data:image/png;base64,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",Oee="/demo-waas-auth/assets/100-cf3a0cbf.png",Nee="/demo-waas-auth/assets/1101-1d0b8ff9.png",X4="data:image/png;base64,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",Z4="/demo-waas-auth/assets/250-2aa72264.png",eA="/demo-waas-auth/assets/42161-90b816d4.png",Dee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAkxQTFRF////AAAA74Ig8Iwx8ZA4//7974Qj74Mh///+//////78////74Mi//v4//////z5/vfx74Um//37////////////////////////////////////////8ZE774Yn8Y42/fLn////////8Isw////86FW/evc/OXR////+dGt/vPp8Igq++HK+9u/976M8pZE/ezd8Icp+dOx/vbu9KZg/vr2/OjW9a9w9Kll+ti5/e/j/vnz8pxO//r3////8Y838pZD////////////////8Iwy////851Q////+MWX+cyk+tWz+97E8ZI9////8Y0z////////////8ptM/fDk9rZ9972J+93C86Nb8ZM+9riB/OXQ+c+p/OfU/OnY8ZRB////9Kdi9a5u////9axr////////////////////////////////////9Kpn////98KS86Rd/////////vfw/////OPN////859U98GQ////////9rmB+9/G9bJ298CO+Mqg/e3f9bR686JZ8plI9a1t+dKv9bJ18ZA6/vXs8Igs+Mui/e7h/OrZ+Mmf+c6n8phI8Iov86Ve////////+MaZ////8Ikt////+tm7+c2l////++LM98OT8pdG////////+Mid9ruF855S////////////////+Mib////9rN49rd++tq997yG+ta3////98OV////////++DI////////9rV7+tW19bBy/vPq9rqD9Ktp////8ppK////////////////////////Mj9/0QAAAMR0Uk5T/wD/////////Af/+///9/////5/W9TQF4uDZ6MT/////x1L/Av///5b////////////////////////////Q///vCh77/6X/uP//////p/8SDgb/////////////////J///UP8QSyRsVr4rDZr/Wf//bwz/9/9N///8L///////////////////////////////h7H/5P9d///c////j+n////zMuxm/6D//////5v/WFv/MCz///////9U/2M11GLeOHwhNZoAAAr/SURBVHicxVv3Y1RFEJ67JCSXkII5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",tA="data:image/png;base64,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",rA="/demo-waas-auth/assets/56-06b98271.png",dr={MAINNET:1,ROPSTEN:3,RINKEBY:4,GOERLI:5,KOVAN:42,POLYGON:137,POLYGON_MUMBAI:80001,POLYGON_ZKEVM:1101,BSC:56,BSC_TESTNET:97,OPTIMISM:10,OPTIMISM_TESTNET:69,ARBITRUM:42161,ARBITRUM_GOERLI:421613,ARBITRUM_NOVA:42170,AVALANCHE:43114,AVALANCHE_TESTNET:43113,FANTOM:250,FANTOM_TESTNET:4002,GNOSIS:100,AURORA:1313161554,AURORA_TESTNET:1313161556,BASE_GOERLI:84531,HOMEVERSE_TESTNET:40875},Lee={[dr.MAINNET]:Qu,[dr.ROPSTEN]:Qu,[dr.GOERLI]:Qu,[dr.KOVAN]:Qu,[dr.OPTIMISM]:J4,[dr.OPTIMISM_TESTNET]:J4,[dr.POLYGON]:X4,[dr.POLYGON_MUMBAI]:X4,[dr.POLYGON_ZKEVM]:Nee,[dr.ARBITRUM]:eA,[dr.ARBITRUM_NOVA]:Dee,[dr.ARBITRUM_GOERLI]:eA,[dr.GNOSIS]:Oee,[dr.BSC]:rA,[dr.BSC_TESTNET]:rA,[dr.FANTOM]:Z4,[dr.FANTOM_TESTNET]:Z4,[dr.AVALANCHE]:tA,[dr.AVALANCHE_TESTNET]:tA};function jee({onNetworkChange:t}){const[e,r]=p.useState(),[n,i]=p.useState([]);return p.useEffect(()=>{nt.networkList().then(s=>{i(s),r(s[0]),t(s[0])})},[]),n.length===0?j.jsx(ee,{marginY:"5",children:j.jsx(vi,{})}):j.jsxs(ee,{marginBottom:"4",children:[j.jsx(ee,{marginBottom:"4",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Network to use with requests:"})}),j.jsx(ee,{children:j.jsx(d0,{name:"chainId",labelLocation:"top",onValueChange:s=>{const o=n==null?void 0:n.find(a=>a.name===s);o&&(r(o),t(o))},value:e==null?void 0:e.name,options:[...n.map(s=>({label:j.jsxs(ee,{alignItems:"center",gap:"2",children:[j.jsx(B$,{src:Lee[s.id],size:"sm"}),j.jsx(Se,{children:s.name})]}),value:String(s.name)}))]})})]})}function Bee(){const[t,e]=p.useState(),[r,n]=p.useState(),[i,s]=p.useState([]),[o,a]=p.useState(!1),[l,c]=p.useState(!1),[f,u]=p.useState();return p.useEffect(()=>{nt.getAddress().then(d=>{e(d)}).catch(d=>{n(d.message)})},[]),p.useEffect(()=>{nt.isSignedIn().then(d=>{d||Uo.navigate("/login")})},[]),p.useEffect(()=>{const d=i.join("");d.length===6&&(c(!0),nt.finishValidateSession(d))},[i]),p.useEffect(()=>{const d=nt.onValidationRequired(()=>{a(!0),nt.waitForSessionValid(6e5,4e3).then(v=>{console.log("isValid",v),s([]),a(!1),c(!1)})});return()=>{d.then(v=>v())}},[]),j.jsxs(j.Fragment,{children:[j.jsx(qS,{children:o&&j.jsx(Wj,{children:j.jsx("div",{style:{display:"flex",alignItems:"center",justifyContent:"center",fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1.2em",height:"50vh"},children:j.jsxs(ee,{flexDirection:"column",alignItems:"center",children:[j.jsx(Se,{marginBottom:"7",children:"Please enter the session verification code that was sent to your email"}),j.jsx(OC,{value:i,digits:6,onChange:s}),j.jsx(ee,{marginTop:"5",children:l&&j.jsx(vi,{})})]})})})}),j.jsxs(ee,{marginY:"0",marginX:"auto",paddingX:"6",style:{maxWidth:"720px",marginTop:"80px",marginBottom:"80px"},children:[j.jsx(ee,{marginBottom:"10",children:j.jsx(NC,{})}),j.jsxs(ee,{marginBottom:"5",flexDirection:"row",children:[j.jsxs(Se,{marginTop:"1",variant:"normal",color:"text100",children:["Logged in with email:"," "]}),j.jsx(cr,{marginLeft:"auto",label:"Log out",size:"xs",onClick:async()=>{try{await nt.dropSession({strict:!1})}catch(d){console.warn(`Could not drop session: ${d.message}`)}mU(),Uo.navigate("/login")}})]}),j.jsx(Ms,{background:"buttonGlass"}),j.jsx(ee,{marginBottom:"5",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"bold",children:"Your wallet address:"})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(Se,{variant:"normal",color:"text100",fontWeight:"normal",children:t?j.jsx(ee,{children:j.jsx(Se,{children:t})}):j.jsx(vi,{})})}),j.jsx(ee,{marginBottom:"5",children:j.jsx(jee,{onNetworkChange:u})}),j.jsx(ee,{children:r&&j.jsxs(Se,{children:["Error fetching wallet address: ",r]})}),j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Cee,{}),j.jsxs(xa,{marginY:"3",label:"Send native token transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(See,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Send ERC20 transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Ree,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Send ERC1155 transaction",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Iee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Sign a message",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(kee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"Call contracts",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(Pee,{network:f})]}),j.jsxs(xa,{marginY:"3",label:"EOA Link",children:[j.jsx(Ms,{background:"buttonGlass"}),j.jsx(_ee,{network:f,walletAddress:t})]})]})]})}const $ee="970987756660-35a6tc48hvi8cev9cnknp0iugv9poa23.apps.googleusercontent.com",nA="970987756660-6ibakd38eibf3cg9rq42hri7o0jn5va8.apps.googleusercontent.com",Fee="AQAAAAAAAEGv4rUgioUNUbcdNZlvOZE72JI",Uee="eyJwcm9qZWN0SWQiOjE2ODE1LCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI2N2V2NXVvc3ZxMzVmcGI2OXI3NnJoYnVoIiwicnBjU2VydmVyIjoiaHR0cHM6Ly93YWFzLnNlcXVlbmNlLmFwcCJ9",iA="AQAAAAAAAAK2JvvZhWqZ51riasWBftkrVXE",sA="eyJwcm9qZWN0SWQiOjY5NCwicnBjU2VydmVyIjoiaHR0cHM6Ly9kZXYtd2Fhcy5zZXF1ZW5jZS5hcHAiLCJlbWFpbFJlZ2lvbiI6ImNhLWNlbnRyYWwtMSIsImVtYWlsQ2xpZW50SWQiOiI1NGF0bjV1cGk2M3FjNTlhMWVtM3ZiaHJzbiJ9";new k9("https://nodes.sequence.app/polygon");const N0=new URLSearchParams(window.location.search),zee=N0.get("env")??"prod";let Ik=N0.get("projectAccessKey")??Fee,_k=N0.get("waasConfigKey")??Uee,Ok=N0.get("googleClientId")??$ee;zee==="dev"&&(console.log("Using dev environment"),console.log(`Project Access Key: ${iA}`),console.log(`Waas Config Key: ${sA}`),console.log(`Google Client ID: ${nA}`),Ik=iA,_k=sA,Ok=nA);const nt=new Eee({network:"polygon",projectAccessKey:Ik,waasConfigKey:_k}),Uo=ZF([{path:"/login",element:j.jsx(iG,{})},{path:"/",element:j.jsx(Bee,{})}]);Pv.createRoot(document.getElementById("root")).render(j.jsx(gr.StrictMode,{children:j.jsx(Uj,{children:j.jsx(dU,{clientId:Ok,children:j.jsx(lU,{router:Uo})})})})); diff --git a/index.html b/index.html index 0a67b90..c067296 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Demo Waas App - +