diff --git a/src/claim_site/.DS_Store b/src/claim_site/.DS_Store index 63bd4d2..7c49405 100644 Binary files a/src/claim_site/.DS_Store and b/src/claim_site/.DS_Store differ diff --git a/src/claim_site/assets/apple-touch-icon.png b/src/claim_site/assets/apple-touch-icon.png index 7874856..218fdea 100644 Binary files a/src/claim_site/assets/apple-touch-icon.png and b/src/claim_site/assets/apple-touch-icon.png differ diff --git a/src/claim_site/assets/assets/index-b267778e.js b/src/claim_site/assets/assets/index-4d413beb.js similarity index 97% rename from src/claim_site/assets/assets/index-b267778e.js rename to src/claim_site/assets/assets/index-4d413beb.js index 72eef15..c088eb4 100644 --- a/src/claim_site/assets/assets/index-b267778e.js +++ b/src/claim_site/assets/assets/index-4d413beb.js @@ -1 +1 @@ -import{c as b,e as k,f as g,g as x,h as v,i as P,j as A}from"./index-40548fc1.js";const U=async t=>{const{canisterId:c,agent:d,paths:r}=t,o=[...new Set(r)],a=o.map(e=>f(e,c)),n=new Map,m=o.map((e,l)=>(async()=>{var u;try{const i=await d.readState(c,{paths:[a[l]]}),s=(await b.create({certificate:i.certificate,rootKey:d.rootKey,canisterId:c})).lookup(f(o[l],c));if(!s)console.warn(`Expected to find result for path ${e}, but instead found nothing.`),typeof e=="string"?n.set(e,null):n.set(e.key,null);else switch(e){case"time":{n.set(e,g(s));break}case"controllers":{n.set(e,h(s));break}case"module_hash":{n.set(e,w(s));break}case"candid":{n.set(e,new TextDecoder().decode(s));break}default:if(typeof e!="string"&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":n.set(e.key,s);break;case"leb128":{n.set(e.key,k(s));break}case"cbor":{n.set(e.key,y(s));break}case"hex":{n.set(e.key,w(s));break}case"utf-8":n.set(e.key,E(s))}}}catch(i){if(!((u=i==null?void 0:i.message)===null||u===void 0)&&u.includes("Invalid certificate"))throw new x(i.message);typeof e!="string"&&"key"in e&&"path"in e?n.set(e.key,null):n.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(i),console.groupEnd()}})());return await Promise.all(m),n},f=(t,c)=>{const d=new TextEncoder,r=a=>new DataView(d.encode(a).buffer).buffer,o=new DataView(c.toUint8Array().buffer).buffer;switch(t){case"time":return[r("time")];case"controllers":return[r("canister"),o,r("controllers")];case"module_hash":return[r("canister"),o,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),o,r("metadata"),r("candid:service")];default:if("key"in t&&"path"in t)if(typeof t.path=="string"||t.path instanceof ArrayBuffer){const a=t.path,n=typeof a=="string"?r(a):a;return[r("canister"),o,r("metadata"),n]}else return t.path}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${t} was formatted correctly.`)},w=t=>v(t),y=t=>P(t),E=t=>new TextDecoder().decode(t),h=t=>{const[c,...d]=y(t);return d.map(r=>A.fromUint8Array(new Uint8Array(r)))};export{f as encodePath,U as request}; +import{c as b,e as k,f as g,g as x,h as v,i as P,j as A}from"./index-b682c677.js";const U=async t=>{const{canisterId:c,agent:d,paths:r}=t,o=[...new Set(r)],a=o.map(e=>f(e,c)),n=new Map,m=o.map((e,l)=>(async()=>{var u;try{const i=await d.readState(c,{paths:[a[l]]}),s=(await b.create({certificate:i.certificate,rootKey:d.rootKey,canisterId:c})).lookup(f(o[l],c));if(!s)console.warn(`Expected to find result for path ${e}, but instead found nothing.`),typeof e=="string"?n.set(e,null):n.set(e.key,null);else switch(e){case"time":{n.set(e,g(s));break}case"controllers":{n.set(e,h(s));break}case"module_hash":{n.set(e,w(s));break}case"candid":{n.set(e,new TextDecoder().decode(s));break}default:if(typeof e!="string"&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":n.set(e.key,s);break;case"leb128":{n.set(e.key,k(s));break}case"cbor":{n.set(e.key,y(s));break}case"hex":{n.set(e.key,w(s));break}case"utf-8":n.set(e.key,E(s))}}}catch(i){if(!((u=i==null?void 0:i.message)===null||u===void 0)&&u.includes("Invalid certificate"))throw new x(i.message);typeof e!="string"&&"key"in e&&"path"in e?n.set(e.key,null):n.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(i),console.groupEnd()}})());return await Promise.all(m),n},f=(t,c)=>{const d=new TextEncoder,r=a=>new DataView(d.encode(a).buffer).buffer,o=new DataView(c.toUint8Array().buffer).buffer;switch(t){case"time":return[r("time")];case"controllers":return[r("canister"),o,r("controllers")];case"module_hash":return[r("canister"),o,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),o,r("metadata"),r("candid:service")];default:if("key"in t&&"path"in t)if(typeof t.path=="string"||t.path instanceof ArrayBuffer){const a=t.path,n=typeof a=="string"?r(a):a;return[r("canister"),o,r("metadata"),n]}else return t.path}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${t} was formatted correctly.`)},w=t=>v(t),y=t=>P(t),E=t=>new TextDecoder().decode(t),h=t=>{const[c,...d]=y(t);return d.map(r=>A.fromUint8Array(new Uint8Array(r)))};export{f as encodePath,U as request}; diff --git a/src/claim_site/assets/assets/index-3def3713.js b/src/claim_site/assets/assets/index-8ebea1f4.js similarity index 97% rename from src/claim_site/assets/assets/index-3def3713.js rename to src/claim_site/assets/assets/index-8ebea1f4.js index 59fe535..c1e5c5f 100644 --- a/src/claim_site/assets/assets/index-3def3713.js +++ b/src/claim_site/assets/assets/index-8ebea1f4.js @@ -1 +1 @@ -import{C as m,d as k,a as g,A as x,t as P,b as v,P as A}from"./index-40548fc1.js";const T=async t=>{const{canisterId:c,agent:d,paths:r}=t,o=[...new Set(r)],a=o.map(e=>f(e,c)),n=new Map,b=o.map((e,l)=>(async()=>{var u;try{const i=await d.readState(c,{paths:[a[l]]}),s=(await m.create({certificate:i.certificate,rootKey:d.rootKey,canisterId:c})).lookup(f(o[l],c));if(!s)console.warn(`Expected to find result for path ${e}, but instead found nothing.`),typeof e=="string"?n.set(e,null):n.set(e.key,null);else switch(e){case"time":{n.set(e,g(s));break}case"controllers":{n.set(e,h(s));break}case"module_hash":{n.set(e,w(s));break}case"candid":{n.set(e,new TextDecoder().decode(s));break}default:if(typeof e!="string"&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":n.set(e.key,s);break;case"leb128":{n.set(e.key,k(s));break}case"cbor":{n.set(e.key,y(s));break}case"hex":{n.set(e.key,w(s));break}case"utf-8":n.set(e.key,E(s))}}}catch(i){if(!((u=i==null?void 0:i.message)===null||u===void 0)&&u.includes("Invalid certificate"))throw new x(i.message);typeof e!="string"&&"key"in e&&"path"in e?n.set(e.key,null):n.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(i),console.groupEnd()}})());return await Promise.all(b),n},f=(t,c)=>{const d=new TextEncoder,r=a=>new DataView(d.encode(a).buffer).buffer,o=new DataView(c.toUint8Array().buffer).buffer;switch(t){case"time":return[r("time")];case"controllers":return[r("canister"),o,r("controllers")];case"module_hash":return[r("canister"),o,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),o,r("metadata"),r("candid:service")];default:if("key"in t&&"path"in t)if(typeof t.path=="string"||t.path instanceof ArrayBuffer){const a=t.path,n=typeof a=="string"?r(a):a;return[r("canister"),o,r("metadata"),n]}else return t.path}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${t} was formatted correctly.`)},w=t=>P(t),y=t=>v(t),E=t=>new TextDecoder().decode(t),h=t=>{const[c,...d]=y(t);return d.map(r=>A.fromUint8Array(new Uint8Array(r)))};export{f as encodePath,T as request}; +import{C as m,d as k,a as g,A as x,t as P,b as v,P as A}from"./index-b682c677.js";const T=async t=>{const{canisterId:c,agent:d,paths:r}=t,o=[...new Set(r)],a=o.map(e=>f(e,c)),n=new Map,b=o.map((e,l)=>(async()=>{var u;try{const i=await d.readState(c,{paths:[a[l]]}),s=(await m.create({certificate:i.certificate,rootKey:d.rootKey,canisterId:c})).lookup(f(o[l],c));if(!s)console.warn(`Expected to find result for path ${e}, but instead found nothing.`),typeof e=="string"?n.set(e,null):n.set(e.key,null);else switch(e){case"time":{n.set(e,g(s));break}case"controllers":{n.set(e,h(s));break}case"module_hash":{n.set(e,w(s));break}case"candid":{n.set(e,new TextDecoder().decode(s));break}default:if(typeof e!="string"&&"key"in e&&"path"in e)switch(e.decodeStrategy){case"raw":n.set(e.key,s);break;case"leb128":{n.set(e.key,k(s));break}case"cbor":{n.set(e.key,y(s));break}case"hex":{n.set(e.key,w(s));break}case"utf-8":n.set(e.key,E(s))}}}catch(i){if(!((u=i==null?void 0:i.message)===null||u===void 0)&&u.includes("Invalid certificate"))throw new x(i.message);typeof e!="string"&&"key"in e&&"path"in e?n.set(e.key,null):n.set(e,null),console.group(),console.warn(`Expected to find result for path ${e}, but instead found nothing.`),console.warn(i),console.groupEnd()}})());return await Promise.all(b),n},f=(t,c)=>{const d=new TextEncoder,r=a=>new DataView(d.encode(a).buffer).buffer,o=new DataView(c.toUint8Array().buffer).buffer;switch(t){case"time":return[r("time")];case"controllers":return[r("canister"),o,r("controllers")];case"module_hash":return[r("canister"),o,r("module_hash")];case"subnet":return[r("subnet")];case"candid":return[r("canister"),o,r("metadata"),r("candid:service")];default:if("key"in t&&"path"in t)if(typeof t.path=="string"||t.path instanceof ArrayBuffer){const a=t.path,n=typeof a=="string"?r(a):a;return[r("canister"),o,r("metadata"),n]}else return t.path}throw new Error(`An unexpeected error was encountered while encoding your path for canister status. Please ensure that your path, ${t} was formatted correctly.`)},w=t=>P(t),y=t=>v(t),E=t=>new TextDecoder().decode(t),h=t=>{const[c,...d]=y(t);return d.map(r=>A.fromUint8Array(new Uint8Array(r)))};export{f as encodePath,T as request}; diff --git a/src/claim_site/assets/assets/index-40548fc1.js b/src/claim_site/assets/assets/index-b682c677.js similarity index 90% rename from src/claim_site/assets/assets/index-40548fc1.js rename to src/claim_site/assets/assets/index-b682c677.js index eb7725c..37af9fd 100644 --- a/src/claim_site/assets/assets/index-40548fc1.js +++ b/src/claim_site/assets/assets/index-b682c677.js @@ -23,7 +23,7 @@ var oo=Object.defineProperty;var so=($,et,tt)=>et in $?oo($,et,{enumerable:!0,co * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function($){for(var et=1;et"u")throw new Error(et)}function warning$1($,et){if(!$){typeof console<"u"&&console.warn(et);try{throw new Error(et)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState($,et){return{usr:$.state,key:$.key,idx:et}}function createLocation($,et,tt,rt){return tt===void 0&&(tt=null),_extends$2({pathname:typeof $=="string"?$:$.pathname,search:"",hash:""},typeof et=="string"?parsePath(et):et,{state:tt,key:et&&et.key||rt||createKey()})}function createPath($){let{pathname:et="/",search:tt="",hash:rt=""}=$;return tt&&tt!=="?"&&(et+=tt.charAt(0)==="?"?tt:"?"+tt),rt&&rt!=="#"&&(et+=rt.charAt(0)==="#"?rt:"#"+rt),et}function parsePath($){let et={};if($){let tt=$.indexOf("#");tt>=0&&(et.hash=$.substr(tt),$=$.substr(0,tt));let rt=$.indexOf("?");rt>=0&&(et.search=$.substr(rt),$=$.substr(0,rt)),$&&(et.pathname=$)}return et}function getUrlBasedHistory($,et,tt,rt){rt===void 0&&(rt={});let{window:nt=document.defaultView,v5Compat:it=!1}=rt,At=nt.history,at=Action.Pop,ot=null,st=ct();st==null&&(st=0,At.replaceState(_extends$2({},At.state,{idx:st}),""));function ct(){return(At.state||{idx:null}).idx}function ut(){at=Action.Pop;let wt=ct(),Qt=wt==null?null:wt-st;st=wt,ot&&ot({action:at,location:Et.location,delta:Qt})}function gt(wt,Qt){at=Action.Push;let pt=createLocation(Et.location,wt,Qt);tt&&tt(pt,wt),st=ct()+1;let mt=getHistoryState(pt,st),$t=Et.createHref(pt);try{At.pushState(mt,"",$t)}catch(Tt){if(Tt instanceof DOMException&&Tt.name==="DataCloneError")throw Tt;nt.location.assign($t)}it&&ot&&ot({action:at,location:Et.location,delta:1})}function dt(wt,Qt){at=Action.Replace;let pt=createLocation(Et.location,wt,Qt);tt&&tt(pt,wt),st=ct();let mt=getHistoryState(pt,st),$t=Et.createHref(pt);At.replaceState(mt,"",$t),it&&ot&&ot({action:at,location:Et.location,delta:0})}function ht(wt){let Qt=nt.location.origin!=="null"?nt.location.origin:nt.location.href,pt=typeof wt=="string"?wt:createPath(wt);return invariant$1(Qt,"No window.location.(origin|href) available to create URL for href: "+pt),new URL(pt,Qt)}let Et={get action(){return at},get location(){return $(nt,At)},listen(wt){if(ot)throw new Error("A history only accepts one active listener");return nt.addEventListener(PopStateEventType,ut),ot=wt,()=>{nt.removeEventListener(PopStateEventType,ut),ot=null}},createHref(wt){return et(nt,wt)},createURL:ht,encodeLocation(wt){let Qt=ht(wt);return{pathname:Qt.pathname,search:Qt.search,hash:Qt.hash}},push:gt,replace:dt,go(wt){return At.go(wt)}};return Et}var ResultType;(function($){$.data="data",$.deferred="deferred",$.redirect="redirect",$.error="error"})(ResultType||(ResultType={}));function matchRoutes($,et,tt){tt===void 0&&(tt="/");let rt=typeof et=="string"?parsePath(et):et,nt=stripBasename(rt.pathname||"/",tt);if(nt==null)return null;let it=flattenRoutes($);rankRouteBranches(it);let At=null;for(let at=0;At==null&&at{let ot={relativePath:at===void 0?it.path||"":at,caseSensitive:it.caseSensitive===!0,childrenIndex:At,route:it};ot.relativePath.startsWith("/")&&(invariant$1(ot.relativePath.startsWith(rt),'Absolute route path "'+ot.relativePath+'" nested under path '+('"'+rt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),ot.relativePath=ot.relativePath.slice(rt.length));let st=joinPaths([rt,ot.relativePath]),ct=tt.concat(ot);it.children&&it.children.length>0&&(invariant$1(it.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+st+'".')),flattenRoutes(it.children,et,ct,st)),!(it.path==null&&!it.index)&&et.push({path:st,score:computeScore(st,it.index),routesMeta:ct})};return $.forEach((it,At)=>{var at;if(it.path===""||!((at=it.path)!=null&&at.includes("?")))nt(it,At);else for(let ot of explodeOptionalSegments(it.path))nt(it,At,ot)}),et}function explodeOptionalSegments($){let et=$.split("/");if(et.length===0)return[];let[tt,...rt]=et,nt=tt.endsWith("?"),it=tt.replace(/\?$/,"");if(rt.length===0)return nt?[it,""]:[it];let At=explodeOptionalSegments(rt.join("/")),at=[];return at.push(...At.map(ot=>ot===""?it:[it,ot].join("/"))),nt&&at.push(...At),at.map(ot=>$.startsWith("/")&&ot===""?"/":ot)}function rankRouteBranches($){$.sort((et,tt)=>et.score!==tt.score?tt.score-et.score:compareIndexes(et.routesMeta.map(rt=>rt.childrenIndex),tt.routesMeta.map(rt=>rt.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=$=>$==="*";function computeScore($,et){let tt=$.split("/"),rt=tt.length;return tt.some(isSplat)&&(rt+=splatPenalty),et&&(rt+=indexRouteValue),tt.filter(nt=>!isSplat(nt)).reduce((nt,it)=>nt+(paramRe.test(it)?dynamicSegmentValue:it===""?emptySegmentValue:staticSegmentValue),rt)}function compareIndexes($,et){return $.length===et.length&&$.slice(0,-1).every((rt,nt)=>rt===et[nt])?$[$.length-1]-et[et.length-1]:0}function matchRouteBranch($,et){let{routesMeta:tt}=$,rt={},nt="/",it=[];for(let At=0;At{if(ct==="*"){let gt=at[ut]||"";At=it.slice(0,it.length-gt.length).replace(/(.)\/+$/,"$1")}return st[ct]=safelyDecodeURIComponent(at[ut]||"",ct),st},{}),pathname:it,pathnameBase:At,pattern:$}}function compilePath($,et,tt){et===void 0&&(et=!1),tt===void 0&&(tt=!0),warning$1($==="*"||!$.endsWith("*")||$.endsWith("/*"),'Route path "'+$+'" will be treated as if it were '+('"'+$.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+$.replace(/\*$/,"/*")+'".'));let rt=[],nt="^"+$.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(At,at)=>(rt.push(at),"/([^\\/]+)"));return $.endsWith("*")?(rt.push("*"),nt+=$==="*"||$==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):tt?nt+="\\/*$":$!==""&&$!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,et?void 0:"i"),rt]}function safelyDecodeURI($){try{return decodeURI($)}catch(et){return warning$1(!1,'The URL path "'+$+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+et+").")),$}}function safelyDecodeURIComponent($,et){try{return decodeURIComponent($)}catch(tt){return warning$1(!1,'The value for the URL param "'+et+'" will not be decoded because'+(' the string "'+$+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+tt+").")),$}}function stripBasename($,et){if(et==="/")return $;if(!$.toLowerCase().startsWith(et.toLowerCase()))return null;let tt=et.endsWith("/")?et.length-1:et.length,rt=$.charAt(tt);return rt&&rt!=="/"?null:$.slice(tt)||"/"}function resolvePath($,et){et===void 0&&(et="/");let{pathname:tt,search:rt="",hash:nt=""}=typeof $=="string"?parsePath($):$;return{pathname:tt?tt.startsWith("/")?tt:resolvePathname(tt,et):et,search:normalizeSearch(rt),hash:normalizeHash(nt)}}function resolvePathname($,et){let tt=et.replace(/\/+$/,"").split("/");return $.split("/").forEach(nt=>{nt===".."?tt.length>1&&tt.pop():nt!=="."&&tt.push(nt)}),tt.length>1?tt.join("/"):"/"}function getInvalidPathError($,et,tt,rt){return"Cannot include a '"+$+"' character in a manually specified "+("`to."+et+"` field ["+JSON.stringify(rt)+"]. Please separate it out to the ")+("`to."+tt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches($){return $.filter((et,tt)=>tt===0||et.route.path&&et.route.path.length>0)}function resolveTo($,et,tt,rt){rt===void 0&&(rt=!1);let nt;typeof $=="string"?nt=parsePath($):(nt=_extends$2({},$),invariant$1(!nt.pathname||!nt.pathname.includes("?"),getInvalidPathError("?","pathname","search",nt)),invariant$1(!nt.pathname||!nt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",nt)),invariant$1(!nt.search||!nt.search.includes("#"),getInvalidPathError("#","search","hash",nt)));let it=$===""||nt.pathname==="",At=it?"/":nt.pathname,at;if(rt||At==null)at=tt;else{let ut=et.length-1;if(At.startsWith("..")){let gt=At.split("/");for(;gt[0]==="..";)gt.shift(),ut-=1;nt.pathname=gt.join("/")}at=ut>=0?et[ut]:"/"}let ot=resolvePath(nt,at),st=At&&At!=="/"&&At.endsWith("/"),ct=(it||At===".")&&tt.endsWith("/");return!ot.pathname.endsWith("/")&&(st||ct)&&(ot.pathname+="/"),ot}const joinPaths=$=>$.join("/").replace(/\/\/+/g,"/"),normalizePathname=$=>$.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=$=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,normalizeHash=$=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$;function isRouteErrorResponse($){return $!=null&&typeof $.status=="number"&&typeof $.statusText=="string"&&typeof $.internal=="boolean"&&"data"in $}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function($){for(var et=1;et"u")throw new Error(et)}function warning$1($,et){if(!$){typeof console<"u"&&console.warn(et);try{throw new Error(et)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState($,et){return{usr:$.state,key:$.key,idx:et}}function createLocation($,et,tt,rt){return tt===void 0&&(tt=null),_extends$2({pathname:typeof $=="string"?$:$.pathname,search:"",hash:""},typeof et=="string"?parsePath(et):et,{state:tt,key:et&&et.key||rt||createKey()})}function createPath($){let{pathname:et="/",search:tt="",hash:rt=""}=$;return tt&&tt!=="?"&&(et+=tt.charAt(0)==="?"?tt:"?"+tt),rt&&rt!=="#"&&(et+=rt.charAt(0)==="#"?rt:"#"+rt),et}function parsePath($){let et={};if($){let tt=$.indexOf("#");tt>=0&&(et.hash=$.substr(tt),$=$.substr(0,tt));let rt=$.indexOf("?");rt>=0&&(et.search=$.substr(rt),$=$.substr(0,rt)),$&&(et.pathname=$)}return et}function getUrlBasedHistory($,et,tt,rt){rt===void 0&&(rt={});let{window:nt=document.defaultView,v5Compat:it=!1}=rt,At=nt.history,at=Action.Pop,ot=null,st=ct();st==null&&(st=0,At.replaceState(_extends$2({},At.state,{idx:st}),""));function ct(){return(At.state||{idx:null}).idx}function ut(){at=Action.Pop;let wt=ct(),mt=wt==null?null:wt-st;st=wt,ot&&ot({action:at,location:Et.location,delta:mt})}function gt(wt,mt){at=Action.Push;let pt=createLocation(Et.location,wt,mt);tt&&tt(pt,wt),st=ct()+1;let Qt=getHistoryState(pt,st),$t=Et.createHref(pt);try{At.pushState(Qt,"",$t)}catch(Gt){if(Gt instanceof DOMException&&Gt.name==="DataCloneError")throw Gt;nt.location.assign($t)}it&&ot&&ot({action:at,location:Et.location,delta:1})}function dt(wt,mt){at=Action.Replace;let pt=createLocation(Et.location,wt,mt);tt&&tt(pt,wt),st=ct();let Qt=getHistoryState(pt,st),$t=Et.createHref(pt);At.replaceState(Qt,"",$t),it&&ot&&ot({action:at,location:Et.location,delta:0})}function ht(wt){let mt=nt.location.origin!=="null"?nt.location.origin:nt.location.href,pt=typeof wt=="string"?wt:createPath(wt);return invariant$1(mt,"No window.location.(origin|href) available to create URL for href: "+pt),new URL(pt,mt)}let Et={get action(){return at},get location(){return $(nt,At)},listen(wt){if(ot)throw new Error("A history only accepts one active listener");return nt.addEventListener(PopStateEventType,ut),ot=wt,()=>{nt.removeEventListener(PopStateEventType,ut),ot=null}},createHref(wt){return et(nt,wt)},createURL:ht,encodeLocation(wt){let mt=ht(wt);return{pathname:mt.pathname,search:mt.search,hash:mt.hash}},push:gt,replace:dt,go(wt){return At.go(wt)}};return Et}var ResultType;(function($){$.data="data",$.deferred="deferred",$.redirect="redirect",$.error="error"})(ResultType||(ResultType={}));function matchRoutes($,et,tt){tt===void 0&&(tt="/");let rt=typeof et=="string"?parsePath(et):et,nt=stripBasename(rt.pathname||"/",tt);if(nt==null)return null;let it=flattenRoutes($);rankRouteBranches(it);let At=null;for(let at=0;At==null&&at{let ot={relativePath:at===void 0?it.path||"":at,caseSensitive:it.caseSensitive===!0,childrenIndex:At,route:it};ot.relativePath.startsWith("/")&&(invariant$1(ot.relativePath.startsWith(rt),'Absolute route path "'+ot.relativePath+'" nested under path '+('"'+rt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),ot.relativePath=ot.relativePath.slice(rt.length));let st=joinPaths([rt,ot.relativePath]),ct=tt.concat(ot);it.children&&it.children.length>0&&(invariant$1(it.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+st+'".')),flattenRoutes(it.children,et,ct,st)),!(it.path==null&&!it.index)&&et.push({path:st,score:computeScore(st,it.index),routesMeta:ct})};return $.forEach((it,At)=>{var at;if(it.path===""||!((at=it.path)!=null&&at.includes("?")))nt(it,At);else for(let ot of explodeOptionalSegments(it.path))nt(it,At,ot)}),et}function explodeOptionalSegments($){let et=$.split("/");if(et.length===0)return[];let[tt,...rt]=et,nt=tt.endsWith("?"),it=tt.replace(/\?$/,"");if(rt.length===0)return nt?[it,""]:[it];let At=explodeOptionalSegments(rt.join("/")),at=[];return at.push(...At.map(ot=>ot===""?it:[it,ot].join("/"))),nt&&at.push(...At),at.map(ot=>$.startsWith("/")&&ot===""?"/":ot)}function rankRouteBranches($){$.sort((et,tt)=>et.score!==tt.score?tt.score-et.score:compareIndexes(et.routesMeta.map(rt=>rt.childrenIndex),tt.routesMeta.map(rt=>rt.childrenIndex)))}const paramRe=/^:\w+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=$=>$==="*";function computeScore($,et){let tt=$.split("/"),rt=tt.length;return tt.some(isSplat)&&(rt+=splatPenalty),et&&(rt+=indexRouteValue),tt.filter(nt=>!isSplat(nt)).reduce((nt,it)=>nt+(paramRe.test(it)?dynamicSegmentValue:it===""?emptySegmentValue:staticSegmentValue),rt)}function compareIndexes($,et){return $.length===et.length&&$.slice(0,-1).every((rt,nt)=>rt===et[nt])?$[$.length-1]-et[et.length-1]:0}function matchRouteBranch($,et){let{routesMeta:tt}=$,rt={},nt="/",it=[];for(let At=0;At{if(ct==="*"){let gt=at[ut]||"";At=it.slice(0,it.length-gt.length).replace(/(.)\/+$/,"$1")}return st[ct]=safelyDecodeURIComponent(at[ut]||"",ct),st},{}),pathname:it,pathnameBase:At,pattern:$}}function compilePath($,et,tt){et===void 0&&(et=!1),tt===void 0&&(tt=!0),warning$1($==="*"||!$.endsWith("*")||$.endsWith("/*"),'Route path "'+$+'" will be treated as if it were '+('"'+$.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+$.replace(/\*$/,"/*")+'".'));let rt=[],nt="^"+$.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(At,at)=>(rt.push(at),"/([^\\/]+)"));return $.endsWith("*")?(rt.push("*"),nt+=$==="*"||$==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):tt?nt+="\\/*$":$!==""&&$!=="/"&&(nt+="(?:(?=\\/|$))"),[new RegExp(nt,et?void 0:"i"),rt]}function safelyDecodeURI($){try{return decodeURI($)}catch(et){return warning$1(!1,'The URL path "'+$+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+et+").")),$}}function safelyDecodeURIComponent($,et){try{return decodeURIComponent($)}catch(tt){return warning$1(!1,'The value for the URL param "'+et+'" will not be decoded because'+(' the string "'+$+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+tt+").")),$}}function stripBasename($,et){if(et==="/")return $;if(!$.toLowerCase().startsWith(et.toLowerCase()))return null;let tt=et.endsWith("/")?et.length-1:et.length,rt=$.charAt(tt);return rt&&rt!=="/"?null:$.slice(tt)||"/"}function resolvePath($,et){et===void 0&&(et="/");let{pathname:tt,search:rt="",hash:nt=""}=typeof $=="string"?parsePath($):$;return{pathname:tt?tt.startsWith("/")?tt:resolvePathname(tt,et):et,search:normalizeSearch(rt),hash:normalizeHash(nt)}}function resolvePathname($,et){let tt=et.replace(/\/+$/,"").split("/");return $.split("/").forEach(nt=>{nt===".."?tt.length>1&&tt.pop():nt!=="."&&tt.push(nt)}),tt.length>1?tt.join("/"):"/"}function getInvalidPathError($,et,tt,rt){return"Cannot include a '"+$+"' character in a manually specified "+("`to."+et+"` field ["+JSON.stringify(rt)+"]. Please separate it out to the ")+("`to."+tt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches($){return $.filter((et,tt)=>tt===0||et.route.path&&et.route.path.length>0)}function resolveTo($,et,tt,rt){rt===void 0&&(rt=!1);let nt;typeof $=="string"?nt=parsePath($):(nt=_extends$2({},$),invariant$1(!nt.pathname||!nt.pathname.includes("?"),getInvalidPathError("?","pathname","search",nt)),invariant$1(!nt.pathname||!nt.pathname.includes("#"),getInvalidPathError("#","pathname","hash",nt)),invariant$1(!nt.search||!nt.search.includes("#"),getInvalidPathError("#","search","hash",nt)));let it=$===""||nt.pathname==="",At=it?"/":nt.pathname,at;if(rt||At==null)at=tt;else{let ut=et.length-1;if(At.startsWith("..")){let gt=At.split("/");for(;gt[0]==="..";)gt.shift(),ut-=1;nt.pathname=gt.join("/")}at=ut>=0?et[ut]:"/"}let ot=resolvePath(nt,at),st=At&&At!=="/"&&At.endsWith("/"),ct=(it||At===".")&&tt.endsWith("/");return!ot.pathname.endsWith("/")&&(st||ct)&&(ot.pathname+="/"),ot}const joinPaths=$=>$.join("/").replace(/\/\/+/g,"/"),normalizePathname=$=>$.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=$=>!$||$==="?"?"":$.startsWith("?")?$:"?"+$,normalizeHash=$=>!$||$==="#"?"":$.startsWith("#")?$:"#"+$;function isRouteErrorResponse($){return $!=null&&typeof $.status=="number"&&typeof $.statusText=="string"&&typeof $.internal=="boolean"&&"data"in $}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** * React Router v6.16.0 * * Copyright (c) Remix Software Inc. @@ -41,7 +41,7 @@ var oo=Object.defineProperty;var so=($,et,tt)=>et in $?oo($,et,{enumerable:!0,co * LICENSE.md file in the root directory of this source tree. * * @license MIT - */const START_TRANSITION="startTransition",startTransitionImpl=React$1[START_TRANSITION];function BrowserRouter($){let{basename:et,children:tt,future:rt,window:nt}=$,it=reactExports.useRef();it.current==null&&(it.current=createBrowserHistory({window:nt,v5Compat:!0}));let At=it.current,[at,ot]=reactExports.useState({action:At.action,location:At.location}),{v7_startTransition:st}=rt||{},ct=reactExports.useCallback(ut=>{st&&startTransitionImpl?startTransitionImpl(()=>ot(ut)):ot(ut)},[ot,st]);return reactExports.useLayoutEffect(()=>At.listen(ct),[At,ct]),reactExports.createElement(Router,{basename:et,children:tt,location:at.location,navigationType:at.action,navigator:At})}var DataRouterHook;(function($){$.UseScrollRestoration="useScrollRestoration",$.UseSubmit="useSubmit",$.UseSubmitFetcher="useSubmitFetcher",$.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function($){$.UseFetchers="useFetchers",$.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function sheetForTag($){if($.sheet)return $.sheet;for(var et=0;et0?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$12||token(character)>3?"":" "}function escaping($,et){for(;--et&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice($,caret()+(et<6&&peek()==32&&next()==32))}function delimiter($){for(;next();)switch(character){case $:return position$1;case 34:case 39:$!==34&&$!==39&&delimiter(character);break;case 40:$===41&&delimiter($);break;case 92:next();break}return position$1}function commenter($,et){for(;next()&&$+character!==47+10;)if($+character===42+42&&peek()===47)break;return"/*"+slice(et,position$1-1)+"*"+from($===47?$:next())}function identifier($){for(;!token(peek());)next();return slice($,position$1)}function compile($){return dealloc(parse$1("",null,null,null,[""],$=alloc($),0,[0],$))}function parse$1($,et,tt,rt,nt,it,At,at,ot){for(var st=0,ct=0,ut=At,gt=0,dt=0,ht=0,Et=1,wt=1,Qt=1,pt=0,mt="",$t=nt,Tt=it,Ut=rt,Pt=mt;wt;)switch(ht=pt,pt=next()){case 40:if(ht!=108&&charat(Pt,ut-1)==58){indexof(Pt+=replace(delimit(pt),"&","&\f"),"&\f")!=-1&&(Qt=-1);break}case 34:case 39:case 91:Pt+=delimit(pt);break;case 9:case 10:case 13:case 32:Pt+=whitespace(ht);break;case 92:Pt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),et,tt),ot);break;default:Pt+="/"}break;case 123*Et:at[st++]=strlen(Pt)*Qt;case 125*Et:case 59:case 0:switch(pt){case 0:case 125:wt=0;case 59+ct:Qt==-1&&(Pt=replace(Pt,/\f/g,"")),dt>0&&strlen(Pt)-ut&&append(dt>32?declaration(Pt+";",rt,tt,ut-1):declaration(replace(Pt," ","")+";",rt,tt,ut-2),ot);break;case 59:Pt+=";";default:if(append(Ut=ruleset(Pt,et,tt,st,ct,nt,at,mt,$t=[],Tt=[],ut),it),pt===123)if(ct===0)parse$1(Pt,et,Ut,Ut,$t,it,ut,at,Tt);else switch(gt===99&&charat(Pt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1($,Ut,Ut,rt&&append(ruleset($,Ut,Ut,0,0,nt,at,mt,nt,$t=[],ut),Tt),nt,Tt,ut,at,rt?$t:Tt);break;default:parse$1(Pt,Ut,Ut,Ut,[""],Tt,0,at,Tt)}}st=ct=dt=0,Et=Qt=1,mt=Pt="",ut=At;break;case 58:ut=1+strlen(Pt),dt=ht;default:if(Et<1){if(pt==123)--Et;else if(pt==125&&Et++==0&&prev()==125)continue}switch(Pt+=from(pt),pt*Et){case 38:Qt=ct>0?1:(Pt+="\f",-1);break;case 44:at[st++]=(strlen(Pt)-1)*Qt,Qt=1;break;case 64:peek()===45&&(Pt+=delimit(next())),gt=peek(),ct=ut=strlen(mt=Pt+=identifier(caret())),pt++;break;case 45:ht===45&&strlen(Pt)==2&&(Et=0)}}return it}function ruleset($,et,tt,rt,nt,it,At,at,ot,st,ct){for(var ut=nt-1,gt=nt===0?it:[""],dt=sizeof(gt),ht=0,Et=0,wt=0;ht0?gt[Qt]+" "+pt:replace(pt,/&\f/g,gt[Qt])))&&(ot[wt++]=mt);return node($,et,tt,nt===0?RULESET:at,ot,st,ct)}function comment($,et,tt){return node($,et,tt,COMMENT,from(char()),substr($,2,-2),0)}function declaration($,et,tt,rt){return node($,et,tt,DECLARATION,substr($,0,rt),substr($,rt+1,-1),rt)}function serialize($,et){for(var tt="",rt=sizeof($),nt=0;nt6)switch(charat($,et+1)){case 109:if(charat($,et+4)!==45)break;case 102:return replace($,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat($,et+3)==108?"$3":"$2-$3"))+$;case 115:return~indexof($,"stretch")?prefix(replace($,"stretch","fill-available"),et)+$:$}break;case 4949:if(charat($,et+1)!==115)break;case 6444:switch(charat($,strlen($)-3-(~indexof($,"!important")&&10))){case 107:return replace($,":",":"+WEBKIT)+$;case 101:return replace($,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat($,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+$}break;case 5936:switch(charat($,et+11)){case 114:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb")+$;case 108:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb-rl")+$;case 45:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"lr")+$}return WEBKIT+$+MS+$+$}return $}var prefixer=function(et,tt,rt,nt){if(et.length>-1&&!et.return)switch(et.type){case DECLARATION:et.return=prefix(et.value,et.length);break;case KEYFRAMES:return serialize([copy(et,{value:replace(et.value,"@","@"+WEBKIT)})],nt);case RULESET:if(et.length)return combine(et.props,function(it){switch(match(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(et,{props:[replace(it,/:(read-\w+)/,":"+MOZ+"$1")]})],nt);case"::placeholder":return serialize([copy(et,{props:[replace(it,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(et,{props:[replace(it,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(et,{props:[replace(it,/:(plac\w+)/,MS+"input-$1")]})],nt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(et){var tt=et.key;if(tt==="css"){var rt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(rt,function(Et){var wt=Et.getAttribute("data-emotion");wt.indexOf(" ")!==-1&&(document.head.appendChild(Et),Et.setAttribute("data-s",""))})}var nt=et.stylisPlugins||defaultStylisPlugins,it={},At,at=[];At=et.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+tt+' "]'),function(Et){for(var wt=Et.getAttribute("data-emotion").split(" "),Qt=1;Qt{st&&startTransitionImpl?startTransitionImpl(()=>ot(ut)):ot(ut)},[ot,st]);return reactExports.useLayoutEffect(()=>At.listen(ct),[At,ct]),reactExports.createElement(Router,{basename:et,children:tt,location:at.location,navigationType:at.action,navigator:At})}var DataRouterHook;(function($){$.UseScrollRestoration="useScrollRestoration",$.UseSubmit="useSubmit",$.UseSubmitFetcher="useSubmitFetcher",$.UseFetcher="useFetcher"})(DataRouterHook||(DataRouterHook={}));var DataRouterStateHook;(function($){$.UseFetchers="useFetchers",$.UseScrollRestoration="useScrollRestoration"})(DataRouterStateHook||(DataRouterStateHook={}));function sheetForTag($){if($.sheet)return $.sheet;for(var et=0;et0?charat(characters,--position$1):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$12||token(character)>3?"":" "}function escaping($,et){for(;--et&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice($,caret()+(et<6&&peek()==32&&next()==32))}function delimiter($){for(;next();)switch(character){case $:return position$1;case 34:case 39:$!==34&&$!==39&&delimiter(character);break;case 40:$===41&&delimiter($);break;case 92:next();break}return position$1}function commenter($,et){for(;next()&&$+character!==47+10;)if($+character===42+42&&peek()===47)break;return"/*"+slice(et,position$1-1)+"*"+from($===47?$:next())}function identifier($){for(;!token(peek());)next();return slice($,position$1)}function compile($){return dealloc(parse$1("",null,null,null,[""],$=alloc($),0,[0],$))}function parse$1($,et,tt,rt,nt,it,At,at,ot){for(var st=0,ct=0,ut=At,gt=0,dt=0,ht=0,Et=1,wt=1,mt=1,pt=0,Qt="",$t=nt,Gt=it,Tt=rt,Pt=Qt;wt;)switch(ht=pt,pt=next()){case 40:if(ht!=108&&charat(Pt,ut-1)==58){indexof(Pt+=replace(delimit(pt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:Pt+=delimit(pt);break;case 9:case 10:case 13:case 32:Pt+=whitespace(ht);break;case 92:Pt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),et,tt),ot);break;default:Pt+="/"}break;case 123*Et:at[st++]=strlen(Pt)*mt;case 125*Et:case 59:case 0:switch(pt){case 0:case 125:wt=0;case 59+ct:mt==-1&&(Pt=replace(Pt,/\f/g,"")),dt>0&&strlen(Pt)-ut&&append(dt>32?declaration(Pt+";",rt,tt,ut-1):declaration(replace(Pt," ","")+";",rt,tt,ut-2),ot);break;case 59:Pt+=";";default:if(append(Tt=ruleset(Pt,et,tt,st,ct,nt,at,Qt,$t=[],Gt=[],ut),it),pt===123)if(ct===0)parse$1(Pt,et,Tt,Tt,$t,it,ut,at,Gt);else switch(gt===99&&charat(Pt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1($,Tt,Tt,rt&&append(ruleset($,Tt,Tt,0,0,nt,at,Qt,nt,$t=[],ut),Gt),nt,Gt,ut,at,rt?$t:Gt);break;default:parse$1(Pt,Tt,Tt,Tt,[""],Gt,0,at,Gt)}}st=ct=dt=0,Et=mt=1,Qt=Pt="",ut=At;break;case 58:ut=1+strlen(Pt),dt=ht;default:if(Et<1){if(pt==123)--Et;else if(pt==125&&Et++==0&&prev()==125)continue}switch(Pt+=from(pt),pt*Et){case 38:mt=ct>0?1:(Pt+="\f",-1);break;case 44:at[st++]=(strlen(Pt)-1)*mt,mt=1;break;case 64:peek()===45&&(Pt+=delimit(next())),gt=peek(),ct=ut=strlen(Qt=Pt+=identifier(caret())),pt++;break;case 45:ht===45&&strlen(Pt)==2&&(Et=0)}}return it}function ruleset($,et,tt,rt,nt,it,At,at,ot,st,ct){for(var ut=nt-1,gt=nt===0?it:[""],dt=sizeof(gt),ht=0,Et=0,wt=0;ht0?gt[mt]+" "+pt:replace(pt,/&\f/g,gt[mt])))&&(ot[wt++]=Qt);return node($,et,tt,nt===0?RULESET:at,ot,st,ct)}function comment($,et,tt){return node($,et,tt,COMMENT,from(char()),substr($,2,-2),0)}function declaration($,et,tt,rt){return node($,et,tt,DECLARATION,substr($,0,rt),substr($,rt+1,-1),rt)}function serialize($,et){for(var tt="",rt=sizeof($),nt=0;nt6)switch(charat($,et+1)){case 109:if(charat($,et+4)!==45)break;case 102:return replace($,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat($,et+3)==108?"$3":"$2-$3"))+$;case 115:return~indexof($,"stretch")?prefix(replace($,"stretch","fill-available"),et)+$:$}break;case 4949:if(charat($,et+1)!==115)break;case 6444:switch(charat($,strlen($)-3-(~indexof($,"!important")&&10))){case 107:return replace($,":",":"+WEBKIT)+$;case 101:return replace($,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat($,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+$}break;case 5936:switch(charat($,et+11)){case 114:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb")+$;case 108:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"tb-rl")+$;case 45:return WEBKIT+$+MS+replace($,/[svh]\w+-[tblr]{2}/,"lr")+$}return WEBKIT+$+MS+$+$}return $}var prefixer=function(et,tt,rt,nt){if(et.length>-1&&!et.return)switch(et.type){case DECLARATION:et.return=prefix(et.value,et.length);break;case KEYFRAMES:return serialize([copy(et,{value:replace(et.value,"@","@"+WEBKIT)})],nt);case RULESET:if(et.length)return combine(et.props,function(it){switch(match(it,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(et,{props:[replace(it,/:(read-\w+)/,":"+MOZ+"$1")]})],nt);case"::placeholder":return serialize([copy(et,{props:[replace(it,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(et,{props:[replace(it,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(et,{props:[replace(it,/:(plac\w+)/,MS+"input-$1")]})],nt)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(et){var tt=et.key;if(tt==="css"){var rt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(rt,function(Et){var wt=Et.getAttribute("data-emotion");wt.indexOf(" ")!==-1&&(document.head.appendChild(Et),Et.setAttribute("data-s",""))})}var nt=et.stylisPlugins||defaultStylisPlugins,it={},At,at=[];At=et.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+tt+' "]'),function(Et){for(var wt=Et.getAttribute("data-emotion").split(" "),mt=1;mtet in $?oo($,et,{enumerable:!0,co * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function($){function et(Xt,Ot){var bt=Xt.length;Xt.push(Ot);e:for(;0>>1,Ar=Xt[kt];if(0>>1;ktnt(Qr,bt))_rnt(qr,Qr)?(Xt[kt]=qr,Xt[_r]=bt,kt=_r):(Xt[kt]=Qr,Xt[Rt]=bt,kt=Rt);else if(_rnt(qr,bt))Xt[kt]=qr,Xt[_r]=bt,kt=_r;else break e}}return Ot}function nt(Xt,Ot){var bt=Xt.sortIndex-Ot.sortIndex;return bt!==0?bt:Xt.id-Ot.id}if(typeof performance=="object"&&typeof performance.now=="function"){var it=performance;$.unstable_now=function(){return it.now()}}else{var At=Date,at=At.now();$.unstable_now=function(){return At.now()-at}}var ot=[],st=[],ct=1,ut=null,gt=3,dt=!1,ht=!1,Et=!1,wt=typeof setTimeout=="function"?setTimeout:null,Qt=typeof clearTimeout=="function"?clearTimeout:null,pt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function mt(Xt){for(var Ot=tt(st);Ot!==null;){if(Ot.callback===null)rt(st);else if(Ot.startTime<=Xt)rt(st),Ot.sortIndex=Ot.expirationTime,et(ot,Ot);else break;Ot=tt(st)}}function $t(Xt){if(Et=!1,mt(Xt),!ht)if(tt(ot)!==null)ht=!0,Jt(Tt);else{var Ot=tt(st);Ot!==null&&nr($t,Ot.startTime-Xt)}}function Tt(Xt,Ot){ht=!1,Et&&(Et=!1,Qt(Kt),Kt=-1),dt=!0;var bt=gt;try{for(mt(Ot),ut=tt(ot);ut!==null&&(!(ut.expirationTime>Ot)||Xt&&!Mt());){var kt=ut.callback;if(typeof kt=="function"){ut.callback=null,gt=ut.priorityLevel;var Ar=kt(ut.expirationTime<=Ot);Ot=$.unstable_now(),typeof Ar=="function"?ut.callback=Ar:ut===tt(ot)&&rt(ot),mt(Ot)}else rt(ot);ut=tt(ot)}if(ut!==null)var cr=!0;else{var Rt=tt(st);Rt!==null&&nr($t,Rt.startTime-Ot),cr=!1}return cr}finally{ut=null,gt=bt,dt=!1}}var Ut=!1,Pt=null,Kt=-1,zt=5,Yt=-1;function Mt(){return!($.unstable_now()-YtXt||125kt?(Xt.sortIndex=bt,et(st,Xt),tt(ot)===null&&Xt===tt(st)&&(Et?(Qt(Kt),Kt=-1):Et=!0,nr($t,bt-kt))):(Xt.sortIndex=Ar,et(ot,Xt),ht||dt||(ht=!0,Jt(Tt))),Xt},$.unstable_shouldYield=Mt,$.unstable_wrapCallback=function(Xt){var Ot=gt;return function(){var bt=gt;gt=Ot;try{return Xt.apply(this,arguments)}finally{gt=bt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function($){function et(Wt,Ot){var bt=Wt.length;Wt.push(Ot);e:for(;0>>1,Ar=Wt[kt];if(0>>1;ktnt(Qr,bt))_rnt(qr,Qr)?(Wt[kt]=qr,Wt[_r]=bt,kt=_r):(Wt[kt]=Qr,Wt[Rt]=bt,kt=Rt);else if(_rnt(qr,bt))Wt[kt]=qr,Wt[_r]=bt,kt=_r;else break e}}return Ot}function nt(Wt,Ot){var bt=Wt.sortIndex-Ot.sortIndex;return bt!==0?bt:Wt.id-Ot.id}if(typeof performance=="object"&&typeof performance.now=="function"){var it=performance;$.unstable_now=function(){return it.now()}}else{var At=Date,at=At.now();$.unstable_now=function(){return At.now()-at}}var ot=[],st=[],ct=1,ut=null,gt=3,dt=!1,ht=!1,Et=!1,wt=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,pt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Qt(Wt){for(var Ot=tt(st);Ot!==null;){if(Ot.callback===null)rt(st);else if(Ot.startTime<=Wt)rt(st),Ot.sortIndex=Ot.expirationTime,et(ot,Ot);else break;Ot=tt(st)}}function $t(Wt){if(Et=!1,Qt(Wt),!ht)if(tt(ot)!==null)ht=!0,Jt(Gt);else{var Ot=tt(st);Ot!==null&&rr($t,Ot.startTime-Wt)}}function Gt(Wt,Ot){ht=!1,Et&&(Et=!1,mt(Kt),Kt=-1),dt=!0;var bt=gt;try{for(Qt(Ot),ut=tt(ot);ut!==null&&(!(ut.expirationTime>Ot)||Wt&&!Mt());){var kt=ut.callback;if(typeof kt=="function"){ut.callback=null,gt=ut.priorityLevel;var Ar=kt(ut.expirationTime<=Ot);Ot=$.unstable_now(),typeof Ar=="function"?ut.callback=Ar:ut===tt(ot)&&rt(ot),Qt(Ot)}else rt(ot);ut=tt(ot)}if(ut!==null)var cr=!0;else{var Rt=tt(st);Rt!==null&&rr($t,Rt.startTime-Ot),cr=!1}return cr}finally{ut=null,gt=bt,dt=!1}}var Tt=!1,Pt=null,Kt=-1,ir=5,jt=-1;function Mt(){return!($.unstable_now()-jtWt||125kt?(Wt.sortIndex=bt,et(st,Wt),tt(ot)===null&&Wt===tt(st)&&(Et?(mt(Kt),Kt=-1):Et=!0,rr($t,bt-kt))):(Wt.sortIndex=Ar,et(ot,Wt),ht||dt||(ht=!0,Jt(Gt))),Wt},$.unstable_shouldYield=Mt,$.unstable_wrapCallback=function(Wt){var Ot=gt;return function(){var bt=gt;gt=Ot;try{return Wt.apply(this,arguments)}finally{gt=bt}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -347,10 +347,10 @@ var oo=Object.defineProperty;var so=($,et,tt)=>et in $?oo($,et,{enumerable:!0,co `+La+$}var Na=!1;function Oa($,et){if(!$||Na)return"";Na=!0;var tt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(et)if(et=function(){throw Error()},Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(st){var rt=st}Reflect.construct($,[],et)}else{try{et.call()}catch(st){rt=st}$.call(et.prototype)}else{try{throw Error()}catch(st){rt=st}$()}}catch(st){if(st&&rt&&typeof st.stack=="string"){for(var nt=st.stack.split(` `),it=rt.stack.split(` `),At=nt.length-1,at=it.length-1;1<=At&&0<=at&&nt[At]!==it[at];)at--;for(;1<=At&&0<=at;At--,at--)if(nt[At]!==it[at]){if(At!==1||at!==1)do if(At--,at--,0>at||nt[At]!==it[at]){var ot=` -`+nt[At].replace(" at new "," at ");return $.displayName&&ot.includes("")&&(ot=ot.replace("",$.displayName)),ot}while(1<=At&&0<=at);break}}}finally{Na=!1,Error.prepareStackTrace=tt}return($=$?$.displayName||$.name:"")?Ma($):""}function Pa($){switch($.tag){case 5:return Ma($.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return $=Oa($.type,!1),$;case 11:return $=Oa($.type.render,!1),$;case 1:return $=Oa($.type,!0),$;default:return""}}function Qa($){if($==null)return null;if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case Ca:return($.displayName||"Context")+".Consumer";case Ba:return($._context.displayName||"Context")+".Provider";case Da:var et=$.render;return $=$.displayName,$||($=et.displayName||et.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Ga:return et=$.displayName||null,et!==null?et:Qa($.type)||"Memo";case Ha:et=$._payload,$=$._init;try{return Qa($(et))}catch{}}return null}function Ra($){var et=$.type;switch($.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return $=et.render,$=$.displayName||$.name||"",et.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa($){switch(typeof $){case"boolean":case"number":case"string":case"undefined":return $;case"object":return $;default:return""}}function Ta($){var et=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua($){var et=Ta($)?"checked":"value",tt=Object.getOwnPropertyDescriptor($.constructor.prototype,et),rt=""+$[et];if(!$.hasOwnProperty(et)&&typeof tt<"u"&&typeof tt.get=="function"&&typeof tt.set=="function"){var nt=tt.get,it=tt.set;return Object.defineProperty($,et,{configurable:!0,get:function(){return nt.call(this)},set:function(At){rt=""+At,it.call(this,At)}}),Object.defineProperty($,et,{enumerable:tt.enumerable}),{getValue:function(){return rt},setValue:function(At){rt=""+At},stopTracking:function(){$._valueTracker=null,delete $[et]}}}}function Va($){$._valueTracker||($._valueTracker=Ua($))}function Wa($){if(!$)return!1;var et=$._valueTracker;if(!et)return!0;var tt=et.getValue(),rt="";return $&&(rt=Ta($)?$.checked?"true":"false":$.value),$=rt,$!==tt?(et.setValue($),!0):!1}function Xa($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch{return $.body}}function Ya($,et){var tt=et.checked;return A$1({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:tt??$._wrapperState.initialChecked})}function Za($,et){var tt=et.defaultValue==null?"":et.defaultValue,rt=et.checked!=null?et.checked:et.defaultChecked;tt=Sa(et.value!=null?et.value:tt),$._wrapperState={initialChecked:rt,initialValue:tt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab($,et){et=et.checked,et!=null&&ta($,"checked",et,!1)}function bb($,et){ab($,et);var tt=Sa(et.value),rt=et.type;if(tt!=null)rt==="number"?(tt===0&&$.value===""||$.value!=tt)&&($.value=""+tt):$.value!==""+tt&&($.value=""+tt);else if(rt==="submit"||rt==="reset"){$.removeAttribute("value");return}et.hasOwnProperty("value")?cb($,et.type,tt):et.hasOwnProperty("defaultValue")&&cb($,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&($.defaultChecked=!!et.defaultChecked)}function db($,et,tt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var rt=et.type;if(!(rt!=="submit"&&rt!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+$._wrapperState.initialValue,tt||et===$.value||($.value=et),$.defaultValue=et}tt=$.name,tt!==""&&($.name=""),$.defaultChecked=!!$._wrapperState.initialChecked,tt!==""&&($.name=tt)}function cb($,et,tt){(et!=="number"||Xa($.ownerDocument)!==$)&&(tt==null?$.defaultValue=""+$._wrapperState.initialValue:$.defaultValue!==""+tt&&($.defaultValue=""+tt))}var eb=Array.isArray;function fb($,et,tt,rt){if($=$.options,et){et={};for(var nt=0;nt"+et.valueOf().toString()+"",et=mb.firstChild;$.firstChild;)$.removeChild($.firstChild);for(;et.firstChild;)$.appendChild(et.firstChild)}});function ob($,et){if(et){var tt=$.firstChild;if(tt&&tt===$.lastChild&&tt.nodeType===3){tt.nodeValue=et;return}}$.textContent=et}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function($){qb.forEach(function(et){et=et+$.charAt(0).toUpperCase()+$.substring(1),pb[et]=pb[$]})});function rb($,et,tt){return et==null||typeof et=="boolean"||et===""?"":tt||typeof et!="number"||et===0||pb.hasOwnProperty($)&&pb[$]?(""+et).trim():et+"px"}function sb($,et){$=$.style;for(var tt in et)if(et.hasOwnProperty(tt)){var rt=tt.indexOf("--")===0,nt=rb(tt,et[tt],rt);tt==="float"&&(tt="cssFloat"),rt?$.setProperty(tt,nt):$[tt]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub($,et){if(et){if(tb[$]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$4(137,$));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$4(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$4(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$4(62))}}function vb($,et){if($.indexOf("-")===-1)return typeof et.is=="string";switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}var yb=null,zb=null,Ab=null;function Bb($){if($=Cb($)){if(typeof yb!="function")throw Error(p$4(280));var et=$.stateNode;et&&(et=Db(et),yb($.stateNode,$.type,et))}}function Eb($){zb?Ab?Ab.push($):Ab=[$]:zb=$}function Fb(){if(zb){var $=zb,et=Ab;if(Ab=zb=null,Bb($),et)for($=0;$>>=0,$===0?32:31-(pc($)/qc|0)|0}var rc=64,sc=4194304;function tc($){switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return $&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return $&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return $}}function uc($,et){var tt=$.pendingLanes;if(tt===0)return 0;var rt=0,nt=$.suspendedLanes,it=$.pingedLanes,At=tt&268435455;if(At!==0){var at=At&~nt;at!==0?rt=tc(at):(it&=At,it!==0&&(rt=tc(it)))}else At=tt&~nt,At!==0?rt=tc(At):it!==0&&(rt=tc(it));if(rt===0)return 0;if(et!==0&&et!==rt&&!(et&nt)&&(nt=rt&-rt,it=et&-et,nt>=it||nt===16&&(it&4194240)!==0))return et;if(rt&4&&(rt|=tt&16),et=$.entangledLanes,et!==0)for($=$.entanglements,et&=rt;0tt;tt++)et.push($);return et}function Ac($,et,tt){$.pendingLanes|=et,et!==536870912&&($.suspendedLanes=0,$.pingedLanes=0),$=$.eventTimes,et=31-oc(et),$[et]=tt}function Bc($,et){var tt=$.pendingLanes&~et;$.pendingLanes=et,$.suspendedLanes=0,$.pingedLanes=0,$.expiredLanes&=et,$.mutableReadLanes&=et,$.entangledLanes&=et,et=$.entanglements;var rt=$.eventTimes;for($=$.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge($,et){switch($){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he($){return $=$.detail,typeof $=="object"&&"data"in $?$.data:null}var ie=!1;function je($,et){switch($){case"compositionend":return he(et);case"keypress":return et.which!==32?null:(fe=!0,ee);case"textInput":return $=et.data,$===ee&&fe?null:$;default:return null}}function ke($,et){if(ie)return $==="compositionend"||!ae&&ge($,et)?($=nd(),md=ld=kd=null,ie=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1=et)return{node:tt,offset:et-$};$=rt}e:{for(;tt;){if(tt.nextSibling){tt=tt.nextSibling;break e}tt=tt.parentNode}tt=void 0}tt=Je(tt)}}function Le($,et){return $&&et?$===et?!0:$&&$.nodeType===3?!1:et&&et.nodeType===3?Le($,et.parentNode):"contains"in $?$.contains(et):$.compareDocumentPosition?!!($.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var $=window,et=Xa();et instanceof $.HTMLIFrameElement;){try{var tt=typeof et.contentWindow.location.href=="string"}catch{tt=!1}if(tt)$=et.contentWindow;else break;et=Xa($.document)}return et}function Ne($){var et=$&&$.nodeName&&$.nodeName.toLowerCase();return et&&(et==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||et==="textarea"||$.contentEditable==="true")}function Oe($){var et=Me(),tt=$.focusedElem,rt=$.selectionRange;if(et!==tt&&tt&&tt.ownerDocument&&Le(tt.ownerDocument.documentElement,tt)){if(rt!==null&&Ne(tt)){if(et=rt.start,$=rt.end,$===void 0&&($=et),"selectionStart"in tt)tt.selectionStart=et,tt.selectionEnd=Math.min($,tt.value.length);else if($=(et=tt.ownerDocument||document)&&et.defaultView||window,$.getSelection){$=$.getSelection();var nt=tt.textContent.length,it=Math.min(rt.start,nt);rt=rt.end===void 0?it:Math.min(rt.end,nt),!$.extend&&it>rt&&(nt=rt,rt=it,it=nt),nt=Ke(tt,it);var At=Ke(tt,rt);nt&&At&&($.rangeCount!==1||$.anchorNode!==nt.node||$.anchorOffset!==nt.offset||$.focusNode!==At.node||$.focusOffset!==At.offset)&&(et=et.createRange(),et.setStart(nt.node,nt.offset),$.removeAllRanges(),it>rt?($.addRange(et),$.extend(At.node,At.offset)):(et.setEnd(At.node,At.offset),$.addRange(et)))}}for(et=[],$=tt;$=$.parentNode;)$.nodeType===1&&et.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof tt.focus=="function"&&tt.focus(),tt=0;tt=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue($,et,tt){var rt=tt.window===tt?tt.document:tt.nodeType===9?tt:tt.ownerDocument;Te||Qe==null||Qe!==Xa(rt)||(rt=Qe,"selectionStart"in rt&&Ne(rt)?rt={start:rt.selectionStart,end:rt.selectionEnd}:(rt=(rt.ownerDocument&&rt.ownerDocument.defaultView||window).getSelection(),rt={anchorNode:rt.anchorNode,anchorOffset:rt.anchorOffset,focusNode:rt.focusNode,focusOffset:rt.focusOffset}),Se&&Ie(Se,rt)||(Se=rt,rt=oe(Re,"onSelect"),0Tf||($.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1($,et){Tf++,Sf[Tf]=$.current,$.current=et}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf($,et){var tt=$.type.contextTypes;if(!tt)return Vf;var rt=$.stateNode;if(rt&&rt.__reactInternalMemoizedUnmaskedChildContext===et)return rt.__reactInternalMemoizedMaskedChildContext;var nt={},it;for(it in tt)nt[it]=et[it];return rt&&($=$.stateNode,$.__reactInternalMemoizedUnmaskedChildContext=et,$.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf($){return $=$.childContextTypes,$!=null}function $f(){E$1(Wf),E$1(H$1)}function ag($,et,tt){if(H$1.current!==Vf)throw Error(p$4(168));G$1(H$1,et),G$1(Wf,tt)}function bg($,et,tt){var rt=$.stateNode;if(et=et.childContextTypes,typeof rt.getChildContext!="function")return tt;rt=rt.getChildContext();for(var nt in rt)if(!(nt in et))throw Error(p$4(108,Ra($)||"Unknown",nt));return A$1({},tt,rt)}function cg($){return $=($=$.stateNode)&&$.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$1(H$1,$),G$1(Wf,Wf.current),!0}function dg($,et,tt){var rt=$.stateNode;if(!rt)throw Error(p$4(169));tt?($=bg($,et,Xf),rt.__reactInternalMemoizedMergedChildContext=$,E$1(Wf),E$1(H$1),G$1(H$1,$)):E$1(Wf),G$1(Wf,tt)}var eg=null,fg=!1,gg=!1;function hg($){eg===null?eg=[$]:eg.push($)}function ig($){fg=!0,hg($)}function jg(){if(!gg&&eg!==null){gg=!0;var $=0,et=C;try{var tt=eg;for(C=1;$>=At,nt-=At,rg=1<<32-oc(et)+nt|tt<Kt?(zt=Pt,Pt=null):zt=Pt.sibling;var Yt=gt(Qt,Pt,mt[Kt],$t);if(Yt===null){Pt===null&&(Pt=zt);break}$&&Pt&&Yt.alternate===null&&et(Qt,Pt),pt=it(Yt,pt,Kt),Ut===null?Tt=Yt:Ut.sibling=Yt,Ut=Yt,Pt=zt}if(Kt===mt.length)return tt(Qt,Pt),I$1&&tg(Qt,Kt),Tt;if(Pt===null){for(;KtKt?(zt=Pt,Pt=null):zt=Pt.sibling;var Mt=gt(Qt,Pt,Yt.value,$t);if(Mt===null){Pt===null&&(Pt=zt);break}$&&Pt&&Mt.alternate===null&&et(Qt,Pt),pt=it(Mt,pt,Kt),Ut===null?Tt=Mt:Ut.sibling=Mt,Ut=Mt,Pt=zt}if(Yt.done)return tt(Qt,Pt),I$1&&tg(Qt,Kt),Tt;if(Pt===null){for(;!Yt.done;Kt++,Yt=mt.next())Yt=ut(Qt,Yt.value,$t),Yt!==null&&(pt=it(Yt,pt,Kt),Ut===null?Tt=Yt:Ut.sibling=Yt,Ut=Yt);return I$1&&tg(Qt,Kt),Tt}for(Pt=rt(Qt,Pt);!Yt.done;Kt++,Yt=mt.next())Yt=dt(Pt,Qt,Kt,Yt.value,$t),Yt!==null&&($&&Yt.alternate!==null&&Pt.delete(Yt.key===null?Kt:Yt.key),pt=it(Yt,pt,Kt),Ut===null?Tt=Yt:Ut.sibling=Yt,Ut=Yt);return $&&Pt.forEach(function(Bt){return et(Qt,Bt)}),I$1&&tg(Qt,Kt),Tt}function wt(Qt,pt,mt,$t){if(typeof mt=="object"&&mt!==null&&mt.type===ya&&mt.key===null&&(mt=mt.props.children),typeof mt=="object"&&mt!==null){switch(mt.$$typeof){case va:e:{for(var Tt=mt.key,Ut=pt;Ut!==null;){if(Ut.key===Tt){if(Tt=mt.type,Tt===ya){if(Ut.tag===7){tt(Qt,Ut.sibling),pt=nt(Ut,mt.props.children),pt.return=Qt,Qt=pt;break e}}else if(Ut.elementType===Tt||typeof Tt=="object"&&Tt!==null&&Tt.$$typeof===Ha&&uh(Tt)===Ut.type){tt(Qt,Ut.sibling),pt=nt(Ut,mt.props),pt.ref=sh$1(Qt,Ut,mt),pt.return=Qt,Qt=pt;break e}tt(Qt,Ut);break}else et(Qt,Ut);Ut=Ut.sibling}mt.type===ya?(pt=Ah(mt.props.children,Qt.mode,$t,mt.key),pt.return=Qt,Qt=pt):($t=yh(mt.type,mt.key,mt.props,null,Qt.mode,$t),$t.ref=sh$1(Qt,pt,mt),$t.return=Qt,Qt=$t)}return At(Qt);case wa:e:{for(Ut=mt.key;pt!==null;){if(pt.key===Ut)if(pt.tag===4&&pt.stateNode.containerInfo===mt.containerInfo&&pt.stateNode.implementation===mt.implementation){tt(Qt,pt.sibling),pt=nt(pt,mt.children||[]),pt.return=Qt,Qt=pt;break e}else{tt(Qt,pt);break}else et(Qt,pt);pt=pt.sibling}pt=zh(mt,Qt.mode,$t),pt.return=Qt,Qt=pt}return At(Qt);case Ha:return Ut=mt._init,wt(Qt,pt,Ut(mt._payload),$t)}if(eb(mt))return ht(Qt,pt,mt,$t);if(Ka(mt))return Et(Qt,pt,mt,$t);th(Qt,mt)}return typeof mt=="string"&&mt!==""||typeof mt=="number"?(mt=""+mt,pt!==null&&pt.tag===6?(tt(Qt,pt.sibling),pt=nt(pt,mt),pt.return=Qt,Qt=pt):(tt(Qt,pt),pt=xh(mt,Qt.mode,$t),pt.return=Qt,Qt=pt),At(Qt)):tt(Qt,pt)}return wt}var Bh=vh$1(!0),Ch=vh$1(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh($){if($===Dh)throw Error(p$4(174));return $}function Ih($,et){switch(G$1(Gh,et),G$1(Fh,$),G$1(Eh,Dh),$=et.nodeType,$){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:$=$===8?et.parentNode:et,et=$.namespaceURI||null,$=$.tagName,et=lb(et,$)}E$1(Eh),G$1(Eh,et)}function Jh(){E$1(Eh),E$1(Fh),E$1(Gh)}function Kh$1($){Hh(Gh.current);var et=Hh(Eh.current),tt=lb(et,$.type);et!==tt&&(G$1(Fh,$),G$1(Eh,tt))}function Lh($){Fh.current===$&&(E$1(Eh),E$1(Fh))}var M$1=Uf(0);function Mh($){for(var et=$;et!==null;){if(et.tag===13){var tt=et.memoizedState;if(tt!==null&&(tt=tt.dehydrated,tt===null||tt.data==="$?"||tt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===$)break;for(;et.sibling===null;){if(et.return===null||et.return===$)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var $=0;$tt?tt:4,$(!0);var rt=Qh.transition;Qh.transition={};try{$(!1),et()}finally{C=tt,Qh.transition=rt}}function Fi(){return di().memoizedState}function Gi($,et,tt){var rt=lh($);if(tt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null},Hi($))Ii(et,tt);else if(tt=Yg($,et,tt,rt),tt!==null){var nt=L$1();mh(tt,$,rt,nt),Ji(tt,et,rt)}}function ri($,et,tt){var rt=lh($),nt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null};if(Hi($))Ii(et,nt);else{var it=$.alternate;if($.lanes===0&&(it===null||it.lanes===0)&&(it=et.lastRenderedReducer,it!==null))try{var At=et.lastRenderedState,at=it(At,tt);if(nt.hasEagerState=!0,nt.eagerState=at,He(at,At)){var ot=et.interleaved;ot===null?(nt.next=nt,Xg(et)):(nt.next=ot.next,ot.next=nt),et.interleaved=nt;return}}catch{}finally{}tt=Yg($,et,nt,rt),tt!==null&&(nt=L$1(),mh(tt,$,rt,nt),Ji(tt,et,rt))}}function Hi($){var et=$.alternate;return $===N$1||et!==null&&et===N$1}function Ii($,et){Th=Sh=!0;var tt=$.pending;tt===null?et.next=et:(et.next=tt.next,tt.next=et),$.pending=et}function Ji($,et,tt){if(tt&4194240){var rt=et.lanes;rt&=$.pendingLanes,tt|=rt,et.lanes=tt,Cc($,tt)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function($,et){return ci().memoizedState=[$,et===void 0?null:et],$},useContext:Vg,useEffect:vi,useImperativeHandle:function($,et,tt){return tt=tt!=null?tt.concat([$]):null,ti(4194308,4,yi.bind(null,et,$),tt)},useLayoutEffect:function($,et){return ti(4194308,4,$,et)},useInsertionEffect:function($,et){return ti(4,2,$,et)},useMemo:function($,et){var tt=ci();return et=et===void 0?null:et,$=$(),tt.memoizedState=[$,et],$},useReducer:function($,et,tt){var rt=ci();return et=tt!==void 0?tt(et):et,rt.memoizedState=rt.baseState=et,$={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:et},rt.queue=$,$=$.dispatch=Gi.bind(null,N$1,$),[rt.memoizedState,$]},useRef:function($){var et=ci();return $={current:$},et.memoizedState=$},useState:qi,useDebugValue:Ai,useDeferredValue:function($){return ci().memoizedState=$},useTransition:function(){var $=qi(!1),et=$[0];return $=Ei.bind(null,$[1]),ci().memoizedState=$,[et,$]},useMutableSource:function(){},useSyncExternalStore:function($,et,tt){var rt=N$1,nt=ci();if(I$1){if(tt===void 0)throw Error(p$4(407));tt=tt()}else{if(tt=et(),R$1===null)throw Error(p$4(349));Rh&30||ni(rt,et,tt)}nt.memoizedState=tt;var it={value:tt,getSnapshot:et};return nt.queue=it,vi(ki.bind(null,rt,it,$),[$]),rt.flags|=2048,li(9,mi.bind(null,rt,it,tt,et),void 0,null),tt},useId:function(){var $=ci(),et=R$1.identifierPrefix;if(I$1){var tt=sg,rt=rg;tt=(rt&~(1<<32-oc(rt)-1)).toString(32)+tt,et=":"+et+"R"+tt,tt=Uh++,0")&&(ot=ot.replace("",$.displayName)),ot}while(1<=At&&0<=at);break}}}finally{Na=!1,Error.prepareStackTrace=tt}return($=$?$.displayName||$.name:"")?Ma($):""}function Pa($){switch($.tag){case 5:return Ma($.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return $=Oa($.type,!1),$;case 11:return $=Oa($.type.render,!1),$;case 1:return $=Oa($.type,!0),$;default:return""}}function Qa($){if($==null)return null;if(typeof $=="function")return $.displayName||$.name||null;if(typeof $=="string")return $;switch($){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case Ca:return($.displayName||"Context")+".Consumer";case Ba:return($._context.displayName||"Context")+".Provider";case Da:var et=$.render;return $=$.displayName,$||($=et.displayName||et.name||"",$=$!==""?"ForwardRef("+$+")":"ForwardRef"),$;case Ga:return et=$.displayName||null,et!==null?et:Qa($.type)||"Memo";case Ha:et=$._payload,$=$._init;try{return Qa($(et))}catch{}}return null}function Ra($){var et=$.type;switch($.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return $=et.render,$=$.displayName||$.name||"",et.displayName||($!==""?"ForwardRef("+$+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa($){switch(typeof $){case"boolean":case"number":case"string":case"undefined":return $;case"object":return $;default:return""}}function Ta($){var et=$.type;return($=$.nodeName)&&$.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua($){var et=Ta($)?"checked":"value",tt=Object.getOwnPropertyDescriptor($.constructor.prototype,et),rt=""+$[et];if(!$.hasOwnProperty(et)&&typeof tt<"u"&&typeof tt.get=="function"&&typeof tt.set=="function"){var nt=tt.get,it=tt.set;return Object.defineProperty($,et,{configurable:!0,get:function(){return nt.call(this)},set:function(At){rt=""+At,it.call(this,At)}}),Object.defineProperty($,et,{enumerable:tt.enumerable}),{getValue:function(){return rt},setValue:function(At){rt=""+At},stopTracking:function(){$._valueTracker=null,delete $[et]}}}}function Va($){$._valueTracker||($._valueTracker=Ua($))}function Wa($){if(!$)return!1;var et=$._valueTracker;if(!et)return!0;var tt=et.getValue(),rt="";return $&&(rt=Ta($)?$.checked?"true":"false":$.value),$=rt,$!==tt?(et.setValue($),!0):!1}function Xa($){if($=$||(typeof document<"u"?document:void 0),typeof $>"u")return null;try{return $.activeElement||$.body}catch{return $.body}}function Ya($,et){var tt=et.checked;return A$1({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:tt??$._wrapperState.initialChecked})}function Za($,et){var tt=et.defaultValue==null?"":et.defaultValue,rt=et.checked!=null?et.checked:et.defaultChecked;tt=Sa(et.value!=null?et.value:tt),$._wrapperState={initialChecked:rt,initialValue:tt,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab($,et){et=et.checked,et!=null&&ta($,"checked",et,!1)}function bb($,et){ab($,et);var tt=Sa(et.value),rt=et.type;if(tt!=null)rt==="number"?(tt===0&&$.value===""||$.value!=tt)&&($.value=""+tt):$.value!==""+tt&&($.value=""+tt);else if(rt==="submit"||rt==="reset"){$.removeAttribute("value");return}et.hasOwnProperty("value")?cb($,et.type,tt):et.hasOwnProperty("defaultValue")&&cb($,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&($.defaultChecked=!!et.defaultChecked)}function db($,et,tt){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var rt=et.type;if(!(rt!=="submit"&&rt!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+$._wrapperState.initialValue,tt||et===$.value||($.value=et),$.defaultValue=et}tt=$.name,tt!==""&&($.name=""),$.defaultChecked=!!$._wrapperState.initialChecked,tt!==""&&($.name=tt)}function cb($,et,tt){(et!=="number"||Xa($.ownerDocument)!==$)&&(tt==null?$.defaultValue=""+$._wrapperState.initialValue:$.defaultValue!==""+tt&&($.defaultValue=""+tt))}var eb=Array.isArray;function fb($,et,tt,rt){if($=$.options,et){et={};for(var nt=0;nt"+et.valueOf().toString()+"",et=mb.firstChild;$.firstChild;)$.removeChild($.firstChild);for(;et.firstChild;)$.appendChild(et.firstChild)}});function ob($,et){if(et){var tt=$.firstChild;if(tt&&tt===$.lastChild&&tt.nodeType===3){tt.nodeValue=et;return}}$.textContent=et}var pb={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function($){qb.forEach(function(et){et=et+$.charAt(0).toUpperCase()+$.substring(1),pb[et]=pb[$]})});function rb($,et,tt){return et==null||typeof et=="boolean"||et===""?"":tt||typeof et!="number"||et===0||pb.hasOwnProperty($)&&pb[$]?(""+et).trim():et+"px"}function sb($,et){$=$.style;for(var tt in et)if(et.hasOwnProperty(tt)){var rt=tt.indexOf("--")===0,nt=rb(tt,et[tt],rt);tt==="float"&&(tt="cssFloat"),rt?$.setProperty(tt,nt):$[tt]=nt}}var tb=A$1({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ub($,et){if(et){if(tb[$]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$4(137,$));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$4(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$4(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$4(62))}}function vb($,et){if($.indexOf("-")===-1)return typeof et.is=="string";switch($){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wb=null;function xb($){return $=$.target||$.srcElement||window,$.correspondingUseElement&&($=$.correspondingUseElement),$.nodeType===3?$.parentNode:$}var yb=null,zb=null,Ab=null;function Bb($){if($=Cb($)){if(typeof yb!="function")throw Error(p$4(280));var et=$.stateNode;et&&(et=Db(et),yb($.stateNode,$.type,et))}}function Eb($){zb?Ab?Ab.push($):Ab=[$]:zb=$}function Fb(){if(zb){var $=zb,et=Ab;if(Ab=zb=null,Bb($),et)for($=0;$>>=0,$===0?32:31-(pc($)/qc|0)|0}var rc=64,sc=4194304;function tc($){switch($&-$){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return $&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return $&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return $}}function uc($,et){var tt=$.pendingLanes;if(tt===0)return 0;var rt=0,nt=$.suspendedLanes,it=$.pingedLanes,At=tt&268435455;if(At!==0){var at=At&~nt;at!==0?rt=tc(at):(it&=At,it!==0&&(rt=tc(it)))}else At=tt&~nt,At!==0?rt=tc(At):it!==0&&(rt=tc(it));if(rt===0)return 0;if(et!==0&&et!==rt&&!(et&nt)&&(nt=rt&-rt,it=et&-et,nt>=it||nt===16&&(it&4194240)!==0))return et;if(rt&4&&(rt|=tt&16),et=$.entangledLanes,et!==0)for($=$.entanglements,et&=rt;0tt;tt++)et.push($);return et}function Ac($,et,tt){$.pendingLanes|=et,et!==536870912&&($.suspendedLanes=0,$.pingedLanes=0),$=$.eventTimes,et=31-oc(et),$[et]=tt}function Bc($,et){var tt=$.pendingLanes&~et;$.pendingLanes=et,$.suspendedLanes=0,$.pingedLanes=0,$.expiredLanes&=et,$.mutableReadLanes&=et,$.entangledLanes&=et,et=$.entanglements;var rt=$.eventTimes;for($=$.expirationTimes;0=be),ee=String.fromCharCode(32),fe=!1;function ge($,et){switch($){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he($){return $=$.detail,typeof $=="object"&&"data"in $?$.data:null}var ie=!1;function je($,et){switch($){case"compositionend":return he(et);case"keypress":return et.which!==32?null:(fe=!0,ee);case"textInput":return $=et.data,$===ee&&fe?null:$;default:return null}}function ke($,et){if(ie)return $==="compositionend"||!ae&&ge($,et)?($=nd(),md=ld=kd=null,ie=!1,$):null;switch($){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1=et)return{node:tt,offset:et-$};$=rt}e:{for(;tt;){if(tt.nextSibling){tt=tt.nextSibling;break e}tt=tt.parentNode}tt=void 0}tt=Je(tt)}}function Le($,et){return $&&et?$===et?!0:$&&$.nodeType===3?!1:et&&et.nodeType===3?Le($,et.parentNode):"contains"in $?$.contains(et):$.compareDocumentPosition?!!($.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var $=window,et=Xa();et instanceof $.HTMLIFrameElement;){try{var tt=typeof et.contentWindow.location.href=="string"}catch{tt=!1}if(tt)$=et.contentWindow;else break;et=Xa($.document)}return et}function Ne($){var et=$&&$.nodeName&&$.nodeName.toLowerCase();return et&&(et==="input"&&($.type==="text"||$.type==="search"||$.type==="tel"||$.type==="url"||$.type==="password")||et==="textarea"||$.contentEditable==="true")}function Oe($){var et=Me(),tt=$.focusedElem,rt=$.selectionRange;if(et!==tt&&tt&&tt.ownerDocument&&Le(tt.ownerDocument.documentElement,tt)){if(rt!==null&&Ne(tt)){if(et=rt.start,$=rt.end,$===void 0&&($=et),"selectionStart"in tt)tt.selectionStart=et,tt.selectionEnd=Math.min($,tt.value.length);else if($=(et=tt.ownerDocument||document)&&et.defaultView||window,$.getSelection){$=$.getSelection();var nt=tt.textContent.length,it=Math.min(rt.start,nt);rt=rt.end===void 0?it:Math.min(rt.end,nt),!$.extend&&it>rt&&(nt=rt,rt=it,it=nt),nt=Ke(tt,it);var At=Ke(tt,rt);nt&&At&&($.rangeCount!==1||$.anchorNode!==nt.node||$.anchorOffset!==nt.offset||$.focusNode!==At.node||$.focusOffset!==At.offset)&&(et=et.createRange(),et.setStart(nt.node,nt.offset),$.removeAllRanges(),it>rt?($.addRange(et),$.extend(At.node,At.offset)):(et.setEnd(At.node,At.offset),$.addRange(et)))}}for(et=[],$=tt;$=$.parentNode;)$.nodeType===1&&et.push({element:$,left:$.scrollLeft,top:$.scrollTop});for(typeof tt.focus=="function"&&tt.focus(),tt=0;tt=document.documentMode,Qe=null,Re=null,Se=null,Te=!1;function Ue($,et,tt){var rt=tt.window===tt?tt.document:tt.nodeType===9?tt:tt.ownerDocument;Te||Qe==null||Qe!==Xa(rt)||(rt=Qe,"selectionStart"in rt&&Ne(rt)?rt={start:rt.selectionStart,end:rt.selectionEnd}:(rt=(rt.ownerDocument&&rt.ownerDocument.defaultView||window).getSelection(),rt={anchorNode:rt.anchorNode,anchorOffset:rt.anchorOffset,focusNode:rt.focusNode,focusOffset:rt.focusOffset}),Se&&Ie(Se,rt)||(Se=rt,rt=oe(Re,"onSelect"),0Tf||($.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$1($,et){Tf++,Sf[Tf]=$.current,$.current=et}var Vf={},H$1=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf($,et){var tt=$.type.contextTypes;if(!tt)return Vf;var rt=$.stateNode;if(rt&&rt.__reactInternalMemoizedUnmaskedChildContext===et)return rt.__reactInternalMemoizedMaskedChildContext;var nt={},it;for(it in tt)nt[it]=et[it];return rt&&($=$.stateNode,$.__reactInternalMemoizedUnmaskedChildContext=et,$.__reactInternalMemoizedMaskedChildContext=nt),nt}function Zf($){return $=$.childContextTypes,$!=null}function $f(){E$1(Wf),E$1(H$1)}function ag($,et,tt){if(H$1.current!==Vf)throw Error(p$4(168));G$1(H$1,et),G$1(Wf,tt)}function bg($,et,tt){var rt=$.stateNode;if(et=et.childContextTypes,typeof rt.getChildContext!="function")return tt;rt=rt.getChildContext();for(var nt in rt)if(!(nt in et))throw Error(p$4(108,Ra($)||"Unknown",nt));return A$1({},tt,rt)}function cg($){return $=($=$.stateNode)&&$.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$1.current,G$1(H$1,$),G$1(Wf,Wf.current),!0}function dg($,et,tt){var rt=$.stateNode;if(!rt)throw Error(p$4(169));tt?($=bg($,et,Xf),rt.__reactInternalMemoizedMergedChildContext=$,E$1(Wf),E$1(H$1),G$1(H$1,$)):E$1(Wf),G$1(Wf,tt)}var eg=null,fg=!1,gg=!1;function hg($){eg===null?eg=[$]:eg.push($)}function ig($){fg=!0,hg($)}function jg(){if(!gg&&eg!==null){gg=!0;var $=0,et=C;try{var tt=eg;for(C=1;$>=At,nt-=At,rg=1<<32-oc(et)+nt|tt<Kt?(ir=Pt,Pt=null):ir=Pt.sibling;var jt=gt(mt,Pt,Qt[Kt],$t);if(jt===null){Pt===null&&(Pt=ir);break}$&&Pt&&jt.alternate===null&&et(mt,Pt),pt=it(jt,pt,Kt),Tt===null?Gt=jt:Tt.sibling=jt,Tt=jt,Pt=ir}if(Kt===Qt.length)return tt(mt,Pt),I$1&&tg(mt,Kt),Gt;if(Pt===null){for(;KtKt?(ir=Pt,Pt=null):ir=Pt.sibling;var Mt=gt(mt,Pt,jt.value,$t);if(Mt===null){Pt===null&&(Pt=ir);break}$&&Pt&&Mt.alternate===null&&et(mt,Pt),pt=it(Mt,pt,Kt),Tt===null?Gt=Mt:Tt.sibling=Mt,Tt=Mt,Pt=ir}if(jt.done)return tt(mt,Pt),I$1&&tg(mt,Kt),Gt;if(Pt===null){for(;!jt.done;Kt++,jt=Qt.next())jt=ut(mt,jt.value,$t),jt!==null&&(pt=it(jt,pt,Kt),Tt===null?Gt=jt:Tt.sibling=jt,Tt=jt);return I$1&&tg(mt,Kt),Gt}for(Pt=rt(mt,Pt);!jt.done;Kt++,jt=Qt.next())jt=dt(Pt,mt,Kt,jt.value,$t),jt!==null&&($&&jt.alternate!==null&&Pt.delete(jt.key===null?Kt:jt.key),pt=it(jt,pt,Kt),Tt===null?Gt=jt:Tt.sibling=jt,Tt=jt);return $&&Pt.forEach(function(Bt){return et(mt,Bt)}),I$1&&tg(mt,Kt),Gt}function wt(mt,pt,Qt,$t){if(typeof Qt=="object"&&Qt!==null&&Qt.type===ya&&Qt.key===null&&(Qt=Qt.props.children),typeof Qt=="object"&&Qt!==null){switch(Qt.$$typeof){case va:e:{for(var Gt=Qt.key,Tt=pt;Tt!==null;){if(Tt.key===Gt){if(Gt=Qt.type,Gt===ya){if(Tt.tag===7){tt(mt,Tt.sibling),pt=nt(Tt,Qt.props.children),pt.return=mt,mt=pt;break e}}else if(Tt.elementType===Gt||typeof Gt=="object"&&Gt!==null&&Gt.$$typeof===Ha&&uh(Gt)===Tt.type){tt(mt,Tt.sibling),pt=nt(Tt,Qt.props),pt.ref=sh$1(mt,Tt,Qt),pt.return=mt,mt=pt;break e}tt(mt,Tt);break}else et(mt,Tt);Tt=Tt.sibling}Qt.type===ya?(pt=Ah(Qt.props.children,mt.mode,$t,Qt.key),pt.return=mt,mt=pt):($t=yh(Qt.type,Qt.key,Qt.props,null,mt.mode,$t),$t.ref=sh$1(mt,pt,Qt),$t.return=mt,mt=$t)}return At(mt);case wa:e:{for(Tt=Qt.key;pt!==null;){if(pt.key===Tt)if(pt.tag===4&&pt.stateNode.containerInfo===Qt.containerInfo&&pt.stateNode.implementation===Qt.implementation){tt(mt,pt.sibling),pt=nt(pt,Qt.children||[]),pt.return=mt,mt=pt;break e}else{tt(mt,pt);break}else et(mt,pt);pt=pt.sibling}pt=zh(Qt,mt.mode,$t),pt.return=mt,mt=pt}return At(mt);case Ha:return Tt=Qt._init,wt(mt,pt,Tt(Qt._payload),$t)}if(eb(Qt))return ht(mt,pt,Qt,$t);if(Ka(Qt))return Et(mt,pt,Qt,$t);th(mt,Qt)}return typeof Qt=="string"&&Qt!==""||typeof Qt=="number"?(Qt=""+Qt,pt!==null&&pt.tag===6?(tt(mt,pt.sibling),pt=nt(pt,Qt),pt.return=mt,mt=pt):(tt(mt,pt),pt=xh(Qt,mt.mode,$t),pt.return=mt,mt=pt),At(mt)):tt(mt,pt)}return wt}var Bh=vh$1(!0),Ch=vh$1(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh($){if($===Dh)throw Error(p$4(174));return $}function Ih($,et){switch(G$1(Gh,et),G$1(Fh,$),G$1(Eh,Dh),$=et.nodeType,$){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:$=$===8?et.parentNode:et,et=$.namespaceURI||null,$=$.tagName,et=lb(et,$)}E$1(Eh),G$1(Eh,et)}function Jh(){E$1(Eh),E$1(Fh),E$1(Gh)}function Kh$1($){Hh(Gh.current);var et=Hh(Eh.current),tt=lb(et,$.type);et!==tt&&(G$1(Fh,$),G$1(Eh,tt))}function Lh($){Fh.current===$&&(E$1(Eh),E$1(Fh))}var M$1=Uf(0);function Mh($){for(var et=$;et!==null;){if(et.tag===13){var tt=et.memoizedState;if(tt!==null&&(tt=tt.dehydrated,tt===null||tt.data==="$?"||tt.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===$)break;for(;et.sibling===null;){if(et.return===null||et.return===$)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var $=0;$tt?tt:4,$(!0);var rt=Qh.transition;Qh.transition={};try{$(!1),et()}finally{C=tt,Qh.transition=rt}}function Fi(){return di().memoizedState}function Gi($,et,tt){var rt=lh($);if(tt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null},Hi($))Ii(et,tt);else if(tt=Yg($,et,tt,rt),tt!==null){var nt=L$1();mh(tt,$,rt,nt),Ji(tt,et,rt)}}function ri($,et,tt){var rt=lh($),nt={lane:rt,action:tt,hasEagerState:!1,eagerState:null,next:null};if(Hi($))Ii(et,nt);else{var it=$.alternate;if($.lanes===0&&(it===null||it.lanes===0)&&(it=et.lastRenderedReducer,it!==null))try{var At=et.lastRenderedState,at=it(At,tt);if(nt.hasEagerState=!0,nt.eagerState=at,He(at,At)){var ot=et.interleaved;ot===null?(nt.next=nt,Xg(et)):(nt.next=ot.next,ot.next=nt),et.interleaved=nt;return}}catch{}finally{}tt=Yg($,et,nt,rt),tt!==null&&(nt=L$1(),mh(tt,$,rt,nt),Ji(tt,et,rt))}}function Hi($){var et=$.alternate;return $===N$1||et!==null&&et===N$1}function Ii($,et){Th=Sh=!0;var tt=$.pending;tt===null?et.next=et:(et.next=tt.next,tt.next=et),$.pending=et}function Ji($,et,tt){if(tt&4194240){var rt=et.lanes;rt&=$.pendingLanes,tt|=rt,et.lanes=tt,Cc($,tt)}}var ai={readContext:Vg,useCallback:Q$1,useContext:Q$1,useEffect:Q$1,useImperativeHandle:Q$1,useInsertionEffect:Q$1,useLayoutEffect:Q$1,useMemo:Q$1,useReducer:Q$1,useRef:Q$1,useState:Q$1,useDebugValue:Q$1,useDeferredValue:Q$1,useTransition:Q$1,useMutableSource:Q$1,useSyncExternalStore:Q$1,useId:Q$1,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function($,et){return ci().memoizedState=[$,et===void 0?null:et],$},useContext:Vg,useEffect:vi,useImperativeHandle:function($,et,tt){return tt=tt!=null?tt.concat([$]):null,ti(4194308,4,yi.bind(null,et,$),tt)},useLayoutEffect:function($,et){return ti(4194308,4,$,et)},useInsertionEffect:function($,et){return ti(4,2,$,et)},useMemo:function($,et){var tt=ci();return et=et===void 0?null:et,$=$(),tt.memoizedState=[$,et],$},useReducer:function($,et,tt){var rt=ci();return et=tt!==void 0?tt(et):et,rt.memoizedState=rt.baseState=et,$={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$,lastRenderedState:et},rt.queue=$,$=$.dispatch=Gi.bind(null,N$1,$),[rt.memoizedState,$]},useRef:function($){var et=ci();return $={current:$},et.memoizedState=$},useState:qi,useDebugValue:Ai,useDeferredValue:function($){return ci().memoizedState=$},useTransition:function(){var $=qi(!1),et=$[0];return $=Ei.bind(null,$[1]),ci().memoizedState=$,[et,$]},useMutableSource:function(){},useSyncExternalStore:function($,et,tt){var rt=N$1,nt=ci();if(I$1){if(tt===void 0)throw Error(p$4(407));tt=tt()}else{if(tt=et(),R$1===null)throw Error(p$4(349));Rh&30||ni(rt,et,tt)}nt.memoizedState=tt;var it={value:tt,getSnapshot:et};return nt.queue=it,vi(ki.bind(null,rt,it,$),[$]),rt.flags|=2048,li(9,mi.bind(null,rt,it,tt,et),void 0,null),tt},useId:function(){var $=ci(),et=R$1.identifierPrefix;if(I$1){var tt=sg,rt=rg;tt=(rt&~(1<<32-oc(rt)-1)).toString(32)+tt,et=":"+et+"R"+tt,tt=Uh++,0<\/script>",$=$.removeChild($.firstChild)):typeof rt.is=="string"?$=At.createElement(tt,{is:rt.is}):($=At.createElement(tt),tt==="select"&&(At=$,rt.multiple?At.multiple=!0:rt.size&&(At.size=rt.size))):$=At.createElementNS($,tt),$[Of]=et,$[Pf]=rt,Aj($,et,!1,!1),et.stateNode=$;e:{switch(At=vb(tt,rt),tt){case"dialog":D$1("cancel",$),D$1("close",$),nt=rt;break;case"iframe":case"object":case"embed":D$1("load",$),nt=rt;break;case"video":case"audio":for(nt=0;ntHj&&(et.flags|=128,rt=!0,Ej(it,!1),et.lanes=4194304)}else{if(!rt)if($=Mh(At),$!==null){if(et.flags|=128,rt=!0,tt=$.updateQueue,tt!==null&&(et.updateQueue=tt,et.flags|=4),Ej(it,!0),it.tail===null&&it.tailMode==="hidden"&&!At.alternate&&!I$1)return S$1(et),null}else 2*B$1()-it.renderingStartTime>Hj&&tt!==1073741824&&(et.flags|=128,rt=!0,Ej(it,!1),et.lanes=4194304);it.isBackwards?(At.sibling=et.child,et.child=At):(tt=it.last,tt!==null?tt.sibling=At:et.child=At,it.last=At)}return it.tail!==null?(et=it.tail,it.rendering=et,it.tail=et.sibling,it.renderingStartTime=B$1(),et.sibling=null,tt=M$1.current,G$1(M$1,rt?tt&1|2:tt&1),et):(S$1(et),null);case 22:case 23:return Ij(),rt=et.memoizedState!==null,$!==null&&$.memoizedState!==null!==rt&&(et.flags|=8192),rt&&et.mode&1?gj&1073741824&&(S$1(et),et.subtreeFlags&6&&(et.flags|=8192)):S$1(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj($,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),$=et.flags,$&65536?(et.flags=$&-65537|128,et):null;case 3:return Jh(),E$1(Wf),E$1(H$1),Oh(),$=et.flags,$&65536&&!($&128)?(et.flags=$&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$1(M$1),$=et.memoizedState,$!==null&&$.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return $=et.flags,$&65536?(et.flags=$&-65537|128,et):null;case 19:return E$1(M$1),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj($,et){var tt=$.ref;if(tt!==null)if(typeof tt=="function")try{tt(null)}catch(rt){W$1($,et,rt)}else tt.current=null}function Nj($,et,tt){try{tt()}catch(rt){W$1($,et,rt)}}var Oj=!1;function Pj($,et){if(Cf=dd,$=Me(),Ne($)){if("selectionStart"in $)var tt={start:$.selectionStart,end:$.selectionEnd};else e:{tt=(tt=$.ownerDocument)&&tt.defaultView||window;var rt=tt.getSelection&&tt.getSelection();if(rt&&rt.rangeCount!==0){tt=rt.anchorNode;var nt=rt.anchorOffset,it=rt.focusNode;rt=rt.focusOffset;try{tt.nodeType,it.nodeType}catch{tt=null;break e}var At=0,at=-1,ot=-1,st=0,ct=0,ut=$,gt=null;t:for(;;){for(var dt;ut!==tt||nt!==0&&ut.nodeType!==3||(at=At+nt),ut!==it||rt!==0&&ut.nodeType!==3||(ot=At+rt),ut.nodeType===3&&(At+=ut.nodeValue.length),(dt=ut.firstChild)!==null;)gt=ut,ut=dt;for(;;){if(ut===$)break t;if(gt===tt&&++st===nt&&(at=At),gt===it&&++ct===rt&&(ot=At),(dt=ut.nextSibling)!==null)break;ut=gt,gt=ut.parentNode}ut=dt}tt=at===-1||ot===-1?null:{start:at,end:ot}}else tt=null}tt=tt||{start:0,end:0}}else tt=null;for(Df={focusedElem:$,selectionRange:tt},dd=!1,V=et;V!==null;)if(et=V,$=et.child,(et.subtreeFlags&1028)!==0&&$!==null)$.return=et,V=$;else for(;V!==null;){et=V;try{var ht=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var Et=ht.memoizedProps,wt=ht.memoizedState,Qt=et.stateNode,pt=Qt.getSnapshotBeforeUpdate(et.elementType===et.type?Et:Lg(et.type,Et),wt);Qt.__reactInternalSnapshotBeforeUpdate=pt}break;case 3:var mt=et.stateNode.containerInfo;mt.nodeType===1?mt.textContent="":mt.nodeType===9&&mt.documentElement&&mt.removeChild(mt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch($t){W$1(et,et.return,$t)}if($=et.sibling,$!==null){$.return=et.return,V=$;break}V=et.return}return ht=Oj,Oj=!1,ht}function Qj($,et,tt){var rt=et.updateQueue;if(rt=rt!==null?rt.lastEffect:null,rt!==null){var nt=rt=rt.next;do{if((nt.tag&$)===$){var it=nt.destroy;nt.destroy=void 0,it!==void 0&&Nj(et,tt,it)}nt=nt.next}while(nt!==rt)}}function Rj($,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var tt=et=et.next;do{if((tt.tag&$)===$){var rt=tt.create;tt.destroy=rt()}tt=tt.next}while(tt!==et)}}function Sj($){var et=$.ref;if(et!==null){var tt=$.stateNode;switch($.tag){case 5:$=tt;break;default:$=tt}typeof et=="function"?et($):et.current=$}}function Tj($){var et=$.alternate;et!==null&&($.alternate=null,Tj(et)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(et=$.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),$.stateNode=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Uj($){return $.tag===5||$.tag===3||$.tag===4}function Vj($){e:for(;;){for(;$.sibling===null;){if($.return===null||Uj($.return))return null;$=$.return}for($.sibling.return=$.return,$=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.flags&2||$.child===null||$.tag===4)continue e;$.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function Wj($,et,tt){var rt=$.tag;if(rt===5||rt===6)$=$.stateNode,et?tt.nodeType===8?tt.parentNode.insertBefore($,et):tt.insertBefore($,et):(tt.nodeType===8?(et=tt.parentNode,et.insertBefore($,tt)):(et=tt,et.appendChild($)),tt=tt._reactRootContainer,tt!=null||et.onclick!==null||(et.onclick=Bf));else if(rt!==4&&($=$.child,$!==null))for(Wj($,et,tt),$=$.sibling;$!==null;)Wj($,et,tt),$=$.sibling}function Xj($,et,tt){var rt=$.tag;if(rt===5||rt===6)$=$.stateNode,et?tt.insertBefore($,et):tt.appendChild($);else if(rt!==4&&($=$.child,$!==null))for(Xj($,et,tt),$=$.sibling;$!==null;)Xj($,et,tt),$=$.sibling}var X$1=null,Yj=!1;function Zj($,et,tt){for(tt=tt.child;tt!==null;)ak($,et,tt),tt=tt.sibling}function ak($,et,tt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,tt)}catch{}switch(tt.tag){case 5:U$1||Mj(tt,et);case 6:var rt=X$1,nt=Yj;X$1=null,Zj($,et,tt),X$1=rt,Yj=nt,X$1!==null&&(Yj?($=X$1,tt=tt.stateNode,$.nodeType===8?$.parentNode.removeChild(tt):$.removeChild(tt)):X$1.removeChild(tt.stateNode));break;case 18:X$1!==null&&(Yj?($=X$1,tt=tt.stateNode,$.nodeType===8?Kf($.parentNode,tt):$.nodeType===1&&Kf($,tt),bd($)):Kf(X$1,tt.stateNode));break;case 4:rt=X$1,nt=Yj,X$1=tt.stateNode.containerInfo,Yj=!0,Zj($,et,tt),X$1=rt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(rt=tt.updateQueue,rt!==null&&(rt=rt.lastEffect,rt!==null))){nt=rt=rt.next;do{var it=nt,At=it.destroy;it=it.tag,At!==void 0&&(it&2||it&4)&&Nj(tt,et,At),nt=nt.next}while(nt!==rt)}Zj($,et,tt);break;case 1:if(!U$1&&(Mj(tt,et),rt=tt.stateNode,typeof rt.componentWillUnmount=="function"))try{rt.props=tt.memoizedProps,rt.state=tt.memoizedState,rt.componentWillUnmount()}catch(at){W$1(tt,et,at)}Zj($,et,tt);break;case 21:Zj($,et,tt);break;case 22:tt.mode&1?(U$1=(rt=U$1)||tt.memoizedState!==null,Zj($,et,tt),U$1=rt):Zj($,et,tt);break;default:Zj($,et,tt)}}function bk($){var et=$.updateQueue;if(et!==null){$.updateQueue=null;var tt=$.stateNode;tt===null&&(tt=$.stateNode=new Lj),et.forEach(function(rt){var nt=ck.bind(null,$,rt);tt.has(rt)||(tt.add(rt),rt.then(nt,nt))})}}function dk($,et){var tt=et.deletions;if(tt!==null)for(var rt=0;rtnt&&(nt=At),rt&=~it}if(rt=nt,rt=B$1()-rt,rt=(120>rt?120:480>rt?480:1080>rt?1080:1920>rt?1920:3e3>rt?3e3:4320>rt?4320:1960*mk(rt/1960))-rt,10$?16:$,xk===null)var rt=!1;else{if($=xk,xk=null,yk=0,K$1&6)throw Error(p$4(331));var nt=K$1;for(K$1|=4,V=$.current;V!==null;){var it=V,At=it.child;if(V.flags&16){var at=it.deletions;if(at!==null){for(var ot=0;otB$1()-gk?Lk($,0):sk|=tt),Ek($,et)}function Zk($,et){et===0&&($.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var tt=L$1();$=Zg($,et),$!==null&&(Ac($,et,tt),Ek($,tt))}function vj($){var et=$.memoizedState,tt=0;et!==null&&(tt=et.retryLane),Zk($,tt)}function ck($,et){var tt=0;switch($.tag){case 13:var rt=$.stateNode,nt=$.memoizedState;nt!==null&&(tt=nt.retryLane);break;case 19:rt=$.stateNode;break;default:throw Error(p$4(314))}rt!==null&&rt.delete(et),Zk($,tt)}var Wk;Wk=function($,et,tt){if($!==null)if($.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!($.lanes&tt)&&!(et.flags&128))return Ug=!1,zj($,et,tt);Ug=!!($.flags&131072)}else Ug=!1,I$1&&et.flags&1048576&&ug(et,ng,et.index);switch(et.lanes=0,et.tag){case 2:var rt=et.type;jj($,et),$=et.pendingProps;var nt=Yf(et,H$1.current);Tg(et,tt),nt=Xh(null,et,rt,$,nt,tt);var it=bi();return et.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(rt)?(it=!0,cg(et)):it=!1,et.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(et),nt.updater=nh,et.stateNode=nt,nt._reactInternals=et,rh$1(et,rt,$,tt),et=kj(null,et,rt,!0,it,tt)):(et.tag=0,I$1&&it&&vg(et),Yi(null,et,nt,tt),et=et.child),et;case 16:rt=et.elementType;e:{switch(jj($,et),$=et.pendingProps,nt=rt._init,rt=nt(rt._payload),et.type=rt,nt=et.tag=$k(rt),$=Lg(rt,$),nt){case 0:et=dj(null,et,rt,$,tt);break e;case 1:et=ij(null,et,rt,$,tt);break e;case 11:et=Zi(null,et,rt,$,tt);break e;case 14:et=aj(null,et,rt,Lg(rt.type,$),tt);break e}throw Error(p$4(306,rt,""))}return et;case 0:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),dj($,et,rt,nt,tt);case 1:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),ij($,et,rt,nt,tt);case 3:e:{if(lj(et),$===null)throw Error(p$4(387));rt=et.pendingProps,it=et.memoizedState,nt=it.element,bh($,et),gh(et,rt,null,tt);var At=et.memoizedState;if(rt=At.element,it.isDehydrated)if(it={element:rt,isDehydrated:!1,cache:At.cache,pendingSuspenseBoundaries:At.pendingSuspenseBoundaries,transitions:At.transitions},et.updateQueue.baseState=it,et.memoizedState=it,et.flags&256){nt=Ki(Error(p$4(423)),et),et=mj($,et,rt,tt,nt);break e}else if(rt!==nt){nt=Ki(Error(p$4(424)),et),et=mj($,et,rt,tt,nt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$1=!0,zg=null,tt=Ch(et,null,rt,tt),et.child=tt;tt;)tt.flags=tt.flags&-3|4096,tt=tt.sibling;else{if(Ig(),rt===nt){et=$i($,et,tt);break e}Yi($,et,rt,tt)}et=et.child}return et;case 5:return Kh$1(et),$===null&&Eg(et),rt=et.type,nt=et.pendingProps,it=$!==null?$.memoizedProps:null,At=nt.children,Ef(rt,nt)?At=null:it!==null&&Ef(rt,it)&&(et.flags|=32),hj($,et),Yi($,et,At,tt),et.child;case 6:return $===null&&Eg(et),null;case 13:return pj($,et,tt);case 4:return Ih(et,et.stateNode.containerInfo),rt=et.pendingProps,$===null?et.child=Bh(et,null,rt,tt):Yi($,et,rt,tt),et.child;case 11:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),Zi($,et,rt,nt,tt);case 7:return Yi($,et,et.pendingProps,tt),et.child;case 8:return Yi($,et,et.pendingProps.children,tt),et.child;case 12:return Yi($,et,et.pendingProps.children,tt),et.child;case 10:e:{if(rt=et.type._context,nt=et.pendingProps,it=et.memoizedProps,At=nt.value,G$1(Mg,rt._currentValue),rt._currentValue=At,it!==null)if(He(it.value,At)){if(it.children===nt.children&&!Wf.current){et=$i($,et,tt);break e}}else for(it=et.child,it!==null&&(it.return=et);it!==null;){var at=it.dependencies;if(at!==null){At=it.child;for(var ot=at.firstContext;ot!==null;){if(ot.context===rt){if(it.tag===1){ot=ch(-1,tt&-tt),ot.tag=2;var st=it.updateQueue;if(st!==null){st=st.shared;var ct=st.pending;ct===null?ot.next=ot:(ot.next=ct.next,ct.next=ot),st.pending=ot}}it.lanes|=tt,ot=it.alternate,ot!==null&&(ot.lanes|=tt),Sg(it.return,tt,et),at.lanes|=tt;break}ot=ot.next}}else if(it.tag===10)At=it.type===et.type?null:it.child;else if(it.tag===18){if(At=it.return,At===null)throw Error(p$4(341));At.lanes|=tt,at=At.alternate,at!==null&&(at.lanes|=tt),Sg(At,tt,et),At=it.sibling}else At=it.child;if(At!==null)At.return=it;else for(At=it;At!==null;){if(At===et){At=null;break}if(it=At.sibling,it!==null){it.return=At.return,At=it;break}At=At.return}it=At}Yi($,et,nt.children,tt),et=et.child}return et;case 9:return nt=et.type,rt=et.pendingProps.children,Tg(et,tt),nt=Vg(nt),rt=rt(nt),et.flags|=1,Yi($,et,rt,tt),et.child;case 14:return rt=et.type,nt=Lg(rt,et.pendingProps),nt=Lg(rt.type,nt),aj($,et,rt,nt,tt);case 15:return cj($,et,et.type,et.pendingProps,tt);case 17:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),jj($,et),et.tag=1,Zf(rt)?($=!0,cg(et)):$=!1,Tg(et,tt),ph(et,rt,nt),rh$1(et,rt,nt,tt),kj(null,et,rt,!0,$,tt);case 19:return yj($,et,tt);case 22:return ej($,et,tt)}throw Error(p$4(156,et.tag))};function Gk($,et){return ac($,et)}function al($,et,tt,rt){this.tag=$,this.key=tt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=rt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg($,et,tt,rt){return new al($,et,tt,rt)}function bj($){return $=$.prototype,!(!$||!$.isReactComponent)}function $k($){if(typeof $=="function")return bj($)?1:0;if($!=null){if($=$.$$typeof,$===Da)return 11;if($===Ga)return 14}return 2}function wh($,et){var tt=$.alternate;return tt===null?(tt=Bg($.tag,et,$.key,$.mode),tt.elementType=$.elementType,tt.type=$.type,tt.stateNode=$.stateNode,tt.alternate=$,$.alternate=tt):(tt.pendingProps=et,tt.type=$.type,tt.flags=0,tt.subtreeFlags=0,tt.deletions=null),tt.flags=$.flags&14680064,tt.childLanes=$.childLanes,tt.lanes=$.lanes,tt.child=$.child,tt.memoizedProps=$.memoizedProps,tt.memoizedState=$.memoizedState,tt.updateQueue=$.updateQueue,et=$.dependencies,tt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},tt.sibling=$.sibling,tt.index=$.index,tt.ref=$.ref,tt}function yh($,et,tt,rt,nt,it){var At=2;if(rt=$,typeof $=="function")bj($)&&(At=1);else if(typeof $=="string")At=5;else e:switch($){case ya:return Ah(tt.children,nt,it,et);case za:At=8,nt|=8;break;case Aa:return $=Bg(12,tt,et,nt|2),$.elementType=Aa,$.lanes=it,$;case Ea:return $=Bg(13,tt,et,nt),$.elementType=Ea,$.lanes=it,$;case Fa:return $=Bg(19,tt,et,nt),$.elementType=Fa,$.lanes=it,$;case Ia:return qj(tt,nt,it,et);default:if(typeof $=="object"&&$!==null)switch($.$$typeof){case Ba:At=10;break e;case Ca:At=9;break e;case Da:At=11;break e;case Ga:At=14;break e;case Ha:At=16,rt=null;break e}throw Error(p$4(130,$==null?$:typeof $,""))}return et=Bg(At,tt,et,nt),et.elementType=$,et.type=rt,et.lanes=it,et}function Ah($,et,tt,rt){return $=Bg(7,$,rt,et),$.lanes=tt,$}function qj($,et,tt,rt){return $=Bg(22,$,rt,et),$.elementType=Ia,$.lanes=tt,$.stateNode={isHidden:!1},$}function xh($,et,tt){return $=Bg(6,$,null,et),$.lanes=tt,$}function zh($,et,tt){return et=Bg(4,$.children!==null?$.children:[],$.key,et),et.lanes=tt,et.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},et}function bl($,et,tt,rt,nt){this.tag=et,this.containerInfo=$,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=rt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl($,et,tt,rt,nt,it,At,at,ot){return $=new bl($,et,tt,at,ot),et===1?(et=1,it===!0&&(et|=8)):et=0,it=Bg(3,null,null,et),$.current=it,it.stateNode=$,it.memoizedState={element:rt,isDehydrated:tt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(it),$}function dl($,et,tt){var rt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch($){console.error($)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,[PortalContextProvider,usePortalContext]=createContext$1({strict:!1,name:"PortalContext"}),PORTAL_CLASSNAME="chakra-portal",PORTAL_SELECTOR=".chakra-portal",Container$1=$=>jsxRuntimeExports.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:$.zIndex,top:0,left:0,right:0},children:$.children}),DefaultPortal=$=>{const{appendToParentPortal:et,children:tt}=$,[rt,nt]=reactExports.useState(null),it=reactExports.useRef(null),[,At]=reactExports.useState({});reactExports.useEffect(()=>At({}),[]);const at=usePortalContext(),ot=usePortalManager();useSafeLayoutEffect$1(()=>{if(!rt)return;const ct=rt.ownerDocument,ut=et?at??ct.body:ct.body;if(!ut)return;it.current=ct.createElement("div"),it.current.className=PORTAL_CLASSNAME,ut.appendChild(it.current),At({});const gt=it.current;return()=>{ut.contains(gt)&&ut.removeChild(gt)}},[rt]);const st=ot!=null&&ot.zIndex?jsxRuntimeExports.jsx(Container$1,{zIndex:ot==null?void 0:ot.zIndex,children:tt}):tt;return it.current?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:it.current,children:st}),it.current):jsxRuntimeExports.jsx("span",{ref:ct=>{ct&&nt(ct)}})},ContainerPortal=$=>{const{children:et,containerRef:tt,appendToParentPortal:rt}=$,nt=tt.current,it=nt??(typeof window<"u"?document.body:void 0),At=reactExports.useMemo(()=>{const ot=nt==null?void 0:nt.ownerDocument.createElement("div");return ot&&(ot.className=PORTAL_CLASSNAME),ot},[nt]),[,at]=reactExports.useState({});return useSafeLayoutEffect$1(()=>at({}),[]),useSafeLayoutEffect$1(()=>{if(!(!At||!it))return it.appendChild(At),()=>{it.removeChild(At)}},[At,it]),it&&At?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:rt?At:null,children:et}),At):null};function Portal($){const et={appendToParentPortal:!0,...$},{containerRef:tt,...rt}=et;return tt?jsxRuntimeExports.jsx(ContainerPortal,{containerRef:tt,...rt}):jsxRuntimeExports.jsx(DefaultPortal,{...rt})}Portal.className=PORTAL_CLASSNAME;Portal.selector=PORTAL_SELECTOR;Portal.displayName="Portal";function useTheme(){const $=reactExports.useContext(ThemeContext);if(!$)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return $}var ColorModeContext=reactExports.createContext({});ColorModeContext.displayName="ColorModeContext";function useColorMode(){const $=reactExports.useContext(ColorModeContext);if($===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return $}function useColorModeValue($,et){const{colorMode:tt}=useColorMode();return tt==="dark"?et:$}var classNames={light:"chakra-ui-light",dark:"chakra-ui-dark"};function getColorModeUtils($={}){const{preventTransition:et=!0}=$,tt={setDataset:rt=>{const nt=et?tt.preventTransition():void 0;document.documentElement.dataset.theme=rt,document.documentElement.style.colorScheme=rt,nt==null||nt()},setClassName(rt){document.body.classList.add(rt?classNames.dark:classNames.light),document.body.classList.remove(rt?classNames.light:classNames.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(rt){var nt;return((nt=tt.query().matches)!=null?nt:rt==="dark")?"dark":"light"},addListener(rt){const nt=tt.query(),it=At=>{rt(At.matches?"dark":"light")};return typeof nt.addListener=="function"?nt.addListener(it):nt.addEventListener("change",it),()=>{typeof nt.removeListener=="function"?nt.removeListener(it):nt.removeEventListener("change",it)}},preventTransition(){const rt=document.createElement("style");return rt.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(rt),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(rt)})})}}};return tt}var STORAGE_KEY="chakra-ui-color-mode";function createLocalStorageManager($){return{ssr:!1,type:"localStorage",get(et){if(!(globalThis!=null&&globalThis.document))return et;let tt;try{tt=localStorage.getItem($)||et}catch{}return tt||et},set(et){try{localStorage.setItem($,et)}catch{}}}}var localStorageManager=createLocalStorageManager(STORAGE_KEY),noop$1=()=>{};function getTheme($,et){return $.type==="cookie"&&$.ssr?$.get(et):et}function ColorModeProvider($){const{value:et,children:tt,options:{useSystemColorMode:rt,initialColorMode:nt,disableTransitionOnChange:it}={},colorModeManager:At=localStorageManager}=$,at=nt==="dark"?"dark":"light",[ot,st]=reactExports.useState(()=>getTheme(At,at)),[ct,ut]=reactExports.useState(()=>getTheme(At)),{getSystemTheme:gt,setClassName:dt,setDataset:ht,addListener:Et}=reactExports.useMemo(()=>getColorModeUtils({preventTransition:it}),[it]),wt=nt==="system"&&!ot?ct:ot,Qt=reactExports.useCallback($t=>{const Tt=$t==="system"?gt():$t;st(Tt),dt(Tt==="dark"),ht(Tt),At.set(Tt)},[At,gt,dt,ht]);useSafeLayoutEffect$1(()=>{nt==="system"&&ut(gt())},[]),reactExports.useEffect(()=>{const $t=At.get();if($t){Qt($t);return}if(nt==="system"){Qt("system");return}Qt(at)},[At,at,nt,Qt]);const pt=reactExports.useCallback(()=>{Qt(wt==="dark"?"light":"dark")},[wt,Qt]);reactExports.useEffect(()=>{if(rt)return Et(Qt)},[rt,Et,Qt]);const mt=reactExports.useMemo(()=>({colorMode:et??wt,toggleColorMode:et?noop$1:pt,setColorMode:et?noop$1:Qt,forced:et!==void 0}),[wt,pt,Qt,et]);return jsxRuntimeExports.jsx(ColorModeContext.Provider,{value:mt,children:tt})}ColorModeProvider.displayName="ColorModeProvider";function useChakra(){const $=useColorMode(),et=useTheme();return{...$,theme:et}}var cx=(...$)=>$.filter(Boolean).join(" ");function isObject($){const et=typeof $;return $!=null&&(et==="object"||et==="function")&&!Array.isArray($)}function runIfFn$2($,...et){return isFunction$3($)?$(...et):$}var isFunction$3=$=>typeof $=="function",dataAttr=$=>$?"":void 0;function callAllHandlers$1(...$){return function(tt){$.some(rt=>(rt==null||rt(tt),tt==null?void 0:tt.defaultPrevented))}}var lodash_mergewith={exports:{}};lodash_mergewith.exports;(function($,et){var tt=200,rt="__lodash_hash_undefined__",nt=800,it=16,At=9007199254740991,at="[object Arguments]",ot="[object Array]",st="[object AsyncFunction]",ct="[object Boolean]",ut="[object Date]",gt="[object Error]",dt="[object Function]",ht="[object GeneratorFunction]",Et="[object Map]",wt="[object Number]",Qt="[object Null]",pt="[object Object]",mt="[object Proxy]",$t="[object RegExp]",Tt="[object Set]",Ut="[object String]",Pt="[object Undefined]",Kt="[object WeakMap]",zt="[object ArrayBuffer]",Yt="[object DataView]",Mt="[object Float32Array]",Bt="[object Float64Array]",vt="[object Int8Array]",Nt="[object Int16Array]",Gt="[object Int32Array]",Jt="[object Uint8Array]",nr="[object Uint8ClampedArray]",Xt="[object Uint16Array]",Ot="[object Uint32Array]",bt=/[\\^$.*+?()[\]{}|]/g,kt=/^\[object .+?Constructor\]$/,Ar=/^(?:0|[1-9]\d*)$/,cr={};cr[Mt]=cr[Bt]=cr[vt]=cr[Nt]=cr[Gt]=cr[Jt]=cr[nr]=cr[Xt]=cr[Ot]=!0,cr[at]=cr[ot]=cr[zt]=cr[ct]=cr[Yt]=cr[ut]=cr[gt]=cr[dt]=cr[Et]=cr[wt]=cr[pt]=cr[$t]=cr[Tt]=cr[Ut]=cr[Kt]=!1;var Rt=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Qr=typeof self=="object"&&self&&self.Object===Object&&self,_r=Rt||Qr||Function("return this")(),qr=et&&!et.nodeType&&et,yr=qr&&!0&&$&&!$.nodeType&&$,kr=yr&&yr.exports===qr,jt=kr&&Rt.process,Zt=function(){try{var tr=yr&&yr.require&&yr.require("util").types;return tr||jt&&jt.binding&&jt.binding("util")}catch{}}(),rr=Zt&&Zt.isTypedArray;function sr(tr,dr,xr){switch(xr.length){case 0:return tr.call(dr);case 1:return tr.call(dr,xr[0]);case 2:return tr.call(dr,xr[0],xr[1]);case 3:return tr.call(dr,xr[0],xr[1],xr[2])}return tr.apply(dr,xr)}function ur(tr,dr){for(var xr=-1,zr=Array(tr);++xr-1}function Ht(tr,dr){var xr=this.__data__,zr=Rr(xr,tr);return zr<0?(++this.size,xr.push([tr,dr])):xr[zr][1]=dr,this}wn.prototype.clear=xn,wn.prototype.delete=Cn,wn.prototype.get=Dt,wn.prototype.has=qt,wn.prototype.set=Ht;function Ct(tr){var dr=-1,xr=tr==null?0:tr.length;for(this.clear();++dr1?xr[$n-1]:void 0,On=$n>2?xr[2]:void 0;for(Un=tr.length>3&&typeof Un=="function"?($n--,Un):void 0,On&&vn(xr[0],xr[1],On)&&(Un=$n<3?void 0:Un,$n=1),dr=Object(dr);++zr<$n;){var _n=xr[zr];_n&&tr(dr,_n,zr,Un)}return dr})}function ar(tr){return function(dr,xr,zr){for(var $n=-1,Un=Object(dr),On=zr(dr),_n=On.length;_n--;){var Yn=On[tr?_n:++$n];if(xr(Un[Yn],Yn,Un)===!1)break}return dr}}function hn(tr,dr){var xr=tr.__data__;return jn(dr)?xr[typeof dr=="string"?"string":"hash"]:xr.map}function Qn(tr,dr){var xr=It(tr,dr);return Vr(xr)?xr:void 0}function Sn(tr){var dr=Er.call(tr,Pr),xr=tr[Pr];try{tr[Pr]=void 0;var zr=!0}catch{}var $n=wr.call(tr);return zr&&(dr?tr[Pr]=xr:delete tr[Pr]),$n}function pn(tr){return typeof tr.constructor=="function"&&!Pn(tr)?Gn(Br(tr)):{}}function mn(tr,dr){var xr=typeof tr;return dr=dr??At,!!dr&&(xr=="number"||xr!="symbol"&&Ar.test(tr))&&tr>-1&&tr%1==0&&tr0){if(++dr>=nt)return arguments[0]}else dr=0;return tr.apply(void 0,arguments)}}function eo(tr){if(tr!=null){try{return er.call(tr)}catch{}try{return tr+""}catch{}}return""}function dA(tr,dr){return tr===dr||tr!==tr&&dr!==dr}var BA=Nr(function(){return arguments}())?Nr:function(tr){return uA(tr)&&Er.call(tr,"callee")&&!Lr.call(tr,"callee")},EA=Array.isArray;function pA(tr){return tr!=null&&FA(tr.length)&&!IA(tr)}function to(tr){return uA(tr)&&pA(tr)}var kA=Bn||ao;function IA(tr){if(!aA(tr))return!1;var dr=Jr(tr);return dr==dt||dr==ht||dr==st||dr==mt}function FA(tr){return typeof tr=="number"&&tr>-1&&tr%1==0&&tr<=At}function aA(tr){var dr=typeof tr;return tr!=null&&(dr=="object"||dr=="function")}function uA(tr){return tr!=null&&typeof tr=="object"}function ro(tr){if(!uA(tr)||Jr(tr)!=pt)return!1;var dr=Br(tr);if(dr===null)return!0;var xr=Er.call(dr,"constructor")&&dr.constructor;return typeof xr=="function"&&xr instanceof xr&&er.call(xr)==Yr}var DA=rr?fr(rr):Kr;function no(tr){return En(tr,RA(tr))}function RA(tr){return pA(tr)?ln(tr,!0):Hr(tr)}var io=gn(function(tr,dr,xr,zr){pr(tr,dr,xr,zr)});function Ao(tr){return function(){return tr}}function MA(tr){return tr}function ao(){return!1}$.exports=io})(lodash_mergewith,lodash_mergewith.exports);var lodash_mergewithExports=lodash_mergewith.exports;const mergeWith=getDefaultExportFromCjs(lodash_mergewithExports);var isImportant=$=>/!(important)?$/.test($),withoutImportant=$=>typeof $=="string"?$.replace(/!(important)?$/,"").trim():$,tokenToCSSVar=($,et)=>tt=>{const rt=String(et),nt=isImportant(rt),it=withoutImportant(rt),At=$?`${$}.${it}`:it;let at=isObject(tt.__cssMap)&&At in tt.__cssMap?tt.__cssMap[At].varRef:et;return at=withoutImportant(at),nt?`${at} !important`:at};function createTransform($){const{scale:et,transform:tt,compose:rt}=$;return(it,At)=>{var at;const ot=tokenToCSSVar(et,it)(At);let st=(at=tt==null?void 0:tt(ot,At))!=null?at:ot;return rt&&(st=rt(st,At)),st}}var pipe$2=(...$)=>et=>$.reduce((tt,rt)=>rt(tt),et);function toConfig($,et){return tt=>{const rt={property:tt,scale:$};return rt.transform=createTransform({scale:$,transform:et}),rt}}var getRtl=({rtl:$,ltr:et})=>tt=>tt.direction==="rtl"?$:et;function logical($){const{property:et,scale:tt,transform:rt}=$;return{scale:tt,property:getRtl(et),transform:tt?createTransform({scale:tt,compose:rt}):rt}}var transformTemplate=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function getTransformTemplate(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...transformTemplate].join(" ")}function getTransformGpuTemplate(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...transformTemplate].join(" ")}var filterTemplate={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},backdropFilterTemplate={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function getRingTemplate($){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":$,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},directionMap={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},valueSet=new Set(Object.values(directionMap)),globalSet=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),trimSpace=$=>$.trim();function parseGradient($,et){if($==null||globalSet.has($))return $;if(!(isCSSFunction($)||globalSet.has($)))return`url('${$}')`;const nt=/(^[a-z-A-Z]+)\((.*)\)/g.exec($),it=nt==null?void 0:nt[1],At=nt==null?void 0:nt[2];if(!it||!At)return $;const at=it.includes("-gradient")?it:`${it}-gradient`,[ot,...st]=At.split(",").map(trimSpace).filter(Boolean);if((st==null?void 0:st.length)===0)return $;const ct=ot in directionMap?directionMap[ot]:ot;st.unshift(ct);const ut=st.map(gt=>{if(valueSet.has(gt))return gt;const dt=gt.indexOf(" "),[ht,Et]=dt!==-1?[gt.substr(0,dt),gt.substr(dt+1)]:[gt],wt=isCSSFunction(Et)?Et:Et&&Et.split(" "),Qt=`colors.${ht}`,pt=Qt in et.__cssMap?et.__cssMap[Qt].varRef:ht;return wt?[pt,...Array.isArray(wt)?wt:[wt]].join(" "):pt});return`${at}(${ut.join(", ")})`}var isCSSFunction=$=>typeof $=="string"&&$.includes("(")&&$.includes(")"),gradientTransform=($,et)=>parseGradient($,et??{});function isCssVar($){return/^var\(--.+\)$/.test($)}var analyzeCSSValue=$=>{const et=parseFloat($.toString()),tt=$.toString().replace(String(et),"");return{unitless:!tt,value:et,unit:tt}},wrap=$=>et=>`${$}(${et})`,transformFunctions={filter($){return $!=="auto"?$:filterTemplate},backdropFilter($){return $!=="auto"?$:backdropFilterTemplate},ring($){return getRingTemplate(transformFunctions.px($))},bgClip($){return $==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:$}},transform($){return $==="auto"?getTransformTemplate():$==="auto-gpu"?getTransformGpuTemplate():$},vh($){return $==="$100vh"?"var(--chakra-vh)":$},px($){if($==null)return $;const{unitless:et}=analyzeCSSValue($);return et||typeof $=="number"?`${$}px`:$},fraction($){return typeof $!="number"||$>1?$:`${$*100}%`},float($,et){const tt={left:"right",right:"left"};return et.direction==="rtl"?tt[$]:$},degree($){if(isCssVar($)||$==null)return $;const et=typeof $=="string"&&!$.endsWith("deg");return typeof $=="number"||et?`${$}deg`:$},gradient:gradientTransform,blur:wrap("blur"),opacity:wrap("opacity"),brightness:wrap("brightness"),contrast:wrap("contrast"),dropShadow:wrap("drop-shadow"),grayscale:wrap("grayscale"),hueRotate:wrap("hue-rotate"),invert:wrap("invert"),saturate:wrap("saturate"),sepia:wrap("sepia"),bgImage($){return $==null||isCSSFunction($)||globalSet.has($)?$:`url(${$})`},outline($){const et=String($)==="0"||String($)==="none";return $!==null&&et?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:$}},flexDirection($){var et;const{space:tt,divide:rt}=(et=flexDirectionTemplate[$])!=null?et:{},nt={flexDirection:$};return tt&&(nt[tt]=1),rt&&(nt[rt]=1),nt}},t$4={borderWidths:toConfig("borderWidths"),borderStyles:toConfig("borderStyles"),colors:toConfig("colors"),borders:toConfig("borders"),gradients:toConfig("gradients",transformFunctions.gradient),radii:toConfig("radii",transformFunctions.px),space:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),spaceT:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),degreeT($){return{property:$,transform:transformFunctions.degree}},prop($,et,tt){return{property:$,scale:et,...et&&{transform:createTransform({scale:et,transform:tt})}}},propT($,et){return{property:$,transform:et}},sizes:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.px)),sizesT:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.fraction)),shadows:toConfig("shadows"),logical,blur:toConfig("blur",transformFunctions.blur)},background={background:t$4.colors("background"),backgroundColor:t$4.colors("backgroundColor"),backgroundImage:t$4.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:transformFunctions.bgClip},bgSize:t$4.prop("backgroundSize"),bgPosition:t$4.prop("backgroundPosition"),bg:t$4.colors("background"),bgColor:t$4.colors("backgroundColor"),bgPos:t$4.prop("backgroundPosition"),bgRepeat:t$4.prop("backgroundRepeat"),bgAttachment:t$4.prop("backgroundAttachment"),bgGradient:t$4.gradients("backgroundImage"),bgClip:{transform:transformFunctions.bgClip}};Object.assign(background,{bgImage:background.backgroundImage,bgImg:background.backgroundImage});var border={border:t$4.borders("border"),borderWidth:t$4.borderWidths("borderWidth"),borderStyle:t$4.borderStyles("borderStyle"),borderColor:t$4.colors("borderColor"),borderRadius:t$4.radii("borderRadius"),borderTop:t$4.borders("borderTop"),borderBlockStart:t$4.borders("borderBlockStart"),borderTopLeftRadius:t$4.radii("borderTopLeftRadius"),borderStartStartRadius:t$4.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:t$4.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:t$4.radii("borderTopRightRadius"),borderStartEndRadius:t$4.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:t$4.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:t$4.borders("borderRight"),borderInlineEnd:t$4.borders("borderInlineEnd"),borderBottom:t$4.borders("borderBottom"),borderBlockEnd:t$4.borders("borderBlockEnd"),borderBottomLeftRadius:t$4.radii("borderBottomLeftRadius"),borderBottomRightRadius:t$4.radii("borderBottomRightRadius"),borderLeft:t$4.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:t$4.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:t$4.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:t$4.borders(["borderLeft","borderRight"]),borderInline:t$4.borders("borderInline"),borderY:t$4.borders(["borderTop","borderBottom"]),borderBlock:t$4.borders("borderBlock"),borderTopWidth:t$4.borderWidths("borderTopWidth"),borderBlockStartWidth:t$4.borderWidths("borderBlockStartWidth"),borderTopColor:t$4.colors("borderTopColor"),borderBlockStartColor:t$4.colors("borderBlockStartColor"),borderTopStyle:t$4.borderStyles("borderTopStyle"),borderBlockStartStyle:t$4.borderStyles("borderBlockStartStyle"),borderBottomWidth:t$4.borderWidths("borderBottomWidth"),borderBlockEndWidth:t$4.borderWidths("borderBlockEndWidth"),borderBottomColor:t$4.colors("borderBottomColor"),borderBlockEndColor:t$4.colors("borderBlockEndColor"),borderBottomStyle:t$4.borderStyles("borderBottomStyle"),borderBlockEndStyle:t$4.borderStyles("borderBlockEndStyle"),borderLeftWidth:t$4.borderWidths("borderLeftWidth"),borderInlineStartWidth:t$4.borderWidths("borderInlineStartWidth"),borderLeftColor:t$4.colors("borderLeftColor"),borderInlineStartColor:t$4.colors("borderInlineStartColor"),borderLeftStyle:t$4.borderStyles("borderLeftStyle"),borderInlineStartStyle:t$4.borderStyles("borderInlineStartStyle"),borderRightWidth:t$4.borderWidths("borderRightWidth"),borderInlineEndWidth:t$4.borderWidths("borderInlineEndWidth"),borderRightColor:t$4.colors("borderRightColor"),borderInlineEndColor:t$4.colors("borderInlineEndColor"),borderRightStyle:t$4.borderStyles("borderRightStyle"),borderInlineEndStyle:t$4.borderStyles("borderInlineEndStyle"),borderTopRadius:t$4.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:t$4.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:t$4.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:t$4.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(border,{rounded:border.borderRadius,roundedTop:border.borderTopRadius,roundedTopLeft:border.borderTopLeftRadius,roundedTopRight:border.borderTopRightRadius,roundedTopStart:border.borderStartStartRadius,roundedTopEnd:border.borderStartEndRadius,roundedBottom:border.borderBottomRadius,roundedBottomLeft:border.borderBottomLeftRadius,roundedBottomRight:border.borderBottomRightRadius,roundedBottomStart:border.borderEndStartRadius,roundedBottomEnd:border.borderEndEndRadius,roundedLeft:border.borderLeftRadius,roundedRight:border.borderRightRadius,roundedStart:border.borderInlineStartRadius,roundedEnd:border.borderInlineEndRadius,borderStart:border.borderInlineStart,borderEnd:border.borderInlineEnd,borderTopStartRadius:border.borderStartStartRadius,borderTopEndRadius:border.borderStartEndRadius,borderBottomStartRadius:border.borderEndStartRadius,borderBottomEndRadius:border.borderEndEndRadius,borderStartRadius:border.borderInlineStartRadius,borderEndRadius:border.borderInlineEndRadius,borderStartWidth:border.borderInlineStartWidth,borderEndWidth:border.borderInlineEndWidth,borderStartColor:border.borderInlineStartColor,borderEndColor:border.borderInlineEndColor,borderStartStyle:border.borderInlineStartStyle,borderEndStyle:border.borderInlineEndStyle});var color$1={color:t$4.colors("color"),textColor:t$4.colors("color"),fill:t$4.colors("fill"),stroke:t$4.colors("stroke")},effect={boxShadow:t$4.shadows("boxShadow"),mixBlendMode:!0,blendMode:t$4.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:t$4.prop("backgroundBlendMode"),opacity:!0};Object.assign(effect,{shadow:effect.boxShadow});var filter$1={filter:{transform:transformFunctions.filter},blur:t$4.blur("--chakra-blur"),brightness:t$4.propT("--chakra-brightness",transformFunctions.brightness),contrast:t$4.propT("--chakra-contrast",transformFunctions.contrast),hueRotate:t$4.degreeT("--chakra-hue-rotate"),invert:t$4.propT("--chakra-invert",transformFunctions.invert),saturate:t$4.propT("--chakra-saturate",transformFunctions.saturate),dropShadow:t$4.propT("--chakra-drop-shadow",transformFunctions.dropShadow),backdropFilter:{transform:transformFunctions.backdropFilter},backdropBlur:t$4.blur("--chakra-backdrop-blur"),backdropBrightness:t$4.propT("--chakra-backdrop-brightness",transformFunctions.brightness),backdropContrast:t$4.propT("--chakra-backdrop-contrast",transformFunctions.contrast),backdropHueRotate:t$4.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:t$4.propT("--chakra-backdrop-invert",transformFunctions.invert),backdropSaturate:t$4.propT("--chakra-backdrop-saturate",transformFunctions.saturate)},flexbox={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:transformFunctions.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:t$4.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:t$4.space("gap"),rowGap:t$4.space("rowGap"),columnGap:t$4.space("columnGap")};Object.assign(flexbox,{flexDir:flexbox.flexDirection});var grid={gridGap:t$4.space("gridGap"),gridColumnGap:t$4.space("gridColumnGap"),gridRowGap:t$4.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},interactivity={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:transformFunctions.outline},outlineOffset:!0,outlineColor:t$4.colors("outlineColor")},layout$1={width:t$4.sizesT("width"),inlineSize:t$4.sizesT("inlineSize"),height:t$4.sizes("height"),blockSize:t$4.sizes("blockSize"),boxSize:t$4.sizes(["width","height"]),minWidth:t$4.sizes("minWidth"),minInlineSize:t$4.sizes("minInlineSize"),minHeight:t$4.sizes("minHeight"),minBlockSize:t$4.sizes("minBlockSize"),maxWidth:t$4.sizes("maxWidth"),maxInlineSize:t$4.sizes("maxInlineSize"),maxHeight:t$4.sizes("maxHeight"),maxBlockSize:t$4.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:($,et)=>{var tt,rt,nt;return{[`@media screen and (min-width: ${(nt=(rt=(tt=et.__breakpoints)==null?void 0:tt.get($))==null?void 0:rt.minW)!=null?nt:$})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:($,et)=>{var tt,rt,nt;return{[`@media screen and (max-width: ${(nt=(rt=(tt=et.__breakpoints)==null?void 0:tt.get($))==null?void 0:rt._minW)!=null?nt:$})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:t$4.propT("float",transformFunctions.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(layout$1,{w:layout$1.width,h:layout$1.height,minW:layout$1.minWidth,maxW:layout$1.maxWidth,minH:layout$1.minHeight,maxH:layout$1.maxHeight,overscroll:layout$1.overscrollBehavior,overscrollX:layout$1.overscrollBehaviorX,overscrollY:layout$1.overscrollBehaviorY});var list={listStyleType:!0,listStylePosition:!0,listStylePos:t$4.prop("listStylePosition"),listStyleImage:!0,listStyleImg:t$4.prop("listStyleImage")};function get$1($,et,tt,rt){const nt=typeof et=="string"?et.split("."):[et];for(rt=0;rt{const et=new WeakMap;return(rt,nt,it,At)=>{if(typeof rt>"u")return $(rt,nt,it);et.has(rt)||et.set(rt,new Map);const at=et.get(rt);if(at.has(nt))return at.get(nt);const ot=$(rt,nt,it,At);return at.set(nt,ot),ot}},memoizedGet$1=memoize$1(get$1),srOnly={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},srFocusable={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},getWithPriority=($,et,tt)=>{const rt={},nt=memoizedGet$1($,et,{});for(const it in nt)it in tt&&tt[it]!=null||(rt[it]=nt[it]);return rt},others={srOnly:{transform($){return $===!0?srOnly:$==="focusable"?srFocusable:{}}},layerStyle:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,`layerStyles.${$}`,tt)},textStyle:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,`textStyles.${$}`,tt)},apply:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,$,tt)}},position={position:!0,pos:t$4.prop("position"),zIndex:t$4.prop("zIndex","zIndices"),inset:t$4.spaceT("inset"),insetX:t$4.spaceT(["left","right"]),insetInline:t$4.spaceT("insetInline"),insetY:t$4.spaceT(["top","bottom"]),insetBlock:t$4.spaceT("insetBlock"),top:t$4.spaceT("top"),insetBlockStart:t$4.spaceT("insetBlockStart"),bottom:t$4.spaceT("bottom"),insetBlockEnd:t$4.spaceT("insetBlockEnd"),left:t$4.spaceT("left"),insetInlineStart:t$4.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:t$4.spaceT("right"),insetInlineEnd:t$4.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(position,{insetStart:position.insetInlineStart,insetEnd:position.insetInlineEnd});var ring={ring:{transform:transformFunctions.ring},ringColor:t$4.colors("--chakra-ring-color"),ringOffset:t$4.prop("--chakra-ring-offset-width"),ringOffsetColor:t$4.colors("--chakra-ring-offset-color"),ringInset:t$4.prop("--chakra-ring-inset")},space={margin:t$4.spaceT("margin"),marginTop:t$4.spaceT("marginTop"),marginBlockStart:t$4.spaceT("marginBlockStart"),marginRight:t$4.spaceT("marginRight"),marginInlineEnd:t$4.spaceT("marginInlineEnd"),marginBottom:t$4.spaceT("marginBottom"),marginBlockEnd:t$4.spaceT("marginBlockEnd"),marginLeft:t$4.spaceT("marginLeft"),marginInlineStart:t$4.spaceT("marginInlineStart"),marginX:t$4.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:t$4.spaceT("marginInline"),marginY:t$4.spaceT(["marginTop","marginBottom"]),marginBlock:t$4.spaceT("marginBlock"),padding:t$4.space("padding"),paddingTop:t$4.space("paddingTop"),paddingBlockStart:t$4.space("paddingBlockStart"),paddingRight:t$4.space("paddingRight"),paddingBottom:t$4.space("paddingBottom"),paddingBlockEnd:t$4.space("paddingBlockEnd"),paddingLeft:t$4.space("paddingLeft"),paddingInlineStart:t$4.space("paddingInlineStart"),paddingInlineEnd:t$4.space("paddingInlineEnd"),paddingX:t$4.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:t$4.space("paddingInline"),paddingY:t$4.space(["paddingTop","paddingBottom"]),paddingBlock:t$4.space("paddingBlock")};Object.assign(space,{m:space.margin,mt:space.marginTop,mr:space.marginRight,me:space.marginInlineEnd,marginEnd:space.marginInlineEnd,mb:space.marginBottom,ml:space.marginLeft,ms:space.marginInlineStart,marginStart:space.marginInlineStart,mx:space.marginX,my:space.marginY,p:space.padding,pt:space.paddingTop,py:space.paddingY,px:space.paddingX,pb:space.paddingBottom,pl:space.paddingLeft,ps:space.paddingInlineStart,paddingStart:space.paddingInlineStart,pr:space.paddingRight,pe:space.paddingInlineEnd,paddingEnd:space.paddingInlineEnd});var textDecoration={textDecorationColor:t$4.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:t$4.shadows("textShadow")},transform={clipPath:!0,transform:t$4.propT("transform",transformFunctions.transform),transformOrigin:!0,translateX:t$4.spaceT("--chakra-translate-x"),translateY:t$4.spaceT("--chakra-translate-y"),skewX:t$4.degreeT("--chakra-skew-x"),skewY:t$4.degreeT("--chakra-skew-y"),scaleX:t$4.prop("--chakra-scale-x"),scaleY:t$4.prop("--chakra-scale-y"),scale:t$4.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:t$4.degreeT("--chakra-rotate")},transition$1={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:t$4.prop("transitionDuration","transition.duration"),transitionProperty:t$4.prop("transitionProperty","transition.property"),transitionTimingFunction:t$4.prop("transitionTimingFunction","transition.easing")},typography$1={fontFamily:t$4.prop("fontFamily","fonts"),fontSize:t$4.prop("fontSize","fontSizes",transformFunctions.px),fontWeight:t$4.prop("fontWeight","fontWeights"),lineHeight:t$4.prop("lineHeight","lineHeights"),letterSpacing:t$4.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform($){if($===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},scroll={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:t$4.spaceT("scrollMargin"),scrollMarginTop:t$4.spaceT("scrollMarginTop"),scrollMarginBottom:t$4.spaceT("scrollMarginBottom"),scrollMarginLeft:t$4.spaceT("scrollMarginLeft"),scrollMarginRight:t$4.spaceT("scrollMarginRight"),scrollMarginX:t$4.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:t$4.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:t$4.spaceT("scrollPadding"),scrollPaddingTop:t$4.spaceT("scrollPaddingTop"),scrollPaddingBottom:t$4.spaceT("scrollPaddingBottom"),scrollPaddingLeft:t$4.spaceT("scrollPaddingLeft"),scrollPaddingRight:t$4.spaceT("scrollPaddingRight"),scrollPaddingX:t$4.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:t$4.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function resolveReference($){return isObject($)&&$.reference?$.reference:String($)}var toExpression=($,...et)=>et.map(resolveReference).join(` ${$} `).replace(/calc/g,""),add$1=(...$)=>`calc(${toExpression("+",...$)})`,subtract$1=(...$)=>`calc(${toExpression("-",...$)})`,multiply$1=(...$)=>`calc(${toExpression("*",...$)})`,divide$1=(...$)=>`calc(${toExpression("/",...$)})`,negate$1=$=>{const et=resolveReference($);return et!=null&&!Number.isNaN(parseFloat(et))?String(et).startsWith("-")?String(et).slice(1):`-${et}`:multiply$1(et,-1)},calc$1=Object.assign($=>({add:(...et)=>calc$1(add$1($,...et)),subtract:(...et)=>calc$1(subtract$1($,...et)),multiply:(...et)=>calc$1(multiply$1($,...et)),divide:(...et)=>calc$1(divide$1($,...et)),negate:()=>calc$1(negate$1($)),toString:()=>$.toString()}),{add:add$1,subtract:subtract$1,multiply:multiply$1,divide:divide$1,negate:negate$1});function replaceWhiteSpace$1($,et="-"){return $.replace(/\s+/g,et)}function escape$2($){const et=replaceWhiteSpace$1($.toString());return escapeSymbol(escapeDot(et))}function escapeDot($){return $.includes("\\.")?$:!Number.isInteger(parseFloat($.toString()))?$.replace(".","\\."):$}function escapeSymbol($){return $.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function addPrefix$1($,et=""){return[et,$].filter(Boolean).join("-")}function toVarReference($,et){return`var(${$}${et?`, ${et}`:""})`}function toVarDefinition($,et=""){return escape$2(`--${addPrefix$1($,et)}`)}function cssVar$1($,et,tt){const rt=toVarDefinition($,tt);return{variable:rt,reference:toVarReference(rt,et)}}function defineCssVars($,et){const tt={};for(const rt of et){if(Array.isArray(rt)){const[nt,it]=rt;tt[nt]=cssVar$1(`${$}-${nt}`,it);continue}tt[rt]=cssVar$1(`${$}-${rt}`)}return tt}function getLastItem($){const et=$==null?0:$.length;return et?$[et-1]:void 0}function analyzeCSSValue2($){const et=parseFloat($.toString()),tt=$.toString().replace(String(et),"");return{unitless:!tt,value:et,unit:tt}}function px$1($){if($==null)return $;const{unitless:et}=analyzeCSSValue2($);return et||typeof $=="number"?`${$}px`:$}var sortByBreakpointValue=($,et)=>parseInt($[1],10)>parseInt(et[1],10)?1:-1,sortBps=$=>Object.fromEntries(Object.entries($).sort(sortByBreakpointValue));function normalize($){const et=sortBps($);return Object.assign(Object.values(et),et)}function keys($){const et=Object.keys(sortBps($));return new Set(et)}function subtract2($){var et;if(!$)return $;$=(et=px$1($))!=null?et:$;const tt=-.02;return typeof $=="number"?`${$+tt}`:$.replace(/(\d+\.?\d*)/u,rt=>`${parseFloat(rt)+tt}`)}function toMediaQueryString($,et){const tt=["@media screen"];return $&&tt.push("and",`(min-width: ${px$1($)})`),et&&tt.push("and",`(max-width: ${px$1(et)})`),tt.join(" ")}function analyzeBreakpoints($){var et;if(!$)return null;$.base=(et=$.base)!=null?et:"0px";const tt=normalize($),rt=Object.entries($).sort(sortByBreakpointValue).map(([At,at],ot,st)=>{var ct;let[,ut]=(ct=st[ot+1])!=null?ct:[];return ut=parseFloat(ut)>0?subtract2(ut):void 0,{_minW:subtract2(at),breakpoint:At,minW:at,maxW:ut,maxWQuery:toMediaQueryString(null,ut),minWQuery:toMediaQueryString(at),minMaxQuery:toMediaQueryString(at,ut)}}),nt=keys($),it=Array.from(nt.values());return{keys:nt,normalized:tt,isResponsive(At){const at=Object.keys(At);return at.length>0&&at.every(ot=>nt.has(ot))},asObject:sortBps($),asArray:normalize($),details:rt,get(At){return rt.find(at=>at.breakpoint===At)},media:[null,...tt.map(At=>toMediaQueryString(At)).slice(1)],toArrayValue(At){if(!isObject(At))throw new Error("toArrayValue: value must be an object");const at=it.map(ot=>{var st;return(st=At[ot])!=null?st:null});for(;getLastItem(at)===null;)at.pop();return at},toObjectValue(At){if(!Array.isArray(At))throw new Error("toObjectValue: value must be an array");return At.reduce((at,ot,st)=>{const ct=it[st];return ct!=null&&ot!=null&&(at[ct]=ot),at},{})}}}var state={hover:($,et)=>`${$}:hover ${et}, ${$}[data-hover] ${et}`,focus:($,et)=>`${$}:focus ${et}, ${$}[data-focus] ${et}`,focusVisible:($,et)=>`${$}:focus-visible ${et}`,focusWithin:($,et)=>`${$}:focus-within ${et}`,active:($,et)=>`${$}:active ${et}, ${$}[data-active] ${et}`,disabled:($,et)=>`${$}:disabled ${et}, ${$}[data-disabled] ${et}`,invalid:($,et)=>`${$}:invalid ${et}, ${$}[data-invalid] ${et}`,checked:($,et)=>`${$}:checked ${et}, ${$}[data-checked] ${et}`,indeterminate:($,et)=>`${$}:indeterminate ${et}, ${$}[aria-checked=mixed] ${et}, ${$}[data-indeterminate] ${et}`,readOnly:($,et)=>`${$}:read-only ${et}, ${$}[readonly] ${et}, ${$}[data-read-only] ${et}`,expanded:($,et)=>`${$}:read-only ${et}, ${$}[aria-expanded=true] ${et}, ${$}[data-expanded] ${et}`,placeholderShown:($,et)=>`${$}:placeholder-shown ${et}`},toGroup=$=>merge(et=>$(et,"&"),"[role=group]","[data-group]",".group"),toPeer=$=>merge(et=>$(et,"~ &"),"[data-peer]",".peer"),merge=($,...et)=>et.map($).join(", "),pseudoSelectors={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:toGroup(state.hover),_peerHover:toPeer(state.hover),_groupFocus:toGroup(state.focus),_peerFocus:toPeer(state.focus),_groupFocusVisible:toGroup(state.focusVisible),_peerFocusVisible:toPeer(state.focusVisible),_groupActive:toGroup(state.active),_peerActive:toPeer(state.active),_groupDisabled:toGroup(state.disabled),_peerDisabled:toPeer(state.disabled),_groupInvalid:toGroup(state.invalid),_peerInvalid:toPeer(state.invalid),_groupChecked:toGroup(state.checked),_peerChecked:toPeer(state.checked),_groupFocusWithin:toGroup(state.focusWithin),_peerFocusWithin:toPeer(state.focusWithin),_peerPlaceholderShown:toPeer(state.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},pseudoPropNames=Object.keys(pseudoSelectors);function tokenToCssVar($,et){return cssVar$1(String($).replace(/\./g,"-"),void 0,et)}function createThemeVars($,et){let tt={};const rt={};for(const[nt,it]of Object.entries($)){const{isSemantic:At,value:at}=it,{variable:ot,reference:st}=tokenToCssVar(nt,et==null?void 0:et.cssVarPrefix);if(!At){if(nt.startsWith("space")){const gt=nt.split("."),[dt,...ht]=gt,Et=`${dt}.-${ht.join(".")}`,wt=calc$1.negate(at),Qt=calc$1.negate(st);rt[Et]={value:wt,var:ot,varRef:Qt}}tt[ot]=at,rt[nt]={value:at,var:ot,varRef:st};continue}const ct=gt=>{const ht=[String(nt).split(".")[0],gt].join(".");if(!$[ht])return gt;const{reference:wt}=tokenToCssVar(ht,et==null?void 0:et.cssVarPrefix);return wt},ut=isObject(at)?at:{default:at};tt=mergeWith(tt,Object.entries(ut).reduce((gt,[dt,ht])=>{var Et,wt;if(!ht)return gt;const Qt=ct(`${ht}`);if(dt==="default")return gt[ot]=Qt,gt;const pt=(wt=(Et=pseudoSelectors)==null?void 0:Et[dt])!=null?wt:dt;return gt[pt]={[ot]:Qt},gt},{})),rt[nt]={value:st,var:ot,varRef:st}}return{cssVars:tt,cssMap:rt}}function omit$2($,et=[]){const tt=Object.assign({},$);for(const rt of et)rt in tt&&delete tt[rt];return tt}function pick($,et){const tt={};for(const rt of et)rt in $&&(tt[rt]=$[rt]);return tt}function isObject5($){return typeof $=="object"&&$!=null&&!Array.isArray($)}function walkObject($,et,tt={}){const{stop:rt,getKey:nt}=tt;function it(At,at=[]){var ot;if(isObject5(At)||Array.isArray(At)){const st={};for(const[ct,ut]of Object.entries(At)){const gt=(ot=nt==null?void 0:nt(ct))!=null?ot:ct,dt=[...at,gt];if(rt!=null&&rt(At,dt))return et(At,at);st[gt]=it(ut,dt)}return st}return et(At,at)}return it($)}var tokens=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function extractTokens($){return pick($,tokens)}function extractSemanticTokens($){return $.semanticTokens}function omitVars($){const{__cssMap:et,__cssVars:tt,__breakpoints:rt,...nt}=$;return nt}var isSemanticCondition=$=>pseudoPropNames.includes($)||$==="default";function flattenTokens({tokens:$,semanticTokens:et}){const tt={};return walkObject($,(rt,nt)=>{rt!=null&&(tt[nt.join(".")]={isSemantic:!1,value:rt})}),walkObject(et,(rt,nt)=>{rt!=null&&(tt[nt.join(".")]={isSemantic:!0,value:rt})},{stop:rt=>Object.keys(rt).every(isSemanticCondition)}),tt}function toCSSVar($){var et;const tt=omitVars($),rt=extractTokens(tt),nt=extractSemanticTokens(tt),it=flattenTokens({tokens:rt,semanticTokens:nt}),At=(et=tt.config)==null?void 0:et.cssVarPrefix,{cssMap:at,cssVars:ot}=createThemeVars(it,{cssVarPrefix:At});return Object.assign(tt,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...ot},__cssMap:at,__breakpoints:analyzeBreakpoints(tt.breakpoints)}),tt}var systemProps=mergeWith({},background,border,color$1,flexbox,layout$1,filter$1,ring,interactivity,grid,others,position,effect,space,scroll,typography$1,textDecoration,transform,list,transition$1);Object.assign({},space,layout$1,flexbox,grid,position);var propNames=[...Object.keys(systemProps),...pseudoPropNames],styleProps={...systemProps,...pseudoSelectors},isStyleProp=$=>$ in styleProps,expandResponsive=$=>et=>{if(!et.__breakpoints)return $;const{isResponsive:tt,toArrayValue:rt,media:nt}=et.__breakpoints,it={};for(const At in $){let at=runIfFn$2($[At],et);if(at==null)continue;if(at=isObject(at)&&tt(at)?rt(at):at,!Array.isArray(at)){it[At]=at;continue}const ot=at.slice(0,nt.length).length;for(let st=0;st$.startsWith("--")&&typeof et=="string"&&!isCssVar2(et),resolveTokenValue=($,et)=>{var tt,rt;if(et==null)return et;const nt=ot=>{var st,ct;return(ct=(st=$.__cssMap)==null?void 0:st[ot])==null?void 0:ct.varRef},it=ot=>{var st;return(st=nt(ot))!=null?st:ot},[At,at]=splitByComma(et);return et=(rt=(tt=nt(At))!=null?tt:it(at))!=null?rt:it(et),et};function getCss($){const{configs:et={},pseudos:tt={},theme:rt}=$,nt=(it,At=!1)=>{var at,ot,st;const ct=runIfFn$2(it,rt),ut=expandResponsive(ct)(rt);let gt={};for(let dt in ut){const ht=ut[dt];let Et=runIfFn$2(ht,rt);dt in tt&&(dt=tt[dt]),isCSSVariableTokenValue(dt,Et)&&(Et=resolveTokenValue(rt,Et));let wt=et[dt];if(wt===!0&&(wt={property:dt}),isObject(Et)){gt[dt]=(at=gt[dt])!=null?at:{},gt[dt]=mergeWith({},gt[dt],nt(Et,!0));continue}let Qt=(st=(ot=wt==null?void 0:wt.transform)==null?void 0:ot.call(wt,Et,rt,ct))!=null?st:Et;Qt=wt!=null&&wt.processResult?nt(Qt,!0):Qt;const pt=runIfFn$2(wt==null?void 0:wt.property,rt);if(!At&&(wt!=null&&wt.static)){const mt=runIfFn$2(wt.static,rt);gt=mergeWith({},gt,mt)}if(pt&&Array.isArray(pt)){for(const mt of pt)gt[mt]=Qt;continue}if(pt){pt==="&"&&isObject(Qt)?gt=mergeWith({},gt,Qt):gt[pt]=Qt;continue}if(isObject(Qt)){gt=mergeWith({},gt,Qt);continue}gt[dt]=Qt}return gt};return nt}var css=$=>et=>getCss({theme:et,pseudos:pseudoSelectors,configs:systemProps})($);function defineStyle($){return $}function defineStyleConfig($){return $}function createMultiStyleConfigHelpers($){return{definePartsStyle(et){return et},defineMultiStyleConfig(et){return{parts:$,...et}}}}function normalize2($,et){if(Array.isArray($))return $;if(isObject($))return et($);if($!=null)return[$]}function getNextIndex($,et){for(let tt=et+1;tt<$.length;tt++)if($[tt]!=null)return tt;return-1}function createResolver($){const et=$.__breakpoints;return function(rt,nt,it,At){var at,ot;if(!et)return;const st={},ct=normalize2(it,et.toArrayValue);if(!ct)return st;const ut=ct.length,gt=ut===1,dt=!!rt.parts;for(let ht=0;ht{mergeWith(st,{[mt]:gt?pt[mt]:{[Qt]:pt[mt]}})});continue}if(!dt){gt?mergeWith(st,pt):st[Qt]=pt;continue}st[Qt]=pt}}return st}}function resolveStyleConfig($){return et=>{var tt;const{variant:rt,size:nt,theme:it}=et,At=createResolver(it);return mergeWith({},runIfFn$2((tt=$.baseStyle)!=null?tt:{},et),At($,"sizes",nt,et),At($,"variants",rt,et))}}function omitThemingProps($){return omit$2($,["styleConfig","size","variant","colorScheme"])}var requiredChakraThemeKeys=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function isChakraTheme($){return isObject($)?requiredChakraThemeKeys.every(et=>Object.prototype.hasOwnProperty.call($,et)):!1}var transitionProperty={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},transitionTimingFunction={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},transitionDuration={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},transition={property:transitionProperty,easing:transitionTimingFunction,duration:transitionDuration},transition_default=transition,zIndices={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},z_index_default=zIndices,borders$1={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},borders_default=borders$1,breakpoints={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},breakpoints_default=breakpoints,colors$1={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},colors_default=colors$1,radii={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},radius_default=radii,shadows={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},shadows_default=shadows,blur={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},blur_default=blur,typography={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},typography_default=typography,spacing={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},largeSizes={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},container={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},sizes$n={...spacing,...largeSizes,container},sizes_default=sizes$n,foundations={breakpoints:breakpoints_default,zIndices:z_index_default,radii:radius_default,blur:blur_default,colors:colors_default,...typography_default,sizes:sizes_default,shadows:shadows_default,space:spacing,borders:borders_default,transition:transition_default},{defineMultiStyleConfig:defineMultiStyleConfig$p,definePartsStyle:definePartsStyle$p}=createMultiStyleConfigHelpers(["stepper","step","title","description","indicator","separator","icon","number"]),$size$4=cssVar$1("stepper-indicator-size"),$iconSize=cssVar$1("stepper-icon-size"),$titleFontSize=cssVar$1("stepper-title-font-size"),$descFontSize=cssVar$1("stepper-description-font-size"),$accentColor=cssVar$1("stepper-accent-color"),baseStyle$G=definePartsStyle$p(({colorScheme:$})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[$accentColor.variable]:`colors.${$}.500`,_dark:{[$accentColor.variable]:`colors.${$}.200`}},title:{fontSize:$titleFontSize.reference,fontWeight:"medium"},description:{fontSize:$descFontSize.reference,color:"chakra-subtle-text"},number:{fontSize:$titleFontSize.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:$iconSize.reference,height:$iconSize.reference},indicator:{flexShrink:0,borderRadius:"full",width:$size$4.reference,height:$size$4.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:$accentColor.reference},"&[data-status=complete]":{bg:$accentColor.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:$accentColor.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${$size$4.reference} - 8px)`,top:`calc(${$size$4.reference} + 4px)`,insetStart:`calc(${$size$4.reference} / 2 - 1px)`}}})),stepperTheme=defineMultiStyleConfig$p({baseStyle:baseStyle$G,sizes:{xs:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.4",[$iconSize.variable]:"sizes.3",[$titleFontSize.variable]:"fontSizes.xs",[$descFontSize.variable]:"fontSizes.xs"}}),sm:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.6",[$iconSize.variable]:"sizes.4",[$titleFontSize.variable]:"fontSizes.sm",[$descFontSize.variable]:"fontSizes.xs"}}),md:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.8",[$iconSize.variable]:"sizes.5",[$titleFontSize.variable]:"fontSizes.md",[$descFontSize.variable]:"fontSizes.sm"}}),lg:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.10",[$iconSize.variable]:"sizes.6",[$titleFontSize.variable]:"fontSizes.lg",[$descFontSize.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function anatomy($,et={}){let tt=!1;function rt(){if(!tt){tt=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function nt(...ct){rt();for(const ut of ct)et[ut]=ot(ut);return anatomy($,et)}function it(...ct){for(const ut of ct)ut in et||(et[ut]=ot(ut));return anatomy($,et)}function At(){return Object.fromEntries(Object.entries(et).map(([ut,gt])=>[ut,gt.selector]))}function at(){return Object.fromEntries(Object.entries(et).map(([ut,gt])=>[ut,gt.className]))}function ot(ct){const dt=`chakra-${(["container","root"].includes(ct??"")?[$]:[$,ct]).filter(Boolean).join("__")}`;return{className:dt,selector:`.${dt}`,toString:()=>ct}}return{parts:nt,toPart:ot,extend:it,selectors:At,classnames:at,get keys(){return Object.keys(et)},__type:{}}}var accordionAnatomy=anatomy("accordion").parts("root","container","button","panel").extend("icon"),alertAnatomy=anatomy("alert").parts("title","description","container").extend("icon","spinner"),avatarAnatomy=anatomy("avatar").parts("label","badge","container").extend("excessLabel","group"),breadcrumbAnatomy=anatomy("breadcrumb").parts("link","item","container").extend("separator");anatomy("button").parts();var checkboxAnatomy=anatomy("checkbox").parts("control","icon","container").extend("label");anatomy("progress").parts("track","filledTrack").extend("label");var drawerAnatomy=anatomy("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),editableAnatomy=anatomy("editable").parts("preview","input","textarea"),formAnatomy=anatomy("form").parts("container","requiredIndicator","helperText"),formErrorAnatomy=anatomy("formError").parts("text","icon"),inputAnatomy=anatomy("input").parts("addon","field","element","group"),listAnatomy=anatomy("list").parts("container","item","icon"),menuAnatomy=anatomy("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),modalAnatomy=anatomy("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),numberInputAnatomy=anatomy("numberinput").parts("root","field","stepperGroup","stepper");anatomy("pininput").parts("field");var popoverAnatomy=anatomy("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),progressAnatomy=anatomy("progress").parts("label","filledTrack","track"),radioAnatomy=anatomy("radio").parts("container","control","label"),selectAnatomy=anatomy("select").parts("field","icon"),sliderAnatomy=anatomy("slider").parts("container","track","thumb","filledTrack","mark"),statAnatomy=anatomy("stat").parts("container","label","helpText","number","icon"),switchAnatomy=anatomy("switch").parts("container","track","thumb"),tableAnatomy=anatomy("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tabsAnatomy=anatomy("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tagAnatomy=anatomy("tag").parts("container","label","closeButton"),cardAnatomy=anatomy("card").parts("container","header","body","footer");function guard($,et,tt){return Math.min(Math.max($,tt),et)}class ColorError extends Error{constructor(et){super(`Failed to parse color: "${et}"`)}}var ColorError$1=ColorError;function parseToRgba($){if(typeof $!="string")throw new ColorError$1($);if($.trim().toLowerCase()==="transparent")return[0,0,0,0];let et=$.trim();et=namedColorRegex.test($)?nameToHex($):$;const tt=reducedHexRegex.exec(et);if(tt){const At=Array.from(tt).slice(1);return[...At.slice(0,3).map(at=>parseInt(r$5(at,2),16)),parseInt(r$5(At[3]||"f",2),16)/255]}const rt=hexRegex.exec(et);if(rt){const At=Array.from(rt).slice(1);return[...At.slice(0,3).map(at=>parseInt(at,16)),parseInt(At[3]||"ff",16)/255]}const nt=rgbaRegex.exec(et);if(nt){const At=Array.from(nt).slice(1);return[...At.slice(0,3).map(at=>parseInt(at,10)),parseFloat(At[3]||"1")]}const it=hslaRegex.exec(et);if(it){const[At,at,ot,st]=Array.from(it).slice(1).map(parseFloat);if(guard(0,100,at)!==at)throw new ColorError$1($);if(guard(0,100,ot)!==ot)throw new ColorError$1($);return[...hslToRgb(At,at,ot),Number.isNaN(st)?1:st]}throw new ColorError$1($)}function hash$6($){let et=5381,tt=$.length;for(;tt;)et=et*33^$.charCodeAt(--tt);return(et>>>0)%2341}const colorToInt=$=>parseInt($.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(($,et)=>{const tt=colorToInt(et.substring(0,3)),rt=colorToInt(et.substring(3)).toString(16);let nt="";for(let it=0;it<6-rt.length;it++)nt+="0";return $[tt]=`${nt}${rt}`,$},{});function nameToHex($){const et=$.toLowerCase().trim(),tt=compressedColorMap[hash$6(et)];if(!tt)throw new ColorError$1($);return`#${tt}`}const r$5=($,et)=>Array.from(Array(et)).map(()=>$).join(""),reducedHexRegex=new RegExp(`^#${r$5("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r$5("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$5(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=$=>Math.round($*255),hslToRgb=($,et,tt)=>{let rt=tt/100;if(et===0)return[rt,rt,rt].map(roundColor);const nt=($%360+360)%360/60,it=(1-Math.abs(2*rt-1))*(et/100),At=it*(1-Math.abs(nt%2-1));let at=0,ot=0,st=0;nt>=0&&nt<1?(at=it,ot=At):nt>=1&&nt<2?(at=At,ot=it):nt>=2&&nt<3?(ot=it,st=At):nt>=3&&nt<4?(ot=At,st=it):nt>=4&&nt<5?(at=At,st=it):nt>=5&&nt<6&&(at=it,st=At);const ct=rt-it/2,ut=at+ct,gt=ot+ct,dt=st+ct;return[ut,gt,dt].map(roundColor)};function rgba$1($,et,tt,rt){return`rgba(${guard(0,255,$).toFixed()}, ${guard(0,255,et).toFixed()}, ${guard(0,255,tt).toFixed()}, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function transparentize$1($,et){const[tt,rt,nt,it]=parseToRgba($);return rgba$1(tt,rt,nt,it-et)}function toHex$4($){const[et,tt,rt,nt]=parseToRgba($);let it=At=>{const at=guard(0,255,At).toString(16);return at.length===1?`0${at}`:at};return`#${it(et)}${it(tt)}${it(rt)}${nt<1?it(Math.round(nt*255)):""}`}function dlv_es_default($,et,tt,rt,nt){for(et=et.split?et.split("."):et,rt=0;rtObject.keys($).length===0,getColor=($,et,tt)=>{const rt=dlv_es_default($,`colors.${et}`,et);try{return toHex$4(rt),rt}catch{return tt??"#000000"}},getBrightness=$=>{const[et,tt,rt]=parseToRgba($);return(et*299+tt*587+rt*114)/1e3},tone=$=>et=>{const tt=getColor(et,$);return getBrightness(tt)<128?"dark":"light"},isDark=$=>et=>tone($)(et)==="dark",transparentize=($,et)=>tt=>{const rt=getColor(tt,$);return transparentize$1(rt,1-et)};function generateStripe($="1rem",et="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( +`+it.stack}return{value:$,source:et,stack:nt,digest:null}}function Li($,et,tt){return{value:$,source:null,stack:tt??null,digest:et??null}}function Mi($,et){try{console.error(et.value)}catch(tt){setTimeout(function(){throw tt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi($,et,tt){tt=ch(-1,tt),tt.tag=3,tt.payload={element:null};var rt=et.value;return tt.callback=function(){Pi||(Pi=!0,Qi=rt),Mi($,et)},tt}function Ri($,et,tt){tt=ch(-1,tt),tt.tag=3;var rt=$.type.getDerivedStateFromError;if(typeof rt=="function"){var nt=et.value;tt.payload=function(){return rt(nt)},tt.callback=function(){Mi($,et)}}var it=$.stateNode;return it!==null&&typeof it.componentDidCatch=="function"&&(tt.callback=function(){Mi($,et),typeof rt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var At=et.stack;this.componentDidCatch(et.value,{componentStack:At!==null?At:""})}),tt}function Ti($,et,tt){var rt=$.pingCache;if(rt===null){rt=$.pingCache=new Ni;var nt=new Set;rt.set(et,nt)}else nt=rt.get(et),nt===void 0&&(nt=new Set,rt.set(et,nt));nt.has(tt)||(nt.add(tt),$=Ui.bind(null,$,et,tt),et.then($,$))}function Vi($){do{var et;if((et=$.tag===13)&&(et=$.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return $;$=$.return}while($!==null);return null}function Wi($,et,tt,rt,nt){return $.mode&1?($.flags|=65536,$.lanes=nt,$):($===et?$.flags|=65536:($.flags|=128,tt.flags|=131072,tt.flags&=-52805,tt.tag===1&&(tt.alternate===null?tt.tag=17:(et=ch(-1,1),et.tag=2,dh(tt,et,1))),tt.lanes|=1),$)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi($,et,tt,rt){et.child=$===null?Ch(et,null,tt,rt):Bh(et,$.child,tt,rt)}function Zi($,et,tt,rt,nt){tt=tt.render;var it=et.ref;return Tg(et,nt),rt=Xh($,et,tt,rt,it,nt),tt=bi(),$!==null&&!Ug?(et.updateQueue=$.updateQueue,et.flags&=-2053,$.lanes&=~nt,$i($,et,nt)):(I$1&&tt&&vg(et),et.flags|=1,Yi($,et,rt,nt),et.child)}function aj($,et,tt,rt,nt){if($===null){var it=tt.type;return typeof it=="function"&&!bj(it)&&it.defaultProps===void 0&&tt.compare===null&&tt.defaultProps===void 0?(et.tag=15,et.type=it,cj($,et,it,rt,nt)):($=yh(tt.type,null,rt,et,et.mode,nt),$.ref=et.ref,$.return=et,et.child=$)}if(it=$.child,!($.lanes&nt)){var At=it.memoizedProps;if(tt=tt.compare,tt=tt!==null?tt:Ie,tt(At,rt)&&$.ref===et.ref)return $i($,et,nt)}return et.flags|=1,$=wh(it,rt),$.ref=et.ref,$.return=et,et.child=$}function cj($,et,tt,rt,nt){if($!==null){var it=$.memoizedProps;if(Ie(it,rt)&&$.ref===et.ref)if(Ug=!1,et.pendingProps=rt=it,($.lanes&nt)!==0)$.flags&131072&&(Ug=!0);else return et.lanes=$.lanes,$i($,et,nt)}return dj($,et,tt,rt,nt)}function ej($,et,tt){var rt=et.pendingProps,nt=rt.children,it=$!==null?$.memoizedState:null;if(rt.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$1(fj,gj),gj|=tt;else{if(!(tt&1073741824))return $=it!==null?it.baseLanes|tt:tt,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:$,cachePool:null,transitions:null},et.updateQueue=null,G$1(fj,gj),gj|=$,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},rt=it!==null?it.baseLanes:tt,G$1(fj,gj),gj|=rt}else it!==null?(rt=it.baseLanes|tt,et.memoizedState=null):rt=tt,G$1(fj,gj),gj|=rt;return Yi($,et,nt,tt),et.child}function hj($,et){var tt=et.ref;($===null&&tt!==null||$!==null&&$.ref!==tt)&&(et.flags|=512,et.flags|=2097152)}function dj($,et,tt,rt,nt){var it=Zf(tt)?Xf:H$1.current;return it=Yf(et,it),Tg(et,nt),tt=Xh($,et,tt,rt,it,nt),rt=bi(),$!==null&&!Ug?(et.updateQueue=$.updateQueue,et.flags&=-2053,$.lanes&=~nt,$i($,et,nt)):(I$1&&rt&&vg(et),et.flags|=1,Yi($,et,tt,nt),et.child)}function ij($,et,tt,rt,nt){if(Zf(tt)){var it=!0;cg(et)}else it=!1;if(Tg(et,nt),et.stateNode===null)jj($,et),ph(et,tt,rt),rh$1(et,tt,rt,nt),rt=!0;else if($===null){var At=et.stateNode,at=et.memoizedProps;At.props=at;var ot=At.context,st=tt.contextType;typeof st=="object"&&st!==null?st=Vg(st):(st=Zf(tt)?Xf:H$1.current,st=Yf(et,st));var ct=tt.getDerivedStateFromProps,ut=typeof ct=="function"||typeof At.getSnapshotBeforeUpdate=="function";ut||typeof At.UNSAFE_componentWillReceiveProps!="function"&&typeof At.componentWillReceiveProps!="function"||(at!==rt||ot!==st)&&qh(et,At,rt,st),$g=!1;var gt=et.memoizedState;At.state=gt,gh(et,rt,At,nt),ot=et.memoizedState,at!==rt||gt!==ot||Wf.current||$g?(typeof ct=="function"&&(kh(et,tt,ct,rt),ot=et.memoizedState),(at=$g||oh(et,tt,at,rt,gt,ot,st))?(ut||typeof At.UNSAFE_componentWillMount!="function"&&typeof At.componentWillMount!="function"||(typeof At.componentWillMount=="function"&&At.componentWillMount(),typeof At.UNSAFE_componentWillMount=="function"&&At.UNSAFE_componentWillMount()),typeof At.componentDidMount=="function"&&(et.flags|=4194308)):(typeof At.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=rt,et.memoizedState=ot),At.props=rt,At.state=ot,At.context=st,rt=at):(typeof At.componentDidMount=="function"&&(et.flags|=4194308),rt=!1)}else{At=et.stateNode,bh($,et),at=et.memoizedProps,st=et.type===et.elementType?at:Lg(et.type,at),At.props=st,ut=et.pendingProps,gt=At.context,ot=tt.contextType,typeof ot=="object"&&ot!==null?ot=Vg(ot):(ot=Zf(tt)?Xf:H$1.current,ot=Yf(et,ot));var dt=tt.getDerivedStateFromProps;(ct=typeof dt=="function"||typeof At.getSnapshotBeforeUpdate=="function")||typeof At.UNSAFE_componentWillReceiveProps!="function"&&typeof At.componentWillReceiveProps!="function"||(at!==ut||gt!==ot)&&qh(et,At,rt,ot),$g=!1,gt=et.memoizedState,At.state=gt,gh(et,rt,At,nt);var ht=et.memoizedState;at!==ut||gt!==ht||Wf.current||$g?(typeof dt=="function"&&(kh(et,tt,dt,rt),ht=et.memoizedState),(st=$g||oh(et,tt,st,rt,gt,ht,ot)||!1)?(ct||typeof At.UNSAFE_componentWillUpdate!="function"&&typeof At.componentWillUpdate!="function"||(typeof At.componentWillUpdate=="function"&&At.componentWillUpdate(rt,ht,ot),typeof At.UNSAFE_componentWillUpdate=="function"&&At.UNSAFE_componentWillUpdate(rt,ht,ot)),typeof At.componentDidUpdate=="function"&&(et.flags|=4),typeof At.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof At.componentDidUpdate!="function"||at===$.memoizedProps&>===$.memoizedState||(et.flags|=4),typeof At.getSnapshotBeforeUpdate!="function"||at===$.memoizedProps&>===$.memoizedState||(et.flags|=1024),et.memoizedProps=rt,et.memoizedState=ht),At.props=rt,At.state=ht,At.context=ot,rt=st):(typeof At.componentDidUpdate!="function"||at===$.memoizedProps&>===$.memoizedState||(et.flags|=4),typeof At.getSnapshotBeforeUpdate!="function"||at===$.memoizedProps&>===$.memoizedState||(et.flags|=1024),rt=!1)}return kj($,et,tt,rt,it,nt)}function kj($,et,tt,rt,nt,it){hj($,et);var At=(et.flags&128)!==0;if(!rt&&!At)return nt&&dg(et,tt,!1),$i($,et,it);rt=et.stateNode,Xi.current=et;var at=At&&typeof tt.getDerivedStateFromError!="function"?null:rt.render();return et.flags|=1,$!==null&&At?(et.child=Bh(et,$.child,null,it),et.child=Bh(et,null,at,it)):Yi($,et,at,it),et.memoizedState=rt.state,nt&&dg(et,tt,!0),et.child}function lj($){var et=$.stateNode;et.pendingContext?ag($,et.pendingContext,et.pendingContext!==et.context):et.context&&ag($,et.context,!1),Ih($,et.containerInfo)}function mj($,et,tt,rt,nt){return Ig(),Jg(nt),et.flags|=256,Yi($,et,tt,rt),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj($){return{baseLanes:$,cachePool:null,transitions:null}}function pj($,et,tt){var rt=et.pendingProps,nt=M$1.current,it=!1,At=(et.flags&128)!==0,at;if((at=At)||(at=$!==null&&$.memoizedState===null?!1:(nt&2)!==0),at?(it=!0,et.flags&=-129):($===null||$.memoizedState!==null)&&(nt|=1),G$1(M$1,nt&1),$===null)return Eg(et),$=et.memoizedState,$!==null&&($=$.dehydrated,$!==null)?(et.mode&1?$.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(At=rt.children,$=rt.fallback,it?(rt=et.mode,it=et.child,At={mode:"hidden",children:At},!(rt&1)&&it!==null?(it.childLanes=0,it.pendingProps=At):it=qj(At,rt,0,null),$=Ah($,rt,tt,null),it.return=et,$.return=et,it.sibling=$,et.child=it,et.child.memoizedState=oj(tt),et.memoizedState=nj,$):rj(et,At));if(nt=$.memoizedState,nt!==null&&(at=nt.dehydrated,at!==null))return sj($,et,At,rt,at,nt,tt);if(it){it=rt.fallback,At=et.mode,nt=$.child,at=nt.sibling;var ot={mode:"hidden",children:rt.children};return!(At&1)&&et.child!==nt?(rt=et.child,rt.childLanes=0,rt.pendingProps=ot,et.deletions=null):(rt=wh(nt,ot),rt.subtreeFlags=nt.subtreeFlags&14680064),at!==null?it=wh(at,it):(it=Ah(it,At,tt,null),it.flags|=2),it.return=et,rt.return=et,rt.sibling=it,et.child=rt,rt=it,it=et.child,At=$.child.memoizedState,At=At===null?oj(tt):{baseLanes:At.baseLanes|tt,cachePool:null,transitions:At.transitions},it.memoizedState=At,it.childLanes=$.childLanes&~tt,et.memoizedState=nj,rt}return it=$.child,$=it.sibling,rt=wh(it,{mode:"visible",children:rt.children}),!(et.mode&1)&&(rt.lanes=tt),rt.return=et,rt.sibling=null,$!==null&&(tt=et.deletions,tt===null?(et.deletions=[$],et.flags|=16):tt.push($)),et.child=rt,et.memoizedState=null,rt}function rj($,et){return et=qj({mode:"visible",children:et},$.mode,0,null),et.return=$,$.child=et}function tj($,et,tt,rt){return rt!==null&&Jg(rt),Bh(et,$.child,null,tt),$=rj(et,et.pendingProps.children),$.flags|=2,et.memoizedState=null,$}function sj($,et,tt,rt,nt,it,At){if(tt)return et.flags&256?(et.flags&=-257,rt=Li(Error(p$4(422))),tj($,et,At,rt)):et.memoizedState!==null?(et.child=$.child,et.flags|=128,null):(it=rt.fallback,nt=et.mode,rt=qj({mode:"visible",children:rt.children},nt,0,null),it=Ah(it,nt,At,null),it.flags|=2,rt.return=et,it.return=et,rt.sibling=it,et.child=rt,et.mode&1&&Bh(et,$.child,null,At),et.child.memoizedState=oj(At),et.memoizedState=nj,it);if(!(et.mode&1))return tj($,et,At,null);if(nt.data==="$!"){if(rt=nt.nextSibling&&nt.nextSibling.dataset,rt)var at=rt.dgst;return rt=at,it=Error(p$4(419)),rt=Li(it,rt,void 0),tj($,et,At,rt)}if(at=(At&$.childLanes)!==0,Ug||at){if(rt=R$1,rt!==null){switch(At&-At){case 4:nt=2;break;case 16:nt=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:nt=32;break;case 536870912:nt=268435456;break;default:nt=0}nt=nt&(rt.suspendedLanes|At)?0:nt,nt!==0&&nt!==it.retryLane&&(it.retryLane=nt,Zg($,nt),mh(rt,$,nt,-1))}return uj(),rt=Li(Error(p$4(421))),tj($,et,At,rt)}return nt.data==="$?"?(et.flags|=128,et.child=$.child,et=vj.bind(null,$),nt._reactRetry=et,null):($=it.treeContext,yg=Lf(nt.nextSibling),xg=et,I$1=!0,zg=null,$!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=$.id,sg=$.overflow,qg=et),et=rj(et,rt.children),et.flags|=4096,et)}function wj($,et,tt){$.lanes|=et;var rt=$.alternate;rt!==null&&(rt.lanes|=et),Sg($.return,et,tt)}function xj($,et,tt,rt,nt){var it=$.memoizedState;it===null?$.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:rt,tail:tt,tailMode:nt}:(it.isBackwards=et,it.rendering=null,it.renderingStartTime=0,it.last=rt,it.tail=tt,it.tailMode=nt)}function yj($,et,tt){var rt=et.pendingProps,nt=rt.revealOrder,it=rt.tail;if(Yi($,et,rt.children,tt),rt=M$1.current,rt&2)rt=rt&1|2,et.flags|=128;else{if($!==null&&$.flags&128)e:for($=et.child;$!==null;){if($.tag===13)$.memoizedState!==null&&wj($,tt,et);else if($.tag===19)wj($,tt,et);else if($.child!==null){$.child.return=$,$=$.child;continue}if($===et)break e;for(;$.sibling===null;){if($.return===null||$.return===et)break e;$=$.return}$.sibling.return=$.return,$=$.sibling}rt&=1}if(G$1(M$1,rt),!(et.mode&1))et.memoizedState=null;else switch(nt){case"forwards":for(tt=et.child,nt=null;tt!==null;)$=tt.alternate,$!==null&&Mh($)===null&&(nt=tt),tt=tt.sibling;tt=nt,tt===null?(nt=et.child,et.child=null):(nt=tt.sibling,tt.sibling=null),xj(et,!1,nt,tt,it);break;case"backwards":for(tt=null,nt=et.child,et.child=null;nt!==null;){if($=nt.alternate,$!==null&&Mh($)===null){et.child=nt;break}$=nt.sibling,nt.sibling=tt,tt=nt,nt=$}xj(et,!0,tt,null,it);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj($,et){!(et.mode&1)&&$!==null&&($.alternate=null,et.alternate=null,et.flags|=2)}function $i($,et,tt){if($!==null&&(et.dependencies=$.dependencies),hh|=et.lanes,!(tt&et.childLanes))return null;if($!==null&&et.child!==$.child)throw Error(p$4(153));if(et.child!==null){for($=et.child,tt=wh($,$.pendingProps),et.child=tt,tt.return=et;$.sibling!==null;)$=$.sibling,tt=tt.sibling=wh($,$.pendingProps),tt.return=et;tt.sibling=null}return et.child}function zj($,et,tt){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh$1(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var rt=et.type._context,nt=et.memoizedProps.value;G$1(Mg,rt._currentValue),rt._currentValue=nt;break;case 13:if(rt=et.memoizedState,rt!==null)return rt.dehydrated!==null?(G$1(M$1,M$1.current&1),et.flags|=128,null):tt&et.child.childLanes?pj($,et,tt):(G$1(M$1,M$1.current&1),$=$i($,et,tt),$!==null?$.sibling:null);G$1(M$1,M$1.current&1);break;case 19:if(rt=(tt&et.childLanes)!==0,$.flags&128){if(rt)return yj($,et,tt);et.flags|=128}if(nt=et.memoizedState,nt!==null&&(nt.rendering=null,nt.tail=null,nt.lastEffect=null),G$1(M$1,M$1.current),rt)break;return null;case 22:case 23:return et.lanes=0,ej($,et,tt)}return $i($,et,tt)}var Aj,Bj,Cj,Dj;Aj=function($,et){for(var tt=et.child;tt!==null;){if(tt.tag===5||tt.tag===6)$.appendChild(tt.stateNode);else if(tt.tag!==4&&tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}};Bj=function(){};Cj=function($,et,tt,rt){var nt=$.memoizedProps;if(nt!==rt){$=et.stateNode,Hh(Eh.current);var it=null;switch(tt){case"input":nt=Ya($,nt),rt=Ya($,rt),it=[];break;case"select":nt=A$1({},nt,{value:void 0}),rt=A$1({},rt,{value:void 0}),it=[];break;case"textarea":nt=gb($,nt),rt=gb($,rt),it=[];break;default:typeof nt.onClick!="function"&&typeof rt.onClick=="function"&&($.onclick=Bf)}ub(tt,rt);var At;tt=null;for(st in nt)if(!rt.hasOwnProperty(st)&&nt.hasOwnProperty(st)&&nt[st]!=null)if(st==="style"){var at=nt[st];for(At in at)at.hasOwnProperty(At)&&(tt||(tt={}),tt[At]="")}else st!=="dangerouslySetInnerHTML"&&st!=="children"&&st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&st!=="autoFocus"&&(ea.hasOwnProperty(st)?it||(it=[]):(it=it||[]).push(st,null));for(st in rt){var ot=rt[st];if(at=nt!=null?nt[st]:void 0,rt.hasOwnProperty(st)&&ot!==at&&(ot!=null||at!=null))if(st==="style")if(at){for(At in at)!at.hasOwnProperty(At)||ot&&ot.hasOwnProperty(At)||(tt||(tt={}),tt[At]="");for(At in ot)ot.hasOwnProperty(At)&&at[At]!==ot[At]&&(tt||(tt={}),tt[At]=ot[At])}else tt||(it||(it=[]),it.push(st,tt)),tt=ot;else st==="dangerouslySetInnerHTML"?(ot=ot?ot.__html:void 0,at=at?at.__html:void 0,ot!=null&&at!==ot&&(it=it||[]).push(st,ot)):st==="children"?typeof ot!="string"&&typeof ot!="number"||(it=it||[]).push(st,""+ot):st!=="suppressContentEditableWarning"&&st!=="suppressHydrationWarning"&&(ea.hasOwnProperty(st)?(ot!=null&&st==="onScroll"&&D$1("scroll",$),it||at===ot||(it=[])):(it=it||[]).push(st,ot))}tt&&(it=it||[]).push("style",tt);var st=it;(et.updateQueue=st)&&(et.flags|=4)}};Dj=function($,et,tt,rt){tt!==rt&&(et.flags|=4)};function Ej($,et){if(!I$1)switch($.tailMode){case"hidden":et=$.tail;for(var tt=null;et!==null;)et.alternate!==null&&(tt=et),et=et.sibling;tt===null?$.tail=null:tt.sibling=null;break;case"collapsed":tt=$.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et||$.tail===null?$.tail=null:$.tail.sibling=null:rt.sibling=null}}function S$1($){var et=$.alternate!==null&&$.alternate.child===$.child,tt=0,rt=0;if(et)for(var nt=$.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags&14680064,rt|=nt.flags&14680064,nt.return=$,nt=nt.sibling;else for(nt=$.child;nt!==null;)tt|=nt.lanes|nt.childLanes,rt|=nt.subtreeFlags,rt|=nt.flags,nt.return=$,nt=nt.sibling;return $.subtreeFlags|=rt,$.childLanes=tt,et}function Fj($,et,tt){var rt=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$1(et),null;case 1:return Zf(et.type)&&$f(),S$1(et),null;case 3:return rt=et.stateNode,Jh(),E$1(Wf),E$1(H$1),Oh(),rt.pendingContext&&(rt.context=rt.pendingContext,rt.pendingContext=null),($===null||$.child===null)&&(Gg(et)?et.flags|=4:$===null||$.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj($,et),S$1(et),null;case 5:Lh(et);var nt=Hh(Gh.current);if(tt=et.type,$!==null&&et.stateNode!=null)Cj($,et,tt,rt,nt),$.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!rt){if(et.stateNode===null)throw Error(p$4(166));return S$1(et),null}if($=Hh(Eh.current),Gg(et)){rt=et.stateNode,tt=et.type;var it=et.memoizedProps;switch(rt[Of]=et,rt[Pf]=it,$=(et.mode&1)!==0,tt){case"dialog":D$1("cancel",rt),D$1("close",rt);break;case"iframe":case"object":case"embed":D$1("load",rt);break;case"video":case"audio":for(nt=0;nt<\/script>",$=$.removeChild($.firstChild)):typeof rt.is=="string"?$=At.createElement(tt,{is:rt.is}):($=At.createElement(tt),tt==="select"&&(At=$,rt.multiple?At.multiple=!0:rt.size&&(At.size=rt.size))):$=At.createElementNS($,tt),$[Of]=et,$[Pf]=rt,Aj($,et,!1,!1),et.stateNode=$;e:{switch(At=vb(tt,rt),tt){case"dialog":D$1("cancel",$),D$1("close",$),nt=rt;break;case"iframe":case"object":case"embed":D$1("load",$),nt=rt;break;case"video":case"audio":for(nt=0;ntHj&&(et.flags|=128,rt=!0,Ej(it,!1),et.lanes=4194304)}else{if(!rt)if($=Mh(At),$!==null){if(et.flags|=128,rt=!0,tt=$.updateQueue,tt!==null&&(et.updateQueue=tt,et.flags|=4),Ej(it,!0),it.tail===null&&it.tailMode==="hidden"&&!At.alternate&&!I$1)return S$1(et),null}else 2*B$1()-it.renderingStartTime>Hj&&tt!==1073741824&&(et.flags|=128,rt=!0,Ej(it,!1),et.lanes=4194304);it.isBackwards?(At.sibling=et.child,et.child=At):(tt=it.last,tt!==null?tt.sibling=At:et.child=At,it.last=At)}return it.tail!==null?(et=it.tail,it.rendering=et,it.tail=et.sibling,it.renderingStartTime=B$1(),et.sibling=null,tt=M$1.current,G$1(M$1,rt?tt&1|2:tt&1),et):(S$1(et),null);case 22:case 23:return Ij(),rt=et.memoizedState!==null,$!==null&&$.memoizedState!==null!==rt&&(et.flags|=8192),rt&&et.mode&1?gj&1073741824&&(S$1(et),et.subtreeFlags&6&&(et.flags|=8192)):S$1(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj($,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),$=et.flags,$&65536?(et.flags=$&-65537|128,et):null;case 3:return Jh(),E$1(Wf),E$1(H$1),Oh(),$=et.flags,$&65536&&!($&128)?(et.flags=$&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$1(M$1),$=et.memoizedState,$!==null&&$.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return $=et.flags,$&65536?(et.flags=$&-65537|128,et):null;case 19:return E$1(M$1),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V=null;function Mj($,et){var tt=$.ref;if(tt!==null)if(typeof tt=="function")try{tt(null)}catch(rt){W$1($,et,rt)}else tt.current=null}function Nj($,et,tt){try{tt()}catch(rt){W$1($,et,rt)}}var Oj=!1;function Pj($,et){if(Cf=dd,$=Me(),Ne($)){if("selectionStart"in $)var tt={start:$.selectionStart,end:$.selectionEnd};else e:{tt=(tt=$.ownerDocument)&&tt.defaultView||window;var rt=tt.getSelection&&tt.getSelection();if(rt&&rt.rangeCount!==0){tt=rt.anchorNode;var nt=rt.anchorOffset,it=rt.focusNode;rt=rt.focusOffset;try{tt.nodeType,it.nodeType}catch{tt=null;break e}var At=0,at=-1,ot=-1,st=0,ct=0,ut=$,gt=null;t:for(;;){for(var dt;ut!==tt||nt!==0&&ut.nodeType!==3||(at=At+nt),ut!==it||rt!==0&&ut.nodeType!==3||(ot=At+rt),ut.nodeType===3&&(At+=ut.nodeValue.length),(dt=ut.firstChild)!==null;)gt=ut,ut=dt;for(;;){if(ut===$)break t;if(gt===tt&&++st===nt&&(at=At),gt===it&&++ct===rt&&(ot=At),(dt=ut.nextSibling)!==null)break;ut=gt,gt=ut.parentNode}ut=dt}tt=at===-1||ot===-1?null:{start:at,end:ot}}else tt=null}tt=tt||{start:0,end:0}}else tt=null;for(Df={focusedElem:$,selectionRange:tt},dd=!1,V=et;V!==null;)if(et=V,$=et.child,(et.subtreeFlags&1028)!==0&&$!==null)$.return=et,V=$;else for(;V!==null;){et=V;try{var ht=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var Et=ht.memoizedProps,wt=ht.memoizedState,mt=et.stateNode,pt=mt.getSnapshotBeforeUpdate(et.elementType===et.type?Et:Lg(et.type,Et),wt);mt.__reactInternalSnapshotBeforeUpdate=pt}break;case 3:var Qt=et.stateNode.containerInfo;Qt.nodeType===1?Qt.textContent="":Qt.nodeType===9&&Qt.documentElement&&Qt.removeChild(Qt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch($t){W$1(et,et.return,$t)}if($=et.sibling,$!==null){$.return=et.return,V=$;break}V=et.return}return ht=Oj,Oj=!1,ht}function Qj($,et,tt){var rt=et.updateQueue;if(rt=rt!==null?rt.lastEffect:null,rt!==null){var nt=rt=rt.next;do{if((nt.tag&$)===$){var it=nt.destroy;nt.destroy=void 0,it!==void 0&&Nj(et,tt,it)}nt=nt.next}while(nt!==rt)}}function Rj($,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var tt=et=et.next;do{if((tt.tag&$)===$){var rt=tt.create;tt.destroy=rt()}tt=tt.next}while(tt!==et)}}function Sj($){var et=$.ref;if(et!==null){var tt=$.stateNode;switch($.tag){case 5:$=tt;break;default:$=tt}typeof et=="function"?et($):et.current=$}}function Tj($){var et=$.alternate;et!==null&&($.alternate=null,Tj(et)),$.child=null,$.deletions=null,$.sibling=null,$.tag===5&&(et=$.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),$.stateNode=null,$.return=null,$.dependencies=null,$.memoizedProps=null,$.memoizedState=null,$.pendingProps=null,$.stateNode=null,$.updateQueue=null}function Uj($){return $.tag===5||$.tag===3||$.tag===4}function Vj($){e:for(;;){for(;$.sibling===null;){if($.return===null||Uj($.return))return null;$=$.return}for($.sibling.return=$.return,$=$.sibling;$.tag!==5&&$.tag!==6&&$.tag!==18;){if($.flags&2||$.child===null||$.tag===4)continue e;$.child.return=$,$=$.child}if(!($.flags&2))return $.stateNode}}function Wj($,et,tt){var rt=$.tag;if(rt===5||rt===6)$=$.stateNode,et?tt.nodeType===8?tt.parentNode.insertBefore($,et):tt.insertBefore($,et):(tt.nodeType===8?(et=tt.parentNode,et.insertBefore($,tt)):(et=tt,et.appendChild($)),tt=tt._reactRootContainer,tt!=null||et.onclick!==null||(et.onclick=Bf));else if(rt!==4&&($=$.child,$!==null))for(Wj($,et,tt),$=$.sibling;$!==null;)Wj($,et,tt),$=$.sibling}function Xj($,et,tt){var rt=$.tag;if(rt===5||rt===6)$=$.stateNode,et?tt.insertBefore($,et):tt.appendChild($);else if(rt!==4&&($=$.child,$!==null))for(Xj($,et,tt),$=$.sibling;$!==null;)Xj($,et,tt),$=$.sibling}var X$1=null,Yj=!1;function Zj($,et,tt){for(tt=tt.child;tt!==null;)ak($,et,tt),tt=tt.sibling}function ak($,et,tt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,tt)}catch{}switch(tt.tag){case 5:U$1||Mj(tt,et);case 6:var rt=X$1,nt=Yj;X$1=null,Zj($,et,tt),X$1=rt,Yj=nt,X$1!==null&&(Yj?($=X$1,tt=tt.stateNode,$.nodeType===8?$.parentNode.removeChild(tt):$.removeChild(tt)):X$1.removeChild(tt.stateNode));break;case 18:X$1!==null&&(Yj?($=X$1,tt=tt.stateNode,$.nodeType===8?Kf($.parentNode,tt):$.nodeType===1&&Kf($,tt),bd($)):Kf(X$1,tt.stateNode));break;case 4:rt=X$1,nt=Yj,X$1=tt.stateNode.containerInfo,Yj=!0,Zj($,et,tt),X$1=rt,Yj=nt;break;case 0:case 11:case 14:case 15:if(!U$1&&(rt=tt.updateQueue,rt!==null&&(rt=rt.lastEffect,rt!==null))){nt=rt=rt.next;do{var it=nt,At=it.destroy;it=it.tag,At!==void 0&&(it&2||it&4)&&Nj(tt,et,At),nt=nt.next}while(nt!==rt)}Zj($,et,tt);break;case 1:if(!U$1&&(Mj(tt,et),rt=tt.stateNode,typeof rt.componentWillUnmount=="function"))try{rt.props=tt.memoizedProps,rt.state=tt.memoizedState,rt.componentWillUnmount()}catch(at){W$1(tt,et,at)}Zj($,et,tt);break;case 21:Zj($,et,tt);break;case 22:tt.mode&1?(U$1=(rt=U$1)||tt.memoizedState!==null,Zj($,et,tt),U$1=rt):Zj($,et,tt);break;default:Zj($,et,tt)}}function bk($){var et=$.updateQueue;if(et!==null){$.updateQueue=null;var tt=$.stateNode;tt===null&&(tt=$.stateNode=new Lj),et.forEach(function(rt){var nt=ck.bind(null,$,rt);tt.has(rt)||(tt.add(rt),rt.then(nt,nt))})}}function dk($,et){var tt=et.deletions;if(tt!==null)for(var rt=0;rtnt&&(nt=At),rt&=~it}if(rt=nt,rt=B$1()-rt,rt=(120>rt?120:480>rt?480:1080>rt?1080:1920>rt?1920:3e3>rt?3e3:4320>rt?4320:1960*mk(rt/1960))-rt,10$?16:$,xk===null)var rt=!1;else{if($=xk,xk=null,yk=0,K$1&6)throw Error(p$4(331));var nt=K$1;for(K$1|=4,V=$.current;V!==null;){var it=V,At=it.child;if(V.flags&16){var at=it.deletions;if(at!==null){for(var ot=0;otB$1()-gk?Lk($,0):sk|=tt),Ek($,et)}function Zk($,et){et===0&&($.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var tt=L$1();$=Zg($,et),$!==null&&(Ac($,et,tt),Ek($,tt))}function vj($){var et=$.memoizedState,tt=0;et!==null&&(tt=et.retryLane),Zk($,tt)}function ck($,et){var tt=0;switch($.tag){case 13:var rt=$.stateNode,nt=$.memoizedState;nt!==null&&(tt=nt.retryLane);break;case 19:rt=$.stateNode;break;default:throw Error(p$4(314))}rt!==null&&rt.delete(et),Zk($,tt)}var Wk;Wk=function($,et,tt){if($!==null)if($.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!($.lanes&tt)&&!(et.flags&128))return Ug=!1,zj($,et,tt);Ug=!!($.flags&131072)}else Ug=!1,I$1&&et.flags&1048576&&ug(et,ng,et.index);switch(et.lanes=0,et.tag){case 2:var rt=et.type;jj($,et),$=et.pendingProps;var nt=Yf(et,H$1.current);Tg(et,tt),nt=Xh(null,et,rt,$,nt,tt);var it=bi();return et.flags|=1,typeof nt=="object"&&nt!==null&&typeof nt.render=="function"&&nt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(rt)?(it=!0,cg(et)):it=!1,et.memoizedState=nt.state!==null&&nt.state!==void 0?nt.state:null,ah(et),nt.updater=nh,et.stateNode=nt,nt._reactInternals=et,rh$1(et,rt,$,tt),et=kj(null,et,rt,!0,it,tt)):(et.tag=0,I$1&&it&&vg(et),Yi(null,et,nt,tt),et=et.child),et;case 16:rt=et.elementType;e:{switch(jj($,et),$=et.pendingProps,nt=rt._init,rt=nt(rt._payload),et.type=rt,nt=et.tag=$k(rt),$=Lg(rt,$),nt){case 0:et=dj(null,et,rt,$,tt);break e;case 1:et=ij(null,et,rt,$,tt);break e;case 11:et=Zi(null,et,rt,$,tt);break e;case 14:et=aj(null,et,rt,Lg(rt.type,$),tt);break e}throw Error(p$4(306,rt,""))}return et;case 0:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),dj($,et,rt,nt,tt);case 1:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),ij($,et,rt,nt,tt);case 3:e:{if(lj(et),$===null)throw Error(p$4(387));rt=et.pendingProps,it=et.memoizedState,nt=it.element,bh($,et),gh(et,rt,null,tt);var At=et.memoizedState;if(rt=At.element,it.isDehydrated)if(it={element:rt,isDehydrated:!1,cache:At.cache,pendingSuspenseBoundaries:At.pendingSuspenseBoundaries,transitions:At.transitions},et.updateQueue.baseState=it,et.memoizedState=it,et.flags&256){nt=Ki(Error(p$4(423)),et),et=mj($,et,rt,tt,nt);break e}else if(rt!==nt){nt=Ki(Error(p$4(424)),et),et=mj($,et,rt,tt,nt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$1=!0,zg=null,tt=Ch(et,null,rt,tt),et.child=tt;tt;)tt.flags=tt.flags&-3|4096,tt=tt.sibling;else{if(Ig(),rt===nt){et=$i($,et,tt);break e}Yi($,et,rt,tt)}et=et.child}return et;case 5:return Kh$1(et),$===null&&Eg(et),rt=et.type,nt=et.pendingProps,it=$!==null?$.memoizedProps:null,At=nt.children,Ef(rt,nt)?At=null:it!==null&&Ef(rt,it)&&(et.flags|=32),hj($,et),Yi($,et,At,tt),et.child;case 6:return $===null&&Eg(et),null;case 13:return pj($,et,tt);case 4:return Ih(et,et.stateNode.containerInfo),rt=et.pendingProps,$===null?et.child=Bh(et,null,rt,tt):Yi($,et,rt,tt),et.child;case 11:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),Zi($,et,rt,nt,tt);case 7:return Yi($,et,et.pendingProps,tt),et.child;case 8:return Yi($,et,et.pendingProps.children,tt),et.child;case 12:return Yi($,et,et.pendingProps.children,tt),et.child;case 10:e:{if(rt=et.type._context,nt=et.pendingProps,it=et.memoizedProps,At=nt.value,G$1(Mg,rt._currentValue),rt._currentValue=At,it!==null)if(He(it.value,At)){if(it.children===nt.children&&!Wf.current){et=$i($,et,tt);break e}}else for(it=et.child,it!==null&&(it.return=et);it!==null;){var at=it.dependencies;if(at!==null){At=it.child;for(var ot=at.firstContext;ot!==null;){if(ot.context===rt){if(it.tag===1){ot=ch(-1,tt&-tt),ot.tag=2;var st=it.updateQueue;if(st!==null){st=st.shared;var ct=st.pending;ct===null?ot.next=ot:(ot.next=ct.next,ct.next=ot),st.pending=ot}}it.lanes|=tt,ot=it.alternate,ot!==null&&(ot.lanes|=tt),Sg(it.return,tt,et),at.lanes|=tt;break}ot=ot.next}}else if(it.tag===10)At=it.type===et.type?null:it.child;else if(it.tag===18){if(At=it.return,At===null)throw Error(p$4(341));At.lanes|=tt,at=At.alternate,at!==null&&(at.lanes|=tt),Sg(At,tt,et),At=it.sibling}else At=it.child;if(At!==null)At.return=it;else for(At=it;At!==null;){if(At===et){At=null;break}if(it=At.sibling,it!==null){it.return=At.return,At=it;break}At=At.return}it=At}Yi($,et,nt.children,tt),et=et.child}return et;case 9:return nt=et.type,rt=et.pendingProps.children,Tg(et,tt),nt=Vg(nt),rt=rt(nt),et.flags|=1,Yi($,et,rt,tt),et.child;case 14:return rt=et.type,nt=Lg(rt,et.pendingProps),nt=Lg(rt.type,nt),aj($,et,rt,nt,tt);case 15:return cj($,et,et.type,et.pendingProps,tt);case 17:return rt=et.type,nt=et.pendingProps,nt=et.elementType===rt?nt:Lg(rt,nt),jj($,et),et.tag=1,Zf(rt)?($=!0,cg(et)):$=!1,Tg(et,tt),ph(et,rt,nt),rh$1(et,rt,nt,tt),kj(null,et,rt,!0,$,tt);case 19:return yj($,et,tt);case 22:return ej($,et,tt)}throw Error(p$4(156,et.tag))};function Gk($,et){return ac($,et)}function al($,et,tt,rt){this.tag=$,this.key=tt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=rt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg($,et,tt,rt){return new al($,et,tt,rt)}function bj($){return $=$.prototype,!(!$||!$.isReactComponent)}function $k($){if(typeof $=="function")return bj($)?1:0;if($!=null){if($=$.$$typeof,$===Da)return 11;if($===Ga)return 14}return 2}function wh($,et){var tt=$.alternate;return tt===null?(tt=Bg($.tag,et,$.key,$.mode),tt.elementType=$.elementType,tt.type=$.type,tt.stateNode=$.stateNode,tt.alternate=$,$.alternate=tt):(tt.pendingProps=et,tt.type=$.type,tt.flags=0,tt.subtreeFlags=0,tt.deletions=null),tt.flags=$.flags&14680064,tt.childLanes=$.childLanes,tt.lanes=$.lanes,tt.child=$.child,tt.memoizedProps=$.memoizedProps,tt.memoizedState=$.memoizedState,tt.updateQueue=$.updateQueue,et=$.dependencies,tt.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},tt.sibling=$.sibling,tt.index=$.index,tt.ref=$.ref,tt}function yh($,et,tt,rt,nt,it){var At=2;if(rt=$,typeof $=="function")bj($)&&(At=1);else if(typeof $=="string")At=5;else e:switch($){case ya:return Ah(tt.children,nt,it,et);case za:At=8,nt|=8;break;case Aa:return $=Bg(12,tt,et,nt|2),$.elementType=Aa,$.lanes=it,$;case Ea:return $=Bg(13,tt,et,nt),$.elementType=Ea,$.lanes=it,$;case Fa:return $=Bg(19,tt,et,nt),$.elementType=Fa,$.lanes=it,$;case Ia:return qj(tt,nt,it,et);default:if(typeof $=="object"&&$!==null)switch($.$$typeof){case Ba:At=10;break e;case Ca:At=9;break e;case Da:At=11;break e;case Ga:At=14;break e;case Ha:At=16,rt=null;break e}throw Error(p$4(130,$==null?$:typeof $,""))}return et=Bg(At,tt,et,nt),et.elementType=$,et.type=rt,et.lanes=it,et}function Ah($,et,tt,rt){return $=Bg(7,$,rt,et),$.lanes=tt,$}function qj($,et,tt,rt){return $=Bg(22,$,rt,et),$.elementType=Ia,$.lanes=tt,$.stateNode={isHidden:!1},$}function xh($,et,tt){return $=Bg(6,$,null,et),$.lanes=tt,$}function zh($,et,tt){return et=Bg(4,$.children!==null?$.children:[],$.key,et),et.lanes=tt,et.stateNode={containerInfo:$.containerInfo,pendingChildren:null,implementation:$.implementation},et}function bl($,et,tt,rt,nt){this.tag=et,this.containerInfo=$,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=rt,this.onRecoverableError=nt,this.mutableSourceEagerHydrationData=null}function cl($,et,tt,rt,nt,it,At,at,ot){return $=new bl($,et,tt,at,ot),et===1?(et=1,it===!0&&(et|=8)):et=0,it=Bg(3,null,null,et),$.current=it,it.stateNode=$,it.memoizedState={element:rt,isDehydrated:tt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(it),$}function dl($,et,tt){var rt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch($){console.error($)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports,[PortalContextProvider,usePortalContext]=createContext$1({strict:!1,name:"PortalContext"}),PORTAL_CLASSNAME="chakra-portal",PORTAL_SELECTOR=".chakra-portal",Container$1=$=>jsxRuntimeExports.jsx("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:$.zIndex,top:0,left:0,right:0},children:$.children}),DefaultPortal=$=>{const{appendToParentPortal:et,children:tt}=$,[rt,nt]=reactExports.useState(null),it=reactExports.useRef(null),[,At]=reactExports.useState({});reactExports.useEffect(()=>At({}),[]);const at=usePortalContext(),ot=usePortalManager();useSafeLayoutEffect$1(()=>{if(!rt)return;const ct=rt.ownerDocument,ut=et?at??ct.body:ct.body;if(!ut)return;it.current=ct.createElement("div"),it.current.className=PORTAL_CLASSNAME,ut.appendChild(it.current),At({});const gt=it.current;return()=>{ut.contains(gt)&&ut.removeChild(gt)}},[rt]);const st=ot!=null&&ot.zIndex?jsxRuntimeExports.jsx(Container$1,{zIndex:ot==null?void 0:ot.zIndex,children:tt}):tt;return it.current?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:it.current,children:st}),it.current):jsxRuntimeExports.jsx("span",{ref:ct=>{ct&&nt(ct)}})},ContainerPortal=$=>{const{children:et,containerRef:tt,appendToParentPortal:rt}=$,nt=tt.current,it=nt??(typeof window<"u"?document.body:void 0),At=reactExports.useMemo(()=>{const ot=nt==null?void 0:nt.ownerDocument.createElement("div");return ot&&(ot.className=PORTAL_CLASSNAME),ot},[nt]),[,at]=reactExports.useState({});return useSafeLayoutEffect$1(()=>at({}),[]),useSafeLayoutEffect$1(()=>{if(!(!At||!it))return it.appendChild(At),()=>{it.removeChild(At)}},[At,it]),it&&At?reactDomExports.createPortal(jsxRuntimeExports.jsx(PortalContextProvider,{value:rt?At:null,children:et}),At):null};function Portal($){const et={appendToParentPortal:!0,...$},{containerRef:tt,...rt}=et;return tt?jsxRuntimeExports.jsx(ContainerPortal,{containerRef:tt,...rt}):jsxRuntimeExports.jsx(DefaultPortal,{...rt})}Portal.className=PORTAL_CLASSNAME;Portal.selector=PORTAL_SELECTOR;Portal.displayName="Portal";function useTheme(){const $=reactExports.useContext(ThemeContext);if(!$)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `` or ``");return $}var ColorModeContext=reactExports.createContext({});ColorModeContext.displayName="ColorModeContext";function useColorMode(){const $=reactExports.useContext(ColorModeContext);if($===void 0)throw new Error("useColorMode must be used within a ColorModeProvider");return $}function useColorModeValue($,et){const{colorMode:tt}=useColorMode();return tt==="dark"?et:$}var classNames={light:"chakra-ui-light",dark:"chakra-ui-dark"};function getColorModeUtils($={}){const{preventTransition:et=!0}=$,tt={setDataset:rt=>{const nt=et?tt.preventTransition():void 0;document.documentElement.dataset.theme=rt,document.documentElement.style.colorScheme=rt,nt==null||nt()},setClassName(rt){document.body.classList.add(rt?classNames.dark:classNames.light),document.body.classList.remove(rt?classNames.light:classNames.dark)},query(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme(rt){var nt;return((nt=tt.query().matches)!=null?nt:rt==="dark")?"dark":"light"},addListener(rt){const nt=tt.query(),it=At=>{rt(At.matches?"dark":"light")};return typeof nt.addListener=="function"?nt.addListener(it):nt.addEventListener("change",it),()=>{typeof nt.removeListener=="function"?nt.removeListener(it):nt.removeEventListener("change",it)}},preventTransition(){const rt=document.createElement("style");return rt.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(rt),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(rt)})})}}};return tt}var STORAGE_KEY="chakra-ui-color-mode";function createLocalStorageManager($){return{ssr:!1,type:"localStorage",get(et){if(!(globalThis!=null&&globalThis.document))return et;let tt;try{tt=localStorage.getItem($)||et}catch{}return tt||et},set(et){try{localStorage.setItem($,et)}catch{}}}}var localStorageManager=createLocalStorageManager(STORAGE_KEY),noop$1=()=>{};function getTheme($,et){return $.type==="cookie"&&$.ssr?$.get(et):et}function ColorModeProvider($){const{value:et,children:tt,options:{useSystemColorMode:rt,initialColorMode:nt,disableTransitionOnChange:it}={},colorModeManager:At=localStorageManager}=$,at=nt==="dark"?"dark":"light",[ot,st]=reactExports.useState(()=>getTheme(At,at)),[ct,ut]=reactExports.useState(()=>getTheme(At)),{getSystemTheme:gt,setClassName:dt,setDataset:ht,addListener:Et}=reactExports.useMemo(()=>getColorModeUtils({preventTransition:it}),[it]),wt=nt==="system"&&!ot?ct:ot,mt=reactExports.useCallback($t=>{const Gt=$t==="system"?gt():$t;st(Gt),dt(Gt==="dark"),ht(Gt),At.set(Gt)},[At,gt,dt,ht]);useSafeLayoutEffect$1(()=>{nt==="system"&&ut(gt())},[]),reactExports.useEffect(()=>{const $t=At.get();if($t){mt($t);return}if(nt==="system"){mt("system");return}mt(at)},[At,at,nt,mt]);const pt=reactExports.useCallback(()=>{mt(wt==="dark"?"light":"dark")},[wt,mt]);reactExports.useEffect(()=>{if(rt)return Et(mt)},[rt,Et,mt]);const Qt=reactExports.useMemo(()=>({colorMode:et??wt,toggleColorMode:et?noop$1:pt,setColorMode:et?noop$1:mt,forced:et!==void 0}),[wt,pt,mt,et]);return jsxRuntimeExports.jsx(ColorModeContext.Provider,{value:Qt,children:tt})}ColorModeProvider.displayName="ColorModeProvider";function useChakra(){const $=useColorMode(),et=useTheme();return{...$,theme:et}}var cx=(...$)=>$.filter(Boolean).join(" ");function isObject($){const et=typeof $;return $!=null&&(et==="object"||et==="function")&&!Array.isArray($)}function runIfFn$2($,...et){return isFunction$3($)?$(...et):$}var isFunction$3=$=>typeof $=="function",dataAttr=$=>$?"":void 0;function callAllHandlers$1(...$){return function(tt){$.some(rt=>(rt==null||rt(tt),tt==null?void 0:tt.defaultPrevented))}}var lodash_mergewith={exports:{}};lodash_mergewith.exports;(function($,et){var tt=200,rt="__lodash_hash_undefined__",nt=800,it=16,At=9007199254740991,at="[object Arguments]",ot="[object Array]",st="[object AsyncFunction]",ct="[object Boolean]",ut="[object Date]",gt="[object Error]",dt="[object Function]",ht="[object GeneratorFunction]",Et="[object Map]",wt="[object Number]",mt="[object Null]",pt="[object Object]",Qt="[object Proxy]",$t="[object RegExp]",Gt="[object Set]",Tt="[object String]",Pt="[object Undefined]",Kt="[object WeakMap]",ir="[object ArrayBuffer]",jt="[object DataView]",Mt="[object Float32Array]",Bt="[object Float64Array]",vt="[object Int8Array]",Nt="[object Int16Array]",Ut="[object Int32Array]",Jt="[object Uint8Array]",rr="[object Uint8ClampedArray]",Wt="[object Uint16Array]",Ot="[object Uint32Array]",bt=/[\\^$.*+?()[\]{}|]/g,kt=/^\[object .+?Constructor\]$/,Ar=/^(?:0|[1-9]\d*)$/,cr={};cr[Mt]=cr[Bt]=cr[vt]=cr[Nt]=cr[Ut]=cr[Jt]=cr[rr]=cr[Wt]=cr[Ot]=!0,cr[at]=cr[ot]=cr[ir]=cr[ct]=cr[jt]=cr[ut]=cr[gt]=cr[dt]=cr[Et]=cr[wt]=cr[pt]=cr[$t]=cr[Gt]=cr[Tt]=cr[Kt]=!1;var Rt=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Qr=typeof self=="object"&&self&&self.Object===Object&&self,_r=Rt||Qr||Function("return this")(),qr=et&&!et.nodeType&&et,yr=qr&&!0&&$&&!$.nodeType&&$,kr=yr&&yr.exports===qr,Yt=kr&&Rt.process,Xt=function(){try{var er=yr&&yr.require&&yr.require("util").types;return er||Yt&&Yt.binding&&Yt.binding("util")}catch{}}(),tr=Xt&&Xt.isTypedArray;function sr(er,dr,xr){switch(xr.length){case 0:return er.call(dr);case 1:return er.call(dr,xr[0]);case 2:return er.call(dr,xr[0],xr[1]);case 3:return er.call(dr,xr[0],xr[1],xr[2])}return er.apply(dr,xr)}function ur(er,dr){for(var xr=-1,zr=Array(er);++xr-1}function Ht(er,dr){var xr=this.__data__,zr=Rr(xr,er);return zr<0?(++this.size,xr.push([er,dr])):xr[zr][1]=dr,this}wn.prototype.clear=xn,wn.prototype.delete=Cn,wn.prototype.get=Dt,wn.prototype.has=qt,wn.prototype.set=Ht;function Ct(er){var dr=-1,xr=er==null?0:er.length;for(this.clear();++dr1?xr[$n-1]:void 0,On=$n>2?xr[2]:void 0;for(Un=er.length>3&&typeof Un=="function"?($n--,Un):void 0,On&&vn(xr[0],xr[1],On)&&(Un=$n<3?void 0:Un,$n=1),dr=Object(dr);++zr<$n;){var _n=xr[zr];_n&&er(dr,_n,zr,Un)}return dr})}function ar(er){return function(dr,xr,zr){for(var $n=-1,Un=Object(dr),On=zr(dr),_n=On.length;_n--;){var Yn=On[er?_n:++$n];if(xr(Un[Yn],Yn,Un)===!1)break}return dr}}function hn(er,dr){var xr=er.__data__;return jn(dr)?xr[typeof dr=="string"?"string":"hash"]:xr.map}function Qn(er,dr){var xr=It(er,dr);return Vr(xr)?xr:void 0}function Sn(er){var dr=Er.call(er,Pr),xr=er[Pr];try{er[Pr]=void 0;var zr=!0}catch{}var $n=wr.call(er);return zr&&(dr?er[Pr]=xr:delete er[Pr]),$n}function pn(er){return typeof er.constructor=="function"&&!Pn(er)?Gn(Br(er)):{}}function mn(er,dr){var xr=typeof er;return dr=dr??At,!!dr&&(xr=="number"||xr!="symbol"&&Ar.test(er))&&er>-1&&er%1==0&&er0){if(++dr>=nt)return arguments[0]}else dr=0;return er.apply(void 0,arguments)}}function eo(er){if(er!=null){try{return Zt.call(er)}catch{}try{return er+""}catch{}}return""}function dA(er,dr){return er===dr||er!==er&&dr!==dr}var BA=Nr(function(){return arguments}())?Nr:function(er){return uA(er)&&Er.call(er,"callee")&&!Lr.call(er,"callee")},EA=Array.isArray;function pA(er){return er!=null&&FA(er.length)&&!IA(er)}function to(er){return uA(er)&&pA(er)}var kA=Bn||ao;function IA(er){if(!aA(er))return!1;var dr=Jr(er);return dr==dt||dr==ht||dr==st||dr==Qt}function FA(er){return typeof er=="number"&&er>-1&&er%1==0&&er<=At}function aA(er){var dr=typeof er;return er!=null&&(dr=="object"||dr=="function")}function uA(er){return er!=null&&typeof er=="object"}function ro(er){if(!uA(er)||Jr(er)!=pt)return!1;var dr=Br(er);if(dr===null)return!0;var xr=Er.call(dr,"constructor")&&dr.constructor;return typeof xr=="function"&&xr instanceof xr&&Zt.call(xr)==Yr}var DA=tr?fr(tr):Kr;function no(er){return En(er,RA(er))}function RA(er){return pA(er)?ln(er,!0):Hr(er)}var io=gn(function(er,dr,xr,zr){pr(er,dr,xr,zr)});function Ao(er){return function(){return er}}function MA(er){return er}function ao(){return!1}$.exports=io})(lodash_mergewith,lodash_mergewith.exports);var lodash_mergewithExports=lodash_mergewith.exports;const mergeWith=getDefaultExportFromCjs(lodash_mergewithExports);var isImportant=$=>/!(important)?$/.test($),withoutImportant=$=>typeof $=="string"?$.replace(/!(important)?$/,"").trim():$,tokenToCSSVar=($,et)=>tt=>{const rt=String(et),nt=isImportant(rt),it=withoutImportant(rt),At=$?`${$}.${it}`:it;let at=isObject(tt.__cssMap)&&At in tt.__cssMap?tt.__cssMap[At].varRef:et;return at=withoutImportant(at),nt?`${at} !important`:at};function createTransform($){const{scale:et,transform:tt,compose:rt}=$;return(it,At)=>{var at;const ot=tokenToCSSVar(et,it)(At);let st=(at=tt==null?void 0:tt(ot,At))!=null?at:ot;return rt&&(st=rt(st,At)),st}}var pipe$2=(...$)=>et=>$.reduce((tt,rt)=>rt(tt),et);function toConfig($,et){return tt=>{const rt={property:tt,scale:$};return rt.transform=createTransform({scale:$,transform:et}),rt}}var getRtl=({rtl:$,ltr:et})=>tt=>tt.direction==="rtl"?$:et;function logical($){const{property:et,scale:tt,transform:rt}=$;return{scale:tt,property:getRtl(et),transform:tt?createTransform({scale:tt,compose:rt}):rt}}var transformTemplate=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"];function getTransformTemplate(){return["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...transformTemplate].join(" ")}function getTransformGpuTemplate(){return["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...transformTemplate].join(" ")}var filterTemplate={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},backdropFilterTemplate={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"};function getRingTemplate($){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":$,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}var flexDirectionTemplate={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},directionMap={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},valueSet=new Set(Object.values(directionMap)),globalSet=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),trimSpace=$=>$.trim();function parseGradient($,et){if($==null||globalSet.has($))return $;if(!(isCSSFunction($)||globalSet.has($)))return`url('${$}')`;const nt=/(^[a-z-A-Z]+)\((.*)\)/g.exec($),it=nt==null?void 0:nt[1],At=nt==null?void 0:nt[2];if(!it||!At)return $;const at=it.includes("-gradient")?it:`${it}-gradient`,[ot,...st]=At.split(",").map(trimSpace).filter(Boolean);if((st==null?void 0:st.length)===0)return $;const ct=ot in directionMap?directionMap[ot]:ot;st.unshift(ct);const ut=st.map(gt=>{if(valueSet.has(gt))return gt;const dt=gt.indexOf(" "),[ht,Et]=dt!==-1?[gt.substr(0,dt),gt.substr(dt+1)]:[gt],wt=isCSSFunction(Et)?Et:Et&&Et.split(" "),mt=`colors.${ht}`,pt=mt in et.__cssMap?et.__cssMap[mt].varRef:ht;return wt?[pt,...Array.isArray(wt)?wt:[wt]].join(" "):pt});return`${at}(${ut.join(", ")})`}var isCSSFunction=$=>typeof $=="string"&&$.includes("(")&&$.includes(")"),gradientTransform=($,et)=>parseGradient($,et??{});function isCssVar($){return/^var\(--.+\)$/.test($)}var analyzeCSSValue=$=>{const et=parseFloat($.toString()),tt=$.toString().replace(String(et),"");return{unitless:!tt,value:et,unit:tt}},wrap=$=>et=>`${$}(${et})`,transformFunctions={filter($){return $!=="auto"?$:filterTemplate},backdropFilter($){return $!=="auto"?$:backdropFilterTemplate},ring($){return getRingTemplate(transformFunctions.px($))},bgClip($){return $==="text"?{color:"transparent",backgroundClip:"text"}:{backgroundClip:$}},transform($){return $==="auto"?getTransformTemplate():$==="auto-gpu"?getTransformGpuTemplate():$},vh($){return $==="$100vh"?"var(--chakra-vh)":$},px($){if($==null)return $;const{unitless:et}=analyzeCSSValue($);return et||typeof $=="number"?`${$}px`:$},fraction($){return typeof $!="number"||$>1?$:`${$*100}%`},float($,et){const tt={left:"right",right:"left"};return et.direction==="rtl"?tt[$]:$},degree($){if(isCssVar($)||$==null)return $;const et=typeof $=="string"&&!$.endsWith("deg");return typeof $=="number"||et?`${$}deg`:$},gradient:gradientTransform,blur:wrap("blur"),opacity:wrap("opacity"),brightness:wrap("brightness"),contrast:wrap("contrast"),dropShadow:wrap("drop-shadow"),grayscale:wrap("grayscale"),hueRotate:wrap("hue-rotate"),invert:wrap("invert"),saturate:wrap("saturate"),sepia:wrap("sepia"),bgImage($){return $==null||isCSSFunction($)||globalSet.has($)?$:`url(${$})`},outline($){const et=String($)==="0"||String($)==="none";return $!==null&&et?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:$}},flexDirection($){var et;const{space:tt,divide:rt}=(et=flexDirectionTemplate[$])!=null?et:{},nt={flexDirection:$};return tt&&(nt[tt]=1),rt&&(nt[rt]=1),nt}},t$4={borderWidths:toConfig("borderWidths"),borderStyles:toConfig("borderStyles"),colors:toConfig("colors"),borders:toConfig("borders"),gradients:toConfig("gradients",transformFunctions.gradient),radii:toConfig("radii",transformFunctions.px),space:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),spaceT:toConfig("space",pipe$2(transformFunctions.vh,transformFunctions.px)),degreeT($){return{property:$,transform:transformFunctions.degree}},prop($,et,tt){return{property:$,scale:et,...et&&{transform:createTransform({scale:et,transform:tt})}}},propT($,et){return{property:$,transform:et}},sizes:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.px)),sizesT:toConfig("sizes",pipe$2(transformFunctions.vh,transformFunctions.fraction)),shadows:toConfig("shadows"),logical,blur:toConfig("blur",transformFunctions.blur)},background={background:t$4.colors("background"),backgroundColor:t$4.colors("backgroundColor"),backgroundImage:t$4.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:transformFunctions.bgClip},bgSize:t$4.prop("backgroundSize"),bgPosition:t$4.prop("backgroundPosition"),bg:t$4.colors("background"),bgColor:t$4.colors("backgroundColor"),bgPos:t$4.prop("backgroundPosition"),bgRepeat:t$4.prop("backgroundRepeat"),bgAttachment:t$4.prop("backgroundAttachment"),bgGradient:t$4.gradients("backgroundImage"),bgClip:{transform:transformFunctions.bgClip}};Object.assign(background,{bgImage:background.backgroundImage,bgImg:background.backgroundImage});var border={border:t$4.borders("border"),borderWidth:t$4.borderWidths("borderWidth"),borderStyle:t$4.borderStyles("borderStyle"),borderColor:t$4.colors("borderColor"),borderRadius:t$4.radii("borderRadius"),borderTop:t$4.borders("borderTop"),borderBlockStart:t$4.borders("borderBlockStart"),borderTopLeftRadius:t$4.radii("borderTopLeftRadius"),borderStartStartRadius:t$4.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:t$4.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:t$4.radii("borderTopRightRadius"),borderStartEndRadius:t$4.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:t$4.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:t$4.borders("borderRight"),borderInlineEnd:t$4.borders("borderInlineEnd"),borderBottom:t$4.borders("borderBottom"),borderBlockEnd:t$4.borders("borderBlockEnd"),borderBottomLeftRadius:t$4.radii("borderBottomLeftRadius"),borderBottomRightRadius:t$4.radii("borderBottomRightRadius"),borderLeft:t$4.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:t$4.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:t$4.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:t$4.borders(["borderLeft","borderRight"]),borderInline:t$4.borders("borderInline"),borderY:t$4.borders(["borderTop","borderBottom"]),borderBlock:t$4.borders("borderBlock"),borderTopWidth:t$4.borderWidths("borderTopWidth"),borderBlockStartWidth:t$4.borderWidths("borderBlockStartWidth"),borderTopColor:t$4.colors("borderTopColor"),borderBlockStartColor:t$4.colors("borderBlockStartColor"),borderTopStyle:t$4.borderStyles("borderTopStyle"),borderBlockStartStyle:t$4.borderStyles("borderBlockStartStyle"),borderBottomWidth:t$4.borderWidths("borderBottomWidth"),borderBlockEndWidth:t$4.borderWidths("borderBlockEndWidth"),borderBottomColor:t$4.colors("borderBottomColor"),borderBlockEndColor:t$4.colors("borderBlockEndColor"),borderBottomStyle:t$4.borderStyles("borderBottomStyle"),borderBlockEndStyle:t$4.borderStyles("borderBlockEndStyle"),borderLeftWidth:t$4.borderWidths("borderLeftWidth"),borderInlineStartWidth:t$4.borderWidths("borderInlineStartWidth"),borderLeftColor:t$4.colors("borderLeftColor"),borderInlineStartColor:t$4.colors("borderInlineStartColor"),borderLeftStyle:t$4.borderStyles("borderLeftStyle"),borderInlineStartStyle:t$4.borderStyles("borderInlineStartStyle"),borderRightWidth:t$4.borderWidths("borderRightWidth"),borderInlineEndWidth:t$4.borderWidths("borderInlineEndWidth"),borderRightColor:t$4.colors("borderRightColor"),borderInlineEndColor:t$4.colors("borderInlineEndColor"),borderRightStyle:t$4.borderStyles("borderRightStyle"),borderInlineEndStyle:t$4.borderStyles("borderInlineEndStyle"),borderTopRadius:t$4.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:t$4.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:t$4.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:t$4.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(border,{rounded:border.borderRadius,roundedTop:border.borderTopRadius,roundedTopLeft:border.borderTopLeftRadius,roundedTopRight:border.borderTopRightRadius,roundedTopStart:border.borderStartStartRadius,roundedTopEnd:border.borderStartEndRadius,roundedBottom:border.borderBottomRadius,roundedBottomLeft:border.borderBottomLeftRadius,roundedBottomRight:border.borderBottomRightRadius,roundedBottomStart:border.borderEndStartRadius,roundedBottomEnd:border.borderEndEndRadius,roundedLeft:border.borderLeftRadius,roundedRight:border.borderRightRadius,roundedStart:border.borderInlineStartRadius,roundedEnd:border.borderInlineEndRadius,borderStart:border.borderInlineStart,borderEnd:border.borderInlineEnd,borderTopStartRadius:border.borderStartStartRadius,borderTopEndRadius:border.borderStartEndRadius,borderBottomStartRadius:border.borderEndStartRadius,borderBottomEndRadius:border.borderEndEndRadius,borderStartRadius:border.borderInlineStartRadius,borderEndRadius:border.borderInlineEndRadius,borderStartWidth:border.borderInlineStartWidth,borderEndWidth:border.borderInlineEndWidth,borderStartColor:border.borderInlineStartColor,borderEndColor:border.borderInlineEndColor,borderStartStyle:border.borderInlineStartStyle,borderEndStyle:border.borderInlineEndStyle});var color$1={color:t$4.colors("color"),textColor:t$4.colors("color"),fill:t$4.colors("fill"),stroke:t$4.colors("stroke")},effect={boxShadow:t$4.shadows("boxShadow"),mixBlendMode:!0,blendMode:t$4.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:t$4.prop("backgroundBlendMode"),opacity:!0};Object.assign(effect,{shadow:effect.boxShadow});var filter$1={filter:{transform:transformFunctions.filter},blur:t$4.blur("--chakra-blur"),brightness:t$4.propT("--chakra-brightness",transformFunctions.brightness),contrast:t$4.propT("--chakra-contrast",transformFunctions.contrast),hueRotate:t$4.degreeT("--chakra-hue-rotate"),invert:t$4.propT("--chakra-invert",transformFunctions.invert),saturate:t$4.propT("--chakra-saturate",transformFunctions.saturate),dropShadow:t$4.propT("--chakra-drop-shadow",transformFunctions.dropShadow),backdropFilter:{transform:transformFunctions.backdropFilter},backdropBlur:t$4.blur("--chakra-backdrop-blur"),backdropBrightness:t$4.propT("--chakra-backdrop-brightness",transformFunctions.brightness),backdropContrast:t$4.propT("--chakra-backdrop-contrast",transformFunctions.contrast),backdropHueRotate:t$4.degreeT("--chakra-backdrop-hue-rotate"),backdropInvert:t$4.propT("--chakra-backdrop-invert",transformFunctions.invert),backdropSaturate:t$4.propT("--chakra-backdrop-saturate",transformFunctions.saturate)},flexbox={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:transformFunctions.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:t$4.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:t$4.space("gap"),rowGap:t$4.space("rowGap"),columnGap:t$4.space("columnGap")};Object.assign(flexbox,{flexDir:flexbox.flexDirection});var grid={gridGap:t$4.space("gridGap"),gridColumnGap:t$4.space("gridColumnGap"),gridRowGap:t$4.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},interactivity={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:transformFunctions.outline},outlineOffset:!0,outlineColor:t$4.colors("outlineColor")},layout$1={width:t$4.sizesT("width"),inlineSize:t$4.sizesT("inlineSize"),height:t$4.sizes("height"),blockSize:t$4.sizes("blockSize"),boxSize:t$4.sizes(["width","height"]),minWidth:t$4.sizes("minWidth"),minInlineSize:t$4.sizes("minInlineSize"),minHeight:t$4.sizes("minHeight"),minBlockSize:t$4.sizes("minBlockSize"),maxWidth:t$4.sizes("maxWidth"),maxInlineSize:t$4.sizes("maxInlineSize"),maxHeight:t$4.sizes("maxHeight"),maxBlockSize:t$4.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:($,et)=>{var tt,rt,nt;return{[`@media screen and (min-width: ${(nt=(rt=(tt=et.__breakpoints)==null?void 0:tt.get($))==null?void 0:rt.minW)!=null?nt:$})`]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:($,et)=>{var tt,rt,nt;return{[`@media screen and (max-width: ${(nt=(rt=(tt=et.__breakpoints)==null?void 0:tt.get($))==null?void 0:rt._minW)!=null?nt:$})`]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:t$4.propT("float",transformFunctions.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(layout$1,{w:layout$1.width,h:layout$1.height,minW:layout$1.minWidth,maxW:layout$1.maxWidth,minH:layout$1.minHeight,maxH:layout$1.maxHeight,overscroll:layout$1.overscrollBehavior,overscrollX:layout$1.overscrollBehaviorX,overscrollY:layout$1.overscrollBehaviorY});var list={listStyleType:!0,listStylePosition:!0,listStylePos:t$4.prop("listStylePosition"),listStyleImage:!0,listStyleImg:t$4.prop("listStyleImage")};function get$1($,et,tt,rt){const nt=typeof et=="string"?et.split("."):[et];for(rt=0;rt{const et=new WeakMap;return(rt,nt,it,At)=>{if(typeof rt>"u")return $(rt,nt,it);et.has(rt)||et.set(rt,new Map);const at=et.get(rt);if(at.has(nt))return at.get(nt);const ot=$(rt,nt,it,At);return at.set(nt,ot),ot}},memoizedGet$1=memoize$1(get$1),srOnly={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},srFocusable={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},getWithPriority=($,et,tt)=>{const rt={},nt=memoizedGet$1($,et,{});for(const it in nt)it in tt&&tt[it]!=null||(rt[it]=nt[it]);return rt},others={srOnly:{transform($){return $===!0?srOnly:$==="focusable"?srFocusable:{}}},layerStyle:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,`layerStyles.${$}`,tt)},textStyle:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,`textStyles.${$}`,tt)},apply:{processResult:!0,transform:($,et,tt)=>getWithPriority(et,$,tt)}},position={position:!0,pos:t$4.prop("position"),zIndex:t$4.prop("zIndex","zIndices"),inset:t$4.spaceT("inset"),insetX:t$4.spaceT(["left","right"]),insetInline:t$4.spaceT("insetInline"),insetY:t$4.spaceT(["top","bottom"]),insetBlock:t$4.spaceT("insetBlock"),top:t$4.spaceT("top"),insetBlockStart:t$4.spaceT("insetBlockStart"),bottom:t$4.spaceT("bottom"),insetBlockEnd:t$4.spaceT("insetBlockEnd"),left:t$4.spaceT("left"),insetInlineStart:t$4.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:t$4.spaceT("right"),insetInlineEnd:t$4.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(position,{insetStart:position.insetInlineStart,insetEnd:position.insetInlineEnd});var ring={ring:{transform:transformFunctions.ring},ringColor:t$4.colors("--chakra-ring-color"),ringOffset:t$4.prop("--chakra-ring-offset-width"),ringOffsetColor:t$4.colors("--chakra-ring-offset-color"),ringInset:t$4.prop("--chakra-ring-inset")},space={margin:t$4.spaceT("margin"),marginTop:t$4.spaceT("marginTop"),marginBlockStart:t$4.spaceT("marginBlockStart"),marginRight:t$4.spaceT("marginRight"),marginInlineEnd:t$4.spaceT("marginInlineEnd"),marginBottom:t$4.spaceT("marginBottom"),marginBlockEnd:t$4.spaceT("marginBlockEnd"),marginLeft:t$4.spaceT("marginLeft"),marginInlineStart:t$4.spaceT("marginInlineStart"),marginX:t$4.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:t$4.spaceT("marginInline"),marginY:t$4.spaceT(["marginTop","marginBottom"]),marginBlock:t$4.spaceT("marginBlock"),padding:t$4.space("padding"),paddingTop:t$4.space("paddingTop"),paddingBlockStart:t$4.space("paddingBlockStart"),paddingRight:t$4.space("paddingRight"),paddingBottom:t$4.space("paddingBottom"),paddingBlockEnd:t$4.space("paddingBlockEnd"),paddingLeft:t$4.space("paddingLeft"),paddingInlineStart:t$4.space("paddingInlineStart"),paddingInlineEnd:t$4.space("paddingInlineEnd"),paddingX:t$4.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:t$4.space("paddingInline"),paddingY:t$4.space(["paddingTop","paddingBottom"]),paddingBlock:t$4.space("paddingBlock")};Object.assign(space,{m:space.margin,mt:space.marginTop,mr:space.marginRight,me:space.marginInlineEnd,marginEnd:space.marginInlineEnd,mb:space.marginBottom,ml:space.marginLeft,ms:space.marginInlineStart,marginStart:space.marginInlineStart,mx:space.marginX,my:space.marginY,p:space.padding,pt:space.paddingTop,py:space.paddingY,px:space.paddingX,pb:space.paddingBottom,pl:space.paddingLeft,ps:space.paddingInlineStart,paddingStart:space.paddingInlineStart,pr:space.paddingRight,pe:space.paddingInlineEnd,paddingEnd:space.paddingInlineEnd});var textDecoration={textDecorationColor:t$4.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:t$4.shadows("textShadow")},transform={clipPath:!0,transform:t$4.propT("transform",transformFunctions.transform),transformOrigin:!0,translateX:t$4.spaceT("--chakra-translate-x"),translateY:t$4.spaceT("--chakra-translate-y"),skewX:t$4.degreeT("--chakra-skew-x"),skewY:t$4.degreeT("--chakra-skew-y"),scaleX:t$4.prop("--chakra-scale-x"),scaleY:t$4.prop("--chakra-scale-y"),scale:t$4.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:t$4.degreeT("--chakra-rotate")},transition$1={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:t$4.prop("transitionDuration","transition.duration"),transitionProperty:t$4.prop("transitionProperty","transition.property"),transitionTimingFunction:t$4.prop("transitionTimingFunction","transition.easing")},typography$1={fontFamily:t$4.prop("fontFamily","fonts"),fontSize:t$4.prop("fontSize","fontSizes",transformFunctions.px),fontWeight:t$4.prop("fontWeight","fontWeights"),lineHeight:t$4.prop("lineHeight","lineHeights"),letterSpacing:t$4.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform($){if($===!0)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},scroll={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:t$4.spaceT("scrollMargin"),scrollMarginTop:t$4.spaceT("scrollMarginTop"),scrollMarginBottom:t$4.spaceT("scrollMarginBottom"),scrollMarginLeft:t$4.spaceT("scrollMarginLeft"),scrollMarginRight:t$4.spaceT("scrollMarginRight"),scrollMarginX:t$4.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:t$4.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:t$4.spaceT("scrollPadding"),scrollPaddingTop:t$4.spaceT("scrollPaddingTop"),scrollPaddingBottom:t$4.spaceT("scrollPaddingBottom"),scrollPaddingLeft:t$4.spaceT("scrollPaddingLeft"),scrollPaddingRight:t$4.spaceT("scrollPaddingRight"),scrollPaddingX:t$4.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:t$4.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function resolveReference($){return isObject($)&&$.reference?$.reference:String($)}var toExpression=($,...et)=>et.map(resolveReference).join(` ${$} `).replace(/calc/g,""),add$1=(...$)=>`calc(${toExpression("+",...$)})`,subtract$1=(...$)=>`calc(${toExpression("-",...$)})`,multiply$1=(...$)=>`calc(${toExpression("*",...$)})`,divide$1=(...$)=>`calc(${toExpression("/",...$)})`,negate$1=$=>{const et=resolveReference($);return et!=null&&!Number.isNaN(parseFloat(et))?String(et).startsWith("-")?String(et).slice(1):`-${et}`:multiply$1(et,-1)},calc$1=Object.assign($=>({add:(...et)=>calc$1(add$1($,...et)),subtract:(...et)=>calc$1(subtract$1($,...et)),multiply:(...et)=>calc$1(multiply$1($,...et)),divide:(...et)=>calc$1(divide$1($,...et)),negate:()=>calc$1(negate$1($)),toString:()=>$.toString()}),{add:add$1,subtract:subtract$1,multiply:multiply$1,divide:divide$1,negate:negate$1});function replaceWhiteSpace$1($,et="-"){return $.replace(/\s+/g,et)}function escape$2($){const et=replaceWhiteSpace$1($.toString());return escapeSymbol(escapeDot(et))}function escapeDot($){return $.includes("\\.")?$:!Number.isInteger(parseFloat($.toString()))?$.replace(".","\\."):$}function escapeSymbol($){return $.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}function addPrefix$1($,et=""){return[et,$].filter(Boolean).join("-")}function toVarReference($,et){return`var(${$}${et?`, ${et}`:""})`}function toVarDefinition($,et=""){return escape$2(`--${addPrefix$1($,et)}`)}function cssVar$1($,et,tt){const rt=toVarDefinition($,tt);return{variable:rt,reference:toVarReference(rt,et)}}function defineCssVars($,et){const tt={};for(const rt of et){if(Array.isArray(rt)){const[nt,it]=rt;tt[nt]=cssVar$1(`${$}-${nt}`,it);continue}tt[rt]=cssVar$1(`${$}-${rt}`)}return tt}function getLastItem($){const et=$==null?0:$.length;return et?$[et-1]:void 0}function analyzeCSSValue2($){const et=parseFloat($.toString()),tt=$.toString().replace(String(et),"");return{unitless:!tt,value:et,unit:tt}}function px$1($){if($==null)return $;const{unitless:et}=analyzeCSSValue2($);return et||typeof $=="number"?`${$}px`:$}var sortByBreakpointValue=($,et)=>parseInt($[1],10)>parseInt(et[1],10)?1:-1,sortBps=$=>Object.fromEntries(Object.entries($).sort(sortByBreakpointValue));function normalize($){const et=sortBps($);return Object.assign(Object.values(et),et)}function keys($){const et=Object.keys(sortBps($));return new Set(et)}function subtract2($){var et;if(!$)return $;$=(et=px$1($))!=null?et:$;const tt=-.02;return typeof $=="number"?`${$+tt}`:$.replace(/(\d+\.?\d*)/u,rt=>`${parseFloat(rt)+tt}`)}function toMediaQueryString($,et){const tt=["@media screen"];return $&&tt.push("and",`(min-width: ${px$1($)})`),et&&tt.push("and",`(max-width: ${px$1(et)})`),tt.join(" ")}function analyzeBreakpoints($){var et;if(!$)return null;$.base=(et=$.base)!=null?et:"0px";const tt=normalize($),rt=Object.entries($).sort(sortByBreakpointValue).map(([At,at],ot,st)=>{var ct;let[,ut]=(ct=st[ot+1])!=null?ct:[];return ut=parseFloat(ut)>0?subtract2(ut):void 0,{_minW:subtract2(at),breakpoint:At,minW:at,maxW:ut,maxWQuery:toMediaQueryString(null,ut),minWQuery:toMediaQueryString(at),minMaxQuery:toMediaQueryString(at,ut)}}),nt=keys($),it=Array.from(nt.values());return{keys:nt,normalized:tt,isResponsive(At){const at=Object.keys(At);return at.length>0&&at.every(ot=>nt.has(ot))},asObject:sortBps($),asArray:normalize($),details:rt,get(At){return rt.find(at=>at.breakpoint===At)},media:[null,...tt.map(At=>toMediaQueryString(At)).slice(1)],toArrayValue(At){if(!isObject(At))throw new Error("toArrayValue: value must be an object");const at=it.map(ot=>{var st;return(st=At[ot])!=null?st:null});for(;getLastItem(at)===null;)at.pop();return at},toObjectValue(At){if(!Array.isArray(At))throw new Error("toObjectValue: value must be an array");return At.reduce((at,ot,st)=>{const ct=it[st];return ct!=null&&ot!=null&&(at[ct]=ot),at},{})}}}var state={hover:($,et)=>`${$}:hover ${et}, ${$}[data-hover] ${et}`,focus:($,et)=>`${$}:focus ${et}, ${$}[data-focus] ${et}`,focusVisible:($,et)=>`${$}:focus-visible ${et}`,focusWithin:($,et)=>`${$}:focus-within ${et}`,active:($,et)=>`${$}:active ${et}, ${$}[data-active] ${et}`,disabled:($,et)=>`${$}:disabled ${et}, ${$}[data-disabled] ${et}`,invalid:($,et)=>`${$}:invalid ${et}, ${$}[data-invalid] ${et}`,checked:($,et)=>`${$}:checked ${et}, ${$}[data-checked] ${et}`,indeterminate:($,et)=>`${$}:indeterminate ${et}, ${$}[aria-checked=mixed] ${et}, ${$}[data-indeterminate] ${et}`,readOnly:($,et)=>`${$}:read-only ${et}, ${$}[readonly] ${et}, ${$}[data-read-only] ${et}`,expanded:($,et)=>`${$}:read-only ${et}, ${$}[aria-expanded=true] ${et}, ${$}[data-expanded] ${et}`,placeholderShown:($,et)=>`${$}:placeholder-shown ${et}`},toGroup=$=>merge(et=>$(et,"&"),"[role=group]","[data-group]",".group"),toPeer=$=>merge(et=>$(et,"~ &"),"[data-peer]",".peer"),merge=($,...et)=>et.map($).join(", "),pseudoSelectors={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:toGroup(state.hover),_peerHover:toPeer(state.hover),_groupFocus:toGroup(state.focus),_peerFocus:toPeer(state.focus),_groupFocusVisible:toGroup(state.focusVisible),_peerFocusVisible:toPeer(state.focusVisible),_groupActive:toGroup(state.active),_peerActive:toPeer(state.active),_groupDisabled:toGroup(state.disabled),_peerDisabled:toPeer(state.disabled),_groupInvalid:toGroup(state.invalid),_peerInvalid:toPeer(state.invalid),_groupChecked:toGroup(state.checked),_peerChecked:toPeer(state.checked),_groupFocusWithin:toGroup(state.focusWithin),_peerFocusWithin:toPeer(state.focusWithin),_peerPlaceholderShown:toPeer(state.placeholderShown),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},pseudoPropNames=Object.keys(pseudoSelectors);function tokenToCssVar($,et){return cssVar$1(String($).replace(/\./g,"-"),void 0,et)}function createThemeVars($,et){let tt={};const rt={};for(const[nt,it]of Object.entries($)){const{isSemantic:At,value:at}=it,{variable:ot,reference:st}=tokenToCssVar(nt,et==null?void 0:et.cssVarPrefix);if(!At){if(nt.startsWith("space")){const gt=nt.split("."),[dt,...ht]=gt,Et=`${dt}.-${ht.join(".")}`,wt=calc$1.negate(at),mt=calc$1.negate(st);rt[Et]={value:wt,var:ot,varRef:mt}}tt[ot]=at,rt[nt]={value:at,var:ot,varRef:st};continue}const ct=gt=>{const ht=[String(nt).split(".")[0],gt].join(".");if(!$[ht])return gt;const{reference:wt}=tokenToCssVar(ht,et==null?void 0:et.cssVarPrefix);return wt},ut=isObject(at)?at:{default:at};tt=mergeWith(tt,Object.entries(ut).reduce((gt,[dt,ht])=>{var Et,wt;if(!ht)return gt;const mt=ct(`${ht}`);if(dt==="default")return gt[ot]=mt,gt;const pt=(wt=(Et=pseudoSelectors)==null?void 0:Et[dt])!=null?wt:dt;return gt[pt]={[ot]:mt},gt},{})),rt[nt]={value:st,var:ot,varRef:st}}return{cssVars:tt,cssMap:rt}}function omit$2($,et=[]){const tt=Object.assign({},$);for(const rt of et)rt in tt&&delete tt[rt];return tt}function pick($,et){const tt={};for(const rt of et)rt in $&&(tt[rt]=$[rt]);return tt}function isObject5($){return typeof $=="object"&&$!=null&&!Array.isArray($)}function walkObject($,et,tt={}){const{stop:rt,getKey:nt}=tt;function it(At,at=[]){var ot;if(isObject5(At)||Array.isArray(At)){const st={};for(const[ct,ut]of Object.entries(At)){const gt=(ot=nt==null?void 0:nt(ct))!=null?ot:ct,dt=[...at,gt];if(rt!=null&&rt(At,dt))return et(At,at);st[gt]=it(ut,dt)}return st}return et(At,at)}return it($)}var tokens=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"];function extractTokens($){return pick($,tokens)}function extractSemanticTokens($){return $.semanticTokens}function omitVars($){const{__cssMap:et,__cssVars:tt,__breakpoints:rt,...nt}=$;return nt}var isSemanticCondition=$=>pseudoPropNames.includes($)||$==="default";function flattenTokens({tokens:$,semanticTokens:et}){const tt={};return walkObject($,(rt,nt)=>{rt!=null&&(tt[nt.join(".")]={isSemantic:!1,value:rt})}),walkObject(et,(rt,nt)=>{rt!=null&&(tt[nt.join(".")]={isSemantic:!0,value:rt})},{stop:rt=>Object.keys(rt).every(isSemanticCondition)}),tt}function toCSSVar($){var et;const tt=omitVars($),rt=extractTokens(tt),nt=extractSemanticTokens(tt),it=flattenTokens({tokens:rt,semanticTokens:nt}),At=(et=tt.config)==null?void 0:et.cssVarPrefix,{cssMap:at,cssVars:ot}=createThemeVars(it,{cssVarPrefix:At});return Object.assign(tt,{__cssVars:{...{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0"},...ot},__cssMap:at,__breakpoints:analyzeBreakpoints(tt.breakpoints)}),tt}var systemProps=mergeWith({},background,border,color$1,flexbox,layout$1,filter$1,ring,interactivity,grid,others,position,effect,space,scroll,typography$1,textDecoration,transform,list,transition$1);Object.assign({},space,layout$1,flexbox,grid,position);var propNames=[...Object.keys(systemProps),...pseudoPropNames],styleProps={...systemProps,...pseudoSelectors},isStyleProp=$=>$ in styleProps,expandResponsive=$=>et=>{if(!et.__breakpoints)return $;const{isResponsive:tt,toArrayValue:rt,media:nt}=et.__breakpoints,it={};for(const At in $){let at=runIfFn$2($[At],et);if(at==null)continue;if(at=isObject(at)&&tt(at)?rt(at):at,!Array.isArray(at)){it[At]=at;continue}const ot=at.slice(0,nt.length).length;for(let st=0;st$.startsWith("--")&&typeof et=="string"&&!isCssVar2(et),resolveTokenValue=($,et)=>{var tt,rt;if(et==null)return et;const nt=ot=>{var st,ct;return(ct=(st=$.__cssMap)==null?void 0:st[ot])==null?void 0:ct.varRef},it=ot=>{var st;return(st=nt(ot))!=null?st:ot},[At,at]=splitByComma(et);return et=(rt=(tt=nt(At))!=null?tt:it(at))!=null?rt:it(et),et};function getCss($){const{configs:et={},pseudos:tt={},theme:rt}=$,nt=(it,At=!1)=>{var at,ot,st;const ct=runIfFn$2(it,rt),ut=expandResponsive(ct)(rt);let gt={};for(let dt in ut){const ht=ut[dt];let Et=runIfFn$2(ht,rt);dt in tt&&(dt=tt[dt]),isCSSVariableTokenValue(dt,Et)&&(Et=resolveTokenValue(rt,Et));let wt=et[dt];if(wt===!0&&(wt={property:dt}),isObject(Et)){gt[dt]=(at=gt[dt])!=null?at:{},gt[dt]=mergeWith({},gt[dt],nt(Et,!0));continue}let mt=(st=(ot=wt==null?void 0:wt.transform)==null?void 0:ot.call(wt,Et,rt,ct))!=null?st:Et;mt=wt!=null&&wt.processResult?nt(mt,!0):mt;const pt=runIfFn$2(wt==null?void 0:wt.property,rt);if(!At&&(wt!=null&&wt.static)){const Qt=runIfFn$2(wt.static,rt);gt=mergeWith({},gt,Qt)}if(pt&&Array.isArray(pt)){for(const Qt of pt)gt[Qt]=mt;continue}if(pt){pt==="&"&&isObject(mt)?gt=mergeWith({},gt,mt):gt[pt]=mt;continue}if(isObject(mt)){gt=mergeWith({},gt,mt);continue}gt[dt]=mt}return gt};return nt}var css=$=>et=>getCss({theme:et,pseudos:pseudoSelectors,configs:systemProps})($);function defineStyle($){return $}function defineStyleConfig($){return $}function createMultiStyleConfigHelpers($){return{definePartsStyle(et){return et},defineMultiStyleConfig(et){return{parts:$,...et}}}}function normalize2($,et){if(Array.isArray($))return $;if(isObject($))return et($);if($!=null)return[$]}function getNextIndex($,et){for(let tt=et+1;tt<$.length;tt++)if($[tt]!=null)return tt;return-1}function createResolver($){const et=$.__breakpoints;return function(rt,nt,it,At){var at,ot;if(!et)return;const st={},ct=normalize2(it,et.toArrayValue);if(!ct)return st;const ut=ct.length,gt=ut===1,dt=!!rt.parts;for(let ht=0;ht{mergeWith(st,{[Qt]:gt?pt[Qt]:{[mt]:pt[Qt]}})});continue}if(!dt){gt?mergeWith(st,pt):st[mt]=pt;continue}st[mt]=pt}}return st}}function resolveStyleConfig($){return et=>{var tt;const{variant:rt,size:nt,theme:it}=et,At=createResolver(it);return mergeWith({},runIfFn$2((tt=$.baseStyle)!=null?tt:{},et),At($,"sizes",nt,et),At($,"variants",rt,et))}}function omitThemingProps($){return omit$2($,["styleConfig","size","variant","colorScheme"])}var requiredChakraThemeKeys=["borders","breakpoints","colors","components","config","direction","fonts","fontSizes","fontWeights","letterSpacings","lineHeights","radii","shadows","sizes","space","styles","transition","zIndices"];function isChakraTheme($){return isObject($)?requiredChakraThemeKeys.every(et=>Object.prototype.hasOwnProperty.call($,et)):!1}var transitionProperty={common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},transitionTimingFunction={"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},transitionDuration={"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"},transition={property:transitionProperty,easing:transitionTimingFunction,duration:transitionDuration},transition_default=transition,zIndices={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},z_index_default=zIndices,borders$1={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},borders_default=borders$1,breakpoints={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},breakpoints_default=breakpoints,colors$1={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},colors_default=colors$1,radii={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},radius_default=radii,shadows={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},shadows_default=shadows,blur={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},blur_default=blur,typography={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},typography_default=typography,spacing={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},largeSizes={max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"},container={sm:"640px",md:"768px",lg:"1024px",xl:"1280px"},sizes$n={...spacing,...largeSizes,container},sizes_default=sizes$n,foundations={breakpoints:breakpoints_default,zIndices:z_index_default,radii:radius_default,blur:blur_default,colors:colors_default,...typography_default,sizes:sizes_default,shadows:shadows_default,space:spacing,borders:borders_default,transition:transition_default},{defineMultiStyleConfig:defineMultiStyleConfig$p,definePartsStyle:definePartsStyle$p}=createMultiStyleConfigHelpers(["stepper","step","title","description","indicator","separator","icon","number"]),$size$4=cssVar$1("stepper-indicator-size"),$iconSize=cssVar$1("stepper-icon-size"),$titleFontSize=cssVar$1("stepper-title-font-size"),$descFontSize=cssVar$1("stepper-description-font-size"),$accentColor=cssVar$1("stepper-accent-color"),baseStyle$G=definePartsStyle$p(({colorScheme:$})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[$accentColor.variable]:`colors.${$}.500`,_dark:{[$accentColor.variable]:`colors.${$}.200`}},title:{fontSize:$titleFontSize.reference,fontWeight:"medium"},description:{fontSize:$descFontSize.reference,color:"chakra-subtle-text"},number:{fontSize:$titleFontSize.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:$iconSize.reference,height:$iconSize.reference},indicator:{flexShrink:0,borderRadius:"full",width:$size$4.reference,height:$size$4.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:$accentColor.reference},"&[data-status=complete]":{bg:$accentColor.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:$accentColor.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${$size$4.reference} - 8px)`,top:`calc(${$size$4.reference} + 4px)`,insetStart:`calc(${$size$4.reference} / 2 - 1px)`}}})),stepperTheme=defineMultiStyleConfig$p({baseStyle:baseStyle$G,sizes:{xs:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.4",[$iconSize.variable]:"sizes.3",[$titleFontSize.variable]:"fontSizes.xs",[$descFontSize.variable]:"fontSizes.xs"}}),sm:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.6",[$iconSize.variable]:"sizes.4",[$titleFontSize.variable]:"fontSizes.sm",[$descFontSize.variable]:"fontSizes.xs"}}),md:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.8",[$iconSize.variable]:"sizes.5",[$titleFontSize.variable]:"fontSizes.md",[$descFontSize.variable]:"fontSizes.sm"}}),lg:definePartsStyle$p({stepper:{[$size$4.variable]:"sizes.10",[$iconSize.variable]:"sizes.6",[$titleFontSize.variable]:"fontSizes.lg",[$descFontSize.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function anatomy($,et={}){let tt=!1;function rt(){if(!tt){tt=!0;return}throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?")}function nt(...ct){rt();for(const ut of ct)et[ut]=ot(ut);return anatomy($,et)}function it(...ct){for(const ut of ct)ut in et||(et[ut]=ot(ut));return anatomy($,et)}function At(){return Object.fromEntries(Object.entries(et).map(([ut,gt])=>[ut,gt.selector]))}function at(){return Object.fromEntries(Object.entries(et).map(([ut,gt])=>[ut,gt.className]))}function ot(ct){const dt=`chakra-${(["container","root"].includes(ct??"")?[$]:[$,ct]).filter(Boolean).join("__")}`;return{className:dt,selector:`.${dt}`,toString:()=>ct}}return{parts:nt,toPart:ot,extend:it,selectors:At,classnames:at,get keys(){return Object.keys(et)},__type:{}}}var accordionAnatomy=anatomy("accordion").parts("root","container","button","panel").extend("icon"),alertAnatomy=anatomy("alert").parts("title","description","container").extend("icon","spinner"),avatarAnatomy=anatomy("avatar").parts("label","badge","container").extend("excessLabel","group"),breadcrumbAnatomy=anatomy("breadcrumb").parts("link","item","container").extend("separator");anatomy("button").parts();var checkboxAnatomy=anatomy("checkbox").parts("control","icon","container").extend("label");anatomy("progress").parts("track","filledTrack").extend("label");var drawerAnatomy=anatomy("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),editableAnatomy=anatomy("editable").parts("preview","input","textarea"),formAnatomy=anatomy("form").parts("container","requiredIndicator","helperText"),formErrorAnatomy=anatomy("formError").parts("text","icon"),inputAnatomy=anatomy("input").parts("addon","field","element","group"),listAnatomy=anatomy("list").parts("container","item","icon"),menuAnatomy=anatomy("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),modalAnatomy=anatomy("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),numberInputAnatomy=anatomy("numberinput").parts("root","field","stepperGroup","stepper");anatomy("pininput").parts("field");var popoverAnatomy=anatomy("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton"),progressAnatomy=anatomy("progress").parts("label","filledTrack","track"),radioAnatomy=anatomy("radio").parts("container","control","label"),selectAnatomy=anatomy("select").parts("field","icon"),sliderAnatomy=anatomy("slider").parts("container","track","thumb","filledTrack","mark"),statAnatomy=anatomy("stat").parts("container","label","helpText","number","icon"),switchAnatomy=anatomy("switch").parts("container","track","thumb"),tableAnatomy=anatomy("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),tabsAnatomy=anatomy("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),tagAnatomy=anatomy("tag").parts("container","label","closeButton"),cardAnatomy=anatomy("card").parts("container","header","body","footer");function guard($,et,tt){return Math.min(Math.max($,tt),et)}class ColorError extends Error{constructor(et){super(`Failed to parse color: "${et}"`)}}var ColorError$1=ColorError;function parseToRgba($){if(typeof $!="string")throw new ColorError$1($);if($.trim().toLowerCase()==="transparent")return[0,0,0,0];let et=$.trim();et=namedColorRegex.test($)?nameToHex($):$;const tt=reducedHexRegex.exec(et);if(tt){const At=Array.from(tt).slice(1);return[...At.slice(0,3).map(at=>parseInt(r$5(at,2),16)),parseInt(r$5(At[3]||"f",2),16)/255]}const rt=hexRegex.exec(et);if(rt){const At=Array.from(rt).slice(1);return[...At.slice(0,3).map(at=>parseInt(at,16)),parseInt(At[3]||"ff",16)/255]}const nt=rgbaRegex.exec(et);if(nt){const At=Array.from(nt).slice(1);return[...At.slice(0,3).map(at=>parseInt(at,10)),parseFloat(At[3]||"1")]}const it=hslaRegex.exec(et);if(it){const[At,at,ot,st]=Array.from(it).slice(1).map(parseFloat);if(guard(0,100,at)!==at)throw new ColorError$1($);if(guard(0,100,ot)!==ot)throw new ColorError$1($);return[...hslToRgb(At,at,ot),Number.isNaN(st)?1:st]}throw new ColorError$1($)}function hash$6($){let et=5381,tt=$.length;for(;tt;)et=et*33^$.charCodeAt(--tt);return(et>>>0)%2341}const colorToInt=$=>parseInt($.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(($,et)=>{const tt=colorToInt(et.substring(0,3)),rt=colorToInt(et.substring(3)).toString(16);let nt="";for(let it=0;it<6-rt.length;it++)nt+="0";return $[tt]=`${nt}${rt}`,$},{});function nameToHex($){const et=$.toLowerCase().trim(),tt=compressedColorMap[hash$6(et)];if(!tt)throw new ColorError$1($);return`#${tt}`}const r$5=($,et)=>Array.from(Array(et)).map(()=>$).join(""),reducedHexRegex=new RegExp(`^#${r$5("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r$5("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$5(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=$=>Math.round($*255),hslToRgb=($,et,tt)=>{let rt=tt/100;if(et===0)return[rt,rt,rt].map(roundColor);const nt=($%360+360)%360/60,it=(1-Math.abs(2*rt-1))*(et/100),At=it*(1-Math.abs(nt%2-1));let at=0,ot=0,st=0;nt>=0&&nt<1?(at=it,ot=At):nt>=1&&nt<2?(at=At,ot=it):nt>=2&&nt<3?(ot=it,st=At):nt>=3&&nt<4?(ot=At,st=it):nt>=4&&nt<5?(at=At,st=it):nt>=5&&nt<6&&(at=it,st=At);const ct=rt-it/2,ut=at+ct,gt=ot+ct,dt=st+ct;return[ut,gt,dt].map(roundColor)};function rgba$1($,et,tt,rt){return`rgba(${guard(0,255,$).toFixed()}, ${guard(0,255,et).toFixed()}, ${guard(0,255,tt).toFixed()}, ${parseFloat(guard(0,1,rt).toFixed(3))})`}function transparentize$1($,et){const[tt,rt,nt,it]=parseToRgba($);return rgba$1(tt,rt,nt,it-et)}function toHex$4($){const[et,tt,rt,nt]=parseToRgba($);let it=At=>{const at=guard(0,255,At).toString(16);return at.length===1?`0${at}`:at};return`#${it(et)}${it(tt)}${it(rt)}${nt<1?it(Math.round(nt*255)):""}`}function dlv_es_default($,et,tt,rt,nt){for(et=et.split?et.split("."):et,rt=0;rtObject.keys($).length===0,getColor=($,et,tt)=>{const rt=dlv_es_default($,`colors.${et}`,et);try{return toHex$4(rt),rt}catch{return tt??"#000000"}},getBrightness=$=>{const[et,tt,rt]=parseToRgba($);return(et*299+tt*587+rt*114)/1e3},tone=$=>et=>{const tt=getColor(et,$);return getBrightness(tt)<128?"dark":"light"},isDark=$=>et=>tone($)(et)==="dark",transparentize=($,et)=>tt=>{const rt=getColor(tt,$);return transparentize$1(rt,1-et)};function generateStripe($="1rem",et="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient( 45deg, ${et} 25%, transparent 25%, @@ -364,7 +364,7 @@ Error generating stack: `+it.message+` transparent 0%, ${getColor(tt,At)} 50%, transparent 100% - )`;return{...!rt&&nt&&it,...rt?{bgImage:at}:{bgColor:At}}},baseStyleLabel$3={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},baseStyleTrack$1=$=>({bg:mode("gray.100","whiteAlpha.300")($)}),baseStyleFilledTrack$1=$=>({transitionProperty:"common",transitionDuration:"slow",...filledStyle($)}),baseStyle$x=definePartsStyle$j($=>({label:baseStyleLabel$3,filledTrack:baseStyleFilledTrack$1($),track:baseStyleTrack$1($)})),sizes$g={xs:definePartsStyle$j({track:{h:"1"}}),sm:definePartsStyle$j({track:{h:"2"}}),md:definePartsStyle$j({track:{h:"3"}}),lg:definePartsStyle$j({track:{h:"4"}})},progressTheme=defineMultiStyleConfig$j({sizes:sizes$g,baseStyle:baseStyle$x,defaultProps:{size:"md",colorScheme:"blue"}}),isFunction$2=$=>typeof $=="function";function runIfFn$1($,...et){return isFunction$2($)?$(...et):$}var{definePartsStyle:definePartsStyle$i,defineMultiStyleConfig:defineMultiStyleConfig$i}=createMultiStyleConfigHelpers(checkboxAnatomy.keys),$size$3=cssVar$1("checkbox-size"),baseStyleControl$1=$=>{const{colorScheme:et}=$;return{w:$size$3.reference,h:$size$3.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mode(`${et}.500`,`${et}.200`)($),borderColor:mode(`${et}.500`,`${et}.200`)($),color:mode("white","gray.900")($),_hover:{bg:mode(`${et}.600`,`${et}.300`)($),borderColor:mode(`${et}.600`,`${et}.300`)($)},_disabled:{borderColor:mode("gray.200","transparent")($),bg:mode("gray.200","whiteAlpha.300")($),color:mode("gray.500","whiteAlpha.500")($)}},_indeterminate:{bg:mode(`${et}.500`,`${et}.200`)($),borderColor:mode(`${et}.500`,`${et}.200`)($),color:mode("white","gray.900")($)},_disabled:{bg:mode("gray.100","whiteAlpha.100")($),borderColor:mode("gray.100","transparent")($)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mode("red.500","red.300")($)}}},baseStyleContainer$3={_disabled:{cursor:"not-allowed"}},baseStyleLabel$2={userSelect:"none",_disabled:{opacity:.4}},baseStyleIcon$6={transitionProperty:"transform",transitionDuration:"normal"},baseStyle$w=definePartsStyle$i($=>({icon:baseStyleIcon$6,container:baseStyleContainer$3,control:runIfFn$1(baseStyleControl$1,$),label:baseStyleLabel$2})),sizes$f={sm:definePartsStyle$i({control:{[$size$3.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:definePartsStyle$i({control:{[$size$3.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:definePartsStyle$i({control:{[$size$3.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},checkboxTheme=defineMultiStyleConfig$i({baseStyle:baseStyle$w,sizes:sizes$f,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$h,definePartsStyle:definePartsStyle$h}=createMultiStyleConfigHelpers(radioAnatomy.keys),baseStyleControl=$=>{var et;const tt=(et=runIfFn$1(checkboxTheme.baseStyle,$))==null?void 0:et.control;return{...tt,borderRadius:"full",_checked:{...tt==null?void 0:tt._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},baseStyle$v=definePartsStyle$h($=>{var et,tt,rt,nt;return{label:(tt=(et=checkboxTheme).baseStyle)==null?void 0:tt.call(et,$).label,container:(nt=(rt=checkboxTheme).baseStyle)==null?void 0:nt.call(rt,$).container,control:baseStyleControl($)}}),sizes$e={md:definePartsStyle$h({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:definePartsStyle$h({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:definePartsStyle$h({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},radioTheme=defineMultiStyleConfig$h({baseStyle:baseStyle$v,sizes:sizes$e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$g,definePartsStyle:definePartsStyle$g}=createMultiStyleConfigHelpers(selectAnatomy.keys),$bg$b=cssVar$1("select-bg"),_a$3,baseStyleField$1={...(_a$3=inputTheme.baseStyle)==null?void 0:_a$3.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$bg$b.reference,[$bg$b.variable]:"colors.white",_dark:{[$bg$b.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$bg$b.reference}},baseStyleIcon$5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},baseStyle$u=definePartsStyle$g({field:baseStyleField$1,icon:baseStyleIcon$5}),iconSpacing={paddingInlineEnd:"8"},_a2$1,_b$1,_c,_d,_e,_f,_g,_h,sizes$d={lg:{...(_a2$1=inputTheme.sizes)==null?void 0:_a2$1.lg,field:{...(_b$1=inputTheme.sizes)==null?void 0:_b$1.lg.field,...iconSpacing}},md:{...(_c=inputTheme.sizes)==null?void 0:_c.md,field:{...(_d=inputTheme.sizes)==null?void 0:_d.md.field,...iconSpacing}},sm:{...(_e=inputTheme.sizes)==null?void 0:_e.sm,field:{...(_f=inputTheme.sizes)==null?void 0:_f.sm.field,...iconSpacing}},xs:{...(_g=inputTheme.sizes)==null?void 0:_g.xs,field:{...(_h=inputTheme.sizes)==null?void 0:_h.xs.field,...iconSpacing},icon:{insetEnd:"1"}}},selectTheme=defineMultiStyleConfig$g({baseStyle:baseStyle$u,sizes:sizes$d,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps}),$startColor=cssVar$1("skeleton-start-color"),$endColor=cssVar$1("skeleton-end-color"),baseStyle$t={[$startColor.variable]:"colors.gray.100",[$endColor.variable]:"colors.gray.400",_dark:{[$startColor.variable]:"colors.gray.800",[$endColor.variable]:"colors.gray.600"},background:$startColor.reference,borderColor:$endColor.reference,opacity:.7,borderRadius:"sm"},skeletonTheme={baseStyle:baseStyle$t},$bg$a=cssVar$1("skip-link-bg"),baseStyle$s={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[$bg$a.variable]:"colors.white",_dark:{[$bg$a.variable]:"colors.gray.700"},bg:$bg$a.reference}},skipLinkTheme={baseStyle:baseStyle$s},{defineMultiStyleConfig:defineMultiStyleConfig$f,definePartsStyle:definePartsStyle$f}=createMultiStyleConfigHelpers(sliderAnatomy.keys),$thumbSize=cssVar$1("slider-thumb-size"),$trackSize=cssVar$1("slider-track-size"),$bg$9=cssVar$1("slider-bg"),baseStyleContainer$2=$=>{const{orientation:et}=$;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...orient({orientation:et,vertical:{h:"100%"},horizontal:{w:"100%"}})}},baseStyleTrack=$=>({...orient({orientation:$.orientation,horizontal:{h:$trackSize.reference},vertical:{w:$trackSize.reference}}),overflow:"hidden",borderRadius:"sm",[$bg$9.variable]:"colors.gray.200",_dark:{[$bg$9.variable]:"colors.whiteAlpha.200"},_disabled:{[$bg$9.variable]:"colors.gray.300",_dark:{[$bg$9.variable]:"colors.whiteAlpha.300"}},bg:$bg$9.reference}),baseStyleThumb=$=>{const{orientation:et}=$;return{...orient({orientation:et,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:$thumbSize.reference,h:$thumbSize.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},baseStyleFilledTrack=$=>{const{colorScheme:et}=$;return{width:"inherit",height:"inherit",[$bg$9.variable]:`colors.${et}.500`,_dark:{[$bg$9.variable]:`colors.${et}.200`},bg:$bg$9.reference}},baseStyle$r=definePartsStyle$f($=>({container:baseStyleContainer$2($),track:baseStyleTrack($),thumb:baseStyleThumb($),filledTrack:baseStyleFilledTrack($)})),sizeLg=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.4",[$trackSize.variable]:"sizes.1"}}),sizeMd=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.3.5",[$trackSize.variable]:"sizes.1"}}),sizeSm=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.2.5",[$trackSize.variable]:"sizes.0.5"}}),sizes$c={lg:sizeLg,md:sizeMd,sm:sizeSm},sliderTheme=defineMultiStyleConfig$f({baseStyle:baseStyle$r,sizes:sizes$c,defaultProps:{size:"md",colorScheme:"blue"}}),$size$2=cssVar("spinner-size"),baseStyle$q={width:[$size$2.reference],height:[$size$2.reference]},sizes$b={xs:{[$size$2.variable]:"sizes.3"},sm:{[$size$2.variable]:"sizes.4"},md:{[$size$2.variable]:"sizes.6"},lg:{[$size$2.variable]:"sizes.8"},xl:{[$size$2.variable]:"sizes.12"}},spinnerTheme={baseStyle:baseStyle$q,sizes:sizes$b,defaultProps:{size:"md"}},{defineMultiStyleConfig:defineMultiStyleConfig$e,definePartsStyle:definePartsStyle$e}=createMultiStyleConfigHelpers(statAnatomy.keys),baseStyleLabel$1={fontWeight:"medium"},baseStyleHelpText={opacity:.8,marginBottom:"2"},baseStyleNumber={verticalAlign:"baseline",fontWeight:"semibold"},baseStyleIcon$4={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},baseStyle$p=definePartsStyle$e({container:{},label:baseStyleLabel$1,helpText:baseStyleHelpText,number:baseStyleNumber,icon:baseStyleIcon$4}),sizes$a={md:definePartsStyle$e({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},statTheme=defineMultiStyleConfig$e({baseStyle:baseStyle$p,sizes:sizes$a,defaultProps:{size:"md"}}),$bg$8=cssVar$1("kbd-bg"),baseStyle$o={[$bg$8.variable]:"colors.gray.100",_dark:{[$bg$8.variable]:"colors.whiteAlpha.100"},bg:$bg$8.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},kbdTheme={baseStyle:baseStyle$o},baseStyle$n={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},linkTheme={baseStyle:baseStyle$n},{defineMultiStyleConfig:defineMultiStyleConfig$d,definePartsStyle:definePartsStyle$d}=createMultiStyleConfigHelpers(listAnatomy.keys),baseStyleIcon$3={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},baseStyle$m=definePartsStyle$d({icon:baseStyleIcon$3}),listTheme=defineMultiStyleConfig$d({baseStyle:baseStyle$m}),{defineMultiStyleConfig:defineMultiStyleConfig$c,definePartsStyle:definePartsStyle$c}=createMultiStyleConfigHelpers(menuAnatomy.keys),$bg$7=cssVar$1("menu-bg"),$shadow$2=cssVar$1("menu-shadow"),baseStyleList={[$bg$7.variable]:"#fff",[$shadow$2.variable]:"shadows.sm",_dark:{[$bg$7.variable]:"colors.gray.700",[$shadow$2.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:$bg$7.reference,boxShadow:$shadow$2.reference},baseStyleItem={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[$bg$7.variable]:"colors.gray.100",_dark:{[$bg$7.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$7.variable]:"colors.gray.200",_dark:{[$bg$7.variable]:"colors.whiteAlpha.200"}},_expanded:{[$bg$7.variable]:"colors.gray.100",_dark:{[$bg$7.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:$bg$7.reference},baseStyleGroupTitle={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},baseStyleIcon$2={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},baseStyleCommand={opacity:.6},baseStyleDivider={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},baseStyleButton$1={transitionProperty:"common",transitionDuration:"normal"},baseStyle$l=definePartsStyle$c({button:baseStyleButton$1,list:baseStyleList,item:baseStyleItem,groupTitle:baseStyleGroupTitle,icon:baseStyleIcon$2,command:baseStyleCommand,divider:baseStyleDivider}),menuTheme=defineMultiStyleConfig$c({baseStyle:baseStyle$l}),{defineMultiStyleConfig:defineMultiStyleConfig$b,definePartsStyle:definePartsStyle$b}=createMultiStyleConfigHelpers(modalAnatomy.keys),$bg$6=cssVar$1("modal-bg"),$shadow$1=cssVar$1("modal-shadow"),baseStyleOverlay$1={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer$1=$=>{const{isCentered:et,scrollBehavior:tt}=$;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:et?"center":"flex-start",overflow:tt==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},baseStyleDialog$1=$=>{const{isCentered:et,scrollBehavior:tt}=$;return{borderRadius:"md",color:"inherit",my:et?"auto":"16",mx:et?"auto":void 0,zIndex:"modal",maxH:tt==="inside"?"calc(100% - 7.5rem)":void 0,[$bg$6.variable]:"colors.white",[$shadow$1.variable]:"shadows.lg",_dark:{[$bg$6.variable]:"colors.gray.700",[$shadow$1.variable]:"shadows.dark-lg"},bg:$bg$6.reference,boxShadow:$shadow$1.reference}},baseStyleHeader$2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton$2={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody$2=$=>{const{scrollBehavior:et}=$;return{px:"6",py:"2",flex:"1",overflow:et==="inside"?"auto":void 0}},baseStyleFooter$2={px:"6",py:"4"},baseStyle$k=definePartsStyle$b($=>({overlay:baseStyleOverlay$1,dialogContainer:runIfFn$1(baseStyleDialogContainer$1,$),dialog:runIfFn$1(baseStyleDialog$1,$),header:baseStyleHeader$2,closeButton:baseStyleCloseButton$2,body:runIfFn$1(baseStyleBody$2,$),footer:baseStyleFooter$2}));function getSize$3($){return definePartsStyle$b($==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:$}})}var sizes$9={xs:getSize$3("xs"),sm:getSize$3("sm"),md:getSize$3("md"),lg:getSize$3("lg"),xl:getSize$3("xl"),"2xl":getSize$3("2xl"),"3xl":getSize$3("3xl"),"4xl":getSize$3("4xl"),"5xl":getSize$3("5xl"),"6xl":getSize$3("6xl"),full:getSize$3("full")},modalTheme=defineMultiStyleConfig$b({baseStyle:baseStyle$k,sizes:sizes$9,defaultProps:{size:"md"}}),{defineMultiStyleConfig:defineMultiStyleConfig$a,definePartsStyle:definePartsStyle$a}=createMultiStyleConfigHelpers(numberInputAnatomy.keys),$stepperWidth=cssVar("number-input-stepper-width"),$inputPadding=cssVar("number-input-input-padding"),inputPaddingValue=calc($stepperWidth).add("0.5rem").toString(),$bg$5=cssVar("number-input-bg"),$fg$3=cssVar("number-input-color"),$border$2=cssVar("number-input-border-color"),baseStyleRoot={[$stepperWidth.variable]:"sizes.6",[$inputPadding.variable]:inputPaddingValue},baseStyleField=$=>{var et,tt;return(tt=(et=runIfFn$1(inputTheme.baseStyle,$))==null?void 0:et.field)!=null?tt:{}},baseStyleStepperGroup={width:$stepperWidth.reference},baseStyleStepper={borderStart:"1px solid",borderStartColor:$border$2.reference,color:$fg$3.reference,bg:$bg$5.reference,[$fg$3.variable]:"colors.chakra-body-text",[$border$2.variable]:"colors.chakra-border-color",_dark:{[$fg$3.variable]:"colors.whiteAlpha.800",[$border$2.variable]:"colors.whiteAlpha.300"},_active:{[$bg$5.variable]:"colors.gray.200",_dark:{[$bg$5.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},baseStyle$j=definePartsStyle$a($=>{var et;return{root:baseStyleRoot,field:(et=runIfFn$1(baseStyleField,$))!=null?et:{},stepperGroup:baseStyleStepperGroup,stepper:baseStyleStepper}});function getSize$2($){var et,tt,rt;const nt=(et=inputTheme.sizes)==null?void 0:et[$],it={lg:"md",md:"md",sm:"sm",xs:"sm"},At=(rt=(tt=nt.field)==null?void 0:tt.fontSize)!=null?rt:"md",at=typography_default.fontSizes[At];return definePartsStyle$a({field:{...nt.field,paddingInlineEnd:$inputPadding.reference,verticalAlign:"top"},stepper:{fontSize:calc(at).multiply(.75).toString(),_first:{borderTopEndRadius:it[$]},_last:{borderBottomEndRadius:it[$],mt:"-1px",borderTopWidth:1}}})}var sizes$8={xs:getSize$2("xs"),sm:getSize$2("sm"),md:getSize$2("md"),lg:getSize$2("lg")},numberInputTheme=defineMultiStyleConfig$a({baseStyle:baseStyle$j,sizes:sizes$8,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps}),_a$2,baseStyle$i={...(_a$2=inputTheme.baseStyle)==null?void 0:_a$2.field,textAlign:"center"},sizes$7={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},_a2,_b,variants$9={outline:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.outline,$))==null?void 0:tt.field)!=null?rt:{}},flushed:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.flushed,$))==null?void 0:tt.field)!=null?rt:{}},filled:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.filled,$))==null?void 0:tt.field)!=null?rt:{}},unstyled:(_b=(_a2=inputTheme.variants)==null?void 0:_a2.unstyled.field)!=null?_b:{}},pinInputTheme={baseStyle:baseStyle$i,sizes:sizes$7,variants:variants$9,defaultProps:inputTheme.defaultProps},{defineMultiStyleConfig:defineMultiStyleConfig$9,definePartsStyle:definePartsStyle$9}=createMultiStyleConfigHelpers(popoverAnatomy.keys),$popperBg=cssVar("popper-bg"),$arrowBg=cssVar("popper-arrow-bg"),$arrowShadowColor=cssVar("popper-arrow-shadow-color"),baseStylePopper={zIndex:10},baseStyleContent={[$popperBg.variable]:"colors.white",bg:$popperBg.reference,[$arrowBg.variable]:$popperBg.reference,[$arrowShadowColor.variable]:"colors.gray.200",_dark:{[$popperBg.variable]:"colors.gray.700",[$arrowShadowColor.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},baseStyleHeader$1={px:3,py:2,borderBottomWidth:"1px"},baseStyleBody$1={px:3,py:2},baseStyleFooter$1={px:3,py:2,borderTopWidth:"1px"},baseStyleCloseButton$1={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},baseStyle$h=definePartsStyle$9({popper:baseStylePopper,content:baseStyleContent,header:baseStyleHeader$1,body:baseStyleBody$1,footer:baseStyleFooter$1,closeButton:baseStyleCloseButton$1}),popoverTheme=defineMultiStyleConfig$9({baseStyle:baseStyle$h}),{definePartsStyle:definePartsStyle$8,defineMultiStyleConfig:defineMultiStyleConfig$8}=createMultiStyleConfigHelpers(drawerAnatomy.keys),$bg$4=cssVar$1("drawer-bg"),$bs=cssVar$1("drawer-box-shadow");function getSize$1($){return definePartsStyle$8($==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:$}})}var baseStyleOverlay={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer={display:"flex",zIndex:"modal",justifyContent:"center"},baseStyleDialog=$=>{const{isFullHeight:et}=$;return{...et&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[$bg$4.variable]:"colors.white",[$bs.variable]:"shadows.lg",_dark:{[$bg$4.variable]:"colors.gray.700",[$bs.variable]:"shadows.dark-lg"},bg:$bg$4.reference,boxShadow:$bs.reference}},baseStyleHeader={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody={px:"6",py:"2",flex:"1",overflow:"auto"},baseStyleFooter={px:"6",py:"4"},baseStyle$g=definePartsStyle$8($=>({overlay:baseStyleOverlay,dialogContainer:baseStyleDialogContainer,dialog:runIfFn$1(baseStyleDialog,$),header:baseStyleHeader,closeButton:baseStyleCloseButton,body:baseStyleBody,footer:baseStyleFooter})),sizes$6={xs:getSize$1("xs"),sm:getSize$1("md"),md:getSize$1("lg"),lg:getSize$1("2xl"),xl:getSize$1("4xl"),full:getSize$1("full")},drawerTheme=defineMultiStyleConfig$8({baseStyle:baseStyle$g,sizes:sizes$6,defaultProps:{size:"xs"}}),{definePartsStyle:definePartsStyle$7,defineMultiStyleConfig:defineMultiStyleConfig$7}=createMultiStyleConfigHelpers(editableAnatomy.keys),baseStylePreview={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},baseStyleInput={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyleTextarea={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyle$f=definePartsStyle$7({preview:baseStylePreview,input:baseStyleInput,textarea:baseStyleTextarea}),editableTheme=defineMultiStyleConfig$7({baseStyle:baseStyle$f}),{definePartsStyle:definePartsStyle$6,defineMultiStyleConfig:defineMultiStyleConfig$6}=createMultiStyleConfigHelpers(formAnatomy.keys),$fg$2=cssVar$1("form-control-color"),baseStyleRequiredIndicator={marginStart:"1",[$fg$2.variable]:"colors.red.500",_dark:{[$fg$2.variable]:"colors.red.300"},color:$fg$2.reference},baseStyleHelperText={mt:"2",[$fg$2.variable]:"colors.gray.600",_dark:{[$fg$2.variable]:"colors.whiteAlpha.600"},color:$fg$2.reference,lineHeight:"normal",fontSize:"sm"},baseStyle$e=definePartsStyle$6({container:{width:"100%",position:"relative"},requiredIndicator:baseStyleRequiredIndicator,helperText:baseStyleHelperText}),formTheme=defineMultiStyleConfig$6({baseStyle:baseStyle$e}),{definePartsStyle:definePartsStyle$5,defineMultiStyleConfig:defineMultiStyleConfig$5}=createMultiStyleConfigHelpers(formErrorAnatomy.keys),$fg$1=cssVar$1("form-error-color"),baseStyleText={[$fg$1.variable]:"colors.red.500",_dark:{[$fg$1.variable]:"colors.red.300"},color:$fg$1.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},baseStyleIcon$1={marginEnd:"0.5em",[$fg$1.variable]:"colors.red.500",_dark:{[$fg$1.variable]:"colors.red.300"},color:$fg$1.reference},baseStyle$d=definePartsStyle$5({text:baseStyleText,icon:baseStyleIcon$1}),formErrorTheme=defineMultiStyleConfig$5({baseStyle:baseStyle$d}),baseStyle$c={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},formLabelTheme={baseStyle:baseStyle$c},baseStyle$b={fontFamily:"heading",fontWeight:"bold"},sizes$5={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},headingTheme={baseStyle:baseStyle$b,sizes:sizes$5,defaultProps:{size:"xl"}},{defineMultiStyleConfig:defineMultiStyleConfig$4,definePartsStyle:definePartsStyle$4}=createMultiStyleConfigHelpers(breadcrumbAnatomy.keys),$decor=cssVar$1("breadcrumb-link-decor"),baseStyleLink={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:$decor.reference,[$decor.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[$decor.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},baseStyle$a=definePartsStyle$4({link:baseStyleLink}),breadcrumbTheme=defineMultiStyleConfig$4({baseStyle:baseStyle$a}),baseStyle$9={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variantGhost=$=>{const{colorScheme:et,theme:tt}=$;if(et==="gray")return{color:mode("gray.800","whiteAlpha.900")($),_hover:{bg:mode("gray.100","whiteAlpha.200")($)},_active:{bg:mode("gray.200","whiteAlpha.300")($)}};const rt=transparentize(`${et}.200`,.12)(tt),nt=transparentize(`${et}.200`,.24)(tt);return{color:mode(`${et}.600`,`${et}.200`)($),bg:"transparent",_hover:{bg:mode(`${et}.50`,rt)($)},_active:{bg:mode(`${et}.100`,nt)($)}}},variantOutline=$=>{const{colorScheme:et}=$,tt=mode("gray.200","whiteAlpha.300")($);return{border:"1px solid",borderColor:et==="gray"?tt:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...runIfFn$1(variantGhost,$)}},accessibleColorMap={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},variantSolid$2=$=>{var et;const{colorScheme:tt}=$;if(tt==="gray"){const ot=mode("gray.100","whiteAlpha.200")($);return{bg:ot,color:mode("gray.800","whiteAlpha.900")($),_hover:{bg:mode("gray.200","whiteAlpha.300")($),_disabled:{bg:ot}},_active:{bg:mode("gray.300","whiteAlpha.400")($)}}}const{bg:rt=`${tt}.500`,color:nt="white",hoverBg:it=`${tt}.600`,activeBg:At=`${tt}.700`}=(et=accessibleColorMap[tt])!=null?et:{},at=mode(rt,`${tt}.200`)($);return{bg:at,color:mode(nt,"gray.800")($),_hover:{bg:mode(it,`${tt}.300`)($),_disabled:{bg:at}},_active:{bg:mode(At,`${tt}.400`)($)}}},variantLink=$=>{const{colorScheme:et}=$;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mode(`${et}.500`,`${et}.200`)($),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mode(`${et}.700`,`${et}.500`)($)}}},variantUnstyled={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},variants$8={ghost:variantGhost,outline:variantOutline,solid:variantSolid$2,link:variantLink,unstyled:variantUnstyled},sizes$4={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},buttonTheme={baseStyle:baseStyle$9,variants:variants$8,sizes:sizes$4,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:definePartsStyle$3,defineMultiStyleConfig:defineMultiStyleConfig$3}=createMultiStyleConfigHelpers(cardAnatomy.keys),$bg$3=cssVar$1("card-bg"),$padding=cssVar$1("card-padding"),$shadow=cssVar$1("card-shadow"),$radius=cssVar$1("card-radius"),$border$1=cssVar$1("card-border-width","0"),$borderColor=cssVar$1("card-border-color"),baseStyle$8=definePartsStyle$3({container:{[$bg$3.variable]:"colors.chakra-body-bg",backgroundColor:$bg$3.reference,boxShadow:$shadow.reference,borderRadius:$radius.reference,color:"chakra-body-text",borderWidth:$border$1.reference,borderColor:$borderColor.reference},body:{padding:$padding.reference,flex:"1 1 0%"},header:{padding:$padding.reference},footer:{padding:$padding.reference}}),sizes$3={sm:definePartsStyle$3({container:{[$radius.variable]:"radii.base",[$padding.variable]:"space.3"}}),md:definePartsStyle$3({container:{[$radius.variable]:"radii.md",[$padding.variable]:"space.5"}}),lg:definePartsStyle$3({container:{[$radius.variable]:"radii.xl",[$padding.variable]:"space.7"}})},variants$7={elevated:definePartsStyle$3({container:{[$shadow.variable]:"shadows.base",_dark:{[$bg$3.variable]:"colors.gray.700"}}}),outline:definePartsStyle$3({container:{[$border$1.variable]:"1px",[$borderColor.variable]:"colors.chakra-border-color"}}),filled:definePartsStyle$3({container:{[$bg$3.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[$padding.variable]:0},header:{[$padding.variable]:0},footer:{[$padding.variable]:0}}},cardTheme=defineMultiStyleConfig$3({baseStyle:baseStyle$8,variants:variants$7,sizes:sizes$3,defaultProps:{variant:"elevated",size:"md"}}),$size$1=cssVar("close-button-size"),$bg$2=cssVar("close-button-bg"),baseStyle$7={w:[$size$1.reference],h:[$size$1.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$bg$2.variable]:"colors.blackAlpha.100",_dark:{[$bg$2.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$2.variable]:"colors.blackAlpha.200",_dark:{[$bg$2.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$bg$2.reference},sizes$2={lg:{[$size$1.variable]:"sizes.10",fontSize:"md"},md:{[$size$1.variable]:"sizes.8",fontSize:"xs"},sm:{[$size$1.variable]:"sizes.6",fontSize:"2xs"}},closeButtonTheme={baseStyle:baseStyle$7,sizes:sizes$2,defaultProps:{size:"md"}},{variants:variants$6,defaultProps}=badgeTheme,baseStyle$6={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:vars.bg.reference,color:vars.color.reference,boxShadow:vars.shadow.reference},codeTheme={baseStyle:baseStyle$6,variants:variants$6,defaultProps},baseStyle$5={w:"100%",mx:"auto",maxW:"prose",px:"4"},containerTheme={baseStyle:baseStyle$5},baseStyle$4={opacity:.6,borderColor:"inherit"},variantSolid$1={borderStyle:"solid"},variantDashed={borderStyle:"dashed"},variants$5={solid:variantSolid$1,dashed:variantDashed},dividerTheme={baseStyle:baseStyle$4,variants:variants$5,defaultProps:{variant:"solid"}},{definePartsStyle:definePartsStyle$2,defineMultiStyleConfig:defineMultiStyleConfig$2}=createMultiStyleConfigHelpers(accordionAnatomy.keys),baseStyleContainer$1={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},baseStyleButton={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},baseStylePanel={pt:"2",px:"4",pb:"5"},baseStyleIcon={fontSize:"1.25em"},baseStyle$3=definePartsStyle$2({container:baseStyleContainer$1,button:baseStyleButton,panel:baseStylePanel,icon:baseStyleIcon}),accordionTheme=defineMultiStyleConfig$2({baseStyle:baseStyle$3}),{definePartsStyle:definePartsStyle$1,defineMultiStyleConfig:defineMultiStyleConfig$1}=createMultiStyleConfigHelpers(alertAnatomy.keys),$fg=cssVar$1("alert-fg"),$bg$1=cssVar$1("alert-bg"),baseStyle$2=definePartsStyle$1({container:{bg:$bg$1.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$fg.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$fg.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function getBg($){const{theme:et,colorScheme:tt}=$,rt=transparentize(`${tt}.200`,.16)(et);return{light:`colors.${tt}.100`,dark:rt}}var variantSubtle=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark}}}}),variantLeftAccent=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$fg.reference}}}),variantTopAccent=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$fg.reference}}}),variantSolid=definePartsStyle$1($=>{const{colorScheme:et}=$;return{container:{[$fg.variable]:"colors.white",[$bg$1.variable]:`colors.${et}.500`,_dark:{[$fg.variable]:"colors.gray.900",[$bg$1.variable]:`colors.${et}.200`},color:$fg.reference}}}),variants$4={subtle:variantSubtle,"left-accent":variantLeftAccent,"top-accent":variantTopAccent,solid:variantSolid},alertTheme=defineMultiStyleConfig$1({baseStyle:baseStyle$2,variants:variants$4,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle,defineMultiStyleConfig}=createMultiStyleConfigHelpers(avatarAnatomy.keys),$border=cssVar$1("avatar-border-color"),$bg=cssVar$1("avatar-bg"),$fs=cssVar$1("avatar-font-size"),$size=cssVar$1("avatar-size"),baseStyleBadge={borderRadius:"full",border:"0.2em solid",borderColor:$border.reference,[$border.variable]:"white",_dark:{[$border.variable]:"colors.gray.800"}},baseStyleExcessLabel={bg:$bg.reference,fontSize:$fs.reference,width:$size.reference,height:$size.reference,lineHeight:"1",[$bg.variable]:"colors.gray.200",_dark:{[$bg.variable]:"colors.whiteAlpha.400"}},baseStyleContainer=$=>{const{name:et,theme:tt}=$,rt=et?randomColor({string:et}):"colors.gray.400",nt=isDark(rt)(tt);let it="white";return nt||(it="gray.800"),{bg:$bg.reference,fontSize:$fs.reference,color:it,borderColor:$border.reference,verticalAlign:"top",width:$size.reference,height:$size.reference,"&:not([data-loaded])":{[$bg.variable]:rt},[$border.variable]:"colors.white",_dark:{[$border.variable]:"colors.gray.800"}}},baseStyleLabel={fontSize:$fs.reference,lineHeight:"1"},baseStyle$1=definePartsStyle($=>({badge:runIfFn$1(baseStyleBadge,$),excessLabel:runIfFn$1(baseStyleExcessLabel,$),container:runIfFn$1(baseStyleContainer,$),label:baseStyleLabel}));function getSize($){const et=$!=="100%"?sizes_default[$]:void 0;return definePartsStyle({container:{[$size.variable]:et??$,[$fs.variable]:`calc(${et??$} / 2.5)`},excessLabel:{[$size.variable]:et??$,[$fs.variable]:`calc(${et??$} / 2.5)`}})}var sizes$1={"2xs":getSize(4),xs:getSize(6),sm:getSize(8),md:getSize(12),lg:getSize(16),xl:getSize(24),"2xl":getSize(32),full:getSize("100%")},avatarTheme=defineMultiStyleConfig({baseStyle:baseStyle$1,sizes:sizes$1,defaultProps:{size:"md"}}),components={Accordion:accordionTheme,Alert:alertTheme,Avatar:avatarTheme,Badge:badgeTheme,Breadcrumb:breadcrumbTheme,Button:buttonTheme,Checkbox:checkboxTheme,CloseButton:closeButtonTheme,Code:codeTheme,Container:containerTheme,Divider:dividerTheme,Drawer:drawerTheme,Editable:editableTheme,Form:formTheme,FormError:formErrorTheme,FormLabel:formLabelTheme,Heading:headingTheme,Input:inputTheme,Kbd:kbdTheme,Link:linkTheme,List:listTheme,Menu:menuTheme,Modal:modalTheme,NumberInput:numberInputTheme,PinInput:pinInputTheme,Popover:popoverTheme,Progress:progressTheme,Radio:radioTheme,Select:selectTheme,Skeleton:skeletonTheme,SkipLink:skipLinkTheme,Slider:sliderTheme,Spinner:spinnerTheme,Stat:statTheme,Switch:switchTheme,Table:tableTheme,Tabs:tabsTheme,Tag:tagTheme,Textarea:textareaTheme,Tooltip:tooltipTheme,Card:cardTheme,Stepper:stepperTheme},semanticTokens={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},styles={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},direction="ltr",config={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},theme$1={semanticTokens,direction,...foundations,components,styles,config};function isFunction$1($){return typeof $=="function"}function pipe$1(...$){return et=>$.reduce((tt,rt)=>rt(tt),et)}var createExtendTheme=$=>function(...tt){let rt=[...tt],nt=tt[tt.length-1];return isChakraTheme(nt)&&rt.length>1?rt=rt.slice(0,rt.length-1):nt=$,pipe$1(...rt.map(it=>At=>isFunction$1(it)?it(At):mergeThemeOverride(At,it)))(nt)},extendTheme=createExtendTheme(theme$1);function mergeThemeOverride(...$){return mergeWith({},...$,mergeThemeCustomizer)}function mergeThemeCustomizer($,et,tt,rt){if((isFunction$1($)||isFunction$1(et))&&Object.prototype.hasOwnProperty.call(rt,tt))return(...nt)=>{const it=isFunction$1($)?$(...nt):$,At=isFunction$1(et)?et(...nt):et;return mergeWith({},it,At,mergeThemeCustomizer)}}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var isBrowser$1=canUseDOM$1();function omit$1($,et){const tt={};return Object.keys($).forEach(rt=>{et.includes(rt)||(tt[rt]=$[rt])}),tt}function get($,et,tt,rt){const nt=typeof et=="string"?et.split("."):[et];for(rt=0;rt{const et=new WeakMap;return(rt,nt,it,At)=>{if(typeof rt>"u")return $(rt,nt,it);et.has(rt)||et.set(rt,new Map);const at=et.get(rt);if(at.has(nt))return at.get(nt);const ot=$(rt,nt,it,At);return at.set(nt,ot),ot}},memoizedGet=memoize(get);function objectFilter($,et){const tt={};return Object.keys($).forEach(rt=>{const nt=$[rt];et(nt,rt,$)&&(tt[rt]=nt)}),tt}var filterUndefined=$=>objectFilter($,et=>et!=null);function isFunction($){return typeof $=="function"}function runIfFn($,...et){return isFunction($)?$(...et):$}function callAllHandlers(...$){return function(tt){$.some(rt=>(rt==null||rt(tt),tt==null?void 0:tt.defaultPrevented))}}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal($,et){if($===et)return!0;if($&&et&&typeof $=="object"&&typeof et=="object"){if($.constructor!==et.constructor)return!1;var tt,rt,nt;if(Array.isArray($)){if(tt=$.length,tt!=et.length)return!1;for(rt=tt;rt--!==0;)if(!equal($[rt],et[rt]))return!1;return!0}var it;if(hasMap&&$ instanceof Map&&et instanceof Map){if($.size!==et.size)return!1;for(it=$.entries();!(rt=it.next()).done;)if(!et.has(rt.value[0]))return!1;for(it=$.entries();!(rt=it.next()).done;)if(!equal(rt.value[1],et.get(rt.value[0])))return!1;return!0}if(hasSet&&$ instanceof Set&&et instanceof Set){if($.size!==et.size)return!1;for(it=$.entries();!(rt=it.next()).done;)if(!et.has(rt.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView($)&&ArrayBuffer.isView(et)){if(tt=$.length,tt!=et.length)return!1;for(rt=tt;rt--!==0;)if($[rt]!==et[rt])return!1;return!0}if($.constructor===RegExp)return $.source===et.source&&$.flags===et.flags;if($.valueOf!==Object.prototype.valueOf&&typeof $.valueOf=="function"&&typeof et.valueOf=="function")return $.valueOf()===et.valueOf();if($.toString!==Object.prototype.toString&&typeof $.toString=="function"&&typeof et.toString=="function")return $.toString()===et.toString();if(nt=Object.keys($),tt=nt.length,tt!==Object.keys(et).length)return!1;for(rt=tt;rt--!==0;)if(!Object.prototype.hasOwnProperty.call(et,nt[rt]))return!1;if(hasElementType&&$ instanceof Element)return!1;for(rt=tt;rt--!==0;)if(!((nt[rt]==="_owner"||nt[rt]==="__v"||nt[rt]==="__o")&&$.$$typeof)&&!equal($[nt[rt]],et[nt[rt]]))return!1;return!0}return $!==$&&et!==et}var reactFastCompare=function(et,tt){try{return equal(et,tt)}catch(rt){if((rt.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw rt}};const isEqual=getDefaultExportFromCjs(reactFastCompare);function useStyleConfigImpl($,et={}){var tt;const{styleConfig:rt,...nt}=et,{theme:it,colorMode:At}=useChakra(),at=$?memoizedGet(it,`components.${$}`):void 0,ot=rt||at,st=mergeWith({theme:it,colorMode:At},(tt=ot==null?void 0:ot.defaultProps)!=null?tt:{},filterUndefined(omit$1(nt,["children"]))),ct=reactExports.useRef({});if(ot){const gt=resolveStyleConfig(ot)(st);isEqual(ct.current,gt)||(ct.current=gt)}return ct.current}function useStyleConfig($,et={}){return useStyleConfigImpl($,et)}function useMultiStyleConfig($,et={}){return useStyleConfigImpl($,et)}var allPropNames=new Set([...propNames,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),validHTMLProps=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function shouldForwardProp($){return validHTMLProps.has($)||!allPropNames.has($)}function assignAfter($,...et){if($==null)throw new TypeError("Cannot convert undefined or null to object");const tt={...$};for(const rt of et)if(rt!=null)for(const nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(nt in tt&&delete tt[nt],tt[nt]=rt[nt]);return tt}function compact($){const et=Object.assign({},$);for(let tt in et)et[tt]===void 0&&delete et[tt];return et}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$2(function($){return reactPropsRegex.test($)||$.charCodeAt(0)===111&&$.charCodeAt(1)===110&&$.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(et){return et!=="theme"},getDefaultShouldForwardProp=function(et){return typeof et=="string"&&et.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(et,tt,rt){var nt;if(tt){var it=tt.shouldForwardProp;nt=et.__emotion_forwardProp&&it?function(At){return et.__emotion_forwardProp(At)&&it(At)}:it}return typeof nt!="function"&&rt&&(nt=et.__emotion_forwardProp),nt},Insertion=function(et){var tt=et.cache,rt=et.serialized,nt=et.isStringTag;return registerStyles(tt,rt,nt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(tt,rt,nt)}),null},createStyled=function $(et,tt){var rt=et.__emotion_real===et,nt=rt&&et.__emotion_base||et,it,At;tt!==void 0&&(it=tt.label,At=tt.target);var at=composeShouldForwardProps(et,tt,rt),ot=at||getDefaultShouldForwardProp(nt),st=!ot("as");return function(){var ct=arguments,ut=rt&&et.__emotion_styles!==void 0?et.__emotion_styles.slice(0):[];if(it!==void 0&&ut.push("label:"+it+";"),ct[0]==null||ct[0].raw===void 0)ut.push.apply(ut,ct);else{ut.push(ct[0][0]);for(var gt=ct.length,dt=1;dtet=>{const{theme:tt,css:rt,__css:nt,sx:it,...At}=et,at=objectFilter(At,(ut,gt)=>isStyleProp(gt)),ot=runIfFn($,et),st=assignAfter({},nt,ot,filterUndefined(at),it),ct=css(st)(et.theme);return rt?[ct,rt]:ct};function styled($,et){const{baseStyle:tt,...rt}=et??{};rt.shouldForwardProp||(rt.shouldForwardProp=shouldForwardProp);const nt=toCSSObject({baseStyle:tt}),it=emotion_styled($,rt)(nt);return React.forwardRef(function(ot,st){const{colorMode:ct,forced:ut}=useColorMode();return React.createElement(it,{ref:st,"data-theme":ut?ct:void 0,...ot})})}function factory(){const $=new Map;return new Proxy(styled,{apply(et,tt,rt){return styled(...rt)},get(et,tt){return $.has(tt)||$.set(tt,styled(tt)),$.get(tt)}})}var chakra=factory();function forwardRef($){return reactExports.forwardRef($)}function createContext($={}){const{strict:et=!0,errorMessage:tt="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:rt}=$,nt=reactExports.createContext(void 0);nt.displayName=rt;function it(){var At;const at=reactExports.useContext(nt);if(!at&&et){const ot=new Error(tt);throw ot.name="ContextError",(At=Error.captureStackTrace)==null||At.call(Error,ot,it),ot}return at}return[nt.Provider,it,nt]}function ThemeProvider($){const{cssVarsRoot:et,theme:tt,children:rt}=$,nt=reactExports.useMemo(()=>toCSSVar(tt),[tt]);return jsxRuntimeExports.jsxs(ThemeProvider$1,{theme:nt,children:[jsxRuntimeExports.jsx(CSSVars,{root:et}),rt]})}function CSSVars({root:$=":host, :root"}){const et=[$,"[data-theme]"].join(",");return jsxRuntimeExports.jsx(Global,{styles:tt=>({[et]:tt.__cssVars})})}createContext({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GlobalStyle(){const{colorMode:$}=useColorMode();return jsxRuntimeExports.jsx(Global,{styles:et=>{const tt=memoizedGet(et,"styles.global"),rt=runIfFn(tt,{theme:et,colorMode:$});return rt?css(rt)(et):void 0}})}var EnvironmentContext=reactExports.createContext({getDocument(){return document},getWindow(){return window}});EnvironmentContext.displayName="EnvironmentContext";function EnvironmentProvider($){const{children:et,environment:tt,disabled:rt}=$,nt=reactExports.useRef(null),it=reactExports.useMemo(()=>tt||{getDocument:()=>{var at,ot;return(ot=(at=nt.current)==null?void 0:at.ownerDocument)!=null?ot:document},getWindow:()=>{var at,ot;return(ot=(at=nt.current)==null?void 0:at.ownerDocument.defaultView)!=null?ot:window}},[tt]),At=!rt||!tt;return jsxRuntimeExports.jsxs(EnvironmentContext.Provider,{value:it,children:[et,At&&jsxRuntimeExports.jsx("span",{id:"__chakra_env",hidden:!0,ref:nt})]})}EnvironmentProvider.displayName="EnvironmentProvider";var ChakraProvider$1=$=>{const{children:et,colorModeManager:tt,portalZIndex:rt,resetScope:nt,resetCSS:it=!0,theme:At={},environment:at,cssVarsRoot:ot,disableEnvironment:st,disableGlobalStyle:ct}=$,ut=jsxRuntimeExports.jsx(EnvironmentProvider,{environment:at,disabled:st,children:et});return jsxRuntimeExports.jsx(ThemeProvider,{theme:At,cssVarsRoot:ot,children:jsxRuntimeExports.jsxs(ColorModeProvider,{colorModeManager:tt,options:At.config,children:[it?jsxRuntimeExports.jsx(CSSReset,{scope:nt}):jsxRuntimeExports.jsx(CSSPolyfill,{}),!ct&&jsxRuntimeExports.jsx(GlobalStyle,{}),rt?jsxRuntimeExports.jsx(PortalManager,{zIndex:rt,children:ut}):ut]})})},findById=($,et)=>$.find(tt=>tt.id===et);function findToast($,et){const tt=getToastPosition($,et),rt=tt?$[tt].findIndex(nt=>nt.id===et):-1;return{position:tt,index:rt}}function getToastPosition($,et){for(const[tt,rt]of Object.entries($))if(findById(rt,et))return tt}function getToastStyle($){const et=$.includes("right"),tt=$.includes("left");let rt="center";return et&&(rt="flex-end"),tt&&(rt="flex-start"),{display:"flex",flexDirection:"column",alignItems:rt}}function getToastListStyle($){const tt=$==="top"||$==="bottom"?"0 auto":void 0,rt=$.includes("top")?"env(safe-area-inset-top, 0px)":void 0,nt=$.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,it=$.includes("left")?void 0:"env(safe-area-inset-right, 0px)",At=$.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:tt,top:rt,bottom:nt,right:it,left:At}}function useCallbackRef$2($,et=[]){const tt=reactExports.useRef($);return reactExports.useEffect(()=>{tt.current=$}),reactExports.useCallback((...rt)=>{var nt;return(nt=tt.current)==null?void 0:nt.call(tt,...rt)},et)}function useTimeout($,et){const tt=useCallbackRef$2($);reactExports.useEffect(()=>{if(et==null)return;let rt=null;return rt=window.setTimeout(()=>{tt()},et),()=>{rt&&window.clearTimeout(rt)}},[et,tt])}function useUpdateEffect($,et){const tt=reactExports.useRef(!1),rt=reactExports.useRef(!1);reactExports.useEffect(()=>{if(tt.current&&rt.current)return $();rt.current=!0},et),reactExports.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[])}const MotionConfigContext=reactExports.createContext({transformPagePoint:$=>$,isStatic:!1,reducedMotion:"never"}),MotionContext=reactExports.createContext({}),PresenceContext=reactExports.createContext(null),isBrowser=typeof document<"u",useIsomorphicLayoutEffect$1=isBrowser?reactExports.useLayoutEffect:reactExports.useEffect,LazyContext=reactExports.createContext({strict:!1});function useVisualElement($,et,tt,rt){const{visualElement:nt}=reactExports.useContext(MotionContext),it=reactExports.useContext(LazyContext),At=reactExports.useContext(PresenceContext),at=reactExports.useContext(MotionConfigContext).reducedMotion,ot=reactExports.useRef();rt=rt||it.renderer,!ot.current&&rt&&(ot.current=rt($,{visualState:et,parent:nt,props:tt,presenceContext:At,blockInitialAnimation:At?At.initial===!1:!1,reducedMotionConfig:at}));const st=ot.current;reactExports.useInsertionEffect(()=>{st&&st.update(tt,At)});const ct=reactExports.useRef(!!window.HandoffAppearAnimations);return useIsomorphicLayoutEffect$1(()=>{st&&(st.render(),ct.current&&st.animationState&&st.animationState.animateChanges())}),reactExports.useEffect(()=>{st&&(st.updateFeatures(),!ct.current&&st.animationState&&st.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,ct.current=!1)}),st}function isRefObject($){return typeof $=="object"&&Object.prototype.hasOwnProperty.call($,"current")}function useMotionRef($,et,tt){return reactExports.useCallback(rt=>{rt&&$.mount&&$.mount(rt),et&&(rt?et.mount(rt):et.unmount()),tt&&(typeof tt=="function"?tt(rt):isRefObject(tt)&&(tt.current=rt))},[et])}function isVariantLabel($){return typeof $=="string"||Array.isArray($)}function isAnimationControls($){return typeof $=="object"&&typeof $.start=="function"}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants($){return isAnimationControls($.animate)||variantProps.some(et=>isVariantLabel($[et]))}function isVariantNode($){return!!(isControllingVariants($)||$.variants)}function getCurrentTreeVariants($,et){if(isControllingVariants($)){const{initial:tt,animate:rt}=$;return{initial:tt===!1||isVariantLabel(tt)?tt:void 0,animate:isVariantLabel(rt)?rt:void 0}}return $.inherit!==!1?et:{}}function useCreateMotionContext($){const{initial:et,animate:tt}=getCurrentTreeVariants($,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:et,animate:tt}),[variantLabelsAsDependency(et),variantLabelsAsDependency(tt)])}function variantLabelsAsDependency($){return Array.isArray($)?$.join(" "):$}const featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const $ in featureProps)featureDefinitions[$]={isEnabled:et=>featureProps[$].some(tt=>!!et[tt])};function loadFeatures($){for(const et in $)featureDefinitions[et]={...featureDefinitions[et],...$[et]}}const LayoutGroupContext=reactExports.createContext({}),SwitchLayoutGroupContext=reactExports.createContext({}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function createMotionComponent({preloadedFeatures:$,createVisualElement:et,useRender:tt,useVisualState:rt,Component:nt}){$&&loadFeatures($);function it(at,ot){let st;const ct={...reactExports.useContext(MotionConfigContext),...at,layoutId:useLayoutId(at)},{isStatic:ut}=ct,gt=useCreateMotionContext(at),dt=rt(at,ut);if(!ut&&isBrowser){gt.visualElement=useVisualElement(nt,dt,ct,et);const ht=reactExports.useContext(SwitchLayoutGroupContext),Et=reactExports.useContext(LazyContext).strict;gt.visualElement&&(st=gt.visualElement.loadFeatures(ct,Et,$,ht))}return reactExports.createElement(MotionContext.Provider,{value:gt},st&>.visualElement?reactExports.createElement(st,{visualElement:gt.visualElement,...ct}):null,tt(nt,at,useMotionRef(dt,gt.visualElement,ot),dt,ut,gt.visualElement))}const At=reactExports.forwardRef(it);return At[motionComponentSymbol]=nt,At}function useLayoutId({layoutId:$}){const et=reactExports.useContext(LayoutGroupContext).id;return et&&$!==void 0?et+"-"+$:$}function createMotionProxy($){function et(rt,nt={}){return createMotionComponent($(rt,nt))}if(typeof Proxy>"u")return et;const tt=new Map;return new Proxy(et,{get:(rt,nt)=>(tt.has(nt)||tt.set(nt,et(nt)),tt.get(nt))})}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent($){return typeof $!="string"||$.includes("-")?!1:!!(lowercaseSVGElements.indexOf($)>-1||/[A-Z]/.test($))}const scaleCorrectors={};function addScaleCorrector($){Object.assign(scaleCorrectors,$)}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder);function isForcedMotionValue($,{layout:et,layoutId:tt}){return transformProps.has($)||$.startsWith("origin")||(et||tt!==void 0)&&(!!scaleCorrectors[$]||$==="opacity")}const isMotionValue=$=>!!($&&$.getVelocity),translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform($,{enableHardwareAcceleration:et=!0,allowTransformNone:tt=!0},rt,nt){let it="";for(let At=0;Atet=>typeof et=="string"&&et.startsWith($),isCSSVariableName=checkStringStartsWith("--"),isCSSVariableToken=checkStringStartsWith("var(--"),cssVariableRegex=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,getValueAsType=($,et)=>et&&typeof $=="number"?et.transform($):$,clamp=($,et,tt)=>Math.min(Math.max(tt,$),et),number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha={...number$1,transform:$=>clamp(0,1,$)},scale={...number$1,default:1},sanitize=$=>Math.round($*1e5)/1e5,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString($){return typeof $=="string"}const createUnitType=$=>({test:et=>isString(et)&&et.endsWith($)&&et.split(" ").length===1,parse:parseFloat,transform:et=>`${et}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)},int={...number$1,transform:Math.round},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int};function buildHTMLStyles($,et,tt,rt){const{style:nt,vars:it,transform:At,transformOrigin:at}=$;let ot=!1,st=!1,ct=!0;for(const ut in et){const gt=et[ut];if(isCSSVariableName(ut)){it[ut]=gt;continue}const dt=numberValueTypes[ut],ht=getValueAsType(gt,dt);if(transformProps.has(ut)){if(ot=!0,At[ut]=ht,!ct)continue;gt!==(dt.default||0)&&(ct=!1)}else ut.startsWith("origin")?(st=!0,at[ut]=ht):nt[ut]=ht}if(et.transform||(ot||rt?nt.transform=buildTransform($.transform,tt,ct,rt):nt.transform&&(nt.transform="none")),st){const{originX:ut="50%",originY:gt="50%",originZ:dt=0}=at;nt.transformOrigin=`${ut} ${gt} ${dt}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly($,et,tt){for(const rt in et)!isMotionValue(et[rt])&&!isForcedMotionValue(rt,tt)&&($[rt]=et[rt])}function useInitialMotionValues({transformTemplate:$},et,tt){return reactExports.useMemo(()=>{const rt=createHtmlRenderState();return buildHTMLStyles(rt,et,{enableHardwareAcceleration:!tt},$),Object.assign({},rt.vars,rt.style)},[et])}function useStyle($,et,tt){const rt=$.style||{},nt={};return copyRawValuesOnly(nt,rt,$),Object.assign(nt,useInitialMotionValues($,et,tt)),$.transformValues?$.transformValues(nt):nt}function useHTMLProps($,et,tt){const rt={},nt=useStyle($,et,tt);return $.drag&&$.dragListener!==!1&&(rt.draggable=!1,nt.userSelect=nt.WebkitUserSelect=nt.WebkitTouchCallout="none",nt.touchAction=$.drag===!0?"none":`pan-${$.drag==="x"?"y":"x"}`),$.tabIndex===void 0&&($.onTap||$.onTapStart||$.whileTap)&&(rt.tabIndex=0),rt.style=nt,rt}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function isValidMotionProp($){return $.startsWith("while")||$.startsWith("drag")&&$!=="draggable"||$.startsWith("layout")||$.startsWith("onTap")||$.startsWith("onPan")||validMotionProps.has($)}let shouldForward=$=>!isValidMotionProp($);function loadExternalIsValidProp($){$&&(shouldForward=et=>et.startsWith("on")?!isValidMotionProp(et):$(et))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps($,et,tt){const rt={};for(const nt in $)nt==="values"&&typeof $.values=="object"||(shouldForward(nt)||tt===!0&&isValidMotionProp(nt)||!et&&!isValidMotionProp(nt)||$.draggable&&nt.startsWith("onDrag"))&&(rt[nt]=$[nt]);return rt}function calcOrigin$1($,et,tt){return typeof $=="string"?$:px.transform(et+tt*$)}function calcSVGTransformOrigin($,et,tt){const rt=calcOrigin$1(et,$.x,$.width),nt=calcOrigin$1(tt,$.y,$.height);return`${rt} ${nt}`}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath($,et,tt=1,rt=0,nt=!0){$.pathLength=1;const it=nt?dashKeys:camelKeys;$[it.offset]=px.transform(-rt);const At=px.transform(et),at=px.transform(tt);$[it.array]=`${At} ${at}`}function buildSVGAttrs($,{attrX:et,attrY:tt,attrScale:rt,originX:nt,originY:it,pathLength:At,pathSpacing:at=1,pathOffset:ot=0,...st},ct,ut,gt){if(buildHTMLStyles($,st,ct,gt),ut){$.style.viewBox&&($.attrs.viewBox=$.style.viewBox);return}$.attrs=$.style,$.style={};const{attrs:dt,style:ht,dimensions:Et}=$;dt.transform&&(Et&&(ht.transform=dt.transform),delete dt.transform),Et&&(nt!==void 0||it!==void 0||ht.transform)&&(ht.transformOrigin=calcSVGTransformOrigin(Et,nt!==void 0?nt:.5,it!==void 0?it:.5)),et!==void 0&&(dt.x=et),tt!==void 0&&(dt.y=tt),rt!==void 0&&(dt.scale=rt),At!==void 0&&buildSVGPath(dt,At,at,ot,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=$=>typeof $=="string"&&$.toLowerCase()==="svg";function useSVGProps($,et,tt,rt){const nt=reactExports.useMemo(()=>{const it=createSvgRenderState();return buildSVGAttrs(it,et,{enableHardwareAcceleration:!1},isSVGTag(rt),$.transformTemplate),{...it.attrs,style:{...it.style}}},[et]);if($.style){const it={};copyRawValuesOnly(it,$.style,$),nt.style={...it,...nt.style}}return nt}function createUseRender($=!1){return(tt,rt,nt,{latestValues:it},At)=>{const ot=(isSVGComponent(tt)?useSVGProps:useHTMLProps)(rt,it,At,tt),ct={...filterProps(rt,typeof tt=="string",$),...ot,ref:nt},{children:ut}=rt,gt=reactExports.useMemo(()=>isMotionValue(ut)?ut.get():ut,[ut]);return reactExports.createElement(tt,{...ct,children:gt})}}const camelToDash=$=>$.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function renderHTML($,{style:et,vars:tt},rt,nt){Object.assign($.style,et,nt&&nt.getProjectionStyles(rt));for(const it in tt)$.style.setProperty(it,tt[it])}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG($,et,tt,rt){renderHTML($,et,void 0,rt);for(const nt in et.attrs)$.setAttribute(camelCaseAttributes.has(nt)?nt:camelToDash(nt),et.attrs[nt])}function scrapeMotionValuesFromProps$1($,et){const{style:tt}=$,rt={};for(const nt in tt)(isMotionValue(tt[nt])||et.style&&isMotionValue(et.style[nt])||isForcedMotionValue(nt,$))&&(rt[nt]=tt[nt]);return rt}function scrapeMotionValuesFromProps($,et){const tt=scrapeMotionValuesFromProps$1($,et);for(const rt in $)if(isMotionValue($[rt])||isMotionValue(et[rt])){const nt=transformPropOrder.indexOf(rt)!==-1?"attr"+rt.charAt(0).toUpperCase()+rt.substring(1):rt;tt[nt]=$[rt]}return tt}function resolveVariantFromProps($,et,tt,rt={},nt={}){return typeof et=="function"&&(et=et(tt!==void 0?tt:$.custom,rt,nt)),typeof et=="string"&&(et=$.variants&&$.variants[et]),typeof et=="function"&&(et=et(tt!==void 0?tt:$.custom,rt,nt)),et}function useConstant($){const et=reactExports.useRef(null);return et.current===null&&(et.current=$()),et.current}const isKeyframesTarget=$=>Array.isArray($),isCustomValue=$=>!!($&&typeof $=="object"&&$.mix&&$.toValue),resolveFinalValueInKeyframes=$=>isKeyframesTarget($)?$[$.length-1]||0:$;function resolveMotionValue($){const et=isMotionValue($)?$.get():$;return isCustomValue(et)?et.toValue():et}function makeState({scrapeMotionValuesFromProps:$,createRenderState:et,onMount:tt},rt,nt,it){const At={latestValues:makeLatestValues(rt,nt,it,$),renderState:et()};return tt&&(At.mount=at=>tt(rt,at,At)),At}const makeUseVisualState=$=>(et,tt)=>{const rt=reactExports.useContext(MotionContext),nt=reactExports.useContext(PresenceContext),it=()=>makeState($,et,rt,nt);return tt?it():useConstant(it)};function makeLatestValues($,et,tt,rt){const nt={},it=rt($,{});for(const gt in it)nt[gt]=resolveMotionValue(it[gt]);let{initial:At,animate:at}=$;const ot=isControllingVariants($),st=isVariantNode($);et&&st&&!ot&&$.inherit!==!1&&(At===void 0&&(At=et.initial),at===void 0&&(at=et.animate));let ct=tt?tt.initial===!1:!1;ct=ct||At===!1;const ut=ct?at:At;return ut&&typeof ut!="boolean"&&!isAnimationControls(ut)&&(Array.isArray(ut)?ut:[ut]).forEach(dt=>{const ht=resolveVariantFromProps($,dt);if(!ht)return;const{transitionEnd:Et,transition:wt,...Qt}=ht;for(const pt in Qt){let mt=Qt[pt];if(Array.isArray(mt)){const $t=ct?mt.length-1:0;mt=mt[$t]}mt!==null&&(nt[pt]=mt)}for(const pt in Et)nt[pt]=Et[pt]}),nt}const noop=$=>$;class Queue{constructor(){this.order=[],this.scheduled=new Set}add(et){if(!this.scheduled.has(et))return this.scheduled.add(et),this.order.push(et),!0}remove(et){const tt=this.order.indexOf(et);tt!==-1&&(this.order.splice(tt,1),this.scheduled.delete(et))}clear(){this.order.length=0,this.scheduled.clear()}}function createRenderStep($){let et=new Queue,tt=new Queue,rt=0,nt=!1,it=!1;const At=new WeakSet,at={schedule:(ot,st=!1,ct=!1)=>{const ut=ct&&nt,gt=ut?et:tt;return st&&At.add(ot),gt.add(ot)&&ut&&nt&&(rt=et.order.length),ot},cancel:ot=>{tt.remove(ot),At.delete(ot)},process:ot=>{if(nt){it=!0;return}if(nt=!0,[et,tt]=[tt,et],tt.clear(),rt=et.order.length,rt)for(let st=0;st(ut[gt]=createRenderStep(()=>tt=!0),ut),{}),At=ut=>it[ut].process(nt),at=()=>{const ut=performance.now();tt=!1,nt.delta=rt?1e3/60:Math.max(Math.min(ut-nt.timestamp,maxElapsed),1),nt.timestamp=ut,nt.isProcessing=!0,stepsOrder.forEach(At),nt.isProcessing=!1,tt&&et&&(rt=!1,$(at))},ot=()=>{tt=!0,rt=!0,nt.isProcessing||$(at)};return{schedule:stepsOrder.reduce((ut,gt)=>{const dt=it[gt];return ut[gt]=(ht,Et=!1,wt=!1)=>(tt||ot(),dt.schedule(ht,Et,wt)),ut},{}),cancel:ut=>stepsOrder.forEach(gt=>it[gt].cancel(ut)),state:nt,steps:it}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0),svgMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:($,et,{renderState:tt,latestValues:rt})=>{frame.read(()=>{try{tt.dimensions=typeof et.getBBox=="function"?et.getBBox():et.getBoundingClientRect()}catch{tt.dimensions={x:0,y:0,width:0,height:0}}}),frame.render(()=>{buildSVGAttrs(tt,rt,{enableHardwareAcceleration:!1},isSVGTag(et.tagName),$.transformTemplate),renderSVG(et,tt)})}})},htmlMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState})};function createDomMotionConfig($,{forwardMotionProps:et=!1},tt,rt){return{...isSVGComponent($)?svgMotionConfig:htmlMotionConfig,preloadedFeatures:tt,useRender:createUseRender(et),createVisualElement:rt,Component:$}}function addDomEvent($,et,tt,rt={passive:!0}){return $.addEventListener(et,tt,rt),()=>$.removeEventListener(et,tt)}const isPrimaryPointer=$=>$.pointerType==="mouse"?typeof $.button!="number"||$.button<=0:$.isPrimary!==!1;function extractEventInfo($,et="page"){return{point:{x:$[et+"X"],y:$[et+"Y"]}}}const addPointerInfo=$=>et=>isPrimaryPointer(et)&&$(et,extractEventInfo(et));function addPointerEvent($,et,tt,rt){return addDomEvent($,et,addPointerInfo(tt),rt)}const combineFunctions=($,et)=>tt=>et($(tt)),pipe=(...$)=>$.reduce(combineFunctions);function createLock($){let et=null;return()=>{const tt=()=>{et=null};return et===null?(et=$,tt):!1}}const globalHorizontalLock=createLock("dragHorizontal"),globalVerticalLock=createLock("dragVertical");function getGlobalLock($){let et=!1;if($==="y")et=globalVerticalLock();else if($==="x")et=globalHorizontalLock();else{const tt=globalHorizontalLock(),rt=globalVerticalLock();tt&&rt?et=()=>{tt(),rt()}:(tt&&tt(),rt&&rt())}return et}function isDragActive(){const $=getGlobalLock(!0);return $?($(),!1):!0}class Feature{constructor(et){this.isMounted=!1,this.node=et}update(){}}function addHoverEvent($,et){const tt="pointer"+(et?"enter":"leave"),rt="onHover"+(et?"Start":"End"),nt=(it,At)=>{if(it.type==="touch"||isDragActive())return;const at=$.getProps();$.animationState&&at.whileHover&&$.animationState.setActive("whileHover",et),at[rt]&&frame.update(()=>at[rt](it,At))};return addPointerEvent($.current,tt,nt,{passive:!$.getProps()[rt]})}class HoverGesture extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let et=!1;try{et=this.node.current.matches(":focus-visible")}catch{et=!0}!et||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const isNodeOrChild=($,et)=>et?$===et?!0:isNodeOrChild($,et.parentElement):!1;function fireSyntheticPointerEvent($,et){if(!et)return;const tt=new PointerEvent("pointer"+$);et(tt,extractEventInfo(tt))}class PressGesture extends Feature{constructor(){super(...arguments),this.removeStartListeners=noop,this.removeEndListeners=noop,this.removeAccessibleListeners=noop,this.startPointerPress=(et,tt)=>{if(this.removeEndListeners(),this.isPressing)return;const rt=this.node.getProps(),it=addPointerEvent(window,"pointerup",(at,ot)=>{if(!this.checkPressEnd())return;const{onTap:st,onTapCancel:ct}=this.node.getProps();frame.update(()=>{isNodeOrChild(this.node.current,at.target)?st&&st(at,ot):ct&&ct(at,ot)})},{passive:!(rt.onTap||rt.onPointerUp)}),At=addPointerEvent(window,"pointercancel",(at,ot)=>this.cancelPress(at,ot),{passive:!(rt.onTapCancel||rt.onPointerCancel)});this.removeEndListeners=pipe(it,At),this.startPress(et,tt)},this.startAccessiblePress=()=>{const et=it=>{if(it.key!=="Enter"||this.isPressing)return;const At=at=>{at.key!=="Enter"||!this.checkPressEnd()||fireSyntheticPointerEvent("up",(ot,st)=>{const{onTap:ct}=this.node.getProps();ct&&frame.update(()=>ct(ot,st))})};this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",At),fireSyntheticPointerEvent("down",(at,ot)=>{this.startPress(at,ot)})},tt=addDomEvent(this.node.current,"keydown",et),rt=()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(it,At)=>this.cancelPress(it,At))},nt=addDomEvent(this.node.current,"blur",rt);this.removeAccessibleListeners=pipe(tt,nt)}}startPress(et,tt){this.isPressing=!0;const{onTapStart:rt,whileTap:nt}=this.node.getProps();nt&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),rt&&frame.update(()=>rt(et,tt))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(et,tt){if(!this.checkPressEnd())return;const{onTapCancel:rt}=this.node.getProps();rt&&frame.update(()=>rt(et,tt))}mount(){const et=this.node.getProps(),tt=addPointerEvent(this.node.current,"pointerdown",this.startPointerPress,{passive:!(et.onTapStart||et.onPointerStart)}),rt=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(tt,rt)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=$=>{const et=observerCallbacks.get($.target);et&&et($)},fireAllObserverCallbacks=$=>{$.forEach(fireObserverCallback)};function initIntersectionObserver({root:$,...et}){const tt=$||document;observers.has(tt)||observers.set(tt,{});const rt=observers.get(tt),nt=JSON.stringify(et);return rt[nt]||(rt[nt]=new IntersectionObserver(fireAllObserverCallbacks,{root:$,...et})),rt[nt]}function observeIntersection($,et,tt){const rt=initIntersectionObserver(et);return observerCallbacks.set($,tt),rt.observe($),()=>{observerCallbacks.delete($),rt.unobserve($)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:et={}}=this.node.getProps(),{root:tt,margin:rt,amount:nt="some",once:it}=et,At={root:tt?tt.current:void 0,rootMargin:rt,threshold:typeof nt=="number"?nt:thresholdNames[nt]},at=ot=>{const{isIntersecting:st}=ot;if(this.isInView===st||(this.isInView=st,it&&!st&&this.hasEnteredView))return;st&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",st);const{onViewportEnter:ct,onViewportLeave:ut}=this.node.getProps(),gt=st?ct:ut;gt&>(ot)};return observeIntersection(this.node.current,At,at)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:et,prevProps:tt}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(et,tt))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:$={}},{viewport:et={}}={}){return tt=>$[tt]!==et[tt]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}};function shallowCompare($,et){if(!Array.isArray(et))return!1;const tt=et.length;if(tt!==$.length)return!1;for(let rt=0;rtet[rt]=tt.get()),et}function getVelocity$1($){const et={};return $.values.forEach((tt,rt)=>et[rt]=tt.getVelocity()),et}function resolveVariant($,et,tt){const rt=$.getProps();return resolveVariantFromProps(rt,et,tt!==void 0?tt:rt.custom,getCurrent($),getVelocity$1($))}const optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId);let warning=noop,invariant=noop;const secondsToMilliseconds=$=>$*1e3,millisecondsToSeconds=$=>$/1e3,instantAnimationState={current:!1},isBezierDefinition=$=>Array.isArray($)&&typeof $[0]=="number";function isWaapiSupportedEasing($){return!!(!$||typeof $=="string"&&supportedWaapiEasing[$]||isBezierDefinition($)||Array.isArray($)&&$.every(isWaapiSupportedEasing))}const cubicBezierAsString=([$,et,tt,rt])=>`cubic-bezier(${$}, ${et}, ${tt}, ${rt})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing($){if($)return isBezierDefinition($)?cubicBezierAsString($):Array.isArray($)?$.map(mapEasingToNativeEasing):supportedWaapiEasing[$]}function animateStyle($,et,tt,{delay:rt=0,duration:nt,repeat:it=0,repeatType:At="loop",ease:at,times:ot}={}){const st={[et]:tt};ot&&(st.offset=ot);const ct=mapEasingToNativeEasing(at);return Array.isArray(ct)&&(st.easing=ct),$.animate(st,{delay:rt,duration:nt,easing:Array.isArray(ct)?"linear":ct,fill:"both",iterations:it+1,direction:At==="reverse"?"alternate":"normal"})}function getFinalKeyframe($,{repeat:et,repeatType:tt="loop"}){const rt=et&&tt!=="loop"&&et%2===1?0:$.length-1;return $[rt]}const calcBezier=($,et,tt)=>(((1-3*tt+3*et)*$+(3*tt-6*et))*$+3*et)*$,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide($,et,tt,rt,nt){let it,At,at=0;do At=et+(tt-et)/2,it=calcBezier(At,rt,nt)-$,it>0?tt=At:et=At;while(Math.abs(it)>subdivisionPrecision&&++atbinarySubdivide(it,0,1,$,tt);return it=>it===0||it===1?it:calcBezier(nt(it),et,rt)}const easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",mirrorEasing=$=>et=>et<=.5?$(2*et)/2:(2-$(2*(1-et)))/2,reverseEasing=$=>et=>1-$(1-et),circIn=$=>1-Math.sin(Math.acos($)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=$=>($*=2)<1?.5*backIn($):.5*(2-Math.pow(2,-10*($-1))),easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},easingDefinitionToFunction=$=>{if(Array.isArray($)){invariant($.length===4);const[et,tt,rt,nt]=$;return cubicBezier(et,tt,rt,nt)}else if(typeof $=="string")return easingLookup[$];return $},isColorString=($,et)=>tt=>!!(isString(tt)&&singleColorRegex.test(tt)&&tt.startsWith($)||et&&Object.prototype.hasOwnProperty.call(tt,et)),splitColor=($,et,tt)=>rt=>{if(!isString(rt))return rt;const[nt,it,At,at]=rt.match(floatRegex);return{[$]:parseFloat(nt),[et]:parseFloat(it),[tt]:parseFloat(At),alpha:at!==void 0?parseFloat(at):1}},clampRgbUnit=$=>clamp(0,255,$),rgbUnit={...number$1,transform:$=>Math.round(clampRgbUnit($))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:et,blue:tt,alpha:rt=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(et)+", "+rgbUnit.transform(tt)+", "+sanitize(alpha.transform(rt))+")"};function parseHex($){let et="",tt="",rt="",nt="";return $.length>5?(et=$.substring(1,3),tt=$.substring(3,5),rt=$.substring(5,7),nt=$.substring(7,9)):(et=$.substring(1,2),tt=$.substring(2,3),rt=$.substring(3,4),nt=$.substring(4,5),et+=et,tt+=tt,rt+=rt,nt+=nt),{red:parseInt(et,16),green:parseInt(tt,16),blue:parseInt(rt,16),alpha:nt?parseInt(nt,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:et,lightness:tt,alpha:rt=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(et))+", "+percent.transform(sanitize(tt))+", "+sanitize(alpha.transform(rt))+")"},color={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},mix=($,et,tt)=>-tt*$+tt*et+$;function hueToRgb($,et,tt){return tt<0&&(tt+=1),tt>1&&(tt-=1),tt<1/6?$+(et-$)*6*tt:tt<1/2?et:tt<2/3?$+(et-$)*(2/3-tt)*6:$}function hslaToRgba({hue:$,saturation:et,lightness:tt,alpha:rt}){$/=360,et/=100,tt/=100;let nt=0,it=0,At=0;if(!et)nt=it=At=tt;else{const at=tt<.5?tt*(1+et):tt+et-tt*et,ot=2*tt-at;nt=hueToRgb(ot,at,$+1/3),it=hueToRgb(ot,at,$),At=hueToRgb(ot,at,$-1/3)}return{red:Math.round(nt*255),green:Math.round(it*255),blue:Math.round(At*255),alpha:rt}}const mixLinearColor=($,et,tt)=>{const rt=$*$;return Math.sqrt(Math.max(0,tt*(et*et-rt)+rt))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(et=>et.test($));function asRGBA($){const et=getColorType($);let tt=et.parse($);return et===hsla&&(tt=hslaToRgba(tt)),tt}const mixColor=($,et)=>{const tt=asRGBA($),rt=asRGBA(et),nt={...tt};return it=>(nt.red=mixLinearColor(tt.red,rt.red,it),nt.green=mixLinearColor(tt.green,rt.green,it),nt.blue=mixLinearColor(tt.blue,rt.blue,it),nt.alpha=mix(tt.alpha,rt.alpha,it),rgba.transform(nt))};function test($){var et,tt;return isNaN($)&&isString($)&&(((et=$.match(floatRegex))===null||et===void 0?void 0:et.length)||0)+(((tt=$.match(colorRegex))===null||tt===void 0?void 0:tt.length)||0)>0}const cssVarTokeniser={regex:cssVariableRegex,countKey:"Vars",token:"${v}",parse:noop},colorTokeniser={regex:colorRegex,countKey:"Colors",token:"${c}",parse:color.parse},numberTokeniser={regex:floatRegex,countKey:"Numbers",token:"${n}",parse:number$1.parse};function tokenise($,{regex:et,countKey:tt,token:rt,parse:nt}){const it=$.tokenised.match(et);it&&($["num"+tt]=it.length,$.tokenised=$.tokenised.replace(et,rt),$.values.push(...it.map(nt)))}function analyseComplexValue($){const et=$.toString(),tt={value:et,tokenised:et,values:[],numVars:0,numColors:0,numNumbers:0};return tt.value.includes("var(--")&&tokenise(tt,cssVarTokeniser),tokenise(tt,colorTokeniser),tokenise(tt,numberTokeniser),tt}function parseComplexValue($){return analyseComplexValue($).values}function createTransformer($){const{values:et,numColors:tt,numVars:rt,tokenised:nt}=analyseComplexValue($),it=et.length;return At=>{let at=nt;for(let ot=0;ottypeof $=="number"?0:$;function getAnimatableNone$1($){const et=parseComplexValue($);return createTransformer($)(et.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1},mixImmediate=($,et)=>tt=>`${tt>0?et:$}`;function getMixer($,et){return typeof $=="number"?tt=>mix($,et,tt):color.test($)?mixColor($,et):$.startsWith("var(")?mixImmediate($,et):mixComplex($,et)}const mixArray=($,et)=>{const tt=[...$],rt=tt.length,nt=$.map((it,At)=>getMixer(it,et[At]));return it=>{for(let At=0;At{const tt={...$,...et},rt={};for(const nt in tt)$[nt]!==void 0&&et[nt]!==void 0&&(rt[nt]=getMixer($[nt],et[nt]));return nt=>{for(const it in rt)tt[it]=rt[it](nt);return tt}},mixComplex=($,et)=>{const tt=complex.createTransformer(et),rt=analyseComplexValue($),nt=analyseComplexValue(et);return rt.numVars===nt.numVars&&rt.numColors===nt.numColors&&rt.numNumbers>=nt.numNumbers?pipe(mixArray(rt.values,nt.values),tt):mixImmediate($,et)},progress=($,et,tt)=>{const rt=et-$;return rt===0?1:(tt-$)/rt},mixNumber=($,et)=>tt=>mix($,et,tt);function detectMixerFactory($){return typeof $=="number"?mixNumber:typeof $=="string"?color.test($)?mixColor:mixComplex:Array.isArray($)?mixArray:typeof $=="object"?mixObject:mixNumber}function createMixers($,et,tt){const rt=[],nt=tt||detectMixerFactory($[0]),it=$.length-1;for(let At=0;Atet[0];$[0]>$[it-1]&&($=[...$].reverse(),et=[...et].reverse());const At=createMixers(et,rt,nt),at=At.length,ot=st=>{let ct=0;if(at>1)for(;ct<$.length-2&&!(st<$[ct+1]);ct++);const ut=progress($[ct],$[ct+1],st);return At[ct](ut)};return tt?st=>ot(clamp($[0],$[it-1],st)):ot}function fillOffset($,et){const tt=$[$.length-1];for(let rt=1;rt<=et;rt++){const nt=progress(0,et,rt);$.push(mix(tt,1,nt))}}function defaultOffset($){const et=[0];return fillOffset(et,$.length-1),et}function convertOffsetToTimes($,et){return $.map(tt=>tt*et)}function defaultEasing($,et){return $.map(()=>et||easeInOut).splice(0,$.length-1)}function keyframes({duration:$=300,keyframes:et,times:tt,ease:rt="easeInOut"}){const nt=isEasingArray(rt)?rt.map(easingDefinitionToFunction):easingDefinitionToFunction(rt),it={done:!1,value:et[0]},At=convertOffsetToTimes(tt&&tt.length===et.length?tt:defaultOffset(et),$),at=interpolate(At,et,{ease:Array.isArray(nt)?nt:defaultEasing(et,nt)});return{calculatedDuration:$,next:ot=>(it.value=at(ot),it.done=ot>=$,it)}}function velocityPerSecond($,et){return et?$*(1e3/et):0}const velocitySampleDuration=5;function calcGeneratorVelocity($,et,tt){const rt=Math.max(et-velocitySampleDuration,0);return velocityPerSecond(tt-$(rt),et-rt)}const safeMin=.001,minDuration=.01,maxDuration$1=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:et=.25,velocity:tt=0,mass:rt=1}){let nt,it;warning($<=secondsToMilliseconds(maxDuration$1));let At=1-et;At=clamp(minDamping,maxDamping,At),$=clamp(minDuration,maxDuration$1,millisecondsToSeconds($)),At<1?(nt=st=>{const ct=st*At,ut=ct*$,gt=ct-tt,dt=calcAngularFreq(st,At),ht=Math.exp(-ut);return safeMin-gt/dt*ht},it=st=>{const ut=st*At*$,gt=ut*tt+tt,dt=Math.pow(At,2)*Math.pow(st,2)*$,ht=Math.exp(-ut),Et=calcAngularFreq(Math.pow(st,2),At);return(-nt(st)+safeMin>0?-1:1)*((gt-dt)*ht)/Et}):(nt=st=>{const ct=Math.exp(-st*$),ut=(st-tt)*$+1;return-safeMin+ct*ut},it=st=>{const ct=Math.exp(-st*$),ut=(tt-st)*($*$);return ct*ut});const at=5/$,ot=approximateRoot(nt,it,at);if($=secondsToMilliseconds($),isNaN(ot))return{stiffness:100,damping:10,duration:$};{const st=Math.pow(ot,2)*rt;return{stiffness:st,damping:At*2*Math.sqrt(rt*st),duration:$}}}const rootIterations=12;function approximateRoot($,et,tt){let rt=tt;for(let nt=1;nt$[tt]!==void 0)}function getSpringOptions($){let et={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...$};if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const tt=findSpring($);et={...et,...tt,velocity:0,mass:1},et.isResolvedFromDuration=!0}return et}function spring({keyframes:$,restDelta:et,restSpeed:tt,...rt}){const nt=$[0],it=$[$.length-1],At={done:!1,value:nt},{stiffness:at,damping:ot,mass:st,velocity:ct,duration:ut,isResolvedFromDuration:gt}=getSpringOptions(rt),dt=ct?-millisecondsToSeconds(ct):0,ht=ot/(2*Math.sqrt(at*st)),Et=it-nt,wt=millisecondsToSeconds(Math.sqrt(at/st)),Qt=Math.abs(Et)<5;tt||(tt=Qt?.01:2),et||(et=Qt?.005:.5);let pt;if(ht<1){const mt=calcAngularFreq(wt,ht);pt=$t=>{const Tt=Math.exp(-ht*wt*$t);return it-Tt*((dt+ht*wt*Et)/mt*Math.sin(mt*$t)+Et*Math.cos(mt*$t))}}else if(ht===1)pt=mt=>it-Math.exp(-wt*mt)*(Et+(dt+wt*Et)*mt);else{const mt=wt*Math.sqrt(ht*ht-1);pt=$t=>{const Tt=Math.exp(-ht*wt*$t),Ut=Math.min(mt*$t,300);return it-Tt*((dt+ht*wt*Et)*Math.sinh(Ut)+mt*Et*Math.cosh(Ut))/mt}}return{calculatedDuration:gt&&ut||null,next:mt=>{const $t=pt(mt);if(gt)At.done=mt>=ut;else{let Tt=dt;mt!==0&&(ht<1?Tt=calcGeneratorVelocity(pt,mt,$t):Tt=0);const Ut=Math.abs(Tt)<=tt,Pt=Math.abs(it-$t)<=et;At.done=Ut&&Pt}return At.value=At.done?it:$t,At}}}function inertia({keyframes:$,velocity:et=0,power:tt=.8,timeConstant:rt=325,bounceDamping:nt=10,bounceStiffness:it=500,modifyTarget:At,min:at,max:ot,restDelta:st=.5,restSpeed:ct}){const ut=$[0],gt={done:!1,value:ut},dt=Kt=>at!==void 0&&Ktot,ht=Kt=>at===void 0?ot:ot===void 0||Math.abs(at-Kt)-Et*Math.exp(-Kt/rt),mt=Kt=>Qt+pt(Kt),$t=Kt=>{const zt=pt(Kt),Yt=mt(Kt);gt.done=Math.abs(zt)<=st,gt.value=gt.done?Qt:Yt};let Tt,Ut;const Pt=Kt=>{dt(gt.value)&&(Tt=Kt,Ut=spring({keyframes:[gt.value,ht(gt.value)],velocity:calcGeneratorVelocity(mt,Kt,gt.value),damping:nt,stiffness:it,restDelta:st,restSpeed:ct}))};return Pt(0),{calculatedDuration:null,next:Kt=>{let zt=!1;return!Ut&&Tt===void 0&&(zt=!0,$t(Kt),Pt(Kt)),Tt!==void 0&&Kt>Tt?Ut.next(Kt-Tt):(!zt&&$t(Kt),gt)}}}const frameloopDriver=$=>{const et=({timestamp:tt})=>$(tt);return{start:()=>frame.update(et,!0),stop:()=>cancelFrame(et),now:()=>frameData.isProcessing?frameData.timestamp:performance.now()}},maxGeneratorDuration=2e4;function calcGeneratorDuration($){let et=0;const tt=50;let rt=$.next(et);for(;!rt.done&&et=maxGeneratorDuration?1/0:et}const types={decay:inertia,inertia,tween:keyframes,keyframes,spring};function animateValue({autoplay:$=!0,delay:et=0,driver:tt=frameloopDriver,keyframes:rt,type:nt="keyframes",repeat:it=0,repeatDelay:At=0,repeatType:at="loop",onPlay:ot,onStop:st,onComplete:ct,onUpdate:ut,...gt}){let dt=1,ht=!1,Et,wt;const Qt=()=>{wt=new Promise(kt=>{Et=kt})};Qt();let pt;const mt=types[nt]||keyframes;let $t;mt!==keyframes&&typeof rt[0]!="number"&&($t=interpolate([0,100],rt,{clamp:!1}),rt=[0,100]);const Tt=mt({...gt,keyframes:rt});let Ut;at==="mirror"&&(Ut=mt({...gt,keyframes:[...rt].reverse(),velocity:-(gt.velocity||0)}));let Pt="idle",Kt=null,zt=null,Yt=null;Tt.calculatedDuration===null&&it&&(Tt.calculatedDuration=calcGeneratorDuration(Tt));const{calculatedDuration:Mt}=Tt;let Bt=1/0,vt=1/0;Mt!==null&&(Bt=Mt+At,vt=Bt*(it+1)-At);let Nt=0;const Gt=kt=>{if(zt===null)return;dt>0&&(zt=Math.min(zt,kt)),dt<0&&(zt=Math.min(kt-vt/dt,zt)),Kt!==null?Nt=Kt:Nt=Math.round(kt-zt)*dt;const Ar=Nt-et*(dt>=0?1:-1),cr=dt>=0?Ar<0:Ar>vt;Nt=Math.max(Ar,0),Pt==="finished"&&Kt===null&&(Nt=vt);let Rt=Nt,Qr=Tt;if(it){const kr=Nt/Bt;let jt=Math.floor(kr),Zt=kr%1;!Zt&&kr>=1&&(Zt=1),Zt===1&&jt--,jt=Math.min(jt,it+1);const rr=!!(jt%2);rr&&(at==="reverse"?(Zt=1-Zt,At&&(Zt-=At/Bt)):at==="mirror"&&(Qr=Ut));let sr=clamp(0,1,Zt);Nt>vt&&(sr=at==="reverse"&&rr?1:0),Rt=sr*Bt}const _r=cr?{done:!1,value:rt[0]}:Qr.next(Rt);$t&&(_r.value=$t(_r.value));let{done:qr}=_r;!cr&&Mt!==null&&(qr=dt>=0?Nt>=vt:Nt<=0);const yr=Kt===null&&(Pt==="finished"||Pt==="running"&&qr);return ut&&ut(_r.value),yr&&Xt(),_r},Jt=()=>{pt&&pt.stop(),pt=void 0},nr=()=>{Pt="idle",Jt(),Et(),Qt(),zt=Yt=null},Xt=()=>{Pt="finished",ct&&ct(),Jt(),Et()},Ot=()=>{if(ht)return;pt||(pt=tt(Gt));const kt=pt.now();ot&&ot(),Kt!==null?zt=kt-Kt:(!zt||Pt==="finished")&&(zt=kt),Pt==="finished"&&Qt(),Yt=zt,Kt=null,Pt="running",pt.start()};$&&Ot();const bt={then(kt,Ar){return wt.then(kt,Ar)},get time(){return millisecondsToSeconds(Nt)},set time(kt){kt=secondsToMilliseconds(kt),Nt=kt,Kt!==null||!pt||dt===0?Kt=kt:zt=pt.now()-kt/dt},get duration(){const kt=Tt.calculatedDuration===null?calcGeneratorDuration(Tt):Tt.calculatedDuration;return millisecondsToSeconds(kt)},get speed(){return dt},set speed(kt){kt===dt||!pt||(dt=kt,bt.time=millisecondsToSeconds(Nt))},get state(){return Pt},play:Ot,pause:()=>{Pt="paused",Kt=Nt},stop:()=>{ht=!0,Pt!=="idle"&&(Pt="idle",st&&st(),nr())},cancel:()=>{Yt!==null&&Gt(Yt),nr()},complete:()=>{Pt="finished"},sample:kt=>(zt=0,Gt(kt))};return bt}function memo($){let et;return()=>(et===void 0&&(et=$()),et)}const supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),acceleratedValues=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),sampleDelta=10,maxDuration=2e4,requiresPregeneratedKeyframes=($,et)=>et.type==="spring"||$==="backgroundColor"||!isWaapiSupportedEasing(et.ease);function createAcceleratedAnimation($,et,{onUpdate:tt,onComplete:rt,...nt}){if(!(supportsWaapi()&&acceleratedValues.has(et)&&!nt.repeatDelay&&nt.repeatType!=="mirror"&&nt.damping!==0&&nt.type!=="inertia"))return!1;let At=!1,at,ot;const st=()=>{ot=new Promise(pt=>{at=pt})};st();let{keyframes:ct,duration:ut=300,ease:gt,times:dt}=nt;if(requiresPregeneratedKeyframes(et,nt)){const pt=animateValue({...nt,repeat:0,delay:0});let mt={done:!1,value:ct[0]};const $t=[];let Tt=0;for(;!mt.done&&Ttht.cancel(),wt=()=>{frame.update(Et),at(),st()};return ht.onfinish=()=>{$.set(getFinalKeyframe(ct,nt)),rt&&rt(),wt()},{then(pt,mt){return ot.then(pt,mt)},attachTimeline(pt){return ht.timeline=pt,ht.onfinish=null,noop},get time(){return millisecondsToSeconds(ht.currentTime||0)},set time(pt){ht.currentTime=secondsToMilliseconds(pt)},get speed(){return ht.playbackRate},set speed(pt){ht.playbackRate=pt},get duration(){return millisecondsToSeconds(ut)},play:()=>{At||(ht.play(),cancelFrame(Et))},pause:()=>ht.pause(),stop:()=>{if(At=!0,ht.playState==="idle")return;const{currentTime:pt}=ht;if(pt){const mt=animateValue({...nt,autoplay:!1});$.setWithVelocity(mt.sample(pt-sampleDelta).value,mt.sample(pt).value,sampleDelta)}wt()},complete:()=>ht.finish(),cancel:wt}}function createInstantAnimation({keyframes:$,delay:et,onUpdate:tt,onComplete:rt}){const nt=()=>(tt&&tt($[$.length-1]),rt&&rt(),{time:0,speed:1,duration:0,play:noop,pause:noop,stop:noop,then:it=>(it(),Promise.resolve()),cancel:noop,complete:noop});return et?animateValue({keyframes:[0,1],duration:0,delay:et,onComplete:nt}):nt()}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=($,{keyframes:et})=>et.length>2?keyframesTransition:transformProps.has($)?$.startsWith("scale")?criticallyDampedSpring(et[1]):underDampedSpring:ease,isAnimatable=($,et)=>$==="zIndex"?!1:!!(typeof et=="number"||Array.isArray(et)||typeof et=="string"&&(complex.test(et)||et==="0")&&!et.startsWith("url(")),maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){const[et,tt]=$.slice(0,-1).split("(");if(et==="drop-shadow")return $;const[rt]=tt.match(floatRegex)||[];if(!rt)return $;const nt=tt.replace(rt,"");let it=maxDefaults.has(et)?1:0;return rt!==tt&&(it*=100),et+"("+it+nt+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter={...complex,getAnimatableNone:$=>{const et=$.match(functionRegex);return et?et.map(applyDefaultFilter).join(" "):$}},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=$=>defaultValueTypes[$];function getAnimatableNone($,et){let tt=getDefaultValueType($);return tt!==filter&&(tt=complex),tt.getAnimatableNone?tt.getAnimatableNone(et):void 0}const isZeroValueString=$=>/^0[^.\s]+$/.test($);function isNone($){if(typeof $=="number")return $===0;if($!==null)return $==="none"||$==="0"||isZeroValueString($)}function getKeyframes($,et,tt,rt){const nt=isAnimatable(et,tt);let it;Array.isArray(tt)?it=[...tt]:it=[null,tt];const At=rt.from!==void 0?rt.from:$.get();let at;const ot=[];for(let st=0;stnt=>{const it=getValueTransition(rt,$)||{},At=it.delay||rt.delay||0;let{elapsed:at=0}=rt;at=at-secondsToMilliseconds(At);const ot=getKeyframes(et,$,tt,it),st=ot[0],ct=ot[ot.length-1],ut=isAnimatable($,st),gt=isAnimatable($,ct);let dt={keyframes:ot,velocity:et.getVelocity(),ease:"easeOut",...it,delay:-at,onUpdate:ht=>{et.set(ht),it.onUpdate&&it.onUpdate(ht)},onComplete:()=>{nt(),it.onComplete&&it.onComplete()}};if(isTransitionDefined(it)||(dt={...dt,...getDefaultTransition($,dt)}),dt.duration&&(dt.duration=secondsToMilliseconds(dt.duration)),dt.repeatDelay&&(dt.repeatDelay=secondsToMilliseconds(dt.repeatDelay)),!ut||!gt||instantAnimationState.current||it.type===!1)return createInstantAnimation(dt);if(et.owner&&et.owner.current instanceof HTMLElement&&!et.owner.getProps().onUpdate){const ht=createAcceleratedAnimation(et,$,dt);if(ht)return ht}return animateValue(dt)};function isWillChangeMotionValue($){return!!(isMotionValue($)&&$.add)}const isNumericalString=$=>/^\-?\d*\.?\d+$/.test($);function addUniqueItem($,et){$.indexOf(et)===-1&&$.push(et)}function removeItem($,et){const tt=$.indexOf(et);tt>-1&&$.splice(tt,1)}class SubscriptionManager{constructor(){this.subscriptions=[]}add(et){return addUniqueItem(this.subscriptions,et),()=>removeItem(this.subscriptions,et)}notify(et,tt,rt){const nt=this.subscriptions.length;if(nt)if(nt===1)this.subscriptions[0](et,tt,rt);else for(let it=0;it!isNaN(parseFloat($));class MotionValue{constructor(et,tt={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(rt,nt=!0)=>{this.prev=this.current,this.current=rt;const{delta:it,timestamp:At}=frameData;this.lastUpdated!==At&&(this.timeDelta=it,this.lastUpdated=At,frame.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),nt&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>frame.postRender(this.velocityCheck),this.velocityCheck=({timestamp:rt})=>{rt!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=et,this.canTrackVelocity=isFloat(this.current),this.owner=tt.owner}onChange(et){return this.on("change",et)}on(et,tt){this.events[et]||(this.events[et]=new SubscriptionManager);const rt=this.events[et].add(tt);return et==="change"?()=>{rt(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:rt}clearListeners(){for(const et in this.events)this.events[et].clear()}attach(et,tt){this.passiveEffect=et,this.stopPassiveEffect=tt}set(et,tt=!0){!tt||!this.passiveEffect?this.updateAndNotify(et,tt):this.passiveEffect(et,this.updateAndNotify)}setWithVelocity(et,tt,rt){this.set(tt),this.prev=et,this.timeDelta=rt}jump(et){this.updateAndNotify(et),this.prev=et,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(et){return this.stop(),new Promise(tt=>{this.hasAnimated=!0,this.animation=et(tt),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue($,et){return new MotionValue($,et)}const testValueType=$=>et=>et.test($),auto={test:$=>$==="auto",parse:$=>$},dimensionValueTypes=[number$1,px,percent,degrees,vw,vh,auto],findDimensionValueType=$=>dimensionValueTypes.find(testValueType($)),valueTypes=[...dimensionValueTypes,color,complex],findValueType=$=>valueTypes.find(testValueType($));function setMotionValue($,et,tt){$.hasValue(et)?$.getValue(et).set(tt):$.addValue(et,motionValue(tt))}function setTarget($,et){const tt=resolveVariant($,et);let{transitionEnd:rt={},transition:nt={},...it}=tt?$.makeTargetAnimatable(tt,!1):{};it={...it,...rt};for(const At in it){const at=resolveFinalValueInKeyframes(it[At]);setMotionValue($,At,at)}}function checkTargetForNewValues($,et,tt){var rt,nt;const it=Object.keys(et).filter(at=>!$.hasValue(at)),At=it.length;if(At)for(let at=0;atot.remove(ut))),st.push(Et)}return At&&Promise.all(st).then(()=>{At&&setTarget($,At)}),st}function animateVariant($,et,tt={}){const rt=resolveVariant($,et,tt.custom);let{transition:nt=$.getDefaultTransition()||{}}=rt||{};tt.transitionOverride&&(nt=tt.transitionOverride);const it=rt?()=>Promise.all(animateTarget($,rt,tt)):()=>Promise.resolve(),At=$.variantChildren&&$.variantChildren.size?(ot=0)=>{const{delayChildren:st=0,staggerChildren:ct,staggerDirection:ut}=nt;return animateChildren($,et,st+ot,ct,ut,tt)}:()=>Promise.resolve(),{when:at}=nt;if(at){const[ot,st]=at==="beforeChildren"?[it,At]:[At,it];return ot().then(()=>st())}else return Promise.all([it(),At(tt.delay)])}function animateChildren($,et,tt=0,rt=0,nt=1,it){const At=[],at=($.variantChildren.size-1)*rt,ot=nt===1?(st=0)=>st*rt:(st=0)=>at-st*rt;return Array.from($.variantChildren).sort(sortByTreeOrder).forEach((st,ct)=>{st.notify("AnimationStart",et),At.push(animateVariant(st,et,{...it,delay:tt+ot(ct)}).then(()=>st.notify("AnimationComplete",et)))}),Promise.all(At)}function sortByTreeOrder($,et){return $.sortNodePosition(et)}function animateVisualElement($,et,tt={}){$.notify("AnimationStart",et);let rt;if(Array.isArray(et)){const nt=et.map(it=>animateVariant($,it,tt));rt=Promise.all(nt)}else if(typeof et=="string")rt=animateVariant($,et,tt);else{const nt=typeof et=="function"?resolveVariant($,et,tt.custom):et;rt=Promise.all(animateTarget($,nt,tt))}return rt.then(()=>$.notify("AnimationComplete",et))}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList($){return et=>Promise.all(et.map(({animation:tt,options:rt})=>animateVisualElement($,tt,rt)))}function createAnimationState($){let et=animateList($);const tt=createState();let rt=!0;const nt=(ot,st)=>{const ct=resolveVariant($,st);if(ct){const{transition:ut,transitionEnd:gt,...dt}=ct;ot={...ot,...dt,...gt}}return ot};function it(ot){et=ot($)}function At(ot,st){const ct=$.getProps(),ut=$.getVariantContext(!0)||{},gt=[],dt=new Set;let ht={},Et=1/0;for(let Qt=0;QtEt&&Tt;const Yt=Array.isArray($t)?$t:[$t];let Mt=Yt.reduce(nt,{});Ut===!1&&(Mt={});const{prevResolvedValues:Bt={}}=mt,vt={...Bt,...Mt},Nt=Gt=>{zt=!0,dt.delete(Gt),mt.needsAnimating[Gt]=!0};for(const Gt in vt){const Jt=Mt[Gt],nr=Bt[Gt];ht.hasOwnProperty(Gt)||(Jt!==nr?isKeyframesTarget(Jt)&&isKeyframesTarget(nr)?!shallowCompare(Jt,nr)||Kt?Nt(Gt):mt.protectedKeys[Gt]=!0:Jt!==void 0?Nt(Gt):dt.add(Gt):Jt!==void 0&&dt.has(Gt)?Nt(Gt):mt.protectedKeys[Gt]=!0)}mt.prevProp=$t,mt.prevResolvedValues=Mt,mt.isActive&&(ht={...ht,...Mt}),rt&&$.blockInitialAnimation&&(zt=!1),zt&&!Pt&>.push(...Yt.map(Gt=>({animation:Gt,options:{type:pt,...ot}})))}if(dt.size){const Qt={};dt.forEach(pt=>{const mt=$.getBaseTarget(pt);mt!==void 0&&(Qt[pt]=mt)}),gt.push({animation:Qt})}let wt=!!gt.length;return rt&&ct.initial===!1&&!$.manuallyAnimateOnMount&&(wt=!1),rt=!1,wt?et(gt):Promise.resolve()}function at(ot,st,ct){var ut;if(tt[ot].isActive===st)return Promise.resolve();(ut=$.variantChildren)===null||ut===void 0||ut.forEach(dt=>{var ht;return(ht=dt.animationState)===null||ht===void 0?void 0:ht.setActive(ot,st)}),tt[ot].isActive=st;const gt=At(ct,ot);for(const dt in tt)tt[dt].protectedKeys={};return gt}return{animateChanges:At,setActive:at,setAnimateFunction:it,getState:()=>tt}}function checkVariantsDidChange($,et){return typeof et=="string"?et!==$:Array.isArray(et)?!shallowCompare(et,$):!1}function createTypeState($=!1){return{isActive:$,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class AnimationFeature extends Feature{constructor(et){super(et),et.animationState||(et.animationState=createAnimationState(et))}updateAnimationControlsSubscription(){const{animate:et}=this.node.getProps();this.unmount(),isAnimationControls(et)&&(this.unmount=et.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:et}=this.node.getProps(),{animate:tt}=this.node.prevProps||{};et!==tt&&this.updateAnimationControlsSubscription()}unmount(){}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:et,onExitComplete:tt,custom:rt}=this.node.presenceContext,{isPresent:nt}=this.node.prevPresenceContext||{};if(!this.node.animationState||et===nt)return;const it=this.node.animationState.setActive("exit",!et,{custom:rt??this.node.getProps().custom});tt&&!et&&it.then(()=>tt(this.id))}mount(){const{register:et}=this.node.presenceContext||{};et&&(this.unmount=et(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}},distance=($,et)=>Math.abs($-et);function distance2D($,et){const tt=distance($.x,et.x),rt=distance($.y,et.y);return Math.sqrt(tt**2+rt**2)}class PanSession{constructor(et,tt,{transformPagePoint:rt}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const st=getPanInfo(this.lastMoveEventInfo,this.history),ct=this.startEvent!==null,ut=distance2D(st.offset,{x:0,y:0})>=3;if(!ct&&!ut)return;const{point:gt}=st,{timestamp:dt}=frameData;this.history.push({...gt,timestamp:dt});const{onStart:ht,onMove:Et}=this.handlers;ct||(ht&&ht(this.lastMoveEvent,st),this.startEvent=this.lastMoveEvent),Et&&Et(this.lastMoveEvent,st)},this.handlePointerMove=(st,ct)=>{this.lastMoveEvent=st,this.lastMoveEventInfo=transformPoint(ct,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(st,ct)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:ut,onSessionEnd:gt}=this.handlers,dt=getPanInfo(st.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(ct,this.transformPagePoint),this.history);this.startEvent&&ut&&ut(st,dt),gt&>(st,dt)},!isPrimaryPointer(et))return;this.handlers=tt,this.transformPagePoint=rt;const nt=extractEventInfo(et),it=transformPoint(nt,this.transformPagePoint),{point:At}=it,{timestamp:at}=frameData;this.history=[{...At,timestamp:at}];const{onSessionStart:ot}=tt;ot&&ot(et,getPanInfo(it,this.history)),this.removeListeners=pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}updateHandlers(et){this.handlers=et}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint($,et){return et?{point:et($.point)}:$}function subtractPoint($,et){return{x:$.x-et.x,y:$.y-et.y}}function getPanInfo({point:$},et){return{point:$,delta:subtractPoint($,lastDevicePoint(et)),offset:subtractPoint($,startDevicePoint(et)),velocity:getVelocity(et,.1)}}function startDevicePoint($){return $[0]}function lastDevicePoint($){return $[$.length-1]}function getVelocity($,et){if($.length<2)return{x:0,y:0};let tt=$.length-1,rt=null;const nt=lastDevicePoint($);for(;tt>=0&&(rt=$[tt],!(nt.timestamp-rt.timestamp>secondsToMilliseconds(et)));)tt--;if(!rt)return{x:0,y:0};const it=millisecondsToSeconds(nt.timestamp-rt.timestamp);if(it===0)return{x:0,y:0};const At={x:(nt.x-rt.x)/it,y:(nt.y-rt.y)/it};return At.x===1/0&&(At.x=0),At.y===1/0&&(At.y=0),At}function calcLength($){return $.max-$.min}function isNear($,et=0,tt=.01){return Math.abs($-et)<=tt}function calcAxisDelta($,et,tt,rt=.5){$.origin=rt,$.originPoint=mix(et.min,et.max,$.origin),$.scale=calcLength(tt)/calcLength(et),(isNear($.scale,1,1e-4)||isNaN($.scale))&&($.scale=1),$.translate=mix(tt.min,tt.max,$.origin)-$.originPoint,(isNear($.translate)||isNaN($.translate))&&($.translate=0)}function calcBoxDelta($,et,tt,rt){calcAxisDelta($.x,et.x,tt.x,rt?rt.originX:void 0),calcAxisDelta($.y,et.y,tt.y,rt?rt.originY:void 0)}function calcRelativeAxis($,et,tt){$.min=tt.min+et.min,$.max=$.min+calcLength(et)}function calcRelativeBox($,et,tt){calcRelativeAxis($.x,et.x,tt.x),calcRelativeAxis($.y,et.y,tt.y)}function calcRelativeAxisPosition($,et,tt){$.min=et.min-tt.min,$.max=$.min+calcLength(et)}function calcRelativePosition($,et,tt){calcRelativeAxisPosition($.x,et.x,tt.x),calcRelativeAxisPosition($.y,et.y,tt.y)}function applyConstraints($,{min:et,max:tt},rt){return et!==void 0&&$tt&&($=rt?mix(tt,$,rt.max):Math.min($,tt)),$}function calcRelativeAxisConstraints($,et,tt){return{min:et!==void 0?$.min+et:void 0,max:tt!==void 0?$.max+tt-($.max-$.min):void 0}}function calcRelativeConstraints($,{top:et,left:tt,bottom:rt,right:nt}){return{x:calcRelativeAxisConstraints($.x,tt,nt),y:calcRelativeAxisConstraints($.y,et,rt)}}function calcViewportAxisConstraints($,et){let tt=et.min-$.min,rt=et.max-$.max;return et.max-et.min<$.max-$.min&&([tt,rt]=[rt,tt]),{min:tt,max:rt}}function calcViewportConstraints($,et){return{x:calcViewportAxisConstraints($.x,et.x),y:calcViewportAxisConstraints($.y,et.y)}}function calcOrigin($,et){let tt=.5;const rt=calcLength($),nt=calcLength(et);return nt>rt?tt=progress(et.min,et.max-rt,$.min):rt>nt&&(tt=progress($.min,$.max-nt,et.min)),clamp(0,1,tt)}function rebaseAxisConstraints($,et){const tt={};return et.min!==void 0&&(tt.min=et.min-$.min),et.max!==void 0&&(tt.max=et.max-$.min),tt}const defaultElastic=.35;function resolveDragElastic($=defaultElastic){return $===!1?$=0:$===!0&&($=defaultElastic),{x:resolveAxisElastic($,"left","right"),y:resolveAxisElastic($,"top","bottom")}}function resolveAxisElastic($,et,tt){return{min:resolvePointElastic($,et),max:resolvePointElastic($,tt)}}function resolvePointElastic($,et){return typeof $=="number"?$:$[et]||0}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis($){return[$("x"),$("y")]}function convertBoundingBoxToBox({top:$,left:et,right:tt,bottom:rt}){return{x:{min:et,max:tt},y:{min:$,max:rt}}}function convertBoxToBoundingBox({x:$,y:et}){return{top:et.min,right:$.max,bottom:et.max,left:$.min}}function transformBoxPoints($,et){if(!et)return $;const tt=et({x:$.left,y:$.top}),rt=et({x:$.right,y:$.bottom});return{top:tt.y,left:tt.x,bottom:rt.y,right:rt.x}}function isIdentityScale($){return $===void 0||$===1}function hasScale({scale:$,scaleX:et,scaleY:tt}){return!isIdentityScale($)||!isIdentityScale(et)||!isIdentityScale(tt)}function hasTransform($){return hasScale($)||has2DTranslate($)||$.z||$.rotate||$.rotateX||$.rotateY}function has2DTranslate($){return is2DTranslate($.x)||is2DTranslate($.y)}function is2DTranslate($){return $&&$!=="0%"}function scalePoint($,et,tt){const rt=$-tt,nt=et*rt;return tt+nt}function applyPointDelta($,et,tt,rt,nt){return nt!==void 0&&($=scalePoint($,nt,rt)),scalePoint($,tt,rt)+et}function applyAxisDelta($,et=0,tt=1,rt,nt){$.min=applyPointDelta($.min,et,tt,rt,nt),$.max=applyPointDelta($.max,et,tt,rt,nt)}function applyBoxDelta($,{x:et,y:tt}){applyAxisDelta($.x,et.translate,et.scale,et.originPoint),applyAxisDelta($.y,tt.translate,tt.scale,tt.originPoint)}function applyTreeDeltas($,et,tt,rt=!1){const nt=tt.length;if(!nt)return;et.x=et.y=1;let it,At;for(let at=0;at1.0000000000001||$<.999999999999?$:1}function translateAxis($,et){$.min=$.min+et,$.max=$.max+et}function transformAxis($,et,[tt,rt,nt]){const it=et[nt]!==void 0?et[nt]:.5,At=mix($.min,$.max,it);applyAxisDelta($,et[tt],et[rt],At,et.scale)}const xKeys$1=["x","scaleX","originX"],yKeys$1=["y","scaleY","originY"];function transformBox($,et){transformAxis($.x,et,xKeys$1),transformAxis($.y,et,yKeys$1)}function measureViewportBox($,et){return convertBoundingBoxToBox(transformBoxPoints($.getBoundingClientRect(),et))}function measurePageBox($,et,tt){const rt=measureViewportBox($,tt),{scroll:nt}=et;return nt&&(translateAxis(rt.x,nt.offset.x),translateAxis(rt.y,nt.offset.y)),rt}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(et){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=et}start(et,{snapToCursor:tt=!1}={}){const{presenceContext:rt}=this.visualElement;if(rt&&rt.isPresent===!1)return;const nt=ot=>{this.stopAnimation(),tt&&this.snapToCursor(extractEventInfo(ot,"page").point)},it=(ot,st)=>{const{drag:ct,dragPropagation:ut,onDragStart:gt}=this.getProps();if(ct&&!ut&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(ct),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(ht=>{let Et=this.getAxisMotionValue(ht).get()||0;if(percent.test(Et)){const{projection:wt}=this.visualElement;if(wt&&wt.layout){const Qt=wt.layout.layoutBox[ht];Qt&&(Et=calcLength(Qt)*(parseFloat(Et)/100))}}this.originPoint[ht]=Et}),gt&&frame.update(()=>gt(ot,st),!1,!0);const{animationState:dt}=this.visualElement;dt&&dt.setActive("whileDrag",!0)},At=(ot,st)=>{const{dragPropagation:ct,dragDirectionLock:ut,onDirectionLock:gt,onDrag:dt}=this.getProps();if(!ct&&!this.openGlobalLock)return;const{offset:ht}=st;if(ut&&this.currentDirection===null){this.currentDirection=getCurrentDirection(ht),this.currentDirection!==null&>&>(this.currentDirection);return}this.updateAxis("x",st.point,ht),this.updateAxis("y",st.point,ht),this.visualElement.render(),dt&&dt(ot,st)},at=(ot,st)=>this.stop(ot,st);this.panSession=new PanSession(et,{onSessionStart:nt,onStart:it,onMove:At,onSessionEnd:at},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(et,tt){const rt=this.isDragging;if(this.cancel(),!rt)return;const{velocity:nt}=tt;this.startAnimation(nt);const{onDragEnd:it}=this.getProps();it&&frame.update(()=>it(et,tt))}cancel(){this.isDragging=!1;const{projection:et,animationState:tt}=this.visualElement;et&&(et.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:rt}=this.getProps();!rt&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),tt&&tt.setActive("whileDrag",!1)}updateAxis(et,tt,rt){const{drag:nt}=this.getProps();if(!rt||!shouldDrag(et,nt,this.currentDirection))return;const it=this.getAxisMotionValue(et);let At=this.originPoint[et]+rt[et];this.constraints&&this.constraints[et]&&(At=applyConstraints(At,this.constraints[et],this.elastic[et])),it.set(At)}resolveConstraints(){const{dragConstraints:et,dragElastic:tt}=this.getProps(),{layout:rt}=this.visualElement.projection||{},nt=this.constraints;et&&isRefObject(et)?this.constraints||(this.constraints=this.resolveRefConstraints()):et&&rt?this.constraints=calcRelativeConstraints(rt.layoutBox,et):this.constraints=!1,this.elastic=resolveDragElastic(tt),nt!==this.constraints&&rt&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(it=>{this.getAxisMotionValue(it)&&(this.constraints[it]=rebaseAxisConstraints(rt.layoutBox[it],this.constraints[it]))})}resolveRefConstraints(){const{dragConstraints:et,onMeasureDragConstraints:tt}=this.getProps();if(!et||!isRefObject(et))return!1;const rt=et.current,{projection:nt}=this.visualElement;if(!nt||!nt.layout)return!1;const it=measurePageBox(rt,nt.root,this.visualElement.getTransformPagePoint());let At=calcViewportConstraints(nt.layout.layoutBox,it);if(tt){const at=tt(convertBoxToBoundingBox(At));this.hasMutatedConstraints=!!at,at&&(At=convertBoundingBoxToBox(at))}return At}startAnimation(et){const{drag:tt,dragMomentum:rt,dragElastic:nt,dragTransition:it,dragSnapToOrigin:At,onDragTransitionEnd:at}=this.getProps(),ot=this.constraints||{},st=eachAxis(ct=>{if(!shouldDrag(ct,tt,this.currentDirection))return;let ut=ot&&ot[ct]||{};At&&(ut={min:0,max:0});const gt=nt?200:1e6,dt=nt?40:1e7,ht={type:"inertia",velocity:rt?et[ct]:0,bounceStiffness:gt,bounceDamping:dt,timeConstant:750,restDelta:1,restSpeed:10,...it,...ut};return this.startAxisValueAnimation(ct,ht)});return Promise.all(st).then(at)}startAxisValueAnimation(et,tt){const rt=this.getAxisMotionValue(et);return rt.start(animateMotionValue(et,rt,0,tt))}stopAnimation(){eachAxis(et=>this.getAxisMotionValue(et).stop())}getAxisMotionValue(et){const tt="_drag"+et.toUpperCase(),rt=this.visualElement.getProps(),nt=rt[tt];return nt||this.visualElement.getValue(et,(rt.initial?rt.initial[et]:void 0)||0)}snapToCursor(et){eachAxis(tt=>{const{drag:rt}=this.getProps();if(!shouldDrag(tt,rt,this.currentDirection))return;const{projection:nt}=this.visualElement,it=this.getAxisMotionValue(tt);if(nt&&nt.layout){const{min:At,max:at}=nt.layout.layoutBox[tt];it.set(et[tt]-mix(At,at,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:et,dragConstraints:tt}=this.getProps(),{projection:rt}=this.visualElement;if(!isRefObject(tt)||!rt||!this.constraints)return;this.stopAnimation();const nt={x:0,y:0};eachAxis(At=>{const at=this.getAxisMotionValue(At);if(at){const ot=at.get();nt[At]=calcOrigin({min:ot,max:ot},this.constraints[At])}});const{transformTemplate:it}=this.visualElement.getProps();this.visualElement.current.style.transform=it?it({},""):"none",rt.root&&rt.root.updateScroll(),rt.updateLayout(),this.resolveConstraints(),eachAxis(At=>{if(!shouldDrag(At,et,null))return;const at=this.getAxisMotionValue(At),{min:ot,max:st}=this.constraints[At];at.set(mix(ot,st,nt[At]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const et=this.visualElement.current,tt=addPointerEvent(et,"pointerdown",ot=>{const{drag:st,dragListener:ct=!0}=this.getProps();st&&ct&&this.start(ot)}),rt=()=>{const{dragConstraints:ot}=this.getProps();isRefObject(ot)&&(this.constraints=this.resolveRefConstraints())},{projection:nt}=this.visualElement,it=nt.addEventListener("measure",rt);nt&&!nt.layout&&(nt.root&&nt.root.updateScroll(),nt.updateLayout()),rt();const At=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),at=nt.addEventListener("didUpdate",({delta:ot,hasLayoutChanged:st})=>{this.isDragging&&st&&(eachAxis(ct=>{const ut=this.getAxisMotionValue(ct);ut&&(this.originPoint[ct]+=ot[ct].translate,ut.set(ut.get()+ot[ct].translate))}),this.visualElement.render())});return()=>{At(),tt(),it(),at&&at()}}getProps(){const et=this.visualElement.getProps(),{drag:tt=!1,dragDirectionLock:rt=!1,dragPropagation:nt=!1,dragConstraints:it=!1,dragElastic:At=defaultElastic,dragMomentum:at=!0}=et;return{...et,drag:tt,dragDirectionLock:rt,dragPropagation:nt,dragConstraints:it,dragElastic:At,dragMomentum:at}}}function shouldDrag($,et,tt){return(et===!0||et===$)&&(tt===null||tt===$)}function getCurrentDirection($,et=10){let tt=null;return Math.abs($.y)>et?tt="y":Math.abs($.x)>et&&(tt="x"),tt}class DragGesture extends Feature{constructor(et){super(et),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(et)}mount(){const{dragControls:et}=this.node.getProps();et&&(this.removeGroupControls=et.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=$=>(et,tt)=>{$&&frame.update(()=>$(et,tt))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(et){this.session=new PanSession(et,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:et,onPanStart:tt,onPan:rt,onPanEnd:nt}=this.node.getProps();return{onSessionStart:asyncHandler(et),onStart:asyncHandler(tt),onMove:rt,onEnd:(it,At)=>{delete this.session,nt&&frame.update(()=>nt(it,At))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",et=>this.onPointerDown(et))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function usePresence(){const $=reactExports.useContext(PresenceContext);if($===null)return[!0,null];const{isPresent:et,onExitComplete:tt,register:rt}=$,nt=reactExports.useId();return reactExports.useEffect(()=>rt(nt),[]),!et&&tt?[!1,()=>tt&&tt(nt)]:[!0]}function useIsPresent(){return isPresent(reactExports.useContext(PresenceContext))}function isPresent($){return $===null?!0:$.isPresent}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent($,et){return et.max===et.min?0:$/(et.max-et.min)*100}const correctBorderRadius={correct:($,et)=>{if(!et.target)return $;if(typeof $=="string")if(px.test($))$=parseFloat($);else return $;const tt=pixelsToPercent($,et.target.x),rt=pixelsToPercent($,et.target.y);return`${tt}% ${rt}%`}},correctBoxShadow={correct:($,{treeScale:et,projectionDelta:tt})=>{const rt=$,nt=complex.parse($);if(nt.length>5)return rt;const it=complex.createTransformer($),At=typeof nt[0]!="number"?1:0,at=tt.x.scale*et.x,ot=tt.y.scale*et.y;nt[0+At]/=at,nt[1+At]/=ot;const st=mix(at,ot,.5);return typeof nt[2+At]=="number"&&(nt[2+At]/=st),typeof nt[3+At]=="number"&&(nt[3+At]/=st),it(nt)}};class MeasureLayoutWithContext extends React.Component{componentDidMount(){const{visualElement:et,layoutGroup:tt,switchLayoutGroup:rt,layoutId:nt}=this.props,{projection:it}=et;addScaleCorrector(defaultScaleCorrectors),it&&(tt.group&&tt.group.add(it),rt&&rt.register&&nt&&rt.register(it),it.root.didUpdate(),it.addEventListener("animationComplete",()=>{this.safeToRemove()}),it.setOptions({...it.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(et){const{layoutDependency:tt,visualElement:rt,drag:nt,isPresent:it}=this.props,At=rt.projection;return At&&(At.isPresent=it,nt||et.layoutDependency!==tt||tt===void 0?At.willUpdate():this.safeToRemove(),et.isPresent!==it&&(it?At.promote():At.relegate()||frame.postRender(()=>{const at=At.getStack();(!at||!at.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:et}=this.props.visualElement;et&&(et.root.didUpdate(),queueMicrotask(()=>{!et.currentAnimation&&et.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:et,layoutGroup:tt,switchLayoutGroup:rt}=this.props,{projection:nt}=et;nt&&(nt.scheduleCheckAfterUnmount(),tt&&tt.group&&tt.group.remove(nt),rt&&rt.deregister&&rt.deregister(nt))}safeToRemove(){const{safeToRemove:et}=this.props;et&&et()}render(){return null}}function MeasureLayout($){const[et,tt]=usePresence(),rt=reactExports.useContext(LayoutGroupContext);return React.createElement(MeasureLayoutWithContext,{...$,layoutGroup:rt,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:et,safeToRemove:tt})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow},borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=$=>typeof $=="string"?parseFloat($):$,isPx=$=>typeof $=="number"||px.test($);function mixValues($,et,tt,rt,nt,it){nt?($.opacity=mix(0,tt.opacity!==void 0?tt.opacity:1,easeCrossfadeIn(rt)),$.opacityExit=mix(et.opacity!==void 0?et.opacity:1,0,easeCrossfadeOut(rt))):it&&($.opacity=mix(et.opacity!==void 0?et.opacity:1,tt.opacity!==void 0?tt.opacity:1,rt));for(let At=0;Atrt<$?0:rt>et?1:tt(progress($,et,rt))}function copyAxisInto($,et){$.min=et.min,$.max=et.max}function copyBoxInto($,et){copyAxisInto($.x,et.x),copyAxisInto($.y,et.y)}function removePointDelta($,et,tt,rt,nt){return $-=et,$=scalePoint($,1/tt,rt),nt!==void 0&&($=scalePoint($,1/nt,rt)),$}function removeAxisDelta($,et=0,tt=1,rt=.5,nt,it=$,At=$){if(percent.test(et)&&(et=parseFloat(et),et=mix(At.min,At.max,et/100)-At.min),typeof et!="number")return;let at=mix(it.min,it.max,rt);$===it&&(at-=et),$.min=removePointDelta($.min,et,tt,at,nt),$.max=removePointDelta($.max,et,tt,at,nt)}function removeAxisTransforms($,et,[tt,rt,nt],it,At){removeAxisDelta($,et[tt],et[rt],et[nt],et.scale,it,At)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms($,et,tt,rt){removeAxisTransforms($.x,et,xKeys,tt?tt.x:void 0,rt?rt.x:void 0),removeAxisTransforms($.y,et,yKeys,tt?tt.y:void 0,rt?rt.y:void 0)}function isAxisDeltaZero($){return $.translate===0&&$.scale===1}function isDeltaZero($){return isAxisDeltaZero($.x)&&isAxisDeltaZero($.y)}function boxEquals($,et){return $.x.min===et.x.min&&$.x.max===et.x.max&&$.y.min===et.y.min&&$.y.max===et.y.max}function boxEqualsRounded($,et){return Math.round($.x.min)===Math.round(et.x.min)&&Math.round($.x.max)===Math.round(et.x.max)&&Math.round($.y.min)===Math.round(et.y.min)&&Math.round($.y.max)===Math.round(et.y.max)}function aspectRatio($){return calcLength($.x)/calcLength($.y)}class NodeStack{constructor(){this.members=[]}add(et){addUniqueItem(this.members,et),et.scheduleRender()}remove(et){if(removeItem(this.members,et),et===this.prevLead&&(this.prevLead=void 0),et===this.lead){const tt=this.members[this.members.length-1];tt&&this.promote(tt)}}relegate(et){const tt=this.members.findIndex(nt=>et===nt);if(tt===0)return!1;let rt;for(let nt=tt;nt>=0;nt--){const it=this.members[nt];if(it.isPresent!==!1){rt=it;break}}return rt?(this.promote(rt),!0):!1}promote(et,tt){const rt=this.lead;if(et!==rt&&(this.prevLead=rt,this.lead=et,et.show(),rt)){rt.instance&&rt.scheduleRender(),et.scheduleRender(),et.resumeFrom=rt,tt&&(et.resumeFrom.preserveOpacity=!0),rt.snapshot&&(et.snapshot=rt.snapshot,et.snapshot.latestValues=rt.animationValues||rt.latestValues),et.root&&et.root.isUpdating&&(et.isLayoutDirty=!0);const{crossfade:nt}=et.options;nt===!1&&rt.hide()}}exitAnimationComplete(){this.members.forEach(et=>{const{options:tt,resumingFrom:rt}=et;tt.onExitComplete&&tt.onExitComplete(),rt&&rt.options.onExitComplete&&rt.options.onExitComplete()})}scheduleRender(){this.members.forEach(et=>{et.instance&&et.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform($,et,tt){let rt="";const nt=$.x.translate/et.x,it=$.y.translate/et.y;if((nt||it)&&(rt=`translate3d(${nt}px, ${it}px, 0) `),(et.x!==1||et.y!==1)&&(rt+=`scale(${1/et.x}, ${1/et.y}) `),tt){const{rotate:ot,rotateX:st,rotateY:ct}=tt;ot&&(rt+=`rotate(${ot}deg) `),st&&(rt+=`rotateX(${st}deg) `),ct&&(rt+=`rotateY(${ct}deg) `)}const At=$.x.scale*et.x,at=$.y.scale*et.y;return(At!==1||at!==1)&&(rt+=`scale(${At}, ${at})`),rt||"none"}const compareByDepth=($,et)=>$.depth-et.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(et){addUniqueItem(this.children,et),this.isDirty=!0}remove(et){removeItem(this.children,et),this.isDirty=!0}forEach(et){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(et)}}function delay($,et){const tt=performance.now(),rt=({timestamp:nt})=>{const it=nt-tt;it>=et&&(cancelFrame(rt),$(it-et))};return frame.read(rt,!0),()=>cancelFrame(rt)}function record($){window.MotionDebug&&window.MotionDebug.record($)}function isSVGElement($){return $ instanceof SVGElement&&$.tagName!=="svg"}function animateSingleValue($,et,tt){const rt=isMotionValue($)?$:motionValue($);return rt.start(animateMotionValue("",rt,et,tt)),rt.animation}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;const projectionFrameData={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:$,defaultParent:et,measureScroll:tt,checkIsScrollRoot:rt,resetTransform:nt}){return class{constructor(At={},at=et==null?void 0:et()){this.id=id++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{projectionFrameData.totalNodes=projectionFrameData.resolvedTargetDeltas=projectionFrameData.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),record(projectionFrameData)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=At,this.root=at?at.root||at:this,this.path=at?[...at.path,at]:[],this.parent=at,this.depth=at?at.depth+1:0;for(let ot=0;otthis.root.updateBlockedByResize=!1;$(At,()=>{this.root.updateBlockedByResize=!0,ut&&ut(),ut=delay(gt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}ot&&this.root.registerSharedNode(ot,this),this.options.animate!==!1&&ct&&(ot||st)&&this.addEventListener("didUpdate",({delta:ut,hasLayoutChanged:gt,hasRelativeTargetChanged:dt,layout:ht})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const Et=this.options.transition||ct.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:wt,onLayoutAnimationComplete:Qt}=ct.getProps(),pt=!this.targetLayout||!boxEqualsRounded(this.targetLayout,ht)||dt,mt=!gt&&dt;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||mt||gt&&(pt||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(ut,mt);const $t={...getValueTransition(Et,"layout"),onPlay:wt,onComplete:Qt};(ct.shouldReduceMotion||this.options.layoutRoot)&&($t.delay=0,$t.type=!1),this.startAnimation($t)}else gt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=ht})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const At=this.getStack();At&&At.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetRotation),this.animationId++)}getTransformTemplate(){const{visualElement:At}=this.options;return At&&At.getProps().transformTemplate}willUpdate(At=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let ct=0;ctthis.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){frame.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let ot=0;ot{const Tt=$t/1e3;mixAxisDelta(ut.x,At.x,Tt),mixAxisDelta(ut.y,At.y,Tt),this.setTargetDelta(ut),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(gt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,gt,Tt),mt&&boxEquals(this.relativeTarget,mt)&&(this.isProjectionDirty=!1),mt||(mt=createBox()),copyBoxInto(mt,this.relativeTarget)),Et&&(this.animationValues=ct,mixValues(ct,st,this.latestValues,Tt,pt,Qt)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Tt},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(At){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.currentAnimation=animateSingleValue(0,animationTarget,{...At,onUpdate:at=>{this.mixTargetDelta(at),At.onUpdate&&At.onUpdate(at)},onComplete:()=>{At.onComplete&&At.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const At=this.getStack();At&&At.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const At=this.getLead();let{targetWithTransforms:at,target:ot,layout:st,latestValues:ct}=At;if(!(!at||!ot||!st)){if(this!==At&&this.layout&&st&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,st.layoutBox)){ot=this.target||createBox();const ut=calcLength(this.layout.layoutBox.x);ot.x.min=At.target.x.min,ot.x.max=ot.x.min+ut;const gt=calcLength(this.layout.layoutBox.y);ot.y.min=At.target.y.min,ot.y.max=ot.y.min+gt}copyBoxInto(at,ot),transformBox(at,ct),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,at,ct)}}registerSharedNode(At,at){this.sharedNodes.has(At)||this.sharedNodes.set(At,new NodeStack),this.sharedNodes.get(At).add(at);const st=at.options.initialPromotionConfig;at.promote({transition:st?st.transition:void 0,preserveFollowOpacity:st&&st.shouldPreserveFollowOpacity?st.shouldPreserveFollowOpacity(at):void 0})}isLead(){const At=this.getStack();return At?At.lead===this:!0}getLead(){var At;const{layoutId:at}=this.options;return at?((At=this.getStack())===null||At===void 0?void 0:At.lead)||this:this}getPrevLead(){var At;const{layoutId:at}=this.options;return at?(At=this.getStack())===null||At===void 0?void 0:At.prevLead:void 0}getStack(){const{layoutId:At}=this.options;if(At)return this.root.sharedNodes.get(At)}promote({needsReset:At,transition:at,preserveFollowOpacity:ot}={}){const st=this.getStack();st&&st.promote(this,ot),At&&(this.projectionDelta=void 0,this.needsReset=!0),at&&this.setOptions({transition:at})}relegate(){const At=this.getStack();return At?At.relegate(this):!1}resetRotation(){const{visualElement:At}=this.options;if(!At)return;let at=!1;const{latestValues:ot}=At;if((ot.rotate||ot.rotateX||ot.rotateY||ot.rotateZ)&&(at=!0),!at)return;const st={};for(let ct=0;ct{var at;return(at=At.currentAnimation)===null||at===void 0?void 0:at.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout($){$.updateLayout()}function notifyLayoutUpdate($){var et;const tt=((et=$.resumeFrom)===null||et===void 0?void 0:et.snapshot)||$.snapshot;if($.isLead()&&$.layout&&tt&&$.hasListeners("didUpdate")){const{layoutBox:rt,measuredBox:nt}=$.layout,{animationType:it}=$.options,At=tt.source!==$.layout.source;it==="size"?eachAxis(ut=>{const gt=At?tt.measuredBox[ut]:tt.layoutBox[ut],dt=calcLength(gt);gt.min=rt[ut].min,gt.max=gt.min+dt}):shouldAnimatePositionOnly(it,tt.layoutBox,rt)&&eachAxis(ut=>{const gt=At?tt.measuredBox[ut]:tt.layoutBox[ut],dt=calcLength(rt[ut]);gt.max=gt.min+dt,$.relativeTarget&&!$.currentAnimation&&($.isProjectionDirty=!0,$.relativeTarget[ut].max=$.relativeTarget[ut].min+dt)});const at=createDelta();calcBoxDelta(at,rt,tt.layoutBox);const ot=createDelta();At?calcBoxDelta(ot,$.applyTransform(nt,!0),tt.measuredBox):calcBoxDelta(ot,rt,tt.layoutBox);const st=!isDeltaZero(at);let ct=!1;if(!$.resumeFrom){const ut=$.getClosestProjectingParent();if(ut&&!ut.resumeFrom){const{snapshot:gt,layout:dt}=ut;if(gt&&dt){const ht=createBox();calcRelativePosition(ht,tt.layoutBox,gt.layoutBox);const Et=createBox();calcRelativePosition(Et,rt,dt.layoutBox),boxEqualsRounded(ht,Et)||(ct=!0),ut.options.layoutRoot&&($.relativeTarget=Et,$.relativeTargetOrigin=ht,$.relativeParent=ut)}}}$.notifyListeners("didUpdate",{layout:rt,snapshot:tt,delta:ot,layoutDelta:at,hasLayoutChanged:st,hasRelativeTargetChanged:ct})}else if($.isLead()){const{onExitComplete:rt}=$.options;rt&&rt()}$.options.transition=void 0}function propagateDirtyNodes($){projectionFrameData.totalNodes++,$.parent&&($.isProjecting()||($.isProjectionDirty=$.parent.isProjectionDirty),$.isSharedProjectionDirty||($.isSharedProjectionDirty=!!($.isProjectionDirty||$.parent.isProjectionDirty||$.parent.isSharedProjectionDirty)),$.isTransformDirty||($.isTransformDirty=$.parent.isTransformDirty))}function cleanDirtyNodes($){$.isProjectionDirty=$.isSharedProjectionDirty=$.isTransformDirty=!1}function clearSnapshot($){$.clearSnapshot()}function clearMeasurements($){$.clearMeasurements()}function clearIsLayoutDirty($){$.isLayoutDirty=!1}function resetTransformStyle($){const{visualElement:et}=$.options;et&&et.getProps().onBeforeLayoutMeasure&&et.notify("BeforeLayoutMeasure"),$.resetTransform()}function finishAnimation($){$.finishAnimation(),$.targetDelta=$.relativeTarget=$.target=void 0,$.isProjectionDirty=!0}function resolveTargetDelta($){$.resolveTargetDelta()}function calcProjection($){$.calcProjection()}function resetRotation($){$.resetRotation()}function removeLeadSnapshots($){$.removeLeadSnapshot()}function mixAxisDelta($,et,tt){$.translate=mix(et.translate,0,tt),$.scale=mix(et.scale,1,tt),$.origin=et.origin,$.originPoint=et.originPoint}function mixAxis($,et,tt,rt){$.min=mix(et.min,tt.min,rt),$.max=mix(et.max,tt.max,rt)}function mixBox($,et,tt,rt){mixAxis($.x,et.x,tt.x,rt),mixAxis($.y,et.y,tt.y,rt)}function hasOpacityCrossfade($){return $.animationValues&&$.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=$=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes($),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis($){$.min=roundPoint($.min),$.max=roundPoint($.max)}function roundBox($){roundAxis($.x),roundAxis($.y)}function shouldAnimatePositionOnly($,et,tt){return $==="position"||$==="preserve-aspect"&&!isNear(aspectRatio(et),aspectRatio(tt),.2)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:($,et)=>addDomEvent($,"resize",et),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:$=>({x:$.scrollLeft,y:$.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const $=new DocumentProjectionNode({});$.mount(window),$.setOptions({layoutScroll:!0}),rootProjectionNode.current=$}return rootProjectionNode.current},resetTransform:($,et)=>{$.style.transform=et!==void 0?et:"none"},checkIsScrollRoot:$=>window.getComputedStyle($).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}},splitCSSVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function parseCSSVariable($){const et=splitCSSVariableRegex.exec($);if(!et)return[,];const[,tt,rt]=et;return[tt,rt]}function getVariableValue($,et,tt=1){const[rt,nt]=parseCSSVariable($);if(!rt)return;const it=window.getComputedStyle(et).getPropertyValue(rt);if(it){const At=it.trim();return isNumericalString(At)?parseFloat(At):At}else return isCSSVariableToken(nt)?getVariableValue(nt,et,tt+1):nt}function resolveCSSVariables($,{...et},tt){const rt=$.current;if(!(rt instanceof Element))return{target:et,transitionEnd:tt};tt&&(tt={...tt}),$.values.forEach(nt=>{const it=nt.get();if(!isCSSVariableToken(it))return;const At=getVariableValue(it,rt);At&&nt.set(At)});for(const nt in et){const it=et[nt];if(!isCSSVariableToken(it))continue;const At=getVariableValue(it,rt);At&&(et[nt]=At,tt||(tt={}),tt[nt]===void 0&&(tt[nt]=it))}return{target:et,transitionEnd:tt}}const positionalKeys=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=$=>positionalKeys.has($),hasPositionalKey=$=>Object.keys($).some(isPositionalKey),isNumOrPxType=$=>$===number$1||$===px,getPosFromMatrix=($,et)=>parseFloat($.split(", ")[et]),getTranslateFromMatrix=($,et)=>(tt,{transform:rt})=>{if(rt==="none"||!rt)return 0;const nt=rt.match(/^matrix3d\((.+)\)$/);if(nt)return getPosFromMatrix(nt[1],et);{const it=rt.match(/^matrix\((.+)\)$/);return it?getPosFromMatrix(it[1],$):0}},transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter($=>!transformKeys.has($));function removeNonTranslationalTransform($){const et=[];return nonTranslationalTransformKeys.forEach(tt=>{const rt=$.getValue(tt);rt!==void 0&&(et.push([tt,rt.get()]),rt.set(tt.startsWith("scale")?1:0))}),et.length&&$.render(),et}const positionalValues={width:({x:$},{paddingLeft:et="0",paddingRight:tt="0"})=>$.max-$.min-parseFloat(et)-parseFloat(tt),height:({y:$},{paddingTop:et="0",paddingBottom:tt="0"})=>$.max-$.min-parseFloat(et)-parseFloat(tt),top:($,{top:et})=>parseFloat(et),left:($,{left:et})=>parseFloat(et),bottom:({y:$},{top:et})=>parseFloat(et)+($.max-$.min),right:({x:$},{left:et})=>parseFloat(et)+($.max-$.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const convertChangedValueTypes=($,et,tt)=>{const rt=et.measureViewportBox(),nt=et.current,it=getComputedStyle(nt),{display:At}=it,at={};At==="none"&&et.setStaticValue("display",$.display||"block"),tt.forEach(st=>{at[st]=positionalValues[st](rt,it)}),et.render();const ot=et.measureViewportBox();return tt.forEach(st=>{const ct=et.getValue(st);ct&&ct.jump(at[st]),$[st]=positionalValues[st](ot,it)}),$},checkAndConvertChangedValueTypes=($,et,tt={},rt={})=>{et={...et},rt={...rt};const nt=Object.keys(et).filter(isPositionalKey);let it=[],At=!1;const at=[];if(nt.forEach(ot=>{const st=$.getValue(ot);if(!$.hasValue(ot))return;let ct=tt[ot],ut=findDimensionValueType(ct);const gt=et[ot];let dt;if(isKeyframesTarget(gt)){const ht=gt.length,Et=gt[0]===null?1:0;ct=gt[Et],ut=findDimensionValueType(ct);for(let wt=Et;wt=0?window.pageYOffset:null,st=convertChangedValueTypes(et,$,at);return it.length&&it.forEach(([ct,ut])=>{$.getValue(ct).set(ut)}),$.render(),isBrowser&&ot!==null&&window.scrollTo({top:ot}),{target:st,transitionEnd:rt}}else return{target:et,transitionEnd:rt}};function unitConversion($,et,tt,rt){return hasPositionalKey(et)?checkAndConvertChangedValueTypes($,et,tt,rt):{target:et,transitionEnd:rt}}const parseDomVariant=($,et,tt,rt)=>{const nt=resolveCSSVariables($,et,rt);return et=nt.target,rt=nt.transitionEnd,unitConversion($,et,tt,rt)},prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const $=window.matchMedia("(prefers-reduced-motion)"),et=()=>prefersReducedMotion.current=$.matches;$.addListener(et),et()}else prefersReducedMotion.current=!1}function updateMotionValuesFromProps($,et,tt){const{willChange:rt}=et;for(const nt in et){const it=et[nt],At=tt[nt];if(isMotionValue(it))$.addValue(nt,it),isWillChangeMotionValue(rt)&&rt.add(nt);else if(isMotionValue(At))$.addValue(nt,motionValue(it,{owner:$})),isWillChangeMotionValue(rt)&&rt.remove(nt);else if(At!==it)if($.hasValue(nt)){const at=$.getValue(nt);!at.hasAnimated&&at.set(it)}else{const at=$.getStaticValue(nt);$.addValue(nt,motionValue(at!==void 0?at:it,{owner:$}))}}for(const nt in tt)et[nt]===void 0&&$.removeValue(nt);return et}const visualElementStore=new WeakMap,featureNames=Object.keys(featureDefinitions),numFeatures=featureNames.length,propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],numVariantProps=variantProps.length;class VisualElement{constructor({parent:et,props:tt,presenceContext:rt,reducedMotionConfig:nt,visualState:it},At={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>frame.render(this.render,!1,!0);const{latestValues:at,renderState:ot}=it;this.latestValues=at,this.baseTarget={...at},this.initialValues=tt.initial?{...at}:{},this.renderState=ot,this.parent=et,this.props=tt,this.presenceContext=rt,this.depth=et?et.depth+1:0,this.reducedMotionConfig=nt,this.options=At,this.isControllingVariants=isControllingVariants(tt),this.isVariantNode=isVariantNode(tt),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(et&&et.current);const{willChange:st,...ct}=this.scrapeMotionValuesFromProps(tt,{});for(const ut in ct){const gt=ct[ut];at[ut]!==void 0&&isMotionValue(gt)&&(gt.set(at[ut],!1),isWillChangeMotionValue(st)&&st.add(ut))}}scrapeMotionValuesFromProps(et,tt){return{}}mount(et){this.current=et,visualElementStore.set(et,this),this.projection&&!this.projection.instance&&this.projection.mount(et),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((tt,rt)=>this.bindToMotionValue(rt,tt)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){visualElementStore.delete(this.current),this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(et=>et()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const et in this.events)this.events[et].clear();for(const et in this.features)this.features[et].unmount();this.current=null}bindToMotionValue(et,tt){const rt=transformProps.has(et),nt=tt.on("change",At=>{this.latestValues[et]=At,this.props.onUpdate&&frame.update(this.notifyUpdate,!1,!0),rt&&this.projection&&(this.projection.isTransformDirty=!0)}),it=tt.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(et,()=>{nt(),it()})}sortNodePosition(et){return!this.current||!this.sortInstanceNodePosition||this.type!==et.type?0:this.sortInstanceNodePosition(this.current,et.current)}loadFeatures({children:et,...tt},rt,nt,it){let At,at;for(let ot=0;otthis.scheduleRender(),animationType:typeof st=="string"?st:"both",initialPromotionConfig:it,layoutScroll:gt,layoutRoot:dt})}return at}updateFeatures(){for(const et in this.features){const tt=this.features[et];tt.isMounted?tt.update():(tt.mount(),tt.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(et){return this.latestValues[et]}setStaticValue(et,tt){this.latestValues[et]=tt}makeTargetAnimatable(et,tt=!0){return this.makeTargetAnimatableFromInstance(et,this.props,tt)}update(et,tt){(et.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=et,this.prevPresenceContext=this.presenceContext,this.presenceContext=tt;for(let rt=0;rttt.variantChildren.delete(et)}addValue(et,tt){tt!==this.values.get(et)&&(this.removeValue(et),this.bindToMotionValue(et,tt)),this.values.set(et,tt),this.latestValues[et]=tt.get()}removeValue(et){this.values.delete(et);const tt=this.valueSubscriptions.get(et);tt&&(tt(),this.valueSubscriptions.delete(et)),delete this.latestValues[et],this.removeValueFromRenderState(et,this.renderState)}hasValue(et){return this.values.has(et)}getValue(et,tt){if(this.props.values&&this.props.values[et])return this.props.values[et];let rt=this.values.get(et);return rt===void 0&&tt!==void 0&&(rt=motionValue(tt,{owner:this}),this.addValue(et,rt)),rt}readValue(et){var tt;return this.latestValues[et]!==void 0||!this.current?this.latestValues[et]:(tt=this.getBaseTargetFromProps(this.props,et))!==null&&tt!==void 0?tt:this.readValueFromInstance(this.current,et,this.options)}setBaseTarget(et,tt){this.baseTarget[et]=tt}getBaseTarget(et){var tt;const{initial:rt}=this.props,nt=typeof rt=="string"||typeof rt=="object"?(tt=resolveVariantFromProps(this.props,rt))===null||tt===void 0?void 0:tt[et]:void 0;if(rt&&nt!==void 0)return nt;const it=this.getBaseTargetFromProps(this.props,et);return it!==void 0&&!isMotionValue(it)?it:this.initialValues[et]!==void 0&&nt===void 0?void 0:this.baseTarget[et]}on(et,tt){return this.events[et]||(this.events[et]=new SubscriptionManager),this.events[et].add(tt)}notify(et,...tt){this.events[et]&&this.events[et].notify(...tt)}}class DOMVisualElement extends VisualElement{sortInstanceNodePosition(et,tt){return et.compareDocumentPosition(tt)&2?1:-1}getBaseTargetFromProps(et,tt){return et.style?et.style[tt]:void 0}removeValueFromRenderState(et,{vars:tt,style:rt}){delete tt[et],delete rt[et]}makeTargetAnimatableFromInstance({transition:et,transitionEnd:tt,...rt},{transformValues:nt},it){let At=getOrigin(rt,et||{},this);if(nt&&(tt&&(tt=nt(tt)),rt&&(rt=nt(rt)),At&&(At=nt(At))),it){checkTargetForNewValues(this,rt,At);const at=parseDomVariant(this,rt,At,tt);tt=at.transitionEnd,rt=at.target}return{transition:et,transitionEnd:tt,...rt}}}function getComputedStyle$1($){return window.getComputedStyle($)}class HTMLVisualElement extends DOMVisualElement{readValueFromInstance(et,tt){if(transformProps.has(tt)){const rt=getDefaultValueType(tt);return rt&&rt.default||0}else{const rt=getComputedStyle$1(et),nt=(isCSSVariableName(tt)?rt.getPropertyValue(tt):rt[tt])||0;return typeof nt=="string"?nt.trim():nt}}measureInstanceViewportBox(et,{transformPagePoint:tt}){return measureViewportBox(et,tt)}build(et,tt,rt,nt){buildHTMLStyles(et,tt,rt,nt.transformTemplate)}scrapeMotionValuesFromProps(et,tt){return scrapeMotionValuesFromProps$1(et,tt)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:et}=this.props;isMotionValue(et)&&(this.childSubscription=et.on("change",tt=>{this.current&&(this.current.textContent=`${tt}`)}))}renderInstance(et,tt,rt,nt){renderHTML(et,tt,rt,nt)}}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(et,tt){return et[tt]}readValueFromInstance(et,tt){if(transformProps.has(tt)){const rt=getDefaultValueType(tt);return rt&&rt.default||0}return tt=camelCaseAttributes.has(tt)?tt:camelToDash(tt),et.getAttribute(tt)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(et,tt){return scrapeMotionValuesFromProps(et,tt)}build(et,tt,rt,nt){buildSVGAttrs(et,tt,rt,this.isSVGTag,nt.transformTemplate)}renderInstance(et,tt,rt,nt){renderSVG(et,tt,rt,nt)}mount(et){this.isSVGTag=isSVGTag(et.tagName),super.mount(et)}}const createDomVisualElement=($,et)=>isSVGComponent($)?new SVGVisualElement(et,{enableHardwareAcceleration:!1}):new HTMLVisualElement(et,{enableHardwareAcceleration:!0}),layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},preloadedFeatures={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(($,et)=>createDomMotionConfig($,et,preloadedFeatures,createDomVisualElement));function useIsMounted(){const $=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>($.current=!0,()=>{$.current=!1}),[]),$}function useForceUpdate(){const $=useIsMounted(),[et,tt]=reactExports.useState(0),rt=reactExports.useCallback(()=>{$.current&&tt(et+1)},[et]);return[reactExports.useCallback(()=>frame.postRender(rt),[rt]),et]}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(et){const tt=this.props.childRef.current;if(tt&&et.isPresent&&!this.props.isPresent){const rt=this.props.sizeRef.current;rt.height=tt.offsetHeight||0,rt.width=tt.offsetWidth||0,rt.top=tt.offsetTop,rt.left=tt.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:$,isPresent:et}){const tt=reactExports.useId(),rt=reactExports.useRef(null),nt=reactExports.useRef({width:0,height:0,top:0,left:0});return reactExports.useInsertionEffect(()=>{const{width:it,height:At,top:at,left:ot}=nt.current;if(et||!rt.current||!it||!At)return;rt.current.dataset.motionPopId=tt;const st=document.createElement("style");return document.head.appendChild(st),st.sheet&&st.sheet.insertRule(` + )`;return{...!rt&&nt&&it,...rt?{bgImage:at}:{bgColor:At}}},baseStyleLabel$3={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},baseStyleTrack$1=$=>({bg:mode("gray.100","whiteAlpha.300")($)}),baseStyleFilledTrack$1=$=>({transitionProperty:"common",transitionDuration:"slow",...filledStyle($)}),baseStyle$x=definePartsStyle$j($=>({label:baseStyleLabel$3,filledTrack:baseStyleFilledTrack$1($),track:baseStyleTrack$1($)})),sizes$g={xs:definePartsStyle$j({track:{h:"1"}}),sm:definePartsStyle$j({track:{h:"2"}}),md:definePartsStyle$j({track:{h:"3"}}),lg:definePartsStyle$j({track:{h:"4"}})},progressTheme=defineMultiStyleConfig$j({sizes:sizes$g,baseStyle:baseStyle$x,defaultProps:{size:"md",colorScheme:"blue"}}),isFunction$2=$=>typeof $=="function";function runIfFn$1($,...et){return isFunction$2($)?$(...et):$}var{definePartsStyle:definePartsStyle$i,defineMultiStyleConfig:defineMultiStyleConfig$i}=createMultiStyleConfigHelpers(checkboxAnatomy.keys),$size$3=cssVar$1("checkbox-size"),baseStyleControl$1=$=>{const{colorScheme:et}=$;return{w:$size$3.reference,h:$size$3.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:mode(`${et}.500`,`${et}.200`)($),borderColor:mode(`${et}.500`,`${et}.200`)($),color:mode("white","gray.900")($),_hover:{bg:mode(`${et}.600`,`${et}.300`)($),borderColor:mode(`${et}.600`,`${et}.300`)($)},_disabled:{borderColor:mode("gray.200","transparent")($),bg:mode("gray.200","whiteAlpha.300")($),color:mode("gray.500","whiteAlpha.500")($)}},_indeterminate:{bg:mode(`${et}.500`,`${et}.200`)($),borderColor:mode(`${et}.500`,`${et}.200`)($),color:mode("white","gray.900")($)},_disabled:{bg:mode("gray.100","whiteAlpha.100")($),borderColor:mode("gray.100","transparent")($)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:mode("red.500","red.300")($)}}},baseStyleContainer$3={_disabled:{cursor:"not-allowed"}},baseStyleLabel$2={userSelect:"none",_disabled:{opacity:.4}},baseStyleIcon$6={transitionProperty:"transform",transitionDuration:"normal"},baseStyle$w=definePartsStyle$i($=>({icon:baseStyleIcon$6,container:baseStyleContainer$3,control:runIfFn$1(baseStyleControl$1,$),label:baseStyleLabel$2})),sizes$f={sm:definePartsStyle$i({control:{[$size$3.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:definePartsStyle$i({control:{[$size$3.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:definePartsStyle$i({control:{[$size$3.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},checkboxTheme=defineMultiStyleConfig$i({baseStyle:baseStyle$w,sizes:sizes$f,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$h,definePartsStyle:definePartsStyle$h}=createMultiStyleConfigHelpers(radioAnatomy.keys),baseStyleControl=$=>{var et;const tt=(et=runIfFn$1(checkboxTheme.baseStyle,$))==null?void 0:et.control;return{...tt,borderRadius:"full",_checked:{...tt==null?void 0:tt._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},baseStyle$v=definePartsStyle$h($=>{var et,tt,rt,nt;return{label:(tt=(et=checkboxTheme).baseStyle)==null?void 0:tt.call(et,$).label,container:(nt=(rt=checkboxTheme).baseStyle)==null?void 0:nt.call(rt,$).container,control:baseStyleControl($)}}),sizes$e={md:definePartsStyle$h({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:definePartsStyle$h({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:definePartsStyle$h({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},radioTheme=defineMultiStyleConfig$h({baseStyle:baseStyle$v,sizes:sizes$e,defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:defineMultiStyleConfig$g,definePartsStyle:definePartsStyle$g}=createMultiStyleConfigHelpers(selectAnatomy.keys),$bg$b=cssVar$1("select-bg"),_a$3,baseStyleField$1={...(_a$3=inputTheme.baseStyle)==null?void 0:_a$3.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:$bg$b.reference,[$bg$b.variable]:"colors.white",_dark:{[$bg$b.variable]:"colors.gray.700"},"> option, > optgroup":{bg:$bg$b.reference}},baseStyleIcon$5={width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}},baseStyle$u=definePartsStyle$g({field:baseStyleField$1,icon:baseStyleIcon$5}),iconSpacing={paddingInlineEnd:"8"},_a2$1,_b$1,_c,_d,_e,_f,_g,_h,sizes$d={lg:{...(_a2$1=inputTheme.sizes)==null?void 0:_a2$1.lg,field:{...(_b$1=inputTheme.sizes)==null?void 0:_b$1.lg.field,...iconSpacing}},md:{...(_c=inputTheme.sizes)==null?void 0:_c.md,field:{...(_d=inputTheme.sizes)==null?void 0:_d.md.field,...iconSpacing}},sm:{...(_e=inputTheme.sizes)==null?void 0:_e.sm,field:{...(_f=inputTheme.sizes)==null?void 0:_f.sm.field,...iconSpacing}},xs:{...(_g=inputTheme.sizes)==null?void 0:_g.xs,field:{...(_h=inputTheme.sizes)==null?void 0:_h.xs.field,...iconSpacing},icon:{insetEnd:"1"}}},selectTheme=defineMultiStyleConfig$g({baseStyle:baseStyle$u,sizes:sizes$d,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps}),$startColor=cssVar$1("skeleton-start-color"),$endColor=cssVar$1("skeleton-end-color"),baseStyle$t={[$startColor.variable]:"colors.gray.100",[$endColor.variable]:"colors.gray.400",_dark:{[$startColor.variable]:"colors.gray.800",[$endColor.variable]:"colors.gray.600"},background:$startColor.reference,borderColor:$endColor.reference,opacity:.7,borderRadius:"sm"},skeletonTheme={baseStyle:baseStyle$t},$bg$a=cssVar$1("skip-link-bg"),baseStyle$s={borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[$bg$a.variable]:"colors.white",_dark:{[$bg$a.variable]:"colors.gray.700"},bg:$bg$a.reference}},skipLinkTheme={baseStyle:baseStyle$s},{defineMultiStyleConfig:defineMultiStyleConfig$f,definePartsStyle:definePartsStyle$f}=createMultiStyleConfigHelpers(sliderAnatomy.keys),$thumbSize=cssVar$1("slider-thumb-size"),$trackSize=cssVar$1("slider-track-size"),$bg$9=cssVar$1("slider-bg"),baseStyleContainer$2=$=>{const{orientation:et}=$;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...orient({orientation:et,vertical:{h:"100%"},horizontal:{w:"100%"}})}},baseStyleTrack=$=>({...orient({orientation:$.orientation,horizontal:{h:$trackSize.reference},vertical:{w:$trackSize.reference}}),overflow:"hidden",borderRadius:"sm",[$bg$9.variable]:"colors.gray.200",_dark:{[$bg$9.variable]:"colors.whiteAlpha.200"},_disabled:{[$bg$9.variable]:"colors.gray.300",_dark:{[$bg$9.variable]:"colors.whiteAlpha.300"}},bg:$bg$9.reference}),baseStyleThumb=$=>{const{orientation:et}=$;return{...orient({orientation:et,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:$thumbSize.reference,h:$thumbSize.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},baseStyleFilledTrack=$=>{const{colorScheme:et}=$;return{width:"inherit",height:"inherit",[$bg$9.variable]:`colors.${et}.500`,_dark:{[$bg$9.variable]:`colors.${et}.200`},bg:$bg$9.reference}},baseStyle$r=definePartsStyle$f($=>({container:baseStyleContainer$2($),track:baseStyleTrack($),thumb:baseStyleThumb($),filledTrack:baseStyleFilledTrack($)})),sizeLg=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.4",[$trackSize.variable]:"sizes.1"}}),sizeMd=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.3.5",[$trackSize.variable]:"sizes.1"}}),sizeSm=definePartsStyle$f({container:{[$thumbSize.variable]:"sizes.2.5",[$trackSize.variable]:"sizes.0.5"}}),sizes$c={lg:sizeLg,md:sizeMd,sm:sizeSm},sliderTheme=defineMultiStyleConfig$f({baseStyle:baseStyle$r,sizes:sizes$c,defaultProps:{size:"md",colorScheme:"blue"}}),$size$2=cssVar("spinner-size"),baseStyle$q={width:[$size$2.reference],height:[$size$2.reference]},sizes$b={xs:{[$size$2.variable]:"sizes.3"},sm:{[$size$2.variable]:"sizes.4"},md:{[$size$2.variable]:"sizes.6"},lg:{[$size$2.variable]:"sizes.8"},xl:{[$size$2.variable]:"sizes.12"}},spinnerTheme={baseStyle:baseStyle$q,sizes:sizes$b,defaultProps:{size:"md"}},{defineMultiStyleConfig:defineMultiStyleConfig$e,definePartsStyle:definePartsStyle$e}=createMultiStyleConfigHelpers(statAnatomy.keys),baseStyleLabel$1={fontWeight:"medium"},baseStyleHelpText={opacity:.8,marginBottom:"2"},baseStyleNumber={verticalAlign:"baseline",fontWeight:"semibold"},baseStyleIcon$4={marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"},baseStyle$p=definePartsStyle$e({container:{},label:baseStyleLabel$1,helpText:baseStyleHelpText,number:baseStyleNumber,icon:baseStyleIcon$4}),sizes$a={md:definePartsStyle$e({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},statTheme=defineMultiStyleConfig$e({baseStyle:baseStyle$p,sizes:sizes$a,defaultProps:{size:"md"}}),$bg$8=cssVar$1("kbd-bg"),baseStyle$o={[$bg$8.variable]:"colors.gray.100",_dark:{[$bg$8.variable]:"colors.whiteAlpha.100"},bg:$bg$8.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"},kbdTheme={baseStyle:baseStyle$o},baseStyle$n={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}},linkTheme={baseStyle:baseStyle$n},{defineMultiStyleConfig:defineMultiStyleConfig$d,definePartsStyle:definePartsStyle$d}=createMultiStyleConfigHelpers(listAnatomy.keys),baseStyleIcon$3={marginEnd:"2",display:"inline",verticalAlign:"text-bottom"},baseStyle$m=definePartsStyle$d({icon:baseStyleIcon$3}),listTheme=defineMultiStyleConfig$d({baseStyle:baseStyle$m}),{defineMultiStyleConfig:defineMultiStyleConfig$c,definePartsStyle:definePartsStyle$c}=createMultiStyleConfigHelpers(menuAnatomy.keys),$bg$7=cssVar$1("menu-bg"),$shadow$2=cssVar$1("menu-shadow"),baseStyleList={[$bg$7.variable]:"#fff",[$shadow$2.variable]:"shadows.sm",_dark:{[$bg$7.variable]:"colors.gray.700",[$shadow$2.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:$bg$7.reference,boxShadow:$shadow$2.reference},baseStyleItem={py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[$bg$7.variable]:"colors.gray.100",_dark:{[$bg$7.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$7.variable]:"colors.gray.200",_dark:{[$bg$7.variable]:"colors.whiteAlpha.200"}},_expanded:{[$bg$7.variable]:"colors.gray.100",_dark:{[$bg$7.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:$bg$7.reference},baseStyleGroupTitle={mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},baseStyleIcon$2={display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},baseStyleCommand={opacity:.6},baseStyleDivider={border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6},baseStyleButton$1={transitionProperty:"common",transitionDuration:"normal"},baseStyle$l=definePartsStyle$c({button:baseStyleButton$1,list:baseStyleList,item:baseStyleItem,groupTitle:baseStyleGroupTitle,icon:baseStyleIcon$2,command:baseStyleCommand,divider:baseStyleDivider}),menuTheme=defineMultiStyleConfig$c({baseStyle:baseStyle$l}),{defineMultiStyleConfig:defineMultiStyleConfig$b,definePartsStyle:definePartsStyle$b}=createMultiStyleConfigHelpers(modalAnatomy.keys),$bg$6=cssVar$1("modal-bg"),$shadow$1=cssVar$1("modal-shadow"),baseStyleOverlay$1={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer$1=$=>{const{isCentered:et,scrollBehavior:tt}=$;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:et?"center":"flex-start",overflow:tt==="inside"?"hidden":"auto",overscrollBehaviorY:"none"}},baseStyleDialog$1=$=>{const{isCentered:et,scrollBehavior:tt}=$;return{borderRadius:"md",color:"inherit",my:et?"auto":"16",mx:et?"auto":void 0,zIndex:"modal",maxH:tt==="inside"?"calc(100% - 7.5rem)":void 0,[$bg$6.variable]:"colors.white",[$shadow$1.variable]:"shadows.lg",_dark:{[$bg$6.variable]:"colors.gray.700",[$shadow$1.variable]:"shadows.dark-lg"},bg:$bg$6.reference,boxShadow:$shadow$1.reference}},baseStyleHeader$2={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton$2={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody$2=$=>{const{scrollBehavior:et}=$;return{px:"6",py:"2",flex:"1",overflow:et==="inside"?"auto":void 0}},baseStyleFooter$2={px:"6",py:"4"},baseStyle$k=definePartsStyle$b($=>({overlay:baseStyleOverlay$1,dialogContainer:runIfFn$1(baseStyleDialogContainer$1,$),dialog:runIfFn$1(baseStyleDialog$1,$),header:baseStyleHeader$2,closeButton:baseStyleCloseButton$2,body:runIfFn$1(baseStyleBody$2,$),footer:baseStyleFooter$2}));function getSize$3($){return definePartsStyle$b($==="full"?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:$}})}var sizes$9={xs:getSize$3("xs"),sm:getSize$3("sm"),md:getSize$3("md"),lg:getSize$3("lg"),xl:getSize$3("xl"),"2xl":getSize$3("2xl"),"3xl":getSize$3("3xl"),"4xl":getSize$3("4xl"),"5xl":getSize$3("5xl"),"6xl":getSize$3("6xl"),full:getSize$3("full")},modalTheme=defineMultiStyleConfig$b({baseStyle:baseStyle$k,sizes:sizes$9,defaultProps:{size:"md"}}),{defineMultiStyleConfig:defineMultiStyleConfig$a,definePartsStyle:definePartsStyle$a}=createMultiStyleConfigHelpers(numberInputAnatomy.keys),$stepperWidth=cssVar("number-input-stepper-width"),$inputPadding=cssVar("number-input-input-padding"),inputPaddingValue=calc($stepperWidth).add("0.5rem").toString(),$bg$5=cssVar("number-input-bg"),$fg$3=cssVar("number-input-color"),$border$2=cssVar("number-input-border-color"),baseStyleRoot={[$stepperWidth.variable]:"sizes.6",[$inputPadding.variable]:inputPaddingValue},baseStyleField=$=>{var et,tt;return(tt=(et=runIfFn$1(inputTheme.baseStyle,$))==null?void 0:et.field)!=null?tt:{}},baseStyleStepperGroup={width:$stepperWidth.reference},baseStyleStepper={borderStart:"1px solid",borderStartColor:$border$2.reference,color:$fg$3.reference,bg:$bg$5.reference,[$fg$3.variable]:"colors.chakra-body-text",[$border$2.variable]:"colors.chakra-border-color",_dark:{[$fg$3.variable]:"colors.whiteAlpha.800",[$border$2.variable]:"colors.whiteAlpha.300"},_active:{[$bg$5.variable]:"colors.gray.200",_dark:{[$bg$5.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},baseStyle$j=definePartsStyle$a($=>{var et;return{root:baseStyleRoot,field:(et=runIfFn$1(baseStyleField,$))!=null?et:{},stepperGroup:baseStyleStepperGroup,stepper:baseStyleStepper}});function getSize$2($){var et,tt,rt;const nt=(et=inputTheme.sizes)==null?void 0:et[$],it={lg:"md",md:"md",sm:"sm",xs:"sm"},At=(rt=(tt=nt.field)==null?void 0:tt.fontSize)!=null?rt:"md",at=typography_default.fontSizes[At];return definePartsStyle$a({field:{...nt.field,paddingInlineEnd:$inputPadding.reference,verticalAlign:"top"},stepper:{fontSize:calc(at).multiply(.75).toString(),_first:{borderTopEndRadius:it[$]},_last:{borderBottomEndRadius:it[$],mt:"-1px",borderTopWidth:1}}})}var sizes$8={xs:getSize$2("xs"),sm:getSize$2("sm"),md:getSize$2("md"),lg:getSize$2("lg")},numberInputTheme=defineMultiStyleConfig$a({baseStyle:baseStyle$j,sizes:sizes$8,variants:inputTheme.variants,defaultProps:inputTheme.defaultProps}),_a$2,baseStyle$i={...(_a$2=inputTheme.baseStyle)==null?void 0:_a$2.field,textAlign:"center"},sizes$7={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},_a2,_b,variants$9={outline:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.outline,$))==null?void 0:tt.field)!=null?rt:{}},flushed:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.flushed,$))==null?void 0:tt.field)!=null?rt:{}},filled:$=>{var et,tt,rt;return(rt=(tt=runIfFn$1((et=inputTheme.variants)==null?void 0:et.filled,$))==null?void 0:tt.field)!=null?rt:{}},unstyled:(_b=(_a2=inputTheme.variants)==null?void 0:_a2.unstyled.field)!=null?_b:{}},pinInputTheme={baseStyle:baseStyle$i,sizes:sizes$7,variants:variants$9,defaultProps:inputTheme.defaultProps},{defineMultiStyleConfig:defineMultiStyleConfig$9,definePartsStyle:definePartsStyle$9}=createMultiStyleConfigHelpers(popoverAnatomy.keys),$popperBg=cssVar("popper-bg"),$arrowBg=cssVar("popper-arrow-bg"),$arrowShadowColor=cssVar("popper-arrow-shadow-color"),baseStylePopper={zIndex:10},baseStyleContent={[$popperBg.variable]:"colors.white",bg:$popperBg.reference,[$arrowBg.variable]:$popperBg.reference,[$arrowShadowColor.variable]:"colors.gray.200",_dark:{[$popperBg.variable]:"colors.gray.700",[$arrowShadowColor.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},baseStyleHeader$1={px:3,py:2,borderBottomWidth:"1px"},baseStyleBody$1={px:3,py:2},baseStyleFooter$1={px:3,py:2,borderTopWidth:"1px"},baseStyleCloseButton$1={position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2},baseStyle$h=definePartsStyle$9({popper:baseStylePopper,content:baseStyleContent,header:baseStyleHeader$1,body:baseStyleBody$1,footer:baseStyleFooter$1,closeButton:baseStyleCloseButton$1}),popoverTheme=defineMultiStyleConfig$9({baseStyle:baseStyle$h}),{definePartsStyle:definePartsStyle$8,defineMultiStyleConfig:defineMultiStyleConfig$8}=createMultiStyleConfigHelpers(drawerAnatomy.keys),$bg$4=cssVar$1("drawer-bg"),$bs=cssVar$1("drawer-box-shadow");function getSize$1($){return definePartsStyle$8($==="full"?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:$}})}var baseStyleOverlay={bg:"blackAlpha.600",zIndex:"modal"},baseStyleDialogContainer={display:"flex",zIndex:"modal",justifyContent:"center"},baseStyleDialog=$=>{const{isFullHeight:et}=$;return{...et&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[$bg$4.variable]:"colors.white",[$bs.variable]:"shadows.lg",_dark:{[$bg$4.variable]:"colors.gray.700",[$bs.variable]:"shadows.dark-lg"},bg:$bg$4.reference,boxShadow:$bs.reference}},baseStyleHeader={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},baseStyleCloseButton={position:"absolute",top:"2",insetEnd:"3"},baseStyleBody={px:"6",py:"2",flex:"1",overflow:"auto"},baseStyleFooter={px:"6",py:"4"},baseStyle$g=definePartsStyle$8($=>({overlay:baseStyleOverlay,dialogContainer:baseStyleDialogContainer,dialog:runIfFn$1(baseStyleDialog,$),header:baseStyleHeader,closeButton:baseStyleCloseButton,body:baseStyleBody,footer:baseStyleFooter})),sizes$6={xs:getSize$1("xs"),sm:getSize$1("md"),md:getSize$1("lg"),lg:getSize$1("2xl"),xl:getSize$1("4xl"),full:getSize$1("full")},drawerTheme=defineMultiStyleConfig$8({baseStyle:baseStyle$g,sizes:sizes$6,defaultProps:{size:"xs"}}),{definePartsStyle:definePartsStyle$7,defineMultiStyleConfig:defineMultiStyleConfig$7}=createMultiStyleConfigHelpers(editableAnatomy.keys),baseStylePreview={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},baseStyleInput={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyleTextarea={borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},baseStyle$f=definePartsStyle$7({preview:baseStylePreview,input:baseStyleInput,textarea:baseStyleTextarea}),editableTheme=defineMultiStyleConfig$7({baseStyle:baseStyle$f}),{definePartsStyle:definePartsStyle$6,defineMultiStyleConfig:defineMultiStyleConfig$6}=createMultiStyleConfigHelpers(formAnatomy.keys),$fg$2=cssVar$1("form-control-color"),baseStyleRequiredIndicator={marginStart:"1",[$fg$2.variable]:"colors.red.500",_dark:{[$fg$2.variable]:"colors.red.300"},color:$fg$2.reference},baseStyleHelperText={mt:"2",[$fg$2.variable]:"colors.gray.600",_dark:{[$fg$2.variable]:"colors.whiteAlpha.600"},color:$fg$2.reference,lineHeight:"normal",fontSize:"sm"},baseStyle$e=definePartsStyle$6({container:{width:"100%",position:"relative"},requiredIndicator:baseStyleRequiredIndicator,helperText:baseStyleHelperText}),formTheme=defineMultiStyleConfig$6({baseStyle:baseStyle$e}),{definePartsStyle:definePartsStyle$5,defineMultiStyleConfig:defineMultiStyleConfig$5}=createMultiStyleConfigHelpers(formErrorAnatomy.keys),$fg$1=cssVar$1("form-error-color"),baseStyleText={[$fg$1.variable]:"colors.red.500",_dark:{[$fg$1.variable]:"colors.red.300"},color:$fg$1.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},baseStyleIcon$1={marginEnd:"0.5em",[$fg$1.variable]:"colors.red.500",_dark:{[$fg$1.variable]:"colors.red.300"},color:$fg$1.reference},baseStyle$d=definePartsStyle$5({text:baseStyleText,icon:baseStyleIcon$1}),formErrorTheme=defineMultiStyleConfig$5({baseStyle:baseStyle$d}),baseStyle$c={fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}},formLabelTheme={baseStyle:baseStyle$c},baseStyle$b={fontFamily:"heading",fontWeight:"bold"},sizes$5={"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},headingTheme={baseStyle:baseStyle$b,sizes:sizes$5,defaultProps:{size:"xl"}},{defineMultiStyleConfig:defineMultiStyleConfig$4,definePartsStyle:definePartsStyle$4}=createMultiStyleConfigHelpers(breadcrumbAnatomy.keys),$decor=cssVar$1("breadcrumb-link-decor"),baseStyleLink={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:$decor.reference,[$decor.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[$decor.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}},baseStyle$a=definePartsStyle$4({link:baseStyleLink}),breadcrumbTheme=defineMultiStyleConfig$4({baseStyle:baseStyle$a}),baseStyle$9={lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variantGhost=$=>{const{colorScheme:et,theme:tt}=$;if(et==="gray")return{color:mode("gray.800","whiteAlpha.900")($),_hover:{bg:mode("gray.100","whiteAlpha.200")($)},_active:{bg:mode("gray.200","whiteAlpha.300")($)}};const rt=transparentize(`${et}.200`,.12)(tt),nt=transparentize(`${et}.200`,.24)(tt);return{color:mode(`${et}.600`,`${et}.200`)($),bg:"transparent",_hover:{bg:mode(`${et}.50`,rt)($)},_active:{bg:mode(`${et}.100`,nt)($)}}},variantOutline=$=>{const{colorScheme:et}=$,tt=mode("gray.200","whiteAlpha.300")($);return{border:"1px solid",borderColor:et==="gray"?tt:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...runIfFn$1(variantGhost,$)}},accessibleColorMap={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},variantSolid$2=$=>{var et;const{colorScheme:tt}=$;if(tt==="gray"){const ot=mode("gray.100","whiteAlpha.200")($);return{bg:ot,color:mode("gray.800","whiteAlpha.900")($),_hover:{bg:mode("gray.200","whiteAlpha.300")($),_disabled:{bg:ot}},_active:{bg:mode("gray.300","whiteAlpha.400")($)}}}const{bg:rt=`${tt}.500`,color:nt="white",hoverBg:it=`${tt}.600`,activeBg:At=`${tt}.700`}=(et=accessibleColorMap[tt])!=null?et:{},at=mode(rt,`${tt}.200`)($);return{bg:at,color:mode(nt,"gray.800")($),_hover:{bg:mode(it,`${tt}.300`)($),_disabled:{bg:at}},_active:{bg:mode(At,`${tt}.400`)($)}}},variantLink=$=>{const{colorScheme:et}=$;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:mode(`${et}.500`,`${et}.200`)($),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:mode(`${et}.700`,`${et}.500`)($)}}},variantUnstyled={bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"},variants$8={ghost:variantGhost,outline:variantOutline,solid:variantSolid$2,link:variantLink,unstyled:variantUnstyled},sizes$4={lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},buttonTheme={baseStyle:baseStyle$9,variants:variants$8,sizes:sizes$4,defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:definePartsStyle$3,defineMultiStyleConfig:defineMultiStyleConfig$3}=createMultiStyleConfigHelpers(cardAnatomy.keys),$bg$3=cssVar$1("card-bg"),$padding=cssVar$1("card-padding"),$shadow=cssVar$1("card-shadow"),$radius=cssVar$1("card-radius"),$border$1=cssVar$1("card-border-width","0"),$borderColor=cssVar$1("card-border-color"),baseStyle$8=definePartsStyle$3({container:{[$bg$3.variable]:"colors.chakra-body-bg",backgroundColor:$bg$3.reference,boxShadow:$shadow.reference,borderRadius:$radius.reference,color:"chakra-body-text",borderWidth:$border$1.reference,borderColor:$borderColor.reference},body:{padding:$padding.reference,flex:"1 1 0%"},header:{padding:$padding.reference},footer:{padding:$padding.reference}}),sizes$3={sm:definePartsStyle$3({container:{[$radius.variable]:"radii.base",[$padding.variable]:"space.3"}}),md:definePartsStyle$3({container:{[$radius.variable]:"radii.md",[$padding.variable]:"space.5"}}),lg:definePartsStyle$3({container:{[$radius.variable]:"radii.xl",[$padding.variable]:"space.7"}})},variants$7={elevated:definePartsStyle$3({container:{[$shadow.variable]:"shadows.base",_dark:{[$bg$3.variable]:"colors.gray.700"}}}),outline:definePartsStyle$3({container:{[$border$1.variable]:"1px",[$borderColor.variable]:"colors.chakra-border-color"}}),filled:definePartsStyle$3({container:{[$bg$3.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[$padding.variable]:0},header:{[$padding.variable]:0},footer:{[$padding.variable]:0}}},cardTheme=defineMultiStyleConfig$3({baseStyle:baseStyle$8,variants:variants$7,sizes:sizes$3,defaultProps:{variant:"elevated",size:"md"}}),$size$1=cssVar("close-button-size"),$bg$2=cssVar("close-button-bg"),baseStyle$7={w:[$size$1.reference],h:[$size$1.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[$bg$2.variable]:"colors.blackAlpha.100",_dark:{[$bg$2.variable]:"colors.whiteAlpha.100"}},_active:{[$bg$2.variable]:"colors.blackAlpha.200",_dark:{[$bg$2.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:$bg$2.reference},sizes$2={lg:{[$size$1.variable]:"sizes.10",fontSize:"md"},md:{[$size$1.variable]:"sizes.8",fontSize:"xs"},sm:{[$size$1.variable]:"sizes.6",fontSize:"2xs"}},closeButtonTheme={baseStyle:baseStyle$7,sizes:sizes$2,defaultProps:{size:"md"}},{variants:variants$6,defaultProps}=badgeTheme,baseStyle$6={fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:vars.bg.reference,color:vars.color.reference,boxShadow:vars.shadow.reference},codeTheme={baseStyle:baseStyle$6,variants:variants$6,defaultProps},baseStyle$5={w:"100%",mx:"auto",maxW:"prose",px:"4"},containerTheme={baseStyle:baseStyle$5},baseStyle$4={opacity:.6,borderColor:"inherit"},variantSolid$1={borderStyle:"solid"},variantDashed={borderStyle:"dashed"},variants$5={solid:variantSolid$1,dashed:variantDashed},dividerTheme={baseStyle:baseStyle$4,variants:variants$5,defaultProps:{variant:"solid"}},{definePartsStyle:definePartsStyle$2,defineMultiStyleConfig:defineMultiStyleConfig$2}=createMultiStyleConfigHelpers(accordionAnatomy.keys),baseStyleContainer$1={borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},baseStyleButton={transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},baseStylePanel={pt:"2",px:"4",pb:"5"},baseStyleIcon={fontSize:"1.25em"},baseStyle$3=definePartsStyle$2({container:baseStyleContainer$1,button:baseStyleButton,panel:baseStylePanel,icon:baseStyleIcon}),accordionTheme=defineMultiStyleConfig$2({baseStyle:baseStyle$3}),{definePartsStyle:definePartsStyle$1,defineMultiStyleConfig:defineMultiStyleConfig$1}=createMultiStyleConfigHelpers(alertAnatomy.keys),$fg=cssVar$1("alert-fg"),$bg$1=cssVar$1("alert-bg"),baseStyle$2=definePartsStyle$1({container:{bg:$bg$1.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:$fg.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:$fg.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function getBg($){const{theme:et,colorScheme:tt}=$,rt=transparentize(`${tt}.200`,.16)(et);return{light:`colors.${tt}.100`,dark:rt}}var variantSubtle=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark}}}}),variantLeftAccent=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:$fg.reference}}}),variantTopAccent=definePartsStyle$1($=>{const{colorScheme:et}=$,tt=getBg($);return{container:{[$fg.variable]:`colors.${et}.500`,[$bg$1.variable]:tt.light,_dark:{[$fg.variable]:`colors.${et}.200`,[$bg$1.variable]:tt.dark},pt:"2",borderTopWidth:"4px",borderTopColor:$fg.reference}}}),variantSolid=definePartsStyle$1($=>{const{colorScheme:et}=$;return{container:{[$fg.variable]:"colors.white",[$bg$1.variable]:`colors.${et}.500`,_dark:{[$fg.variable]:"colors.gray.900",[$bg$1.variable]:`colors.${et}.200`},color:$fg.reference}}}),variants$4={subtle:variantSubtle,"left-accent":variantLeftAccent,"top-accent":variantTopAccent,solid:variantSolid},alertTheme=defineMultiStyleConfig$1({baseStyle:baseStyle$2,variants:variants$4,defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle,defineMultiStyleConfig}=createMultiStyleConfigHelpers(avatarAnatomy.keys),$border=cssVar$1("avatar-border-color"),$bg=cssVar$1("avatar-bg"),$fs=cssVar$1("avatar-font-size"),$size=cssVar$1("avatar-size"),baseStyleBadge={borderRadius:"full",border:"0.2em solid",borderColor:$border.reference,[$border.variable]:"white",_dark:{[$border.variable]:"colors.gray.800"}},baseStyleExcessLabel={bg:$bg.reference,fontSize:$fs.reference,width:$size.reference,height:$size.reference,lineHeight:"1",[$bg.variable]:"colors.gray.200",_dark:{[$bg.variable]:"colors.whiteAlpha.400"}},baseStyleContainer=$=>{const{name:et,theme:tt}=$,rt=et?randomColor({string:et}):"colors.gray.400",nt=isDark(rt)(tt);let it="white";return nt||(it="gray.800"),{bg:$bg.reference,fontSize:$fs.reference,color:it,borderColor:$border.reference,verticalAlign:"top",width:$size.reference,height:$size.reference,"&:not([data-loaded])":{[$bg.variable]:rt},[$border.variable]:"colors.white",_dark:{[$border.variable]:"colors.gray.800"}}},baseStyleLabel={fontSize:$fs.reference,lineHeight:"1"},baseStyle$1=definePartsStyle($=>({badge:runIfFn$1(baseStyleBadge,$),excessLabel:runIfFn$1(baseStyleExcessLabel,$),container:runIfFn$1(baseStyleContainer,$),label:baseStyleLabel}));function getSize($){const et=$!=="100%"?sizes_default[$]:void 0;return definePartsStyle({container:{[$size.variable]:et??$,[$fs.variable]:`calc(${et??$} / 2.5)`},excessLabel:{[$size.variable]:et??$,[$fs.variable]:`calc(${et??$} / 2.5)`}})}var sizes$1={"2xs":getSize(4),xs:getSize(6),sm:getSize(8),md:getSize(12),lg:getSize(16),xl:getSize(24),"2xl":getSize(32),full:getSize("100%")},avatarTheme=defineMultiStyleConfig({baseStyle:baseStyle$1,sizes:sizes$1,defaultProps:{size:"md"}}),components={Accordion:accordionTheme,Alert:alertTheme,Avatar:avatarTheme,Badge:badgeTheme,Breadcrumb:breadcrumbTheme,Button:buttonTheme,Checkbox:checkboxTheme,CloseButton:closeButtonTheme,Code:codeTheme,Container:containerTheme,Divider:dividerTheme,Drawer:drawerTheme,Editable:editableTheme,Form:formTheme,FormError:formErrorTheme,FormLabel:formLabelTheme,Heading:headingTheme,Input:inputTheme,Kbd:kbdTheme,Link:linkTheme,List:listTheme,Menu:menuTheme,Modal:modalTheme,NumberInput:numberInputTheme,PinInput:pinInputTheme,Popover:popoverTheme,Progress:progressTheme,Radio:radioTheme,Select:selectTheme,Skeleton:skeletonTheme,SkipLink:skipLinkTheme,Slider:sliderTheme,Spinner:spinnerTheme,Stat:statTheme,Switch:switchTheme,Table:tableTheme,Tabs:tabsTheme,Tag:tagTheme,Textarea:textareaTheme,Tooltip:tooltipTheme,Card:cardTheme,Stepper:stepperTheme},semanticTokens={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},styles={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},direction="ltr",config={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},theme$1={semanticTokens,direction,...foundations,components,styles,config};function isFunction$1($){return typeof $=="function"}function pipe$1(...$){return et=>$.reduce((tt,rt)=>rt(tt),et)}var createExtendTheme=$=>function(...tt){let rt=[...tt],nt=tt[tt.length-1];return isChakraTheme(nt)&&rt.length>1?rt=rt.slice(0,rt.length-1):nt=$,pipe$1(...rt.map(it=>At=>isFunction$1(it)?it(At):mergeThemeOverride(At,it)))(nt)},extendTheme=createExtendTheme(theme$1);function mergeThemeOverride(...$){return mergeWith({},...$,mergeThemeCustomizer)}function mergeThemeCustomizer($,et,tt,rt){if((isFunction$1($)||isFunction$1(et))&&Object.prototype.hasOwnProperty.call(rt,tt))return(...nt)=>{const it=isFunction$1($)?$(...nt):$,At=isFunction$1(et)?et(...nt):et;return mergeWith({},it,At,mergeThemeCustomizer)}}function canUseDOM$1(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var isBrowser$1=canUseDOM$1();function omit$1($,et){const tt={};return Object.keys($).forEach(rt=>{et.includes(rt)||(tt[rt]=$[rt])}),tt}function get($,et,tt,rt){const nt=typeof et=="string"?et.split("."):[et];for(rt=0;rt{const et=new WeakMap;return(rt,nt,it,At)=>{if(typeof rt>"u")return $(rt,nt,it);et.has(rt)||et.set(rt,new Map);const at=et.get(rt);if(at.has(nt))return at.get(nt);const ot=$(rt,nt,it,At);return at.set(nt,ot),ot}},memoizedGet=memoize(get);function objectFilter($,et){const tt={};return Object.keys($).forEach(rt=>{const nt=$[rt];et(nt,rt,$)&&(tt[rt]=nt)}),tt}var filterUndefined=$=>objectFilter($,et=>et!=null);function isFunction($){return typeof $=="function"}function runIfFn($,...et){return isFunction($)?$(...et):$}function callAllHandlers(...$){return function(tt){$.some(rt=>(rt==null||rt(tt),tt==null?void 0:tt.defaultPrevented))}}var hasElementType=typeof Element<"u",hasMap=typeof Map=="function",hasSet=typeof Set=="function",hasArrayBuffer=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function equal($,et){if($===et)return!0;if($&&et&&typeof $=="object"&&typeof et=="object"){if($.constructor!==et.constructor)return!1;var tt,rt,nt;if(Array.isArray($)){if(tt=$.length,tt!=et.length)return!1;for(rt=tt;rt--!==0;)if(!equal($[rt],et[rt]))return!1;return!0}var it;if(hasMap&&$ instanceof Map&&et instanceof Map){if($.size!==et.size)return!1;for(it=$.entries();!(rt=it.next()).done;)if(!et.has(rt.value[0]))return!1;for(it=$.entries();!(rt=it.next()).done;)if(!equal(rt.value[1],et.get(rt.value[0])))return!1;return!0}if(hasSet&&$ instanceof Set&&et instanceof Set){if($.size!==et.size)return!1;for(it=$.entries();!(rt=it.next()).done;)if(!et.has(rt.value[0]))return!1;return!0}if(hasArrayBuffer&&ArrayBuffer.isView($)&&ArrayBuffer.isView(et)){if(tt=$.length,tt!=et.length)return!1;for(rt=tt;rt--!==0;)if($[rt]!==et[rt])return!1;return!0}if($.constructor===RegExp)return $.source===et.source&&$.flags===et.flags;if($.valueOf!==Object.prototype.valueOf&&typeof $.valueOf=="function"&&typeof et.valueOf=="function")return $.valueOf()===et.valueOf();if($.toString!==Object.prototype.toString&&typeof $.toString=="function"&&typeof et.toString=="function")return $.toString()===et.toString();if(nt=Object.keys($),tt=nt.length,tt!==Object.keys(et).length)return!1;for(rt=tt;rt--!==0;)if(!Object.prototype.hasOwnProperty.call(et,nt[rt]))return!1;if(hasElementType&&$ instanceof Element)return!1;for(rt=tt;rt--!==0;)if(!((nt[rt]==="_owner"||nt[rt]==="__v"||nt[rt]==="__o")&&$.$$typeof)&&!equal($[nt[rt]],et[nt[rt]]))return!1;return!0}return $!==$&&et!==et}var reactFastCompare=function(et,tt){try{return equal(et,tt)}catch(rt){if((rt.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw rt}};const isEqual=getDefaultExportFromCjs(reactFastCompare);function useStyleConfigImpl($,et={}){var tt;const{styleConfig:rt,...nt}=et,{theme:it,colorMode:At}=useChakra(),at=$?memoizedGet(it,`components.${$}`):void 0,ot=rt||at,st=mergeWith({theme:it,colorMode:At},(tt=ot==null?void 0:ot.defaultProps)!=null?tt:{},filterUndefined(omit$1(nt,["children"]))),ct=reactExports.useRef({});if(ot){const gt=resolveStyleConfig(ot)(st);isEqual(ct.current,gt)||(ct.current=gt)}return ct.current}function useStyleConfig($,et={}){return useStyleConfigImpl($,et)}function useMultiStyleConfig($,et={}){return useStyleConfigImpl($,et)}var allPropNames=new Set([...propNames,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),validHTMLProps=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function shouldForwardProp($){return validHTMLProps.has($)||!allPropNames.has($)}function assignAfter($,...et){if($==null)throw new TypeError("Cannot convert undefined or null to object");const tt={...$};for(const rt of et)if(rt!=null)for(const nt in rt)Object.prototype.hasOwnProperty.call(rt,nt)&&(nt in tt&&delete tt[nt],tt[nt]=rt[nt]);return tt}function compact($){const et=Object.assign({},$);for(let tt in et)et[tt]===void 0&&delete et[tt];return et}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$2(function($){return reactPropsRegex.test($)||$.charCodeAt(0)===111&&$.charCodeAt(1)===110&&$.charCodeAt(2)<91}),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function(et){return et!=="theme"},getDefaultShouldForwardProp=function(et){return typeof et=="string"&&et.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(et,tt,rt){var nt;if(tt){var it=tt.shouldForwardProp;nt=et.__emotion_forwardProp&&it?function(At){return et.__emotion_forwardProp(At)&&it(At)}:it}return typeof nt!="function"&&rt&&(nt=et.__emotion_forwardProp),nt},Insertion=function(et){var tt=et.cache,rt=et.serialized,nt=et.isStringTag;return registerStyles(tt,rt,nt),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(tt,rt,nt)}),null},createStyled=function $(et,tt){var rt=et.__emotion_real===et,nt=rt&&et.__emotion_base||et,it,At;tt!==void 0&&(it=tt.label,At=tt.target);var at=composeShouldForwardProps(et,tt,rt),ot=at||getDefaultShouldForwardProp(nt),st=!ot("as");return function(){var ct=arguments,ut=rt&&et.__emotion_styles!==void 0?et.__emotion_styles.slice(0):[];if(it!==void 0&&ut.push("label:"+it+";"),ct[0]==null||ct[0].raw===void 0)ut.push.apply(ut,ct);else{ut.push(ct[0][0]);for(var gt=ct.length,dt=1;dtet=>{const{theme:tt,css:rt,__css:nt,sx:it,...At}=et,at=objectFilter(At,(ut,gt)=>isStyleProp(gt)),ot=runIfFn($,et),st=assignAfter({},nt,ot,filterUndefined(at),it),ct=css(st)(et.theme);return rt?[ct,rt]:ct};function styled($,et){const{baseStyle:tt,...rt}=et??{};rt.shouldForwardProp||(rt.shouldForwardProp=shouldForwardProp);const nt=toCSSObject({baseStyle:tt}),it=emotion_styled($,rt)(nt);return React.forwardRef(function(ot,st){const{colorMode:ct,forced:ut}=useColorMode();return React.createElement(it,{ref:st,"data-theme":ut?ct:void 0,...ot})})}function factory(){const $=new Map;return new Proxy(styled,{apply(et,tt,rt){return styled(...rt)},get(et,tt){return $.has(tt)||$.set(tt,styled(tt)),$.get(tt)}})}var chakra=factory();function forwardRef($){return reactExports.forwardRef($)}function createContext($={}){const{strict:et=!0,errorMessage:tt="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:rt}=$,nt=reactExports.createContext(void 0);nt.displayName=rt;function it(){var At;const at=reactExports.useContext(nt);if(!at&&et){const ot=new Error(tt);throw ot.name="ContextError",(At=Error.captureStackTrace)==null||At.call(Error,ot,it),ot}return at}return[nt.Provider,it,nt]}function ThemeProvider($){const{cssVarsRoot:et,theme:tt,children:rt}=$,nt=reactExports.useMemo(()=>toCSSVar(tt),[tt]);return jsxRuntimeExports.jsxs(ThemeProvider$1,{theme:nt,children:[jsxRuntimeExports.jsx(CSSVars,{root:et}),rt]})}function CSSVars({root:$=":host, :root"}){const et=[$,"[data-theme]"].join(",");return jsxRuntimeExports.jsx(Global,{styles:tt=>({[et]:tt.__cssVars})})}createContext({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "});function GlobalStyle(){const{colorMode:$}=useColorMode();return jsxRuntimeExports.jsx(Global,{styles:et=>{const tt=memoizedGet(et,"styles.global"),rt=runIfFn(tt,{theme:et,colorMode:$});return rt?css(rt)(et):void 0}})}var EnvironmentContext=reactExports.createContext({getDocument(){return document},getWindow(){return window}});EnvironmentContext.displayName="EnvironmentContext";function EnvironmentProvider($){const{children:et,environment:tt,disabled:rt}=$,nt=reactExports.useRef(null),it=reactExports.useMemo(()=>tt||{getDocument:()=>{var at,ot;return(ot=(at=nt.current)==null?void 0:at.ownerDocument)!=null?ot:document},getWindow:()=>{var at,ot;return(ot=(at=nt.current)==null?void 0:at.ownerDocument.defaultView)!=null?ot:window}},[tt]),At=!rt||!tt;return jsxRuntimeExports.jsxs(EnvironmentContext.Provider,{value:it,children:[et,At&&jsxRuntimeExports.jsx("span",{id:"__chakra_env",hidden:!0,ref:nt})]})}EnvironmentProvider.displayName="EnvironmentProvider";var ChakraProvider$1=$=>{const{children:et,colorModeManager:tt,portalZIndex:rt,resetScope:nt,resetCSS:it=!0,theme:At={},environment:at,cssVarsRoot:ot,disableEnvironment:st,disableGlobalStyle:ct}=$,ut=jsxRuntimeExports.jsx(EnvironmentProvider,{environment:at,disabled:st,children:et});return jsxRuntimeExports.jsx(ThemeProvider,{theme:At,cssVarsRoot:ot,children:jsxRuntimeExports.jsxs(ColorModeProvider,{colorModeManager:tt,options:At.config,children:[it?jsxRuntimeExports.jsx(CSSReset,{scope:nt}):jsxRuntimeExports.jsx(CSSPolyfill,{}),!ct&&jsxRuntimeExports.jsx(GlobalStyle,{}),rt?jsxRuntimeExports.jsx(PortalManager,{zIndex:rt,children:ut}):ut]})})},findById=($,et)=>$.find(tt=>tt.id===et);function findToast($,et){const tt=getToastPosition($,et),rt=tt?$[tt].findIndex(nt=>nt.id===et):-1;return{position:tt,index:rt}}function getToastPosition($,et){for(const[tt,rt]of Object.entries($))if(findById(rt,et))return tt}function getToastStyle($){const et=$.includes("right"),tt=$.includes("left");let rt="center";return et&&(rt="flex-end"),tt&&(rt="flex-start"),{display:"flex",flexDirection:"column",alignItems:rt}}function getToastListStyle($){const tt=$==="top"||$==="bottom"?"0 auto":void 0,rt=$.includes("top")?"env(safe-area-inset-top, 0px)":void 0,nt=$.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,it=$.includes("left")?void 0:"env(safe-area-inset-right, 0px)",At=$.includes("right")?void 0:"env(safe-area-inset-left, 0px)";return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:tt,top:rt,bottom:nt,right:it,left:At}}function useCallbackRef$2($,et=[]){const tt=reactExports.useRef($);return reactExports.useEffect(()=>{tt.current=$}),reactExports.useCallback((...rt)=>{var nt;return(nt=tt.current)==null?void 0:nt.call(tt,...rt)},et)}function useTimeout($,et){const tt=useCallbackRef$2($);reactExports.useEffect(()=>{if(et==null)return;let rt=null;return rt=window.setTimeout(()=>{tt()},et),()=>{rt&&window.clearTimeout(rt)}},[et,tt])}function useUpdateEffect($,et){const tt=reactExports.useRef(!1),rt=reactExports.useRef(!1);reactExports.useEffect(()=>{if(tt.current&&rt.current)return $();rt.current=!0},et),reactExports.useEffect(()=>(tt.current=!0,()=>{tt.current=!1}),[])}const MotionConfigContext=reactExports.createContext({transformPagePoint:$=>$,isStatic:!1,reducedMotion:"never"}),MotionContext=reactExports.createContext({}),PresenceContext=reactExports.createContext(null),isBrowser=typeof document<"u",useIsomorphicLayoutEffect$1=isBrowser?reactExports.useLayoutEffect:reactExports.useEffect,LazyContext=reactExports.createContext({strict:!1});function useVisualElement($,et,tt,rt){const{visualElement:nt}=reactExports.useContext(MotionContext),it=reactExports.useContext(LazyContext),At=reactExports.useContext(PresenceContext),at=reactExports.useContext(MotionConfigContext).reducedMotion,ot=reactExports.useRef();rt=rt||it.renderer,!ot.current&&rt&&(ot.current=rt($,{visualState:et,parent:nt,props:tt,presenceContext:At,blockInitialAnimation:At?At.initial===!1:!1,reducedMotionConfig:at}));const st=ot.current;reactExports.useInsertionEffect(()=>{st&&st.update(tt,At)});const ct=reactExports.useRef(!!window.HandoffAppearAnimations);return useIsomorphicLayoutEffect$1(()=>{st&&(st.render(),ct.current&&st.animationState&&st.animationState.animateChanges())}),reactExports.useEffect(()=>{st&&(st.updateFeatures(),!ct.current&&st.animationState&&st.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,ct.current=!1)}),st}function isRefObject($){return typeof $=="object"&&Object.prototype.hasOwnProperty.call($,"current")}function useMotionRef($,et,tt){return reactExports.useCallback(rt=>{rt&&$.mount&&$.mount(rt),et&&(rt?et.mount(rt):et.unmount()),tt&&(typeof tt=="function"?tt(rt):isRefObject(tt)&&(tt.current=rt))},[et])}function isVariantLabel($){return typeof $=="string"||Array.isArray($)}function isAnimationControls($){return typeof $=="object"&&typeof $.start=="function"}const variantPriorityOrder=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],variantProps=["initial",...variantPriorityOrder];function isControllingVariants($){return isAnimationControls($.animate)||variantProps.some(et=>isVariantLabel($[et]))}function isVariantNode($){return!!(isControllingVariants($)||$.variants)}function getCurrentTreeVariants($,et){if(isControllingVariants($)){const{initial:tt,animate:rt}=$;return{initial:tt===!1||isVariantLabel(tt)?tt:void 0,animate:isVariantLabel(rt)?rt:void 0}}return $.inherit!==!1?et:{}}function useCreateMotionContext($){const{initial:et,animate:tt}=getCurrentTreeVariants($,reactExports.useContext(MotionContext));return reactExports.useMemo(()=>({initial:et,animate:tt}),[variantLabelsAsDependency(et),variantLabelsAsDependency(tt)])}function variantLabelsAsDependency($){return Array.isArray($)?$.join(" "):$}const featureProps={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},featureDefinitions={};for(const $ in featureProps)featureDefinitions[$]={isEnabled:et=>featureProps[$].some(tt=>!!et[tt])};function loadFeatures($){for(const et in $)featureDefinitions[et]={...featureDefinitions[et],...$[et]}}const LayoutGroupContext=reactExports.createContext({}),SwitchLayoutGroupContext=reactExports.createContext({}),motionComponentSymbol=Symbol.for("motionComponentSymbol");function createMotionComponent({preloadedFeatures:$,createVisualElement:et,useRender:tt,useVisualState:rt,Component:nt}){$&&loadFeatures($);function it(at,ot){let st;const ct={...reactExports.useContext(MotionConfigContext),...at,layoutId:useLayoutId(at)},{isStatic:ut}=ct,gt=useCreateMotionContext(at),dt=rt(at,ut);if(!ut&&isBrowser){gt.visualElement=useVisualElement(nt,dt,ct,et);const ht=reactExports.useContext(SwitchLayoutGroupContext),Et=reactExports.useContext(LazyContext).strict;gt.visualElement&&(st=gt.visualElement.loadFeatures(ct,Et,$,ht))}return reactExports.createElement(MotionContext.Provider,{value:gt},st&>.visualElement?reactExports.createElement(st,{visualElement:gt.visualElement,...ct}):null,tt(nt,at,useMotionRef(dt,gt.visualElement,ot),dt,ut,gt.visualElement))}const At=reactExports.forwardRef(it);return At[motionComponentSymbol]=nt,At}function useLayoutId({layoutId:$}){const et=reactExports.useContext(LayoutGroupContext).id;return et&&$!==void 0?et+"-"+$:$}function createMotionProxy($){function et(rt,nt={}){return createMotionComponent($(rt,nt))}if(typeof Proxy>"u")return et;const tt=new Map;return new Proxy(et,{get:(rt,nt)=>(tt.has(nt)||tt.set(nt,et(nt)),tt.get(nt))})}const lowercaseSVGElements=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent($){return typeof $!="string"||$.includes("-")?!1:!!(lowercaseSVGElements.indexOf($)>-1||/[A-Z]/.test($))}const scaleCorrectors={};function addScaleCorrector($){Object.assign(scaleCorrectors,$)}const transformPropOrder=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],transformProps=new Set(transformPropOrder);function isForcedMotionValue($,{layout:et,layoutId:tt}){return transformProps.has($)||$.startsWith("origin")||(et||tt!==void 0)&&(!!scaleCorrectors[$]||$==="opacity")}const isMotionValue=$=>!!($&&$.getVelocity),translateAlias={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},numTransforms=transformPropOrder.length;function buildTransform($,{enableHardwareAcceleration:et=!0,allowTransformNone:tt=!0},rt,nt){let it="";for(let At=0;Atet=>typeof et=="string"&&et.startsWith($),isCSSVariableName=checkStringStartsWith("--"),isCSSVariableToken=checkStringStartsWith("var(--"),cssVariableRegex=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,getValueAsType=($,et)=>et&&typeof $=="number"?et.transform($):$,clamp=($,et,tt)=>Math.min(Math.max(tt,$),et),number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha={...number$1,transform:$=>clamp(0,1,$)},scale={...number$1,default:1},sanitize=$=>Math.round($*1e5)/1e5,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString($){return typeof $=="string"}const createUnitType=$=>({test:et=>isString(et)&&et.endsWith($)&&et.split(" ").length===1,parse:parseFloat,transform:et=>`${et}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),vh=createUnitType("vh"),vw=createUnitType("vw"),progressPercentage={...percent,parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)},int={...number$1,transform:Math.round},numberValueTypes={borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale,scaleX:scale,scaleY:scale,scaleZ:scale,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int};function buildHTMLStyles($,et,tt,rt){const{style:nt,vars:it,transform:At,transformOrigin:at}=$;let ot=!1,st=!1,ct=!0;for(const ut in et){const gt=et[ut];if(isCSSVariableName(ut)){it[ut]=gt;continue}const dt=numberValueTypes[ut],ht=getValueAsType(gt,dt);if(transformProps.has(ut)){if(ot=!0,At[ut]=ht,!ct)continue;gt!==(dt.default||0)&&(ct=!1)}else ut.startsWith("origin")?(st=!0,at[ut]=ht):nt[ut]=ht}if(et.transform||(ot||rt?nt.transform=buildTransform($.transform,tt,ct,rt):nt.transform&&(nt.transform="none")),st){const{originX:ut="50%",originY:gt="50%",originZ:dt=0}=at;nt.transformOrigin=`${ut} ${gt} ${dt}`}}const createHtmlRenderState=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly($,et,tt){for(const rt in et)!isMotionValue(et[rt])&&!isForcedMotionValue(rt,tt)&&($[rt]=et[rt])}function useInitialMotionValues({transformTemplate:$},et,tt){return reactExports.useMemo(()=>{const rt=createHtmlRenderState();return buildHTMLStyles(rt,et,{enableHardwareAcceleration:!tt},$),Object.assign({},rt.vars,rt.style)},[et])}function useStyle($,et,tt){const rt=$.style||{},nt={};return copyRawValuesOnly(nt,rt,$),Object.assign(nt,useInitialMotionValues($,et,tt)),$.transformValues?$.transformValues(nt):nt}function useHTMLProps($,et,tt){const rt={},nt=useStyle($,et,tt);return $.drag&&$.dragListener!==!1&&(rt.draggable=!1,nt.userSelect=nt.WebkitUserSelect=nt.WebkitTouchCallout="none",nt.touchAction=$.drag===!0?"none":`pan-${$.drag==="x"?"y":"x"}`),$.tabIndex===void 0&&($.onTap||$.onTapStart||$.whileTap)&&(rt.tabIndex=0),rt.style=nt,rt}const validMotionProps=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function isValidMotionProp($){return $.startsWith("while")||$.startsWith("drag")&&$!=="draggable"||$.startsWith("layout")||$.startsWith("onTap")||$.startsWith("onPan")||validMotionProps.has($)}let shouldForward=$=>!isValidMotionProp($);function loadExternalIsValidProp($){$&&(shouldForward=et=>et.startsWith("on")?!isValidMotionProp(et):$(et))}try{loadExternalIsValidProp(require("@emotion/is-prop-valid").default)}catch{}function filterProps($,et,tt){const rt={};for(const nt in $)nt==="values"&&typeof $.values=="object"||(shouldForward(nt)||tt===!0&&isValidMotionProp(nt)||!et&&!isValidMotionProp(nt)||$.draggable&&nt.startsWith("onDrag"))&&(rt[nt]=$[nt]);return rt}function calcOrigin$1($,et,tt){return typeof $=="string"?$:px.transform(et+tt*$)}function calcSVGTransformOrigin($,et,tt){const rt=calcOrigin$1(et,$.x,$.width),nt=calcOrigin$1(tt,$.y,$.height);return`${rt} ${nt}`}const dashKeys={offset:"stroke-dashoffset",array:"stroke-dasharray"},camelKeys={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGPath($,et,tt=1,rt=0,nt=!0){$.pathLength=1;const it=nt?dashKeys:camelKeys;$[it.offset]=px.transform(-rt);const At=px.transform(et),at=px.transform(tt);$[it.array]=`${At} ${at}`}function buildSVGAttrs($,{attrX:et,attrY:tt,attrScale:rt,originX:nt,originY:it,pathLength:At,pathSpacing:at=1,pathOffset:ot=0,...st},ct,ut,gt){if(buildHTMLStyles($,st,ct,gt),ut){$.style.viewBox&&($.attrs.viewBox=$.style.viewBox);return}$.attrs=$.style,$.style={};const{attrs:dt,style:ht,dimensions:Et}=$;dt.transform&&(Et&&(ht.transform=dt.transform),delete dt.transform),Et&&(nt!==void 0||it!==void 0||ht.transform)&&(ht.transformOrigin=calcSVGTransformOrigin(Et,nt!==void 0?nt:.5,it!==void 0?it:.5)),et!==void 0&&(dt.x=et),tt!==void 0&&(dt.y=tt),rt!==void 0&&(dt.scale=rt),At!==void 0&&buildSVGPath(dt,At,at,ot,!1)}const createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=$=>typeof $=="string"&&$.toLowerCase()==="svg";function useSVGProps($,et,tt,rt){const nt=reactExports.useMemo(()=>{const it=createSvgRenderState();return buildSVGAttrs(it,et,{enableHardwareAcceleration:!1},isSVGTag(rt),$.transformTemplate),{...it.attrs,style:{...it.style}}},[et]);if($.style){const it={};copyRawValuesOnly(it,$.style,$),nt.style={...it,...nt.style}}return nt}function createUseRender($=!1){return(tt,rt,nt,{latestValues:it},At)=>{const ot=(isSVGComponent(tt)?useSVGProps:useHTMLProps)(rt,it,At,tt),ct={...filterProps(rt,typeof tt=="string",$),...ot,ref:nt},{children:ut}=rt,gt=reactExports.useMemo(()=>isMotionValue(ut)?ut.get():ut,[ut]);return reactExports.createElement(tt,{...ct,children:gt})}}const camelToDash=$=>$.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function renderHTML($,{style:et,vars:tt},rt,nt){Object.assign($.style,et,nt&&nt.getProjectionStyles(rt));for(const it in tt)$.style.setProperty(it,tt[it])}const camelCaseAttributes=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG($,et,tt,rt){renderHTML($,et,void 0,rt);for(const nt in et.attrs)$.setAttribute(camelCaseAttributes.has(nt)?nt:camelToDash(nt),et.attrs[nt])}function scrapeMotionValuesFromProps$1($,et){const{style:tt}=$,rt={};for(const nt in tt)(isMotionValue(tt[nt])||et.style&&isMotionValue(et.style[nt])||isForcedMotionValue(nt,$))&&(rt[nt]=tt[nt]);return rt}function scrapeMotionValuesFromProps($,et){const tt=scrapeMotionValuesFromProps$1($,et);for(const rt in $)if(isMotionValue($[rt])||isMotionValue(et[rt])){const nt=transformPropOrder.indexOf(rt)!==-1?"attr"+rt.charAt(0).toUpperCase()+rt.substring(1):rt;tt[nt]=$[rt]}return tt}function resolveVariantFromProps($,et,tt,rt={},nt={}){return typeof et=="function"&&(et=et(tt!==void 0?tt:$.custom,rt,nt)),typeof et=="string"&&(et=$.variants&&$.variants[et]),typeof et=="function"&&(et=et(tt!==void 0?tt:$.custom,rt,nt)),et}function useConstant($){const et=reactExports.useRef(null);return et.current===null&&(et.current=$()),et.current}const isKeyframesTarget=$=>Array.isArray($),isCustomValue=$=>!!($&&typeof $=="object"&&$.mix&&$.toValue),resolveFinalValueInKeyframes=$=>isKeyframesTarget($)?$[$.length-1]||0:$;function resolveMotionValue($){const et=isMotionValue($)?$.get():$;return isCustomValue(et)?et.toValue():et}function makeState({scrapeMotionValuesFromProps:$,createRenderState:et,onMount:tt},rt,nt,it){const At={latestValues:makeLatestValues(rt,nt,it,$),renderState:et()};return tt&&(At.mount=at=>tt(rt,at,At)),At}const makeUseVisualState=$=>(et,tt)=>{const rt=reactExports.useContext(MotionContext),nt=reactExports.useContext(PresenceContext),it=()=>makeState($,et,rt,nt);return tt?it():useConstant(it)};function makeLatestValues($,et,tt,rt){const nt={},it=rt($,{});for(const gt in it)nt[gt]=resolveMotionValue(it[gt]);let{initial:At,animate:at}=$;const ot=isControllingVariants($),st=isVariantNode($);et&&st&&!ot&&$.inherit!==!1&&(At===void 0&&(At=et.initial),at===void 0&&(at=et.animate));let ct=tt?tt.initial===!1:!1;ct=ct||At===!1;const ut=ct?at:At;return ut&&typeof ut!="boolean"&&!isAnimationControls(ut)&&(Array.isArray(ut)?ut:[ut]).forEach(dt=>{const ht=resolveVariantFromProps($,dt);if(!ht)return;const{transitionEnd:Et,transition:wt,...mt}=ht;for(const pt in mt){let Qt=mt[pt];if(Array.isArray(Qt)){const $t=ct?Qt.length-1:0;Qt=Qt[$t]}Qt!==null&&(nt[pt]=Qt)}for(const pt in Et)nt[pt]=Et[pt]}),nt}const noop=$=>$;class Queue{constructor(){this.order=[],this.scheduled=new Set}add(et){if(!this.scheduled.has(et))return this.scheduled.add(et),this.order.push(et),!0}remove(et){const tt=this.order.indexOf(et);tt!==-1&&(this.order.splice(tt,1),this.scheduled.delete(et))}clear(){this.order.length=0,this.scheduled.clear()}}function createRenderStep($){let et=new Queue,tt=new Queue,rt=0,nt=!1,it=!1;const At=new WeakSet,at={schedule:(ot,st=!1,ct=!1)=>{const ut=ct&&nt,gt=ut?et:tt;return st&&At.add(ot),gt.add(ot)&&ut&&nt&&(rt=et.order.length),ot},cancel:ot=>{tt.remove(ot),At.delete(ot)},process:ot=>{if(nt){it=!0;return}if(nt=!0,[et,tt]=[tt,et],tt.clear(),rt=et.order.length,rt)for(let st=0;st(ut[gt]=createRenderStep(()=>tt=!0),ut),{}),At=ut=>it[ut].process(nt),at=()=>{const ut=performance.now();tt=!1,nt.delta=rt?1e3/60:Math.max(Math.min(ut-nt.timestamp,maxElapsed),1),nt.timestamp=ut,nt.isProcessing=!0,stepsOrder.forEach(At),nt.isProcessing=!1,tt&&et&&(rt=!1,$(at))},ot=()=>{tt=!0,rt=!0,nt.isProcessing||$(at)};return{schedule:stepsOrder.reduce((ut,gt)=>{const dt=it[gt];return ut[gt]=(ht,Et=!1,wt=!1)=>(tt||ot(),dt.schedule(ht,Et,wt)),ut},{}),cancel:ut=>stepsOrder.forEach(gt=>it[gt].cancel(ut)),state:nt,steps:it}}const{schedule:frame,cancel:cancelFrame,state:frameData,steps}=createRenderBatcher(typeof requestAnimationFrame<"u"?requestAnimationFrame:noop,!0),svgMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:($,et,{renderState:tt,latestValues:rt})=>{frame.read(()=>{try{tt.dimensions=typeof et.getBBox=="function"?et.getBBox():et.getBoundingClientRect()}catch{tt.dimensions={x:0,y:0,width:0,height:0}}}),frame.render(()=>{buildSVGAttrs(tt,rt,{enableHardwareAcceleration:!1},isSVGTag(et.tagName),$.transformTemplate),renderSVG(et,tt)})}})},htmlMotionConfig={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps$1,createRenderState:createHtmlRenderState})};function createDomMotionConfig($,{forwardMotionProps:et=!1},tt,rt){return{...isSVGComponent($)?svgMotionConfig:htmlMotionConfig,preloadedFeatures:tt,useRender:createUseRender(et),createVisualElement:rt,Component:$}}function addDomEvent($,et,tt,rt={passive:!0}){return $.addEventListener(et,tt,rt),()=>$.removeEventListener(et,tt)}const isPrimaryPointer=$=>$.pointerType==="mouse"?typeof $.button!="number"||$.button<=0:$.isPrimary!==!1;function extractEventInfo($,et="page"){return{point:{x:$[et+"X"],y:$[et+"Y"]}}}const addPointerInfo=$=>et=>isPrimaryPointer(et)&&$(et,extractEventInfo(et));function addPointerEvent($,et,tt,rt){return addDomEvent($,et,addPointerInfo(tt),rt)}const combineFunctions=($,et)=>tt=>et($(tt)),pipe=(...$)=>$.reduce(combineFunctions);function createLock($){let et=null;return()=>{const tt=()=>{et=null};return et===null?(et=$,tt):!1}}const globalHorizontalLock=createLock("dragHorizontal"),globalVerticalLock=createLock("dragVertical");function getGlobalLock($){let et=!1;if($==="y")et=globalVerticalLock();else if($==="x")et=globalHorizontalLock();else{const tt=globalHorizontalLock(),rt=globalVerticalLock();tt&&rt?et=()=>{tt(),rt()}:(tt&&tt(),rt&&rt())}return et}function isDragActive(){const $=getGlobalLock(!0);return $?($(),!1):!0}class Feature{constructor(et){this.isMounted=!1,this.node=et}update(){}}function addHoverEvent($,et){const tt="pointer"+(et?"enter":"leave"),rt="onHover"+(et?"Start":"End"),nt=(it,At)=>{if(it.type==="touch"||isDragActive())return;const at=$.getProps();$.animationState&&at.whileHover&&$.animationState.setActive("whileHover",et),at[rt]&&frame.update(()=>at[rt](it,At))};return addPointerEvent($.current,tt,nt,{passive:!$.getProps()[rt]})}class HoverGesture extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}class FocusGesture extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let et=!1;try{et=this.node.current.matches(":focus-visible")}catch{et=!0}!et||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const isNodeOrChild=($,et)=>et?$===et?!0:isNodeOrChild($,et.parentElement):!1;function fireSyntheticPointerEvent($,et){if(!et)return;const tt=new PointerEvent("pointer"+$);et(tt,extractEventInfo(tt))}class PressGesture extends Feature{constructor(){super(...arguments),this.removeStartListeners=noop,this.removeEndListeners=noop,this.removeAccessibleListeners=noop,this.startPointerPress=(et,tt)=>{if(this.removeEndListeners(),this.isPressing)return;const rt=this.node.getProps(),it=addPointerEvent(window,"pointerup",(at,ot)=>{if(!this.checkPressEnd())return;const{onTap:st,onTapCancel:ct}=this.node.getProps();frame.update(()=>{isNodeOrChild(this.node.current,at.target)?st&&st(at,ot):ct&&ct(at,ot)})},{passive:!(rt.onTap||rt.onPointerUp)}),At=addPointerEvent(window,"pointercancel",(at,ot)=>this.cancelPress(at,ot),{passive:!(rt.onTapCancel||rt.onPointerCancel)});this.removeEndListeners=pipe(it,At),this.startPress(et,tt)},this.startAccessiblePress=()=>{const et=it=>{if(it.key!=="Enter"||this.isPressing)return;const At=at=>{at.key!=="Enter"||!this.checkPressEnd()||fireSyntheticPointerEvent("up",(ot,st)=>{const{onTap:ct}=this.node.getProps();ct&&frame.update(()=>ct(ot,st))})};this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",At),fireSyntheticPointerEvent("down",(at,ot)=>{this.startPress(at,ot)})},tt=addDomEvent(this.node.current,"keydown",et),rt=()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(it,At)=>this.cancelPress(it,At))},nt=addDomEvent(this.node.current,"blur",rt);this.removeAccessibleListeners=pipe(tt,nt)}}startPress(et,tt){this.isPressing=!0;const{onTapStart:rt,whileTap:nt}=this.node.getProps();nt&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),rt&&frame.update(()=>rt(et,tt))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(et,tt){if(!this.checkPressEnd())return;const{onTapCancel:rt}=this.node.getProps();rt&&frame.update(()=>rt(et,tt))}mount(){const et=this.node.getProps(),tt=addPointerEvent(this.node.current,"pointerdown",this.startPointerPress,{passive:!(et.onTapStart||et.onPointerStart)}),rt=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(tt,rt)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const observerCallbacks=new WeakMap,observers=new WeakMap,fireObserverCallback=$=>{const et=observerCallbacks.get($.target);et&&et($)},fireAllObserverCallbacks=$=>{$.forEach(fireObserverCallback)};function initIntersectionObserver({root:$,...et}){const tt=$||document;observers.has(tt)||observers.set(tt,{});const rt=observers.get(tt),nt=JSON.stringify(et);return rt[nt]||(rt[nt]=new IntersectionObserver(fireAllObserverCallbacks,{root:$,...et})),rt[nt]}function observeIntersection($,et,tt){const rt=initIntersectionObserver(et);return observerCallbacks.set($,tt),rt.observe($),()=>{observerCallbacks.delete($),rt.unobserve($)}}const thresholdNames={some:0,all:1};class InViewFeature extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:et={}}=this.node.getProps(),{root:tt,margin:rt,amount:nt="some",once:it}=et,At={root:tt?tt.current:void 0,rootMargin:rt,threshold:typeof nt=="number"?nt:thresholdNames[nt]},at=ot=>{const{isIntersecting:st}=ot;if(this.isInView===st||(this.isInView=st,it&&!st&&this.hasEnteredView))return;st&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",st);const{onViewportEnter:ct,onViewportLeave:ut}=this.node.getProps(),gt=st?ct:ut;gt&>(ot)};return observeIntersection(this.node.current,At,at)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:et,prevProps:tt}=this.node;["amount","margin","root"].some(hasViewportOptionChanged(et,tt))&&this.startObserver()}unmount(){}}function hasViewportOptionChanged({viewport:$={}},{viewport:et={}}={}){return tt=>$[tt]!==et[tt]}const gestureAnimations={inView:{Feature:InViewFeature},tap:{Feature:PressGesture},focus:{Feature:FocusGesture},hover:{Feature:HoverGesture}};function shallowCompare($,et){if(!Array.isArray(et))return!1;const tt=et.length;if(tt!==$.length)return!1;for(let rt=0;rtet[rt]=tt.get()),et}function getVelocity$1($){const et={};return $.values.forEach((tt,rt)=>et[rt]=tt.getVelocity()),et}function resolveVariant($,et,tt){const rt=$.getProps();return resolveVariantFromProps(rt,et,tt!==void 0?tt:rt.custom,getCurrent($),getVelocity$1($))}const optimizedAppearDataId="framerAppearId",optimizedAppearDataAttribute="data-"+camelToDash(optimizedAppearDataId);let warning=noop,invariant=noop;const secondsToMilliseconds=$=>$*1e3,millisecondsToSeconds=$=>$/1e3,instantAnimationState={current:!1},isBezierDefinition=$=>Array.isArray($)&&typeof $[0]=="number";function isWaapiSupportedEasing($){return!!(!$||typeof $=="string"&&supportedWaapiEasing[$]||isBezierDefinition($)||Array.isArray($)&&$.every(isWaapiSupportedEasing))}const cubicBezierAsString=([$,et,tt,rt])=>`cubic-bezier(${$}, ${et}, ${tt}, ${rt})`,supportedWaapiEasing={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])};function mapEasingToNativeEasing($){if($)return isBezierDefinition($)?cubicBezierAsString($):Array.isArray($)?$.map(mapEasingToNativeEasing):supportedWaapiEasing[$]}function animateStyle($,et,tt,{delay:rt=0,duration:nt,repeat:it=0,repeatType:At="loop",ease:at,times:ot}={}){const st={[et]:tt};ot&&(st.offset=ot);const ct=mapEasingToNativeEasing(at);return Array.isArray(ct)&&(st.easing=ct),$.animate(st,{delay:rt,duration:nt,easing:Array.isArray(ct)?"linear":ct,fill:"both",iterations:it+1,direction:At==="reverse"?"alternate":"normal"})}function getFinalKeyframe($,{repeat:et,repeatType:tt="loop"}){const rt=et&&tt!=="loop"&&et%2===1?0:$.length-1;return $[rt]}const calcBezier=($,et,tt)=>(((1-3*tt+3*et)*$+(3*tt-6*et))*$+3*et)*$,subdivisionPrecision=1e-7,subdivisionMaxIterations=12;function binarySubdivide($,et,tt,rt,nt){let it,At,at=0;do At=et+(tt-et)/2,it=calcBezier(At,rt,nt)-$,it>0?tt=At:et=At;while(Math.abs(it)>subdivisionPrecision&&++atbinarySubdivide(it,0,1,$,tt);return it=>it===0||it===1?it:calcBezier(nt(it),et,rt)}const easeIn=cubicBezier(.42,0,1,1),easeOut=cubicBezier(0,0,.58,1),easeInOut=cubicBezier(.42,0,.58,1),isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",mirrorEasing=$=>et=>et<=.5?$(2*et)/2:(2-$(2*(1-et)))/2,reverseEasing=$=>et=>1-$(1-et),circIn=$=>1-Math.sin(Math.acos($)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backOut=cubicBezier(.33,1.53,.69,.99),backIn=reverseEasing(backOut),backInOut=mirrorEasing(backIn),anticipate=$=>($*=2)<1?.5*backIn($):.5*(2-Math.pow(2,-10*($-1))),easingLookup={linear:noop,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate},easingDefinitionToFunction=$=>{if(Array.isArray($)){invariant($.length===4);const[et,tt,rt,nt]=$;return cubicBezier(et,tt,rt,nt)}else if(typeof $=="string")return easingLookup[$];return $},isColorString=($,et)=>tt=>!!(isString(tt)&&singleColorRegex.test(tt)&&tt.startsWith($)||et&&Object.prototype.hasOwnProperty.call(tt,et)),splitColor=($,et,tt)=>rt=>{if(!isString(rt))return rt;const[nt,it,At,at]=rt.match(floatRegex);return{[$]:parseFloat(nt),[et]:parseFloat(it),[tt]:parseFloat(At),alpha:at!==void 0?parseFloat(at):1}},clampRgbUnit=$=>clamp(0,255,$),rgbUnit={...number$1,transform:$=>Math.round(clampRgbUnit($))},rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:et,blue:tt,alpha:rt=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(et)+", "+rgbUnit.transform(tt)+", "+sanitize(alpha.transform(rt))+")"};function parseHex($){let et="",tt="",rt="",nt="";return $.length>5?(et=$.substring(1,3),tt=$.substring(3,5),rt=$.substring(5,7),nt=$.substring(7,9)):(et=$.substring(1,2),tt=$.substring(2,3),rt=$.substring(3,4),nt=$.substring(4,5),et+=et,tt+=tt,rt+=rt,nt+=nt),{red:parseInt(et,16),green:parseInt(tt,16),blue:parseInt(rt,16),alpha:nt?parseInt(nt,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:et,lightness:tt,alpha:rt=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(et))+", "+percent.transform(sanitize(tt))+", "+sanitize(alpha.transform(rt))+")"},color={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},mix=($,et,tt)=>-tt*$+tt*et+$;function hueToRgb($,et,tt){return tt<0&&(tt+=1),tt>1&&(tt-=1),tt<1/6?$+(et-$)*6*tt:tt<1/2?et:tt<2/3?$+(et-$)*(2/3-tt)*6:$}function hslaToRgba({hue:$,saturation:et,lightness:tt,alpha:rt}){$/=360,et/=100,tt/=100;let nt=0,it=0,At=0;if(!et)nt=it=At=tt;else{const at=tt<.5?tt*(1+et):tt+et-tt*et,ot=2*tt-at;nt=hueToRgb(ot,at,$+1/3),it=hueToRgb(ot,at,$),At=hueToRgb(ot,at,$-1/3)}return{red:Math.round(nt*255),green:Math.round(it*255),blue:Math.round(At*255),alpha:rt}}const mixLinearColor=($,et,tt)=>{const rt=$*$;return Math.sqrt(Math.max(0,tt*(et*et-rt)+rt))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(et=>et.test($));function asRGBA($){const et=getColorType($);let tt=et.parse($);return et===hsla&&(tt=hslaToRgba(tt)),tt}const mixColor=($,et)=>{const tt=asRGBA($),rt=asRGBA(et),nt={...tt};return it=>(nt.red=mixLinearColor(tt.red,rt.red,it),nt.green=mixLinearColor(tt.green,rt.green,it),nt.blue=mixLinearColor(tt.blue,rt.blue,it),nt.alpha=mix(tt.alpha,rt.alpha,it),rgba.transform(nt))};function test($){var et,tt;return isNaN($)&&isString($)&&(((et=$.match(floatRegex))===null||et===void 0?void 0:et.length)||0)+(((tt=$.match(colorRegex))===null||tt===void 0?void 0:tt.length)||0)>0}const cssVarTokeniser={regex:cssVariableRegex,countKey:"Vars",token:"${v}",parse:noop},colorTokeniser={regex:colorRegex,countKey:"Colors",token:"${c}",parse:color.parse},numberTokeniser={regex:floatRegex,countKey:"Numbers",token:"${n}",parse:number$1.parse};function tokenise($,{regex:et,countKey:tt,token:rt,parse:nt}){const it=$.tokenised.match(et);it&&($["num"+tt]=it.length,$.tokenised=$.tokenised.replace(et,rt),$.values.push(...it.map(nt)))}function analyseComplexValue($){const et=$.toString(),tt={value:et,tokenised:et,values:[],numVars:0,numColors:0,numNumbers:0};return tt.value.includes("var(--")&&tokenise(tt,cssVarTokeniser),tokenise(tt,colorTokeniser),tokenise(tt,numberTokeniser),tt}function parseComplexValue($){return analyseComplexValue($).values}function createTransformer($){const{values:et,numColors:tt,numVars:rt,tokenised:nt}=analyseComplexValue($),it=et.length;return At=>{let at=nt;for(let ot=0;ottypeof $=="number"?0:$;function getAnimatableNone$1($){const et=parseComplexValue($);return createTransformer($)(et.map(convertNumbersToZero))}const complex={test,parse:parseComplexValue,createTransformer,getAnimatableNone:getAnimatableNone$1},mixImmediate=($,et)=>tt=>`${tt>0?et:$}`;function getMixer($,et){return typeof $=="number"?tt=>mix($,et,tt):color.test($)?mixColor($,et):$.startsWith("var(")?mixImmediate($,et):mixComplex($,et)}const mixArray=($,et)=>{const tt=[...$],rt=tt.length,nt=$.map((it,At)=>getMixer(it,et[At]));return it=>{for(let At=0;At{const tt={...$,...et},rt={};for(const nt in tt)$[nt]!==void 0&&et[nt]!==void 0&&(rt[nt]=getMixer($[nt],et[nt]));return nt=>{for(const it in rt)tt[it]=rt[it](nt);return tt}},mixComplex=($,et)=>{const tt=complex.createTransformer(et),rt=analyseComplexValue($),nt=analyseComplexValue(et);return rt.numVars===nt.numVars&&rt.numColors===nt.numColors&&rt.numNumbers>=nt.numNumbers?pipe(mixArray(rt.values,nt.values),tt):mixImmediate($,et)},progress=($,et,tt)=>{const rt=et-$;return rt===0?1:(tt-$)/rt},mixNumber=($,et)=>tt=>mix($,et,tt);function detectMixerFactory($){return typeof $=="number"?mixNumber:typeof $=="string"?color.test($)?mixColor:mixComplex:Array.isArray($)?mixArray:typeof $=="object"?mixObject:mixNumber}function createMixers($,et,tt){const rt=[],nt=tt||detectMixerFactory($[0]),it=$.length-1;for(let At=0;Atet[0];$[0]>$[it-1]&&($=[...$].reverse(),et=[...et].reverse());const At=createMixers(et,rt,nt),at=At.length,ot=st=>{let ct=0;if(at>1)for(;ct<$.length-2&&!(st<$[ct+1]);ct++);const ut=progress($[ct],$[ct+1],st);return At[ct](ut)};return tt?st=>ot(clamp($[0],$[it-1],st)):ot}function fillOffset($,et){const tt=$[$.length-1];for(let rt=1;rt<=et;rt++){const nt=progress(0,et,rt);$.push(mix(tt,1,nt))}}function defaultOffset($){const et=[0];return fillOffset(et,$.length-1),et}function convertOffsetToTimes($,et){return $.map(tt=>tt*et)}function defaultEasing($,et){return $.map(()=>et||easeInOut).splice(0,$.length-1)}function keyframes({duration:$=300,keyframes:et,times:tt,ease:rt="easeInOut"}){const nt=isEasingArray(rt)?rt.map(easingDefinitionToFunction):easingDefinitionToFunction(rt),it={done:!1,value:et[0]},At=convertOffsetToTimes(tt&&tt.length===et.length?tt:defaultOffset(et),$),at=interpolate(At,et,{ease:Array.isArray(nt)?nt:defaultEasing(et,nt)});return{calculatedDuration:$,next:ot=>(it.value=at(ot),it.done=ot>=$,it)}}function velocityPerSecond($,et){return et?$*(1e3/et):0}const velocitySampleDuration=5;function calcGeneratorVelocity($,et,tt){const rt=Math.max(et-velocitySampleDuration,0);return velocityPerSecond(tt-$(rt),et-rt)}const safeMin=.001,minDuration=.01,maxDuration$1=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:et=.25,velocity:tt=0,mass:rt=1}){let nt,it;warning($<=secondsToMilliseconds(maxDuration$1));let At=1-et;At=clamp(minDamping,maxDamping,At),$=clamp(minDuration,maxDuration$1,millisecondsToSeconds($)),At<1?(nt=st=>{const ct=st*At,ut=ct*$,gt=ct-tt,dt=calcAngularFreq(st,At),ht=Math.exp(-ut);return safeMin-gt/dt*ht},it=st=>{const ut=st*At*$,gt=ut*tt+tt,dt=Math.pow(At,2)*Math.pow(st,2)*$,ht=Math.exp(-ut),Et=calcAngularFreq(Math.pow(st,2),At);return(-nt(st)+safeMin>0?-1:1)*((gt-dt)*ht)/Et}):(nt=st=>{const ct=Math.exp(-st*$),ut=(st-tt)*$+1;return-safeMin+ct*ut},it=st=>{const ct=Math.exp(-st*$),ut=(tt-st)*($*$);return ct*ut});const at=5/$,ot=approximateRoot(nt,it,at);if($=secondsToMilliseconds($),isNaN(ot))return{stiffness:100,damping:10,duration:$};{const st=Math.pow(ot,2)*rt;return{stiffness:st,damping:At*2*Math.sqrt(rt*st),duration:$}}}const rootIterations=12;function approximateRoot($,et,tt){let rt=tt;for(let nt=1;nt$[tt]!==void 0)}function getSpringOptions($){let et={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...$};if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const tt=findSpring($);et={...et,...tt,velocity:0,mass:1},et.isResolvedFromDuration=!0}return et}function spring({keyframes:$,restDelta:et,restSpeed:tt,...rt}){const nt=$[0],it=$[$.length-1],At={done:!1,value:nt},{stiffness:at,damping:ot,mass:st,velocity:ct,duration:ut,isResolvedFromDuration:gt}=getSpringOptions(rt),dt=ct?-millisecondsToSeconds(ct):0,ht=ot/(2*Math.sqrt(at*st)),Et=it-nt,wt=millisecondsToSeconds(Math.sqrt(at/st)),mt=Math.abs(Et)<5;tt||(tt=mt?.01:2),et||(et=mt?.005:.5);let pt;if(ht<1){const Qt=calcAngularFreq(wt,ht);pt=$t=>{const Gt=Math.exp(-ht*wt*$t);return it-Gt*((dt+ht*wt*Et)/Qt*Math.sin(Qt*$t)+Et*Math.cos(Qt*$t))}}else if(ht===1)pt=Qt=>it-Math.exp(-wt*Qt)*(Et+(dt+wt*Et)*Qt);else{const Qt=wt*Math.sqrt(ht*ht-1);pt=$t=>{const Gt=Math.exp(-ht*wt*$t),Tt=Math.min(Qt*$t,300);return it-Gt*((dt+ht*wt*Et)*Math.sinh(Tt)+Qt*Et*Math.cosh(Tt))/Qt}}return{calculatedDuration:gt&&ut||null,next:Qt=>{const $t=pt(Qt);if(gt)At.done=Qt>=ut;else{let Gt=dt;Qt!==0&&(ht<1?Gt=calcGeneratorVelocity(pt,Qt,$t):Gt=0);const Tt=Math.abs(Gt)<=tt,Pt=Math.abs(it-$t)<=et;At.done=Tt&&Pt}return At.value=At.done?it:$t,At}}}function inertia({keyframes:$,velocity:et=0,power:tt=.8,timeConstant:rt=325,bounceDamping:nt=10,bounceStiffness:it=500,modifyTarget:At,min:at,max:ot,restDelta:st=.5,restSpeed:ct}){const ut=$[0],gt={done:!1,value:ut},dt=Kt=>at!==void 0&&Ktot,ht=Kt=>at===void 0?ot:ot===void 0||Math.abs(at-Kt)-Et*Math.exp(-Kt/rt),Qt=Kt=>mt+pt(Kt),$t=Kt=>{const ir=pt(Kt),jt=Qt(Kt);gt.done=Math.abs(ir)<=st,gt.value=gt.done?mt:jt};let Gt,Tt;const Pt=Kt=>{dt(gt.value)&&(Gt=Kt,Tt=spring({keyframes:[gt.value,ht(gt.value)],velocity:calcGeneratorVelocity(Qt,Kt,gt.value),damping:nt,stiffness:it,restDelta:st,restSpeed:ct}))};return Pt(0),{calculatedDuration:null,next:Kt=>{let ir=!1;return!Tt&&Gt===void 0&&(ir=!0,$t(Kt),Pt(Kt)),Gt!==void 0&&Kt>Gt?Tt.next(Kt-Gt):(!ir&&$t(Kt),gt)}}}const frameloopDriver=$=>{const et=({timestamp:tt})=>$(tt);return{start:()=>frame.update(et,!0),stop:()=>cancelFrame(et),now:()=>frameData.isProcessing?frameData.timestamp:performance.now()}},maxGeneratorDuration=2e4;function calcGeneratorDuration($){let et=0;const tt=50;let rt=$.next(et);for(;!rt.done&&et=maxGeneratorDuration?1/0:et}const types={decay:inertia,inertia,tween:keyframes,keyframes,spring};function animateValue({autoplay:$=!0,delay:et=0,driver:tt=frameloopDriver,keyframes:rt,type:nt="keyframes",repeat:it=0,repeatDelay:At=0,repeatType:at="loop",onPlay:ot,onStop:st,onComplete:ct,onUpdate:ut,...gt}){let dt=1,ht=!1,Et,wt;const mt=()=>{wt=new Promise(kt=>{Et=kt})};mt();let pt;const Qt=types[nt]||keyframes;let $t;Qt!==keyframes&&typeof rt[0]!="number"&&($t=interpolate([0,100],rt,{clamp:!1}),rt=[0,100]);const Gt=Qt({...gt,keyframes:rt});let Tt;at==="mirror"&&(Tt=Qt({...gt,keyframes:[...rt].reverse(),velocity:-(gt.velocity||0)}));let Pt="idle",Kt=null,ir=null,jt=null;Gt.calculatedDuration===null&&it&&(Gt.calculatedDuration=calcGeneratorDuration(Gt));const{calculatedDuration:Mt}=Gt;let Bt=1/0,vt=1/0;Mt!==null&&(Bt=Mt+At,vt=Bt*(it+1)-At);let Nt=0;const Ut=kt=>{if(ir===null)return;dt>0&&(ir=Math.min(ir,kt)),dt<0&&(ir=Math.min(kt-vt/dt,ir)),Kt!==null?Nt=Kt:Nt=Math.round(kt-ir)*dt;const Ar=Nt-et*(dt>=0?1:-1),cr=dt>=0?Ar<0:Ar>vt;Nt=Math.max(Ar,0),Pt==="finished"&&Kt===null&&(Nt=vt);let Rt=Nt,Qr=Gt;if(it){const kr=Nt/Bt;let Yt=Math.floor(kr),Xt=kr%1;!Xt&&kr>=1&&(Xt=1),Xt===1&&Yt--,Yt=Math.min(Yt,it+1);const tr=!!(Yt%2);tr&&(at==="reverse"?(Xt=1-Xt,At&&(Xt-=At/Bt)):at==="mirror"&&(Qr=Tt));let sr=clamp(0,1,Xt);Nt>vt&&(sr=at==="reverse"&&tr?1:0),Rt=sr*Bt}const _r=cr?{done:!1,value:rt[0]}:Qr.next(Rt);$t&&(_r.value=$t(_r.value));let{done:qr}=_r;!cr&&Mt!==null&&(qr=dt>=0?Nt>=vt:Nt<=0);const yr=Kt===null&&(Pt==="finished"||Pt==="running"&&qr);return ut&&ut(_r.value),yr&&Wt(),_r},Jt=()=>{pt&&pt.stop(),pt=void 0},rr=()=>{Pt="idle",Jt(),Et(),mt(),ir=jt=null},Wt=()=>{Pt="finished",ct&&ct(),Jt(),Et()},Ot=()=>{if(ht)return;pt||(pt=tt(Ut));const kt=pt.now();ot&&ot(),Kt!==null?ir=kt-Kt:(!ir||Pt==="finished")&&(ir=kt),Pt==="finished"&&mt(),jt=ir,Kt=null,Pt="running",pt.start()};$&&Ot();const bt={then(kt,Ar){return wt.then(kt,Ar)},get time(){return millisecondsToSeconds(Nt)},set time(kt){kt=secondsToMilliseconds(kt),Nt=kt,Kt!==null||!pt||dt===0?Kt=kt:ir=pt.now()-kt/dt},get duration(){const kt=Gt.calculatedDuration===null?calcGeneratorDuration(Gt):Gt.calculatedDuration;return millisecondsToSeconds(kt)},get speed(){return dt},set speed(kt){kt===dt||!pt||(dt=kt,bt.time=millisecondsToSeconds(Nt))},get state(){return Pt},play:Ot,pause:()=>{Pt="paused",Kt=Nt},stop:()=>{ht=!0,Pt!=="idle"&&(Pt="idle",st&&st(),rr())},cancel:()=>{jt!==null&&Ut(jt),rr()},complete:()=>{Pt="finished"},sample:kt=>(ir=0,Ut(kt))};return bt}function memo($){let et;return()=>(et===void 0&&(et=$()),et)}const supportsWaapi=memo(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),acceleratedValues=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),sampleDelta=10,maxDuration=2e4,requiresPregeneratedKeyframes=($,et)=>et.type==="spring"||$==="backgroundColor"||!isWaapiSupportedEasing(et.ease);function createAcceleratedAnimation($,et,{onUpdate:tt,onComplete:rt,...nt}){if(!(supportsWaapi()&&acceleratedValues.has(et)&&!nt.repeatDelay&&nt.repeatType!=="mirror"&&nt.damping!==0&&nt.type!=="inertia"))return!1;let At=!1,at,ot;const st=()=>{ot=new Promise(pt=>{at=pt})};st();let{keyframes:ct,duration:ut=300,ease:gt,times:dt}=nt;if(requiresPregeneratedKeyframes(et,nt)){const pt=animateValue({...nt,repeat:0,delay:0});let Qt={done:!1,value:ct[0]};const $t=[];let Gt=0;for(;!Qt.done&&Gtht.cancel(),wt=()=>{frame.update(Et),at(),st()};return ht.onfinish=()=>{$.set(getFinalKeyframe(ct,nt)),rt&&rt(),wt()},{then(pt,Qt){return ot.then(pt,Qt)},attachTimeline(pt){return ht.timeline=pt,ht.onfinish=null,noop},get time(){return millisecondsToSeconds(ht.currentTime||0)},set time(pt){ht.currentTime=secondsToMilliseconds(pt)},get speed(){return ht.playbackRate},set speed(pt){ht.playbackRate=pt},get duration(){return millisecondsToSeconds(ut)},play:()=>{At||(ht.play(),cancelFrame(Et))},pause:()=>ht.pause(),stop:()=>{if(At=!0,ht.playState==="idle")return;const{currentTime:pt}=ht;if(pt){const Qt=animateValue({...nt,autoplay:!1});$.setWithVelocity(Qt.sample(pt-sampleDelta).value,Qt.sample(pt).value,sampleDelta)}wt()},complete:()=>ht.finish(),cancel:wt}}function createInstantAnimation({keyframes:$,delay:et,onUpdate:tt,onComplete:rt}){const nt=()=>(tt&&tt($[$.length-1]),rt&&rt(),{time:0,speed:1,duration:0,play:noop,pause:noop,stop:noop,then:it=>(it(),Promise.resolve()),cancel:noop,complete:noop});return et?animateValue({keyframes:[0,1],duration:0,delay:et,onComplete:nt}):nt()}const underDampedSpring={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restSpeed:10}),keyframesTransition={type:"keyframes",duration:.8},ease={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=($,{keyframes:et})=>et.length>2?keyframesTransition:transformProps.has($)?$.startsWith("scale")?criticallyDampedSpring(et[1]):underDampedSpring:ease,isAnimatable=($,et)=>$==="zIndex"?!1:!!(typeof et=="number"||Array.isArray(et)||typeof et=="string"&&(complex.test(et)||et==="0")&&!et.startsWith("url(")),maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){const[et,tt]=$.slice(0,-1).split("(");if(et==="drop-shadow")return $;const[rt]=tt.match(floatRegex)||[];if(!rt)return $;const nt=tt.replace(rt,"");let it=maxDefaults.has(et)?1:0;return rt!==tt&&(it*=100),et+"("+it+nt+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter={...complex,getAnimatableNone:$=>{const et=$.match(functionRegex);return et?et.map(applyDefaultFilter).join(" "):$}},defaultValueTypes={...numberValueTypes,color,backgroundColor:color,outlineColor:color,fill:color,stroke:color,borderColor:color,borderTopColor:color,borderRightColor:color,borderBottomColor:color,borderLeftColor:color,filter,WebkitFilter:filter},getDefaultValueType=$=>defaultValueTypes[$];function getAnimatableNone($,et){let tt=getDefaultValueType($);return tt!==filter&&(tt=complex),tt.getAnimatableNone?tt.getAnimatableNone(et):void 0}const isZeroValueString=$=>/^0[^.\s]+$/.test($);function isNone($){if(typeof $=="number")return $===0;if($!==null)return $==="none"||$==="0"||isZeroValueString($)}function getKeyframes($,et,tt,rt){const nt=isAnimatable(et,tt);let it;Array.isArray(tt)?it=[...tt]:it=[null,tt];const At=rt.from!==void 0?rt.from:$.get();let at;const ot=[];for(let st=0;stnt=>{const it=getValueTransition(rt,$)||{},At=it.delay||rt.delay||0;let{elapsed:at=0}=rt;at=at-secondsToMilliseconds(At);const ot=getKeyframes(et,$,tt,it),st=ot[0],ct=ot[ot.length-1],ut=isAnimatable($,st),gt=isAnimatable($,ct);let dt={keyframes:ot,velocity:et.getVelocity(),ease:"easeOut",...it,delay:-at,onUpdate:ht=>{et.set(ht),it.onUpdate&&it.onUpdate(ht)},onComplete:()=>{nt(),it.onComplete&&it.onComplete()}};if(isTransitionDefined(it)||(dt={...dt,...getDefaultTransition($,dt)}),dt.duration&&(dt.duration=secondsToMilliseconds(dt.duration)),dt.repeatDelay&&(dt.repeatDelay=secondsToMilliseconds(dt.repeatDelay)),!ut||!gt||instantAnimationState.current||it.type===!1)return createInstantAnimation(dt);if(et.owner&&et.owner.current instanceof HTMLElement&&!et.owner.getProps().onUpdate){const ht=createAcceleratedAnimation(et,$,dt);if(ht)return ht}return animateValue(dt)};function isWillChangeMotionValue($){return!!(isMotionValue($)&&$.add)}const isNumericalString=$=>/^\-?\d*\.?\d+$/.test($);function addUniqueItem($,et){$.indexOf(et)===-1&&$.push(et)}function removeItem($,et){const tt=$.indexOf(et);tt>-1&&$.splice(tt,1)}class SubscriptionManager{constructor(){this.subscriptions=[]}add(et){return addUniqueItem(this.subscriptions,et),()=>removeItem(this.subscriptions,et)}notify(et,tt,rt){const nt=this.subscriptions.length;if(nt)if(nt===1)this.subscriptions[0](et,tt,rt);else for(let it=0;it!isNaN(parseFloat($));class MotionValue{constructor(et,tt={}){this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(rt,nt=!0)=>{this.prev=this.current,this.current=rt;const{delta:it,timestamp:At}=frameData;this.lastUpdated!==At&&(this.timeDelta=it,this.lastUpdated=At,frame.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),nt&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>frame.postRender(this.velocityCheck),this.velocityCheck=({timestamp:rt})=>{rt!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=et,this.canTrackVelocity=isFloat(this.current),this.owner=tt.owner}onChange(et){return this.on("change",et)}on(et,tt){this.events[et]||(this.events[et]=new SubscriptionManager);const rt=this.events[et].add(tt);return et==="change"?()=>{rt(),frame.read(()=>{this.events.change.getSize()||this.stop()})}:rt}clearListeners(){for(const et in this.events)this.events[et].clear()}attach(et,tt){this.passiveEffect=et,this.stopPassiveEffect=tt}set(et,tt=!0){!tt||!this.passiveEffect?this.updateAndNotify(et,tt):this.passiveEffect(et,this.updateAndNotify)}setWithVelocity(et,tt,rt){this.set(tt),this.prev=et,this.timeDelta=rt}jump(et){this.updateAndNotify(et),this.prev=et,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(et){return this.stop(),new Promise(tt=>{this.hasAnimated=!0,this.animation=et(tt),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function motionValue($,et){return new MotionValue($,et)}const testValueType=$=>et=>et.test($),auto={test:$=>$==="auto",parse:$=>$},dimensionValueTypes=[number$1,px,percent,degrees,vw,vh,auto],findDimensionValueType=$=>dimensionValueTypes.find(testValueType($)),valueTypes=[...dimensionValueTypes,color,complex],findValueType=$=>valueTypes.find(testValueType($));function setMotionValue($,et,tt){$.hasValue(et)?$.getValue(et).set(tt):$.addValue(et,motionValue(tt))}function setTarget($,et){const tt=resolveVariant($,et);let{transitionEnd:rt={},transition:nt={},...it}=tt?$.makeTargetAnimatable(tt,!1):{};it={...it,...rt};for(const At in it){const at=resolveFinalValueInKeyframes(it[At]);setMotionValue($,At,at)}}function checkTargetForNewValues($,et,tt){var rt,nt;const it=Object.keys(et).filter(at=>!$.hasValue(at)),At=it.length;if(At)for(let at=0;atot.remove(ut))),st.push(Et)}return At&&Promise.all(st).then(()=>{At&&setTarget($,At)}),st}function animateVariant($,et,tt={}){const rt=resolveVariant($,et,tt.custom);let{transition:nt=$.getDefaultTransition()||{}}=rt||{};tt.transitionOverride&&(nt=tt.transitionOverride);const it=rt?()=>Promise.all(animateTarget($,rt,tt)):()=>Promise.resolve(),At=$.variantChildren&&$.variantChildren.size?(ot=0)=>{const{delayChildren:st=0,staggerChildren:ct,staggerDirection:ut}=nt;return animateChildren($,et,st+ot,ct,ut,tt)}:()=>Promise.resolve(),{when:at}=nt;if(at){const[ot,st]=at==="beforeChildren"?[it,At]:[At,it];return ot().then(()=>st())}else return Promise.all([it(),At(tt.delay)])}function animateChildren($,et,tt=0,rt=0,nt=1,it){const At=[],at=($.variantChildren.size-1)*rt,ot=nt===1?(st=0)=>st*rt:(st=0)=>at-st*rt;return Array.from($.variantChildren).sort(sortByTreeOrder).forEach((st,ct)=>{st.notify("AnimationStart",et),At.push(animateVariant(st,et,{...it,delay:tt+ot(ct)}).then(()=>st.notify("AnimationComplete",et)))}),Promise.all(At)}function sortByTreeOrder($,et){return $.sortNodePosition(et)}function animateVisualElement($,et,tt={}){$.notify("AnimationStart",et);let rt;if(Array.isArray(et)){const nt=et.map(it=>animateVariant($,it,tt));rt=Promise.all(nt)}else if(typeof et=="string")rt=animateVariant($,et,tt);else{const nt=typeof et=="function"?resolveVariant($,et,tt.custom):et;rt=Promise.all(animateTarget($,nt,tt))}return rt.then(()=>$.notify("AnimationComplete",et))}const reversePriorityOrder=[...variantPriorityOrder].reverse(),numAnimationTypes=variantPriorityOrder.length;function animateList($){return et=>Promise.all(et.map(({animation:tt,options:rt})=>animateVisualElement($,tt,rt)))}function createAnimationState($){let et=animateList($);const tt=createState();let rt=!0;const nt=(ot,st)=>{const ct=resolveVariant($,st);if(ct){const{transition:ut,transitionEnd:gt,...dt}=ct;ot={...ot,...dt,...gt}}return ot};function it(ot){et=ot($)}function At(ot,st){const ct=$.getProps(),ut=$.getVariantContext(!0)||{},gt=[],dt=new Set;let ht={},Et=1/0;for(let mt=0;mtEt&≫const jt=Array.isArray($t)?$t:[$t];let Mt=jt.reduce(nt,{});Tt===!1&&(Mt={});const{prevResolvedValues:Bt={}}=Qt,vt={...Bt,...Mt},Nt=Ut=>{ir=!0,dt.delete(Ut),Qt.needsAnimating[Ut]=!0};for(const Ut in vt){const Jt=Mt[Ut],rr=Bt[Ut];ht.hasOwnProperty(Ut)||(Jt!==rr?isKeyframesTarget(Jt)&&isKeyframesTarget(rr)?!shallowCompare(Jt,rr)||Kt?Nt(Ut):Qt.protectedKeys[Ut]=!0:Jt!==void 0?Nt(Ut):dt.add(Ut):Jt!==void 0&&dt.has(Ut)?Nt(Ut):Qt.protectedKeys[Ut]=!0)}Qt.prevProp=$t,Qt.prevResolvedValues=Mt,Qt.isActive&&(ht={...ht,...Mt}),rt&&$.blockInitialAnimation&&(ir=!1),ir&&!Pt&>.push(...jt.map(Ut=>({animation:Ut,options:{type:pt,...ot}})))}if(dt.size){const mt={};dt.forEach(pt=>{const Qt=$.getBaseTarget(pt);Qt!==void 0&&(mt[pt]=Qt)}),gt.push({animation:mt})}let wt=!!gt.length;return rt&&ct.initial===!1&&!$.manuallyAnimateOnMount&&(wt=!1),rt=!1,wt?et(gt):Promise.resolve()}function at(ot,st,ct){var ut;if(tt[ot].isActive===st)return Promise.resolve();(ut=$.variantChildren)===null||ut===void 0||ut.forEach(dt=>{var ht;return(ht=dt.animationState)===null||ht===void 0?void 0:ht.setActive(ot,st)}),tt[ot].isActive=st;const gt=At(ct,ot);for(const dt in tt)tt[dt].protectedKeys={};return gt}return{animateChanges:At,setActive:at,setAnimateFunction:it,getState:()=>tt}}function checkVariantsDidChange($,et){return typeof et=="string"?et!==$:Array.isArray(et)?!shallowCompare(et,$):!1}function createTypeState($=!1){return{isActive:$,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function createState(){return{animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()}}class AnimationFeature extends Feature{constructor(et){super(et),et.animationState||(et.animationState=createAnimationState(et))}updateAnimationControlsSubscription(){const{animate:et}=this.node.getProps();this.unmount(),isAnimationControls(et)&&(this.unmount=et.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:et}=this.node.getProps(),{animate:tt}=this.node.prevProps||{};et!==tt&&this.updateAnimationControlsSubscription()}unmount(){}}let id$1=0;class ExitAnimationFeature extends Feature{constructor(){super(...arguments),this.id=id$1++}update(){if(!this.node.presenceContext)return;const{isPresent:et,onExitComplete:tt,custom:rt}=this.node.presenceContext,{isPresent:nt}=this.node.prevPresenceContext||{};if(!this.node.animationState||et===nt)return;const it=this.node.animationState.setActive("exit",!et,{custom:rt??this.node.getProps().custom});tt&&!et&&it.then(()=>tt(this.id))}mount(){const{register:et}=this.node.presenceContext||{};et&&(this.unmount=et(this.id))}unmount(){}}const animations={animation:{Feature:AnimationFeature},exit:{Feature:ExitAnimationFeature}},distance=($,et)=>Math.abs($-et);function distance2D($,et){const tt=distance($.x,et.x),rt=distance($.y,et.y);return Math.sqrt(tt**2+rt**2)}class PanSession{constructor(et,tt,{transformPagePoint:rt}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const st=getPanInfo(this.lastMoveEventInfo,this.history),ct=this.startEvent!==null,ut=distance2D(st.offset,{x:0,y:0})>=3;if(!ct&&!ut)return;const{point:gt}=st,{timestamp:dt}=frameData;this.history.push({...gt,timestamp:dt});const{onStart:ht,onMove:Et}=this.handlers;ct||(ht&&ht(this.lastMoveEvent,st),this.startEvent=this.lastMoveEvent),Et&&Et(this.lastMoveEvent,st)},this.handlePointerMove=(st,ct)=>{this.lastMoveEvent=st,this.lastMoveEventInfo=transformPoint(ct,this.transformPagePoint),frame.update(this.updatePoint,!0)},this.handlePointerUp=(st,ct)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const{onEnd:ut,onSessionEnd:gt}=this.handlers,dt=getPanInfo(st.type==="pointercancel"?this.lastMoveEventInfo:transformPoint(ct,this.transformPagePoint),this.history);this.startEvent&&ut&&ut(st,dt),gt&>(st,dt)},!isPrimaryPointer(et))return;this.handlers=tt,this.transformPagePoint=rt;const nt=extractEventInfo(et),it=transformPoint(nt,this.transformPagePoint),{point:At}=it,{timestamp:at}=frameData;this.history=[{...At,timestamp:at}];const{onSessionStart:ot}=tt;ot&&ot(et,getPanInfo(it,this.history)),this.removeListeners=pipe(addPointerEvent(window,"pointermove",this.handlePointerMove),addPointerEvent(window,"pointerup",this.handlePointerUp),addPointerEvent(window,"pointercancel",this.handlePointerUp))}updateHandlers(et){this.handlers=et}end(){this.removeListeners&&this.removeListeners(),cancelFrame(this.updatePoint)}}function transformPoint($,et){return et?{point:et($.point)}:$}function subtractPoint($,et){return{x:$.x-et.x,y:$.y-et.y}}function getPanInfo({point:$},et){return{point:$,delta:subtractPoint($,lastDevicePoint(et)),offset:subtractPoint($,startDevicePoint(et)),velocity:getVelocity(et,.1)}}function startDevicePoint($){return $[0]}function lastDevicePoint($){return $[$.length-1]}function getVelocity($,et){if($.length<2)return{x:0,y:0};let tt=$.length-1,rt=null;const nt=lastDevicePoint($);for(;tt>=0&&(rt=$[tt],!(nt.timestamp-rt.timestamp>secondsToMilliseconds(et)));)tt--;if(!rt)return{x:0,y:0};const it=millisecondsToSeconds(nt.timestamp-rt.timestamp);if(it===0)return{x:0,y:0};const At={x:(nt.x-rt.x)/it,y:(nt.y-rt.y)/it};return At.x===1/0&&(At.x=0),At.y===1/0&&(At.y=0),At}function calcLength($){return $.max-$.min}function isNear($,et=0,tt=.01){return Math.abs($-et)<=tt}function calcAxisDelta($,et,tt,rt=.5){$.origin=rt,$.originPoint=mix(et.min,et.max,$.origin),$.scale=calcLength(tt)/calcLength(et),(isNear($.scale,1,1e-4)||isNaN($.scale))&&($.scale=1),$.translate=mix(tt.min,tt.max,$.origin)-$.originPoint,(isNear($.translate)||isNaN($.translate))&&($.translate=0)}function calcBoxDelta($,et,tt,rt){calcAxisDelta($.x,et.x,tt.x,rt?rt.originX:void 0),calcAxisDelta($.y,et.y,tt.y,rt?rt.originY:void 0)}function calcRelativeAxis($,et,tt){$.min=tt.min+et.min,$.max=$.min+calcLength(et)}function calcRelativeBox($,et,tt){calcRelativeAxis($.x,et.x,tt.x),calcRelativeAxis($.y,et.y,tt.y)}function calcRelativeAxisPosition($,et,tt){$.min=et.min-tt.min,$.max=$.min+calcLength(et)}function calcRelativePosition($,et,tt){calcRelativeAxisPosition($.x,et.x,tt.x),calcRelativeAxisPosition($.y,et.y,tt.y)}function applyConstraints($,{min:et,max:tt},rt){return et!==void 0&&$tt&&($=rt?mix(tt,$,rt.max):Math.min($,tt)),$}function calcRelativeAxisConstraints($,et,tt){return{min:et!==void 0?$.min+et:void 0,max:tt!==void 0?$.max+tt-($.max-$.min):void 0}}function calcRelativeConstraints($,{top:et,left:tt,bottom:rt,right:nt}){return{x:calcRelativeAxisConstraints($.x,tt,nt),y:calcRelativeAxisConstraints($.y,et,rt)}}function calcViewportAxisConstraints($,et){let tt=et.min-$.min,rt=et.max-$.max;return et.max-et.min<$.max-$.min&&([tt,rt]=[rt,tt]),{min:tt,max:rt}}function calcViewportConstraints($,et){return{x:calcViewportAxisConstraints($.x,et.x),y:calcViewportAxisConstraints($.y,et.y)}}function calcOrigin($,et){let tt=.5;const rt=calcLength($),nt=calcLength(et);return nt>rt?tt=progress(et.min,et.max-rt,$.min):rt>nt&&(tt=progress($.min,$.max-nt,et.min)),clamp(0,1,tt)}function rebaseAxisConstraints($,et){const tt={};return et.min!==void 0&&(tt.min=et.min-$.min),et.max!==void 0&&(tt.max=et.max-$.min),tt}const defaultElastic=.35;function resolveDragElastic($=defaultElastic){return $===!1?$=0:$===!0&&($=defaultElastic),{x:resolveAxisElastic($,"left","right"),y:resolveAxisElastic($,"top","bottom")}}function resolveAxisElastic($,et,tt){return{min:resolvePointElastic($,et),max:resolvePointElastic($,tt)}}function resolvePointElastic($,et){return typeof $=="number"?$:$[et]||0}const createAxisDelta=()=>({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis($){return[$("x"),$("y")]}function convertBoundingBoxToBox({top:$,left:et,right:tt,bottom:rt}){return{x:{min:et,max:tt},y:{min:$,max:rt}}}function convertBoxToBoundingBox({x:$,y:et}){return{top:et.min,right:$.max,bottom:et.max,left:$.min}}function transformBoxPoints($,et){if(!et)return $;const tt=et({x:$.left,y:$.top}),rt=et({x:$.right,y:$.bottom});return{top:tt.y,left:tt.x,bottom:rt.y,right:rt.x}}function isIdentityScale($){return $===void 0||$===1}function hasScale({scale:$,scaleX:et,scaleY:tt}){return!isIdentityScale($)||!isIdentityScale(et)||!isIdentityScale(tt)}function hasTransform($){return hasScale($)||has2DTranslate($)||$.z||$.rotate||$.rotateX||$.rotateY}function has2DTranslate($){return is2DTranslate($.x)||is2DTranslate($.y)}function is2DTranslate($){return $&&$!=="0%"}function scalePoint($,et,tt){const rt=$-tt,nt=et*rt;return tt+nt}function applyPointDelta($,et,tt,rt,nt){return nt!==void 0&&($=scalePoint($,nt,rt)),scalePoint($,tt,rt)+et}function applyAxisDelta($,et=0,tt=1,rt,nt){$.min=applyPointDelta($.min,et,tt,rt,nt),$.max=applyPointDelta($.max,et,tt,rt,nt)}function applyBoxDelta($,{x:et,y:tt}){applyAxisDelta($.x,et.translate,et.scale,et.originPoint),applyAxisDelta($.y,tt.translate,tt.scale,tt.originPoint)}function applyTreeDeltas($,et,tt,rt=!1){const nt=tt.length;if(!nt)return;et.x=et.y=1;let it,At;for(let at=0;at1.0000000000001||$<.999999999999?$:1}function translateAxis($,et){$.min=$.min+et,$.max=$.max+et}function transformAxis($,et,[tt,rt,nt]){const it=et[nt]!==void 0?et[nt]:.5,At=mix($.min,$.max,it);applyAxisDelta($,et[tt],et[rt],At,et.scale)}const xKeys$1=["x","scaleX","originX"],yKeys$1=["y","scaleY","originY"];function transformBox($,et){transformAxis($.x,et,xKeys$1),transformAxis($.y,et,yKeys$1)}function measureViewportBox($,et){return convertBoundingBoxToBox(transformBoxPoints($.getBoundingClientRect(),et))}function measurePageBox($,et,tt){const rt=measureViewportBox($,tt),{scroll:nt}=et;return nt&&(translateAxis(rt.x,nt.offset.x),translateAxis(rt.y,nt.offset.y)),rt}const elementDragControls=new WeakMap;class VisualElementDragControls{constructor(et){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=et}start(et,{snapToCursor:tt=!1}={}){const{presenceContext:rt}=this.visualElement;if(rt&&rt.isPresent===!1)return;const nt=ot=>{this.stopAnimation(),tt&&this.snapToCursor(extractEventInfo(ot,"page").point)},it=(ot,st)=>{const{drag:ct,dragPropagation:ut,onDragStart:gt}=this.getProps();if(ct&&!ut&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(ct),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(ht=>{let Et=this.getAxisMotionValue(ht).get()||0;if(percent.test(Et)){const{projection:wt}=this.visualElement;if(wt&&wt.layout){const mt=wt.layout.layoutBox[ht];mt&&(Et=calcLength(mt)*(parseFloat(Et)/100))}}this.originPoint[ht]=Et}),gt&&frame.update(()=>gt(ot,st),!1,!0);const{animationState:dt}=this.visualElement;dt&&dt.setActive("whileDrag",!0)},At=(ot,st)=>{const{dragPropagation:ct,dragDirectionLock:ut,onDirectionLock:gt,onDrag:dt}=this.getProps();if(!ct&&!this.openGlobalLock)return;const{offset:ht}=st;if(ut&&this.currentDirection===null){this.currentDirection=getCurrentDirection(ht),this.currentDirection!==null&>&>(this.currentDirection);return}this.updateAxis("x",st.point,ht),this.updateAxis("y",st.point,ht),this.visualElement.render(),dt&&dt(ot,st)},at=(ot,st)=>this.stop(ot,st);this.panSession=new PanSession(et,{onSessionStart:nt,onStart:it,onMove:At,onSessionEnd:at},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(et,tt){const rt=this.isDragging;if(this.cancel(),!rt)return;const{velocity:nt}=tt;this.startAnimation(nt);const{onDragEnd:it}=this.getProps();it&&frame.update(()=>it(et,tt))}cancel(){this.isDragging=!1;const{projection:et,animationState:tt}=this.visualElement;et&&(et.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:rt}=this.getProps();!rt&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),tt&&tt.setActive("whileDrag",!1)}updateAxis(et,tt,rt){const{drag:nt}=this.getProps();if(!rt||!shouldDrag(et,nt,this.currentDirection))return;const it=this.getAxisMotionValue(et);let At=this.originPoint[et]+rt[et];this.constraints&&this.constraints[et]&&(At=applyConstraints(At,this.constraints[et],this.elastic[et])),it.set(At)}resolveConstraints(){const{dragConstraints:et,dragElastic:tt}=this.getProps(),{layout:rt}=this.visualElement.projection||{},nt=this.constraints;et&&isRefObject(et)?this.constraints||(this.constraints=this.resolveRefConstraints()):et&&rt?this.constraints=calcRelativeConstraints(rt.layoutBox,et):this.constraints=!1,this.elastic=resolveDragElastic(tt),nt!==this.constraints&&rt&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(it=>{this.getAxisMotionValue(it)&&(this.constraints[it]=rebaseAxisConstraints(rt.layoutBox[it],this.constraints[it]))})}resolveRefConstraints(){const{dragConstraints:et,onMeasureDragConstraints:tt}=this.getProps();if(!et||!isRefObject(et))return!1;const rt=et.current,{projection:nt}=this.visualElement;if(!nt||!nt.layout)return!1;const it=measurePageBox(rt,nt.root,this.visualElement.getTransformPagePoint());let At=calcViewportConstraints(nt.layout.layoutBox,it);if(tt){const at=tt(convertBoxToBoundingBox(At));this.hasMutatedConstraints=!!at,at&&(At=convertBoundingBoxToBox(at))}return At}startAnimation(et){const{drag:tt,dragMomentum:rt,dragElastic:nt,dragTransition:it,dragSnapToOrigin:At,onDragTransitionEnd:at}=this.getProps(),ot=this.constraints||{},st=eachAxis(ct=>{if(!shouldDrag(ct,tt,this.currentDirection))return;let ut=ot&&ot[ct]||{};At&&(ut={min:0,max:0});const gt=nt?200:1e6,dt=nt?40:1e7,ht={type:"inertia",velocity:rt?et[ct]:0,bounceStiffness:gt,bounceDamping:dt,timeConstant:750,restDelta:1,restSpeed:10,...it,...ut};return this.startAxisValueAnimation(ct,ht)});return Promise.all(st).then(at)}startAxisValueAnimation(et,tt){const rt=this.getAxisMotionValue(et);return rt.start(animateMotionValue(et,rt,0,tt))}stopAnimation(){eachAxis(et=>this.getAxisMotionValue(et).stop())}getAxisMotionValue(et){const tt="_drag"+et.toUpperCase(),rt=this.visualElement.getProps(),nt=rt[tt];return nt||this.visualElement.getValue(et,(rt.initial?rt.initial[et]:void 0)||0)}snapToCursor(et){eachAxis(tt=>{const{drag:rt}=this.getProps();if(!shouldDrag(tt,rt,this.currentDirection))return;const{projection:nt}=this.visualElement,it=this.getAxisMotionValue(tt);if(nt&&nt.layout){const{min:At,max:at}=nt.layout.layoutBox[tt];it.set(et[tt]-mix(At,at,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:et,dragConstraints:tt}=this.getProps(),{projection:rt}=this.visualElement;if(!isRefObject(tt)||!rt||!this.constraints)return;this.stopAnimation();const nt={x:0,y:0};eachAxis(At=>{const at=this.getAxisMotionValue(At);if(at){const ot=at.get();nt[At]=calcOrigin({min:ot,max:ot},this.constraints[At])}});const{transformTemplate:it}=this.visualElement.getProps();this.visualElement.current.style.transform=it?it({},""):"none",rt.root&&rt.root.updateScroll(),rt.updateLayout(),this.resolveConstraints(),eachAxis(At=>{if(!shouldDrag(At,et,null))return;const at=this.getAxisMotionValue(At),{min:ot,max:st}=this.constraints[At];at.set(mix(ot,st,nt[At]))})}addListeners(){if(!this.visualElement.current)return;elementDragControls.set(this.visualElement,this);const et=this.visualElement.current,tt=addPointerEvent(et,"pointerdown",ot=>{const{drag:st,dragListener:ct=!0}=this.getProps();st&&ct&&this.start(ot)}),rt=()=>{const{dragConstraints:ot}=this.getProps();isRefObject(ot)&&(this.constraints=this.resolveRefConstraints())},{projection:nt}=this.visualElement,it=nt.addEventListener("measure",rt);nt&&!nt.layout&&(nt.root&&nt.root.updateScroll(),nt.updateLayout()),rt();const At=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),at=nt.addEventListener("didUpdate",({delta:ot,hasLayoutChanged:st})=>{this.isDragging&&st&&(eachAxis(ct=>{const ut=this.getAxisMotionValue(ct);ut&&(this.originPoint[ct]+=ot[ct].translate,ut.set(ut.get()+ot[ct].translate))}),this.visualElement.render())});return()=>{At(),tt(),it(),at&&at()}}getProps(){const et=this.visualElement.getProps(),{drag:tt=!1,dragDirectionLock:rt=!1,dragPropagation:nt=!1,dragConstraints:it=!1,dragElastic:At=defaultElastic,dragMomentum:at=!0}=et;return{...et,drag:tt,dragDirectionLock:rt,dragPropagation:nt,dragConstraints:it,dragElastic:At,dragMomentum:at}}}function shouldDrag($,et,tt){return(et===!0||et===$)&&(tt===null||tt===$)}function getCurrentDirection($,et=10){let tt=null;return Math.abs($.y)>et?tt="y":Math.abs($.x)>et&&(tt="x"),tt}class DragGesture extends Feature{constructor(et){super(et),this.removeGroupControls=noop,this.removeListeners=noop,this.controls=new VisualElementDragControls(et)}mount(){const{dragControls:et}=this.node.getProps();et&&(this.removeGroupControls=et.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||noop}unmount(){this.removeGroupControls(),this.removeListeners()}}const asyncHandler=$=>(et,tt)=>{$&&frame.update(()=>$(et,tt))};class PanGesture extends Feature{constructor(){super(...arguments),this.removePointerDownListener=noop}onPointerDown(et){this.session=new PanSession(et,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:et,onPanStart:tt,onPan:rt,onPanEnd:nt}=this.node.getProps();return{onSessionStart:asyncHandler(et),onStart:asyncHandler(tt),onMove:rt,onEnd:(it,At)=>{delete this.session,nt&&frame.update(()=>nt(it,At))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",et=>this.onPointerDown(et))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function usePresence(){const $=reactExports.useContext(PresenceContext);if($===null)return[!0,null];const{isPresent:et,onExitComplete:tt,register:rt}=$,nt=reactExports.useId();return reactExports.useEffect(()=>rt(nt),[]),!et&&tt?[!1,()=>tt&&tt(nt)]:[!0]}function useIsPresent(){return isPresent(reactExports.useContext(PresenceContext))}function isPresent($){return $===null?!0:$.isPresent}const globalProjectionState={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent($,et){return et.max===et.min?0:$/(et.max-et.min)*100}const correctBorderRadius={correct:($,et)=>{if(!et.target)return $;if(typeof $=="string")if(px.test($))$=parseFloat($);else return $;const tt=pixelsToPercent($,et.target.x),rt=pixelsToPercent($,et.target.y);return`${tt}% ${rt}%`}},correctBoxShadow={correct:($,{treeScale:et,projectionDelta:tt})=>{const rt=$,nt=complex.parse($);if(nt.length>5)return rt;const it=complex.createTransformer($),At=typeof nt[0]!="number"?1:0,at=tt.x.scale*et.x,ot=tt.y.scale*et.y;nt[0+At]/=at,nt[1+At]/=ot;const st=mix(at,ot,.5);return typeof nt[2+At]=="number"&&(nt[2+At]/=st),typeof nt[3+At]=="number"&&(nt[3+At]/=st),it(nt)}};class MeasureLayoutWithContext extends React.Component{componentDidMount(){const{visualElement:et,layoutGroup:tt,switchLayoutGroup:rt,layoutId:nt}=this.props,{projection:it}=et;addScaleCorrector(defaultScaleCorrectors),it&&(tt.group&&tt.group.add(it),rt&&rt.register&&nt&&rt.register(it),it.root.didUpdate(),it.addEventListener("animationComplete",()=>{this.safeToRemove()}),it.setOptions({...it.options,onExitComplete:()=>this.safeToRemove()})),globalProjectionState.hasEverUpdated=!0}getSnapshotBeforeUpdate(et){const{layoutDependency:tt,visualElement:rt,drag:nt,isPresent:it}=this.props,At=rt.projection;return At&&(At.isPresent=it,nt||et.layoutDependency!==tt||tt===void 0?At.willUpdate():this.safeToRemove(),et.isPresent!==it&&(it?At.promote():At.relegate()||frame.postRender(()=>{const at=At.getStack();(!at||!at.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:et}=this.props.visualElement;et&&(et.root.didUpdate(),queueMicrotask(()=>{!et.currentAnimation&&et.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:et,layoutGroup:tt,switchLayoutGroup:rt}=this.props,{projection:nt}=et;nt&&(nt.scheduleCheckAfterUnmount(),tt&&tt.group&&tt.group.remove(nt),rt&&rt.deregister&&rt.deregister(nt))}safeToRemove(){const{safeToRemove:et}=this.props;et&&et()}render(){return null}}function MeasureLayout($){const[et,tt]=usePresence(),rt=reactExports.useContext(LayoutGroupContext);return React.createElement(MeasureLayoutWithContext,{...$,layoutGroup:rt,switchLayoutGroup:reactExports.useContext(SwitchLayoutGroupContext),isPresent:et,safeToRemove:tt})}const defaultScaleCorrectors={borderRadius:{...correctBorderRadius,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:correctBorderRadius,borderTopRightRadius:correctBorderRadius,borderBottomLeftRadius:correctBorderRadius,borderBottomRightRadius:correctBorderRadius,boxShadow:correctBoxShadow},borders=["TopLeft","TopRight","BottomLeft","BottomRight"],numBorders=borders.length,asNumber=$=>typeof $=="string"?parseFloat($):$,isPx=$=>typeof $=="number"||px.test($);function mixValues($,et,tt,rt,nt,it){nt?($.opacity=mix(0,tt.opacity!==void 0?tt.opacity:1,easeCrossfadeIn(rt)),$.opacityExit=mix(et.opacity!==void 0?et.opacity:1,0,easeCrossfadeOut(rt))):it&&($.opacity=mix(et.opacity!==void 0?et.opacity:1,tt.opacity!==void 0?tt.opacity:1,rt));for(let At=0;Atrt<$?0:rt>et?1:tt(progress($,et,rt))}function copyAxisInto($,et){$.min=et.min,$.max=et.max}function copyBoxInto($,et){copyAxisInto($.x,et.x),copyAxisInto($.y,et.y)}function removePointDelta($,et,tt,rt,nt){return $-=et,$=scalePoint($,1/tt,rt),nt!==void 0&&($=scalePoint($,1/nt,rt)),$}function removeAxisDelta($,et=0,tt=1,rt=.5,nt,it=$,At=$){if(percent.test(et)&&(et=parseFloat(et),et=mix(At.min,At.max,et/100)-At.min),typeof et!="number")return;let at=mix(it.min,it.max,rt);$===it&&(at-=et),$.min=removePointDelta($.min,et,tt,at,nt),$.max=removePointDelta($.max,et,tt,at,nt)}function removeAxisTransforms($,et,[tt,rt,nt],it,At){removeAxisDelta($,et[tt],et[rt],et[nt],et.scale,it,At)}const xKeys=["x","scaleX","originX"],yKeys=["y","scaleY","originY"];function removeBoxTransforms($,et,tt,rt){removeAxisTransforms($.x,et,xKeys,tt?tt.x:void 0,rt?rt.x:void 0),removeAxisTransforms($.y,et,yKeys,tt?tt.y:void 0,rt?rt.y:void 0)}function isAxisDeltaZero($){return $.translate===0&&$.scale===1}function isDeltaZero($){return isAxisDeltaZero($.x)&&isAxisDeltaZero($.y)}function boxEquals($,et){return $.x.min===et.x.min&&$.x.max===et.x.max&&$.y.min===et.y.min&&$.y.max===et.y.max}function boxEqualsRounded($,et){return Math.round($.x.min)===Math.round(et.x.min)&&Math.round($.x.max)===Math.round(et.x.max)&&Math.round($.y.min)===Math.round(et.y.min)&&Math.round($.y.max)===Math.round(et.y.max)}function aspectRatio($){return calcLength($.x)/calcLength($.y)}class NodeStack{constructor(){this.members=[]}add(et){addUniqueItem(this.members,et),et.scheduleRender()}remove(et){if(removeItem(this.members,et),et===this.prevLead&&(this.prevLead=void 0),et===this.lead){const tt=this.members[this.members.length-1];tt&&this.promote(tt)}}relegate(et){const tt=this.members.findIndex(nt=>et===nt);if(tt===0)return!1;let rt;for(let nt=tt;nt>=0;nt--){const it=this.members[nt];if(it.isPresent!==!1){rt=it;break}}return rt?(this.promote(rt),!0):!1}promote(et,tt){const rt=this.lead;if(et!==rt&&(this.prevLead=rt,this.lead=et,et.show(),rt)){rt.instance&&rt.scheduleRender(),et.scheduleRender(),et.resumeFrom=rt,tt&&(et.resumeFrom.preserveOpacity=!0),rt.snapshot&&(et.snapshot=rt.snapshot,et.snapshot.latestValues=rt.animationValues||rt.latestValues),et.root&&et.root.isUpdating&&(et.isLayoutDirty=!0);const{crossfade:nt}=et.options;nt===!1&&rt.hide()}}exitAnimationComplete(){this.members.forEach(et=>{const{options:tt,resumingFrom:rt}=et;tt.onExitComplete&&tt.onExitComplete(),rt&&rt.options.onExitComplete&&rt.options.onExitComplete()})}scheduleRender(){this.members.forEach(et=>{et.instance&&et.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function buildProjectionTransform($,et,tt){let rt="";const nt=$.x.translate/et.x,it=$.y.translate/et.y;if((nt||it)&&(rt=`translate3d(${nt}px, ${it}px, 0) `),(et.x!==1||et.y!==1)&&(rt+=`scale(${1/et.x}, ${1/et.y}) `),tt){const{rotate:ot,rotateX:st,rotateY:ct}=tt;ot&&(rt+=`rotate(${ot}deg) `),st&&(rt+=`rotateX(${st}deg) `),ct&&(rt+=`rotateY(${ct}deg) `)}const At=$.x.scale*et.x,at=$.y.scale*et.y;return(At!==1||at!==1)&&(rt+=`scale(${At}, ${at})`),rt||"none"}const compareByDepth=($,et)=>$.depth-et.depth;class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(et){addUniqueItem(this.children,et),this.isDirty=!0}remove(et){removeItem(this.children,et),this.isDirty=!0}forEach(et){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(et)}}function delay($,et){const tt=performance.now(),rt=({timestamp:nt})=>{const it=nt-tt;it>=et&&(cancelFrame(rt),$(it-et))};return frame.read(rt,!0),()=>cancelFrame(rt)}function record($){window.MotionDebug&&window.MotionDebug.record($)}function isSVGElement($){return $ instanceof SVGElement&&$.tagName!=="svg"}function animateSingleValue($,et,tt){const rt=isMotionValue($)?$:motionValue($);return rt.start(animateMotionValue("",rt,et,tt)),rt.animation}const transformAxes=["","X","Y","Z"],animationTarget=1e3;let id=0;const projectionFrameData={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:$,defaultParent:et,measureScroll:tt,checkIsScrollRoot:rt,resetTransform:nt}){return class{constructor(At={},at=et==null?void 0:et()){this.id=id++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{projectionFrameData.totalNodes=projectionFrameData.resolvedTargetDeltas=projectionFrameData.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),record(projectionFrameData)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=At,this.root=at?at.root||at:this,this.path=at?[...at.path,at]:[],this.parent=at,this.depth=at?at.depth+1:0;for(let ot=0;otthis.root.updateBlockedByResize=!1;$(At,()=>{this.root.updateBlockedByResize=!0,ut&&ut(),ut=delay(gt,250),globalProjectionState.hasAnimatedSinceResize&&(globalProjectionState.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}ot&&this.root.registerSharedNode(ot,this),this.options.animate!==!1&&ct&&(ot||st)&&this.addEventListener("didUpdate",({delta:ut,hasLayoutChanged:gt,hasRelativeTargetChanged:dt,layout:ht})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const Et=this.options.transition||ct.getDefaultTransition()||defaultLayoutTransition,{onLayoutAnimationStart:wt,onLayoutAnimationComplete:mt}=ct.getProps(),pt=!this.targetLayout||!boxEqualsRounded(this.targetLayout,ht)||dt,Qt=!gt&&dt;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||Qt||gt&&(pt||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(ut,Qt);const $t={...getValueTransition(Et,"layout"),onPlay:wt,onComplete:mt};(ct.shouldReduceMotion||this.options.layoutRoot)&&($t.delay=0,$t.type=!1),this.startAnimation($t)}else gt||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=ht})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const At=this.getStack();At&&At.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,cancelFrame(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetRotation),this.animationId++)}getTransformTemplate(){const{visualElement:At}=this.options;return At&&At.getProps().transformTemplate}willUpdate(At=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let ct=0;ctthis.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){frame.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){frame.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let ot=0;ot{const Gt=$t/1e3;mixAxisDelta(ut.x,At.x,Gt),mixAxisDelta(ut.y,At.y,Gt),this.setTargetDelta(ut),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(calcRelativePosition(gt,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mixBox(this.relativeTarget,this.relativeTargetOrigin,gt,Gt),Qt&&boxEquals(this.relativeTarget,Qt)&&(this.isProjectionDirty=!1),Qt||(Qt=createBox()),copyBoxInto(Qt,this.relativeTarget)),Et&&(this.animationValues=ct,mixValues(ct,st,this.latestValues,Gt,pt,mt)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=Gt},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(At){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(cancelFrame(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=frame.update(()=>{globalProjectionState.hasAnimatedSinceResize=!0,this.currentAnimation=animateSingleValue(0,animationTarget,{...At,onUpdate:at=>{this.mixTargetDelta(at),At.onUpdate&&At.onUpdate(at)},onComplete:()=>{At.onComplete&&At.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const At=this.getStack();At&&At.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(animationTarget),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const At=this.getLead();let{targetWithTransforms:at,target:ot,layout:st,latestValues:ct}=At;if(!(!at||!ot||!st)){if(this!==At&&this.layout&&st&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,st.layoutBox)){ot=this.target||createBox();const ut=calcLength(this.layout.layoutBox.x);ot.x.min=At.target.x.min,ot.x.max=ot.x.min+ut;const gt=calcLength(this.layout.layoutBox.y);ot.y.min=At.target.y.min,ot.y.max=ot.y.min+gt}copyBoxInto(at,ot),transformBox(at,ct),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,at,ct)}}registerSharedNode(At,at){this.sharedNodes.has(At)||this.sharedNodes.set(At,new NodeStack),this.sharedNodes.get(At).add(at);const st=at.options.initialPromotionConfig;at.promote({transition:st?st.transition:void 0,preserveFollowOpacity:st&&st.shouldPreserveFollowOpacity?st.shouldPreserveFollowOpacity(at):void 0})}isLead(){const At=this.getStack();return At?At.lead===this:!0}getLead(){var At;const{layoutId:at}=this.options;return at?((At=this.getStack())===null||At===void 0?void 0:At.lead)||this:this}getPrevLead(){var At;const{layoutId:at}=this.options;return at?(At=this.getStack())===null||At===void 0?void 0:At.prevLead:void 0}getStack(){const{layoutId:At}=this.options;if(At)return this.root.sharedNodes.get(At)}promote({needsReset:At,transition:at,preserveFollowOpacity:ot}={}){const st=this.getStack();st&&st.promote(this,ot),At&&(this.projectionDelta=void 0,this.needsReset=!0),at&&this.setOptions({transition:at})}relegate(){const At=this.getStack();return At?At.relegate(this):!1}resetRotation(){const{visualElement:At}=this.options;if(!At)return;let at=!1;const{latestValues:ot}=At;if((ot.rotate||ot.rotateX||ot.rotateY||ot.rotateZ)&&(at=!0),!at)return;const st={};for(let ct=0;ct{var at;return(at=At.currentAnimation)===null||at===void 0?void 0:at.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout($){$.updateLayout()}function notifyLayoutUpdate($){var et;const tt=((et=$.resumeFrom)===null||et===void 0?void 0:et.snapshot)||$.snapshot;if($.isLead()&&$.layout&&tt&&$.hasListeners("didUpdate")){const{layoutBox:rt,measuredBox:nt}=$.layout,{animationType:it}=$.options,At=tt.source!==$.layout.source;it==="size"?eachAxis(ut=>{const gt=At?tt.measuredBox[ut]:tt.layoutBox[ut],dt=calcLength(gt);gt.min=rt[ut].min,gt.max=gt.min+dt}):shouldAnimatePositionOnly(it,tt.layoutBox,rt)&&eachAxis(ut=>{const gt=At?tt.measuredBox[ut]:tt.layoutBox[ut],dt=calcLength(rt[ut]);gt.max=gt.min+dt,$.relativeTarget&&!$.currentAnimation&&($.isProjectionDirty=!0,$.relativeTarget[ut].max=$.relativeTarget[ut].min+dt)});const at=createDelta();calcBoxDelta(at,rt,tt.layoutBox);const ot=createDelta();At?calcBoxDelta(ot,$.applyTransform(nt,!0),tt.measuredBox):calcBoxDelta(ot,rt,tt.layoutBox);const st=!isDeltaZero(at);let ct=!1;if(!$.resumeFrom){const ut=$.getClosestProjectingParent();if(ut&&!ut.resumeFrom){const{snapshot:gt,layout:dt}=ut;if(gt&&dt){const ht=createBox();calcRelativePosition(ht,tt.layoutBox,gt.layoutBox);const Et=createBox();calcRelativePosition(Et,rt,dt.layoutBox),boxEqualsRounded(ht,Et)||(ct=!0),ut.options.layoutRoot&&($.relativeTarget=Et,$.relativeTargetOrigin=ht,$.relativeParent=ut)}}}$.notifyListeners("didUpdate",{layout:rt,snapshot:tt,delta:ot,layoutDelta:at,hasLayoutChanged:st,hasRelativeTargetChanged:ct})}else if($.isLead()){const{onExitComplete:rt}=$.options;rt&&rt()}$.options.transition=void 0}function propagateDirtyNodes($){projectionFrameData.totalNodes++,$.parent&&($.isProjecting()||($.isProjectionDirty=$.parent.isProjectionDirty),$.isSharedProjectionDirty||($.isSharedProjectionDirty=!!($.isProjectionDirty||$.parent.isProjectionDirty||$.parent.isSharedProjectionDirty)),$.isTransformDirty||($.isTransformDirty=$.parent.isTransformDirty))}function cleanDirtyNodes($){$.isProjectionDirty=$.isSharedProjectionDirty=$.isTransformDirty=!1}function clearSnapshot($){$.clearSnapshot()}function clearMeasurements($){$.clearMeasurements()}function clearIsLayoutDirty($){$.isLayoutDirty=!1}function resetTransformStyle($){const{visualElement:et}=$.options;et&&et.getProps().onBeforeLayoutMeasure&&et.notify("BeforeLayoutMeasure"),$.resetTransform()}function finishAnimation($){$.finishAnimation(),$.targetDelta=$.relativeTarget=$.target=void 0,$.isProjectionDirty=!0}function resolveTargetDelta($){$.resolveTargetDelta()}function calcProjection($){$.calcProjection()}function resetRotation($){$.resetRotation()}function removeLeadSnapshots($){$.removeLeadSnapshot()}function mixAxisDelta($,et,tt){$.translate=mix(et.translate,0,tt),$.scale=mix(et.scale,1,tt),$.origin=et.origin,$.originPoint=et.originPoint}function mixAxis($,et,tt,rt){$.min=mix(et.min,tt.min,rt),$.max=mix(et.max,tt.max,rt)}function mixBox($,et,tt,rt){mixAxis($.x,et.x,tt.x,rt),mixAxis($.y,et.y,tt.y,rt)}function hasOpacityCrossfade($){return $.animationValues&&$.animationValues.opacityExit!==void 0}const defaultLayoutTransition={duration:.45,ease:[.4,0,.1,1]},userAgentContains=$=>typeof navigator<"u"&&navigator.userAgent.toLowerCase().includes($),roundPoint=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:noop;function roundAxis($){$.min=roundPoint($.min),$.max=roundPoint($.max)}function roundBox($){roundAxis($.x),roundAxis($.y)}function shouldAnimatePositionOnly($,et,tt){return $==="position"||$==="preserve-aspect"&&!isNear(aspectRatio(et),aspectRatio(tt),.2)}const DocumentProjectionNode=createProjectionNode({attachResizeListener:($,et)=>addDomEvent($,"resize",et),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rootProjectionNode={current:void 0},HTMLProjectionNode=createProjectionNode({measureScroll:$=>({x:$.scrollLeft,y:$.scrollTop}),defaultParent:()=>{if(!rootProjectionNode.current){const $=new DocumentProjectionNode({});$.mount(window),$.setOptions({layoutScroll:!0}),rootProjectionNode.current=$}return rootProjectionNode.current},resetTransform:($,et)=>{$.style.transform=et!==void 0?et:"none"},checkIsScrollRoot:$=>window.getComputedStyle($).position==="fixed"}),drag={pan:{Feature:PanGesture},drag:{Feature:DragGesture,ProjectionNode:HTMLProjectionNode,MeasureLayout}},splitCSSVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function parseCSSVariable($){const et=splitCSSVariableRegex.exec($);if(!et)return[,];const[,tt,rt]=et;return[tt,rt]}function getVariableValue($,et,tt=1){const[rt,nt]=parseCSSVariable($);if(!rt)return;const it=window.getComputedStyle(et).getPropertyValue(rt);if(it){const At=it.trim();return isNumericalString(At)?parseFloat(At):At}else return isCSSVariableToken(nt)?getVariableValue(nt,et,tt+1):nt}function resolveCSSVariables($,{...et},tt){const rt=$.current;if(!(rt instanceof Element))return{target:et,transitionEnd:tt};tt&&(tt={...tt}),$.values.forEach(nt=>{const it=nt.get();if(!isCSSVariableToken(it))return;const At=getVariableValue(it,rt);At&&nt.set(At)});for(const nt in et){const it=et[nt];if(!isCSSVariableToken(it))continue;const At=getVariableValue(it,rt);At&&(et[nt]=At,tt||(tt={}),tt[nt]===void 0&&(tt[nt]=it))}return{target:et,transitionEnd:tt}}const positionalKeys=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=$=>positionalKeys.has($),hasPositionalKey=$=>Object.keys($).some(isPositionalKey),isNumOrPxType=$=>$===number$1||$===px,getPosFromMatrix=($,et)=>parseFloat($.split(", ")[et]),getTranslateFromMatrix=($,et)=>(tt,{transform:rt})=>{if(rt==="none"||!rt)return 0;const nt=rt.match(/^matrix3d\((.+)\)$/);if(nt)return getPosFromMatrix(nt[1],et);{const it=rt.match(/^matrix\((.+)\)$/);return it?getPosFromMatrix(it[1],$):0}},transformKeys=new Set(["x","y","z"]),nonTranslationalTransformKeys=transformPropOrder.filter($=>!transformKeys.has($));function removeNonTranslationalTransform($){const et=[];return nonTranslationalTransformKeys.forEach(tt=>{const rt=$.getValue(tt);rt!==void 0&&(et.push([tt,rt.get()]),rt.set(tt.startsWith("scale")?1:0))}),et.length&&$.render(),et}const positionalValues={width:({x:$},{paddingLeft:et="0",paddingRight:tt="0"})=>$.max-$.min-parseFloat(et)-parseFloat(tt),height:({y:$},{paddingTop:et="0",paddingBottom:tt="0"})=>$.max-$.min-parseFloat(et)-parseFloat(tt),top:($,{top:et})=>parseFloat(et),left:($,{left:et})=>parseFloat(et),bottom:({y:$},{top:et})=>parseFloat(et)+($.max-$.min),right:({x:$},{left:et})=>parseFloat(et)+($.max-$.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};positionalValues.translateX=positionalValues.x;positionalValues.translateY=positionalValues.y;const convertChangedValueTypes=($,et,tt)=>{const rt=et.measureViewportBox(),nt=et.current,it=getComputedStyle(nt),{display:At}=it,at={};At==="none"&&et.setStaticValue("display",$.display||"block"),tt.forEach(st=>{at[st]=positionalValues[st](rt,it)}),et.render();const ot=et.measureViewportBox();return tt.forEach(st=>{const ct=et.getValue(st);ct&&ct.jump(at[st]),$[st]=positionalValues[st](ot,it)}),$},checkAndConvertChangedValueTypes=($,et,tt={},rt={})=>{et={...et},rt={...rt};const nt=Object.keys(et).filter(isPositionalKey);let it=[],At=!1;const at=[];if(nt.forEach(ot=>{const st=$.getValue(ot);if(!$.hasValue(ot))return;let ct=tt[ot],ut=findDimensionValueType(ct);const gt=et[ot];let dt;if(isKeyframesTarget(gt)){const ht=gt.length,Et=gt[0]===null?1:0;ct=gt[Et],ut=findDimensionValueType(ct);for(let wt=Et;wt=0?window.pageYOffset:null,st=convertChangedValueTypes(et,$,at);return it.length&&it.forEach(([ct,ut])=>{$.getValue(ct).set(ut)}),$.render(),isBrowser&&ot!==null&&window.scrollTo({top:ot}),{target:st,transitionEnd:rt}}else return{target:et,transitionEnd:rt}};function unitConversion($,et,tt,rt){return hasPositionalKey(et)?checkAndConvertChangedValueTypes($,et,tt,rt):{target:et,transitionEnd:rt}}const parseDomVariant=($,et,tt,rt)=>{const nt=resolveCSSVariables($,et,rt);return et=nt.target,rt=nt.transitionEnd,unitConversion($,et,tt,rt)},prefersReducedMotion={current:null},hasReducedMotionListener={current:!1};function initPrefersReducedMotion(){if(hasReducedMotionListener.current=!0,!!isBrowser)if(window.matchMedia){const $=window.matchMedia("(prefers-reduced-motion)"),et=()=>prefersReducedMotion.current=$.matches;$.addListener(et),et()}else prefersReducedMotion.current=!1}function updateMotionValuesFromProps($,et,tt){const{willChange:rt}=et;for(const nt in et){const it=et[nt],At=tt[nt];if(isMotionValue(it))$.addValue(nt,it),isWillChangeMotionValue(rt)&&rt.add(nt);else if(isMotionValue(At))$.addValue(nt,motionValue(it,{owner:$})),isWillChangeMotionValue(rt)&&rt.remove(nt);else if(At!==it)if($.hasValue(nt)){const at=$.getValue(nt);!at.hasAnimated&&at.set(it)}else{const at=$.getStaticValue(nt);$.addValue(nt,motionValue(at!==void 0?at:it,{owner:$}))}}for(const nt in tt)et[nt]===void 0&&$.removeValue(nt);return et}const visualElementStore=new WeakMap,featureNames=Object.keys(featureDefinitions),numFeatures=featureNames.length,propEventHandlers=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],numVariantProps=variantProps.length;class VisualElement{constructor({parent:et,props:tt,presenceContext:rt,reducedMotionConfig:nt,visualState:it},At={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>frame.render(this.render,!1,!0);const{latestValues:at,renderState:ot}=it;this.latestValues=at,this.baseTarget={...at},this.initialValues=tt.initial?{...at}:{},this.renderState=ot,this.parent=et,this.props=tt,this.presenceContext=rt,this.depth=et?et.depth+1:0,this.reducedMotionConfig=nt,this.options=At,this.isControllingVariants=isControllingVariants(tt),this.isVariantNode=isVariantNode(tt),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(et&&et.current);const{willChange:st,...ct}=this.scrapeMotionValuesFromProps(tt,{});for(const ut in ct){const gt=ct[ut];at[ut]!==void 0&&isMotionValue(gt)&&(gt.set(at[ut],!1),isWillChangeMotionValue(st)&&st.add(ut))}}scrapeMotionValuesFromProps(et,tt){return{}}mount(et){this.current=et,visualElementStore.set(et,this),this.projection&&!this.projection.instance&&this.projection.mount(et),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((tt,rt)=>this.bindToMotionValue(rt,tt)),hasReducedMotionListener.current||initPrefersReducedMotion(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:prefersReducedMotion.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){visualElementStore.delete(this.current),this.projection&&this.projection.unmount(),cancelFrame(this.notifyUpdate),cancelFrame(this.render),this.valueSubscriptions.forEach(et=>et()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const et in this.events)this.events[et].clear();for(const et in this.features)this.features[et].unmount();this.current=null}bindToMotionValue(et,tt){const rt=transformProps.has(et),nt=tt.on("change",At=>{this.latestValues[et]=At,this.props.onUpdate&&frame.update(this.notifyUpdate,!1,!0),rt&&this.projection&&(this.projection.isTransformDirty=!0)}),it=tt.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(et,()=>{nt(),it()})}sortNodePosition(et){return!this.current||!this.sortInstanceNodePosition||this.type!==et.type?0:this.sortInstanceNodePosition(this.current,et.current)}loadFeatures({children:et,...tt},rt,nt,it){let At,at;for(let ot=0;otthis.scheduleRender(),animationType:typeof st=="string"?st:"both",initialPromotionConfig:it,layoutScroll:gt,layoutRoot:dt})}return at}updateFeatures(){for(const et in this.features){const tt=this.features[et];tt.isMounted?tt.update():(tt.mount(),tt.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(et){return this.latestValues[et]}setStaticValue(et,tt){this.latestValues[et]=tt}makeTargetAnimatable(et,tt=!0){return this.makeTargetAnimatableFromInstance(et,this.props,tt)}update(et,tt){(et.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=et,this.prevPresenceContext=this.presenceContext,this.presenceContext=tt;for(let rt=0;rttt.variantChildren.delete(et)}addValue(et,tt){tt!==this.values.get(et)&&(this.removeValue(et),this.bindToMotionValue(et,tt)),this.values.set(et,tt),this.latestValues[et]=tt.get()}removeValue(et){this.values.delete(et);const tt=this.valueSubscriptions.get(et);tt&&(tt(),this.valueSubscriptions.delete(et)),delete this.latestValues[et],this.removeValueFromRenderState(et,this.renderState)}hasValue(et){return this.values.has(et)}getValue(et,tt){if(this.props.values&&this.props.values[et])return this.props.values[et];let rt=this.values.get(et);return rt===void 0&&tt!==void 0&&(rt=motionValue(tt,{owner:this}),this.addValue(et,rt)),rt}readValue(et){var tt;return this.latestValues[et]!==void 0||!this.current?this.latestValues[et]:(tt=this.getBaseTargetFromProps(this.props,et))!==null&&tt!==void 0?tt:this.readValueFromInstance(this.current,et,this.options)}setBaseTarget(et,tt){this.baseTarget[et]=tt}getBaseTarget(et){var tt;const{initial:rt}=this.props,nt=typeof rt=="string"||typeof rt=="object"?(tt=resolveVariantFromProps(this.props,rt))===null||tt===void 0?void 0:tt[et]:void 0;if(rt&&nt!==void 0)return nt;const it=this.getBaseTargetFromProps(this.props,et);return it!==void 0&&!isMotionValue(it)?it:this.initialValues[et]!==void 0&&nt===void 0?void 0:this.baseTarget[et]}on(et,tt){return this.events[et]||(this.events[et]=new SubscriptionManager),this.events[et].add(tt)}notify(et,...tt){this.events[et]&&this.events[et].notify(...tt)}}class DOMVisualElement extends VisualElement{sortInstanceNodePosition(et,tt){return et.compareDocumentPosition(tt)&2?1:-1}getBaseTargetFromProps(et,tt){return et.style?et.style[tt]:void 0}removeValueFromRenderState(et,{vars:tt,style:rt}){delete tt[et],delete rt[et]}makeTargetAnimatableFromInstance({transition:et,transitionEnd:tt,...rt},{transformValues:nt},it){let At=getOrigin(rt,et||{},this);if(nt&&(tt&&(tt=nt(tt)),rt&&(rt=nt(rt)),At&&(At=nt(At))),it){checkTargetForNewValues(this,rt,At);const at=parseDomVariant(this,rt,At,tt);tt=at.transitionEnd,rt=at.target}return{transition:et,transitionEnd:tt,...rt}}}function getComputedStyle$1($){return window.getComputedStyle($)}class HTMLVisualElement extends DOMVisualElement{readValueFromInstance(et,tt){if(transformProps.has(tt)){const rt=getDefaultValueType(tt);return rt&&rt.default||0}else{const rt=getComputedStyle$1(et),nt=(isCSSVariableName(tt)?rt.getPropertyValue(tt):rt[tt])||0;return typeof nt=="string"?nt.trim():nt}}measureInstanceViewportBox(et,{transformPagePoint:tt}){return measureViewportBox(et,tt)}build(et,tt,rt,nt){buildHTMLStyles(et,tt,rt,nt.transformTemplate)}scrapeMotionValuesFromProps(et,tt){return scrapeMotionValuesFromProps$1(et,tt)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:et}=this.props;isMotionValue(et)&&(this.childSubscription=et.on("change",tt=>{this.current&&(this.current.textContent=`${tt}`)}))}renderInstance(et,tt,rt,nt){renderHTML(et,tt,rt,nt)}}class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(et,tt){return et[tt]}readValueFromInstance(et,tt){if(transformProps.has(tt)){const rt=getDefaultValueType(tt);return rt&&rt.default||0}return tt=camelCaseAttributes.has(tt)?tt:camelToDash(tt),et.getAttribute(tt)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(et,tt){return scrapeMotionValuesFromProps(et,tt)}build(et,tt,rt,nt){buildSVGAttrs(et,tt,rt,this.isSVGTag,nt.transformTemplate)}renderInstance(et,tt,rt,nt){renderSVG(et,tt,rt,nt)}mount(et){this.isSVGTag=isSVGTag(et.tagName),super.mount(et)}}const createDomVisualElement=($,et)=>isSVGComponent($)?new SVGVisualElement(et,{enableHardwareAcceleration:!1}):new HTMLVisualElement(et,{enableHardwareAcceleration:!0}),layout={layout:{ProjectionNode:HTMLProjectionNode,MeasureLayout}},preloadedFeatures={...animations,...gestureAnimations,...drag,...layout},motion=createMotionProxy(($,et)=>createDomMotionConfig($,et,preloadedFeatures,createDomVisualElement));function useIsMounted(){const $=reactExports.useRef(!1);return useIsomorphicLayoutEffect$1(()=>($.current=!0,()=>{$.current=!1}),[]),$}function useForceUpdate(){const $=useIsMounted(),[et,tt]=reactExports.useState(0),rt=reactExports.useCallback(()=>{$.current&&tt(et+1)},[et]);return[reactExports.useCallback(()=>frame.postRender(rt),[rt]),et]}class PopChildMeasure extends reactExports.Component{getSnapshotBeforeUpdate(et){const tt=this.props.childRef.current;if(tt&&et.isPresent&&!this.props.isPresent){const rt=this.props.sizeRef.current;rt.height=tt.offsetHeight||0,rt.width=tt.offsetWidth||0,rt.top=tt.offsetTop,rt.left=tt.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function PopChild({children:$,isPresent:et}){const tt=reactExports.useId(),rt=reactExports.useRef(null),nt=reactExports.useRef({width:0,height:0,top:0,left:0});return reactExports.useInsertionEffect(()=>{const{width:it,height:At,top:at,left:ot}=nt.current;if(et||!rt.current||!it||!At)return;rt.current.dataset.motionPopId=tt;const st=document.createElement("style");return document.head.appendChild(st),st.sheet&&st.sheet.insertRule(` [data-motion-pop-id="${tt}"] { position: absolute !important; width: ${it}px !important; @@ -372,7 +372,7 @@ Error generating stack: `+it.message+` top: ${at}px !important; left: ${ot}px !important; } - `),()=>{document.head.removeChild(st)}},[et]),reactExports.createElement(PopChildMeasure,{isPresent:et,childRef:rt,sizeRef:nt},reactExports.cloneElement($,{ref:rt}))}const PresenceChild=({children:$,initial:et,isPresent:tt,onExitComplete:rt,custom:nt,presenceAffectsLayout:it,mode:At})=>{const at=useConstant(newChildrenMap),ot=reactExports.useId(),st=reactExports.useMemo(()=>({id:ot,initial:et,isPresent:tt,custom:nt,onExitComplete:ct=>{at.set(ct,!0);for(const ut of at.values())if(!ut)return;rt&&rt()},register:ct=>(at.set(ct,!1),()=>at.delete(ct))}),it?void 0:[tt]);return reactExports.useMemo(()=>{at.forEach((ct,ut)=>at.set(ut,!1))},[tt]),reactExports.useEffect(()=>{!tt&&!at.size&&rt&&rt()},[tt]),At==="popLayout"&&($=reactExports.createElement(PopChild,{isPresent:tt},$)),reactExports.createElement(PresenceContext.Provider,{value:st},$)};function newChildrenMap(){return new Map}function useUnmountEffect($){return reactExports.useEffect(()=>()=>$(),[])}const getChildKey=$=>$.key||"";function updateChildLookup($,et){$.forEach(tt=>{const rt=getChildKey(tt);et.set(rt,tt)})}function onlyElements($){const et=[];return reactExports.Children.forEach($,tt=>{reactExports.isValidElement(tt)&&et.push(tt)}),et}const AnimatePresence=({children:$,custom:et,initial:tt=!0,onExitComplete:rt,exitBeforeEnter:nt,presenceAffectsLayout:it=!0,mode:At="sync"})=>{const at=reactExports.useContext(LayoutGroupContext).forceRender||useForceUpdate()[0],ot=useIsMounted(),st=onlyElements($);let ct=st;const ut=reactExports.useRef(new Map).current,gt=reactExports.useRef(ct),dt=reactExports.useRef(new Map).current,ht=reactExports.useRef(!0);if(useIsomorphicLayoutEffect$1(()=>{ht.current=!1,updateChildLookup(st,dt),gt.current=ct}),useUnmountEffect(()=>{ht.current=!0,dt.clear(),ut.clear()}),ht.current)return reactExports.createElement(reactExports.Fragment,null,ct.map(pt=>reactExports.createElement(PresenceChild,{key:getChildKey(pt),isPresent:!0,initial:tt?void 0:!1,presenceAffectsLayout:it,mode:At},pt)));ct=[...ct];const Et=gt.current.map(getChildKey),wt=st.map(getChildKey),Qt=Et.length;for(let pt=0;pt{if(wt.indexOf(mt)!==-1)return;const $t=dt.get(mt);if(!$t)return;const Tt=Et.indexOf(mt);let Ut=pt;if(!Ut){const Pt=()=>{dt.delete(mt),ut.delete(mt);const Kt=gt.current.findIndex(zt=>zt.key===mt);if(gt.current.splice(Kt,1),!ut.size){if(gt.current=st,ot.current===!1)return;at(),rt&&rt()}};Ut=reactExports.createElement(PresenceChild,{key:getChildKey($t),isPresent:!1,onExitComplete:Pt,custom:et,presenceAffectsLayout:it,mode:At},$t),ut.set(mt,Ut)}ct.splice(Tt,0,Ut)}),ct=ct.map(pt=>{const mt=pt.key;return ut.has(mt)?pt:reactExports.createElement(PresenceChild,{key:getChildKey(pt),isPresent:!0,presenceAffectsLayout:it,mode:At},pt)}),reactExports.createElement(reactExports.Fragment,null,ut.size?ct:ct.map(pt=>reactExports.cloneElement(pt)))};var toastMotionVariants={initial:$=>{const{position:et}=$,tt=["top","bottom"].includes(et)?"y":"x";let rt=["top-right","bottom-right"].includes(et)?1:-1;return et==="bottom"&&(rt=1),{opacity:0,[tt]:rt*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},ToastComponent=reactExports.memo($=>{const{id:et,message:tt,onCloseComplete:rt,onRequestRemove:nt,requestClose:it=!1,position:At="bottom",duration:at=5e3,containerStyle:ot,motionVariants:st=toastMotionVariants,toastSpacing:ct="0.5rem"}=$,[ut,gt]=reactExports.useState(at),dt=useIsPresent();useUpdateEffect(()=>{dt||rt==null||rt()},[dt]),useUpdateEffect(()=>{gt(at)},[at]);const ht=()=>gt(null),Et=()=>gt(at),wt=()=>{dt&&nt()};reactExports.useEffect(()=>{dt&&it&&nt()},[dt,it,nt]),useTimeout(wt,ut);const Qt=reactExports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:ct,...ot}),[ot,ct]),pt=reactExports.useMemo(()=>getToastStyle(At),[At]);return jsxRuntimeExports.jsx(motion.div,{layout:!0,className:"chakra-toast",variants:st,initial:"initial",animate:"animate",exit:"exit",onHoverStart:ht,onHoverEnd:Et,custom:{position:At},style:pt,children:jsxRuntimeExports.jsx(chakra.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:Qt,children:runIfFn$2(tt,{id:et,onClose:wt})})})});ToastComponent.displayName="ToastComponent";var fallbackIcon={path:jsxRuntimeExports.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),jsxRuntimeExports.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Icon=forwardRef(($,et)=>{const{as:tt,viewBox:rt,color:nt="currentColor",focusable:it=!1,children:At,className:at,__css:ot,...st}=$,ct=cx("chakra-icon",at),ut=useStyleConfig("Icon",$),gt={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:nt,...ot,...ut},dt={ref:et,focusable:it,className:ct,__css:gt},ht=rt??fallbackIcon.viewBox;if(tt&&typeof tt!="string")return jsxRuntimeExports.jsx(chakra.svg,{as:tt,...dt,...st});const Et=At??fallbackIcon.path;return jsxRuntimeExports.jsx(chakra.svg,{verticalAlign:"middle",viewBox:ht,...dt,...st,children:Et})});Icon.displayName="Icon";function CheckIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function InfoIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function WarningIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var spin=keyframes$1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Spinner=forwardRef(($,et)=>{const tt=useStyleConfig("Spinner",$),{label:rt="Loading...",thickness:nt="2px",speed:it="0.45s",emptyColor:At="transparent",className:at,...ot}=omitThemingProps($),st=cx("chakra-spinner",at),ct={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:nt,borderBottomColor:At,borderLeftColor:At,animation:`${spin} ${it} linear infinite`,...tt};return jsxRuntimeExports.jsx(chakra.div,{ref:et,__css:ct,className:st,...ot,children:rt&&jsxRuntimeExports.jsx(chakra.span,{srOnly:!0,children:rt})})});Spinner.displayName="Spinner";var[AlertProvider,useAlertContext]=createContext$1({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[AlertStylesProvider,useAlertStyles]=createContext$1({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),STATUSES={info:{icon:InfoIcon,colorScheme:"blue"},warning:{icon:WarningIcon,colorScheme:"orange"},success:{icon:CheckIcon,colorScheme:"green"},error:{icon:WarningIcon,colorScheme:"red"},loading:{icon:Spinner,colorScheme:"blue"}};function getStatusColorScheme($){return STATUSES[$].colorScheme}function getStatusIcon($){return STATUSES[$].icon}var AlertDescription=forwardRef(function(et,tt){const rt=useAlertStyles(),{status:nt}=useAlertContext(),it={display:"inline",...rt.description};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,"data-status":nt,...et,className:cx("chakra-alert__desc",et.className),__css:it})});AlertDescription.displayName="AlertDescription";function AlertIcon($){const{status:et}=useAlertContext(),tt=getStatusIcon(et),rt=useAlertStyles(),nt=et==="loading"?rt.spinner:rt.icon;return jsxRuntimeExports.jsx(chakra.span,{display:"inherit","data-status":et,...$,className:cx("chakra-alert__icon",$.className),__css:nt,children:$.children||jsxRuntimeExports.jsx(tt,{h:"100%",w:"100%"})})}AlertIcon.displayName="AlertIcon";var AlertTitle=forwardRef(function(et,tt){const rt=useAlertStyles(),{status:nt}=useAlertContext();return jsxRuntimeExports.jsx(chakra.div,{ref:tt,"data-status":nt,...et,className:cx("chakra-alert__title",et.className),__css:rt.title})});AlertTitle.displayName="AlertTitle";var Alert=forwardRef(function(et,tt){var rt;const{status:nt="info",addRole:it=!0,...At}=omitThemingProps(et),at=(rt=et.colorScheme)!=null?rt:getStatusColorScheme(nt),ot=useMultiStyleConfig("Alert",{...et,colorScheme:at}),st={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...ot.container};return jsxRuntimeExports.jsx(AlertProvider,{value:{status:nt},children:jsxRuntimeExports.jsx(AlertStylesProvider,{value:ot,children:jsxRuntimeExports.jsx(chakra.div,{"data-status":nt,role:it?"alert":void 0,ref:tt,...At,className:cx("chakra-alert",et.className),__css:st})})})});Alert.displayName="Alert";function CloseIcon($){return jsxRuntimeExports.jsx(Icon,{focusable:"false","aria-hidden":!0,...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var CloseButton=forwardRef(function(et,tt){const rt=useStyleConfig("CloseButton",et),{children:nt,isDisabled:it,__css:At,...at}=omitThemingProps(et),ot={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return jsxRuntimeExports.jsx(chakra.button,{type:"button","aria-label":"Close",ref:tt,disabled:it,__css:{...ot,...rt,...At},...at,children:nt||jsxRuntimeExports.jsx(CloseIcon,{width:"1em",height:"1em"})})});CloseButton.displayName="CloseButton";var initialState$2={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},toastStore=createStore$1(initialState$2);function createStore$1($){let et=$;const tt=new Set,rt=nt=>{et=nt(et),tt.forEach(it=>it())};return{getState:()=>et,subscribe:nt=>(tt.add(nt),()=>{rt(()=>$),tt.delete(nt)}),removeToast:(nt,it)=>{rt(At=>({...At,[it]:At[it].filter(at=>at.id!=nt)}))},notify:(nt,it)=>{const At=createToast(nt,it),{position:at,id:ot}=At;return rt(st=>{var ct,ut;const dt=at.includes("top")?[At,...(ct=st[at])!=null?ct:[]]:[...(ut=st[at])!=null?ut:[],At];return{...st,[at]:dt}}),ot},update:(nt,it)=>{nt&&rt(At=>{const at={...At},{position:ot,index:st}=findToast(at,nt);return ot&&st!==-1&&(at[ot][st]={...at[ot][st],...it,message:createRenderToast(it)}),at})},closeAll:({positions:nt}={})=>{rt(it=>(nt??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((ot,st)=>(ot[st]=it[st].map(ct=>({...ct,requestClose:!0})),ot),{...it}))},close:nt=>{rt(it=>{const At=getToastPosition(it,nt);return At?{...it,[At]:it[At].map(at=>at.id==nt?{...at,requestClose:!0}:at)}:it})},isActive:nt=>!!findToast(toastStore.getState(),nt).position}}var counter=0;function createToast($,et={}){var tt,rt;counter+=1;const nt=(tt=et.id)!=null?tt:counter,it=(rt=et.position)!=null?rt:"bottom";return{id:nt,message:$,position:it,duration:et.duration,onCloseComplete:et.onCloseComplete,onRequestRemove:()=>toastStore.removeToast(String(nt),it),status:et.status,requestClose:!1,containerStyle:et.containerStyle}}var Toast=$=>{const{status:et,variant:tt="solid",id:rt,title:nt,isClosable:it,onClose:At,description:at,colorScheme:ot,icon:st}=$,ct=rt?{root:`toast-${rt}`,title:`toast-${rt}-title`,description:`toast-${rt}-description`}:void 0;return jsxRuntimeExports.jsxs(Alert,{addRole:!1,status:et,variant:tt,id:ct==null?void 0:ct.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:ot,children:[jsxRuntimeExports.jsx(AlertIcon,{children:st}),jsxRuntimeExports.jsxs(chakra.div,{flex:"1",maxWidth:"100%",children:[nt&&jsxRuntimeExports.jsx(AlertTitle,{id:ct==null?void 0:ct.title,children:nt}),at&&jsxRuntimeExports.jsx(AlertDescription,{id:ct==null?void 0:ct.description,display:"block",children:at})]}),it&&jsxRuntimeExports.jsx(CloseButton,{size:"sm",onClick:At,position:"absolute",insetEnd:1,top:1})]})};function createRenderToast($={}){const{render:et,toastComponent:tt=Toast}=$;return nt=>typeof et=="function"?et({...nt,...$}):jsxRuntimeExports.jsx(tt,{...nt,...$})}var[ToastOptionProvider,useToastOptionContext]=createContext$1({name:"ToastOptionsContext",strict:!1}),ToastProvider=$=>{const et=reactExports.useSyncExternalStore(toastStore.subscribe,toastStore.getState,toastStore.getState),{motionVariants:tt,component:rt=ToastComponent,portalProps:nt}=$,At=Object.keys(et).map(at=>{const ot=et[at];return jsxRuntimeExports.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${at}`,style:getToastListStyle(at),children:jsxRuntimeExports.jsx(AnimatePresence,{initial:!1,children:ot.map(st=>jsxRuntimeExports.jsx(rt,{motionVariants:tt,...st},st.id))})},at)});return jsxRuntimeExports.jsx(Portal,{...nt,children:At})},createChakraProvider=$=>function({children:tt,theme:rt=$,toastOptions:nt,...it}){return jsxRuntimeExports.jsxs(ChakraProvider$1,{theme:rt,...it,children:[jsxRuntimeExports.jsx(ToastOptionProvider,{value:nt==null?void 0:nt.defaultOptions,children:tt}),jsxRuntimeExports.jsx(ToastProvider,{...nt})]})},ChakraProvider=createChakraProvider(theme$1);function assignRef$1($,et){if($!=null){if(typeof $=="function"){$(et);return}try{$.current=et}catch{throw new Error(`Cannot assign value '${et}' to ref '${$}'`)}}}function mergeRefs(...$){return et=>{$.forEach(tt=>{assignRef$1(tt,et)})}}function useMergeRefs$1(...$){return reactExports.useMemo(()=>mergeRefs(...$),$)}var TRANSITION_EASINGS={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},TRANSITION_DEFAULTS={enter:{duration:.2,ease:TRANSITION_EASINGS.easeOut},exit:{duration:.1,ease:TRANSITION_EASINGS.easeIn}},withDelay={enter:($,et)=>({...$,delay:typeof et=="number"?et:et==null?void 0:et.enter}),exit:($,et)=>({...$,delay:typeof et=="number"?et:et==null?void 0:et.exit})},variants$3={enter:({transition:$,transitionEnd:et,delay:tt}={})=>{var rt;return{opacity:1,transition:(rt=$==null?void 0:$.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:et==null?void 0:et.enter}},exit:({transition:$,transitionEnd:et,delay:tt}={})=>{var rt;return{opacity:0,transition:(rt=$==null?void 0:$.exit)!=null?rt:withDelay.exit(TRANSITION_DEFAULTS.exit,tt),transitionEnd:et==null?void 0:et.exit}}},fadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$3},Fade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,className:it,transition:At,transitionEnd:at,delay:ot,...st}=et,ct=nt||rt?"enter":"exit",ut=rt?nt&&rt:!0,gt={transition:At,transitionEnd:at,delay:ot};return jsxRuntimeExports.jsx(AnimatePresence,{custom:gt,children:ut&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-fade",it),custom:gt,...fadeConfig,animate:ct,...st})})});Fade.displayName="Fade";var variants$2={exit:({reverse:$,initialScale:et,transition:tt,transitionEnd:rt,delay:nt})=>{var it;return{opacity:0,...$?{scale:et,transitionEnd:rt==null?void 0:rt.exit}:{transitionEnd:{scale:et,...rt==null?void 0:rt.exit}},transition:(it=tt==null?void 0:tt.exit)!=null?it:withDelay.exit(TRANSITION_DEFAULTS.exit,nt)}},enter:({transitionEnd:$,transition:et,delay:tt})=>{var rt;return{opacity:1,scale:1,transition:(rt=et==null?void 0:et.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:$==null?void 0:$.enter}}},scaleFadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$2},ScaleFade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,reverse:it=!0,initialScale:At=.95,className:at,transition:ot,transitionEnd:st,delay:ct,...ut}=et,gt=rt?nt&&rt:!0,dt=nt||rt?"enter":"exit",ht={initialScale:At,reverse:it,transition:ot,transitionEnd:st,delay:ct};return jsxRuntimeExports.jsx(AnimatePresence,{custom:ht,children:gt&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-offset-slide",at),...scaleFadeConfig,animate:dt,custom:ht,...ut})})});ScaleFade.displayName="ScaleFade";var variants$1={initial:({offsetX:$,offsetY:et,transition:tt,transitionEnd:rt,delay:nt})=>{var it;return{opacity:0,x:$,y:et,transition:(it=tt==null?void 0:tt.exit)!=null?it:withDelay.exit(TRANSITION_DEFAULTS.exit,nt),transitionEnd:rt==null?void 0:rt.exit}},enter:({transition:$,transitionEnd:et,delay:tt})=>{var rt;return{opacity:1,x:0,y:0,transition:(rt=$==null?void 0:$.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:et==null?void 0:et.enter}},exit:({offsetY:$,offsetX:et,transition:tt,transitionEnd:rt,reverse:nt,delay:it})=>{var At;const at={x:et,y:$};return{opacity:0,transition:(At=tt==null?void 0:tt.exit)!=null?At:withDelay.exit(TRANSITION_DEFAULTS.exit,it),...nt?{...at,transitionEnd:rt==null?void 0:rt.exit}:{transitionEnd:{...at,...rt==null?void 0:rt.exit}}}}},slideFadeConfig={initial:"initial",animate:"enter",exit:"exit",variants:variants$1},SlideFade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,reverse:it=!0,className:At,offsetX:at=0,offsetY:ot=8,transition:st,transitionEnd:ct,delay:ut,...gt}=et,dt=rt?nt&&rt:!0,ht=nt||rt?"enter":"exit",Et={offsetX:at,offsetY:ot,reverse:it,transition:st,transitionEnd:ct,delay:ut};return jsxRuntimeExports.jsx(AnimatePresence,{custom:Et,children:dt&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-offset-slide",At),custom:Et,...slideFadeConfig,animate:ht,...gt})})});SlideFade.displayName="SlideFade";var NativeImage=forwardRef(function(et,tt){const{htmlWidth:rt,htmlHeight:nt,alt:it,...At}=et;return jsxRuntimeExports.jsx("img",{width:rt,height:nt,ref:tt,alt:it,...At})});NativeImage.displayName="NativeImage";function useImage($){const{loading:et,src:tt,srcSet:rt,onLoad:nt,onError:it,crossOrigin:At,sizes:at,ignoreFallback:ot}=$,[st,ct]=reactExports.useState("pending");reactExports.useEffect(()=>{ct(tt?"loading":"pending")},[tt]);const ut=reactExports.useRef(),gt=reactExports.useCallback(()=>{if(!tt)return;dt();const ht=new Image;ht.src=tt,At&&(ht.crossOrigin=At),rt&&(ht.srcset=rt),at&&(ht.sizes=at),et&&(ht.loading=et),ht.onload=Et=>{dt(),ct("loaded"),nt==null||nt(Et)},ht.onerror=Et=>{dt(),ct("failed"),it==null||it(Et)},ut.current=ht},[tt,At,rt,at,nt,it,et]),dt=()=>{ut.current&&(ut.current.onload=null,ut.current.onerror=null,ut.current=null)};return useSafeLayoutEffect$1(()=>{if(!ot)return st==="loading"&>(),()=>{dt()}},[st,gt,ot]),ot?"loaded":st}var shouldShowFallbackImage=($,et)=>$!=="loaded"&&et==="beforeLoadOrError"||$==="failed"&&et==="onError";function omit($,et=[]){const tt=Object.assign({},$);for(const rt of et)rt in tt&&delete tt[rt];return tt}var Image$1=forwardRef(function(et,tt){const{fallbackSrc:rt,fallback:nt,src:it,srcSet:At,align:at,fit:ot,loading:st,ignoreFallback:ct,crossOrigin:ut,fallbackStrategy:gt="beforeLoadOrError",referrerPolicy:dt,...ht}=et,Et=rt!==void 0||nt!==void 0,wt=st!=null||ct||!Et,Qt=useImage({...et,crossOrigin:ut,ignoreFallback:wt}),pt=shouldShowFallbackImage(Qt,gt),mt={ref:tt,objectFit:ot,objectPosition:at,...wt?ht:omit(ht,["onError","onLoad"])};return pt?nt||jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,className:"chakra-image__placeholder",src:rt,...mt}):jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,src:it,srcSet:At,crossOrigin:ut,loading:st,referrerPolicy:dt,className:"chakra-image",...mt})});Image$1.displayName="Image";function getValidChildren($){return reactExports.Children.toArray($).filter(et=>reactExports.isValidElement(et))}var[ButtonGroupProvider,useButtonGroup]=createContext$1({strict:!1,name:"ButtonGroupContext"});function useButtonType($){const[et,tt]=reactExports.useState(!$);return{ref:reactExports.useCallback(it=>{it&&tt(it.tagName==="BUTTON")},[]),type:et?"button":void 0}}function ButtonIcon($){const{children:et,className:tt,...rt}=$,nt=reactExports.isValidElement(et)?reactExports.cloneElement(et,{"aria-hidden":!0,focusable:!1}):et,it=cx("chakra-button__icon",tt);return jsxRuntimeExports.jsx(chakra.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...rt,className:it,children:nt})}ButtonIcon.displayName="ButtonIcon";function ButtonSpinner($){const{label:et,placement:tt,spacing:rt="0.5rem",children:nt=jsxRuntimeExports.jsx(Spinner,{color:"currentColor",width:"1em",height:"1em"}),className:it,__css:At,...at}=$,ot=cx("chakra-button__spinner",it),st=tt==="start"?"marginEnd":"marginStart",ct=reactExports.useMemo(()=>({display:"flex",alignItems:"center",position:et?"relative":"absolute",[st]:et?rt:0,fontSize:"1em",lineHeight:"normal",...At}),[At,et,st,rt]);return jsxRuntimeExports.jsx(chakra.div,{className:ot,...at,__css:ct,children:nt})}ButtonSpinner.displayName="ButtonSpinner";var Button=forwardRef(($,et)=>{const tt=useButtonGroup(),rt=useStyleConfig("Button",{...tt,...$}),{isDisabled:nt=tt==null?void 0:tt.isDisabled,isLoading:it,isActive:At,children:at,leftIcon:ot,rightIcon:st,loadingText:ct,iconSpacing:ut="0.5rem",type:gt,spinner:dt,spinnerPlacement:ht="start",className:Et,as:wt,...Qt}=omitThemingProps($),pt=reactExports.useMemo(()=>{const Ut={...rt==null?void 0:rt._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...rt,...!!tt&&{_focus:Ut}}},[rt,tt]),{ref:mt,type:$t}=useButtonType(wt),Tt={rightIcon:st,leftIcon:ot,iconSpacing:ut,children:at};return jsxRuntimeExports.jsxs(chakra.button,{ref:useMergeRefs$1(et,mt),as:wt,type:gt??$t,"data-active":dataAttr(At),"data-loading":dataAttr(it),__css:pt,className:cx("chakra-button",Et),...Qt,disabled:nt||it,children:[it&&ht==="start"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--start",label:ct,placement:"start",spacing:ut,children:dt}),it?ct||jsxRuntimeExports.jsx(chakra.span,{opacity:0,children:jsxRuntimeExports.jsx(ButtonContent,{...Tt})}):jsxRuntimeExports.jsx(ButtonContent,{...Tt}),it&&ht==="end"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--end",label:ct,placement:"end",spacing:ut,children:dt})]})});Button.displayName="Button";function ButtonContent($){const{leftIcon:et,rightIcon:tt,children:rt,iconSpacing:nt}=$;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&jsxRuntimeExports.jsx(ButtonIcon,{marginEnd:nt,children:et}),rt,tt&&jsxRuntimeExports.jsx(ButtonIcon,{marginStart:nt,children:tt})]})}function _objectWithoutPropertiesLoose($,et){if($==null)return{};var tt={},rt=Object.keys($),nt,it;for(it=0;it=0)&&(tt[nt]=$[nt]);return tt}var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef($,et){return typeof $=="function"?$(et):$&&($.current=et),$}function useCallbackRef$1($,et){var tt=reactExports.useState(function(){return{value:$,callback:et,facade:{get current(){return tt.value},set current(rt){var nt=tt.value;nt!==rt&&(tt.value=rt,tt.callback(rt,nt))}}}})[0];return tt.callback=et,tt.facade}function useMergeRefs($,et){return useCallbackRef$1(et||null,function(tt){return $.forEach(function(rt){return assignRef(rt,tt)})})}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},__assign=function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rt=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function($,et){return toArray$1(($.shadowRoot||$).children).reduce(function(tt,rt){return tt.concat(rt.matches(et?queryGuardTabbables:queryTabbables)?[rt]:[],getFocusablesWithShadowDom(rt))},[])},getFocusablesWithIFrame=function($,et){var tt;return $ instanceof HTMLIFrameElement&&(!((tt=$.contentDocument)===null||tt===void 0)&&tt.body)?getFocusables([$.contentDocument.body],et):[$]},getFocusables=function($,et){return $.reduce(function(tt,rt){var nt,it=getFocusablesWithShadowDom(rt,et),At=(nt=[]).concat.apply(nt,it.map(function(at){return getFocusablesWithIFrame(at,et)}));return tt.concat(At,rt.parentNode?toArray$1(rt.parentNode.querySelectorAll(queryTabbables)).filter(function(at){return at===rt}):[])},[])},getParentAutofocusables=function($){var et=$.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$1(et).map(function(tt){return getFocusables([tt])}).reduce(function(tt,rt){return tt.concat(rt)},[])},filterFocusable=function($,et){return toArray$1($).filter(function(tt){return isVisibleCached(et,tt)}).filter(function(tt){return notHiddenInput(tt)})},filterAutoFocusable=function($,et){return et===void 0&&(et=new Map),toArray$1($).filter(function(tt){return isAutoFocusAllowedCached(et,tt)})},getTabbableNodes=function($,et,tt){return orderByTabIndex(filterFocusable(getFocusables($,tt),et),!0,tt)},getAllTabbableNodes=function($,et){return orderByTabIndex(filterFocusable(getFocusables($),et),!1)},parentAutofocusables=function($,et){return filterFocusable(getParentAutofocusables($),et)},contains=function($,et){return $.shadowRoot?contains($.shadowRoot,et):Object.getPrototypeOf($).contains!==void 0&&Object.getPrototypeOf($).contains.call($,et)?!0:toArray$1($.children).some(function(tt){var rt;if(tt instanceof HTMLIFrameElement){var nt=(rt=tt.contentDocument)===null||rt===void 0?void 0:rt.body;return nt?contains(nt,et):!1}return contains(tt,et)})},filterNested=function($){for(var et=new Set,tt=$.length,rt=0;rt0&&et.add(nt),(it&Node.DOCUMENT_POSITION_CONTAINS)>0&&et.add(rt)}return $.filter(function(At,at){return!et.has(at)})},getTopParent=function($){return $.parentNode?getTopParent($.parentNode):$},getAllAffectedNodes=function($){var et=asArray($);return et.filter(Boolean).reduce(function(tt,rt){var nt=rt.getAttribute(FOCUS_GROUP);return tt.push.apply(tt,nt?filterNested(toArray$1(getTopParent(rt).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(nt,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[rt]),tt},[])},safeProbe=function($){try{return $()}catch{return}},getActiveElement=function($){if($===void 0&&($=document),!(!$||!$.activeElement)){var et=$.activeElement;return et.shadowRoot?getActiveElement(et.shadowRoot):et instanceof HTMLIFrameElement&&safeProbe(function(){return et.contentWindow.document})?getActiveElement(et.contentWindow.document):et}},focusInFrame=function($,et){return $===et},focusInsideIframe=function($,et){return!!toArray$1($.querySelectorAll("iframe")).some(function(tt){return focusInFrame(tt,et)})},focusInside=function($,et){return et===void 0&&(et=getActiveElement(getFirst($).ownerDocument)),!et||et.dataset&&et.dataset.focusGuard?!1:getAllAffectedNodes($).some(function(tt){return contains(tt,et)||focusInsideIframe(tt,et)})},focusIsHidden=function($){$===void 0&&($=document);var et=getActiveElement($);return et?toArray$1($.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(tt){return contains(tt,et)}):!1},findSelectedRadio=function($,et){return et.filter(isRadioElement).filter(function(tt){return tt.name===$.name}).filter(function(tt){return tt.checked})[0]||$},correctNode=function($,et){return isRadioElement($)&&$.name?findSelectedRadio($,et):$},correctNodes=function($){var et=new Set;return $.forEach(function(tt){return et.add(correctNode(tt,$))}),$.filter(function(tt){return et.has(tt)})},pickFirstFocus=function($){return $[0]&&$.length>1?correctNode($[0],$):$[0]},pickFocusable=function($,et){return $.length>1?$.indexOf(correctNode($[et],$)):et},NEW_FOCUS="NEW_FOCUS",newFocus=function($,et,tt,rt){var nt=$.length,it=$[0],At=$[nt-1],at=isGuard(tt);if(!(tt&&$.indexOf(tt)>=0)){var ot=tt!==void 0?et.indexOf(tt):-1,st=rt?et.indexOf(rt):ot,ct=rt?$.indexOf(rt):-1,ut=ot-st,gt=et.indexOf(it),dt=et.indexOf(At),ht=correctNodes(et),Et=tt!==void 0?ht.indexOf(tt):-1,wt=Et-(rt?ht.indexOf(rt):ot),Qt=pickFocusable($,0),pt=pickFocusable($,nt-1);if(ot===-1||ct===-1)return NEW_FOCUS;if(!ut&&ct>=0)return ct;if(ot<=gt&&at&&Math.abs(ut)>1)return pt;if(ot>=dt&&at&&Math.abs(ut)>1)return Qt;if(ut&&Math.abs(wt)>1)return ct;if(ot<=gt)return pt;if(ot>dt)return Qt;if(ut)return Math.abs(ut)>1?ct:(nt+ct+ut)%nt}},findAutoFocused=function($){return function(et){var tt,rt=(tt=getDataset(et))===null||tt===void 0?void 0:tt.autofocus;return et.autofocus||rt!==void 0&&rt!=="false"||$.indexOf(et)>=0}},pickAutofocus=function($,et,tt){var rt=$.map(function(it){var At=it.node;return At}),nt=filterAutoFocusable(rt.filter(findAutoFocused(tt)));return nt&&nt.length?pickFirstFocus(nt):pickFirstFocus(filterAutoFocusable(et))},getParents=function($,et){return et===void 0&&(et=[]),et.push($),$.parentNode&&getParents($.parentNode.host||$.parentNode,et),et},getCommonParent=function($,et){for(var tt=getParents($),rt=getParents(et),nt=0;nt=0)return it}return!1},getTopCommonParent=function($,et,tt){var rt=asArray($),nt=asArray(et),it=rt[0],At=!1;return nt.filter(Boolean).forEach(function(at){At=getCommonParent(At||at,at)||At,tt.filter(Boolean).forEach(function(ot){var st=getCommonParent(it,ot);st&&(!At||contains(st,At)?At=st:At=getCommonParent(st,At))})}),At},allParentAutofocusables=function($,et){return $.reduce(function(tt,rt){return tt.concat(parentAutofocusables(rt,et))},[])},reorderNodes=function($,et){var tt=new Map;return et.forEach(function(rt){return tt.set(rt.node,rt)}),$.map(function(rt){return tt.get(rt)}).filter(isDefined)},getFocusMerge=function($,et){var tt=getActiveElement(asArray($).length>0?document:getFirst($).ownerDocument),rt=getAllAffectedNodes($).filter(isNotAGuard),nt=getTopCommonParent(tt||$,$,rt),it=new Map,At=getAllTabbableNodes(rt,it),at=getTabbableNodes(rt,it).filter(function(dt){var ht=dt.node;return isNotAGuard(ht)});if(!(!at[0]&&(at=At,!at[0]))){var ot=getAllTabbableNodes([nt],it).map(function(dt){var ht=dt.node;return ht}),st=reorderNodes(ot,at),ct=st.map(function(dt){var ht=dt.node;return ht}),ut=newFocus(ct,ot,tt,et);if(ut===NEW_FOCUS){var gt=pickAutofocus(At,ct,allParentAutofocusables(rt,it));if(gt)return{node:gt};console.warn("focus-lock: cannot find any node to move focus into");return}return ut===void 0?ut:st[ut]}},getFocusabledIn=function($){var et=getAllAffectedNodes($).filter(isNotAGuard),tt=getTopCommonParent($,$,et),rt=new Map,nt=getTabbableNodes([tt],rt,!0),it=getTabbableNodes(et,rt).filter(function(At){var at=At.node;return isNotAGuard(at)}).map(function(At){var at=At.node;return at});return nt.map(function(At){var at=At.node,ot=At.index;return{node:at,index:ot,lockItem:it.indexOf(at)>=0,guard:isGuard(at)}})},focusOn=function($,et){"focus"in $&&$.focus(et),"contentWindow"in $&&$.contentWindow&&$.contentWindow.focus()},guardCount=0,lockDisabled=!1,setFocus=function($,et,tt){tt===void 0&&(tt={});var rt=getFocusMerge($,et);if(!lockDisabled&&rt){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(rt.node,tt.focusOptions),guardCount--}};function deferAction($){setTimeout($,1)}var focusOnBody=function(){return document&&document.activeElement===document.body},isFreeFocus=function(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function(){return!0},focusWhitelisted=function(et){return(lastActiveTrap.whiteList||defaultWhitelist)(et)},recordPortal=function(et,tt){lastPortaledElement={observerNode:et,portaledElement:tt}},focusIsPortaledPair=function(et){return lastPortaledElement&&lastPortaledElement.portaledElement===et};function autoGuard($,et,tt,rt){var nt=null,it=$;do{var At=rt[it];if(At.guard)At.node.dataset.focusAutoGuard&&(nt=At);else if(At.lockItem){if(it!==$)return;nt=null}else break}while((it+=tt)!==et);nt&&(nt.node.tabIndex=0)}var extractRef$1=function(et){return et&&"current"in et?et.current:et},focusWasOutside=function(et){return et?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function $(et,tt,rt){return tt&&(tt.host===et&&(!tt.activeElement||rt.contains(tt.activeElement))||tt.parentNode&&$(et,tt.parentNode,rt))},withinHost=function(et,tt){return tt.some(function(rt){return checkInHost(et,rt,rt)})},activateTrap=function(){var et=!1;if(lastActiveTrap){var tt=lastActiveTrap,rt=tt.observed,nt=tt.persistentFocus,it=tt.autoFocus,At=tt.shards,at=tt.crossFrame,ot=tt.focusOptions,st=rt||lastPortaledElement&&lastPortaledElement.portaledElement,ct=document&&document.activeElement;if(st){var ut=[st].concat(At.map(extractRef$1).filter(Boolean));if((!ct||focusWhitelisted(ct))&&(nt||focusWasOutside(at)||!isFreeFocus()||!lastActiveFocus&&it)&&(st&&!(focusInside(ut)||ct&&withinHost(ct,ut)||focusIsPortaledPair(ct))&&(document&&!lastActiveFocus&&ct&&!it?(ct.blur&&ct.blur(),document.body.focus()):(et=setFocus(ut,lastActiveFocus,{focusOptions:ot}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document){var gt=document&&document.activeElement,dt=getFocusabledIn(ut),ht=dt.map(function(Et){var wt=Et.node;return wt}).indexOf(gt);ht>-1&&(dt.filter(function(Et){var wt=Et.guard,Qt=Et.node;return wt&&Qt.dataset.focusAutoGuard}).forEach(function(Et){var wt=Et.node;return wt.removeAttribute("tabIndex")}),autoGuard(ht,dt.length,1,dt),autoGuard(ht,-1,-1,dt))}}}return et},onTrap=function(et){activateTrap()&&et&&(et.stopPropagation(),et.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onFocus=function(et){var tt=et.target,rt=et.currentTarget;rt.contains(tt)||recordPortal(rt,tt)},FocusWatcher=function(){return null},onWindowBlur=function(){focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState($){return $.filter(function(et){var tt=et.disabled;return!tt})}function handleStateChangeOnClient($){var et=$.slice(-1)[0];et&&!lastActiveTrap&&attachHandler();var tt=lastActiveTrap,rt=tt&&et&&et.id===tt.id;lastActiveTrap=et,tt&&!rt&&(tt.onDeactivation(),$.filter(function(nt){var it=nt.id;return it===tt.id}).length||tt.returnFocus(!et)),et?(lastActiveFocus=null,(!rt||tt.observed!==et.observed)&&et.onActivation(),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function($){return $({moveFocusInside:setFocus,focusInside})});const FocusTrap$1=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function(et,tt){return reactExports.createElement(FocusLockUI,_extends({sideCar:FocusTrap$1,ref:tt},et))}),_ref=FocusLockUI.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose(_ref,["sideCar"]);FocusLockCombination.propTypes={};const FocusLock$1=FocusLockCombination;function isElement($){return $!=null&&typeof $=="object"&&"nodeType"in $&&$.nodeType===Node.ELEMENT_NODE}function isHTMLElement($){var et;if(!isElement($))return!1;const tt=(et=$.ownerDocument.defaultView)!=null?et:window;return $ instanceof tt.HTMLElement}var hasTabIndex=$=>$.hasAttribute("tabindex");function isDisabled($){return!!$.getAttribute("disabled")||!!$.getAttribute("aria-disabled")}function isHidden($){return $.parentElement&&isHidden($.parentElement)?!0:$.hidden}function isContentEditable($){const et=$.getAttribute("contenteditable");return et!=="false"&&et!=null}function isFocusable($){if(!isHTMLElement($)||isHidden($)||isDisabled($))return!1;const{localName:et}=$;if(["input","select","textarea","button"].indexOf(et)>=0)return!0;const rt={a:()=>$.hasAttribute("href"),audio:()=>$.hasAttribute("controls"),video:()=>$.hasAttribute("controls")};return et in rt?rt[et]():isContentEditable($)?!0:hasTabIndex($)}var focusableElList=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],focusableElSelector=focusableElList.join(),isVisible=$=>$.offsetWidth>0&&$.offsetHeight>0;function getAllFocusable($){const et=Array.from($.querySelectorAll(focusableElSelector));return et.unshift($),et.filter(tt=>isFocusable(tt)&&isVisible(tt))}var _a,FocusTrap=(_a=FocusLock$1.default)!=null?_a:FocusLock$1,FocusLock=$=>{const{initialFocusRef:et,finalFocusRef:tt,contentRef:rt,restoreFocus:nt,children:it,isDisabled:At,autoFocus:at,persistentFocus:ot,lockFocusAcrossFrames:st}=$,ct=reactExports.useCallback(()=>{et!=null&&et.current?et.current.focus():rt!=null&&rt.current&&getAllFocusable(rt.current).length===0&&requestAnimationFrame(()=>{var ht;(ht=rt.current)==null||ht.focus()})},[et,rt]),ut=reactExports.useCallback(()=>{var dt;(dt=tt==null?void 0:tt.current)==null||dt.focus()},[tt]),gt=nt&&!tt;return jsxRuntimeExports.jsx(FocusTrap,{crossFrame:st,persistentFocus:ot,autoFocus:at,disabled:At,onActivation:ct,onDeactivation:ut,returnFocus:gt,children:it})};FocusLock.displayName="FocusLock";var useSafeLayoutEffect=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect;function useCallbackRef($,et=[]){const tt=reactExports.useRef($);return useSafeLayoutEffect(()=>{tt.current=$}),reactExports.useCallback((...rt)=>{var nt;return(nt=tt.current)==null?void 0:nt.call(tt,...rt)},et)}function useId($,et){const tt=reactExports.useId();return reactExports.useMemo(()=>$||[et,tt].filter(Boolean).join("-"),[$,et,tt])}function useControllableProp($,et){const tt=$!==void 0;return[tt,tt&&typeof $<"u"?$:et]}function useDisclosure($={}){const{onClose:et,onOpen:tt,isOpen:rt,id:nt}=$,it=useCallbackRef(tt),At=useCallbackRef(et),[at,ot]=reactExports.useState($.defaultIsOpen||!1),[st,ct]=useControllableProp(rt,at),ut=useId(nt,"disclosure"),gt=reactExports.useCallback(()=>{st||ot(!1),At==null||At()},[st,At]),dt=reactExports.useCallback(()=>{st||ot(!0),it==null||it()},[st,it]),ht=reactExports.useCallback(()=>{(ct?gt:dt)()},[ct,dt,gt]);return{isOpen:!!ct,onOpen:dt,onClose:gt,onToggle:ht,isControlled:st,getButtonProps:(Et={})=>({...Et,"aria-expanded":ct,"aria-controls":ut,onClick:callAllHandlers(Et.onClick,ht)}),getDisclosureProps:(Et={})=>({...Et,hidden:!ct,id:ut})}}var Link=forwardRef(function(et,tt){const rt=useStyleConfig("Link",et),{className:nt,isExternal:it,...At}=omitThemingProps(et);return jsxRuntimeExports.jsx(chakra.a,{target:it?"_blank":void 0,rel:it?"noopener":void 0,ref:tt,className:cx("chakra-link",nt),...At,__css:rt})});Link.displayName="Link";var Grid=forwardRef(function(et,tt){const{templateAreas:rt,gap:nt,rowGap:it,columnGap:At,column:at,row:ot,autoFlow:st,autoRows:ct,templateRows:ut,autoColumns:gt,templateColumns:dt,...ht}=et,Et={display:"grid",gridTemplateAreas:rt,gridGap:nt,gridRowGap:it,gridColumnGap:At,gridAutoColumns:gt,gridColumn:at,gridRow:ot,gridAutoFlow:st,gridAutoRows:ct,gridTemplateRows:ut,gridTemplateColumns:dt};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:Et,...ht})});Grid.displayName="Grid";function mapResponsive($,et){return Array.isArray($)?$.map(tt=>tt===null?null:et(tt)):isObject($)?Object.keys($).reduce((tt,rt)=>(tt[rt]=et($[rt]),tt),{}):$!=null?et($):null}var Text$3=forwardRef(function(et,tt){const rt=useStyleConfig("Text",et),{className:nt,align:it,decoration:At,casing:at,...ot}=omitThemingProps(et),st=compact({textAlign:et.align,textDecoration:et.decoration,textTransform:et.casing});return jsxRuntimeExports.jsx(chakra.p,{ref:tt,className:cx("chakra-text",et.className),...st,...ot,__css:rt})});Text$3.displayName="Text";var StackItem=$=>jsxRuntimeExports.jsx(chakra.div,{className:"chakra-stack__item",...$,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...$.__css}});StackItem.displayName="StackItem";function getDividerStyles($){const{spacing:et,direction:tt}=$,rt={column:{my:et,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:et,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:et,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:et,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mapResponsive(tt,nt=>rt[nt])}}var Stack=forwardRef(($,et)=>{const{isInline:tt,direction:rt,align:nt,justify:it,spacing:At="0.5rem",wrap:at,children:ot,divider:st,className:ct,shouldWrapChildren:ut,...gt}=$,dt=tt?"row":rt??"column",ht=reactExports.useMemo(()=>getDividerStyles({spacing:At,direction:dt}),[At,dt]),Et=!!st,wt=!ut&&!Et,Qt=reactExports.useMemo(()=>{const mt=getValidChildren(ot);return wt?mt:mt.map(($t,Tt)=>{const Ut=typeof $t.key<"u"?$t.key:Tt,Pt=Tt+1===mt.length,zt=ut?jsxRuntimeExports.jsx(StackItem,{children:$t},Ut):$t;if(!Et)return zt;const Yt=reactExports.cloneElement(st,{__css:ht}),Mt=Pt?null:Yt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[zt,Mt]},Ut)})},[st,ht,Et,wt,ut,ot]),pt=cx("chakra-stack",ct);return jsxRuntimeExports.jsx(chakra.div,{ref:et,display:"flex",alignItems:nt,justifyContent:it,flexDirection:dt,flexWrap:at,gap:Et?void 0:At,className:pt,...gt,children:Qt})});Stack.displayName="Stack";var VStack=forwardRef(($,et)=>jsxRuntimeExports.jsx(Stack,{align:"center",...$,direction:"column",ref:et}));VStack.displayName="VStack";function spanFn($){return mapResponsive($,et=>et==="auto"?"auto":`span ${et}/span ${et}`)}var GridItem=forwardRef(function(et,tt){const{area:rt,colSpan:nt,colStart:it,colEnd:At,rowEnd:at,rowSpan:ot,rowStart:st,...ct}=et,ut=compact({gridArea:rt,gridColumn:spanFn(nt),gridRow:spanFn(ot),gridColumnStart:it,gridColumnEnd:At,gridRowStart:st,gridRowEnd:at});return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:ut,...ct})});GridItem.displayName="GridItem";var Heading=forwardRef(function(et,tt){const rt=useStyleConfig("Heading",et),{className:nt,...it}=omitThemingProps(et);return jsxRuntimeExports.jsx(chakra.h2,{ref:tt,className:cx("chakra-heading",et.className),...it,__css:rt})});Heading.displayName="Heading";var Box=chakra("div");Box.displayName="Box";var Square=forwardRef(function(et,tt){const{size:rt,centerContent:nt=!0,...it}=et,At=nt?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return jsxRuntimeExports.jsx(Box,{ref:tt,boxSize:rt,__css:{...At,flexShrink:0,flexGrow:0},...it})});Square.displayName="Square";var Circle=forwardRef(function(et,tt){const{size:rt,...nt}=et;return jsxRuntimeExports.jsx(Square,{size:rt,ref:tt,borderRadius:"9999px",...nt})});Circle.displayName="Circle";var Container=forwardRef(function(et,tt){const{className:rt,centerContent:nt,...it}=omitThemingProps(et),At=useStyleConfig("Container",et);return jsxRuntimeExports.jsx(chakra.div,{ref:tt,className:cx("chakra-container",rt),...it,__css:{...At,...nt&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Container.displayName="Container";var Flex=forwardRef(function(et,tt){const{direction:rt,align:nt,justify:it,wrap:At,basis:at,grow:ot,shrink:st,...ct}=et,ut={display:"flex",flexDirection:rt,alignItems:nt,justifyContent:it,flexWrap:At,flexBasis:at,flexGrow:ot,flexShrink:st};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:ut,...ct})});Flex.displayName="Flex";var transitions={slideInBottom:{...slideFadeConfig,custom:{offsetY:16,reverse:!0}},slideInRight:{...slideFadeConfig,custom:{offsetX:16,reverse:!0}},slideInTop:{...slideFadeConfig,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...slideFadeConfig,custom:{offsetX:-16,reverse:!0}},scale:{...scaleFadeConfig,custom:{initialScale:.95,reverse:!0}},none:{}},MotionSection=chakra(motion.section),getMotionProps=$=>transitions[$||"none"],ModalTransition=reactExports.forwardRef(($,et)=>{const{preset:tt,motionProps:rt=getMotionProps(tt),...nt}=$;return jsxRuntimeExports.jsx(MotionSection,{ref:et,...rt,...nt})});ModalTransition.displayName="ModalTransition";var __defProp$1=Object.defineProperty,__defNormalProp$1=($,et,tt)=>et in $?__defProp$1($,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):$[et]=tt,__publicField=($,et,tt)=>(__defNormalProp$1($,typeof et!="symbol"?et+"":et,tt),tt),ModalManager=class{constructor(){__publicField(this,"modals"),this.modals=new Map}add($){return this.modals.set($,this.modals.size+1),this.modals.size}remove($){this.modals.delete($)}isTopModal($){return $?this.modals.get($)===this.modals.size:!1}},modalManager=new ModalManager;function useModalManager($,et){const[tt,rt]=reactExports.useState(0);return reactExports.useEffect(()=>{const nt=$.current;if(nt){if(et){const it=modalManager.add(nt);rt(it)}return()=>{modalManager.remove(nt),rt(0)}}},[et,$]),tt}var getDefaultParent=function($){if(typeof document>"u")return null;var et=Array.isArray($)?$[0]:$;return et.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function($){return $&&($.host||unwrapHost($.parentNode))},correctTargets=function($,et){return et.map(function(tt){if($.contains(tt))return tt;var rt=unwrapHost(tt);return rt&&$.contains(rt)?rt:(console.error("aria-hidden",tt,"in not contained inside",$,". Doing nothing"),null)}).filter(function(tt){return!!tt})},applyAttributeToOthers=function($,et,tt,rt){var nt=correctTargets(et,Array.isArray($)?$:[$]);markerMap[tt]||(markerMap[tt]=new WeakMap);var it=markerMap[tt],At=[],at=new Set,ot=new Set(nt),st=function(ut){!ut||at.has(ut)||(at.add(ut),st(ut.parentNode))};nt.forEach(st);var ct=function(ut){!ut||ot.has(ut)||Array.prototype.forEach.call(ut.children,function(gt){if(at.has(gt))ct(gt);else{var dt=gt.getAttribute(rt),ht=dt!==null&&dt!=="false",Et=(counterMap.get(gt)||0)+1,wt=(it.get(gt)||0)+1;counterMap.set(gt,Et),it.set(gt,wt),At.push(gt),Et===1&&ht&&uncontrolledNodes.set(gt,!0),wt===1&>.setAttribute(tt,"true"),ht||gt.setAttribute(rt,"true")}})};return ct(et),at.clear(),lockCount++,function(){At.forEach(function(ut){var gt=counterMap.get(ut)-1,dt=it.get(ut)-1;counterMap.set(ut,gt),it.set(ut,dt),gt||(uncontrolledNodes.has(ut)||ut.removeAttribute(rt),uncontrolledNodes.delete(ut)),dt||ut.removeAttribute(tt)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function($,et,tt){tt===void 0&&(tt="data-aria-hidden");var rt=Array.from(Array.isArray($)?$:[$]),nt=et||getDefaultParent($);return nt?(rt.push.apply(rt,Array.from(nt.querySelectorAll("[aria-live]"))),applyAttributeToOthers(rt,nt,tt,"aria-hidden")):function(){return null}};function useModal($){const{isOpen:et,onClose:tt,id:rt,closeOnOverlayClick:nt=!0,closeOnEsc:it=!0,useInert:At=!0,onOverlayClick:at,onEsc:ot}=$,st=reactExports.useRef(null),ct=reactExports.useRef(null),[ut,gt,dt]=useIds(rt,"chakra-modal","chakra-modal--header","chakra-modal--body");useAriaHidden(st,et&&At);const ht=useModalManager(st,et),Et=reactExports.useRef(null),wt=reactExports.useCallback(zt=>{Et.current=zt.target},[]),Qt=reactExports.useCallback(zt=>{zt.key==="Escape"&&(zt.stopPropagation(),it&&(tt==null||tt()),ot==null||ot())},[it,tt,ot]),[pt,mt]=reactExports.useState(!1),[$t,Tt]=reactExports.useState(!1),Ut=reactExports.useCallback((zt={},Yt=null)=>({role:"dialog",...zt,ref:mergeRefs(Yt,st),id:ut,tabIndex:-1,"aria-modal":!0,"aria-labelledby":pt?gt:void 0,"aria-describedby":$t?dt:void 0,onClick:callAllHandlers$1(zt.onClick,Mt=>Mt.stopPropagation())}),[dt,$t,ut,gt,pt]),Pt=reactExports.useCallback(zt=>{zt.stopPropagation(),Et.current===zt.target&&modalManager.isTopModal(st.current)&&(nt&&(tt==null||tt()),at==null||at())},[tt,nt,at]),Kt=reactExports.useCallback((zt={},Yt=null)=>({...zt,ref:mergeRefs(Yt,ct),onClick:callAllHandlers$1(zt.onClick,Pt),onKeyDown:callAllHandlers$1(zt.onKeyDown,Qt),onMouseDown:callAllHandlers$1(zt.onMouseDown,wt)}),[Qt,wt,Pt]);return{isOpen:et,onClose:tt,headerId:gt,bodyId:dt,setBodyMounted:Tt,setHeaderMounted:mt,dialogRef:st,overlayRef:ct,getDialogProps:Ut,getDialogContainerProps:Kt,index:ht}}function useAriaHidden($,et){const tt=$.current;reactExports.useEffect(()=>{if(!(!$.current||!et))return hideOthers($.current)},[et,$,tt])}function useIds($,...et){const tt=reactExports.useId(),rt=$||tt;return reactExports.useMemo(()=>et.map(nt=>`${nt}-${rt}`),[rt,et])}var[ModalStylesProvider,useModalStyles]=createContext$1({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ModalContextProvider,useModalContext]=createContext$1({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Modal=$=>{const et={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...$},{portalProps:tt,children:rt,autoFocus:nt,trapFocus:it,initialFocusRef:At,finalFocusRef:at,returnFocusOnClose:ot,blockScrollOnMount:st,allowPinchZoom:ct,preserveScrollBarGap:ut,motionPreset:gt,lockFocusAcrossFrames:dt,onCloseComplete:ht}=et,Et=useMultiStyleConfig("Modal",et),Qt={...useModal(et),autoFocus:nt,trapFocus:it,initialFocusRef:At,finalFocusRef:at,returnFocusOnClose:ot,blockScrollOnMount:st,allowPinchZoom:ct,preserveScrollBarGap:ut,motionPreset:gt,lockFocusAcrossFrames:dt};return jsxRuntimeExports.jsx(ModalContextProvider,{value:Qt,children:jsxRuntimeExports.jsx(ModalStylesProvider,{value:Et,children:jsxRuntimeExports.jsx(AnimatePresence,{onExitComplete:ht,children:Qt.isOpen&&jsxRuntimeExports.jsx(Portal,{...tt,children:rt})})})})};Modal.displayName="Modal";var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size",effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll$1=reactExports.forwardRef(function($,et){var tt=reactExports.useRef(null),rt=reactExports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),nt=rt[0],it=rt[1],At=$.forwardProps,at=$.children,ot=$.className,st=$.removeScrollBar,ct=$.enabled,ut=$.shards,gt=$.sideCar,dt=$.noIsolation,ht=$.inert,Et=$.allowPinchZoom,wt=$.as,Qt=wt===void 0?"div":wt,pt=$.gapMode,mt=__rest$5($,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),$t=gt,Tt=useMergeRefs([tt,et]),Ut=__assign(__assign({},mt),nt);return reactExports.createElement(reactExports.Fragment,null,ct&&reactExports.createElement($t,{sideCar:effectCar,removeScrollBar:st,shards:ut,noIsolation:dt,inert:ht,setCallbacks:it,allowPinchZoom:!!Et,lockRef:tt,gapMode:pt}),At?reactExports.cloneElement(reactExports.Children.only(at),__assign(__assign({},Ut),{ref:Tt})):reactExports.createElement(Qt,__assign({},Ut,{className:ot,ref:Tt}),at))});RemoveScroll$1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll$1.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var currentNonce,getNonce=function(){if(currentNonce)return currentNonce;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var $=document.createElement("style");$.type="text/css";var et=getNonce();return et&&$.setAttribute("nonce",et),$}function injectStyles($,et){$.styleSheet?$.styleSheet.cssText=et:$.appendChild(document.createTextNode(et))}function insertStyleTag($){var et=document.head||document.getElementsByTagName("head")[0];et.appendChild($)}var stylesheetSingleton=function(){var $=0,et=null;return{add:function(tt){$==0&&(et=makeStyleTag())&&(injectStyles(et,tt),insertStyleTag(et)),$++},remove:function(){$--,!$&&et&&(et.parentNode&&et.parentNode.removeChild(et),et=null)}}},styleHookSingleton=function(){var $=stylesheetSingleton();return function(et,tt){reactExports.useEffect(function(){return $.add(et),function(){$.remove()}},[et&&tt])}},styleSingleton=function(){var $=styleHookSingleton(),et=function(tt){var rt=tt.styles,nt=tt.dynamic;return $(rt,nt),null};return et},zeroGap={left:0,top:0,right:0,gap:0},parse=function($){return parseInt($||"",10)||0},getOffset=function($){var et=window.getComputedStyle(document.body),tt=et[$==="padding"?"paddingLeft":"marginLeft"],rt=et[$==="padding"?"paddingTop":"marginTop"],nt=et[$==="padding"?"paddingRight":"marginRight"];return[parse(tt),parse(rt),parse(nt)]},getGapWidth=function($){if($===void 0&&($="margin"),typeof window>"u")return zeroGap;var et=getOffset($),tt=document.documentElement.clientWidth,rt=window.innerWidth;return{left:et[0],top:et[1],right:et[2],gap:Math.max(0,rt-tt+et[2]-et[0])}},Style=styleSingleton(),getStyles=function($,et,tt,rt){var nt=$.left,it=$.top,At=$.right,at=$.gap;return tt===void 0&&(tt="margin"),` + `),()=>{document.head.removeChild(st)}},[et]),reactExports.createElement(PopChildMeasure,{isPresent:et,childRef:rt,sizeRef:nt},reactExports.cloneElement($,{ref:rt}))}const PresenceChild=({children:$,initial:et,isPresent:tt,onExitComplete:rt,custom:nt,presenceAffectsLayout:it,mode:At})=>{const at=useConstant(newChildrenMap),ot=reactExports.useId(),st=reactExports.useMemo(()=>({id:ot,initial:et,isPresent:tt,custom:nt,onExitComplete:ct=>{at.set(ct,!0);for(const ut of at.values())if(!ut)return;rt&&rt()},register:ct=>(at.set(ct,!1),()=>at.delete(ct))}),it?void 0:[tt]);return reactExports.useMemo(()=>{at.forEach((ct,ut)=>at.set(ut,!1))},[tt]),reactExports.useEffect(()=>{!tt&&!at.size&&rt&&rt()},[tt]),At==="popLayout"&&($=reactExports.createElement(PopChild,{isPresent:tt},$)),reactExports.createElement(PresenceContext.Provider,{value:st},$)};function newChildrenMap(){return new Map}function useUnmountEffect($){return reactExports.useEffect(()=>()=>$(),[])}const getChildKey=$=>$.key||"";function updateChildLookup($,et){$.forEach(tt=>{const rt=getChildKey(tt);et.set(rt,tt)})}function onlyElements($){const et=[];return reactExports.Children.forEach($,tt=>{reactExports.isValidElement(tt)&&et.push(tt)}),et}const AnimatePresence=({children:$,custom:et,initial:tt=!0,onExitComplete:rt,exitBeforeEnter:nt,presenceAffectsLayout:it=!0,mode:At="sync"})=>{const at=reactExports.useContext(LayoutGroupContext).forceRender||useForceUpdate()[0],ot=useIsMounted(),st=onlyElements($);let ct=st;const ut=reactExports.useRef(new Map).current,gt=reactExports.useRef(ct),dt=reactExports.useRef(new Map).current,ht=reactExports.useRef(!0);if(useIsomorphicLayoutEffect$1(()=>{ht.current=!1,updateChildLookup(st,dt),gt.current=ct}),useUnmountEffect(()=>{ht.current=!0,dt.clear(),ut.clear()}),ht.current)return reactExports.createElement(reactExports.Fragment,null,ct.map(pt=>reactExports.createElement(PresenceChild,{key:getChildKey(pt),isPresent:!0,initial:tt?void 0:!1,presenceAffectsLayout:it,mode:At},pt)));ct=[...ct];const Et=gt.current.map(getChildKey),wt=st.map(getChildKey),mt=Et.length;for(let pt=0;pt{if(wt.indexOf(Qt)!==-1)return;const $t=dt.get(Qt);if(!$t)return;const Gt=Et.indexOf(Qt);let Tt=pt;if(!Tt){const Pt=()=>{dt.delete(Qt),ut.delete(Qt);const Kt=gt.current.findIndex(ir=>ir.key===Qt);if(gt.current.splice(Kt,1),!ut.size){if(gt.current=st,ot.current===!1)return;at(),rt&&rt()}};Tt=reactExports.createElement(PresenceChild,{key:getChildKey($t),isPresent:!1,onExitComplete:Pt,custom:et,presenceAffectsLayout:it,mode:At},$t),ut.set(Qt,Tt)}ct.splice(Gt,0,Tt)}),ct=ct.map(pt=>{const Qt=pt.key;return ut.has(Qt)?pt:reactExports.createElement(PresenceChild,{key:getChildKey(pt),isPresent:!0,presenceAffectsLayout:it,mode:At},pt)}),reactExports.createElement(reactExports.Fragment,null,ut.size?ct:ct.map(pt=>reactExports.cloneElement(pt)))};var toastMotionVariants={initial:$=>{const{position:et}=$,tt=["top","bottom"].includes(et)?"y":"x";let rt=["top-right","bottom-right"].includes(et)?1:-1;return et==="bottom"&&(rt=1),{opacity:0,[tt]:rt*24}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},ToastComponent=reactExports.memo($=>{const{id:et,message:tt,onCloseComplete:rt,onRequestRemove:nt,requestClose:it=!1,position:At="bottom",duration:at=5e3,containerStyle:ot,motionVariants:st=toastMotionVariants,toastSpacing:ct="0.5rem"}=$,[ut,gt]=reactExports.useState(at),dt=useIsPresent();useUpdateEffect(()=>{dt||rt==null||rt()},[dt]),useUpdateEffect(()=>{gt(at)},[at]);const ht=()=>gt(null),Et=()=>gt(at),wt=()=>{dt&&nt()};reactExports.useEffect(()=>{dt&&it&&nt()},[dt,it,nt]),useTimeout(wt,ut);const mt=reactExports.useMemo(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:ct,...ot}),[ot,ct]),pt=reactExports.useMemo(()=>getToastStyle(At),[At]);return jsxRuntimeExports.jsx(motion.div,{layout:!0,className:"chakra-toast",variants:st,initial:"initial",animate:"animate",exit:"exit",onHoverStart:ht,onHoverEnd:Et,custom:{position:At},style:pt,children:jsxRuntimeExports.jsx(chakra.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:mt,children:runIfFn$2(tt,{id:et,onClose:wt})})})});ToastComponent.displayName="ToastComponent";var fallbackIcon={path:jsxRuntimeExports.jsxs("g",{stroke:"currentColor",strokeWidth:"1.5",children:[jsxRuntimeExports.jsx("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),jsxRuntimeExports.jsx("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),jsxRuntimeExports.jsx("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Icon=forwardRef(($,et)=>{const{as:tt,viewBox:rt,color:nt="currentColor",focusable:it=!1,children:At,className:at,__css:ot,...st}=$,ct=cx("chakra-icon",at),ut=useStyleConfig("Icon",$),gt={w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:nt,...ot,...ut},dt={ref:et,focusable:it,className:ct,__css:gt},ht=rt??fallbackIcon.viewBox;if(tt&&typeof tt!="string")return jsxRuntimeExports.jsx(chakra.svg,{as:tt,...dt,...st});const Et=At??fallbackIcon.path;return jsxRuntimeExports.jsx(chakra.svg,{verticalAlign:"middle",viewBox:ht,...dt,...st,children:Et})});Icon.displayName="Icon";function CheckIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})}function InfoIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})}function WarningIcon($){return jsxRuntimeExports.jsx(Icon,{viewBox:"0 0 24 24",...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}var spin=keyframes$1({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Spinner=forwardRef(($,et)=>{const tt=useStyleConfig("Spinner",$),{label:rt="Loading...",thickness:nt="2px",speed:it="0.45s",emptyColor:At="transparent",className:at,...ot}=omitThemingProps($),st=cx("chakra-spinner",at),ct={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:nt,borderBottomColor:At,borderLeftColor:At,animation:`${spin} ${it} linear infinite`,...tt};return jsxRuntimeExports.jsx(chakra.div,{ref:et,__css:ct,className:st,...ot,children:rt&&jsxRuntimeExports.jsx(chakra.span,{srOnly:!0,children:rt})})});Spinner.displayName="Spinner";var[AlertProvider,useAlertContext]=createContext$1({name:"AlertContext",hookName:"useAlertContext",providerName:""}),[AlertStylesProvider,useAlertStyles]=createContext$1({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),STATUSES={info:{icon:InfoIcon,colorScheme:"blue"},warning:{icon:WarningIcon,colorScheme:"orange"},success:{icon:CheckIcon,colorScheme:"green"},error:{icon:WarningIcon,colorScheme:"red"},loading:{icon:Spinner,colorScheme:"blue"}};function getStatusColorScheme($){return STATUSES[$].colorScheme}function getStatusIcon($){return STATUSES[$].icon}var AlertDescription=forwardRef(function(et,tt){const rt=useAlertStyles(),{status:nt}=useAlertContext(),it={display:"inline",...rt.description};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,"data-status":nt,...et,className:cx("chakra-alert__desc",et.className),__css:it})});AlertDescription.displayName="AlertDescription";function AlertIcon($){const{status:et}=useAlertContext(),tt=getStatusIcon(et),rt=useAlertStyles(),nt=et==="loading"?rt.spinner:rt.icon;return jsxRuntimeExports.jsx(chakra.span,{display:"inherit","data-status":et,...$,className:cx("chakra-alert__icon",$.className),__css:nt,children:$.children||jsxRuntimeExports.jsx(tt,{h:"100%",w:"100%"})})}AlertIcon.displayName="AlertIcon";var AlertTitle=forwardRef(function(et,tt){const rt=useAlertStyles(),{status:nt}=useAlertContext();return jsxRuntimeExports.jsx(chakra.div,{ref:tt,"data-status":nt,...et,className:cx("chakra-alert__title",et.className),__css:rt.title})});AlertTitle.displayName="AlertTitle";var Alert=forwardRef(function(et,tt){var rt;const{status:nt="info",addRole:it=!0,...At}=omitThemingProps(et),at=(rt=et.colorScheme)!=null?rt:getStatusColorScheme(nt),ot=useMultiStyleConfig("Alert",{...et,colorScheme:at}),st={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...ot.container};return jsxRuntimeExports.jsx(AlertProvider,{value:{status:nt},children:jsxRuntimeExports.jsx(AlertStylesProvider,{value:ot,children:jsxRuntimeExports.jsx(chakra.div,{"data-status":nt,role:it?"alert":void 0,ref:tt,...At,className:cx("chakra-alert",et.className),__css:st})})})});Alert.displayName="Alert";function CloseIcon($){return jsxRuntimeExports.jsx(Icon,{focusable:"false","aria-hidden":!0,...$,children:jsxRuntimeExports.jsx("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}var CloseButton=forwardRef(function(et,tt){const rt=useStyleConfig("CloseButton",et),{children:nt,isDisabled:it,__css:At,...at}=omitThemingProps(et),ot={outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0};return jsxRuntimeExports.jsx(chakra.button,{type:"button","aria-label":"Close",ref:tt,disabled:it,__css:{...ot,...rt,...At},...at,children:nt||jsxRuntimeExports.jsx(CloseIcon,{width:"1em",height:"1em"})})});CloseButton.displayName="CloseButton";var initialState$2={top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]},toastStore=createStore$1(initialState$2);function createStore$1($){let et=$;const tt=new Set,rt=nt=>{et=nt(et),tt.forEach(it=>it())};return{getState:()=>et,subscribe:nt=>(tt.add(nt),()=>{rt(()=>$),tt.delete(nt)}),removeToast:(nt,it)=>{rt(At=>({...At,[it]:At[it].filter(at=>at.id!=nt)}))},notify:(nt,it)=>{const At=createToast(nt,it),{position:at,id:ot}=At;return rt(st=>{var ct,ut;const dt=at.includes("top")?[At,...(ct=st[at])!=null?ct:[]]:[...(ut=st[at])!=null?ut:[],At];return{...st,[at]:dt}}),ot},update:(nt,it)=>{nt&&rt(At=>{const at={...At},{position:ot,index:st}=findToast(at,nt);return ot&&st!==-1&&(at[ot][st]={...at[ot][st],...it,message:createRenderToast(it)}),at})},closeAll:({positions:nt}={})=>{rt(it=>(nt??["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((ot,st)=>(ot[st]=it[st].map(ct=>({...ct,requestClose:!0})),ot),{...it}))},close:nt=>{rt(it=>{const At=getToastPosition(it,nt);return At?{...it,[At]:it[At].map(at=>at.id==nt?{...at,requestClose:!0}:at)}:it})},isActive:nt=>!!findToast(toastStore.getState(),nt).position}}var counter=0;function createToast($,et={}){var tt,rt;counter+=1;const nt=(tt=et.id)!=null?tt:counter,it=(rt=et.position)!=null?rt:"bottom";return{id:nt,message:$,position:it,duration:et.duration,onCloseComplete:et.onCloseComplete,onRequestRemove:()=>toastStore.removeToast(String(nt),it),status:et.status,requestClose:!1,containerStyle:et.containerStyle}}var Toast=$=>{const{status:et,variant:tt="solid",id:rt,title:nt,isClosable:it,onClose:At,description:at,colorScheme:ot,icon:st}=$,ct=rt?{root:`toast-${rt}`,title:`toast-${rt}-title`,description:`toast-${rt}-description`}:void 0;return jsxRuntimeExports.jsxs(Alert,{addRole:!1,status:et,variant:tt,id:ct==null?void 0:ct.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:ot,children:[jsxRuntimeExports.jsx(AlertIcon,{children:st}),jsxRuntimeExports.jsxs(chakra.div,{flex:"1",maxWidth:"100%",children:[nt&&jsxRuntimeExports.jsx(AlertTitle,{id:ct==null?void 0:ct.title,children:nt}),at&&jsxRuntimeExports.jsx(AlertDescription,{id:ct==null?void 0:ct.description,display:"block",children:at})]}),it&&jsxRuntimeExports.jsx(CloseButton,{size:"sm",onClick:At,position:"absolute",insetEnd:1,top:1})]})};function createRenderToast($={}){const{render:et,toastComponent:tt=Toast}=$;return nt=>typeof et=="function"?et({...nt,...$}):jsxRuntimeExports.jsx(tt,{...nt,...$})}var[ToastOptionProvider,useToastOptionContext]=createContext$1({name:"ToastOptionsContext",strict:!1}),ToastProvider=$=>{const et=reactExports.useSyncExternalStore(toastStore.subscribe,toastStore.getState,toastStore.getState),{motionVariants:tt,component:rt=ToastComponent,portalProps:nt}=$,At=Object.keys(et).map(at=>{const ot=et[at];return jsxRuntimeExports.jsx("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:`chakra-toast-manager-${at}`,style:getToastListStyle(at),children:jsxRuntimeExports.jsx(AnimatePresence,{initial:!1,children:ot.map(st=>jsxRuntimeExports.jsx(rt,{motionVariants:tt,...st},st.id))})},at)});return jsxRuntimeExports.jsx(Portal,{...nt,children:At})},createChakraProvider=$=>function({children:tt,theme:rt=$,toastOptions:nt,...it}){return jsxRuntimeExports.jsxs(ChakraProvider$1,{theme:rt,...it,children:[jsxRuntimeExports.jsx(ToastOptionProvider,{value:nt==null?void 0:nt.defaultOptions,children:tt}),jsxRuntimeExports.jsx(ToastProvider,{...nt})]})},ChakraProvider=createChakraProvider(theme$1);function assignRef$1($,et){if($!=null){if(typeof $=="function"){$(et);return}try{$.current=et}catch{throw new Error(`Cannot assign value '${et}' to ref '${$}'`)}}}function mergeRefs(...$){return et=>{$.forEach(tt=>{assignRef$1(tt,et)})}}function useMergeRefs$1(...$){return reactExports.useMemo(()=>mergeRefs(...$),$)}var TRANSITION_EASINGS={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},TRANSITION_DEFAULTS={enter:{duration:.2,ease:TRANSITION_EASINGS.easeOut},exit:{duration:.1,ease:TRANSITION_EASINGS.easeIn}},withDelay={enter:($,et)=>({...$,delay:typeof et=="number"?et:et==null?void 0:et.enter}),exit:($,et)=>({...$,delay:typeof et=="number"?et:et==null?void 0:et.exit})},variants$3={enter:({transition:$,transitionEnd:et,delay:tt}={})=>{var rt;return{opacity:1,transition:(rt=$==null?void 0:$.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:et==null?void 0:et.enter}},exit:({transition:$,transitionEnd:et,delay:tt}={})=>{var rt;return{opacity:0,transition:(rt=$==null?void 0:$.exit)!=null?rt:withDelay.exit(TRANSITION_DEFAULTS.exit,tt),transitionEnd:et==null?void 0:et.exit}}},fadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$3},Fade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,className:it,transition:At,transitionEnd:at,delay:ot,...st}=et,ct=nt||rt?"enter":"exit",ut=rt?nt&&rt:!0,gt={transition:At,transitionEnd:at,delay:ot};return jsxRuntimeExports.jsx(AnimatePresence,{custom:gt,children:ut&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-fade",it),custom:gt,...fadeConfig,animate:ct,...st})})});Fade.displayName="Fade";var variants$2={exit:({reverse:$,initialScale:et,transition:tt,transitionEnd:rt,delay:nt})=>{var it;return{opacity:0,...$?{scale:et,transitionEnd:rt==null?void 0:rt.exit}:{transitionEnd:{scale:et,...rt==null?void 0:rt.exit}},transition:(it=tt==null?void 0:tt.exit)!=null?it:withDelay.exit(TRANSITION_DEFAULTS.exit,nt)}},enter:({transitionEnd:$,transition:et,delay:tt})=>{var rt;return{opacity:1,scale:1,transition:(rt=et==null?void 0:et.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:$==null?void 0:$.enter}}},scaleFadeConfig={initial:"exit",animate:"enter",exit:"exit",variants:variants$2},ScaleFade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,reverse:it=!0,initialScale:At=.95,className:at,transition:ot,transitionEnd:st,delay:ct,...ut}=et,gt=rt?nt&&rt:!0,dt=nt||rt?"enter":"exit",ht={initialScale:At,reverse:it,transition:ot,transitionEnd:st,delay:ct};return jsxRuntimeExports.jsx(AnimatePresence,{custom:ht,children:gt&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-offset-slide",at),...scaleFadeConfig,animate:dt,custom:ht,...ut})})});ScaleFade.displayName="ScaleFade";var variants$1={initial:({offsetX:$,offsetY:et,transition:tt,transitionEnd:rt,delay:nt})=>{var it;return{opacity:0,x:$,y:et,transition:(it=tt==null?void 0:tt.exit)!=null?it:withDelay.exit(TRANSITION_DEFAULTS.exit,nt),transitionEnd:rt==null?void 0:rt.exit}},enter:({transition:$,transitionEnd:et,delay:tt})=>{var rt;return{opacity:1,x:0,y:0,transition:(rt=$==null?void 0:$.enter)!=null?rt:withDelay.enter(TRANSITION_DEFAULTS.enter,tt),transitionEnd:et==null?void 0:et.enter}},exit:({offsetY:$,offsetX:et,transition:tt,transitionEnd:rt,reverse:nt,delay:it})=>{var At;const at={x:et,y:$};return{opacity:0,transition:(At=tt==null?void 0:tt.exit)!=null?At:withDelay.exit(TRANSITION_DEFAULTS.exit,it),...nt?{...at,transitionEnd:rt==null?void 0:rt.exit}:{transitionEnd:{...at,...rt==null?void 0:rt.exit}}}}},slideFadeConfig={initial:"initial",animate:"enter",exit:"exit",variants:variants$1},SlideFade=reactExports.forwardRef(function(et,tt){const{unmountOnExit:rt,in:nt,reverse:it=!0,className:At,offsetX:at=0,offsetY:ot=8,transition:st,transitionEnd:ct,delay:ut,...gt}=et,dt=rt?nt&&rt:!0,ht=nt||rt?"enter":"exit",Et={offsetX:at,offsetY:ot,reverse:it,transition:st,transitionEnd:ct,delay:ut};return jsxRuntimeExports.jsx(AnimatePresence,{custom:Et,children:dt&&jsxRuntimeExports.jsx(motion.div,{ref:tt,className:cx("chakra-offset-slide",At),custom:Et,...slideFadeConfig,animate:ht,...gt})})});SlideFade.displayName="SlideFade";var NativeImage=forwardRef(function(et,tt){const{htmlWidth:rt,htmlHeight:nt,alt:it,...At}=et;return jsxRuntimeExports.jsx("img",{width:rt,height:nt,ref:tt,alt:it,...At})});NativeImage.displayName="NativeImage";function useImage($){const{loading:et,src:tt,srcSet:rt,onLoad:nt,onError:it,crossOrigin:At,sizes:at,ignoreFallback:ot}=$,[st,ct]=reactExports.useState("pending");reactExports.useEffect(()=>{ct(tt?"loading":"pending")},[tt]);const ut=reactExports.useRef(),gt=reactExports.useCallback(()=>{if(!tt)return;dt();const ht=new Image;ht.src=tt,At&&(ht.crossOrigin=At),rt&&(ht.srcset=rt),at&&(ht.sizes=at),et&&(ht.loading=et),ht.onload=Et=>{dt(),ct("loaded"),nt==null||nt(Et)},ht.onerror=Et=>{dt(),ct("failed"),it==null||it(Et)},ut.current=ht},[tt,At,rt,at,nt,it,et]),dt=()=>{ut.current&&(ut.current.onload=null,ut.current.onerror=null,ut.current=null)};return useSafeLayoutEffect$1(()=>{if(!ot)return st==="loading"&>(),()=>{dt()}},[st,gt,ot]),ot?"loaded":st}var shouldShowFallbackImage=($,et)=>$!=="loaded"&&et==="beforeLoadOrError"||$==="failed"&&et==="onError";function omit($,et=[]){const tt=Object.assign({},$);for(const rt of et)rt in tt&&delete tt[rt];return tt}var Image$1=forwardRef(function(et,tt){const{fallbackSrc:rt,fallback:nt,src:it,srcSet:At,align:at,fit:ot,loading:st,ignoreFallback:ct,crossOrigin:ut,fallbackStrategy:gt="beforeLoadOrError",referrerPolicy:dt,...ht}=et,Et=rt!==void 0||nt!==void 0,wt=st!=null||ct||!Et,mt=useImage({...et,crossOrigin:ut,ignoreFallback:wt}),pt=shouldShowFallbackImage(mt,gt),Qt={ref:tt,objectFit:ot,objectPosition:at,...wt?ht:omit(ht,["onError","onLoad"])};return pt?nt||jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,className:"chakra-image__placeholder",src:rt,...Qt}):jsxRuntimeExports.jsx(chakra.img,{as:NativeImage,src:it,srcSet:At,crossOrigin:ut,loading:st,referrerPolicy:dt,className:"chakra-image",...Qt})});Image$1.displayName="Image";function getValidChildren($){return reactExports.Children.toArray($).filter(et=>reactExports.isValidElement(et))}var[ButtonGroupProvider,useButtonGroup]=createContext$1({strict:!1,name:"ButtonGroupContext"});function useButtonType($){const[et,tt]=reactExports.useState(!$);return{ref:reactExports.useCallback(it=>{it&&tt(it.tagName==="BUTTON")},[]),type:et?"button":void 0}}function ButtonIcon($){const{children:et,className:tt,...rt}=$,nt=reactExports.isValidElement(et)?reactExports.cloneElement(et,{"aria-hidden":!0,focusable:!1}):et,it=cx("chakra-button__icon",tt);return jsxRuntimeExports.jsx(chakra.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...rt,className:it,children:nt})}ButtonIcon.displayName="ButtonIcon";function ButtonSpinner($){const{label:et,placement:tt,spacing:rt="0.5rem",children:nt=jsxRuntimeExports.jsx(Spinner,{color:"currentColor",width:"1em",height:"1em"}),className:it,__css:At,...at}=$,ot=cx("chakra-button__spinner",it),st=tt==="start"?"marginEnd":"marginStart",ct=reactExports.useMemo(()=>({display:"flex",alignItems:"center",position:et?"relative":"absolute",[st]:et?rt:0,fontSize:"1em",lineHeight:"normal",...At}),[At,et,st,rt]);return jsxRuntimeExports.jsx(chakra.div,{className:ot,...at,__css:ct,children:nt})}ButtonSpinner.displayName="ButtonSpinner";var Button=forwardRef(($,et)=>{const tt=useButtonGroup(),rt=useStyleConfig("Button",{...tt,...$}),{isDisabled:nt=tt==null?void 0:tt.isDisabled,isLoading:it,isActive:At,children:at,leftIcon:ot,rightIcon:st,loadingText:ct,iconSpacing:ut="0.5rem",type:gt,spinner:dt,spinnerPlacement:ht="start",className:Et,as:wt,...mt}=omitThemingProps($),pt=reactExports.useMemo(()=>{const Tt={...rt==null?void 0:rt._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...rt,...!!tt&&{_focus:Tt}}},[rt,tt]),{ref:Qt,type:$t}=useButtonType(wt),Gt={rightIcon:st,leftIcon:ot,iconSpacing:ut,children:at};return jsxRuntimeExports.jsxs(chakra.button,{ref:useMergeRefs$1(et,Qt),as:wt,type:gt??$t,"data-active":dataAttr(At),"data-loading":dataAttr(it),__css:pt,className:cx("chakra-button",Et),...mt,disabled:nt||it,children:[it&&ht==="start"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--start",label:ct,placement:"start",spacing:ut,children:dt}),it?ct||jsxRuntimeExports.jsx(chakra.span,{opacity:0,children:jsxRuntimeExports.jsx(ButtonContent,{...Gt})}):jsxRuntimeExports.jsx(ButtonContent,{...Gt}),it&&ht==="end"&&jsxRuntimeExports.jsx(ButtonSpinner,{className:"chakra-button__spinner--end",label:ct,placement:"end",spacing:ut,children:dt})]})});Button.displayName="Button";function ButtonContent($){const{leftIcon:et,rightIcon:tt,children:rt,iconSpacing:nt}=$;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[et&&jsxRuntimeExports.jsx(ButtonIcon,{marginEnd:nt,children:et}),rt,tt&&jsxRuntimeExports.jsx(ButtonIcon,{marginStart:nt,children:tt})]})}function _objectWithoutPropertiesLoose($,et){if($==null)return{};var tt={},rt=Object.keys($),nt,it;for(it=0;it=0)&&(tt[nt]=$[nt]);return tt}var FOCUS_GROUP="data-focus-lock",FOCUS_DISABLED="data-focus-lock-disabled",FOCUS_ALLOW="data-no-focus-lock",FOCUS_AUTO="data-autofocus-inside",FOCUS_NO_AUTOFOCUS="data-no-autofocus";function assignRef($,et){return typeof $=="function"?$(et):$&&($.current=et),$}function useCallbackRef$1($,et){var tt=reactExports.useState(function(){return{value:$,callback:et,facade:{get current(){return tt.value},set current(rt){var nt=tt.value;nt!==rt&&(tt.value=rt,tt.callback(rt,nt))}}}})[0];return tt.callback=et,tt.facade}function useMergeRefs($,et){return useCallbackRef$1(et||null,function(tt){return $.forEach(function(rt){return assignRef(rt,tt)})})}var hiddenGuard={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},__assign=function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rt=0}).sort(tabSort)},tabbables=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],queryTabbables=tabbables.join(","),queryGuardTabbables="".concat(queryTabbables,", [data-focus-guard]"),getFocusablesWithShadowDom=function($,et){return toArray$1(($.shadowRoot||$).children).reduce(function(tt,rt){return tt.concat(rt.matches(et?queryGuardTabbables:queryTabbables)?[rt]:[],getFocusablesWithShadowDom(rt))},[])},getFocusablesWithIFrame=function($,et){var tt;return $ instanceof HTMLIFrameElement&&(!((tt=$.contentDocument)===null||tt===void 0)&&tt.body)?getFocusables([$.contentDocument.body],et):[$]},getFocusables=function($,et){return $.reduce(function(tt,rt){var nt,it=getFocusablesWithShadowDom(rt,et),At=(nt=[]).concat.apply(nt,it.map(function(at){return getFocusablesWithIFrame(at,et)}));return tt.concat(At,rt.parentNode?toArray$1(rt.parentNode.querySelectorAll(queryTabbables)).filter(function(at){return at===rt}):[])},[])},getParentAutofocusables=function($){var et=$.querySelectorAll("[".concat(FOCUS_AUTO,"]"));return toArray$1(et).map(function(tt){return getFocusables([tt])}).reduce(function(tt,rt){return tt.concat(rt)},[])},filterFocusable=function($,et){return toArray$1($).filter(function(tt){return isVisibleCached(et,tt)}).filter(function(tt){return notHiddenInput(tt)})},filterAutoFocusable=function($,et){return et===void 0&&(et=new Map),toArray$1($).filter(function(tt){return isAutoFocusAllowedCached(et,tt)})},getTabbableNodes=function($,et,tt){return orderByTabIndex(filterFocusable(getFocusables($,tt),et),!0,tt)},getAllTabbableNodes=function($,et){return orderByTabIndex(filterFocusable(getFocusables($),et),!1)},parentAutofocusables=function($,et){return filterFocusable(getParentAutofocusables($),et)},contains=function($,et){return $.shadowRoot?contains($.shadowRoot,et):Object.getPrototypeOf($).contains!==void 0&&Object.getPrototypeOf($).contains.call($,et)?!0:toArray$1($.children).some(function(tt){var rt;if(tt instanceof HTMLIFrameElement){var nt=(rt=tt.contentDocument)===null||rt===void 0?void 0:rt.body;return nt?contains(nt,et):!1}return contains(tt,et)})},filterNested=function($){for(var et=new Set,tt=$.length,rt=0;rt0&&et.add(nt),(it&Node.DOCUMENT_POSITION_CONTAINS)>0&&et.add(rt)}return $.filter(function(At,at){return!et.has(at)})},getTopParent=function($){return $.parentNode?getTopParent($.parentNode):$},getAllAffectedNodes=function($){var et=asArray($);return et.filter(Boolean).reduce(function(tt,rt){var nt=rt.getAttribute(FOCUS_GROUP);return tt.push.apply(tt,nt?filterNested(toArray$1(getTopParent(rt).querySelectorAll("[".concat(FOCUS_GROUP,'="').concat(nt,'"]:not([').concat(FOCUS_DISABLED,'="disabled"])')))):[rt]),tt},[])},safeProbe=function($){try{return $()}catch{return}},getActiveElement=function($){if($===void 0&&($=document),!(!$||!$.activeElement)){var et=$.activeElement;return et.shadowRoot?getActiveElement(et.shadowRoot):et instanceof HTMLIFrameElement&&safeProbe(function(){return et.contentWindow.document})?getActiveElement(et.contentWindow.document):et}},focusInFrame=function($,et){return $===et},focusInsideIframe=function($,et){return!!toArray$1($.querySelectorAll("iframe")).some(function(tt){return focusInFrame(tt,et)})},focusInside=function($,et){return et===void 0&&(et=getActiveElement(getFirst($).ownerDocument)),!et||et.dataset&&et.dataset.focusGuard?!1:getAllAffectedNodes($).some(function(tt){return contains(tt,et)||focusInsideIframe(tt,et)})},focusIsHidden=function($){$===void 0&&($=document);var et=getActiveElement($);return et?toArray$1($.querySelectorAll("[".concat(FOCUS_ALLOW,"]"))).some(function(tt){return contains(tt,et)}):!1},findSelectedRadio=function($,et){return et.filter(isRadioElement).filter(function(tt){return tt.name===$.name}).filter(function(tt){return tt.checked})[0]||$},correctNode=function($,et){return isRadioElement($)&&$.name?findSelectedRadio($,et):$},correctNodes=function($){var et=new Set;return $.forEach(function(tt){return et.add(correctNode(tt,$))}),$.filter(function(tt){return et.has(tt)})},pickFirstFocus=function($){return $[0]&&$.length>1?correctNode($[0],$):$[0]},pickFocusable=function($,et){return $.length>1?$.indexOf(correctNode($[et],$)):et},NEW_FOCUS="NEW_FOCUS",newFocus=function($,et,tt,rt){var nt=$.length,it=$[0],At=$[nt-1],at=isGuard(tt);if(!(tt&&$.indexOf(tt)>=0)){var ot=tt!==void 0?et.indexOf(tt):-1,st=rt?et.indexOf(rt):ot,ct=rt?$.indexOf(rt):-1,ut=ot-st,gt=et.indexOf(it),dt=et.indexOf(At),ht=correctNodes(et),Et=tt!==void 0?ht.indexOf(tt):-1,wt=Et-(rt?ht.indexOf(rt):ot),mt=pickFocusable($,0),pt=pickFocusable($,nt-1);if(ot===-1||ct===-1)return NEW_FOCUS;if(!ut&&ct>=0)return ct;if(ot<=gt&&at&&Math.abs(ut)>1)return pt;if(ot>=dt&&at&&Math.abs(ut)>1)return mt;if(ut&&Math.abs(wt)>1)return ct;if(ot<=gt)return pt;if(ot>dt)return mt;if(ut)return Math.abs(ut)>1?ct:(nt+ct+ut)%nt}},findAutoFocused=function($){return function(et){var tt,rt=(tt=getDataset(et))===null||tt===void 0?void 0:tt.autofocus;return et.autofocus||rt!==void 0&&rt!=="false"||$.indexOf(et)>=0}},pickAutofocus=function($,et,tt){var rt=$.map(function(it){var At=it.node;return At}),nt=filterAutoFocusable(rt.filter(findAutoFocused(tt)));return nt&&nt.length?pickFirstFocus(nt):pickFirstFocus(filterAutoFocusable(et))},getParents=function($,et){return et===void 0&&(et=[]),et.push($),$.parentNode&&getParents($.parentNode.host||$.parentNode,et),et},getCommonParent=function($,et){for(var tt=getParents($),rt=getParents(et),nt=0;nt=0)return it}return!1},getTopCommonParent=function($,et,tt){var rt=asArray($),nt=asArray(et),it=rt[0],At=!1;return nt.filter(Boolean).forEach(function(at){At=getCommonParent(At||at,at)||At,tt.filter(Boolean).forEach(function(ot){var st=getCommonParent(it,ot);st&&(!At||contains(st,At)?At=st:At=getCommonParent(st,At))})}),At},allParentAutofocusables=function($,et){return $.reduce(function(tt,rt){return tt.concat(parentAutofocusables(rt,et))},[])},reorderNodes=function($,et){var tt=new Map;return et.forEach(function(rt){return tt.set(rt.node,rt)}),$.map(function(rt){return tt.get(rt)}).filter(isDefined)},getFocusMerge=function($,et){var tt=getActiveElement(asArray($).length>0?document:getFirst($).ownerDocument),rt=getAllAffectedNodes($).filter(isNotAGuard),nt=getTopCommonParent(tt||$,$,rt),it=new Map,At=getAllTabbableNodes(rt,it),at=getTabbableNodes(rt,it).filter(function(dt){var ht=dt.node;return isNotAGuard(ht)});if(!(!at[0]&&(at=At,!at[0]))){var ot=getAllTabbableNodes([nt],it).map(function(dt){var ht=dt.node;return ht}),st=reorderNodes(ot,at),ct=st.map(function(dt){var ht=dt.node;return ht}),ut=newFocus(ct,ot,tt,et);if(ut===NEW_FOCUS){var gt=pickAutofocus(At,ct,allParentAutofocusables(rt,it));if(gt)return{node:gt};console.warn("focus-lock: cannot find any node to move focus into");return}return ut===void 0?ut:st[ut]}},getFocusabledIn=function($){var et=getAllAffectedNodes($).filter(isNotAGuard),tt=getTopCommonParent($,$,et),rt=new Map,nt=getTabbableNodes([tt],rt,!0),it=getTabbableNodes(et,rt).filter(function(At){var at=At.node;return isNotAGuard(at)}).map(function(At){var at=At.node;return at});return nt.map(function(At){var at=At.node,ot=At.index;return{node:at,index:ot,lockItem:it.indexOf(at)>=0,guard:isGuard(at)}})},focusOn=function($,et){"focus"in $&&$.focus(et),"contentWindow"in $&&$.contentWindow&&$.contentWindow.focus()},guardCount=0,lockDisabled=!1,setFocus=function($,et,tt){tt===void 0&&(tt={});var rt=getFocusMerge($,et);if(!lockDisabled&&rt){if(guardCount>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),lockDisabled=!0,setTimeout(function(){lockDisabled=!1},1);return}guardCount++,focusOn(rt.node,tt.focusOptions),guardCount--}};function deferAction($){setTimeout($,1)}var focusOnBody=function(){return document&&document.activeElement===document.body},isFreeFocus=function(){return focusOnBody()||focusIsHidden()},lastActiveTrap=null,lastActiveFocus=null,lastPortaledElement=null,focusWasOutsideWindow=!1,defaultWhitelist=function(){return!0},focusWhitelisted=function(et){return(lastActiveTrap.whiteList||defaultWhitelist)(et)},recordPortal=function(et,tt){lastPortaledElement={observerNode:et,portaledElement:tt}},focusIsPortaledPair=function(et){return lastPortaledElement&&lastPortaledElement.portaledElement===et};function autoGuard($,et,tt,rt){var nt=null,it=$;do{var At=rt[it];if(At.guard)At.node.dataset.focusAutoGuard&&(nt=At);else if(At.lockItem){if(it!==$)return;nt=null}else break}while((it+=tt)!==et);nt&&(nt.node.tabIndex=0)}var extractRef$1=function(et){return et&&"current"in et?et.current:et},focusWasOutside=function(et){return et?!!focusWasOutsideWindow:focusWasOutsideWindow==="meanwhile"},checkInHost=function $(et,tt,rt){return tt&&(tt.host===et&&(!tt.activeElement||rt.contains(tt.activeElement))||tt.parentNode&&$(et,tt.parentNode,rt))},withinHost=function(et,tt){return tt.some(function(rt){return checkInHost(et,rt,rt)})},activateTrap=function(){var et=!1;if(lastActiveTrap){var tt=lastActiveTrap,rt=tt.observed,nt=tt.persistentFocus,it=tt.autoFocus,At=tt.shards,at=tt.crossFrame,ot=tt.focusOptions,st=rt||lastPortaledElement&&lastPortaledElement.portaledElement,ct=document&&document.activeElement;if(st){var ut=[st].concat(At.map(extractRef$1).filter(Boolean));if((!ct||focusWhitelisted(ct))&&(nt||focusWasOutside(at)||!isFreeFocus()||!lastActiveFocus&&it)&&(st&&!(focusInside(ut)||ct&&withinHost(ct,ut)||focusIsPortaledPair(ct))&&(document&&!lastActiveFocus&&ct&&!it?(ct.blur&&ct.blur(),document.body.focus()):(et=setFocus(ut,lastActiveFocus,{focusOptions:ot}),lastPortaledElement={})),focusWasOutsideWindow=!1,lastActiveFocus=document&&document.activeElement),document){var gt=document&&document.activeElement,dt=getFocusabledIn(ut),ht=dt.map(function(Et){var wt=Et.node;return wt}).indexOf(gt);ht>-1&&(dt.filter(function(Et){var wt=Et.guard,mt=Et.node;return wt&&mt.dataset.focusAutoGuard}).forEach(function(Et){var wt=Et.node;return wt.removeAttribute("tabIndex")}),autoGuard(ht,dt.length,1,dt),autoGuard(ht,-1,-1,dt))}}}return et},onTrap=function(et){activateTrap()&&et&&(et.stopPropagation(),et.preventDefault())},onBlur=function(){return deferAction(activateTrap)},onFocus=function(et){var tt=et.target,rt=et.currentTarget;rt.contains(tt)||recordPortal(rt,tt)},FocusWatcher=function(){return null},onWindowBlur=function(){focusWasOutsideWindow="just",deferAction(function(){focusWasOutsideWindow="meanwhile"})},attachHandler=function(){document.addEventListener("focusin",onTrap),document.addEventListener("focusout",onBlur),window.addEventListener("blur",onWindowBlur)},detachHandler=function(){document.removeEventListener("focusin",onTrap),document.removeEventListener("focusout",onBlur),window.removeEventListener("blur",onWindowBlur)};function reducePropsToState($){return $.filter(function(et){var tt=et.disabled;return!tt})}function handleStateChangeOnClient($){var et=$.slice(-1)[0];et&&!lastActiveTrap&&attachHandler();var tt=lastActiveTrap,rt=tt&&et&&et.id===tt.id;lastActiveTrap=et,tt&&!rt&&(tt.onDeactivation(),$.filter(function(nt){var it=nt.id;return it===tt.id}).length||tt.returnFocus(!et)),et?(lastActiveFocus=null,(!rt||tt.observed!==et.observed)&&et.onActivation(),activateTrap(),deferAction(activateTrap)):(detachHandler(),lastActiveFocus=null)}mediumFocus.assignSyncMedium(onFocus);mediumBlur.assignMedium(onBlur);mediumEffect.assignMedium(function($){return $({moveFocusInside:setFocus,focusInside})});const FocusTrap$1=withSideEffect(reducePropsToState,handleStateChangeOnClient)(FocusWatcher);var FocusLockCombination=reactExports.forwardRef(function(et,tt){return reactExports.createElement(FocusLockUI,_extends({sideCar:FocusTrap$1,ref:tt},et))}),_ref=FocusLockUI.propTypes||{};_ref.sideCar;_objectWithoutPropertiesLoose(_ref,["sideCar"]);FocusLockCombination.propTypes={};const FocusLock$1=FocusLockCombination;function isElement($){return $!=null&&typeof $=="object"&&"nodeType"in $&&$.nodeType===Node.ELEMENT_NODE}function isHTMLElement($){var et;if(!isElement($))return!1;const tt=(et=$.ownerDocument.defaultView)!=null?et:window;return $ instanceof tt.HTMLElement}var hasTabIndex=$=>$.hasAttribute("tabindex");function isDisabled($){return!!$.getAttribute("disabled")||!!$.getAttribute("aria-disabled")}function isHidden($){return $.parentElement&&isHidden($.parentElement)?!0:$.hidden}function isContentEditable($){const et=$.getAttribute("contenteditable");return et!=="false"&&et!=null}function isFocusable($){if(!isHTMLElement($)||isHidden($)||isDisabled($))return!1;const{localName:et}=$;if(["input","select","textarea","button"].indexOf(et)>=0)return!0;const rt={a:()=>$.hasAttribute("href"),audio:()=>$.hasAttribute("controls"),video:()=>$.hasAttribute("controls")};return et in rt?rt[et]():isContentEditable($)?!0:hasTabIndex($)}var focusableElList=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"],focusableElSelector=focusableElList.join(),isVisible=$=>$.offsetWidth>0&&$.offsetHeight>0;function getAllFocusable($){const et=Array.from($.querySelectorAll(focusableElSelector));return et.unshift($),et.filter(tt=>isFocusable(tt)&&isVisible(tt))}var _a,FocusTrap=(_a=FocusLock$1.default)!=null?_a:FocusLock$1,FocusLock=$=>{const{initialFocusRef:et,finalFocusRef:tt,contentRef:rt,restoreFocus:nt,children:it,isDisabled:At,autoFocus:at,persistentFocus:ot,lockFocusAcrossFrames:st}=$,ct=reactExports.useCallback(()=>{et!=null&&et.current?et.current.focus():rt!=null&&rt.current&&getAllFocusable(rt.current).length===0&&requestAnimationFrame(()=>{var ht;(ht=rt.current)==null||ht.focus()})},[et,rt]),ut=reactExports.useCallback(()=>{var dt;(dt=tt==null?void 0:tt.current)==null||dt.focus()},[tt]),gt=nt&&!tt;return jsxRuntimeExports.jsx(FocusTrap,{crossFrame:st,persistentFocus:ot,autoFocus:at,disabled:At,onActivation:ct,onDeactivation:ut,returnFocus:gt,children:it})};FocusLock.displayName="FocusLock";var useSafeLayoutEffect=isBrowser$1?reactExports.useLayoutEffect:reactExports.useEffect;function useCallbackRef($,et=[]){const tt=reactExports.useRef($);return useSafeLayoutEffect(()=>{tt.current=$}),reactExports.useCallback((...rt)=>{var nt;return(nt=tt.current)==null?void 0:nt.call(tt,...rt)},et)}function useId($,et){const tt=reactExports.useId();return reactExports.useMemo(()=>$||[et,tt].filter(Boolean).join("-"),[$,et,tt])}function useControllableProp($,et){const tt=$!==void 0;return[tt,tt&&typeof $<"u"?$:et]}function useDisclosure($={}){const{onClose:et,onOpen:tt,isOpen:rt,id:nt}=$,it=useCallbackRef(tt),At=useCallbackRef(et),[at,ot]=reactExports.useState($.defaultIsOpen||!1),[st,ct]=useControllableProp(rt,at),ut=useId(nt,"disclosure"),gt=reactExports.useCallback(()=>{st||ot(!1),At==null||At()},[st,At]),dt=reactExports.useCallback(()=>{st||ot(!0),it==null||it()},[st,it]),ht=reactExports.useCallback(()=>{(ct?gt:dt)()},[ct,dt,gt]);return{isOpen:!!ct,onOpen:dt,onClose:gt,onToggle:ht,isControlled:st,getButtonProps:(Et={})=>({...Et,"aria-expanded":ct,"aria-controls":ut,onClick:callAllHandlers(Et.onClick,ht)}),getDisclosureProps:(Et={})=>({...Et,hidden:!ct,id:ut})}}var Link=forwardRef(function(et,tt){const rt=useStyleConfig("Link",et),{className:nt,isExternal:it,...At}=omitThemingProps(et);return jsxRuntimeExports.jsx(chakra.a,{target:it?"_blank":void 0,rel:it?"noopener":void 0,ref:tt,className:cx("chakra-link",nt),...At,__css:rt})});Link.displayName="Link";var Grid=forwardRef(function(et,tt){const{templateAreas:rt,gap:nt,rowGap:it,columnGap:At,column:at,row:ot,autoFlow:st,autoRows:ct,templateRows:ut,autoColumns:gt,templateColumns:dt,...ht}=et,Et={display:"grid",gridTemplateAreas:rt,gridGap:nt,gridRowGap:it,gridColumnGap:At,gridAutoColumns:gt,gridColumn:at,gridRow:ot,gridAutoFlow:st,gridAutoRows:ct,gridTemplateRows:ut,gridTemplateColumns:dt};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:Et,...ht})});Grid.displayName="Grid";function mapResponsive($,et){return Array.isArray($)?$.map(tt=>tt===null?null:et(tt)):isObject($)?Object.keys($).reduce((tt,rt)=>(tt[rt]=et($[rt]),tt),{}):$!=null?et($):null}var Text$3=forwardRef(function(et,tt){const rt=useStyleConfig("Text",et),{className:nt,align:it,decoration:At,casing:at,...ot}=omitThemingProps(et),st=compact({textAlign:et.align,textDecoration:et.decoration,textTransform:et.casing});return jsxRuntimeExports.jsx(chakra.p,{ref:tt,className:cx("chakra-text",et.className),...st,...ot,__css:rt})});Text$3.displayName="Text";var StackItem=$=>jsxRuntimeExports.jsx(chakra.div,{className:"chakra-stack__item",...$,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...$.__css}});StackItem.displayName="StackItem";function getDividerStyles($){const{spacing:et,direction:tt}=$,rt={column:{my:et,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:et,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:et,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:et,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":mapResponsive(tt,nt=>rt[nt])}}var Stack=forwardRef(($,et)=>{const{isInline:tt,direction:rt,align:nt,justify:it,spacing:At="0.5rem",wrap:at,children:ot,divider:st,className:ct,shouldWrapChildren:ut,...gt}=$,dt=tt?"row":rt??"column",ht=reactExports.useMemo(()=>getDividerStyles({spacing:At,direction:dt}),[At,dt]),Et=!!st,wt=!ut&&!Et,mt=reactExports.useMemo(()=>{const Qt=getValidChildren(ot);return wt?Qt:Qt.map(($t,Gt)=>{const Tt=typeof $t.key<"u"?$t.key:Gt,Pt=Gt+1===Qt.length,ir=ut?jsxRuntimeExports.jsx(StackItem,{children:$t},Tt):$t;if(!Et)return ir;const jt=reactExports.cloneElement(st,{__css:ht}),Mt=Pt?null:jt;return jsxRuntimeExports.jsxs(reactExports.Fragment,{children:[ir,Mt]},Tt)})},[st,ht,Et,wt,ut,ot]),pt=cx("chakra-stack",ct);return jsxRuntimeExports.jsx(chakra.div,{ref:et,display:"flex",alignItems:nt,justifyContent:it,flexDirection:dt,flexWrap:at,gap:Et?void 0:At,className:pt,...gt,children:mt})});Stack.displayName="Stack";var VStack=forwardRef(($,et)=>jsxRuntimeExports.jsx(Stack,{align:"center",...$,direction:"column",ref:et}));VStack.displayName="VStack";function spanFn($){return mapResponsive($,et=>et==="auto"?"auto":`span ${et}/span ${et}`)}var GridItem=forwardRef(function(et,tt){const{area:rt,colSpan:nt,colStart:it,colEnd:At,rowEnd:at,rowSpan:ot,rowStart:st,...ct}=et,ut=compact({gridArea:rt,gridColumn:spanFn(nt),gridRow:spanFn(ot),gridColumnStart:it,gridColumnEnd:At,gridRowStart:st,gridRowEnd:at});return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:ut,...ct})});GridItem.displayName="GridItem";var Heading=forwardRef(function(et,tt){const rt=useStyleConfig("Heading",et),{className:nt,...it}=omitThemingProps(et);return jsxRuntimeExports.jsx(chakra.h2,{ref:tt,className:cx("chakra-heading",et.className),...it,__css:rt})});Heading.displayName="Heading";var Box=chakra("div");Box.displayName="Box";var Square=forwardRef(function(et,tt){const{size:rt,centerContent:nt=!0,...it}=et,At=nt?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return jsxRuntimeExports.jsx(Box,{ref:tt,boxSize:rt,__css:{...At,flexShrink:0,flexGrow:0},...it})});Square.displayName="Square";var Circle=forwardRef(function(et,tt){const{size:rt,...nt}=et;return jsxRuntimeExports.jsx(Square,{size:rt,ref:tt,borderRadius:"9999px",...nt})});Circle.displayName="Circle";var Container=forwardRef(function(et,tt){const{className:rt,centerContent:nt,...it}=omitThemingProps(et),At=useStyleConfig("Container",et);return jsxRuntimeExports.jsx(chakra.div,{ref:tt,className:cx("chakra-container",rt),...it,__css:{...At,...nt&&{display:"flex",flexDirection:"column",alignItems:"center"}}})});Container.displayName="Container";var Flex=forwardRef(function(et,tt){const{direction:rt,align:nt,justify:it,wrap:At,basis:at,grow:ot,shrink:st,...ct}=et,ut={display:"flex",flexDirection:rt,alignItems:nt,justifyContent:it,flexWrap:At,flexBasis:at,flexGrow:ot,flexShrink:st};return jsxRuntimeExports.jsx(chakra.div,{ref:tt,__css:ut,...ct})});Flex.displayName="Flex";var transitions={slideInBottom:{...slideFadeConfig,custom:{offsetY:16,reverse:!0}},slideInRight:{...slideFadeConfig,custom:{offsetX:16,reverse:!0}},slideInTop:{...slideFadeConfig,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...slideFadeConfig,custom:{offsetX:-16,reverse:!0}},scale:{...scaleFadeConfig,custom:{initialScale:.95,reverse:!0}},none:{}},MotionSection=chakra(motion.section),getMotionProps=$=>transitions[$||"none"],ModalTransition=reactExports.forwardRef(($,et)=>{const{preset:tt,motionProps:rt=getMotionProps(tt),...nt}=$;return jsxRuntimeExports.jsx(MotionSection,{ref:et,...rt,...nt})});ModalTransition.displayName="ModalTransition";var __defProp$1=Object.defineProperty,__defNormalProp$1=($,et,tt)=>et in $?__defProp$1($,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):$[et]=tt,__publicField=($,et,tt)=>(__defNormalProp$1($,typeof et!="symbol"?et+"":et,tt),tt),ModalManager=class{constructor(){__publicField(this,"modals"),this.modals=new Map}add($){return this.modals.set($,this.modals.size+1),this.modals.size}remove($){this.modals.delete($)}isTopModal($){return $?this.modals.get($)===this.modals.size:!1}},modalManager=new ModalManager;function useModalManager($,et){const[tt,rt]=reactExports.useState(0);return reactExports.useEffect(()=>{const nt=$.current;if(nt){if(et){const it=modalManager.add(nt);rt(it)}return()=>{modalManager.remove(nt),rt(0)}}},[et,$]),tt}var getDefaultParent=function($){if(typeof document>"u")return null;var et=Array.isArray($)?$[0]:$;return et.ownerDocument.body},counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={},lockCount=0,unwrapHost=function($){return $&&($.host||unwrapHost($.parentNode))},correctTargets=function($,et){return et.map(function(tt){if($.contains(tt))return tt;var rt=unwrapHost(tt);return rt&&$.contains(rt)?rt:(console.error("aria-hidden",tt,"in not contained inside",$,". Doing nothing"),null)}).filter(function(tt){return!!tt})},applyAttributeToOthers=function($,et,tt,rt){var nt=correctTargets(et,Array.isArray($)?$:[$]);markerMap[tt]||(markerMap[tt]=new WeakMap);var it=markerMap[tt],At=[],at=new Set,ot=new Set(nt),st=function(ut){!ut||at.has(ut)||(at.add(ut),st(ut.parentNode))};nt.forEach(st);var ct=function(ut){!ut||ot.has(ut)||Array.prototype.forEach.call(ut.children,function(gt){if(at.has(gt))ct(gt);else{var dt=gt.getAttribute(rt),ht=dt!==null&&dt!=="false",Et=(counterMap.get(gt)||0)+1,wt=(it.get(gt)||0)+1;counterMap.set(gt,Et),it.set(gt,wt),At.push(gt),Et===1&&ht&&uncontrolledNodes.set(gt,!0),wt===1&>.setAttribute(tt,"true"),ht||gt.setAttribute(rt,"true")}})};return ct(et),at.clear(),lockCount++,function(){At.forEach(function(ut){var gt=counterMap.get(ut)-1,dt=it.get(ut)-1;counterMap.set(ut,gt),it.set(ut,dt),gt||(uncontrolledNodes.has(ut)||ut.removeAttribute(rt),uncontrolledNodes.delete(ut)),dt||ut.removeAttribute(tt)}),lockCount--,lockCount||(counterMap=new WeakMap,counterMap=new WeakMap,uncontrolledNodes=new WeakMap,markerMap={})}},hideOthers=function($,et,tt){tt===void 0&&(tt="data-aria-hidden");var rt=Array.from(Array.isArray($)?$:[$]),nt=et||getDefaultParent($);return nt?(rt.push.apply(rt,Array.from(nt.querySelectorAll("[aria-live]"))),applyAttributeToOthers(rt,nt,tt,"aria-hidden")):function(){return null}};function useModal($){const{isOpen:et,onClose:tt,id:rt,closeOnOverlayClick:nt=!0,closeOnEsc:it=!0,useInert:At=!0,onOverlayClick:at,onEsc:ot}=$,st=reactExports.useRef(null),ct=reactExports.useRef(null),[ut,gt,dt]=useIds(rt,"chakra-modal","chakra-modal--header","chakra-modal--body");useAriaHidden(st,et&&At);const ht=useModalManager(st,et),Et=reactExports.useRef(null),wt=reactExports.useCallback(ir=>{Et.current=ir.target},[]),mt=reactExports.useCallback(ir=>{ir.key==="Escape"&&(ir.stopPropagation(),it&&(tt==null||tt()),ot==null||ot())},[it,tt,ot]),[pt,Qt]=reactExports.useState(!1),[$t,Gt]=reactExports.useState(!1),Tt=reactExports.useCallback((ir={},jt=null)=>({role:"dialog",...ir,ref:mergeRefs(jt,st),id:ut,tabIndex:-1,"aria-modal":!0,"aria-labelledby":pt?gt:void 0,"aria-describedby":$t?dt:void 0,onClick:callAllHandlers$1(ir.onClick,Mt=>Mt.stopPropagation())}),[dt,$t,ut,gt,pt]),Pt=reactExports.useCallback(ir=>{ir.stopPropagation(),Et.current===ir.target&&modalManager.isTopModal(st.current)&&(nt&&(tt==null||tt()),at==null||at())},[tt,nt,at]),Kt=reactExports.useCallback((ir={},jt=null)=>({...ir,ref:mergeRefs(jt,ct),onClick:callAllHandlers$1(ir.onClick,Pt),onKeyDown:callAllHandlers$1(ir.onKeyDown,mt),onMouseDown:callAllHandlers$1(ir.onMouseDown,wt)}),[mt,wt,Pt]);return{isOpen:et,onClose:tt,headerId:gt,bodyId:dt,setBodyMounted:Gt,setHeaderMounted:Qt,dialogRef:st,overlayRef:ct,getDialogProps:Tt,getDialogContainerProps:Kt,index:ht}}function useAriaHidden($,et){const tt=$.current;reactExports.useEffect(()=>{if(!(!$.current||!et))return hideOthers($.current)},[et,$,tt])}function useIds($,...et){const tt=reactExports.useId(),rt=$||tt;return reactExports.useMemo(()=>et.map(nt=>`${nt}-${rt}`),[rt,et])}var[ModalStylesProvider,useModalStyles]=createContext$1({name:"ModalStylesContext",errorMessage:`useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in "" `}),[ModalContextProvider,useModalContext]=createContext$1({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),Modal=$=>{const et={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...$},{portalProps:tt,children:rt,autoFocus:nt,trapFocus:it,initialFocusRef:At,finalFocusRef:at,returnFocusOnClose:ot,blockScrollOnMount:st,allowPinchZoom:ct,preserveScrollBarGap:ut,motionPreset:gt,lockFocusAcrossFrames:dt,onCloseComplete:ht}=et,Et=useMultiStyleConfig("Modal",et),mt={...useModal(et),autoFocus:nt,trapFocus:it,initialFocusRef:At,finalFocusRef:at,returnFocusOnClose:ot,blockScrollOnMount:st,allowPinchZoom:ct,preserveScrollBarGap:ut,motionPreset:gt,lockFocusAcrossFrames:dt};return jsxRuntimeExports.jsx(ModalContextProvider,{value:mt,children:jsxRuntimeExports.jsx(ModalStylesProvider,{value:Et,children:jsxRuntimeExports.jsx(AnimatePresence,{onExitComplete:ht,children:mt.isOpen&&jsxRuntimeExports.jsx(Portal,{...tt,children:rt})})})})};Modal.displayName="Modal";var zeroRightClassName="right-scroll-bar-position",fullWidthClassName="width-before-scroll-bar",noScrollbarsClassName="with-scroll-bars-hidden",removedBarSizeVariable="--removed-body-scroll-bar-size",effectCar=createSidecarMedium(),nothing=function(){},RemoveScroll$1=reactExports.forwardRef(function($,et){var tt=reactExports.useRef(null),rt=reactExports.useState({onScrollCapture:nothing,onWheelCapture:nothing,onTouchMoveCapture:nothing}),nt=rt[0],it=rt[1],At=$.forwardProps,at=$.children,ot=$.className,st=$.removeScrollBar,ct=$.enabled,ut=$.shards,gt=$.sideCar,dt=$.noIsolation,ht=$.inert,Et=$.allowPinchZoom,wt=$.as,mt=wt===void 0?"div":wt,pt=$.gapMode,Qt=__rest$5($,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),$t=gt,Gt=useMergeRefs([tt,et]),Tt=__assign(__assign({},Qt),nt);return reactExports.createElement(reactExports.Fragment,null,ct&&reactExports.createElement($t,{sideCar:effectCar,removeScrollBar:st,shards:ut,noIsolation:dt,inert:ht,setCallbacks:it,allowPinchZoom:!!Et,lockRef:tt,gapMode:pt}),At?reactExports.cloneElement(reactExports.Children.only(at),__assign(__assign({},Tt),{ref:Gt})):reactExports.createElement(mt,__assign({},Tt,{className:ot,ref:Gt}),at))});RemoveScroll$1.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};RemoveScroll$1.classNames={fullWidth:fullWidthClassName,zeroRight:zeroRightClassName};var currentNonce,getNonce=function(){if(currentNonce)return currentNonce;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function makeStyleTag(){if(!document)return null;var $=document.createElement("style");$.type="text/css";var et=getNonce();return et&&$.setAttribute("nonce",et),$}function injectStyles($,et){$.styleSheet?$.styleSheet.cssText=et:$.appendChild(document.createTextNode(et))}function insertStyleTag($){var et=document.head||document.getElementsByTagName("head")[0];et.appendChild($)}var stylesheetSingleton=function(){var $=0,et=null;return{add:function(tt){$==0&&(et=makeStyleTag())&&(injectStyles(et,tt),insertStyleTag(et)),$++},remove:function(){$--,!$&&et&&(et.parentNode&&et.parentNode.removeChild(et),et=null)}}},styleHookSingleton=function(){var $=stylesheetSingleton();return function(et,tt){reactExports.useEffect(function(){return $.add(et),function(){$.remove()}},[et&&tt])}},styleSingleton=function(){var $=styleHookSingleton(),et=function(tt){var rt=tt.styles,nt=tt.dynamic;return $(rt,nt),null};return et},zeroGap={left:0,top:0,right:0,gap:0},parse=function($){return parseInt($||"",10)||0},getOffset=function($){var et=window.getComputedStyle(document.body),tt=et[$==="padding"?"paddingLeft":"marginLeft"],rt=et[$==="padding"?"paddingTop":"marginTop"],nt=et[$==="padding"?"paddingRight":"marginRight"];return[parse(tt),parse(rt),parse(nt)]},getGapWidth=function($){if($===void 0&&($="margin"),typeof window>"u")return zeroGap;var et=getOffset($),tt=document.documentElement.clientWidth,rt=window.innerWidth;return{left:et[0],top:et[1],right:et[2],gap:Math.max(0,rt-tt+et[2]-et[0])}},Style=styleSingleton(),getStyles=function($,et,tt,rt){var nt=$.left,it=$.top,At=$.right,at=$.gap;return tt===void 0&&(tt="margin"),` .`.concat(noScrollbarsClassName,` { overflow: hidden `).concat(rt,`; padding-right: `).concat(at,"px ").concat(rt,`; @@ -409,10 +409,10 @@ Error generating stack: `+it.message+` body { `).concat(removedBarSizeVariable,": ").concat(at,`px; } -`)},RemoveScrollBar=function($){var et=$.noRelative,tt=$.noImportant,rt=$.gapMode,nt=rt===void 0?"margin":rt,it=reactExports.useMemo(function(){return getGapWidth(nt)},[nt]);return reactExports.createElement(Style,{styles:getStyles(it,!et,nt,tt?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function($){return $.tagName==="TEXTAREA"},elementCanBeScrolled=function($,et){var tt=window.getComputedStyle($);return tt[et]!=="hidden"&&!(tt.overflowY===tt.overflowX&&!alwaysContainsScroll($)&&tt[et]==="visible")},elementCouldBeVScrolled=function($){return elementCanBeScrolled($,"overflowY")},elementCouldBeHScrolled=function($){return elementCanBeScrolled($,"overflowX")},locationCouldBeScrolled=function($,et){var tt=et.ownerDocument,rt=et;do{typeof ShadowRoot<"u"&&rt instanceof ShadowRoot&&(rt=rt.host);var nt=elementCouldBeScrolled($,rt);if(nt){var it=getScrollVariables($,rt),At=it[1],at=it[2];if(At>at)return!0}rt=rt.parentNode}while(rt&&rt!==tt.body);return!1},getVScrollVariables=function($){var et=$.scrollTop,tt=$.scrollHeight,rt=$.clientHeight;return[et,tt,rt]},getHScrollVariables=function($){var et=$.scrollLeft,tt=$.scrollWidth,rt=$.clientWidth;return[et,tt,rt]},elementCouldBeScrolled=function($,et){return $==="v"?elementCouldBeVScrolled(et):elementCouldBeHScrolled(et)},getScrollVariables=function($,et){return $==="v"?getVScrollVariables(et):getHScrollVariables(et)},getDirectionFactor=function($,et){return $==="h"&&et==="rtl"?-1:1},handleScroll=function($,et,tt,rt,nt){var it=getDirectionFactor($,window.getComputedStyle(et).direction),At=it*rt,at=tt.target,ot=et.contains(at),st=!1,ct=At>0,ut=0,gt=0;do{var dt=getScrollVariables($,at),ht=dt[0],Et=dt[1],wt=dt[2],Qt=Et-wt-it*ht;(ht||Qt)&&elementCouldBeScrolled($,at)&&(ut+=Qt,gt+=ht),at=at.parentNode}while(!ot&&at!==document.body||ot&&(et.contains(at)||et===at));return(ct&&(nt&&ut===0||!nt&&At>ut)||!ct&&(nt&>===0||!nt&&-At>gt))&&(st=!0),st},getTouchXY=function($){return"changedTouches"in $?[$.changedTouches[0].clientX,$.changedTouches[0].clientY]:[0,0]},getDeltaXY=function($){return[$.deltaX,$.deltaY]},extractRef=function($){return $&&"current"in $?$.current:$},deltaCompare=function($,et){return $[0]===et[0]&&$[1]===et[1]},generateStyle=function($){return` +`)},RemoveScrollBar=function($){var et=$.noRelative,tt=$.noImportant,rt=$.gapMode,nt=rt===void 0?"margin":rt,it=reactExports.useMemo(function(){return getGapWidth(nt)},[nt]);return reactExports.createElement(Style,{styles:getStyles(it,!et,nt,tt?"":"!important")})},passiveSupported=!1;if(typeof window<"u")try{var options=Object.defineProperty({},"passive",{get:function(){return passiveSupported=!0,!0}});window.addEventListener("test",options,options),window.removeEventListener("test",options,options)}catch{passiveSupported=!1}var nonPassive=passiveSupported?{passive:!1}:!1,alwaysContainsScroll=function($){return $.tagName==="TEXTAREA"},elementCanBeScrolled=function($,et){var tt=window.getComputedStyle($);return tt[et]!=="hidden"&&!(tt.overflowY===tt.overflowX&&!alwaysContainsScroll($)&&tt[et]==="visible")},elementCouldBeVScrolled=function($){return elementCanBeScrolled($,"overflowY")},elementCouldBeHScrolled=function($){return elementCanBeScrolled($,"overflowX")},locationCouldBeScrolled=function($,et){var tt=et.ownerDocument,rt=et;do{typeof ShadowRoot<"u"&&rt instanceof ShadowRoot&&(rt=rt.host);var nt=elementCouldBeScrolled($,rt);if(nt){var it=getScrollVariables($,rt),At=it[1],at=it[2];if(At>at)return!0}rt=rt.parentNode}while(rt&&rt!==tt.body);return!1},getVScrollVariables=function($){var et=$.scrollTop,tt=$.scrollHeight,rt=$.clientHeight;return[et,tt,rt]},getHScrollVariables=function($){var et=$.scrollLeft,tt=$.scrollWidth,rt=$.clientWidth;return[et,tt,rt]},elementCouldBeScrolled=function($,et){return $==="v"?elementCouldBeVScrolled(et):elementCouldBeHScrolled(et)},getScrollVariables=function($,et){return $==="v"?getVScrollVariables(et):getHScrollVariables(et)},getDirectionFactor=function($,et){return $==="h"&&et==="rtl"?-1:1},handleScroll=function($,et,tt,rt,nt){var it=getDirectionFactor($,window.getComputedStyle(et).direction),At=it*rt,at=tt.target,ot=et.contains(at),st=!1,ct=At>0,ut=0,gt=0;do{var dt=getScrollVariables($,at),ht=dt[0],Et=dt[1],wt=dt[2],mt=Et-wt-it*ht;(ht||mt)&&elementCouldBeScrolled($,at)&&(ut+=mt,gt+=ht),at=at.parentNode}while(!ot&&at!==document.body||ot&&(et.contains(at)||et===at));return(ct&&(nt&&ut===0||!nt&&At>ut)||!ct&&(nt&>===0||!nt&&-At>gt))&&(st=!0),st},getTouchXY=function($){return"changedTouches"in $?[$.changedTouches[0].clientX,$.changedTouches[0].clientY]:[0,0]},getDeltaXY=function($){return[$.deltaX,$.deltaY]},extractRef=function($){return $&&"current"in $?$.current:$},deltaCompare=function($,et){return $[0]===et[0]&&$[1]===et[1]},generateStyle=function($){return` .block-interactivity-`.concat($,` {pointer-events: none;} .allow-interactivity-`).concat($,` {pointer-events: all;} -`)},idCounter=0,lockStack=[];function RemoveScrollSideCar($){var et=reactExports.useRef([]),tt=reactExports.useRef([0,0]),rt=reactExports.useRef(),nt=reactExports.useState(idCounter++)[0],it=reactExports.useState(styleSingleton)[0],At=reactExports.useRef($);reactExports.useEffect(function(){At.current=$},[$]),reactExports.useEffect(function(){if($.inert){document.body.classList.add("block-interactivity-".concat(nt));var Et=__spreadArray$1([$.lockRef.current],($.shards||[]).map(extractRef),!0).filter(Boolean);return Et.forEach(function(wt){return wt.classList.add("allow-interactivity-".concat(nt))}),function(){document.body.classList.remove("block-interactivity-".concat(nt)),Et.forEach(function(wt){return wt.classList.remove("allow-interactivity-".concat(nt))})}}},[$.inert,$.lockRef.current,$.shards]);var at=reactExports.useCallback(function(Et,wt){if("touches"in Et&&Et.touches.length===2)return!At.current.allowPinchZoom;var Qt=getTouchXY(Et),pt=tt.current,mt="deltaX"in Et?Et.deltaX:pt[0]-Qt[0],$t="deltaY"in Et?Et.deltaY:pt[1]-Qt[1],Tt,Ut=Et.target,Pt=Math.abs(mt)>Math.abs($t)?"h":"v";if("touches"in Et&&Pt==="h"&&Ut.type==="range")return!1;var Kt=locationCouldBeScrolled(Pt,Ut);if(!Kt)return!0;if(Kt?Tt=Pt:(Tt=Pt==="v"?"h":"v",Kt=locationCouldBeScrolled(Pt,Ut)),!Kt)return!1;if(!rt.current&&"changedTouches"in Et&&(mt||$t)&&(rt.current=Tt),!Tt)return!0;var zt=rt.current||Tt;return handleScroll(zt,wt,Et,zt==="h"?mt:$t,!0)},[]),ot=reactExports.useCallback(function(Et){var wt=Et;if(!(!lockStack.length||lockStack[lockStack.length-1]!==it)){var Qt="deltaY"in wt?getDeltaXY(wt):getTouchXY(wt),pt=et.current.filter(function(Tt){return Tt.name===wt.type&&Tt.target===wt.target&&deltaCompare(Tt.delta,Qt)})[0];if(pt&&pt.should){wt.cancelable&&wt.preventDefault();return}if(!pt){var mt=(At.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Tt){return Tt.contains(wt.target)}),$t=mt.length>0?at(wt,mt[0]):!At.current.noIsolation;$t&&wt.cancelable&&wt.preventDefault()}}},[]),st=reactExports.useCallback(function(Et,wt,Qt,pt){var mt={name:Et,delta:wt,target:Qt,should:pt};et.current.push(mt),setTimeout(function(){et.current=et.current.filter(function($t){return $t!==mt})},1)},[]),ct=reactExports.useCallback(function(Et){tt.current=getTouchXY(Et),rt.current=void 0},[]),ut=reactExports.useCallback(function(Et){st(Et.type,getDeltaXY(Et),Et.target,at(Et,$.lockRef.current))},[]),gt=reactExports.useCallback(function(Et){st(Et.type,getTouchXY(Et),Et.target,at(Et,$.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(it),$.setCallbacks({onScrollCapture:ut,onWheelCapture:ut,onTouchMoveCapture:gt}),document.addEventListener("wheel",ot,nonPassive),document.addEventListener("touchmove",ot,nonPassive),document.addEventListener("touchstart",ct,nonPassive),function(){lockStack=lockStack.filter(function(Et){return Et!==it}),document.removeEventListener("wheel",ot,nonPassive),document.removeEventListener("touchmove",ot,nonPassive),document.removeEventListener("touchstart",ct,nonPassive)}},[]);var dt=$.removeScrollBar,ht=$.inert;return reactExports.createElement(reactExports.Fragment,null,ht?reactExports.createElement(it,{styles:generateStyle(nt)}):null,dt?reactExports.createElement(RemoveScrollBar,{gapMode:$.gapMode}):null)}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function($,et){return reactExports.createElement(RemoveScroll$1,__assign({},$,{ref:et,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll$1.classNames;const RemoveScroll=ReactRemoveScroll;function ModalFocusScope($){const{autoFocus:et,trapFocus:tt,dialogRef:rt,initialFocusRef:nt,blockScrollOnMount:it,allowPinchZoom:At,finalFocusRef:at,returnFocusOnClose:ot,preserveScrollBarGap:st,lockFocusAcrossFrames:ct,isOpen:ut}=useModalContext(),[gt,dt]=usePresence();reactExports.useEffect(()=>{!gt&&dt&&setTimeout(dt)},[gt,dt]);const ht=useModalManager(rt,ut);return jsxRuntimeExports.jsx(FocusLock,{autoFocus:et,isDisabled:!tt,initialFocusRef:nt,finalFocusRef:at,restoreFocus:ot,contentRef:rt,lockFocusAcrossFrames:ct,children:jsxRuntimeExports.jsx(RemoveScroll,{removeScrollBar:!st,allowPinchZoom:At,enabled:ht===1&&it,forwardProps:!0,children:$.children})})}var ModalContent=forwardRef(($,et)=>{const{className:tt,children:rt,containerProps:nt,motionProps:it,...At}=$,{getDialogProps:at,getDialogContainerProps:ot}=useModalContext(),st=at(At,et),ct=ot(nt),ut=cx("chakra-modal__content",tt),gt=useModalStyles(),dt={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...gt.dialog},ht={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...gt.dialogContainer},{motionPreset:Et}=useModalContext();return jsxRuntimeExports.jsx(ModalFocusScope,{children:jsxRuntimeExports.jsx(chakra.div,{...ct,className:"chakra-modal__content-container",tabIndex:-1,__css:ht,children:jsxRuntimeExports.jsx(ModalTransition,{preset:Et,motionProps:it,className:ut,...st,__css:dt,children:rt})})})});ModalContent.displayName="ModalContent";var ModalHeader=forwardRef(($,et)=>{const{className:tt,...rt}=$,{headerId:nt,setHeaderMounted:it}=useModalContext();reactExports.useEffect(()=>(it(!0),()=>it(!1)),[it]);const At=cx("chakra-modal__header",tt),ot={flex:0,...useModalStyles().header};return jsxRuntimeExports.jsx(chakra.header,{ref:et,className:At,id:nt,...rt,__css:ot})});ModalHeader.displayName="ModalHeader";var MotionDiv=chakra(motion.div),ModalOverlay=forwardRef(($,et)=>{const{className:tt,transition:rt,motionProps:nt,...it}=$,At=cx("chakra-modal__overlay",tt),ot={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...useModalStyles().overlay},{motionPreset:st}=useModalContext(),ut=nt||(st==="none"?{}:fadeConfig);return jsxRuntimeExports.jsx(MotionDiv,{...ut,__css:ot,ref:et,className:At,...it})});ModalOverlay.displayName="ModalOverlay";var ModalBody=forwardRef(($,et)=>{const{className:tt,...rt}=$,{bodyId:nt,setBodyMounted:it}=useModalContext();reactExports.useEffect(()=>(it(!0),()=>it(!1)),[it]);const At=cx("chakra-modal__body",tt),at=useModalStyles();return jsxRuntimeExports.jsx(chakra.div,{ref:et,className:At,id:nt,...rt,__css:at.body})});ModalBody.displayName="ModalBody";var ModalCloseButton=forwardRef(($,et)=>{const{onClick:tt,className:rt,...nt}=$,{onClose:it}=useModalContext(),At=cx("chakra-modal__close-btn",rt),at=useModalStyles();return jsxRuntimeExports.jsx(CloseButton,{ref:et,__css:at.closeButton,className:At,onClick:callAllHandlers$1(tt,ot=>{ot.stopPropagation(),it()}),...nt})});ModalCloseButton.displayName="ModalCloseButton";const LogoBox=forwardRef(($,et)=>jsxRuntimeExports.jsx(Flex,{direction:"row",align:"center",px:"4",gap:"8",borderRadius:"full",userSelect:"none",ref:et,...$,children:jsxRuntimeExports.jsx(Flex,{direction:"column",children:jsxRuntimeExports.jsx(Link,{href:"/",textDecoration:"none !important",outline:"none !important",boxShadow:"none !important",children:jsxRuntimeExports.jsx(Image$1,{alt:"logo",h:"42px",src:"/logo-motoko.png"})})})})),Navbar=()=>{const{isOpen:$,onToggle:et}=useDisclosure(),tt=useColorModeValue("app.header.light","app.header.dark");return jsxRuntimeExports.jsx(Box,{as:"header",position:"fixed",w:"100%",top:0,left:0,zIndex:10,children:jsxRuntimeExports.jsxs(Flex,{bg:$?"transparent":tt,py:{base:"0",lg:"0"},px:{base:"0",lg:"10"},zIndex:2,pos:"relative",justify:"space-between",align:"center",children:[jsxRuntimeExports.jsxs(Flex,{justify:"start",py:"3",className:"logo-container",children:[jsxRuntimeExports.jsx(LogoBox,{}),jsxRuntimeExports.jsxs(Box,{as:"h4",color:"#000",fontWeight:"bold",lineHeight:"1.2",children:[" Motoko Claim",jsxRuntimeExports.jsx("br",{})," portal"]})]}),jsxRuntimeExports.jsx(Flex,{align:"center",display:{lg:"flex",md:"flex",base:"none"}})]})})},FooterBottom=()=>jsxRuntimeExports.jsx(Box,{as:"footer",className:"ftr",w:"100%",children:jsxRuntimeExports.jsx(VStack,{alignItems:"center",rowGap:4,py:{base:16,lg:20},mx:{base:3},children:jsxRuntimeExports.jsx(Container,{maxW:"container.lg",textAlign:"center",px:0})})}),MainLayout=({children:$})=>{const et=useLocation();return reactExports.useEffect(()=>{window.scrollTo(0,0)},[et.pathname]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Navbar,{}),jsxRuntimeExports.jsx(Container,{as:"main",w:"100%",maxW:"100%",p:0,display:"flex",flexDirection:"column",alignItems:"center",children:$}),jsxRuntimeExports.jsx(FooterBottom,{})]})};var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** +`)},idCounter=0,lockStack=[];function RemoveScrollSideCar($){var et=reactExports.useRef([]),tt=reactExports.useRef([0,0]),rt=reactExports.useRef(),nt=reactExports.useState(idCounter++)[0],it=reactExports.useState(styleSingleton)[0],At=reactExports.useRef($);reactExports.useEffect(function(){At.current=$},[$]),reactExports.useEffect(function(){if($.inert){document.body.classList.add("block-interactivity-".concat(nt));var Et=__spreadArray$1([$.lockRef.current],($.shards||[]).map(extractRef),!0).filter(Boolean);return Et.forEach(function(wt){return wt.classList.add("allow-interactivity-".concat(nt))}),function(){document.body.classList.remove("block-interactivity-".concat(nt)),Et.forEach(function(wt){return wt.classList.remove("allow-interactivity-".concat(nt))})}}},[$.inert,$.lockRef.current,$.shards]);var at=reactExports.useCallback(function(Et,wt){if("touches"in Et&&Et.touches.length===2)return!At.current.allowPinchZoom;var mt=getTouchXY(Et),pt=tt.current,Qt="deltaX"in Et?Et.deltaX:pt[0]-mt[0],$t="deltaY"in Et?Et.deltaY:pt[1]-mt[1],Gt,Tt=Et.target,Pt=Math.abs(Qt)>Math.abs($t)?"h":"v";if("touches"in Et&&Pt==="h"&&Tt.type==="range")return!1;var Kt=locationCouldBeScrolled(Pt,Tt);if(!Kt)return!0;if(Kt?Gt=Pt:(Gt=Pt==="v"?"h":"v",Kt=locationCouldBeScrolled(Pt,Tt)),!Kt)return!1;if(!rt.current&&"changedTouches"in Et&&(Qt||$t)&&(rt.current=Gt),!Gt)return!0;var ir=rt.current||Gt;return handleScroll(ir,wt,Et,ir==="h"?Qt:$t,!0)},[]),ot=reactExports.useCallback(function(Et){var wt=Et;if(!(!lockStack.length||lockStack[lockStack.length-1]!==it)){var mt="deltaY"in wt?getDeltaXY(wt):getTouchXY(wt),pt=et.current.filter(function(Gt){return Gt.name===wt.type&&Gt.target===wt.target&&deltaCompare(Gt.delta,mt)})[0];if(pt&&pt.should){wt.cancelable&&wt.preventDefault();return}if(!pt){var Qt=(At.current.shards||[]).map(extractRef).filter(Boolean).filter(function(Gt){return Gt.contains(wt.target)}),$t=Qt.length>0?at(wt,Qt[0]):!At.current.noIsolation;$t&&wt.cancelable&&wt.preventDefault()}}},[]),st=reactExports.useCallback(function(Et,wt,mt,pt){var Qt={name:Et,delta:wt,target:mt,should:pt};et.current.push(Qt),setTimeout(function(){et.current=et.current.filter(function($t){return $t!==Qt})},1)},[]),ct=reactExports.useCallback(function(Et){tt.current=getTouchXY(Et),rt.current=void 0},[]),ut=reactExports.useCallback(function(Et){st(Et.type,getDeltaXY(Et),Et.target,at(Et,$.lockRef.current))},[]),gt=reactExports.useCallback(function(Et){st(Et.type,getTouchXY(Et),Et.target,at(Et,$.lockRef.current))},[]);reactExports.useEffect(function(){return lockStack.push(it),$.setCallbacks({onScrollCapture:ut,onWheelCapture:ut,onTouchMoveCapture:gt}),document.addEventListener("wheel",ot,nonPassive),document.addEventListener("touchmove",ot,nonPassive),document.addEventListener("touchstart",ct,nonPassive),function(){lockStack=lockStack.filter(function(Et){return Et!==it}),document.removeEventListener("wheel",ot,nonPassive),document.removeEventListener("touchmove",ot,nonPassive),document.removeEventListener("touchstart",ct,nonPassive)}},[]);var dt=$.removeScrollBar,ht=$.inert;return reactExports.createElement(reactExports.Fragment,null,ht?reactExports.createElement(it,{styles:generateStyle(nt)}):null,dt?reactExports.createElement(RemoveScrollBar,{gapMode:$.gapMode}):null)}const SideCar=exportSidecar(effectCar,RemoveScrollSideCar);var ReactRemoveScroll=reactExports.forwardRef(function($,et){return reactExports.createElement(RemoveScroll$1,__assign({},$,{ref:et,sideCar:SideCar}))});ReactRemoveScroll.classNames=RemoveScroll$1.classNames;const RemoveScroll=ReactRemoveScroll;function ModalFocusScope($){const{autoFocus:et,trapFocus:tt,dialogRef:rt,initialFocusRef:nt,blockScrollOnMount:it,allowPinchZoom:At,finalFocusRef:at,returnFocusOnClose:ot,preserveScrollBarGap:st,lockFocusAcrossFrames:ct,isOpen:ut}=useModalContext(),[gt,dt]=usePresence();reactExports.useEffect(()=>{!gt&&dt&&setTimeout(dt)},[gt,dt]);const ht=useModalManager(rt,ut);return jsxRuntimeExports.jsx(FocusLock,{autoFocus:et,isDisabled:!tt,initialFocusRef:nt,finalFocusRef:at,restoreFocus:ot,contentRef:rt,lockFocusAcrossFrames:ct,children:jsxRuntimeExports.jsx(RemoveScroll,{removeScrollBar:!st,allowPinchZoom:At,enabled:ht===1&&it,forwardProps:!0,children:$.children})})}var ModalContent=forwardRef(($,et)=>{const{className:tt,children:rt,containerProps:nt,motionProps:it,...At}=$,{getDialogProps:at,getDialogContainerProps:ot}=useModalContext(),st=at(At,et),ct=ot(nt),ut=cx("chakra-modal__content",tt),gt=useModalStyles(),dt={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...gt.dialog},ht={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...gt.dialogContainer},{motionPreset:Et}=useModalContext();return jsxRuntimeExports.jsx(ModalFocusScope,{children:jsxRuntimeExports.jsx(chakra.div,{...ct,className:"chakra-modal__content-container",tabIndex:-1,__css:ht,children:jsxRuntimeExports.jsx(ModalTransition,{preset:Et,motionProps:it,className:ut,...st,__css:dt,children:rt})})})});ModalContent.displayName="ModalContent";var ModalHeader=forwardRef(($,et)=>{const{className:tt,...rt}=$,{headerId:nt,setHeaderMounted:it}=useModalContext();reactExports.useEffect(()=>(it(!0),()=>it(!1)),[it]);const At=cx("chakra-modal__header",tt),ot={flex:0,...useModalStyles().header};return jsxRuntimeExports.jsx(chakra.header,{ref:et,className:At,id:nt,...rt,__css:ot})});ModalHeader.displayName="ModalHeader";var MotionDiv=chakra(motion.div),ModalOverlay=forwardRef(($,et)=>{const{className:tt,transition:rt,motionProps:nt,...it}=$,At=cx("chakra-modal__overlay",tt),ot={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...useModalStyles().overlay},{motionPreset:st}=useModalContext(),ut=nt||(st==="none"?{}:fadeConfig);return jsxRuntimeExports.jsx(MotionDiv,{...ut,__css:ot,ref:et,className:At,...it})});ModalOverlay.displayName="ModalOverlay";var ModalBody=forwardRef(($,et)=>{const{className:tt,...rt}=$,{bodyId:nt,setBodyMounted:it}=useModalContext();reactExports.useEffect(()=>(it(!0),()=>it(!1)),[it]);const At=cx("chakra-modal__body",tt),at=useModalStyles();return jsxRuntimeExports.jsx(chakra.div,{ref:et,className:At,id:nt,...rt,__css:at.body})});ModalBody.displayName="ModalBody";var ModalCloseButton=forwardRef(($,et)=>{const{onClick:tt,className:rt,...nt}=$,{onClose:it}=useModalContext(),At=cx("chakra-modal__close-btn",rt),at=useModalStyles();return jsxRuntimeExports.jsx(CloseButton,{ref:et,__css:at.closeButton,className:At,onClick:callAllHandlers$1(tt,ot=>{ot.stopPropagation(),it()}),...nt})});ModalCloseButton.displayName="ModalCloseButton";const LogoBox=forwardRef(($,et)=>jsxRuntimeExports.jsx(Flex,{direction:"row",align:"center",px:"4",gap:"8",borderRadius:"full",userSelect:"none",ref:et,...$,children:jsxRuntimeExports.jsx(Flex,{direction:"column",children:jsxRuntimeExports.jsx(Link,{href:"/",textDecoration:"none !important",outline:"none !important",boxShadow:"none !important",children:jsxRuntimeExports.jsx(Image$1,{alt:"logo",h:"42px",src:"/logo.png"})})})})),Navbar=()=>{const{isOpen:$,onToggle:et}=useDisclosure(),tt=useColorModeValue("app.header.light","app.header.dark");return jsxRuntimeExports.jsx(Box,{as:"header",position:"fixed",w:"100%",top:0,left:0,zIndex:10,children:jsxRuntimeExports.jsxs(Flex,{bg:$?"transparent":tt,py:{base:"0",lg:"0"},px:{base:"0",lg:"10"},zIndex:2,pos:"relative",justify:"space-between",align:"center",children:[jsxRuntimeExports.jsxs(Flex,{justify:"start",py:"3",className:"logo-container",children:[jsxRuntimeExports.jsx(LogoBox,{}),jsxRuntimeExports.jsxs(Box,{as:"h4",color:"#000",fontWeight:"bold",lineHeight:"1.2",children:[" Motoko Claim",jsxRuntimeExports.jsx("br",{})," Portal"]})]}),jsxRuntimeExports.jsx(Flex,{align:"center",display:{lg:"flex",md:"flex",base:"none"}})]})})},FooterBottom=()=>jsxRuntimeExports.jsx(Box,{as:"footer",className:"ftr",w:"100%",children:jsxRuntimeExports.jsx(VStack,{alignItems:"center",rowGap:4,py:{base:16,lg:20},mx:{base:3},children:jsxRuntimeExports.jsx(Container,{maxW:"container.lg",textAlign:"center",px:0})})}),MainLayout=({children:$})=>{const et=useLocation();return reactExports.useEffect(()=>{window.scrollTo(0,0)},[et.pathname]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(Navbar,{}),jsxRuntimeExports.jsx(Container,{as:"main",w:"100%",maxW:"100%",p:0,display:"flex",flexDirection:"column",alignItems:"center",children:$}),jsxRuntimeExports.jsx(FooterBottom,{})]})};var shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -436,24 +436,24 @@ Error generating stack: `+it.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$1=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$1=Symbol.for("react.forward_ref"),m$2=Symbol.for("react.suspense"),n$1=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$1=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");function v$1($){if(typeof $=="object"&&$!==null){var et=$.$$typeof;switch(et){case b$1:switch($=$.type,$){case d$1:case f$2:case e:case m$2:case n$1:return $;default:switch($=$&&$.$$typeof,$){case k$1:case h$1:case l$1:case q$1:case p$1:case g$1:return $;default:return et}}case c$2:return et}}}reactIs_production_min.ContextConsumer=h$1;reactIs_production_min.ContextProvider=g$1;reactIs_production_min.Element=b$1;reactIs_production_min.ForwardRef=l$1;reactIs_production_min.Fragment=d$1;reactIs_production_min.Lazy=q$1;reactIs_production_min.Memo=p$1;reactIs_production_min.Portal=c$2;reactIs_production_min.Profiler=f$2;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m$2;reactIs_production_min.SuspenseList=n$1;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function($){return v$1($)===h$1};reactIs_production_min.isContextProvider=function($){return v$1($)===g$1};reactIs_production_min.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===b$1};reactIs_production_min.isForwardRef=function($){return v$1($)===l$1};reactIs_production_min.isFragment=function($){return v$1($)===d$1};reactIs_production_min.isLazy=function($){return v$1($)===q$1};reactIs_production_min.isMemo=function($){return v$1($)===p$1};reactIs_production_min.isPortal=function($){return v$1($)===c$2};reactIs_production_min.isProfiler=function($){return v$1($)===f$2};reactIs_production_min.isStrictMode=function($){return v$1($)===e};reactIs_production_min.isSuspense=function($){return v$1($)===m$2};reactIs_production_min.isSuspenseList=function($){return v$1($)===n$1};reactIs_production_min.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===d$1||$===f$2||$===e||$===m$2||$===n$1||$===t$1||typeof $=="object"&&$!==null&&($.$$typeof===q$1||$.$$typeof===p$1||$.$$typeof===g$1||$.$$typeof===h$1||$.$$typeof===l$1||$.$$typeof===u$1||$.getModuleId!==void 0)};reactIs_production_min.typeOf=v$1;function createListenerCollection(){const $=getBatch();let et=null,tt=null;return{clear(){et=null,tt=null},notify(){$(()=>{let rt=et;for(;rt;)rt.callback(),rt=rt.next})},get(){let rt=[],nt=et;for(;nt;)rt.push(nt),nt=nt.next;return rt},subscribe(rt){let nt=!0,it=tt={callback:rt,next:null,prev:tt};return it.prev?it.prev.next=it:et=it,function(){!nt||et===null||(nt=!1,it.next?it.next.prev=it.prev:tt=it.prev,it.prev?it.prev.next=it.next:et=it.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription($,et){let tt,rt=nullListeners;function nt(ut){return ot(),rt.subscribe(ut)}function it(){rt.notify()}function At(){ct.onStateChange&&ct.onStateChange()}function at(){return!!tt}function ot(){tt||(tt=et?et.addNestedSub(At):$.subscribe(At),rt=createListenerCollection())}function st(){tt&&(tt(),tt=void 0,rt.clear(),rt=nullListeners)}const ct={addNestedSub:nt,notifyNestedSubs:it,handleChangeWrapper:At,isSubscribed:at,trySubscribe:ot,tryUnsubscribe:st,getListeners:()=>rt};return ct}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",useIsomorphicLayoutEffect=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function Provider({store:$,context:et,children:tt,serverState:rt,stabilityCheck:nt="once",noopCheck:it="once"}){const At=reactExports.useMemo(()=>{const st=createSubscription($);return{store:$,subscription:st,getServerState:rt?()=>rt:void 0,stabilityCheck:nt,noopCheck:it}},[$,rt,nt,it]),at=reactExports.useMemo(()=>$.getState(),[$]);useIsomorphicLayoutEffect(()=>{const{subscription:st}=At;return st.onStateChange=st.notifyNestedSubs,st.trySubscribe(),at!==$.getState()&&st.notifyNestedSubs(),()=>{st.tryUnsubscribe(),st.onStateChange=void 0}},[At,at]);const ot=et||ReactReduxContext;return reactExports.createElement(ot.Provider,{value:At},tt)}function createStoreHook($=ReactReduxContext){const et=$===ReactReduxContext?useReduxContext:createReduxContextHook($);return function(){const{store:rt}=et();return rt}}const useStore=createStoreHook();function createDispatchHook($=ReactReduxContext){const et=$===ReactReduxContext?useStore:createStoreHook($);return function(){return et().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);setBatch(reactDomExports.unstable_batchedUpdates);const useAppDispatch=()=>useDispatch(),useAppSelector=useSelector;function n($){for(var et=arguments.length,tt=Array(et>1?et-1:0),rt=1;rt3?et.i-4:et.i:Array.isArray($)?1:s$1($)?2:v($)?3:0}function u($,et){return o($)===2?$.has(et):Object.prototype.hasOwnProperty.call($,et)}function a($,et){return o($)===2?$.get(et):$[et]}function f$1($,et,tt){var rt=o($);rt===2?$.set(et,tt):rt===3?$.add(tt):$[et]=tt}function c$1($,et){return $===et?$!==0||1/$==1/et:$!=$&&et!=et}function s$1($){return X&&$ instanceof Map}function v($){return q&&$ instanceof Set}function p($){return $.o||$.t}function l($){if(Array.isArray($))return Array.prototype.slice.call($);var et=rn($);delete et[Q];for(var tt=nn(et),rt=0;rt1&&($.set=$.add=$.clear=$.delete=h),Object.freeze($),et&&i$1($,function(tt,rt){return d(rt,!0)},!0)),$}function h(){n(2)}function y($){return $==null||typeof $!="object"||Object.isFrozen($)}function b($){var et=tn[$];return et||n(18,$),et}function m$1($,et){tn[$]||(tn[$]=et)}function _(){return U}function j($,et){et&&(b("Patches"),$.u=[],$.s=[],$.v=et)}function g($){O($),$.p.forEach(S),$.p=null}function O($){$===U&&(U=$.l)}function w($){return U={p:[],l:U,h:$,m:!0,_:0}}function S($){var et=$[Q];et.i===0||et.i===1?et.j():et.g=!0}function P($,et){et._=et.p.length;var tt=et.p[0],rt=$!==void 0&&$!==tt;return et.h.O||b("ES5").S(et,$,rt),rt?(tt[Q].P&&(g(et),n(4)),t($)&&($=M(et,$),et.l||x(et,$)),et.u&&b("Patches").M(tt[Q].t,$,et.u,et.s)):$=M(et,tt,[]),g(et),et.u&&et.v(et.u,et.s),$!==H?$:void 0}function M($,et,tt){if(y(et))return et;var rt=et[Q];if(!rt)return i$1(et,function(at,ot){return A($,rt,et,at,ot,tt)},!0),et;if(rt.A!==$)return et;if(!rt.P)return x($,rt.t,!0),rt.t;if(!rt.I){rt.I=!0,rt.A._--;var nt=rt.i===4||rt.i===5?rt.o=l(rt.k):rt.o,it=nt,At=!1;rt.i===3&&(it=new Set(nt),nt.clear(),At=!0),i$1(it,function(at,ot){return A($,rt,nt,at,ot,tt,At)}),x($,nt,!1),tt&&$.u&&b("Patches").N(rt,tt,$.u,$.s)}return rt.o}function A($,et,tt,rt,nt,it,At){if(r$2(nt)){var at=M($,nt,it&&et&&et.i!==3&&!u(et.R,rt)?it.concat(rt):void 0);if(f$1(tt,rt,at),!r$2(at))return;$.m=!1}else At&&tt.add(nt);if(t(nt)&&!y(nt)){if(!$.h.D&&$._<1)return;M($,nt),et&&et.A.l||x($,nt)}}function x($,et,tt){tt===void 0&&(tt=!1),!$.l&&$.h.D&&$.m&&d(et,tt)}function z($,et){var tt=$[Q];return(tt?p(tt):$)[et]}function I($,et){if(et in $)for(var tt=Object.getPrototypeOf($);tt;){var rt=Object.getOwnPropertyDescriptor(tt,et);if(rt)return rt;tt=Object.getPrototypeOf(tt)}}function k($){$.P||($.P=!0,$.l&&k($.l))}function E($){$.o||($.o=l($.t))}function N($,et,tt){var rt=s$1(et)?b("MapSet").F(et,tt):v(et)?b("MapSet").T(et,tt):$.O?function(nt,it){var At=Array.isArray(nt),at={i:At?1:0,A:it?it.A:_(),P:!1,I:!1,R:{},l:it,t:nt,k:null,o:null,j:null,C:!1},ot=at,st=en;At&&(ot=[at],st=on);var ct=Proxy.revocable(ot,st),ut=ct.revoke,gt=ct.proxy;return at.k=gt,at.j=ut,gt}(et,tt):b("ES5").J(et,tt);return(tt?tt.A:_()).p.push(rt),rt}function R($){return r$2($)||n(22,$),function et(tt){if(!t(tt))return tt;var rt,nt=tt[Q],it=o(tt);if(nt){if(!nt.P&&(nt.i<4||!b("ES5").K(nt)))return nt.t;nt.I=!0,rt=D(tt,it),nt.I=!1}else rt=D(tt,it);return i$1(rt,function(At,at){nt&&a(nt.t,At)===at||f$1(rt,At,et(at))}),it===3?new Set(rt):rt}($)}function D($,et){switch(et){case 2:return new Map($);case 3:return Array.from($)}return l($)}function F(){function $(it,At){var at=nt[it];return at?at.enumerable=At:nt[it]=at={configurable:!0,enumerable:At,get:function(){var ot=this[Q];return en.get(ot,it)},set:function(ot){var st=this[Q];en.set(st,it,ot)}},at}function et(it){for(var At=it.length-1;At>=0;At--){var at=it[At][Q];if(!at.P)switch(at.i){case 5:rt(at)&&k(at);break;case 4:tt(at)&&k(at)}}}function tt(it){for(var At=it.t,at=it.k,ot=nn(at),st=ot.length-1;st>=0;st--){var ct=ot[st];if(ct!==Q){var ut=At[ct];if(ut===void 0&&!u(At,ct))return!0;var gt=at[ct],dt=gt&>[Q];if(dt?dt.t!==ut:!c$1(gt,ut))return!0}}var ht=!!At[Q];return ot.length!==nn(At).length+(ht?0:1)}function rt(it){var At=it.k;if(At.length!==it.t.length)return!0;var at=Object.getOwnPropertyDescriptor(At,At.length-1);if(at&&!at.get)return!0;for(var ot=0;ot1?Qt-1:0),mt=1;mt1?ct-1:0),gt=1;gt=0;nt--){var it=rt[nt];if(it.path.length===0&&it.op==="replace"){tt=it.value;break}}nt>-1&&(rt=rt.slice(nt+1));var At=b("Patches").$;return r$2(tt)?At(tt,rt):this.produce(tt,function(at){return At(at,rt)})},$}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);function ownKeys$2($,et){var tt=Object.keys($);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols($);et&&(rt=rt.filter(function(nt){return Object.getOwnPropertyDescriptor($,nt).enumerable})),tt.push.apply(tt,rt)}return tt}function _objectSpread2($){for(var et=1;et"u"&&(tt=et,et=void 0),typeof tt<"u"){if(typeof tt!="function")throw new Error(formatProdErrorMessage(1));return tt(createStore)($,et)}if(typeof $!="function")throw new Error(formatProdErrorMessage(2));var nt=$,it=et,At=[],at=At,ot=!1;function st(){at===At&&(at=At.slice())}function ct(){if(ot)throw new Error(formatProdErrorMessage(3));return it}function ut(Et){if(typeof Et!="function")throw new Error(formatProdErrorMessage(4));if(ot)throw new Error(formatProdErrorMessage(5));var wt=!0;return st(),at.push(Et),function(){if(wt){if(ot)throw new Error(formatProdErrorMessage(6));wt=!1,st();var pt=at.indexOf(Et);at.splice(pt,1),At=null}}}function gt(Et){if(!isPlainObject$1(Et))throw new Error(formatProdErrorMessage(7));if(typeof Et.type>"u")throw new Error(formatProdErrorMessage(8));if(ot)throw new Error(formatProdErrorMessage(9));try{ot=!0,it=nt(it,Et)}finally{ot=!1}for(var wt=At=at,Qt=0;Qt"u")throw new Error(formatProdErrorMessage(12));if(typeof tt(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers($){for(var et=Object.keys($),tt={},rt=0;rt"u")throw st&&st.type,new Error(formatProdErrorMessage(14));ut[dt]=wt,ct=ct||wt!==Et}return ct=ct||it.length!==Object.keys(ot).length,ct?ut:ot}}function compose(){for(var $=arguments.length,et=new Array($),tt=0;tt<$;tt++)et[tt]=arguments[tt];return et.length===0?function(rt){return rt}:et.length===1?et[0]:et.reduce(function(rt,nt){return function(){return rt(nt.apply(void 0,arguments))}})}function applyMiddleware(){for(var $=arguments.length,et=new Array($),tt=0;tt<$;tt++)et[tt]=arguments[tt];return function(rt){return function(){var nt=rt.apply(void 0,arguments),it=function(){throw new Error(formatProdErrorMessage(15))},At={getState:nt.getState,dispatch:function(){return it.apply(void 0,arguments)}},at=et.map(function(ot){return ot(At)});return it=compose.apply(void 0,at)(nt.dispatch),_objectSpread2(_objectSpread2({},nt),{},{dispatch:it})}}}function createThunkMiddleware($){var et=function(rt){var nt=rt.dispatch,it=rt.getState;return function(At){return function(at){return typeof at=="function"?at(nt,it,$):At(at)}}};return et}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;const thunkMiddleware=thunk;var __extends=globalThis&&globalThis.__extends||function(){var $=function(et,tt){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var it in nt)Object.prototype.hasOwnProperty.call(nt,it)&&(rt[it]=nt[it])},$(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");$(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}}(),__generator=globalThis&&globalThis.__generator||function($,et){var tt={label:0,sent:function(){if(it[0]&1)throw it[1];return it[1]},trys:[],ops:[]},rt,nt,it,At;return At={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function at(st){return function(ct){return ot([st,ct])}}function ot(st){if(rt)throw new TypeError("Generator is already executing.");for(;tt;)try{if(rt=1,nt&&(it=st[0]&2?nt.return:st[0]?nt.throw||((it=nt.return)&&it.call(nt),0):nt.next)&&!(it=it.call(nt,st[1])).done)return it;switch(nt=0,it&&(st=[st[0]&2,it.value]),st[0]){case 0:case 1:it=st;break;case 4:return tt.label++,{value:st[1],done:!1};case 5:tt.label++,nt=st[1],st=[0];continue;case 7:st=tt.ops.pop(),tt.trys.pop();continue;default:if(it=tt.trys,!(it=it.length>0&&it[it.length-1])&&(st[0]===6||st[0]===2)){tt=0;continue}if(st[0]===3&&(!it||st[1]>it[0]&&st[1]{$.notifications.push({...et.payload,id:Date.now()})},pop:($,et)=>{const tt=et.payload,rt=$.notifications.filter(nt=>nt.id!==tt);$.notifications=rt}}}),notificationReducer=notificationSlice.reducer;var walletState=($=>($[$.Idle=0]="Idle",$[$.OpenWalletList=1]="OpenWalletList",$[$.Disconnected=2]="Disconnected",$[$.Loading=3]="Loading",$[$.Connecting=4]="Connecting",$[$.Connected=5]="Connected",$))(walletState||{});const initialState={principalId:void 0,accountId:void 0,state:0,isConnected:!1,walletConnected:void 0},walletSlice=createSlice({name:"difintywallet",initialState,reducers:{resetWallet:($,et)=>{$.principalId=void 0,$.accountId=void 0,$.state=0,$.isConnected=!1,$.walletConnected=void 0,$.walletSelected=void 0},setWalletLoaded:($,et)=>{const{principleId:tt,accountId:rt,walletActive:nt}=et.payload;!tt||!rt||($.principalId=tt,$.accountId=rt,$.isConnected=!0,$.walletConnected=nt,$.state=5)},setState:($,et)=>{$.state=et.payload,$.principalId=void 0,$.isConnected=!1},setOnwalletList:($,et)=>{$.state=et.payload},setWalletSelected:($,et)=>{$.walletSelected=et.payload}}}),walletActions={...walletSlice.actions},selectWalletState=$=>$.dfinityWallet,useWalletStore=()=>useAppSelector(selectWalletState),walletReducer=walletSlice.reducer,store=configureStore({reducer:{notification:notificationReducer,dfinityWallet:walletReducer},middleware:$=>$({serializableCheck:!1})}),WalletConnectBtn=()=>{const $=useAppDispatch(),et=()=>{$(walletActions.setOnwalletList(walletState.OpenWalletList))};return jsxRuntimeExports.jsx(Button,{size:"lg",borderRadius:10,fontSize:"md",style:{width:"100%",color:"#fff",backgroundColor:"rgb(0 189 55)"},onClick:et,children:"Connect Wallet"})};var buffer$2={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var tt=$.indexOf("=");tt===-1&&(tt=et);var rt=tt===et?0:4-tt%4;return[tt,rt]}function byteLength($){var et=getLens($),tt=et[0],rt=et[1];return(tt+rt)*3/4-rt}function _byteLength($,et,tt){return(et+tt)*3/4-tt}function toByteArray($){var et,tt=getLens($),rt=tt[0],nt=tt[1],it=new Arr(_byteLength($,rt,nt)),At=0,at=nt>0?rt-4:rt,ot;for(ot=0;ot>16&255,it[At++]=et>>8&255,it[At++]=et&255;return nt===2&&(et=revLookup[$.charCodeAt(ot)]<<2|revLookup[$.charCodeAt(ot+1)]>>4,it[At++]=et&255),nt===1&&(et=revLookup[$.charCodeAt(ot)]<<10|revLookup[$.charCodeAt(ot+1)]<<4|revLookup[$.charCodeAt(ot+2)]>>2,it[At++]=et>>8&255,it[At++]=et&255),it}function tripletToBase64($){return lookup[$>>18&63]+lookup[$>>12&63]+lookup[$>>6&63]+lookup[$&63]}function encodeChunk($,et,tt){for(var rt,nt=[],it=et;itat?at:At+it));return rt===1?(et=$[tt-1],nt.push(lookup[et>>2]+lookup[et<<4&63]+"==")):rt===2&&(et=($[tt-2]<<8)+$[tt-1],nt.push(lookup[et>>10]+lookup[et>>4&63]+lookup[et<<2&63]+"=")),nt.join("")}var ieee754$1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754$1.read=function($,et,tt,rt,nt){var it,At,at=nt*8-rt-1,ot=(1<>1,ct=-7,ut=tt?nt-1:0,gt=tt?-1:1,dt=$[et+ut];for(ut+=gt,it=dt&(1<<-ct)-1,dt>>=-ct,ct+=at;ct>0;it=it*256+$[et+ut],ut+=gt,ct-=8);for(At=it&(1<<-ct)-1,it>>=-ct,ct+=rt;ct>0;At=At*256+$[et+ut],ut+=gt,ct-=8);if(it===0)it=1-st;else{if(it===ot)return At?NaN:(dt?-1:1)*(1/0);At=At+Math.pow(2,rt),it=it-st}return(dt?-1:1)*At*Math.pow(2,it-rt)};ieee754$1.write=function($,et,tt,rt,nt,it){var At,at,ot,st=it*8-nt-1,ct=(1<>1,gt=nt===23?Math.pow(2,-24)-Math.pow(2,-77):0,dt=rt?0:it-1,ht=rt?1:-1,Et=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(at=isNaN(et)?1:0,At=ct):(At=Math.floor(Math.log(et)/Math.LN2),et*(ot=Math.pow(2,-At))<1&&(At--,ot*=2),At+ut>=1?et+=gt/ot:et+=gt*Math.pow(2,1-ut),et*ot>=2&&(At++,ot/=2),At+ut>=ct?(at=0,At=ct):At+ut>=1?(at=(et*ot-1)*Math.pow(2,nt),At=At+ut):(at=et*Math.pow(2,ut-1)*Math.pow(2,nt),At=0));nt>=8;$[tt+dt]=at&255,dt+=ht,at/=256,nt-=8);for(At=At<0;$[tt+dt]=At&255,dt+=ht,At/=256,st-=8);$[tt+dt-ht]|=Et*128};/*! + */var b$1=Symbol.for("react.element"),c$2=Symbol.for("react.portal"),d$1=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f$2=Symbol.for("react.profiler"),g$1=Symbol.for("react.provider"),h$1=Symbol.for("react.context"),k$1=Symbol.for("react.server_context"),l$1=Symbol.for("react.forward_ref"),m$2=Symbol.for("react.suspense"),n$1=Symbol.for("react.suspense_list"),p$1=Symbol.for("react.memo"),q$1=Symbol.for("react.lazy"),t$1=Symbol.for("react.offscreen"),u$1;u$1=Symbol.for("react.module.reference");function v$1($){if(typeof $=="object"&&$!==null){var et=$.$$typeof;switch(et){case b$1:switch($=$.type,$){case d$1:case f$2:case e:case m$2:case n$1:return $;default:switch($=$&&$.$$typeof,$){case k$1:case h$1:case l$1:case q$1:case p$1:case g$1:return $;default:return et}}case c$2:return et}}}reactIs_production_min.ContextConsumer=h$1;reactIs_production_min.ContextProvider=g$1;reactIs_production_min.Element=b$1;reactIs_production_min.ForwardRef=l$1;reactIs_production_min.Fragment=d$1;reactIs_production_min.Lazy=q$1;reactIs_production_min.Memo=p$1;reactIs_production_min.Portal=c$2;reactIs_production_min.Profiler=f$2;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m$2;reactIs_production_min.SuspenseList=n$1;reactIs_production_min.isAsyncMode=function(){return!1};reactIs_production_min.isConcurrentMode=function(){return!1};reactIs_production_min.isContextConsumer=function($){return v$1($)===h$1};reactIs_production_min.isContextProvider=function($){return v$1($)===g$1};reactIs_production_min.isElement=function($){return typeof $=="object"&&$!==null&&$.$$typeof===b$1};reactIs_production_min.isForwardRef=function($){return v$1($)===l$1};reactIs_production_min.isFragment=function($){return v$1($)===d$1};reactIs_production_min.isLazy=function($){return v$1($)===q$1};reactIs_production_min.isMemo=function($){return v$1($)===p$1};reactIs_production_min.isPortal=function($){return v$1($)===c$2};reactIs_production_min.isProfiler=function($){return v$1($)===f$2};reactIs_production_min.isStrictMode=function($){return v$1($)===e};reactIs_production_min.isSuspense=function($){return v$1($)===m$2};reactIs_production_min.isSuspenseList=function($){return v$1($)===n$1};reactIs_production_min.isValidElementType=function($){return typeof $=="string"||typeof $=="function"||$===d$1||$===f$2||$===e||$===m$2||$===n$1||$===t$1||typeof $=="object"&&$!==null&&($.$$typeof===q$1||$.$$typeof===p$1||$.$$typeof===g$1||$.$$typeof===h$1||$.$$typeof===l$1||$.$$typeof===u$1||$.getModuleId!==void 0)};reactIs_production_min.typeOf=v$1;function createListenerCollection(){const $=getBatch();let et=null,tt=null;return{clear(){et=null,tt=null},notify(){$(()=>{let rt=et;for(;rt;)rt.callback(),rt=rt.next})},get(){let rt=[],nt=et;for(;nt;)rt.push(nt),nt=nt.next;return rt},subscribe(rt){let nt=!0,it=tt={callback:rt,next:null,prev:tt};return it.prev?it.prev.next=it:et=it,function(){!nt||et===null||(nt=!1,it.next?it.next.prev=it.prev:tt=it.prev,it.prev?it.prev.next=it.next:et=it.next)}}}}const nullListeners={notify(){},get:()=>[]};function createSubscription($,et){let tt,rt=nullListeners;function nt(ut){return ot(),rt.subscribe(ut)}function it(){rt.notify()}function At(){ct.onStateChange&&ct.onStateChange()}function at(){return!!tt}function ot(){tt||(tt=et?et.addNestedSub(At):$.subscribe(At),rt=createListenerCollection())}function st(){tt&&(tt(),tt=void 0,rt.clear(),rt=nullListeners)}const ct={addNestedSub:nt,notifyNestedSubs:it,handleChangeWrapper:At,isSubscribed:at,trySubscribe:ot,tryUnsubscribe:st,getListeners:()=>rt};return ct}const canUseDOM=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",useIsomorphicLayoutEffect=canUseDOM?reactExports.useLayoutEffect:reactExports.useEffect;function Provider({store:$,context:et,children:tt,serverState:rt,stabilityCheck:nt="once",noopCheck:it="once"}){const At=reactExports.useMemo(()=>{const st=createSubscription($);return{store:$,subscription:st,getServerState:rt?()=>rt:void 0,stabilityCheck:nt,noopCheck:it}},[$,rt,nt,it]),at=reactExports.useMemo(()=>$.getState(),[$]);useIsomorphicLayoutEffect(()=>{const{subscription:st}=At;return st.onStateChange=st.notifyNestedSubs,st.trySubscribe(),at!==$.getState()&&st.notifyNestedSubs(),()=>{st.tryUnsubscribe(),st.onStateChange=void 0}},[At,at]);const ot=et||ReactReduxContext;return reactExports.createElement(ot.Provider,{value:At},tt)}function createStoreHook($=ReactReduxContext){const et=$===ReactReduxContext?useReduxContext:createReduxContextHook($);return function(){const{store:rt}=et();return rt}}const useStore=createStoreHook();function createDispatchHook($=ReactReduxContext){const et=$===ReactReduxContext?useStore:createStoreHook($);return function(){return et().dispatch}}const useDispatch=createDispatchHook();initializeUseSelector(withSelectorExports.useSyncExternalStoreWithSelector);setBatch(reactDomExports.unstable_batchedUpdates);const useAppDispatch=()=>useDispatch(),useAppSelector=useSelector;function n($){for(var et=arguments.length,tt=Array(et>1?et-1:0),rt=1;rt3?et.i-4:et.i:Array.isArray($)?1:s$1($)?2:v($)?3:0}function u($,et){return o($)===2?$.has(et):Object.prototype.hasOwnProperty.call($,et)}function a($,et){return o($)===2?$.get(et):$[et]}function f$1($,et,tt){var rt=o($);rt===2?$.set(et,tt):rt===3?$.add(tt):$[et]=tt}function c$1($,et){return $===et?$!==0||1/$==1/et:$!=$&&et!=et}function s$1($){return X&&$ instanceof Map}function v($){return q&&$ instanceof Set}function p($){return $.o||$.t}function l($){if(Array.isArray($))return Array.prototype.slice.call($);var et=rn($);delete et[Q];for(var tt=nn(et),rt=0;rt1&&($.set=$.add=$.clear=$.delete=h),Object.freeze($),et&&i$1($,function(tt,rt){return d(rt,!0)},!0)),$}function h(){n(2)}function y($){return $==null||typeof $!="object"||Object.isFrozen($)}function b($){var et=tn[$];return et||n(18,$),et}function m$1($,et){tn[$]||(tn[$]=et)}function _(){return U}function j($,et){et&&(b("Patches"),$.u=[],$.s=[],$.v=et)}function g($){O($),$.p.forEach(S),$.p=null}function O($){$===U&&(U=$.l)}function w($){return U={p:[],l:U,h:$,m:!0,_:0}}function S($){var et=$[Q];et.i===0||et.i===1?et.j():et.g=!0}function P($,et){et._=et.p.length;var tt=et.p[0],rt=$!==void 0&&$!==tt;return et.h.O||b("ES5").S(et,$,rt),rt?(tt[Q].P&&(g(et),n(4)),t($)&&($=M(et,$),et.l||x(et,$)),et.u&&b("Patches").M(tt[Q].t,$,et.u,et.s)):$=M(et,tt,[]),g(et),et.u&&et.v(et.u,et.s),$!==H?$:void 0}function M($,et,tt){if(y(et))return et;var rt=et[Q];if(!rt)return i$1(et,function(at,ot){return A($,rt,et,at,ot,tt)},!0),et;if(rt.A!==$)return et;if(!rt.P)return x($,rt.t,!0),rt.t;if(!rt.I){rt.I=!0,rt.A._--;var nt=rt.i===4||rt.i===5?rt.o=l(rt.k):rt.o,it=nt,At=!1;rt.i===3&&(it=new Set(nt),nt.clear(),At=!0),i$1(it,function(at,ot){return A($,rt,nt,at,ot,tt,At)}),x($,nt,!1),tt&&$.u&&b("Patches").N(rt,tt,$.u,$.s)}return rt.o}function A($,et,tt,rt,nt,it,At){if(r$2(nt)){var at=M($,nt,it&&et&&et.i!==3&&!u(et.R,rt)?it.concat(rt):void 0);if(f$1(tt,rt,at),!r$2(at))return;$.m=!1}else At&&tt.add(nt);if(t(nt)&&!y(nt)){if(!$.h.D&&$._<1)return;M($,nt),et&&et.A.l||x($,nt)}}function x($,et,tt){tt===void 0&&(tt=!1),!$.l&&$.h.D&&$.m&&d(et,tt)}function z($,et){var tt=$[Q];return(tt?p(tt):$)[et]}function I($,et){if(et in $)for(var tt=Object.getPrototypeOf($);tt;){var rt=Object.getOwnPropertyDescriptor(tt,et);if(rt)return rt;tt=Object.getPrototypeOf(tt)}}function k($){$.P||($.P=!0,$.l&&k($.l))}function E($){$.o||($.o=l($.t))}function N($,et,tt){var rt=s$1(et)?b("MapSet").F(et,tt):v(et)?b("MapSet").T(et,tt):$.O?function(nt,it){var At=Array.isArray(nt),at={i:At?1:0,A:it?it.A:_(),P:!1,I:!1,R:{},l:it,t:nt,k:null,o:null,j:null,C:!1},ot=at,st=en;At&&(ot=[at],st=on);var ct=Proxy.revocable(ot,st),ut=ct.revoke,gt=ct.proxy;return at.k=gt,at.j=ut,gt}(et,tt):b("ES5").J(et,tt);return(tt?tt.A:_()).p.push(rt),rt}function R($){return r$2($)||n(22,$),function et(tt){if(!t(tt))return tt;var rt,nt=tt[Q],it=o(tt);if(nt){if(!nt.P&&(nt.i<4||!b("ES5").K(nt)))return nt.t;nt.I=!0,rt=D(tt,it),nt.I=!1}else rt=D(tt,it);return i$1(rt,function(At,at){nt&&a(nt.t,At)===at||f$1(rt,At,et(at))}),it===3?new Set(rt):rt}($)}function D($,et){switch(et){case 2:return new Map($);case 3:return Array.from($)}return l($)}function F(){function $(it,At){var at=nt[it];return at?at.enumerable=At:nt[it]=at={configurable:!0,enumerable:At,get:function(){var ot=this[Q];return en.get(ot,it)},set:function(ot){var st=this[Q];en.set(st,it,ot)}},at}function et(it){for(var At=it.length-1;At>=0;At--){var at=it[At][Q];if(!at.P)switch(at.i){case 5:rt(at)&&k(at);break;case 4:tt(at)&&k(at)}}}function tt(it){for(var At=it.t,at=it.k,ot=nn(at),st=ot.length-1;st>=0;st--){var ct=ot[st];if(ct!==Q){var ut=At[ct];if(ut===void 0&&!u(At,ct))return!0;var gt=at[ct],dt=gt&>[Q];if(dt?dt.t!==ut:!c$1(gt,ut))return!0}}var ht=!!At[Q];return ot.length!==nn(At).length+(ht?0:1)}function rt(it){var At=it.k;if(At.length!==it.t.length)return!0;var at=Object.getOwnPropertyDescriptor(At,At.length-1);if(at&&!at.get)return!0;for(var ot=0;ot1?mt-1:0),Qt=1;Qt1?ct-1:0),gt=1;gt=0;nt--){var it=rt[nt];if(it.path.length===0&&it.op==="replace"){tt=it.value;break}}nt>-1&&(rt=rt.slice(nt+1));var At=b("Patches").$;return r$2(tt)?At(tt,rt):this.produce(tt,function(at){return At(at,rt)})},$}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an);an.setAutoFreeze.bind(an);an.setUseProxies.bind(an);an.applyPatches.bind(an);an.createDraft.bind(an);an.finishDraft.bind(an);function ownKeys$2($,et){var tt=Object.keys($);if(Object.getOwnPropertySymbols){var rt=Object.getOwnPropertySymbols($);et&&(rt=rt.filter(function(nt){return Object.getOwnPropertyDescriptor($,nt).enumerable})),tt.push.apply(tt,rt)}return tt}function _objectSpread2($){for(var et=1;et"u"&&(tt=et,et=void 0),typeof tt<"u"){if(typeof tt!="function")throw new Error(formatProdErrorMessage(1));return tt(createStore)($,et)}if(typeof $!="function")throw new Error(formatProdErrorMessage(2));var nt=$,it=et,At=[],at=At,ot=!1;function st(){at===At&&(at=At.slice())}function ct(){if(ot)throw new Error(formatProdErrorMessage(3));return it}function ut(Et){if(typeof Et!="function")throw new Error(formatProdErrorMessage(4));if(ot)throw new Error(formatProdErrorMessage(5));var wt=!0;return st(),at.push(Et),function(){if(wt){if(ot)throw new Error(formatProdErrorMessage(6));wt=!1,st();var pt=at.indexOf(Et);at.splice(pt,1),At=null}}}function gt(Et){if(!isPlainObject$1(Et))throw new Error(formatProdErrorMessage(7));if(typeof Et.type>"u")throw new Error(formatProdErrorMessage(8));if(ot)throw new Error(formatProdErrorMessage(9));try{ot=!0,it=nt(it,Et)}finally{ot=!1}for(var wt=At=at,mt=0;mt"u")throw new Error(formatProdErrorMessage(12));if(typeof tt(void 0,{type:ActionTypes.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(formatProdErrorMessage(13))})}function combineReducers($){for(var et=Object.keys($),tt={},rt=0;rt"u")throw st&&st.type,new Error(formatProdErrorMessage(14));ut[dt]=wt,ct=ct||wt!==Et}return ct=ct||it.length!==Object.keys(ot).length,ct?ut:ot}}function compose(){for(var $=arguments.length,et=new Array($),tt=0;tt<$;tt++)et[tt]=arguments[tt];return et.length===0?function(rt){return rt}:et.length===1?et[0]:et.reduce(function(rt,nt){return function(){return rt(nt.apply(void 0,arguments))}})}function applyMiddleware(){for(var $=arguments.length,et=new Array($),tt=0;tt<$;tt++)et[tt]=arguments[tt];return function(rt){return function(){var nt=rt.apply(void 0,arguments),it=function(){throw new Error(formatProdErrorMessage(15))},At={getState:nt.getState,dispatch:function(){return it.apply(void 0,arguments)}},at=et.map(function(ot){return ot(At)});return it=compose.apply(void 0,at)(nt.dispatch),_objectSpread2(_objectSpread2({},nt),{},{dispatch:it})}}}function createThunkMiddleware($){var et=function(rt){var nt=rt.dispatch,it=rt.getState;return function(At){return function(at){return typeof at=="function"?at(nt,it,$):At(at)}}};return et}var thunk=createThunkMiddleware();thunk.withExtraArgument=createThunkMiddleware;const thunkMiddleware=thunk;var __extends=globalThis&&globalThis.__extends||function(){var $=function(et,tt){return $=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(rt,nt){rt.__proto__=nt}||function(rt,nt){for(var it in nt)Object.prototype.hasOwnProperty.call(nt,it)&&(rt[it]=nt[it])},$(et,tt)};return function(et,tt){if(typeof tt!="function"&&tt!==null)throw new TypeError("Class extends value "+String(tt)+" is not a constructor or null");$(et,tt);function rt(){this.constructor=et}et.prototype=tt===null?Object.create(tt):(rt.prototype=tt.prototype,new rt)}}(),__generator=globalThis&&globalThis.__generator||function($,et){var tt={label:0,sent:function(){if(it[0]&1)throw it[1];return it[1]},trys:[],ops:[]},rt,nt,it,At;return At={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(At[Symbol.iterator]=function(){return this}),At;function at(st){return function(ct){return ot([st,ct])}}function ot(st){if(rt)throw new TypeError("Generator is already executing.");for(;tt;)try{if(rt=1,nt&&(it=st[0]&2?nt.return:st[0]?nt.throw||((it=nt.return)&&it.call(nt),0):nt.next)&&!(it=it.call(nt,st[1])).done)return it;switch(nt=0,it&&(st=[st[0]&2,it.value]),st[0]){case 0:case 1:it=st;break;case 4:return tt.label++,{value:st[1],done:!1};case 5:tt.label++,nt=st[1],st=[0];continue;case 7:st=tt.ops.pop(),tt.trys.pop();continue;default:if(it=tt.trys,!(it=it.length>0&&it[it.length-1])&&(st[0]===6||st[0]===2)){tt=0;continue}if(st[0]===3&&(!it||st[1]>it[0]&&st[1]{$.notifications.push({...et.payload,id:Date.now()})},pop:($,et)=>{const tt=et.payload,rt=$.notifications.filter(nt=>nt.id!==tt);$.notifications=rt}}}),notificationReducer=notificationSlice.reducer;var walletState=($=>($[$.Idle=0]="Idle",$[$.OpenWalletList=1]="OpenWalletList",$[$.Disconnected=2]="Disconnected",$[$.Loading=3]="Loading",$[$.Connecting=4]="Connecting",$[$.Connected=5]="Connected",$))(walletState||{});const initialState={principalId:void 0,accountId:void 0,state:0,isConnected:!1,walletConnected:void 0},walletSlice=createSlice({name:"difintywallet",initialState,reducers:{resetWallet:($,et)=>{$.principalId=void 0,$.accountId=void 0,$.state=0,$.isConnected=!1,$.walletConnected=void 0,$.walletSelected=void 0},setWalletLoaded:($,et)=>{const{principleId:tt,accountId:rt,walletActive:nt}=et.payload;!tt||!rt||($.principalId=tt,$.accountId=rt,$.isConnected=!0,$.walletConnected=nt,$.state=5)},setState:($,et)=>{$.state=et.payload,$.principalId=void 0,$.isConnected=!1},setOnwalletList:($,et)=>{$.state=et.payload},setWalletSelected:($,et)=>{$.walletSelected=et.payload}}}),walletActions={...walletSlice.actions},selectWalletState=$=>$.dfinityWallet,useWalletStore=()=>useAppSelector(selectWalletState),walletReducer=walletSlice.reducer,store=configureStore({reducer:{notification:notificationReducer,dfinityWallet:walletReducer},middleware:$=>$({serializableCheck:!1})}),WalletConnectBtn=()=>{const $=useAppDispatch(),et=()=>{$(walletActions.setOnwalletList(walletState.OpenWalletList))};return jsxRuntimeExports.jsx(Button,{size:"lg",borderRadius:10,fontSize:"md",style:{width:"100%",color:"#fff",backgroundColor:"rgb(0 189 55)"},onClick:et,children:"Connect Wallet"})};var buffer$2={},base64Js={};base64Js.byteLength=byteLength;base64Js.toByteArray=toByteArray;base64Js.fromByteArray=fromByteArray;var lookup=[],revLookup=[],Arr=typeof Uint8Array<"u"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i0)throw new Error("Invalid string. Length must be a multiple of 4");var tt=$.indexOf("=");tt===-1&&(tt=et);var rt=tt===et?0:4-tt%4;return[tt,rt]}function byteLength($){var et=getLens($),tt=et[0],rt=et[1];return(tt+rt)*3/4-rt}function _byteLength($,et,tt){return(et+tt)*3/4-tt}function toByteArray($){var et,tt=getLens($),rt=tt[0],nt=tt[1],it=new Arr(_byteLength($,rt,nt)),At=0,at=nt>0?rt-4:rt,ot;for(ot=0;ot>16&255,it[At++]=et>>8&255,it[At++]=et&255;return nt===2&&(et=revLookup[$.charCodeAt(ot)]<<2|revLookup[$.charCodeAt(ot+1)]>>4,it[At++]=et&255),nt===1&&(et=revLookup[$.charCodeAt(ot)]<<10|revLookup[$.charCodeAt(ot+1)]<<4|revLookup[$.charCodeAt(ot+2)]>>2,it[At++]=et>>8&255,it[At++]=et&255),it}function tripletToBase64($){return lookup[$>>18&63]+lookup[$>>12&63]+lookup[$>>6&63]+lookup[$&63]}function encodeChunk($,et,tt){for(var rt,nt=[],it=et;itat?at:At+it));return rt===1?(et=$[tt-1],nt.push(lookup[et>>2]+lookup[et<<4&63]+"==")):rt===2&&(et=($[tt-2]<<8)+$[tt-1],nt.push(lookup[et>>10]+lookup[et>>4&63]+lookup[et<<2&63]+"=")),nt.join("")}var ieee754$1={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ieee754$1.read=function($,et,tt,rt,nt){var it,At,at=nt*8-rt-1,ot=(1<>1,ct=-7,ut=tt?nt-1:0,gt=tt?-1:1,dt=$[et+ut];for(ut+=gt,it=dt&(1<<-ct)-1,dt>>=-ct,ct+=at;ct>0;it=it*256+$[et+ut],ut+=gt,ct-=8);for(At=it&(1<<-ct)-1,it>>=-ct,ct+=rt;ct>0;At=At*256+$[et+ut],ut+=gt,ct-=8);if(it===0)it=1-st;else{if(it===ot)return At?NaN:(dt?-1:1)*(1/0);At=At+Math.pow(2,rt),it=it-st}return(dt?-1:1)*At*Math.pow(2,it-rt)};ieee754$1.write=function($,et,tt,rt,nt,it){var At,at,ot,st=it*8-nt-1,ct=(1<>1,gt=nt===23?Math.pow(2,-24)-Math.pow(2,-77):0,dt=rt?0:it-1,ht=rt?1:-1,Et=et<0||et===0&&1/et<0?1:0;for(et=Math.abs(et),isNaN(et)||et===1/0?(at=isNaN(et)?1:0,At=ct):(At=Math.floor(Math.log(et)/Math.LN2),et*(ot=Math.pow(2,-At))<1&&(At--,ot*=2),At+ut>=1?et+=gt/ot:et+=gt*Math.pow(2,1-ut),et*ot>=2&&(At++,ot/=2),At+ut>=ct?(at=0,At=ct):At+ut>=1?(at=(et*ot-1)*Math.pow(2,nt),At=At+ut):(at=et*Math.pow(2,ut-1)*Math.pow(2,nt),At=0));nt>=8;$[tt+dt]=at&255,dt+=ht,at/=256,nt-=8);for(At=At<0;$[tt+dt]=At&255,dt+=ht,At/=256,st-=8);$[tt+dt-ht]|=Et*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function($){const et=base64Js,tt=ieee754$1,rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=at,$.SlowBuffer=pt,$.INSPECT_MAX_BYTES=50;const nt=2147483647;$.kMaxLength=nt,at.TYPED_ARRAY_SUPPORT=it(),!at.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function it(){try{const Ft=new Uint8Array(1),yt={foo:function(){return 42}};return Object.setPrototypeOf(yt,Uint8Array.prototype),Object.setPrototypeOf(Ft,yt),Ft.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function At(Ft){if(Ft>nt)throw new RangeError('The value "'+Ft+'" is invalid for option "size"');const yt=new Uint8Array(Ft);return Object.setPrototypeOf(yt,at.prototype),yt}function at(Ft,yt,St){if(typeof Ft=="number"){if(typeof yt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(Ft)}return ot(Ft,yt,St)}at.poolSize=8192;function ot(Ft,yt,St){if(typeof Ft=="string")return gt(Ft,yt);if(ArrayBuffer.isView(Ft))return ht(Ft);if(Ft==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ft);if(er(Ft,ArrayBuffer)||Ft&&er(Ft.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(er(Ft,SharedArrayBuffer)||Ft&&er(Ft.buffer,SharedArrayBuffer)))return Et(Ft,yt,St);if(typeof Ft=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Wt=Ft.valueOf&&Ft.valueOf();if(Wt!=null&&Wt!==Ft)return at.from(Wt,yt,St);const or=wt(Ft);if(or)return or;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ft[Symbol.toPrimitive]=="function")return at.from(Ft[Symbol.toPrimitive]("string"),yt,St);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ft)}at.from=function(Ft,yt,St){return ot(Ft,yt,St)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(Ft){if(typeof Ft!="number")throw new TypeError('"size" argument must be of type number');if(Ft<0)throw new RangeError('The value "'+Ft+'" is invalid for option "size"')}function ct(Ft,yt,St){return st(Ft),Ft<=0?At(Ft):yt!==void 0?typeof St=="string"?At(Ft).fill(yt,St):At(Ft).fill(yt):At(Ft)}at.alloc=function(Ft,yt,St){return ct(Ft,yt,St)};function ut(Ft){return st(Ft),At(Ft<0?0:Qt(Ft)|0)}at.allocUnsafe=function(Ft){return ut(Ft)},at.allocUnsafeSlow=function(Ft){return ut(Ft)};function gt(Ft,yt){if((typeof yt!="string"||yt==="")&&(yt="utf8"),!at.isEncoding(yt))throw new TypeError("Unknown encoding: "+yt);const St=mt(Ft,yt)|0;let Wt=At(St);const or=Wt.write(Ft,yt);return or!==St&&(Wt=Wt.slice(0,or)),Wt}function dt(Ft){const yt=Ft.length<0?0:Qt(Ft.length)|0,St=At(yt);for(let Wt=0;Wt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return Ft|0}function pt(Ft){return+Ft!=Ft&&(Ft=0),at.alloc(+Ft)}at.isBuffer=function(yt){return yt!=null&&yt._isBuffer===!0&&yt!==at.prototype},at.compare=function(yt,St){if(er(yt,Uint8Array)&&(yt=at.from(yt,yt.offset,yt.byteLength)),er(St,Uint8Array)&&(St=at.from(St,St.offset,St.byteLength)),!at.isBuffer(yt)||!at.isBuffer(St))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(yt===St)return 0;let Wt=yt.length,or=St.length;for(let Br=0,gr=Math.min(Wt,or);Bror.length?(at.isBuffer(gr)||(gr=at.from(gr)),gr.copy(or,Br)):Uint8Array.prototype.set.call(or,gr,Br);else if(at.isBuffer(gr))gr.copy(or,Br);else throw new TypeError('"list" argument must be an Array of Buffers');Br+=gr.length}return or};function mt(Ft,yt){if(at.isBuffer(Ft))return Ft.length;if(ArrayBuffer.isView(Ft)||er(Ft,ArrayBuffer))return Ft.byteLength;if(typeof Ft!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ft);const St=Ft.length,Wt=arguments.length>2&&arguments[2]===!0;if(!Wt&&St===0)return 0;let or=!1;for(;;)switch(yt){case"ascii":case"latin1":case"binary":return St;case"utf8":case"utf-8":return lt(Ft).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St*2;case"hex":return St>>>1;case"base64":return _t(Ft).length;default:if(or)return Wt?-1:lt(Ft).length;yt=(""+yt).toLowerCase(),or=!0}}at.byteLength=mt;function $t(Ft,yt,St){let Wt=!1;if((yt===void 0||yt<0)&&(yt=0),yt>this.length||((St===void 0||St>this.length)&&(St=this.length),St<=0)||(St>>>=0,yt>>>=0,St<=yt))return"";for(Ft||(Ft="utf8");;)switch(Ft){case"hex":return Ot(this,yt,St);case"utf8":case"utf-8":return Nt(this,yt,St);case"ascii":return nr(this,yt,St);case"latin1":case"binary":return Xt(this,yt,St);case"base64":return vt(this,yt,St);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,yt,St);default:if(Wt)throw new TypeError("Unknown encoding: "+Ft);Ft=(Ft+"").toLowerCase(),Wt=!0}}at.prototype._isBuffer=!0;function Tt(Ft,yt,St){const Wt=Ft[yt];Ft[yt]=Ft[St],Ft[St]=Wt}at.prototype.swap16=function(){const yt=this.length;if(yt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let St=0;StSt&&(yt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(yt,St,Wt,or,Br){if(er(yt,Uint8Array)&&(yt=at.from(yt,yt.offset,yt.byteLength)),!at.isBuffer(yt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof yt);if(St===void 0&&(St=0),Wt===void 0&&(Wt=yt?yt.length:0),or===void 0&&(or=0),Br===void 0&&(Br=this.length),St<0||Wt>yt.length||or<0||Br>this.length)throw new RangeError("out of range index");if(or>=Br&&St>=Wt)return 0;if(or>=Br)return-1;if(St>=Wt)return 1;if(St>>>=0,Wt>>>=0,or>>>=0,Br>>>=0,this===yt)return 0;let gr=Br-or,Lr=Wt-St;const cn=Math.min(gr,Lr),Pr=this.slice(or,Br),Tr=yt.slice(St,Wt);for(let Bn=0;Bn2147483647?St=2147483647:St<-2147483648&&(St=-2147483648),St=+St,Er(St)&&(St=or?0:Ft.length-1),St<0&&(St=Ft.length+St),St>=Ft.length){if(or)return-1;St=Ft.length-1}else if(St<0)if(or)St=0;else return-1;if(typeof yt=="string"&&(yt=at.from(yt,Wt)),at.isBuffer(yt))return yt.length===0?-1:Pt(Ft,yt,St,Wt,or);if(typeof yt=="number")return yt=yt&255,typeof Uint8Array.prototype.indexOf=="function"?or?Uint8Array.prototype.indexOf.call(Ft,yt,St):Uint8Array.prototype.lastIndexOf.call(Ft,yt,St):Pt(Ft,[yt],St,Wt,or);throw new TypeError("val must be string, number or Buffer")}function Pt(Ft,yt,St,Wt,or){let Br=1,gr=Ft.length,Lr=yt.length;if(Wt!==void 0&&(Wt=String(Wt).toLowerCase(),Wt==="ucs2"||Wt==="ucs-2"||Wt==="utf16le"||Wt==="utf-16le")){if(Ft.length<2||yt.length<2)return-1;Br=2,gr/=2,Lr/=2,St/=2}function cn(Tr,Bn){return Br===1?Tr[Bn]:Tr.readUInt16BE(Bn*Br)}let Pr;if(or){let Tr=-1;for(Pr=St;Prgr&&(St=gr-Lr),Pr=St;Pr>=0;Pr--){let Tr=!0;for(let Bn=0;Bnor&&(Wt=or)):Wt=or;const Br=yt.length;Wt>Br/2&&(Wt=Br/2);let gr;for(gr=0;gr>>0,isFinite(Wt)?(Wt=Wt>>>0,or===void 0&&(or="utf8")):(or=Wt,Wt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Br=this.length-St;if((Wt===void 0||Wt>Br)&&(Wt=Br),yt.length>0&&(Wt<0||St<0)||St>this.length)throw new RangeError("Attempt to write outside buffer bounds");or||(or="utf8");let gr=!1;for(;;)switch(or){case"hex":return Kt(this,yt,St,Wt);case"utf8":case"utf-8":return zt(this,yt,St,Wt);case"ascii":case"latin1":case"binary":return Yt(this,yt,St,Wt);case"base64":return Mt(this,yt,St,Wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,yt,St,Wt);default:if(gr)throw new TypeError("Unknown encoding: "+or);or=(""+or).toLowerCase(),gr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(Ft,yt,St){return yt===0&&St===Ft.length?et.fromByteArray(Ft):et.fromByteArray(Ft.slice(yt,St))}function Nt(Ft,yt,St){St=Math.min(Ft.length,St);const Wt=[];let or=yt;for(;or239?4:Br>223?3:Br>191?2:1;if(or+Lr<=St){let cn,Pr,Tr,Bn;switch(Lr){case 1:Br<128&&(gr=Br);break;case 2:cn=Ft[or+1],(cn&192)===128&&(Bn=(Br&31)<<6|cn&63,Bn>127&&(gr=Bn));break;case 3:cn=Ft[or+1],Pr=Ft[or+2],(cn&192)===128&&(Pr&192)===128&&(Bn=(Br&15)<<12|(cn&63)<<6|Pr&63,Bn>2047&&(Bn<55296||Bn>57343)&&(gr=Bn));break;case 4:cn=Ft[or+1],Pr=Ft[or+2],Tr=Ft[or+3],(cn&192)===128&&(Pr&192)===128&&(Tr&192)===128&&(Bn=(Br&15)<<18|(cn&63)<<12|(Pr&63)<<6|Tr&63,Bn>65535&&Bn<1114112&&(gr=Bn))}}gr===null?(gr=65533,Lr=1):gr>65535&&(gr-=65536,Wt.push(gr>>>10&1023|55296),gr=56320|gr&1023),Wt.push(gr),or+=Lr}return Jt(Wt)}const Gt=4096;function Jt(Ft){const yt=Ft.length;if(yt<=Gt)return String.fromCharCode.apply(String,Ft);let St="",Wt=0;for(;WtWt)&&(St=Wt);let or="";for(let Br=yt;BrWt&&(yt=Wt),St<0?(St+=Wt,St<0&&(St=0)):St>Wt&&(St=Wt),StSt)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(yt,St,Wt){yt=yt>>>0,St=St>>>0,Wt||kt(yt,St,this.length);let or=this[yt],Br=1,gr=0;for(;++gr>>0,St=St>>>0,Wt||kt(yt,St,this.length);let or=this[yt+--St],Br=1;for(;St>0&&(Br*=256);)or+=this[yt+--St]*Br;return or},at.prototype.readUint8=at.prototype.readUInt8=function(yt,St){return yt=yt>>>0,St||kt(yt,1,this.length),this[yt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(yt,St){return yt=yt>>>0,St||kt(yt,2,this.length),this[yt]|this[yt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(yt,St){return yt=yt>>>0,St||kt(yt,2,this.length),this[yt]<<8|this[yt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),(this[yt]|this[yt+1]<<8|this[yt+2]<<16)+this[yt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]*16777216+(this[yt+1]<<16|this[yt+2]<<8|this[yt+3])},at.prototype.readBigUInt64LE=wr(function(yt){yt=yt>>>0,sr(yt,"offset");const St=this[yt],Wt=this[yt+7];(St===void 0||Wt===void 0)&&ur(yt,this.length-8);const or=St+this[++yt]*2**8+this[++yt]*2**16+this[++yt]*2**24,Br=this[++yt]+this[++yt]*2**8+this[++yt]*2**16+Wt*2**24;return BigInt(or)+(BigInt(Br)<>>0,sr(yt,"offset");const St=this[yt],Wt=this[yt+7];(St===void 0||Wt===void 0)&&ur(yt,this.length-8);const or=St*2**24+this[++yt]*2**16+this[++yt]*2**8+this[++yt],Br=this[++yt]*2**24+this[++yt]*2**16+this[++yt]*2**8+Wt;return(BigInt(or)<>>0,St=St>>>0,Wt||kt(yt,St,this.length);let or=this[yt],Br=1,gr=0;for(;++gr=Br&&(or-=Math.pow(2,8*St)),or},at.prototype.readIntBE=function(yt,St,Wt){yt=yt>>>0,St=St>>>0,Wt||kt(yt,St,this.length);let or=St,Br=1,gr=this[yt+--or];for(;or>0&&(Br*=256);)gr+=this[yt+--or]*Br;return Br*=128,gr>=Br&&(gr-=Math.pow(2,8*St)),gr},at.prototype.readInt8=function(yt,St){return yt=yt>>>0,St||kt(yt,1,this.length),this[yt]&128?(255-this[yt]+1)*-1:this[yt]},at.prototype.readInt16LE=function(yt,St){yt=yt>>>0,St||kt(yt,2,this.length);const Wt=this[yt]|this[yt+1]<<8;return Wt&32768?Wt|4294901760:Wt},at.prototype.readInt16BE=function(yt,St){yt=yt>>>0,St||kt(yt,2,this.length);const Wt=this[yt+1]|this[yt]<<8;return Wt&32768?Wt|4294901760:Wt},at.prototype.readInt32LE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]|this[yt+1]<<8|this[yt+2]<<16|this[yt+3]<<24},at.prototype.readInt32BE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]<<24|this[yt+1]<<16|this[yt+2]<<8|this[yt+3]},at.prototype.readBigInt64LE=wr(function(yt){yt=yt>>>0,sr(yt,"offset");const St=this[yt],Wt=this[yt+7];(St===void 0||Wt===void 0)&&ur(yt,this.length-8);const or=this[yt+4]+this[yt+5]*2**8+this[yt+6]*2**16+(Wt<<24);return(BigInt(or)<>>0,sr(yt,"offset");const St=this[yt],Wt=this[yt+7];(St===void 0||Wt===void 0)&&ur(yt,this.length-8);const or=(St<<24)+this[++yt]*2**16+this[++yt]*2**8+this[++yt];return(BigInt(or)<>>0,St||kt(yt,4,this.length),tt.read(this,yt,!0,23,4)},at.prototype.readFloatBE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),tt.read(this,yt,!1,23,4)},at.prototype.readDoubleLE=function(yt,St){return yt=yt>>>0,St||kt(yt,8,this.length),tt.read(this,yt,!0,52,8)},at.prototype.readDoubleBE=function(yt,St){return yt=yt>>>0,St||kt(yt,8,this.length),tt.read(this,yt,!1,52,8)};function Ar(Ft,yt,St,Wt,or,Br){if(!at.isBuffer(Ft))throw new TypeError('"buffer" argument must be a Buffer instance');if(yt>or||ytFt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(yt,St,Wt,or){if(yt=+yt,St=St>>>0,Wt=Wt>>>0,!or){const Lr=Math.pow(2,8*Wt)-1;Ar(this,yt,St,Wt,Lr,0)}let Br=1,gr=0;for(this[St]=yt&255;++gr>>0,Wt=Wt>>>0,!or){const Lr=Math.pow(2,8*Wt)-1;Ar(this,yt,St,Wt,Lr,0)}let Br=Wt-1,gr=1;for(this[St+Br]=yt&255;--Br>=0&&(gr*=256);)this[St+Br]=yt/gr&255;return St+Wt},at.prototype.writeUint8=at.prototype.writeUInt8=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,1,255,0),this[St]=yt&255,St+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,2,65535,0),this[St]=yt&255,this[St+1]=yt>>>8,St+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,2,65535,0),this[St]=yt>>>8,this[St+1]=yt&255,St+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,4,4294967295,0),this[St+3]=yt>>>24,this[St+2]=yt>>>16,this[St+1]=yt>>>8,this[St]=yt&255,St+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,4,4294967295,0),this[St]=yt>>>24,this[St+1]=yt>>>16,this[St+2]=yt>>>8,this[St+3]=yt&255,St+4};function cr(Ft,yt,St,Wt,or){rr(yt,Wt,or,Ft,St,7);let Br=Number(yt&BigInt(4294967295));Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br;let gr=Number(yt>>BigInt(32)&BigInt(4294967295));return Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,St}function Rt(Ft,yt,St,Wt,or){rr(yt,Wt,or,Ft,St,7);let Br=Number(yt&BigInt(4294967295));Ft[St+7]=Br,Br=Br>>8,Ft[St+6]=Br,Br=Br>>8,Ft[St+5]=Br,Br=Br>>8,Ft[St+4]=Br;let gr=Number(yt>>BigInt(32)&BigInt(4294967295));return Ft[St+3]=gr,gr=gr>>8,Ft[St+2]=gr,gr=gr>>8,Ft[St+1]=gr,gr=gr>>8,Ft[St]=gr,St+8}at.prototype.writeBigUInt64LE=wr(function(yt,St=0){return cr(this,yt,St,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=wr(function(yt,St=0){return Rt(this,yt,St,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(yt,St,Wt,or){if(yt=+yt,St=St>>>0,!or){const cn=Math.pow(2,8*Wt-1);Ar(this,yt,St,Wt,cn-1,-cn)}let Br=0,gr=1,Lr=0;for(this[St]=yt&255;++Br>0)-Lr&255;return St+Wt},at.prototype.writeIntBE=function(yt,St,Wt,or){if(yt=+yt,St=St>>>0,!or){const cn=Math.pow(2,8*Wt-1);Ar(this,yt,St,Wt,cn-1,-cn)}let Br=Wt-1,gr=1,Lr=0;for(this[St+Br]=yt&255;--Br>=0&&(gr*=256);)yt<0&&Lr===0&&this[St+Br+1]!==0&&(Lr=1),this[St+Br]=(yt/gr>>0)-Lr&255;return St+Wt},at.prototype.writeInt8=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,1,127,-128),yt<0&&(yt=255+yt+1),this[St]=yt&255,St+1},at.prototype.writeInt16LE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,2,32767,-32768),this[St]=yt&255,this[St+1]=yt>>>8,St+2},at.prototype.writeInt16BE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,2,32767,-32768),this[St]=yt>>>8,this[St+1]=yt&255,St+2},at.prototype.writeInt32LE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,4,2147483647,-2147483648),this[St]=yt&255,this[St+1]=yt>>>8,this[St+2]=yt>>>16,this[St+3]=yt>>>24,St+4},at.prototype.writeInt32BE=function(yt,St,Wt){return yt=+yt,St=St>>>0,Wt||Ar(this,yt,St,4,2147483647,-2147483648),yt<0&&(yt=4294967295+yt+1),this[St]=yt>>>24,this[St+1]=yt>>>16,this[St+2]=yt>>>8,this[St+3]=yt&255,St+4},at.prototype.writeBigInt64LE=wr(function(yt,St=0){return cr(this,yt,St,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=wr(function(yt,St=0){return Rt(this,yt,St,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qr(Ft,yt,St,Wt,or,Br){if(St+Wt>Ft.length)throw new RangeError("Index out of range");if(St<0)throw new RangeError("Index out of range")}function _r(Ft,yt,St,Wt,or){return yt=+yt,St=St>>>0,or||Qr(Ft,yt,St,4),tt.write(Ft,yt,St,Wt,23,4),St+4}at.prototype.writeFloatLE=function(yt,St,Wt){return _r(this,yt,St,!0,Wt)},at.prototype.writeFloatBE=function(yt,St,Wt){return _r(this,yt,St,!1,Wt)};function qr(Ft,yt,St,Wt,or){return yt=+yt,St=St>>>0,or||Qr(Ft,yt,St,8),tt.write(Ft,yt,St,Wt,52,8),St+8}at.prototype.writeDoubleLE=function(yt,St,Wt){return qr(this,yt,St,!0,Wt)},at.prototype.writeDoubleBE=function(yt,St,Wt){return qr(this,yt,St,!1,Wt)},at.prototype.copy=function(yt,St,Wt,or){if(!at.isBuffer(yt))throw new TypeError("argument should be a Buffer");if(Wt||(Wt=0),!or&&or!==0&&(or=this.length),St>=yt.length&&(St=yt.length),St||(St=0),or>0&&or=this.length)throw new RangeError("Index out of range");if(or<0)throw new RangeError("sourceEnd out of bounds");or>this.length&&(or=this.length),yt.length-St>>0,Wt=Wt===void 0?this.length:Wt>>>0,yt||(yt=0);let Br;if(typeof yt=="number")for(Br=St;Br2**32?or=jt(String(St)):typeof St=="bigint"&&(or=String(St),(St>BigInt(2)**BigInt(32)||St<-(BigInt(2)**BigInt(32)))&&(or=jt(or)),or+="n"),Wt+=` It must be ${yt}. Received ${or}`,Wt},RangeError);function jt(Ft){let yt="",St=Ft.length;const Wt=Ft[0]==="-"?1:0;for(;St>=Wt+4;St-=3)yt=`_${Ft.slice(St-3,St)}${yt}`;return`${Ft.slice(0,St)}${yt}`}function Zt(Ft,yt,St){sr(yt,"offset"),(Ft[yt]===void 0||Ft[yt+St]===void 0)&&ur(yt,Ft.length-(St+1))}function rr(Ft,yt,St,Wt,or,Br){if(Ft>St||Ft3?yt===0||yt===BigInt(0)?Lr=`>= 0${gr} and < 2${gr} ** ${(Br+1)*8}${gr}`:Lr=`>= -(2${gr} ** ${(Br+1)*8-1}${gr}) and < 2 ** ${(Br+1)*8-1}${gr}`:Lr=`>= ${yt}${gr} and <= ${St}${gr}`,new yr.ERR_OUT_OF_RANGE("value",Lr,Ft)}Zt(Wt,or,Br)}function sr(Ft,yt){if(typeof Ft!="number")throw new yr.ERR_INVALID_ARG_TYPE(yt,"number",Ft)}function ur(Ft,yt,St){throw Math.floor(Ft)!==Ft?(sr(Ft,St),new yr.ERR_OUT_OF_RANGE(St||"offset","an integer",Ft)):yt<0?new yr.ERR_BUFFER_OUT_OF_BOUNDS:new yr.ERR_OUT_OF_RANGE(St||"offset",`>= ${St?1:0} and <= ${yt}`,Ft)}const fr=/[^+/0-9A-Za-z-_]/g;function It(Ft){if(Ft=Ft.split("=")[0],Ft=Ft.trim().replace(fr,""),Ft.length<2)return"";for(;Ft.length%4!==0;)Ft=Ft+"=";return Ft}function lt(Ft,yt){yt=yt||1/0;let St;const Wt=Ft.length;let or=null;const Br=[];for(let gr=0;gr55295&&St<57344){if(!or){if(St>56319){(yt-=3)>-1&&Br.push(239,191,189);continue}else if(gr+1===Wt){(yt-=3)>-1&&Br.push(239,191,189);continue}or=St;continue}if(St<56320){(yt-=3)>-1&&Br.push(239,191,189),or=St;continue}St=(or-55296<<10|St-56320)+65536}else or&&(yt-=3)>-1&&Br.push(239,191,189);if(or=null,St<128){if((yt-=1)<0)break;Br.push(St)}else if(St<2048){if((yt-=2)<0)break;Br.push(St>>6|192,St&63|128)}else if(St<65536){if((yt-=3)<0)break;Br.push(St>>12|224,St>>6&63|128,St&63|128)}else if(St<1114112){if((yt-=4)<0)break;Br.push(St>>18|240,St>>12&63|128,St>>6&63|128,St&63|128)}else throw new Error("Invalid code point")}return Br}function ft(Ft){const yt=[];for(let St=0;St>8,or=St%256,Br.push(or),Br.push(Wt);return Br}function _t(Ft){return et.toByteArray(It(Ft))}function Lt(Ft,yt,St,Wt){let or;for(or=0;or=yt.length||or>=Ft.length);++or)yt[or+St]=Ft[or];return or}function er(Ft,yt){return Ft instanceof yt||Ft!=null&&Ft.constructor!=null&&Ft.constructor.name!=null&&Ft.constructor.name===yt.name}function Er(Ft){return Ft!==Ft}const mr=function(){const Ft="0123456789abcdef",yt=new Array(256);for(let St=0;St<16;++St){const Wt=St*16;for(let or=0;or<16;++or)yt[Wt+or]=Ft[St]+Ft[or]}return yt}();function wr(Ft){return typeof BigInt>"u"?Yr:Ft}function Yr(){throw new Error("BigInt not supported")}})(buffer$2);var ReplicaRejectCode$2;(function($){$[$.SysFatal=1]="SysFatal",$[$.SysTransient=2]="SysTransient",$[$.DestinationInvalid=3]="DestinationInvalid",$[$.CanisterReject=4]="CanisterReject",$[$.CanisterError=5]="CanisterError"})(ReplicaRejectCode$2||(ReplicaRejectCode$2={}));const alphabet$2="abcdefghijklmnopqrstuvwxyz234567",lookupTable$2=Object.create(null);for(let $=0;$>-et:tt=it<3?(et-=8,1):(et<4&&(rt+=alphabet$2[tt>>3],et+=5),0)}for(let it=0;it<$.length;)it+=nt($[it]);return rt+(et<0?alphabet$2[tt>>3]:"")}function decode$a($){let et=0,tt=0;const rt=new Uint8Array($.length*4/3|0);let nt=0;function it(At){let at=lookupTable$2[At.toLowerCase()];if(at===void 0)throw new Error(`Invalid character: ${JSON.stringify(At)}`);at<<=3,tt|=at>>>et,et+=5,et>=8&&(rt[nt++]=tt,et-=8,et>0?tt=at<<5-et&255:tt=0)}for(const At of $)it(At);return rt.slice(0,nt)}const lookUpTable$2=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function getCrc32$2($){const et=new Uint8Array($);let tt=-1;for(let rt=0;rt>>8}return(tt^-1)>>>0}var sha256$2={exports:{}};/** + */(function($){const et=base64Js,tt=ieee754$1,rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=at,$.SlowBuffer=pt,$.INSPECT_MAX_BYTES=50;const nt=2147483647;$.kMaxLength=nt,at.TYPED_ARRAY_SUPPORT=it(),!at.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function it(){try{const Ft=new Uint8Array(1),yt={foo:function(){return 42}};return Object.setPrototypeOf(yt,Uint8Array.prototype),Object.setPrototypeOf(Ft,yt),Ft.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function At(Ft){if(Ft>nt)throw new RangeError('The value "'+Ft+'" is invalid for option "size"');const yt=new Uint8Array(Ft);return Object.setPrototypeOf(yt,at.prototype),yt}function at(Ft,yt,St){if(typeof Ft=="number"){if(typeof yt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(Ft)}return ot(Ft,yt,St)}at.poolSize=8192;function ot(Ft,yt,St){if(typeof Ft=="string")return gt(Ft,yt);if(ArrayBuffer.isView(Ft))return ht(Ft);if(Ft==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ft);if(Zt(Ft,ArrayBuffer)||Ft&&Zt(Ft.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Zt(Ft,SharedArrayBuffer)||Ft&&Zt(Ft.buffer,SharedArrayBuffer)))return Et(Ft,yt,St);if(typeof Ft=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const zt=Ft.valueOf&&Ft.valueOf();if(zt!=null&&zt!==Ft)return at.from(zt,yt,St);const or=wt(Ft);if(or)return or;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Ft[Symbol.toPrimitive]=="function")return at.from(Ft[Symbol.toPrimitive]("string"),yt,St);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Ft)}at.from=function(Ft,yt,St){return ot(Ft,yt,St)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(Ft){if(typeof Ft!="number")throw new TypeError('"size" argument must be of type number');if(Ft<0)throw new RangeError('The value "'+Ft+'" is invalid for option "size"')}function ct(Ft,yt,St){return st(Ft),Ft<=0?At(Ft):yt!==void 0?typeof St=="string"?At(Ft).fill(yt,St):At(Ft).fill(yt):At(Ft)}at.alloc=function(Ft,yt,St){return ct(Ft,yt,St)};function ut(Ft){return st(Ft),At(Ft<0?0:mt(Ft)|0)}at.allocUnsafe=function(Ft){return ut(Ft)},at.allocUnsafeSlow=function(Ft){return ut(Ft)};function gt(Ft,yt){if((typeof yt!="string"||yt==="")&&(yt="utf8"),!at.isEncoding(yt))throw new TypeError("Unknown encoding: "+yt);const St=Qt(Ft,yt)|0;let zt=At(St);const or=zt.write(Ft,yt);return or!==St&&(zt=zt.slice(0,or)),zt}function dt(Ft){const yt=Ft.length<0?0:mt(Ft.length)|0,St=At(yt);for(let zt=0;zt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return Ft|0}function pt(Ft){return+Ft!=Ft&&(Ft=0),at.alloc(+Ft)}at.isBuffer=function(yt){return yt!=null&&yt._isBuffer===!0&&yt!==at.prototype},at.compare=function(yt,St){if(Zt(yt,Uint8Array)&&(yt=at.from(yt,yt.offset,yt.byteLength)),Zt(St,Uint8Array)&&(St=at.from(St,St.offset,St.byteLength)),!at.isBuffer(yt)||!at.isBuffer(St))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(yt===St)return 0;let zt=yt.length,or=St.length;for(let Br=0,gr=Math.min(zt,or);Bror.length?(at.isBuffer(gr)||(gr=at.from(gr)),gr.copy(or,Br)):Uint8Array.prototype.set.call(or,gr,Br);else if(at.isBuffer(gr))gr.copy(or,Br);else throw new TypeError('"list" argument must be an Array of Buffers');Br+=gr.length}return or};function Qt(Ft,yt){if(at.isBuffer(Ft))return Ft.length;if(ArrayBuffer.isView(Ft)||Zt(Ft,ArrayBuffer))return Ft.byteLength;if(typeof Ft!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Ft);const St=Ft.length,zt=arguments.length>2&&arguments[2]===!0;if(!zt&&St===0)return 0;let or=!1;for(;;)switch(yt){case"ascii":case"latin1":case"binary":return St;case"utf8":case"utf-8":return lt(Ft).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return St*2;case"hex":return St>>>1;case"base64":return _t(Ft).length;default:if(or)return zt?-1:lt(Ft).length;yt=(""+yt).toLowerCase(),or=!0}}at.byteLength=Qt;function $t(Ft,yt,St){let zt=!1;if((yt===void 0||yt<0)&&(yt=0),yt>this.length||((St===void 0||St>this.length)&&(St=this.length),St<=0)||(St>>>=0,yt>>>=0,St<=yt))return"";for(Ft||(Ft="utf8");;)switch(Ft){case"hex":return Ot(this,yt,St);case"utf8":case"utf-8":return Nt(this,yt,St);case"ascii":return rr(this,yt,St);case"latin1":case"binary":return Wt(this,yt,St);case"base64":return vt(this,yt,St);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,yt,St);default:if(zt)throw new TypeError("Unknown encoding: "+Ft);Ft=(Ft+"").toLowerCase(),zt=!0}}at.prototype._isBuffer=!0;function Gt(Ft,yt,St){const zt=Ft[yt];Ft[yt]=Ft[St],Ft[St]=zt}at.prototype.swap16=function(){const yt=this.length;if(yt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let St=0;StSt&&(yt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(yt,St,zt,or,Br){if(Zt(yt,Uint8Array)&&(yt=at.from(yt,yt.offset,yt.byteLength)),!at.isBuffer(yt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof yt);if(St===void 0&&(St=0),zt===void 0&&(zt=yt?yt.length:0),or===void 0&&(or=0),Br===void 0&&(Br=this.length),St<0||zt>yt.length||or<0||Br>this.length)throw new RangeError("out of range index");if(or>=Br&&St>=zt)return 0;if(or>=Br)return-1;if(St>=zt)return 1;if(St>>>=0,zt>>>=0,or>>>=0,Br>>>=0,this===yt)return 0;let gr=Br-or,Lr=zt-St;const cn=Math.min(gr,Lr),Pr=this.slice(or,Br),Tr=yt.slice(St,zt);for(let Bn=0;Bn2147483647?St=2147483647:St<-2147483648&&(St=-2147483648),St=+St,Er(St)&&(St=or?0:Ft.length-1),St<0&&(St=Ft.length+St),St>=Ft.length){if(or)return-1;St=Ft.length-1}else if(St<0)if(or)St=0;else return-1;if(typeof yt=="string"&&(yt=at.from(yt,zt)),at.isBuffer(yt))return yt.length===0?-1:Pt(Ft,yt,St,zt,or);if(typeof yt=="number")return yt=yt&255,typeof Uint8Array.prototype.indexOf=="function"?or?Uint8Array.prototype.indexOf.call(Ft,yt,St):Uint8Array.prototype.lastIndexOf.call(Ft,yt,St):Pt(Ft,[yt],St,zt,or);throw new TypeError("val must be string, number or Buffer")}function Pt(Ft,yt,St,zt,or){let Br=1,gr=Ft.length,Lr=yt.length;if(zt!==void 0&&(zt=String(zt).toLowerCase(),zt==="ucs2"||zt==="ucs-2"||zt==="utf16le"||zt==="utf-16le")){if(Ft.length<2||yt.length<2)return-1;Br=2,gr/=2,Lr/=2,St/=2}function cn(Tr,Bn){return Br===1?Tr[Bn]:Tr.readUInt16BE(Bn*Br)}let Pr;if(or){let Tr=-1;for(Pr=St;Prgr&&(St=gr-Lr),Pr=St;Pr>=0;Pr--){let Tr=!0;for(let Bn=0;Bnor&&(zt=or)):zt=or;const Br=yt.length;zt>Br/2&&(zt=Br/2);let gr;for(gr=0;gr>>0,isFinite(zt)?(zt=zt>>>0,or===void 0&&(or="utf8")):(or=zt,zt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Br=this.length-St;if((zt===void 0||zt>Br)&&(zt=Br),yt.length>0&&(zt<0||St<0)||St>this.length)throw new RangeError("Attempt to write outside buffer bounds");or||(or="utf8");let gr=!1;for(;;)switch(or){case"hex":return Kt(this,yt,St,zt);case"utf8":case"utf-8":return ir(this,yt,St,zt);case"ascii":case"latin1":case"binary":return jt(this,yt,St,zt);case"base64":return Mt(this,yt,St,zt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,yt,St,zt);default:if(gr)throw new TypeError("Unknown encoding: "+or);or=(""+or).toLowerCase(),gr=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(Ft,yt,St){return yt===0&&St===Ft.length?et.fromByteArray(Ft):et.fromByteArray(Ft.slice(yt,St))}function Nt(Ft,yt,St){St=Math.min(Ft.length,St);const zt=[];let or=yt;for(;or239?4:Br>223?3:Br>191?2:1;if(or+Lr<=St){let cn,Pr,Tr,Bn;switch(Lr){case 1:Br<128&&(gr=Br);break;case 2:cn=Ft[or+1],(cn&192)===128&&(Bn=(Br&31)<<6|cn&63,Bn>127&&(gr=Bn));break;case 3:cn=Ft[or+1],Pr=Ft[or+2],(cn&192)===128&&(Pr&192)===128&&(Bn=(Br&15)<<12|(cn&63)<<6|Pr&63,Bn>2047&&(Bn<55296||Bn>57343)&&(gr=Bn));break;case 4:cn=Ft[or+1],Pr=Ft[or+2],Tr=Ft[or+3],(cn&192)===128&&(Pr&192)===128&&(Tr&192)===128&&(Bn=(Br&15)<<18|(cn&63)<<12|(Pr&63)<<6|Tr&63,Bn>65535&&Bn<1114112&&(gr=Bn))}}gr===null?(gr=65533,Lr=1):gr>65535&&(gr-=65536,zt.push(gr>>>10&1023|55296),gr=56320|gr&1023),zt.push(gr),or+=Lr}return Jt(zt)}const Ut=4096;function Jt(Ft){const yt=Ft.length;if(yt<=Ut)return String.fromCharCode.apply(String,Ft);let St="",zt=0;for(;ztzt)&&(St=zt);let or="";for(let Br=yt;Brzt&&(yt=zt),St<0?(St+=zt,St<0&&(St=0)):St>zt&&(St=zt),StSt)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(yt,St,zt){yt=yt>>>0,St=St>>>0,zt||kt(yt,St,this.length);let or=this[yt],Br=1,gr=0;for(;++gr>>0,St=St>>>0,zt||kt(yt,St,this.length);let or=this[yt+--St],Br=1;for(;St>0&&(Br*=256);)or+=this[yt+--St]*Br;return or},at.prototype.readUint8=at.prototype.readUInt8=function(yt,St){return yt=yt>>>0,St||kt(yt,1,this.length),this[yt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(yt,St){return yt=yt>>>0,St||kt(yt,2,this.length),this[yt]|this[yt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(yt,St){return yt=yt>>>0,St||kt(yt,2,this.length),this[yt]<<8|this[yt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),(this[yt]|this[yt+1]<<8|this[yt+2]<<16)+this[yt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]*16777216+(this[yt+1]<<16|this[yt+2]<<8|this[yt+3])},at.prototype.readBigUInt64LE=wr(function(yt){yt=yt>>>0,sr(yt,"offset");const St=this[yt],zt=this[yt+7];(St===void 0||zt===void 0)&&ur(yt,this.length-8);const or=St+this[++yt]*2**8+this[++yt]*2**16+this[++yt]*2**24,Br=this[++yt]+this[++yt]*2**8+this[++yt]*2**16+zt*2**24;return BigInt(or)+(BigInt(Br)<>>0,sr(yt,"offset");const St=this[yt],zt=this[yt+7];(St===void 0||zt===void 0)&&ur(yt,this.length-8);const or=St*2**24+this[++yt]*2**16+this[++yt]*2**8+this[++yt],Br=this[++yt]*2**24+this[++yt]*2**16+this[++yt]*2**8+zt;return(BigInt(or)<>>0,St=St>>>0,zt||kt(yt,St,this.length);let or=this[yt],Br=1,gr=0;for(;++gr=Br&&(or-=Math.pow(2,8*St)),or},at.prototype.readIntBE=function(yt,St,zt){yt=yt>>>0,St=St>>>0,zt||kt(yt,St,this.length);let or=St,Br=1,gr=this[yt+--or];for(;or>0&&(Br*=256);)gr+=this[yt+--or]*Br;return Br*=128,gr>=Br&&(gr-=Math.pow(2,8*St)),gr},at.prototype.readInt8=function(yt,St){return yt=yt>>>0,St||kt(yt,1,this.length),this[yt]&128?(255-this[yt]+1)*-1:this[yt]},at.prototype.readInt16LE=function(yt,St){yt=yt>>>0,St||kt(yt,2,this.length);const zt=this[yt]|this[yt+1]<<8;return zt&32768?zt|4294901760:zt},at.prototype.readInt16BE=function(yt,St){yt=yt>>>0,St||kt(yt,2,this.length);const zt=this[yt+1]|this[yt]<<8;return zt&32768?zt|4294901760:zt},at.prototype.readInt32LE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]|this[yt+1]<<8|this[yt+2]<<16|this[yt+3]<<24},at.prototype.readInt32BE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),this[yt]<<24|this[yt+1]<<16|this[yt+2]<<8|this[yt+3]},at.prototype.readBigInt64LE=wr(function(yt){yt=yt>>>0,sr(yt,"offset");const St=this[yt],zt=this[yt+7];(St===void 0||zt===void 0)&&ur(yt,this.length-8);const or=this[yt+4]+this[yt+5]*2**8+this[yt+6]*2**16+(zt<<24);return(BigInt(or)<>>0,sr(yt,"offset");const St=this[yt],zt=this[yt+7];(St===void 0||zt===void 0)&&ur(yt,this.length-8);const or=(St<<24)+this[++yt]*2**16+this[++yt]*2**8+this[++yt];return(BigInt(or)<>>0,St||kt(yt,4,this.length),tt.read(this,yt,!0,23,4)},at.prototype.readFloatBE=function(yt,St){return yt=yt>>>0,St||kt(yt,4,this.length),tt.read(this,yt,!1,23,4)},at.prototype.readDoubleLE=function(yt,St){return yt=yt>>>0,St||kt(yt,8,this.length),tt.read(this,yt,!0,52,8)},at.prototype.readDoubleBE=function(yt,St){return yt=yt>>>0,St||kt(yt,8,this.length),tt.read(this,yt,!1,52,8)};function Ar(Ft,yt,St,zt,or,Br){if(!at.isBuffer(Ft))throw new TypeError('"buffer" argument must be a Buffer instance');if(yt>or||ytFt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(yt,St,zt,or){if(yt=+yt,St=St>>>0,zt=zt>>>0,!or){const Lr=Math.pow(2,8*zt)-1;Ar(this,yt,St,zt,Lr,0)}let Br=1,gr=0;for(this[St]=yt&255;++gr>>0,zt=zt>>>0,!or){const Lr=Math.pow(2,8*zt)-1;Ar(this,yt,St,zt,Lr,0)}let Br=zt-1,gr=1;for(this[St+Br]=yt&255;--Br>=0&&(gr*=256);)this[St+Br]=yt/gr&255;return St+zt},at.prototype.writeUint8=at.prototype.writeUInt8=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,1,255,0),this[St]=yt&255,St+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,2,65535,0),this[St]=yt&255,this[St+1]=yt>>>8,St+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,2,65535,0),this[St]=yt>>>8,this[St+1]=yt&255,St+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,4,4294967295,0),this[St+3]=yt>>>24,this[St+2]=yt>>>16,this[St+1]=yt>>>8,this[St]=yt&255,St+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,4,4294967295,0),this[St]=yt>>>24,this[St+1]=yt>>>16,this[St+2]=yt>>>8,this[St+3]=yt&255,St+4};function cr(Ft,yt,St,zt,or){tr(yt,zt,or,Ft,St,7);let Br=Number(yt&BigInt(4294967295));Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br,Br=Br>>8,Ft[St++]=Br;let gr=Number(yt>>BigInt(32)&BigInt(4294967295));return Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,gr=gr>>8,Ft[St++]=gr,St}function Rt(Ft,yt,St,zt,or){tr(yt,zt,or,Ft,St,7);let Br=Number(yt&BigInt(4294967295));Ft[St+7]=Br,Br=Br>>8,Ft[St+6]=Br,Br=Br>>8,Ft[St+5]=Br,Br=Br>>8,Ft[St+4]=Br;let gr=Number(yt>>BigInt(32)&BigInt(4294967295));return Ft[St+3]=gr,gr=gr>>8,Ft[St+2]=gr,gr=gr>>8,Ft[St+1]=gr,gr=gr>>8,Ft[St]=gr,St+8}at.prototype.writeBigUInt64LE=wr(function(yt,St=0){return cr(this,yt,St,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeBigUInt64BE=wr(function(yt,St=0){return Rt(this,yt,St,BigInt(0),BigInt("0xffffffffffffffff"))}),at.prototype.writeIntLE=function(yt,St,zt,or){if(yt=+yt,St=St>>>0,!or){const cn=Math.pow(2,8*zt-1);Ar(this,yt,St,zt,cn-1,-cn)}let Br=0,gr=1,Lr=0;for(this[St]=yt&255;++Br>0)-Lr&255;return St+zt},at.prototype.writeIntBE=function(yt,St,zt,or){if(yt=+yt,St=St>>>0,!or){const cn=Math.pow(2,8*zt-1);Ar(this,yt,St,zt,cn-1,-cn)}let Br=zt-1,gr=1,Lr=0;for(this[St+Br]=yt&255;--Br>=0&&(gr*=256);)yt<0&&Lr===0&&this[St+Br+1]!==0&&(Lr=1),this[St+Br]=(yt/gr>>0)-Lr&255;return St+zt},at.prototype.writeInt8=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,1,127,-128),yt<0&&(yt=255+yt+1),this[St]=yt&255,St+1},at.prototype.writeInt16LE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,2,32767,-32768),this[St]=yt&255,this[St+1]=yt>>>8,St+2},at.prototype.writeInt16BE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,2,32767,-32768),this[St]=yt>>>8,this[St+1]=yt&255,St+2},at.prototype.writeInt32LE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,4,2147483647,-2147483648),this[St]=yt&255,this[St+1]=yt>>>8,this[St+2]=yt>>>16,this[St+3]=yt>>>24,St+4},at.prototype.writeInt32BE=function(yt,St,zt){return yt=+yt,St=St>>>0,zt||Ar(this,yt,St,4,2147483647,-2147483648),yt<0&&(yt=4294967295+yt+1),this[St]=yt>>>24,this[St+1]=yt>>>16,this[St+2]=yt>>>8,this[St+3]=yt&255,St+4},at.prototype.writeBigInt64LE=wr(function(yt,St=0){return cr(this,yt,St,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),at.prototype.writeBigInt64BE=wr(function(yt,St=0){return Rt(this,yt,St,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Qr(Ft,yt,St,zt,or,Br){if(St+zt>Ft.length)throw new RangeError("Index out of range");if(St<0)throw new RangeError("Index out of range")}function _r(Ft,yt,St,zt,or){return yt=+yt,St=St>>>0,or||Qr(Ft,yt,St,4),tt.write(Ft,yt,St,zt,23,4),St+4}at.prototype.writeFloatLE=function(yt,St,zt){return _r(this,yt,St,!0,zt)},at.prototype.writeFloatBE=function(yt,St,zt){return _r(this,yt,St,!1,zt)};function qr(Ft,yt,St,zt,or){return yt=+yt,St=St>>>0,or||Qr(Ft,yt,St,8),tt.write(Ft,yt,St,zt,52,8),St+8}at.prototype.writeDoubleLE=function(yt,St,zt){return qr(this,yt,St,!0,zt)},at.prototype.writeDoubleBE=function(yt,St,zt){return qr(this,yt,St,!1,zt)},at.prototype.copy=function(yt,St,zt,or){if(!at.isBuffer(yt))throw new TypeError("argument should be a Buffer");if(zt||(zt=0),!or&&or!==0&&(or=this.length),St>=yt.length&&(St=yt.length),St||(St=0),or>0&&or=this.length)throw new RangeError("Index out of range");if(or<0)throw new RangeError("sourceEnd out of bounds");or>this.length&&(or=this.length),yt.length-St>>0,zt=zt===void 0?this.length:zt>>>0,yt||(yt=0);let Br;if(typeof yt=="number")for(Br=St;Br2**32?or=Yt(String(St)):typeof St=="bigint"&&(or=String(St),(St>BigInt(2)**BigInt(32)||St<-(BigInt(2)**BigInt(32)))&&(or=Yt(or)),or+="n"),zt+=` It must be ${yt}. Received ${or}`,zt},RangeError);function Yt(Ft){let yt="",St=Ft.length;const zt=Ft[0]==="-"?1:0;for(;St>=zt+4;St-=3)yt=`_${Ft.slice(St-3,St)}${yt}`;return`${Ft.slice(0,St)}${yt}`}function Xt(Ft,yt,St){sr(yt,"offset"),(Ft[yt]===void 0||Ft[yt+St]===void 0)&&ur(yt,Ft.length-(St+1))}function tr(Ft,yt,St,zt,or,Br){if(Ft>St||Ft3?yt===0||yt===BigInt(0)?Lr=`>= 0${gr} and < 2${gr} ** ${(Br+1)*8}${gr}`:Lr=`>= -(2${gr} ** ${(Br+1)*8-1}${gr}) and < 2 ** ${(Br+1)*8-1}${gr}`:Lr=`>= ${yt}${gr} and <= ${St}${gr}`,new yr.ERR_OUT_OF_RANGE("value",Lr,Ft)}Xt(zt,or,Br)}function sr(Ft,yt){if(typeof Ft!="number")throw new yr.ERR_INVALID_ARG_TYPE(yt,"number",Ft)}function ur(Ft,yt,St){throw Math.floor(Ft)!==Ft?(sr(Ft,St),new yr.ERR_OUT_OF_RANGE(St||"offset","an integer",Ft)):yt<0?new yr.ERR_BUFFER_OUT_OF_BOUNDS:new yr.ERR_OUT_OF_RANGE(St||"offset",`>= ${St?1:0} and <= ${yt}`,Ft)}const fr=/[^+/0-9A-Za-z-_]/g;function It(Ft){if(Ft=Ft.split("=")[0],Ft=Ft.trim().replace(fr,""),Ft.length<2)return"";for(;Ft.length%4!==0;)Ft=Ft+"=";return Ft}function lt(Ft,yt){yt=yt||1/0;let St;const zt=Ft.length;let or=null;const Br=[];for(let gr=0;gr55295&&St<57344){if(!or){if(St>56319){(yt-=3)>-1&&Br.push(239,191,189);continue}else if(gr+1===zt){(yt-=3)>-1&&Br.push(239,191,189);continue}or=St;continue}if(St<56320){(yt-=3)>-1&&Br.push(239,191,189),or=St;continue}St=(or-55296<<10|St-56320)+65536}else or&&(yt-=3)>-1&&Br.push(239,191,189);if(or=null,St<128){if((yt-=1)<0)break;Br.push(St)}else if(St<2048){if((yt-=2)<0)break;Br.push(St>>6|192,St&63|128)}else if(St<65536){if((yt-=3)<0)break;Br.push(St>>12|224,St>>6&63|128,St&63|128)}else if(St<1114112){if((yt-=4)<0)break;Br.push(St>>18|240,St>>12&63|128,St>>6&63|128,St&63|128)}else throw new Error("Invalid code point")}return Br}function ft(Ft){const yt=[];for(let St=0;St>8,or=St%256,Br.push(or),Br.push(zt);return Br}function _t(Ft){return et.toByteArray(It(Ft))}function Lt(Ft,yt,St,zt){let or;for(or=0;or=yt.length||or>=Ft.length);++or)yt[or+St]=Ft[or];return or}function Zt(Ft,yt){return Ft instanceof yt||Ft!=null&&Ft.constructor!=null&&Ft.constructor.name!=null&&Ft.constructor.name===yt.name}function Er(Ft){return Ft!==Ft}const mr=function(){const Ft="0123456789abcdef",yt=new Array(256);for(let St=0;St<16;++St){const zt=St*16;for(let or=0;or<16;++or)yt[zt+or]=Ft[St]+Ft[or]}return yt}();function wr(Ft){return typeof BigInt>"u"?Yr:Ft}function Yr(){throw new Error("BigInt not supported")}})(buffer$2);var ReplicaRejectCode$2;(function($){$[$.SysFatal=1]="SysFatal",$[$.SysTransient=2]="SysTransient",$[$.DestinationInvalid=3]="DestinationInvalid",$[$.CanisterReject=4]="CanisterReject",$[$.CanisterError=5]="CanisterError"})(ReplicaRejectCode$2||(ReplicaRejectCode$2={}));const alphabet$2="abcdefghijklmnopqrstuvwxyz234567",lookupTable$2=Object.create(null);for(let $=0;$>-et:tt=it<3?(et-=8,1):(et<4&&(rt+=alphabet$2[tt>>3],et+=5),0)}for(let it=0;it<$.length;)it+=nt($[it]);return rt+(et<0?alphabet$2[tt>>3]:"")}function decode$a($){let et=0,tt=0;const rt=new Uint8Array($.length*4/3|0);let nt=0;function it(At){let at=lookupTable$2[At.toLowerCase()];if(at===void 0)throw new Error(`Invalid character: ${JSON.stringify(At)}`);at<<=3,tt|=at>>>et,et+=5,et>=8&&(rt[nt++]=tt,et-=8,et>0?tt=at<<5-et&255:tt=0)}for(const At of $)it(At);return rt.slice(0,nt)}const lookUpTable$2=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function getCrc32$2($){const et=new Uint8Array($);let tt=-1;for(let rt=0;rt>>8}return(tt^-1)>>>0}var sha256$2={exports:{}};/** * [js-sha256]{@link https://github.com/emn178/js-sha256} * * @version 0.9.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2014-2017 * @license MIT - */(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var createOutputMethod=function($,et){return function(tt){return new Sha256(et,!0).update(tt)[$]()}},createMethod=function($){var et=createOutputMethod("hex",$);NODE_JS&&(et=nodeWrap(et,$)),et.create=function(){return new Sha256($)},et.update=function(nt){return et.create().update(nt)};for(var tt=0;tt>2]|=$[nt]<>2]|=rt<>2]|=(192|rt>>6)<>2]|=(128|rt&63)<=57344?(at[it>>2]|=(224|rt>>12)<>2]|=(128|rt>>6&63)<>2]|=(128|rt&63)<>2]|=(240|rt>>18)<>2]|=(128|rt>>12&63)<>2]|=(128|rt>>6&63)<>2]|=(128|rt&63)<=64?(this.block=at[16],this.start=it-64,this.hash(),this.hashed=!0):this.start=it}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,et=this.lastByteIndex;$[16]=this.block,$[et>>2]|=EXTRA[et&3],this.block=$[16],et>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=this.blocks,st,ct,ut,gt,dt,ht,Et,wt,Qt,pt,mt;for(st=16;st<64;++st)dt=ot[st-15],ct=(dt>>>7|dt<<25)^(dt>>>18|dt<<14)^dt>>>3,dt=ot[st-2],ut=(dt>>>17|dt<<15)^(dt>>>19|dt<<13)^dt>>>10,ot[st]=ot[st-16]+ct+ot[st-7]+ut<<0;for(mt=et&tt,st=0;st<64;st+=4)this.first?(this.is224?(wt=300032,dt=ot[0]-1413257819,at=dt-150054599<<0,rt=dt+24177077<<0):(wt=704751109,dt=ot[0]-210244248,at=dt-1521486534<<0,rt=dt+143694565<<0),this.first=!1):(ct=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),ut=(nt>>>6|nt<<26)^(nt>>>11|nt<<21)^(nt>>>25|nt<<7),wt=$&et,gt=wt^$&tt^mt,Et=nt&it^~nt&At,dt=at+ut+Et+K[st]+ot[st],ht=ct+gt,at=rt+dt<<0,rt=dt+ht<<0),ct=(rt>>>2|rt<<30)^(rt>>>13|rt<<19)^(rt>>>22|rt<<10),ut=(at>>>6|at<<26)^(at>>>11|at<<21)^(at>>>25|at<<7),Qt=rt&$,gt=Qt^rt&et^wt,Et=at&nt^~at&it,dt=At+ut+Et+K[st+1]+ot[st+1],ht=ct+gt,At=tt+dt<<0,tt=dt+ht<<0,ct=(tt>>>2|tt<<30)^(tt>>>13|tt<<19)^(tt>>>22|tt<<10),ut=(At>>>6|At<<26)^(At>>>11|At<<21)^(At>>>25|At<<7),pt=tt&rt,gt=pt^tt&$^Qt,Et=At&at^~At&nt,dt=it+ut+Et+K[st+2]+ot[st+2],ht=ct+gt,it=et+dt<<0,et=dt+ht<<0,ct=(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10),ut=(it>>>6|it<<26)^(it>>>11|it<<21)^(it>>>25|it<<7),mt=et&tt,gt=mt^et&rt^pt,Et=it&At^~it&at,dt=nt+ut+Et+K[st+3]+ot[st+3],ht=ct+gt,nt=$+dt<<0,$=dt+ht<<0;this.h0=this.h0+$<<0,this.h1=this.h1+et<<0,this.h2=this.h2+tt<<0,this.h3=this.h3+rt<<0,this.h4=this.h4+nt<<0,this.h5=this.h5+it<<0,this.h6=this.h6+At<<0,this.h7=this.h7+at<<0},Sha256.prototype.hex=function(){this.finalize();var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=HEX_CHARS[$>>28&15]+HEX_CHARS[$>>24&15]+HEX_CHARS[$>>20&15]+HEX_CHARS[$>>16&15]+HEX_CHARS[$>>12&15]+HEX_CHARS[$>>8&15]+HEX_CHARS[$>>4&15]+HEX_CHARS[$&15]+HEX_CHARS[et>>28&15]+HEX_CHARS[et>>24&15]+HEX_CHARS[et>>20&15]+HEX_CHARS[et>>16&15]+HEX_CHARS[et>>12&15]+HEX_CHARS[et>>8&15]+HEX_CHARS[et>>4&15]+HEX_CHARS[et&15]+HEX_CHARS[tt>>28&15]+HEX_CHARS[tt>>24&15]+HEX_CHARS[tt>>20&15]+HEX_CHARS[tt>>16&15]+HEX_CHARS[tt>>12&15]+HEX_CHARS[tt>>8&15]+HEX_CHARS[tt>>4&15]+HEX_CHARS[tt&15]+HEX_CHARS[rt>>28&15]+HEX_CHARS[rt>>24&15]+HEX_CHARS[rt>>20&15]+HEX_CHARS[rt>>16&15]+HEX_CHARS[rt>>12&15]+HEX_CHARS[rt>>8&15]+HEX_CHARS[rt>>4&15]+HEX_CHARS[rt&15]+HEX_CHARS[nt>>28&15]+HEX_CHARS[nt>>24&15]+HEX_CHARS[nt>>20&15]+HEX_CHARS[nt>>16&15]+HEX_CHARS[nt>>12&15]+HEX_CHARS[nt>>8&15]+HEX_CHARS[nt>>4&15]+HEX_CHARS[nt&15]+HEX_CHARS[it>>28&15]+HEX_CHARS[it>>24&15]+HEX_CHARS[it>>20&15]+HEX_CHARS[it>>16&15]+HEX_CHARS[it>>12&15]+HEX_CHARS[it>>8&15]+HEX_CHARS[it>>4&15]+HEX_CHARS[it&15]+HEX_CHARS[At>>28&15]+HEX_CHARS[At>>24&15]+HEX_CHARS[At>>20&15]+HEX_CHARS[At>>16&15]+HEX_CHARS[At>>12&15]+HEX_CHARS[At>>8&15]+HEX_CHARS[At>>4&15]+HEX_CHARS[At&15];return this.is224||(ot+=HEX_CHARS[at>>28&15]+HEX_CHARS[at>>24&15]+HEX_CHARS[at>>20&15]+HEX_CHARS[at>>16&15]+HEX_CHARS[at>>12&15]+HEX_CHARS[at>>8&15]+HEX_CHARS[at>>4&15]+HEX_CHARS[at&15]),ot},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=[$>>24&255,$>>16&255,$>>8&255,$&255,et>>24&255,et>>16&255,et>>8&255,et&255,tt>>24&255,tt>>16&255,tt>>8&255,tt&255,rt>>24&255,rt>>16&255,rt>>8&255,rt&255,nt>>24&255,nt>>16&255,nt>>8&255,nt&255,it>>24&255,it>>16&255,it>>8&255,it&255,At>>24&255,At>>16&255,At>>8&255,At&255];return this.is224||ot.push(at>>24&255,at>>16&255,at>>8&255,at&255),ot},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),et=new DataView($);return et.setUint32(0,this.h0),et.setUint32(4,this.h1),et.setUint32(8,this.h2),et.setUint32(12,this.h3),et.setUint32(16,this.h4),et.setUint32(20,this.h5),et.setUint32(24,this.h6),this.is224||et.setUint32(28,this.h7),$};function HmacSha256($,et,tt){var rt,nt=typeof $;if(nt==="string"){var it=[],At=$.length,at=0,ot;for(rt=0;rt>6,it[at++]=128|ot&63):ot<55296||ot>=57344?(it[at++]=224|ot>>12,it[at++]=128|ot>>6&63,it[at++]=128|ot&63):(ot=65536+((ot&1023)<<10|$.charCodeAt(++rt)&1023),it[at++]=240|ot>>18,it[at++]=128|ot>>12&63,it[at++]=128|ot>>6&63,it[at++]=128|ot&63);$=it}else if(nt==="object"){if($===null)throw new Error(ERROR);if(ARRAY_BUFFER&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!ARRAY_BUFFER||!ArrayBuffer.isView($)))throw new Error(ERROR)}else throw new Error(ERROR);$.length>64&&($=new Sha256(et,!0).update($).array());var st=[],ct=[];for(rt=0;rt<64;++rt){var ut=$[rt]||0;st[rt]=92^ut,ct[rt]=54^ut}Sha256.call(this,et,tt),this.update(ct),this.oKeyPad=st,this.inner=!0,this.sharedMemory=tt}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224)})()})(sha256$2);var sha256Exports=sha256$2.exports;function sha224$4($){const et=sha256Exports.sha224.create();return et.update($),new Uint8Array(et.array())}const SELF_AUTHENTICATING_SUFFIX$2=2,ANONYMOUS_SUFFIX$2=4,MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$2="aaaaa-aa",fromHexString$6=$=>{var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16)))},toHexString$6=$=>$.reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"");let Principal$5=class yA{constructor(et){this._arr=et,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([ANONYMOUS_SUFFIX$2]))}static managementCanister(){return this.fromHex(MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$2)}static selfAuthenticating(et){const tt=sha224$4(et);return new this(new Uint8Array([...tt,SELF_AUTHENTICATING_SUFFIX$2]))}static from(et){if(typeof et=="string")return yA.fromText(et);if(typeof et=="object"&&et!==null&&et._isPrincipal===!0)return new yA(et._arr);throw new Error(`Impossible to convert ${JSON.stringify(et)} to Principal.`)}static fromHex(et){return new this(fromHexString$6(et))}static fromText(et){const tt=et.toLowerCase().replace(/-/g,"");let rt=decode$a(tt);rt=rt.slice(4,rt.length);const nt=new this(rt);if(nt.toText()!==et)throw new Error(`Principal "${nt.toText()}" does not have a valid checksum (original value "${et}" may not be a valid Principal ID).`);return nt}static fromUint8Array(et){return new this(et)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===ANONYMOUS_SUFFIX$2}toUint8Array(){return this._arr}toHex(){return toHexString$6(this._arr).toUpperCase()}toText(){const et=new ArrayBuffer(4);new DataView(et).setUint32(0,getCrc32$2(this._arr));const rt=new Uint8Array(et),nt=Uint8Array.from(this._arr),it=new Uint8Array([...rt,...nt]),at=encode$9(it).match(/.{1,5}/g);if(!at)throw new Error;return at.join("-")}toString(){return this.toText()}compareTo(et){for(let tt=0;ttet._arr[tt])return"gt"}return this._arr.lengthet._arr.length?"gt":"eq"}ltEq(et){const tt=this.compareTo(et);return tt=="lt"||tt=="eq"}gtEq(et){const tt=this.compareTo(et);return tt=="gt"||tt=="eq"}},AgentError$2=class UA extends Error{constructor(et){super(et),this.message=et,Object.setPrototypeOf(this,UA.prototype)}};function concat$6(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et}let PipeArrayBuffer$2=class{constructor(et,tt=(et==null?void 0:et.byteLength)||0){this._buffer=et||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,tt)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(et){const tt=this._view.subarray(0,et);return this._view=this._view.subarray(et),tt.slice().buffer}readUint8(){const et=this._view[0];return this._view=this._view.subarray(1),et}write(et){const tt=new Uint8Array(et),rt=this._view.byteLength;this._view.byteOffset+this._view.byteLength+tt.byteLength>=this._buffer.byteLength?this.alloc(tt.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+tt.byteLength),this._view.set(tt,rt)}get end(){return this._view.byteLength===0}alloc(et){const tt=new ArrayBuffer((this._buffer.byteLength+et)*1.2|0),rt=new Uint8Array(tt,0,this._view.byteLength+et);rt.set(this._view),this._buffer=tt,this._view=rt}};function idlHash$2($){const tt=new TextEncoder().encode($);let rt=0;for(const nt of tt)rt=(rt*223+nt)%2**32;return rt}function idlLabelToId$2($){if(/^_\d+_$/.test($)||/^_0x[0-9a-fA-F]+_$/.test($)){const et=+$.slice(1,-1);if(Number.isSafeInteger(et)&&et>=0&&et<2**32)return et}return idlHash$2($)}function eob$2(){throw new Error("unexpected end of buffer")}function safeRead$2($,et){return $.byteLength=128);return tt}function slebEncode$2($){typeof $=="number"&&($=BigInt($));const et=$=0;it--)nt=nt*BigInt(128)+BigInt(128-(rt[it]&127)-1);return-nt-BigInt(1)}function writeUIntLE$2($,et){if(BigInt($)=rt&&(tt-=rt*BigInt(2)),tt}function iexp2$2($){const et=BigInt($);if($<0)throw new RangeError("Input must be non-negative");return BigInt(1)<tt(rt,et[nt]))}let TypeTable$2=class{constructor(){this._typs=[],this._idx=new Map}has(et){return this._idx.has(et.name)}add(et,tt){const rt=this._typs.length;this._idx.set(et.name,rt),this._typs.push(tt)}merge(et,tt){const rt=this._idx.get(et.name),nt=this._idx.get(tt);if(rt===void 0)throw new Error("Missing type index for "+et);if(nt===void 0)throw new Error("Missing type index for "+tt);this._typs[rt]=this._typs[nt],this._typs.splice(nt,1),this._idx.delete(tt)}encode(){const et=lebEncode$2(this._typs.length),tt=concat$6(...this._typs);return concat$6(et,tt)}indexOf(et){if(!this._idx.has(et))throw new Error("Missing type index for "+et);return slebEncode$2(this._idx.get(et)||0)}},Visitor$2=class{visitType(et,tt){throw new Error("Not implemented")}visitPrimitive(et,tt){return this.visitType(et,tt)}visitEmpty(et,tt){return this.visitPrimitive(et,tt)}visitBool(et,tt){return this.visitPrimitive(et,tt)}visitNull(et,tt){return this.visitPrimitive(et,tt)}visitReserved(et,tt){return this.visitPrimitive(et,tt)}visitText(et,tt){return this.visitPrimitive(et,tt)}visitNumber(et,tt){return this.visitPrimitive(et,tt)}visitInt(et,tt){return this.visitNumber(et,tt)}visitNat(et,tt){return this.visitNumber(et,tt)}visitFloat(et,tt){return this.visitPrimitive(et,tt)}visitFixedInt(et,tt){return this.visitNumber(et,tt)}visitFixedNat(et,tt){return this.visitNumber(et,tt)}visitPrincipal(et,tt){return this.visitPrimitive(et,tt)}visitConstruct(et,tt){return this.visitType(et,tt)}visitVec(et,tt,rt){return this.visitConstruct(et,rt)}visitOpt(et,tt,rt){return this.visitConstruct(et,rt)}visitRecord(et,tt,rt){return this.visitConstruct(et,rt)}visitTuple(et,tt,rt){const nt=tt.map((it,At)=>[`_${At}_`,it]);return this.visitRecord(et,nt,rt)}visitVariant(et,tt,rt){return this.visitConstruct(et,rt)}visitRec(et,tt,rt){return this.visitConstruct(tt,rt)}visitFunc(et,tt){return this.visitConstruct(et,tt)}visitService(et,tt){return this.visitConstruct(et,tt)}},Type$2=class{display(){return this.name}valueToString(et){return toReadableString$2(et)}buildTypeTable(et){et.has(this)||this._buildTypeTableImpl(et)}},PrimitiveType$2=class extends Type$2{checkType(et){if(this.name!==et.name)throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`);return et}_buildTypeTableImpl(et){}},ConstructType$2=class extends Type$2{checkType(et){if(et instanceof RecClass$2){const tt=et.getType();if(typeof tt>"u")throw new Error("type mismatch with uninitialized type");return tt}throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`)}encodeType(et){return et.indexOf(this.name)}},EmptyClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitEmpty(this,tt)}covariant(et){return!1}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return slebEncode$2(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}},UnknownClass$2=class extends Type$2{checkType(et){throw new Error("Method not implemented for unknown.")}accept(et,tt){throw et.visitType(this,tt)}covariant(et){return!1}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(et,tt){let rt=tt.decodeValue(et,tt);Object(rt)!==rt&&(rt=Object(rt));let nt;return tt instanceof RecClass$2?nt=()=>tt.getType():nt=()=>tt,Object.defineProperty(rt,"type",{value:nt,writable:!0,enumerable:!1,configurable:!0}),rt}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}},BoolClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitBool(this,tt)}covariant(et){return typeof et=="boolean"}encodeValue(et){return new Uint8Array([et?1:0])}encodeType(){return slebEncode$2(-2)}decodeValue(et,tt){switch(this.checkType(tt),safeReadUint8$2(et)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}},NullClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitNull(this,tt)}covariant(et){return et===null}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$2(-1)}decodeValue(et,tt){return this.checkType(tt),null}get name(){return"null"}},ReservedClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitReserved(this,tt)}covariant(et){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$2(-16)}decodeValue(et,tt){return tt.name!==this.name&&tt.decodeValue(et,tt),null}get name(){return"reserved"}},TextClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitText(this,tt)}covariant(et){return typeof et=="string"}encodeValue(et){const tt=new TextEncoder().encode(et),rt=lebEncode$2(tt.byteLength);return concat$6(rt,tt)}encodeType(){return slebEncode$2(-15)}decodeValue(et,tt){this.checkType(tt);const rt=lebDecode$2(et),nt=safeRead$2(et,Number(rt));return new TextDecoder("utf8",{fatal:!0}).decode(nt)}get name(){return"text"}valueToString(et){return'"'+et+'"'}},IntClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitInt(this,tt)}covariant(et){return typeof et=="bigint"||Number.isInteger(et)}encodeValue(et){return slebEncode$2(et)}encodeType(){return slebEncode$2(-4)}decodeValue(et,tt){return this.checkType(tt),slebDecode$2(et)}get name(){return"int"}valueToString(et){return et.toString()}},NatClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitNat(this,tt)}covariant(et){return typeof et=="bigint"&&et>=BigInt(0)||Number.isInteger(et)&&et>=0}encodeValue(et){return lebEncode$2(et)}encodeType(){return slebEncode$2(-3)}decodeValue(et,tt){return this.checkType(tt),lebDecode$2(et)}get name(){return"nat"}valueToString(et){return et.toString()}},FloatClass$2=class extends PrimitiveType$2{constructor(et){if(super(),this._bits=et,et!==32&&et!==64)throw new Error("not a valid float type")}accept(et,tt){return et.visitFloat(this,tt)}covariant(et){return typeof et=="number"||et instanceof Number}encodeValue(et){const tt=new ArrayBuffer(this._bits/8),rt=new DataView(tt);return this._bits===32?rt.setFloat32(0,et,!0):rt.setFloat64(0,et,!0),tt}encodeType(){const et=this._bits===32?-13:-14;return slebEncode$2(et)}decodeValue(et,tt){this.checkType(tt);const rt=safeRead$2(et,this._bits/8),nt=new DataView(rt);return this._bits===32?nt.getFloat32(0,!0):nt.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(et){return et.toString()}},FixedIntClass$2=class extends PrimitiveType$2{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedInt(this,tt)}covariant(et){const tt=iexp2$2(this._bits-1)*BigInt(-1),rt=iexp2$2(this._bits-1)-BigInt(1);if(typeof et=="bigint")return et>=tt&&et<=rt;if(Number.isInteger(et)){const nt=BigInt(et);return nt>=tt&&nt<=rt}else return!1}encodeValue(et){return writeIntLE$2(et,this._bits/8)}encodeType(){const et=Math.log2(this._bits)-3;return slebEncode$2(-9-et)}decodeValue(et,tt){this.checkType(tt);const rt=readIntLE$2(et,this._bits/8);return this._bits<=32?Number(rt):rt}get name(){return`int${this._bits}`}valueToString(et){return et.toString()}},FixedNatClass$2=class extends PrimitiveType$2{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedNat(this,tt)}covariant(et){const tt=iexp2$2(this._bits);return typeof et=="bigint"&&et>=BigInt(0)?et=0?BigInt(et)this._type.covariant(rt))}encodeValue(et){const tt=lebEncode$2(et.length);if(this._blobOptimization)return concat$6(tt,new Uint8Array(et));if(ArrayBuffer.isView(et))return concat$6(tt,new Uint8Array(et.buffer));const rt=new PipeArrayBuffer$2(new ArrayBuffer(tt.byteLength+et.length),0);rt.write(tt);for(const nt of et){const it=this._type.encodeValue(nt);rt.write(new Uint8Array(it))}return rt.buffer}_buildTypeTableImpl(et){this._type.buildTypeTable(et);const tt=slebEncode$2(-19),rt=this._type.encodeType(et);et.add(this,concat$6(tt,rt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof PA))throw new Error("Not a vector type");const nt=Number(lebDecode$2(et));if(this._type instanceof FixedNatClass$2){if(this._type._bits==8)return new Uint8Array(et.read(nt));if(this._type._bits==16)return new Uint16Array(et.read(nt*2));if(this._type._bits==32)return new Uint32Array(et.read(nt*4));if(this._type._bits==64)return new BigUint64Array(et.read(nt*8))}if(this._type instanceof FixedIntClass$2){if(this._type._bits==8)return new Int8Array(et.read(nt));if(this._type._bits==16)return new Int16Array(et.read(nt*2));if(this._type._bits==32)return new Int32Array(et.read(nt*4));if(this._type._bits==64)return new BigInt64Array(et.read(nt*8))}const it=[];for(let At=0;Atthis._type.valueToString(rt)).join("; ")+"}"}},OptClass$2=class HA extends ConstructType$2{constructor(et){super(),this._type=et}accept(et,tt){return et.visitOpt(this,this._type,tt)}covariant(et){return Array.isArray(et)&&(et.length===0||et.length===1&&this._type.covariant(et[0]))}encodeValue(et){return et.length===0?new Uint8Array([0]):concat$6(new Uint8Array([1]),this._type.encodeValue(et[0]))}_buildTypeTableImpl(et){this._type.buildTypeTable(et);const tt=slebEncode$2(-18),rt=this._type.encodeType(et);et.add(this,concat$6(tt,rt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof HA))throw new Error("Not an option type");switch(safeReadUint8$2(et)){case 0:return[];case 1:return[this._type.decodeValue(et,rt._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(et){return et.length===0?"null":`opt ${this._type.valueToString(et[0])}`}},RecordClass$2=class qA extends ConstructType$2{constructor(et={}){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitRecord(this,this._fields,tt)}tryAsTuple(){const et=[];for(let tt=0;tt{if(!et.hasOwnProperty(tt))throw new Error(`Record is missing key "${tt}".`);return rt.covariant(et[tt])})}encodeValue(et){const tt=this._fields.map(([nt])=>et[nt]),rt=zipWith$2(this._fields,tt,([,nt],it)=>nt.encodeValue(it));return concat$6(...rt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode$2(-20),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>concat$6(lebEncode$2(idlLabelToId$2(it)),At.encodeType(et)));et.add(this,concat$6(tt,rt,concat$6(...nt)))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof qA))throw new Error("Not a record type");const nt={};let it=0,At=0;for(;At=this._fields.length){ot.decodeValue(et,ot),At++;continue}const[st,ct]=this._fields[it];if(idlLabelToId$2(this._fields[it][0])!==idlLabelToId$2(at)){if(ct instanceof OptClass$2||ct instanceof ReservedClass$2){nt[st]=[],it++;continue}ot.decodeValue(et,ot),At++;continue}nt[st]=ct.decodeValue(et,ot),it++,At++}for(const[at,ot]of this._fields.slice(it))if(ot instanceof OptClass$2||ot instanceof ReservedClass$2)nt[at]=[];else throw new Error("Cannot find required field "+at);return nt}get name(){return`record {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`record {${this._fields.map(([tt,rt])=>tt+":"+rt.display()).join("; ")}}`}valueToString(et){const tt=this._fields.map(([nt])=>et[nt]);return`record {${zipWith$2(this._fields,tt,([nt,it],At)=>nt+"="+it.valueToString(At)).join("; ")}}`}},TupleClass$2=class LA extends RecordClass$2{constructor(et){const tt={};et.forEach((rt,nt)=>tt["_"+nt+"_"]=rt),super(tt),this._components=et}accept(et,tt){return et.visitTuple(this,this._components,tt)}covariant(et){return Array.isArray(et)&&et.length>=this._fields.length&&this._components.every((tt,rt)=>tt.covariant(et[rt]))}encodeValue(et){const tt=zipWith$2(this._components,et,(rt,nt)=>rt.encodeValue(nt));return concat$6(...tt)}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof LA))throw new Error("not a tuple type");if(rt._components.length=this._components.length?At.decodeValue(et,At):nt.push(this._components[it].decodeValue(et,At));return nt}display(){return`record {${this._components.map(tt=>tt.display()).join("; ")}}`}valueToString(et){return`record {${zipWith$2(this._components,et,(rt,nt)=>rt.valueToString(nt)).join("; ")}}`}},VariantClass$2=class OA extends ConstructType$2{constructor(et={}){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitVariant(this,this._fields,tt)}covariant(et){return typeof et=="object"&&Object.entries(et).length===1&&this._fields.every(([tt,rt])=>!et.hasOwnProperty(tt)||rt.covariant(et[tt]))}encodeValue(et){for(let tt=0;tt{it.buildTypeTable(et)});const tt=slebEncode$2(-21),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>concat$6(lebEncode$2(idlLabelToId$2(it)),At.encodeType(et)));et.add(this,concat$6(tt,rt,...nt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof OA))throw new Error("Not a variant type");const nt=Number(lebDecode$2(et));if(nt>=rt._fields.length)throw Error("Invalid variant index: "+nt);const[it,At]=rt._fields[nt];for(const[at,ot]of this._fields)if(idlLabelToId$2(it)===idlLabelToId$2(at)){const st=ot.decodeValue(et,At);return{[at]:st}}throw new Error("Cannot find field hash "+it)}get name(){return`variant {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`variant {${this._fields.map(([tt,rt])=>tt+(rt.name==="null"?"":`:${rt.display()}`)).join("; ")}}`}valueToString(et){for(const[tt,rt]of this._fields)if(et.hasOwnProperty(tt)){const nt=rt.valueToString(et[tt]);return nt==="null"?`variant {${tt}}`:`variant {${tt}=${nt}}`}throw new Error("Variant has no data: "+et)}},RecClass$2=class YA extends ConstructType$2{constructor(){super(...arguments),this._id=YA._counter++,this._type=void 0}accept(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return et.visitRec(this,this._type,tt)}fill(et){this._type=et}getType(){return this._type}covariant(et){return this._type?this._type.covariant(et):!1}encodeValue(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(et)}_buildTypeTableImpl(et){if(!this._type)throw Error("Recursive type uninitialized.");et.add(this,new Uint8Array([])),this._type.buildTypeTable(et),et.merge(this,this._type.name)}decodeValue(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(et,tt)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(et)}};RecClass$2._counter=0;function decodePrincipalId$2($){if(safeReadUint8$2($)!==1)throw new Error("Cannot decode principal");const tt=Number(lebDecode$2($));return Principal$5.fromUint8Array(new Uint8Array(safeRead$2($,tt)))}let PrincipalClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitPrincipal(this,tt)}covariant(et){return et&&et._isPrincipal}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$2(tt.byteLength);return concat$6(new Uint8Array([1]),rt,tt)}encodeType(){return slebEncode$2(-24)}decodeValue(et,tt){return this.checkType(tt),decodePrincipalId$2(et)}get name(){return"principal"}valueToString(et){return`${this.name} "${et.toText()}"`}},FuncClass$2=class extends ConstructType$2{constructor(et,tt,rt=[]){super(),this.argTypes=et,this.retTypes=tt,this.annotations=rt}static argsToString(et,tt){if(et.length!==tt.length)throw new Error("arity mismatch");return"("+et.map((rt,nt)=>rt.valueToString(tt[nt])).join(", ")+")"}accept(et,tt){return et.visitFunc(this,tt)}covariant(et){return Array.isArray(et)&&et.length===2&&et[0]&&et[0]._isPrincipal&&typeof et[1]=="string"}encodeValue([et,tt]){const rt=et.toUint8Array(),nt=lebEncode$2(rt.byteLength),it=concat$6(new Uint8Array([1]),nt,rt),At=new TextEncoder().encode(tt),at=lebEncode$2(At.byteLength);return concat$6(new Uint8Array([1]),it,at,At)}_buildTypeTableImpl(et){this.argTypes.forEach(st=>st.buildTypeTable(et)),this.retTypes.forEach(st=>st.buildTypeTable(et));const tt=slebEncode$2(-22),rt=lebEncode$2(this.argTypes.length),nt=concat$6(...this.argTypes.map(st=>st.encodeType(et))),it=lebEncode$2(this.retTypes.length),At=concat$6(...this.retTypes.map(st=>st.encodeType(et))),at=lebEncode$2(this.annotations.length),ot=concat$6(...this.annotations.map(st=>this.encodeAnnotation(st)));et.add(this,concat$6(tt,rt,nt,it,At,at,ot))}decodeValue(et){if(safeReadUint8$2(et)!==1)throw new Error("Cannot decode function reference");const rt=decodePrincipalId$2(et),nt=Number(lebDecode$2(et)),it=safeRead$2(et,nt),at=new TextDecoder("utf8",{fatal:!0}).decode(it);return[rt,at]}get name(){const et=this.argTypes.map(nt=>nt.name).join(", "),tt=this.retTypes.map(nt=>nt.name).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) -> (${tt})${rt}`}valueToString([et,tt]){return`func "${et.toText()}".${tt}`}display(){const et=this.argTypes.map(nt=>nt.display()).join(", "),tt=this.retTypes.map(nt=>nt.display()).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) → (${tt})${rt}`}encodeAnnotation(et){if(et==="query")return new Uint8Array([1]);if(et==="oneway")return new Uint8Array([2]);throw new Error("Illegal function annotation")}},ServiceClass$2=class extends ConstructType$2{constructor(et){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitService(this,tt)}covariant(et){return et&&et._isPrincipal}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$2(tt.length);return concat$6(new Uint8Array([1]),rt,tt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode$2(-23),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>{const at=new TextEncoder().encode(it),ot=lebEncode$2(at.length);return concat$6(ot,at,At.encodeType(et))});et.add(this,concat$6(tt,rt,...nt))}decodeValue(et){return decodePrincipalId$2(et)}get name(){return`service {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}valueToString(et){return`service "${et.toText()}"`}};function toReadableString$2($){return JSON.stringify($,(et,tt)=>typeof tt=="bigint"?`BigInt(${tt})`:tt)}function encode$8($,et){if(et.length<$.length)throw Error("Wrong number of message arguments");const tt=new TypeTable$2;$.forEach(ot=>ot.buildTypeTable(tt));const rt=new TextEncoder().encode(magicNumber$2),nt=tt.encode(),it=lebEncode$2(et.length),At=concat$6(...$.map(ot=>ot.encodeType(tt))),at=concat$6(...zipWith$2($,et,(ot,st)=>{if(!ot.covariant(st))throw new Error(`Invalid ${ot.display()} argument: ${toReadableString$2(st)}`);return ot.encodeValue(st)}));return concat$6(rt,nt,it,At,at)}function decode$9($,et){const tt=new PipeArrayBuffer$2(et);if(et.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Ut=="number"&&Ut>=Pt)throw new Error("field id collision or not sorted");Ut=Pt;const Kt=Number(slebDecode$2(dt));$t.push([Pt,Kt])}ht.push([mt,$t]);break}case-22:{const $t=[];let Tt=Number(lebDecode$2(dt));for(;Tt--;)$t.push(Number(slebDecode$2(dt)));const Ut=[];let Pt=Number(lebDecode$2(dt));for(;Pt--;)Ut.push(Number(slebDecode$2(dt)));const Kt=[];let zt=Number(lebDecode$2(dt));for(;zt--;)switch(Number(lebDecode$2(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}default:throw new Error("unknown annotation")}ht.push([mt,[$t,Ut,Kt]]);break}case-23:{let $t=Number(lebDecode$2(dt));const Tt=[];for(;$t--;){const Ut=Number(lebDecode$2(dt)),Pt=new TextDecoder().decode(safeRead$2(dt,Ut)),Kt=slebDecode$2(dt);Tt.push([Pt,Kt])}ht.push([mt,Tt]);break}default:throw new Error("Illegal op_code: "+mt)}}const wt=[],Qt=Number(lebDecode$2(dt));for(let pt=0;ptRec$2());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null$2;case-2:return Bool$2;case-3:return Nat$2;case-4:return Int$2;case-5:return Nat8$2;case-6:return Nat16$2;case-7:return Nat32$2;case-8:return Nat64$2;case-9:return Int8$2;case-10:return Int16$2;case-11:return Int32$2;case-12:return Int64$2;case-13:return Float32$2;case-14:return Float64$2;case-15:return Text$2;case-16:return Reserved$2;case-17:return Empty$2;case-24:return Principal$4;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec$2(ht)}case-18:{const ht=st(dt[1]);return Opt$2(ht)}case-20:{const ht={};for(const[Qt,pt]of dt[1]){const mt=`_${Qt}_`;ht[mt]=st(pt)}const Et=Record$2(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple$2(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const Qt=`_${Et}_`;ht[Qt]=st(wt)}return Variant$2(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func$2(ht.map(Qt=>st(Qt)),Et.map(Qt=>st(Qt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,Qt]of Et){let pt=st(Qt);if(pt instanceof RecClass$2&&(pt=pt.getType()),!(pt instanceof FuncClass$2))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service$2(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{const Et=ct(dt);ot[ht].fill(Et)});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty$2=new EmptyClass$2,Reserved$2=new ReservedClass$2,Unknown$2=new UnknownClass$2,Bool$2=new BoolClass$2,Null$2=new NullClass$2,Text$2=new TextClass$2,Int$2=new IntClass$2,Nat$2=new NatClass$2,Float32$2=new FloatClass$2(32),Float64$2=new FloatClass$2(64),Int8$2=new FixedIntClass$2(8),Int16$2=new FixedIntClass$2(16),Int32$2=new FixedIntClass$2(32),Int64$2=new FixedIntClass$2(64),Nat8$2=new FixedNatClass$2(8),Nat16$2=new FixedNatClass$2(16),Nat32$2=new FixedNatClass$2(32),Nat64$2=new FixedNatClass$2(64),Principal$4=new PrincipalClass$2;function Tuple$2(...$){return new TupleClass$2($)}function Vec$2($){return new VecClass$2($)}function Opt$2($){return new OptClass$2($)}function Record$2($){return new RecordClass$2($)}function Variant$2($){return new VariantClass$2($)}function Rec$2(){return new RecClass$2}function Func$2($,et,tt=[]){return new FuncClass$2($,et,tt)}function Service$2($){return new ServiceClass$2($)}const IDL$2=Object.freeze(Object.defineProperty({__proto__:null,Bool:Bool$2,BoolClass:BoolClass$2,ConstructType:ConstructType$2,Empty:Empty$2,EmptyClass:EmptyClass$2,FixedIntClass:FixedIntClass$2,FixedNatClass:FixedNatClass$2,Float32:Float32$2,Float64:Float64$2,FloatClass:FloatClass$2,Func:Func$2,FuncClass:FuncClass$2,Int:Int$2,Int16:Int16$2,Int32:Int32$2,Int64:Int64$2,Int8:Int8$2,IntClass:IntClass$2,Nat:Nat$2,Nat16:Nat16$2,Nat32:Nat32$2,Nat64:Nat64$2,Nat8:Nat8$2,NatClass:NatClass$2,Null:Null$2,NullClass:NullClass$2,Opt:Opt$2,OptClass:OptClass$2,PrimitiveType:PrimitiveType$2,Principal:Principal$4,PrincipalClass:PrincipalClass$2,Rec:Rec$2,RecClass:RecClass$2,Record:Record$2,RecordClass:RecordClass$2,Reserved:Reserved$2,ReservedClass:ReservedClass$2,Service:Service$2,ServiceClass:ServiceClass$2,Text:Text$2,TextClass:TextClass$2,Tuple:Tuple$2,TupleClass:TupleClass$2,Type:Type$2,Unknown:Unknown$2,UnknownClass:UnknownClass$2,Variant:Variant$2,VariantClass:VariantClass$2,Vec:Vec$2,VecClass:VecClass$2,Visitor:Visitor$2,decode:decode$9,encode:encode$8},Symbol.toStringTag,{value:"Module"}));var src$1={},buffer$1={};/*! + */(function(module){(function(){var ERROR="input is invalid type",WINDOW=typeof window=="object",root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&typeof self=="object",NODE_JS=!root.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;NODE_JS?root=commonjsGlobal:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&!0&&module.exports,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function($){return Object.prototype.toString.call($)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function($){return typeof $=="object"&&$.buffer&&$.buffer.constructor===ArrayBuffer});var createOutputMethod=function($,et){return function(tt){return new Sha256(et,!0).update(tt)[$]()}},createMethod=function($){var et=createOutputMethod("hex",$);NODE_JS&&(et=nodeWrap(et,$)),et.create=function(){return new Sha256($)},et.update=function(nt){return et.create().update(nt)};for(var tt=0;tt>2]|=$[nt]<>2]|=rt<>2]|=(192|rt>>6)<>2]|=(128|rt&63)<=57344?(at[it>>2]|=(224|rt>>12)<>2]|=(128|rt>>6&63)<>2]|=(128|rt&63)<>2]|=(240|rt>>18)<>2]|=(128|rt>>12&63)<>2]|=(128|rt>>6&63)<>2]|=(128|rt&63)<=64?(this.block=at[16],this.start=it-64,this.hash(),this.hashed=!0):this.start=it}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var $=this.blocks,et=this.lastByteIndex;$[16]=this.block,$[et>>2]|=EXTRA[et&3],this.block=$[16],et>=56&&(this.hashed||this.hash(),$[0]=this.block,$[16]=$[1]=$[2]=$[3]=$[4]=$[5]=$[6]=$[7]=$[8]=$[9]=$[10]=$[11]=$[12]=$[13]=$[14]=$[15]=0),$[14]=this.hBytes<<3|this.bytes>>>29,$[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=this.blocks,st,ct,ut,gt,dt,ht,Et,wt,mt,pt,Qt;for(st=16;st<64;++st)dt=ot[st-15],ct=(dt>>>7|dt<<25)^(dt>>>18|dt<<14)^dt>>>3,dt=ot[st-2],ut=(dt>>>17|dt<<15)^(dt>>>19|dt<<13)^dt>>>10,ot[st]=ot[st-16]+ct+ot[st-7]+ut<<0;for(Qt=et&tt,st=0;st<64;st+=4)this.first?(this.is224?(wt=300032,dt=ot[0]-1413257819,at=dt-150054599<<0,rt=dt+24177077<<0):(wt=704751109,dt=ot[0]-210244248,at=dt-1521486534<<0,rt=dt+143694565<<0),this.first=!1):(ct=($>>>2|$<<30)^($>>>13|$<<19)^($>>>22|$<<10),ut=(nt>>>6|nt<<26)^(nt>>>11|nt<<21)^(nt>>>25|nt<<7),wt=$&et,gt=wt^$&tt^Qt,Et=nt&it^~nt&At,dt=at+ut+Et+K[st]+ot[st],ht=ct+gt,at=rt+dt<<0,rt=dt+ht<<0),ct=(rt>>>2|rt<<30)^(rt>>>13|rt<<19)^(rt>>>22|rt<<10),ut=(at>>>6|at<<26)^(at>>>11|at<<21)^(at>>>25|at<<7),mt=rt&$,gt=mt^rt&et^wt,Et=at&nt^~at&it,dt=At+ut+Et+K[st+1]+ot[st+1],ht=ct+gt,At=tt+dt<<0,tt=dt+ht<<0,ct=(tt>>>2|tt<<30)^(tt>>>13|tt<<19)^(tt>>>22|tt<<10),ut=(At>>>6|At<<26)^(At>>>11|At<<21)^(At>>>25|At<<7),pt=tt&rt,gt=pt^tt&$^mt,Et=At&at^~At&nt,dt=it+ut+Et+K[st+2]+ot[st+2],ht=ct+gt,it=et+dt<<0,et=dt+ht<<0,ct=(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10),ut=(it>>>6|it<<26)^(it>>>11|it<<21)^(it>>>25|it<<7),Qt=et&tt,gt=Qt^et&rt^pt,Et=it&At^~it&at,dt=nt+ut+Et+K[st+3]+ot[st+3],ht=ct+gt,nt=$+dt<<0,$=dt+ht<<0;this.h0=this.h0+$<<0,this.h1=this.h1+et<<0,this.h2=this.h2+tt<<0,this.h3=this.h3+rt<<0,this.h4=this.h4+nt<<0,this.h5=this.h5+it<<0,this.h6=this.h6+At<<0,this.h7=this.h7+at<<0},Sha256.prototype.hex=function(){this.finalize();var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=HEX_CHARS[$>>28&15]+HEX_CHARS[$>>24&15]+HEX_CHARS[$>>20&15]+HEX_CHARS[$>>16&15]+HEX_CHARS[$>>12&15]+HEX_CHARS[$>>8&15]+HEX_CHARS[$>>4&15]+HEX_CHARS[$&15]+HEX_CHARS[et>>28&15]+HEX_CHARS[et>>24&15]+HEX_CHARS[et>>20&15]+HEX_CHARS[et>>16&15]+HEX_CHARS[et>>12&15]+HEX_CHARS[et>>8&15]+HEX_CHARS[et>>4&15]+HEX_CHARS[et&15]+HEX_CHARS[tt>>28&15]+HEX_CHARS[tt>>24&15]+HEX_CHARS[tt>>20&15]+HEX_CHARS[tt>>16&15]+HEX_CHARS[tt>>12&15]+HEX_CHARS[tt>>8&15]+HEX_CHARS[tt>>4&15]+HEX_CHARS[tt&15]+HEX_CHARS[rt>>28&15]+HEX_CHARS[rt>>24&15]+HEX_CHARS[rt>>20&15]+HEX_CHARS[rt>>16&15]+HEX_CHARS[rt>>12&15]+HEX_CHARS[rt>>8&15]+HEX_CHARS[rt>>4&15]+HEX_CHARS[rt&15]+HEX_CHARS[nt>>28&15]+HEX_CHARS[nt>>24&15]+HEX_CHARS[nt>>20&15]+HEX_CHARS[nt>>16&15]+HEX_CHARS[nt>>12&15]+HEX_CHARS[nt>>8&15]+HEX_CHARS[nt>>4&15]+HEX_CHARS[nt&15]+HEX_CHARS[it>>28&15]+HEX_CHARS[it>>24&15]+HEX_CHARS[it>>20&15]+HEX_CHARS[it>>16&15]+HEX_CHARS[it>>12&15]+HEX_CHARS[it>>8&15]+HEX_CHARS[it>>4&15]+HEX_CHARS[it&15]+HEX_CHARS[At>>28&15]+HEX_CHARS[At>>24&15]+HEX_CHARS[At>>20&15]+HEX_CHARS[At>>16&15]+HEX_CHARS[At>>12&15]+HEX_CHARS[At>>8&15]+HEX_CHARS[At>>4&15]+HEX_CHARS[At&15];return this.is224||(ot+=HEX_CHARS[at>>28&15]+HEX_CHARS[at>>24&15]+HEX_CHARS[at>>20&15]+HEX_CHARS[at>>16&15]+HEX_CHARS[at>>12&15]+HEX_CHARS[at>>8&15]+HEX_CHARS[at>>4&15]+HEX_CHARS[at&15]),ot},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var $=this.h0,et=this.h1,tt=this.h2,rt=this.h3,nt=this.h4,it=this.h5,At=this.h6,at=this.h7,ot=[$>>24&255,$>>16&255,$>>8&255,$&255,et>>24&255,et>>16&255,et>>8&255,et&255,tt>>24&255,tt>>16&255,tt>>8&255,tt&255,rt>>24&255,rt>>16&255,rt>>8&255,rt&255,nt>>24&255,nt>>16&255,nt>>8&255,nt&255,it>>24&255,it>>16&255,it>>8&255,it&255,At>>24&255,At>>16&255,At>>8&255,At&255];return this.is224||ot.push(at>>24&255,at>>16&255,at>>8&255,at&255),ot},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var $=new ArrayBuffer(this.is224?28:32),et=new DataView($);return et.setUint32(0,this.h0),et.setUint32(4,this.h1),et.setUint32(8,this.h2),et.setUint32(12,this.h3),et.setUint32(16,this.h4),et.setUint32(20,this.h5),et.setUint32(24,this.h6),this.is224||et.setUint32(28,this.h7),$};function HmacSha256($,et,tt){var rt,nt=typeof $;if(nt==="string"){var it=[],At=$.length,at=0,ot;for(rt=0;rt>6,it[at++]=128|ot&63):ot<55296||ot>=57344?(it[at++]=224|ot>>12,it[at++]=128|ot>>6&63,it[at++]=128|ot&63):(ot=65536+((ot&1023)<<10|$.charCodeAt(++rt)&1023),it[at++]=240|ot>>18,it[at++]=128|ot>>12&63,it[at++]=128|ot>>6&63,it[at++]=128|ot&63);$=it}else if(nt==="object"){if($===null)throw new Error(ERROR);if(ARRAY_BUFFER&&$.constructor===ArrayBuffer)$=new Uint8Array($);else if(!Array.isArray($)&&(!ARRAY_BUFFER||!ArrayBuffer.isView($)))throw new Error(ERROR)}else throw new Error(ERROR);$.length>64&&($=new Sha256(et,!0).update($).array());var st=[],ct=[];for(rt=0;rt<64;++rt){var ut=$[rt]||0;st[rt]=92^ut,ct[rt]=54^ut}Sha256.call(this,et,tt),this.update(ct),this.oKeyPad=st,this.inner=!0,this.sharedMemory=tt}HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var $=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update($),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224)})()})(sha256$2);var sha256Exports=sha256$2.exports;function sha224$4($){const et=sha256Exports.sha224.create();return et.update($),new Uint8Array(et.array())}const SELF_AUTHENTICATING_SUFFIX$2=2,ANONYMOUS_SUFFIX$2=4,MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$2="aaaaa-aa",fromHexString$6=$=>{var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16)))},toHexString$6=$=>$.reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"");let Principal$5=class yA{constructor(et){this._arr=et,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([ANONYMOUS_SUFFIX$2]))}static managementCanister(){return this.fromHex(MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$2)}static selfAuthenticating(et){const tt=sha224$4(et);return new this(new Uint8Array([...tt,SELF_AUTHENTICATING_SUFFIX$2]))}static from(et){if(typeof et=="string")return yA.fromText(et);if(typeof et=="object"&&et!==null&&et._isPrincipal===!0)return new yA(et._arr);throw new Error(`Impossible to convert ${JSON.stringify(et)} to Principal.`)}static fromHex(et){return new this(fromHexString$6(et))}static fromText(et){const tt=et.toLowerCase().replace(/-/g,"");let rt=decode$a(tt);rt=rt.slice(4,rt.length);const nt=new this(rt);if(nt.toText()!==et)throw new Error(`Principal "${nt.toText()}" does not have a valid checksum (original value "${et}" may not be a valid Principal ID).`);return nt}static fromUint8Array(et){return new this(et)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===ANONYMOUS_SUFFIX$2}toUint8Array(){return this._arr}toHex(){return toHexString$6(this._arr).toUpperCase()}toText(){const et=new ArrayBuffer(4);new DataView(et).setUint32(0,getCrc32$2(this._arr));const rt=new Uint8Array(et),nt=Uint8Array.from(this._arr),it=new Uint8Array([...rt,...nt]),at=encode$9(it).match(/.{1,5}/g);if(!at)throw new Error;return at.join("-")}toString(){return this.toText()}compareTo(et){for(let tt=0;ttet._arr[tt])return"gt"}return this._arr.lengthet._arr.length?"gt":"eq"}ltEq(et){const tt=this.compareTo(et);return tt=="lt"||tt=="eq"}gtEq(et){const tt=this.compareTo(et);return tt=="gt"||tt=="eq"}},AgentError$2=class UA extends Error{constructor(et){super(et),this.message=et,Object.setPrototypeOf(this,UA.prototype)}};function concat$6(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et}let PipeArrayBuffer$2=class{constructor(et,tt=(et==null?void 0:et.byteLength)||0){this._buffer=et||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,tt)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(et){const tt=this._view.subarray(0,et);return this._view=this._view.subarray(et),tt.slice().buffer}readUint8(){const et=this._view[0];return this._view=this._view.subarray(1),et}write(et){const tt=new Uint8Array(et),rt=this._view.byteLength;this._view.byteOffset+this._view.byteLength+tt.byteLength>=this._buffer.byteLength?this.alloc(tt.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+tt.byteLength),this._view.set(tt,rt)}get end(){return this._view.byteLength===0}alloc(et){const tt=new ArrayBuffer((this._buffer.byteLength+et)*1.2|0),rt=new Uint8Array(tt,0,this._view.byteLength+et);rt.set(this._view),this._buffer=tt,this._view=rt}};function idlHash$2($){const tt=new TextEncoder().encode($);let rt=0;for(const nt of tt)rt=(rt*223+nt)%2**32;return rt}function idlLabelToId$2($){if(/^_\d+_$/.test($)||/^_0x[0-9a-fA-F]+_$/.test($)){const et=+$.slice(1,-1);if(Number.isSafeInteger(et)&&et>=0&&et<2**32)return et}return idlHash$2($)}function eob$2(){throw new Error("unexpected end of buffer")}function safeRead$2($,et){return $.byteLength=128);return tt}function slebEncode$2($){typeof $=="number"&&($=BigInt($));const et=$=0;it--)nt=nt*BigInt(128)+BigInt(128-(rt[it]&127)-1);return-nt-BigInt(1)}function writeUIntLE$2($,et){if(BigInt($)=rt&&(tt-=rt*BigInt(2)),tt}function iexp2$2($){const et=BigInt($);if($<0)throw new RangeError("Input must be non-negative");return BigInt(1)<tt(rt,et[nt]))}let TypeTable$2=class{constructor(){this._typs=[],this._idx=new Map}has(et){return this._idx.has(et.name)}add(et,tt){const rt=this._typs.length;this._idx.set(et.name,rt),this._typs.push(tt)}merge(et,tt){const rt=this._idx.get(et.name),nt=this._idx.get(tt);if(rt===void 0)throw new Error("Missing type index for "+et);if(nt===void 0)throw new Error("Missing type index for "+tt);this._typs[rt]=this._typs[nt],this._typs.splice(nt,1),this._idx.delete(tt)}encode(){const et=lebEncode$2(this._typs.length),tt=concat$6(...this._typs);return concat$6(et,tt)}indexOf(et){if(!this._idx.has(et))throw new Error("Missing type index for "+et);return slebEncode$2(this._idx.get(et)||0)}},Visitor$2=class{visitType(et,tt){throw new Error("Not implemented")}visitPrimitive(et,tt){return this.visitType(et,tt)}visitEmpty(et,tt){return this.visitPrimitive(et,tt)}visitBool(et,tt){return this.visitPrimitive(et,tt)}visitNull(et,tt){return this.visitPrimitive(et,tt)}visitReserved(et,tt){return this.visitPrimitive(et,tt)}visitText(et,tt){return this.visitPrimitive(et,tt)}visitNumber(et,tt){return this.visitPrimitive(et,tt)}visitInt(et,tt){return this.visitNumber(et,tt)}visitNat(et,tt){return this.visitNumber(et,tt)}visitFloat(et,tt){return this.visitPrimitive(et,tt)}visitFixedInt(et,tt){return this.visitNumber(et,tt)}visitFixedNat(et,tt){return this.visitNumber(et,tt)}visitPrincipal(et,tt){return this.visitPrimitive(et,tt)}visitConstruct(et,tt){return this.visitType(et,tt)}visitVec(et,tt,rt){return this.visitConstruct(et,rt)}visitOpt(et,tt,rt){return this.visitConstruct(et,rt)}visitRecord(et,tt,rt){return this.visitConstruct(et,rt)}visitTuple(et,tt,rt){const nt=tt.map((it,At)=>[`_${At}_`,it]);return this.visitRecord(et,nt,rt)}visitVariant(et,tt,rt){return this.visitConstruct(et,rt)}visitRec(et,tt,rt){return this.visitConstruct(tt,rt)}visitFunc(et,tt){return this.visitConstruct(et,tt)}visitService(et,tt){return this.visitConstruct(et,tt)}},Type$2=class{display(){return this.name}valueToString(et){return toReadableString$2(et)}buildTypeTable(et){et.has(this)||this._buildTypeTableImpl(et)}},PrimitiveType$2=class extends Type$2{checkType(et){if(this.name!==et.name)throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`);return et}_buildTypeTableImpl(et){}},ConstructType$2=class extends Type$2{checkType(et){if(et instanceof RecClass$2){const tt=et.getType();if(typeof tt>"u")throw new Error("type mismatch with uninitialized type");return tt}throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`)}encodeType(et){return et.indexOf(this.name)}},EmptyClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitEmpty(this,tt)}covariant(et){return!1}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return slebEncode$2(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}},UnknownClass$2=class extends Type$2{checkType(et){throw new Error("Method not implemented for unknown.")}accept(et,tt){throw et.visitType(this,tt)}covariant(et){return!1}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(et,tt){let rt=tt.decodeValue(et,tt);Object(rt)!==rt&&(rt=Object(rt));let nt;return tt instanceof RecClass$2?nt=()=>tt.getType():nt=()=>tt,Object.defineProperty(rt,"type",{value:nt,writable:!0,enumerable:!1,configurable:!0}),rt}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}},BoolClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitBool(this,tt)}covariant(et){return typeof et=="boolean"}encodeValue(et){return new Uint8Array([et?1:0])}encodeType(){return slebEncode$2(-2)}decodeValue(et,tt){switch(this.checkType(tt),safeReadUint8$2(et)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}},NullClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitNull(this,tt)}covariant(et){return et===null}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$2(-1)}decodeValue(et,tt){return this.checkType(tt),null}get name(){return"null"}},ReservedClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitReserved(this,tt)}covariant(et){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$2(-16)}decodeValue(et,tt){return tt.name!==this.name&&tt.decodeValue(et,tt),null}get name(){return"reserved"}},TextClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitText(this,tt)}covariant(et){return typeof et=="string"}encodeValue(et){const tt=new TextEncoder().encode(et),rt=lebEncode$2(tt.byteLength);return concat$6(rt,tt)}encodeType(){return slebEncode$2(-15)}decodeValue(et,tt){this.checkType(tt);const rt=lebDecode$2(et),nt=safeRead$2(et,Number(rt));return new TextDecoder("utf8",{fatal:!0}).decode(nt)}get name(){return"text"}valueToString(et){return'"'+et+'"'}},IntClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitInt(this,tt)}covariant(et){return typeof et=="bigint"||Number.isInteger(et)}encodeValue(et){return slebEncode$2(et)}encodeType(){return slebEncode$2(-4)}decodeValue(et,tt){return this.checkType(tt),slebDecode$2(et)}get name(){return"int"}valueToString(et){return et.toString()}},NatClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitNat(this,tt)}covariant(et){return typeof et=="bigint"&&et>=BigInt(0)||Number.isInteger(et)&&et>=0}encodeValue(et){return lebEncode$2(et)}encodeType(){return slebEncode$2(-3)}decodeValue(et,tt){return this.checkType(tt),lebDecode$2(et)}get name(){return"nat"}valueToString(et){return et.toString()}},FloatClass$2=class extends PrimitiveType$2{constructor(et){if(super(),this._bits=et,et!==32&&et!==64)throw new Error("not a valid float type")}accept(et,tt){return et.visitFloat(this,tt)}covariant(et){return typeof et=="number"||et instanceof Number}encodeValue(et){const tt=new ArrayBuffer(this._bits/8),rt=new DataView(tt);return this._bits===32?rt.setFloat32(0,et,!0):rt.setFloat64(0,et,!0),tt}encodeType(){const et=this._bits===32?-13:-14;return slebEncode$2(et)}decodeValue(et,tt){this.checkType(tt);const rt=safeRead$2(et,this._bits/8),nt=new DataView(rt);return this._bits===32?nt.getFloat32(0,!0):nt.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(et){return et.toString()}},FixedIntClass$2=class extends PrimitiveType$2{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedInt(this,tt)}covariant(et){const tt=iexp2$2(this._bits-1)*BigInt(-1),rt=iexp2$2(this._bits-1)-BigInt(1);if(typeof et=="bigint")return et>=tt&&et<=rt;if(Number.isInteger(et)){const nt=BigInt(et);return nt>=tt&&nt<=rt}else return!1}encodeValue(et){return writeIntLE$2(et,this._bits/8)}encodeType(){const et=Math.log2(this._bits)-3;return slebEncode$2(-9-et)}decodeValue(et,tt){this.checkType(tt);const rt=readIntLE$2(et,this._bits/8);return this._bits<=32?Number(rt):rt}get name(){return`int${this._bits}`}valueToString(et){return et.toString()}},FixedNatClass$2=class extends PrimitiveType$2{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedNat(this,tt)}covariant(et){const tt=iexp2$2(this._bits);return typeof et=="bigint"&&et>=BigInt(0)?et=0?BigInt(et)this._type.covariant(rt))}encodeValue(et){const tt=lebEncode$2(et.length);if(this._blobOptimization)return concat$6(tt,new Uint8Array(et));if(ArrayBuffer.isView(et))return concat$6(tt,new Uint8Array(et.buffer));const rt=new PipeArrayBuffer$2(new ArrayBuffer(tt.byteLength+et.length),0);rt.write(tt);for(const nt of et){const it=this._type.encodeValue(nt);rt.write(new Uint8Array(it))}return rt.buffer}_buildTypeTableImpl(et){this._type.buildTypeTable(et);const tt=slebEncode$2(-19),rt=this._type.encodeType(et);et.add(this,concat$6(tt,rt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof PA))throw new Error("Not a vector type");const nt=Number(lebDecode$2(et));if(this._type instanceof FixedNatClass$2){if(this._type._bits==8)return new Uint8Array(et.read(nt));if(this._type._bits==16)return new Uint16Array(et.read(nt*2));if(this._type._bits==32)return new Uint32Array(et.read(nt*4));if(this._type._bits==64)return new BigUint64Array(et.read(nt*8))}if(this._type instanceof FixedIntClass$2){if(this._type._bits==8)return new Int8Array(et.read(nt));if(this._type._bits==16)return new Int16Array(et.read(nt*2));if(this._type._bits==32)return new Int32Array(et.read(nt*4));if(this._type._bits==64)return new BigInt64Array(et.read(nt*8))}const it=[];for(let At=0;Atthis._type.valueToString(rt)).join("; ")+"}"}},OptClass$2=class HA extends ConstructType$2{constructor(et){super(),this._type=et}accept(et,tt){return et.visitOpt(this,this._type,tt)}covariant(et){return Array.isArray(et)&&(et.length===0||et.length===1&&this._type.covariant(et[0]))}encodeValue(et){return et.length===0?new Uint8Array([0]):concat$6(new Uint8Array([1]),this._type.encodeValue(et[0]))}_buildTypeTableImpl(et){this._type.buildTypeTable(et);const tt=slebEncode$2(-18),rt=this._type.encodeType(et);et.add(this,concat$6(tt,rt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof HA))throw new Error("Not an option type");switch(safeReadUint8$2(et)){case 0:return[];case 1:return[this._type.decodeValue(et,rt._type)];default:throw new Error("Not an option value")}}get name(){return`opt ${this._type.name}`}display(){return`opt ${this._type.display()}`}valueToString(et){return et.length===0?"null":`opt ${this._type.valueToString(et[0])}`}},RecordClass$2=class qA extends ConstructType$2{constructor(et={}){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitRecord(this,this._fields,tt)}tryAsTuple(){const et=[];for(let tt=0;tt{if(!et.hasOwnProperty(tt))throw new Error(`Record is missing key "${tt}".`);return rt.covariant(et[tt])})}encodeValue(et){const tt=this._fields.map(([nt])=>et[nt]),rt=zipWith$2(this._fields,tt,([,nt],it)=>nt.encodeValue(it));return concat$6(...rt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode$2(-20),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>concat$6(lebEncode$2(idlLabelToId$2(it)),At.encodeType(et)));et.add(this,concat$6(tt,rt,concat$6(...nt)))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof qA))throw new Error("Not a record type");const nt={};let it=0,At=0;for(;At=this._fields.length){ot.decodeValue(et,ot),At++;continue}const[st,ct]=this._fields[it];if(idlLabelToId$2(this._fields[it][0])!==idlLabelToId$2(at)){if(ct instanceof OptClass$2||ct instanceof ReservedClass$2){nt[st]=[],it++;continue}ot.decodeValue(et,ot),At++;continue}nt[st]=ct.decodeValue(et,ot),it++,At++}for(const[at,ot]of this._fields.slice(it))if(ot instanceof OptClass$2||ot instanceof ReservedClass$2)nt[at]=[];else throw new Error("Cannot find required field "+at);return nt}get name(){return`record {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`record {${this._fields.map(([tt,rt])=>tt+":"+rt.display()).join("; ")}}`}valueToString(et){const tt=this._fields.map(([nt])=>et[nt]);return`record {${zipWith$2(this._fields,tt,([nt,it],At)=>nt+"="+it.valueToString(At)).join("; ")}}`}},TupleClass$2=class LA extends RecordClass$2{constructor(et){const tt={};et.forEach((rt,nt)=>tt["_"+nt+"_"]=rt),super(tt),this._components=et}accept(et,tt){return et.visitTuple(this,this._components,tt)}covariant(et){return Array.isArray(et)&&et.length>=this._fields.length&&this._components.every((tt,rt)=>tt.covariant(et[rt]))}encodeValue(et){const tt=zipWith$2(this._components,et,(rt,nt)=>rt.encodeValue(nt));return concat$6(...tt)}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof LA))throw new Error("not a tuple type");if(rt._components.length=this._components.length?At.decodeValue(et,At):nt.push(this._components[it].decodeValue(et,At));return nt}display(){return`record {${this._components.map(tt=>tt.display()).join("; ")}}`}valueToString(et){return`record {${zipWith$2(this._components,et,(rt,nt)=>rt.valueToString(nt)).join("; ")}}`}},VariantClass$2=class OA extends ConstructType$2{constructor(et={}){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitVariant(this,this._fields,tt)}covariant(et){return typeof et=="object"&&Object.entries(et).length===1&&this._fields.every(([tt,rt])=>!et.hasOwnProperty(tt)||rt.covariant(et[tt]))}encodeValue(et){for(let tt=0;tt{it.buildTypeTable(et)});const tt=slebEncode$2(-21),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>concat$6(lebEncode$2(idlLabelToId$2(it)),At.encodeType(et)));et.add(this,concat$6(tt,rt,...nt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof OA))throw new Error("Not a variant type");const nt=Number(lebDecode$2(et));if(nt>=rt._fields.length)throw Error("Invalid variant index: "+nt);const[it,At]=rt._fields[nt];for(const[at,ot]of this._fields)if(idlLabelToId$2(it)===idlLabelToId$2(at)){const st=ot.decodeValue(et,At);return{[at]:st}}throw new Error("Cannot find field hash "+it)}get name(){return`variant {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`variant {${this._fields.map(([tt,rt])=>tt+(rt.name==="null"?"":`:${rt.display()}`)).join("; ")}}`}valueToString(et){for(const[tt,rt]of this._fields)if(et.hasOwnProperty(tt)){const nt=rt.valueToString(et[tt]);return nt==="null"?`variant {${tt}}`:`variant {${tt}=${nt}}`}throw new Error("Variant has no data: "+et)}},RecClass$2=class YA extends ConstructType$2{constructor(){super(...arguments),this._id=YA._counter++,this._type=void 0}accept(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return et.visitRec(this,this._type,tt)}fill(et){this._type=et}getType(){return this._type}covariant(et){return this._type?this._type.covariant(et):!1}encodeValue(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(et)}_buildTypeTableImpl(et){if(!this._type)throw Error("Recursive type uninitialized.");et.add(this,new Uint8Array([])),this._type.buildTypeTable(et),et.merge(this,this._type.name)}decodeValue(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(et,tt)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(et)}};RecClass$2._counter=0;function decodePrincipalId$2($){if(safeReadUint8$2($)!==1)throw new Error("Cannot decode principal");const tt=Number(lebDecode$2($));return Principal$5.fromUint8Array(new Uint8Array(safeRead$2($,tt)))}let PrincipalClass$2=class extends PrimitiveType$2{accept(et,tt){return et.visitPrincipal(this,tt)}covariant(et){return et&&et._isPrincipal}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$2(tt.byteLength);return concat$6(new Uint8Array([1]),rt,tt)}encodeType(){return slebEncode$2(-24)}decodeValue(et,tt){return this.checkType(tt),decodePrincipalId$2(et)}get name(){return"principal"}valueToString(et){return`${this.name} "${et.toText()}"`}},FuncClass$2=class extends ConstructType$2{constructor(et,tt,rt=[]){super(),this.argTypes=et,this.retTypes=tt,this.annotations=rt}static argsToString(et,tt){if(et.length!==tt.length)throw new Error("arity mismatch");return"("+et.map((rt,nt)=>rt.valueToString(tt[nt])).join(", ")+")"}accept(et,tt){return et.visitFunc(this,tt)}covariant(et){return Array.isArray(et)&&et.length===2&&et[0]&&et[0]._isPrincipal&&typeof et[1]=="string"}encodeValue([et,tt]){const rt=et.toUint8Array(),nt=lebEncode$2(rt.byteLength),it=concat$6(new Uint8Array([1]),nt,rt),At=new TextEncoder().encode(tt),at=lebEncode$2(At.byteLength);return concat$6(new Uint8Array([1]),it,at,At)}_buildTypeTableImpl(et){this.argTypes.forEach(st=>st.buildTypeTable(et)),this.retTypes.forEach(st=>st.buildTypeTable(et));const tt=slebEncode$2(-22),rt=lebEncode$2(this.argTypes.length),nt=concat$6(...this.argTypes.map(st=>st.encodeType(et))),it=lebEncode$2(this.retTypes.length),At=concat$6(...this.retTypes.map(st=>st.encodeType(et))),at=lebEncode$2(this.annotations.length),ot=concat$6(...this.annotations.map(st=>this.encodeAnnotation(st)));et.add(this,concat$6(tt,rt,nt,it,At,at,ot))}decodeValue(et){if(safeReadUint8$2(et)!==1)throw new Error("Cannot decode function reference");const rt=decodePrincipalId$2(et),nt=Number(lebDecode$2(et)),it=safeRead$2(et,nt),at=new TextDecoder("utf8",{fatal:!0}).decode(it);return[rt,at]}get name(){const et=this.argTypes.map(nt=>nt.name).join(", "),tt=this.retTypes.map(nt=>nt.name).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) -> (${tt})${rt}`}valueToString([et,tt]){return`func "${et.toText()}".${tt}`}display(){const et=this.argTypes.map(nt=>nt.display()).join(", "),tt=this.retTypes.map(nt=>nt.display()).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) → (${tt})${rt}`}encodeAnnotation(et){if(et==="query")return new Uint8Array([1]);if(et==="oneway")return new Uint8Array([2]);throw new Error("Illegal function annotation")}},ServiceClass$2=class extends ConstructType$2{constructor(et){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$2(tt[0])-idlLabelToId$2(rt[0]))}accept(et,tt){return et.visitService(this,tt)}covariant(et){return et&&et._isPrincipal}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$2(tt.length);return concat$6(new Uint8Array([1]),rt,tt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode$2(-23),rt=lebEncode$2(this._fields.length),nt=this._fields.map(([it,At])=>{const at=new TextEncoder().encode(it),ot=lebEncode$2(at.length);return concat$6(ot,at,At.encodeType(et))});et.add(this,concat$6(tt,rt,...nt))}decodeValue(et){return decodePrincipalId$2(et)}get name(){return`service {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}valueToString(et){return`service "${et.toText()}"`}};function toReadableString$2($){return JSON.stringify($,(et,tt)=>typeof tt=="bigint"?`BigInt(${tt})`:tt)}function encode$8($,et){if(et.length<$.length)throw Error("Wrong number of message arguments");const tt=new TypeTable$2;$.forEach(ot=>ot.buildTypeTable(tt));const rt=new TextEncoder().encode(magicNumber$2),nt=tt.encode(),it=lebEncode$2(et.length),At=concat$6(...$.map(ot=>ot.encodeType(tt))),at=concat$6(...zipWith$2($,et,(ot,st)=>{if(!ot.covariant(st))throw new Error(`Invalid ${ot.display()} argument: ${toReadableString$2(st)}`);return ot.encodeValue(st)}));return concat$6(rt,nt,it,At,at)}function decode$9($,et){const tt=new PipeArrayBuffer$2(et);if(et.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Tt=="number"&&Tt>=Pt)throw new Error("field id collision or not sorted");Tt=Pt;const Kt=Number(slebDecode$2(dt));$t.push([Pt,Kt])}ht.push([Qt,$t]);break}case-22:{const $t=[];let Gt=Number(lebDecode$2(dt));for(;Gt--;)$t.push(Number(slebDecode$2(dt)));const Tt=[];let Pt=Number(lebDecode$2(dt));for(;Pt--;)Tt.push(Number(slebDecode$2(dt)));const Kt=[];let ir=Number(lebDecode$2(dt));for(;ir--;)switch(Number(lebDecode$2(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}default:throw new Error("unknown annotation")}ht.push([Qt,[$t,Tt,Kt]]);break}case-23:{let $t=Number(lebDecode$2(dt));const Gt=[];for(;$t--;){const Tt=Number(lebDecode$2(dt)),Pt=new TextDecoder().decode(safeRead$2(dt,Tt)),Kt=slebDecode$2(dt);Gt.push([Pt,Kt])}ht.push([Qt,Gt]);break}default:throw new Error("Illegal op_code: "+Qt)}}const wt=[],mt=Number(lebDecode$2(dt));for(let pt=0;ptRec$2());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null$2;case-2:return Bool$2;case-3:return Nat$2;case-4:return Int$2;case-5:return Nat8$2;case-6:return Nat16$2;case-7:return Nat32$2;case-8:return Nat64$2;case-9:return Int8$2;case-10:return Int16$2;case-11:return Int32$2;case-12:return Int64$2;case-13:return Float32$2;case-14:return Float64$2;case-15:return Text$2;case-16:return Reserved$2;case-17:return Empty$2;case-24:return Principal$4;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec$2(ht)}case-18:{const ht=st(dt[1]);return Opt$2(ht)}case-20:{const ht={};for(const[mt,pt]of dt[1]){const Qt=`_${mt}_`;ht[Qt]=st(pt)}const Et=Record$2(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple$2(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const mt=`_${Et}_`;ht[mt]=st(wt)}return Variant$2(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func$2(ht.map(mt=>st(mt)),Et.map(mt=>st(mt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,mt]of Et){let pt=st(mt);if(pt instanceof RecClass$2&&(pt=pt.getType()),!(pt instanceof FuncClass$2))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service$2(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{const Et=ct(dt);ot[ht].fill(Et)});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty$2=new EmptyClass$2,Reserved$2=new ReservedClass$2,Unknown$2=new UnknownClass$2,Bool$2=new BoolClass$2,Null$2=new NullClass$2,Text$2=new TextClass$2,Int$2=new IntClass$2,Nat$2=new NatClass$2,Float32$2=new FloatClass$2(32),Float64$2=new FloatClass$2(64),Int8$2=new FixedIntClass$2(8),Int16$2=new FixedIntClass$2(16),Int32$2=new FixedIntClass$2(32),Int64$2=new FixedIntClass$2(64),Nat8$2=new FixedNatClass$2(8),Nat16$2=new FixedNatClass$2(16),Nat32$2=new FixedNatClass$2(32),Nat64$2=new FixedNatClass$2(64),Principal$4=new PrincipalClass$2;function Tuple$2(...$){return new TupleClass$2($)}function Vec$2($){return new VecClass$2($)}function Opt$2($){return new OptClass$2($)}function Record$2($){return new RecordClass$2($)}function Variant$2($){return new VariantClass$2($)}function Rec$2(){return new RecClass$2}function Func$2($,et,tt=[]){return new FuncClass$2($,et,tt)}function Service$2($){return new ServiceClass$2($)}const IDL$2=Object.freeze(Object.defineProperty({__proto__:null,Bool:Bool$2,BoolClass:BoolClass$2,ConstructType:ConstructType$2,Empty:Empty$2,EmptyClass:EmptyClass$2,FixedIntClass:FixedIntClass$2,FixedNatClass:FixedNatClass$2,Float32:Float32$2,Float64:Float64$2,FloatClass:FloatClass$2,Func:Func$2,FuncClass:FuncClass$2,Int:Int$2,Int16:Int16$2,Int32:Int32$2,Int64:Int64$2,Int8:Int8$2,IntClass:IntClass$2,Nat:Nat$2,Nat16:Nat16$2,Nat32:Nat32$2,Nat64:Nat64$2,Nat8:Nat8$2,NatClass:NatClass$2,Null:Null$2,NullClass:NullClass$2,Opt:Opt$2,OptClass:OptClass$2,PrimitiveType:PrimitiveType$2,Principal:Principal$4,PrincipalClass:PrincipalClass$2,Rec:Rec$2,RecClass:RecClass$2,Record:Record$2,RecordClass:RecordClass$2,Reserved:Reserved$2,ReservedClass:ReservedClass$2,Service:Service$2,ServiceClass:ServiceClass$2,Text:Text$2,TextClass:TextClass$2,Tuple:Tuple$2,TupleClass:TupleClass$2,Type:Type$2,Unknown:Unknown$2,UnknownClass:UnknownClass$2,Variant:Variant$2,VariantClass:VariantClass$2,Vec:Vec$2,VecClass:VecClass$2,Visitor:Visitor$2,decode:decode$9,encode:encode$8},Symbol.toStringTag,{value:"Module"}));var src$1={},buffer$1={};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function($){var et=base64Js,tt=ieee754$1,rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=at,$.SlowBuffer=pt,$.INSPECT_MAX_BYTES=50;var nt=2147483647;$.kMaxLength=nt,at.TYPED_ARRAY_SUPPORT=it(),!at.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function it(){try{var It=new Uint8Array(1),lt={foo:function(){return 42}};return Object.setPrototypeOf(lt,Uint8Array.prototype),Object.setPrototypeOf(It,lt),It.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function At(It){if(It>nt)throw new RangeError('The value "'+It+'" is invalid for option "size"');var lt=new Uint8Array(It);return Object.setPrototypeOf(lt,at.prototype),lt}function at(It,lt,ft){if(typeof It=="number"){if(typeof lt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(It)}return ot(It,lt,ft)}at.poolSize=8192;function ot(It,lt,ft){if(typeof It=="string")return gt(It,lt);if(ArrayBuffer.isView(It))return ht(It);if(It==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It);if(sr(It,ArrayBuffer)||It&&sr(It.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sr(It,SharedArrayBuffer)||It&&sr(It.buffer,SharedArrayBuffer)))return Et(It,lt,ft);if(typeof It=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xt=It.valueOf&&It.valueOf();if(xt!=null&&xt!==It)return at.from(xt,lt,ft);var _t=wt(It);if(_t)return _t;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof It[Symbol.toPrimitive]=="function")return at.from(It[Symbol.toPrimitive]("string"),lt,ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It)}at.from=function(It,lt,ft){return ot(It,lt,ft)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(It){if(typeof It!="number")throw new TypeError('"size" argument must be of type number');if(It<0)throw new RangeError('The value "'+It+'" is invalid for option "size"')}function ct(It,lt,ft){return st(It),It<=0?At(It):lt!==void 0?typeof ft=="string"?At(It).fill(lt,ft):At(It).fill(lt):At(It)}at.alloc=function(It,lt,ft){return ct(It,lt,ft)};function ut(It){return st(It),At(It<0?0:Qt(It)|0)}at.allocUnsafe=function(It){return ut(It)},at.allocUnsafeSlow=function(It){return ut(It)};function gt(It,lt){if((typeof lt!="string"||lt==="")&&(lt="utf8"),!at.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);var ft=mt(It,lt)|0,xt=At(ft),_t=xt.write(It,lt);return _t!==ft&&(xt=xt.slice(0,_t)),xt}function dt(It){for(var lt=It.length<0?0:Qt(It.length)|0,ft=At(lt),xt=0;xt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return It|0}function pt(It){return+It!=It&&(It=0),at.alloc(+It)}at.isBuffer=function(lt){return lt!=null&<._isBuffer===!0&<!==at.prototype},at.compare=function(lt,ft){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),sr(ft,Uint8Array)&&(ft=at.from(ft,ft.offset,ft.byteLength)),!at.isBuffer(lt)||!at.isBuffer(ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(lt===ft)return 0;for(var xt=lt.length,_t=ft.length,Lt=0,er=Math.min(xt,_t);Lt_t.length?at.from(er).copy(_t,Lt):Uint8Array.prototype.set.call(_t,er,Lt);else if(at.isBuffer(er))er.copy(_t,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=er.length}return _t};function mt(It,lt){if(at.isBuffer(It))return It.length;if(ArrayBuffer.isView(It)||sr(It,ArrayBuffer))return It.byteLength;if(typeof It!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof It);var ft=It.length,xt=arguments.length>2&&arguments[2]===!0;if(!xt&&ft===0)return 0;for(var _t=!1;;)switch(lt){case"ascii":case"latin1":case"binary":return ft;case"utf8":case"utf-8":return yr(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft*2;case"hex":return ft>>>1;case"base64":return Zt(It).length;default:if(_t)return xt?-1:yr(It).length;lt=(""+lt).toLowerCase(),_t=!0}}at.byteLength=mt;function $t(It,lt,ft){var xt=!1;if((lt===void 0||lt<0)&&(lt=0),lt>this.length||((ft===void 0||ft>this.length)&&(ft=this.length),ft<=0)||(ft>>>=0,lt>>>=0,ft<=lt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ot(this,lt,ft);case"utf8":case"utf-8":return Nt(this,lt,ft);case"ascii":return nr(this,lt,ft);case"latin1":case"binary":return Xt(this,lt,ft);case"base64":return vt(this,lt,ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,lt,ft);default:if(xt)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),xt=!0}}at.prototype._isBuffer=!0;function Tt(It,lt,ft){var xt=It[lt];It[lt]=It[ft],It[ft]=xt}at.prototype.swap16=function(){var lt=this.length;if(lt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ft=0;ftft&&(lt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(lt,ft,xt,_t,Lt){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),!at.isBuffer(lt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof lt);if(ft===void 0&&(ft=0),xt===void 0&&(xt=lt?lt.length:0),_t===void 0&&(_t=0),Lt===void 0&&(Lt=this.length),ft<0||xt>lt.length||_t<0||Lt>this.length)throw new RangeError("out of range index");if(_t>=Lt&&ft>=xt)return 0;if(_t>=Lt)return-1;if(ft>=xt)return 1;if(ft>>>=0,xt>>>=0,_t>>>=0,Lt>>>=0,this===lt)return 0;for(var er=Lt-_t,Er=xt-ft,mr=Math.min(er,Er),wr=this.slice(_t,Lt),Yr=lt.slice(ft,xt),Ft=0;Ft2147483647?ft=2147483647:ft<-2147483648&&(ft=-2147483648),ft=+ft,ur(ft)&&(ft=_t?0:It.length-1),ft<0&&(ft=It.length+ft),ft>=It.length){if(_t)return-1;ft=It.length-1}else if(ft<0)if(_t)ft=0;else return-1;if(typeof lt=="string"&&(lt=at.from(lt,xt)),at.isBuffer(lt))return lt.length===0?-1:Pt(It,lt,ft,xt,_t);if(typeof lt=="number")return lt=lt&255,typeof Uint8Array.prototype.indexOf=="function"?_t?Uint8Array.prototype.indexOf.call(It,lt,ft):Uint8Array.prototype.lastIndexOf.call(It,lt,ft):Pt(It,[lt],ft,xt,_t);throw new TypeError("val must be string, number or Buffer")}function Pt(It,lt,ft,xt,_t){var Lt=1,er=It.length,Er=lt.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(It.length<2||lt.length<2)return-1;Lt=2,er/=2,Er/=2,ft/=2}function mr(St,Wt){return Lt===1?St[Wt]:St.readUInt16BE(Wt*Lt)}var wr;if(_t){var Yr=-1;for(wr=ft;wrer&&(ft=er-Er),wr=ft;wr>=0;wr--){for(var Ft=!0,yt=0;yt_t&&(xt=_t)):xt=_t;var Lt=lt.length;xt>Lt/2&&(xt=Lt/2);for(var er=0;er>>0,isFinite(xt)?(xt=xt>>>0,_t===void 0&&(_t="utf8")):(_t=xt,xt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-ft;if((xt===void 0||xt>Lt)&&(xt=Lt),lt.length>0&&(xt<0||ft<0)||ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");_t||(_t="utf8");for(var er=!1;;)switch(_t){case"hex":return Kt(this,lt,ft,xt);case"utf8":case"utf-8":return zt(this,lt,ft,xt);case"ascii":case"latin1":case"binary":return Yt(this,lt,ft,xt);case"base64":return Mt(this,lt,ft,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,lt,ft,xt);default:if(er)throw new TypeError("Unknown encoding: "+_t);_t=(""+_t).toLowerCase(),er=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(It,lt,ft){return lt===0&&ft===It.length?et.fromByteArray(It):et.fromByteArray(It.slice(lt,ft))}function Nt(It,lt,ft){ft=Math.min(It.length,ft);for(var xt=[],_t=lt;_t239?4:Lt>223?3:Lt>191?2:1;if(_t+Er<=ft){var mr,wr,Yr,Ft;switch(Er){case 1:Lt<128&&(er=Lt);break;case 2:mr=It[_t+1],(mr&192)===128&&(Ft=(Lt&31)<<6|mr&63,Ft>127&&(er=Ft));break;case 3:mr=It[_t+1],wr=It[_t+2],(mr&192)===128&&(wr&192)===128&&(Ft=(Lt&15)<<12|(mr&63)<<6|wr&63,Ft>2047&&(Ft<55296||Ft>57343)&&(er=Ft));break;case 4:mr=It[_t+1],wr=It[_t+2],Yr=It[_t+3],(mr&192)===128&&(wr&192)===128&&(Yr&192)===128&&(Ft=(Lt&15)<<18|(mr&63)<<12|(wr&63)<<6|Yr&63,Ft>65535&&Ft<1114112&&(er=Ft))}}er===null?(er=65533,Er=1):er>65535&&(er-=65536,xt.push(er>>>10&1023|55296),er=56320|er&1023),xt.push(er),_t+=Er}return Jt(xt)}var Gt=4096;function Jt(It){var lt=It.length;if(lt<=Gt)return String.fromCharCode.apply(String,It);for(var ft="",xt=0;xtxt)&&(ft=xt);for(var _t="",Lt=lt;Ltxt&&(lt=xt),ft<0?(ft+=xt,ft<0&&(ft=0)):ft>xt&&(ft=xt),ftft)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,er=0;++er>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt+--ft],Lt=1;ft>0&&(Lt*=256);)_t+=this[lt+--ft]*Lt;return _t},at.prototype.readUint8=at.prototype.readUInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]|this[lt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]<<8|this[lt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),(this[lt]|this[lt+1]<<8|this[lt+2]<<16)+this[lt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]*16777216+(this[lt+1]<<16|this[lt+2]<<8|this[lt+3])},at.prototype.readIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,er=0;++er=Lt&&(_t-=Math.pow(2,8*ft)),_t},at.prototype.readIntBE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=ft,Lt=1,er=this[lt+--_t];_t>0&&(Lt*=256);)er+=this[lt+--_t]*Lt;return Lt*=128,er>=Lt&&(er-=Math.pow(2,8*ft)),er},at.prototype.readInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]&128?(255-this[lt]+1)*-1:this[lt]},at.prototype.readInt16LE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt]|this[lt+1]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt16BE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt+1]|this[lt]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]|this[lt+1]<<8|this[lt+2]<<16|this[lt+3]<<24},at.prototype.readInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]<<24|this[lt+1]<<16|this[lt+2]<<8|this[lt+3]},at.prototype.readFloatLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!0,23,4)},at.prototype.readFloatBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!1,23,4)},at.prototype.readDoubleLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!0,52,8)},at.prototype.readDoubleBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!1,52,8)};function Ar(It,lt,ft,xt,_t,Lt){if(!at.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(lt>_t||ltIt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var er=1,Er=0;for(this[ft]=lt&255;++Er>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var er=xt-1,Er=1;for(this[ft+er]=lt&255;--er>=0&&(Er*=256);)this[ft+er]=lt/Er&255;return ft+xt},at.prototype.writeUint8=at.prototype.writeUInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,255,0),this[ft]=lt&255,ft+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft+3]=lt>>>24,this[ft+2]=lt>>>16,this[ft+1]=lt>>>8,this[ft]=lt&255,ft+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4},at.prototype.writeIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var er=0,Er=1,mr=0;for(this[ft]=lt&255;++er>0)-mr&255;return ft+xt},at.prototype.writeIntBE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var er=xt-1,Er=1,mr=0;for(this[ft+er]=lt&255;--er>=0&&(Er*=256);)lt<0&&mr===0&&this[ft+er+1]!==0&&(mr=1),this[ft+er]=(lt/Er>>0)-mr&255;return ft+xt},at.prototype.writeInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,127,-128),lt<0&&(lt=255+lt+1),this[ft]=lt&255,ft+1},at.prototype.writeInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),this[ft]=lt&255,this[ft+1]=lt>>>8,this[ft+2]=lt>>>16,this[ft+3]=lt>>>24,ft+4},at.prototype.writeInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),lt<0&&(lt=4294967295+lt+1),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4};function cr(It,lt,ft,xt,_t,Lt){if(ft+xt>It.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("Index out of range")}function Rt(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,4),tt.write(It,lt,ft,xt,23,4),ft+4}at.prototype.writeFloatLE=function(lt,ft,xt){return Rt(this,lt,ft,!0,xt)},at.prototype.writeFloatBE=function(lt,ft,xt){return Rt(this,lt,ft,!1,xt)};function Qr(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,8),tt.write(It,lt,ft,xt,52,8),ft+8}at.prototype.writeDoubleLE=function(lt,ft,xt){return Qr(this,lt,ft,!0,xt)},at.prototype.writeDoubleBE=function(lt,ft,xt){return Qr(this,lt,ft,!1,xt)},at.prototype.copy=function(lt,ft,xt,_t){if(!at.isBuffer(lt))throw new TypeError("argument should be a Buffer");if(xt||(xt=0),!_t&&_t!==0&&(_t=this.length),ft>=lt.length&&(ft=lt.length),ft||(ft=0),_t>0&&_t=this.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("sourceEnd out of bounds");_t>this.length&&(_t=this.length),lt.length-ft<_t-xt&&(_t=lt.length-ft+xt);var Lt=_t-xt;return this===lt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ft,xt,_t):Uint8Array.prototype.set.call(lt,this.subarray(xt,_t),ft),Lt},at.prototype.fill=function(lt,ft,xt,_t){if(typeof lt=="string"){if(typeof ft=="string"?(_t=ft,ft=0,xt=this.length):typeof xt=="string"&&(_t=xt,xt=this.length),_t!==void 0&&typeof _t!="string")throw new TypeError("encoding must be a string");if(typeof _t=="string"&&!at.isEncoding(_t))throw new TypeError("Unknown encoding: "+_t);if(lt.length===1){var Lt=lt.charCodeAt(0);(_t==="utf8"&&Lt<128||_t==="latin1")&&(lt=Lt)}}else typeof lt=="number"?lt=lt&255:typeof lt=="boolean"&&(lt=Number(lt));if(ft<0||this.length>>0,xt=xt===void 0?this.length:xt>>>0,lt||(lt=0);var er;if(typeof lt=="number")for(er=ft;er55295&&ft<57344){if(!_t){if(ft>56319){(lt-=3)>-1&&Lt.push(239,191,189);continue}else if(er+1===xt){(lt-=3)>-1&&Lt.push(239,191,189);continue}_t=ft;continue}if(ft<56320){(lt-=3)>-1&&Lt.push(239,191,189),_t=ft;continue}ft=(_t-55296<<10|ft-56320)+65536}else _t&&(lt-=3)>-1&&Lt.push(239,191,189);if(_t=null,ft<128){if((lt-=1)<0)break;Lt.push(ft)}else if(ft<2048){if((lt-=2)<0)break;Lt.push(ft>>6|192,ft&63|128)}else if(ft<65536){if((lt-=3)<0)break;Lt.push(ft>>12|224,ft>>6&63|128,ft&63|128)}else if(ft<1114112){if((lt-=4)<0)break;Lt.push(ft>>18|240,ft>>12&63|128,ft>>6&63|128,ft&63|128)}else throw new Error("Invalid code point")}return Lt}function kr(It){for(var lt=[],ft=0;ft>8,_t=ft%256,Lt.push(_t),Lt.push(xt);return Lt}function Zt(It){return et.toByteArray(qr(It))}function rr(It,lt,ft,xt){for(var _t=0;_t=lt.length||_t>=It.length);++_t)lt[_t+ft]=It[_t];return _t}function sr(It,lt){return It instanceof lt||It!=null&&It.constructor!=null&&It.constructor.name!=null&&It.constructor.name===lt.name}function ur(It){return It!==It}var fr=function(){for(var It="0123456789abcdef",lt=new Array(256),ft=0;ft<16;++ft)for(var xt=ft*16,_t=0;_t<16;++_t)lt[xt+_t]=It[ft]+It[_t];return lt}()})(buffer$1);var bignumber={exports:{}};(function($){(function(et){var tt,rt=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,nt=Math.ceil,it=Math.floor,At="[BigNumber Error] ",at=At+"Number primitive has more than 15 significant digits: ",ot=1e14,st=14,ct=9007199254740991,ut=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],gt=1e7,dt=1e9;function ht(Ut){var Pt,Kt,zt,Yt=Rt.prototype={constructor:Rt,toString:null,valueOf:null},Mt=new Rt(1),Bt=20,vt=4,Nt=-7,Gt=21,Jt=-1e7,nr=1e7,Xt=!1,Ot=1,bt=0,kt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Ar="0123456789abcdefghijklmnopqrstuvwxyz",cr=!0;function Rt(jt,Zt){var rr,sr,ur,fr,It,lt,ft,xt,_t=this;if(!(_t instanceof Rt))return new Rt(jt,Zt);if(Zt==null){if(jt&&jt._isBigNumber===!0){_t.s=jt.s,!jt.c||jt.e>nr?_t.c=_t.e=null:jt.e=10;It/=10,fr++);fr>nr?_t.c=_t.e=null:(_t.e=fr,_t.c=[jt]);return}xt=String(jt)}else{if(!rt.test(xt=String(jt)))return zt(_t,xt,lt);_t.s=xt.charCodeAt(0)==45?(xt=xt.slice(1),-1):1}(fr=xt.indexOf("."))>-1&&(xt=xt.replace(".","")),(It=xt.search(/e/i))>0?(fr<0&&(fr=It),fr+=+xt.slice(It+1),xt=xt.substring(0,It)):fr<0&&(fr=xt.length)}else{if(pt(Zt,2,Ar.length,"Base"),Zt==10&&cr)return _t=new Rt(jt),yr(_t,Bt+_t.e+1,vt);if(xt=String(jt),lt=typeof jt=="number"){if(jt*0!=0)return zt(_t,xt,lt,Zt);if(_t.s=1/jt<0?(xt=xt.slice(1),-1):1,Rt.DEBUG&&xt.replace(/^0\.0*|\./,"").length>15)throw Error(at+jt)}else _t.s=xt.charCodeAt(0)===45?(xt=xt.slice(1),-1):1;for(rr=Ar.slice(0,Zt),fr=It=0,ft=xt.length;Itfr){fr=ft;continue}}else if(!ur&&(xt==xt.toUpperCase()&&(xt=xt.toLowerCase())||xt==xt.toLowerCase()&&(xt=xt.toUpperCase()))){ur=!0,It=-1,fr=0;continue}return zt(_t,String(jt),lt,Zt)}lt=!1,xt=Kt(xt,Zt,10,_t.s),(fr=xt.indexOf("."))>-1?xt=xt.replace(".",""):fr=xt.length}for(It=0;xt.charCodeAt(It)===48;It++);for(ft=xt.length;xt.charCodeAt(--ft)===48;);if(xt=xt.slice(It,++ft)){if(ft-=It,lt&&Rt.DEBUG&&ft>15&&(jt>ct||jt!==it(jt)))throw Error(at+_t.s*jt);if((fr=fr-It-1)>nr)_t.c=_t.e=null;else if(fr=-dt&&ur<=dt&&ur===it(ur)){if(sr[0]===0){if(ur===0&&sr.length===1)return!0;break e}if(Zt=(ur+1)%st,Zt<1&&(Zt+=st),String(sr[0]).length==Zt){for(Zt=0;Zt=ot||rr!==it(rr))break e;if(rr!==0)return!0}}}else if(sr===null&&ur===null&&(fr===null||fr===1||fr===-1))return!0;throw Error(At+"Invalid BigNumber: "+jt)},Rt.maximum=Rt.max=function(){return _r(arguments,-1)},Rt.minimum=Rt.min=function(){return _r(arguments,1)},Rt.random=function(){var jt=9007199254740992,Zt=Math.random()*jt&2097151?function(){return it(Math.random()*jt)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(rr){var sr,ur,fr,It,lt,ft=0,xt=[],_t=new Rt(Mt);if(rr==null?rr=Bt:pt(rr,0,dt),It=nt(rr/st),Xt)if(crypto.getRandomValues){for(sr=crypto.getRandomValues(new Uint32Array(It*=2));ft>>11),lt>=9e15?(ur=crypto.getRandomValues(new Uint32Array(2)),sr[ft]=ur[0],sr[ft+1]=ur[1]):(xt.push(lt%1e14),ft+=2);ft=It/2}else if(crypto.randomBytes){for(sr=crypto.randomBytes(It*=7);ft=9e15?crypto.randomBytes(7).copy(sr,ft):(xt.push(lt%1e14),ft+=7);ft=It/7}else throw Xt=!1,Error(At+"crypto unavailable");if(!Xt)for(;ft=10;lt/=10,ft++);ftur-1&&(lt[It+1]==null&&(lt[It+1]=0),lt[It+1]+=lt[It]/ur|0,lt[It]%=ur)}return lt.reverse()}return function(rr,sr,ur,fr,It){var lt,ft,xt,_t,Lt,er,Er,mr,wr=rr.indexOf("."),Yr=Bt,Ft=vt;for(wr>=0&&(_t=bt,bt=0,rr=rr.replace(".",""),mr=new Rt(sr),er=mr.pow(rr.length-wr),bt=_t,mr.c=Zt(Tt(wt(er.c),er.e,"0"),10,ur,jt),mr.e=mr.c.length),Er=Zt(rr,sr,ur,It?(lt=Ar,jt):(lt=jt,Ar)),xt=_t=Er.length;Er[--_t]==0;Er.pop());if(!Er[0])return lt.charAt(0);if(wr<0?--xt:(er.c=Er,er.e=xt,er.s=fr,er=Pt(er,mr,Yr,Ft,ur),Er=er.c,Lt=er.r,xt=er.e),ft=xt+Yr+1,wr=Er[ft],_t=ur/2,Lt=Lt||ft<0||Er[ft+1]!=null,Lt=Ft<4?(wr!=null||Lt)&&(Ft==0||Ft==(er.s<0?3:2)):wr>_t||wr==_t&&(Ft==4||Lt||Ft==6&&Er[ft-1]&1||Ft==(er.s<0?8:7)),ft<1||!Er[0])rr=Lt?Tt(lt.charAt(1),-Yr,lt.charAt(0)):lt.charAt(0);else{if(Er.length=ft,Lt)for(--ur;++Er[--ft]>ur;)Er[ft]=0,ft||(++xt,Er=[1].concat(Er));for(_t=Er.length;!Er[--_t];);for(wr=0,rr="";wr<=_t;rr+=lt.charAt(Er[wr++]));rr=Tt(rr,xt,lt.charAt(0))}return rr}}(),Pt=function(){function jt(sr,ur,fr){var It,lt,ft,xt,_t=0,Lt=sr.length,er=ur%gt,Er=ur/gt|0;for(sr=sr.slice();Lt--;)ft=sr[Lt]%gt,xt=sr[Lt]/gt|0,It=Er*ft+xt*er,lt=er*ft+It%gt*gt+_t,_t=(lt/fr|0)+(It/gt|0)+Er*xt,sr[Lt]=lt%fr;return _t&&(sr=[_t].concat(sr)),sr}function Zt(sr,ur,fr,It){var lt,ft;if(fr!=It)ft=fr>It?1:-1;else for(lt=ft=0;ltur[lt]?1:-1;break}return ft}function rr(sr,ur,fr,It){for(var lt=0;fr--;)sr[fr]-=lt,lt=sr[fr]1;sr.splice(0,1));}return function(sr,ur,fr,It,lt){var ft,xt,_t,Lt,er,Er,mr,wr,Yr,Ft,yt,St,Wt,or,Br,gr,Lr,cn=sr.s==ur.s?1:-1,Pr=sr.c,Tr=ur.c;if(!Pr||!Pr[0]||!Tr||!Tr[0])return new Rt(!sr.s||!ur.s||(Pr?Tr&&Pr[0]==Tr[0]:!Tr)?NaN:Pr&&Pr[0]==0||!Tr?cn*0:cn/0);for(wr=new Rt(cn),Yr=wr.c=[],xt=sr.e-ur.e,cn=fr+xt+1,lt||(lt=ot,xt=Et(sr.e/st)-Et(ur.e/st),cn=cn/st|0),_t=0;Tr[_t]==(Pr[_t]||0);_t++);if(Tr[_t]>(Pr[_t]||0)&&xt--,cn<0)Yr.push(1),Lt=!0;else{for(or=Pr.length,gr=Tr.length,_t=0,cn+=2,er=it(lt/(Tr[0]+1)),er>1&&(Tr=jt(Tr,er,lt),Pr=jt(Pr,er,lt),gr=Tr.length,or=Pr.length),Wt=gr,Ft=Pr.slice(0,gr),yt=Ft.length;yt=lt/2&&Br++;do{if(er=0,ft=Zt(Tr,Ft,gr,yt),ft<0){if(St=Ft[0],gr!=yt&&(St=St*lt+(Ft[1]||0)),er=it(St/Br),er>1)for(er>=lt&&(er=lt-1),Er=jt(Tr,er,lt),mr=Er.length,yt=Ft.length;Zt(Er,Ft,mr,yt)==1;)er--,rr(Er,gr=10;cn/=10,_t++);yr(wr,fr+(wr.e=_t+xt*st-1)+1,It,Lt)}else wr.e=xt,wr.r=+Lt;return wr}}();function Qr(jt,Zt,rr,sr){var ur,fr,It,lt,ft;if(rr==null?rr=vt:pt(rr,0,8),!jt.c)return jt.toString();if(ur=jt.c[0],It=jt.e,Zt==null)ft=wt(jt.c),ft=sr==1||sr==2&&(It<=Nt||It>=Gt)?$t(ft,It):Tt(ft,It,"0");else if(jt=yr(new Rt(jt),Zt,rr),fr=jt.e,ft=wt(jt.c),lt=ft.length,sr==1||sr==2&&(Zt<=fr||fr<=Nt)){for(;ltlt){if(--Zt>0)for(ft+=".";Zt--;ft+="0");}else if(Zt+=fr-lt,Zt>0)for(fr+1==lt&&(ft+=".");Zt--;ft+="0");return jt.s<0&&ur?"-"+ft:ft}function _r(jt,Zt){for(var rr,sr,ur=1,fr=new Rt(jt[0]);ur=10;ur/=10,sr++);return(rr=sr+rr*st-1)>nr?jt.c=jt.e=null:rr=10;lt/=10,ur++);if(fr=Zt-ur,fr<0)fr+=st,It=Zt,ft=Lt[xt=0],_t=it(ft/er[ur-It-1]%10);else if(xt=nt((fr+1)/st),xt>=Lt.length)if(sr){for(;Lt.length<=xt;Lt.push(0));ft=_t=0,ur=1,fr%=st,It=fr-st+1}else break e;else{for(ft=lt=Lt[xt],ur=1;lt>=10;lt/=10,ur++);fr%=st,It=fr-st+ur,_t=It<0?0:it(ft/er[ur-It-1]%10)}if(sr=sr||Zt<0||Lt[xt+1]!=null||(It<0?ft:ft%er[ur-It-1]),sr=rr<4?(_t||sr)&&(rr==0||rr==(jt.s<0?3:2)):_t>5||_t==5&&(rr==4||sr||rr==6&&(fr>0?It>0?ft/er[ur-It]:0:Lt[xt-1])%10&1||rr==(jt.s<0?8:7)),Zt<1||!Lt[0])return Lt.length=0,sr?(Zt-=jt.e+1,Lt[0]=er[(st-Zt%st)%st],jt.e=-Zt||0):Lt[0]=jt.e=0,jt;if(fr==0?(Lt.length=xt,lt=1,xt--):(Lt.length=xt+1,lt=er[st-fr],Lt[xt]=It>0?it(ft/er[ur-It]%er[It])*lt:0),sr)for(;;)if(xt==0){for(fr=1,It=Lt[0];It>=10;It/=10,fr++);for(It=Lt[0]+=lt,lt=1;It>=10;It/=10,lt++);fr!=lt&&(jt.e++,Lt[0]==ot&&(Lt[0]=1));break}else{if(Lt[xt]+=lt,Lt[xt]!=ot)break;Lt[xt--]=0,lt=1}for(fr=Lt.length;Lt[--fr]===0;Lt.pop());}jt.e>nr?jt.c=jt.e=null:jt.e=Gt?$t(Zt,rr):Tt(Zt,rr,"0"),jt.s<0?"-"+Zt:Zt)}return Yt.absoluteValue=Yt.abs=function(){var jt=new Rt(this);return jt.s<0&&(jt.s=1),jt},Yt.comparedTo=function(jt,Zt){return Qt(this,new Rt(jt,Zt))},Yt.decimalPlaces=Yt.dp=function(jt,Zt){var rr,sr,ur,fr=this;if(jt!=null)return pt(jt,0,dt),Zt==null?Zt=vt:pt(Zt,0,8),yr(new Rt(fr),jt+fr.e+1,Zt);if(!(rr=fr.c))return null;if(sr=((ur=rr.length-1)-Et(this.e/st))*st,ur=rr[ur])for(;ur%10==0;ur/=10,sr--);return sr<0&&(sr=0),sr},Yt.dividedBy=Yt.div=function(jt,Zt){return Pt(this,new Rt(jt,Zt),Bt,vt)},Yt.dividedToIntegerBy=Yt.idiv=function(jt,Zt){return Pt(this,new Rt(jt,Zt),0,1)},Yt.exponentiatedBy=Yt.pow=function(jt,Zt){var rr,sr,ur,fr,It,lt,ft,xt,_t,Lt=this;if(jt=new Rt(jt),jt.c&&!jt.isInteger())throw Error(At+"Exponent not an integer: "+kr(jt));if(Zt!=null&&(Zt=new Rt(Zt)),lt=jt.e>14,!Lt.c||!Lt.c[0]||Lt.c[0]==1&&!Lt.e&&Lt.c.length==1||!jt.c||!jt.c[0])return _t=new Rt(Math.pow(+kr(Lt),lt?jt.s*(2-mt(jt)):+kr(jt))),Zt?_t.mod(Zt):_t;if(ft=jt.s<0,Zt){if(Zt.c?!Zt.c[0]:!Zt.s)return new Rt(NaN);sr=!ft&&Lt.isInteger()&&Zt.isInteger(),sr&&(Lt=Lt.mod(Zt))}else{if(jt.e>9&&(Lt.e>0||Lt.e<-1||(Lt.e==0?Lt.c[0]>1||lt&&Lt.c[1]>=24e7:Lt.c[0]<8e13||lt&&Lt.c[0]<=9999975e7)))return fr=Lt.s<0&&mt(jt)?-0:0,Lt.e>-1&&(fr=1/fr),new Rt(ft?1/fr:fr);bt&&(fr=nt(bt/st+2))}for(lt?(rr=new Rt(.5),ft&&(jt.s=1),xt=mt(jt)):(ur=Math.abs(+kr(jt)),xt=ur%2),_t=new Rt(Mt);;){if(xt){if(_t=_t.times(Lt),!_t.c)break;fr?_t.c.length>fr&&(_t.c.length=fr):sr&&(_t=_t.mod(Zt))}if(ur){if(ur=it(ur/2),ur===0)break;xt=ur%2}else if(jt=jt.times(rr),yr(jt,jt.e+1,1),jt.e>14)xt=mt(jt);else{if(ur=+kr(jt),ur===0)break;xt=ur%2}Lt=Lt.times(Lt),fr?Lt.c&&Lt.c.length>fr&&(Lt.c.length=fr):sr&&(Lt=Lt.mod(Zt))}return sr?_t:(ft&&(_t=Mt.div(_t)),Zt?_t.mod(Zt):fr?yr(_t,bt,vt,It):_t)},Yt.integerValue=function(jt){var Zt=new Rt(this);return jt==null?jt=vt:pt(jt,0,8),yr(Zt,Zt.e+1,jt)},Yt.isEqualTo=Yt.eq=function(jt,Zt){return Qt(this,new Rt(jt,Zt))===0},Yt.isFinite=function(){return!!this.c},Yt.isGreaterThan=Yt.gt=function(jt,Zt){return Qt(this,new Rt(jt,Zt))>0},Yt.isGreaterThanOrEqualTo=Yt.gte=function(jt,Zt){return(Zt=Qt(this,new Rt(jt,Zt)))===1||Zt===0},Yt.isInteger=function(){return!!this.c&&Et(this.e/st)>this.c.length-2},Yt.isLessThan=Yt.lt=function(jt,Zt){return Qt(this,new Rt(jt,Zt))<0},Yt.isLessThanOrEqualTo=Yt.lte=function(jt,Zt){return(Zt=Qt(this,new Rt(jt,Zt)))===-1||Zt===0},Yt.isNaN=function(){return!this.s},Yt.isNegative=function(){return this.s<0},Yt.isPositive=function(){return this.s>0},Yt.isZero=function(){return!!this.c&&this.c[0]==0},Yt.minus=function(jt,Zt){var rr,sr,ur,fr,It=this,lt=It.s;if(jt=new Rt(jt,Zt),Zt=jt.s,!lt||!Zt)return new Rt(NaN);if(lt!=Zt)return jt.s=-Zt,It.plus(jt);var ft=It.e/st,xt=jt.e/st,_t=It.c,Lt=jt.c;if(!ft||!xt){if(!_t||!Lt)return _t?(jt.s=-Zt,jt):new Rt(Lt?It:NaN);if(!_t[0]||!Lt[0])return Lt[0]?(jt.s=-Zt,jt):new Rt(_t[0]?It:vt==3?-0:0)}if(ft=Et(ft),xt=Et(xt),_t=_t.slice(),lt=ft-xt){for((fr=lt<0)?(lt=-lt,ur=_t):(xt=ft,ur=Lt),ur.reverse(),Zt=lt;Zt--;ur.push(0));ur.reverse()}else for(sr=(fr=(lt=_t.length)<(Zt=Lt.length))?lt:Zt,lt=Zt=0;Zt0)for(;Zt--;_t[rr++]=0);for(Zt=ot-1;sr>lt;){if(_t[--sr]=0;){for(rr=0,er=St[ur]%Yr,Er=St[ur]/Yr|0,It=ft,fr=ur+It;fr>ur;)xt=yt[--It]%Yr,_t=yt[It]/Yr|0,lt=Er*xt+_t*er,xt=er*xt+lt%Yr*Yr+mr[fr]+rr,rr=(xt/wr|0)+(lt/Yr|0)+Er*_t,mr[fr--]=xt%wr;mr[fr]=rr}return rr?++sr:mr.splice(0,1),qr(jt,mr,sr)},Yt.negated=function(){var jt=new Rt(this);return jt.s=-jt.s||null,jt},Yt.plus=function(jt,Zt){var rr,sr=this,ur=sr.s;if(jt=new Rt(jt,Zt),Zt=jt.s,!ur||!Zt)return new Rt(NaN);if(ur!=Zt)return jt.s=-Zt,sr.minus(jt);var fr=sr.e/st,It=jt.e/st,lt=sr.c,ft=jt.c;if(!fr||!It){if(!lt||!ft)return new Rt(ur/0);if(!lt[0]||!ft[0])return ft[0]?jt:new Rt(lt[0]?sr:ur*0)}if(fr=Et(fr),It=Et(It),lt=lt.slice(),ur=fr-It){for(ur>0?(It=fr,rr=ft):(ur=-ur,rr=lt),rr.reverse();ur--;rr.push(0));rr.reverse()}for(ur=lt.length,Zt=ft.length,ur-Zt<0&&(rr=ft,ft=lt,lt=rr,Zt=ur),ur=0;Zt;)ur=(lt[--Zt]=lt[Zt]+ft[Zt]+ur)/ot|0,lt[Zt]=ot===lt[Zt]?0:lt[Zt]%ot;return ur&&(lt=[ur].concat(lt),++It),qr(jt,lt,It)},Yt.precision=Yt.sd=function(jt,Zt){var rr,sr,ur,fr=this;if(jt!=null&&jt!==!!jt)return pt(jt,1,dt),Zt==null?Zt=vt:pt(Zt,0,8),yr(new Rt(fr),jt,Zt);if(!(rr=fr.c))return null;if(ur=rr.length-1,sr=ur*st+1,ur=rr[ur]){for(;ur%10==0;ur/=10,sr--);for(ur=rr[0];ur>=10;ur/=10,sr++);}return jt&&fr.e+1>sr&&(sr=fr.e+1),sr},Yt.shiftedBy=function(jt){return pt(jt,-ct,ct),this.times("1e"+jt)},Yt.squareRoot=Yt.sqrt=function(){var jt,Zt,rr,sr,ur,fr=this,It=fr.c,lt=fr.s,ft=fr.e,xt=Bt+4,_t=new Rt("0.5");if(lt!==1||!It||!It[0])return new Rt(!lt||lt<0&&(!It||It[0])?NaN:It?fr:1/0);if(lt=Math.sqrt(+kr(fr)),lt==0||lt==1/0?(Zt=wt(It),(Zt.length+ft)%2==0&&(Zt+="0"),lt=Math.sqrt(+Zt),ft=Et((ft+1)/2)-(ft<0||ft%2),lt==1/0?Zt="5e"+ft:(Zt=lt.toExponential(),Zt=Zt.slice(0,Zt.indexOf("e")+1)+ft),rr=new Rt(Zt)):rr=new Rt(lt+""),rr.c[0]){for(ft=rr.e,lt=ft+xt,lt<3&&(lt=0);;)if(ur=rr,rr=_t.times(ur.plus(Pt(fr,ur,xt,1))),wt(ur.c).slice(0,lt)===(Zt=wt(rr.c)).slice(0,lt))if(rr.e0&&mr>0){for(fr=mr%lt||lt,_t=Er.substr(0,fr);fr0&&(_t+=xt+Er.slice(fr)),er&&(_t="-"+_t)}sr=Lt?_t+(rr.decimalSeparator||"")+((ft=+rr.fractionGroupSize)?Lt.replace(new RegExp("\\d{"+ft+"}\\B","g"),"$&"+(rr.fractionGroupSeparator||"")):Lt):_t}return(rr.prefix||"")+sr+(rr.suffix||"")},Yt.toFraction=function(jt){var Zt,rr,sr,ur,fr,It,lt,ft,xt,_t,Lt,er,Er=this,mr=Er.c;if(jt!=null&&(lt=new Rt(jt),!lt.isInteger()&&(lt.c||lt.s!==1)||lt.lt(Mt)))throw Error(At+"Argument "+(lt.isInteger()?"out of range: ":"not an integer: ")+kr(lt));if(!mr)return new Rt(Er);for(Zt=new Rt(Mt),xt=rr=new Rt(Mt),sr=ft=new Rt(Mt),er=wt(mr),fr=Zt.e=er.length-Er.e-1,Zt.c[0]=ut[(It=fr%st)<0?st+It:It],jt=!jt||lt.comparedTo(Zt)>0?fr>0?Zt:xt:lt,It=nr,nr=1/0,lt=new Rt(er),ft.c[0]=0;_t=Pt(lt,Zt,0,1),ur=rr.plus(_t.times(sr)),ur.comparedTo(jt)!=1;)rr=sr,sr=ur,xt=ft.plus(_t.times(ur=xt)),ft=ur,Zt=lt.minus(_t.times(ur=Zt)),lt=ur;return ur=Pt(jt.minus(rr),sr,0,1),ft=ft.plus(ur.times(xt)),rr=rr.plus(ur.times(sr)),ft.s=xt.s=Er.s,fr=fr*2,Lt=Pt(xt,sr,fr,vt).minus(Er).abs().comparedTo(Pt(ft,rr,fr,vt).minus(Er).abs())<1?[xt,sr]:[ft,rr],nr=It,Lt},Yt.toNumber=function(){return+kr(this)},Yt.toPrecision=function(jt,Zt){return jt!=null&&pt(jt,1,dt),Qr(this,jt,Zt,2)},Yt.toString=function(jt){var Zt,rr=this,sr=rr.s,ur=rr.e;return ur===null?sr?(Zt="Infinity",sr<0&&(Zt="-"+Zt)):Zt="NaN":(jt==null?Zt=ur<=Nt||ur>=Gt?$t(wt(rr.c),ur):Tt(wt(rr.c),ur,"0"):jt===10&&cr?(rr=yr(new Rt(rr),Bt+ur+1,vt),Zt=Tt(wt(rr.c),rr.e,"0")):(pt(jt,2,Ar.length,"Base"),Zt=Kt(Tt(wt(rr.c),ur,"0"),10,jt,sr,!0)),sr<0&&rr.c[0]&&(Zt="-"+Zt)),Zt},Yt.valueOf=Yt.toJSON=function(){return kr(this)},Yt._isBigNumber=!0,Ut!=null&&Rt.set(Ut),Rt}function Et(Ut){var Pt=Ut|0;return Ut>0||Ut===Pt?Pt:Pt-1}function wt(Ut){for(var Pt,Kt,zt=1,Yt=Ut.length,Mt=Ut[0]+"";ztGt^Kt?1:-1;for(vt=(Nt=Yt.length)<(Gt=Mt.length)?Nt:Gt,Bt=0;BtMt[Bt]^Kt?1:-1;return Nt==Gt?0:Nt>Gt^Kt?1:-1}function pt(Ut,Pt,Kt,zt){if(UtKt||Ut!==it(Ut))throw Error(At+(zt||"Argument")+(typeof Ut=="number"?UtKt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(Ut))}function mt(Ut){var Pt=Ut.c.length-1;return Et(Ut.e/st)==Pt&&Ut.c[Pt]%2!=0}function $t(Ut,Pt){return(Ut.length>1?Ut.charAt(0)+"."+Ut.slice(1):Ut)+(Pt<0?"e":"e+")+Pt}function Tt(Ut,Pt,Kt){var zt,Yt;if(Pt<0){for(Yt=Kt+".";++Pt;Yt+=Kt);Ut=Yt+Ut}else if(zt=Ut.length,++Pt>zt){for(Yt=Kt,Pt-=zt;--Pt;Yt+=Kt);Ut+=Yt}else Pt0)););return _r|0}function yr(ir){return ir=ir|0,((Rt|0)+(ir|0)|0)<(Qr|0)?0:1}function kr(ir){return ir=ir|0,nt[ir|0]<<8|nt[ir+1|0]|0}function jt(ir){return ir=ir|0,nt[ir|0]<<24|nt[ir+1|0]<<16|nt[ir+2|0]<<8|nt[ir+3|0]|0}function Zt(ir){return ir=ir|0,it(ir|0),Rt=Rt+1|0,0}function rr(ir){return ir=ir|0,yr(1)|0?1:(it(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function sr(ir){return ir=ir|0,yr(2)|0?1:(it(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function ur(ir){return ir=ir|0,yr(4)|0?1:(At(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function fr(ir){return ir=ir|0,yr(8)|0?1:(ot(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function It(ir){return ir=ir|0,it(-1-(ir-32|0)|0),Rt=Rt+1|0,0}function lt(ir){return ir=ir|0,yr(1)|0?1:(it(-1-(nt[Rt+1|0]|0)|0),Rt=Rt+2|0,0)}function ft(ir){ir=ir|0;var Rr=0;return yr(2)|0?1:(Rr=kr(Rt+1|0)|0,it(-1-(Rr|0)|0),Rt=Rt+3|0,0)}function xt(ir){return ir=ir|0,yr(4)|0?1:(at(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function _t(ir){return ir=ir|0,yr(8)|0?1:(st(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Lt(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return $r=ir-64|0,yr($r|0)|0?1:(Rr=Rt+1|0,Mr=(Rt+1|0)+($r|0)|0,vt(Rr|0,Mr|0),Rt=Mr|0,0)}function er(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(1)|0||($r=nt[Rt+1|0]|0,Rr=Rt+2|0,Mr=(Rt+2|0)+($r|0)|0,yr($r+1|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function Er(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(2)|0||($r=kr(Rt+1|0)|0,Rr=Rt+3|0,Mr=(Rt+3|0)+($r|0)|0,yr($r+2|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function mr(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(4)|0||($r=jt(Rt+1|0)|0,Rr=Rt+5|0,Mr=(Rt+5|0)+($r|0)|0,yr($r+4|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function wr(ir){return ir=ir|0,1}function Yr(ir){return ir=ir|0,Nt(),Rt=Rt+1|0,0}function Ft(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return $r=ir-96|0,yr($r|0)|0?1:(Rr=Rt+1|0,Mr=(Rt+1|0)+($r|0)|0,Gt(Rr|0,Mr|0),Rt=Mr|0,0)}function yt(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(1)|0||($r=nt[Rt+1|0]|0,Rr=Rt+2|0,Mr=(Rt+2|0)+($r|0)|0,yr($r+1|0)|0)?1:(Gt(Rr|0,Mr|0),Rt=Mr|0,0)}function St(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(2)|0||($r=kr(Rt+1|0)|0,Rr=Rt+3|0,Mr=(Rt+3|0)+($r|0)|0,yr($r+2|0)|0)?1:(Gt(Rr|0,Mr|0),Rt=Mr|0,0)}function Wt(ir){ir=ir|0;var Rr=0,Mr=0,$r=0;return yr(4)|0||($r=jt(Rt+1|0)|0,Rr=Rt+5|0,Mr=(Rt+5|0)+($r|0)|0,yr($r+4|0)|0)?1:(Gt(Rr|0,Mr|0),Rt=Mr|0,0)}function or(ir){return ir=ir|0,1}function Br(ir){return ir=ir|0,Jt(),Rt=Rt+1|0,0}function gr(ir){return ir=ir|0,Ut(ir-128|0),Rt=Rt+1|0,0}function Lr(ir){return ir=ir|0,yr(1)|0?1:(Ut(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function cn(ir){return ir=ir|0,yr(2)|0?1:(Ut(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Pr(ir){return ir=ir|0,yr(4)|0?1:(Pt(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Tr(ir){return ir=ir|0,yr(8)|0?1:(Kt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Bn(ir){return ir=ir|0,Tt(),Rt=Rt+1|0,0}function Wr(ir){ir=ir|0;var Rr=0;return Rr=ir-160|0,yr(Rr|0)|0?1:(Yt(Rr|0),Rt=Rt+1|0,0)}function Rn(ir){return ir=ir|0,yr(1)|0?1:(Yt(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function _i(ir){return ir=ir|0,yr(2)|0?1:(Yt(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Fn(ir){return ir=ir|0,yr(4)|0?1:(Mt(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Gn(ir){return ir=ir|0,yr(8)|0?1:(Bt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Hn(ir){return ir=ir|0,zt(),Rt=Rt+1|0,0}function yn(ir){return ir=ir|0,Xt(ir-192|0|0),Rt=Rt+1|0,0}function Dn(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function rA(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function Nn(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function Tn(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function wn(ir){return ir=ir|0,Xt(ir-192|0|0),Rt=Rt+1|0,0}function xn(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function Cn(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function Dt(ir){return ir=ir|0,Xt(ir|0),Rt=Rt+1|0,0}function qt(ir){return ir=ir|0,yr(1)|0?1:(Xt(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function Ht(ir){return ir=ir|0,yr(2)|0?1:(Xt(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Ct(ir){return ir=ir|0,yr(4)|0?1:(Ot(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Vt(ir){return ir=ir|0,yr(8)|0?1:(bt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function lr(ir){return ir=ir|0,nr((ir|0)-224|0),Rt=Rt+1|0,0}function hr(ir){return ir=ir|0,ht(),Rt=Rt+1|0,0}function Cr(ir){return ir=ir|0,dt(),Rt=Rt+1|0,0}function br(ir){return ir=ir|0,wt(),Rt=Rt+1|0,0}function jr(ir){return ir=ir|0,Et(),Rt=Rt+1|0,0}function Gr(ir){return ir=ir|0,yr(1)|0?1:(nr(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function In(ir){ir=ir|0;var Rr=0,Mr=0,$r=1,Jr=0,Nr=0,Vr=0;return yr(2)|0?1:(Rr=nt[Rt+1|0]|0,Mr=nt[Rt+2|0]|0,(Rr|0)&128&&($r=-1),Jr=+(((Rr|0)&124)>>2),Nr=+(((Rr|0)&3)<<8|Mr),+Jr==0?ct(+(+$r*5960464477539063e-23*+Nr)):+Jr==31?+$r==1?+Nr>0?mt():Qt():+Nr>0?$t():pt():ct(+(+$r*cr(2,+(+Jr-25))*+(1024+Nr))),Rt=Rt+3|0,0)}function Or(ir){return ir=ir|0,yr(4)|0?1:(ut(nt[Rt+1|0]|0,nt[Rt+2|0]|0,nt[Rt+3|0]|0,nt[Rt+4|0]|0),Rt=Rt+5|0,0)}function Xr(ir){return ir=ir|0,yr(8)|0?1:(gt(nt[Rt+1|0]|0,nt[Rt+2|0]|0,nt[Rt+3|0]|0,nt[Rt+4|0]|0,nt[Rt+5|0]|0,nt[Rt+6|0]|0,nt[Rt+7|0]|0,nt[Rt+8|0]|0),Rt=Rt+9|0,0)}function Ur(ir){return ir=ir|0,1}function ln(ir){return ir=ir|0,Ar(),Rt=Rt+1|0,0}var sn=[Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,Zt,rr,sr,ur,fr,Ur,Ur,Ur,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,BASE64:34,REGEXP:35,MIME:36};constants$2.NUMBYTES={ZERO:0,ONE:24,TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};constants$2.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};constants$2.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")};constants$2.SHIFT32=Math.pow(2,32);constants$2.SHIFT16=Math.pow(2,16);constants$2.MAX_SAFE_HIGH=2097151;constants$2.NEG_ONE=new Bignumber$2(-1);constants$2.TEN=new Bignumber$2(10);constants$2.TWO=new Bignumber$2(2);constants$2.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5};(function($){const{Buffer:et}=buffer$1,tt=bignumberExports.BigNumber,rt=constants$2,nt=rt.SHIFT32,it=rt.SHIFT16,At=2097151;$.parseHalf=function(st){var ct,ut,gt;return gt=st[0]&128?-1:1,ct=(st[0]&124)>>2,ut=(st[0]&3)<<8|st[1],ct?ct===31?gt*(ut?0/0:1/0):gt*Math.pow(2,ct-25)*(1024+ut):gt*5960464477539063e-23*ut};function at(ot){return ot<16?"0"+ot.toString(16):ot.toString(16)}$.arrayBufferToBignumber=function(ot){const st=ot.byteLength;let ct="";for(let ut=0;ut{const st=new Map,ct=Object.keys(ot),ut=ct.length;for(let gt=0;gtot*it+st,$.buildInt64=(ot,st,ct,ut)=>{const gt=$.buildInt32(ot,st),dt=$.buildInt32(ct,ut);return gt>At?new tt(gt).times(nt).plus(dt):gt*nt+dt},$.writeHalf=function(st,ct){const ut=et.allocUnsafe(4);ut.writeFloatBE(ct,0);const gt=ut.readUInt32BE(0);if(gt&8191)return!1;var dt=gt>>16&32768;const ht=gt>>23&255,Et=gt&8388607;if(ht>=113&&ht<=142)dt+=(ht-112<<10)+(Et>>13);else if(ht>=103&&ht<113){if(Et&(1<<126-ht)-1)return!1;dt+=Et+8388608>>126-ht}else return!1;return st.writeUInt16BE(dt,0),!0},$.keySorter=function(ot,st){var ct=ot[0].byteLength,ut=st[0].byteLength;return ct>ut?1:ut>ct?-1:ot[0].compare(st[0])},$.isNegativeZero=ot=>ot===0&&1/ot<0,$.nextPowerOf2=ot=>{let st=0;if(ot&&!(ot&ot-1))return ot;for(;ot!==0;)ot>>=1,st+=1;return 1<255||(et|0)!==et)throw new Error("value must be a small positive integer: "+et);this.value=et}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(et){return et._pushInt(this.value,MT$1.SIMPLE_FLOAT)}static isSimple(et){return et instanceof QA}static decode(et,tt){switch(tt==null&&(tt=!0),et){case SIMPLE.FALSE:return!1;case SIMPLE.TRUE:return!0;case SIMPLE.NULL:return tt?null:SYMS$1.NULL;case SIMPLE.UNDEFINED:return tt?void 0:SYMS$1.UNDEFINED;case-1:if(!tt)throw new Error("Invalid BREAK");return SYMS$1.BREAK;default:return new QA(et)}}};var simple=Simple$1;let Tagged$1=class mA{constructor(et,tt,rt){if(this.tag=et,this.value=tt,this.err=rt,typeof this.tag!="number")throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(this.tag|0)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(et){return et._pushTag(this.tag),et.pushAny(this.value)}convert(et){var tt,rt;if(rt=et!=null?et[this.tag]:void 0,typeof rt!="function"&&(rt=mA["_tag"+this.tag],typeof rt!="function"))return this;try{return rt.call(mA,this.value)}catch(nt){return tt=nt,this.err=tt,this}}};var tagged$1=Tagged$1;const defaultBase$1=self.location?self.location.protocol+"//"+self.location.host:"",URL$3=self.URL;let URLWithLegacySupport$2=class{constructor(et="",tt=defaultBase$1){this.super=new URL$3(et,tt),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(et){this.super.hash=et}set host(et){this.super.host=et}set hostname(et){this.super.hostname=et}set href(et){this.super.href=et}set origin(et){this.super.origin=et}set password(et){this.super.password=et}set pathname(et){this.super.pathname=et}set port(et){this.super.port=et}set protocol(et){this.super.protocol=et}set search(et){this.super.search=et}set searchParams(et){this.super.searchParams=et}set username(et){this.super.username=et}createObjectURL(et){return this.super.createObjectURL(et)}revokeObjectURL(et){this.super.revokeObjectURL(et)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}};function format$2($){if(typeof $=="string")return new URL$3($).toString();if(!($ instanceof URL$3)){const et=$.username&&$.password?`${$.username}:${$.password}@`:"",tt=$.auth?$.auth+"@":"",rt=$.port?":"+$.port:"",nt=$.protocol?$.protocol+"//":"",it=$.host||"",At=$.hostname||"",at=$.search||($.query?"?"+$.query:""),ot=$.hash||"",st=$.pathname||"",ct=$.path||st+at;return`${nt}${et||tt}${it||At+rt}${ct}${ot}`}}var urlBrowser={URLWithLegacySupport:URLWithLegacySupport$2,URLSearchParams:self.URLSearchParams,defaultBase:defaultBase$1,format:format$2};const{URLWithLegacySupport:URLWithLegacySupport$1,format:format$1}=urlBrowser;var relative$1=($,et={},tt={},rt)=>{let nt=et.protocol?et.protocol.replace(":",""):"http";nt=(tt[nt]||rt||nt)+":";let it;try{it=new URLWithLegacySupport$1($)}catch{it={}}const At=Object.assign({},et,{protocol:nt||it.protocol,host:et.host||it.host});return new URLWithLegacySupport$1($,format$1(At)).toString()};const{URLWithLegacySupport,format,URLSearchParams,defaultBase}=urlBrowser,relative=relative$1;var isoUrl={URL:URLWithLegacySupport,URLSearchParams,format,relative,defaultBase};const{Buffer:Buffer$3}=buffer$1,ieee754=ieee754$1,Bignumber$1=bignumberExports.BigNumber,parser=decoder_asm,utils$p=utils$q,c=constants$2,Simple=simple,Tagged=tagged$1,{URL:URL$2}=isoUrl;let Decoder$1=class bA{constructor(et){et=et||{},!et.size||et.size<65536?et.size=65536:et.size=utils$p.nextPowerOf2(et.size),this._heap=new ArrayBuffer(et.size),this._heap8=new Uint8Array(this._heap),this._buffer=Buffer$3.from(this._heap),this._reset(),this._knownTags=Object.assign({0:tt=>new Date(tt),1:tt=>new Date(tt*1e3),2:tt=>utils$p.arrayBufferToBignumber(tt),3:tt=>c.NEG_ONE.minus(utils$p.arrayBufferToBignumber(tt)),4:tt=>c.TEN.pow(tt[0]).times(tt[1]),5:tt=>c.TWO.pow(tt[0]).times(tt[1]),32:tt=>new URL$2(tt),35:tt=>new RegExp(tt)},et.tags),this.parser=parser(commonjsGlobal,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var et=this._parents.pop();if(et.length>0)throw new Error(`Missing ${et.length} elements`);switch(et.type){case c.PARENT.TAG:this._push(this.createTag(et.ref[0],et.ref[1]));break;case c.PARENT.BYTE_STRING:this._push(this.createByteString(et.ref,et.length));break;case c.PARENT.UTF8_STRING:this._push(this.createUtf8String(et.ref,et.length));break;case c.PARENT.MAP:if(et.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(et.ref,et.length));break;case c.PARENT.OBJECT:if(et.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(et.ref,et.length));break;case c.PARENT.ARRAY:this._push(this.createArray(et.ref,et.length));break}this._currentParent&&this._currentParent.type===c.PARENT.TAG&&this._dec()}_dec(){const et=this._currentParent;et.length<0||(et.length--,et.length===0&&this._closeParent())}_push(et,tt){const rt=this._currentParent;switch(rt.values++,rt.type){case c.PARENT.ARRAY:case c.PARENT.BYTE_STRING:case c.PARENT.UTF8_STRING:rt.length>-1?this._ref[this._ref.length-rt.length]=et:this._ref.push(et),this._dec();break;case c.PARENT.OBJECT:rt.tmpKey!=null?(this._ref[rt.tmpKey]=et,rt.tmpKey=null,this._dec()):(rt.tmpKey=et,typeof rt.tmpKey!="string"&&(rt.type=c.PARENT.MAP,rt.ref=utils$p.buildMap(rt.ref)));break;case c.PARENT.MAP:rt.tmpKey!=null?(this._ref.set(rt.tmpKey,et),rt.tmpKey=null,this._dec()):rt.tmpKey=et;break;case c.PARENT.TAG:this._ref.push(et),tt||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(et,tt,rt){this._parents[this._depth]={type:tt,length:rt,ref:et,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:c.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(et,tt){const rt=this._knownTags[et];return rt?rt(tt):new Tagged(et,tt)}createMap(et,tt){return et}createObject(et,tt){return et}createArray(et,tt){return et}createByteString(et,tt){return Buffer$3.concat(et)}createByteStringFromHeap(et,tt){return et===tt?Buffer$3.alloc(0):Buffer$3.from(this._heap.slice(et,tt))}createInt(et){return et}createInt32(et,tt){return utils$p.buildInt32(et,tt)}createInt64(et,tt,rt,nt){return utils$p.buildInt64(et,tt,rt,nt)}createFloat(et){return et}createFloatSingle(et,tt,rt,nt){return ieee754.read([et,tt,rt,nt],0,!1,23,4)}createFloatDouble(et,tt,rt,nt,it,At,at,ot){return ieee754.read([et,tt,rt,nt,it,At,at,ot],0,!1,52,8)}createInt32Neg(et,tt){return-1-utils$p.buildInt32(et,tt)}createInt64Neg(et,tt,rt,nt){const it=utils$p.buildInt32(et,tt),At=utils$p.buildInt32(rt,nt);return it>c.MAX_SAFE_HIGH?c.NEG_ONE.minus(new Bignumber$1(it).times(c.SHIFT32).plus(At)):-1-(it*c.SHIFT32+At)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(et,tt){return et.join("")}createUtf8StringFromHeap(et,tt){return et===tt?"":this._buffer.toString("utf8",et,tt)}createSimpleUnassigned(et){return new Simple(et)}pushInt(et){this._push(this.createInt(et))}pushInt32(et,tt){this._push(this.createInt32(et,tt))}pushInt64(et,tt,rt,nt){this._push(this.createInt64(et,tt,rt,nt))}pushFloat(et){this._push(this.createFloat(et))}pushFloatSingle(et,tt,rt,nt){this._push(this.createFloatSingle(et,tt,rt,nt))}pushFloatDouble(et,tt,rt,nt,it,At,at,ot){this._push(this.createFloatDouble(et,tt,rt,nt,it,At,at,ot))}pushInt32Neg(et,tt){this._push(this.createInt32Neg(et,tt))}pushInt64Neg(et,tt,rt,nt){this._push(this.createInt64Neg(et,tt,rt,nt))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],c.PARENT.ARRAY,-1)}pushArrayStartFixed(et){this._createArrayStartFixed(et)}pushArrayStartFixed32(et,tt){const rt=utils$p.buildInt32(et,tt);this._createArrayStartFixed(rt)}pushArrayStartFixed64(et,tt,rt,nt){const it=utils$p.buildInt64(et,tt,rt,nt);this._createArrayStartFixed(it)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(et){this._createObjectStartFixed(et)}pushObjectStartFixed32(et,tt){const rt=utils$p.buildInt32(et,tt);this._createObjectStartFixed(rt)}pushObjectStartFixed64(et,tt,rt,nt){const it=utils$p.buildInt64(et,tt,rt,nt);this._createObjectStartFixed(it)}pushByteStringStart(){this._parents[this._depth]={type:c.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(et,tt){this._push(this.createByteStringFromHeap(et,tt))}pushUtf8StringStart(){this._parents[this._depth]={type:c.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(et,tt){this._push(this.createUtf8StringFromHeap(et,tt))}pushSimpleUnassigned(et){this._push(this.createSimpleUnassigned(et))}pushTagStart(et){this._parents[this._depth]={type:c.PARENT.TAG,length:1,ref:[et]}}pushTagStart4(et,tt){this.pushTagStart(utils$p.buildInt32(et,tt))}pushTagStart8(et,tt,rt,nt){this.pushTagStart(utils$p.buildInt64(et,tt,rt,nt))}pushTagUnassigned(et){this._push(this.createTag(et))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(et){if(et===0){this._push(this.createObject({}));return}this._createParent({},c.PARENT.OBJECT,et)}_createArrayStartFixed(et){if(et===0){this._push(this.createArray([]));return}this._createParent(new Array(et),c.PARENT.ARRAY,et)}_decode(et){if(et.byteLength===0)throw new Error("Input too short");this._reset(),this._heap8.set(et);const tt=this.parser.parse(et.byteLength);if(this._depth>1){for(;this._currentParent.length===0;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(tt>0)throw new Error("Failed to parse");if(this._res.length===0)throw new Error("No valid result")}decodeFirst(et){return this._decode(et),this._res[0]}decodeAll(et){return this._decode(et),this._res}static decode(et,tt){return typeof et=="string"&&(et=Buffer$3.from(et,tt||"hex")),new bA({size:et.length}).decodeFirst(et)}static decodeAll(et,tt){return typeof et=="string"&&(et=Buffer$3.from(et,tt||"hex")),new bA({size:et.length}).decodeAll(et)}};Decoder$1.decodeFirst=Decoder$1.decode;var decoder=Decoder$1;const{Buffer:Buffer$2}=buffer$1,Decoder=decoder,utils$o=utils$q;class Diagnose extends Decoder{createTag(et,tt){return`${et}(${tt})`}createInt(et){return super.createInt(et).toString()}createInt32(et,tt){return super.createInt32(et,tt).toString()}createInt64(et,tt,rt,nt){return super.createInt64(et,tt,rt,nt).toString()}createInt32Neg(et,tt){return super.createInt32Neg(et,tt).toString()}createInt64Neg(et,tt,rt,nt){return super.createInt64Neg(et,tt,rt,nt).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(et){const tt=super.createFloat(et);return utils$o.isNegativeZero(et)?"-0_1":`${tt}_1`}createFloatSingle(et,tt,rt,nt){return`${super.createFloatSingle(et,tt,rt,nt)}_2`}createFloatDouble(et,tt,rt,nt,it,At,at,ot){return`${super.createFloatDouble(et,tt,rt,nt,it,At,at,ot)}_3`}createByteString(et,tt){const rt=et.join(", ");return tt===-1?`(_ ${rt})`:`h'${rt}`}createByteStringFromHeap(et,tt){return`h'${Buffer$2.from(super.createByteStringFromHeap(et,tt)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(et){return`simple(${et})`}createArray(et,tt){const rt=super.createArray(et,tt);return tt===-1?`[_ ${rt.join(", ")}]`:`[${rt.join(", ")}]`}createMap(et,tt){const rt=super.createMap(et),nt=Array.from(rt.keys()).reduce(collectObject(rt),"");return tt===-1?`{_ ${nt}}`:`{${nt}}`}createObject(et,tt){const rt=super.createObject(et),nt=Object.keys(rt).reduce(collectObject(rt),"");return tt===-1?`{_ ${nt}}`:`{${nt}}`}createUtf8String(et,tt){const rt=et.join(", ");return tt===-1?`(_ ${rt})`:`"${rt}"`}createUtf8StringFromHeap(et,tt){return`"${Buffer$2.from(super.createUtf8StringFromHeap(et,tt)).toString("utf8")}"`}static diagnose(et,tt){return typeof et=="string"&&(et=Buffer$2.from(et,tt||"hex")),new Diagnose().decodeFirst(et)}}var diagnose=Diagnose;function collectObject($){return(et,tt)=>et?`${et}, ${tt}: ${$[tt]}`:`${tt}: ${$[tt]}`}const{Buffer:Buffer$1}=buffer$1,{URL:URL$1}=isoUrl,Bignumber=bignumberExports.BigNumber,utils$n=utils$q,constants=constants$2,MT=constants.MT,NUMBYTES=constants.NUMBYTES,SHIFT32=constants.SHIFT32,SYMS=constants.SYMS,TAG=constants.TAG,HALF=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.TWO,FLOAT=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.FOUR,DOUBLE=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.EIGHT,TRUE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.TRUE,FALSE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.FALSE,UNDEFINED=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.UNDEFINED,NULL=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.NULL,MAXINT_BN=new Bignumber("0x20000000000000"),BUF_NAN=Buffer$1.from("f97e00","hex"),BUF_INF_NEG=Buffer$1.from("f9fc00","hex"),BUF_INF_POS=Buffer$1.from("f97c00","hex");function toType($){return{}.toString.call($).slice(8,-1)}class Encoder{constructor(et){et=et||{},this.streaming=typeof et.stream=="function",this.onData=et.stream,this.semanticTypes=[[URL$1,this._pushUrl],[Bignumber,this._pushBigNumber]];const tt=et.genTypes||[],rt=tt.length;for(let nt=0;nt[at,et[at]])):!1}_pushRawMap(et,tt){tt=tt.map(function(nt){return nt[0]=Encoder.encode(nt[0]),nt}).sort(utils$n.keySorter);for(var rt=0;rtrt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex$3($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$3=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$3($){if(!hexRe$3.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare$2($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash$5(et)};function requestIdOf$2($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString$2(At),st=hashValue$2(at);return[ot,st]}).sort(([At],[at])=>compare$2(At,at)),nt=concat$5(...rt.map(At=>concat$5(...At)));return hash$5(nt)}var __rest$4=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);ntnt)throw new RangeError('The value "'+It+'" is invalid for option "size"');var lt=new Uint8Array(It);return Object.setPrototypeOf(lt,at.prototype),lt}function at(It,lt,ft){if(typeof It=="number"){if(typeof lt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(It)}return ot(It,lt,ft)}at.poolSize=8192;function ot(It,lt,ft){if(typeof It=="string")return gt(It,lt);if(ArrayBuffer.isView(It))return ht(It);if(It==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It);if(sr(It,ArrayBuffer)||It&&sr(It.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sr(It,SharedArrayBuffer)||It&&sr(It.buffer,SharedArrayBuffer)))return Et(It,lt,ft);if(typeof It=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xt=It.valueOf&&It.valueOf();if(xt!=null&&xt!==It)return at.from(xt,lt,ft);var _t=wt(It);if(_t)return _t;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof It[Symbol.toPrimitive]=="function")return at.from(It[Symbol.toPrimitive]("string"),lt,ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It)}at.from=function(It,lt,ft){return ot(It,lt,ft)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(It){if(typeof It!="number")throw new TypeError('"size" argument must be of type number');if(It<0)throw new RangeError('The value "'+It+'" is invalid for option "size"')}function ct(It,lt,ft){return st(It),It<=0?At(It):lt!==void 0?typeof ft=="string"?At(It).fill(lt,ft):At(It).fill(lt):At(It)}at.alloc=function(It,lt,ft){return ct(It,lt,ft)};function ut(It){return st(It),At(It<0?0:mt(It)|0)}at.allocUnsafe=function(It){return ut(It)},at.allocUnsafeSlow=function(It){return ut(It)};function gt(It,lt){if((typeof lt!="string"||lt==="")&&(lt="utf8"),!at.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);var ft=Qt(It,lt)|0,xt=At(ft),_t=xt.write(It,lt);return _t!==ft&&(xt=xt.slice(0,_t)),xt}function dt(It){for(var lt=It.length<0?0:mt(It.length)|0,ft=At(lt),xt=0;xt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return It|0}function pt(It){return+It!=It&&(It=0),at.alloc(+It)}at.isBuffer=function(lt){return lt!=null&<._isBuffer===!0&<!==at.prototype},at.compare=function(lt,ft){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),sr(ft,Uint8Array)&&(ft=at.from(ft,ft.offset,ft.byteLength)),!at.isBuffer(lt)||!at.isBuffer(ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(lt===ft)return 0;for(var xt=lt.length,_t=ft.length,Lt=0,Zt=Math.min(xt,_t);Lt_t.length?at.from(Zt).copy(_t,Lt):Uint8Array.prototype.set.call(_t,Zt,Lt);else if(at.isBuffer(Zt))Zt.copy(_t,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=Zt.length}return _t};function Qt(It,lt){if(at.isBuffer(It))return It.length;if(ArrayBuffer.isView(It)||sr(It,ArrayBuffer))return It.byteLength;if(typeof It!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof It);var ft=It.length,xt=arguments.length>2&&arguments[2]===!0;if(!xt&&ft===0)return 0;for(var _t=!1;;)switch(lt){case"ascii":case"latin1":case"binary":return ft;case"utf8":case"utf-8":return yr(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft*2;case"hex":return ft>>>1;case"base64":return Xt(It).length;default:if(_t)return xt?-1:yr(It).length;lt=(""+lt).toLowerCase(),_t=!0}}at.byteLength=Qt;function $t(It,lt,ft){var xt=!1;if((lt===void 0||lt<0)&&(lt=0),lt>this.length||((ft===void 0||ft>this.length)&&(ft=this.length),ft<=0)||(ft>>>=0,lt>>>=0,ft<=lt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ot(this,lt,ft);case"utf8":case"utf-8":return Nt(this,lt,ft);case"ascii":return rr(this,lt,ft);case"latin1":case"binary":return Wt(this,lt,ft);case"base64":return vt(this,lt,ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,lt,ft);default:if(xt)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),xt=!0}}at.prototype._isBuffer=!0;function Gt(It,lt,ft){var xt=It[lt];It[lt]=It[ft],It[ft]=xt}at.prototype.swap16=function(){var lt=this.length;if(lt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ft=0;ftft&&(lt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(lt,ft,xt,_t,Lt){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),!at.isBuffer(lt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof lt);if(ft===void 0&&(ft=0),xt===void 0&&(xt=lt?lt.length:0),_t===void 0&&(_t=0),Lt===void 0&&(Lt=this.length),ft<0||xt>lt.length||_t<0||Lt>this.length)throw new RangeError("out of range index");if(_t>=Lt&&ft>=xt)return 0;if(_t>=Lt)return-1;if(ft>=xt)return 1;if(ft>>>=0,xt>>>=0,_t>>>=0,Lt>>>=0,this===lt)return 0;for(var Zt=Lt-_t,Er=xt-ft,mr=Math.min(Zt,Er),wr=this.slice(_t,Lt),Yr=lt.slice(ft,xt),Ft=0;Ft2147483647?ft=2147483647:ft<-2147483648&&(ft=-2147483648),ft=+ft,ur(ft)&&(ft=_t?0:It.length-1),ft<0&&(ft=It.length+ft),ft>=It.length){if(_t)return-1;ft=It.length-1}else if(ft<0)if(_t)ft=0;else return-1;if(typeof lt=="string"&&(lt=at.from(lt,xt)),at.isBuffer(lt))return lt.length===0?-1:Pt(It,lt,ft,xt,_t);if(typeof lt=="number")return lt=lt&255,typeof Uint8Array.prototype.indexOf=="function"?_t?Uint8Array.prototype.indexOf.call(It,lt,ft):Uint8Array.prototype.lastIndexOf.call(It,lt,ft):Pt(It,[lt],ft,xt,_t);throw new TypeError("val must be string, number or Buffer")}function Pt(It,lt,ft,xt,_t){var Lt=1,Zt=It.length,Er=lt.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(It.length<2||lt.length<2)return-1;Lt=2,Zt/=2,Er/=2,ft/=2}function mr(St,zt){return Lt===1?St[zt]:St.readUInt16BE(zt*Lt)}var wr;if(_t){var Yr=-1;for(wr=ft;wrZt&&(ft=Zt-Er),wr=ft;wr>=0;wr--){for(var Ft=!0,yt=0;yt_t&&(xt=_t)):xt=_t;var Lt=lt.length;xt>Lt/2&&(xt=Lt/2);for(var Zt=0;Zt>>0,isFinite(xt)?(xt=xt>>>0,_t===void 0&&(_t="utf8")):(_t=xt,xt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-ft;if((xt===void 0||xt>Lt)&&(xt=Lt),lt.length>0&&(xt<0||ft<0)||ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");_t||(_t="utf8");for(var Zt=!1;;)switch(_t){case"hex":return Kt(this,lt,ft,xt);case"utf8":case"utf-8":return ir(this,lt,ft,xt);case"ascii":case"latin1":case"binary":return jt(this,lt,ft,xt);case"base64":return Mt(this,lt,ft,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,lt,ft,xt);default:if(Zt)throw new TypeError("Unknown encoding: "+_t);_t=(""+_t).toLowerCase(),Zt=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(It,lt,ft){return lt===0&&ft===It.length?et.fromByteArray(It):et.fromByteArray(It.slice(lt,ft))}function Nt(It,lt,ft){ft=Math.min(It.length,ft);for(var xt=[],_t=lt;_t239?4:Lt>223?3:Lt>191?2:1;if(_t+Er<=ft){var mr,wr,Yr,Ft;switch(Er){case 1:Lt<128&&(Zt=Lt);break;case 2:mr=It[_t+1],(mr&192)===128&&(Ft=(Lt&31)<<6|mr&63,Ft>127&&(Zt=Ft));break;case 3:mr=It[_t+1],wr=It[_t+2],(mr&192)===128&&(wr&192)===128&&(Ft=(Lt&15)<<12|(mr&63)<<6|wr&63,Ft>2047&&(Ft<55296||Ft>57343)&&(Zt=Ft));break;case 4:mr=It[_t+1],wr=It[_t+2],Yr=It[_t+3],(mr&192)===128&&(wr&192)===128&&(Yr&192)===128&&(Ft=(Lt&15)<<18|(mr&63)<<12|(wr&63)<<6|Yr&63,Ft>65535&&Ft<1114112&&(Zt=Ft))}}Zt===null?(Zt=65533,Er=1):Zt>65535&&(Zt-=65536,xt.push(Zt>>>10&1023|55296),Zt=56320|Zt&1023),xt.push(Zt),_t+=Er}return Jt(xt)}var Ut=4096;function Jt(It){var lt=It.length;if(lt<=Ut)return String.fromCharCode.apply(String,It);for(var ft="",xt=0;xtxt)&&(ft=xt);for(var _t="",Lt=lt;Ltxt&&(lt=xt),ft<0?(ft+=xt,ft<0&&(ft=0)):ft>xt&&(ft=xt),ftft)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,Zt=0;++Zt>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt+--ft],Lt=1;ft>0&&(Lt*=256);)_t+=this[lt+--ft]*Lt;return _t},at.prototype.readUint8=at.prototype.readUInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]|this[lt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]<<8|this[lt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),(this[lt]|this[lt+1]<<8|this[lt+2]<<16)+this[lt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]*16777216+(this[lt+1]<<16|this[lt+2]<<8|this[lt+3])},at.prototype.readIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,Zt=0;++Zt=Lt&&(_t-=Math.pow(2,8*ft)),_t},at.prototype.readIntBE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=ft,Lt=1,Zt=this[lt+--_t];_t>0&&(Lt*=256);)Zt+=this[lt+--_t]*Lt;return Lt*=128,Zt>=Lt&&(Zt-=Math.pow(2,8*ft)),Zt},at.prototype.readInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]&128?(255-this[lt]+1)*-1:this[lt]},at.prototype.readInt16LE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt]|this[lt+1]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt16BE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt+1]|this[lt]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]|this[lt+1]<<8|this[lt+2]<<16|this[lt+3]<<24},at.prototype.readInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]<<24|this[lt+1]<<16|this[lt+2]<<8|this[lt+3]},at.prototype.readFloatLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!0,23,4)},at.prototype.readFloatBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!1,23,4)},at.prototype.readDoubleLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!0,52,8)},at.prototype.readDoubleBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!1,52,8)};function Ar(It,lt,ft,xt,_t,Lt){if(!at.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(lt>_t||ltIt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var Zt=1,Er=0;for(this[ft]=lt&255;++Er>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var Zt=xt-1,Er=1;for(this[ft+Zt]=lt&255;--Zt>=0&&(Er*=256);)this[ft+Zt]=lt/Er&255;return ft+xt},at.prototype.writeUint8=at.prototype.writeUInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,255,0),this[ft]=lt&255,ft+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft+3]=lt>>>24,this[ft+2]=lt>>>16,this[ft+1]=lt>>>8,this[ft]=lt&255,ft+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4},at.prototype.writeIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var Zt=0,Er=1,mr=0;for(this[ft]=lt&255;++Zt>0)-mr&255;return ft+xt},at.prototype.writeIntBE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var Zt=xt-1,Er=1,mr=0;for(this[ft+Zt]=lt&255;--Zt>=0&&(Er*=256);)lt<0&&mr===0&&this[ft+Zt+1]!==0&&(mr=1),this[ft+Zt]=(lt/Er>>0)-mr&255;return ft+xt},at.prototype.writeInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,127,-128),lt<0&&(lt=255+lt+1),this[ft]=lt&255,ft+1},at.prototype.writeInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),this[ft]=lt&255,this[ft+1]=lt>>>8,this[ft+2]=lt>>>16,this[ft+3]=lt>>>24,ft+4},at.prototype.writeInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),lt<0&&(lt=4294967295+lt+1),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4};function cr(It,lt,ft,xt,_t,Lt){if(ft+xt>It.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("Index out of range")}function Rt(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,4),tt.write(It,lt,ft,xt,23,4),ft+4}at.prototype.writeFloatLE=function(lt,ft,xt){return Rt(this,lt,ft,!0,xt)},at.prototype.writeFloatBE=function(lt,ft,xt){return Rt(this,lt,ft,!1,xt)};function Qr(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,8),tt.write(It,lt,ft,xt,52,8),ft+8}at.prototype.writeDoubleLE=function(lt,ft,xt){return Qr(this,lt,ft,!0,xt)},at.prototype.writeDoubleBE=function(lt,ft,xt){return Qr(this,lt,ft,!1,xt)},at.prototype.copy=function(lt,ft,xt,_t){if(!at.isBuffer(lt))throw new TypeError("argument should be a Buffer");if(xt||(xt=0),!_t&&_t!==0&&(_t=this.length),ft>=lt.length&&(ft=lt.length),ft||(ft=0),_t>0&&_t=this.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("sourceEnd out of bounds");_t>this.length&&(_t=this.length),lt.length-ft<_t-xt&&(_t=lt.length-ft+xt);var Lt=_t-xt;return this===lt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ft,xt,_t):Uint8Array.prototype.set.call(lt,this.subarray(xt,_t),ft),Lt},at.prototype.fill=function(lt,ft,xt,_t){if(typeof lt=="string"){if(typeof ft=="string"?(_t=ft,ft=0,xt=this.length):typeof xt=="string"&&(_t=xt,xt=this.length),_t!==void 0&&typeof _t!="string")throw new TypeError("encoding must be a string");if(typeof _t=="string"&&!at.isEncoding(_t))throw new TypeError("Unknown encoding: "+_t);if(lt.length===1){var Lt=lt.charCodeAt(0);(_t==="utf8"&&Lt<128||_t==="latin1")&&(lt=Lt)}}else typeof lt=="number"?lt=lt&255:typeof lt=="boolean"&&(lt=Number(lt));if(ft<0||this.length>>0,xt=xt===void 0?this.length:xt>>>0,lt||(lt=0);var Zt;if(typeof lt=="number")for(Zt=ft;Zt55295&&ft<57344){if(!_t){if(ft>56319){(lt-=3)>-1&&Lt.push(239,191,189);continue}else if(Zt+1===xt){(lt-=3)>-1&&Lt.push(239,191,189);continue}_t=ft;continue}if(ft<56320){(lt-=3)>-1&&Lt.push(239,191,189),_t=ft;continue}ft=(_t-55296<<10|ft-56320)+65536}else _t&&(lt-=3)>-1&&Lt.push(239,191,189);if(_t=null,ft<128){if((lt-=1)<0)break;Lt.push(ft)}else if(ft<2048){if((lt-=2)<0)break;Lt.push(ft>>6|192,ft&63|128)}else if(ft<65536){if((lt-=3)<0)break;Lt.push(ft>>12|224,ft>>6&63|128,ft&63|128)}else if(ft<1114112){if((lt-=4)<0)break;Lt.push(ft>>18|240,ft>>12&63|128,ft>>6&63|128,ft&63|128)}else throw new Error("Invalid code point")}return Lt}function kr(It){for(var lt=[],ft=0;ft>8,_t=ft%256,Lt.push(_t),Lt.push(xt);return Lt}function Xt(It){return et.toByteArray(qr(It))}function tr(It,lt,ft,xt){for(var _t=0;_t=lt.length||_t>=It.length);++_t)lt[_t+ft]=It[_t];return _t}function sr(It,lt){return It instanceof lt||It!=null&&It.constructor!=null&&It.constructor.name!=null&&It.constructor.name===lt.name}function ur(It){return It!==It}var fr=function(){for(var It="0123456789abcdef",lt=new Array(256),ft=0;ft<16;++ft)for(var xt=ft*16,_t=0;_t<16;++_t)lt[xt+_t]=It[ft]+It[_t];return lt}()})(buffer$1);var bignumber={exports:{}};(function($){(function(et){var tt,rt=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,nt=Math.ceil,it=Math.floor,At="[BigNumber Error] ",at=At+"Number primitive has more than 15 significant digits: ",ot=1e14,st=14,ct=9007199254740991,ut=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],gt=1e7,dt=1e9;function ht(Tt){var Pt,Kt,ir,jt=Rt.prototype={constructor:Rt,toString:null,valueOf:null},Mt=new Rt(1),Bt=20,vt=4,Nt=-7,Ut=21,Jt=-1e7,rr=1e7,Wt=!1,Ot=1,bt=0,kt={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},Ar="0123456789abcdefghijklmnopqrstuvwxyz",cr=!0;function Rt(Yt,Xt){var tr,sr,ur,fr,It,lt,ft,xt,_t=this;if(!(_t instanceof Rt))return new Rt(Yt,Xt);if(Xt==null){if(Yt&&Yt._isBigNumber===!0){_t.s=Yt.s,!Yt.c||Yt.e>rr?_t.c=_t.e=null:Yt.e=10;It/=10,fr++);fr>rr?_t.c=_t.e=null:(_t.e=fr,_t.c=[Yt]);return}xt=String(Yt)}else{if(!rt.test(xt=String(Yt)))return ir(_t,xt,lt);_t.s=xt.charCodeAt(0)==45?(xt=xt.slice(1),-1):1}(fr=xt.indexOf("."))>-1&&(xt=xt.replace(".","")),(It=xt.search(/e/i))>0?(fr<0&&(fr=It),fr+=+xt.slice(It+1),xt=xt.substring(0,It)):fr<0&&(fr=xt.length)}else{if(pt(Xt,2,Ar.length,"Base"),Xt==10&&cr)return _t=new Rt(Yt),yr(_t,Bt+_t.e+1,vt);if(xt=String(Yt),lt=typeof Yt=="number"){if(Yt*0!=0)return ir(_t,xt,lt,Xt);if(_t.s=1/Yt<0?(xt=xt.slice(1),-1):1,Rt.DEBUG&&xt.replace(/^0\.0*|\./,"").length>15)throw Error(at+Yt)}else _t.s=xt.charCodeAt(0)===45?(xt=xt.slice(1),-1):1;for(tr=Ar.slice(0,Xt),fr=It=0,ft=xt.length;Itfr){fr=ft;continue}}else if(!ur&&(xt==xt.toUpperCase()&&(xt=xt.toLowerCase())||xt==xt.toLowerCase()&&(xt=xt.toUpperCase()))){ur=!0,It=-1,fr=0;continue}return ir(_t,String(Yt),lt,Xt)}lt=!1,xt=Kt(xt,Xt,10,_t.s),(fr=xt.indexOf("."))>-1?xt=xt.replace(".",""):fr=xt.length}for(It=0;xt.charCodeAt(It)===48;It++);for(ft=xt.length;xt.charCodeAt(--ft)===48;);if(xt=xt.slice(It,++ft)){if(ft-=It,lt&&Rt.DEBUG&&ft>15&&(Yt>ct||Yt!==it(Yt)))throw Error(at+_t.s*Yt);if((fr=fr-It-1)>rr)_t.c=_t.e=null;else if(fr=-dt&&ur<=dt&&ur===it(ur)){if(sr[0]===0){if(ur===0&&sr.length===1)return!0;break e}if(Xt=(ur+1)%st,Xt<1&&(Xt+=st),String(sr[0]).length==Xt){for(Xt=0;Xt=ot||tr!==it(tr))break e;if(tr!==0)return!0}}}else if(sr===null&&ur===null&&(fr===null||fr===1||fr===-1))return!0;throw Error(At+"Invalid BigNumber: "+Yt)},Rt.maximum=Rt.max=function(){return _r(arguments,-1)},Rt.minimum=Rt.min=function(){return _r(arguments,1)},Rt.random=function(){var Yt=9007199254740992,Xt=Math.random()*Yt&2097151?function(){return it(Math.random()*Yt)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(tr){var sr,ur,fr,It,lt,ft=0,xt=[],_t=new Rt(Mt);if(tr==null?tr=Bt:pt(tr,0,dt),It=nt(tr/st),Wt)if(crypto.getRandomValues){for(sr=crypto.getRandomValues(new Uint32Array(It*=2));ft>>11),lt>=9e15?(ur=crypto.getRandomValues(new Uint32Array(2)),sr[ft]=ur[0],sr[ft+1]=ur[1]):(xt.push(lt%1e14),ft+=2);ft=It/2}else if(crypto.randomBytes){for(sr=crypto.randomBytes(It*=7);ft=9e15?crypto.randomBytes(7).copy(sr,ft):(xt.push(lt%1e14),ft+=7);ft=It/7}else throw Wt=!1,Error(At+"crypto unavailable");if(!Wt)for(;ft=10;lt/=10,ft++);ftur-1&&(lt[It+1]==null&&(lt[It+1]=0),lt[It+1]+=lt[It]/ur|0,lt[It]%=ur)}return lt.reverse()}return function(tr,sr,ur,fr,It){var lt,ft,xt,_t,Lt,Zt,Er,mr,wr=tr.indexOf("."),Yr=Bt,Ft=vt;for(wr>=0&&(_t=bt,bt=0,tr=tr.replace(".",""),mr=new Rt(sr),Zt=mr.pow(tr.length-wr),bt=_t,mr.c=Xt(Gt(wt(Zt.c),Zt.e,"0"),10,ur,Yt),mr.e=mr.c.length),Er=Xt(tr,sr,ur,It?(lt=Ar,Yt):(lt=Yt,Ar)),xt=_t=Er.length;Er[--_t]==0;Er.pop());if(!Er[0])return lt.charAt(0);if(wr<0?--xt:(Zt.c=Er,Zt.e=xt,Zt.s=fr,Zt=Pt(Zt,mr,Yr,Ft,ur),Er=Zt.c,Lt=Zt.r,xt=Zt.e),ft=xt+Yr+1,wr=Er[ft],_t=ur/2,Lt=Lt||ft<0||Er[ft+1]!=null,Lt=Ft<4?(wr!=null||Lt)&&(Ft==0||Ft==(Zt.s<0?3:2)):wr>_t||wr==_t&&(Ft==4||Lt||Ft==6&&Er[ft-1]&1||Ft==(Zt.s<0?8:7)),ft<1||!Er[0])tr=Lt?Gt(lt.charAt(1),-Yr,lt.charAt(0)):lt.charAt(0);else{if(Er.length=ft,Lt)for(--ur;++Er[--ft]>ur;)Er[ft]=0,ft||(++xt,Er=[1].concat(Er));for(_t=Er.length;!Er[--_t];);for(wr=0,tr="";wr<=_t;tr+=lt.charAt(Er[wr++]));tr=Gt(tr,xt,lt.charAt(0))}return tr}}(),Pt=function(){function Yt(sr,ur,fr){var It,lt,ft,xt,_t=0,Lt=sr.length,Zt=ur%gt,Er=ur/gt|0;for(sr=sr.slice();Lt--;)ft=sr[Lt]%gt,xt=sr[Lt]/gt|0,It=Er*ft+xt*Zt,lt=Zt*ft+It%gt*gt+_t,_t=(lt/fr|0)+(It/gt|0)+Er*xt,sr[Lt]=lt%fr;return _t&&(sr=[_t].concat(sr)),sr}function Xt(sr,ur,fr,It){var lt,ft;if(fr!=It)ft=fr>It?1:-1;else for(lt=ft=0;ltur[lt]?1:-1;break}return ft}function tr(sr,ur,fr,It){for(var lt=0;fr--;)sr[fr]-=lt,lt=sr[fr]1;sr.splice(0,1));}return function(sr,ur,fr,It,lt){var ft,xt,_t,Lt,Zt,Er,mr,wr,Yr,Ft,yt,St,zt,or,Br,gr,Lr,cn=sr.s==ur.s?1:-1,Pr=sr.c,Tr=ur.c;if(!Pr||!Pr[0]||!Tr||!Tr[0])return new Rt(!sr.s||!ur.s||(Pr?Tr&&Pr[0]==Tr[0]:!Tr)?NaN:Pr&&Pr[0]==0||!Tr?cn*0:cn/0);for(wr=new Rt(cn),Yr=wr.c=[],xt=sr.e-ur.e,cn=fr+xt+1,lt||(lt=ot,xt=Et(sr.e/st)-Et(ur.e/st),cn=cn/st|0),_t=0;Tr[_t]==(Pr[_t]||0);_t++);if(Tr[_t]>(Pr[_t]||0)&&xt--,cn<0)Yr.push(1),Lt=!0;else{for(or=Pr.length,gr=Tr.length,_t=0,cn+=2,Zt=it(lt/(Tr[0]+1)),Zt>1&&(Tr=Yt(Tr,Zt,lt),Pr=Yt(Pr,Zt,lt),gr=Tr.length,or=Pr.length),zt=gr,Ft=Pr.slice(0,gr),yt=Ft.length;yt=lt/2&&Br++;do{if(Zt=0,ft=Xt(Tr,Ft,gr,yt),ft<0){if(St=Ft[0],gr!=yt&&(St=St*lt+(Ft[1]||0)),Zt=it(St/Br),Zt>1)for(Zt>=lt&&(Zt=lt-1),Er=Yt(Tr,Zt,lt),mr=Er.length,yt=Ft.length;Xt(Er,Ft,mr,yt)==1;)Zt--,tr(Er,gr=10;cn/=10,_t++);yr(wr,fr+(wr.e=_t+xt*st-1)+1,It,Lt)}else wr.e=xt,wr.r=+Lt;return wr}}();function Qr(Yt,Xt,tr,sr){var ur,fr,It,lt,ft;if(tr==null?tr=vt:pt(tr,0,8),!Yt.c)return Yt.toString();if(ur=Yt.c[0],It=Yt.e,Xt==null)ft=wt(Yt.c),ft=sr==1||sr==2&&(It<=Nt||It>=Ut)?$t(ft,It):Gt(ft,It,"0");else if(Yt=yr(new Rt(Yt),Xt,tr),fr=Yt.e,ft=wt(Yt.c),lt=ft.length,sr==1||sr==2&&(Xt<=fr||fr<=Nt)){for(;ltlt){if(--Xt>0)for(ft+=".";Xt--;ft+="0");}else if(Xt+=fr-lt,Xt>0)for(fr+1==lt&&(ft+=".");Xt--;ft+="0");return Yt.s<0&&ur?"-"+ft:ft}function _r(Yt,Xt){for(var tr,sr,ur=1,fr=new Rt(Yt[0]);ur=10;ur/=10,sr++);return(tr=sr+tr*st-1)>rr?Yt.c=Yt.e=null:tr=10;lt/=10,ur++);if(fr=Xt-ur,fr<0)fr+=st,It=Xt,ft=Lt[xt=0],_t=it(ft/Zt[ur-It-1]%10);else if(xt=nt((fr+1)/st),xt>=Lt.length)if(sr){for(;Lt.length<=xt;Lt.push(0));ft=_t=0,ur=1,fr%=st,It=fr-st+1}else break e;else{for(ft=lt=Lt[xt],ur=1;lt>=10;lt/=10,ur++);fr%=st,It=fr-st+ur,_t=It<0?0:it(ft/Zt[ur-It-1]%10)}if(sr=sr||Xt<0||Lt[xt+1]!=null||(It<0?ft:ft%Zt[ur-It-1]),sr=tr<4?(_t||sr)&&(tr==0||tr==(Yt.s<0?3:2)):_t>5||_t==5&&(tr==4||sr||tr==6&&(fr>0?It>0?ft/Zt[ur-It]:0:Lt[xt-1])%10&1||tr==(Yt.s<0?8:7)),Xt<1||!Lt[0])return Lt.length=0,sr?(Xt-=Yt.e+1,Lt[0]=Zt[(st-Xt%st)%st],Yt.e=-Xt||0):Lt[0]=Yt.e=0,Yt;if(fr==0?(Lt.length=xt,lt=1,xt--):(Lt.length=xt+1,lt=Zt[st-fr],Lt[xt]=It>0?it(ft/Zt[ur-It]%Zt[It])*lt:0),sr)for(;;)if(xt==0){for(fr=1,It=Lt[0];It>=10;It/=10,fr++);for(It=Lt[0]+=lt,lt=1;It>=10;It/=10,lt++);fr!=lt&&(Yt.e++,Lt[0]==ot&&(Lt[0]=1));break}else{if(Lt[xt]+=lt,Lt[xt]!=ot)break;Lt[xt--]=0,lt=1}for(fr=Lt.length;Lt[--fr]===0;Lt.pop());}Yt.e>rr?Yt.c=Yt.e=null:Yt.e=Ut?$t(Xt,tr):Gt(Xt,tr,"0"),Yt.s<0?"-"+Xt:Xt)}return jt.absoluteValue=jt.abs=function(){var Yt=new Rt(this);return Yt.s<0&&(Yt.s=1),Yt},jt.comparedTo=function(Yt,Xt){return mt(this,new Rt(Yt,Xt))},jt.decimalPlaces=jt.dp=function(Yt,Xt){var tr,sr,ur,fr=this;if(Yt!=null)return pt(Yt,0,dt),Xt==null?Xt=vt:pt(Xt,0,8),yr(new Rt(fr),Yt+fr.e+1,Xt);if(!(tr=fr.c))return null;if(sr=((ur=tr.length-1)-Et(this.e/st))*st,ur=tr[ur])for(;ur%10==0;ur/=10,sr--);return sr<0&&(sr=0),sr},jt.dividedBy=jt.div=function(Yt,Xt){return Pt(this,new Rt(Yt,Xt),Bt,vt)},jt.dividedToIntegerBy=jt.idiv=function(Yt,Xt){return Pt(this,new Rt(Yt,Xt),0,1)},jt.exponentiatedBy=jt.pow=function(Yt,Xt){var tr,sr,ur,fr,It,lt,ft,xt,_t,Lt=this;if(Yt=new Rt(Yt),Yt.c&&!Yt.isInteger())throw Error(At+"Exponent not an integer: "+kr(Yt));if(Xt!=null&&(Xt=new Rt(Xt)),lt=Yt.e>14,!Lt.c||!Lt.c[0]||Lt.c[0]==1&&!Lt.e&&Lt.c.length==1||!Yt.c||!Yt.c[0])return _t=new Rt(Math.pow(+kr(Lt),lt?Yt.s*(2-Qt(Yt)):+kr(Yt))),Xt?_t.mod(Xt):_t;if(ft=Yt.s<0,Xt){if(Xt.c?!Xt.c[0]:!Xt.s)return new Rt(NaN);sr=!ft&&Lt.isInteger()&&Xt.isInteger(),sr&&(Lt=Lt.mod(Xt))}else{if(Yt.e>9&&(Lt.e>0||Lt.e<-1||(Lt.e==0?Lt.c[0]>1||lt&&Lt.c[1]>=24e7:Lt.c[0]<8e13||lt&&Lt.c[0]<=9999975e7)))return fr=Lt.s<0&&Qt(Yt)?-0:0,Lt.e>-1&&(fr=1/fr),new Rt(ft?1/fr:fr);bt&&(fr=nt(bt/st+2))}for(lt?(tr=new Rt(.5),ft&&(Yt.s=1),xt=Qt(Yt)):(ur=Math.abs(+kr(Yt)),xt=ur%2),_t=new Rt(Mt);;){if(xt){if(_t=_t.times(Lt),!_t.c)break;fr?_t.c.length>fr&&(_t.c.length=fr):sr&&(_t=_t.mod(Xt))}if(ur){if(ur=it(ur/2),ur===0)break;xt=ur%2}else if(Yt=Yt.times(tr),yr(Yt,Yt.e+1,1),Yt.e>14)xt=Qt(Yt);else{if(ur=+kr(Yt),ur===0)break;xt=ur%2}Lt=Lt.times(Lt),fr?Lt.c&&Lt.c.length>fr&&(Lt.c.length=fr):sr&&(Lt=Lt.mod(Xt))}return sr?_t:(ft&&(_t=Mt.div(_t)),Xt?_t.mod(Xt):fr?yr(_t,bt,vt,It):_t)},jt.integerValue=function(Yt){var Xt=new Rt(this);return Yt==null?Yt=vt:pt(Yt,0,8),yr(Xt,Xt.e+1,Yt)},jt.isEqualTo=jt.eq=function(Yt,Xt){return mt(this,new Rt(Yt,Xt))===0},jt.isFinite=function(){return!!this.c},jt.isGreaterThan=jt.gt=function(Yt,Xt){return mt(this,new Rt(Yt,Xt))>0},jt.isGreaterThanOrEqualTo=jt.gte=function(Yt,Xt){return(Xt=mt(this,new Rt(Yt,Xt)))===1||Xt===0},jt.isInteger=function(){return!!this.c&&Et(this.e/st)>this.c.length-2},jt.isLessThan=jt.lt=function(Yt,Xt){return mt(this,new Rt(Yt,Xt))<0},jt.isLessThanOrEqualTo=jt.lte=function(Yt,Xt){return(Xt=mt(this,new Rt(Yt,Xt)))===-1||Xt===0},jt.isNaN=function(){return!this.s},jt.isNegative=function(){return this.s<0},jt.isPositive=function(){return this.s>0},jt.isZero=function(){return!!this.c&&this.c[0]==0},jt.minus=function(Yt,Xt){var tr,sr,ur,fr,It=this,lt=It.s;if(Yt=new Rt(Yt,Xt),Xt=Yt.s,!lt||!Xt)return new Rt(NaN);if(lt!=Xt)return Yt.s=-Xt,It.plus(Yt);var ft=It.e/st,xt=Yt.e/st,_t=It.c,Lt=Yt.c;if(!ft||!xt){if(!_t||!Lt)return _t?(Yt.s=-Xt,Yt):new Rt(Lt?It:NaN);if(!_t[0]||!Lt[0])return Lt[0]?(Yt.s=-Xt,Yt):new Rt(_t[0]?It:vt==3?-0:0)}if(ft=Et(ft),xt=Et(xt),_t=_t.slice(),lt=ft-xt){for((fr=lt<0)?(lt=-lt,ur=_t):(xt=ft,ur=Lt),ur.reverse(),Xt=lt;Xt--;ur.push(0));ur.reverse()}else for(sr=(fr=(lt=_t.length)<(Xt=Lt.length))?lt:Xt,lt=Xt=0;Xt0)for(;Xt--;_t[tr++]=0);for(Xt=ot-1;sr>lt;){if(_t[--sr]=0;){for(tr=0,Zt=St[ur]%Yr,Er=St[ur]/Yr|0,It=ft,fr=ur+It;fr>ur;)xt=yt[--It]%Yr,_t=yt[It]/Yr|0,lt=Er*xt+_t*Zt,xt=Zt*xt+lt%Yr*Yr+mr[fr]+tr,tr=(xt/wr|0)+(lt/Yr|0)+Er*_t,mr[fr--]=xt%wr;mr[fr]=tr}return tr?++sr:mr.splice(0,1),qr(Yt,mr,sr)},jt.negated=function(){var Yt=new Rt(this);return Yt.s=-Yt.s||null,Yt},jt.plus=function(Yt,Xt){var tr,sr=this,ur=sr.s;if(Yt=new Rt(Yt,Xt),Xt=Yt.s,!ur||!Xt)return new Rt(NaN);if(ur!=Xt)return Yt.s=-Xt,sr.minus(Yt);var fr=sr.e/st,It=Yt.e/st,lt=sr.c,ft=Yt.c;if(!fr||!It){if(!lt||!ft)return new Rt(ur/0);if(!lt[0]||!ft[0])return ft[0]?Yt:new Rt(lt[0]?sr:ur*0)}if(fr=Et(fr),It=Et(It),lt=lt.slice(),ur=fr-It){for(ur>0?(It=fr,tr=ft):(ur=-ur,tr=lt),tr.reverse();ur--;tr.push(0));tr.reverse()}for(ur=lt.length,Xt=ft.length,ur-Xt<0&&(tr=ft,ft=lt,lt=tr,Xt=ur),ur=0;Xt;)ur=(lt[--Xt]=lt[Xt]+ft[Xt]+ur)/ot|0,lt[Xt]=ot===lt[Xt]?0:lt[Xt]%ot;return ur&&(lt=[ur].concat(lt),++It),qr(Yt,lt,It)},jt.precision=jt.sd=function(Yt,Xt){var tr,sr,ur,fr=this;if(Yt!=null&&Yt!==!!Yt)return pt(Yt,1,dt),Xt==null?Xt=vt:pt(Xt,0,8),yr(new Rt(fr),Yt,Xt);if(!(tr=fr.c))return null;if(ur=tr.length-1,sr=ur*st+1,ur=tr[ur]){for(;ur%10==0;ur/=10,sr--);for(ur=tr[0];ur>=10;ur/=10,sr++);}return Yt&&fr.e+1>sr&&(sr=fr.e+1),sr},jt.shiftedBy=function(Yt){return pt(Yt,-ct,ct),this.times("1e"+Yt)},jt.squareRoot=jt.sqrt=function(){var Yt,Xt,tr,sr,ur,fr=this,It=fr.c,lt=fr.s,ft=fr.e,xt=Bt+4,_t=new Rt("0.5");if(lt!==1||!It||!It[0])return new Rt(!lt||lt<0&&(!It||It[0])?NaN:It?fr:1/0);if(lt=Math.sqrt(+kr(fr)),lt==0||lt==1/0?(Xt=wt(It),(Xt.length+ft)%2==0&&(Xt+="0"),lt=Math.sqrt(+Xt),ft=Et((ft+1)/2)-(ft<0||ft%2),lt==1/0?Xt="5e"+ft:(Xt=lt.toExponential(),Xt=Xt.slice(0,Xt.indexOf("e")+1)+ft),tr=new Rt(Xt)):tr=new Rt(lt+""),tr.c[0]){for(ft=tr.e,lt=ft+xt,lt<3&&(lt=0);;)if(ur=tr,tr=_t.times(ur.plus(Pt(fr,ur,xt,1))),wt(ur.c).slice(0,lt)===(Xt=wt(tr.c)).slice(0,lt))if(tr.e0&&mr>0){for(fr=mr%lt||lt,_t=Er.substr(0,fr);fr0&&(_t+=xt+Er.slice(fr)),Zt&&(_t="-"+_t)}sr=Lt?_t+(tr.decimalSeparator||"")+((ft=+tr.fractionGroupSize)?Lt.replace(new RegExp("\\d{"+ft+"}\\B","g"),"$&"+(tr.fractionGroupSeparator||"")):Lt):_t}return(tr.prefix||"")+sr+(tr.suffix||"")},jt.toFraction=function(Yt){var Xt,tr,sr,ur,fr,It,lt,ft,xt,_t,Lt,Zt,Er=this,mr=Er.c;if(Yt!=null&&(lt=new Rt(Yt),!lt.isInteger()&&(lt.c||lt.s!==1)||lt.lt(Mt)))throw Error(At+"Argument "+(lt.isInteger()?"out of range: ":"not an integer: ")+kr(lt));if(!mr)return new Rt(Er);for(Xt=new Rt(Mt),xt=tr=new Rt(Mt),sr=ft=new Rt(Mt),Zt=wt(mr),fr=Xt.e=Zt.length-Er.e-1,Xt.c[0]=ut[(It=fr%st)<0?st+It:It],Yt=!Yt||lt.comparedTo(Xt)>0?fr>0?Xt:xt:lt,It=rr,rr=1/0,lt=new Rt(Zt),ft.c[0]=0;_t=Pt(lt,Xt,0,1),ur=tr.plus(_t.times(sr)),ur.comparedTo(Yt)!=1;)tr=sr,sr=ur,xt=ft.plus(_t.times(ur=xt)),ft=ur,Xt=lt.minus(_t.times(ur=Xt)),lt=ur;return ur=Pt(Yt.minus(tr),sr,0,1),ft=ft.plus(ur.times(xt)),tr=tr.plus(ur.times(sr)),ft.s=xt.s=Er.s,fr=fr*2,Lt=Pt(xt,sr,fr,vt).minus(Er).abs().comparedTo(Pt(ft,tr,fr,vt).minus(Er).abs())<1?[xt,sr]:[ft,tr],rr=It,Lt},jt.toNumber=function(){return+kr(this)},jt.toPrecision=function(Yt,Xt){return Yt!=null&&pt(Yt,1,dt),Qr(this,Yt,Xt,2)},jt.toString=function(Yt){var Xt,tr=this,sr=tr.s,ur=tr.e;return ur===null?sr?(Xt="Infinity",sr<0&&(Xt="-"+Xt)):Xt="NaN":(Yt==null?Xt=ur<=Nt||ur>=Ut?$t(wt(tr.c),ur):Gt(wt(tr.c),ur,"0"):Yt===10&&cr?(tr=yr(new Rt(tr),Bt+ur+1,vt),Xt=Gt(wt(tr.c),tr.e,"0")):(pt(Yt,2,Ar.length,"Base"),Xt=Kt(Gt(wt(tr.c),ur,"0"),10,Yt,sr,!0)),sr<0&&tr.c[0]&&(Xt="-"+Xt)),Xt},jt.valueOf=jt.toJSON=function(){return kr(this)},jt._isBigNumber=!0,Tt!=null&&Rt.set(Tt),Rt}function Et(Tt){var Pt=Tt|0;return Tt>0||Tt===Pt?Pt:Pt-1}function wt(Tt){for(var Pt,Kt,ir=1,jt=Tt.length,Mt=Tt[0]+"";irUt^Kt?1:-1;for(vt=(Nt=jt.length)<(Ut=Mt.length)?Nt:Ut,Bt=0;BtMt[Bt]^Kt?1:-1;return Nt==Ut?0:Nt>Ut^Kt?1:-1}function pt(Tt,Pt,Kt,ir){if(TtKt||Tt!==it(Tt))throw Error(At+(ir||"Argument")+(typeof Tt=="number"?TtKt?" out of range: ":" not an integer: ":" not a primitive number: ")+String(Tt))}function Qt(Tt){var Pt=Tt.c.length-1;return Et(Tt.e/st)==Pt&&Tt.c[Pt]%2!=0}function $t(Tt,Pt){return(Tt.length>1?Tt.charAt(0)+"."+Tt.slice(1):Tt)+(Pt<0?"e":"e+")+Pt}function Gt(Tt,Pt,Kt){var ir,jt;if(Pt<0){for(jt=Kt+".";++Pt;jt+=Kt);Tt=jt+Tt}else if(ir=Tt.length,++Pt>ir){for(jt=Kt,Pt-=ir;--Pt;jt+=Kt);Tt+=jt}else Pt0)););return _r|0}function yr(nr){return nr=nr|0,((Rt|0)+(nr|0)|0)<(Qr|0)?0:1}function kr(nr){return nr=nr|0,nt[nr|0]<<8|nt[nr+1|0]|0}function Yt(nr){return nr=nr|0,nt[nr|0]<<24|nt[nr+1|0]<<16|nt[nr+2|0]<<8|nt[nr+3|0]|0}function Xt(nr){return nr=nr|0,it(nr|0),Rt=Rt+1|0,0}function tr(nr){return nr=nr|0,yr(1)|0?1:(it(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function sr(nr){return nr=nr|0,yr(2)|0?1:(it(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function ur(nr){return nr=nr|0,yr(4)|0?1:(At(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function fr(nr){return nr=nr|0,yr(8)|0?1:(ot(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function It(nr){return nr=nr|0,it(-1-(nr-32|0)|0),Rt=Rt+1|0,0}function lt(nr){return nr=nr|0,yr(1)|0?1:(it(-1-(nt[Rt+1|0]|0)|0),Rt=Rt+2|0,0)}function ft(nr){nr=nr|0;var Rr=0;return yr(2)|0?1:(Rr=kr(Rt+1|0)|0,it(-1-(Rr|0)|0),Rt=Rt+3|0,0)}function xt(nr){return nr=nr|0,yr(4)|0?1:(at(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function _t(nr){return nr=nr|0,yr(8)|0?1:(st(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Lt(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return $r=nr-64|0,yr($r|0)|0?1:(Rr=Rt+1|0,Mr=(Rt+1|0)+($r|0)|0,vt(Rr|0,Mr|0),Rt=Mr|0,0)}function Zt(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(1)|0||($r=nt[Rt+1|0]|0,Rr=Rt+2|0,Mr=(Rt+2|0)+($r|0)|0,yr($r+1|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function Er(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(2)|0||($r=kr(Rt+1|0)|0,Rr=Rt+3|0,Mr=(Rt+3|0)+($r|0)|0,yr($r+2|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function mr(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(4)|0||($r=Yt(Rt+1|0)|0,Rr=Rt+5|0,Mr=(Rt+5|0)+($r|0)|0,yr($r+4|0)|0)?1:(vt(Rr|0,Mr|0),Rt=Mr|0,0)}function wr(nr){return nr=nr|0,1}function Yr(nr){return nr=nr|0,Nt(),Rt=Rt+1|0,0}function Ft(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return $r=nr-96|0,yr($r|0)|0?1:(Rr=Rt+1|0,Mr=(Rt+1|0)+($r|0)|0,Ut(Rr|0,Mr|0),Rt=Mr|0,0)}function yt(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(1)|0||($r=nt[Rt+1|0]|0,Rr=Rt+2|0,Mr=(Rt+2|0)+($r|0)|0,yr($r+1|0)|0)?1:(Ut(Rr|0,Mr|0),Rt=Mr|0,0)}function St(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(2)|0||($r=kr(Rt+1|0)|0,Rr=Rt+3|0,Mr=(Rt+3|0)+($r|0)|0,yr($r+2|0)|0)?1:(Ut(Rr|0,Mr|0),Rt=Mr|0,0)}function zt(nr){nr=nr|0;var Rr=0,Mr=0,$r=0;return yr(4)|0||($r=Yt(Rt+1|0)|0,Rr=Rt+5|0,Mr=(Rt+5|0)+($r|0)|0,yr($r+4|0)|0)?1:(Ut(Rr|0,Mr|0),Rt=Mr|0,0)}function or(nr){return nr=nr|0,1}function Br(nr){return nr=nr|0,Jt(),Rt=Rt+1|0,0}function gr(nr){return nr=nr|0,Tt(nr-128|0),Rt=Rt+1|0,0}function Lr(nr){return nr=nr|0,yr(1)|0?1:(Tt(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function cn(nr){return nr=nr|0,yr(2)|0?1:(Tt(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Pr(nr){return nr=nr|0,yr(4)|0?1:(Pt(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Tr(nr){return nr=nr|0,yr(8)|0?1:(Kt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Bn(nr){return nr=nr|0,Gt(),Rt=Rt+1|0,0}function Wr(nr){nr=nr|0;var Rr=0;return Rr=nr-160|0,yr(Rr|0)|0?1:(jt(Rr|0),Rt=Rt+1|0,0)}function Rn(nr){return nr=nr|0,yr(1)|0?1:(jt(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function _i(nr){return nr=nr|0,yr(2)|0?1:(jt(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Fn(nr){return nr=nr|0,yr(4)|0?1:(Mt(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Gn(nr){return nr=nr|0,yr(8)|0?1:(Bt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function Hn(nr){return nr=nr|0,ir(),Rt=Rt+1|0,0}function yn(nr){return nr=nr|0,Wt(nr-192|0|0),Rt=Rt+1|0,0}function Dn(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function rA(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function Nn(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function Tn(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function wn(nr){return nr=nr|0,Wt(nr-192|0|0),Rt=Rt+1|0,0}function xn(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function Cn(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function Dt(nr){return nr=nr|0,Wt(nr|0),Rt=Rt+1|0,0}function qt(nr){return nr=nr|0,yr(1)|0?1:(Wt(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function Ht(nr){return nr=nr|0,yr(2)|0?1:(Wt(kr(Rt+1|0)|0),Rt=Rt+3|0,0)}function Ct(nr){return nr=nr|0,yr(4)|0?1:(Ot(kr(Rt+1|0)|0,kr(Rt+3|0)|0),Rt=Rt+5|0,0)}function Vt(nr){return nr=nr|0,yr(8)|0?1:(bt(kr(Rt+1|0)|0,kr(Rt+3|0)|0,kr(Rt+5|0)|0,kr(Rt+7|0)|0),Rt=Rt+9|0,0)}function lr(nr){return nr=nr|0,rr((nr|0)-224|0),Rt=Rt+1|0,0}function hr(nr){return nr=nr|0,ht(),Rt=Rt+1|0,0}function Cr(nr){return nr=nr|0,dt(),Rt=Rt+1|0,0}function br(nr){return nr=nr|0,wt(),Rt=Rt+1|0,0}function jr(nr){return nr=nr|0,Et(),Rt=Rt+1|0,0}function Gr(nr){return nr=nr|0,yr(1)|0?1:(rr(nt[Rt+1|0]|0),Rt=Rt+2|0,0)}function In(nr){nr=nr|0;var Rr=0,Mr=0,$r=1,Jr=0,Nr=0,Vr=0;return yr(2)|0?1:(Rr=nt[Rt+1|0]|0,Mr=nt[Rt+2|0]|0,(Rr|0)&128&&($r=-1),Jr=+(((Rr|0)&124)>>2),Nr=+(((Rr|0)&3)<<8|Mr),+Jr==0?ct(+(+$r*5960464477539063e-23*+Nr)):+Jr==31?+$r==1?+Nr>0?Qt():mt():+Nr>0?$t():pt():ct(+(+$r*cr(2,+(+Jr-25))*+(1024+Nr))),Rt=Rt+3|0,0)}function Or(nr){return nr=nr|0,yr(4)|0?1:(ut(nt[Rt+1|0]|0,nt[Rt+2|0]|0,nt[Rt+3|0]|0,nt[Rt+4|0]|0),Rt=Rt+5|0,0)}function Xr(nr){return nr=nr|0,yr(8)|0?1:(gt(nt[Rt+1|0]|0,nt[Rt+2|0]|0,nt[Rt+3|0]|0,nt[Rt+4|0]|0,nt[Rt+5|0]|0,nt[Rt+6|0]|0,nt[Rt+7|0]|0,nt[Rt+8|0]|0),Rt=Rt+9|0,0)}function Ur(nr){return nr=nr|0,1}function ln(nr){return nr=nr|0,Ar(),Rt=Rt+1|0,0}var sn=[Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,Xt,tr,sr,ur,fr,Ur,Ur,Ur,Ur,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It,It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TWO:25,FOUR:26,EIGHT:27,INDEFINITE:31};constants$2.SIMPLE={FALSE:20,TRUE:21,NULL:22,UNDEFINED:23};constants$2.SYMS={NULL:Symbol("null"),UNDEFINED:Symbol("undef"),PARENT:Symbol("parent"),BREAK:Symbol("break"),STREAM:Symbol("stream")};constants$2.SHIFT32=Math.pow(2,32);constants$2.SHIFT16=Math.pow(2,16);constants$2.MAX_SAFE_HIGH=2097151;constants$2.NEG_ONE=new Bignumber$2(-1);constants$2.TEN=new Bignumber$2(10);constants$2.TWO=new Bignumber$2(2);constants$2.PARENT={ARRAY:0,OBJECT:1,MAP:2,TAG:3,BYTE_STRING:4,UTF8_STRING:5};(function($){const{Buffer:et}=buffer$1,tt=bignumberExports.BigNumber,rt=constants$2,nt=rt.SHIFT32,it=rt.SHIFT16,At=2097151;$.parseHalf=function(st){var ct,ut,gt;return gt=st[0]&128?-1:1,ct=(st[0]&124)>>2,ut=(st[0]&3)<<8|st[1],ct?ct===31?gt*(ut?0/0:1/0):gt*Math.pow(2,ct-25)*(1024+ut):gt*5960464477539063e-23*ut};function at(ot){return ot<16?"0"+ot.toString(16):ot.toString(16)}$.arrayBufferToBignumber=function(ot){const st=ot.byteLength;let ct="";for(let ut=0;ut{const st=new Map,ct=Object.keys(ot),ut=ct.length;for(let gt=0;gtot*it+st,$.buildInt64=(ot,st,ct,ut)=>{const gt=$.buildInt32(ot,st),dt=$.buildInt32(ct,ut);return gt>At?new tt(gt).times(nt).plus(dt):gt*nt+dt},$.writeHalf=function(st,ct){const ut=et.allocUnsafe(4);ut.writeFloatBE(ct,0);const gt=ut.readUInt32BE(0);if(gt&8191)return!1;var dt=gt>>16&32768;const ht=gt>>23&255,Et=gt&8388607;if(ht>=113&&ht<=142)dt+=(ht-112<<10)+(Et>>13);else if(ht>=103&&ht<113){if(Et&(1<<126-ht)-1)return!1;dt+=Et+8388608>>126-ht}else return!1;return st.writeUInt16BE(dt,0),!0},$.keySorter=function(ot,st){var ct=ot[0].byteLength,ut=st[0].byteLength;return ct>ut?1:ut>ct?-1:ot[0].compare(st[0])},$.isNegativeZero=ot=>ot===0&&1/ot<0,$.nextPowerOf2=ot=>{let st=0;if(ot&&!(ot&ot-1))return ot;for(;ot!==0;)ot>>=1,st+=1;return 1<255||(et|0)!==et)throw new Error("value must be a small positive integer: "+et);this.value=et}toString(){return"simple("+this.value+")"}inspect(){return"simple("+this.value+")"}encodeCBOR(et){return et._pushInt(this.value,MT$1.SIMPLE_FLOAT)}static isSimple(et){return et instanceof QA}static decode(et,tt){switch(tt==null&&(tt=!0),et){case SIMPLE.FALSE:return!1;case SIMPLE.TRUE:return!0;case SIMPLE.NULL:return tt?null:SYMS$1.NULL;case SIMPLE.UNDEFINED:return tt?void 0:SYMS$1.UNDEFINED;case-1:if(!tt)throw new Error("Invalid BREAK");return SYMS$1.BREAK;default:return new QA(et)}}};var simple=Simple$1;let Tagged$1=class mA{constructor(et,tt,rt){if(this.tag=et,this.value=tt,this.err=rt,typeof this.tag!="number")throw new Error("Invalid tag type ("+typeof this.tag+")");if(this.tag<0||(this.tag|0)!==this.tag)throw new Error("Tag must be a positive integer: "+this.tag)}toString(){return`${this.tag}(${JSON.stringify(this.value)})`}encodeCBOR(et){return et._pushTag(this.tag),et.pushAny(this.value)}convert(et){var tt,rt;if(rt=et!=null?et[this.tag]:void 0,typeof rt!="function"&&(rt=mA["_tag"+this.tag],typeof rt!="function"))return this;try{return rt.call(mA,this.value)}catch(nt){return tt=nt,this.err=tt,this}}};var tagged$1=Tagged$1;const defaultBase$1=self.location?self.location.protocol+"//"+self.location.host:"",URL$3=self.URL;let URLWithLegacySupport$2=class{constructor(et="",tt=defaultBase$1){this.super=new URL$3(et,tt),this.path=this.pathname+this.search,this.auth=this.username&&this.password?this.username+":"+this.password:null,this.query=this.search&&this.search.startsWith("?")?this.search.slice(1):null}get hash(){return this.super.hash}get host(){return this.super.host}get hostname(){return this.super.hostname}get href(){return this.super.href}get origin(){return this.super.origin}get password(){return this.super.password}get pathname(){return this.super.pathname}get port(){return this.super.port}get protocol(){return this.super.protocol}get search(){return this.super.search}get searchParams(){return this.super.searchParams}get username(){return this.super.username}set hash(et){this.super.hash=et}set host(et){this.super.host=et}set hostname(et){this.super.hostname=et}set href(et){this.super.href=et}set origin(et){this.super.origin=et}set password(et){this.super.password=et}set pathname(et){this.super.pathname=et}set port(et){this.super.port=et}set protocol(et){this.super.protocol=et}set search(et){this.super.search=et}set searchParams(et){this.super.searchParams=et}set username(et){this.super.username=et}createObjectURL(et){return this.super.createObjectURL(et)}revokeObjectURL(et){this.super.revokeObjectURL(et)}toJSON(){return this.super.toJSON()}toString(){return this.super.toString()}format(){return this.toString()}};function format$2($){if(typeof $=="string")return new URL$3($).toString();if(!($ instanceof URL$3)){const et=$.username&&$.password?`${$.username}:${$.password}@`:"",tt=$.auth?$.auth+"@":"",rt=$.port?":"+$.port:"",nt=$.protocol?$.protocol+"//":"",it=$.host||"",At=$.hostname||"",at=$.search||($.query?"?"+$.query:""),ot=$.hash||"",st=$.pathname||"",ct=$.path||st+at;return`${nt}${et||tt}${it||At+rt}${ct}${ot}`}}var urlBrowser={URLWithLegacySupport:URLWithLegacySupport$2,URLSearchParams:self.URLSearchParams,defaultBase:defaultBase$1,format:format$2};const{URLWithLegacySupport:URLWithLegacySupport$1,format:format$1}=urlBrowser;var relative$1=($,et={},tt={},rt)=>{let nt=et.protocol?et.protocol.replace(":",""):"http";nt=(tt[nt]||rt||nt)+":";let it;try{it=new URLWithLegacySupport$1($)}catch{it={}}const At=Object.assign({},et,{protocol:nt||it.protocol,host:et.host||it.host});return new URLWithLegacySupport$1($,format$1(At)).toString()};const{URLWithLegacySupport,format,URLSearchParams,defaultBase}=urlBrowser,relative=relative$1;var isoUrl={URL:URLWithLegacySupport,URLSearchParams,format,relative,defaultBase};const{Buffer:Buffer$3}=buffer$1,ieee754=ieee754$1,Bignumber$1=bignumberExports.BigNumber,parser=decoder_asm,utils$p=utils$q,c=constants$2,Simple=simple,Tagged=tagged$1,{URL:URL$2}=isoUrl;let Decoder$1=class bA{constructor(et){et=et||{},!et.size||et.size<65536?et.size=65536:et.size=utils$p.nextPowerOf2(et.size),this._heap=new ArrayBuffer(et.size),this._heap8=new Uint8Array(this._heap),this._buffer=Buffer$3.from(this._heap),this._reset(),this._knownTags=Object.assign({0:tt=>new Date(tt),1:tt=>new Date(tt*1e3),2:tt=>utils$p.arrayBufferToBignumber(tt),3:tt=>c.NEG_ONE.minus(utils$p.arrayBufferToBignumber(tt)),4:tt=>c.TEN.pow(tt[0]).times(tt[1]),5:tt=>c.TWO.pow(tt[0]).times(tt[1]),32:tt=>new URL$2(tt),35:tt=>new RegExp(tt)},et.tags),this.parser=parser(commonjsGlobal,{log:console.log.bind(console),pushInt:this.pushInt.bind(this),pushInt32:this.pushInt32.bind(this),pushInt32Neg:this.pushInt32Neg.bind(this),pushInt64:this.pushInt64.bind(this),pushInt64Neg:this.pushInt64Neg.bind(this),pushFloat:this.pushFloat.bind(this),pushFloatSingle:this.pushFloatSingle.bind(this),pushFloatDouble:this.pushFloatDouble.bind(this),pushTrue:this.pushTrue.bind(this),pushFalse:this.pushFalse.bind(this),pushUndefined:this.pushUndefined.bind(this),pushNull:this.pushNull.bind(this),pushInfinity:this.pushInfinity.bind(this),pushInfinityNeg:this.pushInfinityNeg.bind(this),pushNaN:this.pushNaN.bind(this),pushNaNNeg:this.pushNaNNeg.bind(this),pushArrayStart:this.pushArrayStart.bind(this),pushArrayStartFixed:this.pushArrayStartFixed.bind(this),pushArrayStartFixed32:this.pushArrayStartFixed32.bind(this),pushArrayStartFixed64:this.pushArrayStartFixed64.bind(this),pushObjectStart:this.pushObjectStart.bind(this),pushObjectStartFixed:this.pushObjectStartFixed.bind(this),pushObjectStartFixed32:this.pushObjectStartFixed32.bind(this),pushObjectStartFixed64:this.pushObjectStartFixed64.bind(this),pushByteString:this.pushByteString.bind(this),pushByteStringStart:this.pushByteStringStart.bind(this),pushUtf8String:this.pushUtf8String.bind(this),pushUtf8StringStart:this.pushUtf8StringStart.bind(this),pushSimpleUnassigned:this.pushSimpleUnassigned.bind(this),pushTagUnassigned:this.pushTagUnassigned.bind(this),pushTagStart:this.pushTagStart.bind(this),pushTagStart4:this.pushTagStart4.bind(this),pushTagStart8:this.pushTagStart8.bind(this),pushBreak:this.pushBreak.bind(this)},this._heap)}get _depth(){return this._parents.length}get _currentParent(){return this._parents[this._depth-1]}get _ref(){return this._currentParent.ref}_closeParent(){var et=this._parents.pop();if(et.length>0)throw new Error(`Missing ${et.length} elements`);switch(et.type){case c.PARENT.TAG:this._push(this.createTag(et.ref[0],et.ref[1]));break;case c.PARENT.BYTE_STRING:this._push(this.createByteString(et.ref,et.length));break;case c.PARENT.UTF8_STRING:this._push(this.createUtf8String(et.ref,et.length));break;case c.PARENT.MAP:if(et.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createMap(et.ref,et.length));break;case c.PARENT.OBJECT:if(et.values%2>0)throw new Error("Odd number of elements in the map");this._push(this.createObject(et.ref,et.length));break;case c.PARENT.ARRAY:this._push(this.createArray(et.ref,et.length));break}this._currentParent&&this._currentParent.type===c.PARENT.TAG&&this._dec()}_dec(){const et=this._currentParent;et.length<0||(et.length--,et.length===0&&this._closeParent())}_push(et,tt){const rt=this._currentParent;switch(rt.values++,rt.type){case c.PARENT.ARRAY:case c.PARENT.BYTE_STRING:case c.PARENT.UTF8_STRING:rt.length>-1?this._ref[this._ref.length-rt.length]=et:this._ref.push(et),this._dec();break;case c.PARENT.OBJECT:rt.tmpKey!=null?(this._ref[rt.tmpKey]=et,rt.tmpKey=null,this._dec()):(rt.tmpKey=et,typeof rt.tmpKey!="string"&&(rt.type=c.PARENT.MAP,rt.ref=utils$p.buildMap(rt.ref)));break;case c.PARENT.MAP:rt.tmpKey!=null?(this._ref.set(rt.tmpKey,et),rt.tmpKey=null,this._dec()):rt.tmpKey=et;break;case c.PARENT.TAG:this._ref.push(et),tt||this._dec();break;default:throw new Error("Unknown parent type")}}_createParent(et,tt,rt){this._parents[this._depth]={type:tt,length:rt,ref:et,values:0,tmpKey:null}}_reset(){this._res=[],this._parents=[{type:c.PARENT.ARRAY,length:-1,ref:this._res,values:0,tmpKey:null}]}createTag(et,tt){const rt=this._knownTags[et];return rt?rt(tt):new Tagged(et,tt)}createMap(et,tt){return et}createObject(et,tt){return et}createArray(et,tt){return et}createByteString(et,tt){return Buffer$3.concat(et)}createByteStringFromHeap(et,tt){return et===tt?Buffer$3.alloc(0):Buffer$3.from(this._heap.slice(et,tt))}createInt(et){return et}createInt32(et,tt){return utils$p.buildInt32(et,tt)}createInt64(et,tt,rt,nt){return utils$p.buildInt64(et,tt,rt,nt)}createFloat(et){return et}createFloatSingle(et,tt,rt,nt){return ieee754.read([et,tt,rt,nt],0,!1,23,4)}createFloatDouble(et,tt,rt,nt,it,At,at,ot){return ieee754.read([et,tt,rt,nt,it,At,at,ot],0,!1,52,8)}createInt32Neg(et,tt){return-1-utils$p.buildInt32(et,tt)}createInt64Neg(et,tt,rt,nt){const it=utils$p.buildInt32(et,tt),At=utils$p.buildInt32(rt,nt);return it>c.MAX_SAFE_HIGH?c.NEG_ONE.minus(new Bignumber$1(it).times(c.SHIFT32).plus(At)):-1-(it*c.SHIFT32+At)}createTrue(){return!0}createFalse(){return!1}createNull(){return null}createUndefined(){}createInfinity(){return 1/0}createInfinityNeg(){return-1/0}createNaN(){return NaN}createNaNNeg(){return NaN}createUtf8String(et,tt){return et.join("")}createUtf8StringFromHeap(et,tt){return et===tt?"":this._buffer.toString("utf8",et,tt)}createSimpleUnassigned(et){return new Simple(et)}pushInt(et){this._push(this.createInt(et))}pushInt32(et,tt){this._push(this.createInt32(et,tt))}pushInt64(et,tt,rt,nt){this._push(this.createInt64(et,tt,rt,nt))}pushFloat(et){this._push(this.createFloat(et))}pushFloatSingle(et,tt,rt,nt){this._push(this.createFloatSingle(et,tt,rt,nt))}pushFloatDouble(et,tt,rt,nt,it,At,at,ot){this._push(this.createFloatDouble(et,tt,rt,nt,it,At,at,ot))}pushInt32Neg(et,tt){this._push(this.createInt32Neg(et,tt))}pushInt64Neg(et,tt,rt,nt){this._push(this.createInt64Neg(et,tt,rt,nt))}pushTrue(){this._push(this.createTrue())}pushFalse(){this._push(this.createFalse())}pushNull(){this._push(this.createNull())}pushUndefined(){this._push(this.createUndefined())}pushInfinity(){this._push(this.createInfinity())}pushInfinityNeg(){this._push(this.createInfinityNeg())}pushNaN(){this._push(this.createNaN())}pushNaNNeg(){this._push(this.createNaNNeg())}pushArrayStart(){this._createParent([],c.PARENT.ARRAY,-1)}pushArrayStartFixed(et){this._createArrayStartFixed(et)}pushArrayStartFixed32(et,tt){const rt=utils$p.buildInt32(et,tt);this._createArrayStartFixed(rt)}pushArrayStartFixed64(et,tt,rt,nt){const it=utils$p.buildInt64(et,tt,rt,nt);this._createArrayStartFixed(it)}pushObjectStart(){this._createObjectStartFixed(-1)}pushObjectStartFixed(et){this._createObjectStartFixed(et)}pushObjectStartFixed32(et,tt){const rt=utils$p.buildInt32(et,tt);this._createObjectStartFixed(rt)}pushObjectStartFixed64(et,tt,rt,nt){const it=utils$p.buildInt64(et,tt,rt,nt);this._createObjectStartFixed(it)}pushByteStringStart(){this._parents[this._depth]={type:c.PARENT.BYTE_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushByteString(et,tt){this._push(this.createByteStringFromHeap(et,tt))}pushUtf8StringStart(){this._parents[this._depth]={type:c.PARENT.UTF8_STRING,length:-1,ref:[],values:0,tmpKey:null}}pushUtf8String(et,tt){this._push(this.createUtf8StringFromHeap(et,tt))}pushSimpleUnassigned(et){this._push(this.createSimpleUnassigned(et))}pushTagStart(et){this._parents[this._depth]={type:c.PARENT.TAG,length:1,ref:[et]}}pushTagStart4(et,tt){this.pushTagStart(utils$p.buildInt32(et,tt))}pushTagStart8(et,tt,rt,nt){this.pushTagStart(utils$p.buildInt64(et,tt,rt,nt))}pushTagUnassigned(et){this._push(this.createTag(et))}pushBreak(){if(this._currentParent.length>-1)throw new Error("Unexpected break");this._closeParent()}_createObjectStartFixed(et){if(et===0){this._push(this.createObject({}));return}this._createParent({},c.PARENT.OBJECT,et)}_createArrayStartFixed(et){if(et===0){this._push(this.createArray([]));return}this._createParent(new Array(et),c.PARENT.ARRAY,et)}_decode(et){if(et.byteLength===0)throw new Error("Input too short");this._reset(),this._heap8.set(et);const tt=this.parser.parse(et.byteLength);if(this._depth>1){for(;this._currentParent.length===0;)this._closeParent();if(this._depth>1)throw new Error("Undeterminated nesting")}if(tt>0)throw new Error("Failed to parse");if(this._res.length===0)throw new Error("No valid result")}decodeFirst(et){return this._decode(et),this._res[0]}decodeAll(et){return this._decode(et),this._res}static decode(et,tt){return typeof et=="string"&&(et=Buffer$3.from(et,tt||"hex")),new bA({size:et.length}).decodeFirst(et)}static decodeAll(et,tt){return typeof et=="string"&&(et=Buffer$3.from(et,tt||"hex")),new bA({size:et.length}).decodeAll(et)}};Decoder$1.decodeFirst=Decoder$1.decode;var decoder=Decoder$1;const{Buffer:Buffer$2}=buffer$1,Decoder=decoder,utils$o=utils$q;class Diagnose extends Decoder{createTag(et,tt){return`${et}(${tt})`}createInt(et){return super.createInt(et).toString()}createInt32(et,tt){return super.createInt32(et,tt).toString()}createInt64(et,tt,rt,nt){return super.createInt64(et,tt,rt,nt).toString()}createInt32Neg(et,tt){return super.createInt32Neg(et,tt).toString()}createInt64Neg(et,tt,rt,nt){return super.createInt64Neg(et,tt,rt,nt).toString()}createTrue(){return"true"}createFalse(){return"false"}createFloat(et){const tt=super.createFloat(et);return utils$o.isNegativeZero(et)?"-0_1":`${tt}_1`}createFloatSingle(et,tt,rt,nt){return`${super.createFloatSingle(et,tt,rt,nt)}_2`}createFloatDouble(et,tt,rt,nt,it,At,at,ot){return`${super.createFloatDouble(et,tt,rt,nt,it,At,at,ot)}_3`}createByteString(et,tt){const rt=et.join(", ");return tt===-1?`(_ ${rt})`:`h'${rt}`}createByteStringFromHeap(et,tt){return`h'${Buffer$2.from(super.createByteStringFromHeap(et,tt)).toString("hex")}'`}createInfinity(){return"Infinity_1"}createInfinityNeg(){return"-Infinity_1"}createNaN(){return"NaN_1"}createNaNNeg(){return"-NaN_1"}createNull(){return"null"}createUndefined(){return"undefined"}createSimpleUnassigned(et){return`simple(${et})`}createArray(et,tt){const rt=super.createArray(et,tt);return tt===-1?`[_ ${rt.join(", ")}]`:`[${rt.join(", ")}]`}createMap(et,tt){const rt=super.createMap(et),nt=Array.from(rt.keys()).reduce(collectObject(rt),"");return tt===-1?`{_ ${nt}}`:`{${nt}}`}createObject(et,tt){const rt=super.createObject(et),nt=Object.keys(rt).reduce(collectObject(rt),"");return tt===-1?`{_ ${nt}}`:`{${nt}}`}createUtf8String(et,tt){const rt=et.join(", ");return tt===-1?`(_ ${rt})`:`"${rt}"`}createUtf8StringFromHeap(et,tt){return`"${Buffer$2.from(super.createUtf8StringFromHeap(et,tt)).toString("utf8")}"`}static diagnose(et,tt){return typeof et=="string"&&(et=Buffer$2.from(et,tt||"hex")),new Diagnose().decodeFirst(et)}}var diagnose=Diagnose;function collectObject($){return(et,tt)=>et?`${et}, ${tt}: ${$[tt]}`:`${tt}: ${$[tt]}`}const{Buffer:Buffer$1}=buffer$1,{URL:URL$1}=isoUrl,Bignumber=bignumberExports.BigNumber,utils$n=utils$q,constants=constants$2,MT=constants.MT,NUMBYTES=constants.NUMBYTES,SHIFT32=constants.SHIFT32,SYMS=constants.SYMS,TAG=constants.TAG,HALF=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.TWO,FLOAT=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.FOUR,DOUBLE=constants.MT.SIMPLE_FLOAT<<5|constants.NUMBYTES.EIGHT,TRUE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.TRUE,FALSE=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.FALSE,UNDEFINED=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.UNDEFINED,NULL=constants.MT.SIMPLE_FLOAT<<5|constants.SIMPLE.NULL,MAXINT_BN=new Bignumber("0x20000000000000"),BUF_NAN=Buffer$1.from("f97e00","hex"),BUF_INF_NEG=Buffer$1.from("f9fc00","hex"),BUF_INF_POS=Buffer$1.from("f97c00","hex");function toType($){return{}.toString.call($).slice(8,-1)}class Encoder{constructor(et){et=et||{},this.streaming=typeof et.stream=="function",this.onData=et.stream,this.semanticTypes=[[URL$1,this._pushUrl],[Bignumber,this._pushBigNumber]];const tt=et.genTypes||[],rt=tt.length;for(let nt=0;nt[at,et[at]])):!1}_pushRawMap(et,tt){tt=tt.map(function(nt){return nt[0]=Encoder.encode(nt[0]),nt}).sort(utils$n.keySorter);for(var rt=0;rtrt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex$3($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$3=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$3($){if(!hexRe$3.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare$2($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash$5(et)};function requestIdOf$2($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString$2(At),st=hashValue$2(at);return[ot,st]}).sort(([At],[at])=>compare$2(At,at)),nt=concat$5(...rt.map(At=>concat$5(...At)));return hash$5(nt)}var __rest$4=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);ntnt+it.byteLength,0));tt.set(new Uint8Array($),0);let rt=$.byteLength;for(const nt of et)tt.set(new Uint8Array(nt),rt),rt+=nt.byteLength;return tt.buffer}function _serializeValue($,et,tt){tt=tt.replace(/[^0-9a-fA-F]/g,"");const rt=2**(et-24);tt=tt.slice(-rt*2).padStart(rt*2,"0");const nt=[($<<5)+et].concat(tt.match(/../g).map(it=>parseInt(it,16)));return new Uint8Array(nt).buffer}function _serializeNumber($,et){if(et<24)return new Uint8Array([($<<5)+et]).buffer;{const tt=et<=255?24:et<=65535?25:et<=4294967295?26:27;return _serializeValue($,tt,et.toString(16))}}function _serializeString($){const et=[];for(let tt=0;tt<$.length;tt++){let rt=$.charCodeAt(tt);rt<128?et.push(rt):rt<2048?et.push(192|rt>>6,128|rt&63):rt<55296||rt>=57344?et.push(224|rt>>12,128|rt>>6&63,128|rt&63):(tt++,rt=(rt&1023)<<10|$.charCodeAt(tt)&1023,et.push(240|rt>>18,128|rt>>12&63,128|rt>>6&63,128|rt&63))}return _concat(new Uint8Array(_serializeNumber(3,$.length)),new Uint8Array(et))}function tagged($,et){if($==14277111)return _concat(new Uint8Array([217,217,247]),et);if($<24)return _concat(new Uint8Array([192+$]),et);{const tt=$<=255?24:$<=65535?25:$<=4294967295?26:27,rt=2**(tt-24),nt=$.toString(16).slice(-rt*2).padStart(rt*2,"0"),it=[192+tt].concat(nt.match(/../g).map(At=>parseInt(At,16)));return new Uint8Array(it).buffer}}value.tagged=tagged;function raw($){return new Uint8Array($).buffer}value.raw=raw;function uSmall($){if(isNaN($))throw new RangeError("Invalid number.");$=Math.min(Math.max(0,$),23);const et=[0+$];return new Uint8Array(et).buffer}value.uSmall=uSmall;function u8($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,$),255),$=$.toString(16),_serializeValue(0,24,$)}value.u8=u8;function u16($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,$),65535),$=$.toString(16),_serializeValue(0,25,$)}value.u16=u16;function u32($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,$),4294967295),$=$.toString(16),_serializeValue(0,26,$)}value.u32=u32;function u64($,et){if(typeof $=="string"&&et==16){if($.match(/[^0-9a-fA-F]/))throw new RangeError("Invalid number.");return _serializeValue(0,27,$)}if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,$),MAX_U64_NUMBER),$=$.toString(16),_serializeValue(0,27,$)}value.u64=u64;function iSmall($){if(isNaN($))throw new RangeError("Invalid number.");if($===0)return uSmall(0);$=Math.min(Math.max(0,-$),24)-1;const et=[32+$];return new Uint8Array(et).buffer}value.iSmall=iSmall;function i8($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,-$-1),255),$=$.toString(16),_serializeValue(1,24,$)}value.i8=i8;function i16($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,-$-1),65535),$=$.toString(16),_serializeValue(1,25,$)}value.i16=i16;function i32($,et){if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,-$-1),4294967295),$=$.toString(16),_serializeValue(1,26,$)}value.i32=i32;function i64($,et){if(typeof $=="string"&&et==16){if($.startsWith("-")?$=$.slice(1):$="0",$.match(/[^0-9a-fA-F]/)||$.length>16)throw new RangeError("Invalid number.");let tt=!1,rt=$.split("").reduceRight((nt,it)=>{if(tt)return it+nt;let At=parseInt(it,16)-1;return At>=0?(tt=!0,At.toString(16)+nt):"f"+nt},"");return tt?_serializeValue(1,27,rt):u64(0)}if($=parseInt(""+$,et),isNaN($))throw new RangeError("Invalid number.");return $=Math.min(Math.max(0,-$-1),9007199254740992),$=$.toString(16),_serializeValue(1,27,$)}value.i64=i64;function number($){return $>=0?$<24?uSmall($):$<=255?u8($):$<=65535?u16($):$<=4294967295?u32($):u64($):$>=-24?iSmall($):$>=-255?i8($):$>=-65535?i16($):$>=-4294967295?i32($):i64($)}value.number=number;function bytes$1($){return _concat(_serializeNumber(2,$.byteLength),$)}value.bytes=bytes$1;function string($){return _serializeString($)}value.string=string;function array($){return _concat(_serializeNumber(4,$.length),...$)}value.array=array;function map($,et=!1){$ instanceof Map||($=new Map(Object.entries($)));let tt=Array.from($.entries());return et&&(tt=tt.sort(([rt],[nt])=>rt.localeCompare(nt))),_concat(_serializeNumber(5,$.size),...tt.map(([rt,nt])=>_concat(_serializeString(rt),nt)))}value.map=map;function singleFloat($){const et=new Float32Array([$]);return _concat(new Uint8Array([224+26]),new Uint8Array(et.buffer))}value.singleFloat=singleFloat;function doubleFloat($){const et=new Float64Array([$]);return _concat(new Uint8Array([224+27]),new Uint8Array(et.buffer))}value.doubleFloat=doubleFloat;function bool($){return $?true_():false_()}value.bool=bool;function true_(){return raw(new Uint8Array([224+21]))}value.true_=true_;function false_(){return raw(new Uint8Array([224+20]))}value.false_=false_;function null_(){return raw(new Uint8Array([224+22]))}value.null_=null_;function undefined_(){return raw(new Uint8Array([224+23]))}value.undefined_=undefined_;var __importStar=commonjsGlobal&&commonjsGlobal.__importStar||function($){if($&&$.__esModule)return $;var et={};if($!=null)for(var tt in $)Object.hasOwnProperty.call($,tt)&&(et[tt]=$[tt]);return et.default=$,et};Object.defineProperty(serializer$5,"__esModule",{value:!0});const cbor=__importStar(value),BufferClasses=[ArrayBuffer,Uint8Array,Uint16Array,Uint32Array,Int8Array,Int16Array,Int32Array,Float32Array,Float64Array];class JsonDefaultCborEncoder{constructor(et,tt=!1){this._serializer=et,this._stable=tt,this.name="jsonDefault",this.priority=-100}match(et){return["undefined","boolean","number","string","object"].indexOf(typeof et)!=-1}encode(et){switch(typeof et){case"undefined":return cbor.undefined_();case"boolean":return cbor.bool(et);case"number":return Math.floor(et)===et?cbor.number(et):cbor.doubleFloat(et);case"string":return cbor.string(et);case"object":if(et===null)return cbor.null_();if(Array.isArray(et))return cbor.array(et.map(tt=>this._serializer.serializeValue(tt)));if(BufferClasses.find(tt=>et instanceof tt))return cbor.bytes(et.buffer);if(Object.getOwnPropertyNames(et).indexOf("toJSON")!==-1)return this.encode(et.toJSON());if(et instanceof Map){const tt=new Map;for(const[rt,nt]of et.entries())tt.set(rt,this._serializer.serializeValue(nt));return cbor.map(tt,this._stable)}else{const tt=new Map;for(const[rt,nt]of Object.entries(et))tt.set(rt,this._serializer.serializeValue(nt));return cbor.map(tt,this._stable)}default:throw new Error("Invalid value.")}}}serializer$5.JsonDefaultCborEncoder=JsonDefaultCborEncoder;class ToCborEncoder{constructor(){this.name="cborEncoder",this.priority=-90}match(et){return typeof et=="object"&&typeof et.toCBOR=="function"}encode(et){return et.toCBOR()}}serializer$5.ToCborEncoder=ToCborEncoder;class CborSerializer{constructor(){this._encoders=new Set}static withDefaultEncoders(et=!1){const tt=new this;return tt.addEncoder(new JsonDefaultCborEncoder(tt,et)),tt.addEncoder(new ToCborEncoder),tt}removeEncoder(et){for(const tt of this._encoders.values())tt.name==et&&this._encoders.delete(tt)}addEncoder(et){this._encoders.add(et)}getEncoderFor(et){let tt=null;for(const rt of this._encoders)(!tt||rt.priority>tt.priority)&&rt.match(et)&&(tt=rt);if(tt===null)throw new Error("Could not find an encoder for value.");return tt}serializeValue(et){return this.getEncoderFor(et).encode(et)}serialize(et){return this.serializeValue(et)}}serializer$5.CborSerializer=CborSerializer;class SelfDescribeCborSerializer extends CborSerializer{serialize(et){return cbor.raw(new Uint8Array([...new Uint8Array([217,217,247]),...new Uint8Array(super.serializeValue(et))]))}}serializer$5.SelfDescribeCborSerializer=SelfDescribeCborSerializer;(function($){function et(nt){for(var it in nt)$.hasOwnProperty(it)||($[it]=nt[it])}var tt=commonjsGlobal&&commonjsGlobal.__importStar||function(nt){if(nt&&nt.__esModule)return nt;var it={};if(nt!=null)for(var At in nt)Object.hasOwnProperty.call(nt,At)&&(it[At]=nt[At]);return it.default=nt,it};Object.defineProperty($,"__esModule",{value:!0}),et(serializer$5);const rt=tt(value);$.value=rt})(src);let PrincipalEncoder$3=class{get name(){return"Principal"}get priority(){return 0}match(et){return et&&et._isPrincipal===!0}encode(et){return src.value.bytes(et.toUint8Array())}},BufferEncoder$3=class{get name(){return"Buffer"}get priority(){return 1}match(et){return et instanceof ArrayBuffer||ArrayBuffer.isView(et)}encode(et){return src.value.bytes(new Uint8Array(et))}},BigIntEncoder$3=class{get name(){return"BigInt"}get priority(){return 1}match(et){return typeof et=="bigint"}encode(et){return et>BigInt(0)?src.value.tagged(2,src.value.bytes(fromHex$3(et.toString(16)))):src.value.tagged(3,src.value.bytes(fromHex$3((BigInt("-1")*et).toString(16))))}};const serializer$4=src.SelfDescribeCborSerializer.withDefaultEncoders(!0);serializer$4.addEncoder(new PrincipalEncoder$3);serializer$4.addEncoder(new BufferEncoder$3);serializer$4.addEncoder(new BigIntEncoder$3);var CborTag$3;(function($){$[$.Uint64LittleEndian=71]="Uint64LittleEndian",$[$.Semantic=55799]="Semantic"})(CborTag$3||(CborTag$3={}));function encode$7($){return serializer$4.serialize($)}function decodePositiveBigInt$3($){const et=$.byteLength;let tt=BigInt(0);for(let rt=0;rtdecodePositiveBigInt$3(rt),3:rt=>-decodePositiveBigInt$3(rt),[CborTag$3.Semantic]:rt=>rt}}).decodeFirst(et)}var SubmitRequestType$2;(function($){$.Call="call"})(SubmitRequestType$2||(SubmitRequestType$2={}));function makeNonce$2(){const $=new ArrayBuffer(16),et=new DataView($),tt=BigInt(+Date.now()),rt=Math.floor(Math.random()*4294967295),nt=Math.floor(Math.random()*4294967295);if(typeof et.setBigUint64=="function")et.setBigUint64(0,tt);else{const it=BigInt(1)<>BigInt(32))),et.setUint32(4,Number(tt%it))}return et.setUint32(8,rt),et.setUint32(12,nt),$}const NANOSECONDS_PER_MILLISECONDS$2=BigInt(1e6),REPLICA_PERMITTED_DRIFT_MILLISECONDS$2=BigInt(60*1e3);let Expiry$2=class{constructor(et){this._value=(BigInt(Date.now())+BigInt(et)-REPLICA_PERMITTED_DRIFT_MILLISECONDS$2)*NANOSECONDS_PER_MILLISECONDS$2}toCBOR(){return src.value.u64(this._value.toString(16),16)}toHash(){return lebEncode$2(this._value)}};function makeNonceTransform$2($=makeNonce$2){return async et=>{et.endpoint==="call"&&(et.body.nonce=$())}}var RequestStatusResponseStatus$2;(function($){$.Received="received",$.Processing="processing",$.Replied="replied",$.Rejected="rejected",$.Unknown="unknown",$.Done="done"})(RequestStatusResponseStatus$2||(RequestStatusResponseStatus$2={}));const DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$2=5*60*1e3,IC_ROOT_KEY$2="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",IC0_DOMAIN$2="ic0.app",IC0_SUB_DOMAIN$2=".ic0.app";let HttpDefaultFetchError$2=class extends AgentError$2{constructor(et){super(et),this.message=et}},IdentityInvalidError$2=class extends AgentError$2{constructor(et){super(et),this.message=et}};function getDefaultFetch$2(){let $;if(typeof window<"u")if(window.fetch)$=window.fetch.bind(window);else throw new HttpDefaultFetchError$2("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global<"u")if(global.fetch)$=global.fetch.bind(global);else throw new HttpDefaultFetchError$2("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self<"u"&&self.fetch&&($=self.fetch.bind(self));if($)return $;throw new HttpDefaultFetchError$2("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}let HttpAgent$2=class jA{constructor(et={}){if(this.rootKey=fromHex$3(IC_ROOT_KEY$2),this._pipeline=[],this._rootKeyFetched=!1,et.source){if(!(et.source instanceof jA))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...et.source._pipeline],this._identity=et.source._identity,this._fetch=et.source._fetch,this._host=et.source._host,this._credentials=et.source._credentials}else this._fetch=et.fetch||getDefaultFetch$2()||fetch.bind(global);if(et.host!==void 0)!et.host.match(/^[a-z]+:/)&&typeof window<"u"?this._host=new URL(window.location.protocol+"//"+et.host):this._host=new URL(et.host);else if(et.source!==void 0)this._host=et.source._host;else{const tt=typeof window<"u"?window.location:void 0;if(!tt)throw new Error("Must specify a host to connect to.");this._host=new URL(tt+"")}if(this._host.hostname.endsWith(IC0_SUB_DOMAIN$2)&&(this._host.hostname=IC0_DOMAIN$2),et.credentials){const{name:tt,password:rt}=et.credentials;this._credentials=`${tt}${rt?":"+rt:""}`}this._identity=Promise.resolve(et.identity||new AnonymousIdentity$2),et.disableNonce||this.addTransform(makeNonceTransform$2(makeNonce$2))}addTransform(et,tt=et.priority||0){const rt=this._pipeline.findIndex(nt=>(nt.priority||0)=0?rt:this._pipeline.length,0,Object.assign(et,{priority:tt}))}async getPrincipal(){if(!this._identity)throw new IdentityInvalidError$2("This identity has expired due this application's security policy. Please refresh your authentication.");return(await this._identity).getPrincipal()}async call(et,tt,rt){const nt=await(rt!==void 0?await rt:await this._identity);if(!nt)throw new IdentityInvalidError$2("This identity has expired due this application's security policy. Please refresh your authentication.");const it=Principal$5.from(et),At=tt.effectiveCanisterId?Principal$5.from(tt.effectiveCanisterId):it,at=nt.getPrincipal()||Principal$5.anonymous(),ot={request_type:SubmitRequestType$2.Call,canister_id:it,method_name:tt.methodName,arg:tt.arg,sender:at,ingress_expiry:new Expiry$2(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$2)};let st=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:ot});st=await nt.transformRequest(st);const ct=encode$7(st.body),[ut,gt]=await Promise.all([this._fetch(""+new URL(`/api/v2/canister/${At.toText()}/call`,this._host),Object.assign(Object.assign({},st.request),{body:ct})),requestIdOf$2(ot)]);if(!ut.ok)throw new Error(`Server returned an error: Code: ${ut.status} (${ut.statusText}) Body: ${await ut.text()} @@ -476,7 +476,7 @@ ic-request`);let SignIdentity$2=class{getPrincipal(){return this._principal||(th `)}case RequestStatusResponseStatus$2.Done:throw new Error(`Call was marked as done but we never saw the reply: Request ID: ${toHex$3(tt)} `)}throw new Error("unreachable")}let ActorCallError$2=class extends AgentError$2{constructor(et,tt,rt,nt){super(["Call failed:",` Canister: ${et.toText()}`,` Method: ${tt} (${rt})`,...Object.getOwnPropertyNames(nt).map(it=>` "${it}": ${JSON.stringify(nt[it])}`)].join(` -`)),this.canisterId=et,this.methodName=tt,this.type=rt,this.props=nt}},QueryCallRejectedError$2=class extends ActorCallError$2{constructor(et,tt,rt){var nt;super(et,tt,"query",{Status:rt.status,Code:(nt=ReplicaRejectCode$2[rt.reject_code])!==null&&nt!==void 0?nt:`Unknown Code "${rt.reject_code}"`,Message:rt.reject_message}),this.result=rt}},UpdateCallRejectedError$2=class extends ActorCallError$2{constructor(et,tt,rt,nt){super(et,tt,"update",{"Request ID":toHex$3(rt),"HTTP status code":nt.status.toString(),"HTTP status text":nt.statusText}),this.requestId=rt,this.response=nt}};var CanisterInstallMode$2;(function($){$.Install="install",$.Reinstall="reinstall",$.Upgrade="upgrade"})(CanisterInstallMode$2||(CanisterInstallMode$2={}));const metadataSymbol$2=Symbol.for("ic-agent-metadata");let Actor$2=class JA{constructor(et){this[metadataSymbol$2]=Object.freeze(et)}static agentOf(et){return et[metadataSymbol$2].config.agent}static interfaceOf(et){return et[metadataSymbol$2].service}static canisterIdOf(et){return Principal$5.from(et[metadataSymbol$2].config.canisterId)}static async install(et,tt){const rt=et.mode===void 0?CanisterInstallMode$2.Install:et.mode,nt=et.arg?[...new Uint8Array(et.arg)]:[],it=[...new Uint8Array(et.module)],At=typeof tt.canisterId=="string"?Principal$5.fromText(tt.canisterId):tt.canisterId;await getManagementCanister$2(tt).install_code({mode:{[rt]:null},arg:nt,wasm_module:it,canister_id:At})}static async createCanister(et){const{canister_id:tt}=await getManagementCanister$2(et||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return tt}static async createAndInstallCanister(et,tt,rt){const nt=await this.createCanister(rt);return await this.install(Object.assign({},tt),Object.assign(Object.assign({},rt),{canisterId:nt})),this.createActor(et,Object.assign(Object.assign({},rt),{canisterId:nt}))}static createActorClass(et){const tt=et({IDL:IDL$2});class rt extends JA{constructor(it){const At=typeof it.canisterId=="string"?Principal$5.fromText(it.canisterId):it.canisterId;super({config:Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$2),it),{canisterId:At}),service:tt});for(const[at,ot]of tt._fields)this[at]=_createActorMethod$2(this,at,ot)}}return rt}static createActor(et,tt){return new(this.createActorClass(et))(tt)}};function decodeReturnValue$2($,et){const tt=decode$9($,buffer$2.Buffer.from(et));switch(tt.length){case 0:return;case 1:return tt[0];default:return tt}}const DEFAULT_ACTOR_CONFIG$2={pollingStrategyFactory:defaultStrategy$2};function _createActorMethod$2($,et,tt){let rt;tt.annotations.includes("query")?rt=async(it,...At)=>{var at,ot;it=Object.assign(Object.assign({},it),(ot=(at=$[metadataSymbol$2].config).queryTransform)===null||ot===void 0?void 0:ot.call(at,et,At,Object.assign(Object.assign({},$[metadataSymbol$2].config),it)));const st=it.agent||$[metadataSymbol$2].config.agent||getDefaultAgent$2(),ct=Principal$5.from(it.canisterId||$[metadataSymbol$2].config.canisterId),ut=encode$8(tt.argTypes,At),gt=await st.query(ct,{methodName:et,arg:ut});switch(gt.status){case"rejected":throw new QueryCallRejectedError$2(ct,et,gt);case"replied":return decodeReturnValue$2(tt.retTypes,gt.reply.arg)}}:rt=async(it,...At)=>{var at,ot;it=Object.assign(Object.assign({},it),(ot=(at=$[metadataSymbol$2].config).callTransform)===null||ot===void 0?void 0:ot.call(at,et,At,Object.assign(Object.assign({},$[metadataSymbol$2].config),it)));const st=it.agent||$[metadataSymbol$2].config.agent||getDefaultAgent$2(),{canisterId:ct,effectiveCanisterId:ut,pollingStrategyFactory:gt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$2),$[metadataSymbol$2].config),it),dt=Principal$5.from(ct),ht=ut!==void 0?Principal$5.from(ut):dt,Et=encode$8(tt.argTypes,At),{requestId:wt,response:Qt}=await st.call(dt,{methodName:et,arg:Et,effectiveCanisterId:ht});if(!Qt.ok)throw new UpdateCallRejectedError$2(dt,et,wt,Qt);const pt=gt(),mt=await pollForResponse$2(st,ht,wt,pt);if(mt!==void 0)return decodeReturnValue$2(tt.retTypes,mt);if(tt.retTypes.length===0)return;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const nt=(...it)=>rt({},...it);return nt.withOptions=it=>(...At)=>rt(it,...At),nt}const NNS_IDL=({IDL:$})=>{const et=$.Record({owner:$.Principal,subaccount:$.Opt($.Vec($.Nat8))}),tt=$.Record({icrc2:$.Bool}),rt=$.Record({maximum_number_of_accounts:$.Opt($.Nat64),icrc1_minting_account:$.Opt(et),feature_flags:$.Opt(tt)}),nt=$.Record({e8s:$.Nat64}),it=$.Record({secs:$.Nat64,nanos:$.Nat32}),At=$.Record({num_blocks_to_archive:$.Nat64,max_transactions_per_response:$.Opt($.Nat64),trigger_threshold:$.Nat64,max_message_size_bytes:$.Opt($.Nat64),cycles_for_archive_creation:$.Opt($.Nat64),node_max_memory_size_bytes:$.Opt($.Nat64),controller_id:$.Principal}),at=$.Record({send_whitelist:$.Vec($.Principal),token_symbol:$.Opt($.Text),transfer_fee:$.Opt(nt),minting_account:$.Text,maximum_number_of_accounts:$.Opt($.Nat64),accounts_overflow_trim_quantity:$.Opt($.Nat64),transaction_window:$.Opt(it),max_message_size_bytes:$.Opt($.Nat64),icrc1_minting_account:$.Opt(et),archive_options:$.Opt(At),initial_values:$.Vec($.Tuple($.Text,nt)),token_name:$.Opt($.Text),feature_flags:$.Opt(tt)});$.Variant({Upgrade:$.Opt(rt),Init:at});const ot=$.Record({account:$.Vec($.Nat8)}),st=$.Record({account:$.Text}),ct=$.Record({canister_id:$.Principal}),ut=$.Record({archives:$.Vec(ct)}),gt=$.Record({decimals:$.Nat32}),dt=$.Variant({Int:$.Int,Nat:$.Nat,Blob:$.Vec($.Nat8),Text:$.Text}),ht=$.Record({url:$.Text,name:$.Text}),Et=$.Record({to:et,fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat}),wt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})}),Qt=$.Variant({Ok:$.Nat,Err:wt}),pt=$.Record({account:et,spender:et}),mt=$.Record({allowance:$.Nat,expires_at:$.Opt($.Nat64)}),$t=$.Record({fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat,expected_allowance:$.Opt($.Nat),expires_at:$.Opt($.Nat64),spender:et}),Tt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),AllowanceChanged:$.Record({current_allowance:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,Expired:$.Record({ledger_time:$.Nat64}),InsufficientFunds:$.Record({balance:$.Nat})}),Ut=$.Variant({Ok:$.Nat,Err:Tt}),Pt=$.Record({to:et,fee:$.Opt($.Nat),spender_subaccount:$.Opt($.Vec($.Nat8)),from:et,memo:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat}),Kt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,InsufficientAllowance:$.Record({allowance:$.Nat}),BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})}),zt=$.Variant({Ok:$.Nat,Err:Kt}),Yt=$.Record({name:$.Text}),Mt=$.Record({start:$.Nat64,length:$.Nat64}),Bt=$.Record({timestamp_nanos:$.Nat64}),vt=$.Variant({Approve:$.Record({fee:nt,from:$.Vec($.Nat8),allowance_e8s:$.Int,allowance:nt,expected_allowance:$.Opt(nt),expires_at:$.Opt(Bt),spender:$.Vec($.Nat8)}),Burn:$.Record({from:$.Vec($.Nat8),amount:nt,spender:$.Opt($.Vec($.Nat8))}),Mint:$.Record({to:$.Vec($.Nat8),amount:nt}),Transfer:$.Record({to:$.Vec($.Nat8),fee:nt,from:$.Vec($.Nat8),amount:nt,spender:$.Opt($.Vec($.Nat8))})}),Nt=$.Record({memo:$.Nat64,icrc1_memo:$.Opt($.Vec($.Nat8)),operation:$.Opt(vt),created_at_time:Bt}),Gt=$.Record({transaction:Nt,timestamp:Bt,parent_hash:$.Opt($.Vec($.Nat8))}),Jt=$.Record({blocks:$.Vec(Gt)}),nr=$.Variant({BadFirstBlockIndex:$.Record({requested_index:$.Nat64,first_valid_index:$.Nat64}),Other:$.Record({error_message:$.Text,error_code:$.Nat64})}),Xt=$.Variant({Ok:Jt,Err:nr}),Ot=$.Record({callback:$.Func([Mt],[Xt],["query"]),start:$.Nat64,length:$.Nat64}),bt=$.Record({certificate:$.Opt($.Vec($.Nat8)),blocks:$.Vec(Gt),chain_length:$.Nat64,first_block_index:$.Nat64,archived_blocks:$.Vec(Ot)}),kt=$.Variant({Ok:$.Vec($.Vec($.Nat8)),Err:nr}),Ar=$.Record({callback:$.Func([Mt],[kt],["query"]),start:$.Nat64,length:$.Nat64}),cr=$.Record({certificate:$.Opt($.Vec($.Nat8)),blocks:$.Vec($.Vec($.Nat8)),chain_length:$.Nat64,first_block_index:$.Nat64,archived_blocks:$.Vec(Ar)}),Rt=$.Record({to:$.Text,fee:nt,memo:$.Nat64,from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt(Bt),amount:nt}),Qr=$.Record({symbol:$.Text}),_r=$.Record({to:$.Vec($.Nat8),fee:nt,memo:$.Nat64,from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt(Bt),amount:nt}),qr=$.Variant({TxTooOld:$.Record({allowed_window_nanos:$.Nat64}),BadFee:$.Record({expected_fee:nt}),TxDuplicate:$.Record({duplicate_of:$.Nat64}),TxCreatedInFuture:$.Null,InsufficientFunds:$.Record({balance:nt})}),yr=$.Variant({Ok:$.Nat64,Err:qr}),kr=$.Record({transfer_fee:nt});return $.Service({account_balance:$.Func([ot],[nt],["query"]),account_balance_dfx:$.Func([st],[nt],["query"]),account_identifier:$.Func([et],[$.Vec($.Nat8)],["query"]),archives:$.Func([],[ut],["query"]),decimals:$.Func([],[gt],["query"]),icrc1_balance_of:$.Func([et],[$.Nat],["query"]),icrc1_decimals:$.Func([],[$.Nat8],["query"]),icrc1_fee:$.Func([],[$.Nat],["query"]),icrc1_metadata:$.Func([],[$.Vec($.Tuple($.Text,dt))],["query"]),icrc1_minting_account:$.Func([],[$.Opt(et)],["query"]),icrc1_name:$.Func([],[$.Text],["query"]),icrc1_supported_standards:$.Func([],[$.Vec(ht)],["query"]),icrc1_symbol:$.Func([],[$.Text],["query"]),icrc1_total_supply:$.Func([],[$.Nat],["query"]),icrc1_transfer:$.Func([Et],[Qt],[]),icrc2_allowance:$.Func([pt],[mt],["query"]),icrc2_approve:$.Func([$t],[Ut],[]),icrc2_transfer_from:$.Func([Pt],[zt],[]),name:$.Func([],[Yt],["query"]),query_blocks:$.Func([Mt],[bt],["query"]),query_encoded_blocks:$.Func([Mt],[cr],["query"]),send_dfx:$.Func([Rt],[$.Nat64],[]),symbol:$.Func([],[Qr],["query"]),transfer:$.Func([_r],[yr],[]),transfer_fee:$.Func([$.Record({})],[kr],["query"])})},bitfinity=window.ic?window.ic.bitfinityWallet?{readyState:"Installed",connectWallet:async function($={whitelist:[],host:""}){var et=await window.ic.bitfinityWallet.isConnected();et||await window.ic.bitfinityWallet.requestConnect($),window.ic.bitfinityWallet.agent||await window.ic.bitfinityWallet.requestConnect($),this.agent=window.ic.bitfinityWallet.agent,this.getPrincipal=async function(){return window.ic.bitfinityWallet.getPrincipal()},this.createActor=async function(nt){return window.ic.bitfinityWallet.createActor(nt)},this.batchTransactions=async function(nt){return window.ic.bitfinityWallet.batchTransactions(nt)};var tt=await this.getPrincipal(),rt=await window.ic.bitfinityWallet.getAccountID();return{accountId:rt,principalId:tt.toString()}},disConnectWallet:async function(){await window.ic.bitfinityWallet.disconnect()}}:{readyState:"NotDetected",url:"https://wallet.infinityswap.one/"}:{readyState:"NotDetected",url:"https://wallet.infinityswap.one/"};var Buffer=buffer$2.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer($){if(Buffer.isBuffer($))return $;var et=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof $=="number")return et?Buffer.alloc($):new Buffer($);if(typeof $=="string")return et?Buffer.from($):new Buffer($);throw new Error("input must be buffer, number, or string, received "+typeof $)}function bufferizeInt($){var et=ensureBuffer(4);return et.writeInt32BE($,0),et}function _crc32($,et){$=ensureBuffer($),Buffer.isBuffer(et)&&(et=et.readUInt32BE(0));for(var tt=~~et^-1,rt=0;rt<$.length;rt++)tt=CRC_TABLE[(tt^$[rt])&255]^tt>>>8;return tt^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32);var cryptoJs={exports:{}};function commonjsRequire($){throw new Error('Could not dynamically require "'+$+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function($,et){(function(tt,rt){$.exports=rt()})(commonjsGlobal,function(){var tt=tt||function(rt,nt){var it;if(typeof window<"u"&&window.crypto&&(it=window.crypto),typeof self<"u"&&self.crypto&&(it=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(it=globalThis.crypto),!it&&typeof window<"u"&&window.msCrypto&&(it=window.msCrypto),!it&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(it=commonjsGlobal.crypto),!it&&typeof commonjsRequire=="function")try{it=require$$0$1}catch{}var At=function(){if(it){if(typeof it.getRandomValues=="function")try{return it.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof it.randomBytes=="function")try{return it.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},at=Object.create||function(){function pt(){}return function(mt){var $t;return pt.prototype=mt,$t=new pt,pt.prototype=null,$t}}(),ot={},st=ot.lib={},ct=st.Base=function(){return{extend:function(pt){var mt=at(this);return pt&&mt.mixIn(pt),(!mt.hasOwnProperty("init")||this.init===mt.init)&&(mt.init=function(){mt.$super.init.apply(this,arguments)}),mt.init.prototype=mt,mt.$super=this,mt},create:function(){var pt=this.extend();return pt.init.apply(pt,arguments),pt},init:function(){},mixIn:function(pt){for(var mt in pt)pt.hasOwnProperty(mt)&&(this[mt]=pt[mt]);pt.hasOwnProperty("toString")&&(this.toString=pt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),ut=st.WordArray=ct.extend({init:function(pt,mt){pt=this.words=pt||[],mt!=nt?this.sigBytes=mt:this.sigBytes=pt.length*4},toString:function(pt){return(pt||dt).stringify(this)},concat:function(pt){var mt=this.words,$t=pt.words,Tt=this.sigBytes,Ut=pt.sigBytes;if(this.clamp(),Tt%4)for(var Pt=0;Pt>>2]>>>24-Pt%4*8&255;mt[Tt+Pt>>>2]|=Kt<<24-(Tt+Pt)%4*8}else for(var zt=0;zt>>2]=$t[zt>>>2];return this.sigBytes+=Ut,this},clamp:function(){var pt=this.words,mt=this.sigBytes;pt[mt>>>2]&=4294967295<<32-mt%4*8,pt.length=rt.ceil(mt/4)},clone:function(){var pt=ct.clone.call(this);return pt.words=this.words.slice(0),pt},random:function(pt){for(var mt=[],$t=0;$t>>2]>>>24-Ut%4*8&255;Tt.push((Pt>>>4).toString(16)),Tt.push((Pt&15).toString(16))}return Tt.join("")},parse:function(pt){for(var mt=pt.length,$t=[],Tt=0;Tt>>3]|=parseInt(pt.substr(Tt,2),16)<<24-Tt%8*4;return new ut.init($t,mt/2)}},ht=gt.Latin1={stringify:function(pt){for(var mt=pt.words,$t=pt.sigBytes,Tt=[],Ut=0;Ut<$t;Ut++){var Pt=mt[Ut>>>2]>>>24-Ut%4*8&255;Tt.push(String.fromCharCode(Pt))}return Tt.join("")},parse:function(pt){for(var mt=pt.length,$t=[],Tt=0;Tt>>2]|=(pt.charCodeAt(Tt)&255)<<24-Tt%4*8;return new ut.init($t,mt)}},Et=gt.Utf8={stringify:function(pt){try{return decodeURIComponent(escape(ht.stringify(pt)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(pt){return ht.parse(unescape(encodeURIComponent(pt)))}},wt=st.BufferedBlockAlgorithm=ct.extend({reset:function(){this._data=new ut.init,this._nDataBytes=0},_append:function(pt){typeof pt=="string"&&(pt=Et.parse(pt)),this._data.concat(pt),this._nDataBytes+=pt.sigBytes},_process:function(pt){var mt,$t=this._data,Tt=$t.words,Ut=$t.sigBytes,Pt=this.blockSize,Kt=Pt*4,zt=Ut/Kt;pt?zt=rt.ceil(zt):zt=rt.max((zt|0)-this._minBufferSize,0);var Yt=zt*Pt,Mt=rt.min(Yt*4,Ut);if(Yt){for(var Bt=0;Bt>>2]|=ot[ut]<<24-ut%4*8;At.call(this,ct,st)}else At.apply(this,arguments)};at.prototype=it}}(),tt.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Utf16=At.Utf16BE={stringify:function(ot){for(var st=ot.words,ct=ot.sigBytes,ut=[],gt=0;gt>>2]>>>16-gt%4*8&65535;ut.push(String.fromCharCode(dt))}return ut.join("")},parse:function(ot){for(var st=ot.length,ct=[],ut=0;ut>>1]|=ot.charCodeAt(ut)<<16-ut%2*16;return it.create(ct,st*2)}},At.Utf16LE={stringify:function(ot){for(var st=ot.words,ct=ot.sigBytes,ut=[],gt=0;gt>>2]>>>16-gt%4*8&65535);ut.push(String.fromCharCode(dt))}return ut.join("")},parse:function(ot){for(var st=ot.length,ct=[],ut=0;ut>>1]|=at(ot.charCodeAt(ut)<<16-ut%2*16);return it.create(ct,st*2)}};function at(ot){return ot<<8&4278255360|ot>>>8&16711935}}(),tt.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Base64={stringify:function(ot){var st=ot.words,ct=ot.sigBytes,ut=this._map;ot.clamp();for(var gt=[],dt=0;dt>>2]>>>24-dt%4*8&255,Et=st[dt+1>>>2]>>>24-(dt+1)%4*8&255,wt=st[dt+2>>>2]>>>24-(dt+2)%4*8&255,Qt=ht<<16|Et<<8|wt,pt=0;pt<4&&dt+pt*.75>>6*(3-pt)&63));var mt=ut.charAt(64);if(mt)for(;gt.length%4;)gt.push(mt);return gt.join("")},parse:function(ot){var st=ot.length,ct=this._map,ut=this._reverseMap;if(!ut){ut=this._reverseMap=[];for(var gt=0;gt>>6-dt%4*2,wt=ht|Et;ut[gt>>>2]|=wt<<24-gt%4*8,gt++}return it.create(ut,gt)}}(),tt.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Base64url={stringify:function(ot,st){st===void 0&&(st=!0);var ct=ot.words,ut=ot.sigBytes,gt=st?this._safe_map:this._map;ot.clamp();for(var dt=[],ht=0;ht>>2]>>>24-ht%4*8&255,wt=ct[ht+1>>>2]>>>24-(ht+1)%4*8&255,Qt=ct[ht+2>>>2]>>>24-(ht+2)%4*8&255,pt=Et<<16|wt<<8|Qt,mt=0;mt<4&&ht+mt*.75>>6*(3-mt)&63));var $t=gt.charAt(64);if($t)for(;dt.length%4;)dt.push($t);return dt.join("")},parse:function(ot,st){st===void 0&&(st=!0);var ct=ot.length,ut=st?this._safe_map:this._map,gt=this._reverseMap;if(!gt){gt=this._reverseMap=[];for(var dt=0;dt>>6-dt%4*2,wt=ht|Et;ut[gt>>>2]|=wt<<24-gt%4*8,gt++}return it.create(ut,gt)}}(),tt.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.algo,st=[];(function(){for(var Et=0;Et<64;Et++)st[Et]=rt.abs(rt.sin(Et+1))*4294967296|0})();var ct=ot.MD5=at.extend({_doReset:function(){this._hash=new At.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Et,wt){for(var Qt=0;Qt<16;Qt++){var pt=wt+Qt,mt=Et[pt];Et[pt]=(mt<<8|mt>>>24)&16711935|(mt<<24|mt>>>8)&4278255360}var $t=this._hash.words,Tt=Et[wt+0],Ut=Et[wt+1],Pt=Et[wt+2],Kt=Et[wt+3],zt=Et[wt+4],Yt=Et[wt+5],Mt=Et[wt+6],Bt=Et[wt+7],vt=Et[wt+8],Nt=Et[wt+9],Gt=Et[wt+10],Jt=Et[wt+11],nr=Et[wt+12],Xt=Et[wt+13],Ot=Et[wt+14],bt=Et[wt+15],kt=$t[0],Ar=$t[1],cr=$t[2],Rt=$t[3];kt=ut(kt,Ar,cr,Rt,Tt,7,st[0]),Rt=ut(Rt,kt,Ar,cr,Ut,12,st[1]),cr=ut(cr,Rt,kt,Ar,Pt,17,st[2]),Ar=ut(Ar,cr,Rt,kt,Kt,22,st[3]),kt=ut(kt,Ar,cr,Rt,zt,7,st[4]),Rt=ut(Rt,kt,Ar,cr,Yt,12,st[5]),cr=ut(cr,Rt,kt,Ar,Mt,17,st[6]),Ar=ut(Ar,cr,Rt,kt,Bt,22,st[7]),kt=ut(kt,Ar,cr,Rt,vt,7,st[8]),Rt=ut(Rt,kt,Ar,cr,Nt,12,st[9]),cr=ut(cr,Rt,kt,Ar,Gt,17,st[10]),Ar=ut(Ar,cr,Rt,kt,Jt,22,st[11]),kt=ut(kt,Ar,cr,Rt,nr,7,st[12]),Rt=ut(Rt,kt,Ar,cr,Xt,12,st[13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,16,st[46]),Ar=dt(Ar,cr,Rt,kt,Pt,23,st[47]),kt=ht(kt,Ar,cr,Rt,Tt,6,st[48]),Rt=ht(Rt,kt,Ar,cr,Bt,10,st[49]),cr=ht(cr,Rt,kt,Ar,Ot,15,st[50]),Ar=ht(Ar,cr,Rt,kt,Yt,21,st[51]),kt=ht(kt,Ar,cr,Rt,nr,6,st[52]),Rt=ht(Rt,kt,Ar,cr,Kt,10,st[53]),cr=ht(cr,Rt,kt,Ar,Gt,15,st[54]),Ar=ht(Ar,cr,Rt,kt,Ut,21,st[55]),kt=ht(kt,Ar,cr,Rt,vt,6,st[56]),Rt=ht(Rt,kt,Ar,cr,bt,10,st[57]),cr=ht(cr,Rt,kt,Ar,Mt,15,st[58]),Ar=ht(Ar,cr,Rt,kt,Xt,21,st[59]),kt=ht(kt,Ar,cr,Rt,zt,6,st[60]),Rt=ht(Rt,kt,Ar,cr,Jt,10,st[61]),cr=ht(cr,Rt,kt,Ar,Pt,15,st[62]),Ar=ht(Ar,cr,Rt,kt,Nt,21,st[63]),$t[0]=$t[0]+kt|0,$t[1]=$t[1]+Ar|0,$t[2]=$t[2]+cr|0,$t[3]=$t[3]+Rt|0},_doFinalize:function(){var Et=this._data,wt=Et.words,Qt=this._nDataBytes*8,pt=Et.sigBytes*8;wt[pt>>>5]|=128<<24-pt%32;var mt=rt.floor(Qt/4294967296),$t=Qt;wt[(pt+64>>>9<<4)+15]=(mt<<8|mt>>>24)&16711935|(mt<<24|mt>>>8)&4278255360,wt[(pt+64>>>9<<4)+14]=($t<<8|$t>>>24)&16711935|($t<<24|$t>>>8)&4278255360,Et.sigBytes=(wt.length+1)*4,this._process();for(var Tt=this._hash,Ut=Tt.words,Pt=0;Pt<4;Pt++){var Kt=Ut[Pt];Ut[Pt]=(Kt<<8|Kt>>>24)&16711935|(Kt<<24|Kt>>>8)&4278255360}return Tt},clone:function(){var Et=at.clone.call(this);return Et._hash=this._hash.clone(),Et}});function ut(Et,wt,Qt,pt,mt,$t,Tt){var Ut=Et+(wt&Qt|~wt&pt)+mt+Tt;return(Ut<<$t|Ut>>>32-$t)+wt}function gt(Et,wt,Qt,pt,mt,$t,Tt){var Ut=Et+(wt&pt|Qt&~pt)+mt+Tt;return(Ut<<$t|Ut>>>32-$t)+wt}function dt(Et,wt,Qt,pt,mt,$t,Tt){var Ut=Et+(wt^Qt^pt)+mt+Tt;return(Ut<<$t|Ut>>>32-$t)+wt}function ht(Et,wt,Qt,pt,mt,$t,Tt){var Ut=Et+(Qt^(wt|~pt))+mt+Tt;return(Ut<<$t|Ut>>>32-$t)+wt}nt.MD5=at._createHelper(ct),nt.HmacMD5=at._createHmacHelper(ct)}(Math),tt.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=nt.Hasher,at=rt.algo,ot=[],st=at.SHA1=At.extend({_doReset:function(){this._hash=new it.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(ct,ut){for(var gt=this._hash.words,dt=gt[0],ht=gt[1],Et=gt[2],wt=gt[3],Qt=gt[4],pt=0;pt<80;pt++){if(pt<16)ot[pt]=ct[ut+pt]|0;else{var mt=ot[pt-3]^ot[pt-8]^ot[pt-14]^ot[pt-16];ot[pt]=mt<<1|mt>>>31}var $t=(dt<<5|dt>>>27)+Qt+ot[pt];pt<20?$t+=(ht&Et|~ht&wt)+1518500249:pt<40?$t+=(ht^Et^wt)+1859775393:pt<60?$t+=(ht&Et|ht&wt|Et&wt)-1894007588:$t+=(ht^Et^wt)-899497514,Qt=wt,wt=Et,Et=ht<<30|ht>>>2,ht=dt,dt=$t}gt[0]=gt[0]+dt|0,gt[1]=gt[1]+ht|0,gt[2]=gt[2]+Et|0,gt[3]=gt[3]+wt|0,gt[4]=gt[4]+Qt|0},_doFinalize:function(){var ct=this._data,ut=ct.words,gt=this._nDataBytes*8,dt=ct.sigBytes*8;return ut[dt>>>5]|=128<<24-dt%32,ut[(dt+64>>>9<<4)+14]=Math.floor(gt/4294967296),ut[(dt+64>>>9<<4)+15]=gt,ct.sigBytes=ut.length*4,this._process(),this._hash},clone:function(){var ct=At.clone.call(this);return ct._hash=this._hash.clone(),ct}});rt.SHA1=At._createHelper(st),rt.HmacSHA1=At._createHmacHelper(st)}(),tt.SHA1})}(sha1)),sha1.exports}var sha256$1={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.algo,st=[],ct=[];(function(){function dt(Qt){for(var pt=rt.sqrt(Qt),mt=2;mt<=pt;mt++)if(!(Qt%mt))return!1;return!0}function ht(Qt){return(Qt-(Qt|0))*4294967296|0}for(var Et=2,wt=0;wt<64;)dt(Et)&&(wt<8&&(st[wt]=ht(rt.pow(Et,1/2))),ct[wt]=ht(rt.pow(Et,1/3)),wt++),Et++})();var ut=[],gt=ot.SHA256=at.extend({_doReset:function(){this._hash=new At.init(st.slice(0))},_doProcessBlock:function(dt,ht){for(var Et=this._hash.words,wt=Et[0],Qt=Et[1],pt=Et[2],mt=Et[3],$t=Et[4],Tt=Et[5],Ut=Et[6],Pt=Et[7],Kt=0;Kt<64;Kt++){if(Kt<16)ut[Kt]=dt[ht+Kt]|0;else{var zt=ut[Kt-15],Yt=(zt<<25|zt>>>7)^(zt<<14|zt>>>18)^zt>>>3,Mt=ut[Kt-2],Bt=(Mt<<15|Mt>>>17)^(Mt<<13|Mt>>>19)^Mt>>>10;ut[Kt]=Yt+ut[Kt-7]+Bt+ut[Kt-16]}var vt=$t&Tt^~$t&Ut,Nt=wt&Qt^wt&pt^Qt&pt,Gt=(wt<<30|wt>>>2)^(wt<<19|wt>>>13)^(wt<<10|wt>>>22),Jt=($t<<26|$t>>>6)^($t<<21|$t>>>11)^($t<<7|$t>>>25),nr=Pt+Jt+vt+ct[Kt]+ut[Kt],Xt=Gt+Nt;Pt=Ut,Ut=Tt,Tt=$t,$t=mt+nr|0,mt=pt,pt=Qt,Qt=wt,wt=nr+Xt|0}Et[0]=Et[0]+wt|0,Et[1]=Et[1]+Qt|0,Et[2]=Et[2]+pt|0,Et[3]=Et[3]+mt|0,Et[4]=Et[4]+$t|0,Et[5]=Et[5]+Tt|0,Et[6]=Et[6]+Ut|0,Et[7]=Et[7]+Pt|0},_doFinalize:function(){var dt=this._data,ht=dt.words,Et=this._nDataBytes*8,wt=dt.sigBytes*8;return ht[wt>>>5]|=128<<24-wt%32,ht[(wt+64>>>9<<4)+14]=rt.floor(Et/4294967296),ht[(wt+64>>>9<<4)+15]=Et,dt.sigBytes=ht.length*4,this._process(),this._hash},clone:function(){var dt=at.clone.call(this);return dt._hash=this._hash.clone(),dt}});nt.SHA256=at._createHelper(gt),nt.HmacSHA256=at._createHmacHelper(gt)}(Math),tt.SHA256})}(sha256$1)),sha256$1.exports}var sha224$3={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireSha256())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.algo,at=At.SHA256,ot=At.SHA224=at.extend({_doReset:function(){this._hash=new it.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var st=at._doFinalize.call(this);return st.sigBytes-=4,st}});rt.SHA224=at._createHelper(ot),rt.HmacSHA224=at._createHmacHelper(ot)}(),tt.SHA224})}(sha224$3)),sha224$3.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.Hasher,At=rt.x64,at=At.Word,ot=At.WordArray,st=rt.algo;function ct(){return at.create.apply(at,arguments)}var ut=[ct(1116352408,3609767458),ct(1899447441,602891725),ct(3049323471,3964484399),ct(3921009573,2173295548),ct(961987163,4081628472),ct(1508970993,3053834265),ct(2453635748,2937671579),ct(2870763221,3664609560),ct(3624381080,2734883394),ct(310598401,1164996542),ct(607225278,1323610764),ct(1426881987,3590304994),ct(1925078388,4068182383),ct(2162078206,991336113),ct(2614888103,633803317),ct(3248222580,3479774868),ct(3835390401,2666613458),ct(4022224774,944711139),ct(264347078,2341262773),ct(604807628,2007800933),ct(770255983,1495990901),ct(1249150122,1856431235),ct(1555081692,3175218132),ct(1996064986,2198950837),ct(2554220882,3999719339),ct(2821834349,766784016),ct(2952996808,2566594879),ct(3210313671,3203337956),ct(3336571891,1034457026),ct(3584528711,2466948901),ct(113926993,3758326383),ct(338241895,168717936),ct(666307205,1188179964),ct(773529912,1546045734),ct(1294757372,1522805485),ct(1396182291,2643833823),ct(1695183700,2343527390),ct(1986661051,1014477480),ct(2177026350,1206759142),ct(2456956037,344077627),ct(2730485921,1290863460),ct(2820302411,3158454273),ct(3259730800,3505952657),ct(3345764771,106217008),ct(3516065817,3606008344),ct(3600352804,1432725776),ct(4094571909,1467031594),ct(275423344,851169720),ct(430227734,3100823752),ct(506948616,1363258195),ct(659060556,3750685593),ct(883997877,3785050280),ct(958139571,3318307427),ct(1322822218,3812723403),ct(1537002063,2003034995),ct(1747873779,3602036899),ct(1955562222,1575990012),ct(2024104815,1125592928),ct(2227730452,2716904306),ct(2361852424,442776044),ct(2428436474,593698344),ct(2756734187,3733110249),ct(3204031479,2999351573),ct(3329325298,3815920427),ct(3391569614,3928383900),ct(3515267271,566280711),ct(3940187606,3454069534),ct(4118630271,4000239992),ct(116418474,1914138554),ct(174292421,2731055270),ct(289380356,3203993006),ct(460393269,320620315),ct(685471733,587496836),ct(852142971,1086792851),ct(1017036298,365543100),ct(1126000580,2618297676),ct(1288033470,3409855158),ct(1501505948,4234509866),ct(1607167915,987167468),ct(1816402316,1246189591)],gt=[];(function(){for(var ht=0;ht<80;ht++)gt[ht]=ct()})();var dt=st.SHA512=it.extend({_doReset:function(){this._hash=new ot.init([new at.init(1779033703,4089235720),new at.init(3144134277,2227873595),new at.init(1013904242,4271175723),new at.init(2773480762,1595750129),new at.init(1359893119,2917565137),new at.init(2600822924,725511199),new at.init(528734635,4215389547),new at.init(1541459225,327033209)])},_doProcessBlock:function(ht,Et){for(var wt=this._hash.words,Qt=wt[0],pt=wt[1],mt=wt[2],$t=wt[3],Tt=wt[4],Ut=wt[5],Pt=wt[6],Kt=wt[7],zt=Qt.high,Yt=Qt.low,Mt=pt.high,Bt=pt.low,vt=mt.high,Nt=mt.low,Gt=$t.high,Jt=$t.low,nr=Tt.high,Xt=Tt.low,Ot=Ut.high,bt=Ut.low,kt=Pt.high,Ar=Pt.low,cr=Kt.high,Rt=Kt.low,Qr=zt,_r=Yt,qr=Mt,yr=Bt,kr=vt,jt=Nt,Zt=Gt,rr=Jt,sr=nr,ur=Xt,fr=Ot,It=bt,lt=kt,ft=Ar,xt=cr,_t=Rt,Lt=0;Lt<80;Lt++){var er,Er,mr=gt[Lt];if(Lt<16)Er=mr.high=ht[Et+Lt*2]|0,er=mr.low=ht[Et+Lt*2+1]|0;else{var wr=gt[Lt-15],Yr=wr.high,Ft=wr.low,yt=(Yr>>>1|Ft<<31)^(Yr>>>8|Ft<<24)^Yr>>>7,St=(Ft>>>1|Yr<<31)^(Ft>>>8|Yr<<24)^(Ft>>>7|Yr<<25),Wt=gt[Lt-2],or=Wt.high,Br=Wt.low,gr=(or>>>19|Br<<13)^(or<<3|Br>>>29)^or>>>6,Lr=(Br>>>19|or<<13)^(Br<<3|or>>>29)^(Br>>>6|or<<26),cn=gt[Lt-7],Pr=cn.high,Tr=cn.low,Bn=gt[Lt-16],Wr=Bn.high,Rn=Bn.low;er=St+Tr,Er=yt+Pr+(er>>>0>>0?1:0),er=er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ar>>>0>>0?1:0),Rt=Kt.low=Rt+_t,Kt.high=cr+xt+(Rt>>>0<_t>>>0?1:0)},_doFinalize:function(){var ht=this._data,Et=ht.words,wt=this._nDataBytes*8,Qt=ht.sigBytes*8;Et[Qt>>>5]|=128<<24-Qt%32,Et[(Qt+128>>>10<<5)+30]=Math.floor(wt/4294967296),Et[(Qt+128>>>10<<5)+31]=wt,ht.sigBytes=Et.length*4,this._process();var pt=this._hash.toX32();return pt},clone:function(){var ht=it.clone.call(this);return ht._hash=this._hash.clone(),ht},blockSize:1024/32});rt.SHA512=it._createHelper(dt),rt.HmacSHA512=it._createHmacHelper(dt)}(),tt.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.x64,it=nt.Word,At=nt.WordArray,at=rt.algo,ot=at.SHA512,st=at.SHA384=ot.extend({_doReset:function(){this._hash=new At.init([new it.init(3418070365,3238371032),new it.init(1654270250,914150663),new it.init(2438529370,812702999),new it.init(355462360,4144912697),new it.init(1731405415,4290775857),new it.init(2394180231,1750603025),new it.init(3675008525,1694076839),new it.init(1203062813,3204075428)])},_doFinalize:function(){var ct=ot._doFinalize.call(this);return ct.sigBytes-=16,ct}});rt.SHA384=ot._createHelper(st),rt.HmacSHA384=ot._createHmacHelper(st)}(),tt.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.x64,st=ot.Word,ct=nt.algo,ut=[],gt=[],dt=[];(function(){for(var wt=1,Qt=0,pt=0;pt<24;pt++){ut[wt+5*Qt]=(pt+1)*(pt+2)/2%64;var mt=Qt%5,$t=(2*wt+3*Qt)%5;wt=mt,Qt=$t}for(var wt=0;wt<5;wt++)for(var Qt=0;Qt<5;Qt++)gt[wt+5*Qt]=Qt+(2*wt+3*Qt)%5*5;for(var Tt=1,Ut=0;Ut<24;Ut++){for(var Pt=0,Kt=0,zt=0;zt<7;zt++){if(Tt&1){var Yt=(1<>>24)&16711935|(Tt<<24|Tt>>>8)&4278255360,Ut=(Ut<<8|Ut>>>24)&16711935|(Ut<<24|Ut>>>8)&4278255360;var Pt=pt[$t];Pt.high^=Ut,Pt.low^=Tt}for(var Kt=0;Kt<24;Kt++){for(var zt=0;zt<5;zt++){for(var Yt=0,Mt=0,Bt=0;Bt<5;Bt++){var Pt=pt[zt+5*Bt];Yt^=Pt.high,Mt^=Pt.low}var vt=ht[zt];vt.high=Yt,vt.low=Mt}for(var zt=0;zt<5;zt++)for(var Nt=ht[(zt+4)%5],Gt=ht[(zt+1)%5],Jt=Gt.high,nr=Gt.low,Yt=Nt.high^(Jt<<1|nr>>>31),Mt=Nt.low^(nr<<1|Jt>>>31),Bt=0;Bt<5;Bt++){var Pt=pt[zt+5*Bt];Pt.high^=Yt,Pt.low^=Mt}for(var Xt=1;Xt<25;Xt++){var Yt,Mt,Pt=pt[Xt],Ot=Pt.high,bt=Pt.low,kt=ut[Xt];kt<32?(Yt=Ot<>>32-kt,Mt=bt<>>32-kt):(Yt=bt<>>64-kt,Mt=Ot<>>64-kt);var Ar=ht[gt[Xt]];Ar.high=Yt,Ar.low=Mt}var cr=ht[0],Rt=pt[0];cr.high=Rt.high,cr.low=Rt.low;for(var zt=0;zt<5;zt++)for(var Bt=0;Bt<5;Bt++){var Xt=zt+5*Bt,Pt=pt[Xt],Qr=ht[Xt],_r=ht[(zt+1)%5+5*Bt],qr=ht[(zt+2)%5+5*Bt];Pt.high=Qr.high^~_r.high&qr.high,Pt.low=Qr.low^~_r.low&qr.low}var Pt=pt[0],yr=dt[Kt];Pt.high^=yr.high,Pt.low^=yr.low}},_doFinalize:function(){var wt=this._data,Qt=wt.words;this._nDataBytes*8;var pt=wt.sigBytes*8,mt=this.blockSize*32;Qt[pt>>>5]|=1<<24-pt%32,Qt[(rt.ceil((pt+1)/mt)*mt>>>5)-1]|=128,wt.sigBytes=Qt.length*4,this._process();for(var $t=this._state,Tt=this.cfg.outputLength/8,Ut=Tt/8,Pt=[],Kt=0;Kt>>24)&16711935|(Yt<<24|Yt>>>8)&4278255360,Mt=(Mt<<8|Mt>>>24)&16711935|(Mt<<24|Mt>>>8)&4278255360,Pt.push(Mt),Pt.push(Yt)}return new At.init(Pt,Tt)},clone:function(){for(var wt=at.clone.call(this),Qt=wt._state=this._state.slice(0),pt=0;pt<25;pt++)Qt[pt]=Qt[pt].clone();return wt}});nt.SHA3=at._createHelper(Et),nt.HmacSHA3=at._createHmacHelper(Et)}(Math),tt.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){/** @preserve +`)),this.canisterId=et,this.methodName=tt,this.type=rt,this.props=nt}},QueryCallRejectedError$2=class extends ActorCallError$2{constructor(et,tt,rt){var nt;super(et,tt,"query",{Status:rt.status,Code:(nt=ReplicaRejectCode$2[rt.reject_code])!==null&&nt!==void 0?nt:`Unknown Code "${rt.reject_code}"`,Message:rt.reject_message}),this.result=rt}},UpdateCallRejectedError$2=class extends ActorCallError$2{constructor(et,tt,rt,nt){super(et,tt,"update",{"Request ID":toHex$3(rt),"HTTP status code":nt.status.toString(),"HTTP status text":nt.statusText}),this.requestId=rt,this.response=nt}};var CanisterInstallMode$2;(function($){$.Install="install",$.Reinstall="reinstall",$.Upgrade="upgrade"})(CanisterInstallMode$2||(CanisterInstallMode$2={}));const metadataSymbol$2=Symbol.for("ic-agent-metadata");let Actor$2=class JA{constructor(et){this[metadataSymbol$2]=Object.freeze(et)}static agentOf(et){return et[metadataSymbol$2].config.agent}static interfaceOf(et){return et[metadataSymbol$2].service}static canisterIdOf(et){return Principal$5.from(et[metadataSymbol$2].config.canisterId)}static async install(et,tt){const rt=et.mode===void 0?CanisterInstallMode$2.Install:et.mode,nt=et.arg?[...new Uint8Array(et.arg)]:[],it=[...new Uint8Array(et.module)],At=typeof tt.canisterId=="string"?Principal$5.fromText(tt.canisterId):tt.canisterId;await getManagementCanister$2(tt).install_code({mode:{[rt]:null},arg:nt,wasm_module:it,canister_id:At})}static async createCanister(et){const{canister_id:tt}=await getManagementCanister$2(et||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return tt}static async createAndInstallCanister(et,tt,rt){const nt=await this.createCanister(rt);return await this.install(Object.assign({},tt),Object.assign(Object.assign({},rt),{canisterId:nt})),this.createActor(et,Object.assign(Object.assign({},rt),{canisterId:nt}))}static createActorClass(et){const tt=et({IDL:IDL$2});class rt extends JA{constructor(it){const At=typeof it.canisterId=="string"?Principal$5.fromText(it.canisterId):it.canisterId;super({config:Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$2),it),{canisterId:At}),service:tt});for(const[at,ot]of tt._fields)this[at]=_createActorMethod$2(this,at,ot)}}return rt}static createActor(et,tt){return new(this.createActorClass(et))(tt)}};function decodeReturnValue$2($,et){const tt=decode$9($,buffer$2.Buffer.from(et));switch(tt.length){case 0:return;case 1:return tt[0];default:return tt}}const DEFAULT_ACTOR_CONFIG$2={pollingStrategyFactory:defaultStrategy$2};function _createActorMethod$2($,et,tt){let rt;tt.annotations.includes("query")?rt=async(it,...At)=>{var at,ot;it=Object.assign(Object.assign({},it),(ot=(at=$[metadataSymbol$2].config).queryTransform)===null||ot===void 0?void 0:ot.call(at,et,At,Object.assign(Object.assign({},$[metadataSymbol$2].config),it)));const st=it.agent||$[metadataSymbol$2].config.agent||getDefaultAgent$2(),ct=Principal$5.from(it.canisterId||$[metadataSymbol$2].config.canisterId),ut=encode$8(tt.argTypes,At),gt=await st.query(ct,{methodName:et,arg:ut});switch(gt.status){case"rejected":throw new QueryCallRejectedError$2(ct,et,gt);case"replied":return decodeReturnValue$2(tt.retTypes,gt.reply.arg)}}:rt=async(it,...At)=>{var at,ot;it=Object.assign(Object.assign({},it),(ot=(at=$[metadataSymbol$2].config).callTransform)===null||ot===void 0?void 0:ot.call(at,et,At,Object.assign(Object.assign({},$[metadataSymbol$2].config),it)));const st=it.agent||$[metadataSymbol$2].config.agent||getDefaultAgent$2(),{canisterId:ct,effectiveCanisterId:ut,pollingStrategyFactory:gt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$2),$[metadataSymbol$2].config),it),dt=Principal$5.from(ct),ht=ut!==void 0?Principal$5.from(ut):dt,Et=encode$8(tt.argTypes,At),{requestId:wt,response:mt}=await st.call(dt,{methodName:et,arg:Et,effectiveCanisterId:ht});if(!mt.ok)throw new UpdateCallRejectedError$2(dt,et,wt,mt);const pt=gt(),Qt=await pollForResponse$2(st,ht,wt,pt);if(Qt!==void 0)return decodeReturnValue$2(tt.retTypes,Qt);if(tt.retTypes.length===0)return;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const nt=(...it)=>rt({},...it);return nt.withOptions=it=>(...At)=>rt(it,...At),nt}const NNS_IDL=({IDL:$})=>{const et=$.Record({owner:$.Principal,subaccount:$.Opt($.Vec($.Nat8))}),tt=$.Record({icrc2:$.Bool}),rt=$.Record({maximum_number_of_accounts:$.Opt($.Nat64),icrc1_minting_account:$.Opt(et),feature_flags:$.Opt(tt)}),nt=$.Record({e8s:$.Nat64}),it=$.Record({secs:$.Nat64,nanos:$.Nat32}),At=$.Record({num_blocks_to_archive:$.Nat64,max_transactions_per_response:$.Opt($.Nat64),trigger_threshold:$.Nat64,max_message_size_bytes:$.Opt($.Nat64),cycles_for_archive_creation:$.Opt($.Nat64),node_max_memory_size_bytes:$.Opt($.Nat64),controller_id:$.Principal}),at=$.Record({send_whitelist:$.Vec($.Principal),token_symbol:$.Opt($.Text),transfer_fee:$.Opt(nt),minting_account:$.Text,maximum_number_of_accounts:$.Opt($.Nat64),accounts_overflow_trim_quantity:$.Opt($.Nat64),transaction_window:$.Opt(it),max_message_size_bytes:$.Opt($.Nat64),icrc1_minting_account:$.Opt(et),archive_options:$.Opt(At),initial_values:$.Vec($.Tuple($.Text,nt)),token_name:$.Opt($.Text),feature_flags:$.Opt(tt)});$.Variant({Upgrade:$.Opt(rt),Init:at});const ot=$.Record({account:$.Vec($.Nat8)}),st=$.Record({account:$.Text}),ct=$.Record({canister_id:$.Principal}),ut=$.Record({archives:$.Vec(ct)}),gt=$.Record({decimals:$.Nat32}),dt=$.Variant({Int:$.Int,Nat:$.Nat,Blob:$.Vec($.Nat8),Text:$.Text}),ht=$.Record({url:$.Text,name:$.Text}),Et=$.Record({to:et,fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat}),wt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})}),mt=$.Variant({Ok:$.Nat,Err:wt}),pt=$.Record({account:et,spender:et}),Qt=$.Record({allowance:$.Nat,expires_at:$.Opt($.Nat64)}),$t=$.Record({fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat,expected_allowance:$.Opt($.Nat),expires_at:$.Opt($.Nat64),spender:et}),Gt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),AllowanceChanged:$.Record({current_allowance:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,Expired:$.Record({ledger_time:$.Nat64}),InsufficientFunds:$.Record({balance:$.Nat})}),Tt=$.Variant({Ok:$.Nat,Err:Gt}),Pt=$.Record({to:et,fee:$.Opt($.Nat),spender_subaccount:$.Opt($.Vec($.Nat8)),from:et,memo:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt($.Nat64),amount:$.Nat}),Kt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,InsufficientAllowance:$.Record({allowance:$.Nat}),BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})}),ir=$.Variant({Ok:$.Nat,Err:Kt}),jt=$.Record({name:$.Text}),Mt=$.Record({start:$.Nat64,length:$.Nat64}),Bt=$.Record({timestamp_nanos:$.Nat64}),vt=$.Variant({Approve:$.Record({fee:nt,from:$.Vec($.Nat8),allowance_e8s:$.Int,allowance:nt,expected_allowance:$.Opt(nt),expires_at:$.Opt(Bt),spender:$.Vec($.Nat8)}),Burn:$.Record({from:$.Vec($.Nat8),amount:nt,spender:$.Opt($.Vec($.Nat8))}),Mint:$.Record({to:$.Vec($.Nat8),amount:nt}),Transfer:$.Record({to:$.Vec($.Nat8),fee:nt,from:$.Vec($.Nat8),amount:nt,spender:$.Opt($.Vec($.Nat8))})}),Nt=$.Record({memo:$.Nat64,icrc1_memo:$.Opt($.Vec($.Nat8)),operation:$.Opt(vt),created_at_time:Bt}),Ut=$.Record({transaction:Nt,timestamp:Bt,parent_hash:$.Opt($.Vec($.Nat8))}),Jt=$.Record({blocks:$.Vec(Ut)}),rr=$.Variant({BadFirstBlockIndex:$.Record({requested_index:$.Nat64,first_valid_index:$.Nat64}),Other:$.Record({error_message:$.Text,error_code:$.Nat64})}),Wt=$.Variant({Ok:Jt,Err:rr}),Ot=$.Record({callback:$.Func([Mt],[Wt],["query"]),start:$.Nat64,length:$.Nat64}),bt=$.Record({certificate:$.Opt($.Vec($.Nat8)),blocks:$.Vec(Ut),chain_length:$.Nat64,first_block_index:$.Nat64,archived_blocks:$.Vec(Ot)}),kt=$.Variant({Ok:$.Vec($.Vec($.Nat8)),Err:rr}),Ar=$.Record({callback:$.Func([Mt],[kt],["query"]),start:$.Nat64,length:$.Nat64}),cr=$.Record({certificate:$.Opt($.Vec($.Nat8)),blocks:$.Vec($.Vec($.Nat8)),chain_length:$.Nat64,first_block_index:$.Nat64,archived_blocks:$.Vec(Ar)}),Rt=$.Record({to:$.Text,fee:nt,memo:$.Nat64,from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt(Bt),amount:nt}),Qr=$.Record({symbol:$.Text}),_r=$.Record({to:$.Vec($.Nat8),fee:nt,memo:$.Nat64,from_subaccount:$.Opt($.Vec($.Nat8)),created_at_time:$.Opt(Bt),amount:nt}),qr=$.Variant({TxTooOld:$.Record({allowed_window_nanos:$.Nat64}),BadFee:$.Record({expected_fee:nt}),TxDuplicate:$.Record({duplicate_of:$.Nat64}),TxCreatedInFuture:$.Null,InsufficientFunds:$.Record({balance:nt})}),yr=$.Variant({Ok:$.Nat64,Err:qr}),kr=$.Record({transfer_fee:nt});return $.Service({account_balance:$.Func([ot],[nt],["query"]),account_balance_dfx:$.Func([st],[nt],["query"]),account_identifier:$.Func([et],[$.Vec($.Nat8)],["query"]),archives:$.Func([],[ut],["query"]),decimals:$.Func([],[gt],["query"]),icrc1_balance_of:$.Func([et],[$.Nat],["query"]),icrc1_decimals:$.Func([],[$.Nat8],["query"]),icrc1_fee:$.Func([],[$.Nat],["query"]),icrc1_metadata:$.Func([],[$.Vec($.Tuple($.Text,dt))],["query"]),icrc1_minting_account:$.Func([],[$.Opt(et)],["query"]),icrc1_name:$.Func([],[$.Text],["query"]),icrc1_supported_standards:$.Func([],[$.Vec(ht)],["query"]),icrc1_symbol:$.Func([],[$.Text],["query"]),icrc1_total_supply:$.Func([],[$.Nat],["query"]),icrc1_transfer:$.Func([Et],[mt],[]),icrc2_allowance:$.Func([pt],[Qt],["query"]),icrc2_approve:$.Func([$t],[Tt],[]),icrc2_transfer_from:$.Func([Pt],[ir],[]),name:$.Func([],[jt],["query"]),query_blocks:$.Func([Mt],[bt],["query"]),query_encoded_blocks:$.Func([Mt],[cr],["query"]),send_dfx:$.Func([Rt],[$.Nat64],[]),symbol:$.Func([],[Qr],["query"]),transfer:$.Func([_r],[yr],[]),transfer_fee:$.Func([$.Record({})],[kr],["query"])})},bitfinity=window.ic?window.ic.bitfinityWallet?{readyState:"Installed",connectWallet:async function($={whitelist:[],host:""}){var et=await window.ic.bitfinityWallet.isConnected();et||await window.ic.bitfinityWallet.requestConnect($),window.ic.bitfinityWallet.agent||await window.ic.bitfinityWallet.requestConnect($),this.agent=window.ic.bitfinityWallet.agent,this.getPrincipal=async function(){return window.ic.bitfinityWallet.getPrincipal()},this.createActor=async function(nt){return window.ic.bitfinityWallet.createActor(nt)},this.batchTransactions=async function(nt){return window.ic.bitfinityWallet.batchTransactions(nt)};var tt=await this.getPrincipal(),rt=await window.ic.bitfinityWallet.getAccountID();return{accountId:rt,principalId:tt.toString()}},disConnectWallet:async function(){await window.ic.bitfinityWallet.disconnect()}}:{readyState:"NotDetected",url:"https://wallet.infinityswap.one/"}:{readyState:"NotDetected",url:"https://wallet.infinityswap.one/"};var Buffer=buffer$2.Buffer,CRC_TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(CRC_TABLE=new Int32Array(CRC_TABLE));function ensureBuffer($){if(Buffer.isBuffer($))return $;var et=typeof Buffer.alloc=="function"&&typeof Buffer.from=="function";if(typeof $=="number")return et?Buffer.alloc($):new Buffer($);if(typeof $=="string")return et?Buffer.from($):new Buffer($);throw new Error("input must be buffer, number, or string, received "+typeof $)}function bufferizeInt($){var et=ensureBuffer(4);return et.writeInt32BE($,0),et}function _crc32($,et){$=ensureBuffer($),Buffer.isBuffer(et)&&(et=et.readUInt32BE(0));for(var tt=~~et^-1,rt=0;rt<$.length;rt++)tt=CRC_TABLE[(tt^$[rt])&255]^tt>>>8;return tt^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var bufferCrc32=crc32;const crc32$1=getDefaultExportFromCjs(bufferCrc32);var cryptoJs={exports:{}};function commonjsRequire($){throw new Error('Could not dynamically require "'+$+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var core={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(__viteBrowserExternal$1);var hasRequiredCore;function requireCore(){return hasRequiredCore||(hasRequiredCore=1,function($,et){(function(tt,rt){$.exports=rt()})(commonjsGlobal,function(){var tt=tt||function(rt,nt){var it;if(typeof window<"u"&&window.crypto&&(it=window.crypto),typeof self<"u"&&self.crypto&&(it=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(it=globalThis.crypto),!it&&typeof window<"u"&&window.msCrypto&&(it=window.msCrypto),!it&&typeof commonjsGlobal<"u"&&commonjsGlobal.crypto&&(it=commonjsGlobal.crypto),!it&&typeof commonjsRequire=="function")try{it=require$$0$1}catch{}var At=function(){if(it){if(typeof it.getRandomValues=="function")try{return it.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof it.randomBytes=="function")try{return it.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},at=Object.create||function(){function pt(){}return function(Qt){var $t;return pt.prototype=Qt,$t=new pt,pt.prototype=null,$t}}(),ot={},st=ot.lib={},ct=st.Base=function(){return{extend:function(pt){var Qt=at(this);return pt&&Qt.mixIn(pt),(!Qt.hasOwnProperty("init")||this.init===Qt.init)&&(Qt.init=function(){Qt.$super.init.apply(this,arguments)}),Qt.init.prototype=Qt,Qt.$super=this,Qt},create:function(){var pt=this.extend();return pt.init.apply(pt,arguments),pt},init:function(){},mixIn:function(pt){for(var Qt in pt)pt.hasOwnProperty(Qt)&&(this[Qt]=pt[Qt]);pt.hasOwnProperty("toString")&&(this.toString=pt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),ut=st.WordArray=ct.extend({init:function(pt,Qt){pt=this.words=pt||[],Qt!=nt?this.sigBytes=Qt:this.sigBytes=pt.length*4},toString:function(pt){return(pt||dt).stringify(this)},concat:function(pt){var Qt=this.words,$t=pt.words,Gt=this.sigBytes,Tt=pt.sigBytes;if(this.clamp(),Gt%4)for(var Pt=0;Pt>>2]>>>24-Pt%4*8&255;Qt[Gt+Pt>>>2]|=Kt<<24-(Gt+Pt)%4*8}else for(var ir=0;ir>>2]=$t[ir>>>2];return this.sigBytes+=Tt,this},clamp:function(){var pt=this.words,Qt=this.sigBytes;pt[Qt>>>2]&=4294967295<<32-Qt%4*8,pt.length=rt.ceil(Qt/4)},clone:function(){var pt=ct.clone.call(this);return pt.words=this.words.slice(0),pt},random:function(pt){for(var Qt=[],$t=0;$t>>2]>>>24-Tt%4*8&255;Gt.push((Pt>>>4).toString(16)),Gt.push((Pt&15).toString(16))}return Gt.join("")},parse:function(pt){for(var Qt=pt.length,$t=[],Gt=0;Gt>>3]|=parseInt(pt.substr(Gt,2),16)<<24-Gt%8*4;return new ut.init($t,Qt/2)}},ht=gt.Latin1={stringify:function(pt){for(var Qt=pt.words,$t=pt.sigBytes,Gt=[],Tt=0;Tt<$t;Tt++){var Pt=Qt[Tt>>>2]>>>24-Tt%4*8&255;Gt.push(String.fromCharCode(Pt))}return Gt.join("")},parse:function(pt){for(var Qt=pt.length,$t=[],Gt=0;Gt>>2]|=(pt.charCodeAt(Gt)&255)<<24-Gt%4*8;return new ut.init($t,Qt)}},Et=gt.Utf8={stringify:function(pt){try{return decodeURIComponent(escape(ht.stringify(pt)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(pt){return ht.parse(unescape(encodeURIComponent(pt)))}},wt=st.BufferedBlockAlgorithm=ct.extend({reset:function(){this._data=new ut.init,this._nDataBytes=0},_append:function(pt){typeof pt=="string"&&(pt=Et.parse(pt)),this._data.concat(pt),this._nDataBytes+=pt.sigBytes},_process:function(pt){var Qt,$t=this._data,Gt=$t.words,Tt=$t.sigBytes,Pt=this.blockSize,Kt=Pt*4,ir=Tt/Kt;pt?ir=rt.ceil(ir):ir=rt.max((ir|0)-this._minBufferSize,0);var jt=ir*Pt,Mt=rt.min(jt*4,Tt);if(jt){for(var Bt=0;Bt>>2]|=ot[ut]<<24-ut%4*8;At.call(this,ct,st)}else At.apply(this,arguments)};at.prototype=it}}(),tt.lib.WordArray})}(libTypedarrays)),libTypedarrays.exports}var encUtf16={exports:{}},hasRequiredEncUtf16;function requireEncUtf16(){return hasRequiredEncUtf16||(hasRequiredEncUtf16=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Utf16=At.Utf16BE={stringify:function(ot){for(var st=ot.words,ct=ot.sigBytes,ut=[],gt=0;gt>>2]>>>16-gt%4*8&65535;ut.push(String.fromCharCode(dt))}return ut.join("")},parse:function(ot){for(var st=ot.length,ct=[],ut=0;ut>>1]|=ot.charCodeAt(ut)<<16-ut%2*16;return it.create(ct,st*2)}},At.Utf16LE={stringify:function(ot){for(var st=ot.words,ct=ot.sigBytes,ut=[],gt=0;gt>>2]>>>16-gt%4*8&65535);ut.push(String.fromCharCode(dt))}return ut.join("")},parse:function(ot){for(var st=ot.length,ct=[],ut=0;ut>>1]|=at(ot.charCodeAt(ut)<<16-ut%2*16);return it.create(ct,st*2)}};function at(ot){return ot<<8&4278255360|ot>>>8&16711935}}(),tt.enc.Utf16})}(encUtf16)),encUtf16.exports}var encBase64={exports:{}},hasRequiredEncBase64;function requireEncBase64(){return hasRequiredEncBase64||(hasRequiredEncBase64=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Base64={stringify:function(ot){var st=ot.words,ct=ot.sigBytes,ut=this._map;ot.clamp();for(var gt=[],dt=0;dt>>2]>>>24-dt%4*8&255,Et=st[dt+1>>>2]>>>24-(dt+1)%4*8&255,wt=st[dt+2>>>2]>>>24-(dt+2)%4*8&255,mt=ht<<16|Et<<8|wt,pt=0;pt<4&&dt+pt*.75>>6*(3-pt)&63));var Qt=ut.charAt(64);if(Qt)for(;gt.length%4;)gt.push(Qt);return gt.join("")},parse:function(ot){var st=ot.length,ct=this._map,ut=this._reverseMap;if(!ut){ut=this._reverseMap=[];for(var gt=0;gt>>6-dt%4*2,wt=ht|Et;ut[gt>>>2]|=wt<<24-gt%4*8,gt++}return it.create(ut,gt)}}(),tt.enc.Base64})}(encBase64)),encBase64.exports}var encBase64url={exports:{}},hasRequiredEncBase64url;function requireEncBase64url(){return hasRequiredEncBase64url||(hasRequiredEncBase64url=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.enc;At.Base64url={stringify:function(ot,st){st===void 0&&(st=!0);var ct=ot.words,ut=ot.sigBytes,gt=st?this._safe_map:this._map;ot.clamp();for(var dt=[],ht=0;ht>>2]>>>24-ht%4*8&255,wt=ct[ht+1>>>2]>>>24-(ht+1)%4*8&255,mt=ct[ht+2>>>2]>>>24-(ht+2)%4*8&255,pt=Et<<16|wt<<8|mt,Qt=0;Qt<4&&ht+Qt*.75>>6*(3-Qt)&63));var $t=gt.charAt(64);if($t)for(;dt.length%4;)dt.push($t);return dt.join("")},parse:function(ot,st){st===void 0&&(st=!0);var ct=ot.length,ut=st?this._safe_map:this._map,gt=this._reverseMap;if(!gt){gt=this._reverseMap=[];for(var dt=0;dt>>6-dt%4*2,wt=ht|Et;ut[gt>>>2]|=wt<<24-gt%4*8,gt++}return it.create(ut,gt)}}(),tt.enc.Base64url})}(encBase64url)),encBase64url.exports}var md5={exports:{}},hasRequiredMd5;function requireMd5(){return hasRequiredMd5||(hasRequiredMd5=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.algo,st=[];(function(){for(var Et=0;Et<64;Et++)st[Et]=rt.abs(rt.sin(Et+1))*4294967296|0})();var ct=ot.MD5=at.extend({_doReset:function(){this._hash=new At.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(Et,wt){for(var mt=0;mt<16;mt++){var pt=wt+mt,Qt=Et[pt];Et[pt]=(Qt<<8|Qt>>>24)&16711935|(Qt<<24|Qt>>>8)&4278255360}var $t=this._hash.words,Gt=Et[wt+0],Tt=Et[wt+1],Pt=Et[wt+2],Kt=Et[wt+3],ir=Et[wt+4],jt=Et[wt+5],Mt=Et[wt+6],Bt=Et[wt+7],vt=Et[wt+8],Nt=Et[wt+9],Ut=Et[wt+10],Jt=Et[wt+11],rr=Et[wt+12],Wt=Et[wt+13],Ot=Et[wt+14],bt=Et[wt+15],kt=$t[0],Ar=$t[1],cr=$t[2],Rt=$t[3];kt=ut(kt,Ar,cr,Rt,Gt,7,st[0]),Rt=ut(Rt,kt,Ar,cr,Tt,12,st[1]),cr=ut(cr,Rt,kt,Ar,Pt,17,st[2]),Ar=ut(Ar,cr,Rt,kt,Kt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;wt[(pt+64>>>9<<4)+15]=(Qt<<8|Qt>>>24)&16711935|(Qt<<24|Qt>>>8)&4278255360,wt[(pt+64>>>9<<4)+14]=($t<<8|$t>>>24)&16711935|($t<<24|$t>>>8)&4278255360,Et.sigBytes=(wt.length+1)*4,this._process();for(var Gt=this._hash,Tt=Gt.words,Pt=0;Pt<4;Pt++){var Kt=Tt[Pt];Tt[Pt]=(Kt<<8|Kt>>>24)&16711935|(Kt<<24|Kt>>>8)&4278255360}return Gt},clone:function(){var Et=at.clone.call(this);return Et._hash=this._hash.clone(),Et}});function ut(Et,wt,mt,pt,Qt,$t,Gt){var Tt=Et+(wt&mt|~wt&pt)+Qt+Gt;return(Tt<<$t|Tt>>>32-$t)+wt}function gt(Et,wt,mt,pt,Qt,$t,Gt){var Tt=Et+(wt&pt|mt&~pt)+Qt+Gt;return(Tt<<$t|Tt>>>32-$t)+wt}function dt(Et,wt,mt,pt,Qt,$t,Gt){var Tt=Et+(wt^mt^pt)+Qt+Gt;return(Tt<<$t|Tt>>>32-$t)+wt}function ht(Et,wt,mt,pt,Qt,$t,Gt){var Tt=Et+(mt^(wt|~pt))+Qt+Gt;return(Tt<<$t|Tt>>>32-$t)+wt}nt.MD5=at._createHelper(ct),nt.HmacMD5=at._createHmacHelper(ct)}(Math),tt.MD5})}(md5)),md5.exports}var sha1={exports:{}},hasRequiredSha1;function requireSha1(){return hasRequiredSha1||(hasRequiredSha1=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=nt.Hasher,at=rt.algo,ot=[],st=at.SHA1=At.extend({_doReset:function(){this._hash=new it.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(ct,ut){for(var gt=this._hash.words,dt=gt[0],ht=gt[1],Et=gt[2],wt=gt[3],mt=gt[4],pt=0;pt<80;pt++){if(pt<16)ot[pt]=ct[ut+pt]|0;else{var Qt=ot[pt-3]^ot[pt-8]^ot[pt-14]^ot[pt-16];ot[pt]=Qt<<1|Qt>>>31}var $t=(dt<<5|dt>>>27)+mt+ot[pt];pt<20?$t+=(ht&Et|~ht&wt)+1518500249:pt<40?$t+=(ht^Et^wt)+1859775393:pt<60?$t+=(ht&Et|ht&wt|Et&wt)-1894007588:$t+=(ht^Et^wt)-899497514,mt=wt,wt=Et,Et=ht<<30|ht>>>2,ht=dt,dt=$t}gt[0]=gt[0]+dt|0,gt[1]=gt[1]+ht|0,gt[2]=gt[2]+Et|0,gt[3]=gt[3]+wt|0,gt[4]=gt[4]+mt|0},_doFinalize:function(){var ct=this._data,ut=ct.words,gt=this._nDataBytes*8,dt=ct.sigBytes*8;return ut[dt>>>5]|=128<<24-dt%32,ut[(dt+64>>>9<<4)+14]=Math.floor(gt/4294967296),ut[(dt+64>>>9<<4)+15]=gt,ct.sigBytes=ut.length*4,this._process(),this._hash},clone:function(){var ct=At.clone.call(this);return ct._hash=this._hash.clone(),ct}});rt.SHA1=At._createHelper(st),rt.HmacSHA1=At._createHmacHelper(st)}(),tt.SHA1})}(sha1)),sha1.exports}var sha256$1={exports:{}},hasRequiredSha256;function requireSha256(){return hasRequiredSha256||(hasRequiredSha256=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.algo,st=[],ct=[];(function(){function dt(mt){for(var pt=rt.sqrt(mt),Qt=2;Qt<=pt;Qt++)if(!(mt%Qt))return!1;return!0}function ht(mt){return(mt-(mt|0))*4294967296|0}for(var Et=2,wt=0;wt<64;)dt(Et)&&(wt<8&&(st[wt]=ht(rt.pow(Et,1/2))),ct[wt]=ht(rt.pow(Et,1/3)),wt++),Et++})();var ut=[],gt=ot.SHA256=at.extend({_doReset:function(){this._hash=new At.init(st.slice(0))},_doProcessBlock:function(dt,ht){for(var Et=this._hash.words,wt=Et[0],mt=Et[1],pt=Et[2],Qt=Et[3],$t=Et[4],Gt=Et[5],Tt=Et[6],Pt=Et[7],Kt=0;Kt<64;Kt++){if(Kt<16)ut[Kt]=dt[ht+Kt]|0;else{var ir=ut[Kt-15],jt=(ir<<25|ir>>>7)^(ir<<14|ir>>>18)^ir>>>3,Mt=ut[Kt-2],Bt=(Mt<<15|Mt>>>17)^(Mt<<13|Mt>>>19)^Mt>>>10;ut[Kt]=jt+ut[Kt-7]+Bt+ut[Kt-16]}var vt=$t&Gt^~$t&Tt,Nt=wt&mt^wt&pt^mt&pt,Ut=(wt<<30|wt>>>2)^(wt<<19|wt>>>13)^(wt<<10|wt>>>22),Jt=($t<<26|$t>>>6)^($t<<21|$t>>>11)^($t<<7|$t>>>25),rr=Pt+Jt+vt+ct[Kt]+ut[Kt],Wt=Ut+Nt;Pt=Tt,Tt=Gt,Gt=$t,$t=Qt+rr|0,Qt=pt,pt=mt,mt=wt,wt=rr+Wt|0}Et[0]=Et[0]+wt|0,Et[1]=Et[1]+mt|0,Et[2]=Et[2]+pt|0,Et[3]=Et[3]+Qt|0,Et[4]=Et[4]+$t|0,Et[5]=Et[5]+Gt|0,Et[6]=Et[6]+Tt|0,Et[7]=Et[7]+Pt|0},_doFinalize:function(){var dt=this._data,ht=dt.words,Et=this._nDataBytes*8,wt=dt.sigBytes*8;return ht[wt>>>5]|=128<<24-wt%32,ht[(wt+64>>>9<<4)+14]=rt.floor(Et/4294967296),ht[(wt+64>>>9<<4)+15]=Et,dt.sigBytes=ht.length*4,this._process(),this._hash},clone:function(){var dt=at.clone.call(this);return dt._hash=this._hash.clone(),dt}});nt.SHA256=at._createHelper(gt),nt.HmacSHA256=at._createHmacHelper(gt)}(Math),tt.SHA256})}(sha256$1)),sha256$1.exports}var sha224$3={exports:{}},hasRequiredSha224;function requireSha224(){return hasRequiredSha224||(hasRequiredSha224=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireSha256())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=rt.algo,at=At.SHA256,ot=At.SHA224=at.extend({_doReset:function(){this._hash=new it.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var st=at._doFinalize.call(this);return st.sigBytes-=4,st}});rt.SHA224=at._createHelper(ot),rt.HmacSHA224=at._createHmacHelper(ot)}(),tt.SHA224})}(sha224$3)),sha224$3.exports}var sha512={exports:{}},hasRequiredSha512;function requireSha512(){return hasRequiredSha512||(hasRequiredSha512=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.Hasher,At=rt.x64,at=At.Word,ot=At.WordArray,st=rt.algo;function ct(){return at.create.apply(at,arguments)}var ut=[ct(1116352408,3609767458),ct(1899447441,602891725),ct(3049323471,3964484399),ct(3921009573,2173295548),ct(961987163,4081628472),ct(1508970993,3053834265),ct(2453635748,2937671579),ct(2870763221,3664609560),ct(3624381080,2734883394),ct(310598401,1164996542),ct(607225278,1323610764),ct(1426881987,3590304994),ct(1925078388,4068182383),ct(2162078206,991336113),ct(2614888103,633803317),ct(3248222580,3479774868),ct(3835390401,2666613458),ct(4022224774,944711139),ct(264347078,2341262773),ct(604807628,2007800933),ct(770255983,1495990901),ct(1249150122,1856431235),ct(1555081692,3175218132),ct(1996064986,2198950837),ct(2554220882,3999719339),ct(2821834349,766784016),ct(2952996808,2566594879),ct(3210313671,3203337956),ct(3336571891,1034457026),ct(3584528711,2466948901),ct(113926993,3758326383),ct(338241895,168717936),ct(666307205,1188179964),ct(773529912,1546045734),ct(1294757372,1522805485),ct(1396182291,2643833823),ct(1695183700,2343527390),ct(1986661051,1014477480),ct(2177026350,1206759142),ct(2456956037,344077627),ct(2730485921,1290863460),ct(2820302411,3158454273),ct(3259730800,3505952657),ct(3345764771,106217008),ct(3516065817,3606008344),ct(3600352804,1432725776),ct(4094571909,1467031594),ct(275423344,851169720),ct(430227734,3100823752),ct(506948616,1363258195),ct(659060556,3750685593),ct(883997877,3785050280),ct(958139571,3318307427),ct(1322822218,3812723403),ct(1537002063,2003034995),ct(1747873779,3602036899),ct(1955562222,1575990012),ct(2024104815,1125592928),ct(2227730452,2716904306),ct(2361852424,442776044),ct(2428436474,593698344),ct(2756734187,3733110249),ct(3204031479,2999351573),ct(3329325298,3815920427),ct(3391569614,3928383900),ct(3515267271,566280711),ct(3940187606,3454069534),ct(4118630271,4000239992),ct(116418474,1914138554),ct(174292421,2731055270),ct(289380356,3203993006),ct(460393269,320620315),ct(685471733,587496836),ct(852142971,1086792851),ct(1017036298,365543100),ct(1126000580,2618297676),ct(1288033470,3409855158),ct(1501505948,4234509866),ct(1607167915,987167468),ct(1816402316,1246189591)],gt=[];(function(){for(var ht=0;ht<80;ht++)gt[ht]=ct()})();var dt=st.SHA512=it.extend({_doReset:function(){this._hash=new ot.init([new at.init(1779033703,4089235720),new at.init(3144134277,2227873595),new at.init(1013904242,4271175723),new at.init(2773480762,1595750129),new at.init(1359893119,2917565137),new at.init(2600822924,725511199),new at.init(528734635,4215389547),new at.init(1541459225,327033209)])},_doProcessBlock:function(ht,Et){for(var wt=this._hash.words,mt=wt[0],pt=wt[1],Qt=wt[2],$t=wt[3],Gt=wt[4],Tt=wt[5],Pt=wt[6],Kt=wt[7],ir=mt.high,jt=mt.low,Mt=pt.high,Bt=pt.low,vt=Qt.high,Nt=Qt.low,Ut=$t.high,Jt=$t.low,rr=Gt.high,Wt=Gt.low,Ot=Tt.high,bt=Tt.low,kt=Pt.high,Ar=Pt.low,cr=Kt.high,Rt=Kt.low,Qr=ir,_r=jt,qr=Mt,yr=Bt,kr=vt,Yt=Nt,Xt=Ut,tr=Jt,sr=rr,ur=Wt,fr=Ot,It=bt,lt=kt,ft=Ar,xt=cr,_t=Rt,Lt=0;Lt<80;Lt++){var Zt,Er,mr=gt[Lt];if(Lt<16)Er=mr.high=ht[Et+Lt*2]|0,Zt=mr.low=ht[Et+Lt*2+1]|0;else{var wr=gt[Lt-15],Yr=wr.high,Ft=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|0,Qr=Dt+Ht+(_r>>>0>>0?1:0)|0}jt=mt.low=jt+_r,mt.high=ir+Qr+(jt>>>0<_r>>>0?1:0),Bt=pt.low=Bt+yr,pt.high=Mt+qr+(Bt>>>0>>0?1:0),Nt=Qt.low=Nt+Yt,Qt.high=vt+kr+(Nt>>>0>>0?1:0),Jt=$t.low=Jt+tr,$t.high=Ut+Xt+(Jt>>>0>>0?1:0),Wt=Gt.low=Wt+ur,Gt.high=rr+sr+(Wt>>>0>>0?1:0),bt=Tt.low=bt+It,Tt.high=Ot+fr+(bt>>>0>>0?1:0),Ar=Pt.low=Ar+ft,Pt.high=kt+lt+(Ar>>>0>>0?1:0),Rt=Kt.low=Rt+_t,Kt.high=cr+xt+(Rt>>>0<_t>>>0?1:0)},_doFinalize:function(){var ht=this._data,Et=ht.words,wt=this._nDataBytes*8,mt=ht.sigBytes*8;Et[mt>>>5]|=128<<24-mt%32,Et[(mt+128>>>10<<5)+30]=Math.floor(wt/4294967296),Et[(mt+128>>>10<<5)+31]=wt,ht.sigBytes=Et.length*4,this._process();var pt=this._hash.toX32();return pt},clone:function(){var ht=it.clone.call(this);return ht._hash=this._hash.clone(),ht},blockSize:1024/32});rt.SHA512=it._createHelper(dt),rt.HmacSHA512=it._createHmacHelper(dt)}(),tt.SHA512})}(sha512)),sha512.exports}var sha384={exports:{}},hasRequiredSha384;function requireSha384(){return hasRequiredSha384||(hasRequiredSha384=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core(),requireSha512())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.x64,it=nt.Word,At=nt.WordArray,at=rt.algo,ot=at.SHA512,st=at.SHA384=ot.extend({_doReset:function(){this._hash=new At.init([new it.init(3418070365,3238371032),new it.init(1654270250,914150663),new it.init(2438529370,812702999),new it.init(355462360,4144912697),new it.init(1731405415,4290775857),new it.init(2394180231,1750603025),new it.init(3675008525,1694076839),new it.init(1203062813,3204075428)])},_doFinalize:function(){var ct=ot._doFinalize.call(this);return ct.sigBytes-=16,ct}});rt.SHA384=ot._createHelper(st),rt.HmacSHA384=ot._createHmacHelper(st)}(),tt.SHA384})}(sha384)),sha384.exports}var sha3={exports:{}},hasRequiredSha3;function requireSha3(){return hasRequiredSha3||(hasRequiredSha3=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireX64Core())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.x64,st=ot.Word,ct=nt.algo,ut=[],gt=[],dt=[];(function(){for(var wt=1,mt=0,pt=0;pt<24;pt++){ut[wt+5*mt]=(pt+1)*(pt+2)/2%64;var Qt=mt%5,$t=(2*wt+3*mt)%5;wt=Qt,mt=$t}for(var wt=0;wt<5;wt++)for(var mt=0;mt<5;mt++)gt[wt+5*mt]=mt+(2*wt+3*mt)%5*5;for(var Gt=1,Tt=0;Tt<24;Tt++){for(var Pt=0,Kt=0,ir=0;ir<7;ir++){if(Gt&1){var jt=(1<>>24)&16711935|(Gt<<24|Gt>>>8)&4278255360,Tt=(Tt<<8|Tt>>>24)&16711935|(Tt<<24|Tt>>>8)&4278255360;var Pt=pt[$t];Pt.high^=Tt,Pt.low^=Gt}for(var Kt=0;Kt<24;Kt++){for(var ir=0;ir<5;ir++){for(var jt=0,Mt=0,Bt=0;Bt<5;Bt++){var Pt=pt[ir+5*Bt];jt^=Pt.high,Mt^=Pt.low}var vt=ht[ir];vt.high=jt,vt.low=Mt}for(var ir=0;ir<5;ir++)for(var Nt=ht[(ir+4)%5],Ut=ht[(ir+1)%5],Jt=Ut.high,rr=Ut.low,jt=Nt.high^(Jt<<1|rr>>>31),Mt=Nt.low^(rr<<1|Jt>>>31),Bt=0;Bt<5;Bt++){var Pt=pt[ir+5*Bt];Pt.high^=jt,Pt.low^=Mt}for(var Wt=1;Wt<25;Wt++){var jt,Mt,Pt=pt[Wt],Ot=Pt.high,bt=Pt.low,kt=ut[Wt];kt<32?(jt=Ot<>>32-kt,Mt=bt<>>32-kt):(jt=bt<>>64-kt,Mt=Ot<>>64-kt);var Ar=ht[gt[Wt]];Ar.high=jt,Ar.low=Mt}var cr=ht[0],Rt=pt[0];cr.high=Rt.high,cr.low=Rt.low;for(var ir=0;ir<5;ir++)for(var Bt=0;Bt<5;Bt++){var Wt=ir+5*Bt,Pt=pt[Wt],Qr=ht[Wt],_r=ht[(ir+1)%5+5*Bt],qr=ht[(ir+2)%5+5*Bt];Pt.high=Qr.high^~_r.high&qr.high,Pt.low=Qr.low^~_r.low&qr.low}var Pt=pt[0],yr=dt[Kt];Pt.high^=yr.high,Pt.low^=yr.low}},_doFinalize:function(){var wt=this._data,mt=wt.words;this._nDataBytes*8;var pt=wt.sigBytes*8,Qt=this.blockSize*32;mt[pt>>>5]|=1<<24-pt%32,mt[(rt.ceil((pt+1)/Qt)*Qt>>>5)-1]|=128,wt.sigBytes=mt.length*4,this._process();for(var $t=this._state,Gt=this.cfg.outputLength/8,Tt=Gt/8,Pt=[],Kt=0;Kt>>24)&16711935|(jt<<24|jt>>>8)&4278255360,Mt=(Mt<<8|Mt>>>24)&16711935|(Mt<<24|Mt>>>8)&4278255360,Pt.push(Mt),Pt.push(jt)}return new At.init(Pt,Gt)},clone:function(){for(var wt=at.clone.call(this),mt=wt._state=this._state.slice(0),pt=0;pt<25;pt++)mt[pt]=mt[pt].clone();return wt}});nt.SHA3=at._createHelper(Et),nt.HmacSHA3=at._createHmacHelper(Et)}(Math),tt.SHA3})}(sha3)),sha3.exports}var ripemd160={exports:{}},hasRequiredRipemd160;function requireRipemd160(){return hasRequiredRipemd160||(hasRequiredRipemd160=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -485,12 +485,12 @@ ic-request`);let SignIdentity$2=class{getPrincipal(){return this._principal||(th - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */return function(rt){var nt=tt,it=nt.lib,At=it.WordArray,at=it.Hasher,ot=nt.algo,st=At.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),ct=At.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),ut=At.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),gt=At.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),dt=At.create([0,1518500249,1859775393,2400959708,2840853838]),ht=At.create([1352829926,1548603684,1836072691,2053994217,0]),Et=ot.RIPEMD160=at.extend({_doReset:function(){this._hash=At.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Ut,Pt){for(var Kt=0;Kt<16;Kt++){var zt=Pt+Kt,Yt=Ut[zt];Ut[zt]=(Yt<<8|Yt>>>24)&16711935|(Yt<<24|Yt>>>8)&4278255360}var Mt=this._hash.words,Bt=dt.words,vt=ht.words,Nt=st.words,Gt=ct.words,Jt=ut.words,nr=gt.words,Xt,Ot,bt,kt,Ar,cr,Rt,Qr,_r,qr;cr=Xt=Mt[0],Rt=Ot=Mt[1],Qr=bt=Mt[2],_r=kt=Mt[3],qr=Ar=Mt[4];for(var yr,Kt=0;Kt<80;Kt+=1)yr=Xt+Ut[Pt+Nt[Kt]]|0,Kt<16?yr+=wt(Ot,bt,kt)+Bt[0]:Kt<32?yr+=Qt(Ot,bt,kt)+Bt[1]:Kt<48?yr+=pt(Ot,bt,kt)+Bt[2]:Kt<64?yr+=mt(Ot,bt,kt)+Bt[3]:yr+=$t(Ot,bt,kt)+Bt[4],yr=yr|0,yr=Tt(yr,Jt[Kt]),yr=yr+Ar|0,Xt=Ar,Ar=kt,kt=Tt(bt,10),bt=Ot,Ot=yr,yr=cr+Ut[Pt+Gt[Kt]]|0,Kt<16?yr+=$t(Rt,Qr,_r)+vt[0]:Kt<32?yr+=mt(Rt,Qr,_r)+vt[1]:Kt<48?yr+=pt(Rt,Qr,_r)+vt[2]:Kt<64?yr+=Qt(Rt,Qr,_r)+vt[3]:yr+=wt(Rt,Qr,_r)+vt[4],yr=yr|0,yr=Tt(yr,nr[Kt]),yr=yr+qr|0,cr=qr,qr=_r,_r=Tt(Qr,10),Qr=Rt,Rt=yr;yr=Mt[1]+bt+_r|0,Mt[1]=Mt[2]+kt+qr|0,Mt[2]=Mt[3]+Ar+cr|0,Mt[3]=Mt[4]+Xt+Rt|0,Mt[4]=Mt[0]+Ot+Qr|0,Mt[0]=yr},_doFinalize:function(){var Ut=this._data,Pt=Ut.words,Kt=this._nDataBytes*8,zt=Ut.sigBytes*8;Pt[zt>>>5]|=128<<24-zt%32,Pt[(zt+64>>>9<<4)+14]=(Kt<<8|Kt>>>24)&16711935|(Kt<<24|Kt>>>8)&4278255360,Ut.sigBytes=(Pt.length+1)*4,this._process();for(var Yt=this._hash,Mt=Yt.words,Bt=0;Bt<5;Bt++){var vt=Mt[Bt];Mt[Bt]=(vt<<8|vt>>>24)&16711935|(vt<<24|vt>>>8)&4278255360}return Yt},clone:function(){var Ut=at.clone.call(this);return Ut._hash=this._hash.clone(),Ut}});function wt(Ut,Pt,Kt){return Ut^Pt^Kt}function Qt(Ut,Pt,Kt){return Ut&Pt|~Ut&Kt}function pt(Ut,Pt,Kt){return(Ut|~Pt)^Kt}function mt(Ut,Pt,Kt){return Ut&Kt|Pt&~Kt}function $t(Ut,Pt,Kt){return Ut^(Pt|~Kt)}function Tt(Ut,Pt){return Ut<>>32-Pt}nt.RIPEMD160=at._createHelper(Et),nt.HmacRIPEMD160=at._createHmacHelper(Et)}(),tt.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac$1={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){(function(){var rt=tt,nt=rt.lib,it=nt.Base,At=rt.enc,at=At.Utf8,ot=rt.algo;ot.HMAC=it.extend({init:function(st,ct){st=this._hasher=new st.init,typeof ct=="string"&&(ct=at.parse(ct));var ut=st.blockSize,gt=ut*4;ct.sigBytes>gt&&(ct=st.finalize(ct)),ct.clamp();for(var dt=this._oKey=ct.clone(),ht=this._iKey=ct.clone(),Et=dt.words,wt=ht.words,Qt=0;Qt>>2]&255;Yt.sigBytes-=Mt}};it.BlockCipher=dt.extend({cfg:dt.cfg.extend({mode:wt,padding:pt}),reset:function(){var Yt;dt.reset.call(this);var Mt=this.cfg,Bt=Mt.iv,vt=Mt.mode;this._xformMode==this._ENC_XFORM_MODE?Yt=vt.createEncryptor:(Yt=vt.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==Yt?this._mode.init(this,Bt&&Bt.words):(this._mode=Yt.call(vt,this,Bt&&Bt.words),this._mode.__creator=Yt)},_doProcessBlock:function(Yt,Mt){this._mode.processBlock(Yt,Mt)},_doFinalize:function(){var Yt,Mt=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(Mt.pad(this._data,this.blockSize),Yt=this._process(!0)):(Yt=this._process(!0),Mt.unpad(Yt)),Yt},blockSize:128/32});var mt=it.CipherParams=At.extend({init:function(Yt){this.mixIn(Yt)},toString:function(Yt){return(Yt||this.formatter).stringify(this)}}),$t=nt.format={},Tt=$t.OpenSSL={stringify:function(Yt){var Mt,Bt=Yt.ciphertext,vt=Yt.salt;return vt?Mt=at.create([1398893684,1701076831]).concat(vt).concat(Bt):Mt=Bt,Mt.toString(ct)},parse:function(Yt){var Mt,Bt=ct.parse(Yt),vt=Bt.words;return vt[0]==1398893684&&vt[1]==1701076831&&(Mt=at.create(vt.slice(2,4)),vt.splice(0,4),Bt.sigBytes-=16),mt.create({ciphertext:Bt,salt:Mt})}},Ut=it.SerializableCipher=At.extend({cfg:At.extend({format:Tt}),encrypt:function(Yt,Mt,Bt,vt){vt=this.cfg.extend(vt);var Nt=Yt.createEncryptor(Bt,vt),Gt=Nt.finalize(Mt),Jt=Nt.cfg;return mt.create({ciphertext:Gt,key:Bt,iv:Jt.iv,algorithm:Yt,mode:Jt.mode,padding:Jt.padding,blockSize:Yt.blockSize,formatter:vt.format})},decrypt:function(Yt,Mt,Bt,vt){vt=this.cfg.extend(vt),Mt=this._parse(Mt,vt.format);var Nt=Yt.createDecryptor(Bt,vt).finalize(Mt.ciphertext);return Nt},_parse:function(Yt,Mt){return typeof Yt=="string"?Mt.parse(Yt,this):Yt}}),Pt=nt.kdf={},Kt=Pt.OpenSSL={execute:function(Yt,Mt,Bt,vt,Nt){if(vt||(vt=at.random(64/8)),Nt)var Gt=gt.create({keySize:Mt+Bt,hasher:Nt}).compute(Yt,vt);else var Gt=gt.create({keySize:Mt+Bt}).compute(Yt,vt);var Jt=at.create(Gt.words.slice(Mt),Bt*4);return Gt.sigBytes=Mt*4,mt.create({key:Gt,iv:Jt,salt:vt})}},zt=it.PasswordBasedCipher=Ut.extend({cfg:Ut.cfg.extend({kdf:Kt}),encrypt:function(Yt,Mt,Bt,vt){vt=this.cfg.extend(vt);var Nt=vt.kdf.execute(Bt,Yt.keySize,Yt.ivSize,vt.salt,vt.hasher);vt.iv=Nt.iv;var Gt=Ut.encrypt.call(this,Yt,Mt,Nt.key,vt);return Gt.mixIn(Nt),Gt},decrypt:function(Yt,Mt,Bt,vt){vt=this.cfg.extend(vt),Mt=this._parse(Mt,vt.format);var Nt=vt.kdf.execute(Bt,Yt.keySize,Yt.ivSize,Mt.salt,vt.hasher);vt.iv=Nt.iv;var Gt=Ut.decrypt.call(this,Yt,Mt,Nt.key,vt);return Gt}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.mode.CFB=function(){var rt=tt.lib.BlockCipherMode.extend();rt.Encryptor=rt.extend({processBlock:function(it,At){var at=this._cipher,ot=at.blockSize;nt.call(this,it,At,ot,at),this._prevBlock=it.slice(At,At+ot)}}),rt.Decryptor=rt.extend({processBlock:function(it,At){var at=this._cipher,ot=at.blockSize,st=it.slice(At,At+ot);nt.call(this,it,At,ot,at),this._prevBlock=st}});function nt(it,At,at,ot){var st,ct=this._iv;ct?(st=ct.slice(0),this._iv=void 0):st=this._prevBlock,ot.encryptBlock(st,0);for(var ut=0;ut>>24)&16711935|(jt<<24|jt>>>8)&4278255360}var Mt=this._hash.words,Bt=dt.words,vt=ht.words,Nt=st.words,Ut=ct.words,Jt=ut.words,rr=gt.words,Wt,Ot,bt,kt,Ar,cr,Rt,Qr,_r,qr;cr=Wt=Mt[0],Rt=Ot=Mt[1],Qr=bt=Mt[2],_r=kt=Mt[3],qr=Ar=Mt[4];for(var yr,Kt=0;Kt<80;Kt+=1)yr=Wt+Tt[Pt+Nt[Kt]]|0,Kt<16?yr+=wt(Ot,bt,kt)+Bt[0]:Kt<32?yr+=mt(Ot,bt,kt)+Bt[1]:Kt<48?yr+=pt(Ot,bt,kt)+Bt[2]:Kt<64?yr+=Qt(Ot,bt,kt)+Bt[3]:yr+=$t(Ot,bt,kt)+Bt[4],yr=yr|0,yr=Gt(yr,Jt[Kt]),yr=yr+Ar|0,Wt=Ar,Ar=kt,kt=Gt(bt,10),bt=Ot,Ot=yr,yr=cr+Tt[Pt+Ut[Kt]]|0,Kt<16?yr+=$t(Rt,Qr,_r)+vt[0]:Kt<32?yr+=Qt(Rt,Qr,_r)+vt[1]:Kt<48?yr+=pt(Rt,Qr,_r)+vt[2]:Kt<64?yr+=mt(Rt,Qr,_r)+vt[3]:yr+=wt(Rt,Qr,_r)+vt[4],yr=yr|0,yr=Gt(yr,rr[Kt]),yr=yr+qr|0,cr=qr,qr=_r,_r=Gt(Qr,10),Qr=Rt,Rt=yr;yr=Mt[1]+bt+_r|0,Mt[1]=Mt[2]+kt+qr|0,Mt[2]=Mt[3]+Ar+cr|0,Mt[3]=Mt[4]+Wt+Rt|0,Mt[4]=Mt[0]+Ot+Qr|0,Mt[0]=yr},_doFinalize:function(){var Tt=this._data,Pt=Tt.words,Kt=this._nDataBytes*8,ir=Tt.sigBytes*8;Pt[ir>>>5]|=128<<24-ir%32,Pt[(ir+64>>>9<<4)+14]=(Kt<<8|Kt>>>24)&16711935|(Kt<<24|Kt>>>8)&4278255360,Tt.sigBytes=(Pt.length+1)*4,this._process();for(var jt=this._hash,Mt=jt.words,Bt=0;Bt<5;Bt++){var vt=Mt[Bt];Mt[Bt]=(vt<<8|vt>>>24)&16711935|(vt<<24|vt>>>8)&4278255360}return jt},clone:function(){var Tt=at.clone.call(this);return Tt._hash=this._hash.clone(),Tt}});function wt(Tt,Pt,Kt){return Tt^Pt^Kt}function mt(Tt,Pt,Kt){return Tt&Pt|~Tt&Kt}function pt(Tt,Pt,Kt){return(Tt|~Pt)^Kt}function Qt(Tt,Pt,Kt){return Tt&Kt|Pt&~Kt}function $t(Tt,Pt,Kt){return Tt^(Pt|~Kt)}function Gt(Tt,Pt){return Tt<>>32-Pt}nt.RIPEMD160=at._createHelper(Et),nt.HmacRIPEMD160=at._createHmacHelper(Et)}(),tt.RIPEMD160})}(ripemd160)),ripemd160.exports}var hmac$1={exports:{}},hasRequiredHmac;function requireHmac(){return hasRequiredHmac||(hasRequiredHmac=1,function($,et){(function(tt,rt){$.exports=rt(requireCore())})(commonjsGlobal,function(tt){(function(){var rt=tt,nt=rt.lib,it=nt.Base,At=rt.enc,at=At.Utf8,ot=rt.algo;ot.HMAC=it.extend({init:function(st,ct){st=this._hasher=new st.init,typeof ct=="string"&&(ct=at.parse(ct));var ut=st.blockSize,gt=ut*4;ct.sigBytes>gt&&(ct=st.finalize(ct)),ct.clamp();for(var dt=this._oKey=ct.clone(),ht=this._iKey=ct.clone(),Et=dt.words,wt=ht.words,mt=0;mt>>2]&255;jt.sigBytes-=Mt}};it.BlockCipher=dt.extend({cfg:dt.cfg.extend({mode:wt,padding:pt}),reset:function(){var jt;dt.reset.call(this);var Mt=this.cfg,Bt=Mt.iv,vt=Mt.mode;this._xformMode==this._ENC_XFORM_MODE?jt=vt.createEncryptor:(jt=vt.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==jt?this._mode.init(this,Bt&&Bt.words):(this._mode=jt.call(vt,this,Bt&&Bt.words),this._mode.__creator=jt)},_doProcessBlock:function(jt,Mt){this._mode.processBlock(jt,Mt)},_doFinalize:function(){var jt,Mt=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(Mt.pad(this._data,this.blockSize),jt=this._process(!0)):(jt=this._process(!0),Mt.unpad(jt)),jt},blockSize:128/32});var Qt=it.CipherParams=At.extend({init:function(jt){this.mixIn(jt)},toString:function(jt){return(jt||this.formatter).stringify(this)}}),$t=nt.format={},Gt=$t.OpenSSL={stringify:function(jt){var Mt,Bt=jt.ciphertext,vt=jt.salt;return vt?Mt=at.create([1398893684,1701076831]).concat(vt).concat(Bt):Mt=Bt,Mt.toString(ct)},parse:function(jt){var Mt,Bt=ct.parse(jt),vt=Bt.words;return vt[0]==1398893684&&vt[1]==1701076831&&(Mt=at.create(vt.slice(2,4)),vt.splice(0,4),Bt.sigBytes-=16),Qt.create({ciphertext:Bt,salt:Mt})}},Tt=it.SerializableCipher=At.extend({cfg:At.extend({format:Gt}),encrypt:function(jt,Mt,Bt,vt){vt=this.cfg.extend(vt);var Nt=jt.createEncryptor(Bt,vt),Ut=Nt.finalize(Mt),Jt=Nt.cfg;return Qt.create({ciphertext:Ut,key:Bt,iv:Jt.iv,algorithm:jt,mode:Jt.mode,padding:Jt.padding,blockSize:jt.blockSize,formatter:vt.format})},decrypt:function(jt,Mt,Bt,vt){vt=this.cfg.extend(vt),Mt=this._parse(Mt,vt.format);var Nt=jt.createDecryptor(Bt,vt).finalize(Mt.ciphertext);return Nt},_parse:function(jt,Mt){return typeof jt=="string"?Mt.parse(jt,this):jt}}),Pt=nt.kdf={},Kt=Pt.OpenSSL={execute:function(jt,Mt,Bt,vt,Nt){if(vt||(vt=at.random(64/8)),Nt)var Ut=gt.create({keySize:Mt+Bt,hasher:Nt}).compute(jt,vt);else var Ut=gt.create({keySize:Mt+Bt}).compute(jt,vt);var Jt=at.create(Ut.words.slice(Mt),Bt*4);return Ut.sigBytes=Mt*4,Qt.create({key:Ut,iv:Jt,salt:vt})}},ir=it.PasswordBasedCipher=Tt.extend({cfg:Tt.cfg.extend({kdf:Kt}),encrypt:function(jt,Mt,Bt,vt){vt=this.cfg.extend(vt);var Nt=vt.kdf.execute(Bt,jt.keySize,jt.ivSize,vt.salt,vt.hasher);vt.iv=Nt.iv;var Ut=Tt.encrypt.call(this,jt,Mt,Nt.key,vt);return Ut.mixIn(Nt),Ut},decrypt:function(jt,Mt,Bt,vt){vt=this.cfg.extend(vt),Mt=this._parse(Mt,vt.format);var Nt=vt.kdf.execute(Bt,jt.keySize,jt.ivSize,Mt.salt,vt.hasher);vt.iv=Nt.iv;var Ut=Tt.decrypt.call(this,jt,Mt,Nt.key,vt);return Ut}})}()})}(cipherCore)),cipherCore.exports}var modeCfb={exports:{}},hasRequiredModeCfb;function requireModeCfb(){return hasRequiredModeCfb||(hasRequiredModeCfb=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.mode.CFB=function(){var rt=tt.lib.BlockCipherMode.extend();rt.Encryptor=rt.extend({processBlock:function(it,At){var at=this._cipher,ot=at.blockSize;nt.call(this,it,At,ot,at),this._prevBlock=it.slice(At,At+ot)}}),rt.Decryptor=rt.extend({processBlock:function(it,At){var at=this._cipher,ot=at.blockSize,st=it.slice(At,At+ot);nt.call(this,it,At,ot,at),this._prevBlock=st}});function nt(it,At,at,ot){var st,ct=this._iv;ct?(st=ct.slice(0),this._iv=void 0):st=this._prevBlock,ot.encryptBlock(st,0);for(var ut=0;ut>24&255)===255){var ot=at>>16&255,st=at>>8&255,ct=at&255;ot===255?(ot=0,st===255?(st=0,ct===255?ct=0:++ct):++st):++ot,at=0,at+=ot<<16,at+=st<<8,at+=ct}else at+=1<<24;return at}function it(at){return(at[0]=nt(at[0]))===0&&(at[1]=nt(at[1])),at}var At=rt.Encryptor=rt.extend({processBlock:function(at,ot){var st=this._cipher,ct=st.blockSize,ut=this._iv,gt=this._counter;ut&&(gt=this._counter=ut.slice(0),this._iv=void 0),it(gt);var dt=gt.slice(0);st.encryptBlock(dt,0);for(var ht=0;ht>>2]|=at<<24-ot%4*8,rt.sigBytes+=at},unpad:function(rt){var nt=rt.words[rt.sigBytes-1>>>2]&255;rt.sigBytes-=nt}},tt.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.Iso10126={pad:function(rt,nt){var it=nt*4,At=it-rt.sigBytes%it;rt.concat(tt.lib.WordArray.random(At-1)).concat(tt.lib.WordArray.create([At<<24],1))},unpad:function(rt){var nt=rt.words[rt.sigBytes-1>>>2]&255;rt.sigBytes-=nt}},tt.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.Iso97971={pad:function(rt,nt){rt.concat(tt.lib.WordArray.create([2147483648],1)),tt.pad.ZeroPadding.pad(rt,nt)},unpad:function(rt){tt.pad.ZeroPadding.unpad(rt),rt.sigBytes--}},tt.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.ZeroPadding={pad:function(rt,nt){var it=nt*4;rt.clamp(),rt.sigBytes+=it-(rt.sigBytes%it||it)},unpad:function(rt){for(var nt=rt.words,it=rt.sigBytes-1,it=rt.sigBytes-1;it>=0;it--)if(nt[it>>>2]>>>24-it%4*8&255){rt.sigBytes=it+1;break}}},tt.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.NoPadding={pad:function(){},unpad:function(){}},tt.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.CipherParams,at=nt.enc,ot=at.Hex,st=nt.format;st.Hex={stringify:function(ct){return ct.ciphertext.toString(ot)},parse:function(ct){var ut=ot.parse(ct);return At.create({ciphertext:ut})}}}(),tt.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.BlockCipher,At=rt.algo,at=[],ot=[],st=[],ct=[],ut=[],gt=[],dt=[],ht=[],Et=[],wt=[];(function(){for(var mt=[],$t=0;$t<256;$t++)$t<128?mt[$t]=$t<<1:mt[$t]=$t<<1^283;for(var Tt=0,Ut=0,$t=0;$t<256;$t++){var Pt=Ut^Ut<<1^Ut<<2^Ut<<3^Ut<<4;Pt=Pt>>>8^Pt&255^99,at[Tt]=Pt,ot[Pt]=Tt;var Kt=mt[Tt],zt=mt[Kt],Yt=mt[zt],Mt=mt[Pt]*257^Pt*16843008;st[Tt]=Mt<<24|Mt>>>8,ct[Tt]=Mt<<16|Mt>>>16,ut[Tt]=Mt<<8|Mt>>>24,gt[Tt]=Mt;var Mt=Yt*16843009^zt*65537^Kt*257^Tt*16843008;dt[Pt]=Mt<<24|Mt>>>8,ht[Pt]=Mt<<16|Mt>>>16,Et[Pt]=Mt<<8|Mt>>>24,wt[Pt]=Mt,Tt?(Tt=Kt^mt[mt[mt[Yt^Kt]]],Ut^=mt[mt[Ut]]):Tt=Ut=1}})();var Qt=[0,1,2,4,8,16,32,64,128,27,54],pt=At.AES=it.extend({_doReset:function(){var mt;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $t=this._keyPriorReset=this._key,Tt=$t.words,Ut=$t.sigBytes/4,Pt=this._nRounds=Ut+6,Kt=(Pt+1)*4,zt=this._keySchedule=[],Yt=0;Yt6&&Yt%Ut==4&&(mt=at[mt>>>24]<<24|at[mt>>>16&255]<<16|at[mt>>>8&255]<<8|at[mt&255]):(mt=mt<<8|mt>>>24,mt=at[mt>>>24]<<24|at[mt>>>16&255]<<16|at[mt>>>8&255]<<8|at[mt&255],mt^=Qt[Yt/Ut|0]<<24),zt[Yt]=zt[Yt-Ut]^mt);for(var Mt=this._invKeySchedule=[],Bt=0;Bt>>24]]^ht[at[mt>>>16&255]]^Et[at[mt>>>8&255]]^wt[at[mt&255]]}}},encryptBlock:function(mt,$t){this._doCryptBlock(mt,$t,this._keySchedule,st,ct,ut,gt,at)},decryptBlock:function(mt,$t){var Tt=mt[$t+1];mt[$t+1]=mt[$t+3],mt[$t+3]=Tt,this._doCryptBlock(mt,$t,this._invKeySchedule,dt,ht,Et,wt,ot);var Tt=mt[$t+1];mt[$t+1]=mt[$t+3],mt[$t+3]=Tt},_doCryptBlock:function(mt,$t,Tt,Ut,Pt,Kt,zt,Yt){for(var Mt=this._nRounds,Bt=mt[$t]^Tt[0],vt=mt[$t+1]^Tt[1],Nt=mt[$t+2]^Tt[2],Gt=mt[$t+3]^Tt[3],Jt=4,nr=1;nr>>24]^Pt[vt>>>16&255]^Kt[Nt>>>8&255]^zt[Gt&255]^Tt[Jt++],Ot=Ut[vt>>>24]^Pt[Nt>>>16&255]^Kt[Gt>>>8&255]^zt[Bt&255]^Tt[Jt++],bt=Ut[Nt>>>24]^Pt[Gt>>>16&255]^Kt[Bt>>>8&255]^zt[vt&255]^Tt[Jt++],kt=Ut[Gt>>>24]^Pt[Bt>>>16&255]^Kt[vt>>>8&255]^zt[Nt&255]^Tt[Jt++];Bt=Xt,vt=Ot,Nt=bt,Gt=kt}var Xt=(Yt[Bt>>>24]<<24|Yt[vt>>>16&255]<<16|Yt[Nt>>>8&255]<<8|Yt[Gt&255])^Tt[Jt++],Ot=(Yt[vt>>>24]<<24|Yt[Nt>>>16&255]<<16|Yt[Gt>>>8&255]<<8|Yt[Bt&255])^Tt[Jt++],bt=(Yt[Nt>>>24]<<24|Yt[Gt>>>16&255]<<16|Yt[Bt>>>8&255]<<8|Yt[vt&255])^Tt[Jt++],kt=(Yt[Gt>>>24]<<24|Yt[Bt>>>16&255]<<16|Yt[vt>>>8&255]<<8|Yt[Nt&255])^Tt[Jt++];mt[$t]=Xt,mt[$t+1]=Ot,mt[$t+2]=bt,mt[$t+3]=kt},keySize:256/32});rt.AES=it._createHelper(pt)}(),tt.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=nt.BlockCipher,at=rt.algo,ot=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],st=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],ct=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],ut=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],gt=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],dt=at.DES=At.extend({_doReset:function(){for(var Qt=this._key,pt=Qt.words,mt=[],$t=0;$t<56;$t++){var Tt=ot[$t]-1;mt[$t]=pt[Tt>>>5]>>>31-Tt%32&1}for(var Ut=this._subKeys=[],Pt=0;Pt<16;Pt++){for(var Kt=Ut[Pt]=[],zt=ct[Pt],$t=0;$t<24;$t++)Kt[$t/6|0]|=mt[(st[$t]-1+zt)%28]<<31-$t%6,Kt[4+($t/6|0)]|=mt[28+(st[$t+24]-1+zt)%28]<<31-$t%6;Kt[0]=Kt[0]<<1|Kt[0]>>>31;for(var $t=1;$t<7;$t++)Kt[$t]=Kt[$t]>>>($t-1)*4+3;Kt[7]=Kt[7]<<5|Kt[7]>>>27}for(var Yt=this._invSubKeys=[],$t=0;$t<16;$t++)Yt[$t]=Ut[15-$t]},encryptBlock:function(Qt,pt){this._doCryptBlock(Qt,pt,this._subKeys)},decryptBlock:function(Qt,pt){this._doCryptBlock(Qt,pt,this._invSubKeys)},_doCryptBlock:function(Qt,pt,mt){this._lBlock=Qt[pt],this._rBlock=Qt[pt+1],ht.call(this,4,252645135),ht.call(this,16,65535),Et.call(this,2,858993459),Et.call(this,8,16711935),ht.call(this,1,1431655765);for(var $t=0;$t<16;$t++){for(var Tt=mt[$t],Ut=this._lBlock,Pt=this._rBlock,Kt=0,zt=0;zt<8;zt++)Kt|=ut[zt][((Pt^Tt[zt])>[zt])>>>0];this._lBlock=Pt,this._rBlock=Ut^Kt}var Yt=this._lBlock;this._lBlock=this._rBlock,this._rBlock=Yt,ht.call(this,1,1431655765),Et.call(this,8,16711935),Et.call(this,2,858993459),ht.call(this,16,65535),ht.call(this,4,252645135),Qt[pt]=this._lBlock,Qt[pt+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function ht(Qt,pt){var mt=(this._lBlock>>>Qt^this._rBlock)&pt;this._rBlock^=mt,this._lBlock^=mt<>>Qt^this._lBlock)&pt;this._lBlock^=mt,this._rBlock^=mt<192.");var mt=pt.slice(0,2),$t=pt.length<4?pt.slice(0,2):pt.slice(2,4),Tt=pt.length<6?pt.slice(0,2):pt.slice(4,6);this._des1=dt.createEncryptor(it.create(mt)),this._des2=dt.createEncryptor(it.create($t)),this._des3=dt.createEncryptor(it.create(Tt))},encryptBlock:function(Qt,pt){this._des1.encryptBlock(Qt,pt),this._des2.decryptBlock(Qt,pt),this._des3.encryptBlock(Qt,pt)},decryptBlock:function(Qt,pt){this._des3.decryptBlock(Qt,pt),this._des2.encryptBlock(Qt,pt),this._des1.decryptBlock(Qt,pt)},keySize:192/32,ivSize:64/32,blockSize:64/32});rt.TripleDES=At._createHelper(wt)}(),tt.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=At.RC4=it.extend({_doReset:function(){for(var ct=this._key,ut=ct.words,gt=ct.sigBytes,dt=this._S=[],ht=0;ht<256;ht++)dt[ht]=ht;for(var ht=0,Et=0;ht<256;ht++){var wt=ht%gt,Qt=ut[wt>>>2]>>>24-wt%4*8&255;Et=(Et+dt[ht]+Qt)%256;var pt=dt[ht];dt[ht]=dt[Et],dt[Et]=pt}this._i=this._j=0},_doProcessBlock:function(ct,ut){ct[ut]^=ot.call(this)},keySize:256/32,ivSize:0});function ot(){for(var ct=this._S,ut=this._i,gt=this._j,dt=0,ht=0;ht<4;ht++){ut=(ut+1)%256,gt=(gt+ct[ut])%256;var Et=ct[ut];ct[ut]=ct[gt],ct[gt]=Et,dt|=ct[(ct[ut]+ct[gt])%256]<<24-ht*8}return this._i=ut,this._j=gt,dt}rt.RC4=it._createHelper(at);var st=At.RC4Drop=at.extend({cfg:at.cfg.extend({drop:192}),_doReset:function(){at._doReset.call(this);for(var ct=this.cfg.drop;ct>0;ct--)ot.call(this)}});rt.RC4Drop=it._createHelper(st)}(),tt.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=[],ot=[],st=[],ct=At.Rabbit=it.extend({_doReset:function(){for(var gt=this._key.words,dt=this.cfg.iv,ht=0;ht<4;ht++)gt[ht]=(gt[ht]<<8|gt[ht]>>>24)&16711935|(gt[ht]<<24|gt[ht]>>>8)&4278255360;var Et=this._X=[gt[0],gt[3]<<16|gt[2]>>>16,gt[1],gt[0]<<16|gt[3]>>>16,gt[2],gt[1]<<16|gt[0]>>>16,gt[3],gt[2]<<16|gt[1]>>>16],wt=this._C=[gt[2]<<16|gt[2]>>>16,gt[0]&4294901760|gt[1]&65535,gt[3]<<16|gt[3]>>>16,gt[1]&4294901760|gt[2]&65535,gt[0]<<16|gt[0]>>>16,gt[2]&4294901760|gt[3]&65535,gt[1]<<16|gt[1]>>>16,gt[3]&4294901760|gt[0]&65535];this._b=0;for(var ht=0;ht<4;ht++)ut.call(this);for(var ht=0;ht<8;ht++)wt[ht]^=Et[ht+4&7];if(dt){var Qt=dt.words,pt=Qt[0],mt=Qt[1],$t=(pt<<8|pt>>>24)&16711935|(pt<<24|pt>>>8)&4278255360,Tt=(mt<<8|mt>>>24)&16711935|(mt<<24|mt>>>8)&4278255360,Ut=$t>>>16|Tt&4294901760,Pt=Tt<<16|$t&65535;wt[0]^=$t,wt[1]^=Ut,wt[2]^=Tt,wt[3]^=Pt,wt[4]^=$t,wt[5]^=Ut,wt[6]^=Tt,wt[7]^=Pt;for(var ht=0;ht<4;ht++)ut.call(this)}},_doProcessBlock:function(gt,dt){var ht=this._X;ut.call(this),at[0]=ht[0]^ht[5]>>>16^ht[3]<<16,at[1]=ht[2]^ht[7]>>>16^ht[5]<<16,at[2]=ht[4]^ht[1]>>>16^ht[7]<<16,at[3]=ht[6]^ht[3]>>>16^ht[1]<<16;for(var Et=0;Et<4;Et++)at[Et]=(at[Et]<<8|at[Et]>>>24)&16711935|(at[Et]<<24|at[Et]>>>8)&4278255360,gt[dt+Et]^=at[Et]},blockSize:128/32,ivSize:64/32});function ut(){for(var gt=this._X,dt=this._C,ht=0;ht<8;ht++)ot[ht]=dt[ht];dt[0]=dt[0]+1295307597+this._b|0,dt[1]=dt[1]+3545052371+(dt[0]>>>0>>0?1:0)|0,dt[2]=dt[2]+886263092+(dt[1]>>>0>>0?1:0)|0,dt[3]=dt[3]+1295307597+(dt[2]>>>0>>0?1:0)|0,dt[4]=dt[4]+3545052371+(dt[3]>>>0>>0?1:0)|0,dt[5]=dt[5]+886263092+(dt[4]>>>0>>0?1:0)|0,dt[6]=dt[6]+1295307597+(dt[5]>>>0>>0?1:0)|0,dt[7]=dt[7]+3545052371+(dt[6]>>>0>>0?1:0)|0,this._b=dt[7]>>>0>>0?1:0;for(var ht=0;ht<8;ht++){var Et=gt[ht]+dt[ht],wt=Et&65535,Qt=Et>>>16,pt=((wt*wt>>>17)+wt*Qt>>>15)+Qt*Qt,mt=((Et&4294901760)*Et|0)+((Et&65535)*Et|0);st[ht]=pt^mt}gt[0]=st[0]+(st[7]<<16|st[7]>>>16)+(st[6]<<16|st[6]>>>16)|0,gt[1]=st[1]+(st[0]<<8|st[0]>>>24)+st[7]|0,gt[2]=st[2]+(st[1]<<16|st[1]>>>16)+(st[0]<<16|st[0]>>>16)|0,gt[3]=st[3]+(st[2]<<8|st[2]>>>24)+st[1]|0,gt[4]=st[4]+(st[3]<<16|st[3]>>>16)+(st[2]<<16|st[2]>>>16)|0,gt[5]=st[5]+(st[4]<<8|st[4]>>>24)+st[3]|0,gt[6]=st[6]+(st[5]<<16|st[5]>>>16)+(st[4]<<16|st[4]>>>16)|0,gt[7]=st[7]+(st[6]<<8|st[6]>>>24)+st[5]|0}rt.Rabbit=it._createHelper(ct)}(),tt.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=[],ot=[],st=[],ct=At.RabbitLegacy=it.extend({_doReset:function(){var gt=this._key.words,dt=this.cfg.iv,ht=this._X=[gt[0],gt[3]<<16|gt[2]>>>16,gt[1],gt[0]<<16|gt[3]>>>16,gt[2],gt[1]<<16|gt[0]>>>16,gt[3],gt[2]<<16|gt[1]>>>16],Et=this._C=[gt[2]<<16|gt[2]>>>16,gt[0]&4294901760|gt[1]&65535,gt[3]<<16|gt[3]>>>16,gt[1]&4294901760|gt[2]&65535,gt[0]<<16|gt[0]>>>16,gt[2]&4294901760|gt[3]&65535,gt[1]<<16|gt[1]>>>16,gt[3]&4294901760|gt[0]&65535];this._b=0;for(var wt=0;wt<4;wt++)ut.call(this);for(var wt=0;wt<8;wt++)Et[wt]^=ht[wt+4&7];if(dt){var Qt=dt.words,pt=Qt[0],mt=Qt[1],$t=(pt<<8|pt>>>24)&16711935|(pt<<24|pt>>>8)&4278255360,Tt=(mt<<8|mt>>>24)&16711935|(mt<<24|mt>>>8)&4278255360,Ut=$t>>>16|Tt&4294901760,Pt=Tt<<16|$t&65535;Et[0]^=$t,Et[1]^=Ut,Et[2]^=Tt,Et[3]^=Pt,Et[4]^=$t,Et[5]^=Ut,Et[6]^=Tt,Et[7]^=Pt;for(var wt=0;wt<4;wt++)ut.call(this)}},_doProcessBlock:function(gt,dt){var ht=this._X;ut.call(this),at[0]=ht[0]^ht[5]>>>16^ht[3]<<16,at[1]=ht[2]^ht[7]>>>16^ht[5]<<16,at[2]=ht[4]^ht[1]>>>16^ht[7]<<16,at[3]=ht[6]^ht[3]>>>16^ht[1]<<16;for(var Et=0;Et<4;Et++)at[Et]=(at[Et]<<8|at[Et]>>>24)&16711935|(at[Et]<<24|at[Et]>>>8)&4278255360,gt[dt+Et]^=at[Et]},blockSize:128/32,ivSize:64/32});function ut(){for(var gt=this._X,dt=this._C,ht=0;ht<8;ht++)ot[ht]=dt[ht];dt[0]=dt[0]+1295307597+this._b|0,dt[1]=dt[1]+3545052371+(dt[0]>>>0>>0?1:0)|0,dt[2]=dt[2]+886263092+(dt[1]>>>0>>0?1:0)|0,dt[3]=dt[3]+1295307597+(dt[2]>>>0>>0?1:0)|0,dt[4]=dt[4]+3545052371+(dt[3]>>>0>>0?1:0)|0,dt[5]=dt[5]+886263092+(dt[4]>>>0>>0?1:0)|0,dt[6]=dt[6]+1295307597+(dt[5]>>>0>>0?1:0)|0,dt[7]=dt[7]+3545052371+(dt[6]>>>0>>0?1:0)|0,this._b=dt[7]>>>0>>0?1:0;for(var ht=0;ht<8;ht++){var Et=gt[ht]+dt[ht],wt=Et&65535,Qt=Et>>>16,pt=((wt*wt>>>17)+wt*Qt>>>15)+Qt*Qt,mt=((Et&4294901760)*Et|0)+((Et&65535)*Et|0);st[ht]=pt^mt}gt[0]=st[0]+(st[7]<<16|st[7]>>>16)+(st[6]<<16|st[6]>>>16)|0,gt[1]=st[1]+(st[0]<<8|st[0]>>>24)+st[7]|0,gt[2]=st[2]+(st[1]<<16|st[1]>>>16)+(st[0]<<16|st[0]>>>16)|0,gt[3]=st[3]+(st[2]<<8|st[2]>>>24)+st[1]|0,gt[4]=st[4]+(st[3]<<16|st[3]>>>16)+(st[2]<<16|st[2]>>>16)|0,gt[5]=st[5]+(st[4]<<8|st[4]>>>24)+st[3]|0,gt[6]=st[6]+(st[5]<<16|st[5]>>>16)+(st[4]<<16|st[4]>>>16)|0,gt[7]=st[7]+(st[6]<<8|st[6]>>>24)+st[5]|0}rt.RabbitLegacy=it._createHelper(ct)}(),tt.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.BlockCipher,At=rt.algo;const at=16,ot=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],st=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var ct={pbox:[],sbox:[]};function ut(wt,Qt){let pt=Qt>>24&255,mt=Qt>>16&255,$t=Qt>>8&255,Tt=Qt&255,Ut=wt.sbox[0][pt]+wt.sbox[1][mt];return Ut=Ut^wt.sbox[2][$t],Ut=Ut+wt.sbox[3][Tt],Ut}function gt(wt,Qt,pt){let mt=Qt,$t=pt,Tt;for(let Ut=0;Ut1;--Ut)mt=mt^wt.pbox[Ut],$t=ut(wt,mt)^$t,Tt=mt,mt=$t,$t=Tt;return Tt=mt,mt=$t,$t=Tt,$t=$t^wt.pbox[1],mt=mt^wt.pbox[0],{left:mt,right:$t}}function ht(wt,Qt,pt){for(let Pt=0;Pt<4;Pt++){wt.sbox[Pt]=[];for(let Kt=0;Kt<256;Kt++)wt.sbox[Pt][Kt]=st[Pt][Kt]}let mt=0;for(let Pt=0;Pt=pt&&(mt=0);let $t=0,Tt=0,Ut=0;for(let Pt=0;Pt$<0?(Number($)>>>0).toString(16):Number($).toString(16),generateChecksum=$=>{const et=crc32$1.unsigned(buffer$2.Buffer.from($));return intToHex(et).padStart(8,"0")},byteArrayToWordArray=$=>{const et=[];let tt;for(tt=0;tt<$.length;tt+=1)et[tt/4|0]|=$[tt]<<24-8*tt;return crypto$2.lib.WordArray.create(et,$.length)},wordToByteArray=($,et)=>{const tt=[];return et>0&&tt.push($>>>24),et>1&&tt.push($>>>16&255),et>2&&tt.push($>>>8&255),et>3&&tt.push($&255),tt},wordArrayToByteArray=($,et)=>{$.hasOwnProperty("sigBytes")&&$.hasOwnProperty("words")&&(et=$.sigBytes,$=$.words);let tt=[],rt,nt=0;for(;et>0;)rt=wordToByteArray($[nt],Math.min(4,et)),et-=rt.length,tt=[...tt,rt],nt++;return[].concat.apply([],tt)},getAccountIdentifier=($,et="")=>{try{var tt=Principal$5.from($);const rt=crypto$2.algo.SHA224.create();rt.update(ACCOUNT_DOMAIN_SEPERATOR),rt.update(byteArrayToWordArray(tt.toUint8Array()));const nt=buffer$2.Buffer.from(SUB_ACCOUNT_ZERO);et&&nt.writeUInt32BE(et),rt.update(byteArrayToWordArray(nt));const it=rt.finalize(),At=wordArrayToByteArray(it,28);return generateChecksum(At)+it.toString()}catch(rt){return console.log(rt),!1}};var naclFast={exports:{}};(function($){(function(et){var tt=function(Dt){var qt,Ht=new Float64Array(16);if(Dt)for(qt=0;qt>24&255,Dt[qt+1]=Ht>>16&255,Dt[qt+2]=Ht>>8&255,Dt[qt+3]=Ht&255,Dt[qt+4]=Ct>>24&255,Dt[qt+5]=Ct>>16&255,Dt[qt+6]=Ct>>8&255,Dt[qt+7]=Ct&255}function Et(Dt,qt,Ht,Ct,Vt){var lr,hr=0;for(lr=0;lr>>8)-1}function wt(Dt,qt,Ht,Ct){return Et(Dt,qt,Ht,Ct,16)}function Qt(Dt,qt,Ht,Ct){return Et(Dt,qt,Ht,Ct,32)}function pt(Dt,qt,Ht,Ct){for(var Vt=Ct[0]&255|(Ct[1]&255)<<8|(Ct[2]&255)<<16|(Ct[3]&255)<<24,lr=Ht[0]&255|(Ht[1]&255)<<8|(Ht[2]&255)<<16|(Ht[3]&255)<<24,hr=Ht[4]&255|(Ht[5]&255)<<8|(Ht[6]&255)<<16|(Ht[7]&255)<<24,Cr=Ht[8]&255|(Ht[9]&255)<<8|(Ht[10]&255)<<16|(Ht[11]&255)<<24,br=Ht[12]&255|(Ht[13]&255)<<8|(Ht[14]&255)<<16|(Ht[15]&255)<<24,jr=Ct[4]&255|(Ct[5]&255)<<8|(Ct[6]&255)<<16|(Ct[7]&255)<<24,Gr=qt[0]&255|(qt[1]&255)<<8|(qt[2]&255)<<16|(qt[3]&255)<<24,In=qt[4]&255|(qt[5]&255)<<8|(qt[6]&255)<<16|(qt[7]&255)<<24,Or=qt[8]&255|(qt[9]&255)<<8|(qt[10]&255)<<16|(qt[11]&255)<<24,Xr=qt[12]&255|(qt[13]&255)<<8|(qt[14]&255)<<16|(qt[15]&255)<<24,Ur=Ct[8]&255|(Ct[9]&255)<<8|(Ct[10]&255)<<16|(Ct[11]&255)<<24,ln=Ht[16]&255|(Ht[17]&255)<<8|(Ht[18]&255)<<16|(Ht[19]&255)<<24,sn=Ht[20]&255|(Ht[21]&255)<<8|(Ht[22]&255)<<16|(Ht[23]&255)<<24,ir=Ht[24]&255|(Ht[25]&255)<<8|(Ht[26]&255)<<16|(Ht[27]&255)<<24,Rr=Ht[28]&255|(Ht[29]&255)<<8|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]=vr>>>16&255,Dt[39]=vr>>>24&255,Dt[40]=Sr>>>0&255,Dt[41]=Sr>>>8&255,Dt[42]=Sr>>>16&255,Dt[43]=Sr>>>24&255,Dt[44]=Dr>>>0&255,Dt[45]=Dr>>>8&255,Dt[46]=Dr>>>16&255,Dt[47]=Dr>>>24&255,Dt[48]=An>>>0&255,Dt[49]=An>>>8&255,Dt[50]=An>>>16&255,Dt[51]=An>>>24&255,Dt[52]=dn>>>0&255,Dt[53]=dn>>>8&255,Dt[54]=dn>>>16&255,Dt[55]=dn>>>24&255,Dt[56]=En>>>0&255,Dt[57]=En>>>8&255,Dt[58]=En>>>16&255,Dt[59]=En>>>24&255,Dt[60]=gn>>>0&255,Dt[61]=gn>>>8&255,Dt[62]=gn>>>16&255,Dt[63]=gn>>>24&255}function mt(Dt,qt,Ht,Ct){for(var Vt=Ct[0]&255|(Ct[1]&255)<<8|(Ct[2]&255)<<16|(Ct[3]&255)<<24,lr=Ht[0]&255|(Ht[1]&255)<<8|(Ht[2]&255)<<16|(Ht[3]&255)<<24,hr=Ht[4]&255|(Ht[5]&255)<<8|(Ht[6]&255)<<16|(Ht[7]&255)<<24,Cr=Ht[8]&255|(Ht[9]&255)<<8|(Ht[10]&255)<<16|(Ht[11]&255)<<24,br=Ht[12]&255|(Ht[13]&255)<<8|(Ht[14]&255)<<16|(Ht[15]&255)<<24,jr=Ct[4]&255|(Ct[5]&255)<<8|(Ct[6]&255)<<16|(Ct[7]&255)<<24,Gr=qt[0]&255|(qt[1]&255)<<8|(qt[2]&255)<<16|(qt[3]&255)<<24,In=qt[4]&255|(qt[5]&255)<<8|(qt[6]&255)<<16|(qt[7]&255)<<24,Or=qt[8]&255|(qt[9]&255)<<8|(qt[10]&255)<<16|(qt[11]&255)<<24,Xr=qt[12]&255|(qt[13]&255)<<8|(qt[14]&255)<<16|(qt[15]&255)<<24,Ur=Ct[8]&255|(Ct[9]&255)<<8|(Ct[10]&255)<<16|(Ct[11]&255)<<24,ln=Ht[16]&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r+Kr|0,pr^=ar<<7|ar>>>32-7,ar=pr+Hr|0,Ir^=ar<<9|ar>>>32-9,ar=Ir+pr|0,Kr^=ar<<13|ar>>>32-13,ar=Kr+Ir|0,Hr^=ar<<18|ar>>>32-18,ar=Sr+vr|0,Dr^=ar<<7|ar>>>32-7,ar=Dr+Sr|0,Fr^=ar<<9|ar>>>32-9,ar=Fr+Dr|0,vr^=ar<<13|ar>>>32-13,ar=vr+Fr|0,Sr^=ar<<18|ar>>>32-18,ar=gn+En|0,An^=ar<<7|ar>>>32-7,ar=An+gn|0,dn^=ar<<9|ar>>>32-9,ar=dn+An|0,En^=ar<<13|ar>>>32-13,ar=En+dn|0,gn^=ar<<18|ar>>>32-18;Dt[0]=$r>>>0&255,Dt[1]=$r>>>8&255,Dt[2]=$r>>>16&255,Dt[3]=$r>>>24&255,Dt[4]=Hr>>>0&255,Dt[5]=Hr>>>8&255,Dt[6]=Hr>>>16&255,Dt[7]=Hr>>>24&255,Dt[8]=Sr>>>0&255,Dt[9]=Sr>>>8&255,Dt[10]=Sr>>>16&255,Dt[11]=Sr>>>24&255,Dt[12]=gn>>>0&255,Dt[13]=gn>>>8&255,Dt[14]=gn>>>16&255,Dt[15]=gn>>>24&255,Dt[16]=pr>>>0&255,Dt[17]=pr>>>8&255,Dt[18]=pr>>>16&255,Dt[19]=pr>>>24&255,Dt[20]=Ir>>>0&255,Dt[21]=Ir>>>8&255,Dt[22]=Ir>>>16&255,Dt[23]=Ir>>>24&255,Dt[24]=Fr>>>0&255,Dt[25]=Fr>>>8&255,Dt[26]=Fr>>>16&255,Dt[27]=Fr>>>24&255,Dt[28]=vr>>>0&255,Dt[29]=vr>>>8&255,Dt[30]=vr>>>16&255,Dt[31]=vr>>>24&255}function $t(Dt,qt,Ht,Ct){pt(Dt,qt,Ht,Ct)}function Tt(Dt,qt,Ht,Ct){mt(Dt,qt,Ht,Ct)}var Ut=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function Pt(Dt,qt,Ht,Ct,Vt,lr,hr){var Cr=new Uint8Array(16),br=new Uint8Array(64),jr,Gr;for(Gr=0;Gr<16;Gr++)Cr[Gr]=0;for(Gr=0;Gr<8;Gr++)Cr[Gr]=lr[Gr];for(;Vt>=64;){for($t(br,Cr,hr,Ut),Gr=0;Gr<64;Gr++)Dt[qt+Gr]=Ht[Ct+Gr]^br[Gr];for(jr=1,Gr=8;Gr<16;Gr++)jr=jr+(Cr[Gr]&255)|0,Cr[Gr]=jr&255,jr>>>=8;Vt-=64,qt+=64,Ct+=64}if(Vt>0)for($t(br,Cr,hr,Ut),Gr=0;Gr=64;){for($t(hr,lr,Vt,Ut),br=0;br<64;br++)Dt[qt+br]=hr[br];for(Cr=1,br=8;br<16;br++)Cr=Cr+(lr[br]&255)|0,lr[br]=Cr&255,Cr>>>=8;Ht-=64,qt+=64}if(Ht>0)for($t(hr,lr,Vt,Ut),br=0;br>>13|Ht<<3)&8191,Ct=Dt[4]&255|(Dt[5]&255)<<8,this.r[2]=(Ht>>>10|Ct<<6)&7939,Vt=Dt[6]&255|(Dt[7]&255)<<8,this.r[3]=(Ct>>>7|Vt<<9)&8191,lr=Dt[8]&255|(Dt[9]&255)<<8,this.r[4]=(Vt>>>4|lr<<12)&255,this.r[5]=lr>>>1&8190,hr=Dt[10]&255|(Dt[11]&255)<<8,this.r[6]=(lr>>>14|hr<<2)&8191,Cr=Dt[12]&255|(Dt[13]&255)<<8,this.r[7]=(hr>>>11|Cr<<5)&8065,br=Dt[14]&255|(Dt[15]&255)<<8,this.r[8]=(Cr>>>8|br<<8)&8191,this.r[9]=br>>>5&127,this.pad[0]=Dt[16]&255|(Dt[17]&255)<<8,this.pad[1]=Dt[18]&255|(Dt[19]&255)<<8,this.pad[2]=Dt[20]&255|(Dt[21]&255)<<8,this.pad[3]=Dt[22]&255|(Dt[23]&255)<<8,this.pad[4]=Dt[24]&255|(Dt[25]&255)<<8,this.pad[5]=Dt[26]&255|(Dt[27]&255)<<8,this.pad[6]=Dt[28]&255|(Dt[29]&255)<<8,this.pad[7]=Dt[30]&255|(Dt[31]&255)<<8};Mt.prototype.blocks=function(Dt,qt,Ht){for(var Ct=this.fin?0:2048,Vt,lr,hr,Cr,br,jr,Gr,In,Or,Xr,Ur,ln,sn,ir,Rr,Mr,$r,Jr,Nr,Vr=this.h[0],Kr=this.h[1],Hr=this.h[2],pr=this.h[3],Ir=this.h[4],Fr=this.h[5],vr=this.h[6],Sr=this.h[7],Dr=this.h[8],An=this.h[9],dn=this.r[0],En=this.r[1],gn=this.r[2],ar=this.r[3],hn=this.r[4],Qn=this.r[5],Sn=this.r[6],pn=this.r[7],mn=this.r[8],vn=this.r[9];Ht>=16;)Vt=Dt[qt+0]&255|(Dt[qt+1]&255)<<8,Vr+=Vt&8191,lr=Dt[qt+2]&255|(Dt[qt+3]&255)<<8,Kr+=(Vt>>>13|lr<<3)&8191,hr=Dt[qt+4]&255|(Dt[qt+5]&255)<<8,Hr+=(lr>>>10|hr<<6)&8191,Cr=Dt[qt+6]&255|(Dt[qt+7]&255)<<8,pr+=(hr>>>7|Cr<<9)&8191,br=Dt[qt+8]&255|(Dt[qt+9]&255)<<8,Ir+=(Cr>>>4|br<<12)&8191,Fr+=br>>>1&8191,jr=Dt[qt+10]&255|(Dt[qt+11]&255)<<8,vr+=(br>>>14|jr<<2)&8191,Gr=Dt[qt+12]&255|(Dt[qt+13]&255)<<8,Sr+=(jr>>>11|Gr<<5)&8191,In=Dt[qt+14]&255|(Dt[qt+15]&255)<<8,Dr+=(Gr>>>8|In<<8)&8191,An+=In>>>5|Ct,Or=0,Xr=Or,Xr+=Vr*dn,Xr+=Kr*(5*vn),Xr+=Hr*(5*mn),Xr+=pr*(5*pn),Xr+=Ir*(5*Sn),Or=Xr>>>13,Xr&=8191,Xr+=Fr*(5*Qn),Xr+=vr*(5*hn),Xr+=Sr*(5*ar),Xr+=Dr*(5*gn),Xr+=An*(5*En),Or+=Xr>>>13,Xr&=8191,Ur=Or,Ur+=Vr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r+=Vr*pn,$r+=Kr*Sn,$r+=Hr*Qn,$r+=pr*hn,$r+=Ir*ar,Or=$r>>>13,$r&=8191,$r+=Fr*gn,$r+=vr*En,$r+=Sr*dn,$r+=Dr*(5*vn),$r+=An*(5*mn),Or+=$r>>>13,$r&=8191,Jr=Or,Jr+=Vr*mn,Jr+=Kr*pn,Jr+=Hr*Sn,Jr+=pr*Qn,Jr+=Ir*hn,Or=Jr>>>13,Jr&=8191,Jr+=Fr*ar,Jr+=vr*gn,Jr+=Sr*En,Jr+=Dr*dn,Jr+=An*(5*vn),Or+=Jr>>>13,Jr&=8191,Nr=Or,Nr+=Vr*vn,Nr+=Kr*mn,Nr+=Hr*pn,Nr+=pr*Sn,Nr+=Ir*Qn,Or=Nr>>>13,Nr&=8191,Nr+=Fr*hn,Nr+=vr*ar,Nr+=Sr*gn,Nr+=Dr*En,Nr+=An*dn,Or+=Nr>>>13,Nr&=8191,Or=(Or<<2)+Or|0,Or=Or+Xr|0,Xr=Or&8191,Or=Or>>>13,Ur+=Or,Vr=Xr,Kr=Ur,Hr=ln,pr=sn,Ir=ir,Fr=Rr,vr=Mr,Sr=$r,Dr=Jr,An=Nr,qt+=16,Ht-=16;this.h[0]=Vr,this.h[1]=Kr,this.h[2]=Hr,this.h[3]=pr,this.h[4]=Ir,this.h[5]=Fr,this.h[6]=vr,this.h[7]=Sr,this.h[8]=Dr,this.h[9]=An},Mt.prototype.finish=function(Dt,qt){var Ht=new Uint16Array(10),Ct,Vt,lr,hr;if(this.leftover){for(hr=this.leftover,this.buffer[hr++]=1;hr<16;hr++)this.buffer[hr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(Ct=this.h[1]>>>13,this.h[1]&=8191,hr=2;hr<10;hr++)this.h[hr]+=Ct,Ct=this.h[hr]>>>13,this.h[hr]&=8191;for(this.h[0]+=Ct*5,Ct=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=Ct,Ct=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=Ct,Ht[0]=this.h[0]+5,Ct=Ht[0]>>>13,Ht[0]&=8191,hr=1;hr<10;hr++)Ht[hr]=this.h[hr]+Ct,Ct=Ht[hr]>>>13,Ht[hr]&=8191;for(Ht[9]-=8192,Vt=(Ct^1)-1,hr=0;hr<10;hr++)Ht[hr]&=Vt;for(Vt=~Vt,hr=0;hr<10;hr++)this.h[hr]=this.h[hr]&Vt|Ht[hr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,lr=this.h[0]+this.pad[0],this.h[0]=lr&65535,hr=1;hr<8;hr++)lr=(this.h[hr]+this.pad[hr]|0)+(lr>>>16)|0,this.h[hr]=lr&65535;Dt[qt+0]=this.h[0]>>>0&255,Dt[qt+1]=this.h[0]>>>8&255,Dt[qt+2]=this.h[1]>>>0&255,Dt[qt+3]=this.h[1]>>>8&255,Dt[qt+4]=this.h[2]>>>0&255,Dt[qt+5]=this.h[2]>>>8&255,Dt[qt+6]=this.h[3]>>>0&255,Dt[qt+7]=this.h[3]>>>8&255,Dt[qt+8]=this.h[4]>>>0&255,Dt[qt+9]=this.h[4]>>>8&255,Dt[qt+10]=this.h[5]>>>0&255,Dt[qt+11]=this.h[5]>>>8&255,Dt[qt+12]=this.h[6]>>>0&255,Dt[qt+13]=this.h[6]>>>8&255,Dt[qt+14]=this.h[7]>>>0&255,Dt[qt+15]=this.h[7]>>>8&255},Mt.prototype.update=function(Dt,qt,Ht){var Ct,Vt;if(this.leftover){for(Vt=16-this.leftover,Vt>Ht&&(Vt=Ht),Ct=0;Ct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*Kn,gn+=Ct*zn,lr+=38*Jr,hr+=38*Nr,Cr+=38*Vr,br+=38*Kr,jr+=38*Hr,Gr+=38*pr,In+=38*Ir,Or+=38*Fr,Xr+=38*vr,Ur+=38*Sr,ln+=38*Dr,sn+=38*An,ir+=38*dn,Rr+=38*En,Mr+=38*gn,Vt=1,Ct=lr+Vt+65535,Vt=Math.floor(Ct/65536),lr=Ct-Vt*65536,Ct=hr+Vt+65535,Vt=Math.floor(Ct/65536),hr=Ct-Vt*65536,Ct=Cr+Vt+65535,Vt=Math.floor(Ct/65536),Cr=Ct-Vt*65536,Ct=br+Vt+65535,Vt=Math.floor(Ct/65536),br=Ct-Vt*65536,Ct=jr+Vt+65535,Vt=Math.floor(Ct/65536),jr=Ct-Vt*65536,Ct=Gr+Vt+65535,Vt=Math.floor(Ct/65536),Gr=Ct-Vt*65536,Ct=In+Vt+65535,Vt=Math.floor(Ct/65536),In=Ct-Vt*65536,Ct=Or+Vt+65535,Vt=Math.floor(Ct/65536),Or=Ct-Vt*65536,Ct=Xr+Vt+65535,Vt=Math.floor(Ct/65536),Xr=Ct-Vt*65536,Ct=Ur+Vt+65535,Vt=Math.floor(Ct/65536),Ur=Ct-Vt*65536,Ct=ln+Vt+65535,Vt=Math.floor(Ct/65536),ln=Ct-Vt*65536,Ct=sn+Vt+65535,Vt=Math.floor(Ct/65536),sn=Ct-Vt*65536,Ct=ir+Vt+65535,Vt=Math.floor(Ct/65536),ir=Ct-Vt*65536,Ct=Rr+Vt+65535,Vt=Math.floor(Ct/65536),Rr=Ct-Vt*65536,Ct=Mr+Vt+65535,Vt=Math.floor(Ct/65536),Mr=Ct-Vt*65536,Ct=$r+Vt+65535,Vt=Math.floor(Ct/65536),$r=Ct-Vt*65536,lr+=Vt-1+37*(Vt-1),Vt=1,Ct=lr+Vt+65535,Vt=Math.floor(Ct/65536),lr=Ct-Vt*65536,Ct=hr+Vt+65535,Vt=Math.floor(Ct/65536),hr=Ct-Vt*65536,Ct=Cr+Vt+65535,Vt=Math.floor(Ct/65536),Cr=Ct-Vt*65536,Ct=br+Vt+65535,Vt=Math.floor(Ct/65536),br=Ct-Vt*65536,Ct=jr+Vt+65535,Vt=Math.floor(Ct/65536),jr=Ct-Vt*65536,Ct=Gr+Vt+65535,Vt=Math.floor(Ct/65536),Gr=Ct-Vt*65536,Ct=In+Vt+65535,Vt=Math.floor(Ct/65536),In=Ct-Vt*65536,Ct=Or+Vt+65535,Vt=Math.floor(Ct/65536),Or=Ct-Vt*65536,Ct=Xr+Vt+65535,Vt=Math.floor(Ct/65536),Xr=Ct-Vt*65536,Ct=Ur+Vt+65535,Vt=Math.floor(Ct/65536),Ur=Ct-Vt*65536,Ct=ln+Vt+65535,Vt=Math.floor(Ct/65536),ln=Ct-Vt*65536,Ct=sn+Vt+65535,Vt=Math.floor(Ct/65536),sn=Ct-Vt*65536,Ct=ir+Vt+65535,Vt=Math.floor(Ct/65536),ir=Ct-Vt*65536,Ct=Rr+Vt+65535,Vt=Math.floor(Ct/65536),Rr=Ct-Vt*65536,Ct=Mr+Vt+65535,Vt=Math.floor(Ct/65536),Mr=Ct-Vt*65536,Ct=$r+Vt+65535,Vt=Math.floor(Ct/65536),$r=Ct-Vt*65536,lr+=Vt-1+37*(Vt-1),Dt[0]=lr,Dt[1]=hr,Dt[2]=Cr,Dt[3]=br,Dt[4]=jr,Dt[5]=Gr,Dt[6]=In,Dt[7]=Or,Dt[8]=Xr,Dt[9]=Ur,Dt[10]=ln,Dt[11]=sn,Dt[12]=ir,Dt[13]=Rr,Dt[14]=Mr,Dt[15]=$r}function _r(Dt,qt){Qr(Dt,qt,qt)}function qr(Dt,qt){var Ht=tt(),Ct;for(Ct=0;Ct<16;Ct++)Ht[Ct]=qt[Ct];for(Ct=253;Ct>=0;Ct--)_r(Ht,Ht),Ct!==2&&Ct!==4&&Qr(Ht,Ht,qt);for(Ct=0;Ct<16;Ct++)Dt[Ct]=Ht[Ct]}function yr(Dt,qt){var Ht=tt(),Ct;for(Ct=0;Ct<16;Ct++)Ht[Ct]=qt[Ct];for(Ct=250;Ct>=0;Ct--)_r(Ht,Ht),Ct!==1&&Qr(Ht,Ht,qt);for(Ct=0;Ct<16;Ct++)Dt[Ct]=Ht[Ct]}function kr(Dt,qt,Ht){var Ct=new Uint8Array(32),Vt=new Float64Array(80),lr,hr,Cr=tt(),br=tt(),jr=tt(),Gr=tt(),In=tt(),Or=tt();for(hr=0;hr<31;hr++)Ct[hr]=qt[hr];for(Ct[31]=qt[31]&127|64,Ct[0]&=248,Ar(Vt,Ht),hr=0;hr<16;hr++)br[hr]=Vt[hr],Gr[hr]=Cr[hr]=jr[hr]=0;for(Cr[0]=Gr[0]=1,hr=254;hr>=0;--hr)lr=Ct[hr>>>3]>>>(hr&7)&1,Xt(Cr,br,lr),Xt(jr,Gr,lr),cr(In,Cr,jr),Rt(Cr,Cr,jr),cr(jr,br,Gr),Rt(br,br,Gr),_r(Gr,In),_r(Or,Cr),Qr(Cr,jr,Cr),Qr(jr,br,In),cr(In,Cr,jr),Rt(Cr,Cr,jr),_r(br,Cr),Rt(jr,Gr,Or),Qr(Cr,jr,ot),cr(Cr,Cr,Gr),Qr(jr,jr,Cr),Qr(Cr,Gr,Or),Qr(Gr,br,Vt),_r(br,In),Xt(Cr,br,lr),Xt(jr,Gr,lr);for(hr=0;hr<16;hr++)Vt[hr+16]=Cr[hr],Vt[hr+32]=jr[hr],Vt[hr+48]=br[hr],Vt[hr+64]=Gr[hr];var Xr=Vt.subarray(32),Ur=Vt.subarray(16);return qr(Xr,Xr),Qr(Ur,Ur,Xr),Ot(Dt,Ur),0}function jt(Dt,qt){return kr(Dt,qt,it)}function Zt(Dt,qt){return rt(qt,32),jt(Dt,qt)}function rr(Dt,qt,Ht){var Ct=new Uint8Array(32);return kr(Ct,Ht,qt),Tt(Dt,nt,Ct,Ut)}var sr=Nt,ur=Gt;function fr(Dt,qt,Ht,Ct,Vt,lr){var hr=new Uint8Array(32);return rr(hr,Vt,lr),sr(Dt,qt,Ht,Ct,hr)}function It(Dt,qt,Ht,Ct,Vt,lr){var hr=new Uint8Array(32);return rr(hr,Vt,lr),ur(Dt,qt,Ht,Ct,hr)}var lt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ft(Dt,qt,Ht,Ct){for(var Vt=new Int32Array(16),lr=new Int32Array(16),hr,Cr,br,jr,Gr,In,Or,Xr,Ur,ln,sn,ir,Rr,Mr,$r,Jr,Nr,Vr,Kr,Hr,pr,Ir,Fr,vr,Sr,Dr,An=Dt[0],dn=Dt[1],En=Dt[2],gn=Dt[3],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,Ir=Mn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[4],Ir=qt[4],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[4]=ar=Sr&65535|Dr<<16,qt[4]=Mn=Fr&65535|vr<<16,pr=hn,Ir=Pn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[5],Ir=qt[5],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[5]=hn=Sr&65535|Dr<<16,qt[5]=Pn=Fr&65535|vr<<16,pr=Qn,Ir=qn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[6],Ir=qt[6],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[6]=Qn=Sr&65535|Dr<<16,qt[6]=qn=Fr&65535|vr<<16,pr=Sn,Ir=Ln,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[7],Ir=qt[7],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[7]=Sn=Sr&65535|Dr<<16,qt[7]=Ln=Fr&65535|vr<<16,Jn+=128,Ct-=128}return Ct}function xt(Dt,qt,Ht){var Ct=new Int32Array(8),Vt=new Int32Array(8),lr=new Uint8Array(256),hr,Cr=Ht;for(Ct[0]=1779033703,Ct[1]=3144134277,Ct[2]=1013904242,Ct[3]=2773480762,Ct[4]=1359893119,Ct[5]=2600822924,Ct[6]=528734635,Ct[7]=1541459225,Vt[0]=4089235720,Vt[1]=2227873595,Vt[2]=4271175723,Vt[3]=1595750129,Vt[4]=2917565137,Vt[5]=725511199,Vt[6]=4215389547,Vt[7]=327033209,ft(Ct,Vt,qt,Ht),Ht%=128,hr=0;hr=0;--Vt)Ct=Ht[Vt/8|0]>>(Vt&7)&1,Lt(Dt,qt,Ct),_t(qt,Dt),_t(Dt,Dt),Lt(Dt,qt,Ct)}function mr(Dt,qt){var Ht=[tt(),tt(),tt(),tt()];Jt(Ht[0],ut),Jt(Ht[1],gt),Jt(Ht[2],at),Qr(Ht[3],ut,gt),Er(Dt,Ht,qt)}function wr(Dt,qt,Ht){var Ct=new Uint8Array(64),Vt=[tt(),tt(),tt(),tt()],lr;for(Ht||rt(qt,32),xt(Ct,qt,32),Ct[0]&=248,Ct[31]&=127,Ct[31]|=64,mr(Vt,Ct),er(Dt,Vt),lr=0;lr<32;lr++)qt[lr+32]=Dt[lr];return 0}var Yr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Ft(Dt,qt){var Ht,Ct,Vt,lr;for(Ct=63;Ct>=32;--Ct){for(Ht=0,Vt=Ct-32,lr=Ct-12;Vt>4)*Yr[Vt],Ht=qt[Vt]>>8,qt[Vt]&=255;for(Vt=0;Vt<32;Vt++)qt[Vt]-=Ht*Yr[Vt];for(Ct=0;Ct<32;Ct++)qt[Ct+1]+=qt[Ct]>>8,Dt[Ct]=qt[Ct]&255}function yt(Dt){var qt=new Float64Array(64),Ht;for(Ht=0;Ht<64;Ht++)qt[Ht]=Dt[Ht];for(Ht=0;Ht<64;Ht++)Dt[Ht]=0;Ft(Dt,qt)}function St(Dt,qt,Ht,Ct){var Vt=new Uint8Array(64),lr=new Uint8Array(64),hr=new Uint8Array(64),Cr,br,jr=new Float64Array(64),Gr=[tt(),tt(),tt(),tt()];xt(Vt,Ct,32),Vt[0]&=248,Vt[31]&=127,Vt[31]|=64;var In=Ht+64;for(Cr=0;Cr>7&&Rt(Dt[0],At,Dt[0]),Qr(Dt[3],Dt[0],Dt[1]),0)}function or(Dt,qt,Ht,Ct){var Vt,lr=new Uint8Array(32),hr=new Uint8Array(64),Cr=[tt(),tt(),tt(),tt()],br=[tt(),tt(),tt(),tt()];if(Ht<64||Wt(br,Ct))return-1;for(Vt=0;Vt=0},et.sign.keyPair=function(){var Dt=new Uint8Array(yn),qt=new Uint8Array(Dn);return wr(Dt,qt),{publicKey:Dt,secretKey:qt}},et.sign.keyPair.fromSecretKey=function(Dt){if(xn(Dt),Dt.length!==Dn)throw new Error("bad secret key size");for(var qt=new Uint8Array(yn),Ht=0;HtparseInt(tt,16))).buffer}function toHexString$5($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}const bufEquals$1=($,et)=>{if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{if($<=127)return 1;if($<=255)return 2;if($<=65535)return 3;if($<=16777215)return 4;throw new Error("Length too long (> 4 bytes)")},encodeLen$1=($,et,tt)=>{if(tt<=127)return $[et]=tt,1;if(tt<=255)return $[et]=129,$[et+1]=tt,2;if(tt<=65535)return $[et]=130,$[et+1]=tt>>8,$[et+2]=tt,3;if(tt<=16777215)return $[et]=131,$[et+1]=tt>>16,$[et+2]=tt>>8,$[et+3]=tt,4;throw new Error("Length too long (> 4 bytes)")},decodeLenBytes$1=($,et)=>{if($[et]<128)return 1;if($[et]===128)throw new Error("Invalid length 0");if($[et]===129)return 2;if($[et]===130)return 3;if($[et]===131)return 4;throw new Error("Length too long (> 4 bytes)")},decodeLen$1=($,et)=>{const tt=decodeLenBytes$1($,et);if(tt===1)return $[et];if(tt===2)return $[et+1];if(tt===3)return($[et+1]<<8)+$[et+2];if(tt===4)return($[et+1]<<16)+($[et+2]<<8)+$[et+3];throw new Error("Length too long (> 4 bytes)")};Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);const ED25519_OID$1=Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);function wrapDER$1($,et){const tt=2+encodeLenBytes$1($.byteLength+1),rt=et.byteLength+tt+$.byteLength;let nt=0;const it=new Uint8Array(1+encodeLenBytes$1(rt)+rt);return it[nt++]=48,nt+=encodeLen$1(it,nt,rt),it.set(et,nt),nt+=et.byteLength,it[nt++]=3,nt+=encodeLen$1(it,nt,$.byteLength+1),it[nt++]=0,it.set(new Uint8Array($),nt),it}const unwrapDER$1=($,et)=>{let tt=0;const rt=(at,ot)=>{if(nt[tt++]!==at)throw new Error("Expected: "+ot)},nt=new Uint8Array($);if(rt(48,"sequence"),tt+=decodeLenBytes$1(nt,tt),!bufEquals$1(nt.slice(tt,tt+et.byteLength),et))throw new Error("Not the expected OID.");tt+=et.byteLength,rt(3,"bit string");const it=decodeLen$1(nt,tt)-1;tt+=decodeLenBytes$1(nt,tt),rt(0,"0 padding");const At=nt.slice(tt);if(it!==At.length)throw new Error(`DER payload mismatch: Expected length ${it} actual length ${At.length}`);return At};let Ed25519PublicKey$1=class gA{constructor(et){this.rawKey=et,this.derKey=gA.derEncode(et)}static from(et){return this.fromDer(et.toDer())}static fromRaw(et){return new gA(et)}static fromDer(et){return new gA(this.derDecode(et))}static derEncode(et){return wrapDER$1(et,ED25519_OID$1).buffer}static derDecode(et){const tt=unwrapDER$1(et,ED25519_OID$1);if(tt.length!==this.RAW_KEY_LENGTH)throw new Error("An Ed25519 public key must be exactly 32bytes long");return tt}toDer(){return this.derKey}toRaw(){return this.rawKey}};Ed25519PublicKey$1.RAW_KEY_LENGTH=32;let Ed25519KeyIdentity$1=class hA extends SignIdentity$2{constructor(et,tt){super(),this._privateKey=tt,this._publicKey=Ed25519PublicKey$1.from(et)}static generate(et){if(et&&et.length!==32)throw new Error("Ed25519 Seed needs to be 32 bytes long.");const{publicKey:tt,secretKey:rt}=et===void 0?naclFastExports.sign.keyPair():naclFastExports.sign.keyPair.fromSeed(et);return new this(Ed25519PublicKey$1.fromRaw(tt),rt)}static fromParsedJson(et){const[tt,rt]=et;return new hA(Ed25519PublicKey$1.fromDer(fromHexString$5(tt)),fromHexString$5(rt))}static fromJSON(et){const tt=JSON.parse(et);if(Array.isArray(tt)){if(typeof tt[0]=="string"&&typeof tt[1]=="string")return this.fromParsedJson([tt[0],tt[1]]);throw new Error("Deserialization error: JSON must have at least 2 items.")}throw new Error(`Deserialization error: Invalid JSON type for string: ${JSON.stringify(et)}`)}static fromKeyPair(et,tt){return new hA(Ed25519PublicKey$1.fromRaw(et),tt)}static fromSecretKey(et){const tt=naclFastExports.sign.keyPair.fromSecretKey(new Uint8Array(et));return hA.fromKeyPair(tt.publicKey,tt.secretKey)}toJSON(){return[toHexString$5(this._publicKey.toDer()),toHexString$5(this._privateKey)]}getKeyPair(){return{secretKey:this._privateKey,publicKey:this._publicKey}}getPublicKey(){return this._publicKey}async sign(et){const tt=new Uint8Array(et);return naclFastExports.sign.detached(tt,new Uint8Array(this._privateKey)).buffer}};var elliptic={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$m={},bn={exports:{}};bn.exports;(function($){(function(et,tt){function rt(Mt,Bt){if(!Mt)throw new Error(Bt||"Assertion failed")}function nt(Mt,Bt){Mt.super_=Bt;var vt=function(){};vt.prototype=Bt.prototype,Mt.prototype=new vt,Mt.prototype.constructor=Mt}function it(Mt,Bt,vt){if(it.isBN(Mt))return Mt;this.negative=0,this.words=null,this.length=0,this.red=null,Mt!==null&&((Bt==="le"||Bt==="be")&&(vt=Bt,Bt=10),this._init(Mt||0,Bt||10,vt||"be"))}typeof et=="object"?et.exports=it:tt.BN=it,it.BN=it,it.wordSize=26;var At;try{typeof window<"u"&&typeof window.Buffer<"u"?At=window.Buffer:At=require$$0$1.Buffer}catch{}it.isBN=function(Bt){return Bt instanceof it?!0:Bt!==null&&typeof Bt=="object"&&Bt.constructor.wordSize===it.wordSize&&Array.isArray(Bt.words)},it.max=function(Bt,vt){return Bt.cmp(vt)>0?Bt:vt},it.min=function(Bt,vt){return Bt.cmp(vt)<0?Bt:vt},it.prototype._init=function(Bt,vt,Nt){if(typeof Bt=="number")return this._initNumber(Bt,vt,Nt);if(typeof Bt=="object")return this._initArray(Bt,vt,Nt);vt==="hex"&&(vt=16),rt(vt===(vt|0)&&vt>=2&&vt<=36),Bt=Bt.toString().replace(/\s+/g,"");var Gt=0;Bt[0]==="-"&&(Gt++,this.negative=1),Gt=0;Gt-=3)nr=Bt[Gt]|Bt[Gt-1]<<8|Bt[Gt-2]<<16,this.words[Jt]|=nr<>>26-Xt&67108863,Xt+=24,Xt>=26&&(Xt-=26,Jt++);else if(Nt==="le")for(Gt=0,Jt=0;Gt>>26-Xt&67108863,Xt+=24,Xt>=26&&(Xt-=26,Jt++);return this.strip()};function at(Mt,Bt){var vt=Mt.charCodeAt(Bt);return vt>=65&&vt<=70?vt-55:vt>=97&&vt<=102?vt-87:vt-48&15}function ot(Mt,Bt,vt){var Nt=at(Mt,vt);return vt-1>=Bt&&(Nt|=at(Mt,vt-1)<<4),Nt}it.prototype._parseHex=function(Bt,vt,Nt){this.length=Math.ceil((Bt.length-vt)/6),this.words=new Array(this.length);for(var Gt=0;Gt=vt;Gt-=2)Xt=ot(Bt,vt,Gt)<=18?(Jt-=18,nr+=1,this.words[nr]|=Xt>>>26):Jt+=8;else{var Ot=Bt.length-vt;for(Gt=Ot%2===0?vt+1:vt;Gt=18?(Jt-=18,nr+=1,this.words[nr]|=Xt>>>26):Jt+=8}this.strip()};function st(Mt,Bt,vt,Nt){for(var Gt=0,Jt=Math.min(Mt.length,vt),nr=Bt;nr=49?Gt+=Xt-49+10:Xt>=17?Gt+=Xt-17+10:Gt+=Xt}return Gt}it.prototype._parseBase=function(Bt,vt,Nt){this.words=[0],this.length=1;for(var Gt=0,Jt=1;Jt<=67108863;Jt*=vt)Gt++;Gt--,Jt=Jt/vt|0;for(var nr=Bt.length-Nt,Xt=nr%Gt,Ot=Math.min(nr,nr-Xt)+Nt,bt=0,kt=Nt;kt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},it.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},it.prototype.inspect=function(){return(this.red?""};var ct=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ut=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];it.prototype.toString=function(Bt,vt){Bt=Bt||10,vt=vt|0||1;var Nt;if(Bt===16||Bt==="hex"){Nt="";for(var Gt=0,Jt=0,nr=0;nr>>24-Gt&16777215,Jt!==0||nr!==this.length-1?Nt=ct[6-Ot.length]+Ot+Nt:Nt=Ot+Nt,Gt+=2,Gt>=26&&(Gt-=26,nr--)}for(Jt!==0&&(Nt=Jt.toString(16)+Nt);Nt.length%vt!==0;)Nt="0"+Nt;return this.negative!==0&&(Nt="-"+Nt),Nt}if(Bt===(Bt|0)&&Bt>=2&&Bt<=36){var bt=ut[Bt],kt=gt[Bt];Nt="";var Ar=this.clone();for(Ar.negative=0;!Ar.isZero();){var cr=Ar.modn(kt).toString(Bt);Ar=Ar.idivn(kt),Ar.isZero()?Nt=cr+Nt:Nt=ct[bt-cr.length]+cr+Nt}for(this.isZero()&&(Nt="0"+Nt);Nt.length%vt!==0;)Nt="0"+Nt;return this.negative!==0&&(Nt="-"+Nt),Nt}rt(!1,"Base should be between 2 and 36")},it.prototype.toNumber=function(){var Bt=this.words[0];return this.length===2?Bt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Bt+=4503599627370496+this.words[1]*67108864:this.length>2&&rt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Bt:Bt},it.prototype.toJSON=function(){return this.toString(16)},it.prototype.toBuffer=function(Bt,vt){return rt(typeof At<"u"),this.toArrayLike(At,Bt,vt)},it.prototype.toArray=function(Bt,vt){return this.toArrayLike(Array,Bt,vt)},it.prototype.toArrayLike=function(Bt,vt,Nt){var Gt=this.byteLength(),Jt=Nt||Math.max(1,Gt);rt(Gt<=Jt,"byte array longer than desired length"),rt(Jt>0,"Requested array length <= 0"),this.strip();var nr=vt==="le",Xt=new Bt(Jt),Ot,bt,kt=this.clone();if(nr){for(bt=0;!kt.isZero();bt++)Ot=kt.andln(255),kt.iushrn(8),Xt[bt]=Ot;for(;bt=4096&&(Nt+=13,vt>>>=13),vt>=64&&(Nt+=7,vt>>>=7),vt>=8&&(Nt+=4,vt>>>=4),vt>=2&&(Nt+=2,vt>>>=2),Nt+vt},it.prototype._zeroBits=function(Bt){if(Bt===0)return 26;var vt=Bt,Nt=0;return vt&8191||(Nt+=13,vt>>>=13),vt&127||(Nt+=7,vt>>>=7),vt&15||(Nt+=4,vt>>>=4),vt&3||(Nt+=2,vt>>>=2),vt&1||Nt++,Nt},it.prototype.bitLength=function(){var Bt=this.words[this.length-1],vt=this._countBits(Bt);return(this.length-1)*26+vt};function dt(Mt){for(var Bt=new Array(Mt.bitLength()),vt=0;vt>>Gt}return Bt}it.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Bt=0,vt=0;vtBt.length?this.clone().ior(Bt):Bt.clone().ior(this)},it.prototype.uor=function(Bt){return this.length>Bt.length?this.clone().iuor(Bt):Bt.clone().iuor(this)},it.prototype.iuand=function(Bt){var vt;this.length>Bt.length?vt=Bt:vt=this;for(var Nt=0;NtBt.length?this.clone().iand(Bt):Bt.clone().iand(this)},it.prototype.uand=function(Bt){return this.length>Bt.length?this.clone().iuand(Bt):Bt.clone().iuand(this)},it.prototype.iuxor=function(Bt){var vt,Nt;this.length>Bt.length?(vt=this,Nt=Bt):(vt=Bt,Nt=this);for(var Gt=0;GtBt.length?this.clone().ixor(Bt):Bt.clone().ixor(this)},it.prototype.uxor=function(Bt){return this.length>Bt.length?this.clone().iuxor(Bt):Bt.clone().iuxor(this)},it.prototype.inotn=function(Bt){rt(typeof Bt=="number"&&Bt>=0);var vt=Math.ceil(Bt/26)|0,Nt=Bt%26;this._expand(vt),Nt>0&&vt--;for(var Gt=0;Gt0&&(this.words[Gt]=~this.words[Gt]&67108863>>26-Nt),this.strip()},it.prototype.notn=function(Bt){return this.clone().inotn(Bt)},it.prototype.setn=function(Bt,vt){rt(typeof Bt=="number"&&Bt>=0);var Nt=Bt/26|0,Gt=Bt%26;return this._expand(Nt+1),vt?this.words[Nt]=this.words[Nt]|1<Bt.length?(Nt=this,Gt=Bt):(Nt=Bt,Gt=this);for(var Jt=0,nr=0;nr>>26;for(;Jt!==0&&nr>>26;if(this.length=Nt.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(Nt!==this)for(;nrBt.length?this.clone().iadd(Bt):Bt.clone().iadd(this)},it.prototype.isub=function(Bt){if(Bt.negative!==0){Bt.negative=0;var vt=this.iadd(Bt);return Bt.negative=1,vt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Bt),this.negative=1,this._normSign();var Nt=this.cmp(Bt);if(Nt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Gt,Jt;Nt>0?(Gt=this,Jt=Bt):(Gt=Bt,Jt=this);for(var nr=0,Xt=0;Xt>26,this.words[Xt]=vt&67108863;for(;nr!==0&&Xt>26,this.words[Xt]=vt&67108863;if(nr===0&&Xt>>26,Ar=Ot&67108863,cr=Math.min(bt,Bt.length-1),Rt=Math.max(0,bt-Mt.length+1);Rt<=cr;Rt++){var Qr=bt-Rt|0;Gt=Mt.words[Qr]|0,Jt=Bt.words[Rt]|0,nr=Gt*Jt+Ar,kt+=nr/67108864|0,Ar=nr&67108863}vt.words[bt]=Ar|0,Ot=kt|0}return Ot!==0?vt.words[bt]=Ot|0:vt.length--,vt.strip()}var Et=function(Bt,vt,Nt){var Gt=Bt.words,Jt=vt.words,nr=Nt.words,Xt=0,Ot,bt,kt,Ar=Gt[0]|0,cr=Ar&8191,Rt=Ar>>>13,Qr=Gt[1]|0,_r=Qr&8191,qr=Qr>>>13,yr=Gt[2]|0,kr=yr&8191,jt=yr>>>13,Zt=Gt[3]|0,rr=Zt&8191,sr=Zt>>>13,ur=Gt[4]|0,fr=ur&8191,It=ur>>>13,lt=Gt[5]|0,ft=lt&8191,xt=lt>>>13,_t=Gt[6]|0,Lt=_t&8191,er=_t>>>13,Er=Gt[7]|0,mr=Er&8191,wr=Er>>>13,Yr=Gt[8]|0,Ft=Yr&8191,yt=Yr>>>13,St=Gt[9]|0,Wt=St&8191,or=St>>>13,Br=Jt[0]|0,gr=Br&8191,Lr=Br>>>13,cn=Jt[1]|0,Pr=cn&8191,Tr=cn>>>13,Bn=Jt[2]|0,Wr=Bn&8191,Rn=Bn>>>13,_i=Jt[3]|0,Fn=_i&8191,Gn=_i>>>13,Hn=Jt[4]|0,yn=Hn&8191,Dn=Hn>>>13,rA=Jt[5]|0,Nn=rA&8191,Tn=rA>>>13,wn=Jt[6]|0,xn=wn&8191,Cn=wn>>>13,Dt=Jt[7]|0,qt=Dt&8191,Ht=Dt>>>13,Ct=Jt[8]|0,Vt=Ct&8191,lr=Ct>>>13,hr=Jt[9]|0,Cr=hr&8191,br=hr>>>13;Nt.negative=Bt.negative^vt.negative,Nt.length=19,Ot=Math.imul(cr,gr),bt=Math.imul(cr,Lr),bt=bt+Math.imul(Rt,gr)|0,kt=Math.imul(Rt,Lr);var jr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ot=Math.imul(_r,gr),bt=Math.imul(_r,Lr),bt=bt+Math.imul(qr,gr)|0,kt=Math.imul(qr,Lr),Ot=Ot+Math.imul(cr,Pr)|0,bt=bt+Math.imul(cr,Tr)|0,bt=bt+Math.imul(Rt,Pr)|0,kt=kt+Math.imul(Rt,Tr)|0;var Gr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(kr,gr),bt=Math.imul(kr,Lr),bt=bt+Math.imul(jt,gr)|0,kt=Math.imul(jt,Lr),Ot=Ot+Math.imul(_r,Pr)|0,bt=bt+Math.imul(_r,Tr)|0,bt=bt+Math.imul(qr,Pr)|0,kt=kt+Math.imul(qr,Tr)|0,Ot=Ot+Math.imul(cr,Wr)|0,bt=bt+Math.imul(cr,Rn)|0,bt=bt+Math.imul(Rt,Wr)|0,kt=kt+Math.imul(Rt,Rn)|0;var In=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(In>>>26)|0,In&=67108863,Ot=Math.imul(rr,gr),bt=Math.imul(rr,Lr),bt=bt+Math.imul(sr,gr)|0,kt=Math.imul(sr,Lr),Ot=Ot+Math.imul(kr,Pr)|0,bt=bt+Math.imul(kr,Tr)|0,bt=bt+Math.imul(jt,Pr)|0,kt=kt+Math.imul(jt,Tr)|0,Ot=Ot+Math.imul(_r,Wr)|0,bt=bt+Math.imul(_r,Rn)|0,bt=bt+Math.imul(qr,Wr)|0,kt=kt+Math.imul(qr,Rn)|0,Ot=Ot+Math.imul(cr,Fn)|0,bt=bt+Math.imul(cr,Gn)|0,bt=bt+Math.imul(Rt,Fn)|0,kt=kt+Math.imul(Rt,Gn)|0;var Or=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Or>>>26)|0,Or&=67108863,Ot=Math.imul(fr,gr),bt=Math.imul(fr,Lr),bt=bt+Math.imul(It,gr)|0,kt=Math.imul(It,Lr),Ot=Ot+Math.imul(rr,Pr)|0,bt=bt+Math.imul(rr,Tr)|0,bt=bt+Math.imul(sr,Pr)|0,kt=kt+Math.imul(sr,Tr)|0,Ot=Ot+Math.imul(kr,Wr)|0,bt=bt+Math.imul(kr,Rn)|0,bt=bt+Math.imul(jt,Wr)|0,kt=kt+Math.imul(jt,Rn)|0,Ot=Ot+Math.imul(_r,Fn)|0,bt=bt+Math.imul(_r,Gn)|0,bt=bt+Math.imul(qr,Fn)|0,kt=kt+Math.imul(qr,Gn)|0,Ot=Ot+Math.imul(cr,yn)|0,bt=bt+Math.imul(cr,Dn)|0,bt=bt+Math.imul(Rt,yn)|0,kt=kt+Math.imul(Rt,Dn)|0;var Xr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,Ot=Math.imul(ft,gr),bt=Math.imul(ft,Lr),bt=bt+Math.imul(xt,gr)|0,kt=Math.imul(xt,Lr),Ot=Ot+Math.imul(fr,Pr)|0,bt=bt+Math.imul(fr,Tr)|0,bt=bt+Math.imul(It,Pr)|0,kt=kt+Math.imul(It,Tr)|0,Ot=Ot+Math.imul(rr,Wr)|0,bt=bt+Math.imul(rr,Rn)|0,bt=bt+Math.imul(sr,Wr)|0,kt=kt+Math.imul(sr,Rn)|0,Ot=Ot+Math.imul(kr,Fn)|0,bt=bt+Math.imul(kr,Gn)|0,bt=bt+Math.imul(jt,Fn)|0,kt=kt+Math.imul(jt,Gn)|0,Ot=Ot+Math.imul(_r,yn)|0,bt=bt+Math.imul(_r,Dn)|0,bt=bt+Math.imul(qr,yn)|0,kt=kt+Math.imul(qr,Dn)|0,Ot=Ot+Math.imul(cr,Nn)|0,bt=bt+Math.imul(cr,Tn)|0,bt=bt+Math.imul(Rt,Nn)|0,kt=kt+Math.imul(Rt,Tn)|0;var Ur=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ot=Math.imul(Lt,gr),bt=Math.imul(Lt,Lr),bt=bt+Math.imul(er,gr)|0,kt=Math.imul(er,Lr),Ot=Ot+Math.imul(ft,Pr)|0,bt=bt+Math.imul(ft,Tr)|0,bt=bt+Math.imul(xt,Pr)|0,kt=kt+Math.imul(xt,Tr)|0,Ot=Ot+Math.imul(fr,Wr)|0,bt=bt+Math.imul(fr,Rn)|0,bt=bt+Math.imul(It,Wr)|0,kt=kt+Math.imul(It,Rn)|0,Ot=Ot+Math.imul(rr,Fn)|0,bt=bt+Math.imul(rr,Gn)|0,bt=bt+Math.imul(sr,Fn)|0,kt=kt+Math.imul(sr,Gn)|0,Ot=Ot+Math.imul(kr,yn)|0,bt=bt+Math.imul(kr,Dn)|0,bt=bt+Math.imul(jt,yn)|0,kt=kt+Math.imul(jt,Dn)|0,Ot=Ot+Math.imul(_r,Nn)|0,bt=bt+Math.imul(_r,Tn)|0,bt=bt+Math.imul(qr,Nn)|0,kt=kt+Math.imul(qr,Tn)|0,Ot=Ot+Math.imul(cr,xn)|0,bt=bt+Math.imul(cr,Cn)|0,bt=bt+Math.imul(Rt,xn)|0,kt=kt+Math.imul(Rt,Cn)|0;var ln=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(mr,gr),bt=Math.imul(mr,Lr),bt=bt+Math.imul(wr,gr)|0,kt=Math.imul(wr,Lr),Ot=Ot+Math.imul(Lt,Pr)|0,bt=bt+Math.imul(Lt,Tr)|0,bt=bt+Math.imul(er,Pr)|0,kt=kt+Math.imul(er,Tr)|0,Ot=Ot+Math.imul(ft,Wr)|0,bt=bt+Math.imul(ft,Rn)|0,bt=bt+Math.imul(xt,Wr)|0,kt=kt+Math.imul(xt,Rn)|0,Ot=Ot+Math.imul(fr,Fn)|0,bt=bt+Math.imul(fr,Gn)|0,bt=bt+Math.imul(It,Fn)|0,kt=kt+Math.imul(It,Gn)|0,Ot=Ot+Math.imul(rr,yn)|0,bt=bt+Math.imul(rr,Dn)|0,bt=bt+Math.imul(sr,yn)|0,kt=kt+Math.imul(sr,Dn)|0,Ot=Ot+Math.imul(kr,Nn)|0,bt=bt+Math.imul(kr,Tn)|0,bt=bt+Math.imul(jt,Nn)|0,kt=kt+Math.imul(jt,Tn)|0,Ot=Ot+Math.imul(_r,xn)|0,bt=bt+Math.imul(_r,Cn)|0,bt=bt+Math.imul(qr,xn)|0,kt=kt+Math.imul(qr,Cn)|0,Ot=Ot+Math.imul(cr,qt)|0,bt=bt+Math.imul(cr,Ht)|0,bt=bt+Math.imul(Rt,qt)|0,kt=kt+Math.imul(Rt,Ht)|0;var sn=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Ft,gr),bt=Math.imul(Ft,Lr),bt=bt+Math.imul(yt,gr)|0,kt=Math.imul(yt,Lr),Ot=Ot+Math.imul(mr,Pr)|0,bt=bt+Math.imul(mr,Tr)|0,bt=bt+Math.imul(wr,Pr)|0,kt=kt+Math.imul(wr,Tr)|0,Ot=Ot+Math.imul(Lt,Wr)|0,bt=bt+Math.imul(Lt,Rn)|0,bt=bt+Math.imul(er,Wr)|0,kt=kt+Math.imul(er,Rn)|0,Ot=Ot+Math.imul(ft,Fn)|0,bt=bt+Math.imul(ft,Gn)|0,bt=bt+Math.imul(xt,Fn)|0,kt=kt+Math.imul(xt,Gn)|0,Ot=Ot+Math.imul(fr,yn)|0,bt=bt+Math.imul(fr,Dn)|0,bt=bt+Math.imul(It,yn)|0,kt=kt+Math.imul(It,Dn)|0,Ot=Ot+Math.imul(rr,Nn)|0,bt=bt+Math.imul(rr,Tn)|0,bt=bt+Math.imul(sr,Nn)|0,kt=kt+Math.imul(sr,Tn)|0,Ot=Ot+Math.imul(kr,xn)|0,bt=bt+Math.imul(kr,Cn)|0,bt=bt+Math.imul(jt,xn)|0,kt=kt+Math.imul(jt,Cn)|0,Ot=Ot+Math.imul(_r,qt)|0,bt=bt+Math.imul(_r,Ht)|0,bt=bt+Math.imul(qr,qt)|0,kt=kt+Math.imul(qr,Ht)|0,Ot=Ot+Math.imul(cr,Vt)|0,bt=bt+Math.imul(cr,lr)|0,bt=bt+Math.imul(Rt,Vt)|0,kt=kt+Math.imul(Rt,lr)|0;var ir=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(ir>>>26)|0,ir&=67108863,Ot=Math.imul(Wt,gr),bt=Math.imul(Wt,Lr),bt=bt+Math.imul(or,gr)|0,kt=Math.imul(or,Lr),Ot=Ot+Math.imul(Ft,Pr)|0,bt=bt+Math.imul(Ft,Tr)|0,bt=bt+Math.imul(yt,Pr)|0,kt=kt+Math.imul(yt,Tr)|0,Ot=Ot+Math.imul(mr,Wr)|0,bt=bt+Math.imul(mr,Rn)|0,bt=bt+Math.imul(wr,Wr)|0,kt=kt+Math.imul(wr,Rn)|0,Ot=Ot+Math.imul(Lt,Fn)|0,bt=bt+Math.imul(Lt,Gn)|0,bt=bt+Math.imul(er,Fn)|0,kt=kt+Math.imul(er,Gn)|0,Ot=Ot+Math.imul(ft,yn)|0,bt=bt+Math.imul(ft,Dn)|0,bt=bt+Math.imul(xt,yn)|0,kt=kt+Math.imul(xt,Dn)|0,Ot=Ot+Math.imul(fr,Nn)|0,bt=bt+Math.imul(fr,Tn)|0,bt=bt+Math.imul(It,Nn)|0,kt=kt+Math.imul(It,Tn)|0,Ot=Ot+Math.imul(rr,xn)|0,bt=bt+Math.imul(rr,Cn)|0,bt=bt+Math.imul(sr,xn)|0,kt=kt+Math.imul(sr,Cn)|0,Ot=Ot+Math.imul(kr,qt)|0,bt=bt+Math.imul(kr,Ht)|0,bt=bt+Math.imul(jt,qt)|0,kt=kt+Math.imul(jt,Ht)|0,Ot=Ot+Math.imul(_r,Vt)|0,bt=bt+Math.imul(_r,lr)|0,bt=bt+Math.imul(qr,Vt)|0,kt=kt+Math.imul(qr,lr)|0,Ot=Ot+Math.imul(cr,Cr)|0,bt=bt+Math.imul(cr,br)|0,bt=bt+Math.imul(Rt,Cr)|0,kt=kt+Math.imul(Rt,br)|0;var Rr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Ot=Math.imul(Wt,Pr),bt=Math.imul(Wt,Tr),bt=bt+Math.imul(or,Pr)|0,kt=Math.imul(or,Tr),Ot=Ot+Math.imul(Ft,Wr)|0,bt=bt+Math.imul(Ft,Rn)|0,bt=bt+Math.imul(yt,Wr)|0,kt=kt+Math.imul(yt,Rn)|0,Ot=Ot+Math.imul(mr,Fn)|0,bt=bt+Math.imul(mr,Gn)|0,bt=bt+Math.imul(wr,Fn)|0,kt=kt+Math.imul(wr,Gn)|0,Ot=Ot+Math.imul(Lt,yn)|0,bt=bt+Math.imul(Lt,Dn)|0,bt=bt+Math.imul(er,yn)|0,kt=kt+Math.imul(er,Dn)|0,Ot=Ot+Math.imul(ft,Nn)|0,bt=bt+Math.imul(ft,Tn)|0,bt=bt+Math.imul(xt,Nn)|0,kt=kt+Math.imul(xt,Tn)|0,Ot=Ot+Math.imul(fr,xn)|0,bt=bt+Math.imul(fr,Cn)|0,bt=bt+Math.imul(It,xn)|0,kt=kt+Math.imul(It,Cn)|0,Ot=Ot+Math.imul(rr,qt)|0,bt=bt+Math.imul(rr,Ht)|0,bt=bt+Math.imul(sr,qt)|0,kt=kt+Math.imul(sr,Ht)|0,Ot=Ot+Math.imul(kr,Vt)|0,bt=bt+Math.imul(kr,lr)|0,bt=bt+Math.imul(jt,Vt)|0,kt=kt+Math.imul(jt,lr)|0,Ot=Ot+Math.imul(_r,Cr)|0,bt=bt+Math.imul(_r,br)|0,bt=bt+Math.imul(qr,Cr)|0,kt=kt+Math.imul(qr,br)|0;var Mr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,Ot=Math.imul(Wt,Wr),bt=Math.imul(Wt,Rn),bt=bt+Math.imul(or,Wr)|0,kt=Math.imul(or,Rn),Ot=Ot+Math.imul(Ft,Fn)|0,bt=bt+Math.imul(Ft,Gn)|0,bt=bt+Math.imul(yt,Fn)|0,kt=kt+Math.imul(yt,Gn)|0,Ot=Ot+Math.imul(mr,yn)|0,bt=bt+Math.imul(mr,Dn)|0,bt=bt+Math.imul(wr,yn)|0,kt=kt+Math.imul(wr,Dn)|0,Ot=Ot+Math.imul(Lt,Nn)|0,bt=bt+Math.imul(Lt,Tn)|0,bt=bt+Math.imul(er,Nn)|0,kt=kt+Math.imul(er,Tn)|0,Ot=Ot+Math.imul(ft,xn)|0,bt=bt+Math.imul(ft,Cn)|0,bt=bt+Math.imul(xt,xn)|0,kt=kt+Math.imul(xt,Cn)|0,Ot=Ot+Math.imul(fr,qt)|0,bt=bt+Math.imul(fr,Ht)|0,bt=bt+Math.imul(It,qt)|0,kt=kt+Math.imul(It,Ht)|0,Ot=Ot+Math.imul(rr,Vt)|0,bt=bt+Math.imul(rr,lr)|0,bt=bt+Math.imul(sr,Vt)|0,kt=kt+Math.imul(sr,lr)|0,Ot=Ot+Math.imul(kr,Cr)|0,bt=bt+Math.imul(kr,br)|0,bt=bt+Math.imul(jt,Cr)|0,kt=kt+Math.imul(jt,br)|0;var $r=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+($r>>>26)|0,$r&=67108863,Ot=Math.imul(Wt,Fn),bt=Math.imul(Wt,Gn),bt=bt+Math.imul(or,Fn)|0,kt=Math.imul(or,Gn),Ot=Ot+Math.imul(Ft,yn)|0,bt=bt+Math.imul(Ft,Dn)|0,bt=bt+Math.imul(yt,yn)|0,kt=kt+Math.imul(yt,Dn)|0,Ot=Ot+Math.imul(mr,Nn)|0,bt=bt+Math.imul(mr,Tn)|0,bt=bt+Math.imul(wr,Nn)|0,kt=kt+Math.imul(wr,Tn)|0,Ot=Ot+Math.imul(Lt,xn)|0,bt=bt+Math.imul(Lt,Cn)|0,bt=bt+Math.imul(er,xn)|0,kt=kt+Math.imul(er,Cn)|0,Ot=Ot+Math.imul(ft,qt)|0,bt=bt+Math.imul(ft,Ht)|0,bt=bt+Math.imul(xt,qt)|0,kt=kt+Math.imul(xt,Ht)|0,Ot=Ot+Math.imul(fr,Vt)|0,bt=bt+Math.imul(fr,lr)|0,bt=bt+Math.imul(It,Vt)|0,kt=kt+Math.imul(It,lr)|0,Ot=Ot+Math.imul(rr,Cr)|0,bt=bt+Math.imul(rr,br)|0,bt=bt+Math.imul(sr,Cr)|0,kt=kt+Math.imul(sr,br)|0;var Jr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,Ot=Math.imul(Wt,yn),bt=Math.imul(Wt,Dn),bt=bt+Math.imul(or,yn)|0,kt=Math.imul(or,Dn),Ot=Ot+Math.imul(Ft,Nn)|0,bt=bt+Math.imul(Ft,Tn)|0,bt=bt+Math.imul(yt,Nn)|0,kt=kt+Math.imul(yt,Tn)|0,Ot=Ot+Math.imul(mr,xn)|0,bt=bt+Math.imul(mr,Cn)|0,bt=bt+Math.imul(wr,xn)|0,kt=kt+Math.imul(wr,Cn)|0,Ot=Ot+Math.imul(Lt,qt)|0,bt=bt+Math.imul(Lt,Ht)|0,bt=bt+Math.imul(er,qt)|0,kt=kt+Math.imul(er,Ht)|0,Ot=Ot+Math.imul(ft,Vt)|0,bt=bt+Math.imul(ft,lr)|0,bt=bt+Math.imul(xt,Vt)|0,kt=kt+Math.imul(xt,lr)|0,Ot=Ot+Math.imul(fr,Cr)|0,bt=bt+Math.imul(fr,br)|0,bt=bt+Math.imul(It,Cr)|0,kt=kt+Math.imul(It,br)|0;var Nr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Ot=Math.imul(Wt,Nn),bt=Math.imul(Wt,Tn),bt=bt+Math.imul(or,Nn)|0,kt=Math.imul(or,Tn),Ot=Ot+Math.imul(Ft,xn)|0,bt=bt+Math.imul(Ft,Cn)|0,bt=bt+Math.imul(yt,xn)|0,kt=kt+Math.imul(yt,Cn)|0,Ot=Ot+Math.imul(mr,qt)|0,bt=bt+Math.imul(mr,Ht)|0,bt=bt+Math.imul(wr,qt)|0,kt=kt+Math.imul(wr,Ht)|0,Ot=Ot+Math.imul(Lt,Vt)|0,bt=bt+Math.imul(Lt,lr)|0,bt=bt+Math.imul(er,Vt)|0,kt=kt+Math.imul(er,lr)|0,Ot=Ot+Math.imul(ft,Cr)|0,bt=bt+Math.imul(ft,br)|0,bt=bt+Math.imul(xt,Cr)|0,kt=kt+Math.imul(xt,br)|0;var Vr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(Wt,xn),bt=Math.imul(Wt,Cn),bt=bt+Math.imul(or,xn)|0,kt=Math.imul(or,Cn),Ot=Ot+Math.imul(Ft,qt)|0,bt=bt+Math.imul(Ft,Ht)|0,bt=bt+Math.imul(yt,qt)|0,kt=kt+Math.imul(yt,Ht)|0,Ot=Ot+Math.imul(mr,Vt)|0,bt=bt+Math.imul(mr,lr)|0,bt=bt+Math.imul(wr,Vt)|0,kt=kt+Math.imul(wr,lr)|0,Ot=Ot+Math.imul(Lt,Cr)|0,bt=bt+Math.imul(Lt,br)|0,bt=bt+Math.imul(er,Cr)|0,kt=kt+Math.imul(er,br)|0;var Kr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,Ot=Math.imul(Wt,qt),bt=Math.imul(Wt,Ht),bt=bt+Math.imul(or,qt)|0,kt=Math.imul(or,Ht),Ot=Ot+Math.imul(Ft,Vt)|0,bt=bt+Math.imul(Ft,lr)|0,bt=bt+Math.imul(yt,Vt)|0,kt=kt+Math.imul(yt,lr)|0,Ot=Ot+Math.imul(mr,Cr)|0,bt=bt+Math.imul(mr,br)|0,bt=bt+Math.imul(wr,Cr)|0,kt=kt+Math.imul(wr,br)|0;var Hr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,Ot=Math.imul(Wt,Vt),bt=Math.imul(Wt,lr),bt=bt+Math.imul(or,Vt)|0,kt=Math.imul(or,lr),Ot=Ot+Math.imul(Ft,Cr)|0,bt=bt+Math.imul(Ft,br)|0,bt=bt+Math.imul(yt,Cr)|0,kt=kt+Math.imul(yt,br)|0;var pr=(Xt+Ot|0)+((bt&8191)<<13)|0;Xt=(kt+(bt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(Wt,Cr),bt=Math.imul(Wt,br),bt=bt+Math.imul(or,Cr)|0,kt=Math.imul(or,br);var Ir=(Xt+Ot|0)+((bt&8191)<<13)|0;return Xt=(kt+(bt>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,nr[0]=jr,nr[1]=Gr,nr[2]=In,nr[3]=Or,nr[4]=Xr,nr[5]=Ur,nr[6]=ln,nr[7]=sn,nr[8]=ir,nr[9]=Rr,nr[10]=Mr,nr[11]=$r,nr[12]=Jr,nr[13]=Nr,nr[14]=Vr,nr[15]=Kr,nr[16]=Hr,nr[17]=pr,nr[18]=Ir,Xt!==0&&(nr[19]=Xt,Nt.length++),Nt};Math.imul||(Et=ht);function wt(Mt,Bt,vt){vt.negative=Bt.negative^Mt.negative,vt.length=Mt.length+Bt.length;for(var Nt=0,Gt=0,Jt=0;Jt>>26)|0,Gt+=nr>>>26,nr&=67108863}vt.words[Jt]=Xt,Nt=nr,nr=Gt}return Nt!==0?vt.words[Jt]=Nt:vt.length--,vt.strip()}function Qt(Mt,Bt,vt){var Nt=new pt;return Nt.mulp(Mt,Bt,vt)}it.prototype.mulTo=function(Bt,vt){var Nt,Gt=this.length+Bt.length;return this.length===10&&Bt.length===10?Nt=Et(this,Bt,vt):Gt<63?Nt=ht(this,Bt,vt):Gt<1024?Nt=wt(this,Bt,vt):Nt=Qt(this,Bt,vt),Nt};function pt(Mt,Bt){this.x=Mt,this.y=Bt}pt.prototype.makeRBT=function(Bt){for(var vt=new Array(Bt),Nt=it.prototype._countBits(Bt)-1,Gt=0;Gt>=1;return Gt},pt.prototype.permute=function(Bt,vt,Nt,Gt,Jt,nr){for(var Xt=0;Xt>>1)Jt++;return 1<>>13,Nt[2*nr+1]=Jt&8191,Jt=Jt>>>13;for(nr=2*vt;nr>=26,vt+=Gt/67108864|0,vt+=Jt>>>26,this.words[Nt]=Jt&67108863}return vt!==0&&(this.words[Nt]=vt,this.length++),this},it.prototype.muln=function(Bt){return this.clone().imuln(Bt)},it.prototype.sqr=function(){return this.mul(this)},it.prototype.isqr=function(){return this.imul(this.clone())},it.prototype.pow=function(Bt){var vt=dt(Bt);if(vt.length===0)return new it(1);for(var Nt=this,Gt=0;Gt=0);var vt=Bt%26,Nt=(Bt-vt)/26,Gt=67108863>>>26-vt<<26-vt,Jt;if(vt!==0){var nr=0;for(Jt=0;Jt>>26-vt}nr&&(this.words[Jt]=nr,this.length++)}if(Nt!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+Nt]=this.words[Jt];for(Jt=0;Jt=0);var Gt;vt?Gt=(vt-vt%26)/26:Gt=0;var Jt=Bt%26,nr=Math.min((Bt-Jt)/26,this.length),Xt=67108863^67108863>>>Jt<nr)for(this.length-=nr,bt=0;bt=0&&(kt!==0||bt>=Gt);bt--){var Ar=this.words[bt]|0;this.words[bt]=kt<<26-Jt|Ar>>>Jt,kt=Ar&Xt}return Ot&&kt!==0&&(Ot.words[Ot.length++]=kt),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},it.prototype.ishrn=function(Bt,vt,Nt){return rt(this.negative===0),this.iushrn(Bt,vt,Nt)},it.prototype.shln=function(Bt){return this.clone().ishln(Bt)},it.prototype.ushln=function(Bt){return this.clone().iushln(Bt)},it.prototype.shrn=function(Bt){return this.clone().ishrn(Bt)},it.prototype.ushrn=function(Bt){return this.clone().iushrn(Bt)},it.prototype.testn=function(Bt){rt(typeof Bt=="number"&&Bt>=0);var vt=Bt%26,Nt=(Bt-vt)/26,Gt=1<=0);var vt=Bt%26,Nt=(Bt-vt)/26;if(rt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Nt)return this;if(vt!==0&&Nt++,this.length=Math.min(Nt,this.length),vt!==0){var Gt=67108863^67108863>>>vt<=67108864;vt++)this.words[vt]-=67108864,vt===this.length-1?this.words[vt+1]=1:this.words[vt+1]++;return this.length=Math.max(this.length,vt+1),this},it.prototype.isubn=function(Bt){if(rt(typeof Bt=="number"),rt(Bt<67108864),Bt<0)return this.iaddn(-Bt);if(this.negative!==0)return this.negative=0,this.iaddn(Bt),this.negative=1,this;if(this.words[0]-=Bt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var vt=0;vt>26)-(Ot/67108864|0),this.words[Jt+Nt]=nr&67108863}for(;Jt>26,this.words[Jt+Nt]=nr&67108863;if(Xt===0)return this.strip();for(rt(Xt===-1),Xt=0,Jt=0;Jt>26,this.words[Jt]=nr&67108863;return this.negative=1,this.strip()},it.prototype._wordDiv=function(Bt,vt){var Nt=this.length-Bt.length,Gt=this.clone(),Jt=Bt,nr=Jt.words[Jt.length-1]|0,Xt=this._countBits(nr);Nt=26-Xt,Nt!==0&&(Jt=Jt.ushln(Nt),Gt.iushln(Nt),nr=Jt.words[Jt.length-1]|0);var Ot=Gt.length-Jt.length,bt;if(vt!=="mod"){bt=new it(null),bt.length=Ot+1,bt.words=new Array(bt.length);for(var kt=0;kt=0;cr--){var Rt=(Gt.words[Jt.length+cr]|0)*67108864+(Gt.words[Jt.length+cr-1]|0);for(Rt=Math.min(Rt/nr|0,67108863),Gt._ishlnsubmul(Jt,Rt,cr);Gt.negative!==0;)Rt--,Gt.negative=0,Gt._ishlnsubmul(Jt,1,cr),Gt.isZero()||(Gt.negative^=1);bt&&(bt.words[cr]=Rt)}return bt&&bt.strip(),Gt.strip(),vt!=="div"&&Nt!==0&&Gt.iushrn(Nt),{div:bt||null,mod:Gt}},it.prototype.divmod=function(Bt,vt,Nt){if(rt(!Bt.isZero()),this.isZero())return{div:new it(0),mod:new it(0)};var Gt,Jt,nr;return this.negative!==0&&Bt.negative===0?(nr=this.neg().divmod(Bt,vt),vt!=="mod"&&(Gt=nr.div.neg()),vt!=="div"&&(Jt=nr.mod.neg(),Nt&&Jt.negative!==0&&Jt.iadd(Bt)),{div:Gt,mod:Jt}):this.negative===0&&Bt.negative!==0?(nr=this.divmod(Bt.neg(),vt),vt!=="mod"&&(Gt=nr.div.neg()),{div:Gt,mod:nr.mod}):this.negative&Bt.negative?(nr=this.neg().divmod(Bt.neg(),vt),vt!=="div"&&(Jt=nr.mod.neg(),Nt&&Jt.negative!==0&&Jt.isub(Bt)),{div:nr.div,mod:Jt}):Bt.length>this.length||this.cmp(Bt)<0?{div:new it(0),mod:this}:Bt.length===1?vt==="div"?{div:this.divn(Bt.words[0]),mod:null}:vt==="mod"?{div:null,mod:new it(this.modn(Bt.words[0]))}:{div:this.divn(Bt.words[0]),mod:new it(this.modn(Bt.words[0]))}:this._wordDiv(Bt,vt)},it.prototype.div=function(Bt){return this.divmod(Bt,"div",!1).div},it.prototype.mod=function(Bt){return this.divmod(Bt,"mod",!1).mod},it.prototype.umod=function(Bt){return this.divmod(Bt,"mod",!0).mod},it.prototype.divRound=function(Bt){var vt=this.divmod(Bt);if(vt.mod.isZero())return vt.div;var Nt=vt.div.negative!==0?vt.mod.isub(Bt):vt.mod,Gt=Bt.ushrn(1),Jt=Bt.andln(1),nr=Nt.cmp(Gt);return nr<0||Jt===1&&nr===0?vt.div:vt.div.negative!==0?vt.div.isubn(1):vt.div.iaddn(1)},it.prototype.modn=function(Bt){rt(Bt<=67108863);for(var vt=(1<<26)%Bt,Nt=0,Gt=this.length-1;Gt>=0;Gt--)Nt=(vt*Nt+(this.words[Gt]|0))%Bt;return Nt},it.prototype.idivn=function(Bt){rt(Bt<=67108863);for(var vt=0,Nt=this.length-1;Nt>=0;Nt--){var Gt=(this.words[Nt]|0)+vt*67108864;this.words[Nt]=Gt/Bt|0,vt=Gt%Bt}return this.strip()},it.prototype.divn=function(Bt){return this.clone().idivn(Bt)},it.prototype.egcd=function(Bt){rt(Bt.negative===0),rt(!Bt.isZero());var vt=this,Nt=Bt.clone();vt.negative!==0?vt=vt.umod(Bt):vt=vt.clone();for(var Gt=new it(1),Jt=new it(0),nr=new it(0),Xt=new it(1),Ot=0;vt.isEven()&&Nt.isEven();)vt.iushrn(1),Nt.iushrn(1),++Ot;for(var bt=Nt.clone(),kt=vt.clone();!vt.isZero();){for(var Ar=0,cr=1;!(vt.words[0]&cr)&&Ar<26;++Ar,cr<<=1);if(Ar>0)for(vt.iushrn(Ar);Ar-- >0;)(Gt.isOdd()||Jt.isOdd())&&(Gt.iadd(bt),Jt.isub(kt)),Gt.iushrn(1),Jt.iushrn(1);for(var Rt=0,Qr=1;!(Nt.words[0]&Qr)&&Rt<26;++Rt,Qr<<=1);if(Rt>0)for(Nt.iushrn(Rt);Rt-- >0;)(nr.isOdd()||Xt.isOdd())&&(nr.iadd(bt),Xt.isub(kt)),nr.iushrn(1),Xt.iushrn(1);vt.cmp(Nt)>=0?(vt.isub(Nt),Gt.isub(nr),Jt.isub(Xt)):(Nt.isub(vt),nr.isub(Gt),Xt.isub(Jt))}return{a:nr,b:Xt,gcd:Nt.iushln(Ot)}},it.prototype._invmp=function(Bt){rt(Bt.negative===0),rt(!Bt.isZero());var vt=this,Nt=Bt.clone();vt.negative!==0?vt=vt.umod(Bt):vt=vt.clone();for(var Gt=new it(1),Jt=new it(0),nr=Nt.clone();vt.cmpn(1)>0&&Nt.cmpn(1)>0;){for(var Xt=0,Ot=1;!(vt.words[0]&Ot)&&Xt<26;++Xt,Ot<<=1);if(Xt>0)for(vt.iushrn(Xt);Xt-- >0;)Gt.isOdd()&&Gt.iadd(nr),Gt.iushrn(1);for(var bt=0,kt=1;!(Nt.words[0]&kt)&&bt<26;++bt,kt<<=1);if(bt>0)for(Nt.iushrn(bt);bt-- >0;)Jt.isOdd()&&Jt.iadd(nr),Jt.iushrn(1);vt.cmp(Nt)>=0?(vt.isub(Nt),Gt.isub(Jt)):(Nt.isub(vt),Jt.isub(Gt))}var Ar;return vt.cmpn(1)===0?Ar=Gt:Ar=Jt,Ar.cmpn(0)<0&&Ar.iadd(Bt),Ar},it.prototype.gcd=function(Bt){if(this.isZero())return Bt.abs();if(Bt.isZero())return this.abs();var vt=this.clone(),Nt=Bt.clone();vt.negative=0,Nt.negative=0;for(var Gt=0;vt.isEven()&&Nt.isEven();Gt++)vt.iushrn(1),Nt.iushrn(1);do{for(;vt.isEven();)vt.iushrn(1);for(;Nt.isEven();)Nt.iushrn(1);var Jt=vt.cmp(Nt);if(Jt<0){var nr=vt;vt=Nt,Nt=nr}else if(Jt===0||Nt.cmpn(1)===0)break;vt.isub(Nt)}while(!0);return Nt.iushln(Gt)},it.prototype.invm=function(Bt){return this.egcd(Bt).a.umod(Bt)},it.prototype.isEven=function(){return(this.words[0]&1)===0},it.prototype.isOdd=function(){return(this.words[0]&1)===1},it.prototype.andln=function(Bt){return this.words[0]&Bt},it.prototype.bincn=function(Bt){rt(typeof Bt=="number");var vt=Bt%26,Nt=(Bt-vt)/26,Gt=1<>>26,Xt&=67108863,this.words[nr]=Xt}return Jt!==0&&(this.words[nr]=Jt,this.length++),this},it.prototype.isZero=function(){return this.length===1&&this.words[0]===0},it.prototype.cmpn=function(Bt){var vt=Bt<0;if(this.negative!==0&&!vt)return-1;if(this.negative===0&&vt)return 1;this.strip();var Nt;if(this.length>1)Nt=1;else{vt&&(Bt=-Bt),rt(Bt<=67108863,"Number is too big");var Gt=this.words[0]|0;Nt=Gt===Bt?0:GtBt.length)return 1;if(this.length=0;Nt--){var Gt=this.words[Nt]|0,Jt=Bt.words[Nt]|0;if(Gt!==Jt){GtJt&&(vt=1);break}}return vt},it.prototype.gtn=function(Bt){return this.cmpn(Bt)===1},it.prototype.gt=function(Bt){return this.cmp(Bt)===1},it.prototype.gten=function(Bt){return this.cmpn(Bt)>=0},it.prototype.gte=function(Bt){return this.cmp(Bt)>=0},it.prototype.ltn=function(Bt){return this.cmpn(Bt)===-1},it.prototype.lt=function(Bt){return this.cmp(Bt)===-1},it.prototype.lten=function(Bt){return this.cmpn(Bt)<=0},it.prototype.lte=function(Bt){return this.cmp(Bt)<=0},it.prototype.eqn=function(Bt){return this.cmpn(Bt)===0},it.prototype.eq=function(Bt){return this.cmp(Bt)===0},it.red=function(Bt){return new zt(Bt)},it.prototype.toRed=function(Bt){return rt(!this.red,"Already a number in reduction context"),rt(this.negative===0,"red works only with positives"),Bt.convertTo(this)._forceRed(Bt)},it.prototype.fromRed=function(){return rt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},it.prototype._forceRed=function(Bt){return this.red=Bt,this},it.prototype.forceRed=function(Bt){return rt(!this.red,"Already a number in reduction context"),this._forceRed(Bt)},it.prototype.redAdd=function(Bt){return rt(this.red,"redAdd works only with red numbers"),this.red.add(this,Bt)},it.prototype.redIAdd=function(Bt){return rt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Bt)},it.prototype.redSub=function(Bt){return rt(this.red,"redSub works only with red numbers"),this.red.sub(this,Bt)},it.prototype.redISub=function(Bt){return rt(this.red,"redISub works only with red numbers"),this.red.isub(this,Bt)},it.prototype.redShl=function(Bt){return rt(this.red,"redShl works only with red numbers"),this.red.shl(this,Bt)},it.prototype.redMul=function(Bt){return rt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.mul(this,Bt)},it.prototype.redIMul=function(Bt){return rt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.imul(this,Bt)},it.prototype.redSqr=function(){return rt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},it.prototype.redISqr=function(){return rt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},it.prototype.redSqrt=function(){return rt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},it.prototype.redInvm=function(){return rt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},it.prototype.redNeg=function(){return rt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},it.prototype.redPow=function(Bt){return rt(this.red&&!Bt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Bt)};var mt={k256:null,p224:null,p192:null,p25519:null};function $t(Mt,Bt){this.name=Mt,this.p=new it(Bt,16),this.n=this.p.bitLength(),this.k=new it(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$t.prototype._tmp=function(){var Bt=new it(null);return Bt.words=new Array(Math.ceil(this.n/13)),Bt},$t.prototype.ireduce=function(Bt){var vt=Bt,Nt;do this.split(vt,this.tmp),vt=this.imulK(vt),vt=vt.iadd(this.tmp),Nt=vt.bitLength();while(Nt>this.n);var Gt=Nt0?vt.isub(this.p):vt.strip!==void 0?vt.strip():vt._strip(),vt},$t.prototype.split=function(Bt,vt){Bt.iushrn(this.n,0,vt)},$t.prototype.imulK=function(Bt){return Bt.imul(this.k)};function Tt(){$t.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Tt,$t),Tt.prototype.split=function(Bt,vt){for(var Nt=4194303,Gt=Math.min(Bt.length,9),Jt=0;Jt>>22,nr=Xt}nr>>>=22,Bt.words[Jt-10]=nr,nr===0&&Bt.length>10?Bt.length-=10:Bt.length-=9},Tt.prototype.imulK=function(Bt){Bt.words[Bt.length]=0,Bt.words[Bt.length+1]=0,Bt.length+=2;for(var vt=0,Nt=0;Nt>>=26,Bt.words[Nt]=Jt,vt=Gt}return vt!==0&&(Bt.words[Bt.length++]=vt),Bt},it._prime=function(Bt){if(mt[Bt])return mt[Bt];var vt;if(Bt==="k256")vt=new Tt;else if(Bt==="p224")vt=new Ut;else if(Bt==="p192")vt=new Pt;else if(Bt==="p25519")vt=new Kt;else throw new Error("Unknown prime "+Bt);return mt[Bt]=vt,vt};function zt(Mt){if(typeof Mt=="string"){var Bt=it._prime(Mt);this.m=Bt.p,this.prime=Bt}else rt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}zt.prototype._verify1=function(Bt){rt(Bt.negative===0,"red works only with positives"),rt(Bt.red,"red works only with red numbers")},zt.prototype._verify2=function(Bt,vt){rt((Bt.negative|vt.negative)===0,"red works only with positives"),rt(Bt.red&&Bt.red===vt.red,"red works only with red numbers")},zt.prototype.imod=function(Bt){return this.prime?this.prime.ireduce(Bt)._forceRed(this):Bt.umod(this.m)._forceRed(this)},zt.prototype.neg=function(Bt){return Bt.isZero()?Bt.clone():this.m.sub(Bt)._forceRed(this)},zt.prototype.add=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.add(vt);return Nt.cmp(this.m)>=0&&Nt.isub(this.m),Nt._forceRed(this)},zt.prototype.iadd=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.iadd(vt);return Nt.cmp(this.m)>=0&&Nt.isub(this.m),Nt},zt.prototype.sub=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.sub(vt);return Nt.cmpn(0)<0&&Nt.iadd(this.m),Nt._forceRed(this)},zt.prototype.isub=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.isub(vt);return Nt.cmpn(0)<0&&Nt.iadd(this.m),Nt},zt.prototype.shl=function(Bt,vt){return this._verify1(Bt),this.imod(Bt.ushln(vt))},zt.prototype.imul=function(Bt,vt){return this._verify2(Bt,vt),this.imod(Bt.imul(vt))},zt.prototype.mul=function(Bt,vt){return this._verify2(Bt,vt),this.imod(Bt.mul(vt))},zt.prototype.isqr=function(Bt){return this.imul(Bt,Bt.clone())},zt.prototype.sqr=function(Bt){return this.mul(Bt,Bt)},zt.prototype.sqrt=function(Bt){if(Bt.isZero())return Bt.clone();var vt=this.m.andln(3);if(rt(vt%2===1),vt===3){var Nt=this.m.add(new it(1)).iushrn(2);return this.pow(Bt,Nt)}for(var Gt=this.m.subn(1),Jt=0;!Gt.isZero()&&Gt.andln(1)===0;)Jt++,Gt.iushrn(1);rt(!Gt.isZero());var nr=new it(1).toRed(this),Xt=nr.redNeg(),Ot=this.m.subn(1).iushrn(1),bt=this.m.bitLength();for(bt=new it(2*bt*bt).toRed(this);this.pow(bt,Ot).cmp(Xt)!==0;)bt.redIAdd(Xt);for(var kt=this.pow(bt,Gt),Ar=this.pow(Bt,Gt.addn(1).iushrn(1)),cr=this.pow(Bt,Gt),Rt=Jt;cr.cmp(nr)!==0;){for(var Qr=cr,_r=0;Qr.cmp(nr)!==0;_r++)Qr=Qr.redSqr();rt(_r=0;Jt--){for(var kt=vt.words[Jt],Ar=bt-1;Ar>=0;Ar--){var cr=kt>>Ar&1;if(nr!==Gt[0]&&(nr=this.sqr(nr)),cr===0&&Xt===0){Ot=0;continue}Xt<<=1,Xt|=cr,Ot++,!(Ot!==Nt&&(Jt!==0||Ar!==0))&&(nr=this.mul(nr,Gt[Xt]),Ot=0,Xt=0)}bt=26}return nr},zt.prototype.convertTo=function(Bt){var vt=Bt.umod(this.m);return vt===Bt?vt.clone():vt},zt.prototype.convertFrom=function(Bt){var vt=Bt.clone();return vt.red=null,vt},it.mont=function(Bt){return new Yt(Bt)};function Yt(Mt){zt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new it(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}nt(Yt,zt),Yt.prototype.convertTo=function(Bt){return this.imod(Bt.ushln(this.shift))},Yt.prototype.convertFrom=function(Bt){var vt=this.imod(Bt.mul(this.rinv));return vt.red=null,vt},Yt.prototype.imul=function(Bt,vt){if(Bt.isZero()||vt.isZero())return Bt.words[0]=0,Bt.length=1,Bt;var Nt=Bt.imul(vt),Gt=Nt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=Nt.isub(Gt).iushrn(this.shift),nr=Jt;return Jt.cmp(this.m)>=0?nr=Jt.isub(this.m):Jt.cmpn(0)<0&&(nr=Jt.iadd(this.m)),nr._forceRed(this)},Yt.prototype.mul=function(Bt,vt){if(Bt.isZero()||vt.isZero())return new it(0)._forceRed(this);var Nt=Bt.mul(vt),Gt=Nt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=Nt.isub(Gt).iushrn(this.shift),nr=Jt;return Jt.cmp(this.m)>=0?nr=Jt.isub(this.m):Jt.cmpn(0)<0&&(nr=Jt.iadd(this.m)),nr._forceRed(this)},Yt.prototype.invm=function(Bt){var vt=this.imod(Bt._invmp(this.m).mul(this.r2));return vt._forceRed(this)}})($,commonjsGlobal)})(bn);var bnExports=bn.exports,minimalisticAssert=assert$f;function assert$f($,et){if(!$)throw new Error(et||"Assertion failed")}assert$f.equal=function $(et,tt,rt){if(et!=tt)throw new Error(rt||"Assertion failed: "+et+" != "+tt)};var utils$l={};(function($){var et=$;function tt(it,At){if(Array.isArray(it))return it.slice();if(!it)return[];var at=[];if(typeof it!="string"){for(var ot=0;ot>8,ut=st&255;ct?at.push(ct,ut):at.push(ut)}return at}et.toArray=tt;function rt(it){return it.length===1?"0"+it:it}et.zero2=rt;function nt(it){for(var At="",at=0;at(ht>>1)-1?Qt=(ht>>1)-pt:Qt=pt,Et.isubn(Qt)):Qt=0,dt[wt]=Qt,Et.iushrn(1)}return dt}et.getNAF=it;function At(ct,ut){var gt=[[],[]];ct=ct.clone(),ut=ut.clone();for(var dt=0,ht=0,Et;ct.cmpn(-dt)>0||ut.cmpn(-ht)>0;){var wt=ct.andln(3)+dt&3,Qt=ut.andln(3)+ht&3;wt===3&&(wt=-1),Qt===3&&(Qt=-1);var pt;wt&1?(Et=ct.andln(7)+dt&7,(Et===3||Et===5)&&Qt===2?pt=-wt:pt=wt):pt=0,gt[0].push(pt);var mt;Qt&1?(Et=ut.andln(7)+ht&7,(Et===3||Et===5)&&wt===2?mt=-Qt:mt=Qt):mt=0,gt[1].push(mt),2*dt===pt+1&&(dt=1-dt),2*ht===mt+1&&(ht=1-ht),ct.iushrn(1),ut.iushrn(1)}return gt}et.getJSF=At;function at(ct,ut,gt){var dt="_"+ut;ct.prototype[ut]=function(){return this[dt]!==void 0?this[dt]:this[dt]=gt.call(this)}}et.cachedProperty=at;function ot(ct){return typeof ct=="string"?et.toArray(ct,"hex"):ct}et.parseBytes=ot;function st(ct){return new tt(ct,"hex","le")}et.intFromLE=st})(utils$m);var brorand={exports:{}},r$1;brorand.exports=function $(et){return r$1||(r$1=new Rand(null)),r$1.generate(et)};function Rand($){this.rand=$}brorand.exports.Rand=Rand;Rand.prototype.generate=function $(et){return this._rand(et)};Rand.prototype._rand=function $(et){if(this.rand.getBytes)return this.rand.getBytes(et);for(var tt=new Uint8Array(et),rt=0;rt0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=BaseCurve;BaseCurve.prototype.point=function $(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function $(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function $(et,tt){assert$e(et.precomputed);var rt=et._getDoubles(),nt=getNAF(tt,1,this._bitLength),it=(1<=at;st--)ot=(ot<<1)+nt[st];At.push(ot)}for(var ct=this.jpoint(null,null,null),ut=this.jpoint(null,null,null),gt=it;gt>0;gt--){for(at=0;at=0;ot--){for(var st=0;ot>=0&&At[ot]===0;ot--)st++;if(ot>=0&&st++,at=at.dblp(st),ot<0)break;var ct=At[ot];assert$e(ct!==0),et.type==="affine"?ct>0?at=at.mixedAdd(it[ct-1>>1]):at=at.mixedAdd(it[-ct-1>>1].neg()):ct>0?at=at.add(it[ct-1>>1]):at=at.add(it[-ct-1>>1].neg())}return et.type==="affine"?at.toP():at};BaseCurve.prototype._wnafMulAdd=function $(et,tt,rt,nt,it){var At=this._wnafT1,at=this._wnafT2,ot=this._wnafT3,st=0,ct,ut,gt;for(ct=0;ct=1;ct-=2){var ht=ct-1,Et=ct;if(At[ht]!==1||At[Et]!==1){ot[ht]=getNAF(rt[ht],At[ht],this._bitLength),ot[Et]=getNAF(rt[Et],At[Et],this._bitLength),st=Math.max(ot[ht].length,st),st=Math.max(ot[Et].length,st);continue}var wt=[tt[ht],null,null,tt[Et]];tt[ht].y.cmp(tt[Et].y)===0?(wt[1]=tt[ht].add(tt[Et]),wt[2]=tt[ht].toJ().mixedAdd(tt[Et].neg())):tt[ht].y.cmp(tt[Et].y.redNeg())===0?(wt[1]=tt[ht].toJ().mixedAdd(tt[Et]),wt[2]=tt[ht].add(tt[Et].neg())):(wt[1]=tt[ht].toJ().mixedAdd(tt[Et]),wt[2]=tt[ht].toJ().mixedAdd(tt[Et].neg()));var Qt=[-3,-1,-5,-7,0,7,5,1,3],pt=getJSF(rt[ht],rt[Et]);for(st=Math.max(pt[0].length,st),ot[ht]=new Array(st),ot[Et]=new Array(st),ut=0;ut=0;ct--){for(var Pt=0;ct>=0;){var Kt=!0;for(ut=0;ut=0&&Pt++,Tt=Tt.dblp(Pt),ct<0)break;for(ut=0;ut0?gt=at[ut][zt-1>>1]:zt<0&&(gt=at[ut][-zt-1>>1].neg()),gt.type==="affine"?Tt=Tt.mixedAdd(gt):Tt=Tt.add(gt))}}for(ct=0;ct=Math.ceil((et.bitLength()+1)/tt.step):!1};BasePoint.prototype._getDoubles=function $(et,tt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var rt=[this],nt=this,it=0;it=0&&(dt=st,ht=ct),ut.negative&&(ut=ut.neg(),gt=gt.neg()),dt.negative&&(dt=dt.neg(),ht=ht.neg()),[{a:ut,b:gt},{a:dt,b:ht}]};ShortCurve.prototype._endoSplit=function $(et){var tt=this.endo.basis,rt=tt[0],nt=tt[1],it=nt.b.mul(et).divRound(this.n),At=rt.b.neg().mul(et).divRound(this.n),at=it.mul(rt.a),ot=At.mul(nt.a),st=it.mul(rt.b),ct=At.mul(nt.b),ut=et.sub(at).sub(ot),gt=st.add(ct).neg();return{k1:ut,k2:gt}};ShortCurve.prototype.pointFromX=function $(et,tt){et=new BN$6(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr().redMul(et).redIAdd(et.redMul(this.a)).redIAdd(this.b),nt=rt.redSqrt();if(nt.redSqr().redSub(rt).cmp(this.zero)!==0)throw new Error("invalid point");var it=nt.fromRed().isOdd();return(tt&&!it||!tt&&it)&&(nt=nt.redNeg()),this.point(et,nt)};ShortCurve.prototype.validate=function $(et){if(et.inf)return!0;var tt=et.x,rt=et.y,nt=this.a.redMul(tt),it=tt.redSqr().redMul(tt).redIAdd(nt).redIAdd(this.b);return rt.redSqr().redISub(it).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function $(et,tt,rt){for(var nt=this._endoWnafT1,it=this._endoWnafT2,At=0;At":""};Point$2.prototype.isInfinity=function $(){return this.inf};Point$2.prototype.add=function $(et){if(this.inf)return et;if(et.inf)return this;if(this.eq(et))return this.dbl();if(this.neg().eq(et))return this.curve.point(null,null);if(this.x.cmp(et.x)===0)return this.curve.point(null,null);var tt=this.y.redSub(et.y);tt.cmpn(0)!==0&&(tt=tt.redMul(this.x.redSub(et.x).redInvm()));var rt=tt.redSqr().redISub(this.x).redISub(et.x),nt=tt.redMul(this.x.redSub(rt)).redISub(this.y);return this.curve.point(rt,nt)};Point$2.prototype.dbl=function $(){if(this.inf)return this;var et=this.y.redAdd(this.y);if(et.cmpn(0)===0)return this.curve.point(null,null);var tt=this.curve.a,rt=this.x.redSqr(),nt=et.redInvm(),it=rt.redAdd(rt).redIAdd(rt).redIAdd(tt).redMul(nt),At=it.redSqr().redISub(this.x.redAdd(this.x)),at=it.redMul(this.x.redSub(At)).redISub(this.y);return this.curve.point(At,at)};Point$2.prototype.getX=function $(){return this.x.fromRed()};Point$2.prototype.getY=function $(){return this.y.fromRed()};Point$2.prototype.mul=function $(et){return et=new BN$6(et,16),this.isInfinity()?this:this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve.endo?this.curve._endoWnafMulAdd([this],[et]):this.curve._wnafMul(this,et)};Point$2.prototype.mulAdd=function $(et,tt,rt){var nt=[this,tt],it=[et,rt];return this.curve.endo?this.curve._endoWnafMulAdd(nt,it):this.curve._wnafMulAdd(1,nt,it,2)};Point$2.prototype.jmulAdd=function $(et,tt,rt){var nt=[this,tt],it=[et,rt];return this.curve.endo?this.curve._endoWnafMulAdd(nt,it,!0):this.curve._wnafMulAdd(1,nt,it,2,!0)};Point$2.prototype.eq=function $(et){return this===et||this.inf===et.inf&&(this.inf||this.x.cmp(et.x)===0&&this.y.cmp(et.y)===0)};Point$2.prototype.neg=function $(et){if(this.inf)return this;var tt=this.curve.point(this.x,this.y.redNeg());if(et&&this.precomputed){var rt=this.precomputed,nt=function(it){return it.neg()};tt.precomputed={naf:rt.naf&&{wnd:rt.naf.wnd,points:rt.naf.points.map(nt)},doubles:rt.doubles&&{step:rt.doubles.step,points:rt.doubles.points.map(nt)}}}return tt};Point$2.prototype.toJ=function $(){if(this.inf)return this.curve.jpoint(null,null,null);var et=this.curve.jpoint(this.x,this.y,this.curve.one);return et};function JPoint($,et,tt,rt){Base$2.BasePoint.call(this,$,"jacobian"),et===null&&tt===null&&rt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$6(0)):(this.x=new BN$6(et,16),this.y=new BN$6(tt,16),this.z=new BN$6(rt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$3(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function $(et,tt,rt){return new JPoint(this,et,tt,rt)};JPoint.prototype.toP=function $(){if(this.isInfinity())return this.curve.point(null,null);var et=this.z.redInvm(),tt=et.redSqr(),rt=this.x.redMul(tt),nt=this.y.redMul(tt).redMul(et);return this.curve.point(rt,nt)};JPoint.prototype.neg=function $(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function $(et){if(this.isInfinity())return et;if(et.isInfinity())return this;var tt=et.z.redSqr(),rt=this.z.redSqr(),nt=this.x.redMul(tt),it=et.x.redMul(rt),At=this.y.redMul(tt.redMul(et.z)),at=et.y.redMul(rt.redMul(this.z)),ot=nt.redSub(it),st=At.redSub(at);if(ot.cmpn(0)===0)return st.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ct=ot.redSqr(),ut=ct.redMul(ot),gt=nt.redMul(ct),dt=st.redSqr().redIAdd(ut).redISub(gt).redISub(gt),ht=st.redMul(gt.redISub(dt)).redISub(At.redMul(ut)),Et=this.z.redMul(et.z).redMul(ot);return this.curve.jpoint(dt,ht,Et)};JPoint.prototype.mixedAdd=function $(et){if(this.isInfinity())return et.toJ();if(et.isInfinity())return this;var tt=this.z.redSqr(),rt=this.x,nt=et.x.redMul(tt),it=this.y,At=et.y.redMul(tt).redMul(this.z),at=rt.redSub(nt),ot=it.redSub(At);if(at.cmpn(0)===0)return ot.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var st=at.redSqr(),ct=st.redMul(at),ut=rt.redMul(st),gt=ot.redSqr().redIAdd(ct).redISub(ut).redISub(ut),dt=ot.redMul(ut.redISub(gt)).redISub(it.redMul(ct)),ht=this.z.redMul(at);return this.curve.jpoint(gt,dt,ht)};JPoint.prototype.dblp=function $(et){if(et===0)return this;if(this.isInfinity())return this;if(!et)return this.dbl();var tt;if(this.curve.zeroA||this.curve.threeA){var rt=this;for(tt=0;tt=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};JPoint.prototype.inspect=function $(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function $(){return this.z.cmpn(0)===0};var BN$5=bnExports,inherits$2=inherits_browserExports,Base$1=base,utils$i=utils$m;function MontCurve($){Base$1.call(this,"mont",$),this.a=new BN$5($.a,16).toRed(this.red),this.b=new BN$5($.b,16).toRed(this.red),this.i4=new BN$5(4).toRed(this.red).redInvm(),this.two=new BN$5(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$2(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function $(et){var tt=et.normalize().x,rt=tt.redSqr(),nt=rt.redMul(tt).redAdd(rt.redMul(this.a)).redAdd(tt),it=nt.redSqrt();return it.redSqr().cmp(nt)===0};function Point$1($,et,tt){Base$1.BasePoint.call(this,$,"projective"),et===null&&tt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$5(et,16),this.z=new BN$5(tt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$2(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function $(et,tt){return this.point(utils$i.toArray(et,tt),1)};MontCurve.prototype.point=function $(et,tt){return new Point$1(this,et,tt)};MontCurve.prototype.pointFromJSON=function $(et){return Point$1.fromJSON(this,et)};Point$1.prototype.precompute=function $(){};Point$1.prototype._encode=function $(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function $(et,tt){return new Point$1(et,tt[0],tt[1]||et.one)};Point$1.prototype.inspect=function $(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function $(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function $(){var et=this.x.redAdd(this.z),tt=et.redSqr(),rt=this.x.redSub(this.z),nt=rt.redSqr(),it=tt.redSub(nt),At=tt.redMul(nt),at=it.redMul(nt.redAdd(this.curve.a24.redMul(it)));return this.curve.point(At,at)};Point$1.prototype.add=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function $(et,tt){var rt=this.x.redAdd(this.z),nt=this.x.redSub(this.z),it=et.x.redAdd(et.z),At=et.x.redSub(et.z),at=At.redMul(rt),ot=it.redMul(nt),st=tt.z.redMul(at.redAdd(ot).redSqr()),ct=tt.x.redMul(at.redISub(ot).redSqr());return this.curve.point(st,ct)};Point$1.prototype.mul=function $(et){for(var tt=et.clone(),rt=this,nt=this.curve.point(null,null),it=this,At=[];tt.cmpn(0)!==0;tt.iushrn(1))At.push(tt.andln(1));for(var at=At.length-1;at>=0;at--)At[at]===0?(rt=rt.diffAdd(nt,it),nt=nt.dbl()):(nt=rt.diffAdd(nt,it),rt=rt.dbl());return nt};Point$1.prototype.mulAdd=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function $(et){return this.getX().cmp(et.getX())===0};Point$1.prototype.normalize=function $(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function $(){return this.normalize(),this.x.fromRed()};var utils$h=utils$m,BN$4=bnExports,inherits$1=inherits_browserExports,Base=base,assert$c=utils$h.assert;function EdwardsCurve($){this.twisted=($.a|0)!==1,this.mOneA=this.twisted&&($.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",$),this.a=new BN$4($.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$4($.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$4($.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=($.c|0)===1}inherits$1(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function $(et){return this.mOneA?et.redNeg():this.a.redMul(et)};EdwardsCurve.prototype._mulC=function $(et){return this.oneC?et:this.c.redMul(et)};EdwardsCurve.prototype.jpoint=function $(et,tt,rt,nt){return this.point(et,tt,rt,nt)};EdwardsCurve.prototype.pointFromX=function $(et,tt){et=new BN$4(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr(),nt=this.c2.redSub(this.a.redMul(rt)),it=this.one.redSub(this.c2.redMul(this.d).redMul(rt)),At=nt.redMul(it.redInvm()),at=At.redSqrt();if(at.redSqr().redSub(At).cmp(this.zero)!==0)throw new Error("invalid point");var ot=at.fromRed().isOdd();return(tt&&!ot||!tt&&ot)&&(at=at.redNeg()),this.point(et,at)};EdwardsCurve.prototype.pointFromY=function $(et,tt){et=new BN$4(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr(),nt=rt.redSub(this.c2),it=rt.redMul(this.d).redMul(this.c2).redSub(this.a),At=nt.redMul(it.redInvm());if(At.cmp(this.zero)===0){if(tt)throw new Error("invalid point");return this.point(this.zero,et)}var at=At.redSqrt();if(at.redSqr().redSub(At).cmp(this.zero)!==0)throw new Error("invalid point");return at.fromRed().isOdd()!==tt&&(at=at.redNeg()),this.point(at,et)};EdwardsCurve.prototype.validate=function $(et){if(et.isInfinity())return!0;et.normalize();var tt=et.x.redSqr(),rt=et.y.redSqr(),nt=tt.redMul(this.a).redAdd(rt),it=this.c2.redMul(this.one.redAdd(this.d.redMul(tt).redMul(rt)));return nt.cmp(it)===0};function Point($,et,tt,rt,nt){Base.BasePoint.call(this,$,"projective"),et===null&&tt===null&&rt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$4(et,16),this.y=new BN$4(tt,16),this.z=rt?new BN$4(rt,16):this.curve.one,this.t=nt&&new BN$4(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$1(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function $(et){return Point.fromJSON(this,et)};EdwardsCurve.prototype.point=function $(et,tt,rt,nt){return new Point(this,et,tt,rt,nt)};Point.fromJSON=function $(et,tt){return new Point(et,tt[0],tt[1],tt[2])};Point.prototype.inspect=function $(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function $(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function $(){var et=this.x.redSqr(),tt=this.y.redSqr(),rt=this.z.redSqr();rt=rt.redIAdd(rt);var nt=this.curve._mulA(et),it=this.x.redAdd(this.y).redSqr().redISub(et).redISub(tt),At=nt.redAdd(tt),at=At.redSub(rt),ot=nt.redSub(tt),st=it.redMul(at),ct=At.redMul(ot),ut=it.redMul(ot),gt=at.redMul(At);return this.curve.point(st,ct,gt,ut)};Point.prototype._projDbl=function $(){var et=this.x.redAdd(this.y).redSqr(),tt=this.x.redSqr(),rt=this.y.redSqr(),nt,it,At,at,ot,st;if(this.curve.twisted){at=this.curve._mulA(tt);var ct=at.redAdd(rt);this.zOne?(nt=et.redSub(tt).redSub(rt).redMul(ct.redSub(this.curve.two)),it=ct.redMul(at.redSub(rt)),At=ct.redSqr().redSub(ct).redSub(ct)):(ot=this.z.redSqr(),st=ct.redSub(ot).redISub(ot),nt=et.redSub(tt).redISub(rt).redMul(st),it=ct.redMul(at.redSub(rt)),At=ct.redMul(st))}else at=tt.redAdd(rt),ot=this.curve._mulC(this.z).redSqr(),st=at.redSub(ot).redSub(ot),nt=this.curve._mulC(et.redISub(at)).redMul(st),it=this.curve._mulC(at).redMul(tt.redISub(rt)),At=at.redMul(st);return this.curve.point(nt,it,At)};Point.prototype.dbl=function $(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function $(et){var tt=this.y.redSub(this.x).redMul(et.y.redSub(et.x)),rt=this.y.redAdd(this.x).redMul(et.y.redAdd(et.x)),nt=this.t.redMul(this.curve.dd).redMul(et.t),it=this.z.redMul(et.z.redAdd(et.z)),At=rt.redSub(tt),at=it.redSub(nt),ot=it.redAdd(nt),st=rt.redAdd(tt),ct=At.redMul(at),ut=ot.redMul(st),gt=At.redMul(st),dt=at.redMul(ot);return this.curve.point(ct,ut,dt,gt)};Point.prototype._projAdd=function $(et){var tt=this.z.redMul(et.z),rt=tt.redSqr(),nt=this.x.redMul(et.x),it=this.y.redMul(et.y),At=this.curve.d.redMul(nt).redMul(it),at=rt.redSub(At),ot=rt.redAdd(At),st=this.x.redAdd(this.y).redMul(et.x.redAdd(et.y)).redISub(nt).redISub(it),ct=tt.redMul(at).redMul(st),ut,gt;return this.curve.twisted?(ut=tt.redMul(ot).redMul(it.redSub(this.curve._mulA(nt))),gt=at.redMul(ot)):(ut=tt.redMul(ot).redMul(it.redSub(nt)),gt=this.curve._mulC(at).redMul(ot)),this.curve.point(ct,ut,gt)};Point.prototype.add=function $(et){return this.isInfinity()?et:et.isInfinity()?this:this.curve.extended?this._extAdd(et):this._projAdd(et)};Point.prototype.mul=function $(et){return this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve._wnafMul(this,et)};Point.prototype.mulAdd=function $(et,tt,rt){return this.curve._wnafMulAdd(1,[this,tt],[et,rt],2,!1)};Point.prototype.jmulAdd=function $(et,tt,rt){return this.curve._wnafMulAdd(1,[this,tt],[et,rt],2,!0)};Point.prototype.normalize=function $(){if(this.zOne)return this;var et=this.z.redInvm();return this.x=this.x.redMul(et),this.y=this.y.redMul(et),this.t&&(this.t=this.t.redMul(et)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function $(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function $(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function $(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function $(et){return this===et||this.getX().cmp(et.getX())===0&&this.getY().cmp(et.getY())===0};Point.prototype.eqXToP=function $(et){var tt=et.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(tt)===0)return!0;for(var rt=et.clone(),nt=this.curve.redN.redMul(this.z);;){if(rt.iadd(this.curve.n),rt.cmp(this.curve.p)>=0)return!1;if(tt.redIAdd(nt),this.x.cmp(tt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function($){var et=$;et.base=base,et.short=short,et.mont=mont,et.edwards=edwards})(curve);var curves$2={},hash$4={},utils$g={},assert$b=minimalisticAssert,inherits=inherits_browserExports;utils$g.inherits=inherits;function isSurrogatePair($,et){return($.charCodeAt(et)&64512)!==55296||et<0||et+1>=$.length?!1:($.charCodeAt(et+1)&64512)===56320}function toArray($,et){if(Array.isArray($))return $.slice();if(!$)return[];var tt=[];if(typeof $=="string")if(et){if(et==="hex")for($=$.replace(/[^a-z0-9]+/ig,""),$.length%2!==0&&($="0"+$),nt=0;nt<$.length;nt+=2)tt.push(parseInt($[nt]+$[nt+1],16))}else for(var rt=0,nt=0;nt<$.length;nt++){var it=$.charCodeAt(nt);it<128?tt[rt++]=it:it<2048?(tt[rt++]=it>>6|192,tt[rt++]=it&63|128):isSurrogatePair($,nt)?(it=65536+((it&1023)<<10)+($.charCodeAt(++nt)&1023),tt[rt++]=it>>18|240,tt[rt++]=it>>12&63|128,tt[rt++]=it>>6&63|128,tt[rt++]=it&63|128):(tt[rt++]=it>>12|224,tt[rt++]=it>>6&63|128,tt[rt++]=it&63|128)}else for(nt=0;nt<$.length;nt++)tt[nt]=$[nt]|0;return tt}utils$g.toArray=toArray;function toHex$2($){for(var et="",tt=0;tt<$.length;tt++)et+=zero2($[tt].toString(16));return et}utils$g.toHex=toHex$2;function htonl($){var et=$>>>24|$>>>8&65280|$<<8&16711680|($&255)<<24;return et>>>0}utils$g.htonl=htonl;function toHex32($,et){for(var tt="",rt=0;rt<$.length;rt++){var nt=$[rt];et==="little"&&(nt=htonl(nt)),tt+=zero8(nt.toString(16))}return tt}utils$g.toHex32=toHex32;function zero2($){return $.length===1?"0"+$:$}utils$g.zero2=zero2;function zero8($){return $.length===7?"0"+$:$.length===6?"00"+$:$.length===5?"000"+$:$.length===4?"0000"+$:$.length===3?"00000"+$:$.length===2?"000000"+$:$.length===1?"0000000"+$:$}utils$g.zero8=zero8;function join32($,et,tt,rt){var nt=tt-et;assert$b(nt%4===0);for(var it=new Array(nt/4),At=0,at=et;At>>0}return it}utils$g.join32=join32;function split32($,et){for(var tt=new Array($.length*4),rt=0,nt=0;rt<$.length;rt++,nt+=4){var it=$[rt];et==="big"?(tt[nt]=it>>>24,tt[nt+1]=it>>>16&255,tt[nt+2]=it>>>8&255,tt[nt+3]=it&255):(tt[nt+3]=it>>>24,tt[nt+2]=it>>>16&255,tt[nt+1]=it>>>8&255,tt[nt]=it&255)}return tt}utils$g.split32=split32;function rotr32$1($,et){return $>>>et|$<<32-et}utils$g.rotr32=rotr32$1;function rotl32$2($,et){return $<>>32-et}utils$g.rotl32=rotl32$2;function sum32$3($,et){return $+et>>>0}utils$g.sum32=sum32$3;function sum32_3$1($,et,tt){return $+et+tt>>>0}utils$g.sum32_3=sum32_3$1;function sum32_4$2($,et,tt,rt){return $+et+tt+rt>>>0}utils$g.sum32_4=sum32_4$2;function sum32_5$2($,et,tt,rt,nt){return $+et+tt+rt+nt>>>0}utils$g.sum32_5=sum32_5$2;function sum64$1($,et,tt,rt){var nt=$[et],it=$[et+1],At=rt+it>>>0,at=(At>>0,$[et+1]=At}utils$g.sum64=sum64$1;function sum64_hi$1($,et,tt,rt){var nt=et+rt>>>0,it=(nt>>0}utils$g.sum64_hi=sum64_hi$1;function sum64_lo$1($,et,tt,rt){var nt=et+rt;return nt>>>0}utils$g.sum64_lo=sum64_lo$1;function sum64_4_hi$1($,et,tt,rt,nt,it,At,at){var ot=0,st=et;st=st+rt>>>0,ot+=st>>0,ot+=st>>0,ot+=st>>0}utils$g.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1($,et,tt,rt,nt,it,At,at){var ot=et+rt+it+at;return ot>>>0}utils$g.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1($,et,tt,rt,nt,it,At,at,ot,st){var ct=0,ut=et;ut=ut+rt>>>0,ct+=ut>>0,ct+=ut>>0,ct+=ut>>0,ct+=ut>>0}utils$g.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1($,et,tt,rt,nt,it,At,at,ot,st){var ct=et+rt+it+at+st;return ct>>>0}utils$g.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1($,et,tt){var rt=et<<32-tt|$>>>tt;return rt>>>0}utils$g.rotr64_hi=rotr64_hi$1;function rotr64_lo$1($,et,tt){var rt=$<<32-tt|et>>>tt;return rt>>>0}utils$g.rotr64_lo=rotr64_lo$1;function shr64_hi$1($,et,tt){return $>>>tt}utils$g.shr64_hi=shr64_hi$1;function shr64_lo$1($,et,tt){var rt=$<<32-tt|et>>>tt;return rt>>>0}utils$g.shr64_lo=shr64_lo$1;var common$5={},utils$f=utils$g,assert$a=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function $(et,tt){if(et=utils$f.toArray(et,tt),this.pending?this.pending=this.pending.concat(et):this.pending=et,this.pendingTotal+=et.length,this.pending.length>=this._delta8){et=this.pending;var rt=et.length%this._delta8;this.pending=et.slice(et.length-rt,et.length),this.pending.length===0&&(this.pending=null),et=utils$f.join32(et,0,et.length-rt,this.endian);for(var nt=0;nt>>24&255,nt[it++]=et>>>16&255,nt[it++]=et>>>8&255,nt[it++]=et&255}else for(nt[it++]=et&255,nt[it++]=et>>>8&255,nt[it++]=et>>>16&255,nt[it++]=et>>>24&255,nt[it++]=0,nt[it++]=0,nt[it++]=0,nt[it++]=0,At=8;At>>3}common$4.g0_256=g0_256$1;function g1_256$1($){return rotr32($,17)^rotr32($,19)^$>>>10}common$4.g1_256=g1_256$1;var utils$d=utils$g,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$d.rotl32,sum32$2=utils$d.sum32,sum32_5$1=utils$d.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$d.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function $(et,tt){for(var rt=this.W,nt=0;nt<16;nt++)rt[nt]=et[tt+nt];for(;ntthis.blockSize&&(et=new this.Hash().update(et).digest()),assert$7(et.length<=this.blockSize);for(var tt=et.length;tt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(et,tt,rt)}var hmacDrbg=HmacDRBG$1;HmacDRBG$1.prototype._init=function $(et,tt,rt){var nt=et.concat(tt).concat(rt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var it=0;it=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(et.concat(rt||[])),this._reseed=1};HmacDRBG$1.prototype.generate=function $(et,tt,rt,nt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof tt!="string"&&(nt=rt,rt=tt,tt=null),rt&&(rt=utils$6.toArray(rt,nt||"hex"),this._update(rt));for(var it=[];it.length"};var BN$2=bnExports,utils$4=utils$m,assert$4=utils$4.assert;function Signature$3($,et){if($ instanceof Signature$3)return $;this._importDER($,et)||(assert$4($.r&&$.s,"Signature without r or s"),this.r=new BN$2($.r,16),this.s=new BN$2($.s,16),$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=$.recoveryParam)}var signature$1=Signature$3;function Position(){this.place=0}function getLength($,et){var tt=$[et.place++];if(!(tt&128))return tt;var rt=tt&15;if(rt===0||rt>4)return!1;for(var nt=0,it=0,At=et.place;it>>=0;return nt<=127?!1:(et.place=At,nt)}function rmPadding($){for(var et=0,tt=$.length-1;!$[et]&&!($[et+1]&128)&&et>>3);for($.push(tt|128);--tt;)$.push(et>>>(tt<<3)&255);$.push(et)}Signature$3.prototype.toDER=function $(et){var tt=this.r.toArray(),rt=this.s.toArray();for(tt[0]&128&&(tt=[0].concat(tt)),rt[0]&128&&(rt=[0].concat(rt)),tt=rmPadding(tt),rt=rmPadding(rt);!rt[0]&&!(rt[1]&128);)rt=rt.slice(1);var nt=[2];constructLength(nt,tt.length),nt=nt.concat(tt),nt.push(2),constructLength(nt,rt.length);var it=nt.concat(rt),At=[48];return constructLength(At,it.length),At=At.concat(it),utils$4.encode(At,et)};var BN$1=bnExports,HmacDRBG=hmacDrbg,utils$3=utils$m,curves$1=curves$2,rand=brorandExports,assert$3=utils$3.assert,KeyPair$2=key$1,Signature$2=signature$1;function EC$1($){if(!(this instanceof EC$1))return new EC$1($);typeof $=="string"&&(assert$3(Object.prototype.hasOwnProperty.call(curves$1,$),"Unknown curve "+$),$=curves$1[$]),$ instanceof curves$1.PresetCurve&&($={curve:$}),this.curve=$.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=$.curve.g,this.g.precompute($.curve.n.bitLength()+1),this.hash=$.hash||$.curve.hash}var ec$1=EC$1;EC$1.prototype.keyPair=function $(et){return new KeyPair$2(this,et)};EC$1.prototype.keyFromPrivate=function $(et,tt){return KeyPair$2.fromPrivate(this,et,tt)};EC$1.prototype.keyFromPublic=function $(et,tt){return KeyPair$2.fromPublic(this,et,tt)};EC$1.prototype.genKeyPair=function $(et){et||(et={});for(var tt=new HmacDRBG({hash:this.hash,pers:et.pers,persEnc:et.persEnc||"utf8",entropy:et.entropy||rand(this.hash.hmacStrength),entropyEnc:et.entropy&&et.entropyEnc||"utf8",nonce:this.n.toArray()}),rt=this.n.byteLength(),nt=this.n.sub(new BN$1(2));;){var it=new BN$1(tt.generate(rt));if(!(it.cmp(nt)>0))return it.iaddn(1),this.keyFromPrivate(it)}};EC$1.prototype._truncateToN=function $(et,tt){var rt=et.byteLength()*8-this.n.bitLength();return rt>0&&(et=et.ushrn(rt)),!tt&&et.cmp(this.n)>=0?et.sub(this.n):et};EC$1.prototype.sign=function $(et,tt,rt,nt){typeof rt=="object"&&(nt=rt,rt=null),nt||(nt={}),tt=this.keyFromPrivate(tt,rt),et=this._truncateToN(new BN$1(et,16));for(var it=this.n.byteLength(),At=tt.getPrivate().toArray("be",it),at=et.toArray("be",it),ot=new HmacDRBG({hash:this.hash,entropy:At,nonce:at,pers:nt.pers,persEnc:nt.persEnc||"utf8"}),st=this.n.sub(new BN$1(1)),ct=0;;ct++){var ut=nt.k?nt.k(ct):new BN$1(ot.generate(this.n.byteLength()));if(ut=this._truncateToN(ut,!0),!(ut.cmpn(1)<=0||ut.cmp(st)>=0)){var gt=this.g.mul(ut);if(!gt.isInfinity()){var dt=gt.getX(),ht=dt.umod(this.n);if(ht.cmpn(0)!==0){var Et=ut.invm(this.n).mul(ht.mul(tt.getPrivate()).iadd(et));if(Et=Et.umod(this.n),Et.cmpn(0)!==0){var wt=(gt.getY().isOdd()?1:0)|(dt.cmp(ht)!==0?2:0);return nt.canonical&&Et.cmp(this.nh)>0&&(Et=this.n.sub(Et),wt^=1),new Signature$2({r:ht,s:Et,recoveryParam:wt})}}}}}};EC$1.prototype.verify=function $(et,tt,rt,nt){et=this._truncateToN(new BN$1(et,16)),rt=this.keyFromPublic(rt,nt),tt=new Signature$2(tt,"hex");var it=tt.r,At=tt.s;if(it.cmpn(1)<0||it.cmp(this.n)>=0||At.cmpn(1)<0||At.cmp(this.n)>=0)return!1;var at=At.invm(this.n),ot=at.mul(et).umod(this.n),st=at.mul(it).umod(this.n),ct;return this.curve._maxwellTrick?(ct=this.g.jmulAdd(ot,rt.getPublic(),st),ct.isInfinity()?!1:ct.eqXToP(it)):(ct=this.g.mulAdd(ot,rt.getPublic(),st),ct.isInfinity()?!1:ct.getX().umod(this.n).cmp(it)===0)};EC$1.prototype.recoverPubKey=function($,et,tt,rt){assert$3((3&tt)===tt,"The recovery param is more than two bits"),et=new Signature$2(et,rt);var nt=this.n,it=new BN$1($),At=et.r,at=et.s,ot=tt&1,st=tt>>1;if(At.cmp(this.curve.p.umod(this.curve.n))>=0&&st)throw new Error("Unable to find sencond key candinate");st?At=this.curve.pointFromX(At.add(this.curve.n),ot):At=this.curve.pointFromX(At,ot);var ct=et.r.invm(nt),ut=nt.sub(it).mul(ct).umod(nt),gt=at.mul(ct).umod(nt);return this.g.mulAdd(ut,At,gt)};EC$1.prototype.getKeyRecoveryParam=function($,et,tt,rt){if(et=new Signature$2(et,rt),et.recoveryParam!==null)return et.recoveryParam;for(var nt=0;nt<4;nt++){var it;try{it=this.recoverPubKey($,et,nt)}catch{continue}if(it.eq(tt))return nt}throw new Error("Unable to find valid recovery factor")};var utils$2=utils$m,assert$2=utils$2.assert,parseBytes$2=utils$2.parseBytes,cachedProperty$1=utils$2.cachedProperty;function KeyPair$1($,et){this.eddsa=$,this._secret=parseBytes$2(et.secret),$.isPoint(et.pub)?this._pub=et.pub:this._pubBytes=parseBytes$2(et.pub)}KeyPair$1.fromPublic=function $(et,tt){return tt instanceof KeyPair$1?tt:new KeyPair$1(et,{pub:tt})};KeyPair$1.fromSecret=function $(et,tt){return tt instanceof KeyPair$1?tt:new KeyPair$1(et,{secret:tt})};KeyPair$1.prototype.secret=function $(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function $(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function $(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function $(){var et=this.eddsa,tt=this.hash(),rt=et.encodingLength-1,nt=tt.slice(0,et.encodingLength);return nt[0]&=248,nt[rt]&=127,nt[rt]|=64,nt});cachedProperty$1(KeyPair$1,"priv",function $(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function $(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function $(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function $(et){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(et,this)};KeyPair$1.prototype.verify=function $(et,tt){return this.eddsa.verify(et,tt,this)};KeyPair$1.prototype.getSecret=function $(et){return assert$2(this._secret,"KeyPair is public only"),utils$2.encode(this.secret(),et)};KeyPair$1.prototype.getPublic=function $(et){return utils$2.encode(this.pubBytes(),et)};var key=KeyPair$1,BN=bnExports,utils$1=utils$m,assert$1=utils$1.assert,cachedProperty=utils$1.cachedProperty,parseBytes$1=utils$1.parseBytes;function Signature$1($,et){this.eddsa=$,typeof et!="object"&&(et=parseBytes$1(et)),Array.isArray(et)&&(et={R:et.slice(0,$.encodingLength),S:et.slice($.encodingLength)}),assert$1(et.R&&et.S,"Signature without R or S"),$.isPoint(et.R)&&(this._R=et.R),et.S instanceof BN&&(this._S=et.S),this._Rencoded=Array.isArray(et.R)?et.R:et.Rencoded,this._Sencoded=Array.isArray(et.S)?et.S:et.Sencoded}cachedProperty(Signature$1,"S",function $(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function $(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function $(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function $(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function $(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function $(){return utils$1.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$2,utils=utils$m,assert=utils.assert,parseBytes=utils.parseBytes,KeyPair=key,Signature=signature;function EDDSA($){if(assert($==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA($);$=curves[$].curve,this.curve=$,this.g=$.g,this.g.precompute($.n.bitLength()+1),this.pointClass=$.point().constructor,this.encodingLength=Math.ceil($.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function $(et,tt){et=parseBytes(et);var rt=this.keyFromSecret(tt),nt=this.hashInt(rt.messagePrefix(),et),it=this.g.mul(nt),At=this.encodePoint(it),at=this.hashInt(At,rt.pubBytes(),et).mul(rt.priv()),ot=nt.add(at).umod(this.curve.n);return this.makeSignature({R:it,S:ot,Rencoded:At})};EDDSA.prototype.verify=function $(et,tt,rt){et=parseBytes(et),tt=this.makeSignature(tt);var nt=this.keyFromPublic(rt),it=this.hashInt(tt.Rencoded(),nt.pubBytes(),et),At=this.g.mul(tt.S()),at=tt.R().add(nt.pub().mul(it));return at.eq(At)};EDDSA.prototype.hashInt=function $(){for(var et=this.hash(),tt=0;tt>24&255)===255){var ot=at>>16&255,st=at>>8&255,ct=at&255;ot===255?(ot=0,st===255?(st=0,ct===255?ct=0:++ct):++st):++ot,at=0,at+=ot<<16,at+=st<<8,at+=ct}else at+=1<<24;return at}function it(at){return(at[0]=nt(at[0]))===0&&(at[1]=nt(at[1])),at}var At=rt.Encryptor=rt.extend({processBlock:function(at,ot){var st=this._cipher,ct=st.blockSize,ut=this._iv,gt=this._counter;ut&&(gt=this._counter=ut.slice(0),this._iv=void 0),it(gt);var dt=gt.slice(0);st.encryptBlock(dt,0);for(var ht=0;ht>>2]|=at<<24-ot%4*8,rt.sigBytes+=at},unpad:function(rt){var nt=rt.words[rt.sigBytes-1>>>2]&255;rt.sigBytes-=nt}},tt.pad.Ansix923})}(padAnsix923)),padAnsix923.exports}var padIso10126={exports:{}},hasRequiredPadIso10126;function requirePadIso10126(){return hasRequiredPadIso10126||(hasRequiredPadIso10126=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.Iso10126={pad:function(rt,nt){var it=nt*4,At=it-rt.sigBytes%it;rt.concat(tt.lib.WordArray.random(At-1)).concat(tt.lib.WordArray.create([At<<24],1))},unpad:function(rt){var nt=rt.words[rt.sigBytes-1>>>2]&255;rt.sigBytes-=nt}},tt.pad.Iso10126})}(padIso10126)),padIso10126.exports}var padIso97971={exports:{}},hasRequiredPadIso97971;function requirePadIso97971(){return hasRequiredPadIso97971||(hasRequiredPadIso97971=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.Iso97971={pad:function(rt,nt){rt.concat(tt.lib.WordArray.create([2147483648],1)),tt.pad.ZeroPadding.pad(rt,nt)},unpad:function(rt){tt.pad.ZeroPadding.unpad(rt),rt.sigBytes--}},tt.pad.Iso97971})}(padIso97971)),padIso97971.exports}var padZeropadding={exports:{}},hasRequiredPadZeropadding;function requirePadZeropadding(){return hasRequiredPadZeropadding||(hasRequiredPadZeropadding=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.ZeroPadding={pad:function(rt,nt){var it=nt*4;rt.clamp(),rt.sigBytes+=it-(rt.sigBytes%it||it)},unpad:function(rt){for(var nt=rt.words,it=rt.sigBytes-1,it=rt.sigBytes-1;it>=0;it--)if(nt[it>>>2]>>>24-it%4*8&255){rt.sigBytes=it+1;break}}},tt.pad.ZeroPadding})}(padZeropadding)),padZeropadding.exports}var padNopadding={exports:{}},hasRequiredPadNopadding;function requirePadNopadding(){return hasRequiredPadNopadding||(hasRequiredPadNopadding=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return tt.pad.NoPadding={pad:function(){},unpad:function(){}},tt.pad.NoPadding})}(padNopadding)),padNopadding.exports}var formatHex={exports:{}},hasRequiredFormatHex;function requireFormatHex(){return hasRequiredFormatHex||(hasRequiredFormatHex=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireCipherCore())})(commonjsGlobal,function(tt){return function(rt){var nt=tt,it=nt.lib,At=it.CipherParams,at=nt.enc,ot=at.Hex,st=nt.format;st.Hex={stringify:function(ct){return ct.ciphertext.toString(ot)},parse:function(ct){var ut=ot.parse(ct);return At.create({ciphertext:ut})}}}(),tt.format.Hex})}(formatHex)),formatHex.exports}var aes={exports:{}},hasRequiredAes;function requireAes(){return hasRequiredAes||(hasRequiredAes=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.BlockCipher,At=rt.algo,at=[],ot=[],st=[],ct=[],ut=[],gt=[],dt=[],ht=[],Et=[],wt=[];(function(){for(var Qt=[],$t=0;$t<256;$t++)$t<128?Qt[$t]=$t<<1:Qt[$t]=$t<<1^283;for(var Gt=0,Tt=0,$t=0;$t<256;$t++){var Pt=Tt^Tt<<1^Tt<<2^Tt<<3^Tt<<4;Pt=Pt>>>8^Pt&255^99,at[Gt]=Pt,ot[Pt]=Gt;var Kt=Qt[Gt],ir=Qt[Kt],jt=Qt[ir],Mt=Qt[Pt]*257^Pt*16843008;st[Gt]=Mt<<24|Mt>>>8,ct[Gt]=Mt<<16|Mt>>>16,ut[Gt]=Mt<<8|Mt>>>24,gt[Gt]=Mt;var Mt=jt*16843009^ir*65537^Kt*257^Gt*16843008;dt[Pt]=Mt<<24|Mt>>>8,ht[Pt]=Mt<<16|Mt>>>16,Et[Pt]=Mt<<8|Mt>>>24,wt[Pt]=Mt,Gt?(Gt=Kt^Qt[Qt[Qt[jt^Kt]]],Tt^=Qt[Qt[Tt]]):Gt=Tt=1}})();var mt=[0,1,2,4,8,16,32,64,128,27,54],pt=At.AES=it.extend({_doReset:function(){var Qt;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var $t=this._keyPriorReset=this._key,Gt=$t.words,Tt=$t.sigBytes/4,Pt=this._nRounds=Tt+6,Kt=(Pt+1)*4,ir=this._keySchedule=[],jt=0;jt6&&jt%Tt==4&&(Qt=at[Qt>>>24]<<24|at[Qt>>>16&255]<<16|at[Qt>>>8&255]<<8|at[Qt&255]):(Qt=Qt<<8|Qt>>>24,Qt=at[Qt>>>24]<<24|at[Qt>>>16&255]<<16|at[Qt>>>8&255]<<8|at[Qt&255],Qt^=mt[jt/Tt|0]<<24),ir[jt]=ir[jt-Tt]^Qt);for(var Mt=this._invKeySchedule=[],Bt=0;Bt>>24]]^ht[at[Qt>>>16&255]]^Et[at[Qt>>>8&255]]^wt[at[Qt&255]]}}},encryptBlock:function(Qt,$t){this._doCryptBlock(Qt,$t,this._keySchedule,st,ct,ut,gt,at)},decryptBlock:function(Qt,$t){var Gt=Qt[$t+1];Qt[$t+1]=Qt[$t+3],Qt[$t+3]=Gt,this._doCryptBlock(Qt,$t,this._invKeySchedule,dt,ht,Et,wt,ot);var Gt=Qt[$t+1];Qt[$t+1]=Qt[$t+3],Qt[$t+3]=Gt},_doCryptBlock:function(Qt,$t,Gt,Tt,Pt,Kt,ir,jt){for(var Mt=this._nRounds,Bt=Qt[$t]^Gt[0],vt=Qt[$t+1]^Gt[1],Nt=Qt[$t+2]^Gt[2],Ut=Qt[$t+3]^Gt[3],Jt=4,rr=1;rr>>24]^Pt[vt>>>16&255]^Kt[Nt>>>8&255]^ir[Ut&255]^Gt[Jt++],Ot=Tt[vt>>>24]^Pt[Nt>>>16&255]^Kt[Ut>>>8&255]^ir[Bt&255]^Gt[Jt++],bt=Tt[Nt>>>24]^Pt[Ut>>>16&255]^Kt[Bt>>>8&255]^ir[vt&255]^Gt[Jt++],kt=Tt[Ut>>>24]^Pt[Bt>>>16&255]^Kt[vt>>>8&255]^ir[Nt&255]^Gt[Jt++];Bt=Wt,vt=Ot,Nt=bt,Ut=kt}var Wt=(jt[Bt>>>24]<<24|jt[vt>>>16&255]<<16|jt[Nt>>>8&255]<<8|jt[Ut&255])^Gt[Jt++],Ot=(jt[vt>>>24]<<24|jt[Nt>>>16&255]<<16|jt[Ut>>>8&255]<<8|jt[Bt&255])^Gt[Jt++],bt=(jt[Nt>>>24]<<24|jt[Ut>>>16&255]<<16|jt[Bt>>>8&255]<<8|jt[vt&255])^Gt[Jt++],kt=(jt[Ut>>>24]<<24|jt[Bt>>>16&255]<<16|jt[vt>>>8&255]<<8|jt[Nt&255])^Gt[Jt++];Qt[$t]=Wt,Qt[$t+1]=Ot,Qt[$t+2]=bt,Qt[$t+3]=kt},keySize:256/32});rt.AES=it._createHelper(pt)}(),tt.AES})}(aes)),aes.exports}var tripledes={exports:{}},hasRequiredTripledes;function requireTripledes(){return hasRequiredTripledes||(hasRequiredTripledes=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.WordArray,At=nt.BlockCipher,at=rt.algo,ot=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],st=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],ct=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],ut=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],gt=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],dt=at.DES=At.extend({_doReset:function(){for(var mt=this._key,pt=mt.words,Qt=[],$t=0;$t<56;$t++){var Gt=ot[$t]-1;Qt[$t]=pt[Gt>>>5]>>>31-Gt%32&1}for(var Tt=this._subKeys=[],Pt=0;Pt<16;Pt++){for(var Kt=Tt[Pt]=[],ir=ct[Pt],$t=0;$t<24;$t++)Kt[$t/6|0]|=Qt[(st[$t]-1+ir)%28]<<31-$t%6,Kt[4+($t/6|0)]|=Qt[28+(st[$t+24]-1+ir)%28]<<31-$t%6;Kt[0]=Kt[0]<<1|Kt[0]>>>31;for(var $t=1;$t<7;$t++)Kt[$t]=Kt[$t]>>>($t-1)*4+3;Kt[7]=Kt[7]<<5|Kt[7]>>>27}for(var jt=this._invSubKeys=[],$t=0;$t<16;$t++)jt[$t]=Tt[15-$t]},encryptBlock:function(mt,pt){this._doCryptBlock(mt,pt,this._subKeys)},decryptBlock:function(mt,pt){this._doCryptBlock(mt,pt,this._invSubKeys)},_doCryptBlock:function(mt,pt,Qt){this._lBlock=mt[pt],this._rBlock=mt[pt+1],ht.call(this,4,252645135),ht.call(this,16,65535),Et.call(this,2,858993459),Et.call(this,8,16711935),ht.call(this,1,1431655765);for(var $t=0;$t<16;$t++){for(var Gt=Qt[$t],Tt=this._lBlock,Pt=this._rBlock,Kt=0,ir=0;ir<8;ir++)Kt|=ut[ir][((Pt^Gt[ir])>[ir])>>>0];this._lBlock=Pt,this._rBlock=Tt^Kt}var jt=this._lBlock;this._lBlock=this._rBlock,this._rBlock=jt,ht.call(this,1,1431655765),Et.call(this,8,16711935),Et.call(this,2,858993459),ht.call(this,16,65535),ht.call(this,4,252645135),mt[pt]=this._lBlock,mt[pt+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function ht(mt,pt){var Qt=(this._lBlock>>>mt^this._rBlock)&pt;this._rBlock^=Qt,this._lBlock^=Qt<>>mt^this._lBlock)&pt;this._lBlock^=Qt,this._rBlock^=Qt<192.");var Qt=pt.slice(0,2),$t=pt.length<4?pt.slice(0,2):pt.slice(2,4),Gt=pt.length<6?pt.slice(0,2):pt.slice(4,6);this._des1=dt.createEncryptor(it.create(Qt)),this._des2=dt.createEncryptor(it.create($t)),this._des3=dt.createEncryptor(it.create(Gt))},encryptBlock:function(mt,pt){this._des1.encryptBlock(mt,pt),this._des2.decryptBlock(mt,pt),this._des3.encryptBlock(mt,pt)},decryptBlock:function(mt,pt){this._des3.decryptBlock(mt,pt),this._des2.encryptBlock(mt,pt),this._des1.decryptBlock(mt,pt)},keySize:192/32,ivSize:64/32,blockSize:64/32});rt.TripleDES=At._createHelper(wt)}(),tt.TripleDES})}(tripledes)),tripledes.exports}var rc4={exports:{}},hasRequiredRc4;function requireRc4(){return hasRequiredRc4||(hasRequiredRc4=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=At.RC4=it.extend({_doReset:function(){for(var ct=this._key,ut=ct.words,gt=ct.sigBytes,dt=this._S=[],ht=0;ht<256;ht++)dt[ht]=ht;for(var ht=0,Et=0;ht<256;ht++){var wt=ht%gt,mt=ut[wt>>>2]>>>24-wt%4*8&255;Et=(Et+dt[ht]+mt)%256;var pt=dt[ht];dt[ht]=dt[Et],dt[Et]=pt}this._i=this._j=0},_doProcessBlock:function(ct,ut){ct[ut]^=ot.call(this)},keySize:256/32,ivSize:0});function ot(){for(var ct=this._S,ut=this._i,gt=this._j,dt=0,ht=0;ht<4;ht++){ut=(ut+1)%256,gt=(gt+ct[ut])%256;var Et=ct[ut];ct[ut]=ct[gt],ct[gt]=Et,dt|=ct[(ct[ut]+ct[gt])%256]<<24-ht*8}return this._i=ut,this._j=gt,dt}rt.RC4=it._createHelper(at);var st=At.RC4Drop=at.extend({cfg:at.cfg.extend({drop:192}),_doReset:function(){at._doReset.call(this);for(var ct=this.cfg.drop;ct>0;ct--)ot.call(this)}});rt.RC4Drop=it._createHelper(st)}(),tt.RC4})}(rc4)),rc4.exports}var rabbit={exports:{}},hasRequiredRabbit;function requireRabbit(){return hasRequiredRabbit||(hasRequiredRabbit=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=[],ot=[],st=[],ct=At.Rabbit=it.extend({_doReset:function(){for(var gt=this._key.words,dt=this.cfg.iv,ht=0;ht<4;ht++)gt[ht]=(gt[ht]<<8|gt[ht]>>>24)&16711935|(gt[ht]<<24|gt[ht]>>>8)&4278255360;var Et=this._X=[gt[0],gt[3]<<16|gt[2]>>>16,gt[1],gt[0]<<16|gt[3]>>>16,gt[2],gt[1]<<16|gt[0]>>>16,gt[3],gt[2]<<16|gt[1]>>>16],wt=this._C=[gt[2]<<16|gt[2]>>>16,gt[0]&4294901760|gt[1]&65535,gt[3]<<16|gt[3]>>>16,gt[1]&4294901760|gt[2]&65535,gt[0]<<16|gt[0]>>>16,gt[2]&4294901760|gt[3]&65535,gt[1]<<16|gt[1]>>>16,gt[3]&4294901760|gt[0]&65535];this._b=0;for(var ht=0;ht<4;ht++)ut.call(this);for(var ht=0;ht<8;ht++)wt[ht]^=Et[ht+4&7];if(dt){var mt=dt.words,pt=mt[0],Qt=mt[1],$t=(pt<<8|pt>>>24)&16711935|(pt<<24|pt>>>8)&4278255360,Gt=(Qt<<8|Qt>>>24)&16711935|(Qt<<24|Qt>>>8)&4278255360,Tt=$t>>>16|Gt&4294901760,Pt=Gt<<16|$t&65535;wt[0]^=$t,wt[1]^=Tt,wt[2]^=Gt,wt[3]^=Pt,wt[4]^=$t,wt[5]^=Tt,wt[6]^=Gt,wt[7]^=Pt;for(var ht=0;ht<4;ht++)ut.call(this)}},_doProcessBlock:function(gt,dt){var ht=this._X;ut.call(this),at[0]=ht[0]^ht[5]>>>16^ht[3]<<16,at[1]=ht[2]^ht[7]>>>16^ht[5]<<16,at[2]=ht[4]^ht[1]>>>16^ht[7]<<16,at[3]=ht[6]^ht[3]>>>16^ht[1]<<16;for(var Et=0;Et<4;Et++)at[Et]=(at[Et]<<8|at[Et]>>>24)&16711935|(at[Et]<<24|at[Et]>>>8)&4278255360,gt[dt+Et]^=at[Et]},blockSize:128/32,ivSize:64/32});function ut(){for(var gt=this._X,dt=this._C,ht=0;ht<8;ht++)ot[ht]=dt[ht];dt[0]=dt[0]+1295307597+this._b|0,dt[1]=dt[1]+3545052371+(dt[0]>>>0>>0?1:0)|0,dt[2]=dt[2]+886263092+(dt[1]>>>0>>0?1:0)|0,dt[3]=dt[3]+1295307597+(dt[2]>>>0>>0?1:0)|0,dt[4]=dt[4]+3545052371+(dt[3]>>>0>>0?1:0)|0,dt[5]=dt[5]+886263092+(dt[4]>>>0>>0?1:0)|0,dt[6]=dt[6]+1295307597+(dt[5]>>>0>>0?1:0)|0,dt[7]=dt[7]+3545052371+(dt[6]>>>0>>0?1:0)|0,this._b=dt[7]>>>0>>0?1:0;for(var ht=0;ht<8;ht++){var Et=gt[ht]+dt[ht],wt=Et&65535,mt=Et>>>16,pt=((wt*wt>>>17)+wt*mt>>>15)+mt*mt,Qt=((Et&4294901760)*Et|0)+((Et&65535)*Et|0);st[ht]=pt^Qt}gt[0]=st[0]+(st[7]<<16|st[7]>>>16)+(st[6]<<16|st[6]>>>16)|0,gt[1]=st[1]+(st[0]<<8|st[0]>>>24)+st[7]|0,gt[2]=st[2]+(st[1]<<16|st[1]>>>16)+(st[0]<<16|st[0]>>>16)|0,gt[3]=st[3]+(st[2]<<8|st[2]>>>24)+st[1]|0,gt[4]=st[4]+(st[3]<<16|st[3]>>>16)+(st[2]<<16|st[2]>>>16)|0,gt[5]=st[5]+(st[4]<<8|st[4]>>>24)+st[3]|0,gt[6]=st[6]+(st[5]<<16|st[5]>>>16)+(st[4]<<16|st[4]>>>16)|0,gt[7]=st[7]+(st[6]<<8|st[6]>>>24)+st[5]|0}rt.Rabbit=it._createHelper(ct)}(),tt.Rabbit})}(rabbit)),rabbit.exports}var rabbitLegacy={exports:{}},hasRequiredRabbitLegacy;function requireRabbitLegacy(){return hasRequiredRabbitLegacy||(hasRequiredRabbitLegacy=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.StreamCipher,At=rt.algo,at=[],ot=[],st=[],ct=At.RabbitLegacy=it.extend({_doReset:function(){var gt=this._key.words,dt=this.cfg.iv,ht=this._X=[gt[0],gt[3]<<16|gt[2]>>>16,gt[1],gt[0]<<16|gt[3]>>>16,gt[2],gt[1]<<16|gt[0]>>>16,gt[3],gt[2]<<16|gt[1]>>>16],Et=this._C=[gt[2]<<16|gt[2]>>>16,gt[0]&4294901760|gt[1]&65535,gt[3]<<16|gt[3]>>>16,gt[1]&4294901760|gt[2]&65535,gt[0]<<16|gt[0]>>>16,gt[2]&4294901760|gt[3]&65535,gt[1]<<16|gt[1]>>>16,gt[3]&4294901760|gt[0]&65535];this._b=0;for(var wt=0;wt<4;wt++)ut.call(this);for(var wt=0;wt<8;wt++)Et[wt]^=ht[wt+4&7];if(dt){var mt=dt.words,pt=mt[0],Qt=mt[1],$t=(pt<<8|pt>>>24)&16711935|(pt<<24|pt>>>8)&4278255360,Gt=(Qt<<8|Qt>>>24)&16711935|(Qt<<24|Qt>>>8)&4278255360,Tt=$t>>>16|Gt&4294901760,Pt=Gt<<16|$t&65535;Et[0]^=$t,Et[1]^=Tt,Et[2]^=Gt,Et[3]^=Pt,Et[4]^=$t,Et[5]^=Tt,Et[6]^=Gt,Et[7]^=Pt;for(var wt=0;wt<4;wt++)ut.call(this)}},_doProcessBlock:function(gt,dt){var ht=this._X;ut.call(this),at[0]=ht[0]^ht[5]>>>16^ht[3]<<16,at[1]=ht[2]^ht[7]>>>16^ht[5]<<16,at[2]=ht[4]^ht[1]>>>16^ht[7]<<16,at[3]=ht[6]^ht[3]>>>16^ht[1]<<16;for(var Et=0;Et<4;Et++)at[Et]=(at[Et]<<8|at[Et]>>>24)&16711935|(at[Et]<<24|at[Et]>>>8)&4278255360,gt[dt+Et]^=at[Et]},blockSize:128/32,ivSize:64/32});function ut(){for(var gt=this._X,dt=this._C,ht=0;ht<8;ht++)ot[ht]=dt[ht];dt[0]=dt[0]+1295307597+this._b|0,dt[1]=dt[1]+3545052371+(dt[0]>>>0>>0?1:0)|0,dt[2]=dt[2]+886263092+(dt[1]>>>0>>0?1:0)|0,dt[3]=dt[3]+1295307597+(dt[2]>>>0>>0?1:0)|0,dt[4]=dt[4]+3545052371+(dt[3]>>>0>>0?1:0)|0,dt[5]=dt[5]+886263092+(dt[4]>>>0>>0?1:0)|0,dt[6]=dt[6]+1295307597+(dt[5]>>>0>>0?1:0)|0,dt[7]=dt[7]+3545052371+(dt[6]>>>0>>0?1:0)|0,this._b=dt[7]>>>0>>0?1:0;for(var ht=0;ht<8;ht++){var Et=gt[ht]+dt[ht],wt=Et&65535,mt=Et>>>16,pt=((wt*wt>>>17)+wt*mt>>>15)+mt*mt,Qt=((Et&4294901760)*Et|0)+((Et&65535)*Et|0);st[ht]=pt^Qt}gt[0]=st[0]+(st[7]<<16|st[7]>>>16)+(st[6]<<16|st[6]>>>16)|0,gt[1]=st[1]+(st[0]<<8|st[0]>>>24)+st[7]|0,gt[2]=st[2]+(st[1]<<16|st[1]>>>16)+(st[0]<<16|st[0]>>>16)|0,gt[3]=st[3]+(st[2]<<8|st[2]>>>24)+st[1]|0,gt[4]=st[4]+(st[3]<<16|st[3]>>>16)+(st[2]<<16|st[2]>>>16)|0,gt[5]=st[5]+(st[4]<<8|st[4]>>>24)+st[3]|0,gt[6]=st[6]+(st[5]<<16|st[5]>>>16)+(st[4]<<16|st[4]>>>16)|0,gt[7]=st[7]+(st[6]<<8|st[6]>>>24)+st[5]|0}rt.RabbitLegacy=it._createHelper(ct)}(),tt.RabbitLegacy})}(rabbitLegacy)),rabbitLegacy.exports}var blowfish={exports:{}},hasRequiredBlowfish;function requireBlowfish(){return hasRequiredBlowfish||(hasRequiredBlowfish=1,function($,et){(function(tt,rt,nt){$.exports=rt(requireCore(),requireEncBase64(),requireMd5(),requireEvpkdf(),requireCipherCore())})(commonjsGlobal,function(tt){return function(){var rt=tt,nt=rt.lib,it=nt.BlockCipher,At=rt.algo;const at=16,ot=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],st=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var ct={pbox:[],sbox:[]};function ut(wt,mt){let pt=mt>>24&255,Qt=mt>>16&255,$t=mt>>8&255,Gt=mt&255,Tt=wt.sbox[0][pt]+wt.sbox[1][Qt];return Tt=Tt^wt.sbox[2][$t],Tt=Tt+wt.sbox[3][Gt],Tt}function gt(wt,mt,pt){let Qt=mt,$t=pt,Gt;for(let Tt=0;Tt1;--Tt)Qt=Qt^wt.pbox[Tt],$t=ut(wt,Qt)^$t,Gt=Qt,Qt=$t,$t=Gt;return Gt=Qt,Qt=$t,$t=Gt,$t=$t^wt.pbox[1],Qt=Qt^wt.pbox[0],{left:Qt,right:$t}}function ht(wt,mt,pt){for(let Pt=0;Pt<4;Pt++){wt.sbox[Pt]=[];for(let Kt=0;Kt<256;Kt++)wt.sbox[Pt][Kt]=st[Pt][Kt]}let Qt=0;for(let Pt=0;Pt=pt&&(Qt=0);let $t=0,Gt=0,Tt=0;for(let Pt=0;Pt$<0?(Number($)>>>0).toString(16):Number($).toString(16),generateChecksum=$=>{const et=crc32$1.unsigned(buffer$2.Buffer.from($));return intToHex(et).padStart(8,"0")},byteArrayToWordArray=$=>{const et=[];let tt;for(tt=0;tt<$.length;tt+=1)et[tt/4|0]|=$[tt]<<24-8*tt;return crypto$2.lib.WordArray.create(et,$.length)},wordToByteArray=($,et)=>{const tt=[];return et>0&&tt.push($>>>24),et>1&&tt.push($>>>16&255),et>2&&tt.push($>>>8&255),et>3&&tt.push($&255),tt},wordArrayToByteArray=($,et)=>{$.hasOwnProperty("sigBytes")&&$.hasOwnProperty("words")&&(et=$.sigBytes,$=$.words);let tt=[],rt,nt=0;for(;et>0;)rt=wordToByteArray($[nt],Math.min(4,et)),et-=rt.length,tt=[...tt,rt],nt++;return[].concat.apply([],tt)},getAccountIdentifier=($,et="")=>{try{var tt=Principal$5.from($);const rt=crypto$2.algo.SHA224.create();rt.update(ACCOUNT_DOMAIN_SEPERATOR),rt.update(byteArrayToWordArray(tt.toUint8Array()));const nt=buffer$2.Buffer.from(SUB_ACCOUNT_ZERO);et&&nt.writeUInt32BE(et),rt.update(byteArrayToWordArray(nt));const it=rt.finalize(),At=wordArrayToByteArray(it,28);return generateChecksum(At)+it.toString()}catch(rt){return console.log(rt),!1}};var naclFast={exports:{}};(function($){(function(et){var tt=function(Dt){var qt,Ht=new Float64Array(16);if(Dt)for(qt=0;qt>24&255,Dt[qt+1]=Ht>>16&255,Dt[qt+2]=Ht>>8&255,Dt[qt+3]=Ht&255,Dt[qt+4]=Ct>>24&255,Dt[qt+5]=Ct>>16&255,Dt[qt+6]=Ct>>8&255,Dt[qt+7]=Ct&255}function Et(Dt,qt,Ht,Ct,Vt){var lr,hr=0;for(lr=0;lr>>8)-1}function wt(Dt,qt,Ht,Ct){return Et(Dt,qt,Ht,Ct,16)}function mt(Dt,qt,Ht,Ct){return Et(Dt,qt,Ht,Ct,32)}function pt(Dt,qt,Ht,Ct){for(var Vt=Ct[0]&255|(Ct[1]&255)<<8|(Ct[2]&255)<<16|(Ct[3]&255)<<24,lr=Ht[0]&255|(Ht[1]&255)<<8|(Ht[2]&255)<<16|(Ht[3]&255)<<24,hr=Ht[4]&255|(Ht[5]&255)<<8|(Ht[6]&255)<<16|(Ht[7]&255)<<24,Cr=Ht[8]&255|(Ht[9]&255)<<8|(Ht[10]&255)<<16|(Ht[11]&255)<<24,br=Ht[12]&255|(Ht[13]&255)<<8|(Ht[14]&255)<<16|(Ht[15]&255)<<24,jr=Ct[4]&255|(Ct[5]&255)<<8|(Ct[6]&255)<<16|(Ct[7]&255)<<24,Gr=qt[0]&255|(qt[1]&255)<<8|(qt[2]&255)<<16|(qt[3]&255)<<24,In=qt[4]&255|(qt[5]&255)<<8|(qt[6]&255)<<16|(qt[7]&255)<<24,Or=qt[8]&255|(qt[9]&255)<<8|(qt[10]&255)<<16|(qt[11]&255)<<24,Xr=qt[12]&255|(qt[13]&255)<<8|(qt[14]&255)<<16|(qt[15]&255)<<24,Ur=Ct[8]&255|(Ct[9]&255)<<8|(Ct[10]&255)<<16|(Ct[11]&255)<<24,ln=Ht[16]&255|(Ht[17]&255)<<8|(Ht[18]&255)<<16|(Ht[19]&255)<<24,sn=Ht[20]&255|(Ht[21]&255)<<8|(Ht[22]&255)<<16|(Ht[23]&255)<<24,nr=Ht[24]&255|(Ht[25]&255)<<8|(Ht[26]&255)<<16|(Ht[27]&255)<<24,Rr=Ht[28]&255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=vr>>>8&255,Dt[38]=vr>>>16&255,Dt[39]=vr>>>24&255,Dt[40]=Sr>>>0&255,Dt[41]=Sr>>>8&255,Dt[42]=Sr>>>16&255,Dt[43]=Sr>>>24&255,Dt[44]=Dr>>>0&255,Dt[45]=Dr>>>8&255,Dt[46]=Dr>>>16&255,Dt[47]=Dr>>>24&255,Dt[48]=An>>>0&255,Dt[49]=An>>>8&255,Dt[50]=An>>>16&255,Dt[51]=An>>>24&255,Dt[52]=dn>>>0&255,Dt[53]=dn>>>8&255,Dt[54]=dn>>>16&255,Dt[55]=dn>>>24&255,Dt[56]=En>>>0&255,Dt[57]=En>>>8&255,Dt[58]=En>>>16&255,Dt[59]=En>>>24&255,Dt[60]=gn>>>0&255,Dt[61]=gn>>>8&255,Dt[62]=gn>>>16&255,Dt[63]=gn>>>24&255}function Qt(Dt,qt,Ht,Ct){for(var Vt=Ct[0]&255|(Ct[1]&255)<<8|(Ct[2]&255)<<16|(Ct[3]&255)<<24,lr=Ht[0]&255|(Ht[1]&255)<<8|(Ht[2]&255)<<16|(Ht[3]&255)<<24,hr=Ht[4]&255|(Ht[5]&255)<<8|(Ht[6]&255)<<16|(Ht[7]&255)<<24,Cr=Ht[8]&255|(Ht[9]&255)<<8|(Ht[10]&255)<<16|(Ht[11]&255)<<24,br=Ht[12]&255|(Ht[13]&255)<<8|(Ht[14]&255)<<16|(Ht[15]&255)<<24,jr=Ct[4]&255|(Ct[5]&255)<<8|(Ct[6]&255)<<16|(Ct[7]&255)<<24,Gr=qt[0]&255|(qt[1]&255)<<8|(qt[2]&255)<<16|(qt[3]&255)<<24,In=qt[4]&255|(qt[5]&255)<<8|(qt[6]&255)<<16|(qt[7]&255)<<24,Or=qt[8]&255|(qt[9]&255)<<8|(qt[10]&255)<<16|(qt[11]&255)<<24,Xr=qt[12]&255|(qt[13]&255)<<8|(qt[14]&255)<<16|(qt[15]&255)<<24,Ur=Ct[8]&255|(Ct[9]&255)<<8|(Ct[10]&255)<<16|(Ct[11]&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121,116,101,32,107]);function Pt(Dt,qt,Ht,Ct,Vt,lr,hr){var Cr=new Uint8Array(16),br=new Uint8Array(64),jr,Gr;for(Gr=0;Gr<16;Gr++)Cr[Gr]=0;for(Gr=0;Gr<8;Gr++)Cr[Gr]=lr[Gr];for(;Vt>=64;){for($t(br,Cr,hr,Tt),Gr=0;Gr<64;Gr++)Dt[qt+Gr]=Ht[Ct+Gr]^br[Gr];for(jr=1,Gr=8;Gr<16;Gr++)jr=jr+(Cr[Gr]&255)|0,Cr[Gr]=jr&255,jr>>>=8;Vt-=64,qt+=64,Ct+=64}if(Vt>0)for($t(br,Cr,hr,Tt),Gr=0;Gr=64;){for($t(hr,lr,Vt,Tt),br=0;br<64;br++)Dt[qt+br]=hr[br];for(Cr=1,br=8;br<16;br++)Cr=Cr+(lr[br]&255)|0,lr[br]=Cr&255,Cr>>>=8;Ht-=64,qt+=64}if(Ht>0)for($t(hr,lr,Vt,Tt),br=0;br>>13|Ht<<3)&8191,Ct=Dt[4]&255|(Dt[5]&255)<<8,this.r[2]=(Ht>>>10|Ct<<6)&7939,Vt=Dt[6]&255|(Dt[7]&255)<<8,this.r[3]=(Ct>>>7|Vt<<9)&8191,lr=Dt[8]&255|(Dt[9]&255)<<8,this.r[4]=(Vt>>>4|lr<<12)&255,this.r[5]=lr>>>1&8190,hr=Dt[10]&255|(Dt[11]&255)<<8,this.r[6]=(lr>>>14|hr<<2)&8191,Cr=Dt[12]&255|(Dt[13]&255)<<8,this.r[7]=(hr>>>11|Cr<<5)&8065,br=Dt[14]&255|(Dt[15]&255)<<8,this.r[8]=(Cr>>>8|br<<8)&8191,this.r[9]=br>>>5&127,this.pad[0]=Dt[16]&255|(Dt[17]&255)<<8,this.pad[1]=Dt[18]&255|(Dt[19]&255)<<8,this.pad[2]=Dt[20]&255|(Dt[21]&255)<<8,this.pad[3]=Dt[22]&255|(Dt[23]&255)<<8,this.pad[4]=Dt[24]&255|(Dt[25]&255)<<8,this.pad[5]=Dt[26]&255|(Dt[27]&255)<<8,this.pad[6]=Dt[28]&255|(Dt[29]&255)<<8,this.pad[7]=Dt[30]&255|(Dt[31]&255)<<8};Mt.prototype.blocks=function(Dt,qt,Ht){for(var Ct=this.fin?0:2048,Vt,lr,hr,Cr,br,jr,Gr,In,Or,Xr,Ur,ln,sn,nr,Rr,Mr,$r,Jr,Nr,Vr=this.h[0],Kr=this.h[1],Hr=this.h[2],pr=this.h[3],Ir=this.h[4],Fr=this.h[5],vr=this.h[6],Sr=this.h[7],Dr=this.h[8],An=this.h[9],dn=this.r[0],En=this.r[1],gn=this.r[2],ar=this.r[3],hn=this.r[4],Qn=this.r[5],Sn=this.r[6],pn=this.r[7],mn=this.r[8],vn=this.r[9];Ht>=16;)Vt=Dt[qt+0]&255|(Dt[qt+1]&255)<<8,Vr+=Vt&8191,lr=Dt[qt+2]&255|(Dt[qt+3]&255)<<8,Kr+=(Vt>>>13|lr<<3)&8191,hr=Dt[qt+4]&255|(Dt[qt+5]&255)<<8,Hr+=(lr>>>10|hr<<6)&8191,Cr=Dt[qt+6]&255|(Dt[qt+7]&255)<<8,pr+=(hr>>>7|Cr<<9)&8191,br=Dt[qt+8]&255|(Dt[qt+9]&255)<<8,Ir+=(Cr>>>4|br<<12)&8191,Fr+=br>>>1&8191,jr=Dt[qt+10]&255|(Dt[qt+11]&255)<<8,vr+=(br>>>14|jr<<2)&8191,Gr=Dt[qt+12]&255|(Dt[qt+13]&255)<<8,Sr+=(jr>>>11|Gr<<5)&8191,In=Dt[qt+14]&255|(Dt[qt+15]&255)<<8,Dr+=(Gr>>>8|In<<8)&8191,An+=In>>>5|Ct,Or=0,Xr=Or,Xr+=Vr*dn,Xr+=Kr*(5*vn),Xr+=Hr*(5*mn),Xr+=pr*(5*pn),Xr+=Ir*(5*Sn),Or=Xr>>>13,Xr&=8191,Xr+=Fr*(5*Qn),Xr+=vr*(5*hn),Xr+=Sr*(5*ar),Xr+=Dr*(5*gn),Xr+=An*(5*En),Or+=Xr>>>13,Xr&=8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13,Mr&=8191,$r=Or,$r+=Vr*pn,$r+=Kr*Sn,$r+=Hr*Qn,$r+=pr*hn,$r+=Ir*ar,Or=$r>>>13,$r&=8191,$r+=Fr*gn,$r+=vr*En,$r+=Sr*dn,$r+=Dr*(5*vn),$r+=An*(5*mn),Or+=$r>>>13,$r&=8191,Jr=Or,Jr+=Vr*mn,Jr+=Kr*pn,Jr+=Hr*Sn,Jr+=pr*Qn,Jr+=Ir*hn,Or=Jr>>>13,Jr&=8191,Jr+=Fr*ar,Jr+=vr*gn,Jr+=Sr*En,Jr+=Dr*dn,Jr+=An*(5*vn),Or+=Jr>>>13,Jr&=8191,Nr=Or,Nr+=Vr*vn,Nr+=Kr*mn,Nr+=Hr*pn,Nr+=pr*Sn,Nr+=Ir*Qn,Or=Nr>>>13,Nr&=8191,Nr+=Fr*hn,Nr+=vr*ar,Nr+=Sr*gn,Nr+=Dr*En,Nr+=An*dn,Or+=Nr>>>13,Nr&=8191,Or=(Or<<2)+Or|0,Or=Or+Xr|0,Xr=Or&8191,Or=Or>>>13,Ur+=Or,Vr=Xr,Kr=Ur,Hr=ln,pr=sn,Ir=nr,Fr=Rr,vr=Mr,Sr=$r,Dr=Jr,An=Nr,qt+=16,Ht-=16;this.h[0]=Vr,this.h[1]=Kr,this.h[2]=Hr,this.h[3]=pr,this.h[4]=Ir,this.h[5]=Fr,this.h[6]=vr,this.h[7]=Sr,this.h[8]=Dr,this.h[9]=An},Mt.prototype.finish=function(Dt,qt){var Ht=new Uint16Array(10),Ct,Vt,lr,hr;if(this.leftover){for(hr=this.leftover,this.buffer[hr++]=1;hr<16;hr++)this.buffer[hr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(Ct=this.h[1]>>>13,this.h[1]&=8191,hr=2;hr<10;hr++)this.h[hr]+=Ct,Ct=this.h[hr]>>>13,this.h[hr]&=8191;for(this.h[0]+=Ct*5,Ct=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=Ct,Ct=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=Ct,Ht[0]=this.h[0]+5,Ct=Ht[0]>>>13,Ht[0]&=8191,hr=1;hr<10;hr++)Ht[hr]=this.h[hr]+Ct,Ct=Ht[hr]>>>13,Ht[hr]&=8191;for(Ht[9]-=8192,Vt=(Ct^1)-1,hr=0;hr<10;hr++)Ht[hr]&=Vt;for(Vt=~Vt,hr=0;hr<10;hr++)this.h[hr]=this.h[hr]&Vt|Ht[hr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,lr=this.h[0]+this.pad[0],this.h[0]=lr&65535,hr=1;hr<8;hr++)lr=(this.h[hr]+this.pad[hr]|0)+(lr>>>16)|0,this.h[hr]=lr&65535;Dt[qt+0]=this.h[0]>>>0&255,Dt[qt+1]=this.h[0]>>>8&255,Dt[qt+2]=this.h[1]>>>0&255,Dt[qt+3]=this.h[1]>>>8&255,Dt[qt+4]=this.h[2]>>>0&255,Dt[qt+5]=this.h[2]>>>8&255,Dt[qt+6]=this.h[3]>>>0&255,Dt[qt+7]=this.h[3]>>>8&255,Dt[qt+8]=this.h[4]>>>0&255,Dt[qt+9]=this.h[4]>>>8&255,Dt[qt+10]=this.h[5]>>>0&255,Dt[qt+11]=this.h[5]>>>8&255,Dt[qt+12]=this.h[6]>>>0&255,Dt[qt+13]=this.h[6]>>>8&255,Dt[qt+14]=this.h[7]>>>0&255,Dt[qt+15]=this.h[7]>>>8&255},Mt.prototype.update=function(Dt,qt,Ht){var Ct,Vt;if(this.leftover){for(Vt=16-this.leftover,Vt>Ht&&(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+=Ct*Vn,En+=Ct*Kn,gn+=Ct*zn,lr+=38*Jr,hr+=38*Nr,Cr+=38*Vr,br+=38*Kr,jr+=38*Hr,Gr+=38*pr,In+=38*Ir,Or+=38*Fr,Xr+=38*vr,Ur+=38*Sr,ln+=38*Dr,sn+=38*An,nr+=38*dn,Rr+=38*En,Mr+=38*gn,Vt=1,Ct=lr+Vt+65535,Vt=Math.floor(Ct/65536),lr=Ct-Vt*65536,Ct=hr+Vt+65535,Vt=Math.floor(Ct/65536),hr=Ct-Vt*65536,Ct=Cr+Vt+65535,Vt=Math.floor(Ct/65536),Cr=Ct-Vt*65536,Ct=br+Vt+65535,Vt=Math.floor(Ct/65536),br=Ct-Vt*65536,Ct=jr+Vt+65535,Vt=Math.floor(Ct/65536),jr=Ct-Vt*65536,Ct=Gr+Vt+65535,Vt=Math.floor(Ct/65536),Gr=Ct-Vt*65536,Ct=In+Vt+65535,Vt=Math.floor(Ct/65536),In=Ct-Vt*65536,Ct=Or+Vt+65535,Vt=Math.floor(Ct/65536),Or=Ct-Vt*65536,Ct=Xr+Vt+65535,Vt=Math.floor(Ct/65536),Xr=Ct-Vt*65536,Ct=Ur+Vt+65535,Vt=Math.floor(Ct/65536),Ur=Ct-Vt*65536,Ct=ln+Vt+65535,Vt=Math.floor(Ct/65536),ln=Ct-Vt*65536,Ct=sn+Vt+65535,Vt=Math.floor(Ct/65536),sn=Ct-Vt*65536,Ct=nr+Vt+65535,Vt=Math.floor(Ct/65536),nr=Ct-Vt*65536,Ct=Rr+Vt+65535,Vt=Math.floor(Ct/65536),Rr=Ct-Vt*65536,Ct=Mr+Vt+65535,Vt=Math.floor(Ct/65536),Mr=Ct-Vt*65536,Ct=$r+Vt+65535,Vt=Math.floor(Ct/65536),$r=Ct-Vt*65536,lr+=Vt-1+37*(Vt-1),Vt=1,Ct=lr+Vt+65535,Vt=Math.floor(Ct/65536),lr=Ct-Vt*65536,Ct=hr+Vt+65535,Vt=Math.floor(Ct/65536),hr=Ct-Vt*65536,Ct=Cr+Vt+65535,Vt=Math.floor(Ct/65536),Cr=Ct-Vt*65536,Ct=br+Vt+65535,Vt=Math.floor(Ct/65536),br=Ct-Vt*65536,Ct=jr+Vt+65535,Vt=Math.floor(Ct/65536),jr=Ct-Vt*65536,Ct=Gr+Vt+65535,Vt=Math.floor(Ct/65536),Gr=Ct-Vt*65536,Ct=In+Vt+65535,Vt=Math.floor(Ct/65536),In=Ct-Vt*65536,Ct=Or+Vt+65535,Vt=Math.floor(Ct/65536),Or=Ct-Vt*65536,Ct=Xr+Vt+65535,Vt=Math.floor(Ct/65536),Xr=Ct-Vt*65536,Ct=Ur+Vt+65535,Vt=Math.floor(Ct/65536),Ur=Ct-Vt*65536,Ct=ln+Vt+65535,Vt=Math.floor(Ct/65536),ln=Ct-Vt*65536,Ct=sn+Vt+65535,Vt=Math.floor(Ct/65536),sn=Ct-Vt*65536,Ct=nr+Vt+65535,Vt=Math.floor(Ct/65536),nr=Ct-Vt*65536,Ct=Rr+Vt+65535,Vt=Math.floor(Ct/65536),Rr=Ct-Vt*65536,Ct=Mr+Vt+65535,Vt=Math.floor(Ct/65536),Mr=Ct-Vt*65536,Ct=$r+Vt+65535,Vt=Math.floor(Ct/65536),$r=Ct-Vt*65536,lr+=Vt-1+37*(Vt-1),Dt[0]=lr,Dt[1]=hr,Dt[2]=Cr,Dt[3]=br,Dt[4]=jr,Dt[5]=Gr,Dt[6]=In,Dt[7]=Or,Dt[8]=Xr,Dt[9]=Ur,Dt[10]=ln,Dt[11]=sn,Dt[12]=nr,Dt[13]=Rr,Dt[14]=Mr,Dt[15]=$r}function _r(Dt,qt){Qr(Dt,qt,qt)}function qr(Dt,qt){var Ht=tt(),Ct;for(Ct=0;Ct<16;Ct++)Ht[Ct]=qt[Ct];for(Ct=253;Ct>=0;Ct--)_r(Ht,Ht),Ct!==2&&Ct!==4&&Qr(Ht,Ht,qt);for(Ct=0;Ct<16;Ct++)Dt[Ct]=Ht[Ct]}function yr(Dt,qt){var Ht=tt(),Ct;for(Ct=0;Ct<16;Ct++)Ht[Ct]=qt[Ct];for(Ct=250;Ct>=0;Ct--)_r(Ht,Ht),Ct!==1&&Qr(Ht,Ht,qt);for(Ct=0;Ct<16;Ct++)Dt[Ct]=Ht[Ct]}function kr(Dt,qt,Ht){var Ct=new Uint8Array(32),Vt=new Float64Array(80),lr,hr,Cr=tt(),br=tt(),jr=tt(),Gr=tt(),In=tt(),Or=tt();for(hr=0;hr<31;hr++)Ct[hr]=qt[hr];for(Ct[31]=qt[31]&127|64,Ct[0]&=248,Ar(Vt,Ht),hr=0;hr<16;hr++)br[hr]=Vt[hr],Gr[hr]=Cr[hr]=jr[hr]=0;for(Cr[0]=Gr[0]=1,hr=254;hr>=0;--hr)lr=Ct[hr>>>3]>>>(hr&7)&1,Wt(Cr,br,lr),Wt(jr,Gr,lr),cr(In,Cr,jr),Rt(Cr,Cr,jr),cr(jr,br,Gr),Rt(br,br,Gr),_r(Gr,In),_r(Or,Cr),Qr(Cr,jr,Cr),Qr(jr,br,In),cr(In,Cr,jr),Rt(Cr,Cr,jr),_r(br,Cr),Rt(jr,Gr,Or),Qr(Cr,jr,ot),cr(Cr,Cr,Gr),Qr(jr,jr,Cr),Qr(Cr,Gr,Or),Qr(Gr,br,Vt),_r(br,In),Wt(Cr,br,lr),Wt(jr,Gr,lr);for(hr=0;hr<16;hr++)Vt[hr+16]=Cr[hr],Vt[hr+32]=jr[hr],Vt[hr+48]=br[hr],Vt[hr+64]=Gr[hr];var Xr=Vt.subarray(32),Ur=Vt.subarray(16);return qr(Xr,Xr),Qr(Ur,Ur,Xr),Ot(Dt,Ur),0}function Yt(Dt,qt){return kr(Dt,qt,it)}function Xt(Dt,qt){return rt(qt,32),Yt(Dt,qt)}function tr(Dt,qt,Ht){var Ct=new Uint8Array(32);return kr(Ct,Ht,qt),Gt(Dt,nt,Ct,Tt)}var sr=Nt,ur=Ut;function fr(Dt,qt,Ht,Ct,Vt,lr){var hr=new Uint8Array(32);return tr(hr,Vt,lr),sr(Dt,qt,Ht,Ct,hr)}function It(Dt,qt,Ht,Ct,Vt,lr){var hr=new Uint8Array(32);return tr(hr,Vt,lr),ur(Dt,qt,Ht,Ct,hr)}var lt=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function ft(Dt,qt,Ht,Ct){for(var Vt=new Int32Array(16),lr=new Int32Array(16),hr,Cr,br,jr,Gr,In,Or,Xr,Ur,ln,sn,nr,Rr,Mr,$r,Jr,Nr,Vr,Kr,Hr,pr,Ir,Fr,vr,Sr,Dr,An=Dt[0],dn=Dt[1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Fr&65535|vr<<16,pr=ar,Ir=Mn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[4],Ir=qt[4],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[4]=ar=Sr&65535|Dr<<16,qt[4]=Mn=Fr&65535|vr<<16,pr=hn,Ir=Pn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[5],Ir=qt[5],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[5]=hn=Sr&65535|Dr<<16,qt[5]=Pn=Fr&65535|vr<<16,pr=Qn,Ir=qn,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[6],Ir=qt[6],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[6]=Qn=Sr&65535|Dr<<16,qt[6]=qn=Fr&65535|vr<<16,pr=Sn,Ir=Ln,Fr=Ir&65535,vr=Ir>>>16,Sr=pr&65535,Dr=pr>>>16,pr=Dt[7],Ir=qt[7],Fr+=Ir&65535,vr+=Ir>>>16,Sr+=pr&65535,Dr+=pr>>>16,vr+=Fr>>>16,Sr+=vr>>>16,Dr+=Sr>>>16,Dt[7]=Sn=Sr&65535|Dr<<16,qt[7]=Ln=Fr&65535|vr<<16,Jn+=128,Ct-=128}return Ct}function xt(Dt,qt,Ht){var Ct=new Int32Array(8),Vt=new Int32Array(8),lr=new Uint8Array(256),hr,Cr=Ht;for(Ct[0]=1779033703,Ct[1]=3144134277,Ct[2]=1013904242,Ct[3]=2773480762,Ct[4]=1359893119,Ct[5]=2600822924,Ct[6]=528734635,Ct[7]=1541459225,Vt[0]=4089235720,Vt[1]=2227873595,Vt[2]=4271175723,Vt[3]=1595750129,Vt[4]=2917565137,Vt[5]=725511199,Vt[6]=4215389547,Vt[7]=327033209,ft(Ct,Vt,qt,Ht),Ht%=128,hr=0;hr=0;--Vt)Ct=Ht[Vt/8|0]>>(Vt&7)&1,Lt(Dt,qt,Ct),_t(qt,Dt),_t(Dt,Dt),Lt(Dt,qt,Ct)}function mr(Dt,qt){var Ht=[tt(),tt(),tt(),tt()];Jt(Ht[0],ut),Jt(Ht[1],gt),Jt(Ht[2],at),Qr(Ht[3],ut,gt),Er(Dt,Ht,qt)}function wr(Dt,qt,Ht){var Ct=new Uint8Array(64),Vt=[tt(),tt(),tt(),tt()],lr;for(Ht||rt(qt,32),xt(Ct,qt,32),Ct[0]&=248,Ct[31]&=127,Ct[31]|=64,mr(Vt,Ct),Zt(Dt,Vt),lr=0;lr<32;lr++)qt[lr+32]=Dt[lr];return 0}var Yr=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Ft(Dt,qt){var Ht,Ct,Vt,lr;for(Ct=63;Ct>=32;--Ct){for(Ht=0,Vt=Ct-32,lr=Ct-12;Vt>4)*Yr[Vt],Ht=qt[Vt]>>8,qt[Vt]&=255;for(Vt=0;Vt<32;Vt++)qt[Vt]-=Ht*Yr[Vt];for(Ct=0;Ct<32;Ct++)qt[Ct+1]+=qt[Ct]>>8,Dt[Ct]=qt[Ct]&255}function yt(Dt){var qt=new Float64Array(64),Ht;for(Ht=0;Ht<64;Ht++)qt[Ht]=Dt[Ht];for(Ht=0;Ht<64;Ht++)Dt[Ht]=0;Ft(Dt,qt)}function St(Dt,qt,Ht,Ct){var Vt=new Uint8Array(64),lr=new Uint8Array(64),hr=new Uint8Array(64),Cr,br,jr=new Float64Array(64),Gr=[tt(),tt(),tt(),tt()];xt(Vt,Ct,32),Vt[0]&=248,Vt[31]&=127,Vt[31]|=64;var In=Ht+64;for(Cr=0;Cr>7&&Rt(Dt[0],At,Dt[0]),Qr(Dt[3],Dt[0],Dt[1]),0)}function or(Dt,qt,Ht,Ct){var Vt,lr=new Uint8Array(32),hr=new Uint8Array(64),Cr=[tt(),tt(),tt(),tt()],br=[tt(),tt(),tt(),tt()];if(Ht<64||zt(br,Ct))return-1;for(Vt=0;Vt=0},et.sign.keyPair=function(){var Dt=new Uint8Array(yn),qt=new Uint8Array(Dn);return wr(Dt,qt),{publicKey:Dt,secretKey:qt}},et.sign.keyPair.fromSecretKey=function(Dt){if(xn(Dt),Dt.length!==Dn)throw new Error("bad secret key size");for(var qt=new Uint8Array(yn),Ht=0;HtparseInt(tt,16))).buffer}function toHexString$5($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}const bufEquals$1=($,et)=>{if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{if($<=127)return 1;if($<=255)return 2;if($<=65535)return 3;if($<=16777215)return 4;throw new Error("Length too long (> 4 bytes)")},encodeLen$1=($,et,tt)=>{if(tt<=127)return $[et]=tt,1;if(tt<=255)return $[et]=129,$[et+1]=tt,2;if(tt<=65535)return $[et]=130,$[et+1]=tt>>8,$[et+2]=tt,3;if(tt<=16777215)return $[et]=131,$[et+1]=tt>>16,$[et+2]=tt>>8,$[et+3]=tt,4;throw new Error("Length too long (> 4 bytes)")},decodeLenBytes$1=($,et)=>{if($[et]<128)return 1;if($[et]===128)throw new Error("Invalid length 0");if($[et]===129)return 2;if($[et]===130)return 3;if($[et]===131)return 4;throw new Error("Length too long (> 4 bytes)")},decodeLen$1=($,et)=>{const tt=decodeLenBytes$1($,et);if(tt===1)return $[et];if(tt===2)return $[et+1];if(tt===3)return($[et+1]<<8)+$[et+2];if(tt===4)return($[et+1]<<16)+($[et+2]<<8)+$[et+3];throw new Error("Length too long (> 4 bytes)")};Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);const ED25519_OID$1=Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);function wrapDER$1($,et){const tt=2+encodeLenBytes$1($.byteLength+1),rt=et.byteLength+tt+$.byteLength;let nt=0;const it=new Uint8Array(1+encodeLenBytes$1(rt)+rt);return it[nt++]=48,nt+=encodeLen$1(it,nt,rt),it.set(et,nt),nt+=et.byteLength,it[nt++]=3,nt+=encodeLen$1(it,nt,$.byteLength+1),it[nt++]=0,it.set(new Uint8Array($),nt),it}const unwrapDER$1=($,et)=>{let tt=0;const rt=(at,ot)=>{if(nt[tt++]!==at)throw new Error("Expected: "+ot)},nt=new Uint8Array($);if(rt(48,"sequence"),tt+=decodeLenBytes$1(nt,tt),!bufEquals$1(nt.slice(tt,tt+et.byteLength),et))throw new Error("Not the expected OID.");tt+=et.byteLength,rt(3,"bit string");const it=decodeLen$1(nt,tt)-1;tt+=decodeLenBytes$1(nt,tt),rt(0,"0 padding");const At=nt.slice(tt);if(it!==At.length)throw new Error(`DER payload mismatch: Expected length ${it} actual length ${At.length}`);return At};let Ed25519PublicKey$1=class gA{constructor(et){this.rawKey=et,this.derKey=gA.derEncode(et)}static from(et){return this.fromDer(et.toDer())}static fromRaw(et){return new gA(et)}static fromDer(et){return new gA(this.derDecode(et))}static derEncode(et){return wrapDER$1(et,ED25519_OID$1).buffer}static derDecode(et){const tt=unwrapDER$1(et,ED25519_OID$1);if(tt.length!==this.RAW_KEY_LENGTH)throw new Error("An Ed25519 public key must be exactly 32bytes long");return tt}toDer(){return this.derKey}toRaw(){return this.rawKey}};Ed25519PublicKey$1.RAW_KEY_LENGTH=32;let Ed25519KeyIdentity$1=class hA extends SignIdentity$2{constructor(et,tt){super(),this._privateKey=tt,this._publicKey=Ed25519PublicKey$1.from(et)}static generate(et){if(et&&et.length!==32)throw new Error("Ed25519 Seed needs to be 32 bytes long.");const{publicKey:tt,secretKey:rt}=et===void 0?naclFastExports.sign.keyPair():naclFastExports.sign.keyPair.fromSeed(et);return new this(Ed25519PublicKey$1.fromRaw(tt),rt)}static fromParsedJson(et){const[tt,rt]=et;return new hA(Ed25519PublicKey$1.fromDer(fromHexString$5(tt)),fromHexString$5(rt))}static fromJSON(et){const tt=JSON.parse(et);if(Array.isArray(tt)){if(typeof tt[0]=="string"&&typeof tt[1]=="string")return this.fromParsedJson([tt[0],tt[1]]);throw new Error("Deserialization error: JSON must have at least 2 items.")}throw new Error(`Deserialization error: Invalid JSON type for string: ${JSON.stringify(et)}`)}static fromKeyPair(et,tt){return new hA(Ed25519PublicKey$1.fromRaw(et),tt)}static fromSecretKey(et){const tt=naclFastExports.sign.keyPair.fromSecretKey(new Uint8Array(et));return hA.fromKeyPair(tt.publicKey,tt.secretKey)}toJSON(){return[toHexString$5(this._publicKey.toDer()),toHexString$5(this._privateKey)]}getKeyPair(){return{secretKey:this._privateKey,publicKey:this._publicKey}}getPublicKey(){return this._publicKey}async sign(et){const tt=new Uint8Array(et);return naclFastExports.sign.detached(tt,new Uint8Array(this._privateKey)).buffer}};var elliptic={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$m={},bn={exports:{}};bn.exports;(function($){(function(et,tt){function rt(Mt,Bt){if(!Mt)throw new Error(Bt||"Assertion failed")}function nt(Mt,Bt){Mt.super_=Bt;var vt=function(){};vt.prototype=Bt.prototype,Mt.prototype=new vt,Mt.prototype.constructor=Mt}function it(Mt,Bt,vt){if(it.isBN(Mt))return Mt;this.negative=0,this.words=null,this.length=0,this.red=null,Mt!==null&&((Bt==="le"||Bt==="be")&&(vt=Bt,Bt=10),this._init(Mt||0,Bt||10,vt||"be"))}typeof et=="object"?et.exports=it:tt.BN=it,it.BN=it,it.wordSize=26;var At;try{typeof window<"u"&&typeof window.Buffer<"u"?At=window.Buffer:At=require$$0$1.Buffer}catch{}it.isBN=function(Bt){return Bt instanceof it?!0:Bt!==null&&typeof Bt=="object"&&Bt.constructor.wordSize===it.wordSize&&Array.isArray(Bt.words)},it.max=function(Bt,vt){return Bt.cmp(vt)>0?Bt:vt},it.min=function(Bt,vt){return Bt.cmp(vt)<0?Bt:vt},it.prototype._init=function(Bt,vt,Nt){if(typeof Bt=="number")return this._initNumber(Bt,vt,Nt);if(typeof Bt=="object")return this._initArray(Bt,vt,Nt);vt==="hex"&&(vt=16),rt(vt===(vt|0)&&vt>=2&&vt<=36),Bt=Bt.toString().replace(/\s+/g,"");var Ut=0;Bt[0]==="-"&&(Ut++,this.negative=1),Ut=0;Ut-=3)rr=Bt[Ut]|Bt[Ut-1]<<8|Bt[Ut-2]<<16,this.words[Jt]|=rr<>>26-Wt&67108863,Wt+=24,Wt>=26&&(Wt-=26,Jt++);else if(Nt==="le")for(Ut=0,Jt=0;Ut>>26-Wt&67108863,Wt+=24,Wt>=26&&(Wt-=26,Jt++);return this.strip()};function at(Mt,Bt){var vt=Mt.charCodeAt(Bt);return vt>=65&&vt<=70?vt-55:vt>=97&&vt<=102?vt-87:vt-48&15}function ot(Mt,Bt,vt){var Nt=at(Mt,vt);return vt-1>=Bt&&(Nt|=at(Mt,vt-1)<<4),Nt}it.prototype._parseHex=function(Bt,vt,Nt){this.length=Math.ceil((Bt.length-vt)/6),this.words=new Array(this.length);for(var Ut=0;Ut=vt;Ut-=2)Wt=ot(Bt,vt,Ut)<=18?(Jt-=18,rr+=1,this.words[rr]|=Wt>>>26):Jt+=8;else{var Ot=Bt.length-vt;for(Ut=Ot%2===0?vt+1:vt;Ut=18?(Jt-=18,rr+=1,this.words[rr]|=Wt>>>26):Jt+=8}this.strip()};function st(Mt,Bt,vt,Nt){for(var Ut=0,Jt=Math.min(Mt.length,vt),rr=Bt;rr=49?Ut+=Wt-49+10:Wt>=17?Ut+=Wt-17+10:Ut+=Wt}return Ut}it.prototype._parseBase=function(Bt,vt,Nt){this.words=[0],this.length=1;for(var Ut=0,Jt=1;Jt<=67108863;Jt*=vt)Ut++;Ut--,Jt=Jt/vt|0;for(var rr=Bt.length-Nt,Wt=rr%Ut,Ot=Math.min(rr,rr-Wt)+Nt,bt=0,kt=Nt;kt1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},it.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},it.prototype.inspect=function(){return(this.red?""};var ct=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],ut=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];it.prototype.toString=function(Bt,vt){Bt=Bt||10,vt=vt|0||1;var Nt;if(Bt===16||Bt==="hex"){Nt="";for(var Ut=0,Jt=0,rr=0;rr>>24-Ut&16777215,Jt!==0||rr!==this.length-1?Nt=ct[6-Ot.length]+Ot+Nt:Nt=Ot+Nt,Ut+=2,Ut>=26&&(Ut-=26,rr--)}for(Jt!==0&&(Nt=Jt.toString(16)+Nt);Nt.length%vt!==0;)Nt="0"+Nt;return this.negative!==0&&(Nt="-"+Nt),Nt}if(Bt===(Bt|0)&&Bt>=2&&Bt<=36){var bt=ut[Bt],kt=gt[Bt];Nt="";var Ar=this.clone();for(Ar.negative=0;!Ar.isZero();){var cr=Ar.modn(kt).toString(Bt);Ar=Ar.idivn(kt),Ar.isZero()?Nt=cr+Nt:Nt=ct[bt-cr.length]+cr+Nt}for(this.isZero()&&(Nt="0"+Nt);Nt.length%vt!==0;)Nt="0"+Nt;return this.negative!==0&&(Nt="-"+Nt),Nt}rt(!1,"Base should be between 2 and 36")},it.prototype.toNumber=function(){var Bt=this.words[0];return this.length===2?Bt+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Bt+=4503599627370496+this.words[1]*67108864:this.length>2&&rt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Bt:Bt},it.prototype.toJSON=function(){return this.toString(16)},it.prototype.toBuffer=function(Bt,vt){return rt(typeof At<"u"),this.toArrayLike(At,Bt,vt)},it.prototype.toArray=function(Bt,vt){return this.toArrayLike(Array,Bt,vt)},it.prototype.toArrayLike=function(Bt,vt,Nt){var Ut=this.byteLength(),Jt=Nt||Math.max(1,Ut);rt(Ut<=Jt,"byte array longer than desired length"),rt(Jt>0,"Requested array length <= 0"),this.strip();var rr=vt==="le",Wt=new Bt(Jt),Ot,bt,kt=this.clone();if(rr){for(bt=0;!kt.isZero();bt++)Ot=kt.andln(255),kt.iushrn(8),Wt[bt]=Ot;for(;bt=4096&&(Nt+=13,vt>>>=13),vt>=64&&(Nt+=7,vt>>>=7),vt>=8&&(Nt+=4,vt>>>=4),vt>=2&&(Nt+=2,vt>>>=2),Nt+vt},it.prototype._zeroBits=function(Bt){if(Bt===0)return 26;var vt=Bt,Nt=0;return vt&8191||(Nt+=13,vt>>>=13),vt&127||(Nt+=7,vt>>>=7),vt&15||(Nt+=4,vt>>>=4),vt&3||(Nt+=2,vt>>>=2),vt&1||Nt++,Nt},it.prototype.bitLength=function(){var Bt=this.words[this.length-1],vt=this._countBits(Bt);return(this.length-1)*26+vt};function dt(Mt){for(var Bt=new Array(Mt.bitLength()),vt=0;vt>>Ut}return Bt}it.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Bt=0,vt=0;vtBt.length?this.clone().ior(Bt):Bt.clone().ior(this)},it.prototype.uor=function(Bt){return this.length>Bt.length?this.clone().iuor(Bt):Bt.clone().iuor(this)},it.prototype.iuand=function(Bt){var vt;this.length>Bt.length?vt=Bt:vt=this;for(var Nt=0;NtBt.length?this.clone().iand(Bt):Bt.clone().iand(this)},it.prototype.uand=function(Bt){return this.length>Bt.length?this.clone().iuand(Bt):Bt.clone().iuand(this)},it.prototype.iuxor=function(Bt){var vt,Nt;this.length>Bt.length?(vt=this,Nt=Bt):(vt=Bt,Nt=this);for(var Ut=0;UtBt.length?this.clone().ixor(Bt):Bt.clone().ixor(this)},it.prototype.uxor=function(Bt){return this.length>Bt.length?this.clone().iuxor(Bt):Bt.clone().iuxor(this)},it.prototype.inotn=function(Bt){rt(typeof Bt=="number"&&Bt>=0);var vt=Math.ceil(Bt/26)|0,Nt=Bt%26;this._expand(vt),Nt>0&&vt--;for(var Ut=0;Ut0&&(this.words[Ut]=~this.words[Ut]&67108863>>26-Nt),this.strip()},it.prototype.notn=function(Bt){return this.clone().inotn(Bt)},it.prototype.setn=function(Bt,vt){rt(typeof Bt=="number"&&Bt>=0);var Nt=Bt/26|0,Ut=Bt%26;return this._expand(Nt+1),vt?this.words[Nt]=this.words[Nt]|1<Bt.length?(Nt=this,Ut=Bt):(Nt=Bt,Ut=this);for(var Jt=0,rr=0;rr>>26;for(;Jt!==0&&rr>>26;if(this.length=Nt.length,Jt!==0)this.words[this.length]=Jt,this.length++;else if(Nt!==this)for(;rrBt.length?this.clone().iadd(Bt):Bt.clone().iadd(this)},it.prototype.isub=function(Bt){if(Bt.negative!==0){Bt.negative=0;var vt=this.iadd(Bt);return Bt.negative=1,vt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Bt),this.negative=1,this._normSign();var Nt=this.cmp(Bt);if(Nt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Ut,Jt;Nt>0?(Ut=this,Jt=Bt):(Ut=Bt,Jt=this);for(var rr=0,Wt=0;Wt>26,this.words[Wt]=vt&67108863;for(;rr!==0&&Wt>26,this.words[Wt]=vt&67108863;if(rr===0&&Wt>>26,Ar=Ot&67108863,cr=Math.min(bt,Bt.length-1),Rt=Math.max(0,bt-Mt.length+1);Rt<=cr;Rt++){var Qr=bt-Rt|0;Ut=Mt.words[Qr]|0,Jt=Bt.words[Rt]|0,rr=Ut*Jt+Ar,kt+=rr/67108864|0,Ar=rr&67108863}vt.words[bt]=Ar|0,Ot=kt|0}return Ot!==0?vt.words[bt]=Ot|0:vt.length--,vt.strip()}var Et=function(Bt,vt,Nt){var Ut=Bt.words,Jt=vt.words,rr=Nt.words,Wt=0,Ot,bt,kt,Ar=Ut[0]|0,cr=Ar&8191,Rt=Ar>>>13,Qr=Ut[1]|0,_r=Qr&8191,qr=Qr>>>13,yr=Ut[2]|0,kr=yr&8191,Yt=yr>>>13,Xt=Ut[3]|0,tr=Xt&8191,sr=Xt>>>13,ur=Ut[4]|0,fr=ur&8191,It=ur>>>13,lt=Ut[5]|0,ft=lt&8191,xt=lt>>>13,_t=Ut[6]|0,Lt=_t&8191,Zt=_t>>>13,Er=Ut[7]|0,mr=Er&8191,wr=Er>>>13,Yr=Ut[8]|0,Ft=Yr&8191,yt=Yr>>>13,St=Ut[9]|0,zt=St&8191,or=St>>>13,Br=Jt[0]|0,gr=Br&8191,Lr=Br>>>13,cn=Jt[1]|0,Pr=cn&8191,Tr=cn>>>13,Bn=Jt[2]|0,Wr=Bn&8191,Rn=Bn>>>13,_i=Jt[3]|0,Fn=_i&8191,Gn=_i>>>13,Hn=Jt[4]|0,yn=Hn&8191,Dn=Hn>>>13,rA=Jt[5]|0,Nn=rA&8191,Tn=rA>>>13,wn=Jt[6]|0,xn=wn&8191,Cn=wn>>>13,Dt=Jt[7]|0,qt=Dt&8191,Ht=Dt>>>13,Ct=Jt[8]|0,Vt=Ct&8191,lr=Ct>>>13,hr=Jt[9]|0,Cr=hr&8191,br=hr>>>13;Nt.negative=Bt.negative^vt.negative,Nt.length=19,Ot=Math.imul(cr,gr),bt=Math.imul(cr,Lr),bt=bt+Math.imul(Rt,gr)|0,kt=Math.imul(Rt,Lr);var jr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ot=Math.imul(_r,gr),bt=Math.imul(_r,Lr),bt=bt+Math.imul(qr,gr)|0,kt=Math.imul(qr,Lr),Ot=Ot+Math.imul(cr,Pr)|0,bt=bt+Math.imul(cr,Tr)|0,bt=bt+Math.imul(Rt,Pr)|0,kt=kt+Math.imul(Rt,Tr)|0;var Gr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Ot=Math.imul(kr,gr),bt=Math.imul(kr,Lr),bt=bt+Math.imul(Yt,gr)|0,kt=Math.imul(Yt,Lr),Ot=Ot+Math.imul(_r,Pr)|0,bt=bt+Math.imul(_r,Tr)|0,bt=bt+Math.imul(qr,Pr)|0,kt=kt+Math.imul(qr,Tr)|0,Ot=Ot+Math.imul(cr,Wr)|0,bt=bt+Math.imul(cr,Rn)|0,bt=bt+Math.imul(Rt,Wr)|0,kt=kt+Math.imul(Rt,Rn)|0;var In=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(In>>>26)|0,In&=67108863,Ot=Math.imul(tr,gr),bt=Math.imul(tr,Lr),bt=bt+Math.imul(sr,gr)|0,kt=Math.imul(sr,Lr),Ot=Ot+Math.imul(kr,Pr)|0,bt=bt+Math.imul(kr,Tr)|0,bt=bt+Math.imul(Yt,Pr)|0,kt=kt+Math.imul(Yt,Tr)|0,Ot=Ot+Math.imul(_r,Wr)|0,bt=bt+Math.imul(_r,Rn)|0,bt=bt+Math.imul(qr,Wr)|0,kt=kt+Math.imul(qr,Rn)|0,Ot=Ot+Math.imul(cr,Fn)|0,bt=bt+Math.imul(cr,Gn)|0,bt=bt+Math.imul(Rt,Fn)|0,kt=kt+Math.imul(Rt,Gn)|0;var Or=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Or>>>26)|0,Or&=67108863,Ot=Math.imul(fr,gr),bt=Math.imul(fr,Lr),bt=bt+Math.imul(It,gr)|0,kt=Math.imul(It,Lr),Ot=Ot+Math.imul(tr,Pr)|0,bt=bt+Math.imul(tr,Tr)|0,bt=bt+Math.imul(sr,Pr)|0,kt=kt+Math.imul(sr,Tr)|0,Ot=Ot+Math.imul(kr,Wr)|0,bt=bt+Math.imul(kr,Rn)|0,bt=bt+Math.imul(Yt,Wr)|0,kt=kt+Math.imul(Yt,Rn)|0,Ot=Ot+Math.imul(_r,Fn)|0,bt=bt+Math.imul(_r,Gn)|0,bt=bt+Math.imul(qr,Fn)|0,kt=kt+Math.imul(qr,Gn)|0,Ot=Ot+Math.imul(cr,yn)|0,bt=bt+Math.imul(cr,Dn)|0,bt=bt+Math.imul(Rt,yn)|0,kt=kt+Math.imul(Rt,Dn)|0;var Xr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Xr>>>26)|0,Xr&=67108863,Ot=Math.imul(ft,gr),bt=Math.imul(ft,Lr),bt=bt+Math.imul(xt,gr)|0,kt=Math.imul(xt,Lr),Ot=Ot+Math.imul(fr,Pr)|0,bt=bt+Math.imul(fr,Tr)|0,bt=bt+Math.imul(It,Pr)|0,kt=kt+Math.imul(It,Tr)|0,Ot=Ot+Math.imul(tr,Wr)|0,bt=bt+Math.imul(tr,Rn)|0,bt=bt+Math.imul(sr,Wr)|0,kt=kt+Math.imul(sr,Rn)|0,Ot=Ot+Math.imul(kr,Fn)|0,bt=bt+Math.imul(kr,Gn)|0,bt=bt+Math.imul(Yt,Fn)|0,kt=kt+Math.imul(Yt,Gn)|0,Ot=Ot+Math.imul(_r,yn)|0,bt=bt+Math.imul(_r,Dn)|0,bt=bt+Math.imul(qr,yn)|0,kt=kt+Math.imul(qr,Dn)|0,Ot=Ot+Math.imul(cr,Nn)|0,bt=bt+Math.imul(cr,Tn)|0,bt=bt+Math.imul(Rt,Nn)|0,kt=kt+Math.imul(Rt,Tn)|0;var Ur=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ot=Math.imul(Lt,gr),bt=Math.imul(Lt,Lr),bt=bt+Math.imul(Zt,gr)|0,kt=Math.imul(Zt,Lr),Ot=Ot+Math.imul(ft,Pr)|0,bt=bt+Math.imul(ft,Tr)|0,bt=bt+Math.imul(xt,Pr)|0,kt=kt+Math.imul(xt,Tr)|0,Ot=Ot+Math.imul(fr,Wr)|0,bt=bt+Math.imul(fr,Rn)|0,bt=bt+Math.imul(It,Wr)|0,kt=kt+Math.imul(It,Rn)|0,Ot=Ot+Math.imul(tr,Fn)|0,bt=bt+Math.imul(tr,Gn)|0,bt=bt+Math.imul(sr,Fn)|0,kt=kt+Math.imul(sr,Gn)|0,Ot=Ot+Math.imul(kr,yn)|0,bt=bt+Math.imul(kr,Dn)|0,bt=bt+Math.imul(Yt,yn)|0,kt=kt+Math.imul(Yt,Dn)|0,Ot=Ot+Math.imul(_r,Nn)|0,bt=bt+Math.imul(_r,Tn)|0,bt=bt+Math.imul(qr,Nn)|0,kt=kt+Math.imul(qr,Tn)|0,Ot=Ot+Math.imul(cr,xn)|0,bt=bt+Math.imul(cr,Cn)|0,bt=bt+Math.imul(Rt,xn)|0,kt=kt+Math.imul(Rt,Cn)|0;var ln=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(ln>>>26)|0,ln&=67108863,Ot=Math.imul(mr,gr),bt=Math.imul(mr,Lr),bt=bt+Math.imul(wr,gr)|0,kt=Math.imul(wr,Lr),Ot=Ot+Math.imul(Lt,Pr)|0,bt=bt+Math.imul(Lt,Tr)|0,bt=bt+Math.imul(Zt,Pr)|0,kt=kt+Math.imul(Zt,Tr)|0,Ot=Ot+Math.imul(ft,Wr)|0,bt=bt+Math.imul(ft,Rn)|0,bt=bt+Math.imul(xt,Wr)|0,kt=kt+Math.imul(xt,Rn)|0,Ot=Ot+Math.imul(fr,Fn)|0,bt=bt+Math.imul(fr,Gn)|0,bt=bt+Math.imul(It,Fn)|0,kt=kt+Math.imul(It,Gn)|0,Ot=Ot+Math.imul(tr,yn)|0,bt=bt+Math.imul(tr,Dn)|0,bt=bt+Math.imul(sr,yn)|0,kt=kt+Math.imul(sr,Dn)|0,Ot=Ot+Math.imul(kr,Nn)|0,bt=bt+Math.imul(kr,Tn)|0,bt=bt+Math.imul(Yt,Nn)|0,kt=kt+Math.imul(Yt,Tn)|0,Ot=Ot+Math.imul(_r,xn)|0,bt=bt+Math.imul(_r,Cn)|0,bt=bt+Math.imul(qr,xn)|0,kt=kt+Math.imul(qr,Cn)|0,Ot=Ot+Math.imul(cr,qt)|0,bt=bt+Math.imul(cr,Ht)|0,bt=bt+Math.imul(Rt,qt)|0,kt=kt+Math.imul(Rt,Ht)|0;var sn=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(sn>>>26)|0,sn&=67108863,Ot=Math.imul(Ft,gr),bt=Math.imul(Ft,Lr),bt=bt+Math.imul(yt,gr)|0,kt=Math.imul(yt,Lr),Ot=Ot+Math.imul(mr,Pr)|0,bt=bt+Math.imul(mr,Tr)|0,bt=bt+Math.imul(wr,Pr)|0,kt=kt+Math.imul(wr,Tr)|0,Ot=Ot+Math.imul(Lt,Wr)|0,bt=bt+Math.imul(Lt,Rn)|0,bt=bt+Math.imul(Zt,Wr)|0,kt=kt+Math.imul(Zt,Rn)|0,Ot=Ot+Math.imul(ft,Fn)|0,bt=bt+Math.imul(ft,Gn)|0,bt=bt+Math.imul(xt,Fn)|0,kt=kt+Math.imul(xt,Gn)|0,Ot=Ot+Math.imul(fr,yn)|0,bt=bt+Math.imul(fr,Dn)|0,bt=bt+Math.imul(It,yn)|0,kt=kt+Math.imul(It,Dn)|0,Ot=Ot+Math.imul(tr,Nn)|0,bt=bt+Math.imul(tr,Tn)|0,bt=bt+Math.imul(sr,Nn)|0,kt=kt+Math.imul(sr,Tn)|0,Ot=Ot+Math.imul(kr,xn)|0,bt=bt+Math.imul(kr,Cn)|0,bt=bt+Math.imul(Yt,xn)|0,kt=kt+Math.imul(Yt,Cn)|0,Ot=Ot+Math.imul(_r,qt)|0,bt=bt+Math.imul(_r,Ht)|0,bt=bt+Math.imul(qr,qt)|0,kt=kt+Math.imul(qr,Ht)|0,Ot=Ot+Math.imul(cr,Vt)|0,bt=bt+Math.imul(cr,lr)|0,bt=bt+Math.imul(Rt,Vt)|0,kt=kt+Math.imul(Rt,lr)|0;var nr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(nr>>>26)|0,nr&=67108863,Ot=Math.imul(zt,gr),bt=Math.imul(zt,Lr),bt=bt+Math.imul(or,gr)|0,kt=Math.imul(or,Lr),Ot=Ot+Math.imul(Ft,Pr)|0,bt=bt+Math.imul(Ft,Tr)|0,bt=bt+Math.imul(yt,Pr)|0,kt=kt+Math.imul(yt,Tr)|0,Ot=Ot+Math.imul(mr,Wr)|0,bt=bt+Math.imul(mr,Rn)|0,bt=bt+Math.imul(wr,Wr)|0,kt=kt+Math.imul(wr,Rn)|0,Ot=Ot+Math.imul(Lt,Fn)|0,bt=bt+Math.imul(Lt,Gn)|0,bt=bt+Math.imul(Zt,Fn)|0,kt=kt+Math.imul(Zt,Gn)|0,Ot=Ot+Math.imul(ft,yn)|0,bt=bt+Math.imul(ft,Dn)|0,bt=bt+Math.imul(xt,yn)|0,kt=kt+Math.imul(xt,Dn)|0,Ot=Ot+Math.imul(fr,Nn)|0,bt=bt+Math.imul(fr,Tn)|0,bt=bt+Math.imul(It,Nn)|0,kt=kt+Math.imul(It,Tn)|0,Ot=Ot+Math.imul(tr,xn)|0,bt=bt+Math.imul(tr,Cn)|0,bt=bt+Math.imul(sr,xn)|0,kt=kt+Math.imul(sr,Cn)|0,Ot=Ot+Math.imul(kr,qt)|0,bt=bt+Math.imul(kr,Ht)|0,bt=bt+Math.imul(Yt,qt)|0,kt=kt+Math.imul(Yt,Ht)|0,Ot=Ot+Math.imul(_r,Vt)|0,bt=bt+Math.imul(_r,lr)|0,bt=bt+Math.imul(qr,Vt)|0,kt=kt+Math.imul(qr,lr)|0,Ot=Ot+Math.imul(cr,Cr)|0,bt=bt+Math.imul(cr,br)|0,bt=bt+Math.imul(Rt,Cr)|0,kt=kt+Math.imul(Rt,br)|0;var Rr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Rr>>>26)|0,Rr&=67108863,Ot=Math.imul(zt,Pr),bt=Math.imul(zt,Tr),bt=bt+Math.imul(or,Pr)|0,kt=Math.imul(or,Tr),Ot=Ot+Math.imul(Ft,Wr)|0,bt=bt+Math.imul(Ft,Rn)|0,bt=bt+Math.imul(yt,Wr)|0,kt=kt+Math.imul(yt,Rn)|0,Ot=Ot+Math.imul(mr,Fn)|0,bt=bt+Math.imul(mr,Gn)|0,bt=bt+Math.imul(wr,Fn)|0,kt=kt+Math.imul(wr,Gn)|0,Ot=Ot+Math.imul(Lt,yn)|0,bt=bt+Math.imul(Lt,Dn)|0,bt=bt+Math.imul(Zt,yn)|0,kt=kt+Math.imul(Zt,Dn)|0,Ot=Ot+Math.imul(ft,Nn)|0,bt=bt+Math.imul(ft,Tn)|0,bt=bt+Math.imul(xt,Nn)|0,kt=kt+Math.imul(xt,Tn)|0,Ot=Ot+Math.imul(fr,xn)|0,bt=bt+Math.imul(fr,Cn)|0,bt=bt+Math.imul(It,xn)|0,kt=kt+Math.imul(It,Cn)|0,Ot=Ot+Math.imul(tr,qt)|0,bt=bt+Math.imul(tr,Ht)|0,bt=bt+Math.imul(sr,qt)|0,kt=kt+Math.imul(sr,Ht)|0,Ot=Ot+Math.imul(kr,Vt)|0,bt=bt+Math.imul(kr,lr)|0,bt=bt+Math.imul(Yt,Vt)|0,kt=kt+Math.imul(Yt,lr)|0,Ot=Ot+Math.imul(_r,Cr)|0,bt=bt+Math.imul(_r,br)|0,bt=bt+Math.imul(qr,Cr)|0,kt=kt+Math.imul(qr,br)|0;var Mr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Mr>>>26)|0,Mr&=67108863,Ot=Math.imul(zt,Wr),bt=Math.imul(zt,Rn),bt=bt+Math.imul(or,Wr)|0,kt=Math.imul(or,Rn),Ot=Ot+Math.imul(Ft,Fn)|0,bt=bt+Math.imul(Ft,Gn)|0,bt=bt+Math.imul(yt,Fn)|0,kt=kt+Math.imul(yt,Gn)|0,Ot=Ot+Math.imul(mr,yn)|0,bt=bt+Math.imul(mr,Dn)|0,bt=bt+Math.imul(wr,yn)|0,kt=kt+Math.imul(wr,Dn)|0,Ot=Ot+Math.imul(Lt,Nn)|0,bt=bt+Math.imul(Lt,Tn)|0,bt=bt+Math.imul(Zt,Nn)|0,kt=kt+Math.imul(Zt,Tn)|0,Ot=Ot+Math.imul(ft,xn)|0,bt=bt+Math.imul(ft,Cn)|0,bt=bt+Math.imul(xt,xn)|0,kt=kt+Math.imul(xt,Cn)|0,Ot=Ot+Math.imul(fr,qt)|0,bt=bt+Math.imul(fr,Ht)|0,bt=bt+Math.imul(It,qt)|0,kt=kt+Math.imul(It,Ht)|0,Ot=Ot+Math.imul(tr,Vt)|0,bt=bt+Math.imul(tr,lr)|0,bt=bt+Math.imul(sr,Vt)|0,kt=kt+Math.imul(sr,lr)|0,Ot=Ot+Math.imul(kr,Cr)|0,bt=bt+Math.imul(kr,br)|0,bt=bt+Math.imul(Yt,Cr)|0,kt=kt+Math.imul(Yt,br)|0;var $r=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+($r>>>26)|0,$r&=67108863,Ot=Math.imul(zt,Fn),bt=Math.imul(zt,Gn),bt=bt+Math.imul(or,Fn)|0,kt=Math.imul(or,Gn),Ot=Ot+Math.imul(Ft,yn)|0,bt=bt+Math.imul(Ft,Dn)|0,bt=bt+Math.imul(yt,yn)|0,kt=kt+Math.imul(yt,Dn)|0,Ot=Ot+Math.imul(mr,Nn)|0,bt=bt+Math.imul(mr,Tn)|0,bt=bt+Math.imul(wr,Nn)|0,kt=kt+Math.imul(wr,Tn)|0,Ot=Ot+Math.imul(Lt,xn)|0,bt=bt+Math.imul(Lt,Cn)|0,bt=bt+Math.imul(Zt,xn)|0,kt=kt+Math.imul(Zt,Cn)|0,Ot=Ot+Math.imul(ft,qt)|0,bt=bt+Math.imul(ft,Ht)|0,bt=bt+Math.imul(xt,qt)|0,kt=kt+Math.imul(xt,Ht)|0,Ot=Ot+Math.imul(fr,Vt)|0,bt=bt+Math.imul(fr,lr)|0,bt=bt+Math.imul(It,Vt)|0,kt=kt+Math.imul(It,lr)|0,Ot=Ot+Math.imul(tr,Cr)|0,bt=bt+Math.imul(tr,br)|0,bt=bt+Math.imul(sr,Cr)|0,kt=kt+Math.imul(sr,br)|0;var Jr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Jr>>>26)|0,Jr&=67108863,Ot=Math.imul(zt,yn),bt=Math.imul(zt,Dn),bt=bt+Math.imul(or,yn)|0,kt=Math.imul(or,Dn),Ot=Ot+Math.imul(Ft,Nn)|0,bt=bt+Math.imul(Ft,Tn)|0,bt=bt+Math.imul(yt,Nn)|0,kt=kt+Math.imul(yt,Tn)|0,Ot=Ot+Math.imul(mr,xn)|0,bt=bt+Math.imul(mr,Cn)|0,bt=bt+Math.imul(wr,xn)|0,kt=kt+Math.imul(wr,Cn)|0,Ot=Ot+Math.imul(Lt,qt)|0,bt=bt+Math.imul(Lt,Ht)|0,bt=bt+Math.imul(Zt,qt)|0,kt=kt+Math.imul(Zt,Ht)|0,Ot=Ot+Math.imul(ft,Vt)|0,bt=bt+Math.imul(ft,lr)|0,bt=bt+Math.imul(xt,Vt)|0,kt=kt+Math.imul(xt,lr)|0,Ot=Ot+Math.imul(fr,Cr)|0,bt=bt+Math.imul(fr,br)|0,bt=bt+Math.imul(It,Cr)|0,kt=kt+Math.imul(It,br)|0;var Nr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Nr>>>26)|0,Nr&=67108863,Ot=Math.imul(zt,Nn),bt=Math.imul(zt,Tn),bt=bt+Math.imul(or,Nn)|0,kt=Math.imul(or,Tn),Ot=Ot+Math.imul(Ft,xn)|0,bt=bt+Math.imul(Ft,Cn)|0,bt=bt+Math.imul(yt,xn)|0,kt=kt+Math.imul(yt,Cn)|0,Ot=Ot+Math.imul(mr,qt)|0,bt=bt+Math.imul(mr,Ht)|0,bt=bt+Math.imul(wr,qt)|0,kt=kt+Math.imul(wr,Ht)|0,Ot=Ot+Math.imul(Lt,Vt)|0,bt=bt+Math.imul(Lt,lr)|0,bt=bt+Math.imul(Zt,Vt)|0,kt=kt+Math.imul(Zt,lr)|0,Ot=Ot+Math.imul(ft,Cr)|0,bt=bt+Math.imul(ft,br)|0,bt=bt+Math.imul(xt,Cr)|0,kt=kt+Math.imul(xt,br)|0;var Vr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Vr>>>26)|0,Vr&=67108863,Ot=Math.imul(zt,xn),bt=Math.imul(zt,Cn),bt=bt+Math.imul(or,xn)|0,kt=Math.imul(or,Cn),Ot=Ot+Math.imul(Ft,qt)|0,bt=bt+Math.imul(Ft,Ht)|0,bt=bt+Math.imul(yt,qt)|0,kt=kt+Math.imul(yt,Ht)|0,Ot=Ot+Math.imul(mr,Vt)|0,bt=bt+Math.imul(mr,lr)|0,bt=bt+Math.imul(wr,Vt)|0,kt=kt+Math.imul(wr,lr)|0,Ot=Ot+Math.imul(Lt,Cr)|0,bt=bt+Math.imul(Lt,br)|0,bt=bt+Math.imul(Zt,Cr)|0,kt=kt+Math.imul(Zt,br)|0;var Kr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Kr>>>26)|0,Kr&=67108863,Ot=Math.imul(zt,qt),bt=Math.imul(zt,Ht),bt=bt+Math.imul(or,qt)|0,kt=Math.imul(or,Ht),Ot=Ot+Math.imul(Ft,Vt)|0,bt=bt+Math.imul(Ft,lr)|0,bt=bt+Math.imul(yt,Vt)|0,kt=kt+Math.imul(yt,lr)|0,Ot=Ot+Math.imul(mr,Cr)|0,bt=bt+Math.imul(mr,br)|0,bt=bt+Math.imul(wr,Cr)|0,kt=kt+Math.imul(wr,br)|0;var Hr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(Hr>>>26)|0,Hr&=67108863,Ot=Math.imul(zt,Vt),bt=Math.imul(zt,lr),bt=bt+Math.imul(or,Vt)|0,kt=Math.imul(or,lr),Ot=Ot+Math.imul(Ft,Cr)|0,bt=bt+Math.imul(Ft,br)|0,bt=bt+Math.imul(yt,Cr)|0,kt=kt+Math.imul(yt,br)|0;var pr=(Wt+Ot|0)+((bt&8191)<<13)|0;Wt=(kt+(bt>>>13)|0)+(pr>>>26)|0,pr&=67108863,Ot=Math.imul(zt,Cr),bt=Math.imul(zt,br),bt=bt+Math.imul(or,Cr)|0,kt=Math.imul(or,br);var Ir=(Wt+Ot|0)+((bt&8191)<<13)|0;return Wt=(kt+(bt>>>13)|0)+(Ir>>>26)|0,Ir&=67108863,rr[0]=jr,rr[1]=Gr,rr[2]=In,rr[3]=Or,rr[4]=Xr,rr[5]=Ur,rr[6]=ln,rr[7]=sn,rr[8]=nr,rr[9]=Rr,rr[10]=Mr,rr[11]=$r,rr[12]=Jr,rr[13]=Nr,rr[14]=Vr,rr[15]=Kr,rr[16]=Hr,rr[17]=pr,rr[18]=Ir,Wt!==0&&(rr[19]=Wt,Nt.length++),Nt};Math.imul||(Et=ht);function wt(Mt,Bt,vt){vt.negative=Bt.negative^Mt.negative,vt.length=Mt.length+Bt.length;for(var Nt=0,Ut=0,Jt=0;Jt>>26)|0,Ut+=rr>>>26,rr&=67108863}vt.words[Jt]=Wt,Nt=rr,rr=Ut}return Nt!==0?vt.words[Jt]=Nt:vt.length--,vt.strip()}function mt(Mt,Bt,vt){var Nt=new pt;return Nt.mulp(Mt,Bt,vt)}it.prototype.mulTo=function(Bt,vt){var Nt,Ut=this.length+Bt.length;return this.length===10&&Bt.length===10?Nt=Et(this,Bt,vt):Ut<63?Nt=ht(this,Bt,vt):Ut<1024?Nt=wt(this,Bt,vt):Nt=mt(this,Bt,vt),Nt};function pt(Mt,Bt){this.x=Mt,this.y=Bt}pt.prototype.makeRBT=function(Bt){for(var vt=new Array(Bt),Nt=it.prototype._countBits(Bt)-1,Ut=0;Ut>=1;return Ut},pt.prototype.permute=function(Bt,vt,Nt,Ut,Jt,rr){for(var Wt=0;Wt>>1)Jt++;return 1<>>13,Nt[2*rr+1]=Jt&8191,Jt=Jt>>>13;for(rr=2*vt;rr>=26,vt+=Ut/67108864|0,vt+=Jt>>>26,this.words[Nt]=Jt&67108863}return vt!==0&&(this.words[Nt]=vt,this.length++),this},it.prototype.muln=function(Bt){return this.clone().imuln(Bt)},it.prototype.sqr=function(){return this.mul(this)},it.prototype.isqr=function(){return this.imul(this.clone())},it.prototype.pow=function(Bt){var vt=dt(Bt);if(vt.length===0)return new it(1);for(var Nt=this,Ut=0;Ut=0);var vt=Bt%26,Nt=(Bt-vt)/26,Ut=67108863>>>26-vt<<26-vt,Jt;if(vt!==0){var rr=0;for(Jt=0;Jt>>26-vt}rr&&(this.words[Jt]=rr,this.length++)}if(Nt!==0){for(Jt=this.length-1;Jt>=0;Jt--)this.words[Jt+Nt]=this.words[Jt];for(Jt=0;Jt=0);var Ut;vt?Ut=(vt-vt%26)/26:Ut=0;var Jt=Bt%26,rr=Math.min((Bt-Jt)/26,this.length),Wt=67108863^67108863>>>Jt<rr)for(this.length-=rr,bt=0;bt=0&&(kt!==0||bt>=Ut);bt--){var Ar=this.words[bt]|0;this.words[bt]=kt<<26-Jt|Ar>>>Jt,kt=Ar&Wt}return Ot&&kt!==0&&(Ot.words[Ot.length++]=kt),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},it.prototype.ishrn=function(Bt,vt,Nt){return rt(this.negative===0),this.iushrn(Bt,vt,Nt)},it.prototype.shln=function(Bt){return this.clone().ishln(Bt)},it.prototype.ushln=function(Bt){return this.clone().iushln(Bt)},it.prototype.shrn=function(Bt){return this.clone().ishrn(Bt)},it.prototype.ushrn=function(Bt){return this.clone().iushrn(Bt)},it.prototype.testn=function(Bt){rt(typeof Bt=="number"&&Bt>=0);var vt=Bt%26,Nt=(Bt-vt)/26,Ut=1<=0);var vt=Bt%26,Nt=(Bt-vt)/26;if(rt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Nt)return this;if(vt!==0&&Nt++,this.length=Math.min(Nt,this.length),vt!==0){var Ut=67108863^67108863>>>vt<=67108864;vt++)this.words[vt]-=67108864,vt===this.length-1?this.words[vt+1]=1:this.words[vt+1]++;return this.length=Math.max(this.length,vt+1),this},it.prototype.isubn=function(Bt){if(rt(typeof Bt=="number"),rt(Bt<67108864),Bt<0)return this.iaddn(-Bt);if(this.negative!==0)return this.negative=0,this.iaddn(Bt),this.negative=1,this;if(this.words[0]-=Bt,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var vt=0;vt>26)-(Ot/67108864|0),this.words[Jt+Nt]=rr&67108863}for(;Jt>26,this.words[Jt+Nt]=rr&67108863;if(Wt===0)return this.strip();for(rt(Wt===-1),Wt=0,Jt=0;Jt>26,this.words[Jt]=rr&67108863;return this.negative=1,this.strip()},it.prototype._wordDiv=function(Bt,vt){var Nt=this.length-Bt.length,Ut=this.clone(),Jt=Bt,rr=Jt.words[Jt.length-1]|0,Wt=this._countBits(rr);Nt=26-Wt,Nt!==0&&(Jt=Jt.ushln(Nt),Ut.iushln(Nt),rr=Jt.words[Jt.length-1]|0);var Ot=Ut.length-Jt.length,bt;if(vt!=="mod"){bt=new it(null),bt.length=Ot+1,bt.words=new Array(bt.length);for(var kt=0;kt=0;cr--){var Rt=(Ut.words[Jt.length+cr]|0)*67108864+(Ut.words[Jt.length+cr-1]|0);for(Rt=Math.min(Rt/rr|0,67108863),Ut._ishlnsubmul(Jt,Rt,cr);Ut.negative!==0;)Rt--,Ut.negative=0,Ut._ishlnsubmul(Jt,1,cr),Ut.isZero()||(Ut.negative^=1);bt&&(bt.words[cr]=Rt)}return bt&&bt.strip(),Ut.strip(),vt!=="div"&&Nt!==0&&Ut.iushrn(Nt),{div:bt||null,mod:Ut}},it.prototype.divmod=function(Bt,vt,Nt){if(rt(!Bt.isZero()),this.isZero())return{div:new it(0),mod:new it(0)};var Ut,Jt,rr;return this.negative!==0&&Bt.negative===0?(rr=this.neg().divmod(Bt,vt),vt!=="mod"&&(Ut=rr.div.neg()),vt!=="div"&&(Jt=rr.mod.neg(),Nt&&Jt.negative!==0&&Jt.iadd(Bt)),{div:Ut,mod:Jt}):this.negative===0&&Bt.negative!==0?(rr=this.divmod(Bt.neg(),vt),vt!=="mod"&&(Ut=rr.div.neg()),{div:Ut,mod:rr.mod}):this.negative&Bt.negative?(rr=this.neg().divmod(Bt.neg(),vt),vt!=="div"&&(Jt=rr.mod.neg(),Nt&&Jt.negative!==0&&Jt.isub(Bt)),{div:rr.div,mod:Jt}):Bt.length>this.length||this.cmp(Bt)<0?{div:new it(0),mod:this}:Bt.length===1?vt==="div"?{div:this.divn(Bt.words[0]),mod:null}:vt==="mod"?{div:null,mod:new it(this.modn(Bt.words[0]))}:{div:this.divn(Bt.words[0]),mod:new it(this.modn(Bt.words[0]))}:this._wordDiv(Bt,vt)},it.prototype.div=function(Bt){return this.divmod(Bt,"div",!1).div},it.prototype.mod=function(Bt){return this.divmod(Bt,"mod",!1).mod},it.prototype.umod=function(Bt){return this.divmod(Bt,"mod",!0).mod},it.prototype.divRound=function(Bt){var vt=this.divmod(Bt);if(vt.mod.isZero())return vt.div;var Nt=vt.div.negative!==0?vt.mod.isub(Bt):vt.mod,Ut=Bt.ushrn(1),Jt=Bt.andln(1),rr=Nt.cmp(Ut);return rr<0||Jt===1&&rr===0?vt.div:vt.div.negative!==0?vt.div.isubn(1):vt.div.iaddn(1)},it.prototype.modn=function(Bt){rt(Bt<=67108863);for(var vt=(1<<26)%Bt,Nt=0,Ut=this.length-1;Ut>=0;Ut--)Nt=(vt*Nt+(this.words[Ut]|0))%Bt;return Nt},it.prototype.idivn=function(Bt){rt(Bt<=67108863);for(var vt=0,Nt=this.length-1;Nt>=0;Nt--){var Ut=(this.words[Nt]|0)+vt*67108864;this.words[Nt]=Ut/Bt|0,vt=Ut%Bt}return this.strip()},it.prototype.divn=function(Bt){return this.clone().idivn(Bt)},it.prototype.egcd=function(Bt){rt(Bt.negative===0),rt(!Bt.isZero());var vt=this,Nt=Bt.clone();vt.negative!==0?vt=vt.umod(Bt):vt=vt.clone();for(var Ut=new it(1),Jt=new it(0),rr=new it(0),Wt=new it(1),Ot=0;vt.isEven()&&Nt.isEven();)vt.iushrn(1),Nt.iushrn(1),++Ot;for(var bt=Nt.clone(),kt=vt.clone();!vt.isZero();){for(var Ar=0,cr=1;!(vt.words[0]&cr)&&Ar<26;++Ar,cr<<=1);if(Ar>0)for(vt.iushrn(Ar);Ar-- >0;)(Ut.isOdd()||Jt.isOdd())&&(Ut.iadd(bt),Jt.isub(kt)),Ut.iushrn(1),Jt.iushrn(1);for(var Rt=0,Qr=1;!(Nt.words[0]&Qr)&&Rt<26;++Rt,Qr<<=1);if(Rt>0)for(Nt.iushrn(Rt);Rt-- >0;)(rr.isOdd()||Wt.isOdd())&&(rr.iadd(bt),Wt.isub(kt)),rr.iushrn(1),Wt.iushrn(1);vt.cmp(Nt)>=0?(vt.isub(Nt),Ut.isub(rr),Jt.isub(Wt)):(Nt.isub(vt),rr.isub(Ut),Wt.isub(Jt))}return{a:rr,b:Wt,gcd:Nt.iushln(Ot)}},it.prototype._invmp=function(Bt){rt(Bt.negative===0),rt(!Bt.isZero());var vt=this,Nt=Bt.clone();vt.negative!==0?vt=vt.umod(Bt):vt=vt.clone();for(var Ut=new it(1),Jt=new it(0),rr=Nt.clone();vt.cmpn(1)>0&&Nt.cmpn(1)>0;){for(var Wt=0,Ot=1;!(vt.words[0]&Ot)&&Wt<26;++Wt,Ot<<=1);if(Wt>0)for(vt.iushrn(Wt);Wt-- >0;)Ut.isOdd()&&Ut.iadd(rr),Ut.iushrn(1);for(var bt=0,kt=1;!(Nt.words[0]&kt)&&bt<26;++bt,kt<<=1);if(bt>0)for(Nt.iushrn(bt);bt-- >0;)Jt.isOdd()&&Jt.iadd(rr),Jt.iushrn(1);vt.cmp(Nt)>=0?(vt.isub(Nt),Ut.isub(Jt)):(Nt.isub(vt),Jt.isub(Ut))}var Ar;return vt.cmpn(1)===0?Ar=Ut:Ar=Jt,Ar.cmpn(0)<0&&Ar.iadd(Bt),Ar},it.prototype.gcd=function(Bt){if(this.isZero())return Bt.abs();if(Bt.isZero())return this.abs();var vt=this.clone(),Nt=Bt.clone();vt.negative=0,Nt.negative=0;for(var Ut=0;vt.isEven()&&Nt.isEven();Ut++)vt.iushrn(1),Nt.iushrn(1);do{for(;vt.isEven();)vt.iushrn(1);for(;Nt.isEven();)Nt.iushrn(1);var Jt=vt.cmp(Nt);if(Jt<0){var rr=vt;vt=Nt,Nt=rr}else if(Jt===0||Nt.cmpn(1)===0)break;vt.isub(Nt)}while(!0);return Nt.iushln(Ut)},it.prototype.invm=function(Bt){return this.egcd(Bt).a.umod(Bt)},it.prototype.isEven=function(){return(this.words[0]&1)===0},it.prototype.isOdd=function(){return(this.words[0]&1)===1},it.prototype.andln=function(Bt){return this.words[0]&Bt},it.prototype.bincn=function(Bt){rt(typeof Bt=="number");var vt=Bt%26,Nt=(Bt-vt)/26,Ut=1<>>26,Wt&=67108863,this.words[rr]=Wt}return Jt!==0&&(this.words[rr]=Jt,this.length++),this},it.prototype.isZero=function(){return this.length===1&&this.words[0]===0},it.prototype.cmpn=function(Bt){var vt=Bt<0;if(this.negative!==0&&!vt)return-1;if(this.negative===0&&vt)return 1;this.strip();var Nt;if(this.length>1)Nt=1;else{vt&&(Bt=-Bt),rt(Bt<=67108863,"Number is too big");var Ut=this.words[0]|0;Nt=Ut===Bt?0:UtBt.length)return 1;if(this.length=0;Nt--){var Ut=this.words[Nt]|0,Jt=Bt.words[Nt]|0;if(Ut!==Jt){UtJt&&(vt=1);break}}return vt},it.prototype.gtn=function(Bt){return this.cmpn(Bt)===1},it.prototype.gt=function(Bt){return this.cmp(Bt)===1},it.prototype.gten=function(Bt){return this.cmpn(Bt)>=0},it.prototype.gte=function(Bt){return this.cmp(Bt)>=0},it.prototype.ltn=function(Bt){return this.cmpn(Bt)===-1},it.prototype.lt=function(Bt){return this.cmp(Bt)===-1},it.prototype.lten=function(Bt){return this.cmpn(Bt)<=0},it.prototype.lte=function(Bt){return this.cmp(Bt)<=0},it.prototype.eqn=function(Bt){return this.cmpn(Bt)===0},it.prototype.eq=function(Bt){return this.cmp(Bt)===0},it.red=function(Bt){return new ir(Bt)},it.prototype.toRed=function(Bt){return rt(!this.red,"Already a number in reduction context"),rt(this.negative===0,"red works only with positives"),Bt.convertTo(this)._forceRed(Bt)},it.prototype.fromRed=function(){return rt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},it.prototype._forceRed=function(Bt){return this.red=Bt,this},it.prototype.forceRed=function(Bt){return rt(!this.red,"Already a number in reduction context"),this._forceRed(Bt)},it.prototype.redAdd=function(Bt){return rt(this.red,"redAdd works only with red numbers"),this.red.add(this,Bt)},it.prototype.redIAdd=function(Bt){return rt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Bt)},it.prototype.redSub=function(Bt){return rt(this.red,"redSub works only with red numbers"),this.red.sub(this,Bt)},it.prototype.redISub=function(Bt){return rt(this.red,"redISub works only with red numbers"),this.red.isub(this,Bt)},it.prototype.redShl=function(Bt){return rt(this.red,"redShl works only with red numbers"),this.red.shl(this,Bt)},it.prototype.redMul=function(Bt){return rt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.mul(this,Bt)},it.prototype.redIMul=function(Bt){return rt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Bt),this.red.imul(this,Bt)},it.prototype.redSqr=function(){return rt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},it.prototype.redISqr=function(){return rt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},it.prototype.redSqrt=function(){return rt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},it.prototype.redInvm=function(){return rt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},it.prototype.redNeg=function(){return rt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},it.prototype.redPow=function(Bt){return rt(this.red&&!Bt.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Bt)};var Qt={k256:null,p224:null,p192:null,p25519:null};function $t(Mt,Bt){this.name=Mt,this.p=new it(Bt,16),this.n=this.p.bitLength(),this.k=new it(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}$t.prototype._tmp=function(){var Bt=new it(null);return Bt.words=new Array(Math.ceil(this.n/13)),Bt},$t.prototype.ireduce=function(Bt){var vt=Bt,Nt;do this.split(vt,this.tmp),vt=this.imulK(vt),vt=vt.iadd(this.tmp),Nt=vt.bitLength();while(Nt>this.n);var Ut=Nt0?vt.isub(this.p):vt.strip!==void 0?vt.strip():vt._strip(),vt},$t.prototype.split=function(Bt,vt){Bt.iushrn(this.n,0,vt)},$t.prototype.imulK=function(Bt){return Bt.imul(this.k)};function Gt(){$t.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}nt(Gt,$t),Gt.prototype.split=function(Bt,vt){for(var Nt=4194303,Ut=Math.min(Bt.length,9),Jt=0;Jt>>22,rr=Wt}rr>>>=22,Bt.words[Jt-10]=rr,rr===0&&Bt.length>10?Bt.length-=10:Bt.length-=9},Gt.prototype.imulK=function(Bt){Bt.words[Bt.length]=0,Bt.words[Bt.length+1]=0,Bt.length+=2;for(var vt=0,Nt=0;Nt>>=26,Bt.words[Nt]=Jt,vt=Ut}return vt!==0&&(Bt.words[Bt.length++]=vt),Bt},it._prime=function(Bt){if(Qt[Bt])return Qt[Bt];var vt;if(Bt==="k256")vt=new Gt;else if(Bt==="p224")vt=new Tt;else if(Bt==="p192")vt=new Pt;else if(Bt==="p25519")vt=new Kt;else throw new Error("Unknown prime "+Bt);return Qt[Bt]=vt,vt};function ir(Mt){if(typeof Mt=="string"){var Bt=it._prime(Mt);this.m=Bt.p,this.prime=Bt}else rt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}ir.prototype._verify1=function(Bt){rt(Bt.negative===0,"red works only with positives"),rt(Bt.red,"red works only with red numbers")},ir.prototype._verify2=function(Bt,vt){rt((Bt.negative|vt.negative)===0,"red works only with positives"),rt(Bt.red&&Bt.red===vt.red,"red works only with red numbers")},ir.prototype.imod=function(Bt){return this.prime?this.prime.ireduce(Bt)._forceRed(this):Bt.umod(this.m)._forceRed(this)},ir.prototype.neg=function(Bt){return Bt.isZero()?Bt.clone():this.m.sub(Bt)._forceRed(this)},ir.prototype.add=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.add(vt);return Nt.cmp(this.m)>=0&&Nt.isub(this.m),Nt._forceRed(this)},ir.prototype.iadd=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.iadd(vt);return Nt.cmp(this.m)>=0&&Nt.isub(this.m),Nt},ir.prototype.sub=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.sub(vt);return Nt.cmpn(0)<0&&Nt.iadd(this.m),Nt._forceRed(this)},ir.prototype.isub=function(Bt,vt){this._verify2(Bt,vt);var Nt=Bt.isub(vt);return Nt.cmpn(0)<0&&Nt.iadd(this.m),Nt},ir.prototype.shl=function(Bt,vt){return this._verify1(Bt),this.imod(Bt.ushln(vt))},ir.prototype.imul=function(Bt,vt){return this._verify2(Bt,vt),this.imod(Bt.imul(vt))},ir.prototype.mul=function(Bt,vt){return this._verify2(Bt,vt),this.imod(Bt.mul(vt))},ir.prototype.isqr=function(Bt){return this.imul(Bt,Bt.clone())},ir.prototype.sqr=function(Bt){return this.mul(Bt,Bt)},ir.prototype.sqrt=function(Bt){if(Bt.isZero())return Bt.clone();var vt=this.m.andln(3);if(rt(vt%2===1),vt===3){var Nt=this.m.add(new it(1)).iushrn(2);return this.pow(Bt,Nt)}for(var Ut=this.m.subn(1),Jt=0;!Ut.isZero()&&Ut.andln(1)===0;)Jt++,Ut.iushrn(1);rt(!Ut.isZero());var rr=new it(1).toRed(this),Wt=rr.redNeg(),Ot=this.m.subn(1).iushrn(1),bt=this.m.bitLength();for(bt=new it(2*bt*bt).toRed(this);this.pow(bt,Ot).cmp(Wt)!==0;)bt.redIAdd(Wt);for(var kt=this.pow(bt,Ut),Ar=this.pow(Bt,Ut.addn(1).iushrn(1)),cr=this.pow(Bt,Ut),Rt=Jt;cr.cmp(rr)!==0;){for(var Qr=cr,_r=0;Qr.cmp(rr)!==0;_r++)Qr=Qr.redSqr();rt(_r=0;Jt--){for(var kt=vt.words[Jt],Ar=bt-1;Ar>=0;Ar--){var cr=kt>>Ar&1;if(rr!==Ut[0]&&(rr=this.sqr(rr)),cr===0&&Wt===0){Ot=0;continue}Wt<<=1,Wt|=cr,Ot++,!(Ot!==Nt&&(Jt!==0||Ar!==0))&&(rr=this.mul(rr,Ut[Wt]),Ot=0,Wt=0)}bt=26}return rr},ir.prototype.convertTo=function(Bt){var vt=Bt.umod(this.m);return vt===Bt?vt.clone():vt},ir.prototype.convertFrom=function(Bt){var vt=Bt.clone();return vt.red=null,vt},it.mont=function(Bt){return new jt(Bt)};function jt(Mt){ir.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new it(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}nt(jt,ir),jt.prototype.convertTo=function(Bt){return this.imod(Bt.ushln(this.shift))},jt.prototype.convertFrom=function(Bt){var vt=this.imod(Bt.mul(this.rinv));return vt.red=null,vt},jt.prototype.imul=function(Bt,vt){if(Bt.isZero()||vt.isZero())return Bt.words[0]=0,Bt.length=1,Bt;var Nt=Bt.imul(vt),Ut=Nt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=Nt.isub(Ut).iushrn(this.shift),rr=Jt;return Jt.cmp(this.m)>=0?rr=Jt.isub(this.m):Jt.cmpn(0)<0&&(rr=Jt.iadd(this.m)),rr._forceRed(this)},jt.prototype.mul=function(Bt,vt){if(Bt.isZero()||vt.isZero())return new it(0)._forceRed(this);var Nt=Bt.mul(vt),Ut=Nt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Jt=Nt.isub(Ut).iushrn(this.shift),rr=Jt;return Jt.cmp(this.m)>=0?rr=Jt.isub(this.m):Jt.cmpn(0)<0&&(rr=Jt.iadd(this.m)),rr._forceRed(this)},jt.prototype.invm=function(Bt){var vt=this.imod(Bt._invmp(this.m).mul(this.r2));return vt._forceRed(this)}})($,commonjsGlobal)})(bn);var bnExports=bn.exports,minimalisticAssert=assert$f;function assert$f($,et){if(!$)throw new Error(et||"Assertion failed")}assert$f.equal=function $(et,tt,rt){if(et!=tt)throw new Error(rt||"Assertion failed: "+et+" != "+tt)};var utils$l={};(function($){var et=$;function tt(it,At){if(Array.isArray(it))return it.slice();if(!it)return[];var at=[];if(typeof it!="string"){for(var ot=0;ot>8,ut=st&255;ct?at.push(ct,ut):at.push(ut)}return at}et.toArray=tt;function rt(it){return it.length===1?"0"+it:it}et.zero2=rt;function nt(it){for(var At="",at=0;at(ht>>1)-1?mt=(ht>>1)-pt:mt=pt,Et.isubn(mt)):mt=0,dt[wt]=mt,Et.iushrn(1)}return dt}et.getNAF=it;function At(ct,ut){var gt=[[],[]];ct=ct.clone(),ut=ut.clone();for(var dt=0,ht=0,Et;ct.cmpn(-dt)>0||ut.cmpn(-ht)>0;){var wt=ct.andln(3)+dt&3,mt=ut.andln(3)+ht&3;wt===3&&(wt=-1),mt===3&&(mt=-1);var pt;wt&1?(Et=ct.andln(7)+dt&7,(Et===3||Et===5)&&mt===2?pt=-wt:pt=wt):pt=0,gt[0].push(pt);var Qt;mt&1?(Et=ut.andln(7)+ht&7,(Et===3||Et===5)&&wt===2?Qt=-mt:Qt=mt):Qt=0,gt[1].push(Qt),2*dt===pt+1&&(dt=1-dt),2*ht===Qt+1&&(ht=1-ht),ct.iushrn(1),ut.iushrn(1)}return gt}et.getJSF=At;function at(ct,ut,gt){var dt="_"+ut;ct.prototype[ut]=function(){return this[dt]!==void 0?this[dt]:this[dt]=gt.call(this)}}et.cachedProperty=at;function ot(ct){return typeof ct=="string"?et.toArray(ct,"hex"):ct}et.parseBytes=ot;function st(ct){return new tt(ct,"hex","le")}et.intFromLE=st})(utils$m);var brorand={exports:{}},r$1;brorand.exports=function $(et){return r$1||(r$1=new Rand(null)),r$1.generate(et)};function Rand($){this.rand=$}brorand.exports.Rand=Rand;Rand.prototype.generate=function $(et){return this._rand(et)};Rand.prototype._rand=function $(et){if(this.rand.getBytes)return this.rand.getBytes(et);for(var tt=new Uint8Array(et),rt=0;rt0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base=BaseCurve;BaseCurve.prototype.point=function $(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function $(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function $(et,tt){assert$e(et.precomputed);var rt=et._getDoubles(),nt=getNAF(tt,1,this._bitLength),it=(1<=at;st--)ot=(ot<<1)+nt[st];At.push(ot)}for(var ct=this.jpoint(null,null,null),ut=this.jpoint(null,null,null),gt=it;gt>0;gt--){for(at=0;at=0;ot--){for(var st=0;ot>=0&&At[ot]===0;ot--)st++;if(ot>=0&&st++,at=at.dblp(st),ot<0)break;var ct=At[ot];assert$e(ct!==0),et.type==="affine"?ct>0?at=at.mixedAdd(it[ct-1>>1]):at=at.mixedAdd(it[-ct-1>>1].neg()):ct>0?at=at.add(it[ct-1>>1]):at=at.add(it[-ct-1>>1].neg())}return et.type==="affine"?at.toP():at};BaseCurve.prototype._wnafMulAdd=function $(et,tt,rt,nt,it){var At=this._wnafT1,at=this._wnafT2,ot=this._wnafT3,st=0,ct,ut,gt;for(ct=0;ct=1;ct-=2){var ht=ct-1,Et=ct;if(At[ht]!==1||At[Et]!==1){ot[ht]=getNAF(rt[ht],At[ht],this._bitLength),ot[Et]=getNAF(rt[Et],At[Et],this._bitLength),st=Math.max(ot[ht].length,st),st=Math.max(ot[Et].length,st);continue}var wt=[tt[ht],null,null,tt[Et]];tt[ht].y.cmp(tt[Et].y)===0?(wt[1]=tt[ht].add(tt[Et]),wt[2]=tt[ht].toJ().mixedAdd(tt[Et].neg())):tt[ht].y.cmp(tt[Et].y.redNeg())===0?(wt[1]=tt[ht].toJ().mixedAdd(tt[Et]),wt[2]=tt[ht].add(tt[Et].neg())):(wt[1]=tt[ht].toJ().mixedAdd(tt[Et]),wt[2]=tt[ht].toJ().mixedAdd(tt[Et].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],pt=getJSF(rt[ht],rt[Et]);for(st=Math.max(pt[0].length,st),ot[ht]=new Array(st),ot[Et]=new Array(st),ut=0;ut=0;ct--){for(var Pt=0;ct>=0;){var Kt=!0;for(ut=0;ut=0&&Pt++,Gt=Gt.dblp(Pt),ct<0)break;for(ut=0;ut0?gt=at[ut][ir-1>>1]:ir<0&&(gt=at[ut][-ir-1>>1].neg()),gt.type==="affine"?Gt=Gt.mixedAdd(gt):Gt=Gt.add(gt))}}for(ct=0;ct=Math.ceil((et.bitLength()+1)/tt.step):!1};BasePoint.prototype._getDoubles=function $(et,tt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var rt=[this],nt=this,it=0;it=0&&(dt=st,ht=ct),ut.negative&&(ut=ut.neg(),gt=gt.neg()),dt.negative&&(dt=dt.neg(),ht=ht.neg()),[{a:ut,b:gt},{a:dt,b:ht}]};ShortCurve.prototype._endoSplit=function $(et){var tt=this.endo.basis,rt=tt[0],nt=tt[1],it=nt.b.mul(et).divRound(this.n),At=rt.b.neg().mul(et).divRound(this.n),at=it.mul(rt.a),ot=At.mul(nt.a),st=it.mul(rt.b),ct=At.mul(nt.b),ut=et.sub(at).sub(ot),gt=st.add(ct).neg();return{k1:ut,k2:gt}};ShortCurve.prototype.pointFromX=function $(et,tt){et=new BN$6(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr().redMul(et).redIAdd(et.redMul(this.a)).redIAdd(this.b),nt=rt.redSqrt();if(nt.redSqr().redSub(rt).cmp(this.zero)!==0)throw new Error("invalid point");var it=nt.fromRed().isOdd();return(tt&&!it||!tt&&it)&&(nt=nt.redNeg()),this.point(et,nt)};ShortCurve.prototype.validate=function $(et){if(et.inf)return!0;var tt=et.x,rt=et.y,nt=this.a.redMul(tt),it=tt.redSqr().redMul(tt).redIAdd(nt).redIAdd(this.b);return rt.redSqr().redISub(it).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function $(et,tt,rt){for(var nt=this._endoWnafT1,it=this._endoWnafT2,At=0;At":""};Point$2.prototype.isInfinity=function $(){return this.inf};Point$2.prototype.add=function $(et){if(this.inf)return et;if(et.inf)return this;if(this.eq(et))return this.dbl();if(this.neg().eq(et))return this.curve.point(null,null);if(this.x.cmp(et.x)===0)return this.curve.point(null,null);var tt=this.y.redSub(et.y);tt.cmpn(0)!==0&&(tt=tt.redMul(this.x.redSub(et.x).redInvm()));var rt=tt.redSqr().redISub(this.x).redISub(et.x),nt=tt.redMul(this.x.redSub(rt)).redISub(this.y);return this.curve.point(rt,nt)};Point$2.prototype.dbl=function $(){if(this.inf)return this;var et=this.y.redAdd(this.y);if(et.cmpn(0)===0)return this.curve.point(null,null);var tt=this.curve.a,rt=this.x.redSqr(),nt=et.redInvm(),it=rt.redAdd(rt).redIAdd(rt).redIAdd(tt).redMul(nt),At=it.redSqr().redISub(this.x.redAdd(this.x)),at=it.redMul(this.x.redSub(At)).redISub(this.y);return this.curve.point(At,at)};Point$2.prototype.getX=function $(){return this.x.fromRed()};Point$2.prototype.getY=function $(){return this.y.fromRed()};Point$2.prototype.mul=function $(et){return et=new BN$6(et,16),this.isInfinity()?this:this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve.endo?this.curve._endoWnafMulAdd([this],[et]):this.curve._wnafMul(this,et)};Point$2.prototype.mulAdd=function $(et,tt,rt){var nt=[this,tt],it=[et,rt];return this.curve.endo?this.curve._endoWnafMulAdd(nt,it):this.curve._wnafMulAdd(1,nt,it,2)};Point$2.prototype.jmulAdd=function $(et,tt,rt){var nt=[this,tt],it=[et,rt];return this.curve.endo?this.curve._endoWnafMulAdd(nt,it,!0):this.curve._wnafMulAdd(1,nt,it,2,!0)};Point$2.prototype.eq=function $(et){return this===et||this.inf===et.inf&&(this.inf||this.x.cmp(et.x)===0&&this.y.cmp(et.y)===0)};Point$2.prototype.neg=function $(et){if(this.inf)return this;var tt=this.curve.point(this.x,this.y.redNeg());if(et&&this.precomputed){var rt=this.precomputed,nt=function(it){return it.neg()};tt.precomputed={naf:rt.naf&&{wnd:rt.naf.wnd,points:rt.naf.points.map(nt)},doubles:rt.doubles&&{step:rt.doubles.step,points:rt.doubles.points.map(nt)}}}return tt};Point$2.prototype.toJ=function $(){if(this.inf)return this.curve.jpoint(null,null,null);var et=this.curve.jpoint(this.x,this.y,this.curve.one);return et};function JPoint($,et,tt,rt){Base$2.BasePoint.call(this,$,"jacobian"),et===null&&tt===null&&rt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$6(0)):(this.x=new BN$6(et,16),this.y=new BN$6(tt,16),this.z=new BN$6(rt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$3(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function $(et,tt,rt){return new JPoint(this,et,tt,rt)};JPoint.prototype.toP=function $(){if(this.isInfinity())return this.curve.point(null,null);var et=this.z.redInvm(),tt=et.redSqr(),rt=this.x.redMul(tt),nt=this.y.redMul(tt).redMul(et);return this.curve.point(rt,nt)};JPoint.prototype.neg=function $(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function $(et){if(this.isInfinity())return et;if(et.isInfinity())return this;var tt=et.z.redSqr(),rt=this.z.redSqr(),nt=this.x.redMul(tt),it=et.x.redMul(rt),At=this.y.redMul(tt.redMul(et.z)),at=et.y.redMul(rt.redMul(this.z)),ot=nt.redSub(it),st=At.redSub(at);if(ot.cmpn(0)===0)return st.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ct=ot.redSqr(),ut=ct.redMul(ot),gt=nt.redMul(ct),dt=st.redSqr().redIAdd(ut).redISub(gt).redISub(gt),ht=st.redMul(gt.redISub(dt)).redISub(At.redMul(ut)),Et=this.z.redMul(et.z).redMul(ot);return this.curve.jpoint(dt,ht,Et)};JPoint.prototype.mixedAdd=function $(et){if(this.isInfinity())return et.toJ();if(et.isInfinity())return this;var tt=this.z.redSqr(),rt=this.x,nt=et.x.redMul(tt),it=this.y,At=et.y.redMul(tt).redMul(this.z),at=rt.redSub(nt),ot=it.redSub(At);if(at.cmpn(0)===0)return ot.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var st=at.redSqr(),ct=st.redMul(at),ut=rt.redMul(st),gt=ot.redSqr().redIAdd(ct).redISub(ut).redISub(ut),dt=ot.redMul(ut.redISub(gt)).redISub(it.redMul(ct)),ht=this.z.redMul(at);return this.curve.jpoint(gt,dt,ht)};JPoint.prototype.dblp=function $(et){if(et===0)return this;if(this.isInfinity())return this;if(!et)return this.dbl();var tt;if(this.curve.zeroA||this.curve.threeA){var rt=this;for(tt=0;tt=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};JPoint.prototype.inspect=function $(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function $(){return this.z.cmpn(0)===0};var BN$5=bnExports,inherits$2=inherits_browserExports,Base$1=base,utils$i=utils$m;function MontCurve($){Base$1.call(this,"mont",$),this.a=new BN$5($.a,16).toRed(this.red),this.b=new BN$5($.b,16).toRed(this.red),this.i4=new BN$5(4).toRed(this.red).redInvm(),this.two=new BN$5(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$2(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function $(et){var tt=et.normalize().x,rt=tt.redSqr(),nt=rt.redMul(tt).redAdd(rt.redMul(this.a)).redAdd(tt),it=nt.redSqrt();return it.redSqr().cmp(nt)===0};function Point$1($,et,tt){Base$1.BasePoint.call(this,$,"projective"),et===null&&tt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$5(et,16),this.z=new BN$5(tt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$2(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function $(et,tt){return this.point(utils$i.toArray(et,tt),1)};MontCurve.prototype.point=function $(et,tt){return new Point$1(this,et,tt)};MontCurve.prototype.pointFromJSON=function $(et){return Point$1.fromJSON(this,et)};Point$1.prototype.precompute=function $(){};Point$1.prototype._encode=function $(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function $(et,tt){return new Point$1(et,tt[0],tt[1]||et.one)};Point$1.prototype.inspect=function $(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function $(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function $(){var et=this.x.redAdd(this.z),tt=et.redSqr(),rt=this.x.redSub(this.z),nt=rt.redSqr(),it=tt.redSub(nt),At=tt.redMul(nt),at=it.redMul(nt.redAdd(this.curve.a24.redMul(it)));return this.curve.point(At,at)};Point$1.prototype.add=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function $(et,tt){var rt=this.x.redAdd(this.z),nt=this.x.redSub(this.z),it=et.x.redAdd(et.z),At=et.x.redSub(et.z),at=At.redMul(rt),ot=it.redMul(nt),st=tt.z.redMul(at.redAdd(ot).redSqr()),ct=tt.x.redMul(at.redISub(ot).redSqr());return this.curve.point(st,ct)};Point$1.prototype.mul=function $(et){for(var tt=et.clone(),rt=this,nt=this.curve.point(null,null),it=this,At=[];tt.cmpn(0)!==0;tt.iushrn(1))At.push(tt.andln(1));for(var at=At.length-1;at>=0;at--)At[at]===0?(rt=rt.diffAdd(nt,it),nt=nt.dbl()):(nt=rt.diffAdd(nt,it),rt=rt.dbl());return nt};Point$1.prototype.mulAdd=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function $(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function $(et){return this.getX().cmp(et.getX())===0};Point$1.prototype.normalize=function $(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function $(){return this.normalize(),this.x.fromRed()};var utils$h=utils$m,BN$4=bnExports,inherits$1=inherits_browserExports,Base=base,assert$c=utils$h.assert;function EdwardsCurve($){this.twisted=($.a|0)!==1,this.mOneA=this.twisted&&($.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",$),this.a=new BN$4($.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$4($.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$4($.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$c(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=($.c|0)===1}inherits$1(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function $(et){return this.mOneA?et.redNeg():this.a.redMul(et)};EdwardsCurve.prototype._mulC=function $(et){return this.oneC?et:this.c.redMul(et)};EdwardsCurve.prototype.jpoint=function $(et,tt,rt,nt){return this.point(et,tt,rt,nt)};EdwardsCurve.prototype.pointFromX=function $(et,tt){et=new BN$4(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr(),nt=this.c2.redSub(this.a.redMul(rt)),it=this.one.redSub(this.c2.redMul(this.d).redMul(rt)),At=nt.redMul(it.redInvm()),at=At.redSqrt();if(at.redSqr().redSub(At).cmp(this.zero)!==0)throw new Error("invalid point");var ot=at.fromRed().isOdd();return(tt&&!ot||!tt&&ot)&&(at=at.redNeg()),this.point(et,at)};EdwardsCurve.prototype.pointFromY=function $(et,tt){et=new BN$4(et,16),et.red||(et=et.toRed(this.red));var rt=et.redSqr(),nt=rt.redSub(this.c2),it=rt.redMul(this.d).redMul(this.c2).redSub(this.a),At=nt.redMul(it.redInvm());if(At.cmp(this.zero)===0){if(tt)throw new Error("invalid point");return this.point(this.zero,et)}var at=At.redSqrt();if(at.redSqr().redSub(At).cmp(this.zero)!==0)throw new Error("invalid point");return at.fromRed().isOdd()!==tt&&(at=at.redNeg()),this.point(at,et)};EdwardsCurve.prototype.validate=function $(et){if(et.isInfinity())return!0;et.normalize();var tt=et.x.redSqr(),rt=et.y.redSqr(),nt=tt.redMul(this.a).redAdd(rt),it=this.c2.redMul(this.one.redAdd(this.d.redMul(tt).redMul(rt)));return nt.cmp(it)===0};function Point($,et,tt,rt,nt){Base.BasePoint.call(this,$,"projective"),et===null&&tt===null&&rt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$4(et,16),this.y=new BN$4(tt,16),this.z=rt?new BN$4(rt,16):this.curve.one,this.t=nt&&new BN$4(nt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$1(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function $(et){return Point.fromJSON(this,et)};EdwardsCurve.prototype.point=function $(et,tt,rt,nt){return new Point(this,et,tt,rt,nt)};Point.fromJSON=function $(et,tt){return new Point(et,tt[0],tt[1],tt[2])};Point.prototype.inspect=function $(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function $(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function $(){var et=this.x.redSqr(),tt=this.y.redSqr(),rt=this.z.redSqr();rt=rt.redIAdd(rt);var nt=this.curve._mulA(et),it=this.x.redAdd(this.y).redSqr().redISub(et).redISub(tt),At=nt.redAdd(tt),at=At.redSub(rt),ot=nt.redSub(tt),st=it.redMul(at),ct=At.redMul(ot),ut=it.redMul(ot),gt=at.redMul(At);return this.curve.point(st,ct,gt,ut)};Point.prototype._projDbl=function $(){var et=this.x.redAdd(this.y).redSqr(),tt=this.x.redSqr(),rt=this.y.redSqr(),nt,it,At,at,ot,st;if(this.curve.twisted){at=this.curve._mulA(tt);var ct=at.redAdd(rt);this.zOne?(nt=et.redSub(tt).redSub(rt).redMul(ct.redSub(this.curve.two)),it=ct.redMul(at.redSub(rt)),At=ct.redSqr().redSub(ct).redSub(ct)):(ot=this.z.redSqr(),st=ct.redSub(ot).redISub(ot),nt=et.redSub(tt).redISub(rt).redMul(st),it=ct.redMul(at.redSub(rt)),At=ct.redMul(st))}else at=tt.redAdd(rt),ot=this.curve._mulC(this.z).redSqr(),st=at.redSub(ot).redSub(ot),nt=this.curve._mulC(et.redISub(at)).redMul(st),it=this.curve._mulC(at).redMul(tt.redISub(rt)),At=at.redMul(st);return this.curve.point(nt,it,At)};Point.prototype.dbl=function $(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function $(et){var tt=this.y.redSub(this.x).redMul(et.y.redSub(et.x)),rt=this.y.redAdd(this.x).redMul(et.y.redAdd(et.x)),nt=this.t.redMul(this.curve.dd).redMul(et.t),it=this.z.redMul(et.z.redAdd(et.z)),At=rt.redSub(tt),at=it.redSub(nt),ot=it.redAdd(nt),st=rt.redAdd(tt),ct=At.redMul(at),ut=ot.redMul(st),gt=At.redMul(st),dt=at.redMul(ot);return this.curve.point(ct,ut,dt,gt)};Point.prototype._projAdd=function $(et){var tt=this.z.redMul(et.z),rt=tt.redSqr(),nt=this.x.redMul(et.x),it=this.y.redMul(et.y),At=this.curve.d.redMul(nt).redMul(it),at=rt.redSub(At),ot=rt.redAdd(At),st=this.x.redAdd(this.y).redMul(et.x.redAdd(et.y)).redISub(nt).redISub(it),ct=tt.redMul(at).redMul(st),ut,gt;return this.curve.twisted?(ut=tt.redMul(ot).redMul(it.redSub(this.curve._mulA(nt))),gt=at.redMul(ot)):(ut=tt.redMul(ot).redMul(it.redSub(nt)),gt=this.curve._mulC(at).redMul(ot)),this.curve.point(ct,ut,gt)};Point.prototype.add=function $(et){return this.isInfinity()?et:et.isInfinity()?this:this.curve.extended?this._extAdd(et):this._projAdd(et)};Point.prototype.mul=function $(et){return this._hasDoubles(et)?this.curve._fixedNafMul(this,et):this.curve._wnafMul(this,et)};Point.prototype.mulAdd=function $(et,tt,rt){return this.curve._wnafMulAdd(1,[this,tt],[et,rt],2,!1)};Point.prototype.jmulAdd=function $(et,tt,rt){return this.curve._wnafMulAdd(1,[this,tt],[et,rt],2,!0)};Point.prototype.normalize=function $(){if(this.zOne)return this;var et=this.z.redInvm();return this.x=this.x.redMul(et),this.y=this.y.redMul(et),this.t&&(this.t=this.t.redMul(et)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function $(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function $(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function $(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function $(et){return this===et||this.getX().cmp(et.getX())===0&&this.getY().cmp(et.getY())===0};Point.prototype.eqXToP=function $(et){var tt=et.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(tt)===0)return!0;for(var rt=et.clone(),nt=this.curve.redN.redMul(this.z);;){if(rt.iadd(this.curve.n),rt.cmp(this.curve.p)>=0)return!1;if(tt.redIAdd(nt),this.x.cmp(tt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function($){var et=$;et.base=base,et.short=short,et.mont=mont,et.edwards=edwards})(curve);var curves$2={},hash$4={},utils$g={},assert$b=minimalisticAssert,inherits=inherits_browserExports;utils$g.inherits=inherits;function isSurrogatePair($,et){return($.charCodeAt(et)&64512)!==55296||et<0||et+1>=$.length?!1:($.charCodeAt(et+1)&64512)===56320}function toArray($,et){if(Array.isArray($))return $.slice();if(!$)return[];var tt=[];if(typeof $=="string")if(et){if(et==="hex")for($=$.replace(/[^a-z0-9]+/ig,""),$.length%2!==0&&($="0"+$),nt=0;nt<$.length;nt+=2)tt.push(parseInt($[nt]+$[nt+1],16))}else for(var rt=0,nt=0;nt<$.length;nt++){var it=$.charCodeAt(nt);it<128?tt[rt++]=it:it<2048?(tt[rt++]=it>>6|192,tt[rt++]=it&63|128):isSurrogatePair($,nt)?(it=65536+((it&1023)<<10)+($.charCodeAt(++nt)&1023),tt[rt++]=it>>18|240,tt[rt++]=it>>12&63|128,tt[rt++]=it>>6&63|128,tt[rt++]=it&63|128):(tt[rt++]=it>>12|224,tt[rt++]=it>>6&63|128,tt[rt++]=it&63|128)}else for(nt=0;nt<$.length;nt++)tt[nt]=$[nt]|0;return tt}utils$g.toArray=toArray;function toHex$2($){for(var et="",tt=0;tt<$.length;tt++)et+=zero2($[tt].toString(16));return et}utils$g.toHex=toHex$2;function htonl($){var et=$>>>24|$>>>8&65280|$<<8&16711680|($&255)<<24;return et>>>0}utils$g.htonl=htonl;function toHex32($,et){for(var tt="",rt=0;rt<$.length;rt++){var nt=$[rt];et==="little"&&(nt=htonl(nt)),tt+=zero8(nt.toString(16))}return tt}utils$g.toHex32=toHex32;function zero2($){return $.length===1?"0"+$:$}utils$g.zero2=zero2;function zero8($){return $.length===7?"0"+$:$.length===6?"00"+$:$.length===5?"000"+$:$.length===4?"0000"+$:$.length===3?"00000"+$:$.length===2?"000000"+$:$.length===1?"0000000"+$:$}utils$g.zero8=zero8;function join32($,et,tt,rt){var nt=tt-et;assert$b(nt%4===0);for(var it=new Array(nt/4),At=0,at=et;At>>0}return it}utils$g.join32=join32;function split32($,et){for(var tt=new Array($.length*4),rt=0,nt=0;rt<$.length;rt++,nt+=4){var it=$[rt];et==="big"?(tt[nt]=it>>>24,tt[nt+1]=it>>>16&255,tt[nt+2]=it>>>8&255,tt[nt+3]=it&255):(tt[nt+3]=it>>>24,tt[nt+2]=it>>>16&255,tt[nt+1]=it>>>8&255,tt[nt]=it&255)}return tt}utils$g.split32=split32;function rotr32$1($,et){return $>>>et|$<<32-et}utils$g.rotr32=rotr32$1;function rotl32$2($,et){return $<>>32-et}utils$g.rotl32=rotl32$2;function sum32$3($,et){return $+et>>>0}utils$g.sum32=sum32$3;function sum32_3$1($,et,tt){return $+et+tt>>>0}utils$g.sum32_3=sum32_3$1;function sum32_4$2($,et,tt,rt){return $+et+tt+rt>>>0}utils$g.sum32_4=sum32_4$2;function sum32_5$2($,et,tt,rt,nt){return $+et+tt+rt+nt>>>0}utils$g.sum32_5=sum32_5$2;function sum64$1($,et,tt,rt){var nt=$[et],it=$[et+1],At=rt+it>>>0,at=(At>>0,$[et+1]=At}utils$g.sum64=sum64$1;function sum64_hi$1($,et,tt,rt){var nt=et+rt>>>0,it=(nt>>0}utils$g.sum64_hi=sum64_hi$1;function sum64_lo$1($,et,tt,rt){var nt=et+rt;return nt>>>0}utils$g.sum64_lo=sum64_lo$1;function sum64_4_hi$1($,et,tt,rt,nt,it,At,at){var ot=0,st=et;st=st+rt>>>0,ot+=st>>0,ot+=st>>0,ot+=st>>0}utils$g.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1($,et,tt,rt,nt,it,At,at){var ot=et+rt+it+at;return ot>>>0}utils$g.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1($,et,tt,rt,nt,it,At,at,ot,st){var ct=0,ut=et;ut=ut+rt>>>0,ct+=ut>>0,ct+=ut>>0,ct+=ut>>0,ct+=ut>>0}utils$g.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1($,et,tt,rt,nt,it,At,at,ot,st){var ct=et+rt+it+at+st;return ct>>>0}utils$g.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1($,et,tt){var rt=et<<32-tt|$>>>tt;return rt>>>0}utils$g.rotr64_hi=rotr64_hi$1;function rotr64_lo$1($,et,tt){var rt=$<<32-tt|et>>>tt;return rt>>>0}utils$g.rotr64_lo=rotr64_lo$1;function shr64_hi$1($,et,tt){return $>>>tt}utils$g.shr64_hi=shr64_hi$1;function shr64_lo$1($,et,tt){var rt=$<<32-tt|et>>>tt;return rt>>>0}utils$g.shr64_lo=shr64_lo$1;var common$5={},utils$f=utils$g,assert$a=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$5.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function $(et,tt){if(et=utils$f.toArray(et,tt),this.pending?this.pending=this.pending.concat(et):this.pending=et,this.pendingTotal+=et.length,this.pending.length>=this._delta8){et=this.pending;var rt=et.length%this._delta8;this.pending=et.slice(et.length-rt,et.length),this.pending.length===0&&(this.pending=null),et=utils$f.join32(et,0,et.length-rt,this.endian);for(var nt=0;nt>>24&255,nt[it++]=et>>>16&255,nt[it++]=et>>>8&255,nt[it++]=et&255}else for(nt[it++]=et&255,nt[it++]=et>>>8&255,nt[it++]=et>>>16&255,nt[it++]=et>>>24&255,nt[it++]=0,nt[it++]=0,nt[it++]=0,nt[it++]=0,At=8;At>>3}common$4.g0_256=g0_256$1;function g1_256$1($){return rotr32($,17)^rotr32($,19)^$>>>10}common$4.g1_256=g1_256$1;var utils$d=utils$g,common$3=common$5,shaCommon$1=common$4,rotl32$1=utils$d.rotl32,sum32$2=utils$d.sum32,sum32_5$1=utils$d.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$3.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1(){if(!(this instanceof SHA1))return new SHA1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$d.inherits(SHA1,BlockHash$3);var _1=SHA1;SHA1.blockSize=512;SHA1.outSize=160;SHA1.hmacStrength=80;SHA1.padLength=64;SHA1.prototype._update=function $(et,tt){for(var rt=this.W,nt=0;nt<16;nt++)rt[nt]=et[tt+nt];for(;ntthis.blockSize&&(et=new this.Hash().update(et).digest()),assert$7(et.length<=this.blockSize);for(var tt=et.length;tt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(et,tt,rt)}var hmacDrbg=HmacDRBG$1;HmacDRBG$1.prototype._init=function $(et,tt,rt){var nt=et.concat(tt).concat(rt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var it=0;it=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(et.concat(rt||[])),this._reseed=1};HmacDRBG$1.prototype.generate=function $(et,tt,rt,nt){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof tt!="string"&&(nt=rt,rt=tt,tt=null),rt&&(rt=utils$6.toArray(rt,nt||"hex"),this._update(rt));for(var it=[];it.length"};var BN$2=bnExports,utils$4=utils$m,assert$4=utils$4.assert;function Signature$3($,et){if($ instanceof Signature$3)return $;this._importDER($,et)||(assert$4($.r&&$.s,"Signature without r or s"),this.r=new BN$2($.r,16),this.s=new BN$2($.s,16),$.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=$.recoveryParam)}var signature$1=Signature$3;function Position(){this.place=0}function getLength($,et){var tt=$[et.place++];if(!(tt&128))return tt;var rt=tt&15;if(rt===0||rt>4)return!1;for(var nt=0,it=0,At=et.place;it>>=0;return nt<=127?!1:(et.place=At,nt)}function rmPadding($){for(var et=0,tt=$.length-1;!$[et]&&!($[et+1]&128)&&et>>3);for($.push(tt|128);--tt;)$.push(et>>>(tt<<3)&255);$.push(et)}Signature$3.prototype.toDER=function $(et){var tt=this.r.toArray(),rt=this.s.toArray();for(tt[0]&128&&(tt=[0].concat(tt)),rt[0]&128&&(rt=[0].concat(rt)),tt=rmPadding(tt),rt=rmPadding(rt);!rt[0]&&!(rt[1]&128);)rt=rt.slice(1);var nt=[2];constructLength(nt,tt.length),nt=nt.concat(tt),nt.push(2),constructLength(nt,rt.length);var it=nt.concat(rt),At=[48];return constructLength(At,it.length),At=At.concat(it),utils$4.encode(At,et)};var BN$1=bnExports,HmacDRBG=hmacDrbg,utils$3=utils$m,curves$1=curves$2,rand=brorandExports,assert$3=utils$3.assert,KeyPair$2=key$1,Signature$2=signature$1;function EC$1($){if(!(this instanceof EC$1))return new EC$1($);typeof $=="string"&&(assert$3(Object.prototype.hasOwnProperty.call(curves$1,$),"Unknown curve "+$),$=curves$1[$]),$ instanceof curves$1.PresetCurve&&($={curve:$}),this.curve=$.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=$.curve.g,this.g.precompute($.curve.n.bitLength()+1),this.hash=$.hash||$.curve.hash}var ec$1=EC$1;EC$1.prototype.keyPair=function $(et){return new KeyPair$2(this,et)};EC$1.prototype.keyFromPrivate=function $(et,tt){return KeyPair$2.fromPrivate(this,et,tt)};EC$1.prototype.keyFromPublic=function $(et,tt){return KeyPair$2.fromPublic(this,et,tt)};EC$1.prototype.genKeyPair=function $(et){et||(et={});for(var tt=new HmacDRBG({hash:this.hash,pers:et.pers,persEnc:et.persEnc||"utf8",entropy:et.entropy||rand(this.hash.hmacStrength),entropyEnc:et.entropy&&et.entropyEnc||"utf8",nonce:this.n.toArray()}),rt=this.n.byteLength(),nt=this.n.sub(new BN$1(2));;){var it=new BN$1(tt.generate(rt));if(!(it.cmp(nt)>0))return it.iaddn(1),this.keyFromPrivate(it)}};EC$1.prototype._truncateToN=function $(et,tt){var rt=et.byteLength()*8-this.n.bitLength();return rt>0&&(et=et.ushrn(rt)),!tt&&et.cmp(this.n)>=0?et.sub(this.n):et};EC$1.prototype.sign=function $(et,tt,rt,nt){typeof rt=="object"&&(nt=rt,rt=null),nt||(nt={}),tt=this.keyFromPrivate(tt,rt),et=this._truncateToN(new BN$1(et,16));for(var it=this.n.byteLength(),At=tt.getPrivate().toArray("be",it),at=et.toArray("be",it),ot=new HmacDRBG({hash:this.hash,entropy:At,nonce:at,pers:nt.pers,persEnc:nt.persEnc||"utf8"}),st=this.n.sub(new BN$1(1)),ct=0;;ct++){var ut=nt.k?nt.k(ct):new BN$1(ot.generate(this.n.byteLength()));if(ut=this._truncateToN(ut,!0),!(ut.cmpn(1)<=0||ut.cmp(st)>=0)){var gt=this.g.mul(ut);if(!gt.isInfinity()){var dt=gt.getX(),ht=dt.umod(this.n);if(ht.cmpn(0)!==0){var Et=ut.invm(this.n).mul(ht.mul(tt.getPrivate()).iadd(et));if(Et=Et.umod(this.n),Et.cmpn(0)!==0){var wt=(gt.getY().isOdd()?1:0)|(dt.cmp(ht)!==0?2:0);return nt.canonical&&Et.cmp(this.nh)>0&&(Et=this.n.sub(Et),wt^=1),new Signature$2({r:ht,s:Et,recoveryParam:wt})}}}}}};EC$1.prototype.verify=function $(et,tt,rt,nt){et=this._truncateToN(new BN$1(et,16)),rt=this.keyFromPublic(rt,nt),tt=new Signature$2(tt,"hex");var it=tt.r,At=tt.s;if(it.cmpn(1)<0||it.cmp(this.n)>=0||At.cmpn(1)<0||At.cmp(this.n)>=0)return!1;var at=At.invm(this.n),ot=at.mul(et).umod(this.n),st=at.mul(it).umod(this.n),ct;return this.curve._maxwellTrick?(ct=this.g.jmulAdd(ot,rt.getPublic(),st),ct.isInfinity()?!1:ct.eqXToP(it)):(ct=this.g.mulAdd(ot,rt.getPublic(),st),ct.isInfinity()?!1:ct.getX().umod(this.n).cmp(it)===0)};EC$1.prototype.recoverPubKey=function($,et,tt,rt){assert$3((3&tt)===tt,"The recovery param is more than two bits"),et=new Signature$2(et,rt);var nt=this.n,it=new BN$1($),At=et.r,at=et.s,ot=tt&1,st=tt>>1;if(At.cmp(this.curve.p.umod(this.curve.n))>=0&&st)throw new Error("Unable to find sencond key candinate");st?At=this.curve.pointFromX(At.add(this.curve.n),ot):At=this.curve.pointFromX(At,ot);var ct=et.r.invm(nt),ut=nt.sub(it).mul(ct).umod(nt),gt=at.mul(ct).umod(nt);return this.g.mulAdd(ut,At,gt)};EC$1.prototype.getKeyRecoveryParam=function($,et,tt,rt){if(et=new Signature$2(et,rt),et.recoveryParam!==null)return et.recoveryParam;for(var nt=0;nt<4;nt++){var it;try{it=this.recoverPubKey($,et,nt)}catch{continue}if(it.eq(tt))return nt}throw new Error("Unable to find valid recovery factor")};var utils$2=utils$m,assert$2=utils$2.assert,parseBytes$2=utils$2.parseBytes,cachedProperty$1=utils$2.cachedProperty;function KeyPair$1($,et){this.eddsa=$,this._secret=parseBytes$2(et.secret),$.isPoint(et.pub)?this._pub=et.pub:this._pubBytes=parseBytes$2(et.pub)}KeyPair$1.fromPublic=function $(et,tt){return tt instanceof KeyPair$1?tt:new KeyPair$1(et,{pub:tt})};KeyPair$1.fromSecret=function $(et,tt){return tt instanceof KeyPair$1?tt:new KeyPair$1(et,{secret:tt})};KeyPair$1.prototype.secret=function $(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function $(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function $(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function $(){var et=this.eddsa,tt=this.hash(),rt=et.encodingLength-1,nt=tt.slice(0,et.encodingLength);return nt[0]&=248,nt[rt]&=127,nt[rt]|=64,nt});cachedProperty$1(KeyPair$1,"priv",function $(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function $(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function $(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function $(et){return assert$2(this._secret,"KeyPair can only verify"),this.eddsa.sign(et,this)};KeyPair$1.prototype.verify=function $(et,tt){return this.eddsa.verify(et,tt,this)};KeyPair$1.prototype.getSecret=function $(et){return assert$2(this._secret,"KeyPair is public only"),utils$2.encode(this.secret(),et)};KeyPair$1.prototype.getPublic=function $(et){return utils$2.encode(this.pubBytes(),et)};var key=KeyPair$1,BN=bnExports,utils$1=utils$m,assert$1=utils$1.assert,cachedProperty=utils$1.cachedProperty,parseBytes$1=utils$1.parseBytes;function Signature$1($,et){this.eddsa=$,typeof et!="object"&&(et=parseBytes$1(et)),Array.isArray(et)&&(et={R:et.slice(0,$.encodingLength),S:et.slice($.encodingLength)}),assert$1(et.R&&et.S,"Signature without R or S"),$.isPoint(et.R)&&(this._R=et.R),et.S instanceof BN&&(this._S=et.S),this._Rencoded=Array.isArray(et.R)?et.R:et.Rencoded,this._Sencoded=Array.isArray(et.S)?et.S:et.Sencoded}cachedProperty(Signature$1,"S",function $(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function $(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function $(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function $(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function $(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function $(){return utils$1.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$2,utils=utils$m,assert=utils.assert,parseBytes=utils.parseBytes,KeyPair=key,Signature=signature;function EDDSA($){if(assert($==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA($);$=curves[$].curve,this.curve=$,this.g=$.g,this.g.precompute($.n.bitLength()+1),this.pointClass=$.point().constructor,this.encodingLength=Math.ceil($.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function $(et,tt){et=parseBytes(et);var rt=this.keyFromSecret(tt),nt=this.hashInt(rt.messagePrefix(),et),it=this.g.mul(nt),At=this.encodePoint(it),at=this.hashInt(At,rt.pubBytes(),et).mul(rt.priv()),ot=nt.add(at).umod(this.curve.n);return this.makeSignature({R:it,S:ot,Rencoded:At})};EDDSA.prototype.verify=function $(et,tt,rt){et=parseBytes(et),tt=this.makeSignature(tt);var nt=this.keyFromPublic(rt),it=this.hashInt(tt.Rencoded(),nt.pubBytes(),et),At=this.g.mul(tt.S()),at=tt.R().add(nt.pub().mul(it));return at.eq(At)};EDDSA.prototype.hashInt=function $(){for(var et=this.hash(),tt=0;ttsrc.value.bytes(et.toUint8Array())))}))}toJSON(){return Object.assign({expiration:this.expiration.toString(16),pubkey:toHexString$5(this.pubkey)},this.targets&&{targets:this.targets.map(et=>et.toHex())})}};async function _createSingleDelegation$2($,et,tt,rt){const nt=new Delegation$2(et.toDer(),BigInt(+tt)*BigInt(1e6),rt),it=new Uint8Array([...domainSeparator$5,...new Uint8Array(requestIdOf$2(nt))]),At=await $.sign(it);return{delegation:nt,signature:At}}let DelegationChain$2=class VA{constructor(et,tt){this.delegations=et,this.publicKey=tt}static async create(et,tt,rt=new Date(Date.now()+15*60*1e3),nt={}){var it,At;const at=await _createSingleDelegation$2(et,tt,rt,nt.targets);return new VA([...((it=nt.previous)===null||it===void 0?void 0:it.delegations)||[],at],((At=nt.previous)===null||At===void 0?void 0:At.publicKey)||et.getPublicKey().toDer())}static fromJSON(et){const{publicKey:tt,delegations:rt}=typeof et=="string"?JSON.parse(et):et;if(!Array.isArray(rt))throw new Error("Invalid delegations.");const nt=rt.map(it=>{const{delegation:At,signature:at}=it,{pubkey:ot,expiration:st,targets:ct}=At;if(ct!==void 0&&!Array.isArray(ct))throw new Error("Invalid targets.");return{delegation:new Delegation$2(_parseBlob$2(ot),BigInt(`0x${st}`),ct&&ct.map(ut=>{if(typeof ut!="string")throw new Error("Invalid target.");return Principal$5.fromHex(ut)})),signature:_parseBlob$2(at)}});return new this(nt,_parseBlob$2(tt))}static fromDelegations(et,tt){return new this(et,tt)}toJSON(){return{delegations:this.delegations.map(et=>{const{delegation:tt,signature:rt}=et,{targets:nt}=tt;return{delegation:Object.assign({expiration:tt.expiration.toString(16),pubkey:toHexString$5(tt.pubkey)},nt&&{targets:nt.map(it=>it.toHex())}),signature:toHexString$5(rt)}}),publicKey:toHexString$5(this.publicKey)}}},DelegationIdentity$1=class extends SignIdentity$2{constructor(et,tt){super(),this._inner=et,this._delegation=tt}static fromDelegation(et,tt){return new this(et,tt)}getDelegation(){return this._delegation}getPublicKey(){return{toDer:()=>this._delegation.publicKey}}sign(et){return this._inner.sign(et)}async transformRequest(et){const{body:tt}=et,rt=__rest$3(et,["body"]),nt=await requestIdOf$2(tt);return Object.assign(Object.assign({},rt),{body:{content:tt,sender_sig:await this.sign(new Uint8Array([...requestDomainSeparator$1,...new Uint8Array(nt)])),sender_delegation:this._delegation.delegations,sender_pubkey:this._delegation.publicKey}})}};var PubKeyCoseAlgo$2;(function($){$[$.ECDSA_WITH_SHA256=-7]="ECDSA_WITH_SHA256"})(PubKeyCoseAlgo$2||(PubKeyCoseAlgo$2={}));function isDelegationValid$2($,et){for(const{delegation:nt}of $.delegations)if(+new Date(Number(nt.expiration/BigInt(1e6)))<=+Date.now())return!1;const tt=[],rt=et==null?void 0:et.scope;rt&&(Array.isArray(rt)?tt.push(...rt.map(nt=>typeof nt=="string"?Principal$5.fromText(nt):nt)):tt.push(typeof rt=="string"?Principal$5.fromText(rt):rt));for(const nt of tt){const it=nt.toText();for(const{delegation:At}of $.delegations){if(At.targets===void 0)continue;let at=!0;for(const ot of At.targets)if(ot.toText()===it){at=!1;break}if(at)return!1}}return!0}const events=["mousedown","mousemove","keydown","touchstart","wheel"];class IdleManager{constructor(et={}){var tt;this.callbacks=[],this.idleTimeout=10*60*1e3,this.timeoutID=void 0;const{onIdle:rt,idleTimeout:nt=10*60*1e3}=et||{};this.callbacks=rt?[rt]:[],this.idleTimeout=nt;const it=this._resetTimer.bind(this);window.addEventListener("load",it,!0),events.forEach(function(at){document.addEventListener(at,it,!0)});const At=(at,ot)=>{let st;return(...ct)=>{const ut=this,gt=function(){st=void 0,at.apply(ut,ct)};clearTimeout(st),st=window.setTimeout(gt,ot)}};if(et!=null&&et.captureScroll){const at=At(it,(tt=et==null?void 0:et.scrollDebounce)!==null&&tt!==void 0?tt:100);window.addEventListener("scroll",at,!0)}it()}static create(et={}){return new this(et)}registerCallback(et){this.callbacks.push(et)}exit(){clearTimeout(this.timeoutID),window.removeEventListener("load",this._resetTimer,!0);const et=this._resetTimer.bind(this);events.forEach(function(tt){document.removeEventListener(tt,et,!0)}),this.callbacks.forEach(tt=>tt())}_resetTimer(){const et=this.exit.bind(this);window.clearTimeout(this.timeoutID),this.timeoutID=window.setTimeout(et,this.idleTimeout)}}const KEY_LOCALSTORAGE_KEY="identity",KEY_LOCALSTORAGE_DELEGATION="delegation",IDENTITY_PROVIDER_DEFAULT$1="https://identity.ic0.app",IDENTITY_PROVIDER_ENDPOINT$1="#authorize",INTERRUPT_CHECK_INTERVAL=500,ERROR_USER_INTERRUPT="UserInterrupt";async function _deleteStorage$1($){await $.remove(KEY_LOCALSTORAGE_KEY),await $.remove(KEY_LOCALSTORAGE_DELEGATION)}class LocalStorage{constructor(et="ic-",tt){this.prefix=et,this._localStorage=tt}get(et){return Promise.resolve(this._getLocalStorage().getItem(this.prefix+et))}set(et,tt){return this._getLocalStorage().setItem(this.prefix+et,tt),Promise.resolve()}remove(et){return this._getLocalStorage().removeItem(this.prefix+et),Promise.resolve()}_getLocalStorage(){if(this._localStorage)return this._localStorage;const et=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.localStorage:global.localStorage:window.localStorage;if(!et)throw new Error("Could not find local storage.");return et}}let AuthClient$1=class{constructor(et,tt,rt,nt,it,At,at,ot){var st;this._identity=et,this._key=tt,this._chain=rt,this._storage=nt,this.idleManager=it,this._createOptions=At,this._idpWindow=at,this._eventHandler=ot;const ct=this.logout.bind(this),ut=At==null?void 0:At.idleOptions;!(ut!=null&&ut.onIdle)&&!(ut!=null&&ut.disableDefaultIdleCallback)&&((st=this.idleManager)===null||st===void 0||st.registerCallback(()=>{ct(),location.reload()}))}static async create(et={}){var tt,rt;const nt=(tt=et.storage)!==null&&tt!==void 0?tt:new LocalStorage("ic-");let it=null;if(et.identity)it=et.identity;else{const st=await nt.get(KEY_LOCALSTORAGE_KEY);if(st)try{it=Ed25519KeyIdentity$1.fromJSON(st)}catch{}}let At=new AnonymousIdentity$2,at=null;if(it)try{const st=await nt.get(KEY_LOCALSTORAGE_DELEGATION);et.identity?At=et.identity:st&&(at=DelegationChain$2.fromJSON(st),isDelegationValid$2(at)?At=DelegationIdentity$1.fromDelegation(it,at):(await _deleteStorage$1(nt),it=null))}catch(st){console.error(st),await _deleteStorage$1(nt),it=null}const ot=!((rt=et.idleOptions)===null||rt===void 0)&&rt.disableIdle?void 0:IdleManager.create(et.idleOptions);return new this(At,it,at,nt,ot,et)}_handleSuccess(et,tt){var rt;const nt=et.delegations.map(at=>({delegation:new Delegation$2(at.delegation.pubkey,at.delegation.expiration,at.delegation.targets),signature:at.signature.buffer})),it=DelegationChain$2.fromDelegations(nt,et.userPublicKey.buffer),At=this._key;At&&(this._chain=it,this._identity=DelegationIdentity$1.fromDelegation(At,this._chain),(rt=this._idpWindow)===null||rt===void 0||rt.close(),tt==null||tt(),this._removeEventListener(),delete this._idpWindow)}getIdentity(){return this._identity}async isAuthenticated(){return!this.getIdentity().getPrincipal().isAnonymous()&&this._chain!==null}async login(et){var tt,rt,nt,it;let At=this._key;At||(At=Ed25519KeyIdentity$1.generate(),this._key=At,await this._storage.set(KEY_LOCALSTORAGE_KEY,JSON.stringify(At)));const at=BigInt(8)*BigInt(36e11),ot=new URL(((tt=et==null?void 0:et.identityProvider)===null||tt===void 0?void 0:tt.toString())||IDENTITY_PROVIDER_DEFAULT$1);ot.hash=IDENTITY_PROVIDER_ENDPOINT$1,(rt=this._idpWindow)===null||rt===void 0||rt.close(),this._removeEventListener(),this._eventHandler=this._getEventHandler(ot,Object.assign({maxTimeToLive:(nt=et==null?void 0:et.maxTimeToLive)!==null&&nt!==void 0?nt:at},et)),window.addEventListener("message",this._eventHandler),this._idpWindow=(it=window.open(ot.toString(),"idpWindow",et==null?void 0:et.windowOpenerFeatures))!==null&&it!==void 0?it:void 0;const st=()=>{this._idpWindow&&(this._idpWindow.closed?this._handleFailure(ERROR_USER_INTERRUPT,et==null?void 0:et.onError):setTimeout(st,INTERRUPT_CHECK_INTERVAL))};st()}_getEventHandler(et,tt){return async rt=>{var nt,it,At;if(rt.origin!==et.origin){console.warn(`WARNING: expected origin '${et.origin}', got '${rt.origin}' (ignoring)`);return}const at=rt.data;switch(at.kind){case"authorize-ready":{const ot={kind:"authorize-client",sessionPublicKey:new Uint8Array((nt=this._key)===null||nt===void 0?void 0:nt.getPublicKey().toDer()),maxTimeToLive:tt==null?void 0:tt.maxTimeToLive,derivationOrigin:(it=tt==null?void 0:tt.derivationOrigin)===null||it===void 0?void 0:it.toString()};(At=this._idpWindow)===null||At===void 0||At.postMessage(ot,et.origin);break}case"authorize-client-success":try{this._handleSuccess(at,tt==null?void 0:tt.onSuccess),this._chain&&await this._storage.set(KEY_LOCALSTORAGE_DELEGATION,JSON.stringify(this._chain.toJSON()))}catch(ot){this._handleFailure(ot.message,tt==null?void 0:tt.onError)}break;case"authorize-client-failure":this._handleFailure(at.text,tt==null?void 0:tt.onError);break}}}_handleFailure(et,tt){var rt;(rt=this._idpWindow)===null||rt===void 0||rt.close(),tt==null||tt(et),this._removeEventListener(),delete this._idpWindow}_removeEventListener(){this._eventHandler&&window.removeEventListener("message",this._eventHandler),this._eventHandler=void 0}async logout(et={}){if(_deleteStorage$1(this._storage),this._identity=new AnonymousIdentity$2,this._key=null,this._chain=null,et.returnTo)try{window.history.pushState({},"",et.returnTo)}catch{window.location.href=et.returnTo}}};const dfinity={readyState:"Loadable",url:"https://identity.ic0.app",authClient:!1,connectWallet:async function($={whitelist:[],host:""}){var et=this,tt={};return et.authClient=await AuthClient$1.create(),new Promise(async(rt,nt)=>{var it=await et.authClient.isAuthenticated();it?(tt=await At(),rt(tt)):et.authClient.login({identityProvider:"https://identity.ic0.app",onSuccess:async()=>{tt=await At(),rt(tt)}});async function At(){var at=await et.authClient.getIdentity(),ot=await(at==null?void 0:at.getPrincipal());et.agent=new HttpAgent$2({identity:at,host:$.host});var st=await getAccountIdentifier(at==null?void 0:at.getPrincipal().toString());return et.createActor=async function(ct={canisterId:"",interfaceFactory:!1}){return!ct.canisterId||!ct.interfaceFactory?!1:await Actor$2.createActor(ct.interfaceFactory,{agent:this.agent,canisterId:ct.canisterId})},et.createAgent=async function(){return new HttpAgent$2({identity:at,host:$.host})},et.getPrincipal=async function(){return at.getPrincipal()},et.disConnectWallet=async function(){await et.authClient.logout()},{accountId:st,principalId:ot.toString()}}})}};window.ic&&window.ic.plug&&window.ic.plug.init();const plug=window.ic?window.ic.plug?{readyState:"Installed",connectWallet:async function($={whitelist:[],host:""}){var et=!1,tt=!1,rt=!1;try{rt=await window.ic.plug.isConnected()}catch{}try{rt?await window.ic.plug.createAgent($):et=await window.ic.plug.requestConnect($),tt=await window.ic.plug.agent.getPrincipal();var nt=await window.ic.plug.sessionManager.getSession();return this.agent=window.ic.plug.agent,this.getPrincipal=async function(){return window.ic.plug.getPrincipal()},this.createActor=async function(it,At){return window.ic.plug.createActor(it,At)},this.batchTransactions=async function(it,At={state:"init",txList:[]}){return At&&At.txList>0&&it.forEach((at,ot)=>{it[ot].onSuccess=()=>{At.state=txList[ot],at.onSuccess()}}),window.ic.plug.batchTransactions(it)},{accountId:nt.accountId,principalId:tt.toString()}}catch{return!1}},disConnectWallet:async function(){await window.ic.plug.disconnect()}}:{readyState:"NotDetected",url:"https://plugwallet.ooo/"}:{readyState:"NotDetected",url:"https://plugwallet.ooo/"};window.Buffer=buffer$2.Buffer;const domainSeparator$4=buffer$2.Buffer.from(new TextEncoder().encode(` ic-request`));var _stoicOrigin="https://www.stoicwallet.com";class PublicKey{constructor(et,tt){this._der=et,this._type=tt}getType(){return this._type}toDer(){return this._der}}class StoicIdentity extends SignIdentity$2{constructor(et,tt){super(),this._principal=et,this._publicKey=tt}static disconnect(){return _stoicLogout()}static connect(et){return new Promise(async(tt,rt)=>{et&&(_stoicOrigin=et),_stoicLogin(_stoicOrigin).then(nt=>{tt(new StoicIdentity(Principal$5.fromText(nt.principal),new PublicKey(nt.key,nt.type)))}).catch(rt)})}static load(et){return new Promise(async(tt,rt)=>{et&&(_stoicOrigin=et);var nt=_stoicInit();if(nt===!1)tt(!1);else{var it=new StoicIdentity(Principal$5.fromText(nt.principal),new PublicKey(nt.key,nt.type));it.accounts().then(At=>{tt(it)}).catch(At=>{console.log(At),tt(!1)})}})}getPublicKey(){return this._publicKey}sign(et){return this._transport(buf2hex(et))}_transport(et){return _stoicSign("sign",et,this.getPrincipal().toText())}accounts(){return _stoicSign("accounts","accounts",this.getPrincipal().toText())}transformRequest(et){return new Promise(async(tt,rt)=>{try{const{body:At,...at}=et,ot=await requestIdOf$2(At),st=this.getPublicKey();var nt={...at,body:{content:At}};const ct=JSON.parse(await this.sign(buffer$2.Buffer.from(buffer$2.Buffer.concat([domainSeparator$4,new Uint8Array(ot)]))));if(nt.body.sender_sig=hex2buf(ct.signed),st.getType()=="DelegationIdentity"){var it=DelegationChain$2.fromJSON(ct.chain);nt.body.sender_pubkey=it.publicKey,nt.body.sender_delegation=it.delegations}else nt.body.sender_pubkey=new Uint8Array(Object.values(st.toDer()));tt(nt)}catch(At){rt(At)}})}}var _stoicWindow,_stoicWindowCB,_stoicApiKey,_stoicApp,_listenerIndex=0,_listener={},_frames={};const _stoicInit=()=>(_stoicApp=JSON.parse(localStorage.getItem("_scApp")),_stoicApp||!1),_stoicLogout=()=>{localStorage.removeItem("_scApp"),_stoicApiKey="",_stoicApp=null},_stoicLogin=$=>new Promise(async(et,tt)=>{var rt=await _generateKey();_stoicApiKey=rt.apikey,_stoicWindow=window.open($+"?authorizeApp","stoic"),_stoicWindowCB=[nt=>{rt.principal=nt.principal,rt.key=nt.key,rt.type=nt.type,_stoicApp=rt,localStorage.setItem("_scApp",JSON.stringify(rt)),et(rt)},tt]}),_stoicSign=($,et,tt)=>new Promise(async function(rt,nt){var it=new TextEncoder,At=it.encode(et),at=await window.crypto.subtle.importKey("jwk",_stoicApp.secretkey,{name:"ECDSA",namedCurve:"P-384"},!0,["sign"]),ot=await window.crypto.subtle.sign({name:"ECDSA",hash:{name:"SHA-384"}},at,At),st=buf2hex(ot);_postToFrame({target:"STOIC-IFRAME",action:$,payload:et,principal:tt,apikey:_stoicApp.apikey,sig:st},rt,nt)});function _generateKey(){return new Promise(async($,et)=>{var tt=await window.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-384"},!0,["sign","verify"]),rt=await window.crypto.subtle.exportKey("spki",tt.publicKey),nt=await window.crypto.subtle.exportKey("jwk",tt.privateKey);$({principal:"",key:"",type:"",secretkey:nt,apikey:buf2hex(rt)})})}function _removeFrame($){_frames[$].parentNode.removeChild(_frames[$])}function _postToFrame($,et,tt){var rt=_listenerIndex;_listenerIndex+=1,_listener[rt]=[et,tt];var nt=document.createElement("iframe");nt.setAttribute("id","connect_iframe"+rt),nt.setAttribute("width","0"),nt.setAttribute("height","0"),nt.setAttribute("border","0"),document.body.appendChild(nt),_frames[rt]=document.getElementById("connect_iframe"+rt),_frames[rt].addEventListener("load",function(){$.listener=rt,_frames[rt].contentWindow.postMessage($,"*")}),nt.setAttribute("src",_stoicOrigin+"/?stoicTunnel")}function buf2hex($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}function hex2buf($){const et=new Uint8Array($.length/2);for(let tt=0;tt<$.length;tt+=2)et[tt/2]=parseInt($.substring(tt,tt+2),16);return et}window.addEventListener("message",function($){$.origin==_stoicOrigin&&($&&$.data&&$.data.target==="STOIC-EXT"?(typeof $.data.success<"u"&&$.data.success?_listener[$.data.listener][0]($.data.data):_listener[$.data.listener][1]($.data.data),_removeFrame($.data.listener)):$.data.action=="initiateStoicConnect"?_stoicWindow.postMessage({action:"requestAuthorization",apikey:_stoicApiKey},"*"):$.data.action=="rejectAuthorization"?(_stoicWindowCB[1]("Authorization Rejected"),_stoicWindowCB=null,_stoicWindow.close()):$.data.action=="confirmAuthorization"&&(_stoicWindowCB[0]($.data),_stoicWindowCB=null,_stoicWindow.close()))},!1);const stoic={readyState:"Loadable",url:"https://www.stoicwallet.com/",connectWallet:async function($={whitelist:[],host:""}){var et=await StoicIdentity.load();et||(et=await StoicIdentity.connect());let tt=await et.accounts();return tt=JSON.parse(tt),this.agent=new HttpAgent$2({identity:et,host:$.host}),this.createActor=async function(rt={canisterId:"",interfaceFactory:!1}){return!rt.canisterId||!rt.interfaceFactory?!1:await Actor$2.createActor(rt.interfaceFactory,{agent:this.agent,canisterId:rt.canisterId})},this.createAgent=function(){return new HttpAgent$2({identity:et,host:$.host})},this.getPrincipal=function(){return et.getPrincipal()},this.disConnectWallet=async function(){await StoicIdentity.disconnect()},{stoicAccounts:tt,accountId:tt[0].address,principalId:et._principal.toString()}}};var ReplicaRejectCode$1;(function($){$[$.SysFatal=1]="SysFatal",$[$.SysTransient=2]="SysTransient",$[$.DestinationInvalid=3]="DestinationInvalid",$[$.CanisterReject=4]="CanisterReject",$[$.CanisterError=5]="CanisterError"})(ReplicaRejectCode$1||(ReplicaRejectCode$1={}));const scriptRel="modulepreload",assetsURL=function($){return"/"+$},seen={},__vitePreload=function $(et,tt,rt){if(!tt||tt.length===0)return et();const nt=document.getElementsByTagName("link");return Promise.all(tt.map(it=>{if(it=assetsURL(it),it in seen)return;seen[it]=!0;const At=it.endsWith(".css"),at=At?'[rel="stylesheet"]':"";if(!!rt)for(let ct=nt.length-1;ct>=0;ct--){const ut=nt[ct];if(ut.href===it&&(!At||ut.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${it}"]${at}`))return;const st=document.createElement("link");if(st.rel=At?"stylesheet":scriptRel,At||(st.as="script",st.crossOrigin=""),st.href=it,document.head.appendChild(st),At)return new Promise((ct,ut)=>{st.addEventListener("load",ct),st.addEventListener("error",()=>ut(new Error(`Unable to preload CSS for ${it}`)))})})).then(()=>et()).catch(it=>{const At=new Event("vite:preloadError",{cancelable:!0});if(At.payload=it,window.dispatchEvent(At),!At.defaultPrevented)throw it})},alphabet$1="abcdefghijklmnopqrstuvwxyz234567",lookupTable$1=Object.create(null);for(let $=0;$>-et:tt=it<3?(et-=8,1):(et<4&&(rt+=alphabet$1[tt>>3],et+=5),0)}for(let it=0;it<$.length;)it+=nt($[it]);return rt+(et<0?alphabet$1[tt>>3]:"")}function decode$6($){let et=0,tt=0;const rt=new Uint8Array($.length*4/3|0);let nt=0;function it(At){let at=lookupTable$1[At.toLowerCase()];if(at===void 0)throw new Error(`Invalid character: ${JSON.stringify(At)}`);at<<=3,tt|=at>>>et,et+=5,et>=8&&(rt[nt++]=tt,et-=8,et>0?tt=at<<5-et&255:tt=0)}for(const At of $)it(At);return rt.slice(0,nt)}const lookUpTable$1=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function getCrc32$1($){const et=new Uint8Array($);let tt=-1;for(let rt=0;rt>>8}return(tt^-1)>>>0}function isBytes$1($){return $ instanceof Uint8Array||$!=null&&typeof $=="object"&&$.constructor.name==="Uint8Array"}function bytes($,...et){if(!isBytes$1($))throw new Error("Expected Uint8Array");if(et.length>0&&!et.includes($.length))throw new Error(`Expected Uint8Array of length ${et}, not of length=${$.length}`)}function exists($,et=!0){if($.destroyed)throw new Error("Hash instance has been destroyed");if(et&&$.finished)throw new Error("Hash#digest() has already been called")}function output($,et){bytes($);const tt=et.outputLen;if($.lengthnew DataView($.buffer,$.byteOffset,$.byteLength),rotr=($,et)=>$<<32-et|$>>>et,isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!isLE)throw new Error("Non little-endian hardware is not supported");function utf8ToBytes($){if(typeof $!="string")throw new Error(`utf8ToBytes expected string, got ${typeof $}`);return new Uint8Array(new TextEncoder().encode($))}function toBytes($){if(typeof $=="string"&&($=utf8ToBytes($)),!isBytes($))throw new Error(`expected Uint8Array, got ${typeof $}`);return $}class Hash{clone(){return this._cloneInto()}}function wrapConstructor($){const et=rt=>$().update(toBytes(rt)).digest(),tt=$();return et.outputLen=tt.outputLen,et.blockLen=tt.blockLen,et.create=()=>$(),et}function setBigUint64($,et,tt,rt){if(typeof $.setBigUint64=="function")return $.setBigUint64(et,tt,rt);const nt=BigInt(32),it=BigInt(4294967295),At=Number(tt>>nt&it),at=Number(tt&it),ot=rt?4:0,st=rt?0:4;$.setUint32(et+ot,At,rt),$.setUint32(et+st,at,rt)}class SHA2 extends Hash{constructor(et,tt,rt,nt){super(),this.blockLen=et,this.outputLen=tt,this.padOffset=rt,this.isLE=nt,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(et),this.view=createView(this.buffer)}update(et){exists(this);const{view:tt,buffer:rt,blockLen:nt}=this;et=toBytes(et);const it=et.length;for(let At=0;Atnt-At&&(this.process(rt,0),At=0);for(let ut=At;utct.length)throw new Error("_sha2: outputLen bigger than state");for(let ut=0;ut$&et^~$&tt,Maj=($,et,tt)=>$&et^$&tt^et&tt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:et,B:tt,C:rt,D:nt,E:it,F:At,G:at,H:ot}=this;return[et,tt,rt,nt,it,At,at,ot]}set(et,tt,rt,nt,it,At,at,ot){this.A=et|0,this.B=tt|0,this.C=rt|0,this.D=nt|0,this.E=it|0,this.F=At|0,this.G=at|0,this.H=ot|0}process(et,tt){for(let ut=0;ut<16;ut++,tt+=4)SHA256_W[ut]=et.getUint32(tt,!1);for(let ut=16;ut<64;ut++){const gt=SHA256_W[ut-15],dt=SHA256_W[ut-2],ht=rotr(gt,7)^rotr(gt,18)^gt>>>3,Et=rotr(dt,17)^rotr(dt,19)^dt>>>10;SHA256_W[ut]=Et+SHA256_W[ut-7]+ht+SHA256_W[ut-16]|0}let{A:rt,B:nt,C:it,D:At,E:at,F:ot,G:st,H:ct}=this;for(let ut=0;ut<64;ut++){const gt=rotr(at,6)^rotr(at,11)^rotr(at,25),dt=ct+gt+Chi(at,ot,st)+SHA256_K[ut]+SHA256_W[ut]|0,Et=(rotr(rt,2)^rotr(rt,13)^rotr(rt,22))+Maj(rt,nt,it)|0;ct=st,st=ot,ot=at,at=At+dt|0,At=it,it=nt,nt=rt,rt=dt+Et|0}rt=rt+this.A|0,nt=nt+this.B|0,it=it+this.C|0,At=At+this.D|0,at=at+this.E|0,ot=ot+this.F|0,st=st+this.G|0,ct=ct+this.H|0,this.set(rt,nt,it,At,at,ot,st,ct)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}const sha256=wrapConstructor(()=>new SHA256),sha224$2=wrapConstructor(()=>new SHA224);function sha224$1($){return sha224$2.create().update(new Uint8Array($)).digest()}const JSON_KEY_PRINCIPAL$1="__principal__",SELF_AUTHENTICATING_SUFFIX$1=2,ANONYMOUS_SUFFIX$1=4,MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$1="aaaaa-aa",fromHexString$4=$=>{var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16)))},toHexString$4=$=>$.reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"");let Principal$3=class wA{constructor(et){this._arr=et,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([ANONYMOUS_SUFFIX$1]))}static managementCanister(){return this.fromHex(MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR$1)}static selfAuthenticating(et){const tt=sha224$1(et);return new this(new Uint8Array([...tt,SELF_AUTHENTICATING_SUFFIX$1]))}static from(et){if(typeof et=="string")return wA.fromText(et);if(typeof et=="object"&&et!==null&&et._isPrincipal===!0)return new wA(et._arr);throw new Error(`Impossible to convert ${JSON.stringify(et)} to Principal.`)}static fromHex(et){return new this(fromHexString$4(et))}static fromText(et){let tt=et;if(et.includes(JSON_KEY_PRINCIPAL$1)){const At=JSON.parse(et);JSON_KEY_PRINCIPAL$1 in At&&(tt=At[JSON_KEY_PRINCIPAL$1])}const rt=tt.toLowerCase().replace(/-/g,"");let nt=decode$6(rt);nt=nt.slice(4,nt.length);const it=new this(nt);if(it.toText()!==tt)throw new Error(`Principal "${it.toText()}" does not have a valid checksum (original value "${tt}" may not be a valid Principal ID).`);return it}static fromUint8Array(et){return new this(et)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===ANONYMOUS_SUFFIX$1}toUint8Array(){return this._arr}toHex(){return toHexString$4(this._arr).toUpperCase()}toText(){const et=new ArrayBuffer(4);new DataView(et).setUint32(0,getCrc32$1(this._arr));const rt=new Uint8Array(et),nt=Uint8Array.from(this._arr),it=new Uint8Array([...rt,...nt]),at=encode$6(it).match(/.{1,5}/g);if(!at)throw new Error;return at.join("-")}toString(){return this.toText()}toJSON(){return{[JSON_KEY_PRINCIPAL$1]:this.toText()}}compareTo(et){for(let tt=0;ttet._arr[tt])return"gt"}return this._arr.lengthet._arr.length?"gt":"eq"}ltEq(et){const tt=this.compareTo(et);return tt=="lt"||tt=="eq"}gtEq(et){const tt=this.compareTo(et);return tt=="gt"||tt=="eq"}},AgentError$1=class KA extends Error{constructor(et){super(et),this.message=et,Object.setPrototypeOf(this,KA.prototype)}};function concat$4(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et}let PipeArrayBuffer$1=class{constructor(et,tt=(et==null?void 0:et.byteLength)||0){this._buffer=et||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,tt)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(et){const tt=this._view.subarray(0,et);return this._view=this._view.subarray(et),tt.slice().buffer}readUint8(){const et=this._view[0];return this._view=this._view.subarray(1),et}write(et){const tt=new Uint8Array(et),rt=this._view.byteLength;this._view.byteOffset+this._view.byteLength+tt.byteLength>=this._buffer.byteLength?this.alloc(tt.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+tt.byteLength),this._view.set(tt,rt)}get end(){return this._view.byteLength===0}alloc(et){const tt=new ArrayBuffer((this._buffer.byteLength+et)*1.2|0),rt=new Uint8Array(tt,0,this._view.byteLength+et);rt.set(this._view),this._buffer=tt,this._view=rt}};function idlHash$1($){const tt=new TextEncoder().encode($);let rt=0;for(const nt of tt)rt=(rt*223+nt)%2**32;return rt}function idlLabelToId$1($){if(/^_\d+_$/.test($)||/^_0x[0-9a-fA-F]+_$/.test($)){const et=+$.slice(1,-1);if(Number.isSafeInteger(et)&&et>=0&&et<2**32)return et}return idlHash$1($)}function eob$1(){throw new Error("unexpected end of buffer")}function safeRead$1($,et){return $.byteLength=128);return tt}function slebEncode$1($){typeof $=="number"&&($=BigInt($));const et=$=0;it--)nt=nt*BigInt(128)+BigInt(128-(rt[it]&127)-1);return-nt-BigInt(1)}function writeUIntLE$1($,et){if(BigInt($)=rt&&(tt-=rt*BigInt(2)),tt}function iexp2$1($){const et=BigInt($);if($<0)throw new RangeError("Input must be non-negative");return BigInt(1)<tt(rt,et[nt]))}let TypeTable$1=class{constructor(){this._typs=[],this._idx=new Map}has(et){return this._idx.has(et.name)}add(et,tt){const rt=this._typs.length;this._idx.set(et.name,rt),this._typs.push(tt)}merge(et,tt){const rt=this._idx.get(et.name),nt=this._idx.get(tt);if(rt===void 0)throw new Error("Missing type index for "+et);if(nt===void 0)throw new Error("Missing type index for "+tt);this._typs[rt]=this._typs[nt],this._typs.splice(nt,1),this._idx.delete(tt)}encode(){const et=lebEncode$1(this._typs.length),tt=concat$4(...this._typs);return concat$4(et,tt)}indexOf(et){if(!this._idx.has(et))throw new Error("Missing type index for "+et);return slebEncode$1(this._idx.get(et)||0)}},Visitor$1=class{visitType(et,tt){throw new Error("Not implemented")}visitPrimitive(et,tt){return this.visitType(et,tt)}visitEmpty(et,tt){return this.visitPrimitive(et,tt)}visitBool(et,tt){return this.visitPrimitive(et,tt)}visitNull(et,tt){return this.visitPrimitive(et,tt)}visitReserved(et,tt){return this.visitPrimitive(et,tt)}visitText(et,tt){return this.visitPrimitive(et,tt)}visitNumber(et,tt){return this.visitPrimitive(et,tt)}visitInt(et,tt){return this.visitNumber(et,tt)}visitNat(et,tt){return this.visitNumber(et,tt)}visitFloat(et,tt){return this.visitPrimitive(et,tt)}visitFixedInt(et,tt){return this.visitNumber(et,tt)}visitFixedNat(et,tt){return this.visitNumber(et,tt)}visitPrincipal(et,tt){return this.visitPrimitive(et,tt)}visitConstruct(et,tt){return this.visitType(et,tt)}visitVec(et,tt,rt){return this.visitConstruct(et,rt)}visitOpt(et,tt,rt){return this.visitConstruct(et,rt)}visitRecord(et,tt,rt){return this.visitConstruct(et,rt)}visitTuple(et,tt,rt){const nt=tt.map((it,At)=>[`_${At}_`,it]);return this.visitRecord(et,nt,rt)}visitVariant(et,tt,rt){return this.visitConstruct(et,rt)}visitRec(et,tt,rt){return this.visitConstruct(tt,rt)}visitFunc(et,tt){return this.visitConstruct(et,tt)}visitService(et,tt){return this.visitConstruct(et,tt)}},Type$1=class{display(){return this.name}valueToString(et){return toReadableString$1(et)}buildTypeTable(et){et.has(this)||this._buildTypeTableImpl(et)}},PrimitiveType$1=class extends Type$1{checkType(et){if(this.name!==et.name)throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`);return et}_buildTypeTableImpl(et){}},ConstructType$1=class extends Type$1{checkType(et){if(et instanceof RecClass$1){const tt=et.getType();if(typeof tt>"u")throw new Error("type mismatch with uninitialized type");return tt}throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`)}encodeType(et){return et.indexOf(this.name)}},EmptyClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitEmpty(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return slebEncode$1(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}},UnknownClass$1=class extends Type$1{checkType(et){throw new Error("Method not implemented for unknown.")}accept(et,tt){throw et.visitType(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(et,tt){let rt=tt.decodeValue(et,tt);Object(rt)!==rt&&(rt=Object(rt));let nt;return tt instanceof RecClass$1?nt=()=>tt.getType():nt=()=>tt,Object.defineProperty(rt,"type",{value:nt,writable:!0,enumerable:!1,configurable:!0}),rt}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}},BoolClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitBool(this,tt)}covariant(et){if(typeof et=="boolean")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){return new Uint8Array([et?1:0])}encodeType(){return slebEncode$1(-2)}decodeValue(et,tt){switch(this.checkType(tt),safeReadUint8$1(et)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}},NullClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitNull(this,tt)}covariant(et){if(et===null)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$1(-1)}decodeValue(et,tt){return this.checkType(tt),null}get name(){return"null"}},ReservedClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitReserved(this,tt)}covariant(et){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode$1(-16)}decodeValue(et,tt){return tt.name!==this.name&&tt.decodeValue(et,tt),null}get name(){return"reserved"}},TextClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitText(this,tt)}covariant(et){if(typeof et=="string")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){const tt=new TextEncoder().encode(et),rt=lebEncode$1(tt.byteLength);return concat$4(rt,tt)}encodeType(){return slebEncode$1(-15)}decodeValue(et,tt){this.checkType(tt);const rt=lebDecode$1(et),nt=safeRead$1(et,Number(rt));return new TextDecoder("utf8",{fatal:!0}).decode(nt)}get name(){return"text"}valueToString(et){return'"'+et+'"'}},IntClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitInt(this,tt)}covariant(et){if(typeof et=="bigint"||Number.isInteger(et))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){return slebEncode$1(et)}encodeType(){return slebEncode$1(-4)}decodeValue(et,tt){return this.checkType(tt),slebDecode$1(et)}get name(){return"int"}valueToString(et){return et.toString()}},NatClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitNat(this,tt)}covariant(et){if(typeof et=="bigint"&&et>=BigInt(0)||Number.isInteger(et)&&et>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){return lebEncode$1(et)}encodeType(){return slebEncode$1(-3)}decodeValue(et,tt){return this.checkType(tt),lebDecode$1(et)}get name(){return"nat"}valueToString(et){return et.toString()}},FloatClass$1=class extends PrimitiveType$1{constructor(et){if(super(),this._bits=et,et!==32&&et!==64)throw new Error("not a valid float type")}accept(et,tt){return et.visitFloat(this,tt)}covariant(et){if(typeof et=="number"||et instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){const tt=new ArrayBuffer(this._bits/8),rt=new DataView(tt);return this._bits===32?rt.setFloat32(0,et,!0):rt.setFloat64(0,et,!0),tt}encodeType(){const et=this._bits===32?-13:-14;return slebEncode$1(et)}decodeValue(et,tt){this.checkType(tt);const rt=safeRead$1(et,this._bits/8),nt=new DataView(rt);return this._bits===32?nt.getFloat32(0,!0):nt.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(et){return et.toString()}},FixedIntClass$1=class extends PrimitiveType$1{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedInt(this,tt)}covariant(et){const tt=iexp2$1(this._bits-1)*BigInt(-1),rt=iexp2$1(this._bits-1)-BigInt(1);let nt=!1;if(typeof et=="bigint")nt=et>=tt&&et<=rt;else if(Number.isInteger(et)){const it=BigInt(et);nt=it>=tt&&it<=rt}else nt=!1;if(nt)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){return writeIntLE$1(et,this._bits/8)}encodeType(){const et=Math.log2(this._bits)-3;return slebEncode$1(-9-et)}decodeValue(et,tt){this.checkType(tt);const rt=readIntLE$1(et,this._bits/8);return this._bits<=32?Number(rt):rt}get name(){return`int${this._bits}`}valueToString(et){return et.toString()}},FixedNatClass$1=class extends PrimitiveType$1{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedNat(this,tt)}covariant(et){const tt=iexp2$1(this._bits);let rt=!1;if(typeof et=="bigint"&&et>=BigInt(0)?rt=et=0?rt=BigInt(et){try{return this._type.covariant(rt)}catch(it){throw new Error(`Invalid ${this.display()} argument: @@ -504,14 +504,14 @@ index ${rt} -> ${nt.message}`)}}))return!0;throw new Error(`Invalid ${this.displ variant ${tt} -> ${nt.message}`)}}))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){for(let tt=0;tt{it.buildTypeTable(et)});const tt=slebEncode$1(-21),rt=lebEncode$1(this._fields.length),nt=this._fields.map(([it,At])=>concat$4(lebEncode$1(idlLabelToId$1(it)),At.encodeType(et)));et.add(this,concat$4(tt,rt,...nt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof na))throw new Error("Not a variant type");const nt=Number(lebDecode$1(et));if(nt>=rt._fields.length)throw Error("Invalid variant index: "+nt);const[it,At]=rt._fields[nt];for(const[at,ot]of this._fields)if(idlLabelToId$1(it)===idlLabelToId$1(at)){const st=ot.decodeValue(et,At);return{[at]:st}}throw new Error("Cannot find field hash "+it)}get name(){return`variant {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`variant {${this._fields.map(([tt,rt])=>tt+(rt.name==="null"?"":`:${rt.display()}`)).join("; ")}}`}valueToString(et){for(const[tt,rt]of this._fields)if(et.hasOwnProperty(tt)){const nt=rt.valueToString(et[tt]);return nt==="null"?`variant {${tt}}`:`variant {${tt}=${nt}}`}throw new Error("Variant has no data: "+et)}},RecClass$1=class ga extends ConstructType$1{constructor(){super(...arguments),this._id=ga._counter++,this._type=void 0}accept(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return et.visitRec(this,this._type,tt)}fill(et){this._type=et}getType(){return this._type}covariant(et){if(this._type&&this._type.covariant(et))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(et)}_buildTypeTableImpl(et){if(!this._type)throw Error("Recursive type uninitialized.");et.add(this,new Uint8Array([])),this._type.buildTypeTable(et),et.merge(this,this._type.name)}decodeValue(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(et,tt)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(et)}};RecClass$1._counter=0;function decodePrincipalId$1($){if(safeReadUint8$1($)!==1)throw new Error("Cannot decode principal");const tt=Number(lebDecode$1($));return Principal$3.fromUint8Array(new Uint8Array(safeRead$1($,tt)))}let PrincipalClass$1=class extends PrimitiveType$1{accept(et,tt){return et.visitPrincipal(this,tt)}covariant(et){if(et&&et._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$1(tt.byteLength);return concat$4(new Uint8Array([1]),rt,tt)}encodeType(){return slebEncode$1(-24)}decodeValue(et,tt){return this.checkType(tt),decodePrincipalId$1(et)}get name(){return"principal"}valueToString(et){return`${this.name} "${et.toText()}"`}},FuncClass$1=class extends ConstructType$1{constructor(et,tt,rt=[]){super(),this.argTypes=et,this.retTypes=tt,this.annotations=rt}static argsToString(et,tt){if(et.length!==tt.length)throw new Error("arity mismatch");return"("+et.map((rt,nt)=>rt.valueToString(tt[nt])).join(", ")+")"}accept(et,tt){return et.visitFunc(this,tt)}covariant(et){if(Array.isArray(et)&&et.length===2&&et[0]&&et[0]._isPrincipal&&typeof et[1]=="string")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue([et,tt]){const rt=et.toUint8Array(),nt=lebEncode$1(rt.byteLength),it=concat$4(new Uint8Array([1]),nt,rt),At=new TextEncoder().encode(tt),at=lebEncode$1(At.byteLength);return concat$4(new Uint8Array([1]),it,at,At)}_buildTypeTableImpl(et){this.argTypes.forEach(st=>st.buildTypeTable(et)),this.retTypes.forEach(st=>st.buildTypeTable(et));const tt=slebEncode$1(-22),rt=lebEncode$1(this.argTypes.length),nt=concat$4(...this.argTypes.map(st=>st.encodeType(et))),it=lebEncode$1(this.retTypes.length),At=concat$4(...this.retTypes.map(st=>st.encodeType(et))),at=lebEncode$1(this.annotations.length),ot=concat$4(...this.annotations.map(st=>this.encodeAnnotation(st)));et.add(this,concat$4(tt,rt,nt,it,At,at,ot))}decodeValue(et){if(safeReadUint8$1(et)!==1)throw new Error("Cannot decode function reference");const rt=decodePrincipalId$1(et),nt=Number(lebDecode$1(et)),it=safeRead$1(et,nt),at=new TextDecoder("utf8",{fatal:!0}).decode(it);return[rt,at]}get name(){const et=this.argTypes.map(nt=>nt.name).join(", "),tt=this.retTypes.map(nt=>nt.name).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) -> (${tt})${rt}`}valueToString([et,tt]){return`func "${et.toText()}".${tt}`}display(){const et=this.argTypes.map(nt=>nt.display()).join(", "),tt=this.retTypes.map(nt=>nt.display()).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) → (${tt})${rt}`}encodeAnnotation(et){if(et==="query")return new Uint8Array([1]);if(et==="oneway")return new Uint8Array([2]);if(et==="composite_query")return new Uint8Array([3]);throw new Error("Illegal function annotation")}},ServiceClass$1=class extends ConstructType$1{constructor(et){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId$1(tt[0])-idlLabelToId$1(rt[0]))}accept(et,tt){return et.visitService(this,tt)}covariant(et){if(et&&et._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString$1(et)}`)}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode$1(tt.length);return concat$4(new Uint8Array([1]),rt,tt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode$1(-23),rt=lebEncode$1(this._fields.length),nt=this._fields.map(([it,At])=>{const at=new TextEncoder().encode(it),ot=lebEncode$1(at.length);return concat$4(ot,at,At.encodeType(et))});et.add(this,concat$4(tt,rt,...nt))}decodeValue(et){return decodePrincipalId$1(et)}get name(){return`service {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}valueToString(et){return`service "${et.toText()}"`}};function toReadableString$1($){const et=JSON.stringify($,(tt,rt)=>typeof rt=="bigint"?`BigInt(${rt})`:rt);return et&&et.length>toReadableString_max$1?et.substring(0,toReadableString_max$1-3)+"...":et}function encode$5($,et){if(et.length<$.length)throw Error("Wrong number of message arguments");const tt=new TypeTable$1;$.forEach(ot=>ot.buildTypeTable(tt));const rt=new TextEncoder().encode(magicNumber$1),nt=tt.encode(),it=lebEncode$1(et.length),At=concat$4(...$.map(ot=>ot.encodeType(tt))),at=concat$4(...zipWith$1($,et,(ot,st)=>{try{ot.covariant(st)}catch(ct){throw new Error(ct.message+` -`)}return ot.encodeValue(st)}));return concat$4(rt,nt,it,At,at)}function decode$5($,et){const tt=new PipeArrayBuffer$1(et);if(et.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Ut=="number"&&Ut>=Pt)throw new Error("field id collision or not sorted");Ut=Pt;const Kt=Number(slebDecode$1(dt));$t.push([Pt,Kt])}ht.push([mt,$t]);break}case-22:{const $t=[];let Tt=Number(lebDecode$1(dt));for(;Tt--;)$t.push(Number(slebDecode$1(dt)));const Ut=[];let Pt=Number(lebDecode$1(dt));for(;Pt--;)Ut.push(Number(slebDecode$1(dt)));const Kt=[];let zt=Number(lebDecode$1(dt));for(;zt--;)switch(Number(lebDecode$1(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}case 3:{Kt.push("composite_query");break}default:throw new Error("unknown annotation")}ht.push([mt,[$t,Ut,Kt]]);break}case-23:{let $t=Number(lebDecode$1(dt));const Tt=[];for(;$t--;){const Ut=Number(lebDecode$1(dt)),Pt=new TextDecoder().decode(safeRead$1(dt,Ut)),Kt=slebDecode$1(dt);Tt.push([Pt,Kt])}ht.push([mt,Tt]);break}default:throw new Error("Illegal op_code: "+mt)}}const wt=[],Qt=Number(lebDecode$1(dt));for(let pt=0;ptRec$1());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null$1;case-2:return Bool$1;case-3:return Nat$1;case-4:return Int$1;case-5:return Nat8$1;case-6:return Nat16$1;case-7:return Nat32$1;case-8:return Nat64$1;case-9:return Int8$1;case-10:return Int16$1;case-11:return Int32$1;case-12:return Int64$1;case-13:return Float32$1;case-14:return Float64$1;case-15:return Text$1;case-16:return Reserved$1;case-17:return Empty$1;case-24:return Principal$2;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec$1(ht)}case-18:{const ht=st(dt[1]);return Opt$1(ht)}case-20:{const ht={};for(const[Qt,pt]of dt[1]){const mt=`_${Qt}_`;ht[mt]=st(pt)}const Et=Record$1(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple$1(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const Qt=`_${Et}_`;ht[Qt]=st(wt)}return Variant$1(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func$1(ht.map(Qt=>st(Qt)),Et.map(Qt=>st(Qt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,Qt]of Et){let pt=st(Qt);if(pt instanceof RecClass$1&&(pt=pt.getType()),!(pt instanceof FuncClass$1))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service$1(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{if(dt[0]===-22){const Et=ct(dt);ot[ht].fill(Et)}}),At.forEach((dt,ht)=>{if(dt[0]!==-22){const Et=ct(dt);ot[ht].fill(Et)}});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty$1=new EmptyClass$1,Reserved$1=new ReservedClass$1,Unknown$1=new UnknownClass$1,Bool$1=new BoolClass$1,Null$1=new NullClass$1,Text$1=new TextClass$1,Int$1=new IntClass$1,Nat$1=new NatClass$1,Float32$1=new FloatClass$1(32),Float64$1=new FloatClass$1(64),Int8$1=new FixedIntClass$1(8),Int16$1=new FixedIntClass$1(16),Int32$1=new FixedIntClass$1(32),Int64$1=new FixedIntClass$1(64),Nat8$1=new FixedNatClass$1(8),Nat16$1=new FixedNatClass$1(16),Nat32$1=new FixedNatClass$1(32),Nat64$1=new FixedNatClass$1(64),Principal$2=new PrincipalClass$1;function Tuple$1(...$){return new TupleClass$1($)}function Vec$1($){return new VecClass$1($)}function Opt$1($){return new OptClass$1($)}function Record$1($){return new RecordClass$1($)}function Variant$1($){return new VariantClass$1($)}function Rec$1(){return new RecClass$1}function Func$1($,et,tt=[]){return new FuncClass$1($,et,tt)}function Service$1($){return new ServiceClass$1($)}const IDL$1=Object.freeze(Object.defineProperty({__proto__:null,Bool:Bool$1,BoolClass:BoolClass$1,ConstructType:ConstructType$1,Empty:Empty$1,EmptyClass:EmptyClass$1,FixedIntClass:FixedIntClass$1,FixedNatClass:FixedNatClass$1,Float32:Float32$1,Float64:Float64$1,FloatClass:FloatClass$1,Func:Func$1,FuncClass:FuncClass$1,Int:Int$1,Int16:Int16$1,Int32:Int32$1,Int64:Int64$1,Int8:Int8$1,IntClass:IntClass$1,Nat:Nat$1,Nat16:Nat16$1,Nat32:Nat32$1,Nat64:Nat64$1,Nat8:Nat8$1,NatClass:NatClass$1,Null:Null$1,NullClass:NullClass$1,Opt:Opt$1,OptClass:OptClass$1,PrimitiveType:PrimitiveType$1,Principal:Principal$2,PrincipalClass:PrincipalClass$1,Rec:Rec$1,RecClass:RecClass$1,Record:Record$1,RecordClass:RecordClass$1,Reserved:Reserved$1,ReservedClass:ReservedClass$1,Service:Service$1,ServiceClass:ServiceClass$1,Text:Text$1,TextClass:TextClass$1,Tuple:Tuple$1,TupleClass:TupleClass$1,Type:Type$1,Unknown:Unknown$1,UnknownClass:UnknownClass$1,Variant:Variant$1,VariantClass:VariantClass$1,Vec:Vec$1,VecClass:VecClass$1,Visitor:Visitor$1,decode:decode$5,encode:encode$5},Symbol.toStringTag,{value:"Module"}));function concat$3(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex$1($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$2=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$2($){if(!hexRe$2.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare$1($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash$1(et)};function requestIdOf$1($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString$1(At),st=hashValue$1(at);return[ot,st]}).sort(([At],[at])=>compare$1(At,at)),nt=concat$3(...rt.map(At=>concat$3(...At)));return hash$1(nt)}var __rest$2=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);nt=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Tt=="number"&&Tt>=Pt)throw new Error("field id collision or not sorted");Tt=Pt;const Kt=Number(slebDecode$1(dt));$t.push([Pt,Kt])}ht.push([Qt,$t]);break}case-22:{const $t=[];let Gt=Number(lebDecode$1(dt));for(;Gt--;)$t.push(Number(slebDecode$1(dt)));const Tt=[];let Pt=Number(lebDecode$1(dt));for(;Pt--;)Tt.push(Number(slebDecode$1(dt)));const Kt=[];let ir=Number(lebDecode$1(dt));for(;ir--;)switch(Number(lebDecode$1(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}case 3:{Kt.push("composite_query");break}default:throw new Error("unknown annotation")}ht.push([Qt,[$t,Tt,Kt]]);break}case-23:{let $t=Number(lebDecode$1(dt));const Gt=[];for(;$t--;){const Tt=Number(lebDecode$1(dt)),Pt=new TextDecoder().decode(safeRead$1(dt,Tt)),Kt=slebDecode$1(dt);Gt.push([Pt,Kt])}ht.push([Qt,Gt]);break}default:throw new Error("Illegal op_code: "+Qt)}}const wt=[],mt=Number(lebDecode$1(dt));for(let pt=0;ptRec$1());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null$1;case-2:return Bool$1;case-3:return Nat$1;case-4:return Int$1;case-5:return Nat8$1;case-6:return Nat16$1;case-7:return Nat32$1;case-8:return Nat64$1;case-9:return Int8$1;case-10:return Int16$1;case-11:return Int32$1;case-12:return Int64$1;case-13:return Float32$1;case-14:return Float64$1;case-15:return Text$1;case-16:return Reserved$1;case-17:return Empty$1;case-24:return Principal$2;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec$1(ht)}case-18:{const ht=st(dt[1]);return Opt$1(ht)}case-20:{const ht={};for(const[mt,pt]of dt[1]){const Qt=`_${mt}_`;ht[Qt]=st(pt)}const Et=Record$1(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple$1(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const mt=`_${Et}_`;ht[mt]=st(wt)}return Variant$1(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func$1(ht.map(mt=>st(mt)),Et.map(mt=>st(mt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,mt]of Et){let pt=st(mt);if(pt instanceof RecClass$1&&(pt=pt.getType()),!(pt instanceof FuncClass$1))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service$1(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{if(dt[0]===-22){const Et=ct(dt);ot[ht].fill(Et)}}),At.forEach((dt,ht)=>{if(dt[0]!==-22){const Et=ct(dt);ot[ht].fill(Et)}});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty$1=new EmptyClass$1,Reserved$1=new ReservedClass$1,Unknown$1=new UnknownClass$1,Bool$1=new BoolClass$1,Null$1=new NullClass$1,Text$1=new TextClass$1,Int$1=new IntClass$1,Nat$1=new NatClass$1,Float32$1=new FloatClass$1(32),Float64$1=new FloatClass$1(64),Int8$1=new FixedIntClass$1(8),Int16$1=new FixedIntClass$1(16),Int32$1=new FixedIntClass$1(32),Int64$1=new FixedIntClass$1(64),Nat8$1=new FixedNatClass$1(8),Nat16$1=new FixedNatClass$1(16),Nat32$1=new FixedNatClass$1(32),Nat64$1=new FixedNatClass$1(64),Principal$2=new PrincipalClass$1;function Tuple$1(...$){return new TupleClass$1($)}function Vec$1($){return new VecClass$1($)}function Opt$1($){return new OptClass$1($)}function Record$1($){return new RecordClass$1($)}function Variant$1($){return new VariantClass$1($)}function Rec$1(){return new RecClass$1}function Func$1($,et,tt=[]){return new FuncClass$1($,et,tt)}function Service$1($){return new ServiceClass$1($)}const IDL$1=Object.freeze(Object.defineProperty({__proto__:null,Bool:Bool$1,BoolClass:BoolClass$1,ConstructType:ConstructType$1,Empty:Empty$1,EmptyClass:EmptyClass$1,FixedIntClass:FixedIntClass$1,FixedNatClass:FixedNatClass$1,Float32:Float32$1,Float64:Float64$1,FloatClass:FloatClass$1,Func:Func$1,FuncClass:FuncClass$1,Int:Int$1,Int16:Int16$1,Int32:Int32$1,Int64:Int64$1,Int8:Int8$1,IntClass:IntClass$1,Nat:Nat$1,Nat16:Nat16$1,Nat32:Nat32$1,Nat64:Nat64$1,Nat8:Nat8$1,NatClass:NatClass$1,Null:Null$1,NullClass:NullClass$1,Opt:Opt$1,OptClass:OptClass$1,PrimitiveType:PrimitiveType$1,Principal:Principal$2,PrincipalClass:PrincipalClass$1,Rec:Rec$1,RecClass:RecClass$1,Record:Record$1,RecordClass:RecordClass$1,Reserved:Reserved$1,ReservedClass:ReservedClass$1,Service:Service$1,ServiceClass:ServiceClass$1,Text:Text$1,TextClass:TextClass$1,Tuple:Tuple$1,TupleClass:TupleClass$1,Type:Type$1,Unknown:Unknown$1,UnknownClass:UnknownClass$1,Variant:Variant$1,VariantClass:VariantClass$1,Vec:Vec$1,VecClass:VecClass$1,Visitor:Visitor$1,decode:decode$5,encode:encode$5},Symbol.toStringTag,{value:"Module"}));function concat$3(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex$1($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$2=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$2($){if(!hexRe$2.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare$1($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash$1(et)};function requestIdOf$1($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString$1(At),st=hashValue$1(at);return[ot,st]}).sort(([At],[at])=>compare$1(At,at)),nt=concat$3(...rt.map(At=>concat$3(...At)));return hash$1(nt)}var __rest$2=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);ntBigInt(0)?src.value.tagged(2,src.value.bytes(fromHex$2(et.toString(16)))):src.value.tagged(3,src.value.bytes(fromHex$2((BigInt("-1")*et).toString(16))))}};const serializer$3=src.SelfDescribeCborSerializer.withDefaultEncoders(!0);serializer$3.addEncoder(new PrincipalEncoder$2);serializer$3.addEncoder(new BufferEncoder$2);serializer$3.addEncoder(new BigIntEncoder$2);var CborTag$2;(function($){$[$.Uint64LittleEndian=71]="Uint64LittleEndian",$[$.Semantic=55799]="Semantic"})(CborTag$2||(CborTag$2={}));function encode$4($){return serializer$3.serialize($)}function decodePositiveBigInt$2($){const et=$.byteLength;let tt=BigInt(0);for(let rt=0;rtdecodePositiveBigInt$2(rt),3:rt=>-decodePositiveBigInt$2(rt),[CborTag$2.Semantic]:rt=>rt}}).decodeFirst(et)}const randomNumber$1=()=>{if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){const $=new Uint32Array(1);return window.crypto.getRandomValues($),$[0]}if(typeof crypto<"u"&&crypto.getRandomValues){const $=new Uint32Array(1);return crypto.getRandomValues($),$[0]}return typeof crypto<"u"&&crypto.randomInt?crypto.randomInt(0,4294967295):Math.floor(Math.random()*4294967295)};var SubmitRequestType$1;(function($){$.Call="call"})(SubmitRequestType$1||(SubmitRequestType$1={}));function makeNonce$1(){const $=new ArrayBuffer(16),et=new DataView($),tt=randomNumber$1(),rt=randomNumber$1(),nt=randomNumber$1(),it=randomNumber$1();return et.setUint32(0,tt),et.setUint32(4,rt),et.setUint32(8,nt),et.setUint32(12,it),$}const NANOSECONDS_PER_MILLISECONDS$1=BigInt(1e6),REPLICA_PERMITTED_DRIFT_MILLISECONDS$1=BigInt(60*1e3);let Expiry$1=class{constructor(et){this._value=(BigInt(Date.now())+BigInt(et)-REPLICA_PERMITTED_DRIFT_MILLISECONDS$1)*NANOSECONDS_PER_MILLISECONDS$1}toCBOR(){return src.value.u64(this._value.toString(16),16)}toHash(){return lebEncode$1(this._value)}};function makeNonceTransform$1($=makeNonce$1){return async et=>{$();const tt=et.request.headers;et.request.headers=tt,et.endpoint==="call"&&(et.body.nonce=$())}}function httpHeadersTransform$1($){const et=[];return $.forEach((tt,rt)=>{et.push([rt,tt])}),et}let AgentHTTPResponseError$1=class extends Error{constructor(et,tt){super(et),this.response=tt,this.name=this.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}};var RequestStatusResponseStatus$1;(function($){$.Received="received",$.Processing="processing",$.Replied="replied",$.Rejected="rejected",$.Unknown="unknown",$.Done="done"})(RequestStatusResponseStatus$1||(RequestStatusResponseStatus$1={}));const DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$1=5*60*1e3,IC_ROOT_KEY$1="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",IC0_DOMAIN$1="ic0.app",IC0_SUB_DOMAIN$1=".ic0.app",ICP0_DOMAIN$1="icp0.io",ICP0_SUB_DOMAIN$1=".icp0.io",ICP_API_DOMAIN$1="icp-api.io",ICP_API_SUB_DOMAIN$1=".icp-api.io";let HttpDefaultFetchError$1=class extends AgentError$1{constructor(et){super(et),this.message=et}},IdentityInvalidError$1=class extends AgentError$1{constructor(et){super(et),this.message=et}};function getDefaultFetch$1(){let $;if(typeof window<"u")if(window.fetch)$=window.fetch.bind(window);else throw new HttpDefaultFetchError$1("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global<"u")if(global.fetch)$=global.fetch.bind(global);else throw new HttpDefaultFetchError$1("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self<"u"&&self.fetch&&($=self.fetch.bind(self));if($)return $;throw new HttpDefaultFetchError$1("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}let HttpAgent$1=class xa{constructor(et={}){if(this.rootKey=fromHex$2(IC_ROOT_KEY$1),this._pipeline=[],this._timeDiffMsecs=0,this._rootKeyFetched=!1,this._isAgent=!0,et.source){if(!(et.source instanceof xa))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...et.source._pipeline],this._identity=et.source._identity,this._fetch=et.source._fetch,this._host=et.source._host,this._credentials=et.source._credentials}else this._fetch=et.fetch||getDefaultFetch$1()||fetch.bind(global),this._fetchOptions=et.fetchOptions,this._callOptions=et.callOptions;if(et.host!==void 0)!et.host.match(/^[a-z]+:/)&&typeof window<"u"?this._host=new URL(window.location.protocol+"//"+et.host):this._host=new URL(et.host);else if(et.source!==void 0)this._host=et.source._host;else{const tt=typeof window<"u"?window.location:void 0;tt||(this._host=new URL("https://icp-api.io"),console.warn("Could not infer host from window.location, defaulting to mainnet gateway of https://icp-api.io. Please provide a host to the HttpAgent constructor to avoid this warning."));const rt=["ic0.app","icp0.io","localhost","127.0.0.1"],nt=tt==null?void 0:tt.hostname;let it;nt&&typeof nt=="string"&&(it=rt.find(At=>nt.endsWith(At))),tt&&it?this._host=new URL(`${tt.protocol}//${it}${tt.port?":"+tt.port:""}`):(this._host=new URL("https://icp-api.io"),console.warn("Could not infer host from window.location, defaulting to mainnet gateway of https://icp-api.io. Please provide a host to the HttpAgent constructor to avoid this warning."))}if(this._retryTimes=et.retryTimes!==void 0&&et.retryTimes>=0?et.retryTimes:3,this._host.hostname.endsWith(IC0_SUB_DOMAIN$1)?this._host.hostname=IC0_DOMAIN$1:this._host.hostname.endsWith(ICP0_SUB_DOMAIN$1)?this._host.hostname=ICP0_DOMAIN$1:this._host.hostname.endsWith(ICP_API_SUB_DOMAIN$1)&&(this._host.hostname=ICP_API_DOMAIN$1),et.credentials){const{name:tt,password:rt}=et.credentials;this._credentials=`${tt}${rt?":"+rt:""}`}this._identity=Promise.resolve(et.identity||new AnonymousIdentity$1),et.disableNonce||this.addTransform(makeNonceTransform$1(makeNonce$1))}isLocal(){const et=this._host.hostname;return et==="127.0.0.1"||et.endsWith("localhost")}addTransform(et,tt=et.priority||0){const rt=this._pipeline.findIndex(nt=>(nt.priority||0)=0?rt:this._pipeline.length,0,Object.assign(et,{priority:tt}))}async getPrincipal(){if(!this._identity)throw new IdentityInvalidError$1("This identity has expired due this application's security policy. Please refresh your authentication.");return(await this._identity).getPrincipal()}async call(et,tt,rt){const nt=await(rt!==void 0?await rt:await this._identity);if(!nt)throw new IdentityInvalidError$1("This identity has expired due this application's security policy. Please refresh your authentication.");const it=Principal$3.from(et),At=tt.effectiveCanisterId?Principal$3.from(tt.effectiveCanisterId):it,at=nt.getPrincipal()||Principal$3.anonymous();let ot=new Expiry$1(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$1);Math.abs(this._timeDiffMsecs)>1e3*30&&(ot=new Expiry$1(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$1+this._timeDiffMsecs));const st={request_type:SubmitRequestType$1.Call,canister_id:it,method_name:tt.methodName,arg:tt.arg,sender:at,ingress_expiry:ot};let ct=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:st});ct=await nt.transformRequest(ct);const ut=encode$4(ct.body),gt=this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${At.toText()}/call`,this._host),Object.assign(Object.assign(Object.assign({},this._callOptions),ct.request),{body:ut}))),[dt,ht]=await Promise.all([gt,requestIdOf$1(st)]),Et=await dt.arrayBuffer(),wt=dt.status===200&&Et.byteLength>0?decode$4(Et):null;return{requestId:ht,response:{ok:dt.ok,status:dt.status,statusText:dt.statusText,body:wt,headers:httpHeadersTransform$1(dt.headers)}}}async _requestAndRetry(et,tt=0){const rt=await et();if(rt.ok)return rt;const nt=await rt.clone().text(),it=`Server returned an error: Code: ${rt.status} (${rt.statusText}) Body: ${nt} `;if(this._retryTimes>tt)return console.warn(it+" Retrying request."),await this._requestAndRetry(et,tt+1);throw new AgentHTTPResponseError$1(it,{ok:rt.ok,status:rt.status,statusText:rt.statusText,headers:httpHeadersTransform$1(rt.headers)})}async query(et,tt,rt){const nt=await(rt!==void 0?await rt:await this._identity);if(!nt)throw new IdentityInvalidError$1("This identity has expired due this application's security policy. Please refresh your authentication.");const it=typeof et=="string"?Principal$3.fromText(et):et,At=(nt==null?void 0:nt.getPrincipal())||Principal$3.anonymous(),at={request_type:"query",canister_id:it,method_name:tt.methodName,arg:tt.arg,sender:At,ingress_expiry:new Expiry$1(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$1)};let ot=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read",body:at});ot=await(nt==null?void 0:nt.transformRequest(ot));const st=encode$4(ot.body),ct=await this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${it.toText()}/query`,this._host),Object.assign(Object.assign(Object.assign({},this._fetchOptions),ot.request),{body:st}))),ut=decode$4(await ct.arrayBuffer());return Object.assign(Object.assign({},ut),{httpDetails:{ok:ct.ok,status:ct.status,statusText:ct.statusText,headers:httpHeadersTransform$1(ct.headers)}})}async createReadStateRequest(et,tt){const rt=await(tt!==void 0?await tt:await this._identity);if(!rt)throw new IdentityInvalidError$1("This identity has expired due this application's security policy. Please refresh your authentication.");const nt=(rt==null?void 0:rt.getPrincipal())||Principal$3.anonymous(),it=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read_state",body:{request_type:"read_state",paths:et.paths,sender:nt,ingress_expiry:new Expiry$1(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS$1)}});return rt==null?void 0:rt.transformRequest(it)}async readState(et,tt,rt,nt){const it=typeof et=="string"?Principal$3.fromText(et):et,At=nt??await this.createReadStateRequest(tt,rt),at=encode$4(At.body),ot=await this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${it}/read_state`,this._host),Object.assign(Object.assign(Object.assign({},this._fetchOptions),At.request),{body:at})));if(!ot.ok)throw new Error(`Server returned an error: Code: ${ot.status} (${ot.statusText}) Body: ${await ot.text()} -`);return decode$4(await ot.arrayBuffer())}async syncTime(et){const tt=await __vitePreload(()=>import("./index-3def3713.js"),[]),rt=Date.now();try{et||console.log("Syncing time with the IC. No canisterId provided, so falling back to ryjl3-tyaaa-aaaaa-aaaba-cai");const it=(await tt.request({canisterId:et??Principal$3.from("ryjl3-tyaaa-aaaaa-aaaba-cai"),agent:this,paths:["time"]})).get("time");it&&(this._timeDiffMsecs=Number(it)-Number(rt))}catch(nt){console.error("Caught exception while attempting to sync time:",nt)}}async status(){const et=this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{},tt=await this._requestAndRetry(()=>this._fetch(""+new URL("/api/v2/status",this._host),Object.assign({headers:et},this._fetchOptions)));return decode$4(await tt.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}invalidateIdentity(){this._identity=null}replaceIdentity(et){this._identity=Promise.resolve(et)}_transform(et){let tt=Promise.resolve(et);for(const rt of this._pipeline)tt=tt.then(nt=>rt(nt).then(it=>it||nt));return tt}};var ProxyMessageKind$1;(function($){$.Error="err",$.GetPrincipal="gp",$.GetPrincipalResponse="gpr",$.Query="q",$.QueryResponse="qr",$.Call="c",$.CallResponse="cr",$.ReadState="rs",$.ReadStateResponse="rsr",$.Status="s",$.StatusResponse="sr"})(ProxyMessageKind$1||(ProxyMessageKind$1={}));function getDefaultAgent$1(){const $=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.ic.agent:global.ic.agent:window.ic.agent;if(!$)throw new Error("No Agent could be found.");return $}const wasmBytesBase64$1="AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/AX9gBH9/f38AYAF/AX5gBX9/f39/AGAAAX9gBn9/f39/fwBgBn9/f39/fwF/YAJ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BwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAJBgAhqIgMgABCMASACQYAKakE4ENABGiACQQE2ArgKIAJBwApqQTgQ0AEaIAJB+ApqQQE2AgAgAkGAC2pBOBDQARogAkG4C2pBATYCACACQcALakE4ENABGiACQfgLakEBNgIAIAIgARAYIAMgAEGAAmoiBhCXASADELABIAQgAxCWASAEIAEQGCADIAYQlgEgAyAAQYAEaiIFEJcBIAMQsAEgByADEJYBIAEoAoAGQQJGDQMgAkHADGoiAyABQYAFahBeIAJBgAZqIAMQpgEMBAsgACABEG0MCAsgAiAAEIwBIAJBgAJqQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADakE4ENABGiACQbgDakEBNgIAIAJBwANqQTgQ0AEaIAJB+ANqQQE2AgAgAkGABGpBOBDQARogAkEBNgK4BCACQcAEakE4ENABGiACQfgEakEBNgIAIAJBgAVqQTgQ0AEaIAJBuAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAxqIgQgA0HAABDRARogAkGABmogBBCnAQsgAkGABmoQZCACQYAIaiIDIAIQlgEgAxArIA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AAgADYCAEHsvsAAQey+wAAoAgAgAWoiATYCACAAIAEQoAEPC0H4vsAAIAA2AgBB8L7AAEHwvsAAKAIAIAFqIgE2AgAgACABQQFyNgIEIABB9L7AACgCAEcNAUHsvsAAQQA2AgBB9L7AAEEANgIADwsgAhDLASIDIAFqIQECQCADQYACTwRAIAIQFwwBCyACQQxqKAIAIgQgAkEIaigCACICRwRAIAIgBDYCDCAEIAI2AggMAQtB3LvAAEHcu8AAKAIAQX4gA0EDdndxNgIACyAAIAEQoAEgAEH0vsAAKAIARw0BQey+wAAgATYCAAsPCyABQYACTwRAIAAgARAWDwsgAUEDdiICQQN0QeS7wABqIQECf0Hcu8AAKAIAIgNBASACdCICcQRAIAEoAggMAQtB3LvAACACIANyNgIAIAELIQIgASAANgIIIAIgADYCDCAAIAE2AgwgACACNgIIC+UDAQN/IwBB0CJrIgMkACADQcAWaiIEQcitwAAQSSADQcgcaiIFQYCuwAAQSSADQQhqIAQgBRBLIANBiAFqQTgQ0AEaIANBwAFqQTgQ0AEaIANB+AFqED0CQCACEIYBBEAgABBVDAELIANB+ARqIgQQPSAEIAEQfSAEEEcgA0H4B2oiARBnIAEgAhB4IAEQRiADQcgcaiICIAEQkAEgA0G4CWogAhCQASACIANBuAhqEJABIANB+AlqIAIQkAEgA0G4CmoiARA9IANBuA1qEFUgASAEEH0gA0HAE2oiARA9IAEgBBB9IAEQogEgA0HAAWogA0GIAWoQUEECayECA0AgAkEBakEBTQRAIANBuA1qIgEQngEgACABQYgGENEBGgUgA0G4DWoQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAMLIAJBAWshAiADQbgNaiADQcAWahABDAELCwsgA0HQImokAAvBAwEVfwNAIANBwAFGBEAC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AhCXASADELABIAQQISACIAQQlgEgAiAEEJcBIAQgAhCXASAEELABIAYQsgEgBhCzASAFEMkBIAUQswEgBiADEJcBIAUgBBCXASAAQQU2AoAGIAAQnAEgAUGACGokAAv/AQEHfyMAQcACayIBJAAgASAAQUBrIgYQkAEgARBMIAFBQGsiAyAGEJABIAMgAEGAAWoiAhBKIAFBgAFqIgQgAhCQASAEEEwgAiABEK4BIAIgARB3IAIQQiACEIIBIAIQggEgAhBCIARBDBA0IAFBwAFqIgcgBBCQASAHIAIQSiABQYACaiIFIAEQkAEgBSAEEHcgBRBCIAIgAxBKIAMgBBCuASADIAQQdyAEIAMQdyABIAQQfiABEEIgBSABEEogBSAHEHcgAyAAEK4BIAMgBhBKIAAgARCuASAAEEIgACADEEogABCCASAAEEIgBiAFEK4BIAYQQiABQcACaiQAC84CAgd/An4CQAJAAkBBDSABQTpuIgJrIgRBDU0EQEEMIAJrIgNBDk8NASAAIAAgA0EDdGopAwBBOiABIAJBOmxrIgNrrSIKhyAAIARBA3RqKQMAIAOtIgmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEahCxASABQQE2AoAGCyAAIAFBiAYQ0QEaIANBgA1qJAALhgICBH8BfiMAQTBrIgIkACABQQRqIQQgASgCBEUEQCABKAIAIQMgAkEQaiIFQQA2AgAgAkIBNwMIIAIgAkEIajYCFCACQShqIANBEGopAgA3AwAgAkEgaiADQQhqKQIANwMAIAIgAykCADcDGCACQRRqIAJBGGoQDBogBEEIaiAFKAIANgIAIAQgAikDCDcCAAsgAkEgaiIDIARBCGooAgA2AgAgAUEMakEANgIAIAQpAgAhBiABQgE3AgQgAiAGNwMYQQxBBBC5ASIBRQRAQQxBBBDPAQALIAEgAikDGDcCACABQQhqIAMoAgA2AgAgAEGEt8AANgIEIAAgATYCACACQTBqJAAL5AEBAn8jAEHAAWsiAyQAIAMQZyAAIAEgAkEfdSIEIAJzIARBf3NqQQJtIgJBAWtBH3YQbiAAIAFBwAFqIAJBAXNBAWtBH3YQbiAAIAFBgANqIAJBAnNBAWtBH3YQbiAAIAFB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BIQZB2LvAAEHYu8AAKAIAIgdBAWo2AgACQEGgv8AALQAABEBBpL/AACgCAEEBaiEGDAELQaC/wABBAToAAAtBpL/AACAGNgIAAkACQCAHQQBIIAZBAktyDQAgBSAEOgAYIAUgAzYCFCAFIAI2AhBBzLvAACgCACICQQBIDQBBzLvAACACQQFqIgI2AgBBzLvAAEHUu8AAKAIAIgMEf0HQu8AAKAIAIAUgACABKAIQEQAAIAUgBSkDADcDCCAFQQhqIAMoAhQRAABBzLvAACgCAAUgAgtBAWs2AgAgBkEBSw0AIAQNAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAucAQEEfyMAQYADayICJAAgAiAAEF4gAkGAAWoiASAAQYABaiIEEF4gAkGAAmoiAyAAEF4gAyAEEBEgAiAEEJoBIAEQfCABIAAQmgEgAhCpASABEKkBIAAgAhCZASAAIAEQESABIAMQmQEgARB8IAEgAxCaASABEKkBIAEQNiAAIAEQmgEgAxC4ASAEIAMQmQEgABCwASACQYADaiQAC7kBAQJ/IwBBIGsiAyQAAkAgASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAOKAIQIgg2AhggDkEIaiACIAMQWyAOIA4oAgwiATYCJCAOIA4oAggiAzYCICAOIAQgBRBbIA4gDigCBCIFNgIsIA4gDigCACINNgIoIAAhBCMAQZAVayICJAAjAEGwBmsiCiQAIApBEGpBOBDQARogCkHQAGpBOBDQASEVIApBiAFqQQE2AgAgCkEBNgJIIApBkAFqIgBB2KTAABBJIAAQKiEPIApByAFqIhNBgAIQ0AEaIApByANqQYABENABGiMAQdAAayIRJAAgEUEQakHAABDQARogASEJQQAhACMAQYAEayIHJAAgB0EvakGBAhDQARogB0GwAmpBwAAQ0AEaIAdB8AJqQcAAENABGiAHQbADakHAABDQARogByAPQf8AakEDdkEBaiISQQF0IgFBCHQgAUGA/gNxQQh2cjsALCABQQFrQQV2QQFqIQsCQANAIAYgB2pBLmogADoAACAGQStGBEAgB0EsaiIGQS5qQSs6AAAgB0EgaiAGQS8QX0EAIQAgB0GwAmpBwAAgAyAJIAcoAiAgByg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iEMDAELC0EAIQwgCCwAACIJQQBIDQIgCEEwaiEDIARBMCAEQTBLG0EwayEIA0AgDEEwRgRAIABBoAFqIgQgABC+ASMAQYABayIDJAAgARBnIAEgAEHoAGoQwAEgAUFAayIIIAQQwAEgAUGAAWoQygEgARBCIAMgARBPIANBQGsiBCAIEJABIAQQTCAEIAMQWEUEQCABEJIBCyADQYABaiQADAULIAggDEYNAiAAIAxqIAMgDGotAAA6AAAgDEEBaiEMDAALAAsgBCAEQYiBwAAQOwALIAxBMGogBEGogcAAEDsACyMAQcABayIDJAAgAEGgAWoiBBBnIANBOBDQASIDQQE2AjggBCAAQegAahDAASAEEEIgBEGAAWoQygEgA0FAayIIIAQQTwJAAkACQCAIIAMQWkEBRgRAIANBgAFqIgggA0FAayADECMgCBBWDQEMAgsgBBCSAQwCCyADQYABaiIIEEMgCBBCCyAEQUBrIANBgAFqEK4BCyADQcABaiQAIAlBIHEiA0EAIABB4AFqEE0iBEEBRxtBASADIARBAUdyGwRAIABBoAFqEKQBCyABIABBoAFqQcABENEBGgsgAEHgAmokAAJ/QQAhAyMAQcAFayIAJAACQCABEIYBDQAgAEEIaiIIQZCtwAAQSSAAQYAEaiIEQbiuwAAQSSAAQUBrIgkgBBCOASAAQYABaiIEEGcgBCABEHggBCAJEEogAEHAAmoiBCABIAgQvQEgASAEECQNACAAQYAEaiIEIABBwAJqIgEgAEEIahC9ASABIARBwAEQ0QEaIAEQpAEgAEGAAWogARAkRQ0AQQEhAwsgAEHABWokAEF/IANFDQAaIAJBwAFqEKQBIAJBgANqIQhBACEAIwBB4ARrIgEkACABQeAAENABIQECQCAFBEADQCAAQeAARgRAIAEgAS0AAEEfcToAACABQeAAaiABEB9BACEAAkAgDSwAACILQQBOBEAgDUHgAGohAyAFQeAAIAVB4ABLG0HgAGshBANAIABB4ABGBEAgAUHgAWoiACABEB8gCCABQeAAaiAAED8MAwsgACAERwRAIAAgAWogACADai0AADoAACAAQQFqIQAMAQsLIABB4ABqIAVB1KfAABA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IAEQXiAAEC0gAxCkASADQYABaiIEEKQBIANBgAJqIgYQpAEgBhC1ASADIAAQESAEIAAQESAEIAEQESAAQYABaiQAQQAhBCMAQfA2ayIAJAAgAEE4ENABIgFBOGpBOBDQARogAUHwAGoQPSABQfADahA9IAFB8AZqED0CQAJAIAgQigFFBEAgAUHwIWoiBhA9IAFB8CRqIgcQPSABQfAnaiIKED0gAUHwKmoiDBA9IAFB8C1qIgsQPSABQfAwaiIPED0gAUHwM2oiABA9IAFB8B5qED0gAUHwCWoiECAGQYADENEBGiABQfAMaiAHQYADENEBGiABQfAPaiAKQYADENEBGiABQfASaiAMQYADENEBGiABQfAVaiALQYADENEBGiABQfAYaiAPQYADENEBGiABQfAbaiAAQYADENEBGiAAQecAENABGiABQfADaiIAIAgQfSAAEBIgECAIEH0MAQsgBSABQfAAakGAAxDRARoMAQsDQCAEQYAVRwRAIAFB8AZqIgAgAUHwCWogBGoiBhB9IAZBgANqIgYgABB9IAYgAUHwA2oQCCAEQYADaiEEDAELCyABQThqIgAgCRBqIAEpAzghGCAAQQEQkwEgABBCIAEpAzghGSABIAAQaiABQQEQkwEgARBCIAAgASAYQgKBpxAwIAFB8ANqIgQgCCAZQgKBpxBvIAFB8AZqIAQQfSAAECpBA2oiBkECdiIAQQFqIQhBACEEAkACQANAIAFBOGpBBRCPASEJIAQgCEYEQCAGQZgDTw0CIAFB8DNqIAhqIAk6AAAgAUHwAGogAUHwCWogCUEYdEEYdRAQDAMLIARB5wBHBEAgAUHwM2ogBGogCUEQayIHOgAAIAFBOGoiCSAHQRh0QRh1EJQBIAkQQiAJQQQQLCAEQQFqIQQMAQsLQecAQecAQaCowAAQOwALIAhB5wBBsKjAABA7AAsDQCAAQX9HBEAgAUHwA2oiCCABQfAJaiABQfAzaiAAaiwAABAQIABBAWshACABQfAAaiIEEBIgBBASIAQQEiAEEBIgBCAIEAgMAQsLIwBBgANrIgAkACAAED0gACABQfAGahB9IAAQogEgAUHwAGoiBCAAEAggAEGAA2okACA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AAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gARCeASAAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gASAIEDIgACADEG0gACABEAcgDSAAIAsQGyADIA0QbSANIAMgCxAbIAMgDRBtIAEgABBtIAEgCBAyIAEgCBAyIAMgARAHIAEgABBtIAEQngEgACADEG0gACABEAcgACAEEAcgABCcASAIQeAfaiQAIAcgAEGIBhDRARpBACEAIwBBgAJrIgEkACABEGwCQCAHIAEQegR/IAdBgAFqIAFBgAFqEHoFQQALRQ0AIAdBgAJqEIcBRQ0AIAdBgARqEIcBIQALIAFBgAJqJABBACAADQAaQX8LIAJBkBVqJAAgDkEoahC0ASAOQSBqELQBIA5BGGoQtAEgDkEwaiQAC58BAgJ/BX4gAEEwaiICKQMAIAFBP3GtIgSGIQUgACkDKCIGQTogAWtBP3GtIgiHIQdBBiEBA38gAiAFIAeENwMAIAFBAU0EfyAAIAApAwAgBIZC//////////8DgzcDACAAKQMwQiSHpwUgAUEBayEBIAJBEGsiA0EIaiECIAYgBIZC//////////8DgyEHIAMpAwAiBiAIhyEFDAELCxoLiAECA34DfyMAQRBrIgUkAAN+IAZBOEYEfiAFQRBqJAAgAwUgBSAAIAZqIgcpAwAiAiACQj+HIAGsIgIgAkI/hxAvIAcgBSkDACIEIAN8IgJC//////////8DgzcDACACIARUrSAFQQhqKQMAIANCP4d8fEIGhiACQjqIhCEDIAZBCGohBgwBCwsLigECA38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJIAYgA0IgiCIGfnwiBUIghnwiCjcDACAAIAcgClatIAYgCH4gBSAJVK1CIIYgBUIgiIR8fCABIAR+IAIgA358fDcDCAtqAgF/BX4gASkDCCAAKQMAhSIGQgGGQgGHIQdBACACa6whCAN+IANBOEYEfiAFBSAAIANqIgIgAikDACIEIAaFIAEgA2opAwAgBIUgCIOFIgQgB4U3AwAgBCAFhSEFIANBCGohAwwBCwsaC18CAX8EfkIBIQNBMCECA38gAkF4RgR/IARCAYYgA3ynQQFrBSABIAJqKQMAIgUgACACaikDACIGfUI6hyADgyAEhCEEIAJBCGshAiAFIAaFQgF9QjqHIAODIQMMAQsLC2kBBH8jAEGAAmsiAiQAIAIgARBeIAJBgAFqIgMgARBeIAIQLSADIAIQESAAIAMQmAEgAEGAAmoiBCADEJgBIABBgARqIgUgAxCYASAEIAEQpgEgBSACEKYBIABBBTYCgAYgAkGAAmokAAtiAQJ/IwBBQGoiAiQAIAAQQiACIAA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A2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYCACABQQE2AjggAUGBCGpB5wAQ0AEaIAFB6AhqIgQgABCQASAEEEIgAUGoCWoiBCADEF0gBBBCIAQQKkEDaiIIQQJ2IgNBAWohCQJAA0AgAiAJRgRAIAEQygEgBiABQegIahCuASABQeAJakE4ENABGiABQQE2ApgKQYB5IQIMAgsgAUGoCWoiBCAEQQQQjwEiChCUASAEEEIgAkHnAEcEQCABQYEIaiACaiAKOgAAIAFBqAlqQQQQLCACQQFqIQIMAQsLQecAQecAQaC0wAAQOwALA0AgAgRAIAFB4AlqIgQgASACaiIGQcAHahCuASAGQYAIaiIGIAQQrgEgBiABQegIahBKIAJBQGshAgwBCwsCQAJAAkACQCAIQZwDSQRAIAFBgQhqIANqLAAAIgJBEE8NASAFIAEgAkEGdGoQkAEgA0EBayICQeYASyEEA0AgAkF/Rg0DIAUQTCAFEEwgBRBMIAUQTCAEDQQgAUGBCGogAmotAAAiA0EQSQRAIAUgASADQQZ0ahBKIAJBAWshAgwBCwsgA0EYdEEYdUEQQeC0wAAQOwALIANB5wBBsLTAABA7AAsgAkEQQcC0wAAQOwALIAUQHiABQaAKaiQADAELIAJB5wBB0LTAABA7AAsgACAFEK4BIAdBgAFqJAALbAEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBHGpBAjYCACADQSxqQQE2AgAgA0ICNwIMIANB2LjAADYCCCADQQE2AiQgAyADQSBqNgIYIAMgAzYCKCADIANBBGo2AiAgA0EIaiACEGYAC2UBAn8gACAAKAIAIgJBCGoiAzYCACAAIAJBA3ZBPHFqQShqIgIgAUH/AXEgAigCAEEIdHI2AgACQAJAIANFBEAgAEEANgIAIAAgACgCBEEBajYCBAwBCyADQf8DcQ0BCyAAEA8LC1wAIABBOBDQASIAQQE2AjggAEFAa0E4ENABGiAAQfgAakEBNgIAIABBgAFqEFEgAEGAAmpBOBDQARogAEG4AmpBATYCACAAQcACakE4ENABGiAAQfgCakEBNgIAC1sBA38jAEGAAWsiASQAIAAQqQEgASAAEJABIAFBQGsiAiAAQUBrIgMQkAEgARBMIAIQTCABIAIQdyABQQAQMyAAIAEQSiABEEMgARBCIAMgARBKIAFBgAFqJAALYQEBfyMAQYACayIDJAAgABA9IAAgARCZASAAQYABaiIBIAIQmQEgAEGAAmoQtwEgABCpASADIAAQOCADQYABaiICIAEQXiACEC0gAiADEHpFBEAgABCbAQsgA0GAAmokAAtUAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFI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AakEBNgIAIAAgARCuASABQUBrEK4BCzsBAX8jAEEQayIDJAAgA0EIaiABQYQCIAIQgQEgAygCDCEBIAAgAygCCDYCACAAIAE2AgQgA0EQaiQACwsAIAAgAUE4ENsBCwsAIAAgAUE4ENwBCwwAIAAgAUHwABDbAQsMACAAIAFB8AAQ3AELOQECfyMAQYABayIBJAAgASAAQYABaiICEF4gAiAAEJkBIAEQfCAAIAEQmQEgABCwASABQYABaiQACz8BAX8jAEEgayIAJAAgAEEcakEANgIAIABBzLfAADYCGCAAQgE3AgwgAEH8t8AANgIIIABBCGpBhLjAABBmAAu8AgEDfyMAQSBrIgIkACACQQE6ABggAiABNgIUIAIgADYCECACQZS4wAA2AgwgAkGUuMAANgIIIwBBEGsiACQAIAJBCGoiASgCDCICRQRAQcC1wABBK0HktsAAEFkACyABKAIIIgRFBEBBwLXAAEErQfS2wAAQWQALIAAgAjYCCCAAIAE2AgQgACAENgIAIAAoAgAhASAAKAIEIQIgACgCCCEEIwBBEGsiACQAIAFBFGooAgAhAwJAAn8CQAJAIAFBBGooAgAOAgABAwsgAw0CQQAhAUHAtcAADAELIAMNASABKAIAIgMoAgQhASADKAIACyEDIAAgATYCBCAAIAM2AgAgAEG4t8AAIAIoAgggBCACLQAQECAACyAAQQA2AgQgACABNgIAIABBpLfAACACKAIIIAQgAi0AEBAgAAswACAAQTgQ0AEiAEEBNgI4IABBQGtBARA5IABBgAFqQTgQ0AEaIABBuAFqQQE2AgALKwACQCAAQXxLDQAgAEUEQEEEDwsgACAAQX1JQQJ0ELkBIgBFDQAgAA8LAAs4ACAAEIsBIAAgARCWASAAQYACaiABQYACahCWASAAQYAEaiABQYAEahCWASAAIAEoAoAGNgKABgsoAQF/A0AgAkE4RwRAIAAgAmogASACaikDADcDACACQQhqIQIMAQsLC4QJAg1/Cn4jAEFAaiILJAAgC0EIaiIJQcCywAAQSSMAQZACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A0AgAUE4RwRAIAAgAWpCADcDACABQQhqIQEMAQsLCyUAIAAgASACEDAgAEEAIAJrIAAoAjgiACABKAI4c3EgAHM2AjgLJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECyMAA0AgAgRAIAAgAS0AABA8IAJBAWshAiABQQFqIQEMAQsLCywAIAAQiwEgACABEJYBIABBgAJqIAIQlgEgAEGABGogAxCWASAAQQU2AoAGCyMBAX8jAEFAaiIBJAAgASAAEJABIAEQHiABEFcgAUFAayQACykAIAAgARBgIAAgACgCOCABKAI4aiIBNgI4IAFB////D0oEQCAAEB4LCyUAIAAgARCuASAAQUBrIAFBQGsQrgEgAEGAAWogAUGAAWoQrgELKAEBfyMAQYACayICJAAgAiABEIwBIAIQKyAAIAIQlwEgAkGAAmokAAscAQF/IAAgARBYBH8gAEFAayABQUBrEFgFQQALCycBAX8jAEGAAWsiAiQAIAIgARBeIAIQNiAAIAI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FGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAEQmQEgAEGAAWogAhCZAQsSACAAIAEQESAAQYABaiABEBELFAAgACABEKoBIABBgAFqIAEQqgELCwAgAQRAIAAQBAsLDQAgABBCIABBQGsQQgsRACAAIAEQSiAAQUBrIAEQSgsRACAAIAEQNCAAQUBrIAEQNAu+BQEHfwJ/AkACQEGAgHxBCEEIEKMBQRRBCBCjAWpBEEEIEKMBamtBd3FBA2siAkEAQRBBCBCjAUECdGsiBCACIARJGyABTQ0AQRAgAUEEakEQQQgQowFBBWsgAUsbQQgQowEhAiAAENUBIgQgBBDLASIFENIBIQMCQAJAAkACQAJAAkACQCAEEMQBRQRAIAIgBU0NASADQfi+wAAoAgBGDQIgA0H0vsAAKAIARg0DIAMQvAENByADEMsBIgYgBWoiByACSQ0HIAcgAmshBSAGQYACSQ0EIAMQFwwFCyAEEMsBIQMgAkGAAkkNBiADIAJrQYGACEkgAkEEaiADTXENBSAEKAIAGiACQR9qQYCABBCjARoMBgtBEEE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BCyACIANqQQAgAWtxENUBIQJBEEEIEKMBIQMgABDLASACQQAgASACIABrIANLG2oiASAAayICayEDIAAQxAFFBEAgASADEHMgACACEHMgACACEA0MAQsgACgCACEAIAEgAzYCBCABIAAgAmo2AgALIAEQxAENASABEMsBIgJBEEEIEKMBIARqTQ0BIAEgBBDSASEAIAEgBBBzIAAgAiAEayIEEHMgACAEEA0MAQsgAwwBCyABENQBIAEQxAEaCwuOBAEFfyAAKAIAIQAjAEEQayIEJAACQAJ/AkAgAUGAAU8EQCAEQQA2AgwgAUGAEE8NASAEIAFBP3FBgAFyOgANIAQgAUEGdkHAAXI6AAxBAgwCCyAAKAIIIgIgAEEEaigCAEYEQCMAQSBrIgMkAAJAAkAgAiACQQFqIgVLDQAgAEEEaigCACICQQF0IgYgBSAFIAZJGyIFQQggBUEISxshBQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgBSADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiAFNgIAIAAgAjYCACADQSBqJAAMAQsQZQALIAAoAgghAgsgACACQQFqNgIIIAAoAgAgAmogAToAAAwCCyABQYCABE8EQCAEIAFBP3FBgAFyOgAPIAQgAUESdkHwAXI6AAwgBCABQQZ2QT9xQYABcjoADiAEIAFBDHZBP3FBgAFyOgANQQQMAQsgBCABQT9xQYABcjoADiAEIAFBDHZB4AFyOgAMIAQgAUEGdkE/cUGAAXI6AA1BAwshASABIABBBGooAgAgAEEIaiIDKAIAIgJrSwRAIAAgAiABECIgAygCACECCyAAKAIAIAJqIARBDGogARDRARogAyABIAJqNgIACyAEQRBqJABBAAsTACAAQZS3wAA2AgQgACABNgIACw0AIAAtAARBAnFBAXYL5QYCDH8CfiMAQbAcayIDJAACQAJAAkAgAhBXDQAgARCGAQ0AIANBCGoQZyADQcgBaiIFIAIQXQNAIARBOEcEQCAEIAVqIgYgBikDACACIARqKQMAhDcDACAEQQhqIQQM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wMAIAJBAWohAgwBCwsgAkEwQaSbwAAQOwALCw0AIAAQNiAAIAEQmgELDAAgACABEGogABBUCw0AIAAQcSAAQQE2AjgLDAAgABBDIAAgARB3CwoAQQAgAGsgAHELCwAgAC0ABEEDcUULDAAgACABQQNyNgIECw0AIAAoAgAgACgCBGoLDgAgACgCABoDQAwACwALgQgCCX8CfiAANQIAIQsjAEEwayIGJABBJyEAAkAgC0KQzgBUBEAgCyEMDAELA0AgBkEJaiAAaiICQQRrIAsgC0KQzgCAIgxCkM4Afn2nIgNB//8DcUHkAG4iBEEBdEHouMAAai8AADsAACACQQJrIAMgBEHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAAgAEEEayEAIAtC/8HXL1YgDCELDQALCyAMpyICQeMASwRAIABBAmsiACAGQQlqaiAMpyICIAJB//8DcUHkAG4iAkHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAALAkAgAkEKTwRAIABBAmsiACAGQQlqaiACQQF0Qei4wABqLwAAOwAADAELIABBAWsiACAGQQlqaiACQTBqOgAACwJ/IAZBCWogAGohCEErQYCAxAAgASgCACIDQQFxIgIbIQQgAkEnIABrIglqIQJBlLjAAEEAIANBBHEbIQUCQAJAIAEoAghFBEBBASEAIAEgBCAFEFINAQwCCwJAAkACQAJAIAIgAUEMaigCACIDSQRAIAEtAABBCHENBEEAIQAgAyACayICIQNBASABLQAgIgcgB0EDRhtBA3FBAWsOAgECAwtBASEAIAEgBCAFEFINBAwFC0EAIQMgAiEADAELIAJBAXYhACACQQFqQQF2IQMLIABBAWohACABQRxqKAIAIQcgASgCBCECIAEoAhghCgJAA0AgAEEBayIARQ0BIAogAiAHKAIQEQQARQ0AC0EBDAQLQQEhACACQYCAxABGDQEgASAEIAUQUg0BIAEoAhggCCAJIAEoAhwoAgwRBQANASABKAIcIQQgASgCGCEBQQAhAAJ/A0AgAyAAIANGDQEaIABBAWohACABIAIgBCgCEBEEAEUNAAsgAEEBawsgA0khAAwBCyABKAIEIQcgAUEwNgIEIAE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kZXggaXMgAAAkHBAAIAAAAEQcEAASAAAAMDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkgb3V0IG9mIHJhbmdlIGZvciBzbGljZSBvZiBsZW5ndGggbGlicmFyeS9jb3JlL3NyYy9zbGljZS9pbmRleC5yc3JhbmdlIGVuZCBpbmRleCAAAABxHRAAEAAAADAdEAAiAAAAUh0QAB8AAABJAAAABQB7CXByb2R1Y2VycwIIbGFuZ3VhZ2UBBFJ1c3QADHByb2Nlc3NlZC1ieQMFcnVzdGMdMS42MS4wIChmZTViMTNkNjggMjAyMi0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp";let wasm$1;const wasmBytes$1=decode$7(wasmBytesBase64$1);function bls_init$1(){return wasm$1.bls_init()}let cachegetUint8Memory0$1=null;function getUint8Memory0$1(){return(cachegetUint8Memory0$1===null||cachegetUint8Memory0$1.buffer!==wasm$1.memory.buffer)&&(cachegetUint8Memory0$1=new Uint8Array(wasm$1.memory.buffer)),cachegetUint8Memory0$1}function passArray8ToWasm0$1($,et){const tt=et($.length*1);return getUint8Memory0$1().set($,tt/1),[tt,$.length]}function bls_verify$1($,et,tt){const[rt,nt]=passArray8ToWasm0$1($,wasm$1.__wbindgen_malloc),[it,At]=passArray8ToWasm0$1(et,wasm$1.__wbindgen_malloc),[at,ot]=passArray8ToWasm0$1(tt,wasm$1.__wbindgen_malloc);return wasm$1.bls_verify(rt,nt,it,At,at,ot)}async function load$1($,et){if(typeof Response=="function"&&$ instanceof Response){const tt=await $.arrayBuffer();return await WebAssembly.instantiate(tt,et)}else{const tt=await WebAssembly.instantiate($,et);return tt instanceof WebAssembly.Instance?{instance:tt,module:$}:tt}}async function init$1(){const $={},{instance:et,module:tt}=await load$1(wasmBytes$1,$);return wasm$1=et.exports,init$1.__wbindgen_wasm_module=tt,wasm$1}let verify$1;async function blsVerify$1($,et,tt){if(!verify$1){if(await init$1(),bls_init$1()!==0)throw new Error("Cannot initialize BLS");verify$1=(rt,nt,it)=>bls_verify$1(nt,it,rt)===0}return verify$1($,et,tt)}const decodeLeb128$1=$=>lebDecode$1(new PipeArrayBuffer$1($)),decodeTime$1=$=>{const et=decodeLeb128$1($);return new Date(Number(et)/1e6)};let CertificateVerificationError$1=class extends AgentError$1{constructor(et){super(`Invalid certificate: ${et}`)}};function isBufferEqual$1($,et){if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;ntgt)throw new CertificateVerificationError$1("Certificate is signed more than 5 minutes in the future. Certificate time: "+dt.toISOString()+" Current time: "+new Date(ct).toISOString());try{At=await this._blsVerify(new Uint8Array(nt),new Uint8Array(rt),new Uint8Array(it))}catch{At=!1}if(!At)throw new CertificateVerificationError$1("Signature verification failed")}async _checkDelegationAndGetKey(et){if(!et)return this._rootKey;const tt=await SA.create({certificate:et.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:60*24*30}),rt=tt.lookup(["subnet",et.subnet_id,"canister_ranges"]);if(!rt)throw new CertificateVerificationError$1(`Could not find canister ranges for subnet 0x${toHex$1(et.subnet_id)}`);if(!decode$4(rt).map(ot=>[Principal$3.fromUint8Array(ot[0]),Principal$3.fromUint8Array(ot[1])]).some(ot=>ot[0].ltEq(this._canisterId)&&ot[1].gtEq(this._canisterId)))throw new CertificateVerificationError$1(`Canister ${this._canisterId} not in range of delegations for subnet 0x${toHex$1(et.subnet_id)}`);const at=tt.lookup(["subnet",et.subnet_id,"public_key"]);if(!at)throw new Error(`Could not find subnet key for subnet 0x${toHex$1(et.subnet_id)}`);return at}};const DER_PREFIX$1=fromHex$2("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),KEY_LENGTH$1=96;function extractDER$1($){const et=DER_PREFIX$1.byteLength+KEY_LENGTH$1;if($.byteLength!==et)throw new TypeError(`BLS DER-encoded public key must be ${et} bytes long`);const tt=$.slice(0,DER_PREFIX$1.byteLength);if(!isBufferEqual$1(tt,DER_PREFIX$1))throw new TypeError(`BLS DER-encoded public key is invalid. Expect the following prefix: ${DER_PREFIX$1}, but get ${tt}`);return $.slice(DER_PREFIX$1.byteLength)}async function reconstruct$1($){switch($[0]){case 0:return hash$1(domain_sep$1("ic-hashtree-empty"));case 4:return $[1];case 3:return hash$1(concat$3(domain_sep$1("ic-hashtree-leaf"),$[1]));case 2:return hash$1(concat$3(domain_sep$1("ic-hashtree-labeled"),$[1],await reconstruct$1($[2])));case 1:return hash$1(concat$3(domain_sep$1("ic-hashtree-fork"),await reconstruct$1($[1]),await reconstruct$1($[2])));default:throw new Error("unreachable")}}function domain_sep$1($){const et=new Uint8Array([$.length]),tt=new TextEncoder().encode($);return concat$3(et,tt)}function lookup_path$1($,et){if($.length===0)switch(et[0]){case 3:return new Uint8Array(et[1]).buffer;default:return}const tt=typeof $[0]=="string"?new TextEncoder().encode($[0]):$[0],rt=find_label$1(tt,flatten_forks$1(et));if(rt)return lookup_path$1($.slice(1),rt)}function flatten_forks$1($){switch($[0]){case 0:return[];case 1:return flatten_forks$1($[1]).concat(flatten_forks$1($[2]));default:return[$]}}function find_label$1($,et){if(et.length!==0){for(const tt of et)if(tt[0]===2){const rt=tt[1];if(isBufferEqual$1($,rt))return tt[2]}}}const FIVE_MINUTES_IN_MSEC$1=5*60*1e3;function defaultStrategy$1(){return chain$1(conditionalDelay$1(once$1(),1e3),backoff$1(1e3,1.2),timeout$1(FIVE_MINUTES_IN_MSEC$1))}function once$1(){let $=!0;return async()=>$?($=!1,!0):!1}function conditionalDelay$1($,et){return async(tt,rt,nt)=>{if(await $(tt,rt,nt))return new Promise(it=>setTimeout(it,et))}}function timeout$1($){const et=Date.now()+$;return async(tt,rt,nt)=>{if(Date.now()>et)throw new Error(`Request timed out after ${$} msec: +`);return decode$4(await ot.arrayBuffer())}async syncTime(et){const tt=await __vitePreload(()=>import("./index-8ebea1f4.js"),[]),rt=Date.now();try{et||console.log("Syncing time with the IC. No canisterId provided, so falling back to ryjl3-tyaaa-aaaaa-aaaba-cai");const it=(await tt.request({canisterId:et??Principal$3.from("ryjl3-tyaaa-aaaaa-aaaba-cai"),agent:this,paths:["time"]})).get("time");it&&(this._timeDiffMsecs=Number(it)-Number(rt))}catch(nt){console.error("Caught exception while attempting to sync time:",nt)}}async status(){const et=this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{},tt=await this._requestAndRetry(()=>this._fetch(""+new URL("/api/v2/status",this._host),Object.assign({headers:et},this._fetchOptions)));return decode$4(await tt.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}invalidateIdentity(){this._identity=null}replaceIdentity(et){this._identity=Promise.resolve(et)}_transform(et){let tt=Promise.resolve(et);for(const rt of this._pipeline)tt=tt.then(nt=>rt(nt).then(it=>it||nt));return tt}};var ProxyMessageKind$1;(function($){$.Error="err",$.GetPrincipal="gp",$.GetPrincipalResponse="gpr",$.Query="q",$.QueryResponse="qr",$.Call="c",$.CallResponse="cr",$.ReadState="rs",$.ReadStateResponse="rsr",$.Status="s",$.StatusResponse="sr"})(ProxyMessageKind$1||(ProxyMessageKind$1={}));function getDefaultAgent$1(){const $=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.ic.agent:global.ic.agent:window.ic.agent;if(!$)throw new Error("No Agent could be found.");return $}const wasmBytesBase64$1="AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/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JBwAVqQTgQ0AEaIAJB+AVqQQE2AgAgAkGABmoiB0E4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAJBgAhqIgMgABCMASACQYAKakE4ENABGiACQQE2ArgKIAJBwApqQTgQ0AEaIAJB+ApqQQE2AgAgAkGAC2pBOBDQARogAkG4C2pBATYCACACQcALakE4ENABGiACQfgLakEBNgIAIAIgARAYIAMgAEGAAmoiBhCXASADELABIAQgAxCWASAEIAEQGCADIAYQlgEgAyAAQYAEaiIFEJcBIAMQsAEgByADEJYBIAEoAoAGQQJGDQMgAkHADGoiAyABQYAFahBeIAJBgAZqIAMQpgEMBAsgACABEG0MCAsgAiAAEIwBIAJBgAJqQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADakE4ENABGiACQbgDakEBNgIAIAJBwANqQTgQ0AEaIAJB+ANqQQE2AgAgAkGABGpBOBDQARogAkEBNgK4BCACQcAEakE4ENABGiACQfgEakEBNgIAIAJBgAVqQTgQ0AEaIAJBuAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAx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BBEAgACABIAIQgwEMAgsCQEH4vsAAKAIAIAJHBEAgAkH0vsAAKAIARw0BQfS+wAAgADYCAEHsvsAAQey+wAAoAgAgAWoiATYCACAAIAEQoAEPC0H4vsAAIAA2AgBB8L7AAEHwvsAAKAIAIAFqIgE2AgAgACABQQFyNgIEIABB9L7AACgCAEcNAUHsvsAAQQA2AgBB9L7AAEEANgIADwsgAhDLASIDIAFqIQECQCADQYACTwRAIAIQFwwBCyACQQxqKAIAIgQgAkEIaigCACICRwRAIAIgBDYCDCAEIAI2AggMAQtB3LvAAEHcu8AAKAIAQX4gA0EDdndxNgIACyAAIAEQoAEgAEH0vsAAKAIARw0BQey+wAAgATYCAAsPCyABQYACTwRAIAAgARAWDwsgAUEDdiICQQN0QeS7wABqIQECf0Hcu8AAKAIAIgNBASACdCICcQRAIAEoAggMAQtB3LvAACACIANyNgIAIAELIQIgASAANgIIIAIgADYCDCAAIAE2AgwgACACNgIIC+UDAQN/IwBB0CJrIgMkACADQcAWaiIEQcitwAAQSSADQcgcaiIFQYCuwAAQSSADQQhqIAQgBRBLIANBiAFqQTgQ0AEaIANBwAFqQTgQ0AEaIANB+AFqED0CQCACEIYBBEAgABBVDAELIANB+ARqIgQQPSAEIAEQfSAEEEcgA0H4B2oiARBnIAEgAhB4IAEQRiADQcgcaiICIAEQkAEgA0G4CWogAhCQASACIANBuAhqEJABIANB+AlqIAIQkAEgA0G4CmoiARA9IANBuA1qEFUgASAEEH0gA0HAE2oiARA9IAEgBBB9IAEQogEgA0HAAWogA0GIAWoQUEECayECA0AgAkEBakEBTQRAIANBuA1qIgEQngEgACABQYgGENEBGgUgA0G4DWoQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAM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CXASAAELABIAEQyQEgARCzASAAIAEQlwEgAxAhIAMQZCACIAMQlgEgAiADEJcBIAMgAhCXASADELABIAQQISACIAQQlgEgAiAEEJcBIAQgAhCXASAEELABIAYQsgEgBhCzASAFEMkBIAUQswEgBiADEJcBIAUgBBCXASAAQQU2AoAGIAAQnAEgAUGACGokAAv/AQEHfyMAQcACayIBJAAgASAAQUBrIgYQkAEgARBMIAFBQGsiAyAGEJABIAMgAEGAAWoiAhBKIAFBgAFqIgQgAhCQASAEEEwgAiABEK4BIAIgARB3IAIQQiACEIIBIAIQggEgAhBCIARBDBA0IAFBwAFqIgcgBBCQASAHIAIQSiABQYACaiIFIAEQkAEgBSAEEHcgBRBCIAIgAxBKIAMgBBCuASADIAQQdyAEIAMQdyABIAQQfiABEEIgBSABEEogBSAHEHcgAyAAEK4BIAMgBhBKIAAgARCuASAAEEIgACADEEogABCCASAAEEIgBiAFEK4BIAYQQiABQcACaiQAC84CAgd/An4CQAJAAkBBDSABQTpuIgJrIgRBDU0EQEEMIAJrIgNBDk8NASAAIAAgA0EDdGopAwBBOiABIAJBOmxrIgNrrSIKhyAAIARBA3RqKQMAIAOtIgmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEahCxASABQQE2AoAGCyAAIAFBiAYQ0QEaIANBgA1qJAALhgICBH8BfiMAQTBrIgIkACABQQRqIQQgASgCBEUEQCABKAIAIQMgAkEQaiIFQQA2AgAgAkIBNwMIIAIgAkEIajYCFCACQShqIANBEGopAgA3AwAgAkEgaiADQQhqKQIANwMAIAIgAykCADcDGCACQRRqIAJBGGoQDBogBEEIaiAFKAIANgIAIAQgAikDCDcCAAsgAkEgaiIDIARBCGooAgA2AgAgAUEMakEANgIAIAQpAgAhBiABQgE3AgQgAiAGNwMYQQxBBBC5ASIBRQRAQQxBBBDPAQALIAEgAikDGDcCACABQQhqIAMoAgA2AgAgAEGEt8AANgIEIAAgATYCACACQTBqJAAL5AEBAn8jAEHAAWsiAyQAIAMQZyAAIAEgAkEfdSIEIAJzIARBf3NqQQJtIgJBAWtBH3YQbiAA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oQrgEgA0GwAWokAA8LIAJBMGpB4ABBkKbAABA7AAuPAgEDfyMAQSBrIgUkAEEBIQZB2LvAAEHYu8AAKAIAIgdBAWo2AgACQEGgv8AALQAABEBBpL/AACgCAEEBaiEGDAELQaC/wABBAToAAAtBpL/AACAGNgIAAkACQCAHQQBIIAZBAktyDQAgBSAEOgAYIAUgAzYCFCAFIAI2AhBBzLvAACgCACICQQBIDQBBzLvAACACQQFqIgI2AgBBzLvAAEHUu8AAKAIAIgMEf0HQu8AAKAIAIAUgACABKAIQEQAAIAUgBSkDADcDCCAFQQhqIAMoAhQRAABBzLvAACgCAAUgAgtBAWs2AgAgBkEBSw0AIAQNAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAucAQEEfyMAQYADayICJAAgAiAAEF4gAkGAAWoiASAAQYABaiIEEF4gAkGAAmoiAyAAEF4gAyAEEBEgAiAEEJoBIAEQfCABIAAQmgEgAhCpASABEKkBIAAgAhCZASAAIAEQESABIAMQmQEgARB8IAEgAxCaASABEKkBIAEQNiAAIAEQmgEgAxC4ASAEIAMQmQEgABCwASACQYADaiQAC7kBAQJ/IwBBIGsiAyQAAkAgASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAOKAIQIgg2AhggDkEIaiACIAMQWyAOIA4oAgwiATYCJCAOIA4oAggiAzYCICAOIAQgBRBbIA4gDigCBCIFNgIsIA4gDigCACINNgIoIAAhBCMAQZAVayICJAAjAEGwBmsiCiQAIApBEGpBOBDQARogCkHQAGpBOBDQASEVIApBiAFqQQE2AgAgCkEBNgJIIApBkAFqIgBB2KTAABBJIAAQKiEPIApByAFqIhNBgAIQ0AEaIApByANqQYABENABGiMAQdAAayIRJAAgEUEQakHAABDQARogASEJQQAhACMAQYAEayIHJAAgB0EvakGBAhDQARogB0GwAmpBwAAQ0AEaIAdB8AJqQcAAENABGiAHQbADakHAABDQARogByAPQf8AakEDdkEBaiISQQF0IgFBCHQgAUGA/gNxQQh2cjsALCABQQFrQQV2QQFqIQsCQANAIAYgB2pBLmogADoAACAGQStGBEAgB0EsaiI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+ASAEDQFBAEEAQZiBwAAQOwALIAQgDEYNAiAAIAxqIAggDGotAAA6AAAgDEEBaiEMDAELC0EAIQwgCCwAACIJQQBIDQIgCEEwaiEDIARBMCAEQTBLG0EwayEIA0AgDEEwRgRAIABBoAFqIgQgABC+ASMAQYABayIDJAAgARBnIAEgAEHoAGoQwAEgAUFAayIIIAQQwAEgAUGAAWoQygEgARBCIAMgARBPIANBQGsiBCAIEJABIAQQTCAEIAMQWEUEQCABEJIBCyADQYABaiQADAULIAggDEYNAiAAIAxqIAMgDGotAAA6AAAgDEEBaiEMDAALAAsgBCAEQYiBwAAQOwALIAxBMGogBEGogcAAEDsACyMAQcABayIDJAAgAEGgAWoiBBBnIANBOBDQASIDQQE2AjggBCAAQegAahDAASAEEEIgBEGAAWoQygEgA0FAayIIIAQQTwJAAkACQCAIIAMQWkEBRgRAIANBgAFqIgggA0FAayADECMgCBBWDQEMAgsgBBCSAQwCCyADQYABaiIIEEMgCBBCCyAEQUBrIANBgAFqEK4BCyADQcABaiQAIAlBIHEiA0EAIABB4AFqEE0iBEEBRxtBASADIARBAUdyGwRAIABBoAFqEKQBCyABIABBoAFqQcABENEBGgsgAEHgAmokAAJ/QQAhAyMAQcAFayIAJAACQCABEIYBDQAgAEEIaiIIQZCtwAAQSSAAQYAEaiIEQbiuwAAQSSAAQUBrIgkgBBCOASAAQYABaiIEEGcgBCABEHggBCAJEEogAEHAAmoiBCABIAgQvQEgASAEECQNACAAQYAEaiIEIABBwAJqIgEgAEEIahC9ASABIARBwAEQ0QEaIAEQpAEgAEGAAWogARAkRQ0AQQEhAwsgAEHABWokAEF/IANFDQAaIAJBwAFqEKQBIAJBgANqIQhBACEAIwBB4ARrIgEkACABQeAAENABIQECQCAFBEADQCAAQeAARgRAIAEgAS0AAEEfcToAACABQeAAaiABEB9BACEAAkAgDSwAACILQQBOBEAgDUHgAGohAyAFQeAAIAVB4ABLG0HgAGshBANAIABB4ABGBEAgAUHgAWoiACABEB8gCCABQeAAaiAAED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sLIwBBgANrIgAkACAAED0gACABQfAGahB9IAAQogEgAUHwAGoiBCAAEAggAEGAA2okACAFIARBgAMQ0QEaCyABQfA2aiQAIAUQogEjAEGAAmsiACQAIAAgAxBeIABBgAFqIgEgBRBeIAAgBUGAAmoiBBARIAEgA0GAAmoiCBARAn8CQCAAIAEQegRAIAAgA0GAAWoQmQEgACAEEBEgAEGAAWoiASAFQYABahCZASABIAgQESAAIAEQeg0BC0EADAELQQELIQEgAEGAAmokACANQcAHaiQAQX8gAUUNABojAEHgA2siACQAIABBgAFqIgFBwKjAABBJIABBuAFqIgNB+KjAABBJIAAgASADEEsgAEHwAmoiAUGwqcAAEEkgAEGoA2oiA0HoqcAAEEkgAEHwAWoiBCABIAMQSyACQYAGaiIBIAAgBBA/IABB4ANqJAAgAkGACWohByACQYADaiEIIwBBkDRrIgAkACAAQYAoaiIDQcitwAAQSSAAQYguaiIEQYCuwAAQSSAAIAMgBBBLIABBgAFqQTgQ0AEaIABBuAFqQTgQ0AEaIABB8AFqED0CQCACQcABaiIEEIYBRQRAIAIQhgEEQCAHIAEgBBAODAILIABB8ARqIgMQPSADIAEQfSADEEcgAEHwB2oiBRBnIAUgBBB4IAUQRiAAQbAJaiIEED0gBCAIEH0gBBBHIABBsAxqIggQZyAIIAIQeCAIEEYgAEGILmoiASAFEJABIABB8A1qIAEQkAEgASAAQbAIahCQASAAQbAOaiABEJABIAEgCBCQASAAQfAOaiABEJABIAEgAEHwDGoQkAEgAEGwD2ogARCQASAAQfAPaiIBED0gAEHwEmoiBRA9IABB8BVqEFUgASADEH0gBSAEEH0gAEH4G2oiARA9IAEgAxB9IAEQogEgAEH4HmoiARA9IAEgBBB9IAEQogEgAEG4AWogAEGAAWoQUEECayEBA0AgAUEBakEBTQRAIABB8BVqIgEQngEgByABQYgGENEBGgwDBSAAQfAVaiIEEBogAEH4IWoiAyAAQfAPaiAAQfANaiAAQbAOahALIABBgChqIgUgAEHwEmogAEHwDmogAEGwD2oQCyADIAUQAyAEI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gABBpIAQQEyAEIAAQByANIAAgCxAbIAhByA1qIgMgDRBpIAMQngEgASAAEGkgARCeASAAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gARCeASAAIAMQbSAAIAEQByANIAAgCxAbIAMgDRBtIAMQngEgASAAEG0gASAIEDIgACADEG0gACABEAcgDSAAIAsQGyADIA0QbSANIAMgCxAbIAMgDRBtIAEgABBtIAEgCBAyIAEgCBAyIAMgARAHIAEgABBtIAEQngEgACADEG0gACABEAcgACAEEAcgABCcASAIQeAfaiQAIAcgAEGIBhDRARpBACEAIwBBgAJrIgEkACABEGwCQCAHIAEQegR/IAdBgAFqIAFBgAFqEHoFQQALRQ0AIAdBgAJqEIcBRQ0AIAdBgARqEIcBIQALIAFBgAJqJABBACAADQAaQX8LIAJBkBVqJAAgDkEoahC0ASAOQSBqELQBIA5BGGoQtAEgDkEwaiQAC58BAgJ/BX4gAEEwaiICKQMAIAFBP3GtIgSGIQUgACkDKCIGQTogAWtBP3GtIgiHIQdBBiEBA38gAiAFIAeENwMAIAFBAU0EfyAAIAApAwAgBIZC//////////8DgzcDACAAKQMwQiSHpwUgAUEBayEBIAJBEGsiA0EIaiECIAYgBIZC//////////8DgyEHIAMpAwAiBiAIhyEFDAELCxoLiAECA34DfyMAQRBrIgUkAAN+IAZBOEYEfiAFQRBqJAAgAwUgBSAAIAZqIgcpAwAiAiACQj+HIAGsIgIgAkI/hxAvIAcgBSkDACIEIAN8IgJC//////////8DgzcDACACIARUrSAFQQhqKQMAIANCP4d8fEIGhiACQjqIhCEDIAZBCGohBgwBCwsLigECA38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJIAYgA0IgiCIGfnwiBUIghnwiCjcDACAAIAcgClatIAYgCH4gBSAJVK1CIIYgBUIgiIR8fCABIAR+IAIgA358fDcDCAtqAgF/BX4gASkDCCAAKQMAhSIGQgGGQgGHIQdBACACa6whCAN+IANBOEYEfiAFBSAAIANqIgIgAikDACIEIAaFIAEgA2opAwAgBIUgCIOFIgQgB4U3AwAgBCAFhSEFIANBCGohAwwBCwsaC18CAX8EfkIBIQNBMCECA38gAkF4RgR/IARCAYYgA3ynQQFrBSABIAJqKQMAIgUgACACaikDACIGfUI6hyADgyAEhCEEIAJBCGshAiAFIAaFQgF9QjqHIAODIQMMAQsLC2kBBH8jAEGAAmsiAiQAIAIgARBeIAJBgAFqIgMgARBeIAIQLSADIAIQESAAIAMQmAEgAEGAAmoiBCADEJgBIABBgARqIgUgAxCYASAEIAEQp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IAFCADcDACACQQFrIQIgAUEIaiEBDAALAAsgAUE4Rg0BIAFBOEcEQCABIANqIAEgA2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYCACABQQE2AjggAUGBCGpB5wAQ0AEaIAFB6AhqIgQgABCQASAEEEIgAUGoCWoiBCADEF0gBBBCIAQQKkEDaiIIQQJ2IgNBAWohCQJAA0AgAiAJRgRAIAEQygEgBiABQegIahCuASABQeAJakE4ENABGiABQQE2ApgKQYB5IQIMAgsgAUGoCWoiBCAEQQQQjwEiChCUASAEEEIgAkHnAEcEQCABQYEIaiACaiAKOgAAIAFBqAlqQQQQLCACQQFqIQIMAQsLQecAQecAQaC0wAAQOwALA0AgAgRAIAFB4AlqIgQgASACaiIGQcAHahCuASAGQYAIaiIGIAQQrgEgBiABQegIahBKIAJBQGshAgwBCwsCQAJAAkACQCAIQZwDSQRAIAFBgQhqIANqLAAAIgJBEE8NASAFIAEgAkEGdGoQkAEgA0EBayICQeYASyEEA0AgAkF/Rg0DIAUQTCAFEEwgBRBMIAUQTCAEDQQgAUGBCGogAmotAAAiA0EQSQRAIAUgASADQQZ0ahBKIAJBAWshAgwBCwsgA0EYdEEYdUEQQeC0wAAQOwALIANB5wBBsLTAABA7AAsgAkEQQcC0wAAQOwALIAUQHiABQaAKaiQADAELIAJB5wBB0LTAABA7AAsgACAFEK4BIAdBgAFqJAALbAEBfyMAQTBrIgMkACADIAE2AgQgAyAANgIAIANBHGpBAjYCACADQSxqQQE2AgAgA0ICNwIMIANB2LjAADYCCCADQQE2AiQgAyADQSBqNgIYIAMgAzYCKCADIANBBGo2AiAgA0EIaiACEGYAC2UBAn8gACAAKAIAIgJBCGoiAzYCACAAIAJBA3ZBPHFqQShqIgIgAUH/AXEgAigCAEEIdHI2AgACQAJAIANFBEAgAEEANgIAIAAgACgCBEEBajYCBAwBCyADQf8DcQ0BCyAAEA8LC1wAIABBOBDQASIAQQE2AjggAEFAa0E4ENABGiAAQfgAakEBNgIAIABBgAFqEFEgAEGAAmpBOBDQARogAEG4AmpBATYCACAAQcACakE4ENABGiAAQfgCakEBNgIAC1sBA38jAEGAAWsiASQAIAAQqQEgASAAEJABIAFBQGsiAiAAQUBrIgMQkAEgARBMIAIQTCABIAIQdyABQQAQMyAAIAEQSiABEEMgARBCIAMgARBKIAFBgAFqJAALYQEBfyMAQYACayIDJAAgABA9IAAgARCZASAAQYABaiIBIAIQmQEgAEGAAmoQtwEgABCpASADIAAQOCADQYABaiICIAEQXiACEC0gAiADEHpFBEAgABCbAQsgA0GAAmokAAtUAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLGgt8AQV/IwBBQGoiAyQAIANBCGoiAkHAssAAEEkgAiAAKAI4QQFrEDUiBBAoA0AgAUE4RwRAIAAgAWoiBSABIAJqKQMAIAUpAwB9NwMAIAFBCGohAQwBCwsgAEEBIARBAWp0IgI2AjggAkH///8PSgRAIAAQHgsgA0FAayQAC3sBAn8gAEEoaiECA0AgAUGAAkYEQCAAQufMp9DW0Ouzu383AgggAEIANwIAIABBIGpCq7OP/JGjs/DbADcCACAAQRhqQv+kuYjFkdqCm383AgAgAEEQakLy5rvjo6f9p6V/NwIABSABIAJqQQA2AgAgAUEEaiEBDAELCwtUACAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQARogAEH4AGpBATYCACAAQYABakE4ENABGiAAQbgBakEBNgIAIABBwAFqQTgQ0AEaIABB+AFqQQE2AgALWAECfyMAQUBqIgEkAAJAIAAQhgENACABQQEQOSAAQYABaiICIAEQWA0AIAJBABAzIAAgAhBKIAAQHiAAQUBrIgAgAhBKIAAQHiACIAEQrgELIAFBQGskAAtZAQJ/IwBBgAFrIgEkAAJAIAAQigENACABEFEgAEGAAmoiAiABEHoNACACED4gACACEBEgABC1ASAAQYABaiIAIAIQESAAELUBIAIgARCZAQsgAUGAAWokAAtbAgF+An8gACkDACEBA0AgACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkHgAEYEQCAAIAApA2ggAXw3A2gFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLC08BAX8gAEE4ENABGgJAA0AgAkEHRwRAIAJBB0YNAiAAIAEpAwA3AwAgAEEIaiEAIAFBCGohASACQQFqIQIMAQsLDwtBB0EHQeSawAAQOwALVAECfyMAQbABayICJAAgATQCOCAANAI4fkL///8PVQRAIAAQHgsgAkEIaiIDIAAgARAFIAJB+ABqIgEgAxBrIAAgARBqIABBAjYCOCACQbABaiQAC1EB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ACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A0AgAUE4RwRAIAAgAWpCADcDACABQQhqIQEMAQsLCyUAIAAgASACEDAgAEEAIAJrIAAoAjgiACABKAI4c3EgAHM2AjgLJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECyMAA0AgAgRAIAAgAS0AABA8IAJBAWshAiABQQFqIQEMAQsLCywAIAAQiwEgACABEJYBIABBgAJqIAIQlgEgAEGABGogAxCWASAAQQU2AoAGCyMBAX8jAEFAaiIBJAAgASAAEJABIAEQHiABEFcgAUFAayQACykAIAAgARBgIAAgACgCOCABKAI4aiIBNgI4IAFB////D0oEQCAAEB4LCyUAIAAgARCuASAAQUBrIAFBQGsQrgEgAEGAAWogAUGAAWoQrgELKAEBfyMAQYACayICJAAgAiABEIwBIAIQKyAAIAIQlwEgAkGAAmokAAscAQF/IAAgARB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c3ELGQAgAEE4ENABIgAgARBqIAAgASgCODYCOAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAEQmQEgAEGAAWogAhCZAQsSACAAIAEQESAAQYABaiABEBELFAAgACABEKoBIABBgAFqIAEQqgELCwAgAQRAIAAQBAsLDQAgABBCIABBQGsQQgsRACAAIAEQSiAAQUBrIAEQSgsRACAAIAEQNCAAQUBrIAEQNAu+BQEHfwJ/AkACQEGAgHxBCEEIEKMBQRRBCBCjAWpBEEEIEKMBamtBd3FBA2siAkEAQRBBCBCjAUECdGsiBCACIARJGyABTQ0AQRAgAUEEakEQQQgQowFBBWsgAUsbQQgQowEhAiAAENUBIgQgBBDLASIFENIBIQMCQAJAAkACQAJAAkACQCAEEMQBRQRAIAIgBU0NASADQfi+wAAoAgBGDQIgA0H0vsAAKAIARg0DIAMQvAENByADEMsBIgYgBWoiByACSQ0HIAcgAmshBSAGQYACSQ0EIAMQFwwFCyAEEMsBIQMgAkGAA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GpBEEEIEKMBakEEaxAAIgJFDQAgAhDVASEAAkAgAUEBayIDIAJxRQRAIAAhAQwBCyACIANqQQAgAWtxENUBIQJBEEEIEKMBIQMgABDLASACQQAgASACIABrIANLG2oiASAAayICayEDIAAQxAFFBEAgASADEHMgACACEHMgACACEA0MAQsgACgCACEAIAEgAzYCBCABIAAgAmo2AgALIAEQxAENASABEMsBIgJBEEEIEKMBIARqTQ0BIAEgBBDSASEAIAEgBBBzIAAgAiAEayIEEHMgACAEEA0MAQsgAwwBCyABENQBIAEQxAEaCwuOBAEFfyAAKAIAIQAjAEEQayIEJAACQAJ/AkAgAUGAAU8EQCAEQQA2AgwgAUGAEE8NASAEIAFBP3FBgAFyOgANIAQgAUEGdkHAAXI6AAxBAgwCCyAAKAIIIgIgAEEEaigCAEYEQCMAQSBrIgMkAAJAAkAgAiACQQFqIgVLDQAgAEEEaigCACICQQF0IgYgBSAFIAZJGyIFQQggBUEISxshBQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgBSADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiAFNgIAIAAgAjYCACADQSBqJAAMAQsQZQALIAAoAgghAgsgACACQQFqNgIIIAAoAgAgAmogAToAAAwCCyABQYCABE8EQCAEIAFBP3FBgAFyOgAPIAQgAUESdkHwAXI6AAwgBCABQQZ2QT9xQYABcjoADiAEIAFBDHZBP3FBgAFyOgANQQQMAQsgBCABQT9xQYABcjoADiAEIAFBDHZB4AFyOgAMIAQgAUEGdkE/cUGAAXI6AA1BAwshASABIABBBGooAgAgAEEIaiIDKAIAIgJrSwRAIAAgAiABECIgAygCACECCyAAKAIAIAJqIARBDGogARDRARogAyABIAJqNgIACyAEQRBqJABBAAsTACAAQZS3wAA2AgQgACABNgIACw0AIAAtAARBAnFBAXYL5QYCDH8CfiMAQbAcayIDJAACQAJAAkAgAhBXDQAgARCGAQ0AIANBCGoQZyADQcg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AEE4ENABIQACQANAIAJBMEYNASAAQQgQKCACQTBHBEAgACAAKQMAIAEgAmoxAAB8NwMAIAJBAWohAgwBCwsgAkEwQaSbwAAQOwALCw0AIAAQNiAAIAEQmgELDAAgACABEGogABBUCw0AIAAQcSAAQQE2AjgLDAAgABBDIAAgARB3CwoAQQAgAGsgAHELCwAgAC0ABEEDcUULDAAgACABQQNyNgIECw0AIAAoAgAgACgCBGoLDgAgACgCABoDQAwACwALgQgCCX8CfiAANQIAIQsjAEEwayIGJABBJyEAAkAgC0KQzgBUBEAgCyEMDAELA0AgBkEJaiAAaiICQQRrIAsgC0KQzgCAIgxCkM4Afn2nIgNB//8DcUHkAG4iBEEBdEHouMAAai8AADsAACACQQJrIAMgBEHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAAgAEEEayEAIAtC/8HXL1YgDCELDQALCyAMpyICQeMASwRAIABBAmsiACAGQQlqaiAMpyICIAJB//8DcUHkAG4iAkHkAGxrQf//A3FBAXRB6LjAAGovAAA7AAALAkAgAkEKTwRAIABBAmsiACAGQQlqaiACQQF0Qei4wABqLwAAOwAADAELIABBAWsiACAGQQlqaiACQTBqOgAACwJ/IAZBCWogAGohCEErQYCAxAAgASgCACIDQQFxIgIbIQQgAkEnIABrIglqIQJBlLjAAEEAIANBBHEbIQUCQAJAIAEoAghFBEBBASEAIAEgBCAFEFINAQwCCwJAAkACQAJAIAIgAUEMaigCACIDSQRAIAEtAABBCHENBEEAIQAgAyACayICIQNBASABLQAgIgcgB0EDRhtBA3FBAWsOAgECAwtBASEAIAEgBCAFEFINBAwFC0EAIQMgAiEADAELIAJBAXYhACACQQFqQQF2IQMLIABBAWohACABQRxqKAIAIQcgASgCBCECIAEoAhghCgJAA0AgAEEBayIARQ0BIAogAiAHKAIQEQQARQ0AC0EBDAQLQQEhACACQYCAxABGDQEgASAEIAUQUg0BIAEoAhggCCAJIAEoAhwoAgwRBQANASABKAIcIQQgASgCGCEBQQAhAAJ/A0AgAyAAIANGDQEaIABBAW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AAAGluZGV4IG91dCBvZiBib3VuZHM6IHRoZSBsZW4gaXMgIGJ1dCB0aGUgaW5kZXggaXMgAAAkHBAAIAAAAEQcEAASAAAAMDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkgb3V0IG9mIHJhbmdlIGZvciBzbGljZSBvZiBsZW5ndGggbGlicmFyeS9jb3JlL3NyYy9zbGljZS9pbmRleC5yc3JhbmdlIGVuZCBpbmRleCAAAABxHRAAEAAAADAdEAAiAAAAUh0QAB8AAABJAAAABQB7CXByb2R1Y2VycwIIbGFuZ3VhZ2UBBFJ1c3QADHByb2Nlc3NlZC1ieQMFcnVzdGMdMS42MS4wIChmZTViMTNkNjggMjAyMi0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp";let wasm$1;const wasmBytes$1=decode$7(wasmBytesBase64$1);function bls_init$1(){return wasm$1.bls_init()}let cachegetUint8Memory0$1=null;function getUint8Memory0$1(){return(cachegetUint8Memory0$1===null||cachegetUint8Memory0$1.buffer!==wasm$1.memory.buffer)&&(cachegetUint8Memory0$1=new Uint8Array(wasm$1.memory.buffer)),cachegetUint8Memory0$1}function passArray8ToWasm0$1($,et){const tt=et($.length*1);return getUint8Memory0$1().set($,tt/1),[tt,$.length]}function bls_verify$1($,et,tt){const[rt,nt]=passArray8ToWasm0$1($,wasm$1.__wbindgen_malloc),[it,At]=passArray8ToWasm0$1(et,wasm$1.__wbindgen_malloc),[at,ot]=passArray8ToWasm0$1(tt,wasm$1.__wbindgen_malloc);return wasm$1.bls_verify(rt,nt,it,At,at,ot)}async function load$1($,et){if(typeof Response=="function"&&$ instanceof Response){const tt=await $.arrayBuffer();return await WebAssembly.instantiate(tt,et)}else{const tt=await WebAssembly.instantiate($,et);return tt instanceof WebAssembly.Instance?{instance:tt,module:$}:tt}}async function init$1(){const $={},{instance:et,module:tt}=await load$1(wasmBytes$1,$);return wasm$1=et.exports,init$1.__wbindgen_wasm_module=tt,wasm$1}let verify$1;async function blsVerify$1($,et,tt){if(!verify$1){if(await init$1(),bls_init$1()!==0)throw new Error("Cannot initialize BLS");verify$1=(rt,nt,it)=>bls_verify$1(nt,it,rt)===0}return verify$1($,et,tt)}const decodeLeb128$1=$=>lebDecode$1(new PipeArrayBuffer$1($)),decodeTime$1=$=>{const et=decodeLeb128$1($);return new Date(Number(et)/1e6)};let CertificateVerificationError$1=class extends AgentError$1{constructor(et){super(`Invalid certificate: ${et}`)}};function isBufferEqual$1($,et){if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;ntgt)throw new CertificateVerificationError$1("Certificate is signed more than 5 minutes in the future. Certificate time: "+dt.toISOString()+" Current time: "+new Date(ct).toISOString());try{At=await this._blsVerify(new Uint8Array(nt),new Uint8Array(rt),new Uint8Array(it))}catch{At=!1}if(!At)throw new CertificateVerificationError$1("Signature verification failed")}async _checkDelegationAndGetKey(et){if(!et)return this._rootKey;const tt=await SA.create({certificate:et.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:60*24*30}),rt=tt.lookup(["subnet",et.subnet_id,"canister_ranges"]);if(!rt)throw new CertificateVerificationError$1(`Could not find canister ranges for subnet 0x${toHex$1(et.subnet_id)}`);if(!decode$4(rt).map(ot=>[Principal$3.fromUint8Array(ot[0]),Principal$3.fromUint8Array(ot[1])]).some(ot=>ot[0].ltEq(this._canisterId)&&ot[1].gtEq(this._canisterId)))throw new CertificateVerificationError$1(`Canister ${this._canisterId} not in range of delegations for subnet 0x${toHex$1(et.subnet_id)}`);const at=tt.lookup(["subnet",et.subnet_id,"public_key"]);if(!at)throw new Error(`Could not find subnet key for subnet 0x${toHex$1(et.subnet_id)}`);return at}};const DER_PREFIX$1=fromHex$2("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),KEY_LENGTH$1=96;function extractDER$1($){const et=DER_PREFIX$1.byteLength+KEY_LENGTH$1;if($.byteLength!==et)throw new TypeError(`BLS DER-encoded public key must be ${et} bytes long`);const tt=$.slice(0,DER_PREFIX$1.byteLength);if(!isBufferEqual$1(tt,DER_PREFIX$1))throw new TypeError(`BLS DER-encoded public key is invalid. Expect the following prefix: ${DER_PREFIX$1}, but get ${tt}`);return $.slice(DER_PREFIX$1.byteLength)}async function reconstruct$1($){switch($[0]){case 0:return hash$1(domain_sep$1("ic-hashtree-empty"));case 4:return $[1];case 3:return hash$1(concat$3(domain_sep$1("ic-hashtree-leaf"),$[1]));case 2:return hash$1(concat$3(domain_sep$1("ic-hashtree-labeled"),$[1],await reconstruct$1($[2])));case 1:return hash$1(concat$3(domain_sep$1("ic-hashtree-fork"),await reconstruct$1($[1]),await reconstruct$1($[2])));default:throw new Error("unreachable")}}function domain_sep$1($){const et=new Uint8Array([$.length]),tt=new TextEncoder().encode($);return concat$3(et,tt)}function lookup_path$1($,et){if($.length===0)switch(et[0]){case 3:return new Uint8Array(et[1]).buffer;default:return}const tt=typeof $[0]=="string"?new TextEncoder().encode($[0]):$[0],rt=find_label$1(tt,flatten_forks$1(et));if(rt)return lookup_path$1($.slice(1),rt)}function flatten_forks$1($){switch($[0]){case 0:return[];case 1:return flatten_forks$1($[1]).concat(flatten_forks$1($[2]));default:return[$]}}function find_label$1($,et){if(et.length!==0){for(const tt of et)if(tt[0]===2){const rt=tt[1];if(isBufferEqual$1($,rt))return tt[2]}}}const FIVE_MINUTES_IN_MSEC$1=5*60*1e3;function defaultStrategy$1(){return chain$1(conditionalDelay$1(once$1(),1e3),backoff$1(1e3,1.2),timeout$1(FIVE_MINUTES_IN_MSEC$1))}function once$1(){let $=!0;return async()=>$?($=!1,!0):!1}function conditionalDelay$1($,et){return async(tt,rt,nt)=>{if(await $(tt,rt,nt))return new Promise(it=>setTimeout(it,et))}}function timeout$1($){const et=Date.now()+$;return async(tt,rt,nt)=>{if(Date.now()>et)throw new Error(`Request timed out after ${$} msec: Request ID: ${toHex$1(rt)} Request status: ${nt} `)}}function backoff$1($,et){let tt=$;return()=>new Promise(rt=>setTimeout(()=>{tt*=et,rt()},tt))}function chain$1(...$){return async(et,tt,rt)=>{for(const nt of $)await nt(et,tt,rt)}}async function pollForResponse$1($,et,tt,rt,nt,it){var At;const at=[new TextEncoder().encode("request_status"),tt],ot=nt??await((At=$.createReadStateRequest)===null||At===void 0?void 0:At.call($,{paths:[at]})),st=await $.readState(et,{paths:[at]},void 0,ot);if($.rootKey==null)throw new Error("Agent root key not initialized before polling");const ct=await Certificate$1.create({certificate:st.certificate,rootKey:$.rootKey,canisterId:et,blsVerify:it}),ut=ct.lookup([...at,new TextEncoder().encode("status")]);let gt;switch(typeof ut>"u"?gt=RequestStatusResponseStatus$1.Unknown:gt=new TextDecoder().decode(ut),gt){case RequestStatusResponseStatus$1.Replied:return ct.lookup([...at,"reply"]);case RequestStatusResponseStatus$1.Received:case RequestStatusResponseStatus$1.Unknown:case RequestStatusResponseStatus$1.Processing:return await rt(et,tt,gt),pollForResponse$1($,et,tt,rt,ot);case RequestStatusResponseStatus$1.Rejected:{const dt=new Uint8Array(ct.lookup([...at,"reject_code"]))[0],ht=new TextDecoder().decode(ct.lookup([...at,"reject_message"]));throw new Error(`Call was rejected: @@ -521,13 +521,13 @@ ic-request`);let SignIdentity$1=class{getPrincipal(){return this._principal||(th `)}case RequestStatusResponseStatus$1.Done:throw new Error(`Call was marked as done but we never saw the reply: Request ID: ${toHex$1(tt)} `)}throw new Error("unreachable")}const managementCanisterIdl$1=({IDL:$})=>{const et=$.Principal,tt=$.Record({controllers:$.Vec($.Principal),freezing_threshold:$.Nat,memory_allocation:$.Nat,compute_allocation:$.Nat}),rt=$.Record({controllers:$.Opt($.Vec($.Principal)),freezing_threshold:$.Opt($.Nat),memory_allocation:$.Opt($.Nat),compute_allocation:$.Opt($.Nat)}),nt=$.Vec($.Nat8);return $.Service({canister_status:$.Func([$.Record({canister_id:et})],[$.Record({status:$.Variant({stopped:$.Null,stopping:$.Null,running:$.Null}),memory_size:$.Nat,cycles:$.Nat,settings:tt,module_hash:$.Opt($.Vec($.Nat8))})],[]),create_canister:$.Func([$.Record({settings:$.Opt(rt)})],[$.Record({canister_id:et})],[]),delete_canister:$.Func([$.Record({canister_id:et})],[],[]),deposit_cycles:$.Func([$.Record({canister_id:et})],[],[]),install_code:$.Func([$.Record({arg:$.Vec($.Nat8),wasm_module:nt,mode:$.Variant({reinstall:$.Null,upgrade:$.Null,install:$.Null}),canister_id:et})],[],[]),provisional_create_canister_with_cycles:$.Func([$.Record({settings:$.Opt(rt),amount:$.Opt($.Nat)})],[$.Record({canister_id:et})],[]),provisional_top_up_canister:$.Func([$.Record({canister_id:et,amount:$.Nat})],[],[]),raw_rand:$.Func([],[$.Vec($.Nat8)],[]),start_canister:$.Func([$.Record({canister_id:et})],[],[]),stop_canister:$.Func([$.Record({canister_id:et})],[],[]),uninstall_code:$.Func([$.Record({canister_id:et})],[],[]),update_settings:$.Func([$.Record({canister_id:$.Principal,settings:rt})],[],[])})};let ActorCallError$1=class extends AgentError$1{constructor(et,tt,rt,nt){super(["Call failed:",` Canister: ${et.toText()}`,` Method: ${tt} (${rt})`,...Object.getOwnPropertyNames(nt).map(it=>` "${it}": ${JSON.stringify(nt[it])}`)].join(` -`)),this.canisterId=et,this.methodName=tt,this.type=rt,this.props=nt}},QueryCallRejectedError$1=class extends ActorCallError$1{constructor(et,tt,rt){var nt;super(et,tt,"query",{Status:rt.status,Code:(nt=ReplicaRejectCode$1[rt.reject_code])!==null&&nt!==void 0?nt:`Unknown Code "${rt.reject_code}"`,Message:rt.reject_message}),this.result=rt}},UpdateCallRejectedError$1=class extends ActorCallError$1{constructor(et,tt,rt,nt){super(et,tt,"update",Object.assign({"Request ID":toHex$1(rt)},nt.body?Object.assign(Object.assign({},nt.body.error_code?{"Error code":nt.body.error_code}:{}),{"Reject code":String(nt.body.reject_code),"Reject message":nt.body.reject_message}):{"HTTP status code":nt.status.toString(),"HTTP status text":nt.statusText})),this.requestId=rt,this.response=nt}};var CanisterInstallMode$1;(function($){$.Install="install",$.Reinstall="reinstall",$.Upgrade="upgrade"})(CanisterInstallMode$1||(CanisterInstallMode$1={}));const metadataSymbol$1=Symbol.for("ic-agent-metadata");let Actor$1=class ba{constructor(et){this[metadataSymbol$1]=Object.freeze(et)}static agentOf(et){return et[metadataSymbol$1].config.agent}static interfaceOf(et){return et[metadataSymbol$1].service}static canisterIdOf(et){return Principal$3.from(et[metadataSymbol$1].config.canisterId)}static async install(et,tt){const rt=et.mode===void 0?CanisterInstallMode$1.Install:et.mode,nt=et.arg?[...new Uint8Array(et.arg)]:[],it=[...new Uint8Array(et.module)],At=typeof tt.canisterId=="string"?Principal$3.fromText(tt.canisterId):tt.canisterId;await getManagementCanister$1(tt).install_code({mode:{[rt]:null},arg:nt,wasm_module:it,canister_id:At})}static async createCanister(et){const{canister_id:tt}=await getManagementCanister$1(et||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return tt}static async createAndInstallCanister(et,tt,rt){const nt=await this.createCanister(rt);return await this.install(Object.assign({},tt),Object.assign(Object.assign({},rt),{canisterId:nt})),this.createActor(et,Object.assign(Object.assign({},rt),{canisterId:nt}))}static createActorClass(et,tt){const rt=et({IDL:IDL$1});class nt extends ba{constructor(At){if(!At.canisterId)throw new AgentError$1(`Canister ID is required, but recieved ${typeof At.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);const at=typeof At.canisterId=="string"?Principal$3.fromText(At.canisterId):At.canisterId;super({config:Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$1),At),{canisterId:at}),service:rt});for(const[ot,st]of rt._fields)tt!=null&&tt.httpDetails&&st.annotations.push(ACTOR_METHOD_WITH_HTTP_DETAILS$1),this[ot]=_createActorMethod$1(this,ot,st,At.blsVerify)}}return nt}static createActor(et,tt){if(!tt.canisterId)throw new AgentError$1(`Canister ID is required, but recieved ${typeof tt.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);return new(this.createActorClass(et))(tt)}static createActorWithHttpDetails(et,tt){return new(this.createActorClass(et,{httpDetails:!0}))(tt)}};function decodeReturnValue$1($,et){const tt=decode$5($,buffer$2.Buffer.from(et));switch(tt.length){case 0:return;case 1:return tt[0];default:return tt}}const DEFAULT_ACTOR_CONFIG$1={pollingStrategyFactory:defaultStrategy$1},ACTOR_METHOD_WITH_HTTP_DETAILS$1="http-details";function _createActorMethod$1($,et,tt,rt){let nt;tt.annotations.includes("query")||tt.annotations.includes("composite_query")?nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol$1].config).queryTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol$1].config),At)));const ct=At.agent||$[metadataSymbol$1].config.agent||getDefaultAgent$1(),ut=Principal$3.from(At.canisterId||$[metadataSymbol$1].config.canisterId),gt=encode$5(tt.argTypes,at),dt=await ct.query(ut,{methodName:et,arg:gt});switch(dt.status){case"rejected":throw new QueryCallRejectedError$1(ut,et,dt);case"replied":return tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS$1)?{httpDetails:dt.httpDetails,result:decodeReturnValue$1(tt.retTypes,dt.reply.arg)}:decodeReturnValue$1(tt.retTypes,dt.reply.arg)}}:nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol$1].config).callTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol$1].config),At)));const ct=At.agent||$[metadataSymbol$1].config.agent||getDefaultAgent$1(),{canisterId:ut,effectiveCanisterId:gt,pollingStrategyFactory:dt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$1),$[metadataSymbol$1].config),At),ht=Principal$3.from(ut),Et=gt!==void 0?Principal$3.from(gt):ht,wt=encode$5(tt.argTypes,at),{requestId:Qt,response:pt}=await ct.call(ht,{methodName:et,arg:wt,effectiveCanisterId:Et});if(!pt.ok||pt.body)throw new UpdateCallRejectedError$1(ht,et,Qt,pt);const mt=dt(),$t=await pollForResponse$1(ct,Et,Qt,mt,rt),Tt=tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS$1);if($t!==void 0)return Tt?{httpDetails:pt,result:decodeReturnValue$1(tt.retTypes,$t)}:decodeReturnValue$1(tt.retTypes,$t);if(tt.retTypes.length===0)return Tt?{httpDetails:pt,result:void 0}:void 0;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const it=(...At)=>nt({},...At);return it.withOptions=At=>(...at)=>nt(At,...at),it}function getManagementCanister$1($){function et(tt,rt,nt){const it=rt[0];let At=Principal$3.fromHex("");return it&&typeof it=="object"&&it.canister_id&&(At=Principal$3.from(it.canister_id)),{effectiveCanisterId:At}}return Actor$1.createActor(managementCanisterIdl$1,Object.assign(Object.assign(Object.assign({},$),{canisterId:Principal$3.fromHex("")}),{callTransform:et,queryTransform:et}))}function fromHexString$3($){var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16))).buffer}function toHexString$3($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}const bufEquals=($,et)=>{if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{if($<=127)return 1;if($<=255)return 2;if($<=65535)return 3;if($<=16777215)return 4;throw new Error("Length too long (> 4 bytes)")},encodeLen=($,et,tt)=>{if(tt<=127)return $[et]=tt,1;if(tt<=255)return $[et]=129,$[et+1]=tt,2;if(tt<=65535)return $[et]=130,$[et+1]=tt>>8,$[et+2]=tt,3;if(tt<=16777215)return $[et]=131,$[et+1]=tt>>16,$[et+2]=tt>>8,$[et+3]=tt,4;throw new Error("Length too long (> 4 bytes)")},decodeLenBytes=($,et)=>{if($[et]<128)return 1;if($[et]===128)throw new Error("Invalid length 0");if($[et]===129)return 2;if($[et]===130)return 3;if($[et]===131)return 4;throw new Error("Length too long (> 4 bytes)")},decodeLen=($,et)=>{const tt=decodeLenBytes($,et);if(tt===1)return $[et];if(tt===2)return $[et+1];if(tt===3)return($[et+1]<<8)+$[et+2];if(tt===4)return($[et+1]<<16)+($[et+2]<<8)+$[et+3];throw new Error("Length too long (> 4 bytes)")};Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);const ED25519_OID=Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);function wrapDER($,et){const tt=2+encodeLenBytes($.byteLength+1),rt=et.byteLength+tt+$.byteLength;let nt=0;const it=new Uint8Array(1+encodeLenBytes(rt)+rt);return it[nt++]=48,nt+=encodeLen(it,nt,rt),it.set(et,nt),nt+=et.byteLength,it[nt++]=3,nt+=encodeLen(it,nt,$.byteLength+1),it[nt++]=0,it.set(new Uint8Array($),nt),it}const unwrapDER=($,et)=>{let tt=0;const rt=(at,ot)=>{if(nt[tt++]!==at)throw new Error("Expected: "+ot)},nt=new Uint8Array($);if(rt(48,"sequence"),tt+=decodeLenBytes(nt,tt),!bufEquals(nt.slice(tt,tt+et.byteLength),et))throw new Error("Not the expected OID.");tt+=et.byteLength,rt(3,"bit string");const it=decodeLen(nt,tt)-1;tt+=decodeLenBytes(nt,tt),rt(0,"0 padding");const At=nt.slice(tt);if(it!==At.length)throw new Error(`DER payload mismatch: Expected length ${it} actual length ${At.length}`);return At};class Ed25519PublicKey{constructor(et){this.rawKey=et,this.derKey=Ed25519PublicKey.derEncode(et)}static from(et){return this.fromDer(et.toDer())}static fromRaw(et){return new Ed25519PublicKey(et)}static fromDer(et){return new Ed25519PublicKey(this.derDecode(et))}static derEncode(et){return wrapDER(et,ED25519_OID).buffer}static derDecode(et){const tt=unwrapDER(et,ED25519_OID);if(tt.length!==this.RAW_KEY_LENGTH)throw new Error("An Ed25519 public key must be exactly 32bytes long");return tt}toDer(){return this.derKey}toRaw(){return this.rawKey}}Ed25519PublicKey.RAW_KEY_LENGTH=32;class Ed25519KeyIdentity extends SignIdentity$1{constructor(et,tt){super(),this._privateKey=tt,this._publicKey=Ed25519PublicKey.from(et)}static generate(et){if(et&&et.length!==32)throw new Error("Ed25519 Seed needs to be 32 bytes long.");const{publicKey:tt,secretKey:rt}=et===void 0?naclFastExports.sign.keyPair():naclFastExports.sign.keyPair.fromSeed(et);return new this(Ed25519PublicKey.fromRaw(tt),rt)}static fromParsedJson(et){const[tt,rt]=et;return new Ed25519KeyIdentity(Ed25519PublicKey.fromDer(fromHexString$3(tt)),fromHexString$3(rt))}static fromJSON(et){const tt=JSON.parse(et);if(Array.isArray(tt)){if(typeof tt[0]=="string"&&typeof tt[1]=="string")return this.fromParsedJson([tt[0],tt[1]]);throw new Error("Deserialization error: JSON must have at least 2 items.")}throw new Error(`Deserialization error: Invalid JSON type for string: ${JSON.stringify(et)}`)}static fromKeyPair(et,tt){return new Ed25519KeyIdentity(Ed25519PublicKey.fromRaw(et),tt)}static fromSecretKey(et){const tt=naclFastExports.sign.keyPair.fromSecretKey(new Uint8Array(et));return Ed25519KeyIdentity.fromKeyPair(tt.publicKey,tt.secretKey)}toJSON(){return[toHexString$3(this._publicKey.toDer()),toHexString$3(this._privateKey)]}getKeyPair(){return{secretKey:this._privateKey,publicKey:this._publicKey}}getPublicKey(){return this._publicKey}async sign(et){const tt=new Uint8Array(et);return naclFastExports.sign.detached(tt,new Uint8Array(this._privateKey)).buffer}}var __rest$1=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);nt{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol$1].config).queryTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol$1].config),At)));const ct=At.agent||$[metadataSymbol$1].config.agent||getDefaultAgent$1(),ut=Principal$3.from(At.canisterId||$[metadataSymbol$1].config.canisterId),gt=encode$5(tt.argTypes,at),dt=await ct.query(ut,{methodName:et,arg:gt});switch(dt.status){case"rejected":throw new QueryCallRejectedError$1(ut,et,dt);case"replied":return tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS$1)?{httpDetails:dt.httpDetails,result:decodeReturnValue$1(tt.retTypes,dt.reply.arg)}:decodeReturnValue$1(tt.retTypes,dt.reply.arg)}}:nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol$1].config).callTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol$1].config),At)));const ct=At.agent||$[metadataSymbol$1].config.agent||getDefaultAgent$1(),{canisterId:ut,effectiveCanisterId:gt,pollingStrategyFactory:dt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG$1),$[metadataSymbol$1].config),At),ht=Principal$3.from(ut),Et=gt!==void 0?Principal$3.from(gt):ht,wt=encode$5(tt.argTypes,at),{requestId:mt,response:pt}=await ct.call(ht,{methodName:et,arg:wt,effectiveCanisterId:Et});if(!pt.ok||pt.body)throw new UpdateCallRejectedError$1(ht,et,mt,pt);const Qt=dt(),$t=await pollForResponse$1(ct,Et,mt,Qt,rt),Gt=tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS$1);if($t!==void 0)return Gt?{httpDetails:pt,result:decodeReturnValue$1(tt.retTypes,$t)}:decodeReturnValue$1(tt.retTypes,$t);if(tt.retTypes.length===0)return Gt?{httpDetails:pt,result:void 0}:void 0;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const it=(...At)=>nt({},...At);return it.withOptions=At=>(...at)=>nt(At,...at),it}function getManagementCanister$1($){function et(tt,rt,nt){const it=rt[0];let At=Principal$3.fromHex("");return it&&typeof it=="object"&&it.canister_id&&(At=Principal$3.from(it.canister_id)),{effectiveCanisterId:At}}return Actor$1.createActor(managementCanisterIdl$1,Object.assign(Object.assign(Object.assign({},$),{canisterId:Principal$3.fromHex("")}),{callTransform:et,queryTransform:et}))}function fromHexString$3($){var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16))).buffer}function toHexString$3($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}const bufEquals=($,et)=>{if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{if($<=127)return 1;if($<=255)return 2;if($<=65535)return 3;if($<=16777215)return 4;throw new Error("Length too long (> 4 bytes)")},encodeLen=($,et,tt)=>{if(tt<=127)return $[et]=tt,1;if(tt<=255)return $[et]=129,$[et+1]=tt,2;if(tt<=65535)return $[et]=130,$[et+1]=tt>>8,$[et+2]=tt,3;if(tt<=16777215)return $[et]=131,$[et+1]=tt>>16,$[et+2]=tt>>8,$[et+3]=tt,4;throw new Error("Length too long (> 4 bytes)")},decodeLenBytes=($,et)=>{if($[et]<128)return 1;if($[et]===128)throw new Error("Invalid length 0");if($[et]===129)return 2;if($[et]===130)return 3;if($[et]===131)return 4;throw new Error("Length too long (> 4 bytes)")},decodeLen=($,et)=>{const tt=decodeLenBytes($,et);if(tt===1)return $[et];if(tt===2)return $[et+1];if(tt===3)return($[et+1]<<8)+$[et+2];if(tt===4)return($[et+1]<<16)+($[et+2]<<8)+$[et+3];throw new Error("Length too long (> 4 bytes)")};Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);const ED25519_OID=Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);function wrapDER($,et){const tt=2+encodeLenBytes($.byteLength+1),rt=et.byteLength+tt+$.byteLength;let nt=0;const it=new Uint8Array(1+encodeLenBytes(rt)+rt);return it[nt++]=48,nt+=encodeLen(it,nt,rt),it.set(et,nt),nt+=et.byteLength,it[nt++]=3,nt+=encodeLen(it,nt,$.byteLength+1),it[nt++]=0,it.set(new Uint8Array($),nt),it}const unwrapDER=($,et)=>{let tt=0;const rt=(at,ot)=>{if(nt[tt++]!==at)throw new Error("Expected: "+ot)},nt=new Uint8Array($);if(rt(48,"sequence"),tt+=decodeLenBytes(nt,tt),!bufEquals(nt.slice(tt,tt+et.byteLength),et))throw new Error("Not the expected OID.");tt+=et.byteLength,rt(3,"bit string");const it=decodeLen(nt,tt)-1;tt+=decodeLenBytes(nt,tt),rt(0,"0 padding");const At=nt.slice(tt);if(it!==At.length)throw new Error(`DER payload mismatch: Expected length ${it} actual length ${At.length}`);return At};class Ed25519PublicKey{constructor(et){this.rawKey=et,this.derKey=Ed25519PublicKey.derEncode(et)}static from(et){return this.fromDer(et.toDer())}static fromRaw(et){return new Ed25519PublicKey(et)}static fromDer(et){return new Ed25519PublicKey(this.derDecode(et))}static derEncode(et){return wrapDER(et,ED25519_OID).buffer}static derDecode(et){const tt=unwrapDER(et,ED25519_OID);if(tt.length!==this.RAW_KEY_LENGTH)throw new Error("An Ed25519 public key must be exactly 32bytes long");return tt}toDer(){return this.derKey}toRaw(){return this.rawKey}}Ed25519PublicKey.RAW_KEY_LENGTH=32;class Ed25519KeyIdentity extends SignIdentity$1{constructor(et,tt){super(),this._privateKey=tt,this._publicKey=Ed25519PublicKey.from(et)}static generate(et){if(et&&et.length!==32)throw new Error("Ed25519 Seed needs to be 32 bytes long.");const{publicKey:tt,secretKey:rt}=et===void 0?naclFastExports.sign.keyPair():naclFastExports.sign.keyPair.fromSeed(et);return new this(Ed25519PublicKey.fromRaw(tt),rt)}static fromParsedJson(et){const[tt,rt]=et;return new Ed25519KeyIdentity(Ed25519PublicKey.fromDer(fromHexString$3(tt)),fromHexString$3(rt))}static fromJSON(et){const tt=JSON.parse(et);if(Array.isArray(tt)){if(typeof tt[0]=="string"&&typeof tt[1]=="string")return this.fromParsedJson([tt[0],tt[1]]);throw new Error("Deserialization error: JSON must have at least 2 items.")}throw new Error(`Deserialization error: Invalid JSON type for string: ${JSON.stringify(et)}`)}static fromKeyPair(et,tt){return new Ed25519KeyIdentity(Ed25519PublicKey.fromRaw(et),tt)}static fromSecretKey(et){const tt=naclFastExports.sign.keyPair.fromSecretKey(new Uint8Array(et));return Ed25519KeyIdentity.fromKeyPair(tt.publicKey,tt.secretKey)}toJSON(){return[toHexString$3(this._publicKey.toDer()),toHexString$3(this._privateKey)]}getKeyPair(){return{secretKey:this._privateKey,publicKey:this._publicKey}}getPublicKey(){return this._publicKey}async sign(et){const tt=new Uint8Array(et);return naclFastExports.sign.detached(tt,new Uint8Array(this._privateKey)).buffer}}var __rest$1=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);ntsrc.value.bytes(et.toUint8Array())))}))}toJSON(){return Object.assign({expiration:this.expiration.toString(16),pubkey:toHexString$3(this.pubkey)},this.targets&&{targets:this.targets.map(et=>et.toHex())})}};async function _createSingleDelegation$1($,et,tt,rt){const nt=new Delegation$1(et.toDer(),BigInt(+tt)*BigInt(1e6),rt),it=new Uint8Array([...domainSeparator$2,...new Uint8Array(requestIdOf$1(nt))]),At=await $.sign(it);return{delegation:nt,signature:At}}let DelegationChain$1=class $a{constructor(et,tt){this.delegations=et,this.publicKey=tt}static async create(et,tt,rt=new Date(Date.now()+15*60*1e3),nt={}){var it,At;const at=await _createSingleDelegation$1(et,tt,rt,nt.targets);return new $a([...((it=nt.previous)===null||it===void 0?void 0:it.delegations)||[],at],((At=nt.previous)===null||At===void 0?void 0:At.publicKey)||et.getPublicKey().toDer())}static fromJSON(et){const{publicKey:tt,delegations:rt}=typeof et=="string"?JSON.parse(et):et;if(!Array.isArray(rt))throw new Error("Invalid delegations.");const nt=rt.map(it=>{const{delegation:At,signature:at}=it,{pubkey:ot,expiration:st,targets:ct}=At;if(ct!==void 0&&!Array.isArray(ct))throw new Error("Invalid targets.");return{delegation:new Delegation$1(_parseBlob$1(ot),BigInt(`0x${st}`),ct&&ct.map(ut=>{if(typeof ut!="string")throw new Error("Invalid target.");return Principal$3.fromHex(ut)})),signature:_parseBlob$1(at)}});return new this(nt,_parseBlob$1(tt))}static fromDelegations(et,tt){return new this(et,tt)}toJSON(){return{delegations:this.delegations.map(et=>{const{delegation:tt,signature:rt}=et,{targets:nt}=tt;return{delegation:Object.assign({expiration:tt.expiration.toString(16),pubkey:toHexString$3(tt.pubkey)},nt&&{targets:nt.map(it=>it.toHex())}),signature:toHexString$3(rt)}}),publicKey:toHexString$3(this.publicKey)}}};class DelegationIdentity extends SignIdentity$1{constructor(et,tt){super(),this._inner=et,this._delegation=tt}static fromDelegation(et,tt){return new this(et,tt)}getDelegation(){return this._delegation}getPublicKey(){return{toDer:()=>this._delegation.publicKey}}sign(et){return this._inner.sign(et)}async transformRequest(et){const{body:tt}=et,rt=__rest$1(et,["body"]),nt=await requestIdOf$1(tt);return Object.assign(Object.assign({},rt),{body:{content:tt,sender_sig:await this.sign(new Uint8Array([...requestDomainSeparator,...new Uint8Array(nt)])),sender_delegation:this._delegation.delegations,sender_pubkey:this._delegation.publicKey}})}}function isDelegationValid$1($,et){for(const{delegation:nt}of $.delegations)if(+new Date(Number(nt.expiration/BigInt(1e6)))<=+Date.now())return!1;const tt=[],rt=et==null?void 0:et.scope;rt&&(Array.isArray(rt)?tt.push(...rt.map(nt=>typeof nt=="string"?Principal$3.fromText(nt):nt)):tt.push(typeof rt=="string"?Principal$3.fromText(rt):rt));for(const nt of tt){const it=nt.toText();for(const{delegation:At}of $.delegations){if(At.targets===void 0)continue;let at=!0;for(const ot of At.targets)if(ot.toText()===it){at=!1;break}if(at)return!1}}return!0}var PubKeyCoseAlgo$1;(function($){$[$.ECDSA_WITH_SHA256=-7]="ECDSA_WITH_SHA256"})(PubKeyCoseAlgo$1||(PubKeyCoseAlgo$1={}));const requestDelegation=async($,{canisterId:et,date:tt})=>{const rt=Ed25519KeyIdentity.generate(),nt=await DelegationChain$1.create($,rt.getPublicKey(),tt||new Date(Date.parse("2100-01-01")),{targets:et!=null?[Principal$3.fromText(et)]:void 0});return DelegationIdentity.fromDelegation(rt,nt)};async function _createActor($,et,tt,rt){var At,at;const nt=new HttpAgent$1({identity:tt,host:rt});return process&&(((At=process.env)==null?void 0:At.NODE_ENV)==="development"||((at=process.env)==null?void 0:at.II_ENV)==="development")&&await nt.fetchRootKey(),{actor:Actor$1.createActor($,{agent:nt,canisterId:et}),agent:nt}}class BaseConnection{constructor(et,tt,rt,nt,it,At){Zr(this,"identity");Zr(this,"delegationIdentity");Zr(this,"canisterId");Zr(this,"interfaceFactory");Zr(this,"actor");Zr(this,"agent");this.identity=et,this.delegationIdentity=tt,this.canisterId=rt,this.interfaceFactory=nt,this.actor=it,this.agent=At}async getActor(){throw new Error("Method not implemented.")}async _getActor(et,tt,rt){if(this.delegationIdentity){for(const{delegation:nt}of this.delegationIdentity.getDelegation().delegations)if(+new Date(Number(nt.expiration/BigInt(1e6)))<=+Date.now()){this.actor=void 0;break}}return this.actor===void 0&&(this.delegationIdentity=await requestDelegation(this.identity,{canisterId:this.canisterId??et,date:rt??void 0}),this.actor=(await _createActor(tt,this.canisterId??et,this.delegationIdentity)).actor),this.actor}}const executeWithLogging=async $=>{try{return await $()}catch(et){throw console.log(et),et}},ledger_idl=({IDL:$})=>{const et=$.Text,tt=$.Record({secs:$.Nat64,nanos:$.Nat32}),rt=$.Record({max_message_size_bytes:$.Opt($.Nat32),node_max_memory_size_bytes:$.Opt($.Nat32),controller_id:$.Principal}),nt=$.Record({e8s:$.Nat64});$.Record({send_whitelist:$.Vec($.Tuple($.Principal)),minting_account:et,transaction_window:$.Opt(tt),max_message_size_bytes:$.Opt($.Nat32),archive_options:$.Opt(rt),initial_values:$.Vec($.Tuple(et,nt))});const it=$.Record({account:et}),At=$.Principal,at=$.Tuple($.Text,$.Text),ot=$.Record({url:$.Text,method:$.Text,body:$.Vec($.Nat8),headers:$.Vec(at)}),st=$.Record({body:$.Vec($.Nat8),headers:$.Vec(at),status_code:$.Nat16}),ct=$.Vec($.Nat8),ut=$.Nat64,gt=$.Record({to_subaccount:$.Opt(ct),from_subaccount:$.Opt(ct),to_canister:$.Principal,max_fee:nt,block_height:ut}),dt=$.Nat64,ht=$.Record({timestamp_nanos:$.Nat64}),Et=$.Record({to:et,fee:nt,memo:dt,from_subaccount:$.Opt(ct),created_at_time:$.Opt(ht),amount:nt});return $.Service({account_balance_dfx:$.Func([it],[nt],["query"]),get_nodes:$.Func([],[$.Vec(At)],["query"]),http_request:$.Func([ot],[st],["query"]),notify_dfx:$.Func([gt],[],[]),send_dfx:$.Func([Et],[ut],[])})},LEDGER_CANISTER_ID="ryjl3-tyaaa-aaaaa-aaaba-cai";BigInt(1095062083);BigInt(1347768404);BigInt(1e4);class LedgerConnection extends BaseConnection{constructor(tt,rt,nt,it,At){super(tt,rt,At??LEDGER_CANISTER_ID,ledger_idl,nt,it);Zr(this,"identity");Zr(this,"delegationIdentity");Zr(this,"actor");Zr(this,"agent");this.identity=tt,this.delegationIdentity=rt,this.actor=nt,this.agent=it}static createConnection(tt,rt,nt,it,At){return new LedgerConnection(tt,rt,it,At,nt??LEDGER_CANISTER_ID)}static async createActor(tt,rt,nt){return await _createActor(ledger_idl,rt??LEDGER_CANISTER_ID,tt,nt)}static async createConnectionWithII(tt,rt,nt){const it=await LedgerConnection.createActor(rt);return LedgerConnection.createConnection(tt,rt,nt??LEDGER_CANISTER_ID,it.actor,it.agent)}static async actorGetBalance(tt,rt){return(await executeWithLogging(()=>tt.account_balance_dfx({account:rt}))).e8s}static async actorSend(tt,{to:rt,amount:nt,sendOpts:it}){return await executeWithLogging(()=>{var gt;const at=BigInt(1e4),ot=BigInt(Math.floor(Math.random()*1e4)),st=(it==null?void 0:it.from_subaccount)===void 0?[]:Array.from([it==null?void 0:it.from_subaccount]),ct=(it==null?void 0:it.created_at_time)===void 0?[]:Array.from([{timestamp_nanos:BigInt((gt=it==null?void 0:it.created_at_time)==null?void 0:gt.getTime())}]),ut={to:rt,fee:{e8s:(it==null?void 0:it.fee)??at},amount:{e8s:nt},memo:(it==null?void 0:it.memo)??ot,from_subaccount:st,created_at_time:ct};return tt.send_dfx(ut)})}async getLedgerActor(tt){return await this._getActor(tt??LEDGER_CANISTER_ID,ledger_idl)}async getBalance(tt){const rt=await this.getLedgerActor();return(await executeWithLogging(()=>rt.account_balance_dfx({account:tt}))).e8s}async send({to:tt,amount:rt,sendOpts:nt}){const it=await this.getLedgerActor();return await executeWithLogging(()=>{var gt;const at=BigInt(1e4),ot=BigInt(Math.floor(Math.random()*1e4)),st=(nt==null?void 0:nt.from_subaccount)===void 0?[]:Array.from([nt==null?void 0:nt.from_subaccount]),ct=(nt==null?void 0:nt.created_at_time)===void 0?[]:Array.from([{timestamp_nanos:BigInt((gt=nt==null?void 0:nt.created_at_time)==null?void 0:gt.getTime())}]),ut={to:tt,fee:{e8s:(nt==null?void 0:nt.fee)??at},amount:{e8s:rt},memo:(nt==null?void 0:nt.memo)??ot,from_subaccount:st,created_at_time:ct};return it.send_dfx(ut)})}}var WalletType;(function($){$.nns="nns",$.plug="plug",$.stoic="stoic",$.me="me",$.unknown="unknown"})(WalletType||(WalletType={}));var buffer={};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function($){var et=base64Js,tt=ieee754$1,rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=at,$.SlowBuffer=pt,$.INSPECT_MAX_BYTES=50;var nt=2147483647;$.kMaxLength=nt,at.TYPED_ARRAY_SUPPORT=it(),!at.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function it(){try{var It=new Uint8Array(1),lt={foo:function(){return 42}};return Object.setPrototypeOf(lt,Uint8Array.prototype),Object.setPrototypeOf(It,lt),It.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function At(It){if(It>nt)throw new RangeError('The value "'+It+'" is invalid for option "size"');var lt=new Uint8Array(It);return Object.setPrototypeOf(lt,at.prototype),lt}function at(It,lt,ft){if(typeof It=="number"){if(typeof lt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(It)}return ot(It,lt,ft)}at.poolSize=8192;function ot(It,lt,ft){if(typeof It=="string")return gt(It,lt);if(ArrayBuffer.isView(It))return ht(It);if(It==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It);if(sr(It,ArrayBuffer)||It&&sr(It.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sr(It,SharedArrayBuffer)||It&&sr(It.buffer,SharedArrayBuffer)))return Et(It,lt,ft);if(typeof It=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xt=It.valueOf&&It.valueOf();if(xt!=null&&xt!==It)return at.from(xt,lt,ft);var _t=wt(It);if(_t)return _t;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof It[Symbol.toPrimitive]=="function")return at.from(It[Symbol.toPrimitive]("string"),lt,ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It)}at.from=function(It,lt,ft){return ot(It,lt,ft)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(It){if(typeof It!="number")throw new TypeError('"size" argument must be of type number');if(It<0)throw new RangeError('The value "'+It+'" is invalid for option "size"')}function ct(It,lt,ft){return st(It),It<=0?At(It):lt!==void 0?typeof ft=="string"?At(It).fill(lt,ft):At(It).fill(lt):At(It)}at.alloc=function(It,lt,ft){return ct(It,lt,ft)};function ut(It){return st(It),At(It<0?0:Qt(It)|0)}at.allocUnsafe=function(It){return ut(It)},at.allocUnsafeSlow=function(It){return ut(It)};function gt(It,lt){if((typeof lt!="string"||lt==="")&&(lt="utf8"),!at.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);var ft=mt(It,lt)|0,xt=At(ft),_t=xt.write(It,lt);return _t!==ft&&(xt=xt.slice(0,_t)),xt}function dt(It){for(var lt=It.length<0?0:Qt(It.length)|0,ft=At(lt),xt=0;xt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return It|0}function pt(It){return+It!=It&&(It=0),at.alloc(+It)}at.isBuffer=function(lt){return lt!=null&<._isBuffer===!0&<!==at.prototype},at.compare=function(lt,ft){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),sr(ft,Uint8Array)&&(ft=at.from(ft,ft.offset,ft.byteLength)),!at.isBuffer(lt)||!at.isBuffer(ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(lt===ft)return 0;for(var xt=lt.length,_t=ft.length,Lt=0,er=Math.min(xt,_t);Lt_t.length?at.from(er).copy(_t,Lt):Uint8Array.prototype.set.call(_t,er,Lt);else if(at.isBuffer(er))er.copy(_t,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=er.length}return _t};function mt(It,lt){if(at.isBuffer(It))return It.length;if(ArrayBuffer.isView(It)||sr(It,ArrayBuffer))return It.byteLength;if(typeof It!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof It);var ft=It.length,xt=arguments.length>2&&arguments[2]===!0;if(!xt&&ft===0)return 0;for(var _t=!1;;)switch(lt){case"ascii":case"latin1":case"binary":return ft;case"utf8":case"utf-8":return yr(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft*2;case"hex":return ft>>>1;case"base64":return Zt(It).length;default:if(_t)return xt?-1:yr(It).length;lt=(""+lt).toLowerCase(),_t=!0}}at.byteLength=mt;function $t(It,lt,ft){var xt=!1;if((lt===void 0||lt<0)&&(lt=0),lt>this.length||((ft===void 0||ft>this.length)&&(ft=this.length),ft<=0)||(ft>>>=0,lt>>>=0,ft<=lt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ot(this,lt,ft);case"utf8":case"utf-8":return Nt(this,lt,ft);case"ascii":return nr(this,lt,ft);case"latin1":case"binary":return Xt(this,lt,ft);case"base64":return vt(this,lt,ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,lt,ft);default:if(xt)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),xt=!0}}at.prototype._isBuffer=!0;function Tt(It,lt,ft){var xt=It[lt];It[lt]=It[ft],It[ft]=xt}at.prototype.swap16=function(){var lt=this.length;if(lt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ft=0;ftft&&(lt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(lt,ft,xt,_t,Lt){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),!at.isBuffer(lt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof lt);if(ft===void 0&&(ft=0),xt===void 0&&(xt=lt?lt.length:0),_t===void 0&&(_t=0),Lt===void 0&&(Lt=this.length),ft<0||xt>lt.length||_t<0||Lt>this.length)throw new RangeError("out of range index");if(_t>=Lt&&ft>=xt)return 0;if(_t>=Lt)return-1;if(ft>=xt)return 1;if(ft>>>=0,xt>>>=0,_t>>>=0,Lt>>>=0,this===lt)return 0;for(var er=Lt-_t,Er=xt-ft,mr=Math.min(er,Er),wr=this.slice(_t,Lt),Yr=lt.slice(ft,xt),Ft=0;Ft2147483647?ft=2147483647:ft<-2147483648&&(ft=-2147483648),ft=+ft,ur(ft)&&(ft=_t?0:It.length-1),ft<0&&(ft=It.length+ft),ft>=It.length){if(_t)return-1;ft=It.length-1}else if(ft<0)if(_t)ft=0;else return-1;if(typeof lt=="string"&&(lt=at.from(lt,xt)),at.isBuffer(lt))return lt.length===0?-1:Pt(It,lt,ft,xt,_t);if(typeof lt=="number")return lt=lt&255,typeof Uint8Array.prototype.indexOf=="function"?_t?Uint8Array.prototype.indexOf.call(It,lt,ft):Uint8Array.prototype.lastIndexOf.call(It,lt,ft):Pt(It,[lt],ft,xt,_t);throw new TypeError("val must be string, number or Buffer")}function Pt(It,lt,ft,xt,_t){var Lt=1,er=It.length,Er=lt.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(It.length<2||lt.length<2)return-1;Lt=2,er/=2,Er/=2,ft/=2}function mr(St,Wt){return Lt===1?St[Wt]:St.readUInt16BE(Wt*Lt)}var wr;if(_t){var Yr=-1;for(wr=ft;wrer&&(ft=er-Er),wr=ft;wr>=0;wr--){for(var Ft=!0,yt=0;yt_t&&(xt=_t)):xt=_t;var Lt=lt.length;xt>Lt/2&&(xt=Lt/2);for(var er=0;er>>0,isFinite(xt)?(xt=xt>>>0,_t===void 0&&(_t="utf8")):(_t=xt,xt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-ft;if((xt===void 0||xt>Lt)&&(xt=Lt),lt.length>0&&(xt<0||ft<0)||ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");_t||(_t="utf8");for(var er=!1;;)switch(_t){case"hex":return Kt(this,lt,ft,xt);case"utf8":case"utf-8":return zt(this,lt,ft,xt);case"ascii":case"latin1":case"binary":return Yt(this,lt,ft,xt);case"base64":return Mt(this,lt,ft,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,lt,ft,xt);default:if(er)throw new TypeError("Unknown encoding: "+_t);_t=(""+_t).toLowerCase(),er=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(It,lt,ft){return lt===0&&ft===It.length?et.fromByteArray(It):et.fromByteArray(It.slice(lt,ft))}function Nt(It,lt,ft){ft=Math.min(It.length,ft);for(var xt=[],_t=lt;_t239?4:Lt>223?3:Lt>191?2:1;if(_t+Er<=ft){var mr,wr,Yr,Ft;switch(Er){case 1:Lt<128&&(er=Lt);break;case 2:mr=It[_t+1],(mr&192)===128&&(Ft=(Lt&31)<<6|mr&63,Ft>127&&(er=Ft));break;case 3:mr=It[_t+1],wr=It[_t+2],(mr&192)===128&&(wr&192)===128&&(Ft=(Lt&15)<<12|(mr&63)<<6|wr&63,Ft>2047&&(Ft<55296||Ft>57343)&&(er=Ft));break;case 4:mr=It[_t+1],wr=It[_t+2],Yr=It[_t+3],(mr&192)===128&&(wr&192)===128&&(Yr&192)===128&&(Ft=(Lt&15)<<18|(mr&63)<<12|(wr&63)<<6|Yr&63,Ft>65535&&Ft<1114112&&(er=Ft))}}er===null?(er=65533,Er=1):er>65535&&(er-=65536,xt.push(er>>>10&1023|55296),er=56320|er&1023),xt.push(er),_t+=Er}return Jt(xt)}var Gt=4096;function Jt(It){var lt=It.length;if(lt<=Gt)return String.fromCharCode.apply(String,It);for(var ft="",xt=0;xtxt)&&(ft=xt);for(var _t="",Lt=lt;Ltxt&&(lt=xt),ft<0?(ft+=xt,ft<0&&(ft=0)):ft>xt&&(ft=xt),ftft)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,er=0;++er>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt+--ft],Lt=1;ft>0&&(Lt*=256);)_t+=this[lt+--ft]*Lt;return _t},at.prototype.readUint8=at.prototype.readUInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]|this[lt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]<<8|this[lt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),(this[lt]|this[lt+1]<<8|this[lt+2]<<16)+this[lt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]*16777216+(this[lt+1]<<16|this[lt+2]<<8|this[lt+3])},at.prototype.readIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,er=0;++er=Lt&&(_t-=Math.pow(2,8*ft)),_t},at.prototype.readIntBE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=ft,Lt=1,er=this[lt+--_t];_t>0&&(Lt*=256);)er+=this[lt+--_t]*Lt;return Lt*=128,er>=Lt&&(er-=Math.pow(2,8*ft)),er},at.prototype.readInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]&128?(255-this[lt]+1)*-1:this[lt]},at.prototype.readInt16LE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt]|this[lt+1]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt16BE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt+1]|this[lt]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]|this[lt+1]<<8|this[lt+2]<<16|this[lt+3]<<24},at.prototype.readInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]<<24|this[lt+1]<<16|this[lt+2]<<8|this[lt+3]},at.prototype.readFloatLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!0,23,4)},at.prototype.readFloatBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!1,23,4)},at.prototype.readDoubleLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!0,52,8)},at.prototype.readDoubleBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!1,52,8)};function Ar(It,lt,ft,xt,_t,Lt){if(!at.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(lt>_t||ltIt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var er=1,Er=0;for(this[ft]=lt&255;++Er>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var er=xt-1,Er=1;for(this[ft+er]=lt&255;--er>=0&&(Er*=256);)this[ft+er]=lt/Er&255;return ft+xt},at.prototype.writeUint8=at.prototype.writeUInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,255,0),this[ft]=lt&255,ft+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft+3]=lt>>>24,this[ft+2]=lt>>>16,this[ft+1]=lt>>>8,this[ft]=lt&255,ft+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4},at.prototype.writeIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var er=0,Er=1,mr=0;for(this[ft]=lt&255;++er>0)-mr&255;return ft+xt},at.prototype.writeIntBE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var er=xt-1,Er=1,mr=0;for(this[ft+er]=lt&255;--er>=0&&(Er*=256);)lt<0&&mr===0&&this[ft+er+1]!==0&&(mr=1),this[ft+er]=(lt/Er>>0)-mr&255;return ft+xt},at.prototype.writeInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,127,-128),lt<0&&(lt=255+lt+1),this[ft]=lt&255,ft+1},at.prototype.writeInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),this[ft]=lt&255,this[ft+1]=lt>>>8,this[ft+2]=lt>>>16,this[ft+3]=lt>>>24,ft+4},at.prototype.writeInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),lt<0&&(lt=4294967295+lt+1),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4};function cr(It,lt,ft,xt,_t,Lt){if(ft+xt>It.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("Index out of range")}function Rt(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,4),tt.write(It,lt,ft,xt,23,4),ft+4}at.prototype.writeFloatLE=function(lt,ft,xt){return Rt(this,lt,ft,!0,xt)},at.prototype.writeFloatBE=function(lt,ft,xt){return Rt(this,lt,ft,!1,xt)};function Qr(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,8),tt.write(It,lt,ft,xt,52,8),ft+8}at.prototype.writeDoubleLE=function(lt,ft,xt){return Qr(this,lt,ft,!0,xt)},at.prototype.writeDoubleBE=function(lt,ft,xt){return Qr(this,lt,ft,!1,xt)},at.prototype.copy=function(lt,ft,xt,_t){if(!at.isBuffer(lt))throw new TypeError("argument should be a Buffer");if(xt||(xt=0),!_t&&_t!==0&&(_t=this.length),ft>=lt.length&&(ft=lt.length),ft||(ft=0),_t>0&&_t=this.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("sourceEnd out of bounds");_t>this.length&&(_t=this.length),lt.length-ft<_t-xt&&(_t=lt.length-ft+xt);var Lt=_t-xt;return this===lt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ft,xt,_t):Uint8Array.prototype.set.call(lt,this.subarray(xt,_t),ft),Lt},at.prototype.fill=function(lt,ft,xt,_t){if(typeof lt=="string"){if(typeof ft=="string"?(_t=ft,ft=0,xt=this.length):typeof xt=="string"&&(_t=xt,xt=this.length),_t!==void 0&&typeof _t!="string")throw new TypeError("encoding must be a string");if(typeof _t=="string"&&!at.isEncoding(_t))throw new TypeError("Unknown encoding: "+_t);if(lt.length===1){var Lt=lt.charCodeAt(0);(_t==="utf8"&&Lt<128||_t==="latin1")&&(lt=Lt)}}else typeof lt=="number"?lt=lt&255:typeof lt=="boolean"&&(lt=Number(lt));if(ft<0||this.length>>0,xt=xt===void 0?this.length:xt>>>0,lt||(lt=0);var er;if(typeof lt=="number")for(er=ft;er55295&&ft<57344){if(!_t){if(ft>56319){(lt-=3)>-1&&Lt.push(239,191,189);continue}else if(er+1===xt){(lt-=3)>-1&&Lt.push(239,191,189);continue}_t=ft;continue}if(ft<56320){(lt-=3)>-1&&Lt.push(239,191,189),_t=ft;continue}ft=(_t-55296<<10|ft-56320)+65536}else _t&&(lt-=3)>-1&&Lt.push(239,191,189);if(_t=null,ft<128){if((lt-=1)<0)break;Lt.push(ft)}else if(ft<2048){if((lt-=2)<0)break;Lt.push(ft>>6|192,ft&63|128)}else if(ft<65536){if((lt-=3)<0)break;Lt.push(ft>>12|224,ft>>6&63|128,ft&63|128)}else if(ft<1114112){if((lt-=4)<0)break;Lt.push(ft>>18|240,ft>>12&63|128,ft>>6&63|128,ft&63|128)}else throw new Error("Invalid code point")}return Lt}function kr(It){for(var lt=[],ft=0;ft>8,_t=ft%256,Lt.push(_t),Lt.push(xt);return Lt}function Zt(It){return et.toByteArray(qr(It))}function rr(It,lt,ft,xt){for(var _t=0;_t=lt.length||_t>=It.length);++_t)lt[_t+ft]=It[_t];return _t}function sr(It,lt){return It instanceof lt||It!=null&&It.constructor!=null&&It.constructor.name!=null&&It.constructor.name===lt.name}function ur(It){return It!==It}var fr=function(){for(var It="0123456789abcdef",lt=new Array(256),ft=0;ft<16;++ft)for(var xt=ft*16,_t=0;_t<16;++_t)lt[xt+_t]=It[ft]+It[_t];return lt}()})(buffer);const createBuffer=buffer.Buffer.from&&buffer.Buffer.alloc&&buffer.Buffer.allocUnsafe&&buffer.Buffer.allocUnsafeSlow?buffer.Buffer.from:$=>new buffer.Buffer($);function defineCrc($,et){const tt=(rt,nt)=>et(rt,nt)>>>0;return tt.signed=et,tt.unsigned=tt,tt.model=$,tt}defineCrc("crc1",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et,rt=0;for(let nt=0;nt<$.length;nt++){const it=$[nt];rt+=it}return tt+=rt%256,tt%256});let TABLE$8=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(TABLE$8=new Int32Array(TABLE$8));defineCrc("crc-8",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$8[(tt^nt)&255]&255}return tt});let TABLE$7=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array<"u"&&(TABLE$7=new Int32Array(TABLE$7));defineCrc("dallas-1-wire",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$7[(tt^nt)&255]&255}return tt});let TABLE$6=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(TABLE$6=new Int32Array(TABLE$6));defineCrc("crc-16",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$6[(tt^nt)&255]^tt>>8)&65535}return tt});let TABLE$5=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array<"u"&&(TABLE$5=new Int32Array(TABLE$5));defineCrc("ccitt",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:65535;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$5[(tt>>8^nt)&255]^tt<<8)&65535}return tt});let TABLE$4=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(TABLE$4=new Int32Array(TABLE$4));defineCrc("crc-16-modbus",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:65535;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$4[(tt^nt)&255]^tt>>8)&65535}return tt});defineCrc("xmodem",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:0;for(let rt=0;rt<$.length;rt++){const nt=$[rt];let it=tt>>>8&255;it^=nt&255,it^=it>>>4,tt=tt<<8&65535,tt^=it,it=it<<5&65535,tt^=it,it=it<<7&65535,tt^=it}return tt});let TABLE$3=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array<"u"&&(TABLE$3=new Int32Array(TABLE$3));defineCrc("kermit",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:0;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$3[(tt^nt)&255]^tt>>8)&65535}return tt});let TABLE$2=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array<"u"&&(TABLE$2=new Int32Array(TABLE$2));defineCrc("crc-24",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:11994318;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$2[(tt>>16^nt)&255]^tt<<8)&16777215}return tt});let TABLE$1=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(TABLE$1=new Int32Array(TABLE$1));defineCrc("crc-32",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=et===0?0:~~et^-1;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$1[(tt^nt)&255]^tt>>>8}return tt^-1});let TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(TABLE=new Int32Array(TABLE));defineCrc("jam",function($,et=-1){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=et===0?0:~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE[(tt^nt)&255]^tt>>>8}return tt});BigInt(1)<"u"?typeof global>"u"?typeof self>"u"?void 0:self.localStorage:global.localStorage:window.localStorage;if(!et)throw new Error("Could not find local storage.");return et}};class AuthClient{constructor(et,tt,rt,nt,it,At,at,ot=[],st,ct,ut,gt,dt){Zr(this,"_identity");Zr(this,"_key");Zr(this,"_chain");Zr(this,"_storage");Zr(this,"_wallet");Zr(this,"_appId");Zr(this,"_delegationIdentity");Zr(this,"_delegationTargets");Zr(this,"_lastRequest");Zr(this,"_confirm");Zr(this,"_idpWindowOption");Zr(this,"_idpWindow");Zr(this,"_eventHandler");this._identity=et,this._key=tt,this._chain=rt,this._storage=nt,this._wallet=it,this._appId=At,this._delegationIdentity=at,this._delegationTargets=ot,this._lastRequest=st,this._confirm=ct,this._idpWindowOption=ut,this._idpWindow=gt,this._eventHandler=dt}static async create(et={appId:""}){const tt=et.storage??new ICStorage$1("astrox-");let rt=null;if(et.identity)rt=et.identity;else{const ht=await tt.get(KEY_ICSTORAGE_KEY);if(ht)try{rt=Ed25519KeyIdentity.fromJSON(ht)}catch{}}let nt=new AnonymousIdentity$1,it=null,At,at=[],ot,st=!0,ct;if(rt)try{const ht=await tt.get(KEY_ICSTORAGE_DELEGATION);let Et=await tt.get(KEY_ICSTORAGE_WALLET$1);Et&&(At=JSON.parse(Et)),ht&&(it=DelegationChain$1.fromJSON(ht),it.delegations.forEach(wt=>{const Qt=wt.delegation.targets&&wt.delegation.targets.length>0?wt.delegation.targets:void 0;Qt&&(at=[...new Set(at.concat(Qt.map(pt=>pt.toText())))])}),isDelegationValid$1(it)?nt=DelegationIdentity.fromDelegation(rt,it):(await _deleteStorage(tt),rt=null))}catch(ht){console.error(ht),await _deleteStorage(tt),rt=null}let ut;const gt=await tt.get(KEY_DELEGATION_PARAMS);return gt&&(ut=JSON.parse(gt),ot={...ut.lastRequest,maxTimeToLive:ut.lastRequest.maxTimeToLive!==void 0?BigInt(ut.lastRequest.maxTimeToLive):void 0},st=ut.confirm,ct=DelegationIdentity.fromDelegation(rt,it)),new this(nt,rt,it,tt,At,et.appId,ct,at,ot,st,et.idpWindowOption)}async _handleSuccess(et,tt){var nt;if(et.identity!==void 0){const it=et.identity.delegations.map(at=>{var st;const ot=at.delegation.targets&&at.delegation.targets.length>0?(st=at.delegation.targets)==null?void 0:st.map(ct=>Principal$3.fromText(ct)):void 0;return ot&&(this._delegationTargets=[...new Set(this._delegationTargets.concat(ot.map(ct=>ct.toText())))]),{delegation:new Delegation$1(at.delegation.pubkey.buffer,at.delegation.expiration,ot),signature:at.signature.buffer}}),At=DelegationChain$1.fromDelegations(it,et.identity.userPublicKey.buffer);this._chain=At,this._wallet=et.wallet,this._confirm=et.confirm}else{const it=et.delegations.map(at=>{var st;const ot=at.delegation.targets&&at.delegation.targets.length>0?(st=at.delegation.targets)==null?void 0:st.map(ct=>Principal$3.fromText(ct)):void 0;return ot&&(this._delegationTargets=[...new Set(this._delegationTargets.concat(ot.map(ct=>ct.toText())))]),{delegation:new Delegation$1(at.delegation.pubkey.buffer,at.delegation.expiration,ot),signature:at.signature.buffer}}),At=DelegationChain$1.fromDelegations(it,et.userPublicKey.buffer);this._chain=At}const rt=this._key;return rt?(this._delegationIdentity=DelegationIdentity.fromDelegation(rt,this._chain),this._identity=this._delegationIdentity,(nt=this._idpWindow)==null||nt.close(),await(tt==null?void 0:tt()),this._removeEventListener(),this):this}getIdentity(){return this._identity}getLastRequest(){return this._lastRequest}getDelegationIdentity(){return this._delegationIdentity}getInnerKey(){return this._key}getDelegationChain(){return this._chain}get wallet(){return this._wallet}getConfirm(){return this._confirm}setWallet(et){this._wallet=et}getDelegateTargets(){return this._delegationTargets}setDelegationTargets(et){this._delegationTargets=[...new Set(this._delegationTargets.concat(et))]}async isAuthenticated(){return!this.getIdentity().getPrincipal().isAnonymous()&&this._chain!==null}async login(et){var nt,it;let tt=this._key;tt||(tt=Ed25519KeyIdentity.generate(),this._key=tt,await this._storage.set(KEY_ICSTORAGE_KEY,JSON.stringify(tt)));const rt=new URL(((nt=et==null?void 0:et.identityProvider)==null?void 0:nt.toString())||IDENTITY_PROVIDER_DEFAULT);return rt.hash=IDENTITY_PROVIDER_ENDPOINT,(it=this._idpWindow)==null||it.close(),this._removeEventListener(),this._idpWindow=window.open(rt.toString(),"idpWindow",this._idpWindowOption)??void 0,new Promise((At,at)=>{this._eventHandler=this._getEventHandler(rt,At,at,et),window.addEventListener("message",this._eventHandler)})}_getEventHandler(et,tt,rt,nt){return async it=>{var at,ot,st,ct;if(it.origin!==et.origin)return;const At=it.data;switch(At.kind){case"authorize-ready":{const ut=(nt==null?void 0:nt.authType)==="authorize-append"&&this._lastRequest?{...this._lastRequest,delegationTargets:(nt==null?void 0:nt.delegationTargets)??[],sessionPublicKey:new Uint8Array((at=this._key)==null?void 0:at.getPublicKey().toDer()),kind:"authorize-append"}:{kind:"authorize-client",sessionPublicKey:new Uint8Array((ot=this._key)==null?void 0:ot.getPublicKey().toDer()),maxTimeToLive:nt==null?void 0:nt.maxTimeToLive,permissions:(nt==null?void 0:nt.permissions)??[PermissionsType.identity],delegationTargets:(nt==null?void 0:nt.delegationTargets)??[],delegationModes:nt==null?void 0:nt.delegationModes,appId:this._appId,noUnify:nt==null?void 0:nt.noUnify,host:(nt==null?void 0:nt.customDomain)||(nt==null?void 0:nt.host)};this._lastRequest=ut,(st=this._idpWindow)==null||st.postMessage(ut,et.origin);break}case"authorize-client-success":try{if(tt(await this._handleSuccess(At,nt==null?void 0:nt.onSuccess)),this._chain&&await this._storage.set(KEY_ICSTORAGE_DELEGATION,JSON.stringify(this._chain.toJSON())),this._wallet!==void 0&&await this._storage.set(KEY_ICSTORAGE_WALLET$1,JSON.stringify(this._wallet)),this._lastRequest!==void 0){const ut={lastRequest:{...this._lastRequest,maxTimeToLive:(ct=this._lastRequest.maxTimeToLive)==null?void 0:ct.toString()},confirm:this._confirm};await this._storage.set(KEY_DELEGATION_PARAMS,JSON.stringify(ut))}}catch(ut){rt(this._handleFailure(ut.message,nt==null?void 0:nt.onError))}break;case"authorize-client-failure":rt(this._handleFailure(At.text,nt==null?void 0:nt.onError));break}}}_handleFailure(et,tt){var rt;return(rt=this._idpWindow)==null||rt.close(),tt==null||tt(et),this._removeEventListener(),et}_removeEventListener(){this._eventHandler&&window.removeEventListener("message",this._eventHandler),this._eventHandler=void 0}async logout(et={}){if(_deleteStorage(this._storage),this._identity=new AnonymousIdentity$1,this._key=null,this._chain=null,this._delegationTargets=[],this._wallet=void 0,this._delegationIdentity=void 0,this._lastRequest=void 0,this._confirm=void 0,et.returnTo)try{window.history.pushState({},"",et.returnTo)}catch{window.location.href=et.returnTo}}}class ICWindow{constructor(){Zr(this,"_window");Zr(this,"_eventHandler")}_removeEventListener(){this._eventHandler&&window.removeEventListener("message",this._eventHandler),this._eventHandler=void 0}_openWindow(et,tt,rt){this._remove(),this._window=window.open(et,tt??"icWindow",rt)??void 0}_remove(){var et;(et=this._window)==null||et.close(),this._removeEventListener()}}const days=BigInt(1),hours=BigInt(24),nanoseconds=BigInt(36e11),WALLET_PROVIDER_DEFAULT="https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",WALLET_PROVIDER_ENDPOINT="#transaction",SIGNER_PROVIDER_DEFAULT="https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",SIGNER_PROVIDER_ENDPOINT="#signer";function targetsFilter($){return $.filter(et=>typeof et=="string"&&et.trim())}const FRAME_SETTING="height=600, width=800, top=0, right=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no",FRAME_SETTING_PAYMENT="height=600, width=480, top=0, right=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";var nA,tA,oA,sA,cA,lA,AA,Xn;const $A=class $A extends ICWindow{constructor(tt,rt){super();iA(this,nA,void 0);iA(this,tA,void 0);iA(this,oA,void 0);iA(this,sA,void 0);iA(this,cA,void 0);iA(this,lA,!1);iA(this,AA,void 0);iA(this,Xn,void 0);Zr(this,"disconnect",async(tt={})=>{Wn(this,tA,void 0),Wn(this,oA,void 0),Wn(this,sA,void 0),Wn(this,cA,void 0),Wn(this,AA,void 0),Wn(this,Xn,void 0),await this.getAuthClient().logout(tt)});Zr(this,"queryBalance",async()=>{var rt;if(this.wallet===void 0)throw Error("Wallet address is not found");if(kn(this,oA)===void 0)throw Error("Ledger connection failed");return await((rt=kn(this,oA))==null?void 0:rt.getBalance(this.wallet.accountId))});Zr(this,"handleAuthenticated",async({ledgerCanisterId:tt,ledgerHost:rt})=>{const nt=await LedgerConnection.createActor(this.getAuthClient().getDelegationIdentity(),tt,rt);Wn(this,oA,LedgerConnection.createConnection(this.getAuthClient().getInnerKey(),this.getAuthClient().getDelegationIdentity(),tt,nt.actor,kn(this,tA)))});Zr(this,"createActor",async(tt,rt)=>{var nt,it;return kn(this,nA).getConfirm()===!0&&rt!==void 0&&rt!==""&&await this._appendAuth(rt),(nt=kn(this,Xn))!=null&&nt.dev&&await((it=kn(this,tA))==null?void 0:it.fetchRootKey()),Actor$1.createActor(tt,{agent:kn(this,tA),canisterId:rt})});Zr(this,"requestTransfer",async tt=>{var it,At;const rt=(it=tt.sendOpts)==null?void 0:it.memo;if(rt){const at=tt.standard.toUpperCase();if(at==="EXT"&&!Array.isArray(rt))throw new Error("`sendOpts.memo` only supports `Array` type when the standard is `EXT`");if(at==="ICP"&&typeof rt!="bigint")throw new Error("`sendOpts.memo` only supports `bigint` type when the standard is `ICP`")}console.assert(this.wallet!==void 0,"wallet address is not found");const nt=new URL(((At=tt==null?void 0:tt.walletProvider)==null?void 0:At.toString())||kn(this,sA)||WALLET_PROVIDER_DEFAULT);return nt.hash=WALLET_PROVIDER_ENDPOINT,this._openWindow(nt.toString(),"icWindow",kn(this,lA)?FRAME_SETTING_PAYMENT:void 0),new Promise((at,ot)=>{this._eventHandler=this._getEventHandler(nt,at,ot,tt),window.addEventListener("message",this._eventHandler)})});Zr(this,"signMessage",async tt=>{var nt;console.assert(this.wallet!==void 0,"wallet address is not found");const rt=new URL(((nt=tt==null?void 0:tt.signerProvider)==null?void 0:nt.toString())||kn(this,cA)||SIGNER_PROVIDER_DEFAULT);return rt.hash=SIGNER_PROVIDER_ENDPOINT,this._openWindow(rt.toString(),"icWindow",kn(this,lA)?FRAME_SETTING_PAYMENT:void 0),new Promise((it,At)=>{this._eventHandler=this._getSignerHandler(rt,it,At,tt),window.addEventListener("message",this._eventHandler)})});Wn(this,nA,tt),Wn(this,tA,rt),this.injectWindow()}static async create(tt){var st;let rt=["ryjl3-tyaaa-aaaaa-aaaba-cai"];tt&&(tt!=null&&tt.delegationTargets)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.delegationTargets))]),tt&&(tt!=null&&tt.ledgerCanisterId)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.ledgerCanisterId))]),tt&&(tt!=null&&tt.whitelist)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.whitelist))]),rt=targetsFilter([...new Set(rt)]);const nt=await AuthClient.create({...tt,delegationTargets:rt,idpWindowOption:tt.useFrame===!0?FRAME_SETTING:void 0}),it=nt.getIdentity(),At=new HttpAgent$1({identity:it,host:tt.host??window.location.origin});tt.dev&&await At.fetchRootKey();const at=new $A(nt,At);at._setWalletProvider(tt==null?void 0:tt.walletProviderUrl),at._setSignerProvider(tt==null?void 0:tt.signerProviderUrl),at._setUseFrame(tt==null?void 0:tt.useFrame),await at.isAuthenticated()&&(await at.handleAuthenticated({ledgerCanisterId:tt.ledgerCanisterId??"ryjl3-tyaaa-aaaaa-aaaba-cai",ledgerHost:tt.ledgerHost??"https://boundary.ic0.app/"}),await((st=tt==null?void 0:tt.onAuthenticated)==null?void 0:st.call(tt,at)));const ot=(tt==null?void 0:tt.identityProvider)??IDENTITY_PROVIDER_DEFAULT;return at._setConnectOptions({...tt,dev:tt.dev,delegationTargets:rt}),at._setLoginOptions({...tt,identityProvider:ot,maxTimeToLive:(tt==null?void 0:tt.maxTimeToLive)??days*hours*nanoseconds,permissions:(tt==null?void 0:tt.permissions)??[PermissionsType.identity],delegationTargets:rt}),at}async connect(tt){let rt=tt.delegationModes;if(rt&&rt.length){const At=["global","domain"];if(rt.some(ot=>!At.includes(ot)))throw new Error("`delegationModes` elements only support `global` and `private`");rt=[...new Set(rt)]}const nt=(tt==null?void 0:tt.identityProvider)??IDENTITY_PROVIDER_DEFAULT;let it=["ryjl3-tyaaa-aaaaa-aaaba-cai"];return tt&&(tt!=null&&tt.delegationTargets)&&(it=[...new Set(it.concat(tt==null?void 0:tt.delegationTargets))]),tt&&(tt!=null&&tt.ledgerCanisterId)&&(it=[...new Set(it.concat(tt==null?void 0:tt.ledgerCanisterId))]),tt&&(tt!=null&&tt.whitelist)&&(it=[...new Set(it.concat(tt==null?void 0:tt.whitelist))]),it=targetsFilter([...new Set(it)]),this._setConnectOptions({...tt,delegationTargets:it}),this._setLoginOptions({...tt,identityProvider:nt,maxTimeToLive:(tt==null?void 0:tt.maxTimeToLive)??days*hours*nanoseconds,permissions:(tt==null?void 0:tt.permissions)??[PermissionsType.identity],delegationTargets:it,delegationModes:rt}),await new Promise((At,at)=>{this.getAuthClient().login({...kn(this,AA),onSuccess:async()=>{var st,ct;const ot=this.getAuthClient().getIdentity();Wn(this,tA,new HttpAgent$1({identity:ot,host:tt.host??window.location.origin})),tt.dev&&await kn(this,tA).fetchRootKey(),await this.handleAuthenticated({ledgerCanisterId:tt.ledgerCanisterId,ledgerHost:tt.ledgerHost??"https://boundary.ic0.app/"}),tt!=null&&tt.onSuccess?await((st=tt==null?void 0:tt.onSuccess)==null?void 0:st.call(tt)):await((ct=tt==null?void 0:tt.onAuthenticated)==null?void 0:ct.call(tt,this)),At(this)},onError:this.handleError})}),this}async isAuthenticated(){return await kn(this,nA).isAuthenticated()}get identity(){return kn(this,nA).getIdentity()}get principal(){return this.identity.getPrincipal()}get wallet(){return kn(this,nA).wallet}get delegationTargets(){return kn(this,nA).getDelegateTargets()}_setWalletProvider(tt){Wn(this,sA,tt)}_setSignerProvider(tt){Wn(this,cA,tt)}_setUseFrame(tt){Wn(this,lA,tt)}_setConnectOptions(tt){Wn(this,Xn,tt)}_setLoginOptions(tt){Wn(this,AA,tt)}get loginOption(){return kn(this,AA)}get connectOptions(){return kn(this,Xn)}getAuthClient(){return kn(this,nA)}injectWindow(){window.ic!==void 0?window.ic.astrox=this:window.ic={astrox:this}}async _appendAuth(tt){const rt=targetsFilter(kn(this,nA).getDelegateTargets());if(rt.includes(tt))return this;{let nt=[...rt,tt];return nt=targetsFilter(nt),this._setConnectOptions({...kn(this,Xn),delegationTargets:nt}),this._setLoginOptions({...kn(this,AA),delegationTargets:nt}),await new Promise((it,At)=>{this.getAuthClient().login({...kn(this,AA),authType:"authorize-append",delegationTargets:nt,onSuccess:async()=>{var ot,st,ct,ut,gt,dt,ht,Et;const at=this.getAuthClient().getIdentity();Wn(this,tA,new HttpAgent$1({identity:at,host:kn(this,Xn)!==void 0?kn(this,Xn).host:window.location.origin})),(ot=kn(this,Xn))!=null&&ot.dev&&await kn(this,tA).fetchRootKey(),await this.handleAuthenticated({ledgerCanisterId:(st=kn(this,Xn))==null?void 0:st.ledgerCanisterId,ledgerHost:((ct=kn(this,Xn))==null?void 0:ct.ledgerHost)??"https://boundary.ic0.app/"}),await((ut=kn(this,Xn))==null?void 0:ut.onSuccess)?await((dt=(gt=kn(this,Xn))==null?void 0:gt.onSuccess)==null?void 0:dt.call(gt)):await((Et=(ht=kn(this,Xn))==null?void 0:ht.onAuthenticated)==null?void 0:Et.call(ht,this)),it(this)},onError:this.handleError})})}}handleError(tt){throw new Error(tt)}_getSignerHandler(tt,rt,nt,it){return async At=>{var ot;if(At.origin!==tt.origin)return;const at=At.data;switch(at.kind){case SignerMessageKind.ready:{const st={kind:SignerMessageKind.client,from:it.from??this.wallet.accountId,message:it.message,maxTimeout:it.maxTimeout??90,successTimeout:it.successTimeout??10};(ot=this._window)==null||ot.postMessage(st,tt.origin);break}case SignerMessageKind.success:try{rt(this._handleSuccess(at,it.onSuccess,it.successTimeout??10))}catch(st){nt(this._handleFailure(st.message,it.onError))}break;case SignerMessageKind.fail:nt(this._handleFailure(at.text,it.onError));break}}}_getEventHandler(tt,rt,nt,it){return async At=>{var ot;if(At.origin!==tt.origin)return;const at=At.data;switch(at.kind){case TransactionMessageKind$1.ready:{const st={kind:TransactionMessageKind$1.client,sendData:{...it}};(ot=this._window)==null||ot.postMessage(st,tt.origin);break}case TransactionMessageKind$1.success:try{rt(this._handleSuccess(at,it.onSuccess,it.successTimeout??10))}catch(st){nt(this._handleFailure(st.message,it.onError))}break;case TransactionMessageKind$1.fail:nt(this._handleFailure(at.text,it.onError));break}}}_handleFailure(tt,rt){return this._remove(),rt==null||rt(tt),tt}_handleSuccess(tt,rt,nt){return nt?setTimeout(()=>this._remove(),nt*1e3):this._remove(),rt==null||rt(tt),tt}};nA=new WeakMap,tA=new WeakMap,oA=new WeakMap,sA=new WeakMap,cA=new WeakMap,lA=new WeakMap,AA=new WeakMap,Xn=new WeakMap;let IC=$A;var ReplicaRejectCode;(function($){$[$.SysFatal=1]="SysFatal",$[$.SysTransient=2]="SysTransient",$[$.DestinationInvalid=3]="DestinationInvalid",$[$.CanisterReject=4]="CanisterReject",$[$.CanisterError=5]="CanisterError"})(ReplicaRejectCode||(ReplicaRejectCode={}));const alphabet="abcdefghijklmnopqrstuvwxyz234567",lookupTable=Object.create(null);for(let $=0;$>-et:tt=it<3?(et-=8,1):(et<4&&(rt+=alphabet[tt>>3],et+=5),0)}for(let it=0;it<$.length;)it+=nt($[it]);return rt+(et<0?alphabet[tt>>3]:"")}function decode$3($){let et=0,tt=0;const rt=new Uint8Array($.length*4/3|0);let nt=0;function it(At){let at=lookupTable[At.toLowerCase()];if(at===void 0)throw new Error(`Invalid character: ${JSON.stringify(At)}`);at<<=3,tt|=at>>>et,et+=5,et>=8&&(rt[nt++]=tt,et-=8,et>0?tt=at<<5-et&255:tt=0)}for(const At of $)it(At);return rt.slice(0,nt)}const lookUpTable=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function getCrc32($){const et=new Uint8Array($);let tt=-1;for(let rt=0;rt>>8}return(tt^-1)>>>0}function sha224($){return sha224$2.create().update(new Uint8Array($)).digest()}const JSON_KEY_PRINCIPAL="__principal__",SELF_AUTHENTICATING_SUFFIX=2,ANONYMOUS_SUFFIX=4,MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR="aaaaa-aa",fromHexString$2=$=>{var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16)))},toHexString$2=$=>$.reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"");let Principal$1=class _A{constructor(et){this._arr=et,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([ANONYMOUS_SUFFIX]))}static managementCanister(){return this.fromHex(MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR)}static selfAuthenticating(et){const tt=sha224(et);return new this(new Uint8Array([...tt,SELF_AUTHENTICATING_SUFFIX]))}static from(et){if(typeof et=="string")return _A.fromText(et);if(typeof et=="object"&&et!==null&&et._isPrincipal===!0)return new _A(et._arr);throw new Error(`Impossible to convert ${JSON.stringify(et)} to Principal.`)}static fromHex(et){return new this(fromHexString$2(et))}static fromText(et){let tt=et;if(et.includes(JSON_KEY_PRINCIPAL)){const At=JSON.parse(et);JSON_KEY_PRINCIPAL in At&&(tt=At[JSON_KEY_PRINCIPAL])}const rt=tt.toLowerCase().replace(/-/g,"");let nt=decode$3(rt);nt=nt.slice(4,nt.length);const it=new this(nt);if(it.toText()!==tt)throw new Error(`Principal "${it.toText()}" does not have a valid checksum (original value "${tt}" may not be a valid Principal ID).`);return it}static fromUint8Array(et){return new this(et)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===ANONYMOUS_SUFFIX}toUint8Array(){return this._arr}toHex(){return toHexString$2(this._arr).toUpperCase()}toText(){const et=new ArrayBuffer(4);new DataView(et).setUint32(0,getCrc32(this._arr));const rt=new Uint8Array(et),nt=Uint8Array.from(this._arr),it=new Uint8Array([...rt,...nt]),at=encode$3(it).match(/.{1,5}/g);if(!at)throw new Error;return at.join("-")}toString(){return this.toText()}toJSON(){return{[JSON_KEY_PRINCIPAL]:this.toText()}}compareTo(et){for(let tt=0;ttet._arr[tt])return"gt"}return this._arr.lengthet._arr.length?"gt":"eq"}ltEq(et){const tt=this.compareTo(et);return tt=="lt"||tt=="eq"}gtEq(et){const tt=this.compareTo(et);return tt=="gt"||tt=="eq"}};class AgentError extends Error{constructor(et){super(et),this.message=et,Object.setPrototypeOf(this,AgentError.prototype)}}function concat$2(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et}class PipeArrayBuffer{constructor(et,tt=(et==null?void 0:et.byteLength)||0){this._buffer=et||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,tt)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(et){const tt=this._view.subarray(0,et);return this._view=this._view.subarray(et),tt.slice().buffer}readUint8(){const et=this._view[0];return this._view=this._view.subarray(1),et}write(et){const tt=new Uint8Array(et),rt=this._view.byteLength;this._view.byteOffset+this._view.byteLength+tt.byteLength>=this._buffer.byteLength?this.alloc(tt.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+tt.byteLength),this._view.set(tt,rt)}get end(){return this._view.byteLength===0}alloc(et){const tt=new ArrayBuffer((this._buffer.byteLength+et)*1.2|0),rt=new Uint8Array(tt,0,this._view.byteLength+et);rt.set(this._view),this._buffer=tt,this._view=rt}}function idlHash($){const tt=new TextEncoder().encode($);let rt=0;for(const nt of tt)rt=(rt*223+nt)%2**32;return rt}function idlLabelToId($){if(/^_\d+_$/.test($)||/^_0x[0-9a-fA-F]+_$/.test($)){const et=+$.slice(1,-1);if(Number.isSafeInteger(et)&&et>=0&&et<2**32)return et}return idlHash($)}function eob(){throw new Error("unexpected end of buffer")}function safeRead($,et){return $.byteLength=128);return tt}function slebEncode($){typeof $=="number"&&($=BigInt($));const et=$=0;it--)nt=nt*BigInt(128)+BigInt(128-(rt[it]&127)-1);return-nt-BigInt(1)}function writeUIntLE($,et){if(BigInt($)=rt&&(tt-=rt*BigInt(2)),tt}function iexp2($){const et=BigInt($);if($<0)throw new RangeError("Input must be non-negative");return BigInt(1)<tt(rt,et[nt]))}class TypeTable{constructor(){this._typs=[],this._idx=new Map}has(et){return this._idx.has(et.name)}add(et,tt){const rt=this._typs.length;this._idx.set(et.name,rt),this._typs.push(tt)}merge(et,tt){const rt=this._idx.get(et.name),nt=this._idx.get(tt);if(rt===void 0)throw new Error("Missing type index for "+et);if(nt===void 0)throw new Error("Missing type index for "+tt);this._typs[rt]=this._typs[nt],this._typs.splice(nt,1),this._idx.delete(tt)}encode(){const et=lebEncode(this._typs.length),tt=concat$2(...this._typs);return concat$2(et,tt)}indexOf(et){if(!this._idx.has(et))throw new Error("Missing type index for "+et);return slebEncode(this._idx.get(et)||0)}}class Visitor{visitType(et,tt){throw new Error("Not implemented")}visitPrimitive(et,tt){return this.visitType(et,tt)}visitEmpty(et,tt){return this.visitPrimitive(et,tt)}visitBool(et,tt){return this.visitPrimitive(et,tt)}visitNull(et,tt){return this.visitPrimitive(et,tt)}visitReserved(et,tt){return this.visitPrimitive(et,tt)}visitText(et,tt){return this.visitPrimitive(et,tt)}visitNumber(et,tt){return this.visitPrimitive(et,tt)}visitInt(et,tt){return this.visitNumber(et,tt)}visitNat(et,tt){return this.visitNumber(et,tt)}visitFloat(et,tt){return this.visitPrimitive(et,tt)}visitFixedInt(et,tt){return this.visitNumber(et,tt)}visitFixedNat(et,tt){return this.visitNumber(et,tt)}visitPrincipal(et,tt){return this.visitPrimitive(et,tt)}visitConstruct(et,tt){return this.visitType(et,tt)}visitVec(et,tt,rt){return this.visitConstruct(et,rt)}visitOpt(et,tt,rt){return this.visitConstruct(et,rt)}visitRecord(et,tt,rt){return this.visitConstruct(et,rt)}visitTuple(et,tt,rt){const nt=tt.map((it,At)=>[`_${At}_`,it]);return this.visitRecord(et,nt,rt)}visitVariant(et,tt,rt){return this.visitConstruct(et,rt)}visitRec(et,tt,rt){return this.visitConstruct(tt,rt)}visitFunc(et,tt){return this.visitConstruct(et,tt)}visitService(et,tt){return this.visitConstruct(et,tt)}}class Type{display(){return this.name}valueToString(et){return toReadableString(et)}buildTypeTable(et){et.has(this)||this._buildTypeTableImpl(et)}}class PrimitiveType extends Type{checkType(et){if(this.name!==et.name)throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`);return et}_buildTypeTableImpl(et){}}class ConstructType extends Type{checkType(et){if(et instanceof RecClass){const tt=et.getType();if(typeof tt>"u")throw new Error("type mismatch with uninitialized type");return tt}throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`)}encodeType(et){return et.indexOf(this.name)}}class EmptyClass extends PrimitiveType{accept(et,tt){return et.visitEmpty(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return slebEncode(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}}class UnknownClass extends Type{checkType(et){throw new Error("Method not implemented for unknown.")}accept(et,tt){throw et.visitType(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(et,tt){let rt=tt.decodeValue(et,tt);Object(rt)!==rt&&(rt=Object(rt));let nt;return tt instanceof RecClass?nt=()=>tt.getType():nt=()=>tt,Object.defineProperty(rt,"type",{value:nt,writable:!0,enumerable:!1,configurable:!0}),rt}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}}class BoolClass extends PrimitiveType{accept(et,tt){return et.visitBool(this,tt)}covariant(et){if(typeof et=="boolean")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return new Uint8Array([et?1:0])}encodeType(){return slebEncode(-2)}decodeValue(et,tt){switch(this.checkType(tt),safeReadUint8(et)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}}class NullClass extends PrimitiveType{accept(et,tt){return et.visitNull(this,tt)}covariant(et){if(et===null)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode(-1)}decodeValue(et,tt){return this.checkType(tt),null}get name(){return"null"}}class ReservedClass extends PrimitiveType{accept(et,tt){return et.visitReserved(this,tt)}covariant(et){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode(-16)}decodeValue(et,tt){return tt.name!==this.name&&tt.decodeValue(et,tt),null}get name(){return"reserved"}}class TextClass extends PrimitiveType{accept(et,tt){return et.visitText(this,tt)}covariant(et){if(typeof et=="string")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=new TextEncoder().encode(et),rt=lebEncode(tt.byteLength);return concat$2(rt,tt)}encodeType(){return slebEncode(-15)}decodeValue(et,tt){this.checkType(tt);const rt=lebDecode(et),nt=safeRead(et,Number(rt));return new TextDecoder("utf8",{fatal:!0}).decode(nt)}get name(){return"text"}valueToString(et){return'"'+et+'"'}}class IntClass extends PrimitiveType{accept(et,tt){return et.visitInt(this,tt)}covariant(et){if(typeof et=="bigint"||Number.isInteger(et))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return slebEncode(et)}encodeType(){return slebEncode(-4)}decodeValue(et,tt){return this.checkType(tt),slebDecode(et)}get name(){return"int"}valueToString(et){return et.toString()}}class NatClass extends PrimitiveType{accept(et,tt){return et.visitNat(this,tt)}covariant(et){if(typeof et=="bigint"&&et>=BigInt(0)||Number.isInteger(et)&&et>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return lebEncode(et)}encodeType(){return slebEncode(-3)}decodeValue(et,tt){return this.checkType(tt),lebDecode(et)}get name(){return"nat"}valueToString(et){return et.toString()}}class FloatClass extends PrimitiveType{constructor(et){if(super(),this._bits=et,et!==32&&et!==64)throw new Error("not a valid float type")}accept(et,tt){return et.visitFloat(this,tt)}covariant(et){if(typeof et=="number"||et instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=new ArrayBuffer(this._bits/8),rt=new DataView(tt);return this._bits===32?rt.setFloat32(0,et,!0):rt.setFloat64(0,et,!0),tt}encodeType(){const et=this._bits===32?-13:-14;return slebEncode(et)}decodeValue(et,tt){this.checkType(tt);const rt=safeRead(et,this._bits/8),nt=new DataView(rt);return this._bits===32?nt.getFloat32(0,!0):nt.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(et){return et.toString()}}class FixedIntClass extends PrimitiveType{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedInt(this,tt)}covariant(et){const tt=iexp2(this._bits-1)*BigInt(-1),rt=iexp2(this._bits-1)-BigInt(1);let nt=!1;if(typeof et=="bigint")nt=et>=tt&&et<=rt;else if(Number.isInteger(et)){const it=BigInt(et);nt=it>=tt&&it<=rt}else nt=!1;if(nt)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return writeIntLE(et,this._bits/8)}encodeType(){const et=Math.log2(this._bits)-3;return slebEncode(-9-et)}decodeValue(et,tt){this.checkType(tt);const rt=readIntLE(et,this._bits/8);return this._bits<=32?Number(rt):rt}get name(){return`int${this._bits}`}valueToString(et){return et.toString()}}class FixedNatClass extends PrimitiveType{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedNat(this,tt)}covariant(et){const tt=iexp2(this._bits);let rt=!1;if(typeof et=="bigint"&&et>=BigInt(0)?rt=et=0?rt=BigInt(et){try{return this._type.covariant(rt)}catch(it){throw new Error(`Invalid ${this.display()} argument: + */(function($){var et=base64Js,tt=ieee754$1,rt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=at,$.SlowBuffer=pt,$.INSPECT_MAX_BYTES=50;var nt=2147483647;$.kMaxLength=nt,at.TYPED_ARRAY_SUPPORT=it(),!at.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function it(){try{var It=new Uint8Array(1),lt={foo:function(){return 42}};return Object.setPrototypeOf(lt,Uint8Array.prototype),Object.setPrototypeOf(It,lt),It.foo()===42}catch{return!1}}Object.defineProperty(at.prototype,"parent",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.buffer}}),Object.defineProperty(at.prototype,"offset",{enumerable:!0,get:function(){if(at.isBuffer(this))return this.byteOffset}});function At(It){if(It>nt)throw new RangeError('The value "'+It+'" is invalid for option "size"');var lt=new Uint8Array(It);return Object.setPrototypeOf(lt,at.prototype),lt}function at(It,lt,ft){if(typeof It=="number"){if(typeof lt=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ut(It)}return ot(It,lt,ft)}at.poolSize=8192;function ot(It,lt,ft){if(typeof It=="string")return gt(It,lt);if(ArrayBuffer.isView(It))return ht(It);if(It==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It);if(sr(It,ArrayBuffer)||It&&sr(It.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(sr(It,SharedArrayBuffer)||It&&sr(It.buffer,SharedArrayBuffer)))return Et(It,lt,ft);if(typeof It=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var xt=It.valueOf&&It.valueOf();if(xt!=null&&xt!==It)return at.from(xt,lt,ft);var _t=wt(It);if(_t)return _t;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof It[Symbol.toPrimitive]=="function")return at.from(It[Symbol.toPrimitive]("string"),lt,ft);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof It)}at.from=function(It,lt,ft){return ot(It,lt,ft)},Object.setPrototypeOf(at.prototype,Uint8Array.prototype),Object.setPrototypeOf(at,Uint8Array);function st(It){if(typeof It!="number")throw new TypeError('"size" argument must be of type number');if(It<0)throw new RangeError('The value "'+It+'" is invalid for option "size"')}function ct(It,lt,ft){return st(It),It<=0?At(It):lt!==void 0?typeof ft=="string"?At(It).fill(lt,ft):At(It).fill(lt):At(It)}at.alloc=function(It,lt,ft){return ct(It,lt,ft)};function ut(It){return st(It),At(It<0?0:mt(It)|0)}at.allocUnsafe=function(It){return ut(It)},at.allocUnsafeSlow=function(It){return ut(It)};function gt(It,lt){if((typeof lt!="string"||lt==="")&&(lt="utf8"),!at.isEncoding(lt))throw new TypeError("Unknown encoding: "+lt);var ft=Qt(It,lt)|0,xt=At(ft),_t=xt.write(It,lt);return _t!==ft&&(xt=xt.slice(0,_t)),xt}function dt(It){for(var lt=It.length<0?0:mt(It.length)|0,ft=At(lt),xt=0;xt=nt)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+nt.toString(16)+" bytes");return It|0}function pt(It){return+It!=It&&(It=0),at.alloc(+It)}at.isBuffer=function(lt){return lt!=null&<._isBuffer===!0&<!==at.prototype},at.compare=function(lt,ft){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),sr(ft,Uint8Array)&&(ft=at.from(ft,ft.offset,ft.byteLength)),!at.isBuffer(lt)||!at.isBuffer(ft))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(lt===ft)return 0;for(var xt=lt.length,_t=ft.length,Lt=0,Zt=Math.min(xt,_t);Lt_t.length?at.from(Zt).copy(_t,Lt):Uint8Array.prototype.set.call(_t,Zt,Lt);else if(at.isBuffer(Zt))Zt.copy(_t,Lt);else throw new TypeError('"list" argument must be an Array of Buffers');Lt+=Zt.length}return _t};function Qt(It,lt){if(at.isBuffer(It))return It.length;if(ArrayBuffer.isView(It)||sr(It,ArrayBuffer))return It.byteLength;if(typeof It!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof It);var ft=It.length,xt=arguments.length>2&&arguments[2]===!0;if(!xt&&ft===0)return 0;for(var _t=!1;;)switch(lt){case"ascii":case"latin1":case"binary":return ft;case"utf8":case"utf-8":return yr(It).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ft*2;case"hex":return ft>>>1;case"base64":return Xt(It).length;default:if(_t)return xt?-1:yr(It).length;lt=(""+lt).toLowerCase(),_t=!0}}at.byteLength=Qt;function $t(It,lt,ft){var xt=!1;if((lt===void 0||lt<0)&&(lt=0),lt>this.length||((ft===void 0||ft>this.length)&&(ft=this.length),ft<=0)||(ft>>>=0,lt>>>=0,ft<=lt))return"";for(It||(It="utf8");;)switch(It){case"hex":return Ot(this,lt,ft);case"utf8":case"utf-8":return Nt(this,lt,ft);case"ascii":return rr(this,lt,ft);case"latin1":case"binary":return Wt(this,lt,ft);case"base64":return vt(this,lt,ft);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return bt(this,lt,ft);default:if(xt)throw new TypeError("Unknown encoding: "+It);It=(It+"").toLowerCase(),xt=!0}}at.prototype._isBuffer=!0;function Gt(It,lt,ft){var xt=It[lt];It[lt]=It[ft],It[ft]=xt}at.prototype.swap16=function(){var lt=this.length;if(lt%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ft=0;ftft&&(lt+=" ... "),""},rt&&(at.prototype[rt]=at.prototype.inspect),at.prototype.compare=function(lt,ft,xt,_t,Lt){if(sr(lt,Uint8Array)&&(lt=at.from(lt,lt.offset,lt.byteLength)),!at.isBuffer(lt))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof lt);if(ft===void 0&&(ft=0),xt===void 0&&(xt=lt?lt.length:0),_t===void 0&&(_t=0),Lt===void 0&&(Lt=this.length),ft<0||xt>lt.length||_t<0||Lt>this.length)throw new RangeError("out of range index");if(_t>=Lt&&ft>=xt)return 0;if(_t>=Lt)return-1;if(ft>=xt)return 1;if(ft>>>=0,xt>>>=0,_t>>>=0,Lt>>>=0,this===lt)return 0;for(var Zt=Lt-_t,Er=xt-ft,mr=Math.min(Zt,Er),wr=this.slice(_t,Lt),Yr=lt.slice(ft,xt),Ft=0;Ft2147483647?ft=2147483647:ft<-2147483648&&(ft=-2147483648),ft=+ft,ur(ft)&&(ft=_t?0:It.length-1),ft<0&&(ft=It.length+ft),ft>=It.length){if(_t)return-1;ft=It.length-1}else if(ft<0)if(_t)ft=0;else return-1;if(typeof lt=="string"&&(lt=at.from(lt,xt)),at.isBuffer(lt))return lt.length===0?-1:Pt(It,lt,ft,xt,_t);if(typeof lt=="number")return lt=lt&255,typeof Uint8Array.prototype.indexOf=="function"?_t?Uint8Array.prototype.indexOf.call(It,lt,ft):Uint8Array.prototype.lastIndexOf.call(It,lt,ft):Pt(It,[lt],ft,xt,_t);throw new TypeError("val must be string, number or Buffer")}function Pt(It,lt,ft,xt,_t){var Lt=1,Zt=It.length,Er=lt.length;if(xt!==void 0&&(xt=String(xt).toLowerCase(),xt==="ucs2"||xt==="ucs-2"||xt==="utf16le"||xt==="utf-16le")){if(It.length<2||lt.length<2)return-1;Lt=2,Zt/=2,Er/=2,ft/=2}function mr(St,zt){return Lt===1?St[zt]:St.readUInt16BE(zt*Lt)}var wr;if(_t){var Yr=-1;for(wr=ft;wrZt&&(ft=Zt-Er),wr=ft;wr>=0;wr--){for(var Ft=!0,yt=0;yt_t&&(xt=_t)):xt=_t;var Lt=lt.length;xt>Lt/2&&(xt=Lt/2);for(var Zt=0;Zt>>0,isFinite(xt)?(xt=xt>>>0,_t===void 0&&(_t="utf8")):(_t=xt,xt=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Lt=this.length-ft;if((xt===void 0||xt>Lt)&&(xt=Lt),lt.length>0&&(xt<0||ft<0)||ft>this.length)throw new RangeError("Attempt to write outside buffer bounds");_t||(_t="utf8");for(var Zt=!1;;)switch(_t){case"hex":return Kt(this,lt,ft,xt);case"utf8":case"utf-8":return ir(this,lt,ft,xt);case"ascii":case"latin1":case"binary":return jt(this,lt,ft,xt);case"base64":return Mt(this,lt,ft,xt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Bt(this,lt,ft,xt);default:if(Zt)throw new TypeError("Unknown encoding: "+_t);_t=(""+_t).toLowerCase(),Zt=!0}},at.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function vt(It,lt,ft){return lt===0&&ft===It.length?et.fromByteArray(It):et.fromByteArray(It.slice(lt,ft))}function Nt(It,lt,ft){ft=Math.min(It.length,ft);for(var xt=[],_t=lt;_t239?4:Lt>223?3:Lt>191?2:1;if(_t+Er<=ft){var mr,wr,Yr,Ft;switch(Er){case 1:Lt<128&&(Zt=Lt);break;case 2:mr=It[_t+1],(mr&192)===128&&(Ft=(Lt&31)<<6|mr&63,Ft>127&&(Zt=Ft));break;case 3:mr=It[_t+1],wr=It[_t+2],(mr&192)===128&&(wr&192)===128&&(Ft=(Lt&15)<<12|(mr&63)<<6|wr&63,Ft>2047&&(Ft<55296||Ft>57343)&&(Zt=Ft));break;case 4:mr=It[_t+1],wr=It[_t+2],Yr=It[_t+3],(mr&192)===128&&(wr&192)===128&&(Yr&192)===128&&(Ft=(Lt&15)<<18|(mr&63)<<12|(wr&63)<<6|Yr&63,Ft>65535&&Ft<1114112&&(Zt=Ft))}}Zt===null?(Zt=65533,Er=1):Zt>65535&&(Zt-=65536,xt.push(Zt>>>10&1023|55296),Zt=56320|Zt&1023),xt.push(Zt),_t+=Er}return Jt(xt)}var Ut=4096;function Jt(It){var lt=It.length;if(lt<=Ut)return String.fromCharCode.apply(String,It);for(var ft="",xt=0;xtxt)&&(ft=xt);for(var _t="",Lt=lt;Ltxt&&(lt=xt),ft<0?(ft+=xt,ft<0&&(ft=0)):ft>xt&&(ft=xt),ftft)throw new RangeError("Trying to access beyond buffer length")}at.prototype.readUintLE=at.prototype.readUIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,Zt=0;++Zt>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt+--ft],Lt=1;ft>0&&(Lt*=256);)_t+=this[lt+--ft]*Lt;return _t},at.prototype.readUint8=at.prototype.readUInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]},at.prototype.readUint16LE=at.prototype.readUInt16LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]|this[lt+1]<<8},at.prototype.readUint16BE=at.prototype.readUInt16BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,2,this.length),this[lt]<<8|this[lt+1]},at.prototype.readUint32LE=at.prototype.readUInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),(this[lt]|this[lt+1]<<8|this[lt+2]<<16)+this[lt+3]*16777216},at.prototype.readUint32BE=at.prototype.readUInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]*16777216+(this[lt+1]<<16|this[lt+2]<<8|this[lt+3])},at.prototype.readIntLE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=this[lt],Lt=1,Zt=0;++Zt=Lt&&(_t-=Math.pow(2,8*ft)),_t},at.prototype.readIntBE=function(lt,ft,xt){lt=lt>>>0,ft=ft>>>0,xt||kt(lt,ft,this.length);for(var _t=ft,Lt=1,Zt=this[lt+--_t];_t>0&&(Lt*=256);)Zt+=this[lt+--_t]*Lt;return Lt*=128,Zt>=Lt&&(Zt-=Math.pow(2,8*ft)),Zt},at.prototype.readInt8=function(lt,ft){return lt=lt>>>0,ft||kt(lt,1,this.length),this[lt]&128?(255-this[lt]+1)*-1:this[lt]},at.prototype.readInt16LE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt]|this[lt+1]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt16BE=function(lt,ft){lt=lt>>>0,ft||kt(lt,2,this.length);var xt=this[lt+1]|this[lt]<<8;return xt&32768?xt|4294901760:xt},at.prototype.readInt32LE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]|this[lt+1]<<8|this[lt+2]<<16|this[lt+3]<<24},at.prototype.readInt32BE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),this[lt]<<24|this[lt+1]<<16|this[lt+2]<<8|this[lt+3]},at.prototype.readFloatLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!0,23,4)},at.prototype.readFloatBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,4,this.length),tt.read(this,lt,!1,23,4)},at.prototype.readDoubleLE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!0,52,8)},at.prototype.readDoubleBE=function(lt,ft){return lt=lt>>>0,ft||kt(lt,8,this.length),tt.read(this,lt,!1,52,8)};function Ar(It,lt,ft,xt,_t,Lt){if(!at.isBuffer(It))throw new TypeError('"buffer" argument must be a Buffer instance');if(lt>_t||ltIt.length)throw new RangeError("Index out of range")}at.prototype.writeUintLE=at.prototype.writeUIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var Zt=1,Er=0;for(this[ft]=lt&255;++Er>>0,xt=xt>>>0,!_t){var Lt=Math.pow(2,8*xt)-1;Ar(this,lt,ft,xt,Lt,0)}var Zt=xt-1,Er=1;for(this[ft+Zt]=lt&255;--Zt>=0&&(Er*=256);)this[ft+Zt]=lt/Er&255;return ft+xt},at.prototype.writeUint8=at.prototype.writeUInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,255,0),this[ft]=lt&255,ft+1},at.prototype.writeUint16LE=at.prototype.writeUInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeUint16BE=at.prototype.writeUInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,65535,0),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeUint32LE=at.prototype.writeUInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft+3]=lt>>>24,this[ft+2]=lt>>>16,this[ft+1]=lt>>>8,this[ft]=lt&255,ft+4},at.prototype.writeUint32BE=at.prototype.writeUInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,4294967295,0),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4},at.prototype.writeIntLE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var Zt=0,Er=1,mr=0;for(this[ft]=lt&255;++Zt>0)-mr&255;return ft+xt},at.prototype.writeIntBE=function(lt,ft,xt,_t){if(lt=+lt,ft=ft>>>0,!_t){var Lt=Math.pow(2,8*xt-1);Ar(this,lt,ft,xt,Lt-1,-Lt)}var Zt=xt-1,Er=1,mr=0;for(this[ft+Zt]=lt&255;--Zt>=0&&(Er*=256);)lt<0&&mr===0&&this[ft+Zt+1]!==0&&(mr=1),this[ft+Zt]=(lt/Er>>0)-mr&255;return ft+xt},at.prototype.writeInt8=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,1,127,-128),lt<0&&(lt=255+lt+1),this[ft]=lt&255,ft+1},at.prototype.writeInt16LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt&255,this[ft+1]=lt>>>8,ft+2},at.prototype.writeInt16BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,2,32767,-32768),this[ft]=lt>>>8,this[ft+1]=lt&255,ft+2},at.prototype.writeInt32LE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),this[ft]=lt&255,this[ft+1]=lt>>>8,this[ft+2]=lt>>>16,this[ft+3]=lt>>>24,ft+4},at.prototype.writeInt32BE=function(lt,ft,xt){return lt=+lt,ft=ft>>>0,xt||Ar(this,lt,ft,4,2147483647,-2147483648),lt<0&&(lt=4294967295+lt+1),this[ft]=lt>>>24,this[ft+1]=lt>>>16,this[ft+2]=lt>>>8,this[ft+3]=lt&255,ft+4};function cr(It,lt,ft,xt,_t,Lt){if(ft+xt>It.length)throw new RangeError("Index out of range");if(ft<0)throw new RangeError("Index out of range")}function Rt(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,4),tt.write(It,lt,ft,xt,23,4),ft+4}at.prototype.writeFloatLE=function(lt,ft,xt){return Rt(this,lt,ft,!0,xt)},at.prototype.writeFloatBE=function(lt,ft,xt){return Rt(this,lt,ft,!1,xt)};function Qr(It,lt,ft,xt,_t){return lt=+lt,ft=ft>>>0,_t||cr(It,lt,ft,8),tt.write(It,lt,ft,xt,52,8),ft+8}at.prototype.writeDoubleLE=function(lt,ft,xt){return Qr(this,lt,ft,!0,xt)},at.prototype.writeDoubleBE=function(lt,ft,xt){return Qr(this,lt,ft,!1,xt)},at.prototype.copy=function(lt,ft,xt,_t){if(!at.isBuffer(lt))throw new TypeError("argument should be a Buffer");if(xt||(xt=0),!_t&&_t!==0&&(_t=this.length),ft>=lt.length&&(ft=lt.length),ft||(ft=0),_t>0&&_t=this.length)throw new RangeError("Index out of range");if(_t<0)throw new RangeError("sourceEnd out of bounds");_t>this.length&&(_t=this.length),lt.length-ft<_t-xt&&(_t=lt.length-ft+xt);var Lt=_t-xt;return this===lt&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(ft,xt,_t):Uint8Array.prototype.set.call(lt,this.subarray(xt,_t),ft),Lt},at.prototype.fill=function(lt,ft,xt,_t){if(typeof lt=="string"){if(typeof ft=="string"?(_t=ft,ft=0,xt=this.length):typeof xt=="string"&&(_t=xt,xt=this.length),_t!==void 0&&typeof _t!="string")throw new TypeError("encoding must be a string");if(typeof _t=="string"&&!at.isEncoding(_t))throw new TypeError("Unknown encoding: "+_t);if(lt.length===1){var Lt=lt.charCodeAt(0);(_t==="utf8"&&Lt<128||_t==="latin1")&&(lt=Lt)}}else typeof lt=="number"?lt=lt&255:typeof lt=="boolean"&&(lt=Number(lt));if(ft<0||this.length>>0,xt=xt===void 0?this.length:xt>>>0,lt||(lt=0);var Zt;if(typeof lt=="number")for(Zt=ft;Zt55295&&ft<57344){if(!_t){if(ft>56319){(lt-=3)>-1&&Lt.push(239,191,189);continue}else if(Zt+1===xt){(lt-=3)>-1&&Lt.push(239,191,189);continue}_t=ft;continue}if(ft<56320){(lt-=3)>-1&&Lt.push(239,191,189),_t=ft;continue}ft=(_t-55296<<10|ft-56320)+65536}else _t&&(lt-=3)>-1&&Lt.push(239,191,189);if(_t=null,ft<128){if((lt-=1)<0)break;Lt.push(ft)}else if(ft<2048){if((lt-=2)<0)break;Lt.push(ft>>6|192,ft&63|128)}else if(ft<65536){if((lt-=3)<0)break;Lt.push(ft>>12|224,ft>>6&63|128,ft&63|128)}else if(ft<1114112){if((lt-=4)<0)break;Lt.push(ft>>18|240,ft>>12&63|128,ft>>6&63|128,ft&63|128)}else throw new Error("Invalid code point")}return Lt}function kr(It){for(var lt=[],ft=0;ft>8,_t=ft%256,Lt.push(_t),Lt.push(xt);return Lt}function Xt(It){return et.toByteArray(qr(It))}function tr(It,lt,ft,xt){for(var _t=0;_t=lt.length||_t>=It.length);++_t)lt[_t+ft]=It[_t];return _t}function sr(It,lt){return It instanceof lt||It!=null&&It.constructor!=null&&It.constructor.name!=null&&It.constructor.name===lt.name}function ur(It){return It!==It}var fr=function(){for(var It="0123456789abcdef",lt=new Array(256),ft=0;ft<16;++ft)for(var xt=ft*16,_t=0;_t<16;++_t)lt[xt+_t]=It[ft]+It[_t];return lt}()})(buffer);const createBuffer=buffer.Buffer.from&&buffer.Buffer.alloc&&buffer.Buffer.allocUnsafe&&buffer.Buffer.allocUnsafeSlow?buffer.Buffer.from:$=>new buffer.Buffer($);function defineCrc($,et){const tt=(rt,nt)=>et(rt,nt)>>>0;return tt.signed=et,tt.unsigned=tt,tt.model=$,tt}defineCrc("crc1",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et,rt=0;for(let nt=0;nt<$.length;nt++){const it=$[nt];rt+=it}return tt+=rt%256,tt%256});let TABLE$8=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(TABLE$8=new Int32Array(TABLE$8));defineCrc("crc-8",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$8[(tt^nt)&255]&255}return tt});let TABLE$7=[0,94,188,226,97,63,221,131,194,156,126,32,163,253,31,65,157,195,33,127,252,162,64,30,95,1,227,189,62,96,130,220,35,125,159,193,66,28,254,160,225,191,93,3,128,222,60,98,190,224,2,92,223,129,99,61,124,34,192,158,29,67,161,255,70,24,250,164,39,121,155,197,132,218,56,102,229,187,89,7,219,133,103,57,186,228,6,88,25,71,165,251,120,38,196,154,101,59,217,135,4,90,184,230,167,249,27,69,198,152,122,36,248,166,68,26,153,199,37,123,58,100,134,216,91,5,231,185,140,210,48,110,237,179,81,15,78,16,242,172,47,113,147,205,17,79,173,243,112,46,204,146,211,141,111,49,178,236,14,80,175,241,19,77,206,144,114,44,109,51,209,143,12,82,176,238,50,108,142,208,83,13,239,177,240,174,76,18,145,207,45,115,202,148,118,40,171,245,23,73,8,86,180,234,105,55,213,139,87,9,235,181,54,104,138,212,149,203,41,119,244,170,72,22,233,183,85,11,136,214,52,106,43,117,151,201,74,20,246,168,116,42,200,150,21,75,169,247,182,232,10,84,215,137,107,53];typeof Int32Array<"u"&&(TABLE$7=new Int32Array(TABLE$7));defineCrc("dallas-1-wire",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$7[(tt^nt)&255]&255}return tt});let TABLE$6=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(TABLE$6=new Int32Array(TABLE$6));defineCrc("crc-16",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$6[(tt^nt)&255]^tt>>8)&65535}return tt});let TABLE$5=[0,4129,8258,12387,16516,20645,24774,28903,33032,37161,41290,45419,49548,53677,57806,61935,4657,528,12915,8786,21173,17044,29431,25302,37689,33560,45947,41818,54205,50076,62463,58334,9314,13379,1056,5121,25830,29895,17572,21637,42346,46411,34088,38153,58862,62927,50604,54669,13907,9842,5649,1584,30423,26358,22165,18100,46939,42874,38681,34616,63455,59390,55197,51132,18628,22757,26758,30887,2112,6241,10242,14371,51660,55789,59790,63919,35144,39273,43274,47403,23285,19156,31415,27286,6769,2640,14899,10770,56317,52188,64447,60318,39801,35672,47931,43802,27814,31879,19684,23749,11298,15363,3168,7233,60846,64911,52716,56781,44330,48395,36200,40265,32407,28342,24277,20212,15891,11826,7761,3696,65439,61374,57309,53244,48923,44858,40793,36728,37256,33193,45514,41451,53516,49453,61774,57711,4224,161,12482,8419,20484,16421,28742,24679,33721,37784,41979,46042,49981,54044,58239,62302,689,4752,8947,13010,16949,21012,25207,29270,46570,42443,38312,34185,62830,58703,54572,50445,13538,9411,5280,1153,29798,25671,21540,17413,42971,47098,34713,38840,59231,63358,50973,55100,9939,14066,1681,5808,26199,30326,17941,22068,55628,51565,63758,59695,39368,35305,47498,43435,22596,18533,30726,26663,6336,2273,14466,10403,52093,56156,60223,64286,35833,39896,43963,48026,19061,23124,27191,31254,2801,6864,10931,14994,64814,60687,56684,52557,48554,44427,40424,36297,31782,27655,23652,19525,15522,11395,7392,3265,61215,65342,53085,57212,44955,49082,36825,40952,28183,32310,20053,24180,11923,16050,3793,7920];typeof Int32Array<"u"&&(TABLE$5=new Int32Array(TABLE$5));defineCrc("ccitt",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:65535;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$5[(tt>>8^nt)&255]^tt<<8)&65535}return tt});let TABLE$4=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];typeof Int32Array<"u"&&(TABLE$4=new Int32Array(TABLE$4));defineCrc("crc-16-modbus",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:65535;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$4[(tt^nt)&255]^tt>>8)&65535}return tt});defineCrc("xmodem",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:0;for(let rt=0;rt<$.length;rt++){const nt=$[rt];let it=tt>>>8&255;it^=nt&255,it^=it>>>4,tt=tt<<8&65535,tt^=it,it=it<<5&65535,tt^=it,it=it<<7&65535,tt^=it}return tt});let TABLE$3=[0,4489,8978,12955,17956,22445,25910,29887,35912,40385,44890,48851,51820,56293,59774,63735,4225,264,13203,8730,22181,18220,30135,25662,40137,36160,49115,44626,56045,52068,63999,59510,8450,12427,528,5017,26406,30383,17460,21949,44362,48323,36440,40913,60270,64231,51324,55797,12675,8202,4753,792,30631,26158,21685,17724,48587,44098,40665,36688,64495,60006,55549,51572,16900,21389,24854,28831,1056,5545,10034,14011,52812,57285,60766,64727,34920,39393,43898,47859,21125,17164,29079,24606,5281,1320,14259,9786,57037,53060,64991,60502,39145,35168,48123,43634,25350,29327,16404,20893,9506,13483,1584,6073,61262,65223,52316,56789,43370,47331,35448,39921,29575,25102,20629,16668,13731,9258,5809,1848,65487,60998,56541,52564,47595,43106,39673,35696,33800,38273,42778,46739,49708,54181,57662,61623,2112,6601,11090,15067,20068,24557,28022,31999,38025,34048,47003,42514,53933,49956,61887,57398,6337,2376,15315,10842,24293,20332,32247,27774,42250,46211,34328,38801,58158,62119,49212,53685,10562,14539,2640,7129,28518,32495,19572,24061,46475,41986,38553,34576,62383,57894,53437,49460,14787,10314,6865,2904,32743,28270,23797,19836,50700,55173,58654,62615,32808,37281,41786,45747,19012,23501,26966,30943,3168,7657,12146,16123,54925,50948,62879,58390,37033,33056,46011,41522,23237,19276,31191,26718,7393,3432,16371,11898,59150,63111,50204,54677,41258,45219,33336,37809,27462,31439,18516,23005,11618,15595,3696,8185,63375,58886,54429,50452,45483,40994,37561,33584,31687,27214,22741,18780,15843,11370,7921,3960];typeof Int32Array<"u"&&(TABLE$3=new Int32Array(TABLE$3));defineCrc("kermit",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:0;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$3[(tt^nt)&255]^tt>>8)&65535}return tt});let TABLE$2=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];typeof Int32Array<"u"&&(TABLE$2=new Int32Array(TABLE$2));defineCrc("crc-24",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=typeof et<"u"?~~et:11994318;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=(TABLE$2[(tt>>16^nt)&255]^tt<<8)&16777215}return tt});let TABLE$1=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(TABLE$1=new Int32Array(TABLE$1));defineCrc("crc-32",function($,et){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=et===0?0:~~et^-1;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE$1[(tt^nt)&255]^tt>>>8}return tt^-1});let TABLE=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(TABLE=new Int32Array(TABLE));defineCrc("jam",function($,et=-1){buffer.Buffer.isBuffer($)||($=createBuffer($));let tt=et===0?0:~~et;for(let rt=0;rt<$.length;rt++){const nt=$[rt];tt=TABLE[(tt^nt)&255]^tt>>>8}return tt});BigInt(1)<"u"?typeof global>"u"?typeof self>"u"?void 0:self.localStorage:global.localStorage:window.localStorage;if(!et)throw new Error("Could not find local storage.");return et}};class AuthClient{constructor(et,tt,rt,nt,it,At,at,ot=[],st,ct,ut,gt,dt){Zr(this,"_identity");Zr(this,"_key");Zr(this,"_chain");Zr(this,"_storage");Zr(this,"_wallet");Zr(this,"_appId");Zr(this,"_delegationIdentity");Zr(this,"_delegationTargets");Zr(this,"_lastRequest");Zr(this,"_confirm");Zr(this,"_idpWindowOption");Zr(this,"_idpWindow");Zr(this,"_eventHandler");this._identity=et,this._key=tt,this._chain=rt,this._storage=nt,this._wallet=it,this._appId=At,this._delegationIdentity=at,this._delegationTargets=ot,this._lastRequest=st,this._confirm=ct,this._idpWindowOption=ut,this._idpWindow=gt,this._eventHandler=dt}static async create(et={appId:""}){const tt=et.storage??new ICStorage$1("astrox-");let rt=null;if(et.identity)rt=et.identity;else{const ht=await tt.get(KEY_ICSTORAGE_KEY);if(ht)try{rt=Ed25519KeyIdentity.fromJSON(ht)}catch{}}let nt=new AnonymousIdentity$1,it=null,At,at=[],ot,st=!0,ct;if(rt)try{const ht=await tt.get(KEY_ICSTORAGE_DELEGATION);let Et=await tt.get(KEY_ICSTORAGE_WALLET$1);Et&&(At=JSON.parse(Et)),ht&&(it=DelegationChain$1.fromJSON(ht),it.delegations.forEach(wt=>{const mt=wt.delegation.targets&&wt.delegation.targets.length>0?wt.delegation.targets:void 0;mt&&(at=[...new Set(at.concat(mt.map(pt=>pt.toText())))])}),isDelegationValid$1(it)?nt=DelegationIdentity.fromDelegation(rt,it):(await _deleteStorage(tt),rt=null))}catch(ht){console.error(ht),await _deleteStorage(tt),rt=null}let ut;const gt=await tt.get(KEY_DELEGATION_PARAMS);return gt&&(ut=JSON.parse(gt),ot={...ut.lastRequest,maxTimeToLive:ut.lastRequest.maxTimeToLive!==void 0?BigInt(ut.lastRequest.maxTimeToLive):void 0},st=ut.confirm,ct=DelegationIdentity.fromDelegation(rt,it)),new this(nt,rt,it,tt,At,et.appId,ct,at,ot,st,et.idpWindowOption)}async _handleSuccess(et,tt){var nt;if(et.identity!==void 0){const it=et.identity.delegations.map(at=>{var st;const ot=at.delegation.targets&&at.delegation.targets.length>0?(st=at.delegation.targets)==null?void 0:st.map(ct=>Principal$3.fromText(ct)):void 0;return ot&&(this._delegationTargets=[...new Set(this._delegationTargets.concat(ot.map(ct=>ct.toText())))]),{delegation:new Delegation$1(at.delegation.pubkey.buffer,at.delegation.expiration,ot),signature:at.signature.buffer}}),At=DelegationChain$1.fromDelegations(it,et.identity.userPublicKey.buffer);this._chain=At,this._wallet=et.wallet,this._confirm=et.confirm}else{const it=et.delegations.map(at=>{var st;const ot=at.delegation.targets&&at.delegation.targets.length>0?(st=at.delegation.targets)==null?void 0:st.map(ct=>Principal$3.fromText(ct)):void 0;return ot&&(this._delegationTargets=[...new Set(this._delegationTargets.concat(ot.map(ct=>ct.toText())))]),{delegation:new Delegation$1(at.delegation.pubkey.buffer,at.delegation.expiration,ot),signature:at.signature.buffer}}),At=DelegationChain$1.fromDelegations(it,et.userPublicKey.buffer);this._chain=At}const rt=this._key;return rt?(this._delegationIdentity=DelegationIdentity.fromDelegation(rt,this._chain),this._identity=this._delegationIdentity,(nt=this._idpWindow)==null||nt.close(),await(tt==null?void 0:tt()),this._removeEventListener(),this):this}getIdentity(){return this._identity}getLastRequest(){return this._lastRequest}getDelegationIdentity(){return this._delegationIdentity}getInnerKey(){return this._key}getDelegationChain(){return this._chain}get wallet(){return this._wallet}getConfirm(){return this._confirm}setWallet(et){this._wallet=et}getDelegateTargets(){return this._delegationTargets}setDelegationTargets(et){this._delegationTargets=[...new Set(this._delegationTargets.concat(et))]}async isAuthenticated(){return!this.getIdentity().getPrincipal().isAnonymous()&&this._chain!==null}async login(et){var nt,it;let tt=this._key;tt||(tt=Ed25519KeyIdentity.generate(),this._key=tt,await this._storage.set(KEY_ICSTORAGE_KEY,JSON.stringify(tt)));const rt=new URL(((nt=et==null?void 0:et.identityProvider)==null?void 0:nt.toString())||IDENTITY_PROVIDER_DEFAULT);return rt.hash=IDENTITY_PROVIDER_ENDPOINT,(it=this._idpWindow)==null||it.close(),this._removeEventListener(),this._idpWindow=window.open(rt.toString(),"idpWindow",this._idpWindowOption)??void 0,new Promise((At,at)=>{this._eventHandler=this._getEventHandler(rt,At,at,et),window.addEventListener("message",this._eventHandler)})}_getEventHandler(et,tt,rt,nt){return async it=>{var at,ot,st,ct;if(it.origin!==et.origin)return;const At=it.data;switch(At.kind){case"authorize-ready":{const ut=(nt==null?void 0:nt.authType)==="authorize-append"&&this._lastRequest?{...this._lastRequest,delegationTargets:(nt==null?void 0:nt.delegationTargets)??[],sessionPublicKey:new Uint8Array((at=this._key)==null?void 0:at.getPublicKey().toDer()),kind:"authorize-append"}:{kind:"authorize-client",sessionPublicKey:new Uint8Array((ot=this._key)==null?void 0:ot.getPublicKey().toDer()),maxTimeToLive:nt==null?void 0:nt.maxTimeToLive,permissions:(nt==null?void 0:nt.permissions)??[PermissionsType.identity],delegationTargets:(nt==null?void 0:nt.delegationTargets)??[],delegationModes:nt==null?void 0:nt.delegationModes,appId:this._appId,noUnify:nt==null?void 0:nt.noUnify,host:(nt==null?void 0:nt.customDomain)||(nt==null?void 0:nt.host)};this._lastRequest=ut,(st=this._idpWindow)==null||st.postMessage(ut,et.origin);break}case"authorize-client-success":try{if(tt(await this._handleSuccess(At,nt==null?void 0:nt.onSuccess)),this._chain&&await this._storage.set(KEY_ICSTORAGE_DELEGATION,JSON.stringify(this._chain.toJSON())),this._wallet!==void 0&&await this._storage.set(KEY_ICSTORAGE_WALLET$1,JSON.stringify(this._wallet)),this._lastRequest!==void 0){const ut={lastRequest:{...this._lastRequest,maxTimeToLive:(ct=this._lastRequest.maxTimeToLive)==null?void 0:ct.toString()},confirm:this._confirm};await this._storage.set(KEY_DELEGATION_PARAMS,JSON.stringify(ut))}}catch(ut){rt(this._handleFailure(ut.message,nt==null?void 0:nt.onError))}break;case"authorize-client-failure":rt(this._handleFailure(At.text,nt==null?void 0:nt.onError));break}}}_handleFailure(et,tt){var rt;return(rt=this._idpWindow)==null||rt.close(),tt==null||tt(et),this._removeEventListener(),et}_removeEventListener(){this._eventHandler&&window.removeEventListener("message",this._eventHandler),this._eventHandler=void 0}async logout(et={}){if(_deleteStorage(this._storage),this._identity=new AnonymousIdentity$1,this._key=null,this._chain=null,this._delegationTargets=[],this._wallet=void 0,this._delegationIdentity=void 0,this._lastRequest=void 0,this._confirm=void 0,et.returnTo)try{window.history.pushState({},"",et.returnTo)}catch{window.location.href=et.returnTo}}}class ICWindow{constructor(){Zr(this,"_window");Zr(this,"_eventHandler")}_removeEventListener(){this._eventHandler&&window.removeEventListener("message",this._eventHandler),this._eventHandler=void 0}_openWindow(et,tt,rt){this._remove(),this._window=window.open(et,tt??"icWindow",rt)??void 0}_remove(){var et;(et=this._window)==null||et.close(),this._removeEventListener()}}const days=BigInt(1),hours=BigInt(24),nanoseconds=BigInt(36e11),WALLET_PROVIDER_DEFAULT="https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",WALLET_PROVIDER_ENDPOINT="#transaction",SIGNER_PROVIDER_DEFAULT="https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",SIGNER_PROVIDER_ENDPOINT="#signer";function targetsFilter($){return $.filter(et=>typeof et=="string"&&et.trim())}const FRAME_SETTING="height=600, width=800, top=0, right=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no",FRAME_SETTING_PAYMENT="height=600, width=480, top=0, right=0, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";var nA,tA,oA,sA,cA,lA,AA,Xn;const $A=class $A extends ICWindow{constructor(tt,rt){super();iA(this,nA,void 0);iA(this,tA,void 0);iA(this,oA,void 0);iA(this,sA,void 0);iA(this,cA,void 0);iA(this,lA,!1);iA(this,AA,void 0);iA(this,Xn,void 0);Zr(this,"disconnect",async(tt={})=>{Wn(this,tA,void 0),Wn(this,oA,void 0),Wn(this,sA,void 0),Wn(this,cA,void 0),Wn(this,AA,void 0),Wn(this,Xn,void 0),await this.getAuthClient().logout(tt)});Zr(this,"queryBalance",async()=>{var rt;if(this.wallet===void 0)throw Error("Wallet address is not found");if(kn(this,oA)===void 0)throw Error("Ledger connection failed");return await((rt=kn(this,oA))==null?void 0:rt.getBalance(this.wallet.accountId))});Zr(this,"handleAuthenticated",async({ledgerCanisterId:tt,ledgerHost:rt})=>{const nt=await LedgerConnection.createActor(this.getAuthClient().getDelegationIdentity(),tt,rt);Wn(this,oA,LedgerConnection.createConnection(this.getAuthClient().getInnerKey(),this.getAuthClient().getDelegationIdentity(),tt,nt.actor,kn(this,tA)))});Zr(this,"createActor",async(tt,rt)=>{var nt,it;return kn(this,nA).getConfirm()===!0&&rt!==void 0&&rt!==""&&await this._appendAuth(rt),(nt=kn(this,Xn))!=null&&nt.dev&&await((it=kn(this,tA))==null?void 0:it.fetchRootKey()),Actor$1.createActor(tt,{agent:kn(this,tA),canisterId:rt})});Zr(this,"requestTransfer",async tt=>{var it,At;const rt=(it=tt.sendOpts)==null?void 0:it.memo;if(rt){const at=tt.standard.toUpperCase();if(at==="EXT"&&!Array.isArray(rt))throw new Error("`sendOpts.memo` only supports `Array` type when the standard is `EXT`");if(at==="ICP"&&typeof rt!="bigint")throw new Error("`sendOpts.memo` only supports `bigint` type when the standard is `ICP`")}console.assert(this.wallet!==void 0,"wallet address is not found");const nt=new URL(((At=tt==null?void 0:tt.walletProvider)==null?void 0:At.toString())||kn(this,sA)||WALLET_PROVIDER_DEFAULT);return nt.hash=WALLET_PROVIDER_ENDPOINT,this._openWindow(nt.toString(),"icWindow",kn(this,lA)?FRAME_SETTING_PAYMENT:void 0),new Promise((at,ot)=>{this._eventHandler=this._getEventHandler(nt,at,ot,tt),window.addEventListener("message",this._eventHandler)})});Zr(this,"signMessage",async tt=>{var nt;console.assert(this.wallet!==void 0,"wallet address is not found");const rt=new URL(((nt=tt==null?void 0:tt.signerProvider)==null?void 0:nt.toString())||kn(this,cA)||SIGNER_PROVIDER_DEFAULT);return rt.hash=SIGNER_PROVIDER_ENDPOINT,this._openWindow(rt.toString(),"icWindow",kn(this,lA)?FRAME_SETTING_PAYMENT:void 0),new Promise((it,At)=>{this._eventHandler=this._getSignerHandler(rt,it,At,tt),window.addEventListener("message",this._eventHandler)})});Wn(this,nA,tt),Wn(this,tA,rt),this.injectWindow()}static async create(tt){var st;let rt=["ryjl3-tyaaa-aaaaa-aaaba-cai"];tt&&(tt!=null&&tt.delegationTargets)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.delegationTargets))]),tt&&(tt!=null&&tt.ledgerCanisterId)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.ledgerCanisterId))]),tt&&(tt!=null&&tt.whitelist)&&(rt=[...new Set(rt.concat(tt==null?void 0:tt.whitelist))]),rt=targetsFilter([...new Set(rt)]);const nt=await AuthClient.create({...tt,delegationTargets:rt,idpWindowOption:tt.useFrame===!0?FRAME_SETTING:void 0}),it=nt.getIdentity(),At=new HttpAgent$1({identity:it,host:tt.host??window.location.origin});tt.dev&&await At.fetchRootKey();const at=new $A(nt,At);at._setWalletProvider(tt==null?void 0:tt.walletProviderUrl),at._setSignerProvider(tt==null?void 0:tt.signerProviderUrl),at._setUseFrame(tt==null?void 0:tt.useFrame),await at.isAuthenticated()&&(await at.handleAuthenticated({ledgerCanisterId:tt.ledgerCanisterId??"ryjl3-tyaaa-aaaaa-aaaba-cai",ledgerHost:tt.ledgerHost??"https://boundary.ic0.app/"}),await((st=tt==null?void 0:tt.onAuthenticated)==null?void 0:st.call(tt,at)));const ot=(tt==null?void 0:tt.identityProvider)??IDENTITY_PROVIDER_DEFAULT;return at._setConnectOptions({...tt,dev:tt.dev,delegationTargets:rt}),at._setLoginOptions({...tt,identityProvider:ot,maxTimeToLive:(tt==null?void 0:tt.maxTimeToLive)??days*hours*nanoseconds,permissions:(tt==null?void 0:tt.permissions)??[PermissionsType.identity],delegationTargets:rt}),at}async connect(tt){let rt=tt.delegationModes;if(rt&&rt.length){const At=["global","domain"];if(rt.some(ot=>!At.includes(ot)))throw new Error("`delegationModes` elements only support `global` and `private`");rt=[...new Set(rt)]}const nt=(tt==null?void 0:tt.identityProvider)??IDENTITY_PROVIDER_DEFAULT;let it=["ryjl3-tyaaa-aaaaa-aaaba-cai"];return tt&&(tt!=null&&tt.delegationTargets)&&(it=[...new Set(it.concat(tt==null?void 0:tt.delegationTargets))]),tt&&(tt!=null&&tt.ledgerCanisterId)&&(it=[...new Set(it.concat(tt==null?void 0:tt.ledgerCanisterId))]),tt&&(tt!=null&&tt.whitelist)&&(it=[...new Set(it.concat(tt==null?void 0:tt.whitelist))]),it=targetsFilter([...new Set(it)]),this._setConnectOptions({...tt,delegationTargets:it}),this._setLoginOptions({...tt,identityProvider:nt,maxTimeToLive:(tt==null?void 0:tt.maxTimeToLive)??days*hours*nanoseconds,permissions:(tt==null?void 0:tt.permissions)??[PermissionsType.identity],delegationTargets:it,delegationModes:rt}),await new Promise((At,at)=>{this.getAuthClient().login({...kn(this,AA),onSuccess:async()=>{var st,ct;const ot=this.getAuthClient().getIdentity();Wn(this,tA,new HttpAgent$1({identity:ot,host:tt.host??window.location.origin})),tt.dev&&await kn(this,tA).fetchRootKey(),await this.handleAuthenticated({ledgerCanisterId:tt.ledgerCanisterId,ledgerHost:tt.ledgerHost??"https://boundary.ic0.app/"}),tt!=null&&tt.onSuccess?await((st=tt==null?void 0:tt.onSuccess)==null?void 0:st.call(tt)):await((ct=tt==null?void 0:tt.onAuthenticated)==null?void 0:ct.call(tt,this)),At(this)},onError:this.handleError})}),this}async isAuthenticated(){return await kn(this,nA).isAuthenticated()}get identity(){return kn(this,nA).getIdentity()}get principal(){return this.identity.getPrincipal()}get wallet(){return kn(this,nA).wallet}get delegationTargets(){return kn(this,nA).getDelegateTargets()}_setWalletProvider(tt){Wn(this,sA,tt)}_setSignerProvider(tt){Wn(this,cA,tt)}_setUseFrame(tt){Wn(this,lA,tt)}_setConnectOptions(tt){Wn(this,Xn,tt)}_setLoginOptions(tt){Wn(this,AA,tt)}get loginOption(){return kn(this,AA)}get connectOptions(){return kn(this,Xn)}getAuthClient(){return kn(this,nA)}injectWindow(){window.ic!==void 0?window.ic.astrox=this:window.ic={astrox:this}}async _appendAuth(tt){const rt=targetsFilter(kn(this,nA).getDelegateTargets());if(rt.includes(tt))return this;{let nt=[...rt,tt];return nt=targetsFilter(nt),this._setConnectOptions({...kn(this,Xn),delegationTargets:nt}),this._setLoginOptions({...kn(this,AA),delegationTargets:nt}),await new Promise((it,At)=>{this.getAuthClient().login({...kn(this,AA),authType:"authorize-append",delegationTargets:nt,onSuccess:async()=>{var ot,st,ct,ut,gt,dt,ht,Et;const at=this.getAuthClient().getIdentity();Wn(this,tA,new HttpAgent$1({identity:at,host:kn(this,Xn)!==void 0?kn(this,Xn).host:window.location.origin})),(ot=kn(this,Xn))!=null&&ot.dev&&await kn(this,tA).fetchRootKey(),await this.handleAuthenticated({ledgerCanisterId:(st=kn(this,Xn))==null?void 0:st.ledgerCanisterId,ledgerHost:((ct=kn(this,Xn))==null?void 0:ct.ledgerHost)??"https://boundary.ic0.app/"}),await((ut=kn(this,Xn))==null?void 0:ut.onSuccess)?await((dt=(gt=kn(this,Xn))==null?void 0:gt.onSuccess)==null?void 0:dt.call(gt)):await((Et=(ht=kn(this,Xn))==null?void 0:ht.onAuthenticated)==null?void 0:Et.call(ht,this)),it(this)},onError:this.handleError})})}}handleError(tt){throw new Error(tt)}_getSignerHandler(tt,rt,nt,it){return async At=>{var ot;if(At.origin!==tt.origin)return;const at=At.data;switch(at.kind){case SignerMessageKind.ready:{const st={kind:SignerMessageKind.client,from:it.from??this.wallet.accountId,message:it.message,maxTimeout:it.maxTimeout??90,successTimeout:it.successTimeout??10};(ot=this._window)==null||ot.postMessage(st,tt.origin);break}case SignerMessageKind.success:try{rt(this._handleSuccess(at,it.onSuccess,it.successTimeout??10))}catch(st){nt(this._handleFailure(st.message,it.onError))}break;case SignerMessageKind.fail:nt(this._handleFailure(at.text,it.onError));break}}}_getEventHandler(tt,rt,nt,it){return async At=>{var ot;if(At.origin!==tt.origin)return;const at=At.data;switch(at.kind){case TransactionMessageKind$1.ready:{const st={kind:TransactionMessageKind$1.client,sendData:{...it}};(ot=this._window)==null||ot.postMessage(st,tt.origin);break}case TransactionMessageKind$1.success:try{rt(this._handleSuccess(at,it.onSuccess,it.successTimeout??10))}catch(st){nt(this._handleFailure(st.message,it.onError))}break;case TransactionMessageKind$1.fail:nt(this._handleFailure(at.text,it.onError));break}}}_handleFailure(tt,rt){return this._remove(),rt==null||rt(tt),tt}_handleSuccess(tt,rt,nt){return nt?setTimeout(()=>this._remove(),nt*1e3):this._remove(),rt==null||rt(tt),tt}};nA=new WeakMap,tA=new WeakMap,oA=new WeakMap,sA=new WeakMap,cA=new WeakMap,lA=new WeakMap,AA=new WeakMap,Xn=new WeakMap;let IC=$A;var ReplicaRejectCode;(function($){$[$.SysFatal=1]="SysFatal",$[$.SysTransient=2]="SysTransient",$[$.DestinationInvalid=3]="DestinationInvalid",$[$.CanisterReject=4]="CanisterReject",$[$.CanisterError=5]="CanisterError"})(ReplicaRejectCode||(ReplicaRejectCode={}));const alphabet="abcdefghijklmnopqrstuvwxyz234567",lookupTable=Object.create(null);for(let $=0;$>-et:tt=it<3?(et-=8,1):(et<4&&(rt+=alphabet[tt>>3],et+=5),0)}for(let it=0;it<$.length;)it+=nt($[it]);return rt+(et<0?alphabet[tt>>3]:"")}function decode$3($){let et=0,tt=0;const rt=new Uint8Array($.length*4/3|0);let nt=0;function it(At){let at=lookupTable[At.toLowerCase()];if(at===void 0)throw new Error(`Invalid character: ${JSON.stringify(At)}`);at<<=3,tt|=at>>>et,et+=5,et>=8&&(rt[nt++]=tt,et-=8,et>0?tt=at<<5-et&255:tt=0)}for(const At of $)it(At);return rt.slice(0,nt)}const lookUpTable=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function getCrc32($){const et=new Uint8Array($);let tt=-1;for(let rt=0;rt>>8}return(tt^-1)>>>0}function sha224($){return sha224$2.create().update(new Uint8Array($)).digest()}const JSON_KEY_PRINCIPAL="__principal__",SELF_AUTHENTICATING_SUFFIX=2,ANONYMOUS_SUFFIX=4,MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR="aaaaa-aa",fromHexString$2=$=>{var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16)))},toHexString$2=$=>$.reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"");let Principal$1=class _A{constructor(et){this._arr=et,this._isPrincipal=!0}static anonymous(){return new this(new Uint8Array([ANONYMOUS_SUFFIX]))}static managementCanister(){return this.fromHex(MANAGEMENT_CANISTER_PRINCIPAL_HEX_STR)}static selfAuthenticating(et){const tt=sha224(et);return new this(new Uint8Array([...tt,SELF_AUTHENTICATING_SUFFIX]))}static from(et){if(typeof et=="string")return _A.fromText(et);if(typeof et=="object"&&et!==null&&et._isPrincipal===!0)return new _A(et._arr);throw new Error(`Impossible to convert ${JSON.stringify(et)} to Principal.`)}static fromHex(et){return new this(fromHexString$2(et))}static fromText(et){let tt=et;if(et.includes(JSON_KEY_PRINCIPAL)){const At=JSON.parse(et);JSON_KEY_PRINCIPAL in At&&(tt=At[JSON_KEY_PRINCIPAL])}const rt=tt.toLowerCase().replace(/-/g,"");let nt=decode$3(rt);nt=nt.slice(4,nt.length);const it=new this(nt);if(it.toText()!==tt)throw new Error(`Principal "${it.toText()}" does not have a valid checksum (original value "${tt}" may not be a valid Principal ID).`);return it}static fromUint8Array(et){return new this(et)}isAnonymous(){return this._arr.byteLength===1&&this._arr[0]===ANONYMOUS_SUFFIX}toUint8Array(){return this._arr}toHex(){return toHexString$2(this._arr).toUpperCase()}toText(){const et=new ArrayBuffer(4);new DataView(et).setUint32(0,getCrc32(this._arr));const rt=new Uint8Array(et),nt=Uint8Array.from(this._arr),it=new Uint8Array([...rt,...nt]),at=encode$3(it).match(/.{1,5}/g);if(!at)throw new Error;return at.join("-")}toString(){return this.toText()}toJSON(){return{[JSON_KEY_PRINCIPAL]:this.toText()}}compareTo(et){for(let tt=0;ttet._arr[tt])return"gt"}return this._arr.lengthet._arr.length?"gt":"eq"}ltEq(et){const tt=this.compareTo(et);return tt=="lt"||tt=="eq"}gtEq(et){const tt=this.compareTo(et);return tt=="gt"||tt=="eq"}};class AgentError extends Error{constructor(et){super(et),this.message=et,Object.setPrototypeOf(this,AgentError.prototype)}}function concat$2(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et}class PipeArrayBuffer{constructor(et,tt=(et==null?void 0:et.byteLength)||0){this._buffer=et||new ArrayBuffer(0),this._view=new Uint8Array(this._buffer,0,tt)}get buffer(){return this._view.slice()}get byteLength(){return this._view.byteLength}read(et){const tt=this._view.subarray(0,et);return this._view=this._view.subarray(et),tt.slice().buffer}readUint8(){const et=this._view[0];return this._view=this._view.subarray(1),et}write(et){const tt=new Uint8Array(et),rt=this._view.byteLength;this._view.byteOffset+this._view.byteLength+tt.byteLength>=this._buffer.byteLength?this.alloc(tt.byteLength):this._view=new Uint8Array(this._buffer,this._view.byteOffset,this._view.byteLength+tt.byteLength),this._view.set(tt,rt)}get end(){return this._view.byteLength===0}alloc(et){const tt=new ArrayBuffer((this._buffer.byteLength+et)*1.2|0),rt=new Uint8Array(tt,0,this._view.byteLength+et);rt.set(this._view),this._buffer=tt,this._view=rt}}function idlHash($){const tt=new TextEncoder().encode($);let rt=0;for(const nt of tt)rt=(rt*223+nt)%2**32;return rt}function idlLabelToId($){if(/^_\d+_$/.test($)||/^_0x[0-9a-fA-F]+_$/.test($)){const et=+$.slice(1,-1);if(Number.isSafeInteger(et)&&et>=0&&et<2**32)return et}return idlHash($)}function eob(){throw new Error("unexpected end of buffer")}function safeRead($,et){return $.byteLength=128);return tt}function slebEncode($){typeof $=="number"&&($=BigInt($));const et=$=0;it--)nt=nt*BigInt(128)+BigInt(128-(rt[it]&127)-1);return-nt-BigInt(1)}function writeUIntLE($,et){if(BigInt($)=rt&&(tt-=rt*BigInt(2)),tt}function iexp2($){const et=BigInt($);if($<0)throw new RangeError("Input must be non-negative");return BigInt(1)<tt(rt,et[nt]))}class TypeTable{constructor(){this._typs=[],this._idx=new Map}has(et){return this._idx.has(et.name)}add(et,tt){const rt=this._typs.length;this._idx.set(et.name,rt),this._typs.push(tt)}merge(et,tt){const rt=this._idx.get(et.name),nt=this._idx.get(tt);if(rt===void 0)throw new Error("Missing type index for "+et);if(nt===void 0)throw new Error("Missing type index for "+tt);this._typs[rt]=this._typs[nt],this._typs.splice(nt,1),this._idx.delete(tt)}encode(){const et=lebEncode(this._typs.length),tt=concat$2(...this._typs);return concat$2(et,tt)}indexOf(et){if(!this._idx.has(et))throw new Error("Missing type index for "+et);return slebEncode(this._idx.get(et)||0)}}class Visitor{visitType(et,tt){throw new Error("Not implemented")}visitPrimitive(et,tt){return this.visitType(et,tt)}visitEmpty(et,tt){return this.visitPrimitive(et,tt)}visitBool(et,tt){return this.visitPrimitive(et,tt)}visitNull(et,tt){return this.visitPrimitive(et,tt)}visitReserved(et,tt){return this.visitPrimitive(et,tt)}visitText(et,tt){return this.visitPrimitive(et,tt)}visitNumber(et,tt){return this.visitPrimitive(et,tt)}visitInt(et,tt){return this.visitNumber(et,tt)}visitNat(et,tt){return this.visitNumber(et,tt)}visitFloat(et,tt){return this.visitPrimitive(et,tt)}visitFixedInt(et,tt){return this.visitNumber(et,tt)}visitFixedNat(et,tt){return this.visitNumber(et,tt)}visitPrincipal(et,tt){return this.visitPrimitive(et,tt)}visitConstruct(et,tt){return this.visitType(et,tt)}visitVec(et,tt,rt){return this.visitConstruct(et,rt)}visitOpt(et,tt,rt){return this.visitConstruct(et,rt)}visitRecord(et,tt,rt){return this.visitConstruct(et,rt)}visitTuple(et,tt,rt){const nt=tt.map((it,At)=>[`_${At}_`,it]);return this.visitRecord(et,nt,rt)}visitVariant(et,tt,rt){return this.visitConstruct(et,rt)}visitRec(et,tt,rt){return this.visitConstruct(tt,rt)}visitFunc(et,tt){return this.visitConstruct(et,tt)}visitService(et,tt){return this.visitConstruct(et,tt)}}class Type{display(){return this.name}valueToString(et){return toReadableString(et)}buildTypeTable(et){et.has(this)||this._buildTypeTableImpl(et)}}class PrimitiveType extends Type{checkType(et){if(this.name!==et.name)throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`);return et}_buildTypeTableImpl(et){}}class ConstructType extends Type{checkType(et){if(et instanceof RecClass){const tt=et.getType();if(typeof tt>"u")throw new Error("type mismatch with uninitialized type");return tt}throw new Error(`type mismatch: type on the wire ${et.name}, expect type ${this.name}`)}encodeType(et){return et.indexOf(this.name)}}class EmptyClass extends PrimitiveType{accept(et,tt){return et.visitEmpty(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){throw new Error("Empty cannot appear as a function argument")}valueToString(){throw new Error("Empty cannot appear as a value")}encodeType(){return slebEncode(-17)}decodeValue(){throw new Error("Empty cannot appear as an output")}get name(){return"empty"}}class UnknownClass extends Type{checkType(et){throw new Error("Method not implemented for unknown.")}accept(et,tt){throw et.visitType(this,tt)}covariant(et){throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){throw new Error("Unknown cannot appear as a function argument")}valueToString(){throw new Error("Unknown cannot appear as a value")}encodeType(){throw new Error("Unknown cannot be serialized")}decodeValue(et,tt){let rt=tt.decodeValue(et,tt);Object(rt)!==rt&&(rt=Object(rt));let nt;return tt instanceof RecClass?nt=()=>tt.getType():nt=()=>tt,Object.defineProperty(rt,"type",{value:nt,writable:!0,enumerable:!1,configurable:!0}),rt}_buildTypeTableImpl(){throw new Error("Unknown cannot be serialized")}get name(){return"Unknown"}}class BoolClass extends PrimitiveType{accept(et,tt){return et.visitBool(this,tt)}covariant(et){if(typeof et=="boolean")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return new Uint8Array([et?1:0])}encodeType(){return slebEncode(-2)}decodeValue(et,tt){switch(this.checkType(tt),safeReadUint8(et)){case 0:return!1;case 1:return!0;default:throw new Error("Boolean value out of range")}}get name(){return"bool"}}class NullClass extends PrimitiveType{accept(et,tt){return et.visitNull(this,tt)}covariant(et){if(et===null)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode(-1)}decodeValue(et,tt){return this.checkType(tt),null}get name(){return"null"}}class ReservedClass extends PrimitiveType{accept(et,tt){return et.visitReserved(this,tt)}covariant(et){return!0}encodeValue(){return new ArrayBuffer(0)}encodeType(){return slebEncode(-16)}decodeValue(et,tt){return tt.name!==this.name&&tt.decodeValue(et,tt),null}get name(){return"reserved"}}class TextClass extends PrimitiveType{accept(et,tt){return et.visitText(this,tt)}covariant(et){if(typeof et=="string")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=new TextEncoder().encode(et),rt=lebEncode(tt.byteLength);return concat$2(rt,tt)}encodeType(){return slebEncode(-15)}decodeValue(et,tt){this.checkType(tt);const rt=lebDecode(et),nt=safeRead(et,Number(rt));return new TextDecoder("utf8",{fatal:!0}).decode(nt)}get name(){return"text"}valueToString(et){return'"'+et+'"'}}class IntClass extends PrimitiveType{accept(et,tt){return et.visitInt(this,tt)}covariant(et){if(typeof et=="bigint"||Number.isInteger(et))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return slebEncode(et)}encodeType(){return slebEncode(-4)}decodeValue(et,tt){return this.checkType(tt),slebDecode(et)}get name(){return"int"}valueToString(et){return et.toString()}}class NatClass extends PrimitiveType{accept(et,tt){return et.visitNat(this,tt)}covariant(et){if(typeof et=="bigint"&&et>=BigInt(0)||Number.isInteger(et)&&et>=0)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return lebEncode(et)}encodeType(){return slebEncode(-3)}decodeValue(et,tt){return this.checkType(tt),lebDecode(et)}get name(){return"nat"}valueToString(et){return et.toString()}}class FloatClass extends PrimitiveType{constructor(et){if(super(),this._bits=et,et!==32&&et!==64)throw new Error("not a valid float type")}accept(et,tt){return et.visitFloat(this,tt)}covariant(et){if(typeof et=="number"||et instanceof Number)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=new ArrayBuffer(this._bits/8),rt=new DataView(tt);return this._bits===32?rt.setFloat32(0,et,!0):rt.setFloat64(0,et,!0),tt}encodeType(){const et=this._bits===32?-13:-14;return slebEncode(et)}decodeValue(et,tt){this.checkType(tt);const rt=safeRead(et,this._bits/8),nt=new DataView(rt);return this._bits===32?nt.getFloat32(0,!0):nt.getFloat64(0,!0)}get name(){return"float"+this._bits}valueToString(et){return et.toString()}}class FixedIntClass extends PrimitiveType{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedInt(this,tt)}covariant(et){const tt=iexp2(this._bits-1)*BigInt(-1),rt=iexp2(this._bits-1)-BigInt(1);let nt=!1;if(typeof et=="bigint")nt=et>=tt&&et<=rt;else if(Number.isInteger(et)){const it=BigInt(et);nt=it>=tt&&it<=rt}else nt=!1;if(nt)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){return writeIntLE(et,this._bits/8)}encodeType(){const et=Math.log2(this._bits)-3;return slebEncode(-9-et)}decodeValue(et,tt){this.checkType(tt);const rt=readIntLE(et,this._bits/8);return this._bits<=32?Number(rt):rt}get name(){return`int${this._bits}`}valueToString(et){return et.toString()}}class FixedNatClass extends PrimitiveType{constructor(et){super(),this._bits=et}accept(et,tt){return et.visitFixedNat(this,tt)}covariant(et){const tt=iexp2(this._bits);let rt=!1;if(typeof et=="bigint"&&et>=BigInt(0)?rt=et=0?rt=BigInt(et){try{return this._type.covariant(rt)}catch(it){throw new Error(`Invalid ${this.display()} argument: index ${nt} -> ${it.message}`)}}))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=lebEncode(et.length);if(this._blobOptimization)return concat$2(tt,new Uint8Array(et));if(ArrayBuffer.isView(et))return concat$2(tt,new Uint8Array(et.buffer));const rt=new PipeArrayBuffer(new ArrayBuffer(tt.byteLength+et.length),0);rt.write(tt);for(const nt of et){const it=this._type.encodeValue(nt);rt.write(new Uint8Array(it))}return rt.buffer}_buildTypeTableImpl(et){this._type.buildTypeTable(et);const tt=slebEncode(-19),rt=this._type.encodeType(et);et.add(this,concat$2(tt,rt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof VecClass))throw new Error("Not a vector type");const nt=Number(lebDecode(et));if(this._type instanceof FixedNatClass){if(this._type._bits==8)return new Uint8Array(et.read(nt));if(this._type._bits==16)return new Uint16Array(et.read(nt*2));if(this._type._bits==32)return new Uint32Array(et.read(nt*4));if(this._type._bits==64)return new BigUint64Array(et.read(nt*8))}if(this._type instanceof FixedIntClass){if(this._type._bits==8)return new Int8Array(et.read(nt));if(this._type._bits==16)return new Int16Array(et.read(nt*2));if(this._type._bits==32)return new Int32Array(et.read(nt*4));if(this._type._bits==64)return new BigInt64Array(et.read(nt*8))}const it=[];for(let At=0;Atthis._type.valueToString(rt)).join("; ")+"}"}}class OptClass extends ConstructType{constructor(et){super(),this._type=et}accept(et,tt){return et.visitOpt(this,this._type,tt)}covariant(et){try{if(Array.isArray(et)&&(et.length===0||et.length===1&&this._type.covariant(et[0])))return!0}catch(tt){throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)} @@ -539,14 +539,14 @@ index ${rt} -> ${nt.message}`)}}))return!0;throw new Error(`Invalid ${this.displ variant ${tt} -> ${nt.message}`)}}))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){for(let tt=0;tt{it.buildTypeTable(et)});const tt=slebEncode(-21),rt=lebEncode(this._fields.length),nt=this._fields.map(([it,At])=>concat$2(lebEncode(idlLabelToId(it)),At.encodeType(et)));et.add(this,concat$2(tt,rt,...nt))}decodeValue(et,tt){const rt=this.checkType(tt);if(!(rt instanceof VariantClass))throw new Error("Not a variant type");const nt=Number(lebDecode(et));if(nt>=rt._fields.length)throw Error("Invalid variant index: "+nt);const[it,At]=rt._fields[nt];for(const[at,ot]of this._fields)if(idlLabelToId(it)===idlLabelToId(at)){const st=ot.decodeValue(et,At);return{[at]:st}}throw new Error("Cannot find field hash "+it)}get name(){return`variant {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}display(){return`variant {${this._fields.map(([tt,rt])=>tt+(rt.name==="null"?"":`:${rt.display()}`)).join("; ")}}`}valueToString(et){for(const[tt,rt]of this._fields)if(et.hasOwnProperty(tt)){const nt=rt.valueToString(et[tt]);return nt==="null"?`variant {${tt}}`:`variant {${tt}=${nt}}`}throw new Error("Variant has no data: "+et)}}class RecClass extends ConstructType{constructor(){super(...arguments),this._id=RecClass._counter++,this._type=void 0}accept(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return et.visitRec(this,this._type,tt)}fill(et){this._type=et}getType(){return this._type}covariant(et){if(this._type&&this._type.covariant(et))return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.encodeValue(et)}_buildTypeTableImpl(et){if(!this._type)throw Error("Recursive type uninitialized.");et.add(this,new Uint8Array([])),this._type.buildTypeTable(et),et.merge(this,this._type.name)}decodeValue(et,tt){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.decodeValue(et,tt)}get name(){return`rec_${this._id}`}display(){if(!this._type)throw Error("Recursive type uninitialized.");return`μ${this.name}.${this._type.name}`}valueToString(et){if(!this._type)throw Error("Recursive type uninitialized.");return this._type.valueToString(et)}}RecClass._counter=0;function decodePrincipalId($){if(safeReadUint8($)!==1)throw new Error("Cannot decode principal");const tt=Number(lebDecode($));return Principal$1.fromUint8Array(new Uint8Array(safeRead($,tt)))}class PrincipalClass extends PrimitiveType{accept(et,tt){return et.visitPrincipal(this,tt)}covariant(et){if(et&&et._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode(tt.byteLength);return concat$2(new Uint8Array([1]),rt,tt)}encodeType(){return slebEncode(-24)}decodeValue(et,tt){return this.checkType(tt),decodePrincipalId(et)}get name(){return"principal"}valueToString(et){return`${this.name} "${et.toText()}"`}}class FuncClass extends ConstructType{constructor(et,tt,rt=[]){super(),this.argTypes=et,this.retTypes=tt,this.annotations=rt}static argsToString(et,tt){if(et.length!==tt.length)throw new Error("arity mismatch");return"("+et.map((rt,nt)=>rt.valueToString(tt[nt])).join(", ")+")"}accept(et,tt){return et.visitFunc(this,tt)}covariant(et){if(Array.isArray(et)&&et.length===2&&et[0]&&et[0]._isPrincipal&&typeof et[1]=="string")return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue([et,tt]){const rt=et.toUint8Array(),nt=lebEncode(rt.byteLength),it=concat$2(new Uint8Array([1]),nt,rt),At=new TextEncoder().encode(tt),at=lebEncode(At.byteLength);return concat$2(new Uint8Array([1]),it,at,At)}_buildTypeTableImpl(et){this.argTypes.forEach(st=>st.buildTypeTable(et)),this.retTypes.forEach(st=>st.buildTypeTable(et));const tt=slebEncode(-22),rt=lebEncode(this.argTypes.length),nt=concat$2(...this.argTypes.map(st=>st.encodeType(et))),it=lebEncode(this.retTypes.length),At=concat$2(...this.retTypes.map(st=>st.encodeType(et))),at=lebEncode(this.annotations.length),ot=concat$2(...this.annotations.map(st=>this.encodeAnnotation(st)));et.add(this,concat$2(tt,rt,nt,it,At,at,ot))}decodeValue(et){if(safeReadUint8(et)!==1)throw new Error("Cannot decode function reference");const rt=decodePrincipalId(et),nt=Number(lebDecode(et)),it=safeRead(et,nt),at=new TextDecoder("utf8",{fatal:!0}).decode(it);return[rt,at]}get name(){const et=this.argTypes.map(nt=>nt.name).join(", "),tt=this.retTypes.map(nt=>nt.name).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) -> (${tt})${rt}`}valueToString([et,tt]){return`func "${et.toText()}".${tt}`}display(){const et=this.argTypes.map(nt=>nt.display()).join(", "),tt=this.retTypes.map(nt=>nt.display()).join(", "),rt=" "+this.annotations.join(" ");return`(${et}) → (${tt})${rt}`}encodeAnnotation(et){if(et==="query")return new Uint8Array([1]);if(et==="oneway")return new Uint8Array([2]);if(et==="composite_query")return new Uint8Array([3]);throw new Error("Illegal function annotation")}}class ServiceClass extends ConstructType{constructor(et){super(),this._fields=Object.entries(et).sort((tt,rt)=>idlLabelToId(tt[0])-idlLabelToId(rt[0]))}accept(et,tt){return et.visitService(this,tt)}covariant(et){if(et&&et._isPrincipal)return!0;throw new Error(`Invalid ${this.display()} argument: ${toReadableString(et)}`)}encodeValue(et){const tt=et.toUint8Array(),rt=lebEncode(tt.length);return concat$2(new Uint8Array([1]),rt,tt)}_buildTypeTableImpl(et){this._fields.forEach(([it,At])=>At.buildTypeTable(et));const tt=slebEncode(-23),rt=lebEncode(this._fields.length),nt=this._fields.map(([it,At])=>{const at=new TextEncoder().encode(it),ot=lebEncode(at.length);return concat$2(ot,at,At.encodeType(et))});et.add(this,concat$2(tt,rt,...nt))}decodeValue(et){return decodePrincipalId(et)}get name(){return`service {${this._fields.map(([tt,rt])=>tt+":"+rt.name).join("; ")}}`}valueToString(et){return`service "${et.toText()}"`}}function toReadableString($){const et=JSON.stringify($,(tt,rt)=>typeof rt=="bigint"?`BigInt(${rt})`:rt);return et&&et.length>toReadableString_max?et.substring(0,toReadableString_max-3)+"...":et}function encode$2($,et){if(et.length<$.length)throw Error("Wrong number of message arguments");const tt=new TypeTable;$.forEach(ot=>ot.buildTypeTable(tt));const rt=new TextEncoder().encode(magicNumber),nt=tt.encode(),it=lebEncode(et.length),At=concat$2(...$.map(ot=>ot.encodeType(tt))),at=concat$2(...zipWith($,et,(ot,st)=>{try{ot.covariant(st)}catch(ct){throw new Error(ct.message+` -`)}return ot.encodeValue(st)}));return concat$2(rt,nt,it,At,at)}function decode$2($,et){const tt=new PipeArrayBuffer(et);if(et.byteLength=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Ut=="number"&&Ut>=Pt)throw new Error("field id collision or not sorted");Ut=Pt;const Kt=Number(slebDecode(dt));$t.push([Pt,Kt])}ht.push([mt,$t]);break}case-22:{const $t=[];let Tt=Number(lebDecode(dt));for(;Tt--;)$t.push(Number(slebDecode(dt)));const Ut=[];let Pt=Number(lebDecode(dt));for(;Pt--;)Ut.push(Number(slebDecode(dt)));const Kt=[];let zt=Number(lebDecode(dt));for(;zt--;)switch(Number(lebDecode(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}case 3:{Kt.push("composite_query");break}default:throw new Error("unknown annotation")}ht.push([mt,[$t,Ut,Kt]]);break}case-23:{let $t=Number(lebDecode(dt));const Tt=[];for(;$t--;){const Ut=Number(lebDecode(dt)),Pt=new TextDecoder().decode(safeRead(dt,Ut)),Kt=slebDecode(dt);Tt.push([Pt,Kt])}ht.push([mt,Tt]);break}default:throw new Error("Illegal op_code: "+mt)}}const wt=[],Qt=Number(lebDecode(dt));for(let pt=0;ptRec());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null;case-2:return Bool;case-3:return Nat;case-4:return Int;case-5:return Nat8;case-6:return Nat16;case-7:return Nat32;case-8:return Nat64;case-9:return Int8;case-10:return Int16;case-11:return Int32;case-12:return Int64;case-13:return Float32;case-14:return Float64;case-15:return Text;case-16:return Reserved;case-17:return Empty;case-24:return Principal;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec(ht)}case-18:{const ht=st(dt[1]);return Opt(ht)}case-20:{const ht={};for(const[Qt,pt]of dt[1]){const mt=`_${Qt}_`;ht[mt]=st(pt)}const Et=Record(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const Qt=`_${Et}_`;ht[Qt]=st(wt)}return Variant(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func(ht.map(Qt=>st(Qt)),Et.map(Qt=>st(Qt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,Qt]of Et){let pt=st(Qt);if(pt instanceof RecClass&&(pt=pt.getType()),!(pt instanceof FuncClass))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{if(dt[0]===-22){const Et=ct(dt);ot[ht].fill(Et)}}),At.forEach((dt,ht)=>{if(dt[0]!==-22){const Et=ct(dt);ot[ht].fill(Et)}});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty=new EmptyClass,Reserved=new ReservedClass,Unknown=new UnknownClass,Bool=new BoolClass,Null=new NullClass,Text=new TextClass,Int=new IntClass,Nat=new NatClass,Float32=new FloatClass(32),Float64=new FloatClass(64),Int8=new FixedIntClass(8),Int16=new FixedIntClass(16),Int32=new FixedIntClass(32),Int64=new FixedIntClass(64),Nat8=new FixedNatClass(8),Nat16=new FixedNatClass(16),Nat32=new FixedNatClass(32),Nat64=new FixedNatClass(64),Principal=new PrincipalClass;function Tuple(...$){return new TupleClass($)}function Vec($){return new VecClass($)}function Opt($){return new OptClass($)}function Record($){return new RecordClass($)}function Variant($){return new VariantClass($)}function Rec(){return new RecClass}function Func($,et,tt=[]){return new FuncClass($,et,tt)}function Service($){return new ServiceClass($)}const IDL=Object.freeze(Object.defineProperty({__proto__:null,Bool,BoolClass,ConstructType,Empty,EmptyClass,FixedIntClass,FixedNatClass,Float32,Float64,FloatClass,Func,FuncClass,Int,Int16,Int32,Int64,Int8,IntClass,Nat,Nat16,Nat32,Nat64,Nat8,NatClass,Null,NullClass,Opt,OptClass,PrimitiveType,Principal,PrincipalClass,Rec,RecClass,Record,RecordClass,Reserved,ReservedClass,Service,ServiceClass,Text,TextClass,Tuple,TupleClass,Type,Unknown,UnknownClass,Variant,VariantClass,Vec,VecClass,Visitor,decode:decode$2,encode:encode$2},Symbol.toStringTag,{value:"Module"}));function concat$1(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$1=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$1($){if(!hexRe$1.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash(et)};function requestIdOf($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString(At),st=hashValue(at);return[ot,st]}).sort(([At],[at])=>compare(At,at)),nt=concat$1(...rt.map(At=>concat$1(...At)));return hash(nt)}var __rest=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);nt=Math.pow(2,32))throw new Error("field id out of 32-bit range");if(typeof Tt=="number"&&Tt>=Pt)throw new Error("field id collision or not sorted");Tt=Pt;const Kt=Number(slebDecode(dt));$t.push([Pt,Kt])}ht.push([Qt,$t]);break}case-22:{const $t=[];let Gt=Number(lebDecode(dt));for(;Gt--;)$t.push(Number(slebDecode(dt)));const Tt=[];let Pt=Number(lebDecode(dt));for(;Pt--;)Tt.push(Number(slebDecode(dt)));const Kt=[];let ir=Number(lebDecode(dt));for(;ir--;)switch(Number(lebDecode(dt))){case 1:{Kt.push("query");break}case 2:{Kt.push("oneway");break}case 3:{Kt.push("composite_query");break}default:throw new Error("unknown annotation")}ht.push([Qt,[$t,Tt,Kt]]);break}case-23:{let $t=Number(lebDecode(dt));const Gt=[];for(;$t--;){const Tt=Number(lebDecode(dt)),Pt=new TextDecoder().decode(safeRead(dt,Tt)),Kt=slebDecode(dt);Gt.push([Pt,Kt])}ht.push([Qt,Gt]);break}default:throw new Error("Illegal op_code: "+Qt)}}const wt=[],mt=Number(lebDecode(dt));for(let pt=0;ptRec());function st(dt){if(dt<-24)throw new Error("future value not supported");if(dt<0)switch(dt){case-1:return Null;case-2:return Bool;case-3:return Nat;case-4:return Int;case-5:return Nat8;case-6:return Nat16;case-7:return Nat32;case-8:return Nat64;case-9:return Int8;case-10:return Int16;case-11:return Int32;case-12:return Int64;case-13:return Float32;case-14:return Float64;case-15:return Text;case-16:return Reserved;case-17:return Empty;case-24:return Principal;default:throw new Error("Illegal op_code: "+dt)}if(dt>=At.length)throw new Error("type index out of range");return ot[dt]}function ct(dt){switch(dt[0]){case-19:{const ht=st(dt[1]);return Vec(ht)}case-18:{const ht=st(dt[1]);return Opt(ht)}case-20:{const ht={};for(const[mt,pt]of dt[1]){const Qt=`_${mt}_`;ht[Qt]=st(pt)}const Et=Record(ht),wt=Et.tryAsTuple();return Array.isArray(wt)?Tuple(...wt):Et}case-21:{const ht={};for(const[Et,wt]of dt[1]){const mt=`_${Et}_`;ht[mt]=st(wt)}return Variant(ht)}case-22:{const[ht,Et,wt]=dt[1];return Func(ht.map(mt=>st(mt)),Et.map(mt=>st(mt)),wt)}case-23:{const ht={},Et=dt[1];for(const[wt,mt]of Et){let pt=st(mt);if(pt instanceof RecClass&&(pt=pt.getType()),!(pt instanceof FuncClass))throw new Error("Illegal service definition: services can only contain functions");ht[wt]=pt}return Service(ht)}default:throw new Error("Illegal op_code: "+dt[0])}}At.forEach((dt,ht)=>{if(dt[0]===-22){const Et=ct(dt);ot[ht].fill(Et)}}),At.forEach((dt,ht)=>{if(dt[0]!==-22){const Et=ct(dt);ot[ht].fill(Et)}});const ut=at.map(dt=>st(dt)),gt=$.map((dt,ht)=>dt.decodeValue(tt,ut[ht]));for(let dt=$.length;dt0)throw new Error("decode: Left-over bytes");return gt}const Empty=new EmptyClass,Reserved=new ReservedClass,Unknown=new UnknownClass,Bool=new BoolClass,Null=new NullClass,Text=new TextClass,Int=new IntClass,Nat=new NatClass,Float32=new FloatClass(32),Float64=new FloatClass(64),Int8=new FixedIntClass(8),Int16=new FixedIntClass(16),Int32=new FixedIntClass(32),Int64=new FixedIntClass(64),Nat8=new FixedNatClass(8),Nat16=new FixedNatClass(16),Nat32=new FixedNatClass(32),Nat64=new FixedNatClass(64),Principal=new PrincipalClass;function Tuple(...$){return new TupleClass($)}function Vec($){return new VecClass($)}function Opt($){return new OptClass($)}function Record($){return new RecordClass($)}function Variant($){return new VariantClass($)}function Rec(){return new RecClass}function Func($,et,tt=[]){return new FuncClass($,et,tt)}function Service($){return new ServiceClass($)}const IDL=Object.freeze(Object.defineProperty({__proto__:null,Bool,BoolClass,ConstructType,Empty,EmptyClass,FixedIntClass,FixedNatClass,Float32,Float64,FloatClass,Func,FuncClass,Int,Int16,Int32,Int64,Int8,IntClass,Nat,Nat16,Nat32,Nat64,Nat8,NatClass,Null,NullClass,Opt,OptClass,PrimitiveType,Principal,PrincipalClass,Rec,RecClass,Record,RecordClass,Reserved,ReservedClass,Service,ServiceClass,Text,TextClass,Tuple,TupleClass,Type,Unknown,UnknownClass,Variant,VariantClass,Vec,VecClass,Visitor,decode:decode$2,encode:encode$2},Symbol.toStringTag,{value:"Module"}));function concat$1(...$){const et=new Uint8Array($.reduce((rt,nt)=>rt+nt.byteLength,0));let tt=0;for(const rt of $)et.set(new Uint8Array(rt),tt),tt+=rt.byteLength;return et.buffer}function toHex($){return[...new Uint8Array($)].map(et=>et.toString(16).padStart(2,"0")).join("")}const hexRe$1=new RegExp(/^([0-9A-F]{2})*$/i);function fromHex$1($){if(!hexRe$1.test($))throw new Error("Invalid hexadecimal string.");const et=[...$].reduce((tt,rt,nt)=>(tt[nt/2|0]=(tt[nt/2|0]||"")+rt,tt),[]).map(tt=>Number.parseInt(tt,16));return new Uint8Array(et).buffer}function compare($,et){if($.byteLength!==et.byteLength)return $.byteLength-et.byteLength;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;nt{const et=new TextEncoder().encode($);return hash(et)};function requestIdOf($){const rt=Object.entries($).filter(([,At])=>At!==void 0).map(([At,at])=>{const ot=hashString(At),st=hashValue(at);return[ot,st]}).sort(([At],[at])=>compare(At,at)),nt=concat$1(...rt.map(At=>concat$1(...At)));return hash(nt)}var __rest=globalThis&&globalThis.__rest||function($,et){var tt={};for(var rt in $)Object.prototype.hasOwnProperty.call($,rt)&&et.indexOf(rt)<0&&(tt[rt]=$[rt]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,rt=Object.getOwnPropertySymbols($);ntBigInt(0)?src.value.tagged(2,src.value.bytes(fromHex$1(et.toString(16)))):src.value.tagged(3,src.value.bytes(fromHex$1((BigInt("-1")*et).toString(16))))}};const serializer$2=src.SelfDescribeCborSerializer.withDefaultEncoders(!0);serializer$2.addEncoder(new PrincipalEncoder$1);serializer$2.addEncoder(new BufferEncoder$1);serializer$2.addEncoder(new BigIntEncoder$1);var CborTag$1;(function($){$[$.Uint64LittleEndian=71]="Uint64LittleEndian",$[$.Semantic=55799]="Semantic"})(CborTag$1||(CborTag$1={}));function encode$1($){return serializer$2.serialize($)}function decodePositiveBigInt$1($){const et=$.byteLength;let tt=BigInt(0);for(let rt=0;rtdecodePositiveBigInt$1(rt),3:rt=>-decodePositiveBigInt$1(rt),[CborTag$1.Semantic]:rt=>rt}}).decodeFirst(et)}const randomNumber=()=>{if(typeof window<"u"&&window.crypto&&window.crypto.getRandomValues){const $=new Uint32Array(1);return window.crypto.getRandomValues($),$[0]}if(typeof crypto<"u"&&crypto.getRandomValues){const $=new Uint32Array(1);return crypto.getRandomValues($),$[0]}return typeof crypto<"u"&&crypto.randomInt?crypto.randomInt(0,4294967295):Math.floor(Math.random()*4294967295)};var SubmitRequestType;(function($){$.Call="call"})(SubmitRequestType||(SubmitRequestType={}));function makeNonce(){const $=new ArrayBuffer(16),et=new DataView($),tt=randomNumber(),rt=randomNumber(),nt=randomNumber(),it=randomNumber();return et.setUint32(0,tt),et.setUint32(4,rt),et.setUint32(8,nt),et.setUint32(12,it),$}const NANOSECONDS_PER_MILLISECONDS=BigInt(1e6),REPLICA_PERMITTED_DRIFT_MILLISECONDS=BigInt(60*1e3);class Expiry{constructor(et){this._value=(BigInt(Date.now())+BigInt(et)-REPLICA_PERMITTED_DRIFT_MILLISECONDS)*NANOSECONDS_PER_MILLISECONDS}toCBOR(){return src.value.u64(this._value.toString(16),16)}toHash(){return lebEncode(this._value)}}function makeNonceTransform($=makeNonce){return async et=>{$();const tt=et.request.headers;et.request.headers=tt,et.endpoint==="call"&&(et.body.nonce=$())}}function httpHeadersTransform($){const et=[];return $.forEach((tt,rt)=>{et.push([rt,tt])}),et}class AgentHTTPResponseError extends Error{constructor(et,tt){super(et),this.response=tt,this.name=this.constructor.name,Object.setPrototypeOf(this,new.target.prototype)}}var RequestStatusResponseStatus;(function($){$.Received="received",$.Processing="processing",$.Replied="replied",$.Rejected="rejected",$.Unknown="unknown",$.Done="done"})(RequestStatusResponseStatus||(RequestStatusResponseStatus={}));const DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS=5*60*1e3,IC_ROOT_KEY="308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100814c0e6ec71fab583b08bd81373c255c3c371b2e84863c98a4f1e08b74235d14fb5d9c0cd546d9685f913a0c0b2cc5341583bf4b4392e467db96d65b9bb4cb717112f8472e0d5a4d14505ffd7484b01291091c5f87b98883463f98091a0baaae",IC0_DOMAIN="ic0.app",IC0_SUB_DOMAIN=".ic0.app",ICP0_DOMAIN="icp0.io",ICP0_SUB_DOMAIN=".icp0.io",ICP_API_DOMAIN="icp-api.io",ICP_API_SUB_DOMAIN=".icp-api.io";class HttpDefaultFetchError extends AgentError{constructor(et){super(et),this.message=et}}class IdentityInvalidError extends AgentError{constructor(et){super(et),this.message=et}}function getDefaultFetch(){let $;if(typeof window<"u")if(window.fetch)$=window.fetch.bind(window);else throw new HttpDefaultFetchError("Fetch implementation was not available. You appear to be in a browser context, but window.fetch was not present.");else if(typeof global<"u")if(global.fetch)$=global.fetch.bind(global);else throw new HttpDefaultFetchError("Fetch implementation was not available. You appear to be in a Node.js context, but global.fetch was not available.");else typeof self<"u"&&self.fetch&&($=self.fetch.bind(self));if($)return $;throw new HttpDefaultFetchError("Fetch implementation was not available. Please provide fetch to the HttpAgent constructor, or ensure it is available in the window or global context.")}class HttpAgent{constructor(et={}){if(this.rootKey=fromHex$1(IC_ROOT_KEY),this._pipeline=[],this._timeDiffMsecs=0,this._rootKeyFetched=!1,this._isAgent=!0,et.source){if(!(et.source instanceof HttpAgent))throw new Error("An Agent's source can only be another HttpAgent");this._pipeline=[...et.source._pipeline],this._identity=et.source._identity,this._fetch=et.source._fetch,this._host=et.source._host,this._credentials=et.source._credentials}else this._fetch=et.fetch||getDefaultFetch()||fetch.bind(global),this._fetchOptions=et.fetchOptions,this._callOptions=et.callOptions;if(et.host!==void 0)!et.host.match(/^[a-z]+:/)&&typeof window<"u"?this._host=new URL(window.location.protocol+"//"+et.host):this._host=new URL(et.host);else if(et.source!==void 0)this._host=et.source._host;else{const tt=typeof window<"u"?window.location:void 0;tt||(this._host=new URL("https://icp-api.io"),console.warn("Could not infer host from window.location, defaulting to mainnet gateway of https://icp-api.io. Please provide a host to the HttpAgent constructor to avoid this warning."));const rt=["ic0.app","icp0.io","localhost","127.0.0.1"],nt=tt==null?void 0:tt.hostname;let it;nt&&typeof nt=="string"&&(it=rt.find(At=>nt.endsWith(At))),tt&&it?this._host=new URL(`${tt.protocol}//${it}${tt.port?":"+tt.port:""}`):(this._host=new URL("https://icp-api.io"),console.warn("Could not infer host from window.location, defaulting to mainnet gateway of https://icp-api.io. Please provide a host to the HttpAgent constructor to avoid this warning."))}if(this._retryTimes=et.retryTimes!==void 0&&et.retryTimes>=0?et.retryTimes:3,this._host.hostname.endsWith(IC0_SUB_DOMAIN)?this._host.hostname=IC0_DOMAIN:this._host.hostname.endsWith(ICP0_SUB_DOMAIN)?this._host.hostname=ICP0_DOMAIN:this._host.hostname.endsWith(ICP_API_SUB_DOMAIN)&&(this._host.hostname=ICP_API_DOMAIN),et.credentials){const{name:tt,password:rt}=et.credentials;this._credentials=`${tt}${rt?":"+rt:""}`}this._identity=Promise.resolve(et.identity||new AnonymousIdentity),et.disableNonce||this.addTransform(makeNonceTransform(makeNonce))}isLocal(){const et=this._host.hostname;return et==="127.0.0.1"||et.endsWith("localhost")}addTransform(et,tt=et.priority||0){const rt=this._pipeline.findIndex(nt=>(nt.priority||0)=0?rt:this._pipeline.length,0,Object.assign(et,{priority:tt}))}async getPrincipal(){if(!this._identity)throw new IdentityInvalidError("This identity has expired due this application's security policy. Please refresh your authentication.");return(await this._identity).getPrincipal()}async call(et,tt,rt){const nt=await(rt!==void 0?await rt:await this._identity);if(!nt)throw new IdentityInvalidError("This identity has expired due this application's security policy. Please refresh your authentication.");const it=Principal$1.from(et),At=tt.effectiveCanisterId?Principal$1.from(tt.effectiveCanisterId):it,at=nt.getPrincipal()||Principal$1.anonymous();let ot=new Expiry(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS);Math.abs(this._timeDiffMsecs)>1e3*30&&(ot=new Expiry(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS+this._timeDiffMsecs));const st={request_type:SubmitRequestType.Call,canister_id:it,method_name:tt.methodName,arg:tt.arg,sender:at,ingress_expiry:ot};let ct=await this._transform({request:{body:null,method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"call",body:st});ct=await nt.transformRequest(ct);const ut=encode$1(ct.body),gt=this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${At.toText()}/call`,this._host),Object.assign(Object.assign(Object.assign({},this._callOptions),ct.request),{body:ut}))),[dt,ht]=await Promise.all([gt,requestIdOf(st)]),Et=await dt.arrayBuffer(),wt=dt.status===200&&Et.byteLength>0?decode$1(Et):null;return{requestId:ht,response:{ok:dt.ok,status:dt.status,statusText:dt.statusText,body:wt,headers:httpHeadersTransform(dt.headers)}}}async _requestAndRetry(et,tt=0){const rt=await et();if(rt.ok)return rt;const nt=await rt.clone().text(),it=`Server returned an error: Code: ${rt.status} (${rt.statusText}) Body: ${nt} `;if(this._retryTimes>tt)return console.warn(it+" Retrying request."),await this._requestAndRetry(et,tt+1);throw new AgentHTTPResponseError(it,{ok:rt.ok,status:rt.status,statusText:rt.statusText,headers:httpHeadersTransform(rt.headers)})}async query(et,tt,rt){const nt=await(rt!==void 0?await rt:await this._identity);if(!nt)throw new IdentityInvalidError("This identity has expired due this application's security policy. Please refresh your authentication.");const it=typeof et=="string"?Principal$1.fromText(et):et,At=(nt==null?void 0:nt.getPrincipal())||Principal$1.anonymous(),at={request_type:"query",canister_id:it,method_name:tt.methodName,arg:tt.arg,sender:At,ingress_expiry:new Expiry(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS)};let ot=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read",body:at});ot=await(nt==null?void 0:nt.transformRequest(ot));const st=encode$1(ot.body),ct=await this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${it.toText()}/query`,this._host),Object.assign(Object.assign(Object.assign({},this._fetchOptions),ot.request),{body:st}))),ut=decode$1(await ct.arrayBuffer());return Object.assign(Object.assign({},ut),{httpDetails:{ok:ct.ok,status:ct.status,statusText:ct.statusText,headers:httpHeadersTransform(ct.headers)}})}async createReadStateRequest(et,tt){const rt=await(tt!==void 0?await tt:await this._identity);if(!rt)throw new IdentityInvalidError("This identity has expired due this application's security policy. Please refresh your authentication.");const nt=(rt==null?void 0:rt.getPrincipal())||Principal$1.anonymous(),it=await this._transform({request:{method:"POST",headers:Object.assign({"Content-Type":"application/cbor"},this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{})},endpoint:"read_state",body:{request_type:"read_state",paths:et.paths,sender:nt,ingress_expiry:new Expiry(DEFAULT_INGRESS_EXPIRY_DELTA_IN_MSECS)}});return rt==null?void 0:rt.transformRequest(it)}async readState(et,tt,rt,nt){const it=typeof et=="string"?Principal$1.fromText(et):et,At=nt??await this.createReadStateRequest(tt,rt),at=encode$1(At.body),ot=await this._requestAndRetry(()=>this._fetch(""+new URL(`/api/v2/canister/${it}/read_state`,this._host),Object.assign(Object.assign(Object.assign({},this._fetchOptions),At.request),{body:at})));if(!ot.ok)throw new Error(`Server returned an error: Code: ${ot.status} (${ot.statusText}) Body: ${await ot.text()} -`);return decode$1(await ot.arrayBuffer())}async syncTime(et){const tt=await __vitePreload(()=>import("./index-b267778e.js"),[]),rt=Date.now();try{et||console.log("Syncing time with the IC. No canisterId provided, so falling back to ryjl3-tyaaa-aaaaa-aaaba-cai");const it=(await tt.request({canisterId:et??Principal$1.from("ryjl3-tyaaa-aaaaa-aaaba-cai"),agent:this,paths:["time"]})).get("time");it&&(this._timeDiffMsecs=Number(it)-Number(rt))}catch(nt){console.error("Caught exception while attempting to sync time:",nt)}}async status(){const et=this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{},tt=await this._requestAndRetry(()=>this._fetch(""+new URL("/api/v2/status",this._host),Object.assign({headers:et},this._fetchOptions)));return decode$1(await tt.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}invalidateIdentity(){this._identity=null}replaceIdentity(et){this._identity=Promise.resolve(et)}_transform(et){let tt=Promise.resolve(et);for(const rt of this._pipeline)tt=tt.then(nt=>rt(nt).then(it=>it||nt));return tt}}var ProxyMessageKind;(function($){$.Error="err",$.GetPrincipal="gp",$.GetPrincipalResponse="gpr",$.Query="q",$.QueryResponse="qr",$.Call="c",$.CallResponse="cr",$.ReadState="rs",$.ReadStateResponse="rsr",$.Status="s",$.StatusResponse="sr"})(ProxyMessageKind||(ProxyMessageKind={}));function getDefaultAgent(){const $=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.ic.agent:global.ic.agent:window.ic.agent;if(!$)throw new Error("No Agent could be found.");return $}const wasmBytesBase64="AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/AX9gBH9/f38AYAF/AX5gBX9/f39/AGAAAX9gBn9/f39/fwBgBn9/f39/fwF/YAJ/fwF+YAV/fn5+fgBgAAAD3wHdAQIAAAABAwoAAAAIBgQAAwEDAAEBAQAAAQAJAQMAAwEACAEDAwQAAwsADAIBAAEADQMEAAAAAgEBAAABAwABAQMEAAEBAQEBAQEAAAMBAgUABAEFBAEBAgIEAwQDAAAAAwAAAAABDgABAgAAAAEAAwMAAQMAAwYCAAAABAABAAABAQYBAwAAAgICAgIBAAMABAACAQAAAwAAAAAAAQEBAQIAAAEEAQMAAAABAAAEAgABAQEBAQEBAQEBBAQAAgMAAAABAAICAAIEBAEBAgICAgAEBQQEAgIJBwcHAQMDBAUBcAESEgUDAQARBgkBfwFBgIDAAAsHNwQGbWVtb3J5AgAIYmxzX2luaXQA1gEKYmxzX3ZlcmlmeQAnEV9fd2JpbmRnZW5fbWFsbG9jAGgJIQEAQQELEcgBQdoBTroBQH/XAdgBgAEcJVy7AccB2gHZAQr44QLdAd0hAg9/AX4jAEEQayIIJAACQAJAIABB9QFPBEBBgIB8QQhBCBCjAUEUQQgQowFqQRBBCBCjAWprQXdxQQN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uAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAxqIgQgA0HAABDRARogAkGABmogBBCnAQsgAkGABmoQZCACQYAIaiIDIAIQlgEgAxArIAJBgAJqIgQgAxCXASAGIAQQlgEgAkGABGoiByADEJYBIAMgABCWASADIAUQlwEgAxCwASACQYAKaiIEIAEQlgEgBCABQYAEahCXASAEELABIAMgBBAYIAcgAxCXASADIAUQlgECQCABKAKABkECRwRAIAJBwAxqIgMgAUGABWoQXiACQYAIaiADEKYBDAELIAJBwAxqIgMgAUGABWoQXiACQYAMaiIBIANBwAAQ0QEaIAJBgAhqIAEQpwELIAJBgAhqIgEQZCACQYAKaiIDIAEQlgEgAxArIAUgAkGABGoQlgEgBSADEJcBIAJBgAZqIgQgAxCXASABEGQgBiABEJcBIAQQsAEgBBBkIAAgAhCWASAAIAQQlwEMAwsgAkGACmoiAyAFEF4gAkHADGoiBCADEJkBIAMgAUGAAmoQXiAEIAMQEQsgACgCgAZBBEcEQCACQYAKaiIDIABBgAJqEF4gAkHADGoiBCADEJkBIAMgBhBeIAQgAxARCyACQYAEaiIDIAJBwAxqIAJBgAhqEKUBIAMQZAsgAkGACGoiAyAAEIwBIAJBgApqIgQgARCMASADIABBgAJ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IAcQXiABIAYQmgEgARCpASAHIAYQeyAHEKkBIARBDBCrASAEEHwgBBCpASADIAQQmQEgAyAFEBEgBiAIEJkBIAYgBxARIAMgBhC/ASAEIAIQESAHIAEQESAEIAcQmgEgAiAIEBEgASAFEBEgASACEJoBIAAgAxCZASAAEKkBIAkgBBCZASAJEKkBIAogARCZASAKEKkBIAJBgAhqJAAL8gMBCn8jAEGABGsiAiQAIAIgABCQASACIAEQSiACQUBrIgYgAEFAayIJEJABIAYgAUFAayIEEEogAkGAAWoiByAAQYABaiIKEJABIAcgAUGAAWoiCxBKIAJBwAFqIgggABCQASAIIAkQdyAIEEIgAkGAAmoiBSABEJABIAUgBBB3IAUQQiAIIAUQSiAFIAIQrgEgBSAGEHcgCCAFEH4gAkHAAWoQQiAFIAkQrgEgBSAKEHcgAkGAAmoQQiACQcACaiIDIAQQkAEgAyALEHcgAxBCIAUgAxBKIAMgBhCuASADIAcQdyAFIAMQfiACQYACahBCIAMgABCuASADIAoQdyACQcACahBCIAJBgANqIgQgARCQASAEIAsQdyAEEEIgAyAEEEogBCACEK4BIAQgBxB3IAQgAxDCASACQYADahBCIAMgAhCuASADIAIQdyACIAMQdyACEEIgB0EMEDQgAkHAA2oiASAGEJABIAEgBxB3IAEQQiAGIAcQfiAGEEIgBEEMEDQgAyAEEK4BIAMgBRBKIAcgCBCuASAHIAYQSiADIAcQwgEgBCACEEogBiABEEogBCAGEHcgAiAIEEogASAFEEogASACEHcgACADEK4BIAAQQiAJIAQQrgEgCRBCIAogARCuASAKEEIgAkGABGokAAu/BQEJfyMAQYALayIHJAAgB0E4ENABIgVBATYCOCAFQUBrQTgQ0AEaIAVB+ABqQQE2AgAgBUGAAWpBOBDQARogBUG4AWpBATYCACAFQcABakE4ENABGiAFQfgBakEBNgIAIAVBgAJqIg1BOBDQARogBUEBNgK4AiAFQcACakE4ENABGiAFQfgCakEBNgIAIAVBgANqQTgQ0AEaIAVBuANqQQE2AgAgBUHAA2pBOBDQARogBUH4A2pBATY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qED0CQCACEIYBBEAgABBVDAELIANB+ARqIgQQPSAEIAEQfSAEEEcgA0H4B2oiARBnIAEgAhB4IAEQRiADQcgcaiICIAEQkAEgA0G4CWogAhCQASACIANBuAhqEJABIANB+AlqIAIQkAEgA0G4CmoiARA9IANBuA1qEFUgASAEEH0gA0HAE2oiARA9IAEgBBB9IAEQogEgA0HAAWogA0GIAWoQUEECayECA0AgAkEBakEBTQRAIANBuA1qIgEQngEgACABQYgGENEBGgUgA0G4DWoQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAMLIAJBAWshAiADQbgNaiADQcAWahABDAELCwsgA0HQImokAAvBAwEVfwNAIANBwAFGBEACQCAAQShqIQsgAEEUaigCACIMIQggAEEQaigCACINIQIgAEEMaigCACIOIQEgACgCCCIPIQMgAEEYaigCACIQIQogAEEcaigCACIRIQQgAEEgaigCACISIQcgAEEkaigCACITIQYDQCAHIQkgBCEHIAohBCAFQYACRg0BIAEgAnEhFCABIAJzIRUgBSALaigCACAFQcCiwABqKAIAIAkgBEF/c3EgBCAHcXIgBmogBEEadyAEQRV3cyAEQQd3c2pqaiIGIAhqIQogBUEEaiEFIAIhCCABIQIgAyIBQR53IAFBE3dzIAFBCndzIBQgASAVcXNqIAZqIQMgCSEGDAALAAsFIAAgA2oiAkHoAGogAkEoaigCACACQcwAaigCACACQeAAaigCACIBQQ93IAFBDXdzIAFBCnZzamogAkEsaigCACIBQRl3IAFBDndzIAFBA3ZzajYCACADQQRqIQMMAQsLIAAgBiATajYCJCAAIAkgEmo2AiAgACAHIBFqNgIcIAAgBCAQajYCGCAAIAggDGo2AhQgACACIA1qNgIQIAAgASAOajYCDCAAIAMgD2o2AggL5AEBAn8jAEGAA2siA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gmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEah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gASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAO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wB2oiBRBnIAUgBBB4IAUQRiAAQbAJaiIEED0gBCAIEH0gBBBHIABBsAxqIggQZyAIIAIQeCAIEEYgAEGILmoiASAFEJABIABB8A1qIAEQkAEgASAAQbAIahCQASAAQbAOaiABEJABIAEgCBCQASAAQfAOaiABEJABIAEgAEHwDGoQkAEgAEGwD2ogARCQASAAQfAPaiIBED0gAEHwEmoiBRA9IABB8BVqEFUgASADEH0gBSAEEH0gAEH4G2oiARA9IAEgAxB9IAEQogEgAEH4HmoiARA9IAEgBBB9IAEQogEgAEG4AWogAEGAAWoQUEECayEBA0AgAUEBakEBTQRAIABB8BVqIgEQngEgByABQYgGENEBGgwDBSAAQfAVaiIEEBogAEH4IWoiAyAAQfAPaiAAQfANaiAAQbAOahALIABBgChqIgUgAEHwEmogAEHwDmogAEGwD2oQCyADIAUQAyAEIAMQAQJAAkACQCAAQbgBaiABEFMgAEGAAWogARBTa0EBag4DAQIAAgsgAEGILmoiAyAAQfAPaiAAQfAEaiAAQfANaiAAQbAOahAKIABB+CFqIgQgA0GIBhDRARogAyAAQfASaiAAQbAJaiAAQfAOaiAAQbAPahAKIAQgAxADIABB8BVqIAQQAQwBCyAAQYguaiIDIABB8A9qIABB+BtqIABB8A1qIABBsA5qEAogAEH4IWoiBCADQYgGENEBGiADIABB8BJqIABB+B5qIABB8A5qIABBsA9qEAogBCADEAMgAEHwFWogBBABCyABQQFrIQEMAQsACwALIAcgCCACEA4LIABBkDRqJAAjAEHgH2siCCQAIAhB0BNqIgFByK3AABBJIAhB2BlqIg1BgK7AABBJIAggASANEEsgCEGAAWoiC0GQrcAAEEkgAkGID2oiACAHEGkgCEG4AWoiBSAAEGkjAEGACGsiAyQAIAMgBRCMASADQYACaiIJIAVBgAJqIg8QjAEgA0GABGoiCiAFEIwBIANBgAZqIgRBOBDQARogA0EBNgK4BiADQcAGakE4ENABGiADQfgGakEBNgIAIANBgAdqQTgQ0AEaIANBuAdqQQE2AgAgA0HAB2pBOBDQARogA0H4B2pBATYCAC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UEBayEBIAJBEGsiA0EIaiECIAYgBIZC//////////8DgyEHIAMpAwAiBiAIhyEFDAELCxoLiAECA34DfyMAQRBrIgUkAAN+IAZBOEYEfiAFQRBqJAAgAwUgBSAAIAZqIgcpAwAiAiACQj+HIAGsIgIgAkI/hxAvIAcgBSkDACIEIAN8IgJC//////////8DgzcDACACIARUrSAFQQhqKQMAIANCP4d8fEIGhiACQjqIhCEDIAZBCGohBgwBCwsLigECA38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJ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iACQQEQLCAAIAIgA0ICgacQMCABQfAAaiQAC5gBAQZ/IwBBwAFrIgMkACAAIAEQXiAAEC0gA0GIAWoiBkHop8AAEEkjAEFAaiIEJAAgA0EIaiICQTgQ0AEiBUEBNgI4IAVBQGtBOBDQASAFQfgAakEBNgIAIAQgBhCOASAFIAQQrgEQwQEgBEFAayQAIAIQqQEgAhB8IAIQqQEgACABEBEgACACEJoBIAAQtQEgA0HAAWokAAtZAQJ/IwBBQGoiAyQAIABBOBDQASIAQQE2AjgCQCABQQBOBEAgACABEJMBDAELIANBCGoiAkHAssAAEEkgAiABEJMBIAIQQiAAIAIQagsgABBUIANBQGskAAu9CAEKfyMAQYABayIHJAAgB0EIaiIDQcCywAAQSSADQQEQlAECQAJAA0AgAUEwRgRAIANBMGogAykDMEIBhzcDACADQThqIQEDQCACRQ0EIAFCADcDACACQQFrIQIgAUEIaiEBDAALAAsgAUE4Rg0BIAFBOEcEQCABIANqIAEgA2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYC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QUBrIgMQkAEgARBMIAIQTCABIAIQdyABQQAQMyAAIAEQSiABEEMgARBCIAMgARBKIAFBgAFqJAALYQEBfyMAQYACayIDJAAgABA9IAAgARCZASAAQYABaiIBIAIQmQEgAEGAAmoQtwEgABCpASADIAAQOCADQYABaiICIAEQXiACEC0gAiADEHpFBEAgABCbAQsgA0GAAmokAAtUAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLGgt8AQV/IwBBQGoiAyQAIANBCGoiAkHAssAAEEkgAiAAKAI4QQFrEDUiBBAoA0AgAUE4RwRAIAAgAWoiBSABIAJqKQMAIAUpAwB9NwMAIAFBCGohAQwBCwsgAEEBIARBAWp0IgI2AjggAkH///8PSgRAIAAQHgsgA0FAayQAC3sBAn8gAEEoaiECA0AgAUGAAkYEQCAAQufMp9DW0Ouzu383AgggAEIANwIAIABBIGpCq7OP/JGjs/DbADcCACAAQRhqQv+kuYjFkdqCm383AgAgAEEQakLy5rvjo6f9p6V/NwIABSABIAJqQQA2AgAgAUEEaiEBDAELCwtUACAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQARogAEH4AGpBATYCACAAQYABakE4ENABGiAAQbgBakEBNgIAIABBwAFqQTgQ0AEaIABB+AFqQQE2AgALWAECfyMAQUBqIgEkAAJAIAAQhgENACABQQEQOSAAQYABaiICIAEQWA0AIAJBABAzIAAgAhBKIAAQHiAAQUBrIgAgAhBKIAAQHiACIAEQrgELIAFBQGskAAtZAQJ/IwBBgAFrIgEkAAJAIAAQigENACABEFEgAEGAAmoiAiABEHoNACACED4gACACEBEgABC1ASAAQYABaiIAIAIQESAAELUBIAIgARCZAQsgAUGAAWokAAtbAgF+An8gACkDACEBA0AgACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkHgAEYEQCAAIAApA2ggAXw3A2gFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLC08BAX8gAEE4ENABGgJAA0AgAkEHRwRAIAJBB0YNAiAAIAEpAwA3AwAgAEEIaiEAIAFBCGohASACQQFqIQIMAQsLDwtBB0EHQeSawAAQOwALVAECfyMAQbABayICJAAgATQCOCAANAI4fkL///8PVQRAIAAQHgsgAkEIaiIDIAAgARAFIAJB+ABqIgEgAxBrIAAgARBqIABBAjYCOCACQbABaiQAC1EBAn8jAEFAaiIDJAAgAEE4ENABIgBBATYCOCAAQUBrQTgQ0AEgAEH4AGpBATYCACADIAEQjgEgACADEK4BIAMgAhCOASADEK4BIANBQGskAAvwDAIRfwh+IwBBsAFrIg8kACAANAI4IhIgEn5C////D1YEQCAAEB4LIwBB0AFrIgEkACAPQQhqIgZBCGpB0AAQ0AEaIAFBwAFqIAApAwAiFyAXQj+HIhYgFyAWEC8gBiABKQPAASISQv//////////A4M3AwAgAUHIAWopAwAiFUIGhiASQjqIhCETIBVCOoghGCAAQQhqIgwhDSAAIQlBASEKQQEhBwJAA0AgCkEERgRAIABBGGohCiAAQRBqIQkgAEEoaiEMIAApAzAhF0EHIQUgAUHIAGohCwNAIAVBC0kEQCABQUBrIAVBA3QiCCAAakEwaykDACISIBJCP4cgFyAXQj+HIhYQLyAFQQFqIg1BAXYhByALKQMAIRUgASkDQCESIAkhAiAMIQQgBUEFayIOIQMDQCADIAdJBEAgASACKQMAIhQgFEI/hyAEKQMAIhQgFEI/hxAvIAEpAwAiFCASfCISIBRUrSABQQhqKQMAIBV8fCEVIAJBCGohAiAEQQhrIQQgA0EBaiEDDAELCyAGIAh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CQAJAIAFBBGooAgAOAgABAwsgAw0CQQAhAUHAtcAADAELIAMNASABKAIAIgMoAgQhASADKAIACyEDIAAgATYCBCAAIAM2AgAgAEG4t8AAIAIoAgggBCACLQAQECAACyAAQQA2AgQgACABNgIAIABBpLfAACACKAIIIAQgAi0AEBAgAAswACAAQTgQ0AEiAEEBNgI4IABBQGtBARA5IABBgAFqQTgQ0AEaIABBuAFqQQE2AgALKwACQCAAQXxLDQAgAEUEQEEEDwsgACAAQX1JQQJ0ELkBIgBFDQAgAA8LAAs4ACAAEIsBIAAgARCWASAAQYACaiABQYACahCWASAAQYAEaiABQYAEahCWASAAIAEoAoAGNgKABgsoAQF/A0AgAkE4RwRAIAAgAmogASACaikDADcDACACQQhqIQIMAQsLC4QJAg1/Cn4jAEFAaiILJAAgC0EIaiIJQcCywAAQSSMAQZACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A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gsLIwAgAiACKAIEQX5xNgIEIAAgAUEBcjYCBCAAIAFqIAE2AgALIgEBfyMAQfAAayICJAAgAiABEC4gACACEGsgAkHwAGokAAseACAAIAFBA3I2AgQgACABaiIAIAAoAgRBAXI2AgQLFgEBfyAAEHYEfyAAQYABahB2BUEACwsYAQF/IAAQiAEEfyAAQYABahCIAQVBAAsLFQEBfyAAEHYEfyAAQUBrEHYFQQALCxoBAX8gABBWIgEgAEFAaxBWIAFzIAAQdnFzCxgBAX8gABCIAQR/IABBgAJqEIgBBUEACwseACAAEEUgAEGAAmoQRSAAQYAEahBFIABBADYCgAYLHAAgABBFIAAgARCZASAAQYABaiABQYABahCZAQsYACAAIAEgAhByIABBQGsgAUFAayACEHILGgAgAEE4ENABIgBBATYCOCAAIAEQaiAAEFQLFAAgABBCIAAoAgBBfyABdEF/c3ELGQAgAEE4ENABIgAgARBqIAAgASgCODYCOAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAE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i0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp";let wasm;const wasmBytes=decode$7(wasmBytesBase64);function bls_init(){return wasm.bls_init()}let cachegetUint8Memory0=null;function getUint8Memory0(){return(cachegetUint8Memory0===null||cachegetUint8Memory0.buffer!==wasm.memory.buffer)&&(cachegetUint8Memory0=new Uint8Array(wasm.memory.buffer)),cachegetUint8Memory0}function passArray8ToWasm0($,et){const tt=et($.length*1);return getUint8Memory0().set($,tt/1),[tt,$.length]}function bls_verify($,et,tt){const[rt,nt]=passArray8ToWasm0($,wasm.__wbindgen_malloc),[it,At]=passArray8ToWasm0(et,wasm.__wbindgen_malloc),[at,ot]=passArray8ToWasm0(tt,wasm.__wbindgen_malloc);return wasm.bls_verify(rt,nt,it,At,at,ot)}async function load($,et){if(typeof Response=="function"&&$ instanceof Response){const tt=await $.arrayBuffer();return await WebAssembly.instantiate(tt,et)}else{const tt=await WebAssembly.instantiate($,et);return tt instanceof WebAssembly.Instance?{instance:tt,module:$}:tt}}async function init(){const $={},{instance:et,module:tt}=await load(wasmBytes,$);return wasm=et.exports,init.__wbindgen_wasm_module=tt,wasm}let verify;async function blsVerify($,et,tt){if(!verify){if(await init(),bls_init()!==0)throw new Error("Cannot initialize BLS");verify=(rt,nt,it)=>bls_verify(nt,it,rt)===0}return verify($,et,tt)}const decodeLeb128=$=>lebDecode(new PipeArrayBuffer($)),decodeTime=$=>{const et=decodeLeb128($);return new Date(Number(et)/1e6)};class CertificateVerificationError extends AgentError{constructor(et){super(`Invalid certificate: ${et}`)}}function isBufferEqual($,et){if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;ntgt)throw new CertificateVerificationError("Certificate is signed more than 5 minutes in the future. Certificate time: "+dt.toISOString()+" Current time: "+new Date(ct).toISOString());try{At=await this._blsVerify(new Uint8Array(nt),new Uint8Array(rt),new Uint8Array(it))}catch{At=!1}if(!At)throw new CertificateVerificationError("Signature verification failed")}async _checkDelegationAndGetKey(et){if(!et)return this._rootKey;const tt=await Certificate.create({certificate:et.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:60*24*30}),rt=tt.lookup(["subnet",et.subnet_id,"canister_ranges"]);if(!rt)throw new CertificateVerificationError(`Could not find canister ranges for subnet 0x${toHex(et.subnet_id)}`);if(!decode$1(rt).map(ot=>[Principal$1.fromUint8Array(ot[0]),Principal$1.fromUint8Array(ot[1])]).some(ot=>ot[0].ltEq(this._canisterId)&&ot[1].gtEq(this._canisterId)))throw new CertificateVerificationError(`Canister ${this._canisterId} not in range of delegations for subnet 0x${toHex(et.subnet_id)}`);const at=tt.lookup(["subnet",et.subnet_id,"public_key"]);if(!at)throw new Error(`Could not find subnet key for subnet 0x${toHex(et.subnet_id)}`);return at}}const DER_PREFIX=fromHex$1("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),KEY_LENGTH=96;function extractDER($){const et=DER_PREFIX.byteLength+KEY_LENGTH;if($.byteLength!==et)throw new TypeError(`BLS DER-encoded public key must be ${et} bytes long`);const tt=$.slice(0,DER_PREFIX.byteLength);if(!isBufferEqual(tt,DER_PREFIX))throw new TypeError(`BLS DER-encoded public key is invalid. Expect the following prefix: ${DER_PREFIX}, but get ${tt}`);return $.slice(DER_PREFIX.byteLength)}async function reconstruct($){switch($[0]){case 0:return hash(domain_sep("ic-hashtree-empty"));case 4:return $[1];case 3:return hash(concat$1(domain_sep("ic-hashtree-leaf"),$[1]));case 2:return hash(concat$1(domain_sep("ic-hashtree-labeled"),$[1],await reconstruct($[2])));case 1:return hash(concat$1(domain_sep("ic-hashtree-fork"),await reconstruct($[1]),await reconstruct($[2])));default:throw new Error("unreachable")}}function domain_sep($){const et=new Uint8Array([$.length]),tt=new TextEncoder().encode($);return concat$1(et,tt)}function lookup_path($,et){if($.length===0)switch(et[0]){case 3:return new Uint8Array(et[1]).buffer;default:return}const tt=typeof $[0]=="string"?new TextEncoder().encode($[0]):$[0],rt=find_label(tt,flatten_forks(et));if(rt)return lookup_path($.slice(1),rt)}function flatten_forks($){switch($[0]){case 0:return[];case 1:return flatten_forks($[1]).concat(flatten_forks($[2]));default:return[$]}}function find_label($,et){if(et.length!==0){for(const tt of et)if(tt[0]===2){const rt=tt[1];if(isBufferEqual($,rt))return tt[2]}}}const FIVE_MINUTES_IN_MSEC=5*60*1e3;function defaultStrategy(){return chain(conditionalDelay(once(),1e3),backoff(1e3,1.2),timeout(FIVE_MINUTES_IN_MSEC))}function once(){let $=!0;return async()=>$?($=!1,!0):!1}function conditionalDelay($,et){return async(tt,rt,nt)=>{if(await $(tt,rt,nt))return new Promise(it=>setTimeout(it,et))}}function timeout($){const et=Date.now()+$;return async(tt,rt,nt)=>{if(Date.now()>et)throw new Error(`Request timed out after ${$} msec: +`);return decode$1(await ot.arrayBuffer())}async syncTime(et){const tt=await __vitePreload(()=>import("./index-4d413beb.js"),[]),rt=Date.now();try{et||console.log("Syncing time with the IC. No canisterId provided, so falling back to ryjl3-tyaaa-aaaaa-aaaba-cai");const it=(await tt.request({canisterId:et??Principal$1.from("ryjl3-tyaaa-aaaaa-aaaba-cai"),agent:this,paths:["time"]})).get("time");it&&(this._timeDiffMsecs=Number(it)-Number(rt))}catch(nt){console.error("Caught exception while attempting to sync time:",nt)}}async status(){const et=this._credentials?{Authorization:"Basic "+btoa(this._credentials)}:{},tt=await this._requestAndRetry(()=>this._fetch(""+new URL("/api/v2/status",this._host),Object.assign({headers:et},this._fetchOptions)));return decode$1(await tt.arrayBuffer())}async fetchRootKey(){return this._rootKeyFetched||(this.rootKey=(await this.status()).root_key,this._rootKeyFetched=!0),this.rootKey}invalidateIdentity(){this._identity=null}replaceIdentity(et){this._identity=Promise.resolve(et)}_transform(et){let tt=Promise.resolve(et);for(const rt of this._pipeline)tt=tt.then(nt=>rt(nt).then(it=>it||nt));return tt}}var ProxyMessageKind;(function($){$.Error="err",$.GetPrincipal="gp",$.GetPrincipalResponse="gpr",$.Query="q",$.QueryResponse="qr",$.Call="c",$.CallResponse="cr",$.ReadState="rs",$.ReadStateResponse="rsr",$.Status="s",$.StatusResponse="sr"})(ProxyMessageKind||(ProxyMessageKind={}));function getDefaultAgent(){const $=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.ic.agent:global.ic.agent:window.ic.agent;if(!$)throw new Error("No Agent could be found.");return $}const wasmBytesBase64="AGFzbQEAAAABXg9gAn9/AGABfwBgAX8Bf2ADf39/AGACf38Bf2ADf39/AX9gBH9/f38AYAF/AX5gBX9/f39/AGAAAX9gBn9/f39/fwBgBn9/f39/fwF/YAJ/fwF+YAV/fn5+fgBgAAAD3wHdAQIAAAABAwoAAAAIBgQAAwEDAAEBAQAAAQAJAQMAAwEACAEDAwQAAwsADAIBAAEADQMEAAAAAgEBAAABAwABAQMEAAEBAQEBAQEAAAMBAgUABAEFBAEBAgIEAwQDAAAAAwAAAAABDgABAgAAAAEAAwMAAQMAAwYCAAAABAABAAABAQYBAwAAAgICAgIBAAMABAACAQAAAwAAAAAAAQEBAQIAAAEEAQMAAAABAAAEAgABAQEBAQEBAQEBBAQAAgMAAAABAAICAAIEBAEBAgICAgAEBQQEAgIJBwcHAQMDBAUBcAESEgUDAQARBgkBfwFBgIDAAAsHNwQGbWVtb3J5AgAIYmxzX2luaXQA1gEKYmxzX3ZlcmlmeQAnEV9fd2JpbmRnZW5fbWFsbG9jAGgJIQEAQQELEcgBQdoBTroBQH/XAdgBgAEcJVy7AccB2gHZAQr44QLdAd0hAg9/AX4jAEEQayIIJAACQAJAIABB9QFPBEBBgIB8QQhBCBCjAUEUQQgQowFqQRBBCBCjAWprQXdxQQNrIgJBAEEQQQgQowFBAnRrIgUgAiAFSRsgAE0NAiAAQQRqQQgQowEhBEHgu8AAKAIARQ0BQQAgBGshAQJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQQYgBEEIdmciAGt2QQFxIABBAXRrQT5qC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jAEHADWsiAiQAAkACQAJAAkACQAJAAkACQAJAIAAoAoAGIgVBAUcEQCABKAKABiIGQQFGDQkgBkEDSw0BIAVBfnFBAkYNAiACIAAQjAEgAkGAAmoiBEE4ENABGiACQQE2ArgCIAJBwAJqQTgQ0AEaIAJB+AJqQQE2AgAgAkGAA2pBOBDQARogAkG4A2pBATYCACACQcADakE4ENABGiACQfgDakEBNgIAIAJBgARqQTgQ0AEaIAJBATYCuAQgAkHABGpBOBDQARogAkH4BGpBATYCACACQYAFakE4ENABGiACQbgFakEBNgIAIAJBwAVqQTgQ0AEaIAJB+AVqQQE2AgAgAkGABmoiB0E4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAJBgAhqIgMgABCMASACQYAKakE4ENABGiACQQE2ArgKIAJBwApqQTgQ0AEaIAJB+ApqQQE2AgAgAkGAC2pBOBDQARogAkG4C2pBATYCACACQcALakE4ENABGiACQfgLakEBNgIAIAIgARAYIAMgAEGAAmoiBhCXASADELABIAQgAxCWASAEIAEQGCADIAYQlgEgAyAAQYAEaiIFEJcBIAMQsAEgByADEJYBIAEoAoAGQQJGDQMgAkHADGoiAyABQYAFahBeIAJBgAZqIAMQpgEMBAsgACABEG0MCAsgAiAAEIwBIAJBgAJqQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADakE4ENABGiACQbgDakEBNgIAIAJBwANqQTgQ0AEaIAJB+ANqQQE2AgAgAkGABGpBOBDQARogAkEBNgK4BCACQcAEakE4ENABGiACQfgEakEBNgIAIAJBgAVqQTgQ0AEaIAJBuAVqQQE2AgAgAkHABWpBOBDQARogAkH4BWpBATYCACACQYAGakE4ENABGiACQQE2ArgGIAJBwAZqQTgQ0AEaIAJB+AZqQQE2AgAgAkGAB2pBOBDQARogAkG4B2pBATYCACACQcAHakE4ENABGiACQfgHakEBNgIAIAIgARAYAkAgASgCgAZBBEYNACAAKAKABkEERg0AIAJBgARqIgMgAEGAAmoQlgEgAyABQYACahAYDAYLIAJBwAxqIgdBOBDQARogAkEBNgL4DCACQYANakE4ENABGiACQbgNakEBNgIAIAJBgAhqIgRBOBDQARogAkEBNgK4CCACQcAIakE4ENABGiACQfgIakEBNgIAIAJBgApqIgMgAEGAA2oiBRBeIAQgAxCZASADIAFBgANqIgYQXiAEIAMQESAHELYBIAEoAoAGQQRHDQMMBAsgACABEAMMBgsgAkHADGoiAyABQYAFahBeIAJBgAxqIgQgA0HAABDRARogAkGABmogBBCnAQsgAkGABmoQZCACQYAIaiIDIAIQlgEgAxArIAJBgAJqIgQgAxCXASAGIAQQlgEgAkGABGoiByADEJYBIAMgABCWASADIAUQlwEgAxCwASACQYAKaiIEIAEQlgEgBCABQYAEahCXASAEELABIAMgBBAYIAcgAxCXASADIAUQlgECQCABKAKABkECRwRAIAJBwAxqIgMgAUGABWoQXiACQYAIaiADEKYBDAELIAJBwAxqIgMgAUGABWoQXiACQYAMaiIBIANBwAAQ0QEaIAJBgAhqIAEQpwELIAJBgAhqIgEQZCACQYAKaiIDIAEQlgEgAxArIAUgAkGABGoQlgEgBSADEJcBIAJBgAZqIgQgAxCXASABEGQgBiABEJcBIAQQsAEgBBBkIAAgAhCWASAAIAQQlwEMAwsgAkGACmoiAyAFEF4gAkHADGoiBCADEJkBIAMgAUGAAmoQXiAEIAMQEQsgACgCgAZBBEcEQCACQYAKaiIDIABBgAJqEF4gAkHADGoiBCADEJkBIAMgBhBeIAQgAxARCyACQYAEaiIDIAJBwAxqIAJBgAhqEKUBIAMQZAsgAkGACGoiAyAAEIwBIAJBgApqIgQgARCMASADIABBgAJqIgUQlwEgAxCwASAEIAFBgAJqIggQlwEgBBCwASACQYACaiIJIAMQlgEgCSAEEBggAyAFEJYBIAMgAEGABGoiBhCXASADELABIAQgCBCWASAEIAFBgARqIggQlwEgBBCwASACQYAGaiIHIAMQlgEgByAEEBggAyACEJY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iByQAIAdBgAFqIgkgARBeIAggCRCZASAJIAFBgAFqEF4gByAJEF4gCSABQYACahBeIAUgCRCZASAGIAcQmQEgBiAFEBEgCBAtIAcQLSAFEC0gBhC4ASAGEDYgBhCpASAGEHwgBhCpASAFQQwQqwEgCEEDEKsBIAUQfCAFEKkBIAUgBxB7IAUQqQEgARASIAdBgAJqJAAgCCACEKoBIAYgAxCqASAEQYAJaiIBIAYgBRCVASAEIAEQlgEgASAIEKEBIAogARCWASAKEGQgACAEIAsgChB1IABBAzYCgAYgBEGAC2okAAuBBQELfyMAQTBrIgIkACACQSRqQai1wAA2AgAgAkEDOgAoIAJCgICAgIAENwMIIAIgADYCICACQQA2AhggAkEANgIQAkACQAJAIAEoAggiCkUEQCABQRRqKAIAIgRFDQEgASgCACEDIAEoAhAhACAEQQFrQf////8BcUEBaiIHIQUDQCADQQRqKAIAIgQEQCACKAIgIAMoAgAgBCACKAIkKAIMEQUADQQLIAAoAgAgAkEIaiAAQQRqKAIAEQQADQMgAEEIaiEAIANBCGohAyAFQQFrIgUNAAsMAQsgAUEMaigCACIARQ0AIABBBXQhCyAAQQFrQf///z9xQQFqIQcgASgCACEDA0AgA0EEaigCACIABEAgAigCICADKAIAIAAgAigCJCgCDBEFAA0DCyACIAUgCmoiBEEcai0AADoAKCACIARBBGopAgBCIIk3AwggBEEYaigCACEGIAEoAhAhCEEAIQlBACEAAkACQAJAIARBFGooAgBBAWsOAgACAQsgBkEDdCAIaiIMKAIEQQ9HDQEgDCgCACgCACEGC0EBIQALIAIgBjYCFCACIAA2AhAgBEEQaigCACEAAkACQAJAIARBDGooAgBBAWsOAgACAQsgAEEDdCAIaiIGKAIEQQ9HDQEgBigCACgCACEAC0EBIQkLIAIgADYCHCACIAk2AhggCCAEKAIAQQN0aiIAKAIAIAJBCGogACgCBBEEAA0CIANBCGohAyALIAVBIGoiBUcNAAsLQQAhACAHIAEoAgRJIgNFDQEgAigCICABKAIAIAdBA3RqQQAgAxsiASgCACABKAIEIAIo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EFUgASAEEH0gA0HAE2oiARA9IAEgBBB9IAEQogEgA0HAAWogA0GIAWoQUEECayECA0AgAkEBakEBTQRAIANBuA1qIgEQngEgACABQYgGENEBGgUgA0G4DWoQGiADQcAWaiADQbgKaiADQbgJaiADQfgJahALAkACQAJAIANBwAFqIAIQUyADQYgBaiACEFNrQQFqDgMBAgACCyADQcgcaiIBIANBuApqIANB+ARqIANBuAlqIANB+AlqEAogA0HAFmogARADDAELIANByBxqIgEgA0G4CmogA0HAE2ogA0G4CWogA0H4CWoQCiADQcAWaiABEAMLIAJBAWshAiADQbgNaiADQcAWahABDAELCwsgA0HQImokAAvBAwEVfwNAIANBwAFGBEACQCAAQShqIQsgAEEUaigCACIMIQggAEEQaigCACINIQIgAEEMaigCACIOIQEgACgCCCIPIQMgAEEYaigCACIQIQogAEEcaigCACIRIQQgAEEgaigCACISIQcgAEEkaigCACITIQYDQCAHIQkgBCEHIAohBCAFQYACRg0BIAEgAnEhFCABIAJzIRUgBSALaigCACAFQcCiwABqKAIAIAkgBEF/c3EgBCAHcXIgBmogBEEadyAEQRV3cyAEQQd3c2pqaiIGIAhqIQogBUEEaiEFIAIhCCABIQIgAyIBQR53IAFBE3dzIAFBCndzIBQgASAVcXNqIAZqIQMgCSEGDAALAAsFIAAgA2oiAkHoAGogAkEoaigCACACQcwAaigCACACQeAAaigCACIBQQ93IAFBDXdzIAFBCnZzamogAkEsaigCACIBQRl3IAFBDndzIAFBA3ZzajYCACADQQRqIQMMAQsLIAAgBiATajYCJCAAIAkgEmo2AiAgACAHIBFqNgIcIAAgBCAQajYCGCAAIAggDGo2AhQgACACIA1qNgIQIAAgASAOajYCDCAAIAMgD2o2AggL5AEBAn8jAEGAA2siAyQAIAMQPSAAIAEgAkEfdSIEIAJzIARBf3NqQQJtIgJBAWtBH3YQbyAAIAFBgANqIAJBAXNBAWtBH3YQbyAAIAFBgAZqIAJBAnNBAWtBH3YQbyAAIAFBgAlqIAJBA3NBAWtBH3YQbyAAIAFBgAxq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BIAUgABCZASAFIAIQESAAIAQQmQEgABCpASAAIAUQESAAELgBIAAQqQEgByAGEJkBIAcQqQEgAkGABmokAAu8AgEGfyMAQYAIayIBJAAgASAAEIwBIAFBgAJqIgMgAEGABGoiBRCMASABQYAEaiIEIABBgAJqIgYQjAEgAUGABmoiAkE4ENABGiABQQE2ArgGIAFBwAZqQTgQ0AEaIAFB+AZqQQE2AgAgAUGAB2pBOBDQARogAUG4B2pBATYCACABQcAHakE4ENABGiABQfgHakEBNgIAIAAQISACIAAQlgEgAiAAEJcBIAAgAhCXASAAELABIAEQyQEgARCzASAAIAEQlwEgAxAhIAMQZCACIAMQlgEgAiADEJcBIAMgAhCXASADELABIAQQISACIAQQlgEgAiAEEJcBIAQgAhCXASAEELABIAYQsgEgBhCzASAFEMkBIAUQswEgBiADEJcBIAUgBBCXASAAQQU2AoAGIAAQnAEgAUGACGokAAv/AQEHfyMAQcACayIBJAAgASAAQUBrIgYQkAEgARBMIAFBQGsiAyAGEJABIAMgAEGAAWoiAhBKIAFBgAFqIgQgAhCQASAEEEwgAiABEK4BIAIgARB3IAIQQiACEIIBIAIQggEgAhBCIARBDBA0IAFBwAFqIgcgBBCQASAHIAIQSiABQYACaiIFIAEQkAEgBSAEEHcgBRBCIAIgAxBKIAMgBBCuASADIAQQdyAEIAMQdyABIAQQfiABEEIgBSABEEogBSAHEHcgAyAAEK4BIAMgBhBKIAAgARCuASAAEEIgACADEEogABCCASAAEEIgBiAFEK4BIAYQQiABQcACaiQAC84CAgd/An4CQAJAAkBBDSABQTpuIgJrIgRBDU0EQEEMIAJrIgNBDk8NASAAIAAgA0EDdGopAwBBOiABIAJBOmxrIgNrrSIKhyAAIARBA3RqKQMAIAOtIgmGhDcDaCAEQQ1rIQUgAEHgAGohBCACQQFqIQZBACACQQN0ayEHQQshAwNAAkAgA0ECaiAGTQRAIAFBrAZPDQEgACACQQN0aiAAKQMAIAmGQv//////////A4M3AwADQCACRQ0HIABCADcDACACQQFrIQIgAEEIaiEADAALAAsgAyAFakEOTw0EIAQgBCAHaiIIQQhrKQMAIAqHIAgpAwAgCYZC//////////8Dg4Q3AwAgA0EBayEDIARBCGshBAwBCwsgAkEOQYCywAAQOwALIARBDkHQscAAEDsACyADQQ5B4LHAABA7AAtBf0EOQfCxwAAQOwALC6cCAQR/IABCADcCECAAAn9BACABQYACSQ0AGkEfIAFB////B0sNABogAUEGIAFBCHZnIgNrdkEBcSADQQF0a0E+agsiBDYCHCAEQQJ0Qey9wABqIQMgACECAkACQAJAAkBB4LvAACgCACIAQQEgBHQiBXEEQCADKAIAIQMgBBCfASEAIAMQywEgAUcNASADIQAMAgtB4LvAACAAIAVyNgIAIAMgAjYCAAwDCyABIAB0IQQDQCADIARBHXZBBHFqQRBqIgUoAgAiAEUNAiAEQQF0IQQgACIDEMsBIAFHDQALCyAAKAIIIgEgAjYCDCAAIAI2AgggAiAANgIMIAIgATYCCCACQQA2AhgPCyAFIAI2AgALIAIgAzYCGCACIAI2AgggAiACNgIMC7YCAQV/IAAoAhghBAJAAkAgACAAKAIMRgRAIABBFEEQIABBFGoiASgCACIDG2ooAgAiAg0BQQAhAQwCCyAAKAIIIgIgACgCDCIBNgIMIAEgAjYCCAwBCyABIABBEGogAxshAwNAIAMhBSACIgFBFGoiAygCACICRQRAIAFBEGohAyABKAIQIQILIAINAAsgBUEANgIACwJAIARFDQACQCAAIAAoAhxBAnRB7L3AAGoiAigCAEcEQCAEQRBBFCAEKAIQIABGG2ogATYCACABDQEMAgsgAiABNgIAIAENAEHgu8AAQeC7wAAoAgBBfiAAKAIcd3E2AgAPCyABIAQ2AhggACgCECICBEAgASACNgIQIAIgATYCGAsgAEEUaigCACIARQ0AIAFBFGogADYCACAAIAE2AhgLC+UBAQZ/IwBBgARrIgIkACACIAAQXiACQYABaiIFIABBgAFqIgYQXiACQYACaiIDQTgQ0AEaIAJBATYCuAIgAkHAAmpBOBDQARogAkH4AmpBATYCACACQYADaiIEIAYQXiACIAEQESAFIAFBgAFqIgcQESADIAcQmQEgAyABEJoBIAQgABCaASADEKkBIAQQqQEgBCADEBEgAyACEJkBIAMQNiAEIAMQmgEgBBCpASADIAUQmQEgAxA2IAYgBBCZASAGIAMQmgEgBRB8IAAgBRCZASAAIAIQmgEgABCwASACQYAEaiQAC28BDH9BjL/AACgCACICRQRAQZy/wABB/x82AgBBAA8LQYS/wAAhBgNAIAIiASgCCCECIAEoAgQhAyABKAIAIQQgAUEMaigCABogASEGIAVBAWohBSACDQALQZy/wAAgBUH/HyAFQf8fSxs2AgBBAAuAAgEGfyMAQYAIayIBJAAgACgCgAZBAUcEQCABIAAQjAEgAUGAAmoiAiAAQYACaiIEEIwBIAFBgARqIgUgAEGABGoiAxCMASABQYAGaiIGIAAQjAEgARAhIAIgAxAYIAIQswEgAhCwASAFECEgBiAEEBggBhCzASADIAAQlwEgAyAEEJcBIAMQsAEgAxAhIAAgARCWASABIAIQlwEgARCwASABIAUQlwEgASAGEJcBIAEQsAEgARArIAIQZCAFEGQgACACEJcBIAQgBRCWASAEIAYQlwEgAyABEJcBIABBBEEFIAAoAoAGQX5xQQJGGzYCgAYgABCdAQsgAUGACGokAAuZAgEBfyMAQYANayIDJAAgAyABEGkgAxCdASADQYgGaiIBIAIQXSABEEIgA0HABmoiAiABEF0gAkEDECkaIAIQQiADQfgGaiADEGkCQCACEFdFBEAgA0HABmoQKkECayECA0AgAkEBakEBTQRAIANB+AZqIgEQnAEMAwUgA0H4BmoQEwJAAkACQCADQcAGaiACEFMgA0GIBmogAhBTa0EBag4DAQIAAgsgA0H4BmogAxAHDAELIAMQngEgA0H4BmogAxAHIAMQngELIAJBAWshAgwBCwALAAsgA0H4BmoiARC3ASABQYABahC2ASABQYACahCxASABQYAEahCxASABQQE2AoAGCyAAIAFBiAYQ0QEaIANBgA1qJAALhgICBH8BfiMAQTBrIgIkACABQQRqIQQgASgCBEUEQCABKAIAIQMgAkEQaiIFQQA2AgAgAkIBNwMIIAIgAkEIajYCFCACQShqIANBEGopAgA3AwAgAkEg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QALQYC0wABBH0HEs8AAEFkACyAAQQE2AjggAUHwAGokAAvuAQECfyMAQbABayIDJAAgA0EwENABIQMCQAJAA0AgAkEwRgRAIANBMGogAxBwIAFBMGohAUEAIQIDQCACQTBGDQMgAkEwRg0EIAIgA2ogASACai0AADoAACACQQFqIQIMAAsACyACQeAARwRAIAIgA2ogASACai0AADoAACACQQFqIQIMAQsLQeAAQeAAQYCmwAAQOwALIANB8ABqIgEgAxBwIABBOBDQASIAQQE2AjggAEFAa0E4ENABIABB+ABqQQE2AgAgACABEK4BIANBMGoQrgEgA0GwAWokAA8LIAJBMGpB4ABBkKbAABA7AAuPAgEDfyMAQSBrIgUkAEEBIQZB2LvAAEHYu8AAKAIAIgdBAWo2AgACQEGgv8AALQAABEBBpL/AACgCAEEBaiEGDAELQaC/wABBAToAAAtBpL/AACAGNgIAAkACQCAHQQBIIAZBAktyDQAgBSAEOgAYIAUgAzYCFCAFIAI2AhBBzLvAACgCACICQQBIDQBBzLvAACACQQFqIgI2AgBBzLvAAEHUu8AAKAIAIgMEf0HQu8AAKAIAIAUgACABKAIQEQAAIAUgBSkDADcDCCAFQQhqIAMoAhQRAABBzLvAACgCAAUgAgtBAWs2AgAgBkEBSw0AIAQNAQsACyMAQRBrIgIkACACIAE2AgwgAiAANgIIAAucAQEEfyMAQYADayICJAAgAiAAEF4gAkGAAWoiASAAQYABaiIEEF4gAkGAAmoiAyAAEF4gAyAEEBEgAiAEEJoBIAEQfCABIAAQmgEgAhCpASABEKkBIAAgAhCZASAAIAEQESABIAMQmQEgARB8IAEgAxCaASABEKkBIAEQNiAAIAEQmgEgAxC4ASAEIAMQmQEgABCwASACQYADaiQAC7kBAQJ/IwBBIGsiAyQAAkAgASABIAJqIgFLDQAgAEEEaigCACICQQF0IgQgASABIARJGyIBQQggAUEISxshAQJAIAIEQCADQRhqQQE2AgAgAyACNgIUIAMgACgCADYCEAwBCyADQQA2AhALIAMgASADQRBqECYgAygCAARAIANBCGooAgAiAEUNASADKAIEIAAQzwEACyADKAIEIQIgAEEEaiABNgIAIAAgAjYCACADQSBqJAAPCxBlAAusAQECfyMAQYADayIDJAAgA0EIaiABEJABAkAgAgRAIANBCGogAhCuAQwBCyADQQhqEDoLIANByABqIgJB8LTAABBJIANBgAFqIAIQjgEgA0HAAWoiAiADQQhqIgQQkAEgAhBMIAIgARBKIAAgARCQASAAIAQQSiADQYACaiACEJABIAAQViEBIANBwAJqIgIgABCQASACEEMgAhBCIAAgAiABEHIgA0GAA2okAAueAQEFfyMAQYABayICJAAgAkE4ENABIgJBATYCOCACQUBrIgNBOBDQARogAkEBNgJ4IAIgABCuASACIAFBgAFqIgUQSiADIAEQrgEgAyAAQYABaiIGEEoCQCACIAMQWEUNACACIABBQGsQrgEgAiAFEEogAkFAayIAIAFBQGsQrgEgACAGEEogAiAAEFhFDQBBASEECyACQYABaiQAIAQLpwEBA38jAEEwayICJAAgAUEEaiEDIAEoAgRFBEAgASgCACEBIAJBEGoiBEEANgIAIAJCATcDCCACIAJBCGo2AhQgAkEoaiABQRBqKQIANwMAIAJBIGogAUEIaikCADcDACACIAEpAgA3AxggAkEUaiACQRhqEAwaIANBCGogBCgCADYCACADIAIpAwg3AgALIABBhLfAADYCBCAAIAM2AgAgAkEwaiQAC5UBAQJ/AkACQAJAAkACfwJAAkACf0EBIgMgAUEASA0AGiACKAIAIgRFDQEgAigCBCICDQQgAQ0CQQEMAwshA0EAIQEMBgsgAQ0AQQEMAQsgAUEBELkBCyICRQ0BDAILIAQgARCsASICDQELIAAgATYCBEEBIQEMAQsgACACNgIEQQAhAwsgACADNgIAIABBCGogATYCAAvvMwISfwV+IwBBMGsiDiQAIA5BEGogACABEFsgDiAOKAIUIgA2AhwgDiAOKAIQIgg2AhggDkEIaiACIAMQWyAOIA4oAgwiATYCJCAOIA4oAggiAzYCICAOIAQgBRBbIA4gDigCBCIFNgIsIA4gDigCACINNgIoIAAhBCMAQZAVayICJAAjAEGwBmsiCiQAIApBEGpBOBDQARogCkHQAGpBOBD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vIAcgBSkDACIEIAN8IgJC//////////8DgzcDACACIARUrSAFQQhqKQMAIANCP4d8fEIGhiACQjqIhCEDIAZBCGohBgwBCwsLigECA38BfiMAQUBqIgIkACACQQhqIgEgABBdIAEQQiACQThqIQFBBiEDQdwCIQACQAJAA0AgA0EATgRAIAEpAwAiBEIAUg0CIAFBCGshASAAQTprIQAgA0EBayEDDAELC0EAIQAMAQsDQCAEUA0BIABBAWohACAEQgJ/IQQMAAsACyACQUBrJAAgAAuHAQEDfyMAQYACayIBJAAgABCwASABIAAQXiABQYABaiICQTgQ0AEaIAFBATYCuAEgAUHAAWpBOBDQARogAUH4AWpBATYCACABIABBgAFqIgMQmgEgARA2IAIgARCZASACIAMQmgEgAyABEJkBIAMgABCaASAAIAIQmQEgABCwASABQYACaiQAC30CBH4BfyABQT9xrSECQTogAWtBP3GtIQRBACEBIAApAwAiBSEDA38gAUEwRgR/IAAgACkDMCAChzcDMCAFQn8gAoZCf4WDpwUgACABaiIGIAMgAocgBkEIaikDACIDIASGQv//////////A4OENwMAIAFBCGohAQwBCwsaC2kBBH8jAEHAAWsiASQAIAEgABCQASABQUBrIgIgABCQASABQYABaiIDIABBQGsiBBCQASABIAQQdyACIAAQdyACEEIgBCACEEogAxBDIAAgAxB3IAEQQiAAEEIgACABEEogAUHAAWokAAuCAQIBfwF+IABB8AAQ0AEhAANAIAJBOEYEQAJAIAAgASkDMCIDQjqHNwM4IAAgA0L//////////wODNwMwIABBQGshAEEAIQIDQCACQTBGDQEgACACakIANwMAIAJBCGohAgwACwALBSAAIAJqIAEgAmopAwA3AwAgAkEIaiECDAELCwtuAQZ+IAAgA0L/////D4MiBSABQv////8PgyIGfiIHIAUgAUIgiCIIfiIJIAYgA0IgiCIGfnwiBUIghnwiCjcDACAAIAcgClatIAYgCH4gBSAJVK1CIIYgBUIgiIR8fCABIAR+IAIgA358fDcDCAtqAgF/BX4gASkDCCAAKQMAhSIGQgGGQgGHIQdBACACa6whCAN+IANBOEYEfiAFBSAAI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NgIAIAQgBhCOASAFIAQQrgEQwQEgBEFAayQAIAIQqQEgAhB8IAIQqQEgACABEBEgACACEJoBIAAQtQEgA0HAAWokAAtZAQJ/IwBBQGoiAyQAIABBOBDQASIAQQE2AjgCQCABQQBOBEAgACABEJMBDAELIANBCGoiAkHAssAAEEkgAiABEJMBIAIQQiAAIAIQagsgABBUIANBQGskAAu9CAEKfyMAQYABayIHJAAgB0EIaiIDQcCywAAQSSADQQEQlAECQAJAA0AgAUEwRgRAIANBMGogAykDMEIBhzcDACADQThqIQEDQCACRQ0EIAFCADcDACACQQFrIQIgAUEIaiEBDAALAAsgAUE4Rg0BIAFBOEcEQCABIANqIAEgA2oiBEEIaikDAEI5hkL//////////wODIAQpAwBCAYeENwMAIAVBAWohBSABQQhqIQEMAQsLQQdBB0GEm8AAEDsACyAFQQdB9JrAABA7AAsgA0EBEJQBIANBARAsIAdBQGshBUEAIQIjAEGgCmsiASQAIAFBOBDQASIBQUBrQTgQ0AEhBiABQYABakE4ENABGiABQcABakE4ENABGiABQYACakE4ENABGiABQcACakE4ENABGiABQYADakE4ENABGiABQcADakE4ENABGiABQYAEakE4ENABGiABQcAEakE4ENABGiABQYAFakE4ENABGiABQcAFakE4ENABGiABQYAGakE4ENABGiABQcAGakE4ENABGiABQYAHakE4ENABGiABQcAHakE4ENABGiABQfgHakEBNgIAIAFBuAdqQQE2AgAgAUH4BmpBATYCACABQbgGakEBNgIAIAFB+AVqQQE2AgAgAUG4BWpBATYCACABQfgEakEBNgIAIAFBuARqQQE2AgAgAUH4A2pBATYCACABQbgDakEBNgIAIAFB+AJqQQE2AgAgAUG4AmpBATYCACABQfgBakEBNgIAIAFBuAFqQQE2AgAgAUH4AGpBATYCACABQQE2AjggAUGBCGpB5wAQ0AEaIAFB6AhqIgQgABCQASAEEEIgAUGoCWoiBCADEF0gBBBCIAQQKkEDaiIIQQJ2IgNBAWohCQJAA0AgAiAJRgRAIAEQygEgBiABQegIahCuASABQeAJakE4ENABGiABQQE2Apg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IAEQXiACEC0gAiADEHpFBEAgABCbAQsgA0GAAmokAAtUAQF/IwBBIGsiAiQAIAIgACgCADYCBCACQRhqIAFBEGopAgA3AwAgAkEQaiABQQhqKQIANwMAIAIgASkCADcDCCACQQRqIAJBCGoQDCACQSBqJAALZwAjAEEwayIBJABBpLvAAC0AAARAIAFBHGpBATYCACABQgI3AgwgAUGQtsAANgIIIAFBATYCJCABIAA2AiwgASABQSBqNgIYIAEgAUEsajYCICABQQhqQbi2wAAQZgALIAFBMGokAAtiAgF+An8gACkDACEBA34gACACaiIDIAFC//////////8DgzcDACABQjqHIQEgAkEoRgR+IAAgACkDMCABfCIBNwMwIAFCJIcFIAJBCGohAiADQQhqKQMAIAF8IQEMAQsLGgt8AQV/IwBBQGoiAyQAIANBCGoiAkHAssAAEEkgAiAAKAI4QQFrEDUiBBAoA0AgAUE4RwRAIAAgAWoiBSABIAJqKQMAIAUpAwB9NwMAIAFBCGohAQwBCwsgAEEBIARBAWp0IgI2AjggAkH///8PSgRAIAAQHgsgA0FAayQAC3sBAn8gAEEoaiECA0AgAUGAAkYEQCAAQufMp9DW0Ouzu383AgggAEIANwIAIABBIGpCq7OP/JGjs/DbADcCACAAQRhqQv+kuYjFkdqCm383AgAgAEEQakLy5rvjo6f9p6V/NwIABSABIAJqQQA2AgAgAUEEaiEBDAELCwtUACAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQARogAEH4AGpBATYCACAAQYABakE4ENABGiAAQbgBakEBNgIAIABBwAFqQTgQ0AEaIABB+AFqQQE2AgALWAECfyMAQUBqIgEkAAJAIAAQhgENACABQQEQOSAAQYABaiICIAEQWA0AIAJBABAzIAAgAhBKIAAQHiAAQUBrIgAgAhBKIAAQHiACIAEQrgELIAFBQGskAAtZAQJ/IwBBgAFrIgEkAAJAIAAQigENACABEFEgAEGAAmoiAiABEHoNACACED4gACACEBEgABC1ASAAQYABaiIAIAIQESAAELUBIAIgARCZAQsgAUGAAWokAAtbAgF+An8gACkDACEBA0AgACACai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GsncAAEGYACyACIAE2AgQgAiADNgIAIAVBADYCAAsgBEEgaiQAAkAgBSgCAARAIAVBCGooAgAiAEUNASAFKAIEIAAQzwEACyAFQRBqJAAMAQsQZQALCyAGQQhqIgEgAigCCDYCBCABIAIoAgA2AgAgACAGKQMINwMAIAZBIGokAAtGAQJ/IAEoAgQhAiABKAIAIQNBCEEEELkBIgFFBEBBCEEEEM8BAAsgASACNgIEIAEgAzYCACAAQZS3wAA2AgQgACABNgIACzEBAX8gAEE4ENABIQADQCACQThHBEAgACACaiABIAJqKQMANwMAIAJBCGohAgwBCwsLNgEBfyAAQTgQ0AEiAEEBNgI4IABBQGtBOBDQASAAQfgAakEBNgIAIAAgARCuASABQUBrEK4BCzsBAX8jAEEQayIDJAAgA0EIaiABQYQCIAIQgQEgAygCDCEBIAAgAygCCDYCACAAIAE2AgQgA0EQaiQACwsAIAAgAUE4ENsBCwsAIAAgAUE4ENwBCwwAIAAgAUHwABDbAQsMACAAIAFB8AAQ3AELOQECfyMAQYABayIBJAAgASAAQYABaiICEF4gAiAAEJkBIAEQfCAAIAEQmQEgABCwASABQYABaiQACz8BAX8jAEEgayIAJAAgAEEcakEANgIAIABBzLfAADYCGCAAQgE3AgwgAEH8t8AANgIIIABBCGpBhLjAABBmAAu8AgEDfyMAQSBrIgIkACACQQE6ABggAiABNgIUIAIgADYCECACQZS4wAA2AgwgAkGUuMAANgIIIwBBEGsiACQAIAJBCGoiASgCDCICRQRAQcC1wABBK0HktsAAEFkACyABKAIIIgRFBEBBwLXAAEErQfS2wAAQWQALIAAgAjYCCCAAIAE2AgQgACAENgIAIAAoAgAhASAAKAIEIQIgACgCCCEEIwBBEGsiACQAIAFBFGooAgAhAwJAAn8CQAJAIAFBBGooAgAOAgABAwsgAw0CQQAhAUHAtcAADAELIAMNASABKAIAIgMoAgQhASADKAIACyEDIAAgATYCBCAAIAM2AgAgAEG4t8AAIAIoAgggBCACLQAQECAACyAAQQA2AgQgACABNgIAIABBpLfAACACKAIIIAQgAi0AEBAgAAswACAAQTgQ0AEiAEEBNgI4IABBQGtBARA5IABBgAFqQTgQ0AEaIABBuAFqQQE2AgALKwACQCAAQXxLDQAgAEUEQEEEDwsgACAAQX1JQQJ0ELkBIgBFDQAgAA8LAAs4ACAAEIsBIAAgARCWASAAQYACaiABQYACahCWASAAQYAEaiABQYAEahCWASAAIAEoAoAGNgKABgsoAQF/A0AgAkE4RwRAIAAgAmogASACaikDADcDACACQQhqIQIMAQsLC4QJAg1/Cn4jAEFAaiILJAAgC0EIaiIJQcCywAAQSSMAQZACayICJAAgAEEwENABIQogAkHoAGpB8AAQ0AEaIAJB4AFqQTAQ0AEaIAoQcSACIAEiDCkDACIQQv3/8//P///5AX5C//////////8DgyISNwPYASACQdgAaiASQgAgCSkDACIXIBdCP4ciGBAvIBAgAikDWCIPfCITIA9UrSACQeAAaikDACAQQj+HfHwiEEI6hyABKQMIIg9CP4d8IA8gEEIGhiATQjqIhCITfCIQIBNUrXwhD0EBIQBCACETAkACQANAAkAgAEEHRgRAQQYhB0EAIQhBByEADAELIABBAXYiAUEBaiEGIAggAWshAyABQQN0IgFBCGohBCAHIAFrIQUgAkHIAGogCSAAQQN0Ig1qKQMAIhUgFUI/hyIWIBJCABAvIAJB0ABqKQMAIBAgECATfCIRVq0gDyAUfHx8IBEgAikDSHwiDyARVK18IRAgAEEBaiEBA0AgACAGTQRAIAJB2AFqIA1qIA9C/f/z/8////kBfkL//////////wODIhE3AwAgAkE4aiARQgAgFyAYEC8gAkEoaiARQgAgFSAWEC8gAkHoAGogAEEEdGoiACACQTBqKQMAIhE3AwggACACKQMoIhU3AwAgDyACKQM4IhZ8Ig8gFlStIAJBQGspAwAgEHx8IhBCOocgDCABQQN0aikDACIWQj+HfCAWIBBCBoYgD0I6iIQiD3wiECAPVK18IQ8gEyAVfCITIBVUrSARIBR8fCEUIAdBCGohByAIQQFqIQggASEADAMLIANBB08NAyACQRhqIAQgCWopAwAgBSAJaikDAH0iESARQj+HIAJB2AFqIg4gBWopAwAgBCAOaikDAH0iESARQj+HEC8gAikDGCIRIA98Ig8gEVStIAJBIGopAwAgEHx8IRAgBkEBaiEGIARBCGohBCAFQQhrIQUgA0EBayEDDAALAAsLA0ACQAJAIABBDUcEQCAHIABBAXYiBmshAyAIIAZBA3QiAWshBCABQQhqIQUgDyAUfCAQIBN8Ig8gEFStfCEQIABBAWohAQNAIAZBBUsNAyADQQdPDQIgAkEIaiAFIAlqKQMAIAQgCWpBMGopAwB9IhIgEkI/hyACIARqQYgCaikDACACQdgBaiAFaikDAH0iEiASQj+HEC8gAikDCCISIA98Ig8gElStIAJBEGopAwAgEHx8IRAgBkEBaiEGIARBCGshBCADQQFrIQMgBUEIaiEFDAALAAsgCiAQQv//////////A4M3AzAgAkGQAmokAAwECyADQQdBpJzAABA7AAsgAEEDdCAKakE4ayAPQv//////////A4M3AwAgEEI6hyAMIAFBA3RqKQMAIhJCP4d8IBIgEEIGhiAPQjqIhCIPfCIQIA9UrXwhDyAUIABBBHQgAmpBCGoiAEEIaikDAH0gEyAAKQMAIhJUrX0hFCAIQQhqIQggB0EBaiEHIBMgEn0hEyABIQAMAAsACyADQQdBlJzAABA7AAsgC0FAayQACy4BAX8jAEGAAWsiASQAIAAQRSABEFEgACABEJkBIABBgAFqELYBIAFBgAFqJAALMwAgACABEJYBIABBgAJqIAFBgAJqEJYBIABBgARqIAFBgARqEJYBIAAgASgCgAY2AoAGCygAIAAgASACEHIgAEFAayABQUBrIAIQciAAQYABaiABQYABaiACEHILLQAgACABIAIQjQEgAEGAAWogAUGAAWogAhCNASAAQYACaiABQYACaiACEI0BCycBAn8jAEFAaiICJAAgAkEIaiIDIAEQvgEgACADEI4BIAJBQGskAAsiAQF/A0AgAUE4RwRAIAAgAWpCADcDACABQQhqIQEMAQsLCyUAIAAgASACEDAgAEEAIAJrIAAoAjgiACABKAI4c3EgAHM2AjgLJwAgACAAKAIEQQFxIAFyQQJyNgIEIAAgAWoiACAAKAIEQQFyNgIECyMAA0AgAgRA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ABahB2BUEACwsYAQF/IAAQiAEEfyAAQYABahCIAQVBAAsLFQEBfyAAEHYEfyAAQUBrEHYFQQALCxoBAX8gABBWIgEgAEFAaxBWIAFzIAAQdnFzCxgBAX8gABCIAQR/IABBgAJqEIgBBUEACwseACAAEEUgAEGAAmoQRSAAQYAEahBFIABBADYCgAYLHAAgABBFIAAgARCZASAAQYABaiABQYABahCZAQsYACAAIAEgAhByIABBQGsgAUFAayACEHILGgAgAEE4ENABIgBBATYCOCAAIAEQaiAAEFQLFAAgABBCIAAoAgBBfyABdEF/c3ELGQAgAEE4ENABIgAgARBqIAAgASgCODYCOAsZAQF/IAAoAhAiAQR/IAEFIABBFGooAgALCxgAIAAQwQEgAEFAaxDKASAAQYABahDBAQsUACAAEEIgACAAKQMAIAGsfDcDAAsUACAAEEIgACAAKQMAIAGsfTcDAAsYACAAEEUgACABEJkBIABBgAFqIAIQmQELGAAgACABEJkBIABBgAFqIAFBgAFqEJkBCxgAIAAgARCaASAAQYABaiABQYABahCaAQsYACAAEKQBIABBgAFqIgAQpAEgACABEBELFgAgACABEK4BIABBQGsgAUFAaxCuAQsUACAAIAEQdyAAQUBrIAFBQGsQdwsZACAAELYBIABBgAFqELcBIABBgAJqELYBCxkAIAAQrwEgAEGAAmoQrwEgAEGABGoQrwELGQAgABCwASAAQYACahCwASAAQYAEahCwAQsZACAAELIBIABBgAJqEMkBIABBgARqELIBCxIAQQBBGSAAQQF2ayAAQR9GGwsWACAAIAFBAXI2AgQgACABaiABNgIACxYAIAAQRSAAIAEQmQEgAEGAAWoQtgELFgAgAEGAAWoiABCpASAAEDYgABCpAQsQACAAIAFqQQFrQQAgAWtxCw8AIABBQGsiABBDIAAQQgsUACAAIAEQmQEgAEGAAWogAhCZAQsSACAAIAEQESAAQYABaiABEBELFAAgACABEKoBIABBgAFqIAEQqgELCwAgAQRAIAAQBAsLDQAgABBCIABBQGsQQgsRACAAIAEQSiAAQUBrIAEQSgsRACAAIAEQNCAAQUBrIAEQNAu+BQ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CHENBEEAIQAgAyACayICIQNBASABLQAgIgcgB0EDRhtBA3FBAWsOAgECAwtBASEAIAEgBCAFEFINBAwFC0EAIQMgAiEADAELIAJBAXYhACACQQFqQQF2IQMLIABBAWohACABQRxqKAIAIQcgASgCBCECIAEoAhghCgJAA0AgAEEBayIARQ0BIAogAiAHKAIQEQQARQ0AC0EBDAQLQQEhACACQYCAxABGDQEgASAEIAUQUg0BIAEoAhggCCAJIAEoAhwoAgwRBQANASABKAIcIQQgASgCGCEBQQAhAAJ/A0AgAyAAIANGDQEaIABBAWohACABIAIgBCgCEBEEAEUNAAsgAEEBawsgA0khAAwBCyABKAIEIQcgAUEwNgIEIAEtACAhCkEBIQAgAUEBOgAgIAEgBCAFEFINAEEAIQAgAyACayICIQMCQAJAAkBBASABLQAgIgQgBEEDRhtBA3FBAWsOAgABAgtBACEDIAIhAAwBCyACQQF2IQAgAkEBakEBdiEDCyAAQQFqIQAgAUEcaigCACECIAEoAgQhBCABKAIYIQUCQANAIABBAWsiAEUNASAFIAQgAigCEBEEAEUNAAtBAQwDC0EBIQAgBEGAgMQARg0AIAEoAhggCCAJIAEoAhwoAgwRBQANACABKAIcIQAgASgCGCEFQQAhAgJAA0AgAiADRg0BIAJBAWohAiAFIAQgACgCEBEEAEUNAAtBASEAIAJBAWsgA0kNAQsgASAKOgAgIAEgBzYCBEEADAILIAAMAQsgASgCGCAIIAkgAUEcaigCACgCDBEFAAsgBkEwaiQACwsAIAAQNiAAELABCysCAX8BfkIBIQIDQCAAIAFqIAI3AwBCACECIAFBCGoiAUE4Rw0ACyAAEFQLCgAgACgCBEF4cQsKACAAKAIEQQFxCwoAIAAoAgxBAXELCgAgACgCDEEBdgsZACAAIAFByLvAACgCACIAQQIgABsRAAAAC58BAQN/AkAgASICQQ9NBEAgACEBDAELIABBACAAa0EDcSIEaiEDIAQEQCAAIQEDQCABQQA6AAAgAUEBaiIBIANJDQALCyADIAIgBGsiAkF8cSIEaiEBIARBAEoEQANAIANBADYCACADQQR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kBAAAJAAAAbGlicmFyeS9zdGQvc3JjL3Bhbmlja2luZy5yc0gbEAAcAAAARgIAAB8AAABIGxAAHAAAAEcCAAAeAAAABwAAAAwAAAAEAAAACAAAAAMAAAAIAAAABAAAAAkAAAAKAAAAEAAAAAQAAAALAAAADAAAAAMAAAAIAAAABAAAAA0AAAAOAAAAbGlicmFyeS9hbGxvYy9zcmMvcmF3X3ZlYy5yc2NhcGFjaXR5IG92ZXJmbG93AAAA6BsQABEAAADMGxAAHAAAAAUCAAAFAAAAEAAAAAAAAAABAAAAEQAAAGluZGV4IG91dCBvZiBib3VuZHM6IHRoZSBsZW4gaXMgIGJ1dCB0aGUgaW5kZXggaXMgAAAkHBAAIAAAAEQcEAASAAAAMDAwMTAyMDMwNDA1MDYwNzA4MDkxMDExMTIxMzE0MTUxNjE3MTgxOTIwMjEyMjIzMjQyNTI2MjcyODI5MzAzMTMyMzMzNDM1MzYzNzM4Mzk0MDQxNDI0MzQ0NDU0NjQ3NDg0OTUwNTE1MjUzNTQ1NTU2NTc1ODU5NjA2MTYyNjM2NDY1NjY2NzY4Njk3MDcxNzI3Mzc0NzU3Njc3Nzg3OTgwODE4MjgzODQ4NTg2ODc4ODg5OTA5MTkyOTM5NDk1OTY5Nzk4OTkgb3V0IG9mIHJhbmdlIGZvciBzbGljZSBvZiBsZW5ndGggbGlicmFyeS9jb3JlL3NyYy9zbGljZS9pbmRleC5yc3JhbmdlIGVuZCBpbmRleCAAAABxHRAAEAAAADAdEAAiAAAAUh0QAB8AAABJAAAABQB7CXByb2R1Y2VycwIIbGFuZ3VhZ2UBBFJ1c3QADHByb2Nlc3NlZC1ieQMFcnVzdGMdMS42MS4wIChmZTViMTNkNjggMjAyMi0wNS0xOCkGd2FscnVzBjAuMTkuMAx3YXNtLWJpbmRnZW4SMC4yLjgxICgwNjJhYTVmNzAp";let wasm;const wasmBytes=decode$7(wasmBytesBase64);function bls_init(){return wasm.bls_init()}let cachegetUint8Memory0=null;function getUint8Memory0(){return(cachegetUint8Memory0===null||cachegetUint8Memory0.buffer!==wasm.memory.buffer)&&(cachegetUint8Memory0=new Uint8Array(wasm.memory.buffer)),cachegetUint8Memory0}function passArray8ToWasm0($,et){const tt=et($.length*1);return getUint8Memory0().set($,tt/1),[tt,$.length]}function bls_verify($,et,tt){const[rt,nt]=passArray8ToWasm0($,wasm.__wbindgen_malloc),[it,At]=passArray8ToWasm0(et,wasm.__wbindgen_malloc),[at,ot]=passArray8ToWasm0(tt,wasm.__wbindgen_malloc);return wasm.bls_verify(rt,nt,it,At,at,ot)}async function load($,et){if(typeof Response=="function"&&$ instanceof Response){const tt=await $.arrayBuffer();return await WebAssembly.instantiate(tt,et)}else{const tt=await WebAssembly.instantiate($,et);return tt instanceof WebAssembly.Instance?{instance:tt,module:$}:tt}}async function init(){const $={},{instance:et,module:tt}=await load(wasmBytes,$);return wasm=et.exports,init.__wbindgen_wasm_module=tt,wasm}let verify;async function blsVerify($,et,tt){if(!verify){if(await init(),bls_init()!==0)throw new Error("Cannot initialize BLS");verify=(rt,nt,it)=>bls_verify(nt,it,rt)===0}return verify($,et,tt)}const decodeLeb128=$=>lebDecode(new PipeArrayBuffer($)),decodeTime=$=>{const et=decodeLeb128($);return new Date(Number(et)/1e6)};class CertificateVerificationError extends AgentError{constructor(et){super(`Invalid certificate: ${et}`)}}function isBufferEqual($,et){if($.byteLength!==et.byteLength)return!1;const tt=new Uint8Array($),rt=new Uint8Array(et);for(let nt=0;ntgt)throw new CertificateVerificationError("Certificate is signed more than 5 minutes in the future. Certificate time: "+dt.toISOString()+" Current time: "+new Date(ct).toISOString());try{At=await this._blsVerify(new Uint8Array(nt),new Uint8Array(rt),new Uint8Array(it))}catch{At=!1}if(!At)throw new CertificateVerificationError("Signature verification failed")}async _checkDelegationAndGetKey(et){if(!et)return this._rootKey;const tt=await Certificate.create({certificate:et.certificate,rootKey:this._rootKey,canisterId:this._canisterId,blsVerify:this._blsVerify,maxAgeInMinutes:60*24*30}),rt=tt.lookup(["subnet",et.subnet_id,"canister_ranges"]);if(!rt)throw new CertificateVerificationError(`Could not find canister ranges for subnet 0x${toHex(et.subnet_id)}`);if(!decode$1(rt).map(ot=>[Principal$1.fromUint8Array(ot[0]),Principal$1.fromUint8Array(ot[1])]).some(ot=>ot[0].ltEq(this._canisterId)&&ot[1].gtEq(this._canisterId)))throw new CertificateVerificationError(`Canister ${this._canisterId} not in range of delegations for subnet 0x${toHex(et.subnet_id)}`);const at=tt.lookup(["subnet",et.subnet_id,"public_key"]);if(!at)throw new Error(`Could not find subnet key for subnet 0x${toHex(et.subnet_id)}`);return at}}const DER_PREFIX=fromHex$1("308182301d060d2b0601040182dc7c0503010201060c2b0601040182dc7c05030201036100"),KEY_LENGTH=96;function extractDER($){const et=DER_PREFIX.byteLength+KEY_LENGTH;if($.byteLength!==et)throw new TypeError(`BLS DER-encoded public key must be ${et} bytes long`);const tt=$.slice(0,DER_PREFIX.byteLength);if(!isBufferEqual(tt,DER_PREFIX))throw new TypeError(`BLS DER-encoded public key is invalid. Expect the following prefix: ${DER_PREFIX}, but get ${tt}`);return $.slice(DER_PREFIX.byteLength)}async function reconstruct($){switch($[0]){case 0:return hash(domain_sep("ic-hashtree-empty"));case 4:return $[1];case 3:return hash(concat$1(domain_sep("ic-hashtree-leaf"),$[1]));case 2:return hash(concat$1(domain_sep("ic-hashtree-labeled"),$[1],await reconstruct($[2])));case 1:return hash(concat$1(domain_sep("ic-hashtree-fork"),await reconstruct($[1]),await reconstruct($[2])));default:throw new Error("unreachable")}}function domain_sep($){const et=new Uint8Array([$.length]),tt=new TextEncoder().encode($);return concat$1(et,tt)}function lookup_path($,et){if($.length===0)switch(et[0]){case 3:return new Uint8Array(et[1]).buffer;default:return}const tt=typeof $[0]=="string"?new TextEncoder().encode($[0]):$[0],rt=find_label(tt,flatten_forks(et));if(rt)return lookup_path($.slice(1),rt)}function flatten_forks($){switch($[0]){case 0:return[];case 1:return flatten_forks($[1]).concat(flatten_forks($[2]));default:return[$]}}function find_label($,et){if(et.length!==0){for(const tt of et)if(tt[0]===2){const rt=tt[1];if(isBufferEqual($,rt))return tt[2]}}}const FIVE_MINUTES_IN_MSEC=5*60*1e3;function defaultStrategy(){return chain(conditionalDelay(once(),1e3),backoff(1e3,1.2),timeout(FIVE_MINUTES_IN_MSEC))}function once(){let $=!0;return async()=>$?($=!1,!0):!1}function conditionalDelay($,et){return async(tt,rt,nt)=>{if(await $(tt,rt,nt))return new Promise(it=>setTimeout(it,et))}}function timeout($){const et=Date.now()+$;return async(tt,rt,nt)=>{if(Date.now()>et)throw new Error(`Request timed out after ${$} msec: Request ID: ${toHex(rt)} Request status: ${nt} `)}}function backoff($,et){let tt=$;return()=>new Promise(rt=>setTimeout(()=>{tt*=et,rt()},tt))}function chain(...$){return async(et,tt,rt)=>{for(const nt of $)await nt(et,tt,rt)}}async function pollForResponse($,et,tt,rt,nt,it){var At;const at=[new TextEncoder().encode("request_status"),tt],ot=nt??await((At=$.createReadStateRequest)===null||At===void 0?void 0:At.call($,{paths:[at]})),st=await $.readState(et,{paths:[at]},void 0,ot);if($.rootKey==null)throw new Error("Agent root key not initialized before polling");const ct=await Certificate.create({certificate:st.certificate,rootKey:$.rootKey,canisterId:et,blsVerify:it}),ut=ct.lookup([...at,new TextEncoder().encode("status")]);let gt;switch(typeof ut>"u"?gt=RequestStatusResponseStatus.Unknown:gt=new TextDecoder().decode(ut),gt){case RequestStatusResponseStatus.Replied:return ct.lookup([...at,"reply"]);case RequestStatusResponseStatus.Received:case RequestStatusResponseStatus.Unknown:case RequestStatusResponseStatus.Processing:return await rt(et,tt,gt),pollForResponse($,et,tt,rt,ot);case RequestStatusResponseStatus.Rejected:{const dt=new Uint8Array(ct.lookup([...at,"reject_code"]))[0],ht=new TextDecoder().decode(ct.lookup([...at,"reject_message"]));throw new Error(`Call was rejected: @@ -556,6 +556,6 @@ ic-request`);class SignIdentity{getPrincipal(){return this._principal||(this._pr `)}case RequestStatusResponseStatus.Done:throw new Error(`Call was marked as done but we never saw the reply: Request ID: ${toHex(tt)} `)}throw new Error("unreachable")}const managementCanisterIdl=({IDL:$})=>{const et=$.Principal,tt=$.Record({controllers:$.Vec($.Principal),freezing_threshold:$.Nat,memory_allocation:$.Nat,compute_allocation:$.Nat}),rt=$.Record({controllers:$.Opt($.Vec($.Principal)),freezing_threshold:$.Opt($.Nat),memory_allocation:$.Opt($.Nat),compute_allocation:$.Opt($.Nat)}),nt=$.Vec($.Nat8);return $.Service({canister_status:$.Func([$.Record({canister_id:et})],[$.Record({status:$.Variant({stopped:$.Null,stopping:$.Null,running:$.Null}),memory_size:$.Nat,cycles:$.Nat,settings:tt,module_hash:$.Opt($.Vec($.Nat8))})],[]),create_canister:$.Func([$.Record({settings:$.Opt(rt)})],[$.Record({canister_id:et})],[]),delete_canister:$.Func([$.Record({canister_id:et})],[],[]),deposit_cycles:$.Func([$.Record({canister_id:et})],[],[]),install_code:$.Func([$.Record({arg:$.Vec($.Nat8),wasm_module:nt,mode:$.Variant({reinstall:$.Null,upgrade:$.Null,install:$.Null}),canister_id:et})],[],[]),provisional_create_canister_with_cycles:$.Func([$.Record({settings:$.Opt(rt),amount:$.Opt($.Nat)})],[$.Record({canister_id:et})],[]),provisional_top_up_canister:$.Func([$.Record({canister_id:et,amount:$.Nat})],[],[]),raw_rand:$.Func([],[$.Vec($.Nat8)],[]),start_canister:$.Func([$.Record({canister_id:et})],[],[]),stop_canister:$.Func([$.Record({canister_id:et})],[],[]),uninstall_code:$.Func([$.Record({canister_id:et})],[],[]),update_settings:$.Func([$.Record({canister_id:$.Principal,settings:rt})],[],[])})};class ActorCallError extends AgentError{constructor(et,tt,rt,nt){super(["Call failed:",` Canister: ${et.toText()}`,` Method: ${tt} (${rt})`,...Object.getOwnPropertyNames(nt).map(it=>` "${it}": ${JSON.stringify(nt[it])}`)].join(` -`)),this.canisterId=et,this.methodName=tt,this.type=rt,this.props=nt}}class QueryCallRejectedError extends ActorCallError{constructor(et,tt,rt){var nt;super(et,tt,"query",{Status:rt.status,Code:(nt=ReplicaRejectCode[rt.reject_code])!==null&&nt!==void 0?nt:`Unknown Code "${rt.reject_code}"`,Message:rt.reject_message}),this.result=rt}}class UpdateCallRejectedError extends ActorCallError{constructor(et,tt,rt,nt){super(et,tt,"update",Object.assign({"Request ID":toHex(rt)},nt.body?Object.assign(Object.assign({},nt.body.error_code?{"Error code":nt.body.error_code}:{}),{"Reject code":String(nt.body.reject_code),"Reject message":nt.body.reject_message}):{"HTTP status code":nt.status.toString(),"HTTP status text":nt.statusText})),this.requestId=rt,this.response=nt}}var CanisterInstallMode;(function($){$.Install="install",$.Reinstall="reinstall",$.Upgrade="upgrade"})(CanisterInstallMode||(CanisterInstallMode={}));const metadataSymbol=Symbol.for("ic-agent-metadata");class Actor{constructor(et){this[metadataSymbol]=Object.freeze(et)}static agentOf(et){return et[metadataSymbol].config.agent}static interfaceOf(et){return et[metadataSymbol].service}static canisterIdOf(et){return Principal$1.from(et[metadataSymbol].config.canisterId)}static async install(et,tt){const rt=et.mode===void 0?CanisterInstallMode.Install:et.mode,nt=et.arg?[...new Uint8Array(et.arg)]:[],it=[...new Uint8Array(et.module)],At=typeof tt.canisterId=="string"?Principal$1.fromText(tt.canisterId):tt.canisterId;await getManagementCanister(tt).install_code({mode:{[rt]:null},arg:nt,wasm_module:it,canister_id:At})}static async createCanister(et){const{canister_id:tt}=await getManagementCanister(et||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return tt}static async createAndInstallCanister(et,tt,rt){const nt=await this.createCanister(rt);return await this.install(Object.assign({},tt),Object.assign(Object.assign({},rt),{canisterId:nt})),this.createActor(et,Object.assign(Object.assign({},rt),{canisterId:nt}))}static createActorClass(et,tt){const rt=et({IDL});class nt extends Actor{constructor(At){if(!At.canisterId)throw new AgentError(`Canister ID is required, but recieved ${typeof At.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);const at=typeof At.canisterId=="string"?Principal$1.fromText(At.canisterId):At.canisterId;super({config:Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG),At),{canisterId:at}),service:rt});for(const[ot,st]of rt._fields)tt!=null&&tt.httpDetails&&st.annotations.push(ACTOR_METHOD_WITH_HTTP_DETAILS),this[ot]=_createActorMethod(this,ot,st,At.blsVerify)}}return nt}static createActor(et,tt){if(!tt.canisterId)throw new AgentError(`Canister ID is required, but recieved ${typeof tt.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);return new(this.createActorClass(et))(tt)}static createActorWithHttpDetails(et,tt){return new(this.createActorClass(et,{httpDetails:!0}))(tt)}}function decodeReturnValue($,et){const tt=decode$2($,buffer$2.Buffer.from(et));switch(tt.length){case 0:return;case 1:return tt[0];default:return tt}}const DEFAULT_ACTOR_CONFIG={pollingStrategyFactory:defaultStrategy},ACTOR_METHOD_WITH_HTTP_DETAILS="http-details";function _createActorMethod($,et,tt,rt){let nt;tt.annotations.includes("query")||tt.annotations.includes("composite_query")?nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol].config).queryTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol].config),At)));const ct=At.agent||$[metadataSymbol].config.agent||getDefaultAgent(),ut=Principal$1.from(At.canisterId||$[metadataSymbol].config.canisterId),gt=encode$2(tt.argTypes,at),dt=await ct.query(ut,{methodName:et,arg:gt});switch(dt.status){case"rejected":throw new QueryCallRejectedError(ut,et,dt);case"replied":return tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS)?{httpDetails:dt.httpDetails,result:decodeReturnValue(tt.retTypes,dt.reply.arg)}:decodeReturnValue(tt.retTypes,dt.reply.arg)}}:nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol].config).callTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol].config),At)));const ct=At.agent||$[metadataSymbol].config.agent||getDefaultAgent(),{canisterId:ut,effectiveCanisterId:gt,pollingStrategyFactory:dt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG),$[metadataSymbol].config),At),ht=Principal$1.from(ut),Et=gt!==void 0?Principal$1.from(gt):ht,wt=encode$2(tt.argTypes,at),{requestId:Qt,response:pt}=await ct.call(ht,{methodName:et,arg:wt,effectiveCanisterId:Et});if(!pt.ok||pt.body)throw new UpdateCallRejectedError(ht,et,Qt,pt);const mt=dt(),$t=await pollForResponse(ct,Et,Qt,mt,rt),Tt=tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS);if($t!==void 0)return Tt?{httpDetails:pt,result:decodeReturnValue(tt.retTypes,$t)}:decodeReturnValue(tt.retTypes,$t);if(tt.retTypes.length===0)return Tt?{httpDetails:pt,result:void 0}:void 0;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const it=(...At)=>nt({},...At);return it.withOptions=At=>(...at)=>nt(At,...at),it}function getManagementCanister($){function et(tt,rt,nt){const it=rt[0];let At=Principal$1.fromHex("");return it&&typeof it=="object"&&it.canister_id&&(At=Principal$1.from(it.canister_id)),{effectiveCanisterId:At}}return Actor.createActor(managementCanisterIdl,Object.assign(Object.assign(Object.assign({},$),{canisterId:Principal$1.fromHex("")}),{callTransform:et,queryTransform:et}))}function fromHexString$1($){var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16))).buffer}function toHexString$1($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);globalThis&&globalThis.__rest;const domainSeparator=new TextEncoder().encode("ic-request-auth-delegation");new TextEncoder().encode(` +`)),this.canisterId=et,this.methodName=tt,this.type=rt,this.props=nt}}class QueryCallRejectedError extends ActorCallError{constructor(et,tt,rt){var nt;super(et,tt,"query",{Status:rt.status,Code:(nt=ReplicaRejectCode[rt.reject_code])!==null&&nt!==void 0?nt:`Unknown Code "${rt.reject_code}"`,Message:rt.reject_message}),this.result=rt}}class UpdateCallRejectedError extends ActorCallError{constructor(et,tt,rt,nt){super(et,tt,"update",Object.assign({"Request ID":toHex(rt)},nt.body?Object.assign(Object.assign({},nt.body.error_code?{"Error code":nt.body.error_code}:{}),{"Reject code":String(nt.body.reject_code),"Reject message":nt.body.reject_message}):{"HTTP status code":nt.status.toString(),"HTTP status text":nt.statusText})),this.requestId=rt,this.response=nt}}var CanisterInstallMode;(function($){$.Install="install",$.Reinstall="reinstall",$.Upgrade="upgrade"})(CanisterInstallMode||(CanisterInstallMode={}));const metadataSymbol=Symbol.for("ic-agent-metadata");class Actor{constructor(et){this[metadataSymbol]=Object.freeze(et)}static agentOf(et){return et[metadataSymbol].config.agent}static interfaceOf(et){return et[metadataSymbol].service}static canisterIdOf(et){return Principal$1.from(et[metadataSymbol].config.canisterId)}static async install(et,tt){const rt=et.mode===void 0?CanisterInstallMode.Install:et.mode,nt=et.arg?[...new Uint8Array(et.arg)]:[],it=[...new Uint8Array(et.module)],At=typeof tt.canisterId=="string"?Principal$1.fromText(tt.canisterId):tt.canisterId;await getManagementCanister(tt).install_code({mode:{[rt]:null},arg:nt,wasm_module:it,canister_id:At})}static async createCanister(et){const{canister_id:tt}=await getManagementCanister(et||{}).provisional_create_canister_with_cycles({amount:[],settings:[]});return tt}static async createAndInstallCanister(et,tt,rt){const nt=await this.createCanister(rt);return await this.install(Object.assign({},tt),Object.assign(Object.assign({},rt),{canisterId:nt})),this.createActor(et,Object.assign(Object.assign({},rt),{canisterId:nt}))}static createActorClass(et,tt){const rt=et({IDL});class nt extends Actor{constructor(At){if(!At.canisterId)throw new AgentError(`Canister ID is required, but recieved ${typeof At.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);const at=typeof At.canisterId=="string"?Principal$1.fromText(At.canisterId):At.canisterId;super({config:Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG),At),{canisterId:at}),service:rt});for(const[ot,st]of rt._fields)tt!=null&&tt.httpDetails&&st.annotations.push(ACTOR_METHOD_WITH_HTTP_DETAILS),this[ot]=_createActorMethod(this,ot,st,At.blsVerify)}}return nt}static createActor(et,tt){if(!tt.canisterId)throw new AgentError(`Canister ID is required, but recieved ${typeof tt.canisterId} instead. If you are using automatically generated declarations, this may be because your application is not setting the canister ID in process.env correctly.`);return new(this.createActorClass(et))(tt)}static createActorWithHttpDetails(et,tt){return new(this.createActorClass(et,{httpDetails:!0}))(tt)}}function decodeReturnValue($,et){const tt=decode$2($,buffer$2.Buffer.from(et));switch(tt.length){case 0:return;case 1:return tt[0];default:return tt}}const DEFAULT_ACTOR_CONFIG={pollingStrategyFactory:defaultStrategy},ACTOR_METHOD_WITH_HTTP_DETAILS="http-details";function _createActorMethod($,et,tt,rt){let nt;tt.annotations.includes("query")||tt.annotations.includes("composite_query")?nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol].config).queryTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol].config),At)));const ct=At.agent||$[metadataSymbol].config.agent||getDefaultAgent(),ut=Principal$1.from(At.canisterId||$[metadataSymbol].config.canisterId),gt=encode$2(tt.argTypes,at),dt=await ct.query(ut,{methodName:et,arg:gt});switch(dt.status){case"rejected":throw new QueryCallRejectedError(ut,et,dt);case"replied":return tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS)?{httpDetails:dt.httpDetails,result:decodeReturnValue(tt.retTypes,dt.reply.arg)}:decodeReturnValue(tt.retTypes,dt.reply.arg)}}:nt=async(At,...at)=>{var ot,st;At=Object.assign(Object.assign({},At),(st=(ot=$[metadataSymbol].config).callTransform)===null||st===void 0?void 0:st.call(ot,et,at,Object.assign(Object.assign({},$[metadataSymbol].config),At)));const ct=At.agent||$[metadataSymbol].config.agent||getDefaultAgent(),{canisterId:ut,effectiveCanisterId:gt,pollingStrategyFactory:dt}=Object.assign(Object.assign(Object.assign({},DEFAULT_ACTOR_CONFIG),$[metadataSymbol].config),At),ht=Principal$1.from(ut),Et=gt!==void 0?Principal$1.from(gt):ht,wt=encode$2(tt.argTypes,at),{requestId:mt,response:pt}=await ct.call(ht,{methodName:et,arg:wt,effectiveCanisterId:Et});if(!pt.ok||pt.body)throw new UpdateCallRejectedError(ht,et,mt,pt);const Qt=dt(),$t=await pollForResponse(ct,Et,mt,Qt,rt),Gt=tt.annotations.includes(ACTOR_METHOD_WITH_HTTP_DETAILS);if($t!==void 0)return Gt?{httpDetails:pt,result:decodeReturnValue(tt.retTypes,$t)}:decodeReturnValue(tt.retTypes,$t);if(tt.retTypes.length===0)return Gt?{httpDetails:pt,result:void 0}:void 0;throw new Error(`Call was returned undefined, but type [${tt.retTypes.join(",")}].`)};const it=(...At)=>nt({},...At);return it.withOptions=At=>(...at)=>nt(At,...at),it}function getManagementCanister($){function et(tt,rt,nt){const it=rt[0];let At=Principal$1.fromHex("");return it&&typeof it=="object"&&it.canister_id&&(At=Principal$1.from(it.canister_id)),{effectiveCanisterId:At}}return Actor.createActor(managementCanisterIdl,Object.assign(Object.assign(Object.assign({},$),{canisterId:Principal$1.fromHex("")}),{callTransform:et,queryTransform:et}))}function fromHexString$1($){var et;return new Uint8Array(((et=$.match(/.{1,2}/g))!==null&&et!==void 0?et:[]).map(tt=>parseInt(tt,16))).buffer}function toHexString$1($){return new Uint8Array($).reduce((et,tt)=>et+tt.toString(16).padStart(2,"0"),"")}Uint8Array.from([48,12,6,10,43,6,1,4,1,131,184,67,1,1]);Uint8Array.from([48,5,6,3,43,101,112]);Uint8Array.from([48,16,6,7,42,134,72,206,61,2,1,6,5,43,129,4,0,10]);globalThis&&globalThis.__rest;const domainSeparator=new TextEncoder().encode("ic-request-auth-delegation");new TextEncoder().encode(` ic-request`);function _parseBlob($){if(typeof $!="string"||$.length<64)throw new Error("Invalid public key.");return fromHexString$1($)}class Delegation{constructor(et,tt,rt){this.pubkey=et,this.expiration=tt,this.targets=rt}toCBOR(){return src.value.map(Object.assign({pubkey:src.value.bytes(this.pubkey),expiration:src.value.u64(this.expiration.toString(16),16)},this.targets&&{targets:src.value.array(this.targets.map(et=>src.value.bytes(et.toUint8Array())))}))}toJSON(){return Object.assign({expiration:this.expiration.toString(16),pubkey:toHexString$1(this.pubkey)},this.targets&&{targets:this.targets.map(et=>et.toHex())})}}async function _createSingleDelegation($,et,tt,rt){const nt=new Delegation(et.toDer(),BigInt(+tt)*BigInt(1e6),rt),it=new Uint8Array([...domainSeparator,...new Uint8Array(requestIdOf(nt))]),At=await $.sign(it);return{delegation:nt,signature:At}}class DelegationChain{constructor(et,tt){this.delegations=et,this.publicKey=tt}static async create(et,tt,rt=new Date(Date.now()+15*60*1e3),nt={}){var it,At;const at=await _createSingleDelegation(et,tt,rt,nt.targets);return new DelegationChain([...((it=nt.previous)===null||it===void 0?void 0:it.delegations)||[],at],((At=nt.previous)===null||At===void 0?void 0:At.publicKey)||et.getPublicKey().toDer())}static fromJSON(et){const{publicKey:tt,delegations:rt}=typeof et=="string"?JSON.parse(et):et;if(!Array.isArray(rt))throw new Error("Invalid delegations.");const nt=rt.map(it=>{const{delegation:At,signature:at}=it,{pubkey:ot,expiration:st,targets:ct}=At;if(ct!==void 0&&!Array.isArray(ct))throw new Error("Invalid targets.");return{delegation:new Delegation(_parseBlob(ot),BigInt(`0x${st}`),ct&&ct.map(ut=>{if(typeof ut!="string")throw new Error("Invalid target.");return Principal$1.fromHex(ut)})),signature:_parseBlob(at)}});return new this(nt,_parseBlob(tt))}static fromDelegations(et,tt){return new this(et,tt)}toJSON(){return{delegations:this.delegations.map(et=>{const{delegation:tt,signature:rt}=et,{targets:nt}=tt;return{delegation:Object.assign({expiration:tt.expiration.toString(16),pubkey:toHexString$1(tt.pubkey)},nt&&{targets:nt.map(it=>it.toHex())}),signature:toHexString$1(rt)}}),publicKey:toHexString$1(this.publicKey)}}}var PubKeyCoseAlgo;(function($){$[$.ECDSA_WITH_SHA256=-7]="ECDSA_WITH_SHA256"})(PubKeyCoseAlgo||(PubKeyCoseAlgo={}));function isDelegationValid($){var et;if(!$||!(!((et=$)===null||et===void 0)&&et.delegations))return!1;var tt=!0,rt=!1,nt=void 0;try{for(var it=$.delegations[Symbol.iterator](),At;!(tt=(At=it.next()).done);tt=!0){var at=At.value.delegation;if(parseInt(at.expiration,16)/1e6<=+Date.now())return!1}}catch(ot){rt=!0,nt=ot}finally{try{!tt&&it.return!=null&&it.return()}finally{if(rt)throw nt}}return!0}function _class_call_check$6($,et){if(!($ instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6($,et){for(var tt=0;tt0&&arguments[0]!==void 0?arguments[0]:"astrox-",tt=arguments.length>1?arguments[1]:void 0;_class_call_check$6(this,$),_define_property$5(this,"prefix",void 0),_define_property$5(this,"_localStorage",void 0),this.prefix=et,this._localStorage=tt}return _create_class$6($,[{key:"get",value:function(tt){return Promise.resolve(this._getICStorage().getItem(this.prefix+tt))}},{key:"set",value:function(tt,rt){return this._getICStorage().setItem(this.prefix+tt,rt),Promise.resolve()}},{key:"remove",value:function(tt){return this._getICStorage().removeItem(this.prefix+tt),Promise.resolve()}},{key:"_getICStorage",value:function(){if(this._localStorage)return this._localStorage;var tt=typeof window>"u"?typeof global>"u"?typeof self>"u"?void 0:self.localStorage:global.localStorage:window.localStorage;if(!tt)throw new Error("Could not find local storage.");return tt}}]),$}();function _array_like_to_array$4($,et){(et==null||et>$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _create_super$1($){var et=_is_native_reflect_construct$1();return function(){var rt=_get_prototype_of$1($),nt;if(et){var it=_get_prototype_of$1(this).constructor;nt=Reflect.construct(rt,arguments,it)}else nt=rt.apply(this,arguments);return _possible_constructor_return$1(this,nt)}}var BufferEncoder=function(){function $(){_class_call_check$5(this,$)}return _create_class$5($,[{key:"name",get:function(){return"Buffer"}},{key:"priority",get:function(){return 1}},{key:"match",value:function(tt){return _instanceof$1(tt,ArrayBuffer)||ArrayBuffer.isView(tt)}},{key:"encode",value:function(tt){return src.value.bytes(new Uint8Array(tt))}}]),$}(),BigIntEncoder=function(){function $(){_class_call_check$5(this,$)}return _create_class$5($,[{key:"name",get:function(){return"BigInt"}},{key:"priority",get:function(){return 1}},{key:"match",value:function(tt){return(typeof tt>"u"?"undefined":_type_of$2(tt))==="bigint"}},{key:"encode",value:function(tt){return tt>BigInt(0)?src.value.tagged(2,src.value.bytes(fromHex(tt.toString(16)))):src.value.tagged(3,src.value.bytes(fromHex((BigInt("-1")*tt).toString(16))))}}]),$}(),serializer$1=src.SelfDescribeCborSerializer.withDefaultEncoders(!0);serializer$1.addEncoder(new BufferEncoder);serializer$1.addEncoder(new BigIntEncoder);var CborTag;(function($){$[$.Uint64LittleEndian=71]="Uint64LittleEndian",$[$.Semantic=55799]="Semantic"})(CborTag||(CborTag={}));function encode($){return serializer$1.serialize($)}function decodePositiveBigInt($){for(var et=$.byteLength,tt=BigInt(0),rt=0;rt1?et-1:0),rt=1;rt$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt0&&nt[nt.length-1])&&(st[0]===6||st[0]===2)){At=0;continue}if(st[0]===3&&(!nt||st[1]>nt[0]&&st[1]$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt=0)&&Object.prototype.propertyIsEnumerable.call($,rt)&&(tt[rt]=$[rt])}return tt}function _object_without_properties_loose($,et){if($==null)return{};var tt={},rt=Object.keys($),nt,it;for(it=0;it=0)&&(tt[nt]=$[nt]);return tt}function _possible_constructor_return($,et){return et&&(_type_of$1(et)==="object"||typeof et=="function")?et:_assert_this_initialized($)}function _set_prototype_of($,et){return _set_prototype_of=Object.setPrototypeOf||function(rt,nt){return rt.__proto__=nt,rt},_set_prototype_of($,et)}function _to_consumable_array$1($){return _array_without_holes$1($)||_iterable_to_array$1($)||_unsupported_iterable_to_array$1($)||_non_iterable_spread$1()}function _type_of$1($){"@swc/helpers - typeof";return $&&typeof Symbol<"u"&&$.constructor===Symbol?"symbol":typeof $}function _unsupported_iterable_to_array$1($,et){if($){if(typeof $=="string")return _array_like_to_array$1($,et);var tt=Object.prototype.toString.call($).slice(8,-1);if(tt==="Object"&&$.constructor&&(tt=$.constructor.name),tt==="Map"||tt==="Set")return Array.from(tt);if(tt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(tt))return _array_like_to_array$1($,et)}}function _is_native_reflect_construct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _create_super($){var et=_is_native_reflect_construct();return function(){var rt=_get_prototype_of($),nt;if(et){var it=_get_prototype_of(this).constructor;nt=Reflect.construct(rt,arguments,it)}else nt=rt.apply(this,arguments);return _possible_constructor_return(this,nt)}}function _ts_generator$1($,et){var tt,rt,nt,it,At={label:0,sent:function(){if(nt[0]&1)throw nt[1];return nt[1]},trys:[],ops:[]};return it={next:at(0),throw:at(1),return:at(2)},typeof Symbol=="function"&&(it[Symbol.iterator]=function(){return this}),it;function at(st){return function(ct){return ot([st,ct])}}function ot(st){if(tt)throw new TypeError("Generator is already executing.");for(;At;)try{if(tt=1,rt&&(nt=st[0]&2?rt.return:st[0]?rt.throw||((nt=rt.return)&&nt.call(rt),0):rt.next)&&!(nt=nt.call(rt,st[1])).done)return nt;switch(rt=0,nt&&(st=[st[0]&2,nt.value]),st[0]){case 0:case 1:nt=st;break;case 4:return At.label++,{value:st[1],done:!1};case 5:At.label++,rt=st[1],st=[0];continue;case 7:st=At.ops.pop(),At.trys.pop();continue;default:if(nt=At.trys,!(nt=nt.length>0&&nt[nt.length-1])&&(st[0]===6||st[0]===2)){At=0;continue}if(st[0]===3&&(!nt||st[1]>nt[0]&&st[1]1&&arguments[1]!==void 0?arguments[1]:$.defaultErrorKind,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$.defaultErrorMessage,it={kind:rt,text:"Unknown Error"};switch(tt){case $.bridgeUnknownError:return{kind:rt,text:"Unknown Error: ".concat(nt)};case $.bridgeIllegalArguments:return{kind:rt,text:"Illegal Arguments: ".concat(nt)};case $.bridgeIllegalState:return{kind:rt,text:"Illegal State: ".concat(nt)};case $.bridgeUnsupportedError:return{kind:rt,text:"Unsupported Error: ".concat(nt)};case $.bridgeIdentityNotFound:return{kind:rt,text:"Identity Not Found: ".concat(nt)};case $.bridgeIdentityExpired:return{kind:rt,text:"Identity Expired: ".concat(nt)};case $.bridgeWalletNotFound:return{kind:rt,text:"Wallet Not Found: ".concat(nt)};case $.bridgeOperationCancelled:return{kind:rt,text:"Operation Cancelled: ".concat(nt)};case $.bridgeNFTIdentifierError:return{kind:rt,text:"NFT Identifier Error: ".concat(nt)};case $.bridgeUnknownMethod:return{kind:rt,text:"Unknown method: ".concat(nt)};default:return it}}}]),$}();_define_property$1(BridgeErrors,"bridgeUnknownError",5e4);_define_property$1(BridgeErrors,"bridgeIllegalArguments",50001);_define_property$1(BridgeErrors,"bridgeIllegalState",50002);_define_property$1(BridgeErrors,"bridgeUnsupportedError",50003);_define_property$1(BridgeErrors,"bridgeIdentityNotFound",50004);_define_property$1(BridgeErrors,"bridgeIdentityExpired",50005);_define_property$1(BridgeErrors,"bridgeWalletNotFound",50006);_define_property$1(BridgeErrors,"bridgeOperationCancelled",50007);_define_property$1(BridgeErrors,"bridgeNFTIdentifierError",50008);_define_property$1(BridgeErrors,"bridgeUnknownMethod",50009);_define_property$1(BridgeErrors,"defaultErrorKind","JS-SDK-Error");_define_property$1(BridgeErrors,"defaultErrorMessage","No More Detail");function _class_call_check$1($,et){if(!($ instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1($,et){for(var tt=0;tt$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt0&&nt[nt.length-1])&&(st[0]===6||st[0]===2)){At=0;continue}if(st[0]===3&&(!nt||st[1]>nt[0]&&st[1]` type when the standard is `EXT`");if(at==="ICP"&&(typeof At>"u"?"undefined":_type_of(At))!=="bigint")throw new Error("`sendOpts.memo` only supports `bigint` type when the standard is `ICP`")}ot=nt.created_at_time,it=_object_spread({},nt),ot&&_instanceof(ot,Date)&&(it.created_at_time=ot.getTime())}Et.label=1;case 1:return Et.trys.push([1,3,,4]),st=tt.symbol!==void 0?TransactionType.token:TransactionType.nft,[4,requestTransfer.invoke(rt.cacheKey,_object_spread_props(_object_spread({},tt),{sendOpts:it}),rt._wallet)];case 2:switch(ct=Et.sent(),st){case TransactionType.token:return[2,{kind:TransactionMessageKind.success,type:st,payload:_object_spread_props(_object_spread({},ct),{originPayload:tt})}];case TransactionType.nft:return[2,{kind:TransactionMessageKind.success,type:st,payload:{success:!0,originPayload:tt}}]}return[3,4];case 3:return ut=Et.sent(),gt=JSON.parse(ut.message),dt=gt.code,ht=gt.message,[2,BridgeErrors.fromErrorCode(dt,TransactionMessageKind.fail,ht)];case 4:return[2]}})})()}},{key:"queryBalance",value:function(){var tt=this;return _async_to_generator(function(){return _ts_generator(this,function(rt){switch(rt.label){case 0:return tt._assertEnv(),[4,queryBalance.invoke(_object_spread({},tt.wallet))];case 1:return[2,rt.sent()]}})})()}},{key:"address",value:function(){return _object_spread({},this.wallet)}},{key:"init",value:function(){var tt=this;return _async_to_generator(function(){return _ts_generator(this,function(rt){switch(rt.label){case 0:return[4,tt._initBridge()];case 1:return rt.sent(),tt._assertEnv(),[2]}})})()}}]),$}();window.icx=new AstroXWebViewHandler;const astroxConfig={providerUrl:"https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",delegationModes:["global"],ledgerHost:"https://icp0.io/"},astroxInit=async($="",et=[])=>await IC.create({useFrame:!(window.innerWidth<768),signerProviderUrl:`${astroxConfig.providerUrl}/#signer`,walletProviderUrl:`${astroxConfig.providerUrl}/#transaction`,identityProvider:`${astroxConfig.providerUrl}/#authorize`,host:$||astroxConfig.ledgerHost,ledgerHost:$||astroxConfig.ledgerHost,ledgerCanisterId:"ryjl3-tyaaa-aaaaa-aaaba-cai",permissions:["permissions-identity","permissions-wallet"],delegationTargets:et,noUnify:!1});var GA;(GA=window.ic)!=null&&GA.astrox||astroxInit();const astrox={readyState:"Loadable",url:"https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",connectWallet:async function($={whitelist:[],host:""}){var et=this;return new Promise(async(tt,rt)=>{var at,ot;try{await window.icx.init()}catch{window.icx=!1}if(window.icx._isReady){await astroxInit($.host,$.whitelist),await window.icx.isConnected()||await window.icx.connect({...astroxConfig,delegationTargets:$.whitelist,ledgerHost:$.host});var it=window.icx.wallet.accountId;et.agent=new HttpAgent$2({identity:window.icx.identity,host:$.host}),et.createActor=async function(ct={canisterId:"",interfaceFactory:!1}){return!ct.canisterId||!ct.interfaceFactory?!1:await window.icx.createActor(ct.canisterId,ct.interfaceFactory)},et.getPrincipal=async function(ct){return Principal$5.fromText(window.icx.wallet.principal)},et.disConnectWallet=async function(){await window.icx.disconnect()},tt({accountId:it,principalId:window.icx.wallet.principal})}else{if(!((at=window.ic)!=null&&at.astrox)&&(await astroxInit(),!((ot=window.ic)!=null&&ot.astrox)))return!1;var At=await window.ic.astrox.isAuthenticated();At||await window.ic.astrox.connect({...window.ic.astrox.connectOptions,delegationTargets:$.whitelist,ledgerHost:$.host});var it=await getAccountIdentifier(window.ic.astrox.principal.toString());et.agent=new HttpAgent$2({identity:window.ic.astrox.identity,host:$.host}),et.createActor=async function(ct={canisterId:"",interfaceFactory:!1}){return!ct.canisterId||!ct.interfaceFactory?!1:await window.ic.astrox.createActor(ct.interfaceFactory,ct.canisterId)},et.getPrincipal=async function(ct){return window.ic.astrox.principal},et.disConnectWallet=async function(){await window.ic.astrox.disconnect()},tt({accountId:it,principalId:window.ic.astrox.principal.toString()})}})}},walletList=[{id:"dfinity",name:"Internet Identity",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/dfinity.svg",adapter:dfinity},{id:"plug",name:"Plug Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/plug.jpg",adapter:plug},{id:"astrox",name:"AstroX ME",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/astroxme.webp",adapter:astrox},{id:"bitfinity",name:"Bitfinity Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/bitfinity.svg",adapter:bitfinity},{id:"stoic",name:"Stoic Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/stoic.png",adapter:stoic}],BatchTransaction=class{constructor(et={},tt){Zr(this,"state","idle");Zr(this,"transactionLlist",{});Zr(this,"stepsList",[]);Zr(this,"completed",[]);Zr(this,"activeStep","");Zr(this,"FailedSteps",[]);Zr(this,"transactionResults",{});Zr(this,"trxArray",[]);Zr(this,"_adapterObj",!1);Zr(this,"_prepareTrxArry",function(){var et=this;et.trxArray=[];var tt=[];Object.values(this.transactionLlist).forEach(nt=>{tt.push(nt),nt.updateNextStep&&(et.trxArray.push(tt),tt=[])}),tt.length>0&&et.trxArray.push(tt);var rt=0;return et.trxArray.forEach((nt,it)=>{nt.forEach((At,at)=>{et.trxArray[it][at].stepIndex=rt,et.trxArray[it][at].state="idle",et.trxArray[it][at].onSuccess=async ot=>{const st=et.trxArray[it][at].stepIndex;if(ot.err||ot.Err||ot.ERR)return et.FailedSteps.push(et.stepsList[st]),et.transactionResults[et.stepsList[st]]=ot,et.state="error",et.trxArray[it][at].state="error",!1;et.completed.push(et.stepsList[st]),et.activeStep=et.stepsList[st+1],et.transactionResults[et.stepsList[st]]=ot,et.trxArray[it][at].state="done",et.trxArray[it][at].updateNextStep&&et.trxArray[it+1]&&await et.trxArray[it][at].updateNextStep(ot,et.trxArray[it+1][0])},et.trxArray[it][at].onFail=ot=>{const st=et.trxArray[it][at].stepIndex;return console.error(`error in ${et.stepsList[st]} `,et.trxArray[it][at]),console.error(ot),et.FailedSteps.push(et.stepsList[st]),et.activeStep=et.stepsList[st],et.state="error",et.trxArray[it][at].state="error",!1},rt++})}),et.trxArray});if(!tt||!tt.provider)return!1;if(Object.entries(et).forEach(([rt,nt])=>{typeof nt=="object"&&(this.transactionLlist[rt]=nt)}),Object.keys(this.transactionLlist).length>0)this.stepsList=Object.keys(this.transactionLlist),this._adapterObj=tt;else return!1}async retryExecute(){if(this.state!="error")return!1;this.trxArray=this.trxArray.map(tt=>tt.filter(rt=>rt.state!=="done")),this.state="running",this.FailedSteps=[];var et=await this._processBatch();return et}async execute(){return this.state=="running"||!this._adapterObj||Object.keys(this.transactionLlist).length==0?!1:this.state=="done"?this.transactionResults:(this.state="running",this.FailedSteps=[],this.trxArray=this._prepareTrxArry(),await this._processBatch())}async _processBatch(){if(!this.trxArray.length)return!1;var et=this;if(et.activeStep=et.completed.length>0?et.stepsList[et.completed.length]:et.stepsList[0],["bitfinity","plug"].includes(this._adapterObj.walletActive)){for(const nt of et.trxArray){if(et.state=="error"||et.state=="done")break;if(nt.length)var tt=await this._adapterObj.provider.batchTransactions(nt)}return et.FailedSteps.length==0?(et.state="done",et.transactionResults):(et.state="error",!1)}else if(["plug","stoic","dfinity","astrox"].includes(this._adapterObj.walletActive))try{for(const nt of et.trxArray){if(et.state=="error"||et.state=="done")break;if(nt.length)for(const it of nt){if(et.state=="error"||et.state=="done")break;var rt=await et._adapterObj.getCanisterActor(it.canisterId,it.idl),tt=!1;it.methodName?it.args?tt=await rt[it.methodName](...it.args):tt=await rt[it.methodName]():await it.onFail(tt),tt?await it.onSuccess(tt):await it.onFail(tt)}}return et.FailedSteps.length==0?(et.state="done",et.transactionResults):(et.state="error",!1)}catch{return et.state="error",!1}else return et.state="error",!1}},HOSTURL="https://icp0.io",ICP_DECIMAL=10**8,NNS_CANISTER_ID="ryjl3-tyaaa-aaaaa-aaaba-cai",localStorageKey="dfinityWallet",Artemis=class{constructor(et={whitelist:[NNS_CANISTER_ID],host:HOSTURL}){Zr(this,"accountId",!1);Zr(this,"principalId",!1);Zr(this,"walletActive","");Zr(this,"provider",!1);Zr(this,"balance",0);Zr(this,"hostUrl",HOSTURL);Zr(this,"canisterActors",{});Zr(this,"anoncanisterActors",[]);Zr(this,"connectedWalletInfo",{});Zr(this,"wallets",walletList);Zr(this,"_connectObject",{whitelist:[NNS_CANISTER_ID],host:HOSTURL});localStorage.getItem(localStorageKey),et=this._cleanUpConnObj(et)}_cleanUpConnObj(et){return et.whitelist.push(NNS_CANISTER_ID),et.whitelist=Array.from(new Set([...et.whitelist])),this._connectObject=et,et}async connect(et,tt={whitelist:[],host:HOSTURL}){if(tt=this._cleanUpConnObj(tt),this.hostUrl=tt.host,!et)return!1;try{var rt=this.wallets.find(At=>At.id==et);if(!rt)return!1;if(rt.adapter.readyState=="Installed"||rt.adapter.readyState=="Loadable"){var nt=await rt.adapter.connectWallet(tt);if(!nt)return!1;this.principalId=nt.principalId,this.accountId=nt.accountId,this.walletActive=et,this.provider=rt.adapter,this.connectedWalletInfo={id:rt.id,icon:rt.icon,name:rt.name},nt.stoicAccounts&&localStorage.setItem("stoicAccounts",nt.stoicAccounts.length||0),localStorage.setItem(localStorageKey,this.walletActive);var it=new CustomEvent("dfinityWalletConnected");window.dispatchEvent(it,et),this.getWalletBalance()}else rt.adapter.readyState=="NotDetected"&&window.open(rt.adapter.url,"_blank");return this.principalId}catch{return!1}}async disconnect(){return this.provider.disConnectWallet(),localStorage.removeItem(localStorageKey),this.provider=!1,this.address=!1,this.wallet="",!0}async isLoaded(){return new Promise((et,tt)=>{var rt=setInterval(()=>{this.provider&&(clearInterval(rt),et(!0))},500)})}async getWalletBalance(et="number"){if(!this.accountId)return 0;var tt=await this.getCanisterActor(NNS_CANISTER_ID,NNS_IDL,!1);const rt=(await tt.account_balance_dfx({account:this.accountId})).e8s;return et=="number"?this.balance=parseFloat(rt)/ICP_DECIMAL:this.balance=rt,this.balance}async requestICPTransfer(et){return new Promise(async(tt,rt)=>{var nt=()=>{},it=await this.getCanisterActor(NNS_CANISTER_ID,nt);const At=await it.send_dfx(et).catch(at=>{rt(at)});At&&tt(At),rt(!1)})}async getCanisterActor(et,tt,rt=!1){let nt=!1;if(rt){if(this.anoncanisterActors[et])return nt=this.canisterActors[et];{const it=new HttpAgent$2({AnonymousIdentity:AnonymousIdentity$2,host:this.hostUrl});return nt=await Actor$2.createActor(tt,{agent:it,canisterId:et})}}else return this.canisterActors[et]?nt=this.canisterActors[et]:(nt=await this.provider.createActor({canisterId:et,interfaceFactory:tt}),this.canisterActors[et]=nt),nt}async autoConnect(et={whitelist:[NNS_CANISTER_ID],host:HOSTURL}){et=this._cleanUpConnObj(et);var tt=localStorage.getItem(localStorageKey),rt=this.wallets.find(it=>it.id==tt);if(!rt)return!1;var nt=await this.connect(tt,et);return nt}};new Artemis({whitelist:[NNS_CANISTER_ID],host:HOSTURL});if(window){const $=new Artemis({whitelist:[NNS_CANISTER_ID],host:HOSTURL});window.artemis=$,window.artemis.BatchTransact=BatchTransaction}const connectObj={host:"https://icp0.io/",whitelist:[]},artemis=new Artemis,getConnectObj=()=>connectObj,useWalletInit=()=>{const $=useAppDispatch();reactExports.useEffect(()=>{(async()=>{const tt=localStorage.getItem("dfinityWallet")||"";tt&&($(walletActions.setWalletSelected(tt)),$(walletActions.setOnwalletList(walletState.Connecting))),await artemis.autoConnect(connectObj)&&(artemis!=null&&artemis.principalId)&&(artemis!=null&&artemis.provider)?$(walletActions.setWalletLoaded({principleId:artemis.principalId,accountId:artemis.accountId,walletActive:artemis.walletActive})):$(walletActions.setOnwalletList(walletState.Idle))})()},[])},WalletListModal=()=>{const{state:$,walletSelected:et}=useWalletStore(),tt=useAppDispatch();function rt(){tt(walletActions.setOnwalletList(walletState.Idle))}async function nt(at){var ot=getConnectObj();tt(walletActions.setWalletSelected(at)),tt(walletActions.setOnwalletList(walletState.Connecting));var st=await artemis.connect(at,ot);st?artemis!=null&&artemis.principalId&&(artemis!=null&&artemis.provider)&&tt(walletActions.setWalletLoaded({principleId:artemis.principalId,accountId:artemis.accountId,walletActive:artemis.walletActive})):tt(walletActions.setOnwalletList(walletState.OpenWalletList))}const it="#4caf50",At=useColorModeValue("gray.800","gray.50");return jsxRuntimeExports.jsxs(Modal,{isOpen:$==walletState.OpenWalletList||$==walletState.Connecting,isCentered:!0,onClose:rt,children:[jsxRuntimeExports.jsx(ModalOverlay,{}),jsxRuntimeExports.jsxs(ModalContent,{as:Flex,maxW:"sm",direction:"column",alignItems:"center",bg:it,pt:"36px",px:"20px",pb:"44px",borderRadius:20,children:[jsxRuntimeExports.jsx(ModalCloseButton,{}),$==walletState.OpenWalletList&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{as:"div",children:jsxRuntimeExports.jsx(Heading,{textAlign:"left",as:"h2",color:At,fontWeight:700,fontSize:"1.2rem",mb:4,children:"Connect Wallet"})}),jsxRuntimeExports.jsx(ModalBody,{children:jsxRuntimeExports.jsx(Box,{mt:4,p:0,w:"100%",children:artemis==null?void 0:artemis.wallets.map((at,ot)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:at.id!="dfinity"&&jsxRuntimeExports.jsxs(Flex,{display:"inline-block",width:"100%",maxWidth:"100%",direction:["column","row"],alignItems:"center",mt:2,cursor:"pointer",mb:2,pt:2,pb:1,pl:2,pr:20,border:"1px solid #358338",borderRadius:"60px",onClick:()=>nt(at==null?void 0:at.id),children:[jsxRuntimeExports.jsx(Box,{mr:4,display:"inline-block",children:jsxRuntimeExports.jsx(Image$1,{borderRadius:"full",boxSize:"32px",src:at==null?void 0:at.icon,alt:"",bg:"gray.300"})}),jsxRuntimeExports.jsxs(Box,{display:"inline-block",children:[jsxRuntimeExports.jsxs(Text$3,{fontSize:"14px",children:[" ",at==null?void 0:at.name]}),jsxRuntimeExports.jsx(Text$3,{fontSize:"12px",color:"gray.300",children:at==null?void 0:at.adapter.readyState})]})]},ot)}))})})]}),$==walletState.Connecting&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{as:"div",children:jsxRuntimeExports.jsxs(Heading,{textAlign:"left",as:"h2",color:At,fontWeight:700,fontSize:"1.2rem",mb:4,textTransform:"capitalize",children:["Connecting ",et," Wallet"]})}),jsxRuntimeExports.jsx(ModalBody,{mt:4,p:4,children:jsxRuntimeExports.jsx(Spinner,{thickness:"4px",speed:"0.65s",emptyColor:"rgba(0, 0, 0, 0.5)",color:"#fff",size:"xl"})})]})]})]})},tokenIDL=({IDL:$})=>{const et=$.Vec($.Nat8),tt=$.Nat32,rt=$.Text,nt=$.Record({subaccount:et,seller:$.Principal,buyer:rt,price:$.Nat64}),it=$.Text,At=$.Text,at=$.Variant({principal:$.Principal,address:At}),ot=$.Record({token:it,user:at}),st=$.Nat,ct=$.Variant({InvalidToken:it,Other:$.Text}),ut=$.Variant({ok:st,err:ct}),gt=$.Text,dt=$.Variant({InvalidToken:it,Other:$.Text}),ht=$.Variant({ok:rt,err:dt}),Et=$.Variant({ok:$.Tuple(tt,$.Bool),err:$.Text}),wt=$.Int,Qt=$.Record({locked:$.Opt(wt),seller:$.Principal,price:$.Nat64}),pt=$.Variant({ok:$.Tuple(rt,$.Opt(Qt)),err:dt}),mt=$.Text,$t=$.Variant({fungible:$.Record({decimals:$.Nat8,metadata:$.Opt($.Vec($.Nat8)),name:$.Text,symbol:$.Text}),nonfungible:$.Record({metadata:$.Opt($.Vec($.Nat8))})}),Tt=$.Tuple($.Text,$.Text),Ut=$.Record({url:$.Text,method:$.Text,body:$.Vec($.Nat8),headers:$.Vec(Tt)}),Pt=$.Record({key:$.Text,sha256:$.Opt($.Vec($.Nat8)),index:$.Nat,content_encoding:$.Text}),Kt=$.Record({token:$.Opt(Pt),body:$.Vec($.Nat8)}),zt=$.Variant({Callback:$.Record({token:Pt,callback:$.Func([Pt],[Kt],["query"])})}),Yt=$.Record({body:$.Vec($.Nat8),headers:$.Vec(Tt),streaming_strategy:$.Opt(zt),status_code:$.Nat16}),Mt=$.Record({token:gt,from_subaccount:$.Opt(et),price:$.Opt($.Nat64)}),Bt=$.Variant({ok:$.Null,err:dt}),vt=$.Variant({ok:$t,err:dt}),Nt=$.Record({to:at,metadata:$.Opt($.Vec($.Nat8))}),Gt=$.Nat,Jt=$.Variant({ok:Gt,err:dt}),nr=$.Variant({ok:$.Vec(tt),err:dt}),Xt=$.Variant({ok:$.Vec($.Tuple(tt,$.Opt(Qt),$.Opt($.Vec($.Nat8)))),err:dt}),Ot=$.Record({token:gt,time:wt,seller:$.Principal,buyer:rt,price:$.Nat64}),bt=$.Vec($.Nat8),kt=$.Vec($.Nat8),Ar=$.Record({to:at,token:it,notify:$.Bool,from:at,memo:bt,subaccount:$.Opt(kt),amount:st}),cr=$.Variant({ok:st,err:$.Variant({CannotNotify:At,InsufficientBalance:$.Null,InvalidToken:it,Rejected:$.Null,Unauthorized:At,Other:$.Text})});return $.Service({acceptCycles:$.Func([],[],[]),adminKillHeartbeat:$.Func([],[],[]),adminStartHeartbeat:$.Func([],[],[]),allPayments:$.Func([],[$.Vec($.Tuple($.Principal,$.Vec(et)))],["query"]),allSettlements:$.Func([],[$.Vec($.Tuple(tt,nt))],["query"]),availableCycles:$.Func([],[$.Nat],["query"]),balance:$.Func([ot],[ut],["query"]),bearer:$.Func([gt],[ht],["query"]),claim:$.Func([$.Text],[Et],[]),clearPayments:$.Func([$.Principal,$.Vec(et)],[],[]),cronCapEvents:$.Func([],[],[]),cronDisbursements:$.Func([],[],[]),cronSettlements:$.Func([],[],[]),details:$.Func([gt],[pt],["query"]),extensions:$.Func([],[$.Vec(mt)],["query"]),getMinter:$.Func([],[$.Principal],["query"]),getRegistry:$.Func([],[$.Vec($.Tuple(tt,rt))],["query"]),getTokens:$.Func([],[$.Vec($.Tuple(tt,$t))],["query"]),historicExport:$.Func([],[$.Bool],[]),http_request:$.Func([Ut],[Yt],["query"]),initCap:$.Func([],[],[]),list:$.Func([Mt],[Bt],[]),listings:$.Func([],[$.Vec($.Tuple(tt,Qt,$t))],["query"]),lock:$.Func([gt,$.Nat64,rt,et],[ht],[]),metadata:$.Func([gt],[vt],["query"]),mintNFT:$.Func([Nt],[tt],[]),payments:$.Func([],[$.Opt($.Vec(et))],["query"]),setMinter:$.Func([$.Principal],[],[]),settle:$.Func([gt],[Bt],[]),settlements:$.Func([],[$.Vec($.Tuple(tt,rt,$.Nat64))],["query"]),stats:$.Func([],[$.Nat64,$.Nat64,$.Nat64,$.Nat64,$.Nat,$.Nat,$.Nat],["query"]),supply:$.Func([gt],[Jt],["query"]),tokens:$.Func([rt],[nr],["query"]),tokens_ext:$.Func([rt],[Xt],["query"]),transactions:$.Func([],[$.Vec(Ot)],["query"]),transfer:$.Func([Ar],[cr],[])})},claimIdl=({IDL:$})=>{const et=$.Vec($.Nat8),tt=$.Record({tx:et,tokens:$.Nat}),rt=$.Variant({Unclaimed:$.Nat,Claimed:tt,Airdroped:tt}),nt=$.Text,it=$.Variant({token:$.Nat,cycles:$.Nat,noFee:$.Null}),At=$.Vec($.Nat8),at=$.Int,ot=$.Vec($.Nat8),st=$.Variant({approve:$.Record({allowance:$.Nat}),lockTransfer:$.Record({locked:$.Nat,expiration:at,decider:At}),transfer:$.Record({action:$.Variant({burn:$.Null,mint:$.Null,send:$.Null})}),executeTransfer:$.Record({fallback:$.Nat,lockedTxid:ot})}),ct=$.Record({to:At,value:$.Nat,data:$.Opt($.Vec($.Nat8)),from:At,operation:st}),ut=$.Record({gas:it,msgCaller:$.Opt($.Principal),transaction:ct,txid:ot,nonce:$.Nat,timestamp:at,caller:At,index:$.Nat}),gt=$.Record({MAX_STORAGE_TRIES:$.Nat,EN_DEBUG:$.Bool,MAX_CACHE_NUMBER_PER:$.Nat,MAX_CACHE_TIME:$.Nat}),dt=$.Vec($.Nat8),ht=$.Text,Et=$.Nat32,wt=$.Vec($.Nat8),Qt=$.Record({owner:$.Principal,subaccount:$.Opt(wt)}),pt=$.Variant({Int:$.Int,Nat:$.Nat,Blob:$.Vec($.Nat8),Text:$.Text}),mt=$.Record({owner:$.Principal,subaccount:$.Opt(wt)}),$t=$.Nat64,Tt=$.Record({to:mt,fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt(wt),created_at_time:$.Opt($t),amount:$.Nat}),Ut=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})});return $.Service({claimTokens:$.Func([],[rt],[]),createSnap:$.Func([],[],[]),drc202_canisterId:$.Func([],[$.Principal],["query"]),drc202_events:$.Func([$.Opt(nt)],[$.Vec(ut)],["query"]),drc202_getConfig:$.Func([],[gt],["query"]),drc202_pool:$.Func([],[$.Vec($.Tuple(dt,$.Nat))],["query"]),drc202_txn:$.Func([dt],[$.Opt(ut)],["query"]),drc202_txn2:$.Func([dt],[$.Opt(ut)],[]),getEligibleTokenOfUser:$.Func([$.Principal],[rt],["query"]),getEligibleTokensSnap:$.Func([],[$.Vec($.Tuple(ht,$.Nat))],["query"]),getRawSnapshot:$.Func([],[$.Record({snapshot:$.Vec($.Tuple(Et,ht)),snapshot_time:$.Int})],["query"]),get_transactions:$.Func([],[$.Text],["composite_query"]),historySize:$.Func([],[$.Nat],["query"]),icrc1_balance_of:$.Func([Qt],[$.Nat],["query"]),icrc1_decimals:$.Func([],[$.Nat8],["query"]),icrc1_fee:$.Func([],[$.Nat],["query"]),icrc1_metadata:$.Func([],[$.Vec($.Tuple($.Text,pt))],["query"]),icrc1_minting_account:$.Func([],[$.Opt(Qt)],["query"]),icrc1_name:$.Func([],[$.Text],["query"]),icrc1_supported_standards:$.Func([],[$.Vec($.Record({url:$.Text,name:$.Text}))],["query"]),icrc1_symbol:$.Func([],[$.Text],["query"]),icrc1_total_supply:$.Func([],[$.Nat],["query"]),icrc1_transfer:$.Func([Tt],[$.Variant({Ok:$.Nat,Err:Ut})],[])})},tokenCanister="oeee4-qaaaa-aaaak-qaaeq-cai",claimCanister="2tlvc-vqaaa-aaaah-adwxa-cai",HomeScreen=()=>{const $=document.querySelector("header"),et=$?$.offsetHeight:"96",tt=useAppDispatch(),{isConnected:rt,principalId:nt,accountId:it}=useWalletStore(),[At,at]=reactExports.useState([]),[ot,st]=reactExports.useState(!1),[ct,ut]=reactExports.useState([]),[gt,dt]=reactExports.useState(!1),[ht,Et]=reactExports.useState("Claim Token"),[wt,Qt]=reactExports.useState(""),pt=Kt=>Array.from(Kt,function(zt){return("0"+(zt&255).toString(16)).slice(-2)}).join(""),mt=async()=>{await artemis.disconnect(),await tt(walletActions.resetWallet()),location.reload()},$t=async()=>new Promise(Kt=>{st(!0);var zt={method:"GET",redirect:"follow"};fetch("https://mcdatapool.s3.us-east-2.amazonaws.com/collection/rarity/motoko",zt).then(Yt=>Yt.json()).then(Yt=>{at(Yt),st(!1)}).catch(Yt=>{Kt([])})}),Tt=async()=>{var Mt;var Kt=await artemis.getCanisterActor(tokenCanister,tokenIDL,!0),zt=await Kt.tokens_ext(it);if(((Mt=zt==null?void 0:zt.ok)==null?void 0:Mt.length)>0?zt=zt==null?void 0:zt.ok:zt=[],zt.length){var Yt=[];zt.forEach(Bt=>{var vt=Bt[0],Nt=At.find(Gt=>Gt.tokenIndex==vt);Nt&&Yt.push(Nt)}),ut(Yt)}Ut()};reactExports.useEffect(()=>{$t()},[]),reactExports.useEffect(()=>{rt&&Tt()},[rt,At]);const Ut=async()=>{Et("Checking Token Eligibilty ...");var Kt=await artemis.getCanisterActor(claimCanister,claimIdl,!1);if(nt){var zt=await Kt.getEligibleTokenOfUser(Principal$5.fromText(nt));if(zt!=null&&zt.Unclaimed){var Yt=Number(zt==null?void 0:zt.Unclaimed);Yt>0?(Et("Claim for "+Yt+" NFTs"),dt(!0)):(Et("Not Eligible for Claim.."),dt(!1))}else if(zt!=null&&zt.Claimed){var Mt=Number(zt==null?void 0:zt.Claimed.tokens);Mt>0&&(Et("Tokens Claimed for "+Mt+" NFTs"),dt(!1),zt!=null&&zt.Claimed.tx&&Qt(pt(zt==null?void 0:zt.Claimed.tx)))}else if(zt!=null&&zt.Airdroped){var Bt=Number(zt==null?void 0:zt.Airdroped.tokens);Bt>0&&(Et("Tokens Airdropped for "+Bt+" NFTs"),dt(!1),zt!=null&&zt.Airdroped.tx&&Qt(pt(zt==null?void 0:zt.Airdroped.tx)))}else Qt(""),Et("Not Eligible for Claim.."),dt(!1)}},Pt=async()=>{dt(!1),Et("Claiming Tokens...");var Kt=await artemis.getCanisterActor(claimCanister,claimIdl,!1),zt=await Kt.claimTokens();if(zt.Claimed){var Yt=Number(zt==null?void 0:zt.Claimed.tokens);Yt>0&&(Et("Tokens Claimed for "+Yt+" NFTs"),zt!=null&&zt.Claimed.tx&&Qt(pt(zt==null?void 0:zt.Claimed.tx)),dt(!1))}else if(zt!=null&&zt.Airdroped){var Mt=Number(zt==null?void 0:zt.Airdroped.tokens);Mt>0&&(Et("Tokens Airdropped for "+Mt+" NFTs"),zt!=null&&zt.Airdroped.tx&&Qt(pt(zt==null?void 0:zt.Airdroped.tx)),dt(!1))}else Qt(""),Et("Not Eligible for Claim.."),dt(!1)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Box,{as:"section",children:jsxRuntimeExports.jsxs(Container,{w:{lg:"container.xl"},maxW:"100%",p:0,display:"flex",h:{base:`calc(100vh - ${et}px)`},flexDirection:"column",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{minW:"100%",className:"hm-sec-1",height:"200px"}),jsxRuntimeExports.jsxs(Box,{minW:"100%",textAlign:"center",alignItems:"center",justifyItems:"center",children:[jsxRuntimeExports.jsx(Heading,{fontSize:34,fontWeight:"300",color:"base.black",textAlign:"center",mt:"2",children:"Motoko Claim portal!"}),jsxRuntimeExports.jsxs(Box,{display:"inline-block",fontSize:{base:"14",xl:"16"},textAlign:"justify",lineHeight:"24px",w:{base:"90%",xl:"80%"},mt:"5",color:"base.grey",children:["Welcome to the Motoko Claim portal! Two years ago, the DFINITY Foundation introduced the iconic Motoko NFTs, representing a blend of digital artistry and blockchain innovation. If you are a proud Motoko NFT owner who did not receive tokens through an airdrop, you can utilize this portal to claim your $MOTOKO tokens by connecting your holding wallet. Please take note of the following:",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),"1. This process is entirely based on the snapshot captured on January 30th at 3 PM UTC.",jsxRuntimeExports.jsx("br",{}),"2. Only holders with missing principal wallets in the snapshot can utilize this portal. Please check your wallet before using this portal.",jsxRuntimeExports.jsx("br",{}),"3. Verify your Motoko token balance using the provided canister ID: 2tlvc-vqaaa-aaaah-adwxa-cai.",jsxRuntimeExports.jsx("br",{}),"For additional details, check ",jsxRuntimeExports.jsx(Box,{as:"a",fontWeight:"bold",target:"_blank",href:"https://sonic-ooo.medium.com/unlocking-motoko-a-comprehensive-guide-to-the-motoko-nft-airdrop-c17024d24993",children:"here"})]})]}),jsxRuntimeExports.jsx(Box,{mt:5,w:{base:"90%",xl:"80%"},children:rt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Box,{wordBreak:"break-all",children:[jsxRuntimeExports.jsx(Box,{minW:"100%",as:"h2",color:"base.black",fontWeight:"semibold",fontSize:16,children:" Wallet Info"}),jsxRuntimeExports.jsxs(Text$3,{fontSize:{base:"14",xl:"14"},lineHeight:"24px",w:"100%",mt:"3",mb:"5",color:"base.grey",textAlign:"justify",children:[jsxRuntimeExports.jsx("b",{children:"Principal ID "})," : ",nt," ",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"Account ID "})," : ",it]})]}),jsxRuntimeExports.jsxs(Box,{mb:10,children:[jsxRuntimeExports.jsx(Box,{minW:"100%",as:"h2",color:"base.black",fontWeight:"semibold",fontSize:16,children:jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Text$3,{mt:2,children:"Your NFTs"}),jsxRuntimeExports.jsx(Button,{ml:3,size:"md",borderRadius:10,fontSize:"md",colorScheme:"green",onClick:Tt,children:" Refresh "})]})}),ot&&jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Text$3,{fontSize:14,color:"base.grey",children:"loading Tokens data..."})}),ct.length>0&&jsxRuntimeExports.jsx(Grid,{templateColumns:{base:"repeat(3, 1fr)",lg:"repeat(8, 1fr)"},gap:4,mt:3,children:Array.from({length:ct.length},(Kt,zt)=>jsxRuntimeExports.jsxs(GridItem,{w:"100%",bg:"#fff",border:"1px solid #D1D1D1",borderRadius:"4",padding:"2",children:[jsxRuntimeExports.jsx(Image$1,{src:ct[zt].thumb}),jsxRuntimeExports.jsxs(Text$3,{fontSize:14,color:"base.grey",children:[" ",ct[zt].tokenName]})]},zt))})]}),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Button,{onClick:Pt,isDisabled:!gt,size:"lg",px:10,borderRadius:10,fontSize:"md",style:{width:"100%",color:"#fff",backgroundColor:"rgb(0 189 55)"},children:ht}),jsxRuntimeExports.jsx(Button,{ml:3,size:"lg",borderRadius:10,fontSize:"md",onClick:mt,style:{width:"100%",color:"#fff",backgroundColor:"rgb(255 67 22)"},children:"Disconnect"})]}),jsxRuntimeExports.jsx(Flex,{children:wt&&jsxRuntimeExports.jsx(Box,{mt:4,children:jsxRuntimeExports.jsx(Box,{as:"a",color:"base.black",fontWeight:"bold",target:"_blank",href:"https://ic.house/tx/2tlvc-vqaaa-aaaah-adwxa-cai/"+wt,children:"Token Transaction"})})})]}):jsxRuntimeExports.jsx(WalletConnectBtn,{})})]})})})},App=()=>(useWalletInit(),jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsxs(MainLayout,{children:[jsxRuntimeExports.jsx(WalletListModal,{}),jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(HomeScreen,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/"})})]})]})})),colors={base:{green:"#03FD8E",black:"#000804",white:"#FBFCFF",danger:"#E30385",cardBgT1:"rgb(116 255 205 / 8%)",grey:"#6E6E73"},app:{background:{body:{light:"#ffff",dark:"#ffff"},container:{light:"#F0F2F4",dark:"#1c1f43"}},header:{light:"#ffff",dark:"#ffff"},text:{c1:"#FBFCFF"}}},sizes={modalHeight:"345px",container:{xxl:"80%"}},baseStyle={th:{textTransform:"none"}},variantDashboard={table:{position:"relative",fontFamily:"Neue Machina Regular"},td:{paddingBottom:"1.25rem",borderBottomStyle:"dotted",borderBottomWidth:2},th:{borderBottom:"none"},tr:{_last:{td:{opacity:.3,borderBottom:"none"}}}},variants={simple:variantDashboard},Table={parts:tableAnatomy.keys,baseStyle,variants},theme=extendTheme({styles:{global:$=>({body:{bg:mode(colors.app.background.body.light,colors.app.background.body.dark)($)}})},colors:{...colors},config:{initialColorMode:"dark",useSystemColorMode:!1},sizes:{...sizes},fonts:{heading:"Neue Machina Regular",body:"Graphik Web"},components:{Table}});var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const rootElement=document.getElementById("app-root"),root=createRoot(rootElement);root.render(jsxRuntimeExports.jsx(ChakraProvider,{theme,resetCSS:!0,children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(App,{})})}));export{AgentError$1 as A,Certificate$1 as C,Principal$3 as P,decodeTime$1 as a,decode$4 as b,Certificate as c,decodeLeb128$1 as d,decodeLeb128 as e,decodeTime as f,AgentError as g,toHex as h,decode$1 as i,Principal$1 as j,toHex$1 as t}; +ic-request`),ct=[_object_spread$1({},at)],ut={},gt={content:At},[4,it.sign(new Uint8Array(_to_consumable_array$1(st).concat(_to_consumable_array$1(new Uint8Array(ot)))))];case 2:return[2,_object_spread_props$1.apply(void 0,ct.concat([(ut.body=(gt.sender_sig=dt.sent(),gt.sender_delegation=it._chain.delegations,gt.sender_pubkey=it._chain.publicKey,gt),ut)]))]}})})()}}]),tt}(SignIdentity);function _class_call_check$2($,et){if(!($ instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2($,et){for(var tt=0;tt1&&arguments[1]!==void 0?arguments[1]:$.defaultErrorKind,nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$.defaultErrorMessage,it={kind:rt,text:"Unknown Error"};switch(tt){case $.bridgeUnknownError:return{kind:rt,text:"Unknown Error: ".concat(nt)};case $.bridgeIllegalArguments:return{kind:rt,text:"Illegal Arguments: ".concat(nt)};case $.bridgeIllegalState:return{kind:rt,text:"Illegal State: ".concat(nt)};case $.bridgeUnsupportedError:return{kind:rt,text:"Unsupported Error: ".concat(nt)};case $.bridgeIdentityNotFound:return{kind:rt,text:"Identity Not Found: ".concat(nt)};case $.bridgeIdentityExpired:return{kind:rt,text:"Identity Expired: ".concat(nt)};case $.bridgeWalletNotFound:return{kind:rt,text:"Wallet Not Found: ".concat(nt)};case $.bridgeOperationCancelled:return{kind:rt,text:"Operation Cancelled: ".concat(nt)};case $.bridgeNFTIdentifierError:return{kind:rt,text:"NFT Identifier Error: ".concat(nt)};case $.bridgeUnknownMethod:return{kind:rt,text:"Unknown method: ".concat(nt)};default:return it}}}]),$}();_define_property$1(BridgeErrors,"bridgeUnknownError",5e4);_define_property$1(BridgeErrors,"bridgeIllegalArguments",50001);_define_property$1(BridgeErrors,"bridgeIllegalState",50002);_define_property$1(BridgeErrors,"bridgeUnsupportedError",50003);_define_property$1(BridgeErrors,"bridgeIdentityNotFound",50004);_define_property$1(BridgeErrors,"bridgeIdentityExpired",50005);_define_property$1(BridgeErrors,"bridgeWalletNotFound",50006);_define_property$1(BridgeErrors,"bridgeOperationCancelled",50007);_define_property$1(BridgeErrors,"bridgeNFTIdentifierError",50008);_define_property$1(BridgeErrors,"bridgeUnknownMethod",50009);_define_property$1(BridgeErrors,"defaultErrorKind","JS-SDK-Error");_define_property$1(BridgeErrors,"defaultErrorMessage","No More Detail");function _class_call_check$1($,et){if(!($ instanceof et))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1($,et){for(var tt=0;tt$.length)&&(et=$.length);for(var tt=0,rt=new Array(et);tt0&&nt[nt.length-1])&&(st[0]===6||st[0]===2)){At=0;continue}if(st[0]===3&&(!nt||st[1]>nt[0]&&st[1]` type when the standard is `EXT`");if(at==="ICP"&&(typeof At>"u"?"undefined":_type_of(At))!=="bigint")throw new Error("`sendOpts.memo` only supports `bigint` type when the standard is `ICP`")}ot=nt.created_at_time,it=_object_spread({},nt),ot&&_instanceof(ot,Date)&&(it.created_at_time=ot.getTime())}Et.label=1;case 1:return Et.trys.push([1,3,,4]),st=tt.symbol!==void 0?TransactionType.token:TransactionType.nft,[4,requestTransfer.invoke(rt.cacheKey,_object_spread_props(_object_spread({},tt),{sendOpts:it}),rt._wallet)];case 2:switch(ct=Et.sent(),st){case TransactionType.token:return[2,{kind:TransactionMessageKind.success,type:st,payload:_object_spread_props(_object_spread({},ct),{originPayload:tt})}];case TransactionType.nft:return[2,{kind:TransactionMessageKind.success,type:st,payload:{success:!0,originPayload:tt}}]}return[3,4];case 3:return ut=Et.sent(),gt=JSON.parse(ut.message),dt=gt.code,ht=gt.message,[2,BridgeErrors.fromErrorCode(dt,TransactionMessageKind.fail,ht)];case 4:return[2]}})})()}},{key:"queryBalance",value:function(){var tt=this;return _async_to_generator(function(){return _ts_generator(this,function(rt){switch(rt.label){case 0:return tt._assertEnv(),[4,queryBalance.invoke(_object_spread({},tt.wallet))];case 1:return[2,rt.sent()]}})})()}},{key:"address",value:function(){return _object_spread({},this.wallet)}},{key:"init",value:function(){var tt=this;return _async_to_generator(function(){return _ts_generator(this,function(rt){switch(rt.label){case 0:return[4,tt._initBridge()];case 1:return rt.sent(),tt._assertEnv(),[2]}})})()}}]),$}();window.icx=new AstroXWebViewHandler;const astroxConfig={providerUrl:"https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",delegationModes:["global"],ledgerHost:"https://icp0.io/"},astroxInit=async($="",et=[])=>await IC.create({useFrame:!(window.innerWidth<768),signerProviderUrl:`${astroxConfig.providerUrl}/#signer`,walletProviderUrl:`${astroxConfig.providerUrl}/#transaction`,identityProvider:`${astroxConfig.providerUrl}/#authorize`,host:$||astroxConfig.ledgerHost,ledgerHost:$||astroxConfig.ledgerHost,ledgerCanisterId:"ryjl3-tyaaa-aaaaa-aaaba-cai",permissions:["permissions-identity","permissions-wallet"],delegationTargets:et,noUnify:!1});var GA;(GA=window.ic)!=null&&GA.astrox||astroxInit();const astrox={readyState:"Loadable",url:"https://63k2f-nyaaa-aaaah-aakla-cai.raw.ic0.app",connectWallet:async function($={whitelist:[],host:""}){var et=this;return new Promise(async(tt,rt)=>{var at,ot;try{await window.icx.init()}catch{window.icx=!1}if(window.icx._isReady){await astroxInit($.host,$.whitelist),await window.icx.isConnected()||await window.icx.connect({...astroxConfig,delegationTargets:$.whitelist,ledgerHost:$.host});var it=window.icx.wallet.accountId;et.agent=new HttpAgent$2({identity:window.icx.identity,host:$.host}),et.createActor=async function(ct={canisterId:"",interfaceFactory:!1}){return!ct.canisterId||!ct.interfaceFactory?!1:await window.icx.createActor(ct.canisterId,ct.interfaceFactory)},et.getPrincipal=async function(ct){return Principal$5.fromText(window.icx.wallet.principal)},et.disConnectWallet=async function(){await window.icx.disconnect()},tt({accountId:it,principalId:window.icx.wallet.principal})}else{if(!((at=window.ic)!=null&&at.astrox)&&(await astroxInit(),!((ot=window.ic)!=null&&ot.astrox)))return!1;var At=await window.ic.astrox.isAuthenticated();At||await window.ic.astrox.connect({...window.ic.astrox.connectOptions,delegationTargets:$.whitelist,ledgerHost:$.host});var it=await getAccountIdentifier(window.ic.astrox.principal.toString());et.agent=new HttpAgent$2({identity:window.ic.astrox.identity,host:$.host}),et.createActor=async function(ct={canisterId:"",interfaceFactory:!1}){return!ct.canisterId||!ct.interfaceFactory?!1:await window.ic.astrox.createActor(ct.interfaceFactory,ct.canisterId)},et.getPrincipal=async function(ct){return window.ic.astrox.principal},et.disConnectWallet=async function(){await window.ic.astrox.disconnect()},tt({accountId:it,principalId:window.ic.astrox.principal.toString()})}})}},walletList=[{id:"dfinity",name:"Internet Identity",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/dfinity.svg",adapter:dfinity},{id:"plug",name:"Plug Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/plug.jpg",adapter:plug},{id:"astrox",name:"AstroX ME",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/astroxme.webp",adapter:astrox},{id:"bitfinity",name:"Bitfinity Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/bitfinity.svg",adapter:bitfinity},{id:"stoic",name:"Stoic Wallet",icon:"https://d15bmhsw4m27if.cloudfront.net/artemis/stoic.png",adapter:stoic}],BatchTransaction=class{constructor(et={},tt){Zr(this,"state","idle");Zr(this,"transactionLlist",{});Zr(this,"stepsList",[]);Zr(this,"completed",[]);Zr(this,"activeStep","");Zr(this,"FailedSteps",[]);Zr(this,"transactionResults",{});Zr(this,"trxArray",[]);Zr(this,"_adapterObj",!1);Zr(this,"_prepareTrxArry",function(){var et=this;et.trxArray=[];var tt=[];Object.values(this.transactionLlist).forEach(nt=>{tt.push(nt),nt.updateNextStep&&(et.trxArray.push(tt),tt=[])}),tt.length>0&&et.trxArray.push(tt);var rt=0;return et.trxArray.forEach((nt,it)=>{nt.forEach((At,at)=>{et.trxArray[it][at].stepIndex=rt,et.trxArray[it][at].state="idle",et.trxArray[it][at].onSuccess=async ot=>{const st=et.trxArray[it][at].stepIndex;if(ot.err||ot.Err||ot.ERR)return et.FailedSteps.push(et.stepsList[st]),et.transactionResults[et.stepsList[st]]=ot,et.state="error",et.trxArray[it][at].state="error",!1;et.completed.push(et.stepsList[st]),et.activeStep=et.stepsList[st+1],et.transactionResults[et.stepsList[st]]=ot,et.trxArray[it][at].state="done",et.trxArray[it][at].updateNextStep&&et.trxArray[it+1]&&await et.trxArray[it][at].updateNextStep(ot,et.trxArray[it+1][0])},et.trxArray[it][at].onFail=ot=>{const st=et.trxArray[it][at].stepIndex;return console.error(`error in ${et.stepsList[st]} `,et.trxArray[it][at]),console.error(ot),et.FailedSteps.push(et.stepsList[st]),et.activeStep=et.stepsList[st],et.state="error",et.trxArray[it][at].state="error",!1},rt++})}),et.trxArray});if(!tt||!tt.provider)return!1;if(Object.entries(et).forEach(([rt,nt])=>{typeof nt=="object"&&(this.transactionLlist[rt]=nt)}),Object.keys(this.transactionLlist).length>0)this.stepsList=Object.keys(this.transactionLlist),this._adapterObj=tt;else return!1}async retryExecute(){if(this.state!="error")return!1;this.trxArray=this.trxArray.map(tt=>tt.filter(rt=>rt.state!=="done")),this.state="running",this.FailedSteps=[];var et=await this._processBatch();return et}async execute(){return this.state=="running"||!this._adapterObj||Object.keys(this.transactionLlist).length==0?!1:this.state=="done"?this.transactionResults:(this.state="running",this.FailedSteps=[],this.trxArray=this._prepareTrxArry(),await this._processBatch())}async _processBatch(){if(!this.trxArray.length)return!1;var et=this;if(et.activeStep=et.completed.length>0?et.stepsList[et.completed.length]:et.stepsList[0],["bitfinity","plug"].includes(this._adapterObj.walletActive)){for(const nt of et.trxArray){if(et.state=="error"||et.state=="done")break;if(nt.length)var tt=await this._adapterObj.provider.batchTransactions(nt)}return et.FailedSteps.length==0?(et.state="done",et.transactionResults):(et.state="error",!1)}else if(["plug","stoic","dfinity","astrox"].includes(this._adapterObj.walletActive))try{for(const nt of et.trxArray){if(et.state=="error"||et.state=="done")break;if(nt.length)for(const it of nt){if(et.state=="error"||et.state=="done")break;var rt=await et._adapterObj.getCanisterActor(it.canisterId,it.idl),tt=!1;it.methodName?it.args?tt=await rt[it.methodName](...it.args):tt=await rt[it.methodName]():await it.onFail(tt),tt?await it.onSuccess(tt):await it.onFail(tt)}}return et.FailedSteps.length==0?(et.state="done",et.transactionResults):(et.state="error",!1)}catch{return et.state="error",!1}else return et.state="error",!1}},HOSTURL="https://icp0.io",ICP_DECIMAL=10**8,NNS_CANISTER_ID="ryjl3-tyaaa-aaaaa-aaaba-cai",localStorageKey="dfinityWallet",Artemis=class{constructor(et={whitelist:[NNS_CANISTER_ID],host:HOSTURL}){Zr(this,"accountId",!1);Zr(this,"principalId",!1);Zr(this,"walletActive","");Zr(this,"provider",!1);Zr(this,"balance",0);Zr(this,"hostUrl",HOSTURL);Zr(this,"canisterActors",{});Zr(this,"anoncanisterActors",[]);Zr(this,"connectedWalletInfo",{});Zr(this,"wallets",walletList);Zr(this,"_connectObject",{whitelist:[NNS_CANISTER_ID],host:HOSTURL});localStorage.getItem(localStorageKey),et=this._cleanUpConnObj(et)}_cleanUpConnObj(et){return et.whitelist.push(NNS_CANISTER_ID),et.whitelist=Array.from(new Set([...et.whitelist])),this._connectObject=et,et}async connect(et,tt={whitelist:[],host:HOSTURL}){if(tt=this._cleanUpConnObj(tt),this.hostUrl=tt.host,!et)return!1;try{var rt=this.wallets.find(At=>At.id==et);if(!rt)return!1;if(rt.adapter.readyState=="Installed"||rt.adapter.readyState=="Loadable"){var nt=await rt.adapter.connectWallet(tt);if(!nt)return!1;this.principalId=nt.principalId,this.accountId=nt.accountId,this.walletActive=et,this.provider=rt.adapter,this.connectedWalletInfo={id:rt.id,icon:rt.icon,name:rt.name},nt.stoicAccounts&&localStorage.setItem("stoicAccounts",nt.stoicAccounts.length||0),localStorage.setItem(localStorageKey,this.walletActive);var it=new CustomEvent("dfinityWalletConnected");window.dispatchEvent(it,et),this.getWalletBalance()}else rt.adapter.readyState=="NotDetected"&&window.open(rt.adapter.url,"_blank");return this.principalId}catch{return!1}}async disconnect(){return this.provider.disConnectWallet(),localStorage.removeItem(localStorageKey),this.provider=!1,this.address=!1,this.wallet="",!0}async isLoaded(){return new Promise((et,tt)=>{var rt=setInterval(()=>{this.provider&&(clearInterval(rt),et(!0))},500)})}async getWalletBalance(et="number"){if(!this.accountId)return 0;var tt=await this.getCanisterActor(NNS_CANISTER_ID,NNS_IDL,!1);const rt=(await tt.account_balance_dfx({account:this.accountId})).e8s;return et=="number"?this.balance=parseFloat(rt)/ICP_DECIMAL:this.balance=rt,this.balance}async requestICPTransfer(et){return new Promise(async(tt,rt)=>{var nt=()=>{},it=await this.getCanisterActor(NNS_CANISTER_ID,nt);const At=await it.send_dfx(et).catch(at=>{rt(at)});At&&tt(At),rt(!1)})}async getCanisterActor(et,tt,rt=!1){let nt=!1;if(rt){if(this.anoncanisterActors[et])return nt=this.canisterActors[et];{const it=new HttpAgent$2({AnonymousIdentity:AnonymousIdentity$2,host:this.hostUrl});return nt=await Actor$2.createActor(tt,{agent:it,canisterId:et})}}else return this.canisterActors[et]?nt=this.canisterActors[et]:(nt=await this.provider.createActor({canisterId:et,interfaceFactory:tt}),this.canisterActors[et]=nt),nt}async autoConnect(et={whitelist:[NNS_CANISTER_ID],host:HOSTURL}){et=this._cleanUpConnObj(et);var tt=localStorage.getItem(localStorageKey),rt=this.wallets.find(it=>it.id==tt);if(!rt)return!1;var nt=await this.connect(tt,et);return nt}};new Artemis({whitelist:[NNS_CANISTER_ID],host:HOSTURL});if(window){const $=new Artemis({whitelist:[NNS_CANISTER_ID],host:HOSTURL});window.artemis=$,window.artemis.BatchTransact=BatchTransaction}const connectObj={host:"https://icp0.io/",whitelist:[]},artemis=new Artemis,getConnectObj=()=>connectObj,useWalletInit=()=>{const $=useAppDispatch();reactExports.useEffect(()=>{(async()=>{const tt=localStorage.getItem("dfinityWallet")||"";tt&&($(walletActions.setWalletSelected(tt)),$(walletActions.setOnwalletList(walletState.Connecting))),await artemis.autoConnect(connectObj)&&(artemis!=null&&artemis.principalId)&&(artemis!=null&&artemis.provider)?$(walletActions.setWalletLoaded({principleId:artemis.principalId,accountId:artemis.accountId,walletActive:artemis.walletActive})):$(walletActions.setOnwalletList(walletState.Idle))})()},[])},WalletListModal=()=>{const{state:$,walletSelected:et}=useWalletStore(),tt=useAppDispatch();function rt(){tt(walletActions.setOnwalletList(walletState.Idle))}async function nt(at){var ot=getConnectObj();tt(walletActions.setWalletSelected(at)),tt(walletActions.setOnwalletList(walletState.Connecting));var st=await artemis.connect(at,ot);st?artemis!=null&&artemis.principalId&&(artemis!=null&&artemis.provider)&&tt(walletActions.setWalletLoaded({principleId:artemis.principalId,accountId:artemis.accountId,walletActive:artemis.walletActive})):tt(walletActions.setOnwalletList(walletState.OpenWalletList))}const it="#4caf50",At=useColorModeValue("gray.800","gray.50");return jsxRuntimeExports.jsxs(Modal,{isOpen:$==walletState.OpenWalletList||$==walletState.Connecting,isCentered:!0,onClose:rt,children:[jsxRuntimeExports.jsx(ModalOverlay,{}),jsxRuntimeExports.jsxs(ModalContent,{as:Flex,maxW:"sm",direction:"column",alignItems:"center",bg:it,pt:"36px",px:"20px",pb:"44px",borderRadius:20,children:[jsxRuntimeExports.jsx(ModalCloseButton,{}),$==walletState.OpenWalletList&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{as:"div",children:jsxRuntimeExports.jsx(Heading,{textAlign:"left",as:"h2",color:At,fontWeight:700,fontSize:"1.2rem",mb:4,children:"Connect Wallet"})}),jsxRuntimeExports.jsx(ModalBody,{children:jsxRuntimeExports.jsx(Box,{mt:4,p:0,w:"100%",children:artemis==null?void 0:artemis.wallets.map((at,ot)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:at.id!="dfinity"&&jsxRuntimeExports.jsxs(Flex,{display:"inline-block",width:"100%",maxWidth:"100%",direction:["column","row"],alignItems:"center",mt:2,cursor:"pointer",mb:2,pt:2,pb:1,pl:2,pr:20,border:"1px solid #358338",borderRadius:"60px",onClick:()=>nt(at==null?void 0:at.id),children:[jsxRuntimeExports.jsx(Box,{mr:4,display:"inline-block",children:jsxRuntimeExports.jsx(Image$1,{borderRadius:"full",boxSize:"32px",src:at==null?void 0:at.icon,alt:"",bg:"gray.300"})}),jsxRuntimeExports.jsxs(Box,{display:"inline-block",children:[jsxRuntimeExports.jsxs(Text$3,{fontSize:"14px",children:[" ",at==null?void 0:at.name]}),jsxRuntimeExports.jsx(Text$3,{fontSize:"12px",color:"gray.300",children:at==null?void 0:at.adapter.readyState})]})]},ot)}))})})]}),$==walletState.Connecting&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(ModalHeader,{as:"div",children:jsxRuntimeExports.jsxs(Heading,{textAlign:"left",as:"h2",color:At,fontWeight:700,fontSize:"1.2rem",mb:4,textTransform:"capitalize",children:["Connecting ",et," Wallet"]})}),jsxRuntimeExports.jsx(ModalBody,{mt:4,p:4,children:jsxRuntimeExports.jsx(Spinner,{thickness:"4px",speed:"0.65s",emptyColor:"rgba(0, 0, 0, 0.5)",color:"#fff",size:"xl"})})]})]})]})},tokenIDL=({IDL:$})=>{const et=$.Vec($.Nat8),tt=$.Nat32,rt=$.Text,nt=$.Record({subaccount:et,seller:$.Principal,buyer:rt,price:$.Nat64}),it=$.Text,At=$.Text,at=$.Variant({principal:$.Principal,address:At}),ot=$.Record({token:it,user:at}),st=$.Nat,ct=$.Variant({InvalidToken:it,Other:$.Text}),ut=$.Variant({ok:st,err:ct}),gt=$.Text,dt=$.Variant({InvalidToken:it,Other:$.Text}),ht=$.Variant({ok:rt,err:dt}),Et=$.Variant({ok:$.Tuple(tt,$.Bool),err:$.Text}),wt=$.Int,mt=$.Record({locked:$.Opt(wt),seller:$.Principal,price:$.Nat64}),pt=$.Variant({ok:$.Tuple(rt,$.Opt(mt)),err:dt}),Qt=$.Text,$t=$.Variant({fungible:$.Record({decimals:$.Nat8,metadata:$.Opt($.Vec($.Nat8)),name:$.Text,symbol:$.Text}),nonfungible:$.Record({metadata:$.Opt($.Vec($.Nat8))})}),Gt=$.Tuple($.Text,$.Text),Tt=$.Record({url:$.Text,method:$.Text,body:$.Vec($.Nat8),headers:$.Vec(Gt)}),Pt=$.Record({key:$.Text,sha256:$.Opt($.Vec($.Nat8)),index:$.Nat,content_encoding:$.Text}),Kt=$.Record({token:$.Opt(Pt),body:$.Vec($.Nat8)}),ir=$.Variant({Callback:$.Record({token:Pt,callback:$.Func([Pt],[Kt],["query"])})}),jt=$.Record({body:$.Vec($.Nat8),headers:$.Vec(Gt),streaming_strategy:$.Opt(ir),status_code:$.Nat16}),Mt=$.Record({token:gt,from_subaccount:$.Opt(et),price:$.Opt($.Nat64)}),Bt=$.Variant({ok:$.Null,err:dt}),vt=$.Variant({ok:$t,err:dt}),Nt=$.Record({to:at,metadata:$.Opt($.Vec($.Nat8))}),Ut=$.Nat,Jt=$.Variant({ok:Ut,err:dt}),rr=$.Variant({ok:$.Vec(tt),err:dt}),Wt=$.Variant({ok:$.Vec($.Tuple(tt,$.Opt(mt),$.Opt($.Vec($.Nat8)))),err:dt}),Ot=$.Record({token:gt,time:wt,seller:$.Principal,buyer:rt,price:$.Nat64}),bt=$.Vec($.Nat8),kt=$.Vec($.Nat8),Ar=$.Record({to:at,token:it,notify:$.Bool,from:at,memo:bt,subaccount:$.Opt(kt),amount:st}),cr=$.Variant({ok:st,err:$.Variant({CannotNotify:At,InsufficientBalance:$.Null,InvalidToken:it,Rejected:$.Null,Unauthorized:At,Other:$.Text})});return $.Service({acceptCycles:$.Func([],[],[]),adminKillHeartbeat:$.Func([],[],[]),adminStartHeartbeat:$.Func([],[],[]),allPayments:$.Func([],[$.Vec($.Tuple($.Principal,$.Vec(et)))],["query"]),allSettlements:$.Func([],[$.Vec($.Tuple(tt,nt))],["query"]),availableCycles:$.Func([],[$.Nat],["query"]),balance:$.Func([ot],[ut],["query"]),bearer:$.Func([gt],[ht],["query"]),claim:$.Func([$.Text],[Et],[]),clearPayments:$.Func([$.Principal,$.Vec(et)],[],[]),cronCapEvents:$.Func([],[],[]),cronDisbursements:$.Func([],[],[]),cronSettlements:$.Func([],[],[]),details:$.Func([gt],[pt],["query"]),extensions:$.Func([],[$.Vec(Qt)],["query"]),getMinter:$.Func([],[$.Principal],["query"]),getRegistry:$.Func([],[$.Vec($.Tuple(tt,rt))],["query"]),getTokens:$.Func([],[$.Vec($.Tuple(tt,$t))],["query"]),historicExport:$.Func([],[$.Bool],[]),http_request:$.Func([Tt],[jt],["query"]),initCap:$.Func([],[],[]),list:$.Func([Mt],[Bt],[]),listings:$.Func([],[$.Vec($.Tuple(tt,mt,$t))],["query"]),lock:$.Func([gt,$.Nat64,rt,et],[ht],[]),metadata:$.Func([gt],[vt],["query"]),mintNFT:$.Func([Nt],[tt],[]),payments:$.Func([],[$.Opt($.Vec(et))],["query"]),setMinter:$.Func([$.Principal],[],[]),settle:$.Func([gt],[Bt],[]),settlements:$.Func([],[$.Vec($.Tuple(tt,rt,$.Nat64))],["query"]),stats:$.Func([],[$.Nat64,$.Nat64,$.Nat64,$.Nat64,$.Nat,$.Nat,$.Nat],["query"]),supply:$.Func([gt],[Jt],["query"]),tokens:$.Func([rt],[rr],["query"]),tokens_ext:$.Func([rt],[Wt],["query"]),transactions:$.Func([],[$.Vec(Ot)],["query"]),transfer:$.Func([Ar],[cr],[])})},claimIdl=({IDL:$})=>{const et=$.Vec($.Nat8),tt=$.Record({tx:et,tokens:$.Nat}),rt=$.Variant({Unclaimed:$.Nat,Claimed:tt,Airdroped:tt}),nt=$.Text,it=$.Variant({token:$.Nat,cycles:$.Nat,noFee:$.Null}),At=$.Vec($.Nat8),at=$.Int,ot=$.Vec($.Nat8),st=$.Variant({approve:$.Record({allowance:$.Nat}),lockTransfer:$.Record({locked:$.Nat,expiration:at,decider:At}),transfer:$.Record({action:$.Variant({burn:$.Null,mint:$.Null,send:$.Null})}),executeTransfer:$.Record({fallback:$.Nat,lockedTxid:ot})}),ct=$.Record({to:At,value:$.Nat,data:$.Opt($.Vec($.Nat8)),from:At,operation:st}),ut=$.Record({gas:it,msgCaller:$.Opt($.Principal),transaction:ct,txid:ot,nonce:$.Nat,timestamp:at,caller:At,index:$.Nat}),gt=$.Record({MAX_STORAGE_TRIES:$.Nat,EN_DEBUG:$.Bool,MAX_CACHE_NUMBER_PER:$.Nat,MAX_CACHE_TIME:$.Nat}),dt=$.Vec($.Nat8),ht=$.Text,Et=$.Nat32,wt=$.Vec($.Nat8),mt=$.Record({owner:$.Principal,subaccount:$.Opt(wt)}),pt=$.Variant({Int:$.Int,Nat:$.Nat,Blob:$.Vec($.Nat8),Text:$.Text}),Qt=$.Record({owner:$.Principal,subaccount:$.Opt(wt)}),$t=$.Nat64,Gt=$.Record({to:Qt,fee:$.Opt($.Nat),memo:$.Opt($.Vec($.Nat8)),from_subaccount:$.Opt(wt),created_at_time:$.Opt($t),amount:$.Nat}),Tt=$.Variant({GenericError:$.Record({message:$.Text,error_code:$.Nat}),TemporarilyUnavailable:$.Null,BadBurn:$.Record({min_burn_amount:$.Nat}),Duplicate:$.Record({duplicate_of:$.Nat}),BadFee:$.Record({expected_fee:$.Nat}),CreatedInFuture:$.Record({ledger_time:$.Nat64}),TooOld:$.Null,InsufficientFunds:$.Record({balance:$.Nat})});return $.Service({claimTokens:$.Func([],[rt],[]),createSnap:$.Func([],[],[]),drc202_canisterId:$.Func([],[$.Principal],["query"]),drc202_events:$.Func([$.Opt(nt)],[$.Vec(ut)],["query"]),drc202_getConfig:$.Func([],[gt],["query"]),drc202_pool:$.Func([],[$.Vec($.Tuple(dt,$.Nat))],["query"]),drc202_txn:$.Func([dt],[$.Opt(ut)],["query"]),drc202_txn2:$.Func([dt],[$.Opt(ut)],[]),getEligibleTokenOfUser:$.Func([$.Principal],[rt],["query"]),getEligibleTokensSnap:$.Func([],[$.Vec($.Tuple(ht,$.Nat))],["query"]),getRawSnapshot:$.Func([],[$.Record({snapshot:$.Vec($.Tuple(Et,ht)),snapshot_time:$.Int})],["query"]),get_transactions:$.Func([],[$.Text],["composite_query"]),historySize:$.Func([],[$.Nat],["query"]),icrc1_balance_of:$.Func([mt],[$.Nat],["query"]),icrc1_decimals:$.Func([],[$.Nat8],["query"]),icrc1_fee:$.Func([],[$.Nat],["query"]),icrc1_metadata:$.Func([],[$.Vec($.Tuple($.Text,pt))],["query"]),icrc1_minting_account:$.Func([],[$.Opt(mt)],["query"]),icrc1_name:$.Func([],[$.Text],["query"]),icrc1_supported_standards:$.Func([],[$.Vec($.Record({url:$.Text,name:$.Text}))],["query"]),icrc1_symbol:$.Func([],[$.Text],["query"]),icrc1_total_supply:$.Func([],[$.Nat],["query"]),icrc1_transfer:$.Func([Gt],[$.Variant({Ok:$.Nat,Err:Tt})],[])})},tokenCanister="oeee4-qaaaa-aaaak-qaaeq-cai",claimCanister="2tlvc-vqaaa-aaaah-adwxa-cai",HomeScreen=()=>{const $=document.querySelector("header"),et=$?$.offsetHeight:"96",tt=useAppDispatch(),{isConnected:rt,principalId:nt,accountId:it}=useWalletStore(),[At,at]=reactExports.useState([]),[ot,st]=reactExports.useState(!1),[ct,ut]=reactExports.useState([]),[gt,dt]=reactExports.useState(!1),[ht,Et]=reactExports.useState("Claim Token"),wt=async()=>{await artemis.disconnect(),await tt(walletActions.resetWallet()),location.reload()},mt=async()=>new Promise(Gt=>{st(!0);var Tt={method:"GET",redirect:"follow"};fetch("https://mcdatapool.s3.us-east-2.amazonaws.com/collection/rarity/motoko",Tt).then(Pt=>Pt.json()).then(Pt=>{at(Pt),st(!1)}).catch(Pt=>{Gt([])})}),pt=async()=>{var Kt;var Gt=await artemis.getCanisterActor(tokenCanister,tokenIDL,!0),Tt=await Gt.tokens_ext(it);if(((Kt=Tt==null?void 0:Tt.ok)==null?void 0:Kt.length)>0?Tt=Tt==null?void 0:Tt.ok:Tt=[],Tt.length){var Pt=[];Tt.forEach(ir=>{var jt=ir[0],Mt=At.find(Bt=>Bt.tokenIndex==jt);Mt&&Pt.push(Mt)}),ut(Pt)}Qt()};reactExports.useEffect(()=>{mt()},[]),reactExports.useEffect(()=>{rt&&pt()},[rt,At]);const Qt=async()=>{Et("Checking Token Eligibilty ...");var Gt=await artemis.getCanisterActor(claimCanister,claimIdl,!1);if(nt){var Tt=await Gt.getEligibleTokenOfUser(Principal$5.fromText(nt));if(Tt!=null&&Tt.Unclaimed){var Pt=Number(Tt==null?void 0:Tt.Unclaimed);Pt>0?(Et("Claim for "+Pt+" NFTs"),dt(!0)):(Et("Not Eligible for Claim.."),dt(!1))}else if(Tt!=null&&Tt.Claimed){var Kt=Number(Tt==null?void 0:Tt.Claimed.tokens);Kt>0&&(Et("Tokens Claimed for "+Kt+" NFTs"),dt(!1))}else if(Tt!=null&&Tt.Airdroped){var ir=Number(Tt==null?void 0:Tt.Airdroped.tokens);ir>0&&(Et("Tokens Airdropped for "+ir+" NFTs"),dt(!1))}else Et("Not Eligible for Claim.."),dt(!1)}},$t=async()=>{dt(!1),Et("Claiming Tokens...");var Gt=await artemis.getCanisterActor(claimCanister,claimIdl,!1),Tt=await Gt.claimTokens();if(Tt.Claimed){var Pt=Number(Tt==null?void 0:Tt.Claimed.tokens);Pt>0&&(Et("Tokens Claimed for "+Pt+" NFTs"),dt(!1))}else if(Tt!=null&&Tt.Airdroped){var Kt=Number(Tt==null?void 0:Tt.Airdroped.tokens);Kt>0&&(Et("Tokens Airdropped for "+Kt+" NFTs"),dt(!1))}else Et("Not Eligible for Claim.."),dt(!1)};return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Box,{as:"section",children:jsxRuntimeExports.jsxs(Container,{w:{lg:"container.xl"},maxW:"100%",p:0,display:"flex",h:{base:`calc(100vh - ${et}px)`},flexDirection:"column",alignItems:"center",children:[jsxRuntimeExports.jsx(Box,{minW:"100%",className:"hm-sec-1",height:"200px"}),jsxRuntimeExports.jsxs(Box,{minW:"100%",textAlign:"center",alignItems:"center",justifyItems:"center",children:[jsxRuntimeExports.jsx(Heading,{fontSize:34,fontWeight:"300",color:"base.black",textAlign:"center",mt:"2",children:"Motoko Claim Portal!"}),jsxRuntimeExports.jsxs(Box,{display:"inline-block",fontSize:{base:"14",xl:"16"},textAlign:"justify",lineHeight:"24px",w:{base:"90%",xl:"80%"},mt:"5",color:"base.grey",children:["Welcome to the Motoko Claim portal! Two years ago, the DFINITY Foundation introduced the iconic Motoko NFTs, representing a blend of digital artistry and blockchain innovation. If you are a proud Motoko NFT owner who did not receive tokens through an airdrop, you can utilize this portal to claim your $MOTOKO tokens by connecting your holding wallet. Please take note of the following:",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("br",{}),"1. This process is entirely based on the snapshot captured on January 30th at 3 PM UTC.",jsxRuntimeExports.jsx("br",{}),"2. Only holders with missing principal wallets in the snapshot can utilize this portal. Please check your wallet before using this portal.",jsxRuntimeExports.jsx("br",{}),"3. Verify your Motoko token balance using the provided canister ID: 2tlvc-vqaaa-aaaah-adwxa-cai.",jsxRuntimeExports.jsx("br",{}),"For additional details, check ",jsxRuntimeExports.jsx(Box,{as:"a",fontWeight:"bold",target:"_blank",href:"https://sonic-ooo.medium.com/unlocking-motoko-a-comprehensive-guide-to-the-motoko-nft-airdrop-c17024d24993",children:"here"})]})]}),jsxRuntimeExports.jsx(Box,{mt:5,w:{base:"90%",xl:"80%"},children:rt?jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsxs(Box,{wordBreak:"break-all",children:[jsxRuntimeExports.jsx(Box,{minW:"100%",as:"h2",color:"base.black",fontWeight:"semibold",fontSize:16,children:" Wallet Info"}),jsxRuntimeExports.jsxs(Text$3,{fontSize:{base:"14",xl:"14"},lineHeight:"24px",w:"100%",mt:"3",mb:"5",color:"base.grey",textAlign:"justify",children:[jsxRuntimeExports.jsx("b",{children:"Principal ID "})," : ",nt," ",jsxRuntimeExports.jsx("br",{}),jsxRuntimeExports.jsx("b",{children:"Account ID "})," : ",it]})]}),jsxRuntimeExports.jsxs(Box,{mb:10,children:[jsxRuntimeExports.jsx(Box,{minW:"100%",as:"h2",color:"base.black",fontWeight:"semibold",fontSize:16,children:jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Text$3,{mt:2,children:"Your NFTs"}),jsxRuntimeExports.jsx(Button,{ml:3,size:"md",borderRadius:10,fontSize:"md",colorScheme:"green",onClick:pt,children:" Refresh "})]})}),ot&&jsxRuntimeExports.jsx(Box,{children:jsxRuntimeExports.jsx(Text$3,{fontSize:14,color:"base.grey",children:"loading Tokens data..."})}),ct.length>0&&jsxRuntimeExports.jsx(Grid,{templateColumns:{base:"repeat(3, 1fr)",lg:"repeat(8, 1fr)"},gap:4,mt:3,children:Array.from({length:ct.length},(Gt,Tt)=>jsxRuntimeExports.jsxs(GridItem,{w:"100%",bg:"#fff",border:"1px solid #D1D1D1",borderRadius:"4",padding:"2",children:[jsxRuntimeExports.jsx(Image$1,{src:ct[Tt].thumb}),jsxRuntimeExports.jsxs(Text$3,{fontSize:14,color:"base.grey",children:[" ",ct[Tt].tokenName]})]},Tt))})]}),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsx(Button,{onClick:$t,isDisabled:!gt,size:"lg",px:10,borderRadius:10,fontSize:"md",style:{width:"100%",color:"#fff",backgroundColor:"rgb(0 189 55)"},children:ht}),jsxRuntimeExports.jsx(Button,{ml:3,size:"lg",borderRadius:10,fontSize:"md",onClick:wt,style:{width:"100%",color:"#fff",backgroundColor:"rgb(255 67 22)"},children:"Disconnect"})]}),jsxRuntimeExports.jsx(Flex,{children:jsxRuntimeExports.jsx(Box,{mt:4,children:jsxRuntimeExports.jsx(Box,{as:"a",color:"base.black",fontWeight:"bold",target:"_blank",href:"https://ic.house/address/2tlvc-vqaaa-aaaah-adwxa-cai/"+nt,children:"Check Transactions"})})})]}):jsxRuntimeExports.jsx(WalletConnectBtn,{})}),jsxRuntimeExports.jsx(Box,{mt:20,w:{base:"90%",xl:"80%"},background:"",children:jsxRuntimeExports.jsxs(Box,{color:"base.grey",textAlign:"center",children:["Powered by  ",jsxRuntimeExports.jsx(Box,{as:"a",color:"base.black",fontWeight:"bold",target:"_blank",href:"https://app.sonic.ooo/",children:"Sonic AMM"})]})})]})})})},App=()=>(useWalletInit(),jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsxs(MainLayout,{children:[jsxRuntimeExports.jsx(WalletListModal,{}),jsxRuntimeExports.jsxs(Routes,{children:[jsxRuntimeExports.jsx(Route,{path:"/",element:jsxRuntimeExports.jsx(HomeScreen,{})}),jsxRuntimeExports.jsx(Route,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/"})})]})]})})),colors={base:{green:"#03FD8E",black:"#000804",white:"#FBFCFF",danger:"#E30385",cardBgT1:"rgb(116 255 205 / 8%)",grey:"#6E6E73"},app:{background:{body:{light:"#ffff",dark:"#ffff"},container:{light:"#F0F2F4",dark:"#1c1f43"}},header:{light:"#ffff",dark:"#ffff"},text:{c1:"#FBFCFF"}}},sizes={modalHeight:"345px",container:{xxl:"80%"}},baseStyle={th:{textTransform:"none"}},variantDashboard={table:{position:"relative",fontFamily:"Neue Machina Regular"},td:{paddingBottom:"1.25rem",borderBottomStyle:"dotted",borderBottomWidth:2},th:{borderBottom:"none"},tr:{_last:{td:{opacity:.3,borderBottom:"none"}}}},variants={simple:variantDashboard},Table={parts:tableAnatomy.keys,baseStyle,variants},theme=extendTheme({styles:{global:$=>({body:{bg:mode(colors.app.background.body.light,colors.app.background.body.dark)($)}})},colors:{...colors},config:{initialColorMode:"dark",useSystemColorMode:!1},sizes:{...sizes},fonts:{heading:"Neue Machina Regular",body:"Graphik Web"},components:{Table}});var createRoot,m=reactDomExports;createRoot=m.createRoot,m.hydrateRoot;const rootElement=document.getElementById("app-root"),root=createRoot(rootElement);root.render(jsxRuntimeExports.jsx(ChakraProvider,{theme,resetCSS:!0,children:jsxRuntimeExports.jsx(Provider,{store,children:jsxRuntimeExports.jsx(App,{})})}));export{AgentError$1 as A,Certificate$1 as C,Principal$3 as P,decodeTime$1 as a,decode$4 as b,Certificate as c,decodeLeb128$1 as d,decodeLeb128 as e,decodeTime as f,AgentError as g,toHex as h,decode$1 as i,Principal$1 as j,toHex$1 as t}; diff --git a/src/claim_site/assets/favicon.ico b/src/claim_site/assets/favicon.ico index 968312a..aa903b2 100644 Binary files a/src/claim_site/assets/favicon.ico and b/src/claim_site/assets/favicon.ico differ diff --git a/src/claim_site/assets/index.html b/src/claim_site/assets/index.html index b1b7eb9..89d7c72 100644 --- a/src/claim_site/assets/index.html +++ b/src/claim_site/assets/index.html @@ -39,7 +39,7 @@ - + diff --git a/src/claim_site/assets/logo.png b/src/claim_site/assets/logo.png new file mode 100644 index 0000000..218fdea Binary files /dev/null and b/src/claim_site/assets/logo.png differ diff --git a/src/claim_site/assets/theme/img/bkg/dex-bg.jpg b/src/claim_site/assets/theme/img/bkg/dex-bg.jpg deleted file mode 100644 index 8d1a956..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/dex-bg.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/earn-bg.jpg b/src/claim_site/assets/theme/img/bkg/earn-bg.jpg deleted file mode 100644 index 61e30bf..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/earn-bg.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/hero-bg-mob-1.jpg b/src/claim_site/assets/theme/img/bkg/hero-bg-mob-1.jpg deleted file mode 100644 index d6d0565..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/hero-bg-mob-1.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/hero-bg1.jpg b/src/claim_site/assets/theme/img/bkg/hero-bg1.jpg deleted file mode 100644 index 41c9535..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/hero-bg1.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/launch-button-bg.jpg b/src/claim_site/assets/theme/img/bkg/launch-button-bg.jpg deleted file mode 100644 index e2642bb..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/launch-button-bg.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/market-bg.jpg b/src/claim_site/assets/theme/img/bkg/market-bg.jpg deleted file mode 100644 index ef13d28..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/market-bg.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/market-bg.png b/src/claim_site/assets/theme/img/bkg/market-bg.png deleted file mode 100644 index f6a04f6..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/market-bg.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/bkg/statistic-bg1.jpg b/src/claim_site/assets/theme/img/bkg/statistic-bg1.jpg deleted file mode 100644 index 7565f6b..0000000 Binary files a/src/claim_site/assets/theme/img/bkg/statistic-bg1.jpg and /dev/null differ diff --git a/src/claim_site/assets/theme/img/icons/arrow.svg b/src/claim_site/assets/theme/img/icons/arrow.svg deleted file mode 100644 index e2d47c4..0000000 --- a/src/claim_site/assets/theme/img/icons/arrow.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/claim_site/assets/theme/img/icons/chainlink.svg b/src/claim_site/assets/theme/img/icons/chainlink.svg deleted file mode 100644 index 42cbc3c..0000000 --- a/src/claim_site/assets/theme/img/icons/chainlink.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/discord.svg b/src/claim_site/assets/theme/img/icons/discord.svg deleted file mode 100644 index 325a37b..0000000 --- a/src/claim_site/assets/theme/img/icons/discord.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/earn1.png b/src/claim_site/assets/theme/img/icons/earn1.png deleted file mode 100644 index 395f3ec..0000000 Binary files a/src/claim_site/assets/theme/img/icons/earn1.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/icons/earn2.png b/src/claim_site/assets/theme/img/icons/earn2.png deleted file mode 100644 index 898ef3b..0000000 Binary files a/src/claim_site/assets/theme/img/icons/earn2.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/icons/earn3.png b/src/claim_site/assets/theme/img/icons/earn3.png deleted file mode 100644 index d96ed93..0000000 Binary files a/src/claim_site/assets/theme/img/icons/earn3.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/icons/github.svg b/src/claim_site/assets/theme/img/icons/github.svg deleted file mode 100644 index 1f2e017..0000000 --- a/src/claim_site/assets/theme/img/icons/github.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/hop.svg b/src/claim_site/assets/theme/img/icons/hop.svg deleted file mode 100644 index a03343f..0000000 --- a/src/claim_site/assets/theme/img/icons/hop.svg +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/icp.svg b/src/claim_site/assets/theme/img/icons/icp.svg deleted file mode 100644 index c90480a..0000000 --- a/src/claim_site/assets/theme/img/icons/icp.svg +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/medium.svg b/src/claim_site/assets/theme/img/icons/medium.svg deleted file mode 100644 index 37d2dc0..0000000 --- a/src/claim_site/assets/theme/img/icons/medium.svg +++ /dev/null @@ -1,20 +0,0 @@ - - Medium-Symbol-Black-RGB-svg - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/claim_site/assets/theme/img/icons/menu-close.svg b/src/claim_site/assets/theme/img/icons/menu-close.svg deleted file mode 100644 index 95094cc..0000000 --- a/src/claim_site/assets/theme/img/icons/menu-close.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/claim_site/assets/theme/img/icons/menu-open.svg b/src/claim_site/assets/theme/img/icons/menu-open.svg deleted file mode 100644 index 1ce5810..0000000 --- a/src/claim_site/assets/theme/img/icons/menu-open.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/src/claim_site/assets/theme/img/icons/optimism.svg b/src/claim_site/assets/theme/img/icons/optimism.svg deleted file mode 100644 index 732c261..0000000 --- a/src/claim_site/assets/theme/img/icons/optimism.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/icons/twitter.svg b/src/claim_site/assets/theme/img/icons/twitter.svg deleted file mode 100644 index af4699e..0000000 --- a/src/claim_site/assets/theme/img/icons/twitter.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - diff --git a/src/claim_site/assets/theme/img/ill/hero-laptop1.png b/src/claim_site/assets/theme/img/ill/hero-laptop1.png deleted file mode 100644 index 80c601b..0000000 Binary files a/src/claim_site/assets/theme/img/ill/hero-laptop1.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/ill/hero-sh-mb-1.png b/src/claim_site/assets/theme/img/ill/hero-sh-mb-1.png deleted file mode 100644 index 24e4151..0000000 Binary files a/src/claim_site/assets/theme/img/ill/hero-sh-mb-1.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/ill/hero-sh-tbl-1.png b/src/claim_site/assets/theme/img/ill/hero-sh-tbl-1.png deleted file mode 100644 index f53066e..0000000 Binary files a/src/claim_site/assets/theme/img/ill/hero-sh-tbl-1.png and /dev/null differ diff --git a/src/claim_site/assets/theme/img/logo.svg b/src/claim_site/assets/theme/img/logo.svg deleted file mode 100644 index 94ebbbc..0000000 --- a/src/claim_site/assets/theme/img/logo.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/src/claim_site/assets/theme/img/logo_line.svg b/src/claim_site/assets/theme/img/logo_line.svg deleted file mode 100644 index fdc57c9..0000000 --- a/src/claim_site/assets/theme/img/logo_line.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/token/main.mo b/src/token/main.mo index 4fd695a..068d0ee 100644 --- a/src/token/main.mo +++ b/src/token/main.mo @@ -661,39 +661,34 @@ shared(msg) actor class ICRC1Canister(args : {tokenOwner : Principal}) = this { private func _getEligibleTokenOfUser(user: Principal) : TokenClaimStatus { switch(airdropedTokens.get(user)) { case(?tokens) { - switch(airdropTxs.get(user)){ - case(?tx){ - return #Airdroped({ - tx = tx; - tokens = tokens; - }); - }; - case(_){ - return #Airdroped({ + // switch(airdropTxs.get(user)){ + // case(?tx){ + // return #Airdroped({ + // tx = tx; + // tokens = tokens; + // }); + // }; + // case(_){ + // return #Airdroped({ + // tx = ""; + // tokens = tokens; + // }); + // }; + // }; + return #Airdroped({ tx = ""; tokens = tokens; - }); - }; - }; + }); }; case(_){}; }; switch(claimedTokens.get(user)){ case(?tokens){ - switch(claimedTxs.get(msg.caller)){ - case(?tx){ - return #Claimed({ - tx = tx; - tokens = tokens; - }); - }; - case(_){ - return #Claimed({ - tx = ""; - tokens = tokens; - }); - }; - }; + + return #Claimed({ + tx = ""; + tokens = tokens; + }); }; case(_){}; }; @@ -701,9 +696,10 @@ shared(msg) actor class ICRC1Canister(args : {tokenOwner : Principal}) = this { }; public shared query(msg) func getEligibleTokenOfUser(user : Principal) : async TokenClaimStatus { - switch(_getEligibleTokenOfUser(msg.caller)) { - case(#Unclaimed(tokens)){ return #Unclaimed(tokens) }; - case(status){ return status }; + switch(_getEligibleTokenOfUser(user)) { + case(#Unclaimed(tokens)){ return #Unclaimed(tokens); }; + case(#Airdroped(status)){ return #Airdroped(status); }; + case(#Claimed(status)){ return #Claimed(status); }; }; }; @@ -722,7 +718,7 @@ shared(msg) actor class ICRC1Canister(args : {tokenOwner : Principal}) = this { }; public shared(msg) func claimTokens() : async TokenClaimStatus { - assert(Principal.isController(msg.caller)); + // assert(Principal.isController(msg.caller)); switch(_getEligibleTokenOfUser(msg.caller)) { case(#Unclaimed(tokens)){ @@ -803,7 +799,7 @@ shared(msg) actor class ICRC1Canister(args : {tokenOwner : Principal}) = this { }; }; - // public shared(msg) func checkData(start : Nat, end : Nat) : async (Nat, Nat) { + // public shared(msg) func checkData(user : Principal) : async (?Nat, ?Nat) { // assert(Principal.isController(msg.caller)); // createEligibleTokenList(); // let affected_pages :[Nat] = Iter.toArray(Iter.range(start, end)); @@ -871,7 +867,6 @@ shared(msg) actor class ICRC1Canister(args : {tokenOwner : Principal}) = this { // for(x in Iter.toArray(claimedTokens.entries()).vals()){ // cTokens += x.1; // }; - - // return (aTokens, cTokens); + // return (airdropedTokens.get(user), claimedTokens.get(user)); // }; };