@powerhousedao/connect 2.5.0-dev.26 → 2.5.0-dev.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{app-DemhJBtL.js → app-B69ZGOCX.js} +7 -7
- package/dist/assets/{app-DemhJBtL.js.map → app-B69ZGOCX.js.map} +1 -1
- package/dist/assets/{ccip-DsoRw0ey.js → ccip-t4nNoZXr.js} +2 -2
- package/dist/assets/{ccip-DsoRw0ey.js.map → ccip-t4nNoZXr.js.map} +1 -1
- package/dist/assets/{content-CqlGzJ9E.js → content-BlnXWyxl.js} +2 -2
- package/dist/assets/{content-CqlGzJ9E.js.map → content-BlnXWyxl.js.map} +1 -1
- package/dist/assets/{cookie-banner-RRGFlN77.js → cookie-banner-CvRgenFS.js} +2 -2
- package/dist/assets/{cookie-banner-RRGFlN77.js.map → cookie-banner-CvRgenFS.js.map} +1 -1
- package/dist/assets/{index-CAmklhB_.js → index-BuACf4q4.js} +2 -2
- package/dist/assets/{index-CAmklhB_.js.map → index-BuACf4q4.js.map} +1 -1
- package/dist/assets/{index-Bl0d6Kas.js → index-CPZNYiTx.js} +5 -5
- package/dist/assets/{index-Bl0d6Kas.js.map → index-CPZNYiTx.js.map} +1 -1
- package/dist/assets/{index-g_ZsSZiy.js → index-D-_NAIFf.js} +2 -2
- package/dist/assets/{index-g_ZsSZiy.js.map → index-D-_NAIFf.js.map} +1 -1
- package/dist/assets/{index-BcujX_N5.js → index-G6fviTFt.js} +2 -2
- package/dist/assets/{index-BcujX_N5.js.map → index-G6fviTFt.js.map} +1 -1
- package/dist/assets/{index-Cmhr0IDy.js → index-gXrptkHo.js} +2 -2
- package/dist/assets/{index-Cmhr0IDy.js.map → index-gXrptkHo.js.map} +1 -1
- package/dist/assets/{isAddressEqual-CA7kyk8U.js → isAddressEqual-CsqPRHiQ.js} +2 -2
- package/dist/assets/{isAddressEqual-CA7kyk8U.js.map → isAddressEqual-CsqPRHiQ.js.map} +1 -1
- package/dist/assets/{main.BfvjkEmH.js → main.Dor3jd7n.js} +3 -3
- package/dist/assets/{main.BfvjkEmH.js.map → main.Dor3jd7n.js.map} +1 -1
- package/dist/assets/{nodefs-DQM1GaXC.js → nodefs-zlDFGKxL.js} +2 -2
- package/dist/assets/{nodefs-DQM1GaXC.js.map → nodefs-zlDFGKxL.js.map} +1 -1
- package/dist/assets/{opfs-ahp-DvmABYcL.js → opfs-ahp-CSrWb8SJ.js} +2 -2
- package/dist/assets/{opfs-ahp-DvmABYcL.js.map → opfs-ahp-CSrWb8SJ.js.map} +1 -1
- package/dist/assets/{reactor-analytics-wzAQzYUx.js → reactor-analytics-CwInhdDU.js} +3 -3
- package/dist/assets/{reactor-analytics-wzAQzYUx.js.map → reactor-analytics-CwInhdDU.js.map} +1 -1
- package/dist/assets/{router-BAPVorm3.js → router-DEqXXlkn.js} +4 -4
- package/dist/assets/{router-BAPVorm3.js.map → router-DEqXXlkn.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/vite-envs.sh +1 -1
- package/package.json +9 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-
|
|
2
|
-
var Zo=e=>{throw TypeError(e)};var Cn=(e,t,n)=>t.has(e)||Zo("Cannot "+n);var v=(e,t,n)=>(Cn(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?Zo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),I=(e,t,n,r)=>(Cn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(Cn(e,t,"access private method"),n);import{createRoot as Ka}from"react-dom/client";import{_ as Mr}from"./main.BfvjkEmH.js";import{jsx as l,Fragment as oi,jsxs as H}from"react/jsx-runtime";import*as m from"react";import Ga,{useLayoutEffect as Xa,useEffect as nn,useState as x1,forwardRef as Ya,Suspense as Zn,useRef as Or,useCallback as Qa,createElement as jo,createContext as _a,useContext as e0,useSyncExternalStore as t0,lazy as si,StrictMode as n0}from"react";import*as ii from"react-dom";import r0 from"react-dom";const B=e=>typeof e=="string",r1=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},$o=e=>e==null?"":""+e,o0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},s0=/###/g,zo=e=>e&&e.indexOf("###")>-1?e.replace(s0,"."):e,Uo=e=>!e||B(e),u1=(e,t,n)=>{const r=B(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Uo(e))return{};const s=zo(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return Uo(e)?{}:{obj:e,k:zo(r[o])}},Jo=(e,t,n)=>{const{obj:r,k:o}=u1(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),a=u1(e,i,Object);for(;a.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),a=u1(e,i,Object),a&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},i0=(e,t,n,r)=>{const{obj:o,k:s}=u1(e,t,Object);o[s]=o[s]||[],o[s].push(n)},z1=(e,t)=>{const{obj:n,k:r}=u1(e,t);if(n)return n[r]},a0=(e,t,n)=>{const r=z1(e,n);return r!==void 0?r:z1(t,n)},ai=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ai(e[r],t[r],n):e[r]=t[r]);return e},vt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var c0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const l0=e=>B(e)?e.replace(/[&<>"'\/]/g,t=>c0[t]):e;class u0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const d0=[" ",",","?","!",";"],f0=new u0(20),h0=(e,t,n)=>{t=t||"",n=n||"";const r=d0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=f0.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(e);if(!s){const i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(s=!0)}return s},jn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,a="";for(let c=s;c<r.length;++c)if(c!==s&&(a+=n),a+=r[c],i=o[a],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=i}return o},U1=e=>e&&e.replace("_","-"),p0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class J1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||p0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(B(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new J1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new J1(this.logger,t)}}var Ae=new J1;class rn{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[a,c]=i;for(let u=0;u<c;u++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[a,c]=i;for(let u=0;u<c;u++)a.apply(a,[t,...r])})}}class Wo extends rn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):B(r)&&s?a.push(...r.split(s)):a.push(r)));const c=z1(this.data,a);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),c||!i||!B(r)?c:jn(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),Jo(this.data,a,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(B(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let c=z1(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?ai(c,r,s):c={...c,...r},Jo(this.data,a,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var ci={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const qo={};class W1 extends rn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),o0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ae.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!h0(t,r,o);if(i&&!a){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:B(s)?[s]:s};const u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(o)}return{key:t,namespaces:B(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${w}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let h=f&&f.res;const p=f&&f.usedKey||i,C=f&&f.exactUsedKey||i,g=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,A=!B(h)&&typeof h!="boolean"&&typeof h!="number";if(L&&h&&A&&b.indexOf(g)<0&&!(B(y)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(s){const w=Array.isArray(h),E=w?[]:{},k=w?C:p;for(const P in h)if(Object.prototype.hasOwnProperty.call(h,P)){const S=`${k}${s}${P}`;E[P]=this.translate(S,{...n,joinArrays:!1,ns:a}),E[P]===S&&(E[P]=h[P])}h=E}}else if(L&&B(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,t,n,r));else{let w=!1,E=!1;const k=n.count!==void 0&&!B(n.count),P=W1.hasDefaultValue(n),S=k?this.pluralResolver.getSuffix(u,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",V=k&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),J=V&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${S}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(h)&&P&&(w=!0,h=J),this.isValidLookup(h)||(E=!0,h=i);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,K=P&&J!==h&&this.options.updateMissing;if(E||w||K){if(this.logger.log(K?"updateKey":"missingKey",u,c,i,K?J:h),s){const x=this.resolve(i,{...n,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let x=0;x<Z.length;x++)$.push(Z[x]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const F=(x,D,U)=>{const se=P&&U!==h?U:z;this.options.missingKeyHandler?this.options.missingKeyHandler(x,c,D,se,K,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(x,c,D,se,K,n),this.emit("missingKey",x,c,D,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(x=>{const D=this.pluralResolver.getSuffixes(x,n);V&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(U=>{F([x],i+U,n[`defaultValue${U}`]||J)})}):F($,i,J))}h=this.extendTranslation(h,t,n,f,r),E&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${i}`),(E||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,w?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(f.res=h,f.usedParams=this.getUsedParamsDetails(n),f):h}extendTranslation(t,n,r,o,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=B(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=r.replace&&!B(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||o.usedLng,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),C=0;C<h;C++)p[C]=arguments[C];return s&&s[0]===p[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):i.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,c=B(a)?[a]:a;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=ci.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,i,a;return B(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!B(n.count),p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),C=n.context!==void 0&&(B(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(b=>{this.isValidLookup(r)||(a=b,!qo[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(qo[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;i=y;const L=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,d,y,b,n);else{let w;h&&(w=this.pluralResolver.getSuffix(y,n.count,n));const E=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(L.push(d+w),n.ordinal&&w.indexOf(k)===0&&L.push(d+w.replace(k,this.options.pluralSeparator)),p&&L.push(d+E)),C){const P=`${d}${this.options.contextSeparator}${n.context}`;L.push(P),h&&(L.push(P+w),n.ordinal&&w.indexOf(k)===0&&L.push(P+w.replace(k,this.options.pluralSeparator)),p&&L.push(P+E))}}let A;for(;A=L.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(y,b,A,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!B(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const mn=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ko{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ae.create("languageUtils")}getScriptPartFromCode(t){if(t=U1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=U1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(B(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=mn(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=mn(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=mn(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),B(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return B(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):B(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}let g0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],C0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const m0=["v1","v2","v3"],b0=["v4"],Go={zero:0,one:1,two:2,few:3,many:4,other:5},y0=()=>{const e={};return g0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:C0[t.fc]}})}),e};class v0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ae.create("pluralResolver"),(!this.options.compatibilityJSON||b0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=y0(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=U1(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(!t.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>Go[o]-Go[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!m0.includes(this.options.compatibilityJSON)}}const Xo=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=a0(e,t,n);return!s&&o&&B(n)&&(s=jn(e,n,r),s===void 0&&(s=jn(t,n,r))),s},bn=e=>e.replace(/\$/g,"$$$$");class w0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ae.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:a,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:C,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:L}=t.interpolation;this.escape=n!==void 0?n:l0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?vt(s):i||"{{",this.suffix=a?vt(a):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?vt(h):p||vt("$t("),this.nestingSuffix=C?vt(C):g||vt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,i,a;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const y=Xo(n,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...o,...n,interpolationkey:p}):y}const C=p.split(this.formatSeparator),g=C.shift().trim(),b=C.join(this.formatSeparator).trim();return this.format(Xo(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>bn(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?bn(this.escape(p)):bn(p)}].forEach(p=>{for(a=0;s=p.regex.exec(t);){const C=s[1].trim();if(i=u(C),i===void 0)if(typeof d=="function"){const b=d(t,s,o);i=B(b)?b:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),i="";else!B(i)&&!this.useRawValueToEscape&&(i=$o(i));const g=p.safeValue(i);if(t=t.replace(s[0],g),f?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,i;const a=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;c=f[0],h=this.interpolate(h,i);const p=h.match(/'/g),C=h.match(/"/g);(p&&p.length%2===0&&!C||C.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),u&&(i={...u,...i})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${d}${h}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&!B(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=d.shift(),c=d,u=!0}if(s=n(a.call(this,o[1].trim(),i),i),s&&o[0]===t&&!B(s))return s;B(s)||(s=$o(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),u&&(s=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const x0=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[a,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=a.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},wt=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let a=t[i];return a||(a=e(U1(r),o),t[i]=a),a(n)}};class L0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ae.create("formatter"),this.options=t,this.formats={number:wt((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:wt((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:wt((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:wt((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:wt((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=wt(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){const a=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,c)=>{const{formatName:u,formatOptions:d}=x0(c);if(this.formats[u]){let f=a;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},p=h.locale||h.lng||o.locale||o.lng||r;f=this.formats[u](a,p,{...d,...o,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const A0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class S0 extends rn{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ae.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},i={},a={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const h=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,d=!1,i[h]===void 0&&(i[h]=!0),s[h]===void 0&&(s[h]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(a[u]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],i=o[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(c=>{i0(c.loaded,[s],i),A0(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{a[u]||(a[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const a=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,i)},s);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}return}return c(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();B(t)&&(t=this.languageUtils.toResolveHierarchy(t)),B(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,a)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,a),this.loaded(t,i,a)})}saveMissing(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,o,c):d=u(t,n,r,o),d&&typeof d.then=="function"?d.then(f=>a(null,f)).catch(a):a(null,d)}catch(d){a(d)}else u(t,n,r,o,a,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Yo=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Qo=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),k1=()=>{},E0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class d1 extends rn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qo(t),this.services={},this.logger=Ae,this.modules={external:[]},E0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(B(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Yo();this.options={...o,...this.options,...Qo(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ae.init(s(this.modules.logger),this.options):Ae.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=L0);const f=new Ko(this.options);this.store=new Wo(this.options.resources,this.options);const h=this.services;h.logger=Ae,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new v0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=s(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new w0(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new S0(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var C=arguments.length,g=new Array(C>1?C-1:0),b=1;b<C;b++)g[b-1]=arguments[b];t.emit(p,...g)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new W1(this.services,this.options),this.translator.on("*",function(p){for(var C=arguments.length,g=new Array(C>1?C-1:0),b=1;b<C;b++)g[b-1]=arguments[b];t.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=k1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=r1(),u=()=>{const d=(f,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(h),r(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k1;const o=B(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&s.indexOf(u)<0&&s.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=r1();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=k1),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ci.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=r1();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},a=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=B(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const s=function(i,a){let c;if(typeof a!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];c=o.options.overloadTranslationOptionHandler([i,a].concat(d))}else c={...a};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const h=o.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(i)?p=i.map(C=>`${c.keyPrefix}${h}${C}`):p=c.keyPrefix?`${c.keyPrefix}${h}${i}`:i,o.t(p,c)};return B(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(a,c)=>{const u=this.services.backendConnector.state[`${a}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,i);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!o||i(s,t)))}loadNamespaces(t,n){const r=r1();return this.options.ns?(B(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=r1();B(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=o.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ko(Yo());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new d1(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k1;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new d1(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new Wo(this.store.data,o),s.services.resourceStore=s.store),s.translator=new W1(s.services,o),s.translator.on("*",function(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];s.emit(a,...u)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const oe=d1.createInstance();oe.createInstance=d1.createInstance;oe.createInstance;oe.dir;oe.init;oe.loadResources;oe.reloadResources;oe.use;oe.changeLanguage;oe.getFixedT;const Nd=oe.t;oe.exists;oe.setDefaultNamespace;oe.hasLoadedNamespace;oe.loadNamespaces;oe.loadLanguages;const R0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},k0=e=>P0[e],M0=e=>e.replace(R0,k0);let $n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:M0};function O0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$n={...$n,...e}}function Fd(){return $n}let li;function H0(e){li=e}function Td(){return li}const V0={type:"3rdParty",init(e){O0(e.options.react),H0(e)}},B0={cancel:"Cancel",delete:"Delete",continue:"Continue",empty:"Empty",create:"Create",save:"Save",export:"Export",reload:"Reload",reloadConnect:"Click here to reload Connect"},I0={placeholder:"Search Powerhouse",filterLabel:"File type"},N0={sections:{folders:{title:"Folders",empty:"No folders 🗂️"},documents:{title:"Documents and files",empty:"No documents or files 📄"}}},F0={options:{switchboardLink:"Switchboard Link"}},T0={deleteItem:{folder:{header:"Delete “{{item}}” folder?",body:"Are you sure you want to delete this folder? All files and subfolders within it will be removed."},file:{header:"Delete “{{item}}” file?",body:"Are you sure you want to delete this file?"}},deleteDrive:{title:'Delete "{{label}}" drive?',body:"Are you sure you want to delete this drive? All files and subfolders within it will be removed. Do you want to proceed?",inputPlaceholder:"Enter drive name..."},upgradeDrive:{header:"Upgrade to cloud drive",body:"You are moving files from a private to a shared drive. These files will become accessible to others in the shared drive.Do you want to proceed?"},createDocument:{header:"Create a new document",placeholder:"Document name"},connectSettings:{title:"Settings",body:"These settings will apply to all drives.",clearStorage:{button:"Clear Storage",description:"Delete previous session data",confirmation:{title:"Clear Storage",body:"Are you sure you want to clear the storage? This will remove all previous session data.",clearButton:"Clear Storage"}},enabledDocumentTypes:{title:"Document Models",description:"Documents enabled",allSelected:"All documents are selected"}},exportDocumentWithErrors:{title:"Your document contains errors",body:"Your document contains structure errors. Do you want to export it anyway?"},disclaimer:{title:"Disclaimer",body:"All content provided herein our website, hyperlinked sites, associated applications, forums, blogs, social media accounts and other platforms (“Site”) is for your general information only, procured from third party sources. We make no warranties of any kind in relation to our content, including but not limited to accuracy and updatedness. No part of the content that we provide constitutes financial advice, legal advice or any other form of advice meant for your specific reliance for any purpose. Any use or reliance on our content is solely at your own risk and discretion. You should conduct your own research, review, analyse and verify our content before relying on them. Trading is a highly risky activity that can lead to major losses, please therefore consult your financial advisor before making any decision. No content on our Site is meant to be a solicitation or offer."},cookiesPolicy:{title:"Cookies Policy",body:"<subtitle>Use of Cookies and Similar Technologies</subtitle><p>The Site is using cookies. Cookies are small text files that are placed on your computer by websites that you visit. They are widely used in order to make websites work, or work more efficiently, as well as to provide information to the owners of the site. Cookies are typically stored on your computer´s hard drive.Information collected from cookies is used by us to evaluate the effectiveness of our Site and analyze trends. The information collected from cookies allows us to determine such things as which parts of the Site are most visited and difficulties our visitors may experience in accessing the SIte. With this knowledge, we can improve the quality of your experience on the Site by recognizing and delivering more of the most desired features and information, as well as by resolving access difficulties.</p><p>We use third party service providers, to assist us in better understanding the use of our Site. Our service providers will place cookies on the hard drive of your computer (or use similar technologies) and will receive information that we select that will educate us on such things as how visitors navigate around our Site. This information is aggregated to provide statistical data about our users browsing actions and patterns, and does not personally identify individuals. This information may include:</p><p>Computer or mobile device information, Website usage information, such as:<list></p><bullet>Page views,</bullet><bullet>Button clicks,</bullet><bullet>Input form changes (without the values being entered),</bullet><bullet>Errors.</bullet></list><p>Our service providers analyses this information and provides us with aggregate reports. The information and analysis provided by our service providers will be used to assist us in better understanding our visitors interests in our Site and how to better serve those interests. If you want to avoid using cookies altogether, you can disable cookies in your browser. However, disabling cookies might make it impossible for you to use certain features of the Site. Your use of the Site with a browser that is configured to accept cookies constitutes an acceptance of our and third-party cookies.</p>"}},D0={deleteDriveSuccess:"Drive successfully deleted",deleteFolderSuccess:"Folder deleted",fileDeleteSuccess:"File deleted",addDriveSuccess:"New drive successfully added",driveSyncSuccess:"Drive synced successfully",driveSyncError:"Error synchronizing drive {{drive}}",driveSyncConflict:"Conflict error detected in {{drive}}",reloadApp:"It seems like you're running an outdated version of the app. Please reload Connect to get the latest version."},Z0={cookiePolicy:"Cookie Policy",termsOfUse:"Terms of Use",disclaimer:"Disclaimer",builtWith:"Built with <icon /> Powerhouse"},j0={message:"This website uses cookies for analytic purposes only. Cookies are anonymous and do not link to user data. We collect information to improve the user experience and validate UI changes. You can still use the page without cookies. For more information, please read our <a>cookies policy.</a>",accept:"Accept configured cookies",reject:"Reject all cookies",cookies:{functional:"Functional cookies",analytics:"Analytics cookies"}},$0={common:B0,searchbar:I0,folderView:N0,files:F0,modals:T0,notifications:D0,footer:Z0,cookieBanner:j0},z0={en:{code:"en",name:"English",translation:$0}};oe.use(V0).init({resources:z0,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1}}).catch(e=>{console.error(e)});function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function _o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ui(...e){return t=>{let n=!1;const r=e.map(o=>{const s=_o(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():_o(e[o],null)}}}}function _e(...e){return m.useCallback(ui(...e),e)}function Dd(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,c=m.useMemo(()=>a,Object.values(a));return l(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function di(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),c=n.length;n=[...n,i];const u=f=>{var y;const{scope:h,children:p,...C}=f,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||a,b=m.useMemo(()=>C,Object.values(C));return l(g.Provider,{value:b,children:p})};u.displayName=s+"Provider";function d(f,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||a,C=m.useContext(p);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,U0(o,...t)]}function U0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hr(e){const t=J0(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(W0);if(c){const u=c.props.children,d=a.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Zd=Hr("Slot");function J0(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=K0(o),a=q0(s,o.props);return o.type!==m.Fragment&&(a.ref=r?ui(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fi=Symbol("radix.slottable");function jd(e){const t=({children:n})=>l(oi,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fi,t}function W0(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fi}function q0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function K0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=G0.reduce((e,t)=>{const n=Hr(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function X0(e,t){e&&ii.flushSync(()=>e.dispatchEvent(t))}function jt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Y0(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Q0="DismissableLayer",zn="dismissableLayer.update",_0="dismissableLayer.pointerDownOutside",e3="dismissableLayer.focusOutside",es,hi=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pi=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=m.useContext(hi),[d,f]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),C=_e(t,P=>f(P)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),L=d?g.indexOf(d):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,w=L>=y,E=r3(P=>{const S=P.target,N=[...u.branches].some(V=>V.contains(S));!w||N||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},h),k=o3(P=>{const S=P.target;[...u.branches].some(V=>V.contains(S))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},h);return Y0(P=>{L===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(es=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ts(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=es)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ts())},[d,u]),m.useEffect(()=>{const P=()=>p({});return document.addEventListener(zn,P),()=>document.removeEventListener(zn,P)},[]),l(Te.div,{...c,ref:C,style:{pointerEvents:A?w?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,E.onPointerDownCapture)})});pi.displayName=Q0;var t3="DismissableLayerBranch",n3=m.forwardRef((e,t)=>{const n=m.useContext(hi),r=m.useRef(null),o=_e(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l(Te.div,{...e,ref:o})});n3.displayName=t3;function r3(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){gi(_0,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function o3(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e),r=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&gi(e3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ts(){const e=new CustomEvent(zn);document.dispatchEvent(e)}function gi(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?X0(o,s):o.dispatchEvent(s)}var yn=0;function s3(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ns()),document.body.insertAdjacentElement("beforeend",e[1]??ns()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function ns(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",rs={bubbles:!1,cancelable:!0},i3="FocusScope",Ci=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=m.useState(null),u=jt(o),d=jt(s),f=m.useRef(null),h=_e(t,g=>c(g)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let g=function(A){if(p.paused||!a)return;const w=A.target;a.contains(w)?f.current=w:je(f.current,{select:!0})},b=function(A){if(p.paused||!a)return;const w=A.relatedTarget;w!==null&&(a.contains(w)||je(f.current,{select:!0}))},y=function(A){if(document.activeElement===document.body)for(const E of A)E.removedNodes.length>0&&je(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const L=new MutationObserver(y);return a&&L.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),L.disconnect()}}},[r,a,p.paused]),m.useEffect(()=>{if(a){ss.add(p);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(vn,rs);a.addEventListener(vn,u),a.dispatchEvent(y),y.defaultPrevented||(a3(f3(mi(a)),{select:!0}),document.activeElement===g&&je(a))}return()=>{a.removeEventListener(vn,u),setTimeout(()=>{const y=new CustomEvent(wn,rs);a.addEventListener(wn,d),a.dispatchEvent(y),y.defaultPrevented||je(g??document.body,{select:!0}),a.removeEventListener(wn,d),ss.remove(p)},0)}}},[a,u,d,p]);const C=m.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const L=g.currentTarget,[A,w]=c3(L);A&&w?!g.shiftKey&&y===w?(g.preventDefault(),n&&je(A,{select:!0})):g.shiftKey&&y===A&&(g.preventDefault(),n&&je(w,{select:!0})):y===L&&g.preventDefault()}},[n,r,p.paused]);return l(Te.div,{tabIndex:-1,...i,ref:h,onKeyDown:C})});Ci.displayName=i3;function a3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function c3(e){const t=mi(e),n=os(t,e),r=os(t.reverse(),e);return[n,r]}function mi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function os(e,t){for(const n of e)if(!l3(n,{upTo:t}))return n}function l3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function u3(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&u3(e)&&t&&e.select()}}var ss=d3();function d3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=is(e,t),e.unshift(t)},remove(t){var n;e=is(e,t),(n=e[0])==null||n.resume()}}}function is(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function f3(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},h3=m[" useId ".trim().toString()]||(()=>{}),p3=0;function g3(e){const[t,n]=m.useState(h3());return Ge(()=>{n(r=>r??String(p3++))},[e]),e||(t?`radix-${t}`:"")}const C3=["top","right","bottom","left"],Xe=Math.min,ue=Math.max,q1=Math.round,M1=Math.floor,Se=e=>({x:e,y:e}),m3={left:"right",right:"left",bottom:"top",top:"bottom"},b3={start:"end",end:"start"};function Un(e,t,n){return ue(e,Xe(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Br(e){return e==="y"?"height":"width"}function Ve(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Ir(e){return Vr(Ve(e))}function y3(e,t,n){n===void 0&&(n=!1);const r=qt(e),o=Ir(e),s=Br(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=K1(i)),[i,K1(i)]}function v3(e){const t=K1(e);return[Jn(e),t,Jn(t)]}function Jn(e){return e.replace(/start|end/g,t=>b3[t])}function w3(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function x3(e,t,n,r){const o=qt(e);let s=w3(Ne(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Jn)))),s}function K1(e){return e.replace(/left|right|bottom|top/g,t=>m3[t])}function L3(e){return{top:0,right:0,bottom:0,left:0,...e}}function bi(e){return typeof e!="number"?L3(e):{top:e,right:e,bottom:e,left:e}}function G1(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function as(e,t,n){let{reference:r,floating:o}=e;const s=Ve(t),i=Ir(t),a=Br(i),c=Ne(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(qt(t)){case"start":p[i]-=h*(n&&u?-1:1);break;case"end":p[i]+=h*(n&&u?-1:1);break}return p}const A3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=as(u,r,c),h=r,p={},C=0;for(let g=0;g<a.length;g++){const{name:b,fn:y}=a[g],{x:L,y:A,data:w,reset:E}=await y({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});d=L??d,f=A??f,p={...p,[b]:{...p[b],...w}},E&&C<=50&&(C++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=as(u,h,c)),g=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}};async function f1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Ie(t,e),C=bi(p),b=a[h?f==="floating"?"reference":"floating":f],y=G1(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),L=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},E=G1(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:A,strategy:c}):L);return{top:(y.top-E.top+C.top)/w.y,bottom:(E.bottom-y.bottom+C.bottom)/w.y,left:(y.left-E.left+C.left)/w.x,right:(E.right-y.right+C.right)/w.x}}const S3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Ie(e,t)||{};if(u==null)return{};const f=bi(d),h={x:n,y:r},p=Ir(o),C=Br(p),g=await i.getDimensions(u),b=p==="y",y=b?"top":"left",L=b?"bottom":"right",A=b?"clientHeight":"clientWidth",w=s.reference[C]+s.reference[p]-h[p]-s.floating[C],E=h[p]-s.reference[p],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=k?k[A]:0;(!P||!await(i.isElement==null?void 0:i.isElement(k)))&&(P=a.floating[A]||s.floating[C]);const S=w/2-E/2,N=P/2-g[C]/2-1,V=Xe(f[y],N),J=Xe(f[L],N),W=V,z=P-g[C]-J,K=P/2-g[C]/2+S,$=Un(W,K,z),Z=!c.arrow&&qt(o)!=null&&K!==$&&s.reference[C]/2-(K<W?V:J)-g[C]/2<0,F=Z?K<W?K-W:K-z:0;return{[p]:h[p]+F,data:{[p]:$,centerOffset:K-$-F,...Z&&{alignmentOffset:F}},reset:Z}}}),E3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:g=!0,...b}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),L=Ve(a),A=Ne(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(A||!g?[K1(a)]:v3(a)),k=C!=="none";!h&&k&&E.push(...x3(a,g,C,w));const P=[a,...E],S=await f1(t,b),N=[];let V=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[y]),f){const $=y3(o,i,w);N.push(S[$[0]],S[$[1]])}if(V=[...V,{placement:o,overflows:N}],!N.every($=>$<=0)){var J,W;const $=(((J=s.flip)==null?void 0:J.index)||0)+1,Z=P[$];if(Z){var z;const x=f==="alignment"?L!==Ve(Z):!1,D=((z=V[0])==null?void 0:z.overflows[0])>0;if(!x||D)return{data:{index:$,overflows:V},reset:{placement:Z}}}let F=(W=V.filter(x=>x.overflows[0]<=0).sort((x,D)=>x.overflows[1]-D.overflows[1])[0])==null?void 0:W.placement;if(!F)switch(p){case"bestFit":{var K;const x=(K=V.filter(D=>{if(k){const U=Ve(D.placement);return U===L||U==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(U=>U>0).reduce((U,se)=>U+se,0)]).sort((D,U)=>D[1]-U[1])[0])==null?void 0:K[0];x&&(F=x);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ls(e){return C3.some(t=>e[t]>=0)}const R3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await f1(t,{...o,elementContext:"reference"}),i=cs(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ls(i)}}}case"escaped":{const s=await f1(t,{...o,altBoundary:!0}),i=cs(s,n.floating);return{data:{escapedOffsets:i,escaped:ls(i)}}}default:return{}}}}};async function P3(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),a=qt(n),c=Ve(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&c?-1:1,f=Ie(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof C=="number"&&(p=a==="end"?C*-1:C),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const k3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await P3(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},M3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:L}=b;return{x:y,y:L}}},...c}=Ie(e,t),u={x:n,y:r},d=await f1(t,c),f=Ve(Ne(o)),h=Vr(f);let p=u[h],C=u[f];if(s){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",L=p+d[b],A=p-d[y];p=Un(L,p,A)}if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",L=C+d[b],A=C-d[y];C=Un(L,C,A)}const g=a.fn({...t,[h]:p,[f]:C});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:i}}}}}},O3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ie(e,t),d={x:n,y:r},f=Ve(o),h=Vr(f);let p=d[h],C=d[f];const g=Ie(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const A=h==="y"?"height":"width",w=s.reference[h]-s.floating[A]+b.mainAxis,E=s.reference[h]+s.reference[A]-b.mainAxis;p<w?p=w:p>E&&(p=E)}if(u){var y,L;const A=h==="y"?"width":"height",w=["top","left"].includes(Ne(o)),E=s.reference[f]-s.floating[A]+(w&&((y=i.offset)==null?void 0:y[f])||0)+(w?0:b.crossAxis),k=s.reference[f]+s.reference[A]+(w?0:((L=i.offset)==null?void 0:L[f])||0)-(w?b.crossAxis:0);C<E?C=E:C>k&&(C=k)}return{[h]:p,[f]:C}}}},H3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Ie(e,t),d=await f1(t,u),f=Ne(o),h=qt(o),p=Ve(o)==="y",{width:C,height:g}=s.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,b=h==="end"?"top":"bottom");const L=g-d.top-d.bottom,A=C-d.left-d.right,w=Xe(g-d[b],L),E=Xe(C-d[y],A),k=!t.middlewareData.shift;let P=w,S=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=L),k&&!h){const V=ue(d.left,0),J=ue(d.right,0),W=ue(d.top,0),z=ue(d.bottom,0);p?S=C-2*(V!==0||J!==0?V+J:ue(d.left,d.right)):P=g-2*(W!==0||z!==0?W+z:ue(d.top,d.bottom))}await c({...t,availableWidth:S,availableHeight:P});const N=await i.getDimensions(a.floating);return C!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function on(){return typeof window<"u"}function Kt(e){return yi(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(yi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yi(e){return on()?e instanceof Node||e instanceof de(e).Node:!1}function ve(e){return on()?e instanceof Element||e instanceof de(e).Element:!1}function Ee(e){return on()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function us(e){return!on()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function L1(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function V3(e){return["table","td","th"].includes(Kt(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Nr(e){const t=Fr(),n=ve(e)?we(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function B3(e){let t=Ye(e);for(;Ee(t)&&!$t(t);){if(Nr(t))return t;if(sn(t))return null;t=Ye(t)}return null}function Fr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(e){return["html","body","#document"].includes(Kt(e))}function we(e){return de(e).getComputedStyle(e)}function an(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ye(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||us(e)&&e.host||Re(e);return us(t)?t.host:t}function vi(e){const t=Ye(e);return $t(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&L1(t)?t:vi(t)}function h1(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vi(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=de(o);if(s){const a=Wn(i);return t.concat(i,i.visualViewport||[],L1(o)?o:[],a&&n?h1(a):[])}return t.concat(o,h1(o,[],n))}function Wn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wi(e){const t=we(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=q1(n)!==s||q1(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Tr(e){return ve(e)?e:e.contextElement}function Pt(e){const t=Tr(e);if(!Ee(t))return Se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=wi(t);let i=(s?q1(n.width):n.width)/r,a=(s?q1(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const I3=Se(0);function xi(e){const t=de(e);return!Fr()||!t.visualViewport?I3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function N3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==de(e)?!1:t}function gt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tr(e);let i=Se(1);t&&(r?ve(r)&&(i=Pt(r)):i=Pt(e));const a=N3(s,n,r)?xi(s):Se(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const h=de(s),p=r&&ve(r)?de(r):r;let C=h,g=Wn(C);for(;g&&r&&p!==C;){const b=Pt(g),y=g.getBoundingClientRect(),L=we(g),A=y.left+(g.clientLeft+parseFloat(L.paddingLeft))*b.x,w=y.top+(g.clientTop+parseFloat(L.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=A,u+=w,C=de(g),g=Wn(C)}}return G1({width:d,height:f,x:c,y:u})}function Dr(e,t){const n=an(e).scrollLeft;return t?t.left+n:gt(Re(e)).left+n}function Li(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Dr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function F3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Re(r),a=t?sn(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Se(1);const d=Se(0),f=Ee(r);if((f||!f&&!s)&&((Kt(r)!=="body"||L1(i))&&(c=an(r)),Ee(r))){const p=gt(r);u=Pt(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=i&&!f&&!s?Li(i,c,!0):Se(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function T3(e){return Array.from(e.getClientRects())}function D3(e){const t=Re(e),n=an(e),r=e.ownerDocument.body,o=ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Dr(e);const a=-n.scrollTop;return we(r).direction==="rtl"&&(i+=ue(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Z3(e,t){const n=de(e),r=Re(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const u=Fr();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}function j3(e,t){const n=gt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ee(e)?Pt(e):Se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function ds(e,t,n){let r;if(t==="viewport")r=Z3(e,n);else if(t==="document")r=D3(Re(e));else if(ve(t))r=j3(t,n);else{const o=xi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return G1(r)}function Ai(e,t){const n=Ye(e);return n===t||!ve(n)||$t(n)?!1:we(n).position==="fixed"||Ai(n,t)}function $3(e,t){const n=t.get(e);if(n)return n;let r=h1(e,[],!1).filter(a=>ve(a)&&Kt(a)!=="body"),o=null;const s=we(e).position==="fixed";let i=s?Ye(e):e;for(;ve(i)&&!$t(i);){const a=we(i),c=Nr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||L1(i)&&!c&&Ai(e,i))?r=r.filter(d=>d!==i):o=a,i=Ye(i)}return t.set(e,r),r}function z3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?sn(t)?[]:$3(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=ds(t,d,o);return u.top=ue(f.top,u.top),u.right=Xe(f.right,u.right),u.bottom=Xe(f.bottom,u.bottom),u.left=ue(f.left,u.left),u},ds(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function U3(e){const{width:t,height:n}=wi(e);return{width:t,height:n}}function J3(e,t,n){const r=Ee(t),o=Re(t),s=n==="fixed",i=gt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Se(0);function u(){c.x=Dr(o)}if(r||!r&&!s)if((Kt(t)!=="body"||L1(o))&&(a=an(t)),r){const p=gt(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Li(o,a):Se(0),f=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function xn(e){return we(e).position==="static"}function fs(e,t){if(!Ee(e)||we(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Re(e)===n&&(n=n.ownerDocument.body),n}function Si(e,t){const n=de(e);if(sn(e))return n;if(!Ee(e)){let o=Ye(e);for(;o&&!$t(o);){if(ve(o)&&!xn(o))return o;o=Ye(o)}return n}let r=fs(e,t);for(;r&&V3(r)&&xn(r);)r=fs(r,t);return r&&$t(r)&&xn(r)&&!Nr(r)?n:r||B3(e)||n}const W3=async function(e){const t=this.getOffsetParent||Si,n=this.getDimensions,r=await n(e.floating);return{reference:J3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function q3(e){return we(e).direction==="rtl"}const K3={convertOffsetParentRelativeRectToViewportRelativeRect:F3,getDocumentElement:Re,getClippingRect:z3,getOffsetParent:Si,getElementRects:W3,getClientRects:T3,getDimensions:U3,getScale:Pt,isElement:ve,isRTL:q3};function Ei(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G3(e,t){let n=null,r;const o=Re(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=u;if(a||t(),!h||!p)return;const C=M1(f),g=M1(o.clientWidth-(d+h)),b=M1(o.clientHeight-(f+p)),y=M1(d),A={rootMargin:-C+"px "+-g+"px "+-b+"px "+-y+"px",threshold:ue(0,Xe(1,c))||1};let w=!0;function E(k){const P=k[0].intersectionRatio;if(P!==c){if(!w)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Ei(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(E,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,A)}n.observe(e)}return i(!0),s}function X3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Tr(e),d=o||s?[...u?h1(u):[],...h1(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&a?G3(u,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(y=>{let[L]=y;L&&L.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let C,g=c?gt(e):null;c&&b();function b(){const y=gt(e);g&&!Ei(g,y)&&n(),g=y,C=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(L=>{o&&L.removeEventListener("scroll",n),s&&L.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(C)}}const Y3=k3,Q3=M3,_3=E3,e9=H3,t9=R3,hs=S3,n9=O3,r9=(e,t,n)=>{const r=new Map,o={platform:K3,...n},s={...o.platform,_c:r};return A3(e,t,{...o,platform:s})};var D1=typeof document<"u"?Xa:nn;function X1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!X1(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!X1(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ps(e,t){const n=Ri(e);return Math.round(t*n)/n}function Ln(e){const t=m.useRef(e);return D1(()=>{t.current=e}),t}function o9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=m.useState(r);X1(h,r)||p(r);const[C,g]=m.useState(null),[b,y]=m.useState(null),L=m.useCallback(x=>{x!==k.current&&(k.current=x,g(x))},[]),A=m.useCallback(x=>{x!==P.current&&(P.current=x,y(x))},[]),w=s||C,E=i||b,k=m.useRef(null),P=m.useRef(null),S=m.useRef(d),N=c!=null,V=Ln(c),J=Ln(o),W=Ln(u),z=m.useCallback(()=>{if(!k.current||!P.current)return;const x={placement:t,strategy:n,middleware:h};J.current&&(x.platform=J.current),r9(k.current,P.current,x).then(D=>{const U={...D,isPositioned:W.current!==!1};K.current&&!X1(S.current,U)&&(S.current=U,ii.flushSync(()=>{f(U)}))})},[h,t,n,J,W]);D1(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(x=>({...x,isPositioned:!1})))},[u]);const K=m.useRef(!1);D1(()=>(K.current=!0,()=>{K.current=!1}),[]),D1(()=>{if(w&&(k.current=w),E&&(P.current=E),w&&E){if(V.current)return V.current(w,E,z);z()}},[w,E,z,V,N]);const $=m.useMemo(()=>({reference:k,floating:P,setReference:L,setFloating:A}),[L,A]),Z=m.useMemo(()=>({reference:w,floating:E}),[w,E]),F=m.useMemo(()=>{const x={position:n,left:0,top:0};if(!Z.floating)return x;const D=ps(Z.floating,d.x),U=ps(Z.floating,d.y);return a?{...x,transform:"translate("+D+"px, "+U+"px)",...Ri(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:U}},[n,a,Z.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:z,refs:$,elements:Z,floatingStyles:F}),[d,z,$,Z,F])}const s9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hs({element:r.current,padding:o}).fn(n):{}:r?hs({element:r,padding:o}).fn(n):{}}}},i9=(e,t)=>({...Y3(e),options:[e,t]}),a9=(e,t)=>({...Q3(e),options:[e,t]}),c9=(e,t)=>({...n9(e),options:[e,t]}),l9=(e,t)=>({..._3(e),options:[e,t]}),u9=(e,t)=>({...e9(e),options:[e,t]}),d9=(e,t)=>({...t9(e),options:[e,t]}),f9=(e,t)=>({...s9(e),options:[e,t]});var h9="Arrow",Pi=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l(Te.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l("polygon",{points:"0,0 30,0 15,10"})})});Pi.displayName=h9;var p9=Pi;function g9(e){const[t,n]=m.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zr="Popper",[ki,Mi]=di(Zr),[C9,Oi]=ki(Zr),Hi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l(C9,{scope:t,anchor:r,onAnchorChange:o,children:n})};Hi.displayName=Zr;var Vi="PopperAnchor",Bi=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Oi(Vi,n),i=m.useRef(null),a=_e(t,i);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l(Te.div,{...o,ref:a})});Bi.displayName=Vi;var jr="PopperContent",[m9,b9]=ki(jr),Ii=m.forwardRef((e,t)=>{var Q,t1,tt,nt,yt,rt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:C,...g}=e,b=Oi(jr,n),[y,L]=m.useState(null),A=_e(t,n1=>L(n1)),[w,E]=m.useState(null),k=g9(w),P=(k==null?void 0:k.width)??0,S=(k==null?void 0:k.height)??0,N=r+(s!=="center"?"-"+s:""),V=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},J=Array.isArray(u)?u:[u],W=J.length>0,z={padding:V,boundary:J.filter(v9),altBoundary:W},{refs:K,floatingStyles:$,placement:Z,isPositioned:F,middlewareData:x}=o9({strategy:"fixed",placement:N,whileElementsMounted:(...n1)=>X3(...n1,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[i9({mainAxis:o+S,alignmentAxis:i}),c&&a9({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?c9():void 0,...z}),c&&l9({...z}),u9({...z,apply:({elements:n1,rects:Do,availableWidth:Ua,availableHeight:Ja})=>{const{width:Wa,height:qa}=Do.reference,P1=n1.floating.style;P1.setProperty("--radix-popper-available-width",`${Ua}px`),P1.setProperty("--radix-popper-available-height",`${Ja}px`),P1.setProperty("--radix-popper-anchor-width",`${Wa}px`),P1.setProperty("--radix-popper-anchor-height",`${qa}px`)}}),w&&f9({element:w,padding:a}),w9({arrowWidth:P,arrowHeight:S}),h&&d9({strategy:"referenceHidden",...z})]}),[D,U]=Ti(Z),se=jt(C);Ge(()=>{F&&(se==null||se())},[F,se]);const Pe=(Q=x.arrow)==null?void 0:Q.x,_=(t1=x.arrow)==null?void 0:t1.y,te=((tt=x.arrow)==null?void 0:tt.centerOffset)!==0,[ie,R1]=m.useState();return Ge(()=>{y&&R1(window.getComputedStyle(y).zIndex)},[y]),l("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:F?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(nt=x.transformOrigin)==null?void 0:nt.x,(yt=x.transformOrigin)==null?void 0:yt.y].join(" "),...((rt=x.hide)==null?void 0:rt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l(m9,{scope:n,placedSide:D,onArrowChange:E,arrowX:Pe,arrowY:_,shouldHideArrow:te,children:l(Te.div,{"data-side":D,"data-align":U,...g,ref:A,style:{...g.style,animation:F?void 0:"none"}})})})});Ii.displayName=jr;var Ni="PopperArrow",y9={top:"bottom",right:"left",bottom:"top",left:"right"},Fi=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=b9(Ni,r),i=y9[s.placedSide];return l("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l(p9,{...o,ref:n,style:{...o.style,display:"block"}})})});Fi.displayName=Ni;function v9(e){return e!==null}var w9=e=>({name:"transformOrigin",options:e,fn(t){var b,y,L;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=Ti(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,p=(((L=o.arrow)==null?void 0:L.y)??0)+c/2;let C="",g="";return u==="bottom"?(C=i?f:`${h}px`,g=`${-c}px`):u==="top"?(C=i?f:`${h}px`,g=`${r.floating.height+c}px`):u==="right"?(C=`${-c}px`,g=i?f:`${p}px`):u==="left"&&(C=`${r.floating.width+c}px`,g=i?f:`${p}px`),{data:{x:C,y:g}}}});function Ti(e){const[t,n="center"]=e.split("-");return[t,n]}var x9=Hi,Di=Bi,L9=Ii,A9=Fi,S9="Portal",Zi=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);Ge(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?r0.createPortal(l(Te.div,{...r,ref:t}),i):null});Zi.displayName=S9;function E9(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var $r=e=>{const{present:t,children:n}=e,r=R9(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=_e(r.ref,P9(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};$r.displayName="Presence";function R9(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,c]=E9(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=O1(r.current);s.current=a==="mounted"?u:"none"},[a]),Ge(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,p=O1(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ge(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const g=O1(r.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(s.current=O1(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function O1(e){return(e==null?void 0:e.animationName)||"none"}function P9(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var k9=m[" useInsertionEffect ".trim().toString()]||Ge;function M9({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=O9({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var f;if(a){const h=H9(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else s(d)},[a,e,s,i]);return[c,u]}function O9({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return k9(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function H9(e){return typeof e=="function"}var V9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xt=new WeakMap,H1=new WeakMap,V1={},An=0,ji=function(e){return e&&(e.host||ji(e.parentNode))},B9=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ji(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I9=function(e,t,n,r){var o=B9(t,Array.isArray(e)?e:[e]);V1[n]||(V1[n]=new WeakMap);var s=V1[n],i=[],a=new Set,c=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var p=h.getAttribute(r),C=p!==null&&p!=="false",g=(xt.get(h)||0)+1,b=(s.get(h)||0)+1;xt.set(h,g),s.set(h,b),i.push(h),g===1&&C&&H1.set(h,!0),b===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),a.clear(),An++,function(){i.forEach(function(f){var h=xt.get(f)-1,p=s.get(f)-1;xt.set(f,h),s.set(f,p),h||(H1.has(f)||f.removeAttribute(r),H1.delete(f)),p||f.removeAttribute(n)}),An--,An||(xt=new WeakMap,xt=new WeakMap,H1=new WeakMap,V1={})}},N9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=V9(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),I9(r,o,n,"aria-hidden")):function(){return null}},Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Le.apply(this,arguments)};function $i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function F9(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Z1="right-scroll-bar-position",j1="width-before-scroll-bar",T9="with-scroll-bars-hidden",D9="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z9(e,t){var n=x1(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var j9=typeof window<"u"?m.useLayoutEffect:m.useEffect,gs=new WeakMap;function $9(e,t){var n=Z9(null,function(r){return e.forEach(function(o){return Sn(o,r)})});return j9(function(){var r=gs.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Sn(a,null)}),s.forEach(function(a){o.has(a)||Sn(a,i)})}gs.set(n,e)},[e]),n}function z9(e){return e}function U9(e,t){t===void 0&&(t=z9);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function J9(e){e===void 0&&(e={});var t=U9(null);return t.options=Le({async:!0,ssr:!1},e),t}var zi=function(e){var t=e.sideCar,n=$i(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Le({},n))};zi.isSideCarExport=!0;function W9(e,t){return e.useMedium(t),zi}var Ui=J9(),En=function(){},cn=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,C=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,L=y===void 0?"div":y,A=e.gapMode,w=$i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,k=$9([n,t]),P=Le(Le({},w),o);return m.createElement(m.Fragment,null,d&&m.createElement(E,{sideCar:Ui,removeScrollBar:u,shards:f,noRelative:p,noIsolation:C,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:A}),i?m.cloneElement(m.Children.only(a),Le(Le({},P),{ref:k})):m.createElement(L,Le({},P,{className:c,ref:k}),a))});cn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cn.classNames={fullWidth:j1,zeroRight:Z1};var q9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=q9();return t&&e.setAttribute("nonce",t),e}function G9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function X9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Y9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=K9())&&(G9(t,n),X9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q9=function(){var e=Y9();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ji=function(){var e=Q9(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_9={left:0,top:0,right:0,gap:0},Rn=function(e){return parseInt(e||"",10)||0},e6=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rn(n),Rn(r),Rn(o)]},t6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _9;var t=e6(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},n6=Ji(),kt="data-scroll-locked",r6=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ccip-t4nNoZXr.js","assets/isAddressEqual-CsqPRHiQ.js","assets/main.Dor3jd7n.js","assets/app-B69ZGOCX.js","assets/app-CnZs-BlK.css","assets/cookie-banner-CvRgenFS.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Zo=e=>{throw TypeError(e)};var Cn=(e,t,n)=>t.has(e)||Zo("Cannot "+n);var v=(e,t,n)=>(Cn(e,t,"read from private field"),n?n.call(e):t.get(e)),q=(e,t,n)=>t.has(e)?Zo("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),I=(e,t,n,r)=>(Cn(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),X=(e,t,n)=>(Cn(e,t,"access private method"),n);import{createRoot as Ka}from"react-dom/client";import{_ as Mr}from"./main.Dor3jd7n.js";import{jsx as l,Fragment as oi,jsxs as H}from"react/jsx-runtime";import*as m from"react";import Ga,{useLayoutEffect as Xa,useEffect as nn,useState as x1,forwardRef as Ya,Suspense as Zn,useRef as Or,useCallback as Qa,createElement as jo,createContext as _a,useContext as e0,useSyncExternalStore as t0,lazy as si,StrictMode as n0}from"react";import*as ii from"react-dom";import r0 from"react-dom";const B=e=>typeof e=="string",r1=()=>{let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n},$o=e=>e==null?"":""+e,o0=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},s0=/###/g,zo=e=>e&&e.indexOf("###")>-1?e.replace(s0,"."):e,Uo=e=>!e||B(e),u1=(e,t,n)=>{const r=B(t)?t.split("."):t;let o=0;for(;o<r.length-1;){if(Uo(e))return{};const s=zo(r[o]);!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={},++o}return Uo(e)?{}:{obj:e,k:zo(r[o])}},Jo=(e,t,n)=>{const{obj:r,k:o}=u1(e,t,Object);if(r!==void 0||t.length===1){r[o]=n;return}let s=t[t.length-1],i=t.slice(0,t.length-1),a=u1(e,i,Object);for(;a.obj===void 0&&i.length;)s=`${i[i.length-1]}.${s}`,i=i.slice(0,i.length-1),a=u1(e,i,Object),a&&a.obj&&typeof a.obj[`${a.k}.${s}`]<"u"&&(a.obj=void 0);a.obj[`${a.k}.${s}`]=n},i0=(e,t,n,r)=>{const{obj:o,k:s}=u1(e,t,Object);o[s]=o[s]||[],o[s].push(n)},z1=(e,t)=>{const{obj:n,k:r}=u1(e,t);if(n)return n[r]},a0=(e,t,n)=>{const r=z1(e,n);return r!==void 0?r:z1(t,n)},ai=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?B(e[r])||e[r]instanceof String||B(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):ai(e[r],t[r],n):e[r]=t[r]);return e},vt=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var c0={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const l0=e=>B(e)?e.replace(/[&<>"'\/]/g,t=>c0[t]):e;class u0{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const d0=[" ",",","?","!",";"],f0=new u0(20),h0=(e,t,n)=>{t=t||"",n=n||"";const r=d0.filter(i=>t.indexOf(i)<0&&n.indexOf(i)<0);if(r.length===0)return!0;const o=f0.getRegExp(`(${r.map(i=>i==="?"?"\\?":i).join("|")})`);let s=!o.test(e);if(!s){const i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(s=!0)}return s},jn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let s=0;s<r.length;){if(!o||typeof o!="object")return;let i,a="";for(let c=s;c<r.length;++c)if(c!==s&&(a+=n),a+=r[c],i=o[a],i!==void 0){if(["string","number","boolean"].indexOf(typeof i)>-1&&c<r.length-1)continue;s+=c-s+1;break}o=i}return o},U1=e=>e&&e.replace("_","-"),p0={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class J1{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||p0,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(B(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new J1(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new J1(this.logger,t)}}var Ae=new J1;class rn{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const o=this.observers[r].get(n)||0;this.observers[r].set(n,o+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(i=>{let[a,c]=i;for(let u=0;u<c;u++)a(...r)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(i=>{let[a,c]=i;for(let u=0;u<c;u++)a.apply(a,[t,...r])})}}class Wo extends rn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,i=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;t.indexOf(".")>-1?a=t.split("."):(a=[t,n],r&&(Array.isArray(r)?a.push(...r):B(r)&&s?a.push(...r.split(s)):a.push(r)));const c=z1(this.data,a);return!c&&!n&&!r&&t.indexOf(".")>-1&&(t=a[0],n=a[1],r=a.slice(2).join(".")),c||!i||!B(r)?c:jn(this.data&&this.data[t]&&this.data[t][n],r,s)}addResource(t,n,r,o){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const i=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let a=[t,n];r&&(a=a.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(a=t.split("."),o=n,n=a[1]),this.addNamespaces(n),Jo(this.data,a,o),s.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const s in r)(B(r[s])||Array.isArray(r[s]))&&this.addResource(t,n,s,r[s],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},a=[t,n];t.indexOf(".")>-1&&(a=t.split("."),o=r,r=n,n=a[1]),this.addNamespaces(n);let c=z1(this.data,a)||{};i.skipCopy||(r=JSON.parse(JSON.stringify(r))),o?ai(c,r,s):c={...c,...r},Jo(this.data,a,c),i.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(o=>n[o]&&Object.keys(n[o]).length>0)}toJSON(){return this.data}}var ci={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(s=>{this.processors[s]&&(t=this.processors[s].process(t,n,r,o))}),t}};const qo={};class W1 extends rn{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),o0(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Ae.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let s=n.ns||this.options.defaultNS||[];const i=r&&t.indexOf(r)>-1,a=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!h0(t,r,o);if(i&&!a){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:B(s)?[s]:s};const u=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(u[0])>-1)&&(s=u.shift()),t=u.join(o)}return{key:t,namespaces:B(s)?[s]:s}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,s=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:i,namespaces:a}=this.extractFromKey(t[t.length-1],n),c=a[a.length-1],u=n.lng||this.language,d=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(u&&u.toLowerCase()==="cimode"){if(d){const w=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${w}${i}`,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${w}${i}`}return o?{res:i,usedKey:i,exactUsedKey:i,usedLng:u,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:i}const f=this.resolve(t,n);let h=f&&f.res;const p=f&&f.usedKey||i,C=f&&f.exactUsedKey||i,g=Object.prototype.toString.apply(h),b=["[object Number]","[object Function]","[object RegExp]"],y=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,L=!this.i18nFormat||this.i18nFormat.handleAsObject,A=!B(h)&&typeof h!="boolean"&&typeof h!="number";if(L&&h&&A&&b.indexOf(g)<0&&!(B(y)&&Array.isArray(h))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,h,{...n,ns:a}):`key '${i} (${this.language})' returned an object instead of string.`;return o?(f.res=w,f.usedParams=this.getUsedParamsDetails(n),f):w}if(s){const w=Array.isArray(h),E=w?[]:{},k=w?C:p;for(const P in h)if(Object.prototype.hasOwnProperty.call(h,P)){const S=`${k}${s}${P}`;E[P]=this.translate(S,{...n,joinArrays:!1,ns:a}),E[P]===S&&(E[P]=h[P])}h=E}}else if(L&&B(y)&&Array.isArray(h))h=h.join(y),h&&(h=this.extendTranslation(h,t,n,r));else{let w=!1,E=!1;const k=n.count!==void 0&&!B(n.count),P=W1.hasDefaultValue(n),S=k?this.pluralResolver.getSuffix(u,n.count,n):"",N=n.ordinal&&k?this.pluralResolver.getSuffix(u,n.count,{ordinal:!1}):"",V=k&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),J=V&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${S}`]||n[`defaultValue${N}`]||n.defaultValue;!this.isValidLookup(h)&&P&&(w=!0,h=J),this.isValidLookup(h)||(E=!0,h=i);const z=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:h,K=P&&J!==h&&this.options.updateMissing;if(E||w||K){if(this.logger.log(K?"updateKey":"missingKey",u,c,i,K?J:h),s){const x=this.resolve(i,{...n,keySeparator:!1});x&&x.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let $=[];const Z=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Z&&Z[0])for(let x=0;x<Z.length;x++)$.push(Z[x]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(n.lng||this.language):$.push(n.lng||this.language);const F=(x,D,U)=>{const se=P&&U!==h?U:z;this.options.missingKeyHandler?this.options.missingKeyHandler(x,c,D,se,K,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(x,c,D,se,K,n),this.emit("missingKey",x,c,D,h)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?$.forEach(x=>{const D=this.pluralResolver.getSuffixes(x,n);V&&n[`defaultValue${this.options.pluralSeparator}zero`]&&D.indexOf(`${this.options.pluralSeparator}zero`)<0&&D.push(`${this.options.pluralSeparator}zero`),D.forEach(U=>{F([x],i+U,n[`defaultValue${U}`]||J)})}):F($,i,J))}h=this.extendTranslation(h,t,n,f,r),E&&h===i&&this.options.appendNamespaceToMissingKey&&(h=`${c}:${i}`),(E||w)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?h=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${i}`:i,w?h:void 0):h=this.options.parseMissingKeyHandler(h))}return o?(f.res=h,f.usedParams=this.getUsedParamsDetails(n),f):h}extendTranslation(t,n,r,o,s){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const u=B(t)&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let d;if(u){const h=t.match(this.interpolator.nestingRegexp);d=h&&h.length}let f=r.replace&&!B(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(f={...this.options.interpolation.defaultVariables,...f}),t=this.interpolator.interpolate(t,f,r.lng||this.language||o.usedLng,r),u){const h=t.match(this.interpolator.nestingRegexp),p=h&&h.length;d<p&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=this.language||o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var h=arguments.length,p=new Array(h),C=0;C<h;C++)p[C]=arguments[C];return s&&s[0]===p[0]&&!r.context?(i.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):i.translate(...p,n)},r)),r.interpolation&&this.interpolator.reset()}const a=r.postProcess||this.options.postProcess,c=B(a)?[a]:a;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=ci.handle(c,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...o,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,s,i,a;return B(t)&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const u=this.extractFromKey(c,n),d=u.key;o=d;let f=u.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!B(n.count),p=h&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),C=n.context!==void 0&&(B(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(b=>{this.isValidLookup(r)||(a=b,!qo[`${g[0]}-${b}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(qo[`${g[0]}-${b}`]=!0,this.logger.warn(`key "${o}" for languages "${g.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(y=>{if(this.isValidLookup(r))return;i=y;const L=[d];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(L,d,y,b,n);else{let w;h&&(w=this.pluralResolver.getSuffix(y,n.count,n));const E=`${this.options.pluralSeparator}zero`,k=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(L.push(d+w),n.ordinal&&w.indexOf(k)===0&&L.push(d+w.replace(k,this.options.pluralSeparator)),p&&L.push(d+E)),C){const P=`${d}${this.options.contextSeparator}${n.context}`;L.push(P),h&&(L.push(P+w),n.ordinal&&w.indexOf(k)===0&&L.push(P+w.replace(k,this.options.pluralSeparator)),p&&L.push(P+E))}}let A;for(;A=L.pop();)this.isValidLookup(r)||(s=A,r=this.getResource(y,b,A,n))}))})}),{res:r,usedKey:o,exactUsedKey:s,usedLng:i,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!B(t.replace);let o=r?t.replace:t;if(r&&typeof t.count<"u"&&(o.count=t.count),this.options.interpolation.defaultVariables&&(o={...this.options.interpolation.defaultVariables,...o}),!r){o={...o};for(const s of n)delete o[s]}return o}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}const mn=e=>e.charAt(0).toUpperCase()+e.slice(1);class Ko{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Ae.create("languageUtils")}getScriptPartFromCode(t){if(t=U1(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=U1(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(B(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let o=Intl.getCanonicalLocales(t)[0];if(o&&this.options.lowerCaseLng&&(o=o.toLowerCase()),o)return o}catch{}const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=mn(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=mn(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=mn(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(s=>{if(s===o)return s;if(!(s.indexOf("-")<0&&o.indexOf("-")<0)&&(s.indexOf("-")>0&&o.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===o||s.indexOf(o)===0&&o.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),B(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],s=i=>{i&&(this.isSupportedCode(i)?o.push(i):this.logger.warn(`rejecting language code not found in supportedLngs: ${i}`))};return B(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(t))):B(t)&&s(this.formatLanguageCode(t)),r.forEach(i=>{o.indexOf(i)<0&&s(this.formatLanguageCode(i))}),o}}let g0=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],C0={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3};const m0=["v1","v2","v3"],b0=["v4"],Go={zero:0,one:1,two:2,few:3,many:4,other:5},y0=()=>{const e={};return g0.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:C0[t.fc]}})}),e};class v0{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Ae.create("pluralResolver"),(!this.options.compatibilityJSON||b0.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=y0(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){const r=U1(t==="dev"?"en":t),o=n.ordinal?"ordinal":"cardinal",s=JSON.stringify({cleanedCode:r,type:o});if(s in this.pluralRulesCache)return this.pluralRulesCache[s];let i;try{i=new Intl.PluralRules(r,{type:o})}catch{if(!t.match(/-|_/))return;const c=this.languageUtils.getLanguagePartFromCode(t);i=this.getRule(c,n)}return this.pluralRulesCache[s]=i,i}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,s)=>Go[o]-Go[s]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const s=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?s():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!m0.includes(this.options.compatibilityJSON)}}const Xo=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,s=a0(e,t,n);return!s&&o&&B(n)&&(s=jn(e,n,r),s===void 0&&(s=jn(t,n,r))),s},bn=e=>e.replace(/\$/g,"$$$$");class w0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ae.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:o,prefix:s,prefixEscaped:i,suffix:a,suffixEscaped:c,formatSeparator:u,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:C,nestingSuffixEscaped:g,nestingOptionsSeparator:b,maxReplaces:y,alwaysFormat:L}=t.interpolation;this.escape=n!==void 0?n:l0,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=o!==void 0?o:!1,this.prefix=s?vt(s):i||"{{",this.suffix=a?vt(a):c||"}}",this.formatSeparator=u||",",this.unescapePrefix=d?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":d||"",this.nestingPrefix=h?vt(h):p||vt("$t("),this.nestingSuffix=C?vt(C):g||vt(")"),this.nestingOptionsSeparator=b||",",this.maxReplaces=y||1e3,this.alwaysFormat=L!==void 0?L:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>n&&n.source===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,r,o){let s,i,a;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},u=p=>{if(p.indexOf(this.formatSeparator)<0){const y=Xo(n,c,p,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(y,void 0,r,{...o,...n,interpolationkey:p}):y}const C=p.split(this.formatSeparator),g=C.shift().trim(),b=C.join(this.formatSeparator).trim();return this.format(Xo(n,c,g,this.options.keySeparator,this.options.ignoreJSONStructure),b,r,{...o,...n,interpolationkey:g})};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,f=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:p=>bn(p)},{regex:this.regexp,safeValue:p=>this.escapeValue?bn(this.escape(p)):bn(p)}].forEach(p=>{for(a=0;s=p.regex.exec(t);){const C=s[1].trim();if(i=u(C),i===void 0)if(typeof d=="function"){const b=d(t,s,o);i=B(b)?b:""}else if(o&&Object.prototype.hasOwnProperty.call(o,C))i="";else if(f){i=s[0];continue}else this.logger.warn(`missed to pass in variable ${C} for interpolating ${t}`),i="";else!B(i)&&!this.useRawValueToEscape&&(i=$o(i));const g=p.safeValue(i);if(t=t.replace(s[0],g),f?(p.regex.lastIndex+=i.length,p.regex.lastIndex-=s[0].length):p.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,i;const a=(c,u)=>{const d=this.nestingOptionsSeparator;if(c.indexOf(d)<0)return c;const f=c.split(new RegExp(`${d}[ ]*{`));let h=`{${f[1]}`;c=f[0],h=this.interpolate(h,i);const p=h.match(/'/g),C=h.match(/"/g);(p&&p.length%2===0&&!C||C.length%2!==0)&&(h=h.replace(/'/g,'"'));try{i=JSON.parse(h),u&&(i={...u,...i})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,g),`${c}${d}${h}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,c};for(;o=this.nestingRegexp.exec(t);){let c=[];i={...r},i=i.replace&&!B(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let u=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const d=o[1].split(this.formatSeparator).map(f=>f.trim());o[1]=d.shift(),c=d,u=!0}if(s=n(a.call(this,o[1].trim(),i),i),s&&o[0]===t&&!B(s))return s;B(s)||(s=$o(s)),s||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),s=""),u&&(s=c.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:o[1].trim()}),s.trim())),t=t.replace(o[0],s),this.regexp.lastIndex=0}return t}}const x0=e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(i){const[a,...c]=i.split(":"),u=c.join(":").trim().replace(/^'+|'+$/g,""),d=a.trim();n[d]||(n[d]=u),u==="false"&&(n[d]=!1),u==="true"&&(n[d]=!0),isNaN(u)||(n[d]=parseInt(u,10))}})}return{formatName:t,formatOptions:n}},wt=e=>{const t={};return(n,r,o)=>{let s=o;o&&o.interpolationkey&&o.formatParams&&o.formatParams[o.interpolationkey]&&o[o.interpolationkey]&&(s={...s,[o.interpolationkey]:void 0});const i=r+JSON.stringify(s);let a=t[i];return a||(a=e(U1(r),o),t[i]=a),a(n)}};class L0{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Ae.create("formatter"),this.options=t,this.formats={number:wt((n,r)=>{const o=new Intl.NumberFormat(n,{...r});return s=>o.format(s)}),currency:wt((n,r)=>{const o=new Intl.NumberFormat(n,{...r,style:"currency"});return s=>o.format(s)}),datetime:wt((n,r)=>{const o=new Intl.DateTimeFormat(n,{...r});return s=>o.format(s)}),relativetime:wt((n,r)=>{const o=new Intl.RelativeTimeFormat(n,{...r});return s=>o.format(s,r.range||"day")}),list:wt((n,r)=>{const o=new Intl.ListFormat(n,{...r});return s=>o.format(s)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=wt(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const s=n.split(this.formatSeparator);if(s.length>1&&s[0].indexOf("(")>1&&s[0].indexOf(")")<0&&s.find(a=>a.indexOf(")")>-1)){const a=s.findIndex(c=>c.indexOf(")")>-1);s[0]=[s[0],...s.splice(1,a)].join(this.formatSeparator)}return s.reduce((a,c)=>{const{formatName:u,formatOptions:d}=x0(c);if(this.formats[u]){let f=a;try{const h=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},p=h.locale||h.lng||o.locale||o.lng||r;f=this.formats[u](a,p,{...d,...o,...h})}catch(h){this.logger.warn(h)}return f}else this.logger.warn(`there was no format function for ${u}`);return a},t)}}const A0=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class S0 extends rn{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Ae.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const s={},i={},a={},c={};return t.forEach(u=>{let d=!0;n.forEach(f=>{const h=`${u}|${f}`;!r.reload&&this.store.hasResourceBundle(u,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?i[h]===void 0&&(i[h]=!0):(this.state[h]=1,d=!1,i[h]===void 0&&(i[h]=!0),s[h]===void 0&&(s[h]=!0),c[f]===void 0&&(c[f]=!0)))}),d||(a[u]=!0)}),(Object.keys(s).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(s),pending:Object.keys(i),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),s=o[0],i=o[1];n&&this.emit("failedLoading",s,i,n),!n&&r&&this.store.addResourceBundle(s,i,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const a={};this.queue.forEach(c=>{i0(c.loaded,[s],i),A0(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(u=>{a[u]||(a[u]={});const d=c.loaded[u];d.length&&d.forEach(f=>{a[u][f]===void 0&&(a[u][f]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;if(!t.length)return i(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:s,callback:i});return}this.readingCalls++;const a=(u,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(u&&d&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,s*2,i)},s);return}i(u,d)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const u=c(t,n);u&&typeof u.then=="function"?u.then(d=>a(null,d)).catch(a):a(null,u)}catch(u){a(u)}return}return c(t,n,a)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();B(t)&&(t=this.languageUtils.toResolveHierarchy(t)),B(n)&&(n=[n]);const s=this.queueLoad(t,n,r,o);if(!s.toLoad.length)return s.pending.length||o(),null;s.toLoad.forEach(i=>{this.loadOne(i)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],s=r[1];this.read(o,s,"read",void 0,void 0,(i,a)=>{i&&this.logger.warn(`${n}loading namespace ${s} for language ${o} failed`,i),!i&&a&&this.logger.log(`${n}loaded namespace ${s} for language ${o}`,a),this.loaded(t,i,a)})}saveMissing(t,n,r,o,s){let i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c={...i,isUpdate:s},u=this.backend.create.bind(this.backend);if(u.length<6)try{let d;u.length===5?d=u(t,n,r,o,c):d=u(t,n,r,o),d&&typeof d.then=="function"?d.then(f=>a(null,f)).catch(a):a(null,d)}catch(d){a(d)}else u(t,n,r,o,a,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}const Yo=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),B(e[1])&&(t.defaultValue=e[1]),B(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),Qo=e=>(B(e.ns)&&(e.ns=[e.ns]),B(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),B(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),k1=()=>{},E0=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class d1 extends rn{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Qo(t),this.services={},this.logger=Ae,this.modules={external:[]},E0(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(B(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=Yo();this.options={...o,...this.options,...Qo(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...o.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);const s=d=>d?typeof d=="function"?new d:d:null;if(!this.options.isClone){this.modules.logger?Ae.init(s(this.modules.logger),this.options):Ae.init(null,this.options);let d;this.modules.formatter?d=this.modules.formatter:typeof Intl<"u"&&(d=L0);const f=new Ko(this.options);this.store=new Wo(this.options.resources,this.options);const h=this.services;h.logger=Ae,h.resourceStore=this.store,h.languageUtils=f,h.pluralResolver=new v0(f,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),d&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(h.formatter=s(d),h.formatter.init(h,this.options),this.options.interpolation.format=h.formatter.format.bind(h.formatter)),h.interpolator=new w0(this.options),h.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},h.backendConnector=new S0(s(this.modules.backend),h.resourceStore,h,this.options),h.backendConnector.on("*",function(p){for(var C=arguments.length,g=new Array(C>1?C-1:0),b=1;b<C;b++)g[b-1]=arguments[b];t.emit(p,...g)}),this.modules.languageDetector&&(h.languageDetector=s(this.modules.languageDetector),h.languageDetector.init&&h.languageDetector.init(h,this.options.detection,this.options)),this.modules.i18nFormat&&(h.i18nFormat=s(this.modules.i18nFormat),h.i18nFormat.init&&h.i18nFormat.init(this)),this.translator=new W1(this.services,this.options),this.translator.on("*",function(p){for(var C=arguments.length,g=new Array(C>1?C-1:0),b=1;b<C;b++)g[b-1]=arguments[b];t.emit(p,...g)}),this.modules.external.forEach(p=>{p.init&&p.init(this)})}if(this.format=this.options.interpolation.format,r||(r=k1),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const d=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);d.length>0&&d[0]!=="dev"&&(this.options.lng=d[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(d=>{this[d]=function(){return t.store[d](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(d=>{this[d]=function(){return t.store[d](...arguments),t}});const c=r1(),u=()=>{const d=(f,h)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),c.resolve(h),r(f,h)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return d(null,this.t.bind(this));this.changeLanguage(this.options.lng,d)};return this.options.resources||!this.options.initImmediate?u():setTimeout(u,0),c}loadResources(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k1;const o=B(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&o.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const s=[],i=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(u=>{u!=="cimode"&&s.indexOf(u)<0&&s.push(u)})};o?i(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(c=>i(c)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(s,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(a)})}else r(null)}reloadResources(t,n,r){const o=r1();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=k1),this.services.backendConnector.reload(t,n,s=>{o.resolve(),r(s)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&ci.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=r1();this.emit("languageChanging",t);const s=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},i=(c,u)=>{u?(s(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},a=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const u=B(c)?c:this.services.languageUtils.getBestMatchFromCodes(c);u&&(this.language||s(u),this.translator.language||this.translator.changeLanguage(u),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(u)),this.loadResources(u,d=>{i(d,u)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),o}getFixedT(t,n,r){var o=this;const s=function(i,a){let c;if(typeof a!="object"){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];c=o.options.overloadTranslationOptionHandler([i,a].concat(d))}else c={...a};c.lng=c.lng||s.lng,c.lngs=c.lngs||s.lngs,c.ns=c.ns||s.ns,c.keyPrefix!==""&&(c.keyPrefix=c.keyPrefix||r||s.keyPrefix);const h=o.options.keySeparator||".";let p;return c.keyPrefix&&Array.isArray(i)?p=i.map(C=>`${c.keyPrefix}${h}${C}`):p=c.keyPrefix?`${c.keyPrefix}${h}${i}`:i,o.t(p,c)};return B(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,s=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const i=(a,c)=>{const u=this.services.backendConnector.state[`${a}|${c}`];return u===-1||u===0||u===2};if(n.precheck){const a=n.precheck(this,i);if(a!==void 0)return a}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||i(r,t)&&(!o||i(s,t)))}loadNamespaces(t,n){const r=r1();return this.options.ns?(B(t)&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=r1();B(t)&&(t=[t]);const o=this.options.preload||[],s=t.filter(i=>o.indexOf(i)<0&&this.services.languageUtils.isSupportedCode(i));return s.length?(this.options.preload=o.concat(s),this.loadResources(i=>{r.resolve(),n&&n(i)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new Ko(Yo());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new d1(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k1;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o={...this.options,...t,isClone:!0},s=new d1(o);return(t.debug!==void 0||t.prefix!==void 0)&&(s.logger=s.logger.clone(t)),["store","services","language"].forEach(a=>{s[a]=this[a]}),s.services={...this.services},s.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},r&&(s.store=new Wo(this.store.data,o),s.services.resourceStore=s.store),s.translator=new W1(s.services,o),s.translator.on("*",function(a){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];s.emit(a,...u)}),s.init(o,n),s.translator.options=o,s.translator.backendConnector.services.utils={hasLoadedNamespace:s.hasLoadedNamespace.bind(s)},s}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const oe=d1.createInstance();oe.createInstance=d1.createInstance;oe.createInstance;oe.dir;oe.init;oe.loadResources;oe.reloadResources;oe.use;oe.changeLanguage;oe.getFixedT;const Nd=oe.t;oe.exists;oe.setDefaultNamespace;oe.hasLoadedNamespace;oe.loadNamespaces;oe.loadLanguages;const R0=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P0={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},k0=e=>P0[e],M0=e=>e.replace(R0,k0);let $n={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:M0};function O0(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$n={...$n,...e}}function Fd(){return $n}let li;function H0(e){li=e}function Td(){return li}const V0={type:"3rdParty",init(e){O0(e.options.react),H0(e)}},B0={cancel:"Cancel",delete:"Delete",continue:"Continue",empty:"Empty",create:"Create",save:"Save",export:"Export",reload:"Reload",reloadConnect:"Click here to reload Connect"},I0={placeholder:"Search Powerhouse",filterLabel:"File type"},N0={sections:{folders:{title:"Folders",empty:"No folders 🗂️"},documents:{title:"Documents and files",empty:"No documents or files 📄"}}},F0={options:{switchboardLink:"Switchboard Link"}},T0={deleteItem:{folder:{header:"Delete “{{item}}” folder?",body:"Are you sure you want to delete this folder? All files and subfolders within it will be removed."},file:{header:"Delete “{{item}}” file?",body:"Are you sure you want to delete this file?"}},deleteDrive:{title:'Delete "{{label}}" drive?',body:"Are you sure you want to delete this drive? All files and subfolders within it will be removed. Do you want to proceed?",inputPlaceholder:"Enter drive name..."},upgradeDrive:{header:"Upgrade to cloud drive",body:"You are moving files from a private to a shared drive. These files will become accessible to others in the shared drive.Do you want to proceed?"},createDocument:{header:"Create a new document",placeholder:"Document name"},connectSettings:{title:"Settings",body:"These settings will apply to all drives.",clearStorage:{button:"Clear Storage",description:"Delete previous session data",confirmation:{title:"Clear Storage",body:"Are you sure you want to clear the storage? This will remove all previous session data.",clearButton:"Clear Storage"}},enabledDocumentTypes:{title:"Document Models",description:"Documents enabled",allSelected:"All documents are selected"}},exportDocumentWithErrors:{title:"Your document contains errors",body:"Your document contains structure errors. Do you want to export it anyway?"},disclaimer:{title:"Disclaimer",body:"All content provided herein our website, hyperlinked sites, associated applications, forums, blogs, social media accounts and other platforms (“Site”) is for your general information only, procured from third party sources. We make no warranties of any kind in relation to our content, including but not limited to accuracy and updatedness. No part of the content that we provide constitutes financial advice, legal advice or any other form of advice meant for your specific reliance for any purpose. Any use or reliance on our content is solely at your own risk and discretion. You should conduct your own research, review, analyse and verify our content before relying on them. Trading is a highly risky activity that can lead to major losses, please therefore consult your financial advisor before making any decision. No content on our Site is meant to be a solicitation or offer."},cookiesPolicy:{title:"Cookies Policy",body:"<subtitle>Use of Cookies and Similar Technologies</subtitle><p>The Site is using cookies. Cookies are small text files that are placed on your computer by websites that you visit. They are widely used in order to make websites work, or work more efficiently, as well as to provide information to the owners of the site. Cookies are typically stored on your computer´s hard drive.Information collected from cookies is used by us to evaluate the effectiveness of our Site and analyze trends. The information collected from cookies allows us to determine such things as which parts of the Site are most visited and difficulties our visitors may experience in accessing the SIte. With this knowledge, we can improve the quality of your experience on the Site by recognizing and delivering more of the most desired features and information, as well as by resolving access difficulties.</p><p>We use third party service providers, to assist us in better understanding the use of our Site. Our service providers will place cookies on the hard drive of your computer (or use similar technologies) and will receive information that we select that will educate us on such things as how visitors navigate around our Site. This information is aggregated to provide statistical data about our users browsing actions and patterns, and does not personally identify individuals. This information may include:</p><p>Computer or mobile device information, Website usage information, such as:<list></p><bullet>Page views,</bullet><bullet>Button clicks,</bullet><bullet>Input form changes (without the values being entered),</bullet><bullet>Errors.</bullet></list><p>Our service providers analyses this information and provides us with aggregate reports. The information and analysis provided by our service providers will be used to assist us in better understanding our visitors interests in our Site and how to better serve those interests. If you want to avoid using cookies altogether, you can disable cookies in your browser. However, disabling cookies might make it impossible for you to use certain features of the Site. Your use of the Site with a browser that is configured to accept cookies constitutes an acceptance of our and third-party cookies.</p>"}},D0={deleteDriveSuccess:"Drive successfully deleted",deleteFolderSuccess:"Folder deleted",fileDeleteSuccess:"File deleted",addDriveSuccess:"New drive successfully added",driveSyncSuccess:"Drive synced successfully",driveSyncError:"Error synchronizing drive {{drive}}",driveSyncConflict:"Conflict error detected in {{drive}}",reloadApp:"It seems like you're running an outdated version of the app. Please reload Connect to get the latest version."},Z0={cookiePolicy:"Cookie Policy",termsOfUse:"Terms of Use",disclaimer:"Disclaimer",builtWith:"Built with <icon /> Powerhouse"},j0={message:"This website uses cookies for analytic purposes only. Cookies are anonymous and do not link to user data. We collect information to improve the user experience and validate UI changes. You can still use the page without cookies. For more information, please read our <a>cookies policy.</a>",accept:"Accept configured cookies",reject:"Reject all cookies",cookies:{functional:"Functional cookies",analytics:"Analytics cookies"}},$0={common:B0,searchbar:I0,folderView:N0,files:F0,modals:T0,notifications:D0,footer:Z0,cookieBanner:j0},z0={en:{code:"en",name:"English",translation:$0}};oe.use(V0).init({resources:z0,fallbackLng:"en",debug:!1,interpolation:{escapeValue:!1}}).catch(e=>{console.error(e)});function qe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function _o(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ui(...e){return t=>{let n=!1;const r=e.map(o=>{const s=_o(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():_o(e[o],null)}}}}function _e(...e){return m.useCallback(ui(...e),e)}function Dd(e,t){const n=m.createContext(t),r=s=>{const{children:i,...a}=s,c=m.useMemo(()=>a,Object.values(a));return l(n.Provider,{value:c,children:i})};r.displayName=e+"Provider";function o(s){const i=m.useContext(n);if(i)return i;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,o]}function di(e,t=[]){let n=[];function r(s,i){const a=m.createContext(i),c=n.length;n=[...n,i];const u=f=>{var y;const{scope:h,children:p,...C}=f,g=((y=h==null?void 0:h[e])==null?void 0:y[c])||a,b=m.useMemo(()=>C,Object.values(C));return l(g.Provider,{value:b,children:p})};u.displayName=s+"Provider";function d(f,h){var g;const p=((g=h==null?void 0:h[e])==null?void 0:g[c])||a,C=m.useContext(p);if(C)return C;if(i!==void 0)return i;throw new Error(`\`${f}\` must be used within \`${s}\``)}return[u,d]}const o=()=>{const s=n.map(i=>m.createContext(i));return function(a){const c=(a==null?void 0:a[e])||s;return m.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,U0(o,...t)]}function U0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:u})=>{const f=c(s)[`__scope${u}`];return{...a,...f}},{});return m.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}function Hr(e){const t=J0(e),n=m.forwardRef((r,o)=>{const{children:s,...i}=r,a=m.Children.toArray(s),c=a.find(W0);if(c){const u=c.props.children,d=a.map(f=>f===c?m.Children.count(u)>1?m.Children.only(null):m.isValidElement(u)?u.props.children:null:f);return l(t,{...i,ref:o,children:m.isValidElement(u)?m.cloneElement(u,void 0,d):null})}return l(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var Zd=Hr("Slot");function J0(e){const t=m.forwardRef((n,r)=>{const{children:o,...s}=n;if(m.isValidElement(o)){const i=K0(o),a=q0(s,o.props);return o.type!==m.Fragment&&(a.ref=r?ui(r,i):i),m.cloneElement(o,a)}return m.Children.count(o)>1?m.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var fi=Symbol("radix.slottable");function jd(e){const t=({children:n})=>l(oi,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=fi,t}function W0(e){return m.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===fi}function q0(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function K0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var G0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Te=G0.reduce((e,t)=>{const n=Hr(`Primitive.${t}`),r=m.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function X0(e,t){e&&ii.flushSync(()=>e.dispatchEvent(t))}function jt(e){const t=m.useRef(e);return m.useEffect(()=>{t.current=e}),m.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Y0(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e);m.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Q0="DismissableLayer",zn="dismissableLayer.update",_0="dismissableLayer.pointerDownOutside",e3="dismissableLayer.focusOutside",es,hi=m.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pi=m.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,u=m.useContext(hi),[d,f]=m.useState(null),h=(d==null?void 0:d.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=m.useState({}),C=_e(t,P=>f(P)),g=Array.from(u.layers),[b]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),L=d?g.indexOf(d):-1,A=u.layersWithOutsidePointerEventsDisabled.size>0,w=L>=y,E=r3(P=>{const S=P.target,N=[...u.branches].some(V=>V.contains(S));!w||N||(o==null||o(P),i==null||i(P),P.defaultPrevented||a==null||a())},h),k=o3(P=>{const S=P.target;[...u.branches].some(V=>V.contains(S))||(s==null||s(P),i==null||i(P),P.defaultPrevented||a==null||a())},h);return Y0(P=>{L===u.layers.size-1&&(r==null||r(P),!P.defaultPrevented&&a&&(P.preventDefault(),a()))},h),m.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(es=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ts(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=es)}},[d,h,n,u]),m.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ts())},[d,u]),m.useEffect(()=>{const P=()=>p({});return document.addEventListener(zn,P),()=>document.removeEventListener(zn,P)},[]),l(Te.div,{...c,ref:C,style:{pointerEvents:A?w?"auto":"none":void 0,...e.style},onFocusCapture:qe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:qe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:qe(e.onPointerDownCapture,E.onPointerDownCapture)})});pi.displayName=Q0;var t3="DismissableLayerBranch",n3=m.forwardRef((e,t)=>{const n=m.useContext(hi),r=m.useRef(null),o=_e(t,r);return m.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),l(Te.div,{...e,ref:o})});n3.displayName=t3;function r3(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e),r=m.useRef(!1),o=m.useRef(()=>{});return m.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){gi(_0,n,u,{discrete:!0})};const u={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function o3(e,t=globalThis==null?void 0:globalThis.document){const n=jt(e),r=m.useRef(!1);return m.useEffect(()=>{const o=s=>{s.target&&!r.current&&gi(e3,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function ts(){const e=new CustomEvent(zn);document.dispatchEvent(e)}function gi(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?X0(o,s):o.dispatchEvent(s)}var yn=0;function s3(){m.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ns()),document.body.insertAdjacentElement("beforeend",e[1]??ns()),yn++,()=>{yn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),yn--}},[])}function ns(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vn="focusScope.autoFocusOnMount",wn="focusScope.autoFocusOnUnmount",rs={bubbles:!1,cancelable:!0},i3="FocusScope",Ci=m.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=m.useState(null),u=jt(o),d=jt(s),f=m.useRef(null),h=_e(t,g=>c(g)),p=m.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;m.useEffect(()=>{if(r){let g=function(A){if(p.paused||!a)return;const w=A.target;a.contains(w)?f.current=w:je(f.current,{select:!0})},b=function(A){if(p.paused||!a)return;const w=A.relatedTarget;w!==null&&(a.contains(w)||je(f.current,{select:!0}))},y=function(A){if(document.activeElement===document.body)for(const E of A)E.removedNodes.length>0&&je(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",b);const L=new MutationObserver(y);return a&&L.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",b),L.disconnect()}}},[r,a,p.paused]),m.useEffect(()=>{if(a){ss.add(p);const g=document.activeElement;if(!a.contains(g)){const y=new CustomEvent(vn,rs);a.addEventListener(vn,u),a.dispatchEvent(y),y.defaultPrevented||(a3(f3(mi(a)),{select:!0}),document.activeElement===g&&je(a))}return()=>{a.removeEventListener(vn,u),setTimeout(()=>{const y=new CustomEvent(wn,rs);a.addEventListener(wn,d),a.dispatchEvent(y),y.defaultPrevented||je(g??document.body,{select:!0}),a.removeEventListener(wn,d),ss.remove(p)},0)}}},[a,u,d,p]);const C=m.useCallback(g=>{if(!n&&!r||p.paused)return;const b=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,y=document.activeElement;if(b&&y){const L=g.currentTarget,[A,w]=c3(L);A&&w?!g.shiftKey&&y===w?(g.preventDefault(),n&&je(A,{select:!0})):g.shiftKey&&y===A&&(g.preventDefault(),n&&je(w,{select:!0})):y===L&&g.preventDefault()}},[n,r,p.paused]);return l(Te.div,{tabIndex:-1,...i,ref:h,onKeyDown:C})});Ci.displayName=i3;function a3(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(je(r,{select:t}),document.activeElement!==n)return}function c3(e){const t=mi(e),n=os(t,e),r=os(t.reverse(),e);return[n,r]}function mi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function os(e,t){for(const n of e)if(!l3(n,{upTo:t}))return n}function l3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function u3(e){return e instanceof HTMLInputElement&&"select"in e}function je(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&u3(e)&&t&&e.select()}}var ss=d3();function d3(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=is(e,t),e.unshift(t)},remove(t){var n;e=is(e,t),(n=e[0])==null||n.resume()}}}function is(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function f3(e){return e.filter(t=>t.tagName!=="A")}var Ge=globalThis!=null&&globalThis.document?m.useLayoutEffect:()=>{},h3=m[" useId ".trim().toString()]||(()=>{}),p3=0;function g3(e){const[t,n]=m.useState(h3());return Ge(()=>{n(r=>r??String(p3++))},[e]),e||(t?`radix-${t}`:"")}const C3=["top","right","bottom","left"],Xe=Math.min,ue=Math.max,q1=Math.round,M1=Math.floor,Se=e=>({x:e,y:e}),m3={left:"right",right:"left",bottom:"top",top:"bottom"},b3={start:"end",end:"start"};function Un(e,t,n){return ue(e,Xe(t,n))}function Ie(e,t){return typeof e=="function"?e(t):e}function Ne(e){return e.split("-")[0]}function qt(e){return e.split("-")[1]}function Vr(e){return e==="x"?"y":"x"}function Br(e){return e==="y"?"height":"width"}function Ve(e){return["top","bottom"].includes(Ne(e))?"y":"x"}function Ir(e){return Vr(Ve(e))}function y3(e,t,n){n===void 0&&(n=!1);const r=qt(e),o=Ir(e),s=Br(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=K1(i)),[i,K1(i)]}function v3(e){const t=K1(e);return[Jn(e),t,Jn(t)]}function Jn(e){return e.replace(/start|end/g,t=>b3[t])}function w3(e,t,n){const r=["left","right"],o=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?s:i;default:return[]}}function x3(e,t,n,r){const o=qt(e);let s=w3(Ne(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(Jn)))),s}function K1(e){return e.replace(/left|right|bottom|top/g,t=>m3[t])}function L3(e){return{top:0,right:0,bottom:0,left:0,...e}}function bi(e){return typeof e!="number"?L3(e):{top:e,right:e,bottom:e,left:e}}function G1(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function as(e,t,n){let{reference:r,floating:o}=e;const s=Ve(t),i=Ir(t),a=Br(i),c=Ne(t),u=s==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let p;switch(c){case"top":p={x:d,y:r.y-o.height};break;case"bottom":p={x:d,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(qt(t)){case"start":p[i]-=h*(n&&u?-1:1);break;case"end":p[i]+=h*(n&&u?-1:1);break}return p}const A3=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=as(u,r,c),h=r,p={},C=0;for(let g=0;g<a.length;g++){const{name:b,fn:y}=a[g],{x:L,y:A,data:w,reset:E}=await y({x:d,y:f,initialPlacement:r,placement:h,strategy:o,middlewareData:p,rects:u,platform:i,elements:{reference:e,floating:t}});d=L??d,f=A??f,p={...p,[b]:{...p[b],...w}},E&&C<=50&&(C++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(u=E.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:d,y:f}=as(u,h,c)),g=-1)}return{x:d,y:f,placement:h,strategy:o,middlewareData:p}};async function f1(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:p=0}=Ie(t,e),C=bi(p),b=a[h?f==="floating"?"reference":"floating":f],y=G1(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),L=f==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(A))?await(s.getScale==null?void 0:s.getScale(A))||{x:1,y:1}:{x:1,y:1},E=G1(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:L,offsetParent:A,strategy:c}):L);return{top:(y.top-E.top+C.top)/w.y,bottom:(E.bottom-y.bottom+C.bottom)/w.y,left:(y.left-E.left+C.left)/w.x,right:(E.right-y.right+C.right)/w.x}}const S3=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:u,padding:d=0}=Ie(e,t)||{};if(u==null)return{};const f=bi(d),h={x:n,y:r},p=Ir(o),C=Br(p),g=await i.getDimensions(u),b=p==="y",y=b?"top":"left",L=b?"bottom":"right",A=b?"clientHeight":"clientWidth",w=s.reference[C]+s.reference[p]-h[p]-s.floating[C],E=h[p]-s.reference[p],k=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let P=k?k[A]:0;(!P||!await(i.isElement==null?void 0:i.isElement(k)))&&(P=a.floating[A]||s.floating[C]);const S=w/2-E/2,N=P/2-g[C]/2-1,V=Xe(f[y],N),J=Xe(f[L],N),W=V,z=P-g[C]-J,K=P/2-g[C]/2+S,$=Un(W,K,z),Z=!c.arrow&&qt(o)!=null&&K!==$&&s.reference[C]/2-(K<W?V:J)-g[C]/2<0,F=Z?K<W?K-W:K-z:0;return{[p]:h[p]+F,data:{[p]:$,centerOffset:K-$-F,...Z&&{alignmentOffset:F}},reset:Z}}}),E3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:g=!0,...b}=Ie(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=Ne(o),L=Ve(a),A=Ne(a)===a,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(A||!g?[K1(a)]:v3(a)),k=C!=="none";!h&&k&&E.push(...x3(a,g,C,w));const P=[a,...E],S=await f1(t,b),N=[];let V=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(S[y]),f){const $=y3(o,i,w);N.push(S[$[0]],S[$[1]])}if(V=[...V,{placement:o,overflows:N}],!N.every($=>$<=0)){var J,W;const $=(((J=s.flip)==null?void 0:J.index)||0)+1,Z=P[$];if(Z){var z;const x=f==="alignment"?L!==Ve(Z):!1,D=((z=V[0])==null?void 0:z.overflows[0])>0;if(!x||D)return{data:{index:$,overflows:V},reset:{placement:Z}}}let F=(W=V.filter(x=>x.overflows[0]<=0).sort((x,D)=>x.overflows[1]-D.overflows[1])[0])==null?void 0:W.placement;if(!F)switch(p){case"bestFit":{var K;const x=(K=V.filter(D=>{if(k){const U=Ve(D.placement);return U===L||U==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(U=>U>0).reduce((U,se)=>U+se,0)]).sort((D,U)=>D[1]-U[1])[0])==null?void 0:K[0];x&&(F=x);break}case"initialPlacement":F=a;break}if(o!==F)return{reset:{placement:F}}}return{}}}};function cs(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ls(e){return C3.some(t=>e[t]>=0)}const R3=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ie(e,t);switch(r){case"referenceHidden":{const s=await f1(t,{...o,elementContext:"reference"}),i=cs(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:ls(i)}}}case"escaped":{const s=await f1(t,{...o,altBoundary:!0}),i=cs(s,n.floating);return{data:{escapedOffsets:i,escaped:ls(i)}}}default:return{}}}}};async function P3(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Ne(n),a=qt(n),c=Ve(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&c?-1:1,f=Ie(t,e);let{mainAxis:h,crossAxis:p,alignmentAxis:C}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof C=="number"&&(p=a==="end"?C*-1:C),c?{x:p*d,y:h*u}:{x:h*u,y:p*d}}const k3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await P3(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},M3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:b=>{let{x:y,y:L}=b;return{x:y,y:L}}},...c}=Ie(e,t),u={x:n,y:r},d=await f1(t,c),f=Ve(Ne(o)),h=Vr(f);let p=u[h],C=u[f];if(s){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",L=p+d[b],A=p-d[y];p=Un(L,p,A)}if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",L=C+d[b],A=C-d[y];C=Un(L,C,A)}const g=a.fn({...t,[h]:p,[f]:C});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:i}}}}}},O3=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=Ie(e,t),d={x:n,y:r},f=Ve(o),h=Vr(f);let p=d[h],C=d[f];const g=Ie(a,t),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const A=h==="y"?"height":"width",w=s.reference[h]-s.floating[A]+b.mainAxis,E=s.reference[h]+s.reference[A]-b.mainAxis;p<w?p=w:p>E&&(p=E)}if(u){var y,L;const A=h==="y"?"width":"height",w=["top","left"].includes(Ne(o)),E=s.reference[f]-s.floating[A]+(w&&((y=i.offset)==null?void 0:y[f])||0)+(w?0:b.crossAxis),k=s.reference[f]+s.reference[A]+(w?0:((L=i.offset)==null?void 0:L[f])||0)-(w?b.crossAxis:0);C<E?C=E:C>k&&(C=k)}return{[h]:p,[f]:C}}}},H3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...u}=Ie(e,t),d=await f1(t,u),f=Ne(o),h=qt(o),p=Ve(o)==="y",{width:C,height:g}=s.floating;let b,y;f==="top"||f==="bottom"?(b=f,y=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(y=f,b=h==="end"?"top":"bottom");const L=g-d.top-d.bottom,A=C-d.left-d.right,w=Xe(g-d[b],L),E=Xe(C-d[y],A),k=!t.middlewareData.shift;let P=w,S=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=L),k&&!h){const V=ue(d.left,0),J=ue(d.right,0),W=ue(d.top,0),z=ue(d.bottom,0);p?S=C-2*(V!==0||J!==0?V+J:ue(d.left,d.right)):P=g-2*(W!==0||z!==0?W+z:ue(d.top,d.bottom))}await c({...t,availableWidth:S,availableHeight:P});const N=await i.getDimensions(a.floating);return C!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function on(){return typeof window<"u"}function Kt(e){return yi(e)?(e.nodeName||"").toLowerCase():"#document"}function de(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Re(e){var t;return(t=(yi(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yi(e){return on()?e instanceof Node||e instanceof de(e).Node:!1}function ve(e){return on()?e instanceof Element||e instanceof de(e).Element:!1}function Ee(e){return on()?e instanceof HTMLElement||e instanceof de(e).HTMLElement:!1}function us(e){return!on()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof de(e).ShadowRoot}function L1(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=we(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function V3(e){return["table","td","th"].includes(Kt(e))}function sn(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Nr(e){const t=Fr(),n=ve(e)?we(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function B3(e){let t=Ye(e);for(;Ee(t)&&!$t(t);){if(Nr(t))return t;if(sn(t))return null;t=Ye(t)}return null}function Fr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(e){return["html","body","#document"].includes(Kt(e))}function we(e){return de(e).getComputedStyle(e)}function an(e){return ve(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ye(e){if(Kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||us(e)&&e.host||Re(e);return us(t)?t.host:t}function vi(e){const t=Ye(e);return $t(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(t)&&L1(t)?t:vi(t)}function h1(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=vi(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=de(o);if(s){const a=Wn(i);return t.concat(i,i.visualViewport||[],L1(o)?o:[],a&&n?h1(a):[])}return t.concat(o,h1(o,[],n))}function Wn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wi(e){const t=we(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Ee(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=q1(n)!==s||q1(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function Tr(e){return ve(e)?e:e.contextElement}function Pt(e){const t=Tr(e);if(!Ee(t))return Se(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=wi(t);let i=(s?q1(n.width):n.width)/r,a=(s?q1(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const I3=Se(0);function xi(e){const t=de(e);return!Fr()||!t.visualViewport?I3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function N3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==de(e)?!1:t}function gt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Tr(e);let i=Se(1);t&&(r?ve(r)&&(i=Pt(r)):i=Pt(e));const a=N3(s,n,r)?xi(s):Se(0);let c=(o.left+a.x)/i.x,u=(o.top+a.y)/i.y,d=o.width/i.x,f=o.height/i.y;if(s){const h=de(s),p=r&&ve(r)?de(r):r;let C=h,g=Wn(C);for(;g&&r&&p!==C;){const b=Pt(g),y=g.getBoundingClientRect(),L=we(g),A=y.left+(g.clientLeft+parseFloat(L.paddingLeft))*b.x,w=y.top+(g.clientTop+parseFloat(L.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=A,u+=w,C=de(g),g=Wn(C)}}return G1({width:d,height:f,x:c,y:u})}function Dr(e,t){const n=an(e).scrollLeft;return t?t.left+n:gt(Re(e)).left+n}function Li(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Dr(e,r)),s=r.top+t.scrollTop;return{x:o,y:s}}function F3(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=Re(r),a=t?sn(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},u=Se(1);const d=Se(0),f=Ee(r);if((f||!f&&!s)&&((Kt(r)!=="body"||L1(i))&&(c=an(r)),Ee(r))){const p=gt(r);u=Pt(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}const h=i&&!f&&!s?Li(i,c,!0):Se(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+h.x,y:n.y*u.y-c.scrollTop*u.y+d.y+h.y}}function T3(e){return Array.from(e.getClientRects())}function D3(e){const t=Re(e),n=an(e),r=e.ownerDocument.body,o=ue(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ue(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Dr(e);const a=-n.scrollTop;return we(r).direction==="rtl"&&(i+=ue(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}function Z3(e,t){const n=de(e),r=Re(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const u=Fr();(!u||u&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:s,height:i,x:a,y:c}}function j3(e,t){const n=gt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=Ee(e)?Pt(e):Se(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,u=r*s.y;return{width:i,height:a,x:c,y:u}}function ds(e,t,n){let r;if(t==="viewport")r=Z3(e,n);else if(t==="document")r=D3(Re(e));else if(ve(t))r=j3(t,n);else{const o=xi(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return G1(r)}function Ai(e,t){const n=Ye(e);return n===t||!ve(n)||$t(n)?!1:we(n).position==="fixed"||Ai(n,t)}function $3(e,t){const n=t.get(e);if(n)return n;let r=h1(e,[],!1).filter(a=>ve(a)&&Kt(a)!=="body"),o=null;const s=we(e).position==="fixed";let i=s?Ye(e):e;for(;ve(i)&&!$t(i);){const a=we(i),c=Nr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||L1(i)&&!c&&Ai(e,i))?r=r.filter(d=>d!==i):o=a,i=Ye(i)}return t.set(e,r),r}function z3(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?sn(t)?[]:$3(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((u,d)=>{const f=ds(t,d,o);return u.top=ue(f.top,u.top),u.right=Xe(f.right,u.right),u.bottom=Xe(f.bottom,u.bottom),u.left=ue(f.left,u.left),u},ds(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function U3(e){const{width:t,height:n}=wi(e);return{width:t,height:n}}function J3(e,t,n){const r=Ee(t),o=Re(t),s=n==="fixed",i=gt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=Se(0);function u(){c.x=Dr(o)}if(r||!r&&!s)if((Kt(t)!=="body"||L1(o))&&(a=an(t)),r){const p=gt(t,!0,s,t);c.x=p.x+t.clientLeft,c.y=p.y+t.clientTop}else o&&u();s&&!r&&o&&u();const d=o&&!r&&!s?Li(o,a):Se(0),f=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:f,y:h,width:i.width,height:i.height}}function xn(e){return we(e).position==="static"}function fs(e,t){if(!Ee(e)||we(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Re(e)===n&&(n=n.ownerDocument.body),n}function Si(e,t){const n=de(e);if(sn(e))return n;if(!Ee(e)){let o=Ye(e);for(;o&&!$t(o);){if(ve(o)&&!xn(o))return o;o=Ye(o)}return n}let r=fs(e,t);for(;r&&V3(r)&&xn(r);)r=fs(r,t);return r&&$t(r)&&xn(r)&&!Nr(r)?n:r||B3(e)||n}const W3=async function(e){const t=this.getOffsetParent||Si,n=this.getDimensions,r=await n(e.floating);return{reference:J3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function q3(e){return we(e).direction==="rtl"}const K3={convertOffsetParentRelativeRectToViewportRelativeRect:F3,getDocumentElement:Re,getClippingRect:z3,getOffsetParent:Si,getElementRects:W3,getClientRects:T3,getDimensions:U3,getScale:Pt,isElement:ve,isRTL:q3};function Ei(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function G3(e,t){let n=null,r;const o=Re(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const u=e.getBoundingClientRect(),{left:d,top:f,width:h,height:p}=u;if(a||t(),!h||!p)return;const C=M1(f),g=M1(o.clientWidth-(d+h)),b=M1(o.clientHeight-(f+p)),y=M1(d),A={rootMargin:-C+"px "+-g+"px "+-b+"px "+-y+"px",threshold:ue(0,Xe(1,c))||1};let w=!0;function E(k){const P=k[0].intersectionRatio;if(P!==c){if(!w)return i();P?i(!1,P):r=setTimeout(()=>{i(!1,1e-7)},1e3)}P===1&&!Ei(u,e.getBoundingClientRect())&&i(),w=!1}try{n=new IntersectionObserver(E,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,A)}n.observe(e)}return i(!0),s}function X3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Tr(e),d=o||s?[...u?h1(u):[],...h1(t)]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const f=u&&a?G3(u,n):null;let h=-1,p=null;i&&(p=new ResizeObserver(y=>{let[L]=y;L&&L.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var A;(A=p)==null||A.observe(t)})),n()}),u&&!c&&p.observe(u),p.observe(t));let C,g=c?gt(e):null;c&&b();function b(){const y=gt(e);g&&!Ei(g,y)&&n(),g=y,C=requestAnimationFrame(b)}return n(),()=>{var y;d.forEach(L=>{o&&L.removeEventListener("scroll",n),s&&L.removeEventListener("resize",n)}),f==null||f(),(y=p)==null||y.disconnect(),p=null,c&&cancelAnimationFrame(C)}}const Y3=k3,Q3=M3,_3=E3,e9=H3,t9=R3,hs=S3,n9=O3,r9=(e,t,n)=>{const r=new Map,o={platform:K3,...n},s={...o.platform,_c:r};return A3(e,t,{...o,platform:s})};var D1=typeof document<"u"?Xa:nn;function X1(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!X1(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!X1(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Ri(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ps(e,t){const n=Ri(e);return Math.round(t*n)/n}function Ln(e){const t=m.useRef(e);return D1(()=>{t.current=e}),t}function o9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:u}=e,[d,f]=m.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,p]=m.useState(r);X1(h,r)||p(r);const[C,g]=m.useState(null),[b,y]=m.useState(null),L=m.useCallback(x=>{x!==k.current&&(k.current=x,g(x))},[]),A=m.useCallback(x=>{x!==P.current&&(P.current=x,y(x))},[]),w=s||C,E=i||b,k=m.useRef(null),P=m.useRef(null),S=m.useRef(d),N=c!=null,V=Ln(c),J=Ln(o),W=Ln(u),z=m.useCallback(()=>{if(!k.current||!P.current)return;const x={placement:t,strategy:n,middleware:h};J.current&&(x.platform=J.current),r9(k.current,P.current,x).then(D=>{const U={...D,isPositioned:W.current!==!1};K.current&&!X1(S.current,U)&&(S.current=U,ii.flushSync(()=>{f(U)}))})},[h,t,n,J,W]);D1(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,f(x=>({...x,isPositioned:!1})))},[u]);const K=m.useRef(!1);D1(()=>(K.current=!0,()=>{K.current=!1}),[]),D1(()=>{if(w&&(k.current=w),E&&(P.current=E),w&&E){if(V.current)return V.current(w,E,z);z()}},[w,E,z,V,N]);const $=m.useMemo(()=>({reference:k,floating:P,setReference:L,setFloating:A}),[L,A]),Z=m.useMemo(()=>({reference:w,floating:E}),[w,E]),F=m.useMemo(()=>{const x={position:n,left:0,top:0};if(!Z.floating)return x;const D=ps(Z.floating,d.x),U=ps(Z.floating,d.y);return a?{...x,transform:"translate("+D+"px, "+U+"px)",...Ri(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:D,top:U}},[n,a,Z.floating,d.x,d.y]);return m.useMemo(()=>({...d,update:z,refs:$,elements:Z,floatingStyles:F}),[d,z,$,Z,F])}const s9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?hs({element:r.current,padding:o}).fn(n):{}:r?hs({element:r,padding:o}).fn(n):{}}}},i9=(e,t)=>({...Y3(e),options:[e,t]}),a9=(e,t)=>({...Q3(e),options:[e,t]}),c9=(e,t)=>({...n9(e),options:[e,t]}),l9=(e,t)=>({..._3(e),options:[e,t]}),u9=(e,t)=>({...e9(e),options:[e,t]}),d9=(e,t)=>({...t9(e),options:[e,t]}),f9=(e,t)=>({...s9(e),options:[e,t]});var h9="Arrow",Pi=m.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return l(Te.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:l("polygon",{points:"0,0 30,0 15,10"})})});Pi.displayName=h9;var p9=Pi;function g9(e){const[t,n]=m.useState(void 0);return Ge(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,u=Array.isArray(c)?c[0]:c;i=u.inlineSize,a=u.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Zr="Popper",[ki,Mi]=di(Zr),[C9,Oi]=ki(Zr),Hi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=m.useState(null);return l(C9,{scope:t,anchor:r,onAnchorChange:o,children:n})};Hi.displayName=Zr;var Vi="PopperAnchor",Bi=m.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=Oi(Vi,n),i=m.useRef(null),a=_e(t,i);return m.useEffect(()=>{s.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:l(Te.div,{...o,ref:a})});Bi.displayName=Vi;var jr="PopperContent",[m9,b9]=ki(jr),Ii=m.forwardRef((e,t)=>{var Q,t1,tt,nt,yt,rt;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:u=[],collisionPadding:d=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:p="optimized",onPlaced:C,...g}=e,b=Oi(jr,n),[y,L]=m.useState(null),A=_e(t,n1=>L(n1)),[w,E]=m.useState(null),k=g9(w),P=(k==null?void 0:k.width)??0,S=(k==null?void 0:k.height)??0,N=r+(s!=="center"?"-"+s:""),V=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},J=Array.isArray(u)?u:[u],W=J.length>0,z={padding:V,boundary:J.filter(v9),altBoundary:W},{refs:K,floatingStyles:$,placement:Z,isPositioned:F,middlewareData:x}=o9({strategy:"fixed",placement:N,whileElementsMounted:(...n1)=>X3(...n1,{animationFrame:p==="always"}),elements:{reference:b.anchor},middleware:[i9({mainAxis:o+S,alignmentAxis:i}),c&&a9({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?c9():void 0,...z}),c&&l9({...z}),u9({...z,apply:({elements:n1,rects:Do,availableWidth:Ua,availableHeight:Ja})=>{const{width:Wa,height:qa}=Do.reference,P1=n1.floating.style;P1.setProperty("--radix-popper-available-width",`${Ua}px`),P1.setProperty("--radix-popper-available-height",`${Ja}px`),P1.setProperty("--radix-popper-anchor-width",`${Wa}px`),P1.setProperty("--radix-popper-anchor-height",`${qa}px`)}}),w&&f9({element:w,padding:a}),w9({arrowWidth:P,arrowHeight:S}),h&&d9({strategy:"referenceHidden",...z})]}),[D,U]=Ti(Z),se=jt(C);Ge(()=>{F&&(se==null||se())},[F,se]);const Pe=(Q=x.arrow)==null?void 0:Q.x,_=(t1=x.arrow)==null?void 0:t1.y,te=((tt=x.arrow)==null?void 0:tt.centerOffset)!==0,[ie,R1]=m.useState();return Ge(()=>{y&&R1(window.getComputedStyle(y).zIndex)},[y]),l("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...$,transform:F?$.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ie,"--radix-popper-transform-origin":[(nt=x.transformOrigin)==null?void 0:nt.x,(yt=x.transformOrigin)==null?void 0:yt.y].join(" "),...((rt=x.hide)==null?void 0:rt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:l(m9,{scope:n,placedSide:D,onArrowChange:E,arrowX:Pe,arrowY:_,shouldHideArrow:te,children:l(Te.div,{"data-side":D,"data-align":U,...g,ref:A,style:{...g.style,animation:F?void 0:"none"}})})})});Ii.displayName=jr;var Ni="PopperArrow",y9={top:"bottom",right:"left",bottom:"top",left:"right"},Fi=m.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=b9(Ni,r),i=y9[s.placedSide];return l("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:l(p9,{...o,ref:n,style:{...o.style,display:"block"}})})});Fi.displayName=Ni;function v9(e){return e!==null}var w9=e=>({name:"transformOrigin",options:e,fn(t){var b,y,L;const{placement:n,rects:r,middlewareData:o}=t,i=((b=o.arrow)==null?void 0:b.centerOffset)!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[u,d]=Ti(n),f={start:"0%",center:"50%",end:"100%"}[d],h=(((y=o.arrow)==null?void 0:y.x)??0)+a/2,p=(((L=o.arrow)==null?void 0:L.y)??0)+c/2;let C="",g="";return u==="bottom"?(C=i?f:`${h}px`,g=`${-c}px`):u==="top"?(C=i?f:`${h}px`,g=`${r.floating.height+c}px`):u==="right"?(C=`${-c}px`,g=i?f:`${p}px`):u==="left"&&(C=`${r.floating.width+c}px`,g=i?f:`${p}px`),{data:{x:C,y:g}}}});function Ti(e){const[t,n="center"]=e.split("-");return[t,n]}var x9=Hi,Di=Bi,L9=Ii,A9=Fi,S9="Portal",Zi=m.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,s]=m.useState(!1);Ge(()=>s(!0),[]);const i=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return i?r0.createPortal(l(Te.div,{...r,ref:t}),i):null});Zi.displayName=S9;function E9(e,t){return m.useReducer((n,r)=>t[n][r]??n,e)}var $r=e=>{const{present:t,children:n}=e,r=R9(t),o=typeof n=="function"?n({present:r.isPresent}):m.Children.only(n),s=_e(r.ref,P9(o));return typeof n=="function"||r.isPresent?m.cloneElement(o,{ref:s}):null};$r.displayName="Presence";function R9(e){const[t,n]=m.useState(),r=m.useRef(null),o=m.useRef(e),s=m.useRef("none"),i=e?"mounted":"unmounted",[a,c]=E9(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return m.useEffect(()=>{const u=O1(r.current);s.current=a==="mounted"?u:"none"},[a]),Ge(()=>{const u=r.current,d=o.current;if(d!==e){const h=s.current,p=O1(u);e?c("MOUNT"):p==="none"||(u==null?void 0:u.display)==="none"?c("UNMOUNT"):c(d&&h!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Ge(()=>{if(t){let u;const d=t.ownerDocument.defaultView??window,f=p=>{const g=O1(r.current).includes(p.animationName);if(p.target===t&&g&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",u=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},h=p=>{p.target===t&&(s.current=O1(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{d.clearTimeout(u),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:m.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function O1(e){return(e==null?void 0:e.animationName)||"none"}function P9(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var k9=m[" useInsertionEffect ".trim().toString()]||Ge;function M9({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=O9({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=m.useRef(e!==void 0);m.useEffect(()=>{const f=d.current;f!==a&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const u=m.useCallback(d=>{var f;if(a){const h=H9(d)?d(e):d;h!==e&&((f=i.current)==null||f.call(i,h))}else s(d)},[a,e,s,i]);return[c,u]}function O9({defaultProp:e,onChange:t}){const[n,r]=m.useState(e),o=m.useRef(n),s=m.useRef(t);return k9(()=>{s.current=t},[t]),m.useEffect(()=>{var i;o.current!==n&&((i=s.current)==null||i.call(s,n),o.current=n)},[n,o]),[n,r,s]}function H9(e){return typeof e=="function"}var V9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xt=new WeakMap,H1=new WeakMap,V1={},An=0,ji=function(e){return e&&(e.host||ji(e.parentNode))},B9=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=ji(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},I9=function(e,t,n,r){var o=B9(t,Array.isArray(e)?e:[e]);V1[n]||(V1[n]=new WeakMap);var s=V1[n],i=[],a=new Set,c=new Set(o),u=function(f){!f||a.has(f)||(a.add(f),u(f.parentNode))};o.forEach(u);var d=function(f){!f||c.has(f)||Array.prototype.forEach.call(f.children,function(h){if(a.has(h))d(h);else try{var p=h.getAttribute(r),C=p!==null&&p!=="false",g=(xt.get(h)||0)+1,b=(s.get(h)||0)+1;xt.set(h,g),s.set(h,b),i.push(h),g===1&&C&&H1.set(h,!0),b===1&&h.setAttribute(n,"true"),C||h.setAttribute(r,"true")}catch(y){console.error("aria-hidden: cannot operate on ",h,y)}})};return d(t),a.clear(),An++,function(){i.forEach(function(f){var h=xt.get(f)-1,p=s.get(f)-1;xt.set(f,h),s.set(f,p),h||(H1.has(f)||f.removeAttribute(r),H1.delete(f)),p||f.removeAttribute(n)}),An--,An||(xt=new WeakMap,xt=new WeakMap,H1=new WeakMap,V1={})}},N9=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=V9(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),I9(r,o,n,"aria-hidden")):function(){return null}},Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Le.apply(this,arguments)};function $i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function F9(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var Z1="right-scroll-bar-position",j1="width-before-scroll-bar",T9="with-scroll-bars-hidden",D9="--removed-body-scroll-bar-size";function Sn(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Z9(e,t){var n=x1(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var j9=typeof window<"u"?m.useLayoutEffect:m.useEffect,gs=new WeakMap;function $9(e,t){var n=Z9(null,function(r){return e.forEach(function(o){return Sn(o,r)})});return j9(function(){var r=gs.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||Sn(a,null)}),s.forEach(function(a){o.has(a)||Sn(a,i)})}gs.set(n,e)},[e]),n}function z9(e){return e}function U9(e,t){t===void 0&&(t=z9);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},u=function(){return Promise.resolve().then(c)};u(),n={push:function(d){i.push(d),u()},filter:function(d){return i=i.filter(d),n}}}};return o}function J9(e){e===void 0&&(e={});var t=U9(null);return t.options=Le({async:!0,ssr:!1},e),t}var zi=function(e){var t=e.sideCar,n=$i(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return m.createElement(r,Le({},n))};zi.isSideCarExport=!0;function W9(e,t){return e.useMedium(t),zi}var Ui=J9(),En=function(){},cn=m.forwardRef(function(e,t){var n=m.useRef(null),r=m.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,h=e.sideCar,p=e.noRelative,C=e.noIsolation,g=e.inert,b=e.allowPinchZoom,y=e.as,L=y===void 0?"div":y,A=e.gapMode,w=$i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,k=$9([n,t]),P=Le(Le({},w),o);return m.createElement(m.Fragment,null,d&&m.createElement(E,{sideCar:Ui,removeScrollBar:u,shards:f,noRelative:p,noIsolation:C,inert:g,setCallbacks:s,allowPinchZoom:!!b,lockRef:n,gapMode:A}),i?m.cloneElement(m.Children.only(a),Le(Le({},P),{ref:k})):m.createElement(L,Le({},P,{className:c,ref:k}),a))});cn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cn.classNames={fullWidth:j1,zeroRight:Z1};var q9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function K9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=q9();return t&&e.setAttribute("nonce",t),e}function G9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function X9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Y9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=K9())&&(G9(t,n),X9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Q9=function(){var e=Y9();return function(t,n){m.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ji=function(){var e=Q9(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},_9={left:0,top:0,right:0,gap:0},Rn=function(e){return parseInt(e||"",10)||0},e6=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Rn(n),Rn(r),Rn(o)]},t6=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return _9;var t=e6(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},n6=Ji(),kt="data-scroll-locked",r6=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
3
3
|
.`.concat(T9,` {
|
|
4
4
|
overflow: hidden `).concat(r,`;
|
|
5
5
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
@@ -78,6 +78,6 @@ var Zo=e=>{throw TypeError(e)};var Cn=(e,t,n)=>t.has(e)||Zo("Cannot "+n);var v=(
|
|
|
78
78
|
`);super(s),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function De(e,t){const n=e.exec(t);return n==null?void 0:n.groups}const G2=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,X2=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Y2=/^\(.+?\).*?$/,Ds=/^tuple(?<array>(\[(\d*)\])*)$/;function ur(e){let t=e.type;if(Ds.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let o=0;o<n;o++){const s=e.components[o];t+=ur(s),o<n-1&&(t+=", ")}const r=De(Ds,e.type);return t+=`)${(r==null?void 0:r.array)??""}`,ur({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function a1(e){let t="";const n=e.length;for(let r=0;r<n;r++){const o=e[r];t+=ur(o),r!==n-1&&(t+=", ")}return t}function xc(e){var t;return e.type==="function"?`function ${e.name}(${a1(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${(t=e.outputs)!=null&&t.length?` returns (${a1(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${a1(e.inputs)})`:e.type==="error"?`error ${e.name}(${a1(e.inputs)})`:e.type==="constructor"?`constructor(${a1(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}const Q2=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Lc(e){return Q2.test(e)}function Ac(e){return De(Q2,e)}const _2=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function Sc(e){return _2.test(e)}function Ec(e){return De(_2,e)}const ea=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function Rc(e){return ea.test(e)}function Pc(e){return De(ea,e)}const ta=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function na(e){return ta.test(e)}function kc(e){return De(ta,e)}const ra=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function Mc(e){return ra.test(e)}function Oc(e){return De(ra,e)}const oa=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function Hc(e){return oa.test(e)}function Vc(e){return De(oa,e)}const Bc=/^receive\(\) external payable$/;function Ic(e){return Bc.test(e)}const Nc=new Set(["indexed"]),dr=new Set(["calldata","memory","storage"]);class Lf extends pe{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class Fc extends pe{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class Tc extends pe{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class Dc extends pe{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Zc extends pe{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class jc extends pe{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class $c extends pe{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class zc extends pe{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class _t extends pe{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Uc extends pe{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Jc extends pe{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class Wc extends pe{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class qc extends pe{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}function Kc(e,t,n){let r="";if(n)for(const o of Object.entries(n)){if(!o)continue;let s="";for(const i of o[1])s+=`[${i.type}${i.name?`:${i.name}`:""}]`;r+=`(${o[0]}{${s}})`}return t?`${t}:${e}${r}`:e}const Vn=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Gc(e,t={}){if(Rc(e))return Xc(e,t);if(Sc(e))return Yc(e,t);if(Lc(e))return Qc(e,t);if(Mc(e))return _c(e,t);if(Hc(e))return el(e);if(Ic(e))return{type:"receive",stateMutability:"payable"};throw new Uc({signature:e})}function Xc(e,t={}){const n=Pc(e);if(!n)throw new _t({signature:e,type:"function"});const r=ye(n.parameters),o=[],s=r.length;for(let a=0;a<s;a++)o.push(mt(r[a],{modifiers:dr,structs:t,type:"function"}));const i=[];if(n.returns){const a=ye(n.returns),c=a.length;for(let u=0;u<c;u++)i.push(mt(a[u],{modifiers:dr,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:i}}function Yc(e,t={}){const n=Ec(e);if(!n)throw new _t({signature:e,type:"event"});const r=ye(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(mt(r[i],{modifiers:Nc,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}function Qc(e,t={}){const n=Ac(e);if(!n)throw new _t({signature:e,type:"error"});const r=ye(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(mt(r[i],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}function _c(e,t={}){const n=Oc(e);if(!n)throw new _t({signature:e,type:"constructor"});const r=ye(n.parameters),o=[],s=r.length;for(let i=0;i<s;i++)o.push(mt(r[i],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}function el(e){const t=Vc(e);if(!t)throw new _t({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}const tl=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,nl=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,rl=/^u?int$/;function mt(e,t){var f,h;const n=Kc(e,t==null?void 0:t.type,t==null?void 0:t.structs);if(Vn.has(n))return Vn.get(n);const r=Y2.test(e),o=De(r?nl:tl,e);if(!o)throw new Dc({param:e});if(o.name&&sl(o.name))throw new Zc({param:e,name:o.name});const s=o.name?{name:o.name}:{},i=o.modifier==="indexed"?{indexed:!0}:{},a=(t==null?void 0:t.structs)??{};let c,u={};if(r){c="tuple";const p=ye(o.type),C=[],g=p.length;for(let b=0;b<g;b++)C.push(mt(p[b],{structs:a}));u={components:C}}else if(o.type in a)c="tuple",u={components:a[o.type]};else if(rl.test(o.type))c=`${o.type}256`;else if(c=o.type,(t==null?void 0:t.type)!=="struct"&&!sa(c))throw new Tc({type:c});if(o.modifier){if(!((h=(f=t==null?void 0:t.modifiers)==null?void 0:f.has)!=null&&h.call(f,o.modifier)))throw new jc({param:e,type:t==null?void 0:t.type,modifier:o.modifier});if(dr.has(o.modifier)&&!il(c,!!o.array))throw new $c({param:e,type:t==null?void 0:t.type,modifier:o.modifier})}const d={type:`${c}${o.array??""}`,...s,...i,...u};return Vn.set(n,d),d}function ye(e,t=[],n="",r=0){const o=e.trim().length;for(let s=0;s<o;s++){const i=e[s],a=e.slice(s+1);switch(i){case",":return r===0?ye(a,[...t,n.trim()]):ye(a,t,`${n}${i}`,r);case"(":return ye(a,t,`${n}${i}`,r+1);case")":return ye(a,t,`${n}${i}`,r-1);default:return ye(a,t,`${n}${i}`,r)}}if(n==="")return t;if(r!==0)throw new qc({current:n,depth:r});return t.push(n.trim()),t}function sa(e){return e==="address"||e==="bool"||e==="function"||e==="string"||G2.test(e)||X2.test(e)}const ol=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function sl(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||G2.test(e)||X2.test(e)||ol.test(e)}function il(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function al(e){const t={},n=e.length;for(let i=0;i<n;i++){const a=e[i];if(!na(a))continue;const c=kc(a);if(!c)throw new _t({signature:a,type:"struct"});const u=c.properties.split(";"),d=[],f=u.length;for(let h=0;h<f;h++){const C=u[h].trim();if(!C)continue;const g=mt(C,{type:"struct"});d.push(g)}if(!d.length)throw new Jc({signature:a});t[c.name]=d}const r={},o=Object.entries(t),s=o.length;for(let i=0;i<s;i++){const[a,c]=o[i];r[a]=ia(c,t)}return r}const cl=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function ia(e,t,n=new Set){const r=[],o=e.length;for(let s=0;s<o;s++){const i=e[s];if(Y2.test(i.type))r.push(i);else{const c=De(cl,i.type);if(!(c!=null&&c.type))throw new zc({abiParameter:i});const{array:u,type:d}=c;if(d in t){if(n.has(d))throw new Wc({type:d});r.push({...i,type:`tuple${u??""}`,components:ia(t[d]??[],t,new Set([...n,d]))})}else if(sa(d))r.push(i);else throw new Fc({type:d})}}return r}function aa(e){const t=al(e),n=[],r=e.length;for(let o=0;o<r;o++){const s=e[o];na(s)||n.push(Gc(s,t))}return n}function ll(e){let t=!0,n="",r=0,o="",s=!1;for(let i=0;i<e.length;i++){const a=e[i];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(o))o="";else if(o+=a,a===")"){s=!0;break}continue}if(a===" "){e[i-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!s)throw new R("Unable to normalize signature.");return o}const ul=e=>{const t=typeof e=="string"?e:xc(e);return ll(t)};function ca(e){return vc(ul(e))}const dl=ca,S1=e=>Jt(ca(e),0,4);function E1(e){const{abi:t,args:n=[],name:r}=e,o=Qt(r,{strict:!1}),s=t.filter(a=>o?a.type==="function"?S1(a)===r:a.type==="event"?dl(a)===r:!1:"name"in a&&a.name===r);if(s.length===0)return;if(s.length===1)return s[0];let i;for(const a of s){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((u,d)=>{const f="inputs"in a&&a.inputs[d];return f?fr(u,f):!1})){if(i&&"inputs"in i&&i.inputs){const u=la(a.inputs,i.inputs,n);if(u)throw new Q8({abiItem:a,type:u[0]},{abiItem:i,type:u[1]})}i=a}}return i||s[0]}function fr(e,t){const n=typeof e,r=t.type;switch(r){case"address":return Qe(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,s)=>fr(Object.values(e)[s],o)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>fr(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function la(e,t,n){for(const r in e){const o=e[r],s=t[r];if(o.type==="tuple"&&s.type==="tuple"&&"components"in o&&"components"in s)return la(o.components,s.components,n[r]);const i=[o.type,s.type];if(i.includes("address")&&i.includes("bytes20")?!0:i.includes("address")&&i.includes("string")?Qe(n[r],{strict:!1}):i.includes("address")&&i.includes("bytes")?Qe(n[r],{strict:!1}):!1)return i}}const Bn="/docs/contract/decodeFunctionResult";function ko(e){const{abi:t,args:n,functionName:r,data:o}=e;let s=t[0];if(r){const a=E1({abi:t,args:n,name:r});if(!a)throw new Ut(r,{docsPath:Bn});s=a}if(s.type!=="function")throw new Ut(void 0,{docsPath:Bn});if(!s.outputs)throw new M2(s.name,{docsPath:Bn});const i=Po(s.outputs,o);if(i&&i.length>1)return i;if(i&&i.length===1)return i[0]}const Zs="/docs/contract/encodeFunctionData";function fl(e){const{abi:t,args:n,functionName:r}=e;let o=t[0];if(r){const s=E1({abi:t,args:n,name:r});if(!s)throw new Ut(r,{docsPath:Zs});o=s}if(o.type!=="function")throw new Ut(void 0,{docsPath:Zs});return{abi:[o],functionName:S1(Fe(o))}}function Mo(e){const{args:t}=e,{abi:n,functionName:r}=(()=>{var a;return e.abi.length===1&&((a=e.functionName)!=null&&a.startsWith("0x"))?e:fl(e)})(),o=n[0],s=r,i="inputs"in o&&o.inputs?fn(o.inputs,t??[]):void 0;return dn([s,i??"0x"])}function Oo({blockNumber:e,chain:t,contract:n}){var o;const r=(o=t==null?void 0:t.contracts)==null?void 0:o[n];if(!r)throw new Qn({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new Qn({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}const ua={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},da={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},hl={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function pl(e){const{abi:t,data:n}=e,r=Jt(n,0,4);if(r==="0x")throw new Kr;const s=[...t||[],da,hl].find(i=>i.type==="error"&&r===S1(Fe(i)));if(!s)throw new k2(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:s,args:"inputs"in s&&s.inputs&&s.inputs.length>0?Po(s.inputs,Jt(n,4)):void 0,errorName:s.name}}function fa({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${n?e.name:""}(${e.inputs.map((o,s)=>`${r&&o.name?`${o.name}: `:""}${typeof t[s]=="object"?hn(t[s]):t[s]}`).join(", ")})`}class gl extends R{constructor(t,{account:n,docsPath:r,chain:o,data:s,gas:i,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:f,value:h,stateOverride:p}){var b;const C=n?eo(n):void 0;let g=to({from:C==null?void 0:C.address,to:f,value:typeof h<"u"&&`${J7(h)} ${((b=o==null?void 0:o.nativeCurrency)==null?void 0:b.symbol)||"ETH"}`,data:s,gas:i,gasPrice:typeof a<"u"&&`${pt(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${pt(c)} gwei`,maxPriorityFeePerGas:typeof u<"u"&&`${pt(u)} gwei`,nonce:d});p&&(g+=`
|
|
79
79
|
${oc(p)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",g].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Cl extends R{constructor(t,{abi:n,args:r,contractAddress:o,docsPath:s,functionName:i,sender:a}){const c=E1({abi:n,args:r,name:i}),u=c?fa({abiItem:c,args:r,includeFunctionName:!1,includeName:!1}):void 0,d=c?Fe(c,{includeName:!0}):void 0,f=to({address:o&&q7(o),function:d,args:u&&u!=="()"&&`${[...Array((i==null?void 0:i.length)??0).keys()].map(()=>" ").join("")}${u}`,sender:a});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:s,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],f&&"Contract Call:",f].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=n,this.args=r,this.cause=t,this.contractAddress=o,this.functionName=i,this.sender=a}}class hr extends R{constructor({abi:t,data:n,functionName:r,message:o}){let s,i,a,c;if(n&&n!=="0x")try{i=pl({abi:t,data:n});const{abiItem:d,errorName:f,args:h}=i;if(f==="Error")c=h[0];else if(f==="Panic"){const[p]=h;c=ua[p]}else{const p=d?Fe(d,{includeName:!0}):void 0,C=d&&h?fa({abiItem:d,args:h,includeFunctionName:!1,includeName:!1}):void 0;a=[p?`Error: ${p}`:"",C&&C!=="()"?` ${[...Array((f==null?void 0:f.length)??0).keys()].map(()=>" ").join("")}${C}`:""]}}catch(d){s=d}else o&&(c=o);let u;s instanceof k2&&(u=s.signature,a=[`Unable to decode signature "${u}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${u}.`]),super(c&&c!=="execution reverted"||u?[`The contract function "${r}" reverted with the following ${u?"signature":"reason"}:`,c||u].join(`
|
|
80
80
|
`):`The contract function "${r}" reverted.`,{cause:s,metaMessages:a,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i,this.raw=n,this.reason=c,this.signature=u}}class ml extends R{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class bl extends R{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class ha extends R{constructor({data:t,message:n}){super(n||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}function pa(e,t){var r,o,s,i,a,c;if(!(e instanceof R))return!1;const n=e.walk(u=>u instanceof hr);return n instanceof hr?!!(((r=n.data)==null?void 0:r.errorName)==="ResolverNotFound"||((o=n.data)==null?void 0:o.errorName)==="ResolverWildcardNotSupported"||((s=n.data)==null?void 0:s.errorName)==="ResolverNotContract"||((i=n.data)==null?void 0:i.errorName)==="ResolverError"||((a=n.data)==null?void 0:a.errorName)==="HttpError"||(c=n.reason)!=null&&c.includes("Wildcard on non-extended resolvers is not supported")||t==="reverse"&&n.reason===ua[50]):!1}function yl(e){const{abi:t,data:n}=e,r=Jt(n,0,4),o=t.find(s=>s.type==="function"&&r===S1(Fe(s)));if(!o)throw new Y8(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:o.name,args:"inputs"in o&&o.inputs&&o.inputs.length>0?Po(o.inputs,Jt(n,4)):void 0}}const In="/docs/contract/encodeErrorResult";function js(e){const{abi:t,errorName:n,args:r}=e;let o=t[0];if(n){const c=E1({abi:t,args:r,name:n});if(!c)throw new Rs(n,{docsPath:In});o=c}if(o.type!=="error")throw new Rs(void 0,{docsPath:In});const s=Fe(o),i=S1(s);let a="0x";if(r&&r.length>0){if(!o.inputs)throw new X8(o.name,{docsPath:In});a=fn(o.inputs,r)}return dn([i,a])}const Nn="/docs/contract/encodeFunctionResult";function vl(e){const{abi:t,functionName:n,result:r}=e;let o=t[0];if(n){const i=E1({abi:t,name:n});if(!i)throw new Ut(n,{docsPath:Nn});o=i}if(o.type!=="function")throw new Ut(void 0,{docsPath:Nn});if(!o.outputs)throw new M2(o.name,{docsPath:Nn});const s=(()=>{if(o.outputs.length===0)return[];if(o.outputs.length===1)return[r];if(Array.isArray(r))return r;throw new O2(r)})();return fn(o.outputs,s)}const wl="x-batch-gateway:true";async function Af(e){const{data:t,ccipRequest:n}=e,{args:[r]}=yl({abi:ar,data:t}),o=[],s=[];return await Promise.all(r.map(async(i,a)=>{try{s[a]=await n(i),o[a]=!1}catch(c){o[a]=!0,s[a]=xl(c)}})),vl({abi:ar,functionName:"query",result:[o,s]})}function xl(e){return e.name==="HttpRequestError"&&e.status?js({abi:ar,errorName:"HttpError",args:[e.status,e.shortMessage]}):js({abi:[da],errorName:"Error",args:["shortMessage"in e?e.shortMessage:e.message]})}function ga(e){if(e.length!==66||e.indexOf("[")!==0||e.indexOf("]")!==65)return null;const t=`0x${e.slice(1,65)}`;return Qt(t)?t:null}function Ll(e){let t=new Uint8Array(32).fill(0);if(!e)return Ce(t);const n=e.split(".");for(let r=n.length-1;r>=0;r-=1){const o=ga(n[r]),s=o?Jr(o):C1(ht(n[r]),"bytes");t=C1(Ct([t,s]),"bytes")}return Ce(t)}function Al(e){return`[${e.slice(2)}]`}function Sl(e){const t=new Uint8Array(32).fill(0);return e?ga(e)||C1(ht(e)):Ce(t)}function Ca(e){const t=e.replace(/^\.|\.$/gm,"");if(t.length===0)return new Uint8Array(1);const n=new Uint8Array(ht(t).byteLength+2);let r=0;const o=t.split(".");for(let s=0;s<o.length;s++){let i=ht(o[s]);i.byteLength>255&&(i=ht(Al(Sl(o[s])))),n[r]=i.length,n.set(i,r+1),r+=i.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}const El=3;function Rl(e,{abi:t,address:n,args:r,docsPath:o,functionName:s,sender:i}){const a=e instanceof ha?e:e instanceof R?e.walk(C=>"data"in C)||e.walk():{},{code:c,data:u,details:d,message:f,shortMessage:h}=a,p=e instanceof Kr?new ml({functionName:s}):[El,pn.code].includes(c)&&(u||d||f||h)?new hr({abi:t,data:typeof u=="object"?u.data:u,functionName:s,message:a instanceof W2?d:h??f}):e;return new Cl(p,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:s,sender:i})}const Pl="0.1.1";function kl(){return Pl}let e1=class pr extends Error{constructor(t,n={}){const r=(()=>{var c;if(n.cause instanceof pr){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&typeof n.cause.details=="string"?n.cause.details:(c=n.cause)!=null&&c.message?n.cause.message:n.details})(),o=n.cause instanceof pr&&n.cause.docsPath||n.docsPath,i=`https://oxlib.sh${o??""}`,a=[t||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||o?["",r?`Details: ${r}`:void 0,o?`See: ${i}`:void 0]:[]].filter(c=>typeof c=="string").join(`
|
|
81
|
-
`);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${kl()}`}),this.cause=n.cause,this.details=r,this.docs=i,this.docsPath=o,this.shortMessage=t}walk(t){return ma(this,t)}};function ma(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?ma(e.cause,t):t?null:e}const Ml="#__bigint";function Ol(e,t,n){return JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString()+Ml:o,n)}function ba(e,t){if(Wt(e)>t)throw new Zl({givenSize:Wt(e),maxSize:t})}function Hl(e,t){if(typeof t=="number"&&t>0&&t>Wt(e)-1)throw new wa({offset:t,position:"start",size:Wt(e)})}function Vl(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Wt(e)!==n-t)throw new wa({offset:n,position:"end",size:Wt(e)})}function ya(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const o=e.replace("0x","");if(o.length>r*2)throw new jl({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const Bl=new TextEncoder,Il=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Nl(e,t={}){const{strict:n=!1}=t;if(!e)throw new $s(e);if(typeof e!="string")throw new $s(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new zs(e);if(!e.startsWith("0x"))throw new zs(e)}function Sf(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function Ef(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(ba(n,t.size),va(n,t.size)):n}function Fl(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=Il[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(ba(r,t.size),Tl(r,t.size)):r}function He(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const u=typeof e=="bigint"?"n":"";throw new Dl({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:n,size:r,value:`${e}${u}`})}const c=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?va(c,r):c}function Rf(e,t={}){return Fl(Bl.encode(e),t)}function va(e,t){return ya(e,{dir:"left",size:t})}function Tl(e,t){return ya(e,{dir:"right",size:t})}function Pf(e,t,n,r={}){const{strict:o}=r;Hl(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&Vl(s,t,n),s}function Wt(e){return Math.ceil((e.length-2)/2)}function kf(e,t={}){const{strict:n=!1}=t;try{return Nl(e,{strict:n}),!0}catch{return!1}}class Dl extends e1{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number \`${s}\` is not in safe${o?` ${o*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class $s extends e1{constructor(t){super(`Value \`${typeof t=="object"?Ol(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class zs extends e1{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class Zl extends e1{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class wa extends e1{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class jl extends e1{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function $l(e){return{address:e.address,amount:He(e.amount),index:He(e.index),validatorIndex:He(e.validatorIndex)}}function zl(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:He(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:He(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:He(e.gasLimit)},...typeof e.number=="bigint"&&{number:He(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:He(e.prevRandao)},...typeof e.time=="bigint"&&{time:He(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map($l)}}}const Ul="0x82ad56cb",Jl="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Wl="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Mf="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";function ql(e,{docsPath:t,...n}){const r=(()=>{const o=G7(e,n);return o instanceof J2?e:o})();return new gl(r,{docsPath:t,...n})}function Kl(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const Fn=new Map;function Gl({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const s=async()=>{const d=c();i();const f=d.map(({args:h})=>h);f.length!==0&&e(f).then(h=>{o&&Array.isArray(h)&&h.sort(o);for(let p=0;p<d.length;p++){const{resolve:C}=d[p];C==null||C([h[p],h])}}).catch(h=>{for(let p=0;p<d.length;p++){const{reject:C}=d[p];C==null||C(h)}})},i=()=>Fn.delete(t),a=()=>c().map(({args:d})=>d),c=()=>Fn.get(t)||[],u=d=>Fn.set(t,[...c(),d]);return{flush:i,async schedule(d){const{promise:f,resolve:h,reject:p}=Kl();return(n==null?void 0:n([...a(),d]))&&s(),c().length>0?(u({args:d,resolve:h,reject:p}),f):(u({args:d,resolve:h,reject:p}),setTimeout(s,r),f)}}}async function Xl(e,t){var W,z,K,$;const{account:n=e.account,batch:r=!!((W=e.batch)!=null&&W.multicall),blockNumber:o,blockTag:s="latest",accessList:i,blobs:a,blockOverrides:c,code:u,data:d,factory:f,factoryData:h,gas:p,gasPrice:C,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:L,to:A,value:w,stateOverride:E,...k}=t,P=n?eo(n):void 0;if(u&&(f||h))throw new R("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&A)throw new R("Cannot provide both `code` & `to` as parameters.");const S=u&&d,N=f&&h&&A&&d,V=S||N,J=S?_l({code:u,data:d}):N?eu({data:d,factory:f,factoryData:h,to:A}):d;try{tc(t);const F=(typeof o=="bigint"?Y(o):void 0)||s,x=c?zl(c):void 0,D=ic(E),U=($=(K=(z=e.chain)==null?void 0:z.formatters)==null?void 0:K.transactionRequest)==null?void 0:$.format,Pe=(U||q2)({...X7(k,{format:U}),from:P==null?void 0:P.address,accessList:i,blobs:a,data:J,gas:p,gasPrice:C,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:L,to:V?void 0:A,value:w});if(r&&Yl({request:Pe})&&!D&&!x)try{return await Ql(e,{...Pe,blockNumber:o,blockTag:s})}catch(ie){if(!(ie instanceof z2)&&!(ie instanceof Qn))throw ie}const _=(()=>{const ie=[Pe,F];return D&&x?[...ie,D,x]:D?[...ie,D]:x?[...ie,{},x]:ie})(),te=await e.request({method:"eth_call",params:_});return te==="0x"?{data:void 0}:{data:te}}catch(Z){const F=tu(Z),{offchainLookup:x,offchainLookupSignature:D}=await Mr(async()=>{const{offchainLookup:U,offchainLookupSignature:se}=await import("./ccip-DsoRw0ey.js");return{offchainLookup:U,offchainLookupSignature:se}},__vite__mapDeps([0,1,2]));if(e.ccipRead!==!1&&(F==null?void 0:F.slice(0,10))===D&&A)return{data:await x(e,{data:F,to:A})};throw V&&(F==null?void 0:F.slice(0,10))==="0x101bb98d"?new bl({factory:f}):ql(Z,{...t,account:P,chain:e.chain})}}function Yl({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(Ul)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Ql(e,t){var g;const{batchSize:n=1024,wait:r=0}=typeof((g=e.batch)==null?void 0:g.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:s="latest",data:i,multicallAddress:a,to:c}=t;let u=a;if(!u){if(!e.chain)throw new z2;u=Oo({blockNumber:o,chain:e.chain,contract:"multicall3"})}const f=(typeof o=="bigint"?Y(o):void 0)||s,{schedule:h}=Gl({id:`${e.uid}.${f}`,wait:r,shouldSplitBatch(b){return b.reduce((L,{data:A})=>L+(A.length-2),0)>n*2},fn:async b=>{const y=b.map(w=>({allowFailure:!0,callData:w.data,target:w.to})),L=Mo({abi:Ns,args:[y],functionName:"aggregate3"}),A=await e.request({method:"eth_call",params:[{data:L,to:u},f]});return ko({abi:Ns,args:[y],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:p,success:C}]=await h({data:i,to:c});if(!C)throw new ha({data:p});return p==="0x"?{data:void 0}:{data:p}}function _l(e){const{code:t,data:n}=e;return $2({abi:aa(["constructor(bytes, bytes)"]),bytecode:Jl,args:[t,n]})}function eu(e){const{data:t,factory:n,factoryData:r,to:o}=e;return $2({abi:aa(["constructor(address, bytes, address, bytes)"]),bytecode:Wl,args:[o,t,n,r]})}function tu(e){var n;if(!(e instanceof R))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function en(e,t){const{abi:n,address:r,args:o,functionName:s,...i}=t,a=Mo({abi:n,args:o,functionName:s});try{const{data:c}=await gn(e,Xl,"call")({...i,data:a,to:r});return ko({abi:n,args:o,functionName:s,data:c||"0x"})}catch(c){throw Rl(c,{abi:n,address:r,args:o,docsPath:"/docs/contract/readContract",functionName:s})}}class nu extends R{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class c1 extends R{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Ho extends R{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ru extends R{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const ou=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,su=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,iu=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,au=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function cu(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function Us(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function xa({uri:e,gatewayUrls:t}){const n=iu.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=Us(t==null?void 0:t.ipfs,"https://ipfs.io"),o=Us(t==null?void 0:t.arweave,"https://arweave.net"),s=e.match(ou),{protocol:i,subpath:a,target:c,subtarget:u=""}=(s==null?void 0:s.groups)||{},d=i==="ipns:/"||a==="ipns/",f=i==="ipfs:/"||a==="ipfs/"||su.test(e);if(e.startsWith("http")&&!d&&!f){let p=e;return t!=null&&t.arweave&&(p=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:p,isOnChain:!1,isEncoded:!1}}if((d||f)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if(i==="ar:/"&&c)return{uri:`${o}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let h=e.replace(au,"");if(h.startsWith("<svg")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith("data:")||h.startsWith("{"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new Ho({uri:e})}function La(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new nu({data:e});return e.image||e.image_url||e.image_data}async function lu({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(o=>o.json());return await Vo({gatewayUrls:e,uri:La(n)})}catch{throw new Ho({uri:t})}}async function Vo({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=xa({uri:t,gatewayUrls:e});if(r||await cu(n))return n;throw new Ho({uri:t})}function uu(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[s,i]=n.split(":"),[a,c]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new c1({reason:"Only EIP-155 supported"});if(!i)throw new c1({reason:"Chain ID not found"});if(!c)throw new c1({reason:"Contract address not found"});if(!o)throw new c1({reason:"Token ID not found"});if(!a)throw new c1({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i),namespace:a.toLowerCase(),contractAddress:c,tokenID:o}}async function du(e,{nft:t}){if(t.namespace==="erc721")return en(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return en(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new ru({namespace:t.namespace})}async function fu(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?hu(e,{gatewayUrls:t,record:n}):Vo({uri:n,gatewayUrls:t})}async function hu(e,{gatewayUrls:t,record:n}){const r=uu(n),o=await du(e,{nft:r}),{uri:s,isOnChain:i,isEncoded:a}=xa({uri:o,gatewayUrls:t});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const u=a?atob(s.replace("data:application/json;base64,","")):s,d=JSON.parse(u);return Vo({uri:La(d),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),lu({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,c)})}async function pu(e,t){const{blockNumber:n,blockTag:r,key:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Oo({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c==null?void 0:c.ensTlds;if(d&&!d.some(f=>s.endsWith(f)))return null;try{const f={address:u,abi:ac,functionName:"resolve",args:[qr(Ca(s)),Mo({abi:Fs,functionName:"text",args:[Ll(s),o]}),i??[wl]],blockNumber:n,blockTag:r},p=await gn(e,en,"readContract")(f);if(p[0]==="0x")return null;const C=ko({abi:Fs,functionName:"text",data:p[0]});return C===""?null:C}catch(f){if(a)throw f;if(pa(f,"resolve"))return null;throw f}}async function gu(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:s,strict:i,universalResolverAddress:a}){const c=await gn(e,pu,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a,gatewayUrls:s,strict:i});if(!c)return null;try{return await fu(e,{record:c,gatewayUrls:r})}catch{return null}}async function Cu(e,{address:t,blockNumber:n,blockTag:r,gatewayUrls:o,strict:s,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Oo({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const u={address:a,abi:cc,functionName:"reverse",args:[qr(Ca(c))],blockNumber:n,blockTag:r},d=gn(e,en,"readContract"),[f,h]=o?await d({...u,args:[...u.args,o]}):await d(u);return t.toLowerCase()!==h.toLowerCase()?null:f}catch(u){if(s)throw u;if(pa(u,"reverse"))return null;throw u}}function Aa(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}const mu="2.17.2",bu=()=>`@wagmi/core@${mu}`;var Sa=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},tn,Ea;let yu=class gr extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return bu()}constructor(t,n={}){var s;super(),tn.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof gr?n.cause.details:(s=n.cause)!=null&&s.message?n.cause.message:n.details,o=n.cause instanceof gr&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
|
|
82
|
-
`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return Sa(this,tn,"m",Ea).call(this,this,t)}};tn=new WeakSet,Ea=function e(t,n){return n!=null&&n(t)?t:t.cause?Sa(this,tn,"m",e).call(this,t.cause,n):t};function Js(e){return e.state.chainId}function vu(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return Aa(o,gu,"getEnsAvatar")(r)}function wu(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return Aa(o,Cu,"getEnsName")(r)}let Tn=!1;async function xu(e,t={}){var u,d;if(Tn)return[];Tn=!0,e.setState(f=>({...f,status:f.current?"reconnecting":"connecting"}));const n=[];if((u=t.connectors)!=null&&u.length)for(const f of t.connectors){let h;typeof f=="function"?h=e._internal.connectors.setup(f):h=f,n.push(h)}else n.push(...e.connectors);let r;try{r=await((d=e.storage)==null?void 0:d.getItem("recentConnectorId"))}catch{}const o={};for(const[,f]of e.state.connections)o[f.connector.id]=1;r&&(o[r]=0);const s=Object.keys(o).length>0?[...n].sort((f,h)=>(o[f.id]??10)-(o[h.id]??10)):n;let i=!1;const a=[],c=[];for(const f of s){const h=await f.getProvider().catch(()=>{});if(!h||c.some(g=>g===h)||!await f.isAuthorized())continue;const C=await f.connect({isReconnecting:!0}).catch(()=>null);C&&(f.emitter.off("connect",e._internal.events.connect),f.emitter.on("change",e._internal.events.change),f.emitter.on("disconnect",e._internal.events.disconnect),e.setState(g=>{const b=new Map(i?g.connections:new Map).set(f.uid,{accounts:C.accounts,chainId:C.chainId,connector:f});return{...g,current:i?g.current:f.uid,connections:b}}),a.push({accounts:C.accounts,chainId:C.chainId,connector:f}),c.push(h),i=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(i?e.setState(f=>({...f,status:"connected"})):e.setState(f=>({...f,connections:new Map,current:null,status:"disconnected"}))),Tn=!1,a}function Lu(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}function Au(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{var c;const s=new Set;for(const u of o??[])if(u.rdns){const d=Array.isArray(u.rdns)?u.rdns:[u.rdns];for(const f of d)s.add(f)}const i=[],a=((c=e._internal.mipd)==null?void 0:c.getProviders())??[];for(const u of a){if(s.has(u.info.rdns))continue;const d=e._internal.connectors.providerDetailToConnector(u),f=e._internal.connectors.setup(d);i.push(f)}return[...o,...i]})),r?xu(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}function Su(e){const{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:s}=Au(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||s();const i=Or(!0);return nn(()=>{if(i.current&&n._internal.ssr)return s(),()=>{i.current=!1}},[]),t}const Ra=_a(void 0);function Of(e){const{children:t,config:n}=e,r={value:n};return jo(Su,e,jo(Ra.Provider,r,t))}const Eu="2.15.4",Ru=()=>`wagmi@${Eu}`;class Pu extends yu{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Ru()}}class ku extends Pu{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function Bo(e={}){const t=e.config??e0(Ra);if(!t)throw new ku;return t}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bt=typeof window>"u"||"Deno"in globalThis;function b1(){}function Hf(e,t){return typeof e=="function"?e(t):e}function Cr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $1(e,t){return typeof e=="function"?e(t):e}function be(e,t){return typeof e=="function"?e(t):e}function Vf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Mu(i,t.options))return!1}else if(!No(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Bf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(mr(t.options.mutationKey)!==mr(s))return!1}else if(!No(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Mu(e,t){return((t==null?void 0:t.queryKeyHashFn)||mr)(e)}function mr(e){return JSON.stringify(e,(t,n)=>yr(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function No(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>No(e[n],t[n])):!1}function ka(e,t){if(e===t)return e;const n=Ws(e)&&Ws(t);if(n||yr(e)&&yr(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let u=0;u<i;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=ka(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function br(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ws(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yr(e){if(!qs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qs(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qs(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ou(e){return new Promise(t=>{setTimeout(t,e)})}function vr(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ka(e,t):t}function If(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ma=Symbol();function Hu(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ma?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vu(e,t){return typeof e=="function"?e(...t):!!e}var st,$e,Ht,_s,Bu=(_s=class extends Io{constructor(){super();q(this,st);q(this,$e);q(this,Ht);I(this,Ht,t=>{if(!bt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,$e)||this.setEventListener(v(this,Ht))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,$e))==null||t.call(this),I(this,$e,void 0))}setEventListener(t){var n;I(this,Ht,t),(n=v(this,$e))==null||n.call(this),I(this,$e,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,st)!==t&&(I(this,st,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,st)=="boolean"?v(this,st):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},st=new WeakMap,$e=new WeakMap,Ht=new WeakMap,_s),Oa=new Bu,Vt,ze,Bt,ei,Iu=(ei=class extends Io{constructor(){super();q(this,Vt,!0);q(this,ze);q(this,Bt);I(this,Bt,t=>{if(!bt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,ze)||this.setEventListener(v(this,Bt))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,ze))==null||t.call(this),I(this,ze,void 0))}setEventListener(t){var n;I(this,Bt,t),(n=v(this,ze))==null||n.call(this),I(this,ze,t(this.setOnline.bind(this)))}setOnline(t){v(this,Vt)!==t&&(I(this,Vt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Vt)}},Vt=new WeakMap,ze=new WeakMap,Bt=new WeakMap,ei),Ha=new Iu;function wr(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Nu(e){return Math.min(1e3*2**e,3e4)}function Va(e){return(e??"online")==="online"?Ha.isOnline():!0}var Ba=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Dn(e){return e instanceof Ba}function Fu(e){let t=!1,n=0,r=!1,o;const s=wr(),i=g=>{var b;r||(h(new Ba(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>Oa.isFocused()&&(e.networkMode==="always"||Ha.isOnline())&&e.canRun(),d=()=>Va(e.networkMode)&&e.canRun(),f=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),o==null||o(),s.resolve(g))},h=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),o==null||o(),s.reject(g))},p=()=>new Promise(g=>{var b;o=y=>{(r||u())&&g(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),C=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var k;if(r)return;const L=e.retry??(bt?0:3),A=e.retryDelay??Nu,w=typeof A=="function"?A(n,y):A,E=L===!0||typeof L=="number"&&n<L||typeof L=="function"&&L(n,y);if(t||!E){h(y);return}n++,(k=e.onFail)==null||k.call(e,n,y),Ou(w).then(()=>u()?void 0:p()).then(()=>{t?h(y):C()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?C():p().then(C),s)}}var Tu=e=>setTimeout(e,0);function Du(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Tu;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Fo=Du(),it,ti,Zu=(ti=class{constructor(){q(this,it)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cr(this.gcTime)&&I(this,it,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bt?1/0:5*60*1e3))}clearGcTimeout(){v(this,it)&&(clearTimeout(v(this,it)),I(this,it,void 0))}},it=new WeakMap,ti),It,Nt,ge,at,ne,y1,ct,me,Oe,ni,Ff=(ni=class extends Zu{constructor(t){super();q(this,me);q(this,It);q(this,Nt);q(this,ge);q(this,at);q(this,ne);q(this,y1);q(this,ct);I(this,ct,!1),I(this,y1,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,at,t.client),I(this,ge,v(this,at).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,It,ju(this.options)),this.state=t.state??v(this,It),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,ne))==null?void 0:t.promise}setOptions(t){this.options={...v(this,y1),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,ge).remove(this)}setData(t,n){const r=vr(this.state.data,t,this.options);return X(this,me,Oe).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,me,Oe).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=v(this,ne))==null?void 0:r.promise;return(o=v(this,ne))==null||o.cancel(t),n?n.then(b1).catch(b1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,It))}isActive(){return this.observers.some(t=>be(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ma||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Pa(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ne))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ne))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,ge).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,ne)&&(v(this,ct)?v(this,ne).cancel({revert:!0}):v(this,ne).cancelRetry()),this.scheduleGc()),v(this,ge).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,me,Oe).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,ne))return v(this,ne).continueRetry(),v(this,ne).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(I(this,ct,!0),r.signal)})},s=()=>{const f=Hu(this.options,n),h={client:v(this,at),queryKey:this.queryKey,meta:this.meta};return o(h),I(this,ct,!1),this.options.persister?this.options.persister(f,h,this):f(h)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:v(this,at),state:this.state,fetchFn:s};o(i),(c=this.options.behavior)==null||c.onFetch(i,this),I(this,Nt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&X(this,me,Oe).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=f=>{var h,p,C,g;Dn(f)&&f.silent||X(this,me,Oe).call(this,{type:"error",error:f}),Dn(f)||((p=(h=v(this,ge).config).onError)==null||p.call(h,f,this),(g=(C=v(this,ge).config).onSettled)==null||g.call(C,this.state.data,f,this)),this.scheduleGc()};return I(this,ne,Fu({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,p,C,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){a(b);return}(p=(h=v(this,ge).config).onSuccess)==null||p.call(h,f,this),(g=(C=v(this,ge).config).onSettled)==null||g.call(C,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,h)=>{X(this,me,Oe).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{X(this,me,Oe).call(this,{type:"pause"})},onContinue:()=>{X(this,me,Oe).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),v(this,ne).start()}},It=new WeakMap,Nt=new WeakMap,ge=new WeakMap,at=new WeakMap,ne=new WeakMap,y1=new WeakMap,ct=new WeakMap,me=new WeakSet,Oe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ia(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Dn(o)&&o.revert&&v(this,Nt)?{...v(this,Nt),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,ge).notify({query:this,type:"updated",action:t})})},ni);function Ia(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Va(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ju(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ce,j,v1,ae,lt,Ft,Ue,Je,w1,Tt,Dt,ut,dt,We,Zt,G,l1,xr,Lr,Ar,Sr,Er,Rr,Pr,Na,ri,$u=(ri=class extends Io{constructor(t,n){super();q(this,G);q(this,ce);q(this,j);q(this,v1);q(this,ae);q(this,lt);q(this,Ft);q(this,Ue);q(this,Je);q(this,w1);q(this,Tt);q(this,Dt);q(this,ut);q(this,dt);q(this,We);q(this,Zt,new Set);this.options=n,I(this,ce,t),I(this,Je,null),I(this,Ue,wr()),this.options.experimental_prefetchInRender||v(this,Ue).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,j).addObserver(this),Ks(v(this,j),this.options)?X(this,G,l1).call(this):this.updateResult(),X(this,G,Sr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kr(v(this,j),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kr(v(this,j),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,G,Er).call(this),X(this,G,Rr).call(this),v(this,j).removeObserver(this)}setOptions(t){const n=this.options,r=v(this,j);if(this.options=v(this,ce).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof be(this.options.enabled,v(this,j))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,G,Pr).call(this),v(this,j).setOptions(this.options),n._defaulted&&!br(this.options,n)&&v(this,ce).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,j),observer:this});const o=this.hasListeners();o&&Gs(v(this,j),r,this.options,n)&&X(this,G,l1).call(this),this.updateResult(),o&&(v(this,j)!==r||be(this.options.enabled,v(this,j))!==be(n.enabled,v(this,j))||$1(this.options.staleTime,v(this,j))!==$1(n.staleTime,v(this,j)))&&X(this,G,xr).call(this);const s=X(this,G,Lr).call(this);o&&(v(this,j)!==r||be(this.options.enabled,v(this,j))!==be(n.enabled,v(this,j))||s!==v(this,We))&&X(this,G,Ar).call(this,s)}getOptimisticResult(t){const n=v(this,ce).getQueryCache().build(v(this,ce),t),r=this.createResult(n,t);return Uu(this,r)&&(I(this,ae,r),I(this,Ft,this.options),I(this,lt,v(this,j).state)),r}getCurrentResult(){return v(this,ae)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){v(this,Zt).add(t)}getCurrentQuery(){return v(this,j)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,ce).defaultQueryOptions(t),r=v(this,ce).getQueryCache().build(v(this,ce),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,G,l1).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ae)))}createResult(t,n){var N;const r=v(this,j),o=this.options,s=v(this,ae),i=v(this,lt),a=v(this,Ft),u=t!==r?t.state:v(this,v1),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const V=this.hasListeners(),J=!V&&Ks(t,n),W=V&&Gs(t,r,n,o);(J||W)&&(f={...f,...Ia(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:C,errorUpdatedAt:g,status:b}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let V;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(V=s.data,y=!0):V=typeof n.placeholderData=="function"?n.placeholderData((N=v(this,Dt))==null?void 0:N.state.data,v(this,Dt)):n.placeholderData,V!==void 0&&(b="success",p=vr(s==null?void 0:s.data,V,n),h=!0)}if(n.select&&p!==void 0&&!y)if(s&&p===(i==null?void 0:i.data)&&n.select===v(this,w1))p=v(this,Tt);else try{I(this,w1,n.select),p=n.select(p),p=vr(s==null?void 0:s.data,p,n),I(this,Tt,p),I(this,Je,null)}catch(V){I(this,Je,V)}v(this,Je)&&(C=v(this,Je),p=v(this,Tt),g=Date.now(),b="error");const L=f.fetchStatus==="fetching",A=b==="pending",w=b==="error",E=A&&L,k=p!==void 0,S={status:b,fetchStatus:f.fetchStatus,isPending:A,isSuccess:b==="success",isError:w,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:f.dataUpdatedAt,error:C,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:L,isRefetching:L&&!A,isLoadingError:w&&!k,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&k,isStale:To(t,n),refetch:this.refetch,promise:v(this,Ue)};if(this.options.experimental_prefetchInRender){const V=z=>{S.status==="error"?z.reject(S.error):S.data!==void 0&&z.resolve(S.data)},J=()=>{const z=I(this,Ue,S.promise=wr());V(z)},W=v(this,Ue);switch(W.status){case"pending":t.queryHash===r.queryHash&&V(W);break;case"fulfilled":(S.status==="error"||S.data!==W.value)&&J();break;case"rejected":(S.status!=="error"||S.error!==W.reason)&&J();break}}return S}updateResult(){const t=v(this,ae),n=this.createResult(v(this,j),this.options);if(I(this,lt,v(this,j).state),I(this,Ft,this.options),v(this,lt).data!==void 0&&I(this,Dt,v(this,j)),br(n,t))return;I(this,ae,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!v(this,Zt).size)return!0;const i=new Set(s??v(this,Zt));return this.options.throwOnError&&i.add("error"),Object.keys(v(this,ae)).some(a=>{const c=a;return v(this,ae)[c]!==t[c]&&i.has(c)})};X(this,G,Na).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,G,Sr).call(this)}},ce=new WeakMap,j=new WeakMap,v1=new WeakMap,ae=new WeakMap,lt=new WeakMap,Ft=new WeakMap,Ue=new WeakMap,Je=new WeakMap,w1=new WeakMap,Tt=new WeakMap,Dt=new WeakMap,ut=new WeakMap,dt=new WeakMap,We=new WeakMap,Zt=new WeakMap,G=new WeakSet,l1=function(t){X(this,G,Pr).call(this);let n=v(this,j).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(b1)),n},xr=function(){X(this,G,Er).call(this);const t=$1(this.options.staleTime,v(this,j));if(bt||v(this,ae).isStale||!Cr(t))return;const r=Pa(v(this,ae).dataUpdatedAt,t)+1;I(this,ut,setTimeout(()=>{v(this,ae).isStale||this.updateResult()},r))},Lr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,j)):this.options.refetchInterval)??!1},Ar=function(t){X(this,G,Rr).call(this),I(this,We,t),!(bt||be(this.options.enabled,v(this,j))===!1||!Cr(v(this,We))||v(this,We)===0)&&I(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||Oa.isFocused())&&X(this,G,l1).call(this)},v(this,We)))},Sr=function(){X(this,G,xr).call(this),X(this,G,Ar).call(this,X(this,G,Lr).call(this))},Er=function(){v(this,ut)&&(clearTimeout(v(this,ut)),I(this,ut,void 0))},Rr=function(){v(this,dt)&&(clearInterval(v(this,dt)),I(this,dt,void 0))},Pr=function(){const t=v(this,ce).getQueryCache().build(v(this,ce),this.options);if(t===v(this,j))return;const n=v(this,j);I(this,j,t),I(this,v1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Na=function(t){Fo.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,ae))}),v(this,ce).getQueryCache().notify({query:v(this,j),type:"observerResultsUpdated"})})},ri);function zu(e,t){return be(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ks(e,t){return zu(e,t)||e.state.data!==void 0&&kr(e,t,t.refetchOnMount)}function kr(e,t,n){if(be(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&To(e,t)}return!1}function Gs(e,t,n,r){return(e!==t||be(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&To(e,n)}function To(e,t){return be(t.enabled,e)!==!1&&e.isStaleByTime($1(t.staleTime,e))}function Uu(e,t){return!br(e.getCurrentResult(),t)}function Ju(e){return JSON.stringify(e,(t,n)=>Wu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function Wu(e){if(!Xs(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Xs(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xs(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fa(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:s,maxPages:i,meta:a,networkMode:c,queryFn:u,queryHash:d,queryKey:f,queryKeyHashFn:h,retry:p,retryDelay:C,structuralSharing:g,getPreviousPageParam:b,getNextPageParam:y,initialPageParam:L,_optimisticResults:A,enabled:w,notifyOnChangeProps:E,placeholderData:k,refetchInterval:P,refetchIntervalInBackground:S,refetchOnMount:N,refetchOnReconnect:V,refetchOnWindowFocus:J,retryOnMount:W,select:z,staleTime:K,suspense:$,throwOnError:Z,config:F,connector:x,query:D,...U}=e;return U}function qu(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("name is required");return vu(e,{...s,name:r})},queryKey:Ku(t)}}function Ku(e={}){return["ensAvatar",Fa(e)]}function Gu(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("address is required");return wu(e,{...s,address:r})},queryKey:Xu(t)}}function Xu(e={}){return["ensName",Fa(e)]}var Ta=m.createContext(void 0),Yu=e=>{const t=m.useContext(Ta);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tf=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l(Ta.Provider,{value:e,children:t})),Da=m.createContext(!1),Qu=()=>m.useContext(Da);Da.Provider;function _u(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ed=m.createContext(_u()),td=()=>m.useContext(ed),nd=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rd=e=>{m.useEffect(()=>{e.clearReset()},[e])},od=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Vu(n,[e.error,r])),sd=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},id=(e,t)=>e.isLoading&&e.isFetching&&!t,ad=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ys=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cd(e,t,n){var f,h,p,C,g;const r=Yu(),o=Qu(),s=td(),i=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,i),i._optimisticResults=o?"isRestoring":"optimistic",sd(i),nd(i,s),rd(s);const a=!r.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(r,i)),u=c.getOptimisticResult(i),d=!o&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(b=>{const y=d?c.subscribe(Fo.batchCalls(b)):b1;return c.updateResult(),y},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),ad(i,u))throw Ys(i,c,s);if(od({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((C=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||C.call(p,i,u),i.experimental_prefetchInRender&&!bt&&id(u,o)){const b=a?Ys(i,c,s):(g=r.getQueryCache().get(i.queryHash))==null?void 0:g.promise;b==null||b.catch(b1).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function ld(e,t){return cd(e,$u)}function Za(e){const t=ld({...e,queryKeyHashFn:Ju});return t.queryKey=e.queryKey,t}function ja(e={}){const t=Bo(e);return t0(n=>Lu(t,{onChange:n}),()=>Js(t),()=>Js(t))}function ud(e={}){const{name:t,query:n={}}=e,r=Bo(e),o=ja({config:r}),s=qu(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return Za({...n,...s,enabled:i})}function $a(e={}){const{address:t,query:n={}}=e,r=Bo(e),o=ja({config:r}),s=Gu(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return Za({...n,...s,enabled:i})}function dd(e){const{address:t,chainId:n=1,size:r="14px"}=e,o={width:r,height:r},s=$a({address:t,chainId:n}),i=s.data??void 0,a=ud({name:i}),c=a.data??V8;return s.isLoading||a.isLoading?l("div",{className:"fade-out flex-none animate-pulse rounded-full bg-gray-400",style:o}):l("img",{alt:"ENS Avatar",className:"flex-none rounded-full object-contain",src:c,style:o})}const fd="/assets/home-bg-BRYzhkhi.avif",hd="/assets/home-bg-BEhF9NuW.png";function pd(){return H("picture",{className:"pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain",children:[l("source",{srcSet:fd,type:"image/avif"}),l("img",{src:hd,alt:"background",className:"object-contain"})]})}const gd=function(t){const{children:n,containerClassName:r}=t;return l("div",{className:fe("container relative mx-auto flex h-full flex-col",r),children:H("div",{className:"m-8 flex flex-wrap justify-center gap-4 pt-12",children:[l(pd,{}),n]})})},Cd="/assets/renown-short-hover-BiSLBV7L.png",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtmSURBVHgB7Z3dbtvmGcefl5LsqHYCq0C6tEUCZ0kDzAFqd0NTYAmweAfr0YD0CrpeQboriH0H6RUsu4ChAYodtCdJD3LQBGttILEBJ4tdJ2uzBoi0yIpsi+S790+ZDkmREilSHySfX6FKpkgliH5+nuf9pKAEkFLO1Bu7VzRNzEuiWfXzglDHSIgZYsYC9b1sCaEeJFZMU66WCnS7XC5vUUwE9Qmk2dndvar+ZpetB5NCxIr6Hr+II1NkgQ7FMeTnHGGygxLhRkGj5agiRRKo3mxeY3EyjkZLR8vl5bCnhxKo2WzOGqb4UpJcCDpH1T+E/wpKY+3gU4XoO0MyCaKyhvVsqifTNNWzVM8y8Hz1rW2pr3ExTDTq+Q3vNPc/lYZ+3S/qwI+iVlDSCJYlZcgDiVqGQdLXJVGTJD47NjV5s9vndP3W6429a8rZpY6LIE6hoB4aMenHMMxgkXqktECBguSBNHhwxMkWiEgt3SRDpbgOukjka8HLxt4VQeaX3uOlIkedrKPr7WjkRWiFv0yXJ/7ecdx7AAWzbsgfnDUPgs1EsWgVykz2QTTaa+melCZqRU1+4C2sO8KJSoe3vAXzZInlyRMoTxAw3MgZXbXEvee6BELdg6EI5zGkLa538gcCRkk1lNzIhXqjseQ8cmiGlbpM2nS+WdA0migViMkvKKx1V00kavr+5OlKRdTw02EEUqnrmvNCBJ1SkQvmvFMsauROQHKmOPHqc/sn6y2/6MMtLsams2X2OgpZhrQM92h6u6OQ5WHadItCliWqSL7quqDAdQ/jpqB5nBDaH6wnv/R1ZKLILS/GBbqEdvdarmP6/pGK5k1f1qg6y8N4gBHevsBSafeKOuSeoqGxPEwAXjcwvUfVQGLedZLGxTPjj9cNKWhWw/9cJ3EAYgLwuqHaZvM4Nus+zAYxAXSkMDGj9TiHYQ7pVEP1BxEzFL6+9T3tvGrS4u/fpzcrRykrcMU8BLb/85yePa/STmOX1h49oSzBAg2BJ0qgw9dPn1OWYIEGzH5LtyKQ8+dnv1QpK7BAA2ZbRRxI42T1wSZlBRZowKw/2u44hnpov9WiLMACDRCI8qK64/ve2sZTygIs0ABZvf848L31je1MRCEWaEA82vxZRaBa4Puoi1bvp78WYoEGxOra457nrD18kvoWGQs0AFYfPLY6DcOdm+4oxAIlzE6jSSsRpEChvbaR3t5pFihBUBR/fft7isq9lY3UpjIWKEHufLceOnV1XHtvzYpeaYMFSgjUPds/9T/OBfEQvdLWtGeBEgDyrCRQDFsS3UqXRCxQTJKSx+ZFbSdVErFAMbi38jBReWwg0Vff3E1FTcQC9YHV2lJRYm1jmwaFXRONu0Si3mi69qEqT5aICQb9NnfurvXd2uqHhfO/pvnzp2kcaHpWp7JAIUHUWX2wNdCo0403Z6Zp8eL7ND1VplHCAvXBuuopXlHFsndi2Cg4O/u2FY1GJRILFBJEnEebz2j94fZQ01UYpqeO0InjlZGIxAL1ADUOJsFjOsY4RJxenHr3OJ05/Tadeuc4DQMWKAC0dtqtnvGKNmGZKBXp4oU5S6hB4hWIm/EHoO8lrfIAa/XHT8NfMsQCHXDirYqqK9J7FytEoLmzp2jYcArzgCiEqRWYUTjuEQnSWPWPSlsoqocB10ARwIJATH7vNrd5FECc35w7SXPnTlmvhwkL1AdokY1DRBqlODYsUAzQmTiqOcwnVTP90kdzIxPHhgWKSXuQ819Di0YQ5sMPzlk90OMAC5QQd1c2rCGOQYIe548v/856Hhe8AvEGU31yYeGcFR0GldLQpbB4aX7kKasXLFAMMM0CJC3RGZWuLqle5TQwcoGGUUsMMgUkLVGa5AEjF+gf/7xDwwQyTb9RpomJIlVmpg96oON1wiUlEeb8pEkekLsUhohnRz10FNpfOiRCr26/rR1IhPGofgtriL14cZ7SBtdAB2AaBx5YZXF29p2+ppBCov/+UlMDs3WKyri1tsLCg6keEJ3QYYjU+mjr50jXosWEaadRW04fLryXSnkACxQARMLk+ah1DUSYP6iJwoDmOoYm0goL1ANEI4gUhTk1XhV2asjFC+cpzbBAIUAqiypRmCiEc9KaumxYoJBAoij7+PSaoAZxxmV8Kw4sUASwj8+LavgWVrcodEa19NIefQALFBGshw9LtyiUhegDWKCIWP1FEXYT84tCGK7IQvQBqe1IxBdwJuRvcbW6Qy/+V09s3A1Ne0SXMODWTugXcq4xO3s6G9EHpFcgNZ61EKG/BSQ1NRU9zVi5OlHqPXfKnvhuD3HYq0qzQq5SGH7z//ynj2LXH+077oSfaO9cNfqrDMkDclcD2Ss4464BQy0UFqS7k+8et0bbo0bNcSe3g6noAf7qm+/6Xv8eNQ3+UY2RZZHctsKsIjxGMVvtY8Q9i+S6GR9nR4s0r6NPklwLlKW7J4+KXAs07ise0gD3RDOxyLVAadiBbNzJtUAvYrSksjKWFZdcC/TvzWhznp1gKIXJsUDYEzFKb7KXSmWamBwLtP7waay+nCwNiMYhlwJh7VfcHedPvJXe/RSTJFcdIdbCwfubsVIXwDykMFM58kBqBdp51bSW3IShgY0zlTRJDT9kaUJYXNIrkJJhFNvNofbh+uc13BMdkYsp2z1j0LBAEcjCQsCkYYFCghmMC2Ny07dxggUKgXWzt0vp27tnGPB8hh6My/7M4wr/qwQAYbDJVJq3XhkGLJAPuJ0AVk9w1OkN10A+oJeZ5QkHC+QD7tCDladMb1L7a4be4I8Xfxv4fpwbo2Cm4trGU262hyCzESjuLZE4CoUjswLZ99bqFzsKMd3JdA3EUWjwZFogjkKDJ/OtMI5CgyXzAtkbPPULR6Hu5KIfaO69eMMRHIWCyYVA7W3l+p8Ez1EomNz0RM/H3BmMo5A/uRGo187xveAo5E+uxsI4CiVPrgTiKJQ8uRuN5yiULLkTiKNQsuRyPhDulBMHjkKvyaVAWJocZ30XR6HX5HZG4pmYtzvgKNQmtwLFHWTlKNQmtwLFneoBOArlfFI9R6H4iHqjKZ0HypO8cRITTHPPHXFVBJKuG19JSQzji58amiRR630awygzTLcbgmhLE0KsOA+a7A8TgFcNKZRAZJo/Og8apkkM44fpdcOUq0hhrggkuQhiAjA9bsAdzWjt3nSdpHIYO8R4QWAxPfWNUaDbWqVSqSmVbjvf0E2DGMaJ2VFAy5VKubzV7kiU9K3zTUPnOohx0zLcTphSfIFnSyBd373u7A+Ca7rBUYhpYyh5vLUx0heeLYGsNGa2jbLRdZNrIcYSxxt9BGk3kL7arw+oVqszxYnJTXXocLpesahRqVAgJr/s64YVgZzoGp22BTocTA2KQpzK8ouuxPHKo6qfZVseILwX1Ru7P6jAteA8NqlGrDVNEJMfkLp29933lBWq53n6jbJr27aO6Ry6Jj/xDrBi2gJ3MOYHQzXZ91rezCNrLUGL3nM7BEJ4klL81XWpesBGTmfZB2nLL2BIKnzmTF02vhPKjk2Xb5BJy97jLVUToajiaJQ9rNaW+m7x6MRcPjY1edPvuq6FTb3eXFKKXeu4SCXDYkGzHkz6QdTRffp62pjLR6emloKu7VkZv3zZuCIK4m/O5v3hxQciFVSBjddMeoAsuolWlgwQR9aEKmWmkY26EOpbrzabsyVJt9SfMxt0DlppmmiLhNf4YJZqPLAFQXGMEXW/gVEnmCPWEvITv5qn41yKQFBKY7KCtPoCjx4tL4W9InKIQDQqGOaSENqnxGSEtjj69JHrFeGd4tydvnNMWyS6rMLdVW/HI5MShBoQNejbfsR5/REJcCiTJZKYl4Jm1QfPEjMmyBoWT2AOj+rQ+REzCY2pIzf7lcbJ/wH9VD8KK3ri6QAAAABJRU5ErkJggg==",bd=({onLogin:e})=>{const t=l(P8,{onLogin:e});return l(y2,{content:t,children:H("div",{className:fe("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold leading-10 text-gray-600",e?"cursor-pointer":"cursor-wait"),children:[l("img",{width:42,height:42,loading:"lazy",className:"group-hover/sidebar-footer:hidden",src:md,alt:"Renown Login"}),l("img",{width:42,height:42,loading:"lazy",className:"hidden group-hover/sidebar-footer:block",src:Cd,alt:"Renown Login Hover"})]})})},yd=({address:e,etherscanUrl:t,onDisconnect:n})=>{const{data:r}=$a({address:e}),s=l(M8,{address:e,username:r,onDisconnect:n,etherscanUrl:t});return l(y2,{content:s,children:l("div",{className:"flex items-center justify-center rounded-sm",children:l(dd,{address:e,size:"40px"})})})},vd=({address:e,className:t,onLogin:n,onClickSettings:r,onDisconnect:o,etherscanUrl:s="",...i})=>H(S8,{...i,className:fe("flex flex-col gap-2 border-t border-gray-300 px-2 py-4",t),children:[l("div",{children:e?l(yd,{address:e,onDisconnect:o,etherscanUrl:s}):l(bd,{onLogin:n})}),H("button",{"aria-label":"Settings",type:"button",className:fe("mt-3 flex w-full items-center justify-center outline-none",r?"cursor-pointer":"cursor-wait"),onClick:r,children:[l(ft,{className:"text-gray-600",name:"Settings"}),l("span",{className:"hidden text-sm font-semibold leading-6 text-gray-800",children:"Settings"})]})]}),wd=({onClick:e,className:t,children:n,...r})=>l(A8,{...r,className:fe("flex justify-center gap-4 border-b border-gray-300 py-4",t),children:l("button",{"aria-label":"Home",className:e?"cursor-pointer":"cursor-wait",onClick:e,type:"button",children:l(ft,{className:"text-gray-600",name:"ConnectSmall",size:24})})}),xd=({onClick:e,address:t,headerContent:n,onClickSettings:r,maxWidth:o="304px",minWidth:s="58px",onLogin:i,onDisconnect:a,etherscanUrl:c,...u})=>H(E8,{...u,maxWidth:o,minWidth:s,children:[H(R8,{children:[l(wd,{onClick:e,children:n}),l("div",{className:"flex flex-col",children:u.children})]}),l(vd,{address:t,onClickSettings:r,onLogin:i,onDisconnect:a,etherscanUrl:c})]}),Ld=window.location.pathname==="/",Ad=250,Qs=()=>{const[e,t]=x1(!1);return nn(()=>{const n=setTimeout(()=>{t(!0)},Ad);return()=>clearTimeout(n)},[]),e?l("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:l("div",{className:"rounded-full overflow-hidden shadow-lg animate-pulse",children:l(H8,{})})}):null},Sd=()=>H("div",{className:"flex h-screen",children:[l(xd,{className:"animate-pulse",onLogin:void 0,onDisconnect:void 0,onClickSettings:void 0,address:void 0}),Ld?l(gd,{children:l(Qs,{})}):l(Qs,{})]}),Ed=si(()=>Mr(()=>import("./app-DemhJBtL.js").then(e=>e.d5),__vite__mapDeps([3,2,1,4]))),Rd=si(()=>Mr(()=>import("./cookie-banner-RRGFlN77.js"),__vite__mapDeps([5,3,2,1,4])).then(e=>({default:e.CookieBanner}))),Pd=H(n0,{children:[l(Zn,{fallback:l(Sd,{}),name:"AppLoader",children:l(Ed,{})}),l(Zn,{name:"CookieBanner",children:l(Rd,{})})]});function kd(e){Ka(e).render(Pd)}const za=document.getElementById("app");if(!za)throw new Error("#app element not found!");kd(za);const Df=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{q2 as $,Di as A,C4 as B,L9 as C,pi as D,qr as E,Ci as F,E2 as G,re as H,ft as I,j8 as J,$7 as K,Ce as L,Wr as M,dn as N,Y as O,Te as P,pt as Q,x9 as R,Y7 as S,gn as T,to as U,J7 as V,G7 as W,J2 as X,eo as Y,ic as Z,tc as _,Fd as a,fo as a$,X7 as a0,C7 as a1,nf as a2,ks as a3,B2 as a4,g1 as a5,u7 as a6,V2 as a7,m7 as a8,rf as a9,Rl as aA,Gd as aB,Xd as aC,ef as aD,Po as aE,W8 as aF,D7 as aG,_d as aH,hf as aI,pf as aJ,Ns as aK,Kr as aL,ha as aM,zl as aN,R7 as aO,Fl as aP,kf as aQ,Pf as aR,Rf as aS,xc as aT,Wt as aU,He as aV,Sf as aW,va as aX,Ef as aY,Dl as aZ,H2 as a_,Jr as aa,df as ab,Gc as ac,al as ad,na as ae,Lf as af,ba as ag,Tl as ah,e1 as ai,Oo as aj,Mo as ak,Ll as al,wf as am,wl as an,Ca as ao,ac as ap,en as aq,ko as ar,Mt as as,pa as at,ql as au,E1 as av,Yd as aw,Fe as ax,dl as ay,fn as az,Hr as b,mu as b$,P2 as b0,hn as b1,Cf as b2,bf as b3,go as b4,Ro as b5,Eo as b6,So as b7,Ao as b8,Lo as b9,ec as bA,Q1 as bB,_1 as bC,Jt as bD,ff as bE,uf as bF,k7 as bG,Jl as bH,Kl as bI,gf as bJ,Xl as bK,tf as bL,Y1 as bM,sf as bN,of as bO,xf as bP,$2 as bQ,Mf as bR,Kd as bS,af as bT,gl as bU,yu as bV,Gl as bW,W2 as bX,pu as bY,Cu as bZ,gu as b_,xo as ba,wo as bb,vo as bc,yo as bd,bo as be,mo as bf,Co as bg,po as bh,ho as bi,uo as bj,lo as bk,co as bl,ao as bm,pn as bn,io as bo,so as bp,oo as bq,ro as br,mf as bs,Ct as bt,M7 as bu,Qe as bv,p1 as bw,cf as bx,Qd as by,lf as bz,di as c,Io as c0,Mu as c1,Ff as c2,Fo as c3,Vf as c4,Zu as c5,Fu as c6,Bf as c7,b1 as c8,Hu as c9,ld as cA,no as cB,pl as cC,Af as cD,xd as cE,gd as cF,H8 as cG,dd as cH,Df as cI,Nf as ca,If as cb,Oa as cc,Ha as cd,$1 as ce,Hf as cf,mr as cg,No as ch,Ma as ci,br as cj,Yu as ck,Vu as cl,f4 as cm,jd as cn,V6 as co,Zd as cp,h4 as cq,p4 as cr,g4 as cs,zd as ct,vf as cu,yf as cv,Yt as cw,Of as cx,Tf as cy,Nd as cz,g3 as d,qe as e,M9 as f,Td as g,jt as h,Mi as i,$r as j,Zi as k,X0 as l,N9 as m,s3 as n,Gi as o,A9 as p,ui as q,Dd as r,X3 as s,fe as t,_e as u,l2 as v,R as w,C1 as x,Xr as y,Qt as z};
|
|
83
|
-
//# sourceMappingURL=index-
|
|
81
|
+
`);super(a,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:`ox@${kl()}`}),this.cause=n.cause,this.details=r,this.docs=i,this.docsPath=o,this.shortMessage=t}walk(t){return ma(this,t)}};function ma(e,t){return t!=null&&t(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause?ma(e.cause,t):t?null:e}const Ml="#__bigint";function Ol(e,t,n){return JSON.stringify(e,(r,o)=>typeof o=="bigint"?o.toString()+Ml:o,n)}function ba(e,t){if(Wt(e)>t)throw new Zl({givenSize:Wt(e),maxSize:t})}function Hl(e,t){if(typeof t=="number"&&t>0&&t>Wt(e)-1)throw new wa({offset:t,position:"start",size:Wt(e)})}function Vl(e,t,n){if(typeof t=="number"&&typeof n=="number"&&Wt(e)!==n-t)throw new wa({offset:n,position:"end",size:Wt(e)})}function ya(e,t={}){const{dir:n,size:r=32}=t;if(r===0)return e;const o=e.replace("0x","");if(o.length>r*2)throw new jl({size:Math.ceil(o.length/2),targetSize:r,type:"Hex"});return`0x${o[n==="right"?"padEnd":"padStart"](r*2,"0")}`}const Bl=new TextEncoder,Il=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Nl(e,t={}){const{strict:n=!1}=t;if(!e)throw new $s(e);if(typeof e!="string")throw new $s(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new zs(e);if(!e.startsWith("0x"))throw new zs(e)}function Sf(...e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}function Ef(e,t={}){const n=`0x${Number(e)}`;return typeof t.size=="number"?(ba(n,t.size),va(n,t.size)):n}function Fl(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=Il[e[o]];const r=`0x${n}`;return typeof t.size=="number"?(ba(r,t.size),Tl(r,t.size)):r}function He(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let s;r?n?s=(1n<<BigInt(r)*8n-1n)-1n:s=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i=typeof s=="bigint"&&n?-s-1n:0;if(s&&o>s||o<i){const u=typeof e=="bigint"?"n":"";throw new Dl({max:s?`${s}${u}`:void 0,min:`${i}${u}`,signed:n,size:r,value:`${e}${u}`})}const c=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?va(c,r):c}function Rf(e,t={}){return Fl(Bl.encode(e),t)}function va(e,t){return ya(e,{dir:"left",size:t})}function Tl(e,t){return ya(e,{dir:"right",size:t})}function Pf(e,t,n,r={}){const{strict:o}=r;Hl(e,t);const s=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return o&&Vl(s,t,n),s}function Wt(e){return Math.ceil((e.length-2)/2)}function kf(e,t={}){const{strict:n=!1}=t;try{return Nl(e,{strict:n}),!0}catch{return!1}}class Dl extends e1{constructor({max:t,min:n,signed:r,size:o,value:s}){super(`Number \`${s}\` is not in safe${o?` ${o*8}-bit`:""}${r?" signed":" unsigned"} integer range ${t?`(\`${n}\` to \`${t}\`)`:`(above \`${n}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class $s extends e1{constructor(t){super(`Value \`${typeof t=="object"?Ol(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class zs extends e1{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class Zl extends e1{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed \`${n}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class wa extends e1{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class jl extends e1{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function $l(e){return{address:e.address,amount:He(e.amount),index:He(e.index),validatorIndex:He(e.validatorIndex)}}function zl(e){return{...typeof e.baseFeePerGas=="bigint"&&{baseFeePerGas:He(e.baseFeePerGas)},...typeof e.blobBaseFee=="bigint"&&{blobBaseFee:He(e.blobBaseFee)},...typeof e.feeRecipient=="string"&&{feeRecipient:e.feeRecipient},...typeof e.gasLimit=="bigint"&&{gasLimit:He(e.gasLimit)},...typeof e.number=="bigint"&&{number:He(e.number)},...typeof e.prevRandao=="bigint"&&{prevRandao:He(e.prevRandao)},...typeof e.time=="bigint"&&{time:He(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map($l)}}}const Ul="0x82ad56cb",Jl="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Wl="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Mf="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";function ql(e,{docsPath:t,...n}){const r=(()=>{const o=G7(e,n);return o instanceof J2?e:o})();return new gl(r,{docsPath:t,...n})}function Kl(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const Fn=new Map;function Gl({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const s=async()=>{const d=c();i();const f=d.map(({args:h})=>h);f.length!==0&&e(f).then(h=>{o&&Array.isArray(h)&&h.sort(o);for(let p=0;p<d.length;p++){const{resolve:C}=d[p];C==null||C([h[p],h])}}).catch(h=>{for(let p=0;p<d.length;p++){const{reject:C}=d[p];C==null||C(h)}})},i=()=>Fn.delete(t),a=()=>c().map(({args:d})=>d),c=()=>Fn.get(t)||[],u=d=>Fn.set(t,[...c(),d]);return{flush:i,async schedule(d){const{promise:f,resolve:h,reject:p}=Kl();return(n==null?void 0:n([...a(),d]))&&s(),c().length>0?(u({args:d,resolve:h,reject:p}),f):(u({args:d,resolve:h,reject:p}),setTimeout(s,r),f)}}}async function Xl(e,t){var W,z,K,$;const{account:n=e.account,batch:r=!!((W=e.batch)!=null&&W.multicall),blockNumber:o,blockTag:s="latest",accessList:i,blobs:a,blockOverrides:c,code:u,data:d,factory:f,factoryData:h,gas:p,gasPrice:C,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:L,to:A,value:w,stateOverride:E,...k}=t,P=n?eo(n):void 0;if(u&&(f||h))throw new R("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(u&&A)throw new R("Cannot provide both `code` & `to` as parameters.");const S=u&&d,N=f&&h&&A&&d,V=S||N,J=S?_l({code:u,data:d}):N?eu({data:d,factory:f,factoryData:h,to:A}):d;try{tc(t);const F=(typeof o=="bigint"?Y(o):void 0)||s,x=c?zl(c):void 0,D=ic(E),U=($=(K=(z=e.chain)==null?void 0:z.formatters)==null?void 0:K.transactionRequest)==null?void 0:$.format,Pe=(U||q2)({...X7(k,{format:U}),from:P==null?void 0:P.address,accessList:i,blobs:a,data:J,gas:p,gasPrice:C,maxFeePerBlobGas:g,maxFeePerGas:b,maxPriorityFeePerGas:y,nonce:L,to:V?void 0:A,value:w});if(r&&Yl({request:Pe})&&!D&&!x)try{return await Ql(e,{...Pe,blockNumber:o,blockTag:s})}catch(ie){if(!(ie instanceof z2)&&!(ie instanceof Qn))throw ie}const _=(()=>{const ie=[Pe,F];return D&&x?[...ie,D,x]:D?[...ie,D]:x?[...ie,{},x]:ie})(),te=await e.request({method:"eth_call",params:_});return te==="0x"?{data:void 0}:{data:te}}catch(Z){const F=tu(Z),{offchainLookup:x,offchainLookupSignature:D}=await Mr(async()=>{const{offchainLookup:U,offchainLookupSignature:se}=await import("./ccip-t4nNoZXr.js");return{offchainLookup:U,offchainLookupSignature:se}},__vite__mapDeps([0,1,2]));if(e.ccipRead!==!1&&(F==null?void 0:F.slice(0,10))===D&&A)return{data:await x(e,{data:F,to:A})};throw V&&(F==null?void 0:F.slice(0,10))==="0x101bb98d"?new bl({factory:f}):ql(Z,{...t,account:P,chain:e.chain})}}function Yl({request:e}){const{data:t,to:n,...r}=e;return!(!t||t.startsWith(Ul)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Ql(e,t){var g;const{batchSize:n=1024,wait:r=0}=typeof((g=e.batch)==null?void 0:g.multicall)=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:s="latest",data:i,multicallAddress:a,to:c}=t;let u=a;if(!u){if(!e.chain)throw new z2;u=Oo({blockNumber:o,chain:e.chain,contract:"multicall3"})}const f=(typeof o=="bigint"?Y(o):void 0)||s,{schedule:h}=Gl({id:`${e.uid}.${f}`,wait:r,shouldSplitBatch(b){return b.reduce((L,{data:A})=>L+(A.length-2),0)>n*2},fn:async b=>{const y=b.map(w=>({allowFailure:!0,callData:w.data,target:w.to})),L=Mo({abi:Ns,args:[y],functionName:"aggregate3"}),A=await e.request({method:"eth_call",params:[{data:L,to:u},f]});return ko({abi:Ns,args:[y],functionName:"aggregate3",data:A||"0x"})}}),[{returnData:p,success:C}]=await h({data:i,to:c});if(!C)throw new ha({data:p});return p==="0x"?{data:void 0}:{data:p}}function _l(e){const{code:t,data:n}=e;return $2({abi:aa(["constructor(bytes, bytes)"]),bytecode:Jl,args:[t,n]})}function eu(e){const{data:t,factory:n,factoryData:r,to:o}=e;return $2({abi:aa(["constructor(address, bytes, address, bytes)"]),bytecode:Wl,args:[o,t,n,r]})}function tu(e){var n;if(!(e instanceof R))return;const t=e.walk();return typeof(t==null?void 0:t.data)=="object"?(n=t.data)==null?void 0:n.data:t.data}async function en(e,t){const{abi:n,address:r,args:o,functionName:s,...i}=t,a=Mo({abi:n,args:o,functionName:s});try{const{data:c}=await gn(e,Xl,"call")({...i,data:a,to:r});return ko({abi:n,args:o,functionName:s,data:c||"0x"})}catch(c){throw Rl(c,{abi:n,address:r,args:o,docsPath:"/docs/contract/readContract",functionName:s})}}class nu extends R{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class c1 extends R{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class Ho extends R{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ru extends R{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const ou=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,su=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,iu=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,au=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function cu(e){try{const t=await fetch(e,{method:"HEAD"});if(t.status===200){const n=t.headers.get("content-type");return n==null?void 0:n.startsWith("image/")}return!1}catch(t){return typeof t=="object"&&typeof t.response<"u"||!globalThis.hasOwnProperty("Image")?!1:new Promise(n=>{const r=new Image;r.onload=()=>{n(!0)},r.onerror=()=>{n(!1)},r.src=e})}}function Us(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function xa({uri:e,gatewayUrls:t}){const n=iu.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=Us(t==null?void 0:t.ipfs,"https://ipfs.io"),o=Us(t==null?void 0:t.arweave,"https://arweave.net"),s=e.match(ou),{protocol:i,subpath:a,target:c,subtarget:u=""}=(s==null?void 0:s.groups)||{},d=i==="ipns:/"||a==="ipns/",f=i==="ipfs:/"||a==="ipfs/"||su.test(e);if(e.startsWith("http")&&!d&&!f){let p=e;return t!=null&&t.arweave&&(p=e.replace(/https:\/\/arweave.net/g,t==null?void 0:t.arweave)),{uri:p,isOnChain:!1,isEncoded:!1}}if((d||f)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if(i==="ar:/"&&c)return{uri:`${o}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let h=e.replace(au,"");if(h.startsWith("<svg")&&(h=`data:image/svg+xml;base64,${btoa(h)}`),h.startsWith("data:")||h.startsWith("{"))return{uri:h,isOnChain:!0,isEncoded:!1};throw new Ho({uri:e})}function La(e){if(typeof e!="object"||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new nu({data:e});return e.image||e.image_url||e.image_data}async function lu({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(o=>o.json());return await Vo({gatewayUrls:e,uri:La(n)})}catch{throw new Ho({uri:t})}}async function Vo({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=xa({uri:t,gatewayUrls:e});if(r||await cu(n))return n;throw new Ho({uri:t})}function uu(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,o]=t.split("/"),[s,i]=n.split(":"),[a,c]=r.split(":");if(!s||s.toLowerCase()!=="eip155")throw new c1({reason:"Only EIP-155 supported"});if(!i)throw new c1({reason:"Chain ID not found"});if(!c)throw new c1({reason:"Contract address not found"});if(!o)throw new c1({reason:"Token ID not found"});if(!a)throw new c1({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i),namespace:a.toLowerCase(),contractAddress:c,tokenID:o}}async function du(e,{nft:t}){if(t.namespace==="erc721")return en(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if(t.namespace==="erc1155")return en(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new ru({namespace:t.namespace})}async function fu(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?hu(e,{gatewayUrls:t,record:n}):Vo({uri:n,gatewayUrls:t})}async function hu(e,{gatewayUrls:t,record:n}){const r=uu(n),o=await du(e,{nft:r}),{uri:s,isOnChain:i,isEncoded:a}=xa({uri:o,gatewayUrls:t});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const u=a?atob(s.replace("data:application/json;base64,","")):s,d=JSON.parse(u);return Vo({uri:La(d),gatewayUrls:t})}let c=r.tokenID;return r.namespace==="erc1155"&&(c=c.replace("0x","").padStart(64,"0")),lu({gatewayUrls:t,uri:s.replace(/(?:0x)?{id}/,c)})}async function pu(e,t){const{blockNumber:n,blockTag:r,key:o,name:s,gatewayUrls:i,strict:a}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Oo({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c==null?void 0:c.ensTlds;if(d&&!d.some(f=>s.endsWith(f)))return null;try{const f={address:u,abi:ac,functionName:"resolve",args:[qr(Ca(s)),Mo({abi:Fs,functionName:"text",args:[Ll(s),o]}),i??[wl]],blockNumber:n,blockTag:r},p=await gn(e,en,"readContract")(f);if(p[0]==="0x")return null;const C=ko({abi:Fs,functionName:"text",data:p[0]});return C===""?null:C}catch(f){if(a)throw f;if(pa(f,"resolve"))return null;throw f}}async function gu(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:s,strict:i,universalResolverAddress:a}){const c=await gn(e,pu,"getEnsText")({blockNumber:t,blockTag:n,key:"avatar",name:o,universalResolverAddress:a,gatewayUrls:s,strict:i});if(!c)return null;try{return await fu(e,{record:c,gatewayUrls:r})}catch{return null}}async function Cu(e,{address:t,blockNumber:n,blockTag:r,gatewayUrls:o,strict:s,universalResolverAddress:i}){let a=i;if(!a){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");a=Oo({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const c=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const u={address:a,abi:cc,functionName:"reverse",args:[qr(Ca(c))],blockNumber:n,blockTag:r},d=gn(e,en,"readContract"),[f,h]=o?await d({...u,args:[...u.args,o]}):await d(u);return t.toLowerCase()!==h.toLowerCase()?null:f}catch(u){if(s)throw u;if(pa(u,"reverse"))return null;throw u}}function Aa(e,t,n){const r=e[t.name];if(typeof r=="function")return r;const o=e[n];return typeof o=="function"?o:s=>t(e,s)}const mu="2.17.2",bu=()=>`@wagmi/core@${mu}`;var Sa=function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},tn,Ea;let yu=class gr extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return bu()}constructor(t,n={}){var s;super(),tn.add(this),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiCoreError"});const r=n.cause instanceof gr?n.cause.details:(s=n.cause)!=null&&s.message?n.cause.message:n.details,o=n.cause instanceof gr&&n.cause.docsPath||n.docsPath;this.message=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: ${this.docsBaseUrl}${o}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join(`
|
|
82
|
+
`),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}walk(t){return Sa(this,tn,"m",Ea).call(this,this,t)}};tn=new WeakSet,Ea=function e(t,n){return n!=null&&n(t)?t:t.cause?Sa(this,tn,"m",e).call(this,t.cause,n):t};function Js(e){return e.state.chainId}function vu(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return Aa(o,gu,"getEnsAvatar")(r)}function wu(e,t){const{chainId:n,...r}=t,o=e.getClient({chainId:n});return Aa(o,Cu,"getEnsName")(r)}let Tn=!1;async function xu(e,t={}){var u,d;if(Tn)return[];Tn=!0,e.setState(f=>({...f,status:f.current?"reconnecting":"connecting"}));const n=[];if((u=t.connectors)!=null&&u.length)for(const f of t.connectors){let h;typeof f=="function"?h=e._internal.connectors.setup(f):h=f,n.push(h)}else n.push(...e.connectors);let r;try{r=await((d=e.storage)==null?void 0:d.getItem("recentConnectorId"))}catch{}const o={};for(const[,f]of e.state.connections)o[f.connector.id]=1;r&&(o[r]=0);const s=Object.keys(o).length>0?[...n].sort((f,h)=>(o[f.id]??10)-(o[h.id]??10)):n;let i=!1;const a=[],c=[];for(const f of s){const h=await f.getProvider().catch(()=>{});if(!h||c.some(g=>g===h)||!await f.isAuthorized())continue;const C=await f.connect({isReconnecting:!0}).catch(()=>null);C&&(f.emitter.off("connect",e._internal.events.connect),f.emitter.on("change",e._internal.events.change),f.emitter.on("disconnect",e._internal.events.disconnect),e.setState(g=>{const b=new Map(i?g.connections:new Map).set(f.uid,{accounts:C.accounts,chainId:C.chainId,connector:f});return{...g,current:i?g.current:f.uid,connections:b}}),a.push({accounts:C.accounts,chainId:C.chainId,connector:f}),c.push(h),i=!0)}return(e.state.status==="reconnecting"||e.state.status==="connecting")&&(i?e.setState(f=>({...f,status:"connected"})):e.setState(f=>({...f,connections:new Map,current:null,status:"disconnected"}))),Tn=!1,a}function Lu(e,t){const{onChange:n}=t;return e.subscribe(r=>r.chainId,n)}function Au(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,chainId:e.chains.some(o=>o.id===n.chainId)?n.chainId:e.chains[0].id,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){e._internal.ssr&&(await e._internal.store.persist.rehydrate(),e._internal.mipd&&e._internal.connectors.setState(o=>{var c;const s=new Set;for(const u of o??[])if(u.rdns){const d=Array.isArray(u.rdns)?u.rdns:[u.rdns];for(const f of d)s.add(f)}const i=[],a=((c=e._internal.mipd)==null?void 0:c.getProviders())??[];for(const u of a){if(s.has(u.info.rdns))continue;const d=e._internal.connectors.providerDetailToConnector(u),f=e._internal.connectors.setup(d);i.push(f)}return[...o,...i]})),r?xu(e):e.storage&&e.setState(o=>({...o,connections:new Map}))}}}function Su(e){const{children:t,config:n,initialState:r,reconnectOnMount:o=!0}=e,{onMount:s}=Au(n,{initialState:r,reconnectOnMount:o});n._internal.ssr||s();const i=Or(!0);return nn(()=>{if(i.current&&n._internal.ssr)return s(),()=>{i.current=!1}},[]),t}const Ra=_a(void 0);function Of(e){const{children:t,config:n}=e,r={value:n};return jo(Su,e,jo(Ra.Provider,r,t))}const Eu="2.15.4",Ru=()=>`wagmi@${Eu}`;class Pu extends yu{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return Ru()}}class ku extends Pu{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function Bo(e={}){const t=e.config??e0(Ra);if(!t)throw new ku;return t}var Io=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bt=typeof window>"u"||"Deno"in globalThis;function b1(){}function Hf(e,t){return typeof e=="function"?e(t):e}function Cr(e){return typeof e=="number"&&e>=0&&e!==1/0}function Pa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function $1(e,t){return typeof e=="function"?e(t):e}function be(e,t){return typeof e=="function"?e(t):e}function Vf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:s,queryKey:i,stale:a}=e;if(i){if(r){if(t.queryHash!==Mu(i,t.options))return!1}else if(!No(t.queryKey,i))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof a=="boolean"&&t.isStale()!==a||o&&o!==t.state.fetchStatus||s&&!s(t))}function Bf(e,t){const{exact:n,status:r,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(mr(t.options.mutationKey)!==mr(s))return!1}else if(!No(t.options.mutationKey,s))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function Mu(e,t){return((t==null?void 0:t.queryKeyHashFn)||mr)(e)}function mr(e){return JSON.stringify(e,(t,n)=>yr(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function No(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>No(e[n],t[n])):!1}function ka(e,t){if(e===t)return e;const n=Ws(e)&&Ws(t);if(n||yr(e)&&yr(t)){const r=n?e:Object.keys(e),o=r.length,s=n?t:Object.keys(t),i=s.length,a=n?[]:{};let c=0;for(let u=0;u<i;u++){const d=n?u:s[u];(!n&&r.includes(d)||n)&&e[d]===void 0&&t[d]===void 0?(a[d]=void 0,c++):(a[d]=ka(e[d],t[d]),a[d]===e[d]&&e[d]!==void 0&&c++)}return o===i&&c===o?e:a}return t}function br(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Ws(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function yr(e){if(!qs(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!qs(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function qs(e){return Object.prototype.toString.call(e)==="[object Object]"}function Ou(e){return new Promise(t=>{setTimeout(t,e)})}function vr(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ka(e,t):t}function If(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Nf(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ma=Symbol();function Hu(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ma?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Vu(e,t){return typeof e=="function"?e(...t):!!e}var st,$e,Ht,_s,Bu=(_s=class extends Io{constructor(){super();q(this,st);q(this,$e);q(this,Ht);I(this,Ht,t=>{if(!bt&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){v(this,$e)||this.setEventListener(v(this,Ht))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,$e))==null||t.call(this),I(this,$e,void 0))}setEventListener(t){var n;I(this,Ht,t),(n=v(this,$e))==null||n.call(this),I(this,$e,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){v(this,st)!==t&&(I(this,st,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof v(this,st)=="boolean"?v(this,st):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},st=new WeakMap,$e=new WeakMap,Ht=new WeakMap,_s),Oa=new Bu,Vt,ze,Bt,ei,Iu=(ei=class extends Io{constructor(){super();q(this,Vt,!0);q(this,ze);q(this,Bt);I(this,Bt,t=>{if(!bt&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){v(this,ze)||this.setEventListener(v(this,Bt))}onUnsubscribe(){var t;this.hasListeners()||((t=v(this,ze))==null||t.call(this),I(this,ze,void 0))}setEventListener(t){var n;I(this,Bt,t),(n=v(this,ze))==null||n.call(this),I(this,ze,t(this.setOnline.bind(this)))}setOnline(t){v(this,Vt)!==t&&(I(this,Vt,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return v(this,Vt)}},Vt=new WeakMap,ze=new WeakMap,Bt=new WeakMap,ei),Ha=new Iu;function wr(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}function Nu(e){return Math.min(1e3*2**e,3e4)}function Va(e){return(e??"online")==="online"?Ha.isOnline():!0}var Ba=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Dn(e){return e instanceof Ba}function Fu(e){let t=!1,n=0,r=!1,o;const s=wr(),i=g=>{var b;r||(h(new Ba(g)),(b=e.abort)==null||b.call(e))},a=()=>{t=!0},c=()=>{t=!1},u=()=>Oa.isFocused()&&(e.networkMode==="always"||Ha.isOnline())&&e.canRun(),d=()=>Va(e.networkMode)&&e.canRun(),f=g=>{var b;r||(r=!0,(b=e.onSuccess)==null||b.call(e,g),o==null||o(),s.resolve(g))},h=g=>{var b;r||(r=!0,(b=e.onError)==null||b.call(e,g),o==null||o(),s.reject(g))},p=()=>new Promise(g=>{var b;o=y=>{(r||u())&&g(y)},(b=e.onPause)==null||b.call(e)}).then(()=>{var g;o=void 0,r||(g=e.onContinue)==null||g.call(e)}),C=()=>{if(r)return;let g;const b=n===0?e.initialPromise:void 0;try{g=b??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var k;if(r)return;const L=e.retry??(bt?0:3),A=e.retryDelay??Nu,w=typeof A=="function"?A(n,y):A,E=L===!0||typeof L=="number"&&n<L||typeof L=="function"&&L(n,y);if(t||!E){h(y);return}n++,(k=e.onFail)==null||k.call(e,n,y),Ou(w).then(()=>u()?void 0:p()).then(()=>{t?h(y):C()})})};return{promise:s,cancel:i,continue:()=>(o==null||o(),s),cancelRetry:a,continueRetry:c,canStart:d,start:()=>(d()?C():p().then(C),s)}}var Tu=e=>setTimeout(e,0);function Du(){let e=[],t=0,n=a=>{a()},r=a=>{a()},o=Tu;const s=a=>{t?e.push(a):o(()=>{n(a)})},i=()=>{const a=e;e=[],a.length&&o(()=>{r(()=>{a.forEach(c=>{n(c)})})})};return{batch:a=>{let c;t++;try{c=a()}finally{t--,t||i()}return c},batchCalls:a=>(...c)=>{s(()=>{a(...c)})},schedule:s,setNotifyFunction:a=>{n=a},setBatchNotifyFunction:a=>{r=a},setScheduler:a=>{o=a}}}var Fo=Du(),it,ti,Zu=(ti=class{constructor(){q(this,it)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cr(this.gcTime)&&I(this,it,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bt?1/0:5*60*1e3))}clearGcTimeout(){v(this,it)&&(clearTimeout(v(this,it)),I(this,it,void 0))}},it=new WeakMap,ti),It,Nt,ge,at,ne,y1,ct,me,Oe,ni,Ff=(ni=class extends Zu{constructor(t){super();q(this,me);q(this,It);q(this,Nt);q(this,ge);q(this,at);q(this,ne);q(this,y1);q(this,ct);I(this,ct,!1),I(this,y1,t.defaultOptions),this.setOptions(t.options),this.observers=[],I(this,at,t.client),I(this,ge,v(this,at).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,I(this,It,ju(this.options)),this.state=t.state??v(this,It),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=v(this,ne))==null?void 0:t.promise}setOptions(t){this.options={...v(this,y1),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&v(this,ge).remove(this)}setData(t,n){const r=vr(this.state.data,t,this.options);return X(this,me,Oe).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){X(this,me,Oe).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,o;const n=(r=v(this,ne))==null?void 0:r.promise;return(o=v(this,ne))==null||o.cancel(t),n?n.then(b1).catch(b1):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(v(this,It))}isActive(){return this.observers.some(t=>be(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ma||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!Pa(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ne))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=v(this,ne))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),v(this,ge).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(v(this,ne)&&(v(this,ct)?v(this,ne).cancel({revert:!0}):v(this,ne).cancelRetry()),this.scheduleGc()),v(this,ge).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||X(this,me,Oe).call(this,{type:"invalidate"})}fetch(t,n){var c,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(v(this,ne))return v(this,ne).continueRetry(),v(this,ne).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,o=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(I(this,ct,!0),r.signal)})},s=()=>{const f=Hu(this.options,n),h={client:v(this,at),queryKey:this.queryKey,meta:this.meta};return o(h),I(this,ct,!1),this.options.persister?this.options.persister(f,h,this):f(h)},i={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:v(this,at),state:this.state,fetchFn:s};o(i),(c=this.options.behavior)==null||c.onFetch(i,this),I(this,Nt,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=i.fetchOptions)==null?void 0:u.meta))&&X(this,me,Oe).call(this,{type:"fetch",meta:(d=i.fetchOptions)==null?void 0:d.meta});const a=f=>{var h,p,C,g;Dn(f)&&f.silent||X(this,me,Oe).call(this,{type:"error",error:f}),Dn(f)||((p=(h=v(this,ge).config).onError)==null||p.call(h,f,this),(g=(C=v(this,ge).config).onSettled)==null||g.call(C,this.state.data,f,this)),this.scheduleGc()};return I(this,ne,Fu({initialPromise:n==null?void 0:n.initialPromise,fn:i.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var h,p,C,g;if(f===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(f)}catch(b){a(b);return}(p=(h=v(this,ge).config).onSuccess)==null||p.call(h,f,this),(g=(C=v(this,ge).config).onSettled)==null||g.call(C,f,this.state.error,this),this.scheduleGc()},onError:a,onFail:(f,h)=>{X(this,me,Oe).call(this,{type:"failed",failureCount:f,error:h})},onPause:()=>{X(this,me,Oe).call(this,{type:"pause"})},onContinue:()=>{X(this,me,Oe).call(this,{type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0})),v(this,ne).start()}},It=new WeakMap,Nt=new WeakMap,ge=new WeakMap,at=new WeakMap,ne=new WeakMap,y1=new WeakMap,ct=new WeakMap,me=new WeakSet,Oe=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Ia(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return Dn(o)&&o.revert&&v(this,Nt)?{...v(this,Nt),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Fo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),v(this,ge).notify({query:this,type:"updated",action:t})})},ni);function Ia(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Va(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function ju(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ce,j,v1,ae,lt,Ft,Ue,Je,w1,Tt,Dt,ut,dt,We,Zt,G,l1,xr,Lr,Ar,Sr,Er,Rr,Pr,Na,ri,$u=(ri=class extends Io{constructor(t,n){super();q(this,G);q(this,ce);q(this,j);q(this,v1);q(this,ae);q(this,lt);q(this,Ft);q(this,Ue);q(this,Je);q(this,w1);q(this,Tt);q(this,Dt);q(this,ut);q(this,dt);q(this,We);q(this,Zt,new Set);this.options=n,I(this,ce,t),I(this,Je,null),I(this,Ue,wr()),this.options.experimental_prefetchInRender||v(this,Ue).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(v(this,j).addObserver(this),Ks(v(this,j),this.options)?X(this,G,l1).call(this):this.updateResult(),X(this,G,Sr).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return kr(v(this,j),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return kr(v(this,j),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,X(this,G,Er).call(this),X(this,G,Rr).call(this),v(this,j).removeObserver(this)}setOptions(t){const n=this.options,r=v(this,j);if(this.options=v(this,ce).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof be(this.options.enabled,v(this,j))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");X(this,G,Pr).call(this),v(this,j).setOptions(this.options),n._defaulted&&!br(this.options,n)&&v(this,ce).getQueryCache().notify({type:"observerOptionsUpdated",query:v(this,j),observer:this});const o=this.hasListeners();o&&Gs(v(this,j),r,this.options,n)&&X(this,G,l1).call(this),this.updateResult(),o&&(v(this,j)!==r||be(this.options.enabled,v(this,j))!==be(n.enabled,v(this,j))||$1(this.options.staleTime,v(this,j))!==$1(n.staleTime,v(this,j)))&&X(this,G,xr).call(this);const s=X(this,G,Lr).call(this);o&&(v(this,j)!==r||be(this.options.enabled,v(this,j))!==be(n.enabled,v(this,j))||s!==v(this,We))&&X(this,G,Ar).call(this,s)}getOptimisticResult(t){const n=v(this,ce).getQueryCache().build(v(this,ce),t),r=this.createResult(n,t);return Uu(this,r)&&(I(this,ae,r),I(this,Ft,this.options),I(this,lt,v(this,j).state)),r}getCurrentResult(){return v(this,ae)}trackResult(t,n){return new Proxy(t,{get:(r,o)=>(this.trackProp(o),n==null||n(o),Reflect.get(r,o))})}trackProp(t){v(this,Zt).add(t)}getCurrentQuery(){return v(this,j)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=v(this,ce).defaultQueryOptions(t),r=v(this,ce).getQueryCache().build(v(this,ce),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return X(this,G,l1).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),v(this,ae)))}createResult(t,n){var N;const r=v(this,j),o=this.options,s=v(this,ae),i=v(this,lt),a=v(this,Ft),u=t!==r?t.state:v(this,v1),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const V=this.hasListeners(),J=!V&&Ks(t,n),W=V&&Gs(t,r,n,o);(J||W)&&(f={...f,...Ia(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:C,errorUpdatedAt:g,status:b}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let V;s!=null&&s.isPlaceholderData&&n.placeholderData===(a==null?void 0:a.placeholderData)?(V=s.data,y=!0):V=typeof n.placeholderData=="function"?n.placeholderData((N=v(this,Dt))==null?void 0:N.state.data,v(this,Dt)):n.placeholderData,V!==void 0&&(b="success",p=vr(s==null?void 0:s.data,V,n),h=!0)}if(n.select&&p!==void 0&&!y)if(s&&p===(i==null?void 0:i.data)&&n.select===v(this,w1))p=v(this,Tt);else try{I(this,w1,n.select),p=n.select(p),p=vr(s==null?void 0:s.data,p,n),I(this,Tt,p),I(this,Je,null)}catch(V){I(this,Je,V)}v(this,Je)&&(C=v(this,Je),p=v(this,Tt),g=Date.now(),b="error");const L=f.fetchStatus==="fetching",A=b==="pending",w=b==="error",E=A&&L,k=p!==void 0,S={status:b,fetchStatus:f.fetchStatus,isPending:A,isSuccess:b==="success",isError:w,isInitialLoading:E,isLoading:E,data:p,dataUpdatedAt:f.dataUpdatedAt,error:C,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:L,isRefetching:L&&!A,isLoadingError:w&&!k,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&k,isStale:To(t,n),refetch:this.refetch,promise:v(this,Ue)};if(this.options.experimental_prefetchInRender){const V=z=>{S.status==="error"?z.reject(S.error):S.data!==void 0&&z.resolve(S.data)},J=()=>{const z=I(this,Ue,S.promise=wr());V(z)},W=v(this,Ue);switch(W.status){case"pending":t.queryHash===r.queryHash&&V(W);break;case"fulfilled":(S.status==="error"||S.data!==W.value)&&J();break;case"rejected":(S.status!=="error"||S.error!==W.reason)&&J();break}}return S}updateResult(){const t=v(this,ae),n=this.createResult(v(this,j),this.options);if(I(this,lt,v(this,j).state),I(this,Ft,this.options),v(this,lt).data!==void 0&&I(this,Dt,v(this,j)),br(n,t))return;I(this,ae,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!v(this,Zt).size)return!0;const i=new Set(s??v(this,Zt));return this.options.throwOnError&&i.add("error"),Object.keys(v(this,ae)).some(a=>{const c=a;return v(this,ae)[c]!==t[c]&&i.has(c)})};X(this,G,Na).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&X(this,G,Sr).call(this)}},ce=new WeakMap,j=new WeakMap,v1=new WeakMap,ae=new WeakMap,lt=new WeakMap,Ft=new WeakMap,Ue=new WeakMap,Je=new WeakMap,w1=new WeakMap,Tt=new WeakMap,Dt=new WeakMap,ut=new WeakMap,dt=new WeakMap,We=new WeakMap,Zt=new WeakMap,G=new WeakSet,l1=function(t){X(this,G,Pr).call(this);let n=v(this,j).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(b1)),n},xr=function(){X(this,G,Er).call(this);const t=$1(this.options.staleTime,v(this,j));if(bt||v(this,ae).isStale||!Cr(t))return;const r=Pa(v(this,ae).dataUpdatedAt,t)+1;I(this,ut,setTimeout(()=>{v(this,ae).isStale||this.updateResult()},r))},Lr=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(v(this,j)):this.options.refetchInterval)??!1},Ar=function(t){X(this,G,Rr).call(this),I(this,We,t),!(bt||be(this.options.enabled,v(this,j))===!1||!Cr(v(this,We))||v(this,We)===0)&&I(this,dt,setInterval(()=>{(this.options.refetchIntervalInBackground||Oa.isFocused())&&X(this,G,l1).call(this)},v(this,We)))},Sr=function(){X(this,G,xr).call(this),X(this,G,Ar).call(this,X(this,G,Lr).call(this))},Er=function(){v(this,ut)&&(clearTimeout(v(this,ut)),I(this,ut,void 0))},Rr=function(){v(this,dt)&&(clearInterval(v(this,dt)),I(this,dt,void 0))},Pr=function(){const t=v(this,ce).getQueryCache().build(v(this,ce),this.options);if(t===v(this,j))return;const n=v(this,j);I(this,j,t),I(this,v1,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Na=function(t){Fo.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(v(this,ae))}),v(this,ce).getQueryCache().notify({query:v(this,j),type:"observerResultsUpdated"})})},ri);function zu(e,t){return be(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Ks(e,t){return zu(e,t)||e.state.data!==void 0&&kr(e,t,t.refetchOnMount)}function kr(e,t,n){if(be(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&To(e,t)}return!1}function Gs(e,t,n,r){return(e!==t||be(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&To(e,n)}function To(e,t){return be(t.enabled,e)!==!1&&e.isStaleByTime($1(t.staleTime,e))}function Uu(e,t){return!br(e.getCurrentResult(),t)}function Ju(e){return JSON.stringify(e,(t,n)=>Wu(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):typeof n=="bigint"?n.toString():n)}function Wu(e){if(!Xs(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const n=t.prototype;return!(!Xs(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xs(e){return Object.prototype.toString.call(e)==="[object Object]"}function Fa(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:o,initialDataUpdatedAt:s,maxPages:i,meta:a,networkMode:c,queryFn:u,queryHash:d,queryKey:f,queryKeyHashFn:h,retry:p,retryDelay:C,structuralSharing:g,getPreviousPageParam:b,getNextPageParam:y,initialPageParam:L,_optimisticResults:A,enabled:w,notifyOnChangeProps:E,placeholderData:k,refetchInterval:P,refetchIntervalInBackground:S,refetchOnMount:N,refetchOnReconnect:V,refetchOnWindowFocus:J,retryOnMount:W,select:z,staleTime:K,suspense:$,throwOnError:Z,config:F,connector:x,query:D,...U}=e;return U}function qu(e,t={}){return{async queryFn({queryKey:n}){const{name:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("name is required");return vu(e,{...s,name:r})},queryKey:Ku(t)}}function Ku(e={}){return["ensAvatar",Fa(e)]}function Gu(e,t={}){return{async queryFn({queryKey:n}){const{address:r,scopeKey:o,...s}=n[1];if(!r)throw new Error("address is required");return wu(e,{...s,address:r})},queryKey:Xu(t)}}function Xu(e={}){return["ensName",Fa(e)]}var Ta=m.createContext(void 0),Yu=e=>{const t=m.useContext(Ta);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Tf=({client:e,children:t})=>(m.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),l(Ta.Provider,{value:e,children:t})),Da=m.createContext(!1),Qu=()=>m.useContext(Da);Da.Provider;function _u(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ed=m.createContext(_u()),td=()=>m.useContext(ed),nd=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},rd=e=>{m.useEffect(()=>{e.clearReset()},[e])},od=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||Vu(n,[e.error,r])),sd=e=>{const t=e.staleTime;e.suspense&&(e.staleTime=typeof t=="function"?(...n)=>Math.max(t(...n),1e3):Math.max(t??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},id=(e,t)=>e.isLoading&&e.isFetching&&!t,ad=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,Ys=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cd(e,t,n){var f,h,p,C,g;const r=Yu(),o=Qu(),s=td(),i=r.defaultQueryOptions(e);(h=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_beforeQuery)==null||h.call(f,i),i._optimisticResults=o?"isRestoring":"optimistic",sd(i),nd(i,s),rd(s);const a=!r.getQueryCache().get(i.queryHash),[c]=m.useState(()=>new t(r,i)),u=c.getOptimisticResult(i),d=!o&&e.subscribed!==!1;if(m.useSyncExternalStore(m.useCallback(b=>{const y=d?c.subscribe(Fo.batchCalls(b)):b1;return c.updateResult(),y},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m.useEffect(()=>{c.setOptions(i)},[i,c]),ad(i,u))throw Ys(i,c,s);if(od({result:u,errorResetBoundary:s,throwOnError:i.throwOnError,query:r.getQueryCache().get(i.queryHash),suspense:i.suspense}))throw u.error;if((C=(p=r.getDefaultOptions().queries)==null?void 0:p._experimental_afterQuery)==null||C.call(p,i,u),i.experimental_prefetchInRender&&!bt&&id(u,o)){const b=a?Ys(i,c,s):(g=r.getQueryCache().get(i.queryHash))==null?void 0:g.promise;b==null||b.catch(b1).finally(()=>{c.updateResult()})}return i.notifyOnChangeProps?u:c.trackResult(u)}function ld(e,t){return cd(e,$u)}function Za(e){const t=ld({...e,queryKeyHashFn:Ju});return t.queryKey=e.queryKey,t}function ja(e={}){const t=Bo(e);return t0(n=>Lu(t,{onChange:n}),()=>Js(t),()=>Js(t))}function ud(e={}){const{name:t,query:n={}}=e,r=Bo(e),o=ja({config:r}),s=qu(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return Za({...n,...s,enabled:i})}function $a(e={}){const{address:t,query:n={}}=e,r=Bo(e),o=ja({config:r}),s=Gu(r,{...e,chainId:e.chainId??o}),i=!!(t&&(n.enabled??!0));return Za({...n,...s,enabled:i})}function dd(e){const{address:t,chainId:n=1,size:r="14px"}=e,o={width:r,height:r},s=$a({address:t,chainId:n}),i=s.data??void 0,a=ud({name:i}),c=a.data??V8;return s.isLoading||a.isLoading?l("div",{className:"fade-out flex-none animate-pulse rounded-full bg-gray-400",style:o}):l("img",{alt:"ENS Avatar",className:"flex-none rounded-full object-contain",src:c,style:o})}const fd="/assets/home-bg-BRYzhkhi.avif",hd="/assets/home-bg-BEhF9NuW.png";function pd(){return H("picture",{className:"pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain",children:[l("source",{srcSet:fd,type:"image/avif"}),l("img",{src:hd,alt:"background",className:"object-contain"})]})}const gd=function(t){const{children:n,containerClassName:r}=t;return l("div",{className:fe("container relative mx-auto flex h-full flex-col",r),children:H("div",{className:"m-8 flex flex-wrap justify-center gap-4 pt-12",children:[l(pd,{}),n]})})},Cd="/assets/renown-short-hover-BiSLBV7L.png",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJAAAACQCAYAAADnRuK4AAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAtmSURBVHgB7Z3dbtvmGcefl5LsqHYCq0C6tEUCZ0kDzAFqd0NTYAmweAfr0YD0CrpeQboriH0H6RUsu4ChAYodtCdJD3LQBGttILEBJ4tdJ2uzBoi0yIpsi+S790+ZDkmREilSHySfX6FKpkgliH5+nuf9pKAEkFLO1Bu7VzRNzEuiWfXzglDHSIgZYsYC9b1sCaEeJFZMU66WCnS7XC5vUUwE9Qmk2dndvar+ZpetB5NCxIr6Hr+II1NkgQ7FMeTnHGGygxLhRkGj5agiRRKo3mxeY3EyjkZLR8vl5bCnhxKo2WzOGqb4UpJcCDpH1T+E/wpKY+3gU4XoO0MyCaKyhvVsqifTNNWzVM8y8Hz1rW2pr3ExTDTq+Q3vNPc/lYZ+3S/qwI+iVlDSCJYlZcgDiVqGQdLXJVGTJD47NjV5s9vndP3W6429a8rZpY6LIE6hoB4aMenHMMxgkXqktECBguSBNHhwxMkWiEgt3SRDpbgOukjka8HLxt4VQeaX3uOlIkedrKPr7WjkRWiFv0yXJ/7ecdx7AAWzbsgfnDUPgs1EsWgVykz2QTTaa+melCZqRU1+4C2sO8KJSoe3vAXzZInlyRMoTxAw3MgZXbXEvee6BELdg6EI5zGkLa538gcCRkk1lNzIhXqjseQ8cmiGlbpM2nS+WdA0migViMkvKKx1V00kavr+5OlKRdTw02EEUqnrmvNCBJ1SkQvmvFMsauROQHKmOPHqc/sn6y2/6MMtLsams2X2OgpZhrQM92h6u6OQ5WHadItCliWqSL7quqDAdQ/jpqB5nBDaH6wnv/R1ZKLILS/GBbqEdvdarmP6/pGK5k1f1qg6y8N4gBHevsBSafeKOuSeoqGxPEwAXjcwvUfVQGLedZLGxTPjj9cNKWhWw/9cJ3EAYgLwuqHaZvM4Nus+zAYxAXSkMDGj9TiHYQ7pVEP1BxEzFL6+9T3tvGrS4u/fpzcrRykrcMU8BLb/85yePa/STmOX1h49oSzBAg2BJ0qgw9dPn1OWYIEGzH5LtyKQ8+dnv1QpK7BAA2ZbRRxI42T1wSZlBRZowKw/2u44hnpov9WiLMACDRCI8qK64/ve2sZTygIs0ABZvf848L31je1MRCEWaEA82vxZRaBa4Puoi1bvp78WYoEGxOra457nrD18kvoWGQs0AFYfPLY6DcOdm+4oxAIlzE6jSSsRpEChvbaR3t5pFihBUBR/fft7isq9lY3UpjIWKEHufLceOnV1XHtvzYpeaYMFSgjUPds/9T/OBfEQvdLWtGeBEgDyrCRQDFsS3UqXRCxQTJKSx+ZFbSdVErFAMbi38jBReWwg0Vff3E1FTcQC9YHV2lJRYm1jmwaFXRONu0Si3mi69qEqT5aICQb9NnfurvXd2uqHhfO/pvnzp2kcaHpWp7JAIUHUWX2wNdCo0403Z6Zp8eL7ND1VplHCAvXBuuopXlHFsndi2Cg4O/u2FY1GJRILFBJEnEebz2j94fZQ01UYpqeO0InjlZGIxAL1ADUOJsFjOsY4RJxenHr3OJ05/Tadeuc4DQMWKAC0dtqtnvGKNmGZKBXp4oU5S6hB4hWIm/EHoO8lrfIAa/XHT8NfMsQCHXDirYqqK9J7FytEoLmzp2jYcArzgCiEqRWYUTjuEQnSWPWPSlsoqocB10ARwIJATH7vNrd5FECc35w7SXPnTlmvhwkL1AdokY1DRBqlODYsUAzQmTiqOcwnVTP90kdzIxPHhgWKSXuQ819Di0YQ5sMPzlk90OMAC5QQd1c2rCGOQYIe548v/856Hhe8AvEGU31yYeGcFR0GldLQpbB4aX7kKasXLFAMMM0CJC3RGZWuLqle5TQwcoGGUUsMMgUkLVGa5AEjF+gf/7xDwwQyTb9RpomJIlVmpg96oON1wiUlEeb8pEkekLsUhohnRz10FNpfOiRCr26/rR1IhPGofgtriL14cZ7SBtdAB2AaBx5YZXF29p2+ppBCov/+UlMDs3WKyri1tsLCg6keEJ3QYYjU+mjr50jXosWEaadRW04fLryXSnkACxQARMLk+ah1DUSYP6iJwoDmOoYm0goL1ANEI4gUhTk1XhV2asjFC+cpzbBAIUAqiypRmCiEc9KaumxYoJBAoij7+PSaoAZxxmV8Kw4sUASwj8+LavgWVrcodEa19NIefQALFBGshw9LtyiUhegDWKCIWP1FEXYT84tCGK7IQvQBqe1IxBdwJuRvcbW6Qy/+V09s3A1Ne0SXMODWTugXcq4xO3s6G9EHpFcgNZ61EKG/BSQ1NRU9zVi5OlHqPXfKnvhuD3HYq0qzQq5SGH7z//ynj2LXH+077oSfaO9cNfqrDMkDclcD2Ss4464BQy0UFqS7k+8et0bbo0bNcSe3g6noAf7qm+/6Xv8eNQ3+UY2RZZHctsKsIjxGMVvtY8Q9i+S6GR9nR4s0r6NPklwLlKW7J4+KXAs07ise0gD3RDOxyLVAadiBbNzJtUAvYrSksjKWFZdcC/TvzWhznp1gKIXJsUDYEzFKb7KXSmWamBwLtP7waay+nCwNiMYhlwJh7VfcHedPvJXe/RSTJFcdIdbCwfubsVIXwDykMFM58kBqBdp51bSW3IShgY0zlTRJDT9kaUJYXNIrkJJhFNvNofbh+uc13BMdkYsp2z1j0LBAEcjCQsCkYYFCghmMC2Ny07dxggUKgXWzt0vp27tnGPB8hh6My/7M4wr/qwQAYbDJVJq3XhkGLJAPuJ0AVk9w1OkN10A+oJeZ5QkHC+QD7tCDladMb1L7a4be4I8Xfxv4fpwbo2Cm4trGU262hyCzESjuLZE4CoUjswLZ99bqFzsKMd3JdA3EUWjwZFogjkKDJ/OtMI5CgyXzAtkbPPULR6Hu5KIfaO69eMMRHIWCyYVA7W3l+p8Ez1EomNz0RM/H3BmMo5A/uRGo187xveAo5E+uxsI4CiVPrgTiKJQ8uRuN5yiULLkTiKNQsuRyPhDulBMHjkKvyaVAWJocZ30XR6HX5HZG4pmYtzvgKNQmtwLFHWTlKNQmtwLFneoBOArlfFI9R6H4iHqjKZ0HypO8cRITTHPPHXFVBJKuG19JSQzji58amiRR630awygzTLcbgmhLE0KsOA+a7A8TgFcNKZRAZJo/Og8apkkM44fpdcOUq0hhrggkuQhiAjA9bsAdzWjt3nSdpHIYO8R4QWAxPfWNUaDbWqVSqSmVbjvf0E2DGMaJ2VFAy5VKubzV7kiU9K3zTUPnOohx0zLcTphSfIFnSyBd373u7A+Ca7rBUYhpYyh5vLUx0heeLYGsNGa2jbLRdZNrIcYSxxt9BGk3kL7arw+oVqszxYnJTXXocLpesahRqVAgJr/s64YVgZzoGp22BTocTA2KQpzK8ouuxPHKo6qfZVseILwX1Ru7P6jAteA8NqlGrDVNEJMfkLp29933lBWq53n6jbJr27aO6Ry6Jj/xDrBi2gJ3MOYHQzXZ91rezCNrLUGL3nM7BEJ4klL81XWpesBGTmfZB2nLL2BIKnzmTF02vhPKjk2Xb5BJy97jLVUToajiaJQ9rNaW+m7x6MRcPjY1edPvuq6FTb3eXFKKXeu4SCXDYkGzHkz6QdTRffp62pjLR6emloKu7VkZv3zZuCIK4m/O5v3hxQciFVSBjddMeoAsuolWlgwQR9aEKmWmkY26EOpbrzabsyVJt9SfMxt0DlppmmiLhNf4YJZqPLAFQXGMEXW/gVEnmCPWEvITv5qn41yKQFBKY7KCtPoCjx4tL4W9InKIQDQqGOaSENqnxGSEtjj69JHrFeGd4tydvnNMWyS6rMLdVW/HI5MShBoQNejbfsR5/REJcCiTJZKYl4Jm1QfPEjMmyBoWT2AOj+rQ+REzCY2pIzf7lcbJ/wH9VD8KK3ri6QAAAABJRU5ErkJggg==",bd=({onLogin:e})=>{const t=l(P8,{onLogin:e});return l(y2,{content:t,children:H("div",{className:fe("group/sidebar-footer flex w-full items-baseline justify-start text-sm font-semibold leading-10 text-gray-600",e?"cursor-pointer":"cursor-wait"),children:[l("img",{width:42,height:42,loading:"lazy",className:"group-hover/sidebar-footer:hidden",src:md,alt:"Renown Login"}),l("img",{width:42,height:42,loading:"lazy",className:"hidden group-hover/sidebar-footer:block",src:Cd,alt:"Renown Login Hover"})]})})},yd=({address:e,etherscanUrl:t,onDisconnect:n})=>{const{data:r}=$a({address:e}),s=l(M8,{address:e,username:r,onDisconnect:n,etherscanUrl:t});return l(y2,{content:s,children:l("div",{className:"flex items-center justify-center rounded-sm",children:l(dd,{address:e,size:"40px"})})})},vd=({address:e,className:t,onLogin:n,onClickSettings:r,onDisconnect:o,etherscanUrl:s="",...i})=>H(S8,{...i,className:fe("flex flex-col gap-2 border-t border-gray-300 px-2 py-4",t),children:[l("div",{children:e?l(yd,{address:e,onDisconnect:o,etherscanUrl:s}):l(bd,{onLogin:n})}),H("button",{"aria-label":"Settings",type:"button",className:fe("mt-3 flex w-full items-center justify-center outline-none",r?"cursor-pointer":"cursor-wait"),onClick:r,children:[l(ft,{className:"text-gray-600",name:"Settings"}),l("span",{className:"hidden text-sm font-semibold leading-6 text-gray-800",children:"Settings"})]})]}),wd=({onClick:e,className:t,children:n,...r})=>l(A8,{...r,className:fe("flex justify-center gap-4 border-b border-gray-300 py-4",t),children:l("button",{"aria-label":"Home",className:e?"cursor-pointer":"cursor-wait",onClick:e,type:"button",children:l(ft,{className:"text-gray-600",name:"ConnectSmall",size:24})})}),xd=({onClick:e,address:t,headerContent:n,onClickSettings:r,maxWidth:o="304px",minWidth:s="58px",onLogin:i,onDisconnect:a,etherscanUrl:c,...u})=>H(E8,{...u,maxWidth:o,minWidth:s,children:[H(R8,{children:[l(wd,{onClick:e,children:n}),l("div",{className:"flex flex-col",children:u.children})]}),l(vd,{address:t,onClickSettings:r,onLogin:i,onDisconnect:a,etherscanUrl:c})]}),Ld=window.location.pathname==="/",Ad=250,Qs=()=>{const[e,t]=x1(!1);return nn(()=>{const n=setTimeout(()=>{t(!0)},Ad);return()=>clearTimeout(n)},[]),e?l("div",{className:"absolute inset-0 z-10 flex items-center justify-center",children:l("div",{className:"rounded-full overflow-hidden shadow-lg animate-pulse",children:l(H8,{})})}):null},Sd=()=>H("div",{className:"flex h-screen",children:[l(xd,{className:"animate-pulse",onLogin:void 0,onDisconnect:void 0,onClickSettings:void 0,address:void 0}),Ld?l(gd,{children:l(Qs,{})}):l(Qs,{})]}),Ed=si(()=>Mr(()=>import("./app-B69ZGOCX.js").then(e=>e.d5),__vite__mapDeps([3,2,1,4]))),Rd=si(()=>Mr(()=>import("./cookie-banner-CvRgenFS.js"),__vite__mapDeps([5,3,2,1,4])).then(e=>({default:e.CookieBanner}))),Pd=H(n0,{children:[l(Zn,{fallback:l(Sd,{}),name:"AppLoader",children:l(Ed,{})}),l(Zn,{name:"CookieBanner",children:l(Rd,{})})]});function kd(e){Ka(e).render(Pd)}const za=document.getElementById("app");if(!za)throw new Error("#app element not found!");kd(za);const Df=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));export{q2 as $,Di as A,C4 as B,L9 as C,pi as D,qr as E,Ci as F,E2 as G,re as H,ft as I,j8 as J,$7 as K,Ce as L,Wr as M,dn as N,Y as O,Te as P,pt as Q,x9 as R,Y7 as S,gn as T,to as U,J7 as V,G7 as W,J2 as X,eo as Y,ic as Z,tc as _,Fd as a,fo as a$,X7 as a0,C7 as a1,nf as a2,ks as a3,B2 as a4,g1 as a5,u7 as a6,V2 as a7,m7 as a8,rf as a9,Rl as aA,Gd as aB,Xd as aC,ef as aD,Po as aE,W8 as aF,D7 as aG,_d as aH,hf as aI,pf as aJ,Ns as aK,Kr as aL,ha as aM,zl as aN,R7 as aO,Fl as aP,kf as aQ,Pf as aR,Rf as aS,xc as aT,Wt as aU,He as aV,Sf as aW,va as aX,Ef as aY,Dl as aZ,H2 as a_,Jr as aa,df as ab,Gc as ac,al as ad,na as ae,Lf as af,ba as ag,Tl as ah,e1 as ai,Oo as aj,Mo as ak,Ll as al,wf as am,wl as an,Ca as ao,ac as ap,en as aq,ko as ar,Mt as as,pa as at,ql as au,E1 as av,Yd as aw,Fe as ax,dl as ay,fn as az,Hr as b,mu as b$,P2 as b0,hn as b1,Cf as b2,bf as b3,go as b4,Ro as b5,Eo as b6,So as b7,Ao as b8,Lo as b9,ec as bA,Q1 as bB,_1 as bC,Jt as bD,ff as bE,uf as bF,k7 as bG,Jl as bH,Kl as bI,gf as bJ,Xl as bK,tf as bL,Y1 as bM,sf as bN,of as bO,xf as bP,$2 as bQ,Mf as bR,Kd as bS,af as bT,gl as bU,yu as bV,Gl as bW,W2 as bX,pu as bY,Cu as bZ,gu as b_,xo as ba,wo as bb,vo as bc,yo as bd,bo as be,mo as bf,Co as bg,po as bh,ho as bi,uo as bj,lo as bk,co as bl,ao as bm,pn as bn,io as bo,so as bp,oo as bq,ro as br,mf as bs,Ct as bt,M7 as bu,Qe as bv,p1 as bw,cf as bx,Qd as by,lf as bz,di as c,Io as c0,Mu as c1,Ff as c2,Fo as c3,Vf as c4,Zu as c5,Fu as c6,Bf as c7,b1 as c8,Hu as c9,ld as cA,no as cB,pl as cC,Af as cD,xd as cE,gd as cF,H8 as cG,dd as cH,Df as cI,Nf as ca,If as cb,Oa as cc,Ha as cd,$1 as ce,Hf as cf,mr as cg,No as ch,Ma as ci,br as cj,Yu as ck,Vu as cl,f4 as cm,jd as cn,V6 as co,Zd as cp,h4 as cq,p4 as cr,g4 as cs,zd as ct,vf as cu,yf as cv,Yt as cw,Of as cx,Tf as cy,Nd as cz,g3 as d,qe as e,M9 as f,Td as g,jt as h,Mi as i,$r as j,Zi as k,X0 as l,N9 as m,s3 as n,Gi as o,A9 as p,ui as q,Dd as r,X3 as s,fe as t,_e as u,l2 as v,R as w,C1 as x,Xr as y,Qt as z};
|
|
83
|
+
//# sourceMappingURL=index-CPZNYiTx.js.map
|