diff --git a/404.html b/404.html index c06a7c6..467a02b 100644 --- a/404.html +++ b/404.html @@ -65,7 +65,7 @@ } TON Vote - +
diff --git a/assets/DaoSettings-d5a2692b.js b/assets/DaoSettings-0869ca9a.js similarity index 96% rename from assets/DaoSettings-d5a2692b.js rename to assets/DaoSettings-0869ca9a.js index dcd4436..2217203 100644 --- a/assets/DaoSettings-d5a2692b.js +++ b/assets/DaoSettings-0869ca9a.js @@ -1 +1 @@ -import{u as O,a as l,b as F,c as h,j as r,F as m,d as M,e as v,S as f,B as A,T as S,f as b,r as D,_ as L,g as P,h as E,L as R,i as w,k as p,M as V}from"./index-40d41e53.js";function C(){const e=O(B),{daoAddress:n}=l(),s=F(n).data,t=h({initialValues:{ownerAddress:(s==null?void 0:s.daoRoles.owner)||"",proposalOwner:(s==null?void 0:s.daoRoles.proposalOwner)||""},validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>{}});return r(m,{form:e,formik:t})}const B=({name:e,formik:n})=>{const{mutateAsync:s,isLoading:t}=M(),{mutateAsync:i,isLoading:o}=v(),a=n.values[e],u=n.initialValues[e],c=()=>{const d={newOwner:a,onError:y=>n.setFieldError(e,y)};if(e==="ownerAddress")return s(d);if(e==="proposalOwner")return i(d)},g=e==="ownerAddress"?t:o;return u===a?null:r(f,{children:r(A,{onClick:c,isLoading:g,children:r(S,{children:"Update"})})})},Q=()=>({title:"Dao Admin Settings",inputs:[{name:"fwdMsgFee",label:"Forward Message Fee",type:"number",EndAdornment:k}]});function j(){const e=Q(),{daoAddress:n}=l(),{data:s}=b(n),t=h({enableReinitialize:!0,initialValues:{fwdMsgFee:Number(s==null?void 0:s.fwdMsgFee)},validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>{}});return r(m,{form:e,formik:t})}const k=({name:e,formik:n})=>{const{daoAddress:s}=l(),t=n.values[e],i=n.initialValues[e],o=F(s).data,{mutate:a,isLoading:u}=D.useSetDaoFwdMsgFee(),{refetch:c}=b(o==null?void 0:o.daoAddress),g=()=>{if(e==="fwdMsgFee")return a({daoIds:[o.daoId],amount:t,onError:d=>n.setFieldError(e,d),onSuccess:c})};return!L.isNumber(t)||i===t?null:r(f,{children:r(A,{onClick:g,isLoading:u,children:r(S,{children:"Update"})})})};function I(){const e=P(),{daoAddress:n}=l(),{isLoading:s,data:t}=F(n),{isOwner:i,isProposalPublisher:o}=E(t==null?void 0:t.daoRoles),a=i||o;return r(R,{title:e.settings,isLoading:s,children:w(p,{children:[r(j,{}),a&&w(p,{children:[r(C,{}),r(V,{})]})]})})}export{I as DaoSettings,I as default}; +import{u as O,a as l,b as F,c as h,j as r,F as m,d as M,e as v,S as f,B as A,T as S,f as b,r as D,_ as L,g as P,h as E,L as R,i as w,k as p,M as V}from"./index-b70e5076.js";function C(){const e=O(B),{daoAddress:n}=l(),s=F(n).data,t=h({initialValues:{ownerAddress:(s==null?void 0:s.daoRoles.owner)||"",proposalOwner:(s==null?void 0:s.daoRoles.proposalOwner)||""},validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>{}});return r(m,{form:e,formik:t})}const B=({name:e,formik:n})=>{const{mutateAsync:s,isLoading:t}=M(),{mutateAsync:i,isLoading:o}=v(),a=n.values[e],u=n.initialValues[e],c=()=>{const d={newOwner:a,onError:y=>n.setFieldError(e,y)};if(e==="ownerAddress")return s(d);if(e==="proposalOwner")return i(d)},g=e==="ownerAddress"?t:o;return u===a?null:r(f,{children:r(A,{onClick:c,isLoading:g,children:r(S,{children:"Update"})})})},Q=()=>({title:"Dao Admin Settings",inputs:[{name:"fwdMsgFee",label:"Forward Message Fee",type:"number",EndAdornment:k}]});function j(){const e=Q(),{daoAddress:n}=l(),{data:s}=b(n),t=h({enableReinitialize:!0,initialValues:{fwdMsgFee:Number(s==null?void 0:s.fwdMsgFee)},validateOnChange:!1,validateOnBlur:!0,onSubmit:()=>{}});return r(m,{form:e,formik:t})}const k=({name:e,formik:n})=>{const{daoAddress:s}=l(),t=n.values[e],i=n.initialValues[e],o=F(s).data,{mutate:a,isLoading:u}=D.useSetDaoFwdMsgFee(),{refetch:c}=b(o==null?void 0:o.daoAddress),g=()=>{if(e==="fwdMsgFee")return a({daoIds:[o.daoId],amount:t,onError:d=>n.setFieldError(e,d),onSuccess:c})};return!L.isNumber(t)||i===t?null:r(f,{children:r(A,{onClick:g,isLoading:u,children:r(S,{children:"Update"})})})};function I(){const e=P(),{daoAddress:n}=l(),{isLoading:s,data:t}=F(n),{isOwner:i,isProposalPublisher:o}=E(t==null?void 0:t.daoRoles),a=i||o;return r(R,{title:e.settings,isLoading:s,children:w(p,{children:[r(j,{}),a&&w(p,{children:[r(C,{}),r(V,{})]})]})})}export{I as DaoSettings,I as default}; diff --git a/assets/index-40d41e53.js b/assets/index-b70e5076.js similarity index 74% rename from assets/index-40d41e53.js rename to assets/index-b70e5076.js index 028e68c..8a0a03d 100644 --- a/assets/index-40d41e53.js +++ b/assets/index-b70e5076.js @@ -1,9 +1,9 @@ -var _ve=Object.defineProperty;var Eve=(e,t,n)=>t in e?_ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gr=(e,t,n)=>(Eve(e,typeof t!="symbol"?t+"":t,n),n),Tve=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var v3=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var ux=(e,t,n)=>(Tve(e,t,"access private method"),n);function kve(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Cc(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var hQ={},K_={};K_.byteLength=Mve;K_.toByteArray=Rve;K_.fromByteArray=$ve;var Ku=[],hl=[],Ive=typeof Uint8Array<"u"?Uint8Array:Array,b3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var xm=0,Pve=b3.length;xm0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Mve(e){var t=gQ(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Ove(e,t,n){return(t+n)*3/4-n}function Rve(e){var t,n=gQ(e),r=n[0],o=n[1],i=new Ive(Ove(e,r,o)),a=0,s=o>0?r-4:r,l;for(l=0;l>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=hl[e.charCodeAt(l)]<<2|hl[e.charCodeAt(l+1)]>>4,i[a++]=t&255),o===1&&(t=hl[e.charCodeAt(l)]<<10|hl[e.charCodeAt(l+1)]<<4|hl[e.charCodeAt(l+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Dve(e){return Ku[e>>18&63]+Ku[e>>12&63]+Ku[e>>6&63]+Ku[e&63]}function Bve(e,t,n){for(var r,o=[],i=t;is?s:a+i));return r===1?(t=e[n-1],o.push(Ku[t>>2]+Ku[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Ku[t>>10]+Ku[t>>4&63]+Ku[t<<2&63]+"=")),o.join("")}var q5={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */q5.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,l=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,g=e[t+f];for(f+=p,i=g&(1<<-c)-1,g>>=-c,c+=s;c>0;i=i*256+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=a*256+e[t+f],f+=p,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-u}return(g?-1:1)*a*Math.pow(2,i-r)};q5.write=function(e,t,n,r,o,i){var a,s,l,u=i*8-o-1,c=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:i-1,m=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+g]=s&255,g+=m,s/=256,o-=8);for(a=a<0;e[n+g]=a&255,g+=m,a/=256,u-=8);e[n+g-m]|=y*128};/*! +var Ave=Object.defineProperty;var _ve=(e,t,n)=>t in e?Ave(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gr=(e,t,n)=>(_ve(e,typeof t!="symbol"?t+"":t,n),n),Eve=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var b3=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)};var u2=(e,t,n)=>(Eve(e,t,"access private method"),n);function Tve(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var st=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Au(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var hQ={},K_={};K_.byteLength=Pve;K_.toByteArray=Ove;K_.fromByteArray=Bve;var Yu=[],hl=[],kve=typeof Uint8Array<"u"?Uint8Array:Array,w3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var xm=0,Ive=w3.length;xm0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Pve(e){var t=gQ(e),n=t[0],r=t[1];return(n+r)*3/4-r}function Mve(e,t,n){return(t+n)*3/4-n}function Ove(e){var t,n=gQ(e),r=n[0],o=n[1],i=new kve(Mve(e,r,o)),a=0,s=o>0?r-4:r,l;for(l=0;l>16&255,i[a++]=t>>8&255,i[a++]=t&255;return o===2&&(t=hl[e.charCodeAt(l)]<<2|hl[e.charCodeAt(l+1)]>>4,i[a++]=t&255),o===1&&(t=hl[e.charCodeAt(l)]<<10|hl[e.charCodeAt(l+1)]<<4|hl[e.charCodeAt(l+2)]>>2,i[a++]=t>>8&255,i[a++]=t&255),i}function Rve(e){return Yu[e>>18&63]+Yu[e>>12&63]+Yu[e>>6&63]+Yu[e&63]}function Dve(e,t,n){for(var r,o=[],i=t;is?s:a+i));return r===1?(t=e[n-1],o.push(Yu[t>>2]+Yu[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],o.push(Yu[t>>10]+Yu[t>>4&63]+Yu[t<<2&63]+"=")),o.join("")}var Q5={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */Q5.read=function(e,t,n,r,o){var i,a,s=o*8-r-1,l=(1<>1,c=-7,f=n?o-1:0,p=n?-1:1,g=e[t+f];for(f+=p,i=g&(1<<-c)-1,g>>=-c,c+=s;c>0;i=i*256+e[t+f],f+=p,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=a*256+e[t+f],f+=p,c-=8);if(i===0)i=1-u;else{if(i===l)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,r),i=i-u}return(g?-1:1)*a*Math.pow(2,i-r)};Q5.write=function(e,t,n,r,o,i){var a,s,l,u=i*8-o-1,c=(1<>1,p=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=r?0:i-1,m=r?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+f>=1?t+=p/l:t+=p*Math.pow(2,1-f),t*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a=a+f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+g]=s&255,g+=m,s/=256,o-=8);for(a=a<0;e[n+g]=a&255,g+=m,a/=256,u-=8);e[n+g-m]|=y*128};/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */(function(e){const t=K_,n=q5,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.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 i(){try{const N=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(N,k),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(N){if(N>o)throw new RangeError('The value "'+N+'" is invalid for option "size"');const k=new Uint8Array(N);return Object.setPrototypeOf(k,s.prototype),k}function s(N,k,S){if(typeof N=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(N)}return l(N,k,S)}s.poolSize=8192;function l(N,k,S){if(typeof N=="string")return p(N,k);if(ArrayBuffer.isView(N))return m(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(We(N,ArrayBuffer)||N&&We(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(N,SharedArrayBuffer)||N&&We(N.buffer,SharedArrayBuffer)))return y(N,k,S);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=N.valueOf&&N.valueOf();if(P!=null&&P!==N)return s.from(P,k,S);const V=v(N);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),k,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,k,S){return l(N,k,S)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function c(N,k,S){return u(N),N<=0?a(N):k!==void 0?typeof S=="string"?a(N).fill(k,S):a(N).fill(k):a(N)}s.alloc=function(N,k,S){return c(N,k,S)};function f(N){return u(N),a(N<0?0:x(N)|0)}s.allocUnsafe=function(N){return f(N)},s.allocUnsafeSlow=function(N){return f(N)};function p(N,k){if((typeof k!="string"||k==="")&&(k="utf8"),!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const S=I(N,k)|0;let P=a(S);const V=P.write(N,k);return V!==S&&(P=P.slice(0,V)),P}function g(N){const k=N.length<0?0:x(N.length)|0,S=a(k);for(let P=0;P=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return N|0}function w(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==s.prototype},s.compare=function(k,S){if(We(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),We(S,Uint8Array)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(k)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===S)return 0;let P=k.length,V=S.length;for(let K=0,ee=Math.min(P,V);KV.length?(s.isBuffer(ee)||(ee=s.from(ee)),ee.copy(V,K)):Uint8Array.prototype.set.call(V,ee,K);else if(s.isBuffer(ee))ee.copy(V,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return V};function I(N,k){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||We(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const S=N.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&S===0)return 0;let V=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return Be(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return xe(N).length;default:if(V)return P?-1:Be(N).length;k=(""+k).toLowerCase(),V=!0}}s.byteLength=I;function _(N,k,S){let P=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,k>>>=0,S<=k))return"";for(N||(N="utf8");;)switch(N){case"hex":return W(this,k,S);case"utf8":case"utf-8":return L(this,k,S);case"ascii":return q(this,k,S);case"latin1":case"binary":return Y(this,k,S);case"base64":return j(this,k,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,k,S);default:if(P)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),P=!0}}s.prototype._isBuffer=!0;function R(N,k,S){const P=N[k];N[k]=N[S],N[S]=P}s.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(k+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(k,S,P,V,K){if(We(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),!s.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(S===void 0&&(S=0),P===void 0&&(P=k?k.length:0),V===void 0&&(V=0),K===void 0&&(K=this.length),S<0||P>k.length||V<0||K>this.length)throw new RangeError("out of range index");if(V>=K&&S>=P)return 0;if(V>=K)return-1;if(S>=P)return 1;if(S>>>=0,P>>>=0,V>>>=0,K>>>=0,this===k)return 0;let ee=K-V,be=P-S;const Me=Math.min(ee,be),we=this.slice(V,K),Pe=k.slice(S,P);for(let Ye=0;Ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ge(S)&&(S=V?0:N.length-1),S<0&&(S=N.length+S),S>=N.length){if(V)return-1;S=N.length-1}else if(S<0)if(V)S=0;else return-1;if(typeof k=="string"&&(k=s.from(k,P)),s.isBuffer(k))return k.length===0?-1:D(N,k,S,P,V);if(typeof k=="number")return k=k&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(N,k,S):Uint8Array.prototype.lastIndexOf.call(N,k,S):D(N,[k],S,P,V);throw new TypeError("val must be string, number or Buffer")}function D(N,k,S,P,V){let K=1,ee=N.length,be=k.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(N.length<2||k.length<2)return-1;K=2,ee/=2,be/=2,S/=2}function Me(Pe,Ye){return K===1?Pe[Ye]:Pe.readUInt16BE(Ye*K)}let we;if(V){let Pe=-1;for(we=S;weee&&(S=ee-be),we=S;we>=0;we--){let Pe=!0;for(let Ye=0;YeV&&(P=V)):P=V;const K=k.length;P>K/2&&(P=K/2);let ee;for(ee=0;ee>>0,isFinite(P)?(P=P>>>0,V===void 0&&(V="utf8")):(V=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-S;if((P===void 0||P>K)&&(P=K),k.length>0&&(P<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return b(this,k,S,P);case"utf8":case"utf-8":return T(this,k,S,P);case"ascii":case"latin1":case"binary":return C(this,k,S,P);case"base64":return O(this,k,S,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,k,S,P);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(N,k,S){return k===0&&S===N.length?t.fromByteArray(N):t.fromByteArray(N.slice(k,S))}function L(N,k,S){S=Math.min(N.length,S);const P=[];let V=k;for(;V239?4:K>223?3:K>191?2:1;if(V+be<=S){let Me,we,Pe,Ye;switch(be){case 1:K<128&&(ee=K);break;case 2:Me=N[V+1],(Me&192)===128&&(Ye=(K&31)<<6|Me&63,Ye>127&&(ee=Ye));break;case 3:Me=N[V+1],we=N[V+2],(Me&192)===128&&(we&192)===128&&(Ye=(K&15)<<12|(Me&63)<<6|we&63,Ye>2047&&(Ye<55296||Ye>57343)&&(ee=Ye));break;case 4:Me=N[V+1],we=N[V+2],Pe=N[V+3],(Me&192)===128&&(we&192)===128&&(Pe&192)===128&&(Ye=(K&15)<<18|(Me&63)<<12|(we&63)<<6|Pe&63,Ye>65535&&Ye<1114112&&(ee=Ye))}}ee===null?(ee=65533,be=1):ee>65535&&(ee-=65536,P.push(ee>>>10&1023|55296),ee=56320|ee&1023),P.push(ee),V+=be}return H(P)}const B=4096;function H(N){const k=N.length;if(k<=B)return String.fromCharCode.apply(String,N);let S="",P=0;for(;PP)&&(S=P);let V="";for(let K=k;KP&&(k=P),S<0?(S+=P,S<0&&(S=0)):S>P&&(S=P),SS)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(k,S,P){k=k>>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k],K=1,ee=0;for(;++ee>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k+--S],K=1;for(;S>0&&(K*=256);)V+=this[k+--S]*K;return V},s.prototype.readUint8=s.prototype.readUInt8=function(k,S){return k=k>>>0,S||le(k,1,this.length),this[k]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(k,S){return k=k>>>0,S||le(k,2,this.length),this[k]|this[k+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(k,S){return k=k>>>0,S||le(k,2,this.length),this[k]<<8|this[k+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(k,S){return k=k>>>0,S||le(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},s.prototype.readBigUInt64LE=te(function(k){k=k>>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=S+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,K=this[++k]+this[++k]*2**8+this[++k]*2**16+P*2**24;return BigInt(V)+(BigInt(K)<>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=S*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],K=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+P;return(BigInt(V)<>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k],K=1,ee=0;for(;++ee=K&&(V-=Math.pow(2,8*S)),V},s.prototype.readIntBE=function(k,S,P){k=k>>>0,S=S>>>0,P||le(k,S,this.length);let V=S,K=1,ee=this[k+--V];for(;V>0&&(K*=256);)ee+=this[k+--V]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*S)),ee},s.prototype.readInt8=function(k,S){return k=k>>>0,S||le(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},s.prototype.readInt16LE=function(k,S){k=k>>>0,S||le(k,2,this.length);const P=this[k]|this[k+1]<<8;return P&32768?P|4294901760:P},s.prototype.readInt16BE=function(k,S){k=k>>>0,S||le(k,2,this.length);const P=this[k+1]|this[k]<<8;return P&32768?P|4294901760:P},s.prototype.readInt32LE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},s.prototype.readInt32BE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},s.prototype.readBigInt64LE=te(function(k){k=k>>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(P<<24);return(BigInt(V)<>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=(S<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(V)<>>0,S||le(k,4,this.length),n.read(this,k,!0,23,4)},s.prototype.readFloatBE=function(k,S){return k=k>>>0,S||le(k,4,this.length),n.read(this,k,!1,23,4)},s.prototype.readDoubleLE=function(k,S){return k=k>>>0,S||le(k,8,this.length),n.read(this,k,!0,52,8)},s.prototype.readDoubleBE=function(k,S){return k=k>>>0,S||le(k,8,this.length),n.read(this,k,!1,52,8)};function fe(N,k,S,P,V,K){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>V||kN.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(k,S,P,V){if(k=+k,S=S>>>0,P=P>>>0,!V){const be=Math.pow(2,8*P)-1;fe(this,k,S,P,be,0)}let K=1,ee=0;for(this[S]=k&255;++ee>>0,P=P>>>0,!V){const be=Math.pow(2,8*P)-1;fe(this,k,S,P,be,0)}let K=P-1,ee=1;for(this[S+K]=k&255;--K>=0&&(ee*=256);)this[S+K]=k/ee&255;return S+P},s.prototype.writeUint8=s.prototype.writeUInt8=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,1,255,0),this[S]=k&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,65535,0),this[S]=k&255,this[S+1]=k>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,65535,0),this[S]=k>>>8,this[S+1]=k&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,4294967295,0),this[S+3]=k>>>24,this[S+2]=k>>>16,this[S+1]=k>>>8,this[S]=k&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,4294967295,0),this[S]=k>>>24,this[S+1]=k>>>16,this[S+2]=k>>>8,this[S+3]=k&255,S+4};function Ee(N,k,S,P,V){pe(k,P,V,N,S,7);let K=Number(k&BigInt(4294967295));N[S++]=K,K=K>>8,N[S++]=K,K=K>>8,N[S++]=K,K=K>>8,N[S++]=K;let ee=Number(k>>BigInt(32)&BigInt(4294967295));return N[S++]=ee,ee=ee>>8,N[S++]=ee,ee=ee>>8,N[S++]=ee,ee=ee>>8,N[S++]=ee,S}function Ae(N,k,S,P,V){pe(k,P,V,N,S,7);let K=Number(k&BigInt(4294967295));N[S+7]=K,K=K>>8,N[S+6]=K,K=K>>8,N[S+5]=K,K=K>>8,N[S+4]=K;let ee=Number(k>>BigInt(32)&BigInt(4294967295));return N[S+3]=ee,ee=ee>>8,N[S+2]=ee,ee=ee>>8,N[S+1]=ee,ee=ee>>8,N[S]=ee,S+8}s.prototype.writeBigUInt64LE=te(function(k,S=0){return Ee(this,k,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=te(function(k,S=0){return Ae(this,k,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(k,S,P,V){if(k=+k,S=S>>>0,!V){const Me=Math.pow(2,8*P-1);fe(this,k,S,P,Me-1,-Me)}let K=0,ee=1,be=0;for(this[S]=k&255;++K>0)-be&255;return S+P},s.prototype.writeIntBE=function(k,S,P,V){if(k=+k,S=S>>>0,!V){const Me=Math.pow(2,8*P-1);fe(this,k,S,P,Me-1,-Me)}let K=P-1,ee=1,be=0;for(this[S+K]=k&255;--K>=0&&(ee*=256);)k<0&&be===0&&this[S+K+1]!==0&&(be=1),this[S+K]=(k/ee>>0)-be&255;return S+P},s.prototype.writeInt8=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,1,127,-128),k<0&&(k=255+k+1),this[S]=k&255,S+1},s.prototype.writeInt16LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,32767,-32768),this[S]=k&255,this[S+1]=k>>>8,S+2},s.prototype.writeInt16BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,32767,-32768),this[S]=k>>>8,this[S+1]=k&255,S+2},s.prototype.writeInt32LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,2147483647,-2147483648),this[S]=k&255,this[S+1]=k>>>8,this[S+2]=k>>>16,this[S+3]=k>>>24,S+4},s.prototype.writeInt32BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[S]=k>>>24,this[S+1]=k>>>16,this[S+2]=k>>>8,this[S+3]=k&255,S+4},s.prototype.writeBigInt64LE=te(function(k,S=0){return Ee(this,k,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=te(function(k,S=0){return Ae(this,k,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(N,k,S,P,V,K){if(S+P>N.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function De(N,k,S,P,V){return k=+k,S=S>>>0,V||Ie(N,k,S,4),n.write(N,k,S,P,23,4),S+4}s.prototype.writeFloatLE=function(k,S,P){return De(this,k,S,!0,P)},s.prototype.writeFloatBE=function(k,S,P){return De(this,k,S,!1,P)};function Ue(N,k,S,P,V){return k=+k,S=S>>>0,V||Ie(N,k,S,8),n.write(N,k,S,P,52,8),S+8}s.prototype.writeDoubleLE=function(k,S,P){return Ue(this,k,S,!0,P)},s.prototype.writeDoubleBE=function(k,S,P){return Ue(this,k,S,!1,P)},s.prototype.copy=function(k,S,P,V){if(!s.isBuffer(k))throw new TypeError("argument should be a Buffer");if(P||(P=0),!V&&V!==0&&(V=this.length),S>=k.length&&(S=k.length),S||(S=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),k.length-S>>0,P=P===void 0?this.length:P>>>0,k||(k=0);let K;if(typeof k=="number")for(K=S;K2**32?V=ve(String(S)):typeof S=="bigint"&&(V=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(V=ve(V)),V+="n"),P+=` It must be ${k}. Received ${V}`,P},RangeError);function ve(N){let k="",S=N.length;const P=N[0]==="-"?1:0;for(;S>=P+4;S-=3)k=`_${N.slice(S-3,S)}${k}`;return`${N.slice(0,S)}${k}`}function he(N,k,S){ge(k,"offset"),(N[k]===void 0||N[k+S]===void 0)&&Ce(k,N.length-(S+1))}function pe(N,k,S,P,V,K){if(N>S||N3?k===0||k===BigInt(0)?be=`>= 0${ee} and < 2${ee} ** ${(K+1)*8}${ee}`:be=`>= -(2${ee} ** ${(K+1)*8-1}${ee}) and < 2 ** ${(K+1)*8-1}${ee}`:be=`>= ${k}${ee} and <= ${S}${ee}`,new ce.ERR_OUT_OF_RANGE("value",be,N)}he(P,V,K)}function ge(N,k){if(typeof N!="number")throw new ce.ERR_INVALID_ARG_TYPE(k,"number",N)}function Ce(N,k,S){throw Math.floor(N)!==N?(ge(N,S),new ce.ERR_OUT_OF_RANGE(S||"offset","an integer",N)):k<0?new ce.ERR_BUFFER_OUT_OF_BOUNDS:new ce.ERR_OUT_OF_RANGE(S||"offset",`>= ${S?1:0} and <= ${k}`,N)}const _e=/[^+/0-9A-Za-z-_]/g;function Ne(N){if(N=N.split("=")[0],N=N.trim().replace(_e,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Be(N,k){k=k||1/0;let S;const P=N.length;let V=null;const K=[];for(let ee=0;ee55295&&S<57344){if(!V){if(S>56319){(k-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===P){(k-=3)>-1&&K.push(239,191,189);continue}V=S;continue}if(S<56320){(k-=3)>-1&&K.push(239,191,189),V=S;continue}S=(V-55296<<10|S-56320)+65536}else V&&(k-=3)>-1&&K.push(239,191,189);if(V=null,S<128){if((k-=1)<0)break;K.push(S)}else if(S<2048){if((k-=2)<0)break;K.push(S>>6|192,S&63|128)}else if(S<65536){if((k-=3)<0)break;K.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((k-=4)<0)break;K.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return K}function Ve(N){const k=[];for(let S=0;S>8,V=S%256,K.push(V),K.push(P);return K}function xe(N){return t.toByteArray(Ne(N))}function je(N,k,S,P){let V;for(V=0;V=k.length||V>=N.length);++V)k[V+S]=N[V];return V}function We(N,k){return N instanceof k||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===k.name}function Ge(N){return N!==N}const Fe=function(){const N="0123456789abcdef",k=new Array(256);for(let S=0;S<16;++S){const P=S*16;for(let V=0;V<16;++V)k[P+V]=N[S]+N[V]}return k}();function te(N){return typeof BigInt>"u"?Z:N}function Z(){throw new Error("BigInt not supported")}})(hQ);globalThis.Buffer=hQ.Buffer;var Ob={},Lve={get exports(){return Ob},set exports(e){Ob=e}},Y_={},M={},Fve={get exports(){return M},set exports(e){M=e}},Yn={};/** + */(function(e){const t=K_,n=Q5,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;const o=2147483647;e.kMaxLength=o,s.TYPED_ARRAY_SUPPORT=i(),!s.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 i(){try{const N=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(N,k),N.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(N){if(N>o)throw new RangeError('The value "'+N+'" is invalid for option "size"');const k=new Uint8Array(N);return Object.setPrototypeOf(k,s.prototype),k}function s(N,k,S){if(typeof N=="number"){if(typeof k=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(N)}return l(N,k,S)}s.poolSize=8192;function l(N,k,S){if(typeof N=="string")return p(N,k);if(ArrayBuffer.isView(N))return m(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(We(N,ArrayBuffer)||N&&We(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(N,SharedArrayBuffer)||N&&We(N.buffer,SharedArrayBuffer)))return y(N,k,S);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const P=N.valueOf&&N.valueOf();if(P!=null&&P!==N)return s.from(P,k,S);const V=v(N);if(V)return V;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return s.from(N[Symbol.toPrimitive]("string"),k,S);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}s.from=function(N,k,S){return l(N,k,S)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function u(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function c(N,k,S){return u(N),N<=0?a(N):k!==void 0?typeof S=="string"?a(N).fill(k,S):a(N).fill(k):a(N)}s.alloc=function(N,k,S){return c(N,k,S)};function f(N){return u(N),a(N<0?0:x(N)|0)}s.allocUnsafe=function(N){return f(N)},s.allocUnsafeSlow=function(N){return f(N)};function p(N,k){if((typeof k!="string"||k==="")&&(k="utf8"),!s.isEncoding(k))throw new TypeError("Unknown encoding: "+k);const S=I(N,k)|0;let P=a(S);const V=P.write(N,k);return V!==S&&(P=P.slice(0,V)),P}function g(N){const k=N.length<0?0:x(N.length)|0,S=a(k);for(let P=0;P=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return N|0}function w(N){return+N!=N&&(N=0),s.alloc(+N)}s.isBuffer=function(k){return k!=null&&k._isBuffer===!0&&k!==s.prototype},s.compare=function(k,S){if(We(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),We(S,Uint8Array)&&(S=s.from(S,S.offset,S.byteLength)),!s.isBuffer(k)||!s.isBuffer(S))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(k===S)return 0;let P=k.length,V=S.length;for(let K=0,ee=Math.min(P,V);KV.length?(s.isBuffer(ee)||(ee=s.from(ee)),ee.copy(V,K)):Uint8Array.prototype.set.call(V,ee,K);else if(s.isBuffer(ee))ee.copy(V,K);else throw new TypeError('"list" argument must be an Array of Buffers');K+=ee.length}return V};function I(N,k){if(s.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||We(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);const S=N.length,P=arguments.length>2&&arguments[2]===!0;if(!P&&S===0)return 0;let V=!1;for(;;)switch(k){case"ascii":case"latin1":case"binary":return S;case"utf8":case"utf-8":return Be(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S*2;case"hex":return S>>>1;case"base64":return xe(N).length;default:if(V)return P?-1:Be(N).length;k=(""+k).toLowerCase(),V=!0}}s.byteLength=I;function _(N,k,S){let P=!1;if((k===void 0||k<0)&&(k=0),k>this.length||((S===void 0||S>this.length)&&(S=this.length),S<=0)||(S>>>=0,k>>>=0,S<=k))return"";for(N||(N="utf8");;)switch(N){case"hex":return W(this,k,S);case"utf8":case"utf-8":return L(this,k,S);case"ascii":return q(this,k,S);case"latin1":case"binary":return Y(this,k,S);case"base64":return j(this,k,S);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ie(this,k,S);default:if(P)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),P=!0}}s.prototype._isBuffer=!0;function R(N,k,S){const P=N[k];N[k]=N[S],N[S]=P}s.prototype.swap16=function(){const k=this.length;if(k%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let S=0;SS&&(k+=" ... "),""},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(k,S,P,V,K){if(We(k,Uint8Array)&&(k=s.from(k,k.offset,k.byteLength)),!s.isBuffer(k))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof k);if(S===void 0&&(S=0),P===void 0&&(P=k?k.length:0),V===void 0&&(V=0),K===void 0&&(K=this.length),S<0||P>k.length||V<0||K>this.length)throw new RangeError("out of range index");if(V>=K&&S>=P)return 0;if(V>=K)return-1;if(S>=P)return 1;if(S>>>=0,P>>>=0,V>>>=0,K>>>=0,this===k)return 0;let ee=K-V,be=P-S;const Me=Math.min(ee,be),we=this.slice(V,K),Pe=k.slice(S,P);for(let Ye=0;Ye2147483647?S=2147483647:S<-2147483648&&(S=-2147483648),S=+S,Ge(S)&&(S=V?0:N.length-1),S<0&&(S=N.length+S),S>=N.length){if(V)return-1;S=N.length-1}else if(S<0)if(V)S=0;else return-1;if(typeof k=="string"&&(k=s.from(k,P)),s.isBuffer(k))return k.length===0?-1:D(N,k,S,P,V);if(typeof k=="number")return k=k&255,typeof Uint8Array.prototype.indexOf=="function"?V?Uint8Array.prototype.indexOf.call(N,k,S):Uint8Array.prototype.lastIndexOf.call(N,k,S):D(N,[k],S,P,V);throw new TypeError("val must be string, number or Buffer")}function D(N,k,S,P,V){let K=1,ee=N.length,be=k.length;if(P!==void 0&&(P=String(P).toLowerCase(),P==="ucs2"||P==="ucs-2"||P==="utf16le"||P==="utf-16le")){if(N.length<2||k.length<2)return-1;K=2,ee/=2,be/=2,S/=2}function Me(Pe,Ye){return K===1?Pe[Ye]:Pe.readUInt16BE(Ye*K)}let we;if(V){let Pe=-1;for(we=S;weee&&(S=ee-be),we=S;we>=0;we--){let Pe=!0;for(let Ye=0;YeV&&(P=V)):P=V;const K=k.length;P>K/2&&(P=K/2);let ee;for(ee=0;ee>>0,isFinite(P)?(P=P>>>0,V===void 0&&(V="utf8")):(V=P,P=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const K=this.length-S;if((P===void 0||P>K)&&(P=K),k.length>0&&(P<0||S<0)||S>this.length)throw new RangeError("Attempt to write outside buffer bounds");V||(V="utf8");let ee=!1;for(;;)switch(V){case"hex":return b(this,k,S,P);case"utf8":case"utf-8":return T(this,k,S,P);case"ascii":case"latin1":case"binary":return C(this,k,S,P);case"base64":return O(this,k,S,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,k,S,P);default:if(ee)throw new TypeError("Unknown encoding: "+V);V=(""+V).toLowerCase(),ee=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function j(N,k,S){return k===0&&S===N.length?t.fromByteArray(N):t.fromByteArray(N.slice(k,S))}function L(N,k,S){S=Math.min(N.length,S);const P=[];let V=k;for(;V239?4:K>223?3:K>191?2:1;if(V+be<=S){let Me,we,Pe,Ye;switch(be){case 1:K<128&&(ee=K);break;case 2:Me=N[V+1],(Me&192)===128&&(Ye=(K&31)<<6|Me&63,Ye>127&&(ee=Ye));break;case 3:Me=N[V+1],we=N[V+2],(Me&192)===128&&(we&192)===128&&(Ye=(K&15)<<12|(Me&63)<<6|we&63,Ye>2047&&(Ye<55296||Ye>57343)&&(ee=Ye));break;case 4:Me=N[V+1],we=N[V+2],Pe=N[V+3],(Me&192)===128&&(we&192)===128&&(Pe&192)===128&&(Ye=(K&15)<<18|(Me&63)<<12|(we&63)<<6|Pe&63,Ye>65535&&Ye<1114112&&(ee=Ye))}}ee===null?(ee=65533,be=1):ee>65535&&(ee-=65536,P.push(ee>>>10&1023|55296),ee=56320|ee&1023),P.push(ee),V+=be}return H(P)}const B=4096;function H(N){const k=N.length;if(k<=B)return String.fromCharCode.apply(String,N);let S="",P=0;for(;PP)&&(S=P);let V="";for(let K=k;KP&&(k=P),S<0?(S+=P,S<0&&(S=0)):S>P&&(S=P),SS)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(k,S,P){k=k>>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k],K=1,ee=0;for(;++ee>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k+--S],K=1;for(;S>0&&(K*=256);)V+=this[k+--S]*K;return V},s.prototype.readUint8=s.prototype.readUInt8=function(k,S){return k=k>>>0,S||le(k,1,this.length),this[k]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(k,S){return k=k>>>0,S||le(k,2,this.length),this[k]|this[k+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(k,S){return k=k>>>0,S||le(k,2,this.length),this[k]<<8|this[k+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(k,S){return k=k>>>0,S||le(k,4,this.length),(this[k]|this[k+1]<<8|this[k+2]<<16)+this[k+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]*16777216+(this[k+1]<<16|this[k+2]<<8|this[k+3])},s.prototype.readBigUInt64LE=te(function(k){k=k>>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=S+this[++k]*2**8+this[++k]*2**16+this[++k]*2**24,K=this[++k]+this[++k]*2**8+this[++k]*2**16+P*2**24;return BigInt(V)+(BigInt(K)<>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=S*2**24+this[++k]*2**16+this[++k]*2**8+this[++k],K=this[++k]*2**24+this[++k]*2**16+this[++k]*2**8+P;return(BigInt(V)<>>0,S=S>>>0,P||le(k,S,this.length);let V=this[k],K=1,ee=0;for(;++ee=K&&(V-=Math.pow(2,8*S)),V},s.prototype.readIntBE=function(k,S,P){k=k>>>0,S=S>>>0,P||le(k,S,this.length);let V=S,K=1,ee=this[k+--V];for(;V>0&&(K*=256);)ee+=this[k+--V]*K;return K*=128,ee>=K&&(ee-=Math.pow(2,8*S)),ee},s.prototype.readInt8=function(k,S){return k=k>>>0,S||le(k,1,this.length),this[k]&128?(255-this[k]+1)*-1:this[k]},s.prototype.readInt16LE=function(k,S){k=k>>>0,S||le(k,2,this.length);const P=this[k]|this[k+1]<<8;return P&32768?P|4294901760:P},s.prototype.readInt16BE=function(k,S){k=k>>>0,S||le(k,2,this.length);const P=this[k+1]|this[k]<<8;return P&32768?P|4294901760:P},s.prototype.readInt32LE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]|this[k+1]<<8|this[k+2]<<16|this[k+3]<<24},s.prototype.readInt32BE=function(k,S){return k=k>>>0,S||le(k,4,this.length),this[k]<<24|this[k+1]<<16|this[k+2]<<8|this[k+3]},s.prototype.readBigInt64LE=te(function(k){k=k>>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=this[k+4]+this[k+5]*2**8+this[k+6]*2**16+(P<<24);return(BigInt(V)<>>0,ge(k,"offset");const S=this[k],P=this[k+7];(S===void 0||P===void 0)&&Ce(k,this.length-8);const V=(S<<24)+this[++k]*2**16+this[++k]*2**8+this[++k];return(BigInt(V)<>>0,S||le(k,4,this.length),n.read(this,k,!0,23,4)},s.prototype.readFloatBE=function(k,S){return k=k>>>0,S||le(k,4,this.length),n.read(this,k,!1,23,4)},s.prototype.readDoubleLE=function(k,S){return k=k>>>0,S||le(k,8,this.length),n.read(this,k,!0,52,8)},s.prototype.readDoubleBE=function(k,S){return k=k>>>0,S||le(k,8,this.length),n.read(this,k,!1,52,8)};function fe(N,k,S,P,V,K){if(!s.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(k>V||kN.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(k,S,P,V){if(k=+k,S=S>>>0,P=P>>>0,!V){const be=Math.pow(2,8*P)-1;fe(this,k,S,P,be,0)}let K=1,ee=0;for(this[S]=k&255;++ee>>0,P=P>>>0,!V){const be=Math.pow(2,8*P)-1;fe(this,k,S,P,be,0)}let K=P-1,ee=1;for(this[S+K]=k&255;--K>=0&&(ee*=256);)this[S+K]=k/ee&255;return S+P},s.prototype.writeUint8=s.prototype.writeUInt8=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,1,255,0),this[S]=k&255,S+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,65535,0),this[S]=k&255,this[S+1]=k>>>8,S+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,65535,0),this[S]=k>>>8,this[S+1]=k&255,S+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,4294967295,0),this[S+3]=k>>>24,this[S+2]=k>>>16,this[S+1]=k>>>8,this[S]=k&255,S+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,4294967295,0),this[S]=k>>>24,this[S+1]=k>>>16,this[S+2]=k>>>8,this[S+3]=k&255,S+4};function Ee(N,k,S,P,V){pe(k,P,V,N,S,7);let K=Number(k&BigInt(4294967295));N[S++]=K,K=K>>8,N[S++]=K,K=K>>8,N[S++]=K,K=K>>8,N[S++]=K;let ee=Number(k>>BigInt(32)&BigInt(4294967295));return N[S++]=ee,ee=ee>>8,N[S++]=ee,ee=ee>>8,N[S++]=ee,ee=ee>>8,N[S++]=ee,S}function Ae(N,k,S,P,V){pe(k,P,V,N,S,7);let K=Number(k&BigInt(4294967295));N[S+7]=K,K=K>>8,N[S+6]=K,K=K>>8,N[S+5]=K,K=K>>8,N[S+4]=K;let ee=Number(k>>BigInt(32)&BigInt(4294967295));return N[S+3]=ee,ee=ee>>8,N[S+2]=ee,ee=ee>>8,N[S+1]=ee,ee=ee>>8,N[S]=ee,S+8}s.prototype.writeBigUInt64LE=te(function(k,S=0){return Ee(this,k,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=te(function(k,S=0){return Ae(this,k,S,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(k,S,P,V){if(k=+k,S=S>>>0,!V){const Me=Math.pow(2,8*P-1);fe(this,k,S,P,Me-1,-Me)}let K=0,ee=1,be=0;for(this[S]=k&255;++K>0)-be&255;return S+P},s.prototype.writeIntBE=function(k,S,P,V){if(k=+k,S=S>>>0,!V){const Me=Math.pow(2,8*P-1);fe(this,k,S,P,Me-1,-Me)}let K=P-1,ee=1,be=0;for(this[S+K]=k&255;--K>=0&&(ee*=256);)k<0&&be===0&&this[S+K+1]!==0&&(be=1),this[S+K]=(k/ee>>0)-be&255;return S+P},s.prototype.writeInt8=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,1,127,-128),k<0&&(k=255+k+1),this[S]=k&255,S+1},s.prototype.writeInt16LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,32767,-32768),this[S]=k&255,this[S+1]=k>>>8,S+2},s.prototype.writeInt16BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,2,32767,-32768),this[S]=k>>>8,this[S+1]=k&255,S+2},s.prototype.writeInt32LE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,2147483647,-2147483648),this[S]=k&255,this[S+1]=k>>>8,this[S+2]=k>>>16,this[S+3]=k>>>24,S+4},s.prototype.writeInt32BE=function(k,S,P){return k=+k,S=S>>>0,P||fe(this,k,S,4,2147483647,-2147483648),k<0&&(k=4294967295+k+1),this[S]=k>>>24,this[S+1]=k>>>16,this[S+2]=k>>>8,this[S+3]=k&255,S+4},s.prototype.writeBigInt64LE=te(function(k,S=0){return Ee(this,k,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=te(function(k,S=0){return Ae(this,k,S,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ie(N,k,S,P,V,K){if(S+P>N.length)throw new RangeError("Index out of range");if(S<0)throw new RangeError("Index out of range")}function De(N,k,S,P,V){return k=+k,S=S>>>0,V||Ie(N,k,S,4),n.write(N,k,S,P,23,4),S+4}s.prototype.writeFloatLE=function(k,S,P){return De(this,k,S,!0,P)},s.prototype.writeFloatBE=function(k,S,P){return De(this,k,S,!1,P)};function Ue(N,k,S,P,V){return k=+k,S=S>>>0,V||Ie(N,k,S,8),n.write(N,k,S,P,52,8),S+8}s.prototype.writeDoubleLE=function(k,S,P){return Ue(this,k,S,!0,P)},s.prototype.writeDoubleBE=function(k,S,P){return Ue(this,k,S,!1,P)},s.prototype.copy=function(k,S,P,V){if(!s.isBuffer(k))throw new TypeError("argument should be a Buffer");if(P||(P=0),!V&&V!==0&&(V=this.length),S>=k.length&&(S=k.length),S||(S=0),V>0&&V=this.length)throw new RangeError("Index out of range");if(V<0)throw new RangeError("sourceEnd out of bounds");V>this.length&&(V=this.length),k.length-S>>0,P=P===void 0?this.length:P>>>0,k||(k=0);let K;if(typeof k=="number")for(K=S;K2**32?V=ve(String(S)):typeof S=="bigint"&&(V=String(S),(S>BigInt(2)**BigInt(32)||S<-(BigInt(2)**BigInt(32)))&&(V=ve(V)),V+="n"),P+=` It must be ${k}. Received ${V}`,P},RangeError);function ve(N){let k="",S=N.length;const P=N[0]==="-"?1:0;for(;S>=P+4;S-=3)k=`_${N.slice(S-3,S)}${k}`;return`${N.slice(0,S)}${k}`}function he(N,k,S){ge(k,"offset"),(N[k]===void 0||N[k+S]===void 0)&&Ce(k,N.length-(S+1))}function pe(N,k,S,P,V,K){if(N>S||N3?k===0||k===BigInt(0)?be=`>= 0${ee} and < 2${ee} ** ${(K+1)*8}${ee}`:be=`>= -(2${ee} ** ${(K+1)*8-1}${ee}) and < 2 ** ${(K+1)*8-1}${ee}`:be=`>= ${k}${ee} and <= ${S}${ee}`,new ce.ERR_OUT_OF_RANGE("value",be,N)}he(P,V,K)}function ge(N,k){if(typeof N!="number")throw new ce.ERR_INVALID_ARG_TYPE(k,"number",N)}function Ce(N,k,S){throw Math.floor(N)!==N?(ge(N,S),new ce.ERR_OUT_OF_RANGE(S||"offset","an integer",N)):k<0?new ce.ERR_BUFFER_OUT_OF_BOUNDS:new ce.ERR_OUT_OF_RANGE(S||"offset",`>= ${S?1:0} and <= ${k}`,N)}const _e=/[^+/0-9A-Za-z-_]/g;function Ne(N){if(N=N.split("=")[0],N=N.trim().replace(_e,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Be(N,k){k=k||1/0;let S;const P=N.length;let V=null;const K=[];for(let ee=0;ee55295&&S<57344){if(!V){if(S>56319){(k-=3)>-1&&K.push(239,191,189);continue}else if(ee+1===P){(k-=3)>-1&&K.push(239,191,189);continue}V=S;continue}if(S<56320){(k-=3)>-1&&K.push(239,191,189),V=S;continue}S=(V-55296<<10|S-56320)+65536}else V&&(k-=3)>-1&&K.push(239,191,189);if(V=null,S<128){if((k-=1)<0)break;K.push(S)}else if(S<2048){if((k-=2)<0)break;K.push(S>>6|192,S&63|128)}else if(S<65536){if((k-=3)<0)break;K.push(S>>12|224,S>>6&63|128,S&63|128)}else if(S<1114112){if((k-=4)<0)break;K.push(S>>18|240,S>>12&63|128,S>>6&63|128,S&63|128)}else throw new Error("Invalid code point")}return K}function Ve(N){const k=[];for(let S=0;S>8,V=S%256,K.push(V),K.push(P);return K}function xe(N){return t.toByteArray(Ne(N))}function je(N,k,S,P){let V;for(V=0;V=k.length||V>=N.length);++V)k[V+S]=N[V];return V}function We(N,k){return N instanceof k||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===k.name}function Ge(N){return N!==N}const Fe=function(){const N="0123456789abcdef",k=new Array(256);for(let S=0;S<16;++S){const P=S*16;for(let V=0;V<16;++V)k[P+V]=N[S]+N[V]}return k}();function te(N){return typeof BigInt>"u"?Z:N}function Z(){throw new Error("BigInt not supported")}})(hQ);globalThis.Buffer=hQ.Buffer;var Ob={},$ve={get exports(){return Ob},set exports(e){Ob=e}},Y_={},M={},Lve={get exports(){return M},set exports(e){M=e}},Yn={};/** * @license React * react.production.min.js * @@ -11,7 +11,7 @@ var _ve=Object.defineProperty;var Eve=(e,t,n)=>t in e?_ve(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var qw=Symbol.for("react.element"),Nve=Symbol.for("react.portal"),Uve=Symbol.for("react.fragment"),jve=Symbol.for("react.strict_mode"),Wve=Symbol.for("react.profiler"),zve=Symbol.for("react.provider"),Vve=Symbol.for("react.context"),Hve=Symbol.for("react.forward_ref"),qve=Symbol.for("react.suspense"),Qve=Symbol.for("react.memo"),Kve=Symbol.for("react.lazy"),MU=Symbol.iterator;function Yve(e){return e===null||typeof e!="object"?null:(e=MU&&e[MU]||e["@@iterator"],typeof e=="function"?e:null)}var mQ={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yQ=Object.assign,vQ={};function yy(e,t,n){this.props=e,this.context=t,this.refs=vQ,this.updater=n||mQ}yy.prototype.isReactComponent={};yy.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};yy.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bQ(){}bQ.prototype=yy.prototype;function Q5(e,t,n){this.props=e,this.context=t,this.refs=vQ,this.updater=n||mQ}var K5=Q5.prototype=new bQ;K5.constructor=Q5;yQ(K5,yy.prototype);K5.isPureReactComponent=!0;var OU=Array.isArray,wQ=Object.prototype.hasOwnProperty,Y5={current:null},SQ={key:!0,ref:!0,__self:!0,__source:!0};function xQ(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)wQ.call(t,r)&&!SQ.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1t in e?_ve(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var e1e=M,t1e=Symbol.for("react.element"),n1e=Symbol.for("react.fragment"),r1e=Object.prototype.hasOwnProperty,o1e=e1e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i1e={key:!0,ref:!0,__self:!0,__source:!0};function CQ(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)r1e.call(t,r)&&!i1e.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:t1e,type:e,key:i,ref:a,props:o,_owner:o1e.current}}Y_.Fragment=n1e;Y_.jsx=CQ;Y_.jsxs=CQ;(function(e){e.exports=Y_})(Lve);const hi=Ob.Fragment,A=Ob.jsx,Se=Ob.jsxs;var RM={},M0={},a1e={get exports(){return M0},set exports(e){M0=e}},Vs={},DM={},s1e={get exports(){return DM},set exports(e){DM=e}},AQ={};/** + */var Zve=M,e1e=Symbol.for("react.element"),t1e=Symbol.for("react.fragment"),n1e=Object.prototype.hasOwnProperty,r1e=Zve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o1e={key:!0,ref:!0,__self:!0,__source:!0};function CQ(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)n1e.call(t,r)&&!o1e.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:e1e,type:e,key:i,ref:a,props:o,_owner:r1e.current}}Y_.Fragment=t1e;Y_.jsx=CQ;Y_.jsxs=CQ;(function(e){e.exports=Y_})($ve);const hi=Ob.Fragment,A=Ob.jsx,Se=Ob.jsxs;var DM={},M0={},i1e={get exports(){return M0},set exports(e){M0=e}},Vs={},BM={},a1e={get exports(){return BM},set exports(e){BM=e}},AQ={};/** * @license React * scheduler.production.min.js * @@ -27,7 +27,7 @@ var _ve=Object.defineProperty;var Eve=(e,t,n)=>t in e?_ve(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(Y,W){var ie=Y.length;Y.push(W);e:for(;0>>1,fe=Y[le];if(0>>1;leo(Ie,ie))Deo(Ue,Ie)?(Y[le]=Ue,Y[De]=ie,le=De):(Y[le]=Ie,Y[Ae]=ie,le=Ae);else if(Deo(Ue,ie))Y[le]=Ue,Y[De]=ie,le=De;else break e}}return W}function o(Y,W){var ie=Y.sortIndex-W.sortIndex;return ie!==0?ie:Y.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,g=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(Y){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=Y)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function _(Y){if(y=!1,I(Y),!m)if(n(l)!==null)m=!0,H(R);else{var W=n(u);W!==null&&q(_,W.startTime-Y)}}function R(Y,W){m=!1,y&&(y=!1,x(b),b=-1),g=!0;var ie=p;try{for(I(W),f=n(l);f!==null&&(!(f.expirationTime>W)||Y&&!O());){var le=f.callback;if(typeof le=="function"){f.callback=null,p=f.priorityLevel;var fe=le(f.expirationTime<=W);W=e.unstable_now(),typeof fe=="function"?f.callback=fe:f===n(l)&&r(l),I(W)}else r(l);f=n(l)}if(f!==null)var Ee=!0;else{var Ae=n(u);Ae!==null&&q(_,Ae.startTime-W),Ee=!1}return Ee}finally{f=null,p=ie,g=!1}}var U=!1,D=null,b=-1,T=5,C=-1;function O(){return!(e.unstable_now()-CY||125le?(Y.sortIndex=ie,t(u,Y),n(l)===null&&Y===n(u)&&(y?(x(b),b=-1):y=!0,q(_,ie-le))):(Y.sortIndex=fe,t(l,Y),m||g||(m=!0,H(R))),Y},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(Y){var W=p;return function(){var ie=p;p=W;try{return Y.apply(this,arguments)}finally{p=ie}}}})(AQ);(function(e){e.exports=AQ})(s1e);/** + */(function(e){function t(Y,W){var ie=Y.length;Y.push(W);e:for(;0>>1,fe=Y[le];if(0>>1;leo(Ie,ie))Deo(Ue,Ie)?(Y[le]=Ue,Y[De]=ie,le=De):(Y[le]=Ie,Y[Ae]=ie,le=Ae);else if(Deo(Ue,ie))Y[le]=Ue,Y[De]=ie,le=De;else break e}}return W}function o(Y,W){var ie=Y.sortIndex-W.sortIndex;return ie!==0?ie:Y.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],c=1,f=null,p=3,g=!1,m=!1,y=!1,v=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function I(Y){for(var W=n(u);W!==null;){if(W.callback===null)r(u);else if(W.startTime<=Y)r(u),W.sortIndex=W.expirationTime,t(l,W);else break;W=n(u)}}function _(Y){if(y=!1,I(Y),!m)if(n(l)!==null)m=!0,H(R);else{var W=n(u);W!==null&&q(_,W.startTime-Y)}}function R(Y,W){m=!1,y&&(y=!1,x(b),b=-1),g=!0;var ie=p;try{for(I(W),f=n(l);f!==null&&(!(f.expirationTime>W)||Y&&!O());){var le=f.callback;if(typeof le=="function"){f.callback=null,p=f.priorityLevel;var fe=le(f.expirationTime<=W);W=e.unstable_now(),typeof fe=="function"?f.callback=fe:f===n(l)&&r(l),I(W)}else r(l);f=n(l)}if(f!==null)var Ee=!0;else{var Ae=n(u);Ae!==null&&q(_,Ae.startTime-W),Ee=!1}return Ee}finally{f=null,p=ie,g=!1}}var U=!1,D=null,b=-1,T=5,C=-1;function O(){return!(e.unstable_now()-CY||125le?(Y.sortIndex=ie,t(u,Y),n(l)===null&&Y===n(u)&&(y?(x(b),b=-1):y=!0,q(_,ie-le))):(Y.sortIndex=fe,t(l,Y),m||g||(m=!0,H(R))),Y},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(Y){var W=p;return function(){var ie=p;p=W;try{return Y.apply(this,arguments)}finally{p=ie}}}})(AQ);(function(e){e.exports=AQ})(a1e);/** * @license React * react-dom.production.min.js * @@ -35,14 +35,14 @@ var _ve=Object.defineProperty;var Eve=(e,t,n)=>t in e?_ve(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var _Q=M,Ns=DM;function bt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),BM=Object.prototype.hasOwnProperty,l1e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,DU={},BU={};function u1e(e){return BM.call(BU,e)?!0:BM.call(DU,e)?!1:l1e.test(e)?BU[e]=!0:(DU[e]=!0,!1)}function c1e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function d1e(e,t,n,r){if(t===null||typeof t>"u"||c1e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $a(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var zi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zi[e]=new $a(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zi[t]=new $a(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zi[e]=new $a(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zi[e]=new $a(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){zi[e]=new $a(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zi[e]=new $a(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zi[e]=new $a(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zi[e]=new $a(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zi[e]=new $a(e,5,!1,e.toLowerCase(),null,!1,!1)});var J5=/[\-:]([a-z])/g;function X5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(J5,X5);zi[t]=new $a(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(J5,X5);zi[t]=new $a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(J5,X5);zi[t]=new $a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zi[e]=new $a(e,1,!1,e.toLowerCase(),null,!1,!1)});zi.xlinkHref=new $a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zi[e]=new $a(e,1,!1,e.toLowerCase(),null,!0,!0)});function Z5(e,t,n,r){var o=zi.hasOwnProperty(t)?zi[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$M=Object.prototype.hasOwnProperty,s1e=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,DU={},BU={};function l1e(e){return $M.call(BU,e)?!0:$M.call(DU,e)?!1:s1e.test(e)?BU[e]=!0:(DU[e]=!0,!1)}function u1e(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c1e(e,t,n,r){if(t===null||typeof t>"u"||u1e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function $a(e,t,n,r,o,i,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var zi={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){zi[e]=new $a(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];zi[t]=new $a(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){zi[e]=new $a(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){zi[e]=new $a(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){zi[e]=new $a(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){zi[e]=new $a(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){zi[e]=new $a(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){zi[e]=new $a(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){zi[e]=new $a(e,5,!1,e.toLowerCase(),null,!1,!1)});var X5=/[\-:]([a-z])/g;function Z5(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(X5,Z5);zi[t]=new $a(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(X5,Z5);zi[t]=new $a(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(X5,Z5);zi[t]=new $a(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){zi[e]=new $a(e,1,!1,e.toLowerCase(),null,!1,!1)});zi.xlinkHref=new $a("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){zi[e]=new $a(e,1,!1,e.toLowerCase(),null,!0,!0)});function e6(e,t,n,r){var o=zi.hasOwnProperty(t)?zi[t]:null;(o!==null?o.type!==0:r||!(2s||o[a]!==i[s]){var l=` -`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{x3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W1(e):""}function f1e(e){switch(e.tag){case 5:return W1(e.type);case 16:return W1("Lazy");case 13:return W1("Suspense");case 19:return W1("SuspenseList");case 0:case 2:case 15:return e=C3(e.type,!1),e;case 11:return e=C3(e.type.render,!1),e;case 1:return e=C3(e.type,!0),e;default:return""}}function NM(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Km:return"Fragment";case Qm:return"Portal";case $M:return"Profiler";case e6:return"StrictMode";case LM:return"Suspense";case FM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kQ:return(e.displayName||"Context")+".Consumer";case TQ:return(e._context.displayName||"Context")+".Provider";case t6:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case n6:return t=e.displayName||null,t!==null?t:NM(e.type)||"Memo";case Sf:t=e._payload,e=e._init;try{return NM(e(t))}catch{}}return null}function p1e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return NM(t);case 8:return t===e6?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ap(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PQ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1e(e){var t=PQ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fx(e){e._valueTracker||(e._valueTracker=h1e(e))}function MQ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PQ(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function KC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function UM(e,t){var n=t.checked;return Io({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LU(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ap(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function OQ(e,t){t=t.checked,t!=null&&Z5(e,"checked",t,!1)}function jM(e,t){OQ(e,t);var n=ap(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?WM(e,t.type,n):t.hasOwnProperty("defaultValue")&&WM(e,t.type,ap(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FU(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function WM(e,t,n){(t!=="number"||KC(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var z1=Array.isArray;function p0(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=px.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Db(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Z1={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},g1e=["Webkit","ms","Moz","O"];Object.keys(Z1).forEach(function(e){g1e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Z1[t]=Z1[e]})});function $Q(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Z1.hasOwnProperty(e)&&Z1[e]?(""+t).trim():t+"px"}function LQ(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$Q(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var m1e=Io({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 HM(e,t){if(t){if(m1e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(bt(62))}}function qM(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 QM=null;function r6(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var KM=null,h0=null,g0=null;function jU(e){if(e=Yw(e)){if(typeof KM!="function")throw Error(bt(280));var t=e.stateNode;t&&(t=eE(t),KM(e.stateNode,e.type,t))}}function FQ(e){h0?g0?g0.push(e):g0=[e]:h0=e}function NQ(){if(h0){var e=h0,t=g0;if(g0=h0=null,jU(e),t)for(e=0;e>>=0,e===0?32:31-(T1e(e)/k1e|0)|0}var hx=64,gx=4194304;function V1(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function XC(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=V1(s):(i&=a,i!==0&&(r=V1(i)))}else a=n&~o,a!==0?r=V1(a):i!==0&&(r=V1(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fu(t),e[t]=n}function O1e(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=tb),GU=String.fromCharCode(32),JU=!1;function iK(e,t){switch(e){case"keyup":return abe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ym=!1;function lbe(e,t){switch(e){case"compositionend":return aK(t);case"keypress":return t.which!==32?null:(JU=!0,GU);case"textInput":return e=t.data,e===GU&&JU?null:e;default:return null}}function ube(e,t){if(Ym)return e==="compositionend"||!d6&&iK(e,t)?(e=rK(),pC=l6=Pf=null,Ym=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=t7(n)}}function cK(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cK(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dK(){for(var e=window,t=KC();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=KC(e.document)}return t}function f6(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vbe(e){var t=dK(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cK(n.ownerDocument.documentElement,n)){if(r!==null&&f6(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=n7(n,i);var a=n7(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gm=null,eO=null,rb=null,tO=!1;function r7(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tO||Gm==null||Gm!==KC(r)||(r=Gm,"selectionStart"in r&&f6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rb&&Ub(rb,r)||(rb=r,r=tA(eO,"onSelect"),0Zm||(e.current=sO[Zm],sO[Zm]=null,Zm--)}function Qr(e,t){Zm++,sO[Zm]=e.current,e.current=t}var sp={},fa=Sp(sp),rs=Sp(!1),Vh=sp;function R0(e,t){var n=e.type.contextTypes;if(!n)return sp;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function os(e){return e=e.childContextTypes,e!=null}function rA(){ao(rs),ao(fa)}function c7(e,t,n){if(fa.current!==sp)throw Error(bt(168));Qr(fa,t),Qr(rs,n)}function wK(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(bt(108,p1e(e)||"Unknown",o));return Io({},n,r)}function oA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sp,Vh=fa.current,Qr(fa,e),Qr(rs,rs.current),!0}function d7(e,t,n){var r=e.stateNode;if(!r)throw Error(bt(169));n?(e=wK(e,t,Vh),r.__reactInternalMemoizedMergedChildContext=e,ao(rs),ao(fa),Qr(fa,e)):ao(rs),Qr(rs,n)}var sd=null,tE=!1,L3=!1;function SK(e){sd===null?sd=[e]:sd.push(e)}function Pbe(e){tE=!0,SK(e)}function xp(){if(!L3&&sd!==null){L3=!0;var e=0,t=Br;try{var n=sd;for(Br=1;e>=a,o-=a,cd=1<<32-fu(t)+o|n<b?(T=D,D=null):T=D.sibling;var C=p(x,D,I[b],_);if(C===null){D===null&&(D=T);break}e&&D&&C.alternate===null&&t(x,D),w=i(C,w,b),U===null?R=C:U.sibling=C,U=C,D=T}if(b===I.length)return n(x,D),mo&&ch(x,b),R;if(D===null){for(;bb?(T=D,D=null):T=D.sibling;var O=p(x,D,C.value,_);if(O===null){D===null&&(D=T);break}e&&D&&O.alternate===null&&t(x,D),w=i(O,w,b),U===null?R=O:U.sibling=O,U=O,D=T}if(C.done)return n(x,D),mo&&ch(x,b),R;if(D===null){for(;!C.done;b++,C=I.next())C=f(x,C.value,_),C!==null&&(w=i(C,w,b),U===null?R=C:U.sibling=C,U=C);return mo&&ch(x,b),R}for(D=r(x,D);!C.done;b++,C=I.next())C=g(D,x,b,C.value,_),C!==null&&(e&&C.alternate!==null&&D.delete(C.key===null?b:C.key),w=i(C,w,b),U===null?R=C:U.sibling=C,U=C);return e&&D.forEach(function($){return t(x,$)}),mo&&ch(x,b),R}function v(x,w,I,_){if(typeof I=="object"&&I!==null&&I.type===Km&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case dx:e:{for(var R=I.key,U=w;U!==null;){if(U.key===R){if(R=I.type,R===Km){if(U.tag===7){n(x,U.sibling),w=o(U,I.props.children),w.return=x,x=w;break e}}else if(U.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Sf&&v7(R)===U.type){n(x,U.sibling),w=o(U,I.props),w.ref=zv(x,U,I),w.return=x,x=w;break e}n(x,U);break}else t(x,U);U=U.sibling}I.type===Km?(w=Rh(I.props.children,x.mode,_,I.key),w.return=x,x=w):(_=SC(I.type,I.key,I.props,null,x.mode,_),_.ref=zv(x,w,I),_.return=x,x=_)}return a(x);case Qm:e:{for(U=I.key;w!==null;){if(w.key===U)if(w.tag===4&&w.stateNode.containerInfo===I.containerInfo&&w.stateNode.implementation===I.implementation){n(x,w.sibling),w=o(w,I.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=H3(I,x.mode,_),w.return=x,x=w}return a(x);case Sf:return U=I._init,v(x,w,U(I._payload),_)}if(z1(I))return m(x,w,I,_);if(Fv(I))return y(x,w,I,_);xx(x,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,I),w.return=x,x=w):(n(x,w),w=V3(I,x.mode,_),w.return=x,x=w),a(x)):n(x,w)}return v}var B0=IK(!0),PK=IK(!1),Gw={},ac=Sp(Gw),Vb=Sp(Gw),Hb=Sp(Gw);function Eh(e){if(e===Gw)throw Error(bt(174));return e}function S6(e,t){switch(Qr(Hb,t),Qr(Vb,e),Qr(ac,Gw),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:VM(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=VM(t,e)}ao(ac),Qr(ac,t)}function $0(){ao(ac),ao(Vb),ao(Hb)}function MK(e){Eh(Hb.current);var t=Eh(ac.current),n=VM(t,e.type);t!==n&&(Qr(Vb,e),Qr(ac,n))}function x6(e){Vb.current===e&&(ao(ac),ao(Vb))}var To=Sp(0);function cA(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var F3=[];function C6(){for(var e=0;en?n:4,e(!0);var r=N3.transition;N3.transition={};try{e(!1),t()}finally{Br=n,N3.transition=r}}function QK(){return Rl().memoizedState}function Dbe(e,t,n){var r=qf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KK(e))YK(t,n);else if(n=_K(e,t,n,r),n!==null){var o=Ma();pu(n,e,r,o),GK(n,t,r)}}function Bbe(e,t,n){var r=qf(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KK(e))YK(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,hu(s,a)){var l=t.interleaved;l===null?(o.next=o,b6(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=_K(e,t,o,r),n!==null&&(o=Ma(),pu(n,e,r,o),GK(n,t,r))}}function KK(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function YK(e,t){ob=dA=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,i6(e,n)}}var fA={readContext:Ol,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useInsertionEffect:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useMutableSource:Zi,useSyncExternalStore:Zi,useId:Zi,unstable_isNewReconciler:!1},$be={readContext:Ol,useCallback:function(e,t){return zu().memoizedState=[e,t===void 0?null:t],e},useContext:Ol,useEffect:w7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yC(4194308,4,WK.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yC(4194308,4,e,t)},useInsertionEffect:function(e,t){return yC(4,2,e,t)},useMemo:function(e,t){var n=zu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=zu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Dbe.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=zu();return e={current:e},t.memoizedState=e},useState:b7,useDebugValue:k6,useDeferredValue:function(e){return zu().memoizedState=e},useTransition:function(){var e=b7(!1),t=e[0];return e=Rbe.bind(null,e[1]),zu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ko,o=zu();if(mo){if(n===void 0)throw Error(bt(407));n=n()}else{if(n=t(),ki===null)throw Error(bt(349));qh&30||DK(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,w7($K.bind(null,r,i,e),[e]),r.flags|=2048,Kb(9,BK.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=zu(),t=ki.identifierPrefix;if(mo){var n=dd,r=cd;n=(r&~(1<<32-fu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qb++,0")&&(l=l.replace("",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{C3=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W1(e):""}function d1e(e){switch(e.tag){case 5:return W1(e.type);case 16:return W1("Lazy");case 13:return W1("Suspense");case 19:return W1("SuspenseList");case 0:case 2:case 15:return e=A3(e.type,!1),e;case 11:return e=A3(e.type.render,!1),e;case 1:return e=A3(e.type,!0),e;default:return""}}function UM(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Km:return"Fragment";case Qm:return"Portal";case LM:return"Profiler";case t6:return"StrictMode";case FM:return"Suspense";case NM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case kQ:return(e.displayName||"Context")+".Consumer";case TQ:return(e._context.displayName||"Context")+".Provider";case n6:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case r6:return t=e.displayName||null,t!==null?t:UM(e.type)||"Memo";case Sf:t=e._payload,e=e._init;try{return UM(e(t))}catch{}}return null}function f1e(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return UM(t);case 8:return t===t6?"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 t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ap(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function PQ(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function p1e(e){var t=PQ(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function f2(e){e._valueTracker||(e._valueTracker=p1e(e))}function MQ(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=PQ(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function KC(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function jM(e,t){var n=t.checked;return Io({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function LU(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ap(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function OQ(e,t){t=t.checked,t!=null&&e6(e,"checked",t,!1)}function WM(e,t){OQ(e,t);var n=ap(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zM(e,t.type,n):t.hasOwnProperty("defaultValue")&&zM(e,t.type,ap(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function FU(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function zM(e,t,n){(t!=="number"||KC(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var z1=Array.isArray;function p0(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=p2.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Db(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Z1={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},h1e=["Webkit","ms","Moz","O"];Object.keys(Z1).forEach(function(e){h1e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Z1[t]=Z1[e]})});function $Q(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Z1.hasOwnProperty(e)&&Z1[e]?(""+t).trim():t+"px"}function LQ(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=$Q(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var g1e=Io({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 qM(e,t){if(t){if(g1e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(bt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(bt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(bt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(bt(62))}}function QM(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 KM=null;function o6(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var YM=null,h0=null,g0=null;function jU(e){if(e=Yw(e)){if(typeof YM!="function")throw Error(bt(280));var t=e.stateNode;t&&(t=eE(t),YM(e.stateNode,e.type,t))}}function FQ(e){h0?g0?g0.push(e):g0=[e]:h0=e}function NQ(){if(h0){var e=h0,t=g0;if(g0=h0=null,jU(e),t)for(e=0;e>>=0,e===0?32:31-(E1e(e)/T1e|0)|0}var h2=64,g2=4194304;function V1(e){switch(e&-e){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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function XC(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=V1(s):(i&=a,i!==0&&(r=V1(i)))}else a=n&~o,a!==0?r=V1(a):i!==0&&(r=V1(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Qw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fu(t),e[t]=n}function M1e(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=tb),GU=String.fromCharCode(32),JU=!1;function iK(e,t){switch(e){case"keyup":return ibe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function aK(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ym=!1;function sbe(e,t){switch(e){case"compositionend":return aK(t);case"keypress":return t.which!==32?null:(JU=!0,GU);case"textInput":return e=t.data,e===GU&&JU?null:e;default:return null}}function lbe(e,t){if(Ym)return e==="compositionend"||!f6&&iK(e,t)?(e=rK(),pC=u6=Pf=null,Ym=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=t7(n)}}function cK(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?cK(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dK(){for(var e=window,t=KC();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=KC(e.document)}return t}function p6(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ybe(e){var t=dK(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&cK(n.ownerDocument.documentElement,n)){if(r!==null&&p6(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=n7(n,i);var a=n7(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Gm=null,tO=null,rb=null,nO=!1;function r7(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;nO||Gm==null||Gm!==KC(r)||(r=Gm,"selectionStart"in r&&p6(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),rb&&Ub(rb,r)||(rb=r,r=tA(tO,"onSelect"),0Zm||(e.current=lO[Zm],lO[Zm]=null,Zm--)}function Qr(e,t){Zm++,lO[Zm]=e.current,e.current=t}var sp={},fa=Sp(sp),rs=Sp(!1),Vh=sp;function R0(e,t){var n=e.type.contextTypes;if(!n)return sp;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function os(e){return e=e.childContextTypes,e!=null}function rA(){ao(rs),ao(fa)}function c7(e,t,n){if(fa.current!==sp)throw Error(bt(168));Qr(fa,t),Qr(rs,n)}function wK(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(bt(108,f1e(e)||"Unknown",o));return Io({},n,r)}function oA(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||sp,Vh=fa.current,Qr(fa,e),Qr(rs,rs.current),!0}function d7(e,t,n){var r=e.stateNode;if(!r)throw Error(bt(169));n?(e=wK(e,t,Vh),r.__reactInternalMemoizedMergedChildContext=e,ao(rs),ao(fa),Qr(fa,e)):ao(rs),Qr(rs,n)}var sd=null,tE=!1,F3=!1;function SK(e){sd===null?sd=[e]:sd.push(e)}function Ibe(e){tE=!0,SK(e)}function xp(){if(!F3&&sd!==null){F3=!0;var e=0,t=Br;try{var n=sd;for(Br=1;e>=a,o-=a,cd=1<<32-fu(t)+o|n<b?(T=D,D=null):T=D.sibling;var C=p(x,D,I[b],_);if(C===null){D===null&&(D=T);break}e&&D&&C.alternate===null&&t(x,D),w=i(C,w,b),U===null?R=C:U.sibling=C,U=C,D=T}if(b===I.length)return n(x,D),mo&&ch(x,b),R;if(D===null){for(;bb?(T=D,D=null):T=D.sibling;var O=p(x,D,C.value,_);if(O===null){D===null&&(D=T);break}e&&D&&O.alternate===null&&t(x,D),w=i(O,w,b),U===null?R=O:U.sibling=O,U=O,D=T}if(C.done)return n(x,D),mo&&ch(x,b),R;if(D===null){for(;!C.done;b++,C=I.next())C=f(x,C.value,_),C!==null&&(w=i(C,w,b),U===null?R=C:U.sibling=C,U=C);return mo&&ch(x,b),R}for(D=r(x,D);!C.done;b++,C=I.next())C=g(D,x,b,C.value,_),C!==null&&(e&&C.alternate!==null&&D.delete(C.key===null?b:C.key),w=i(C,w,b),U===null?R=C:U.sibling=C,U=C);return e&&D.forEach(function($){return t(x,$)}),mo&&ch(x,b),R}function v(x,w,I,_){if(typeof I=="object"&&I!==null&&I.type===Km&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case d2:e:{for(var R=I.key,U=w;U!==null;){if(U.key===R){if(R=I.type,R===Km){if(U.tag===7){n(x,U.sibling),w=o(U,I.props.children),w.return=x,x=w;break e}}else if(U.elementType===R||typeof R=="object"&&R!==null&&R.$$typeof===Sf&&v7(R)===U.type){n(x,U.sibling),w=o(U,I.props),w.ref=zv(x,U,I),w.return=x,x=w;break e}n(x,U);break}else t(x,U);U=U.sibling}I.type===Km?(w=Rh(I.props.children,x.mode,_,I.key),w.return=x,x=w):(_=SC(I.type,I.key,I.props,null,x.mode,_),_.ref=zv(x,w,I),_.return=x,x=_)}return a(x);case Qm:e:{for(U=I.key;w!==null;){if(w.key===U)if(w.tag===4&&w.stateNode.containerInfo===I.containerInfo&&w.stateNode.implementation===I.implementation){n(x,w.sibling),w=o(w,I.children||[]),w.return=x,x=w;break e}else{n(x,w);break}else t(x,w);w=w.sibling}w=q3(I,x.mode,_),w.return=x,x=w}return a(x);case Sf:return U=I._init,v(x,w,U(I._payload),_)}if(z1(I))return m(x,w,I,_);if(Fv(I))return y(x,w,I,_);x2(x,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,w!==null&&w.tag===6?(n(x,w.sibling),w=o(w,I),w.return=x,x=w):(n(x,w),w=H3(I,x.mode,_),w.return=x,x=w),a(x)):n(x,w)}return v}var B0=IK(!0),PK=IK(!1),Gw={},sc=Sp(Gw),Vb=Sp(Gw),Hb=Sp(Gw);function Eh(e){if(e===Gw)throw Error(bt(174));return e}function x6(e,t){switch(Qr(Hb,t),Qr(Vb,e),Qr(sc,Gw),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:HM(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=HM(t,e)}ao(sc),Qr(sc,t)}function $0(){ao(sc),ao(Vb),ao(Hb)}function MK(e){Eh(Hb.current);var t=Eh(sc.current),n=HM(t,e.type);t!==n&&(Qr(Vb,e),Qr(sc,n))}function C6(e){Vb.current===e&&(ao(sc),ao(Vb))}var To=Sp(0);function cA(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var N3=[];function A6(){for(var e=0;en?n:4,e(!0);var r=U3.transition;U3.transition={};try{e(!1),t()}finally{Br=n,U3.transition=r}}function QK(){return Rl().memoizedState}function Rbe(e,t,n){var r=qf(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},KK(e))YK(t,n);else if(n=_K(e,t,n,r),n!==null){var o=Ma();pu(n,e,r,o),GK(n,t,r)}}function Dbe(e,t,n){var r=qf(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(KK(e))YK(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,hu(s,a)){var l=t.interleaved;l===null?(o.next=o,w6(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=_K(e,t,o,r),n!==null&&(o=Ma(),pu(n,e,r,o),GK(n,t,r))}}function KK(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function YK(e,t){ob=dA=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function GK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,a6(e,n)}}var fA={readContext:Ol,useCallback:Zi,useContext:Zi,useEffect:Zi,useImperativeHandle:Zi,useInsertionEffect:Zi,useLayoutEffect:Zi,useMemo:Zi,useReducer:Zi,useRef:Zi,useState:Zi,useDebugValue:Zi,useDeferredValue:Zi,useTransition:Zi,useMutableSource:Zi,useSyncExternalStore:Zi,useId:Zi,unstable_isNewReconciler:!1},Bbe={readContext:Ol,useCallback:function(e,t){return Vu().memoizedState=[e,t===void 0?null:t],e},useContext:Ol,useEffect:w7,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,yC(4194308,4,WK.bind(null,t,e),n)},useLayoutEffect:function(e,t){return yC(4194308,4,e,t)},useInsertionEffect:function(e,t){return yC(4,2,e,t)},useMemo:function(e,t){var n=Vu();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vu();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Rbe.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Vu();return e={current:e},t.memoizedState=e},useState:b7,useDebugValue:I6,useDeferredValue:function(e){return Vu().memoizedState=e},useTransition:function(){var e=b7(!1),t=e[0];return e=Obe.bind(null,e[1]),Vu().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ko,o=Vu();if(mo){if(n===void 0)throw Error(bt(407));n=n()}else{if(n=t(),ki===null)throw Error(bt(349));qh&30||DK(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,w7($K.bind(null,r,i,e),[e]),r.flags|=2048,Kb(9,BK.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Vu(),t=ki.identifierPrefix;if(mo){var n=dd,r=cd;n=(r&~(1<<32-fu(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=qb++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Yu]=t,e[zb]=r,iY(e,t,!1,!1),t.stateNode=e;e:{switch(a=qM(n,r),n){case"dialog":to("cancel",e),to("close",e),o=r;break;case"iframe":case"object":case"embed":to("load",e),o=r;break;case"video":case"audio":for(o=0;oF0&&(t.flags|=128,r=!0,Vv(i,!1),t.lanes=4194304)}else{if(!r)if(e=cA(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!mo)return ea(t),null}else 2*qo()-i.renderingStartTime>F0&&n!==1073741824&&(t.flags|=128,r=!0,Vv(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qo(),t.sibling=null,n=To.current,Qr(To,r?n&1|2:n&1),t):(ea(t),null);case 22:case 23:return D6(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Es&1073741824&&(ea(t),t.subtreeFlags&6&&(t.flags|=8192)):ea(t),null;case 24:return null;case 25:return null}throw Error(bt(156,t.tag))}function Vbe(e,t){switch(h6(t),t.tag){case 1:return os(t.type)&&rA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $0(),ao(rs),ao(fa),C6(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return x6(t),null;case 13:if(ao(To),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(bt(340));D0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ao(To),null;case 4:return $0(),null;case 10:return v6(t.type._context),null;case 22:case 23:return D6(),null;case 24:return null;default:return null}}var Ax=!1,aa=!1,Hbe=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function r0(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Do(e,t,r)}else n.current=null}function bO(e,t,n){try{n()}catch(r){Do(e,t,r)}}var I7=!1;function qbe(e,t){if(nO=ZC,e=dK(),f6(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(rO={focusedElem:e,selectionRange:n},ZC=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){t=Wt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:ou(t.type,y),v);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(bt(163))}}catch(_){Do(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}return m=I7,I7=!1,m}function ib(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&bO(t,n,i)}o=o.next}while(o!==r)}}function oE(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function wO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lY(e){var t=e.alternate;t!==null&&(e.alternate=null,lY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Yu],delete t[zb],delete t[aO],delete t[kbe],delete t[Ibe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uY(e){return e.tag===5||e.tag===3||e.tag===4}function P7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uY(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function SO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nA));else if(r!==4&&(e=e.child,e!==null))for(SO(e,t,n),e=e.sibling;e!==null;)SO(e,t,n),e=e.sibling}function xO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(xO(e,t,n),e=e.sibling;e!==null;)xO(e,t,n),e=e.sibling}var $i=null,iu=!1;function hf(e,t,n){for(n=n.child;n!==null;)cY(e,t,n),n=n.sibling}function cY(e,t,n){if(ic&&typeof ic.onCommitFiberUnmount=="function")try{ic.onCommitFiberUnmount(G_,n)}catch{}switch(n.tag){case 5:aa||r0(n,t);case 6:var r=$i,o=iu;$i=null,hf(e,t,n),$i=r,iu=o,$i!==null&&(iu?(e=$i,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$i.removeChild(n.stateNode));break;case 18:$i!==null&&(iu?(e=$i,n=n.stateNode,e.nodeType===8?$3(e.parentNode,n):e.nodeType===1&&$3(e,n),Fb(e)):$3($i,n.stateNode));break;case 4:r=$i,o=iu,$i=n.stateNode.containerInfo,iu=!0,hf(e,t,n),$i=r,iu=o;break;case 0:case 11:case 14:case 15:if(!aa&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&bO(n,t,a),o=o.next}while(o!==r)}hf(e,t,n);break;case 1:if(!aa&&(r0(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Do(n,t,s)}hf(e,t,n);break;case 21:hf(e,t,n);break;case 22:n.mode&1?(aa=(r=aa)||n.memoizedState!==null,hf(e,t,n),aa=r):hf(e,t,n);break;default:hf(e,t,n)}}function M7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Hbe),t.forEach(function(r){var o=twe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=qo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Kbe(r/1960))-r,10e?16:e,Mf===null)var r=!1;else{if(e=Mf,Mf=null,gA=0,sr&6)throw Error(bt(331));var o=sr;for(sr|=4,Wt=e.current;Wt!==null;){var i=Wt,a=i.child;if(Wt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lqo()-O6?Oh(e,0):M6|=n),is(e,t)}function vY(e,t){t===0&&(e.mode&1?(t=gx,gx<<=1,!(gx&130023424)&&(gx=4194304)):t=1);var n=Ma();e=Td(e,t),e!==null&&(Qw(e,t,n),is(e,n))}function ewe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vY(e,n)}function twe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(bt(314))}r!==null&&r.delete(t),vY(e,n)}var bY;bY=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rs.current)ts=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ts=!1,Wbe(e,t,n);ts=!!(e.flags&131072)}else ts=!1,mo&&t.flags&1048576&&xK(t,aA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vC(e,t),e=t.pendingProps;var o=R0(t,fa.current);y0(t,n),o=_6(null,t,r,e,o,n);var i=E6();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,os(r)?(i=!0,oA(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,w6(t),o.updater=nE,t.stateNode=o,o._reactInternals=t,fO(t,r,e,n),t=gO(null,t,r,!0,i,n)):(t.tag=0,mo&&i&&p6(t),ka(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vC(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=rwe(r),e=ou(r,e),o){case 0:t=hO(null,t,r,e,n);break e;case 1:t=E7(null,t,r,e,n);break e;case 11:t=A7(null,t,r,e,n);break e;case 14:t=_7(null,t,r,ou(r.type,e),n);break e}throw Error(bt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),hO(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),E7(e,t,r,o,n);case 3:e:{if(nY(t),e===null)throw Error(bt(387));r=t.pendingProps,i=t.memoizedState,o=i.element,EK(e,t),uA(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=L0(Error(bt(423)),t),t=T7(e,t,r,n,o);break e}else if(r!==o){o=L0(Error(bt(424)),t),t=T7(e,t,r,n,o);break e}else for(Os=zf(t.stateNode.containerInfo.firstChild),Bs=t,mo=!0,au=null,n=PK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(D0(),r===o){t=kd(e,t,n);break e}ka(e,t,r,n)}t=t.child}return t;case 5:return MK(t),e===null&&uO(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,oO(r,o)?a=null:i!==null&&oO(r,i)&&(t.flags|=32),tY(e,t),ka(e,t,a,n),t.child;case 6:return e===null&&uO(t),null;case 13:return rY(e,t,n);case 4:return S6(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=B0(t,null,r,n):ka(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),A7(e,t,r,o,n);case 7:return ka(e,t,t.pendingProps,n),t.child;case 8:return ka(e,t,t.pendingProps.children,n),t.child;case 12:return ka(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Qr(sA,r._currentValue),r._currentValue=a,i!==null)if(hu(i.value,a)){if(i.children===o.children&&!rs.current){t=kd(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=gd(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),cO(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(bt(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),cO(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ka(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,y0(t,n),o=Ol(o),r=r(o),t.flags|=1,ka(e,t,r,n),t.child;case 14:return r=t.type,o=ou(r,t.pendingProps),o=ou(r.type,o),_7(e,t,r,o,n);case 15:return ZK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),vC(e,t),t.tag=1,os(r)?(e=!0,oA(t)):e=!1,y0(t,n),kK(t,r,o),fO(t,r,o,n),gO(null,t,r,!0,e,n);case 19:return oY(e,t,n);case 22:return eY(e,t,n)}throw Error(bt(156,t.tag))};function wY(e,t){return qQ(e,t)}function nwe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _l(e,t,n,r){return new nwe(e,t,n,r)}function $6(e){return e=e.prototype,!(!e||!e.isReactComponent)}function rwe(e){if(typeof e=="function")return $6(e)?1:0;if(e!=null){if(e=e.$$typeof,e===t6)return 11;if(e===n6)return 14}return 2}function Qf(e,t){var n=e.alternate;return n===null?(n=_l(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SC(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")$6(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Km:return Rh(n.children,o,i,t);case e6:a=8,o|=8;break;case $M:return e=_l(12,n,t,o|2),e.elementType=$M,e.lanes=i,e;case LM:return e=_l(13,n,t,o),e.elementType=LM,e.lanes=i,e;case FM:return e=_l(19,n,t,o),e.elementType=FM,e.lanes=i,e;case IQ:return aE(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case TQ:a=10;break e;case kQ:a=9;break e;case t6:a=11;break e;case n6:a=14;break e;case Sf:a=16,r=null;break e}throw Error(bt(130,e==null?e:typeof e,""))}return t=_l(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rh(e,t,n,r){return e=_l(7,e,r,t),e.lanes=n,e}function aE(e,t,n,r){return e=_l(22,e,r,t),e.elementType=IQ,e.lanes=n,e.stateNode={isHidden:!1},e}function V3(e,t,n){return e=_l(6,e,null,t),e.lanes=n,e}function H3(e,t,n){return t=_l(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function owe(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_3(0),this.expirationTimes=_3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_3(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function L6(e,t,n,r,o,i,a,s,l){return e=new owe(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_l(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},w6(i),e}function iwe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Vs})(a1e);const Tx=Hw(M0);var N7=M0;RM.createRoot=N7.createRoot,RM.hydrateRoot=N7.hydrateRoot;class wy{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Gb=typeof window>"u"||"Deno"in window;function yl(){}function cwe(e,t){return typeof e=="function"?e(t):e}function TO(e){return typeof e=="number"&&e>=0&&e!==1/0}function AY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function q1(e,t,n){return Jw(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function dwe(e,t,n){return Jw(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Cf(e,t,n){return Jw(e)?[{...t,queryKey:e},n]:[e||{},t]}function U7(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(Jw(a)){if(r){if(t.queryHash!==j6(a,t.options))return!1}else if(!vA(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function j7(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Jw(i)){if(!t.options.mutationKey)return!1;if(n){if(Th(t.options.mutationKey)!==Th(i))return!1}else if(!vA(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function j6(e,t){return((t==null?void 0:t.queryKeyHashFn)||Th)(e)}function Th(e){return JSON.stringify(e,(t,n)=>IO(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vA(e,t){return _Y(e,t)}function _Y(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!_Y(e[n],t[n])):!1}function EY(e,t){if(e===t)return e;const n=W7(e)&&W7(t);if(n||IO(e)&&IO(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l"u")return!0;const n=t.prototype;return!(!z7(n)||!n.hasOwnProperty("isPrototypeOf"))}function z7(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jw(e){return Array.isArray(e)}function TY(e){return new Promise(t=>{setTimeout(t,e)})}function V7(e){TY(0).then(e)}function fwe(){if(typeof AbortController=="function")return new AbortController}function PO(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?EY(e,t):t}class pwe extends wy{constructor(){super(),this.setup=t=>{if(!Gb&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const bA=new pwe;class hwe extends wy{constructor(){super(),this.setup=t=>{if(!Gb&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const wA=new hwe;function gwe(e){return Math.min(1e3*2**e,3e4)}function dE(e){return(e??"online")==="online"?wA.isOnline():!0}class kY{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function xC(e){return e instanceof kY}function IY(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((v,x)=>{i=v,a=x}),l=v=>{r||(g(new kY(v)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!bA.isFocused()||e.networkMode!=="always"&&!wA.isOnline(),p=v=>{r||(r=!0,e.onSuccess==null||e.onSuccess(v),o==null||o(),i(v))},g=v=>{r||(r=!0,e.onError==null||e.onError(v),o==null||o(),a(v))},m=()=>new Promise(v=>{o=x=>{const w=r||!f();return w&&v(x),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let v;try{v=e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(p).catch(x=>{var w,I;if(r)return;const _=(w=e.retry)!=null?w:3,R=(I=e.retryDelay)!=null?I:gwe,U=typeof R=="function"?R(n,x):R,D=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,x);if(t||!D){g(x);return}n++,e.onFail==null||e.onFail(n,x),TY(U).then(()=>{if(f())return m()}).then(()=>{t?g(x):y()})})};return dE(e.networkMode)?y():m().then(y),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const W6=console;function mwe(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):V7(()=>{n(c)})},a=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&V7(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Bo=mwe();class PY{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),TO(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Gb?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class ywe extends PY{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||W6,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||vwe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=PO(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(yl).catch(yl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!AY(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const a=fwe(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const p=g=>{if(xC(g)&&g.silent||this.dispatch({type:"error",error:g}),!xC(g)){var m,y,v,x;(m=(y=this.cache.config).onError)==null||m.call(y,g,this),(v=(x=this.cache.config).onSettled)==null||v.call(x,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=IY({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:g=>{var m,y,v,x;if(typeof g>"u"){p(new Error("undefined"));return}this.setData(g),(m=(y=this.cache.config).onSuccess)==null||m.call(y,g,this),(v=(x=this.cache.config).onSettled)==null||v.call(x,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,m)=>{this.dispatch({type:"failed",failureCount:g,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:dE(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return xC(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function vwe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class bwe extends wy{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:j6(i,n);let s=this.get(a);return s||(s=new ywe({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Bo.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Cf(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>U7(r,o))}findAll(t,n){const[r]=Cf(t,n);return Object.keys(r).length>0?this.queries.filter(o=>U7(r,o)):this.queries}notify(t){Bo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Bo.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Bo.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class wwe extends PY{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||W6,this.observers=[],this.state=t.state||MY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var D;return this.retryer=IY({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(b,T)=>{this.dispatch({type:"failed",failureCount:b,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(D=this.options.retry)!=null?D:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l,u,c;if(!n){var f,p,g,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this));const b=await((g=(m=this.options).onMutate)==null?void 0:g.call(m,this.state.variables));b!==this.state.context&&this.dispatch({type:"loading",context:b,variables:this.state.variables})}const D=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,D,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,D,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,D,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,D,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:D}),D}catch(D){try{var y,v,x,w,I,_,R,U;throw await((y=(v=this.mutationCache.config).onError)==null?void 0:y.call(v,D,this.state.variables,this.state.context,this)),await((x=(w=this.options).onError)==null?void 0:x.call(w,D,this.state.variables,this.state.context)),await((I=(_=this.mutationCache.config).onSettled)==null?void 0:I.call(_,void 0,D,this.state.variables,this.state.context,this)),await((R=(U=this.options).onSettled)==null?void 0:R.call(U,void 0,D,this.state.variables,this.state.context)),D}finally{this.dispatch({type:"error",error:D})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!dE(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bo.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function MY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Swe extends wy{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new wwe({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Bo.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>j7(t,n))}findAll(t){return this.mutations.filter(n=>j7(t,n))}notify(t){Bo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Bo.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(yl)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function xwe(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],g=((a=e.state.data)==null?void 0:a.pageParams)||[];let m=g,y=!1;const v=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>{var D;if((D=e.signal)!=null&&D.aborted)y=!0;else{var b;(b=e.signal)==null||b.addEventListener("abort",()=>{y=!0})}return e.signal}})},x=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),w=(U,D,b,T)=>(m=T?[D,...m]:[...m,D],T?[b,...U]:[...U,b]),I=(U,D,b,T)=>{if(y)return Promise.reject("Cancelled");if(typeof b>"u"&&!D&&U.length)return Promise.resolve(U);const C={queryKey:e.queryKey,pageParam:b,meta:e.options.meta};v(C);const O=x(C);return Promise.resolve(O).then(j=>w(U,b,j,T))};let _;if(!p.length)_=I([]);else if(c){const U=typeof u<"u",D=U?u:H7(e.options,p);_=I(p,U,D)}else if(f){const U=typeof u<"u",D=U?u:Cwe(e.options,p);_=I(p,U,D,!0)}else{m=[];const U=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?I([],U,g[0]):Promise.resolve(w([],g[0],p[0]));for(let b=1;b{if(s&&p[b]?s(p[b],b,p):!0){const O=U?g[b]:H7(e.options,T);return I(T,U,O)}return Promise.resolve(w(T,g[b],p[b]))})}return _.then(U=>({pages:U,pageParams:m}))}}}}function H7(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Cwe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Awe{constructor(t={}){this.queryCache=t.queryCache||new bwe,this.mutationCache=t.mutationCache||new Swe,this.logger=t.logger||W6,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=bA.subscribe(()=>{bA.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=wA.subscribe(()=>{wA.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Cf(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=q1(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=cwe(n,i);if(typeof a>"u")return;const s=q1(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Bo.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Cf(t,n),o=this.queryCache;Bo.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Cf(t,n,r),a=this.queryCache,s={type:"active",...o};return Bo.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Cf(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Bo.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(yl).catch(yl)}invalidateQueries(t,n,r){const[o,i]=Cf(t,n,r);return Bo.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Cf(t,n,r),a=Bo.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(yl);return i!=null&&i.throwOnError||(s=s.catch(yl)),s}fetchQuery(t,n,r){const o=q1(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(yl).catch(yl)}fetchInfiniteQuery(t,n,r){const o=q1(t,n,r);return o.behavior=xwe(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(yl).catch(yl)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Th(t)===Th(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>vA(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Th(t)===Th(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>vA(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=j6(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class _we extends wy{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),q7(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return MO(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return MO(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),kO(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Q7(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(yl)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Gb||this.currentResult.isStale||!TO(this.options.staleTime))return;const n=AY(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Gb||this.options.enabled===!1||!TO(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||bA.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:m,fetchStatus:y,status:v}=f,x=!1,w=!1,I;if(n._optimisticResults){const b=this.hasListeners(),T=!b&&q7(t,n),C=b&&Q7(t,r,n,o);(T||C)&&(y=dE(t.options.networkMode)?"fetching":"paused",p||(v="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&v!=="error")I=c.data,p=c.dataUpdatedAt,v=c.status,x=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(a==null?void 0:a.data)&&n.select===this.selectFn)I=this.selectResult;else try{this.selectFn=n.select,I=n.select(f.data),I=PO(i==null?void 0:i.data,I,n),this.selectResult=I,this.selectError=null}catch(b){this.selectError=b}else I=f.data;if(typeof n.placeholderData<"u"&&typeof I>"u"&&v==="loading"){let b;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))b=i.data;else if(b=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof b<"u")try{b=n.select(b),this.selectError=null}catch(T){this.selectError=T}typeof b<"u"&&(v="success",I=PO(i==null?void 0:i.data,b,n),w=!0)}this.selectError&&(g=this.selectError,I=this.selectResult,m=Date.now(),v="error");const _=y==="fetching",R=v==="loading",U=v==="error";return{status:v,fetchStatus:y,isLoading:R,isSuccess:v==="success",isError:U,isInitialLoading:R&&_,data:I,dataUpdatedAt:p,error:g,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!R,isLoadingError:U&&f.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:w,isPreviousData:x,isRefetchError:U&&f.dataUpdatedAt!==0,isStale:z6(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,kO(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const s=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&s.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!xC(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Bo.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,u;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Ewe(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function q7(e,t){return Ewe(e,t)||e.state.dataUpdatedAt>0&&MO(e,t,t.refetchOnMount)}function MO(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&z6(e,t)}return!1}function Q7(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&z6(e,n)}function z6(e,t){return e.isStaleByTime(t.staleTime)}let Twe=class extends wy{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),kO(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.listeners.length){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:MY(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Bo.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(i=this.mutateOptions).onSettled)==null||o.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,s,l,u;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)})})}};var SA={},kwe={get exports(){return SA},set exports(e){SA=e}},OY={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function z3(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function hO(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Fbe=typeof WeakMap=="function"?WeakMap:Map;function JK(e,t,n){n=gd(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hA||(hA=!0,AO=r),hO(e,t)},n}function XK(e,t,n){n=gd(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){hO(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){hO(e,t),typeof r!="function"&&(Hf===null?Hf=new Set([this]):Hf.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function S7(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Fbe;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Xbe.bind(null,e,t,n),t.then(e,e))}function x7(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function C7(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=gd(-1,1),t.tag=2,Vf(n,t,1))),n.lanes|=1),e)}var Nbe=Ud.ReactCurrentOwner,ts=!1;function ka(e,t,n,r){t.child=e===null?PK(t,null,n,r):B0(t,e.child,n,r)}function A7(e,t,n,r,o){n=n.render;var i=t.ref;return y0(t,o),r=E6(e,t,n,r,i,o),n=T6(),e!==null&&!ts?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kd(e,t,o)):(mo&&n&&h6(t),t.flags|=1,ka(e,t,r,o),t.child)}function _7(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!L6(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ZK(e,t,i,r,o)):(e=SC(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:Ub,n(a,r)&&e.ref===t.ref)return kd(e,t,o)}return t.flags|=1,e=Qf(i,r),e.ref=t.ref,e.return=t,t.child=e}function ZK(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Ub(i,r)&&e.ref===t.ref)if(ts=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(ts=!0);else return t.lanes=e.lanes,kd(e,t,o)}return gO(e,t,n,r,o)}function eY(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qr(o0,Es),Es|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Qr(o0,Es),Es|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Qr(o0,Es),Es|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Qr(o0,Es),Es|=r;return ka(e,t,o,n),t.child}function tY(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function gO(e,t,n,r,o){var i=os(n)?Vh:fa.current;return i=R0(t,i),y0(t,o),n=E6(e,t,n,r,i,o),r=T6(),e!==null&&!ts?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,kd(e,t,o)):(mo&&r&&h6(t),t.flags|=1,ka(e,t,n,o),t.child)}function E7(e,t,n,r,o){if(os(n)){var i=!0;oA(t)}else i=!1;if(y0(t,o),t.stateNode===null)vC(e,t),kK(t,n,r),pO(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ol(u):(u=os(n)?Vh:fa.current,u=R0(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&y7(t,a,r,u),xf=!1;var p=t.memoizedState;a.state=p,uA(t,r,a,o),l=t.memoizedState,s!==r||p!==l||rs.current||xf?(typeof c=="function"&&(fO(t,n,c,r),l=t.memoizedState),(s=xf||m7(t,n,s,r,p,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,EK(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ou(t.type,s),a.props=u,f=t.pendingProps,p=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=Ol(l):(l=os(n)?Vh:fa.current,l=R0(t,l));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||p!==l)&&y7(t,a,r,l),xf=!1,p=t.memoizedState,a.state=p,uA(t,r,a,o);var m=t.memoizedState;s!==f||p!==m||rs.current||xf?(typeof g=="function"&&(fO(t,n,g,r),m=t.memoizedState),(u=xf||m7(t,n,u,r,p,m,l)||!1)?(c||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,m,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,m,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return mO(e,t,n,r,i,o)}function mO(e,t,n,r,o,i){tY(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&d7(t,n,!1),kd(e,t,i);r=t.stateNode,Nbe.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=B0(t,e.child,null,i),t.child=B0(t,null,s,i)):ka(e,t,s,i),t.memoizedState=r.state,o&&d7(t,n,!0),t.child}function nY(e){var t=e.stateNode;t.pendingContext?c7(e,t.pendingContext,t.pendingContext!==t.context):t.context&&c7(e,t.context,!1),x6(e,t.containerInfo)}function T7(e,t,n,r,o){return D0(),m6(o),t.flags|=256,ka(e,t,n,r),t.child}var yO={dehydrated:null,treeContext:null,retryLane:0};function vO(e){return{baseLanes:e,cachePool:null,transitions:null}}function rY(e,t,n){var r=t.pendingProps,o=To.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Qr(To,o&1),e===null)return cO(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=aE(a,r,0,null),e=Rh(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=vO(n),t.memoizedState=yO,e):P6(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Ube(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Qf(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Qf(s,i):(i=Rh(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?vO(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=yO,r}return i=e.child,e=i.sibling,r=Qf(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function P6(e,t){return t=aE({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function C2(e,t,n,r){return r!==null&&m6(r),B0(t,e.child,null,n),e=P6(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ube(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=z3(Error(bt(422))),C2(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=aE({mode:"visible",children:r.children},o,0,null),i=Rh(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&B0(t,e.child,null,a),t.child.memoizedState=vO(a),t.memoizedState=yO,i);if(!(t.mode&1))return C2(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(bt(419)),r=z3(i,r,void 0),C2(e,t,a,r)}if(s=(a&e.childLanes)!==0,ts||s){if(r=ki,r!==null){switch(a&-a){case 4:o=2;break;case 16:o=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:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Td(e,o),pu(r,e,o,-1))}return $6(),r=z3(Error(bt(421))),C2(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Zbe.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Os=zf(o.nextSibling),Bs=t,mo=!0,au=null,e!==null&&(bl[wl++]=cd,bl[wl++]=dd,bl[wl++]=Hh,cd=e.id,dd=e.overflow,Hh=t),t=P6(t,r.children),t.flags|=4096,t)}function k7(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),dO(e.return,t,n)}function V3(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function oY(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ka(e,t,r.children,n),r=To.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&k7(e,n,t);else if(e.tag===19)k7(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Qr(To,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&cA(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),V3(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&cA(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}V3(t,!0,n,null,i);break;case"together":V3(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function vC(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function kd(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Qh|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(bt(153));if(t.child!==null){for(e=t.child,n=Qf(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Qf(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jbe(e,t,n){switch(t.tag){case 3:nY(t),D0();break;case 5:MK(t);break;case 1:os(t.type)&&oA(t);break;case 4:x6(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Qr(sA,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Qr(To,To.current&1),t.flags|=128,null):n&t.child.childLanes?rY(e,t,n):(Qr(To,To.current&1),e=kd(e,t,n),e!==null?e.sibling:null);Qr(To,To.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return oY(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Qr(To,To.current),r)break;return null;case 22:case 23:return t.lanes=0,eY(e,t,n)}return kd(e,t,n)}var iY,bO,aY,sY;iY=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bO=function(){};aY=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Eh(sc.current);var i=null;switch(n){case"input":o=jM(e,o),r=jM(e,r),i=[];break;case"select":o=Io({},o,{value:void 0}),r=Io({},r,{value:void 0}),i=[];break;case"textarea":o=VM(e,o),r=VM(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=nA)}qM(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Rb.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Rb.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&to("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};sY=function(e,t,n,r){n!==r&&(t.flags|=4)};function Vv(e,t){if(!mo)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ea(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Wbe(e,t,n){var r=t.pendingProps;switch(g6(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ea(t),null;case 1:return os(t.type)&&rA(),ea(t),null;case 3:return r=t.stateNode,$0(),ao(rs),ao(fa),A6(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(S2(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,au!==null&&(TO(au),au=null))),bO(e,t),ea(t),null;case 5:C6(t);var o=Eh(Hb.current);if(n=t.type,e!==null&&t.stateNode!=null)aY(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(bt(166));return ea(t),null}if(e=Eh(sc.current),S2(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Gu]=t,r[zb]=i,e=(t.mode&1)!==0,n){case"dialog":to("cancel",r),to("close",r);break;case"iframe":case"object":case"embed":to("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[Gu]=t,e[zb]=r,iY(e,t,!1,!1),t.stateNode=e;e:{switch(a=QM(n,r),n){case"dialog":to("cancel",e),to("close",e),o=r;break;case"iframe":case"object":case"embed":to("load",e),o=r;break;case"video":case"audio":for(o=0;oF0&&(t.flags|=128,r=!0,Vv(i,!1),t.lanes=4194304)}else{if(!r)if(e=cA(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Vv(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!mo)return ea(t),null}else 2*qo()-i.renderingStartTime>F0&&n!==1073741824&&(t.flags|=128,r=!0,Vv(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=qo(),t.sibling=null,n=To.current,Qr(To,r?n&1|2:n&1),t):(ea(t),null);case 22:case 23:return B6(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Es&1073741824&&(ea(t),t.subtreeFlags&6&&(t.flags|=8192)):ea(t),null;case 24:return null;case 25:return null}throw Error(bt(156,t.tag))}function zbe(e,t){switch(g6(t),t.tag){case 1:return os(t.type)&&rA(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $0(),ao(rs),ao(fa),A6(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return C6(t),null;case 13:if(ao(To),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(bt(340));D0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ao(To),null;case 4:return $0(),null;case 10:return b6(t.type._context),null;case 22:case 23:return B6(),null;case 24:return null;default:return null}}var A2=!1,aa=!1,Vbe=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function r0(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Do(e,t,r)}else n.current=null}function wO(e,t,n){try{n()}catch(r){Do(e,t,r)}}var I7=!1;function Hbe(e,t){if(rO=ZC,e=dK(),p6(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,c=0,f=e,p=null;t:for(;;){for(var g;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===o&&(s=a),p===i&&++c===r&&(l=a),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(oO={focusedElem:e,selectionRange:n},ZC=!1,Wt=t;Wt!==null;)if(t=Wt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Wt=e;else for(;Wt!==null;){t=Wt;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,v=m.memoizedState,x=t.stateNode,w=x.getSnapshotBeforeUpdate(t.elementType===t.type?y:ou(t.type,y),v);x.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var I=t.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(bt(163))}}catch(_){Do(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,Wt=e;break}Wt=t.return}return m=I7,I7=!1,m}function ib(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wO(t,n,i)}o=o.next}while(o!==r)}}function oE(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function SO(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function lY(e){var t=e.alternate;t!==null&&(e.alternate=null,lY(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Gu],delete t[zb],delete t[sO],delete t[Tbe],delete t[kbe])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function uY(e){return e.tag===5||e.tag===3||e.tag===4}function P7(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uY(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=nA));else if(r!==4&&(e=e.child,e!==null))for(xO(e,t,n),e=e.sibling;e!==null;)xO(e,t,n),e=e.sibling}function CO(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(CO(e,t,n),e=e.sibling;e!==null;)CO(e,t,n),e=e.sibling}var $i=null,iu=!1;function hf(e,t,n){for(n=n.child;n!==null;)cY(e,t,n),n=n.sibling}function cY(e,t,n){if(ac&&typeof ac.onCommitFiberUnmount=="function")try{ac.onCommitFiberUnmount(G_,n)}catch{}switch(n.tag){case 5:aa||r0(n,t);case 6:var r=$i,o=iu;$i=null,hf(e,t,n),$i=r,iu=o,$i!==null&&(iu?(e=$i,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):$i.removeChild(n.stateNode));break;case 18:$i!==null&&(iu?(e=$i,n=n.stateNode,e.nodeType===8?L3(e.parentNode,n):e.nodeType===1&&L3(e,n),Fb(e)):L3($i,n.stateNode));break;case 4:r=$i,o=iu,$i=n.stateNode.containerInfo,iu=!0,hf(e,t,n),$i=r,iu=o;break;case 0:case 11:case 14:case 15:if(!aa&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&wO(n,t,a),o=o.next}while(o!==r)}hf(e,t,n);break;case 1:if(!aa&&(r0(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Do(n,t,s)}hf(e,t,n);break;case 21:hf(e,t,n);break;case 22:n.mode&1?(aa=(r=aa)||n.memoizedState!==null,hf(e,t,n),aa=r):hf(e,t,n);break;default:hf(e,t,n)}}function M7(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Vbe),t.forEach(function(r){var o=ewe.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Gl(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=a),r&=~i}if(r=o,r=qo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qbe(r/1960))-r,10e?16:e,Mf===null)var r=!1;else{if(e=Mf,Mf=null,gA=0,sr&6)throw Error(bt(331));var o=sr;for(sr|=4,Wt=e.current;Wt!==null;){var i=Wt,a=i.child;if(Wt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lqo()-R6?Oh(e,0):O6|=n),is(e,t)}function vY(e,t){t===0&&(e.mode&1?(t=g2,g2<<=1,!(g2&130023424)&&(g2=4194304)):t=1);var n=Ma();e=Td(e,t),e!==null&&(Qw(e,t,n),is(e,n))}function Zbe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),vY(e,n)}function ewe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(bt(314))}r!==null&&r.delete(t),vY(e,n)}var bY;bY=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rs.current)ts=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return ts=!1,jbe(e,t,n);ts=!!(e.flags&131072)}else ts=!1,mo&&t.flags&1048576&&xK(t,aA,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;vC(e,t),e=t.pendingProps;var o=R0(t,fa.current);y0(t,n),o=E6(null,t,r,e,o,n);var i=T6();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,os(r)?(i=!0,oA(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,S6(t),o.updater=nE,t.stateNode=o,o._reactInternals=t,pO(t,r,e,n),t=mO(null,t,r,!0,i,n)):(t.tag=0,mo&&i&&h6(t),ka(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(vC(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nwe(r),e=ou(r,e),o){case 0:t=gO(null,t,r,e,n);break e;case 1:t=E7(null,t,r,e,n);break e;case 11:t=A7(null,t,r,e,n);break e;case 14:t=_7(null,t,r,ou(r.type,e),n);break e}throw Error(bt(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),gO(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),E7(e,t,r,o,n);case 3:e:{if(nY(t),e===null)throw Error(bt(387));r=t.pendingProps,i=t.memoizedState,o=i.element,EK(e,t),uA(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=L0(Error(bt(423)),t),t=T7(e,t,r,n,o);break e}else if(r!==o){o=L0(Error(bt(424)),t),t=T7(e,t,r,n,o);break e}else for(Os=zf(t.stateNode.containerInfo.firstChild),Bs=t,mo=!0,au=null,n=PK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(D0(),r===o){t=kd(e,t,n);break e}ka(e,t,r,n)}t=t.child}return t;case 5:return MK(t),e===null&&cO(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,iO(r,o)?a=null:i!==null&&iO(r,i)&&(t.flags|=32),tY(e,t),ka(e,t,a,n),t.child;case 6:return e===null&&cO(t),null;case 13:return rY(e,t,n);case 4:return x6(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=B0(t,null,r,n):ka(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),A7(e,t,r,o,n);case 7:return ka(e,t,t.pendingProps,n),t.child;case 8:return ka(e,t,t.pendingProps.children,n),t.child;case 12:return ka(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Qr(sA,r._currentValue),r._currentValue=a,i!==null)if(hu(i.value,a)){if(i.children===o.children&&!rs.current){t=kd(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=gd(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),dO(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(bt(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),dO(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}ka(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,y0(t,n),o=Ol(o),r=r(o),t.flags|=1,ka(e,t,r,n),t.child;case 14:return r=t.type,o=ou(r,t.pendingProps),o=ou(r.type,o),_7(e,t,r,o,n);case 15:return ZK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ou(r,o),vC(e,t),t.tag=1,os(r)?(e=!0,oA(t)):e=!1,y0(t,n),kK(t,r,o),pO(t,r,o,n),mO(null,t,r,!0,e,n);case 19:return oY(e,t,n);case 22:return eY(e,t,n)}throw Error(bt(156,t.tag))};function wY(e,t){return qQ(e,t)}function twe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _l(e,t,n,r){return new twe(e,t,n,r)}function L6(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nwe(e){if(typeof e=="function")return L6(e)?1:0;if(e!=null){if(e=e.$$typeof,e===n6)return 11;if(e===r6)return 14}return 2}function Qf(e,t){var n=e.alternate;return n===null?(n=_l(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function SC(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")L6(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Km:return Rh(n.children,o,i,t);case t6:a=8,o|=8;break;case LM:return e=_l(12,n,t,o|2),e.elementType=LM,e.lanes=i,e;case FM:return e=_l(13,n,t,o),e.elementType=FM,e.lanes=i,e;case NM:return e=_l(19,n,t,o),e.elementType=NM,e.lanes=i,e;case IQ:return aE(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case TQ:a=10;break e;case kQ:a=9;break e;case n6:a=11;break e;case r6:a=14;break e;case Sf:a=16,r=null;break e}throw Error(bt(130,e==null?e:typeof e,""))}return t=_l(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Rh(e,t,n,r){return e=_l(7,e,r,t),e.lanes=n,e}function aE(e,t,n,r){return e=_l(22,e,r,t),e.elementType=IQ,e.lanes=n,e.stateNode={isHidden:!1},e}function H3(e,t,n){return e=_l(6,e,null,t),e.lanes=n,e}function q3(e,t,n){return t=_l(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rwe(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=E3(0),this.expirationTimes=E3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=E3(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function F6(e,t,n,r,o,i,a,s,l){return e=new rwe(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=_l(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},S6(i),e}function owe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}t(),e.exports=Vs})(i1e);const T2=Hw(M0);var N7=M0;DM.createRoot=N7.createRoot,DM.hydrateRoot=N7.hydrateRoot;class wy{constructor(){this.listeners=[],this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.push(t),this.onSubscribe(),()=>{this.listeners=this.listeners.filter(n=>n!==t),this.onUnsubscribe()}}hasListeners(){return this.listeners.length>0}onSubscribe(){}onUnsubscribe(){}}const Gb=typeof window>"u"||"Deno"in window;function yl(){}function uwe(e,t){return typeof e=="function"?e(t):e}function kO(e){return typeof e=="number"&&e>=0&&e!==1/0}function AY(e,t){return Math.max(e+(t||0)-Date.now(),0)}function q1(e,t,n){return Jw(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function cwe(e,t,n){return Jw(e)?typeof t=="function"?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function Cf(e,t,n){return Jw(e)?[{...t,queryKey:e},n]:[e||{},t]}function U7(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(Jw(a)){if(r){if(t.queryHash!==W6(a,t.options))return!1}else if(!vA(t.queryKey,a))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function j7(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Jw(i)){if(!t.options.mutationKey)return!1;if(n){if(Th(t.options.mutationKey)!==Th(i))return!1}else if(!vA(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function W6(e,t){return((t==null?void 0:t.queryKeyHashFn)||Th)(e)}function Th(e){return JSON.stringify(e,(t,n)=>PO(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vA(e,t){return _Y(e,t)}function _Y(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!_Y(e[n],t[n])):!1}function EY(e,t){if(e===t)return e;const n=W7(e)&&W7(t);if(n||PO(e)&&PO(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,a=n?[]:{};let s=0;for(let l=0;l"u")return!0;const n=t.prototype;return!(!z7(n)||!n.hasOwnProperty("isPrototypeOf"))}function z7(e){return Object.prototype.toString.call(e)==="[object Object]"}function Jw(e){return Array.isArray(e)}function TY(e){return new Promise(t=>{setTimeout(t,e)})}function V7(e){TY(0).then(e)}function dwe(){if(typeof AbortController=="function")return new AbortController}function MO(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?EY(e,t):t}class fwe extends wy{constructor(){super(),this.setup=t=>{if(!Gb&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused=t,t&&this.onFocus()}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const bA=new fwe;class pwe extends wy{constructor(){super(),this.setup=t=>{if(!Gb&&window.addEventListener){const n=()=>t();return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online=t,t&&this.onOnline()}onOnline(){this.listeners.forEach(t=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const wA=new pwe;function hwe(e){return Math.min(1e3*2**e,3e4)}function dE(e){return(e??"online")==="online"?wA.isOnline():!0}class kY{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function xC(e){return e instanceof kY}function IY(e){let t=!1,n=0,r=!1,o,i,a;const s=new Promise((v,x)=>{i=v,a=x}),l=v=>{r||(g(new kY(v)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!bA.isFocused()||e.networkMode!=="always"&&!wA.isOnline(),p=v=>{r||(r=!0,e.onSuccess==null||e.onSuccess(v),o==null||o(),i(v))},g=v=>{r||(r=!0,e.onError==null||e.onError(v),o==null||o(),a(v))},m=()=>new Promise(v=>{o=x=>{const w=r||!f();return w&&v(x),w},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),y=()=>{if(r)return;let v;try{v=e.fn()}catch(x){v=Promise.reject(x)}Promise.resolve(v).then(p).catch(x=>{var w,I;if(r)return;const _=(w=e.retry)!=null?w:3,R=(I=e.retryDelay)!=null?I:hwe,U=typeof R=="function"?R(n,x):R,D=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,x);if(t||!D){g(x);return}n++,e.onFail==null||e.onFail(n,x),TY(U).then(()=>{if(f())return m()}).then(()=>{t?g(x):y()})})};return dE(e.networkMode)?y():m().then(y),{promise:s,cancel:l,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const z6=console;function gwe(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):V7(()=>{n(c)})},a=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&V7(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:a,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const Bo=gwe();class PY{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kO(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Gb?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class mwe extends PY{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||z6,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||ywe(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=MO(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(yl).catch(yl):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!AY(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.indexOf(t)!==-1&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(m=>m.options.queryFn);g&&this.setOptions(g.options)}Array.isArray(this.options.queryKey);const a=dwe(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};l(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(l(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const p=g=>{if(xC(g)&&g.silent||this.dispatch({type:"error",error:g}),!xC(g)){var m,y,v,x;(m=(y=this.cache.config).onError)==null||m.call(y,g,this),(v=(x=this.cache.config).onSettled)==null||v.call(x,this.state.data,g,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=IY({fn:c.fetchFn,abort:a==null?void 0:a.abort.bind(a),onSuccess:g=>{var m,y,v,x;if(typeof g>"u"){p(new Error("undefined"));return}this.setData(g),(m=(y=this.cache.config).onSuccess)==null||m.call(y,g,this),(v=(x=this.cache.config).onSettled)==null||v.call(x,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(g,m)=>{this.dispatch({type:"failed",failureCount:g,error:m})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:dE(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const a=t.error;return xC(a)&&a.revert&&this.revertState?{...this.revertState}:{...r,error:a,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bo.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function ywe(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class vwe extends wy{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,a=(o=n.queryHash)!=null?o:W6(i,n);let s=this.get(a);return s||(s=new mwe({cache:this,logger:t.getLogger(),queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Bo.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Cf(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>U7(r,o))}findAll(t,n){const[r]=Cf(t,n);return Object.keys(r).length>0?this.queries.filter(o=>U7(r,o)):this.queries}notify(t){Bo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Bo.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Bo.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class bwe extends PY{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||z6,this.observers=[],this.state=t.state||MY(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.indexOf(t)===-1&&(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var D;return this.retryer=IY({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(b,T)=>{this.dispatch({type:"failed",failureCount:b,error:T})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(D=this.options.retry)!=null?D:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,a,s,l,u,c;if(!n){var f,p,g,m;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(p=this.mutationCache.config).onMutate)==null?void 0:f.call(p,this.state.variables,this));const b=await((g=(m=this.options).onMutate)==null?void 0:g.call(m,this.state.variables));b!==this.state.context&&this.dispatch({type:"loading",context:b,variables:this.state.variables})}const D=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,D,this.state.variables,this.state.context,this)),await((i=(a=this.options).onSuccess)==null?void 0:i.call(a,D,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,D,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,D,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:D}),D}catch(D){try{var y,v,x,w,I,_,R,U;throw await((y=(v=this.mutationCache.config).onError)==null?void 0:y.call(v,D,this.state.variables,this.state.context,this)),await((x=(w=this.options).onError)==null?void 0:x.call(w,D,this.state.variables,this.state.context)),await((I=(_=this.mutationCache.config).onSettled)==null?void 0:I.call(_,void 0,D,this.state.variables,this.state.context,this)),await((R=(U=this.options).onSettled)==null?void 0:R.call(U,void 0,D,this.state.variables,this.state.context)),D}finally{this.dispatch({type:"error",error:D})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!dE(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),Bo.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function MY(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class wwe extends wy{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new bwe({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){Bo.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>j7(t,n))}findAll(t){return this.mutations.filter(n=>j7(t,n))}notify(t){Bo.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return Bo.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(yl)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Swe(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,l=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=l==null?void 0:l.pageParam,c=(l==null?void 0:l.direction)==="forward",f=(l==null?void 0:l.direction)==="backward",p=((i=e.state.data)==null?void 0:i.pages)||[],g=((a=e.state.data)==null?void 0:a.pageParams)||[];let m=g,y=!1;const v=U=>{Object.defineProperty(U,"signal",{enumerable:!0,get:()=>{var D;if((D=e.signal)!=null&&D.aborted)y=!0;else{var b;(b=e.signal)==null||b.addEventListener("abort",()=>{y=!0})}return e.signal}})},x=e.options.queryFn||(()=>Promise.reject("Missing queryFn")),w=(U,D,b,T)=>(m=T?[D,...m]:[...m,D],T?[b,...U]:[...U,b]),I=(U,D,b,T)=>{if(y)return Promise.reject("Cancelled");if(typeof b>"u"&&!D&&U.length)return Promise.resolve(U);const C={queryKey:e.queryKey,pageParam:b,meta:e.options.meta};v(C);const O=x(C);return Promise.resolve(O).then(j=>w(U,b,j,T))};let _;if(!p.length)_=I([]);else if(c){const U=typeof u<"u",D=U?u:H7(e.options,p);_=I(p,U,D)}else if(f){const U=typeof u<"u",D=U?u:xwe(e.options,p);_=I(p,U,D,!0)}else{m=[];const U=typeof e.options.getNextPageParam>"u";_=(s&&p[0]?s(p[0],0,p):!0)?I([],U,g[0]):Promise.resolve(w([],g[0],p[0]));for(let b=1;b{if(s&&p[b]?s(p[b],b,p):!0){const O=U?g[b]:H7(e.options,T);return I(T,U,O)}return Promise.resolve(w(T,g[b],p[b]))})}return _.then(U=>({pages:U,pageParams:m}))}}}}function H7(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function xwe(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Cwe{constructor(t={}){this.queryCache=t.queryCache||new vwe,this.mutationCache=t.mutationCache||new wwe,this.logger=t.logger||z6,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=bA.subscribe(()=>{bA.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=wA.subscribe(()=>{wA.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Cf(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=q1(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,a=uwe(n,i);if(typeof a>"u")return;const s=q1(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(a,{...r,manual:!0})}setQueriesData(t,n,r){return Bo.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Cf(t,n),o=this.queryCache;Bo.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Cf(t,n,r),a=this.queryCache,s={type:"active",...o};return Bo.batch(()=>(a.findAll(o).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Cf(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const a=Bo.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(a).then(yl).catch(yl)}invalidateQueries(t,n,r){const[o,i]=Cf(t,n,r);return Bo.batch(()=>{var a,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const l={...o,type:(a=(s=o.refetchType)!=null?s:o.type)!=null?a:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,n,r){const[o,i]=Cf(t,n,r),a=Bo.batch(()=>this.queryCache.findAll(o).filter(l=>!l.isDisabled()).map(l=>{var u;return l.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(a).then(yl);return i!=null&&i.throwOnError||(s=s.catch(yl)),s}fetchQuery(t,n,r){const o=q1(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const a=this.queryCache.build(this,i);return a.isStaleByTime(i.staleTime)?a.fetch(i):Promise.resolve(a.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(yl).catch(yl)}fetchInfiniteQuery(t,n,r){const o=q1(t,n,r);return o.behavior=Swe(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(yl).catch(yl)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Th(t)===Th(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>vA(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Th(t)===Th(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>vA(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=W6(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Awe extends wy{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.length===1&&(this.currentQuery.addObserver(this),q7(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.listeners.length||this.destroy()}shouldFetchOnReconnect(){return OO(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return OO(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=[],this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),IO(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Q7(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const a=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||a!==this.currentRefetchInterval)&&this.updateRefetchInterval(a)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(yl)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Gb||this.currentResult.isStale||!kO(this.options.staleTime))return;const n=AY(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Gb||this.options.enabled===!1||!kO(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||bA.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,a=this.currentResultState,s=this.currentResultOptions,l=t!==r,u=l?t.state:this.currentQueryInitialState,c=l?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:p,error:g,errorUpdatedAt:m,fetchStatus:y,status:v}=f,x=!1,w=!1,I;if(n._optimisticResults){const b=this.hasListeners(),T=!b&&q7(t,n),C=b&&Q7(t,r,n,o);(T||C)&&(y=dE(t.options.networkMode)?"fetching":"paused",p||(v="loading")),n._optimisticResults==="isRestoring"&&(y="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&v!=="error")I=c.data,p=c.dataUpdatedAt,v=c.status,x=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(a==null?void 0:a.data)&&n.select===this.selectFn)I=this.selectResult;else try{this.selectFn=n.select,I=n.select(f.data),I=MO(i==null?void 0:i.data,I,n),this.selectResult=I,this.selectError=null}catch(b){this.selectError=b}else I=f.data;if(typeof n.placeholderData<"u"&&typeof I>"u"&&v==="loading"){let b;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))b=i.data;else if(b=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof b<"u")try{b=n.select(b),this.selectError=null}catch(T){this.selectError=T}typeof b<"u"&&(v="success",I=MO(i==null?void 0:i.data,b,n),w=!0)}this.selectError&&(g=this.selectError,I=this.selectResult,m=Date.now(),v="error");const _=y==="fetching",R=v==="loading",U=v==="error";return{status:v,fetchStatus:y,isLoading:R,isSuccess:v==="success",isError:U,isInitialLoading:R&&_,data:I,dataUpdatedAt:p,error:g,errorUpdatedAt:m,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:_,isRefetching:_&&!R,isLoadingError:U&&f.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:w,isPreviousData:x,isRefetchError:U&&f.dataUpdatedAt!==0,isStale:V6(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,IO(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:a}=this.options;if(a==="all"||!a&&!this.trackedProps.size)return!0;const s=new Set(a??this.trackedProps);return this.options.useErrorBoundary&&s.add("error"),Object.keys(this.currentResult).some(l=>{const u=l;return this.currentResult[u]!==n[u]&&s.has(u)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!xC(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){Bo.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var a,s,l,u;(a=(s=this.options).onError)==null||a.call(s,this.currentResult.error),(l=(u=this.options).onSettled)==null||l.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function _we(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function q7(e,t){return _we(e,t)||e.state.dataUpdatedAt>0&&OO(e,t,t.refetchOnMount)}function OO(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&V6(e,t)}return!1}function Q7(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&V6(e,n)}function V6(e,t){return e.isStaleByTime(t.staleTime)}let Ewe=class extends wy{constructor(t,n){super(),this.client=t,this.setOptions(n),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var n;const r=this.options;this.options=this.client.defaultMutationOptions(t),IO(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(n=this.currentMutation)==null||n.setOptions(this.options)}onUnsubscribe(){if(!this.listeners.length){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const n={listeners:!0};t.type==="success"?n.onSuccess=!0:t.type==="error"&&(n.onError=!0),this.notify(n)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,n){return this.mutateOptions=n,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:MY(),n={...t,isLoading:t.status==="loading",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Bo.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var n,r,o,i;(n=(r=this.mutateOptions).onSuccess)==null||n.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(o=(i=this.mutateOptions).onSettled)==null||o.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var a,s,l,u;(a=(s=this.mutateOptions).onError)==null||a.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(u=this.mutateOptions).onSettled)==null||l.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(c=>{c(this.currentResult)})})}};var SA={},Twe={get exports(){return SA},set exports(e){SA=e}},OY={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -50,7 +50,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var N0=M;function Iwe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Pwe=typeof Object.is=="function"?Object.is:Iwe,Mwe=N0.useState,Owe=N0.useEffect,Rwe=N0.useLayoutEffect,Dwe=N0.useDebugValue;function Bwe(e,t){var n=t(),r=Mwe({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return Rwe(function(){o.value=n,o.getSnapshot=t,q3(o)&&i({inst:o})},[e,n,t]),Owe(function(){return q3(o)&&i({inst:o}),e(function(){q3(o)&&i({inst:o})})},[e]),Dwe(n),n}function q3(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Pwe(e,n)}catch{return!0}}function $we(e,t){return t()}var Lwe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?$we:Bwe;OY.useSyncExternalStore=N0.useSyncExternalStore!==void 0?N0.useSyncExternalStore:Lwe;(function(e){e.exports=OY})(kwe);const RY=SA.useSyncExternalStore,K7=M.createContext(void 0),DY=M.createContext(!1);function BY(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=K7),window.ReactQueryClientContext):K7)}const Sy=({context:e}={})=>{const t=M.useContext(BY(e,M.useContext(DY)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Fwe=({client:e,children:t,context:n,contextSharing:r=!1})=>{M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=BY(n,r);return M.createElement(DY.Provider,{value:!n&&r},M.createElement(o.Provider,{value:e},t))},$Y=M.createContext(!1),Nwe=()=>M.useContext($Y);$Y.Provider;function Uwe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const jwe=M.createContext(Uwe()),Wwe=()=>M.useContext(jwe);function LY(e,t){return typeof e=="function"?e(...t):!!e}const zwe=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},Vwe=e=>{M.useEffect(()=>{e.clearReset()},[e])},Hwe=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&LY(n,[e.error,r]),qwe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},Qwe=(e,t)=>e.isLoading&&e.isFetching&&!t,Kwe=(e,t,n)=>(e==null?void 0:e.suspense)&&Qwe(t,n),Ywe=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Gwe(e,t){const n=Sy({context:e.context}),r=Nwe(),o=Wwe(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Bo.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Bo.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Bo.batchCalls(i.onSettled)),qwe(i),zwe(i,o),Vwe(o);const[a]=M.useState(()=>new t(n,i)),s=a.getOptimisticResult(i);if(RY(M.useCallback(l=>r?()=>{}:a.subscribe(Bo.batchCalls(l)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),M.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),Kwe(i,s,r))throw Ywe(i,a,o);if(Hwe({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function jd(e,t,n){const r=q1(e,t,n);return Gwe(r,_we)}function ps(e,t,n){const r=dwe(e,t,n),o=Sy({context:r.context}),[i]=M.useState(()=>new Twe(o,r));M.useEffect(()=>{i.setOptions(r)},[i,r]);const a=RY(M.useCallback(l=>i.subscribe(Bo.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=M.useCallback((l,u)=>{i.mutate(l,u).catch(Jwe)},[i]);if(a.error&&LY(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function Jwe(){}const Xwe={black:"#000",white:"#fff"},Jb=Xwe,Zwe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Am=Zwe,eSe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_m=eSe,tSe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Em=tSe,nSe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tm=nSe,rSe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},km=rSe,oSe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qv=oSe,iSe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},aSe=iSe;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=FY(e[n])}),t}function Tl(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return vh(e)&&vh(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(vh(t[o])&&o in e&&vh(e[o])?r[o]=Tl(e[o],t[o],n):n.clone?r[o]=vh(t[o])?FY(t[o]):t[o]:r[o]=t[o])}),r}var ue={},sSe={get exports(){return ue},set exports(e){ue=e}},lSe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uSe=lSe,cSe=uSe;function NY(){}function UY(){}UY.resetWarningCache=NY;var dSe=function(){function e(r,o,i,a,s,l){if(l!==cSe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:UY,resetWarningCache:NY};return n.PropTypes=n,n};sSe.exports=dSe();function lp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?Bwe:Dwe;OY.useSyncExternalStore=N0.useSyncExternalStore!==void 0?N0.useSyncExternalStore:$we;(function(e){e.exports=OY})(Twe);const RY=SA.useSyncExternalStore,K7=M.createContext(void 0),DY=M.createContext(!1);function BY(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=K7),window.ReactQueryClientContext):K7)}const Sy=({context:e}={})=>{const t=M.useContext(BY(e,M.useContext(DY)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Lwe=({client:e,children:t,context:n,contextSharing:r=!1})=>{M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=BY(n,r);return M.createElement(DY.Provider,{value:!n&&r},M.createElement(o.Provider,{value:e},t))},$Y=M.createContext(!1),Fwe=()=>M.useContext($Y);$Y.Provider;function Nwe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const Uwe=M.createContext(Nwe()),jwe=()=>M.useContext(Uwe);function LY(e,t){return typeof e=="function"?e(...t):!!e}const Wwe=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},zwe=e=>{M.useEffect(()=>{e.clearReset()},[e])},Vwe=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&LY(n,[e.error,r]),Hwe=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},qwe=(e,t)=>e.isLoading&&e.isFetching&&!t,Qwe=(e,t,n)=>(e==null?void 0:e.suspense)&&qwe(t,n),Kwe=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function Ywe(e,t){const n=Sy({context:e.context}),r=Fwe(),o=jwe(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=Bo.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Bo.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Bo.batchCalls(i.onSettled)),Hwe(i),Wwe(i,o),zwe(o);const[a]=M.useState(()=>new t(n,i)),s=a.getOptimisticResult(i);if(RY(M.useCallback(l=>r?()=>{}:a.subscribe(Bo.batchCalls(l)),[a,r]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),M.useEffect(()=>{a.setOptions(i,{listeners:!1})},[i,a]),Qwe(i,s,r))throw Kwe(i,a,o);if(Vwe({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:a.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:a.trackResult(s)}function jd(e,t,n){const r=q1(e,t,n);return Ywe(r,Awe)}function ps(e,t,n){const r=cwe(e,t,n),o=Sy({context:r.context}),[i]=M.useState(()=>new Ewe(o,r));M.useEffect(()=>{i.setOptions(r)},[i,r]);const a=RY(M.useCallback(l=>i.subscribe(Bo.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=M.useCallback((l,u)=>{i.mutate(l,u).catch(Gwe)},[i]);if(a.error&&LY(i.options.useErrorBoundary,[a.error]))throw a.error;return{...a,mutate:s,mutateAsync:a.mutate}}function Gwe(){}const Jwe={black:"#000",white:"#fff"},Jb=Jwe,Xwe={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Am=Xwe,Zwe={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},_m=Zwe,eSe={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Em=eSe,tSe={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Tm=tSe,nSe={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},km=nSe,rSe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},qv=rSe,oSe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},iSe=oSe;function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=FY(e[n])}),t}function Tl(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return vh(e)&&vh(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(vh(t[o])&&o in e&&vh(e[o])?r[o]=Tl(e[o],t[o],n):n.clone?r[o]=vh(t[o])?FY(t[o]):t[o]:r[o]=t[o])}),r}var ue={},aSe={get exports(){return ue},set exports(e){ue=e}},sSe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",lSe=sSe,uSe=lSe;function NY(){}function UY(){}UY.resetWarningCache=NY;var cSe=function(){function e(r,o,i,a,s,l){if(l!==uSe){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:UY,resetWarningCache:NY};return n.PropTypes=n,n};aSe.exports=cSe();function lp(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Xb(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function CC(e,t){return M.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function gi(e){return e&&e.ownerDocument||document}function Id(e){return gi(e).defaultView||window}function RO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const gSe=typeof window<"u"?M.useLayoutEffect:M.useEffect,pa=gSe;let G7=0;function mSe(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(G7+=1,n(`mui-${G7}`))},[t]),r}const J7=zh["useId"];function Xw(e){if(J7!==void 0){const t=J7();return e??t}return mSe(e)}function ls({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=M.useRef(e!==void 0),[i,a]=M.useState(t),s=o?e:i,l=M.useCallback(u=>{o||a(u)},[]);return[s,l]}function Or(e){const t=M.useRef(e);return pa(()=>{t.current=e}),M.useCallback((...n)=>(0,t.current)(...n),[])}function so(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{RO(n,t)})},e)}let xE=!0,DO=!1,X7;const ySe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function vSe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ySe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function bSe(e){e.metaKey||e.altKey||e.ctrlKey||(xE=!0)}function Q3(){xE=!1}function wSe(){this.visibilityState==="hidden"&&DO&&(xE=!0)}function SSe(e){e.addEventListener("keydown",bSe,!0),e.addEventListener("mousedown",Q3,!0),e.addEventListener("pointerdown",Q3,!0),e.addEventListener("touchstart",Q3,!0),e.addEventListener("visibilitychange",wSe,!0)}function xSe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return xE||vSe(t)}function q6(){const e=M.useCallback(o=>{o!=null&&SSe(o.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(DO=!0,window.clearTimeout(X7),X7=window.setTimeout(()=>{DO=!1},100),t.current=!1,!0):!1}function r(o){return xSe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function WY(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Im;function zY(){if(Im)return Im;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Im="reverse",e.scrollLeft>0?Im="default":(e.scrollLeft=1,e.scrollLeft===0&&(Im="negative")),document.body.removeChild(e),Im}function Z7(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(zY()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function Q6(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=Q({},i),Object.keys(o).forEach(a=>{n[r][a]=Q6(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const e9=e=>e,CSe=()=>{let e=e9;return{configure(t){e=t},generate(t){return e(t)},reset(){e=e9}}},ASe=CSe(),VY=ASe,_Se={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Vt(e,t,n="Mui"){const r=_Se[t];return r?`${n}-${r}`:`${VY.generate(e)}-${t}`}function Rt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Vt(e,o,n)}),r}const Yh="$$material";function lt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function HY(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ESe=/^((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)-.*))$/,TSe=HY(function(e){return ESe.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function kSe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Li(xy,--us):0,U0--,Zo===10&&(U0=1,AE--),Zo}function $s(){return Zo=us2||ew(Zo)>3?"":" "}function USe(e,t){for(;--t&&$s()&&!(Zo<48||Zo>102||Zo>57&&Zo<65||Zo>70&&Zo<97););return Zw(e,AC()+(t<6&&sc()==32&&$s()==32))}function $O(e){for(;$s();)switch(Zo){case e:return us;case 34:case 39:e!==34&&e!==39&&$O(Zo);break;case 40:e===41&&$O(e);break;case 92:$s();break}return us}function jSe(e,t){for(;$s()&&e+Zo!==47+10;)if(e+Zo===42+42&&sc()===47)break;return"/*"+Zw(t,us-1)+"*"+CE(e===47?e:$s())}function WSe(e){for(;!ew(sc());)$s();return Zw(e,us)}function zSe(e){return JY(EC("",null,null,null,[""],e=GY(e),0,[0],e))}function EC(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,g=0,m=0,y=1,v=1,x=1,w=0,I="",_=o,R=i,U=r,D=I;v;)switch(m=w,w=$s()){case 40:if(m!=108&&Li(D,f-1)==58){BO(D+=xr(_C(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:D+=_C(w);break;case 9:case 10:case 13:case 32:D+=NSe(m);break;case 92:D+=USe(AC()-1,7);continue;case 47:switch(sc()){case 42:case 47:kx(VSe(jSe($s(),AC()),t,n),l);break;default:D+="/"}break;case 123*y:s[u++]=Hu(D)*x;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:g>0&&Hu(D)-f&&kx(g>32?n9(D+";",r,n,f-1):n9(xr(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(kx(U=t9(D,t,n,u,c,o,s,I,_=[],R=[],f),i),w===123)if(c===0)EC(D,t,U,U,_,i,f,s,R);else switch(p===99&&Li(D,3)===110?100:p){case 100:case 109:case 115:EC(e,U,U,r&&kx(t9(e,U,U,0,0,o,s,I,o,_=[],f),R),o,R,f,s,r?_:R);break;default:EC(D,U,U,U,[""],R,0,s,R)}}u=c=g=0,y=x=1,I=D="",f=a;break;case 58:f=1+Hu(D),g=m;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&FSe()==125)continue}switch(D+=CE(w),w*y){case 38:x=c>0?1:(D+="\f",-1);break;case 44:s[u++]=(Hu(D)-1)*x,x=1;break;case 64:sc()===45&&(D+=_C($s())),p=sc(),c=f=Hu(I=D+=WSe(AC())),w++;break;case 45:m===45&&Hu(D)==2&&(y=0)}}return i}function t9(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],g=G6(p),m=0,y=0,v=0;m0?p[x]+" "+w:xr(w,/&\f/g,p[x])))&&(l[v++]=I);return _E(e,t,n,o===0?K6:s,l,u,c)}function VSe(e,t,n){return _E(e,t,n,qY,CE(LSe()),Zb(e,2,-2),0)}function n9(e,t,n,r){return _E(e,t,n,Y6,Zb(e,0,r),Zb(e,r+1,-1),r)}function b0(e,t){for(var n="",r=G6(e),o=0;o6)switch(Li(e,t+1)){case 109:if(Li(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+mr+"$2-$3$1"+xA+(Li(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~BO(e,"stretch")?XY(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Li(e,t+1)!==115)break;case 6444:switch(Li(e,Hu(e)-3-(~BO(e,"!important")&&10))){case 107:return xr(e,":",":"+mr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mr+(Li(e,14)===45?"inline-":"")+"box$3$1"+mr+"$2$3$1"+na+"$2box$3")+e}break;case 5936:switch(Li(e,t+11)){case 114:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mr+e+na+e+e}return e}var ZSe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Y6:t.return=XY(t.value,t.length);break;case QY:return b0([Qv(t,{value:xr(t.value,"@","@"+mr)})],o);case K6:if(t.length)return $Se(t.props,function(i){switch(BSe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return b0([Qv(t,{props:[xr(i,/:(read-\w+)/,":"+xA+"$1")]})],o);case"::placeholder":return b0([Qv(t,{props:[xr(i,/:(plac\w+)/,":"+mr+"input-$1")]}),Qv(t,{props:[xr(i,/:(plac\w+)/,":"+xA+"$1")]}),Qv(t,{props:[xr(i,/:(plac\w+)/,na+"input-$1")]})],o)}return""})}},e2e=[ZSe],t2e=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||e2e,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),x=1;xn==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Xb(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function CC(e,t){return M.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function gi(e){return e&&e.ownerDocument||document}function Id(e){return gi(e).defaultView||window}function DO(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const hSe=typeof window<"u"?M.useLayoutEffect:M.useEffect,pa=hSe;let G7=0;function gSe(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(G7+=1,n(`mui-${G7}`))},[t]),r}const J7=zh["useId"];function Xw(e){if(J7!==void 0){const t=J7();return e??t}return gSe(e)}function ls({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=M.useRef(e!==void 0),[i,a]=M.useState(t),s=o?e:i,l=M.useCallback(u=>{o||a(u)},[]);return[s,l]}function Or(e){const t=M.useRef(e);return pa(()=>{t.current=e}),M.useCallback((...n)=>(0,t.current)(...n),[])}function so(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{DO(n,t)})},e)}let xE=!0,BO=!1,X7;const mSe={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function ySe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&mSe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function vSe(e){e.metaKey||e.altKey||e.ctrlKey||(xE=!0)}function K3(){xE=!1}function bSe(){this.visibilityState==="hidden"&&BO&&(xE=!0)}function wSe(e){e.addEventListener("keydown",vSe,!0),e.addEventListener("mousedown",K3,!0),e.addEventListener("pointerdown",K3,!0),e.addEventListener("touchstart",K3,!0),e.addEventListener("visibilitychange",bSe,!0)}function SSe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return xE||ySe(t)}function Q6(){const e=M.useCallback(o=>{o!=null&&wSe(o.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(BO=!0,window.clearTimeout(X7),X7=window.setTimeout(()=>{BO=!1},100),t.current=!1,!0):!1}function r(o){return SSe(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function WY(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Im;function zY(){if(Im)return Im;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),Im="reverse",e.scrollLeft>0?Im="default":(e.scrollLeft=1,e.scrollLeft===0&&(Im="negative")),document.body.removeChild(e),Im}function Z7(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(zY()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}function K6(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=Q({},i),Object.keys(o).forEach(a=>{n[r][a]=K6(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Ut(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const e9=e=>e,xSe=()=>{let e=e9;return{configure(t){e=t},generate(t){return e(t)},reset(){e=e9}}},CSe=xSe(),VY=CSe,ASe={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Vt(e,t,n="Mui"){const r=ASe[t];return r?`${n}-${r}`:`${VY.generate(e)}-${t}`}function Rt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Vt(e,o,n)}),r}const Yh="$$material";function lt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}function HY(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var _Se=/^((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)-.*))$/,ESe=HY(function(e){return _Se.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function TSe(e){if(e.sheet)return e.sheet;for(var t=0;t0?Li(xy,--us):0,U0--,Zo===10&&(U0=1,AE--),Zo}function $s(){return Zo=us2||ew(Zo)>3?"":" "}function NSe(e,t){for(;--t&&$s()&&!(Zo<48||Zo>102||Zo>57&&Zo<65||Zo>70&&Zo<97););return Zw(e,AC()+(t<6&&lc()==32&&$s()==32))}function LO(e){for(;$s();)switch(Zo){case e:return us;case 34:case 39:e!==34&&e!==39&&LO(Zo);break;case 40:e===41&&LO(e);break;case 92:$s();break}return us}function USe(e,t){for(;$s()&&e+Zo!==47+10;)if(e+Zo===42+42&&lc()===47)break;return"/*"+Zw(t,us-1)+"*"+CE(e===47?e:$s())}function jSe(e){for(;!ew(lc());)$s();return Zw(e,us)}function WSe(e){return JY(EC("",null,null,null,[""],e=GY(e),0,[0],e))}function EC(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,f=a,p=0,g=0,m=0,y=1,v=1,x=1,w=0,I="",_=o,R=i,U=r,D=I;v;)switch(m=w,w=$s()){case 40:if(m!=108&&Li(D,f-1)==58){$O(D+=xr(_C(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:D+=_C(w);break;case 9:case 10:case 13:case 32:D+=FSe(m);break;case 92:D+=NSe(AC()-1,7);continue;case 47:switch(lc()){case 42:case 47:k2(zSe(USe($s(),AC()),t,n),l);break;default:D+="/"}break;case 123*y:s[u++]=qu(D)*x;case 125*y:case 59:case 0:switch(w){case 0:case 125:v=0;case 59+c:g>0&&qu(D)-f&&k2(g>32?n9(D+";",r,n,f-1):n9(xr(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(k2(U=t9(D,t,n,u,c,o,s,I,_=[],R=[],f),i),w===123)if(c===0)EC(D,t,U,U,_,i,f,s,R);else switch(p===99&&Li(D,3)===110?100:p){case 100:case 109:case 115:EC(e,U,U,r&&k2(t9(e,U,U,0,0,o,s,I,o,_=[],f),R),o,R,f,s,r?_:R);break;default:EC(D,U,U,U,[""],R,0,s,R)}}u=c=g=0,y=x=1,I=D="",f=a;break;case 58:f=1+qu(D),g=m;default:if(y<1){if(w==123)--y;else if(w==125&&y++==0&&LSe()==125)continue}switch(D+=CE(w),w*y){case 38:x=c>0?1:(D+="\f",-1);break;case 44:s[u++]=(qu(D)-1)*x,x=1;break;case 64:lc()===45&&(D+=_C($s())),p=lc(),c=f=qu(I=D+=jSe(AC())),w++;break;case 45:m===45&&qu(D)==2&&(y=0)}}return i}function t9(e,t,n,r,o,i,a,s,l,u,c){for(var f=o-1,p=o===0?i:[""],g=J6(p),m=0,y=0,v=0;m0?p[x]+" "+w:xr(w,/&\f/g,p[x])))&&(l[v++]=I);return _E(e,t,n,o===0?Y6:s,l,u,c)}function zSe(e,t,n){return _E(e,t,n,qY,CE($Se()),Zb(e,2,-2),0)}function n9(e,t,n,r){return _E(e,t,n,G6,Zb(e,0,r),Zb(e,r+1,-1),r)}function b0(e,t){for(var n="",r=J6(e),o=0;o6)switch(Li(e,t+1)){case 109:if(Li(e,t+4)!==45)break;case 102:return xr(e,/(.+:)(.+)-([^]+)/,"$1"+mr+"$2-$3$1"+xA+(Li(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$O(e,"stretch")?XY(xr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Li(e,t+1)!==115)break;case 6444:switch(Li(e,qu(e)-3-(~$O(e,"!important")&&10))){case 107:return xr(e,":",":"+mr)+e;case 101:return xr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mr+(Li(e,14)===45?"inline-":"")+"box$3$1"+mr+"$2$3$1"+na+"$2box$3")+e}break;case 5936:switch(Li(e,t+11)){case 114:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mr+e+na+xr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mr+e+na+e+e}return e}var XSe=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case G6:t.return=XY(t.value,t.length);break;case QY:return b0([Qv(t,{value:xr(t.value,"@","@"+mr)})],o);case Y6:if(t.length)return BSe(t.props,function(i){switch(DSe(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return b0([Qv(t,{props:[xr(i,/:(read-\w+)/,":"+xA+"$1")]})],o);case"::placeholder":return b0([Qv(t,{props:[xr(i,/:(plac\w+)/,":"+mr+"input-$1")]}),Qv(t,{props:[xr(i,/:(plac\w+)/,":"+xA+"$1")]}),Qv(t,{props:[xr(i,/:(plac\w+)/,na+"input-$1")]})],o)}return""})}},ZSe=[XSe],exe=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||ZSe,i={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),x=1;x=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var p2e={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},h2e=/[A-Z]|^ms/g,g2e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oG=function(t){return t.charCodeAt(1)===45},o9=function(t){return t!=null&&typeof t!="boolean"},K3=HY(function(e){return oG(e)?e:e.replace(h2e,"-$&").toLowerCase()}),i9=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(g2e,function(r,o,i){return qu={name:o,styles:i,next:qu},o})}return p2e[t]!==1&&!oG(t)&&typeof n=="number"&&n!==0?n+"px":n};function tw(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return qu={name:n.name,styles:n.styles,next:qu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)qu={name:r.name,styles:r.styles,next:qu},r=r.next;var o=n.styles+";";return o}return m2e(e,t,n)}case"function":{if(e!==void 0){var i=qu,a=n(e);return qu=i,tw(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function m2e(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?w2e:S2e},u9=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},x2e=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return nG(n,r,o),v2e(function(){return rG(n,r,o)}),null},C2e=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u9(t,n,r),l=s||l9(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,g=1;gt(T2e(o)?n:o):t})}/** + */var Mi=typeof Symbol=="function"&&Symbol.for,X6=Mi?Symbol.for("react.element"):60103,Z6=Mi?Symbol.for("react.portal"):60106,EE=Mi?Symbol.for("react.fragment"):60107,TE=Mi?Symbol.for("react.strict_mode"):60108,kE=Mi?Symbol.for("react.profiler"):60114,IE=Mi?Symbol.for("react.provider"):60109,PE=Mi?Symbol.for("react.context"):60110,eD=Mi?Symbol.for("react.async_mode"):60111,ME=Mi?Symbol.for("react.concurrent_mode"):60111,OE=Mi?Symbol.for("react.forward_ref"):60112,RE=Mi?Symbol.for("react.suspense"):60113,nxe=Mi?Symbol.for("react.suspense_list"):60120,DE=Mi?Symbol.for("react.memo"):60115,BE=Mi?Symbol.for("react.lazy"):60116,rxe=Mi?Symbol.for("react.block"):60121,oxe=Mi?Symbol.for("react.fundamental"):60117,ixe=Mi?Symbol.for("react.responder"):60118,axe=Mi?Symbol.for("react.scope"):60119;function qs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case X6:switch(e=e.type,e){case eD:case ME:case EE:case kE:case TE:case RE:return e;default:switch(e=e&&e.$$typeof,e){case PE:case OE:case BE:case DE:case IE:return e;default:return t}}case Z6:return t}}}function ZY(e){return qs(e)===ME}Lr.AsyncMode=eD;Lr.ConcurrentMode=ME;Lr.ContextConsumer=PE;Lr.ContextProvider=IE;Lr.Element=X6;Lr.ForwardRef=OE;Lr.Fragment=EE;Lr.Lazy=BE;Lr.Memo=DE;Lr.Portal=Z6;Lr.Profiler=kE;Lr.StrictMode=TE;Lr.Suspense=RE;Lr.isAsyncMode=function(e){return ZY(e)||qs(e)===eD};Lr.isConcurrentMode=ZY;Lr.isContextConsumer=function(e){return qs(e)===PE};Lr.isContextProvider=function(e){return qs(e)===IE};Lr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===X6};Lr.isForwardRef=function(e){return qs(e)===OE};Lr.isFragment=function(e){return qs(e)===EE};Lr.isLazy=function(e){return qs(e)===BE};Lr.isMemo=function(e){return qs(e)===DE};Lr.isPortal=function(e){return qs(e)===Z6};Lr.isProfiler=function(e){return qs(e)===kE};Lr.isStrictMode=function(e){return qs(e)===TE};Lr.isSuspense=function(e){return qs(e)===RE};Lr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===EE||e===ME||e===kE||e===TE||e===RE||e===nxe||typeof e=="object"&&e!==null&&(e.$$typeof===BE||e.$$typeof===DE||e.$$typeof===IE||e.$$typeof===PE||e.$$typeof===OE||e.$$typeof===oxe||e.$$typeof===ixe||e.$$typeof===axe||e.$$typeof===rxe)};Lr.typeOf=qs;(function(e){e.exports=Lr})(txe);var eG=FO,sxe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lxe={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},tG={};tG[eG.ForwardRef]=sxe;tG[eG.Memo]=lxe;var uxe=!0;function cxe(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var nG=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||uxe===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},rG=function(t,n,r){nG(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function dxe(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fxe={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},pxe=/[A-Z]|^ms/g,hxe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oG=function(t){return t.charCodeAt(1)===45},o9=function(t){return t!=null&&typeof t!="boolean"},Y3=HY(function(e){return oG(e)?e:e.replace(pxe,"-$&").toLowerCase()}),i9=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(hxe,function(r,o,i){return Qu={name:o,styles:i,next:Qu},o})}return fxe[t]!==1&&!oG(t)&&typeof n=="number"&&n!==0?n+"px":n};function tw(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Qu={name:n.name,styles:n.styles,next:Qu},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Qu={name:r.name,styles:r.styles,next:Qu},r=r.next;var o=n.styles+";";return o}return gxe(e,t,n)}case"function":{if(e!==void 0){var i=Qu,a=n(e);return Qu=i,tw(e,t,a)}break}}if(t==null)return n;var s=t[n];return s!==void 0?s:n}function gxe(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?bxe:wxe},u9=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},Sxe=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return nG(n,r,o),yxe(function(){return rG(n,r,o)}),null},xxe=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var s=u9(t,n,r),l=s||l9(o),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var p=c.length,g=1;gt(Exe(o)?n:o):t})}/** * @mui/styled-engine v5.12.0 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function lG(e,t){return E2e(e,t)}const I2e=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},P2e=["values","unit","step"],M2e=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function O2e(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=lt(e,P2e),i=M2e(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const m=a.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:g)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${tD[e]}px)`};function Dl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||c9;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||c9;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||tD).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function B2e(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function $2e(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function L2e(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function LE({values:e,breakpoints:t,base:n}){const r=n||L2e(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function j0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function CA(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=j0(e,n)||r,t&&(o=t(o,r,e)),o}function _r(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=j0(l,r)||{};return Dl(a,s,f=>{let p=CA(u,o,f);return f===p&&typeof f=="string"&&(p=CA(u,o,`${t}${f==="default"?"":dt(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function F2e(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const N2e={m:"margin",p:"padding"},U2e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d9={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j2e=F2e(e=>{if(e.length>2)if(d9[e])e=d9[e];else return[e];const[t,n]=e.split(""),r=N2e[t],o=U2e[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),nD=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],rD=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nD,...rD];function eS(e,t,n,r){var o;const i=(o=j0(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function uG(e){return eS(e,"spacing",8)}function tS(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function W2e(e,t){return n=>e.reduce((r,o)=>(r[o]=tS(t,n),r),{})}function z2e(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=j2e(n),i=W2e(o,r),a=e[n];return Dl(e,a,i)}function cG(e,t){const n=uG(e.theme);return Object.keys(e).map(r=>z2e(e,t,r,n)).reduce(lb,{})}function Oo(e){return cG(e,nD)}Oo.propTypes={};Oo.filterProps=nD;function Ro(e){return cG(e,rD)}Ro.propTypes={};Ro.filterProps=rD;function V2e(e=8){if(e.mui)return e;const t=uG({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function FE(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?lb(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Gu(e){return typeof e!="number"?e:`${e}px solid`}const H2e=_r({prop:"border",themeKey:"borders",transform:Gu}),q2e=_r({prop:"borderTop",themeKey:"borders",transform:Gu}),Q2e=_r({prop:"borderRight",themeKey:"borders",transform:Gu}),K2e=_r({prop:"borderBottom",themeKey:"borders",transform:Gu}),Y2e=_r({prop:"borderLeft",themeKey:"borders",transform:Gu}),G2e=_r({prop:"borderColor",themeKey:"palette"}),J2e=_r({prop:"borderTopColor",themeKey:"palette"}),X2e=_r({prop:"borderRightColor",themeKey:"palette"}),Z2e=_r({prop:"borderBottomColor",themeKey:"palette"}),exe=_r({prop:"borderLeftColor",themeKey:"palette"}),NE=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=eS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tS(t,r)});return Dl(e,e.borderRadius,n)}return null};NE.propTypes={};NE.filterProps=["borderRadius"];FE(H2e,q2e,Q2e,K2e,Y2e,G2e,J2e,X2e,Z2e,exe,NE);const UE=e=>{if(e.gap!==void 0&&e.gap!==null){const t=eS(e.theme,"spacing",8),n=r=>({gap:tS(t,r)});return Dl(e,e.gap,n)}return null};UE.propTypes={};UE.filterProps=["gap"];const jE=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=eS(e.theme,"spacing",8),n=r=>({columnGap:tS(t,r)});return Dl(e,e.columnGap,n)}return null};jE.propTypes={};jE.filterProps=["columnGap"];const WE=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=eS(e.theme,"spacing",8),n=r=>({rowGap:tS(t,r)});return Dl(e,e.rowGap,n)}return null};WE.propTypes={};WE.filterProps=["rowGap"];const txe=_r({prop:"gridColumn"}),nxe=_r({prop:"gridRow"}),rxe=_r({prop:"gridAutoFlow"}),oxe=_r({prop:"gridAutoColumns"}),ixe=_r({prop:"gridAutoRows"}),axe=_r({prop:"gridTemplateColumns"}),sxe=_r({prop:"gridTemplateRows"}),lxe=_r({prop:"gridTemplateAreas"}),uxe=_r({prop:"gridArea"});FE(UE,jE,WE,txe,nxe,rxe,oxe,ixe,axe,sxe,lxe,uxe);function w0(e,t){return t==="grey"?t:e}const cxe=_r({prop:"color",themeKey:"palette",transform:w0}),dxe=_r({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w0}),fxe=_r({prop:"backgroundColor",themeKey:"palette",transform:w0});FE(cxe,dxe,fxe);function Ps(e){return e<=1&&e!==0?`${e*100}%`:e}const pxe=_r({prop:"width",transform:Ps}),oD=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||tD[n]||Ps(n)}};return Dl(e,e.maxWidth,t)}return null};oD.filterProps=["maxWidth"];const hxe=_r({prop:"minWidth",transform:Ps}),gxe=_r({prop:"height",transform:Ps}),mxe=_r({prop:"maxHeight",transform:Ps}),yxe=_r({prop:"minHeight",transform:Ps});_r({prop:"size",cssProperty:"width",transform:Ps});_r({prop:"size",cssProperty:"height",transform:Ps});const vxe=_r({prop:"boxSizing"});FE(pxe,oD,hxe,gxe,mxe,yxe,vxe);const bxe={border:{themeKey:"borders",transform:Gu},borderTop:{themeKey:"borders",transform:Gu},borderRight:{themeKey:"borders",transform:Gu},borderBottom:{themeKey:"borders",transform:Gu},borderLeft:{themeKey:"borders",transform:Gu},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:NE},color:{themeKey:"palette",transform:w0},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w0},backgroundColor:{themeKey:"palette",transform:w0},p:{style:Ro},pt:{style:Ro},pr:{style:Ro},pb:{style:Ro},pl:{style:Ro},px:{style:Ro},py:{style:Ro},padding:{style:Ro},paddingTop:{style:Ro},paddingRight:{style:Ro},paddingBottom:{style:Ro},paddingLeft:{style:Ro},paddingX:{style:Ro},paddingY:{style:Ro},paddingInline:{style:Ro},paddingInlineStart:{style:Ro},paddingInlineEnd:{style:Ro},paddingBlock:{style:Ro},paddingBlockStart:{style:Ro},paddingBlockEnd:{style:Ro},m:{style:Oo},mt:{style:Oo},mr:{style:Oo},mb:{style:Oo},ml:{style:Oo},mx:{style:Oo},my:{style:Oo},margin:{style:Oo},marginTop:{style:Oo},marginRight:{style:Oo},marginBottom:{style:Oo},marginLeft:{style:Oo},marginX:{style:Oo},marginY:{style:Oo},marginInline:{style:Oo},marginInlineStart:{style:Oo},marginInlineEnd:{style:Oo},marginBlock:{style:Oo},marginBlockStart:{style:Oo},marginBlockEnd:{style:Oo},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:UE},rowGap:{style:WE},columnGap:{style:jE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ps},maxWidth:{style:oD},minWidth:{transform:Ps},height:{transform:Ps},maxHeight:{transform:Ps},minHeight:{transform:Ps},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},zE=bxe;function wxe(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Sxe(e,t){return typeof e=="function"?e(t):e}function xxe(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=j0(o,u)||{};return f?f(a):Dl(a,r,m=>{let y=CA(p,c,m);return m===y&&typeof m=="string"&&(y=CA(p,c,`${n}${m==="default"?"":dt(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:zE;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=B2e(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(g=>{const m=Sxe(u[g],i);if(m!=null)if(typeof m=="object")if(a[g])p=lb(p,e(g,m,i,a));else{const y=Dl({theme:i},m,v=>({[g]:v}));wxe(y,m)?p[g]=t({sx:m,theme:i}):p=lb(p,y)}else p=lb(p,e(g,m,i,a))}),$2e(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const dG=xxe();dG.filterProps=["sx"];const VE=dG,Cxe=["breakpoints","palette","spacing","shape"];function iD(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=lt(e,Cxe),s=O2e(n),l=V2e(o);let u=Tl({breakpoints:s,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},D2e,i)},a);return u=t.reduce((c,f)=>Tl(c,f),u),u.unstable_sxConfig=Q({},zE,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return VE({sx:f,theme:this})},u}function Axe(e){return Object.keys(e).length===0}function HE(e=null){const t=M.useContext($E);return!t||Axe(t)?e:t}const _xe=iD();function Cy(e=_xe){return HE(e)}function Exe({styles:e,themeId:t,defaultTheme:n={}}){const r=Cy(n),o=typeof e=="function"?e(t&&r[t]||r):e;return A(k2e,{styles:o})}const Txe=["sx"],kxe=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zE;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function aD(e){const{sx:t}=e,n=lt(e,Txe),{systemProps:r,otherProps:o}=kxe(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return vh(s)?Q({},r,s):r}:i=Q({},r,t),Q({},o,{sx:i})}function fG(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(VE);return M.forwardRef(function(l,u){const c=Cy(n),f=aD(l),{className:p,component:g="div"}=f,m=lt(f,Ixe);return A(i,Q({as:g,ref:u,className:vt(p,o?o(r):r),theme:t&&c[t]||c},m))})}const Pxe=pG(),Wd=Pxe,Mxe=["variant"];function f9(e){return e.length===0}function hG(e){const{variant:t}=e,n=lt(e,Mxe);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=f9(r)?e[o]:dt(e[o]):r+=`${f9(r)?o:dt(o)}${dt(e[o].toString())}`}),r}const Oxe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rxe(e){return Object.keys(e).length===0}function Dxe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Bxe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,$xe=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=hG(o.props);r[i]=o.style}),r},Lxe=(e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return l&&l.forEach(u=>{let c=!0;Object.keys(u.props).forEach(f=>{a[f]!==u.props[f]&&e[f]!==u.props[f]&&(c=!1)}),c&&s.push(t[hG(u.props)])}),s};function ub(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Fxe=iD();function Kv({defaultTheme:e,theme:t,themeId:n}){return Rxe(t)?e:t[n]||t}function Nxe(e={}){const{themeId:t,defaultTheme:n=Fxe,rootShouldForwardProp:r=ub,slotShouldForwardProp:o=ub}=e,i=a=>VE(Q({},a,{theme:Kv(Q({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{I2e(a,_=>_.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p}=s,g=lt(s,Oxe),m=c!==void 0?c:u&&u!=="Root"||!1,y=f||!1;let v,x=ub;u==="Root"?x=r:u?x=o:Dxe(a)&&(x=void 0);const w=lG(a,Q({shouldForwardProp:x,label:v},g)),I=(_,...R)=>{const U=R?R.map(C=>typeof C=="function"&&C.__emotion_real!==C?O=>C(Q({},O,{theme:Kv(Q({},O,{defaultTheme:n,themeId:t}))})):C):[];let D=_;l&&p&&U.push(C=>{const O=Kv(Q({},C,{defaultTheme:n,themeId:t})),$=Bxe(l,O);if($){const j={};return Object.entries($).forEach(([L,B])=>{j[L]=typeof B=="function"?B(Q({},C,{theme:O})):B}),p(C,j)}return null}),l&&!m&&U.push(C=>{const O=Kv(Q({},C,{defaultTheme:n,themeId:t}));return Lxe(C,$xe(l,O),O,l)}),y||U.push(i);const b=U.length-R.length;if(Array.isArray(_)&&b>0){const C=new Array(b).fill("");D=[..._,...C],D.raw=[..._.raw,...C]}else typeof _=="function"&&_.__emotion_real!==_&&(D=C=>_(Q({},C,{theme:Kv(Q({},C,{defaultTheme:n,themeId:t}))})));const T=w(D,...U);return a.muiName&&(T.muiName=a.muiName),T};return w.withConfig&&(I.withConfig=w.withConfig),I}}function gG(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Q6(t.components[n].defaultProps,r)}function Uxe({props:e,name:t,defaultTheme:n,themeId:r}){let o=Cy(n);return r&&(o=o[r]||o),gG({theme:o,name:t,props:e})}function sD(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function jxe(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gh(e){if(e.type)return e;if(e.charAt(0)==="#")return Gh(jxe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(lp(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(lp(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function qE(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Wxe(e){e=Gh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),qE({type:s,values:l})}function p9(e){e=Gh(e);let t=e.type==="hsl"||e.type==="hsla"?Gh(Wxe(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zxe(e,t){const n=p9(e),r=p9(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ln(e,t){return e=Gh(e),t=sD(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qE(e)}function AA(e,t){if(e=Gh(e),t=sD(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qE(e)}function _A(e,t){if(e=Gh(e),t=sD(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qE(e)}const Vxe=M.createContext(null),mG=Vxe;function yG(){return M.useContext(mG)}const Hxe=typeof Symbol=="function"&&Symbol.for,qxe=Hxe?Symbol.for("mui.nested"):"__THEME_NESTED__";function Qxe(e,t){return typeof t=="function"?t(e):Q({},e,t)}function Kxe(e){const{children:t,theme:n}=e,r=yG(),o=M.useMemo(()=>{const i=r===null?n:Qxe(r,n);return i!=null&&(i[qxe]=r!==null),i},[n,r]);return A(mG.Provider,{value:o,children:t})}const h9={};function g9(e,t,n,r=!1){return M.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?Q({},t,{[e]:i}):i;return r?()=>a:a}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function Yxe(e){const{children:t,theme:n,themeId:r}=e,o=HE(h9),i=yG()||h9,a=g9(r,o,n),s=g9(r,i,n,!0);return A(Kxe,{theme:s,children:A($E.Provider,{value:a,children:t})})}function Gxe(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Jxe=["mode","contrastThreshold","tonalOffset"],m9={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jb.white,default:Jb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Y3={text:{primary:Jb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Jb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y9(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_A(e.main,o):t==="dark"&&(e.dark=AA(e.main,i)))}function Xxe(e="light"){return e==="dark"?{main:Em[200],light:Em[50],dark:Em[400]}:{main:Em[700],light:Em[400],dark:Em[800]}}function Zxe(e="light"){return e==="dark"?{main:_m[200],light:_m[50],dark:_m[400]}:{main:_m[500],light:_m[300],dark:_m[700]}}function eCe(e="light"){return e==="dark"?{main:Am[500],light:Am[300],dark:Am[700]}:{main:Am[700],light:Am[400],dark:Am[800]}}function tCe(e="light"){return e==="dark"?{main:Tm[400],light:Tm[300],dark:Tm[700]}:{main:Tm[700],light:Tm[500],dark:Tm[900]}}function nCe(e="light"){return e==="dark"?{main:km[400],light:km[300],dark:km[700]}:{main:km[800],light:km[500],dark:km[900]}}function rCe(e="light"){return e==="dark"?{main:qv[400],light:qv[300],dark:qv[700]}:{main:"#ed6c02",light:qv[500],dark:qv[900]}}function oCe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lt(e,Jxe),i=e.primary||Xxe(t),a=e.secondary||Zxe(t),s=e.error||eCe(t),l=e.info||tCe(t),u=e.success||nCe(t),c=e.warning||rCe(t);function f(y){return zxe(y,Y3.text.primary)>=n?Y3.text.primary:m9.text.primary}const p=({color:y,name:v,mainShade:x=500,lightShade:w=300,darkShade:I=700})=>{if(y=Q({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(lp(11,v?` (${v})`:"",x));if(typeof y.main!="string")throw new Error(lp(12,v?` (${v})`:"",JSON.stringify(y.main)));return y9(y,"light",w,r),y9(y,"dark",I,r),y.contrastText||(y.contrastText=f(y.main)),y},g={dark:Y3,light:m9};return Tl(Q({common:Q({},Jb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:aSe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),o)}const iCe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function aCe(e){return Math.round(e*1e5)/1e5}const v9={textTransform:"uppercase"},b9='"Roboto", "Helvetica", "Arial", sans-serif';function sCe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=b9,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=lt(n,iCe),g=o/14,m=f||(x=>`${x/u*g}rem`),y=(x,w,I,_,R)=>Q({fontFamily:r,fontWeight:x,fontSize:m(w),lineHeight:I},r===b9?{letterSpacing:`${aCe(_/w)}em`}:{},R,c),v={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,v9),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,v9),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tl(Q({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),p,{clone:!1})}const lCe=.2,uCe=.14,cCe=.12;function po(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lCe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uCe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cCe})`].join(",")}const dCe=["none",po(0,2,1,-1,0,1,1,0,0,1,3,0),po(0,3,1,-2,0,2,2,0,0,1,5,0),po(0,3,3,-2,0,3,4,0,0,1,8,0),po(0,2,4,-1,0,4,5,0,0,1,10,0),po(0,3,5,-1,0,5,8,0,0,1,14,0),po(0,3,5,-1,0,6,10,0,0,1,18,0),po(0,4,5,-2,0,7,10,1,0,2,16,1),po(0,5,5,-3,0,8,10,1,0,3,14,2),po(0,5,6,-3,0,9,12,1,0,3,16,2),po(0,6,6,-3,0,10,14,1,0,4,18,3),po(0,6,7,-4,0,11,15,1,0,4,20,3),po(0,7,8,-4,0,12,17,2,0,5,22,4),po(0,7,8,-4,0,13,19,2,0,5,24,4),po(0,7,9,-4,0,14,21,2,0,5,26,4),po(0,8,9,-5,0,15,22,2,0,6,28,5),po(0,8,10,-5,0,16,24,2,0,6,30,5),po(0,8,11,-5,0,17,26,2,0,6,32,5),po(0,9,11,-5,0,18,28,2,0,7,34,6),po(0,9,12,-6,0,19,29,2,0,7,36,6),po(0,10,13,-6,0,20,31,3,0,8,38,7),po(0,10,13,-6,0,21,33,3,0,8,40,7),po(0,10,14,-6,0,22,35,3,0,8,42,7),po(0,11,14,-7,0,23,36,3,0,9,44,8),po(0,11,15,-7,0,24,38,3,0,9,46,8)],fCe=dCe,pCe=["duration","easing","delay"],hCe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},gCe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w9(e){return`${Math.round(e)}ms`}function mCe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function yCe(e){const t=Q({},hCe,e.easing),n=Q({},gCe,e.duration);return Q({getAutoHeightDuration:mCe,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return lt(i,pCe),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:w9(a)} ${s} ${typeof l=="string"?l:w9(l)}`).join(",")}},e,{easing:t,duration:n})}const vCe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},bCe=vCe,wCe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function QE(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=lt(e,wCe);if(e.vars)throw new Error(lp(18));const s=oCe(r),l=iD(e);let u=Tl(l,{mixins:Gxe(l.breakpoints,n),palette:s,shadows:fCe.slice(),typography:sCe(s,i),transitions:yCe(o),zIndex:Q({},bCe)});return u=Tl(u,a),u=t.reduce((c,f)=>Tl(c,f),u),u.unstable_sxConfig=Q({},zE,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return VE({sx:f,theme:this})},u}function SCe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function xCe(e){return parseFloat(e)}const CCe=QE(),KE=CCe;function Fo(){const e=Cy(KE);return e[Yh]||e}function Bt({props:e,name:t}){return Uxe({props:e,name:t,defaultTheme:KE,themeId:Yh})}const Ul=e=>ub(e)&&e!=="classes",ACe=ub,_Ce=Nxe({themeId:Yh,defaultTheme:KE,rootShouldForwardProp:Ul}),J=_Ce,ECe=["theme"];function TCe(e){let{theme:t}=e,n=lt(e,ECe);const r=t[Yh];return A(Yxe,Q({},n,{themeId:r?Yh:void 0,theme:r||t}))}const kCe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},S9=kCe;function W0(e){return typeof e=="string"}function Q1(e,t,n){return e===void 0||W0(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}const ICe={disableDefaultClasses:!1},PCe=M.createContext(ICe);function vG(e){const{disableDefaultClasses:t}=M.useContext(PCe);return n=>t?"":e(n)}function MCe(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nw(e,t){return typeof e=="function"?e(t):e}function x9(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function OCe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=vt(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),m=Q({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=Q({},n,o,r);return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=MCe(Q({},o,r)),s=x9(r),l=x9(o),u=t(a),c=vt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=Q({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=Q({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const RCe=["elementType","externalSlotProps","ownerState"];function vo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=lt(e,RCe),a=nw(r,o),{props:s,internalRef:l}=OCe(Q({},i,{externalSlotProps:a})),u=so(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Q1(n,Q({},s,{ref:u}),o)}const DCe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BCe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function $Ce(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function LCe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$Ce(e))}function FCe(e){const t=[],n=[];return Array.from(e.querySelectorAll(DCe)).forEach((r,o)=>{const i=BCe(r);i===-1||!LCe(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function NCe(){return!0}function bG(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=FCe,isEnabled:a=NCe,open:s}=e,l=M.useRef(!1),u=M.useRef(null),c=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),m=M.useRef(null),y=so(t.ref,m),v=M.useRef(null);M.useEffect(()=>{!s||!m.current||(g.current=!n)},[n,s]),M.useEffect(()=>{if(!s||!m.current)return;const I=gi(m.current);return m.current.contains(I.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),M.useEffect(()=>{if(!s||!m.current)return;const I=gi(m.current),_=D=>{const{current:b}=m;if(b!==null){if(!I.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!b.contains(I.activeElement)){if(D&&p.current!==D.target||I.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((I.activeElement===u.current||I.activeElement===c.current)&&(O=i(m.current)),O.length>0){var T,C;const $=!!((T=v.current)!=null&&T.shiftKey&&((C=v.current)==null?void 0:C.key)==="Tab"),j=O[0],L=O[O.length-1];typeof j!="string"&&typeof L!="string"&&($?L.focus():j.focus())}else b.focus()}}},R=D=>{v.current=D,!(r||!a()||D.key!=="Tab")&&I.activeElement===m.current&&D.shiftKey&&(l.current=!0,c.current&&c.current.focus())};I.addEventListener("focusin",_),I.addEventListener("keydown",R,!0);const U=setInterval(()=>{I.activeElement&&I.activeElement.tagName==="BODY"&&_(null)},50);return()=>{clearInterval(U),I.removeEventListener("focusin",_),I.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const x=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0,p.current=I.target;const _=t.props.onFocus;_&&_(I)},w=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0};return Se(M.Fragment,{children:[A("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:y,onFocus:x}),A("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var as="top",Bl="bottom",$l="right",ss="left",lD="auto",nS=[as,Bl,$l,ss],z0="start",rw="end",UCe="clippingParents",wG="viewport",Yv="popper",jCe="reference",C9=nS.reduce(function(e,t){return e.concat([t+"-"+z0,t+"-"+rw])},[]),SG=[].concat(nS,[lD]).reduce(function(e,t){return e.concat([t,t+"-"+z0,t+"-"+rw])},[]),WCe="beforeRead",zCe="read",VCe="afterRead",HCe="beforeMain",qCe="main",QCe="afterMain",KCe="beforeWrite",YCe="write",GCe="afterWrite",JCe=[WCe,zCe,VCe,HCe,qCe,QCe,KCe,YCe,GCe];function hc(e){return e?(e.nodeName||"").toLowerCase():null}function Us(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jh(e){var t=Us(e).Element;return e instanceof t||e instanceof Element}function kl(e){var t=Us(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uD(e){if(typeof ShadowRoot>"u")return!1;var t=Us(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function XCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!kl(i)||!hc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function ZCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!kl(o)||!hc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const eAe={name:"applyStyles",enabled:!0,phase:"write",fn:XCe,effect:ZCe,requires:["computeStyles"]};function lc(e){return e.split("-")[0]}var Dh=Math.max,EA=Math.min,V0=Math.round;function NO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xG(){return!/^((?!chrome|android).)*safari/i.test(NO())}function H0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kl(e)&&(o=e.offsetWidth>0&&V0(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&V0(r.height)/e.offsetHeight||1);var a=Jh(e)?Us(e):window,s=a.visualViewport,l=!xG()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function cD(e){var t=H0(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function CG(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pd(e){return Us(e).getComputedStyle(e)}function tAe(e){return["table","td","th"].indexOf(hc(e))>=0}function Cp(e){return((Jh(e)?e.ownerDocument:e.document)||window.document).documentElement}function YE(e){return hc(e)==="html"?e:e.assignedSlot||e.parentNode||(uD(e)?e.host:null)||Cp(e)}function A9(e){return!kl(e)||Pd(e).position==="fixed"?null:e.offsetParent}function nAe(e){var t=/firefox/i.test(NO()),n=/Trident/i.test(NO());if(n&&kl(e)){var r=Pd(e);if(r.position==="fixed")return null}var o=YE(e);for(uD(o)&&(o=o.host);kl(o)&&["html","body"].indexOf(hc(o))<0;){var i=Pd(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function rS(e){for(var t=Us(e),n=A9(e);n&&tAe(n)&&Pd(n).position==="static";)n=A9(n);return n&&(hc(n)==="html"||hc(n)==="body"&&Pd(n).position==="static")?t:n||nAe(e)||t}function dD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e,t,n){return Dh(e,EA(t,n))}function rAe(e,t,n){var r=cb(e,t,n);return r>n?n:r}function AG(){return{top:0,right:0,bottom:0,left:0}}function _G(e){return Object.assign({},AG(),e)}function EG(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var oAe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_G(typeof t!="number"?t:EG(t,nS))};function iAe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=lc(n.placement),l=dD(s),u=[ss,$l].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=oAe(o.padding,n),p=cD(i),g=l==="y"?as:ss,m=l==="y"?Bl:$l,y=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],x=rS(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,I=y/2-v/2,_=f[g],R=w-p[c]-f[m],U=w/2-p[c]/2+I,D=cb(_,U,R),b=l;n.modifiersData[r]=(t={},t[b]=D,t.centerOffset=D-U,t)}}function aAe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CG(t.elements.popper,o)&&(t.elements.arrow=o))}const sAe={name:"arrow",enabled:!0,phase:"main",fn:iAe,effect:aAe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function q0(e){return e.split("-")[1]}var lAe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function uAe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:V0(n*o)/o||0,y:V0(r*o)/o||0}}function _9(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,g=p===void 0?0:p,m=a.y,y=m===void 0?0:m,v=typeof c=="function"?c({x:g,y}):{x:g,y};g=v.x,y=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),I=ss,_=as,R=window;if(u){var U=rS(n),D="clientHeight",b="clientWidth";if(U===Us(n)&&(U=Cp(n),Pd(U).position!=="static"&&s==="absolute"&&(D="scrollHeight",b="scrollWidth")),U=U,o===as||(o===ss||o===$l)&&i===rw){_=Bl;var T=f&&U===R&&R.visualViewport?R.visualViewport.height:U[D];y-=T-r.height,y*=l?1:-1}if(o===ss||(o===as||o===Bl)&&i===rw){I=$l;var C=f&&U===R&&R.visualViewport?R.visualViewport.width:U[b];g-=C-r.width,g*=l?1:-1}}var O=Object.assign({position:s},u&&lAe),$=c===!0?uAe({x:g,y},Us(n)):{x:g,y};if(g=$.x,y=$.y,l){var j;return Object.assign({},O,(j={},j[_]=w?"0":"",j[I]=x?"0":"",j.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",j))}return Object.assign({},O,(t={},t[_]=w?y+"px":"",t[I]=x?g+"px":"",t.transform="",t))}function cAe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:lc(t.placement),variation:q0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_9(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_9(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const dAe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:cAe,data:{}};var Ix={passive:!0};function fAe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Us(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,Ix)}),s&&l.addEventListener("resize",n.update,Ix),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Ix)}),s&&l.removeEventListener("resize",n.update,Ix)}}const pAe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:fAe,data:{}};var hAe={left:"right",right:"left",bottom:"top",top:"bottom"};function TC(e){return e.replace(/left|right|bottom|top/g,function(t){return hAe[t]})}var gAe={start:"end",end:"start"};function E9(e){return e.replace(/start|end/g,function(t){return gAe[t]})}function fD(e){var t=Us(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function pD(e){return H0(Cp(e)).left+fD(e).scrollLeft}function mAe(e,t){var n=Us(e),r=Cp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=xG();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+pD(e),y:l}}function yAe(e){var t,n=Cp(e),r=fD(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+pD(e),l=-r.scrollTop;return Pd(o||n).direction==="rtl"&&(s+=Dh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function hD(e){var t=Pd(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function TG(e){return["html","body","#document"].indexOf(hc(e))>=0?e.ownerDocument.body:kl(e)&&hD(e)?e:TG(YE(e))}function db(e,t){var n;t===void 0&&(t=[]);var r=TG(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Us(r),a=o?[i].concat(i.visualViewport||[],hD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(db(YE(a)))}function UO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function vAe(e,t){var n=H0(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function T9(e,t,n){return t===wG?UO(mAe(e,n)):Jh(t)?vAe(t,n):UO(yAe(Cp(e)))}function bAe(e){var t=db(YE(e)),n=["absolute","fixed"].indexOf(Pd(e).position)>=0,r=n&&kl(e)?rS(e):e;return Jh(r)?t.filter(function(o){return Jh(o)&&CG(o,r)&&hc(o)!=="body"}):[]}function wAe(e,t,n,r){var o=t==="clippingParents"?bAe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=T9(e,u,r);return l.top=Dh(c.top,l.top),l.right=EA(c.right,l.right),l.bottom=EA(c.bottom,l.bottom),l.left=Dh(c.left,l.left),l},T9(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kG(e){var t=e.reference,n=e.element,r=e.placement,o=r?lc(r):null,i=r?q0(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case as:l={x:a,y:t.y-n.height};break;case Bl:l={x:a,y:t.y+t.height};break;case $l:l={x:t.x+t.width,y:s};break;case ss:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?dD(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case z0:l[u]=l[u]-(t[c]/2-n[c]/2);break;case rw:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ow(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?UCe:s,u=n.rootBoundary,c=u===void 0?wG:u,f=n.elementContext,p=f===void 0?Yv:f,g=n.altBoundary,m=g===void 0?!1:g,y=n.padding,v=y===void 0?0:y,x=_G(typeof v!="number"?v:EG(v,nS)),w=p===Yv?jCe:Yv,I=e.rects.popper,_=e.elements[m?w:p],R=wAe(Jh(_)?_:_.contextElement||Cp(e.elements.popper),l,c,a),U=H0(e.elements.reference),D=kG({reference:U,element:I,strategy:"absolute",placement:o}),b=UO(Object.assign({},I,D)),T=p===Yv?b:U,C={top:R.top-T.top+x.top,bottom:T.bottom-R.bottom+x.bottom,left:R.left-T.left+x.left,right:T.right-R.right+x.right},O=e.modifiersData.offset;if(p===Yv&&O){var $=O[o];Object.keys(C).forEach(function(j){var L=[$l,Bl].indexOf(j)>=0?1:-1,B=[as,Bl].indexOf(j)>=0?"y":"x";C[j]+=$[B]*L})}return C}function SAe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?SG:l,c=q0(r),f=c?s?C9:C9.filter(function(m){return q0(m)===c}):nS,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var g=p.reduce(function(m,y){return m[y]=ow(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[lc(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function xAe(e){if(lc(e)===lD)return[];var t=TC(e);return[E9(e),t,E9(t)]}function CAe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,y=n.allowedAutoPlacements,v=t.options.placement,x=lc(v),w=x===v,I=l||(w||!m?[TC(v)]:xAe(v)),_=[v].concat(I).reduce(function(Ae,Ie){return Ae.concat(lc(Ie)===lD?SAe(t,{placement:Ie,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):Ie)},[]),R=t.rects.reference,U=t.rects.popper,D=new Map,b=!0,T=_[0],C=0;C<_.length;C++){var O=_[C],$=lc(O),j=q0(O)===z0,L=[as,Bl].indexOf($)>=0,B=L?"width":"height",H=ow(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),q=L?j?$l:ss:j?Bl:as;R[B]>U[B]&&(q=TC(q));var Y=TC(q),W=[];if(i&&W.push(H[$]<=0),s&&W.push(H[q]<=0,H[Y]<=0),W.every(function(Ae){return Ae})){T=O,b=!1;break}D.set(O,W)}if(b)for(var ie=m?3:1,le=function(Ie){var De=_.find(function(Ue){var ce=D.get(Ue);if(ce)return ce.slice(0,Ie).every(function(de){return de})});if(De)return T=De,"break"},fe=ie;fe>0;fe--){var Ee=le(fe);if(Ee==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const AAe={name:"flip",enabled:!0,phase:"main",fn:CAe,requiresIfExists:["offset"],data:{_skip:!1}};function k9(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function I9(e){return[as,$l,Bl,ss].some(function(t){return e[t]>=0})}function _Ae(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ow(t,{elementContext:"reference"}),s=ow(t,{altBoundary:!0}),l=k9(a,r),u=k9(s,o,i),c=I9(l),f=I9(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const EAe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_Ae};function TAe(e,t,n){var r=lc(e),o=[ss,as].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ss,$l].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function kAe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=SG.reduce(function(c,f){return c[f]=TAe(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const IAe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:kAe};function PAe(e){var t=e.state,n=e.name;t.modifiersData[n]=kG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const MAe={name:"popperOffsets",enabled:!0,phase:"read",fn:PAe,data:{}};function OAe(e){return e==="x"?"y":"x"}function RAe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,v=ow(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=lc(t.placement),w=q0(t.placement),I=!w,_=dD(x),R=OAe(_),U=t.modifiersData.popperOffsets,D=t.rects.reference,b=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(U){if(i){var j,L=_==="y"?as:ss,B=_==="y"?Bl:$l,H=_==="y"?"height":"width",q=U[_],Y=q+v[L],W=q-v[B],ie=g?-b[H]/2:0,le=w===z0?D[H]:b[H],fe=w===z0?-b[H]:-D[H],Ee=t.elements.arrow,Ae=g&&Ee?cD(Ee):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AG(),De=Ie[L],Ue=Ie[B],ce=cb(0,D[H],Ae[H]),de=I?D[H]/2-ie-ce-De-C.mainAxis:le-ce-De-C.mainAxis,ve=I?-D[H]/2+ie+ce+Ue+C.mainAxis:fe+ce+Ue+C.mainAxis,he=t.elements.arrow&&rS(t.elements.arrow),pe=he?_==="y"?he.clientTop||0:he.clientLeft||0:0,ge=(j=O==null?void 0:O[_])!=null?j:0,Ce=q+de-ge-pe,_e=q+ve-ge,Ne=cb(g?EA(Y,Ce):Y,q,g?Dh(W,_e):W);U[_]=Ne,$[_]=Ne-q}if(s){var Be,Ve=_==="x"?as:ss,wt=_==="x"?Bl:$l,xe=U[R],je=R==="y"?"height":"width",We=xe+v[Ve],Ge=xe-v[wt],Fe=[as,ss].indexOf(x)!==-1,te=(Be=O==null?void 0:O[R])!=null?Be:0,Z=Fe?We:xe-D[je]-b[je]-te+C.altAxis,N=Fe?xe+D[je]+b[je]-te-C.altAxis:Ge,k=g&&Fe?rAe(Z,xe,N):cb(g?Z:We,xe,g?N:Ge);U[R]=k,$[R]=k-xe}t.modifiersData[r]=$}}const DAe={name:"preventOverflow",enabled:!0,phase:"main",fn:RAe,requiresIfExists:["offset"]};function BAe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $Ae(e){return e===Us(e)||!kl(e)?fD(e):BAe(e)}function LAe(e){var t=e.getBoundingClientRect(),n=V0(t.width)/e.offsetWidth||1,r=V0(t.height)/e.offsetHeight||1;return n!==1||r!==1}function FAe(e,t,n){n===void 0&&(n=!1);var r=kl(t),o=kl(t)&&LAe(t),i=Cp(t),a=H0(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((hc(t)!=="body"||hD(i))&&(s=$Ae(t)),kl(t)?(l=H0(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=pD(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function NAe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function UAe(e){var t=NAe(e);return JCe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function jAe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WAe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var P9={placement:"bottom",modifiers:[],strategy:"absolute"};function M9(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(qAe(o)||document.body)},[o,i]),pa(()=>{if(a&&!i)return RO(n,a),()=>{RO(n,null)}},[n,a,i]),i){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return A(M.Fragment,{children:r})}return A(M.Fragment,{children:a&&M0.createPortal(r,a)})}),IG=QAe;function KAe(e){return Vt("MuiPopper",e)}Rt("MuiPopper",["root"]);const YAe=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],GAe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function JAe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function jO(e){return typeof e=="function"?e():e}function XAe(e){return e.nodeType!==void 0}const ZAe=()=>Ut({root:["root"]},vG(KAe)),e_e={},t_e=M.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:a,direction:s,disablePortal:l,modifiers:u,open:c,placement:f,popperOptions:p,popperRef:g,slotProps:m={},slots:y={},TransitionProps:v}=t,x=lt(t,YAe),w=M.useRef(null),I=so(w,n),_=M.useRef(null),R=so(_,g),U=M.useRef(R);pa(()=>{U.current=R},[R]),M.useImperativeHandle(g,()=>_.current,[]);const D=JAe(f,s),[b,T]=M.useState(D),[C,O]=M.useState(jO(o));M.useEffect(()=>{_.current&&_.current.forceUpdate()}),M.useEffect(()=>{o&&O(jO(o))},[o]),pa(()=>{if(!C||!c)return;const H=W=>{T(W.placement)};let q=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{H(W)}}];u!=null&&(q=q.concat(u)),p&&p.modifiers!=null&&(q=q.concat(p.modifiers));const Y=HAe(C,w.current,Q({placement:D},p,{modifiers:q}));return U.current(Y),()=>{Y.destroy(),U.current(null)}},[C,l,u,c,p,D]);const $={placement:b};v!==null&&($.TransitionProps=v);const j=ZAe(),L=(r=a??y.root)!=null?r:"div",B=vo({elementType:L,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:j.root});return A(L,Q({},B,{children:typeof i=="function"?i($):i}))}),n_e=M.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=e_e,popperRef:g,style:m,transition:y=!1,slotProps:v={},slots:x={}}=t,w=lt(t,GAe),[I,_]=M.useState(!0),R=()=>{_(!1)},U=()=>{_(!0)};if(!l&&!c&&(!y||I))return null;let D;if(i)D=i;else if(r){const C=jO(r);D=C&&XAe(C)?gi(C).body:gi(null).body}const b=!c&&l&&(!y||I)?"none":void 0,T=y?{in:c,onEnter:R,onExited:U}:void 0;return A(IG,{disablePortal:s,container:D,children:A(t_e,Q({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!I:c,placement:f,popperOptions:p,popperRef:g,slotProps:v,slots:x},w,{style:Q({position:"fixed",top:0,left:0,display:b},m),TransitionProps:T,children:o}))})}),r_e=n_e;function o_e(e){const t=gi(e);return t.body===e?Id(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function fb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function O9(e){return parseInt(Id(e).getComputedStyle(e).paddingRight,10)||0}function i_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function R9(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!i_e(a);s&&l&&fb(a,o)})}function G3(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function a_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(o_e(r)){const a=WY(gi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${O9(r)+a}px`;const s=gi(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${O9(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=gi(r).body;else{const a=r.parentElement,s=Id(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function s_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class l_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&fb(t.modalRef,!1);const o=s_e(n);R9(n,t.mount,t.modalRef,o,!0);const i=G3(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=G3(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=a_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=G3(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&fb(t.modalRef,n),R9(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&fb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function u_e(e){return Vt("MuiModal",e)}Rt("MuiModal",["root","hidden","backdrop"]);const c_e=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],d_e=e=>{const{open:t,exited:n}=e;return Ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vG(u_e))};function f_e(e){return typeof e=="function"?e():e}function p_e(e){return e?e.props.hasOwnProperty("in"):!1}const h_e=new l_e,g_e=M.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:a=!1,component:s,container:l,disableAutoFocus:u=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:f=!1,disablePortal:p=!1,disableRestoreFocus:g=!1,disableScrollLock:m=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:x=h_e,onBackdropClick:w,onClose:I,onKeyDown:_,open:R,onTransitionEnter:U,onTransitionExited:D,slotProps:b={},slots:T={}}=t,C=lt(t,c_e),[O,$]=M.useState(!R),j=M.useRef({}),L=M.useRef(null),B=M.useRef(null),H=so(B,n),q=p_e(i),Y=(r=t["aria-hidden"])!=null?r:!0,W=()=>gi(L.current),ie=()=>(j.current.modalRef=B.current,j.current.mountNode=L.current,j.current),le=()=>{x.mount(ie(),{disableScrollLock:m}),B.current&&(B.current.scrollTop=0)},fe=Or(()=>{const Be=f_e(l)||W().body;x.add(ie(),Be),B.current&&le()}),Ee=M.useCallback(()=>x.isTopModal(ie()),[x]),Ae=Or(Be=>{L.current=Be,!(!Be||!B.current)&&(R&&Ee()?le():fb(B.current,Y))}),Ie=M.useCallback(()=>{x.remove(ie(),Y)},[x,Y]);M.useEffect(()=>()=>{Ie()},[Ie]),M.useEffect(()=>{R?fe():(!q||!a)&&Ie()},[R,Ie,q,a,fe]);const De=Q({},t,{closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:c,disableEscapeKeyDown:f,disablePortal:p,disableRestoreFocus:g,disableScrollLock:m,exited:O,hideBackdrop:y,keepMounted:v}),Ue=d_e(De),ce=()=>{$(!1),U&&U()},de=()=>{$(!0),D&&D(),a&&Ie()},ve=Be=>{Be.target===Be.currentTarget&&(w&&w(Be),I&&I(Be,"backdropClick"))},he=Be=>{_&&_(Be),!(Be.key!=="Escape"||!Ee())&&(f||(Be.stopPropagation(),I&&I(Be,"escapeKeyDown")))},pe={};i.props.tabIndex===void 0&&(pe.tabIndex="-1"),q&&(pe.onEnter=OO(ce,i.props.onEnter),pe.onExited=OO(de,i.props.onExited));const ge=(o=s??T.root)!=null?o:"div",Ce=vo({elementType:ge,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{ref:H,role:"presentation",onKeyDown:he},className:Ue.root,ownerState:De}),_e=T.backdrop,Ne=vo({elementType:_e,externalSlotProps:b.backdrop,additionalProps:{"aria-hidden":!0,onClick:ve,open:R},className:Ue.backdrop,ownerState:De});return!v&&!R&&(!q||O)?null:A(IG,{ref:Ae,container:l,disablePortal:p,children:Se(ge,Q({},Ce,{children:[!y&&_e?A(_e,Q({},Ne)):null,A(bG,{disableEnforceFocus:c,disableAutoFocus:u,disableRestoreFocus:g,isEnabled:Ee,open:R,children:M.cloneElement(i,pe)})]}))})}),m_e=g_e,y_e=["onChange","maxRows","minRows","style","value"];function Px(e){return parseInt(e,10)||0}const v_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function D9(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const b_e=M.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=lt(t,y_e),{current:u}=M.useRef(s!=null),c=M.useRef(null),f=so(n,c),p=M.useRef(null),g=M.useRef(0),[m,y]=M.useState({outerHeightStyle:0}),v=M.useCallback(()=>{const R=c.current,D=Id(R).getComputedStyle(R);if(D.width==="0px")return{outerHeightStyle:0};const b=p.current;b.style.width=D.width,b.value=R.value||t.placeholder||"x",b.value.slice(-1)===` -`&&(b.value+=" ");const T=D.boxSizing,C=Px(D.paddingBottom)+Px(D.paddingTop),O=Px(D.borderBottomWidth)+Px(D.borderTopWidth),$=b.scrollHeight;b.value="x";const j=b.scrollHeight;let L=$;i&&(L=Math.max(Number(i)*j,L)),o&&(L=Math.min(Number(o)*j,L)),L=Math.max(L,j);const B=L+(T==="border-box"?C+O:0),H=Math.abs(L-$)<=1;return{outerHeightStyle:B,overflow:H}},[o,i,t.placeholder]),x=(R,U)=>{const{outerHeightStyle:D,overflow:b}=U;return g.current<20&&(D>0&&Math.abs((R.outerHeightStyle||0)-D)>1||R.overflow!==b)?(g.current+=1,{overflow:b,outerHeightStyle:D}):R},w=M.useCallback(()=>{const R=v();D9(R)||y(U=>x(U,R))},[v]),I=()=>{const R=v();D9(R)||M0.flushSync(()=>{y(U=>x(U,R))})};M.useEffect(()=>{const R=Xb(()=>{g.current=0,c.current&&I()});let U;const D=c.current,b=Id(D);return b.addEventListener("resize",R),typeof ResizeObserver<"u"&&(U=new ResizeObserver(R),U.observe(D)),()=>{R.clear(),b.removeEventListener("resize",R),U&&U.disconnect()}}),pa(()=>{w()}),M.useEffect(()=>{g.current=0},[s]);const _=R=>{g.current=0,u||w(),r&&r(R)};return Se(M.Fragment,{children:[A("textarea",Q({value:s,onChange:_,ref:f,rows:i,style:Q({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),A("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:Q({},v_e.shadow,a,{padding:0})})]})}),w_e=b_e;function S_e(e){return Vt("MuiSvgIcon",e)}Rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const x_e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],C_e=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${dt(t)}`,`fontSize${dt(n)}`]};return Ut(o,S_e,r)},A_e=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${dt(n.color)}`],t[`fontSize${dt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,g,m,y,v,x,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(m=g[t.color])==null?void 0:m.main)!=null?p:{action:(y=(e.vars||e).palette)==null||(v=y.action)==null?void 0:v.active,disabled:(x=(e.vars||e).palette)==null||(w=x.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),PG=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=lt(r,x_e),m=Q({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p}),y={};c||(y.viewBox=p);const v=C_e(m);return Se(A_e,Q({as:s,className:vt(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},y,g,{ownerState:m,children:[o,f?A("title",{children:f}):null]}))});PG.muiName="SvgIcon";const B9=PG;function Yo(e,t){function n(r,o){return A(B9,Q({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=B9.muiName,M.memo(M.forwardRef(n))}function TA(e,t){return TA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},TA(e,t)}function gD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TA(e,t)}function __e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function E_e(e,t){e.classList?e.classList.add(t):__e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function $9(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function T_e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=$9(e.className,t):e.setAttribute("class",$9(e.className&&e.className.baseVal||"",t))}const L9={disabled:!1},kA=Dn.createContext(null);var MG=function(t){return t.scrollTop},K1="unmounted",fh="exited",ph="entering",Wm="entered",WO="exiting",zd=function(e){gD(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=fh,i.appearStatus=ph):l=Wm:r.unmountOnExit||r.mountOnEnter?l=K1:l=fh,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===K1?{status:fh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ph&&a!==Wm&&(i=ph):(a===ph||a===Wm)&&(i=WO)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ph){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Tx.findDOMNode(this);a&&MG(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fh&&this.setState({status:K1})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Tx.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||L9.disabled){this.safeSetState({status:Wm},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ph},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:Wm},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Tx.findDOMNode(this);if(!i||L9.disabled){this.safeSetState({status:fh},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:WO},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:fh},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Tx.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===K1)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=lt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dn.createElement(kA.Provider,{value:null},typeof a=="function"?a(o,s):Dn.cloneElement(Dn.Children.only(a),s))},t}(Dn.Component);zd.contextType=kA;zd.propTypes={};function Pm(){}zd.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pm,onEntering:Pm,onEntered:Pm,onExit:Pm,onExiting:Pm,onExited:Pm};zd.UNMOUNTED=K1;zd.EXITED=fh;zd.ENTERING=ph;zd.ENTERED=Wm;zd.EXITING=WO;const mD=zd;var k_e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return E_e(t,r)})},J3=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return T_e(t,r)})},yD=function(e){gD(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function IA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function B_e(e){return Vt("MuiPaper",e)}Rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const $_e=["className","component","elevation","square","variant"],L_e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ut(i,B_e,o)},F_e=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ln("#fff",S9(t.elevation))}, ${Ln("#fff",S9(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),N_e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=lt(r,$_e),c=Q({},r,{component:i,elevation:a,square:s,variant:l}),f=L_e(c);return A(F_e,Q({as:i,ownerState:c,className:vt(f.root,o),ref:n},u))}),Ay=N_e;function U_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=M.useState(!1),p=vt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=vt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),M.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),A("span",{className:p,style:g,children:A("span",{className:m})})}const j_e=Rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vl=j_e,W_e=["center","classes","className"];let GE=e=>e,F9,N9,U9,j9;const zO=550,z_e=80,V_e=Au(F9||(F9=GE` + */function lG(e,t){return _xe(e,t)}const kxe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Ixe=["values","unit","step"],Pxe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function Mxe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=lt(e,Ixe),i=Pxe(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const m=a.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:g)-r/100}${n})`}function c(p){return a.indexOf(p)+1`@media (min-width:${nD[e]}px)`};function Dl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||c9;return t.reduce((a,s,l)=>(a[i.up(i.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const i=r.breakpoints||c9;return Object.keys(t).reduce((a,s)=>{if(Object.keys(i.values||nD).indexOf(s)!==-1){const l=i.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function Dxe(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function Bxe(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function $xe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i{e[o]!=null&&(n[o]=!0)}),n}function LE({values:e,breakpoints:t,base:n}){const r=n||$xe(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[i],i=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[i],i=s):a[s]=e,a),{})}function j0(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function CA(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=j0(e,n)||r,t&&(o=t(o,r,e)),o}function _r(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=j0(l,r)||{};return Dl(a,s,f=>{let p=CA(u,o,f);return f===p&&typeof f=="string"&&(p=CA(u,o,`${t}${f==="default"?"":dt(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes={},i.filterProps=[t],i}function Lxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Fxe={m:"margin",p:"padding"},Nxe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},d9={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Uxe=Lxe(e=>{if(e.length>2)if(d9[e])e=d9[e];else return[e];const[t,n]=e.split(""),r=Fxe[t],o=Nxe[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),rD=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oD=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...rD,...oD];function eS(e,t,n,r){var o;const i=(o=j0(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:i*a:Array.isArray(i)?a=>typeof a=="string"?a:i[a]:typeof i=="function"?i:()=>{}}function uG(e){return eS(e,"spacing",8)}function tS(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function jxe(e,t){return n=>e.reduce((r,o)=>(r[o]=tS(t,n),r),{})}function Wxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Uxe(n),i=jxe(o,r),a=e[n];return Dl(e,a,i)}function cG(e,t){const n=uG(e.theme);return Object.keys(e).map(r=>Wxe(e,t,r,n)).reduce(lb,{})}function Oo(e){return cG(e,rD)}Oo.propTypes={};Oo.filterProps=rD;function Ro(e){return cG(e,oD)}Ro.propTypes={};Ro.filterProps=oD;function zxe(e=8){if(e.mui)return e;const t=uG({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function FE(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?lb(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ju(e){return typeof e!="number"?e:`${e}px solid`}const Vxe=_r({prop:"border",themeKey:"borders",transform:Ju}),Hxe=_r({prop:"borderTop",themeKey:"borders",transform:Ju}),qxe=_r({prop:"borderRight",themeKey:"borders",transform:Ju}),Qxe=_r({prop:"borderBottom",themeKey:"borders",transform:Ju}),Kxe=_r({prop:"borderLeft",themeKey:"borders",transform:Ju}),Yxe=_r({prop:"borderColor",themeKey:"palette"}),Gxe=_r({prop:"borderTopColor",themeKey:"palette"}),Jxe=_r({prop:"borderRightColor",themeKey:"palette"}),Xxe=_r({prop:"borderBottomColor",themeKey:"palette"}),Zxe=_r({prop:"borderLeftColor",themeKey:"palette"}),NE=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=eS(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:tS(t,r)});return Dl(e,e.borderRadius,n)}return null};NE.propTypes={};NE.filterProps=["borderRadius"];FE(Vxe,Hxe,qxe,Qxe,Kxe,Yxe,Gxe,Jxe,Xxe,Zxe,NE);const UE=e=>{if(e.gap!==void 0&&e.gap!==null){const t=eS(e.theme,"spacing",8),n=r=>({gap:tS(t,r)});return Dl(e,e.gap,n)}return null};UE.propTypes={};UE.filterProps=["gap"];const jE=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=eS(e.theme,"spacing",8),n=r=>({columnGap:tS(t,r)});return Dl(e,e.columnGap,n)}return null};jE.propTypes={};jE.filterProps=["columnGap"];const WE=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=eS(e.theme,"spacing",8),n=r=>({rowGap:tS(t,r)});return Dl(e,e.rowGap,n)}return null};WE.propTypes={};WE.filterProps=["rowGap"];const e2e=_r({prop:"gridColumn"}),t2e=_r({prop:"gridRow"}),n2e=_r({prop:"gridAutoFlow"}),r2e=_r({prop:"gridAutoColumns"}),o2e=_r({prop:"gridAutoRows"}),i2e=_r({prop:"gridTemplateColumns"}),a2e=_r({prop:"gridTemplateRows"}),s2e=_r({prop:"gridTemplateAreas"}),l2e=_r({prop:"gridArea"});FE(UE,jE,WE,e2e,t2e,n2e,r2e,o2e,i2e,a2e,s2e,l2e);function w0(e,t){return t==="grey"?t:e}const u2e=_r({prop:"color",themeKey:"palette",transform:w0}),c2e=_r({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:w0}),d2e=_r({prop:"backgroundColor",themeKey:"palette",transform:w0});FE(u2e,c2e,d2e);function Ps(e){return e<=1&&e!==0?`${e*100}%`:e}const f2e=_r({prop:"width",transform:Ps}),iD=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o,i;return{maxWidth:((r=e.theme)==null||(o=r.breakpoints)==null||(i=o.values)==null?void 0:i[n])||nD[n]||Ps(n)}};return Dl(e,e.maxWidth,t)}return null};iD.filterProps=["maxWidth"];const p2e=_r({prop:"minWidth",transform:Ps}),h2e=_r({prop:"height",transform:Ps}),g2e=_r({prop:"maxHeight",transform:Ps}),m2e=_r({prop:"minHeight",transform:Ps});_r({prop:"size",cssProperty:"width",transform:Ps});_r({prop:"size",cssProperty:"height",transform:Ps});const y2e=_r({prop:"boxSizing"});FE(f2e,iD,p2e,h2e,g2e,m2e,y2e);const v2e={border:{themeKey:"borders",transform:Ju},borderTop:{themeKey:"borders",transform:Ju},borderRight:{themeKey:"borders",transform:Ju},borderBottom:{themeKey:"borders",transform:Ju},borderLeft:{themeKey:"borders",transform:Ju},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:NE},color:{themeKey:"palette",transform:w0},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:w0},backgroundColor:{themeKey:"palette",transform:w0},p:{style:Ro},pt:{style:Ro},pr:{style:Ro},pb:{style:Ro},pl:{style:Ro},px:{style:Ro},py:{style:Ro},padding:{style:Ro},paddingTop:{style:Ro},paddingRight:{style:Ro},paddingBottom:{style:Ro},paddingLeft:{style:Ro},paddingX:{style:Ro},paddingY:{style:Ro},paddingInline:{style:Ro},paddingInlineStart:{style:Ro},paddingInlineEnd:{style:Ro},paddingBlock:{style:Ro},paddingBlockStart:{style:Ro},paddingBlockEnd:{style:Ro},m:{style:Oo},mt:{style:Oo},mr:{style:Oo},mb:{style:Oo},ml:{style:Oo},mx:{style:Oo},my:{style:Oo},margin:{style:Oo},marginTop:{style:Oo},marginRight:{style:Oo},marginBottom:{style:Oo},marginLeft:{style:Oo},marginX:{style:Oo},marginY:{style:Oo},marginInline:{style:Oo},marginInlineStart:{style:Oo},marginInlineEnd:{style:Oo},marginBlock:{style:Oo},marginBlockStart:{style:Oo},marginBlockEnd:{style:Oo},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:UE},rowGap:{style:WE},columnGap:{style:jE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ps},maxWidth:{style:iD},minWidth:{transform:Ps},height:{transform:Ps},maxHeight:{transform:Ps},minHeight:{transform:Ps},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},zE=v2e;function b2e(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function w2e(e,t){return typeof e=="function"?e(t):e}function S2e(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=j0(o,u)||{};return f?f(a):Dl(a,r,m=>{let y=CA(p,c,m);return m===y&&typeof m=="string"&&(y=CA(p,c,`${n}${m==="default"?"":dt(m)}`,m)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:zE;function s(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=Dxe(i.breakpoints),f=Object.keys(c);let p=c;return Object.keys(u).forEach(g=>{const m=w2e(u[g],i);if(m!=null)if(typeof m=="object")if(a[g])p=lb(p,e(g,m,i,a));else{const y=Dl({theme:i},m,v=>({[g]:v}));b2e(y,m)?p[g]=t({sx:m,theme:i}):p=lb(p,y)}else p=lb(p,e(g,m,i,a))}),Bxe(f,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const dG=S2e();dG.filterProps=["sx"];const VE=dG,x2e=["breakpoints","palette","spacing","shape"];function aD(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=lt(e,x2e),s=Mxe(n),l=zxe(o);let u=Tl({breakpoints:s,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},Rxe,i)},a);return u=t.reduce((c,f)=>Tl(c,f),u),u.unstable_sxConfig=Q({},zE,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return VE({sx:f,theme:this})},u}function C2e(e){return Object.keys(e).length===0}function HE(e=null){const t=M.useContext($E);return!t||C2e(t)?e:t}const A2e=aD();function Cy(e=A2e){return HE(e)}function _2e({styles:e,themeId:t,defaultTheme:n={}}){const r=Cy(n),o=typeof e=="function"?e(t&&r[t]||r):e;return A(Txe,{styles:o})}const E2e=["sx"],T2e=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zE;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function sD(e){const{sx:t}=e,n=lt(e,E2e),{systemProps:r,otherProps:o}=T2e(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return vh(s)?Q({},r,s):r}:i=Q({},r,t),Q({},o,{sx:i})}function fG(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;ts!=="theme"&&s!=="sx"&&s!=="as"})(VE);return M.forwardRef(function(l,u){const c=Cy(n),f=sD(l),{className:p,component:g="div"}=f,m=lt(f,k2e);return A(i,Q({as:g,ref:u,className:vt(p,o?o(r):r),theme:t&&c[t]||c},m))})}const I2e=pG(),Wd=I2e,P2e=["variant"];function f9(e){return e.length===0}function hG(e){const{variant:t}=e,n=lt(e,P2e);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=f9(r)?e[o]:dt(e[o]):r+=`${f9(r)?o:dt(o)}${dt(e[o].toString())}`}),r}const M2e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function O2e(e){return Object.keys(e).length===0}function R2e(e){return typeof e=="string"&&e.charCodeAt(0)>96}const D2e=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,B2e=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const i=hG(o.props);r[i]=o.style}),r},$2e=(e,t,n,r)=>{var o,i;const{ownerState:a={}}=e,s=[],l=n==null||(o=n.components)==null||(i=o[r])==null?void 0:i.variants;return l&&l.forEach(u=>{let c=!0;Object.keys(u.props).forEach(f=>{a[f]!==u.props[f]&&e[f]!==u.props[f]&&(c=!1)}),c&&s.push(t[hG(u.props)])}),s};function ub(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const L2e=aD();function Kv({defaultTheme:e,theme:t,themeId:n}){return O2e(t)?e:t[n]||t}function F2e(e={}){const{themeId:t,defaultTheme:n=L2e,rootShouldForwardProp:r=ub,slotShouldForwardProp:o=ub}=e,i=a=>VE(Q({},a,{theme:Kv(Q({},a,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(a,s={})=>{kxe(a,_=>_.filter(R=>!(R!=null&&R.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:p}=s,g=lt(s,M2e),m=c!==void 0?c:u&&u!=="Root"||!1,y=f||!1;let v,x=ub;u==="Root"?x=r:u?x=o:R2e(a)&&(x=void 0);const w=lG(a,Q({shouldForwardProp:x,label:v},g)),I=(_,...R)=>{const U=R?R.map(C=>typeof C=="function"&&C.__emotion_real!==C?O=>C(Q({},O,{theme:Kv(Q({},O,{defaultTheme:n,themeId:t}))})):C):[];let D=_;l&&p&&U.push(C=>{const O=Kv(Q({},C,{defaultTheme:n,themeId:t})),$=D2e(l,O);if($){const j={};return Object.entries($).forEach(([L,B])=>{j[L]=typeof B=="function"?B(Q({},C,{theme:O})):B}),p(C,j)}return null}),l&&!m&&U.push(C=>{const O=Kv(Q({},C,{defaultTheme:n,themeId:t}));return $2e(C,B2e(l,O),O,l)}),y||U.push(i);const b=U.length-R.length;if(Array.isArray(_)&&b>0){const C=new Array(b).fill("");D=[..._,...C],D.raw=[..._.raw,...C]}else typeof _=="function"&&_.__emotion_real!==_&&(D=C=>_(Q({},C,{theme:Kv(Q({},C,{defaultTheme:n,themeId:t}))})));const T=w(D,...U);return a.muiName&&(T.muiName=a.muiName),T};return w.withConfig&&(I.withConfig=w.withConfig),I}}function gG(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:K6(t.components[n].defaultProps,r)}function N2e({props:e,name:t,defaultTheme:n,themeId:r}){let o=Cy(n);return r&&(o=o[r]||o),gG({theme:o,name:t,props:e})}function lD(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function U2e(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Gh(e){if(e.type)return e;if(e.charAt(0)==="#")return Gh(U2e(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(lp(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(lp(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}function qE(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function j2e(e){e=Gh(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),qE({type:s,values:l})}function p9(e){e=Gh(e);let t=e.type==="hsl"||e.type==="hsla"?Gh(j2e(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function W2e(e,t){const n=p9(e),r=p9(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Fn(e,t){return e=Gh(e),t=lD(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,qE(e)}function AA(e,t){if(e=Gh(e),t=lD(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return qE(e)}function _A(e,t){if(e=Gh(e),t=lD(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return qE(e)}const z2e=M.createContext(null),mG=z2e;function yG(){return M.useContext(mG)}const V2e=typeof Symbol=="function"&&Symbol.for,H2e=V2e?Symbol.for("mui.nested"):"__THEME_NESTED__";function q2e(e,t){return typeof t=="function"?t(e):Q({},e,t)}function Q2e(e){const{children:t,theme:n}=e,r=yG(),o=M.useMemo(()=>{const i=r===null?n:q2e(r,n);return i!=null&&(i[H2e]=r!==null),i},[n,r]);return A(mG.Provider,{value:o,children:t})}const h9={};function g9(e,t,n,r=!1){return M.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?Q({},t,{[e]:i}):i;return r?()=>a:a}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function K2e(e){const{children:t,theme:n,themeId:r}=e,o=HE(h9),i=yG()||h9,a=g9(r,o,n),s=g9(r,i,n,!0);return A(Q2e,{theme:s,children:A($E.Provider,{value:a,children:t})})}function Y2e(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const G2e=["mode","contrastThreshold","tonalOffset"],m9={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Jb.white,default:Jb.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},G3={text:{primary:Jb.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Jb.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y9(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=_A(e.main,o):t==="dark"&&(e.dark=AA(e.main,i)))}function J2e(e="light"){return e==="dark"?{main:Em[200],light:Em[50],dark:Em[400]}:{main:Em[700],light:Em[400],dark:Em[800]}}function X2e(e="light"){return e==="dark"?{main:_m[200],light:_m[50],dark:_m[400]}:{main:_m[500],light:_m[300],dark:_m[700]}}function Z2e(e="light"){return e==="dark"?{main:Am[500],light:Am[300],dark:Am[700]}:{main:Am[700],light:Am[400],dark:Am[800]}}function eCe(e="light"){return e==="dark"?{main:Tm[400],light:Tm[300],dark:Tm[700]}:{main:Tm[700],light:Tm[500],dark:Tm[900]}}function tCe(e="light"){return e==="dark"?{main:km[400],light:km[300],dark:km[700]}:{main:km[800],light:km[500],dark:km[900]}}function nCe(e="light"){return e==="dark"?{main:qv[400],light:qv[300],dark:qv[700]}:{main:"#ed6c02",light:qv[500],dark:qv[900]}}function rCe(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=lt(e,G2e),i=e.primary||J2e(t),a=e.secondary||X2e(t),s=e.error||Z2e(t),l=e.info||eCe(t),u=e.success||tCe(t),c=e.warning||nCe(t);function f(y){return W2e(y,G3.text.primary)>=n?G3.text.primary:m9.text.primary}const p=({color:y,name:v,mainShade:x=500,lightShade:w=300,darkShade:I=700})=>{if(y=Q({},y),!y.main&&y[x]&&(y.main=y[x]),!y.hasOwnProperty("main"))throw new Error(lp(11,v?` (${v})`:"",x));if(typeof y.main!="string")throw new Error(lp(12,v?` (${v})`:"",JSON.stringify(y.main)));return y9(y,"light",w,r),y9(y,"dark",I,r),y.contrastText||(y.contrastText=f(y.main)),y},g={dark:G3,light:m9};return Tl(Q({common:Q({},Jb),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:iSe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),o)}const oCe=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function iCe(e){return Math.round(e*1e5)/1e5}const v9={textTransform:"uppercase"},b9='"Roboto", "Helvetica", "Arial", sans-serif';function aCe(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=b9,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,p=lt(n,oCe),g=o/14,m=f||(x=>`${x/u*g}rem`),y=(x,w,I,_,R)=>Q({fontFamily:r,fontWeight:x,fontSize:m(w),lineHeight:I},r===b9?{letterSpacing:`${iCe(_/w)}em`}:{},R,c),v={h1:y(i,96,1.167,-1.5),h2:y(i,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,v9),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,v9),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Tl(Q({htmlFontSize:u,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),p,{clone:!1})}const sCe=.2,lCe=.14,uCe=.12;function po(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sCe})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lCe})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${uCe})`].join(",")}const cCe=["none",po(0,2,1,-1,0,1,1,0,0,1,3,0),po(0,3,1,-2,0,2,2,0,0,1,5,0),po(0,3,3,-2,0,3,4,0,0,1,8,0),po(0,2,4,-1,0,4,5,0,0,1,10,0),po(0,3,5,-1,0,5,8,0,0,1,14,0),po(0,3,5,-1,0,6,10,0,0,1,18,0),po(0,4,5,-2,0,7,10,1,0,2,16,1),po(0,5,5,-3,0,8,10,1,0,3,14,2),po(0,5,6,-3,0,9,12,1,0,3,16,2),po(0,6,6,-3,0,10,14,1,0,4,18,3),po(0,6,7,-4,0,11,15,1,0,4,20,3),po(0,7,8,-4,0,12,17,2,0,5,22,4),po(0,7,8,-4,0,13,19,2,0,5,24,4),po(0,7,9,-4,0,14,21,2,0,5,26,4),po(0,8,9,-5,0,15,22,2,0,6,28,5),po(0,8,10,-5,0,16,24,2,0,6,30,5),po(0,8,11,-5,0,17,26,2,0,6,32,5),po(0,9,11,-5,0,18,28,2,0,7,34,6),po(0,9,12,-6,0,19,29,2,0,7,36,6),po(0,10,13,-6,0,20,31,3,0,8,38,7),po(0,10,13,-6,0,21,33,3,0,8,40,7),po(0,10,14,-6,0,22,35,3,0,8,42,7),po(0,11,14,-7,0,23,36,3,0,9,44,8),po(0,11,15,-7,0,24,38,3,0,9,46,8)],dCe=cCe,fCe=["duration","easing","delay"],pCe={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hCe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function w9(e){return`${Math.round(e)}ms`}function gCe(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function mCe(e){const t=Q({},pCe,e.easing),n=Q({},hCe,e.duration);return Q({getAutoHeightDuration:gCe,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=i;return lt(i,fCe),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof a=="string"?a:w9(a)} ${s} ${typeof l=="string"?l:w9(l)}`).join(",")}},e,{easing:t,duration:n})}const yCe={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vCe=yCe,bCe=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function QE(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=lt(e,bCe);if(e.vars)throw new Error(lp(18));const s=rCe(r),l=aD(e);let u=Tl(l,{mixins:Y2e(l.breakpoints,n),palette:s,shadows:dCe.slice(),typography:aCe(s,i),transitions:mCe(o),zIndex:Q({},vCe)});return u=Tl(u,a),u=t.reduce((c,f)=>Tl(c,f),u),u.unstable_sxConfig=Q({},zE,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return VE({sx:f,theme:this})},u}function wCe(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function SCe(e){return parseFloat(e)}const xCe=QE(),KE=xCe;function Fo(){const e=Cy(KE);return e[Yh]||e}function Bt({props:e,name:t}){return N2e({props:e,name:t,defaultTheme:KE,themeId:Yh})}const Ul=e=>ub(e)&&e!=="classes",CCe=ub,ACe=F2e({themeId:Yh,defaultTheme:KE,rootShouldForwardProp:Ul}),J=ACe,_Ce=["theme"];function ECe(e){let{theme:t}=e,n=lt(e,_Ce);const r=t[Yh];return A(K2e,Q({},n,{themeId:r?Yh:void 0,theme:r||t}))}const TCe=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},S9=TCe;function W0(e){return typeof e=="string"}function Q1(e,t,n){return e===void 0||W0(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}const kCe={disableDefaultClasses:!1},ICe=M.createContext(kCe);function vG(e){const{disableDefaultClasses:t}=M.useContext(ICe);return n=>t?"":e(n)}function PCe(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function nw(e,t){return typeof e=="function"?e(t):e}function x9(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function MCe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=vt(o==null?void 0:o.className,r==null?void 0:r.className,i,n==null?void 0:n.className),m=Q({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),y=Q({},n,o,r);return g.length>0&&(y.className=g),Object.keys(m).length>0&&(y.style=m),{props:y,internalRef:void 0}}const a=PCe(Q({},o,r)),s=x9(r),l=x9(o),u=t(a),c=vt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f=Q({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=Q({},u,n,l,s);return c.length>0&&(p.className=c),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}const OCe=["elementType","externalSlotProps","ownerState"];function vo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o}=e,i=lt(e,OCe),a=nw(r,o),{props:s,internalRef:l}=MCe(Q({},i,{externalSlotProps:a})),u=so(l,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return Q1(n,Q({},s,{ref:u}),o)}const RCe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function DCe(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function BCe(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function $Ce(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||BCe(e))}function LCe(e){const t=[],n=[];return Array.from(e.querySelectorAll(RCe)).forEach((r,o)=>{const i=DCe(r);i===-1||!$Ce(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function FCe(){return!0}function bG(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=LCe,isEnabled:a=FCe,open:s}=e,l=M.useRef(!1),u=M.useRef(null),c=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),m=M.useRef(null),y=so(t.ref,m),v=M.useRef(null);M.useEffect(()=>{!s||!m.current||(g.current=!n)},[n,s]),M.useEffect(()=>{if(!s||!m.current)return;const I=gi(m.current);return m.current.contains(I.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),g.current&&m.current.focus()),()=>{o||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),M.useEffect(()=>{if(!s||!m.current)return;const I=gi(m.current),_=D=>{const{current:b}=m;if(b!==null){if(!I.hasFocus()||r||!a()||l.current){l.current=!1;return}if(!b.contains(I.activeElement)){if(D&&p.current!==D.target||I.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((I.activeElement===u.current||I.activeElement===c.current)&&(O=i(m.current)),O.length>0){var T,C;const $=!!((T=v.current)!=null&&T.shiftKey&&((C=v.current)==null?void 0:C.key)==="Tab"),j=O[0],L=O[O.length-1];typeof j!="string"&&typeof L!="string"&&($?L.focus():j.focus())}else b.focus()}}},R=D=>{v.current=D,!(r||!a()||D.key!=="Tab")&&I.activeElement===m.current&&D.shiftKey&&(l.current=!0,c.current&&c.current.focus())};I.addEventListener("focusin",_),I.addEventListener("keydown",R,!0);const U=setInterval(()=>{I.activeElement&&I.activeElement.tagName==="BODY"&&_(null)},50);return()=>{clearInterval(U),I.removeEventListener("focusin",_),I.removeEventListener("keydown",R,!0)}},[n,r,o,a,s,i]);const x=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0,p.current=I.target;const _=t.props.onFocus;_&&_(I)},w=I=>{f.current===null&&(f.current=I.relatedTarget),g.current=!0};return Se(M.Fragment,{children:[A("div",{tabIndex:s?0:-1,onFocus:w,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:y,onFocus:x}),A("div",{tabIndex:s?0:-1,onFocus:w,ref:c,"data-testid":"sentinelEnd"})]})}var as="top",Bl="bottom",$l="right",ss="left",uD="auto",nS=[as,Bl,$l,ss],z0="start",rw="end",NCe="clippingParents",wG="viewport",Yv="popper",UCe="reference",C9=nS.reduce(function(e,t){return e.concat([t+"-"+z0,t+"-"+rw])},[]),SG=[].concat(nS,[uD]).reduce(function(e,t){return e.concat([t,t+"-"+z0,t+"-"+rw])},[]),jCe="beforeRead",WCe="read",zCe="afterRead",VCe="beforeMain",HCe="main",qCe="afterMain",QCe="beforeWrite",KCe="write",YCe="afterWrite",GCe=[jCe,WCe,zCe,VCe,HCe,qCe,QCe,KCe,YCe];function gc(e){return e?(e.nodeName||"").toLowerCase():null}function Us(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Jh(e){var t=Us(e).Element;return e instanceof t||e instanceof Element}function kl(e){var t=Us(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function cD(e){if(typeof ShadowRoot>"u")return!1;var t=Us(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JCe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!kl(i)||!gc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function XCe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!kl(o)||!gc(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(l){o.removeAttribute(l)}))})}}const ZCe={name:"applyStyles",enabled:!0,phase:"write",fn:JCe,effect:XCe,requires:["computeStyles"]};function uc(e){return e.split("-")[0]}var Dh=Math.max,EA=Math.min,V0=Math.round;function UO(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function xG(){return!/^((?!chrome|android).)*safari/i.test(UO())}function H0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&kl(e)&&(o=e.offsetWidth>0&&V0(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&V0(r.height)/e.offsetHeight||1);var a=Jh(e)?Us(e):window,s=a.visualViewport,l=!xG()&&n,u=(r.left+(l&&s?s.offsetLeft:0))/o,c=(r.top+(l&&s?s.offsetTop:0))/i,f=r.width/o,p=r.height/i;return{width:f,height:p,top:c,right:u+f,bottom:c+p,left:u,x:u,y:c}}function dD(e){var t=H0(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function CG(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&cD(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pd(e){return Us(e).getComputedStyle(e)}function eAe(e){return["table","td","th"].indexOf(gc(e))>=0}function Cp(e){return((Jh(e)?e.ownerDocument:e.document)||window.document).documentElement}function YE(e){return gc(e)==="html"?e:e.assignedSlot||e.parentNode||(cD(e)?e.host:null)||Cp(e)}function A9(e){return!kl(e)||Pd(e).position==="fixed"?null:e.offsetParent}function tAe(e){var t=/firefox/i.test(UO()),n=/Trident/i.test(UO());if(n&&kl(e)){var r=Pd(e);if(r.position==="fixed")return null}var o=YE(e);for(cD(o)&&(o=o.host);kl(o)&&["html","body"].indexOf(gc(o))<0;){var i=Pd(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function rS(e){for(var t=Us(e),n=A9(e);n&&eAe(n)&&Pd(n).position==="static";)n=A9(n);return n&&(gc(n)==="html"||gc(n)==="body"&&Pd(n).position==="static")?t:n||tAe(e)||t}function fD(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cb(e,t,n){return Dh(e,EA(t,n))}function nAe(e,t,n){var r=cb(e,t,n);return r>n?n:r}function AG(){return{top:0,right:0,bottom:0,left:0}}function _G(e){return Object.assign({},AG(),e)}function EG(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var rAe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,_G(typeof t!="number"?t:EG(t,nS))};function oAe(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=uc(n.placement),l=fD(s),u=[ss,$l].indexOf(s)>=0,c=u?"height":"width";if(!(!i||!a)){var f=rAe(o.padding,n),p=dD(i),g=l==="y"?as:ss,m=l==="y"?Bl:$l,y=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],x=rS(i),w=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,I=y/2-v/2,_=f[g],R=w-p[c]-f[m],U=w/2-p[c]/2+I,D=cb(_,U,R),b=l;n.modifiersData[r]=(t={},t[b]=D,t.centerOffset=D-U,t)}}function iAe(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||CG(t.elements.popper,o)&&(t.elements.arrow=o))}const aAe={name:"arrow",enabled:!0,phase:"main",fn:oAe,effect:iAe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function q0(e){return e.split("-")[1]}var sAe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function lAe(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:V0(n*o)/o||0,y:V0(r*o)/o||0}}function _9(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,p=a.x,g=p===void 0?0:p,m=a.y,y=m===void 0?0:m,v=typeof c=="function"?c({x:g,y}):{x:g,y};g=v.x,y=v.y;var x=a.hasOwnProperty("x"),w=a.hasOwnProperty("y"),I=ss,_=as,R=window;if(u){var U=rS(n),D="clientHeight",b="clientWidth";if(U===Us(n)&&(U=Cp(n),Pd(U).position!=="static"&&s==="absolute"&&(D="scrollHeight",b="scrollWidth")),U=U,o===as||(o===ss||o===$l)&&i===rw){_=Bl;var T=f&&U===R&&R.visualViewport?R.visualViewport.height:U[D];y-=T-r.height,y*=l?1:-1}if(o===ss||(o===as||o===Bl)&&i===rw){I=$l;var C=f&&U===R&&R.visualViewport?R.visualViewport.width:U[b];g-=C-r.width,g*=l?1:-1}}var O=Object.assign({position:s},u&&sAe),$=c===!0?lAe({x:g,y},Us(n)):{x:g,y};if(g=$.x,y=$.y,l){var j;return Object.assign({},O,(j={},j[_]=w?"0":"",j[I]=x?"0":"",j.transform=(R.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",j))}return Object.assign({},O,(t={},t[_]=w?y+"px":"",t[I]=x?g+"px":"",t.transform="",t))}function uAe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:uc(t.placement),variation:q0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_9(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_9(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const cAe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:uAe,data:{}};var I2={passive:!0};function dAe(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,l=Us(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,I2)}),s&&l.addEventListener("resize",n.update,I2),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,I2)}),s&&l.removeEventListener("resize",n.update,I2)}}const fAe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:dAe,data:{}};var pAe={left:"right",right:"left",bottom:"top",top:"bottom"};function TC(e){return e.replace(/left|right|bottom|top/g,function(t){return pAe[t]})}var hAe={start:"end",end:"start"};function E9(e){return e.replace(/start|end/g,function(t){return hAe[t]})}function pD(e){var t=Us(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function hD(e){return H0(Cp(e)).left+pD(e).scrollLeft}function gAe(e,t){var n=Us(e),r=Cp(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var u=xG();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+hD(e),y:l}}function mAe(e){var t,n=Cp(e),r=pD(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Dh(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Dh(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+hD(e),l=-r.scrollTop;return Pd(o||n).direction==="rtl"&&(s+=Dh(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function gD(e){var t=Pd(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function TG(e){return["html","body","#document"].indexOf(gc(e))>=0?e.ownerDocument.body:kl(e)&&gD(e)?e:TG(YE(e))}function db(e,t){var n;t===void 0&&(t=[]);var r=TG(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Us(r),a=o?[i].concat(i.visualViewport||[],gD(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(db(YE(a)))}function jO(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yAe(e,t){var n=H0(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function T9(e,t,n){return t===wG?jO(gAe(e,n)):Jh(t)?yAe(t,n):jO(mAe(Cp(e)))}function vAe(e){var t=db(YE(e)),n=["absolute","fixed"].indexOf(Pd(e).position)>=0,r=n&&kl(e)?rS(e):e;return Jh(r)?t.filter(function(o){return Jh(o)&&CG(o,r)&&gc(o)!=="body"}):[]}function bAe(e,t,n,r){var o=t==="clippingParents"?vAe(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(l,u){var c=T9(e,u,r);return l.top=Dh(c.top,l.top),l.right=EA(c.right,l.right),l.bottom=EA(c.bottom,l.bottom),l.left=Dh(c.left,l.left),l},T9(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kG(e){var t=e.reference,n=e.element,r=e.placement,o=r?uc(r):null,i=r?q0(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,l;switch(o){case as:l={x:a,y:t.y-n.height};break;case Bl:l={x:a,y:t.y+t.height};break;case $l:l={x:t.x+t.width,y:s};break;case ss:l={x:t.x-n.width,y:s};break;default:l={x:t.x,y:t.y}}var u=o?fD(o):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case z0:l[u]=l[u]-(t[c]/2-n[c]/2);break;case rw:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function ow(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,l=s===void 0?NCe:s,u=n.rootBoundary,c=u===void 0?wG:u,f=n.elementContext,p=f===void 0?Yv:f,g=n.altBoundary,m=g===void 0?!1:g,y=n.padding,v=y===void 0?0:y,x=_G(typeof v!="number"?v:EG(v,nS)),w=p===Yv?UCe:Yv,I=e.rects.popper,_=e.elements[m?w:p],R=bAe(Jh(_)?_:_.contextElement||Cp(e.elements.popper),l,c,a),U=H0(e.elements.reference),D=kG({reference:U,element:I,strategy:"absolute",placement:o}),b=jO(Object.assign({},I,D)),T=p===Yv?b:U,C={top:R.top-T.top+x.top,bottom:T.bottom-R.bottom+x.bottom,left:R.left-T.left+x.left,right:T.right-R.right+x.right},O=e.modifiersData.offset;if(p===Yv&&O){var $=O[o];Object.keys(C).forEach(function(j){var L=[$l,Bl].indexOf(j)>=0?1:-1,B=[as,Bl].indexOf(j)>=0?"y":"x";C[j]+=$[B]*L})}return C}function wAe(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?SG:l,c=q0(r),f=c?s?C9:C9.filter(function(m){return q0(m)===c}):nS,p=f.filter(function(m){return u.indexOf(m)>=0});p.length===0&&(p=f);var g=p.reduce(function(m,y){return m[y]=ow(e,{placement:y,boundary:o,rootBoundary:i,padding:a})[uc(y)],m},{});return Object.keys(g).sort(function(m,y){return g[m]-g[y]})}function SAe(e){if(uc(e)===uD)return[];var t=TC(e);return[E9(e),t,E9(t)]}function xAe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,m=g===void 0?!0:g,y=n.allowedAutoPlacements,v=t.options.placement,x=uc(v),w=x===v,I=l||(w||!m?[TC(v)]:SAe(v)),_=[v].concat(I).reduce(function(Ae,Ie){return Ae.concat(uc(Ie)===uD?wAe(t,{placement:Ie,boundary:c,rootBoundary:f,padding:u,flipVariations:m,allowedAutoPlacements:y}):Ie)},[]),R=t.rects.reference,U=t.rects.popper,D=new Map,b=!0,T=_[0],C=0;C<_.length;C++){var O=_[C],$=uc(O),j=q0(O)===z0,L=[as,Bl].indexOf($)>=0,B=L?"width":"height",H=ow(t,{placement:O,boundary:c,rootBoundary:f,altBoundary:p,padding:u}),q=L?j?$l:ss:j?Bl:as;R[B]>U[B]&&(q=TC(q));var Y=TC(q),W=[];if(i&&W.push(H[$]<=0),s&&W.push(H[q]<=0,H[Y]<=0),W.every(function(Ae){return Ae})){T=O,b=!1;break}D.set(O,W)}if(b)for(var ie=m?3:1,le=function(Ie){var De=_.find(function(Ue){var ce=D.get(Ue);if(ce)return ce.slice(0,Ie).every(function(de){return de})});if(De)return T=De,"break"},fe=ie;fe>0;fe--){var Ee=le(fe);if(Ee==="break")break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}}const CAe={name:"flip",enabled:!0,phase:"main",fn:xAe,requiresIfExists:["offset"],data:{_skip:!1}};function k9(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function I9(e){return[as,$l,Bl,ss].some(function(t){return e[t]>=0})}function AAe(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ow(t,{elementContext:"reference"}),s=ow(t,{altBoundary:!0}),l=k9(a,r),u=k9(s,o,i),c=I9(l),f=I9(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const _Ae={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AAe};function EAe(e,t,n){var r=uc(e),o=[ss,as].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[ss,$l].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function TAe(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=SG.reduce(function(c,f){return c[f]=EAe(f,t.rects,i),c},{}),s=a[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=a}const kAe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:TAe};function IAe(e){var t=e.state,n=e.name;t.modifiersData[n]=kG({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const PAe={name:"popperOffsets",enabled:!0,phase:"read",fn:IAe,data:{}};function MAe(e){return e==="x"?"y":"x"}function OAe(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,m=n.tetherOffset,y=m===void 0?0:m,v=ow(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=uc(t.placement),w=q0(t.placement),I=!w,_=fD(x),R=MAe(_),U=t.modifiersData.popperOffsets,D=t.rects.reference,b=t.rects.popper,T=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(U){if(i){var j,L=_==="y"?as:ss,B=_==="y"?Bl:$l,H=_==="y"?"height":"width",q=U[_],Y=q+v[L],W=q-v[B],ie=g?-b[H]/2:0,le=w===z0?D[H]:b[H],fe=w===z0?-b[H]:-D[H],Ee=t.elements.arrow,Ae=g&&Ee?dD(Ee):{width:0,height:0},Ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:AG(),De=Ie[L],Ue=Ie[B],ce=cb(0,D[H],Ae[H]),de=I?D[H]/2-ie-ce-De-C.mainAxis:le-ce-De-C.mainAxis,ve=I?-D[H]/2+ie+ce+Ue+C.mainAxis:fe+ce+Ue+C.mainAxis,he=t.elements.arrow&&rS(t.elements.arrow),pe=he?_==="y"?he.clientTop||0:he.clientLeft||0:0,ge=(j=O==null?void 0:O[_])!=null?j:0,Ce=q+de-ge-pe,_e=q+ve-ge,Ne=cb(g?EA(Y,Ce):Y,q,g?Dh(W,_e):W);U[_]=Ne,$[_]=Ne-q}if(s){var Be,Ve=_==="x"?as:ss,wt=_==="x"?Bl:$l,xe=U[R],je=R==="y"?"height":"width",We=xe+v[Ve],Ge=xe-v[wt],Fe=[as,ss].indexOf(x)!==-1,te=(Be=O==null?void 0:O[R])!=null?Be:0,Z=Fe?We:xe-D[je]-b[je]-te+C.altAxis,N=Fe?xe+D[je]+b[je]-te-C.altAxis:Ge,k=g&&Fe?nAe(Z,xe,N):cb(g?Z:We,xe,g?N:Ge);U[R]=k,$[R]=k-xe}t.modifiersData[r]=$}}const RAe={name:"preventOverflow",enabled:!0,phase:"main",fn:OAe,requiresIfExists:["offset"]};function DAe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function BAe(e){return e===Us(e)||!kl(e)?pD(e):DAe(e)}function $Ae(e){var t=e.getBoundingClientRect(),n=V0(t.width)/e.offsetWidth||1,r=V0(t.height)/e.offsetHeight||1;return n!==1||r!==1}function LAe(e,t,n){n===void 0&&(n=!1);var r=kl(t),o=kl(t)&&$Ae(t),i=Cp(t),a=H0(e,o,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((gc(t)!=="body"||gD(i))&&(s=BAe(t)),kl(t)?(l=H0(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=hD(i))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function FAe(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var l=t.get(s);l&&o(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function NAe(e){var t=FAe(e);return GCe.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function UAe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function jAe(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var P9={placement:"bottom",modifiers:[],strategy:"absolute"};function M9(){for(var e=arguments.length,t=new Array(e),n=0;n{i||s(HAe(o)||document.body)},[o,i]),pa(()=>{if(a&&!i)return DO(n,a),()=>{DO(n,null)}},[n,a,i]),i){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return A(M.Fragment,{children:r})}return A(M.Fragment,{children:a&&M0.createPortal(r,a)})}),IG=qAe;function QAe(e){return Vt("MuiPopper",e)}Rt("MuiPopper",["root"]);const KAe=["anchorEl","children","component","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],YAe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function GAe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function WO(e){return typeof e=="function"?e():e}function JAe(e){return e.nodeType!==void 0}const XAe=()=>Ut({root:["root"]},vG(QAe)),ZAe={},e_e=M.forwardRef(function(t,n){var r;const{anchorEl:o,children:i,component:a,direction:s,disablePortal:l,modifiers:u,open:c,placement:f,popperOptions:p,popperRef:g,slotProps:m={},slots:y={},TransitionProps:v}=t,x=lt(t,KAe),w=M.useRef(null),I=so(w,n),_=M.useRef(null),R=so(_,g),U=M.useRef(R);pa(()=>{U.current=R},[R]),M.useImperativeHandle(g,()=>_.current,[]);const D=GAe(f,s),[b,T]=M.useState(D),[C,O]=M.useState(WO(o));M.useEffect(()=>{_.current&&_.current.forceUpdate()}),M.useEffect(()=>{o&&O(WO(o))},[o]),pa(()=>{if(!C||!c)return;const H=W=>{T(W.placement)};let q=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{H(W)}}];u!=null&&(q=q.concat(u)),p&&p.modifiers!=null&&(q=q.concat(p.modifiers));const Y=VAe(C,w.current,Q({placement:D},p,{modifiers:q}));return U.current(Y),()=>{Y.destroy(),U.current(null)}},[C,l,u,c,p,D]);const $={placement:b};v!==null&&($.TransitionProps=v);const j=XAe(),L=(r=a??y.root)!=null?r:"div",B=vo({elementType:L,externalSlotProps:m.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:j.root});return A(L,Q({},B,{children:typeof i=="function"?i($):i}))}),t_e=M.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:p=ZAe,popperRef:g,style:m,transition:y=!1,slotProps:v={},slots:x={}}=t,w=lt(t,YAe),[I,_]=M.useState(!0),R=()=>{_(!1)},U=()=>{_(!0)};if(!l&&!c&&(!y||I))return null;let D;if(i)D=i;else if(r){const C=WO(r);D=C&&JAe(C)?gi(C).body:gi(null).body}const b=!c&&l&&(!y||I)?"none":void 0,T=y?{in:c,onEnter:R,onExited:U}:void 0;return A(IG,{disablePortal:s,container:D,children:A(e_e,Q({anchorEl:r,direction:a,disablePortal:s,modifiers:u,ref:n,open:y?!I:c,placement:f,popperOptions:p,popperRef:g,slotProps:v,slots:x},w,{style:Q({position:"fixed",top:0,left:0,display:b},m),TransitionProps:T,children:o}))})}),n_e=t_e;function r_e(e){const t=gi(e);return t.body===e?Id(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function fb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function O9(e){return parseInt(Id(e).getComputedStyle(e).paddingRight,10)||0}function o_e(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function R9(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,l=!o_e(a);s&&l&&fb(a,o)})}function J3(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function i_e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(r_e(r)){const a=WY(gi(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${O9(r)+a}px`;const s=gi(r).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${O9(l)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=gi(r).body;else{const a=r.parentElement,s=Id(r);i=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:s})=>{i?a.style.setProperty(s,i):a.style.removeProperty(s)})}}function a_e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class s_e{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&fb(t.modalRef,!1);const o=a_e(n);R9(n,t.mount,t.modalRef,o,!0);const i=J3(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=J3(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=i_e(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=J3(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&fb(t.modalRef,n),R9(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&fb(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l_e(e){return Vt("MuiModal",e)}Rt("MuiModal",["root","hidden","backdrop"]);const u_e=["children","closeAfterTransition","component","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited","slotProps","slots"],c_e=e=>{const{open:t,exited:n}=e;return Ut({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},vG(l_e))};function d_e(e){return typeof e=="function"?e():e}function f_e(e){return e?e.props.hasOwnProperty("in"):!1}const p_e=new s_e,h_e=M.forwardRef(function(t,n){var r,o;const{children:i,closeAfterTransition:a=!1,component:s,container:l,disableAutoFocus:u=!1,disableEnforceFocus:c=!1,disableEscapeKeyDown:f=!1,disablePortal:p=!1,disableRestoreFocus:g=!1,disableScrollLock:m=!1,hideBackdrop:y=!1,keepMounted:v=!1,manager:x=p_e,onBackdropClick:w,onClose:I,onKeyDown:_,open:R,onTransitionEnter:U,onTransitionExited:D,slotProps:b={},slots:T={}}=t,C=lt(t,u_e),[O,$]=M.useState(!R),j=M.useRef({}),L=M.useRef(null),B=M.useRef(null),H=so(B,n),q=f_e(i),Y=(r=t["aria-hidden"])!=null?r:!0,W=()=>gi(L.current),ie=()=>(j.current.modalRef=B.current,j.current.mountNode=L.current,j.current),le=()=>{x.mount(ie(),{disableScrollLock:m}),B.current&&(B.current.scrollTop=0)},fe=Or(()=>{const Be=d_e(l)||W().body;x.add(ie(),Be),B.current&&le()}),Ee=M.useCallback(()=>x.isTopModal(ie()),[x]),Ae=Or(Be=>{L.current=Be,!(!Be||!B.current)&&(R&&Ee()?le():fb(B.current,Y))}),Ie=M.useCallback(()=>{x.remove(ie(),Y)},[x,Y]);M.useEffect(()=>()=>{Ie()},[Ie]),M.useEffect(()=>{R?fe():(!q||!a)&&Ie()},[R,Ie,q,a,fe]);const De=Q({},t,{closeAfterTransition:a,disableAutoFocus:u,disableEnforceFocus:c,disableEscapeKeyDown:f,disablePortal:p,disableRestoreFocus:g,disableScrollLock:m,exited:O,hideBackdrop:y,keepMounted:v}),Ue=c_e(De),ce=()=>{$(!1),U&&U()},de=()=>{$(!0),D&&D(),a&&Ie()},ve=Be=>{Be.target===Be.currentTarget&&(w&&w(Be),I&&I(Be,"backdropClick"))},he=Be=>{_&&_(Be),!(Be.key!=="Escape"||!Ee())&&(f||(Be.stopPropagation(),I&&I(Be,"escapeKeyDown")))},pe={};i.props.tabIndex===void 0&&(pe.tabIndex="-1"),q&&(pe.onEnter=RO(ce,i.props.onEnter),pe.onExited=RO(de,i.props.onExited));const ge=(o=s??T.root)!=null?o:"div",Ce=vo({elementType:ge,externalSlotProps:b.root,externalForwardedProps:C,additionalProps:{ref:H,role:"presentation",onKeyDown:he},className:Ue.root,ownerState:De}),_e=T.backdrop,Ne=vo({elementType:_e,externalSlotProps:b.backdrop,additionalProps:{"aria-hidden":!0,onClick:ve,open:R},className:Ue.backdrop,ownerState:De});return!v&&!R&&(!q||O)?null:A(IG,{ref:Ae,container:l,disablePortal:p,children:Se(ge,Q({},Ce,{children:[!y&&_e?A(_e,Q({},Ne)):null,A(bG,{disableEnforceFocus:c,disableAutoFocus:u,disableRestoreFocus:g,isEnabled:Ee,open:R,children:M.cloneElement(i,pe)})]}))})}),g_e=h_e,m_e=["onChange","maxRows","minRows","style","value"];function P2(e){return parseInt(e,10)||0}const y_e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function D9(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const v_e=M.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:s}=t,l=lt(t,m_e),{current:u}=M.useRef(s!=null),c=M.useRef(null),f=so(n,c),p=M.useRef(null),g=M.useRef(0),[m,y]=M.useState({outerHeightStyle:0}),v=M.useCallback(()=>{const R=c.current,D=Id(R).getComputedStyle(R);if(D.width==="0px")return{outerHeightStyle:0};const b=p.current;b.style.width=D.width,b.value=R.value||t.placeholder||"x",b.value.slice(-1)===` +`&&(b.value+=" ");const T=D.boxSizing,C=P2(D.paddingBottom)+P2(D.paddingTop),O=P2(D.borderBottomWidth)+P2(D.borderTopWidth),$=b.scrollHeight;b.value="x";const j=b.scrollHeight;let L=$;i&&(L=Math.max(Number(i)*j,L)),o&&(L=Math.min(Number(o)*j,L)),L=Math.max(L,j);const B=L+(T==="border-box"?C+O:0),H=Math.abs(L-$)<=1;return{outerHeightStyle:B,overflow:H}},[o,i,t.placeholder]),x=(R,U)=>{const{outerHeightStyle:D,overflow:b}=U;return g.current<20&&(D>0&&Math.abs((R.outerHeightStyle||0)-D)>1||R.overflow!==b)?(g.current+=1,{overflow:b,outerHeightStyle:D}):R},w=M.useCallback(()=>{const R=v();D9(R)||y(U=>x(U,R))},[v]),I=()=>{const R=v();D9(R)||M0.flushSync(()=>{y(U=>x(U,R))})};M.useEffect(()=>{const R=Xb(()=>{g.current=0,c.current&&I()});let U;const D=c.current,b=Id(D);return b.addEventListener("resize",R),typeof ResizeObserver<"u"&&(U=new ResizeObserver(R),U.observe(D)),()=>{R.clear(),b.removeEventListener("resize",R),U&&U.disconnect()}}),pa(()=>{w()}),M.useEffect(()=>{g.current=0},[s]);const _=R=>{g.current=0,u||w(),r&&r(R)};return Se(M.Fragment,{children:[A("textarea",Q({value:s,onChange:_,ref:f,rows:i,style:Q({height:m.outerHeightStyle,overflow:m.overflow?"hidden":void 0},a)},l)),A("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:Q({},y_e.shadow,a,{padding:0})})]})}),b_e=v_e;function w_e(e){return Vt("MuiSvgIcon",e)}Rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const S_e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],x_e=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${dt(t)}`,`fontSize${dt(n)}`]};return Ut(o,w_e,r)},C_e=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${dt(n.color)}`],t[`fontSize${dt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,l,u,c,f,p,g,m,y,v,x,w;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(i=o.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(m=g[t.color])==null?void 0:m.main)!=null?p:{action:(y=(e.vars||e).palette)==null||(v=y.action)==null?void 0:v.active,disabled:(x=(e.vars||e).palette)==null||(w=x.action)==null?void 0:w.disabled,inherit:void 0}[t.color]}}),PG=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=lt(r,S_e),m=Q({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p}),y={};c||(y.viewBox=p);const v=x_e(m);return Se(C_e,Q({as:s,className:vt(v.root,i),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},y,g,{ownerState:m,children:[o,f?A("title",{children:f}):null]}))});PG.muiName="SvgIcon";const B9=PG;function Yo(e,t){function n(r,o){return A(B9,Q({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=B9.muiName,M.memo(M.forwardRef(n))}function TA(e,t){return TA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},TA(e,t)}function mD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TA(e,t)}function A_e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function __e(e,t){e.classList?e.classList.add(t):A_e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function $9(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function E_e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=$9(e.className,t):e.setAttribute("class",$9(e.className&&e.className.baseVal||"",t))}const L9={disabled:!1},kA=Dn.createContext(null);var MG=function(t){return t.scrollTop},K1="unmounted",fh="exited",ph="entering",Wm="entered",zO="exiting",zd=function(e){mD(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?s?(l=fh,i.appearStatus=ph):l=Wm:r.unmountOnExit||r.mountOnEnter?l=K1:l=fh,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===K1?{status:fh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==ph&&a!==Wm&&(i=ph):(a===ph||a===Wm)&&(i=zO)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===ph){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:T2.findDOMNode(this);a&&MG(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===fh&&this.setState({status:K1})},n.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[T2.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),p=s?f.appear:f.enter;if(!o&&!a||L9.disabled){this.safeSetState({status:Wm},function(){i.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:ph},function(){i.props.onEntering(u,c),i.onTransitionEnd(p,function(){i.safeSetState({status:Wm},function(){i.props.onEntered(u,c)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:T2.findDOMNode(this);if(!i||L9.disabled){this.safeSetState({status:fh},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:zO},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:fh},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:T2.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===K1)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=lt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Dn.createElement(kA.Provider,{value:null},typeof a=="function"?a(o,s):Dn.cloneElement(Dn.Children.only(a),s))},t}(Dn.Component);zd.contextType=kA;zd.propTypes={};function Pm(){}zd.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pm,onEntering:Pm,onEntered:Pm,onExit:Pm,onExiting:Pm,onExited:Pm};zd.UNMOUNTED=K1;zd.EXITED=fh;zd.ENTERING=ph;zd.ENTERED=Wm;zd.EXITING=zO;const yD=zd;var T_e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return __e(t,r)})},X3=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return E_e(t,r)})},vD=function(e){mD(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),a=0;ae.scrollTop;function IA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}function D_e(e){return Vt("MuiPaper",e)}Rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const B_e=["className","component","elevation","square","variant"],$_e=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Ut(i,D_e,o)},L_e=J("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Fn("#fff",S9(t.elevation))}, ${Fn("#fff",S9(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),F_e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPaper"}),{className:o,component:i="div",elevation:a=1,square:s=!1,variant:l="elevation"}=r,u=lt(r,B_e),c=Q({},r,{component:i,elevation:a,square:s,variant:l}),f=$_e(c);return A(L_e,Q({as:i,ownerState:c,className:vt(f.root,o),ref:n},u))}),Ay=F_e;function N_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:l,timeout:u}=e,[c,f]=M.useState(!1),p=vt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=vt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!s&&!c&&f(!0),M.useEffect(()=>{if(!s&&l!=null){const y=setTimeout(l,u);return()=>{clearTimeout(y)}}},[l,s,u]),A("span",{className:p,style:g,children:A("span",{className:m})})}const U_e=Rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),vl=U_e,j_e=["center","classes","className"];let GE=e=>e,F9,N9,U9,j9;const VO=550,W_e=80,z_e=_u(F9||(F9=GE` 0% { transform: scale(0); opacity: 0.1; @@ -82,7 +82,7 @@ Error generating stack: `+i.message+` transform: scale(1); opacity: 0.3; } -`)),H_e=Au(N9||(N9=GE` +`)),V_e=_u(N9||(N9=GE` 0% { opacity: 1; } @@ -90,7 +90,7 @@ Error generating stack: `+i.message+` 100% { opacity: 0; } -`)),q_e=Au(U9||(U9=GE` +`)),H_e=_u(U9||(U9=GE` 0% { transform: scale(1); } @@ -102,7 +102,7 @@ Error generating stack: `+i.message+` 100% { transform: scale(1); } -`)),Q_e=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),K_e=J(U_e,{name:"MuiTouchRipple",slot:"Ripple"})(j9||(j9=GE` +`)),q_e=J("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Q_e=J(N_e,{name:"MuiTouchRipple",slot:"Ripple"})(j9||(j9=GE` opacity: 0; position: absolute; @@ -145,7 +145,7 @@ Error generating stack: `+i.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),vl.rippleVisible,V_e,zO,({theme:e})=>e.transitions.easing.easeInOut,vl.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vl.child,vl.childLeaving,H_e,zO,({theme:e})=>e.transitions.easing.easeInOut,vl.childPulsate,q_e,({theme:e})=>e.transitions.easing.easeInOut),Y_e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=lt(r,W_e),[l,u]=M.useState([]),c=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=M.useRef(null),m=M.useRef(null),y=M.useRef(null);M.useEffect(()=>()=>{clearTimeout(g.current)},[]);const v=M.useCallback(_=>{const{pulsate:R,rippleX:U,rippleY:D,rippleSize:b,cb:T}=_;u(C=>[...C,A(K_e,{classes:{ripple:vt(i.ripple,vl.ripple),rippleVisible:vt(i.rippleVisible,vl.rippleVisible),ripplePulsate:vt(i.ripplePulsate,vl.ripplePulsate),child:vt(i.child,vl.child),childLeaving:vt(i.childLeaving,vl.childLeaving),childPulsate:vt(i.childPulsate,vl.childPulsate)},timeout:zO,pulsate:R,rippleX:U,rippleY:D,rippleSize:b},c.current)]),c.current+=1,f.current=T},[i]),x=M.useCallback((_={},R={},U=()=>{})=>{const{pulsate:D=!1,center:b=o||R.pulsate,fakeElement:T=!1}=R;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const C=T?null:y.current,O=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,j,L;if(b||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)$=Math.round(O.width/2),j=Math.round(O.height/2);else{const{clientX:B,clientY:H}=_.touches&&_.touches.length>0?_.touches[0]:_;$=Math.round(B-O.left),j=Math.round(H-O.top)}if(b)L=Math.sqrt((2*O.width**2+O.height**2)/3),L%2===0&&(L+=1);else{const B=Math.max(Math.abs((C?C.clientWidth:0)-$),$)*2+2,H=Math.max(Math.abs((C?C.clientHeight:0)-j),j)*2+2;L=Math.sqrt(B**2+H**2)}_!=null&&_.touches?m.current===null&&(m.current=()=>{v({pulsate:D,rippleX:$,rippleY:j,rippleSize:L,cb:U})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},z_e)):v({pulsate:D,rippleX:$,rippleY:j,rippleSize:L,cb:U})},[o,v]),w=M.useCallback(()=>{x({},{pulsate:!0})},[x]),I=M.useCallback((_,R)=>{if(clearTimeout(g.current),(_==null?void 0:_.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{I(_,R)});return}m.current=null,u(U=>U.length>0?U.slice(1):U),f.current=R},[]);return M.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:I}),[w,x,I]),A(Q_e,Q({className:vt(vl.root,i.root,a),ref:y},s,{children:A(wD,{component:null,exit:!0,children:l})}))}),G_e=Y_e;function J_e(e){return Vt("MuiButtonBase",e)}const X_e=Rt("MuiButtonBase",["root","disabled","focusVisible"]),Z_e=X_e,eEe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],tEe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ut({root:["root",t&&"disabled",n&&"focusVisible"]},J_e,o);return n&&r&&(a.root+=` ${r}`),a},nEe=J("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Z_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:v,onDragLeave:x,onFocus:w,onFocusVisible:I,onKeyDown:_,onKeyUp:R,onMouseDown:U,onMouseLeave:D,onMouseUp:b,onTouchEnd:T,onTouchMove:C,onTouchStart:O,tabIndex:$=0,TouchRippleProps:j,touchRippleRef:L,type:B}=r,H=lt(r,eEe),q=M.useRef(null),Y=M.useRef(null),W=so(Y,L),{isFocusVisibleRef:ie,onFocus:le,onBlur:fe,ref:Ee}=q6(),[Ae,Ie]=M.useState(!1);u&&Ae&&Ie(!1),M.useImperativeHandle(o,()=>({focusVisible:()=>{Ie(!0),q.current.focus()}}),[]);const[De,Ue]=M.useState(!1);M.useEffect(()=>{Ue(!0)},[]);const ce=De&&!c&&!u;M.useEffect(()=>{Ae&&p&&!c&&De&&Y.current.pulsate()},[c,p,Ae,De]);function de(S,P,V=f){return Or(K=>(P&&P(K),!V&&Y.current&&Y.current[S](K),!0))}const ve=de("start",U),he=de("stop",v),pe=de("stop",x),ge=de("stop",b),Ce=de("stop",S=>{Ae&&S.preventDefault(),D&&D(S)}),_e=de("start",O),Ne=de("stop",T),Be=de("stop",C),Ve=de("stop",S=>{fe(S),ie.current===!1&&Ie(!1),m&&m(S)},!1),wt=Or(S=>{q.current||(q.current=S.currentTarget),le(S),ie.current===!0&&(Ie(!0),I&&I(S)),w&&w(S)}),xe=()=>{const S=q.current;return l&&l!=="button"&&!(S.tagName==="A"&&S.href)},je=M.useRef(!1),We=Or(S=>{p&&!je.current&&Ae&&Y.current&&S.key===" "&&(je.current=!0,Y.current.stop(S,()=>{Y.current.start(S)})),S.target===S.currentTarget&&xe()&&S.key===" "&&S.preventDefault(),_&&_(S),S.target===S.currentTarget&&xe()&&S.key==="Enter"&&!u&&(S.preventDefault(),y&&y(S))}),Ge=Or(S=>{p&&S.key===" "&&Y.current&&Ae&&!S.defaultPrevented&&(je.current=!1,Y.current.stop(S,()=>{Y.current.pulsate(S)})),R&&R(S),y&&S.target===S.currentTarget&&xe()&&S.key===" "&&!S.defaultPrevented&&y(S)});let Fe=l;Fe==="button"&&(H.href||H.to)&&(Fe=g);const te={};Fe==="button"?(te.type=B===void 0?"button":B,te.disabled=u):(!H.href&&!H.to&&(te.role="button"),u&&(te["aria-disabled"]=u));const Z=so(n,Ee,q),N=Q({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:Ae}),k=tEe(N);return Se(nEe,Q({as:Fe,className:vt(k.root,s),ownerState:N,onBlur:Ve,onClick:y,onContextMenu:he,onFocus:wt,onKeyDown:We,onKeyUp:Ge,onMouseDown:ve,onMouseLeave:Ce,onMouseUp:ge,onDragLeave:pe,onTouchEnd:Ne,onTouchMove:Be,onTouchStart:_e,ref:Z,tabIndex:u?-1:$,type:B},te,H,{children:[a,ce?A(G_e,Q({ref:W,center:i},j)):null]}))}),gc=rEe;function oEe(e){return Vt("MuiAlert",e)}const iEe=Rt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),W9=iEe;function aEe(e){return Vt("MuiIconButton",e)}const sEe=Rt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),lEe=sEe,uEe=["edge","children","className","color","disabled","disableFocusRipple","size"],cEe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${dt(r)}`,o&&`edge${dt(o)}`,`size${dt(i)}`]};return Ut(a,aEe,t)},dEe=J(gc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${dt(n.color)}`],n.edge&&t[`edge${dt(n.edge)}`],t[`size${dt(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${lEe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),fEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=lt(r,uEe),p=Q({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),g=cEe(p);return A(dEe,Q({className:vt(g.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),Vd=fEe,pEe=Yo(A("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),hEe=Yo(A("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gEe=Yo(A("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),mEe=Yo(A("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),yEe=Yo(A("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),vEe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],bEe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${dt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ut(i,oEe,o)},wEe=J(Ay,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dt(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?AA:_A,r=e.palette.mode==="light"?_A:AA,o=t.color||t.severity;return Q({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${W9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${W9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&Q({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),SEe=J("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),xEe=J("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),z9=J("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),V9={success:A(pEe,{fontSize:"inherit"}),warning:A(hEe,{fontSize:"inherit"}),error:A(gEe,{fontSize:"inherit"}),info:A(mEe,{fontSize:"inherit"})},CEe=M.forwardRef(function(t,n){var r,o,i,a,s,l;const u=Bt({props:t,name:"MuiAlert"}),{action:c,children:f,className:p,closeText:g="Close",color:m,components:y={},componentsProps:v={},icon:x,iconMapping:w=V9,onClose:I,role:_="alert",severity:R="success",slotProps:U={},slots:D={},variant:b="standard"}=u,T=lt(u,vEe),C=Q({},u,{color:m,severity:R,variant:b}),O=bEe(C),$=(r=(o=D.closeButton)!=null?o:y.CloseButton)!=null?r:Vd,j=(i=(a=D.closeIcon)!=null?a:y.CloseIcon)!=null?i:yEe,L=(s=U.closeButton)!=null?s:v.closeButton,B=(l=U.closeIcon)!=null?l:v.closeIcon;return Se(wEe,Q({role:_,elevation:0,ownerState:C,className:vt(O.root,p),ref:n},T,{children:[x!==!1?A(SEe,{ownerState:C,className:O.icon,children:x||w[R]||V9[R]}):null,A(xEe,{ownerState:C,className:O.message,children:f}),c!=null?A(z9,{ownerState:C,className:O.action,children:c}):null,c==null&&I?A(z9,{ownerState:C,className:O.action,children:A($,Q({size:"small","aria-label":g,title:g,color:"inherit",onClick:I},L,{children:A(j,Q({fontSize:"small"},B))}))}):null]}))}),AEe=CEe;function _Ee(e){return Vt("MuiTypography",e)}Rt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const EEe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],TEe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${dt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(s,_Ee,a)},kEe=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${dt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),H9={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},IEe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},PEe=e=>IEe[e]||e,MEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTypography"}),o=PEe(r.color),i=aD(Q({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=H9}=i,m=lt(i,EEe),y=Q({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:g}),v=l||(f?"p":g[p]||H9[p])||"span",x=TEe(y);return A(kEe,Q({as:v,ref:n,ownerState:y,className:vt(x.root,s)},m))}),At=MEe,OEe=["components","componentsProps","slots","slotProps"],REe=J(r_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),DEe=M.forwardRef(function(t,n){var r;const o=HE(),i=Bt({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:u}=i,c=lt(i,OEe),f=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return A(REe,Q({direction:o==null?void 0:o.direction,slots:{root:f},slotProps:u??s},c,{ref:n}))}),SD=DEe,BEe=Yo(A("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function $Ee(e){return Vt("MuiChip",e)}const LEe=Rt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),lr=LEe,FEe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],NEe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${dt(r)}`,`color${dt(o)}`,s&&"clickable",s&&`clickableColor${dt(o)}`,a&&"deletable",a&&`deletableColor${dt(o)}`,`${l}${dt(o)}`],label:["label",`label${dt(r)}`],avatar:["avatar",`avatar${dt(r)}`,`avatarColor${dt(o)}`],icon:["icon",`icon${dt(r)}`,`iconColor${dt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${dt(r)}`,`deleteIconColor${dt(o)}`,`deleteIcon${dt(l)}Color${dt(o)}`]};return Ut(u,$Ee,t)},UEe=J("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${lr.avatar}`]:t.avatar},{[`& .${lr.avatar}`]:t[`avatar${dt(s)}`]},{[`& .${lr.avatar}`]:t[`avatarColor${dt(r)}`]},{[`& .${lr.icon}`]:t.icon},{[`& .${lr.icon}`]:t[`icon${dt(s)}`]},{[`& .${lr.icon}`]:t[`iconColor${dt(o)}`]},{[`& .${lr.deleteIcon}`]:t.deleteIcon},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${dt(s)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIconColor${dt(r)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${dt(l)}Color${dt(r)}`]},t.root,t[`size${dt(s)}`],t[`color${dt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${dt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${dt(r)}`],t[l],t[`${l}${dt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${lr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${lr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${lr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${lr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${lr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${lr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${lr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ln(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ln(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ln(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ln(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${lr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${lr.avatar}`]:{marginLeft:4},[`& .${lr.avatarSmall}`]:{marginLeft:2},[`& .${lr.icon}`]:{marginLeft:4},[`& .${lr.iconSmall}`]:{marginLeft:2},[`& .${lr.deleteIcon}`]:{marginRight:5},[`& .${lr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ln(e.palette[t.color].main,.7)}`,[`&.${lr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ln(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${lr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ln(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),jEe=J("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${dt(r)}`]]}})(({ownerState:e})=>Q({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function q9(e){return e.key==="Backspace"||e.key==="Delete"}const WEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:g,onDelete:m,onKeyDown:y,onKeyUp:v,size:x="medium",variant:w="filled",tabIndex:I,skipFocusWhenDisabled:_=!1}=r,R=lt(r,FEe),U=M.useRef(null),D=so(U,n),b=W=>{W.stopPropagation(),m&&m(W)},T=W=>{W.currentTarget===W.target&&q9(W)&&W.preventDefault(),y&&y(W)},C=W=>{W.currentTarget===W.target&&(m&&q9(W)?m(W):W.key==="Escape"&&U.current&&U.current.blur()),v&&v(W)},O=a!==!1&&g?!0:a,$=O||m?gc:l||"div",j=Q({},r,{component:$,disabled:c,size:x,color:s,iconColor:M.isValidElement(f)&&f.props.color||s,onDelete:!!m,clickable:O,variant:w}),L=NEe(j),B=$===gc?Q({component:l||"div",focusVisibleClassName:L.focusVisible},m&&{disableRipple:!0}):{};let H=null;m&&(H=u&&M.isValidElement(u)?M.cloneElement(u,{className:vt(u.props.className,L.deleteIcon),onClick:b}):A(BEe,{className:vt(L.deleteIcon),onClick:b}));let q=null;o&&M.isValidElement(o)&&(q=M.cloneElement(o,{className:vt(L.avatar,o.props.className)}));let Y=null;return f&&M.isValidElement(f)&&(Y=M.cloneElement(f,{className:vt(L.icon,f.props.className)})),Se(UEe,Q({as:$,className:vt(L.root,i),disabled:O&&c?!0:void 0,onClick:g,onKeyDown:T,onKeyUp:C,ref:D,tabIndex:_&&c?-1:I,ownerState:j},B,R,{children:[q||Y,A(jEe,{className:vt(L.label),ownerState:j,children:p}),H]}))}),uc=WEe;function _y({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const zEe=M.createContext(void 0),JE=zEe;function Ap(){return M.useContext(JE)}function xD(e){return A(Exe,Q({},e,{defaultTheme:KE,themeId:Yh}))}function Q9(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function CD(e,t=!1){return e&&(Q9(e.value)&&e.value!==""||t&&Q9(e.defaultValue)&&e.defaultValue!=="")}function VEe(e){return e.startAdornment}function HEe(e){return Vt("MuiInputBase",e)}const qEe=Rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Q0=qEe,QEe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],XE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${dt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ZE=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},KEe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:g,type:m}=e,y={root:["root",`color${dt(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p==="small"&&"sizeSmall",c&&"multiline",g&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Ut(y,HEe,t)},eT=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:XE})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Q0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),tT=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Q0.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Q0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),YEe=A(xD,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),GEe=M.forwardRef(function(t,n){var r;const o=Bt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:m,fullWidth:y=!1,id:v,inputComponent:x="input",inputProps:w={},inputRef:I,maxRows:_,minRows:R,multiline:U=!1,name:D,onBlur:b,onChange:T,onClick:C,onFocus:O,onKeyDown:$,onKeyUp:j,placeholder:L,readOnly:B,renderSuffix:H,rows:q,slotProps:Y={},slots:W={},startAdornment:ie,type:le="text",value:fe}=o,Ee=lt(o,QEe),Ae=w.value!=null?w.value:fe,{current:Ie}=M.useRef(Ae!=null),De=M.useRef(),Ue=M.useCallback(k=>{},[]),ce=so(De,I,w.ref,Ue),[de,ve]=M.useState(!1),he=Ap(),pe=_y({props:o,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=he?he.focused:de,M.useEffect(()=>{!he&&p&&de&&(ve(!1),b&&b())},[he,p,de,b]);const ge=he&&he.onFilled,Ce=he&&he.onEmpty,_e=M.useCallback(k=>{CD(k)?ge&&ge():Ce&&Ce()},[ge,Ce]);pa(()=>{Ie&&_e({value:Ae})},[Ae,_e,Ie]);const Ne=k=>{if(pe.disabled){k.stopPropagation();return}O&&O(k),w.onFocus&&w.onFocus(k),he&&he.onFocus?he.onFocus(k):ve(!0)},Be=k=>{b&&b(k),w.onBlur&&w.onBlur(k),he&&he.onBlur?he.onBlur(k):ve(!1)},Ve=(k,...S)=>{if(!Ie){const P=k.target||De.current;if(P==null)throw new Error(lp(1));_e({value:P.value})}w.onChange&&w.onChange(k,...S),T&&T(k,...S)};M.useEffect(()=>{_e(De.current)},[]);const wt=k=>{De.current&&k.currentTarget===k.target&&De.current.focus(),C&&C(k)};let xe=x,je=w;U&&xe==="input"&&(q?je=Q({type:void 0,minRows:q,maxRows:q},je):je=Q({type:void 0,maxRows:_,minRows:R},je),xe=w_e);const We=k=>{_e(k.animationName==="mui-auto-fill-cancel"?De.current:{value:"x"})};M.useEffect(()=>{he&&he.setAdornedStart(!!ie)},[he,ie]);const Ge=Q({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:m,error:pe.error,focused:pe.focused,formControl:he,fullWidth:y,hiddenLabel:pe.hiddenLabel,multiline:U,size:pe.size,startAdornment:ie,type:le}),Fe=KEe(Ge),te=W.root||u.Root||eT,Z=Y.root||c.root||{},N=W.input||u.Input||tT;return je=Q({},je,(r=Y.input)!=null?r:c.input),Se(M.Fragment,{children:[!g&&YEe,Se(te,Q({},Z,!W0(te)&&{ownerState:Q({},Ge,Z.ownerState)},{ref:n,onClick:wt},Ee,{className:vt(Fe.root,Z.className,l,B&&"MuiInputBase-readOnly"),children:[ie,A(JE.Provider,{value:null,children:A(N,Q({ownerState:Ge,"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:pe.disabled,id:v,onAnimationStart:We,name:D,placeholder:L,readOnly:B,required:pe.required,rows:q,value:Ae,onKeyDown:$,onKeyUp:j,type:le},je,!W0(N)&&{as:xe,ownerState:Q({},Ge,je.ownerState)},{ref:ce,className:vt(Fe.input,je.className,B&&"MuiInputBase-readOnly"),onBlur:Be,onChange:Ve,onFocus:Ne}))}),m,H?H(Q({},pe,{startAdornment:ie})):null]}))]})}),AD=GEe;function JEe(e){return Vt("MuiInput",e)}const XEe=Q({},Q0,Rt("MuiInput",["root","underline","input"])),Gv=XEe;function ZEe(e){return Vt("MuiOutlinedInput",e)}const eTe=Q({},Q0,Rt("MuiOutlinedInput",["root","notchedOutline","input"])),gf=eTe;function tTe(e){return Vt("MuiFilledInput",e)}const nTe=Q({},Q0,Rt("MuiFilledInput",["root","underline","input"])),th=nTe,rTe=Yo(A("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),oTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],iTe={entering:{opacity:1},entered:{opacity:1}},aTe=M.forwardRef(function(t,n){const r=Fo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:y,style:v,timeout:x=o,TransitionComponent:w=mD}=t,I=lt(t,oTe),_=M.useRef(null),R=so(_,s.ref,n),U=L=>B=>{if(L){const H=_.current;B===void 0?L(H):L(H,B)}},D=U(p),b=U((L,B)=>{OG(L);const H=IA({style:v,timeout:x,easing:l},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",H),L.style.transition=r.transitions.create("opacity",H),c&&c(L,B)}),T=U(f),C=U(y),O=U(L=>{const B=IA({style:v,timeout:x,easing:l},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",B),L.style.transition=r.transitions.create("opacity",B),g&&g(L)}),$=U(m);return A(w,Q({appear:a,in:u,nodeRef:_,onEnter:b,onEntered:T,onEntering:D,onExit:O,onExited:$,onExiting:C,addEndListener:L=>{i&&i(_.current,L)},timeout:x},I,{children:(L,B)=>M.cloneElement(s,Q({style:Q({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},iTe[L],v,s.props.style),ref:R},B))}))}),Ra=aTe;function sTe(e){return Vt("MuiBackdrop",e)}Rt("MuiBackdrop",["root","invisible"]);const lTe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uTe=e=>{const{classes:t,invisible:n}=e;return Ut({root:["root",n&&"invisible"]},sTe,t)},cTe=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),dTe=M.forwardRef(function(t,n){var r,o,i;const a=Bt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:g,slotProps:m={},slots:y={},TransitionComponent:v=Ra,transitionDuration:x}=a,w=lt(a,lTe),I=Q({},a,{component:u,invisible:p}),_=uTe(I),R=(r=m.root)!=null?r:f.root;return A(v,Q({in:g,timeout:x},w,{children:A(cTe,Q({"aria-hidden":!0},R,{as:(o=(i=y.root)!=null?i:c.Root)!=null?o:u,className:vt(_.root,l,R==null?void 0:R.className),ownerState:Q({},I,R==null?void 0:R.ownerState),classes:_,ref:n,children:s}))}))}),RG=dTe,fTe=QE(),pTe=pG({themeId:Yh,defaultTheme:fTe,defaultClassName:"MuiBox-root",generateClassName:VY.generate}),Wr=pTe;function hTe(e){return Vt("MuiButton",e)}const gTe=Rt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Mx=gTe,mTe=M.createContext({}),yTe=mTe,vTe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],bTe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${dt(t)}`,`size${dt(o)}`,`${i}Size${dt(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${dt(o)}`],endIcon:["endIcon",`iconSize${dt(o)}`]},l=Ut(s,hTe,a);return Q({},a,l)},DG=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wTe=J(gc,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dt(n.color)}`],t[`size${dt(n.size)}`],t[`${n.variant}Size${dt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Mx.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Mx.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Ln(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Mx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mx.disabled}`]:{boxShadow:"none"}}),STe=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DG(e))),xTe=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DG(e))),CTe=M.forwardRef(function(t,n){const r=M.useContext(yTe),o=Q6(r,t),i=Bt({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:m,fullWidth:y=!1,size:v="medium",startIcon:x,type:w,variant:I="text"}=i,_=lt(i,vTe),R=Q({},i,{color:s,component:l,disabled:c,disableElevation:f,disableFocusRipple:p,fullWidth:y,size:v,type:w,variant:I}),U=bTe(R),D=x&&A(STe,{className:U.startIcon,ownerState:R,children:x}),b=g&&A(xTe,{className:U.endIcon,ownerState:R,children:g});return Se(wTe,Q({ownerState:R,className:vt(r.className,U.root,u),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:vt(U.focusVisible,m),ref:n,type:w},_,{classes:U,children:[D,a,b]}))}),Y1=CTe;function ATe(e){return Vt("PrivateSwitchBase",e)}Rt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _Te=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],ETe=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${dt(o)}`],input:["input"]};return Ut(i,ATe,t)},TTe=J(gc)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),kTe=J("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),ITe=M.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:g,inputRef:m,name:y,onBlur:v,onChange:x,onFocus:w,readOnly:I,required:_=!1,tabIndex:R,type:U,value:D}=t,b=lt(t,_Te),[T,C]=ls({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),O=Ap(),$=W=>{w&&w(W),O&&O.onFocus&&O.onFocus(W)},j=W=>{v&&v(W),O&&O.onBlur&&O.onBlur(W)},L=W=>{if(W.nativeEvent.defaultPrevented)return;const ie=W.target.checked;C(ie),x&&x(W,ie)};let B=l;O&&typeof B>"u"&&(B=O.disabled);const H=U==="checkbox"||U==="radio",q=Q({},t,{checked:T,disabled:B,disableFocusRipple:u,edge:c}),Y=ETe(q);return Se(TTe,Q({component:"span",className:vt(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:B,tabIndex:null,role:void 0,onFocus:$,onBlur:j,ownerState:q,ref:n},b,{children:[A(kTe,Q({autoFocus:r,checked:o,defaultChecked:s,className:Y.input,disabled:B,id:H?p:void 0,name:y,onChange:L,readOnly:I,ref:m,required:_,ownerState:q,tabIndex:R,type:U},U==="checkbox"&&D===void 0?{}:{value:D},g)),T?i:f]}))}),BG=ITe,PTe=Yo(A("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),MTe=Yo(A("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),OTe=Yo(A("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function RTe(e){return Vt("MuiCheckbox",e)}const DTe=Rt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),X3=DTe,BTe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$Te=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${dt(r)}`]},i=Ut(o,RTe,t);return Q({},t,i)},LTe=J(BG,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${dt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${X3.checked}, &.${X3.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${X3.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),FTe=A(MTe,{}),NTe=A(PTe,{}),UTe=A(OTe,{}),jTe=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=FTe,color:s="primary",icon:l=NTe,indeterminate:u=!1,indeterminateIcon:c=UTe,inputProps:f,size:p="medium",className:g}=i,m=lt(i,BTe),y=u?c:l,v=u?c:a,x=Q({},i,{color:s,indeterminate:u,size:p}),w=$Te(x);return A(LTe,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(v,{fontSize:(o=v.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:vt(w.root,g)},m,{classes:w}))}),WTe=jTe;function zTe(e){return Vt("MuiCircularProgress",e)}Rt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const VTe=["className","color","disableShrink","size","style","thickness","value","variant"];let nT=e=>e,K9,Y9,G9,J9;const mf=44,HTe=Au(K9||(K9=nT` +`),vl.rippleVisible,z_e,VO,({theme:e})=>e.transitions.easing.easeInOut,vl.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,vl.child,vl.childLeaving,V_e,VO,({theme:e})=>e.transitions.easing.easeInOut,vl.childPulsate,H_e,({theme:e})=>e.transitions.easing.easeInOut),K_e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,s=lt(r,j_e),[l,u]=M.useState([]),c=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=M.useRef(null),m=M.useRef(null),y=M.useRef(null);M.useEffect(()=>()=>{clearTimeout(g.current)},[]);const v=M.useCallback(_=>{const{pulsate:R,rippleX:U,rippleY:D,rippleSize:b,cb:T}=_;u(C=>[...C,A(Q_e,{classes:{ripple:vt(i.ripple,vl.ripple),rippleVisible:vt(i.rippleVisible,vl.rippleVisible),ripplePulsate:vt(i.ripplePulsate,vl.ripplePulsate),child:vt(i.child,vl.child),childLeaving:vt(i.childLeaving,vl.childLeaving),childPulsate:vt(i.childPulsate,vl.childPulsate)},timeout:VO,pulsate:R,rippleX:U,rippleY:D,rippleSize:b},c.current)]),c.current+=1,f.current=T},[i]),x=M.useCallback((_={},R={},U=()=>{})=>{const{pulsate:D=!1,center:b=o||R.pulsate,fakeElement:T=!1}=R;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const C=T?null:y.current,O=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,j,L;if(b||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)$=Math.round(O.width/2),j=Math.round(O.height/2);else{const{clientX:B,clientY:H}=_.touches&&_.touches.length>0?_.touches[0]:_;$=Math.round(B-O.left),j=Math.round(H-O.top)}if(b)L=Math.sqrt((2*O.width**2+O.height**2)/3),L%2===0&&(L+=1);else{const B=Math.max(Math.abs((C?C.clientWidth:0)-$),$)*2+2,H=Math.max(Math.abs((C?C.clientHeight:0)-j),j)*2+2;L=Math.sqrt(B**2+H**2)}_!=null&&_.touches?m.current===null&&(m.current=()=>{v({pulsate:D,rippleX:$,rippleY:j,rippleSize:L,cb:U})},g.current=setTimeout(()=>{m.current&&(m.current(),m.current=null)},W_e)):v({pulsate:D,rippleX:$,rippleY:j,rippleSize:L,cb:U})},[o,v]),w=M.useCallback(()=>{x({},{pulsate:!0})},[x]),I=M.useCallback((_,R)=>{if(clearTimeout(g.current),(_==null?void 0:_.type)==="touchend"&&m.current){m.current(),m.current=null,g.current=setTimeout(()=>{I(_,R)});return}m.current=null,u(U=>U.length>0?U.slice(1):U),f.current=R},[]);return M.useImperativeHandle(n,()=>({pulsate:w,start:x,stop:I}),[w,x,I]),A(q_e,Q({className:vt(vl.root,i.root,a),ref:y},s,{children:A(SD,{component:null,exit:!0,children:l})}))}),Y_e=K_e;function G_e(e){return Vt("MuiButtonBase",e)}const J_e=Rt("MuiButtonBase",["root","disabled","focusVisible"]),X_e=J_e,Z_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],eEe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Ut({root:["root",t&&"disabled",n&&"focusVisible"]},G_e,o);return n&&r&&(a.root+=` ${r}`),a},tEe=J("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${X_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),nEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:m,onClick:y,onContextMenu:v,onDragLeave:x,onFocus:w,onFocusVisible:I,onKeyDown:_,onKeyUp:R,onMouseDown:U,onMouseLeave:D,onMouseUp:b,onTouchEnd:T,onTouchMove:C,onTouchStart:O,tabIndex:$=0,TouchRippleProps:j,touchRippleRef:L,type:B}=r,H=lt(r,Z_e),q=M.useRef(null),Y=M.useRef(null),W=so(Y,L),{isFocusVisibleRef:ie,onFocus:le,onBlur:fe,ref:Ee}=Q6(),[Ae,Ie]=M.useState(!1);u&&Ae&&Ie(!1),M.useImperativeHandle(o,()=>({focusVisible:()=>{Ie(!0),q.current.focus()}}),[]);const[De,Ue]=M.useState(!1);M.useEffect(()=>{Ue(!0)},[]);const ce=De&&!c&&!u;M.useEffect(()=>{Ae&&p&&!c&&De&&Y.current.pulsate()},[c,p,Ae,De]);function de(S,P,V=f){return Or(K=>(P&&P(K),!V&&Y.current&&Y.current[S](K),!0))}const ve=de("start",U),he=de("stop",v),pe=de("stop",x),ge=de("stop",b),Ce=de("stop",S=>{Ae&&S.preventDefault(),D&&D(S)}),_e=de("start",O),Ne=de("stop",T),Be=de("stop",C),Ve=de("stop",S=>{fe(S),ie.current===!1&&Ie(!1),m&&m(S)},!1),wt=Or(S=>{q.current||(q.current=S.currentTarget),le(S),ie.current===!0&&(Ie(!0),I&&I(S)),w&&w(S)}),xe=()=>{const S=q.current;return l&&l!=="button"&&!(S.tagName==="A"&&S.href)},je=M.useRef(!1),We=Or(S=>{p&&!je.current&&Ae&&Y.current&&S.key===" "&&(je.current=!0,Y.current.stop(S,()=>{Y.current.start(S)})),S.target===S.currentTarget&&xe()&&S.key===" "&&S.preventDefault(),_&&_(S),S.target===S.currentTarget&&xe()&&S.key==="Enter"&&!u&&(S.preventDefault(),y&&y(S))}),Ge=Or(S=>{p&&S.key===" "&&Y.current&&Ae&&!S.defaultPrevented&&(je.current=!1,Y.current.stop(S,()=>{Y.current.pulsate(S)})),R&&R(S),y&&S.target===S.currentTarget&&xe()&&S.key===" "&&!S.defaultPrevented&&y(S)});let Fe=l;Fe==="button"&&(H.href||H.to)&&(Fe=g);const te={};Fe==="button"?(te.type=B===void 0?"button":B,te.disabled=u):(!H.href&&!H.to&&(te.role="button"),u&&(te["aria-disabled"]=u));const Z=so(n,Ee,q),N=Q({},r,{centerRipple:i,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:p,tabIndex:$,focusVisible:Ae}),k=eEe(N);return Se(tEe,Q({as:Fe,className:vt(k.root,s),ownerState:N,onBlur:Ve,onClick:y,onContextMenu:he,onFocus:wt,onKeyDown:We,onKeyUp:Ge,onMouseDown:ve,onMouseLeave:Ce,onMouseUp:ge,onDragLeave:pe,onTouchEnd:Ne,onTouchMove:Be,onTouchStart:_e,ref:Z,tabIndex:u?-1:$,type:B},te,H,{children:[a,ce?A(Y_e,Q({ref:W,center:i},j)):null]}))}),mc=nEe;function rEe(e){return Vt("MuiAlert",e)}const oEe=Rt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),W9=oEe;function iEe(e){return Vt("MuiIconButton",e)}const aEe=Rt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),sEe=aEe,lEe=["edge","children","className","color","disabled","disableFocusRipple","size"],uEe=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${dt(r)}`,o&&`edge${dt(o)}`,`size${dt(i)}`]};return Ut(a,iEe,t)},cEe=J(mc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${dt(n.color)}`],n.edge&&t[`edge${dt(n.edge)}`],t[`size${dt(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${sEe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),dEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=lt(r,lEe),p=Q({},r,{edge:o,color:s,disabled:l,disableFocusRipple:u,size:c}),g=uEe(p);return A(cEe,Q({className:vt(g.root,a),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:p},f,{children:i}))}),Vd=dEe,fEe=Yo(A("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),pEe=Yo(A("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),hEe=Yo(A("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),gEe=Yo(A("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),mEe=Yo(A("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),yEe=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],vEe=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`${t}${dt(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ut(i,rEe,o)},bEe=J(Ay,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dt(n.color||n.severity)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?AA:_A,r=e.palette.mode==="light"?_A:AA,o=t.color||t.severity;return Q({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${o}StandardBg`]:r(e.palette[o].light,.9),[`& .${W9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${o}Color`]:n(e.palette[o].light,.6),border:`1px solid ${(e.vars||e).palette[o].light}`,[`& .${W9.icon}`]:e.vars?{color:e.vars.palette.Alert[`${o}IconColor`]}:{color:e.palette[o].main}},o&&t.variant==="filled"&&Q({fontWeight:e.typography.fontWeightMedium},e.vars?{color:e.vars.palette.Alert[`${o}FilledColor`],backgroundColor:e.vars.palette.Alert[`${o}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[o].dark:e.palette[o].main,color:e.palette.getContrastText(e.palette[o].main)}))}),wEe=J("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),SEe=J("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),z9=J("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),V9={success:A(fEe,{fontSize:"inherit"}),warning:A(pEe,{fontSize:"inherit"}),error:A(hEe,{fontSize:"inherit"}),info:A(gEe,{fontSize:"inherit"})},xEe=M.forwardRef(function(t,n){var r,o,i,a,s,l;const u=Bt({props:t,name:"MuiAlert"}),{action:c,children:f,className:p,closeText:g="Close",color:m,components:y={},componentsProps:v={},icon:x,iconMapping:w=V9,onClose:I,role:_="alert",severity:R="success",slotProps:U={},slots:D={},variant:b="standard"}=u,T=lt(u,yEe),C=Q({},u,{color:m,severity:R,variant:b}),O=vEe(C),$=(r=(o=D.closeButton)!=null?o:y.CloseButton)!=null?r:Vd,j=(i=(a=D.closeIcon)!=null?a:y.CloseIcon)!=null?i:mEe,L=(s=U.closeButton)!=null?s:v.closeButton,B=(l=U.closeIcon)!=null?l:v.closeIcon;return Se(bEe,Q({role:_,elevation:0,ownerState:C,className:vt(O.root,p),ref:n},T,{children:[x!==!1?A(wEe,{ownerState:C,className:O.icon,children:x||w[R]||V9[R]}):null,A(SEe,{ownerState:C,className:O.message,children:f}),c!=null?A(z9,{ownerState:C,className:O.action,children:c}):null,c==null&&I?A(z9,{ownerState:C,className:O.action,children:A($,Q({size:"small","aria-label":g,title:g,color:"inherit",onClick:I},L,{children:A(j,Q({fontSize:"small"},B))}))}):null]}))}),CEe=xEe;function AEe(e){return Vt("MuiTypography",e)}Rt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _Ee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],EEe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${dt(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return Ut(s,AEe,a)},TEe=J("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${dt(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({margin:0},t.variant&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),H9={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},kEe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},IEe=e=>kEe[e]||e,PEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTypography"}),o=IEe(r.color),i=sD(Q({},r,{color:o})),{align:a="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=H9}=i,m=lt(i,_Ee),y=Q({},i,{align:a,color:o,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:p,variantMapping:g}),v=l||(f?"p":g[p]||H9[p])||"span",x=EEe(y);return A(TEe,Q({as:v,ref:n,ownerState:y,className:vt(x.root,s)},m))}),At=PEe,MEe=["components","componentsProps","slots","slotProps"],OEe=J(n_e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),REe=M.forwardRef(function(t,n){var r;const o=HE(),i=Bt({props:t,name:"MuiPopper"}),{components:a,componentsProps:s,slots:l,slotProps:u}=i,c=lt(i,MEe),f=(r=l==null?void 0:l.root)!=null?r:a==null?void 0:a.Root;return A(OEe,Q({direction:o==null?void 0:o.direction,slots:{root:f},slotProps:u??s},c,{ref:n}))}),xD=REe,DEe=Yo(A("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function BEe(e){return Vt("MuiChip",e)}const $Ee=Rt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),lr=$Ee,LEe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],FEe=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:s,variant:l}=e,u={root:["root",l,n&&"disabled",`size${dt(r)}`,`color${dt(o)}`,s&&"clickable",s&&`clickableColor${dt(o)}`,a&&"deletable",a&&`deletableColor${dt(o)}`,`${l}${dt(o)}`],label:["label",`label${dt(r)}`],avatar:["avatar",`avatar${dt(r)}`,`avatarColor${dt(o)}`],icon:["icon",`icon${dt(r)}`,`iconColor${dt(i)}`],deleteIcon:["deleteIcon",`deleteIcon${dt(r)}`,`deleteIconColor${dt(o)}`,`deleteIcon${dt(l)}Color${dt(o)}`]};return Ut(u,BEe,t)},NEe=J("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:s,variant:l}=n;return[{[`& .${lr.avatar}`]:t.avatar},{[`& .${lr.avatar}`]:t[`avatar${dt(s)}`]},{[`& .${lr.avatar}`]:t[`avatarColor${dt(r)}`]},{[`& .${lr.icon}`]:t.icon},{[`& .${lr.icon}`]:t[`icon${dt(s)}`]},{[`& .${lr.icon}`]:t[`iconColor${dt(o)}`]},{[`& .${lr.deleteIcon}`]:t.deleteIcon},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${dt(s)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIconColor${dt(r)}`]},{[`& .${lr.deleteIcon}`]:t[`deleteIcon${dt(l)}Color${dt(r)}`]},t.root,t[`size${dt(s)}`],t[`color${dt(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${dt(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${dt(r)}`],t[l],t[`${l}${dt(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${lr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${lr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${lr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${lr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${lr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${lr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${lr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Fn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Fn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Fn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${lr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${lr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${lr.avatar}`]:{marginLeft:4},[`& .${lr.avatarSmall}`]:{marginLeft:2},[`& .${lr.icon}`]:{marginLeft:4},[`& .${lr.iconSmall}`]:{marginLeft:2},[`& .${lr.deleteIcon}`]:{marginRight:5},[`& .${lr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fn(e.palette[t.color].main,.7)}`,[`&.${lr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${lr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${lr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Fn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),UEe=J("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${dt(r)}`]]}})(({ownerState:e})=>Q({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function q9(e){return e.key==="Backspace"||e.key==="Delete"}const jEe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:p,onClick:g,onDelete:m,onKeyDown:y,onKeyUp:v,size:x="medium",variant:w="filled",tabIndex:I,skipFocusWhenDisabled:_=!1}=r,R=lt(r,LEe),U=M.useRef(null),D=so(U,n),b=W=>{W.stopPropagation(),m&&m(W)},T=W=>{W.currentTarget===W.target&&q9(W)&&W.preventDefault(),y&&y(W)},C=W=>{W.currentTarget===W.target&&(m&&q9(W)?m(W):W.key==="Escape"&&U.current&&U.current.blur()),v&&v(W)},O=a!==!1&&g?!0:a,$=O||m?mc:l||"div",j=Q({},r,{component:$,disabled:c,size:x,color:s,iconColor:M.isValidElement(f)&&f.props.color||s,onDelete:!!m,clickable:O,variant:w}),L=FEe(j),B=$===mc?Q({component:l||"div",focusVisibleClassName:L.focusVisible},m&&{disableRipple:!0}):{};let H=null;m&&(H=u&&M.isValidElement(u)?M.cloneElement(u,{className:vt(u.props.className,L.deleteIcon),onClick:b}):A(DEe,{className:vt(L.deleteIcon),onClick:b}));let q=null;o&&M.isValidElement(o)&&(q=M.cloneElement(o,{className:vt(L.avatar,o.props.className)}));let Y=null;return f&&M.isValidElement(f)&&(Y=M.cloneElement(f,{className:vt(L.icon,f.props.className)})),Se(NEe,Q({as:$,className:vt(L.root,i),disabled:O&&c?!0:void 0,onClick:g,onKeyDown:T,onKeyUp:C,ref:D,tabIndex:_&&c?-1:I,ownerState:j},B,R,{children:[q||Y,A(UEe,{className:vt(L.label),ownerState:j,children:p}),H]}))}),cc=jEe;function _y({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const WEe=M.createContext(void 0),JE=WEe;function Ap(){return M.useContext(JE)}function CD(e){return A(_2e,Q({},e,{defaultTheme:KE,themeId:Yh}))}function Q9(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function AD(e,t=!1){return e&&(Q9(e.value)&&e.value!==""||t&&Q9(e.defaultValue)&&e.defaultValue!=="")}function zEe(e){return e.startAdornment}function VEe(e){return Vt("MuiInputBase",e)}const HEe=Rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Q0=HEe,qEe=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],XE=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${dt(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},ZE=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},QEe=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:p,startAdornment:g,type:m}=e,y={root:["root",`color${dt(n)}`,r&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p==="small"&&"sizeSmall",c&&"multiline",g&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",i&&"inputAdornedEnd",f&&"readOnly"]};return Ut(y,VEe,t)},eT=J("div",{name:"MuiInputBase",slot:"Root",overridesResolver:XE})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Q0.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),tT=J("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Q0.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Q0.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),KEe=A(CD,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),YEe=M.forwardRef(function(t,n){var r;const o=Bt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:m,fullWidth:y=!1,id:v,inputComponent:x="input",inputProps:w={},inputRef:I,maxRows:_,minRows:R,multiline:U=!1,name:D,onBlur:b,onChange:T,onClick:C,onFocus:O,onKeyDown:$,onKeyUp:j,placeholder:L,readOnly:B,renderSuffix:H,rows:q,slotProps:Y={},slots:W={},startAdornment:ie,type:le="text",value:fe}=o,Ee=lt(o,qEe),Ae=w.value!=null?w.value:fe,{current:Ie}=M.useRef(Ae!=null),De=M.useRef(),Ue=M.useCallback(k=>{},[]),ce=so(De,I,w.ref,Ue),[de,ve]=M.useState(!1),he=Ap(),pe=_y({props:o,muiFormControl:he,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=he?he.focused:de,M.useEffect(()=>{!he&&p&&de&&(ve(!1),b&&b())},[he,p,de,b]);const ge=he&&he.onFilled,Ce=he&&he.onEmpty,_e=M.useCallback(k=>{AD(k)?ge&&ge():Ce&&Ce()},[ge,Ce]);pa(()=>{Ie&&_e({value:Ae})},[Ae,_e,Ie]);const Ne=k=>{if(pe.disabled){k.stopPropagation();return}O&&O(k),w.onFocus&&w.onFocus(k),he&&he.onFocus?he.onFocus(k):ve(!0)},Be=k=>{b&&b(k),w.onBlur&&w.onBlur(k),he&&he.onBlur?he.onBlur(k):ve(!1)},Ve=(k,...S)=>{if(!Ie){const P=k.target||De.current;if(P==null)throw new Error(lp(1));_e({value:P.value})}w.onChange&&w.onChange(k,...S),T&&T(k,...S)};M.useEffect(()=>{_e(De.current)},[]);const wt=k=>{De.current&&k.currentTarget===k.target&&De.current.focus(),C&&C(k)};let xe=x,je=w;U&&xe==="input"&&(q?je=Q({type:void 0,minRows:q,maxRows:q},je):je=Q({type:void 0,maxRows:_,minRows:R},je),xe=b_e);const We=k=>{_e(k.animationName==="mui-auto-fill-cancel"?De.current:{value:"x"})};M.useEffect(()=>{he&&he.setAdornedStart(!!ie)},[he,ie]);const Ge=Q({},o,{color:pe.color||"primary",disabled:pe.disabled,endAdornment:m,error:pe.error,focused:pe.focused,formControl:he,fullWidth:y,hiddenLabel:pe.hiddenLabel,multiline:U,size:pe.size,startAdornment:ie,type:le}),Fe=QEe(Ge),te=W.root||u.Root||eT,Z=Y.root||c.root||{},N=W.input||u.Input||tT;return je=Q({},je,(r=Y.input)!=null?r:c.input),Se(M.Fragment,{children:[!g&&KEe,Se(te,Q({},Z,!W0(te)&&{ownerState:Q({},Ge,Z.ownerState)},{ref:n,onClick:wt},Ee,{className:vt(Fe.root,Z.className,l,B&&"MuiInputBase-readOnly"),children:[ie,A(JE.Provider,{value:null,children:A(N,Q({ownerState:Ge,"aria-invalid":pe.error,"aria-describedby":i,autoComplete:a,autoFocus:s,defaultValue:f,disabled:pe.disabled,id:v,onAnimationStart:We,name:D,placeholder:L,readOnly:B,required:pe.required,rows:q,value:Ae,onKeyDown:$,onKeyUp:j,type:le},je,!W0(N)&&{as:xe,ownerState:Q({},Ge,je.ownerState)},{ref:ce,className:vt(Fe.input,je.className,B&&"MuiInputBase-readOnly"),onBlur:Be,onChange:Ve,onFocus:Ne}))}),m,H?H(Q({},pe,{startAdornment:ie})):null]}))]})}),_D=YEe;function GEe(e){return Vt("MuiInput",e)}const JEe=Q({},Q0,Rt("MuiInput",["root","underline","input"])),Gv=JEe;function XEe(e){return Vt("MuiOutlinedInput",e)}const ZEe=Q({},Q0,Rt("MuiOutlinedInput",["root","notchedOutline","input"])),gf=ZEe;function eTe(e){return Vt("MuiFilledInput",e)}const tTe=Q({},Q0,Rt("MuiFilledInput",["root","underline","input"])),th=tTe,nTe=Yo(A("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),rTe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],oTe={entering:{opacity:1},entered:{opacity:1}},iTe=M.forwardRef(function(t,n){const r=Fo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:g,onExited:m,onExiting:y,style:v,timeout:x=o,TransitionComponent:w=yD}=t,I=lt(t,rTe),_=M.useRef(null),R=so(_,s.ref,n),U=L=>B=>{if(L){const H=_.current;B===void 0?L(H):L(H,B)}},D=U(p),b=U((L,B)=>{OG(L);const H=IA({style:v,timeout:x,easing:l},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",H),L.style.transition=r.transitions.create("opacity",H),c&&c(L,B)}),T=U(f),C=U(y),O=U(L=>{const B=IA({style:v,timeout:x,easing:l},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",B),L.style.transition=r.transitions.create("opacity",B),g&&g(L)}),$=U(m);return A(w,Q({appear:a,in:u,nodeRef:_,onEnter:b,onEntered:T,onEntering:D,onExit:O,onExited:$,onExiting:C,addEndListener:L=>{i&&i(_.current,L)},timeout:x},I,{children:(L,B)=>M.cloneElement(s,Q({style:Q({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},oTe[L],v,s.props.style),ref:R},B))}))}),Ra=iTe;function aTe(e){return Vt("MuiBackdrop",e)}Rt("MuiBackdrop",["root","invisible"]);const sTe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lTe=e=>{const{classes:t,invisible:n}=e;return Ut({root:["root",n&&"invisible"]},aTe,t)},uTe=J("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),cTe=M.forwardRef(function(t,n){var r,o,i;const a=Bt({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:p=!1,open:g,slotProps:m={},slots:y={},TransitionComponent:v=Ra,transitionDuration:x}=a,w=lt(a,sTe),I=Q({},a,{component:u,invisible:p}),_=lTe(I),R=(r=m.root)!=null?r:f.root;return A(v,Q({in:g,timeout:x},w,{children:A(uTe,Q({"aria-hidden":!0},R,{as:(o=(i=y.root)!=null?i:c.Root)!=null?o:u,className:vt(_.root,l,R==null?void 0:R.className),ownerState:Q({},I,R==null?void 0:R.ownerState),classes:_,ref:n,children:s}))}))}),RG=cTe,dTe=QE(),fTe=pG({themeId:Yh,defaultTheme:dTe,defaultClassName:"MuiBox-root",generateClassName:VY.generate}),Wr=fTe;function pTe(e){return Vt("MuiButton",e)}const hTe=Rt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),M2=hTe,gTe=M.createContext({}),mTe=gTe,yTe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vTe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e,s={root:["root",i,`${i}${dt(t)}`,`size${dt(o)}`,`${i}Size${dt(o)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${dt(o)}`],endIcon:["endIcon",`iconSize${dt(o)}`]},l=Ut(s,pTe,a);return Q({},a,l)},DG=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),bTe=J(mc,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${dt(n.color)}`],t[`size${dt(n.size)}`],t[`${n.variant}Size${dt(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],i=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${M2.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${M2.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Fn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${M2.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${M2.disabled}`]:{boxShadow:"none"}}),wTe=J("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${dt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},DG(e))),STe=J("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${dt(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},DG(e))),xTe=M.forwardRef(function(t,n){const r=M.useContext(mTe),o=K6(r,t),i=Bt({props:o,name:"MuiButton"}),{children:a,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:g,focusVisibleClassName:m,fullWidth:y=!1,size:v="medium",startIcon:x,type:w,variant:I="text"}=i,_=lt(i,yTe),R=Q({},i,{color:s,component:l,disabled:c,disableElevation:f,disableFocusRipple:p,fullWidth:y,size:v,type:w,variant:I}),U=vTe(R),D=x&&A(wTe,{className:U.startIcon,ownerState:R,children:x}),b=g&&A(STe,{className:U.endIcon,ownerState:R,children:g});return Se(bTe,Q({ownerState:R,className:vt(r.className,U.root,u),component:l,disabled:c,focusRipple:!p,focusVisibleClassName:vt(U.focusVisible,m),ref:n,type:w},_,{classes:U,children:[D,a,b]}))}),Y1=xTe;function CTe(e){return Vt("PrivateSwitchBase",e)}Rt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const ATe=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],_Te=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${dt(o)}`],input:["input"]};return Ut(i,CTe,t)},ETe=J(mc)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),TTe=J("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),kTe=M.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:p,inputProps:g,inputRef:m,name:y,onBlur:v,onChange:x,onFocus:w,readOnly:I,required:_=!1,tabIndex:R,type:U,value:D}=t,b=lt(t,ATe),[T,C]=ls({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),O=Ap(),$=W=>{w&&w(W),O&&O.onFocus&&O.onFocus(W)},j=W=>{v&&v(W),O&&O.onBlur&&O.onBlur(W)},L=W=>{if(W.nativeEvent.defaultPrevented)return;const ie=W.target.checked;C(ie),x&&x(W,ie)};let B=l;O&&typeof B>"u"&&(B=O.disabled);const H=U==="checkbox"||U==="radio",q=Q({},t,{checked:T,disabled:B,disableFocusRipple:u,edge:c}),Y=_Te(q);return Se(ETe,Q({component:"span",className:vt(Y.root,a),centerRipple:!0,focusRipple:!u,disabled:B,tabIndex:null,role:void 0,onFocus:$,onBlur:j,ownerState:q,ref:n},b,{children:[A(TTe,Q({autoFocus:r,checked:o,defaultChecked:s,className:Y.input,disabled:B,id:H?p:void 0,name:y,onChange:L,readOnly:I,ref:m,required:_,ownerState:q,tabIndex:R,type:U},U==="checkbox"&&D===void 0?{}:{value:D},g)),T?i:f]}))}),BG=kTe,ITe=Yo(A("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),PTe=Yo(A("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),MTe=Yo(A("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function OTe(e){return Vt("MuiCheckbox",e)}const RTe=Rt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Z3=RTe,DTe=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],BTe=e=>{const{classes:t,indeterminate:n,color:r}=e,o={root:["root",n&&"indeterminate",`color${dt(r)}`]},i=Ut(o,OTe,t);return Q({},t,i)},$Te=J(BG,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${dt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Z3.checked}, &.${Z3.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Z3.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),LTe=A(PTe,{}),FTe=A(ITe,{}),NTe=A(MTe,{}),UTe=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiCheckbox"}),{checkedIcon:a=LTe,color:s="primary",icon:l=FTe,indeterminate:u=!1,indeterminateIcon:c=NTe,inputProps:f,size:p="medium",className:g}=i,m=lt(i,DTe),y=u?c:l,v=u?c:a,x=Q({},i,{color:s,indeterminate:u,size:p}),w=BTe(x);return A($Te,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(v,{fontSize:(o=v.props.fontSize)!=null?o:p}),ownerState:x,ref:n,className:vt(w.root,g)},m,{classes:w}))}),jTe=UTe;function WTe(e){return Vt("MuiCircularProgress",e)}Rt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const zTe=["className","color","disableShrink","size","style","thickness","value","variant"];let nT=e=>e,K9,Y9,G9,J9;const mf=44,VTe=_u(K9||(K9=nT` 0% { transform: rotate(0deg); } @@ -153,7 +153,7 @@ Error generating stack: `+i.message+` 100% { transform: rotate(360deg); } -`)),qTe=Au(Y9||(Y9=nT` +`)),HTe=_u(Y9||(Y9=nT` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -168,11 +168,11 @@ Error generating stack: `+i.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),QTe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${dt(r)}`],svg:["svg"],circle:["circle",`circle${dt(n)}`,o&&"circleDisableShrink"]};return Ut(i,zTe,t)},KTe=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${dt(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&up(G9||(G9=nT` +`)),qTe=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${dt(r)}`],svg:["svg"],circle:["circle",`circle${dt(n)}`,o&&"circleDisableShrink"]};return Ut(i,WTe,t)},QTe=J("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${dt(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&up(G9||(G9=nT` animation: ${0} 1.4s linear infinite; - `),HTe)),YTe=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),GTe=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${dt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&up(J9||(J9=nT` + `),VTe)),KTe=J("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),YTe=J("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${dt(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&up(J9||(J9=nT` animation: ${0} 1.4s ease-in-out infinite; - `),qTe)),JTe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=lt(r,VTe),g=Q({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),m=QTe(g),y={},v={},x={};if(f==="determinate"){const w=2*Math.PI*((mf-u)/2);y.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return A(KTe,Q({className:vt(m.root,o),style:Q({width:s,height:s},v,l),ownerState:g,ref:n,role:"progressbar"},x,p,{children:A(YTe,{className:m.svg,ownerState:g,viewBox:`${mf/2} ${mf/2} ${mf} ${mf}`,children:A(GTe,{className:m.circle,style:y,ownerState:g,cx:mf,cy:mf,r:(mf-u)/2,fill:"none",strokeWidth:u})})}))}),_D=JTe,XTe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),ZTe=e=>Q({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),eke=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u;o[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(u=l.palette)==null?void 0:u.mode}});let i=Q({html:XTe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},ZTe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const a=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function tke(e){const t=Bt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Se(M.Fragment,{children:[A(xD,{styles:o=>eke(o,r)}),n]})}const nke=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],rke=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),oke=J(RG,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),ike=M.forwardRef(function(t,n){var r,o,i,a,s,l;const u=Bt({name:"MuiModal",props:t}),{BackdropComponent:c=oke,BackdropProps:f,classes:p,className:g,closeAfterTransition:m=!1,children:y,component:v,components:x={},componentsProps:w={},disableAutoFocus:I=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:R=!1,disablePortal:U=!1,disableRestoreFocus:D=!1,disableScrollLock:b=!1,hideBackdrop:T=!1,keepMounted:C=!1,slotProps:O,slots:$,theme:j}=u,L=lt(u,nke),[B,H]=M.useState(!0),q={closeAfterTransition:m,disableAutoFocus:I,disableEnforceFocus:_,disableEscapeKeyDown:R,disablePortal:U,disableRestoreFocus:D,disableScrollLock:b,hideBackdrop:T,keepMounted:C},Y=Q({},u,q,{exited:B}),W=(r=(o=$==null?void 0:$.root)!=null?o:x.Root)!=null?r:rke,ie=(i=(a=$==null?void 0:$.backdrop)!=null?a:x.Backdrop)!=null?i:c,le=(s=O==null?void 0:O.root)!=null?s:w.root,fe=(l=O==null?void 0:O.backdrop)!=null?l:w.backdrop;return A(m_e,Q({slots:{root:W,backdrop:ie},slotProps:{root:()=>Q({},nw(le,Y),!W0(W)&&{as:v,theme:j},{className:vt(g,le==null?void 0:le.className,p==null?void 0:p.root,!Y.open&&Y.exited&&(p==null?void 0:p.hidden))}),backdrop:()=>Q({},f,nw(fe,Y),{className:vt(fe==null?void 0:fe.className,p==null?void 0:p.backdrop)})},onTransitionEnter:()=>H(!1),onTransitionExited:()=>H(!0),ref:n},L,q,{children:y}))}),ED=ike;function ake(e){return Vt("MuiDialog",e)}const ske=Rt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pb=ske,lke=M.createContext({}),uke=lke,cke=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],dke=J(RG,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fke=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${dt(n)}`],paper:["paper",`paperScroll${dt(n)}`,`paperWidth${dt(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,ake,t)},pke=J(ED,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),hke=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${dt(n.scroll)}`]]}})(({ownerState:e})=>Q({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),gke=J(Ay,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${dt(n.scroll)}`],t[`paperWidth${dt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Q({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${pb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${pb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${pb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),mke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialog"}),o=Fo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:v,onClose:x,open:w,PaperComponent:I=Ay,PaperProps:_={},scroll:R="paper",TransitionComponent:U=Ra,transitionDuration:D=i,TransitionProps:b}=r,T=lt(r,cke),C=Q({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:m,maxWidth:y,scroll:R}),O=fke(C),$=M.useRef(),j=q=>{$.current=q.target===q.currentTarget},L=q=>{$.current&&($.current=null,v&&v(q),x&&x(q,"backdropClick"))},B=Xw(s),H=M.useMemo(()=>({titleId:B}),[B]);return A(pke,Q({className:vt(O.root,f),closeAfterTransition:!0,components:{Backdrop:dke},componentsProps:{backdrop:Q({transitionDuration:D,as:l},u)},disableEscapeKeyDown:p,onClose:x,open:w,ref:n,onClick:L,ownerState:C},T,{children:A(U,Q({appear:!0,in:w,timeout:D,role:"presentation"},b,{children:A(hke,{className:vt(O.container),onMouseDown:j,ownerState:C,children:A(gke,Q({as:I,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B},_,{className:vt(O.paper,_.className),ownerState:C,children:A(uke.Provider,{value:H,children:c})}))})}))}))}),yke=mke;function vke(e){return Vt("MuiDialogActions",e)}Rt("MuiDialogActions",["root","spacing"]);const bke=["className","disableSpacing"],wke=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},vke,t)},Ske=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Q({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),xke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=lt(r,bke),s=Q({},r,{disableSpacing:i}),l=wke(s);return A(Ske,Q({className:vt(l.root,o),ownerState:s,ref:n},a))}),Cke=xke;function Ake(e){return Vt("MuiDialogContent",e)}Rt("MuiDialogContent",["root","dividers"]);const _ke=Rt("MuiDialogTitle",["root"]),Eke=_ke,Tke=["className","dividers"],kke=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},Ake,t)},Ike=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Q({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${Eke.root} + &`]:{paddingTop:0}})),Pke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=lt(r,Tke),s=Q({},r,{dividers:i}),l=kke(s);return A(Ike,Q({className:vt(l.root,o),ownerState:s,ref:n},a))}),$G=Pke,Mke=Rt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),X9=Mke,Oke=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Rke=e=>{const{classes:t,disableUnderline:n}=e,o=Ut({root:["root",!n&&"underline"],input:["input"]},tTe,t);return Q({},t,o)},Dke=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XE(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${th.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${th.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${th.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${th.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${th.disabled}, .${th.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${th.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Bke=J(tT,{name:"MuiFilledInput",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>Q({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),LG=M.forwardRef(function(t,n){var r,o,i,a;const s=Bt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:m={},type:y="text"}=s,v=lt(s,Oke),x=Q({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),w=Rke(s),I={root:{ownerState:x},input:{ownerState:x}},_=g??u?Tl(g??u,I):I,R=(r=(o=m.root)!=null?o:l.Root)!=null?r:Dke,U=(i=(a=m.input)!=null?a:l.Input)!=null?i:Bke;return A(AD,Q({slots:{root:R,input:U},componentsProps:_,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:y},v,{classes:w}))});LG.muiName="Input";const FG=LG;function $ke(e){return Vt("MuiFormControl",e)}Rt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Lke=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Fke=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${dt(n)}`,r&&"fullWidth"]};return Ut(o,$ke,t)},Nke=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${dt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Uke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:m=!1,size:y="medium",variant:v="outlined"}=r,x=lt(r,Lke),w=Q({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:m,size:y,variant:v}),I=Fke(w),[_,R]=M.useState(()=>{let j=!1;return o&&M.Children.forEach(o,L=>{if(!CC(L,["Input","Select"]))return;const B=CC(L,["Select"])?L.props.input:L;B&&VEe(B.props)&&(j=!0)}),j}),[U,D]=M.useState(()=>{let j=!1;return o&&M.Children.forEach(o,L=>{CC(L,["Input","Select"])&&CD(L.props,!0)&&(j=!0)}),j}),[b,T]=M.useState(!1);l&&b&&T(!1);const C=c!==void 0&&!l?c:b;let O;const $=M.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:a,disabled:l,error:u,filled:U,focused:C,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{T(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{T(!0)},registerEffect:O,required:m,variant:v}),[_,a,l,u,U,C,f,p,O,m,y,v]);return A(JE.Provider,{value:$,children:A(Nke,Q({as:s,ownerState:w,className:vt(I.root,i),ref:n},x,{children:o}))})}),NG=Uke;function jke(e){return Vt("MuiFormHelperText",e)}const Wke=Rt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Z9=Wke;var ej;const zke=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Vke=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${dt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ut(u,jke,t)},Hke=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${dt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Z9.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Z9.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),qke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=lt(r,zke),l=Ap(),u=_y({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=Q({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Vke(c);return A(Hke,Q({as:a,ownerState:c,className:vt(f.root,i),ref:n},s,{children:o===" "?ej||(ej=A("span",{className:"notranslate",children:"​"})):o}))}),Qke=qke;function Kke(e){return Vt("MuiFormLabel",e)}const Yke=Rt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hb=Yke,Gke=["children","className","color","component","disabled","error","filled","focused","required"],Jke=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${dt(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ut(l,Kke,t)},Xke=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${hb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}})),Zke=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}})),eIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=lt(r,Gke),l=Ap(),u=_y({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=Q({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Jke(c);return Se(Xke,Q({as:a,ownerState:c,className:vt(f.root,i),ref:n},s,{children:[o,u.required&&Se(Zke,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),tIe=eIe,nIe=M.createContext(),tj=nIe;function rIe(e){return Vt("MuiGrid",e)}const oIe=[0,1,2,3,4,5,6,7,8,9,10],iIe=["column-reverse","column","row-reverse","row"],aIe=["nowrap","wrap-reverse","wrap"],Jv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sIe=Rt("MuiGrid",["root","container","item","zeroMinWidth",...oIe.map(e=>`spacing-xs-${e}`),...iIe.map(e=>`direction-xs-${e}`),...aIe.map(e=>`wrap-xs-${e}`),...Jv.map(e=>`grid-xs-${e}`),...Jv.map(e=>`grid-sm-${e}`),...Jv.map(e=>`grid-md-${e}`),...Jv.map(e=>`grid-lg-${e}`),...Jv.map(e=>`grid-xl-${e}`)]),iw=sIe,lIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function S0(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function uIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=LE({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${S0(c)})`;u={flexBasis:f,maxWidth:f}}}i=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function cIe({theme:e,ownerState:t}){const n=LE({values:t.direction,breakpoints:e.breakpoints.values});return Dl({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${iw.item}`]={maxWidth:"none"}),o})}function UG({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function dIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=LE({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=UG({breakpoints:e.breakpoints.values,values:i})),o=Dl({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${S0(c)}`,[`& > .${iw.item}`]:{paddingTop:S0(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${iw.item}`]:{paddingTop:0}}})}return o}function fIe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=LE({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=UG({breakpoints:e.breakpoints.values,values:i})),o=Dl({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${S0(c)})`,marginLeft:`-${S0(c)}`,[`& > .${iw.item}`]:{paddingLeft:S0(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${iw.item}`]:{paddingLeft:0}}})}return o}function pIe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const hIe=J("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=pIe(a,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>Q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),cIe,dIe,fIe,uIe);function gIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const mIe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=gIe(i,l));const c=[];l.forEach(p=>{const g=e[p];g&&c.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ut(f,rIe,t)},yIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiGrid"}),{breakpoints:o}=Fo(),i=aD(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:m=0,wrap:y="wrap",zeroMinWidth:v=!1}=i,x=lt(i,lIe),w=g||m,I=l||m,_=M.useContext(tj),R=c?s||12:_,U={},D=Q({},x);o.keys.forEach(C=>{x[C]!=null&&(U[C]=x[C],delete D[C])});const b=Q({},i,{columns:R,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:I,wrap:y,zeroMinWidth:v,spacing:m},U,{breakpoints:o.keys}),T=mIe(b);return A(tj.Provider,{value:R,children:A(hIe,Q({ownerState:b,className:vt(T.root,a),as:u,ref:n},D))})}),vIe=yIe,bIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function VO(e){return`scale(${e}, ${e**2})`}const wIe={entering:{opacity:1,transform:VO(1)},entered:{opacity:1,transform:"none"}},Z3=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jG=M.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:g,style:m,timeout:y="auto",TransitionComponent:v=mD}=t,x=lt(t,bIe),w=M.useRef(),I=M.useRef(),_=Fo(),R=M.useRef(null),U=so(R,i.ref,n),D=B=>H=>{if(B){const q=R.current;H===void 0?B(q):B(q,H)}},b=D(c),T=D((B,H)=>{OG(B);const{duration:q,delay:Y,easing:W}=IA({style:m,timeout:y,easing:a},{mode:"enter"});let ie;y==="auto"?(ie=_.transitions.getAutoHeightDuration(B.clientHeight),I.current=ie):ie=q,B.style.transition=[_.transitions.create("opacity",{duration:ie,delay:Y}),_.transitions.create("transform",{duration:Z3?ie:ie*.666,delay:Y,easing:W})].join(","),l&&l(B,H)}),C=D(u),O=D(g),$=D(B=>{const{duration:H,delay:q,easing:Y}=IA({style:m,timeout:y,easing:a},{mode:"exit"});let W;y==="auto"?(W=_.transitions.getAutoHeightDuration(B.clientHeight),I.current=W):W=H,B.style.transition=[_.transitions.create("opacity",{duration:W,delay:q}),_.transitions.create("transform",{duration:Z3?W:W*.666,delay:Z3?q:q||W*.333,easing:Y})].join(","),B.style.opacity=0,B.style.transform=VO(.75),f&&f(B)}),j=D(p),L=B=>{y==="auto"&&(w.current=setTimeout(B,I.current||0)),r&&r(R.current,B)};return M.useEffect(()=>()=>{clearTimeout(w.current)},[]),A(v,Q({appear:o,in:s,nodeRef:R,onEnter:T,onEntered:C,onEntering:b,onExit:$,onExited:j,onExiting:O,addEndListener:L,timeout:y==="auto"?null:y},x,{children:(B,H)=>M.cloneElement(i,Q({style:Q({opacity:0,transform:VO(.75),visibility:B==="exited"&&!s?"hidden":void 0},wIe[B],m,i.props.style),ref:U},H))}))});jG.muiSupportAuto=!0;const PA=jG;function SIe(e,t,n,r,o){const[i,a]=M.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return pa(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),i}const WG=zh["useSyncExternalStore"];function xIe(e,t,n,r,o){const i=M.useCallback(()=>t,[t]),a=M.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[s,l]=M.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[i,n,e]);return WG(l,s,a)}function rT(e,t={}){const n=HE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=gG({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(WG!==void 0?xIe:SIe)(l,o,i,a,s)}const CIe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],AIe=e=>{const{classes:t,disableUnderline:n}=e,o=Ut({root:["root",!n&&"underline"],input:["input"]},JEe,t);return Q({},t,o)},_Ie=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XE(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Q({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gv.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gv.disabled}, .${Gv.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Gv.disabled}:before`]:{borderBottomStyle:"dotted"}})}),EIe=J(tT,{name:"MuiInput",slot:"Input",overridesResolver:ZE})({}),zG=M.forwardRef(function(t,n){var r,o,i,a;const s=Bt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:m,slots:y={},type:v="text"}=s,x=lt(s,CIe),w=AIe(s),_={root:{ownerState:{disableUnderline:l}}},R=m??c?Tl(m??c,_):_,U=(r=(o=y.root)!=null?o:u.Root)!=null?r:_Ie,D=(i=(a=y.input)!=null?a:u.Input)!=null?i:EIe;return A(AD,Q({slots:{root:U,input:D},slotProps:R,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:v},x,{classes:w}))});zG.muiName="Input";const VG=zG;function TIe(e){return Vt("MuiInputAdornment",e)}const kIe=Rt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),nj=kIe;var rj;const IIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],PIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${dt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},MIe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${dt(o)}`,a,r&&"hiddenLabel",i&&`size${dt(i)}`]};return Ut(s,TIe,t)},OIe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:PIe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${nj.positionStart}&:not(.${nj.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),RIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=lt(r,IIe),p=Ap()||{};let g=c;c&&p.variant,p&&!g&&(g=p.variant);const m=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:g}),y=MIe(m);return A(JE.Provider,{value:null,children:A(OIe,Q({as:a,ownerState:m,className:vt(y.root,i),ref:n},f,{children:typeof o=="string"&&!l?A(At,{color:"text.secondary",children:o}):Se(M.Fragment,{children:[u==="start"?rj||(rj=A("span",{className:"notranslate",children:"​"})):null,o]})}))})}),DIe=RIe;function BIe(e){return Vt("MuiInputLabel",e)}Rt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const $Ie=["disableAnimation","margin","shrink","variant","className"],LIe=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,u=Ut({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},BIe,t);return Q({},t,u)},FIe=J(tIe,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hb.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Q({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),NIe=M.forwardRef(function(t,n){const r=Bt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=lt(r,$Ie),l=Ap();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=_y({props:r,muiFormControl:l,states:["size","variant","required"]}),f=Q({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=LIe(f);return A(FIe,Q({"data-shrink":u,ownerState:f,ref:n,className:vt(p.root,a)},s,{classes:p}))}),UIe=NIe;function jIe(e){return Vt("MuiLinearProgress",e)}Rt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const WIe=["className","color","value","valueBuffer","variant"];let Ey=e=>e,oj,ij,aj,sj,lj,uj;const HO=4,zIe=Au(oj||(oj=Ey` + `),HTe)),GTe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:s=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,p=lt(r,zTe),g=Q({},r,{color:i,disableShrink:a,size:s,thickness:u,value:c,variant:f}),m=qTe(g),y={},v={},x={};if(f==="determinate"){const w=2*Math.PI*((mf-u)/2);y.strokeDasharray=w.toFixed(3),x["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*w).toFixed(3)}px`,v.transform="rotate(-90deg)"}return A(QTe,Q({className:vt(m.root,o),style:Q({width:s,height:s},v,l),ownerState:g,ref:n,role:"progressbar"},x,p,{children:A(KTe,{className:m.svg,ownerState:g,viewBox:`${mf/2} ${mf/2} ${mf} ${mf}`,children:A(YTe,{className:m.circle,style:y,ownerState:g,cx:mf,cy:mf,r:(mf-u)/2,fill:"none",strokeWidth:u})})}))}),ED=GTe,JTe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),XTe=e=>Q({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),ZTe=(e,t=!1)=>{var n,r;const o={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,l])=>{var u;o[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(u=l.palette)==null?void 0:u.mode}});let i=Q({html:JTe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},XTe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},o);const a=(n=e.components)==null||(r=n.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function eke(e){const t=Bt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return Se(M.Fragment,{children:[A(CD,{styles:o=>ZTe(o,r)}),n]})}const tke=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],nke=J("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),rke=J(RG,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),oke=M.forwardRef(function(t,n){var r,o,i,a,s,l;const u=Bt({name:"MuiModal",props:t}),{BackdropComponent:c=rke,BackdropProps:f,classes:p,className:g,closeAfterTransition:m=!1,children:y,component:v,components:x={},componentsProps:w={},disableAutoFocus:I=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:R=!1,disablePortal:U=!1,disableRestoreFocus:D=!1,disableScrollLock:b=!1,hideBackdrop:T=!1,keepMounted:C=!1,slotProps:O,slots:$,theme:j}=u,L=lt(u,tke),[B,H]=M.useState(!0),q={closeAfterTransition:m,disableAutoFocus:I,disableEnforceFocus:_,disableEscapeKeyDown:R,disablePortal:U,disableRestoreFocus:D,disableScrollLock:b,hideBackdrop:T,keepMounted:C},Y=Q({},u,q,{exited:B}),W=(r=(o=$==null?void 0:$.root)!=null?o:x.Root)!=null?r:nke,ie=(i=(a=$==null?void 0:$.backdrop)!=null?a:x.Backdrop)!=null?i:c,le=(s=O==null?void 0:O.root)!=null?s:w.root,fe=(l=O==null?void 0:O.backdrop)!=null?l:w.backdrop;return A(g_e,Q({slots:{root:W,backdrop:ie},slotProps:{root:()=>Q({},nw(le,Y),!W0(W)&&{as:v,theme:j},{className:vt(g,le==null?void 0:le.className,p==null?void 0:p.root,!Y.open&&Y.exited&&(p==null?void 0:p.hidden))}),backdrop:()=>Q({},f,nw(fe,Y),{className:vt(fe==null?void 0:fe.className,p==null?void 0:p.backdrop)})},onTransitionEnter:()=>H(!1),onTransitionExited:()=>H(!0),ref:n},L,q,{children:y}))}),TD=oke;function ike(e){return Vt("MuiDialog",e)}const ake=Rt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),pb=ake,ske=M.createContext({}),lke=ske,uke=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],cke=J(RG,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),dke=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${dt(n)}`],paper:["paper",`paperScroll${dt(n)}`,`paperWidth${dt(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return Ut(a,ike,t)},fke=J(TD,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),pke=J("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${dt(n.scroll)}`]]}})(({ownerState:e})=>Q({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),hke=J(Ay,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${dt(n.scroll)}`],t[`paperWidth${dt(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>Q({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`${e.breakpoints.values.xs}${e.breakpoints.unit}`,[`&.${pb.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${pb.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${pb.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),gke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialog"}),o=Fo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":s,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:m=!1,maxWidth:y="sm",onBackdropClick:v,onClose:x,open:w,PaperComponent:I=Ay,PaperProps:_={},scroll:R="paper",TransitionComponent:U=Ra,transitionDuration:D=i,TransitionProps:b}=r,T=lt(r,uke),C=Q({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:m,maxWidth:y,scroll:R}),O=dke(C),$=M.useRef(),j=q=>{$.current=q.target===q.currentTarget},L=q=>{$.current&&($.current=null,v&&v(q),x&&x(q,"backdropClick"))},B=Xw(s),H=M.useMemo(()=>({titleId:B}),[B]);return A(fke,Q({className:vt(O.root,f),closeAfterTransition:!0,components:{Backdrop:cke},componentsProps:{backdrop:Q({transitionDuration:D,as:l},u)},disableEscapeKeyDown:p,onClose:x,open:w,ref:n,onClick:L,ownerState:C},T,{children:A(U,Q({appear:!0,in:w,timeout:D,role:"presentation"},b,{children:A(pke,{className:vt(O.container),onMouseDown:j,ownerState:C,children:A(hke,Q({as:I,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":B},_,{className:vt(O.paper,_.className),ownerState:C,children:A(lke.Provider,{value:H,children:c})}))})}))}))}),mke=gke;function yke(e){return Vt("MuiDialogActions",e)}Rt("MuiDialogActions",["root","spacing"]);const vke=["className","disableSpacing"],bke=e=>{const{classes:t,disableSpacing:n}=e;return Ut({root:["root",!n&&"spacing"]},yke,t)},wke=J("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>Q({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),Ske=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1}=r,a=lt(r,vke),s=Q({},r,{disableSpacing:i}),l=bke(s);return A(wke,Q({className:vt(l.root,o),ownerState:s,ref:n},a))}),xke=Ske;function Cke(e){return Vt("MuiDialogContent",e)}Rt("MuiDialogContent",["root","dividers"]);const Ake=Rt("MuiDialogTitle",["root"]),_ke=Ake,Eke=["className","dividers"],Tke=e=>{const{classes:t,dividers:n}=e;return Ut({root:["root",n&&"dividers"]},Cke,t)},kke=J("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>Q({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${_ke.root} + &`]:{paddingTop:0}})),Ike=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1}=r,a=lt(r,Eke),s=Q({},r,{dividers:i}),l=Tke(s);return A(kke,Q({className:vt(l.root,o),ownerState:s,ref:n},a))}),$G=Ike,Pke=Rt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),X9=Pke,Mke=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Oke=e=>{const{classes:t,disableUnderline:n}=e,o=Ut({root:["root",!n&&"underline"],input:["input"]},eTe,t);return Q({},t,o)},Rke=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XE(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${th.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${th.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${th.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${th.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${th.disabled}, .${th.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${th.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Dke=J(tT,{name:"MuiFilledInput",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>Q({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),LG=M.forwardRef(function(t,n){var r,o,i,a;const s=Bt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:m={},type:y="text"}=s,v=lt(s,Mke),x=Q({},s,{fullWidth:c,inputComponent:f,multiline:p,type:y}),w=Oke(s),I={root:{ownerState:x},input:{ownerState:x}},_=g??u?Tl(g??u,I):I,R=(r=(o=m.root)!=null?o:l.Root)!=null?r:Rke,U=(i=(a=m.input)!=null?a:l.Input)!=null?i:Dke;return A(_D,Q({slots:{root:R,input:U},componentsProps:_,fullWidth:c,inputComponent:f,multiline:p,ref:n,type:y},v,{classes:w}))});LG.muiName="Input";const FG=LG;function Bke(e){return Vt("MuiFormControl",e)}Rt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $ke=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Lke=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${dt(n)}`,r&&"fullWidth"]};return Ut(o,Bke,t)},Fke=J("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${dt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Nke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:m=!1,size:y="medium",variant:v="outlined"}=r,x=lt(r,$ke),w=Q({},r,{color:a,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:m,size:y,variant:v}),I=Lke(w),[_,R]=M.useState(()=>{let j=!1;return o&&M.Children.forEach(o,L=>{if(!CC(L,["Input","Select"]))return;const B=CC(L,["Select"])?L.props.input:L;B&&zEe(B.props)&&(j=!0)}),j}),[U,D]=M.useState(()=>{let j=!1;return o&&M.Children.forEach(o,L=>{CC(L,["Input","Select"])&&AD(L.props,!0)&&(j=!0)}),j}),[b,T]=M.useState(!1);l&&b&&T(!1);const C=c!==void 0&&!l?c:b;let O;const $=M.useMemo(()=>({adornedStart:_,setAdornedStart:R,color:a,disabled:l,error:u,filled:U,focused:C,fullWidth:f,hiddenLabel:p,size:y,onBlur:()=>{T(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{T(!0)},registerEffect:O,required:m,variant:v}),[_,a,l,u,U,C,f,p,O,m,y,v]);return A(JE.Provider,{value:$,children:A(Fke,Q({as:s,ownerState:w,className:vt(I.root,i),ref:n},x,{children:o}))})}),NG=Nke;function Uke(e){return Vt("MuiFormHelperText",e)}const jke=Rt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),Z9=jke;var ej;const Wke=["children","className","component","disabled","error","filled","focused","margin","required","variant"],zke=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:s,required:l}=e,u={root:["root",o&&"disabled",i&&"error",r&&`size${dt(r)}`,n&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ut(u,Uke,t)},Vke=J("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${dt(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Z9.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Z9.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Hke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p"}=r,s=lt(r,Wke),l=Ap(),u=_y({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=Q({},r,{component:a,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=zke(c);return A(Vke,Q({as:a,ownerState:c,className:vt(f.root,i),ref:n},s,{children:o===" "?ej||(ej=A("span",{className:"notranslate",children:"​"})):o}))}),qke=Hke;function Qke(e){return Vt("MuiFormLabel",e)}const Kke=Rt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),hb=Kke,Yke=["children","className","color","component","disabled","error","filled","focused","required"],Gke=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:s}=e,l={root:["root",`color${dt(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",s&&"required"],asterisk:["asterisk",i&&"error"]};return Ut(l,Qke,t)},Jke=J("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${hb.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${hb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}})),Xke=J("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${hb.error}`]:{color:(e.vars||e).palette.error.main}})),Zke=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiFormLabel"}),{children:o,className:i,component:a="label"}=r,s=lt(r,Yke),l=Ap(),u=_y({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=Q({},r,{color:u.color||"primary",component:a,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Gke(c);return Se(Jke,Q({as:a,ownerState:c,className:vt(f.root,i),ref:n},s,{children:[o,u.required&&Se(Xke,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),eIe=Zke,tIe=M.createContext(),tj=tIe;function nIe(e){return Vt("MuiGrid",e)}const rIe=[0,1,2,3,4,5,6,7,8,9,10],oIe=["column-reverse","column","row-reverse","row"],iIe=["nowrap","wrap-reverse","wrap"],Jv=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],aIe=Rt("MuiGrid",["root","container","item","zeroMinWidth",...rIe.map(e=>`spacing-xs-${e}`),...oIe.map(e=>`direction-xs-${e}`),...iIe.map(e=>`wrap-xs-${e}`),...Jv.map(e=>`grid-xs-${e}`),...Jv.map(e=>`grid-sm-${e}`),...Jv.map(e=>`grid-md-${e}`),...Jv.map(e=>`grid-lg-${e}`),...Jv.map(e=>`grid-xl-${e}`)]),iw=aIe,sIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function S0(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function lIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(n===!0)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=LE({values:t.columns,breakpoints:e.breakpoints.values}),s=typeof a=="object"?a[o]:a;if(s==null)return r;const l=`${Math.round(n/s*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${S0(c)})`;u={flexBasis:f,maxWidth:f}}}i=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[o]===0?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r},{})}function uIe({theme:e,ownerState:t}){const n=LE({values:t.direction,breakpoints:e.breakpoints.values});return Dl({theme:e},n,r=>{const o={flexDirection:r};return r.indexOf("column")===0&&(o[`& > .${iw.item}`]={maxWidth:"none"}),o})}function UG({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(o=>{n===""&&t[o]!==0&&(n=o)});const r=Object.keys(e).sort((o,i)=>e[o]-e[i]);return r.slice(0,r.indexOf(n))}function cIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&r!==0){const i=LE({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=UG({breakpoints:e.breakpoints.values,values:i})),o=Dl({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{marginTop:`-${S0(c)}`,[`& > .${iw.item}`]:{paddingTop:S0(c)}}:(u=a)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${iw.item}`]:{paddingTop:0}}})}return o}function dIe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&r!==0){const i=LE({values:r,breakpoints:e.breakpoints.values});let a;typeof i=="object"&&(a=UG({breakpoints:e.breakpoints.values,values:i})),o=Dl({theme:e},i,(s,l)=>{var u;const c=e.spacing(s);return c!=="0px"?{width:`calc(100% + ${S0(c)})`,marginLeft:`-${S0(c)}`,[`& > .${iw.item}`]:{paddingLeft:S0(c)}}:(u=a)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${iw.item}`]:{paddingLeft:0}}})}return o}function fIe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(o=>{const i=e[o];Number(i)>0&&r.push(n[`spacing-${o}-${String(i)}`])}),r}const pIe=J("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:s,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=fIe(a,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,i&&t.item,l&&t.zeroMinWidth,...c,o!=="row"&&t[`direction-xs-${String(o)}`],s!=="wrap"&&t[`wrap-xs-${String(s)}`],...f]}})(({ownerState:e})=>Q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),uIe,cIe,dIe,lIe);function hIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const o=e[r];if(Number(o)>0){const i=`spacing-${r}-${String(o)}`;n.push(i)}}),n}const gIe=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:s,breakpoints:l}=e;let u=[];n&&(u=hIe(i,l));const c=[];l.forEach(p=>{const g=e[p];g&&c.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",o&&"item",s&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,a!=="wrap"&&`wrap-xs-${String(a)}`,...c]};return Ut(f,nIe,t)},mIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiGrid"}),{breakpoints:o}=Fo(),i=sD(r),{className:a,columns:s,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:m=0,wrap:y="wrap",zeroMinWidth:v=!1}=i,x=lt(i,sIe),w=g||m,I=l||m,_=M.useContext(tj),R=c?s||12:_,U={},D=Q({},x);o.keys.forEach(C=>{x[C]!=null&&(U[C]=x[C],delete D[C])});const b=Q({},i,{columns:R,container:c,direction:f,item:p,rowSpacing:w,columnSpacing:I,wrap:y,zeroMinWidth:v,spacing:m},U,{breakpoints:o.keys}),T=gIe(b);return A(tj.Provider,{value:R,children:A(pIe,Q({ownerState:b,className:vt(T.root,a),as:u,ref:n},D))})}),yIe=mIe,vIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HO(e){return`scale(${e}, ${e**2})`}const bIe={entering:{opacity:1,transform:HO(1)},entered:{opacity:1,transform:"none"}},eP=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),jG=M.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:p,onExiting:g,style:m,timeout:y="auto",TransitionComponent:v=yD}=t,x=lt(t,vIe),w=M.useRef(),I=M.useRef(),_=Fo(),R=M.useRef(null),U=so(R,i.ref,n),D=B=>H=>{if(B){const q=R.current;H===void 0?B(q):B(q,H)}},b=D(c),T=D((B,H)=>{OG(B);const{duration:q,delay:Y,easing:W}=IA({style:m,timeout:y,easing:a},{mode:"enter"});let ie;y==="auto"?(ie=_.transitions.getAutoHeightDuration(B.clientHeight),I.current=ie):ie=q,B.style.transition=[_.transitions.create("opacity",{duration:ie,delay:Y}),_.transitions.create("transform",{duration:eP?ie:ie*.666,delay:Y,easing:W})].join(","),l&&l(B,H)}),C=D(u),O=D(g),$=D(B=>{const{duration:H,delay:q,easing:Y}=IA({style:m,timeout:y,easing:a},{mode:"exit"});let W;y==="auto"?(W=_.transitions.getAutoHeightDuration(B.clientHeight),I.current=W):W=H,B.style.transition=[_.transitions.create("opacity",{duration:W,delay:q}),_.transitions.create("transform",{duration:eP?W:W*.666,delay:eP?q:q||W*.333,easing:Y})].join(","),B.style.opacity=0,B.style.transform=HO(.75),f&&f(B)}),j=D(p),L=B=>{y==="auto"&&(w.current=setTimeout(B,I.current||0)),r&&r(R.current,B)};return M.useEffect(()=>()=>{clearTimeout(w.current)},[]),A(v,Q({appear:o,in:s,nodeRef:R,onEnter:T,onEntered:C,onEntering:b,onExit:$,onExited:j,onExiting:O,addEndListener:L,timeout:y==="auto"?null:y},x,{children:(B,H)=>M.cloneElement(i,Q({style:Q({opacity:0,transform:HO(.75),visibility:B==="exited"&&!s?"hidden":void 0},bIe[B],m,i.props.style),ref:U},H))}))});jG.muiSupportAuto=!0;const PA=jG;function wIe(e,t,n,r,o){const[i,a]=M.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return pa(()=>{let s=!0;if(!n)return;const l=n(e),u=()=>{s&&a(l.matches)};return u(),l.addListener(u),()=>{s=!1,l.removeListener(u)}},[e,n]),i}const WG=zh["useSyncExternalStore"];function SIe(e,t,n,r,o){const i=M.useCallback(()=>t,[t]),a=M.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return i},[i,e,r,o,n]),[s,l]=M.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[i,n,e]);return WG(l,s,a)}function rT(e,t={}){const n=HE(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:o=!1,matchMedia:i=r?window.matchMedia:null,ssrMatchMedia:a=null,noSsr:s=!1}=gG({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(WG!==void 0?SIe:wIe)(l,o,i,a,s)}const xIe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],CIe=e=>{const{classes:t,disableUnderline:n}=e,o=Ut({root:["root",!n&&"underline"],input:["input"]},GEe,t);return Q({},t,o)},AIe=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...XE(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Q({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Gv.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Gv.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Gv.disabled}, .${Gv.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Gv.disabled}:before`]:{borderBottomStyle:"dotted"}})}),_Ie=J(tT,{name:"MuiInput",slot:"Input",overridesResolver:ZE})({}),zG=M.forwardRef(function(t,n){var r,o,i,a;const s=Bt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:m,slots:y={},type:v="text"}=s,x=lt(s,xIe),w=CIe(s),_={root:{ownerState:{disableUnderline:l}}},R=m??c?Tl(m??c,_):_,U=(r=(o=y.root)!=null?o:u.Root)!=null?r:AIe,D=(i=(a=y.input)!=null?a:u.Input)!=null?i:_Ie;return A(_D,Q({slots:{root:U,input:D},slotProps:R,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:v},x,{classes:w}))});zG.muiName="Input";const VG=zG;function EIe(e){return Vt("MuiInputAdornment",e)}const TIe=Rt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),nj=TIe;var rj;const kIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],IIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${dt(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},PIe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,s={root:["root",n&&"disablePointerEvents",o&&`position${dt(o)}`,a,r&&"hiddenLabel",i&&`size${dt(i)}`]};return Ut(s,EIe,t)},MIe=J("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:IIe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${nj.positionStart}&:not(.${nj.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),OIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=r,f=lt(r,kIe),p=Ap()||{};let g=c;c&&p.variant,p&&!g&&(g=p.variant);const m=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:g}),y=PIe(m);return A(JE.Provider,{value:null,children:A(MIe,Q({as:a,ownerState:m,className:vt(y.root,i),ref:n},f,{children:typeof o=="string"&&!l?A(At,{color:"text.secondary",children:o}):Se(M.Fragment,{children:[u==="start"?rj||(rj=A("span",{className:"notranslate",children:"​"})):null,o]})}))})}),RIe=OIe;function DIe(e){return Vt("MuiInputLabel",e)}Rt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const BIe=["disableAnimation","margin","shrink","variant","className"],$Ie=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:s}=e,u=Ut({root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r==="small"&&"sizeSmall",a],asterisk:[s&&"asterisk"]},DIe,t);return Q({},t,u)},LIe=J(eIe,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hb.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Q({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),FIe=M.forwardRef(function(t,n){const r=Bt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,shrink:i,className:a}=r,s=lt(r,BIe),l=Ap();let u=i;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=_y({props:r,muiFormControl:l,states:["size","variant","required"]}),f=Q({},r,{disableAnimation:o,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),p=$Ie(f);return A(LIe,Q({"data-shrink":u,ownerState:f,ref:n,className:vt(p.root,a)},s,{classes:p}))}),NIe=FIe;function UIe(e){return Vt("MuiLinearProgress",e)}Rt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const jIe=["className","color","value","valueBuffer","variant"];let Ey=e=>e,oj,ij,aj,sj,lj,uj;const qO=4,WIe=_u(oj||(oj=Ey` 0% { left: -35%; right: 100%; @@ -187,7 +187,7 @@ Error generating stack: `+i.message+` left: 100%; right: -90%; } -`)),VIe=Au(ij||(ij=Ey` +`)),zIe=_u(ij||(ij=Ey` 0% { left: -200%; right: 100%; @@ -202,7 +202,7 @@ Error generating stack: `+i.message+` left: 107%; right: -8%; } -`)),HIe=Au(aj||(aj=Ey` +`)),VIe=_u(aj||(aj=Ey` 0% { opacity: 1; background-position: 0 -23px; @@ -217,15 +217,15 @@ Error generating stack: `+i.message+` opacity: 1; background-position: -200px -23px; } -`)),qIe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${dt(r)}`,n],dashed:["dashed",`dashedColor${dt(r)}`],bar1:["bar",`barColor${dt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${dt(r)}`,n==="buffer"&&`color${dt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ut(o,jIe,t)},TD=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_A(e.palette[t].main,.62):AA(e.palette[t].main,.5),QIe=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>Q({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:TD(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),KIe=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${dt(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=TD(t,e.color);return Q({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},up(sj||(sj=Ey` +`)),HIe=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${dt(r)}`,n],dashed:["dashed",`dashedColor${dt(r)}`],bar1:["bar",`barColor${dt(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${dt(r)}`,n==="buffer"&&`color${dt(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Ut(o,UIe,t)},kD=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?_A(e.palette[t].main,.62):AA(e.palette[t].main,.5),qIe=J("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>Q({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:kD(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),QIe=J("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${dt(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=kD(t,e.color);return Q({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},up(sj||(sj=Ey` animation: ${0} 3s infinite linear; - `),HIe)),YIe=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${dt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>Q({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${HO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${HO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&up(lj||(lj=Ey` + `),VIe)),KIe=J("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${dt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>Q({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${qO}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${qO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&up(lj||(lj=Ey` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),zIe)),GIe=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${dt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>Q({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:TD(t,e.color),transition:`transform .${HO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&up(uj||(uj=Ey` + `),WIe)),YIe=J("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${dt(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>Q({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:kD(t,e.color),transition:`transform .${qO}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&up(uj||(uj=Ey` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),VIe)),JIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=r,u=lt(r,WIe),c=Q({},r,{color:i,variant:l}),f=qIe(c),p=Fo(),g={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=a-100;p.direction==="rtl"&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;p.direction==="rtl"&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return Se(QIe,Q({className:vt(f.root,o),ownerState:c,role:"progressbar"},g,{ref:n},u,{children:[l==="buffer"?A(KIe,{className:f.dashed,ownerState:c}):null,A(YIe,{className:f.bar1,ownerState:c,style:m.bar1}),l==="determinate"?null:A(GIe,{className:f.bar2,ownerState:c,style:m.bar2})]}))}),XIe=JIe;function ZIe(e){return Vt("MuiLink",e)}const e4e=Rt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),t4e=e4e,HG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},n4e=e=>HG[e]||e,r4e=({theme:e,ownerState:t})=>{const n=n4e(t.color),r=j0(e,`palette.${n}`,!1)||t.color,o=j0(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Ln(r,.4)},o4e=r4e,i4e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],a4e=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${dt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ut(i,ZIe,t)},s4e=J(At,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${dt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>Q({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&Q({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:o4e({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${t4e.focusVisible}`]:{outline:"auto"}})),l4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:p}=r,g=lt(r,i4e),{isFocusVisibleRef:m,onBlur:y,onFocus:v,ref:x}=q6(),[w,I]=M.useState(!1),_=so(n,x),R=T=>{y(T),m.current===!1&&I(!1),s&&s(T)},U=T=>{v(T),m.current===!0&&I(!0),l&&l(T)},D=Q({},r,{color:i,component:a,focusVisible:w,underline:c,variant:f}),b=a4e(D);return A(s4e,Q({color:i,className:vt(b.root,o),classes:u,component:a,onBlur:R,onFocus:U,ref:_,ownerState:D,variant:f,sx:[...Object.keys(HG).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},g))}),u4e=l4e,c4e=M.createContext({}),Bh=c4e;function d4e(e){return Vt("MuiList",e)}Rt("MuiList",["root","padding","dense","subheader"]);const f4e=["children","className","component","dense","disablePadding","subheader"],p4e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ut({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},d4e,t)},h4e=J("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),g4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=lt(r,f4e),f=M.useMemo(()=>({dense:s}),[s]),p=Q({},r,{component:a,dense:s,disablePadding:l}),g=p4e(p);return A(Bh.Provider,{value:f,children:Se(h4e,Q({as:a,className:vt(g.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),qG=g4e;function m4e(e){return Vt("MuiListItem",e)}const y4e=Rt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zm=y4e,v4e=Rt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),b4e=v4e;function w4e(e){return Vt("MuiListItemSecondaryAction",e)}Rt("MuiListItemSecondaryAction",["root","disableGutters"]);const S4e=["className"],x4e=e=>{const{disableGutters:t,classes:n}=e;return Ut({root:["root",t&&"disableGutters"]},w4e,n)},C4e=J("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),QG=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=lt(r,S4e),a=M.useContext(Bh),s=Q({},r,{disableGutters:a.disableGutters}),l=x4e(s);return A(C4e,Q({className:vt(l.root,o),ownerState:s,ref:n},i))});QG.muiName="ListItemSecondaryAction";const A4e=QG,_4e=["className"],E4e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],T4e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},k4e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ut({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},m4e,r)},I4e=J("div",{name:"MuiListItem",slot:"Root",overridesResolver:T4e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${b4e.root}`]:{paddingRight:48}},{[`&.${zm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),P4e=J("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),M4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:m=!1,disabled:y=!1,disableGutters:v=!1,disablePadding:x=!1,divider:w=!1,focusVisibleClassName:I,secondaryAction:_,selected:R=!1,slotProps:U={},slots:D={}}=r,b=lt(r.ContainerProps,_4e),T=lt(r,E4e),C=M.useContext(Bh),O=M.useMemo(()=>({dense:m||C.dense||!1,alignItems:o,disableGutters:v}),[o,C.dense,m,v]),$=M.useRef(null);pa(()=>{i&&$.current&&$.current.focus()},[i]);const j=M.Children.toArray(s),L=j.length&&CC(j[j.length-1],["ListItemSecondaryAction"]),B=Q({},r,{alignItems:o,autoFocus:i,button:a,dense:O.dense,disabled:y,disableGutters:v,disablePadding:x,divider:w,hasSecondaryAction:L,selected:R}),H=k4e(B),q=so($,n),Y=D.root||c.Root||I4e,W=U.root||f.root||{},ie=Q({className:vt(H.root,W.className,l),disabled:y},T);let le=u||"li";return a&&(ie.component=u||"div",ie.focusVisibleClassName=vt(zm.focusVisible,I),le=gc),L?(le=!ie.component&&!u?"div":le,p==="li"&&(le==="li"?le="div":ie.component==="li"&&(ie.component="div")),A(Bh.Provider,{value:O,children:Se(P4e,Q({as:p,className:vt(H.container,g),ref:q,ownerState:B},b,{children:[A(Y,Q({},W,!W0(Y)&&{as:le,ownerState:Q({},B,W.ownerState)},ie,{children:j})),j.pop()]}))})):A(Bh.Provider,{value:O,children:Se(Y,Q({},W,{as:le,ref:q},!W0(Y)&&{ownerState:Q({},B,W.ownerState)},ie,{children:[j,_&&A(A4e,{children:_})]}))})}),O4e=M4e,R4e=Rt("MuiListItemIcon",["root","alignItemsFlexStart"]),cj=R4e,D4e=Rt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dj=D4e,B4e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function eP(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fj(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function KG(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Xv(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!KG(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const $4e=M.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=lt(t,B4e),g=M.useRef(null),m=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pa(()=>{o&&g.current.focus()},[o]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(I,_)=>{const R=!g.current.style.width;if(I.clientHeight{const _=g.current,R=I.key,U=gi(_).activeElement;if(R==="ArrowDown")I.preventDefault(),Xv(_,U,u,l,eP);else if(R==="ArrowUp")I.preventDefault(),Xv(_,U,u,l,fj);else if(R==="Home")I.preventDefault(),Xv(_,null,u,l,eP);else if(R==="End")I.preventDefault(),Xv(_,null,u,l,fj);else if(R.length===1){const D=m.current,b=R.toLowerCase(),T=performance.now();D.keys.length>0&&(T-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&b!==D.keys[0]&&(D.repeating=!1)),D.lastTime=T,D.keys.push(b);const C=U&&!D.repeating&&KG(U,D);D.previousKeyMatched&&(C||Xv(_,U,!1,l,eP,D))?I.preventDefault():D.previousKeyMatched=!1}c&&c(I)},v=so(g,n);let x=-1;M.Children.forEach(a,(I,_)=>{M.isValidElement(I)&&(I.props.disabled||(f==="selectedMenu"&&I.props.selected||x===-1)&&(x=_),x===_&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1)))});const w=M.Children.map(a,(I,_)=>{if(_===x){const R={};return i&&(R.autoFocus=!0),I.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),M.cloneElement(I,R)}return I});return A(qG,Q({role:"menu",ref:v,className:s,onKeyDown:y,tabIndex:o?0:-1},p,{children:w}))}),L4e=$4e;function F4e(e){return Vt("MuiPopover",e)}Rt("MuiPopover",["root","paper"]);const N4e=["onEntering"],U4e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function pj(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hj(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function gj(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function tP(e){return typeof e=="function"?e():e}const j4e=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"]},F4e,t)},W4e=J(ED,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),z4e=J(Ay,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),V4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:c,container:f,elevation:p=8,marginThreshold:g=16,open:m,PaperProps:y={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:x=PA,transitionDuration:w="auto",TransitionProps:{onEntering:I}={}}=r,_=lt(r.TransitionProps,N4e),R=lt(r,U4e),U=M.useRef(),D=so(U,y.ref),b=Q({},r,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:g,PaperProps:y,transformOrigin:v,TransitionComponent:x,transitionDuration:w,TransitionProps:_}),T=j4e(b),C=M.useCallback(()=>{if(l==="anchorPosition")return s;const ie=tP(i),fe=(ie&&ie.nodeType===1?ie:gi(U.current).body).getBoundingClientRect();return{top:fe.top+pj(fe,a.vertical),left:fe.left+hj(fe,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=M.useCallback(ie=>({vertical:pj(ie,v.vertical),horizontal:hj(ie,v.horizontal)}),[v.horizontal,v.vertical]),$=M.useCallback(ie=>{const le={width:ie.offsetWidth,height:ie.offsetHeight},fe=O(le);if(l==="none")return{top:null,left:null,transformOrigin:gj(fe)};const Ee=C();let Ae=Ee.top-fe.vertical,Ie=Ee.left-fe.horizontal;const De=Ae+le.height,Ue=Ie+le.width,ce=Id(tP(i)),de=ce.innerHeight-g,ve=ce.innerWidth-g;if(Aede){const he=De-de;Ae-=he,fe.vertical+=he}if(Ieve){const he=Ue-ve;Ie-=he,fe.horizontal+=he}return{top:`${Math.round(Ae)}px`,left:`${Math.round(Ie)}px`,transformOrigin:gj(fe)}},[i,l,C,O,g]),[j,L]=M.useState(m),B=M.useCallback(()=>{const ie=U.current;if(!ie)return;const le=$(ie);le.top!==null&&(ie.style.top=le.top),le.left!==null&&(ie.style.left=le.left),ie.style.transformOrigin=le.transformOrigin,L(!0)},[$]),H=(ie,le)=>{I&&I(ie,le),B()},q=()=>{L(!1)};M.useEffect(()=>{m&&B()}),M.useImperativeHandle(o,()=>m?{updatePosition:()=>{B()}}:null,[m,B]),M.useEffect(()=>{if(!m)return;const ie=Xb(()=>{B()}),le=Id(i);return le.addEventListener("resize",ie),()=>{ie.clear(),le.removeEventListener("resize",ie)}},[i,m,B]);let Y=w;w==="auto"&&!x.muiSupportAuto&&(Y=void 0);const W=f||(i?gi(tP(i)).body:void 0);return A(W4e,Q({BackdropProps:{invisible:!0},className:vt(T.root,c),container:W,open:m,ref:n,ownerState:b},R,{children:A(x,Q({appear:!0,in:m,onEntering:H,onExited:q,timeout:Y},_,{children:A(z4e,Q({elevation:p},y,{ref:D,className:vt(T.paper,y.className)},j?void 0:{style:Q({},y.style,{opacity:0})},{ownerState:b,children:u}))}))}))}),H4e=V4e;function q4e(e){return Vt("MuiMenu",e)}Rt("MuiMenu",["root","paper","list"]);const Q4e=["onEntering"],K4e=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],Y4e={vertical:"top",horizontal:"right"},G4e={vertical:"top",horizontal:"left"},J4e=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"],list:["list"]},q4e,t)},X4e=J(H4e,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Z4e=J(Ay,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),e3e=J(L4e,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),t3e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu"}=r,y=lt(r.TransitionProps,Q4e),v=lt(r,K4e),x=Fo(),w=x.direction==="rtl",I=Q({},r,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:s,onEntering:g,PaperProps:c,transitionDuration:p,TransitionProps:y,variant:m}),_=J4e(I),R=o&&!a&&u,U=M.useRef(null),D=(C,O)=>{U.current&&U.current.adjustStyleForScrollbar(C,x),g&&g(C,O)},b=C=>{C.key==="Tab"&&(C.preventDefault(),l&&l(C,"tabKeyDown"))};let T=-1;return M.Children.map(i,(C,O)=>{M.isValidElement(C)&&(C.props.disabled||(m==="selectedMenu"&&C.props.selected||T===-1)&&(T=O))}),A(X4e,Q({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Y4e:G4e,PaperProps:Q({as:Z4e},c,{classes:Q({},c.classes,{root:_.paper})}),className:_.root,open:u,ref:n,transitionDuration:p,TransitionProps:Q({onEntering:D},y),ownerState:I},v,{classes:f,children:A(e3e,Q({onKeyDown:b,actions:U,autoFocus:o&&(T===-1||a),autoFocusItem:R,variant:m},s,{className:vt(_.list,s.className),children:i}))}))}),YG=t3e;function n3e(e){return Vt("MuiMenuItem",e)}const r3e=Rt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Zv=r3e,o3e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],i3e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},a3e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ut({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},n3e,a);return Q({},a,l)},s3e=J(gc,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:i3e})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ln(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${X9.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${X9.inset}`]:{marginLeft:52},[`& .${dj.root}`]:{marginTop:0,marginBottom:0},[`& .${dj.inset}`]:{paddingLeft:36},[`& .${cj.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cj.root} svg`]:{fontSize:"1.25rem"}}))),l3e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,g=lt(r,o3e),m=M.useContext(Bh),y=M.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),v=M.useRef(null);pa(()=>{o&&v.current&&v.current.focus()},[o]);const x=Q({},r,{dense:y.dense,divider:s,disableGutters:l}),w=a3e(r),I=so(v,n);let _;return r.disabled||(_=f!==void 0?f:-1),A(Bh.Provider,{value:y,children:A(s3e,Q({ref:I,role:c,tabIndex:_,component:i,focusVisibleClassName:vt(w.focusVisible,u),className:vt(w.root,p)},g,{ownerState:x,classes:w}))})}),kD=l3e;function u3e(e){return Vt("MuiNativeSelect",e)}const c3e=Rt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),ID=c3e,d3e=["className","disabled","error","IconComponent","inputRef","variant"],f3e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${dt(n)}`,i&&"iconOpen",r&&"disabled"]};return Ut(s,u3e,t)},GG=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${ID.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),p3e=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ul,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${ID.multiple}`]:t.multiple}]}})(GG),JG=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${ID.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),h3e=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${dt(n.variant)}`],n.open&&t.iconOpen]}})(JG),g3e=M.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=lt(t,d3e),c=Q({},t,{disabled:o,variant:l,error:i}),f=f3e(c);return Se(M.Fragment,{children:[A(p3e,Q({ownerState:c,className:vt(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:A(h3e,{as:a,ownerState:c,className:f.icon})]})}),m3e=g3e;var mj;const y3e=["children","classes","className","label","notched"],v3e=J("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),b3e=J("legend")(({ownerState:e,theme:t})=>Q({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Q({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function w3e(e){const{className:t,label:n,notched:r}=e,o=lt(e,y3e),i=n!=null&&n!=="",a=Q({},e,{notched:r,withLabel:i});return A(v3e,Q({"aria-hidden":!0,className:t,ownerState:a},o,{children:A(b3e,{ownerState:a,children:i?A("span",{children:n}):mj||(mj=A("span",{className:"notranslate",children:"​"}))})}))}const S3e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],x3e=e=>{const{classes:t}=e,r=Ut({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ZEe,t);return Q({},t,r)},C3e=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:XE})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${gf.focused} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gf.error} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gf.disabled} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),A3e=J(w3e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),_3e=J(tT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>Q({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),XG=M.forwardRef(function(t,n){var r,o,i,a,s;const l=Bt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:m,slots:y={},type:v="text"}=l,x=lt(l,S3e),w=x3e(l),I=Ap(),_=_y({props:l,muiFormControl:I,states:["required"]}),R=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:I,fullWidth:c,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:v}),U=(r=(o=y.root)!=null?o:u.Root)!=null?r:C3e,D=(i=(a=y.input)!=null?a:u.Input)!=null?i:_3e;return A(AD,Q({slots:{root:U,input:D},renderSuffix:b=>A(A3e,{ownerState:R,className:w.notchedOutline,label:p!=null&&p!==""&&_.required?s||(s=Se(M.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(b.startAdornment||b.filled||b.focused)}),fullWidth:c,inputComponent:f,multiline:g,ref:n,type:v},x,{classes:Q({},w,{notchedOutline:null})}))});XG.muiName="Input";const ZG=XG,E3e=Yo(A("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),T3e=Yo(A("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),k3e=J("span")({position:"relative",display:"flex"}),I3e=J(E3e)({transform:"scale(1)"}),P3e=J(T3e)(({theme:e,ownerState:t})=>Q({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function eJ(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Q({},e,{checked:t});return Se(k3e,{className:n.root,ownerState:o,children:[A(I3e,{fontSize:r,className:n.background,ownerState:o}),A(P3e,{fontSize:r,className:n.dot,ownerState:o})]})}const M3e=M.createContext(void 0),O3e=M3e;function R3e(){return M.useContext(O3e)}function D3e(e){return Vt("MuiRadio",e)}const B3e=Rt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),yj=B3e,$3e=["checked","checkedIcon","color","icon","name","onChange","size","className"],L3e=e=>{const{classes:t,color:n}=e,r={root:["root",`color${dt(n)}`]};return Q({},t,Ut(r,D3e,t))},F3e=J(BG,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${yj.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${yj.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function N3e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const vj=A(eJ,{checked:!0}),bj=A(eJ,{}),U3e=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=vj,color:l="primary",icon:u=bj,name:c,onChange:f,size:p="medium",className:g}=i,m=lt(i,$3e),y=Q({},i,{color:l,size:p}),v=L3e(y),x=R3e();let w=a;const I=OO(f,x&&x.onChange);let _=c;return x&&(typeof w>"u"&&(w=N3e(x.value,i.value)),typeof _>"u"&&(_=x.name)),A(F3e,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=bj.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(s,{fontSize:(o=vj.props.fontSize)!=null?o:p}),ownerState:y,classes:v,name:_,checked:w,onChange:I,ref:n,className:vt(v.root,g)},m))}),wj=U3e;function j3e(e){return Vt("MuiSelect",e)}const W3e=Rt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),e1=W3e;var Sj;const z3e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],V3e=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${e1.select}`]:t.select},{[`&.${e1.select}`]:t[n.variant]},{[`&.${e1.error}`]:t.error},{[`&.${e1.multiple}`]:t.multiple}]}})(GG,{[`&.${e1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),H3e=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${dt(n.variant)}`],n.open&&t.iconOpen]}})(JG),q3e=J("input",{shouldForwardProp:e=>ACe(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xj(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Q3e(e){return e==null||typeof e=="string"&&!e.trim()}const K3e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${dt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ut(s,j3e,t)},Y3e=M.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:f,displayEmpty:p,error:g=!1,IconComponent:m,inputRef:y,labelId:v,MenuProps:x={},multiple:w,name:I,onBlur:_,onChange:R,onClose:U,onFocus:D,onOpen:b,open:T,readOnly:C,renderValue:O,SelectDisplayProps:$={},tabIndex:j,value:L,variant:B="standard"}=t,H=lt(t,z3e),[q,Y]=ls({controlled:L,default:c,name:"Select"}),[W,ie]=ls({controlled:T,default:u,name:"Select"}),le=M.useRef(null),fe=M.useRef(null),[Ee,Ae]=M.useState(null),{current:Ie}=M.useRef(T!=null),[De,Ue]=M.useState(),ce=so(n,y),de=M.useCallback(P=>{fe.current=P,P&&Ae(P)},[]),ve=Ee==null?void 0:Ee.parentNode;M.useImperativeHandle(ce,()=>({focus:()=>{fe.current.focus()},node:le.current,value:q}),[q]),M.useEffect(()=>{u&&W&&Ee&&!Ie&&(Ue(a?null:ve.clientWidth),fe.current.focus())},[Ee,a]),M.useEffect(()=>{i&&fe.current.focus()},[i]),M.useEffect(()=>{if(!v)return;const P=gi(fe.current).getElementById(v);if(P){const V=()=>{getSelection().isCollapsed&&fe.current.focus()};return P.addEventListener("click",V),()=>{P.removeEventListener("click",V)}}},[v]);const he=(P,V)=>{P?b&&b(V):U&&U(V),Ie||(Ue(a?null:ve.clientWidth),ie(P))},pe=P=>{P.button===0&&(P.preventDefault(),fe.current.focus(),he(!0,P))},ge=P=>{he(!1,P)},Ce=M.Children.toArray(s),_e=P=>{const V=Ce.map(ee=>ee.props.value).indexOf(P.target.value);if(V===-1)return;const K=Ce[V];Y(K.props.value),R&&R(P,K)},Ne=P=>V=>{let K;if(V.currentTarget.hasAttribute("tabindex")){if(w){K=Array.isArray(q)?q.slice():[];const ee=q.indexOf(P.props.value);ee===-1?K.push(P.props.value):K.splice(ee,1)}else K=P.props.value;if(P.props.onClick&&P.props.onClick(V),q!==K&&(Y(K),R)){const ee=V.nativeEvent||V,be=new ee.constructor(ee.type,ee);Object.defineProperty(be,"target",{writable:!0,value:{value:K,name:I}}),R(be,P)}w||he(!1,V)}},Be=P=>{C||[" ","ArrowUp","ArrowDown","Enter"].indexOf(P.key)!==-1&&(P.preventDefault(),he(!0,P))},Ve=Ee!==null&&W,wt=P=>{!Ve&&_&&(Object.defineProperty(P,"target",{writable:!0,value:{value:q,name:I}}),_(P))};delete H["aria-invalid"];let xe,je;const We=[];let Ge=!1;(CD({value:q})||p)&&(O?xe=O(q):Ge=!0);const Fe=Ce.map(P=>{if(!M.isValidElement(P))return null;let V;if(w){if(!Array.isArray(q))throw new Error(lp(2));V=q.some(K=>xj(K,P.props.value)),V&&Ge&&We.push(P.props.children)}else V=xj(q,P.props.value),V&&Ge&&(je=P.props.children);return M.cloneElement(P,{"aria-selected":V?"true":"false",onClick:Ne(P),onKeyUp:K=>{K.key===" "&&K.preventDefault(),P.props.onKeyUp&&P.props.onKeyUp(K)},role:"option",selected:V,value:void 0,"data-value":P.props.value})});Ge&&(w?We.length===0?xe=null:xe=We.reduce((P,V,K)=>(P.push(V),K{const{classes:t}=e;return t},PD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ul(e)&&e!=="variant",slot:"Root"},Z3e=J(VG,PD)(""),ePe=J(ZG,PD)(""),tPe=J(FG,PD)(""),tJ=M.forwardRef(function(t,n){const r=Bt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=rTe,id:f,input:p,inputProps:g,label:m,labelId:y,MenuProps:v,multiple:x=!1,native:w=!1,onClose:I,onOpen:_,open:R,renderValue:U,SelectDisplayProps:D,variant:b="outlined"}=r,T=lt(r,J3e),C=w?m3e:G3e,O=Ap(),$=_y({props:r,muiFormControl:O,states:["variant","error"]}),j=$.variant||b,L=Q({},r,{variant:j,classes:a}),B=X3e(L),H=p||{standard:A(Z3e,{ownerState:L}),outlined:A(ePe,{label:m,ownerState:L}),filled:A(tPe,{ownerState:L})}[j],q=so(n,H.ref);return A(M.Fragment,{children:M.cloneElement(H,Q({inputComponent:C,inputProps:Q({children:i,error:$.error,IconComponent:c,variant:j,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:v,onClose:I,onOpen:_,open:R,renderValue:U,SelectDisplayProps:Q({id:f},D)},g,{classes:g?Tl(B,g.classes):B},p?p.props.inputProps:{})},x&&w&&j==="outlined"?{notched:!0}:{},{ref:q,className:vt(H.props.className,s)},!p&&{variant:j},T))})});tJ.muiName="Select";const MD=tJ;function nPe(e){return Vt("MuiSkeleton",e)}Rt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const rPe=["animation","className","component","height","style","variant","width"];let MA=e=>e,Cj,Aj,_j,Ej;const oPe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Ut({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},nPe,t)},iPe=Au(Cj||(Cj=MA` + `),zIe)),GIe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:s,variant:l="indeterminate"}=r,u=lt(r,jIe),c=Q({},r,{color:i,variant:l}),f=HIe(c),p=Fo(),g={},m={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&a!==void 0){g["aria-valuenow"]=Math.round(a),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=a-100;p.direction==="rtl"&&(y=-y),m.bar1.transform=`translateX(${y}%)`}if(l==="buffer"&&s!==void 0){let y=(s||0)-100;p.direction==="rtl"&&(y=-y),m.bar2.transform=`translateX(${y}%)`}return Se(qIe,Q({className:vt(f.root,o),ownerState:c,role:"progressbar"},g,{ref:n},u,{children:[l==="buffer"?A(QIe,{className:f.dashed,ownerState:c}):null,A(KIe,{className:f.bar1,ownerState:c,style:m.bar1}),l==="determinate"?null:A(YIe,{className:f.bar2,ownerState:c,style:m.bar2})]}))}),JIe=GIe;function XIe(e){return Vt("MuiLink",e)}const ZIe=Rt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),e4e=ZIe,HG={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},t4e=e=>HG[e]||e,n4e=({theme:e,ownerState:t})=>{const n=t4e(t.color),r=j0(e,`palette.${n}`,!1)||t.color,o=j0(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Fn(r,.4)},r4e=n4e,o4e=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],i4e=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${dt(o)}`,n==="button"&&"button",r&&"focusVisible"]};return Ut(i,XIe,t)},a4e=J(At,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${dt(n.underline)}`],n.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>Q({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&Q({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:r4e({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${e4e.focusVisible}`]:{outline:"auto"}})),s4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiLink"}),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:p}=r,g=lt(r,o4e),{isFocusVisibleRef:m,onBlur:y,onFocus:v,ref:x}=Q6(),[w,I]=M.useState(!1),_=so(n,x),R=T=>{y(T),m.current===!1&&I(!1),s&&s(T)},U=T=>{v(T),m.current===!0&&I(!0),l&&l(T)},D=Q({},r,{color:i,component:a,focusVisible:w,underline:c,variant:f}),b=i4e(D);return A(a4e,Q({color:i,className:vt(b.root,o),classes:u,component:a,onBlur:R,onFocus:U,ref:_,ownerState:D,variant:f,sx:[...Object.keys(HG).includes(i)?[]:[{color:i}],...Array.isArray(p)?p:[p]]},g))}),l4e=s4e,u4e=M.createContext({}),Bh=u4e;function c4e(e){return Vt("MuiList",e)}Rt("MuiList",["root","padding","dense","subheader"]);const d4e=["children","className","component","dense","disablePadding","subheader"],f4e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Ut({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},c4e,t)},p4e=J("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),h4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=r,c=lt(r,d4e),f=M.useMemo(()=>({dense:s}),[s]),p=Q({},r,{component:a,dense:s,disablePadding:l}),g=f4e(p);return A(Bh.Provider,{value:f,children:Se(p4e,Q({as:a,className:vt(g.root,i),ref:n,ownerState:p},c,{children:[u,o]}))})}),qG=h4e;function g4e(e){return Vt("MuiListItem",e)}const m4e=Rt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zm=m4e,y4e=Rt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),v4e=y4e;function b4e(e){return Vt("MuiListItemSecondaryAction",e)}Rt("MuiListItemSecondaryAction",["root","disableGutters"]);const w4e=["className"],S4e=e=>{const{disableGutters:t,classes:n}=e;return Ut({root:["root",t&&"disableGutters"]},b4e,n)},x4e=J("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),QG=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItemSecondaryAction"}),{className:o}=r,i=lt(r,w4e),a=M.useContext(Bh),s=Q({},r,{disableGutters:a.disableGutters}),l=S4e(s);return A(x4e,Q({className:vt(l.root,o),ownerState:s,ref:n},i))});QG.muiName="ListItemSecondaryAction";const C4e=QG,A4e=["className"],_4e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],E4e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},T4e=e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return Ut({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},g4e,r)},k4e=J("div",{name:"MuiListItem",slot:"Root",overridesResolver:E4e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${v4e.root}`]:{paddingRight:48}},{[`&.${zm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),I4e=J("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),P4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiListItem"}),{alignItems:o="center",autoFocus:i=!1,button:a=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:m=!1,disabled:y=!1,disableGutters:v=!1,disablePadding:x=!1,divider:w=!1,focusVisibleClassName:I,secondaryAction:_,selected:R=!1,slotProps:U={},slots:D={}}=r,b=lt(r.ContainerProps,A4e),T=lt(r,_4e),C=M.useContext(Bh),O=M.useMemo(()=>({dense:m||C.dense||!1,alignItems:o,disableGutters:v}),[o,C.dense,m,v]),$=M.useRef(null);pa(()=>{i&&$.current&&$.current.focus()},[i]);const j=M.Children.toArray(s),L=j.length&&CC(j[j.length-1],["ListItemSecondaryAction"]),B=Q({},r,{alignItems:o,autoFocus:i,button:a,dense:O.dense,disabled:y,disableGutters:v,disablePadding:x,divider:w,hasSecondaryAction:L,selected:R}),H=T4e(B),q=so($,n),Y=D.root||c.Root||k4e,W=U.root||f.root||{},ie=Q({className:vt(H.root,W.className,l),disabled:y},T);let le=u||"li";return a&&(ie.component=u||"div",ie.focusVisibleClassName=vt(zm.focusVisible,I),le=mc),L?(le=!ie.component&&!u?"div":le,p==="li"&&(le==="li"?le="div":ie.component==="li"&&(ie.component="div")),A(Bh.Provider,{value:O,children:Se(I4e,Q({as:p,className:vt(H.container,g),ref:q,ownerState:B},b,{children:[A(Y,Q({},W,!W0(Y)&&{as:le,ownerState:Q({},B,W.ownerState)},ie,{children:j})),j.pop()]}))})):A(Bh.Provider,{value:O,children:Se(Y,Q({},W,{as:le,ref:q},!W0(Y)&&{ownerState:Q({},B,W.ownerState)},ie,{children:[j,_&&A(C4e,{children:_})]}))})}),M4e=P4e,O4e=Rt("MuiListItemIcon",["root","alignItemsFlexStart"]),cj=O4e,R4e=Rt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),dj=R4e,D4e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tP(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function fj(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function KG(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Xv(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!KG(s,i)||l)s=o(e,s,n);else return s.focus(),!0}return!1}const B4e=M.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,p=lt(t,D4e),g=M.useRef(null),m=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});pa(()=>{o&&g.current.focus()},[o]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(I,_)=>{const R=!g.current.style.width;if(I.clientHeight{const _=g.current,R=I.key,U=gi(_).activeElement;if(R==="ArrowDown")I.preventDefault(),Xv(_,U,u,l,tP);else if(R==="ArrowUp")I.preventDefault(),Xv(_,U,u,l,fj);else if(R==="Home")I.preventDefault(),Xv(_,null,u,l,tP);else if(R==="End")I.preventDefault(),Xv(_,null,u,l,fj);else if(R.length===1){const D=m.current,b=R.toLowerCase(),T=performance.now();D.keys.length>0&&(T-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&b!==D.keys[0]&&(D.repeating=!1)),D.lastTime=T,D.keys.push(b);const C=U&&!D.repeating&&KG(U,D);D.previousKeyMatched&&(C||Xv(_,U,!1,l,tP,D))?I.preventDefault():D.previousKeyMatched=!1}c&&c(I)},v=so(g,n);let x=-1;M.Children.forEach(a,(I,_)=>{M.isValidElement(I)&&(I.props.disabled||(f==="selectedMenu"&&I.props.selected||x===-1)&&(x=_),x===_&&(I.props.disabled||I.props.muiSkipListHighlight||I.type.muiSkipListHighlight)&&(x+=1,x>=a.length&&(x=-1)))});const w=M.Children.map(a,(I,_)=>{if(_===x){const R={};return i&&(R.autoFocus=!0),I.props.tabIndex===void 0&&f==="selectedMenu"&&(R.tabIndex=0),M.cloneElement(I,R)}return I});return A(qG,Q({role:"menu",ref:v,className:s,onKeyDown:y,tabIndex:o?0:-1},p,{children:w}))}),$4e=B4e;function L4e(e){return Vt("MuiPopover",e)}Rt("MuiPopover",["root","paper"]);const F4e=["onEntering"],N4e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function pj(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function hj(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function gj(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function nP(e){return typeof e=="function"?e():e}const U4e=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"]},L4e,t)},j4e=J(TD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),W4e=J(Ay,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),z4e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:l="anchorEl",children:u,className:c,container:f,elevation:p=8,marginThreshold:g=16,open:m,PaperProps:y={},transformOrigin:v={vertical:"top",horizontal:"left"},TransitionComponent:x=PA,transitionDuration:w="auto",TransitionProps:{onEntering:I}={}}=r,_=lt(r.TransitionProps,F4e),R=lt(r,N4e),U=M.useRef(),D=so(U,y.ref),b=Q({},r,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:g,PaperProps:y,transformOrigin:v,TransitionComponent:x,transitionDuration:w,TransitionProps:_}),T=U4e(b),C=M.useCallback(()=>{if(l==="anchorPosition")return s;const ie=nP(i),fe=(ie&&ie.nodeType===1?ie:gi(U.current).body).getBoundingClientRect();return{top:fe.top+pj(fe,a.vertical),left:fe.left+hj(fe,a.horizontal)}},[i,a.horizontal,a.vertical,s,l]),O=M.useCallback(ie=>({vertical:pj(ie,v.vertical),horizontal:hj(ie,v.horizontal)}),[v.horizontal,v.vertical]),$=M.useCallback(ie=>{const le={width:ie.offsetWidth,height:ie.offsetHeight},fe=O(le);if(l==="none")return{top:null,left:null,transformOrigin:gj(fe)};const Ee=C();let Ae=Ee.top-fe.vertical,Ie=Ee.left-fe.horizontal;const De=Ae+le.height,Ue=Ie+le.width,ce=Id(nP(i)),de=ce.innerHeight-g,ve=ce.innerWidth-g;if(Aede){const he=De-de;Ae-=he,fe.vertical+=he}if(Ieve){const he=Ue-ve;Ie-=he,fe.horizontal+=he}return{top:`${Math.round(Ae)}px`,left:`${Math.round(Ie)}px`,transformOrigin:gj(fe)}},[i,l,C,O,g]),[j,L]=M.useState(m),B=M.useCallback(()=>{const ie=U.current;if(!ie)return;const le=$(ie);le.top!==null&&(ie.style.top=le.top),le.left!==null&&(ie.style.left=le.left),ie.style.transformOrigin=le.transformOrigin,L(!0)},[$]),H=(ie,le)=>{I&&I(ie,le),B()},q=()=>{L(!1)};M.useEffect(()=>{m&&B()}),M.useImperativeHandle(o,()=>m?{updatePosition:()=>{B()}}:null,[m,B]),M.useEffect(()=>{if(!m)return;const ie=Xb(()=>{B()}),le=Id(i);return le.addEventListener("resize",ie),()=>{ie.clear(),le.removeEventListener("resize",ie)}},[i,m,B]);let Y=w;w==="auto"&&!x.muiSupportAuto&&(Y=void 0);const W=f||(i?gi(nP(i)).body:void 0);return A(j4e,Q({BackdropProps:{invisible:!0},className:vt(T.root,c),container:W,open:m,ref:n,ownerState:b},R,{children:A(x,Q({appear:!0,in:m,onEntering:H,onExited:q,timeout:Y},_,{children:A(W4e,Q({elevation:p},y,{ref:D,className:vt(T.paper,y.className)},j?void 0:{style:Q({},y.style,{opacity:0})},{ownerState:b,children:u}))}))}))}),V4e=z4e;function H4e(e){return Vt("MuiMenu",e)}Rt("MuiMenu",["root","paper","list"]);const q4e=["onEntering"],Q4e=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],K4e={vertical:"top",horizontal:"right"},Y4e={vertical:"top",horizontal:"left"},G4e=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"],list:["list"]},H4e,t)},J4e=J(V4e,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X4e=J(Ay,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Z4e=J($4e,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),e3e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,disableAutoFocusItem:a=!1,MenuListProps:s={},onClose:l,open:u,PaperProps:c={},PopoverClasses:f,transitionDuration:p="auto",TransitionProps:{onEntering:g}={},variant:m="selectedMenu"}=r,y=lt(r.TransitionProps,q4e),v=lt(r,Q4e),x=Fo(),w=x.direction==="rtl",I=Q({},r,{autoFocus:o,disableAutoFocusItem:a,MenuListProps:s,onEntering:g,PaperProps:c,transitionDuration:p,TransitionProps:y,variant:m}),_=G4e(I),R=o&&!a&&u,U=M.useRef(null),D=(C,O)=>{U.current&&U.current.adjustStyleForScrollbar(C,x),g&&g(C,O)},b=C=>{C.key==="Tab"&&(C.preventDefault(),l&&l(C,"tabKeyDown"))};let T=-1;return M.Children.map(i,(C,O)=>{M.isValidElement(C)&&(C.props.disabled||(m==="selectedMenu"&&C.props.selected||T===-1)&&(T=O))}),A(J4e,Q({onClose:l,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?K4e:Y4e,PaperProps:Q({as:X4e},c,{classes:Q({},c.classes,{root:_.paper})}),className:_.root,open:u,ref:n,transitionDuration:p,TransitionProps:Q({onEntering:D},y),ownerState:I},v,{classes:f,children:A(Z4e,Q({onKeyDown:b,actions:U,autoFocus:o&&(T===-1||a),autoFocusItem:R,variant:m},s,{className:vt(_.list,s.className),children:i}))}))}),YG=e3e;function t3e(e){return Vt("MuiMenuItem",e)}const n3e=Rt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Zv=n3e,r3e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],o3e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},i3e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Ut({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},t3e,a);return Q({},a,l)},a3e=J(mc,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:o3e})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Zv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Zv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Fn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Zv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Zv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${X9.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${X9.inset}`]:{marginLeft:52},[`& .${dj.root}`]:{marginTop:0,marginBottom:0},[`& .${dj.inset}`]:{paddingLeft:36},[`& .${cj.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${cj.root} svg`]:{fontSize:"1.25rem"}}))),s3e=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:s=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:p}=r,g=lt(r,r3e),m=M.useContext(Bh),y=M.useMemo(()=>({dense:a||m.dense||!1,disableGutters:l}),[m.dense,a,l]),v=M.useRef(null);pa(()=>{o&&v.current&&v.current.focus()},[o]);const x=Q({},r,{dense:y.dense,divider:s,disableGutters:l}),w=i3e(r),I=so(v,n);let _;return r.disabled||(_=f!==void 0?f:-1),A(Bh.Provider,{value:y,children:A(a3e,Q({ref:I,role:c,tabIndex:_,component:i,focusVisibleClassName:vt(w.focusVisible,u),className:vt(w.root,p)},g,{ownerState:x,classes:w}))})}),ID=s3e;function l3e(e){return Vt("MuiNativeSelect",e)}const u3e=Rt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),PD=u3e,c3e=["className","disabled","error","IconComponent","inputRef","variant"],d3e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${dt(n)}`,i&&"iconOpen",r&&"disabled"]};return Ut(s,l3e,t)},GG=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${PD.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),f3e=J("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ul,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${PD.multiple}`]:t.multiple}]}})(GG),JG=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${PD.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),p3e=J("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${dt(n.variant)}`],n.open&&t.iconOpen]}})(JG),h3e=M.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:s,variant:l="standard"}=t,u=lt(t,c3e),c=Q({},t,{disabled:o,variant:l,error:i}),f=d3e(c);return Se(M.Fragment,{children:[A(f3e,Q({ownerState:c,className:vt(f.select,r),disabled:o,ref:s||n},u)),t.multiple?null:A(p3e,{as:a,ownerState:c,className:f.icon})]})}),g3e=h3e;var mj;const m3e=["children","classes","className","label","notched"],y3e=J("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),v3e=J("legend")(({ownerState:e,theme:t})=>Q({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Q({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function b3e(e){const{className:t,label:n,notched:r}=e,o=lt(e,m3e),i=n!=null&&n!=="",a=Q({},e,{notched:r,withLabel:i});return A(y3e,Q({"aria-hidden":!0,className:t,ownerState:a},o,{children:A(v3e,{ownerState:a,children:i?A("span",{children:n}):mj||(mj=A("span",{className:"notranslate",children:"​"}))})}))}const w3e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],S3e=e=>{const{classes:t}=e,r=Ut({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},XEe,t);return Q({},t,r)},x3e=J(eT,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:XE})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${gf.focused} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gf.error} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gf.disabled} .${gf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),C3e=J(b3e,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),A3e=J(tT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ZE})(({theme:e,ownerState:t})=>Q({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),XG=M.forwardRef(function(t,n){var r,o,i,a,s;const l=Bt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:m,slots:y={},type:v="text"}=l,x=lt(l,w3e),w=S3e(l),I=Ap(),_=_y({props:l,muiFormControl:I,states:["required"]}),R=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:I,fullWidth:c,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:v}),U=(r=(o=y.root)!=null?o:u.Root)!=null?r:x3e,D=(i=(a=y.input)!=null?a:u.Input)!=null?i:A3e;return A(_D,Q({slots:{root:U,input:D},renderSuffix:b=>A(C3e,{ownerState:R,className:w.notchedOutline,label:p!=null&&p!==""&&_.required?s||(s=Se(M.Fragment,{children:[p," ","*"]})):p,notched:typeof m<"u"?m:!!(b.startAdornment||b.filled||b.focused)}),fullWidth:c,inputComponent:f,multiline:g,ref:n,type:v},x,{classes:Q({},w,{notchedOutline:null})}))});XG.muiName="Input";const ZG=XG,_3e=Yo(A("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),E3e=Yo(A("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),T3e=J("span")({position:"relative",display:"flex"}),k3e=J(_3e)({transform:"scale(1)"}),I3e=J(E3e)(({theme:e,ownerState:t})=>Q({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function eJ(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Q({},e,{checked:t});return Se(T3e,{className:n.root,ownerState:o,children:[A(k3e,{fontSize:r,className:n.background,ownerState:o}),A(I3e,{fontSize:r,className:n.dot,ownerState:o})]})}const P3e=M.createContext(void 0),M3e=P3e;function O3e(){return M.useContext(M3e)}function R3e(e){return Vt("MuiRadio",e)}const D3e=Rt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]),yj=D3e,B3e=["checked","checkedIcon","color","icon","name","onChange","size","className"],$3e=e=>{const{classes:t,color:n}=e,r={root:["root",`color${dt(n)}`]};return Q({},t,Ut(r,R3e,t))},L3e=J(BG,{shouldForwardProp:e=>Ul(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${dt(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${yj.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${yj.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function F3e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const vj=A(eJ,{checked:!0}),bj=A(eJ,{}),N3e=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiRadio"}),{checked:a,checkedIcon:s=vj,color:l="primary",icon:u=bj,name:c,onChange:f,size:p="medium",className:g}=i,m=lt(i,B3e),y=Q({},i,{color:l,size:p}),v=$3e(y),x=O3e();let w=a;const I=RO(f,x&&x.onChange);let _=c;return x&&(typeof w>"u"&&(w=F3e(x.value,i.value)),typeof _>"u"&&(_=x.name)),A(L3e,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=bj.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(s,{fontSize:(o=vj.props.fontSize)!=null?o:p}),ownerState:y,classes:v,name:_,checked:w,onChange:I,ref:n,className:vt(v.root,g)},m))}),wj=N3e;function U3e(e){return Vt("MuiSelect",e)}const j3e=Rt("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),e1=j3e;var Sj;const W3e=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],z3e=J("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${e1.select}`]:t.select},{[`&.${e1.select}`]:t[n.variant]},{[`&.${e1.error}`]:t.error},{[`&.${e1.multiple}`]:t.multiple}]}})(GG,{[`&.${e1.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),V3e=J("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${dt(n.variant)}`],n.open&&t.iconOpen]}})(JG),H3e=J("input",{shouldForwardProp:e=>CCe(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function xj(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function q3e(e){return e==null||typeof e=="string"&&!e.trim()}const Q3e=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${dt(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Ut(s,U3e,t)},K3e=M.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:u,defaultValue:c,disabled:f,displayEmpty:p,error:g=!1,IconComponent:m,inputRef:y,labelId:v,MenuProps:x={},multiple:w,name:I,onBlur:_,onChange:R,onClose:U,onFocus:D,onOpen:b,open:T,readOnly:C,renderValue:O,SelectDisplayProps:$={},tabIndex:j,value:L,variant:B="standard"}=t,H=lt(t,W3e),[q,Y]=ls({controlled:L,default:c,name:"Select"}),[W,ie]=ls({controlled:T,default:u,name:"Select"}),le=M.useRef(null),fe=M.useRef(null),[Ee,Ae]=M.useState(null),{current:Ie}=M.useRef(T!=null),[De,Ue]=M.useState(),ce=so(n,y),de=M.useCallback(P=>{fe.current=P,P&&Ae(P)},[]),ve=Ee==null?void 0:Ee.parentNode;M.useImperativeHandle(ce,()=>({focus:()=>{fe.current.focus()},node:le.current,value:q}),[q]),M.useEffect(()=>{u&&W&&Ee&&!Ie&&(Ue(a?null:ve.clientWidth),fe.current.focus())},[Ee,a]),M.useEffect(()=>{i&&fe.current.focus()},[i]),M.useEffect(()=>{if(!v)return;const P=gi(fe.current).getElementById(v);if(P){const V=()=>{getSelection().isCollapsed&&fe.current.focus()};return P.addEventListener("click",V),()=>{P.removeEventListener("click",V)}}},[v]);const he=(P,V)=>{P?b&&b(V):U&&U(V),Ie||(Ue(a?null:ve.clientWidth),ie(P))},pe=P=>{P.button===0&&(P.preventDefault(),fe.current.focus(),he(!0,P))},ge=P=>{he(!1,P)},Ce=M.Children.toArray(s),_e=P=>{const V=Ce.map(ee=>ee.props.value).indexOf(P.target.value);if(V===-1)return;const K=Ce[V];Y(K.props.value),R&&R(P,K)},Ne=P=>V=>{let K;if(V.currentTarget.hasAttribute("tabindex")){if(w){K=Array.isArray(q)?q.slice():[];const ee=q.indexOf(P.props.value);ee===-1?K.push(P.props.value):K.splice(ee,1)}else K=P.props.value;if(P.props.onClick&&P.props.onClick(V),q!==K&&(Y(K),R)){const ee=V.nativeEvent||V,be=new ee.constructor(ee.type,ee);Object.defineProperty(be,"target",{writable:!0,value:{value:K,name:I}}),R(be,P)}w||he(!1,V)}},Be=P=>{C||[" ","ArrowUp","ArrowDown","Enter"].indexOf(P.key)!==-1&&(P.preventDefault(),he(!0,P))},Ve=Ee!==null&&W,wt=P=>{!Ve&&_&&(Object.defineProperty(P,"target",{writable:!0,value:{value:q,name:I}}),_(P))};delete H["aria-invalid"];let xe,je;const We=[];let Ge=!1;(AD({value:q})||p)&&(O?xe=O(q):Ge=!0);const Fe=Ce.map(P=>{if(!M.isValidElement(P))return null;let V;if(w){if(!Array.isArray(q))throw new Error(lp(2));V=q.some(K=>xj(K,P.props.value)),V&&Ge&&We.push(P.props.children)}else V=xj(q,P.props.value),V&&Ge&&(je=P.props.children);return M.cloneElement(P,{"aria-selected":V?"true":"false",onClick:Ne(P),onKeyUp:K=>{K.key===" "&&K.preventDefault(),P.props.onKeyUp&&P.props.onKeyUp(K)},role:"option",selected:V,value:void 0,"data-value":P.props.value})});Ge&&(w?We.length===0?xe=null:xe=We.reduce((P,V,K)=>(P.push(V),K{const{classes:t}=e;return t},MD={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ul(e)&&e!=="variant",slot:"Root"},X3e=J(VG,MD)(""),Z3e=J(ZG,MD)(""),ePe=J(FG,MD)(""),tJ=M.forwardRef(function(t,n){const r=Bt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=nTe,id:f,input:p,inputProps:g,label:m,labelId:y,MenuProps:v,multiple:x=!1,native:w=!1,onClose:I,onOpen:_,open:R,renderValue:U,SelectDisplayProps:D,variant:b="outlined"}=r,T=lt(r,G3e),C=w?g3e:Y3e,O=Ap(),$=_y({props:r,muiFormControl:O,states:["variant","error"]}),j=$.variant||b,L=Q({},r,{variant:j,classes:a}),B=J3e(L),H=p||{standard:A(X3e,{ownerState:L}),outlined:A(Z3e,{label:m,ownerState:L}),filled:A(ePe,{ownerState:L})}[j],q=so(n,H.ref);return A(M.Fragment,{children:M.cloneElement(H,Q({inputComponent:C,inputProps:Q({children:i,error:$.error,IconComponent:c,variant:j,type:void 0,multiple:x},w?{id:f}:{autoWidth:o,defaultOpen:l,displayEmpty:u,labelId:y,MenuProps:v,onClose:I,onOpen:_,open:R,renderValue:U,SelectDisplayProps:Q({id:f},D)},g,{classes:g?Tl(B,g.classes):B},p?p.props.inputProps:{})},x&&w&&j==="outlined"?{notched:!0}:{},{ref:q,className:vt(H.props.className,s)},!p&&{variant:j},T))})});tJ.muiName="Select";const OD=tJ;function tPe(e){return Vt("MuiSkeleton",e)}Rt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const nPe=["animation","className","component","height","style","variant","width"];let MA=e=>e,Cj,Aj,_j,Ej;const rPe=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return Ut({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},tPe,t)},oPe=_u(Cj||(Cj=MA` 0% { opacity: 1; } @@ -237,7 +237,7 @@ Error generating stack: `+i.message+` 100% { opacity: 1; } -`)),aPe=Au(Aj||(Aj=MA` +`)),iPe=_u(Aj||(Aj=MA` 0% { transform: translateX(-100%); } @@ -250,9 +250,9 @@ Error generating stack: `+i.message+` 100% { transform: translateX(100%); } -`)),sPe=J("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=SCe(e.shape.borderRadius)||"px",r=xCe(e.shape.borderRadius);return Q({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Ln(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&up(_j||(_j=MA` +`)),aPe=J("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const n=wCe(e.shape.borderRadius)||"px",r=SCe(e.shape.borderRadius);return Q({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:Fn(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${n}/${Math.round(r/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&up(_j||(_j=MA` animation: ${0} 1.5s ease-in-out 0.5s infinite; - `),iPe),({ownerState:e,theme:t})=>e.animation==="wave"&&up(Ej||(Ej=MA` + `),oPe),({ownerState:e,theme:t})=>e.animation==="wave"&&up(Ej||(Ej=MA` position: relative; overflow: hidden; @@ -275,27 +275,27 @@ Error generating stack: `+i.message+` right: 0; top: 0; } - `),aPe,(t.vars||t).palette.action.hover)),lPe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=lt(r,rPe),p=Q({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),g=oPe(p);return A(sPe,Q({as:a,ref:n,className:vt(g.root,i),ownerState:p},f,{style:Q({width:c,height:s},l)}))}),uPe=lPe;function cPe(e){return Vt("MuiTooltip",e)}const dPe=Rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Of=dPe,fPe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function pPe(e){return Math.round(e*1e5)/1e5}const hPe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${dt(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,cPe,t)},gPe=J(SD,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Of.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Of.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Of.arrow}`]:Q({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Of.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),mPe=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ln(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pPe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Of.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Of.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Of.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Of.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),yPe=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Ln(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ox=!1,nP=null,t1={x:0,y:0};function Rx(e,t){return n=>{t&&t(n),e(n)}}const vPe=M.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,g,m,y,v,x,w,I,_,R;const U=Bt({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:b,components:T={},componentsProps:C={},describeChild:O=!1,disableFocusListener:$=!1,disableHoverListener:j=!1,disableInteractive:L=!1,disableTouchListener:B=!1,enterDelay:H=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:W=!1,id:ie,leaveDelay:le=0,leaveTouchDelay:fe=1500,onClose:Ee,onOpen:Ae,open:Ie,placement:De="bottom",PopperComponent:Ue,PopperProps:ce={},slotProps:de={},slots:ve={},title:he,TransitionComponent:pe=PA,TransitionProps:ge}=U,Ce=lt(U,fPe),_e=Fo(),Ne=_e.direction==="rtl",[Be,Ve]=M.useState(),[wt,xe]=M.useState(null),je=M.useRef(!1),We=L||W,Ge=M.useRef(),Fe=M.useRef(),te=M.useRef(),Z=M.useRef(),[N,k]=ls({controlled:Ie,default:!1,name:"Tooltip",state:"open"});let S=N;const P=Xw(ie),V=M.useRef(),K=M.useCallback(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),clearTimeout(Z.current)},[]);M.useEffect(()=>()=>{clearTimeout(Ge.current),clearTimeout(Fe.current),clearTimeout(te.current),K()},[K]);const ee=Ct=>{clearTimeout(nP),Ox=!0,k(!0),Ae&&!S&&Ae(Ct)},be=Or(Ct=>{clearTimeout(nP),nP=setTimeout(()=>{Ox=!1},800+le),k(!1),Ee&&S&&Ee(Ct),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{je.current=!1},_e.transitions.duration.shortest)}),Me=Ct=>{je.current&&Ct.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(Fe.current),clearTimeout(te.current),H||Ox&&q?Fe.current=setTimeout(()=>{ee(Ct)},Ox?q:H):ee(Ct))},we=Ct=>{clearTimeout(Fe.current),clearTimeout(te.current),te.current=setTimeout(()=>{be(Ct)},le)},{isFocusVisibleRef:Pe,onBlur:Ye,onFocus:ze,ref:rn}=q6(),[,Qt]=M.useState(!1),Zt=Ct=>{Ye(Ct),Pe.current===!1&&(Qt(!1),we(Ct))},An=Ct=>{Be||Ve(Ct.currentTarget),ze(Ct),Pe.current===!0&&(Qt(!0),Me(Ct))},br=Ct=>{je.current=!0;const Jt=b.props;Jt.onTouchStart&&Jt.onTouchStart(Ct)},wr=Me,kr=we,ti=Ct=>{br(Ct),clearTimeout(te.current),clearTimeout(Ge.current),K(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Z.current=setTimeout(()=>{document.body.style.WebkitUserSelect=V.current,Me(Ct)},Y)},Yi=Ct=>{b.props.onTouchEnd&&b.props.onTouchEnd(Ct),K(),clearTimeout(te.current),te.current=setTimeout(()=>{be(Ct)},fe)};M.useEffect(()=>{if(!S)return;function Ct(Jt){(Jt.key==="Escape"||Jt.key==="Esc")&&be(Jt)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[be,S]);const Gi=so(b.ref,rn,Ve,n);!he&&he!==0&&(S=!1);const Ir=M.useRef(),nr=Ct=>{const Jt=b.props;Jt.onMouseMove&&Jt.onMouseMove(Ct),t1={x:Ct.clientX,y:Ct.clientY},Ir.current&&Ir.current.update()},Si={},G=typeof he=="string";O?(Si.title=!S&&G&&!j?he:null,Si["aria-describedby"]=S?P:null):(Si["aria-label"]=G?he:null,Si["aria-labelledby"]=S&&!G?P:null);const re=Q({},Si,Ce,b.props,{className:vt(Ce.className,b.props.className),onTouchStart:br,ref:Gi},W?{onMouseMove:nr}:{}),ne={};B||(re.onTouchStart=ti,re.onTouchEnd=Yi),j||(re.onMouseOver=Rx(wr,re.onMouseOver),re.onMouseLeave=Rx(kr,re.onMouseLeave),We||(ne.onMouseOver=wr,ne.onMouseLeave=kr)),$||(re.onFocus=Rx(An,re.onFocus),re.onBlur=Rx(Zt,re.onBlur),We||(ne.onFocus=An,ne.onBlur=Zt));const F=M.useMemo(()=>{var Ct;let Jt=[{name:"arrow",enabled:!!wt,options:{element:wt,padding:4}}];return(Ct=ce.popperOptions)!=null&&Ct.modifiers&&(Jt=Jt.concat(ce.popperOptions.modifiers)),Q({},ce.popperOptions,{modifiers:Jt})},[wt,ce]),ae=Q({},U,{isRtl:Ne,arrow:D,disableInteractive:We,placement:De,PopperComponentProp:Ue,touch:je.current}),Re=hPe(ae),Le=(r=(o=ve.popper)!=null?o:T.Popper)!=null?r:gPe,et=(i=(a=(s=ve.transition)!=null?s:T.Transition)!=null?a:pe)!=null?i:PA,mt=(l=(u=ve.tooltip)!=null?u:T.Tooltip)!=null?l:mPe,$t=(c=(f=ve.arrow)!=null?f:T.Arrow)!=null?c:yPe,Et=Q1(Le,Q({},ce,(p=de.popper)!=null?p:C.popper,{className:vt(Re.popper,ce==null?void 0:ce.className,(g=(m=de.popper)!=null?m:C.popper)==null?void 0:g.className)}),ae),Un=Q1(et,Q({},ge,(y=de.transition)!=null?y:C.transition),ae),Ot=Q1(mt,Q({},(v=de.tooltip)!=null?v:C.tooltip,{className:vt(Re.tooltip,(x=(w=de.tooltip)!=null?w:C.tooltip)==null?void 0:x.className)}),ae),an=Q1($t,Q({},(I=de.arrow)!=null?I:C.arrow,{className:vt(Re.arrow,(_=(R=de.arrow)!=null?R:C.arrow)==null?void 0:_.className)}),ae);return Se(M.Fragment,{children:[M.cloneElement(b,re),A(Le,Q({as:Ue??SD,placement:De,anchorEl:W?{getBoundingClientRect:()=>({top:t1.y,left:t1.x,right:t1.x,bottom:t1.y,width:0,height:0})}:Be,popperRef:Ir,open:Be?S:!1,id:P,transition:!0},ne,Et,{popperOptions:F,children:({TransitionProps:Ct})=>A(et,Q({timeout:_e.transitions.duration.shorter},Ct,Un,{children:Se(mt,Q({},Ot,{children:[he,D?A($t,Q({},an,{ref:xe})):null]}))}))}))]})}),bPe=vPe;function wPe(e){return Vt("MuiTab",e)}const SPe=Rt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),nh=SPe,xPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],CPe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${dt(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ut(u,wPe,t)},APe=J(gc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${dt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Q({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${nh.iconWrapper}`]:Q({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${nh.selected}`]:{opacity:1},[`&.${nh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${nh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${nh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),_Pe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:g,onFocus:m,selected:y,selectionFollowsFocus:v,textColor:x="inherit",value:w,wrapped:I=!1}=r,_=lt(r,xPe),R=Q({},r,{disabled:i,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:I}),U=CPe(R),D=l&&f&&M.isValidElement(l)?M.cloneElement(l,{className:vt(U.iconWrapper,l.props.className)}):l,b=C=>{!y&&p&&p(C,w),g&&g(C)},T=C=>{v&&!y&&p&&p(C,w),m&&m(C)};return Se(APe,Q({focusRipple:!a,className:vt(U.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:b,onFocus:T,ownerState:R,tabIndex:y?0:-1},_,{children:[u==="top"||u==="start"?Se(M.Fragment,{children:[D,f]}):Se(M.Fragment,{children:[f,D]}),c]}))}),qO=_Pe,EPe=Yo(A("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),TPe=Yo(A("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function kPe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function IPe(e,t,n,r={},o=()=>{}){const{ease:i=kPe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const g=Math.min(1,(p-s)/a);if(t[e]=i(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const PPe=["onChange"],MPe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function OPe(e){const{onChange:t}=e,n=lt(e,PPe),r=M.useRef(),o=M.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return pa(()=>{const a=Xb(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Id(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),M.useEffect(()=>{i(),t(r.current)},[t]),A("div",Q({style:MPe,ref:o},n))}function RPe(e){return Vt("MuiTabScrollButton",e)}const DPe=Rt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),BPe=DPe,$Pe=["className","slots","slotProps","direction","orientation","disabled"],LPe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ut({root:["root",n,r&&"disabled"]},RPe,t)},FPe=J(gc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Q({width:40,flexShrink:0,opacity:.8,[`&.${BPe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),NPe=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=lt(i,$Pe),p=Fo().direction==="rtl",g=Q({isRtl:p},i),m=LPe(g),y=(r=s.StartScrollButtonIcon)!=null?r:EPe,v=(o=s.EndScrollButtonIcon)!=null?o:TPe,x=vo({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),w=vo({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return A(FPe,Q({component:"div",className:vt(m.root,a),ref:n,role:null,ownerState:g,tabIndex:null},c,{children:u==="left"?A(y,Q({},x)):A(v,Q({},w))}))}),UPe=NPe;function jPe(e){return Vt("MuiTabs",e)}const WPe=Rt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kC=WPe,zPe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Tj=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kj=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Dx=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},VPe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ut({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},jPe,l)},HPe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kC.scrollButtons}`]:t.scrollButtons},{[`& .${kC.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Q({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kC.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),qPe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Q({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),QPe=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Q({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),KPe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Q({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),YPe=J(OPe,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ij={},GPe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTabs"}),o=Fo(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:m="primary",onChange:y,orientation:v="horizontal",ScrollButtonComponent:x=UPe,scrollButtons:w="auto",selectionFollowsFocus:I,slots:_={},slotProps:R={},TabIndicatorProps:U={},TabScrollButtonProps:D={},textColor:b="primary",value:T,variant:C="standard",visibleScrollbar:O=!1}=r,$=lt(r,zPe),j=C==="scrollable",L=v==="vertical",B=L?"scrollTop":"scrollLeft",H=L?"top":"left",q=L?"bottom":"right",Y=L?"clientHeight":"clientWidth",W=L?"height":"width",ie=Q({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:m,orientation:v,vertical:L,scrollButtons:w,textColor:b,variant:C,visibleScrollbar:O,fixed:!j,hideScrollbar:j&&!O,scrollableX:j&&!L,scrollableY:j&&L,centered:u&&!j,scrollButtonsHideMobile:!g}),le=VPe(ie),fe=vo({elementType:_.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:ie}),Ee=vo({elementType:_.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:ie}),[Ae,Ie]=M.useState(!1),[De,Ue]=M.useState(Ij),[ce,de]=M.useState({start:!1,end:!1}),[ve,he]=M.useState({overflow:"hidden",scrollbarWidth:0}),pe=new Map,ge=M.useRef(null),Ce=M.useRef(null),_e=()=>{const K=ge.current;let ee;if(K){const Me=K.getBoundingClientRect();ee={clientWidth:K.clientWidth,scrollLeft:K.scrollLeft,scrollTop:K.scrollTop,scrollLeftNormalized:Z7(K,o.direction),scrollWidth:K.scrollWidth,top:Me.top,bottom:Me.bottom,left:Me.left,right:Me.right}}let be;if(K&&T!==!1){const Me=Ce.current.children;if(Me.length>0){const we=Me[pe.get(T)];be=we?we.getBoundingClientRect():null}}return{tabsMeta:ee,tabMeta:be}},Ne=Or(()=>{const{tabsMeta:K,tabMeta:ee}=_e();let be=0,Me;if(L)Me="top",ee&&K&&(be=ee.top-K.top+K.scrollTop);else if(Me=i?"right":"left",ee&&K){const Pe=i?K.scrollLeftNormalized+K.clientWidth-K.scrollWidth:K.scrollLeft;be=(i?-1:1)*(ee[Me]-K[Me]+Pe)}const we={[Me]:be,[W]:ee?ee[W]:0};if(isNaN(De[Me])||isNaN(De[W]))Ue(we);else{const Pe=Math.abs(De[Me]-we[Me]),Ye=Math.abs(De[W]-we[W]);(Pe>=1||Ye>=1)&&Ue(we)}}),Be=(K,{animation:ee=!0}={})=>{ee?IPe(B,ge.current,K,{duration:o.transitions.duration.standard}):ge.current[B]=K},Ve=K=>{let ee=ge.current[B];L?ee+=K:(ee+=K*(i?-1:1),ee*=i&&zY()==="reverse"?-1:1),Be(ee)},wt=()=>{const K=ge.current[Y];let ee=0;const be=Array.from(Ce.current.children);for(let Me=0;MeK){Me===0&&(ee=K);break}ee+=we[Y]}return ee},xe=()=>{Ve(-1*wt())},je=()=>{Ve(wt())},We=M.useCallback(K=>{he({overflow:null,scrollbarWidth:K})},[]),Ge=()=>{const K={};K.scrollbarSizeListener=j?A(YPe,{onChange:We,className:vt(le.scrollableX,le.hideScrollbar)}):null;const ee=ce.start||ce.end,be=j&&(w==="auto"&&ee||w===!0);return K.scrollButtonStart=be?A(x,Q({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:fe},orientation:v,direction:i?"right":"left",onClick:xe,disabled:!ce.start},D,{className:vt(le.scrollButtons,D.className)})):null,K.scrollButtonEnd=be?A(x,Q({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:v,direction:i?"left":"right",onClick:je,disabled:!ce.end},D,{className:vt(le.scrollButtons,D.className)})):null,K},Fe=Or(K=>{const{tabsMeta:ee,tabMeta:be}=_e();if(!(!be||!ee)){if(be[H]ee[q]){const Me=ee[B]+(be[q]-ee[q]);Be(Me,{animation:K})}}}),te=Or(()=>{if(j&&w!==!1){const{scrollTop:K,scrollHeight:ee,clientHeight:be,scrollWidth:Me,clientWidth:we}=ge.current;let Pe,Ye;if(L)Pe=K>1,Ye=K1,Ye=i?ze>1:ze{const K=Xb(()=>{ge.current&&(Ne(),te())}),ee=Id(ge.current);ee.addEventListener("resize",K);let be;return typeof ResizeObserver<"u"&&(be=new ResizeObserver(K),Array.from(Ce.current.children).forEach(Me=>{be.observe(Me)})),()=>{K.clear(),ee.removeEventListener("resize",K),be&&be.disconnect()}},[Ne,te]);const Z=M.useMemo(()=>Xb(()=>{te()}),[te]);M.useEffect(()=>()=>{Z.clear()},[Z]),M.useEffect(()=>{Ie(!0)},[]),M.useEffect(()=>{Ne(),te()}),M.useEffect(()=>{Fe(Ij!==De)},[Fe,De]),M.useImperativeHandle(l,()=>({updateIndicator:Ne,updateScrollButtons:te}),[Ne,te]);const N=A(KPe,Q({},U,{className:vt(le.indicator,U.className),ownerState:ie,style:Q({},De,U.style)}));let k=0;const S=M.Children.map(c,K=>{if(!M.isValidElement(K))return null;const ee=K.props.value===void 0?k:K.props.value;pe.set(ee,k);const be=ee===T;return k+=1,M.cloneElement(K,Q({fullWidth:C==="fullWidth",indicator:be&&!Ae&&N,selected:be,selectionFollowsFocus:I,onChange:y,textColor:b,value:ee},k===1&&T===!1&&!K.props.tabIndex?{tabIndex:0}:{}))}),P=K=>{const ee=Ce.current,be=gi(ee).activeElement;if(be.getAttribute("role")!=="tab")return;let we=v==="horizontal"?"ArrowLeft":"ArrowUp",Pe=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(we="ArrowRight",Pe="ArrowLeft"),K.key){case we:K.preventDefault(),Dx(ee,be,kj);break;case Pe:K.preventDefault(),Dx(ee,be,Tj);break;case"Home":K.preventDefault(),Dx(ee,null,Tj);break;case"End":K.preventDefault(),Dx(ee,null,kj);break}},V=Ge();return Se(HPe,Q({className:vt(le.root,f),ownerState:ie,ref:n,as:p},$,{children:[V.scrollButtonStart,V.scrollbarSizeListener,Se(qPe,{className:le.scroller,ownerState:ie,style:{overflow:ve.overflow,[L?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-ve.scrollbarWidth},ref:ge,onScroll:Z,children:[A(QPe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,className:le.flexContainer,ownerState:ie,onKeyDown:P,ref:Ce,role:"tablist",children:S}),Ae&&N]}),V.scrollButtonEnd]}))}),nJ=GPe;function JPe(e){return Vt("MuiTextField",e)}Rt("MuiTextField",["root"]);const XPe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],ZPe={standard:VG,filled:FG,outlined:ZG},eMe=e=>{const{classes:t}=e;return Ut({root:["root"]},JPe,t)},tMe=J(NG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),nMe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:m,id:y,InputLabelProps:v,inputProps:x,InputProps:w,inputRef:I,label:_,maxRows:R,minRows:U,multiline:D=!1,name:b,onBlur:T,onChange:C,onFocus:O,placeholder:$,required:j=!1,rows:L,select:B=!1,SelectProps:H,type:q,value:Y,variant:W="outlined"}=r,ie=lt(r,XPe),le=Q({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:g,multiline:D,required:j,select:B,variant:W}),fe=eMe(le),Ee={};W==="outlined"&&(v&&typeof v.shrink<"u"&&(Ee.notched=v.shrink),Ee.label=_),B&&((!H||!H.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const Ae=Xw(y),Ie=m&&Ae?`${Ae}-helper-text`:void 0,De=_&&Ae?`${Ae}-label`:void 0,Ue=ZPe[W],ce=A(Ue,Q({"aria-describedby":Ie,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:g,multiline:D,name:b,rows:L,maxRows:R,minRows:U,type:q,value:Y,id:Ae,inputRef:I,onBlur:T,onChange:C,onFocus:O,placeholder:$,inputProps:x},Ee,w));return Se(tMe,Q({className:vt(fe.root,s),disabled:c,error:f,fullWidth:g,ref:n,required:j,color:l,variant:W,ownerState:le},ie,{children:[_!=null&&_!==""&&A(UIe,Q({htmlFor:Ae,id:De},v,{children:_})),B?A(MD,Q({"aria-describedby":Ie,id:Ae,labelId:De,value:Y,input:ce},H,{children:a})):ce,m&&A(Qke,Q({id:Ie},p,{children:m}))]}))}),OD=nMe;function Ls(e){return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function _u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rMe(e,t){if(Ls(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ls(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rJ(e){var t=rMe(e,"string");return Ls(t)==="symbol"?t:String(t)}function Pj(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};_u(this,e),this.init(t,n)}return Eu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||aMe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o1?r-1:0),i=1;i-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function Bj(e,t,n){var r=RD(e,t,Object),o=r.obj,i=r.k;o[i]=n}function uMe(e,t,n,r){var o=RD(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function OA(e,t){var n=RD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function cMe(e,t,n){var r=OA(e,n);return r!==void 0?r:OA(t,n)}function sJ(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):sJ(e[r],t[r],n):e[r]=t[r]);return e}function Mm(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dMe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function fMe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return dMe[t]}):e}var iT=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,pMe=[" ",",","?","!",";"];function hMe(e,t,n){t=t||"",n=n||"";var r=pMe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function RA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;ii+a;)a++,s=r.slice(i,i+a).join(n),l=o[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var u=r.slice(i+a).join(n);return u?RA(l,u,n):void 0}o=o[r[i]]}return o}}function $j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Bx(e){for(var t=1;t"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}}var yMe=function(e){oT(n,e);var t=gMe(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return _u(this,n),o=t.call(this),iT&&cp.call(md(o)),o.data=r||{},o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return Eu(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var i=this.options.ns.indexOf(o);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,u=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[o,i];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(l?a.split(l):a)),o.indexOf(".")>-1&&(c=o.split("."));var f=OA(this.data,c);return f||!u||typeof a!="string"?f:RA(this.data&&this.data[o]&&this.data[o][i],a,l)}},{key:"addResource",value:function(o,i,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[o,i];a&&(c=c.concat(u?a.split(u):a)),o.indexOf(".")>-1&&(c=o.split("."),s=i,i=c[1]),this.addNamespaces(i),Bj(this.data,c,s),l.silent||this.emit("added",o,i,a,s)}},{key:"addResources",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(o,i,l,a[l],{silent:!0});s.silent||this.emit("added",o,i,a)}},{key:"addResourceBundle",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[o,i];o.indexOf(".")>-1&&(c=o.split("."),s=a,a=i,i=c[1]),this.addNamespaces(i);var f=OA(this.data,c)||{};s?sJ(f,a,l):f=Bx(Bx({},f),a),Bj(this.data,c,f),u.silent||this.emit("added",o,i,a)}},{key:"removeResourceBundle",value:function(o,i){this.hasResourceBundle(o,i)&&delete this.data[o][i],this.removeNamespaces(i),this.emit("removed",o,i)}},{key:"hasResourceBundle",value:function(o,i){return this.getResource(o,i)!==void 0}},{key:"getResourceBundle",value:function(o,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Bx(Bx({},{}),this.getResource(o,i)):this.getResource(o,i)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var i=this.getDataByLanguage(o),a=i&&Object.keys(i)||[];return!!a.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(cp),lJ={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,o,i))}),n}};function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t"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}}var Fj={},Nj=function(e){oT(n,e);var t=vMe(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return _u(this,n),o=t.call(this),iT&&cp.call(md(o)),lMe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,md(o)),o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=tc.create("translator"),o}return Eu(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var a=this.resolve(o,i);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(o,i){var a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],u=a&&o.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!hMe(o,a,s);if(u&&!c){var f=o.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:o,namespaces:l};var p=o.split(a);(a!==s||a===s&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),o=p.join(s)}return typeof l=="string"&&(l=[l]),{key:o,namespaces:l}}},{key:"translate",value:function(o,i,a){var s=this;if(Ls(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),Ls(i)==="object"&&(i=ta({},i)),i||(i={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,c=this.extractFromKey(o[o.length-1],i),f=c.key,p=c.namespaces,g=p[p.length-1],m=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(y){var v=i.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(g).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:m,usedNS:g}:"".concat(g).concat(v).concat(f)}return l?{res:f,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:g}:f}var x=this.resolve(o,i),w=x&&x.res,I=x&&x.usedKey||f,_=x&&x.exactUsedKey||f,R=Object.prototype.toString.apply(w),U=["[object Number]","[object Function]","[object RegExp]"],D=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,T=typeof w!="string"&&typeof w!="boolean"&&typeof w!="number";if(b&&w&&T&&U.indexOf(R)<0&&!(typeof D=="string"&&R==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,w,ta(ta({},i),{},{ns:p})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(x.res=C,x):C}if(u){var O=R==="[object Array]",$=O?[]:{},j=O?_:I;for(var L in w)if(Object.prototype.hasOwnProperty.call(w,L)){var B="".concat(j).concat(u).concat(L);$[L]=this.translate(B,ta(ta({},i),{joinArrays:!1,ns:p})),$[L]===B&&($[L]=w[L])}w=$}}else if(b&&typeof D=="string"&&R==="[object Array]")w=w.join(D),w&&(w=this.extendTranslation(w,o,i,a));else{var H=!1,q=!1,Y=i.count!==void 0&&typeof i.count!="string",W=n.hasDefaultValue(i),ie=Y?this.pluralResolver.getSuffix(m,i.count,i):"",le=i["defaultValue".concat(ie)]||i.defaultValue;!this.isValidLookup(w)&&W&&(H=!0,w=le),this.isValidLookup(w)||(q=!0,w=f);var fe=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ee=fe&&q?void 0:w,Ae=W&&le!==w&&this.options.updateMissing;if(q||H||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",m,g,f,Ae?le:w),u){var Ie=this.resolve(f,ta(ta({},i),{},{keySeparator:!1}));Ie&&Ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var De=[],Ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ue&&Ue[0])for(var ce=0;ce1&&arguments[1]!==void 0?arguments[1]:{},s,l,u,c,f;return typeof o=="string"&&(o=[o]),o.forEach(function(p){if(!i.isValidLookup(s)){var g=i.extractFromKey(p,a),m=g.key;l=m;var y=g.namespaces;i.options.fallbackNS&&(y=y.concat(i.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",x=v&&!a.ordinal&&a.count===0&&i.pluralResolver.shouldUseIntlApi(),w=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",I=a.lngs?a.lngs:i.languageUtils.toResolveHierarchy(a.lng||i.language,a.fallbackLng);y.forEach(function(_){i.isValidLookup(s)||(f=_,!Fj["".concat(I[0],"-").concat(_)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(f)&&(Fj["".concat(I[0],"-").concat(_)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(I.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(function(R){if(!i.isValidLookup(s)){c=R;var U=[m];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(U,m,R,_,a);else{var D;v&&(D=i.pluralResolver.getSuffix(R,a.count,a));var b="".concat(i.options.pluralSeparator,"zero");if(v&&(U.push(m+D),x&&U.push(m+b)),w){var T="".concat(m).concat(i.options.contextSeparator).concat(a.context);U.push(T),v&&(U.push(T+D),x&&U.push(T+b))}}for(var C;C=U.pop();)i.isValidLookup(s)||(u=C,s=i.getResource(R,_,C,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:u,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,i,a,s):this.resourceStore.getResource(o,i,a,s)}}],[{key:"hasDefaultValue",value:function(o){var i="defaultValue";for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&i===a.substring(0,i.length)&&o[a]!==void 0)return!0;return!1}}]),n}(cp);function rP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Uj=function(){function e(t){_u(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=tc.create("languageUtils")}return Eu(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=rP(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=rP(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=rP(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;return n.forEach(function(i){if(!o){var a=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(a))&&(o=a)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return o=a;o=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(u){u&&(o.isSupportedCode(u)?a.push(u):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),i.forEach(function(l){a.indexOf(l)<0&&s(o.formatLanguageCode(l))}),a}}]),e}(),wMe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],SMe={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},xMe=["v1","v2","v3"],jj={zero:0,one:1,two:2,few:3,many:4,other:5};function CMe(){var e={};return wMe.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:SMe[t.fc]}})}),e}var AMe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_u(this,e),this.languageUtils=t,this.options=n,this.logger=tc.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=CMe()}return Eu(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(a,s){return jj[a]-jj[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):i.numbers.map(function(a){return r.getSuffix(n,a,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return o.options.prepend&&a.toString()?o.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!xMe.includes(this.options.compatibilityJSON)}}]),e}();function Wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=cMe(e,t,n);return!i&&o&&typeof n=="string"&&(i=RA(e,n,r),i===void 0&&(i=RA(t,n,r))),i}var _Me=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_u(this,e),this.logger=tc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Eu(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:fMe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Mm(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Mm(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Mm(r.nestingPrefix):r.nestingPrefixEscaped||Mm("$t("),this.nestingSuffix=r.nestingSuffix?Mm(r.nestingSuffix):r.nestingSuffixEscaped||Mm(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var a=this,s,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var p=function(x){if(x.indexOf(a.formatSeparator)<0){var w=zj(r,c,x,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(w,void 0,o,Jl(Jl(Jl({},i),r),{},{interpolationkey:x})):w}var I=x.split(a.formatSeparator),_=I.shift().trim(),R=I.join(a.formatSeparator).trim();return a.format(zj(r,c,_,a.options.keySeparator,a.options.ignoreJSONStructure),R,o,Jl(Jl(Jl({},i),r),{},{interpolationkey:_}))};this.resetRegExp();var g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(x){return f(x)}},{regex:this.regexp,safeValue:function(x){return a.escapeValue?f(a.escape(x)):f(x)}}];return y.forEach(function(v){for(u=0;s=v.regex.exec(n);){var x=s[1].trim();if(l=p(x),l===void 0)if(typeof g=="function"){var w=g(n,s,i);l=typeof w=="string"?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(x," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Dj(l));var I=v.safeValue(l);if(n=n.replace(s[0],I),m?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,u++,u>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function u(g,m){var y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;var v=g.split(new RegExp("".concat(y,"[ ]*{"))),x="{".concat(v[1]);g=v[0],x=this.interpolate(x,l);var w=x.match(/'/g),I=x.match(/"/g);(w&&w.length%2===0&&!I||I.length%2!==0)&&(x=x.replace(/'/g,'"'));try{l=JSON.parse(x),m&&(l=Jl(Jl({},m),l))}catch(_){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),_),"".concat(g).concat(y).concat(x)}return delete l.defaultValue,g}for(;a=this.nestingRegexp.exec(n);){var c=[];l=Jl({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var p=a[1].split(this.formatSeparator).map(function(g){return g.trim()});a[1]=p.shift(),c=p,f=!0}if(s=r(u.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Dj(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),f&&(s=c.reduce(function(g,m){return o.format(g,m,i.lng,Jl(Jl({},i),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function Vj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(a){if(a){var s=a.split(":"),l=iMe(s),u=l[0],c=l.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=f),f==="false"&&(n[u.trim()]=!1),f==="true"&&(n[u.trim()]=!0),isNaN(f)||(n[u.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Om(e){var t={};return function(r,o,i){var a=o+JSON.stringify(i),s=t[a];return s||(s=e(o,i),t[a]=s),s(r)}}var TMe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_u(this,e),this.logger=tc.create("formatter"),this.options=t,this.formats={number:Om(function(n,r){var o=new Intl.NumberFormat(n,Qc({},r));return function(i){return o.format(i)}}),currency:Om(function(n,r){var o=new Intl.NumberFormat(n,Qc(Qc({},r),{},{style:"currency"}));return function(i){return o.format(i)}}),datetime:Om(function(n,r){var o=new Intl.DateTimeFormat(n,Qc({},r));return function(i){return o.format(i)}}),relativetime:Om(function(n,r){var o=new Intl.RelativeTimeFormat(n,Qc({},r));return function(i){return o.format(i,r.range||"day")}}),list:Om(function(n,r){var o=new Intl.ListFormat(n,Qc({},r));return function(i){return o.format(i)}})},this.init(t)}return Eu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Om(r)}},{key:"format",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(u,c){var f=EMe(c),p=f.formatName,g=f.formatOptions;if(i.formats[p]){var m=u;try{var y=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=y.locale||y.lng||a.locale||a.lng||o;m=i.formats[p](u,v,Qc(Qc(Qc({},g),a),y))}catch(x){i.logger.warn(x)}return m}else i.logger.warn("there was no format function for ".concat(p));return u},n);return l}}]),e}();function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t"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 PMe(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var MMe=function(e){oT(n,e);var t=kMe(n);function n(r,o,i){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return _u(this,n),a=t.call(this),iT&&cp.call(md(a)),a.backend=r,a.store=o,a.services=i,a.languageUtils=i.languageUtils,a.options=s,a.logger=tc.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,s.backend,s),a}return Eu(n,[{key:"queueLoad",value:function(o,i,a,s){var l=this,u={},c={},f={},p={};return o.forEach(function(g){var m=!0;i.forEach(function(y){var v="".concat(g,"|").concat(y);!a.reload&&l.store.hasResourceBundle(g,y)?l.state[v]=2:l.state[v]<0||(l.state[v]===1?c[v]===void 0&&(c[v]=!0):(l.state[v]=1,m=!1,c[v]===void 0&&(c[v]=!0),u[v]===void 0&&(u[v]=!0),p[y]===void 0&&(p[y]=!0)))}),m||(f[g]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(o,i,a){var s=o.split("|"),l=s[0],u=s[1];i&&this.emit("failedLoading",l,u,i),a&&this.store.addResourceBundle(l,u,a),this.state[o]=i?-1:2;var c={};this.queue.forEach(function(f){uMe(f.loaded,[l],u),PMe(f,o),i&&f.errors.push(i),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(p){c[p]||(c[p]={});var g=f.loaded[p];g.length&&g.forEach(function(m){c[p][m]===void 0&&(c[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(o,i,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!o.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:i,fcName:a,tried:l,wait:u,callback:c});return}this.readingCalls++;var f=function(y,v){if(s.readingCalls--,s.waitingReads.length>0){var x=s.waitingReads.shift();s.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(y&&v&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(o,i,s,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(o,i,a){this.prepareLoading(o,i,{},a)}},{key:"reload",value:function(o,i,a){this.prepareLoading(o,i,{reload:!0},a)}},{key:"loadOne",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=o.split("|"),l=s[0],u=s[1];this.read(l,u,"read",void 0,void 0,function(c,f){c&&i.logger.warn("".concat(a,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&f&&i.logger.log("".concat(a,"loaded namespace ").concat(u," for language ").concat(l),f),i.loaded(o,c,f)})}},{key:"saveMissing",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=qj(qj({},u),{},{isUpdate:l}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var g;p.length===5?g=p(o,i,a,s,f):g=p(o,i,a,s),g&&typeof g.then=="function"?g.then(function(m){return c(null,m)}).catch(c):c(null,g)}catch(m){c(m)}else p(o,i,a,s,c,f)}!o||!o[0]||this.store.addResource(o[0],i,a,s)}}}]),n}(cp);function Qj(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ls(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ls(t[2])==="object"||Ls(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kj(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t"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 $x(){}function DMe(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var DA=function(e){oT(n,e);var t=OMe(n);function n(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(_u(this,n),r=t.call(this),iT&&cp.call(md(r)),r.options=Kj(o),r.services={},r.logger=tc,r.modules={external:[]},DMe(md(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),oS(r,md(r));setTimeout(function(){r.init(o,i)},0)}return r}return Eu(n,[{key:"init",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(a=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=Qj();this.options=Nu(Nu(Nu({},s),this.options),Kj(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Nu(Nu({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(x){return x?typeof x=="function"?new x:x:null}if(!this.options.isClone){this.modules.logger?tc.init(l(this.modules.logger),this.options):tc.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=TMe);var c=new Uj(this.options);this.store=new yMe(this.options.resources,this.options);var f=this.services;f.logger=tc,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new AMe(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=l(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new _Me(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new MMe(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(x){for(var w=arguments.length,I=new Array(w>1?w-1:0),_=1;_1?w-1:0),_=1;_0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var g=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];g.forEach(function(x){o[x]=function(){var w;return(w=o.store)[x].apply(w,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(x){o[x]=function(){var w;return(w=o.store)[x].apply(w,arguments),o}});var y=n1(),v=function(){var w=function(_,R){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),y.resolve(R),a(_,R)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return w(null,o.t.bind(o));o.changeLanguage(o.options.lng,w)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),y}},{key:"loadResources",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$x,s=a,l=typeof o=="string"?o:this.language;if(typeof o=="function"&&(s=o),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var u=[],c=function(g){if(g){var m=i.services.languageUtils.toResolveHierarchy(g);m.forEach(function(y){u.indexOf(y)<0&&u.push(y)})}};if(l)c(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(p){return c(p)})}this.options.preload&&this.options.preload.forEach(function(p){return c(p)}),this.services.backendConnector.load(u,this.options.ns,function(p){!p&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(p)})}else s(null)}},{key:"reloadResources",value:function(o,i,a){var s=n1();return o||(o=this.languages),i||(i=this.options.ns),a||(a=$x),this.services.backendConnector.reload(o,i,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&lJ.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var i=0;i-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(o,i){var a=this;this.isLanguageChangingTo=o;var s=n1();this.emit("languageChanging",o);var l=function(p){a.language=p,a.languages=a.services.languageUtils.toResolveHierarchy(p),a.resolvedLanguage=void 0,a.setResolvedLanguage(p)},u=function(p,g){g?(l(g),a.translator.changeLanguage(g),a.isLanguageChangingTo=void 0,a.emit("languageChanged",g),a.logger.log("languageChanged",g)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),i&&i(p,function(){return a.t.apply(a,arguments)})},c=function(p){!o&&!p&&a.services.languageDetector&&(p=[]);var g=typeof p=="string"?p:a.services.languageUtils.getBestMatchFromCodes(p);g&&(a.language||l(g),a.translator.language||a.translator.changeLanguage(g),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(g)),a.loadResources(g,function(m){u(m,g)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(o),s}},{key:"getFixedT",value:function(o,i,a){var s=this,l=function u(c,f){var p;if(Ls(f)!=="object"){for(var g=arguments.length,m=new Array(g>2?g-2:0),y=2;y1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(g,m){var y=i.services.backendConnector.state["".concat(g,"|").concat(m)];return y===-1||y===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,o)&&(!l||c(u,o)))}},{key:"loadNamespaces",value:function(o,i){var a=this,s=n1();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(o,i){var a=n1();typeof o=="string"&&(o=[o]);var s=this.options.preload||[],l=o.filter(function(u){return s.indexOf(u)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(u){a.resolve(),i&&i(u)}),a):(i&&i(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new Uj(Qj());return i.indexOf(a.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$x,s=Nu(Nu(Nu({},this.options),i),{isClone:!0}),l=new n(s);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var u=["store","services","language"];return u.forEach(function(c){l[c]=o[c]}),l.services=Nu({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new Nj(l.services,l.options),l.translator.on("*",function(c){for(var f=arguments.length,p=new Array(f>1?f-1:0),g=1;g0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new DA(e,t)});var ma=DA.createInstance();ma.createInstance=DA.createInstance;ma.createInstance;ma.dir;ma.init;ma.loadResources;ma.reloadResources;ma.use;ma.changeLanguage;ma.getFixedT;ma.t;ma.exists;ma.setDefaultNamespace;ma.hasLoadedNamespace;ma.loadNamespaces;ma.loadLanguages;function BMe(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(l,u){var c=t.services.backendConnector.state["".concat(l,"|").concat(u)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}function LMe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return QO("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(i,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):$Me(e,t,n)}var FMe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,NMe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},UMe=function(t){return NMe[t]},jMe=function(t){return t.replace(FMe,UMe)};function Xj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};KO=Zj(Zj({},KO),e)}function zMe(){return KO}var uJ;function VMe(e){uJ=e}function HMe(){return uJ}var qMe={type:"3rdParty",init:function(t){WMe(t.options.react),VMe(t)}},QMe=M.createContext(),KMe=function(){function e(){_u(this,e),this.usedNamespaces={}}return Eu(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function YMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function GMe(e,t){return oJ(e)||YMe(e,t)||iJ(e,t)||aJ()}function eW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function oP(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=M.useContext(QMe)||{},o=r.i18n,i=r.defaultNS,a=n||o||HMe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new KMe),!a){QO("You will need to pass in an i18next instance by using initReactI18next");var s=function(T,C){return typeof C=="string"?C:C&&Ls(C)==="object"&&typeof C.defaultValue=="string"?C.defaultValue:Array.isArray(T)?T[T.length-1]:T},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&QO("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=oP(oP(oP({},zMe()),a.options.react),t),c=u.useSuspense,f=u.keyPrefix,p=e||i||a.options&&a.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every(function(b){return LMe(b,a,u)});function m(){return a.getFixedT(null,u.nsMode==="fallback"?p:p[0],f)}var y=M.useState(m),v=GMe(y,2),x=v[0],w=v[1],I=p.join(),_=JMe(I),R=M.useRef(!0);M.useEffect(function(){var b=u.bindI18n,T=u.bindI18nStore;R.current=!0,!g&&!c&&Jj(a,p,function(){R.current&&w(m)}),g&&_&&_!==I&&R.current&&w(m);function C(){R.current&&w(m)}return b&&a&&a.on(b,C),T&&a&&a.store.on(T,C),function(){R.current=!1,b&&a&&b.split(" ").forEach(function(O){return a.off(O,C)}),T&&a&&T.split(" ").forEach(function(O){return a.store.off(O,C)})}},[a,I]);var U=M.useRef(!0);M.useEffect(function(){R.current&&!U.current&&w(m),U.current=!1},[a,f]);var D=[x,a,g];if(D.t=x,D.i18n=a,D.ready=g,g||!g&&!c)return D;throw new Promise(function(b){Jj(a,p,function(){b()})})}const XMe={castVote:"Cast your vote",timeLeftToVote:"Time left to vote",resultsVerified:"Results verified",verifyingResults:"Verifying results",failedToVerifyResults:"Failed to verify results",address:"Address",vote:"Vote",votingPower:"Voting Power",date:"Date",voteStartsIn:"Vote starts in",results:"Results",recentVotes:"Recent Votes",information:"Information",startDate:"Start Date",endDate:"End Date",snapshot:"Snapshot",contract:"Contract",votingStrategy:"Voting Strategy",votes:"votes",showMore:"Show more",showLess:"Show less",verifyInfo:"Download votes from chain and verify the results in browser. [Read more](https://github.com/orbs-network/ton-vote#how-can-you-verify-the-results)",downloadCsv:"Download CSV",yourVotingPower:"Your voting power",choice:"Choice",notEnoughVotingPower:" Oops, it seems you don't have any voting power on block {{value}}",confirm:"Confirm",noVotes:"No votes",you:"You",httpsv2Endpoint:"HTTP v2 endpoint",httpsv2ApiKey:"HTTP v2 API key",httpv4Endpoint:"HTTP v4 endpoint",tonAccessEnpoint:"Default endpoint [(Orbs Ton Access)](https://www.orbs.com/ton-access/)",customEndpoint:"Custom endpoint",verify:"Verify",verifyResults:"Verify results",rpcSelectTitle:"RPC endpoint settings"},ZMe={proposals:"Proposals",about:"About",newProposal:"New Proposal",newTestProposal:"New Test Proposal",startIn:"Starts in {{value}}",endIn:"Ends in {{value}}",emptyProposals:"No proposals found",endedAndDidntPassedQuorum:"Proposal ended and did not pass the minimum required quorum",proposalEnded:"Ended {{value}} ago",spaceNotFound:"Space not found",settings:"Settings"},eOe={spaces:"DAO spaces on TON",noSpaces:"No spaces found",searchForDAO:"Search for DAO",createDao:"Create DAO space"},tOe={gettingStarted:"Getting Started",gettingStartedBody:"TON.vote is a completely decentralized on-chain DAO governance platform built exclusively for the TON ecosystem. /n Setting up a space for a DAO is free but requires submitting 2 transactions: /n 1. Space Metadata (DAO name, description, logo, socials) /n 2. Space Administrators (space owner and proposal publisher) /n Every transaction deploys a smart contract on TON blockchain mainnet. Both transactions cost about 1 TON in gas fees. /n Any future changes to one of the above will require submitting an update transaction. /n Need help? Join the TON.vote Telegram [support channel](https://t.me/TONVoteSupportGroup).",spaceMetadata:"Space Metadata",editWarning:"Edits will require to sign a transaction in your wallet",spaceAdministrators:"Space Administrators",createSpace:"Create Space",editDetails:"Edit Details",approveDetails:"Approve Details",spaceDetailsCreated:"Space Metadata Created",spaceDetailsUpdated:"Space Metadata Updated",start:"Start",enterSpaceMetadata:"Enter Space Metadata",editSpaceMetadata:"Edit Space Metadata",stage:"Space Administrators",createStage:"Select Space Administrators",editStage:"Edit Space Administrators",formInfo:"Enter all fields in English. Future versions will support adding translations in multiple languages. You can update these fields later.",daoName:"DAO Name",daoAbout:"About the DAO",logoURL:"Logo URL",tonDns:"TON DNS name",submit:"Submit",jetton:"Project jetton",nft:"Project NFT collection",website:"Project website URL",telegramGroup:"Project Telegram group",github:"Project GitHub URL",ownerAddress:"Owner Address",proposalPublusherAddress:"Proposal Publisher Address",tooltips:{daoName:"Short name of the DAO, normally 1-4 words Capitalized separated by spaces.",daoAbout:"What is the purpose of this DAO? Normally 1-4 sentences. Formatted as Markdown",logoURL:"HTTPS URL holding the DAO's logo as a circular PNG image sized 512x512 pixels with transparent background.",tonDNS:"If you own a [TON DNS](https://dns.ton.org/) domain name, enter it to prove the space's authenticity. For example: foundation.ton",jetton:"Does the DAO revolve around a fungible Jetton token that all members hold? If so, place the TON contract address of the Jetton master contract.",nft:"Does the DAO revolve around an NFT that all all members hold? If so, place the TON contract address of the NFT master contract.",owner:"The owner of the space, can change metadata and update admins. Can be a multi-sig contract.",proposalPublisher:"The address that can publish new proposals for vote. Can be a multi-sig contract or a multi-owner contract."},errors:{logoURL1:"Logo URL must be https",logoURL2:"Logo URL must be png format",tonDNS:"TON DNS must end with .ton",github:"Invalid Github URL",telegram:"Telegram group should start with https://t.me",website:"invalid Website URL"}},nOe={isRequired:"{{value}} is required",isInvalid:"{{value}} is invalid",edit:"Edit",connectedWallet:"Connected Wallet",create:"Create",tonBalance:"TON Balance",jettonBalance:"Jetton Balance",nftCollection:"NFT Collection",copyAddress:"Copy Address",logout:"Logout",ended:"Ended",notStarted:"Pending",all:"All",active:"Active",back:"Back",checkWallet:"Please check wallet for pending transaction",selectWallet:"Select Wallet",members:"members",loadMore:"Load more",administrators:"Administrators",daoSpaceOwner:"DAO Space Owner",proposalPublisher:"Proposal Publisher",search:"Search",preview:"Preview",help:"Help",close:"Close",connectWallet:"Connect Wallet",next:"Next",transactionRejected:"User rejected the transaction",somethingWentWrong:"Something went wrong",txPending:"Transaction pending",checkWalletForTx:"Check wallet for transaction"},rOe={votingParameters:"Voting Parameters",createProposal:"Create Proposal",subTitle:"Enter all fields in English. Future versions will support adding translations in multiple languages.",title:"Title",description:"Description",votingPowerStrategy:"Voting power strategy",jettonAddress:"Jetton address",nftAddress:"NFT address",votingChoices:"Voting choices",votingPeroid:"Voting period",votingPeriodInfo:"All timestamps are given in UTC (GMT+0). The UTC time 15:00 is a good choice for when most of the world is awake.",startTime:"Start time",endTime:"End time",snaphotTime:"Snapshot time",proposalDuration:"Proposal duration is",tooltips:{title:"Title of the new proposal, normally 1 sentence. Example: Increase staking reward percentage",description:"All background information needed to help members make a decision in this vote. Normally 3-10 sentences. Formatted as Markdown",votingPowerStrategy:"How is the voting power of each member counted when calculating the vote result. [Read more about strategies](https://github.com/orbs-network/ton-vote/tree/main#supported-strategies)",jettonAddress:"The address of the Jetton",votingChoices:"The different options each voting member needs to choose from when submitting their vote.",startTime:"The UTC time when the vote goes live and members can start submitting their votes. Must be in the future.",endTime:"The UTC time when the vote terminates and members would no longer be able to submit votes. Must be after start time but no more than 10 days after.",snapshotTime:"To protect against manipulation, every member's voting power will be calculated on this snapshot UTC date. Must be before vote start time but no more than 14 days before."},errors:{isRequired:"{{value}} is required",titleLength:"Title must be less than or equal to {{value}} characters",aboutLength:"About must be less than or equal to {{value}} characters",invalidJettonAddress:"Invalid jetton address",invalidNFTAddress:"Invalid NFT address",startTime1:"Proposal start time must be greater than current time",startTime2:"Proposal start time can be up to 10 days in the future",endTime1:"Proposal end time must be greater than proposal start time",endTime2:"Proposal end time must be at least 1 day after proposal start time",endTime3:"Proposal end time can be up to 10 days after proposal start time",snapshotTime1:"Snaphot time must be smaller than current time"}},oOe={proposalPage:XMe,daoPage:ZMe,daosPage:eOe,createDao:tOe,common:nOe,createProposal:rOe},iOe={castVote:"Cast your vote",timeLeftToVote:"Time left to vote",resultsVerified:"Results verified",verifyingResults:"Verifying results",failedToVerifyResults:"Failed to verify results",address:"Address",vote:"Vote",votingPower:"Voting Power",date:"Date",voteStartsIn:"Vote starts in",results:"Results",recentVotes:"Recent Votes",information:"Information",startDate:"Start Date",endDate:"End Date",snapshot:"Snapshot",contract:"Contract",votingStrategy:"Voting Strategy",votes:"votes",showMore:"Show more",showLess:"Show less",verifyInfo:"Download votes from chain and verify the results in browser. [Read more](https://github.com/orbs-network/ton-vote#how-can-you-verify-the-results)",downloadCsv:"Download CSV",yourVotingPower:"Your voting power",choice:"Choice",notEnoughVotingPower:" Oops, it seems you don't have any voting power at block {{value}}",confirm:"Confirm",noVotes:"No votes",you:"You",httpsv2Endpoint:"HTTP v2 endpoint",httpsv2ApiKey:"HTTP v2 API key",httpv4Endpoint:"HTTP v4 endpoint",tonAccessEnpoint:"Default endpoint [(Orbs Ton Access)](https://www.orbs.com/ton-access/)",customEndpoint:"Custom endpoint",verify:"Verify",verifyResults:"Verify results",rpcSelectTitle:"RPC endpoint settings"},aOe={proposals:"Proposals",about:"About",newProposal:"New Proposal",startIn:"Starts in {{value}}",endIn:"Ends in {{value}}",emptyProposals:"No proposals found",endedAndDidntPassedQuorum:"Proposal ended and did not pass the minimum required quorum",proposalEnded:"Ended {{value}} ago",spaceNotFound:"Space not found"},sOe={spaces:"DAO spaces on TON",noSpaces:"No spaces found",searchForDAO:"Search for DAO",createDao:"Create DAO space"},lOe={gettingStarted:"Getting Started",gettingStartedBody:"TON.vote is a completely decentralized on-chain DAO governance platform built exclusively for the TON ecosystem. /n Setting up a space for a DAO is free but requires submitting 2 transactions: /n 1. Space Metadata (DAO name, description, logo, socials) /n 2. Space Administrators (space owner and proposal publisher) /n Every transaction deploys a smart contract on TON blockchain mainnet. Both transactions cost about 1 TON in gas fees. /n Any future changes to one of the above will require submitting an update transaction. /n Need help? Join the TON.vote Telegram [support channel](https://t.me/TONVoteSupportGroup).",spaceMetadata:"Space Metadata",editWarning:"Edits will require to sign a transaction in your wallet",spaceAdministrators:"Space Administrators",createSpace:"Create Space",editDetails:"Edit Details",approveDetails:"Approve Details",spaceDetailsCreated:"Space Metadata Created",spaceDetailsUpdated:"Space Metadata Updated",start:"Start",enterSpaceMetadata:"Enter Space Metadata",editSpaceMetadata:"Edit Space Metadata",stage:"Space Administrators",createStage:"Select Space Administrators",editStage:"Edit Space Administrators",formInfo:"Enter all fields in English. Future versions will support adding translations in multiple languages. You can update these fields later.",daoName:"DAO Name",daoAbout:"About the DAO",logoURL:"Logo URL",tonDns:"TON DNS name",submit:"Submit",jetton:"Project jetton",nft:"Project NFT collection",website:"Project website URL",telegramGroup:"Project Telegram group",github:"Project GitHub URL",ownerAddress:"Owner Address",proposalPublusherAddress:"Proposal Publisher Address",tooltips:{daoName:"Short name of the DAO, normally 1-4 words Capitalized separated by spaces.",daoAbout:"What is the purpose of this DAO? Normally 1-4 sentences. Formatted as Markdown",logoURL:"HTTPS URL holding the DAO's logo as a circular PNG image sized 512x512 pixels with transparent background.",tonDNS:"If you own a [TON DNS](https://dns.ton.org/) domain name, enter it to prove the space's authenticity. For example: foundation.ton",jetton:"Does the DAO revolve around a fungible Jetton token that all members hold? If so, place the TON contract address of the Jetton master contract.",nft:"Does the DAO revolve around an NFT that all all members hold? If so, place the TON contract address of the NFT master contract.",owner:"The owner of the space, can change metadata and update admins. Can be a multi-sig contract.",proposalPublisher:"The address that can publish new proposals for vote. Can be a multi-sig contract or a multi-owner contract."},errors:{logoURL1:"Logo URL must be https",logoURL2:"Logo URL must be png format",tonDNS:"TON DNS must end with .ton",github:"Invalid Github URL",telegram:"Telegram group should start with https://t.me",website:"invalid Website URL"}},uOe={isRequired:"{{value}} is required",isInvalid:"{{value}} is invalid",edit:"Edit",connectedWallet:"Connected Wallet",create:"Create",tonBalance:"TON Balance",jettonBalance:"Jetton Balance",nftCollection:"NFT Collection",copyAddress:"Copy Address",logout:"Logout",ended:"Ended",notStarted:"Pending",all:"All",active:"Active",back:"Back",checkWallet:"Please check wallet for pending transaction",selectWallet:"Select Wallet",members:"members",loadMore:"Load more",administrators:"Administrators",daoSpaceOwner:"DAO Space Owner",proposalPublisher:"Proposal Publisher",search:"Search",preview:"Preview",help:"Help",close:"Close",connectWallet:"Connect Wallet",next:"Next"},cOe={votingParameters:"Voting Parameters",createProposal:"Create Proposal",subTitle:"Enter all fields in English. Future versions will support adding translations in multiple languages.",title:"Title",description:"Description",votingPowerStrategy:"Voting power strategy",jettonAddress:"Jetton address",nftAddress:"NFT address",votingChoices:"Voting choices",votingPeroid:"Voting period",votingPeriodInfo:"All timestamps are given in UTC (GMT+0). The UTC time 15:00 is a good choice for when most of the world is awake.",startTime:"Start time",endTime:"End time",snaphotTime:"Snapshot time",proposalDuration:"Proposal duration is",tooltips:{title:"Title of the new proposal, normally 1 sentence. Example: Increase staking reward percentage",description:"All background information needed to help members make a decision in this vote. Normally 3-10 sentences. Formatted as Markdown",votingPowerStrategy:"How is the voting power of each member counted when calculating the vote result. [Read more about strategies](https://github.com/orbs-network/ton-vote/blob/main/STRATEGIES.md)",jettonAddress:"The address of the Jetton",votingChoices:"The different options each voting member needs to choose from when submitting their vote.",startTime:"The UTC time when the vote goes live and members can start submitting their votes. Must be in the future.",endTime:"The UTC time when the vote terminates and members would no longer be able to submit votes. Must be after start time but no more than 10 days after.",snapshotTime:"To protect against manipulation, every member's voting power will be calculated on this snapshot UTC date. Must be before vote start time but no more than 14 days before."},errors:{isRequired:"{{value}} is required",titleLength:"Title must be less than or equal to {{value}} characters",aboutLength:"About must be less than or equal to {{value}} characters",invalidJettonAddress:"Invalid jetton address",invalidNFTAddress:"Invalid NFT address",startTime1:"Proposal start time must be greater than current time",startTime2:"Proposal start time can be up to 10 days in the future",endTime1:"Proposal end time must be greater than proposal start time",endTime2:"Proposal end time must be at least 1 day after proposal start time",endTime3:"Proposal end time can be up to 10 days after proposal start time",snapshotTime1:"Snaphot time must be smaller than current time"}},dOe={proposalPage:iOe,daoPage:aOe,daosPage:sOe,createDao:lOe,common:uOe,createProposal:cOe};ma.use(qMe).init({resources:{en:oOe,ru:dOe},fallbackLng:"en",interpolation:{escapeValue:!1}});var at={},ro={},dn={},js={},vr={},Ws={};const fOe=Symbol.for("nodejs.util.inspect.custom");var ky=fOe,Iy={};Object.defineProperty(Iy,"__esModule",{value:!0});Iy.crc16=void 0;function pOe(e){let n=0;const r=Buffer.alloc(e.length+2);r.set(e);for(let o of r){let i=128;for(;i>0;)n<<=1,o&i&&(n+=1),i>>=1,n>65535&&(n&=65535,n^=4129)}return Buffer.from([Math.floor(n/256),n%256])}Iy.crc16=pOe;var hOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},cJ;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.address=Ws.Address=void 0;const gOe=hOe(ky),dJ=Iy,YO=17,fJ=81,GO=128;function tW(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e,"base64");if(t.length!==36)throw new Error("Unknown address type: byte length is not equal to 36");const n=t.subarray(0,34),r=t.subarray(34,36),o=(0,dJ.crc16)(n);if(!(o[0]===r[0]&&o[1]===r[1]))throw new Error("Invalid checksum: "+e);let i=n[0],a=!1,s=!1;if(i&GO&&(a=!0,i=i^GO),i!==YO&&i!==fJ)throw"Unknown address tag";s=i===YO;let l=null;n[1]===255?l=-1:l=n[1];const u=n.subarray(2,34);return{isTestOnly:a,isBounceable:s,workchain:l,hashPart:u}}let pJ=class hh{static isAddress(t){return t instanceof hh}static isFriendly(t){return t.indexOf(":")<0}static normalize(t){return typeof t=="string"?hh.parse(t).toString():t.toString()}static parse(t){return hh.isFriendly(t)?this.parseFriendly(t).address:this.parseRaw(t)}static parseRaw(t){let n=parseInt(t.split(":")[0]),r=Buffer.from(t.split(":")[1],"hex");return new hh(n,r)}static parseFriendly(t){if(Buffer.isBuffer(t)){let n=tW(t);return{isBounceable:n.isBounceable,isTestOnly:n.isTestOnly,address:new hh(n.workchain,n.hashPart)}}else{let n=t.replace(/\-/g,"+").replace(/_/g,"/"),r=tW(n);return{isBounceable:r.isBounceable,isTestOnly:r.isTestOnly,address:new hh(r.workchain,r.hashPart)}}}constructor(t,n){this.toRawString=()=>this.workChain+":"+this.hash.toString("hex"),this.toRaw=()=>{const r=Buffer.alloc(36);return r.set(this.hash),r.set([this.workChain,this.workChain,this.workChain,this.workChain],32),r},this.toStringBuffer=r=>{let o=r&&r.testOnly!==void 0?r.testOnly:!1,a=(r&&r.bounceable!==void 0?r.bounceable:!0)?YO:fJ;o&&(a|=GO);const s=Buffer.alloc(34);s[0]=a,s[1]=this.workChain,s.set(this.hash,2);const l=Buffer.alloc(36);return l.set(s),l.set((0,dJ.crc16)(s),34),l},this.toString=r=>{let o=r&&r.urlSafe!==void 0?r.urlSafe:!0,i=this.toStringBuffer(r);return o?i.toString("base64").replace(/\+/g,"-").replace(/\//g,"_"):i.toString("base64")},this[cJ]=()=>this.toString(),this.workChain=t,this.hash=n,Object.freeze(this)}equals(t){return t.workChain!==this.workChain?!1:t.hash.equals(this.hash)}};Ws.Address=pJ;cJ=gOe.default;function mOe(e){return pJ.parse(e)}Ws.address=mOe;var Py={},yOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hJ;Object.defineProperty(Py,"__esModule",{value:!0});Py.ExternalAddress=void 0;const vOe=yOe(ky);class DD{static isAddress(t){return t instanceof DD}constructor(t,n){this[hJ]=()=>this.toString(),this.value=t,this.bits=n}toString(){return`External<${this.bits}:${this.value}>`}}Py.ExternalAddress=DD;hJ=vOe.default;var aT={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.base32Decode=Xh.base32Encode=void 0;const JO="abcdefghijklmnopqrstuvwxyz234567";function bOe(e){const t=e.byteLength;let n=0,r=0,o="";for(let i=0;i=5;)o+=JO[r>>>n-5&31],n-=5;return n>0&&(o+=JO[r<<5-n&31]),o}Xh.base32Encode=bOe;function wOe(e,t){const n=e.indexOf(t);if(n===-1)throw new Error("Invalid character found: "+t);return n}function SOe(e){let t;t=e.toLowerCase();const{length:n}=t;let r=0,o=0,i=0;const a=Buffer.alloc(n*5/8|0);for(let s=0;s=8&&(a[i++]=o>>>r-8&255,r-=8);return a}Xh.base32Decode=SOe;var xOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gJ;Object.defineProperty(aT,"__esModule",{value:!0});aT.ADNLAddress=void 0;const COe=xOe(ky),nW=Xh,rW=Iy;class BA{static parseFriendly(t){if(t.length!==55)throw Error("Invalid address");t="f"+t;let n=(0,nW.base32Decode)(t);if(n[0]!==45)throw Error("Invalid address");let r=n.slice(33);if(!(0,rW.crc16)(n.slice(0,33)).equals(r))throw Error("Invalid address");return new BA(n.slice(1,33))}static parseRaw(t){const n=Buffer.from(t,"base64");return new BA(n)}constructor(t){if(this.toRaw=()=>this.address.toString("hex").toUpperCase(),this.toString=()=>{let n=Buffer.concat([Buffer.from([45]),this.address]),r=(0,rW.crc16)(n);return n=Buffer.concat([n,r]),(0,nW.base32Encode)(n).slice(1)},this[gJ]=()=>this.toString(),t.length!==32)throw Error("Invalid address");this.address=t}equals(t){return this.address.equals(t.address)}}aT.ADNLAddress=BA;gJ=COe.default;var sT={},rh={},r1={},o1={},i1={},oW;function lT(){if(oW)return i1;oW=1,Object.defineProperty(i1,"__esModule",{value:!0}),i1.bitsToPaddedBuffer=void 0;const e=uT();function t(n){let r=new e.BitBuilder(Math.ceil(n.length/8)*8);r.writeBits(n);let o=Math.ceil(n.length/8)*8-n.length;for(let i=0;ithis.toString(),l<0)throw new Error(`Length ${l} is out of bounds`);this._length=l,this._data=a,this._offset=s}get length(){return this._length}at(a){if(a>=this._length)throw new Error(`Index ${a} > ${this._length} is out of bounds`);if(a<0)throw new Error(`Index ${a} < 0 is out of bounds`);let s=this._offset+a>>3,l=7-(this._offset+a)%8;return(this._data[s]&1<=this._length)throw new Error(`Offset(${a}) > ${this._length} is out of bounds`);if(a<0)throw new Error(`Offset(${a}) < 0 is out of bounds`);if(a+s>this._length)throw new Error(`Offset ${a} + Length ${s} > ${this._length} is out of bounds`);return new XO(this._data,this._offset+a,s)}subbuffer(a,s){if(a>=this._length)throw new Error(`Offset ${a} is out of bounds`);if(a<0)throw new Error(`Offset ${a} is out of bounds`);if(a+s>this._length)throw new Error(`Offset + Lenght = ${a+s} is out of bounds`);if(s%8!==0||(this._offset+a)%8!==0)return null;let l=this._offset+a>>3,u=l+(s>>3);return this._data.subarray(l,u)}equals(a){if(this._length!==a._length)return!1;for(let s=0;sthis._buffer.length*8)throw new Error("BitBuilder overflow");(i===!0||i>0)&&(this._buffer[a/8|0]|=1<<7-a%8),this._length++}writeBits(i){for(let a=0;athis._buffer.length*8)throw new Error("BitBuilder overflow");i.copy(this._buffer,this._length/8),this._length+=i.length*8}else for(let a=0;a255||!Number.isSafeInteger(c))throw Error(`value is out of range for ${a} bits. Got ${i}`);this._buffer[this._length/8]=Number(i),this._length+=8;return}if(a===16&&this._length%8===0){let c=Number(i);if(c<0||c>65536||!Number.isSafeInteger(c))throw Error(`value is out of range for ${a} bits. Got ${i}`);this._buffer[this._length/8]=c>>8,this._buffer[this._length/8+1]=c&255,this._length+=16;return}let s=BigInt(i);if(a<0||!Number.isSafeInteger(a))throw Error(`invalid bit length. Got ${a}`);if(a===0){if(i!==0n)throw Error(`value is not zero for ${a} bits. Got ${i}`);return}let l=1n<=l)throw Error(`bitLength is too small for a value ${i}. Got ${a}`);let u=[];for(;s>0;)u.push(s%2n===1n),s/=2n;for(let c=0;c=l)throw Error(`value is out of range for ${a} bits. Got ${i}`);s<0?(this.writeBit(!0),s=(1n<0?s:-s;const u=1+Math.ceil(l.toString(2).length/8),c=u*8;this.writeUint(u,a),this.writeInt(s,c)}writeCoins(i){this.writeVarUint(i,4)}writeAddress(i){if(i==null){this.writeUint(0,2);return}if(e.Address.isAddress(i)){this.writeUint(2,2),this.writeUint(0,1),this.writeInt(i.workChain,8),this.writeBuffer(i.hash);return}if(t.ExternalAddress.isAddress(i)){this.writeUint(1,2),this.writeUint(i.bits,9),this.writeUint(i.value,i.bits);return}throw Error(`Invalid address. Got ${i}`)}build(){return new n.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!==0)throw new Error("BitBuilder buffer is not byte aligned");return this._buffer.subarray(0,this._length/8)}};return r1.BitBuilder=r,r1}var a1={},My={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CellType=void 0,function(t){t[t.Ordinary=-1]="Ordinary",t[t.PrunedBranch=1]="PrunedBranch",t[t.Library=2]="Library",t[t.MerkleProof=3]="MerkleProof",t[t.MerkleUpdate=4]="MerkleUpdate"}(e.CellType||(e.CellType={}))})(My);var s1={},l1={},Oy={};Object.defineProperty(Oy,"__esModule",{value:!0});Oy.parseDict=void 0;function AOe(e){let t=0;for(;e.loadBit();)t++;return t}function ZO(e,t,n,r,o){let i=t.loadBit()?1:0,a=0,s=e;if(i===0){a=AOe(t);for(let l=0;l(0,i.deserializeInternalKey)(T))}values(){return Array.from(this._map.values())}store(T,C,O){if(this._map.size===0)T.storeBit(0);else{let $=this._key;C!=null&&($=C);let j=this._value;if(O!=null&&(j=O),!$)throw Error("Key serializer is not defined");if(!j)throw Error("Value serializer is not defined");let L=new Map;for(const[H,q]of this._map)L.set($.serialize((0,i.deserializeInternalKey)(H)),q);T.storeBit(1);let B=(0,t.beginCell)();(0,o.serializeDict)(L,$.bits,j.serialize,B),T.storeRef(B.endCell())}}storeDirect(T,C,O){if(this._map.size===0)throw Error("Cannot store empty dictionary directly");let $=this._key;C!=null&&($=C);let j=this._value;if(O!=null&&(j=O),!$)throw Error("Key serializer is not defined");if(!j)throw Error("Value serializer is not defined");let L=new Map;for(const[B,H]of this._map)L.set($.serialize((0,i.deserializeInternalKey)(B)),H);(0,o.serializeDict)(L,$.bits,j.serialize,T)}}l1.Dictionary=a,a.Keys={Address:()=>s(),BigInt:b=>l(b),Int:b=>u(b),BigUint:b=>c(b),Uint:b=>f(b),Buffer:b=>p(b)},a.Values={BigInt:b=>m(b),Int:b=>g(b),BigVarInt:b=>y(b),BigUint:b=>w(b),Uint:b=>x(b),BigVarUint:b=>v(b),Bool:()=>I(),Address:()=>_(),Cell:()=>R(),Buffer:b=>D(b),Dictionary:(b,T)=>U(b,T)};function s(){return{bits:267,serialize:b=>{if(!e.Address.isAddress(b))throw Error("Key is not an address");return(0,t.beginCell)().storeAddress(b).endCell().beginParse().preloadUintBig(267)},parse:b=>(0,t.beginCell)().storeUint(b,267).endCell().beginParse().loadAddress()}}function l(b){return{bits:b,serialize:T=>{if(typeof T!="bigint")throw Error("Key is not a bigint");return(0,t.beginCell)().storeInt(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadIntBig(b)}}function u(b){return{bits:b,serialize:T=>{if(typeof T!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(T))throw Error("Key is not a safe integer: "+T);return(0,t.beginCell)().storeInt(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadInt(b)}}function c(b){return{bits:b,serialize:T=>{if(typeof T!="bigint")throw Error("Key is not a bigint");if(T<0)throw Error("Key is negative: "+T);return(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)}}function f(b){return{bits:b,serialize:T=>{if(typeof T!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(T))throw Error("Key is not a safe integer: "+T);if(T<0)throw Error("Key is negative: "+T);return(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>Number((0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUint(b))}}function p(b){return{bits:b*8,serialize:T=>{if(!Buffer.isBuffer(T))throw Error("Key is not a buffer");return(0,t.beginCell)().storeBuffer(T).endCell().beginParse().loadUintBig(b*8)},parse:T=>(0,t.beginCell)().storeUint(T,b*8).endCell().beginParse().loadBuffer(b)}}function g(b){return{serialize:(T,C)=>{C.storeInt(T,b)},parse:T=>T.loadInt(b)}}function m(b){return{serialize:(T,C)=>{C.storeInt(T,b)},parse:T=>T.loadIntBig(b)}}function y(b){return{serialize:(T,C)=>{C.storeVarInt(T,b)},parse:T=>T.loadVarIntBig(b)}}function v(b){return{serialize:(T,C)=>{C.storeVarUint(T,b)},parse:T=>T.loadVarUintBig(b)}}function x(b){return{serialize:(T,C)=>{C.storeUint(T,b)},parse:T=>T.loadUint(b)}}function w(b){return{serialize:(T,C)=>{C.storeUint(T,b)},parse:T=>T.loadUintBig(b)}}function I(){return{serialize:(b,T)=>{T.storeBit(b)},parse:b=>b.loadBit()}}function _(){return{serialize:(b,T)=>{T.storeAddress(b)},parse:b=>b.loadAddress()}}function R(){return{serialize:(b,T)=>{T.storeRef(b)},parse:b=>b.loadRef()}}function U(b,T){return{serialize:(C,O)=>{C.store(O)},parse:C=>a.load(b,T,C)}}function D(b){return{serialize:(T,C)=>{if(T.length!==b)throw Error("Invalid buffer size");C.storeBuffer(T)},parse:T=>T.loadBuffer(b)}}return l1}var Kc={},uW;function yJ(){if(uW)return Kc;uW=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.writeString=Kc.stringToCell=Kc.readString=void 0;const e=ya();function t(a){if(a.remainingBits%8!==0)throw new Error(`Invalid string length: ${a.remainingBits}`);if(a.remainingRefs!==0&&a.remainingRefs!==1)throw new Error(`invalid number of refs: ${a.remainingRefs}`);if(a.remainingRefs===1&&1023-a.remainingBits>7)throw new Error(`invalid string length: ${a.remainingBits/8}`);let s;return a.remainingBits===0?s=Buffer.alloc(0):s=a.loadBuffer(a.remainingBits/8),a.remainingRefs===1&&(s=Buffer.concat([s,t(a.loadRef().beginParse())])),s}function n(a){return t(a).toString()}Kc.readString=n;function r(a,s){if(a.length>0){let l=Math.floor(s.availableBits/8);if(a.length>l){let u=a.subarray(0,l),c=a.subarray(l);s=s.storeBuffer(u);let f=(0,e.beginCell)();r(c,f),s=s.storeRef(f.endCell())}else s=s.storeBuffer(a)}}function o(a){let s=(0,e.beginCell)();return r(Buffer.from(a),s),s.endCell()}Kc.stringToCell=o;function i(a,s){r(Buffer.from(a),s)}return Kc.writeString=i,Kc}var cW;function BD(){if(cW)return s1;cW=1;var e=st&&st.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t;Object.defineProperty(s1,"__esModule",{value:!0}),s1.Slice=void 0;const n=e(ky),r=Dg(),o=ya(),i=yJ();let a=class vJ{constructor(l,u){this[t]=()=>this.toString(),this._reader=l.clone(),this._refs=[...u]}get remainingBits(){return this._reader.remaining}get remainingRefs(){return this._refs.length}skip(l){return this._reader.skip(l),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(l){return this._reader.loadBits(l)}preloadBits(l){return this._reader.preloadBits(l)}loadUint(l){return this._reader.loadUint(l)}loadUintBig(l){return this._reader.loadUintBig(l)}preloadUint(l){return this._reader.preloadUint(l)}preloadUintBig(l){return this._reader.preloadUintBig(l)}loadMaybeUint(l){return this.loadBit()?this.loadUint(l):null}loadMaybeUintBig(l){return this.loadBit()?this.loadUintBig(l):null}loadInt(l){return this._reader.loadInt(l)}loadIntBig(l){return this._reader.loadIntBig(l)}preloadInt(l){return this._reader.preloadInt(l)}preloadIntBig(l){return this._reader.preloadIntBig(l)}loadMaybeInt(l){return this.loadBit()?this.loadInt(l):null}loadMaybeIntBig(l){return this.loadBit()?this.loadIntBig(l):null}loadVarUint(l){return this._reader.loadVarUint(l)}loadVarUintBig(l){return this._reader.loadVarUintBig(l)}preloadVarUint(l){return this._reader.preloadVarUint(l)}preloadVarUintBig(l){return this._reader.preloadVarUintBig(l)}loadVarInt(l){return this._reader.loadVarInt(l)}loadVarIntBig(l){return this._reader.loadVarIntBig(l)}preloadVarInt(l){return this._reader.preloadVarInt(l)}preloadVarIntBig(l){return this._reader.preloadVarIntBig(l)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refs.length===0)throw new Error("No more references");return this._refs.shift()}preloadRef(){if(this._refs.length===0)throw new Error("No more references");return this._refs[0]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(l){return this._reader.loadBuffer(l)}preloadBuffer(l){return this._reader.preloadBuffer(l)}loadStringTail(){return(0,i.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,i.readString)(this):null}loadStringRefTail(){return(0,i.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){const l=this.loadMaybeRef();return l?(0,i.readString)(l.beginParse()):null}loadDict(l,u){return r.Dictionary.load(l,u,this)}loadDictDirect(l,u){return r.Dictionary.loadDirect(l,u,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error("Slice is not empty")}asCell(){return(0,o.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,o.beginCell)().storeSlice(this)}clone(){return new vJ(this._reader,this._refs)}toString(){return this.asCell().toString()}};return s1.Slice=a,t=n.default,s1}var dT={},Tu={};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.BitReader=void 0;const POe=Ws,MOe=Py;class $D{constructor(t,n=0){this._checkpoints=[],this._bits=t,this._offset=n}get remaining(){return this._bits.length-this._offset}skip(t){if(t<0||this._offset+t>this._bits.length)throw new Error(`Index ${this._offset+t} is out of bounds`);this._offset+=t}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let t=this._bits.at(this._offset);return this._offset++,t}preloadBit(){return this._bits.at(this._offset)}loadBits(t){let n=this._bits.substring(this._offset,t);return this._offset+=t,n}preloadBits(t){return this._bits.substring(this._offset,t)}loadBuffer(t){let n=this._preloadBuffer(t,this._offset);return this._offset+=t*8,n}preloadBuffer(t){return this._preloadBuffer(t,this._offset)}loadUint(t){return Number(this.loadUintBig(t))}loadUintBig(t){let n=this.preloadUintBig(t);return this._offset+=t,n}preloadUint(t){return Number(this._preloadUint(t,this._offset))}preloadUintBig(t){return this._preloadUint(t,this._offset)}loadInt(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,Number(n)}loadIntBig(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,n}preloadInt(t){return Number(this._preloadInt(t,this._offset))}preloadIntBig(t){return this._preloadInt(t,this._offset)}loadVarUint(t){let n=Number(this.loadUint(t));return Number(this.loadUintBig(n*8))}loadVarUintBig(t){let n=Number(this.loadUint(t));return this.loadUintBig(n*8)}preloadVarUint(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadUint(n*8,this._offset+t))}preloadVarUintBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadUint(n*8,this._offset+t)}loadVarInt(t){let n=Number(this.loadUint(t));return Number(this.loadIntBig(n*8))}loadVarIntBig(t){let n=Number(this.loadUint(t));return this.loadIntBig(n*8)}preloadVarInt(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadInt(n*8,this._offset+t))}preloadVarIntBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadInt(n*8,this._offset+t)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===2)return this._loadInternalAddress();throw new Error("Invalid address: "+t)}loadMaybeAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();throw new Error("Invalid address")}loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadMaybeExternalAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadAddressAny(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();if(t===1)return this._loadExternalAddress();throw Error(t===3?"Unsupported":"Unreachable")}loadPaddedBits(t){if(t%8!==0)throw new Error("Invalid number of bits");let n=t;for(;;)if(this._bits.at(this._offset+n-1)){n--;break}else n--;let r=this._bits.substring(this._offset,n);return this._offset+=t,r}clone(){return new $D(this._bits,this._offset)}_preloadInt(t,n){if(t==0)return 0n;let r=this._bits.at(n),o=0n;for(let i=0;i>t-1)%2!==0}}$y.LevelMask=LD;function FOe(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}Object.defineProperty(By,"__esModule",{value:!0});By.exoticPruned=void 0;const NOe=Tu,dW=$y;function UOe(e,t){let n=new NOe.BitReader(e),r=n.loadUint(8);if(r!==1)throw new Error(`Pruned branch cell must have type 1, got "${r}"`);if(t.length!==0)throw new Error(`Pruned Branch cell can't has refs, got "${t.length}"`);let o;if(e.length===280)o=new dW.LevelMask(1);else{if(o=new dW.LevelMask(n.loadUint(8)),o.level<1||o.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got "${o.level}/${o.value}"`);const l=8+8+o.apply(o.level-1).hashCount*(256+16);if(e.length!==l)throw new Error(`Pruned branch cell must have exactly ${l} bits, got "${e.length}"`)}let i=[],a=[],s=[];for(let l=0;l>1);return{type:fT.CellType.MerkleProof,depths:n,hashes:r,mask:o}}function YOe(e,t){(0,VOe.exoticMerkleUpdate)(e,t);let n=[],r=[],o=new pT.LevelMask((t[0].level()|t[1].level())>>1);return{type:fT.CellType.MerkleUpdate,depths:n,hashes:r,mask:o}}function GOe(e,t){let r=new jOe.BitReader(e).preloadUint(8);if(r===1)return qOe(e,t);if(r===2)return QOe(e,t);if(r===3)return KOe(e,t);if(r===4)return YOe(e,t);throw Error("Invalid exotic cell type: "+r)}dT.resolveExotic=GOe;var hT={},yd={};Object.defineProperty(yd,"__esModule",{value:!0});yd.getRepr=yd.getBitsDescriptor=yd.getRefsDescriptor=void 0;const G1=My,JOe=lT();function bJ(e,t,n){return e.length+(n!==G1.CellType.Ordinary?1:0)*8+t*32}yd.getRefsDescriptor=bJ;function wJ(e){let t=e.length;return Math.ceil(t/8)+Math.floor(t/8)}yd.getBitsDescriptor=wJ;function XOe(e,t,n,r){const o=Math.ceil(e.length/8),i=Buffer.alloc(2+o+(2+32)*t.length);let a=0;i[a++]=bJ(t,n,r),i[a++]=wJ(e),(0,JOe.bitsToPaddedBuffer)(e).copy(i,a),a+=o;for(const s of t){let l;r==G1.CellType.MerkleProof||r==G1.CellType.MerkleUpdate?l=s.depth(n+1):l=s.depth(n),i[a++]=Math.floor(l/256),i[a++]=l%256}for(const s of t){let l;r==G1.CellType.MerkleProof||r==G1.CellType.MerkleUpdate?l=s.hash(n+1):l=s.hash(n),l.copy(i,a),a+=32}return i}yd.getRepr=XOe;var iP={},Kf={},aw={},ZOe={get exports(){return aw},set exports(e){aw=e}};(function(e,t){(function(n,r){e.exports=r()})(st,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(te,Z,N,k){var S,P,V,K=Z||[0],ee=(N=N||0)>>>3,be=k===-1?3:0;for(S=0;S>>2,K.length<=P&&K.push(0),K[P]|=te[S]<<8*(be+k*(V%4));return{value:K,binLen:8*te.length+N}}function o(te,Z,N){switch(Z){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(te){case"HEX":return function(k,S,P){return function(V,K,ee,be){var Me,we,Pe,Ye;if(V.length%2!=0)throw new Error("String of HEX type must be in byte increments");var ze=K||[0],rn=(ee=ee||0)>>>3,Qt=be===-1?3:0;for(Me=0;Me>>1)+rn)>>>2;ze.length<=Pe;)ze.push(0);ze[Pe]|=we<<8*(Qt+be*(Ye%4))}return{value:ze,binLen:4*V.length+ee}}(k,S,P,N)};case"TEXT":return function(k,S,P){return function(V,K,ee,be,Me){var we,Pe,Ye,ze,rn,Qt,Zt,An,br=0,wr=ee||[0],kr=(be=be||0)>>>3;if(K==="UTF8")for(Zt=Me===-1?3:0,Ye=0;Ye(we=V.charCodeAt(Ye))?Pe.push(we):2048>we?(Pe.push(192|we>>>6),Pe.push(128|63&we)):55296>we||57344<=we?Pe.push(224|we>>>12,128|we>>>6&63,128|63&we):(Ye+=1,we=65536+((1023&we)<<10|1023&V.charCodeAt(Ye)),Pe.push(240|we>>>18,128|we>>>12&63,128|we>>>6&63,128|63&we)),ze=0;ze>>2;wr.length<=rn;)wr.push(0);wr[rn]|=Pe[ze]<<8*(Zt+Me*(Qt%4)),br+=1}else for(Zt=Me===-1?2:0,An=K==="UTF16LE"&&Me!==1||K!=="UTF16LE"&&Me===1,Ye=0;Ye>>8),rn=(Qt=br+kr)>>>2;wr.length<=rn;)wr.push(0);wr[rn]|=we<<8*(Zt+Me*(Qt%4)),br+=2}return{value:wr,binLen:8*br+be}}(k,Z,S,P,N)};case"B64":return function(k,S,P){return function(V,K,ee,be){var Me,we,Pe,Ye,ze,rn,Qt=0,Zt=K||[0],An=(ee=ee||0)>>>3,br=be===-1?3:0,wr=V.indexOf("=");if(V.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(V=V.replace(/=/g,""),wr!==-1&&wr>24&255,G[re+1]=ne>>16&255,G[re+2]=ne>>8&255,G[re+3]=ne&255,G[re+4]=F>>24&255,G[re+5]=F>>16&255,G[re+6]=F>>8&255,G[re+7]=F&255}function y(G,re,ne,F,ae){var Re,Le=0;for(Re=0;Re>>8)-1}function v(G,re,ne,F){return y(G,re,ne,F,16)}function x(G,re,ne,F){return y(G,re,ne,F,32)}function w(G,re,ne,F){for(var ae=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,Re=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Le=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,et=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,mt=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,$t=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Et=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,Un=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Ot=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,an=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Ct=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Jt=ne[16]&255|(ne[17]&255)<<8|(ne[18]&255)<<16|(ne[19]&255)<<24,hn=ne[20]&255|(ne[21]&255)<<8|(ne[22]&255)<<16|(ne[23]&255)<<24,gn=ne[24]&255|(ne[25]&255)<<8|(ne[26]&255)<<16|(ne[27]&255)<<24,ln=ne[28]&255|(ne[29]&255)<<8|(ne[30]&255)<<16|(ne[31]&255)<<24,mn=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,Lt=ae,Gt=Re,Pt=Le,Ft=et,qt=mt,kt=$t,He=Et,qe=Un,ut=Ot,nt=an,rt=Ct,ft=Jt,Xt=hn,wn=gn,Sn=ln,yn=mn,ye,kn=0;kn<20;kn+=2)ye=Lt+Xt|0,qt^=ye<<7|ye>>>32-7,ye=qt+Lt|0,ut^=ye<<9|ye>>>32-9,ye=ut+qt|0,Xt^=ye<<13|ye>>>32-13,ye=Xt+ut|0,Lt^=ye<<18|ye>>>32-18,ye=kt+Gt|0,nt^=ye<<7|ye>>>32-7,ye=nt+kt|0,wn^=ye<<9|ye>>>32-9,ye=wn+nt|0,Gt^=ye<<13|ye>>>32-13,ye=Gt+wn|0,kt^=ye<<18|ye>>>32-18,ye=rt+He|0,Sn^=ye<<7|ye>>>32-7,ye=Sn+rt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Sn|0,He^=ye<<13|ye>>>32-13,ye=He+Pt|0,rt^=ye<<18|ye>>>32-18,ye=yn+ft|0,Ft^=ye<<7|ye>>>32-7,ye=Ft+yn|0,qe^=ye<<9|ye>>>32-9,ye=qe+Ft|0,ft^=ye<<13|ye>>>32-13,ye=ft+qe|0,yn^=ye<<18|ye>>>32-18,ye=Lt+Ft|0,Gt^=ye<<7|ye>>>32-7,ye=Gt+Lt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Gt|0,Ft^=ye<<13|ye>>>32-13,ye=Ft+Pt|0,Lt^=ye<<18|ye>>>32-18,ye=kt+qt|0,He^=ye<<7|ye>>>32-7,ye=He+kt|0,qe^=ye<<9|ye>>>32-9,ye=qe+He|0,qt^=ye<<13|ye>>>32-13,ye=qt+qe|0,kt^=ye<<18|ye>>>32-18,ye=rt+nt|0,ft^=ye<<7|ye>>>32-7,ye=ft+rt|0,ut^=ye<<9|ye>>>32-9,ye=ut+ft|0,nt^=ye<<13|ye>>>32-13,ye=nt+ut|0,rt^=ye<<18|ye>>>32-18,ye=yn+Sn|0,Xt^=ye<<7|ye>>>32-7,ye=Xt+yn|0,wn^=ye<<9|ye>>>32-9,ye=wn+Xt|0,Sn^=ye<<13|ye>>>32-13,ye=Sn+wn|0,yn^=ye<<18|ye>>>32-18;Lt=Lt+ae|0,Gt=Gt+Re|0,Pt=Pt+Le|0,Ft=Ft+et|0,qt=qt+mt|0,kt=kt+$t|0,He=He+Et|0,qe=qe+Un|0,ut=ut+Ot|0,nt=nt+an|0,rt=rt+Ct|0,ft=ft+Jt|0,Xt=Xt+hn|0,wn=wn+gn|0,Sn=Sn+ln|0,yn=yn+mn|0,G[0]=Lt>>>0&255,G[1]=Lt>>>8&255,G[2]=Lt>>>16&255,G[3]=Lt>>>24&255,G[4]=Gt>>>0&255,G[5]=Gt>>>8&255,G[6]=Gt>>>16&255,G[7]=Gt>>>24&255,G[8]=Pt>>>0&255,G[9]=Pt>>>8&255,G[10]=Pt>>>16&255,G[11]=Pt>>>24&255,G[12]=Ft>>>0&255,G[13]=Ft>>>8&255,G[14]=Ft>>>16&255,G[15]=Ft>>>24&255,G[16]=qt>>>0&255,G[17]=qt>>>8&255,G[18]=qt>>>16&255,G[19]=qt>>>24&255,G[20]=kt>>>0&255,G[21]=kt>>>8&255,G[22]=kt>>>16&255,G[23]=kt>>>24&255,G[24]=He>>>0&255,G[25]=He>>>8&255,G[26]=He>>>16&255,G[27]=He>>>24&255,G[28]=qe>>>0&255,G[29]=qe>>>8&255,G[30]=qe>>>16&255,G[31]=qe>>>24&255,G[32]=ut>>>0&255,G[33]=ut>>>8&255,G[34]=ut>>>16&255,G[35]=ut>>>24&255,G[36]=nt>>>0&255,G[37]=nt>>>8&255,G[38]=nt>>>16&255,G[39]=nt>>>24&255,G[40]=rt>>>0&255,G[41]=rt>>>8&255,G[42]=rt>>>16&255,G[43]=rt>>>24&255,G[44]=ft>>>0&255,G[45]=ft>>>8&255,G[46]=ft>>>16&255,G[47]=ft>>>24&255,G[48]=Xt>>>0&255,G[49]=Xt>>>8&255,G[50]=Xt>>>16&255,G[51]=Xt>>>24&255,G[52]=wn>>>0&255,G[53]=wn>>>8&255,G[54]=wn>>>16&255,G[55]=wn>>>24&255,G[56]=Sn>>>0&255,G[57]=Sn>>>8&255,G[58]=Sn>>>16&255,G[59]=Sn>>>24&255,G[60]=yn>>>0&255,G[61]=yn>>>8&255,G[62]=yn>>>16&255,G[63]=yn>>>24&255}function I(G,re,ne,F){for(var ae=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,Re=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Le=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,et=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,mt=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,$t=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Et=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,Un=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Ot=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,an=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Ct=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Jt=ne[16]&255|(ne[17]&255)<<8|(ne[18]&255)<<16|(ne[19]&255)<<24,hn=ne[20]&255|(ne[21]&255)<<8|(ne[22]&255)<<16|(ne[23]&255)<<24,gn=ne[24]&255|(ne[25]&255)<<8|(ne[26]&255)<<16|(ne[27]&255)<<24,ln=ne[28]&255|(ne[29]&255)<<8|(ne[30]&255)<<16|(ne[31]&255)<<24,mn=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,Lt=ae,Gt=Re,Pt=Le,Ft=et,qt=mt,kt=$t,He=Et,qe=Un,ut=Ot,nt=an,rt=Ct,ft=Jt,Xt=hn,wn=gn,Sn=ln,yn=mn,ye,kn=0;kn<20;kn+=2)ye=Lt+Xt|0,qt^=ye<<7|ye>>>32-7,ye=qt+Lt|0,ut^=ye<<9|ye>>>32-9,ye=ut+qt|0,Xt^=ye<<13|ye>>>32-13,ye=Xt+ut|0,Lt^=ye<<18|ye>>>32-18,ye=kt+Gt|0,nt^=ye<<7|ye>>>32-7,ye=nt+kt|0,wn^=ye<<9|ye>>>32-9,ye=wn+nt|0,Gt^=ye<<13|ye>>>32-13,ye=Gt+wn|0,kt^=ye<<18|ye>>>32-18,ye=rt+He|0,Sn^=ye<<7|ye>>>32-7,ye=Sn+rt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Sn|0,He^=ye<<13|ye>>>32-13,ye=He+Pt|0,rt^=ye<<18|ye>>>32-18,ye=yn+ft|0,Ft^=ye<<7|ye>>>32-7,ye=Ft+yn|0,qe^=ye<<9|ye>>>32-9,ye=qe+Ft|0,ft^=ye<<13|ye>>>32-13,ye=ft+qe|0,yn^=ye<<18|ye>>>32-18,ye=Lt+Ft|0,Gt^=ye<<7|ye>>>32-7,ye=Gt+Lt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Gt|0,Ft^=ye<<13|ye>>>32-13,ye=Ft+Pt|0,Lt^=ye<<18|ye>>>32-18,ye=kt+qt|0,He^=ye<<7|ye>>>32-7,ye=He+kt|0,qe^=ye<<9|ye>>>32-9,ye=qe+He|0,qt^=ye<<13|ye>>>32-13,ye=qt+qe|0,kt^=ye<<18|ye>>>32-18,ye=rt+nt|0,ft^=ye<<7|ye>>>32-7,ye=ft+rt|0,ut^=ye<<9|ye>>>32-9,ye=ut+ft|0,nt^=ye<<13|ye>>>32-13,ye=nt+ut|0,rt^=ye<<18|ye>>>32-18,ye=yn+Sn|0,Xt^=ye<<7|ye>>>32-7,ye=Xt+yn|0,wn^=ye<<9|ye>>>32-9,ye=wn+Xt|0,Sn^=ye<<13|ye>>>32-13,ye=Sn+wn|0,yn^=ye<<18|ye>>>32-18;G[0]=Lt>>>0&255,G[1]=Lt>>>8&255,G[2]=Lt>>>16&255,G[3]=Lt>>>24&255,G[4]=kt>>>0&255,G[5]=kt>>>8&255,G[6]=kt>>>16&255,G[7]=kt>>>24&255,G[8]=rt>>>0&255,G[9]=rt>>>8&255,G[10]=rt>>>16&255,G[11]=rt>>>24&255,G[12]=yn>>>0&255,G[13]=yn>>>8&255,G[14]=yn>>>16&255,G[15]=yn>>>24&255,G[16]=He>>>0&255,G[17]=He>>>8&255,G[18]=He>>>16&255,G[19]=He>>>24&255,G[20]=qe>>>0&255,G[21]=qe>>>8&255,G[22]=qe>>>16&255,G[23]=qe>>>24&255,G[24]=ut>>>0&255,G[25]=ut>>>8&255,G[26]=ut>>>16&255,G[27]=ut>>>24&255,G[28]=nt>>>0&255,G[29]=nt>>>8&255,G[30]=nt>>>16&255,G[31]=nt>>>24&255}function _(G,re,ne,F){w(G,re,ne,F)}function R(G,re,ne,F){I(G,re,ne,F)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function D(G,re,ne,F,ae,Re,Le){var et=new Uint8Array(16),mt=new Uint8Array(64),$t,Et;for(Et=0;Et<16;Et++)et[Et]=0;for(Et=0;Et<8;Et++)et[Et]=Re[Et];for(;ae>=64;){for(_(mt,et,Le,U),Et=0;Et<64;Et++)G[re+Et]=ne[F+Et]^mt[Et];for($t=1,Et=8;Et<16;Et++)$t=$t+(et[Et]&255)|0,et[Et]=$t&255,$t>>>=8;ae-=64,re+=64,F+=64}if(ae>0)for(_(mt,et,Le,U),Et=0;Et=64;){for(_(Le,Re,ae,U),mt=0;mt<64;mt++)G[re+mt]=Le[mt];for(et=1,mt=8;mt<16;mt++)et=et+(Re[mt]&255)|0,Re[mt]=et&255,et>>>=8;ne-=64,re+=64}if(ne>0)for(_(Le,Re,ae,U),mt=0;mt>>13|ne<<3)&8191,F=G[4]&255|(G[5]&255)<<8,this.r[2]=(ne>>>10|F<<6)&7939,ae=G[6]&255|(G[7]&255)<<8,this.r[3]=(F>>>7|ae<<9)&8191,Re=G[8]&255|(G[9]&255)<<8,this.r[4]=(ae>>>4|Re<<12)&255,this.r[5]=Re>>>1&8190,Le=G[10]&255|(G[11]&255)<<8,this.r[6]=(Re>>>14|Le<<2)&8191,et=G[12]&255|(G[13]&255)<<8,this.r[7]=(Le>>>11|et<<5)&8065,mt=G[14]&255|(G[15]&255)<<8,this.r[8]=(et>>>8|mt<<8)&8191,this.r[9]=mt>>>5&127,this.pad[0]=G[16]&255|(G[17]&255)<<8,this.pad[1]=G[18]&255|(G[19]&255)<<8,this.pad[2]=G[20]&255|(G[21]&255)<<8,this.pad[3]=G[22]&255|(G[23]&255)<<8,this.pad[4]=G[24]&255|(G[25]&255)<<8,this.pad[5]=G[26]&255|(G[27]&255)<<8,this.pad[6]=G[28]&255|(G[29]&255)<<8,this.pad[7]=G[30]&255|(G[31]&255)<<8};O.prototype.blocks=function(G,re,ne){for(var F=this.fin?0:2048,ae,Re,Le,et,mt,$t,Et,Un,Ot,an,Ct,Jt,hn,gn,ln,mn,Lt,Gt,Pt,Ft=this.h[0],qt=this.h[1],kt=this.h[2],He=this.h[3],qe=this.h[4],ut=this.h[5],nt=this.h[6],rt=this.h[7],ft=this.h[8],Xt=this.h[9],wn=this.r[0],Sn=this.r[1],yn=this.r[2],ye=this.r[3],kn=this.r[4],Vn=this.r[5],Hn=this.r[6],xn=this.r[7],qn=this.r[8],jn=this.r[9];ne>=16;)ae=G[re+0]&255|(G[re+1]&255)<<8,Ft+=ae&8191,Re=G[re+2]&255|(G[re+3]&255)<<8,qt+=(ae>>>13|Re<<3)&8191,Le=G[re+4]&255|(G[re+5]&255)<<8,kt+=(Re>>>10|Le<<6)&8191,et=G[re+6]&255|(G[re+7]&255)<<8,He+=(Le>>>7|et<<9)&8191,mt=G[re+8]&255|(G[re+9]&255)<<8,qe+=(et>>>4|mt<<12)&8191,ut+=mt>>>1&8191,$t=G[re+10]&255|(G[re+11]&255)<<8,nt+=(mt>>>14|$t<<2)&8191,Et=G[re+12]&255|(G[re+13]&255)<<8,rt+=($t>>>11|Et<<5)&8191,Un=G[re+14]&255|(G[re+15]&255)<<8,ft+=(Et>>>8|Un<<8)&8191,Xt+=Un>>>5|F,Ot=0,an=Ot,an+=Ft*wn,an+=qt*(5*jn),an+=kt*(5*qn),an+=He*(5*xn),an+=qe*(5*Hn),Ot=an>>>13,an&=8191,an+=ut*(5*Vn),an+=nt*(5*kn),an+=rt*(5*ye),an+=ft*(5*yn),an+=Xt*(5*Sn),Ot+=an>>>13,an&=8191,Ct=Ot,Ct+=Ft*Sn,Ct+=qt*wn,Ct+=kt*(5*jn),Ct+=He*(5*qn),Ct+=qe*(5*xn),Ot=Ct>>>13,Ct&=8191,Ct+=ut*(5*Hn),Ct+=nt*(5*Vn),Ct+=rt*(5*kn),Ct+=ft*(5*ye),Ct+=Xt*(5*yn),Ot+=Ct>>>13,Ct&=8191,Jt=Ot,Jt+=Ft*yn,Jt+=qt*Sn,Jt+=kt*wn,Jt+=He*(5*jn),Jt+=qe*(5*qn),Ot=Jt>>>13,Jt&=8191,Jt+=ut*(5*xn),Jt+=nt*(5*Hn),Jt+=rt*(5*Vn),Jt+=ft*(5*kn),Jt+=Xt*(5*ye),Ot+=Jt>>>13,Jt&=8191,hn=Ot,hn+=Ft*ye,hn+=qt*yn,hn+=kt*Sn,hn+=He*wn,hn+=qe*(5*jn),Ot=hn>>>13,hn&=8191,hn+=ut*(5*qn),hn+=nt*(5*xn),hn+=rt*(5*Hn),hn+=ft*(5*Vn),hn+=Xt*(5*kn),Ot+=hn>>>13,hn&=8191,gn=Ot,gn+=Ft*kn,gn+=qt*ye,gn+=kt*yn,gn+=He*Sn,gn+=qe*wn,Ot=gn>>>13,gn&=8191,gn+=ut*(5*jn),gn+=nt*(5*qn),gn+=rt*(5*xn),gn+=ft*(5*Hn),gn+=Xt*(5*Vn),Ot+=gn>>>13,gn&=8191,ln=Ot,ln+=Ft*Vn,ln+=qt*kn,ln+=kt*ye,ln+=He*yn,ln+=qe*Sn,Ot=ln>>>13,ln&=8191,ln+=ut*wn,ln+=nt*(5*jn),ln+=rt*(5*qn),ln+=ft*(5*xn),ln+=Xt*(5*Hn),Ot+=ln>>>13,ln&=8191,mn=Ot,mn+=Ft*Hn,mn+=qt*Vn,mn+=kt*kn,mn+=He*ye,mn+=qe*yn,Ot=mn>>>13,mn&=8191,mn+=ut*Sn,mn+=nt*wn,mn+=rt*(5*jn),mn+=ft*(5*qn),mn+=Xt*(5*xn),Ot+=mn>>>13,mn&=8191,Lt=Ot,Lt+=Ft*xn,Lt+=qt*Hn,Lt+=kt*Vn,Lt+=He*kn,Lt+=qe*ye,Ot=Lt>>>13,Lt&=8191,Lt+=ut*yn,Lt+=nt*Sn,Lt+=rt*wn,Lt+=ft*(5*jn),Lt+=Xt*(5*qn),Ot+=Lt>>>13,Lt&=8191,Gt=Ot,Gt+=Ft*qn,Gt+=qt*xn,Gt+=kt*Hn,Gt+=He*Vn,Gt+=qe*kn,Ot=Gt>>>13,Gt&=8191,Gt+=ut*ye,Gt+=nt*yn,Gt+=rt*Sn,Gt+=ft*wn,Gt+=Xt*(5*jn),Ot+=Gt>>>13,Gt&=8191,Pt=Ot,Pt+=Ft*jn,Pt+=qt*qn,Pt+=kt*xn,Pt+=He*Hn,Pt+=qe*Vn,Ot=Pt>>>13,Pt&=8191,Pt+=ut*kn,Pt+=nt*ye,Pt+=rt*yn,Pt+=ft*Sn,Pt+=Xt*wn,Ot+=Pt>>>13,Pt&=8191,Ot=(Ot<<2)+Ot|0,Ot=Ot+an|0,an=Ot&8191,Ot=Ot>>>13,Ct+=Ot,Ft=an,qt=Ct,kt=Jt,He=hn,qe=gn,ut=ln,nt=mn,rt=Lt,ft=Gt,Xt=Pt,re+=16,ne-=16;this.h[0]=Ft,this.h[1]=qt,this.h[2]=kt,this.h[3]=He,this.h[4]=qe,this.h[5]=ut,this.h[6]=nt,this.h[7]=rt,this.h[8]=ft,this.h[9]=Xt},O.prototype.finish=function(G,re){var ne=new Uint16Array(10),F,ae,Re,Le;if(this.leftover){for(Le=this.leftover,this.buffer[Le++]=1;Le<16;Le++)this.buffer[Le]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(F=this.h[1]>>>13,this.h[1]&=8191,Le=2;Le<10;Le++)this.h[Le]+=F,F=this.h[Le]>>>13,this.h[Le]&=8191;for(this.h[0]+=F*5,F=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=F,F=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=F,ne[0]=this.h[0]+5,F=ne[0]>>>13,ne[0]&=8191,Le=1;Le<10;Le++)ne[Le]=this.h[Le]+F,F=ne[Le]>>>13,ne[Le]&=8191;for(ne[9]-=1<<13,ae=(F^1)-1,Le=0;Le<10;Le++)ne[Le]&=ae;for(ae=~ae,Le=0;Le<10;Le++)this.h[Le]=this.h[Le]&ae|ne[Le];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,Re=this.h[0]+this.pad[0],this.h[0]=Re&65535,Le=1;Le<8;Le++)Re=(this.h[Le]+this.pad[Le]|0)+(Re>>>16)|0,this.h[Le]=Re&65535;G[re+0]=this.h[0]>>>0&255,G[re+1]=this.h[0]>>>8&255,G[re+2]=this.h[1]>>>0&255,G[re+3]=this.h[1]>>>8&255,G[re+4]=this.h[2]>>>0&255,G[re+5]=this.h[2]>>>8&255,G[re+6]=this.h[3]>>>0&255,G[re+7]=this.h[3]>>>8&255,G[re+8]=this.h[4]>>>0&255,G[re+9]=this.h[4]>>>8&255,G[re+10]=this.h[5]>>>0&255,G[re+11]=this.h[5]>>>8&255,G[re+12]=this.h[6]>>>0&255,G[re+13]=this.h[6]>>>8&255,G[re+14]=this.h[7]>>>0&255,G[re+15]=this.h[7]>>>8&255},O.prototype.update=function(G,re,ne){var F,ae;if(this.leftover){for(ae=16-this.leftover,ae>ne&&(ae=ne),F=0;F=16&&(ae=ne-ne%16,this.blocks(G,re,ae),re+=ae,ne-=ae),ne){for(F=0;F>16&1),Re[ne-1]&=65535;Re[15]=Le[15]-32767-(Re[14]>>16&1),ae=Re[15]>>16&1,Re[14]&=65535,Y(Le,Re,1-ae)}for(ne=0;ne<16;ne++)G[2*ne]=Le[ne]&255,G[2*ne+1]=Le[ne]>>8}function ie(G,re){var ne=new Uint8Array(32),F=new Uint8Array(32);return W(ne,G),W(F,re),x(ne,0,F,0)}function le(G){var re=new Uint8Array(32);return W(re,G),re[0]&1}function fe(G,re){var ne;for(ne=0;ne<16;ne++)G[ne]=re[2*ne]+(re[2*ne+1]<<8);G[15]&=32767}function Ee(G,re,ne){for(var F=0;F<16;F++)G[F]=re[F]+ne[F]}function Ae(G,re,ne){for(var F=0;F<16;F++)G[F]=re[F]-ne[F]}function Ie(G,re,ne){var F,ae,Re=0,Le=0,et=0,mt=0,$t=0,Et=0,Un=0,Ot=0,an=0,Ct=0,Jt=0,hn=0,gn=0,ln=0,mn=0,Lt=0,Gt=0,Pt=0,Ft=0,qt=0,kt=0,He=0,qe=0,ut=0,nt=0,rt=0,ft=0,Xt=0,wn=0,Sn=0,yn=0,ye=ne[0],kn=ne[1],Vn=ne[2],Hn=ne[3],xn=ne[4],qn=ne[5],jn=ne[6],Jr=ne[7],rr=ne[8],Pr=ne[9],Xr=ne[10],Zr=ne[11],Uo=ne[12],ni=ne[13],ri=ne[14],oi=ne[15];F=re[0],Re+=F*ye,Le+=F*kn,et+=F*Vn,mt+=F*Hn,$t+=F*xn,Et+=F*qn,Un+=F*jn,Ot+=F*Jr,an+=F*rr,Ct+=F*Pr,Jt+=F*Xr,hn+=F*Zr,gn+=F*Uo,ln+=F*ni,mn+=F*ri,Lt+=F*oi,F=re[1],Le+=F*ye,et+=F*kn,mt+=F*Vn,$t+=F*Hn,Et+=F*xn,Un+=F*qn,Ot+=F*jn,an+=F*Jr,Ct+=F*rr,Jt+=F*Pr,hn+=F*Xr,gn+=F*Zr,ln+=F*Uo,mn+=F*ni,Lt+=F*ri,Gt+=F*oi,F=re[2],et+=F*ye,mt+=F*kn,$t+=F*Vn,Et+=F*Hn,Un+=F*xn,Ot+=F*qn,an+=F*jn,Ct+=F*Jr,Jt+=F*rr,hn+=F*Pr,gn+=F*Xr,ln+=F*Zr,mn+=F*Uo,Lt+=F*ni,Gt+=F*ri,Pt+=F*oi,F=re[3],mt+=F*ye,$t+=F*kn,Et+=F*Vn,Un+=F*Hn,Ot+=F*xn,an+=F*qn,Ct+=F*jn,Jt+=F*Jr,hn+=F*rr,gn+=F*Pr,ln+=F*Xr,mn+=F*Zr,Lt+=F*Uo,Gt+=F*ni,Pt+=F*ri,Ft+=F*oi,F=re[4],$t+=F*ye,Et+=F*kn,Un+=F*Vn,Ot+=F*Hn,an+=F*xn,Ct+=F*qn,Jt+=F*jn,hn+=F*Jr,gn+=F*rr,ln+=F*Pr,mn+=F*Xr,Lt+=F*Zr,Gt+=F*Uo,Pt+=F*ni,Ft+=F*ri,qt+=F*oi,F=re[5],Et+=F*ye,Un+=F*kn,Ot+=F*Vn,an+=F*Hn,Ct+=F*xn,Jt+=F*qn,hn+=F*jn,gn+=F*Jr,ln+=F*rr,mn+=F*Pr,Lt+=F*Xr,Gt+=F*Zr,Pt+=F*Uo,Ft+=F*ni,qt+=F*ri,kt+=F*oi,F=re[6],Un+=F*ye,Ot+=F*kn,an+=F*Vn,Ct+=F*Hn,Jt+=F*xn,hn+=F*qn,gn+=F*jn,ln+=F*Jr,mn+=F*rr,Lt+=F*Pr,Gt+=F*Xr,Pt+=F*Zr,Ft+=F*Uo,qt+=F*ni,kt+=F*ri,He+=F*oi,F=re[7],Ot+=F*ye,an+=F*kn,Ct+=F*Vn,Jt+=F*Hn,hn+=F*xn,gn+=F*qn,ln+=F*jn,mn+=F*Jr,Lt+=F*rr,Gt+=F*Pr,Pt+=F*Xr,Ft+=F*Zr,qt+=F*Uo,kt+=F*ni,He+=F*ri,qe+=F*oi,F=re[8],an+=F*ye,Ct+=F*kn,Jt+=F*Vn,hn+=F*Hn,gn+=F*xn,ln+=F*qn,mn+=F*jn,Lt+=F*Jr,Gt+=F*rr,Pt+=F*Pr,Ft+=F*Xr,qt+=F*Zr,kt+=F*Uo,He+=F*ni,qe+=F*ri,ut+=F*oi,F=re[9],Ct+=F*ye,Jt+=F*kn,hn+=F*Vn,gn+=F*Hn,ln+=F*xn,mn+=F*qn,Lt+=F*jn,Gt+=F*Jr,Pt+=F*rr,Ft+=F*Pr,qt+=F*Xr,kt+=F*Zr,He+=F*Uo,qe+=F*ni,ut+=F*ri,nt+=F*oi,F=re[10],Jt+=F*ye,hn+=F*kn,gn+=F*Vn,ln+=F*Hn,mn+=F*xn,Lt+=F*qn,Gt+=F*jn,Pt+=F*Jr,Ft+=F*rr,qt+=F*Pr,kt+=F*Xr,He+=F*Zr,qe+=F*Uo,ut+=F*ni,nt+=F*ri,rt+=F*oi,F=re[11],hn+=F*ye,gn+=F*kn,ln+=F*Vn,mn+=F*Hn,Lt+=F*xn,Gt+=F*qn,Pt+=F*jn,Ft+=F*Jr,qt+=F*rr,kt+=F*Pr,He+=F*Xr,qe+=F*Zr,ut+=F*Uo,nt+=F*ni,rt+=F*ri,ft+=F*oi,F=re[12],gn+=F*ye,ln+=F*kn,mn+=F*Vn,Lt+=F*Hn,Gt+=F*xn,Pt+=F*qn,Ft+=F*jn,qt+=F*Jr,kt+=F*rr,He+=F*Pr,qe+=F*Xr,ut+=F*Zr,nt+=F*Uo,rt+=F*ni,ft+=F*ri,Xt+=F*oi,F=re[13],ln+=F*ye,mn+=F*kn,Lt+=F*Vn,Gt+=F*Hn,Pt+=F*xn,Ft+=F*qn,qt+=F*jn,kt+=F*Jr,He+=F*rr,qe+=F*Pr,ut+=F*Xr,nt+=F*Zr,rt+=F*Uo,ft+=F*ni,Xt+=F*ri,wn+=F*oi,F=re[14],mn+=F*ye,Lt+=F*kn,Gt+=F*Vn,Pt+=F*Hn,Ft+=F*xn,qt+=F*qn,kt+=F*jn,He+=F*Jr,qe+=F*rr,ut+=F*Pr,nt+=F*Xr,rt+=F*Zr,ft+=F*Uo,Xt+=F*ni,wn+=F*ri,Sn+=F*oi,F=re[15],Lt+=F*ye,Gt+=F*kn,Pt+=F*Vn,Ft+=F*Hn,qt+=F*xn,kt+=F*qn,He+=F*jn,qe+=F*Jr,ut+=F*rr,nt+=F*Pr,rt+=F*Xr,ft+=F*Zr,Xt+=F*Uo,wn+=F*ni,Sn+=F*ri,yn+=F*oi,Re+=38*Gt,Le+=38*Pt,et+=38*Ft,mt+=38*qt,$t+=38*kt,Et+=38*He,Un+=38*qe,Ot+=38*ut,an+=38*nt,Ct+=38*rt,Jt+=38*ft,hn+=38*Xt,gn+=38*wn,ln+=38*Sn,mn+=38*yn,ae=1,F=Re+ae+65535,ae=Math.floor(F/65536),Re=F-ae*65536,F=Le+ae+65535,ae=Math.floor(F/65536),Le=F-ae*65536,F=et+ae+65535,ae=Math.floor(F/65536),et=F-ae*65536,F=mt+ae+65535,ae=Math.floor(F/65536),mt=F-ae*65536,F=$t+ae+65535,ae=Math.floor(F/65536),$t=F-ae*65536,F=Et+ae+65535,ae=Math.floor(F/65536),Et=F-ae*65536,F=Un+ae+65535,ae=Math.floor(F/65536),Un=F-ae*65536,F=Ot+ae+65535,ae=Math.floor(F/65536),Ot=F-ae*65536,F=an+ae+65535,ae=Math.floor(F/65536),an=F-ae*65536,F=Ct+ae+65535,ae=Math.floor(F/65536),Ct=F-ae*65536,F=Jt+ae+65535,ae=Math.floor(F/65536),Jt=F-ae*65536,F=hn+ae+65535,ae=Math.floor(F/65536),hn=F-ae*65536,F=gn+ae+65535,ae=Math.floor(F/65536),gn=F-ae*65536,F=ln+ae+65535,ae=Math.floor(F/65536),ln=F-ae*65536,F=mn+ae+65535,ae=Math.floor(F/65536),mn=F-ae*65536,F=Lt+ae+65535,ae=Math.floor(F/65536),Lt=F-ae*65536,Re+=ae-1+37*(ae-1),ae=1,F=Re+ae+65535,ae=Math.floor(F/65536),Re=F-ae*65536,F=Le+ae+65535,ae=Math.floor(F/65536),Le=F-ae*65536,F=et+ae+65535,ae=Math.floor(F/65536),et=F-ae*65536,F=mt+ae+65535,ae=Math.floor(F/65536),mt=F-ae*65536,F=$t+ae+65535,ae=Math.floor(F/65536),$t=F-ae*65536,F=Et+ae+65535,ae=Math.floor(F/65536),Et=F-ae*65536,F=Un+ae+65535,ae=Math.floor(F/65536),Un=F-ae*65536,F=Ot+ae+65535,ae=Math.floor(F/65536),Ot=F-ae*65536,F=an+ae+65535,ae=Math.floor(F/65536),an=F-ae*65536,F=Ct+ae+65535,ae=Math.floor(F/65536),Ct=F-ae*65536,F=Jt+ae+65535,ae=Math.floor(F/65536),Jt=F-ae*65536,F=hn+ae+65535,ae=Math.floor(F/65536),hn=F-ae*65536,F=gn+ae+65535,ae=Math.floor(F/65536),gn=F-ae*65536,F=ln+ae+65535,ae=Math.floor(F/65536),ln=F-ae*65536,F=mn+ae+65535,ae=Math.floor(F/65536),mn=F-ae*65536,F=Lt+ae+65535,ae=Math.floor(F/65536),Lt=F-ae*65536,Re+=ae-1+37*(ae-1),G[0]=Re,G[1]=Le,G[2]=et,G[3]=mt,G[4]=$t,G[5]=Et,G[6]=Un,G[7]=Ot,G[8]=an,G[9]=Ct,G[10]=Jt,G[11]=hn,G[12]=gn,G[13]=ln,G[14]=mn,G[15]=Lt}function De(G,re){Ie(G,re,re)}function Ue(G,re){var ne=n(),F;for(F=0;F<16;F++)ne[F]=re[F];for(F=253;F>=0;F--)De(ne,ne),F!==2&&F!==4&&Ie(ne,ne,re);for(F=0;F<16;F++)G[F]=ne[F]}function ce(G,re){var ne=n(),F;for(F=0;F<16;F++)ne[F]=re[F];for(F=250;F>=0;F--)De(ne,ne),F!==1&&Ie(ne,ne,re);for(F=0;F<16;F++)G[F]=ne[F]}function de(G,re,ne){var F=new Uint8Array(32),ae=new Float64Array(80),Re,Le,et=n(),mt=n(),$t=n(),Et=n(),Un=n(),Ot=n();for(Le=0;Le<31;Le++)F[Le]=re[Le];for(F[31]=re[31]&127|64,F[0]&=248,fe(ae,ne),Le=0;Le<16;Le++)mt[Le]=ae[Le],Et[Le]=et[Le]=$t[Le]=0;for(et[0]=Et[0]=1,Le=254;Le>=0;--Le)Re=F[Le>>>3]>>>(Le&7)&1,Y(et,mt,Re),Y($t,Et,Re),Ee(Un,et,$t),Ae(et,et,$t),Ee($t,mt,Et),Ae(mt,mt,Et),De(Et,Un),De(Ot,et),Ie(et,$t,et),Ie($t,mt,Un),Ee(Un,et,$t),Ae(et,et,$t),De(mt,et),Ae($t,Et,Ot),Ie(et,$t,l),Ee(et,et,Et),Ie($t,$t,et),Ie(et,Et,Ot),Ie(Et,mt,ae),De(mt,Un),Y(et,mt,Re),Y($t,Et,Re);for(Le=0;Le<16;Le++)ae[Le+16]=et[Le],ae[Le+32]=$t[Le],ae[Le+48]=mt[Le],ae[Le+64]=Et[Le];var an=ae.subarray(32),Ct=ae.subarray(16);return Ue(an,an),Ie(Ct,Ct,an),W(G,Ct),0}function ve(G,re){return de(G,re,i)}function he(G,re){return r(re,32),ve(G,re)}function pe(G,re,ne){var F=new Uint8Array(32);return de(F,ne,re),R(G,o,F,U)}var ge=L,Ce=B;function _e(G,re,ne,F,ae,Re){var Le=new Uint8Array(32);return pe(Le,ae,Re),ge(G,re,ne,F,Le)}function Ne(G,re,ne,F,ae,Re){var Le=new Uint8Array(32);return pe(Le,ae,Re),Ce(G,re,ne,F,Le)}var Be=[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 Ve(G,re,ne,F){for(var ae=new Int32Array(16),Re=new Int32Array(16),Le,et,mt,$t,Et,Un,Ot,an,Ct,Jt,hn,gn,ln,mn,Lt,Gt,Pt,Ft,qt,kt,He,qe,ut,nt,rt,ft,Xt=G[0],wn=G[1],Sn=G[2],yn=G[3],ye=G[4],kn=G[5],Vn=G[6],Hn=G[7],xn=re[0],qn=re[1],jn=re[2],Jr=re[3],rr=re[4],Pr=re[5],Xr=re[6],Zr=re[7],Uo=0;F>=128;){for(qt=0;qt<16;qt++)kt=8*qt+Uo,ae[qt]=ne[kt+0]<<24|ne[kt+1]<<16|ne[kt+2]<<8|ne[kt+3],Re[qt]=ne[kt+4]<<24|ne[kt+5]<<16|ne[kt+6]<<8|ne[kt+7];for(qt=0;qt<80;qt++)if(Le=Xt,et=wn,mt=Sn,$t=yn,Et=ye,Un=kn,Ot=Vn,an=Hn,Ct=xn,Jt=qn,hn=jn,gn=Jr,ln=rr,mn=Pr,Lt=Xr,Gt=Zr,He=Hn,qe=Zr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=(ye>>>14|rr<<32-14)^(ye>>>18|rr<<32-18)^(rr>>>41-32|ye<<32-(41-32)),qe=(rr>>>14|ye<<32-14)^(rr>>>18|ye<<32-18)^(ye>>>41-32|rr<<32-(41-32)),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=ye&kn^~ye&Vn,qe=rr&Pr^~rr&Xr,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=Be[qt*2],qe=Be[qt*2+1],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=ae[qt%16],qe=Re[qt%16],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,Pt=rt&65535|ft<<16,Ft=ut&65535|nt<<16,He=Pt,qe=Ft,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=(Xt>>>28|xn<<32-28)^(xn>>>34-32|Xt<<32-(34-32))^(xn>>>39-32|Xt<<32-(39-32)),qe=(xn>>>28|Xt<<32-28)^(Xt>>>34-32|xn<<32-(34-32))^(Xt>>>39-32|xn<<32-(39-32)),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=Xt&wn^Xt&Sn^wn&Sn,qe=xn&qn^xn&jn^qn&jn,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,an=rt&65535|ft<<16,Gt=ut&65535|nt<<16,He=$t,qe=gn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=Pt,qe=Ft,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,$t=rt&65535|ft<<16,gn=ut&65535|nt<<16,wn=Le,Sn=et,yn=mt,ye=$t,kn=Et,Vn=Un,Hn=Ot,Xt=an,qn=Ct,jn=Jt,Jr=hn,rr=gn,Pr=ln,Xr=mn,Zr=Lt,xn=Gt,qt%16===15)for(kt=0;kt<16;kt++)He=ae[kt],qe=Re[kt],ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=ae[(kt+9)%16],qe=Re[(kt+9)%16],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,Pt=ae[(kt+1)%16],Ft=Re[(kt+1)%16],He=(Pt>>>1|Ft<<32-1)^(Pt>>>8|Ft<<32-8)^Pt>>>7,qe=(Ft>>>1|Pt<<32-1)^(Ft>>>8|Pt<<32-8)^(Ft>>>7|Pt<<32-7),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,Pt=ae[(kt+14)%16],Ft=Re[(kt+14)%16],He=(Pt>>>19|Ft<<32-19)^(Ft>>>61-32|Pt<<32-(61-32))^Pt>>>6,qe=(Ft>>>19|Pt<<32-19)^(Pt>>>61-32|Ft<<32-(61-32))^(Ft>>>6|Pt<<32-6),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,ae[kt]=rt&65535|ft<<16,Re[kt]=ut&65535|nt<<16;He=Xt,qe=xn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[0],qe=re[0],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[0]=Xt=rt&65535|ft<<16,re[0]=xn=ut&65535|nt<<16,He=wn,qe=qn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[1],qe=re[1],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[1]=wn=rt&65535|ft<<16,re[1]=qn=ut&65535|nt<<16,He=Sn,qe=jn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[2],qe=re[2],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[2]=Sn=rt&65535|ft<<16,re[2]=jn=ut&65535|nt<<16,He=yn,qe=Jr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[3],qe=re[3],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[3]=yn=rt&65535|ft<<16,re[3]=Jr=ut&65535|nt<<16,He=ye,qe=rr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[4],qe=re[4],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[4]=ye=rt&65535|ft<<16,re[4]=rr=ut&65535|nt<<16,He=kn,qe=Pr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[5],qe=re[5],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[5]=kn=rt&65535|ft<<16,re[5]=Pr=ut&65535|nt<<16,He=Vn,qe=Xr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[6],qe=re[6],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[6]=Vn=rt&65535|ft<<16,re[6]=Xr=ut&65535|nt<<16,He=Hn,qe=Zr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[7],qe=re[7],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[7]=Hn=rt&65535|ft<<16,re[7]=Zr=ut&65535|nt<<16,Uo+=128,F-=128}return F}function wt(G,re,ne){var F=new Int32Array(8),ae=new Int32Array(8),Re=new Uint8Array(256),Le,et=ne;for(F[0]=1779033703,F[1]=3144134277,F[2]=1013904242,F[3]=2773480762,F[4]=1359893119,F[5]=2600822924,F[6]=528734635,F[7]=1541459225,ae[0]=4089235720,ae[1]=2227873595,ae[2]=4271175723,ae[3]=1595750129,ae[4]=2917565137,ae[5]=725511199,ae[6]=4215389547,ae[7]=327033209,Ve(F,ae,re,ne),ne%=128,Le=0;Le=0;--ae)F=ne[ae/8|0]>>(ae&7)&1,je(G,re,F),xe(re,G),xe(G,G),je(G,re,F)}function Fe(G,re){var ne=[n(),n(),n(),n()];H(ne[0],f),H(ne[1],p),H(ne[2],s),Ie(ne[3],f,p),Ge(G,ne,re)}function te(G,re,ne){var F=new Uint8Array(64),ae=[n(),n(),n(),n()],Re;for(ne||r(re,32),wt(F,re,32),F[0]&=248,F[31]&=127,F[31]|=64,Fe(ae,F),We(G,ae),Re=0;Re<32;Re++)re[Re+32]=G[Re];return 0}var Z=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 N(G,re){var ne,F,ae,Re;for(F=63;F>=32;--F){for(ne=0,ae=F-32,Re=F-12;ae>4)*Z[ae],ne=re[ae]>>8,re[ae]&=255;for(ae=0;ae<32;ae++)re[ae]-=ne*Z[ae];for(F=0;F<32;F++)re[F+1]+=re[F]>>8,G[F]=re[F]&255}function k(G){var re=new Float64Array(64),ne;for(ne=0;ne<64;ne++)re[ne]=G[ne];for(ne=0;ne<64;ne++)G[ne]=0;N(G,re)}function S(G,re,ne,F){var ae=new Uint8Array(64),Re=new Uint8Array(64),Le=new Uint8Array(64),et,mt,$t=new Float64Array(64),Et=[n(),n(),n(),n()];wt(ae,F,32),ae[0]&=248,ae[31]&=127,ae[31]|=64;var Un=ne+64;for(et=0;et>7&&Ae(G[0],a,G[0]),Ie(G[3],G[0],G[1]),0)}function V(G,re,ne,F){var ae,Re=new Uint8Array(32),Le=new Uint8Array(64),et=[n(),n(),n(),n()],mt=[n(),n(),n(),n()];if(ne<64||P(mt,F))return-1;for(ae=0;ae=0},t.sign.keyPair=function(){var G=new Uint8Array(wr),re=new Uint8Array(kr);return te(G,re),{publicKey:G,secretKey:re}},t.sign.keyPair.fromSecretKey=function(G){if(nr(G),G.length!==kr)throw new Error("bad secret key size");for(var re=new Uint8Array(wr),ne=0;ne0;)t.push(parseInt(e.slice(0,8),2)),e=e.slice(8);return Buffer.from(t)}Gf.bitsToBytes=RRe;var lS={};Object.defineProperty(lS,"__esModule",{value:!0});lS.wordlist=void 0;const DRe=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];lS.wordlist=DRe;var BRe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oo,"__esModule",{value:!0});oo.mnemonicFromRandomSeed=oo.mnemonicIndexesToBytes=oo.bytesToMnemonics=oo.bytesToMnemonicIndexes=oo.mnemonicNew=oo.mnemonicValidate=oo.mnemonicToHDSeed=oo.mnemonicToWalletKey=oo.mnemonicToPrivateKey=oo.mnemonicToSeed=oo.mnemonicToEntropy=void 0;const EJ=BRe(Rf),$Re=cc,LRe=yc,xT=sS,eR=Gf,$A=lS,FD=1e5;async function TJ(e){const t=await uS(e);return await FRe(t)&&!await UD(t)}function ND(e){return e.map(t=>t.toLowerCase().trim())}async function UD(e){return(await(0,xT.pbkdf2_sha512)(e,"TON seed version",Math.max(1,Math.floor(FD/256)),64))[0]==0}async function FRe(e){return(await(0,xT.pbkdf2_sha512)(e,"TON fast seed version",1,64))[0]==1}async function uS(e,t){return await(0,LRe.hmac_sha512)(e.join(" "),t&&t.length>0?t:"")}oo.mnemonicToEntropy=uS;async function jD(e,t,n){const r=await uS(e,n);return await(0,xT.pbkdf2_sha512)(r,t,FD,64)}oo.mnemonicToSeed=jD;async function kJ(e,t){e=ND(e);const n=await jD(e,"TON default seed",t);let r=EJ.default.sign.keyPair.fromSeed(n.slice(0,32));return{publicKey:Buffer.from(r.publicKey),secretKey:Buffer.from(r.secretKey)}}oo.mnemonicToPrivateKey=kJ;async function NRe(e,t){let r=(await kJ(e,t)).secretKey.slice(0,32);const o=EJ.default.sign.keyPair.fromSeed(r);return{publicKey:Buffer.from(o.publicKey),secretKey:Buffer.from(o.secretKey)}}oo.mnemonicToWalletKey=NRe;async function URe(e,t){return e=ND(e),await jD(e,"TON HD Keys seed",t)}oo.mnemonicToHDSeed=URe;async function IJ(e,t){e=ND(e);for(let n of e)if($A.wordlist.indexOf(n)<0)return!1;return t&&t.length>0&&!await TJ(e)?!1:await UD(await uS(e,t))}oo.mnemonicValidate=IJ;async function jRe(e=24,t){let n=[];for(;;){n=[];for(let r=0;r0&&!await TJ(n))&&await UD(await uS(n,t)))break}return n}oo.mnemonicNew=jRe;function PJ(e,t){let n=(0,eR.bytesToBits)(e),r=[];for(let o=0;o=2028)throw Error("Invalid input");t+=(0,eR.lpad)(n.toString(2),"0",11)}for(;t.length%8!==0;)t=t+"0";return(0,eR.bitsToBytes)(t)}oo.mnemonicIndexesToBytes=WRe;async function zRe(e,t=24,n){const r=Math.ceil(t*11/8);let o=e;for(;;){let i=await(0,xT.pbkdf2_sha512)(o,"TON mnemonic seed",Math.max(1,Math.floor(FD/256)),r),a=MJ(i,t);if(await IJ(a,n))return a;o=i}}oo.mnemonicFromRandomSeed=zRe;var Ia={},VRe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.openBox=Ia.sealBox=Ia.signVerify=Ia.sign=Ia.keyPairFromSeed=Ia.keyPairFromSecretKey=void 0;const Fy=VRe(Rf);function HRe(e){let t=Fy.default.sign.keyPair.fromSecretKey(new Uint8Array(e));return{publicKey:Buffer.from(t.publicKey),secretKey:Buffer.from(t.secretKey)}}Ia.keyPairFromSecretKey=HRe;function qRe(e){let t=Fy.default.sign.keyPair.fromSeed(new Uint8Array(e));return{publicKey:Buffer.from(t.publicKey),secretKey:Buffer.from(t.secretKey)}}Ia.keyPairFromSeed=qRe;function QRe(e,t){return Buffer.from(Fy.default.sign.detached(new Uint8Array(e),new Uint8Array(t)))}Ia.sign=QRe;function KRe(e,t,n){return Fy.default.sign.detached.verify(new Uint8Array(e),new Uint8Array(t),new Uint8Array(n))}Ia.signVerify=KRe;function YRe(e,t,n){return Buffer.from(Fy.default.secretbox(e,t,n))}Ia.sealBox=YRe;function GRe(e,t,n){let r=Fy.default.secretbox.open(e,t,n);return r?Buffer.from(r):null}Ia.openBox=GRe;var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0});Jf.deriveEd25519Path=Jf.deriveED25519HardenedKey=Jf.getED25519MasterKeyFromSeed=void 0;const OJ=yc,JRe="ed25519 seed",hW=2147483648;async function RJ(e){const t=await(0,OJ.hmac_sha512)(JRe,e),n=t.slice(0,32),r=t.slice(32);return{key:n,chainCode:r}}Jf.getED25519MasterKeyFromSeed=RJ;async function DJ(e,t){if(t>=hW)throw Error("Key index must be less than offset");const n=Buffer.alloc(4);n.writeUInt32BE(t+hW,0);const r=Buffer.concat([Buffer.alloc(1,0),e.key,n]),o=await(0,OJ.hmac_sha512)(e.chainCode,r),i=o.slice(0,32),a=o.slice(32);return{key:i,chainCode:a}}Jf.deriveED25519HardenedKey=DJ;async function XRe(e,t){let n=await RJ(e),r=[...t];for(;r.length>0;){let o=r[0];r=r.slice(1),n=await DJ(n,o)}return n.key}Jf.deriveEd25519Path=XRe;var Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.deriveSymmetricPath=Xf.deriveSymmetricHardenedKey=Xf.getSymmetricMasterKeyFromSeed=void 0;const BJ=yc,ZRe="Symmetric key seed";async function $J(e){const t=await(0,BJ.hmac_sha512)(ZRe,e),n=t.slice(32),r=t.slice(0,32);return{key:n,chainCode:r}}Xf.getSymmetricMasterKeyFromSeed=$J;async function LJ(e,t){const n=Buffer.concat([Buffer.alloc(1,0),Buffer.from(t)]),r=await(0,BJ.hmac_sha512)(e.chainCode,n),o=r.slice(32),i=r.slice(0,32);return{key:o,chainCode:i}}Xf.deriveSymmetricHardenedKey=LJ;async function e5e(e,t){let n=await $J(e),r=[...t];for(;r.length>0;){let o=r[0];r=r.slice(1),n=await LJ(n,o)}return n.key}Xf.deriveSymmetricPath=e5e;var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.deriveMnemonicsPath=Zf.deriveMnemonicHardenedKey=Zf.getMnemonicsMasterKeyFromSeed=void 0;const t5e=oo,FJ=yc,gW=2147483648,n5e="TON Mnemonics HD seed";async function NJ(e){const t=await(0,FJ.hmac_sha512)(n5e,e),n=t.slice(0,32),r=t.slice(32);return{key:n,chainCode:r}}Zf.getMnemonicsMasterKeyFromSeed=NJ;async function UJ(e,t){if(t>=gW)throw Error("Key index must be less than offset");const n=Buffer.alloc(4);n.writeUInt32BE(t+gW,0);const r=Buffer.concat([Buffer.alloc(1,0),e.key,n]),o=await(0,FJ.hmac_sha512)(e.chainCode,r),i=o.slice(0,32),a=o.slice(32);return{key:i,chainCode:a}}Zf.deriveMnemonicHardenedKey=UJ;async function r5e(e,t,n=24,r){let o=await NJ(e),i=[...t];for(;i.length>0;){let a=i[0];i=i.slice(1),o=await UJ(o,a)}return await(0,t5e.mnemonicFromRandomSeed)(o.key,n,r)}Zf.deriveMnemonicsPath=r5e;var mW;function Bg(){return mW||(mW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMnemonicsMasterKeyFromSeed=e.deriveMnemonicHardenedKey=e.deriveMnemonicsPath=e.deriveSymmetricPath=e.deriveSymmetricHardenedKey=e.getSymmetricMasterKeyFromSeed=e.deriveEd25519Path=e.deriveED25519HardenedKey=e.getED25519MasterKeyFromSeed=e.signVerify=e.sign=e.keyPairFromSecretKey=e.keyPairFromSeed=e.openBox=e.sealBox=e.mnemonicWordList=e.mnemonicToHDSeed=e.mnemonicToSeed=e.mnemonicToWalletKey=e.mnemonicToPrivateKey=e.mnemonicValidate=e.mnemonicNew=e.newSecurePassphrase=e.newSecureWords=e.getSecureRandomNumber=e.getSecureRandomWords=e.getSecureRandomBytes=e.hmac_sha512=e.pbkdf2_sha512=e.sha512_sync=e.sha512=e.sha256_sync=e.sha256=void 0;var t=Kf;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return t.sha256}}),Object.defineProperty(e,"sha256_sync",{enumerable:!0,get:function(){return t.sha256_sync}});var n=Yf;Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return n.sha512}}),Object.defineProperty(e,"sha512_sync",{enumerable:!0,get:function(){return n.sha512_sync}});var r=sS;Object.defineProperty(e,"pbkdf2_sha512",{enumerable:!0,get:function(){return r.pbkdf2_sha512}});var o=yc;Object.defineProperty(e,"hmac_sha512",{enumerable:!0,get:function(){return o.hmac_sha512}});var i=cc;Object.defineProperty(e,"getSecureRandomBytes",{enumerable:!0,get:function(){return i.getSecureRandomBytes}}),Object.defineProperty(e,"getSecureRandomWords",{enumerable:!0,get:function(){return i.getSecureRandomWords}}),Object.defineProperty(e,"getSecureRandomNumber",{enumerable:!0,get:function(){return i.getSecureRandomNumber}});var a=bT;Object.defineProperty(e,"newSecureWords",{enumerable:!0,get:function(){return a.newSecureWords}});var s=TRe();Object.defineProperty(e,"newSecurePassphrase",{enumerable:!0,get:function(){return s.newSecurePassphrase}});var l=oo;Object.defineProperty(e,"mnemonicNew",{enumerable:!0,get:function(){return l.mnemonicNew}}),Object.defineProperty(e,"mnemonicValidate",{enumerable:!0,get:function(){return l.mnemonicValidate}}),Object.defineProperty(e,"mnemonicToPrivateKey",{enumerable:!0,get:function(){return l.mnemonicToPrivateKey}}),Object.defineProperty(e,"mnemonicToWalletKey",{enumerable:!0,get:function(){return l.mnemonicToWalletKey}}),Object.defineProperty(e,"mnemonicToSeed",{enumerable:!0,get:function(){return l.mnemonicToSeed}}),Object.defineProperty(e,"mnemonicToHDSeed",{enumerable:!0,get:function(){return l.mnemonicToHDSeed}});var u=lS;Object.defineProperty(e,"mnemonicWordList",{enumerable:!0,get:function(){return u.wordlist}});var c=Ia;Object.defineProperty(e,"sealBox",{enumerable:!0,get:function(){return c.sealBox}}),Object.defineProperty(e,"openBox",{enumerable:!0,get:function(){return c.openBox}});var f=Ia;Object.defineProperty(e,"keyPairFromSeed",{enumerable:!0,get:function(){return f.keyPairFromSeed}}),Object.defineProperty(e,"keyPairFromSecretKey",{enumerable:!0,get:function(){return f.keyPairFromSecretKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return f.sign}}),Object.defineProperty(e,"signVerify",{enumerable:!0,get:function(){return f.signVerify}});var p=Jf;Object.defineProperty(e,"getED25519MasterKeyFromSeed",{enumerable:!0,get:function(){return p.getED25519MasterKeyFromSeed}}),Object.defineProperty(e,"deriveED25519HardenedKey",{enumerable:!0,get:function(){return p.deriveED25519HardenedKey}}),Object.defineProperty(e,"deriveEd25519Path",{enumerable:!0,get:function(){return p.deriveEd25519Path}});var g=Xf;Object.defineProperty(e,"getSymmetricMasterKeyFromSeed",{enumerable:!0,get:function(){return g.getSymmetricMasterKeyFromSeed}}),Object.defineProperty(e,"deriveSymmetricHardenedKey",{enumerable:!0,get:function(){return g.deriveSymmetricHardenedKey}}),Object.defineProperty(e,"deriveSymmetricPath",{enumerable:!0,get:function(){return g.deriveSymmetricPath}});var m=Zf;Object.defineProperty(e,"deriveMnemonicsPath",{enumerable:!0,get:function(){return m.deriveMnemonicsPath}}),Object.defineProperty(e,"deriveMnemonicHardenedKey",{enumerable:!0,get:function(){return m.deriveMnemonicHardenedKey}}),Object.defineProperty(e,"getMnemonicsMasterKeyFromSeed",{enumerable:!0,get:function(){return m.getMnemonicsMasterKeyFromSeed}})}(iP)),iP}Object.defineProperty(hT,"__esModule",{value:!0});hT.wonderCalculator=void 0;const o5e=iS(),Uu=My,c1=$y,i5e=By,a5e=Ry,s5e=yd,l5e=Bg(),u5e=Dy,c5e=aS;function d5e(e,t,n){let r,o=null;if(e===Uu.CellType.Ordinary){let p=0;for(let g of n)p=p|g.mask.value;r=new c1.LevelMask(p)}else if(e===Uu.CellType.PrunedBranch)o=(0,i5e.exoticPruned)(t,n),r=new c1.LevelMask(o.mask);else if(e===Uu.CellType.MerkleProof)(0,a5e.exoticMerkleProof)(t,n),r=new c1.LevelMask(n[0].mask.value>>1);else if(e===Uu.CellType.MerkleUpdate)(0,u5e.exoticMerkleUpdate)(t,n),r=new c1.LevelMask((n[0].mask.value|n[1].mask.value)>>1);else if(e===Uu.CellType.Library)(0,c5e.exoticLibrary)(t,n),r=new c1.LevelMask;else throw new Error("Unsupported exotic type");let i=[],a=[],s=e===Uu.CellType.PrunedBranch?1:r.hashCount,u=r.hashCount-s;for(let p=0,g=0;p<=r.level;p++){if(!r.isSignificant(p))continue;if(g0&&y++;let v=(0,s5e.getRepr)(m,n,p,e),x=(0,l5e.sha256_sync)(v),w=g-u;i[w]=y,a[w]=x,g++}let c=[],f=[];if(o)for(let p=0;p<4;p++){const{hashIndex:g}=r.apply(p),{hashIndex:m}=r;g!==m?(c.push(o.pruned[g].hash),f.push(o.pruned[g].depth)):(c.push(a[0]),f.push(i[0]))}else for(let p=0;p<4;p++)c.push(a[r.apply(p).hashIndex]),f.push(i[r.apply(p).hashIndex]);return{mask:r,hashes:c,depths:f}}hT.wonderCalculator=d5e;var Yc={},CT={};Object.defineProperty(CT,"__esModule",{value:!0});CT.topologicalSort=void 0;function f5e(e){let t=[e],n=new Map,r=new Set,o=[];for(;t.length>0;){const u=[...t];t=[];for(let c of u){const f=c.hash().toString("hex");if(!n.has(f)){r.add(f),n.set(f,{cell:c,refs:c.refs.map(p=>p.hash().toString("hex"))});for(let p of c.refs)t.push(p)}}}let i=new Set;function a(u){if(r.has(u)){if(i.has(u))throw Error("Not a DAG");i.add(u);for(let c of n.get(u).refs)a(c);o.unshift(u),i.delete(u),r.delete(u)}}for(;r.size>0;){const u=Array.from(r)[0];a(u)}let s=new Map;for(let u=0;us.get(f))})}return l}CT.topologicalSort=f5e;var AT={};Object.defineProperty(AT,"__esModule",{value:!0});AT.bitsForNumber=void 0;function p5e(e,t){let n=BigInt(e);if(t==="int")return n===0n||n===-1n?1:(n>0?n:-n).toString(2).length+1;if(t==="uint"){if(n<0)throw Error(`value is negative. Got ${e}`);return n.toString(2).length}else throw Error(`invalid mode. Got ${t}`)}AT.bitsForNumber=p5e;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});cS.crc32c=void 0;const yf=2197175160;function h5e(e){let t=-1;for(let r=0;r>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1;t=t^4294967295;let n=Buffer.alloc(4);return n.writeInt32LE(t),n}cS.crc32c=h5e;var yW;function g5e(){if(yW)return Yc;yW=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.serializeBoc=Yc.deserializeBoc=Yc.parseBoc=void 0;const e=Tu,t=iS(),n=$g(),r=CT,o=AT,i=uT(),a=yd,s=lT(),l=cS;function u(y,v){const x=y.loadUint(8),w=x%8,I=!!(x&8),_=y.loadUint(8),R=Math.ceil(_/2),U=!!(_%2);let D=t.BitString.EMPTY;R>0&&(U?D=y.loadPaddedBits(R*8):D=y.loadBits(R*8));let b=[];for(let T=0;T=0;_--){if(w[_].result)throw Error("Impossible");let R=[];for(let U of w[_].refs){if(!w[U].result)throw Error("Invalid BOC file");R.push(w[U].result)}w[_].result=new n.Cell({bits:w[_].bits,refs:R,exotic:w[_].exotic})}let I=[];for(let _=0;_{if(this.isExotic&&!_)throw new Error("Exotic cells cannot be parsed");return new i.Slice(new u.BitReader(this.bits),this.refs)},this.hash=(_=3)=>this._hashes[Math.min(this._hashes.length-1,_)],this.depth=(_=3)=>this._depths[Math.min(this._depths.length-1,_)],this.level=()=>this.mask.level,this.equals=_=>this.hash().equals(_.hash()),this[t]=()=>this.toString();let m=r.BitString.EMPTY;g&&g.bits&&(m=g.bits);let y=[];g&&g.refs&&(y=[...g.refs]);let v,x,w,I=o.CellType.Ordinary;if(g&&g.exotic){let _=(0,a.resolveExotic)(m,y),R=(0,s.wonderCalculator)(_.type,m,y);w=R.mask,x=R.depths,v=R.hashes,I=_.type}else{if(y.length>4)throw new Error("Invalid number of references");if(m.length>1023)throw new Error(`Bits overflow: ${m.length} > 1023`);let _=(0,s.wonderCalculator)(o.CellType.Ordinary,m,y);w=_.mask,x=_.depths,v=_.hashes,I=o.CellType.Ordinary}this.type=I,this.bits=m,this.refs=y,this.mask=w,this._depths=x,this._hashes=v,Object.freeze(this),Object.freeze(this.refs),Object.freeze(this.bits),Object.freeze(this.mask),Object.freeze(this._depths),Object.freeze(this._hashes)}get isExotic(){return this.type!==o.CellType.Ordinary}toBoc(g){let m=g&&g.idx!==null&&g.idx!==void 0?g.idx:!1,y=g&&g.crc32!==null&&g.crc32!==void 0?g.crc32:!0;return(0,l.serializeBoc)(this,{idx:m,crc32:y})}toString(g){let m=g||"",y="x";this.isExotic&&(this.type===o.CellType.MerkleProof?y="p":this.type===o.CellType.MerkleUpdate?y="u":this.type===o.CellType.PrunedBranch&&(y="p"));let v=m+(this.isExotic?y:"x")+"{"+this.bits.toString()+"}";for(let x in this.refs){const w=this.refs[x];v+=` -`+w.toString(m+" ")}return v}asSlice(){return this.beginParse()}asBuilder(){return(0,c.beginCell)().storeSlice(this.asSlice())}};return a1.Cell=f,t=n.default,f.EMPTY=new f,a1}var bW;function ya(){if(bW)return rh;bW=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.Builder=rh.beginCell=void 0;const e=uT(),t=$g(),n=yJ();function r(){return new o}rh.beginCell=r;let o=class WJ{constructor(){this._bits=new e.BitBuilder,this._refs=[]}get bits(){return this._bits.length}get refs(){return this._refs.length}get availableBits(){return 1023-this.bits}get availableRefs(){return 4-this.refs}storeBit(a){return this._bits.writeBit(a),this}storeBits(a){return this._bits.writeBits(a),this}storeBuffer(a,s){if(s!=null&&a.length!==s)throw Error(`Buffer length ${a.length} is not equal to ${s}`);return this._bits.writeBuffer(a),this}storeMaybeBuffer(a,s){return a!==null?(this.storeBit(1),this.storeBuffer(a,s)):this.storeBit(0),this}storeUint(a,s){return this._bits.writeUint(a,s),this}storeMaybeUint(a,s){return a!=null?(this.storeBit(1),this.storeUint(a,s)):this.storeBit(0),this}storeInt(a,s){return this._bits.writeInt(a,s),this}storeMaybeInt(a,s){return a!=null?(this.storeBit(1),this.storeInt(a,s)):this.storeBit(0),this}storeVarUint(a,s){return this._bits.writeVarUint(a,s),this}storeMaybeVarUint(a,s){return a!=null?(this.storeBit(1),this.storeVarUint(a,s)):this.storeBit(0),this}storeVarInt(a,s){return this._bits.writeVarInt(a,s),this}storeMaybeVarInt(a,s){return a!=null?(this.storeBit(1),this.storeVarInt(a,s)):this.storeBit(0),this}storeCoins(a){return this._bits.writeCoins(a),this}storeMaybeCoins(a){return a!=null?(this.storeBit(1),this.storeCoins(a)):this.storeBit(0),this}storeAddress(a){return this._bits.writeAddress(a),this}storeRef(a){if(this._refs.length>=4)throw new Error("Too many references");if(a instanceof t.Cell)this._refs.push(a);else if(a instanceof WJ)this._refs.push(a.endCell());else throw new Error("Invalid argument");return this}storeMaybeRef(a){return a?(this.storeBit(1),this.storeRef(a)):this.storeBit(0),this}storeSlice(a){let s=a.clone();for(s.remainingBits>0&&this.storeBits(s.loadBits(s.remainingBits));s.remainingRefs>0;)this.storeRef(s.loadRef());return this}storeMaybeSlice(a){return a?(this.storeBit(1),this.storeSlice(a)):this.storeBit(0),this}storeBuilder(a){return this.storeSlice(a.endCell().beginParse())}storeMaybeBuilder(a){return a?(this.storeBit(1),this.storeBuilder(a)):this.storeBit(0),this}storeWritable(a){return typeof a=="object"?a.writeTo(this):a(this),this}storeMaybeWritable(a){return a?(this.storeBit(1),this.storeWritable(a)):this.storeBit(0),this}store(a){return this.storeWritable(a),this}storeStringTail(a){return(0,n.writeString)(a,this),this}storeMaybeStringTail(a){return a!=null?(this.storeBit(1),(0,n.writeString)(a,this)):this.storeBit(0),this}storeStringRefTail(a){return this.storeRef(r().storeStringTail(a)),this}storeMaybeStringRefTail(a){return a!=null?(this.storeBit(1),this.storeStringRefTail(a)):this.storeBit(0),this}storeDict(a,s,l){return a?a.store(this,s,l):this.storeBit(0),this}storeDictDirect(a,s,l){return a.storeDirect(this,s,l),this}endCell(){return new t.Cell({bits:this._bits.build(),refs:this._refs})}asCell(){return this.endCell()}asSlice(){return this.endCell().beginParse()}};return rh.Builder=o,rh}var vc={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.SimpleLibraryValue=vd.storeSimpleLibrary=vd.loadSimpleLibrary=void 0;function zJ(e){return{public:e.loadBit(),root:e.loadRef()}}vd.loadSimpleLibrary=zJ;function VJ(e){return t=>{t.storeBit(e.public),t.storeRef(e.root)}}vd.storeSimpleLibrary=VJ;vd.SimpleLibraryValue={serialize(e,t){VJ(e)(t)},parse(e){return zJ(e)}};var Zh={};Object.defineProperty(Zh,"__esModule",{value:!0});Zh.storeTickTock=Zh.loadTickTock=void 0;function m5e(e){return{tick:e.loadBit(),tock:e.loadBit()}}Zh.loadTickTock=m5e;function y5e(e){return t=>{t.storeBit(e.tick),t.storeBit(e.tock)}}Zh.storeTickTock=y5e;Object.defineProperty(vc,"__esModule",{value:!0});vc.storeStateInit=vc.loadStateInit=void 0;const v5e=Dg(),b5e=vd,HJ=Zh;function w5e(e){let t;e.loadBit()&&(t=e.loadUint(5));let n;e.loadBit()&&(n=(0,HJ.loadTickTock)(e));let r=e.loadMaybeRef(),o=e.loadMaybeRef(),i=e.loadDict(v5e.Dictionary.Keys.BigUint(256),b5e.SimpleLibraryValue);return i.size===0&&(i=void 0),{splitDepth:t,special:n,code:r,data:o,libraries:i}}vc.loadStateInit=w5e;function S5e(e){return t=>{e.splitDepth!==null&&e.splitDepth!==void 0?(t.storeBit(!0),t.storeUint(e.splitDepth,5)):t.storeBit(!1),e.special!==null&&e.special!==void 0?(t.storeBit(!0),t.store((0,HJ.storeTickTock)(e.special))):t.storeBit(!1),t.storeMaybeRef(e.code),t.storeMaybeRef(e.data),t.storeDict(e.libraries)}}vc.storeStateInit=S5e;Object.defineProperty(sT,"__esModule",{value:!0});sT.contractAddress=void 0;const x5e=ya(),C5e=vc,A5e=Ws;function _5e(e,t){let n=(0,x5e.beginCell)().store((0,C5e.storeStateInit)(t)).endCell().hash();return new A5e.Address(e,n)}sT.contractAddress=_5e;var G0={};Object.defineProperty(G0,"__esModule",{value:!0});G0.parseTuple=G0.serializeTuple=void 0;const sw=ya(),E5e=BigInt("-9223372036854775808"),T5e=BigInt("9223372036854775807");function qJ(e,t){if(e.type==="null")t.storeUint(0,8);else if(e.type==="int")e.value<=T5e&&e.value>=E5e?(t.storeUint(1,8),t.storeInt(e.value,64)):(t.storeUint(256,15),t.storeInt(e.value,257));else if(e.type==="nan")t.storeInt(767,16);else if(e.type==="cell")t.storeUint(3,8),t.storeRef(e.cell);else if(e.type==="slice")t.storeUint(4,8),t.storeUint(0,10),t.storeUint(e.cell.bits.length,10),t.storeUint(0,3),t.storeUint(e.cell.refs.length,3),t.storeRef(e.cell);else if(e.type==="builder")t.storeUint(5,8),t.storeRef(e.cell);else if(e.type==="tuple"){let n=null,r=null;for(let o=0;o1&&(n=(0,sw.beginCell)().storeRef(r).storeRef(n).endCell());let a=(0,sw.beginCell)();qJ(e.items[o],a),r=a.endCell()}t.storeUint(7,8),t.storeUint(e.items.length,16),n&&t.storeRef(n),r&&t.storeRef(r)}else throw Error("Invalid value")}function J1(e){let t=e.loadUint(8);if(t===0)return{type:"null"};if(t===1)return{type:"int",value:e.loadIntBig(64)};if(t===2)return e.loadUint(7)===0?{type:"int",value:e.loadIntBig(257)}:(e.loadBit(),{type:"nan"});if(t===3)return{type:"cell",cell:e.loadRef()};if(t===4){let n=e.loadUint(10),r=e.loadUint(10),o=e.loadUint(3),i=e.loadUint(3),a=e.loadRef().beginParse();a.skip(n);let s=a.loadBits(r-n),l=(0,sw.beginCell)().storeBits(s);if(o1){let o=e.loadRef().beginParse(),i=e.loadRef().beginParse();r.unshift(J1(i));for(let a=0;a0){let n=(0,sw.beginCell)();QJ(e.slice(0,e.length-1),n),t.storeRef(n.endCell()),qJ(e[e.length-1],t)}}function k5e(e){let t=(0,sw.beginCell)();t.storeUint(e.length,24);let n=[...e];return QJ(n,t),t.endCell()}G0.serializeTuple=k5e;function I5e(e){let t=[],n=e.beginParse(),r=n.loadUint(24);for(let o=0;o2)throw Error("Invalid number");let r=n[0],o=n[1];if(r||(r="0"),o||(o="0"),o.length>9)throw Error("Invalid number");for(;o.length<9;)o+="0";let i=BigInt(r)*1000000000n+BigInt(o);return t&&(i=-i),i}}eg.toNano=M5e;function O5e(e){let t=BigInt(e),n=!1;t<0&&(n=!0,t=-t);let o=(t%1000000000n).toString();for(;o.length<9;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=`${(t/1000000000n).toString()}${o==="0"?"":`.${o}`}`;return n&&(s="-"+s),s}eg.fromNano=O5e;Object.defineProperty(ep,"__esModule",{value:!0});ep.comment=ep.external=ep.internal=void 0;const FA=Ws,YJ=$g(),GJ=ya(),R5e=eg;function D5e(e){let t=!0;e.bounce!==null&&e.bounce!==void 0&&(t=e.bounce);let n;if(typeof e.to=="string")n=FA.Address.parse(e.to);else if(FA.Address.isAddress(e.to))n=e.to;else throw new Error(`Invalid address ${e.to}`);let r;typeof e.value=="string"?r=(0,R5e.toNano)(e.value):r=e.value;let o=YJ.Cell.EMPTY;return typeof e.body=="string"?o=(0,GJ.beginCell)().storeUint(0,32).storeStringTail(e.body).endCell():e.body&&(o=e.body),{info:{type:"internal",dest:n,value:{coins:r},bounce:t,ihrDisabled:!0,bounced:!1,ihrFee:0n,forwardFee:0n,createdAt:0,createdLt:0n},init:e.init?{code:e.init.code,data:e.init.data}:void 0,body:o}}ep.internal=D5e;function B5e(e){let t;if(typeof e.to=="string")t=FA.Address.parse(e.to);else if(FA.Address.isAddress(e.to))t=e.to;else throw new Error(`Invalid address ${e.to}`);return{info:{type:"external-in",dest:t,importFee:0n},init:e.init?{code:e.init.code,data:e.init.data}:void 0,body:e.body||YJ.Cell.EMPTY}}ep.external=B5e;function $5e(e){return(0,GJ.beginCell)().storeUint(0,32).storeStringTail(e).endCell()}ep.comment=$5e;var tg={},ng={},rg={};Object.defineProperty(rg,"__esModule",{value:!0});rg.storeAccountState=rg.loadAccountState=void 0;const JJ=vc;function L5e(e){return e.loadBit()?{type:"active",state:(0,JJ.loadStateInit)(e)}:e.loadBit()?{type:"frozen",stateHash:e.loadUintBig(256)}:{type:"uninit"}}rg.loadAccountState=L5e;function F5e(e){return t=>{e.type==="active"?(t.storeBit(!0),t.store((0,JJ.storeStateInit)(e.state))):e.type==="frozen"?(t.storeBit(!1),t.storeBit(!0),t.storeUint(e.stateHash,256)):e.type==="uninit"&&(t.storeBit(!1),t.storeBit(!1))}}rg.storeAccountState=F5e;var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.storeCurrencyCollection=zs.loadCurrencyCollection=void 0;const wW=Dg();function N5e(e){const t=e.loadCoins(),n=e.loadDict(wW.Dictionary.Keys.Uint(32),wW.Dictionary.Values.BigVarUint(5));return n.size===0?{coins:t}:{other:n,coins:t}}zs.loadCurrencyCollection=N5e;function U5e(e){return t=>{t.storeCoins(e.coins),e.other?t.storeDict(e.other):t.storeBit(0)}}zs.storeCurrencyCollection=U5e;Object.defineProperty(ng,"__esModule",{value:!0});ng.storeAccountStorage=ng.loadAccountStorage=void 0;const XJ=rg,ZJ=zs;function j5e(e){return{lastTransLt:e.loadUintBig(64),balance:(0,ZJ.loadCurrencyCollection)(e),state:(0,XJ.loadAccountState)(e)}}ng.loadAccountStorage=j5e;function W5e(e){return t=>{t.storeUint(e.lastTransLt,64),t.store((0,ZJ.storeCurrencyCollection)(e.balance)),t.store((0,XJ.storeAccountState)(e.state))}}ng.storeAccountStorage=W5e;var og={},ig={};Object.defineProperty(ig,"__esModule",{value:!0});ig.storeStorageUsed=ig.loadStorageUsed=void 0;function z5e(e){return{cells:e.loadVarUintBig(3),bits:e.loadVarUintBig(3),publicCells:e.loadVarUintBig(3)}}ig.loadStorageUsed=z5e;function V5e(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3),t.storeVarUint(e.publicCells,3)}}ig.storeStorageUsed=V5e;Object.defineProperty(og,"__esModule",{value:!0});og.storeStorageInfo=og.loadStorageInfo=void 0;const eX=ig;function H5e(e){return{used:(0,eX.loadStorageUsed)(e),lastPaid:e.loadUint(32),duePayment:e.loadMaybeCoins()}}og.loadStorageInfo=H5e;function q5e(e){return t=>{t.store((0,eX.storeStorageUsed)(e.used)),t.storeUint(e.lastPaid,32),t.storeMaybeCoins(e.duePayment)}}og.storeStorageInfo=q5e;Object.defineProperty(tg,"__esModule",{value:!0});tg.storeAccount=tg.loadAccount=void 0;const tX=ng,nX=og;function Q5e(e){return{addr:e.loadAddress(),storageStats:(0,nX.loadStorageInfo)(e),storage:(0,tX.loadAccountStorage)(e)}}tg.loadAccount=Q5e;function K5e(e){return t=>{t.storeAddress(e.addr),t.store((0,nX.storeStorageInfo)(e.storageStats)),t.store((0,tX.storeAccountStorage)(e.storage))}}tg.storeAccount=K5e;var ag={};Object.defineProperty(ag,"__esModule",{value:!0});ag.storeAccountStatus=ag.loadAccountStatus=void 0;function Y5e(e){const t=e.loadUint(2);if(t===0)return"uninitialized";if(t===1)return"frozen";if(t===2)return"active";if(t===3)return"non-existing";throw Error("Invalid data")}ag.loadAccountStatus=Y5e;function G5e(e){return t=>{if(e==="uninitialized")t.storeUint(0,2);else if(e==="frozen")t.storeUint(1,2);else if(e==="active")t.storeUint(2,2);else if(e==="non-existing")t.storeUint(3,2);else throw Error("Invalid data");return t}}ag.storeAccountStatus=G5e;var dp={};Object.defineProperty(dp,"__esModule",{value:!0});dp.storeAccountStatusChange=dp.loadAccountStatusChange=void 0;function J5e(e){return e.loadBit()?e.loadBit()?"frozen":"deleted":"unchanged"}dp.loadAccountStatusChange=J5e;function X5e(e){return t=>{if(e=="unchanged")t.storeBit(0);else if(e==="frozen")t.storeBit(1),t.storeBit(0);else if(e==="deleted")t.storeBit(1),t.storeBit(1);else throw Error("Invalid account status change")}}dp.storeAccountStatusChange=X5e;var sg={};Object.defineProperty(sg,"__esModule",{value:!0});sg.storeCommonMessageInfo=sg.loadCommonMessageInfo=void 0;const rX=zs;function Z5e(e){if(!e.loadBit()){const i=e.loadBit(),a=e.loadBit(),s=e.loadBit(),l=e.loadAddress(),u=e.loadAddress(),c=(0,rX.loadCurrencyCollection)(e),f=e.loadCoins(),p=e.loadCoins(),g=e.loadUintBig(64),m=e.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:a,bounced:s,src:l,dest:u,value:c,ihrFee:f,forwardFee:p,createdLt:g,createdAt:m}}if(!e.loadBit()){const i=e.loadMaybeExternalAddress(),a=e.loadAddress(),s=e.loadCoins();return{type:"external-in",src:i,dest:a,importFee:s}}const t=e.loadAddress(),n=e.loadMaybeExternalAddress(),r=e.loadUintBig(64),o=e.loadUint(32);return{type:"external-out",src:t,dest:n,createdLt:r,createdAt:o}}sg.loadCommonMessageInfo=Z5e;function e6e(e){return t=>{if(e.type==="internal")t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,rX.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else if(e.type==="external-in")t.storeBit(1),t.storeBit(0),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeCoins(e.importFee);else if(e.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}sg.storeCommonMessageInfo=e6e;var lg={};Object.defineProperty(lg,"__esModule",{value:!0});lg.storeCommonMessageInfoRelaxed=lg.loadCommonMessageInfoRelaxed=void 0;const oX=zs;function t6e(e){if(!e.loadBit()){const i=e.loadBit(),a=e.loadBit(),s=e.loadBit(),l=e.loadMaybeAddress(),u=e.loadAddress(),c=(0,oX.loadCurrencyCollection)(e),f=e.loadCoins(),p=e.loadCoins(),g=e.loadUintBig(64),m=e.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:a,bounced:s,src:l,dest:u,value:c,ihrFee:f,forwardFee:p,createdLt:g,createdAt:m}}if(!e.loadBit())throw Error("External In message is not possible for CommonMessageInfoRelaxed");const t=e.loadMaybeAddress(),n=e.loadMaybeExternalAddress(),r=e.loadUintBig(64),o=e.loadUint(32);return{type:"external-out",src:t,dest:n,createdLt:r,createdAt:o}}lg.loadCommonMessageInfoRelaxed=t6e;function n6e(e){return t=>{if(e.type==="internal")t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,oX.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else if(e.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}lg.storeCommonMessageInfoRelaxed=n6e;var ug={};Object.defineProperty(ug,"__esModule",{value:!0});ug.storeComputeSkipReason=ug.loadComputeSkipReason=void 0;function r6e(e){let t=e.loadUint(2);if(t===0)return"no-state";if(t===1)return"bad-state";if(t===2)return"no-gas";throw new Error(`Unknown ComputeSkipReason: ${t}`)}ug.loadComputeSkipReason=r6e;function o6e(e){return t=>{if(e==="no-state")t.storeUint(0,2);else if(e==="bad-state")t.storeUint(1,2);else if(e==="no-gas")t.storeUint(2,2);else throw new Error(`Unknown ComputeSkipReason: ${e}`)}}ug.storeComputeSkipReason=o6e;var cg={};Object.defineProperty(cg,"__esModule",{value:!0});cg.storeDepthBalanceInfo=cg.loadDepthBalanceInfo=void 0;const iX=zs;function i6e(e){return{splitDepth:e.loadUint(5),balance:(0,iX.loadCurrencyCollection)(e)}}cg.loadDepthBalanceInfo=i6e;function a6e(e){return t=>{t.storeUint(e.splitDepth,5),t.store((0,iX.storeCurrencyCollection)(e.balance))}}cg.storeDepthBalanceInfo=a6e;var dg={};Object.defineProperty(dg,"__esModule",{value:!0});dg.storeHashUpdate=dg.loadHashUpdate=void 0;function s6e(e){if(e.loadUint(8)!==114)throw Error("Invalid data");const t=e.loadBuffer(32),n=e.loadBuffer(32);return{oldHash:t,newHash:n}}dg.loadHashUpdate=s6e;function l6e(e){return t=>{t.storeUint(114,8),t.storeBuffer(e.oldHash),t.storeBuffer(e.newHash)}}dg.storeHashUpdate=l6e;var dS={};Object.defineProperty(dS,"__esModule",{value:!0});dS.loadMasterchainStateExtra=void 0;const uP=Dg(),u6e=zs;function c6e(e){if(e.loadUint(16)!==52262)throw Error("Invalid data");e.loadBit()&&e.loadRef();let t=e.loadUintBig(256),n=uP.Dictionary.load(uP.Dictionary.Keys.Int(32),uP.Dictionary.Values.Cell(),e);const r=(0,u6e.loadCurrencyCollection)(e);return{config:n,configAddress:t,globalBalance:r}}dS.loadMasterchainStateExtra=c6e;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.MessageValue=bd.storeMessage=bd.loadMessage=void 0;const aX=ya(),sX=sg,tR=vc;function lX(e){const t=(0,sX.loadCommonMessageInfo)(e);let n=null;e.loadBit()&&(e.loadBit()?n=(0,tR.loadStateInit)(e.loadRef().beginParse()):n=(0,tR.loadStateInit)(e));const r=e.loadBit()?e.loadRef():e.asCell();return{info:t,init:n,body:r}}bd.loadMessage=lX;function uX(e,t){return n=>{if(n.store((0,sX.storeCommonMessageInfo)(e.info)),e.init){n.storeBit(!0);let o=(0,aX.beginCell)().store((0,tR.storeStateInit)(e.init)),i=!1;t&&t.forceRef?i=!0:n.availableBits-2>=o.bits?i=!1:i=!0,i?(n.storeBit(!0),n.storeRef(o)):(n.storeBit(!1),n.storeBuilder(o))}else n.storeBit(!1);let r=!1;t&&t.forceRef?r=!0:n.availableBits-1>=e.body.bits.length&&n.refs+e.body.refs.length<=4?r=!1:r=!0,r?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}bd.storeMessage=uX;bd.MessageValue={serialize(e,t){t.storeRef((0,aX.beginCell)().store(uX(e)))},parse(e){return lX(e.loadRef().beginParse())}};var J0={};Object.defineProperty(J0,"__esModule",{value:!0});J0.storeMessageRelaxed=J0.loadMessageRelaxed=void 0;const d6e=ya(),cX=lg,nR=vc;function f6e(e){const t=(0,cX.loadCommonMessageInfoRelaxed)(e);let n=null;e.loadBit()&&(e.loadBit()?n=(0,nR.loadStateInit)(e.loadRef().beginParse()):n=(0,nR.loadStateInit)(e));const r=e.loadBit()?e.loadRef():e.asCell();return{info:t,init:n,body:r}}J0.loadMessageRelaxed=f6e;function p6e(e,t){return n=>{if(n.store((0,cX.storeCommonMessageInfoRelaxed)(e.info)),e.init){n.storeBit(!0);let o=(0,d6e.beginCell)().store((0,nR.storeStateInit)(e.init)),i=!1;t&&t.forceRef?i=!0:n.availableBits-2>=o.bits?i=!1:i=!0,i?(n.storeBit(!0),n.storeRef(o)):(n.storeBit(!1),n.storeBuilder(o))}else n.storeBit(!1);let r=!1;t&&t.forceRef?r=!0:n.availableBits-1>=e.body.bits.length&&n.refs+e.body.refs.length<=4?r=!1:r=!0,r?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}J0.storeMessageRelaxed=p6e;var dX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SendMode=void 0,function(t){t[t.CARRY_ALL_REMAINING_BALANCE=128]="CARRY_ALL_REMAINING_BALANCE",t[t.CARRY_ALL_REMAINING_INCOMING_VALUE=64]="CARRY_ALL_REMAINING_INCOMING_VALUE",t[t.DESTROY_ACCOUNT_IF_ZERO=32]="DESTROY_ACCOUNT_IF_ZERO",t[t.PAY_GAS_SEPARATELY=1]="PAY_GAS_SEPARATELY",t[t.IGNORE_ERRORS=2]="IGNORE_ERRORS",t[t.NONE=0]="NONE"}(e.SendMode||(e.SendMode={}))})(dX);var fg={};Object.defineProperty(fg,"__esModule",{value:!0});fg.storeShardAccount=fg.loadShardAccount=void 0;const SW=ya(),fX=tg;function h6e(e){let t=e.loadRef(),n;if(!t.isExotic){let r=t.beginParse();r.loadBit()&&(n=(0,fX.loadAccount)(r))}return{account:n,lastTransactionHash:e.loadUintBig(256),lastTransactionLt:e.loadUintBig(64)}}fg.loadShardAccount=h6e;function g6e(e){return t=>{e.account?t.storeRef((0,SW.beginCell)().storeBit(!0).store((0,fX.storeAccount)(e.account))):t.storeRef((0,SW.beginCell)().storeBit(!1)),t.storeUint(e.lastTransactionHash,256),t.storeUint(e.lastTransactionLt,64)}}fg.storeShardAccount=g6e;var WD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.storeShardAccounts=e.loadShardAccounts=e.ShardAccountRefValue=void 0;const t=Dg(),n=cg,r=fg;e.ShardAccountRefValue={parse:a=>{let s=(0,n.loadDepthBalanceInfo)(a),l=(0,r.loadShardAccount)(a);return{depthBalanceInfo:s,shardAccount:l}},serialize(a,s){s.store((0,n.storeDepthBalanceInfo)(a.depthBalanceInfo)),s.store((0,r.storeShardAccount)(a.shardAccount))}};function o(a){return t.Dictionary.load(t.Dictionary.Keys.BigUint(256),e.ShardAccountRefValue,a)}e.loadShardAccounts=o;function i(a){return s=>{s.storeDict(a)}}e.storeShardAccounts=i})(WD);var pg={};Object.defineProperty(pg,"__esModule",{value:!0});pg.storeShardIdent=pg.loadShardIdent=void 0;function m6e(e){if(e.loadUint(2)!==0)throw Error("Invalid data");return{shardPrefixBits:e.loadUint(6),workchainId:e.loadInt(32),shardPrefix:e.loadUintBig(64)}}pg.loadShardIdent=m6e;function y6e(e){return t=>{t.storeUint(0,2),t.storeUint(e.shardPrefixBits,6),t.storeInt(e.workchainId,32),t.storeUint(e.shardPrefix,64)}}pg.storeShardIdent=y6e;var TT={};Object.defineProperty(TT,"__esModule",{value:!0});TT.loadShardStateUnsplit=void 0;const v6e=dS,b6e=WD,w6e=pg;function S6e(e){if(e.loadUint(32)!==2418257890)throw Error("Invalid data");let t=e.loadInt(32),n=(0,w6e.loadShardIdent)(e),r=e.loadUint(32),o=e.loadUint(32),i=e.loadUint(32),a=e.loadUintBig(64),s=e.loadUint(32);e.loadRef();let l=e.loadBit(),u=e.loadRef(),c;u.isExotic||(c=(0,b6e.loadShardAccounts)(u.beginParse())),e.loadRef();let f=e.loadBit(),p=null;if(f){let g=e.loadRef();g.isExotic||(p=(0,v6e.loadMasterchainStateExtra)(g.beginParse()))}return{globalId:t,shardId:n,seqno:r,vertSeqNo:o,genUtime:i,genLt:a,minRefMcSeqno:s,beforeSplit:l,accounts:c,extras:p}}TT.loadShardStateUnsplit=S6e;var hg={};Object.defineProperty(hg,"__esModule",{value:!0});hg.storeSplitMergeInfo=hg.loadSplitMergeInfo=void 0;function x6e(e){let t=e.loadUint(6),n=e.loadUint(6),r=e.loadUintBig(256),o=e.loadUintBig(256);return{currentShardPrefixLength:t,accountSplitDepth:n,thisAddress:r,siblingAddress:o}}hg.loadSplitMergeInfo=x6e;function C6e(e){return t=>{t.storeUint(e.currentShardPrefixLength,6),t.storeUint(e.accountSplitDepth,6),t.storeUint(e.thisAddress,256),t.storeUint(e.siblingAddress,256)}}hg.storeSplitMergeInfo=C6e;var fp={};Object.defineProperty(fp,"__esModule",{value:!0});fp.storeStorageUsedShort=fp.loadStorageUsedShort=void 0;function A6e(e){let t=e.loadVarUintBig(3),n=e.loadVarUintBig(3);return{cells:t,bits:n}}fp.loadStorageUsedShort=A6e;function _6e(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3)}}fp.storeStorageUsedShort=_6e;var oh={},ih={},gg={};Object.defineProperty(gg,"__esModule",{value:!0});gg.storeTransactionActionPhase=gg.loadTransactionActionPhase=void 0;const pX=dp,hX=fp;function E6e(e){let t=e.loadBit(),n=e.loadBit(),r=e.loadBit(),o=(0,pX.loadAccountStatusChange)(e),i=e.loadBit()?e.loadCoins():void 0,a=e.loadBit()?e.loadCoins():void 0,s=e.loadInt(32),l=e.loadBit()?e.loadInt(32):void 0,u=e.loadUint(16),c=e.loadUint(16),f=e.loadUint(16),p=e.loadUint(16),g=e.loadUintBig(256),m=(0,hX.loadStorageUsedShort)(e);return{success:t,valid:n,noFunds:r,statusChange:o,totalFwdFees:i,totalActionFees:a,resultCode:s,resultArg:l,totalActions:u,specActions:c,skippedActions:f,messagesCreated:p,actionListHash:g,totalMessageSize:m}}gg.loadTransactionActionPhase=E6e;function T6e(e){return t=>{t.storeBit(e.success),t.storeBit(e.valid),t.storeBit(e.noFunds),t.store((0,pX.storeAccountStatusChange)(e.statusChange)),t.storeMaybeCoins(e.totalFwdFees),t.storeMaybeCoins(e.totalActionFees),t.storeInt(e.resultCode,32),t.storeMaybeInt(e.resultArg,32),t.storeUint(e.totalActions,16),t.storeUint(e.specActions,16),t.storeUint(e.skippedActions,16),t.storeUint(e.messagesCreated,16),t.storeUint(e.actionListHash,256),t.store((0,hX.storeStorageUsedShort)(e.totalMessageSize))}}gg.storeTransactionActionPhase=T6e;var mg={};Object.defineProperty(mg,"__esModule",{value:!0});mg.storeTransactionBouncePhase=mg.loadTransactionBouncePhase=void 0;const NA=fp;function k6e(e){if(e.loadBit()){let t=(0,NA.loadStorageUsedShort)(e),n=e.loadCoins(),r=e.loadCoins();return{type:"ok",messageSize:t,messageFees:n,forwardFees:r}}if(e.loadBit()){let t=(0,NA.loadStorageUsedShort)(e),n=e.loadCoins();return{type:"no-funds",messageSize:t,requiredForwardFees:n}}return{type:"negative-funds"}}mg.loadTransactionBouncePhase=k6e;function I6e(e){return t=>{if(e.type==="ok")t.storeBit(!0),t.store((0,NA.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.messageFees),t.storeCoins(e.forwardFees);else if(e.type==="negative-funds")t.storeBit(!1),t.storeBit(!1);else if(e.type==="no-funds")t.storeBit(!1),t.storeBit(!0),t.store((0,NA.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.requiredForwardFees);else throw new Error("Invalid TransactionBouncePhase type")}}mg.storeTransactionBouncePhase=I6e;var yg={};Object.defineProperty(yg,"__esModule",{value:!0});yg.storeTransactionComputePhase=yg.loadTransactionComputePhase=void 0;const P6e=ya(),gX=ug;function M6e(e){if(!e.loadBit())return{type:"skipped",reason:(0,gX.loadComputeSkipReason)(e)};let t=e.loadBit(),n=e.loadBit(),r=e.loadBit(),o=e.loadCoins();const i=e.loadRef().beginParse();let a=i.loadVarUintBig(3),s=i.loadVarUintBig(3),l=i.loadBit()?i.loadVarUintBig(2):void 0,u=i.loadUint(8),c=i.loadUint(32),f=i.loadBit()?i.loadInt(32):void 0,p=i.loadUint(32),g=i.loadUintBig(256),m=i.loadUintBig(256);return{type:"vm",success:t,messageStateUsed:n,accountActivated:r,gasFees:o,gasUsed:a,gasLimit:s,gasCredit:l,mode:u,exitCode:c,exitArg:f,vmSteps:p,vmInitStateHash:g,vmFinalStateHash:m}}yg.loadTransactionComputePhase=M6e;function O6e(e){return t=>{if(e.type==="skipped"){t.storeBit(0),t.store((0,gX.storeComputeSkipReason)(e.reason));return}t.storeBit(1),t.storeBit(e.success),t.storeBit(e.messageStateUsed),t.storeBit(e.accountActivated),t.storeCoins(e.gasFees),t.storeRef((0,P6e.beginCell)().storeVarUint(e.gasUsed,3).storeVarUint(e.gasLimit,3).store(n=>e.gasCredit!==void 0&&e.gasCredit!==null?n.storeBit(1).storeVarUint(e.gasCredit,2):n.storeBit(0)).storeUint(e.mode,8).storeUint(e.exitCode,32).store(n=>e.exitArg!==void 0&&e.exitArg!==null?n.storeBit(1).storeInt(e.exitArg,32):n.storeBit(0)).storeUint(e.vmSteps,32).storeUint(e.vmInitStateHash,256).storeUint(e.vmFinalStateHash,256).endCell())}}yg.storeTransactionComputePhase=O6e;var vg={};Object.defineProperty(vg,"__esModule",{value:!0});vg.storeTransactionCreditPhase=vg.loadTransactionCreditPhase=void 0;const mX=zs;function R6e(e){const t=e.loadBit()?e.loadCoins():void 0,n=(0,mX.loadCurrencyCollection)(e);return{dueFeesColelcted:t,credit:n}}vg.loadTransactionCreditPhase=R6e;function D6e(e){return t=>{e.dueFeesColelcted===null||e.dueFeesColelcted===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.dueFeesColelcted)),t.store((0,mX.storeCurrencyCollection)(e.credit))}}vg.storeTransactionCreditPhase=D6e;var bg={};Object.defineProperty(bg,"__esModule",{value:!0});bg.storeTransactionsStoragePhase=bg.loadTransactionStoragePhase=void 0;const yX=dp;function B6e(e){const t=e.loadCoins();let n;e.loadBit()&&(n=e.loadCoins());const r=(0,yX.loadAccountStatusChange)(e);return{storageFeesCollected:t,storageFeesDue:n,statusChange:r}}bg.loadTransactionStoragePhase=B6e;function $6e(e){return t=>{t.storeCoins(e.storageFeesCollected),e.storageFeesDue===null||e.storageFeesDue===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.storageFeesDue)),t.store((0,yX.storeAccountStatusChange)(e.statusChange))}}bg.storeTransactionsStoragePhase=$6e;var xW;function vX(){if(xW)return ih;xW=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.storeTransactionDescription=ih.loadTransactionDescription=void 0;const e=ya(),t=hg,n=bX(),r=gg,o=mg,i=yg,a=vg,s=bg;function l(c){let f=c.loadUint(4);if(f===0){const p=c.loadBit();let g;c.loadBit()&&(g=(0,s.loadTransactionStoragePhase)(c));let m;c.loadBit()&&(m=(0,a.loadTransactionCreditPhase)(c));let y=(0,i.loadTransactionComputePhase)(c),v;c.loadBit()&&(v=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));let x=c.loadBit(),w;c.loadBit()&&(w=(0,o.loadTransactionBouncePhase)(c));const I=c.loadBit();return{type:"generic",creditFirst:p,storagePhase:g,creditPhase:m,computePhase:y,actionPhase:v,bouncePhase:w,aborted:x,destroyed:I}}if(f===1)return{type:"storage",storagePhase:(0,s.loadTransactionStoragePhase)(c)};if(f===2||f===3){const p=f===3;let g=(0,s.loadTransactionStoragePhase)(c),m=(0,i.loadTransactionComputePhase)(c),y;c.loadBit()&&(y=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));const v=c.loadBit(),x=c.loadBit();return{type:"tick-tock",isTock:p,storagePhase:g,computePhase:m,actionPhase:y,aborted:v,destroyed:x}}if(f===4){let p=(0,t.loadSplitMergeInfo)(c),g;c.loadBit()&&(g=(0,s.loadTransactionStoragePhase)(c));let m=(0,i.loadTransactionComputePhase)(c),y;c.loadBit()&&(y=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));const v=c.loadBit(),x=c.loadBit();return{type:"split-prepare",splitInfo:p,storagePhase:g,computePhase:m,actionPhase:y,aborted:v,destroyed:x}}if(f===5){let p=(0,t.loadSplitMergeInfo)(c),g=(0,n.loadTransaction)(c.loadRef().beginParse());const m=c.loadBit();return{type:"split-install",splitInfo:p,prepareTransaction:g,installed:m}}throw Error(`Unsupported transaction description type ${f}`)}ih.loadTransactionDescription=l;function u(c){return f=>{if(c.type==="generic")f.storeUint(0,4),f.storeBit(c.creditFirst),c.storagePhase?(f.storeBit(!0),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase))):f.storeBit(!1),c.creditPhase?(f.storeBit(!0),f.store((0,a.storeTransactionCreditPhase)(c.creditPhase))):f.storeBit(!1),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,r.storeTransactionActionPhase)(c.actionPhase)))):f.storeBit(!1),f.storeBit(c.aborted),c.bouncePhase?(f.storeBit(!0),f.store((0,o.storeTransactionBouncePhase)(c.bouncePhase))):f.storeBit(!1),f.storeBit(c.destroyed);else if(c.type==="storage")f.storeUint(1,4),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase));else if(c.type==="tick-tock")f.storeUint(c.isTock?3:2,4),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase)),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,r.storeTransactionActionPhase)(c.actionPhase)))):f.storeBit(!1),f.storeBit(c.aborted),f.storeBit(c.destroyed);else if(c.type==="split-prepare")f.storeUint(4,4),f.store((0,t.storeSplitMergeInfo)(c.splitInfo)),c.storagePhase?(f.storeBit(!0),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase))):f.storeBit(!1),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.store((0,r.storeTransactionActionPhase)(c.actionPhase))):f.storeBit(!1),f.storeBit(c.aborted),f.storeBit(c.destroyed);else if(c.type==="split-install")f.storeUint(5,4),f.store((0,t.storeSplitMergeInfo)(c.splitInfo)),f.storeRef((0,e.beginCell)().store((0,n.storeTransaction)(c.prepareTransaction))),f.storeBit(c.installed);else throw Error(`Unsupported transaction description type ${c.type}`)}}return ih.storeTransactionDescription=u,ih}var CW;function bX(){if(CW)return oh;CW=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.storeTransaction=oh.loadTransaction=void 0;const e=ya(),t=Dg(),n=ag,r=zs,o=dg,i=bd,a=vX();function s(u){if(u.loadUint(4)!==7)throw Error("Invalid data");let c=u.loadUintBig(256),f=u.loadUintBig(64),p=u.loadUintBig(256),g=u.loadUintBig(64),m=u.loadUint(32),y=u.loadUint(15),v=(0,n.loadAccountStatus)(u),x=(0,n.loadAccountStatus)(u),I=u.loadRef().beginParse(),_=I.loadBit()?(0,i.loadMessage)(I.loadRef().beginParse()):void 0,R=I.loadDict(t.Dictionary.Keys.Uint(15),i.MessageValue);I.endParse();let U=(0,r.loadCurrencyCollection)(u),D=(0,o.loadHashUpdate)(u.loadRef().beginParse()),b=(0,a.loadTransactionDescription)(u.loadRef().beginParse());return{address:c,lt:f,prevTransactionHash:p,prevTransactionLt:g,now:m,outMessagesCount:y,oldStatus:v,endStatus:x,inMessage:_,outMessages:R,totalFees:U,stateUpdate:D,description:b}}oh.loadTransaction=s;function l(u){return c=>{c.storeUint(7,4),c.storeUint(u.address,256),c.storeUint(u.lt,64),c.storeUint(u.prevTransactionHash,256),c.storeUint(u.prevTransactionLt,64),c.storeUint(u.now,32),c.storeUint(u.outMessagesCount,15),c.store((0,n.storeAccountStatus)(u.oldStatus)),c.store((0,n.storeAccountStatus)(u.endStatus));let f=(0,e.beginCell)();u.inMessage?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,i.storeMessage)(u.inMessage)))):f.storeBit(!1),f.storeDict(u.outMessages),c.storeRef(f),c.store((0,r.storeCurrencyCollection)(u.totalFees)),c.storeRef((0,e.beginCell)().store((0,o.storeHashUpdate)(u.stateUpdate))),c.storeRef((0,e.beginCell)().store((0,a.storeTransactionDescription)(u.description)))}}return oh.storeTransaction=l,oh}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.loadStorageUsedShort=e.storeStorageUsed=e.loadStorageUsed=e.storeStorageInfo=e.loadStorageInfo=e.storeStateInit=e.loadStateInit=e.storeSplitMergeInfo=e.loadSplitMergeInfo=e.storeSimpleLibrary=e.loadSimpleLibrary=e.loadShardStateUnsplit=e.storeShardIdent=e.loadShardIdent=e.storeShardAccounts=e.loadShardAccounts=e.ShardAccountRefValue=e.storeShardAccount=e.loadShardAccount=e.SendMode=e.storeMessageRelaxed=e.loadMessageRelaxed=e.storeMessage=e.loadMessage=e.loadMasterchainStateExtra=e.storeHashUpdate=e.loadHashUpdate=e.storeDepthBalanceInfo=e.loadDepthBalanceInfo=e.storeCurrencyCollection=e.loadCurrencyCollection=e.storeComputeSkipReason=e.loadComputeSkipReason=e.storeCommonMessageInfoRelaxed=e.loadCommonMessageInfoRelaxed=e.storeCommonMessageInfo=e.loadCommonMessageInfo=e.storeAccountStorage=e.loadAccountStorage=e.storeAccountStatusChange=e.loadAccountStatusChange=e.storeAccountStatus=e.loadAccountStatus=e.storeAccountState=e.loadAccountState=e.storeAccount=e.loadAccount=e.comment=e.external=e.internal=void 0,e.storeTransactionsStoragePhase=e.loadTransactionStoragePhase=e.storeTransactionDescription=e.loadTransactionDescription=e.storeTransactionCreditPhase=e.loadTransactionCreditPhase=e.storeTransactionComputePhase=e.loadTransactionComputePhase=e.storeTransactionBouncePhase=e.loadTransactionBouncePhase=e.storeTransactionActionPhase=e.loadTransactionActionPhase=e.storeTransaction=e.loadTransaction=e.storeTickTock=e.loadTickTock=e.storeStorageUsedShort=void 0;var t=ep;Object.defineProperty(e,"internal",{enumerable:!0,get:function(){return t.internal}}),Object.defineProperty(e,"external",{enumerable:!0,get:function(){return t.external}}),Object.defineProperty(e,"comment",{enumerable:!0,get:function(){return t.comment}});var n=tg;Object.defineProperty(e,"loadAccount",{enumerable:!0,get:function(){return n.loadAccount}}),Object.defineProperty(e,"storeAccount",{enumerable:!0,get:function(){return n.storeAccount}});var r=rg;Object.defineProperty(e,"loadAccountState",{enumerable:!0,get:function(){return r.loadAccountState}}),Object.defineProperty(e,"storeAccountState",{enumerable:!0,get:function(){return r.storeAccountState}});var o=ag;Object.defineProperty(e,"loadAccountStatus",{enumerable:!0,get:function(){return o.loadAccountStatus}}),Object.defineProperty(e,"storeAccountStatus",{enumerable:!0,get:function(){return o.storeAccountStatus}});var i=dp;Object.defineProperty(e,"loadAccountStatusChange",{enumerable:!0,get:function(){return i.loadAccountStatusChange}}),Object.defineProperty(e,"storeAccountStatusChange",{enumerable:!0,get:function(){return i.storeAccountStatusChange}});var a=ng;Object.defineProperty(e,"loadAccountStorage",{enumerable:!0,get:function(){return a.loadAccountStorage}}),Object.defineProperty(e,"storeAccountStorage",{enumerable:!0,get:function(){return a.storeAccountStorage}});var s=sg;Object.defineProperty(e,"loadCommonMessageInfo",{enumerable:!0,get:function(){return s.loadCommonMessageInfo}}),Object.defineProperty(e,"storeCommonMessageInfo",{enumerable:!0,get:function(){return s.storeCommonMessageInfo}});var l=lg;Object.defineProperty(e,"loadCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return l.loadCommonMessageInfoRelaxed}}),Object.defineProperty(e,"storeCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return l.storeCommonMessageInfoRelaxed}});var u=ug;Object.defineProperty(e,"loadComputeSkipReason",{enumerable:!0,get:function(){return u.loadComputeSkipReason}}),Object.defineProperty(e,"storeComputeSkipReason",{enumerable:!0,get:function(){return u.storeComputeSkipReason}});var c=zs;Object.defineProperty(e,"loadCurrencyCollection",{enumerable:!0,get:function(){return c.loadCurrencyCollection}}),Object.defineProperty(e,"storeCurrencyCollection",{enumerable:!0,get:function(){return c.storeCurrencyCollection}});var f=cg;Object.defineProperty(e,"loadDepthBalanceInfo",{enumerable:!0,get:function(){return f.loadDepthBalanceInfo}}),Object.defineProperty(e,"storeDepthBalanceInfo",{enumerable:!0,get:function(){return f.storeDepthBalanceInfo}});var p=dg;Object.defineProperty(e,"loadHashUpdate",{enumerable:!0,get:function(){return p.loadHashUpdate}}),Object.defineProperty(e,"storeHashUpdate",{enumerable:!0,get:function(){return p.storeHashUpdate}});var g=dS;Object.defineProperty(e,"loadMasterchainStateExtra",{enumerable:!0,get:function(){return g.loadMasterchainStateExtra}});var m=bd;Object.defineProperty(e,"loadMessage",{enumerable:!0,get:function(){return m.loadMessage}}),Object.defineProperty(e,"storeMessage",{enumerable:!0,get:function(){return m.storeMessage}});var y=J0;Object.defineProperty(e,"loadMessageRelaxed",{enumerable:!0,get:function(){return y.loadMessageRelaxed}}),Object.defineProperty(e,"storeMessageRelaxed",{enumerable:!0,get:function(){return y.storeMessageRelaxed}});var v=dX;Object.defineProperty(e,"SendMode",{enumerable:!0,get:function(){return v.SendMode}});var x=fg;Object.defineProperty(e,"loadShardAccount",{enumerable:!0,get:function(){return x.loadShardAccount}}),Object.defineProperty(e,"storeShardAccount",{enumerable:!0,get:function(){return x.storeShardAccount}});var w=WD;Object.defineProperty(e,"ShardAccountRefValue",{enumerable:!0,get:function(){return w.ShardAccountRefValue}}),Object.defineProperty(e,"loadShardAccounts",{enumerable:!0,get:function(){return w.loadShardAccounts}}),Object.defineProperty(e,"storeShardAccounts",{enumerable:!0,get:function(){return w.storeShardAccounts}});var I=pg;Object.defineProperty(e,"loadShardIdent",{enumerable:!0,get:function(){return I.loadShardIdent}}),Object.defineProperty(e,"storeShardIdent",{enumerable:!0,get:function(){return I.storeShardIdent}});var _=TT;Object.defineProperty(e,"loadShardStateUnsplit",{enumerable:!0,get:function(){return _.loadShardStateUnsplit}});var R=vd;Object.defineProperty(e,"loadSimpleLibrary",{enumerable:!0,get:function(){return R.loadSimpleLibrary}}),Object.defineProperty(e,"storeSimpleLibrary",{enumerable:!0,get:function(){return R.storeSimpleLibrary}});var U=hg;Object.defineProperty(e,"loadSplitMergeInfo",{enumerable:!0,get:function(){return U.loadSplitMergeInfo}}),Object.defineProperty(e,"storeSplitMergeInfo",{enumerable:!0,get:function(){return U.storeSplitMergeInfo}});var D=vc;Object.defineProperty(e,"loadStateInit",{enumerable:!0,get:function(){return D.loadStateInit}}),Object.defineProperty(e,"storeStateInit",{enumerable:!0,get:function(){return D.storeStateInit}});var b=og;Object.defineProperty(e,"loadStorageInfo",{enumerable:!0,get:function(){return b.loadStorageInfo}}),Object.defineProperty(e,"storeStorageInfo",{enumerable:!0,get:function(){return b.storeStorageInfo}});var T=ig;Object.defineProperty(e,"loadStorageUsed",{enumerable:!0,get:function(){return T.loadStorageUsed}}),Object.defineProperty(e,"storeStorageUsed",{enumerable:!0,get:function(){return T.storeStorageUsed}});var C=fp;Object.defineProperty(e,"loadStorageUsedShort",{enumerable:!0,get:function(){return C.loadStorageUsedShort}}),Object.defineProperty(e,"storeStorageUsedShort",{enumerable:!0,get:function(){return C.storeStorageUsedShort}});var O=Zh;Object.defineProperty(e,"loadTickTock",{enumerable:!0,get:function(){return O.loadTickTock}}),Object.defineProperty(e,"storeTickTock",{enumerable:!0,get:function(){return O.storeTickTock}});var $=bX();Object.defineProperty(e,"loadTransaction",{enumerable:!0,get:function(){return $.loadTransaction}}),Object.defineProperty(e,"storeTransaction",{enumerable:!0,get:function(){return $.storeTransaction}});var j=gg;Object.defineProperty(e,"loadTransactionActionPhase",{enumerable:!0,get:function(){return j.loadTransactionActionPhase}}),Object.defineProperty(e,"storeTransactionActionPhase",{enumerable:!0,get:function(){return j.storeTransactionActionPhase}});var L=mg;Object.defineProperty(e,"loadTransactionBouncePhase",{enumerable:!0,get:function(){return L.loadTransactionBouncePhase}}),Object.defineProperty(e,"storeTransactionBouncePhase",{enumerable:!0,get:function(){return L.storeTransactionBouncePhase}});var B=yg;Object.defineProperty(e,"loadTransactionComputePhase",{enumerable:!0,get:function(){return B.loadTransactionComputePhase}}),Object.defineProperty(e,"storeTransactionComputePhase",{enumerable:!0,get:function(){return B.storeTransactionComputePhase}});var H=vg;Object.defineProperty(e,"loadTransactionCreditPhase",{enumerable:!0,get:function(){return H.loadTransactionCreditPhase}}),Object.defineProperty(e,"storeTransactionCreditPhase",{enumerable:!0,get:function(){return H.storeTransactionCreditPhase}});var q=vX();Object.defineProperty(e,"loadTransactionDescription",{enumerable:!0,get:function(){return q.loadTransactionDescription}}),Object.defineProperty(e,"storeTransactionDescription",{enumerable:!0,get:function(){return q.storeTransactionDescription}});var Y=bg;Object.defineProperty(e,"loadTransactionStoragePhase",{enumerable:!0,get:function(){return Y.loadTransactionStoragePhase}}),Object.defineProperty(e,"storeTransactionsStoragePhase",{enumerable:!0,get:function(){return Y.storeTransactionsStoragePhase}})})(KJ);var kT={};Object.defineProperty(kT,"__esModule",{value:!0});kT.openContract=void 0;const L6e=Ws,AW=$g();function F6e(e,t){let n,r=null;if(!L6e.Address.isAddress(e.address))throw Error("Invalid address");if(n=e.address,e.init){if(!(e.init.code instanceof AW.Cell))throw Error("Invalid init.code");if(!(e.init.data instanceof AW.Cell))throw Error("Invalid init.data");r=e.init}let o=t({address:n,init:r});return new Proxy(e,{get(i,a){const s=i[a];return typeof a=="string"&&(a.startsWith("get")||a.startsWith("send"))&&typeof s=="function"?(...l)=>s.apply(i,[o,...l]):s}})}kT.openContract=F6e;var IT={};Object.defineProperty(IT,"__esModule",{value:!0});IT.ComputeError=void 0;class zD extends Error{constructor(t,n,r){super(t),this.exitCode=n,this.debugLogs=r&&r.debugLogs?r.debugLogs:null,this.logs=r&&r.logs?r.logs:null,Object.setPrototypeOf(this,zD.prototype)}}IT.ComputeError=zD;var PT={};Object.defineProperty(PT,"__esModule",{value:!0});PT.getMethodId=void 0;const N6e=new Int16Array([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]);function U6e(e){e instanceof Buffer||(e=Buffer.from(e));let t=0;for(let n=0;n>8^r)&255]^t<<8)&65535}return t}function j6e(e){return U6e(e)&65535|65536}PT.getMethodId=j6e;var X0={};Object.defineProperty(X0,"__esModule",{value:!0});X0.safeSignVerify=X0.safeSign=void 0;const VD=Bg(),W6e=8,z6e=64;function wX(e,t){let n=Buffer.from(t);if(n.length>z6e)throw Error("Seed can be longer than 64 bytes");if(n.length=e}:e;return function(){var r=Array.from(arguments);return n(arguments)?t.apply(this,r):function(o){return t.apply(void 0,q6e([o],r,!1))}}},G6e=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0},QD=function(e){return e[0]},X6e=function(e){return e.slice(1)},xX=[],DT={},Pi=Object.prototype.hasOwnProperty,Z6e=function(e){return G6e([e[0]],e.slice(1),!0)};function hS(e){return function(t){return function(n){return e.ap(e.map(n,function(r){return function(){return r}}),t)}}}function gS(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(r){return r}}),t)}}}function BT(e){return function(t,n){return function(r){return e.ap(e.map(r,function(o){return function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))}}),n)}}}function $T(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(o){return function(i){return t.concat(o,i)}}),r)}}}}function mS(e){return function(t){return function(n){return e.map(n,function(r){return r(t)})}}}function LT(e){return function(t){return function(n){return e.map(n,function(r){var o;return o={},o[t]=r,o})}}}function FT(e){return function(t,n){return function(r){return e.map(r,function(o){var i;return Object.assign({},o,(i={},i[t]=n(o),i))})}}}function KD(e){var t=$T(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function Ny(e){return function(t){return function(n){return e.chain(n,function(r){return e.map(t(r),function(){return r})})}}}function NT(e){return function(t,n){return function(r){return e.chain(r,function(o){return e.map(n(o),function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))})})}}}var eDe=function(e,t){for(var n=t(e);n._tag==="Left";)n=t(n.left);return n.right};function CX(e){return function(t){return function(n){return e.fromEither(HD(n)?OT(t()):RT(n.value))}}}function tDe(e){return function(t,n){return function(r){return e.fromEither(t(r)?RT(r):OT(n(r)))}}}function AX(e){var t=CX(e);return function(n){var r=t(n);return function(o){return _p(o,r)}}}function nDe(e,t){var n=AX(e);return function(r){var o=n(r);return function(i){return function(a){return t.chain(a,o(i))}}}}function UT(e){return function(t){return _p(t,e.fromEither)}}function rDe(e,t){var n=UT(e);return function(r){return function(o){return t.chain(o,n(r))}}}function oDe(e,t){return _p(UT(e),Ny(t))}function iDe(e,t){return function(n,r){return function(o){return t.chain(o,function(i){return e.fromEither(n(i)?RT(i):OT(r(i)))})}}}var Ei=function(e,t){return{left:e,right:t}};function yS(e,t){return function(n){var r=e.traverse(n);return function(o,i){return n.map(r(o,i),t.separate)}}}function vS(e,t){return function(n){var r=e.traverse(n);return function(o,i){return n.map(r(o,i),t.compact)}}}function aDe(e){return function(t){var n=e.wither(t);return function(r){return function(o){return n(o,function(i){return t.map(r(i),function(a){return a?Go(i):Po})})}}}}var ha=OT,jr=RT,Hd=MT(2,function(e,t){return Yt(e)?e:t(e.right)}),va=function(e,t){return yt(e,kX(t))},Fg=function(e,t){return yt(e,PX(t))},bS=function(e,t,n){return yt(e,DX(t,n))},wS=function(e){return function(t,n){var r=BX(e);return yt(t,r(n))}},SS=function(e,t,n){return yt(e,$X(t,n))},jT=function(e){var t=LX(e);return function(n,r){return yt(n,t(r))}},YD=function(e,t,n){return yt(e,FX(t,n))},GD=function(e,t){return yt(e,NX(t))},_X=function(e,t){return yt(e,jX(t))},JD=function(e,t){return yt(e,eB(t))},XD=function(e,t){return eDe(t(e),function(n){return Yt(n)?jr(ha(n.left)):Yt(n.right)?ha(t(n.right.left)):jr(jr(n.right.right))})},No="Either",sDe=function(e,t){return{show:function(n){return Yt(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},lDe=function(e,t){return{equals:function(n,r){return n===r||(Yt(n)?Yt(r)&&e.equals(n.left,r.left):tB(r)&&t.equals(n.right,r.right))}}},uDe=function(e){return{concat:function(t,n){return Yt(n)?t:Yt(t)?n:jr(e.concat(t.right,n.right))}}},ZD=function(e){var t=ha(e.empty);return{URI:No,_E:void 0,compact:function(n){return Yt(n)?n:n.right._tag==="None"?t:jr(n.right.value)},separate:function(n){return Yt(n)?Ei(n,n):Yt(n.right)?Ei(jr(n.right.left),t):Ei(t,jr(n.right.right))}}},EX=function(e){var t=ha(e.empty),n=ZD(e),r=n.compact,o=n.separate,i=function(s,l){return Yt(s)||l(s.right)?s:t},a=function(s,l){return Yt(s)?Ei(s,s):l(s.right)?Ei(t,jr(s.right)):Ei(jr(s.right),t)};return{URI:No,_E:void 0,map:va,compact:r,separate:o,filter:i,filterMap:function(s,l){if(Yt(s))return s;var u=l(s.right);return u._tag==="None"?t:jr(u.value)},partition:a,partitionMap:function(s,l){if(Yt(s))return Ei(s,s);var u=l(s.right);return Yt(u)?Ei(jr(u.left),t):Ei(t,jr(u.right))}}},cDe=function(e){var t=EX(e),n=ZD(e);return{URI:No,_E:void 0,map:va,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:jT,sequence:AS,reduce:bS,foldMap:wS,reduceRight:SS,wither:vS(rR,n),wilt:yS(rR,n)}},WT=function(e){return{URI:No,_E:void 0,map:va,ap:function(t,n){return Yt(t)?Yt(n)?ha(e.concat(t.left,n.left)):t:Yt(n)?n:jr(t.right(n.right))},of:_c}},TX=function(e){return{URI:No,_E:void 0,map:va,alt:function(t,n){if(tB(t))return t;var r=n();return Yt(r)?ha(e.concat(t.left,r.left)):r}}},kX=function(e){return function(t){return Yt(t)?t:jr(e(t.right))}},zT={URI:No,map:va},_c=jr,dDe={URI:No,of:_c},IX=function(e){return function(t){return Yt(t)?t:Yt(e)?e:jr(t.right(e.right))}},PX=IX,xS={URI:No,map:va,ap:Fg},MX={URI:No,map:va,ap:Fg,of:_c},OX=Hd,RX=Hd,CS={URI:No,map:va,ap:Fg,chain:Hd},fDe={URI:No,map:va,ap:Fg,of:_c,chain:Hd},DX=function(e,t){return function(n){return Yt(n)?e:t(e,n.right)}},BX=function(e){return function(t){return function(n){return Yt(n)?e.empty:t(n.right)}}},$X=function(e,t){return function(n){return Yt(n)?e:t(n.right,e)}},pDe={URI:No,reduce:bS,foldMap:wS,reduceRight:SS},LX=function(e){return function(t){return function(n){return Yt(n)?e.of(ha(n.left)):e.map(t(n.right),jr)}}},AS=function(e){return function(t){return Yt(t)?e.of(ha(t.left)):e.map(t.right,jr)}},rR={URI:No,map:va,reduce:bS,foldMap:wS,reduceRight:SS,traverse:jT,sequence:AS},FX=function(e,t){return function(n){return Yt(n)?ha(e(n.left)):jr(t(n.right))}},NX=function(e){return function(t){return Yt(t)?ha(e(t.left)):t}},hDe={URI:No,bimap:YD,mapLeft:GD},UX=function(e){return function(t){return Yt(t)?e():t}},jX=UX,gDe={URI:No,map:va,alt:_X},eB=function(e){return function(t){return Yt(t)?t:jr(e(t))}},mDe={URI:No,map:va,extend:JD},yDe={URI:No,map:va,ap:Fg,chain:Hd,chainRec:XD},VT=ha,vDe={URI:No,map:va,ap:Fg,of:_c,chain:Hd,throwError:VT},Uy={URI:No,fromEither:Qo},bDe=tDe(Uy),wDe=CX(Uy),Yt=pS,tB=J6e,nB=function(e,t){return function(n){return Yt(n)?e(n.left):t(n.right)}},WX=nB,zX=nB,SDe=zX,VX=function(e){return function(t){return Yt(t)?e(t.left):t.right}},xDe=VX,CDe=mS(zT),HX=hS(xS),ADe=HX,qX=gS(xS),_De=qX,QX=Ny(CS),EDe=QX,KX=OX(Qo),TDe=KX,kDe=eB(Qo),IDe=AX(Uy),YX=nDe(Uy,CS),PDe=YX,GX=iDe(Uy,CS),MDe=GX,ODe=function(e){return Yt(e)?jr(e.left):ha(e.right)},JX=function(e){return function(t){return Yt(t)?e(t.left):t}},RDe=JX,XX=function(e){return function(t){return t==null?ha(e):jr(t)}},HT=function(e,t){try{return jr(e())}catch(n){return ha(t(n))}},DDe=function(e,t){return function(){for(var n=[],r=0;r")}function nBe(e,t){return{key:e,type:t}}function gu(e,t,n,r){for(var o=e.length,i=Array(o+1),a=0;a")}function rBe(e,t,n,r){r===void 0&&(r="{ [K in ".concat(t.name,"]: ").concat(n.name," }"));var o=e.length;return new lB(r,function(i){return Da.is(i)&&e.every(function(a){return n.is(i[a])})},function(i,a){var s=Da.validate(i,a);if(Yt(s))return s;for(var l=s.right,u={},c=[],f=!1,p=0;p0?Ec(c):Kr(f||Object.keys(l).length!==o?u:l)},n.encode===Zn?Zn:function(i){for(var a={},s=0;s0?Ec(a):Kr(u?i:r)}return EW(t)&&Array.isArray(r)?Kr(r):Hi(r,o)},e.encode===Zn&&t.encode===Zn?Zn:function(r){for(var o={},i=Object.keys(r),a=i.length,s=0;s")}function aBe(e){return e.length>0}var Ja={};function cZ(e,t){for(var n=[],r=0,o=e;r")),new IZ(t,function(n){return ey.is(n)&&n.every(e.is)},function(n,r){var o=ey.validate(n,r);if(Yt(o))return o;for(var i=o.right,a=i.length,s=i,l=[],u=0;u0?Ec(l):Kr(s)},e.encode===Zn?Zn:function(n){return n.map(e.encode)},e)}var MZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.props=a,s._tag="InterfaceType",s}return t}(Tr);function sR(e,t){t===void 0&&(t=sZ(e));var n=Object.keys(e),r=n.map(function(i){return e[i]}),o=n.length;return new MZ(t,function(i){if(Da.is(i)){for(var a=0;a0?Ec(c):Kr(u)},lw(r)?Zn:function(i){for(var a=Z0({},i),s=0;s0?Ec(c):Kr(u)},lw(r)?Zn:function(i){for(var a=Z0({},i),s=0;s0){var r=n[0],o=n[1],i=o.length,a=function(s){for(var l=0;l0?Ec(a):Kr(iR(r,i))},e.length===0?Zn:function(r){return iR(r,e.map(function(o){return o.encode(r)}))},e)}var $Z=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.types=a,s._tag="TupleType",s}return t}(Tr);function _Be(e,t){t===void 0&&(t="[".concat(e.map(function(r){return r.name}).join(", "),"]"));var n=e.length;return new $Z(t,function(r){return ey.is(r)&&r.length===n&&e.every(function(o,i){return o.is(r[i])})},function(r,o){var i=ey.validate(r,o);if(Yt(i))return i;for(var a=i.right,s=a.length>n?a.slice(0,n):a,l=[],u=0;u0?Ec(l):Kr(s)},lw(e)?Zn:function(r){return e.map(function(o,i){return o.encode(r[i])})},e)}var LZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ReadonlyType",s}return t}(Tr);function EBe(e,t){return t===void 0&&(t="Readonly<".concat(e.name,">")),new LZ(t,e.is,e.validate,e.encode,e)}var FZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ReadonlyArrayType",s}return t}(Tr);function TBe(e,t){t===void 0&&(t="ReadonlyArray<".concat(e.name,">"));var n=PZ(e);return new FZ(t,n.is,n.validate,n.encode,e)}var kBe=function(e,t){return UZ(sR(e),t)},NZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ExactType",s}return t}(Tr);function UZ(e,t){t===void 0&&(t=iBe(e));var n=aR(e);return new NZ(t,e.is,function(r,o){var i=Da.validate(r,o);if(Yt(i))return i;var a=e.validate(r,o);return Yt(a)?a:jr(_W(a.right,n))},function(r){return e.encode(_W(r,n))},e)}var jZ=function(e){Er(t,e);function t(){var n=e.call(this,"Function",function(r){return typeof r=="function"},function(r,o){return n.is(r)?Kr(r):Hi(r,o)},Zn)||this;return n._tag="FunctionType",n}return t}(Tr),IBe=new jZ,WZ=function(e){Er(t,e);function t(){var n=e.call(this,"never",function(r){return!1},function(r,o){return Hi(r,o)},function(){throw new Error("cannot encode never")})||this;return n._tag="NeverType",n}return t}(Tr),PBe=new WZ,zZ=function(e){Er(t,e);function t(){var n=e.call(this,"any",function(r){return!0},Kr,Zn)||this;return n._tag="AnyType",n}return t}(Tr),MBe=new zZ;function cB(e,t,n){return n===void 0&&(n="(".concat(e.name," | ").concat(aZ(t),")")),new TZ(n,function(r){return e.is(r)&&t(r)},function(r,o){var i=e.validate(r,o);if(Yt(i))return i;var a=i.right;return t(a)?Kr(a):Hi(a,o)},e.encode,e,t)}var OBe=cB(aB,Number.isInteger,"Integer"),jA=function(e){Er(t,e);function t(n,r,o,i,a,s){var l=e.call(this,n,r,o,i,a)||this;return l.tag=s,l}return t}(uB),RBe=function(e,t,n){n===void 0&&(n=uZ(t));var r=DZ(t,n);return r instanceof jA?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new jA(n,r.is,r.validate,r.encode,t,e))},DBe=function(e,t){return{value:e,context:t}},BBe=function(e){return[{key:"",type:e}]},$Be=Da,VZ=function(e){Er(t,e);function t(){var n=e.call(this,"object",function(r){return r!==null&&typeof r=="object"},function(r,o){return n.is(r)?Kr(r):Hi(r,o)},Zn)||this;return n._tag="ObjectType",n}return t}(Tr),LBe=new VZ,FBe=RZ,NBe=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.props=a,s._tag="StrictType",s}return t}(Tr);function UBe(e){return e}function jBe(e){return function(){return e}}const WBe=Object.freeze(Object.defineProperty({__proto__:null,AnyArrayType:CZ,AnyDictionaryType:AZ,AnyType:zZ,Array:ey,ArrayType:IZ,BigIntType:SZ,BooleanType:xZ,Dictionary:$Be,DictionaryType:lB,ExactType:NZ,Function:IBe,FunctionType:jZ,Int:SBe,Integer:OBe,InterfaceType:MZ,IntersectionType:BZ,KeyofType:EZ,LiteralType:_Z,NeverType:WZ,NullType:gZ,NumberType:wZ,ObjectType:VZ,PartialType:OZ,ReadonlyArrayType:FZ,ReadonlyType:LZ,RecursiveType:sB,RefinementType:TZ,StrictType:NBe,StringType:bZ,TaggedUnionType:jA,TupleType:$Z,Type:Tr,UndefinedType:mZ,UnionType:uB,UnknownArray:ey,UnknownRecord:Da,UnknownType:vZ,VoidType:yZ,alias:jBe,any:MBe,appendContext:gu,array:PZ,bigint:yBe,boolean:vBe,brand:kZ,clean:UBe,dictionary:FBe,emptyTags:Ja,exact:UZ,failure:Hi,failures:Ec,getContextEntry:nBe,getDefaultContext:BBe,getDomainKeys:oB,getFunctionName:aZ,getIndex:hZ,getTags:Tf,getValidationError:DBe,identity:Zn,interface:sR,intersection:ABe,keyof:wBe,literal:bBe,mergeAll:iR,never:PBe,null:TW,nullType:TW,number:aB,object:LBe,partial:CBe,readonly:EBe,readonlyArray:TBe,record:RZ,recursion:xBe,refinement:cB,strict:kBe,string:iB,success:Kr,taggedUnion:RBe,tuple:_Be,type:sR,undefined:UA,union:DZ,unknown:mBe,void:kW,voidType:kW},Symbol.toStringTag,{value:"Module"})),dB=Cc(WBe);var HZ={},ty={},Fi={},Ng={};(function(e){var t=st&&st.__spreadArray||function(D,b,T){if(T||arguments.length===2)for(var C=0,O=b.length,$;C1?D(b[1],b[0]):function(C){return D(C)(b[0])}}}e.flip=c;function f(D,b,T,C,O,$,j,L,B){switch(arguments.length){case 1:return D;case 2:return function(){return b(D.apply(this,arguments))};case 3:return function(){return T(b(D.apply(this,arguments)))};case 4:return function(){return C(T(b(D.apply(this,arguments))))};case 5:return function(){return O(C(T(b(D.apply(this,arguments)))))};case 6:return function(){return $(O(C(T(b(D.apply(this,arguments))))))};case 7:return function(){return j($(O(C(T(b(D.apply(this,arguments)))))))};case 8:return function(){return L(j($(O(C(T(b(D.apply(this,arguments))))))))};case 9:return function(){return B(L(j($(O(C(T(b(D.apply(this,arguments)))))))))}}}e.flow=f;function p(){for(var D=[],b=0;b=D}:D;return function(){var C=Array.from(arguments);return T(arguments)?b.apply(this,C):function(O){return b.apply(void 0,t([O],C,!1))}}};e.dual=U})(Ng);var zn={},zBe=st&&st.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0};zn.isNonEmpty=XBe;var ZBe=function(e){return e[0]};zn.head=ZBe;var e8e=function(e){return e.slice(1)};zn.tail=e8e;zn.emptyReadonlyArray=[];zn.emptyRecord={};zn.has=Object.prototype.hasOwnProperty;var t8e=function(e){return zBe([e[0]],e.slice(1),!0)};zn.fromReadonlyNonEmptyArray=t8e;var n8e=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),r8e=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o8e=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&n8e(t,e,n);return r8e(t,e),t};Object.defineProperty(Fi,"__esModule",{value:!0});Fi.sequenceS=Fi.sequenceT=Fi.getApplySemigroup=Fi.apS=Fi.apSecond=Fi.apFirst=Fi.ap=void 0;var i8e=Ng,a8e=o8e(zn);function s8e(e,t){return function(n){return function(r){return e.ap(e.map(r,function(o){return function(i){return t.ap(o,i)}}),n)}}}Fi.ap=s8e;function l8e(e){return function(t){return function(n){return e.ap(e.map(n,function(r){return function(){return r}}),t)}}}Fi.apFirst=l8e;function u8e(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(r){return r}}),t)}}}Fi.apSecond=u8e;function c8e(e){return function(t,n){return function(r){return e.ap(e.map(r,function(o){return function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))}}),n)}}}Fi.apS=c8e;function d8e(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(o){return function(i){return t.concat(o,i)}}),r)}}}}Fi.getApplySemigroup=d8e;function fB(e,t,n){return function(r){for(var o=Array(n.length+1),i=0;i-1?t:n}},K8e=function(e){return{concat:q8e(e)}},Y8e=function(e){return{concat:Q8e(e)}},G8e=function(){return{concat:Qo}},XZ=function(){return{concat:function(e,t){return t}}},J8e=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=t.length},Z8e=function(e){return function(t){return J8e([e],t,!0)}},e$e=Z8e,t$e=function(e){return function(t){for(var n=[e,t[0]],r=1;r0},KT=function(e,t){return e<0||e>=t.length},yB=function(e){return function(t){return uw([e],t,!0)}},ny=yB,vB=function(e){return function(t){return uw(uw([],t,!0),[e],!1)}},_S=vB,bB=function(e,t,n){if(qd(n)){var r=ES(n);return r.splice(e,0,t),r}return[t]},wB=function(e,t,n){var r=ES(n);return r[e]=t,r},SB=function(e){return function(t){if(t.length===1)return jy(t);for(var n=[jl(t)],r=mu(t),o=function(l){n.every(function(u){return!e.equals(u,l)})&&n.push(l)},i=0,a=r;in.length?Po:Go(bB(e,t,n))}},y$e=function(e,t){return fee(e,function(){return t})},fee=function(e,t){return function(n){return KT(e,n)?Po:Go(wB(e,t(n[e]),n))}},jy=ES,Ep=function(e){return[e]},pee=function(e,t,n){for(var r=[n(e[0],t[0])],o=Math.min(e.length,t.length),i=1;i=t.length?[jy(t),[]]:[yt(t.slice(1,n),ny(jl(t))),t.slice(n)]}},bee=function(e){return _B(XT(e))},ku=function(e,t){return yt(e,RB(t))},EB=function(e,t){return yt(e,DB(t))},TS=function(e,t){return yt(e,_ee(t))},wee=function(e,t){return yt(e,OB(t))},kS=function(e,t,n){return yt(e,Eee(t,n))},IS=function(e){var t=yee(e);return function(n,r){return yt(n,t(r))}},PS=function(e,t,n){return yt(e,kee(t,n))},TB=function(e){var t=Pee(e);return function(n,r){return yt(n,t(r))}},See=function(e,t){return yt(e,Aee(t))},kB=function(e,t,n){return yt(e,Tee(t,n))},IB=function(e){var t=mee(e);return function(n,r){return yt(n,t(r))}},PB=function(e,t,n){return yt(e,Iee(t,n))},xee=function(e){var t=ek(e);return function(n,r){return yt(n,t(r))}},Cee=function(e){return function(t){return yt(t,cee(e()))}},Aee=Cee,_ee=function(e){return MB(function(t){return yt(e,RB(t))})},MS=MT(2,function(e,t){return yt(e,vee(function(n,r){return t(r)}))}),MB=MS,OB=function(e){return function(t){for(var n=mu(t),r=[e(t)];qd(n);)r.push(e(n)),n=mu(n);return r}},b$e=OB(Qo),w$e=MB(Qo),RB=function(e){return DB(function(t,n){return e(n)})},DB=function(e){return function(t){for(var n=[e(0,jl(t))],r=1;rt?1:0}};function $ee(e,t){return function(n){return n?t.of(void 0):e.zero()}}var lLe=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0;n--)if(e(t[n]))return Go(t[n]);return Po}}var vLe=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(Lg(r))return r}return Po}},bLe=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return Go(n);return Po}};function Fee(e){return function(t,n){if(n===void 0){var r=Fee(e);return function(a){return r(t,a)}}for(var o=function(a){return e.equals(a,t)},i=0;i0;){var o=n.shift();pS(o)?n.unshift.apply(n,e(o.left)):r.push(o.right)}return r}},zee=function(e){return function(t){var n=e(t),r=[],o=[];function i(u){pS(u)?e(u.left).forEach(function(c){return r.push(c)}):o.push(u.right)}for(var a=0,s=n;a0;)i(r.shift());return o}};function kLe(e){return function(t){return t.every(e)}}var ILe=function(e){var t=oee(e);return function(n){return cLe(function(){return e.empty},t(n))}},xg=function(e){return e.length===0},mi=qd,PLe=ny,MLe=yB,rk=_S,OLe=vB,Vee=function(e,t){return e<=0?[]:YT(t)(e)},RLe=function(e,t){return Vee(e,function(){return t})};function DLe(e){return function(t){return e(t)?[t]:[]}}var Hee=function(e){return HD(e)?[]:[e.value]},qee=function(e){return pS(e)?[]:[e.right]},Qee=function(e,t){return function(n){return mi(n)?t(n):e()}},BLe=Qee,Kee=function(e,t){return function(n){return mi(n)?t(jl(n),mu(n)):e()}},Yee=Kee,$Le=Yee,Gee=function(e,t){return function(n){return mi(n)?t(zy(n),Wy(n)):e()}},Jee=Gee,LLe=Jee,Xee=function(e){return function(t){for(var n=[],r=0;r=0;i--)o[i]=t(n[i],o[i+1]);return o}},ULe=function(e){return e.length},OS=KT,jLe=Lee,WLe=fLe,zLe=pLe,VLe=function(e){return mi(e)?Go(mu(e)):Po},HLe=function(e){return mi(e)?Go(zy(e)):Po},qLe=function(e){return function(t){return OS(e,t)?ga(t):t.slice(0,e)}},QLe=function(e){return function(t){return OS(e,t)?ga(t):e===0?[]:t.slice(-e)}};function KLe(e){return function(t){for(var n=[],r=0,o=t;r=t.length?[]:t.slice(e,t.length)}},JLe=function(e){return function(t){return e<=0||xg(t)?ga(t):e>=t.length?[]:t.slice(0,t.length-e)}};function XLe(e){return function(t){return t.slice(Zee(t,e))}}var ZLe=hLe;function eFe(e){return gLe(e)}var tFe=mLe;function nFe(e){return yLe(e)}var rFe=vLe,oFe=bLe,ga=function(e){return e.slice()},iFe=function(e,t){return function(n){return e<0||e>n.length?Po:Go(Rte(e,t,n))}},aFe=function(e,t){return ete(e,function(){return t})},sFe=function(e){return function(t){return OS(e,t)?Po:Go(Bte(e,t))}},ete=function(e,t){return function(n){return OS(e,n)?Po:Go(Dte(e,t(n[e]),n))}},lFe=function(e){return xg(e)?[]:e.slice().reverse()},uFe=function(e){for(var t=[],n=0;n=1&&mi(t)?XT(e)(t):xg(t)?[ga(t),[]]:[[],ga(t)]}},vFe=function(e){var t=bee(e);return function(n){return mi(n)?t(n):[]}},bFe=function(e){return function(){for(var t=[],n=0;nt?1:0}},yUe=function(e){return Object.keys(e).length},Od=function(e){for(var t in e)if(Pi.call(e,t))return!1;return!0},$S=function(e){return function(t){return Object.keys(t).sort(e.compare)}};function une(e){if(typeof e=="function")return une(nn)(e);var t=$S(e);return function(n){return function(r){for(var o=[],i=0,a=t(r);i=0;u--){var c=s[u];a=o(c,i[c],a)}return a}}}var bUe=function(e,t){var n;return n={},n[e]=t,n};function wUe(e){var t=gne(nn)(e);return function(n){return function(r){return t(r,n)}}}function SUe(e){var t=P8(nn)(e);return function(n){return function(r){return t(r,n)}}}function xUe(e){return hne(nn)(e)}function E8(e){return function(t){var n={},r={};for(var o in t)if(Pi.call(t,o)){var i=e(o,t[o]);switch(i._tag){case"Left":n[o]=i.left;break;case"Right":r[o]=i.right;break}}return Ei(n,r)}}function T8(e){return function(t){var n={},r={};for(var o in t)if(Pi.call(t,o)){var i=t[o];e(o,i)?r[o]=i:n[o]=i}return Ei(n,r)}}function k8(e){return function(t){var n={};for(var r in t)if(Pi.call(t,r)){var o=e(r,t[r]);Lg(o)&&(n[r]=o.value)}return n}}function I8(e){return function(t){var n={},r=!1;for(var o in t)if(Pi.call(t,o)){var i=t[o];e(o,i)?n[o]=i:r=!0}return r?n:t}}function CUe(e,t){var n=fne(e,t);return function(r){return n(r,Qo)}}function fne(e,t){return function(n,r){return t.reduce(n,{},function(o,i){var a=r(i),s=a[0],l=a[1];return o[s]=Pi.call(o,s)?e.concat(o[s],l):l,o})}}function AUe(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function _Ue(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}function pne(e){return function(t,n){if(n===void 0){var r=pne(e);return function(i){return r(t,i)}}for(var o in n)if(e.equals(n[o],t))return!0;return!1}}var EUe=function(e){return function(t){return function(n){if(Od(n))return t;if(Od(t))return n;var r={};for(var o in n)ry(o,t)?r[o]=e.concat(n[o],t[o]):r[o]=n[o];for(var o in t)ry(o,r)||(r[o]=t[o]);return r}}},TUe=function(e){return function(t){return function(n){if(Od(n)||Od(t))return A8;var r={};for(var o in n)ry(o,t)&&(r[o]=e.concat(n[o],t[o]));return r}}},kUe=function(e){return function(t){if(Od(t))return e;if(Od(e))return t;var n={};for(var r in t)ry(r,e)||(n[r]=t[r]);for(var r in e)ry(r,t)||(n[r]=e[r]);return n}},IUe=function(e,t){return yt(e,dne(t))},PUe=function(e,t){return yt(e,_8(t))},MUe=function(e){var t=zA(e);return function(n,r,o){return yt(n,t(r,o))}},OUe=function(e){return function(t){var n=VA(e)(t);return function(r,o){return yt(r,n(o))}}},RUe=function(e){var t=HA(e);return function(n,r,o){return yt(n,t(r,o))}},DUe=function(e,t){return yt(e,mne(t))},BUe=function(e,t){return yt(e,yne(t))},$Ue=function(e,t){return yt(e,vne(t))},LUe=function(e,t){return yt(e,bne(t))},FUe=function(e){var t=dw(e);return function(n,r,o){return yt(n,t(r,o))}},NUe=function(e){var t=fw(e);return function(n){var r=t(n);return function(o,i){return yt(o,r(i))}}},UUe=function(e){var t=pw(e);return function(n,r,o){return yt(n,t(r,o))}},jUe=function(e,t){return yt(e,E8(t))},WUe=function(e,t){return yt(e,T8(t))},zUe=function(e,t){return yt(e,k8(t))},VUe=function(e,t){return yt(e,I8(t))},P8=function(e){var t=gne(e);return function(n){var r=t(n);return function(o,i){return r(o,_p(Y6e,i))}}},hne=function(e){var t=P8(e);return function(n){var r=t(n);return function(o){return r(o,Qo)}}},gne=function(e){return function(t){var n=$S(e);return function(r,o){var i=n(r);if(i.length===0)return t.of(A8);for(var a=t.of({}),s=function(f){a=t.ap(t.map(a,function(p){return function(g){var m;return Object.assign({},p,(m={},m[f]=g,m))}}),o(f,r[f]))},l=0,u=i;le.TYPE_MAX_LEN?C.slice(0,e.TYPE_MAX_LEN-3)+"...":C},y=function(C,O,$,j){return["Expecting "+m(C,j),O===""?"":"at "+O,"but instead got: "+c($.value),$.message?"("+$.message+")":""].filter(Boolean).join(" ")},v=function(C,O,$,j){return[`Expecting one of: + `),iPe,(t.vars||t).palette.action.hover)),sPe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:s,style:l,variant:u="text",width:c}=r,f=lt(r,nPe),p=Q({},r,{animation:o,component:a,variant:u,hasChildren:!!f.children}),g=rPe(p);return A(aPe,Q({as:a,ref:n,className:vt(g.root,i),ownerState:p},f,{style:Q({width:c,height:s},l)}))}),lPe=sPe;function uPe(e){return Vt("MuiTooltip",e)}const cPe=Rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Of=cPe,dPe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function fPe(e){return Math.round(e*1e5)/1e5}const pPe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${dt(i.split("-")[0])}`],arrow:["arrow"]};return Ut(a,uPe,t)},hPe=J(xD,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Of.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Of.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Of.arrow}`]:Q({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Of.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),gPe=J("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${dt(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Fn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${fPe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Of.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Of.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Of.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Of.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),mPe=J("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Fn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let O2=!1,rP=null,t1={x:0,y:0};function R2(e,t){return n=>{t&&t(n),e(n)}}const yPe=M.forwardRef(function(t,n){var r,o,i,a,s,l,u,c,f,p,g,m,y,v,x,w,I,_,R;const U=Bt({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:b,components:T={},componentsProps:C={},describeChild:O=!1,disableFocusListener:$=!1,disableHoverListener:j=!1,disableInteractive:L=!1,disableTouchListener:B=!1,enterDelay:H=100,enterNextDelay:q=0,enterTouchDelay:Y=700,followCursor:W=!1,id:ie,leaveDelay:le=0,leaveTouchDelay:fe=1500,onClose:Ee,onOpen:Ae,open:Ie,placement:De="bottom",PopperComponent:Ue,PopperProps:ce={},slotProps:de={},slots:ve={},title:he,TransitionComponent:pe=PA,TransitionProps:ge}=U,Ce=lt(U,dPe),_e=Fo(),Ne=_e.direction==="rtl",[Be,Ve]=M.useState(),[wt,xe]=M.useState(null),je=M.useRef(!1),We=L||W,Ge=M.useRef(),Fe=M.useRef(),te=M.useRef(),Z=M.useRef(),[N,k]=ls({controlled:Ie,default:!1,name:"Tooltip",state:"open"});let S=N;const P=Xw(ie),V=M.useRef(),K=M.useCallback(()=>{V.current!==void 0&&(document.body.style.WebkitUserSelect=V.current,V.current=void 0),clearTimeout(Z.current)},[]);M.useEffect(()=>()=>{clearTimeout(Ge.current),clearTimeout(Fe.current),clearTimeout(te.current),K()},[K]);const ee=Ct=>{clearTimeout(rP),O2=!0,k(!0),Ae&&!S&&Ae(Ct)},be=Or(Ct=>{clearTimeout(rP),rP=setTimeout(()=>{O2=!1},800+le),k(!1),Ee&&S&&Ee(Ct),clearTimeout(Ge.current),Ge.current=setTimeout(()=>{je.current=!1},_e.transitions.duration.shortest)}),Me=Ct=>{je.current&&Ct.type!=="touchstart"||(Be&&Be.removeAttribute("title"),clearTimeout(Fe.current),clearTimeout(te.current),H||O2&&q?Fe.current=setTimeout(()=>{ee(Ct)},O2?q:H):ee(Ct))},we=Ct=>{clearTimeout(Fe.current),clearTimeout(te.current),te.current=setTimeout(()=>{be(Ct)},le)},{isFocusVisibleRef:Pe,onBlur:Ye,onFocus:ze,ref:rn}=Q6(),[,Qt]=M.useState(!1),Zt=Ct=>{Ye(Ct),Pe.current===!1&&(Qt(!1),we(Ct))},An=Ct=>{Be||Ve(Ct.currentTarget),ze(Ct),Pe.current===!0&&(Qt(!0),Me(Ct))},br=Ct=>{je.current=!0;const Jt=b.props;Jt.onTouchStart&&Jt.onTouchStart(Ct)},wr=Me,kr=we,ti=Ct=>{br(Ct),clearTimeout(te.current),clearTimeout(Ge.current),K(),V.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Z.current=setTimeout(()=>{document.body.style.WebkitUserSelect=V.current,Me(Ct)},Y)},Yi=Ct=>{b.props.onTouchEnd&&b.props.onTouchEnd(Ct),K(),clearTimeout(te.current),te.current=setTimeout(()=>{be(Ct)},fe)};M.useEffect(()=>{if(!S)return;function Ct(Jt){(Jt.key==="Escape"||Jt.key==="Esc")&&be(Jt)}return document.addEventListener("keydown",Ct),()=>{document.removeEventListener("keydown",Ct)}},[be,S]);const Gi=so(b.ref,rn,Ve,n);!he&&he!==0&&(S=!1);const Ir=M.useRef(),nr=Ct=>{const Jt=b.props;Jt.onMouseMove&&Jt.onMouseMove(Ct),t1={x:Ct.clientX,y:Ct.clientY},Ir.current&&Ir.current.update()},Si={},G=typeof he=="string";O?(Si.title=!S&&G&&!j?he:null,Si["aria-describedby"]=S?P:null):(Si["aria-label"]=G?he:null,Si["aria-labelledby"]=S&&!G?P:null);const re=Q({},Si,Ce,b.props,{className:vt(Ce.className,b.props.className),onTouchStart:br,ref:Gi},W?{onMouseMove:nr}:{}),ne={};B||(re.onTouchStart=ti,re.onTouchEnd=Yi),j||(re.onMouseOver=R2(wr,re.onMouseOver),re.onMouseLeave=R2(kr,re.onMouseLeave),We||(ne.onMouseOver=wr,ne.onMouseLeave=kr)),$||(re.onFocus=R2(An,re.onFocus),re.onBlur=R2(Zt,re.onBlur),We||(ne.onFocus=An,ne.onBlur=Zt));const F=M.useMemo(()=>{var Ct;let Jt=[{name:"arrow",enabled:!!wt,options:{element:wt,padding:4}}];return(Ct=ce.popperOptions)!=null&&Ct.modifiers&&(Jt=Jt.concat(ce.popperOptions.modifiers)),Q({},ce.popperOptions,{modifiers:Jt})},[wt,ce]),ae=Q({},U,{isRtl:Ne,arrow:D,disableInteractive:We,placement:De,PopperComponentProp:Ue,touch:je.current}),Re=pPe(ae),Le=(r=(o=ve.popper)!=null?o:T.Popper)!=null?r:hPe,et=(i=(a=(s=ve.transition)!=null?s:T.Transition)!=null?a:pe)!=null?i:PA,mt=(l=(u=ve.tooltip)!=null?u:T.Tooltip)!=null?l:gPe,$t=(c=(f=ve.arrow)!=null?f:T.Arrow)!=null?c:mPe,Et=Q1(Le,Q({},ce,(p=de.popper)!=null?p:C.popper,{className:vt(Re.popper,ce==null?void 0:ce.className,(g=(m=de.popper)!=null?m:C.popper)==null?void 0:g.className)}),ae),Un=Q1(et,Q({},ge,(y=de.transition)!=null?y:C.transition),ae),Ot=Q1(mt,Q({},(v=de.tooltip)!=null?v:C.tooltip,{className:vt(Re.tooltip,(x=(w=de.tooltip)!=null?w:C.tooltip)==null?void 0:x.className)}),ae),an=Q1($t,Q({},(I=de.arrow)!=null?I:C.arrow,{className:vt(Re.arrow,(_=(R=de.arrow)!=null?R:C.arrow)==null?void 0:_.className)}),ae);return Se(M.Fragment,{children:[M.cloneElement(b,re),A(Le,Q({as:Ue??xD,placement:De,anchorEl:W?{getBoundingClientRect:()=>({top:t1.y,left:t1.x,right:t1.x,bottom:t1.y,width:0,height:0})}:Be,popperRef:Ir,open:Be?S:!1,id:P,transition:!0},ne,Et,{popperOptions:F,children:({TransitionProps:Ct})=>A(et,Q({timeout:_e.transitions.duration.shorter},Ct,Un,{children:Se(mt,Q({},Ot,{children:[he,D?A($t,Q({},an,{ref:xe})):null]}))}))}))]})}),vPe=yPe;function bPe(e){return Vt("MuiTab",e)}const wPe=Rt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),nh=wPe,SPe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],xPe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:s,disabled:l}=e,u={root:["root",i&&a&&"labelIcon",`textColor${dt(n)}`,r&&"fullWidth",o&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ut(u,bPe,t)},CPe=J(mc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${dt(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>Q({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${nh.iconWrapper}`]:Q({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${nh.selected}`]:{opacity:1},[`&.${nh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${nh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${nh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${nh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),APe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:p,onClick:g,onFocus:m,selected:y,selectionFollowsFocus:v,textColor:x="inherit",value:w,wrapped:I=!1}=r,_=lt(r,SPe),R=Q({},r,{disabled:i,disableFocusRipple:a,selected:y,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:I}),U=xPe(R),D=l&&f&&M.isValidElement(l)?M.cloneElement(l,{className:vt(U.iconWrapper,l.props.className)}):l,b=C=>{!y&&p&&p(C,w),g&&g(C)},T=C=>{v&&!y&&p&&p(C,w),m&&m(C)};return Se(CPe,Q({focusRipple:!a,className:vt(U.root,o),ref:n,role:"tab","aria-selected":y,disabled:i,onClick:b,onFocus:T,ownerState:R,tabIndex:y?0:-1},_,{children:[u==="top"||u==="start"?Se(M.Fragment,{children:[D,f]}):Se(M.Fragment,{children:[f,D]}),c]}))}),QO=APe,_Pe=Yo(A("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),EPe=Yo(A("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function TPe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function kPe(e,t,n,r={},o=()=>{}){const{ease:i=TPe,duration:a=300}=r;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=p=>{if(u){o(new Error("Animation cancelled"));return}s===null&&(s=p);const g=Math.min(1,(p-s)/a);if(t[e]=i(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(f)};return l===n?(o(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const IPe=["onChange"],PPe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function MPe(e){const{onChange:t}=e,n=lt(e,IPe),r=M.useRef(),o=M.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return pa(()=>{const a=Xb(()=>{const l=r.current;i(),l!==r.current&&t(r.current)}),s=Id(o.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),M.useEffect(()=>{i(),t(r.current)},[t]),A("div",Q({style:PPe,ref:o},n))}function OPe(e){return Vt("MuiTabScrollButton",e)}const RPe=Rt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),DPe=RPe,BPe=["className","slots","slotProps","direction","orientation","disabled"],$Pe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Ut({root:["root",n,r&&"disabled"]},OPe,t)},LPe=J(mc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>Q({width:40,flexShrink:0,opacity:.8,[`&.${DPe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),FPe=M.forwardRef(function(t,n){var r,o;const i=Bt({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:u}=i,c=lt(i,BPe),p=Fo().direction==="rtl",g=Q({isRtl:p},i),m=$Pe(g),y=(r=s.StartScrollButtonIcon)!=null?r:_Pe,v=(o=s.EndScrollButtonIcon)!=null?o:EPe,x=vo({elementType:y,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),w=vo({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return A(LPe,Q({component:"div",className:vt(m.root,a),ref:n,role:null,ownerState:g,tabIndex:null},c,{children:u==="left"?A(y,Q({},x)):A(v,Q({},w))}))}),NPe=FPe;function UPe(e){return Vt("MuiTabs",e)}const jPe=Rt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),kC=jPe,WPe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Tj=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,kj=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,D2=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},zPe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ut({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},UPe,l)},VPe=J("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${kC.scrollButtons}`]:t.scrollButtons},{[`& .${kC.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>Q({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${kC.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),HPe=J("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})(({ownerState:e})=>Q({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),qPe=J("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>Q({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),QPe=J("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>Q({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),KPe=J(MPe,{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Ij={},YPe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTabs"}),o=Fo(),i=o.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:m="primary",onChange:y,orientation:v="horizontal",ScrollButtonComponent:x=NPe,scrollButtons:w="auto",selectionFollowsFocus:I,slots:_={},slotProps:R={},TabIndicatorProps:U={},TabScrollButtonProps:D={},textColor:b="primary",value:T,variant:C="standard",visibleScrollbar:O=!1}=r,$=lt(r,WPe),j=C==="scrollable",L=v==="vertical",B=L?"scrollTop":"scrollLeft",H=L?"top":"left",q=L?"bottom":"right",Y=L?"clientHeight":"clientWidth",W=L?"height":"width",ie=Q({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:m,orientation:v,vertical:L,scrollButtons:w,textColor:b,variant:C,visibleScrollbar:O,fixed:!j,hideScrollbar:j&&!O,scrollableX:j&&!L,scrollableY:j&&L,centered:u&&!j,scrollButtonsHideMobile:!g}),le=zPe(ie),fe=vo({elementType:_.StartScrollButtonIcon,externalSlotProps:R.startScrollButtonIcon,ownerState:ie}),Ee=vo({elementType:_.EndScrollButtonIcon,externalSlotProps:R.endScrollButtonIcon,ownerState:ie}),[Ae,Ie]=M.useState(!1),[De,Ue]=M.useState(Ij),[ce,de]=M.useState({start:!1,end:!1}),[ve,he]=M.useState({overflow:"hidden",scrollbarWidth:0}),pe=new Map,ge=M.useRef(null),Ce=M.useRef(null),_e=()=>{const K=ge.current;let ee;if(K){const Me=K.getBoundingClientRect();ee={clientWidth:K.clientWidth,scrollLeft:K.scrollLeft,scrollTop:K.scrollTop,scrollLeftNormalized:Z7(K,o.direction),scrollWidth:K.scrollWidth,top:Me.top,bottom:Me.bottom,left:Me.left,right:Me.right}}let be;if(K&&T!==!1){const Me=Ce.current.children;if(Me.length>0){const we=Me[pe.get(T)];be=we?we.getBoundingClientRect():null}}return{tabsMeta:ee,tabMeta:be}},Ne=Or(()=>{const{tabsMeta:K,tabMeta:ee}=_e();let be=0,Me;if(L)Me="top",ee&&K&&(be=ee.top-K.top+K.scrollTop);else if(Me=i?"right":"left",ee&&K){const Pe=i?K.scrollLeftNormalized+K.clientWidth-K.scrollWidth:K.scrollLeft;be=(i?-1:1)*(ee[Me]-K[Me]+Pe)}const we={[Me]:be,[W]:ee?ee[W]:0};if(isNaN(De[Me])||isNaN(De[W]))Ue(we);else{const Pe=Math.abs(De[Me]-we[Me]),Ye=Math.abs(De[W]-we[W]);(Pe>=1||Ye>=1)&&Ue(we)}}),Be=(K,{animation:ee=!0}={})=>{ee?kPe(B,ge.current,K,{duration:o.transitions.duration.standard}):ge.current[B]=K},Ve=K=>{let ee=ge.current[B];L?ee+=K:(ee+=K*(i?-1:1),ee*=i&&zY()==="reverse"?-1:1),Be(ee)},wt=()=>{const K=ge.current[Y];let ee=0;const be=Array.from(Ce.current.children);for(let Me=0;MeK){Me===0&&(ee=K);break}ee+=we[Y]}return ee},xe=()=>{Ve(-1*wt())},je=()=>{Ve(wt())},We=M.useCallback(K=>{he({overflow:null,scrollbarWidth:K})},[]),Ge=()=>{const K={};K.scrollbarSizeListener=j?A(KPe,{onChange:We,className:vt(le.scrollableX,le.hideScrollbar)}):null;const ee=ce.start||ce.end,be=j&&(w==="auto"&&ee||w===!0);return K.scrollButtonStart=be?A(x,Q({slots:{StartScrollButtonIcon:_.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:fe},orientation:v,direction:i?"right":"left",onClick:xe,disabled:!ce.start},D,{className:vt(le.scrollButtons,D.className)})):null,K.scrollButtonEnd=be?A(x,Q({slots:{EndScrollButtonIcon:_.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ee},orientation:v,direction:i?"left":"right",onClick:je,disabled:!ce.end},D,{className:vt(le.scrollButtons,D.className)})):null,K},Fe=Or(K=>{const{tabsMeta:ee,tabMeta:be}=_e();if(!(!be||!ee)){if(be[H]ee[q]){const Me=ee[B]+(be[q]-ee[q]);Be(Me,{animation:K})}}}),te=Or(()=>{if(j&&w!==!1){const{scrollTop:K,scrollHeight:ee,clientHeight:be,scrollWidth:Me,clientWidth:we}=ge.current;let Pe,Ye;if(L)Pe=K>1,Ye=K1,Ye=i?ze>1:ze{const K=Xb(()=>{ge.current&&(Ne(),te())}),ee=Id(ge.current);ee.addEventListener("resize",K);let be;return typeof ResizeObserver<"u"&&(be=new ResizeObserver(K),Array.from(Ce.current.children).forEach(Me=>{be.observe(Me)})),()=>{K.clear(),ee.removeEventListener("resize",K),be&&be.disconnect()}},[Ne,te]);const Z=M.useMemo(()=>Xb(()=>{te()}),[te]);M.useEffect(()=>()=>{Z.clear()},[Z]),M.useEffect(()=>{Ie(!0)},[]),M.useEffect(()=>{Ne(),te()}),M.useEffect(()=>{Fe(Ij!==De)},[Fe,De]),M.useImperativeHandle(l,()=>({updateIndicator:Ne,updateScrollButtons:te}),[Ne,te]);const N=A(QPe,Q({},U,{className:vt(le.indicator,U.className),ownerState:ie,style:Q({},De,U.style)}));let k=0;const S=M.Children.map(c,K=>{if(!M.isValidElement(K))return null;const ee=K.props.value===void 0?k:K.props.value;pe.set(ee,k);const be=ee===T;return k+=1,M.cloneElement(K,Q({fullWidth:C==="fullWidth",indicator:be&&!Ae&&N,selected:be,selectionFollowsFocus:I,onChange:y,textColor:b,value:ee},k===1&&T===!1&&!K.props.tabIndex?{tabIndex:0}:{}))}),P=K=>{const ee=Ce.current,be=gi(ee).activeElement;if(be.getAttribute("role")!=="tab")return;let we=v==="horizontal"?"ArrowLeft":"ArrowUp",Pe=v==="horizontal"?"ArrowRight":"ArrowDown";switch(v==="horizontal"&&i&&(we="ArrowRight",Pe="ArrowLeft"),K.key){case we:K.preventDefault(),D2(ee,be,kj);break;case Pe:K.preventDefault(),D2(ee,be,Tj);break;case"Home":K.preventDefault(),D2(ee,null,Tj);break;case"End":K.preventDefault(),D2(ee,null,kj);break}},V=Ge();return Se(VPe,Q({className:vt(le.root,f),ownerState:ie,ref:n,as:p},$,{children:[V.scrollButtonStart,V.scrollbarSizeListener,Se(HPe,{className:le.scroller,ownerState:ie,style:{overflow:ve.overflow,[L?`margin${i?"Left":"Right"}`:"marginBottom"]:O?void 0:-ve.scrollbarWidth},ref:ge,onScroll:Z,children:[A(qPe,{"aria-label":a,"aria-labelledby":s,"aria-orientation":v==="vertical"?"vertical":null,className:le.flexContainer,ownerState:ie,onKeyDown:P,ref:Ce,role:"tablist",children:S}),Ae&&N]}),V.scrollButtonEnd]}))}),nJ=YPe;function GPe(e){return Vt("MuiTextField",e)}Rt("MuiTextField",["root"]);const JPe=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],XPe={standard:VG,filled:FG,outlined:ZG},ZPe=e=>{const{classes:t}=e;return Ut({root:["root"]},GPe,t)},eMe=J(NG,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),tMe=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:m,id:y,InputLabelProps:v,inputProps:x,InputProps:w,inputRef:I,label:_,maxRows:R,minRows:U,multiline:D=!1,name:b,onBlur:T,onChange:C,onFocus:O,placeholder:$,required:j=!1,rows:L,select:B=!1,SelectProps:H,type:q,value:Y,variant:W="outlined"}=r,ie=lt(r,JPe),le=Q({},r,{autoFocus:i,color:l,disabled:c,error:f,fullWidth:g,multiline:D,required:j,select:B,variant:W}),fe=ZPe(le),Ee={};W==="outlined"&&(v&&typeof v.shrink<"u"&&(Ee.notched=v.shrink),Ee.label=_),B&&((!H||!H.native)&&(Ee.id=void 0),Ee["aria-describedby"]=void 0);const Ae=Xw(y),Ie=m&&Ae?`${Ae}-helper-text`:void 0,De=_&&Ae?`${Ae}-label`:void 0,Ue=XPe[W],ce=A(Ue,Q({"aria-describedby":Ie,autoComplete:o,autoFocus:i,defaultValue:u,fullWidth:g,multiline:D,name:b,rows:L,maxRows:R,minRows:U,type:q,value:Y,id:Ae,inputRef:I,onBlur:T,onChange:C,onFocus:O,placeholder:$,inputProps:x},Ee,w));return Se(eMe,Q({className:vt(fe.root,s),disabled:c,error:f,fullWidth:g,ref:n,required:j,color:l,variant:W,ownerState:le},ie,{children:[_!=null&&_!==""&&A(NIe,Q({htmlFor:Ae,id:De},v,{children:_})),B?A(OD,Q({"aria-describedby":Ie,id:Ae,labelId:De,value:Y,input:ce},H,{children:a})):ce,m&&A(qke,Q({id:Ie},p,{children:m}))]}))}),RD=tMe;function Ls(e){return Ls=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ls(e)}function Eu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nMe(e,t){if(Ls(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Ls(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rJ(e){var t=nMe(e,"string");return Ls(t)==="symbol"?t:String(t)}function Pj(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:{};Eu(this,e),this.init(t,n)}return Tu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=n||iMe,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(n){this.debug=n}},{key:"log",value:function(){for(var n=arguments.length,r=new Array(n),o=0;o1?r-1:0),i=1;i-1?s.replace(/###/g,"."):s}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function Bj(e,t,n){var r=DD(e,t,Object),o=r.obj,i=r.k;o[i]=n}function lMe(e,t,n,r){var o=DD(e,t,Object),i=o.obj,a=o.k;i[a]=i[a]||[],r&&(i[a]=i[a].concat(n)),r||i[a].push(n)}function OA(e,t){var n=DD(e,t),r=n.obj,o=n.k;if(r)return r[o]}function uMe(e,t,n){var r=OA(e,n);return r!==void 0?r:OA(t,n)}function sJ(e,t,n){for(var r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):sJ(e[r],t[r],n):e[r]=t[r]);return e}function Mm(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var cMe={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function dMe(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return cMe[t]}):e}var iT=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,fMe=[" ",",","?","!",";"];function pMe(e,t,n){t=t||"",n=n||"";var r=fMe.filter(function(s){return t.indexOf(s)<0&&n.indexOf(s)<0});if(r.length===0)return!0;var o=new RegExp("(".concat(r.map(function(s){return s==="?"?"\\?":s}).join("|"),")")),i=!o.test(e);if(!i){var a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function RA(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;ii+a;)a++,s=r.slice(i,i+a).join(n),l=o[s];if(l===void 0)return;if(l===null)return null;if(t.endsWith(s)){if(typeof l=="string")return l;if(s&&typeof l[s]=="string")return l[s]}var u=r.slice(i+a).join(n);return u?RA(l,u,n):void 0}o=o[r[i]]}return o}}function $j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function B2(e){for(var t=1;t"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}}var mMe=function(e){oT(n,e);var t=hMe(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Eu(this,n),o=t.call(this),iT&&cp.call(md(o)),o.data=r||{},o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.options.ignoreJSONStructure===void 0&&(o.options.ignoreJSONStructure=!0),o}return Tu(n,[{key:"addNamespaces",value:function(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}},{key:"removeNamespaces",value:function(o){var i=this.options.ns.indexOf(o);i>-1&&this.options.ns.splice(i,1)}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator,u=s.ignoreJSONStructure!==void 0?s.ignoreJSONStructure:this.options.ignoreJSONStructure,c=[o,i];a&&typeof a!="string"&&(c=c.concat(a)),a&&typeof a=="string"&&(c=c.concat(l?a.split(l):a)),o.indexOf(".")>-1&&(c=o.split("."));var f=OA(this.data,c);return f||!u||typeof a!="string"?f:RA(this.data&&this.data[o]&&this.data[o][i],a,l)}},{key:"addResource",value:function(o,i,a,s){var l=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var c=[o,i];a&&(c=c.concat(u?a.split(u):a)),o.indexOf(".")>-1&&(c=o.split("."),s=i,i=c[1]),this.addNamespaces(i),Bj(this.data,c,s),l.silent||this.emit("added",o,i,a,s)}},{key:"addResources",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var l in a)(typeof a[l]=="string"||Object.prototype.toString.apply(a[l])==="[object Array]")&&this.addResource(o,i,l,a[l],{silent:!0});s.silent||this.emit("added",o,i,a)}},{key:"addResourceBundle",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},c=[o,i];o.indexOf(".")>-1&&(c=o.split("."),s=a,a=i,i=c[1]),this.addNamespaces(i);var f=OA(this.data,c)||{};s?sJ(f,a,l):f=B2(B2({},f),a),Bj(this.data,c,f),u.silent||this.emit("added",o,i,a)}},{key:"removeResourceBundle",value:function(o,i){this.hasResourceBundle(o,i)&&delete this.data[o][i],this.removeNamespaces(i),this.emit("removed",o,i)}},{key:"hasResourceBundle",value:function(o,i){return this.getResource(o,i)!==void 0}},{key:"getResourceBundle",value:function(o,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?B2(B2({},{}),this.getResource(o,i)):this.getResource(o,i)}},{key:"getDataByLanguage",value:function(o){return this.data[o]}},{key:"hasLanguageSomeTranslations",value:function(o){var i=this.getDataByLanguage(o),a=i&&Object.keys(i)||[];return!!a.find(function(s){return i[s]&&Object.keys(i[s]).length>0})}},{key:"toJSON",value:function(){return this.data}}]),n}(cp),lJ={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,n,r,o,i){var a=this;return t.forEach(function(s){a.processors[s]&&(n=a.processors[s].process(n,r,o,i))}),n}};function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ta(e){for(var t=1;t"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}}var Fj={},Nj=function(e){oT(n,e);var t=yMe(n);function n(r){var o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Eu(this,n),o=t.call(this),iT&&cp.call(md(o)),sMe(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,md(o)),o.options=i,o.options.keySeparator===void 0&&(o.options.keySeparator="."),o.logger=nc.create("translator"),o}return Tu(n,[{key:"changeLanguage",value:function(o){o&&(this.language=o)}},{key:"exists",value:function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;var a=this.resolve(o,i);return a&&a.res!==void 0}},{key:"extractFromKey",value:function(o,i){var a=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;a===void 0&&(a=":");var s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,l=i.ns||this.options.defaultNS||[],u=a&&o.indexOf(a)>-1,c=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!pMe(o,a,s);if(u&&!c){var f=o.match(this.interpolator.nestingRegexp);if(f&&f.length>0)return{key:o,namespaces:l};var p=o.split(a);(a!==s||a===s&&this.options.ns.indexOf(p[0])>-1)&&(l=p.shift()),o=p.join(s)}return typeof l=="string"&&(l=[l]),{key:o,namespaces:l}}},{key:"translate",value:function(o,i,a){var s=this;if(Ls(i)!=="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),Ls(i)==="object"&&(i=ta({},i)),i||(i={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);var l=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,u=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,c=this.extractFromKey(o[o.length-1],i),f=c.key,p=c.namespaces,g=p[p.length-1],m=i.lng||this.language,y=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(m&&m.toLowerCase()==="cimode"){if(y){var v=i.nsSeparator||this.options.nsSeparator;return l?{res:"".concat(g).concat(v).concat(f),usedKey:f,exactUsedKey:f,usedLng:m,usedNS:g}:"".concat(g).concat(v).concat(f)}return l?{res:f,usedKey:f,exactUsedKey:f,usedLng:m,usedNS:g}:f}var x=this.resolve(o,i),w=x&&x.res,I=x&&x.usedKey||f,_=x&&x.exactUsedKey||f,R=Object.prototype.toString.apply(w),U=["[object Number]","[object Function]","[object RegExp]"],D=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,b=!this.i18nFormat||this.i18nFormat.handleAsObject,T=typeof w!="string"&&typeof w!="boolean"&&typeof w!="number";if(b&&w&&T&&U.indexOf(R)<0&&!(typeof D=="string"&&R==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var C=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,w,ta(ta({},i),{},{ns:p})):"key '".concat(f," (").concat(this.language,")' returned an object instead of string.");return l?(x.res=C,x):C}if(u){var O=R==="[object Array]",$=O?[]:{},j=O?_:I;for(var L in w)if(Object.prototype.hasOwnProperty.call(w,L)){var B="".concat(j).concat(u).concat(L);$[L]=this.translate(B,ta(ta({},i),{joinArrays:!1,ns:p})),$[L]===B&&($[L]=w[L])}w=$}}else if(b&&typeof D=="string"&&R==="[object Array]")w=w.join(D),w&&(w=this.extendTranslation(w,o,i,a));else{var H=!1,q=!1,Y=i.count!==void 0&&typeof i.count!="string",W=n.hasDefaultValue(i),ie=Y?this.pluralResolver.getSuffix(m,i.count,i):"",le=i["defaultValue".concat(ie)]||i.defaultValue;!this.isValidLookup(w)&&W&&(H=!0,w=le),this.isValidLookup(w)||(q=!0,w=f);var fe=i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ee=fe&&q?void 0:w,Ae=W&&le!==w&&this.options.updateMissing;if(q||H||Ae){if(this.logger.log(Ae?"updateKey":"missingKey",m,g,f,Ae?le:w),u){var Ie=this.resolve(f,ta(ta({},i),{},{keySeparator:!1}));Ie&&Ie.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var De=[],Ue=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ue&&Ue[0])for(var ce=0;ce1&&arguments[1]!==void 0?arguments[1]:{},s,l,u,c,f;return typeof o=="string"&&(o=[o]),o.forEach(function(p){if(!i.isValidLookup(s)){var g=i.extractFromKey(p,a),m=g.key;l=m;var y=g.namespaces;i.options.fallbackNS&&(y=y.concat(i.options.fallbackNS));var v=a.count!==void 0&&typeof a.count!="string",x=v&&!a.ordinal&&a.count===0&&i.pluralResolver.shouldUseIntlApi(),w=a.context!==void 0&&(typeof a.context=="string"||typeof a.context=="number")&&a.context!=="",I=a.lngs?a.lngs:i.languageUtils.toResolveHierarchy(a.lng||i.language,a.fallbackLng);y.forEach(function(_){i.isValidLookup(s)||(f=_,!Fj["".concat(I[0],"-").concat(_)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(f)&&(Fj["".concat(I[0],"-").concat(_)]=!0,i.logger.warn('key "'.concat(l,'" for languages "').concat(I.join(", "),`" won't get resolved as namespace "`).concat(f,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(function(R){if(!i.isValidLookup(s)){c=R;var U=[m];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(U,m,R,_,a);else{var D;v&&(D=i.pluralResolver.getSuffix(R,a.count,a));var b="".concat(i.options.pluralSeparator,"zero");if(v&&(U.push(m+D),x&&U.push(m+b)),w){var T="".concat(m).concat(i.options.contextSeparator).concat(a.context);U.push(T),v&&(U.push(T+D),x&&U.push(T+b))}}for(var C;C=U.pop();)i.isValidLookup(s)||(u=C,s=i.getResource(R,_,C,a))}}))})}}),{res:s,usedKey:l,exactUsedKey:u,usedLng:c,usedNS:f}}},{key:"isValidLookup",value:function(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}},{key:"getResource",value:function(o,i,a){var s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,i,a,s):this.resourceStore.getResource(o,i,a,s)}}],[{key:"hasDefaultValue",value:function(o){var i="defaultValue";for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)&&i===a.substring(0,i.length)&&o[a]!==void 0)return!0;return!1}}]),n}(cp);function oP(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Uj=function(){function e(t){Eu(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nc.create("languageUtils")}return Tu(e,[{key:"getScriptPartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return null;var r=n.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}},{key:"getLanguagePartFromCode",value:function(n){if(!n||n.indexOf("-")<0)return n;var r=n.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],o=n.split("-");return this.options.lowerCaseLng?o=o.map(function(i){return i.toLowerCase()}):o.length===2?(o[0]=o[0].toLowerCase(),o[1]=o[1].toUpperCase(),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=oP(o[1].toLowerCase()))):o.length===3&&(o[0]=o[0].toLowerCase(),o[1].length===2&&(o[1]=o[1].toUpperCase()),o[0]!=="sgn"&&o[2].length===2&&(o[2]=o[2].toUpperCase()),r.indexOf(o[1].toLowerCase())>-1&&(o[1]=oP(o[1].toLowerCase())),r.indexOf(o[2].toLowerCase())>-1&&(o[2]=oP(o[2].toLowerCase()))),o.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n}},{key:"isSupportedCode",value:function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1}},{key:"getBestMatchFromCodes",value:function(n){var r=this;if(!n)return null;var o;return n.forEach(function(i){if(!o){var a=r.formatLanguageCode(i);(!r.options.supportedLngs||r.isSupportedCode(a))&&(o=a)}}),!o&&this.options.supportedLngs&&n.forEach(function(i){if(!o){var a=r.getLanguagePartFromCode(i);if(r.isSupportedCode(a))return o=a;o=r.options.supportedLngs.find(function(s){if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&s.indexOf(a)===0)return s})}}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}},{key:"getFallbackCodes",value:function(n,r){if(!n)return[];if(typeof n=="function"&&(n=n(r)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!r)return n.default||[];var o=n[r];return o||(o=n[this.getScriptPartFromCode(r)]),o||(o=n[this.formatLanguageCode(r)]),o||(o=n[this.getLanguagePartFromCode(r)]),o||(o=n.default),o||[]}},{key:"toResolveHierarchy",value:function(n,r){var o=this,i=this.getFallbackCodes(r||this.options.fallbackLng||[],n),a=[],s=function(u){u&&(o.isSupportedCode(u)?a.push(u):o.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&s(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&s(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&s(this.getLanguagePartFromCode(n))):typeof n=="string"&&s(this.formatLanguageCode(n)),i.forEach(function(l){a.indexOf(l)<0&&s(o.formatLanguageCode(l))}),a}}]),e}(),bMe=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],wMe={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}},SMe=["v1","v2","v3"],jj={zero:0,one:1,two:2,few:3,many:4,other:5};function xMe(){var e={};return bMe.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:wMe[t.fc]}})}),e}var CMe=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Eu(this,e),this.languageUtils=t,this.options=n,this.logger=nc.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=xMe()}return Tu(e,[{key:"addRule",value:function(n,r){this.rules[n]=r}},{key:"getRule",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]}},{key:"needsPlural",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return this.shouldUseIntlApi()?o&&o.resolvedOptions().pluralCategories.length>1:o&&o.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,o).map(function(i){return"".concat(r).concat(i)})}},{key:"getSuffixes",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort(function(a,s){return jj[a]-jj[s]}).map(function(a){return"".concat(r.options.prepend).concat(a)}):i.numbers.map(function(a){return r.getSuffix(n,a,o)}):[]}},{key:"getSuffix",value:function(n,r){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(n,o);return i?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(i.select(r)):this.getSuffixRetroCompatible(i,r):(this.logger.warn("no plural rule found for: ".concat(n)),"")}},{key:"getSuffixRetroCompatible",value:function(n,r){var o=this,i=n.noAbs?n.plurals(r):n.plurals(Math.abs(r)),a=n.numbers[i];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var s=function(){return o.options.prepend&&a.toString()?o.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):s():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?s():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}},{key:"shouldUseIntlApi",value:function(){return!SMe.includes(this.options.compatibilityJSON)}}]),e}();function Wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Jl(e){for(var t=1;t3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=uMe(e,t,n);return!i&&o&&typeof n=="string"&&(i=RA(e,n,r),i===void 0&&(i=RA(t,n,r))),i}var AMe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Eu(this,e),this.logger=nc.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return Tu(e,[{key:"init",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var r=n.interpolation;this.escape=r.escape!==void 0?r.escape:dMe,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?Mm(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?Mm(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?Mm(r.nestingPrefix):r.nestingPrefixEscaped||Mm("$t("),this.nestingSuffix=r.nestingSuffix?Mm(r.nestingSuffix):r.nestingSuffixEscaped||Mm(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var o="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(o,"g")}},{key:"interpolate",value:function(n,r,o,i){var a=this,s,l,u,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function f(v){return v.replace(/\$/g,"$$$$")}var p=function(x){if(x.indexOf(a.formatSeparator)<0){var w=zj(r,c,x,a.options.keySeparator,a.options.ignoreJSONStructure);return a.alwaysFormat?a.format(w,void 0,o,Jl(Jl(Jl({},i),r),{},{interpolationkey:x})):w}var I=x.split(a.formatSeparator),_=I.shift().trim(),R=I.join(a.formatSeparator).trim();return a.format(zj(r,c,_,a.options.keySeparator,a.options.ignoreJSONStructure),R,o,Jl(Jl(Jl({},i),r),{},{interpolationkey:_}))};this.resetRegExp();var g=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,m=i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,y=[{regex:this.regexpUnescape,safeValue:function(x){return f(x)}},{regex:this.regexp,safeValue:function(x){return a.escapeValue?f(a.escape(x)):f(x)}}];return y.forEach(function(v){for(u=0;s=v.regex.exec(n);){var x=s[1].trim();if(l=p(x),l===void 0)if(typeof g=="function"){var w=g(n,s,i);l=typeof w=="string"?w:""}else if(i&&Object.prototype.hasOwnProperty.call(i,x))l="";else if(m){l=s[0];continue}else a.logger.warn("missed to pass in variable ".concat(x," for interpolating ").concat(n)),l="";else typeof l!="string"&&!a.useRawValueToEscape&&(l=Dj(l));var I=v.safeValue(l);if(n=n.replace(s[0],I),m?(v.regex.lastIndex+=l.length,v.regex.lastIndex-=s[0].length):v.regex.lastIndex=0,u++,u>=a.maxReplaces)break}}),n}},{key:"nest",value:function(n,r){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a,s,l;function u(g,m){var y=this.nestingOptionsSeparator;if(g.indexOf(y)<0)return g;var v=g.split(new RegExp("".concat(y,"[ ]*{"))),x="{".concat(v[1]);g=v[0],x=this.interpolate(x,l);var w=x.match(/'/g),I=x.match(/"/g);(w&&w.length%2===0&&!I||I.length%2!==0)&&(x=x.replace(/'/g,'"'));try{l=JSON.parse(x),m&&(l=Jl(Jl({},m),l))}catch(_){return this.logger.warn("failed parsing options string in nesting for key ".concat(g),_),"".concat(g).concat(y).concat(x)}return delete l.defaultValue,g}for(;a=this.nestingRegexp.exec(n);){var c=[];l=Jl({},i),l=l.replace&&typeof l.replace!="string"?l.replace:l,l.applyPostProcessor=!1,delete l.defaultValue;var f=!1;if(a[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(a[1])){var p=a[1].split(this.formatSeparator).map(function(g){return g.trim()});a[1]=p.shift(),c=p,f=!0}if(s=r(u.call(this,a[1].trim(),l),l),s&&a[0]===n&&typeof s!="string")return s;typeof s!="string"&&(s=Dj(s)),s||(this.logger.warn("missed to resolve ".concat(a[1]," for nesting ").concat(n)),s=""),f&&(s=c.reduce(function(g,m){return o.format(g,m,i.lng,Jl(Jl({},i),{},{interpolationkey:a[1].trim()}))},s.trim())),n=n.replace(a[0],s),this.regexp.lastIndex=0}return n}}]),e}();function Vj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);if(t==="currency"&&o.indexOf(":")<0)n.currency||(n.currency=o.trim());else if(t==="relativetime"&&o.indexOf(":")<0)n.range||(n.range=o.trim());else{var i=o.split(";");i.forEach(function(a){if(a){var s=a.split(":"),l=oMe(s),u=l[0],c=l.slice(1),f=c.join(":").trim().replace(/^'+|'+$/g,"");n[u.trim()]||(n[u.trim()]=f),f==="false"&&(n[u.trim()]=!1),f==="true"&&(n[u.trim()]=!0),isNaN(f)||(n[u.trim()]=parseInt(f,10))}})}}return{formatName:t,formatOptions:n}}function Om(e){var t={};return function(r,o,i){var a=o+JSON.stringify(i),s=t[a];return s||(s=e(o,i),t[a]=s),s(r)}}var EMe=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Eu(this,e),this.logger=nc.create("formatter"),this.options=t,this.formats={number:Om(function(n,r){var o=new Intl.NumberFormat(n,Qc({},r));return function(i){return o.format(i)}}),currency:Om(function(n,r){var o=new Intl.NumberFormat(n,Qc(Qc({},r),{},{style:"currency"}));return function(i){return o.format(i)}}),datetime:Om(function(n,r){var o=new Intl.DateTimeFormat(n,Qc({},r));return function(i){return o.format(i)}}),relativetime:Om(function(n,r){var o=new Intl.RelativeTimeFormat(n,Qc({},r));return function(i){return o.format(i,r.range||"day")}}),list:Om(function(n,r){var o=new Intl.ListFormat(n,Qc({},r));return function(i){return o.format(i)}})},this.init(t)}return Tu(e,[{key:"init",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},o=r.interpolation;this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||","}},{key:"add",value:function(n,r){this.formats[n.toLowerCase().trim()]=r}},{key:"addCached",value:function(n,r){this.formats[n.toLowerCase().trim()]=Om(r)}},{key:"format",value:function(n,r,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=r.split(this.formatSeparator),l=s.reduce(function(u,c){var f=_Me(c),p=f.formatName,g=f.formatOptions;if(i.formats[p]){var m=u;try{var y=a&&a.formatParams&&a.formatParams[a.interpolationkey]||{},v=y.locale||y.lng||a.locale||a.lng||o;m=i.formats[p](u,v,Qc(Qc(Qc({},g),a),y))}catch(x){i.logger.warn(x)}return m}else i.logger.warn("there was no format function for ".concat(p));return u},n);return l}}]),e}();function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function qj(e){for(var t=1;t"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 IMe(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}var PMe=function(e){oT(n,e);var t=TMe(n);function n(r,o,i){var a,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Eu(this,n),a=t.call(this),iT&&cp.call(md(a)),a.backend=r,a.store=o,a.services=i,a.languageUtils=i.languageUtils,a.options=s,a.logger=nc.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.maxRetries=s.maxRetries>=0?s.maxRetries:5,a.retryTimeout=s.retryTimeout>=1?s.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(i,s.backend,s),a}return Tu(n,[{key:"queueLoad",value:function(o,i,a,s){var l=this,u={},c={},f={},p={};return o.forEach(function(g){var m=!0;i.forEach(function(y){var v="".concat(g,"|").concat(y);!a.reload&&l.store.hasResourceBundle(g,y)?l.state[v]=2:l.state[v]<0||(l.state[v]===1?c[v]===void 0&&(c[v]=!0):(l.state[v]=1,m=!1,c[v]===void 0&&(c[v]=!0),u[v]===void 0&&(u[v]=!0),p[y]===void 0&&(p[y]=!0)))}),m||(f[g]=!0)}),(Object.keys(u).length||Object.keys(c).length)&&this.queue.push({pending:c,pendingCount:Object.keys(c).length,loaded:{},errors:[],callback:s}),{toLoad:Object.keys(u),pending:Object.keys(c),toLoadLanguages:Object.keys(f),toLoadNamespaces:Object.keys(p)}}},{key:"loaded",value:function(o,i,a){var s=o.split("|"),l=s[0],u=s[1];i&&this.emit("failedLoading",l,u,i),a&&this.store.addResourceBundle(l,u,a),this.state[o]=i?-1:2;var c={};this.queue.forEach(function(f){lMe(f.loaded,[l],u),IMe(f,o),i&&f.errors.push(i),f.pendingCount===0&&!f.done&&(Object.keys(f.loaded).forEach(function(p){c[p]||(c[p]={});var g=f.loaded[p];g.length&&g.forEach(function(m){c[p][m]===void 0&&(c[p][m]=!0)})}),f.done=!0,f.errors.length?f.callback(f.errors):f.callback())}),this.emit("loaded",c),this.queue=this.queue.filter(function(f){return!f.done})}},{key:"read",value:function(o,i,a){var s=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,c=arguments.length>5?arguments[5]:void 0;if(!o.length)return c(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:i,fcName:a,tried:l,wait:u,callback:c});return}this.readingCalls++;var f=function(y,v){if(s.readingCalls--,s.waitingReads.length>0){var x=s.waitingReads.shift();s.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(y&&v&&l2&&arguments[2]!==void 0?arguments[2]:{},l=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),l&&l();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof i=="string"&&(i=[i]);var u=this.queueLoad(o,i,s,l);if(!u.toLoad.length)return u.pending.length||l(),null;u.toLoad.forEach(function(c){a.loadOne(c)})}},{key:"load",value:function(o,i,a){this.prepareLoading(o,i,{},a)}},{key:"reload",value:function(o,i,a){this.prepareLoading(o,i,{reload:!0},a)}},{key:"loadOne",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",s=o.split("|"),l=s[0],u=s[1];this.read(l,u,"read",void 0,void 0,function(c,f){c&&i.logger.warn("".concat(a,"loading namespace ").concat(u," for language ").concat(l," failed"),c),!c&&f&&i.logger.log("".concat(a,"loaded namespace ").concat(u," for language ").concat(l),f),i.loaded(o,c,f)})}},{key:"saveMissing",value:function(o,i,a,s,l){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn('did not save key "'.concat(a,'" as the namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(a==null||a==="")){if(this.backend&&this.backend.create){var f=qj(qj({},u),{},{isUpdate:l}),p=this.backend.create.bind(this.backend);if(p.length<6)try{var g;p.length===5?g=p(o,i,a,s,f):g=p(o,i,a,s),g&&typeof g.then=="function"?g.then(function(m){return c(null,m)}).catch(c):c(null,g)}catch(m){c(m)}else p(o,i,a,s,c,f)}!o||!o[0]||this.store.addResource(o[0],i,a,s)}}}]),n}(cp);function Qj(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var n={};if(Ls(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),Ls(t[2])==="object"||Ls(t[3])==="object"){var r=t[3]||t[2];Object.keys(r).forEach(function(o){n[o]=r[o]})}return n},interpolation:{escapeValue:!0,format:function(t,n,r,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Kj(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Uu(e){for(var t=1;t"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 $2(){}function RMe(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}var DA=function(e){oT(n,e);var t=MMe(n);function n(){var r,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(Eu(this,n),r=t.call(this),iT&&cp.call(md(r)),r.options=Kj(o),r.services={},r.logger=nc,r.modules={external:[]},RMe(md(r)),i&&!r.isInitialized&&!o.isClone){if(!r.options.initImmediate)return r.init(o,i),oS(r,md(r));setTimeout(function(){r.init(o,i)},0)}return r}return Tu(n,[{key:"init",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(a=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));var s=Qj();this.options=Uu(Uu(Uu({},s),this.options),Kj(i)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Uu(Uu({},s.interpolation),this.options.interpolation)),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function l(x){return x?typeof x=="function"?new x:x:null}if(!this.options.isClone){this.modules.logger?nc.init(l(this.modules.logger),this.options):nc.init(null,this.options);var u;this.modules.formatter?u=this.modules.formatter:typeof Intl<"u"&&(u=EMe);var c=new Uj(this.options);this.store=new mMe(this.options.resources,this.options);var f=this.services;f.logger=nc,f.resourceStore=this.store,f.languageUtils=c,f.pluralResolver=new CMe(c,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u&&(!this.options.interpolation.format||this.options.interpolation.format===s.interpolation.format)&&(f.formatter=l(u),f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new AMe(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new PMe(l(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(x){for(var w=arguments.length,I=new Array(w>1?w-1:0),_=1;_1?w-1:0),_=1;_0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var g=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];g.forEach(function(x){o[x]=function(){var w;return(w=o.store)[x].apply(w,arguments)}});var m=["addResource","addResources","addResourceBundle","removeResourceBundle"];m.forEach(function(x){o[x]=function(){var w;return(w=o.store)[x].apply(w,arguments),o}});var y=n1(),v=function(){var w=function(_,R){o.isInitialized&&!o.initializedStoreOnce&&o.logger.warn("init: i18next is already initialized. You should call init just once!"),o.isInitialized=!0,o.options.isClone||o.logger.log("initialized",o.options),o.emit("initialized",o.options),y.resolve(R),a(_,R)};if(o.languages&&o.options.compatibilityAPI!=="v1"&&!o.isInitialized)return w(null,o.t.bind(o));o.changeLanguage(o.options.lng,w)};return this.options.resources||!this.options.initImmediate?v():setTimeout(v,0),y}},{key:"loadResources",value:function(o){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$2,s=a,l=typeof o=="string"?o:this.language;if(typeof o=="function"&&(s=o),!this.options.resources||this.options.partialBundledLanguages){if(l&&l.toLowerCase()==="cimode")return s();var u=[],c=function(g){if(g){var m=i.services.languageUtils.toResolveHierarchy(g);m.forEach(function(y){u.indexOf(y)<0&&u.push(y)})}};if(l)c(l);else{var f=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);f.forEach(function(p){return c(p)})}this.options.preload&&this.options.preload.forEach(function(p){return c(p)}),this.services.backendConnector.load(u,this.options.ns,function(p){!p&&!i.resolvedLanguage&&i.language&&i.setResolvedLanguage(i.language),s(p)})}else s(null)}},{key:"reloadResources",value:function(o,i,a){var s=n1();return o||(o=this.languages),i||(i=this.options.ns),a||(a=$2),this.services.backendConnector.reload(o,i,function(l){s.resolve(),a(l)}),s}},{key:"use",value:function(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&lJ.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}},{key:"setResolvedLanguage",value:function(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(var i=0;i-1)&&this.store.hasLanguageSomeTranslations(a)){this.resolvedLanguage=a;break}}}},{key:"changeLanguage",value:function(o,i){var a=this;this.isLanguageChangingTo=o;var s=n1();this.emit("languageChanging",o);var l=function(p){a.language=p,a.languages=a.services.languageUtils.toResolveHierarchy(p),a.resolvedLanguage=void 0,a.setResolvedLanguage(p)},u=function(p,g){g?(l(g),a.translator.changeLanguage(g),a.isLanguageChangingTo=void 0,a.emit("languageChanged",g),a.logger.log("languageChanged",g)):a.isLanguageChangingTo=void 0,s.resolve(function(){return a.t.apply(a,arguments)}),i&&i(p,function(){return a.t.apply(a,arguments)})},c=function(p){!o&&!p&&a.services.languageDetector&&(p=[]);var g=typeof p=="string"?p:a.services.languageUtils.getBestMatchFromCodes(p);g&&(a.language||l(g),a.translator.language||a.translator.changeLanguage(g),a.services.languageDetector&&a.services.languageDetector.cacheUserLanguage&&a.services.languageDetector.cacheUserLanguage(g)),a.loadResources(g,function(m){u(m,g)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?c(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(c):this.services.languageDetector.detect(c):c(o),s}},{key:"getFixedT",value:function(o,i,a){var s=this,l=function u(c,f){var p;if(Ls(f)!=="object"){for(var g=arguments.length,m=new Array(g>2?g-2:0),y=2;y1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var s=this.resolvedLanguage||this.languages[0],l=this.options?this.options.fallbackLng:!1,u=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;var c=function(g,m){var y=i.services.backendConnector.state["".concat(g,"|").concat(m)];return y===-1||y===2};if(a.precheck){var f=a.precheck(this,c);if(f!==void 0)return f}return!!(this.hasResourceBundle(s,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||c(s,o)&&(!l||c(u,o)))}},{key:"loadNamespaces",value:function(o,i){var a=this,s=n1();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(function(l){a.options.ns.indexOf(l)<0&&a.options.ns.push(l)}),this.loadResources(function(l){s.resolve(),i&&i(l)}),s):(i&&i(),Promise.resolve())}},{key:"loadLanguages",value:function(o,i){var a=n1();typeof o=="string"&&(o=[o]);var s=this.options.preload||[],l=o.filter(function(u){return s.indexOf(u)<0});return l.length?(this.options.preload=s.concat(l),this.loadResources(function(u){a.resolve(),i&&i(u)}),a):(i&&i(),Promise.resolve())}},{key:"dir",value:function(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";var i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],a=this.services&&this.services.languageUtils||new Uj(Qj());return i.indexOf(a.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var o=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$2,s=Uu(Uu(Uu({},this.options),i),{isClone:!0}),l=new n(s);(i.debug!==void 0||i.prefix!==void 0)&&(l.logger=l.logger.clone(i));var u=["store","services","language"];return u.forEach(function(c){l[c]=o[c]}),l.services=Uu({},this.services),l.services.utils={hasLoadedNamespace:l.hasLoadedNamespace.bind(l)},l.translator=new Nj(l.services,l.options),l.translator.on("*",function(c){for(var f=arguments.length,p=new Array(f>1?f-1:0),g=1;g0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new DA(e,t)});var ma=DA.createInstance();ma.createInstance=DA.createInstance;ma.createInstance;ma.dir;ma.init;ma.loadResources;ma.reloadResources;ma.use;ma.changeLanguage;ma.getFixedT;ma.t;ma.exists;ma.setDefaultNamespace;ma.hasLoadedNamespace;ma.loadNamespaces;ma.loadLanguages;function DMe(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],o=t.options?t.options.fallbackLng:!1,i=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var a=function(l,u){var c=t.services.backendConnector.state["".concat(l,"|").concat(u)];return c===-1||c===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||a(r,e)&&(!o||a(i,e)))}function $Me(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return KO("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(i,a){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!a(i.isLanguageChangingTo,e))return!1}}):BMe(e,t,n)}var LMe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,FMe={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},NMe=function(t){return FMe[t]},UMe=function(t){return t.replace(LMe,NMe)};function Xj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:{};YO=Zj(Zj({},YO),e)}function WMe(){return YO}var uJ;function zMe(e){uJ=e}function VMe(){return uJ}var HMe={type:"3rdParty",init:function(t){jMe(t.options.react),zMe(t)}},qMe=M.createContext(),QMe=function(){function e(){Eu(this,e),this.usedNamespaces={}}return Tu(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(o){r.usedNamespaces[o]||(r.usedNamespaces[o]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function KMe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,o=c}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function YMe(e,t){return oJ(e)||KMe(e,t)||iJ(e,t)||aJ()}function eW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function iP(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=M.useContext(qMe)||{},o=r.i18n,i=r.defaultNS,a=n||o||VMe();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new QMe),!a){KO("You will need to pass in an i18next instance by using initReactI18next");var s=function(T,C){return typeof C=="string"?C:C&&Ls(C)==="object"&&typeof C.defaultValue=="string"?C.defaultValue:Array.isArray(T)?T[T.length-1]:T},l=[s,{},!1];return l.t=s,l.i18n={},l.ready=!1,l}a.options.react&&a.options.react.wait!==void 0&&KO("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var u=iP(iP(iP({},WMe()),a.options.react),t),c=u.useSuspense,f=u.keyPrefix,p=e||i||a.options&&a.options.defaultNS;p=typeof p=="string"?[p]:p||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(p);var g=(a.isInitialized||a.initializedStoreOnce)&&p.every(function(b){return $Me(b,a,u)});function m(){return a.getFixedT(null,u.nsMode==="fallback"?p:p[0],f)}var y=M.useState(m),v=YMe(y,2),x=v[0],w=v[1],I=p.join(),_=GMe(I),R=M.useRef(!0);M.useEffect(function(){var b=u.bindI18n,T=u.bindI18nStore;R.current=!0,!g&&!c&&Jj(a,p,function(){R.current&&w(m)}),g&&_&&_!==I&&R.current&&w(m);function C(){R.current&&w(m)}return b&&a&&a.on(b,C),T&&a&&a.store.on(T,C),function(){R.current=!1,b&&a&&b.split(" ").forEach(function(O){return a.off(O,C)}),T&&a&&T.split(" ").forEach(function(O){return a.store.off(O,C)})}},[a,I]);var U=M.useRef(!0);M.useEffect(function(){R.current&&!U.current&&w(m),U.current=!1},[a,f]);var D=[x,a,g];if(D.t=x,D.i18n=a,D.ready=g,g||!g&&!c)return D;throw new Promise(function(b){Jj(a,p,function(){b()})})}const JMe={castVote:"Cast your vote",timeLeftToVote:"Time left to vote",resultsVerified:"Results verified",verifyingResults:"Verifying results",failedToVerifyResults:"Failed to verify results",address:"Address",vote:"Vote",votingPower:"Voting Power",date:"Date",voteStartsIn:"Vote starts in",results:"Results",recentVotes:"Recent Votes",information:"Information",startDate:"Start Date",endDate:"End Date",snapshot:"Snapshot",contract:"Contract",votingStrategy:"Voting Strategy",votes:"votes",showMore:"Show more",showLess:"Show less",verifyInfo:"Download votes from chain and verify the results in browser. [Read more](https://github.com/orbs-network/ton-vote#how-can-you-verify-the-results)",downloadCsv:"Download CSV",yourVotingPower:"Your voting power",choice:"Choice",notEnoughVotingPower:" Oops, it seems you don't have any voting power on block {{value}}",confirm:"Confirm",noVotes:"No votes",you:"You",httpsv2Endpoint:"HTTP v2 endpoint",httpsv2ApiKey:"HTTP v2 API key",httpv4Endpoint:"HTTP v4 endpoint",tonAccessEnpoint:"Default endpoint [(Orbs Ton Access)](https://www.orbs.com/ton-access/)",customEndpoint:"Custom endpoint",verify:"Verify",verifyResults:"Verify results",rpcSelectTitle:"RPC endpoint settings"},XMe={proposals:"Proposals",about:"About",newProposal:"New Proposal",newTestProposal:"New Test Proposal",startIn:"Starts in {{value}}",endIn:"Ends in {{value}}",emptyProposals:"No proposals found",endedAndDidntPassedQuorum:"Proposal ended and did not pass the minimum required quorum",proposalEnded:"Ended {{value}} ago",spaceNotFound:"Space not found",settings:"Settings"},ZMe={spaces:"DAO spaces on TON",noSpaces:"No spaces found",searchForDAO:"Search for DAO",createDao:"Create DAO space"},eOe={gettingStarted:"Getting Started",gettingStartedBody:"TON.vote is a completely decentralized on-chain DAO governance platform built exclusively for the TON ecosystem. /n Setting up a space for a DAO is free but requires submitting 2 transactions: /n 1. Space Metadata (DAO name, description, logo, socials) /n 2. Space Administrators (space owner and proposal publisher) /n Every transaction deploys a smart contract on TON blockchain mainnet. Both transactions cost about 1 TON in gas fees. /n Any future changes to one of the above will require submitting an update transaction. /n Need help? Join the TON.vote Telegram [support channel](https://t.me/TONVoteSupportGroup).",spaceMetadata:"Space Metadata",editWarning:"Edits will require to sign a transaction in your wallet",spaceAdministrators:"Space Administrators",createSpace:"Create Space",editDetails:"Edit Details",approveDetails:"Approve Details",spaceDetailsCreated:"Space Metadata Created",spaceDetailsUpdated:"Space Metadata Updated",start:"Start",enterSpaceMetadata:"Enter Space Metadata",editSpaceMetadata:"Edit Space Metadata",stage:"Space Administrators",createStage:"Select Space Administrators",editStage:"Edit Space Administrators",formInfo:"Enter all fields in English. Future versions will support adding translations in multiple languages. You can update these fields later.",daoName:"DAO Name",daoAbout:"About the DAO",logoURL:"Logo URL",tonDns:"TON DNS name",submit:"Submit",jetton:"Project jetton",nft:"Project NFT collection",website:"Project website URL",telegramGroup:"Project Telegram group",github:"Project GitHub URL",ownerAddress:"Owner Address",proposalPublusherAddress:"Proposal Publisher Address",tooltips:{daoName:"Short name of the DAO, normally 1-4 words Capitalized separated by spaces.",daoAbout:"What is the purpose of this DAO? Normally 1-4 sentences. Formatted as Markdown",logoURL:"HTTPS URL holding the DAO's logo as a circular PNG image sized 512x512 pixels with transparent background.",tonDNS:"If you own a [TON DNS](https://dns.ton.org/) domain name, enter it to prove the space's authenticity. For example: foundation.ton",jetton:"Does the DAO revolve around a fungible Jetton token that all members hold? If so, place the TON contract address of the Jetton master contract.",nft:"Does the DAO revolve around an NFT that all all members hold? If so, place the TON contract address of the NFT master contract.",owner:"The owner of the space, can change metadata and update admins. Can be a multi-sig contract.",proposalPublisher:"The address that can publish new proposals for vote. Can be a multi-sig contract or a multi-owner contract."},errors:{logoURL1:"Logo URL must be https",logoURL2:"Logo URL must be png format",tonDNS:"TON DNS must end with .ton",github:"Invalid Github URL",telegram:"Telegram group should start with https://t.me",website:"invalid Website URL"}},tOe={isRequired:"{{value}} is required",isInvalid:"{{value}} is invalid",edit:"Edit",connectedWallet:"Connected Wallet",create:"Create",tonBalance:"TON Balance",jettonBalance:"Jetton Balance",nftCollection:"NFT Collection",copyAddress:"Copy Address",logout:"Logout",ended:"Ended",notStarted:"Pending",all:"All",active:"Active",back:"Back",checkWallet:"Please check wallet for pending transaction",selectWallet:"Select Wallet",members:"members",loadMore:"Load more",administrators:"Administrators",daoSpaceOwner:"DAO Space Owner",proposalPublisher:"Proposal Publisher",search:"Search",preview:"Preview",help:"Help",close:"Close",connectWallet:"Connect Wallet",next:"Next",transactionRejected:"User rejected the transaction",somethingWentWrong:"Something went wrong",txPending:"Transaction pending",checkWalletForTx:"Check wallet for transaction"},nOe={votingParameters:"Voting Parameters",createProposal:"Create Proposal",subTitle:"Enter all fields in English. Future versions will support adding translations in multiple languages.",title:"Title",description:"Description",votingPowerStrategy:"Voting power strategy",jettonAddress:"Jetton address",nftAddress:"NFT address",votingChoices:"Voting choices",votingPeroid:"Voting period",votingPeriodInfo:"All timestamps are given in UTC (GMT+0). The UTC time 15:00 is a good choice for when most of the world is awake.",startTime:"Start time",endTime:"End time",snaphotTime:"Snapshot time",proposalDuration:"Proposal duration is",tooltips:{title:"Title of the new proposal, normally 1 sentence. Example: Increase staking reward percentage",description:"All background information needed to help members make a decision in this vote. Normally 3-10 sentences. Formatted as Markdown",votingPowerStrategy:"How is the voting power of each member counted when calculating the vote result. [Read more about strategies](https://github.com/orbs-network/ton-vote/tree/main#supported-strategies)",jettonAddress:"The address of the Jetton",votingChoices:"The different options each voting member needs to choose from when submitting their vote.",startTime:"The UTC time when the vote goes live and members can start submitting their votes. Must be in the future.",endTime:"The UTC time when the vote terminates and members would no longer be able to submit votes. Must be after start time but no more than 10 days after.",snapshotTime:"To protect against manipulation, every member's voting power will be calculated on this snapshot UTC date. Must be before vote start time but no more than 14 days before."},errors:{isRequired:"{{value}} is required",titleLength:"Title must be less than or equal to {{value}} characters",aboutLength:"About must be less than or equal to {{value}} characters",invalidJettonAddress:"Invalid jetton address",invalidNFTAddress:"Invalid NFT address",startTime1:"Proposal start time must be greater than current time",startTime2:"Proposal start time can be up to 10 days in the future",endTime1:"Proposal end time must be greater than proposal start time",endTime2:"Proposal end time must be at least 1 day after proposal start time",endTime3:"Proposal end time can be up to 10 days after proposal start time",snapshotTime1:"Snaphot time must be smaller than current time"}},rOe={proposalPage:JMe,daoPage:XMe,daosPage:ZMe,createDao:eOe,common:tOe,createProposal:nOe},oOe={castVote:"Cast your vote",timeLeftToVote:"Time left to vote",resultsVerified:"Results verified",verifyingResults:"Verifying results",failedToVerifyResults:"Failed to verify results",address:"Address",vote:"Vote",votingPower:"Voting Power",date:"Date",voteStartsIn:"Vote starts in",results:"Results",recentVotes:"Recent Votes",information:"Information",startDate:"Start Date",endDate:"End Date",snapshot:"Snapshot",contract:"Contract",votingStrategy:"Voting Strategy",votes:"votes",showMore:"Show more",showLess:"Show less",verifyInfo:"Download votes from chain and verify the results in browser. [Read more](https://github.com/orbs-network/ton-vote#how-can-you-verify-the-results)",downloadCsv:"Download CSV",yourVotingPower:"Your voting power",choice:"Choice",notEnoughVotingPower:" Oops, it seems you don't have any voting power at block {{value}}",confirm:"Confirm",noVotes:"No votes",you:"You",httpsv2Endpoint:"HTTP v2 endpoint",httpsv2ApiKey:"HTTP v2 API key",httpv4Endpoint:"HTTP v4 endpoint",tonAccessEnpoint:"Default endpoint [(Orbs Ton Access)](https://www.orbs.com/ton-access/)",customEndpoint:"Custom endpoint",verify:"Verify",verifyResults:"Verify results",rpcSelectTitle:"RPC endpoint settings"},iOe={proposals:"Proposals",about:"About",newProposal:"New Proposal",startIn:"Starts in {{value}}",endIn:"Ends in {{value}}",emptyProposals:"No proposals found",endedAndDidntPassedQuorum:"Proposal ended and did not pass the minimum required quorum",proposalEnded:"Ended {{value}} ago",spaceNotFound:"Space not found"},aOe={spaces:"DAO spaces on TON",noSpaces:"No spaces found",searchForDAO:"Search for DAO",createDao:"Create DAO space"},sOe={gettingStarted:"Getting Started",gettingStartedBody:"TON.vote is a completely decentralized on-chain DAO governance platform built exclusively for the TON ecosystem. /n Setting up a space for a DAO is free but requires submitting 2 transactions: /n 1. Space Metadata (DAO name, description, logo, socials) /n 2. Space Administrators (space owner and proposal publisher) /n Every transaction deploys a smart contract on TON blockchain mainnet. Both transactions cost about 1 TON in gas fees. /n Any future changes to one of the above will require submitting an update transaction. /n Need help? Join the TON.vote Telegram [support channel](https://t.me/TONVoteSupportGroup).",spaceMetadata:"Space Metadata",editWarning:"Edits will require to sign a transaction in your wallet",spaceAdministrators:"Space Administrators",createSpace:"Create Space",editDetails:"Edit Details",approveDetails:"Approve Details",spaceDetailsCreated:"Space Metadata Created",spaceDetailsUpdated:"Space Metadata Updated",start:"Start",enterSpaceMetadata:"Enter Space Metadata",editSpaceMetadata:"Edit Space Metadata",stage:"Space Administrators",createStage:"Select Space Administrators",editStage:"Edit Space Administrators",formInfo:"Enter all fields in English. Future versions will support adding translations in multiple languages. You can update these fields later.",daoName:"DAO Name",daoAbout:"About the DAO",logoURL:"Logo URL",tonDns:"TON DNS name",submit:"Submit",jetton:"Project jetton",nft:"Project NFT collection",website:"Project website URL",telegramGroup:"Project Telegram group",github:"Project GitHub URL",ownerAddress:"Owner Address",proposalPublusherAddress:"Proposal Publisher Address",tooltips:{daoName:"Short name of the DAO, normally 1-4 words Capitalized separated by spaces.",daoAbout:"What is the purpose of this DAO? Normally 1-4 sentences. Formatted as Markdown",logoURL:"HTTPS URL holding the DAO's logo as a circular PNG image sized 512x512 pixels with transparent background.",tonDNS:"If you own a [TON DNS](https://dns.ton.org/) domain name, enter it to prove the space's authenticity. For example: foundation.ton",jetton:"Does the DAO revolve around a fungible Jetton token that all members hold? If so, place the TON contract address of the Jetton master contract.",nft:"Does the DAO revolve around an NFT that all all members hold? If so, place the TON contract address of the NFT master contract.",owner:"The owner of the space, can change metadata and update admins. Can be a multi-sig contract.",proposalPublisher:"The address that can publish new proposals for vote. Can be a multi-sig contract or a multi-owner contract."},errors:{logoURL1:"Logo URL must be https",logoURL2:"Logo URL must be png format",tonDNS:"TON DNS must end with .ton",github:"Invalid Github URL",telegram:"Telegram group should start with https://t.me",website:"invalid Website URL"}},lOe={isRequired:"{{value}} is required",isInvalid:"{{value}} is invalid",edit:"Edit",connectedWallet:"Connected Wallet",create:"Create",tonBalance:"TON Balance",jettonBalance:"Jetton Balance",nftCollection:"NFT Collection",copyAddress:"Copy Address",logout:"Logout",ended:"Ended",notStarted:"Pending",all:"All",active:"Active",back:"Back",checkWallet:"Please check wallet for pending transaction",selectWallet:"Select Wallet",members:"members",loadMore:"Load more",administrators:"Administrators",daoSpaceOwner:"DAO Space Owner",proposalPublisher:"Proposal Publisher",search:"Search",preview:"Preview",help:"Help",close:"Close",connectWallet:"Connect Wallet",next:"Next"},uOe={votingParameters:"Voting Parameters",createProposal:"Create Proposal",subTitle:"Enter all fields in English. Future versions will support adding translations in multiple languages.",title:"Title",description:"Description",votingPowerStrategy:"Voting power strategy",jettonAddress:"Jetton address",nftAddress:"NFT address",votingChoices:"Voting choices",votingPeroid:"Voting period",votingPeriodInfo:"All timestamps are given in UTC (GMT+0). The UTC time 15:00 is a good choice for when most of the world is awake.",startTime:"Start time",endTime:"End time",snaphotTime:"Snapshot time",proposalDuration:"Proposal duration is",tooltips:{title:"Title of the new proposal, normally 1 sentence. Example: Increase staking reward percentage",description:"All background information needed to help members make a decision in this vote. Normally 3-10 sentences. Formatted as Markdown",votingPowerStrategy:"How is the voting power of each member counted when calculating the vote result. [Read more about strategies](https://github.com/orbs-network/ton-vote/blob/main/STRATEGIES.md)",jettonAddress:"The address of the Jetton",votingChoices:"The different options each voting member needs to choose from when submitting their vote.",startTime:"The UTC time when the vote goes live and members can start submitting their votes. Must be in the future.",endTime:"The UTC time when the vote terminates and members would no longer be able to submit votes. Must be after start time but no more than 10 days after.",snapshotTime:"To protect against manipulation, every member's voting power will be calculated on this snapshot UTC date. Must be before vote start time but no more than 14 days before."},errors:{isRequired:"{{value}} is required",titleLength:"Title must be less than or equal to {{value}} characters",aboutLength:"About must be less than or equal to {{value}} characters",invalidJettonAddress:"Invalid jetton address",invalidNFTAddress:"Invalid NFT address",startTime1:"Proposal start time must be greater than current time",startTime2:"Proposal start time can be up to 10 days in the future",endTime1:"Proposal end time must be greater than proposal start time",endTime2:"Proposal end time must be at least 1 day after proposal start time",endTime3:"Proposal end time can be up to 10 days after proposal start time",snapshotTime1:"Snaphot time must be smaller than current time"}},cOe={proposalPage:oOe,daoPage:iOe,daosPage:aOe,createDao:sOe,common:lOe,createProposal:uOe};ma.use(HMe).init({resources:{en:rOe,ru:cOe},fallbackLng:"en",interpolation:{escapeValue:!1}});var at={},ro={},dn={},js={},vr={},Ws={};const dOe=Symbol.for("nodejs.util.inspect.custom");var ky=dOe,Iy={};Object.defineProperty(Iy,"__esModule",{value:!0});Iy.crc16=void 0;function fOe(e){let n=0;const r=Buffer.alloc(e.length+2);r.set(e);for(let o of r){let i=128;for(;i>0;)n<<=1,o&i&&(n+=1),i>>=1,n>65535&&(n&=65535,n^=4129)}return Buffer.from([Math.floor(n/256),n%256])}Iy.crc16=fOe;var pOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},cJ;Object.defineProperty(Ws,"__esModule",{value:!0});Ws.address=Ws.Address=void 0;const hOe=pOe(ky),dJ=Iy,GO=17,fJ=81,JO=128;function tW(e){const t=Buffer.isBuffer(e)?e:Buffer.from(e,"base64");if(t.length!==36)throw new Error("Unknown address type: byte length is not equal to 36");const n=t.subarray(0,34),r=t.subarray(34,36),o=(0,dJ.crc16)(n);if(!(o[0]===r[0]&&o[1]===r[1]))throw new Error("Invalid checksum: "+e);let i=n[0],a=!1,s=!1;if(i&JO&&(a=!0,i=i^JO),i!==GO&&i!==fJ)throw"Unknown address tag";s=i===GO;let l=null;n[1]===255?l=-1:l=n[1];const u=n.subarray(2,34);return{isTestOnly:a,isBounceable:s,workchain:l,hashPart:u}}let pJ=class hh{static isAddress(t){return t instanceof hh}static isFriendly(t){return t.indexOf(":")<0}static normalize(t){return typeof t=="string"?hh.parse(t).toString():t.toString()}static parse(t){return hh.isFriendly(t)?this.parseFriendly(t).address:this.parseRaw(t)}static parseRaw(t){let n=parseInt(t.split(":")[0]),r=Buffer.from(t.split(":")[1],"hex");return new hh(n,r)}static parseFriendly(t){if(Buffer.isBuffer(t)){let n=tW(t);return{isBounceable:n.isBounceable,isTestOnly:n.isTestOnly,address:new hh(n.workchain,n.hashPart)}}else{let n=t.replace(/\-/g,"+").replace(/_/g,"/"),r=tW(n);return{isBounceable:r.isBounceable,isTestOnly:r.isTestOnly,address:new hh(r.workchain,r.hashPart)}}}constructor(t,n){this.toRawString=()=>this.workChain+":"+this.hash.toString("hex"),this.toRaw=()=>{const r=Buffer.alloc(36);return r.set(this.hash),r.set([this.workChain,this.workChain,this.workChain,this.workChain],32),r},this.toStringBuffer=r=>{let o=r&&r.testOnly!==void 0?r.testOnly:!1,a=(r&&r.bounceable!==void 0?r.bounceable:!0)?GO:fJ;o&&(a|=JO);const s=Buffer.alloc(34);s[0]=a,s[1]=this.workChain,s.set(this.hash,2);const l=Buffer.alloc(36);return l.set(s),l.set((0,dJ.crc16)(s),34),l},this.toString=r=>{let o=r&&r.urlSafe!==void 0?r.urlSafe:!0,i=this.toStringBuffer(r);return o?i.toString("base64").replace(/\+/g,"-").replace(/\//g,"_"):i.toString("base64")},this[cJ]=()=>this.toString(),this.workChain=t,this.hash=n,Object.freeze(this)}equals(t){return t.workChain!==this.workChain?!1:t.hash.equals(this.hash)}};Ws.Address=pJ;cJ=hOe.default;function gOe(e){return pJ.parse(e)}Ws.address=gOe;var Py={},mOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},hJ;Object.defineProperty(Py,"__esModule",{value:!0});Py.ExternalAddress=void 0;const yOe=mOe(ky);class BD{static isAddress(t){return t instanceof BD}constructor(t,n){this[hJ]=()=>this.toString(),this.value=t,this.bits=n}toString(){return`External<${this.bits}:${this.value}>`}}Py.ExternalAddress=BD;hJ=yOe.default;var aT={},Xh={};Object.defineProperty(Xh,"__esModule",{value:!0});Xh.base32Decode=Xh.base32Encode=void 0;const XO="abcdefghijklmnopqrstuvwxyz234567";function vOe(e){const t=e.byteLength;let n=0,r=0,o="";for(let i=0;i=5;)o+=XO[r>>>n-5&31],n-=5;return n>0&&(o+=XO[r<<5-n&31]),o}Xh.base32Encode=vOe;function bOe(e,t){const n=e.indexOf(t);if(n===-1)throw new Error("Invalid character found: "+t);return n}function wOe(e){let t;t=e.toLowerCase();const{length:n}=t;let r=0,o=0,i=0;const a=Buffer.alloc(n*5/8|0);for(let s=0;s=8&&(a[i++]=o>>>r-8&255,r-=8);return a}Xh.base32Decode=wOe;var SOe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},gJ;Object.defineProperty(aT,"__esModule",{value:!0});aT.ADNLAddress=void 0;const xOe=SOe(ky),nW=Xh,rW=Iy;class BA{static parseFriendly(t){if(t.length!==55)throw Error("Invalid address");t="f"+t;let n=(0,nW.base32Decode)(t);if(n[0]!==45)throw Error("Invalid address");let r=n.slice(33);if(!(0,rW.crc16)(n.slice(0,33)).equals(r))throw Error("Invalid address");return new BA(n.slice(1,33))}static parseRaw(t){const n=Buffer.from(t,"base64");return new BA(n)}constructor(t){if(this.toRaw=()=>this.address.toString("hex").toUpperCase(),this.toString=()=>{let n=Buffer.concat([Buffer.from([45]),this.address]),r=(0,rW.crc16)(n);return n=Buffer.concat([n,r]),(0,nW.base32Encode)(n).slice(1)},this[gJ]=()=>this.toString(),t.length!==32)throw Error("Invalid address");this.address=t}equals(t){return this.address.equals(t.address)}}aT.ADNLAddress=BA;gJ=xOe.default;var sT={},rh={},r1={},o1={},i1={},oW;function lT(){if(oW)return i1;oW=1,Object.defineProperty(i1,"__esModule",{value:!0}),i1.bitsToPaddedBuffer=void 0;const e=uT();function t(n){let r=new e.BitBuilder(Math.ceil(n.length/8)*8);r.writeBits(n);let o=Math.ceil(n.length/8)*8-n.length;for(let i=0;ithis.toString(),l<0)throw new Error(`Length ${l} is out of bounds`);this._length=l,this._data=a,this._offset=s}get length(){return this._length}at(a){if(a>=this._length)throw new Error(`Index ${a} > ${this._length} is out of bounds`);if(a<0)throw new Error(`Index ${a} < 0 is out of bounds`);let s=this._offset+a>>3,l=7-(this._offset+a)%8;return(this._data[s]&1<=this._length)throw new Error(`Offset(${a}) > ${this._length} is out of bounds`);if(a<0)throw new Error(`Offset(${a}) < 0 is out of bounds`);if(a+s>this._length)throw new Error(`Offset ${a} + Length ${s} > ${this._length} is out of bounds`);return new ZO(this._data,this._offset+a,s)}subbuffer(a,s){if(a>=this._length)throw new Error(`Offset ${a} is out of bounds`);if(a<0)throw new Error(`Offset ${a} is out of bounds`);if(a+s>this._length)throw new Error(`Offset + Lenght = ${a+s} is out of bounds`);if(s%8!==0||(this._offset+a)%8!==0)return null;let l=this._offset+a>>3,u=l+(s>>3);return this._data.subarray(l,u)}equals(a){if(this._length!==a._length)return!1;for(let s=0;sthis._buffer.length*8)throw new Error("BitBuilder overflow");(i===!0||i>0)&&(this._buffer[a/8|0]|=1<<7-a%8),this._length++}writeBits(i){for(let a=0;athis._buffer.length*8)throw new Error("BitBuilder overflow");i.copy(this._buffer,this._length/8),this._length+=i.length*8}else for(let a=0;a255||!Number.isSafeInteger(c))throw Error(`value is out of range for ${a} bits. Got ${i}`);this._buffer[this._length/8]=Number(i),this._length+=8;return}if(a===16&&this._length%8===0){let c=Number(i);if(c<0||c>65536||!Number.isSafeInteger(c))throw Error(`value is out of range for ${a} bits. Got ${i}`);this._buffer[this._length/8]=c>>8,this._buffer[this._length/8+1]=c&255,this._length+=16;return}let s=BigInt(i);if(a<0||!Number.isSafeInteger(a))throw Error(`invalid bit length. Got ${a}`);if(a===0){if(i!==0n)throw Error(`value is not zero for ${a} bits. Got ${i}`);return}let l=1n<=l)throw Error(`bitLength is too small for a value ${i}. Got ${a}`);let u=[];for(;s>0;)u.push(s%2n===1n),s/=2n;for(let c=0;c=l)throw Error(`value is out of range for ${a} bits. Got ${i}`);s<0?(this.writeBit(!0),s=(1n<0?s:-s;const u=1+Math.ceil(l.toString(2).length/8),c=u*8;this.writeUint(u,a),this.writeInt(s,c)}writeCoins(i){this.writeVarUint(i,4)}writeAddress(i){if(i==null){this.writeUint(0,2);return}if(e.Address.isAddress(i)){this.writeUint(2,2),this.writeUint(0,1),this.writeInt(i.workChain,8),this.writeBuffer(i.hash);return}if(t.ExternalAddress.isAddress(i)){this.writeUint(1,2),this.writeUint(i.bits,9),this.writeUint(i.value,i.bits);return}throw Error(`Invalid address. Got ${i}`)}build(){return new n.BitString(this._buffer,0,this._length)}buffer(){if(this._length%8!==0)throw new Error("BitBuilder buffer is not byte aligned");return this._buffer.subarray(0,this._length/8)}};return r1.BitBuilder=r,r1}var a1={},My={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CellType=void 0,function(t){t[t.Ordinary=-1]="Ordinary",t[t.PrunedBranch=1]="PrunedBranch",t[t.Library=2]="Library",t[t.MerkleProof=3]="MerkleProof",t[t.MerkleUpdate=4]="MerkleUpdate"}(e.CellType||(e.CellType={}))})(My);var s1={},l1={},Oy={};Object.defineProperty(Oy,"__esModule",{value:!0});Oy.parseDict=void 0;function COe(e){let t=0;for(;e.loadBit();)t++;return t}function eR(e,t,n,r,o){let i=t.loadBit()?1:0,a=0,s=e;if(i===0){a=COe(t);for(let l=0;l(0,i.deserializeInternalKey)(T))}values(){return Array.from(this._map.values())}store(T,C,O){if(this._map.size===0)T.storeBit(0);else{let $=this._key;C!=null&&($=C);let j=this._value;if(O!=null&&(j=O),!$)throw Error("Key serializer is not defined");if(!j)throw Error("Value serializer is not defined");let L=new Map;for(const[H,q]of this._map)L.set($.serialize((0,i.deserializeInternalKey)(H)),q);T.storeBit(1);let B=(0,t.beginCell)();(0,o.serializeDict)(L,$.bits,j.serialize,B),T.storeRef(B.endCell())}}storeDirect(T,C,O){if(this._map.size===0)throw Error("Cannot store empty dictionary directly");let $=this._key;C!=null&&($=C);let j=this._value;if(O!=null&&(j=O),!$)throw Error("Key serializer is not defined");if(!j)throw Error("Value serializer is not defined");let L=new Map;for(const[B,H]of this._map)L.set($.serialize((0,i.deserializeInternalKey)(B)),H);(0,o.serializeDict)(L,$.bits,j.serialize,T)}}l1.Dictionary=a,a.Keys={Address:()=>s(),BigInt:b=>l(b),Int:b=>u(b),BigUint:b=>c(b),Uint:b=>f(b),Buffer:b=>p(b)},a.Values={BigInt:b=>m(b),Int:b=>g(b),BigVarInt:b=>y(b),BigUint:b=>w(b),Uint:b=>x(b),BigVarUint:b=>v(b),Bool:()=>I(),Address:()=>_(),Cell:()=>R(),Buffer:b=>D(b),Dictionary:(b,T)=>U(b,T)};function s(){return{bits:267,serialize:b=>{if(!e.Address.isAddress(b))throw Error("Key is not an address");return(0,t.beginCell)().storeAddress(b).endCell().beginParse().preloadUintBig(267)},parse:b=>(0,t.beginCell)().storeUint(b,267).endCell().beginParse().loadAddress()}}function l(b){return{bits:b,serialize:T=>{if(typeof T!="bigint")throw Error("Key is not a bigint");return(0,t.beginCell)().storeInt(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadIntBig(b)}}function u(b){return{bits:b,serialize:T=>{if(typeof T!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(T))throw Error("Key is not a safe integer: "+T);return(0,t.beginCell)().storeInt(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadInt(b)}}function c(b){return{bits:b,serialize:T=>{if(typeof T!="bigint")throw Error("Key is not a bigint");if(T<0)throw Error("Key is negative: "+T);return(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)}}function f(b){return{bits:b,serialize:T=>{if(typeof T!="number")throw Error("Key is not a number");if(!Number.isSafeInteger(T))throw Error("Key is not a safe integer: "+T);if(T<0)throw Error("Key is negative: "+T);return(0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUintBig(b)},parse:T=>Number((0,t.beginCell)().storeUint(T,b).endCell().beginParse().loadUint(b))}}function p(b){return{bits:b*8,serialize:T=>{if(!Buffer.isBuffer(T))throw Error("Key is not a buffer");return(0,t.beginCell)().storeBuffer(T).endCell().beginParse().loadUintBig(b*8)},parse:T=>(0,t.beginCell)().storeUint(T,b*8).endCell().beginParse().loadBuffer(b)}}function g(b){return{serialize:(T,C)=>{C.storeInt(T,b)},parse:T=>T.loadInt(b)}}function m(b){return{serialize:(T,C)=>{C.storeInt(T,b)},parse:T=>T.loadIntBig(b)}}function y(b){return{serialize:(T,C)=>{C.storeVarInt(T,b)},parse:T=>T.loadVarIntBig(b)}}function v(b){return{serialize:(T,C)=>{C.storeVarUint(T,b)},parse:T=>T.loadVarUintBig(b)}}function x(b){return{serialize:(T,C)=>{C.storeUint(T,b)},parse:T=>T.loadUint(b)}}function w(b){return{serialize:(T,C)=>{C.storeUint(T,b)},parse:T=>T.loadUintBig(b)}}function I(){return{serialize:(b,T)=>{T.storeBit(b)},parse:b=>b.loadBit()}}function _(){return{serialize:(b,T)=>{T.storeAddress(b)},parse:b=>b.loadAddress()}}function R(){return{serialize:(b,T)=>{T.storeRef(b)},parse:b=>b.loadRef()}}function U(b,T){return{serialize:(C,O)=>{C.store(O)},parse:C=>a.load(b,T,C)}}function D(b){return{serialize:(T,C)=>{if(T.length!==b)throw Error("Invalid buffer size");C.storeBuffer(T)},parse:T=>T.loadBuffer(b)}}return l1}var Kc={},uW;function yJ(){if(uW)return Kc;uW=1,Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.writeString=Kc.stringToCell=Kc.readString=void 0;const e=ya();function t(a){if(a.remainingBits%8!==0)throw new Error(`Invalid string length: ${a.remainingBits}`);if(a.remainingRefs!==0&&a.remainingRefs!==1)throw new Error(`invalid number of refs: ${a.remainingRefs}`);if(a.remainingRefs===1&&1023-a.remainingBits>7)throw new Error(`invalid string length: ${a.remainingBits/8}`);let s;return a.remainingBits===0?s=Buffer.alloc(0):s=a.loadBuffer(a.remainingBits/8),a.remainingRefs===1&&(s=Buffer.concat([s,t(a.loadRef().beginParse())])),s}function n(a){return t(a).toString()}Kc.readString=n;function r(a,s){if(a.length>0){let l=Math.floor(s.availableBits/8);if(a.length>l){let u=a.subarray(0,l),c=a.subarray(l);s=s.storeBuffer(u);let f=(0,e.beginCell)();r(c,f),s=s.storeRef(f.endCell())}else s=s.storeBuffer(a)}}function o(a){let s=(0,e.beginCell)();return r(Buffer.from(a),s),s.endCell()}Kc.stringToCell=o;function i(a,s){r(Buffer.from(a),s)}return Kc.writeString=i,Kc}var cW;function $D(){if(cW)return s1;cW=1;var e=st&&st.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},t;Object.defineProperty(s1,"__esModule",{value:!0}),s1.Slice=void 0;const n=e(ky),r=Dg(),o=ya(),i=yJ();let a=class vJ{constructor(l,u){this[t]=()=>this.toString(),this._reader=l.clone(),this._refs=[...u]}get remainingBits(){return this._reader.remaining}get remainingRefs(){return this._refs.length}skip(l){return this._reader.skip(l),this}loadBit(){return this._reader.loadBit()}preloadBit(){return this._reader.preloadBit()}loadBoolean(){return this.loadBit()}loadMaybeBoolean(){return this.loadBit()?this.loadBoolean():null}loadBits(l){return this._reader.loadBits(l)}preloadBits(l){return this._reader.preloadBits(l)}loadUint(l){return this._reader.loadUint(l)}loadUintBig(l){return this._reader.loadUintBig(l)}preloadUint(l){return this._reader.preloadUint(l)}preloadUintBig(l){return this._reader.preloadUintBig(l)}loadMaybeUint(l){return this.loadBit()?this.loadUint(l):null}loadMaybeUintBig(l){return this.loadBit()?this.loadUintBig(l):null}loadInt(l){return this._reader.loadInt(l)}loadIntBig(l){return this._reader.loadIntBig(l)}preloadInt(l){return this._reader.preloadInt(l)}preloadIntBig(l){return this._reader.preloadIntBig(l)}loadMaybeInt(l){return this.loadBit()?this.loadInt(l):null}loadMaybeIntBig(l){return this.loadBit()?this.loadIntBig(l):null}loadVarUint(l){return this._reader.loadVarUint(l)}loadVarUintBig(l){return this._reader.loadVarUintBig(l)}preloadVarUint(l){return this._reader.preloadVarUint(l)}preloadVarUintBig(l){return this._reader.preloadVarUintBig(l)}loadVarInt(l){return this._reader.loadVarInt(l)}loadVarIntBig(l){return this._reader.loadVarIntBig(l)}preloadVarInt(l){return this._reader.preloadVarInt(l)}preloadVarIntBig(l){return this._reader.preloadVarIntBig(l)}loadCoins(){return this._reader.loadCoins()}preloadCoins(){return this._reader.preloadCoins()}loadMaybeCoins(){return this._reader.loadBit()?this._reader.loadCoins():null}loadAddress(){return this._reader.loadAddress()}loadMaybeAddress(){return this._reader.loadMaybeAddress()}loadExternalAddress(){return this._reader.loadExternalAddress()}loadMaybeExternalAddress(){return this._reader.loadMaybeExternalAddress()}loadAddressAny(){return this._reader.loadAddressAny()}loadRef(){if(this._refs.length===0)throw new Error("No more references");return this._refs.shift()}preloadRef(){if(this._refs.length===0)throw new Error("No more references");return this._refs[0]}loadMaybeRef(){return this.loadBit()?this.loadRef():null}preloadMaybeRef(){return this.preloadBit()?this.preloadRef():null}loadBuffer(l){return this._reader.loadBuffer(l)}preloadBuffer(l){return this._reader.preloadBuffer(l)}loadStringTail(){return(0,i.readString)(this)}loadMaybeStringTail(){return this.loadBit()?(0,i.readString)(this):null}loadStringRefTail(){return(0,i.readString)(this.loadRef().beginParse())}loadMaybeStringRefTail(){const l=this.loadMaybeRef();return l?(0,i.readString)(l.beginParse()):null}loadDict(l,u){return r.Dictionary.load(l,u,this)}loadDictDirect(l,u){return r.Dictionary.loadDirect(l,u,this)}endParse(){if(this.remainingBits>0||this.remainingRefs>0)throw new Error("Slice is not empty")}asCell(){return(0,o.beginCell)().storeSlice(this).endCell()}asBuilder(){return(0,o.beginCell)().storeSlice(this)}clone(){return new vJ(this._reader,this._refs)}toString(){return this.asCell().toString()}};return s1.Slice=a,t=n.default,s1}var dT={},ku={};Object.defineProperty(ku,"__esModule",{value:!0});ku.BitReader=void 0;const IOe=Ws,POe=Py;class LD{constructor(t,n=0){this._checkpoints=[],this._bits=t,this._offset=n}get remaining(){return this._bits.length-this._offset}skip(t){if(t<0||this._offset+t>this._bits.length)throw new Error(`Index ${this._offset+t} is out of bounds`);this._offset+=t}reset(){this._checkpoints.length>0?this._offset=this._checkpoints.pop():this._offset=0}save(){this._checkpoints.push(this._offset)}loadBit(){let t=this._bits.at(this._offset);return this._offset++,t}preloadBit(){return this._bits.at(this._offset)}loadBits(t){let n=this._bits.substring(this._offset,t);return this._offset+=t,n}preloadBits(t){return this._bits.substring(this._offset,t)}loadBuffer(t){let n=this._preloadBuffer(t,this._offset);return this._offset+=t*8,n}preloadBuffer(t){return this._preloadBuffer(t,this._offset)}loadUint(t){return Number(this.loadUintBig(t))}loadUintBig(t){let n=this.preloadUintBig(t);return this._offset+=t,n}preloadUint(t){return Number(this._preloadUint(t,this._offset))}preloadUintBig(t){return this._preloadUint(t,this._offset)}loadInt(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,Number(n)}loadIntBig(t){let n=this._preloadInt(t,this._offset);return this._offset+=t,n}preloadInt(t){return Number(this._preloadInt(t,this._offset))}preloadIntBig(t){return this._preloadInt(t,this._offset)}loadVarUint(t){let n=Number(this.loadUint(t));return Number(this.loadUintBig(n*8))}loadVarUintBig(t){let n=Number(this.loadUint(t));return this.loadUintBig(n*8)}preloadVarUint(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadUint(n*8,this._offset+t))}preloadVarUintBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadUint(n*8,this._offset+t)}loadVarInt(t){let n=Number(this.loadUint(t));return Number(this.loadIntBig(n*8))}loadVarIntBig(t){let n=Number(this.loadUint(t));return this.loadIntBig(n*8)}preloadVarInt(t){let n=Number(this._preloadUint(t,this._offset));return Number(this._preloadInt(n*8,this._offset+t))}preloadVarIntBig(t){let n=Number(this._preloadUint(t,this._offset));return this._preloadInt(n*8,this._offset+t)}loadCoins(){return this.loadVarUintBig(4)}preloadCoins(){return this.preloadVarUintBig(4)}loadAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===2)return this._loadInternalAddress();throw new Error("Invalid address: "+t)}loadMaybeAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();throw new Error("Invalid address")}loadExternalAddress(){if(Number(this._preloadUint(2,this._offset))===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadMaybeExternalAddress(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===1)return this._loadExternalAddress();throw new Error("Invalid address")}loadAddressAny(){let t=Number(this._preloadUint(2,this._offset));if(t===0)return this._offset+=2,null;if(t===2)return this._loadInternalAddress();if(t===1)return this._loadExternalAddress();throw Error(t===3?"Unsupported":"Unreachable")}loadPaddedBits(t){if(t%8!==0)throw new Error("Invalid number of bits");let n=t;for(;;)if(this._bits.at(this._offset+n-1)){n--;break}else n--;let r=this._bits.substring(this._offset,n);return this._offset+=t,r}clone(){return new LD(this._bits,this._offset)}_preloadInt(t,n){if(t==0)return 0n;let r=this._bits.at(n),o=0n;for(let i=0;i>t-1)%2!==0}}$y.LevelMask=FD;function LOe(e){return e=e-(e>>1&1431655765),e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}Object.defineProperty(By,"__esModule",{value:!0});By.exoticPruned=void 0;const FOe=ku,dW=$y;function NOe(e,t){let n=new FOe.BitReader(e),r=n.loadUint(8);if(r!==1)throw new Error(`Pruned branch cell must have type 1, got "${r}"`);if(t.length!==0)throw new Error(`Pruned Branch cell can't has refs, got "${t.length}"`);let o;if(e.length===280)o=new dW.LevelMask(1);else{if(o=new dW.LevelMask(n.loadUint(8)),o.level<1||o.level>3)throw new Error(`Pruned Branch cell level must be >= 1 and <= 3, got "${o.level}/${o.value}"`);const l=8+8+o.apply(o.level-1).hashCount*(256+16);if(e.length!==l)throw new Error(`Pruned branch cell must have exactly ${l} bits, got "${e.length}"`)}let i=[],a=[],s=[];for(let l=0;l>1);return{type:fT.CellType.MerkleProof,depths:n,hashes:r,mask:o}}function KOe(e,t){(0,zOe.exoticMerkleUpdate)(e,t);let n=[],r=[],o=new pT.LevelMask((t[0].level()|t[1].level())>>1);return{type:fT.CellType.MerkleUpdate,depths:n,hashes:r,mask:o}}function YOe(e,t){let r=new UOe.BitReader(e).preloadUint(8);if(r===1)return HOe(e,t);if(r===2)return qOe(e,t);if(r===3)return QOe(e,t);if(r===4)return KOe(e,t);throw Error("Invalid exotic cell type: "+r)}dT.resolveExotic=YOe;var hT={},yd={};Object.defineProperty(yd,"__esModule",{value:!0});yd.getRepr=yd.getBitsDescriptor=yd.getRefsDescriptor=void 0;const G1=My,GOe=lT();function bJ(e,t,n){return e.length+(n!==G1.CellType.Ordinary?1:0)*8+t*32}yd.getRefsDescriptor=bJ;function wJ(e){let t=e.length;return Math.ceil(t/8)+Math.floor(t/8)}yd.getBitsDescriptor=wJ;function JOe(e,t,n,r){const o=Math.ceil(e.length/8),i=Buffer.alloc(2+o+(2+32)*t.length);let a=0;i[a++]=bJ(t,n,r),i[a++]=wJ(e),(0,GOe.bitsToPaddedBuffer)(e).copy(i,a),a+=o;for(const s of t){let l;r==G1.CellType.MerkleProof||r==G1.CellType.MerkleUpdate?l=s.depth(n+1):l=s.depth(n),i[a++]=Math.floor(l/256),i[a++]=l%256}for(const s of t){let l;r==G1.CellType.MerkleProof||r==G1.CellType.MerkleUpdate?l=s.hash(n+1):l=s.hash(n),l.copy(i,a),a+=32}return i}yd.getRepr=JOe;var aP={},Kf={},aw={},XOe={get exports(){return aw},set exports(e){aw=e}};(function(e,t){(function(n,r){e.exports=r()})(st,function(){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function r(te,Z,N,k){var S,P,V,K=Z||[0],ee=(N=N||0)>>>3,be=k===-1?3:0;for(S=0;S>>2,K.length<=P&&K.push(0),K[P]|=te[S]<<8*(be+k*(V%4));return{value:K,binLen:8*te.length+N}}function o(te,Z,N){switch(Z){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(te){case"HEX":return function(k,S,P){return function(V,K,ee,be){var Me,we,Pe,Ye;if(V.length%2!=0)throw new Error("String of HEX type must be in byte increments");var ze=K||[0],rn=(ee=ee||0)>>>3,Qt=be===-1?3:0;for(Me=0;Me>>1)+rn)>>>2;ze.length<=Pe;)ze.push(0);ze[Pe]|=we<<8*(Qt+be*(Ye%4))}return{value:ze,binLen:4*V.length+ee}}(k,S,P,N)};case"TEXT":return function(k,S,P){return function(V,K,ee,be,Me){var we,Pe,Ye,ze,rn,Qt,Zt,An,br=0,wr=ee||[0],kr=(be=be||0)>>>3;if(K==="UTF8")for(Zt=Me===-1?3:0,Ye=0;Ye(we=V.charCodeAt(Ye))?Pe.push(we):2048>we?(Pe.push(192|we>>>6),Pe.push(128|63&we)):55296>we||57344<=we?Pe.push(224|we>>>12,128|we>>>6&63,128|63&we):(Ye+=1,we=65536+((1023&we)<<10|1023&V.charCodeAt(Ye)),Pe.push(240|we>>>18,128|we>>>12&63,128|we>>>6&63,128|63&we)),ze=0;ze>>2;wr.length<=rn;)wr.push(0);wr[rn]|=Pe[ze]<<8*(Zt+Me*(Qt%4)),br+=1}else for(Zt=Me===-1?2:0,An=K==="UTF16LE"&&Me!==1||K!=="UTF16LE"&&Me===1,Ye=0;Ye>>8),rn=(Qt=br+kr)>>>2;wr.length<=rn;)wr.push(0);wr[rn]|=we<<8*(Zt+Me*(Qt%4)),br+=2}return{value:wr,binLen:8*br+be}}(k,Z,S,P,N)};case"B64":return function(k,S,P){return function(V,K,ee,be){var Me,we,Pe,Ye,ze,rn,Qt=0,Zt=K||[0],An=(ee=ee||0)>>>3,br=be===-1?3:0,wr=V.indexOf("=");if(V.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(V=V.replace(/=/g,""),wr!==-1&&wr>24&255,G[re+1]=ne>>16&255,G[re+2]=ne>>8&255,G[re+3]=ne&255,G[re+4]=F>>24&255,G[re+5]=F>>16&255,G[re+6]=F>>8&255,G[re+7]=F&255}function y(G,re,ne,F,ae){var Re,Le=0;for(Re=0;Re>>8)-1}function v(G,re,ne,F){return y(G,re,ne,F,16)}function x(G,re,ne,F){return y(G,re,ne,F,32)}function w(G,re,ne,F){for(var ae=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,Re=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Le=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,et=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,mt=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,$t=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Et=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,Un=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Ot=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,an=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Ct=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Jt=ne[16]&255|(ne[17]&255)<<8|(ne[18]&255)<<16|(ne[19]&255)<<24,hn=ne[20]&255|(ne[21]&255)<<8|(ne[22]&255)<<16|(ne[23]&255)<<24,gn=ne[24]&255|(ne[25]&255)<<8|(ne[26]&255)<<16|(ne[27]&255)<<24,ln=ne[28]&255|(ne[29]&255)<<8|(ne[30]&255)<<16|(ne[31]&255)<<24,mn=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,Lt=ae,Gt=Re,Pt=Le,Ft=et,qt=mt,kt=$t,He=Et,qe=Un,ut=Ot,nt=an,rt=Ct,ft=Jt,Xt=hn,wn=gn,Sn=ln,yn=mn,ye,kn=0;kn<20;kn+=2)ye=Lt+Xt|0,qt^=ye<<7|ye>>>32-7,ye=qt+Lt|0,ut^=ye<<9|ye>>>32-9,ye=ut+qt|0,Xt^=ye<<13|ye>>>32-13,ye=Xt+ut|0,Lt^=ye<<18|ye>>>32-18,ye=kt+Gt|0,nt^=ye<<7|ye>>>32-7,ye=nt+kt|0,wn^=ye<<9|ye>>>32-9,ye=wn+nt|0,Gt^=ye<<13|ye>>>32-13,ye=Gt+wn|0,kt^=ye<<18|ye>>>32-18,ye=rt+He|0,Sn^=ye<<7|ye>>>32-7,ye=Sn+rt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Sn|0,He^=ye<<13|ye>>>32-13,ye=He+Pt|0,rt^=ye<<18|ye>>>32-18,ye=yn+ft|0,Ft^=ye<<7|ye>>>32-7,ye=Ft+yn|0,qe^=ye<<9|ye>>>32-9,ye=qe+Ft|0,ft^=ye<<13|ye>>>32-13,ye=ft+qe|0,yn^=ye<<18|ye>>>32-18,ye=Lt+Ft|0,Gt^=ye<<7|ye>>>32-7,ye=Gt+Lt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Gt|0,Ft^=ye<<13|ye>>>32-13,ye=Ft+Pt|0,Lt^=ye<<18|ye>>>32-18,ye=kt+qt|0,He^=ye<<7|ye>>>32-7,ye=He+kt|0,qe^=ye<<9|ye>>>32-9,ye=qe+He|0,qt^=ye<<13|ye>>>32-13,ye=qt+qe|0,kt^=ye<<18|ye>>>32-18,ye=rt+nt|0,ft^=ye<<7|ye>>>32-7,ye=ft+rt|0,ut^=ye<<9|ye>>>32-9,ye=ut+ft|0,nt^=ye<<13|ye>>>32-13,ye=nt+ut|0,rt^=ye<<18|ye>>>32-18,ye=yn+Sn|0,Xt^=ye<<7|ye>>>32-7,ye=Xt+yn|0,wn^=ye<<9|ye>>>32-9,ye=wn+Xt|0,Sn^=ye<<13|ye>>>32-13,ye=Sn+wn|0,yn^=ye<<18|ye>>>32-18;Lt=Lt+ae|0,Gt=Gt+Re|0,Pt=Pt+Le|0,Ft=Ft+et|0,qt=qt+mt|0,kt=kt+$t|0,He=He+Et|0,qe=qe+Un|0,ut=ut+Ot|0,nt=nt+an|0,rt=rt+Ct|0,ft=ft+Jt|0,Xt=Xt+hn|0,wn=wn+gn|0,Sn=Sn+ln|0,yn=yn+mn|0,G[0]=Lt>>>0&255,G[1]=Lt>>>8&255,G[2]=Lt>>>16&255,G[3]=Lt>>>24&255,G[4]=Gt>>>0&255,G[5]=Gt>>>8&255,G[6]=Gt>>>16&255,G[7]=Gt>>>24&255,G[8]=Pt>>>0&255,G[9]=Pt>>>8&255,G[10]=Pt>>>16&255,G[11]=Pt>>>24&255,G[12]=Ft>>>0&255,G[13]=Ft>>>8&255,G[14]=Ft>>>16&255,G[15]=Ft>>>24&255,G[16]=qt>>>0&255,G[17]=qt>>>8&255,G[18]=qt>>>16&255,G[19]=qt>>>24&255,G[20]=kt>>>0&255,G[21]=kt>>>8&255,G[22]=kt>>>16&255,G[23]=kt>>>24&255,G[24]=He>>>0&255,G[25]=He>>>8&255,G[26]=He>>>16&255,G[27]=He>>>24&255,G[28]=qe>>>0&255,G[29]=qe>>>8&255,G[30]=qe>>>16&255,G[31]=qe>>>24&255,G[32]=ut>>>0&255,G[33]=ut>>>8&255,G[34]=ut>>>16&255,G[35]=ut>>>24&255,G[36]=nt>>>0&255,G[37]=nt>>>8&255,G[38]=nt>>>16&255,G[39]=nt>>>24&255,G[40]=rt>>>0&255,G[41]=rt>>>8&255,G[42]=rt>>>16&255,G[43]=rt>>>24&255,G[44]=ft>>>0&255,G[45]=ft>>>8&255,G[46]=ft>>>16&255,G[47]=ft>>>24&255,G[48]=Xt>>>0&255,G[49]=Xt>>>8&255,G[50]=Xt>>>16&255,G[51]=Xt>>>24&255,G[52]=wn>>>0&255,G[53]=wn>>>8&255,G[54]=wn>>>16&255,G[55]=wn>>>24&255,G[56]=Sn>>>0&255,G[57]=Sn>>>8&255,G[58]=Sn>>>16&255,G[59]=Sn>>>24&255,G[60]=yn>>>0&255,G[61]=yn>>>8&255,G[62]=yn>>>16&255,G[63]=yn>>>24&255}function I(G,re,ne,F){for(var ae=F[0]&255|(F[1]&255)<<8|(F[2]&255)<<16|(F[3]&255)<<24,Re=ne[0]&255|(ne[1]&255)<<8|(ne[2]&255)<<16|(ne[3]&255)<<24,Le=ne[4]&255|(ne[5]&255)<<8|(ne[6]&255)<<16|(ne[7]&255)<<24,et=ne[8]&255|(ne[9]&255)<<8|(ne[10]&255)<<16|(ne[11]&255)<<24,mt=ne[12]&255|(ne[13]&255)<<8|(ne[14]&255)<<16|(ne[15]&255)<<24,$t=F[4]&255|(F[5]&255)<<8|(F[6]&255)<<16|(F[7]&255)<<24,Et=re[0]&255|(re[1]&255)<<8|(re[2]&255)<<16|(re[3]&255)<<24,Un=re[4]&255|(re[5]&255)<<8|(re[6]&255)<<16|(re[7]&255)<<24,Ot=re[8]&255|(re[9]&255)<<8|(re[10]&255)<<16|(re[11]&255)<<24,an=re[12]&255|(re[13]&255)<<8|(re[14]&255)<<16|(re[15]&255)<<24,Ct=F[8]&255|(F[9]&255)<<8|(F[10]&255)<<16|(F[11]&255)<<24,Jt=ne[16]&255|(ne[17]&255)<<8|(ne[18]&255)<<16|(ne[19]&255)<<24,hn=ne[20]&255|(ne[21]&255)<<8|(ne[22]&255)<<16|(ne[23]&255)<<24,gn=ne[24]&255|(ne[25]&255)<<8|(ne[26]&255)<<16|(ne[27]&255)<<24,ln=ne[28]&255|(ne[29]&255)<<8|(ne[30]&255)<<16|(ne[31]&255)<<24,mn=F[12]&255|(F[13]&255)<<8|(F[14]&255)<<16|(F[15]&255)<<24,Lt=ae,Gt=Re,Pt=Le,Ft=et,qt=mt,kt=$t,He=Et,qe=Un,ut=Ot,nt=an,rt=Ct,ft=Jt,Xt=hn,wn=gn,Sn=ln,yn=mn,ye,kn=0;kn<20;kn+=2)ye=Lt+Xt|0,qt^=ye<<7|ye>>>32-7,ye=qt+Lt|0,ut^=ye<<9|ye>>>32-9,ye=ut+qt|0,Xt^=ye<<13|ye>>>32-13,ye=Xt+ut|0,Lt^=ye<<18|ye>>>32-18,ye=kt+Gt|0,nt^=ye<<7|ye>>>32-7,ye=nt+kt|0,wn^=ye<<9|ye>>>32-9,ye=wn+nt|0,Gt^=ye<<13|ye>>>32-13,ye=Gt+wn|0,kt^=ye<<18|ye>>>32-18,ye=rt+He|0,Sn^=ye<<7|ye>>>32-7,ye=Sn+rt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Sn|0,He^=ye<<13|ye>>>32-13,ye=He+Pt|0,rt^=ye<<18|ye>>>32-18,ye=yn+ft|0,Ft^=ye<<7|ye>>>32-7,ye=Ft+yn|0,qe^=ye<<9|ye>>>32-9,ye=qe+Ft|0,ft^=ye<<13|ye>>>32-13,ye=ft+qe|0,yn^=ye<<18|ye>>>32-18,ye=Lt+Ft|0,Gt^=ye<<7|ye>>>32-7,ye=Gt+Lt|0,Pt^=ye<<9|ye>>>32-9,ye=Pt+Gt|0,Ft^=ye<<13|ye>>>32-13,ye=Ft+Pt|0,Lt^=ye<<18|ye>>>32-18,ye=kt+qt|0,He^=ye<<7|ye>>>32-7,ye=He+kt|0,qe^=ye<<9|ye>>>32-9,ye=qe+He|0,qt^=ye<<13|ye>>>32-13,ye=qt+qe|0,kt^=ye<<18|ye>>>32-18,ye=rt+nt|0,ft^=ye<<7|ye>>>32-7,ye=ft+rt|0,ut^=ye<<9|ye>>>32-9,ye=ut+ft|0,nt^=ye<<13|ye>>>32-13,ye=nt+ut|0,rt^=ye<<18|ye>>>32-18,ye=yn+Sn|0,Xt^=ye<<7|ye>>>32-7,ye=Xt+yn|0,wn^=ye<<9|ye>>>32-9,ye=wn+Xt|0,Sn^=ye<<13|ye>>>32-13,ye=Sn+wn|0,yn^=ye<<18|ye>>>32-18;G[0]=Lt>>>0&255,G[1]=Lt>>>8&255,G[2]=Lt>>>16&255,G[3]=Lt>>>24&255,G[4]=kt>>>0&255,G[5]=kt>>>8&255,G[6]=kt>>>16&255,G[7]=kt>>>24&255,G[8]=rt>>>0&255,G[9]=rt>>>8&255,G[10]=rt>>>16&255,G[11]=rt>>>24&255,G[12]=yn>>>0&255,G[13]=yn>>>8&255,G[14]=yn>>>16&255,G[15]=yn>>>24&255,G[16]=He>>>0&255,G[17]=He>>>8&255,G[18]=He>>>16&255,G[19]=He>>>24&255,G[20]=qe>>>0&255,G[21]=qe>>>8&255,G[22]=qe>>>16&255,G[23]=qe>>>24&255,G[24]=ut>>>0&255,G[25]=ut>>>8&255,G[26]=ut>>>16&255,G[27]=ut>>>24&255,G[28]=nt>>>0&255,G[29]=nt>>>8&255,G[30]=nt>>>16&255,G[31]=nt>>>24&255}function _(G,re,ne,F){w(G,re,ne,F)}function R(G,re,ne,F){I(G,re,ne,F)}var U=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function D(G,re,ne,F,ae,Re,Le){var et=new Uint8Array(16),mt=new Uint8Array(64),$t,Et;for(Et=0;Et<16;Et++)et[Et]=0;for(Et=0;Et<8;Et++)et[Et]=Re[Et];for(;ae>=64;){for(_(mt,et,Le,U),Et=0;Et<64;Et++)G[re+Et]=ne[F+Et]^mt[Et];for($t=1,Et=8;Et<16;Et++)$t=$t+(et[Et]&255)|0,et[Et]=$t&255,$t>>>=8;ae-=64,re+=64,F+=64}if(ae>0)for(_(mt,et,Le,U),Et=0;Et=64;){for(_(Le,Re,ae,U),mt=0;mt<64;mt++)G[re+mt]=Le[mt];for(et=1,mt=8;mt<16;mt++)et=et+(Re[mt]&255)|0,Re[mt]=et&255,et>>>=8;ne-=64,re+=64}if(ne>0)for(_(Le,Re,ae,U),mt=0;mt>>13|ne<<3)&8191,F=G[4]&255|(G[5]&255)<<8,this.r[2]=(ne>>>10|F<<6)&7939,ae=G[6]&255|(G[7]&255)<<8,this.r[3]=(F>>>7|ae<<9)&8191,Re=G[8]&255|(G[9]&255)<<8,this.r[4]=(ae>>>4|Re<<12)&255,this.r[5]=Re>>>1&8190,Le=G[10]&255|(G[11]&255)<<8,this.r[6]=(Re>>>14|Le<<2)&8191,et=G[12]&255|(G[13]&255)<<8,this.r[7]=(Le>>>11|et<<5)&8065,mt=G[14]&255|(G[15]&255)<<8,this.r[8]=(et>>>8|mt<<8)&8191,this.r[9]=mt>>>5&127,this.pad[0]=G[16]&255|(G[17]&255)<<8,this.pad[1]=G[18]&255|(G[19]&255)<<8,this.pad[2]=G[20]&255|(G[21]&255)<<8,this.pad[3]=G[22]&255|(G[23]&255)<<8,this.pad[4]=G[24]&255|(G[25]&255)<<8,this.pad[5]=G[26]&255|(G[27]&255)<<8,this.pad[6]=G[28]&255|(G[29]&255)<<8,this.pad[7]=G[30]&255|(G[31]&255)<<8};O.prototype.blocks=function(G,re,ne){for(var F=this.fin?0:2048,ae,Re,Le,et,mt,$t,Et,Un,Ot,an,Ct,Jt,hn,gn,ln,mn,Lt,Gt,Pt,Ft=this.h[0],qt=this.h[1],kt=this.h[2],He=this.h[3],qe=this.h[4],ut=this.h[5],nt=this.h[6],rt=this.h[7],ft=this.h[8],Xt=this.h[9],wn=this.r[0],Sn=this.r[1],yn=this.r[2],ye=this.r[3],kn=this.r[4],Vn=this.r[5],Hn=this.r[6],xn=this.r[7],qn=this.r[8],jn=this.r[9];ne>=16;)ae=G[re+0]&255|(G[re+1]&255)<<8,Ft+=ae&8191,Re=G[re+2]&255|(G[re+3]&255)<<8,qt+=(ae>>>13|Re<<3)&8191,Le=G[re+4]&255|(G[re+5]&255)<<8,kt+=(Re>>>10|Le<<6)&8191,et=G[re+6]&255|(G[re+7]&255)<<8,He+=(Le>>>7|et<<9)&8191,mt=G[re+8]&255|(G[re+9]&255)<<8,qe+=(et>>>4|mt<<12)&8191,ut+=mt>>>1&8191,$t=G[re+10]&255|(G[re+11]&255)<<8,nt+=(mt>>>14|$t<<2)&8191,Et=G[re+12]&255|(G[re+13]&255)<<8,rt+=($t>>>11|Et<<5)&8191,Un=G[re+14]&255|(G[re+15]&255)<<8,ft+=(Et>>>8|Un<<8)&8191,Xt+=Un>>>5|F,Ot=0,an=Ot,an+=Ft*wn,an+=qt*(5*jn),an+=kt*(5*qn),an+=He*(5*xn),an+=qe*(5*Hn),Ot=an>>>13,an&=8191,an+=ut*(5*Vn),an+=nt*(5*kn),an+=rt*(5*ye),an+=ft*(5*yn),an+=Xt*(5*Sn),Ot+=an>>>13,an&=8191,Ct=Ot,Ct+=Ft*Sn,Ct+=qt*wn,Ct+=kt*(5*jn),Ct+=He*(5*qn),Ct+=qe*(5*xn),Ot=Ct>>>13,Ct&=8191,Ct+=ut*(5*Hn),Ct+=nt*(5*Vn),Ct+=rt*(5*kn),Ct+=ft*(5*ye),Ct+=Xt*(5*yn),Ot+=Ct>>>13,Ct&=8191,Jt=Ot,Jt+=Ft*yn,Jt+=qt*Sn,Jt+=kt*wn,Jt+=He*(5*jn),Jt+=qe*(5*qn),Ot=Jt>>>13,Jt&=8191,Jt+=ut*(5*xn),Jt+=nt*(5*Hn),Jt+=rt*(5*Vn),Jt+=ft*(5*kn),Jt+=Xt*(5*ye),Ot+=Jt>>>13,Jt&=8191,hn=Ot,hn+=Ft*ye,hn+=qt*yn,hn+=kt*Sn,hn+=He*wn,hn+=qe*(5*jn),Ot=hn>>>13,hn&=8191,hn+=ut*(5*qn),hn+=nt*(5*xn),hn+=rt*(5*Hn),hn+=ft*(5*Vn),hn+=Xt*(5*kn),Ot+=hn>>>13,hn&=8191,gn=Ot,gn+=Ft*kn,gn+=qt*ye,gn+=kt*yn,gn+=He*Sn,gn+=qe*wn,Ot=gn>>>13,gn&=8191,gn+=ut*(5*jn),gn+=nt*(5*qn),gn+=rt*(5*xn),gn+=ft*(5*Hn),gn+=Xt*(5*Vn),Ot+=gn>>>13,gn&=8191,ln=Ot,ln+=Ft*Vn,ln+=qt*kn,ln+=kt*ye,ln+=He*yn,ln+=qe*Sn,Ot=ln>>>13,ln&=8191,ln+=ut*wn,ln+=nt*(5*jn),ln+=rt*(5*qn),ln+=ft*(5*xn),ln+=Xt*(5*Hn),Ot+=ln>>>13,ln&=8191,mn=Ot,mn+=Ft*Hn,mn+=qt*Vn,mn+=kt*kn,mn+=He*ye,mn+=qe*yn,Ot=mn>>>13,mn&=8191,mn+=ut*Sn,mn+=nt*wn,mn+=rt*(5*jn),mn+=ft*(5*qn),mn+=Xt*(5*xn),Ot+=mn>>>13,mn&=8191,Lt=Ot,Lt+=Ft*xn,Lt+=qt*Hn,Lt+=kt*Vn,Lt+=He*kn,Lt+=qe*ye,Ot=Lt>>>13,Lt&=8191,Lt+=ut*yn,Lt+=nt*Sn,Lt+=rt*wn,Lt+=ft*(5*jn),Lt+=Xt*(5*qn),Ot+=Lt>>>13,Lt&=8191,Gt=Ot,Gt+=Ft*qn,Gt+=qt*xn,Gt+=kt*Hn,Gt+=He*Vn,Gt+=qe*kn,Ot=Gt>>>13,Gt&=8191,Gt+=ut*ye,Gt+=nt*yn,Gt+=rt*Sn,Gt+=ft*wn,Gt+=Xt*(5*jn),Ot+=Gt>>>13,Gt&=8191,Pt=Ot,Pt+=Ft*jn,Pt+=qt*qn,Pt+=kt*xn,Pt+=He*Hn,Pt+=qe*Vn,Ot=Pt>>>13,Pt&=8191,Pt+=ut*kn,Pt+=nt*ye,Pt+=rt*yn,Pt+=ft*Sn,Pt+=Xt*wn,Ot+=Pt>>>13,Pt&=8191,Ot=(Ot<<2)+Ot|0,Ot=Ot+an|0,an=Ot&8191,Ot=Ot>>>13,Ct+=Ot,Ft=an,qt=Ct,kt=Jt,He=hn,qe=gn,ut=ln,nt=mn,rt=Lt,ft=Gt,Xt=Pt,re+=16,ne-=16;this.h[0]=Ft,this.h[1]=qt,this.h[2]=kt,this.h[3]=He,this.h[4]=qe,this.h[5]=ut,this.h[6]=nt,this.h[7]=rt,this.h[8]=ft,this.h[9]=Xt},O.prototype.finish=function(G,re){var ne=new Uint16Array(10),F,ae,Re,Le;if(this.leftover){for(Le=this.leftover,this.buffer[Le++]=1;Le<16;Le++)this.buffer[Le]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(F=this.h[1]>>>13,this.h[1]&=8191,Le=2;Le<10;Le++)this.h[Le]+=F,F=this.h[Le]>>>13,this.h[Le]&=8191;for(this.h[0]+=F*5,F=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=F,F=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=F,ne[0]=this.h[0]+5,F=ne[0]>>>13,ne[0]&=8191,Le=1;Le<10;Le++)ne[Le]=this.h[Le]+F,F=ne[Le]>>>13,ne[Le]&=8191;for(ne[9]-=1<<13,ae=(F^1)-1,Le=0;Le<10;Le++)ne[Le]&=ae;for(ae=~ae,Le=0;Le<10;Le++)this.h[Le]=this.h[Le]&ae|ne[Le];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,Re=this.h[0]+this.pad[0],this.h[0]=Re&65535,Le=1;Le<8;Le++)Re=(this.h[Le]+this.pad[Le]|0)+(Re>>>16)|0,this.h[Le]=Re&65535;G[re+0]=this.h[0]>>>0&255,G[re+1]=this.h[0]>>>8&255,G[re+2]=this.h[1]>>>0&255,G[re+3]=this.h[1]>>>8&255,G[re+4]=this.h[2]>>>0&255,G[re+5]=this.h[2]>>>8&255,G[re+6]=this.h[3]>>>0&255,G[re+7]=this.h[3]>>>8&255,G[re+8]=this.h[4]>>>0&255,G[re+9]=this.h[4]>>>8&255,G[re+10]=this.h[5]>>>0&255,G[re+11]=this.h[5]>>>8&255,G[re+12]=this.h[6]>>>0&255,G[re+13]=this.h[6]>>>8&255,G[re+14]=this.h[7]>>>0&255,G[re+15]=this.h[7]>>>8&255},O.prototype.update=function(G,re,ne){var F,ae;if(this.leftover){for(ae=16-this.leftover,ae>ne&&(ae=ne),F=0;F=16&&(ae=ne-ne%16,this.blocks(G,re,ae),re+=ae,ne-=ae),ne){for(F=0;F>16&1),Re[ne-1]&=65535;Re[15]=Le[15]-32767-(Re[14]>>16&1),ae=Re[15]>>16&1,Re[14]&=65535,Y(Le,Re,1-ae)}for(ne=0;ne<16;ne++)G[2*ne]=Le[ne]&255,G[2*ne+1]=Le[ne]>>8}function ie(G,re){var ne=new Uint8Array(32),F=new Uint8Array(32);return W(ne,G),W(F,re),x(ne,0,F,0)}function le(G){var re=new Uint8Array(32);return W(re,G),re[0]&1}function fe(G,re){var ne;for(ne=0;ne<16;ne++)G[ne]=re[2*ne]+(re[2*ne+1]<<8);G[15]&=32767}function Ee(G,re,ne){for(var F=0;F<16;F++)G[F]=re[F]+ne[F]}function Ae(G,re,ne){for(var F=0;F<16;F++)G[F]=re[F]-ne[F]}function Ie(G,re,ne){var F,ae,Re=0,Le=0,et=0,mt=0,$t=0,Et=0,Un=0,Ot=0,an=0,Ct=0,Jt=0,hn=0,gn=0,ln=0,mn=0,Lt=0,Gt=0,Pt=0,Ft=0,qt=0,kt=0,He=0,qe=0,ut=0,nt=0,rt=0,ft=0,Xt=0,wn=0,Sn=0,yn=0,ye=ne[0],kn=ne[1],Vn=ne[2],Hn=ne[3],xn=ne[4],qn=ne[5],jn=ne[6],Jr=ne[7],rr=ne[8],Pr=ne[9],Xr=ne[10],Zr=ne[11],Uo=ne[12],ni=ne[13],ri=ne[14],oi=ne[15];F=re[0],Re+=F*ye,Le+=F*kn,et+=F*Vn,mt+=F*Hn,$t+=F*xn,Et+=F*qn,Un+=F*jn,Ot+=F*Jr,an+=F*rr,Ct+=F*Pr,Jt+=F*Xr,hn+=F*Zr,gn+=F*Uo,ln+=F*ni,mn+=F*ri,Lt+=F*oi,F=re[1],Le+=F*ye,et+=F*kn,mt+=F*Vn,$t+=F*Hn,Et+=F*xn,Un+=F*qn,Ot+=F*jn,an+=F*Jr,Ct+=F*rr,Jt+=F*Pr,hn+=F*Xr,gn+=F*Zr,ln+=F*Uo,mn+=F*ni,Lt+=F*ri,Gt+=F*oi,F=re[2],et+=F*ye,mt+=F*kn,$t+=F*Vn,Et+=F*Hn,Un+=F*xn,Ot+=F*qn,an+=F*jn,Ct+=F*Jr,Jt+=F*rr,hn+=F*Pr,gn+=F*Xr,ln+=F*Zr,mn+=F*Uo,Lt+=F*ni,Gt+=F*ri,Pt+=F*oi,F=re[3],mt+=F*ye,$t+=F*kn,Et+=F*Vn,Un+=F*Hn,Ot+=F*xn,an+=F*qn,Ct+=F*jn,Jt+=F*Jr,hn+=F*rr,gn+=F*Pr,ln+=F*Xr,mn+=F*Zr,Lt+=F*Uo,Gt+=F*ni,Pt+=F*ri,Ft+=F*oi,F=re[4],$t+=F*ye,Et+=F*kn,Un+=F*Vn,Ot+=F*Hn,an+=F*xn,Ct+=F*qn,Jt+=F*jn,hn+=F*Jr,gn+=F*rr,ln+=F*Pr,mn+=F*Xr,Lt+=F*Zr,Gt+=F*Uo,Pt+=F*ni,Ft+=F*ri,qt+=F*oi,F=re[5],Et+=F*ye,Un+=F*kn,Ot+=F*Vn,an+=F*Hn,Ct+=F*xn,Jt+=F*qn,hn+=F*jn,gn+=F*Jr,ln+=F*rr,mn+=F*Pr,Lt+=F*Xr,Gt+=F*Zr,Pt+=F*Uo,Ft+=F*ni,qt+=F*ri,kt+=F*oi,F=re[6],Un+=F*ye,Ot+=F*kn,an+=F*Vn,Ct+=F*Hn,Jt+=F*xn,hn+=F*qn,gn+=F*jn,ln+=F*Jr,mn+=F*rr,Lt+=F*Pr,Gt+=F*Xr,Pt+=F*Zr,Ft+=F*Uo,qt+=F*ni,kt+=F*ri,He+=F*oi,F=re[7],Ot+=F*ye,an+=F*kn,Ct+=F*Vn,Jt+=F*Hn,hn+=F*xn,gn+=F*qn,ln+=F*jn,mn+=F*Jr,Lt+=F*rr,Gt+=F*Pr,Pt+=F*Xr,Ft+=F*Zr,qt+=F*Uo,kt+=F*ni,He+=F*ri,qe+=F*oi,F=re[8],an+=F*ye,Ct+=F*kn,Jt+=F*Vn,hn+=F*Hn,gn+=F*xn,ln+=F*qn,mn+=F*jn,Lt+=F*Jr,Gt+=F*rr,Pt+=F*Pr,Ft+=F*Xr,qt+=F*Zr,kt+=F*Uo,He+=F*ni,qe+=F*ri,ut+=F*oi,F=re[9],Ct+=F*ye,Jt+=F*kn,hn+=F*Vn,gn+=F*Hn,ln+=F*xn,mn+=F*qn,Lt+=F*jn,Gt+=F*Jr,Pt+=F*rr,Ft+=F*Pr,qt+=F*Xr,kt+=F*Zr,He+=F*Uo,qe+=F*ni,ut+=F*ri,nt+=F*oi,F=re[10],Jt+=F*ye,hn+=F*kn,gn+=F*Vn,ln+=F*Hn,mn+=F*xn,Lt+=F*qn,Gt+=F*jn,Pt+=F*Jr,Ft+=F*rr,qt+=F*Pr,kt+=F*Xr,He+=F*Zr,qe+=F*Uo,ut+=F*ni,nt+=F*ri,rt+=F*oi,F=re[11],hn+=F*ye,gn+=F*kn,ln+=F*Vn,mn+=F*Hn,Lt+=F*xn,Gt+=F*qn,Pt+=F*jn,Ft+=F*Jr,qt+=F*rr,kt+=F*Pr,He+=F*Xr,qe+=F*Zr,ut+=F*Uo,nt+=F*ni,rt+=F*ri,ft+=F*oi,F=re[12],gn+=F*ye,ln+=F*kn,mn+=F*Vn,Lt+=F*Hn,Gt+=F*xn,Pt+=F*qn,Ft+=F*jn,qt+=F*Jr,kt+=F*rr,He+=F*Pr,qe+=F*Xr,ut+=F*Zr,nt+=F*Uo,rt+=F*ni,ft+=F*ri,Xt+=F*oi,F=re[13],ln+=F*ye,mn+=F*kn,Lt+=F*Vn,Gt+=F*Hn,Pt+=F*xn,Ft+=F*qn,qt+=F*jn,kt+=F*Jr,He+=F*rr,qe+=F*Pr,ut+=F*Xr,nt+=F*Zr,rt+=F*Uo,ft+=F*ni,Xt+=F*ri,wn+=F*oi,F=re[14],mn+=F*ye,Lt+=F*kn,Gt+=F*Vn,Pt+=F*Hn,Ft+=F*xn,qt+=F*qn,kt+=F*jn,He+=F*Jr,qe+=F*rr,ut+=F*Pr,nt+=F*Xr,rt+=F*Zr,ft+=F*Uo,Xt+=F*ni,wn+=F*ri,Sn+=F*oi,F=re[15],Lt+=F*ye,Gt+=F*kn,Pt+=F*Vn,Ft+=F*Hn,qt+=F*xn,kt+=F*qn,He+=F*jn,qe+=F*Jr,ut+=F*rr,nt+=F*Pr,rt+=F*Xr,ft+=F*Zr,Xt+=F*Uo,wn+=F*ni,Sn+=F*ri,yn+=F*oi,Re+=38*Gt,Le+=38*Pt,et+=38*Ft,mt+=38*qt,$t+=38*kt,Et+=38*He,Un+=38*qe,Ot+=38*ut,an+=38*nt,Ct+=38*rt,Jt+=38*ft,hn+=38*Xt,gn+=38*wn,ln+=38*Sn,mn+=38*yn,ae=1,F=Re+ae+65535,ae=Math.floor(F/65536),Re=F-ae*65536,F=Le+ae+65535,ae=Math.floor(F/65536),Le=F-ae*65536,F=et+ae+65535,ae=Math.floor(F/65536),et=F-ae*65536,F=mt+ae+65535,ae=Math.floor(F/65536),mt=F-ae*65536,F=$t+ae+65535,ae=Math.floor(F/65536),$t=F-ae*65536,F=Et+ae+65535,ae=Math.floor(F/65536),Et=F-ae*65536,F=Un+ae+65535,ae=Math.floor(F/65536),Un=F-ae*65536,F=Ot+ae+65535,ae=Math.floor(F/65536),Ot=F-ae*65536,F=an+ae+65535,ae=Math.floor(F/65536),an=F-ae*65536,F=Ct+ae+65535,ae=Math.floor(F/65536),Ct=F-ae*65536,F=Jt+ae+65535,ae=Math.floor(F/65536),Jt=F-ae*65536,F=hn+ae+65535,ae=Math.floor(F/65536),hn=F-ae*65536,F=gn+ae+65535,ae=Math.floor(F/65536),gn=F-ae*65536,F=ln+ae+65535,ae=Math.floor(F/65536),ln=F-ae*65536,F=mn+ae+65535,ae=Math.floor(F/65536),mn=F-ae*65536,F=Lt+ae+65535,ae=Math.floor(F/65536),Lt=F-ae*65536,Re+=ae-1+37*(ae-1),ae=1,F=Re+ae+65535,ae=Math.floor(F/65536),Re=F-ae*65536,F=Le+ae+65535,ae=Math.floor(F/65536),Le=F-ae*65536,F=et+ae+65535,ae=Math.floor(F/65536),et=F-ae*65536,F=mt+ae+65535,ae=Math.floor(F/65536),mt=F-ae*65536,F=$t+ae+65535,ae=Math.floor(F/65536),$t=F-ae*65536,F=Et+ae+65535,ae=Math.floor(F/65536),Et=F-ae*65536,F=Un+ae+65535,ae=Math.floor(F/65536),Un=F-ae*65536,F=Ot+ae+65535,ae=Math.floor(F/65536),Ot=F-ae*65536,F=an+ae+65535,ae=Math.floor(F/65536),an=F-ae*65536,F=Ct+ae+65535,ae=Math.floor(F/65536),Ct=F-ae*65536,F=Jt+ae+65535,ae=Math.floor(F/65536),Jt=F-ae*65536,F=hn+ae+65535,ae=Math.floor(F/65536),hn=F-ae*65536,F=gn+ae+65535,ae=Math.floor(F/65536),gn=F-ae*65536,F=ln+ae+65535,ae=Math.floor(F/65536),ln=F-ae*65536,F=mn+ae+65535,ae=Math.floor(F/65536),mn=F-ae*65536,F=Lt+ae+65535,ae=Math.floor(F/65536),Lt=F-ae*65536,Re+=ae-1+37*(ae-1),G[0]=Re,G[1]=Le,G[2]=et,G[3]=mt,G[4]=$t,G[5]=Et,G[6]=Un,G[7]=Ot,G[8]=an,G[9]=Ct,G[10]=Jt,G[11]=hn,G[12]=gn,G[13]=ln,G[14]=mn,G[15]=Lt}function De(G,re){Ie(G,re,re)}function Ue(G,re){var ne=n(),F;for(F=0;F<16;F++)ne[F]=re[F];for(F=253;F>=0;F--)De(ne,ne),F!==2&&F!==4&&Ie(ne,ne,re);for(F=0;F<16;F++)G[F]=ne[F]}function ce(G,re){var ne=n(),F;for(F=0;F<16;F++)ne[F]=re[F];for(F=250;F>=0;F--)De(ne,ne),F!==1&&Ie(ne,ne,re);for(F=0;F<16;F++)G[F]=ne[F]}function de(G,re,ne){var F=new Uint8Array(32),ae=new Float64Array(80),Re,Le,et=n(),mt=n(),$t=n(),Et=n(),Un=n(),Ot=n();for(Le=0;Le<31;Le++)F[Le]=re[Le];for(F[31]=re[31]&127|64,F[0]&=248,fe(ae,ne),Le=0;Le<16;Le++)mt[Le]=ae[Le],Et[Le]=et[Le]=$t[Le]=0;for(et[0]=Et[0]=1,Le=254;Le>=0;--Le)Re=F[Le>>>3]>>>(Le&7)&1,Y(et,mt,Re),Y($t,Et,Re),Ee(Un,et,$t),Ae(et,et,$t),Ee($t,mt,Et),Ae(mt,mt,Et),De(Et,Un),De(Ot,et),Ie(et,$t,et),Ie($t,mt,Un),Ee(Un,et,$t),Ae(et,et,$t),De(mt,et),Ae($t,Et,Ot),Ie(et,$t,l),Ee(et,et,Et),Ie($t,$t,et),Ie(et,Et,Ot),Ie(Et,mt,ae),De(mt,Un),Y(et,mt,Re),Y($t,Et,Re);for(Le=0;Le<16;Le++)ae[Le+16]=et[Le],ae[Le+32]=$t[Le],ae[Le+48]=mt[Le],ae[Le+64]=Et[Le];var an=ae.subarray(32),Ct=ae.subarray(16);return Ue(an,an),Ie(Ct,Ct,an),W(G,Ct),0}function ve(G,re){return de(G,re,i)}function he(G,re){return r(re,32),ve(G,re)}function pe(G,re,ne){var F=new Uint8Array(32);return de(F,ne,re),R(G,o,F,U)}var ge=L,Ce=B;function _e(G,re,ne,F,ae,Re){var Le=new Uint8Array(32);return pe(Le,ae,Re),ge(G,re,ne,F,Le)}function Ne(G,re,ne,F,ae,Re){var Le=new Uint8Array(32);return pe(Le,ae,Re),Ce(G,re,ne,F,Le)}var Be=[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 Ve(G,re,ne,F){for(var ae=new Int32Array(16),Re=new Int32Array(16),Le,et,mt,$t,Et,Un,Ot,an,Ct,Jt,hn,gn,ln,mn,Lt,Gt,Pt,Ft,qt,kt,He,qe,ut,nt,rt,ft,Xt=G[0],wn=G[1],Sn=G[2],yn=G[3],ye=G[4],kn=G[5],Vn=G[6],Hn=G[7],xn=re[0],qn=re[1],jn=re[2],Jr=re[3],rr=re[4],Pr=re[5],Xr=re[6],Zr=re[7],Uo=0;F>=128;){for(qt=0;qt<16;qt++)kt=8*qt+Uo,ae[qt]=ne[kt+0]<<24|ne[kt+1]<<16|ne[kt+2]<<8|ne[kt+3],Re[qt]=ne[kt+4]<<24|ne[kt+5]<<16|ne[kt+6]<<8|ne[kt+7];for(qt=0;qt<80;qt++)if(Le=Xt,et=wn,mt=Sn,$t=yn,Et=ye,Un=kn,Ot=Vn,an=Hn,Ct=xn,Jt=qn,hn=jn,gn=Jr,ln=rr,mn=Pr,Lt=Xr,Gt=Zr,He=Hn,qe=Zr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=(ye>>>14|rr<<32-14)^(ye>>>18|rr<<32-18)^(rr>>>41-32|ye<<32-(41-32)),qe=(rr>>>14|ye<<32-14)^(rr>>>18|ye<<32-18)^(ye>>>41-32|rr<<32-(41-32)),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=ye&kn^~ye&Vn,qe=rr&Pr^~rr&Xr,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=Be[qt*2],qe=Be[qt*2+1],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=ae[qt%16],qe=Re[qt%16],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,Pt=rt&65535|ft<<16,Ft=ut&65535|nt<<16,He=Pt,qe=Ft,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=(Xt>>>28|xn<<32-28)^(xn>>>34-32|Xt<<32-(34-32))^(xn>>>39-32|Xt<<32-(39-32)),qe=(xn>>>28|Xt<<32-28)^(Xt>>>34-32|xn<<32-(34-32))^(Xt>>>39-32|xn<<32-(39-32)),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,He=Xt&wn^Xt&Sn^wn&Sn,qe=xn&qn^xn&jn^qn&jn,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,an=rt&65535|ft<<16,Gt=ut&65535|nt<<16,He=$t,qe=gn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=Pt,qe=Ft,ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,$t=rt&65535|ft<<16,gn=ut&65535|nt<<16,wn=Le,Sn=et,yn=mt,ye=$t,kn=Et,Vn=Un,Hn=Ot,Xt=an,qn=Ct,jn=Jt,Jr=hn,rr=gn,Pr=ln,Xr=mn,Zr=Lt,xn=Gt,qt%16===15)for(kt=0;kt<16;kt++)He=ae[kt],qe=Re[kt],ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=ae[(kt+9)%16],qe=Re[(kt+9)%16],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,Pt=ae[(kt+1)%16],Ft=Re[(kt+1)%16],He=(Pt>>>1|Ft<<32-1)^(Pt>>>8|Ft<<32-8)^Pt>>>7,qe=(Ft>>>1|Pt<<32-1)^(Ft>>>8|Pt<<32-8)^(Ft>>>7|Pt<<32-7),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,Pt=ae[(kt+14)%16],Ft=Re[(kt+14)%16],He=(Pt>>>19|Ft<<32-19)^(Ft>>>61-32|Pt<<32-(61-32))^Pt>>>6,qe=(Ft>>>19|Pt<<32-19)^(Pt>>>61-32|Ft<<32-(61-32))^(Ft>>>6|Pt<<32-6),ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,ae[kt]=rt&65535|ft<<16,Re[kt]=ut&65535|nt<<16;He=Xt,qe=xn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[0],qe=re[0],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[0]=Xt=rt&65535|ft<<16,re[0]=xn=ut&65535|nt<<16,He=wn,qe=qn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[1],qe=re[1],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[1]=wn=rt&65535|ft<<16,re[1]=qn=ut&65535|nt<<16,He=Sn,qe=jn,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[2],qe=re[2],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[2]=Sn=rt&65535|ft<<16,re[2]=jn=ut&65535|nt<<16,He=yn,qe=Jr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[3],qe=re[3],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[3]=yn=rt&65535|ft<<16,re[3]=Jr=ut&65535|nt<<16,He=ye,qe=rr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[4],qe=re[4],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[4]=ye=rt&65535|ft<<16,re[4]=rr=ut&65535|nt<<16,He=kn,qe=Pr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[5],qe=re[5],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[5]=kn=rt&65535|ft<<16,re[5]=Pr=ut&65535|nt<<16,He=Vn,qe=Xr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[6],qe=re[6],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[6]=Vn=rt&65535|ft<<16,re[6]=Xr=ut&65535|nt<<16,He=Hn,qe=Zr,ut=qe&65535,nt=qe>>>16,rt=He&65535,ft=He>>>16,He=G[7],qe=re[7],ut+=qe&65535,nt+=qe>>>16,rt+=He&65535,ft+=He>>>16,nt+=ut>>>16,rt+=nt>>>16,ft+=rt>>>16,G[7]=Hn=rt&65535|ft<<16,re[7]=Zr=ut&65535|nt<<16,Uo+=128,F-=128}return F}function wt(G,re,ne){var F=new Int32Array(8),ae=new Int32Array(8),Re=new Uint8Array(256),Le,et=ne;for(F[0]=1779033703,F[1]=3144134277,F[2]=1013904242,F[3]=2773480762,F[4]=1359893119,F[5]=2600822924,F[6]=528734635,F[7]=1541459225,ae[0]=4089235720,ae[1]=2227873595,ae[2]=4271175723,ae[3]=1595750129,ae[4]=2917565137,ae[5]=725511199,ae[6]=4215389547,ae[7]=327033209,Ve(F,ae,re,ne),ne%=128,Le=0;Le=0;--ae)F=ne[ae/8|0]>>(ae&7)&1,je(G,re,F),xe(re,G),xe(G,G),je(G,re,F)}function Fe(G,re){var ne=[n(),n(),n(),n()];H(ne[0],f),H(ne[1],p),H(ne[2],s),Ie(ne[3],f,p),Ge(G,ne,re)}function te(G,re,ne){var F=new Uint8Array(64),ae=[n(),n(),n(),n()],Re;for(ne||r(re,32),wt(F,re,32),F[0]&=248,F[31]&=127,F[31]|=64,Fe(ae,F),We(G,ae),Re=0;Re<32;Re++)re[Re+32]=G[Re];return 0}var Z=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 N(G,re){var ne,F,ae,Re;for(F=63;F>=32;--F){for(ne=0,ae=F-32,Re=F-12;ae>4)*Z[ae],ne=re[ae]>>8,re[ae]&=255;for(ae=0;ae<32;ae++)re[ae]-=ne*Z[ae];for(F=0;F<32;F++)re[F+1]+=re[F]>>8,G[F]=re[F]&255}function k(G){var re=new Float64Array(64),ne;for(ne=0;ne<64;ne++)re[ne]=G[ne];for(ne=0;ne<64;ne++)G[ne]=0;N(G,re)}function S(G,re,ne,F){var ae=new Uint8Array(64),Re=new Uint8Array(64),Le=new Uint8Array(64),et,mt,$t=new Float64Array(64),Et=[n(),n(),n(),n()];wt(ae,F,32),ae[0]&=248,ae[31]&=127,ae[31]|=64;var Un=ne+64;for(et=0;et>7&&Ae(G[0],a,G[0]),Ie(G[3],G[0],G[1]),0)}function V(G,re,ne,F){var ae,Re=new Uint8Array(32),Le=new Uint8Array(64),et=[n(),n(),n(),n()],mt=[n(),n(),n(),n()];if(ne<64||P(mt,F))return-1;for(ae=0;ae=0},t.sign.keyPair=function(){var G=new Uint8Array(wr),re=new Uint8Array(kr);return te(G,re),{publicKey:G,secretKey:re}},t.sign.keyPair.fromSecretKey=function(G){if(nr(G),G.length!==kr)throw new Error("bad secret key size");for(var re=new Uint8Array(wr),ne=0;ne0;)t.push(parseInt(e.slice(0,8),2)),e=e.slice(8);return Buffer.from(t)}Gf.bitsToBytes=ORe;var lS={};Object.defineProperty(lS,"__esModule",{value:!0});lS.wordlist=void 0;const RRe=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"];lS.wordlist=RRe;var DRe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(oo,"__esModule",{value:!0});oo.mnemonicFromRandomSeed=oo.mnemonicIndexesToBytes=oo.bytesToMnemonics=oo.bytesToMnemonicIndexes=oo.mnemonicNew=oo.mnemonicValidate=oo.mnemonicToHDSeed=oo.mnemonicToWalletKey=oo.mnemonicToPrivateKey=oo.mnemonicToSeed=oo.mnemonicToEntropy=void 0;const EJ=DRe(Rf),BRe=dc,$Re=vc,xT=sS,tR=Gf,$A=lS,ND=1e5;async function TJ(e){const t=await uS(e);return await LRe(t)&&!await jD(t)}function UD(e){return e.map(t=>t.toLowerCase().trim())}async function jD(e){return(await(0,xT.pbkdf2_sha512)(e,"TON seed version",Math.max(1,Math.floor(ND/256)),64))[0]==0}async function LRe(e){return(await(0,xT.pbkdf2_sha512)(e,"TON fast seed version",1,64))[0]==1}async function uS(e,t){return await(0,$Re.hmac_sha512)(e.join(" "),t&&t.length>0?t:"")}oo.mnemonicToEntropy=uS;async function WD(e,t,n){const r=await uS(e,n);return await(0,xT.pbkdf2_sha512)(r,t,ND,64)}oo.mnemonicToSeed=WD;async function kJ(e,t){e=UD(e);const n=await WD(e,"TON default seed",t);let r=EJ.default.sign.keyPair.fromSeed(n.slice(0,32));return{publicKey:Buffer.from(r.publicKey),secretKey:Buffer.from(r.secretKey)}}oo.mnemonicToPrivateKey=kJ;async function FRe(e,t){let r=(await kJ(e,t)).secretKey.slice(0,32);const o=EJ.default.sign.keyPair.fromSeed(r);return{publicKey:Buffer.from(o.publicKey),secretKey:Buffer.from(o.secretKey)}}oo.mnemonicToWalletKey=FRe;async function NRe(e,t){return e=UD(e),await WD(e,"TON HD Keys seed",t)}oo.mnemonicToHDSeed=NRe;async function IJ(e,t){e=UD(e);for(let n of e)if($A.wordlist.indexOf(n)<0)return!1;return t&&t.length>0&&!await TJ(e)?!1:await jD(await uS(e,t))}oo.mnemonicValidate=IJ;async function URe(e=24,t){let n=[];for(;;){n=[];for(let r=0;r0&&!await TJ(n))&&await jD(await uS(n,t)))break}return n}oo.mnemonicNew=URe;function PJ(e,t){let n=(0,tR.bytesToBits)(e),r=[];for(let o=0;o=2028)throw Error("Invalid input");t+=(0,tR.lpad)(n.toString(2),"0",11)}for(;t.length%8!==0;)t=t+"0";return(0,tR.bitsToBytes)(t)}oo.mnemonicIndexesToBytes=jRe;async function WRe(e,t=24,n){const r=Math.ceil(t*11/8);let o=e;for(;;){let i=await(0,xT.pbkdf2_sha512)(o,"TON mnemonic seed",Math.max(1,Math.floor(ND/256)),r),a=MJ(i,t);if(await IJ(a,n))return a;o=i}}oo.mnemonicFromRandomSeed=WRe;var Ia={},zRe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ia,"__esModule",{value:!0});Ia.openBox=Ia.sealBox=Ia.signVerify=Ia.sign=Ia.keyPairFromSeed=Ia.keyPairFromSecretKey=void 0;const Fy=zRe(Rf);function VRe(e){let t=Fy.default.sign.keyPair.fromSecretKey(new Uint8Array(e));return{publicKey:Buffer.from(t.publicKey),secretKey:Buffer.from(t.secretKey)}}Ia.keyPairFromSecretKey=VRe;function HRe(e){let t=Fy.default.sign.keyPair.fromSeed(new Uint8Array(e));return{publicKey:Buffer.from(t.publicKey),secretKey:Buffer.from(t.secretKey)}}Ia.keyPairFromSeed=HRe;function qRe(e,t){return Buffer.from(Fy.default.sign.detached(new Uint8Array(e),new Uint8Array(t)))}Ia.sign=qRe;function QRe(e,t,n){return Fy.default.sign.detached.verify(new Uint8Array(e),new Uint8Array(t),new Uint8Array(n))}Ia.signVerify=QRe;function KRe(e,t,n){return Buffer.from(Fy.default.secretbox(e,t,n))}Ia.sealBox=KRe;function YRe(e,t,n){let r=Fy.default.secretbox.open(e,t,n);return r?Buffer.from(r):null}Ia.openBox=YRe;var Jf={};Object.defineProperty(Jf,"__esModule",{value:!0});Jf.deriveEd25519Path=Jf.deriveED25519HardenedKey=Jf.getED25519MasterKeyFromSeed=void 0;const OJ=vc,GRe="ed25519 seed",hW=2147483648;async function RJ(e){const t=await(0,OJ.hmac_sha512)(GRe,e),n=t.slice(0,32),r=t.slice(32);return{key:n,chainCode:r}}Jf.getED25519MasterKeyFromSeed=RJ;async function DJ(e,t){if(t>=hW)throw Error("Key index must be less than offset");const n=Buffer.alloc(4);n.writeUInt32BE(t+hW,0);const r=Buffer.concat([Buffer.alloc(1,0),e.key,n]),o=await(0,OJ.hmac_sha512)(e.chainCode,r),i=o.slice(0,32),a=o.slice(32);return{key:i,chainCode:a}}Jf.deriveED25519HardenedKey=DJ;async function JRe(e,t){let n=await RJ(e),r=[...t];for(;r.length>0;){let o=r[0];r=r.slice(1),n=await DJ(n,o)}return n.key}Jf.deriveEd25519Path=JRe;var Xf={};Object.defineProperty(Xf,"__esModule",{value:!0});Xf.deriveSymmetricPath=Xf.deriveSymmetricHardenedKey=Xf.getSymmetricMasterKeyFromSeed=void 0;const BJ=vc,XRe="Symmetric key seed";async function $J(e){const t=await(0,BJ.hmac_sha512)(XRe,e),n=t.slice(32),r=t.slice(0,32);return{key:n,chainCode:r}}Xf.getSymmetricMasterKeyFromSeed=$J;async function LJ(e,t){const n=Buffer.concat([Buffer.alloc(1,0),Buffer.from(t)]),r=await(0,BJ.hmac_sha512)(e.chainCode,n),o=r.slice(32),i=r.slice(0,32);return{key:o,chainCode:i}}Xf.deriveSymmetricHardenedKey=LJ;async function ZRe(e,t){let n=await $J(e),r=[...t];for(;r.length>0;){let o=r[0];r=r.slice(1),n=await LJ(n,o)}return n.key}Xf.deriveSymmetricPath=ZRe;var Zf={};Object.defineProperty(Zf,"__esModule",{value:!0});Zf.deriveMnemonicsPath=Zf.deriveMnemonicHardenedKey=Zf.getMnemonicsMasterKeyFromSeed=void 0;const e5e=oo,FJ=vc,gW=2147483648,t5e="TON Mnemonics HD seed";async function NJ(e){const t=await(0,FJ.hmac_sha512)(t5e,e),n=t.slice(0,32),r=t.slice(32);return{key:n,chainCode:r}}Zf.getMnemonicsMasterKeyFromSeed=NJ;async function UJ(e,t){if(t>=gW)throw Error("Key index must be less than offset");const n=Buffer.alloc(4);n.writeUInt32BE(t+gW,0);const r=Buffer.concat([Buffer.alloc(1,0),e.key,n]),o=await(0,FJ.hmac_sha512)(e.chainCode,r),i=o.slice(0,32),a=o.slice(32);return{key:i,chainCode:a}}Zf.deriveMnemonicHardenedKey=UJ;async function n5e(e,t,n=24,r){let o=await NJ(e),i=[...t];for(;i.length>0;){let a=i[0];i=i.slice(1),o=await UJ(o,a)}return await(0,e5e.mnemonicFromRandomSeed)(o.key,n,r)}Zf.deriveMnemonicsPath=n5e;var mW;function Bg(){return mW||(mW=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMnemonicsMasterKeyFromSeed=e.deriveMnemonicHardenedKey=e.deriveMnemonicsPath=e.deriveSymmetricPath=e.deriveSymmetricHardenedKey=e.getSymmetricMasterKeyFromSeed=e.deriveEd25519Path=e.deriveED25519HardenedKey=e.getED25519MasterKeyFromSeed=e.signVerify=e.sign=e.keyPairFromSecretKey=e.keyPairFromSeed=e.openBox=e.sealBox=e.mnemonicWordList=e.mnemonicToHDSeed=e.mnemonicToSeed=e.mnemonicToWalletKey=e.mnemonicToPrivateKey=e.mnemonicValidate=e.mnemonicNew=e.newSecurePassphrase=e.newSecureWords=e.getSecureRandomNumber=e.getSecureRandomWords=e.getSecureRandomBytes=e.hmac_sha512=e.pbkdf2_sha512=e.sha512_sync=e.sha512=e.sha256_sync=e.sha256=void 0;var t=Kf;Object.defineProperty(e,"sha256",{enumerable:!0,get:function(){return t.sha256}}),Object.defineProperty(e,"sha256_sync",{enumerable:!0,get:function(){return t.sha256_sync}});var n=Yf;Object.defineProperty(e,"sha512",{enumerable:!0,get:function(){return n.sha512}}),Object.defineProperty(e,"sha512_sync",{enumerable:!0,get:function(){return n.sha512_sync}});var r=sS;Object.defineProperty(e,"pbkdf2_sha512",{enumerable:!0,get:function(){return r.pbkdf2_sha512}});var o=vc;Object.defineProperty(e,"hmac_sha512",{enumerable:!0,get:function(){return o.hmac_sha512}});var i=dc;Object.defineProperty(e,"getSecureRandomBytes",{enumerable:!0,get:function(){return i.getSecureRandomBytes}}),Object.defineProperty(e,"getSecureRandomWords",{enumerable:!0,get:function(){return i.getSecureRandomWords}}),Object.defineProperty(e,"getSecureRandomNumber",{enumerable:!0,get:function(){return i.getSecureRandomNumber}});var a=bT;Object.defineProperty(e,"newSecureWords",{enumerable:!0,get:function(){return a.newSecureWords}});var s=ERe();Object.defineProperty(e,"newSecurePassphrase",{enumerable:!0,get:function(){return s.newSecurePassphrase}});var l=oo;Object.defineProperty(e,"mnemonicNew",{enumerable:!0,get:function(){return l.mnemonicNew}}),Object.defineProperty(e,"mnemonicValidate",{enumerable:!0,get:function(){return l.mnemonicValidate}}),Object.defineProperty(e,"mnemonicToPrivateKey",{enumerable:!0,get:function(){return l.mnemonicToPrivateKey}}),Object.defineProperty(e,"mnemonicToWalletKey",{enumerable:!0,get:function(){return l.mnemonicToWalletKey}}),Object.defineProperty(e,"mnemonicToSeed",{enumerable:!0,get:function(){return l.mnemonicToSeed}}),Object.defineProperty(e,"mnemonicToHDSeed",{enumerable:!0,get:function(){return l.mnemonicToHDSeed}});var u=lS;Object.defineProperty(e,"mnemonicWordList",{enumerable:!0,get:function(){return u.wordlist}});var c=Ia;Object.defineProperty(e,"sealBox",{enumerable:!0,get:function(){return c.sealBox}}),Object.defineProperty(e,"openBox",{enumerable:!0,get:function(){return c.openBox}});var f=Ia;Object.defineProperty(e,"keyPairFromSeed",{enumerable:!0,get:function(){return f.keyPairFromSeed}}),Object.defineProperty(e,"keyPairFromSecretKey",{enumerable:!0,get:function(){return f.keyPairFromSecretKey}}),Object.defineProperty(e,"sign",{enumerable:!0,get:function(){return f.sign}}),Object.defineProperty(e,"signVerify",{enumerable:!0,get:function(){return f.signVerify}});var p=Jf;Object.defineProperty(e,"getED25519MasterKeyFromSeed",{enumerable:!0,get:function(){return p.getED25519MasterKeyFromSeed}}),Object.defineProperty(e,"deriveED25519HardenedKey",{enumerable:!0,get:function(){return p.deriveED25519HardenedKey}}),Object.defineProperty(e,"deriveEd25519Path",{enumerable:!0,get:function(){return p.deriveEd25519Path}});var g=Xf;Object.defineProperty(e,"getSymmetricMasterKeyFromSeed",{enumerable:!0,get:function(){return g.getSymmetricMasterKeyFromSeed}}),Object.defineProperty(e,"deriveSymmetricHardenedKey",{enumerable:!0,get:function(){return g.deriveSymmetricHardenedKey}}),Object.defineProperty(e,"deriveSymmetricPath",{enumerable:!0,get:function(){return g.deriveSymmetricPath}});var m=Zf;Object.defineProperty(e,"deriveMnemonicsPath",{enumerable:!0,get:function(){return m.deriveMnemonicsPath}}),Object.defineProperty(e,"deriveMnemonicHardenedKey",{enumerable:!0,get:function(){return m.deriveMnemonicHardenedKey}}),Object.defineProperty(e,"getMnemonicsMasterKeyFromSeed",{enumerable:!0,get:function(){return m.getMnemonicsMasterKeyFromSeed}})}(aP)),aP}Object.defineProperty(hT,"__esModule",{value:!0});hT.wonderCalculator=void 0;const r5e=iS(),ju=My,c1=$y,o5e=By,i5e=Ry,a5e=yd,s5e=Bg(),l5e=Dy,u5e=aS;function c5e(e,t,n){let r,o=null;if(e===ju.CellType.Ordinary){let p=0;for(let g of n)p=p|g.mask.value;r=new c1.LevelMask(p)}else if(e===ju.CellType.PrunedBranch)o=(0,o5e.exoticPruned)(t,n),r=new c1.LevelMask(o.mask);else if(e===ju.CellType.MerkleProof)(0,i5e.exoticMerkleProof)(t,n),r=new c1.LevelMask(n[0].mask.value>>1);else if(e===ju.CellType.MerkleUpdate)(0,l5e.exoticMerkleUpdate)(t,n),r=new c1.LevelMask((n[0].mask.value|n[1].mask.value)>>1);else if(e===ju.CellType.Library)(0,u5e.exoticLibrary)(t,n),r=new c1.LevelMask;else throw new Error("Unsupported exotic type");let i=[],a=[],s=e===ju.CellType.PrunedBranch?1:r.hashCount,u=r.hashCount-s;for(let p=0,g=0;p<=r.level;p++){if(!r.isSignificant(p))continue;if(g0&&y++;let v=(0,a5e.getRepr)(m,n,p,e),x=(0,s5e.sha256_sync)(v),w=g-u;i[w]=y,a[w]=x,g++}let c=[],f=[];if(o)for(let p=0;p<4;p++){const{hashIndex:g}=r.apply(p),{hashIndex:m}=r;g!==m?(c.push(o.pruned[g].hash),f.push(o.pruned[g].depth)):(c.push(a[0]),f.push(i[0]))}else for(let p=0;p<4;p++)c.push(a[r.apply(p).hashIndex]),f.push(i[r.apply(p).hashIndex]);return{mask:r,hashes:c,depths:f}}hT.wonderCalculator=c5e;var Yc={},CT={};Object.defineProperty(CT,"__esModule",{value:!0});CT.topologicalSort=void 0;function d5e(e){let t=[e],n=new Map,r=new Set,o=[];for(;t.length>0;){const u=[...t];t=[];for(let c of u){const f=c.hash().toString("hex");if(!n.has(f)){r.add(f),n.set(f,{cell:c,refs:c.refs.map(p=>p.hash().toString("hex"))});for(let p of c.refs)t.push(p)}}}let i=new Set;function a(u){if(r.has(u)){if(i.has(u))throw Error("Not a DAG");i.add(u);for(let c of n.get(u).refs)a(c);o.unshift(u),i.delete(u),r.delete(u)}}for(;r.size>0;){const u=Array.from(r)[0];a(u)}let s=new Map;for(let u=0;us.get(f))})}return l}CT.topologicalSort=d5e;var AT={};Object.defineProperty(AT,"__esModule",{value:!0});AT.bitsForNumber=void 0;function f5e(e,t){let n=BigInt(e);if(t==="int")return n===0n||n===-1n?1:(n>0?n:-n).toString(2).length+1;if(t==="uint"){if(n<0)throw Error(`value is negative. Got ${e}`);return n.toString(2).length}else throw Error(`invalid mode. Got ${t}`)}AT.bitsForNumber=f5e;var cS={};Object.defineProperty(cS,"__esModule",{value:!0});cS.crc32c=void 0;const yf=2197175160;function p5e(e){let t=-1;for(let r=0;r>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1,t=t&1?t>>>1^yf:t>>>1;t=t^4294967295;let n=Buffer.alloc(4);return n.writeInt32LE(t),n}cS.crc32c=p5e;var yW;function h5e(){if(yW)return Yc;yW=1,Object.defineProperty(Yc,"__esModule",{value:!0}),Yc.serializeBoc=Yc.deserializeBoc=Yc.parseBoc=void 0;const e=ku,t=iS(),n=$g(),r=CT,o=AT,i=uT(),a=yd,s=lT(),l=cS;function u(y,v){const x=y.loadUint(8),w=x%8,I=!!(x&8),_=y.loadUint(8),R=Math.ceil(_/2),U=!!(_%2);let D=t.BitString.EMPTY;R>0&&(U?D=y.loadPaddedBits(R*8):D=y.loadBits(R*8));let b=[];for(let T=0;T=0;_--){if(w[_].result)throw Error("Impossible");let R=[];for(let U of w[_].refs){if(!w[U].result)throw Error("Invalid BOC file");R.push(w[U].result)}w[_].result=new n.Cell({bits:w[_].bits,refs:R,exotic:w[_].exotic})}let I=[];for(let _=0;_{if(this.isExotic&&!_)throw new Error("Exotic cells cannot be parsed");return new i.Slice(new u.BitReader(this.bits),this.refs)},this.hash=(_=3)=>this._hashes[Math.min(this._hashes.length-1,_)],this.depth=(_=3)=>this._depths[Math.min(this._depths.length-1,_)],this.level=()=>this.mask.level,this.equals=_=>this.hash().equals(_.hash()),this[t]=()=>this.toString();let m=r.BitString.EMPTY;g&&g.bits&&(m=g.bits);let y=[];g&&g.refs&&(y=[...g.refs]);let v,x,w,I=o.CellType.Ordinary;if(g&&g.exotic){let _=(0,a.resolveExotic)(m,y),R=(0,s.wonderCalculator)(_.type,m,y);w=R.mask,x=R.depths,v=R.hashes,I=_.type}else{if(y.length>4)throw new Error("Invalid number of references");if(m.length>1023)throw new Error(`Bits overflow: ${m.length} > 1023`);let _=(0,s.wonderCalculator)(o.CellType.Ordinary,m,y);w=_.mask,x=_.depths,v=_.hashes,I=o.CellType.Ordinary}this.type=I,this.bits=m,this.refs=y,this.mask=w,this._depths=x,this._hashes=v,Object.freeze(this),Object.freeze(this.refs),Object.freeze(this.bits),Object.freeze(this.mask),Object.freeze(this._depths),Object.freeze(this._hashes)}get isExotic(){return this.type!==o.CellType.Ordinary}toBoc(g){let m=g&&g.idx!==null&&g.idx!==void 0?g.idx:!1,y=g&&g.crc32!==null&&g.crc32!==void 0?g.crc32:!0;return(0,l.serializeBoc)(this,{idx:m,crc32:y})}toString(g){let m=g||"",y="x";this.isExotic&&(this.type===o.CellType.MerkleProof?y="p":this.type===o.CellType.MerkleUpdate?y="u":this.type===o.CellType.PrunedBranch&&(y="p"));let v=m+(this.isExotic?y:"x")+"{"+this.bits.toString()+"}";for(let x in this.refs){const w=this.refs[x];v+=` +`+w.toString(m+" ")}return v}asSlice(){return this.beginParse()}asBuilder(){return(0,c.beginCell)().storeSlice(this.asSlice())}};return a1.Cell=f,t=n.default,f.EMPTY=new f,a1}var bW;function ya(){if(bW)return rh;bW=1,Object.defineProperty(rh,"__esModule",{value:!0}),rh.Builder=rh.beginCell=void 0;const e=uT(),t=$g(),n=yJ();function r(){return new o}rh.beginCell=r;let o=class WJ{constructor(){this._bits=new e.BitBuilder,this._refs=[]}get bits(){return this._bits.length}get refs(){return this._refs.length}get availableBits(){return 1023-this.bits}get availableRefs(){return 4-this.refs}storeBit(a){return this._bits.writeBit(a),this}storeBits(a){return this._bits.writeBits(a),this}storeBuffer(a,s){if(s!=null&&a.length!==s)throw Error(`Buffer length ${a.length} is not equal to ${s}`);return this._bits.writeBuffer(a),this}storeMaybeBuffer(a,s){return a!==null?(this.storeBit(1),this.storeBuffer(a,s)):this.storeBit(0),this}storeUint(a,s){return this._bits.writeUint(a,s),this}storeMaybeUint(a,s){return a!=null?(this.storeBit(1),this.storeUint(a,s)):this.storeBit(0),this}storeInt(a,s){return this._bits.writeInt(a,s),this}storeMaybeInt(a,s){return a!=null?(this.storeBit(1),this.storeInt(a,s)):this.storeBit(0),this}storeVarUint(a,s){return this._bits.writeVarUint(a,s),this}storeMaybeVarUint(a,s){return a!=null?(this.storeBit(1),this.storeVarUint(a,s)):this.storeBit(0),this}storeVarInt(a,s){return this._bits.writeVarInt(a,s),this}storeMaybeVarInt(a,s){return a!=null?(this.storeBit(1),this.storeVarInt(a,s)):this.storeBit(0),this}storeCoins(a){return this._bits.writeCoins(a),this}storeMaybeCoins(a){return a!=null?(this.storeBit(1),this.storeCoins(a)):this.storeBit(0),this}storeAddress(a){return this._bits.writeAddress(a),this}storeRef(a){if(this._refs.length>=4)throw new Error("Too many references");if(a instanceof t.Cell)this._refs.push(a);else if(a instanceof WJ)this._refs.push(a.endCell());else throw new Error("Invalid argument");return this}storeMaybeRef(a){return a?(this.storeBit(1),this.storeRef(a)):this.storeBit(0),this}storeSlice(a){let s=a.clone();for(s.remainingBits>0&&this.storeBits(s.loadBits(s.remainingBits));s.remainingRefs>0;)this.storeRef(s.loadRef());return this}storeMaybeSlice(a){return a?(this.storeBit(1),this.storeSlice(a)):this.storeBit(0),this}storeBuilder(a){return this.storeSlice(a.endCell().beginParse())}storeMaybeBuilder(a){return a?(this.storeBit(1),this.storeBuilder(a)):this.storeBit(0),this}storeWritable(a){return typeof a=="object"?a.writeTo(this):a(this),this}storeMaybeWritable(a){return a?(this.storeBit(1),this.storeWritable(a)):this.storeBit(0),this}store(a){return this.storeWritable(a),this}storeStringTail(a){return(0,n.writeString)(a,this),this}storeMaybeStringTail(a){return a!=null?(this.storeBit(1),(0,n.writeString)(a,this)):this.storeBit(0),this}storeStringRefTail(a){return this.storeRef(r().storeStringTail(a)),this}storeMaybeStringRefTail(a){return a!=null?(this.storeBit(1),this.storeStringRefTail(a)):this.storeBit(0),this}storeDict(a,s,l){return a?a.store(this,s,l):this.storeBit(0),this}storeDictDirect(a,s,l){return a.storeDirect(this,s,l),this}endCell(){return new t.Cell({bits:this._bits.build(),refs:this._refs})}asCell(){return this.endCell()}asSlice(){return this.endCell().beginParse()}};return rh.Builder=o,rh}var bc={},vd={};Object.defineProperty(vd,"__esModule",{value:!0});vd.SimpleLibraryValue=vd.storeSimpleLibrary=vd.loadSimpleLibrary=void 0;function zJ(e){return{public:e.loadBit(),root:e.loadRef()}}vd.loadSimpleLibrary=zJ;function VJ(e){return t=>{t.storeBit(e.public),t.storeRef(e.root)}}vd.storeSimpleLibrary=VJ;vd.SimpleLibraryValue={serialize(e,t){VJ(e)(t)},parse(e){return zJ(e)}};var Zh={};Object.defineProperty(Zh,"__esModule",{value:!0});Zh.storeTickTock=Zh.loadTickTock=void 0;function g5e(e){return{tick:e.loadBit(),tock:e.loadBit()}}Zh.loadTickTock=g5e;function m5e(e){return t=>{t.storeBit(e.tick),t.storeBit(e.tock)}}Zh.storeTickTock=m5e;Object.defineProperty(bc,"__esModule",{value:!0});bc.storeStateInit=bc.loadStateInit=void 0;const y5e=Dg(),v5e=vd,HJ=Zh;function b5e(e){let t;e.loadBit()&&(t=e.loadUint(5));let n;e.loadBit()&&(n=(0,HJ.loadTickTock)(e));let r=e.loadMaybeRef(),o=e.loadMaybeRef(),i=e.loadDict(y5e.Dictionary.Keys.BigUint(256),v5e.SimpleLibraryValue);return i.size===0&&(i=void 0),{splitDepth:t,special:n,code:r,data:o,libraries:i}}bc.loadStateInit=b5e;function w5e(e){return t=>{e.splitDepth!==null&&e.splitDepth!==void 0?(t.storeBit(!0),t.storeUint(e.splitDepth,5)):t.storeBit(!1),e.special!==null&&e.special!==void 0?(t.storeBit(!0),t.store((0,HJ.storeTickTock)(e.special))):t.storeBit(!1),t.storeMaybeRef(e.code),t.storeMaybeRef(e.data),t.storeDict(e.libraries)}}bc.storeStateInit=w5e;Object.defineProperty(sT,"__esModule",{value:!0});sT.contractAddress=void 0;const S5e=ya(),x5e=bc,C5e=Ws;function A5e(e,t){let n=(0,S5e.beginCell)().store((0,x5e.storeStateInit)(t)).endCell().hash();return new C5e.Address(e,n)}sT.contractAddress=A5e;var G0={};Object.defineProperty(G0,"__esModule",{value:!0});G0.parseTuple=G0.serializeTuple=void 0;const sw=ya(),_5e=BigInt("-9223372036854775808"),E5e=BigInt("9223372036854775807");function qJ(e,t){if(e.type==="null")t.storeUint(0,8);else if(e.type==="int")e.value<=E5e&&e.value>=_5e?(t.storeUint(1,8),t.storeInt(e.value,64)):(t.storeUint(256,15),t.storeInt(e.value,257));else if(e.type==="nan")t.storeInt(767,16);else if(e.type==="cell")t.storeUint(3,8),t.storeRef(e.cell);else if(e.type==="slice")t.storeUint(4,8),t.storeUint(0,10),t.storeUint(e.cell.bits.length,10),t.storeUint(0,3),t.storeUint(e.cell.refs.length,3),t.storeRef(e.cell);else if(e.type==="builder")t.storeUint(5,8),t.storeRef(e.cell);else if(e.type==="tuple"){let n=null,r=null;for(let o=0;o1&&(n=(0,sw.beginCell)().storeRef(r).storeRef(n).endCell());let a=(0,sw.beginCell)();qJ(e.items[o],a),r=a.endCell()}t.storeUint(7,8),t.storeUint(e.items.length,16),n&&t.storeRef(n),r&&t.storeRef(r)}else throw Error("Invalid value")}function J1(e){let t=e.loadUint(8);if(t===0)return{type:"null"};if(t===1)return{type:"int",value:e.loadIntBig(64)};if(t===2)return e.loadUint(7)===0?{type:"int",value:e.loadIntBig(257)}:(e.loadBit(),{type:"nan"});if(t===3)return{type:"cell",cell:e.loadRef()};if(t===4){let n=e.loadUint(10),r=e.loadUint(10),o=e.loadUint(3),i=e.loadUint(3),a=e.loadRef().beginParse();a.skip(n);let s=a.loadBits(r-n),l=(0,sw.beginCell)().storeBits(s);if(o1){let o=e.loadRef().beginParse(),i=e.loadRef().beginParse();r.unshift(J1(i));for(let a=0;a0){let n=(0,sw.beginCell)();QJ(e.slice(0,e.length-1),n),t.storeRef(n.endCell()),qJ(e[e.length-1],t)}}function T5e(e){let t=(0,sw.beginCell)();t.storeUint(e.length,24);let n=[...e];return QJ(n,t),t.endCell()}G0.serializeTuple=T5e;function k5e(e){let t=[],n=e.beginParse(),r=n.loadUint(24);for(let o=0;o2)throw Error("Invalid number");let r=n[0],o=n[1];if(r||(r="0"),o||(o="0"),o.length>9)throw Error("Invalid number");for(;o.length<9;)o+="0";let i=BigInt(r)*1000000000n+BigInt(o);return t&&(i=-i),i}}eg.toNano=P5e;function M5e(e){let t=BigInt(e),n=!1;t<0&&(n=!0,t=-t);let o=(t%1000000000n).toString();for(;o.length<9;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];let s=`${(t/1000000000n).toString()}${o==="0"?"":`.${o}`}`;return n&&(s="-"+s),s}eg.fromNano=M5e;Object.defineProperty(ep,"__esModule",{value:!0});ep.comment=ep.external=ep.internal=void 0;const FA=Ws,YJ=$g(),GJ=ya(),O5e=eg;function R5e(e){let t=!0;e.bounce!==null&&e.bounce!==void 0&&(t=e.bounce);let n;if(typeof e.to=="string")n=FA.Address.parse(e.to);else if(FA.Address.isAddress(e.to))n=e.to;else throw new Error(`Invalid address ${e.to}`);let r;typeof e.value=="string"?r=(0,O5e.toNano)(e.value):r=e.value;let o=YJ.Cell.EMPTY;return typeof e.body=="string"?o=(0,GJ.beginCell)().storeUint(0,32).storeStringTail(e.body).endCell():e.body&&(o=e.body),{info:{type:"internal",dest:n,value:{coins:r},bounce:t,ihrDisabled:!0,bounced:!1,ihrFee:0n,forwardFee:0n,createdAt:0,createdLt:0n},init:e.init?{code:e.init.code,data:e.init.data}:void 0,body:o}}ep.internal=R5e;function D5e(e){let t;if(typeof e.to=="string")t=FA.Address.parse(e.to);else if(FA.Address.isAddress(e.to))t=e.to;else throw new Error(`Invalid address ${e.to}`);return{info:{type:"external-in",dest:t,importFee:0n},init:e.init?{code:e.init.code,data:e.init.data}:void 0,body:e.body||YJ.Cell.EMPTY}}ep.external=D5e;function B5e(e){return(0,GJ.beginCell)().storeUint(0,32).storeStringTail(e).endCell()}ep.comment=B5e;var tg={},ng={},rg={};Object.defineProperty(rg,"__esModule",{value:!0});rg.storeAccountState=rg.loadAccountState=void 0;const JJ=bc;function $5e(e){return e.loadBit()?{type:"active",state:(0,JJ.loadStateInit)(e)}:e.loadBit()?{type:"frozen",stateHash:e.loadUintBig(256)}:{type:"uninit"}}rg.loadAccountState=$5e;function L5e(e){return t=>{e.type==="active"?(t.storeBit(!0),t.store((0,JJ.storeStateInit)(e.state))):e.type==="frozen"?(t.storeBit(!1),t.storeBit(!0),t.storeUint(e.stateHash,256)):e.type==="uninit"&&(t.storeBit(!1),t.storeBit(!1))}}rg.storeAccountState=L5e;var zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.storeCurrencyCollection=zs.loadCurrencyCollection=void 0;const wW=Dg();function F5e(e){const t=e.loadCoins(),n=e.loadDict(wW.Dictionary.Keys.Uint(32),wW.Dictionary.Values.BigVarUint(5));return n.size===0?{coins:t}:{other:n,coins:t}}zs.loadCurrencyCollection=F5e;function N5e(e){return t=>{t.storeCoins(e.coins),e.other?t.storeDict(e.other):t.storeBit(0)}}zs.storeCurrencyCollection=N5e;Object.defineProperty(ng,"__esModule",{value:!0});ng.storeAccountStorage=ng.loadAccountStorage=void 0;const XJ=rg,ZJ=zs;function U5e(e){return{lastTransLt:e.loadUintBig(64),balance:(0,ZJ.loadCurrencyCollection)(e),state:(0,XJ.loadAccountState)(e)}}ng.loadAccountStorage=U5e;function j5e(e){return t=>{t.storeUint(e.lastTransLt,64),t.store((0,ZJ.storeCurrencyCollection)(e.balance)),t.store((0,XJ.storeAccountState)(e.state))}}ng.storeAccountStorage=j5e;var og={},ig={};Object.defineProperty(ig,"__esModule",{value:!0});ig.storeStorageUsed=ig.loadStorageUsed=void 0;function W5e(e){return{cells:e.loadVarUintBig(3),bits:e.loadVarUintBig(3),publicCells:e.loadVarUintBig(3)}}ig.loadStorageUsed=W5e;function z5e(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3),t.storeVarUint(e.publicCells,3)}}ig.storeStorageUsed=z5e;Object.defineProperty(og,"__esModule",{value:!0});og.storeStorageInfo=og.loadStorageInfo=void 0;const eX=ig;function V5e(e){return{used:(0,eX.loadStorageUsed)(e),lastPaid:e.loadUint(32),duePayment:e.loadMaybeCoins()}}og.loadStorageInfo=V5e;function H5e(e){return t=>{t.store((0,eX.storeStorageUsed)(e.used)),t.storeUint(e.lastPaid,32),t.storeMaybeCoins(e.duePayment)}}og.storeStorageInfo=H5e;Object.defineProperty(tg,"__esModule",{value:!0});tg.storeAccount=tg.loadAccount=void 0;const tX=ng,nX=og;function q5e(e){return{addr:e.loadAddress(),storageStats:(0,nX.loadStorageInfo)(e),storage:(0,tX.loadAccountStorage)(e)}}tg.loadAccount=q5e;function Q5e(e){return t=>{t.storeAddress(e.addr),t.store((0,nX.storeStorageInfo)(e.storageStats)),t.store((0,tX.storeAccountStorage)(e.storage))}}tg.storeAccount=Q5e;var ag={};Object.defineProperty(ag,"__esModule",{value:!0});ag.storeAccountStatus=ag.loadAccountStatus=void 0;function K5e(e){const t=e.loadUint(2);if(t===0)return"uninitialized";if(t===1)return"frozen";if(t===2)return"active";if(t===3)return"non-existing";throw Error("Invalid data")}ag.loadAccountStatus=K5e;function Y5e(e){return t=>{if(e==="uninitialized")t.storeUint(0,2);else if(e==="frozen")t.storeUint(1,2);else if(e==="active")t.storeUint(2,2);else if(e==="non-existing")t.storeUint(3,2);else throw Error("Invalid data");return t}}ag.storeAccountStatus=Y5e;var dp={};Object.defineProperty(dp,"__esModule",{value:!0});dp.storeAccountStatusChange=dp.loadAccountStatusChange=void 0;function G5e(e){return e.loadBit()?e.loadBit()?"frozen":"deleted":"unchanged"}dp.loadAccountStatusChange=G5e;function J5e(e){return t=>{if(e=="unchanged")t.storeBit(0);else if(e==="frozen")t.storeBit(1),t.storeBit(0);else if(e==="deleted")t.storeBit(1),t.storeBit(1);else throw Error("Invalid account status change")}}dp.storeAccountStatusChange=J5e;var sg={};Object.defineProperty(sg,"__esModule",{value:!0});sg.storeCommonMessageInfo=sg.loadCommonMessageInfo=void 0;const rX=zs;function X5e(e){if(!e.loadBit()){const i=e.loadBit(),a=e.loadBit(),s=e.loadBit(),l=e.loadAddress(),u=e.loadAddress(),c=(0,rX.loadCurrencyCollection)(e),f=e.loadCoins(),p=e.loadCoins(),g=e.loadUintBig(64),m=e.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:a,bounced:s,src:l,dest:u,value:c,ihrFee:f,forwardFee:p,createdLt:g,createdAt:m}}if(!e.loadBit()){const i=e.loadMaybeExternalAddress(),a=e.loadAddress(),s=e.loadCoins();return{type:"external-in",src:i,dest:a,importFee:s}}const t=e.loadAddress(),n=e.loadMaybeExternalAddress(),r=e.loadUintBig(64),o=e.loadUint(32);return{type:"external-out",src:t,dest:n,createdLt:r,createdAt:o}}sg.loadCommonMessageInfo=X5e;function Z5e(e){return t=>{if(e.type==="internal")t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,rX.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else if(e.type==="external-in")t.storeBit(1),t.storeBit(0),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeCoins(e.importFee);else if(e.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}sg.storeCommonMessageInfo=Z5e;var lg={};Object.defineProperty(lg,"__esModule",{value:!0});lg.storeCommonMessageInfoRelaxed=lg.loadCommonMessageInfoRelaxed=void 0;const oX=zs;function e6e(e){if(!e.loadBit()){const i=e.loadBit(),a=e.loadBit(),s=e.loadBit(),l=e.loadMaybeAddress(),u=e.loadAddress(),c=(0,oX.loadCurrencyCollection)(e),f=e.loadCoins(),p=e.loadCoins(),g=e.loadUintBig(64),m=e.loadUint(32);return{type:"internal",ihrDisabled:i,bounce:a,bounced:s,src:l,dest:u,value:c,ihrFee:f,forwardFee:p,createdLt:g,createdAt:m}}if(!e.loadBit())throw Error("External In message is not possible for CommonMessageInfoRelaxed");const t=e.loadMaybeAddress(),n=e.loadMaybeExternalAddress(),r=e.loadUintBig(64),o=e.loadUint(32);return{type:"external-out",src:t,dest:n,createdLt:r,createdAt:o}}lg.loadCommonMessageInfoRelaxed=e6e;function t6e(e){return t=>{if(e.type==="internal")t.storeBit(0),t.storeBit(e.ihrDisabled),t.storeBit(e.bounce),t.storeBit(e.bounced),t.storeAddress(e.src),t.storeAddress(e.dest),t.store((0,oX.storeCurrencyCollection)(e.value)),t.storeCoins(e.ihrFee),t.storeCoins(e.forwardFee),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else if(e.type==="external-out")t.storeBit(1),t.storeBit(1),t.storeAddress(e.src),t.storeAddress(e.dest),t.storeUint(e.createdLt,64),t.storeUint(e.createdAt,32);else throw new Error("Unknown CommonMessageInfo type")}}lg.storeCommonMessageInfoRelaxed=t6e;var ug={};Object.defineProperty(ug,"__esModule",{value:!0});ug.storeComputeSkipReason=ug.loadComputeSkipReason=void 0;function n6e(e){let t=e.loadUint(2);if(t===0)return"no-state";if(t===1)return"bad-state";if(t===2)return"no-gas";throw new Error(`Unknown ComputeSkipReason: ${t}`)}ug.loadComputeSkipReason=n6e;function r6e(e){return t=>{if(e==="no-state")t.storeUint(0,2);else if(e==="bad-state")t.storeUint(1,2);else if(e==="no-gas")t.storeUint(2,2);else throw new Error(`Unknown ComputeSkipReason: ${e}`)}}ug.storeComputeSkipReason=r6e;var cg={};Object.defineProperty(cg,"__esModule",{value:!0});cg.storeDepthBalanceInfo=cg.loadDepthBalanceInfo=void 0;const iX=zs;function o6e(e){return{splitDepth:e.loadUint(5),balance:(0,iX.loadCurrencyCollection)(e)}}cg.loadDepthBalanceInfo=o6e;function i6e(e){return t=>{t.storeUint(e.splitDepth,5),t.store((0,iX.storeCurrencyCollection)(e.balance))}}cg.storeDepthBalanceInfo=i6e;var dg={};Object.defineProperty(dg,"__esModule",{value:!0});dg.storeHashUpdate=dg.loadHashUpdate=void 0;function a6e(e){if(e.loadUint(8)!==114)throw Error("Invalid data");const t=e.loadBuffer(32),n=e.loadBuffer(32);return{oldHash:t,newHash:n}}dg.loadHashUpdate=a6e;function s6e(e){return t=>{t.storeUint(114,8),t.storeBuffer(e.oldHash),t.storeBuffer(e.newHash)}}dg.storeHashUpdate=s6e;var dS={};Object.defineProperty(dS,"__esModule",{value:!0});dS.loadMasterchainStateExtra=void 0;const cP=Dg(),l6e=zs;function u6e(e){if(e.loadUint(16)!==52262)throw Error("Invalid data");e.loadBit()&&e.loadRef();let t=e.loadUintBig(256),n=cP.Dictionary.load(cP.Dictionary.Keys.Int(32),cP.Dictionary.Values.Cell(),e);const r=(0,l6e.loadCurrencyCollection)(e);return{config:n,configAddress:t,globalBalance:r}}dS.loadMasterchainStateExtra=u6e;var bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.MessageValue=bd.storeMessage=bd.loadMessage=void 0;const aX=ya(),sX=sg,nR=bc;function lX(e){const t=(0,sX.loadCommonMessageInfo)(e);let n=null;e.loadBit()&&(e.loadBit()?n=(0,nR.loadStateInit)(e.loadRef().beginParse()):n=(0,nR.loadStateInit)(e));const r=e.loadBit()?e.loadRef():e.asCell();return{info:t,init:n,body:r}}bd.loadMessage=lX;function uX(e,t){return n=>{if(n.store((0,sX.storeCommonMessageInfo)(e.info)),e.init){n.storeBit(!0);let o=(0,aX.beginCell)().store((0,nR.storeStateInit)(e.init)),i=!1;t&&t.forceRef?i=!0:n.availableBits-2>=o.bits?i=!1:i=!0,i?(n.storeBit(!0),n.storeRef(o)):(n.storeBit(!1),n.storeBuilder(o))}else n.storeBit(!1);let r=!1;t&&t.forceRef?r=!0:n.availableBits-1>=e.body.bits.length&&n.refs+e.body.refs.length<=4?r=!1:r=!0,r?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}bd.storeMessage=uX;bd.MessageValue={serialize(e,t){t.storeRef((0,aX.beginCell)().store(uX(e)))},parse(e){return lX(e.loadRef().beginParse())}};var J0={};Object.defineProperty(J0,"__esModule",{value:!0});J0.storeMessageRelaxed=J0.loadMessageRelaxed=void 0;const c6e=ya(),cX=lg,rR=bc;function d6e(e){const t=(0,cX.loadCommonMessageInfoRelaxed)(e);let n=null;e.loadBit()&&(e.loadBit()?n=(0,rR.loadStateInit)(e.loadRef().beginParse()):n=(0,rR.loadStateInit)(e));const r=e.loadBit()?e.loadRef():e.asCell();return{info:t,init:n,body:r}}J0.loadMessageRelaxed=d6e;function f6e(e,t){return n=>{if(n.store((0,cX.storeCommonMessageInfoRelaxed)(e.info)),e.init){n.storeBit(!0);let o=(0,c6e.beginCell)().store((0,rR.storeStateInit)(e.init)),i=!1;t&&t.forceRef?i=!0:n.availableBits-2>=o.bits?i=!1:i=!0,i?(n.storeBit(!0),n.storeRef(o)):(n.storeBit(!1),n.storeBuilder(o))}else n.storeBit(!1);let r=!1;t&&t.forceRef?r=!0:n.availableBits-1>=e.body.bits.length&&n.refs+e.body.refs.length<=4?r=!1:r=!0,r?(n.storeBit(!0),n.storeRef(e.body)):(n.storeBit(!1),n.storeBuilder(e.body.asBuilder()))}}J0.storeMessageRelaxed=f6e;var dX={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.SendMode=void 0,function(t){t[t.CARRY_ALL_REMAINING_BALANCE=128]="CARRY_ALL_REMAINING_BALANCE",t[t.CARRY_ALL_REMAINING_INCOMING_VALUE=64]="CARRY_ALL_REMAINING_INCOMING_VALUE",t[t.DESTROY_ACCOUNT_IF_ZERO=32]="DESTROY_ACCOUNT_IF_ZERO",t[t.PAY_GAS_SEPARATELY=1]="PAY_GAS_SEPARATELY",t[t.IGNORE_ERRORS=2]="IGNORE_ERRORS",t[t.NONE=0]="NONE"}(e.SendMode||(e.SendMode={}))})(dX);var fg={};Object.defineProperty(fg,"__esModule",{value:!0});fg.storeShardAccount=fg.loadShardAccount=void 0;const SW=ya(),fX=tg;function p6e(e){let t=e.loadRef(),n;if(!t.isExotic){let r=t.beginParse();r.loadBit()&&(n=(0,fX.loadAccount)(r))}return{account:n,lastTransactionHash:e.loadUintBig(256),lastTransactionLt:e.loadUintBig(64)}}fg.loadShardAccount=p6e;function h6e(e){return t=>{e.account?t.storeRef((0,SW.beginCell)().storeBit(!0).store((0,fX.storeAccount)(e.account))):t.storeRef((0,SW.beginCell)().storeBit(!1)),t.storeUint(e.lastTransactionHash,256),t.storeUint(e.lastTransactionLt,64)}}fg.storeShardAccount=h6e;var zD={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.storeShardAccounts=e.loadShardAccounts=e.ShardAccountRefValue=void 0;const t=Dg(),n=cg,r=fg;e.ShardAccountRefValue={parse:a=>{let s=(0,n.loadDepthBalanceInfo)(a),l=(0,r.loadShardAccount)(a);return{depthBalanceInfo:s,shardAccount:l}},serialize(a,s){s.store((0,n.storeDepthBalanceInfo)(a.depthBalanceInfo)),s.store((0,r.storeShardAccount)(a.shardAccount))}};function o(a){return t.Dictionary.load(t.Dictionary.Keys.BigUint(256),e.ShardAccountRefValue,a)}e.loadShardAccounts=o;function i(a){return s=>{s.storeDict(a)}}e.storeShardAccounts=i})(zD);var pg={};Object.defineProperty(pg,"__esModule",{value:!0});pg.storeShardIdent=pg.loadShardIdent=void 0;function g6e(e){if(e.loadUint(2)!==0)throw Error("Invalid data");return{shardPrefixBits:e.loadUint(6),workchainId:e.loadInt(32),shardPrefix:e.loadUintBig(64)}}pg.loadShardIdent=g6e;function m6e(e){return t=>{t.storeUint(0,2),t.storeUint(e.shardPrefixBits,6),t.storeInt(e.workchainId,32),t.storeUint(e.shardPrefix,64)}}pg.storeShardIdent=m6e;var TT={};Object.defineProperty(TT,"__esModule",{value:!0});TT.loadShardStateUnsplit=void 0;const y6e=dS,v6e=zD,b6e=pg;function w6e(e){if(e.loadUint(32)!==2418257890)throw Error("Invalid data");let t=e.loadInt(32),n=(0,b6e.loadShardIdent)(e),r=e.loadUint(32),o=e.loadUint(32),i=e.loadUint(32),a=e.loadUintBig(64),s=e.loadUint(32);e.loadRef();let l=e.loadBit(),u=e.loadRef(),c;u.isExotic||(c=(0,v6e.loadShardAccounts)(u.beginParse())),e.loadRef();let f=e.loadBit(),p=null;if(f){let g=e.loadRef();g.isExotic||(p=(0,y6e.loadMasterchainStateExtra)(g.beginParse()))}return{globalId:t,shardId:n,seqno:r,vertSeqNo:o,genUtime:i,genLt:a,minRefMcSeqno:s,beforeSplit:l,accounts:c,extras:p}}TT.loadShardStateUnsplit=w6e;var hg={};Object.defineProperty(hg,"__esModule",{value:!0});hg.storeSplitMergeInfo=hg.loadSplitMergeInfo=void 0;function S6e(e){let t=e.loadUint(6),n=e.loadUint(6),r=e.loadUintBig(256),o=e.loadUintBig(256);return{currentShardPrefixLength:t,accountSplitDepth:n,thisAddress:r,siblingAddress:o}}hg.loadSplitMergeInfo=S6e;function x6e(e){return t=>{t.storeUint(e.currentShardPrefixLength,6),t.storeUint(e.accountSplitDepth,6),t.storeUint(e.thisAddress,256),t.storeUint(e.siblingAddress,256)}}hg.storeSplitMergeInfo=x6e;var fp={};Object.defineProperty(fp,"__esModule",{value:!0});fp.storeStorageUsedShort=fp.loadStorageUsedShort=void 0;function C6e(e){let t=e.loadVarUintBig(3),n=e.loadVarUintBig(3);return{cells:t,bits:n}}fp.loadStorageUsedShort=C6e;function A6e(e){return t=>{t.storeVarUint(e.cells,3),t.storeVarUint(e.bits,3)}}fp.storeStorageUsedShort=A6e;var oh={},ih={},gg={};Object.defineProperty(gg,"__esModule",{value:!0});gg.storeTransactionActionPhase=gg.loadTransactionActionPhase=void 0;const pX=dp,hX=fp;function _6e(e){let t=e.loadBit(),n=e.loadBit(),r=e.loadBit(),o=(0,pX.loadAccountStatusChange)(e),i=e.loadBit()?e.loadCoins():void 0,a=e.loadBit()?e.loadCoins():void 0,s=e.loadInt(32),l=e.loadBit()?e.loadInt(32):void 0,u=e.loadUint(16),c=e.loadUint(16),f=e.loadUint(16),p=e.loadUint(16),g=e.loadUintBig(256),m=(0,hX.loadStorageUsedShort)(e);return{success:t,valid:n,noFunds:r,statusChange:o,totalFwdFees:i,totalActionFees:a,resultCode:s,resultArg:l,totalActions:u,specActions:c,skippedActions:f,messagesCreated:p,actionListHash:g,totalMessageSize:m}}gg.loadTransactionActionPhase=_6e;function E6e(e){return t=>{t.storeBit(e.success),t.storeBit(e.valid),t.storeBit(e.noFunds),t.store((0,pX.storeAccountStatusChange)(e.statusChange)),t.storeMaybeCoins(e.totalFwdFees),t.storeMaybeCoins(e.totalActionFees),t.storeInt(e.resultCode,32),t.storeMaybeInt(e.resultArg,32),t.storeUint(e.totalActions,16),t.storeUint(e.specActions,16),t.storeUint(e.skippedActions,16),t.storeUint(e.messagesCreated,16),t.storeUint(e.actionListHash,256),t.store((0,hX.storeStorageUsedShort)(e.totalMessageSize))}}gg.storeTransactionActionPhase=E6e;var mg={};Object.defineProperty(mg,"__esModule",{value:!0});mg.storeTransactionBouncePhase=mg.loadTransactionBouncePhase=void 0;const NA=fp;function T6e(e){if(e.loadBit()){let t=(0,NA.loadStorageUsedShort)(e),n=e.loadCoins(),r=e.loadCoins();return{type:"ok",messageSize:t,messageFees:n,forwardFees:r}}if(e.loadBit()){let t=(0,NA.loadStorageUsedShort)(e),n=e.loadCoins();return{type:"no-funds",messageSize:t,requiredForwardFees:n}}return{type:"negative-funds"}}mg.loadTransactionBouncePhase=T6e;function k6e(e){return t=>{if(e.type==="ok")t.storeBit(!0),t.store((0,NA.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.messageFees),t.storeCoins(e.forwardFees);else if(e.type==="negative-funds")t.storeBit(!1),t.storeBit(!1);else if(e.type==="no-funds")t.storeBit(!1),t.storeBit(!0),t.store((0,NA.storeStorageUsedShort)(e.messageSize)),t.storeCoins(e.requiredForwardFees);else throw new Error("Invalid TransactionBouncePhase type")}}mg.storeTransactionBouncePhase=k6e;var yg={};Object.defineProperty(yg,"__esModule",{value:!0});yg.storeTransactionComputePhase=yg.loadTransactionComputePhase=void 0;const I6e=ya(),gX=ug;function P6e(e){if(!e.loadBit())return{type:"skipped",reason:(0,gX.loadComputeSkipReason)(e)};let t=e.loadBit(),n=e.loadBit(),r=e.loadBit(),o=e.loadCoins();const i=e.loadRef().beginParse();let a=i.loadVarUintBig(3),s=i.loadVarUintBig(3),l=i.loadBit()?i.loadVarUintBig(2):void 0,u=i.loadUint(8),c=i.loadUint(32),f=i.loadBit()?i.loadInt(32):void 0,p=i.loadUint(32),g=i.loadUintBig(256),m=i.loadUintBig(256);return{type:"vm",success:t,messageStateUsed:n,accountActivated:r,gasFees:o,gasUsed:a,gasLimit:s,gasCredit:l,mode:u,exitCode:c,exitArg:f,vmSteps:p,vmInitStateHash:g,vmFinalStateHash:m}}yg.loadTransactionComputePhase=P6e;function M6e(e){return t=>{if(e.type==="skipped"){t.storeBit(0),t.store((0,gX.storeComputeSkipReason)(e.reason));return}t.storeBit(1),t.storeBit(e.success),t.storeBit(e.messageStateUsed),t.storeBit(e.accountActivated),t.storeCoins(e.gasFees),t.storeRef((0,I6e.beginCell)().storeVarUint(e.gasUsed,3).storeVarUint(e.gasLimit,3).store(n=>e.gasCredit!==void 0&&e.gasCredit!==null?n.storeBit(1).storeVarUint(e.gasCredit,2):n.storeBit(0)).storeUint(e.mode,8).storeUint(e.exitCode,32).store(n=>e.exitArg!==void 0&&e.exitArg!==null?n.storeBit(1).storeInt(e.exitArg,32):n.storeBit(0)).storeUint(e.vmSteps,32).storeUint(e.vmInitStateHash,256).storeUint(e.vmFinalStateHash,256).endCell())}}yg.storeTransactionComputePhase=M6e;var vg={};Object.defineProperty(vg,"__esModule",{value:!0});vg.storeTransactionCreditPhase=vg.loadTransactionCreditPhase=void 0;const mX=zs;function O6e(e){const t=e.loadBit()?e.loadCoins():void 0,n=(0,mX.loadCurrencyCollection)(e);return{dueFeesColelcted:t,credit:n}}vg.loadTransactionCreditPhase=O6e;function R6e(e){return t=>{e.dueFeesColelcted===null||e.dueFeesColelcted===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.dueFeesColelcted)),t.store((0,mX.storeCurrencyCollection)(e.credit))}}vg.storeTransactionCreditPhase=R6e;var bg={};Object.defineProperty(bg,"__esModule",{value:!0});bg.storeTransactionsStoragePhase=bg.loadTransactionStoragePhase=void 0;const yX=dp;function D6e(e){const t=e.loadCoins();let n;e.loadBit()&&(n=e.loadCoins());const r=(0,yX.loadAccountStatusChange)(e);return{storageFeesCollected:t,storageFeesDue:n,statusChange:r}}bg.loadTransactionStoragePhase=D6e;function B6e(e){return t=>{t.storeCoins(e.storageFeesCollected),e.storageFeesDue===null||e.storageFeesDue===void 0?t.storeBit(!1):(t.storeBit(!0),t.storeCoins(e.storageFeesDue)),t.store((0,yX.storeAccountStatusChange)(e.statusChange))}}bg.storeTransactionsStoragePhase=B6e;var xW;function vX(){if(xW)return ih;xW=1,Object.defineProperty(ih,"__esModule",{value:!0}),ih.storeTransactionDescription=ih.loadTransactionDescription=void 0;const e=ya(),t=hg,n=bX(),r=gg,o=mg,i=yg,a=vg,s=bg;function l(c){let f=c.loadUint(4);if(f===0){const p=c.loadBit();let g;c.loadBit()&&(g=(0,s.loadTransactionStoragePhase)(c));let m;c.loadBit()&&(m=(0,a.loadTransactionCreditPhase)(c));let y=(0,i.loadTransactionComputePhase)(c),v;c.loadBit()&&(v=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));let x=c.loadBit(),w;c.loadBit()&&(w=(0,o.loadTransactionBouncePhase)(c));const I=c.loadBit();return{type:"generic",creditFirst:p,storagePhase:g,creditPhase:m,computePhase:y,actionPhase:v,bouncePhase:w,aborted:x,destroyed:I}}if(f===1)return{type:"storage",storagePhase:(0,s.loadTransactionStoragePhase)(c)};if(f===2||f===3){const p=f===3;let g=(0,s.loadTransactionStoragePhase)(c),m=(0,i.loadTransactionComputePhase)(c),y;c.loadBit()&&(y=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));const v=c.loadBit(),x=c.loadBit();return{type:"tick-tock",isTock:p,storagePhase:g,computePhase:m,actionPhase:y,aborted:v,destroyed:x}}if(f===4){let p=(0,t.loadSplitMergeInfo)(c),g;c.loadBit()&&(g=(0,s.loadTransactionStoragePhase)(c));let m=(0,i.loadTransactionComputePhase)(c),y;c.loadBit()&&(y=(0,r.loadTransactionActionPhase)(c.loadRef().beginParse()));const v=c.loadBit(),x=c.loadBit();return{type:"split-prepare",splitInfo:p,storagePhase:g,computePhase:m,actionPhase:y,aborted:v,destroyed:x}}if(f===5){let p=(0,t.loadSplitMergeInfo)(c),g=(0,n.loadTransaction)(c.loadRef().beginParse());const m=c.loadBit();return{type:"split-install",splitInfo:p,prepareTransaction:g,installed:m}}throw Error(`Unsupported transaction description type ${f}`)}ih.loadTransactionDescription=l;function u(c){return f=>{if(c.type==="generic")f.storeUint(0,4),f.storeBit(c.creditFirst),c.storagePhase?(f.storeBit(!0),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase))):f.storeBit(!1),c.creditPhase?(f.storeBit(!0),f.store((0,a.storeTransactionCreditPhase)(c.creditPhase))):f.storeBit(!1),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,r.storeTransactionActionPhase)(c.actionPhase)))):f.storeBit(!1),f.storeBit(c.aborted),c.bouncePhase?(f.storeBit(!0),f.store((0,o.storeTransactionBouncePhase)(c.bouncePhase))):f.storeBit(!1),f.storeBit(c.destroyed);else if(c.type==="storage")f.storeUint(1,4),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase));else if(c.type==="tick-tock")f.storeUint(c.isTock?3:2,4),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase)),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,r.storeTransactionActionPhase)(c.actionPhase)))):f.storeBit(!1),f.storeBit(c.aborted),f.storeBit(c.destroyed);else if(c.type==="split-prepare")f.storeUint(4,4),f.store((0,t.storeSplitMergeInfo)(c.splitInfo)),c.storagePhase?(f.storeBit(!0),f.store((0,s.storeTransactionsStoragePhase)(c.storagePhase))):f.storeBit(!1),f.store((0,i.storeTransactionComputePhase)(c.computePhase)),c.actionPhase?(f.storeBit(!0),f.store((0,r.storeTransactionActionPhase)(c.actionPhase))):f.storeBit(!1),f.storeBit(c.aborted),f.storeBit(c.destroyed);else if(c.type==="split-install")f.storeUint(5,4),f.store((0,t.storeSplitMergeInfo)(c.splitInfo)),f.storeRef((0,e.beginCell)().store((0,n.storeTransaction)(c.prepareTransaction))),f.storeBit(c.installed);else throw Error(`Unsupported transaction description type ${c.type}`)}}return ih.storeTransactionDescription=u,ih}var CW;function bX(){if(CW)return oh;CW=1,Object.defineProperty(oh,"__esModule",{value:!0}),oh.storeTransaction=oh.loadTransaction=void 0;const e=ya(),t=Dg(),n=ag,r=zs,o=dg,i=bd,a=vX();function s(u){if(u.loadUint(4)!==7)throw Error("Invalid data");let c=u.loadUintBig(256),f=u.loadUintBig(64),p=u.loadUintBig(256),g=u.loadUintBig(64),m=u.loadUint(32),y=u.loadUint(15),v=(0,n.loadAccountStatus)(u),x=(0,n.loadAccountStatus)(u),I=u.loadRef().beginParse(),_=I.loadBit()?(0,i.loadMessage)(I.loadRef().beginParse()):void 0,R=I.loadDict(t.Dictionary.Keys.Uint(15),i.MessageValue);I.endParse();let U=(0,r.loadCurrencyCollection)(u),D=(0,o.loadHashUpdate)(u.loadRef().beginParse()),b=(0,a.loadTransactionDescription)(u.loadRef().beginParse());return{address:c,lt:f,prevTransactionHash:p,prevTransactionLt:g,now:m,outMessagesCount:y,oldStatus:v,endStatus:x,inMessage:_,outMessages:R,totalFees:U,stateUpdate:D,description:b}}oh.loadTransaction=s;function l(u){return c=>{c.storeUint(7,4),c.storeUint(u.address,256),c.storeUint(u.lt,64),c.storeUint(u.prevTransactionHash,256),c.storeUint(u.prevTransactionLt,64),c.storeUint(u.now,32),c.storeUint(u.outMessagesCount,15),c.store((0,n.storeAccountStatus)(u.oldStatus)),c.store((0,n.storeAccountStatus)(u.endStatus));let f=(0,e.beginCell)();u.inMessage?(f.storeBit(!0),f.storeRef((0,e.beginCell)().store((0,i.storeMessage)(u.inMessage)))):f.storeBit(!1),f.storeDict(u.outMessages),c.storeRef(f),c.store((0,r.storeCurrencyCollection)(u.totalFees)),c.storeRef((0,e.beginCell)().store((0,o.storeHashUpdate)(u.stateUpdate))),c.storeRef((0,e.beginCell)().store((0,a.storeTransactionDescription)(u.description)))}}return oh.storeTransaction=l,oh}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.loadStorageUsedShort=e.storeStorageUsed=e.loadStorageUsed=e.storeStorageInfo=e.loadStorageInfo=e.storeStateInit=e.loadStateInit=e.storeSplitMergeInfo=e.loadSplitMergeInfo=e.storeSimpleLibrary=e.loadSimpleLibrary=e.loadShardStateUnsplit=e.storeShardIdent=e.loadShardIdent=e.storeShardAccounts=e.loadShardAccounts=e.ShardAccountRefValue=e.storeShardAccount=e.loadShardAccount=e.SendMode=e.storeMessageRelaxed=e.loadMessageRelaxed=e.storeMessage=e.loadMessage=e.loadMasterchainStateExtra=e.storeHashUpdate=e.loadHashUpdate=e.storeDepthBalanceInfo=e.loadDepthBalanceInfo=e.storeCurrencyCollection=e.loadCurrencyCollection=e.storeComputeSkipReason=e.loadComputeSkipReason=e.storeCommonMessageInfoRelaxed=e.loadCommonMessageInfoRelaxed=e.storeCommonMessageInfo=e.loadCommonMessageInfo=e.storeAccountStorage=e.loadAccountStorage=e.storeAccountStatusChange=e.loadAccountStatusChange=e.storeAccountStatus=e.loadAccountStatus=e.storeAccountState=e.loadAccountState=e.storeAccount=e.loadAccount=e.comment=e.external=e.internal=void 0,e.storeTransactionsStoragePhase=e.loadTransactionStoragePhase=e.storeTransactionDescription=e.loadTransactionDescription=e.storeTransactionCreditPhase=e.loadTransactionCreditPhase=e.storeTransactionComputePhase=e.loadTransactionComputePhase=e.storeTransactionBouncePhase=e.loadTransactionBouncePhase=e.storeTransactionActionPhase=e.loadTransactionActionPhase=e.storeTransaction=e.loadTransaction=e.storeTickTock=e.loadTickTock=e.storeStorageUsedShort=void 0;var t=ep;Object.defineProperty(e,"internal",{enumerable:!0,get:function(){return t.internal}}),Object.defineProperty(e,"external",{enumerable:!0,get:function(){return t.external}}),Object.defineProperty(e,"comment",{enumerable:!0,get:function(){return t.comment}});var n=tg;Object.defineProperty(e,"loadAccount",{enumerable:!0,get:function(){return n.loadAccount}}),Object.defineProperty(e,"storeAccount",{enumerable:!0,get:function(){return n.storeAccount}});var r=rg;Object.defineProperty(e,"loadAccountState",{enumerable:!0,get:function(){return r.loadAccountState}}),Object.defineProperty(e,"storeAccountState",{enumerable:!0,get:function(){return r.storeAccountState}});var o=ag;Object.defineProperty(e,"loadAccountStatus",{enumerable:!0,get:function(){return o.loadAccountStatus}}),Object.defineProperty(e,"storeAccountStatus",{enumerable:!0,get:function(){return o.storeAccountStatus}});var i=dp;Object.defineProperty(e,"loadAccountStatusChange",{enumerable:!0,get:function(){return i.loadAccountStatusChange}}),Object.defineProperty(e,"storeAccountStatusChange",{enumerable:!0,get:function(){return i.storeAccountStatusChange}});var a=ng;Object.defineProperty(e,"loadAccountStorage",{enumerable:!0,get:function(){return a.loadAccountStorage}}),Object.defineProperty(e,"storeAccountStorage",{enumerable:!0,get:function(){return a.storeAccountStorage}});var s=sg;Object.defineProperty(e,"loadCommonMessageInfo",{enumerable:!0,get:function(){return s.loadCommonMessageInfo}}),Object.defineProperty(e,"storeCommonMessageInfo",{enumerable:!0,get:function(){return s.storeCommonMessageInfo}});var l=lg;Object.defineProperty(e,"loadCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return l.loadCommonMessageInfoRelaxed}}),Object.defineProperty(e,"storeCommonMessageInfoRelaxed",{enumerable:!0,get:function(){return l.storeCommonMessageInfoRelaxed}});var u=ug;Object.defineProperty(e,"loadComputeSkipReason",{enumerable:!0,get:function(){return u.loadComputeSkipReason}}),Object.defineProperty(e,"storeComputeSkipReason",{enumerable:!0,get:function(){return u.storeComputeSkipReason}});var c=zs;Object.defineProperty(e,"loadCurrencyCollection",{enumerable:!0,get:function(){return c.loadCurrencyCollection}}),Object.defineProperty(e,"storeCurrencyCollection",{enumerable:!0,get:function(){return c.storeCurrencyCollection}});var f=cg;Object.defineProperty(e,"loadDepthBalanceInfo",{enumerable:!0,get:function(){return f.loadDepthBalanceInfo}}),Object.defineProperty(e,"storeDepthBalanceInfo",{enumerable:!0,get:function(){return f.storeDepthBalanceInfo}});var p=dg;Object.defineProperty(e,"loadHashUpdate",{enumerable:!0,get:function(){return p.loadHashUpdate}}),Object.defineProperty(e,"storeHashUpdate",{enumerable:!0,get:function(){return p.storeHashUpdate}});var g=dS;Object.defineProperty(e,"loadMasterchainStateExtra",{enumerable:!0,get:function(){return g.loadMasterchainStateExtra}});var m=bd;Object.defineProperty(e,"loadMessage",{enumerable:!0,get:function(){return m.loadMessage}}),Object.defineProperty(e,"storeMessage",{enumerable:!0,get:function(){return m.storeMessage}});var y=J0;Object.defineProperty(e,"loadMessageRelaxed",{enumerable:!0,get:function(){return y.loadMessageRelaxed}}),Object.defineProperty(e,"storeMessageRelaxed",{enumerable:!0,get:function(){return y.storeMessageRelaxed}});var v=dX;Object.defineProperty(e,"SendMode",{enumerable:!0,get:function(){return v.SendMode}});var x=fg;Object.defineProperty(e,"loadShardAccount",{enumerable:!0,get:function(){return x.loadShardAccount}}),Object.defineProperty(e,"storeShardAccount",{enumerable:!0,get:function(){return x.storeShardAccount}});var w=zD;Object.defineProperty(e,"ShardAccountRefValue",{enumerable:!0,get:function(){return w.ShardAccountRefValue}}),Object.defineProperty(e,"loadShardAccounts",{enumerable:!0,get:function(){return w.loadShardAccounts}}),Object.defineProperty(e,"storeShardAccounts",{enumerable:!0,get:function(){return w.storeShardAccounts}});var I=pg;Object.defineProperty(e,"loadShardIdent",{enumerable:!0,get:function(){return I.loadShardIdent}}),Object.defineProperty(e,"storeShardIdent",{enumerable:!0,get:function(){return I.storeShardIdent}});var _=TT;Object.defineProperty(e,"loadShardStateUnsplit",{enumerable:!0,get:function(){return _.loadShardStateUnsplit}});var R=vd;Object.defineProperty(e,"loadSimpleLibrary",{enumerable:!0,get:function(){return R.loadSimpleLibrary}}),Object.defineProperty(e,"storeSimpleLibrary",{enumerable:!0,get:function(){return R.storeSimpleLibrary}});var U=hg;Object.defineProperty(e,"loadSplitMergeInfo",{enumerable:!0,get:function(){return U.loadSplitMergeInfo}}),Object.defineProperty(e,"storeSplitMergeInfo",{enumerable:!0,get:function(){return U.storeSplitMergeInfo}});var D=bc;Object.defineProperty(e,"loadStateInit",{enumerable:!0,get:function(){return D.loadStateInit}}),Object.defineProperty(e,"storeStateInit",{enumerable:!0,get:function(){return D.storeStateInit}});var b=og;Object.defineProperty(e,"loadStorageInfo",{enumerable:!0,get:function(){return b.loadStorageInfo}}),Object.defineProperty(e,"storeStorageInfo",{enumerable:!0,get:function(){return b.storeStorageInfo}});var T=ig;Object.defineProperty(e,"loadStorageUsed",{enumerable:!0,get:function(){return T.loadStorageUsed}}),Object.defineProperty(e,"storeStorageUsed",{enumerable:!0,get:function(){return T.storeStorageUsed}});var C=fp;Object.defineProperty(e,"loadStorageUsedShort",{enumerable:!0,get:function(){return C.loadStorageUsedShort}}),Object.defineProperty(e,"storeStorageUsedShort",{enumerable:!0,get:function(){return C.storeStorageUsedShort}});var O=Zh;Object.defineProperty(e,"loadTickTock",{enumerable:!0,get:function(){return O.loadTickTock}}),Object.defineProperty(e,"storeTickTock",{enumerable:!0,get:function(){return O.storeTickTock}});var $=bX();Object.defineProperty(e,"loadTransaction",{enumerable:!0,get:function(){return $.loadTransaction}}),Object.defineProperty(e,"storeTransaction",{enumerable:!0,get:function(){return $.storeTransaction}});var j=gg;Object.defineProperty(e,"loadTransactionActionPhase",{enumerable:!0,get:function(){return j.loadTransactionActionPhase}}),Object.defineProperty(e,"storeTransactionActionPhase",{enumerable:!0,get:function(){return j.storeTransactionActionPhase}});var L=mg;Object.defineProperty(e,"loadTransactionBouncePhase",{enumerable:!0,get:function(){return L.loadTransactionBouncePhase}}),Object.defineProperty(e,"storeTransactionBouncePhase",{enumerable:!0,get:function(){return L.storeTransactionBouncePhase}});var B=yg;Object.defineProperty(e,"loadTransactionComputePhase",{enumerable:!0,get:function(){return B.loadTransactionComputePhase}}),Object.defineProperty(e,"storeTransactionComputePhase",{enumerable:!0,get:function(){return B.storeTransactionComputePhase}});var H=vg;Object.defineProperty(e,"loadTransactionCreditPhase",{enumerable:!0,get:function(){return H.loadTransactionCreditPhase}}),Object.defineProperty(e,"storeTransactionCreditPhase",{enumerable:!0,get:function(){return H.storeTransactionCreditPhase}});var q=vX();Object.defineProperty(e,"loadTransactionDescription",{enumerable:!0,get:function(){return q.loadTransactionDescription}}),Object.defineProperty(e,"storeTransactionDescription",{enumerable:!0,get:function(){return q.storeTransactionDescription}});var Y=bg;Object.defineProperty(e,"loadTransactionStoragePhase",{enumerable:!0,get:function(){return Y.loadTransactionStoragePhase}}),Object.defineProperty(e,"storeTransactionsStoragePhase",{enumerable:!0,get:function(){return Y.storeTransactionsStoragePhase}})})(KJ);var kT={};Object.defineProperty(kT,"__esModule",{value:!0});kT.openContract=void 0;const $6e=Ws,AW=$g();function L6e(e,t){let n,r=null;if(!$6e.Address.isAddress(e.address))throw Error("Invalid address");if(n=e.address,e.init){if(!(e.init.code instanceof AW.Cell))throw Error("Invalid init.code");if(!(e.init.data instanceof AW.Cell))throw Error("Invalid init.data");r=e.init}let o=t({address:n,init:r});return new Proxy(e,{get(i,a){const s=i[a];return typeof a=="string"&&(a.startsWith("get")||a.startsWith("send"))&&typeof s=="function"?(...l)=>s.apply(i,[o,...l]):s}})}kT.openContract=L6e;var IT={};Object.defineProperty(IT,"__esModule",{value:!0});IT.ComputeError=void 0;class VD extends Error{constructor(t,n,r){super(t),this.exitCode=n,this.debugLogs=r&&r.debugLogs?r.debugLogs:null,this.logs=r&&r.logs?r.logs:null,Object.setPrototypeOf(this,VD.prototype)}}IT.ComputeError=VD;var PT={};Object.defineProperty(PT,"__esModule",{value:!0});PT.getMethodId=void 0;const F6e=new Int16Array([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]);function N6e(e){e instanceof Buffer||(e=Buffer.from(e));let t=0;for(let n=0;n>8^r)&255]^t<<8)&65535}return t}function U6e(e){return N6e(e)&65535|65536}PT.getMethodId=U6e;var X0={};Object.defineProperty(X0,"__esModule",{value:!0});X0.safeSignVerify=X0.safeSign=void 0;const HD=Bg(),j6e=8,W6e=64;function wX(e,t){let n=Buffer.from(t);if(n.length>W6e)throw Error("Seed can be longer than 64 bytes");if(n.length=e}:e;return function(){var r=Array.from(arguments);return n(arguments)?t.apply(this,r):function(o){return t.apply(void 0,H6e([o],r,!1))}}},Y6e=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0},KD=function(e){return e[0]},J6e=function(e){return e.slice(1)},xX=[],DT={},Pi=Object.prototype.hasOwnProperty,X6e=function(e){return Y6e([e[0]],e.slice(1),!0)};function hS(e){return function(t){return function(n){return e.ap(e.map(n,function(r){return function(){return r}}),t)}}}function gS(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(r){return r}}),t)}}}function BT(e){return function(t,n){return function(r){return e.ap(e.map(r,function(o){return function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))}}),n)}}}function $T(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(o){return function(i){return t.concat(o,i)}}),r)}}}}function mS(e){return function(t){return function(n){return e.map(n,function(r){return r(t)})}}}function LT(e){return function(t){return function(n){return e.map(n,function(r){var o;return o={},o[t]=r,o})}}}function FT(e){return function(t,n){return function(r){return e.map(r,function(o){var i;return Object.assign({},o,(i={},i[t]=n(o),i))})}}}function YD(e){var t=$T(e);return function(n){return{concat:t(n).concat,empty:e.of(n.empty)}}}function Ny(e){return function(t){return function(n){return e.chain(n,function(r){return e.map(t(r),function(){return r})})}}}function NT(e){return function(t,n){return function(r){return e.chain(r,function(o){return e.map(n(o),function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))})})}}}var Z6e=function(e,t){for(var n=t(e);n._tag==="Left";)n=t(n.left);return n.right};function CX(e){return function(t){return function(n){return e.fromEither(qD(n)?OT(t()):RT(n.value))}}}function eDe(e){return function(t,n){return function(r){return e.fromEither(t(r)?RT(r):OT(n(r)))}}}function AX(e){var t=CX(e);return function(n){var r=t(n);return function(o){return _p(o,r)}}}function tDe(e,t){var n=AX(e);return function(r){var o=n(r);return function(i){return function(a){return t.chain(a,o(i))}}}}function UT(e){return function(t){return _p(t,e.fromEither)}}function nDe(e,t){var n=UT(e);return function(r){return function(o){return t.chain(o,n(r))}}}function rDe(e,t){return _p(UT(e),Ny(t))}function oDe(e,t){return function(n,r){return function(o){return t.chain(o,function(i){return e.fromEither(n(i)?RT(i):OT(r(i)))})}}}var Ei=function(e,t){return{left:e,right:t}};function yS(e,t){return function(n){var r=e.traverse(n);return function(o,i){return n.map(r(o,i),t.separate)}}}function vS(e,t){return function(n){var r=e.traverse(n);return function(o,i){return n.map(r(o,i),t.compact)}}}function iDe(e){return function(t){var n=e.wither(t);return function(r){return function(o){return n(o,function(i){return t.map(r(i),function(a){return a?Go(i):Po})})}}}}var ha=OT,jr=RT,Hd=MT(2,function(e,t){return Yt(e)?e:t(e.right)}),va=function(e,t){return yt(e,kX(t))},Fg=function(e,t){return yt(e,PX(t))},bS=function(e,t,n){return yt(e,DX(t,n))},wS=function(e){return function(t,n){var r=BX(e);return yt(t,r(n))}},SS=function(e,t,n){return yt(e,$X(t,n))},jT=function(e){var t=LX(e);return function(n,r){return yt(n,t(r))}},GD=function(e,t,n){return yt(e,FX(t,n))},JD=function(e,t){return yt(e,NX(t))},_X=function(e,t){return yt(e,jX(t))},XD=function(e,t){return yt(e,tB(t))},ZD=function(e,t){return Z6e(t(e),function(n){return Yt(n)?jr(ha(n.left)):Yt(n.right)?ha(t(n.right.left)):jr(jr(n.right.right))})},No="Either",aDe=function(e,t){return{show:function(n){return Yt(n)?"left(".concat(e.show(n.left),")"):"right(".concat(t.show(n.right),")")}}},sDe=function(e,t){return{equals:function(n,r){return n===r||(Yt(n)?Yt(r)&&e.equals(n.left,r.left):nB(r)&&t.equals(n.right,r.right))}}},lDe=function(e){return{concat:function(t,n){return Yt(n)?t:Yt(t)?n:jr(e.concat(t.right,n.right))}}},eB=function(e){var t=ha(e.empty);return{URI:No,_E:void 0,compact:function(n){return Yt(n)?n:n.right._tag==="None"?t:jr(n.right.value)},separate:function(n){return Yt(n)?Ei(n,n):Yt(n.right)?Ei(jr(n.right.left),t):Ei(t,jr(n.right.right))}}},EX=function(e){var t=ha(e.empty),n=eB(e),r=n.compact,o=n.separate,i=function(s,l){return Yt(s)||l(s.right)?s:t},a=function(s,l){return Yt(s)?Ei(s,s):l(s.right)?Ei(t,jr(s.right)):Ei(jr(s.right),t)};return{URI:No,_E:void 0,map:va,compact:r,separate:o,filter:i,filterMap:function(s,l){if(Yt(s))return s;var u=l(s.right);return u._tag==="None"?t:jr(u.value)},partition:a,partitionMap:function(s,l){if(Yt(s))return Ei(s,s);var u=l(s.right);return Yt(u)?Ei(jr(u.left),t):Ei(t,jr(u.right))}}},uDe=function(e){var t=EX(e),n=eB(e);return{URI:No,_E:void 0,map:va,compact:t.compact,separate:t.separate,filter:t.filter,filterMap:t.filterMap,partition:t.partition,partitionMap:t.partitionMap,traverse:jT,sequence:AS,reduce:bS,foldMap:wS,reduceRight:SS,wither:vS(oR,n),wilt:yS(oR,n)}},WT=function(e){return{URI:No,_E:void 0,map:va,ap:function(t,n){return Yt(t)?Yt(n)?ha(e.concat(t.left,n.left)):t:Yt(n)?n:jr(t.right(n.right))},of:_c}},TX=function(e){return{URI:No,_E:void 0,map:va,alt:function(t,n){if(nB(t))return t;var r=n();return Yt(r)?ha(e.concat(t.left,r.left)):r}}},kX=function(e){return function(t){return Yt(t)?t:jr(e(t.right))}},zT={URI:No,map:va},_c=jr,cDe={URI:No,of:_c},IX=function(e){return function(t){return Yt(t)?t:Yt(e)?e:jr(t.right(e.right))}},PX=IX,xS={URI:No,map:va,ap:Fg},MX={URI:No,map:va,ap:Fg,of:_c},OX=Hd,RX=Hd,CS={URI:No,map:va,ap:Fg,chain:Hd},dDe={URI:No,map:va,ap:Fg,of:_c,chain:Hd},DX=function(e,t){return function(n){return Yt(n)?e:t(e,n.right)}},BX=function(e){return function(t){return function(n){return Yt(n)?e.empty:t(n.right)}}},$X=function(e,t){return function(n){return Yt(n)?e:t(n.right,e)}},fDe={URI:No,reduce:bS,foldMap:wS,reduceRight:SS},LX=function(e){return function(t){return function(n){return Yt(n)?e.of(ha(n.left)):e.map(t(n.right),jr)}}},AS=function(e){return function(t){return Yt(t)?e.of(ha(t.left)):e.map(t.right,jr)}},oR={URI:No,map:va,reduce:bS,foldMap:wS,reduceRight:SS,traverse:jT,sequence:AS},FX=function(e,t){return function(n){return Yt(n)?ha(e(n.left)):jr(t(n.right))}},NX=function(e){return function(t){return Yt(t)?ha(e(t.left)):t}},pDe={URI:No,bimap:GD,mapLeft:JD},UX=function(e){return function(t){return Yt(t)?e():t}},jX=UX,hDe={URI:No,map:va,alt:_X},tB=function(e){return function(t){return Yt(t)?t:jr(e(t))}},gDe={URI:No,map:va,extend:XD},mDe={URI:No,map:va,ap:Fg,chain:Hd,chainRec:ZD},VT=ha,yDe={URI:No,map:va,ap:Fg,of:_c,chain:Hd,throwError:VT},Uy={URI:No,fromEither:Qo},vDe=eDe(Uy),bDe=CX(Uy),Yt=pS,nB=G6e,rB=function(e,t){return function(n){return Yt(n)?e(n.left):t(n.right)}},WX=rB,zX=rB,wDe=zX,VX=function(e){return function(t){return Yt(t)?e(t.left):t.right}},SDe=VX,xDe=mS(zT),HX=hS(xS),CDe=HX,qX=gS(xS),ADe=qX,QX=Ny(CS),_De=QX,KX=OX(Qo),EDe=KX,TDe=tB(Qo),kDe=AX(Uy),YX=tDe(Uy,CS),IDe=YX,GX=oDe(Uy,CS),PDe=GX,MDe=function(e){return Yt(e)?jr(e.left):ha(e.right)},JX=function(e){return function(t){return Yt(t)?e(t.left):t}},ODe=JX,XX=function(e){return function(t){return t==null?ha(e):jr(t)}},HT=function(e,t){try{return jr(e())}catch(n){return ha(t(n))}},RDe=function(e,t){return function(){for(var n=[],r=0;r")}function tBe(e,t){return{key:e,type:t}}function gu(e,t,n,r){for(var o=e.length,i=Array(o+1),a=0;a")}function nBe(e,t,n,r){r===void 0&&(r="{ [K in ".concat(t.name,"]: ").concat(n.name," }"));var o=e.length;return new uB(r,function(i){return Da.is(i)&&e.every(function(a){return n.is(i[a])})},function(i,a){var s=Da.validate(i,a);if(Yt(s))return s;for(var l=s.right,u={},c=[],f=!1,p=0;p0?Ec(c):Kr(f||Object.keys(l).length!==o?u:l)},n.encode===Zn?Zn:function(i){for(var a={},s=0;s0?Ec(a):Kr(u?i:r)}return EW(t)&&Array.isArray(r)?Kr(r):Hi(r,o)},e.encode===Zn&&t.encode===Zn?Zn:function(r){for(var o={},i=Object.keys(r),a=i.length,s=0;s")}function iBe(e){return e.length>0}var Ja={};function cZ(e,t){for(var n=[],r=0,o=e;r")),new IZ(t,function(n){return ey.is(n)&&n.every(e.is)},function(n,r){var o=ey.validate(n,r);if(Yt(o))return o;for(var i=o.right,a=i.length,s=i,l=[],u=0;u0?Ec(l):Kr(s)},e.encode===Zn?Zn:function(n){return n.map(e.encode)},e)}var MZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.props=a,s._tag="InterfaceType",s}return t}(Tr);function lR(e,t){t===void 0&&(t=sZ(e));var n=Object.keys(e),r=n.map(function(i){return e[i]}),o=n.length;return new MZ(t,function(i){if(Da.is(i)){for(var a=0;a0?Ec(c):Kr(u)},lw(r)?Zn:function(i){for(var a=Z0({},i),s=0;s0?Ec(c):Kr(u)},lw(r)?Zn:function(i){for(var a=Z0({},i),s=0;s0){var r=n[0],o=n[1],i=o.length,a=function(s){for(var l=0;l0?Ec(a):Kr(aR(r,i))},e.length===0?Zn:function(r){return aR(r,e.map(function(o){return o.encode(r)}))},e)}var $Z=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.types=a,s._tag="TupleType",s}return t}(Tr);function ABe(e,t){t===void 0&&(t="[".concat(e.map(function(r){return r.name}).join(", "),"]"));var n=e.length;return new $Z(t,function(r){return ey.is(r)&&r.length===n&&e.every(function(o,i){return o.is(r[i])})},function(r,o){var i=ey.validate(r,o);if(Yt(i))return i;for(var a=i.right,s=a.length>n?a.slice(0,n):a,l=[],u=0;u0?Ec(l):Kr(s)},lw(e)?Zn:function(r){return e.map(function(o,i){return o.encode(r[i])})},e)}var LZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ReadonlyType",s}return t}(Tr);function _Be(e,t){return t===void 0&&(t="Readonly<".concat(e.name,">")),new LZ(t,e.is,e.validate,e.encode,e)}var FZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ReadonlyArrayType",s}return t}(Tr);function EBe(e,t){t===void 0&&(t="ReadonlyArray<".concat(e.name,">"));var n=PZ(e);return new FZ(t,n.is,n.validate,n.encode,e)}var TBe=function(e,t){return UZ(lR(e),t)},NZ=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.type=a,s._tag="ExactType",s}return t}(Tr);function UZ(e,t){t===void 0&&(t=oBe(e));var n=sR(e);return new NZ(t,e.is,function(r,o){var i=Da.validate(r,o);if(Yt(i))return i;var a=e.validate(r,o);return Yt(a)?a:jr(_W(a.right,n))},function(r){return e.encode(_W(r,n))},e)}var jZ=function(e){Er(t,e);function t(){var n=e.call(this,"Function",function(r){return typeof r=="function"},function(r,o){return n.is(r)?Kr(r):Hi(r,o)},Zn)||this;return n._tag="FunctionType",n}return t}(Tr),kBe=new jZ,WZ=function(e){Er(t,e);function t(){var n=e.call(this,"never",function(r){return!1},function(r,o){return Hi(r,o)},function(){throw new Error("cannot encode never")})||this;return n._tag="NeverType",n}return t}(Tr),IBe=new WZ,zZ=function(e){Er(t,e);function t(){var n=e.call(this,"any",function(r){return!0},Kr,Zn)||this;return n._tag="AnyType",n}return t}(Tr),PBe=new zZ;function dB(e,t,n){return n===void 0&&(n="(".concat(e.name," | ").concat(aZ(t),")")),new TZ(n,function(r){return e.is(r)&&t(r)},function(r,o){var i=e.validate(r,o);if(Yt(i))return i;var a=i.right;return t(a)?Kr(a):Hi(a,o)},e.encode,e,t)}var MBe=dB(sB,Number.isInteger,"Integer"),jA=function(e){Er(t,e);function t(n,r,o,i,a,s){var l=e.call(this,n,r,o,i,a)||this;return l.tag=s,l}return t}(cB),OBe=function(e,t,n){n===void 0&&(n=uZ(t));var r=DZ(t,n);return r instanceof jA?r:(console.warn("[io-ts] Cannot build a tagged union for ".concat(n,", returning a de-optimized union")),new jA(n,r.is,r.validate,r.encode,t,e))},RBe=function(e,t){return{value:e,context:t}},DBe=function(e){return[{key:"",type:e}]},BBe=Da,VZ=function(e){Er(t,e);function t(){var n=e.call(this,"object",function(r){return r!==null&&typeof r=="object"},function(r,o){return n.is(r)?Kr(r):Hi(r,o)},Zn)||this;return n._tag="ObjectType",n}return t}(Tr),$Be=new VZ,LBe=RZ,FBe=function(e){Er(t,e);function t(n,r,o,i,a){var s=e.call(this,n,r,o,i)||this;return s.props=a,s._tag="StrictType",s}return t}(Tr);function NBe(e){return e}function UBe(e){return function(){return e}}const jBe=Object.freeze(Object.defineProperty({__proto__:null,AnyArrayType:CZ,AnyDictionaryType:AZ,AnyType:zZ,Array:ey,ArrayType:IZ,BigIntType:SZ,BooleanType:xZ,Dictionary:BBe,DictionaryType:uB,ExactType:NZ,Function:kBe,FunctionType:jZ,Int:wBe,Integer:MBe,InterfaceType:MZ,IntersectionType:BZ,KeyofType:EZ,LiteralType:_Z,NeverType:WZ,NullType:gZ,NumberType:wZ,ObjectType:VZ,PartialType:OZ,ReadonlyArrayType:FZ,ReadonlyType:LZ,RecursiveType:lB,RefinementType:TZ,StrictType:FBe,StringType:bZ,TaggedUnionType:jA,TupleType:$Z,Type:Tr,UndefinedType:mZ,UnionType:cB,UnknownArray:ey,UnknownRecord:Da,UnknownType:vZ,VoidType:yZ,alias:UBe,any:PBe,appendContext:gu,array:PZ,bigint:mBe,boolean:yBe,brand:kZ,clean:NBe,dictionary:LBe,emptyTags:Ja,exact:UZ,failure:Hi,failures:Ec,getContextEntry:tBe,getDefaultContext:DBe,getDomainKeys:iB,getFunctionName:aZ,getIndex:hZ,getTags:Tf,getValidationError:RBe,identity:Zn,interface:lR,intersection:CBe,keyof:bBe,literal:vBe,mergeAll:aR,never:IBe,null:TW,nullType:TW,number:sB,object:$Be,partial:xBe,readonly:_Be,readonlyArray:EBe,record:RZ,recursion:SBe,refinement:dB,strict:TBe,string:aB,success:Kr,taggedUnion:OBe,tuple:ABe,type:lR,undefined:UA,union:DZ,unknown:gBe,void:kW,voidType:kW},Symbol.toStringTag,{value:"Module"})),fB=Au(jBe);var HZ={},ty={},Fi={},Ng={};(function(e){var t=st&&st.__spreadArray||function(D,b,T){if(T||arguments.length===2)for(var C=0,O=b.length,$;C1?D(b[1],b[0]):function(C){return D(C)(b[0])}}}e.flip=c;function f(D,b,T,C,O,$,j,L,B){switch(arguments.length){case 1:return D;case 2:return function(){return b(D.apply(this,arguments))};case 3:return function(){return T(b(D.apply(this,arguments)))};case 4:return function(){return C(T(b(D.apply(this,arguments))))};case 5:return function(){return O(C(T(b(D.apply(this,arguments)))))};case 6:return function(){return $(O(C(T(b(D.apply(this,arguments))))))};case 7:return function(){return j($(O(C(T(b(D.apply(this,arguments)))))))};case 8:return function(){return L(j($(O(C(T(b(D.apply(this,arguments))))))))};case 9:return function(){return B(L(j($(O(C(T(b(D.apply(this,arguments)))))))))}}}e.flow=f;function p(){for(var D=[],b=0;b=D}:D;return function(){var C=Array.from(arguments);return T(arguments)?b.apply(this,C):function(O){return b.apply(void 0,t([O],C,!1))}}};e.dual=U})(Ng);var zn={},WBe=st&&st.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0};zn.isNonEmpty=JBe;var XBe=function(e){return e[0]};zn.head=XBe;var ZBe=function(e){return e.slice(1)};zn.tail=ZBe;zn.emptyReadonlyArray=[];zn.emptyRecord={};zn.has=Object.prototype.hasOwnProperty;var e8e=function(e){return WBe([e[0]],e.slice(1),!0)};zn.fromReadonlyNonEmptyArray=e8e;var t8e=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);(!o||("get"in o?!t.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),n8e=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r8e=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&t8e(t,e,n);return n8e(t,e),t};Object.defineProperty(Fi,"__esModule",{value:!0});Fi.sequenceS=Fi.sequenceT=Fi.getApplySemigroup=Fi.apS=Fi.apSecond=Fi.apFirst=Fi.ap=void 0;var o8e=Ng,i8e=r8e(zn);function a8e(e,t){return function(n){return function(r){return e.ap(e.map(r,function(o){return function(i){return t.ap(o,i)}}),n)}}}Fi.ap=a8e;function s8e(e){return function(t){return function(n){return e.ap(e.map(n,function(r){return function(){return r}}),t)}}}Fi.apFirst=s8e;function l8e(e){return function(t){return function(n){return e.ap(e.map(n,function(){return function(r){return r}}),t)}}}Fi.apSecond=l8e;function u8e(e){return function(t,n){return function(r){return e.ap(e.map(r,function(o){return function(i){var a;return Object.assign({},o,(a={},a[t]=i,a))}}),n)}}}Fi.apS=u8e;function c8e(e){return function(t){return{concat:function(n,r){return e.ap(e.map(n,function(o){return function(i){return t.concat(o,i)}}),r)}}}}Fi.getApplySemigroup=c8e;function pB(e,t,n){return function(r){for(var o=Array(n.length+1),i=0;i-1?t:n}},Q8e=function(e){return{concat:H8e(e)}},K8e=function(e){return{concat:q8e(e)}},Y8e=function(){return{concat:Qo}},XZ=function(){return{concat:function(e,t){return t}}},G8e=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=t.length},X8e=function(e){return function(t){return G8e([e],t,!0)}},Z8e=X8e,e$e=function(e){return function(t){for(var n=[e,t[0]],r=1;r0},KT=function(e,t){return e<0||e>=t.length},vB=function(e){return function(t){return uw([e],t,!0)}},ny=vB,bB=function(e){return function(t){return uw(uw([],t,!0),[e],!1)}},_S=bB,wB=function(e,t,n){if(qd(n)){var r=ES(n);return r.splice(e,0,t),r}return[t]},SB=function(e,t,n){var r=ES(n);return r[e]=t,r},xB=function(e){return function(t){if(t.length===1)return jy(t);for(var n=[jl(t)],r=mu(t),o=function(l){n.every(function(u){return!e.equals(u,l)})&&n.push(l)},i=0,a=r;in.length?Po:Go(wB(e,t,n))}},m$e=function(e,t){return fee(e,function(){return t})},fee=function(e,t){return function(n){return KT(e,n)?Po:Go(SB(e,t(n[e]),n))}},jy=ES,Ep=function(e){return[e]},pee=function(e,t,n){for(var r=[n(e[0],t[0])],o=Math.min(e.length,t.length),i=1;i=t.length?[jy(t),[]]:[yt(t.slice(1,n),ny(jl(t))),t.slice(n)]}},bee=function(e){return EB(XT(e))},Iu=function(e,t){return yt(e,DB(t))},TB=function(e,t){return yt(e,BB(t))},TS=function(e,t){return yt(e,_ee(t))},wee=function(e,t){return yt(e,RB(t))},kS=function(e,t,n){return yt(e,Eee(t,n))},IS=function(e){var t=yee(e);return function(n,r){return yt(n,t(r))}},PS=function(e,t,n){return yt(e,kee(t,n))},kB=function(e){var t=Pee(e);return function(n,r){return yt(n,t(r))}},See=function(e,t){return yt(e,Aee(t))},IB=function(e,t,n){return yt(e,Tee(t,n))},PB=function(e){var t=mee(e);return function(n,r){return yt(n,t(r))}},MB=function(e,t,n){return yt(e,Iee(t,n))},xee=function(e){var t=ek(e);return function(n,r){return yt(n,t(r))}},Cee=function(e){return function(t){return yt(t,cee(e()))}},Aee=Cee,_ee=function(e){return OB(function(t){return yt(e,DB(t))})},MS=MT(2,function(e,t){return yt(e,vee(function(n,r){return t(r)}))}),OB=MS,RB=function(e){return function(t){for(var n=mu(t),r=[e(t)];qd(n);)r.push(e(n)),n=mu(n);return r}},v$e=RB(Qo),b$e=OB(Qo),DB=function(e){return BB(function(t,n){return e(n)})},BB=function(e){return function(t){for(var n=[e(0,jl(t))],r=1;rt?1:0}};function $ee(e,t){return function(n){return n?t.of(void 0):e.zero()}}var sLe=globalThis&&globalThis.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r=0;n--)if(e(t[n]))return Go(t[n]);return Po}}var yLe=function(e){return function(t){for(var n=t.length-1;n>=0;n--){var r=e(t[n]);if(Lg(r))return r}return Po}},vLe=function(e){return function(t){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return Go(n);return Po}};function Fee(e){return function(t,n){if(n===void 0){var r=Fee(e);return function(a){return r(t,a)}}for(var o=function(a){return e.equals(a,t)},i=0;i0;){var o=n.shift();pS(o)?n.unshift.apply(n,e(o.left)):r.push(o.right)}return r}},zee=function(e){return function(t){var n=e(t),r=[],o=[];function i(u){pS(u)?e(u.left).forEach(function(c){return r.push(c)}):o.push(u.right)}for(var a=0,s=n;a0;)i(r.shift());return o}};function TLe(e){return function(t){return t.every(e)}}var kLe=function(e){var t=oee(e);return function(n){return uLe(function(){return e.empty},t(n))}},xg=function(e){return e.length===0},mi=qd,ILe=ny,PLe=vB,rk=_S,MLe=bB,Vee=function(e,t){return e<=0?[]:YT(t)(e)},OLe=function(e,t){return Vee(e,function(){return t})};function RLe(e){return function(t){return e(t)?[t]:[]}}var Hee=function(e){return qD(e)?[]:[e.value]},qee=function(e){return pS(e)?[]:[e.right]},Qee=function(e,t){return function(n){return mi(n)?t(n):e()}},DLe=Qee,Kee=function(e,t){return function(n){return mi(n)?t(jl(n),mu(n)):e()}},Yee=Kee,BLe=Yee,Gee=function(e,t){return function(n){return mi(n)?t(zy(n),Wy(n)):e()}},Jee=Gee,$Le=Jee,Xee=function(e){return function(t){for(var n=[],r=0;r=0;i--)o[i]=t(n[i],o[i+1]);return o}},NLe=function(e){return e.length},OS=KT,ULe=Lee,jLe=dLe,WLe=fLe,zLe=function(e){return mi(e)?Go(mu(e)):Po},VLe=function(e){return mi(e)?Go(zy(e)):Po},HLe=function(e){return function(t){return OS(e,t)?ga(t):t.slice(0,e)}},qLe=function(e){return function(t){return OS(e,t)?ga(t):e===0?[]:t.slice(-e)}};function QLe(e){return function(t){for(var n=[],r=0,o=t;r=t.length?[]:t.slice(e,t.length)}},GLe=function(e){return function(t){return e<=0||xg(t)?ga(t):e>=t.length?[]:t.slice(0,t.length-e)}};function JLe(e){return function(t){return t.slice(Zee(t,e))}}var XLe=pLe;function ZLe(e){return hLe(e)}var eFe=gLe;function tFe(e){return mLe(e)}var nFe=yLe,rFe=vLe,ga=function(e){return e.slice()},oFe=function(e,t){return function(n){return e<0||e>n.length?Po:Go(Rte(e,t,n))}},iFe=function(e,t){return ete(e,function(){return t})},aFe=function(e){return function(t){return OS(e,t)?Po:Go(Bte(e,t))}},ete=function(e,t){return function(n){return OS(e,n)?Po:Go(Dte(e,t(n[e]),n))}},sFe=function(e){return xg(e)?[]:e.slice().reverse()},lFe=function(e){for(var t=[],n=0;n=1&&mi(t)?XT(e)(t):xg(t)?[ga(t),[]]:[[],ga(t)]}},yFe=function(e){var t=bee(e);return function(n){return mi(n)?t(n):[]}},vFe=function(e){return function(){for(var t=[],n=0;nt?1:0}},mUe=function(e){return Object.keys(e).length},Od=function(e){for(var t in e)if(Pi.call(e,t))return!1;return!0},$S=function(e){return function(t){return Object.keys(t).sort(e.compare)}};function une(e){if(typeof e=="function")return une(nn)(e);var t=$S(e);return function(n){return function(r){for(var o=[],i=0,a=t(r);i=0;u--){var c=s[u];a=o(c,i[c],a)}return a}}}var vUe=function(e,t){var n;return n={},n[e]=t,n};function bUe(e){var t=gne(nn)(e);return function(n){return function(r){return t(r,n)}}}function wUe(e){var t=M8(nn)(e);return function(n){return function(r){return t(r,n)}}}function SUe(e){return hne(nn)(e)}function T8(e){return function(t){var n={},r={};for(var o in t)if(Pi.call(t,o)){var i=e(o,t[o]);switch(i._tag){case"Left":n[o]=i.left;break;case"Right":r[o]=i.right;break}}return Ei(n,r)}}function k8(e){return function(t){var n={},r={};for(var o in t)if(Pi.call(t,o)){var i=t[o];e(o,i)?r[o]=i:n[o]=i}return Ei(n,r)}}function I8(e){return function(t){var n={};for(var r in t)if(Pi.call(t,r)){var o=e(r,t[r]);Lg(o)&&(n[r]=o.value)}return n}}function P8(e){return function(t){var n={},r=!1;for(var o in t)if(Pi.call(t,o)){var i=t[o];e(o,i)?n[o]=i:r=!0}return r?n:t}}function xUe(e,t){var n=fne(e,t);return function(r){return n(r,Qo)}}function fne(e,t){return function(n,r){return t.reduce(n,{},function(o,i){var a=r(i),s=a[0],l=a[1];return o[s]=Pi.call(o,s)?e.concat(o[s],l):l,o})}}function CUe(e){return function(t){for(var n in t)if(!e(t[n]))return!1;return!0}}function AUe(e){return function(t){for(var n in t)if(e(t[n]))return!0;return!1}}function pne(e){return function(t,n){if(n===void 0){var r=pne(e);return function(i){return r(t,i)}}for(var o in n)if(e.equals(n[o],t))return!0;return!1}}var _Ue=function(e){return function(t){return function(n){if(Od(n))return t;if(Od(t))return n;var r={};for(var o in n)ry(o,t)?r[o]=e.concat(n[o],t[o]):r[o]=n[o];for(var o in t)ry(o,r)||(r[o]=t[o]);return r}}},EUe=function(e){return function(t){return function(n){if(Od(n)||Od(t))return _8;var r={};for(var o in n)ry(o,t)&&(r[o]=e.concat(n[o],t[o]));return r}}},TUe=function(e){return function(t){if(Od(t))return e;if(Od(e))return t;var n={};for(var r in t)ry(r,e)||(n[r]=t[r]);for(var r in e)ry(r,t)||(n[r]=e[r]);return n}},kUe=function(e,t){return yt(e,dne(t))},IUe=function(e,t){return yt(e,E8(t))},PUe=function(e){var t=zA(e);return function(n,r,o){return yt(n,t(r,o))}},MUe=function(e){return function(t){var n=VA(e)(t);return function(r,o){return yt(r,n(o))}}},OUe=function(e){var t=HA(e);return function(n,r,o){return yt(n,t(r,o))}},RUe=function(e,t){return yt(e,mne(t))},DUe=function(e,t){return yt(e,yne(t))},BUe=function(e,t){return yt(e,vne(t))},$Ue=function(e,t){return yt(e,bne(t))},LUe=function(e){var t=dw(e);return function(n,r,o){return yt(n,t(r,o))}},FUe=function(e){var t=fw(e);return function(n){var r=t(n);return function(o,i){return yt(o,r(i))}}},NUe=function(e){var t=pw(e);return function(n,r,o){return yt(n,t(r,o))}},UUe=function(e,t){return yt(e,T8(t))},jUe=function(e,t){return yt(e,k8(t))},WUe=function(e,t){return yt(e,I8(t))},zUe=function(e,t){return yt(e,P8(t))},M8=function(e){var t=gne(e);return function(n){var r=t(n);return function(o,i){return r(o,_p(K6e,i))}}},hne=function(e){var t=M8(e);return function(n){var r=t(n);return function(o){return r(o,Qo)}}},gne=function(e){return function(t){var n=$S(e);return function(r,o){var i=n(r);if(i.length===0)return t.of(_8);for(var a=t.of({}),s=function(f){a=t.ap(t.map(a,function(p){return function(g){var m;return Object.assign({},p,(m={},m[f]=g,m))}}),o(f,r[f]))},l=0,u=i;le.TYPE_MAX_LEN?C.slice(0,e.TYPE_MAX_LEN-3)+"...":C},y=function(C,O,$,j){return["Expecting "+m(C,j),O===""?"":"at "+O,"but instead got: "+c($.value),$.message?"("+$.message+")":""].filter(Boolean).join(" ")},v=function(C,O,$,j){return[`Expecting one of: `,C.map(function(L){return" "+m(L,j)}).join(` `),O===""?` `:` -at `+O+" ","but instead got: "+c($)].filter(Boolean).join("")},x=function(C){return a.pipe(C,t.findIndex(u),o.chain(function(O){return t.lookup(O+1,C)}))},w=function(C,O,$){var j=a.pipe(O,t.map(g),t.map(x),t.compact),L=a.pipe(j,t.head,o.map(function(H){return H.actual}),o.getOrElse(function(){})),B=j.map(function(H){var q=H.type;return q.name});return B.length>0?o.some(v(B,C,L,$)):o.none},I=function(C,O,$){return a.pipe(O,p,o.map(function(j){return y(j.type.name,C,O,$)}))},_=r.groupBy(function(C){return a.pipe(C.context,l.takeUntil(u),f)}),R=function(C,O,$){return r.tail(O).length>0?w(C,O,$):I(C,r.head(O),$)},U=function(C,O){return I(f(C.context),C,O)};e.formatValidationError=U;var D=function(C,O){return a.pipe(C,_,i.mapWithIndex(function($,j){return R($,j,O)}),i.compact,i.toArray,t.map(function($){$[0];var j=$[1];return j}))};e.formatValidationErrors=D;var b=function(C,O){return a.pipe(C,n.mapLeft(function($){return e.formatValidationErrors($,O)}),n.fold(function($){return $},function(){return[]}))};e.reporter=b;var T={report:e.reporter};e.default=T})(JZ);var xk={};Object.defineProperty(xk,"__esModule",{value:!0});xk.InMemoryCache=void 0;class b9e{constructor(){this.cache=new Map,this.set=async(t,n,r)=>{r!==null?this.cache.set(t+"$$"+n,r):this.cache.delete(t+"$$"+n)},this.get=async(t,n)=>{let r=this.cache.get(t+"$$"+n);return r!==void 0?r:null}}}xk.InMemoryCache=b9e;var w9e=function(){function e(n,r){if(typeof n!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array and returns Promise>, but got: "+n+"."));this._batchLoadFn=n,this._maxBatchSize=A9e(r),this._batchScheduleFn=_9e(r),this._cacheKeyFn=E9e(r),this._cacheMap=T9e(r),this._batch=null,this.name=k9e(r)}var t=e.prototype;return t.load=function(r){if(r==null)throw new TypeError("The loader.load() function must be called with a value, "+("but got: "+String(r)+"."));var o=x9e(this),i=this._cacheMap,a=this._cacheKeyFn(r);if(i){var s=i.get(a);if(s){var l=o.cacheHits||(o.cacheHits=[]);return new Promise(function(c){l.push(function(){c(s)})})}}o.keys.push(r);var u=new Promise(function(c,f){o.callbacks.push({resolve:c,reject:f})});return i&&i.set(a,u),u},t.loadMany=function(r){if(!cre(r))throw new TypeError("The loader.loadMany() function must be called with Array "+("but got: "+r+"."));for(var o=[],i=0;i and returns Promise>, but the function "+("errored synchronously: "+String(r)+".")))}if(!n||typeof n.then!="function")return pP(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did "+("not return a Promise: "+String(n)+".")));n.then(function(r){if(!cre(r))throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did "+("not return a Promise of an Array: "+String(r)+"."));if(r.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys."+(` +at `+O+" ","but instead got: "+c($)].filter(Boolean).join("")},x=function(C){return a.pipe(C,t.findIndex(u),o.chain(function(O){return t.lookup(O+1,C)}))},w=function(C,O,$){var j=a.pipe(O,t.map(g),t.map(x),t.compact),L=a.pipe(j,t.head,o.map(function(H){return H.actual}),o.getOrElse(function(){})),B=j.map(function(H){var q=H.type;return q.name});return B.length>0?o.some(v(B,C,L,$)):o.none},I=function(C,O,$){return a.pipe(O,p,o.map(function(j){return y(j.type.name,C,O,$)}))},_=r.groupBy(function(C){return a.pipe(C.context,l.takeUntil(u),f)}),R=function(C,O,$){return r.tail(O).length>0?w(C,O,$):I(C,r.head(O),$)},U=function(C,O){return I(f(C.context),C,O)};e.formatValidationError=U;var D=function(C,O){return a.pipe(C,_,i.mapWithIndex(function($,j){return R($,j,O)}),i.compact,i.toArray,t.map(function($){$[0];var j=$[1];return j}))};e.formatValidationErrors=D;var b=function(C,O){return a.pipe(C,n.mapLeft(function($){return e.formatValidationErrors($,O)}),n.fold(function($){return $},function(){return[]}))};e.reporter=b;var T={report:e.reporter};e.default=T})(JZ);var xk={};Object.defineProperty(xk,"__esModule",{value:!0});xk.InMemoryCache=void 0;class v9e{constructor(){this.cache=new Map,this.set=async(t,n,r)=>{r!==null?this.cache.set(t+"$$"+n,r):this.cache.delete(t+"$$"+n)},this.get=async(t,n)=>{let r=this.cache.get(t+"$$"+n);return r!==void 0?r:null}}}xk.InMemoryCache=v9e;var b9e=function(){function e(n,r){if(typeof n!="function")throw new TypeError("DataLoader must be constructed with a function which accepts "+("Array and returns Promise>, but got: "+n+"."));this._batchLoadFn=n,this._maxBatchSize=C9e(r),this._batchScheduleFn=A9e(r),this._cacheKeyFn=_9e(r),this._cacheMap=E9e(r),this._batch=null,this.name=T9e(r)}var t=e.prototype;return t.load=function(r){if(r==null)throw new TypeError("The loader.load() function must be called with a value, "+("but got: "+String(r)+"."));var o=S9e(this),i=this._cacheMap,a=this._cacheKeyFn(r);if(i){var s=i.get(a);if(s){var l=o.cacheHits||(o.cacheHits=[]);return new Promise(function(c){l.push(function(){c(s)})})}}o.keys.push(r);var u=new Promise(function(c,f){o.callbacks.push({resolve:c,reject:f})});return i&&i.set(a,u),u},t.loadMany=function(r){if(!cre(r))throw new TypeError("The loader.loadMany() function must be called with Array "+("but got: "+r+"."));for(var o=[],i=0;i and returns Promise>, but the function "+("errored synchronously: "+String(r)+".")))}if(!n||typeof n.then!="function")return hP(e,t,new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did "+("not return a Promise: "+String(n)+".")));n.then(function(r){if(!cre(r))throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did "+("not return a Promise of an Array: "+String(r)+"."));if(r.length!==t.keys.length)throw new TypeError("DataLoader must be constructed with a function which accepts Array and returns Promise>, but the function did not return a Promise of an Array of the same length as the Array of keys."+(` Keys: `+String(t.keys))+(` Values: -`+String(r)));uR(t);for(var o=0;o0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}var I9e=w9e,qA={},P9e={get exports(){return qA},set exports(e){qA=e}},QA={},M9e={get exports(){return QA},set exports(e){QA=e}},dre=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function R9e(e){return e!==null&&!cR(e)&&e.constructor!==null&&!cR(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function fre(e){return Pp.call(e)==="[object ArrayBuffer]"}function D9e(e){return Pp.call(e)==="[object FormData]"}function B9e(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fre(e.buffer),t}function $9e(e){return typeof e=="string"}function L9e(e){return typeof e=="number"}function pre(e){return e!==null&&typeof e=="object"}function IC(e){if(Pp.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function F9e(e){return Pp.call(e)==="[object Date]"}function N9e(e){return Pp.call(e)==="[object File]"}function U9e(e){return Pp.call(e)==="[object Blob]"}function hre(e){return Pp.call(e)==="[object Function]"}function j9e(e){return pre(e)&&hre(e.pipe)}function W9e(e){return Pp.call(e)==="[object URLSearchParams]"}function z9e(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function V9e(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function F8(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),L8(e))for(var n=0,r=e.length;n"u"||(Rm.isArray(l)?u=u+"[]":l=[l],Rm.forEach(l,function(f){Rm.isDate(f)?f=f.toISOString():Rm.isObject(f)&&(f=JSON.stringify(f)),i.push(PW(u)+"="+PW(f))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},Q9e=gs;function Ck(){this.handlers=[]}Ck.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Ck.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ck.prototype.forEach=function(t){Q9e.forEach(this.handlers,function(r){r!==null&&t(r)})};var K9e=Ck,Y9e=gs,G9e=function(t,n){Y9e.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},mre=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},hP,MW;function yre(){if(MW)return hP;MW=1;var e=mre;return hP=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},hP}var gP,OW;function J9e(){if(OW)return gP;OW=1;var e=yre();return gP=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},gP}var mP,RW;function X9e(){if(RW)return mP;RW=1;var e=gs;return mP=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),mP}var yP,DW;function Z9e(){return DW||(DW=1,yP=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),yP}var vP,BW;function eje(){return BW||(BW=1,vP=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),vP}var bP,$W;function tje(){if($W)return bP;$W=1;var e=Z9e(),t=eje();return bP=function(r,o){return r&&!e(o)?t(r,o):o},bP}var wP,LW;function nje(){if(LW)return wP;LW=1;var e=gs,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return wP=function(r){var o={},i,a,s;return r&&e.forEach(r.split(` -`),function(u){if(s=u.indexOf(":"),i=e.trim(u.substr(0,s)).toLowerCase(),a=e.trim(u.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},wP}var SP,FW;function rje(){if(FW)return SP;FW=1;var e=gs;return SP=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),SP}var xP,NW;function Ak(){if(NW)return xP;NW=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,xP=e,xP}var CP,UW;function jW(){if(UW)return CP;UW=1;var e=gs,t=J9e(),n=X9e(),r=gre,o=tje(),i=nje(),a=rje(),s=yre(),l=_k(),u=Ak();return CP=function(f){return new Promise(function(g,m){var y=f.data,v=f.headers,x=f.responseType,w;function I(){f.cancelToken&&f.cancelToken.unsubscribe(w),f.signal&&f.signal.removeEventListener("abort",w)}e.isFormData(y)&&delete v["Content-Type"];var _=new XMLHttpRequest;if(f.auth){var R=f.auth.username||"",U=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(R+":"+U)}var D=o(f.baseURL,f.url);_.open(f.method.toUpperCase(),r(D,f.params,f.paramsSerializer),!0),_.timeout=f.timeout;function b(){if(_){var C="getAllResponseHeaders"in _?i(_.getAllResponseHeaders()):null,O=!x||x==="text"||x==="json"?_.responseText:_.response,$={data:O,status:_.status,statusText:_.statusText,headers:C,config:f,request:_};t(function(L){g(L),I()},function(L){m(L),I()},$),_=null}}if("onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(b)},_.onabort=function(){_&&(m(s("Request aborted",f,"ECONNABORTED",_)),_=null)},_.onerror=function(){m(s("Network Error",f,null,_)),_=null},_.ontimeout=function(){var O=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",$=f.transitional||l.transitional;f.timeoutErrorMessage&&(O=f.timeoutErrorMessage),m(s(O,f,$.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()){var T=(f.withCredentials||a(D))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;T&&(v[f.xsrfHeaderName]=T)}"setRequestHeader"in _&&e.forEach(v,function(O,$){typeof y>"u"&&$.toLowerCase()==="content-type"?delete v[$]:_.setRequestHeader($,O)}),e.isUndefined(f.withCredentials)||(_.withCredentials=!!f.withCredentials),x&&x!=="json"&&(_.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&_.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(w=function(C){_&&(m(!C||C&&C.type?new u("canceled"):C),_.abort(),_=null)},f.cancelToken&&f.cancelToken.subscribe(w),f.signal&&(f.signal.aborted?w():f.signal.addEventListener("abort",w))),y||(y=null),_.send(y)})},CP}var AP,WW;function _k(){if(WW)return AP;WW=1;var e=gs,t=G9e,n=mre,r={"Content-Type":"application/x-www-form-urlencoded"};function o(l,u){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=u)}function i(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=jW()),l}function a(l,u,c){if(e.isString(l))try{return(u||JSON.parse)(l),e.trim(l)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(l)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:i(),transformRequest:[function(u,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(u)||e.isArrayBuffer(u)||e.isBuffer(u)||e.isStream(u)||e.isFile(u)||e.isBlob(u)?u:e.isArrayBufferView(u)?u.buffer:e.isURLSearchParams(u)?(o(c,"application/x-www-form-urlencoded;charset=utf-8"),u.toString()):e.isObject(u)||c&&c["Content-Type"]==="application/json"?(o(c,"application/json"),a(u)):u}],transformResponse:[function(u){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,p=c&&c.forcedJSONParsing,g=!f&&this.responseType==="json";if(g||p&&e.isString(u)&&u.length)try{return JSON.parse(u)}catch(m){if(g)throw m.name==="SyntaxError"?n(m,this,"E_JSON_PARSE"):m}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(u){s.headers[u]={}}),e.forEach(["post","put","patch"],function(u){s.headers[u]=e.merge(r)}),AP=s,AP}var oje=gs,ije=_k(),aje=function(t,n,r){var o=this||ije;return oje.forEach(r,function(a){t=a.call(o,t,n)}),t},_P,zW;function vre(){return zW||(zW=1,_P=function(t){return!!(t&&t.__CANCEL__)}),_P}var VW=gs,EP=aje,sje=vre(),lje=_k(),uje=Ak();function TP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uje("canceled")}var cje=function(t){TP(t),t.headers=t.headers||{},t.data=EP.call(t,t.data,t.headers,t.transformRequest),t.headers=VW.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),VW.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||lje.adapter;return n(t).then(function(o){return TP(t),o.data=EP.call(t,o.data,o.headers,t.transformResponse),o},function(o){return sje(o)||(TP(t),o&&o.response&&(o.response.data=EP.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},xs=gs,bre=function(t,n){n=n||{};var r={};function o(c,f){return xs.isPlainObject(c)&&xs.isPlainObject(f)?xs.merge(c,f):xs.isPlainObject(f)?xs.merge({},f):xs.isArray(f)?f.slice():f}function i(c){if(xs.isUndefined(n[c])){if(!xs.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],n[c])}function a(c){if(!xs.isUndefined(n[c]))return o(void 0,n[c])}function s(c){if(xs.isUndefined(n[c])){if(!xs.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,n[c])}function l(c){if(c in n)return o(t[c],n[c]);if(c in t)return o(void 0,t[c])}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return xs.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var p=u[f]||i,g=p(f);xs.isUndefined(g)&&p!==l||(r[f]=g)}),r},kP,HW;function wre(){return HW||(HW=1,kP={version:"0.25.0"}),kP}var dje=wre().version,N8={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){N8[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var qW={};N8.transitional=function(t,n,r){function o(i,a){return"[Axios v"+dje+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new Error(o(a," has been removed"+(n?" in "+n:"")));return n&&!qW[a]&&(qW[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function fje(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var pje={assertOptions:fje,validators:N8},Sre=gs,hje=gre,QW=K9e,KW=cje,Ek=bre,xre=pje,Dm=xre.validators;function qS(e){this.defaults=e,this.interceptors={request:new QW,response:new QW}}qS.prototype.request=function(t,n){if(typeof t=="string"?(n=n||{},n.url=t):n=t||{},!n.url)throw new Error("Provided config url is not valid");n=Ek(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&xre.assertOptions(r,{silentJSONParsing:Dm.transitional(Dm.boolean),forcedJSONParsing:Dm.transitional(Dm.boolean),clarifyTimeoutError:Dm.transitional(Dm.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(i=i&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});var a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});var s;if(!i){var l=[KW,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=n;o.length;){var c=o.shift(),f=o.shift();try{u=c(u)}catch(p){f(p);break}}try{s=KW(u)}catch(p){return Promise.reject(p)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};qS.prototype.getUri=function(t){if(!t.url)throw new Error("Provided config url is not valid");return t=Ek(this.defaults,t),hje(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Sre.forEach(["delete","get","head","options"],function(t){qS.prototype[t]=function(n,r){return this.request(Ek(r||{},{method:t,url:n,data:(r||{}).data}))}});Sre.forEach(["post","put","patch"],function(t){qS.prototype[t]=function(n,r,o){return this.request(Ek(o||{},{method:t,url:n,data:r}))}});var gje=qS,IP,YW;function mje(){if(YW)return IP;YW=1;var e=Ak();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a=0.48.0","ton-crypto":">=3.2.0"},Rje={access:"public",registry:"https://registry.npmjs.org/"},Dje="yarn@3.4.1",Bje={name:xje,version:Cje,repository:Aje,author:_je,license:Eje,main:Tje,files:kje,scripts:Ije,devDependencies:Pje,dependencies:Mje,peerDependencies:Oje,publishConfig:Rje,"release-it":{github:{release:!0},plugins:{"@release-it/keep-a-changelog":{filename:"CHANGELOG.md"}}},packageManager:Dje};var $je=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Lje=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Fje=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&$je(t,e,n);return Lje(t,e),t},U8=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fS,"__esModule",{value:!0});fS.HttpApi=void 0;const xt=Fje(dB),Are=HZ,Nje=U8(JZ),Uje=xk,ZW=U8(I9e),jje=U8(qA),Wje=Bje.version,iy=xt.type({"@type":xt.literal("ton.blockIdExt"),workchain:xt.number,shard:xt.string,seqno:xt.number,root_hash:xt.string,file_hash:xt.string}),zje=xt.type({balance:xt.union([xt.number,xt.string]),state:xt.union([xt.literal("active"),xt.literal("uninitialized"),xt.literal("frozen")]),data:xt.string,code:xt.string,last_transaction_id:xt.type({"@type":xt.literal("internal.transactionId"),lt:xt.string,hash:xt.string}),block_id:iy,sync_utime:xt.number}),Vje=xt.type({"@type":xt.literal("ok")}),Hje=xt.type({"@type":xt.literal("query.fees"),source_fees:xt.type({"@type":xt.literal("fees"),in_fwd_fee:xt.number,storage_fee:xt.number,gas_fee:xt.number,fwd_fee:xt.number})}),qje=xt.type({gas_used:xt.number,exit_code:xt.number,stack:xt.array(xt.unknown)}),Qje=xt.union([xt.type({"@type":xt.literal("msg.dataRaw"),body:xt.string}),xt.type({"@type":xt.literal("msg.dataText"),text:xt.string}),xt.type({"@type":xt.literal("msg.dataDecryptedText"),text:xt.string}),xt.type({"@type":xt.literal("msg.dataEncryptedText"),text:xt.string})]),ez=xt.type({source:xt.string,destination:xt.string,value:xt.string,fwd_fee:xt.string,ihr_fee:xt.string,created_lt:xt.string,body_hash:xt.string,msg_data:Qje}),Kje=xt.type({data:xt.string,utime:xt.number,transaction_id:xt.type({lt:xt.string,hash:xt.string}),fee:xt.string,storage_fee:xt.string,other_fee:xt.string,in_msg:xt.union([xt.undefined,ez]),out_msgs:xt.array(ez)}),tz=xt.array(Kje),Yje=xt.type({state_root_hash:xt.string,last:iy,init:iy}),Gje=xt.type({shards:xt.array(iy)}),Jje=xt.type({"@type":xt.literal("blocks.shortTxId"),mode:xt.number,account:xt.string,lt:xt.string,hash:xt.string}),nz=xt.type({id:iy,req_count:xt.number,incomplete:xt.boolean,transactions:xt.array(Jje)});class rz{constructor(t,n,r,o){this.namespace=t,this.cache=n,this.codec=r,this.keyEncoder=o}async get(t){let n=await this.cache.get(this.namespace,this.keyEncoder(t));if(n){let r=this.codec.decode(JSON.parse(n));if((0,Are.isRight)(r))return r.right}return null}async set(t,n){n!==null?await this.cache.set(this.namespace,this.keyEncoder(t),JSON.stringify(n)):await this.cache.set(this.namespace,this.keyEncoder(t),null)}}class Xje{constructor(t,n){this.endpoint=t,this.cache=new Uje.InMemoryCache,this.parameters={timeout:(n==null?void 0:n.timeout)||3e4,apiKey:n==null?void 0:n.apiKey},this.shardCache=new rz("ton-shard",this.cache,xt.array(iy),r=>r+""),this.shardLoader=new ZW.default(async r=>await Promise.all(r.map(async o=>{const i=await this.shardCache.get(o);if(i)return i;let a=(await this.doCall("shards",{seqno:o},Gje)).shards;return await this.shardCache.set(o,a),a}))),this.shardTransactionsCache=new rz("ton-shard-tx",this.cache,nz,r=>r.workchain+":"+r.shard+":"+r.seqno),this.shardTransactionsLoader=new ZW.default(async r=>await Promise.all(r.map(async o=>{const i=await this.shardTransactionsCache.get(o);if(i)return i;let a=await this.doCall("getBlockTransactions",{workchain:o.workchain,seqno:o.seqno,shard:o.shard},nz);return await this.shardTransactionsCache.set(o,a),a})),{cacheKeyFn:r=>r.workchain+":"+r.shard+":"+r.seqno})}getAddressInformation(t){return this.doCall("getAddressInformation",{address:t.toString()},zje)}async getTransactions(t,n){const r=n.inclusive;delete n.inclusive;let o;n.hash&&(o=Buffer.from(n.hash,"base64").toString("hex"));let i=n.limit;n.hash&&n.lt&&r!==!0&&i++;let a=await this.doCall("getTransactions",{address:t.toString(),...n,limit:i,hash:o},tz);return a.length>i&&(a=a.slice(0,i)),n.hash&&n.lt&&r!==!0&&a.shift(),a}async getMasterchainInfo(){return await this.doCall("getMasterchainInfo",{},Yje)}async getShards(t){return await this.shardLoader.load(t)}async getBlockTransactions(t,n,r){return await this.shardTransactionsLoader.load({workchain:t,seqno:n,shard:r})}async getTransaction(t,n,r){let o=Buffer.from(r,"base64").toString("hex"),a=(await this.doCall("getTransactions",{address:t.toString(),lt:n,hash:o,limit:1},tz)).find(s=>s.transaction_id.lt===n&&s.transaction_id.hash===r);return a||null}async callGetMethod(t,n,r){return await this.doCall("runGetMethod",{address:t.toString(),method:n,stack:Zje(r)},qje)}async sendBoc(t){await this.doCall("sendBoc",{boc:t.toString("base64")},Vje)}async estimateFee(t,n){return await this.doCall("estimateFee",{address:t.toString(),body:n.body.toBoc().toString("base64"),init_data:n.initData?n.initData.toBoc().toString("base64"):"",init_code:n.initCode?n.initCode.toBoc().toString("base64"):"",ignore_chksig:n.ignoreSignature},Hje)}async doCall(t,n,r){let o={"Content-Type":"application/json","X-Ton-Client-Version":Wje};this.parameters.apiKey&&(o["X-API-Key"]=this.parameters.apiKey);let i=await jje.default.post(this.endpoint,JSON.stringify({id:"1",jsonrpc:"2.0",method:t,params:n}),{headers:o,timeout:this.parameters.timeout});if(i.status!==200||!i.data.ok)throw Error("Received error: "+JSON.stringify(i.data));let a=r.decode(i.data.result);if((0,Are.isRight)(a))return a.right;throw Error("Malformed response: "+Nje.default.report(a).join(", "))}}fS.HttpApi=Xje;function Zje(e){let t=[];for(let n of e)if(n.type==="int")t.push(["num",n.value.toString()]);else if(n.type==="cell")t.push(["tvm.Cell",n.cell.toBoc().toString("base64")]);else if(n.type==="slice")t.push(["tvm.Slice",n.cell.toBoc().toString("base64")]);else if(n.type==="builder")t.push(["tvm.Builder",n.cell.toBoc().toString("base64")]);else throw Error("Unsupported stack item type: "+n.type);return t}var Tk={},eWe=st&&st.__classPrivateFieldSet||function(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n},Xl=st&&st.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Wa;Object.defineProperty(Tk,"__esModule",{value:!0});Tk.TonClient=void 0;const tWe=fS,si=vr;class nWe{constructor(t){Wa.set(this,void 0),this.parameters={endpoint:t.endpoint},eWe(this,Wa,new tWe.HttpApi(this.parameters.endpoint,{timeout:t.timeout,apiKey:t.apiKey,adapter:t.httpAdapter}),"f")}async getBalance(t){return(await this.getContractState(t)).balance}async runMethod(t,n,r=[]){let o=await Xl(this,Wa,"f").callGetMethod(t,n,r);if(o.exit_code!==0)throw Error("Unable to execute get method. Got exit_code: "+o.exit_code);return{gas_used:o.gas_used,stack:oz(o.stack)}}async callGetMethod(t,n,r=[]){return this.runMethod(t,n,r)}async runMethodWithError(t,n,r=[]){let o=await Xl(this,Wa,"f").callGetMethod(t,n,r);return{gas_used:o.gas_used,stack:oz(o.stack),exit_code:o.exit_code}}async callGetMethodWithError(t,n,r=[]){return this.runMethodWithError(t,n,r)}async getTransactions(t,n){let r=await Xl(this,Wa,"f").getTransactions(t,n),o=[];for(let i of r)o.push((0,si.loadTransaction)(si.Cell.fromBoc(Buffer.from(i.data,"base64"))[0].beginParse()));return o}async getTransaction(t,n,r){let o=await Xl(this,Wa,"f").getTransaction(t,n,r);return o?(0,si.loadTransaction)(si.Cell.fromBoc(Buffer.from(o.data,"base64"))[0].beginParse()):null}async getMasterchainInfo(){let t=await Xl(this,Wa,"f").getMasterchainInfo();return{workchain:t.init.workchain,shard:t.last.shard,initSeqno:t.init.seqno,latestSeqno:t.last.seqno}}async getWorkchainShards(t){return(await Xl(this,Wa,"f").getShards(t)).map(r=>({workchain:r.workchain,shard:r.shard,seqno:r.seqno}))}async getShardTransactions(t,n,r){let o=await Xl(this,Wa,"f").getBlockTransactions(t,n,r);if(o.incomplete)throw Error("Unsupported");return o.transactions.map(i=>({account:si.Address.parseRaw(i.account),lt:i.lt,hash:i.hash}))}async sendMessage(t){const n=(0,si.beginCell)().store((0,si.storeMessage)(t)).endCell().toBoc();await Xl(this,Wa,"f").sendBoc(n)}async sendFile(t){await Xl(this,Wa,"f").sendBoc(t)}async estimateExternalMessageFee(t,n){return await Xl(this,Wa,"f").estimateFee(t,{body:n.body,initCode:n.initCode,initData:n.initData,ignoreSignature:n.ignoreSignature})}async sendExternalMessage(t,n){if(await this.isContractDeployed(t.address)||!t.init){const r=(0,si.external)({to:t.address,body:n});await this.sendMessage(r)}else{const r=(0,si.external)({to:t.address,init:{code:t.init.code,data:t.init.data},body:n});await this.sendMessage(r)}}async isContractDeployed(t){return(await this.getContractState(t)).state==="active"}async getContractState(t){let n=await Xl(this,Wa,"f").getAddressInformation(t),r=BigInt(n.balance),o=n.state;return{balance:r,state:o,code:n.code!==""?Buffer.from(n.code,"base64"):null,data:n.data!==""?Buffer.from(n.data,"base64"):null,lastTransaction:n.last_transaction_id.lt!=="0"?{lt:n.last_transaction_id.lt,hash:n.last_transaction_id.hash}:null,blockId:{workchain:n.block_id.workchain,shard:n.block_id.shard,seqno:n.block_id.seqno},timestampt:n.sync_utime}}open(t){return(0,si.openContract)(t,n=>iz(this,n.address,n.init))}provider(t,n){return iz(this,t,n)}}Tk.TonClient=nWe;Wa=new WeakMap;function oz(e){let t=[];for(let n of e)if(n[0]==="num"){let r=n[1];r.startsWith("-")?t.push({type:"int",value:-BigInt(r.slice(1))}):t.push({type:"int",value:BigInt(r)})}else if(n[0]==="null")t.push({type:"null"});else if(n[0]==="cell")t.push({type:"cell",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else if(n[0]==="slice")t.push({type:"slice",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else if(n[0]==="builder")t.push({type:"builder",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else throw Error("Unsupported stack item type: "+n[0]);return new si.TupleReader(t)}function iz(e,t,n){return{async getState(){let r=await e.getContractState(t),o=r.balance,i=r.lastTransaction?{lt:BigInt(r.lastTransaction.lt),hash:Buffer.from(r.lastTransaction.hash,"base64")}:null,a;if(r.state==="active")a={type:"active",code:r.code?r.code:null,data:r.data?r.data:null};else if(r.state==="uninitialized")a={type:"uninit"};else if(r.state==="frozen")a={type:"frozen",stateHash:Buffer.alloc(0)};else throw Error("Unsupported state");return{balance:o,last:i,state:a}},async get(r,o){return{stack:(await e.callGetMethod(t,r,o)).stack}},async external(r){let o=null;n&&!await e.isContractDeployed(t)&&(o=n);const i=(0,si.external)({to:t,init:o?{code:o.code,data:o.data}:null,body:r});let a=(0,si.beginCell)().store((0,si.storeMessage)(i)).endCell().toBoc();await e.sendFile(a)},async internal(r,o){let i=null;n&&!await e.isContractDeployed(t)&&(i=n);let a=!0;o.bounce!==null&&o.bounce!==void 0&&(a=o.bounce);let s;typeof o.value=="string"?s=(0,si.toNano)(o.value):s=o.value;let l=null;typeof o.body=="string"?l=(0,si.comment)(o.body):o.body&&(l=o.body),await r.send({to:t,value:s,bounce:a,sendMode:o.sendMode,init:i,body:l})}}}var kk={},Ik={};Object.defineProperty(Ik,"__esModule",{value:!0});Ik.toUrlSafe=void 0;function rWe(e){for(;e.indexOf("/")>=0;)e=e.replace("/","_");for(;e.indexOf("+")>=0;)e=e.replace("+","-");for(;e.indexOf("=")>=0;)e=e.replace("=","");return e}Ik.toUrlSafe=rWe;var oWe=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),iWe=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),aWe=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&oWe(t,e,n);return iWe(t,e),t},OP=st&&st.__classPrivateFieldSet||function(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n},or=st&&st.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},sWe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},za,Va,Ha;Object.defineProperty(kk,"__esModule",{value:!0});kk.TonClient4=void 0;const Zl=sWe(qA),Ke=aWe(dB),ra=vr,az=Ik;class lWe{constructor(t){za.set(this,void 0),Va.set(this,void 0),Ha.set(this,void 0),OP(this,za,t.endpoint,"f"),OP(this,Va,t.timeout||5e3,"f"),OP(this,Ha,t.httpAdapter,"f")}async getLastBlock(){let t=await Zl.default.get(or(this,za,"f")+"/block/latest",{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!uWe.is(t.data))throw Error("Mailformed response");return t.data}async getBlock(t){let n=await Zl.default.get(or(this,za,"f")+"/block/"+t,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!sz.is(n.data))throw Error("Mailformed response");if(!n.data.exist)throw Error("Block is out of scope");return n.data.block}async getBlockByUtime(t){let n=await Zl.default.get(or(this,za,"f")+"/block/utime/"+t,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!sz.is(n.data))throw Error("Mailformed response");if(!n.data.exist)throw Error("Block is out of scope");return n.data.block}async getAccount(t,n){let r=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0}),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!cWe.is(r.data))throw Error("Mailformed response");return r.data}async getAccountLite(t,n){let r=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/lite",{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!dWe.is(r.data))throw Error("Mailformed response");return r.data}async isContractDeployed(t,n){return(await this.getAccountLite(t,n)).account.state.type==="active"}async isAccountChanged(t,n,r){let o=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/changed/"+r.toString(10),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!fWe.is(o.data))throw Error("Mailformed response");return o.data}async getTransaction(t,n,r){const o=n.toString({urlSafe:!0}),i=`/block/${t}/${o}/tx/${r.toString(10)}`,a=await Zl.default.get(new URL(i,or(this,za,"f")).href,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!yWe.is(a.data))throw Error("Mailformed response");const s=ra.Cell.fromBoc(Buffer.from(a.data.boc,"base64"))[0];return{tx:(0,ra.loadTransaction)(s.beginParse()),...a.data}}async getAccountTransactions(t,n,r){let o=await Zl.default.get(or(this,za,"f")+"/account/"+t.toString({urlSafe:!0})+"/tx/"+n.toString(10)+"/"+(0,az.toUrlSafe)(r.toString("base64")),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!mWe.is(o.data))throw Error("Mailformed response");let i=o.data,a=[],s=ra.Cell.fromBoc(Buffer.from(i.boc,"base64"));for(let l=0;l0&&(r="/"+[...n].sort().join(","));let o=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/config"+r,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!hWe.is(o.data))throw Error("Mailformed response");return o.data}async runMethod(t,n,r,o){let i=o&&o.length>0?"/"+(0,az.toUrlSafe)((0,ra.serializeTuple)(o).toBoc({idx:!1,crc32:!1}).toString("base64")):"",a=or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/run/"+r+i,s=await Zl.default.get(a,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!pWe.is(s.data))throw Error("Mailformed response");let l=s.data.resultRaw?(0,ra.parseTuple)(ra.Cell.fromBoc(Buffer.from(s.data.resultRaw,"base64"))[0]):[];return{exitCode:s.data.exitCode,result:l,resultRaw:s.data.resultRaw,block:s.data.block,shardBlock:s.data.shardBlock,reader:new ra.TupleReader(l)}}async sendMessage(t){let n=await Zl.default.post(or(this,za,"f")+"/send",{boc:t.toString("base64")},{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!gWe.is(n.data))throw Error("Mailformed response");return{status:n.data.status}}open(t){return(0,ra.openContract)(t,n=>Lx(this,null,n.address,n.init))}openAt(t,n){return(0,ra.openContract)(n,r=>Lx(this,t,r.address,r.init))}provider(t,n){return Lx(this,null,t,n||null)}providerAt(t,n,r){return Lx(this,t,n,r||null)}}kk.TonClient4=lWe;za=new WeakMap,Va=new WeakMap,Ha=new WeakMap;function Lx(e,t,n,r){return{async getState(){let o=t;o===null&&(o=(await e.getLastBlock()).last.seqno);let i=await e.getAccount(o,n),a=i.account.last?{lt:BigInt(i.account.last.lt),hash:Buffer.from(i.account.last.hash,"base64")}:null,s;if(i.account.state.type==="active")s={type:"active",code:i.account.state.code?Buffer.from(i.account.state.code,"base64"):null,data:i.account.state.data?Buffer.from(i.account.state.data,"base64"):null};else if(i.account.state.type==="uninit")s={type:"uninit"};else if(i.account.state.type==="frozen")s={type:"frozen",stateHash:Buffer.from(i.account.state.stateHash,"base64")};else throw Error("Unsupported state");return{balance:BigInt(i.account.balance.coins),last:a,state:s}},async get(o,i){let a=t;a===null&&(a=(await e.getLastBlock()).last.seqno);let s=await e.runMethod(a,n,o,i);if(s.exitCode!==0&&s.exitCode!==1)throw Error("Exit code: "+s.exitCode);return{stack:new ra.TupleReader(s.result)}},async external(o){let i=await e.getLastBlock(),a=null;r&&(await e.getAccountLite(i.last.seqno,n)).account.state.type!=="active"&&(a=r);const s=(0,ra.external)({to:n,init:a?{code:a.code,data:a.data}:null,body:o});let l=(0,ra.beginCell)().store((0,ra.storeMessage)(s)).endCell().toBoc();await e.sendMessage(l)},async internal(o,i){let a=await e.getLastBlock(),s=null;r&&(await e.getAccountLite(a.last.seqno,n)).account.state.type!=="active"&&(s=r);let l=!0;i.bounce!==null&&i.bounce!==void 0&&(l=i.bounce);let u;typeof i.value=="string"?u=(0,ra.toNano)(i.value):u=i.value;let c=null;typeof i.body=="string"?c=(0,ra.comment)(i.body):i.body&&(c=i.body),await o.send({to:n,value:u,bounce:l,sendMode:i.sendMode,init:s,body:c})}}}const uWe=Ke.type({last:Ke.type({seqno:Ke.number,shard:Ke.string,workchain:Ke.number,fileHash:Ke.string,rootHash:Ke.string}),init:Ke.type({fileHash:Ke.string,rootHash:Ke.string}),stateRootHash:Ke.string,now:Ke.number}),sz=Ke.union([Ke.type({exist:Ke.literal(!1)}),Ke.type({exist:Ke.literal(!0),block:Ke.type({shards:Ke.array(Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string,transactions:Ke.array(Ke.type({account:Ke.string,hash:Ke.string,lt:Ke.string}))}))})})]),_re=Ke.type({lastPaid:Ke.number,duePayment:Ke.union([Ke.null,Ke.string]),used:Ke.type({bits:Ke.number,cells:Ke.number,publicCells:Ke.number})}),cWe=Ke.type({account:Ke.type({state:Ke.union([Ke.type({type:Ke.literal("uninit")}),Ke.type({type:Ke.literal("active"),code:Ke.union([Ke.string,Ke.null]),data:Ke.union([Ke.string,Ke.null])}),Ke.type({type:Ke.literal("frozen"),stateHash:Ke.string})]),balance:Ke.type({coins:Ke.string}),last:Ke.union([Ke.null,Ke.type({lt:Ke.string,hash:Ke.string})]),storageStat:Ke.union([Ke.null,_re])}),block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),dWe=Ke.type({account:Ke.type({state:Ke.union([Ke.type({type:Ke.literal("uninit")}),Ke.type({type:Ke.literal("active"),codeHash:Ke.string,dataHash:Ke.string}),Ke.type({type:Ke.literal("frozen"),stateHash:Ke.string})]),balance:Ke.type({coins:Ke.string}),last:Ke.union([Ke.null,Ke.type({lt:Ke.string,hash:Ke.string})]),storageStat:Ke.union([Ke.null,_re])})}),fWe=Ke.type({changed:Ke.boolean,block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),pWe=Ke.type({exitCode:Ke.number,resultRaw:Ke.union([Ke.string,Ke.null]),block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string}),shardBlock:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),hWe=Ke.type({config:Ke.type({cell:Ke.string,address:Ke.string,globalBalance:Ke.type({coins:Ke.string})})}),gWe=Ke.type({status:Ke.number}),mWe=Ke.type({blocks:Ke.array(Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})),boc:Ke.string}),yWe=Ke.type({block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string}),boc:Ke.string,proof:Ke.string});var Pk={},ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.createWalletTransferV4=ji.createWalletTransferV3=ji.createWalletTransferV2=ji.createWalletTransferV1=void 0;const la=vr,Mk=Bg();function vWe(e){let t=(0,la.beginCell)().storeUint(e.seqno,32);e.message&&(t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(e.message))));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV1=vWe;function bWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.seqno,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV2=bWe;function wWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.walletId,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV3=wWe;function SWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.walletId,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32),t.storeUint(0,8);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV4=SWe;Object.defineProperty(Pk,"__esModule",{value:!0});Pk.WalletContractV1R1=void 0;const Bm=vr,xWe=ji;class j8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=Bm.Cell.fromBoc(Buffer.from("te6cckEBAQEARAAAhP8AIN2k8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVEH98Ik=","base64"))[0],o=(0,Bm.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,Bm.contractAddress)(t,{code:r,data:o})}static create(t){return new j8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){let n=await t.getState();return n.state.type==="active"?Bm.Cell.fromBoc(n.state.data)[0].beginParse().loadUint(32):0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=Bm.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,xWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,Bm.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Pk.WalletContractV1R1=j8;var Ok={};Object.defineProperty(Ok,"__esModule",{value:!0});Ok.WalletContractV1R2=void 0;const d1=vr,CWe=ji;class W8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=d1.Cell.fromBoc(Buffer.from("te6cckEBAQEAUwAAov8AIN0gggFMl7qXMO1E0NcLH+Ck8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVNDieG8=","base64"))[0],o=(0,d1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,d1.contractAddress)(t,{code:r,data:o})}static create(t){return new W8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=d1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,CWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,d1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Ok.WalletContractV1R2=W8;var Rk={};Object.defineProperty(Rk,"__esModule",{value:!0});Rk.WalletContractV1R3=void 0;const f1=vr,AWe=ji;class z8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=f1.Cell.fromBoc(Buffer.from("te6cckEBAQEAXwAAuv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVLW4bkI=","base64"))[0],o=(0,f1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,f1.contractAddress)(t,{code:r,data:o})}static create(t){return new z8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=f1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,AWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,f1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Rk.WalletContractV1R3=z8;var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0});Dk.WalletContractV2R1=void 0;const p1=vr,_We=ji;class V8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=p1.Cell.fromBoc(Buffer.from("te6cckEBAQEAVwAAqv8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VShNwu2","base64"))[0],o=(0,p1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,p1.contractAddress)(t,{code:r,data:o})}static create(t){return new V8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=p1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,_We.createWalletTransferV2)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,p1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Dk.WalletContractV2R1=V8;var Bk={};Object.defineProperty(Bk,"__esModule",{value:!0});Bk.WalletContractV2R2=void 0;const h1=vr,EWe=ji;class H8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=h1.Cell.fromBoc(Buffer.from("te6cckEBAQEAYwAAwv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VQETNeh","base64"))[0],o=(0,h1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,h1.contractAddress)(t,{code:r,data:o})}static create(t){return new H8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=h1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,EWe.createWalletTransferV2)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,h1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Bk.WalletContractV2R2=H8;var $k={};Object.defineProperty($k,"__esModule",{value:!0});$k.WalletContractV3R1=void 0;const g1=vr,TWe=ji;class q8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=g1.Cell.fromBoc(Buffer.from("te6cckEBAQEAYgAAwP8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVD++buA=","base64"))[0],i=(0,g1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:o,data:i},this.address=(0,g1.contractAddress)(t,{code:o,data:i})}static create(t){return new q8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=g1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,TWe.createWalletTransferV3)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,g1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}$k.WalletContractV3R1=q8;var Lk={};Object.defineProperty(Lk,"__esModule",{value:!0});Lk.WalletContractV3R2=void 0;const m1=vr,kWe=ji;class Q8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=m1.Cell.fromBoc(Buffer.from("te6cckEBAQEAcQAA3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVBC9ba0=","base64"))[0],i=(0,m1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:o,data:i},this.address=(0,m1.contractAddress)(t,{code:o,data:i})}static create(t){return new Q8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=m1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,kWe.createWalletTransferV3)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,m1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Lk.WalletContractV3R2=Q8;var Fk={};Object.defineProperty(Fk,"__esModule",{value:!0});Fk.WalletContractV4=void 0;const y1=vr,IWe=ji;class K8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=y1.Cell.fromBoc(Buffer.from("te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDjDQOkyMsfEssfy/8QERITAubQAdDTAyFxsJJfBOAi10nBIJJfBOAC0x8hghBwbHVnvSKCEGRzdHK9sJJfBeAD+kAwIPpEAcjKB8v/ydDtRNCBAUDXIfQEMFyBAQj0Cm+hMbOSXwfgBdM/yCWCEHBsdWe6kjgw4w0DghBkc3RyupJfBuMNBgcCASAICQB4AfoA9AQw+CdvIjBQCqEhvvLgUIIQcGx1Z4MesXCAGFAEywUmzxZY+gIZ9ADLaRfLH1Jgyz8gyYBA+wAGAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+ICASAKCwBZvSQrb2omhAgKBrkPoCGEcNQICEekk30pkQzmkD6f+YN4EoAbeBAUiYcVnzGEAgFYDA0AEbjJftRNDXCx+AA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYAIBIA4PABmtznaiaEAga5Drhf/AABmvHfaiaEAQa5DrhY/AAG7SB/oA1NQi+QAFyMoHFcv/ydB3dIAYyMsFywIizxZQBfoCFMtrEszMyXP7AMhAFIEBCPRR8qcCAHCBAQjXGPoA0z/IVCBHgQEI9FHyp4IQbm90ZXB0gBjIywXLAlAGzxZQBPoCFMtqEssfyz/Jc/sAAgBsgQEI1xj6ANM/MFIkgQEI9Fnyp4IQZHN0cnB0gBjIywXLAlAFzxZQA/oCE8tqyx8Syz/Jc/sAAAr0AMntVA==","base64"))[0],i=(0,y1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(this.publicKey).storeBit(0).endCell();this.init={code:o,data:i},this.address=(0,y1.contractAddress)(t,{code:o,data:i})}static create(t){return new K8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=y1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,IWe.createWalletTransferV4)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,y1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Fk.WalletContractV4=K8;var Nk={};Object.defineProperty(Nk,"__esModule",{value:!0});Nk.JettonMaster=void 0;const PWe=vr;class Y8{constructor(t){this.address=t}static create(t){return new Y8(t)}async getWalletAddress(t,n){return(await t.get("get_wallet_address",[{type:"slice",cell:(0,PWe.beginCell)().storeAddress(n).endCell()}])).stack.readAddress()}async getJettonData(t){let n=await t.get("get_jetton_data",[]),r=n.stack.readBigNumber(),o=n.stack.readBoolean(),i=n.stack.readAddress(),a=n.stack.readCell(),s=n.stack.readCell();return{totalSupply:r,mintable:o,adminAddress:i,content:a,walletCode:s}}}Nk.JettonMaster=Y8;var Uk={};Object.defineProperty(Uk,"__esModule",{value:!0});Uk.JettonWallet=void 0;class G8{constructor(t){this.address=t}static create(t){return new G8(t)}async getBalance(t){return(await t.getState()).state.type!=="active"?0n:(await t.get("get_wallet_data",[])).stack.readBigNumber()}}Uk.JettonWallet=G8;var QS={};Object.defineProperty(QS,"__esModule",{value:!0});QS.MultisigOrder=void 0;const lz=Bg(),Fx=vr;class KA{constructor(t){this.signatures={},this.payload=t}static fromCell(t){var a;let n=t.beginParse(),r=(a=n.loadMaybeRef())==null?void 0:a.beginParse();const o=n.asCell();let i=new KA(o);if(r){for(;r.remainingBits>0;){const s=r.loadBuffer(64),l=r.loadUint(8);i.signatures[l]=s,r.remainingRefs>0?r=r.loadRef().asSlice():r.skip(1)}r.endParse()}return i}static fromPayload(t){return new KA(t)}addSignature(t,n,r){const o=this.payload.hash();if(!(0,lz.signVerify)(o,n,r.owners.get(t).slice(0,-1)))throw Error("invalid signature");this.signatures[t]=n}sign(t,n){const r=this.payload.hash();return this.signatures[t]=(0,lz.sign)(r,n),r}unionSignatures(t){this.signatures=Object.assign({},this.signatures,t.signatures)}clearSignatures(){this.signatures={}}toCell(t){let n=(0,Fx.beginCell)().storeBit(0);for(const r in this.signatures){const o=this.signatures[r];n=(0,Fx.beginCell)().storeBit(1).storeRef((0,Fx.beginCell)().storeBuffer(o).storeUint(parseInt(r),8).storeBuilder(n).endCell())}return(0,Fx.beginCell)().storeUint(t,8).storeBuilder(n).storeBuilder(this.payload.asBuilder()).endCell()}}QS.MultisigOrder=KA;var jk={};Object.defineProperty(jk,"__esModule",{value:!0});jk.MultisigOrderBuilder=void 0;const v1=vr,MWe=QS;class OWe{constructor(t,n){this.messages=(0,v1.beginCell)(),this.queryId=0n,this.walletId=t,this.queryOffset=n||7200}addMessage(t,n){if(this.messages.refs>=4)throw Error("only 4 refs are allowed");this.updateQueryId(),this.messages.storeUint(n,8),this.messages.storeRef((0,v1.beginCell)().store((0,v1.storeMessageRelaxed)(t)).endCell())}clearMessages(){this.messages=(0,v1.beginCell)()}build(){return MWe.MultisigOrder.fromPayload((0,v1.beginCell)().storeUint(this.walletId,32).storeUint(this.queryId,64).storeBuilder(this.messages).endCell())}updateQueryId(){const t=BigInt(Math.floor(Date.now()/1e3+this.queryOffset));this.queryId=t<<32n}}jk.MultisigOrderBuilder=OWe;var Wk={};Object.defineProperty(Wk,"__esModule",{value:!0});Wk.MultisigWallet=void 0;const uz=Bg(),dl=vr,RWe=dl.Cell.fromBase64("te6ccgECKwEABBgAART/APSkE/S88sgLAQIBIAIDAgFIBAUE2vIgxwCOgzDbPOCDCNcYIPkBAdMH2zwiwAAToVNxePQOb6Hyn9s8VBq6+RDyoAb0BCD5AQHTH1EYuvKq0z9wUwHwCgHCCAGDCryx8mhTFYBA9A5voSCYDqQgwgryZw7f+COqH1NAufJhVCOjU04gIyEiAgLMBgcCASAMDQIBIAgJAgFmCgsAA9GEAiPymAvHoHN9CYbZ5S7Z4BPHohwhJQAtAKkItdJEqCTItdKlwLUAdAT8ArobBKAATwhbpEx4CBukTDgAdAg10rDAJrUAvALyFjPFszJ4HHXI8gBzxb0AMmACASAODwIBIBQVARW77ZbVA0cFUg2zyCoCAUgQEQIBIBITAXOxHXQgwjXGCD5AQHTB4IB1MTtQ9hTIHj0Dm+h8p/XC/9eMfkQ8qCuAfQEIW6TW3Ey4PkBWNs8AaQBgJwA9rtqA6ADoAPoCAXoCEfyAgPyA3XlP+AXkegAA54tkwAAXrhlXP8EA1WZ2oexAAgEgFhcCASAYGQFRtyVbZ4YmRmpGEAgegc30McJNhFpAADMaYeYuAFrgJhwLb+4cC3d0bhAjAYm1WZtnhqvgb+2xxsoicAgej430pBHEoFpAADHDhBACGuQkuuBk9kUWE5kAOeLKhACQCB6IYFImHFImHFImXEA2YlzNijAjAgEgGhsAF7UGtc4QQDVZnah7EAIBIBwdAgOZOB4fARGsGm2eL4G2CUAjABWt+UEAzJV2oewYQAENqTbPBVfBYCMAFa3f3CCAarM7UPYgAiDbPALyZfgAUENxQxPbPO1UIyoACtP/0wcwBKDbPC+uUyCw8mISsQKkJbNTHLmwJYEA4aojoCi8sPJpggGGoPgBBZcCERACPj4wjo0REB/bPEDXePRDEL0F4lQWW1Rz51YQU9zbPFRxClR6vCQlKCYAIO1E0NMf0wfTB9M/9AT0BNEAXgGOGjDSAAHyo9MH0wdQA9cBIPkBBfkBFbrypFAD4GwhIddKqgIi10m68qtwVCATAAwByMv/ywcE1ts87VT4D3AlblOJvrGYEG4QLVDHXwePGzBUJANQTds8UFWgRlAQSRA6SwlTuds8UFQWf+L4AAeDJaGOLCaAQPSWb6UglDBTA7neII4WODk5CNIAAZfTBzAW8AcFkTDifwgHBZJsMeKz5jAGKicoKQBgcI4pA9CDCNcY0wf0BDBTFnj0Dm+h8qXXC/9URUT5EPKmrlIgsVIDvRShI27mbCIyAH5SML6OIF8D+ACTItdKmALTB9QC+wAC6DJwyMoAQBSAQPRDAvAHjhdxyMsAFMsHEssHWM8BWM8WQBOAQPRDAeIBII6KEEUQNEMA2zztVJJfBuIqABzIyx/LB8sHyz/0APQAyQ==");class J8{constructor(t,n,r,o,i){this.provider=null,this.owners=dl.Dictionary.empty(),this.workchain=n,this.walletId=r,this.k=o;for(let a=0;a>>0,p-=l,p*=l,l=p>>>0,p-=l,l+=p*4294967296}return(l>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.alea=a})(st,e,!1)})(DWe);var pR={},BWe={get exports(){return pR},set exports(e){pR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.x=0,l.y=0,l.z=0,l.w=0,l.next=function(){var f=l.x^l.x<<11;return l.x=l.y,l.y=l.z,l.z=l.w,l.w^=l.w>>>19^f^f>>>8},s===(s|0)?l.x=s:u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xor128=a})(st,e,!1)})(BWe);var hR={},$We={get exports(){return hR},set exports(e){hR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.next=function(){var f=l.x^l.x>>>2;return l.x=l.y,l.y=l.z,l.z=l.w,l.w=l.v,(l.d=l.d+362437|0)+(l.v=l.v^l.v<<4^(f^f<<1))|0},l.x=0,l.y=0,l.z=0,l.w=0,l.v=0,s===(s|0)?l.x=s:u+=s;for(var c=0;c>>4),l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l.v=s.v,l.d=s.d,l}function a(s,l){var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xorwow=a})(st,e,!1)})($We);var gR={},LWe={get exports(){return gR},set exports(e){gR=e}};(function(e){(function(t,n,r){function o(s){var l=this;l.next=function(){var c=l.x,f=l.i,p,g;return p=c[f],p^=p>>>7,g=p^p<<24,p=c[f+1&7],g^=p^p>>>10,p=c[f+3&7],g^=p^p>>>3,p=c[f+4&7],g^=p^p<<7,p=c[f+7&7],p=p^p<<13,g^=p^p<<9,c[f]=g,l.i=f+1&7,g};function u(c,f){var p,g=[];if(f===(f|0))g[0]=f;else for(f=""+f,p=0;p0;--p)c.next()}u(l,s)}function i(s,l){return l.x=s.x.slice(),l.i=s.i,l}function a(s,l){s==null&&(s=+new Date);var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(c.x&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xorshift7=a})(st,e,!1)})(LWe);var mR={},FWe={get exports(){return mR},set exports(e){mR=e}};(function(e){(function(t,n,r){function o(s){var l=this;l.next=function(){var c=l.w,f=l.X,p=l.i,g,m;return l.w=c=c+1640531527|0,m=f[p+34&127],g=f[p=p+1&127],m^=m<<13,g^=g<<17,m^=m>>>15,g^=g>>>12,m=f[p]=m^g,l.i=p,m+(c^c>>>16)|0};function u(c,f){var p,g,m,y,v,x=[],w=128;for(f===(f|0)?(g=f,f=null):(f=f+"\0",g=0,w=Math.max(w,f.length)),m=0,y=-32;y>>15,g^=g<<4,g^=g>>>13,y>=0&&(v=v+1640531527|0,p=x[y&127]^=g+v,m=p==0?m+1:0);for(m>=128&&(x[(f&&f.length||0)&127]=-1),m=127,y=4*128;y>0;--y)g=x[m+34&127],p=x[m=m+1&127],g^=g<<13,p^=p<<17,g^=g>>>15,p^=p>>>12,x[m]=g^p;c.w=v,c.X=x,c.i=m}u(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function a(s,l){s==null&&(s=+new Date);var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(c.X&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xor4096=a})(st,e,!1)})(FWe);var yR={},NWe={get exports(){return yR},set exports(e){yR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.next=function(){var f=l.b,p=l.c,g=l.d,m=l.a;return f=f<<25^f>>>7^p,p=p-g|0,g=g<<24^g>>>8^m,m=m-f|0,l.b=f=f<<20^f>>>12^p,l.c=p=p-g|0,l.d=g<<16^p>>>16^m,l.a=m-f|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.tychei=a})(st,e,!1)})(NWe);var vR={},UWe={get exports(){return vR},set exports(e){vR=e}};(function(e){(function(t,n,r){var o=256,i=6,a=52,s="random",l=r.pow(o,i),u=r.pow(2,a),c=u*2,f=o-1,p;function g(_,R,U){var D=[];R=R==!0?{entropy:!0}:R||{};var b=x(v(R.entropy?[_,I(n)]:_??w(),3),D),T=new m(D),C=function(){for(var O=T.g(i),$=l,j=0;O=c;)O/=2,$/=2,j>>>=1;return(O+j)/$};return C.int32=function(){return T.g(4)|0},C.quick=function(){return T.g(4)/4294967296},C.double=C,x(I(T.S),n),(R.pass||U||function(O,$,j,L){return L&&(L.S&&y(L,T),O.state=function(){return y(T,{})}),j?(r[s]=O,$):O})(C,b,"global"in R?R.global:this==r,R.state)}function m(_){var R,U=_.length,D=this,b=0,T=D.i=D.j=0,C=D.S=[];for(U||(_=[U++]);bf?Y.c=Y.e=null:b.e=10;L/=10,j++);j>f?Y.c=Y.e=null:(Y.e=j,Y.c=[b]);return}q=String(b)}else{if(!KWe.test(q=String(b)))return r(Y,q,B);Y.s=q.charCodeAt(0)==45?(q=q.slice(1),-1):1}(j=q.indexOf("."))>-1&&(q=q.replace(".","")),(L=q.search(/e/i))>0?(j<0&&(j=L),j+=+q.slice(L+1),q=q.substring(0,L)):j<0&&(j=q.length)}else{if(Co(T,2,v.length,"Base"),T==10&&x)return Y=new w(b),U(Y,a+Y.e+1,s);if(q=String(b),B=typeof b=="number"){if(b*0!=0)return r(Y,q,B,T);if(Y.s=1/b<0?(q=q.slice(1),-1):1,w.DEBUG&&q.replace(/^0\.0*|\./,"").length>15)throw Error(cz+b)}else Y.s=q.charCodeAt(0)===45?(q=q.slice(1),-1):1;for(C=v.slice(0,T),j=L=0,H=q.length;Lj){j=H;continue}}else if(!$&&(q==q.toUpperCase()&&(q=q.toLowerCase())||q==q.toLowerCase()&&(q=q.toUpperCase()))){$=!0,L=-1,j=0;continue}return r(Y,String(b),B,T)}B=!1,q=n(q,T,10,Y.s),(j=q.indexOf("."))>-1?q=q.replace(".",""):j=q.length}for(L=0;q.charCodeAt(L)===48;L++);for(H=q.length;q.charCodeAt(--H)===48;);if(q=q.slice(L,++H)){if(H-=L,B&&w.DEBUG&&H>15&&(b>DP||b!==Wu(b)))throw Error(cz+Y.s*b);if((j=j-L-1)>f)Y.c=Y.e=null;else if(j=-Ci&&$<=Ci&&$===Wu($)){if(O[0]===0){if($===0&&O.length===1)return!0;break e}if(T=($+1)%En,T<1&&(T+=En),String(O[0]).length==T){for(T=0;T=eu||C!==Wu(C))break e;if(C!==0)return!0}}}else if(O===null&&$===null&&(j===null||j===1||j===-1))return!0;throw Error(Qa+"Invalid BigNumber: "+b)},w.maximum=w.max=function(){return _(arguments,o.lt)},w.minimum=w.min=function(){return _(arguments,o.gt)},w.random=function(){var b=9007199254740992,T=Math.random()*b&2097151?function(){return Wu(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(C){var O,$,j,L,B,H=0,q=[],Y=new w(i);if(C==null?C=a:Co(C,0,Ci),L=RP(C/En),p)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(L*=2));H>>11),B>=9e15?($=crypto.getRandomValues(new Uint32Array(2)),O[H]=$[0],O[H+1]=$[1]):(q.push(B%1e14),H+=2);H=L/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(L*=7);H=9e15?crypto.randomBytes(7).copy(O,H):(q.push(B%1e14),H+=7);H=L/7}else throw p=!1,Error(Qa+"crypto unavailable");if(!p)for(;H=10;B/=10,H++);H$-1&&(B[L+1]==null&&(B[L+1]=0),B[L+1]+=B[L]/$|0,B[L]%=$)}return B.reverse()}return function(C,O,$,j,L){var B,H,q,Y,W,ie,le,fe,Ee=C.indexOf("."),Ae=a,Ie=s;for(Ee>=0&&(Y=m,m=0,C=C.replace(".",""),fe=new w(O),ie=fe.pow(C.length-Ee),m=Y,fe.c=T(Gc(ll(ie.c),ie.e,"0"),10,$,b),fe.e=fe.c.length),le=T(C,O,$,L?(B=v,b):(B=b,v)),q=Y=le.length;le[--Y]==0;le.pop());if(!le[0])return B.charAt(0);if(Ee<0?--q:(ie.c=le,ie.e=q,ie.s=j,ie=t(ie,fe,Ae,Ie,$),le=ie.c,W=ie.r,q=ie.e),H=q+Ae+1,Ee=le[H],Y=$/2,W=W||H<0||le[H+1]!=null,W=Ie<4?(Ee!=null||W)&&(Ie==0||Ie==(ie.s<0?3:2)):Ee>Y||Ee==Y&&(Ie==4||W||Ie==6&&le[H-1]&1||Ie==(ie.s<0?8:7)),H<1||!le[0])C=W?Gc(B.charAt(1),-Ae,B.charAt(0)):B.charAt(0);else{if(le.length=H,W)for(--$;++le[--H]>$;)le[H]=0,H||(++q,le=[1].concat(le));for(Y=le.length;!le[--Y];);for(Ee=0,C="";Ee<=Y;C+=B.charAt(le[Ee++]));C=Gc(C,q,B.charAt(0))}return C}}(),t=function(){function b(O,$,j){var L,B,H,q,Y=0,W=O.length,ie=$%vf,le=$/vf|0;for(O=O.slice();W--;)H=O[W]%vf,q=O[W]/vf|0,L=le*H+q*ie,B=ie*H+L%vf*vf+Y,Y=(B/j|0)+(L/vf|0)+le*q,O[W]=B%j;return Y&&(O=[Y].concat(O)),O}function T(O,$,j,L){var B,H;if(j!=L)H=j>L?1:-1;else for(B=H=0;B$[B]?1:-1;break}return H}function C(O,$,j,L){for(var B=0;j--;)O[j]-=B,B=O[j]<$[j]?1:0,O[j]=B*L+O[j]-$[j];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,$,j,L,B){var H,q,Y,W,ie,le,fe,Ee,Ae,Ie,De,Ue,ce,de,ve,he,pe,ge=O.s==$.s?1:-1,Ce=O.c,_e=$.c;if(!Ce||!Ce[0]||!_e||!_e[0])return new w(!O.s||!$.s||(Ce?_e&&Ce[0]==_e[0]:!_e)?NaN:Ce&&Ce[0]==0||!_e?ge*0:ge/0);for(Ee=new w(ge),Ae=Ee.c=[],q=O.e-$.e,ge=j+q+1,B||(B=eu,q=fl(O.e/En)-fl($.e/En),ge=ge/En|0),Y=0;_e[Y]==(Ce[Y]||0);Y++);if(_e[Y]>(Ce[Y]||0)&&q--,ge<0)Ae.push(1),W=!0;else{for(de=Ce.length,he=_e.length,Y=0,ge+=2,ie=Wu(B/(_e[0]+1)),ie>1&&(_e=b(_e,ie,B),Ce=b(Ce,ie,B),he=_e.length,de=Ce.length),ce=he,Ie=Ce.slice(0,he),De=Ie.length;De=B/2&&ve++;do{if(ie=0,H=T(_e,Ie,he,De),H<0){if(Ue=Ie[0],he!=De&&(Ue=Ue*B+(Ie[1]||0)),ie=Wu(Ue/ve),ie>1)for(ie>=B&&(ie=B-1),le=b(_e,ie,B),fe=le.length,De=Ie.length;T(le,Ie,fe,De)==1;)ie--,C(le,he=10;ge/=10,Y++);U(Ee,j+(Ee.e=Y+q*En-1)+1,L,W)}else Ee.e=q,Ee.r=+W;return Ee}}();function I(b,T,C,O){var $,j,L,B,H;if(C==null?C=s:Co(C,0,8),!b.c)return b.toString();if($=b.c[0],L=b.e,T==null)H=ll(b.c),H=O==1||O==2&&(L<=l||L>=u)?Ux(H,L):Gc(H,L,"0");else if(b=U(new w(b),T,C),j=b.e,H=ll(b.c),B=H.length,O==1||O==2&&(T<=j||j<=l)){for(;BB){if(--T>0)for(H+=".";T--;H+="0");}else if(T+=j-B,T>0)for(j+1==B&&(H+=".");T--;H+="0");return b.s<0&&$?"-"+H:H}function _(b,T){for(var C,O=1,$=new w(b[0]);O=10;$/=10,O++);return(C=O+C*En-1)>f?b.c=b.e=null:C=10;B/=10,$++);if(j=T-$,j<0)j+=En,L=T,H=W[q=0],Y=H/ie[$-L-1]%10|0;else if(q=RP((j+1)/En),q>=W.length)if(O){for(;W.length<=q;W.push(0));H=Y=0,$=1,j%=En,L=j-En+1}else break e;else{for(H=B=W[q],$=1;B>=10;B/=10,$++);j%=En,L=j-En+$,Y=L<0?0:H/ie[$-L-1]%10|0}if(O=O||T<0||W[q+1]!=null||(L<0?H:H%ie[$-L-1]),O=C<4?(Y||O)&&(C==0||C==(b.s<0?3:2)):Y>5||Y==5&&(C==4||O||C==6&&(j>0?L>0?H/ie[$-L]:0:W[q-1])%10&1||C==(b.s<0?8:7)),T<1||!W[0])return W.length=0,O?(T-=b.e+1,W[0]=ie[(En-T%En)%En],b.e=-T||0):W[0]=b.e=0,b;if(j==0?(W.length=q,B=1,q--):(W.length=q+1,B=ie[En-j],W[q]=L>0?Wu(H/ie[$-L]%ie[L])*B:0),O)for(;;)if(q==0){for(j=1,L=W[0];L>=10;L/=10,j++);for(L=W[0]+=B,B=1;L>=10;L/=10,B++);j!=B&&(b.e++,W[0]==eu&&(W[0]=1));break}else{if(W[q]+=B,W[q]!=eu)break;W[q--]=0,B=1}for(j=W.length;W[--j]===0;W.pop());}b.e>f?b.c=b.e=null:b.e=u?Ux(T,C):Gc(T,C,"0"),b.s<0?"-"+T:T)}return o.absoluteValue=o.abs=function(){var b=new w(this);return b.s<0&&(b.s=1),b},o.comparedTo=function(b,T){return $m(this,new w(b,T))},o.decimalPlaces=o.dp=function(b,T){var C,O,$,j=this;if(b!=null)return Co(b,0,Ci),T==null?T=s:Co(T,0,8),U(new w(j),b+j.e+1,T);if(!(C=j.c))return null;if(O=(($=C.length-1)-fl(this.e/En))*En,$=C[$])for(;$%10==0;$/=10,O--);return O<0&&(O=0),O},o.dividedBy=o.div=function(b,T){return t(this,new w(b,T),a,s)},o.dividedToIntegerBy=o.idiv=function(b,T){return t(this,new w(b,T),0,1)},o.exponentiatedBy=o.pow=function(b,T){var C,O,$,j,L,B,H,q,Y,W=this;if(b=new w(b),b.c&&!b.isInteger())throw Error(Qa+"Exponent not an integer: "+D(b));if(T!=null&&(T=new w(T)),B=b.e>14,!W.c||!W.c[0]||W.c[0]==1&&!W.e&&W.c.length==1||!b.c||!b.c[0])return Y=new w(Math.pow(+D(W),B?b.s*(2-Nx(b)):+D(b))),T?Y.mod(T):Y;if(H=b.s<0,T){if(T.c?!T.c[0]:!T.s)return new w(NaN);O=!H&&W.isInteger()&&T.isInteger(),O&&(W=W.mod(T))}else{if(b.e>9&&(W.e>0||W.e<-1||(W.e==0?W.c[0]>1||B&&W.c[1]>=24e7:W.c[0]<8e13||B&&W.c[0]<=9999975e7)))return j=W.s<0&&Nx(b)?-0:0,W.e>-1&&(j=1/j),new w(H?1/j:j);m&&(j=RP(m/En+2))}for(B?(C=new w(.5),H&&(b.s=1),q=Nx(b)):($=Math.abs(+D(b)),q=$%2),Y=new w(i);;){if(q){if(Y=Y.times(W),!Y.c)break;j?Y.c.length>j&&(Y.c.length=j):O&&(Y=Y.mod(T))}if($){if($=Wu($/2),$===0)break;q=$%2}else if(b=b.times(C),U(b,b.e+1,1),b.e>14)q=Nx(b);else{if($=+D(b),$===0)break;q=$%2}W=W.times(W),j?W.c&&W.c.length>j&&(W.c.length=j):O&&(W=W.mod(T))}return O?Y:(H&&(Y=i.div(Y)),T?Y.mod(T):j?U(Y,m,s,L):Y)},o.integerValue=function(b){var T=new w(this);return b==null?b=s:Co(b,0,8),U(T,T.e+1,b)},o.isEqualTo=o.eq=function(b,T){return $m(this,new w(b,T))===0},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(b,T){return $m(this,new w(b,T))>0},o.isGreaterThanOrEqualTo=o.gte=function(b,T){return(T=$m(this,new w(b,T)))===1||T===0},o.isInteger=function(){return!!this.c&&fl(this.e/En)>this.c.length-2},o.isLessThan=o.lt=function(b,T){return $m(this,new w(b,T))<0},o.isLessThanOrEqualTo=o.lte=function(b,T){return(T=$m(this,new w(b,T)))===-1||T===0},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&this.c[0]==0},o.minus=function(b,T){var C,O,$,j,L=this,B=L.s;if(b=new w(b,T),T=b.s,!B||!T)return new w(NaN);if(B!=T)return b.s=-T,L.plus(b);var H=L.e/En,q=b.e/En,Y=L.c,W=b.c;if(!H||!q){if(!Y||!W)return Y?(b.s=-T,b):new w(W?L:NaN);if(!Y[0]||!W[0])return W[0]?(b.s=-T,b):new w(Y[0]?L:s==3?-0:0)}if(H=fl(H),q=fl(q),Y=Y.slice(),B=H-q){for((j=B<0)?(B=-B,$=Y):(q=H,$=W),$.reverse(),T=B;T--;$.push(0));$.reverse()}else for(O=(j=(B=Y.length)<(T=W.length))?B:T,B=T=0;T0)for(;T--;Y[C++]=0);for(T=eu-1;O>B;){if(Y[--O]=0;){for(C=0,ie=Ue[$]%Ae,le=Ue[$]/Ae|0,L=H,j=$+L;j>$;)q=De[--L]%Ae,Y=De[L]/Ae|0,B=le*q+Y*ie,q=ie*q+B%Ae*Ae+fe[j]+C,C=(q/Ee|0)+(B/Ae|0)+le*Y,fe[j--]=q%Ee;fe[j]=C}return C?++O:fe.splice(0,1),R(b,fe,O)},o.negated=function(){var b=new w(this);return b.s=-b.s||null,b},o.plus=function(b,T){var C,O=this,$=O.s;if(b=new w(b,T),T=b.s,!$||!T)return new w(NaN);if($!=T)return b.s=-T,O.minus(b);var j=O.e/En,L=b.e/En,B=O.c,H=b.c;if(!j||!L){if(!B||!H)return new w($/0);if(!B[0]||!H[0])return H[0]?b:new w(B[0]?O:$*0)}if(j=fl(j),L=fl(L),B=B.slice(),$=j-L){for($>0?(L=j,C=H):($=-$,C=B),C.reverse();$--;C.push(0));C.reverse()}for($=B.length,T=H.length,$-T<0&&(C=H,H=B,B=C,T=$),$=0;T;)$=(B[--T]=B[T]+H[T]+$)/eu|0,B[T]=eu===B[T]?0:B[T]%eu;return $&&(B=[$].concat(B),++L),R(b,B,L)},o.precision=o.sd=function(b,T){var C,O,$,j=this;if(b!=null&&b!==!!b)return Co(b,1,Ci),T==null?T=s:Co(T,0,8),U(new w(j),b,T);if(!(C=j.c))return null;if($=C.length-1,O=$*En+1,$=C[$]){for(;$%10==0;$/=10,O--);for($=C[0];$>=10;$/=10,O++);}return b&&j.e+1>O&&(O=j.e+1),O},o.shiftedBy=function(b){return Co(b,-DP,DP),this.times("1e"+b)},o.squareRoot=o.sqrt=function(){var b,T,C,O,$,j=this,L=j.c,B=j.s,H=j.e,q=a+4,Y=new w("0.5");if(B!==1||!L||!L[0])return new w(!B||B<0&&(!L||L[0])?NaN:L?j:1/0);if(B=Math.sqrt(+D(j)),B==0||B==1/0?(T=ll(L),(T.length+H)%2==0&&(T+="0"),B=Math.sqrt(+T),H=fl((H+1)/2)-(H<0||H%2),B==1/0?T="5e"+H:(T=B.toExponential(),T=T.slice(0,T.indexOf("e")+1)+H),C=new w(T)):C=new w(B+""),C.c[0]){for(H=C.e,B=H+q,B<3&&(B=0);;)if($=C,C=Y.times($.plus(t(j,$,q,1))),ll($.c).slice(0,B)===(T=ll(C.c)).slice(0,B))if(C.e0&&fe>0){for(j=fe%B||B,Y=le.substr(0,j);j0&&(Y+=q+le.slice(j)),ie&&(Y="-"+Y)}O=W?Y+(C.decimalSeparator||"")+((H=+C.fractionGroupSize)?W.replace(new RegExp("\\d{"+H+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):W):Y}return(C.prefix||"")+O+(C.suffix||"")},o.toFraction=function(b){var T,C,O,$,j,L,B,H,q,Y,W,ie,le=this,fe=le.c;if(b!=null&&(B=new w(b),!B.isInteger()&&(B.c||B.s!==1)||B.lt(i)))throw Error(Qa+"Argument "+(B.isInteger()?"out of range: ":"not an integer: ")+D(B));if(!fe)return new w(le);for(T=new w(i),q=C=new w(i),O=H=new w(i),ie=ll(fe),j=T.e=ie.length-le.e-1,T.c[0]=BP[(L=j%En)<0?En+L:L],b=!b||B.comparedTo(T)>0?j>0?T:q:B,L=f,f=1/0,B=new w(ie),H.c[0]=0;Y=t(B,T,0,1),$=C.plus(Y.times(O)),$.comparedTo(b)!=1;)C=O,O=$,q=H.plus(Y.times($=q)),H=$,T=B.minus(Y.times($=T)),B=$;return $=t(b.minus(C),O,0,1),H=H.plus($.times(q)),C=C.plus($.times(O)),H.s=q.s=le.s,j=j*2,W=t(q,O,j,s).minus(le).abs().comparedTo(t(H,C,j,s).minus(le).abs())<1?[q,O]:[H,C],f=L,W},o.toNumber=function(){return+D(this)},o.toPrecision=function(b,T){return b!=null&&Co(b,1,Ci),I(this,b,T,2)},o.toString=function(b){var T,C=this,O=C.s,$=C.e;return $===null?O?(T="Infinity",O<0&&(T="-"+T)):T="NaN":(b==null?T=$<=l||$>=u?Ux(ll(C.c),$):Gc(ll(C.c),$,"0"):b===10&&x?(C=U(new w(C),a+$+1,s),T=Gc(ll(C.c),C.e,"0")):(Co(b,2,v.length,"Base"),T=n(Gc(ll(C.c),$,"0"),10,b,O,!0)),O<0&&C.c[0]&&(T="-"+T)),T},o.valueOf=o.toJSON=function(){return D(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,e!=null&&w.set(e),w}function fl(e){var t=e|0;return e>0||e===t?t:t-1}function ll(e){for(var t,n,r=1,o=e.length,i=e[0]+"";ru^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;ai[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function Co(e,t,n,r){if(en||e!==Wu(e))throw Error(Qa+(r||"Argument")+(typeof e=="number"?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function Nx(e){var t=e.c.length-1;return fl(e.e/En)==t&&e.c[t]%2!=0}function Ux(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Gc(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(r=e.length,++t>r){for(o=n,t-=r;--t;o+=n);e+=o}else t{console.log(`💤 ${e/1e3}s ...`),setTimeout(t,e)})}dn.sleep=Z8;function e$(e=0,t=2e3){console.log(`random sleep minSleepTime: ${e}, maxSleepTime: ${t}`);let n=e+Math.random()*(t-e);return new Promise(r=>{console.log(`💤 ${n/1e3}s ...`),setTimeout(r,n)})}dn.randomSleep=e$;async function ZWe(e,t,n=0){const r=e.open(Df.WalletContractV3R2.create({publicKey:t,workchain:n}));if(!await e.isContractDeployed(r.address))throw"wallet is not deployed";const o=await r.getBalance();if(parseFloat((0,Df.fromNano)(o))<.5)throw`Insufficient Deployer [${r.address.toString()}] funds ${(0,Df.fromNano)(o)}`;return console.log(`Init wallet ${r.address.toString()} | balance: ${(0,Df.fromNano)(await r.getBalance())} | seqno: ${await r.getSeqno()}`),r}dn.initWallet=ZWe;async function eze(e=""){const t="./build/deploy.config.json",n="org.ton.wallets.v3.r2";let r;if($P.default.existsSync(t)){console.log(` -* Config file '${t}' found and will be used for deployment!`);const o=$P.default.readFileSync(t,"utf-8"),i=JSON.parse(o);i.deployerMnemonic||(console.log(` - ERROR: '${t}' does not have the key 'deployerMnemonic'`),process.exit(1)),r=i.deployerMnemonic}else{console.log(` -* Config file '${t}' not found, creating a new wallet for deploy..`),r=(await(0,dz.mnemonicNew)(24)).join(" ");const o={created:new Date().toISOString(),deployerWalletType:n,deployerMnemonic:r};$P.default.writeFileSync(t,JSON.stringify(o,null,2)),console.log(` - Created new wallet in '${t}' - keep this file secret!`)}return(0,dz.mnemonicToWalletKey)(r.split(" "),e)}dn.initDeployKey=eze;function tze(e){const t={}.FUNC_PATH||"/usr/local/bin/func";try{(0,fz.execSync)(`${t} -o build/tmp.fif -SPA ${e.join(" ")}`)}catch(r){r.message.indexOf("error: `#include` is not a type identifier")>-1?(console.log(` +`+String(r)));cR(t);for(var o=0;o0&&Object.prototype.hasOwnProperty.call(e,e.length-1))}var k9e=b9e,qA={},I9e={get exports(){return qA},set exports(e){qA=e}},QA={},P9e={get exports(){return QA},set exports(e){QA=e}},dre=function(t,n){return function(){for(var o=new Array(arguments.length),i=0;i"u"}function O9e(e){return e!==null&&!dR(e)&&e.constructor!==null&&!dR(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function fre(e){return Pp.call(e)==="[object ArrayBuffer]"}function R9e(e){return Pp.call(e)==="[object FormData]"}function D9e(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fre(e.buffer),t}function B9e(e){return typeof e=="string"}function $9e(e){return typeof e=="number"}function pre(e){return e!==null&&typeof e=="object"}function IC(e){if(Pp.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function L9e(e){return Pp.call(e)==="[object Date]"}function F9e(e){return Pp.call(e)==="[object File]"}function N9e(e){return Pp.call(e)==="[object Blob]"}function hre(e){return Pp.call(e)==="[object Function]"}function U9e(e){return pre(e)&&hre(e.pipe)}function j9e(e){return Pp.call(e)==="[object URLSearchParams]"}function W9e(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function z9e(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function N8(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),F8(e))for(var n=0,r=e.length;n"u"||(Rm.isArray(l)?u=u+"[]":l=[l],Rm.forEach(l,function(f){Rm.isDate(f)?f=f.toISOString():Rm.isObject(f)&&(f=JSON.stringify(f)),i.push(PW(u)+"="+PW(f))}))}),o=i.join("&")}if(o){var a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t},q9e=gs;function Ck(){this.handlers=[]}Ck.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};Ck.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Ck.prototype.forEach=function(t){q9e.forEach(this.handlers,function(r){r!==null&&t(r)})};var Q9e=Ck,K9e=gs,Y9e=function(t,n){K9e.forEach(t,function(o,i){i!==n&&i.toUpperCase()===n.toUpperCase()&&(t[n]=o,delete t[i])})},mre=function(t,n,r,o,i){return t.config=n,r&&(t.code=r),t.request=o,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},gP,MW;function yre(){if(MW)return gP;MW=1;var e=mre;return gP=function(n,r,o,i,a){var s=new Error(n);return e(s,r,o,i,a)},gP}var mP,OW;function G9e(){if(OW)return mP;OW=1;var e=yre();return mP=function(n,r,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?n(o):r(e("Request failed with status code "+o.status,o.config,null,o.request,o))},mP}var yP,RW;function J9e(){if(RW)return yP;RW=1;var e=gs;return yP=e.isStandardBrowserEnv()?function(){return{write:function(r,o,i,a,s,l){var u=[];u.push(r+"="+encodeURIComponent(o)),e.isNumber(i)&&u.push("expires="+new Date(i).toGMTString()),e.isString(a)&&u.push("path="+a),e.isString(s)&&u.push("domain="+s),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var o=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),yP}var vP,DW;function X9e(){return DW||(DW=1,vP=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),vP}var bP,BW;function Z9e(){return BW||(BW=1,bP=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t}),bP}var wP,$W;function eje(){if($W)return wP;$W=1;var e=X9e(),t=Z9e();return wP=function(r,o){return r&&!e(o)?t(r,o):o},wP}var SP,LW;function tje(){if(LW)return SP;LW=1;var e=gs,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return SP=function(r){var o={},i,a,s;return r&&e.forEach(r.split(` +`),function(u){if(s=u.indexOf(":"),i=e.trim(u.substr(0,s)).toLowerCase(),a=e.trim(u.substr(s+1)),i){if(o[i]&&t.indexOf(i)>=0)return;i==="set-cookie"?o[i]=(o[i]?o[i]:[]).concat([a]):o[i]=o[i]?o[i]+", "+a:a}}),o},SP}var xP,FW;function nje(){if(FW)return xP;FW=1;var e=gs;return xP=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),o;function i(a){var s=a;return n&&(r.setAttribute("href",s),s=r.href),r.setAttribute("href",s),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return o=i(window.location.href),function(s){var l=e.isString(s)?i(s):s;return l.protocol===o.protocol&&l.host===o.host}}():function(){return function(){return!0}}(),xP}var CP,NW;function Ak(){if(NW)return CP;NW=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,CP=e,CP}var AP,UW;function jW(){if(UW)return AP;UW=1;var e=gs,t=G9e(),n=J9e(),r=gre,o=eje(),i=tje(),a=nje(),s=yre(),l=_k(),u=Ak();return AP=function(f){return new Promise(function(g,m){var y=f.data,v=f.headers,x=f.responseType,w;function I(){f.cancelToken&&f.cancelToken.unsubscribe(w),f.signal&&f.signal.removeEventListener("abort",w)}e.isFormData(y)&&delete v["Content-Type"];var _=new XMLHttpRequest;if(f.auth){var R=f.auth.username||"",U=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";v.Authorization="Basic "+btoa(R+":"+U)}var D=o(f.baseURL,f.url);_.open(f.method.toUpperCase(),r(D,f.params,f.paramsSerializer),!0),_.timeout=f.timeout;function b(){if(_){var C="getAllResponseHeaders"in _?i(_.getAllResponseHeaders()):null,O=!x||x==="text"||x==="json"?_.responseText:_.response,$={data:O,status:_.status,statusText:_.statusText,headers:C,config:f,request:_};t(function(L){g(L),I()},function(L){m(L),I()},$),_=null}}if("onloadend"in _?_.onloadend=b:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(b)},_.onabort=function(){_&&(m(s("Request aborted",f,"ECONNABORTED",_)),_=null)},_.onerror=function(){m(s("Network Error",f,null,_)),_=null},_.ontimeout=function(){var O=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",$=f.transitional||l.transitional;f.timeoutErrorMessage&&(O=f.timeoutErrorMessage),m(s(O,f,$.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",_)),_=null},e.isStandardBrowserEnv()){var T=(f.withCredentials||a(D))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;T&&(v[f.xsrfHeaderName]=T)}"setRequestHeader"in _&&e.forEach(v,function(O,$){typeof y>"u"&&$.toLowerCase()==="content-type"?delete v[$]:_.setRequestHeader($,O)}),e.isUndefined(f.withCredentials)||(_.withCredentials=!!f.withCredentials),x&&x!=="json"&&(_.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&_.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(w=function(C){_&&(m(!C||C&&C.type?new u("canceled"):C),_.abort(),_=null)},f.cancelToken&&f.cancelToken.subscribe(w),f.signal&&(f.signal.aborted?w():f.signal.addEventListener("abort",w))),y||(y=null),_.send(y)})},AP}var _P,WW;function _k(){if(WW)return _P;WW=1;var e=gs,t=Y9e,n=mre,r={"Content-Type":"application/x-www-form-urlencoded"};function o(l,u){!e.isUndefined(l)&&e.isUndefined(l["Content-Type"])&&(l["Content-Type"]=u)}function i(){var l;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(l=jW()),l}function a(l,u,c){if(e.isString(l))try{return(u||JSON.parse)(l),e.trim(l)}catch(f){if(f.name!=="SyntaxError")throw f}return(c||JSON.stringify)(l)}var s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:i(),transformRequest:[function(u,c){return t(c,"Accept"),t(c,"Content-Type"),e.isFormData(u)||e.isArrayBuffer(u)||e.isBuffer(u)||e.isStream(u)||e.isFile(u)||e.isBlob(u)?u:e.isArrayBufferView(u)?u.buffer:e.isURLSearchParams(u)?(o(c,"application/x-www-form-urlencoded;charset=utf-8"),u.toString()):e.isObject(u)||c&&c["Content-Type"]==="application/json"?(o(c,"application/json"),a(u)):u}],transformResponse:[function(u){var c=this.transitional||s.transitional,f=c&&c.silentJSONParsing,p=c&&c.forcedJSONParsing,g=!f&&this.responseType==="json";if(g||p&&e.isString(u)&&u.length)try{return JSON.parse(u)}catch(m){if(g)throw m.name==="SyntaxError"?n(m,this,"E_JSON_PARSE"):m}return u}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(u){return u>=200&&u<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return e.forEach(["delete","get","head"],function(u){s.headers[u]={}}),e.forEach(["post","put","patch"],function(u){s.headers[u]=e.merge(r)}),_P=s,_P}var rje=gs,oje=_k(),ije=function(t,n,r){var o=this||oje;return rje.forEach(r,function(a){t=a.call(o,t,n)}),t},EP,zW;function vre(){return zW||(zW=1,EP=function(t){return!!(t&&t.__CANCEL__)}),EP}var VW=gs,TP=ije,aje=vre(),sje=_k(),lje=Ak();function kP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new lje("canceled")}var uje=function(t){kP(t),t.headers=t.headers||{},t.data=TP.call(t,t.data,t.headers,t.transformRequest),t.headers=VW.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),VW.forEach(["delete","get","head","post","put","patch","common"],function(o){delete t.headers[o]});var n=t.adapter||sje.adapter;return n(t).then(function(o){return kP(t),o.data=TP.call(t,o.data,o.headers,t.transformResponse),o},function(o){return aje(o)||(kP(t),o&&o.response&&(o.response.data=TP.call(t,o.response.data,o.response.headers,t.transformResponse))),Promise.reject(o)})},xs=gs,bre=function(t,n){n=n||{};var r={};function o(c,f){return xs.isPlainObject(c)&&xs.isPlainObject(f)?xs.merge(c,f):xs.isPlainObject(f)?xs.merge({},f):xs.isArray(f)?f.slice():f}function i(c){if(xs.isUndefined(n[c])){if(!xs.isUndefined(t[c]))return o(void 0,t[c])}else return o(t[c],n[c])}function a(c){if(!xs.isUndefined(n[c]))return o(void 0,n[c])}function s(c){if(xs.isUndefined(n[c])){if(!xs.isUndefined(t[c]))return o(void 0,t[c])}else return o(void 0,n[c])}function l(c){if(c in n)return o(t[c],n[c]);if(c in t)return o(void 0,t[c])}var u={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l};return xs.forEach(Object.keys(t).concat(Object.keys(n)),function(f){var p=u[f]||i,g=p(f);xs.isUndefined(g)&&p!==l||(r[f]=g)}),r},IP,HW;function wre(){return HW||(HW=1,IP={version:"0.25.0"}),IP}var cje=wre().version,U8={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){U8[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var qW={};U8.transitional=function(t,n,r){function o(i,a){return"[Axios v"+cje+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return function(i,a,s){if(t===!1)throw new Error(o(a," has been removed"+(n?" in "+n:"")));return n&&!qW[a]&&(qW[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function dje(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new TypeError("option "+i+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+i)}}var fje={assertOptions:dje,validators:U8},Sre=gs,pje=gre,QW=Q9e,KW=uje,Ek=bre,xre=fje,Dm=xre.validators;function qS(e){this.defaults=e,this.interceptors={request:new QW,response:new QW}}qS.prototype.request=function(t,n){if(typeof t=="string"?(n=n||{},n.url=t):n=t||{},!n.url)throw new Error("Provided config url is not valid");n=Ek(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&xre.assertOptions(r,{silentJSONParsing:Dm.transitional(Dm.boolean),forcedJSONParsing:Dm.transitional(Dm.boolean),clarifyTimeoutError:Dm.transitional(Dm.boolean)},!1);var o=[],i=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(i=i&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});var a=[];this.interceptors.response.forEach(function(g){a.push(g.fulfilled,g.rejected)});var s;if(!i){var l=[KW,void 0];for(Array.prototype.unshift.apply(l,o),l=l.concat(a),s=Promise.resolve(n);l.length;)s=s.then(l.shift(),l.shift());return s}for(var u=n;o.length;){var c=o.shift(),f=o.shift();try{u=c(u)}catch(p){f(p);break}}try{s=KW(u)}catch(p){return Promise.reject(p)}for(;a.length;)s=s.then(a.shift(),a.shift());return s};qS.prototype.getUri=function(t){if(!t.url)throw new Error("Provided config url is not valid");return t=Ek(this.defaults,t),pje(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Sre.forEach(["delete","get","head","options"],function(t){qS.prototype[t]=function(n,r){return this.request(Ek(r||{},{method:t,url:n,data:(r||{}).data}))}});Sre.forEach(["post","put","patch"],function(t){qS.prototype[t]=function(n,r,o){return this.request(Ek(o||{},{method:t,url:n,data:r}))}});var hje=qS,PP,YW;function gje(){if(YW)return PP;YW=1;var e=Ak();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(a){r=a});var o=this;this.promise.then(function(i){if(o._listeners){var a,s=o._listeners.length;for(a=0;a=0.48.0","ton-crypto":">=3.2.0"},Oje={access:"public",registry:"https://registry.npmjs.org/"},Rje="yarn@3.4.1",Dje={name:Sje,version:xje,repository:Cje,author:Aje,license:_je,main:Eje,files:Tje,scripts:kje,devDependencies:Ije,dependencies:Pje,peerDependencies:Mje,publishConfig:Oje,"release-it":{github:{release:!0},plugins:{"@release-it/keep-a-changelog":{filename:"CHANGELOG.md"}}},packageManager:Rje};var Bje=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),$je=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Lje=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&Bje(t,e,n);return $je(t,e),t},j8=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(fS,"__esModule",{value:!0});fS.HttpApi=void 0;const xt=Lje(fB),Are=HZ,Fje=j8(JZ),Nje=xk,ZW=j8(k9e),Uje=j8(qA),jje=Dje.version,iy=xt.type({"@type":xt.literal("ton.blockIdExt"),workchain:xt.number,shard:xt.string,seqno:xt.number,root_hash:xt.string,file_hash:xt.string}),Wje=xt.type({balance:xt.union([xt.number,xt.string]),state:xt.union([xt.literal("active"),xt.literal("uninitialized"),xt.literal("frozen")]),data:xt.string,code:xt.string,last_transaction_id:xt.type({"@type":xt.literal("internal.transactionId"),lt:xt.string,hash:xt.string}),block_id:iy,sync_utime:xt.number}),zje=xt.type({"@type":xt.literal("ok")}),Vje=xt.type({"@type":xt.literal("query.fees"),source_fees:xt.type({"@type":xt.literal("fees"),in_fwd_fee:xt.number,storage_fee:xt.number,gas_fee:xt.number,fwd_fee:xt.number})}),Hje=xt.type({gas_used:xt.number,exit_code:xt.number,stack:xt.array(xt.unknown)}),qje=xt.union([xt.type({"@type":xt.literal("msg.dataRaw"),body:xt.string}),xt.type({"@type":xt.literal("msg.dataText"),text:xt.string}),xt.type({"@type":xt.literal("msg.dataDecryptedText"),text:xt.string}),xt.type({"@type":xt.literal("msg.dataEncryptedText"),text:xt.string})]),ez=xt.type({source:xt.string,destination:xt.string,value:xt.string,fwd_fee:xt.string,ihr_fee:xt.string,created_lt:xt.string,body_hash:xt.string,msg_data:qje}),Qje=xt.type({data:xt.string,utime:xt.number,transaction_id:xt.type({lt:xt.string,hash:xt.string}),fee:xt.string,storage_fee:xt.string,other_fee:xt.string,in_msg:xt.union([xt.undefined,ez]),out_msgs:xt.array(ez)}),tz=xt.array(Qje),Kje=xt.type({state_root_hash:xt.string,last:iy,init:iy}),Yje=xt.type({shards:xt.array(iy)}),Gje=xt.type({"@type":xt.literal("blocks.shortTxId"),mode:xt.number,account:xt.string,lt:xt.string,hash:xt.string}),nz=xt.type({id:iy,req_count:xt.number,incomplete:xt.boolean,transactions:xt.array(Gje)});class rz{constructor(t,n,r,o){this.namespace=t,this.cache=n,this.codec=r,this.keyEncoder=o}async get(t){let n=await this.cache.get(this.namespace,this.keyEncoder(t));if(n){let r=this.codec.decode(JSON.parse(n));if((0,Are.isRight)(r))return r.right}return null}async set(t,n){n!==null?await this.cache.set(this.namespace,this.keyEncoder(t),JSON.stringify(n)):await this.cache.set(this.namespace,this.keyEncoder(t),null)}}class Jje{constructor(t,n){this.endpoint=t,this.cache=new Nje.InMemoryCache,this.parameters={timeout:(n==null?void 0:n.timeout)||3e4,apiKey:n==null?void 0:n.apiKey},this.shardCache=new rz("ton-shard",this.cache,xt.array(iy),r=>r+""),this.shardLoader=new ZW.default(async r=>await Promise.all(r.map(async o=>{const i=await this.shardCache.get(o);if(i)return i;let a=(await this.doCall("shards",{seqno:o},Yje)).shards;return await this.shardCache.set(o,a),a}))),this.shardTransactionsCache=new rz("ton-shard-tx",this.cache,nz,r=>r.workchain+":"+r.shard+":"+r.seqno),this.shardTransactionsLoader=new ZW.default(async r=>await Promise.all(r.map(async o=>{const i=await this.shardTransactionsCache.get(o);if(i)return i;let a=await this.doCall("getBlockTransactions",{workchain:o.workchain,seqno:o.seqno,shard:o.shard},nz);return await this.shardTransactionsCache.set(o,a),a})),{cacheKeyFn:r=>r.workchain+":"+r.shard+":"+r.seqno})}getAddressInformation(t){return this.doCall("getAddressInformation",{address:t.toString()},Wje)}async getTransactions(t,n){const r=n.inclusive;delete n.inclusive;let o;n.hash&&(o=Buffer.from(n.hash,"base64").toString("hex"));let i=n.limit;n.hash&&n.lt&&r!==!0&&i++;let a=await this.doCall("getTransactions",{address:t.toString(),...n,limit:i,hash:o},tz);return a.length>i&&(a=a.slice(0,i)),n.hash&&n.lt&&r!==!0&&a.shift(),a}async getMasterchainInfo(){return await this.doCall("getMasterchainInfo",{},Kje)}async getShards(t){return await this.shardLoader.load(t)}async getBlockTransactions(t,n,r){return await this.shardTransactionsLoader.load({workchain:t,seqno:n,shard:r})}async getTransaction(t,n,r){let o=Buffer.from(r,"base64").toString("hex"),a=(await this.doCall("getTransactions",{address:t.toString(),lt:n,hash:o,limit:1},tz)).find(s=>s.transaction_id.lt===n&&s.transaction_id.hash===r);return a||null}async callGetMethod(t,n,r){return await this.doCall("runGetMethod",{address:t.toString(),method:n,stack:Xje(r)},Hje)}async sendBoc(t){await this.doCall("sendBoc",{boc:t.toString("base64")},zje)}async estimateFee(t,n){return await this.doCall("estimateFee",{address:t.toString(),body:n.body.toBoc().toString("base64"),init_data:n.initData?n.initData.toBoc().toString("base64"):"",init_code:n.initCode?n.initCode.toBoc().toString("base64"):"",ignore_chksig:n.ignoreSignature},Vje)}async doCall(t,n,r){let o={"Content-Type":"application/json","X-Ton-Client-Version":jje};this.parameters.apiKey&&(o["X-API-Key"]=this.parameters.apiKey);let i=await Uje.default.post(this.endpoint,JSON.stringify({id:"1",jsonrpc:"2.0",method:t,params:n}),{headers:o,timeout:this.parameters.timeout});if(i.status!==200||!i.data.ok)throw Error("Received error: "+JSON.stringify(i.data));let a=r.decode(i.data.result);if((0,Are.isRight)(a))return a.right;throw Error("Malformed response: "+Fje.default.report(a).join(", "))}}fS.HttpApi=Jje;function Xje(e){let t=[];for(let n of e)if(n.type==="int")t.push(["num",n.value.toString()]);else if(n.type==="cell")t.push(["tvm.Cell",n.cell.toBoc().toString("base64")]);else if(n.type==="slice")t.push(["tvm.Slice",n.cell.toBoc().toString("base64")]);else if(n.type==="builder")t.push(["tvm.Builder",n.cell.toBoc().toString("base64")]);else throw Error("Unsupported stack item type: "+n.type);return t}var Tk={},Zje=st&&st.__classPrivateFieldSet||function(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n},Xl=st&&st.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},Wa;Object.defineProperty(Tk,"__esModule",{value:!0});Tk.TonClient=void 0;const eWe=fS,si=vr;class tWe{constructor(t){Wa.set(this,void 0),this.parameters={endpoint:t.endpoint},Zje(this,Wa,new eWe.HttpApi(this.parameters.endpoint,{timeout:t.timeout,apiKey:t.apiKey,adapter:t.httpAdapter}),"f")}async getBalance(t){return(await this.getContractState(t)).balance}async runMethod(t,n,r=[]){let o=await Xl(this,Wa,"f").callGetMethod(t,n,r);if(o.exit_code!==0)throw Error("Unable to execute get method. Got exit_code: "+o.exit_code);return{gas_used:o.gas_used,stack:oz(o.stack)}}async callGetMethod(t,n,r=[]){return this.runMethod(t,n,r)}async runMethodWithError(t,n,r=[]){let o=await Xl(this,Wa,"f").callGetMethod(t,n,r);return{gas_used:o.gas_used,stack:oz(o.stack),exit_code:o.exit_code}}async callGetMethodWithError(t,n,r=[]){return this.runMethodWithError(t,n,r)}async getTransactions(t,n){let r=await Xl(this,Wa,"f").getTransactions(t,n),o=[];for(let i of r)o.push((0,si.loadTransaction)(si.Cell.fromBoc(Buffer.from(i.data,"base64"))[0].beginParse()));return o}async getTransaction(t,n,r){let o=await Xl(this,Wa,"f").getTransaction(t,n,r);return o?(0,si.loadTransaction)(si.Cell.fromBoc(Buffer.from(o.data,"base64"))[0].beginParse()):null}async getMasterchainInfo(){let t=await Xl(this,Wa,"f").getMasterchainInfo();return{workchain:t.init.workchain,shard:t.last.shard,initSeqno:t.init.seqno,latestSeqno:t.last.seqno}}async getWorkchainShards(t){return(await Xl(this,Wa,"f").getShards(t)).map(r=>({workchain:r.workchain,shard:r.shard,seqno:r.seqno}))}async getShardTransactions(t,n,r){let o=await Xl(this,Wa,"f").getBlockTransactions(t,n,r);if(o.incomplete)throw Error("Unsupported");return o.transactions.map(i=>({account:si.Address.parseRaw(i.account),lt:i.lt,hash:i.hash}))}async sendMessage(t){const n=(0,si.beginCell)().store((0,si.storeMessage)(t)).endCell().toBoc();await Xl(this,Wa,"f").sendBoc(n)}async sendFile(t){await Xl(this,Wa,"f").sendBoc(t)}async estimateExternalMessageFee(t,n){return await Xl(this,Wa,"f").estimateFee(t,{body:n.body,initCode:n.initCode,initData:n.initData,ignoreSignature:n.ignoreSignature})}async sendExternalMessage(t,n){if(await this.isContractDeployed(t.address)||!t.init){const r=(0,si.external)({to:t.address,body:n});await this.sendMessage(r)}else{const r=(0,si.external)({to:t.address,init:{code:t.init.code,data:t.init.data},body:n});await this.sendMessage(r)}}async isContractDeployed(t){return(await this.getContractState(t)).state==="active"}async getContractState(t){let n=await Xl(this,Wa,"f").getAddressInformation(t),r=BigInt(n.balance),o=n.state;return{balance:r,state:o,code:n.code!==""?Buffer.from(n.code,"base64"):null,data:n.data!==""?Buffer.from(n.data,"base64"):null,lastTransaction:n.last_transaction_id.lt!=="0"?{lt:n.last_transaction_id.lt,hash:n.last_transaction_id.hash}:null,blockId:{workchain:n.block_id.workchain,shard:n.block_id.shard,seqno:n.block_id.seqno},timestampt:n.sync_utime}}open(t){return(0,si.openContract)(t,n=>iz(this,n.address,n.init))}provider(t,n){return iz(this,t,n)}}Tk.TonClient=tWe;Wa=new WeakMap;function oz(e){let t=[];for(let n of e)if(n[0]==="num"){let r=n[1];r.startsWith("-")?t.push({type:"int",value:-BigInt(r.slice(1))}):t.push({type:"int",value:BigInt(r)})}else if(n[0]==="null")t.push({type:"null"});else if(n[0]==="cell")t.push({type:"cell",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else if(n[0]==="slice")t.push({type:"slice",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else if(n[0]==="builder")t.push({type:"builder",cell:si.Cell.fromBoc(Buffer.from(n[1].bytes,"base64"))[0]});else throw Error("Unsupported stack item type: "+n[0]);return new si.TupleReader(t)}function iz(e,t,n){return{async getState(){let r=await e.getContractState(t),o=r.balance,i=r.lastTransaction?{lt:BigInt(r.lastTransaction.lt),hash:Buffer.from(r.lastTransaction.hash,"base64")}:null,a;if(r.state==="active")a={type:"active",code:r.code?r.code:null,data:r.data?r.data:null};else if(r.state==="uninitialized")a={type:"uninit"};else if(r.state==="frozen")a={type:"frozen",stateHash:Buffer.alloc(0)};else throw Error("Unsupported state");return{balance:o,last:i,state:a}},async get(r,o){return{stack:(await e.callGetMethod(t,r,o)).stack}},async external(r){let o=null;n&&!await e.isContractDeployed(t)&&(o=n);const i=(0,si.external)({to:t,init:o?{code:o.code,data:o.data}:null,body:r});let a=(0,si.beginCell)().store((0,si.storeMessage)(i)).endCell().toBoc();await e.sendFile(a)},async internal(r,o){let i=null;n&&!await e.isContractDeployed(t)&&(i=n);let a=!0;o.bounce!==null&&o.bounce!==void 0&&(a=o.bounce);let s;typeof o.value=="string"?s=(0,si.toNano)(o.value):s=o.value;let l=null;typeof o.body=="string"?l=(0,si.comment)(o.body):o.body&&(l=o.body),await r.send({to:t,value:s,bounce:a,sendMode:o.sendMode,init:i,body:l})}}}var kk={},Ik={};Object.defineProperty(Ik,"__esModule",{value:!0});Ik.toUrlSafe=void 0;function nWe(e){for(;e.indexOf("/")>=0;)e=e.replace("/","_");for(;e.indexOf("+")>=0;)e=e.replace("+","-");for(;e.indexOf("=")>=0;)e=e.replace("=","");return e}Ik.toUrlSafe=nWe;var rWe=st&&st.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),oWe=st&&st.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),iWe=st&&st.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&rWe(t,e,n);return oWe(t,e),t},RP=st&&st.__classPrivateFieldSet||function(e,t,n,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(e,n):o?o.value=n:t.set(e,n),n},or=st&&st.__classPrivateFieldGet||function(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)},aWe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},za,Va,Ha;Object.defineProperty(kk,"__esModule",{value:!0});kk.TonClient4=void 0;const Zl=aWe(qA),Ke=iWe(fB),ra=vr,az=Ik;class sWe{constructor(t){za.set(this,void 0),Va.set(this,void 0),Ha.set(this,void 0),RP(this,za,t.endpoint,"f"),RP(this,Va,t.timeout||5e3,"f"),RP(this,Ha,t.httpAdapter,"f")}async getLastBlock(){let t=await Zl.default.get(or(this,za,"f")+"/block/latest",{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!lWe.is(t.data))throw Error("Mailformed response");return t.data}async getBlock(t){let n=await Zl.default.get(or(this,za,"f")+"/block/"+t,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!sz.is(n.data))throw Error("Mailformed response");if(!n.data.exist)throw Error("Block is out of scope");return n.data.block}async getBlockByUtime(t){let n=await Zl.default.get(or(this,za,"f")+"/block/utime/"+t,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!sz.is(n.data))throw Error("Mailformed response");if(!n.data.exist)throw Error("Block is out of scope");return n.data.block}async getAccount(t,n){let r=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0}),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!uWe.is(r.data))throw Error("Mailformed response");return r.data}async getAccountLite(t,n){let r=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/lite",{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!cWe.is(r.data))throw Error("Mailformed response");return r.data}async isContractDeployed(t,n){return(await this.getAccountLite(t,n)).account.state.type==="active"}async isAccountChanged(t,n,r){let o=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/changed/"+r.toString(10),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!dWe.is(o.data))throw Error("Mailformed response");return o.data}async getTransaction(t,n,r){const o=n.toString({urlSafe:!0}),i=`/block/${t}/${o}/tx/${r.toString(10)}`,a=await Zl.default.get(new URL(i,or(this,za,"f")).href,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!mWe.is(a.data))throw Error("Mailformed response");const s=ra.Cell.fromBoc(Buffer.from(a.data.boc,"base64"))[0];return{tx:(0,ra.loadTransaction)(s.beginParse()),...a.data}}async getAccountTransactions(t,n,r){let o=await Zl.default.get(or(this,za,"f")+"/account/"+t.toString({urlSafe:!0})+"/tx/"+n.toString(10)+"/"+(0,az.toUrlSafe)(r.toString("base64")),{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!gWe.is(o.data))throw Error("Mailformed response");let i=o.data,a=[],s=ra.Cell.fromBoc(Buffer.from(i.boc,"base64"));for(let l=0;l0&&(r="/"+[...n].sort().join(","));let o=await Zl.default.get(or(this,za,"f")+"/block/"+t+"/config"+r,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!pWe.is(o.data))throw Error("Mailformed response");return o.data}async runMethod(t,n,r,o){let i=o&&o.length>0?"/"+(0,az.toUrlSafe)((0,ra.serializeTuple)(o).toBoc({idx:!1,crc32:!1}).toString("base64")):"",a=or(this,za,"f")+"/block/"+t+"/"+n.toString({urlSafe:!0})+"/run/"+r+i,s=await Zl.default.get(a,{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!fWe.is(s.data))throw Error("Mailformed response");let l=s.data.resultRaw?(0,ra.parseTuple)(ra.Cell.fromBoc(Buffer.from(s.data.resultRaw,"base64"))[0]):[];return{exitCode:s.data.exitCode,result:l,resultRaw:s.data.resultRaw,block:s.data.block,shardBlock:s.data.shardBlock,reader:new ra.TupleReader(l)}}async sendMessage(t){let n=await Zl.default.post(or(this,za,"f")+"/send",{boc:t.toString("base64")},{adapter:or(this,Ha,"f"),timeout:or(this,Va,"f")});if(!hWe.is(n.data))throw Error("Mailformed response");return{status:n.data.status}}open(t){return(0,ra.openContract)(t,n=>L2(this,null,n.address,n.init))}openAt(t,n){return(0,ra.openContract)(n,r=>L2(this,t,r.address,r.init))}provider(t,n){return L2(this,null,t,n||null)}providerAt(t,n,r){return L2(this,t,n,r||null)}}kk.TonClient4=sWe;za=new WeakMap,Va=new WeakMap,Ha=new WeakMap;function L2(e,t,n,r){return{async getState(){let o=t;o===null&&(o=(await e.getLastBlock()).last.seqno);let i=await e.getAccount(o,n),a=i.account.last?{lt:BigInt(i.account.last.lt),hash:Buffer.from(i.account.last.hash,"base64")}:null,s;if(i.account.state.type==="active")s={type:"active",code:i.account.state.code?Buffer.from(i.account.state.code,"base64"):null,data:i.account.state.data?Buffer.from(i.account.state.data,"base64"):null};else if(i.account.state.type==="uninit")s={type:"uninit"};else if(i.account.state.type==="frozen")s={type:"frozen",stateHash:Buffer.from(i.account.state.stateHash,"base64")};else throw Error("Unsupported state");return{balance:BigInt(i.account.balance.coins),last:a,state:s}},async get(o,i){let a=t;a===null&&(a=(await e.getLastBlock()).last.seqno);let s=await e.runMethod(a,n,o,i);if(s.exitCode!==0&&s.exitCode!==1)throw Error("Exit code: "+s.exitCode);return{stack:new ra.TupleReader(s.result)}},async external(o){let i=await e.getLastBlock(),a=null;r&&(await e.getAccountLite(i.last.seqno,n)).account.state.type!=="active"&&(a=r);const s=(0,ra.external)({to:n,init:a?{code:a.code,data:a.data}:null,body:o});let l=(0,ra.beginCell)().store((0,ra.storeMessage)(s)).endCell().toBoc();await e.sendMessage(l)},async internal(o,i){let a=await e.getLastBlock(),s=null;r&&(await e.getAccountLite(a.last.seqno,n)).account.state.type!=="active"&&(s=r);let l=!0;i.bounce!==null&&i.bounce!==void 0&&(l=i.bounce);let u;typeof i.value=="string"?u=(0,ra.toNano)(i.value):u=i.value;let c=null;typeof i.body=="string"?c=(0,ra.comment)(i.body):i.body&&(c=i.body),await o.send({to:n,value:u,bounce:l,sendMode:i.sendMode,init:s,body:c})}}}const lWe=Ke.type({last:Ke.type({seqno:Ke.number,shard:Ke.string,workchain:Ke.number,fileHash:Ke.string,rootHash:Ke.string}),init:Ke.type({fileHash:Ke.string,rootHash:Ke.string}),stateRootHash:Ke.string,now:Ke.number}),sz=Ke.union([Ke.type({exist:Ke.literal(!1)}),Ke.type({exist:Ke.literal(!0),block:Ke.type({shards:Ke.array(Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string,transactions:Ke.array(Ke.type({account:Ke.string,hash:Ke.string,lt:Ke.string}))}))})})]),_re=Ke.type({lastPaid:Ke.number,duePayment:Ke.union([Ke.null,Ke.string]),used:Ke.type({bits:Ke.number,cells:Ke.number,publicCells:Ke.number})}),uWe=Ke.type({account:Ke.type({state:Ke.union([Ke.type({type:Ke.literal("uninit")}),Ke.type({type:Ke.literal("active"),code:Ke.union([Ke.string,Ke.null]),data:Ke.union([Ke.string,Ke.null])}),Ke.type({type:Ke.literal("frozen"),stateHash:Ke.string})]),balance:Ke.type({coins:Ke.string}),last:Ke.union([Ke.null,Ke.type({lt:Ke.string,hash:Ke.string})]),storageStat:Ke.union([Ke.null,_re])}),block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),cWe=Ke.type({account:Ke.type({state:Ke.union([Ke.type({type:Ke.literal("uninit")}),Ke.type({type:Ke.literal("active"),codeHash:Ke.string,dataHash:Ke.string}),Ke.type({type:Ke.literal("frozen"),stateHash:Ke.string})]),balance:Ke.type({coins:Ke.string}),last:Ke.union([Ke.null,Ke.type({lt:Ke.string,hash:Ke.string})]),storageStat:Ke.union([Ke.null,_re])})}),dWe=Ke.type({changed:Ke.boolean,block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),fWe=Ke.type({exitCode:Ke.number,resultRaw:Ke.union([Ke.string,Ke.null]),block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string}),shardBlock:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})}),pWe=Ke.type({config:Ke.type({cell:Ke.string,address:Ke.string,globalBalance:Ke.type({coins:Ke.string})})}),hWe=Ke.type({status:Ke.number}),gWe=Ke.type({blocks:Ke.array(Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string,fileHash:Ke.string})),boc:Ke.string}),mWe=Ke.type({block:Ke.type({workchain:Ke.number,seqno:Ke.number,shard:Ke.string,rootHash:Ke.string}),boc:Ke.string,proof:Ke.string});var Pk={},ji={};Object.defineProperty(ji,"__esModule",{value:!0});ji.createWalletTransferV4=ji.createWalletTransferV3=ji.createWalletTransferV2=ji.createWalletTransferV1=void 0;const la=vr,Mk=Bg();function yWe(e){let t=(0,la.beginCell)().storeUint(e.seqno,32);e.message&&(t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(e.message))));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV1=yWe;function vWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.seqno,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV2=vWe;function bWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.walletId,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV3=bWe;function wWe(e){if(e.messages.length>4)throw Error("Maximum number of messages in a single transfer is 4");let t=(0,la.beginCell)().storeUint(e.walletId,32);if(e.seqno===0)for(let o=0;o<32;o++)t.storeBit(1);else t.storeUint(e.timeout||Math.floor(Date.now()/1e3)+60,32);t.storeUint(e.seqno,32),t.storeUint(0,8);for(let o of e.messages)t.storeUint(e.sendMode,8),t.storeRef((0,la.beginCell)().store((0,la.storeMessageRelaxed)(o)));let n=(0,Mk.sign)(t.endCell().hash(),e.secretKey);return(0,la.beginCell)().storeBuffer(n).storeBuilder(t).endCell()}ji.createWalletTransferV4=wWe;Object.defineProperty(Pk,"__esModule",{value:!0});Pk.WalletContractV1R1=void 0;const Bm=vr,SWe=ji;class W8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=Bm.Cell.fromBoc(Buffer.from("te6cckEBAQEARAAAhP8AIN2k8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVEH98Ik=","base64"))[0],o=(0,Bm.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,Bm.contractAddress)(t,{code:r,data:o})}static create(t){return new W8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){let n=await t.getState();return n.state.type==="active"?Bm.Cell.fromBoc(n.state.data)[0].beginParse().loadUint(32):0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=Bm.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,SWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,Bm.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Pk.WalletContractV1R1=W8;var Ok={};Object.defineProperty(Ok,"__esModule",{value:!0});Ok.WalletContractV1R2=void 0;const d1=vr,xWe=ji;class z8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=d1.Cell.fromBoc(Buffer.from("te6cckEBAQEAUwAAov8AIN0gggFMl7qXMO1E0NcLH+Ck8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVNDieG8=","base64"))[0],o=(0,d1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,d1.contractAddress)(t,{code:r,data:o})}static create(t){return new z8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=d1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,xWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,d1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Ok.WalletContractV1R2=z8;var Rk={};Object.defineProperty(Rk,"__esModule",{value:!0});Rk.WalletContractV1R3=void 0;const f1=vr,CWe=ji;class V8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=f1.Cell.fromBoc(Buffer.from("te6cckEBAQEAXwAAuv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCBAgDXGCDXCx/tRNDTH9P/0VESuvKhIvkBVBBE+RDyovgAAdMfMSDXSpbTB9QC+wDe0aTIyx/L/8ntVLW4bkI=","base64"))[0],o=(0,f1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,f1.contractAddress)(t,{code:r,data:o})}static create(t){return new V8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=f1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,CWe.createWalletTransferV1)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,message:t.message})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,message:(0,f1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})});await this.send(t,i)}}}}Rk.WalletContractV1R3=V8;var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0});Dk.WalletContractV2R1=void 0;const p1=vr,AWe=ji;class H8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=p1.Cell.fromBoc(Buffer.from("te6cckEBAQEAVwAAqv8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VShNwu2","base64"))[0],o=(0,p1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,p1.contractAddress)(t,{code:r,data:o})}static create(t){return new H8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=p1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,AWe.createWalletTransferV2)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,p1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Dk.WalletContractV2R1=H8;var Bk={};Object.defineProperty(Bk,"__esModule",{value:!0});Bk.WalletContractV2R2=void 0;const h1=vr,_We=ji;class q8{constructor(t,n){this.workchain=t,this.publicKey=n;let r=h1.Cell.fromBoc(Buffer.from("te6cckEBAQEAYwAAwv8AIN0gggFMl7ohggEznLqxnHGw7UTQ0x/XC//jBOCk8mCDCNcYINMf0x8B+CO78mPtRNDTH9P/0VExuvKhA/kBVBBC+RDyovgAApMg10qW0wfUAvsA6NGkyMsfy//J7VQETNeh","base64"))[0],o=(0,h1.beginCell)().storeUint(0,32).storeBuffer(n).endCell();this.init={code:r,data:o},this.address=(0,h1.contractAddress)(t,{code:r,data:o})}static create(t){return new q8(t.workchain,t.publicKey)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=h1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,_We.createWalletTransferV2)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,h1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Bk.WalletContractV2R2=q8;var $k={};Object.defineProperty($k,"__esModule",{value:!0});$k.WalletContractV3R1=void 0;const g1=vr,EWe=ji;class Q8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=g1.Cell.fromBoc(Buffer.from("te6cckEBAQEAYgAAwP8AIN0gggFMl7qXMO1E0NcLH+Ck8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVD++buA=","base64"))[0],i=(0,g1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:o,data:i},this.address=(0,g1.contractAddress)(t,{code:o,data:i})}static create(t){return new Q8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=g1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,EWe.createWalletTransferV3)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,g1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}$k.WalletContractV3R1=Q8;var Lk={};Object.defineProperty(Lk,"__esModule",{value:!0});Lk.WalletContractV3R2=void 0;const m1=vr,TWe=ji;class K8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=m1.Cell.fromBoc(Buffer.from("te6cckEBAQEAcQAA3v8AIN0gggFMl7ohggEznLqxn3Gw7UTQ0x/THzHXC//jBOCk8mCDCNcYINMf0x/TH/gjE7vyY+1E0NMf0x/T/9FRMrryoVFEuvKiBPkBVBBV+RDyo/gAkyDXSpbTB9QC+wDo0QGkyMsfyx/L/8ntVBC9ba0=","base64"))[0],i=(0,m1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(n).endCell();this.init={code:o,data:i},this.address=(0,m1.contractAddress)(t,{code:o,data:i})}static create(t){return new K8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=m1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,TWe.createWalletTransferV3)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,m1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Lk.WalletContractV3R2=K8;var Fk={};Object.defineProperty(Fk,"__esModule",{value:!0});Fk.WalletContractV4=void 0;const y1=vr,kWe=ji;class Y8{constructor(t,n,r){this.workchain=t,this.publicKey=n,r!=null?this.walletId=r:this.walletId=698983191+t;let o=y1.Cell.fromBoc(Buffer.from("te6ccgECFAEAAtQAART/APSkE/S88sgLAQIBIAIDAgFIBAUE+PKDCNcYINMf0x/THwL4I7vyZO1E0NMf0x/T//QE0VFDuvKhUVG68qIF+QFUEGT5EPKj+AAkpMjLH1JAyx9SMMv/UhD0AMntVPgPAdMHIcAAn2xRkyDXSpbTB9QC+wDoMOAhwAHjACHAAuMAAcADkTDjDQOkyMsfEssfy/8QERITAubQAdDTAyFxsJJfBOAi10nBIJJfBOAC0x8hghBwbHVnvSKCEGRzdHK9sJJfBeAD+kAwIPpEAcjKB8v/ydDtRNCBAUDXIfQEMFyBAQj0Cm+hMbOSXwfgBdM/yCWCEHBsdWe6kjgw4w0DghBkc3RyupJfBuMNBgcCASAICQB4AfoA9AQw+CdvIjBQCqEhvvLgUIIQcGx1Z4MesXCAGFAEywUmzxZY+gIZ9ADLaRfLH1Jgyz8gyYBA+wAGAIpQBIEBCPRZMO1E0IEBQNcgyAHPFvQAye1UAXKwjiOCEGRzdHKDHrFwgBhQBcsFUAPPFiP6AhPLassfyz/JgED7AJJfA+ICASAKCwBZvSQrb2omhAgKBrkPoCGEcNQICEekk30pkQzmkD6f+YN4EoAbeBAUiYcVnzGEAgFYDA0AEbjJftRNDXCx+AA9sp37UTQgQFA1yH0BDACyMoHy//J0AGBAQj0Cm+hMYAIBIA4PABmtznaiaEAga5Drhf/AABmvHfaiaEAQa5DrhY/AAG7SB/oA1NQi+QAFyMoHFcv/ydB3dIAYyMsFywIizxZQBfoCFMtrEszMyXP7AMhAFIEBCPRR8qcCAHCBAQjXGPoA0z/IVCBHgQEI9FHyp4IQbm90ZXB0gBjIywXLAlAGzxZQBPoCFMtqEssfyz/Jc/sAAgBsgQEI1xj6ANM/MFIkgQEI9Fnyp4IQZHN0cnB0gBjIywXLAlAFzxZQA/oCE8tqyx8Syz/Jc/sAAAr0AMntVA==","base64"))[0],i=(0,y1.beginCell)().storeUint(0,32).storeUint(this.walletId,32).storeBuffer(this.publicKey).storeBit(0).endCell();this.init={code:o,data:i},this.address=(0,y1.contractAddress)(t,{code:o,data:i})}static create(t){return new Y8(t.workchain,t.publicKey,t.walletId)}async getBalance(t){return(await t.getState()).balance}async getSeqno(t){return(await t.getState()).state.type==="active"?(await t.get("seqno",[])).stack.readNumber():0}async send(t,n){await t.external(n)}async sendTransfer(t,n){let r=this.createTransfer(n);await this.send(t,r)}createTransfer(t){let n=y1.SendMode.PAY_GAS_SEPARATELY;return t.sendMode!==null&&t.sendMode!==void 0&&(n=t.sendMode),(0,kWe.createWalletTransferV4)({seqno:t.seqno,sendMode:n,secretKey:t.secretKey,messages:t.messages,timeout:t.timeout,walletId:this.walletId})}sender(t,n){return{send:async r=>{let o=await this.getSeqno(t),i=this.createTransfer({seqno:o,secretKey:n,sendMode:r.sendMode,messages:[(0,y1.internal)({to:r.to,value:r.value,init:r.init,body:r.body,bounce:r.bounce})]});await this.send(t,i)}}}}Fk.WalletContractV4=Y8;var Nk={};Object.defineProperty(Nk,"__esModule",{value:!0});Nk.JettonMaster=void 0;const IWe=vr;class G8{constructor(t){this.address=t}static create(t){return new G8(t)}async getWalletAddress(t,n){return(await t.get("get_wallet_address",[{type:"slice",cell:(0,IWe.beginCell)().storeAddress(n).endCell()}])).stack.readAddress()}async getJettonData(t){let n=await t.get("get_jetton_data",[]),r=n.stack.readBigNumber(),o=n.stack.readBoolean(),i=n.stack.readAddress(),a=n.stack.readCell(),s=n.stack.readCell();return{totalSupply:r,mintable:o,adminAddress:i,content:a,walletCode:s}}}Nk.JettonMaster=G8;var Uk={};Object.defineProperty(Uk,"__esModule",{value:!0});Uk.JettonWallet=void 0;class J8{constructor(t){this.address=t}static create(t){return new J8(t)}async getBalance(t){return(await t.getState()).state.type!=="active"?0n:(await t.get("get_wallet_data",[])).stack.readBigNumber()}}Uk.JettonWallet=J8;var QS={};Object.defineProperty(QS,"__esModule",{value:!0});QS.MultisigOrder=void 0;const lz=Bg(),F2=vr;class KA{constructor(t){this.signatures={},this.payload=t}static fromCell(t){var a;let n=t.beginParse(),r=(a=n.loadMaybeRef())==null?void 0:a.beginParse();const o=n.asCell();let i=new KA(o);if(r){for(;r.remainingBits>0;){const s=r.loadBuffer(64),l=r.loadUint(8);i.signatures[l]=s,r.remainingRefs>0?r=r.loadRef().asSlice():r.skip(1)}r.endParse()}return i}static fromPayload(t){return new KA(t)}addSignature(t,n,r){const o=this.payload.hash();if(!(0,lz.signVerify)(o,n,r.owners.get(t).slice(0,-1)))throw Error("invalid signature");this.signatures[t]=n}sign(t,n){const r=this.payload.hash();return this.signatures[t]=(0,lz.sign)(r,n),r}unionSignatures(t){this.signatures=Object.assign({},this.signatures,t.signatures)}clearSignatures(){this.signatures={}}toCell(t){let n=(0,F2.beginCell)().storeBit(0);for(const r in this.signatures){const o=this.signatures[r];n=(0,F2.beginCell)().storeBit(1).storeRef((0,F2.beginCell)().storeBuffer(o).storeUint(parseInt(r),8).storeBuilder(n).endCell())}return(0,F2.beginCell)().storeUint(t,8).storeBuilder(n).storeBuilder(this.payload.asBuilder()).endCell()}}QS.MultisigOrder=KA;var jk={};Object.defineProperty(jk,"__esModule",{value:!0});jk.MultisigOrderBuilder=void 0;const v1=vr,PWe=QS;class MWe{constructor(t,n){this.messages=(0,v1.beginCell)(),this.queryId=0n,this.walletId=t,this.queryOffset=n||7200}addMessage(t,n){if(this.messages.refs>=4)throw Error("only 4 refs are allowed");this.updateQueryId(),this.messages.storeUint(n,8),this.messages.storeRef((0,v1.beginCell)().store((0,v1.storeMessageRelaxed)(t)).endCell())}clearMessages(){this.messages=(0,v1.beginCell)()}build(){return PWe.MultisigOrder.fromPayload((0,v1.beginCell)().storeUint(this.walletId,32).storeUint(this.queryId,64).storeBuilder(this.messages).endCell())}updateQueryId(){const t=BigInt(Math.floor(Date.now()/1e3+this.queryOffset));this.queryId=t<<32n}}jk.MultisigOrderBuilder=MWe;var Wk={};Object.defineProperty(Wk,"__esModule",{value:!0});Wk.MultisigWallet=void 0;const uz=Bg(),dl=vr,OWe=dl.Cell.fromBase64("te6ccgECKwEABBgAART/APSkE/S88sgLAQIBIAIDAgFIBAUE2vIgxwCOgzDbPOCDCNcYIPkBAdMH2zwiwAAToVNxePQOb6Hyn9s8VBq6+RDyoAb0BCD5AQHTH1EYuvKq0z9wUwHwCgHCCAGDCryx8mhTFYBA9A5voSCYDqQgwgryZw7f+COqH1NAufJhVCOjU04gIyEiAgLMBgcCASAMDQIBIAgJAgFmCgsAA9GEAiPymAvHoHN9CYbZ5S7Z4BPHohwhJQAtAKkItdJEqCTItdKlwLUAdAT8ArobBKAATwhbpEx4CBukTDgAdAg10rDAJrUAvALyFjPFszJ4HHXI8gBzxb0AMmACASAODwIBIBQVARW77ZbVA0cFUg2zyCoCAUgQEQIBIBITAXOxHXQgwjXGCD5AQHTB4IB1MTtQ9hTIHj0Dm+h8p/XC/9eMfkQ8qCuAfQEIW6TW3Ey4PkBWNs8AaQBgJwA9rtqA6ADoAPoCAXoCEfyAgPyA3XlP+AXkegAA54tkwAAXrhlXP8EA1WZ2oexAAgEgFhcCASAYGQFRtyVbZ4YmRmpGEAgegc30McJNhFpAADMaYeYuAFrgJhwLb+4cC3d0bhAjAYm1WZtnhqvgb+2xxsoicAgej430pBHEoFpAADHDhBACGuQkuuBk9kUWE5kAOeLKhACQCB6IYFImHFImHFImXEA2YlzNijAjAgEgGhsAF7UGtc4QQDVZnah7EAIBIBwdAgOZOB4fARGsGm2eL4G2CUAjABWt+UEAzJV2oewYQAENqTbPBVfBYCMAFa3f3CCAarM7UPYgAiDbPALyZfgAUENxQxPbPO1UIyoACtP/0wcwBKDbPC+uUyCw8mISsQKkJbNTHLmwJYEA4aojoCi8sPJpggGGoPgBBZcCERACPj4wjo0REB/bPEDXePRDEL0F4lQWW1Rz51YQU9zbPFRxClR6vCQlKCYAIO1E0NMf0wfTB9M/9AT0BNEAXgGOGjDSAAHyo9MH0wdQA9cBIPkBBfkBFbrypFAD4GwhIddKqgIi10m68qtwVCATAAwByMv/ywcE1ts87VT4D3AlblOJvrGYEG4QLVDHXwePGzBUJANQTds8UFWgRlAQSRA6SwlTuds8UFQWf+L4AAeDJaGOLCaAQPSWb6UglDBTA7neII4WODk5CNIAAZfTBzAW8AcFkTDifwgHBZJsMeKz5jAGKicoKQBgcI4pA9CDCNcY0wf0BDBTFnj0Dm+h8qXXC/9URUT5EPKmrlIgsVIDvRShI27mbCIyAH5SML6OIF8D+ACTItdKmALTB9QC+wAC6DJwyMoAQBSAQPRDAvAHjhdxyMsAFMsHEssHWM8BWM8WQBOAQPRDAeIBII6KEEUQNEMA2zztVJJfBuIqABzIyx/LB8sHyz/0APQAyQ==");class X8{constructor(t,n,r,o,i){this.provider=null,this.owners=dl.Dictionary.empty(),this.workchain=n,this.walletId=r,this.k=o;for(let a=0;a>>0,p-=l,p*=l,l=p>>>0,p-=l,l+=p*4294967296}return(l>>>0)*23283064365386963e-26};return u}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.alea=a})(st,e,!1)})(RWe);var hR={},DWe={get exports(){return hR},set exports(e){hR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.x=0,l.y=0,l.z=0,l.w=0,l.next=function(){var f=l.x^l.x<<11;return l.x=l.y,l.y=l.z,l.z=l.w,l.w^=l.w>>>19^f^f>>>8},s===(s|0)?l.x=s:u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xor128=a})(st,e,!1)})(DWe);var gR={},BWe={get exports(){return gR},set exports(e){gR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.next=function(){var f=l.x^l.x>>>2;return l.x=l.y,l.y=l.z,l.z=l.w,l.w=l.v,(l.d=l.d+362437|0)+(l.v=l.v^l.v<<4^(f^f<<1))|0},l.x=0,l.y=0,l.z=0,l.w=0,l.v=0,s===(s|0)?l.x=s:u+=s;for(var c=0;c>>4),l.next()}function i(s,l){return l.x=s.x,l.y=s.y,l.z=s.z,l.w=s.w,l.v=s.v,l.d=s.d,l}function a(s,l){var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xorwow=a})(st,e,!1)})(BWe);var mR={},$We={get exports(){return mR},set exports(e){mR=e}};(function(e){(function(t,n,r){function o(s){var l=this;l.next=function(){var c=l.x,f=l.i,p,g;return p=c[f],p^=p>>>7,g=p^p<<24,p=c[f+1&7],g^=p^p>>>10,p=c[f+3&7],g^=p^p>>>3,p=c[f+4&7],g^=p^p<<7,p=c[f+7&7],p=p^p<<13,g^=p^p<<9,c[f]=g,l.i=f+1&7,g};function u(c,f){var p,g=[];if(f===(f|0))g[0]=f;else for(f=""+f,p=0;p0;--p)c.next()}u(l,s)}function i(s,l){return l.x=s.x.slice(),l.i=s.i,l}function a(s,l){s==null&&(s=+new Date);var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(c.x&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xorshift7=a})(st,e,!1)})($We);var yR={},LWe={get exports(){return yR},set exports(e){yR=e}};(function(e){(function(t,n,r){function o(s){var l=this;l.next=function(){var c=l.w,f=l.X,p=l.i,g,m;return l.w=c=c+1640531527|0,m=f[p+34&127],g=f[p=p+1&127],m^=m<<13,g^=g<<17,m^=m>>>15,g^=g>>>12,m=f[p]=m^g,l.i=p,m+(c^c>>>16)|0};function u(c,f){var p,g,m,y,v,x=[],w=128;for(f===(f|0)?(g=f,f=null):(f=f+"\0",g=0,w=Math.max(w,f.length)),m=0,y=-32;y>>15,g^=g<<4,g^=g>>>13,y>=0&&(v=v+1640531527|0,p=x[y&127]^=g+v,m=p==0?m+1:0);for(m>=128&&(x[(f&&f.length||0)&127]=-1),m=127,y=4*128;y>0;--y)g=x[m+34&127],p=x[m=m+1&127],g^=g<<13,p^=p<<17,g^=g>>>15,p^=p>>>12,x[m]=g^p;c.w=v,c.X=x,c.i=m}u(l,s)}function i(s,l){return l.i=s.i,l.w=s.w,l.X=s.X.slice(),l}function a(s,l){s==null&&(s=+new Date);var u=new o(s),c=l&&l.state,f=function(){return(u.next()>>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(c.X&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.xor4096=a})(st,e,!1)})(LWe);var vR={},FWe={get exports(){return vR},set exports(e){vR=e}};(function(e){(function(t,n,r){function o(s){var l=this,u="";l.next=function(){var f=l.b,p=l.c,g=l.d,m=l.a;return f=f<<25^f>>>7^p,p=p-g|0,g=g<<24^g>>>8^m,m=m-f|0,l.b=f=f<<20^f>>>12^p,l.c=p=p-g|0,l.d=g<<16^p>>>16^m,l.a=m-f|0},l.a=0,l.b=0,l.c=-1640531527,l.d=1367130551,s===Math.floor(s)?(l.a=s/4294967296|0,l.b=s|0):u+=s;for(var c=0;c>>0)/4294967296};return f.double=function(){do var p=u.next()>>>11,g=(u.next()>>>0)/4294967296,m=(p+g)/(1<<21);while(m===0);return m},f.int32=u.next,f.quick=f,c&&(typeof c=="object"&&i(c,u),f.state=function(){return i(u,{})}),f}n&&n.exports?n.exports=a:r&&r.amd?r(function(){return a}):this.tychei=a})(st,e,!1)})(FWe);var bR={},NWe={get exports(){return bR},set exports(e){bR=e}};(function(e){(function(t,n,r){var o=256,i=6,a=52,s="random",l=r.pow(o,i),u=r.pow(2,a),c=u*2,f=o-1,p;function g(_,R,U){var D=[];R=R==!0?{entropy:!0}:R||{};var b=x(v(R.entropy?[_,I(n)]:_??w(),3),D),T=new m(D),C=function(){for(var O=T.g(i),$=l,j=0;O=c;)O/=2,$/=2,j>>>=1;return(O+j)/$};return C.int32=function(){return T.g(4)|0},C.quick=function(){return T.g(4)/4294967296},C.double=C,x(I(T.S),n),(R.pass||U||function(O,$,j,L){return L&&(L.S&&y(L,T),O.state=function(){return y(T,{})}),j?(r[s]=O,$):O})(C,b,"global"in R?R.global:this==r,R.state)}function m(_){var R,U=_.length,D=this,b=0,T=D.i=D.j=0,C=D.S=[];for(U||(_=[U++]);bf?Y.c=Y.e=null:b.e=10;L/=10,j++);j>f?Y.c=Y.e=null:(Y.e=j,Y.c=[b]);return}q=String(b)}else{if(!QWe.test(q=String(b)))return r(Y,q,B);Y.s=q.charCodeAt(0)==45?(q=q.slice(1),-1):1}(j=q.indexOf("."))>-1&&(q=q.replace(".","")),(L=q.search(/e/i))>0?(j<0&&(j=L),j+=+q.slice(L+1),q=q.substring(0,L)):j<0&&(j=q.length)}else{if(Co(T,2,v.length,"Base"),T==10&&x)return Y=new w(b),U(Y,a+Y.e+1,s);if(q=String(b),B=typeof b=="number"){if(b*0!=0)return r(Y,q,B,T);if(Y.s=1/b<0?(q=q.slice(1),-1):1,w.DEBUG&&q.replace(/^0\.0*|\./,"").length>15)throw Error(cz+b)}else Y.s=q.charCodeAt(0)===45?(q=q.slice(1),-1):1;for(C=v.slice(0,T),j=L=0,H=q.length;Lj){j=H;continue}}else if(!$&&(q==q.toUpperCase()&&(q=q.toLowerCase())||q==q.toLowerCase()&&(q=q.toUpperCase()))){$=!0,L=-1,j=0;continue}return r(Y,String(b),B,T)}B=!1,q=n(q,T,10,Y.s),(j=q.indexOf("."))>-1?q=q.replace(".",""):j=q.length}for(L=0;q.charCodeAt(L)===48;L++);for(H=q.length;q.charCodeAt(--H)===48;);if(q=q.slice(L,++H)){if(H-=L,B&&w.DEBUG&&H>15&&(b>BP||b!==zu(b)))throw Error(cz+Y.s*b);if((j=j-L-1)>f)Y.c=Y.e=null;else if(j=-Ci&&$<=Ci&&$===zu($)){if(O[0]===0){if($===0&&O.length===1)return!0;break e}if(T=($+1)%En,T<1&&(T+=En),String(O[0]).length==T){for(T=0;T=eu||C!==zu(C))break e;if(C!==0)return!0}}}else if(O===null&&$===null&&(j===null||j===1||j===-1))return!0;throw Error(Qa+"Invalid BigNumber: "+b)},w.maximum=w.max=function(){return _(arguments,o.lt)},w.minimum=w.min=function(){return _(arguments,o.gt)},w.random=function(){var b=9007199254740992,T=Math.random()*b&2097151?function(){return zu(Math.random()*b)}:function(){return(Math.random()*1073741824|0)*8388608+(Math.random()*8388608|0)};return function(C){var O,$,j,L,B,H=0,q=[],Y=new w(i);if(C==null?C=a:Co(C,0,Ci),L=DP(C/En),p)if(crypto.getRandomValues){for(O=crypto.getRandomValues(new Uint32Array(L*=2));H>>11),B>=9e15?($=crypto.getRandomValues(new Uint32Array(2)),O[H]=$[0],O[H+1]=$[1]):(q.push(B%1e14),H+=2);H=L/2}else if(crypto.randomBytes){for(O=crypto.randomBytes(L*=7);H=9e15?crypto.randomBytes(7).copy(O,H):(q.push(B%1e14),H+=7);H=L/7}else throw p=!1,Error(Qa+"crypto unavailable");if(!p)for(;H=10;B/=10,H++);H$-1&&(B[L+1]==null&&(B[L+1]=0),B[L+1]+=B[L]/$|0,B[L]%=$)}return B.reverse()}return function(C,O,$,j,L){var B,H,q,Y,W,ie,le,fe,Ee=C.indexOf("."),Ae=a,Ie=s;for(Ee>=0&&(Y=m,m=0,C=C.replace(".",""),fe=new w(O),ie=fe.pow(C.length-Ee),m=Y,fe.c=T(Gc(ll(ie.c),ie.e,"0"),10,$,b),fe.e=fe.c.length),le=T(C,O,$,L?(B=v,b):(B=b,v)),q=Y=le.length;le[--Y]==0;le.pop());if(!le[0])return B.charAt(0);if(Ee<0?--q:(ie.c=le,ie.e=q,ie.s=j,ie=t(ie,fe,Ae,Ie,$),le=ie.c,W=ie.r,q=ie.e),H=q+Ae+1,Ee=le[H],Y=$/2,W=W||H<0||le[H+1]!=null,W=Ie<4?(Ee!=null||W)&&(Ie==0||Ie==(ie.s<0?3:2)):Ee>Y||Ee==Y&&(Ie==4||W||Ie==6&&le[H-1]&1||Ie==(ie.s<0?8:7)),H<1||!le[0])C=W?Gc(B.charAt(1),-Ae,B.charAt(0)):B.charAt(0);else{if(le.length=H,W)for(--$;++le[--H]>$;)le[H]=0,H||(++q,le=[1].concat(le));for(Y=le.length;!le[--Y];);for(Ee=0,C="";Ee<=Y;C+=B.charAt(le[Ee++]));C=Gc(C,q,B.charAt(0))}return C}}(),t=function(){function b(O,$,j){var L,B,H,q,Y=0,W=O.length,ie=$%vf,le=$/vf|0;for(O=O.slice();W--;)H=O[W]%vf,q=O[W]/vf|0,L=le*H+q*ie,B=ie*H+L%vf*vf+Y,Y=(B/j|0)+(L/vf|0)+le*q,O[W]=B%j;return Y&&(O=[Y].concat(O)),O}function T(O,$,j,L){var B,H;if(j!=L)H=j>L?1:-1;else for(B=H=0;B$[B]?1:-1;break}return H}function C(O,$,j,L){for(var B=0;j--;)O[j]-=B,B=O[j]<$[j]?1:0,O[j]=B*L+O[j]-$[j];for(;!O[0]&&O.length>1;O.splice(0,1));}return function(O,$,j,L,B){var H,q,Y,W,ie,le,fe,Ee,Ae,Ie,De,Ue,ce,de,ve,he,pe,ge=O.s==$.s?1:-1,Ce=O.c,_e=$.c;if(!Ce||!Ce[0]||!_e||!_e[0])return new w(!O.s||!$.s||(Ce?_e&&Ce[0]==_e[0]:!_e)?NaN:Ce&&Ce[0]==0||!_e?ge*0:ge/0);for(Ee=new w(ge),Ae=Ee.c=[],q=O.e-$.e,ge=j+q+1,B||(B=eu,q=fl(O.e/En)-fl($.e/En),ge=ge/En|0),Y=0;_e[Y]==(Ce[Y]||0);Y++);if(_e[Y]>(Ce[Y]||0)&&q--,ge<0)Ae.push(1),W=!0;else{for(de=Ce.length,he=_e.length,Y=0,ge+=2,ie=zu(B/(_e[0]+1)),ie>1&&(_e=b(_e,ie,B),Ce=b(Ce,ie,B),he=_e.length,de=Ce.length),ce=he,Ie=Ce.slice(0,he),De=Ie.length;De=B/2&&ve++;do{if(ie=0,H=T(_e,Ie,he,De),H<0){if(Ue=Ie[0],he!=De&&(Ue=Ue*B+(Ie[1]||0)),ie=zu(Ue/ve),ie>1)for(ie>=B&&(ie=B-1),le=b(_e,ie,B),fe=le.length,De=Ie.length;T(le,Ie,fe,De)==1;)ie--,C(le,he=10;ge/=10,Y++);U(Ee,j+(Ee.e=Y+q*En-1)+1,L,W)}else Ee.e=q,Ee.r=+W;return Ee}}();function I(b,T,C,O){var $,j,L,B,H;if(C==null?C=s:Co(C,0,8),!b.c)return b.toString();if($=b.c[0],L=b.e,T==null)H=ll(b.c),H=O==1||O==2&&(L<=l||L>=u)?U2(H,L):Gc(H,L,"0");else if(b=U(new w(b),T,C),j=b.e,H=ll(b.c),B=H.length,O==1||O==2&&(T<=j||j<=l)){for(;BB){if(--T>0)for(H+=".";T--;H+="0");}else if(T+=j-B,T>0)for(j+1==B&&(H+=".");T--;H+="0");return b.s<0&&$?"-"+H:H}function _(b,T){for(var C,O=1,$=new w(b[0]);O=10;$/=10,O++);return(C=O+C*En-1)>f?b.c=b.e=null:C=10;B/=10,$++);if(j=T-$,j<0)j+=En,L=T,H=W[q=0],Y=H/ie[$-L-1]%10|0;else if(q=DP((j+1)/En),q>=W.length)if(O){for(;W.length<=q;W.push(0));H=Y=0,$=1,j%=En,L=j-En+1}else break e;else{for(H=B=W[q],$=1;B>=10;B/=10,$++);j%=En,L=j-En+$,Y=L<0?0:H/ie[$-L-1]%10|0}if(O=O||T<0||W[q+1]!=null||(L<0?H:H%ie[$-L-1]),O=C<4?(Y||O)&&(C==0||C==(b.s<0?3:2)):Y>5||Y==5&&(C==4||O||C==6&&(j>0?L>0?H/ie[$-L]:0:W[q-1])%10&1||C==(b.s<0?8:7)),T<1||!W[0])return W.length=0,O?(T-=b.e+1,W[0]=ie[(En-T%En)%En],b.e=-T||0):W[0]=b.e=0,b;if(j==0?(W.length=q,B=1,q--):(W.length=q+1,B=ie[En-j],W[q]=L>0?zu(H/ie[$-L]%ie[L])*B:0),O)for(;;)if(q==0){for(j=1,L=W[0];L>=10;L/=10,j++);for(L=W[0]+=B,B=1;L>=10;L/=10,B++);j!=B&&(b.e++,W[0]==eu&&(W[0]=1));break}else{if(W[q]+=B,W[q]!=eu)break;W[q--]=0,B=1}for(j=W.length;W[--j]===0;W.pop());}b.e>f?b.c=b.e=null:b.e=u?U2(T,C):Gc(T,C,"0"),b.s<0?"-"+T:T)}return o.absoluteValue=o.abs=function(){var b=new w(this);return b.s<0&&(b.s=1),b},o.comparedTo=function(b,T){return $m(this,new w(b,T))},o.decimalPlaces=o.dp=function(b,T){var C,O,$,j=this;if(b!=null)return Co(b,0,Ci),T==null?T=s:Co(T,0,8),U(new w(j),b+j.e+1,T);if(!(C=j.c))return null;if(O=(($=C.length-1)-fl(this.e/En))*En,$=C[$])for(;$%10==0;$/=10,O--);return O<0&&(O=0),O},o.dividedBy=o.div=function(b,T){return t(this,new w(b,T),a,s)},o.dividedToIntegerBy=o.idiv=function(b,T){return t(this,new w(b,T),0,1)},o.exponentiatedBy=o.pow=function(b,T){var C,O,$,j,L,B,H,q,Y,W=this;if(b=new w(b),b.c&&!b.isInteger())throw Error(Qa+"Exponent not an integer: "+D(b));if(T!=null&&(T=new w(T)),B=b.e>14,!W.c||!W.c[0]||W.c[0]==1&&!W.e&&W.c.length==1||!b.c||!b.c[0])return Y=new w(Math.pow(+D(W),B?b.s*(2-N2(b)):+D(b))),T?Y.mod(T):Y;if(H=b.s<0,T){if(T.c?!T.c[0]:!T.s)return new w(NaN);O=!H&&W.isInteger()&&T.isInteger(),O&&(W=W.mod(T))}else{if(b.e>9&&(W.e>0||W.e<-1||(W.e==0?W.c[0]>1||B&&W.c[1]>=24e7:W.c[0]<8e13||B&&W.c[0]<=9999975e7)))return j=W.s<0&&N2(b)?-0:0,W.e>-1&&(j=1/j),new w(H?1/j:j);m&&(j=DP(m/En+2))}for(B?(C=new w(.5),H&&(b.s=1),q=N2(b)):($=Math.abs(+D(b)),q=$%2),Y=new w(i);;){if(q){if(Y=Y.times(W),!Y.c)break;j?Y.c.length>j&&(Y.c.length=j):O&&(Y=Y.mod(T))}if($){if($=zu($/2),$===0)break;q=$%2}else if(b=b.times(C),U(b,b.e+1,1),b.e>14)q=N2(b);else{if($=+D(b),$===0)break;q=$%2}W=W.times(W),j?W.c&&W.c.length>j&&(W.c.length=j):O&&(W=W.mod(T))}return O?Y:(H&&(Y=i.div(Y)),T?Y.mod(T):j?U(Y,m,s,L):Y)},o.integerValue=function(b){var T=new w(this);return b==null?b=s:Co(b,0,8),U(T,T.e+1,b)},o.isEqualTo=o.eq=function(b,T){return $m(this,new w(b,T))===0},o.isFinite=function(){return!!this.c},o.isGreaterThan=o.gt=function(b,T){return $m(this,new w(b,T))>0},o.isGreaterThanOrEqualTo=o.gte=function(b,T){return(T=$m(this,new w(b,T)))===1||T===0},o.isInteger=function(){return!!this.c&&fl(this.e/En)>this.c.length-2},o.isLessThan=o.lt=function(b,T){return $m(this,new w(b,T))<0},o.isLessThanOrEqualTo=o.lte=function(b,T){return(T=$m(this,new w(b,T)))===-1||T===0},o.isNaN=function(){return!this.s},o.isNegative=function(){return this.s<0},o.isPositive=function(){return this.s>0},o.isZero=function(){return!!this.c&&this.c[0]==0},o.minus=function(b,T){var C,O,$,j,L=this,B=L.s;if(b=new w(b,T),T=b.s,!B||!T)return new w(NaN);if(B!=T)return b.s=-T,L.plus(b);var H=L.e/En,q=b.e/En,Y=L.c,W=b.c;if(!H||!q){if(!Y||!W)return Y?(b.s=-T,b):new w(W?L:NaN);if(!Y[0]||!W[0])return W[0]?(b.s=-T,b):new w(Y[0]?L:s==3?-0:0)}if(H=fl(H),q=fl(q),Y=Y.slice(),B=H-q){for((j=B<0)?(B=-B,$=Y):(q=H,$=W),$.reverse(),T=B;T--;$.push(0));$.reverse()}else for(O=(j=(B=Y.length)<(T=W.length))?B:T,B=T=0;T0)for(;T--;Y[C++]=0);for(T=eu-1;O>B;){if(Y[--O]=0;){for(C=0,ie=Ue[$]%Ae,le=Ue[$]/Ae|0,L=H,j=$+L;j>$;)q=De[--L]%Ae,Y=De[L]/Ae|0,B=le*q+Y*ie,q=ie*q+B%Ae*Ae+fe[j]+C,C=(q/Ee|0)+(B/Ae|0)+le*Y,fe[j--]=q%Ee;fe[j]=C}return C?++O:fe.splice(0,1),R(b,fe,O)},o.negated=function(){var b=new w(this);return b.s=-b.s||null,b},o.plus=function(b,T){var C,O=this,$=O.s;if(b=new w(b,T),T=b.s,!$||!T)return new w(NaN);if($!=T)return b.s=-T,O.minus(b);var j=O.e/En,L=b.e/En,B=O.c,H=b.c;if(!j||!L){if(!B||!H)return new w($/0);if(!B[0]||!H[0])return H[0]?b:new w(B[0]?O:$*0)}if(j=fl(j),L=fl(L),B=B.slice(),$=j-L){for($>0?(L=j,C=H):($=-$,C=B),C.reverse();$--;C.push(0));C.reverse()}for($=B.length,T=H.length,$-T<0&&(C=H,H=B,B=C,T=$),$=0;T;)$=(B[--T]=B[T]+H[T]+$)/eu|0,B[T]=eu===B[T]?0:B[T]%eu;return $&&(B=[$].concat(B),++L),R(b,B,L)},o.precision=o.sd=function(b,T){var C,O,$,j=this;if(b!=null&&b!==!!b)return Co(b,1,Ci),T==null?T=s:Co(T,0,8),U(new w(j),b,T);if(!(C=j.c))return null;if($=C.length-1,O=$*En+1,$=C[$]){for(;$%10==0;$/=10,O--);for($=C[0];$>=10;$/=10,O++);}return b&&j.e+1>O&&(O=j.e+1),O},o.shiftedBy=function(b){return Co(b,-BP,BP),this.times("1e"+b)},o.squareRoot=o.sqrt=function(){var b,T,C,O,$,j=this,L=j.c,B=j.s,H=j.e,q=a+4,Y=new w("0.5");if(B!==1||!L||!L[0])return new w(!B||B<0&&(!L||L[0])?NaN:L?j:1/0);if(B=Math.sqrt(+D(j)),B==0||B==1/0?(T=ll(L),(T.length+H)%2==0&&(T+="0"),B=Math.sqrt(+T),H=fl((H+1)/2)-(H<0||H%2),B==1/0?T="5e"+H:(T=B.toExponential(),T=T.slice(0,T.indexOf("e")+1)+H),C=new w(T)):C=new w(B+""),C.c[0]){for(H=C.e,B=H+q,B<3&&(B=0);;)if($=C,C=Y.times($.plus(t(j,$,q,1))),ll($.c).slice(0,B)===(T=ll(C.c)).slice(0,B))if(C.e0&&fe>0){for(j=fe%B||B,Y=le.substr(0,j);j0&&(Y+=q+le.slice(j)),ie&&(Y="-"+Y)}O=W?Y+(C.decimalSeparator||"")+((H=+C.fractionGroupSize)?W.replace(new RegExp("\\d{"+H+"}\\B","g"),"$&"+(C.fractionGroupSeparator||"")):W):Y}return(C.prefix||"")+O+(C.suffix||"")},o.toFraction=function(b){var T,C,O,$,j,L,B,H,q,Y,W,ie,le=this,fe=le.c;if(b!=null&&(B=new w(b),!B.isInteger()&&(B.c||B.s!==1)||B.lt(i)))throw Error(Qa+"Argument "+(B.isInteger()?"out of range: ":"not an integer: ")+D(B));if(!fe)return new w(le);for(T=new w(i),q=C=new w(i),O=H=new w(i),ie=ll(fe),j=T.e=ie.length-le.e-1,T.c[0]=$P[(L=j%En)<0?En+L:L],b=!b||B.comparedTo(T)>0?j>0?T:q:B,L=f,f=1/0,B=new w(ie),H.c[0]=0;Y=t(B,T,0,1),$=C.plus(Y.times(O)),$.comparedTo(b)!=1;)C=O,O=$,q=H.plus(Y.times($=q)),H=$,T=B.minus(Y.times($=T)),B=$;return $=t(b.minus(C),O,0,1),H=H.plus($.times(q)),C=C.plus($.times(O)),H.s=q.s=le.s,j=j*2,W=t(q,O,j,s).minus(le).abs().comparedTo(t(H,C,j,s).minus(le).abs())<1?[q,O]:[H,C],f=L,W},o.toNumber=function(){return+D(this)},o.toPrecision=function(b,T){return b!=null&&Co(b,1,Ci),I(this,b,T,2)},o.toString=function(b){var T,C=this,O=C.s,$=C.e;return $===null?O?(T="Infinity",O<0&&(T="-"+T)):T="NaN":(b==null?T=$<=l||$>=u?U2(ll(C.c),$):Gc(ll(C.c),$,"0"):b===10&&x?(C=U(new w(C),a+$+1,s),T=Gc(ll(C.c),C.e,"0")):(Co(b,2,v.length,"Base"),T=n(Gc(ll(C.c),$,"0"),10,b,O,!0)),O<0&&C.c[0]&&(T="-"+T)),T},o.valueOf=o.toJSON=function(){return D(this)},o._isBigNumber=!0,o[Symbol.toStringTag]="BigNumber",o[Symbol.for("nodejs.util.inspect.custom")]=o.valueOf,e!=null&&w.set(e),w}function fl(e){var t=e|0;return e>0||e===t?t:t-1}function ll(e){for(var t,n,r=1,o=e.length,i=e[0]+"";ru^n?1:-1;for(s=(l=o.length)<(u=i.length)?l:u,a=0;ai[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function Co(e,t,n,r){if(en||e!==zu(e))throw Error(Qa+(r||"Argument")+(typeof e=="number"?en?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function N2(e){var t=e.c.length-1;return fl(e.e/En)==t&&e.c[t]%2!=0}function U2(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Gc(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(r=e.length,++t>r){for(o=n,t-=r;--t;o+=n);e+=o}else t{console.log(`💤 ${e/1e3}s ...`),setTimeout(t,e)})}dn.sleep=e$;function t$(e=0,t=2e3){console.log(`random sleep minSleepTime: ${e}, maxSleepTime: ${t}`);let n=e+Math.random()*(t-e);return new Promise(r=>{console.log(`💤 ${n/1e3}s ...`),setTimeout(r,n)})}dn.randomSleep=t$;async function XWe(e,t,n=0){const r=e.open(Df.WalletContractV3R2.create({publicKey:t,workchain:n}));if(!await e.isContractDeployed(r.address))throw"wallet is not deployed";const o=await r.getBalance();if(parseFloat((0,Df.fromNano)(o))<.5)throw`Insufficient Deployer [${r.address.toString()}] funds ${(0,Df.fromNano)(o)}`;return console.log(`Init wallet ${r.address.toString()} | balance: ${(0,Df.fromNano)(await r.getBalance())} | seqno: ${await r.getSeqno()}`),r}dn.initWallet=XWe;async function ZWe(e=""){const t="./build/deploy.config.json",n="org.ton.wallets.v3.r2";let r;if(LP.default.existsSync(t)){console.log(` +* Config file '${t}' found and will be used for deployment!`);const o=LP.default.readFileSync(t,"utf-8"),i=JSON.parse(o);i.deployerMnemonic||(console.log(` - ERROR: '${t}' does not have the key 'deployerMnemonic'`),process.exit(1)),r=i.deployerMnemonic}else{console.log(` +* Config file '${t}' not found, creating a new wallet for deploy..`),r=(await(0,dz.mnemonicNew)(24)).join(" ");const o={created:new Date().toISOString(),deployerWalletType:n,deployerMnemonic:r};LP.default.writeFileSync(t,JSON.stringify(o,null,2)),console.log(` - Created new wallet in '${t}' - keep this file secret!`)}return(0,dz.mnemonicToWalletKey)(r.split(" "),e)}dn.initDeployKey=ZWe;function eze(e){const t={}.FUNC_PATH||"/usr/local/bin/func";try{(0,fz.execSync)(`${t} -o build/tmp.fif -SPA ${e.join(" ")}`)}catch(r){r.message.indexOf("error: `#include` is not a type identifier")>-1?(console.log(` ============================================================================================================ Please update your func compiler to support the latest func features to set custom path to your func compiler please set the env variable "export FUNC_PATH=/usr/local/bin/func" ============================================================================================================ -`),process.exit(1)):console.log(r.message)}return(0,fz.execSync)("/usr/local/bin/fift -s build/_print-hex.fif").toString().trim()}dn.compileFuncToB64=tze;function nze(e,t){return eMath.floor(Math.random()*(t-e+1)+e);dn.randomInt=ize;async function aze(e,t){const r=(await e.runMethod(KS.Address.parse(t),"seqno")).stack.pop();return typeof r=="object"&&r.type=="int"?r.value:null}dn.getSeqno=aze;function sze(e){let t=new Df.TupleBuilder;return t.writeSlice((0,Df.beginCell)().storeAddress(KS.Address.parse(e)).endCell()),t.build()}dn.addressStringToTupleItem=sze;function lze(e){return[{type:"int",value:BigInt(e)}]}dn.intToTupleItem=lze;function uze(e){return e.beginParse().loadAddress()}dn.cellToAddress=uze;function cze(e){return t=>{let n=t;n.storeUint(0,32),n.storeStringTail(e)}}dn.storeComment=cze;async function kre(e,t=10){let n=t;try{return await Promise.all(e)}catch(r){if(n>0){console.log(`Retry attempt ${t-n+1} failed, retrying...`);let o=(t-n)*2e3;await e$(o,o+2e3),await kre(e,n-1)}else throw console.error("All retry attempts failed."),r}}dn.promiseAllWithRetry=kre;async function Ire(e,t,n=10){let r=n;try{if(t in e&&typeof e[t]=="function")return await e[t]();throw new Error(`No method named "${String(t)}" found`)}catch(o){if(r>0){console.log(`Retry attempt ${n-r+1} failed, retrying...`);let i=(n-r)*2e3;return await e$(i,i+2e3),await Ire(e,t,r-1)}else throw console.error("All retry attempts failed."),o}}dn.executeMethodWithRetry=Ire;function dze(e,t,n){let r=(0,GWe.default)(e),o=Object.keys(t);for(let i=o.length-1;i>0;i--){const a=Math.floor(r()*(i+1));[o[i],o[a]]=[o[a],o[i]]}return o.slice(0,n)}dn.chooseRandomKeys=dze;async function fze(e,t){return e.getBalance(KS.Address.parse(t))}dn.getBalance=fze;function pze(e,t,n){return(0,Df.beginCell)().storeUint(wR.Transfer,32).storeUint(1,64).storeCoins(n).storeAddress(e).storeAddress(t).storeBit(!1).storeCoins((0,KS.toNano)("0.001")).storeBit(!1).endCell()}dn._transferJetton=pze;function hze(e){return(0,Df.beginCell)().storeUint(JWe,32).storeUint(0,64).storeAddress(e).storeAddress(null).storeBit(!1).storeCoins((0,KS.toNano)("0.005")).storeBit(!1).endCell()}dn._transferNft=hze;function gze(e,t){return new LP.default(e).multipliedBy(new LP.default(10).pow(new LP.default(9-t))).toString()}dn.convertToNano=gze;var ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.Registry=ht.loadDaoContractState=ht.storeDaoContractState=ht.loadDaoInit=ht.storeDaoInit=ht.loadFwdMsg=ht.storeFwdMsg=ht.loadSetMetadata=ht.storeSetMetadata=ht.loadSetFwdMsgFee=ht.storeSetFwdMsgFee=ht.loadSetProposalOwner=ht.storeSetProposalOwner=ht.loadSetOwner=ht.storeSetOwner=ht.loadRegistryContractState=ht.storeRegistryContractState=ht.loadSetRegistryAdmin=ht.storeSetRegistryAdmin=ht.loadSendToDaoSetFwdMsgFee=ht.storeSendToDaoSetFwdMsgFee=ht.loadSetNewDaoFwdMsgFee=ht.storeSetNewDaoFwdMsgFee=ht.loadSetDeployAndInitDaoFee=ht.storeSetDeployAndInitDaoFee=ht.loadSendDaoInit=ht.storeSendDaoInit=ht.loadDeployAndInitDao=ht.storeDeployAndInitDao=ht.loadRouteDeployAndInitDao=ht.storeRouteDeployAndInitDao=ht.loadChangeOwnerOk=ht.storeChangeOwnerOk=ht.loadChangeOwner=ht.storeChangeOwner=ht.loadFactoryDeploy=ht.storeFactoryDeploy=ht.loadDeployOk=ht.storeDeployOk=ht.loadDeploy=ht.storeDeploy=ht.loadSendParameters=ht.storeSendParameters=ht.loadContext=ht.storeContext=ht.loadStateInit=ht.storeStateInit=void 0;const zo=vr;function mze(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}ht.storeStateInit=mze;function yze(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}ht.loadStateInit=yze;function vze(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}ht.storeContext=vze;function bze(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}ht.loadContext=bze;function Pre(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}ht.storeSendParameters=Pre;function Mre(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}ht.loadSendParameters=Mre;function Ore(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}ht.storeDeploy=Ore;function wze(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}ht.loadDeploy=wze;function Sze(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}ht.storeDeployOk=Sze;function xze(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}ht.loadDeployOk=xze;function Cze(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}ht.storeFactoryDeploy=Cze;function Aze(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}ht.loadFactoryDeploy=Aze;function _ze(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}ht.storeChangeOwner=_ze;function Eze(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}ht.loadChangeOwner=Eze;function Tze(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}ht.storeChangeOwnerOk=Tze;function kze(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}ht.loadChangeOwnerOk=kze;function Ize(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new zo.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}ht.storeRouteDeployAndInitDao=Ize;function Pze(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}ht.loadRouteDeployAndInitDao=Pze;function Rre(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}ht.storeDeployAndInitDao=Rre;function Mze(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}ht.loadDeployAndInitDao=Mze;function Oze(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}ht.storeSendDaoInit=Oze;function Rze(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}ht.loadSendDaoInit=Rze;function Dre(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}ht.storeSetDeployAndInitDaoFee=Dre;function Dze(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}ht.loadSetDeployAndInitDaoFee=Dze;function Bre(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}ht.storeSetNewDaoFwdMsgFee=Bre;function Bze(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}ht.loadSetNewDaoFwdMsgFee=Bze;function $re(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}ht.storeSendToDaoSetFwdMsgFee=$re;function $ze(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}ht.loadSendToDaoSetFwdMsgFee=$ze;function Lre(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}ht.storeSetRegistryAdmin=Lre;function Lze(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}ht.loadSetRegistryAdmin=Lze;function Fze(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}ht.storeRegistryContractState=Fze;function Nze(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}ht.loadRegistryContractState=Nze;function Uze(e){let t=e.readBigNumber(),n=e.readBigNumber(),r=e.readAddress(),o=e.readBigNumber(),i=e.readBigNumber();return{$$type:"RegistryContractState",registryId:t,nextDaoId:n,admin:r,deployAndInitDaoFee:o,newDaosfwdMsgFee:i}}function jze(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}ht.storeSetOwner=jze;function Wze(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}ht.loadSetOwner=Wze;function zze(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}ht.storeSetProposalOwner=zze;function Vze(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}ht.loadSetProposalOwner=Vze;function Hze(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}ht.storeSetFwdMsgFee=Hze;function qze(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}ht.loadSetFwdMsgFee=qze;function Qze(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}ht.storeSetMetadata=Qze;function Kze(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}ht.loadSetMetadata=Kze;function Yze(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(Pre(e.fwdMsg))}}ht.storeFwdMsg=Yze;function Gze(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:Mre(t)}}ht.loadFwdMsg=Gze;function Jze(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}ht.storeDaoInit=Jze;function Xze(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}ht.loadDaoInit=Xze;function Zze(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new zo.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}ht.storeDaoContractState=Zze;function eVe(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}ht.loadDaoContractState=eVe;function tVe(e){return t=>{t.storeInt(e.registryId,257)}}async function pz(e){const t=zo.Cell.fromBase64("te6ccgECIQEABqwAART/APSkE/S88sgLAQIBYgIDAurQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFNs88uCCyPhDAcx/AcoAVUBQRcsfEssfASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yz/J7VQcBAIBIBARA/QBkjB/4HAh10nCH5UwINcLH94gghDJW5tkuuMCIIIQqJaRGbqOHzDTHwGCEKiWkRm68uCB0z8BMTKBEfj4QlJAxwXy9H/gIIILlkvOuo4fMNMfAYILlkvOuvLggdM/ATExggDazPhCUkDHBfL0f+AgghBYFb2GuuMCIAUGBwHoMNMfAYIQyVubZLry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiEMwbBPbPH8IASow0x8BghBYFb2GuvLggdMf0z9ZbBILAfqCEMbWc8q6jnMw0x8BghDG1nPKuvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxgVuc+EJSUMcFkjR/jjJwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAXHBeIU8vR/4AwCxoIAtQD4QW8kE18DJr7y9CYQWAQQNkgH2zxccFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwcFCsgEBRxh8JAvzIVTCCEOy4dutQBcsfUAMg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yRYQWRBLEDpQohBGEEXbPKQOCgAGVSAEAuaBIcX4QlJgxwXy9FVQ2zxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwgEAJyAGCEPTzpgJYyx/LP8kQNEEwGRAkECNtbds8VQN/Hw4BZoIQlGqYtrqOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcA0BOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8DgHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAPAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAhG9eK7Z5tnjYqwcEgIBIBMUAApUdDJTQwIBIBUWAgFIGBkCEbQwO2ebZ42KMBwXALm3ejBOC52Hq6WVz2PQnYc6yVCjbNBOE7rGpaVsj5ZkWnXlv74sRzBOBAq4A3AM7HKZywdVyOS2WHBOA3qTvfKost446np7wKs4ZNBOE7Lpy1Zp2W5nQdLNsozdFJAAAiMCAWIaGwB1sm7jQ1aXBmczovL1FtUWZVRWl2UnBISE5oRmdrQzN1Uno0dkx1RHZvdk1YSm9RdmN2cG5tRHEyQXKCACE6eRtniqCbZ42KMcHQAPpX3aiaGkAAMBnO1E0NQB+GPSAAGOLNMf0x/6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/0z9VQGwV4Pgo1wsKgwm68uCJgQEB1wABAdHbPB4Bhts8cFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgfAHZwUwDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiIIQO5rKAIIQBfXhAAEO+EP4KFjbPCAAogLQ9AQwbQGBZD8BgBD0D2+h8uCHAYFkPyICgBD0F8gByPQAyQHMcAHKAEADWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFoEBAc8AyQ=="),n=zo.Cell.fromBase64("te6cckECPwEADJ8AAQHAAQIBICECAQW/oxQDART/APSkE/S88sgLBAIBYhMFAgEgEQYCASANBwIBSAkIAHWybuNDVpcGZzOi8vUW1RZlVFaXZScEhITmhGZ2tDM3VSejR2THVEdm92TVhKb1F2Y3Zwbm1EcTJBcoIAIBYgsKAA+lfdqJoaQAAwITp5G2eKoJtnjYox8MAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIHQIBIA8OALm3ejBOC52Hq6WVz2PQnYc6yVCjbNBOE7rGpaVsj5ZkWnXlv74sRzBOBAq4A3AM7HKZywdVyOS2WHBOA3qTvfKost446np7wKs4ZNBOE7Lpy1Zp2W5nQdLNsozdFJACEbQwO2ebZ42KMB8QAAIjAhG9eK7Z5tnjYqwfEgAKVHQyU0MC6tAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUU2zzy4ILI+EMBzH8BygBVQFBFyx8Syx8BINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/LP8ntVB8UA/QBkjB/4HAh10nCH5UwINcLH94gghDJW5tkuuMCIIIQqJaRGbqOHzDTHwGCEKiWkRm68uCB0z8BMTKBEfj4QlJAxwXy9H/gIIILlkvOuo4fMNMfAYILlkvOuvLggdM/ATExggDazPhCUkDHBfL0f+AgghBYFb2GuuMCIBkXFQH6ghDG1nPKuo5zMNMfAYIQxtZzyrry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMYFbnPhCUlDHBZI0f44ycCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFAFxwXiFPL0f+AWAWaCEJRqmLa6jqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHAyASow0x8BghBYFb2GuvLggdMf0z9ZbBIYAuaBIcX4QlJgxwXy9FVQ2zxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwgEAJyAGCEPTzpgJYyx/LP8kQNEEwGRAkECNtbds8VQN/HTMB6DDTHwGCEMlbm2S68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhDMGwT2zx/GgLGggC1APhBbyQTXwMmvvL0JhBYBBA2SAfbPFxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwUKyAQFHGHRsC/MhVMIIQ7Lh261AFyx9QAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/JFhBZEEsQOlCiEEYQRds8pDMcAAZVIAQBDvhD+ChY2zweAKIC0PQEMG0BgWQ/AYAQ9A9vofLghwGBZD8iAoAQ9BfIAcj0AMkBzHABygBAA1kg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxaBAQHPAMkBnO1E0NQB+GPSAAGOLNMf0x/6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/0z9VQGwV4Pgo1wsKgwm68uCJgQEB1wABAdHbPCAAdnBTAMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIghA7msoAghAF9eEAAQW/IfwiART/APSkE/S88sgLIwIBYiwkAgEgKiUCASApJgIBSCgnAHWybuNDVpcGZzOi8vUW1SZGpmZEh1UXFBcGk1ekJ0U1JRUDlQUmFxRHlZWjNtWHhrOFZjMXpwTURKboIAARsK+7UTQ0gABgALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCEb14rtnm2eNjNDorAAxUdFNUdFMDmtAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUV2zzy4ILI+EMBzH8BygBVUNs8ye1UOi8tAchQZSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlADINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFssfyFADLgBGINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/JAcwE7AGSMH/gcCHXScIflTAg1wsf3iCCEOy4duu64wIgghDCtB1Duo46MNMfAYIQwrQdQ7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMYERTfhCGMcFF/L0f+AgghDQ4752uuMCIIIQ2i+Qf7rjAiA4NzYwA/KCEPTzpgK6jiAw0x8BghD086YCuvLggdM/ATExggDKtfhCUmDHBfL0f+AgghBkw8Pkuo85MNMfAYIQZMPD5Lry4IHbPGwXgRFN+EJS4McFkX+W+EJSwMcF4vL0ggDrDfhBbyQTXwMpvvL02zx/4IIQlGqYtrrjAjBwNTMxAU7THwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH8yATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPDMByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsANACYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzACS0gD6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAgQEB1wDSAAGR1JJtAeLSAAGR1JJtAeLSAAGR1JJtAeJVYAB2MNMfAYIQ2i+Qf7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMTKBEU34QlJwxwXy9H8AdjDTHwGCENDjvna68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDE0gRFN+EJScMcF8vR/Aegw0x8BghDsuHbruvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/VTBsFDkAjjQ0NYELoXAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhQCMcFF/L0gRFN+EJSYMcF8vR/Ao7tRNDUAfhj0gABjoTbPGwW4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPD07AbxwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIcCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgPABuyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhBQBOCI41+pMaAAAHK+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0x/UAdA+AFb6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/MBAmECUQJBAjgxSqCQ==");let r=(0,zo.beginCell)();r.storeRef(n),r.storeUint(0,1),tVe({$$type:"Registry_init_args",registryId:e})(r);const o=r.endCell();return{code:t,data:o}}const nVe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},rVe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],oVe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"RegistryContractState",optional:!1}},{name:"nextDaoId",arguments:[],returnType:{kind:"simple",type:"int",optional:!1,format:257}},{name:"daoAddress",arguments:[{name:"daoId",type:{kind:"simple",type:"int",optional:!1,format:257}}],returnType:{kind:"simple",type:"address",optional:!1}}],iVe=[{receiver:"internal",message:{kind:"typed",type:"DeployAndInitDao"}},{receiver:"internal",message:{kind:"typed",type:"SetDeployAndInitDaoFee"}},{receiver:"internal",message:{kind:"typed",type:"SetNewDaoFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"SendToDaoSetFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"SetRegistryAdmin"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];class YA{static async init(t){return await pz(t)}static async fromInit(t){const n=await pz(t),r=(0,zo.contractAddress)(0,n);return new YA(r,n)}static fromAddress(t){return new YA(t)}constructor(t,n){this.abi={types:rVe,getters:oVe,receivers:iVe,errors:nVe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="DeployAndInitDao"&&(i=(0,zo.beginCell)().store(Rre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetDeployAndInitDaoFee"&&(i=(0,zo.beginCell)().store(Dre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetNewDaoFwdMsgFee"&&(i=(0,zo.beginCell)().store(Bre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SendToDaoSetFwdMsgFee"&&(i=(0,zo.beginCell)().store($re(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetRegistryAdmin"&&(i=(0,zo.beginCell)().store(Lre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="Deploy"&&(i=(0,zo.beginCell)().store(Ore(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new zo.TupleBuilder,r=(await t.get("state",n.build())).stack;return Uze(r)}async getNextDaoId(t){let n=new zo.TupleBuilder;return(await t.get("nextDaoId",n.build())).stack.readBigNumber()}async getDaoAddress(t,n){let r=new zo.TupleBuilder;return r.writeNumber(n),(await t.get("daoAddress",r.build())).stack.readAddress()}}ht.Registry=YA;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.Dao=pt.loadDaoContractState=pt.storeDaoContractState=pt.loadDaoInit=pt.storeDaoInit=pt.loadFwdMsg=pt.storeFwdMsg=pt.loadSetMetadata=pt.storeSetMetadata=pt.loadSetFwdMsgFee=pt.storeSetFwdMsgFee=pt.loadSetProposalOwner=pt.storeSetProposalOwner=pt.loadSetOwner=pt.storeSetOwner=pt.loadRegistryContractState=pt.storeRegistryContractState=pt.loadSetRegistryAdmin=pt.storeSetRegistryAdmin=pt.loadSendToDaoSetFwdMsgFee=pt.storeSendToDaoSetFwdMsgFee=pt.loadSetNewDaoFwdMsgFee=pt.storeSetNewDaoFwdMsgFee=pt.loadSetDeployAndInitDaoFee=pt.storeSetDeployAndInitDaoFee=pt.loadSendDaoInit=pt.storeSendDaoInit=pt.loadDeployAndInitDao=pt.storeDeployAndInitDao=pt.loadRouteDeployAndInitDao=pt.storeRouteDeployAndInitDao=pt.loadChangeOwnerOk=pt.storeChangeOwnerOk=pt.loadChangeOwner=pt.storeChangeOwner=pt.loadFactoryDeploy=pt.storeFactoryDeploy=pt.loadDeployOk=pt.storeDeployOk=pt.loadDeploy=pt.storeDeploy=pt.loadSendParameters=pt.storeSendParameters=pt.loadContext=pt.storeContext=pt.loadStateInit=pt.storeStateInit=void 0;const Vo=vr;function aVe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}pt.storeStateInit=aVe;function sVe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}pt.loadStateInit=sVe;function lVe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}pt.storeContext=lVe;function uVe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}pt.loadContext=uVe;function Fre(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}pt.storeSendParameters=Fre;function Nre(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}pt.loadSendParameters=Nre;function Ure(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}pt.storeDeploy=Ure;function cVe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}pt.loadDeploy=cVe;function dVe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}pt.storeDeployOk=dVe;function fVe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}pt.loadDeployOk=fVe;function pVe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}pt.storeFactoryDeploy=pVe;function hVe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}pt.loadFactoryDeploy=hVe;function gVe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}pt.storeChangeOwner=gVe;function mVe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}pt.loadChangeOwner=mVe;function yVe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}pt.storeChangeOwnerOk=yVe;function vVe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}pt.loadChangeOwnerOk=vVe;function bVe(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new Vo.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}pt.storeRouteDeployAndInitDao=bVe;function wVe(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}pt.loadRouteDeployAndInitDao=wVe;function SVe(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}pt.storeDeployAndInitDao=SVe;function xVe(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}pt.loadDeployAndInitDao=xVe;function CVe(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}pt.storeSendDaoInit=CVe;function AVe(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}pt.loadSendDaoInit=AVe;function _Ve(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}pt.storeSetDeployAndInitDaoFee=_Ve;function EVe(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}pt.loadSetDeployAndInitDaoFee=EVe;function TVe(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}pt.storeSetNewDaoFwdMsgFee=TVe;function kVe(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}pt.loadSetNewDaoFwdMsgFee=kVe;function IVe(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}pt.storeSendToDaoSetFwdMsgFee=IVe;function PVe(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}pt.loadSendToDaoSetFwdMsgFee=PVe;function MVe(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}pt.storeSetRegistryAdmin=MVe;function OVe(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}pt.loadSetRegistryAdmin=OVe;function RVe(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}pt.storeRegistryContractState=RVe;function DVe(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}pt.loadRegistryContractState=DVe;function jre(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}pt.storeSetOwner=jre;function BVe(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}pt.loadSetOwner=BVe;function Wre(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}pt.storeSetProposalOwner=Wre;function $Ve(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}pt.loadSetProposalOwner=$Ve;function zre(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}pt.storeSetFwdMsgFee=zre;function LVe(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}pt.loadSetFwdMsgFee=LVe;function Vre(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}pt.storeSetMetadata=Vre;function FVe(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}pt.loadSetMetadata=FVe;function Hre(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(Fre(e.fwdMsg))}}pt.storeFwdMsg=Hre;function NVe(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:Nre(t)}}pt.loadFwdMsg=NVe;function qre(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}pt.storeDaoInit=qre;function UVe(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}pt.loadDaoInit=UVe;function jVe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new Vo.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}pt.storeDaoContractState=jVe;function WVe(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}pt.loadDaoContractState=WVe;function zVe(e){let t=e.readAddress(),n=e.readAddress(),r=e.readAddress(),o=e.readAddress(),i=e.readBigNumber(),a=e.readBigNumber();return{$$type:"DaoContractState",registry:t,owner:n,proposalOwner:r,metadata:o,daoIndex:i,fwdMsgFee:a}}function VVe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeInt(e.daoIndex,257)}}async function hz(e,t){const n=Vo.Cell.fromBase64("te6ccgECHQEABrQAART/APSkE/S88sgLAQIBYgIDA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFds88uCCyPhDAcx/AcoAVVDbPMntVBMEBQIBIBESBOwBkjB/4HAh10nCH5UwINcLH94gghDsuHbruuMCIIIQwrQdQ7qOOjDTHwGCEMK0HUO68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDGBEU34QhjHBRfy9H/gIIIQ0OO+drrjAiCCENovkH+64wIgBgcICQHIUGUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8hQAxAB6DDTHwGCEOy4duu68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0z9VMGwUCgB2MNMfAYIQ0OO+drry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMTSBEU34QlJwxwXy9H8AdjDTHwGCENovkH+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEygRFN+EJScMcF8vR/A/KCEPTzpgK6jiAw0x8BghD086YCuvLggdM/ATExggDKtfhCUmDHBfL0f+AgghBkw8Pkuo85MNMfAYIQZMPD5Lry4IHbPGwXgRFN+EJS4McFkX+W+EJSwMcF4vL0ggDrDfhBbyQTXwMpvvL02zx/4IIQlGqYtrrjAjBwCw4MAI40NDWBC6FwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAjHBRfy9IERTfhCUmDHBfL0fwCS0gD6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAgQEB1wDSAAGR1JJtAeLSAAGR1JJtAeLSAAGR1JJtAeJVYAFO0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/DQE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwOAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AA8AmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwARiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yQHMAhG9eK7Z5tnjYzQTFAIBIBkaAo7tRNDUAfhj0gABjoTbPGwW4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPBUWAAxUdFNUdFMByvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf1AHQFwG8cCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwIBgAVvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0z8wECYQJRAkECMAbshyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIQUATgiONfqTGgAAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAIBSBscABGwr7tRNDSAAGAAdbJu40NWlwZnM6Ly9RbVJkamZkSHVRcUFwaTV6QnRTUlFQOVBSYXFEeVlaM21YeGs4VmMxenBNREpugg"),r=Vo.Cell.fromBase64("te6cckECHwEABr4AAQHAAQEFoMh/AgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtUmRqZmRIdVFxQXBpNXpCdFNSUVA5UFJhcUR5WVozbVh4azhWYzF6cE1ESm6CAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjYzQaCwAMVHRTVHRTA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFds88uCCyPhDAcx/AcoAVVDbPMntVBoPDQHIUGUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8hQAw4ARiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yQHMBOwBkjB/4HAh10nCH5UwINcLH94gghDsuHbruuMCIIIQwrQdQ7qOOjDTHwGCEMK0HUO68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDGBEU34QhjHBRfy9H/gIIIQ0OO+drrjAiCCENovkH+64wIgGBcWEAPyghD086YCuo4gMNMfAYIQ9POmArry4IHTPwExMYIAyrX4QlJgxwXy9H/gIIIQZMPD5LqPOTDTHwGCEGTDw+S68uCB2zxsF4ERTfhCUuDHBZF/lvhCUsDHBeLy9IIA6w34QW8kE18DKb7y9Ns8f+CCEJRqmLa64wIwcBUTEQFO0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/EgE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwTAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7ABQAmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwAktIA+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAIEBAdcA0gABkdSSbQHi0gABkdSSbQHi0gABkdSSbQHiVWAAdjDTHwGCENovkH+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEygRFN+EJScMcF8vR/AHYw0x8BghDQ4752uvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxNIERTfhCUnDHBfL0fwHoMNMfAYIQ7Lh267ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTP1UwbBQZAI40NDWBC6FwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAjHBRfy9IERTfhCUmDHBfL0fwKO7UTQ1AH4Y9IAAY6E2zxsFuD4KNcLCoMJuvLgifpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgBgQEB1wBZAtEB2zwdGwG8cCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwIBwAbshyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIQUATgiONfqTGgAAByvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf1AHQHgBW+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTPzAQJhAlECQQIz1VV6M=");let o=(0,Vo.beginCell)();o.storeRef(r),o.storeUint(0,1),VVe({$$type:"Dao_init_args",registry:e,daoIndex:t})(o);const i=o.endCell();return{code:n,data:i}}const HVe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},qVe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],QVe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"DaoContractState",optional:!1}}],KVe=[{receiver:"internal",message:{kind:"typed",type:"DaoInit"}},{receiver:"internal",message:{kind:"typed",type:"SetOwner"}},{receiver:"internal",message:{kind:"typed",type:"SetProposalOwner"}},{receiver:"internal",message:{kind:"typed",type:"SetMetadata"}},{receiver:"internal",message:{kind:"typed",type:"SetFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"FwdMsg"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let YVe=class SR{static async init(t,n){return await hz(t,n)}static async fromInit(t,n){const r=await hz(t,n),o=(0,Vo.contractAddress)(0,r);return new SR(o,r)}static fromAddress(t){return new SR(t)}constructor(t,n){this.abi={types:qVe,getters:QVe,receivers:KVe,errors:HVe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="DaoInit"&&(i=(0,Vo.beginCell)().store(qre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetOwner"&&(i=(0,Vo.beginCell)().store(jre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetProposalOwner"&&(i=(0,Vo.beginCell)().store(Wre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetMetadata"&&(i=(0,Vo.beginCell)().store(Vre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetFwdMsgFee"&&(i=(0,Vo.beginCell)().store(zre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="FwdMsg"&&(i=(0,Vo.beginCell)().store(Hre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="Deploy"&&(i=(0,Vo.beginCell)().store(Ure(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new Vo.TupleBuilder,r=(await t.get("state",n.build())).stack;return zVe(r)}};pt.Dao=YVe;var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.Metadata=ir.loadMetadataState=ir.storeMetadataState=ir.loadFactoryDeploy=ir.storeFactoryDeploy=ir.loadDeployOk=ir.storeDeployOk=ir.loadDeploy=ir.storeDeploy=ir.loadSendParameters=ir.storeSendParameters=ir.loadContext=ir.storeContext=ir.loadStateInit=ir.storeStateInit=void 0;const xl=vr;function GVe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}ir.storeStateInit=GVe;function JVe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}ir.loadStateInit=JVe;function XVe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}ir.storeContext=XVe;function ZVe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}ir.loadContext=ZVe;function eHe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}ir.storeSendParameters=eHe;function tHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}ir.loadSendParameters=tHe;function Qre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}ir.storeDeploy=Qre;function nHe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}ir.loadDeploy=nHe;function rHe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}ir.storeDeployOk=rHe;function oHe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}ir.loadDeployOk=oHe;function iHe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}ir.storeFactoryDeploy=iHe;function aHe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}ir.loadFactoryDeploy=aHe;function sHe(e){return t=>{let n=t;n.storeStringRefTail(e.avatar),n.storeStringRefTail(e.name),n.storeStringRefTail(e.about);let r=new xl.Builder;r.storeStringRefTail(e.website),r.storeStringRefTail(e.terms),r.storeStringRefTail(e.telegram);let o=new xl.Builder;o.storeStringRefTail(e.github),o.storeAddress(e.jetton),o.storeAddress(e.nft),o.storeBit(e.hide),o.storeStringRefTail(e.dns),r.storeRef(o.endCell()),n.storeRef(r.endCell())}}ir.storeMetadataState=sHe;function lHe(e){let t=e,n=t.loadStringRefTail(),r=t.loadStringRefTail(),o=t.loadStringRefTail(),i=t.loadRef().beginParse(),a=i.loadStringRefTail(),s=i.loadStringRefTail(),l=i.loadStringRefTail(),u=i.loadRef().beginParse(),c=u.loadStringRefTail(),f=u.loadAddress(),p=u.loadAddress(),g=u.loadBit(),m=u.loadStringRefTail();return{$$type:"MetadataState",avatar:n,name:r,about:o,website:a,terms:s,telegram:l,github:c,jetton:f,nft:p,hide:g,dns:m}}ir.loadMetadataState=lHe;function uHe(e){let t=e.readString(),n=e.readString(),r=e.readString(),o=e.readString(),i=e.readString(),a=e.readString(),s=e.readString(),l=e.readAddress(),u=e.readAddress(),c=e.readBoolean(),f=e.readString();return{$$type:"MetadataState",avatar:t,name:n,about:r,website:o,terms:i,telegram:a,github:s,jetton:l,nft:u,hide:c,dns:f}}function cHe(e){return t=>{let n=t;n.storeStringRefTail(e.avatar),n.storeStringRefTail(e.name);let r=new xl.Builder;r.storeStringRefTail(e.about),r.storeStringRefTail(e.website),r.storeStringRefTail(e.terms);let o=new xl.Builder;o.storeStringRefTail(e.telegram),o.storeStringRefTail(e.github),o.storeAddress(e.jetton),o.storeAddress(e.nft),o.storeBit(e.hide),o.storeStringRefTail(e.dns),r.storeRef(o.endCell()),n.storeRef(r.endCell())}}async function gz(e,t,n,r,o,i,a,s,l,u,c){const f=xl.Cell.fromBase64("te6ccgECFAEAA/EAART/APSkE/S88sgLAQIBYgIDA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVGts88uCCyPhDAcx/AcoAVaDbPMntVAwEBQIBIAoLAaQBkjB/4HAh10nCH5UwINcLH94gwAAi10nBIbCSW3/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwBgHAyFALzxbJUAvMyFAJzxbJUAjMyMhQCM8WyVAHzMhQBs8WyVAFzMhQBM8WyVADzMjIUAPPFslYzMhQA88WyVjMWCDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlADCQE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwHAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AAgAmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwAXiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhTKAMhQA88WyVjMyQHMyQHMAhG9eK7Z5tnjZdwMDQIBIBARAfTtRNDUAfhj0gABjm3UAdAB1AHQAdQB0NQB0AHUAdAB1AHQAdQw0NQB0AHUAdAB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdIA1DDQEJsQmmwb4A4AFlR6mFR6mFR6mFOpASL4KNcLCoMJuvLgids8C9FVCQ8A1tQB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB1DDQ1AHQAdQB0AH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0gDUMNAQmxCaALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCAUgSEwARsK+7UTQ0gABgAHWybuNDVpcGZzOi8vUW1ZS1VnNWE2RHM0aGhXUHVtelozR2IzR1B6ODZ1ZG12UmRxSDdrd1VObnY0dIIA=="),p=xl.Cell.fromBase64("te6cckECFgEAA/sAAQHAAQEFoDu3AgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtWUtVZzVhNkRzNGhoV1B1bXpaM0diM0dQejg2dWRtdlJkcUg3a3dVTm52NHSCAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjZdwTCwAWVHqYVHqYVHqYU6kDmtAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUa2zzy4ILI+EMBzH8BygBVoNs8ye1UEw8NAcDIUAvPFslQC8zIUAnPFslQCMzIyFAIzxbJUAfMyFAGzxbJUAXMyFAEzxbJUAPMyMhQA88WyVjMyFADzxbJWMxYINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAMOAF4g10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYUygDIUAPPFslYzMkBzMkBzAGkAZIwf+BwIddJwh+VMCDXCx/eIMAAItdJwSGwklt/4IIQlGqYtrqOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcBABOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8EQHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wASAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAfTtRNDUAfhj0gABjm3UAdAB1AHQAdQB0NQB0AHUAdAB1AHQAdQw0NQB0AHUAdAB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdIA1DDQEJsQmmwb4BQBIvgo1wsKgwm68uCJ2zwL0VUJFQDW1AHQAdQB0AHUAdDUAdAB1AHQAdQB0AHUMNDUAdAB1AHQAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHSANQw0BCbEJrDtO+a");let g=(0,xl.beginCell)();g.storeRef(p),g.storeUint(0,1),cHe({$$type:"Metadata_init_args",avatar:e,name:t,about:n,website:r,terms:o,telegram:i,github:a,jetton:s,nft:l,hide:u,dns:c})(g);const m=g.endCell();return{code:f,data:m}}const dHe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"}},fHe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"MetadataState",header:null,fields:[{name:"avatar",type:{kind:"simple",type:"string",optional:!1}},{name:"name",type:{kind:"simple",type:"string",optional:!1}},{name:"about",type:{kind:"simple",type:"string",optional:!1}},{name:"website",type:{kind:"simple",type:"string",optional:!1}},{name:"terms",type:{kind:"simple",type:"string",optional:!1}},{name:"telegram",type:{kind:"simple",type:"string",optional:!1}},{name:"github",type:{kind:"simple",type:"string",optional:!1}},{name:"jetton",type:{kind:"simple",type:"address",optional:!1}},{name:"nft",type:{kind:"simple",type:"address",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}},{name:"dns",type:{kind:"simple",type:"string",optional:!1}}]}],pHe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"MetadataState",optional:!1}}],hHe=[{receiver:"internal",message:{kind:"empty"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let gHe=class xR{static async init(t,n,r,o,i,a,s,l,u,c,f){return await gz(t,n,r,o,i,a,s,l,u,c,f)}static async fromInit(t,n,r,o,i,a,s,l,u,c,f){const p=await gz(t,n,r,o,i,a,s,l,u,c,f),g=(0,xl.contractAddress)(0,p);return new xR(g,p)}static fromAddress(t){return new xR(t)}constructor(t,n){this.abi={types:fHe,getters:pHe,receivers:hHe,errors:dHe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o===null&&(i=new xl.Cell),o&&typeof o=="object"&&!(o instanceof xl.Slice)&&o.$$type==="Deploy"&&(i=(0,xl.beginCell)().store(Qre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new xl.TupleBuilder,r=(await t.get("state",n.build())).stack;return uHe(r)}};ir.Metadata=gHe;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ProposalDeployer=Dt.loadProposalContractState=Dt.storeProposalContractState=Dt.loadUpdateProposal=Dt.storeUpdateProposal=Dt.loadVote=Dt.storeVote=Dt.loadProposalInit=Dt.storeProposalInit=Dt.loadParams=Dt.storeParams=Dt.loadSendUpdateProposal=Dt.storeSendUpdateProposal=Dt.loadSendProposalInit=Dt.storeSendProposalInit=Dt.loadDeployAndInitProposal=Dt.storeDeployAndInitProposal=Dt.loadChangeOwnerOk=Dt.storeChangeOwnerOk=Dt.loadChangeOwner=Dt.storeChangeOwner=Dt.loadFactoryDeploy=Dt.storeFactoryDeploy=Dt.loadDeployOk=Dt.storeDeployOk=Dt.loadDeploy=Dt.storeDeploy=Dt.loadSendParameters=Dt.storeSendParameters=Dt.loadContext=Dt.storeContext=Dt.loadStateInit=Dt.storeStateInit=void 0;const Ea=vr;function mHe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}Dt.storeStateInit=mHe;function yHe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}Dt.loadStateInit=yHe;function vHe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}Dt.storeContext=vHe;function bHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}Dt.loadContext=bHe;function wHe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}Dt.storeSendParameters=wHe;function SHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}Dt.loadSendParameters=SHe;function Kre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}Dt.storeDeploy=Kre;function xHe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}Dt.loadDeploy=xHe;function CHe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}Dt.storeDeployOk=CHe;function AHe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}Dt.loadDeployOk=AHe;function _He(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}Dt.storeFactoryDeploy=_He;function EHe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}Dt.loadFactoryDeploy=EHe;function THe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}Dt.storeChangeOwner=THe;function kHe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}Dt.loadChangeOwner=kHe;function IHe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}Dt.storeChangeOwnerOk=IHe;function PHe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}Dt.loadChangeOwnerOk=PHe;function Yre(e){return t=>{let n=t;n.storeUint(1496883659,32),n.store(Zy(e.body))}}Dt.storeDeployAndInitProposal=Yre;function MHe(e){let t=e;if(t.loadUint(32)!==1496883659)throw Error("Invalid prefix");return{$$type:"DeployAndInitProposal",body:ev(t)}}Dt.loadDeployAndInitProposal=MHe;function OHe(e){return t=>{let n=t;n.storeUint(2746622614,32),n.store(Zy(e.body))}}Dt.storeSendProposalInit=OHe;function RHe(e){let t=e;if(t.loadUint(32)!==2746622614)throw Error("Invalid prefix");return{$$type:"SendProposalInit",body:ev(t)}}Dt.loadSendProposalInit=RHe;function Gre(e){return t=>{let n=t;n.storeUint(2568858687,32),n.storeAddress(e.proposalAddress),n.store(Zy(e.updateParams))}}Dt.storeSendUpdateProposal=Gre;function DHe(e){let t=e;if(t.loadUint(32)!==2568858687)throw Error("Invalid prefix");let n=t.loadAddress(),r=ev(t);return{$$type:"SendUpdateProposal",proposalAddress:n,updateParams:r}}Dt.loadSendUpdateProposal=DHe;function Zy(e){return t=>{let n=t;n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ea.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}Dt.storeParams=Zy;function ev(e){let t=e,n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadUintBig(64),i=t.loadStringRefTail(),a=t.loadStringRefTail(),s=t.loadStringRefTail(),l=t.loadRef().beginParse(),u=l.loadStringRefTail(),c=l.loadStringRefTail(),f=l.loadBit();return{$$type:"Params",proposalStartTime:n,proposalEndTime:r,proposalSnapshotTime:o,votingSystem:i,votingPowerStrategies:a,title:s,description:u,quorum:c,hide:f}}Dt.loadParams=ev;function BHe(e){return t=>{let n=t;n.storeUint(1008560988,32),n.store(Zy(e.body))}}Dt.storeProposalInit=BHe;function $He(e){let t=e;if(t.loadUint(32)!==1008560988)throw Error("Invalid prefix");return{$$type:"ProposalInit",body:ev(t)}}Dt.loadProposalInit=$He;function LHe(e){return t=>{let n=t;n.storeUint(2084703906,32),n.storeStringRefTail(e.comment)}}Dt.storeVote=LHe;function FHe(e){let t=e;if(t.loadUint(32)!==2084703906)throw Error("Invalid prefix");return{$$type:"Vote",comment:t.loadStringRefTail()}}Dt.loadVote=FHe;function NHe(e){return t=>{let n=t;n.storeUint(817223820,32),n.store(Zy(e.updateParams))}}Dt.storeUpdateProposal=NHe;function UHe(e){let t=e;if(t.loadUint(32)!==817223820)throw Error("Invalid prefix");return{$$type:"UpdateProposal",updateParams:ev(t)}}Dt.loadUpdateProposal=UHe;function jHe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeUint(e.id,32),n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ea.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}Dt.storeProposalContractState=jHe;function WHe(e){let t=e,n=t.loadAddress(),r=t.loadUintBig(32),o=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),s=t.loadStringRefTail(),l=t.loadStringRefTail(),u=t.loadStringRefTail(),c=t.loadRef().beginParse(),f=c.loadStringRefTail(),p=c.loadStringRefTail(),g=c.loadBit();return{$$type:"ProposalContractState",proposalDeployer:n,id:r,proposalStartTime:o,proposalEndTime:i,proposalSnapshotTime:a,votingSystem:s,votingPowerStrategies:l,title:u,description:f,quorum:p,hide:g}}Dt.loadProposalContractState=WHe;function zHe(e){return t=>{t.storeAddress(e.dao)}}async function mz(e){const t=Ea.Cell.fromBase64("te6ccgECHwEABRgAART/APSkE/S88sgLAQIBYgIDAtTQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxa2zzy4ILI+EMBzH8BygBZWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFssfye1UHAQCASAODwSGAZIwf+BwIddJwh+VMCDXCx/eIIIQWTihy7qPFTDTHwGCEFk4ocu68uCB2zxsGds8f+AgghCZHaw/uuMCghCUapi2ugkFBgcE9oE0W/hCUsDHBfL0VBqQ2zxccFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhVVXBwUN+AQA/IVYCCEDwda1xQCssfCds8yRYVEEgQN1ByEEYQRds8ARMKDAgDxjDTHwGCEJkdrD+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHbPBCabBqCAMQm+EJS0McF8vRVUnBwUKmAQAnIVYCCEDC12IxQCssfCds8yRAkECNtbds8fwkKDAFYjqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHALAAKkAFjTP9M/0z/UAdAB1AHQAdQB0AHUAdDUAdAB1AHQAdIAMBA5EDgQNxA2EDUQNABuUInLPxbLPxTLP8hQA88WyVjMyFjPFskBzMhYzxbJAczIyFADzxbJWMzIUAPPFslYzBLKAMkBzAE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwMAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AA0AmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwCAW4QEQIBIBYXAhOz4LbPFjbPGwhgHBICEbMuds82zxsIYBwVAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIEwEO+EP4KFjbPBQAogLQ9AQwbQGBMS4BgBD0D2+h8uCHAYExLiICgBD0F8gByPQAyQHMcAHKAEADWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFoEBAc8AyQACIAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAgEgGBkCASAaGwIRtF87Z5tnjYQwHB0AEbCvu1E0NIAAYAB1sm7jQ1aXBmczovL1FtWjgzeW5pN2dxM1oydXMyVEVVQUFDN0xkVTc1cVV1d2d5ZmhxM1N4eENZdzeCABwO1E0NQB+GPSAAGOJfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0x9ZbBLg+CjXCwqDCbry4In6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdHbPB4AAiEAAnA="),n=Ea.Cell.fromBase64("te6cckECMwEAB+wAAQHAAQIBIBsCAQW+xawDART/APSkE/S88sgLBAIBYhEFAgEgDAYCASAjBwIBIAoIAhG0Xztnm2eNhDAZCQACIQIBICILAHWybuNDVpcGZzOi8vUW1aODN5bmk3Z3EzWjJ1czJURVVBQUM3TGRVNzVxVXV3Z3lmaHEzU3h4Q1l3N4IAIBbg8NAhGzLnbPNs8bCGAZDgACIAITs+C2zxY2zxsIYBkQAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIFwLU0AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8Wts88uCCyPhDAcx/AcoAWVkg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8ntVBkSBIYBkjB/4HAh10nCH5UwINcLH94gghBZOKHLuo8VMNMfAYIQWTihy7ry4IHbPGwZ2zx/4CCCEJkdrD+64wKCEJRqmLa6LxQTKQPGMNMfAYIQmR2sP7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAds8EJpsGoIAxCb4QlLQxwXy9FVScHBQqYBACchVgIIQMLXYjFAKyx8J2zzJECQQI21t2zx/LxYrBPaBNFv4QlLAxwXy9FQakNs8XHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVVVwcFDfgEAPyFWAghA8HWtcUArLHwnbPMkWFRBIEDdQchBGEEXbPAEXFisVAAKkAG5Qics/Fss/FMs/yFADzxbJWMzIWM8WyQHMyFjPFskBzMjIUAPPFslYzMhQA88WyVjMEsoAyQHMAQ74Q/goWNs8GACiAtD0BDBtAYExLgGAEPQPb6Hy4IcBgTEuIgKAEPQXyAHI9ADJAcxwAcoAQANZINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WgQEBzwDJAcDtRNDUAfhj0gABjiX6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMfWWwS4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHR2zwaAAJwAQW9iXQcART/APSkE/S88sgLHQIBYiYeAgEgJB8CASAjIAIBSCIhAHWybuNDVpcGZzOi8vUW1WU1BMWU5BcTVYM0pKSFNwWWtIRWRCVmNlQVNMcXl4SzhmczRCVHdOMjg2YYIAARsK+7UTQ0gABgALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCEb14rtnm2eNl3DAlABZUephUephUephTqQN60AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8VRrbPPLggjAoJwDOyPhDAcx/AcoAVaBQuiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhjLHxbLPxTLPxLLP8hYzxbJAczIWM8WyQHMyMhQA88WyVjMyFADzxbJWMzIUATPFslQA8zKAMkBzMntVATuAZIwf+BwIddJwh+VMCDXCx/eIIIQPB1rXLqOvzDTHwGCEDwda1y68uCB2zxsGTk5OTk5OYELoQzAAJMKwACSOnDikwjAAJI4cOIa8vSBEU34QlLAxwXy9BBnf+AgghB8Qg6iuuMCIIIQMLXYjLrjAoIQlGqYtrovLi0pAViOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcCoBOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8KwHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAsAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAZIw0x8BghAwtdiMuvLggds8bBk5OTk5OTmCAO9eLMMAkwvDAJI7cOKTCcMAkjlw4hry9IERTfhCUtDHBfL0gSLb+CNQC7sa8vR/LwBMMNMfAYIQfEIOorry4IHUAdAxMIIAzG74Iyq+lPgjKbuRcOLy9H8AWNM/0z/TP9QB0AHUAdAB1AHQAdQB0NQB0AHUAdAB0gAwEDkQOBA3EDYQNRA0AdTtRNDUAfhj0gABjlL6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf0z/TP9M/1AHQAdQB0AHUAdDUAdAB1AHQAdQB0AHSADAQSxBKEEkQSBBHEEYQRWwb4Pgo1wsKgwm68uCJMQFW+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPDIAHHBTAIsIiwiLCIsIiwhwt2X6Qg==");let r=(0,Ea.beginCell)();r.storeRef(n),r.storeUint(0,1),zHe({$$type:"ProposalDeployer_init_args",dao:e})(r);const o=r.endCell();return{code:t,data:o}}const VHe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},8923:{message:"Update proposals is possible only before start time"},13403:{message:"only dao can send create proposal message"},50214:{message:"only dao can send update proposal message"},52334:{message:"Incative proposal"},61278:{message:"Propsal was not initialized yet"}},HHe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitProposal",header:1496883659,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"SendProposalInit",header:2746622614,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"SendUpdateProposal",header:2568858687,fields:[{name:"proposalAddress",type:{kind:"simple",type:"address",optional:!1}},{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Params",header:null,fields:[{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]},{name:"ProposalInit",header:1008560988,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Vote",header:2084703906,fields:[{name:"comment",type:{kind:"simple",type:"string",optional:!1}}]},{name:"UpdateProposal",header:817223820,fields:[{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"ProposalContractState",header:null,fields:[{name:"proposalDeployer",type:{kind:"simple",type:"address",optional:!1}},{name:"id",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]}],qHe=[{name:"dao",arguments:[],returnType:{kind:"simple",type:"address",optional:!1}},{name:"nextProposalId",arguments:[],returnType:{kind:"simple",type:"int",optional:!1,format:257}},{name:"proposalAddr",arguments:[{name:"index",type:{kind:"simple",type:"int",optional:!1,format:257}}],returnType:{kind:"simple",type:"address",optional:!1}}],QHe=[{receiver:"internal",message:{kind:"typed",type:"DeployAndInitProposal"}},{receiver:"internal",message:{kind:"typed",type:"SendUpdateProposal"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];class GA{static async init(t){return await mz(t)}static async fromInit(t){const n=await mz(t),r=(0,Ea.contractAddress)(0,n);return new GA(r,n)}static fromAddress(t){return new GA(t)}constructor(t,n){this.abi={types:HHe,getters:qHe,receivers:QHe,errors:VHe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="DeployAndInitProposal"&&(i=(0,Ea.beginCell)().store(Yre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="SendUpdateProposal"&&(i=(0,Ea.beginCell)().store(Gre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="Deploy"&&(i=(0,Ea.beginCell)().store(Kre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getDao(t){let n=new Ea.TupleBuilder;return(await t.get("dao",n.build())).stack.readAddress()}async getNextProposalId(t){let n=new Ea.TupleBuilder;return(await t.get("nextProposalId",n.build())).stack.readBigNumber()}async getProposalAddr(t,n){let r=new Ea.TupleBuilder;return r.writeNumber(n),(await t.get("proposalAddr",r.build())).stack.readAddress()}}Dt.ProposalDeployer=GA;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.Proposal=pn.loadProposalContractState=pn.storeProposalContractState=pn.loadUpdateProposal=pn.storeUpdateProposal=pn.loadVote=pn.storeVote=pn.loadProposalInit=pn.storeProposalInit=pn.loadParams=pn.storeParams=pn.loadFactoryDeploy=pn.storeFactoryDeploy=pn.loadDeployOk=pn.storeDeployOk=pn.loadDeploy=pn.storeDeploy=pn.loadSendParameters=pn.storeSendParameters=pn.loadContext=pn.storeContext=pn.loadStateInit=pn.storeStateInit=void 0;const Ta=vr;function KHe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}pn.storeStateInit=KHe;function YHe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}pn.loadStateInit=YHe;function GHe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}pn.storeContext=GHe;function JHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}pn.loadContext=JHe;function XHe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}pn.storeSendParameters=XHe;function ZHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}pn.loadSendParameters=ZHe;function Jre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}pn.storeDeploy=Jre;function eqe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}pn.loadDeploy=eqe;function tqe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}pn.storeDeployOk=tqe;function nqe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}pn.loadDeployOk=nqe;function rqe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}pn.storeFactoryDeploy=rqe;function oqe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}pn.loadFactoryDeploy=oqe;function t$(e){return t=>{let n=t;n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ta.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}pn.storeParams=t$;function n$(e){let t=e,n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadUintBig(64),i=t.loadStringRefTail(),a=t.loadStringRefTail(),s=t.loadStringRefTail(),l=t.loadRef().beginParse(),u=l.loadStringRefTail(),c=l.loadStringRefTail(),f=l.loadBit();return{$$type:"Params",proposalStartTime:n,proposalEndTime:r,proposalSnapshotTime:o,votingSystem:i,votingPowerStrategies:a,title:s,description:u,quorum:c,hide:f}}pn.loadParams=n$;function Xre(e){return t=>{let n=t;n.storeUint(1008560988,32),n.store(t$(e.body))}}pn.storeProposalInit=Xre;function iqe(e){let t=e;if(t.loadUint(32)!==1008560988)throw Error("Invalid prefix");return{$$type:"ProposalInit",body:n$(t)}}pn.loadProposalInit=iqe;function Zre(e){return t=>{let n=t;n.storeUint(2084703906,32),n.storeStringRefTail(e.comment)}}pn.storeVote=Zre;function aqe(e){let t=e;if(t.loadUint(32)!==2084703906)throw Error("Invalid prefix");return{$$type:"Vote",comment:t.loadStringRefTail()}}pn.loadVote=aqe;function eoe(e){return t=>{let n=t;n.storeUint(817223820,32),n.store(t$(e.updateParams))}}pn.storeUpdateProposal=eoe;function sqe(e){let t=e;if(t.loadUint(32)!==817223820)throw Error("Invalid prefix");return{$$type:"UpdateProposal",updateParams:n$(t)}}pn.loadUpdateProposal=sqe;function lqe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeUint(e.id,32),n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ta.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}pn.storeProposalContractState=lqe;function uqe(e){let t=e,n=t.loadAddress(),r=t.loadUintBig(32),o=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),s=t.loadStringRefTail(),l=t.loadStringRefTail(),u=t.loadStringRefTail(),c=t.loadRef().beginParse(),f=c.loadStringRefTail(),p=c.loadStringRefTail(),g=c.loadBit();return{$$type:"ProposalContractState",proposalDeployer:n,id:r,proposalStartTime:o,proposalEndTime:i,proposalSnapshotTime:a,votingSystem:s,votingPowerStrategies:l,title:u,description:f,quorum:p,hide:g}}pn.loadProposalContractState=uqe;function cqe(e){let t=e.readAddress(),n=e.readBigNumber(),r=e.readBigNumber(),o=e.readBigNumber(),i=e.readBigNumber(),a=e.readString(),s=e.readString(),l=e.readString(),u=e.readString(),c=e.readString(),f=e.readBoolean();return{$$type:"ProposalContractState",proposalDeployer:t,id:n,proposalStartTime:r,proposalEndTime:o,proposalSnapshotTime:i,votingSystem:a,votingPowerStrategies:s,title:l,description:u,quorum:c,hide:f}}function dqe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeInt(e.id,257)}}async function yz(e,t){const n=Ta.Cell.fromBase64("te6ccgECFwEABFwAART/APSkE/S88sgLAQIBYgIDA3rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVGts88uCCDwQFAgEgDQ4E7gGSMH/gcCHXScIflTAg1wsf3iCCEDwda1y6jr8w0x8BghA8HWtcuvLggds8bBk5OTk5OTmBC6EMwACTCsAAkjpw4pMIwACSOHDiGvL0gRFN+EJSwMcF8vQQZ3/gIIIQfEIOorrjAiCCEDC12Iy64wKCEJRqmLa6CQYHCADOyPhDAcx/AcoAVaBQuiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhjLHxbLPxTLPxLLP8hYzxbJAczIWM8WyQHMyMhQA88WyVjMyFADzxbJWMzIUATPFslQA8zKAMkBzMntVABMMNMfAYIQfEIOorry4IHUAdAxMIIAzG74Iyq+lPgjKbuRcOLy9H8BkjDTHwGCEDC12Iy68uCB2zxsGTk5OTk5OYIA714swwCTC8MAkjtw4pMJwwCSOXDiGvL0gRFN+EJS0McF8vSBItv4I1ALuxry9H8JAViOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcAoAWNM/0z/TP9QB0AHUAdAB1AHQAdQB0NQB0AHUAdAB0gAwEDkQOBA3EDYQNRA0ATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPAsByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsADACYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzAIRvXiu2ebZ42XcDxACASATFAHU7UTQ1AH4Y9IAAY5S+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTH9M/0z/TP9QB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB0gAwEEsQShBJEEgQRxBGEEVsG+D4KNcLCoMJuvLgiREAFlR6mFR6mFR6mFOpAVb6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAWQLRAds8EgAccFMAiwiLCIsIiwiLCHAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAIBSBUWABGwr7tRNDSAAGAAdbJu40NWlwZnM6Ly9RbVJvWlhNVUpjYVhLYzM2U3BBeTZKUjJ6b2d3SzNwZXh6NXNLb1hHSlpHTG1Fgg"),r=Ta.Cell.fromBase64("te6cckECGQEABGYAAQHAAQEFoGJdAgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtUm9aWE1VSmNhWEtjMzZTcEF5NkpSMnpvZ3dLM3BleHo1c0tvWEdKWkdMbUWCAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjZdwWCwAWVHqYVHqYVHqYU6kDetAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUa2zzy4IIWDg0Azsj4QwHMfwHKAFWgULog10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYYyx8Wyz8Uyz8Syz/IWM8WyQHMyFjPFskBzMjIUAPPFslYzMhQA88WyVjMyFAEzxbJUAPMygDJAczJ7VQE7gGSMH/gcCHXScIflTAg1wsf3iCCEDwda1y6jr8w0x8BghA8HWtcuvLggds8bBk5OTk5OTmBC6EMwACTCsAAkjpw4pMIwACSOHDiGvL0gRFN+EJSwMcF8vQQZ3/gIIIQfEIOorrjAiCCEDC12Iy64wKCEJRqmLa6FRQTDwFYjqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHAQATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPBEByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsAEgCYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzAGSMNMfAYIQMLXYjLry4IHbPGwZOTk5OTk5ggDvXizDAJMLwwCSO3DikwnDAJI5cOIa8vSBEU34QlLQxwXy9IEi2/gjUAu7GvL0fxUATDDTHwGCEHxCDqK68uCB1AHQMTCCAMxu+CMqvpT4Iym7kXDi8vR/AFjTP9M/0z/UAdAB1AHQAdQB0AHUAdDUAdAB1AHQAdIAMBA5EDgQNxA2EDUQNAHU7UTQ1AH4Y9IAAY5S+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTH9M/0z/TP9QB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB0gAwEEsQShBJEEgQRxBGEEVsG+D4KNcLCoMJuvLgiRcBVvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgBgQEB1wBZAtEB2zwYABxwUwCLCIsIiwiLCIsIcIuEzpQ=");let o=(0,Ta.beginCell)();o.storeRef(r),o.storeUint(0,1),dqe({$$type:"Proposal_init_args",proposalDeployer:e,id:t})(o);const i=o.endCell();return{code:n,data:i}}const fqe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},8923:{message:"Update proposals is possible only before start time"},52334:{message:"Incative proposal"},61278:{message:"Propsal was not initialized yet"}},pqe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"Params",header:null,fields:[{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]},{name:"ProposalInit",header:1008560988,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Vote",header:2084703906,fields:[{name:"comment",type:{kind:"simple",type:"string",optional:!1}}]},{name:"UpdateProposal",header:817223820,fields:[{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"ProposalContractState",header:null,fields:[{name:"proposalDeployer",type:{kind:"simple",type:"address",optional:!1}},{name:"id",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]}],hqe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"ProposalContractState",optional:!1}}],gqe=[{receiver:"internal",message:{kind:"typed",type:"ProposalInit"}},{receiver:"internal",message:{kind:"typed",type:"Vote"}},{receiver:"internal",message:{kind:"typed",type:"UpdateProposal"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let mqe=class CR{static async init(t,n){return await yz(t,n)}static async fromInit(t,n){const r=await yz(t,n),o=(0,Ta.contractAddress)(0,r);return new CR(o,r)}static fromAddress(t){return new CR(t)}constructor(t,n){this.abi={types:pqe,getters:hqe,receivers:gqe,errors:fqe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="ProposalInit"&&(i=(0,Ta.beginCell)().store(Xre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="Vote"&&(i=(0,Ta.beginCell)().store(Zre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="UpdateProposal"&&(i=(0,Ta.beginCell)().store(eoe(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="Deploy"&&(i=(0,Ta.beginCell)().store(Jre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new Ta.TupleBuilder,r=(await t.get("state",n.build())).stack;return cqe(r)}};pn.Proposal=mqe;var YS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VotingPowerStrategyType=e.VotingSystemType=e.ReleaseMode=void 0,function(t){t[t.PRODUCTION=0]="PRODUCTION",t[t.DEVELOPMENT=1]="DEVELOPMENT",t[t.DEVELOPMENT_2=2]="DEVELOPMENT_2"}(e.ReleaseMode||(e.ReleaseMode={})),function(t){t[t.UNDEFINED=-1]="UNDEFINED",t[t.CHOOSE_EXACTLY_ONE=0]="CHOOSE_EXACTLY_ONE"}(e.VotingSystemType||(e.VotingSystemType={})),function(t){t[t.UNDEFINED=-1]="UNDEFINED",t[t.TonBalance=0]="TonBalance",t[t.JettonBalance=1]="JettonBalance",t[t.NftCcollection=2]="NftCcollection",t[t.TonBalance_1Wallet1Vote=3]="TonBalance_1Wallet1Vote",t[t.JettonBalance_1Wallet1Vote=4]="JettonBalance_1Wallet1Vote",t[t.NftCcollection_1Wallet1Vote=5]="NftCcollection_1Wallet1Vote",t[t.ValidatorsVote=6]="ValidatorsVote",t[t.TonBalanceWithValidators=7]="TonBalanceWithValidators"}(e.VotingPowerStrategyType||(e.VotingPowerStrategyType={}))})(YS);var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.Router=gt.loadDaoContractState=gt.storeDaoContractState=gt.loadDaoInit=gt.storeDaoInit=gt.loadFwdMsg=gt.storeFwdMsg=gt.loadSetMetadata=gt.storeSetMetadata=gt.loadSetFwdMsgFee=gt.storeSetFwdMsgFee=gt.loadSetProposalOwner=gt.storeSetProposalOwner=gt.loadSetOwner=gt.storeSetOwner=gt.loadRegistryContractState=gt.storeRegistryContractState=gt.loadSetRegistryAdmin=gt.storeSetRegistryAdmin=gt.loadSendToDaoSetFwdMsgFee=gt.storeSendToDaoSetFwdMsgFee=gt.loadSetNewDaoFwdMsgFee=gt.storeSetNewDaoFwdMsgFee=gt.loadSetDeployAndInitDaoFee=gt.storeSetDeployAndInitDaoFee=gt.loadSendDaoInit=gt.storeSendDaoInit=gt.loadDeployAndInitDao=gt.storeDeployAndInitDao=gt.loadRouteDeployAndInitDao=gt.storeRouteDeployAndInitDao=gt.loadChangeOwnerOk=gt.storeChangeOwnerOk=gt.loadChangeOwner=gt.storeChangeOwner=gt.loadFactoryDeploy=gt.storeFactoryDeploy=gt.loadDeployOk=gt.storeDeployOk=gt.loadDeploy=gt.storeDeploy=gt.loadSendParameters=gt.storeSendParameters=gt.loadContext=gt.storeContext=gt.loadStateInit=gt.storeStateInit=void 0;const Ju=vr;function yqe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}gt.storeStateInit=yqe;function vqe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}gt.loadStateInit=vqe;function bqe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}gt.storeContext=bqe;function wqe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}gt.loadContext=wqe;function toe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}gt.storeSendParameters=toe;function noe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}gt.loadSendParameters=noe;function roe(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}gt.storeDeploy=roe;function Sqe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}gt.loadDeploy=Sqe;function xqe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}gt.storeDeployOk=xqe;function Cqe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}gt.loadDeployOk=Cqe;function Aqe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}gt.storeFactoryDeploy=Aqe;function _qe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}gt.loadFactoryDeploy=_qe;function Eqe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}gt.storeChangeOwner=Eqe;function Tqe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}gt.loadChangeOwner=Tqe;function kqe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}gt.storeChangeOwnerOk=kqe;function Iqe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}gt.loadChangeOwnerOk=Iqe;function ooe(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new Ju.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}gt.storeRouteDeployAndInitDao=ooe;function Pqe(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}gt.loadRouteDeployAndInitDao=Pqe;function Mqe(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}gt.storeDeployAndInitDao=Mqe;function Oqe(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}gt.loadDeployAndInitDao=Oqe;function Rqe(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}gt.storeSendDaoInit=Rqe;function Dqe(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}gt.loadSendDaoInit=Dqe;function Bqe(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}gt.storeSetDeployAndInitDaoFee=Bqe;function $qe(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}gt.loadSetDeployAndInitDaoFee=$qe;function Lqe(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}gt.storeSetNewDaoFwdMsgFee=Lqe;function Fqe(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}gt.loadSetNewDaoFwdMsgFee=Fqe;function Nqe(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}gt.storeSendToDaoSetFwdMsgFee=Nqe;function Uqe(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}gt.loadSendToDaoSetFwdMsgFee=Uqe;function jqe(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}gt.storeSetRegistryAdmin=jqe;function Wqe(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}gt.loadSetRegistryAdmin=Wqe;function zqe(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}gt.storeRegistryContractState=zqe;function Vqe(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}gt.loadRegistryContractState=Vqe;function Hqe(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}gt.storeSetOwner=Hqe;function qqe(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}gt.loadSetOwner=qqe;function Qqe(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}gt.storeSetProposalOwner=Qqe;function Kqe(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}gt.loadSetProposalOwner=Kqe;function Yqe(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}gt.storeSetFwdMsgFee=Yqe;function Gqe(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}gt.loadSetFwdMsgFee=Gqe;function Jqe(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}gt.storeSetMetadata=Jqe;function Xqe(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}gt.loadSetMetadata=Xqe;function Zqe(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(toe(e.fwdMsg))}}gt.storeFwdMsg=Zqe;function eQe(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:noe(t)}}gt.loadFwdMsg=eQe;function tQe(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}gt.storeDaoInit=tQe;function nQe(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}gt.loadDaoInit=nQe;function rQe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new Ju.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}gt.storeDaoContractState=rQe;function oQe(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}gt.loadDaoContractState=oQe;async function vz(){const e=Ju.Cell.fromBase64("te6ccgECEgEABCEAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UBAUCAVgODwE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwGA7ABkjB/4HAh10nCH5UwINcLH94gghAsEK0zuo8IMNs8bBfbPH/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwBwgJAAJtAejTHwGCECwQrTO68uCB0z/TP/pAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdQB0AoB9HBwVHQyyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskQRxA5bW0QRhBFCwE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwMAJT6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxECcQJhAlECQQIwL02zxwA3AGyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskUbW0QRhBF2zwMDAHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wANAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCAUgQEQARsK+7UTQ0gABgAHWybuNDVpcGZzOi8vUW1RZHNaQktGb0I0b0Fyc2tlOEN3MWYyR3I5eURhb0pNTXhCaXFpN3U1VUhwcIIA=="),t=Ju.Cell.fromBase64("te6cckECFAEABCsAAQHAAQEFoa4HAgEU/wD0pBP0vPLICwMCAWIJBAIBWAgFAgFIBwYAdbJu40NWlwZnM6Ly9RbVFkc1pCS0ZvQjRvQXJza2U4Q3cxZjJHcjl5RGFvSk1NeEJpcWk3dTVVSHBwggABGwr7tRNDSAAGAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAKS0AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8Wds88uCCMMj4QwHMfwHKAMntVBIKA7ABkjB/4HAh10nCH5UwINcLH94gghAsEK0zuo8IMNs8bBfbPH/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwEAwLATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPA4B9HBwVHQyyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskQRxA5bW0QRhBFDQL02zxwA3AGyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskUbW0QRhBF2zwODgHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAPAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAejTHwGCECwQrTO68uCB0z/TP/pAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdQB0BEAlPpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEQJxAmECUQJBAjATTtRNDUAfhj0gAwkW3g+CjXCwqDCbry4InbPBMAAm0MKTMY");let n=(0,Ju.beginCell)();n.storeRef(t),n.storeUint(0,1);const r=n.endCell();return{code:e,data:r}}const iQe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},aQe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],sQe=[],lQe=[{receiver:"internal",message:{kind:"typed",type:"RouteDeployAndInitDao"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let uQe=class AR{static async init(){return await vz()}static async fromInit(){const t=await vz(),n=(0,Ju.contractAddress)(0,t);return new AR(n,t)}static fromAddress(t){return new AR(t)}constructor(t,n){this.abi={types:aQe,getters:sQe,receivers:lQe,errors:iQe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Ju.Slice)&&o.$$type==="RouteDeployAndInitDao"&&(i=(0,Ju.beginCell)().store(ooe(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ju.Slice)&&o.$$type==="Deploy"&&(i=(0,Ju.beginCell)().store(roe(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}};gt.Router=uQe;var Ni={},ioe={},JA={},cQe={get exports(){return JA},set exports(e){JA=e}};/*! ***************************************************************************** +`),process.exit(1)):console.log(r.message)}return(0,fz.execSync)("/usr/local/bin/fift -s build/_print-hex.fif").toString().trim()}dn.compileFuncToB64=eze;function tze(e,t){return eMath.floor(Math.random()*(t-e+1)+e);dn.randomInt=oze;async function ize(e,t){const r=(await e.runMethod(KS.Address.parse(t),"seqno")).stack.pop();return typeof r=="object"&&r.type=="int"?r.value:null}dn.getSeqno=ize;function aze(e){let t=new Df.TupleBuilder;return t.writeSlice((0,Df.beginCell)().storeAddress(KS.Address.parse(e)).endCell()),t.build()}dn.addressStringToTupleItem=aze;function sze(e){return[{type:"int",value:BigInt(e)}]}dn.intToTupleItem=sze;function lze(e){return e.beginParse().loadAddress()}dn.cellToAddress=lze;function uze(e){return t=>{let n=t;n.storeUint(0,32),n.storeStringTail(e)}}dn.storeComment=uze;async function kre(e,t=10){let n=t;try{return await Promise.all(e)}catch(r){if(n>0){console.log(`Retry attempt ${t-n+1} failed, retrying...`);let o=(t-n)*2e3;await t$(o,o+2e3),await kre(e,n-1)}else throw console.error("All retry attempts failed."),r}}dn.promiseAllWithRetry=kre;async function Ire(e,t,n=10){let r=n;try{if(t in e&&typeof e[t]=="function")return await e[t]();throw new Error(`No method named "${String(t)}" found`)}catch(o){if(r>0){console.log(`Retry attempt ${n-r+1} failed, retrying...`);let i=(n-r)*2e3;return await t$(i,i+2e3),await Ire(e,t,r-1)}else throw console.error("All retry attempts failed."),o}}dn.executeMethodWithRetry=Ire;function cze(e,t,n){let r=(0,YWe.default)(e),o=Object.keys(t);for(let i=o.length-1;i>0;i--){const a=Math.floor(r()*(i+1));[o[i],o[a]]=[o[a],o[i]]}return o.slice(0,n)}dn.chooseRandomKeys=cze;async function dze(e,t){return e.getBalance(KS.Address.parse(t))}dn.getBalance=dze;function fze(e,t,n){return(0,Df.beginCell)().storeUint(SR.Transfer,32).storeUint(1,64).storeCoins(n).storeAddress(e).storeAddress(t).storeBit(!1).storeCoins((0,KS.toNano)("0.001")).storeBit(!1).endCell()}dn._transferJetton=fze;function pze(e){return(0,Df.beginCell)().storeUint(GWe,32).storeUint(0,64).storeAddress(e).storeAddress(null).storeBit(!1).storeCoins((0,KS.toNano)("0.005")).storeBit(!1).endCell()}dn._transferNft=pze;function hze(e,t){return new FP.default(e).multipliedBy(new FP.default(10).pow(new FP.default(9-t))).toString()}dn.convertToNano=hze;var ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.Registry=ht.loadDaoContractState=ht.storeDaoContractState=ht.loadDaoInit=ht.storeDaoInit=ht.loadFwdMsg=ht.storeFwdMsg=ht.loadSetMetadata=ht.storeSetMetadata=ht.loadSetFwdMsgFee=ht.storeSetFwdMsgFee=ht.loadSetProposalOwner=ht.storeSetProposalOwner=ht.loadSetOwner=ht.storeSetOwner=ht.loadRegistryContractState=ht.storeRegistryContractState=ht.loadSetRegistryAdmin=ht.storeSetRegistryAdmin=ht.loadSendToDaoSetFwdMsgFee=ht.storeSendToDaoSetFwdMsgFee=ht.loadSetNewDaoFwdMsgFee=ht.storeSetNewDaoFwdMsgFee=ht.loadSetDeployAndInitDaoFee=ht.storeSetDeployAndInitDaoFee=ht.loadSendDaoInit=ht.storeSendDaoInit=ht.loadDeployAndInitDao=ht.storeDeployAndInitDao=ht.loadRouteDeployAndInitDao=ht.storeRouteDeployAndInitDao=ht.loadChangeOwnerOk=ht.storeChangeOwnerOk=ht.loadChangeOwner=ht.storeChangeOwner=ht.loadFactoryDeploy=ht.storeFactoryDeploy=ht.loadDeployOk=ht.storeDeployOk=ht.loadDeploy=ht.storeDeploy=ht.loadSendParameters=ht.storeSendParameters=ht.loadContext=ht.storeContext=ht.loadStateInit=ht.storeStateInit=void 0;const zo=vr;function gze(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}ht.storeStateInit=gze;function mze(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}ht.loadStateInit=mze;function yze(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}ht.storeContext=yze;function vze(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}ht.loadContext=vze;function Pre(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}ht.storeSendParameters=Pre;function Mre(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}ht.loadSendParameters=Mre;function Ore(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}ht.storeDeploy=Ore;function bze(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}ht.loadDeploy=bze;function wze(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}ht.storeDeployOk=wze;function Sze(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}ht.loadDeployOk=Sze;function xze(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}ht.storeFactoryDeploy=xze;function Cze(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}ht.loadFactoryDeploy=Cze;function Aze(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}ht.storeChangeOwner=Aze;function _ze(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}ht.loadChangeOwner=_ze;function Eze(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}ht.storeChangeOwnerOk=Eze;function Tze(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}ht.loadChangeOwnerOk=Tze;function kze(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new zo.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}ht.storeRouteDeployAndInitDao=kze;function Ize(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}ht.loadRouteDeployAndInitDao=Ize;function Rre(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}ht.storeDeployAndInitDao=Rre;function Pze(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}ht.loadDeployAndInitDao=Pze;function Mze(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}ht.storeSendDaoInit=Mze;function Oze(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}ht.loadSendDaoInit=Oze;function Dre(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}ht.storeSetDeployAndInitDaoFee=Dre;function Rze(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}ht.loadSetDeployAndInitDaoFee=Rze;function Bre(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}ht.storeSetNewDaoFwdMsgFee=Bre;function Dze(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}ht.loadSetNewDaoFwdMsgFee=Dze;function $re(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}ht.storeSendToDaoSetFwdMsgFee=$re;function Bze(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}ht.loadSendToDaoSetFwdMsgFee=Bze;function Lre(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}ht.storeSetRegistryAdmin=Lre;function $ze(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}ht.loadSetRegistryAdmin=$ze;function Lze(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}ht.storeRegistryContractState=Lze;function Fze(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}ht.loadRegistryContractState=Fze;function Nze(e){let t=e.readBigNumber(),n=e.readBigNumber(),r=e.readAddress(),o=e.readBigNumber(),i=e.readBigNumber();return{$$type:"RegistryContractState",registryId:t,nextDaoId:n,admin:r,deployAndInitDaoFee:o,newDaosfwdMsgFee:i}}function Uze(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}ht.storeSetOwner=Uze;function jze(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}ht.loadSetOwner=jze;function Wze(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}ht.storeSetProposalOwner=Wze;function zze(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}ht.loadSetProposalOwner=zze;function Vze(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}ht.storeSetFwdMsgFee=Vze;function Hze(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}ht.loadSetFwdMsgFee=Hze;function qze(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}ht.storeSetMetadata=qze;function Qze(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}ht.loadSetMetadata=Qze;function Kze(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(Pre(e.fwdMsg))}}ht.storeFwdMsg=Kze;function Yze(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:Mre(t)}}ht.loadFwdMsg=Yze;function Gze(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}ht.storeDaoInit=Gze;function Jze(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}ht.loadDaoInit=Jze;function Xze(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new zo.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}ht.storeDaoContractState=Xze;function Zze(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}ht.loadDaoContractState=Zze;function eVe(e){return t=>{t.storeInt(e.registryId,257)}}async function pz(e){const t=zo.Cell.fromBase64("te6ccgECIQEABqwAART/APSkE/S88sgLAQIBYgIDAurQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFNs88uCCyPhDAcx/AcoAVUBQRcsfEssfASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yz/J7VQcBAIBIBARA/QBkjB/4HAh10nCH5UwINcLH94gghDJW5tkuuMCIIIQqJaRGbqOHzDTHwGCEKiWkRm68uCB0z8BMTKBEfj4QlJAxwXy9H/gIIILlkvOuo4fMNMfAYILlkvOuvLggdM/ATExggDazPhCUkDHBfL0f+AgghBYFb2GuuMCIAUGBwHoMNMfAYIQyVubZLry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiEMwbBPbPH8IASow0x8BghBYFb2GuvLggdMf0z9ZbBILAfqCEMbWc8q6jnMw0x8BghDG1nPKuvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxgVuc+EJSUMcFkjR/jjJwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAXHBeIU8vR/4AwCxoIAtQD4QW8kE18DJr7y9CYQWAQQNkgH2zxccFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwcFCsgEBRxh8JAvzIVTCCEOy4dutQBcsfUAMg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yRYQWRBLEDpQohBGEEXbPKQOCgAGVSAEAuaBIcX4QlJgxwXy9FVQ2zxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwgEAJyAGCEPTzpgJYyx/LP8kQNEEwGRAkECNtbds8VQN/Hw4BZoIQlGqYtrqOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcA0BOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8DgHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAPAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAhG9eK7Z5tnjYqwcEgIBIBMUAApUdDJTQwIBIBUWAgFIGBkCEbQwO2ebZ42KMBwXALm3ejBOC52Hq6WVz2PQnYc6yVCjbNBOE7rGpaVsj5ZkWnXlv74sRzBOBAq4A3AM7HKZywdVyOS2WHBOA3qTvfKost446np7wKs4ZNBOE7Lpy1Zp2W5nQdLNsozdFJAAAiMCAWIaGwB1sm7jQ1aXBmczovL1FtUWZVRWl2UnBISE5oRmdrQzN1Uno0dkx1RHZvdk1YSm9RdmN2cG5tRHEyQXKCACE6eRtniqCbZ42KMcHQAPpX3aiaGkAAMBnO1E0NQB+GPSAAGOLNMf0x/6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/0z9VQGwV4Pgo1wsKgwm68uCJgQEB1wABAdHbPB4Bhts8cFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgfAHZwUwDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiIIQO5rKAIIQBfXhAAEO+EP4KFjbPCAAogLQ9AQwbQGBZD8BgBD0D2+h8uCHAYFkPyICgBD0F8gByPQAyQHMcAHKAEADWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFoEBAc8AyQ=="),n=zo.Cell.fromBase64("te6cckECPwEADJ8AAQHAAQIBICECAQW/oxQDART/APSkE/S88sgLBAIBYhMFAgEgEQYCASANBwIBSAkIAHWybuNDVpcGZzOi8vUW1RZlVFaXZScEhITmhGZ2tDM3VSejR2THVEdm92TVhKb1F2Y3Zwbm1EcTJBcoIAIBYgsKAA+lfdqJoaQAAwITp5G2eKoJtnjYox8MAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIHQIBIA8OALm3ejBOC52Hq6WVz2PQnYc6yVCjbNBOE7rGpaVsj5ZkWnXlv74sRzBOBAq4A3AM7HKZywdVyOS2WHBOA3qTvfKost446np7wKs4ZNBOE7Lpy1Zp2W5nQdLNsozdFJACEbQwO2ebZ42KMB8QAAIjAhG9eK7Z5tnjYqwfEgAKVHQyU0MC6tAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUU2zzy4ILI+EMBzH8BygBVQFBFyx8Syx8BINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/LP8ntVB8UA/QBkjB/4HAh10nCH5UwINcLH94gghDJW5tkuuMCIIIQqJaRGbqOHzDTHwGCEKiWkRm68uCB0z8BMTKBEfj4QlJAxwXy9H/gIIILlkvOuo4fMNMfAYILlkvOuvLggdM/ATExggDazPhCUkDHBfL0f+AgghBYFb2GuuMCIBkXFQH6ghDG1nPKuo5zMNMfAYIQxtZzyrry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMYFbnPhCUlDHBZI0f44ycCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFAFxwXiFPL0f+AWAWaCEJRqmLa6jqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHAyASow0x8BghBYFb2GuvLggdMf0z9ZbBIYAuaBIcX4QlJgxwXy9FVQ2zxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwgEAJyAGCEPTzpgJYyx/LP8kQNEEwGRAkECNtbds8VQN/HTMB6DDTHwGCEMlbm2S68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhDMGwT2zx/GgLGggC1APhBbyQTXwMmvvL0JhBYBBA2SAfbPFxwWchwAcsBcwHLAXABywASzMzJ+QDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHBwUKyAQFHGHRsC/MhVMIIQ7Lh261AFyx9QAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/JFhBZEEsQOlCiEEYQRds8pDMcAAZVIAQBDvhD+ChY2zweAKIC0PQEMG0BgWQ/AYAQ9A9vofLghwGBZD8iAoAQ9BfIAcj0AMkBzHABygBAA1kg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxaBAQHPAMkBnO1E0NQB+GPSAAGOLNMf0x/6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/0z9VQGwV4Pgo1wsKgwm68uCJgQEB1wABAdHbPCAAdnBTAMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIghA7msoAghAF9eEAAQW/IfwiART/APSkE/S88sgLIwIBYiwkAgEgKiUCASApJgIBSCgnAHWybuNDVpcGZzOi8vUW1SZGpmZEh1UXFBcGk1ekJ0U1JRUDlQUmFxRHlZWjNtWHhrOFZjMXpwTURKboIAARsK+7UTQ0gABgALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCEb14rtnm2eNjNDorAAxUdFNUdFMDmtAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUV2zzy4ILI+EMBzH8BygBVUNs8ye1UOi8tAchQZSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlADINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFssfyFADLgBGINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8Wyz/JAcwE7AGSMH/gcCHXScIflTAg1wsf3iCCEOy4duu64wIgghDCtB1Duo46MNMfAYIQwrQdQ7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMYERTfhCGMcFF/L0f+AgghDQ4752uuMCIIIQ2i+Qf7rjAiA4NzYwA/KCEPTzpgK6jiAw0x8BghD086YCuvLggdM/ATExggDKtfhCUmDHBfL0f+AgghBkw8Pkuo85MNMfAYIQZMPD5Lry4IHbPGwXgRFN+EJS4McFkX+W+EJSwMcF4vL0ggDrDfhBbyQTXwMpvvL02zx/4IIQlGqYtrrjAjBwNTMxAU7THwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH8yATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPDMByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsANACYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzACS0gD6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAgQEB1wDSAAGR1JJtAeLSAAGR1JJtAeLSAAGR1JJtAeJVYAB2MNMfAYIQ2i+Qf7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMTKBEU34QlJwxwXy9H8AdjDTHwGCENDjvna68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDE0gRFN+EJScMcF8vR/Aegw0x8BghDsuHbruvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/VTBsFDkAjjQ0NYELoXAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhQCMcFF/L0gRFN+EJSYMcF8vR/Ao7tRNDUAfhj0gABjoTbPGwW4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPD07AbxwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIcCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgPABuyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhBQBOCI41+pMaAAAHK+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0x/UAdA+AFb6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdM/MBAmECUQJBAjgxSqCQ==");let r=(0,zo.beginCell)();r.storeRef(n),r.storeUint(0,1),eVe({$$type:"Registry_init_args",registryId:e})(r);const o=r.endCell();return{code:t,data:o}}const tVe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},nVe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],rVe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"RegistryContractState",optional:!1}},{name:"nextDaoId",arguments:[],returnType:{kind:"simple",type:"int",optional:!1,format:257}},{name:"daoAddress",arguments:[{name:"daoId",type:{kind:"simple",type:"int",optional:!1,format:257}}],returnType:{kind:"simple",type:"address",optional:!1}}],oVe=[{receiver:"internal",message:{kind:"typed",type:"DeployAndInitDao"}},{receiver:"internal",message:{kind:"typed",type:"SetDeployAndInitDaoFee"}},{receiver:"internal",message:{kind:"typed",type:"SetNewDaoFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"SendToDaoSetFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"SetRegistryAdmin"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];class YA{static async init(t){return await pz(t)}static async fromInit(t){const n=await pz(t),r=(0,zo.contractAddress)(0,n);return new YA(r,n)}static fromAddress(t){return new YA(t)}constructor(t,n){this.abi={types:nVe,getters:rVe,receivers:oVe,errors:tVe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="DeployAndInitDao"&&(i=(0,zo.beginCell)().store(Rre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetDeployAndInitDaoFee"&&(i=(0,zo.beginCell)().store(Dre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetNewDaoFwdMsgFee"&&(i=(0,zo.beginCell)().store(Bre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SendToDaoSetFwdMsgFee"&&(i=(0,zo.beginCell)().store($re(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="SetRegistryAdmin"&&(i=(0,zo.beginCell)().store(Lre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof zo.Slice)&&o.$$type==="Deploy"&&(i=(0,zo.beginCell)().store(Ore(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new zo.TupleBuilder,r=(await t.get("state",n.build())).stack;return Nze(r)}async getNextDaoId(t){let n=new zo.TupleBuilder;return(await t.get("nextDaoId",n.build())).stack.readBigNumber()}async getDaoAddress(t,n){let r=new zo.TupleBuilder;return r.writeNumber(n),(await t.get("daoAddress",r.build())).stack.readAddress()}}ht.Registry=YA;var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.Dao=pt.loadDaoContractState=pt.storeDaoContractState=pt.loadDaoInit=pt.storeDaoInit=pt.loadFwdMsg=pt.storeFwdMsg=pt.loadSetMetadata=pt.storeSetMetadata=pt.loadSetFwdMsgFee=pt.storeSetFwdMsgFee=pt.loadSetProposalOwner=pt.storeSetProposalOwner=pt.loadSetOwner=pt.storeSetOwner=pt.loadRegistryContractState=pt.storeRegistryContractState=pt.loadSetRegistryAdmin=pt.storeSetRegistryAdmin=pt.loadSendToDaoSetFwdMsgFee=pt.storeSendToDaoSetFwdMsgFee=pt.loadSetNewDaoFwdMsgFee=pt.storeSetNewDaoFwdMsgFee=pt.loadSetDeployAndInitDaoFee=pt.storeSetDeployAndInitDaoFee=pt.loadSendDaoInit=pt.storeSendDaoInit=pt.loadDeployAndInitDao=pt.storeDeployAndInitDao=pt.loadRouteDeployAndInitDao=pt.storeRouteDeployAndInitDao=pt.loadChangeOwnerOk=pt.storeChangeOwnerOk=pt.loadChangeOwner=pt.storeChangeOwner=pt.loadFactoryDeploy=pt.storeFactoryDeploy=pt.loadDeployOk=pt.storeDeployOk=pt.loadDeploy=pt.storeDeploy=pt.loadSendParameters=pt.storeSendParameters=pt.loadContext=pt.storeContext=pt.loadStateInit=pt.storeStateInit=void 0;const Vo=vr;function iVe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}pt.storeStateInit=iVe;function aVe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}pt.loadStateInit=aVe;function sVe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}pt.storeContext=sVe;function lVe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}pt.loadContext=lVe;function Fre(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}pt.storeSendParameters=Fre;function Nre(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}pt.loadSendParameters=Nre;function Ure(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}pt.storeDeploy=Ure;function uVe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}pt.loadDeploy=uVe;function cVe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}pt.storeDeployOk=cVe;function dVe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}pt.loadDeployOk=dVe;function fVe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}pt.storeFactoryDeploy=fVe;function pVe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}pt.loadFactoryDeploy=pVe;function hVe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}pt.storeChangeOwner=hVe;function gVe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}pt.loadChangeOwner=gVe;function mVe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}pt.storeChangeOwnerOk=mVe;function yVe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}pt.loadChangeOwnerOk=yVe;function vVe(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new Vo.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}pt.storeRouteDeployAndInitDao=vVe;function bVe(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}pt.loadRouteDeployAndInitDao=bVe;function wVe(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}pt.storeDeployAndInitDao=wVe;function SVe(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}pt.loadDeployAndInitDao=SVe;function xVe(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}pt.storeSendDaoInit=xVe;function CVe(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}pt.loadSendDaoInit=CVe;function AVe(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}pt.storeSetDeployAndInitDaoFee=AVe;function _Ve(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}pt.loadSetDeployAndInitDaoFee=_Ve;function EVe(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}pt.storeSetNewDaoFwdMsgFee=EVe;function TVe(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}pt.loadSetNewDaoFwdMsgFee=TVe;function kVe(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}pt.storeSendToDaoSetFwdMsgFee=kVe;function IVe(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}pt.loadSendToDaoSetFwdMsgFee=IVe;function PVe(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}pt.storeSetRegistryAdmin=PVe;function MVe(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}pt.loadSetRegistryAdmin=MVe;function OVe(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}pt.storeRegistryContractState=OVe;function RVe(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}pt.loadRegistryContractState=RVe;function jre(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}pt.storeSetOwner=jre;function DVe(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}pt.loadSetOwner=DVe;function Wre(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}pt.storeSetProposalOwner=Wre;function BVe(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}pt.loadSetProposalOwner=BVe;function zre(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}pt.storeSetFwdMsgFee=zre;function $Ve(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}pt.loadSetFwdMsgFee=$Ve;function Vre(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}pt.storeSetMetadata=Vre;function LVe(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}pt.loadSetMetadata=LVe;function Hre(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(Fre(e.fwdMsg))}}pt.storeFwdMsg=Hre;function FVe(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:Nre(t)}}pt.loadFwdMsg=FVe;function qre(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}pt.storeDaoInit=qre;function NVe(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}pt.loadDaoInit=NVe;function UVe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new Vo.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}pt.storeDaoContractState=UVe;function jVe(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}pt.loadDaoContractState=jVe;function WVe(e){let t=e.readAddress(),n=e.readAddress(),r=e.readAddress(),o=e.readAddress(),i=e.readBigNumber(),a=e.readBigNumber();return{$$type:"DaoContractState",registry:t,owner:n,proposalOwner:r,metadata:o,daoIndex:i,fwdMsgFee:a}}function zVe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeInt(e.daoIndex,257)}}async function hz(e,t){const n=Vo.Cell.fromBase64("te6ccgECHQEABrQAART/APSkE/S88sgLAQIBYgIDA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFds88uCCyPhDAcx/AcoAVVDbPMntVBMEBQIBIBESBOwBkjB/4HAh10nCH5UwINcLH94gghDsuHbruuMCIIIQwrQdQ7qOOjDTHwGCEMK0HUO68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDGBEU34QhjHBRfy9H/gIIIQ0OO+drrjAiCCENovkH+64wIgBgcICQHIUGUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8hQAxAB6DDTHwGCEOy4duu68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0z9VMGwUCgB2MNMfAYIQ0OO+drry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIMTSBEU34QlJwxwXy9H8AdjDTHwGCENovkH+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEygRFN+EJScMcF8vR/A/KCEPTzpgK6jiAw0x8BghD086YCuvLggdM/ATExggDKtfhCUmDHBfL0f+AgghBkw8Pkuo85MNMfAYIQZMPD5Lry4IHbPGwXgRFN+EJS4McFkX+W+EJSwMcF4vL0ggDrDfhBbyQTXwMpvvL02zx/4IIQlGqYtrrjAjBwCw4MAI40NDWBC6FwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAjHBRfy9IERTfhCUmDHBfL0fwCS0gD6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAgQEB1wDSAAGR1JJtAeLSAAGR1JJtAeLSAAGR1JJtAeJVYAFO0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/DQE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwOAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AA8AmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwARiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yQHMAhG9eK7Z5tnjYzQTFAIBIBkaAo7tRNDUAfhj0gABjoTbPGwW4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPBUWAAxUdFNUdFMByvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf1AHQFwG8cCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwIBgAVvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0z8wECYQJRAkECMAbshyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIQUATgiONfqTGgAAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAIBSBscABGwr7tRNDSAAGAAdbJu40NWlwZnM6Ly9RbVJkamZkSHVRcUFwaTV6QnRTUlFQOVBSYXFEeVlaM21YeGs4VmMxenBNREpugg"),r=Vo.Cell.fromBase64("te6cckECHwEABr4AAQHAAQEFoMh/AgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtUmRqZmRIdVFxQXBpNXpCdFNSUVA5UFJhcUR5WVozbVh4azhWYzF6cE1ESm6CAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjYzQaCwAMVHRTVHRTA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVFds88uCCyPhDAcx/AcoAVVDbPMntVBoPDQHIUGUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQAyDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFgEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8hQAw4ARiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFss/yQHMBOwBkjB/4HAh10nCH5UwINcLH94gghDsuHbruuMCIIIQwrQdQ7qOOjDTHwGCEMK0HUO68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDGBEU34QhjHBRfy9H/gIIIQ0OO+drrjAiCCENovkH+64wIgGBcWEAPyghD086YCuo4gMNMfAYIQ9POmArry4IHTPwExMYIAyrX4QlJgxwXy9H/gIIIQZMPD5LqPOTDTHwGCEGTDw+S68uCB2zxsF4ERTfhCUuDHBZF/lvhCUsDHBeLy9IIA6w34QW8kE18DKb7y9Ns8f+CCEJRqmLa64wIwcBUTEQFO0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/EgE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwTAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7ABQAmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwAktIA+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAIEBAdcA0gABkdSSbQHi0gABkdSSbQHi0gABkdSSbQHiVWAAdjDTHwGCENovkH+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEygRFN+EJScMcF8vR/AHYw0x8BghDQ4752uvLggfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxNIERTfhCUnDHBfL0fwHoMNMfAYIQ7Lh267ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTP1UwbBQZAI40NDWBC6FwIMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIUAjHBRfy9IERTfhCUmDHBfL0fwKO7UTQ1AH4Y9IAAY6E2zxsFuD4KNcLCoMJuvLgifpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgBgQEB1wBZAtEB2zwdGwG8cCDIcgHLAXABywASygfL/8nQINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiHAgyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhwIBwAbshyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIQUATgiONfqTGgAAByvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf1AHQHgBW+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTPzAQJhAlECQQIz1VV6M=");let o=(0,Vo.beginCell)();o.storeRef(r),o.storeUint(0,1),zVe({$$type:"Dao_init_args",registry:e,daoIndex:t})(o);const i=o.endCell();return{code:n,data:i}}const VVe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},HVe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],qVe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"DaoContractState",optional:!1}}],QVe=[{receiver:"internal",message:{kind:"typed",type:"DaoInit"}},{receiver:"internal",message:{kind:"typed",type:"SetOwner"}},{receiver:"internal",message:{kind:"typed",type:"SetProposalOwner"}},{receiver:"internal",message:{kind:"typed",type:"SetMetadata"}},{receiver:"internal",message:{kind:"typed",type:"SetFwdMsgFee"}},{receiver:"internal",message:{kind:"typed",type:"FwdMsg"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let KVe=class xR{static async init(t,n){return await hz(t,n)}static async fromInit(t,n){const r=await hz(t,n),o=(0,Vo.contractAddress)(0,r);return new xR(o,r)}static fromAddress(t){return new xR(t)}constructor(t,n){this.abi={types:HVe,getters:qVe,receivers:QVe,errors:VVe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="DaoInit"&&(i=(0,Vo.beginCell)().store(qre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetOwner"&&(i=(0,Vo.beginCell)().store(jre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetProposalOwner"&&(i=(0,Vo.beginCell)().store(Wre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetMetadata"&&(i=(0,Vo.beginCell)().store(Vre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="SetFwdMsgFee"&&(i=(0,Vo.beginCell)().store(zre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="FwdMsg"&&(i=(0,Vo.beginCell)().store(Hre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Vo.Slice)&&o.$$type==="Deploy"&&(i=(0,Vo.beginCell)().store(Ure(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new Vo.TupleBuilder,r=(await t.get("state",n.build())).stack;return WVe(r)}};pt.Dao=KVe;var ir={};Object.defineProperty(ir,"__esModule",{value:!0});ir.Metadata=ir.loadMetadataState=ir.storeMetadataState=ir.loadFactoryDeploy=ir.storeFactoryDeploy=ir.loadDeployOk=ir.storeDeployOk=ir.loadDeploy=ir.storeDeploy=ir.loadSendParameters=ir.storeSendParameters=ir.loadContext=ir.storeContext=ir.loadStateInit=ir.storeStateInit=void 0;const xl=vr;function YVe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}ir.storeStateInit=YVe;function GVe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}ir.loadStateInit=GVe;function JVe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}ir.storeContext=JVe;function XVe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}ir.loadContext=XVe;function ZVe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}ir.storeSendParameters=ZVe;function eHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}ir.loadSendParameters=eHe;function Qre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}ir.storeDeploy=Qre;function tHe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}ir.loadDeploy=tHe;function nHe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}ir.storeDeployOk=nHe;function rHe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}ir.loadDeployOk=rHe;function oHe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}ir.storeFactoryDeploy=oHe;function iHe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}ir.loadFactoryDeploy=iHe;function aHe(e){return t=>{let n=t;n.storeStringRefTail(e.avatar),n.storeStringRefTail(e.name),n.storeStringRefTail(e.about);let r=new xl.Builder;r.storeStringRefTail(e.website),r.storeStringRefTail(e.terms),r.storeStringRefTail(e.telegram);let o=new xl.Builder;o.storeStringRefTail(e.github),o.storeAddress(e.jetton),o.storeAddress(e.nft),o.storeBit(e.hide),o.storeStringRefTail(e.dns),r.storeRef(o.endCell()),n.storeRef(r.endCell())}}ir.storeMetadataState=aHe;function sHe(e){let t=e,n=t.loadStringRefTail(),r=t.loadStringRefTail(),o=t.loadStringRefTail(),i=t.loadRef().beginParse(),a=i.loadStringRefTail(),s=i.loadStringRefTail(),l=i.loadStringRefTail(),u=i.loadRef().beginParse(),c=u.loadStringRefTail(),f=u.loadAddress(),p=u.loadAddress(),g=u.loadBit(),m=u.loadStringRefTail();return{$$type:"MetadataState",avatar:n,name:r,about:o,website:a,terms:s,telegram:l,github:c,jetton:f,nft:p,hide:g,dns:m}}ir.loadMetadataState=sHe;function lHe(e){let t=e.readString(),n=e.readString(),r=e.readString(),o=e.readString(),i=e.readString(),a=e.readString(),s=e.readString(),l=e.readAddress(),u=e.readAddress(),c=e.readBoolean(),f=e.readString();return{$$type:"MetadataState",avatar:t,name:n,about:r,website:o,terms:i,telegram:a,github:s,jetton:l,nft:u,hide:c,dns:f}}function uHe(e){return t=>{let n=t;n.storeStringRefTail(e.avatar),n.storeStringRefTail(e.name);let r=new xl.Builder;r.storeStringRefTail(e.about),r.storeStringRefTail(e.website),r.storeStringRefTail(e.terms);let o=new xl.Builder;o.storeStringRefTail(e.telegram),o.storeStringRefTail(e.github),o.storeAddress(e.jetton),o.storeAddress(e.nft),o.storeBit(e.hide),o.storeStringRefTail(e.dns),r.storeRef(o.endCell()),n.storeRef(r.endCell())}}async function gz(e,t,n,r,o,i,a,s,l,u,c){const f=xl.Cell.fromBase64("te6ccgECFAEAA/EAART/APSkE/S88sgLAQIBYgIDA5rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVGts88uCCyPhDAcx/AcoAVaDbPMntVAwEBQIBIAoLAaQBkjB/4HAh10nCH5UwINcLH94gwAAi10nBIbCSW3/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwBgHAyFALzxbJUAvMyFAJzxbJUAjMyMhQCM8WyVAHzMhQBs8WyVAFzMhQBM8WyVADzMjIUAPPFslYzMhQA88WyVjMWCDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlADCQE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwHAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AAgAmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwAXiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhTKAMhQA88WyVjMyQHMyQHMAhG9eK7Z5tnjZdwMDQIBIBARAfTtRNDUAfhj0gABjm3UAdAB1AHQAdQB0NQB0AHUAdAB1AHQAdQw0NQB0AHUAdAB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdIA1DDQEJsQmmwb4A4AFlR6mFR6mFR6mFOpASL4KNcLCoMJuvLgids8C9FVCQ8A1tQB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB1DDQ1AHQAdQB0AH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0gDUMNAQmxCaALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCAUgSEwARsK+7UTQ0gABgAHWybuNDVpcGZzOi8vUW1ZS1VnNWE2RHM0aGhXUHVtelozR2IzR1B6ODZ1ZG12UmRxSDdrd1VObnY0dIIA=="),p=xl.Cell.fromBase64("te6cckECFgEAA/sAAQHAAQEFoDu3AgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtWUtVZzVhNkRzNGhoV1B1bXpaM0diM0dQejg2dWRtdlJkcUg3a3dVTm52NHSCAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjZdwTCwAWVHqYVHqYVHqYU6kDmtAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUa2zzy4ILI+EMBzH8BygBVoNs8ye1UEw8NAcDIUAvPFslQC8zIUAnPFslQCMzIyFAIzxbJUAfMyFAGzxbJUAXMyFAEzxbJUAPMyMhQA88WyVjMyFADzxbJWMxYINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAMOAF4g10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYUygDIUAPPFslYzMkBzMkBzAGkAZIwf+BwIddJwh+VMCDXCx/eIMAAItdJwSGwklt/4IIQlGqYtrqOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcBABOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8EQHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wASAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAfTtRNDUAfhj0gABjm3UAdAB1AHQAdQB0NQB0AHUAdAB1AHQAdQw0NQB0AHUAdAB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdIA1DDQEJsQmmwb4BQBIvgo1wsKgwm68uCJ2zwL0VUJFQDW1AHQAdQB0AHUAdDUAdAB1AHQAdQB0AHUMNDUAdAB1AHQAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHSANQw0BCbEJrDtO+a");let g=(0,xl.beginCell)();g.storeRef(p),g.storeUint(0,1),uHe({$$type:"Metadata_init_args",avatar:e,name:t,about:n,website:r,terms:o,telegram:i,github:a,jetton:s,nft:l,hide:u,dns:c})(g);const m=g.endCell();return{code:f,data:m}}const cHe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"}},dHe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"MetadataState",header:null,fields:[{name:"avatar",type:{kind:"simple",type:"string",optional:!1}},{name:"name",type:{kind:"simple",type:"string",optional:!1}},{name:"about",type:{kind:"simple",type:"string",optional:!1}},{name:"website",type:{kind:"simple",type:"string",optional:!1}},{name:"terms",type:{kind:"simple",type:"string",optional:!1}},{name:"telegram",type:{kind:"simple",type:"string",optional:!1}},{name:"github",type:{kind:"simple",type:"string",optional:!1}},{name:"jetton",type:{kind:"simple",type:"address",optional:!1}},{name:"nft",type:{kind:"simple",type:"address",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}},{name:"dns",type:{kind:"simple",type:"string",optional:!1}}]}],fHe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"MetadataState",optional:!1}}],pHe=[{receiver:"internal",message:{kind:"empty"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let hHe=class CR{static async init(t,n,r,o,i,a,s,l,u,c,f){return await gz(t,n,r,o,i,a,s,l,u,c,f)}static async fromInit(t,n,r,o,i,a,s,l,u,c,f){const p=await gz(t,n,r,o,i,a,s,l,u,c,f),g=(0,xl.contractAddress)(0,p);return new CR(g,p)}static fromAddress(t){return new CR(t)}constructor(t,n){this.abi={types:dHe,getters:fHe,receivers:pHe,errors:cHe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o===null&&(i=new xl.Cell),o&&typeof o=="object"&&!(o instanceof xl.Slice)&&o.$$type==="Deploy"&&(i=(0,xl.beginCell)().store(Qre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new xl.TupleBuilder,r=(await t.get("state",n.build())).stack;return lHe(r)}};ir.Metadata=hHe;var Dt={};Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ProposalDeployer=Dt.loadProposalContractState=Dt.storeProposalContractState=Dt.loadUpdateProposal=Dt.storeUpdateProposal=Dt.loadVote=Dt.storeVote=Dt.loadProposalInit=Dt.storeProposalInit=Dt.loadParams=Dt.storeParams=Dt.loadSendUpdateProposal=Dt.storeSendUpdateProposal=Dt.loadSendProposalInit=Dt.storeSendProposalInit=Dt.loadDeployAndInitProposal=Dt.storeDeployAndInitProposal=Dt.loadChangeOwnerOk=Dt.storeChangeOwnerOk=Dt.loadChangeOwner=Dt.storeChangeOwner=Dt.loadFactoryDeploy=Dt.storeFactoryDeploy=Dt.loadDeployOk=Dt.storeDeployOk=Dt.loadDeploy=Dt.storeDeploy=Dt.loadSendParameters=Dt.storeSendParameters=Dt.loadContext=Dt.storeContext=Dt.loadStateInit=Dt.storeStateInit=void 0;const Ea=vr;function gHe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}Dt.storeStateInit=gHe;function mHe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}Dt.loadStateInit=mHe;function yHe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}Dt.storeContext=yHe;function vHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}Dt.loadContext=vHe;function bHe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}Dt.storeSendParameters=bHe;function wHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}Dt.loadSendParameters=wHe;function Kre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}Dt.storeDeploy=Kre;function SHe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}Dt.loadDeploy=SHe;function xHe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}Dt.storeDeployOk=xHe;function CHe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}Dt.loadDeployOk=CHe;function AHe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}Dt.storeFactoryDeploy=AHe;function _He(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}Dt.loadFactoryDeploy=_He;function EHe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}Dt.storeChangeOwner=EHe;function THe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}Dt.loadChangeOwner=THe;function kHe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}Dt.storeChangeOwnerOk=kHe;function IHe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}Dt.loadChangeOwnerOk=IHe;function Yre(e){return t=>{let n=t;n.storeUint(1496883659,32),n.store(Zy(e.body))}}Dt.storeDeployAndInitProposal=Yre;function PHe(e){let t=e;if(t.loadUint(32)!==1496883659)throw Error("Invalid prefix");return{$$type:"DeployAndInitProposal",body:ev(t)}}Dt.loadDeployAndInitProposal=PHe;function MHe(e){return t=>{let n=t;n.storeUint(2746622614,32),n.store(Zy(e.body))}}Dt.storeSendProposalInit=MHe;function OHe(e){let t=e;if(t.loadUint(32)!==2746622614)throw Error("Invalid prefix");return{$$type:"SendProposalInit",body:ev(t)}}Dt.loadSendProposalInit=OHe;function Gre(e){return t=>{let n=t;n.storeUint(2568858687,32),n.storeAddress(e.proposalAddress),n.store(Zy(e.updateParams))}}Dt.storeSendUpdateProposal=Gre;function RHe(e){let t=e;if(t.loadUint(32)!==2568858687)throw Error("Invalid prefix");let n=t.loadAddress(),r=ev(t);return{$$type:"SendUpdateProposal",proposalAddress:n,updateParams:r}}Dt.loadSendUpdateProposal=RHe;function Zy(e){return t=>{let n=t;n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ea.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}Dt.storeParams=Zy;function ev(e){let t=e,n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadUintBig(64),i=t.loadStringRefTail(),a=t.loadStringRefTail(),s=t.loadStringRefTail(),l=t.loadRef().beginParse(),u=l.loadStringRefTail(),c=l.loadStringRefTail(),f=l.loadBit();return{$$type:"Params",proposalStartTime:n,proposalEndTime:r,proposalSnapshotTime:o,votingSystem:i,votingPowerStrategies:a,title:s,description:u,quorum:c,hide:f}}Dt.loadParams=ev;function DHe(e){return t=>{let n=t;n.storeUint(1008560988,32),n.store(Zy(e.body))}}Dt.storeProposalInit=DHe;function BHe(e){let t=e;if(t.loadUint(32)!==1008560988)throw Error("Invalid prefix");return{$$type:"ProposalInit",body:ev(t)}}Dt.loadProposalInit=BHe;function $He(e){return t=>{let n=t;n.storeUint(2084703906,32),n.storeStringRefTail(e.comment)}}Dt.storeVote=$He;function LHe(e){let t=e;if(t.loadUint(32)!==2084703906)throw Error("Invalid prefix");return{$$type:"Vote",comment:t.loadStringRefTail()}}Dt.loadVote=LHe;function FHe(e){return t=>{let n=t;n.storeUint(817223820,32),n.store(Zy(e.updateParams))}}Dt.storeUpdateProposal=FHe;function NHe(e){let t=e;if(t.loadUint(32)!==817223820)throw Error("Invalid prefix");return{$$type:"UpdateProposal",updateParams:ev(t)}}Dt.loadUpdateProposal=NHe;function UHe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeUint(e.id,32),n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ea.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}Dt.storeProposalContractState=UHe;function jHe(e){let t=e,n=t.loadAddress(),r=t.loadUintBig(32),o=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),s=t.loadStringRefTail(),l=t.loadStringRefTail(),u=t.loadStringRefTail(),c=t.loadRef().beginParse(),f=c.loadStringRefTail(),p=c.loadStringRefTail(),g=c.loadBit();return{$$type:"ProposalContractState",proposalDeployer:n,id:r,proposalStartTime:o,proposalEndTime:i,proposalSnapshotTime:a,votingSystem:s,votingPowerStrategies:l,title:u,description:f,quorum:p,hide:g}}Dt.loadProposalContractState=jHe;function WHe(e){return t=>{t.storeAddress(e.dao)}}async function mz(e){const t=Ea.Cell.fromBase64("te6ccgECHwEABRgAART/APSkE/S88sgLAQIBYgIDAtTQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxa2zzy4ILI+EMBzH8BygBZWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFssfye1UHAQCASAODwSGAZIwf+BwIddJwh+VMCDXCx/eIIIQWTihy7qPFTDTHwGCEFk4ocu68uCB2zxsGds8f+AgghCZHaw/uuMCghCUapi2ugkFBgcE9oE0W/hCUsDHBfL0VBqQ2zxccFnIcAHLAXMBywFwAcsAEszMyfkAyHIBywFwAcsAEsoHy//J0CDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhVVXBwUN+AQA/IVYCCEDwda1xQCssfCds8yRYVEEgQN1ByEEYQRds8ARMKDAgDxjDTHwGCEJkdrD+68uCB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHbPBCabBqCAMQm+EJS0McF8vRVUnBwUKmAQAnIVYCCEDC12IxQCssfCds8yRAkECNtbds8fwkKDAFYjqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHALAAKkAFjTP9M/0z/UAdAB1AHQAdQB0AHUAdDUAdAB1AHQAdIAMBA5EDgQNxA2EDUQNABuUInLPxbLPxTLP8hQA88WyVjMyFjPFskBzMhYzxbJAczIyFADzxbJWMzIUAPPFslYzBLKAMkBzAE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwMAcrIcQHKAVAHAcoAcAHKAlAFINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WUAP6AnABymgjbrORf5MkbrPilzMzAXABygDjDSFus5x/AcoAASBu8tCAAcyVMXABygDiyQH7AA0AmH8BygDIcAHKAHABygAkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDiJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4nABygACfwHKAALJWMwCAW4QEQIBIBYXAhOz4LbPFjbPGwhgHBICEbMuds82zxsIYBwVAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIEwEO+EP4KFjbPBQAogLQ9AQwbQGBMS4BgBD0D2+h8uCHAYExLiICgBD0F8gByPQAyQHMcAHKAEADWSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFoEBAc8AyQACIAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAgEgGBkCASAaGwIRtF87Z5tnjYQwHB0AEbCvu1E0NIAAYAB1sm7jQ1aXBmczovL1FtWjgzeW5pN2dxM1oydXMyVEVVQUFDN0xkVTc1cVV1d2d5ZmhxM1N4eENZdzeCABwO1E0NQB+GPSAAGOJfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB0x9ZbBLg+CjXCwqDCbry4In6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdHbPB4AAiEAAnA="),n=Ea.Cell.fromBase64("te6cckECMwEAB+wAAQHAAQIBIBsCAQW+xawDART/APSkE/S88sgLBAIBYhEFAgEgDAYCASAjBwIBIAoIAhG0Xztnm2eNhDAZCQACIQIBICILAHWybuNDVpcGZzOi8vUW1aODN5bmk3Z3EzWjJ1czJURVVBQUM3TGRVNzVxVXV3Z3lmaHEzU3h4Q1l3N4IAIBbg8NAhGzLnbPNs8bCGAZDgACIAITs+C2zxY2zxsIYBkQAYbbPHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIFwLU0AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8Wts88uCCyPhDAcx/AcoAWVkg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxbLH8ntVBkSBIYBkjB/4HAh10nCH5UwINcLH94gghBZOKHLuo8VMNMfAYIQWTihy7ry4IHbPGwZ2zx/4CCCEJkdrD+64wKCEJRqmLa6LxQTKQPGMNMfAYIQmR2sP7ry4IH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAds8EJpsGoIAxCb4QlLQxwXy9FVScHBQqYBACchVgIIQMLXYjFAKyx8J2zzJECQQI21t2zx/LxYrBPaBNFv4QlLAxwXy9FQakNs8XHBZyHABywFzAcsBcAHLABLMzMn5AMhyAcsBcAHLABLKB8v/ydAg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVVVwcFDfgEAPyFWAghA8HWtcUArLHwnbPMkWFRBIEDdQchBGEEXbPAEXFisVAAKkAG5Qics/Fss/FMs/yFADzxbJWMzIWM8WyQHMyFjPFskBzMjIUAPPFslYzMhQA88WyVjMEsoAyQHMAQ74Q/goWNs8GACiAtD0BDBtAYExLgGAEPQPb6Hy4IcBgTEuIgKAEPQXyAHI9ADJAcxwAcoAQANZINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WgQEBzwDJAcDtRNDUAfhj0gABjiX6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMfWWwS4Pgo1wsKgwm68uCJ+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHR2zwaAAJwAQW9iXQcART/APSkE/S88sgLHQIBYiYeAgEgJB8CASAjIAIBSCIhAHWybuNDVpcGZzOi8vUW1WU1BMWU5BcTVYM0pKSFNwWWtIRWRCVmNlQVNMcXl4SzhmczRCVHdOMjg2YYIAARsK+7UTQ0gABgALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCEb14rtnm2eNl3DAlABZUephUephUephTqQN60AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8VRrbPPLggjAoJwDOyPhDAcx/AcoAVaBQuiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhjLHxbLPxTLPxLLP8hYzxbJAczIWM8WyQHMyMhQA88WyVjMyFADzxbJWMzIUATPFslQA8zKAMkBzMntVATuAZIwf+BwIddJwh+VMCDXCx/eIIIQPB1rXLqOvzDTHwGCEDwda1y68uCB2zxsGTk5OTk5OYELoQzAAJMKwACSOnDikwjAAJI4cOIa8vSBEU34QlLAxwXy9BBnf+AgghB8Qg6iuuMCIIIQMLXYjLrjAoIQlGqYtrovLi0pAViOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcCoBOm1tIm6zmVsgbvLQgG8iAZEy4hAkcAMEgEJQI9s8KwHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAsAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAZIw0x8BghAwtdiMuvLggds8bBk5OTk5OTmCAO9eLMMAkwvDAJI7cOKTCcMAkjlw4hry9IERTfhCUtDHBfL0gSLb+CNQC7sa8vR/LwBMMNMfAYIQfEIOorry4IHUAdAxMIIAzG74Iyq+lPgjKbuRcOLy9H8AWNM/0z/TP9QB0AHUAdAB1AHQAdQB0NQB0AHUAdAB0gAwEDkQOBA3EDYQNRA0AdTtRNDUAfhj0gABjlL6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdMf0z/TP9M/1AHQAdQB0AHUAdDUAdAB1AHQAdQB0AHSADAQSxBKEEkQSBBHEEYQRWwb4Pgo1wsKgwm68uCJMQFW+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAGBAQHXAFkC0QHbPDIAHHBTAIsIiwiLCIsIiwhwt2X6Qg==");let r=(0,Ea.beginCell)();r.storeRef(n),r.storeUint(0,1),WHe({$$type:"ProposalDeployer_init_args",dao:e})(r);const o=r.endCell();return{code:t,data:o}}const zHe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},8923:{message:"Update proposals is possible only before start time"},13403:{message:"only dao can send create proposal message"},50214:{message:"only dao can send update proposal message"},52334:{message:"Incative proposal"},61278:{message:"Propsal was not initialized yet"}},VHe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitProposal",header:1496883659,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"SendProposalInit",header:2746622614,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"SendUpdateProposal",header:2568858687,fields:[{name:"proposalAddress",type:{kind:"simple",type:"address",optional:!1}},{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Params",header:null,fields:[{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]},{name:"ProposalInit",header:1008560988,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Vote",header:2084703906,fields:[{name:"comment",type:{kind:"simple",type:"string",optional:!1}}]},{name:"UpdateProposal",header:817223820,fields:[{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"ProposalContractState",header:null,fields:[{name:"proposalDeployer",type:{kind:"simple",type:"address",optional:!1}},{name:"id",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]}],HHe=[{name:"dao",arguments:[],returnType:{kind:"simple",type:"address",optional:!1}},{name:"nextProposalId",arguments:[],returnType:{kind:"simple",type:"int",optional:!1,format:257}},{name:"proposalAddr",arguments:[{name:"index",type:{kind:"simple",type:"int",optional:!1,format:257}}],returnType:{kind:"simple",type:"address",optional:!1}}],qHe=[{receiver:"internal",message:{kind:"typed",type:"DeployAndInitProposal"}},{receiver:"internal",message:{kind:"typed",type:"SendUpdateProposal"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];class GA{static async init(t){return await mz(t)}static async fromInit(t){const n=await mz(t),r=(0,Ea.contractAddress)(0,n);return new GA(r,n)}static fromAddress(t){return new GA(t)}constructor(t,n){this.abi={types:VHe,getters:HHe,receivers:qHe,errors:zHe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="DeployAndInitProposal"&&(i=(0,Ea.beginCell)().store(Yre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="SendUpdateProposal"&&(i=(0,Ea.beginCell)().store(Gre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ea.Slice)&&o.$$type==="Deploy"&&(i=(0,Ea.beginCell)().store(Kre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getDao(t){let n=new Ea.TupleBuilder;return(await t.get("dao",n.build())).stack.readAddress()}async getNextProposalId(t){let n=new Ea.TupleBuilder;return(await t.get("nextProposalId",n.build())).stack.readBigNumber()}async getProposalAddr(t,n){let r=new Ea.TupleBuilder;return r.writeNumber(n),(await t.get("proposalAddr",r.build())).stack.readAddress()}}Dt.ProposalDeployer=GA;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});pn.Proposal=pn.loadProposalContractState=pn.storeProposalContractState=pn.loadUpdateProposal=pn.storeUpdateProposal=pn.loadVote=pn.storeVote=pn.loadProposalInit=pn.storeProposalInit=pn.loadParams=pn.storeParams=pn.loadFactoryDeploy=pn.storeFactoryDeploy=pn.loadDeployOk=pn.storeDeployOk=pn.loadDeploy=pn.storeDeploy=pn.loadSendParameters=pn.storeSendParameters=pn.loadContext=pn.storeContext=pn.loadStateInit=pn.storeStateInit=void 0;const Ta=vr;function QHe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}pn.storeStateInit=QHe;function KHe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}pn.loadStateInit=KHe;function YHe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}pn.storeContext=YHe;function GHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}pn.loadContext=GHe;function JHe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}pn.storeSendParameters=JHe;function XHe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}pn.loadSendParameters=XHe;function Jre(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}pn.storeDeploy=Jre;function ZHe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}pn.loadDeploy=ZHe;function eqe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}pn.storeDeployOk=eqe;function tqe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}pn.loadDeployOk=tqe;function nqe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}pn.storeFactoryDeploy=nqe;function rqe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}pn.loadFactoryDeploy=rqe;function n$(e){return t=>{let n=t;n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ta.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}pn.storeParams=n$;function r$(e){let t=e,n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadUintBig(64),i=t.loadStringRefTail(),a=t.loadStringRefTail(),s=t.loadStringRefTail(),l=t.loadRef().beginParse(),u=l.loadStringRefTail(),c=l.loadStringRefTail(),f=l.loadBit();return{$$type:"Params",proposalStartTime:n,proposalEndTime:r,proposalSnapshotTime:o,votingSystem:i,votingPowerStrategies:a,title:s,description:u,quorum:c,hide:f}}pn.loadParams=r$;function Xre(e){return t=>{let n=t;n.storeUint(1008560988,32),n.store(n$(e.body))}}pn.storeProposalInit=Xre;function oqe(e){let t=e;if(t.loadUint(32)!==1008560988)throw Error("Invalid prefix");return{$$type:"ProposalInit",body:r$(t)}}pn.loadProposalInit=oqe;function Zre(e){return t=>{let n=t;n.storeUint(2084703906,32),n.storeStringRefTail(e.comment)}}pn.storeVote=Zre;function iqe(e){let t=e;if(t.loadUint(32)!==2084703906)throw Error("Invalid prefix");return{$$type:"Vote",comment:t.loadStringRefTail()}}pn.loadVote=iqe;function eoe(e){return t=>{let n=t;n.storeUint(817223820,32),n.store(n$(e.updateParams))}}pn.storeUpdateProposal=eoe;function aqe(e){let t=e;if(t.loadUint(32)!==817223820)throw Error("Invalid prefix");return{$$type:"UpdateProposal",updateParams:r$(t)}}pn.loadUpdateProposal=aqe;function sqe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeUint(e.id,32),n.storeUint(e.proposalStartTime,64),n.storeUint(e.proposalEndTime,64),n.storeUint(e.proposalSnapshotTime,64),n.storeStringRefTail(e.votingSystem),n.storeStringRefTail(e.votingPowerStrategies),n.storeStringRefTail(e.title);let r=new Ta.Builder;r.storeStringRefTail(e.description),r.storeStringRefTail(e.quorum),r.storeBit(e.hide),n.storeRef(r.endCell())}}pn.storeProposalContractState=sqe;function lqe(e){let t=e,n=t.loadAddress(),r=t.loadUintBig(32),o=t.loadUintBig(64),i=t.loadUintBig(64),a=t.loadUintBig(64),s=t.loadStringRefTail(),l=t.loadStringRefTail(),u=t.loadStringRefTail(),c=t.loadRef().beginParse(),f=c.loadStringRefTail(),p=c.loadStringRefTail(),g=c.loadBit();return{$$type:"ProposalContractState",proposalDeployer:n,id:r,proposalStartTime:o,proposalEndTime:i,proposalSnapshotTime:a,votingSystem:s,votingPowerStrategies:l,title:u,description:f,quorum:p,hide:g}}pn.loadProposalContractState=lqe;function uqe(e){let t=e.readAddress(),n=e.readBigNumber(),r=e.readBigNumber(),o=e.readBigNumber(),i=e.readBigNumber(),a=e.readString(),s=e.readString(),l=e.readString(),u=e.readString(),c=e.readString(),f=e.readBoolean();return{$$type:"ProposalContractState",proposalDeployer:t,id:n,proposalStartTime:r,proposalEndTime:o,proposalSnapshotTime:i,votingSystem:a,votingPowerStrategies:s,title:l,description:u,quorum:c,hide:f}}function cqe(e){return t=>{let n=t;n.storeAddress(e.proposalDeployer),n.storeInt(e.id,257)}}async function yz(e,t){const n=Ta.Cell.fromBase64("te6ccgECFwEABFwAART/APSkE/S88sgLAQIBYgIDA3rQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxVGts88uCCDwQFAgEgDQ4E7gGSMH/gcCHXScIflTAg1wsf3iCCEDwda1y6jr8w0x8BghA8HWtcuvLggds8bBk5OTk5OTmBC6EMwACTCsAAkjpw4pMIwACSOHDiGvL0gRFN+EJSwMcF8vQQZ3/gIIIQfEIOorrjAiCCEDC12Iy64wKCEJRqmLa6CQYHCADOyPhDAcx/AcoAVaBQuiDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFhjLHxbLPxTLPxLLP8hYzxbJAczIWM8WyQHMyMhQA88WyVjMyFADzxbJWMzIUATPFslQA8zKAMkBzMntVABMMNMfAYIQfEIOorry4IHUAdAxMIIAzG74Iyq+lPgjKbuRcOLy9H8BkjDTHwGCEDC12Iy68uCB2zxsGTk5OTk5OYIA714swwCTC8MAkjtw4pMJwwCSOXDiGvL0gRFN+EJS0McF8vSBItv4I1ALuxry9H8JAViOp9MfAYIQlGqYtrry4IHTPwExyAGCEK/5D1dYyx/LP8n4QgFwbds8f+AwcAoAWNM/0z/TP9QB0AHUAdAB1AHQAdQB0NQB0AHUAdAB0gAwEDkQOBA3EDYQNRA0ATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPAsByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsADACYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzAIRvXiu2ebZ42XcDxACASATFAHU7UTQ1AH4Y9IAAY5S+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTH9M/0z/TP9QB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB0gAwEEsQShBJEEgQRxBGEEVsG+D4KNcLCoMJuvLgiREAFlR6mFR6mFR6mFOpAVb6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAYEBAdcAWQLRAds8EgAccFMAiwiLCIsIiwiLCHAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAIBSBUWABGwr7tRNDSAAGAAdbJu40NWlwZnM6Ly9RbVJvWlhNVUpjYVhLYzM2U3BBeTZKUjJ6b2d3SzNwZXh6NXNLb1hHSlpHTG1Fgg"),r=Ta.Cell.fromBase64("te6cckECGQEABGYAAQHAAQEFoGJdAgEU/wD0pBP0vPLICwMCAWIMBAIBIAoFAgEgCQYCAUgIBwB1sm7jQ1aXBmczovL1FtUm9aWE1VSmNhWEtjMzZTcEF5NkpSMnpvZ3dLM3BleHo1c0tvWEdKWkdMbUWCAAEbCvu1E0NIAAYAC5u70YJwXOw9XSyuex6E7DnWSoUbZoJwndY1LStkfLMi068t/fFiOYJwIFXAG4BnY5TOWDquRyWyw4JwG9Sd75VFlvHHU9PeBVnDJoJwnZdOWrNOy3M6DpZtlGbopIAhG9eK7Z5tnjZdwWCwAWVHqYVHqYVHqYU6kDetAB0NMDAXGwowH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIVFBTA28E+GEC+GLbPFUa2zzy4IIWDg0Azsj4QwHMfwHKAFWgULog10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYYyx8Wyz8Uyz8Syz/IWM8WyQHMyFjPFskBzMjIUAPPFslYzMhQA88WyVjMyFAEzxbJUAPMygDJAczJ7VQE7gGSMH/gcCHXScIflTAg1wsf3iCCEDwda1y6jr8w0x8BghA8HWtcuvLggds8bBk5OTk5OTmBC6EMwACTCsAAkjpw4pMIwACSOHDiGvL0gRFN+EJSwMcF8vQQZ3/gIIIQfEIOorrjAiCCEDC12Iy64wKCEJRqmLa6FRQTDwFYjqfTHwGCEJRqmLa68uCB0z8BMcgBghCv+Q9XWMsfyz/J+EIBcG3bPH/gMHAQATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPBEByshxAcoBUAcBygBwAcoCUAUg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxZQA/oCcAHKaCNus5F/kyRus+KXMzMBcAHKAOMNIW6znH8BygABIG7y0IABzJUxcAHKAOLJAfsAEgCYfwHKAMhwAcoAcAHKACRus51/AcoABCBu8tCAUATMljQDcAHKAOIkbrOdfwHKAAQgbvLQgFAEzJY0A3ABygDicAHKAAJ/AcoAAslYzAGSMNMfAYIQMLXYjLry4IHbPGwZOTk5OTk5ggDvXizDAJMLwwCSO3DikwnDAJI5cOIa8vSBEU34QlLQxwXy9IEi2/gjUAu7GvL0fxUATDDTHwGCEHxCDqK68uCB1AHQMTCCAMxu+CMqvpT4Iym7kXDi8vR/AFjTP9M/0z/UAdAB1AHQAdQB0AHUAdDUAdAB1AHQAdIAMBA5EDgQNxA2EDUQNAHU7UTQ1AH4Y9IAAY5S+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAHTH9M/0z/TP9QB0AHUAdAB1AHQ1AHQAdQB0AHUAdAB0gAwEEsQShBJEEgQRxBGEEVsG+D4KNcLCoMJuvLgiRcBVvpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgBgQEB1wBZAtEB2zwYABxwUwCLCIsIiwiLCIsIcIuEzpQ=");let o=(0,Ta.beginCell)();o.storeRef(r),o.storeUint(0,1),cqe({$$type:"Proposal_init_args",proposalDeployer:e,id:t})(o);const i=o.endCell();return{code:n,data:i}}const dqe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},8923:{message:"Update proposals is possible only before start time"},52334:{message:"Incative proposal"},61278:{message:"Propsal was not initialized yet"}},fqe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"Params",header:null,fields:[{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]},{name:"ProposalInit",header:1008560988,fields:[{name:"body",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"Vote",header:2084703906,fields:[{name:"comment",type:{kind:"simple",type:"string",optional:!1}}]},{name:"UpdateProposal",header:817223820,fields:[{name:"updateParams",type:{kind:"simple",type:"Params",optional:!1}}]},{name:"ProposalContractState",header:null,fields:[{name:"proposalDeployer",type:{kind:"simple",type:"address",optional:!1}},{name:"id",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"proposalStartTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalEndTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"proposalSnapshotTime",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"votingSystem",type:{kind:"simple",type:"string",optional:!1}},{name:"votingPowerStrategies",type:{kind:"simple",type:"string",optional:!1}},{name:"title",type:{kind:"simple",type:"string",optional:!1}},{name:"description",type:{kind:"simple",type:"string",optional:!1}},{name:"quorum",type:{kind:"simple",type:"string",optional:!1}},{name:"hide",type:{kind:"simple",type:"bool",optional:!1}}]}],pqe=[{name:"state",arguments:[],returnType:{kind:"simple",type:"ProposalContractState",optional:!1}}],hqe=[{receiver:"internal",message:{kind:"typed",type:"ProposalInit"}},{receiver:"internal",message:{kind:"typed",type:"Vote"}},{receiver:"internal",message:{kind:"typed",type:"UpdateProposal"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let gqe=class AR{static async init(t,n){return await yz(t,n)}static async fromInit(t,n){const r=await yz(t,n),o=(0,Ta.contractAddress)(0,r);return new AR(o,r)}static fromAddress(t){return new AR(t)}constructor(t,n){this.abi={types:fqe,getters:pqe,receivers:hqe,errors:dqe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="ProposalInit"&&(i=(0,Ta.beginCell)().store(Xre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="Vote"&&(i=(0,Ta.beginCell)().store(Zre(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="UpdateProposal"&&(i=(0,Ta.beginCell)().store(eoe(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Ta.Slice)&&o.$$type==="Deploy"&&(i=(0,Ta.beginCell)().store(Jre(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}async getState(t){let n=new Ta.TupleBuilder,r=(await t.get("state",n.build())).stack;return uqe(r)}};pn.Proposal=gqe;var YS={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.VotingPowerStrategyType=e.VotingSystemType=e.ReleaseMode=void 0,function(t){t[t.PRODUCTION=0]="PRODUCTION",t[t.DEVELOPMENT=1]="DEVELOPMENT",t[t.DEVELOPMENT_2=2]="DEVELOPMENT_2"}(e.ReleaseMode||(e.ReleaseMode={})),function(t){t[t.UNDEFINED=-1]="UNDEFINED",t[t.CHOOSE_EXACTLY_ONE=0]="CHOOSE_EXACTLY_ONE"}(e.VotingSystemType||(e.VotingSystemType={})),function(t){t[t.UNDEFINED=-1]="UNDEFINED",t[t.TonBalance=0]="TonBalance",t[t.JettonBalance=1]="JettonBalance",t[t.NftCcollection=2]="NftCcollection",t[t.TonBalance_1Wallet1Vote=3]="TonBalance_1Wallet1Vote",t[t.JettonBalance_1Wallet1Vote=4]="JettonBalance_1Wallet1Vote",t[t.NftCcollection_1Wallet1Vote=5]="NftCcollection_1Wallet1Vote",t[t.ValidatorsVote=6]="ValidatorsVote",t[t.TonBalanceWithValidators=7]="TonBalanceWithValidators"}(e.VotingPowerStrategyType||(e.VotingPowerStrategyType={}))})(YS);var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.Router=gt.loadDaoContractState=gt.storeDaoContractState=gt.loadDaoInit=gt.storeDaoInit=gt.loadFwdMsg=gt.storeFwdMsg=gt.loadSetMetadata=gt.storeSetMetadata=gt.loadSetFwdMsgFee=gt.storeSetFwdMsgFee=gt.loadSetProposalOwner=gt.storeSetProposalOwner=gt.loadSetOwner=gt.storeSetOwner=gt.loadRegistryContractState=gt.storeRegistryContractState=gt.loadSetRegistryAdmin=gt.storeSetRegistryAdmin=gt.loadSendToDaoSetFwdMsgFee=gt.storeSendToDaoSetFwdMsgFee=gt.loadSetNewDaoFwdMsgFee=gt.storeSetNewDaoFwdMsgFee=gt.loadSetDeployAndInitDaoFee=gt.storeSetDeployAndInitDaoFee=gt.loadSendDaoInit=gt.storeSendDaoInit=gt.loadDeployAndInitDao=gt.storeDeployAndInitDao=gt.loadRouteDeployAndInitDao=gt.storeRouteDeployAndInitDao=gt.loadChangeOwnerOk=gt.storeChangeOwnerOk=gt.loadChangeOwner=gt.storeChangeOwner=gt.loadFactoryDeploy=gt.storeFactoryDeploy=gt.loadDeployOk=gt.storeDeployOk=gt.loadDeploy=gt.storeDeploy=gt.loadSendParameters=gt.storeSendParameters=gt.loadContext=gt.storeContext=gt.loadStateInit=gt.storeStateInit=void 0;const Xu=vr;function mqe(e){return t=>{let n=t;n.storeRef(e.code),n.storeRef(e.data)}}gt.storeStateInit=mqe;function yqe(e){let t=e,n=t.loadRef(),r=t.loadRef();return{$$type:"StateInit",code:n,data:r}}gt.loadStateInit=yqe;function vqe(e){return t=>{let n=t;n.storeBit(e.bounced),n.storeAddress(e.sender),n.storeInt(e.value,257),n.storeRef(e.raw)}}gt.storeContext=vqe;function bqe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadRef();return{$$type:"Context",bounced:n,sender:r,value:o,raw:i}}gt.loadContext=bqe;function toe(e){return t=>{let n=t;n.storeBit(e.bounce),n.storeAddress(e.to),n.storeInt(e.value,257),n.storeInt(e.mode,257),e.body!==null&&e.body!==void 0?n.storeBit(!0).storeRef(e.body):n.storeBit(!1),e.code!==null&&e.code!==void 0?n.storeBit(!0).storeRef(e.code):n.storeBit(!1),e.data!==null&&e.data!==void 0?n.storeBit(!0).storeRef(e.data):n.storeBit(!1)}}gt.storeSendParameters=toe;function noe(e){let t=e,n=t.loadBit(),r=t.loadAddress(),o=t.loadIntBig(257),i=t.loadIntBig(257),a=t.loadBit()?t.loadRef():null,s=t.loadBit()?t.loadRef():null,l=t.loadBit()?t.loadRef():null;return{$$type:"SendParameters",bounce:n,to:r,value:o,mode:i,body:a,code:s,data:l}}gt.loadSendParameters=noe;function roe(e){return t=>{let n=t;n.storeUint(2490013878,32),n.storeUint(e.queryId,64)}}gt.storeDeploy=roe;function wqe(e){let t=e;if(t.loadUint(32)!==2490013878)throw Error("Invalid prefix");return{$$type:"Deploy",queryId:t.loadUintBig(64)}}gt.loadDeploy=wqe;function Sqe(e){return t=>{let n=t;n.storeUint(2952335191,32),n.storeUint(e.queryId,64)}}gt.storeDeployOk=Sqe;function xqe(e){let t=e;if(t.loadUint(32)!==2952335191)throw Error("Invalid prefix");return{$$type:"DeployOk",queryId:t.loadUintBig(64)}}gt.loadDeployOk=xqe;function Cqe(e){return t=>{let n=t;n.storeUint(1829761339,32),n.storeUint(e.queryId,64),n.storeAddress(e.cashback)}}gt.storeFactoryDeploy=Cqe;function Aqe(e){let t=e;if(t.loadUint(32)!==1829761339)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"FactoryDeploy",queryId:n,cashback:r}}gt.loadFactoryDeploy=Aqe;function _qe(e){return t=>{let n=t;n.storeUint(2174598809,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}gt.storeChangeOwner=_qe;function Eqe(e){let t=e;if(t.loadUint(32)!==2174598809)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwner",queryId:n,newOwner:r}}gt.loadChangeOwner=Eqe;function Tqe(e){return t=>{let n=t;n.storeUint(846932810,32),n.storeUint(e.queryId,64),n.storeAddress(e.newOwner)}}gt.storeChangeOwnerOk=Tqe;function kqe(e){let t=e;if(t.loadUint(32)!==846932810)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadAddress();return{$$type:"ChangeOwnerOk",queryId:n,newOwner:r}}gt.loadChangeOwnerOk=kqe;function ooe(e){return t=>{let n=t;n.storeUint(739290419,32),n.storeUint(e.prodMsgValue,64),n.storeUint(e.devMsgValue,64),n.storeAddress(e.prodRegistry),n.storeAddress(e.devRegistry),n.storeAddress(e.owner);let r=new Xu.Builder;r.storeAddress(e.proposalOwner),r.storeAddress(e.metadata),n.storeRef(r.endCell())}}gt.storeRouteDeployAndInitDao=ooe;function Iqe(e){let t=e;if(t.loadUint(32)!==739290419)throw Error("Invalid prefix");let n=t.loadUintBig(64),r=t.loadUintBig(64),o=t.loadAddress(),i=t.loadAddress(),a=t.loadAddress(),s=t.loadRef().beginParse(),l=s.loadAddress(),u=s.loadAddress();return{$$type:"RouteDeployAndInitDao",prodMsgValue:n,devMsgValue:r,prodRegistry:o,devRegistry:i,owner:a,proposalOwner:l,metadata:u}}gt.loadRouteDeployAndInitDao=Iqe;function Pqe(e){return t=>{let n=t;n.storeUint(3378223972,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}gt.storeDeployAndInitDao=Pqe;function Mqe(e){let t=e;if(t.loadUint(32)!==3378223972)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"DeployAndInitDao",owner:n,proposalOwner:r,metadata:o}}gt.loadDeployAndInitDao=Mqe;function Oqe(e){return t=>{let n=t;n.storeUint(3367586747,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata)}}gt.storeSendDaoInit=Oqe;function Rqe(e){let t=e;if(t.loadUint(32)!==3367586747)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress();return{$$type:"SendDaoInit",owner:n,proposalOwner:r,metadata:o}}gt.loadSendDaoInit=Rqe;function Dqe(e){return t=>{let n=t;n.storeUint(2828439833,32),n.storeUint(e.newDeployAndInitDaoFee,64)}}gt.storeSetDeployAndInitDaoFee=Dqe;function Bqe(e){let t=e;if(t.loadUint(32)!==2828439833)throw Error("Invalid prefix");return{$$type:"SetDeployAndInitDaoFee",newDeployAndInitDaoFee:t.loadUintBig(64)}}gt.loadSetDeployAndInitDaoFee=Bqe;function $qe(e){return t=>{let n=t;n.storeUint(60181454,32),n.storeUint(e.newDaosfwdMsgFee,64)}}gt.storeSetNewDaoFwdMsgFee=$qe;function Lqe(e){let t=e;if(t.loadUint(32)!==60181454)throw Error("Invalid prefix");return{$$type:"SetNewDaoFwdMsgFee",newDaosfwdMsgFee:t.loadUintBig(64)}}gt.loadSetNewDaoFwdMsgFee=Lqe;function Fqe(e){return t=>{let n=t;n.storeUint(1477819782,32),n.storeUint(e.daoId,32),n.storeUint(e.newFwdMsgFee,64)}}gt.storeSendToDaoSetFwdMsgFee=Fqe;function Nqe(e){let t=e;if(t.loadUint(32)!==1477819782)throw Error("Invalid prefix");let n=t.loadUintBig(32),r=t.loadUintBig(64);return{$$type:"SendToDaoSetFwdMsgFee",daoId:n,newFwdMsgFee:r}}gt.loadSendToDaoSetFwdMsgFee=Nqe;function Uqe(e){return t=>{let n=t;n.storeUint(3335943114,32),n.storeAddress(e.newAdmin)}}gt.storeSetRegistryAdmin=Uqe;function jqe(e){let t=e;if(t.loadUint(32)!==3335943114)throw Error("Invalid prefix");return{$$type:"SetRegistryAdmin",newAdmin:t.loadAddress()}}gt.loadSetRegistryAdmin=jqe;function Wqe(e){return t=>{let n=t;n.storeUint(e.registryId,32),n.storeUint(e.nextDaoId,32),n.storeAddress(e.admin),n.storeUint(e.deployAndInitDaoFee,64),n.storeUint(e.newDaosfwdMsgFee,64)}}gt.storeRegistryContractState=Wqe;function zqe(e){let t=e,n=t.loadUintBig(32),r=t.loadUintBig(32),o=t.loadAddress(),i=t.loadUintBig(64),a=t.loadUintBig(64);return{$$type:"RegistryContractState",registryId:n,nextDaoId:r,admin:o,deployAndInitDaoFee:i,newDaosfwdMsgFee:a}}gt.loadRegistryContractState=zqe;function Vqe(e){return t=>{let n=t;n.storeUint(3266583875,32),n.storeAddress(e.newOwner)}}gt.storeSetOwner=Vqe;function Hqe(e){let t=e;if(t.loadUint(32)!==3266583875)throw Error("Invalid prefix");return{$$type:"SetOwner",newOwner:t.loadAddress()}}gt.loadSetOwner=Hqe;function qqe(e){return t=>{let n=t;n.storeUint(3504586358,32),n.storeAddress(e.newProposalOwner)}}gt.storeSetProposalOwner=qqe;function Qqe(e){let t=e;if(t.loadUint(32)!==3504586358)throw Error("Invalid prefix");return{$$type:"SetProposalOwner",newProposalOwner:t.loadAddress()}}gt.loadSetProposalOwner=Qqe;function Kqe(e){return t=>{let n=t;n.storeUint(4109608450,32),n.storeUint(e.newFwdMsgFee,64)}}gt.storeSetFwdMsgFee=Kqe;function Yqe(e){let t=e;if(t.loadUint(32)!==4109608450)throw Error("Invalid prefix");return{$$type:"SetFwdMsgFee",newFwdMsgFee:t.loadUintBig(64)}}gt.loadSetFwdMsgFee=Yqe;function Gqe(e){return t=>{let n=t;n.storeUint(3660550271,32),n.storeAddress(e.newMetadata)}}gt.storeSetMetadata=Gqe;function Jqe(e){let t=e;if(t.loadUint(32)!==3660550271)throw Error("Invalid prefix");return{$$type:"SetMetadata",newMetadata:t.loadAddress()}}gt.loadSetMetadata=Jqe;function Xqe(e){return t=>{let n=t;n.storeUint(1690551268,32),n.store(toe(e.fwdMsg))}}gt.storeFwdMsg=Xqe;function Zqe(e){let t=e;if(t.loadUint(32)!==1690551268)throw Error("Invalid prefix");return{$$type:"FwdMsg",fwdMsg:noe(t)}}gt.loadFwdMsg=Zqe;function eQe(e){return t=>{let n=t;n.storeUint(3971512043,32),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner),n.storeAddress(e.metadata),n.storeUint(e.fwdMsgFee,64)}}gt.storeDaoInit=eQe;function tQe(e){let t=e;if(t.loadUint(32)!==3971512043)throw Error("Invalid prefix");let n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadUintBig(64);return{$$type:"DaoInit",owner:n,proposalOwner:r,metadata:o,fwdMsgFee:i}}gt.loadDaoInit=tQe;function nQe(e){return t=>{let n=t;n.storeAddress(e.registry),n.storeAddress(e.owner),n.storeAddress(e.proposalOwner);let r=new Xu.Builder;r.storeAddress(e.metadata),r.storeUint(e.daoIndex,32),r.storeUint(e.fwdMsgFee,64),n.storeRef(r.endCell())}}gt.storeDaoContractState=nQe;function rQe(e){let t=e,n=t.loadAddress(),r=t.loadAddress(),o=t.loadAddress(),i=t.loadRef().beginParse(),a=i.loadAddress(),s=i.loadUintBig(32),l=i.loadUintBig(64);return{$$type:"DaoContractState",registry:n,owner:r,proposalOwner:o,metadata:a,daoIndex:s,fwdMsgFee:l}}gt.loadDaoContractState=rQe;async function vz(){const e=Xu.Cell.fromBase64("te6ccgECEgEABCEAART/APSkE/S88sgLAQIBYgIDApLQAdDTAwFxsKMB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiFRQUwNvBPhhAvhi2zxZ2zzy4IIwyPhDAcx/AcoAye1UBAUCAVgODwE07UTQ1AH4Y9IAMJFt4Pgo1wsKgwm68uCJ2zwGA7ABkjB/4HAh10nCH5UwINcLH94gghAsEK0zuo8IMNs8bBfbPH/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwBwgJAAJtAejTHwGCECwQrTO68uCB0z/TP/pAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdQB0AoB9HBwVHQyyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskQRxA5bW0QRhBFCwE6bW0ibrOZWyBu8tCAbyIBkTLiECRwAwSAQlAj2zwMAJT6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgxECcQJhAlECQQIwL02zxwA3AGyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskUbW0QRhBF2zwMDAHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wANAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMALm7vRgnBc7D1dLK57HoTsOdZKhRtmgnCd1jUtK2R8syLTry398WI5gnAgVcAbgGdjlM5YOq5HJbLDgnAb1J3vlUWW8cdT094FWcMmgnCdl05as07LczoOlm2UZuikgCAUgQEQARsK+7UTQ0gABgAHWybuNDVpcGZzOi8vUW1RZHNaQktGb0I0b0Fyc2tlOEN3MWYyR3I5eURhb0pNTXhCaXFpN3U1VUhwcIIA=="),t=Xu.Cell.fromBase64("te6cckECFAEABCsAAQHAAQEFoa4HAgEU/wD0pBP0vPLICwMCAWIJBAIBWAgFAgFIBwYAdbJu40NWlwZnM6Ly9RbVFkc1pCS0ZvQjRvQXJza2U4Q3cxZjJHcjl5RGFvSk1NeEJpcWk3dTVVSHBwggABGwr7tRNDSAAGAAubu9GCcFzsPV0srnsehOw51kqFG2aCcJ3WNS0rZHyzItOvLf3xYjmCcCBVwBuAZ2OUzlg6rkclssOCcBvUne+VRZbxx1PT3gVZwyaCcJ2XTlqzTstzOg6WbZRm6KSAKS0AHQ0wMBcbCjAfpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IhUUFMDbwT4YQL4Yts8Wds88uCCMMj4QwHMfwHKAMntVBIKA7ABkjB/4HAh10nCH5UwINcLH94gghAsEK0zuo8IMNs8bBfbPH/gghCUapi2uo6n0x8BghCUapi2uvLggdM/ATHIAYIQr/kPV1jLH8s/yfhCAXBt2zx/4DBwEAwLATptbSJus5lbIG7y0IBvIgGRMuIQJHADBIBCUCPbPA4B9HBwVHQyyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskQRxA5bW0QRhBFDQL02zxwA3AGyFUgghDJW5tkUATLH1gg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIzxYBINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiM8WASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFskUbW0QRhBF2zwODgHKyHEBygFQBwHKAHABygJQBSDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IjPFlAD+gJwAcpoI26zkX+TJG6z4pczMwFwAcoA4w0hbrOcfwHKAAEgbvLQgAHMlTFwAcoA4skB+wAPAJh/AcoAyHABygBwAcoAJG6znX8BygAEIG7y0IBQBMyWNANwAcoA4iRus51/AcoABCBu8tCAUATMljQDcAHKAOJwAcoAAn8BygACyVjMAejTHwGCECwQrTO68uCB0z/TP/pAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiAH6QAEg10mBAQu68uCIINcLCiCBBP+68tCJgwm68uCIAdQB0BEAlPpAASDXSYEBC7ry4Igg1wsKIIEE/7ry0ImDCbry4IgB+kABINdJgQELuvLgiCDXCwoggQT/uvLQiYMJuvLgiDEQJxAmECUQJBAjATTtRNDUAfhj0gAwkW3g+CjXCwqDCbry4InbPBMAAm0MKTMY");let n=(0,Xu.beginCell)();n.storeRef(t),n.storeUint(0,1);const r=n.endCell();return{code:e,data:r}}const oQe={2:{message:"Stack undeflow"},3:{message:"Stack overflow"},4:{message:"Integer overflow"},5:{message:"Integer out of expected range"},6:{message:"Invalid opcode"},7:{message:"Type check error"},8:{message:"Cell overflow"},9:{message:"Cell underflow"},10:{message:"Dictionary error"},13:{message:"Out of gas error"},32:{message:"Method ID not found"},34:{message:"Action is invalid or not supported"},37:{message:"Not enough TON"},38:{message:"Not enough extra-currencies"},128:{message:"Null reference exception"},129:{message:"Invalid serialization prefix"},130:{message:"Invalid incoming message"},131:{message:"Constraints error"},132:{message:"Access denied"},133:{message:"Contract stopped"},134:{message:"Invalid argument"},135:{message:"Code of a contract was not found"},136:{message:"Invalid address"},137:{message:"Masterchain support is not enabled for this contract"},2977:{message:"Already initialized"},4429:{message:"Invalid sender"},4600:{message:"Only admin can set the create dao fee"},8645:{message:"Only admin can set the dao fwd msg fee"},23452:{message:"Only admin can set new registry admin"},46336:{message:"Below min fee for create dao"},51893:{message:"Only registry can change fwd msg fee"},56012:{message:"Only admin can set the new dao fwd msg fee"},60173:{message:"Below min fee for dao forward message"}},iQe=[{name:"StateInit",header:null,fields:[{name:"code",type:{kind:"simple",type:"cell",optional:!1}},{name:"data",type:{kind:"simple",type:"cell",optional:!1}}]},{name:"Context",header:null,fields:[{name:"bounced",type:{kind:"simple",type:"bool",optional:!1}},{name:"sender",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"raw",type:{kind:"simple",type:"slice",optional:!1}}]},{name:"SendParameters",header:null,fields:[{name:"bounce",type:{kind:"simple",type:"bool",optional:!1}},{name:"to",type:{kind:"simple",type:"address",optional:!1}},{name:"value",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"mode",type:{kind:"simple",type:"int",optional:!1,format:257}},{name:"body",type:{kind:"simple",type:"cell",optional:!0}},{name:"code",type:{kind:"simple",type:"cell",optional:!0}},{name:"data",type:{kind:"simple",type:"cell",optional:!0}}]},{name:"Deploy",header:2490013878,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DeployOk",header:2952335191,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"FactoryDeploy",header:1829761339,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"cashback",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwner",header:2174598809,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"ChangeOwnerOk",header:846932810,fields:[{name:"queryId",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RouteDeployAndInitDao",header:739290419,fields:[{name:"prodMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"devMsgValue",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"prodRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"devRegistry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"DeployAndInitDao",header:3378223972,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SendDaoInit",header:3367586747,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetDeployAndInitDaoFee",header:2828439833,fields:[{name:"newDeployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetNewDaoFwdMsgFee",header:60181454,fields:[{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SendToDaoSetFwdMsgFee",header:1477819782,fields:[{name:"daoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetRegistryAdmin",header:3335943114,fields:[{name:"newAdmin",type:{kind:"simple",type:"address",optional:!1}}]},{name:"RegistryContractState",header:null,fields:[{name:"registryId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"nextDaoId",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"admin",type:{kind:"simple",type:"address",optional:!1}},{name:"deployAndInitDaoFee",type:{kind:"simple",type:"uint",optional:!1,format:64}},{name:"newDaosfwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetOwner",header:3266583875,fields:[{name:"newOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetProposalOwner",header:3504586358,fields:[{name:"newProposalOwner",type:{kind:"simple",type:"address",optional:!1}}]},{name:"SetFwdMsgFee",header:4109608450,fields:[{name:"newFwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"SetMetadata",header:3660550271,fields:[{name:"newMetadata",type:{kind:"simple",type:"address",optional:!1}}]},{name:"FwdMsg",header:1690551268,fields:[{name:"fwdMsg",type:{kind:"simple",type:"SendParameters",optional:!1}}]},{name:"DaoInit",header:3971512043,fields:[{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]},{name:"DaoContractState",header:null,fields:[{name:"registry",type:{kind:"simple",type:"address",optional:!1}},{name:"owner",type:{kind:"simple",type:"address",optional:!1}},{name:"proposalOwner",type:{kind:"simple",type:"address",optional:!1}},{name:"metadata",type:{kind:"simple",type:"address",optional:!1}},{name:"daoIndex",type:{kind:"simple",type:"uint",optional:!1,format:32}},{name:"fwdMsgFee",type:{kind:"simple",type:"uint",optional:!1,format:64}}]}],aQe=[],sQe=[{receiver:"internal",message:{kind:"typed",type:"RouteDeployAndInitDao"}},{receiver:"internal",message:{kind:"typed",type:"Deploy"}}];let lQe=class _R{static async init(){return await vz()}static async fromInit(){const t=await vz(),n=(0,Xu.contractAddress)(0,t);return new _R(n,t)}static fromAddress(t){return new _R(t)}constructor(t,n){this.abi={types:iQe,getters:aQe,receivers:sQe,errors:oQe},this.address=t,this.init=n}async send(t,n,r,o){let i=null;if(o&&typeof o=="object"&&!(o instanceof Xu.Slice)&&o.$$type==="RouteDeployAndInitDao"&&(i=(0,Xu.beginCell)().store(ooe(o)).endCell()),o&&typeof o=="object"&&!(o instanceof Xu.Slice)&&o.$$type==="Deploy"&&(i=(0,Xu.beginCell)().store(roe(o)).endCell()),i===null)throw new Error("Invalid message type");await t.internal(n,{...r,body:i})}};gt.Router=lQe;var Ni={},ioe={},JA={},uQe={get exports(){return JA},set exports(e){JA=e}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -308,20 +308,20 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */(function(e){var t,n,r,o,i,a,s,l,u,c,f,p,g,m,y,v,x,w,I,_,R,U,D;(function(b){var T=typeof st=="object"?st:typeof self=="object"?self:typeof this=="object"?this:{};b(C(T,C(e.exports)));function C(O,$){return O!==T&&(typeof Object.create=="function"?Object.defineProperty(O,"__esModule",{value:!0}):O.__esModule=!0),function(j,L){return O[j]=$?$(j,L):L}}})(function(b){var T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,O){C.__proto__=O}||function(C,O){for(var $ in O)O.hasOwnProperty($)&&(C[$]=O[$])};t=function(C,O){T(C,O);function $(){this.constructor=C}C.prototype=O===null?Object.create(O):($.prototype=O.prototype,new $)},n=Object.assign||function(C){for(var O,$=1,j=arguments.length;$=0;q--)(H=C[q])&&(B=(L<3?H(B):L>3?H(O,$,B):H(O,$))||B);return L>3&&B&&Object.defineProperty(O,$,B),B},i=function(C,O){return function($,j){O($,j,C)}},a=function(C,O){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,O)},s=function(C,O,$,j){function L(B){return B instanceof $?B:new $(function(H){H(B)})}return new($||($=Promise))(function(B,H){function q(ie){try{W(j.next(ie))}catch(le){H(le)}}function Y(ie){try{W(j.throw(ie))}catch(le){H(le)}}function W(ie){ie.done?B(ie.value):L(ie.value).then(q,Y)}W((j=j.apply(C,O||[])).next())})},l=function(C,O){var $={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},j,L,B,H;return H={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function q(W){return function(ie){return Y([W,ie])}}function Y(W){if(j)throw new TypeError("Generator is already executing.");for(;$;)try{if(j=1,L&&(B=W[0]&2?L.return:W[0]?L.throw||((B=L.return)&&B.call(L),0):L.next)&&!(B=B.call(L,W[1])).done)return B;switch(L=0,B&&(W=[W[0]&2,B.value]),W[0]){case 0:case 1:B=W;break;case 4:return $.label++,{value:W[1],done:!1};case 5:$.label++,L=W[1],W=[0];continue;case 7:W=$.ops.pop(),$.trys.pop();continue;default:if(B=$.trys,!(B=B.length>0&&B[B.length-1])&&(W[0]===6||W[0]===2)){$=0;continue}if(W[0]===3&&(!B||W[1]>B[0]&&W[1]=C.length&&(C=void 0),{value:C&&C[j++],done:!C}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(C,O){var $=typeof Symbol=="function"&&C[Symbol.iterator];if(!$)return C;var j=$.call(C),L,B=[],H;try{for(;(O===void 0||O-- >0)&&!(L=j.next()).done;)B.push(L.value)}catch(q){H={error:q}}finally{try{L&&!L.done&&($=j.return)&&$.call(j)}finally{if(H)throw H.error}}return B},p=function(){for(var C=[],O=0;O1||q(fe,Ee)})})}function q(fe,Ee){try{Y(j[fe](Ee))}catch(Ae){le(B[0][3],Ae)}}function Y(fe){fe.value instanceof m?Promise.resolve(fe.value.v).then(W,ie):le(B[0][2],fe)}function W(fe){q("next",fe)}function ie(fe){q("throw",fe)}function le(fe,Ee){fe(Ee),B.shift(),B.length&&q(B[0][0],B[0][1])}},v=function(C){var O,$;return O={},j("next"),j("throw",function(L){throw L}),j("return"),O[Symbol.iterator]=function(){return this},O;function j(L,B){O[L]=C[L]?function(H){return($=!$)?{value:m(C[L](H)),done:L==="return"}:B?B(H):H}:B}},x=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O=C[Symbol.asyncIterator],$;return O?O.call(C):(C=typeof c=="function"?c(C):C[Symbol.iterator](),$={},j("next"),j("throw"),j("return"),$[Symbol.asyncIterator]=function(){return this},$);function j(B){$[B]=C[B]&&function(H){return new Promise(function(q,Y){H=C[B](H),L(q,Y,H.done,H.value)})}}function L(B,H,q,Y){Promise.resolve(Y).then(function(W){B({value:W,done:q})},H)}},w=function(C,O){return Object.defineProperty?Object.defineProperty(C,"raw",{value:O}):C.raw=O,C},I=function(C){if(C&&C.__esModule)return C;var O={};if(C!=null)for(var $ in C)Object.hasOwnProperty.call(C,$)&&(O[$]=C[$]);return O.default=C,O},_=function(C){return C&&C.__esModule?C:{default:C}},R=function(C,O){if(!O.has(C))throw new TypeError("attempted to get private field on non-instance");return O.get(C)},U=function(C,O,$){if(!O.has(C))throw new TypeError("attempted to set private field on non-instance");return O.set(C,$),$},b("__extends",t),b("__assign",n),b("__rest",r),b("__decorate",o),b("__param",i),b("__metadata",a),b("__awaiter",s),b("__generator",l),b("__exportStar",u),b("__createBinding",D),b("__values",c),b("__read",f),b("__spread",p),b("__spreadArrays",g),b("__await",m),b("__asyncGenerator",y),b("__asyncDelegator",v),b("__asyncValues",x),b("__makeTemplateObject",w),b("__importStar",I),b("__importDefault",_),b("__classPrivateFieldGet",R),b("__classPrivateFieldSet",U)})})(cQe);var b1={},Cs={},bz;function aoe(){return bz||(bz=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.MAX_HASHABLE_LENGTH=Cs.INIT=Cs.KEY=Cs.DIGEST_LENGTH=Cs.BLOCK_SIZE=void 0,Cs.BLOCK_SIZE=64,Cs.DIGEST_LENGTH=32,Cs.KEY=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]),Cs.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Cs.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Cs}var w1={},wz;function dQe(){if(wz)return w1;wz=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.RawSha256=void 0;var e=aoe(),t=function(){function n(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var o=0,i=r.byteLength;if(this.bytesHashed+=i,this.bytesHashed*8>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=r[o++],i--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var r=this.bytesHashed*8,o=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(o.setUint8(this.bufferLength++,128),i%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var a=this.bufferLength;a>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},n.prototype.hashBuffer=function(){for(var r=this,o=r.buffer,i=r.state,a=i[0],s=i[1],l=i[2],u=i[3],c=i[4],f=i[5],p=i[6],g=i[7],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(v+this.temp[m-7]|0)+(x+this.temp[m-16]|0)}var w=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&p)|0)+(g+(e.KEY[m]+this.temp[m]|0)|0)|0,I=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&l^s&l)|0;g=p,p=f,f=c,c=u+w|0,u=l,l=s,s=a,a=w+I|0}i[0]+=a,i[1]+=s,i[2]+=l,i[3]+=u,i[4]+=c,i[5]+=f,i[6]+=p,i[7]+=g},n}();return w1.RawSha256=t,w1}var FP={},S1={};const fQe=e=>{const t=[];for(let n=0,r=e.length;n>6|192,o&63|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)},pQe=e=>{let t="";for(let n=0,r=e.length;ns.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}return t};function hQe(e){return new TextEncoder().encode(e)}function gQe(e){return new TextDecoder("utf-8").decode(e)}const mQe=e=>typeof TextEncoder=="function"?hQe(e):fQe(e),yQe=e=>typeof TextDecoder=="function"?gQe(e):pQe(e),vQe=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:mQe,toUtf8:yQe},Symbol.toStringTag,{value:"Module"})),bQe=Cc(vQe);var Sz;function wQe(){if(Sz)return S1;Sz=1,Object.defineProperty(S1,"__esModule",{value:!0}),S1.convertToBuffer=void 0;var e=bQe,t=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:e.fromUtf8;function n(r){return r instanceof Uint8Array?r:typeof r=="string"?t(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}return S1.convertToBuffer=n,S1}var x1={},xz;function SQe(){if(xz)return x1;xz=1,Object.defineProperty(x1,"__esModule",{value:!0}),x1.isEmptyData=void 0;function e(t){return typeof t=="string"?t.length===0:t.byteLength===0}return x1.isEmptyData=e,x1}var C1={},Cz;function xQe(){if(Cz)return C1;Cz=1,Object.defineProperty(C1,"__esModule",{value:!0}),C1.numToUint8=void 0;function e(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return C1.numToUint8=e,C1}var A1={},Az;function CQe(){if(Az)return A1;Az=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.uint32ArrayFrom=void 0;function e(t){if(!Uint32Array.from){for(var n=new Uint32Array(t.length),r=0;rt.BLOCK_SIZE){var l=new n.RawSha256;l.update(s),s=l.digest()}var u=new Uint8Array(t.BLOCK_SIZE);return u.set(s),u}return b1}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=JA;t.__exportStar(_Qe(),e)})(ioe);function soe(e,t){return function(){return e.apply(t,arguments)}}const{toString:EQe}=Object.prototype,{getPrototypeOf:r$}=Object,zk=(e=>t=>{const n=EQe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kc=e=>(e=e.toLowerCase(),t=>zk(t)===e),Vk=e=>t=>typeof t===e,{isArray:tv}=Array,gw=Vk("undefined");function TQe(e){return e!==null&&!gw(e)&&e.constructor!==null&&!gw(e.constructor)&&Il(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const loe=kc("ArrayBuffer");function kQe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&loe(e.buffer),t}const IQe=Vk("string"),Il=Vk("function"),uoe=Vk("number"),Hk=e=>e!==null&&typeof e=="object",PQe=e=>e===!0||e===!1,MC=e=>{if(zk(e)!=="object")return!1;const t=r$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},MQe=kc("Date"),OQe=kc("File"),RQe=kc("Blob"),DQe=kc("FileList"),BQe=e=>Hk(e)&&Il(e.pipe),$Qe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Il(e.append)&&((t=zk(e))==="formdata"||t==="object"&&Il(e.toString)&&e.toString()==="[object FormData]"))},LQe=kc("URLSearchParams"),FQe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function GS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),tv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const doe=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:st)(),foe=e=>!gw(e)&&e!==doe;function _R(){const{caseless:e}=foe(this)&&this||{},t={},n=(r,o)=>{const i=e&&coe(t,o)||o;MC(t[i])&&MC(r)?t[i]=_R(t[i],r):MC(r)?t[i]=_R({},r):tv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(GS(t,(o,i)=>{n&&Il(o)?e[i]=soe(o,n):e[i]=o},{allOwnKeys:r}),e),UQe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jQe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},WQe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&r$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},zQe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},VQe=e=>{if(!e)return null;if(tv(e))return e;let t=e.length;if(!uoe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},HQe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&r$(Uint8Array)),qQe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},QQe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},KQe=kc("HTMLFormElement"),YQe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Tz=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),GQe=kc("RegExp"),poe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};GS(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},JQe=e=>{poe(e,(t,n)=>{if(Il(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Il(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},XQe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return tv(e)?r(e):r(String(e).split(t)),n},ZQe=()=>{},eKe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),NP="abcdefghijklmnopqrstuvwxyz",kz="0123456789",hoe={DIGIT:kz,ALPHA:NP,ALPHA_DIGIT:NP+NP.toUpperCase()+kz},tKe=(e=16,t=hoe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function nKe(e){return!!(e&&Il(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rKe=e=>{const t=new Array(10),n=(r,o)=>{if(Hk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=tv(r)?[]:{};return GS(r,(a,s)=>{const l=n(a,o+1);!gw(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},oKe=kc("AsyncFunction"),iKe=e=>e&&(Hk(e)||Il(e))&&Il(e.then)&&Il(e.catch);var tt={isArray:tv,isArrayBuffer:loe,isBuffer:TQe,isFormData:$Qe,isArrayBufferView:kQe,isString:IQe,isNumber:uoe,isBoolean:PQe,isObject:Hk,isPlainObject:MC,isUndefined:gw,isDate:MQe,isFile:OQe,isBlob:RQe,isRegExp:GQe,isFunction:Il,isStream:BQe,isURLSearchParams:LQe,isTypedArray:HQe,isFileList:DQe,forEach:GS,merge:_R,extend:NQe,trim:FQe,stripBOM:UQe,inherits:jQe,toFlatObject:WQe,kindOf:zk,kindOfTest:kc,endsWith:zQe,toArray:VQe,forEachEntry:qQe,matchAll:QQe,isHTMLForm:KQe,hasOwnProperty:Tz,hasOwnProp:Tz,reduceDescriptors:poe,freezeMethods:JQe,toObjectSet:XQe,toCamelCase:YQe,noop:ZQe,toFiniteNumber:eKe,findKey:coe,global:doe,isContextDefined:foe,ALPHABET:hoe,generateString:tKe,isSpecCompliantForm:nKe,toJSONObject:rKe,isAsyncFn:oKe,isThenable:iKe};function ar(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}tt.inherits(ar,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:tt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const goe=ar.prototype,moe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{moe[e]={value:e}});Object.defineProperties(ar,moe);Object.defineProperty(goe,"isAxiosError",{value:!0});ar.from=(e,t,n,r,o,i)=>{const a=Object.create(goe);return tt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ar.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var aKe=null;function ER(e){return tt.isPlainObject(e)||tt.isArray(e)}function yoe(e){return tt.endsWith(e,"[]")?e.slice(0,-2):e}function Iz(e,t,n){return e?e.concat(t).map(function(o,i){return o=yoe(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function sKe(e){return tt.isArray(e)&&!e.some(ER)}const lKe=tt.toFlatObject(tt,{},null,function(t){return/^is[A-Z]/.test(t)});function qk(e,t,n){if(!tt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=tt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!tt.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&tt.isSpecCompliantForm(t);if(!tt.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(tt.isDate(m))return m.toISOString();if(!l&&tt.isBlob(m))throw new ar("Blob is not supported. Use a Buffer instead.");return tt.isArrayBuffer(m)||tt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,v){let x=m;if(m&&!v&&typeof m=="object"){if(tt.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(tt.isArray(m)&&sKe(m)||(tt.isFileList(m)||tt.endsWith(y,"[]"))&&(x=tt.toArray(m)))return y=yoe(y),x.forEach(function(I,_){!(tt.isUndefined(I)||I===null)&&t.append(a===!0?Iz([y],_,i):a===null?y:y+"[]",u(I))}),!1}return ER(m)?!0:(t.append(Iz(v,y,i),u(m)),!1)}const f=[],p=Object.assign(lKe,{defaultVisitor:c,convertValue:u,isVisitable:ER});function g(m,y){if(!tt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),tt.forEach(m,function(x,w){(!(tt.isUndefined(x)||x===null)&&o.call(t,x,tt.isString(w)?w.trim():w,y,p))===!0&&g(x,y?y.concat(w):[w])}),f.pop()}}if(!tt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Pz(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function o$(e,t){this._pairs=[],e&&qk(e,this,t)}const voe=o$.prototype;voe.append=function(t,n){this._pairs.push([t,n])};voe.toString=function(t){const n=t?function(r){return t.call(this,r,Pz)}:Pz;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function uKe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function boe(e,t,n){if(!t)return e;const r=n&&n.encode||uKe,o=n&&n.serialize;let i;if(o?i=o(t,n):i=tt.isURLSearchParams(t)?t.toString():new o$(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cKe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){tt.forEach(this.handlers,function(r){r!==null&&t(r)})}}var Mz=cKe,woe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dKe=typeof URLSearchParams<"u"?URLSearchParams:o$,fKe=typeof FormData<"u"?FormData:null,pKe=typeof Blob<"u"?Blob:null;const hKe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gKe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")();var nc={isBrowser:!0,classes:{URLSearchParams:dKe,FormData:fKe,Blob:pKe},isStandardBrowserEnv:hKe,isStandardBrowserWebWorkerEnv:gKe,protocols:["http","https","file","blob","url","data"]};function mKe(e,t){return qk(e,new nc.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return nc.isNode&&tt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function yKe(e){return tt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vKe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&tt.isArray(o)?o.length:a,l?(tt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!tt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&tt.isArray(o[a])&&(o[a]=vKe(o[a])),!s)}if(tt.isFormData(e)&&tt.isFunction(e.entries)){const n={};return tt.forEachEntry(e,(r,o)=>{t(yKe(r),o,n,0)}),n}return null}const bKe={"Content-Type":void 0};function wKe(e,t,n){if(tt.isString(e))try{return(t||JSON.parse)(e),tt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qk={transitional:woe,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=tt.isObject(t);if(i&&tt.isHTMLForm(t)&&(t=new FormData(t)),tt.isFormData(t))return o&&o?JSON.stringify(Soe(t)):t;if(tt.isArrayBuffer(t)||tt.isBuffer(t)||tt.isStream(t)||tt.isFile(t)||tt.isBlob(t))return t;if(tt.isArrayBufferView(t))return t.buffer;if(tt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return mKe(t,this.formSerializer).toString();if((s=tt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return qk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),wKe(t)):t}],transformResponse:[function(t){const n=this.transitional||Qk.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&tt.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ar.from(s,ar.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nc.classes.FormData,Blob:nc.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};tt.forEach(["delete","get","head"],function(t){Qk.headers[t]={}});tt.forEach(["post","put","patch"],function(t){Qk.headers[t]=tt.merge(bKe)});var i$=Qk;const SKe=tt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var xKe=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&SKe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};const Oz=Symbol("internals");function _1(e){return e&&String(e).trim().toLowerCase()}function OC(e){return e===!1||e==null?e:tt.isArray(e)?e.map(OC):String(e)}function CKe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const AKe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function UP(e,t,n,r,o){if(tt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!tt.isString(t)){if(tt.isString(r))return t.indexOf(r)!==-1;if(tt.isRegExp(r))return r.test(t)}}function _Ke(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function EKe(e,t){const n=tt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}class Kk{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const c=_1(l);if(!c)throw new Error("header name must be a non-empty string");const f=tt.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=OC(s))}const a=(s,l)=>tt.forEach(s,(u,c)=>i(u,c,l));return tt.isPlainObject(t)||t instanceof this.constructor?a(t,n):tt.isString(t)&&(t=t.trim())&&!AKe(t)?a(xKe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=_1(t),t){const r=tt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return CKe(o);if(tt.isFunction(n))return n.call(this,o,r);if(tt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_1(t),t){const r=tt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||UP(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=_1(a),a){const s=tt.findKey(r,a);s&&(!n||UP(r,r[s],s,n))&&(delete r[s],o=!0)}}return tt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||UP(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return tt.forEach(this,(o,i)=>{const a=tt.findKey(r,i);if(a){n[a]=OC(o),delete n[i];return}const s=t?_Ke(i):String(i).trim();s!==i&&delete n[i],n[s]=OC(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return tt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&tt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Oz]=this[Oz]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=_1(a);r[s]||(EKe(o,a),r[s]=!0)}return tt.isArray(t)?t.forEach(i):i(t),this}}Kk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);tt.freezeMethods(Kk.prototype);tt.freezeMethods(Kk);var wd=Kk;function jP(e,t){const n=this||i$,r=t||n,o=wd.from(r.headers);let i=r.data;return tt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xoe(e){return!!(e&&e.__CANCEL__)}function JS(e,t,n){ar.call(this,e??"canceled",ar.ERR_CANCELED,t,n),this.name="CanceledError"}tt.inherits(JS,ar,{__CANCEL__:!0});function TKe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ar("Request failed with status code "+n.status,[ar.ERR_BAD_REQUEST,ar.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var kKe=nc.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),tt.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),tt.isString(i)&&l.push("path="+i),tt.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function IKe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function PKe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Coe(e,t){return e&&!IKe(t)?PKe(e,t):t}var MKe=nc.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=tt.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function OKe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function RKe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const DKe=typeof XMLHttpRequest<"u";var BKe=DKe&&function(e){return new Promise(function(n,r){let o=e.data;const i=wd.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}tt.isFormData(o)&&(nc.isStandardBrowserEnv||nc.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+m))}const c=Coe(e.baseURL,e.url);u.open(e.method.toUpperCase(),boe(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const g=wd.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};TKe(function(x){n(x),l()},function(x){r(x),l()},y),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new ar("Request aborted",ar.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ar("Network Error",ar.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||woe;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new ar(m,y.clarifyTimeoutError?ar.ETIMEDOUT:ar.ECONNABORTED,e,u)),u=null},nc.isStandardBrowserEnv){const g=(e.withCredentials||MKe(c))&&e.xsrfCookieName&&kKe.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&tt.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),tt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Rz(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Rz(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{u&&(r(!g||g.type?new JS(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=OKe(c);if(p&&nc.protocols.indexOf(p)===-1){r(new ar("Unsupported protocol "+p+":",ar.ERR_BAD_REQUEST,e));return}u.send(o||null)})};const RC={http:aKe,xhr:BKe};tt.forEach(RC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var $Ke={getAdapter:e=>{e=tt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof wd?e.toJSON():e;function ay(e,t){t=t||{};const n={};function r(u,c,f){return tt.isPlainObject(u)&&tt.isPlainObject(c)?tt.merge.call({caseless:f},u,c):tt.isPlainObject(c)?tt.merge({},c):tt.isArray(c)?c.slice():c}function o(u,c,f){if(tt.isUndefined(c)){if(!tt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!tt.isUndefined(c))return r(void 0,c)}function a(u,c){if(tt.isUndefined(c)){if(!tt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>o(Bz(u),Bz(c),!0)};return tt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||o,p=f(e[c],t[c],c);tt.isUndefined(p)&&f!==s||(n[c]=p)}),n}const Aoe="1.4.0",a$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{a$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $z={};a$.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Aoe+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new ar(o(a," has been removed"+(n?" in "+n:"")),ar.ERR_DEPRECATED);return n&&!$z[a]&&($z[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function LKe(e,t,n){if(typeof e!="object")throw new ar("options must be an object",ar.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new ar("option "+i+" must be "+l,ar.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ar("Unknown option "+i,ar.ERR_BAD_OPTION)}}var TR={assertOptions:LKe,validators:a$};const bf=TR.validators;class XA{constructor(t){this.defaults=t,this.interceptors={request:new Mz,response:new Mz}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ay(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&TR.assertOptions(r,{silentJSONParsing:bf.transitional(bf.boolean),forcedJSONParsing:bf.transitional(bf.boolean),clarifyTimeoutError:bf.transitional(bf.boolean)},!1),o!=null&&(tt.isFunction(o)?n.paramsSerializer={serialize:o}:TR.assertOptions(o,{encode:bf.function,serialize:bf.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&&tt.merge(i.common,i[n.method]),a&&tt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=wd.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,p;if(!l){const m=[Dz.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new JS(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new s$(function(o){t=o}),cancel:t}}}var FKe=s$;function NKe(e){return function(n){return e.apply(null,n)}}function UKe(e){return tt.isObject(e)&&e.isAxiosError===!0}const kR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kR).forEach(([e,t])=>{kR[t]=e});var jKe=kR;function _oe(e){const t=new DC(e),n=soe(DC.prototype.request,t);return tt.extend(n,DC.prototype,t,{allOwnKeys:!0}),tt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return _oe(ay(e,o))},n}const yi=_oe(i$);yi.Axios=DC;yi.CanceledError=JS;yi.CancelToken=FKe;yi.isCancel=xoe;yi.VERSION=Aoe;yi.toFormData=qk;yi.AxiosError=ar;yi.Cancel=yi.CanceledError;yi.all=function(t){return Promise.all(t)};yi.spread=NKe;yi.isAxiosError=UKe;yi.mergeConfig=ay;yi.AxiosHeaders=wd;yi.formToJSON=e=>Soe(tt.isHTMLForm(e)?new FormData(e):e);yi.HttpStatusCode=jKe;yi.default=yi;var Eoe=yi;const Toe=Eoe;var WKe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.transferNft=Ni.transferJettons=Ni.readJettonMinterOrNftCollectionMetadata=Ni.readJettonMinterMetadata=Ni.readJettonWalletMetadata=Ni.readNftItemMetadata=Ni.readNftCollectionMetadata=void 0;const Sd=js,zKe=ioe,IR=WKe(Eoe),VKe=Oy,ZA=lT(),Bf=dn,Lz={name:"utf8",description:"utf8",image:"ascii",decimals:"utf8",symbol:"utf8",image_data:void 0},HKe=0,qKe=1,QKe=0,KKe=e=>{const t=new zKe.Sha256;return t.update(e),Buffer.from(t.digestSync())};async function koe(e){const n=e.stack.readCell().beginParse();switch(n.loadUint(8)){case HKe:return{persistenceType:"onchain",...XKe(n)};case qKe:const{metadata:r,isIpfs:o}=await ZKe(n);return{persistenceType:o?"offchain_ipfs":"offchain_private_domain",metadata:r};default:throw new Error("Unexpected jetton metadata content prefix")}}async function Ioe(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_collection_data");return r.stack.skip(1),await koe(r)}catch{return console.log(`failed to fetch nft metadata at address ${t}`),{}}}Ni.readNftCollectionMetadata=Ioe;async function YKe(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_nft_data");r.stack.skip(1);const o=r.stack.readBigNumber(),i=r.stack.readAddress(),a=r.stack.readAddress(),s=r.stack.readCell(),l={type:"int",value:o},u={type:"cell",cell:s};let f=(await e.runMethod(i,"get_nft_content",[l,u])).stack.readCell().beginParse();const p=(0,ZA.bitsToPaddedBuffer)(f.loadBits(f.remainingBits)).toString();if(f=s.beginParse(),f.remainingBits==0)return(await IR.default.get(p)).data;const m=(0,ZA.bitsToPaddedBuffer)(f.loadBits(f.remainingBits)).toString();return{...(await IR.default.get(p+m)).data,nftItemOwner:a}}catch{return console.log(`failed to fetch nft item metadata at address ${t}`),{}}}Ni.readNftItemMetadata=YKe;async function GKe(e,t){const n=await e.runMethod(Sd.Address.parse(t),"get_wallet_data"),r=n.stack.readNumber(),o=n.stack.readAddress();return{...await l$(e,n.stack.readAddress().toString()),jettonWalletBalance:r,ownerAddress:o}}Ni.readJettonWalletMetadata=GKe;async function l$(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_jetton_data");return r.stack.skip(3),await koe(r)}catch{return console.log("failed to fetch jetton metadata"),{}}}Ni.readJettonMinterMetadata=l$;async function JKe(e,t){const n=await Ioe(e,t);if(Object.keys(n).length!=0)return n.type="NFT",n;const r=await l$(e,t);return Object.keys(r).length!=0?(r.type="Jetton",r):{}}Ni.readJettonMinterOrNftCollectionMetadata=JKe;function XKe(e){const t=a=>BigInt(`0x${a}`);let r=!1;const o=(0,VKe.parseDict)(e.loadRef().beginParse(),256,a=>{let s=Buffer.from("");const l=(u,c,f)=>{if(u.asCell().beginParse(),f&&u.loadUint(8)!==QKe)throw new Error("Only snake format is supported");const p=u.remainingBits,g=(0,ZA.bitsToPaddedBuffer)(u.loadBits(p));return c=Buffer.concat([c,g]),u.remainingRefs===1&&(c=l(u.loadRef().beginParse(),c,!1)),c};return a.remainingRefs===0?(r=!0,l(a,s,!0)):l(a.loadRef().beginParse(),s,!0)}),i={};return Object.keys(Lz).forEach(a=>{var l;const s=(l=o.get(t(KKe(a).toString("hex"))))==null?void 0:l.toString(Lz[a]);s&&(i[a]=s)}),{metadata:i,isJettonDeployerFaultyOnChainData:r}}async function ZKe(e){const t=e.remainingBits,r=(0,ZA.bitsToPaddedBuffer)(e.loadBits(t)).toString("ascii").replace("ipfs://","https://ipfs.io/ipfs/");return{metadata:(await IR.default.get(r)).data,isIpfs:/(^|\/)ipfs[.:]/.test(r)}}async function eYe(e,t,n,r,o){const i=t.account.address,a=await(0,Bf.getSeqno)(e,i.toString()),s={validUntil:Date.now()+5*60*1e3,messages:[{address:r,amount:(0,Sd.toNano)("0.1").toString(),stateInit:void 0,payload:(0,Bf._transferJetton)(Sd.Address.parse(o),Sd.Address.parse(i),n).toBoc().toString("base64")}]};await t.sendTransaction(s),await(0,Bf.waitForConditionChange)(Bf.getSeqno,[e,i.toString()],a)}Ni.transferJettons=eYe;async function tYe(e,t,n,r){const o=t.account.address,i=await(0,Bf.getSeqno)(e,o.toString()),a={validUntil:Date.now()+5*60*1e3,messages:[{address:n,amount:(0,Sd.toNano)("0.05").toString(),stateInit:void 0,payload:(0,Bf._transferNft)(Sd.Address.parse(r)).toBoc().toString("base64")}]};await t.sendTransaction(a),await(0,Bf.waitForConditionChange)(Bf.getSeqno,[e,o.toString()],i)}Ni.transferNft=tYe;Object.defineProperty(ro,"__esModule",{value:!0});ro.metdataExists=ro.getProposalMetadata=ro.extractVotingPowerStrategies=ro.extractVotingSystem=ro.getDaoProposals=ro.getDaoMetadata=ro.getDaoState=ro.getDaos=ro.getRegistryState=ro.getRegistry=ro.getRouter=void 0;const nv=dn,Yk=ht,u$=pt,Poe=ir,Moe=Dt,nYe=pn,Ag=js,gb=YS,rYe=gt,Ooe=Ni;async function oYe(e){return e.open(await rYe.Router.fromInit()).address.toString()}ro.getRouter=oYe;async function iYe(e,t){let n=e.open(await Yk.Registry.fromInit(BigInt(t)));if(await e.isContractDeployed(n.address))return n.address.toString()}ro.getRegistry=iYe;async function aYe(e,t){let n=e.open(await Yk.Registry.fromInit(BigInt(t)));if(!await e.isContractDeployed(n.address))return;const r=await n.getState();return{registryAddr:n.address.toString(),registryId:Number(r.registryId),nextDaoId:Number(r.nextDaoId),admin:r.admin.toString(),deployAndInitDaoFee:r.deployAndInitDaoFee.toString()}}ro.getRegistryState=aYe;async function sYe(e,t,n=null,r=100,o="asc"){return o=="desc"?lYe(e,t,n,r):uYe(e,t,n,r)}ro.getDaos=sYe;async function lYe(e,t,n=null,r=100){let o=e.open(await Yk.Registry.fromInit(BigInt(t))),i=[];const a=Number(await o.getNextDaoId());if(a==0)return{endDaoId:0,daoAddresses:[]};n==null&&(n=a-1);const s=Math.max(0,n-r+1);for(let l=n;l>=s;l-=r){const u=Math.max(l-r+1,s),c=l+1,f=[];for(let g=u;gg.toString()))}return{endDaoId:s-1,daoAddresses:i}}async function uYe(e,t,n=null,r=100){let o=e.open(await Yk.Registry.fromInit(BigInt(t))),i=[];const a=Number(await o.getNextDaoId());if(a==0)return{endDaoId:0,daoAddresses:[]};n==null&&(n=0);const s=Math.min(a,n+r);let l=Math.ceil((s-n)/r);for(let u=0;ui.push(m.toString())));await(0,nv.promiseAllWithRetry)(p)}return{endDaoId:s,daoAddresses:i}}async function cYe(e,t){let n=e.open(u$.Dao.fromAddress(Ag.Address.parse(t)));const r=await(0,nv.executeMethodWithRetry)(n,"getState");return{registry:r.registry.toString(),owner:r.owner.toString(),proposalOwner:r.proposalOwner.toString(),metadata:r.metadata.toString(),daoIndex:Number(r.daoIndex),fwdMsgFee:Number(r.fwdMsgFee)}}ro.getDaoState=cYe;async function dYe(e,t){const n=e.open(Poe.Metadata.fromAddress(Ag.Address.parse(t))),r=await(0,nv.executeMethodWithRetry)(n,"getState");return{about:r.about,avatar:r.avatar,github:r.github,hide:r.hide,name:r.name,terms:r.terms,telegram:r.telegram,website:r.website,jetton:r.jetton.toString(),nft:r.nft.toString(),dns:r.dns.toString()}}ro.getDaoMetadata=dYe;async function fYe(e,t,n=null,r=100,o="asc"){return o=="desc"?pYe(e,t,n,r):hYe(e,t,n,r)}ro.getDaoProposals=fYe;async function pYe(e,t,n=null,r=100){let o=e.open(u$.Dao.fromAddress(Ag.Address.parse(t))),i=e.open(await Moe.ProposalDeployer.fromInit(o.address));if(!await e.isContractDeployed(i.address))return{endProposalId:-1,proposalAddresses:void 0};let a=Number(await i.getNextProposalId());n==null&&(n=a-1);const s=Math.max(0,n-r+1);let l=[];const u=Math.ceil((n-s+1)/r);for(let c=0;cp;m--){const y=i.getProposalAddr(BigInt(m)).then(v=>{l.push(v.toString())});g.push(y)}await(0,nv.promiseAllWithRetry)(g)}return{endProposalId:s-1,proposalAddresses:l}}async function hYe(e,t,n=null,r=100){let o=e.open(u$.Dao.fromAddress(Ag.Address.parse(t))),i=e.open(await Moe.ProposalDeployer.fromInit(o.address));if(!await e.isContractDeployed(i.address))return{endProposalId:-1,proposalAddresses:void 0};n==null&&(n=0);const a=Math.min(Number(await i.getNextProposalId()),n+r);let s=[];for(let l=n;lp.toString()))}return{endProposalId:a,proposalAddresses:s}}function Roe(e){try{const t=JSON.parse(e);return!("choices"in t)||!("votingSystemType"in t)?{choices:[],votingSystemType:gb.VotingSystemType.UNDEFINED}:t}catch(t){return console.log("failed to extract voting system from str: ",e),console.error(t),{choices:[],votingSystemType:gb.VotingSystemType.UNDEFINED}}}ro.extractVotingSystem=Roe;function Doe(e){try{const t=JSON.parse(e);if(!Array.isArray(t))return console.log("failed to extract voting power strategies from str: ",e),[{type:gb.VotingPowerStrategyType.UNDEFINED,arguments:[]}];for(let n=0;n{let c=t.open(await Mp.Dao.fromInit(a.address,BigInt(u)));const f=(await c.getState()).fwdMsgFee;return f==s?!0:(await a.send(e,{value:(0,on.toNano)(r)},{$$type:"SendToDaoSetFwdMsgFee",daoId:BigInt(u),newFwdMsgFee:s}),(0,Ii.waitForConditionChange)(c.getState,[],f,"fwdMsgFee"))});return await Promise.all(l)}ur.setFwdMsgFee=PYe;async function MYe(e,t,n,r){if(!e.address)return console.log("sender address is not defined"),!1;let o=t.open(await wYe.Metadata.fromInit(r.avatar,r.name,r.about,r.website,r.terms,r.telegram,r.github,on.Address.parse(r.jetton),on.Address.parse(r.nft),r.hide,r.dns));return await t.isContractDeployed(o.address)?(console.log("Contract already deployed"),o.address.toString()):(await o.send(e,{value:(0,on.toNano)(n)},{$$type:"Deploy",queryId:BigInt(0)}),await(0,Ii.waitForContractToBeDeployed)(t,o.address)&&o.address.toString())}ur.newMetdata=MYe;async function OYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const a=await i.getState(),s=a.owner;if(a.proposalOwner.toString()!=e.address.toString()&&s.toString()!=e.address.toString())return console.log("Only proposalOwner or owner are allowed to create proposal"),!1;let u=t.open(await Loe.ProposalDeployer.fromInit(on.Address.parse(r)));if(!u.init)return console.log("proposalDeployer init is undefined"),!1;let c=u.init.code,f=u.init.data,p=BigInt(0);return await t.isContractDeployed(u.address)&&(c=null,f=null,p=await u.getNextProposalId()),await i.send(e,{value:(0,on.toNano)(n)},{$$type:"FwdMsg",fwdMsg:{$$type:"SendParameters",bounce:!0,to:u.address,value:(0,on.toNano)(0),mode:BigInt(64),body:(0,on.beginCell)().store((0,$oe.storeDeployAndInitProposal)({$$type:"DeployAndInitProposal",body:{$$type:"Params",proposalStartTime:BigInt(o.proposalStartTime),proposalEndTime:BigInt(o.proposalEndTime),proposalSnapshotTime:BigInt(o.proposalSnapshotTime),votingSystem:JSON.stringify(o.votingSystem),votingPowerStrategies:JSON.stringify(o.votingPowerStrategies),title:o.title,description:o.description,quorum:o.quorum,hide:o.hide}})).endCell(),code:c,data:f}}),await(0,Ii.waitForContractToBeDeployed)(t,u.address),await(0,Ii.waitForConditionChange)(u.getNextProposalId,[],p,"nextProposalId"),(await u.getProposalAddr(p)).toString()}ur.newProposal=OYe;async function RYe(e,t,n,r,o,i){if(!e.address)return console.log("sender address is not defined"),!1;let a=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(a.address))return console.log("Dao contract is not deployed"),!1;const s=await a.getState(),l=s.owner;if(s.proposalOwner.toString()!=e.address.toString()&&l.toString()!=e.address.toString())return console.log("Only proposalOwner or owner are allowed to update proposal"),!1;let c=t.open(await Loe.ProposalDeployer.fromInit(on.Address.parse(r)));return c.init?await t.isContractDeployed(c.address)?(await a.send(e,{value:(0,on.toNano)(n)},{$$type:"FwdMsg",fwdMsg:{$$type:"SendParameters",bounce:!0,to:c.address,value:(0,on.toNano)(0),mode:BigInt(64),body:(0,on.beginCell)().store((0,$oe.storeSendUpdateProposal)({$$type:"SendUpdateProposal",proposalAddress:on.Address.parse(o),updateParams:{$$type:"Params",proposalStartTime:BigInt(i.proposalStartTime),proposalEndTime:BigInt(i.proposalEndTime),proposalSnapshotTime:BigInt(i.proposalSnapshotTime),votingSystem:JSON.stringify(i.votingSystem),votingPowerStrategies:JSON.stringify(i.votingPowerStrategies),title:i.title,description:i.description,quorum:i.quorum,hide:i.hide}})).endCell(),code:null,data:null}}),!0):(console.log("Proposal deployer not deployed"),!1):(console.log("proposalDeployer init is undefined"),!1)}ur.updateProposal=RYe;async function DYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(n)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const s=(await i.getState()).owner;return s.toString()!=e.address.toString()?(console.log("Only owner is allowed to set new owner"),!1):(await i.send(e,{value:(0,on.toNano)(r)},{$$type:"SetOwner",newOwner:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],s,"owner")&&s.toString())}ur.daoSetOwner=DYe;async function BYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const a=await i.getState(),s=a.owner,l=a.proposalOwner;return s.toString()!=e.address.toString()?(console.log("Only owner is allowed to create proposal"),!1):(await i.send(e,{value:(0,on.toNano)(n)},{$$type:"SetProposalOwner",newProposalOwner:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],l,"proposalOwner")&&o)}ur.daoSetProposalOwner=BYe;async function $Ye(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const s=(await i.getState()).owner;if(s.toString()!=e.address.toString())return console.log("Only owner is allowed to set new new metadata"),!1;let l=(await i.getState()).metadata;return await i.send(e,{value:(0,on.toNano)(n)},{$$type:"SetMetadata",newMetadata:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],l,"metadata")&&s.toString()}ur.setMetadata=$Ye;async function LYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(SYe.Proposal.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Proposal contract is not deployed"),!1;const a=await(0,Ii.getSeqno)(t,e.address.toString());await i.send(e,{value:(0,on.toNano)(n)},{$$type:"Vote",comment:o}),await(0,Ii.waitForConditionChange)(Ii.getSeqno,[t,e.address.toString()],a)}ur.proposalSendMessage=LYe;var Hr={},Cl={},Gk={},sa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof sa<"u"&&sa,Ya={searchParams:"URLSearchParams"in sa,iterable:"Symbol"in sa&&"iterator"in Symbol,blob:"FileReader"in sa&&"Blob"in sa&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in sa,arrayBuffer:"ArrayBuffer"in sa};function FYe(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ya.arrayBuffer)var NYe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],UYe=ArrayBuffer.isView||function(e){return e&&NYe.indexOf(Object.prototype.toString.call(e))>-1};function XS(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c$(e){return typeof e!="string"&&(e=String(e)),e}function d$(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ya.iterable&&(t[Symbol.iterator]=function(){return t}),t}function vi(e){this.map={},e instanceof vi?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}vi.prototype.append=function(e,t){e=XS(e),t=c$(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};vi.prototype.delete=function(e){delete this.map[XS(e)]};vi.prototype.get=function(e){return e=XS(e),this.has(e)?this.map[e]:null};vi.prototype.has=function(e){return this.map.hasOwnProperty(XS(e))};vi.prototype.set=function(e,t){this.map[XS(e)]=c$(t)};vi.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};vi.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d$(e)};vi.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d$(e)};vi.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d$(e)};Ya.iterable&&(vi.prototype[Symbol.iterator]=vi.prototype.entries);function zP(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Foe(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function jYe(e){var t=new FileReader,n=Foe(t);return t.readAsArrayBuffer(e),n}function WYe(e){var t=new FileReader,n=Foe(t);return t.readAsText(e),n}function zYe(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function _g(e,t){if(!(this instanceof _g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof _g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new vi(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new vi(t.headers)),this.method=HYe(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_g.prototype.clone=function(){return new _g(this,{body:this._bodyInit})};function qYe(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function QYe(e){var t=new vi,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` -`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();t.append(i,a)}}),t}Noe.call(_g.prototype);function bc(e,t){if(!(this instanceof bc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new vi(t.headers),this.url=t.url||"",this._initBody(e)}Noe.call(bc.prototype);bc.prototype.clone=function(){return new bc(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vi(this.headers),url:this.url})};bc.error=function(){var e=new bc(null,{status:0,statusText:""});return e.type="error",e};var KYe=[301,302,303,307,308];bc.redirect=function(e,t){if(KYe.indexOf(t)===-1)throw new RangeError("Invalid status code");return new bc(null,{status:t,headers:{location:e}})};var bh=sa.DOMException;try{new bh}catch{bh=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},bh.prototype=Object.create(Error.prototype),bh.prototype.constructor=bh}function Uoe(e,t){return new Promise(function(n,r){var o=new _g(e,t);if(o.signal&&o.signal.aborted)return r(new bh("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={status:i.status,statusText:i.statusText,headers:QYe(i.getAllResponseHeaders()||"")};l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new bc(u,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){r(new bh("Aborted","AbortError"))},0)};function s(l){try{return l===""&&sa.location.href?sa.location.href:l}catch{return l}}i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Ya.blob?i.responseType="blob":Ya.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof vi)?Object.getOwnPropertyNames(t.headers).forEach(function(l){i.setRequestHeader(l,c$(t.headers[l]))}):o.headers.forEach(function(l,u){i.setRequestHeader(u,l)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}Uoe.polyfill=!0;sa.fetch||(sa.fetch=Uoe,sa.Headers=vi,sa.Request=_g,sa.Response=bc);self.fetch.bind(self);var YYe=st&&st.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Gk,"__esModule",{value:!0});Gk.Nodes=void 0;class GYe{constructor(){this.nodeIndex=-1,this.committee=new Set,this.topology=[],this.initTime=0}init(t){return YYe(this,void 0,void 0,function*(){this.nodeIndex=-1,this.committee.clear(),this.topology=[],this.initTime=Date.now();let n=[];try{n=yield(yield fetch(t)).json()}catch(r){throw new Error(`exception in fetch(${t}): ${r}`)}for(const r of n)r.Healthy==="1"&&this.topology.push(r);if(this.topology.length===0)throw new Error(`no healthy nodes in ${t}`)})}getHealthyFor(t){var n;const r=[];for(const o of this.topology)o.Weight>0&&(!((n=o.Mngr)===null||n===void 0)&&n.health[t])&&r.push(o);return r}}Gk.Nodes=GYe;const JYe="@orbs-network/ton-access",XYe="2.3.3",ZYe="Unthrottled anonymous RPC access to TON blockchain via a robust decentralized network",eGe="lib/index.js",tGe="lib/index.js",nGe="lib/index.d.ts",rGe=["lib/**/*"],oGe={test:"env mocha -r ts-node/register test/**/*.ts","test:v2":"env mocha -r ts-node/register test/ton-v2.ts","test:v4":"env mocha -r ts-node/register test/ton-v4.ts",cleanup:"rimraf ./lib","build:web:reg":"esbuild ./lib/web.js --bundle --sourcemap --target=es2015 --outfile=./dist/index.js","build:web:min":"esbuild ./lib/web.js --bundle --minify --target=es2015 --outfile=./dist/index.min.js","build:web":"rimraf ./dist && npm run build:web:reg && npm run build:web:min",build:"npm run lint && rimraf ./lib && tsc && npm run build:web",format:'prettier --write "src/**/*.ts"',lint:"tslint -p tsconfig.json",prepare:"npm run build",prepublishOnly:"npm test && npm run lint",preversion:"npm run lint",version:"npm run format && git add -A src",postversion:"git push && git push --tags"},iGe={type:"git",url:"git+https://github.com/orbs-network/ton-access.git"},aGe="yuval@orbs.com",sGe="MIT",lGe={url:"https://github.com/orbs-network/ton-access/issues"},uGe="https://github.com/orbs-network/ton-access#readme",cGe={"isomorphic-fetch":"^3.0.0"},dGe={"@types/bn.js":"^5.1.1","@types/chai":"^4.3.4","@types/isomorphic-fetch":"^0.0.36","@types/mocha":"^10.0.0",buffer:"^6.0.3",chai:"^4.3.7",esbuild:"^0.15.14",mocha:"^10.1.0",prettier:"^2.7.1",rimraf:"^3.0.2",ton:"^12.1.3","ton-lite-client":"npm:@truecarry/ton-lite-client@^1.6.1",tonweb:"^0.0.58","ts-node":"^10.9.1",tslib:"^2.4.0",tslint:"^6.1.3","tslint-config-prettier":"^1.18.0"},fGe={name:JYe,version:XYe,description:ZYe,source:eGe,main:tGe,types:nGe,files:rGe,scripts:oGe,repository:iGe,author:aGe,license:sGe,bugs:lGe,homepage:uGe,dependencies:cGe,devDependencies:dGe};var rv=st&&st.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.getHttpV4Endpoint=Cl.getHttpV4Endpoints=Cl.getHttpEndpoint=Cl.getHttpEndpoints=Cl.Access=void 0;const pGe=Gk;class joe{constructor(){this.host="ton.access.orbs.network",this.urlVersion=1,this.nodes=new pGe.Nodes}init(){return rv(this,void 0,void 0,function*(){const t=fGe;yield this.nodes.init(`https://${this.host}/mngr/nodes?npm_version=${t.version}`)})}makeProtonet(t,n){let r="";switch(t){case"toncenter-api-v2":r+="v2-";break;case"ton-api-v4":r+="v4-";break}return r+=n,r}weightedRandom(t){let n=0;for(const i of t)n+=i.Weight;const r=Math.floor(Math.random()*n);let o=0;for(const i of t){if(r>=o&&r=0;q--)(H=C[q])&&(B=(L<3?H(B):L>3?H(O,$,B):H(O,$))||B);return L>3&&B&&Object.defineProperty(O,$,B),B},i=function(C,O){return function($,j){O($,j,C)}},a=function(C,O){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(C,O)},s=function(C,O,$,j){function L(B){return B instanceof $?B:new $(function(H){H(B)})}return new($||($=Promise))(function(B,H){function q(ie){try{W(j.next(ie))}catch(le){H(le)}}function Y(ie){try{W(j.throw(ie))}catch(le){H(le)}}function W(ie){ie.done?B(ie.value):L(ie.value).then(q,Y)}W((j=j.apply(C,O||[])).next())})},l=function(C,O){var $={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},j,L,B,H;return H={next:q(0),throw:q(1),return:q(2)},typeof Symbol=="function"&&(H[Symbol.iterator]=function(){return this}),H;function q(W){return function(ie){return Y([W,ie])}}function Y(W){if(j)throw new TypeError("Generator is already executing.");for(;$;)try{if(j=1,L&&(B=W[0]&2?L.return:W[0]?L.throw||((B=L.return)&&B.call(L),0):L.next)&&!(B=B.call(L,W[1])).done)return B;switch(L=0,B&&(W=[W[0]&2,B.value]),W[0]){case 0:case 1:B=W;break;case 4:return $.label++,{value:W[1],done:!1};case 5:$.label++,L=W[1],W=[0];continue;case 7:W=$.ops.pop(),$.trys.pop();continue;default:if(B=$.trys,!(B=B.length>0&&B[B.length-1])&&(W[0]===6||W[0]===2)){$=0;continue}if(W[0]===3&&(!B||W[1]>B[0]&&W[1]=C.length&&(C=void 0),{value:C&&C[j++],done:!C}}};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},f=function(C,O){var $=typeof Symbol=="function"&&C[Symbol.iterator];if(!$)return C;var j=$.call(C),L,B=[],H;try{for(;(O===void 0||O-- >0)&&!(L=j.next()).done;)B.push(L.value)}catch(q){H={error:q}}finally{try{L&&!L.done&&($=j.return)&&$.call(j)}finally{if(H)throw H.error}}return B},p=function(){for(var C=[],O=0;O1||q(fe,Ee)})})}function q(fe,Ee){try{Y(j[fe](Ee))}catch(Ae){le(B[0][3],Ae)}}function Y(fe){fe.value instanceof m?Promise.resolve(fe.value.v).then(W,ie):le(B[0][2],fe)}function W(fe){q("next",fe)}function ie(fe){q("throw",fe)}function le(fe,Ee){fe(Ee),B.shift(),B.length&&q(B[0][0],B[0][1])}},v=function(C){var O,$;return O={},j("next"),j("throw",function(L){throw L}),j("return"),O[Symbol.iterator]=function(){return this},O;function j(L,B){O[L]=C[L]?function(H){return($=!$)?{value:m(C[L](H)),done:L==="return"}:B?B(H):H}:B}},x=function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var O=C[Symbol.asyncIterator],$;return O?O.call(C):(C=typeof c=="function"?c(C):C[Symbol.iterator](),$={},j("next"),j("throw"),j("return"),$[Symbol.asyncIterator]=function(){return this},$);function j(B){$[B]=C[B]&&function(H){return new Promise(function(q,Y){H=C[B](H),L(q,Y,H.done,H.value)})}}function L(B,H,q,Y){Promise.resolve(Y).then(function(W){B({value:W,done:q})},H)}},w=function(C,O){return Object.defineProperty?Object.defineProperty(C,"raw",{value:O}):C.raw=O,C},I=function(C){if(C&&C.__esModule)return C;var O={};if(C!=null)for(var $ in C)Object.hasOwnProperty.call(C,$)&&(O[$]=C[$]);return O.default=C,O},_=function(C){return C&&C.__esModule?C:{default:C}},R=function(C,O){if(!O.has(C))throw new TypeError("attempted to get private field on non-instance");return O.get(C)},U=function(C,O,$){if(!O.has(C))throw new TypeError("attempted to set private field on non-instance");return O.set(C,$),$},b("__extends",t),b("__assign",n),b("__rest",r),b("__decorate",o),b("__param",i),b("__metadata",a),b("__awaiter",s),b("__generator",l),b("__exportStar",u),b("__createBinding",D),b("__values",c),b("__read",f),b("__spread",p),b("__spreadArrays",g),b("__await",m),b("__asyncGenerator",y),b("__asyncDelegator",v),b("__asyncValues",x),b("__makeTemplateObject",w),b("__importStar",I),b("__importDefault",_),b("__classPrivateFieldGet",R),b("__classPrivateFieldSet",U)})})(uQe);var b1={},Cs={},bz;function aoe(){return bz||(bz=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.MAX_HASHABLE_LENGTH=Cs.INIT=Cs.KEY=Cs.DIGEST_LENGTH=Cs.BLOCK_SIZE=void 0,Cs.BLOCK_SIZE=64,Cs.DIGEST_LENGTH=32,Cs.KEY=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]),Cs.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Cs.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1),Cs}var w1={},wz;function cQe(){if(wz)return w1;wz=1,Object.defineProperty(w1,"__esModule",{value:!0}),w1.RawSha256=void 0;var e=aoe(),t=function(){function n(){this.state=Int32Array.from(e.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return n.prototype.update=function(r){if(this.finished)throw new Error("Attempted to update an already finished hash.");var o=0,i=r.byteLength;if(this.bytesHashed+=i,this.bytesHashed*8>e.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;i>0;)this.buffer[this.bufferLength++]=r[o++],i--,this.bufferLength===e.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},n.prototype.digest=function(){if(!this.finished){var r=this.bytesHashed*8,o=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),i=this.bufferLength;if(o.setUint8(this.bufferLength++,128),i%e.BLOCK_SIZE>=e.BLOCK_SIZE-8){for(var a=this.bufferLength;a>>24&255,s[a*4+1]=this.state[a]>>>16&255,s[a*4+2]=this.state[a]>>>8&255,s[a*4+3]=this.state[a]>>>0&255;return s},n.prototype.hashBuffer=function(){for(var r=this,o=r.buffer,i=r.state,a=i[0],s=i[1],l=i[2],u=i[3],c=i[4],f=i[5],p=i[6],g=i[7],m=0;m>>17|y<<15)^(y>>>19|y<<13)^y>>>10;y=this.temp[m-15];var x=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3;this.temp[m]=(v+this.temp[m-7]|0)+(x+this.temp[m-16]|0)}var w=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&f^~c&p)|0)+(g+(e.KEY[m]+this.temp[m]|0)|0)|0,I=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&s^a&l^s&l)|0;g=p,p=f,f=c,c=u+w|0,u=l,l=s,s=a,a=w+I|0}i[0]+=a,i[1]+=s,i[2]+=l,i[3]+=u,i[4]+=c,i[5]+=f,i[6]+=p,i[7]+=g},n}();return w1.RawSha256=t,w1}var NP={},S1={};const dQe=e=>{const t=[];for(let n=0,r=e.length;n>6|192,o&63|128);else if(n+1>18|240,i>>12&63|128,i>>6&63|128,i&63|128)}else t.push(o>>12|224,o>>6&63|128,o&63|128)}return Uint8Array.from(t)},fQe=e=>{let t="";for(let n=0,r=e.length;ns.toString(16)).join("%");t+=decodeURIComponent(a)}else t+=String.fromCharCode((o&15)<<12|(e[++n]&63)<<6|e[++n]&63)}return t};function pQe(e){return new TextEncoder().encode(e)}function hQe(e){return new TextDecoder("utf-8").decode(e)}const gQe=e=>typeof TextEncoder=="function"?pQe(e):dQe(e),mQe=e=>typeof TextDecoder=="function"?hQe(e):fQe(e),yQe=Object.freeze(Object.defineProperty({__proto__:null,fromUtf8:gQe,toUtf8:mQe},Symbol.toStringTag,{value:"Module"})),vQe=Au(yQe);var Sz;function bQe(){if(Sz)return S1;Sz=1,Object.defineProperty(S1,"__esModule",{value:!0}),S1.convertToBuffer=void 0;var e=vQe,t=typeof Buffer<"u"&&Buffer.from?function(r){return Buffer.from(r,"utf8")}:e.fromUtf8;function n(r){return r instanceof Uint8Array?r:typeof r=="string"?t(r):ArrayBuffer.isView(r)?new Uint8Array(r.buffer,r.byteOffset,r.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(r)}return S1.convertToBuffer=n,S1}var x1={},xz;function wQe(){if(xz)return x1;xz=1,Object.defineProperty(x1,"__esModule",{value:!0}),x1.isEmptyData=void 0;function e(t){return typeof t=="string"?t.length===0:t.byteLength===0}return x1.isEmptyData=e,x1}var C1={},Cz;function SQe(){if(Cz)return C1;Cz=1,Object.defineProperty(C1,"__esModule",{value:!0}),C1.numToUint8=void 0;function e(t){return new Uint8Array([(t&4278190080)>>24,(t&16711680)>>16,(t&65280)>>8,t&255])}return C1.numToUint8=e,C1}var A1={},Az;function xQe(){if(Az)return A1;Az=1,Object.defineProperty(A1,"__esModule",{value:!0}),A1.uint32ArrayFrom=void 0;function e(t){if(!Uint32Array.from){for(var n=new Uint32Array(t.length),r=0;rt.BLOCK_SIZE){var l=new n.RawSha256;l.update(s),s=l.digest()}var u=new Uint8Array(t.BLOCK_SIZE);return u.set(s),u}return b1}(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=JA;t.__exportStar(AQe(),e)})(ioe);function soe(e,t){return function(){return e.apply(t,arguments)}}const{toString:_Qe}=Object.prototype,{getPrototypeOf:o$}=Object,zk=(e=>t=>{const n=_Qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kc=e=>(e=e.toLowerCase(),t=>zk(t)===e),Vk=e=>t=>typeof t===e,{isArray:tv}=Array,gw=Vk("undefined");function EQe(e){return e!==null&&!gw(e)&&e.constructor!==null&&!gw(e.constructor)&&Il(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const loe=kc("ArrayBuffer");function TQe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&loe(e.buffer),t}const kQe=Vk("string"),Il=Vk("function"),uoe=Vk("number"),Hk=e=>e!==null&&typeof e=="object",IQe=e=>e===!0||e===!1,MC=e=>{if(zk(e)!=="object")return!1;const t=o$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},PQe=kc("Date"),MQe=kc("File"),OQe=kc("Blob"),RQe=kc("FileList"),DQe=e=>Hk(e)&&Il(e.pipe),BQe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Il(e.append)&&((t=zk(e))==="formdata"||t==="object"&&Il(e.toString)&&e.toString()==="[object FormData]"))},$Qe=kc("URLSearchParams"),LQe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function GS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),tv(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const doe=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),foe=e=>!gw(e)&&e!==doe;function ER(){const{caseless:e}=foe(this)&&this||{},t={},n=(r,o)=>{const i=e&&coe(t,o)||o;MC(t[i])&&MC(r)?t[i]=ER(t[i],r):MC(r)?t[i]=ER({},r):tv(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(GS(t,(o,i)=>{n&&Il(o)?e[i]=soe(o,n):e[i]=o},{allOwnKeys:r}),e),NQe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),UQe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},jQe=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&o$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},WQe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},zQe=e=>{if(!e)return null;if(tv(e))return e;let t=e.length;if(!uoe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VQe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&o$(Uint8Array)),HQe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},qQe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QQe=kc("HTMLFormElement"),KQe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Tz=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),YQe=kc("RegExp"),poe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};GS(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},GQe=e=>{poe(e,(t,n)=>{if(Il(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Il(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},JQe=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return tv(e)?r(e):r(String(e).split(t)),n},XQe=()=>{},ZQe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),UP="abcdefghijklmnopqrstuvwxyz",kz="0123456789",hoe={DIGIT:kz,ALPHA:UP,ALPHA_DIGIT:UP+UP.toUpperCase()+kz},eKe=(e=16,t=hoe.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tKe(e){return!!(e&&Il(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nKe=e=>{const t=new Array(10),n=(r,o)=>{if(Hk(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=tv(r)?[]:{};return GS(r,(a,s)=>{const l=n(a,o+1);!gw(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},rKe=kc("AsyncFunction"),oKe=e=>e&&(Hk(e)||Il(e))&&Il(e.then)&&Il(e.catch),tt={isArray:tv,isArrayBuffer:loe,isBuffer:EQe,isFormData:BQe,isArrayBufferView:TQe,isString:kQe,isNumber:uoe,isBoolean:IQe,isObject:Hk,isPlainObject:MC,isUndefined:gw,isDate:PQe,isFile:MQe,isBlob:OQe,isRegExp:YQe,isFunction:Il,isStream:DQe,isURLSearchParams:$Qe,isTypedArray:VQe,isFileList:RQe,forEach:GS,merge:ER,extend:FQe,trim:LQe,stripBOM:NQe,inherits:UQe,toFlatObject:jQe,kindOf:zk,kindOfTest:kc,endsWith:WQe,toArray:zQe,forEachEntry:HQe,matchAll:qQe,isHTMLForm:QQe,hasOwnProperty:Tz,hasOwnProp:Tz,reduceDescriptors:poe,freezeMethods:GQe,toObjectSet:JQe,toCamelCase:KQe,noop:XQe,toFiniteNumber:ZQe,findKey:coe,global:doe,isContextDefined:foe,ALPHABET:hoe,generateString:eKe,isSpecCompliantForm:tKe,toJSONObject:nKe,isAsyncFn:rKe,isThenable:oKe};function ar(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}tt.inherits(ar,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:tt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const goe=ar.prototype,moe={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{moe[e]={value:e}});Object.defineProperties(ar,moe);Object.defineProperty(goe,"isAxiosError",{value:!0});ar.from=(e,t,n,r,o,i)=>{const a=Object.create(goe);return tt.toFlatObject(e,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),ar.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const iKe=null;function TR(e){return tt.isPlainObject(e)||tt.isArray(e)}function yoe(e){return tt.endsWith(e,"[]")?e.slice(0,-2):e}function Iz(e,t,n){return e?e.concat(t).map(function(o,i){return o=yoe(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function aKe(e){return tt.isArray(e)&&!e.some(TR)}const sKe=tt.toFlatObject(tt,{},null,function(t){return/^is[A-Z]/.test(t)});function qk(e,t,n){if(!tt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=tt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,v){return!tt.isUndefined(v[y])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&tt.isSpecCompliantForm(t);if(!tt.isFunction(o))throw new TypeError("visitor must be a function");function u(m){if(m===null)return"";if(tt.isDate(m))return m.toISOString();if(!l&&tt.isBlob(m))throw new ar("Blob is not supported. Use a Buffer instead.");return tt.isArrayBuffer(m)||tt.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,y,v){let x=m;if(m&&!v&&typeof m=="object"){if(tt.endsWith(y,"{}"))y=r?y:y.slice(0,-2),m=JSON.stringify(m);else if(tt.isArray(m)&&aKe(m)||(tt.isFileList(m)||tt.endsWith(y,"[]"))&&(x=tt.toArray(m)))return y=yoe(y),x.forEach(function(I,_){!(tt.isUndefined(I)||I===null)&&t.append(a===!0?Iz([y],_,i):a===null?y:y+"[]",u(I))}),!1}return TR(m)?!0:(t.append(Iz(v,y,i),u(m)),!1)}const f=[],p=Object.assign(sKe,{defaultVisitor:c,convertValue:u,isVisitable:TR});function g(m,y){if(!tt.isUndefined(m)){if(f.indexOf(m)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(m),tt.forEach(m,function(x,w){(!(tt.isUndefined(x)||x===null)&&o.call(t,x,tt.isString(w)?w.trim():w,y,p))===!0&&g(x,y?y.concat(w):[w])}),f.pop()}}if(!tt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Pz(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function i$(e,t){this._pairs=[],e&&qk(e,this,t)}const voe=i$.prototype;voe.append=function(t,n){this._pairs.push([t,n])};voe.toString=function(t){const n=t?function(r){return t.call(this,r,Pz)}:Pz;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lKe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function boe(e,t,n){if(!t)return e;const r=n&&n.encode||lKe,o=n&&n.serialize;let i;if(o?i=o(t,n):i=tt.isURLSearchParams(t)?t.toString():new i$(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class uKe{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){tt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Mz=uKe,woe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cKe=typeof URLSearchParams<"u"?URLSearchParams:i$,dKe=typeof FormData<"u"?FormData:null,fKe=typeof Blob<"u"?Blob:null,pKe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),hKe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),rc={isBrowser:!0,classes:{URLSearchParams:cKe,FormData:dKe,Blob:fKe},isStandardBrowserEnv:pKe,isStandardBrowserWebWorkerEnv:hKe,protocols:["http","https","file","blob","url","data"]};function gKe(e,t){return qk(e,new rc.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return rc.isNode&&tt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function mKe(e){return tt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yKe(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return a=!a&&tt.isArray(o)?o.length:a,l?(tt.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!tt.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&tt.isArray(o[a])&&(o[a]=yKe(o[a])),!s)}if(tt.isFormData(e)&&tt.isFunction(e.entries)){const n={};return tt.forEachEntry(e,(r,o)=>{t(mKe(r),o,n,0)}),n}return null}const vKe={"Content-Type":void 0};function bKe(e,t,n){if(tt.isString(e))try{return(t||JSON.parse)(e),tt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Qk={transitional:woe,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=tt.isObject(t);if(i&&tt.isHTMLForm(t)&&(t=new FormData(t)),tt.isFormData(t))return o&&o?JSON.stringify(Soe(t)):t;if(tt.isArrayBuffer(t)||tt.isBuffer(t)||tt.isStream(t)||tt.isFile(t)||tt.isBlob(t))return t;if(tt.isArrayBufferView(t))return t.buffer;if(tt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gKe(t,this.formSerializer).toString();if((s=tt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return qk(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),bKe(t)):t}],transformResponse:[function(t){const n=this.transitional||Qk.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&tt.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(a)throw s.name==="SyntaxError"?ar.from(s,ar.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rc.classes.FormData,Blob:rc.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};tt.forEach(["delete","get","head"],function(t){Qk.headers[t]={}});tt.forEach(["post","put","patch"],function(t){Qk.headers[t]=tt.merge(vKe)});const a$=Qk,wKe=tt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),SKe=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&wKe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Oz=Symbol("internals");function _1(e){return e&&String(e).trim().toLowerCase()}function OC(e){return e===!1||e==null?e:tt.isArray(e)?e.map(OC):String(e)}function xKe(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const CKe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function jP(e,t,n,r,o){if(tt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!tt.isString(t)){if(tt.isString(r))return t.indexOf(r)!==-1;if(tt.isRegExp(r))return r.test(t)}}function AKe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function _Ke(e,t){const n=tt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Kk=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const c=_1(l);if(!c)throw new Error("header name must be a non-empty string");const f=tt.findKey(o,c);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=OC(s))}const a=(s,l)=>tt.forEach(s,(u,c)=>i(u,c,l));return tt.isPlainObject(t)||t instanceof this.constructor?a(t,n):tt.isString(t)&&(t=t.trim())&&!CKe(t)?a(SKe(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=_1(t),t){const r=tt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return xKe(o);if(tt.isFunction(n))return n.call(this,o,r);if(tt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_1(t),t){const r=tt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||jP(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=_1(a),a){const s=tt.findKey(r,a);s&&(!n||jP(r,r[s],s,n))&&(delete r[s],o=!0)}}return tt.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||jP(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return tt.forEach(this,(o,i)=>{const a=tt.findKey(r,i);if(a){n[a]=OC(o),delete n[i];return}const s=t?AKe(i):String(i).trim();s!==i&&delete n[i],n[s]=OC(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return tt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&tt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Oz]=this[Oz]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=_1(a);r[s]||(_Ke(o,a),r[s]=!0)}return tt.isArray(t)?t.forEach(i):i(t),this}};Kk.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);tt.freezeMethods(Kk.prototype);tt.freezeMethods(Kk);const wd=Kk;function WP(e,t){const n=this||a$,r=t||n,o=wd.from(r.headers);let i=r.data;return tt.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function xoe(e){return!!(e&&e.__CANCEL__)}function JS(e,t,n){ar.call(this,e??"canceled",ar.ERR_CANCELED,t,n),this.name="CanceledError"}tt.inherits(JS,ar,{__CANCEL__:!0});function EKe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ar("Request failed with status code "+n.status,[ar.ERR_BAD_REQUEST,ar.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const TKe=rc.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,a,s){const l=[];l.push(n+"="+encodeURIComponent(r)),tt.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),tt.isString(i)&&l.push("path="+i),tt.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function kKe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function IKe(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Coe(e,t){return e&&!kKe(t)?IKe(e,t):t}const PKe=rc.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(a){const s=tt.isString(a)?o(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function MKe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function OKe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,p=0;for(;f!==o;)p+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,l=r(s),u=i<=a;n=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&u?(a-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const RKe=typeof XMLHttpRequest<"u",DKe=RKe&&function(e){return new Promise(function(n,r){let o=e.data;const i=wd.from(e.headers).normalize(),a=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}tt.isFormData(o)&&(rc.isStandardBrowserEnv||rc.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+m))}const c=Coe(e.baseURL,e.url);u.open(e.method.toUpperCase(),boe(c,e.params,e.paramsSerializer),!0),u.timeout=e.timeout;function f(){if(!u)return;const g=wd.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:g,config:e,request:u};EKe(function(x){n(x),l()},function(x){r(x),l()},y),u=null}if("onloadend"in u?u.onloadend=f:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(f)},u.onabort=function(){u&&(r(new ar("Request aborted",ar.ECONNABORTED,e,u)),u=null)},u.onerror=function(){r(new ar("Network Error",ar.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||woe;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),r(new ar(m,y.clarifyTimeoutError?ar.ETIMEDOUT:ar.ECONNABORTED,e,u)),u=null},rc.isStandardBrowserEnv){const g=(e.withCredentials||PKe(c))&&e.xsrfCookieName&&TKe.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}o===void 0&&i.setContentType(null),"setRequestHeader"in u&&tt.forEach(i.toJSON(),function(m,y){u.setRequestHeader(y,m)}),tt.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&a!=="json"&&(u.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&u.addEventListener("progress",Rz(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&u.upload&&u.upload.addEventListener("progress",Rz(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{u&&(r(!g||g.type?new JS(null,e,u):g),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const p=MKe(c);if(p&&rc.protocols.indexOf(p)===-1){r(new ar("Unsupported protocol "+p+":",ar.ERR_BAD_REQUEST,e));return}u.send(o||null)})},RC={http:iKe,xhr:DKe};tt.forEach(RC,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const BKe={getAdapter:e=>{e=tt.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof wd?e.toJSON():e;function ay(e,t){t=t||{};const n={};function r(u,c,f){return tt.isPlainObject(u)&&tt.isPlainObject(c)?tt.merge.call({caseless:f},u,c):tt.isPlainObject(c)?tt.merge({},c):tt.isArray(c)?c.slice():c}function o(u,c,f){if(tt.isUndefined(c)){if(!tt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function i(u,c){if(!tt.isUndefined(c))return r(void 0,c)}function a(u,c){if(tt.isUndefined(c)){if(!tt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function s(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,c)=>o(Bz(u),Bz(c),!0)};return tt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||o,p=f(e[c],t[c],c);tt.isUndefined(p)&&f!==s||(n[c]=p)}),n}const Aoe="1.4.0",s$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{s$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const $z={};s$.transitional=function(t,n,r){function o(i,a){return"[Axios v"+Aoe+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new ar(o(a," has been removed"+(n?" in "+n:"")),ar.ERR_DEPRECATED);return n&&!$z[a]&&($z[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};function $Ke(e,t,n){if(typeof e!="object")throw new ar("options must be an object",ar.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new ar("option "+i+" must be "+l,ar.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ar("Unknown option "+i,ar.ERR_BAD_OPTION)}}const kR={assertOptions:$Ke,validators:s$},bf=kR.validators;let XA=class{constructor(t){this.defaults=t,this.interceptors={request:new Mz,response:new Mz}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ay(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&kR.assertOptions(r,{silentJSONParsing:bf.transitional(bf.boolean),forcedJSONParsing:bf.transitional(bf.boolean),clarifyTimeoutError:bf.transitional(bf.boolean)},!1),o!=null&&(tt.isFunction(o)?n.paramsSerializer={serialize:o}:kR.assertOptions(o,{encode:bf.function,serialize:bf.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a;a=i&&tt.merge(i.common,i[n.method]),a&&tt.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=wd.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(l=l&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,f=0,p;if(!l){const m=[Dz.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,u),p=m.length,c=Promise.resolve(n);f{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new JS(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new _oe(function(o){t=o}),cancel:t}}};const FKe=LKe;function NKe(e){return function(n){return e.apply(null,n)}}function UKe(e){return tt.isObject(e)&&e.isAxiosError===!0}const IR={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(IR).forEach(([e,t])=>{IR[t]=e});const jKe=IR;function Eoe(e){const t=new DC(e),n=soe(DC.prototype.request,t);return tt.extend(n,DC.prototype,t,{allOwnKeys:!0}),tt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Eoe(ay(e,o))},n}const yi=Eoe(a$);yi.Axios=DC;yi.CanceledError=JS;yi.CancelToken=FKe;yi.isCancel=xoe;yi.VERSION=Aoe;yi.toFormData=qk;yi.AxiosError=ar;yi.Cancel=yi.CanceledError;yi.all=function(t){return Promise.all(t)};yi.spread=NKe;yi.isAxiosError=UKe;yi.mergeConfig=ay;yi.AxiosHeaders=wd;yi.formToJSON=e=>Soe(tt.isHTMLForm(e)?new FormData(e):e);yi.HttpStatusCode=jKe;yi.default=yi;const Yk=yi,{Axios:WKe,AxiosError:zKe,CanceledError:VKe,isCancel:HKe,CancelToken:qKe,VERSION:QKe,all:KKe,Cancel:YKe,isAxiosError:GKe,spread:JKe,toFormData:XKe,AxiosHeaders:ZKe,HttpStatusCode:eYe,formToJSON:tYe,mergeConfig:nYe}=Yk,rYe=Object.freeze(Object.defineProperty({__proto__:null,Axios:WKe,AxiosError:zKe,AxiosHeaders:ZKe,Cancel:YKe,CancelToken:qKe,CanceledError:VKe,HttpStatusCode:eYe,VERSION:QKe,all:KKe,default:Yk,formToJSON:tYe,isAxiosError:GKe,isCancel:HKe,mergeConfig:nYe,spread:JKe,toFormData:XKe},Symbol.toStringTag,{value:"Module"})),oYe=Au(rYe);var iYe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ni,"__esModule",{value:!0});Ni.transferNft=Ni.transferJettons=Ni.readJettonMinterOrNftCollectionMetadata=Ni.readJettonMinterMetadata=Ni.readJettonWalletMetadata=Ni.readNftItemMetadata=Ni.readNftCollectionMetadata=void 0;const Sd=js,aYe=ioe,PR=iYe(oYe),sYe=Oy,ZA=lT(),Bf=dn,Lz={name:"utf8",description:"utf8",image:"ascii",decimals:"utf8",symbol:"utf8",image_data:void 0},lYe=0,uYe=1,cYe=0,dYe=e=>{const t=new aYe.Sha256;return t.update(e),Buffer.from(t.digestSync())};async function Toe(e){const n=e.stack.readCell().beginParse();switch(n.loadUint(8)){case lYe:return{persistenceType:"onchain",...gYe(n)};case uYe:const{metadata:r,isIpfs:o}=await mYe(n);return{persistenceType:o?"offchain_ipfs":"offchain_private_domain",metadata:r};default:throw new Error("Unexpected jetton metadata content prefix")}}async function koe(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_collection_data");return r.stack.skip(1),await Toe(r)}catch{return console.log(`failed to fetch nft metadata at address ${t}`),{}}}Ni.readNftCollectionMetadata=koe;async function fYe(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_nft_data");r.stack.skip(1);const o=r.stack.readBigNumber(),i=r.stack.readAddress(),a=r.stack.readAddress(),s=r.stack.readCell(),l={type:"int",value:o},u={type:"cell",cell:s};let f=(await e.runMethod(i,"get_nft_content",[l,u])).stack.readCell().beginParse();const p=(0,ZA.bitsToPaddedBuffer)(f.loadBits(f.remainingBits)).toString();if(f=s.beginParse(),f.remainingBits==0)return(await PR.default.get(p)).data;const m=(0,ZA.bitsToPaddedBuffer)(f.loadBits(f.remainingBits)).toString();return{...(await PR.default.get(p+m)).data,nftItemOwner:a}}catch{return console.log(`failed to fetch nft item metadata at address ${t}`),{}}}Ni.readNftItemMetadata=fYe;async function pYe(e,t){const n=await e.runMethod(Sd.Address.parse(t),"get_wallet_data"),r=n.stack.readNumber(),o=n.stack.readAddress();return{...await l$(e,n.stack.readAddress().toString()),jettonWalletBalance:r,ownerAddress:o}}Ni.readJettonWalletMetadata=pYe;async function l$(e,t){try{const n=Sd.Address.parse(t),r=await e.runMethod(n,"get_jetton_data");return r.stack.skip(3),await Toe(r)}catch{return console.log("failed to fetch jetton metadata"),{}}}Ni.readJettonMinterMetadata=l$;async function hYe(e,t){const n=await koe(e,t);if(Object.keys(n).length!=0)return n.type="NFT",n;const r=await l$(e,t);return Object.keys(r).length!=0?(r.type="Jetton",r):{}}Ni.readJettonMinterOrNftCollectionMetadata=hYe;function gYe(e){const t=a=>BigInt(`0x${a}`);let r=!1;const o=(0,sYe.parseDict)(e.loadRef().beginParse(),256,a=>{let s=Buffer.from("");const l=(u,c,f)=>{if(u.asCell().beginParse(),f&&u.loadUint(8)!==cYe)throw new Error("Only snake format is supported");const p=u.remainingBits,g=(0,ZA.bitsToPaddedBuffer)(u.loadBits(p));return c=Buffer.concat([c,g]),u.remainingRefs===1&&(c=l(u.loadRef().beginParse(),c,!1)),c};return a.remainingRefs===0?(r=!0,l(a,s,!0)):l(a.loadRef().beginParse(),s,!0)}),i={};return Object.keys(Lz).forEach(a=>{var l;const s=(l=o.get(t(dYe(a).toString("hex"))))==null?void 0:l.toString(Lz[a]);s&&(i[a]=s)}),{metadata:i,isJettonDeployerFaultyOnChainData:r}}async function mYe(e){const t=e.remainingBits,r=(0,ZA.bitsToPaddedBuffer)(e.loadBits(t)).toString("ascii").replace("ipfs://","https://ipfs.io/ipfs/");return{metadata:(await PR.default.get(r)).data,isIpfs:/(^|\/)ipfs[.:]/.test(r)}}async function yYe(e,t,n,r,o){const i=t.account.address,a=await(0,Bf.getSeqno)(e,i.toString()),s={validUntil:Date.now()+5*60*1e3,messages:[{address:r,amount:(0,Sd.toNano)("0.1").toString(),stateInit:void 0,payload:(0,Bf._transferJetton)(Sd.Address.parse(o),Sd.Address.parse(i),n).toBoc().toString("base64")}]};await t.sendTransaction(s),await(0,Bf.waitForConditionChange)(Bf.getSeqno,[e,i.toString()],a)}Ni.transferJettons=yYe;async function vYe(e,t,n,r){const o=t.account.address,i=await(0,Bf.getSeqno)(e,o.toString()),a={validUntil:Date.now()+5*60*1e3,messages:[{address:n,amount:(0,Sd.toNano)("0.05").toString(),stateInit:void 0,payload:(0,Bf._transferNft)(Sd.Address.parse(r)).toBoc().toString("base64")}]};await t.sendTransaction(a),await(0,Bf.waitForConditionChange)(Bf.getSeqno,[e,o.toString()],i)}Ni.transferNft=vYe;Object.defineProperty(ro,"__esModule",{value:!0});ro.metdataExists=ro.getProposalMetadata=ro.extractVotingPowerStrategies=ro.extractVotingSystem=ro.getDaoProposals=ro.getDaoMetadata=ro.getDaoState=ro.getDaos=ro.getRegistryState=ro.getRegistry=ro.getRouter=void 0;const nv=dn,Gk=ht,u$=pt,Ioe=ir,Poe=Dt,bYe=pn,Ag=js,gb=YS,wYe=gt,Moe=Ni;async function SYe(e){return e.open(await wYe.Router.fromInit()).address.toString()}ro.getRouter=SYe;async function xYe(e,t){let n=e.open(await Gk.Registry.fromInit(BigInt(t)));if(await e.isContractDeployed(n.address))return n.address.toString()}ro.getRegistry=xYe;async function CYe(e,t){let n=e.open(await Gk.Registry.fromInit(BigInt(t)));if(!await e.isContractDeployed(n.address))return;const r=await n.getState();return{registryAddr:n.address.toString(),registryId:Number(r.registryId),nextDaoId:Number(r.nextDaoId),admin:r.admin.toString(),deployAndInitDaoFee:r.deployAndInitDaoFee.toString()}}ro.getRegistryState=CYe;async function AYe(e,t,n=null,r=100,o="asc"){return o=="desc"?_Ye(e,t,n,r):EYe(e,t,n,r)}ro.getDaos=AYe;async function _Ye(e,t,n=null,r=100){let o=e.open(await Gk.Registry.fromInit(BigInt(t))),i=[];const a=Number(await o.getNextDaoId());if(a==0)return{endDaoId:0,daoAddresses:[]};n==null&&(n=a-1);const s=Math.max(0,n-r+1);for(let l=n;l>=s;l-=r){const u=Math.max(l-r+1,s),c=l+1,f=[];for(let g=u;gg.toString()))}return{endDaoId:s-1,daoAddresses:i}}async function EYe(e,t,n=null,r=100){let o=e.open(await Gk.Registry.fromInit(BigInt(t))),i=[];const a=Number(await o.getNextDaoId());if(a==0)return{endDaoId:0,daoAddresses:[]};n==null&&(n=0);const s=Math.min(a,n+r);let l=Math.ceil((s-n)/r);for(let u=0;ui.push(m.toString())));await(0,nv.promiseAllWithRetry)(p)}return{endDaoId:s,daoAddresses:i}}async function TYe(e,t){let n=e.open(u$.Dao.fromAddress(Ag.Address.parse(t)));const r=await(0,nv.executeMethodWithRetry)(n,"getState");return{registry:r.registry.toString(),owner:r.owner.toString(),proposalOwner:r.proposalOwner.toString(),metadata:r.metadata.toString(),daoIndex:Number(r.daoIndex),fwdMsgFee:Number(r.fwdMsgFee)}}ro.getDaoState=TYe;async function kYe(e,t){const n=e.open(Ioe.Metadata.fromAddress(Ag.Address.parse(t))),r=await(0,nv.executeMethodWithRetry)(n,"getState");return{about:r.about,avatar:r.avatar,github:r.github,hide:r.hide,name:r.name,terms:r.terms,telegram:r.telegram,website:r.website,jetton:r.jetton.toString(),nft:r.nft.toString(),dns:r.dns.toString()}}ro.getDaoMetadata=kYe;async function IYe(e,t,n=null,r=100,o="asc"){return o=="desc"?PYe(e,t,n,r):MYe(e,t,n,r)}ro.getDaoProposals=IYe;async function PYe(e,t,n=null,r=100){let o=e.open(u$.Dao.fromAddress(Ag.Address.parse(t))),i=e.open(await Poe.ProposalDeployer.fromInit(o.address));if(!await e.isContractDeployed(i.address))return{endProposalId:-1,proposalAddresses:void 0};let a=Number(await i.getNextProposalId());n==null&&(n=a-1);const s=Math.max(0,n-r+1);let l=[];const u=Math.ceil((n-s+1)/r);for(let c=0;cp;m--){const y=i.getProposalAddr(BigInt(m)).then(v=>{l.push(v.toString())});g.push(y)}await(0,nv.promiseAllWithRetry)(g)}return{endProposalId:s-1,proposalAddresses:l}}async function MYe(e,t,n=null,r=100){let o=e.open(u$.Dao.fromAddress(Ag.Address.parse(t))),i=e.open(await Poe.ProposalDeployer.fromInit(o.address));if(!await e.isContractDeployed(i.address))return{endProposalId:-1,proposalAddresses:void 0};n==null&&(n=0);const a=Math.min(Number(await i.getNextProposalId()),n+r);let s=[];for(let l=n;lp.toString()))}return{endProposalId:a,proposalAddresses:s}}function Ooe(e){try{const t=JSON.parse(e);return!("choices"in t)||!("votingSystemType"in t)?{choices:[],votingSystemType:gb.VotingSystemType.UNDEFINED}:t}catch(t){return console.log("failed to extract voting system from str: ",e),console.error(t),{choices:[],votingSystemType:gb.VotingSystemType.UNDEFINED}}}ro.extractVotingSystem=Ooe;function Roe(e){try{const t=JSON.parse(e);if(!Array.isArray(t))return console.log("failed to extract voting power strategies from str: ",e),[{type:gb.VotingPowerStrategyType.UNDEFINED,arguments:[]}];for(let n=0;n{let c=t.open(await Mp.Dao.fromInit(a.address,BigInt(u)));const f=(await c.getState()).fwdMsgFee;return f==s?!0:(await a.send(e,{value:(0,on.toNano)(r)},{$$type:"SendToDaoSetFwdMsgFee",daoId:BigInt(u),newFwdMsgFee:s}),(0,Ii.waitForConditionChange)(c.getState,[],f,"fwdMsgFee"))});return await Promise.all(l)}ur.setFwdMsgFee=QYe;async function KYe(e,t,n,r){if(!e.address)return console.log("sender address is not defined"),!1;let o=t.open(await LYe.Metadata.fromInit(r.avatar,r.name,r.about,r.website,r.terms,r.telegram,r.github,on.Address.parse(r.jetton),on.Address.parse(r.nft),r.hide,r.dns));return await t.isContractDeployed(o.address)?(console.log("Contract already deployed"),o.address.toString()):(await o.send(e,{value:(0,on.toNano)(n)},{$$type:"Deploy",queryId:BigInt(0)}),await(0,Ii.waitForContractToBeDeployed)(t,o.address)&&o.address.toString())}ur.newMetdata=KYe;async function YYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const a=await i.getState(),s=a.owner;if(a.proposalOwner.toString()!=e.address.toString()&&s.toString()!=e.address.toString())return console.log("Only proposalOwner or owner are allowed to create proposal"),!1;let u=t.open(await $oe.ProposalDeployer.fromInit(on.Address.parse(r)));if(!u.init)return console.log("proposalDeployer init is undefined"),!1;let c=u.init.code,f=u.init.data,p=BigInt(0);return await t.isContractDeployed(u.address)&&(c=null,f=null,p=await u.getNextProposalId()),await i.send(e,{value:(0,on.toNano)(n)},{$$type:"FwdMsg",fwdMsg:{$$type:"SendParameters",bounce:!0,to:u.address,value:(0,on.toNano)(0),mode:BigInt(64),body:(0,on.beginCell)().store((0,Boe.storeDeployAndInitProposal)({$$type:"DeployAndInitProposal",body:{$$type:"Params",proposalStartTime:BigInt(o.proposalStartTime),proposalEndTime:BigInt(o.proposalEndTime),proposalSnapshotTime:BigInt(o.proposalSnapshotTime),votingSystem:JSON.stringify(o.votingSystem),votingPowerStrategies:JSON.stringify(o.votingPowerStrategies),title:o.title,description:o.description,quorum:o.quorum,hide:o.hide}})).endCell(),code:c,data:f}}),await(0,Ii.waitForContractToBeDeployed)(t,u.address),await(0,Ii.waitForConditionChange)(u.getNextProposalId,[],p,"nextProposalId"),(await u.getProposalAddr(p)).toString()}ur.newProposal=YYe;async function GYe(e,t,n,r,o,i){if(!e.address)return console.log("sender address is not defined"),!1;let a=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(a.address))return console.log("Dao contract is not deployed"),!1;const s=await a.getState(),l=s.owner;if(s.proposalOwner.toString()!=e.address.toString()&&l.toString()!=e.address.toString())return console.log("Only proposalOwner or owner are allowed to update proposal"),!1;let c=t.open(await $oe.ProposalDeployer.fromInit(on.Address.parse(r)));return c.init?await t.isContractDeployed(c.address)?(await a.send(e,{value:(0,on.toNano)(n)},{$$type:"FwdMsg",fwdMsg:{$$type:"SendParameters",bounce:!0,to:c.address,value:(0,on.toNano)(0),mode:BigInt(64),body:(0,on.beginCell)().store((0,Boe.storeSendUpdateProposal)({$$type:"SendUpdateProposal",proposalAddress:on.Address.parse(o),updateParams:{$$type:"Params",proposalStartTime:BigInt(i.proposalStartTime),proposalEndTime:BigInt(i.proposalEndTime),proposalSnapshotTime:BigInt(i.proposalSnapshotTime),votingSystem:JSON.stringify(i.votingSystem),votingPowerStrategies:JSON.stringify(i.votingPowerStrategies),title:i.title,description:i.description,quorum:i.quorum,hide:i.hide}})).endCell(),code:null,data:null}}),!0):(console.log("Proposal deployer not deployed"),!1):(console.log("proposalDeployer init is undefined"),!1)}ur.updateProposal=GYe;async function JYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(n)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const s=(await i.getState()).owner;return s.toString()!=e.address.toString()?(console.log("Only owner is allowed to set new owner"),!1):(await i.send(e,{value:(0,on.toNano)(r)},{$$type:"SetOwner",newOwner:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],s,"owner")&&s.toString())}ur.daoSetOwner=JYe;async function XYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const a=await i.getState(),s=a.owner,l=a.proposalOwner;return s.toString()!=e.address.toString()?(console.log("Only owner is allowed to create proposal"),!1):(await i.send(e,{value:(0,on.toNano)(n)},{$$type:"SetProposalOwner",newProposalOwner:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],l,"proposalOwner")&&o)}ur.daoSetProposalOwner=XYe;async function ZYe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(Mp.Dao.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Dao contract is not deployed"),!1;const s=(await i.getState()).owner;if(s.toString()!=e.address.toString())return console.log("Only owner is allowed to set new new metadata"),!1;let l=(await i.getState()).metadata;return await i.send(e,{value:(0,on.toNano)(n)},{$$type:"SetMetadata",newMetadata:on.Address.parse(o)}),await(0,Ii.waitForConditionChange)(i.getState,[],l,"metadata")&&s.toString()}ur.setMetadata=ZYe;async function eGe(e,t,n,r,o){if(!e.address)return console.log("sender address is not defined"),!1;let i=t.open(FYe.Proposal.fromAddress(on.Address.parse(r)));if(!await t.isContractDeployed(i.address))return console.log("Proposal contract is not deployed"),!1;const a=await(0,Ii.getSeqno)(t,e.address.toString());await i.send(e,{value:(0,on.toNano)(n)},{$$type:"Vote",comment:o}),await(0,Ii.waitForConditionChange)(Ii.getSeqno,[t,e.address.toString()],a)}ur.proposalSendMessage=eGe;var Hr={},Cl={},Jk={},sa=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof sa<"u"&&sa,Ya={searchParams:"URLSearchParams"in sa,iterable:"Symbol"in sa&&"iterator"in Symbol,blob:"FileReader"in sa&&"Blob"in sa&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in sa,arrayBuffer:"ArrayBuffer"in sa};function tGe(e){return e&&DataView.prototype.isPrototypeOf(e)}if(Ya.arrayBuffer)var nGe=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],rGe=ArrayBuffer.isView||function(e){return e&&nGe.indexOf(Object.prototype.toString.call(e))>-1};function XS(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c$(e){return typeof e!="string"&&(e=String(e)),e}function d$(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return Ya.iterable&&(t[Symbol.iterator]=function(){return t}),t}function vi(e){this.map={},e instanceof vi?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}vi.prototype.append=function(e,t){e=XS(e),t=c$(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};vi.prototype.delete=function(e){delete this.map[XS(e)]};vi.prototype.get=function(e){return e=XS(e),this.has(e)?this.map[e]:null};vi.prototype.has=function(e){return this.map.hasOwnProperty(XS(e))};vi.prototype.set=function(e,t){this.map[XS(e)]=c$(t)};vi.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};vi.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),d$(e)};vi.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),d$(e)};vi.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),d$(e)};Ya.iterable&&(vi.prototype[Symbol.iterator]=vi.prototype.entries);function VP(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Loe(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function oGe(e){var t=new FileReader,n=Loe(t);return t.readAsArrayBuffer(e),n}function iGe(e){var t=new FileReader,n=Loe(t);return t.readAsText(e),n}function aGe(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function _g(e,t){if(!(this instanceof _g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof _g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new vi(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new vi(t.headers)),this.method=lGe(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}_g.prototype.clone=function(){return new _g(this,{body:this._bodyInit})};function uGe(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function cGe(e){var t=new vi,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(` +`)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();t.append(i,a)}}),t}Foe.call(_g.prototype);function wc(e,t){if(!(this instanceof wc))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new vi(t.headers),this.url=t.url||"",this._initBody(e)}Foe.call(wc.prototype);wc.prototype.clone=function(){return new wc(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new vi(this.headers),url:this.url})};wc.error=function(){var e=new wc(null,{status:0,statusText:""});return e.type="error",e};var dGe=[301,302,303,307,308];wc.redirect=function(e,t){if(dGe.indexOf(t)===-1)throw new RangeError("Invalid status code");return new wc(null,{status:t,headers:{location:e}})};var bh=sa.DOMException;try{new bh}catch{bh=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},bh.prototype=Object.create(Error.prototype),bh.prototype.constructor=bh}function Noe(e,t){return new Promise(function(n,r){var o=new _g(e,t);if(o.signal&&o.signal.aborted)return r(new bh("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={status:i.status,statusText:i.statusText,headers:cGe(i.getAllResponseHeaders()||"")};l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new wc(u,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){r(new bh("Aborted","AbortError"))},0)};function s(l){try{return l===""&&sa.location.href?sa.location.href:l}catch{return l}}i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(Ya.blob?i.responseType="blob":Ya.arrayBuffer&&o.headers.get("Content-Type")&&o.headers.get("Content-Type").indexOf("application/octet-stream")!==-1&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof vi)?Object.getOwnPropertyNames(t.headers).forEach(function(l){i.setRequestHeader(l,c$(t.headers[l]))}):o.headers.forEach(function(l,u){i.setRequestHeader(u,l)}),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit>"u"?null:o._bodyInit)})}Noe.polyfill=!0;sa.fetch||(sa.fetch=Noe,sa.Headers=vi,sa.Request=_g,sa.Response=wc);self.fetch.bind(self);var fGe=st&&st.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Jk,"__esModule",{value:!0});Jk.Nodes=void 0;class pGe{constructor(){this.nodeIndex=-1,this.committee=new Set,this.topology=[],this.initTime=0}init(t){return fGe(this,void 0,void 0,function*(){this.nodeIndex=-1,this.committee.clear(),this.topology=[],this.initTime=Date.now();let n=[];try{n=yield(yield fetch(t)).json()}catch(r){throw new Error(`exception in fetch(${t}): ${r}`)}for(const r of n)r.Healthy==="1"&&this.topology.push(r);if(this.topology.length===0)throw new Error(`no healthy nodes in ${t}`)})}getHealthyFor(t){var n;const r=[];for(const o of this.topology)o.Weight>0&&(!((n=o.Mngr)===null||n===void 0)&&n.health[t])&&r.push(o);return r}}Jk.Nodes=pGe;const hGe="@orbs-network/ton-access",gGe="2.3.3",mGe="Unthrottled anonymous RPC access to TON blockchain via a robust decentralized network",yGe="lib/index.js",vGe="lib/index.js",bGe="lib/index.d.ts",wGe=["lib/**/*"],SGe={test:"env mocha -r ts-node/register test/**/*.ts","test:v2":"env mocha -r ts-node/register test/ton-v2.ts","test:v4":"env mocha -r ts-node/register test/ton-v4.ts",cleanup:"rimraf ./lib","build:web:reg":"esbuild ./lib/web.js --bundle --sourcemap --target=es2015 --outfile=./dist/index.js","build:web:min":"esbuild ./lib/web.js --bundle --minify --target=es2015 --outfile=./dist/index.min.js","build:web":"rimraf ./dist && npm run build:web:reg && npm run build:web:min",build:"npm run lint && rimraf ./lib && tsc && npm run build:web",format:'prettier --write "src/**/*.ts"',lint:"tslint -p tsconfig.json",prepare:"npm run build",prepublishOnly:"npm test && npm run lint",preversion:"npm run lint",version:"npm run format && git add -A src",postversion:"git push && git push --tags"},xGe={type:"git",url:"git+https://github.com/orbs-network/ton-access.git"},CGe="yuval@orbs.com",AGe="MIT",_Ge={url:"https://github.com/orbs-network/ton-access/issues"},EGe="https://github.com/orbs-network/ton-access#readme",TGe={"isomorphic-fetch":"^3.0.0"},kGe={"@types/bn.js":"^5.1.1","@types/chai":"^4.3.4","@types/isomorphic-fetch":"^0.0.36","@types/mocha":"^10.0.0",buffer:"^6.0.3",chai:"^4.3.7",esbuild:"^0.15.14",mocha:"^10.1.0",prettier:"^2.7.1",rimraf:"^3.0.2",ton:"^12.1.3","ton-lite-client":"npm:@truecarry/ton-lite-client@^1.6.1",tonweb:"^0.0.58","ts-node":"^10.9.1",tslib:"^2.4.0",tslint:"^6.1.3","tslint-config-prettier":"^1.18.0"},IGe={name:hGe,version:gGe,description:mGe,source:yGe,main:vGe,types:bGe,files:wGe,scripts:SGe,repository:xGe,author:CGe,license:AGe,bugs:_Ge,homepage:EGe,dependencies:TGe,devDependencies:kGe};var rv=st&&st.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?i(c.value):o(c.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};Object.defineProperty(Cl,"__esModule",{value:!0});Cl.getHttpV4Endpoint=Cl.getHttpV4Endpoints=Cl.getHttpEndpoint=Cl.getHttpEndpoints=Cl.Access=void 0;const PGe=Jk;class Uoe{constructor(){this.host="ton.access.orbs.network",this.urlVersion=1,this.nodes=new PGe.Nodes}init(){return rv(this,void 0,void 0,function*(){const t=IGe;yield this.nodes.init(`https://${this.host}/mngr/nodes?npm_version=${t.version}`)})}makeProtonet(t,n){let r="";switch(t){case"toncenter-api-v2":r+="v2-";break;case"ton-api-v4":r+="v4-";break}return r+=n,r}weightedRandom(t){let n=0;for(const i of t)n+=i.Weight;const r=Math.floor(Math.random()*n);let o=0;for(const i of t){if(r>=o&&r * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,g=4,m=1,y=2,v=1,x=2,w=4,I=8,_=16,R=32,U=64,D=128,b=256,T=512,C=30,O="...",$=800,j=16,L=1,B=2,H=3,q=1/0,Y=9007199254740991,W=17976931348623157e292,ie=0/0,le=4294967295,fe=le-1,Ee=le>>>1,Ae=[["ary",D],["bind",v],["bindKey",x],["curry",I],["curryRight",_],["flip",T],["partial",R],["partialRight",U],["rearg",b]],Ie="[object Arguments]",De="[object Array]",Ue="[object AsyncFunction]",ce="[object Boolean]",de="[object Date]",ve="[object DOMException]",he="[object Error]",pe="[object Function]",ge="[object GeneratorFunction]",Ce="[object Map]",_e="[object Number]",Ne="[object Null]",Be="[object Object]",Ve="[object Promise]",wt="[object Proxy]",xe="[object RegExp]",je="[object Set]",We="[object String]",Ge="[object Symbol]",Fe="[object Undefined]",te="[object WeakMap]",Z="[object WeakSet]",N="[object ArrayBuffer]",k="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",V="[object Int8Array]",K="[object Int16Array]",ee="[object Int32Array]",be="[object Uint8Array]",Me="[object Uint8ClampedArray]",we="[object Uint16Array]",Pe="[object Uint32Array]",Ye=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,rn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,An=RegExp(Qt.source),br=RegExp(Zt.source),wr=/<%-([\s\S]+?)%>/g,kr=/<%([\s\S]+?)%>/g,ti=/<%=([\s\S]+?)%>/g,Yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gi=/^\w*$/,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/[\\^$.*+?()[\]{}|]/g,Si=RegExp(nr.source),G=/^\s+/,re=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,F=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Le=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Et=/^[-+]0x[0-9a-f]+$/i,Un=/^0b[01]+$/i,Ot=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hn=/($^)/,gn=/['\n\r\u2028\u2029\\]/g,ln="\\ud800-\\udfff",mn="\\u0300-\\u036f",Lt="\\ufe20-\\ufe2f",Gt="\\u20d0-\\u20ff",Pt=mn+Lt+Gt,Ft="\\u2700-\\u27bf",qt="a-z\\xdf-\\xf6\\xf8-\\xff",kt="\\xac\\xb1\\xd7\\xf7",He="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qe="\\u2000-\\u206f",ut=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nt="A-Z\\xc0-\\xd6\\xd8-\\xde",rt="\\ufe0e\\ufe0f",ft=kt+He+qe+ut,Xt="['’]",wn="["+ln+"]",Sn="["+ft+"]",yn="["+Pt+"]",ye="\\d+",kn="["+Ft+"]",Vn="["+qt+"]",Hn="[^"+ln+ft+ye+Ft+qt+nt+"]",xn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+yn+"|"+xn+")",jn="[^"+ln+"]",Jr="(?:\\ud83c[\\udde6-\\uddff]){2}",rr="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="["+nt+"]",Xr="\\u200d",Zr="(?:"+Vn+"|"+Hn+")",Uo="(?:"+Pr+"|"+Hn+")",ni="(?:"+Xt+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+Xt+"(?:D|LL|M|RE|S|T|VE))?",oi=qn+"?",xF="["+rt+"]?",Ife="(?:"+Xr+"(?:"+[jn,Jr,rr].join("|")+")"+xF+oi+")*",Pfe="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Mfe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CF=xF+oi+Ife,Ofe="(?:"+[kn,Jr,rr].join("|")+")"+CF,Rfe="(?:"+[jn+yn+"?",yn,Jr,rr,wn].join("|")+")",Dfe=RegExp(Xt,"g"),Bfe=RegExp(yn,"g"),f4=RegExp(xn+"(?="+xn+")|"+Rfe+CF,"g"),$fe=RegExp([Pr+"?"+Vn+"+"+ni+"(?="+[Sn,Pr,"$"].join("|")+")",Uo+"+"+ri+"(?="+[Sn,Pr+Zr,"$"].join("|")+")",Pr+"?"+Zr+"+"+ni,Pr+"+"+ri,Mfe,Pfe,ye,Ofe].join("|"),"g"),Lfe=RegExp("["+Xr+ln+Pt+rt+"]"),Ffe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Nfe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ufe=-1,eo={};eo[S]=eo[P]=eo[V]=eo[K]=eo[ee]=eo[be]=eo[Me]=eo[we]=eo[Pe]=!0,eo[Ie]=eo[De]=eo[N]=eo[ce]=eo[k]=eo[de]=eo[he]=eo[pe]=eo[Ce]=eo[_e]=eo[Be]=eo[xe]=eo[je]=eo[We]=eo[te]=!1;var zr={};zr[Ie]=zr[De]=zr[N]=zr[k]=zr[ce]=zr[de]=zr[S]=zr[P]=zr[V]=zr[K]=zr[ee]=zr[Ce]=zr[_e]=zr[Be]=zr[xe]=zr[je]=zr[We]=zr[Ge]=zr[be]=zr[Me]=zr[we]=zr[Pe]=!0,zr[he]=zr[pe]=zr[te]=!1;var jfe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Wfe={"&":"&","<":"<",">":">",'"':""","'":"'"},zfe={"&":"&","<":"<",">":">",""":'"',"'":"'"},Vfe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hfe=parseFloat,qfe=parseInt,AF=typeof st=="object"&&st&&st.Object===Object&&st,Qfe=typeof self=="object"&&self&&self.Object===Object&&self,Ri=AF||Qfe||Function("return this")(),p4=t&&!t.nodeType&&t,qp=p4&&!0&&e&&!e.nodeType&&e,_F=qp&&qp.exports===p4,h4=_F&&AF.process,el=function(){try{var Oe=qp&&qp.require&&qp.require("util").types;return Oe||h4&&h4.binding&&h4.binding("util")}catch{}}(),EF=el&&el.isArrayBuffer,TF=el&&el.isDate,kF=el&&el.isMap,IF=el&&el.isRegExp,PF=el&&el.isSet,MF=el&&el.isTypedArray;function ms(Oe,Xe,Qe){switch(Qe.length){case 0:return Oe.call(Xe);case 1:return Oe.call(Xe,Qe[0]);case 2:return Oe.call(Xe,Qe[0],Qe[1]);case 3:return Oe.call(Xe,Qe[0],Qe[1],Qe[2])}return Oe.apply(Xe,Qe)}function Kfe(Oe,Xe,Qe,Nt){for(var Cn=-1,hr=Oe==null?0:Oe.length;++Cn-1}function g4(Oe,Xe,Qe){for(var Nt=-1,Cn=Oe==null?0:Oe.length;++Nt-1;);return Qe}function NF(Oe,Xe){for(var Qe=Oe.length;Qe--&&um(Xe,Oe[Qe],0)>-1;);return Qe}function rpe(Oe,Xe){for(var Qe=Oe.length,Nt=0;Qe--;)Oe[Qe]===Xe&&++Nt;return Nt}var ope=b4(jfe),ipe=b4(Wfe);function ape(Oe){return"\\"+Vfe[Oe]}function spe(Oe,Xe){return Oe==null?n:Oe[Xe]}function cm(Oe){return Lfe.test(Oe)}function lpe(Oe){return Ffe.test(Oe)}function upe(Oe){for(var Xe,Qe=[];!(Xe=Oe.next()).done;)Qe.push(Xe.value);return Qe}function C4(Oe){var Xe=-1,Qe=Array(Oe.size);return Oe.forEach(function(Nt,Cn){Qe[++Xe]=[Cn,Nt]}),Qe}function UF(Oe,Xe){return function(Qe){return Oe(Xe(Qe))}}function sf(Oe,Xe){for(var Qe=-1,Nt=Oe.length,Cn=0,hr=[];++Qe-1}function Gpe(d,h){var E=this.__data__,z=j2(E,d);return z<0?(++this.size,E.push([d,h])):E[z][1]=h,this}Fc.prototype.clear=qpe,Fc.prototype.delete=Qpe,Fc.prototype.get=Kpe,Fc.prototype.has=Ype,Fc.prototype.set=Gpe;function Nc(d){var h=-1,E=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function ol(d,h,E,z,X,se){var me,Te=h&f,$e=h&p,ot=h&g;if(E&&(me=X?E(d,z,X,se):E(d)),me!==n)return me;if(!xo(d))return d;var it=_n(d);if(it){if(me=ege(d),!Te)return Fa(d,me)}else{var ct=Xi(d),It=ct==pe||ct==ge;if(pf(d))return xN(d,Te);if(ct==Be||ct==Ie||It&&!X){if(me=$e||It?{}:jN(d),!Te)return $e?zhe(d,fhe(me,d)):Whe(d,XF(me,d))}else{if(!zr[ct])return X?d:{};me=tge(d,ct,Te)}}se||(se=new Ql);var Kt=se.get(d);if(Kt)return Kt;se.set(d,me),mU(d)?d.forEach(function(cn){me.add(ol(cn,h,E,cn,d,se))}):hU(d)&&d.forEach(function(cn,Wn){me.set(Wn,ol(cn,h,E,Wn,d,se))});var un=ot?$e?Y4:K4:$e?Ua:xi,Mn=it?n:un(d);return tl(Mn||d,function(cn,Wn){Mn&&(Wn=cn,cn=d[Wn]),Iv(me,Wn,ol(cn,h,E,Wn,d,se))}),me}function phe(d){var h=xi(d);return function(E){return ZF(E,d,h)}}function ZF(d,h,E){var z=E.length;if(d==null)return!z;for(d=Ur(d);z--;){var X=E[z],se=h[X],me=d[X];if(me===n&&!(X in d)||!se(me))return!1}return!0}function eN(d,h,E){if(typeof d!="function")throw new nl(a);return $v(function(){d.apply(n,E)},h)}function Pv(d,h,E,z){var X=-1,se=A2,me=!0,Te=d.length,$e=[],ot=h.length;if(!Te)return $e;E&&(h=fo(h,ys(E))),z?(se=g4,me=!1):h.length>=o&&(se=Cv,me=!1,h=new Yp(h));e:for(;++XX?0:X+E),z=z===n||z>X?X:In(z),z<0&&(z+=X),z=E>z?0:vU(z);E0&&E(Te)?h>1?Di(Te,h-1,E,z,X):af(X,Te):z||(X[X.length]=Te)}return X}var P4=kN(),rN=kN(!0);function Bu(d,h){return d&&P4(d,h,xi)}function M4(d,h){return d&&rN(d,h,xi)}function z2(d,h){return of(h,function(E){return Vc(d[E])})}function Jp(d,h){h=df(h,d);for(var E=0,z=h.length;d!=null&&Eh}function mhe(d,h){return d!=null&&Mr.call(d,h)}function yhe(d,h){return d!=null&&h in Ur(d)}function vhe(d,h,E){return d>=Ji(h,E)&&d=120&&it.length>=120)?new Yp(me&&it):n}it=d[0];var ct=-1,It=Te[0];e:for(;++ct-1;)Te!==d&&D2.call(Te,$e,1),D2.call(d,$e,1);return d}function hN(d,h){for(var E=d?h.length:0,z=E-1;E--;){var X=h[E];if(E==z||X!==se){var se=X;zc(X)?D2.call(d,X,1):j4(d,X)}}return d}function F4(d,h){return d+L2(KF()*(h-d+1))}function Mhe(d,h,E,z){for(var X=-1,se=ai($2((h-d)/(E||1)),0),me=Qe(se);se--;)me[z?se:++X]=d,d+=E;return me}function N4(d,h){var E="";if(!d||h<1||h>Y)return E;do h%2&&(E+=d),h=L2(h/2),h&&(d+=d);while(h);return E}function $n(d,h){return n3(VN(d,h,ja),d+"")}function Ohe(d){return JF(Sm(d))}function Rhe(d,h){var E=Sm(d);return ex(E,Gp(h,0,E.length))}function Rv(d,h,E,z){if(!xo(d))return d;h=df(h,d);for(var X=-1,se=h.length,me=se-1,Te=d;Te!=null&&++XX?0:X+h),E=E>X?X:E,E<0&&(E+=X),X=h>E?0:E-h>>>0,h>>>=0;for(var se=Qe(X);++z>>1,me=d[se];me!==null&&!bs(me)&&(E?me<=h:me=o){var ot=h?null:Qhe(d);if(ot)return E2(ot);me=!1,X=Cv,$e=new Yp}else $e=h?[]:Te;e:for(;++z=z?d:il(d,h,E)}var SN=Ape||function(d){return Ri.clearTimeout(d)};function xN(d,h){if(h)return d.slice();var E=d.length,z=zF?zF(E):new d.constructor(E);return d.copy(z),z}function H4(d){var h=new d.constructor(d.byteLength);return new O2(h).set(new O2(d)),h}function Fhe(d,h){var E=h?H4(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.byteLength)}function Nhe(d){var h=new d.constructor(d.source,$t.exec(d));return h.lastIndex=d.lastIndex,h}function Uhe(d){return kv?Ur(kv.call(d)):{}}function CN(d,h){var E=h?H4(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.length)}function AN(d,h){if(d!==h){var E=d!==n,z=d===null,X=d===d,se=bs(d),me=h!==n,Te=h===null,$e=h===h,ot=bs(h);if(!Te&&!ot&&!se&&d>h||se&&me&&$e&&!Te&&!ot||z&&me&&$e||!E&&$e||!X)return 1;if(!z&&!se&&!ot&&d=Te)return $e;var ot=E[z];return $e*(ot=="desc"?-1:1)}}return d.index-h.index}function _N(d,h,E,z){for(var X=-1,se=d.length,me=E.length,Te=-1,$e=h.length,ot=ai(se-me,0),it=Qe($e+ot),ct=!z;++Te<$e;)it[Te]=h[Te];for(;++X1?E[X-1]:n,me=X>2?E[2]:n;for(se=d.length>3&&typeof se=="function"?(X--,se):n,me&&Ca(E[0],E[1],me)&&(se=X<3?n:se,X=1),h=Ur(h);++z-1?X[se?h[me]:me]:n}}function MN(d){return Wc(function(h){var E=h.length,z=E,X=rl.prototype.thru;for(d&&h.reverse();z--;){var se=h[z];if(typeof se!="function")throw new nl(a);if(X&&!me&&X2(se)=="wrapper")var me=new rl([],!0)}for(z=me?z:E;++z1&&Gn.reverse(),it&&$eTe))return!1;var ot=se.get(d),it=se.get(h);if(ot&&it)return ot==h&&it==d;var ct=-1,It=!0,Kt=E&y?new Yp:n;for(se.set(d,h),se.set(h,d);++ct1?"& ":"")+h[z],h=h.join(E>2?", ":" "),d.replace(ne,`{ + */(function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,p=2,g=4,m=1,y=2,v=1,x=2,w=4,I=8,_=16,R=32,U=64,D=128,b=256,T=512,C=30,O="...",$=800,j=16,L=1,B=2,H=3,q=1/0,Y=9007199254740991,W=17976931348623157e292,ie=0/0,le=4294967295,fe=le-1,Ee=le>>>1,Ae=[["ary",D],["bind",v],["bindKey",x],["curry",I],["curryRight",_],["flip",T],["partial",R],["partialRight",U],["rearg",b]],Ie="[object Arguments]",De="[object Array]",Ue="[object AsyncFunction]",ce="[object Boolean]",de="[object Date]",ve="[object DOMException]",he="[object Error]",pe="[object Function]",ge="[object GeneratorFunction]",Ce="[object Map]",_e="[object Number]",Ne="[object Null]",Be="[object Object]",Ve="[object Promise]",wt="[object Proxy]",xe="[object RegExp]",je="[object Set]",We="[object String]",Ge="[object Symbol]",Fe="[object Undefined]",te="[object WeakMap]",Z="[object WeakSet]",N="[object ArrayBuffer]",k="[object DataView]",S="[object Float32Array]",P="[object Float64Array]",V="[object Int8Array]",K="[object Int16Array]",ee="[object Int32Array]",be="[object Uint8Array]",Me="[object Uint8ClampedArray]",we="[object Uint16Array]",Pe="[object Uint32Array]",Ye=/\b__p \+= '';/g,ze=/\b(__p \+=) '' \+/g,rn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qt=/&(?:amp|lt|gt|quot|#39);/g,Zt=/[&<>"']/g,An=RegExp(Qt.source),br=RegExp(Zt.source),wr=/<%-([\s\S]+?)%>/g,kr=/<%([\s\S]+?)%>/g,ti=/<%=([\s\S]+?)%>/g,Yi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Gi=/^\w*$/,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/[\\^$.*+?()[\]{}|]/g,Si=RegExp(nr.source),G=/^\s+/,re=/\s/,ne=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,F=/\{\n\/\* \[wrapped with (.+)\] \*/,ae=/,? & /,Re=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Le=/[()=,{}\[\]\/\s]/,et=/\\(\\)?/g,mt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$t=/\w*$/,Et=/^[-+]0x[0-9a-f]+$/i,Un=/^0b[01]+$/i,Ot=/^\[object .+?Constructor\]$/,an=/^0o[0-7]+$/i,Ct=/^(?:0|[1-9]\d*)$/,Jt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,hn=/($^)/,gn=/['\n\r\u2028\u2029\\]/g,ln="\\ud800-\\udfff",mn="\\u0300-\\u036f",Lt="\\ufe20-\\ufe2f",Gt="\\u20d0-\\u20ff",Pt=mn+Lt+Gt,Ft="\\u2700-\\u27bf",qt="a-z\\xdf-\\xf6\\xf8-\\xff",kt="\\xac\\xb1\\xd7\\xf7",He="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qe="\\u2000-\\u206f",ut=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nt="A-Z\\xc0-\\xd6\\xd8-\\xde",rt="\\ufe0e\\ufe0f",ft=kt+He+qe+ut,Xt="['’]",wn="["+ln+"]",Sn="["+ft+"]",yn="["+Pt+"]",ye="\\d+",kn="["+Ft+"]",Vn="["+qt+"]",Hn="[^"+ln+ft+ye+Ft+qt+nt+"]",xn="\\ud83c[\\udffb-\\udfff]",qn="(?:"+yn+"|"+xn+")",jn="[^"+ln+"]",Jr="(?:\\ud83c[\\udde6-\\uddff]){2}",rr="[\\ud800-\\udbff][\\udc00-\\udfff]",Pr="["+nt+"]",Xr="\\u200d",Zr="(?:"+Vn+"|"+Hn+")",Uo="(?:"+Pr+"|"+Hn+")",ni="(?:"+Xt+"(?:d|ll|m|re|s|t|ve))?",ri="(?:"+Xt+"(?:D|LL|M|RE|S|T|VE))?",oi=qn+"?",xF="["+rt+"]?",kfe="(?:"+Xr+"(?:"+[jn,Jr,rr].join("|")+")"+xF+oi+")*",Ife="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pfe="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CF=xF+oi+kfe,Mfe="(?:"+[kn,Jr,rr].join("|")+")"+CF,Ofe="(?:"+[jn+yn+"?",yn,Jr,rr,wn].join("|")+")",Rfe=RegExp(Xt,"g"),Dfe=RegExp(yn,"g"),p4=RegExp(xn+"(?="+xn+")|"+Ofe+CF,"g"),Bfe=RegExp([Pr+"?"+Vn+"+"+ni+"(?="+[Sn,Pr,"$"].join("|")+")",Uo+"+"+ri+"(?="+[Sn,Pr+Zr,"$"].join("|")+")",Pr+"?"+Zr+"+"+ni,Pr+"+"+ri,Pfe,Ife,ye,Mfe].join("|"),"g"),$fe=RegExp("["+Xr+ln+Pt+rt+"]"),Lfe=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ffe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Nfe=-1,eo={};eo[S]=eo[P]=eo[V]=eo[K]=eo[ee]=eo[be]=eo[Me]=eo[we]=eo[Pe]=!0,eo[Ie]=eo[De]=eo[N]=eo[ce]=eo[k]=eo[de]=eo[he]=eo[pe]=eo[Ce]=eo[_e]=eo[Be]=eo[xe]=eo[je]=eo[We]=eo[te]=!1;var zr={};zr[Ie]=zr[De]=zr[N]=zr[k]=zr[ce]=zr[de]=zr[S]=zr[P]=zr[V]=zr[K]=zr[ee]=zr[Ce]=zr[_e]=zr[Be]=zr[xe]=zr[je]=zr[We]=zr[Ge]=zr[be]=zr[Me]=zr[we]=zr[Pe]=!0,zr[he]=zr[pe]=zr[te]=!1;var Ufe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jfe={"&":"&","<":"<",">":">",'"':""","'":"'"},Wfe={"&":"&","<":"<",">":">",""":'"',"'":"'"},zfe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Vfe=parseFloat,Hfe=parseInt,AF=typeof st=="object"&&st&&st.Object===Object&&st,qfe=typeof self=="object"&&self&&self.Object===Object&&self,Ri=AF||qfe||Function("return this")(),h4=t&&!t.nodeType&&t,qp=h4&&!0&&e&&!e.nodeType&&e,_F=qp&&qp.exports===h4,g4=_F&&AF.process,el=function(){try{var Oe=qp&&qp.require&&qp.require("util").types;return Oe||g4&&g4.binding&&g4.binding("util")}catch{}}(),EF=el&&el.isArrayBuffer,TF=el&&el.isDate,kF=el&&el.isMap,IF=el&&el.isRegExp,PF=el&&el.isSet,MF=el&&el.isTypedArray;function ms(Oe,Xe,Qe){switch(Qe.length){case 0:return Oe.call(Xe);case 1:return Oe.call(Xe,Qe[0]);case 2:return Oe.call(Xe,Qe[0],Qe[1]);case 3:return Oe.call(Xe,Qe[0],Qe[1],Qe[2])}return Oe.apply(Xe,Qe)}function Qfe(Oe,Xe,Qe,Nt){for(var Cn=-1,hr=Oe==null?0:Oe.length;++Cn-1}function m4(Oe,Xe,Qe){for(var Nt=-1,Cn=Oe==null?0:Oe.length;++Nt-1;);return Qe}function NF(Oe,Xe){for(var Qe=Oe.length;Qe--&&um(Xe,Oe[Qe],0)>-1;);return Qe}function npe(Oe,Xe){for(var Qe=Oe.length,Nt=0;Qe--;)Oe[Qe]===Xe&&++Nt;return Nt}var rpe=w4(Ufe),ope=w4(jfe);function ipe(Oe){return"\\"+zfe[Oe]}function ape(Oe,Xe){return Oe==null?n:Oe[Xe]}function cm(Oe){return $fe.test(Oe)}function spe(Oe){return Lfe.test(Oe)}function lpe(Oe){for(var Xe,Qe=[];!(Xe=Oe.next()).done;)Qe.push(Xe.value);return Qe}function A4(Oe){var Xe=-1,Qe=Array(Oe.size);return Oe.forEach(function(Nt,Cn){Qe[++Xe]=[Cn,Nt]}),Qe}function UF(Oe,Xe){return function(Qe){return Oe(Xe(Qe))}}function sf(Oe,Xe){for(var Qe=-1,Nt=Oe.length,Cn=0,hr=[];++Qe-1}function Ype(d,h){var E=this.__data__,z=jx(E,d);return z<0?(++this.size,E.push([d,h])):E[z][1]=h,this}Fc.prototype.clear=Hpe,Fc.prototype.delete=qpe,Fc.prototype.get=Qpe,Fc.prototype.has=Kpe,Fc.prototype.set=Ype;function Nc(d){var h=-1,E=d==null?0:d.length;for(this.clear();++h=h?d:h)),d}function ol(d,h,E,z,X,se){var me,Te=h&f,$e=h&p,ot=h&g;if(E&&(me=X?E(d,z,X,se):E(d)),me!==n)return me;if(!xo(d))return d;var it=_n(d);if(it){if(me=Zhe(d),!Te)return Fa(d,me)}else{var ct=Xi(d),It=ct==pe||ct==ge;if(pf(d))return xN(d,Te);if(ct==Be||ct==Ie||It&&!X){if(me=$e||It?{}:jN(d),!Te)return $e?Whe(d,dhe(me,d)):jhe(d,XF(me,d))}else{if(!zr[ct])return X?d:{};me=ege(d,ct,Te)}}se||(se=new Ql);var Kt=se.get(d);if(Kt)return Kt;se.set(d,me),mU(d)?d.forEach(function(cn){me.add(ol(cn,h,E,cn,d,se))}):hU(d)&&d.forEach(function(cn,Wn){me.set(Wn,ol(cn,h,E,Wn,d,se))});var un=ot?$e?G4:Y4:$e?Ua:xi,Mn=it?n:un(d);return tl(Mn||d,function(cn,Wn){Mn&&(Wn=cn,cn=d[Wn]),Iv(me,Wn,ol(cn,h,E,Wn,d,se))}),me}function fhe(d){var h=xi(d);return function(E){return ZF(E,d,h)}}function ZF(d,h,E){var z=E.length;if(d==null)return!z;for(d=Ur(d);z--;){var X=E[z],se=h[X],me=d[X];if(me===n&&!(X in d)||!se(me))return!1}return!0}function eN(d,h,E){if(typeof d!="function")throw new nl(a);return $v(function(){d.apply(n,E)},h)}function Pv(d,h,E,z){var X=-1,se=Ax,me=!0,Te=d.length,$e=[],ot=h.length;if(!Te)return $e;E&&(h=fo(h,ys(E))),z?(se=m4,me=!1):h.length>=o&&(se=Cv,me=!1,h=new Yp(h));e:for(;++XX?0:X+E),z=z===n||z>X?X:In(z),z<0&&(z+=X),z=E>z?0:vU(z);E0&&E(Te)?h>1?Di(Te,h-1,E,z,X):af(X,Te):z||(X[X.length]=Te)}return X}var M4=kN(),rN=kN(!0);function $u(d,h){return d&&M4(d,h,xi)}function O4(d,h){return d&&rN(d,h,xi)}function zx(d,h){return of(h,function(E){return Vc(d[E])})}function Jp(d,h){h=df(h,d);for(var E=0,z=h.length;d!=null&&Eh}function ghe(d,h){return d!=null&&Mr.call(d,h)}function mhe(d,h){return d!=null&&h in Ur(d)}function yhe(d,h,E){return d>=Ji(h,E)&&d=120&&it.length>=120)?new Yp(me&&it):n}it=d[0];var ct=-1,It=Te[0];e:for(;++ct-1;)Te!==d&&Dx.call(Te,$e,1),Dx.call(d,$e,1);return d}function hN(d,h){for(var E=d?h.length:0,z=E-1;E--;){var X=h[E];if(E==z||X!==se){var se=X;zc(X)?Dx.call(d,X,1):W4(d,X)}}return d}function N4(d,h){return d+Lx(KF()*(h-d+1))}function Phe(d,h,E,z){for(var X=-1,se=ai($x((h-d)/(E||1)),0),me=Qe(se);se--;)me[z?se:++X]=d,d+=E;return me}function U4(d,h){var E="";if(!d||h<1||h>Y)return E;do h%2&&(E+=d),h=Lx(h/2),h&&(d+=d);while(h);return E}function $n(d,h){return r3(VN(d,h,ja),d+"")}function Mhe(d){return JF(Sm(d))}function Ohe(d,h){var E=Sm(d);return e2(E,Gp(h,0,E.length))}function Rv(d,h,E,z){if(!xo(d))return d;h=df(h,d);for(var X=-1,se=h.length,me=se-1,Te=d;Te!=null&&++XX?0:X+h),E=E>X?X:E,E<0&&(E+=X),X=h>E?0:E-h>>>0,h>>>=0;for(var se=Qe(X);++z>>1,me=d[se];me!==null&&!bs(me)&&(E?me<=h:me=o){var ot=h?null:qhe(d);if(ot)return Ex(ot);me=!1,X=Cv,$e=new Yp}else $e=h?[]:Te;e:for(;++z=z?d:il(d,h,E)}var SN=Cpe||function(d){return Ri.clearTimeout(d)};function xN(d,h){if(h)return d.slice();var E=d.length,z=zF?zF(E):new d.constructor(E);return d.copy(z),z}function q4(d){var h=new d.constructor(d.byteLength);return new Ox(h).set(new Ox(d)),h}function Lhe(d,h){var E=h?q4(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.byteLength)}function Fhe(d){var h=new d.constructor(d.source,$t.exec(d));return h.lastIndex=d.lastIndex,h}function Nhe(d){return kv?Ur(kv.call(d)):{}}function CN(d,h){var E=h?q4(d.buffer):d.buffer;return new d.constructor(E,d.byteOffset,d.length)}function AN(d,h){if(d!==h){var E=d!==n,z=d===null,X=d===d,se=bs(d),me=h!==n,Te=h===null,$e=h===h,ot=bs(h);if(!Te&&!ot&&!se&&d>h||se&&me&&$e&&!Te&&!ot||z&&me&&$e||!E&&$e||!X)return 1;if(!z&&!se&&!ot&&d=Te)return $e;var ot=E[z];return $e*(ot=="desc"?-1:1)}}return d.index-h.index}function _N(d,h,E,z){for(var X=-1,se=d.length,me=E.length,Te=-1,$e=h.length,ot=ai(se-me,0),it=Qe($e+ot),ct=!z;++Te<$e;)it[Te]=h[Te];for(;++X1?E[X-1]:n,me=X>2?E[2]:n;for(se=d.length>3&&typeof se=="function"?(X--,se):n,me&&Ca(E[0],E[1],me)&&(se=X<3?n:se,X=1),h=Ur(h);++z-1?X[se?h[me]:me]:n}}function MN(d){return Wc(function(h){var E=h.length,z=E,X=rl.prototype.thru;for(d&&h.reverse();z--;){var se=h[z];if(typeof se!="function")throw new nl(a);if(X&&!me&&Xx(se)=="wrapper")var me=new rl([],!0)}for(z=me?z:E;++z1&&Gn.reverse(),it&&$eTe))return!1;var ot=se.get(d),it=se.get(h);if(ot&&it)return ot==h&&it==d;var ct=-1,It=!0,Kt=E&y?new Yp:n;for(se.set(d,h),se.set(h,d);++ct1?"& ":"")+h[z],h=h.join(E>2?", ":" "),d.replace(ne,`{ /* [wrapped with `+h+`] */ -`)}function rge(d){return _n(d)||eh(d)||!!(qF&&d&&d[qF])}function zc(d,h){var E=typeof d;return h=h??Y,!!h&&(E=="number"||E!="symbol"&&Ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=$)return arguments[0]}else h=0;return d.apply(n,arguments)}}function ex(d,h){var E=-1,z=d.length,X=z-1;for(h=h===n?z:h;++E1?d[h-1]:n;return E=typeof E=="function"?(d.pop(),E):n,nU(d,E)});function rU(d){var h=oe(d);return h.__chain__=!0,h}function hme(d,h){return h(d),d}function tx(d,h){return h(d)}var gme=Wc(function(d){var h=d.length,E=h?d[0]:0,z=this.__wrapped__,X=function(se){return I4(se,d)};return h>1||this.__actions__.length||!(z instanceof Qn)||!zc(E)?this.thru(X):(z=z.slice(E,+E+(h?1:0)),z.__actions__.push({func:tx,args:[X],thisArg:n}),new rl(z,this.__chain__).thru(function(se){return h&&!se.length&&se.push(n),se}))});function mme(){return rU(this)}function yme(){return new rl(this.value(),this.__chain__)}function vme(){this.__values__===n&&(this.__values__=yU(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function bme(){return this}function wme(d){for(var h,E=this;E instanceof U2;){var z=GN(E);z.__index__=0,z.__values__=n,h?X.__wrapped__=z:h=z;var X=z;E=E.__wrapped__}return X.__wrapped__=d,h}function Sme(){var d=this.__wrapped__;if(d instanceof Qn){var h=d;return this.__actions__.length&&(h=new Qn(this)),h=h.reverse(),h.__actions__.push({func:tx,args:[r3],thisArg:n}),new rl(h,this.__chain__)}return this.thru(r3)}function xme(){return bN(this.__wrapped__,this.__actions__)}var Cme=Q2(function(d,h,E){Mr.call(d,E)?++d[E]:Uc(d,E,1)});function Ame(d,h,E){var z=_n(d)?OF:hhe;return E&&Ca(d,h,E)&&(h=n),z(d,sn(h,3))}function _me(d,h){var E=_n(d)?of:nN;return E(d,sn(h,3))}var Eme=PN(JN),Tme=PN(XN);function kme(d,h){return Di(nx(d,h),1)}function Ime(d,h){return Di(nx(d,h),q)}function Pme(d,h,E){return E=E===n?1:In(E),Di(nx(d,h),E)}function oU(d,h){var E=_n(d)?tl:uf;return E(d,sn(h,3))}function iU(d,h){var E=_n(d)?Yfe:tN;return E(d,sn(h,3))}var Mme=Q2(function(d,h,E){Mr.call(d,E)?d[E].push(h):Uc(d,E,[h])});function Ome(d,h,E,z){d=Na(d)?d:Sm(d),E=E&&!z?In(E):0;var X=d.length;return E<0&&(E=ai(X+E,0)),sx(d)?E<=X&&d.indexOf(h,E)>-1:!!X&&um(d,h,E)>-1}var Rme=$n(function(d,h,E){var z=-1,X=typeof h=="function",se=Na(d)?Qe(d.length):[];return uf(d,function(me){se[++z]=X?ms(h,me,E):Mv(me,h,E)}),se}),Dme=Q2(function(d,h,E){Uc(d,E,h)});function nx(d,h){var E=_n(d)?fo:lN;return E(d,sn(h,3))}function Bme(d,h,E,z){return d==null?[]:(_n(h)||(h=h==null?[]:[h]),E=z?n:E,_n(E)||(E=E==null?[]:[E]),fN(d,h,E))}var $me=Q2(function(d,h,E){d[E?0:1].push(h)},function(){return[[],[]]});function Lme(d,h,E){var z=_n(d)?m4:$F,X=arguments.length<3;return z(d,sn(h,4),E,X,uf)}function Fme(d,h,E){var z=_n(d)?Gfe:$F,X=arguments.length<3;return z(d,sn(h,4),E,X,tN)}function Nme(d,h){var E=_n(d)?of:nN;return E(d,ix(sn(h,3)))}function Ume(d){var h=_n(d)?JF:Ohe;return h(d)}function jme(d,h,E){(E?Ca(d,h,E):h===n)?h=1:h=In(h);var z=_n(d)?uhe:Rhe;return z(d,h)}function Wme(d){var h=_n(d)?che:Bhe;return h(d)}function zme(d){if(d==null)return 0;if(Na(d))return sx(d)?dm(d):d.length;var h=Xi(d);return h==Ce||h==je?d.size:B4(d).length}function Vme(d,h,E){var z=_n(d)?y4:$he;return E&&Ca(d,h,E)&&(h=n),z(d,sn(h,3))}var Hme=$n(function(d,h){if(d==null)return[];var E=h.length;return E>1&&Ca(d,h[0],h[1])?h=[]:E>2&&Ca(h[0],h[1],h[2])&&(h=[h[0]]),fN(d,Di(h,1),[])}),rx=_pe||function(){return Ri.Date.now()};function qme(d,h){if(typeof h!="function")throw new nl(a);return d=In(d),function(){if(--d<1)return h.apply(this,arguments)}}function aU(d,h,E){return h=E?n:h,h=d&&h==null?d.length:h,jc(d,D,n,n,n,n,h)}function sU(d,h){var E;if(typeof h!="function")throw new nl(a);return d=In(d),function(){return--d>0&&(E=h.apply(this,arguments)),d<=1&&(h=n),E}}var i3=$n(function(d,h,E){var z=v;if(E.length){var X=sf(E,bm(i3));z|=R}return jc(d,z,h,E,X)}),lU=$n(function(d,h,E){var z=v|x;if(E.length){var X=sf(E,bm(lU));z|=R}return jc(h,z,d,E,X)});function uU(d,h,E){h=E?n:h;var z=jc(d,I,n,n,n,n,n,h);return z.placeholder=uU.placeholder,z}function cU(d,h,E){h=E?n:h;var z=jc(d,_,n,n,n,n,n,h);return z.placeholder=cU.placeholder,z}function dU(d,h,E){var z,X,se,me,Te,$e,ot=0,it=!1,ct=!1,It=!0;if(typeof d!="function")throw new nl(a);h=sl(h)||0,xo(E)&&(it=!!E.leading,ct="maxWait"in E,se=ct?ai(sl(E.maxWait)||0,h):se,It="trailing"in E?!!E.trailing:It);function Kt(Wo){var Yl=z,qc=X;return z=X=n,ot=Wo,me=d.apply(qc,Yl),me}function un(Wo){return ot=Wo,Te=$v(Wn,h),it?Kt(Wo):me}function Mn(Wo){var Yl=Wo-$e,qc=Wo-ot,PU=h-Yl;return ct?Ji(PU,se-qc):PU}function cn(Wo){var Yl=Wo-$e,qc=Wo-ot;return $e===n||Yl>=h||Yl<0||ct&&qc>=se}function Wn(){var Wo=rx();if(cn(Wo))return Gn(Wo);Te=$v(Wn,Mn(Wo))}function Gn(Wo){return Te=n,It&&z?Kt(Wo):(z=X=n,me)}function ws(){Te!==n&&SN(Te),ot=0,z=$e=X=Te=n}function Aa(){return Te===n?me:Gn(rx())}function Ss(){var Wo=rx(),Yl=cn(Wo);if(z=arguments,X=this,$e=Wo,Yl){if(Te===n)return un($e);if(ct)return SN(Te),Te=$v(Wn,h),Kt($e)}return Te===n&&(Te=$v(Wn,h)),me}return Ss.cancel=ws,Ss.flush=Aa,Ss}var Qme=$n(function(d,h){return eN(d,1,h)}),Kme=$n(function(d,h,E){return eN(d,sl(h)||0,E)});function Yme(d){return jc(d,T)}function ox(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new nl(a);var E=function(){var z=arguments,X=h?h.apply(this,z):z[0],se=E.cache;if(se.has(X))return se.get(X);var me=d.apply(this,z);return E.cache=se.set(X,me)||se,me};return E.cache=new(ox.Cache||Nc),E}ox.Cache=Nc;function ix(d){if(typeof d!="function")throw new nl(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function Gme(d){return sU(2,d)}var Jme=Lhe(function(d,h){h=h.length==1&&_n(h[0])?fo(h[0],ys(sn())):fo(Di(h,1),ys(sn()));var E=h.length;return $n(function(z){for(var X=-1,se=Ji(z.length,E);++X=h}),eh=iN(function(){return arguments}())?iN:function(d){return Mo(d)&&Mr.call(d,"callee")&&!HF.call(d,"callee")},_n=Qe.isArray,f0e=EF?ys(EF):whe;function Na(d){return d!=null&&ax(d.length)&&!Vc(d)}function jo(d){return Mo(d)&&Na(d)}function p0e(d){return d===!0||d===!1||Mo(d)&&xa(d)==ce}var pf=Tpe||y3,h0e=TF?ys(TF):She;function g0e(d){return Mo(d)&&d.nodeType===1&&!Lv(d)}function m0e(d){if(d==null)return!0;if(Na(d)&&(_n(d)||typeof d=="string"||typeof d.splice=="function"||pf(d)||wm(d)||eh(d)))return!d.length;var h=Xi(d);if(h==Ce||h==je)return!d.size;if(Bv(d))return!B4(d).length;for(var E in d)if(Mr.call(d,E))return!1;return!0}function y0e(d,h){return Ov(d,h)}function v0e(d,h,E){E=typeof E=="function"?E:n;var z=E?E(d,h):n;return z===n?Ov(d,h,n,E):!!z}function s3(d){if(!Mo(d))return!1;var h=xa(d);return h==he||h==ve||typeof d.message=="string"&&typeof d.name=="string"&&!Lv(d)}function b0e(d){return typeof d=="number"&&QF(d)}function Vc(d){if(!xo(d))return!1;var h=xa(d);return h==pe||h==ge||h==Ue||h==wt}function pU(d){return typeof d=="number"&&d==In(d)}function ax(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=Y}function xo(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Mo(d){return d!=null&&typeof d=="object"}var hU=kF?ys(kF):Che;function w0e(d,h){return d===h||D4(d,h,J4(h))}function S0e(d,h,E){return E=typeof E=="function"?E:n,D4(d,h,J4(h),E)}function x0e(d){return gU(d)&&d!=+d}function C0e(d){if(age(d))throw new Cn(i);return aN(d)}function A0e(d){return d===null}function _0e(d){return d==null}function gU(d){return typeof d=="number"||Mo(d)&&xa(d)==_e}function Lv(d){if(!Mo(d)||xa(d)!=Be)return!1;var h=R2(d);if(h===null)return!0;var E=Mr.call(h,"constructor")&&h.constructor;return typeof E=="function"&&E instanceof E&&I2.call(E)==Spe}var l3=IF?ys(IF):Ahe;function E0e(d){return pU(d)&&d>=-Y&&d<=Y}var mU=PF?ys(PF):_he;function sx(d){return typeof d=="string"||!_n(d)&&Mo(d)&&xa(d)==We}function bs(d){return typeof d=="symbol"||Mo(d)&&xa(d)==Ge}var wm=MF?ys(MF):Ehe;function T0e(d){return d===n}function k0e(d){return Mo(d)&&Xi(d)==te}function I0e(d){return Mo(d)&&xa(d)==Z}var P0e=J2($4),M0e=J2(function(d,h){return d<=h});function yU(d){if(!d)return[];if(Na(d))return sx(d)?ql(d):Fa(d);if(Av&&d[Av])return upe(d[Av]());var h=Xi(d),E=h==Ce?C4:h==je?E2:Sm;return E(d)}function Hc(d){if(!d)return d===0?d:0;if(d=sl(d),d===q||d===-q){var h=d<0?-1:1;return h*W}return d===d?d:0}function In(d){var h=Hc(d),E=h%1;return h===h?E?h-E:h:0}function vU(d){return d?Gp(In(d),0,le):0}function sl(d){if(typeof d=="number")return d;if(bs(d))return ie;if(xo(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=xo(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=LF(d);var E=Un.test(d);return E||an.test(d)?qfe(d.slice(2),E?2:8):Et.test(d)?ie:+d}function bU(d){return $u(d,Ua(d))}function O0e(d){return d?Gp(In(d),-Y,Y):d===0?d:0}function Sr(d){return d==null?"":vs(d)}var R0e=ym(function(d,h){if(Bv(h)||Na(h)){$u(h,xi(h),d);return}for(var E in h)Mr.call(h,E)&&Iv(d,E,h[E])}),wU=ym(function(d,h){$u(h,Ua(h),d)}),lx=ym(function(d,h,E,z){$u(h,Ua(h),d,z)}),D0e=ym(function(d,h,E,z){$u(h,xi(h),d,z)}),B0e=Wc(I4);function $0e(d,h){var E=mm(d);return h==null?E:XF(E,h)}var L0e=$n(function(d,h){d=Ur(d);var E=-1,z=h.length,X=z>2?h[2]:n;for(X&&Ca(h[0],h[1],X)&&(z=1);++E1),se}),$u(d,Y4(d),E),z&&(E=ol(E,f|p|g,Khe));for(var X=h.length;X--;)j4(E,h[X]);return E});function tye(d,h){return xU(d,ix(sn(h)))}var nye=Wc(function(d,h){return d==null?{}:Ihe(d,h)});function xU(d,h){if(d==null)return{};var E=fo(Y4(d),function(z){return[z]});return h=sn(h),pN(d,E,function(z,X){return h(z,X[0])})}function rye(d,h,E){h=df(h,d);var z=-1,X=h.length;for(X||(X=1,d=n);++zh){var z=d;d=h,h=z}if(E||d%1||h%1){var X=KF();return Ji(d+X*(h-d+Hfe("1e-"+((X+"").length-1))),h)}return F4(d,h)}var hye=vm(function(d,h,E){return h=h.toLowerCase(),d+(E?_U(h):h)});function _U(d){return d3(Sr(d).toLowerCase())}function EU(d){return d=Sr(d),d&&d.replace(Jt,ope).replace(Bfe,"")}function gye(d,h,E){d=Sr(d),h=vs(h);var z=d.length;E=E===n?z:Gp(In(E),0,z);var X=E;return E-=h.length,E>=0&&d.slice(E,X)==h}function mye(d){return d=Sr(d),d&&br.test(d)?d.replace(Zt,ipe):d}function yye(d){return d=Sr(d),d&&Si.test(d)?d.replace(nr,"\\$&"):d}var vye=vm(function(d,h,E){return d+(E?"-":"")+h.toLowerCase()}),bye=vm(function(d,h,E){return d+(E?" ":"")+h.toLowerCase()}),wye=IN("toLowerCase");function Sye(d,h,E){d=Sr(d),h=In(h);var z=h?dm(d):0;if(!h||z>=h)return d;var X=(h-z)/2;return G2(L2(X),E)+d+G2($2(X),E)}function xye(d,h,E){d=Sr(d),h=In(h);var z=h?dm(d):0;return h&&z>>0,E?(d=Sr(d),d&&(typeof h=="string"||h!=null&&!l3(h))&&(h=vs(h),!h&&cm(d))?ff(ql(d),0,E):d.split(h,E)):[]}var Iye=vm(function(d,h,E){return d+(E?" ":"")+d3(h)});function Pye(d,h,E){return d=Sr(d),E=E==null?0:Gp(In(E),0,d.length),h=vs(h),d.slice(E,E+h.length)==h}function Mye(d,h,E){var z=oe.templateSettings;E&&Ca(d,h,E)&&(h=n),d=Sr(d),h=lx({},h,z,$N);var X=lx({},h.imports,z.imports,$N),se=xi(X),me=x4(X,se),Te,$e,ot=0,it=h.interpolate||hn,ct="__p += '",It=A4((h.escape||hn).source+"|"+it.source+"|"+(it===ti?mt:hn).source+"|"+(h.evaluate||hn).source+"|$","g"),Kt="//# sourceURL="+(Mr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Ufe+"]")+` -`;d.replace(It,function(cn,Wn,Gn,ws,Aa,Ss){return Gn||(Gn=ws),ct+=d.slice(ot,Ss).replace(gn,ape),Wn&&(Te=!0,ct+=`' + +`)}function nge(d){return _n(d)||eh(d)||!!(qF&&d&&d[qF])}function zc(d,h){var E=typeof d;return h=h??Y,!!h&&(E=="number"||E!="symbol"&&Ct.test(d))&&d>-1&&d%1==0&&d0){if(++h>=$)return arguments[0]}else h=0;return d.apply(n,arguments)}}function e2(d,h){var E=-1,z=d.length,X=z-1;for(h=h===n?z:h;++E1?d[h-1]:n;return E=typeof E=="function"?(d.pop(),E):n,nU(d,E)});function rU(d){var h=oe(d);return h.__chain__=!0,h}function pme(d,h){return h(d),d}function t2(d,h){return h(d)}var hme=Wc(function(d){var h=d.length,E=h?d[0]:0,z=this.__wrapped__,X=function(se){return P4(se,d)};return h>1||this.__actions__.length||!(z instanceof Qn)||!zc(E)?this.thru(X):(z=z.slice(E,+E+(h?1:0)),z.__actions__.push({func:t2,args:[X],thisArg:n}),new rl(z,this.__chain__).thru(function(se){return h&&!se.length&&se.push(n),se}))});function gme(){return rU(this)}function mme(){return new rl(this.value(),this.__chain__)}function yme(){this.__values__===n&&(this.__values__=yU(this.value()));var d=this.__index__>=this.__values__.length,h=d?n:this.__values__[this.__index__++];return{done:d,value:h}}function vme(){return this}function bme(d){for(var h,E=this;E instanceof Ux;){var z=GN(E);z.__index__=0,z.__values__=n,h?X.__wrapped__=z:h=z;var X=z;E=E.__wrapped__}return X.__wrapped__=d,h}function wme(){var d=this.__wrapped__;if(d instanceof Qn){var h=d;return this.__actions__.length&&(h=new Qn(this)),h=h.reverse(),h.__actions__.push({func:t2,args:[o3],thisArg:n}),new rl(h,this.__chain__)}return this.thru(o3)}function Sme(){return bN(this.__wrapped__,this.__actions__)}var xme=Qx(function(d,h,E){Mr.call(d,E)?++d[E]:Uc(d,E,1)});function Cme(d,h,E){var z=_n(d)?OF:phe;return E&&Ca(d,h,E)&&(h=n),z(d,sn(h,3))}function Ame(d,h){var E=_n(d)?of:nN;return E(d,sn(h,3))}var _me=PN(JN),Eme=PN(XN);function Tme(d,h){return Di(n2(d,h),1)}function kme(d,h){return Di(n2(d,h),q)}function Ime(d,h,E){return E=E===n?1:In(E),Di(n2(d,h),E)}function oU(d,h){var E=_n(d)?tl:uf;return E(d,sn(h,3))}function iU(d,h){var E=_n(d)?Kfe:tN;return E(d,sn(h,3))}var Pme=Qx(function(d,h,E){Mr.call(d,E)?d[E].push(h):Uc(d,E,[h])});function Mme(d,h,E,z){d=Na(d)?d:Sm(d),E=E&&!z?In(E):0;var X=d.length;return E<0&&(E=ai(X+E,0)),s2(d)?E<=X&&d.indexOf(h,E)>-1:!!X&&um(d,h,E)>-1}var Ome=$n(function(d,h,E){var z=-1,X=typeof h=="function",se=Na(d)?Qe(d.length):[];return uf(d,function(me){se[++z]=X?ms(h,me,E):Mv(me,h,E)}),se}),Rme=Qx(function(d,h,E){Uc(d,E,h)});function n2(d,h){var E=_n(d)?fo:lN;return E(d,sn(h,3))}function Dme(d,h,E,z){return d==null?[]:(_n(h)||(h=h==null?[]:[h]),E=z?n:E,_n(E)||(E=E==null?[]:[E]),fN(d,h,E))}var Bme=Qx(function(d,h,E){d[E?0:1].push(h)},function(){return[[],[]]});function $me(d,h,E){var z=_n(d)?y4:$F,X=arguments.length<3;return z(d,sn(h,4),E,X,uf)}function Lme(d,h,E){var z=_n(d)?Yfe:$F,X=arguments.length<3;return z(d,sn(h,4),E,X,tN)}function Fme(d,h){var E=_n(d)?of:nN;return E(d,i2(sn(h,3)))}function Nme(d){var h=_n(d)?JF:Mhe;return h(d)}function Ume(d,h,E){(E?Ca(d,h,E):h===n)?h=1:h=In(h);var z=_n(d)?lhe:Ohe;return z(d,h)}function jme(d){var h=_n(d)?uhe:Dhe;return h(d)}function Wme(d){if(d==null)return 0;if(Na(d))return s2(d)?dm(d):d.length;var h=Xi(d);return h==Ce||h==je?d.size:$4(d).length}function zme(d,h,E){var z=_n(d)?v4:Bhe;return E&&Ca(d,h,E)&&(h=n),z(d,sn(h,3))}var Vme=$n(function(d,h){if(d==null)return[];var E=h.length;return E>1&&Ca(d,h[0],h[1])?h=[]:E>2&&Ca(h[0],h[1],h[2])&&(h=[h[0]]),fN(d,Di(h,1),[])}),r2=Ape||function(){return Ri.Date.now()};function Hme(d,h){if(typeof h!="function")throw new nl(a);return d=In(d),function(){if(--d<1)return h.apply(this,arguments)}}function aU(d,h,E){return h=E?n:h,h=d&&h==null?d.length:h,jc(d,D,n,n,n,n,h)}function sU(d,h){var E;if(typeof h!="function")throw new nl(a);return d=In(d),function(){return--d>0&&(E=h.apply(this,arguments)),d<=1&&(h=n),E}}var a3=$n(function(d,h,E){var z=v;if(E.length){var X=sf(E,bm(a3));z|=R}return jc(d,z,h,E,X)}),lU=$n(function(d,h,E){var z=v|x;if(E.length){var X=sf(E,bm(lU));z|=R}return jc(h,z,d,E,X)});function uU(d,h,E){h=E?n:h;var z=jc(d,I,n,n,n,n,n,h);return z.placeholder=uU.placeholder,z}function cU(d,h,E){h=E?n:h;var z=jc(d,_,n,n,n,n,n,h);return z.placeholder=cU.placeholder,z}function dU(d,h,E){var z,X,se,me,Te,$e,ot=0,it=!1,ct=!1,It=!0;if(typeof d!="function")throw new nl(a);h=sl(h)||0,xo(E)&&(it=!!E.leading,ct="maxWait"in E,se=ct?ai(sl(E.maxWait)||0,h):se,It="trailing"in E?!!E.trailing:It);function Kt(Wo){var Yl=z,qc=X;return z=X=n,ot=Wo,me=d.apply(qc,Yl),me}function un(Wo){return ot=Wo,Te=$v(Wn,h),it?Kt(Wo):me}function Mn(Wo){var Yl=Wo-$e,qc=Wo-ot,PU=h-Yl;return ct?Ji(PU,se-qc):PU}function cn(Wo){var Yl=Wo-$e,qc=Wo-ot;return $e===n||Yl>=h||Yl<0||ct&&qc>=se}function Wn(){var Wo=r2();if(cn(Wo))return Gn(Wo);Te=$v(Wn,Mn(Wo))}function Gn(Wo){return Te=n,It&&z?Kt(Wo):(z=X=n,me)}function ws(){Te!==n&&SN(Te),ot=0,z=$e=X=Te=n}function Aa(){return Te===n?me:Gn(r2())}function Ss(){var Wo=r2(),Yl=cn(Wo);if(z=arguments,X=this,$e=Wo,Yl){if(Te===n)return un($e);if(ct)return SN(Te),Te=$v(Wn,h),Kt($e)}return Te===n&&(Te=$v(Wn,h)),me}return Ss.cancel=ws,Ss.flush=Aa,Ss}var qme=$n(function(d,h){return eN(d,1,h)}),Qme=$n(function(d,h,E){return eN(d,sl(h)||0,E)});function Kme(d){return jc(d,T)}function o2(d,h){if(typeof d!="function"||h!=null&&typeof h!="function")throw new nl(a);var E=function(){var z=arguments,X=h?h.apply(this,z):z[0],se=E.cache;if(se.has(X))return se.get(X);var me=d.apply(this,z);return E.cache=se.set(X,me)||se,me};return E.cache=new(o2.Cache||Nc),E}o2.Cache=Nc;function i2(d){if(typeof d!="function")throw new nl(a);return function(){var h=arguments;switch(h.length){case 0:return!d.call(this);case 1:return!d.call(this,h[0]);case 2:return!d.call(this,h[0],h[1]);case 3:return!d.call(this,h[0],h[1],h[2])}return!d.apply(this,h)}}function Yme(d){return sU(2,d)}var Gme=$he(function(d,h){h=h.length==1&&_n(h[0])?fo(h[0],ys(sn())):fo(Di(h,1),ys(sn()));var E=h.length;return $n(function(z){for(var X=-1,se=Ji(z.length,E);++X=h}),eh=iN(function(){return arguments}())?iN:function(d){return Mo(d)&&Mr.call(d,"callee")&&!HF.call(d,"callee")},_n=Qe.isArray,d0e=EF?ys(EF):bhe;function Na(d){return d!=null&&a2(d.length)&&!Vc(d)}function jo(d){return Mo(d)&&Na(d)}function f0e(d){return d===!0||d===!1||Mo(d)&&xa(d)==ce}var pf=Epe||v3,p0e=TF?ys(TF):whe;function h0e(d){return Mo(d)&&d.nodeType===1&&!Lv(d)}function g0e(d){if(d==null)return!0;if(Na(d)&&(_n(d)||typeof d=="string"||typeof d.splice=="function"||pf(d)||wm(d)||eh(d)))return!d.length;var h=Xi(d);if(h==Ce||h==je)return!d.size;if(Bv(d))return!$4(d).length;for(var E in d)if(Mr.call(d,E))return!1;return!0}function m0e(d,h){return Ov(d,h)}function y0e(d,h,E){E=typeof E=="function"?E:n;var z=E?E(d,h):n;return z===n?Ov(d,h,n,E):!!z}function l3(d){if(!Mo(d))return!1;var h=xa(d);return h==he||h==ve||typeof d.message=="string"&&typeof d.name=="string"&&!Lv(d)}function v0e(d){return typeof d=="number"&&QF(d)}function Vc(d){if(!xo(d))return!1;var h=xa(d);return h==pe||h==ge||h==Ue||h==wt}function pU(d){return typeof d=="number"&&d==In(d)}function a2(d){return typeof d=="number"&&d>-1&&d%1==0&&d<=Y}function xo(d){var h=typeof d;return d!=null&&(h=="object"||h=="function")}function Mo(d){return d!=null&&typeof d=="object"}var hU=kF?ys(kF):xhe;function b0e(d,h){return d===h||B4(d,h,X4(h))}function w0e(d,h,E){return E=typeof E=="function"?E:n,B4(d,h,X4(h),E)}function S0e(d){return gU(d)&&d!=+d}function x0e(d){if(ige(d))throw new Cn(i);return aN(d)}function C0e(d){return d===null}function A0e(d){return d==null}function gU(d){return typeof d=="number"||Mo(d)&&xa(d)==_e}function Lv(d){if(!Mo(d)||xa(d)!=Be)return!1;var h=Rx(d);if(h===null)return!0;var E=Mr.call(h,"constructor")&&h.constructor;return typeof E=="function"&&E instanceof E&&Ix.call(E)==wpe}var u3=IF?ys(IF):Che;function _0e(d){return pU(d)&&d>=-Y&&d<=Y}var mU=PF?ys(PF):Ahe;function s2(d){return typeof d=="string"||!_n(d)&&Mo(d)&&xa(d)==We}function bs(d){return typeof d=="symbol"||Mo(d)&&xa(d)==Ge}var wm=MF?ys(MF):_he;function E0e(d){return d===n}function T0e(d){return Mo(d)&&Xi(d)==te}function k0e(d){return Mo(d)&&xa(d)==Z}var I0e=Jx(L4),P0e=Jx(function(d,h){return d<=h});function yU(d){if(!d)return[];if(Na(d))return s2(d)?ql(d):Fa(d);if(Av&&d[Av])return lpe(d[Av]());var h=Xi(d),E=h==Ce?A4:h==je?Ex:Sm;return E(d)}function Hc(d){if(!d)return d===0?d:0;if(d=sl(d),d===q||d===-q){var h=d<0?-1:1;return h*W}return d===d?d:0}function In(d){var h=Hc(d),E=h%1;return h===h?E?h-E:h:0}function vU(d){return d?Gp(In(d),0,le):0}function sl(d){if(typeof d=="number")return d;if(bs(d))return ie;if(xo(d)){var h=typeof d.valueOf=="function"?d.valueOf():d;d=xo(h)?h+"":h}if(typeof d!="string")return d===0?d:+d;d=LF(d);var E=Un.test(d);return E||an.test(d)?Hfe(d.slice(2),E?2:8):Et.test(d)?ie:+d}function bU(d){return Lu(d,Ua(d))}function M0e(d){return d?Gp(In(d),-Y,Y):d===0?d:0}function Sr(d){return d==null?"":vs(d)}var O0e=ym(function(d,h){if(Bv(h)||Na(h)){Lu(h,xi(h),d);return}for(var E in h)Mr.call(h,E)&&Iv(d,E,h[E])}),wU=ym(function(d,h){Lu(h,Ua(h),d)}),l2=ym(function(d,h,E,z){Lu(h,Ua(h),d,z)}),R0e=ym(function(d,h,E,z){Lu(h,xi(h),d,z)}),D0e=Wc(P4);function B0e(d,h){var E=mm(d);return h==null?E:XF(E,h)}var $0e=$n(function(d,h){d=Ur(d);var E=-1,z=h.length,X=z>2?h[2]:n;for(X&&Ca(h[0],h[1],X)&&(z=1);++E1),se}),Lu(d,G4(d),E),z&&(E=ol(E,f|p|g,Qhe));for(var X=h.length;X--;)W4(E,h[X]);return E});function eye(d,h){return xU(d,i2(sn(h)))}var tye=Wc(function(d,h){return d==null?{}:khe(d,h)});function xU(d,h){if(d==null)return{};var E=fo(G4(d),function(z){return[z]});return h=sn(h),pN(d,E,function(z,X){return h(z,X[0])})}function nye(d,h,E){h=df(h,d);var z=-1,X=h.length;for(X||(X=1,d=n);++zh){var z=d;d=h,h=z}if(E||d%1||h%1){var X=KF();return Ji(d+X*(h-d+Vfe("1e-"+((X+"").length-1))),h)}return N4(d,h)}var pye=vm(function(d,h,E){return h=h.toLowerCase(),d+(E?_U(h):h)});function _U(d){return f3(Sr(d).toLowerCase())}function EU(d){return d=Sr(d),d&&d.replace(Jt,rpe).replace(Dfe,"")}function hye(d,h,E){d=Sr(d),h=vs(h);var z=d.length;E=E===n?z:Gp(In(E),0,z);var X=E;return E-=h.length,E>=0&&d.slice(E,X)==h}function gye(d){return d=Sr(d),d&&br.test(d)?d.replace(Zt,ope):d}function mye(d){return d=Sr(d),d&&Si.test(d)?d.replace(nr,"\\$&"):d}var yye=vm(function(d,h,E){return d+(E?"-":"")+h.toLowerCase()}),vye=vm(function(d,h,E){return d+(E?" ":"")+h.toLowerCase()}),bye=IN("toLowerCase");function wye(d,h,E){d=Sr(d),h=In(h);var z=h?dm(d):0;if(!h||z>=h)return d;var X=(h-z)/2;return Gx(Lx(X),E)+d+Gx($x(X),E)}function Sye(d,h,E){d=Sr(d),h=In(h);var z=h?dm(d):0;return h&&z>>0,E?(d=Sr(d),d&&(typeof h=="string"||h!=null&&!u3(h))&&(h=vs(h),!h&&cm(d))?ff(ql(d),0,E):d.split(h,E)):[]}var kye=vm(function(d,h,E){return d+(E?" ":"")+f3(h)});function Iye(d,h,E){return d=Sr(d),E=E==null?0:Gp(In(E),0,d.length),h=vs(h),d.slice(E,E+h.length)==h}function Pye(d,h,E){var z=oe.templateSettings;E&&Ca(d,h,E)&&(h=n),d=Sr(d),h=l2({},h,z,$N);var X=l2({},h.imports,z.imports,$N),se=xi(X),me=C4(X,se),Te,$e,ot=0,it=h.interpolate||hn,ct="__p += '",It=_4((h.escape||hn).source+"|"+it.source+"|"+(it===ti?mt:hn).source+"|"+(h.evaluate||hn).source+"|$","g"),Kt="//# sourceURL="+(Mr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Nfe+"]")+` +`;d.replace(It,function(cn,Wn,Gn,ws,Aa,Ss){return Gn||(Gn=ws),ct+=d.slice(ot,Ss).replace(gn,ipe),Wn&&(Te=!0,ct+=`' + __e(`+Wn+`) + '`),Aa&&($e=!0,ct+=`'; `+Aa+`; @@ -337,7 +337,7 @@ __p += '`),Gn&&(ct+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+ct+`return __p -}`;var Mn=kU(function(){return hr(se,Kt+"return "+ct).apply(n,me)});if(Mn.source=ct,s3(Mn))throw Mn;return Mn}function Oye(d){return Sr(d).toLowerCase()}function Rye(d){return Sr(d).toUpperCase()}function Dye(d,h,E){if(d=Sr(d),d&&(E||h===n))return LF(d);if(!d||!(h=vs(h)))return d;var z=ql(d),X=ql(h),se=FF(z,X),me=NF(z,X)+1;return ff(z,se,me).join("")}function Bye(d,h,E){if(d=Sr(d),d&&(E||h===n))return d.slice(0,jF(d)+1);if(!d||!(h=vs(h)))return d;var z=ql(d),X=NF(z,ql(h))+1;return ff(z,0,X).join("")}function $ye(d,h,E){if(d=Sr(d),d&&(E||h===n))return d.replace(G,"");if(!d||!(h=vs(h)))return d;var z=ql(d),X=FF(z,ql(h));return ff(z,X).join("")}function Lye(d,h){var E=C,z=O;if(xo(h)){var X="separator"in h?h.separator:X;E="length"in h?In(h.length):E,z="omission"in h?vs(h.omission):z}d=Sr(d);var se=d.length;if(cm(d)){var me=ql(d);se=me.length}if(E>=se)return d;var Te=E-dm(z);if(Te<1)return z;var $e=me?ff(me,0,Te).join(""):d.slice(0,Te);if(X===n)return $e+z;if(me&&(Te+=$e.length-Te),l3(X)){if(d.slice(Te).search(X)){var ot,it=$e;for(X.global||(X=A4(X.source,Sr($t.exec(X))+"g")),X.lastIndex=0;ot=X.exec(it);)var ct=ot.index;$e=$e.slice(0,ct===n?Te:ct)}}else if(d.indexOf(vs(X),Te)!=Te){var It=$e.lastIndexOf(X);It>-1&&($e=$e.slice(0,It))}return $e+z}function Fye(d){return d=Sr(d),d&&An.test(d)?d.replace(Qt,ppe):d}var Nye=vm(function(d,h,E){return d+(E?" ":"")+h.toUpperCase()}),d3=IN("toUpperCase");function TU(d,h,E){return d=Sr(d),h=E?n:h,h===n?lpe(d)?mpe(d):Zfe(d):d.match(h)||[]}var kU=$n(function(d,h){try{return ms(d,n,h)}catch(E){return s3(E)?E:new Cn(E)}}),Uye=Wc(function(d,h){return tl(h,function(E){E=Lu(E),Uc(d,E,i3(d[E],d))}),d});function jye(d){var h=d==null?0:d.length,E=sn();return d=h?fo(d,function(z){if(typeof z[1]!="function")throw new nl(a);return[E(z[0]),z[1]]}):[],$n(function(z){for(var X=-1;++XY)return[];var E=le,z=Ji(d,le);h=sn(h),d-=le;for(var X=S4(z,h);++E0||h<0)?new Qn(E):(d<0?E=E.takeRight(-d):d&&(E=E.drop(d)),h!==n&&(h=In(h),E=h<0?E.dropRight(-h):E.take(h-d)),E)},Qn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qn.prototype.toArray=function(){return this.take(le)},Bu(Qn.prototype,function(d,h){var E=/^(?:filter|find|map|reject)|While$/.test(h),z=/^(?:head|last)$/.test(h),X=oe[z?"take"+(h=="last"?"Right":""):h],se=z||/^find/.test(h);X&&(oe.prototype[h]=function(){var me=this.__wrapped__,Te=z?[1]:arguments,$e=me instanceof Qn,ot=Te[0],it=$e||_n(me),ct=function(Wn){var Gn=X.apply(oe,af([Wn],Te));return z&&It?Gn[0]:Gn};it&&E&&typeof ot=="function"&&ot.length!=1&&($e=it=!1);var It=this.__chain__,Kt=!!this.__actions__.length,un=se&&!It,Mn=$e&&!Kt;if(!se&&it){me=Mn?me:new Qn(this);var cn=d.apply(me,Te);return cn.__actions__.push({func:tx,args:[ct],thisArg:n}),new rl(cn,It)}return un&&Mn?d.apply(this,Te):(cn=this.thru(ct),un?z?cn.value()[0]:cn.value():cn)})}),tl(["pop","push","shift","sort","splice","unshift"],function(d){var h=T2[d],E=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",z=/^(?:pop|shift)$/.test(d);oe.prototype[d]=function(){var X=arguments;if(z&&!this.__chain__){var se=this.value();return h.apply(_n(se)?se:[],X)}return this[E](function(me){return h.apply(_n(me)?me:[],X)})}}),Bu(Qn.prototype,function(d,h){var E=oe[h];if(E){var z=E.name+"";Mr.call(gm,z)||(gm[z]=[]),gm[z].push({name:h,func:E})}}),gm[K2(n,x).name]=[{name:"wrapper",func:n}],Qn.prototype.clone=Fpe,Qn.prototype.reverse=Npe,Qn.prototype.value=Upe,oe.prototype.at=gme,oe.prototype.chain=mme,oe.prototype.commit=yme,oe.prototype.next=vme,oe.prototype.plant=wme,oe.prototype.reverse=Sme,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=xme,oe.prototype.first=oe.prototype.head,Av&&(oe.prototype[Av]=bme),oe},fm=ype();qp?((qp.exports=fm)._=fm,p4._=fm):Ri._=fm}).call(st)})(mGe,mw);const Ze=mw;var Hoe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.chooseRandomVoters=Hr.getCurrentResults=Hr.calcProposalResult=Hr.getVotingPower=Hr.getSingleVoterPower=Hr.getAllNftHoldersFromCollectionAddr=Hr.getAllNftHolders=Hr.getAllVotes=Hr.filterTxByTimestamp=Hr.getTransactions=Hr.getClientV4=Hr.getClientV2=void 0;const qoe=Cl,Za=js,$f=Hoe(Tre),yGe=Jk,vGe=Hoe(mw),nd=YS,Rs=dn,bGe=2084703906;async function wGe(e,t){if(e)return new Za.TonClient({endpoint:e,apiKey:t});const n=await(0,qoe.getHttpEndpoint)();return new Za.TonClient({endpoint:n})}Hr.getClientV2=wGe;async function SGe(e){if(e)return new Za.TonClient4({endpoint:e,timeout:15e3});const t=await(0,qoe.getHttpV4Endpoint)();return new Za.TonClient4({endpoint:t,timeout:15e3})}Hr.getClientV4=SGe;async function xGe(e,t,n){let o=new $f.default(n??-1),i={fromLt:"0",hash:""},a=[],s=i;const l=500;e:for(;;){let u=0,c=!1;for(;!c&&u<5;)try{console.log("Querying...");const f=await e.getTransactions(Za.Address.parse(t),{lt:s.fromLt,to_lt:n,hash:s.hash,limit:l});if(console.log(`Got ${f.length}, lt ${s.fromLt}`),a=[...a,...f],f.forEach(p=>{o=$f.default.max(new $f.default(p.lt.toString()),o)}),f.length==0||f.length=0;s--){const l=(o=(r=e[s])==null?void 0:r.inMessage)==null?void 0:o.body;let u=AGe(l);if(!u)continue;let c=(a=(i=e[s])==null?void 0:i.inMessage)==null?void 0:a.info.src;if(!c)continue;let f=c.toString();e[s].nowt.proposalEndTime||yGe.CUSTODIAN_ADDRESSES.includes(f)||(n[f]={timestamp:e[s].now,vote:u.toLowerCase(),hash:e[s].prevTransactionHash.toString()})}return n}Hr.getAllVotes=f$;function Qoe(e,t){var r;const n=e.find(o=>o.arguments.some(i=>i.name===t));if(n)return(r=n.arguments.find(o=>o.name===t))==null?void 0:r.value}async function _Ge(e,t){let n={},r=Qoe(t.votingPowerStrategies,"nft-address");const o=5;if(!r)return n;let i=await e.runMethod(t.mcSnapshotBlock,Za.Address.parse(r),"get_collection_data");if(i.exitCode)return console.log(`nft collection not exists for nftAddress ${r}, propsal metadata: `,t),n;if(i.result[0].type!="int")return console.log("Error: could not extract next-item-value from nft collection (type error)"),n;const a=Number(i.result[0].value),s=25,l=Math.ceil(a/s);if(l>500)return console.log("nft collection is too big to process"),n;console.log(`fetching ${a} nft items (batche size = ${s})`);for(let u=0;u{const v=c+y;return(async()=>{let x=0,w=!1;for(;!w&&x{if(m.status==="rejected")throw new Error(`One of the promises was rejected while fetching NFT holders for nft collection ${r} : ${m.reason}`)})}return n}Hr.getAllNftHolders=_Ge;async function EGe(e,t,n=-1){let r={};n==-1&&(n=(await e.getLastBlock()).last.seqno);let i=await e.runMethod(n,Za.Address.parse(t),"get_collection_data");if(i.exitCode)return console.log(`nft collection not exists for nft collection at address ${t}`),r;if(i.result[0].type!="int")return console.log("Error: could not extract next-item-value from nft collection (type error)"),r;const a=Number(i.result[0].value),s=100,l=Math.ceil(a/s);if(l>500)return console.log("nft collection is too big to process"),r;console.log(`fetching ${a} nft items (batche size = ${s})`);for(let u=0;u{const v=c+y;return(async()=>{let x=0,w=!1;for(;!w&&x<5;)try{let I=await e.runMethod(n,Za.Address.parse(t),"get_nft_address_by_index",(0,Rs.intToTupleItem)(v));if(I.result[0].type!="slice"){console.log(`unexpected result type from runMethod on get_nft_address_by_index on address: ${t}} at block ${n}`);return}let _=(0,Rs.cellToAddress)(I.result[0].cell);if(I=await e.runMethod(n,_,"get_nft_data"),!I||!I.result||!I.result[3]){console.log(`could not extract result from nft ${_} at block ${n}`);return}if(I.result[3].type!="slice"){console.log(`unexpected result type from runMethod on get_nft_data on address: ${t} at block ${n}`);return}const R=(0,Rs.cellToAddress)(I.result[3].cell).toString();r[R]||(r[R]=[]),r[R].push(_.toString()),w=!0}catch(I){x++,console.log(`attempt ${x} failed with error ${I}, retrying...`),(0,Rs.sleep)(10)}})()});(await Promise.allSettled(p)).forEach(m=>{if(m.status==="rejected")throw new Error(`One of the promises was rejected while fetching NFT holders for nft collection ${t} : ${m.reason}`)})}return r}Hr.getAllNftHoldersFromCollectionAddr=EGe;async function Koe(e,t,n,r,o,i={}){var a,s;switch(Number(r)){case nd.VotingPowerStrategyType.TonBalance:return(await e.getAccountLite(n.mcSnapshotBlock,Za.Address.parse(t))).account.balance.coins;case nd.VotingPowerStrategyType.TonBalanceWithValidators:let l="0";return t in i&&(l=(0,Za.toNano)(i[t].total).toString()),(0,$f.default)((await e.getAccountLite(n.mcSnapshotBlock,Za.Address.parse(t))).account.balance.coins).plus(l).toString();case nd.VotingPowerStrategyType.TonBalance_1Wallet1Vote:return"1";case nd.VotingPowerStrategyType.JettonBalance:case nd.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:try{const u=Qoe(n.votingPowerStrategies,"jetton-address");if(!u)return"0";let c=await e.runMethod(n.mcSnapshotBlock,Za.Address.parse(u),"get_wallet_address",(0,Rs.addressStringToTupleItem)(t));if(c.result[0].type!="slice")return"0";const f=(0,Rs.cellToAddress)(c.result[0].cell);if(c=await e.runMethod(n.mcSnapshotBlock,f,"get_wallet_data"),c.result[0].type!="int")return"0";if(Number(r)===nd.VotingPowerStrategyType.JettonBalance){let p=(s=(a=n.jettonMetadata)==null?void 0:a.metadata)==null?void 0:s.decimals;return p==null&&(console.log("warning decimals is undefined, setting default value to 9!"),p=9),(0,Rs.convertToNano)(c.result[0].value.toString(),p)}else return String(+(c.result[0].value>0))}catch{return"0"}case nd.VotingPowerStrategyType.NftCcollection:return(0,Za.toNano)(t in o?o[t].length:0).toString();case nd.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return t in o?"1":"0";default:return"0"}}Hr.getSingleVoterPower=Koe;async function TGe(e,t,n,r={},o=nd.VotingPowerStrategyType.TonBalance,i={},a={}){let s=Object.keys(f$(n,t)),l=[...new Set([...s,...Object.keys(r)])];if(!l||!t.mcSnapshotBlock)return r;const u=20,c=Math.ceil(l.length/u);for(let f=0;fKoe(e,x,t,o,i,a)),v=await Promise.all(y);for(let x=0;xs.toLowerCase());for(const s of o)r[s]=new $f.default(0);for(let[s,l]of Object.entries(e)){if(!(s in t)){console.log(`voter ${s} not found in votingPower`);continue}const u=l.vote.toLocaleLowerCase();if(!o.includes(u)){console.log(`vote ${u} from voter at address ${s} was not found in list of choices ${o}, ignoring vote...`);continue}r[u]=new $f.default(t[s]).plus(r[u])}const i=o.reduce((s,l)=>s.plus(r[l]||new $f.default(0)),new $f.default(0)),a={};for(const s of o){const l=r[s].div(i).multipliedBy(100).decimalPlaces(4).toNumber();a[s]=l}return a.totalWeights=i.toString(),a}Hr.calcProposalResult=Yoe;function kGe(e,t,n){let r=f$(e,n);return Yoe(r,t,n.votingSystem)}Hr.getCurrentResults=kGe;function IGe(e){var t=e.toString(16);t.length%2&&(t="0"+t);for(var n=[],r=0,o,i;r{i=i.loadRef().beginParse();let a=i.loadBits(8);return n&&i.loadRef().beginParse(),i=i.loadRef().beginParse(),{prefix0:Number(a),prefix1:Number(i.loadBits(8)),min_tot_rounds:Number(i.loadBits(8)),max_tot_rounds:Number(i.loadBits(8)),min_wins:Number(i.loadBits(8)),max_losses:Number(i.loadBits(8)),min_store_sec:parseInt(i.loadBits(32).toString(),16),max_store_sec:Number(i.loadBits(32)),bit_price:Number(i.loadBits(32)),cell_price:parseInt(i.loadBits(32).toString(),16)}}).get(11n)}Al.getConfig11=Joe;async function Xoe(e,t){let n=await e.getConfig(t,[34]);return(0,Goe.parseDict)(p$.Cell.fromBoc(Buffer.from(n.config.cell,"base64"))[0].beginParse(),32,o=>{o=o.loadRef().beginParse();let i=o.loadBits(8),a=o.loadUint(32),s=o.loadUint(32),l=o.loadUint(16),u=o.loadUint(16),c=o.loadUint(64);return o=o.loadRef().beginParse(),o=o.loadRef().beginParse(),{start_bits:i,utime_since:a,utime_until:s,total_validators:l,main_validators:u,total_weight:c}}).get(34n)}Al.getConfig34=Xoe;function OGe(e){if(e.type!="tuple")return{};let t=[];for(;;){let n=e.items[0];if(n.type=="null"||(n.type=="int"&&t.push(`${n.value}`),e.items.length<=1)||e.items[1].type!="tuple")break;e=e.items[1]}return t}async function mb(e,t,n){let r=await e.runMethod(t,p$.Address.parse(MGe),"list_proposals"),o={};for(const i of r.result)if("items"in i)for(const a of i.items){if(!("items"in a)||a.items[0].value!=n)continue;let s=a.items[1].items,l=s[0].value,u=s[1].value,c=s[2].items[0].value,f=s[2].items[1].cell,p=s[2].items[2].value,g=s[3].value,m=OGe(s[4]),y=s[5].value,v=s[6].value,x=s[7].value,w=s[8].value;o={block:t,expires:l,critical:u,param_id:c,param_val:f,param_hash:p,vset_id:g,voters_list:m,weight_remaining:y,rounds_remaining:v,wins:x,losses:w}}return o}Al.listProposal=mb;async function RGe(e,t,n,r){let o=await mb(e,t,r);if(Object.keys(o).length!==0)return o;console.log(`starting binary search for phash ${r} on block ${t}`);let i=t-1,a=t-n,s;for(;a<=i;){s=Math.floor((a+i)/2);let l=await mb(e,s,r);Object.keys(l).length===0?i=s-1:a=s+1}return i>=t-n?await mb(e,i,r):{}}async function DGe(e,t,n=-1,r=-1){n==-1&&(n=(await e.getLastBlock()).last.seqno);let o=await Xoe(e,n);if(!o)return{};r==-1&&(r=o.utime_until-o.utime_since);let i=await RGe(e,n,r,t);if(!Object.keys(i).length)return{};if(i.block==n)return{...i,config34:o};let a=await e.getBlockByUtime(o.utime_since-1);const s=await mb(e,a.shards[0].seqno,t);let l=await Joe(e,n);return s&&s.losses==(l==null?void 0:l.max_losses)-1?i.losses+=1n:i.wins+=1n,{...i,config34:o}}Al.proposalResults=DGe;async function BGe(e,t=3){let n={};const r="https://single-nominator-backend.herokuapp.com/validator/";for(let o=0;o(e.PROPOSAL_TIMELINE="PROPOSAL_TIMELINE",e.DAOS="DAOS",e.PROPOSALS="PROPOSALS",e.DAO_ROLES="DAO_ROLES",e.PROPOSAL="PROPOSAL",e.DAO="DAO",e.SIGNLE_VOTING_POWER="SIGNLE_VOTING_POWER",e.CLIENTS="CLIENTS",e.DAO_STATE="DAO_STATE",e.REGISTRY_STATE="REGISTRY_STATE",e))(Kd||{});const zGe=["EQBcWmVMuby9kFuB0bAyLQpDvCeosTX3h4m7lct0c8GI8QOG","EQCxbXzrtDQ9ZHvFL91xnCm6YtFYO1Lks9tImMHJHVICKD9X","EQD4GRGo2Exp0yt3L9-2TW7KPM8GK5gzyhJ1tEweIVz4jIQY","EQCEnW_oq1RmMJ4ciTTsccLIzu2vy0VVLo_hfa84tZZfh_Qy","EQC5E53rXLTWHzsYAdudAG3p6n45c0MuvoKDCGDFnu4OmuMb","EQCVwkPuxX7sVe_ajaYIQgsrXTCmQJmEf1LemIbl_OWC3_wF","EQAPWMrbP0K4yVvqqYdynUoelX-I6rDvWRmWJNFDchB4cUPW","EQCBefq4_WZfIBnyVrBeAp2BNJMBqQSLpWN3q53GLgX5zU-C","EQC5uEjI6iCQcjmoFh2KcUIUsQ7hb17hnK29NoEwtqTjEdlO","EQDspA6XZrai7c5cuCUvGw1wfMuOdXvBSYuc8q8us94fs3Zw","EQC75Z49OlHwFvSfa21FMfSe6jMdY4SccRHsGljJR6229u2T","EQCb8dxevgHhBnsTodJKXaCrafplHzAHf1V2Adj0GVlhA5xI","EQBSnMyKtNlgmlcgRMrQlHH_asDSRV8jmtpbHZqM6sWp1YYp","EQCjkyH0rAibDNadPUoD5nyEdUc_QACmaLyOuuyro3vo8sRV","EQCrdt_vPS_0pJRXl-Y4aNHsq7TYLmXEOSe3PUD2u3g1klC9","EQC79CMqa1DsK43p9vv-6cuxX-hRCTKtdog-YlVjN-t03TNY","EQB3u9vIjt2Cd4hmb1LruFeU44SwaaMM0ox8uKv8iEs7trWH","EQD2lFs-kxU0VLyDDhNO0XyH7OrBpJHIbMayBqoUtJ4Xb4eq","EQAY-sgFKzGrXO6_0785Et6nMVPK78aJUqaMhR7jwzsEDssX","EQAYBkVlx1li1qg8d4S_6T0fvxFDFiiKzgxQouIGxQJck2C0","EQAY-sgFKzGrXO6_0785Et6nMVPK78aJUqaMhR7jwzsEDssX","EQAYBkVlx1li1qg8d4S_6T0fvxFDFiiKzgxQouIGxQJck2C0","EQDh8EdtTVVUuL50A2p-bzJk1Q9qAVK5fSIyCZ7RwktPwxAN","EQAvYNurOKXnv2ASweTgbdYavcaxnsbZeXXhdJkkvMicOLoZ","EQDI_7Nk7Fe43pilkdt8rh1Ryl8P8d6-8eieCGVs1p6MYkCF","EQCbE-S_Bl4l8CgvosBDEnLDwTgz0qmScodUFt3YeE5JziM5","EQBmv0LIG56PLOETKV_-Bz5apBMND3gA9BEaysGIluaoHv5i","EQAjz0zyH8esx1joXuDzJ8NTrA7Xmjn6DQVcqZmM1zHwpsLD","EQATOALRdF-1caUrqNRW3NKfoXHFqO_a_tcIIMBNYCqTI1fG","EQCsKT7341lTP1BEV9dFzcgjJv8wCdCqpvtoK2c18zO2e5GE","EQBM94_9VlmsBbKwbjd1FQgNl9zZLl0cUgBGochRANNZpUzf","EQBvInxcrQhZxeIqA28s6KLYHmS2GrBcTIrX1oMPNoZpOMaQ"],qg={}.VITE_STAGING?at.ReleaseMode.DEVELOPMENT:at.ReleaseMode.PRODUCTION,ns=qg===at.ReleaseMode.DEVELOPMENT,PR=.2,jz=1.1,cs={CREATE_DAO:ns?PR:1,CREATE_METADATA:.05,FORWARD_MSG:.25,SET_METADATA:.05,VOTE_FEE:.01,BASE:.25},VGe={[at.VotingPowerStrategyType.TonBalance]:{name:"TON coin balance",args:[]},[at.VotingPowerStrategyType.TonBalanceWithValidators]:{name:"TON coin balance, with validators"},[at.VotingPowerStrategyType.JettonBalance]:{name:"Jetton balance",args:[{type:"text",label:"Jetton address",tooltip:"The address of the Jetton",required:!0,name:"jetton-address"}]},[at.VotingPowerStrategyType.NftCcollection]:{name:"Number of owned NFTs",args:[{type:"text",label:"NFT collection address",tooltip:"The address of the NFT collection",required:!0,name:"nft-address"}]},[at.VotingPowerStrategyType.TonBalance_1Wallet1Vote]:{name:"TON coin balance, 1 wallet 1 vote",args:[]},[at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote]:{name:"Jetton balance, 1 wallet 1 vote",args:[{type:"text",label:"Jetton address",tooltip:"The address of the Jetton",required:!0,name:"jetton-address"}]},[at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote]:{name:"Number of owned NFTs, 1 wallet 1 vote",args:[{type:"text",label:"NFT collection address",tooltip:"The address of the NFT collection",required:!0,name:"nft-address"}]}},HGe=[{name:"jetton",key:"jetton-address"},{name:"nft",key:"nft-address"}],Eg="https://t.me/TONVoteSupportGroup/82",qGe=[],eie={proposal:15e3,dao:6e4,daos:6e4},Tg=2,e_=2,QGe=["EQAQiTI1QkaCpIYAqdEO4mRTIzACq7WNlhNzt2voUnE4qxKy"],tie=["EQAGgwt5WA6fBcD_OgEKXOEDLjto5X9SyOmOP-NOrn19sxtZ"];/** +}`;var Mn=kU(function(){return hr(se,Kt+"return "+ct).apply(n,me)});if(Mn.source=ct,l3(Mn))throw Mn;return Mn}function Mye(d){return Sr(d).toLowerCase()}function Oye(d){return Sr(d).toUpperCase()}function Rye(d,h,E){if(d=Sr(d),d&&(E||h===n))return LF(d);if(!d||!(h=vs(h)))return d;var z=ql(d),X=ql(h),se=FF(z,X),me=NF(z,X)+1;return ff(z,se,me).join("")}function Dye(d,h,E){if(d=Sr(d),d&&(E||h===n))return d.slice(0,jF(d)+1);if(!d||!(h=vs(h)))return d;var z=ql(d),X=NF(z,ql(h))+1;return ff(z,0,X).join("")}function Bye(d,h,E){if(d=Sr(d),d&&(E||h===n))return d.replace(G,"");if(!d||!(h=vs(h)))return d;var z=ql(d),X=FF(z,ql(h));return ff(z,X).join("")}function $ye(d,h){var E=C,z=O;if(xo(h)){var X="separator"in h?h.separator:X;E="length"in h?In(h.length):E,z="omission"in h?vs(h.omission):z}d=Sr(d);var se=d.length;if(cm(d)){var me=ql(d);se=me.length}if(E>=se)return d;var Te=E-dm(z);if(Te<1)return z;var $e=me?ff(me,0,Te).join(""):d.slice(0,Te);if(X===n)return $e+z;if(me&&(Te+=$e.length-Te),u3(X)){if(d.slice(Te).search(X)){var ot,it=$e;for(X.global||(X=_4(X.source,Sr($t.exec(X))+"g")),X.lastIndex=0;ot=X.exec(it);)var ct=ot.index;$e=$e.slice(0,ct===n?Te:ct)}}else if(d.indexOf(vs(X),Te)!=Te){var It=$e.lastIndexOf(X);It>-1&&($e=$e.slice(0,It))}return $e+z}function Lye(d){return d=Sr(d),d&&An.test(d)?d.replace(Qt,fpe):d}var Fye=vm(function(d,h,E){return d+(E?" ":"")+h.toUpperCase()}),f3=IN("toUpperCase");function TU(d,h,E){return d=Sr(d),h=E?n:h,h===n?spe(d)?gpe(d):Xfe(d):d.match(h)||[]}var kU=$n(function(d,h){try{return ms(d,n,h)}catch(E){return l3(E)?E:new Cn(E)}}),Nye=Wc(function(d,h){return tl(h,function(E){E=Fu(E),Uc(d,E,a3(d[E],d))}),d});function Uye(d){var h=d==null?0:d.length,E=sn();return d=h?fo(d,function(z){if(typeof z[1]!="function")throw new nl(a);return[E(z[0]),z[1]]}):[],$n(function(z){for(var X=-1;++XY)return[];var E=le,z=Ji(d,le);h=sn(h),d-=le;for(var X=x4(z,h);++E0||h<0)?new Qn(E):(d<0?E=E.takeRight(-d):d&&(E=E.drop(d)),h!==n&&(h=In(h),E=h<0?E.dropRight(-h):E.take(h-d)),E)},Qn.prototype.takeRightWhile=function(d){return this.reverse().takeWhile(d).reverse()},Qn.prototype.toArray=function(){return this.take(le)},$u(Qn.prototype,function(d,h){var E=/^(?:filter|find|map|reject)|While$/.test(h),z=/^(?:head|last)$/.test(h),X=oe[z?"take"+(h=="last"?"Right":""):h],se=z||/^find/.test(h);X&&(oe.prototype[h]=function(){var me=this.__wrapped__,Te=z?[1]:arguments,$e=me instanceof Qn,ot=Te[0],it=$e||_n(me),ct=function(Wn){var Gn=X.apply(oe,af([Wn],Te));return z&&It?Gn[0]:Gn};it&&E&&typeof ot=="function"&&ot.length!=1&&($e=it=!1);var It=this.__chain__,Kt=!!this.__actions__.length,un=se&&!It,Mn=$e&&!Kt;if(!se&&it){me=Mn?me:new Qn(this);var cn=d.apply(me,Te);return cn.__actions__.push({func:t2,args:[ct],thisArg:n}),new rl(cn,It)}return un&&Mn?d.apply(this,Te):(cn=this.thru(ct),un?z?cn.value()[0]:cn.value():cn)})}),tl(["pop","push","shift","sort","splice","unshift"],function(d){var h=Tx[d],E=/^(?:push|sort|unshift)$/.test(d)?"tap":"thru",z=/^(?:pop|shift)$/.test(d);oe.prototype[d]=function(){var X=arguments;if(z&&!this.__chain__){var se=this.value();return h.apply(_n(se)?se:[],X)}return this[E](function(me){return h.apply(_n(me)?me:[],X)})}}),$u(Qn.prototype,function(d,h){var E=oe[h];if(E){var z=E.name+"";Mr.call(gm,z)||(gm[z]=[]),gm[z].push({name:h,func:E})}}),gm[Kx(n,x).name]=[{name:"wrapper",func:n}],Qn.prototype.clone=Lpe,Qn.prototype.reverse=Fpe,Qn.prototype.value=Npe,oe.prototype.at=hme,oe.prototype.chain=gme,oe.prototype.commit=mme,oe.prototype.next=yme,oe.prototype.plant=bme,oe.prototype.reverse=wme,oe.prototype.toJSON=oe.prototype.valueOf=oe.prototype.value=Sme,oe.prototype.first=oe.prototype.head,Av&&(oe.prototype[Av]=vme),oe},fm=mpe();qp?((qp.exports=fm)._=fm,h4._=fm):Ri._=fm}).call(st)})(RGe,mw);const Ze=mw;var Voe=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.chooseRandomVoters=Hr.getCurrentResults=Hr.calcProposalResult=Hr.getVotingPower=Hr.getSingleVoterPower=Hr.getAllNftHoldersFromCollectionAddr=Hr.getAllNftHolders=Hr.getAllVotes=Hr.filterTxByTimestamp=Hr.getTransactions=Hr.getClientV4=Hr.getClientV2=void 0;const Hoe=Cl,Za=js,$f=Voe(Tre),DGe=Xk,BGe=Voe(mw),nd=YS,Rs=dn,$Ge=2084703906;async function LGe(e,t){if(e)return new Za.TonClient({endpoint:e,apiKey:t});const n=await(0,Hoe.getHttpEndpoint)();return new Za.TonClient({endpoint:n})}Hr.getClientV2=LGe;async function FGe(e){if(e)return new Za.TonClient4({endpoint:e,timeout:15e3});const t=await(0,Hoe.getHttpV4Endpoint)();return new Za.TonClient4({endpoint:t,timeout:15e3})}Hr.getClientV4=FGe;async function NGe(e,t,n){let o=new $f.default(n??-1),i={fromLt:"0",hash:""},a=[],s=i;const l=500;e:for(;;){let u=0,c=!1;for(;!c&&u<5;)try{console.log("Querying...");const f=await e.getTransactions(Za.Address.parse(t),{lt:s.fromLt,to_lt:n,hash:s.hash,limit:l});if(console.log(`Got ${f.length}, lt ${s.fromLt}`),a=[...a,...f],f.forEach(p=>{o=$f.default.max(new $f.default(p.lt.toString()),o)}),f.length==0||f.length=0;s--){const l=(o=(r=e[s])==null?void 0:r.inMessage)==null?void 0:o.body;let u=jGe(l);if(!u)continue;let c=(a=(i=e[s])==null?void 0:i.inMessage)==null?void 0:a.info.src;if(!c)continue;let f=c.toString();e[s].nowt.proposalEndTime||DGe.CUSTODIAN_ADDRESSES.includes(f)||(n[f]={timestamp:e[s].now,vote:u.toLowerCase(),hash:e[s].prevTransactionHash.toString()})}return n}Hr.getAllVotes=f$;function qoe(e,t){var r;const n=e.find(o=>o.arguments.some(i=>i.name===t));if(n)return(r=n.arguments.find(o=>o.name===t))==null?void 0:r.value}async function WGe(e,t){let n={},r=qoe(t.votingPowerStrategies,"nft-address");const o=5;if(!r)return n;let i=await e.runMethod(t.mcSnapshotBlock,Za.Address.parse(r),"get_collection_data");if(i.exitCode)return console.log(`nft collection not exists for nftAddress ${r}, propsal metadata: `,t),n;if(i.result[0].type!="int")return console.log("Error: could not extract next-item-value from nft collection (type error)"),n;const a=Number(i.result[0].value),s=25,l=Math.ceil(a/s);if(l>500)return console.log("nft collection is too big to process"),n;console.log(`fetching ${a} nft items (batche size = ${s})`);for(let u=0;u{const v=c+y;return(async()=>{let x=0,w=!1;for(;!w&&x{if(m.status==="rejected")throw new Error(`One of the promises was rejected while fetching NFT holders for nft collection ${r} : ${m.reason}`)})}return n}Hr.getAllNftHolders=WGe;async function zGe(e,t,n=-1){let r={};n==-1&&(n=(await e.getLastBlock()).last.seqno);let i=await e.runMethod(n,Za.Address.parse(t),"get_collection_data");if(i.exitCode)return console.log(`nft collection not exists for nft collection at address ${t}`),r;if(i.result[0].type!="int")return console.log("Error: could not extract next-item-value from nft collection (type error)"),r;const a=Number(i.result[0].value),s=100,l=Math.ceil(a/s);if(l>500)return console.log("nft collection is too big to process"),r;console.log(`fetching ${a} nft items (batche size = ${s})`);for(let u=0;u{const v=c+y;return(async()=>{let x=0,w=!1;for(;!w&&x<5;)try{let I=await e.runMethod(n,Za.Address.parse(t),"get_nft_address_by_index",(0,Rs.intToTupleItem)(v));if(I.result[0].type!="slice"){console.log(`unexpected result type from runMethod on get_nft_address_by_index on address: ${t}} at block ${n}`);return}let _=(0,Rs.cellToAddress)(I.result[0].cell);if(I=await e.runMethod(n,_,"get_nft_data"),!I||!I.result||!I.result[3]){console.log(`could not extract result from nft ${_} at block ${n}`);return}if(I.result[3].type!="slice"){console.log(`unexpected result type from runMethod on get_nft_data on address: ${t} at block ${n}`);return}const R=(0,Rs.cellToAddress)(I.result[3].cell).toString();r[R]||(r[R]=[]),r[R].push(_.toString()),w=!0}catch(I){x++,console.log(`attempt ${x} failed with error ${I}, retrying...`),(0,Rs.sleep)(10)}})()});(await Promise.allSettled(p)).forEach(m=>{if(m.status==="rejected")throw new Error(`One of the promises was rejected while fetching NFT holders for nft collection ${t} : ${m.reason}`)})}return r}Hr.getAllNftHoldersFromCollectionAddr=zGe;async function Qoe(e,t,n,r,o,i={}){var a,s;switch(Number(r)){case nd.VotingPowerStrategyType.TonBalance:return(await e.getAccountLite(n.mcSnapshotBlock,Za.Address.parse(t))).account.balance.coins;case nd.VotingPowerStrategyType.TonBalanceWithValidators:let l="0";return t in i&&(l=(0,Za.toNano)(i[t].total).toString()),(0,$f.default)((await e.getAccountLite(n.mcSnapshotBlock,Za.Address.parse(t))).account.balance.coins).plus(l).toString();case nd.VotingPowerStrategyType.TonBalance_1Wallet1Vote:return"1";case nd.VotingPowerStrategyType.JettonBalance:case nd.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:try{const u=qoe(n.votingPowerStrategies,"jetton-address");if(!u)return"0";let c=await e.runMethod(n.mcSnapshotBlock,Za.Address.parse(u),"get_wallet_address",(0,Rs.addressStringToTupleItem)(t));if(c.result[0].type!="slice")return"0";const f=(0,Rs.cellToAddress)(c.result[0].cell);if(c=await e.runMethod(n.mcSnapshotBlock,f,"get_wallet_data"),c.result[0].type!="int")return"0";if(Number(r)===nd.VotingPowerStrategyType.JettonBalance){let p=(s=(a=n.jettonMetadata)==null?void 0:a.metadata)==null?void 0:s.decimals;return p==null&&(console.log("warning decimals is undefined, setting default value to 9!"),p=9),(0,Rs.convertToNano)(c.result[0].value.toString(),p)}else return String(+(c.result[0].value>0))}catch{return"0"}case nd.VotingPowerStrategyType.NftCcollection:return(0,Za.toNano)(t in o?o[t].length:0).toString();case nd.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return t in o?"1":"0";default:return"0"}}Hr.getSingleVoterPower=Qoe;async function VGe(e,t,n,r={},o=nd.VotingPowerStrategyType.TonBalance,i={},a={}){let s=Object.keys(f$(n,t)),l=[...new Set([...s,...Object.keys(r)])];if(!l||!t.mcSnapshotBlock)return r;const u=20,c=Math.ceil(l.length/u);for(let f=0;fQoe(e,x,t,o,i,a)),v=await Promise.all(y);for(let x=0;xs.toLowerCase());for(const s of o)r[s]=new $f.default(0);for(let[s,l]of Object.entries(e)){if(!(s in t)){console.log(`voter ${s} not found in votingPower`);continue}const u=l.vote.toLocaleLowerCase();if(!o.includes(u)){console.log(`vote ${u} from voter at address ${s} was not found in list of choices ${o}, ignoring vote...`);continue}r[u]=new $f.default(t[s]).plus(r[u])}const i=o.reduce((s,l)=>s.plus(r[l]||new $f.default(0)),new $f.default(0)),a={};for(const s of o){const l=r[s].div(i).multipliedBy(100).decimalPlaces(4).toNumber();a[s]=l}return a.totalWeights=i.toString(),a}Hr.calcProposalResult=Koe;function HGe(e,t,n){let r=f$(e,n);return Koe(r,t,n.votingSystem)}Hr.getCurrentResults=HGe;function qGe(e){var t=e.toString(16);t.length%2&&(t="0"+t);for(var n=[],r=0,o,i;r{i=i.loadRef().beginParse();let a=i.loadBits(8);return n&&i.loadRef().beginParse(),i=i.loadRef().beginParse(),{prefix0:Number(a),prefix1:Number(i.loadBits(8)),min_tot_rounds:Number(i.loadBits(8)),max_tot_rounds:Number(i.loadBits(8)),min_wins:Number(i.loadBits(8)),max_losses:Number(i.loadBits(8)),min_store_sec:parseInt(i.loadBits(32).toString(),16),max_store_sec:Number(i.loadBits(32)),bit_price:Number(i.loadBits(32)),cell_price:parseInt(i.loadBits(32).toString(),16)}}).get(11n)}Al.getConfig11=Goe;async function Joe(e,t){let n=await e.getConfig(t,[34]);return(0,Yoe.parseDict)(p$.Cell.fromBoc(Buffer.from(n.config.cell,"base64"))[0].beginParse(),32,o=>{o=o.loadRef().beginParse();let i=o.loadBits(8),a=o.loadUint(32),s=o.loadUint(32),l=o.loadUint(16),u=o.loadUint(16),c=o.loadUint(64);return o=o.loadRef().beginParse(),o=o.loadRef().beginParse(),{start_bits:i,utime_since:a,utime_until:s,total_validators:l,main_validators:u,total_weight:c}}).get(34n)}Al.getConfig34=Joe;function YGe(e){if(e.type!="tuple")return{};let t=[];for(;;){let n=e.items[0];if(n.type=="null"||(n.type=="int"&&t.push(`${n.value}`),e.items.length<=1)||e.items[1].type!="tuple")break;e=e.items[1]}return t}async function mb(e,t,n){let r=await e.runMethod(t,p$.Address.parse(KGe),"list_proposals"),o={};for(const i of r.result)if("items"in i)for(const a of i.items){if(!("items"in a)||a.items[0].value!=n)continue;let s=a.items[1].items,l=s[0].value,u=s[1].value,c=s[2].items[0].value,f=s[2].items[1].cell,p=s[2].items[2].value,g=s[3].value,m=YGe(s[4]),y=s[5].value,v=s[6].value,x=s[7].value,w=s[8].value;o={block:t,expires:l,critical:u,param_id:c,param_val:f,param_hash:p,vset_id:g,voters_list:m,weight_remaining:y,rounds_remaining:v,wins:x,losses:w}}return o}Al.listProposal=mb;async function GGe(e,t,n,r){let o=await mb(e,t,r);if(Object.keys(o).length!==0)return o;console.log(`starting binary search for phash ${r} on block ${t}`);let i=t-1,a=t-n,s;for(;a<=i;){s=Math.floor((a+i)/2);let l=await mb(e,s,r);Object.keys(l).length===0?i=s-1:a=s+1}return i>=t-n?await mb(e,i,r):{}}async function JGe(e,t,n=-1,r=-1){n==-1&&(n=(await e.getLastBlock()).last.seqno);let o=await Joe(e,n);if(!o)return{};r==-1&&(r=o.utime_until-o.utime_since);let i=await GGe(e,n,r,t);if(!Object.keys(i).length)return{};if(i.block==n)return{...i,config34:o};let a=await e.getBlockByUtime(o.utime_since-1);const s=await mb(e,a.shards[0].seqno,t);let l=await Goe(e,n);return s&&s.losses==(l==null?void 0:l.max_losses)-1?i.losses+=1n:i.wins+=1n,{...i,config34:o}}Al.proposalResults=JGe;async function XGe(e,t=3){let n={};const r="https://single-nominator-backend.herokuapp.com/validator/";for(let o=0;o(e.PROPOSAL_TIMELINE="PROPOSAL_TIMELINE",e.DAOS="DAOS",e.PROPOSALS="PROPOSALS",e.DAO_ROLES="DAO_ROLES",e.PROPOSAL="PROPOSAL",e.DAO="DAO",e.SIGNLE_VOTING_POWER="SIGNLE_VOTING_POWER",e.CLIENTS="CLIENTS",e.DAO_STATE="DAO_STATE",e.REGISTRY_STATE="REGISTRY_STATE",e))(Kd||{});const aJe=["EQBcWmVMuby9kFuB0bAyLQpDvCeosTX3h4m7lct0c8GI8QOG","EQCxbXzrtDQ9ZHvFL91xnCm6YtFYO1Lks9tImMHJHVICKD9X","EQD4GRGo2Exp0yt3L9-2TW7KPM8GK5gzyhJ1tEweIVz4jIQY","EQCEnW_oq1RmMJ4ciTTsccLIzu2vy0VVLo_hfa84tZZfh_Qy","EQC5E53rXLTWHzsYAdudAG3p6n45c0MuvoKDCGDFnu4OmuMb","EQCVwkPuxX7sVe_ajaYIQgsrXTCmQJmEf1LemIbl_OWC3_wF","EQAPWMrbP0K4yVvqqYdynUoelX-I6rDvWRmWJNFDchB4cUPW","EQCBefq4_WZfIBnyVrBeAp2BNJMBqQSLpWN3q53GLgX5zU-C","EQC5uEjI6iCQcjmoFh2KcUIUsQ7hb17hnK29NoEwtqTjEdlO","EQDspA6XZrai7c5cuCUvGw1wfMuOdXvBSYuc8q8us94fs3Zw","EQC75Z49OlHwFvSfa21FMfSe6jMdY4SccRHsGljJR6229u2T","EQCb8dxevgHhBnsTodJKXaCrafplHzAHf1V2Adj0GVlhA5xI","EQBSnMyKtNlgmlcgRMrQlHH_asDSRV8jmtpbHZqM6sWp1YYp","EQCjkyH0rAibDNadPUoD5nyEdUc_QACmaLyOuuyro3vo8sRV","EQCrdt_vPS_0pJRXl-Y4aNHsq7TYLmXEOSe3PUD2u3g1klC9","EQC79CMqa1DsK43p9vv-6cuxX-hRCTKtdog-YlVjN-t03TNY","EQB3u9vIjt2Cd4hmb1LruFeU44SwaaMM0ox8uKv8iEs7trWH","EQD2lFs-kxU0VLyDDhNO0XyH7OrBpJHIbMayBqoUtJ4Xb4eq","EQAY-sgFKzGrXO6_0785Et6nMVPK78aJUqaMhR7jwzsEDssX","EQAYBkVlx1li1qg8d4S_6T0fvxFDFiiKzgxQouIGxQJck2C0","EQAY-sgFKzGrXO6_0785Et6nMVPK78aJUqaMhR7jwzsEDssX","EQAYBkVlx1li1qg8d4S_6T0fvxFDFiiKzgxQouIGxQJck2C0","EQDh8EdtTVVUuL50A2p-bzJk1Q9qAVK5fSIyCZ7RwktPwxAN","EQAvYNurOKXnv2ASweTgbdYavcaxnsbZeXXhdJkkvMicOLoZ","EQDI_7Nk7Fe43pilkdt8rh1Ryl8P8d6-8eieCGVs1p6MYkCF","EQCbE-S_Bl4l8CgvosBDEnLDwTgz0qmScodUFt3YeE5JziM5","EQBmv0LIG56PLOETKV_-Bz5apBMND3gA9BEaysGIluaoHv5i","EQAjz0zyH8esx1joXuDzJ8NTrA7Xmjn6DQVcqZmM1zHwpsLD","EQATOALRdF-1caUrqNRW3NKfoXHFqO_a_tcIIMBNYCqTI1fG","EQCsKT7341lTP1BEV9dFzcgjJv8wCdCqpvtoK2c18zO2e5GE","EQBM94_9VlmsBbKwbjd1FQgNl9zZLl0cUgBGochRANNZpUzf","EQBvInxcrQhZxeIqA28s6KLYHmS2GrBcTIrX1oMPNoZpOMaQ"],qg={}.VITE_STAGING?at.ReleaseMode.DEVELOPMENT:at.ReleaseMode.PRODUCTION,ns=qg===at.ReleaseMode.DEVELOPMENT,MR=.2,jz=1.1,cs={CREATE_DAO:ns?MR:1,CREATE_METADATA:.05,FORWARD_MSG:.25,SET_METADATA:.05,VOTE_FEE:.01,BASE:.25},sJe={[at.VotingPowerStrategyType.TonBalance]:{name:"TON coin balance",args:[]},[at.VotingPowerStrategyType.TonBalanceWithValidators]:{name:"TON coin balance, with validators"},[at.VotingPowerStrategyType.JettonBalance]:{name:"Jetton balance",args:[{type:"text",label:"Jetton address",tooltip:"The address of the Jetton",required:!0,name:"jetton-address"}]},[at.VotingPowerStrategyType.NftCcollection]:{name:"Number of owned NFTs",args:[{type:"text",label:"NFT collection address",tooltip:"The address of the NFT collection",required:!0,name:"nft-address"}]},[at.VotingPowerStrategyType.TonBalance_1Wallet1Vote]:{name:"TON coin balance, 1 wallet 1 vote",args:[]},[at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote]:{name:"Jetton balance, 1 wallet 1 vote",args:[{type:"text",label:"Jetton address",tooltip:"The address of the Jetton",required:!0,name:"jetton-address"}]},[at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote]:{name:"Number of owned NFTs, 1 wallet 1 vote",args:[{type:"text",label:"NFT collection address",tooltip:"The address of the NFT collection",required:!0,name:"nft-address"}]}},lJe=[{name:"jetton",key:"jetton-address"},{name:"nft",key:"nft-address"}],Eg="https://t.me/TONVoteSupportGroup/82",uJe=[],Zoe={proposal:15e3,dao:6e4,daos:6e4},Tg=2,e_=2,cJe=["EQAQiTI1QkaCpIYAqdEO4mRTIzACq7WNlhNzt2voUnE4qxKy"],eie=["EQAGgwt5WA6fBcD_OgEKXOEDLjto5X9SyOmOP-NOrn19sxtZ"];/** * @remix-run/router v1.5.0 * * Copyright (c) Remix Software Inc. @@ -346,7 +346,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function YGe(){return Math.random().toString(36).substr(2,8)}function zz(e,t){return{usr:e.state,key:e.key,idx:t}}function yw(e,t,n,r){return n===void 0&&(n=null),Jn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yd(t):t,{state:n,key:t&&t.key||r||YGe()})}function Rd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function GGe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Xo.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Jn({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Xo.Pop;let v=c(),x=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:x})}function p(v,x){s=Xo.Push;let w=yw(y.location,v,x);n&&n(w,v),u=c()+1;let I=zz(w,u),_=y.createHref(w);try{a.pushState(I,"",_)}catch{o.location.assign(_)}i&&l&&l({action:s,location:y.location,delta:1})}function g(v,x){s=Xo.Replace;let w=yw(y.location,v,x);n&&n(w,v),u=c();let I=zz(w,u),_=y.createHref(w);a.replaceState(I,"",_),i&&l&&l({action:s,location:y.location,delta:0})}function m(v){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof v=="string"?v:Rd(v);return Rn(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let y={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Wz,f),l=v,()=>{o.removeEventListener(Wz,f),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let x=m(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(v){return a.go(v)}};return y}var li;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(li||(li={}));const JGe=new Set(["lazy","caseSensitive","path","id","index","children"]);function XGe(e){return e.index===!0}function nie(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Rn(o.index!==!0||!o.children,"Cannot specify children on an index route"),Rn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),XGe(o)){let l=Jn({},o,{hasErrorBoundary:t(o),id:s});return r[s]=l,l}else{let l=Jn({},o,{id:s,hasErrorBoundary:t(o),children:void 0});return r[s]=l,o.children&&(l.children=nie(o.children,t,a,r)),l}})}function Ih(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yd(t):t,o=ZS(r.pathname||"/",n);if(o==null)return null;let i=rie(e);ZGe(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Rn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=xd([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Rn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),rie(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:aJe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of oie(i.path))o(i,a,l)}),t}function oie(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=oie(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function ZGe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:sJe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const eJe=/^:\w+$/,tJe=3,nJe=2,rJe=1,oJe=10,iJe=-2,Vz=e=>e==="*";function aJe(e,t){let n=e.split("/"),r=n.length;return n.some(Vz)&&(r+=iJe),t&&(r+=nJe),n.filter(o=>!Vz(o)).reduce((o,i)=>o+(eJe.test(i)?tJe:i===""?rJe:oJe),r)}function sJe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function lJe(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=fJe(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function cJe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dJe(e){try{return decodeURI(e)}catch(t){return sy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function fJe(e,t){try{return decodeURIComponent(e)}catch(n){return sy(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ZS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function pJe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yd(e):e;return{pathname:n?n.startsWith("/")?n:hJe(n,t):t,search:mJe(r),hash:yJe(o)}}function hJe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function HP(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Zk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h$(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Yd(e):(o=Jn({},e),Rn(!o.pathname||!o.pathname.includes("?"),HP("?","pathname","search",o)),Rn(!o.pathname||!o.pathname.includes("#"),HP("#","pathname","hash",o)),Rn(!o.search||!o.search.includes("#"),HP("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=pJe(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const xd=e=>e.join("/").replace(/\/\/+/g,"/"),gJe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mJe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,yJe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class g${constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function iie(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const aie=["post","put","patch","delete"],vJe=new Set(aie),bJe=["get",...aie],wJe=new Set(bJe),SJe=new Set([301,302,303,307,308]),xJe=new Set([307,308]),qP={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},CJe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Hz={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},sie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,lie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AJe=!lie,_Je=e=>!!e.hasErrorBoundary;function EJe(e){Rn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||_Je,n={},r=nie(e.routes,t,void 0,n),o,i=Jn({v7_normalizeFormMethod:!1},e.future),a=null,s=new Set,l=null,u=null,c=null,f=e.hydrationData!=null,p=Ih(r,e.history.location,e.basename),g=null;if(p==null){let S=Vu(404,{pathname:e.history.location.pathname}),{matches:P,route:V}=Xz(r);p=P,g={[V.id]:S}}let m=!p.some(S=>S.route.lazy)&&(!p.some(S=>S.route.loader)||e.hydrationData!=null),y,v={historyAction:e.history.action,location:e.history.location,matches:p,initialized:m,navigation:qP,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},x=Xo.Pop,w=!1,I,_=!1,R=!1,U=[],D=[],b=new Map,T=0,C=-1,O=new Map,$=new Set,j=new Map,L=new Map,B=new Map,H=!1;function q(){return a=e.history.listen(S=>{let{action:P,location:V,delta:K}=S;if(H){H=!1;return}sy(B.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ee=Ge({currentLocation:v.location,nextLocation:V,historyAction:P});if(ee&&K!=null){H=!0,e.history.go(K*-1),We(ee,{state:"blocked",location:V,proceed(){We(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(K)},reset(){je(ee),ie({blockers:new Map(y.state.blockers)})}});return}return Ae(P,V)}),v.initialized||Ae(Xo.Pop,v.location),y}function Y(){a&&a(),s.clear(),I&&I.abort(),v.fetchers.forEach((S,P)=>_e(P)),v.blockers.forEach((S,P)=>je(P))}function W(S){return s.add(S),()=>s.delete(S)}function ie(S){v=Jn({},v,S),s.forEach(P=>P(v))}function le(S,P){var V,K;let ee=v.actionData!=null&&v.navigation.formMethod!=null&&od(v.navigation.formMethod)&&v.navigation.state==="loading"&&((V=S.state)==null?void 0:V._isRedirect)!==!0,be;P.actionData?Object.keys(P.actionData).length>0?be=P.actionData:be=null:ee?be=v.actionData:be=null;let Me=P.loaderData?Jz(v.loaderData,P.loaderData,P.matches||[],P.errors):v.loaderData;for(let[Pe]of B)je(Pe);let we=w===!0||v.navigation.formMethod!=null&&od(v.navigation.formMethod)&&((K=S.state)==null?void 0:K._isRedirect)!==!0;o&&(r=o,o=void 0),ie(Jn({},P,{actionData:be,loaderData:Me,historyAction:x,location:S,initialized:!0,navigation:qP,revalidation:"idle",restoreScrollPosition:N(S,P.matches||v.matches),preventScrollReset:we,blockers:new Map(v.blockers)})),_||x===Xo.Pop||(x===Xo.Push?e.history.push(S,S.state):x===Xo.Replace&&e.history.replace(S,S.state)),x=Xo.Pop,w=!1,_=!1,R=!1,U=[],D=[]}async function fe(S,P){if(typeof S=="number"){e.history.go(S);return}let{path:V,submission:K,error:ee}=qz(S,i,P),be=v.location,Me=yw(v.location,V,P&&P.state);Me=Jn({},Me,e.history.encodeLocation(Me));let we=P&&P.replace!=null?P.replace:void 0,Pe=Xo.Push;we===!0?Pe=Xo.Replace:we===!1||K!=null&&od(K.formMethod)&&K.formAction===v.location.pathname+v.location.search&&(Pe=Xo.Replace);let Ye=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,ze=Ge({currentLocation:be,nextLocation:Me,historyAction:Pe});if(ze){We(ze,{state:"blocked",location:Me,proceed(){We(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),fe(S,P)},reset(){je(ze),ie({blockers:new Map(v.blockers)})}});return}return await Ae(Pe,Me,{submission:K,pendingError:ee,preventScrollReset:Ye,replace:P&&P.replace})}function Ee(){if(ge(),ie({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){Ae(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}Ae(x||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function Ae(S,P,V){I&&I.abort(),I=null,x=S,_=(V&&V.startUninterruptedRevalidation)===!0,Z(v.location,v.matches),w=(V&&V.preventScrollReset)===!0;let K=o||r,ee=V&&V.overrideNavigation,be=Ih(K,P,e.basename);if(!be){let Qt=Vu(404,{pathname:P.pathname}),{matches:Zt,route:An}=Xz(K);Fe(),le(P,{matches:Zt,loaderData:{},errors:{[An.id]:Qt}});return}if(MJe(v.location,P)&&!(V&&V.submission&&od(V.submission.formMethod))){le(P,{matches:be});return}I=new AbortController;let Me=T1(e.history,P,I.signal,V&&V.submission),we,Pe;if(V&&V.pendingError)Pe={[i0(be).route.id]:V.pendingError};else if(V&&V.submission&&od(V.submission.formMethod)){let Qt=await Ie(Me,P,V.submission,be,{replace:V.replace});if(Qt.shortCircuited)return;we=Qt.pendingActionData,Pe=Qt.pendingActionError,ee=Jn({state:"loading",location:P},V.submission),Me=new Request(Me.url,{signal:Me.signal})}let{shortCircuited:Ye,loaderData:ze,errors:rn}=await De(Me,P,be,ee,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,we,Pe);Ye||(I=null,le(P,Jn({matches:be},we?{actionData:we}:{},{loaderData:ze,errors:rn})))}async function Ie(S,P,V,K,ee){ge();let be=Jn({state:"submitting",location:P},V);ie({navigation:be});let Me,we=MR(K,P);if(!we.route.action&&!we.route.lazy)Me={type:li.error,error:Vu(405,{method:S.method,pathname:P.pathname,routeId:we.route.id})};else if(Me=await E1("action",S,we,K,n,t,y.basename),S.signal.aborted)return{shortCircuited:!0};if(x0(Me)){let Pe;return ee&&ee.replace!=null?Pe=ee.replace:Pe=Me.location===v.location.pathname+v.location.search,await he(v,Me,{submission:V,replace:Pe}),{shortCircuited:!0}}if(yb(Me)){let Pe=i0(K,we.route.id);return(ee&&ee.replace)!==!0&&(x=Xo.Push),{pendingActionData:{},pendingActionError:{[Pe.route.id]:Me.error}}}if(Ph(Me))throw Vu(400,{type:"defer-action"});return{pendingActionData:{[we.route.id]:Me.data}}}async function De(S,P,V,K,ee,be,Me,we,Pe){let Ye=K;Ye||(Ye=Jn({state:"loading",location:P,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ee));let ze=ee||be?ee||be:Ye.formMethod&&Ye.formAction&&Ye.formData&&Ye.formEncType?{formMethod:Ye.formMethod,formAction:Ye.formAction,formData:Ye.formData,formEncType:Ye.formEncType}:void 0,rn=o||r,[Qt,Zt]=Qz(e.history,v,V,ze,P,R,U,D,j,rn,e.basename,we,Pe);if(Fe(Ir=>!(V&&V.some(nr=>nr.route.id===Ir))||Qt&&Qt.some(nr=>nr.route.id===Ir)),Qt.length===0&&Zt.length===0)return le(P,Jn({matches:V,loaderData:{},errors:Pe||null},we?{actionData:we}:{})),{shortCircuited:!0};if(!_){Zt.forEach(nr=>{let Si=v.fetchers.get(nr.key),G={state:"loading",data:Si&&Si.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(nr.key,G)});let Ir=we||v.actionData;ie(Jn({navigation:Ye},Ir?Object.keys(Ir).length===0?{actionData:null}:{actionData:Ir}:{},Zt.length>0?{fetchers:new Map(v.fetchers)}:{}))}C=++T,Zt.forEach(Ir=>b.set(Ir.key,I));let{results:An,loaderResults:br,fetcherResults:wr}=await pe(v.matches,V,Qt,Zt,S);if(S.signal.aborted)return{shortCircuited:!0};Zt.forEach(Ir=>b.delete(Ir.key));let kr=Zz(An);if(kr)return await he(v,kr,{replace:Me}),{shortCircuited:!0};let{loaderData:ti,errors:Yi}=Gz(v,V,Qt,br,Pe,Zt,wr,L);L.forEach((Ir,nr)=>{Ir.subscribe(Si=>{(Si||Ir.done)&&L.delete(nr)})}),Ve();let Gi=wt(C);return Jn({loaderData:ti,errors:Yi},Gi||Zt.length>0?{fetchers:new Map(v.fetchers)}:{})}function Ue(S){return v.fetchers.get(S)||CJe}function ce(S,P,V,K){if(AJe)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");b.has(S)&&Ne(S);let be=Ih(o||r,V,e.basename);if(!be){Ce(S,P,Vu(404,{pathname:V}));return}let{path:Me,submission:we}=qz(V,i,K,!0),Pe=MR(be,Me);if(w=(K&&K.preventScrollReset)===!0,we&&od(we.formMethod)){de(S,P,Me,Pe,be,we);return}j.set(S,{routeId:P,path:Me}),ve(S,P,Me,Pe,be,we)}async function de(S,P,V,K,ee,be){if(ge(),j.delete(S),!K.route.action&&!K.route.lazy){let F=Vu(405,{method:be.formMethod,pathname:V,routeId:P});Ce(S,P,F);return}let Me=v.fetchers.get(S),we=Jn({state:"submitting"},be,{data:Me&&Me.data," _hasFetcherDoneAnything ":!0});v.fetchers.set(S,we),ie({fetchers:new Map(v.fetchers)});let Pe=new AbortController,Ye=T1(e.history,V,Pe.signal,be);b.set(S,Pe);let ze=await E1("action",Ye,K,ee,n,t,y.basename);if(Ye.signal.aborted){b.get(S)===Pe&&b.delete(S);return}if(x0(ze)){b.delete(S),$.add(S);let F=Jn({state:"loading"},be,{data:void 0," _hasFetcherDoneAnything ":!0});return v.fetchers.set(S,F),ie({fetchers:new Map(v.fetchers)}),he(v,ze,{submission:be,isFetchActionRedirect:!0})}if(yb(ze)){Ce(S,P,ze.error);return}if(Ph(ze))throw Vu(400,{type:"defer-action"});let rn=v.navigation.location||v.location,Qt=T1(e.history,rn,Pe.signal),Zt=o||r,An=v.navigation.state!=="idle"?Ih(Zt,v.navigation.location,e.basename):v.matches;Rn(An,"Didn't find any matches after fetcher action");let br=++T;O.set(S,br);let wr=Jn({state:"loading",data:ze.data},be,{" _hasFetcherDoneAnything ":!0});v.fetchers.set(S,wr);let[kr,ti]=Qz(e.history,v,An,be,rn,R,U,D,j,Zt,e.basename,{[K.route.id]:ze.data},void 0);ti.filter(F=>F.key!==S).forEach(F=>{let ae=F.key,Re=v.fetchers.get(ae),Le={state:"loading",data:Re&&Re.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(ae,Le),b.set(ae,Pe)}),ie({fetchers:new Map(v.fetchers)});let{results:Yi,loaderResults:Gi,fetcherResults:Ir}=await pe(v.matches,An,kr,ti,Qt);if(Pe.signal.aborted)return;O.delete(S),b.delete(S),ti.forEach(F=>b.delete(F.key));let nr=Zz(Yi);if(nr)return he(v,nr);let{loaderData:Si,errors:G}=Gz(v,v.matches,kr,Gi,void 0,ti,Ir,L),re={state:"idle",data:ze.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(S,re);let ne=wt(br);v.navigation.state==="loading"&&br>C?(Rn(x,"Expected pending action"),I&&I.abort(),le(v.navigation.location,{matches:An,loaderData:Si,errors:G,fetchers:new Map(v.fetchers)})):(ie(Jn({errors:G,loaderData:Jz(v.loaderData,Si,An,G)},ne?{fetchers:new Map(v.fetchers)}:{})),R=!1)}async function ve(S,P,V,K,ee,be){let Me=v.fetchers.get(S),we=Jn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},be,{data:Me&&Me.data," _hasFetcherDoneAnything ":!0});v.fetchers.set(S,we),ie({fetchers:new Map(v.fetchers)});let Pe=new AbortController,Ye=T1(e.history,V,Pe.signal);b.set(S,Pe);let ze=await E1("loader",Ye,K,ee,n,t,y.basename);if(Ph(ze)&&(ze=await fie(ze,Ye.signal,!0)||ze),b.get(S)===Pe&&b.delete(S),Ye.signal.aborted)return;if(x0(ze)){await he(v,ze);return}if(yb(ze)){let Qt=i0(v.matches,P);v.fetchers.delete(S),ie({fetchers:new Map(v.fetchers),errors:{[Qt.route.id]:ze.error}});return}Rn(!Ph(ze),"Unhandled fetcher deferred data");let rn={state:"idle",data:ze.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(S,rn),ie({fetchers:new Map(v.fetchers)})}async function he(S,P,V){var K;let{submission:ee,replace:be,isFetchActionRedirect:Me}=V===void 0?{}:V;P.revalidate&&(R=!0);let we=yw(S.location,P.location,Jn({_isRedirect:!0},Me?{_isFetchActionRedirect:!0}:{}));if(Rn(we,"Expected a location on the redirect navigation"),sie.test(P.location)&&lie&&typeof((K=window)==null?void 0:K.location)<"u"){let Zt=e.history.createURL(P.location),An=ZS(Zt.pathname,e.basename||"/")==null;if(window.location.origin!==Zt.origin||An){be?window.location.replace(P.location):window.location.assign(P.location);return}}I=null;let Pe=be===!0?Xo.Replace:Xo.Push,{formMethod:Ye,formAction:ze,formEncType:rn,formData:Qt}=S.navigation;!ee&&Ye&&ze&&Qt&&rn&&(ee={formMethod:Ye,formAction:ze,formEncType:rn,formData:Qt}),xJe.has(P.status)&&ee&&od(ee.formMethod)?await Ae(Pe,we,{submission:Jn({},ee,{formAction:P.location}),preventScrollReset:w}):Me?await Ae(Pe,we,{overrideNavigation:{state:"loading",location:we,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ee,preventScrollReset:w}):await Ae(Pe,we,{overrideNavigation:{state:"loading",location:we,formMethod:ee?ee.formMethod:void 0,formAction:ee?ee.formAction:void 0,formEncType:ee?ee.formEncType:void 0,formData:ee?ee.formData:void 0},preventScrollReset:w})}async function pe(S,P,V,K,ee){let be=await Promise.all([...V.map(Pe=>E1("loader",ee,Pe,P,n,t,y.basename)),...K.map(Pe=>Pe.matches&&Pe.match?E1("loader",T1(e.history,Pe.path,ee.signal),Pe.match,Pe.matches,n,t,y.basename):{type:li.error,error:Vu(404,{pathname:Pe.path})})]),Me=be.slice(0,V.length),we=be.slice(V.length);return await Promise.all([eV(S,V,Me,ee.signal,!1,v.loaderData),eV(S,K.map(Pe=>Pe.match),we,ee.signal,!0)]),{results:be,loaderResults:Me,fetcherResults:we}}function ge(){R=!0,U.push(...Fe()),j.forEach((S,P)=>{b.has(P)&&(D.push(P),Ne(P))})}function Ce(S,P,V){let K=i0(v.matches,P);_e(S),ie({errors:{[K.route.id]:V},fetchers:new Map(v.fetchers)})}function _e(S){b.has(S)&&Ne(S),j.delete(S),O.delete(S),$.delete(S),v.fetchers.delete(S)}function Ne(S){let P=b.get(S);Rn(P,"Expected fetch controller: "+S),P.abort(),b.delete(S)}function Be(S){for(let P of S){let K={state:"idle",data:Ue(P).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(P,K)}}function Ve(){let S=[];for(let P of $){let V=v.fetchers.get(P);Rn(V,"Expected fetcher: "+P),V.state==="loading"&&($.delete(P),S.push(P))}Be(S)}function wt(S){let P=[];for(let[V,K]of O)if(K0}function xe(S,P){let V=v.blockers.get(S)||Hz;return B.get(S)!==P&&B.set(S,P),V}function je(S){v.blockers.delete(S),B.delete(S)}function We(S,P){let V=v.blockers.get(S)||Hz;Rn(V.state==="unblocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="proceeding"||V.state==="blocked"&&P.state==="unblocked"||V.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+P.state),v.blockers.set(S,P),ie({blockers:new Map(v.blockers)})}function Ge(S){let{currentLocation:P,nextLocation:V,historyAction:K}=S;if(B.size===0)return;B.size>1&&sy(!1,"A router only supports one blocker at a time");let ee=Array.from(B.entries()),[be,Me]=ee[ee.length-1],we=v.blockers.get(be);if(!(we&&we.state==="proceeding")&&Me({currentLocation:P,nextLocation:V,historyAction:K}))return be}function Fe(S){let P=[];return L.forEach((V,K)=>{(!S||S(K))&&(V.cancel(),P.push(K),L.delete(K))}),P}function te(S,P,V){if(l=S,c=P,u=V||(K=>K.key),!f&&v.navigation===qP){f=!0;let K=N(v.location,v.matches);K!=null&&ie({restoreScrollPosition:K})}return()=>{l=null,c=null,u=null}}function Z(S,P){if(l&&u&&c){let V=P.map(ee=>tV(ee,v.loaderData)),K=u(S,V)||S.key;l[K]=c()}}function N(S,P){if(l&&u&&c){let V=P.map(be=>tV(be,v.loaderData)),K=u(S,V)||S.key,ee=l[K];if(typeof ee=="number")return ee}return null}function k(S){o=S}return y={get basename(){return e.basename},get state(){return v},get routes(){return r},initialize:q,subscribe:W,enableScrollRestoration:te,navigate:fe,fetch:ce,revalidate:Ee,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Ue,deleteFetcher:_e,dispose:Y,getBlocker:xe,deleteBlocker:je,_internalFetchControllers:b,_internalActiveDeferreds:L,_internalSetRoutes:k},y}function TJe(e){return e!=null&&"formData"in e}function qz(e,t,n,r){r===void 0&&(r=!1);let o=typeof e=="string"?e:Rd(e);if(!n||!TJe(n))return{path:o};if(n.formMethod&&!DJe(n.formMethod))return{path:o,error:Vu(405,{method:n.formMethod})};let i;if(n.formData){let l=n.formMethod||"get";if(i={formMethod:t.v7_normalizeFormMethod?l.toUpperCase():l.toLowerCase(),formAction:die(o),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},od(i.formMethod))return{path:o,submission:i}}let a=Yd(o),s=cie(n.formData);return r&&a.search&&pie(a.search)&&s.append("index",""),a.search="?"+s,{path:Rd(a),submission:i}}function kJe(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Qz(e,t,n,r,o,i,a,s,l,u,c,f,p){let g=p?Object.values(p)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),y=e.createURL(o),v=i||m.toString()===y.toString()||m.search!==y.search,x=p?Object.keys(p)[0]:void 0,I=kJe(n,x).filter((R,U)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(IJe(t.loaderData,t.matches[U],R)||a.some(T=>T===R.route.id))return!0;let D=t.matches[U],b=R;return Kz(R,Jn({currentUrl:m,currentParams:D.params,nextUrl:y,nextParams:b.params},r,{actionResult:g,defaultShouldRevalidate:v||uie(D,b)}))}),_=[];return l.forEach((R,U)=>{if(!n.some(C=>C.route.id===R.routeId))return;let D=Ih(u,R.path,c);if(!D){_.push(Jn({key:U},R,{matches:null,match:null}));return}let b=MR(D,R.path);if(s.includes(U)){_.push(Jn({key:U,matches:D,match:b},R));return}Kz(b,Jn({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:v}))&&_.push(Jn({key:U,matches:D,match:b},R))}),[I,_]}function IJe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function uie(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kz(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Yz(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Rn(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";sy(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!JGe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,{hasErrorBoundary:t(Jn({},o)),lazy:void 0})}async function E1(e,t,n,r,o,i,a,s,l,u){a===void 0&&(a="/"),s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,p,g=v=>{let x,w=new Promise((I,_)=>x=_);return p=()=>x(),t.signal.addEventListener("abort",p),Promise.race([v({request:t,params:n.params,context:u}),w])};try{let v=n.route[e];if(n.route.lazy)if(v)f=(await Promise.all([g(v),Yz(n.route,i,o)]))[0];else if(await Yz(n.route,i,o),v=n.route[e],v)f=await g(v);else{if(e==="action")throw Vu(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:li.data,data:void 0}}else Rn(v,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),f=await g(v);Rn(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){c=li.error,f=v}finally{p&&t.signal.removeEventListener("abort",p)}if(RJe(f)){let v=f.status;if(SJe.has(v)){let I=f.headers.get("Location");if(Rn(I,"Redirects returned/thrown from loaders/actions must have a Location header"),sie.test(I)){if(!s){let _=new URL(t.url),R=I.startsWith("//")?new URL(_.protocol+I):new URL(I),U=ZS(R.pathname,a)!=null;R.origin===_.origin&&U&&(I=R.pathname+R.search+R.hash)}}else{let _=r.slice(0,r.indexOf(n)+1),R=Zk(_).map(D=>D.pathnameBase),U=h$(I,R,new URL(t.url).pathname);if(Rn(Rd(U),"Unable to resolve redirect location: "+I),a){let D=U.pathname;U.pathname=D==="/"?a:xd([a,D])}I=Rd(U)}if(s)throw f.headers.set("Location",I),f;return{type:li.redirect,status:v,location:I,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||li.data,response:f};let x,w=f.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?x=await f.json():x=await f.text(),c===li.error?{type:c,error:new g$(v,f.statusText,x),headers:f.headers}:{type:li.data,data:x,statusCode:f.status,headers:f.headers}}if(c===li.error)return{type:c,error:f};if(OJe(f)){var m,y;return{type:li.deferred,deferredData:f,statusCode:(m=f.init)==null?void 0:m.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:li.data,data:f}}function T1(e,t,n,r){let o=e.createURL(die(t)).toString(),i={signal:n};if(r&&od(r.formMethod)){let{formMethod:a,formEncType:s,formData:l}=r;i.method=a.toUpperCase(),i.body=s==="application/x-www-form-urlencoded"?cie(l):l}return new Request(o,i)}function cie(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function PJe(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Rn(!x0(c),"Cannot handle redirect results in processLoaderData"),yb(c)){let g=i0(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=m),i[p]=void 0,l||(l=!0,s=iie(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Ph(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function Gz(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=PJe(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Xz(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Vu(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"&&(s="defer() is not supported in actions")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new g$(e||500,a,new Error(s),!0)}function Zz(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(x0(n))return n}}function die(e){let t=typeof e=="string"?Yd(e):e;return Rd(Jn({},t,{hash:""}))}function MJe(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Ph(e){return e.type===li.deferred}function yb(e){return e.type===li.error}function x0(e){return(e&&e.type)===li.redirect}function OJe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function RJe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function DJe(e){return wJe.has(e.toLowerCase())}function od(e){return vJe.has(e.toLowerCase())}async function eV(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!uie(u,l)&&(i&&i[l.route.id])!==void 0;Ph(s)&&(o||c)&&await fie(s,r,o).then(f=>{f&&(n[a]=f||n[a])})}}async function fie(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:li.data,data:e.deferredData.unwrappedData}}catch(o){return{type:li.error,error:o}}return{type:li.data,data:e.deferredData.data}}}function pie(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function tV(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function MR(e,t){let n=typeof t=="string"?Yd(t).search:t.search;if(e[e.length-1].route.index&&pie(n||""))return e[e.length-1];let r=Zk(e);return r[r.length-1]}/** + */function Jn(){return Jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function sy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function fJe(){return Math.random().toString(36).substr(2,8)}function zz(e,t){return{usr:e.state,key:e.key,idx:t}}function yw(e,t,n,r){return n===void 0&&(n=null),Jn({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Yd(t):t,{state:n,key:t&&t.key||r||fJe()})}function Rd(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Yd(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function pJe(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s=Xo.Pop,l=null,u=c();u==null&&(u=0,a.replaceState(Jn({},a.state,{idx:u}),""));function c(){return(a.state||{idx:null}).idx}function f(){s=Xo.Pop;let v=c(),x=v==null?null:v-u;u=v,l&&l({action:s,location:y.location,delta:x})}function p(v,x){s=Xo.Push;let w=yw(y.location,v,x);n&&n(w,v),u=c()+1;let I=zz(w,u),_=y.createHref(w);try{a.pushState(I,"",_)}catch{o.location.assign(_)}i&&l&&l({action:s,location:y.location,delta:1})}function g(v,x){s=Xo.Replace;let w=yw(y.location,v,x);n&&n(w,v),u=c();let I=zz(w,u),_=y.createHref(w);a.replaceState(I,"",_),i&&l&&l({action:s,location:y.location,delta:0})}function m(v){let x=o.location.origin!=="null"?o.location.origin:o.location.href,w=typeof v=="string"?v:Rd(v);return Rn(x,"No window.location.(origin|href) available to create URL for href: "+w),new URL(w,x)}let y={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Wz,f),l=v,()=>{o.removeEventListener(Wz,f),l=null}},createHref(v){return t(o,v)},createURL:m,encodeLocation(v){let x=m(v);return{pathname:x.pathname,search:x.search,hash:x.hash}},push:p,replace:g,go(v){return a.go(v)}};return y}var li;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(li||(li={}));const hJe=new Set(["lazy","caseSensitive","path","id","index","children"]);function gJe(e){return e.index===!0}function tie(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((o,i)=>{let a=[...n,i],s=typeof o.id=="string"?o.id:a.join("-");if(Rn(o.index!==!0||!o.children,"Cannot specify children on an index route"),Rn(!r[s],'Found a route id collision on id "'+s+`". Route id's must be globally unique within Data Router usages`),gJe(o)){let l=Jn({},o,{hasErrorBoundary:t(o),id:s});return r[s]=l,l}else{let l=Jn({},o,{id:s,hasErrorBoundary:t(o),children:void 0});return r[s]=l,o.children&&(l.children=tie(o.children,t,a,r)),l}})}function Ih(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Yd(t):t,o=ZS(r.pathname||"/",n);if(o==null)return null;let i=nie(e);mJe(i);let a=null;for(let s=0;a==null&&s{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};l.relativePath.startsWith("/")&&(Rn(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=xd([r,l.relativePath]),c=n.concat(l);i.children&&i.children.length>0&&(Rn(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),nie(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:CJe(u,i.index),routesMeta:c})};return e.forEach((i,a)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,a);else for(let l of rie(i.path))o(i,a,l)}),t}function rie(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=rie(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function mJe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:AJe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const yJe=/^:\w+$/,vJe=3,bJe=2,wJe=1,SJe=10,xJe=-2,Vz=e=>e==="*";function CJe(e,t){let n=e.split("/"),r=n.length;return n.some(Vz)&&(r+=xJe),t&&(r+=bJe),n.filter(o=>!Vz(o)).reduce((o,i)=>o+(yJe.test(i)?vJe:i===""?wJe:SJe),r)}function AJe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function _Je(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let a=0;a{if(c==="*"){let p=s[f]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}return u[c]=IJe(s[f]||"",c),u},{}),pathname:i,pathnameBase:a,pattern:e}}function TJe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),sy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(a,s)=>(r.push(s),"/([^\\/]+)"));return e.endsWith("*")?(r.push("*"),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function kJe(e){try{return decodeURI(e)}catch(t){return sy(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function IJe(e,t){try{return decodeURIComponent(e)}catch(n){return sy(!1,'The value for the URL param "'+t+'" will not be decoded because'+(' the string "'+e+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+n+").")),e}}function ZS(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function PJe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Yd(e):e;return{pathname:n?n.startsWith("/")?n:MJe(n,t):t,search:RJe(r),hash:DJe(o)}}function MJe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function qP(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function eI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function h$(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=Yd(e):(o=Jn({},e),Rn(!o.pathname||!o.pathname.includes("?"),qP("?","pathname","search",o)),Rn(!o.pathname||!o.pathname.includes("#"),qP("#","pathname","hash",o)),Rn(!o.search||!o.search.includes("#"),qP("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(r||a==null)s=n;else{let f=t.length-1;if(a.startsWith("..")){let p=a.split("/");for(;p[0]==="..";)p.shift(),f-=1;o.pathname=p.join("/")}s=f>=0?t[f]:"/"}let l=PJe(o,s),u=a&&a!=="/"&&a.endsWith("/"),c=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const xd=e=>e.join("/").replace(/\/\/+/g,"/"),OJe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),RJe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,DJe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class g${constructor(t,n,r,o){o===void 0&&(o=!1),this.status=t,this.statusText=n||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function oie(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const iie=["post","put","patch","delete"],BJe=new Set(iie),$Je=["get",...iie],LJe=new Set($Je),FJe=new Set([301,302,303,307,308]),NJe=new Set([307,308]),QP={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},UJe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},Hz={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},aie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sie=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jJe=!sie,WJe=e=>!!e.hasErrorBoundary;function zJe(e){Rn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let t=e.detectErrorBoundary||WJe,n={},r=tie(e.routes,t,void 0,n),o,i=Jn({v7_normalizeFormMethod:!1},e.future),a=null,s=new Set,l=null,u=null,c=null,f=e.hydrationData!=null,p=Ih(r,e.history.location,e.basename),g=null;if(p==null){let S=Hu(404,{pathname:e.history.location.pathname}),{matches:P,route:V}=Xz(r);p=P,g={[V.id]:S}}let m=!p.some(S=>S.route.lazy)&&(!p.some(S=>S.route.loader)||e.hydrationData!=null),y,v={historyAction:e.history.action,location:e.history.location,matches:p,initialized:m,navigation:QP,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||g,fetchers:new Map,blockers:new Map},x=Xo.Pop,w=!1,I,_=!1,R=!1,U=[],D=[],b=new Map,T=0,C=-1,O=new Map,$=new Set,j=new Map,L=new Map,B=new Map,H=!1;function q(){return a=e.history.listen(S=>{let{action:P,location:V,delta:K}=S;if(H){H=!1;return}sy(B.size===0||K!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let ee=Ge({currentLocation:v.location,nextLocation:V,historyAction:P});if(ee&&K!=null){H=!0,e.history.go(K*-1),We(ee,{state:"blocked",location:V,proceed(){We(ee,{state:"proceeding",proceed:void 0,reset:void 0,location:V}),e.history.go(K)},reset(){je(ee),ie({blockers:new Map(y.state.blockers)})}});return}return Ae(P,V)}),v.initialized||Ae(Xo.Pop,v.location),y}function Y(){a&&a(),s.clear(),I&&I.abort(),v.fetchers.forEach((S,P)=>_e(P)),v.blockers.forEach((S,P)=>je(P))}function W(S){return s.add(S),()=>s.delete(S)}function ie(S){v=Jn({},v,S),s.forEach(P=>P(v))}function le(S,P){var V,K;let ee=v.actionData!=null&&v.navigation.formMethod!=null&&od(v.navigation.formMethod)&&v.navigation.state==="loading"&&((V=S.state)==null?void 0:V._isRedirect)!==!0,be;P.actionData?Object.keys(P.actionData).length>0?be=P.actionData:be=null:ee?be=v.actionData:be=null;let Me=P.loaderData?Jz(v.loaderData,P.loaderData,P.matches||[],P.errors):v.loaderData;for(let[Pe]of B)je(Pe);let we=w===!0||v.navigation.formMethod!=null&&od(v.navigation.formMethod)&&((K=S.state)==null?void 0:K._isRedirect)!==!0;o&&(r=o,o=void 0),ie(Jn({},P,{actionData:be,loaderData:Me,historyAction:x,location:S,initialized:!0,navigation:QP,revalidation:"idle",restoreScrollPosition:N(S,P.matches||v.matches),preventScrollReset:we,blockers:new Map(v.blockers)})),_||x===Xo.Pop||(x===Xo.Push?e.history.push(S,S.state):x===Xo.Replace&&e.history.replace(S,S.state)),x=Xo.Pop,w=!1,_=!1,R=!1,U=[],D=[]}async function fe(S,P){if(typeof S=="number"){e.history.go(S);return}let{path:V,submission:K,error:ee}=qz(S,i,P),be=v.location,Me=yw(v.location,V,P&&P.state);Me=Jn({},Me,e.history.encodeLocation(Me));let we=P&&P.replace!=null?P.replace:void 0,Pe=Xo.Push;we===!0?Pe=Xo.Replace:we===!1||K!=null&&od(K.formMethod)&&K.formAction===v.location.pathname+v.location.search&&(Pe=Xo.Replace);let Ye=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,ze=Ge({currentLocation:be,nextLocation:Me,historyAction:Pe});if(ze){We(ze,{state:"blocked",location:Me,proceed(){We(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:Me}),fe(S,P)},reset(){je(ze),ie({blockers:new Map(v.blockers)})}});return}return await Ae(Pe,Me,{submission:K,pendingError:ee,preventScrollReset:Ye,replace:P&&P.replace})}function Ee(){if(ge(),ie({revalidation:"loading"}),v.navigation.state!=="submitting"){if(v.navigation.state==="idle"){Ae(v.historyAction,v.location,{startUninterruptedRevalidation:!0});return}Ae(x||v.historyAction,v.navigation.location,{overrideNavigation:v.navigation})}}async function Ae(S,P,V){I&&I.abort(),I=null,x=S,_=(V&&V.startUninterruptedRevalidation)===!0,Z(v.location,v.matches),w=(V&&V.preventScrollReset)===!0;let K=o||r,ee=V&&V.overrideNavigation,be=Ih(K,P,e.basename);if(!be){let Qt=Hu(404,{pathname:P.pathname}),{matches:Zt,route:An}=Xz(K);Fe(),le(P,{matches:Zt,loaderData:{},errors:{[An.id]:Qt}});return}if(KJe(v.location,P)&&!(V&&V.submission&&od(V.submission.formMethod))){le(P,{matches:be});return}I=new AbortController;let Me=T1(e.history,P,I.signal,V&&V.submission),we,Pe;if(V&&V.pendingError)Pe={[i0(be).route.id]:V.pendingError};else if(V&&V.submission&&od(V.submission.formMethod)){let Qt=await Ie(Me,P,V.submission,be,{replace:V.replace});if(Qt.shortCircuited)return;we=Qt.pendingActionData,Pe=Qt.pendingActionError,ee=Jn({state:"loading",location:P},V.submission),Me=new Request(Me.url,{signal:Me.signal})}let{shortCircuited:Ye,loaderData:ze,errors:rn}=await De(Me,P,be,ee,V&&V.submission,V&&V.fetcherSubmission,V&&V.replace,we,Pe);Ye||(I=null,le(P,Jn({matches:be},we?{actionData:we}:{},{loaderData:ze,errors:rn})))}async function Ie(S,P,V,K,ee){ge();let be=Jn({state:"submitting",location:P},V);ie({navigation:be});let Me,we=OR(K,P);if(!we.route.action&&!we.route.lazy)Me={type:li.error,error:Hu(405,{method:S.method,pathname:P.pathname,routeId:we.route.id})};else if(Me=await E1("action",S,we,K,n,t,y.basename),S.signal.aborted)return{shortCircuited:!0};if(x0(Me)){let Pe;return ee&&ee.replace!=null?Pe=ee.replace:Pe=Me.location===v.location.pathname+v.location.search,await he(v,Me,{submission:V,replace:Pe}),{shortCircuited:!0}}if(yb(Me)){let Pe=i0(K,we.route.id);return(ee&&ee.replace)!==!0&&(x=Xo.Push),{pendingActionData:{},pendingActionError:{[Pe.route.id]:Me.error}}}if(Ph(Me))throw Hu(400,{type:"defer-action"});return{pendingActionData:{[we.route.id]:Me.data}}}async function De(S,P,V,K,ee,be,Me,we,Pe){let Ye=K;Ye||(Ye=Jn({state:"loading",location:P,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ee));let ze=ee||be?ee||be:Ye.formMethod&&Ye.formAction&&Ye.formData&&Ye.formEncType?{formMethod:Ye.formMethod,formAction:Ye.formAction,formData:Ye.formData,formEncType:Ye.formEncType}:void 0,rn=o||r,[Qt,Zt]=Qz(e.history,v,V,ze,P,R,U,D,j,rn,e.basename,we,Pe);if(Fe(Ir=>!(V&&V.some(nr=>nr.route.id===Ir))||Qt&&Qt.some(nr=>nr.route.id===Ir)),Qt.length===0&&Zt.length===0)return le(P,Jn({matches:V,loaderData:{},errors:Pe||null},we?{actionData:we}:{})),{shortCircuited:!0};if(!_){Zt.forEach(nr=>{let Si=v.fetchers.get(nr.key),G={state:"loading",data:Si&&Si.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(nr.key,G)});let Ir=we||v.actionData;ie(Jn({navigation:Ye},Ir?Object.keys(Ir).length===0?{actionData:null}:{actionData:Ir}:{},Zt.length>0?{fetchers:new Map(v.fetchers)}:{}))}C=++T,Zt.forEach(Ir=>b.set(Ir.key,I));let{results:An,loaderResults:br,fetcherResults:wr}=await pe(v.matches,V,Qt,Zt,S);if(S.signal.aborted)return{shortCircuited:!0};Zt.forEach(Ir=>b.delete(Ir.key));let kr=Zz(An);if(kr)return await he(v,kr,{replace:Me}),{shortCircuited:!0};let{loaderData:ti,errors:Yi}=Gz(v,V,Qt,br,Pe,Zt,wr,L);L.forEach((Ir,nr)=>{Ir.subscribe(Si=>{(Si||Ir.done)&&L.delete(nr)})}),Ve();let Gi=wt(C);return Jn({loaderData:ti,errors:Yi},Gi||Zt.length>0?{fetchers:new Map(v.fetchers)}:{})}function Ue(S){return v.fetchers.get(S)||UJe}function ce(S,P,V,K){if(jJe)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");b.has(S)&&Ne(S);let be=Ih(o||r,V,e.basename);if(!be){Ce(S,P,Hu(404,{pathname:V}));return}let{path:Me,submission:we}=qz(V,i,K,!0),Pe=OR(be,Me);if(w=(K&&K.preventScrollReset)===!0,we&&od(we.formMethod)){de(S,P,Me,Pe,be,we);return}j.set(S,{routeId:P,path:Me}),ve(S,P,Me,Pe,be,we)}async function de(S,P,V,K,ee,be){if(ge(),j.delete(S),!K.route.action&&!K.route.lazy){let F=Hu(405,{method:be.formMethod,pathname:V,routeId:P});Ce(S,P,F);return}let Me=v.fetchers.get(S),we=Jn({state:"submitting"},be,{data:Me&&Me.data," _hasFetcherDoneAnything ":!0});v.fetchers.set(S,we),ie({fetchers:new Map(v.fetchers)});let Pe=new AbortController,Ye=T1(e.history,V,Pe.signal,be);b.set(S,Pe);let ze=await E1("action",Ye,K,ee,n,t,y.basename);if(Ye.signal.aborted){b.get(S)===Pe&&b.delete(S);return}if(x0(ze)){b.delete(S),$.add(S);let F=Jn({state:"loading"},be,{data:void 0," _hasFetcherDoneAnything ":!0});return v.fetchers.set(S,F),ie({fetchers:new Map(v.fetchers)}),he(v,ze,{submission:be,isFetchActionRedirect:!0})}if(yb(ze)){Ce(S,P,ze.error);return}if(Ph(ze))throw Hu(400,{type:"defer-action"});let rn=v.navigation.location||v.location,Qt=T1(e.history,rn,Pe.signal),Zt=o||r,An=v.navigation.state!=="idle"?Ih(Zt,v.navigation.location,e.basename):v.matches;Rn(An,"Didn't find any matches after fetcher action");let br=++T;O.set(S,br);let wr=Jn({state:"loading",data:ze.data},be,{" _hasFetcherDoneAnything ":!0});v.fetchers.set(S,wr);let[kr,ti]=Qz(e.history,v,An,be,rn,R,U,D,j,Zt,e.basename,{[K.route.id]:ze.data},void 0);ti.filter(F=>F.key!==S).forEach(F=>{let ae=F.key,Re=v.fetchers.get(ae),Le={state:"loading",data:Re&&Re.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(ae,Le),b.set(ae,Pe)}),ie({fetchers:new Map(v.fetchers)});let{results:Yi,loaderResults:Gi,fetcherResults:Ir}=await pe(v.matches,An,kr,ti,Qt);if(Pe.signal.aborted)return;O.delete(S),b.delete(S),ti.forEach(F=>b.delete(F.key));let nr=Zz(Yi);if(nr)return he(v,nr);let{loaderData:Si,errors:G}=Gz(v,v.matches,kr,Gi,void 0,ti,Ir,L),re={state:"idle",data:ze.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(S,re);let ne=wt(br);v.navigation.state==="loading"&&br>C?(Rn(x,"Expected pending action"),I&&I.abort(),le(v.navigation.location,{matches:An,loaderData:Si,errors:G,fetchers:new Map(v.fetchers)})):(ie(Jn({errors:G,loaderData:Jz(v.loaderData,Si,An,G)},ne?{fetchers:new Map(v.fetchers)}:{})),R=!1)}async function ve(S,P,V,K,ee,be){let Me=v.fetchers.get(S),we=Jn({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},be,{data:Me&&Me.data," _hasFetcherDoneAnything ":!0});v.fetchers.set(S,we),ie({fetchers:new Map(v.fetchers)});let Pe=new AbortController,Ye=T1(e.history,V,Pe.signal);b.set(S,Pe);let ze=await E1("loader",Ye,K,ee,n,t,y.basename);if(Ph(ze)&&(ze=await die(ze,Ye.signal,!0)||ze),b.get(S)===Pe&&b.delete(S),Ye.signal.aborted)return;if(x0(ze)){await he(v,ze);return}if(yb(ze)){let Qt=i0(v.matches,P);v.fetchers.delete(S),ie({fetchers:new Map(v.fetchers),errors:{[Qt.route.id]:ze.error}});return}Rn(!Ph(ze),"Unhandled fetcher deferred data");let rn={state:"idle",data:ze.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(S,rn),ie({fetchers:new Map(v.fetchers)})}async function he(S,P,V){var K;let{submission:ee,replace:be,isFetchActionRedirect:Me}=V===void 0?{}:V;P.revalidate&&(R=!0);let we=yw(S.location,P.location,Jn({_isRedirect:!0},Me?{_isFetchActionRedirect:!0}:{}));if(Rn(we,"Expected a location on the redirect navigation"),aie.test(P.location)&&sie&&typeof((K=window)==null?void 0:K.location)<"u"){let Zt=e.history.createURL(P.location),An=ZS(Zt.pathname,e.basename||"/")==null;if(window.location.origin!==Zt.origin||An){be?window.location.replace(P.location):window.location.assign(P.location);return}}I=null;let Pe=be===!0?Xo.Replace:Xo.Push,{formMethod:Ye,formAction:ze,formEncType:rn,formData:Qt}=S.navigation;!ee&&Ye&&ze&&Qt&&rn&&(ee={formMethod:Ye,formAction:ze,formEncType:rn,formData:Qt}),NJe.has(P.status)&&ee&&od(ee.formMethod)?await Ae(Pe,we,{submission:Jn({},ee,{formAction:P.location}),preventScrollReset:w}):Me?await Ae(Pe,we,{overrideNavigation:{state:"loading",location:we,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},fetcherSubmission:ee,preventScrollReset:w}):await Ae(Pe,we,{overrideNavigation:{state:"loading",location:we,formMethod:ee?ee.formMethod:void 0,formAction:ee?ee.formAction:void 0,formEncType:ee?ee.formEncType:void 0,formData:ee?ee.formData:void 0},preventScrollReset:w})}async function pe(S,P,V,K,ee){let be=await Promise.all([...V.map(Pe=>E1("loader",ee,Pe,P,n,t,y.basename)),...K.map(Pe=>Pe.matches&&Pe.match?E1("loader",T1(e.history,Pe.path,ee.signal),Pe.match,Pe.matches,n,t,y.basename):{type:li.error,error:Hu(404,{pathname:Pe.path})})]),Me=be.slice(0,V.length),we=be.slice(V.length);return await Promise.all([eV(S,V,Me,ee.signal,!1,v.loaderData),eV(S,K.map(Pe=>Pe.match),we,ee.signal,!0)]),{results:be,loaderResults:Me,fetcherResults:we}}function ge(){R=!0,U.push(...Fe()),j.forEach((S,P)=>{b.has(P)&&(D.push(P),Ne(P))})}function Ce(S,P,V){let K=i0(v.matches,P);_e(S),ie({errors:{[K.route.id]:V},fetchers:new Map(v.fetchers)})}function _e(S){b.has(S)&&Ne(S),j.delete(S),O.delete(S),$.delete(S),v.fetchers.delete(S)}function Ne(S){let P=b.get(S);Rn(P,"Expected fetch controller: "+S),P.abort(),b.delete(S)}function Be(S){for(let P of S){let K={state:"idle",data:Ue(P).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};v.fetchers.set(P,K)}}function Ve(){let S=[];for(let P of $){let V=v.fetchers.get(P);Rn(V,"Expected fetcher: "+P),V.state==="loading"&&($.delete(P),S.push(P))}Be(S)}function wt(S){let P=[];for(let[V,K]of O)if(K0}function xe(S,P){let V=v.blockers.get(S)||Hz;return B.get(S)!==P&&B.set(S,P),V}function je(S){v.blockers.delete(S),B.delete(S)}function We(S,P){let V=v.blockers.get(S)||Hz;Rn(V.state==="unblocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="blocked"||V.state==="blocked"&&P.state==="proceeding"||V.state==="blocked"&&P.state==="unblocked"||V.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+V.state+" -> "+P.state),v.blockers.set(S,P),ie({blockers:new Map(v.blockers)})}function Ge(S){let{currentLocation:P,nextLocation:V,historyAction:K}=S;if(B.size===0)return;B.size>1&&sy(!1,"A router only supports one blocker at a time");let ee=Array.from(B.entries()),[be,Me]=ee[ee.length-1],we=v.blockers.get(be);if(!(we&&we.state==="proceeding")&&Me({currentLocation:P,nextLocation:V,historyAction:K}))return be}function Fe(S){let P=[];return L.forEach((V,K)=>{(!S||S(K))&&(V.cancel(),P.push(K),L.delete(K))}),P}function te(S,P,V){if(l=S,c=P,u=V||(K=>K.key),!f&&v.navigation===QP){f=!0;let K=N(v.location,v.matches);K!=null&&ie({restoreScrollPosition:K})}return()=>{l=null,c=null,u=null}}function Z(S,P){if(l&&u&&c){let V=P.map(ee=>tV(ee,v.loaderData)),K=u(S,V)||S.key;l[K]=c()}}function N(S,P){if(l&&u&&c){let V=P.map(be=>tV(be,v.loaderData)),K=u(S,V)||S.key,ee=l[K];if(typeof ee=="number")return ee}return null}function k(S){o=S}return y={get basename(){return e.basename},get state(){return v},get routes(){return r},initialize:q,subscribe:W,enableScrollRestoration:te,navigate:fe,fetch:ce,revalidate:Ee,createHref:S=>e.history.createHref(S),encodeLocation:S=>e.history.encodeLocation(S),getFetcher:Ue,deleteFetcher:_e,dispose:Y,getBlocker:xe,deleteBlocker:je,_internalFetchControllers:b,_internalActiveDeferreds:L,_internalSetRoutes:k},y}function VJe(e){return e!=null&&"formData"in e}function qz(e,t,n,r){r===void 0&&(r=!1);let o=typeof e=="string"?e:Rd(e);if(!n||!VJe(n))return{path:o};if(n.formMethod&&!JJe(n.formMethod))return{path:o,error:Hu(405,{method:n.formMethod})};let i;if(n.formData){let l=n.formMethod||"get";if(i={formMethod:t.v7_normalizeFormMethod?l.toUpperCase():l.toLowerCase(),formAction:cie(o),formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:n.formData},od(i.formMethod))return{path:o,submission:i}}let a=Yd(o),s=uie(n.formData);return r&&a.search&&fie(a.search)&&s.append("index",""),a.search="?"+s,{path:Rd(a),submission:i}}function HJe(e,t){let n=e;if(t){let r=e.findIndex(o=>o.route.id===t);r>=0&&(n=e.slice(0,r))}return n}function Qz(e,t,n,r,o,i,a,s,l,u,c,f,p){let g=p?Object.values(p)[0]:f?Object.values(f)[0]:void 0,m=e.createURL(t.location),y=e.createURL(o),v=i||m.toString()===y.toString()||m.search!==y.search,x=p?Object.keys(p)[0]:void 0,I=HJe(n,x).filter((R,U)=>{if(R.route.lazy)return!0;if(R.route.loader==null)return!1;if(qJe(t.loaderData,t.matches[U],R)||a.some(T=>T===R.route.id))return!0;let D=t.matches[U],b=R;return Kz(R,Jn({currentUrl:m,currentParams:D.params,nextUrl:y,nextParams:b.params},r,{actionResult:g,defaultShouldRevalidate:v||lie(D,b)}))}),_=[];return l.forEach((R,U)=>{if(!n.some(C=>C.route.id===R.routeId))return;let D=Ih(u,R.path,c);if(!D){_.push(Jn({key:U},R,{matches:null,match:null}));return}let b=OR(D,R.path);if(s.includes(U)){_.push(Jn({key:U,matches:D,match:b},R));return}Kz(b,Jn({currentUrl:m,currentParams:t.matches[t.matches.length-1].params,nextUrl:y,nextParams:n[n.length-1].params},r,{actionResult:g,defaultShouldRevalidate:v}))&&_.push(Jn({key:U,matches:D,match:b},R))}),[I,_]}function qJe(e,t,n){let r=!t||n.route.id!==t.route.id,o=e[n.route.id]===void 0;return r||o}function lie(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Kz(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function Yz(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=n[e.id];Rn(o,"No route found in manifest");let i={};for(let a in r){let l=o[a]!==void 0&&a!=="hasErrorBoundary";sy(!l,'Route "'+o.id+'" has a static property "'+a+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+a+'" will be ignored.')),!l&&!hJe.has(a)&&(i[a]=r[a])}Object.assign(o,i),Object.assign(o,{hasErrorBoundary:t(Jn({},o)),lazy:void 0})}async function E1(e,t,n,r,o,i,a,s,l,u){a===void 0&&(a="/"),s===void 0&&(s=!1),l===void 0&&(l=!1);let c,f,p,g=v=>{let x,w=new Promise((I,_)=>x=_);return p=()=>x(),t.signal.addEventListener("abort",p),Promise.race([v({request:t,params:n.params,context:u}),w])};try{let v=n.route[e];if(n.route.lazy)if(v)f=(await Promise.all([g(v),Yz(n.route,i,o)]))[0];else if(await Yz(n.route,i,o),v=n.route[e],v)f=await g(v);else{if(e==="action")throw Hu(405,{method:t.method,pathname:new URL(t.url).pathname,routeId:n.route.id});return{type:li.data,data:void 0}}else Rn(v,"Could not find the "+e+' to run on the "'+n.route.id+'" route'),f=await g(v);Rn(f!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(v){c=li.error,f=v}finally{p&&t.signal.removeEventListener("abort",p)}if(GJe(f)){let v=f.status;if(FJe.has(v)){let I=f.headers.get("Location");if(Rn(I,"Redirects returned/thrown from loaders/actions must have a Location header"),aie.test(I)){if(!s){let _=new URL(t.url),R=I.startsWith("//")?new URL(_.protocol+I):new URL(I),U=ZS(R.pathname,a)!=null;R.origin===_.origin&&U&&(I=R.pathname+R.search+R.hash)}}else{let _=r.slice(0,r.indexOf(n)+1),R=eI(_).map(D=>D.pathnameBase),U=h$(I,R,new URL(t.url).pathname);if(Rn(Rd(U),"Unable to resolve redirect location: "+I),a){let D=U.pathname;U.pathname=D==="/"?a:xd([a,D])}I=Rd(U)}if(s)throw f.headers.set("Location",I),f;return{type:li.redirect,status:v,location:I,revalidate:f.headers.get("X-Remix-Revalidate")!==null}}if(l)throw{type:c||li.data,response:f};let x,w=f.headers.get("Content-Type");return w&&/\bapplication\/json\b/.test(w)?x=await f.json():x=await f.text(),c===li.error?{type:c,error:new g$(v,f.statusText,x),headers:f.headers}:{type:li.data,data:x,statusCode:f.status,headers:f.headers}}if(c===li.error)return{type:c,error:f};if(YJe(f)){var m,y;return{type:li.deferred,deferredData:f,statusCode:(m=f.init)==null?void 0:m.status,headers:((y=f.init)==null?void 0:y.headers)&&new Headers(f.init.headers)}}return{type:li.data,data:f}}function T1(e,t,n,r){let o=e.createURL(cie(t)).toString(),i={signal:n};if(r&&od(r.formMethod)){let{formMethod:a,formEncType:s,formData:l}=r;i.method=a.toUpperCase(),i.body=s==="application/x-www-form-urlencoded"?uie(l):l}return new Request(o,i)}function uie(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,r instanceof File?r.name:r);return t}function QJe(e,t,n,r,o){let i={},a=null,s,l=!1,u={};return n.forEach((c,f)=>{let p=t[f].route.id;if(Rn(!x0(c),"Cannot handle redirect results in processLoaderData"),yb(c)){let g=i0(e,p),m=c.error;r&&(m=Object.values(r)[0],r=void 0),a=a||{},a[g.route.id]==null&&(a[g.route.id]=m),i[p]=void 0,l||(l=!0,s=oie(c.error)?c.error.status:500),c.headers&&(u[p]=c.headers)}else Ph(c)?(o.set(p,c.deferredData),i[p]=c.deferredData.data):i[p]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(s=c.statusCode),c.headers&&(u[p]=c.headers)}),r&&(a=r,i[Object.keys(r)[0]]=void 0),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:u}}function Gz(e,t,n,r,o,i,a,s){let{loaderData:l,errors:u}=QJe(t,n,r,o,s);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Xz(e){let t=e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Hu(e,t){let{pathname:n,routeId:r,method:o,type:i}=t===void 0?{}:t,a="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(a="Bad Request",o&&n&&r?s="You made a "+o+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":i==="defer-action"&&(s="defer() is not supported in actions")):e===403?(a="Forbidden",s='Route "'+r+'" does not match URL "'+n+'"'):e===404?(a="Not Found",s='No route matches URL "'+n+'"'):e===405&&(a="Method Not Allowed",o&&n&&r?s="You made a "+o.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(s='Invalid request method "'+o.toUpperCase()+'"')),new g$(e||500,a,new Error(s),!0)}function Zz(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(x0(n))return n}}function cie(e){let t=typeof e=="string"?Yd(e):e;return Rd(Jn({},t,{hash:""}))}function KJe(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash!==t.hash}function Ph(e){return e.type===li.deferred}function yb(e){return e.type===li.error}function x0(e){return(e&&e.type)===li.redirect}function YJe(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function GJe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function JJe(e){return LJe.has(e.toLowerCase())}function od(e){return BJe.has(e.toLowerCase())}async function eV(e,t,n,r,o,i){for(let a=0;af.route.id===l.route.id),c=u!=null&&!lie(u,l)&&(i&&i[l.route.id])!==void 0;Ph(s)&&(o||c)&&await die(s,r,o).then(f=>{f&&(n[a]=f||n[a])})}}async function die(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:li.data,data:e.deferredData.unwrappedData}}catch(o){return{type:li.error,error:o}}return{type:li.data,data:e.deferredData.data}}}function fie(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function tV(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function OR(e,t){let n=typeof t=="string"?Yd(t).search:t.search;if(e[e.length-1].route.index&&fie(n||""))return e[e.length-1];let r=eI(e);return r[r.length-1]}/** * React Router v6.10.0 * * Copyright (c) Remix Software Inc. @@ -355,7 +355,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function BJe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const $Je=typeof Object.is=="function"?Object.is:BJe,{useState:LJe,useEffect:FJe,useLayoutEffect:NJe,useDebugValue:UJe}=zh;function jJe(e,t,n){const r=t(),[{inst:o},i]=LJe({inst:{value:r,getSnapshot:t}});return NJe(()=>{o.value=r,o.getSnapshot=t,QP(o)&&i({inst:o})},[e,r,t]),FJe(()=>(QP(o)&&i({inst:o}),e(()=>{QP(o)&&i({inst:o})})),[e]),UJe(r),r}function QP(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!$Je(n,r)}catch{return!0}}function WJe(e,t,n){return t()}const zJe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",VJe=!zJe,HJe=VJe?WJe:jJe,qJe="useSyncExternalStore"in zh?(e=>e.useSyncExternalStore)(zh):HJe,eI=M.createContext(null),tI=M.createContext(null),ov=M.createContext(null),nI=M.createContext(null),Op=M.createContext({outlet:null,matches:[]}),hie=M.createContext(null);function OR(){return OR=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),i=M.useRef(!1);return M.useEffect(()=>{i.current=!0}),M.useCallback(function(s,l){if(l===void 0&&(l={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let u=h$(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:xd([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}const KJe=M.createContext(null);function YJe(e){let t=M.useContext(Op).outlet;return t&&M.createElement(KJe.Provider,{value:e},t)}function gie(){let{matches:e}=M.useContext(Op),t=e[e.length-1];return t?t.params:{}}function mie(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=M.useContext(Op),{pathname:o}=Qg(),i=JSON.stringify(Zk(r).map(a=>a.pathnameBase));return M.useMemo(()=>h$(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function GJe(e,t){iv()||Rn(!1);let{navigator:n}=M.useContext(ov),r=M.useContext(tI),{matches:o}=M.useContext(Op),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Qg(),u;if(t){var c;let y=typeof t=="string"?Yd(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||Rn(!1),u=y}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",g=Ih(e,{pathname:p}),m=eXe(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:xd([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:xd([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r||void 0);return t&&m?M.createElement(nI.Provider,{value:{location:OR({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Xo.Pop}},m):m}function JJe(){let e=oXe(),t=iie(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:o},n):null,i)}class XJe extends M.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?M.createElement(Op.Provider,{value:this.props.routeContext},M.createElement(hie.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function ZJe(e){let{routeContext:t,match:n,children:r}=e,o=M.useContext(eI);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(Op.Provider,{value:t},r)}function eXe(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Rn(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,s)=>{let l=a.route.id?o==null?void 0:o[a.route.id]:null,u=null;n&&(a.route.ErrorBoundary?u=M.createElement(a.route.ErrorBoundary,null):a.route.errorElement?u=a.route.errorElement:u=M.createElement(JJe,null));let c=t.concat(r.slice(0,s+1)),f=()=>{let p=i;return l?p=u:a.route.Component?p=M.createElement(a.route.Component,null):a.route.element&&(p=a.route.element),M.createElement(ZJe,{match:a,routeContext:{outlet:i,matches:c},children:p})};return n&&(a.route.ErrorBoundary||a.route.errorElement||s===0)?M.createElement(XJe,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var nV;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(nV||(nV={}));var t_;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(t_||(t_={}));function tXe(e){let t=M.useContext(tI);return t||Rn(!1),t}function nXe(e){let t=M.useContext(Op);return t||Rn(!1),t}function rXe(e){let t=nXe(),n=t.matches[t.matches.length-1];return n.route.id||Rn(!1),n.route.id}function oXe(){var e;let t=M.useContext(hie),n=tXe(t_.UseRouteError),r=rXe(t_.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function iXe(e){let{fallbackElement:t,router:n}=e,r=M.useCallback(()=>n.state,[n]),o=qJe(n.subscribe,r,r),i=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,u,c)=>n.navigate(l,{state:u,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(l,u,c)=>n.navigate(l,{replace:!0,state:u,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[n]),a=n.basename||"/",s=M.useMemo(()=>({router:n,navigator:i,static:!1,basename:a}),[n,i,a]);return M.createElement(M.Fragment,null,M.createElement(eI.Provider,{value:s},M.createElement(tI.Provider,{value:o},M.createElement(sXe,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?M.createElement(lXe,null):t))),null)}function tu(e){let{to:t,replace:n,state:r,relative:o}=e;iv()||Rn(!1);let i=M.useContext(tI),a=av();return M.useEffect(()=>{i&&i.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:o})}),null}function m$(e){return YJe(e.context)}function aXe(e){Rn(!1)}function sXe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Xo.Pop,navigator:i,static:a=!1}=e;iv()&&Rn(!1);let s=t.replace(/^\/*/,"/"),l=M.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=Yd(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:g="default"}=r,m=M.useMemo(()=>{let y=ZS(u,s);return y==null?null:{location:{pathname:y,search:c,hash:f,state:p,key:g},navigationType:o}},[s,u,c,f,p,g,o]);return m==null?null:M.createElement(ov.Provider,{value:l},M.createElement(nI.Provider,{children:n,value:m}))}function lXe(e){let{children:t,location:n}=e,r=M.useContext(eI),o=r&&!t?r.router.routes:RR(t);return GJe(o,n)}var rV;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(rV||(rV={}));new Promise(()=>{});function RR(e,t){t===void 0&&(t=[]);let n=[];return M.Children.forEach(e,(r,o)=>{if(!M.isValidElement(r))return;let i=[...t,o];if(r.type===M.Fragment){n.push.apply(n,RR(r.props.children,i));return}r.type!==aXe&&Rn(!1),!r.props.index||!r.props.children||Rn(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=RR(r.props.children,i)),n.push(a)}),n}function uXe(e){return!!e.ErrorBoundary||!!e.errorElement}/** + */function XJe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const ZJe=typeof Object.is=="function"?Object.is:XJe,{useState:eXe,useEffect:tXe,useLayoutEffect:nXe,useDebugValue:rXe}=zh;function oXe(e,t,n){const r=t(),[{inst:o},i]=eXe({inst:{value:r,getSnapshot:t}});return nXe(()=>{o.value=r,o.getSnapshot=t,KP(o)&&i({inst:o})},[e,r,t]),tXe(()=>(KP(o)&&i({inst:o}),e(()=>{KP(o)&&i({inst:o})})),[e]),rXe(r),r}function KP(e){const t=e.getSnapshot,n=e.value;try{const r=t();return!ZJe(n,r)}catch{return!0}}function iXe(e,t,n){return t()}const aXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sXe=!aXe,lXe=sXe?iXe:oXe,uXe="useSyncExternalStore"in zh?(e=>e.useSyncExternalStore)(zh):lXe,tI=M.createContext(null),nI=M.createContext(null),ov=M.createContext(null),rI=M.createContext(null),Op=M.createContext({outlet:null,matches:[]}),pie=M.createContext(null);function RR(){return RR=Object.assign?Object.assign.bind():function(e){for(var t=1;ts.pathnameBase)),i=M.useRef(!1);return M.useEffect(()=>{i.current=!0}),M.useCallback(function(s,l){if(l===void 0&&(l={}),!i.current)return;if(typeof s=="number"){t.go(s);return}let u=h$(s,JSON.parse(o),r,l.relative==="path");e!=="/"&&(u.pathname=u.pathname==="/"?e:xd([e,u.pathname])),(l.replace?t.replace:t.push)(u,l.state,l)},[e,t,o,r])}const dXe=M.createContext(null);function fXe(e){let t=M.useContext(Op).outlet;return t&&M.createElement(dXe.Provider,{value:e},t)}function hie(){let{matches:e}=M.useContext(Op),t=e[e.length-1];return t?t.params:{}}function gie(e,t){let{relative:n}=t===void 0?{}:t,{matches:r}=M.useContext(Op),{pathname:o}=Qg(),i=JSON.stringify(eI(r).map(a=>a.pathnameBase));return M.useMemo(()=>h$(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function pXe(e,t){iv()||Rn(!1);let{navigator:n}=M.useContext(ov),r=M.useContext(nI),{matches:o}=M.useContext(Op),i=o[o.length-1],a=i?i.params:{};i&&i.pathname;let s=i?i.pathnameBase:"/";i&&i.route;let l=Qg(),u;if(t){var c;let y=typeof t=="string"?Yd(t):t;s==="/"||(c=y.pathname)!=null&&c.startsWith(s)||Rn(!1),u=y}else u=l;let f=u.pathname||"/",p=s==="/"?f:f.slice(s.length)||"/",g=Ih(e,{pathname:p}),m=yXe(g&&g.map(y=>Object.assign({},y,{params:Object.assign({},a,y.params),pathname:xd([s,n.encodeLocation?n.encodeLocation(y.pathname).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:xd([s,n.encodeLocation?n.encodeLocation(y.pathnameBase).pathname:y.pathnameBase])})),o,r||void 0);return t&&m?M.createElement(rI.Provider,{value:{location:RR({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Xo.Pop}},m):m}function hXe(){let e=SXe(),t=oie(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:o},n):null,i)}class gXe extends M.Component{constructor(t){super(t),this.state={location:t.location,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location?{error:t.error,location:t.location}:{error:t.error||n.error,location:n.location}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error?M.createElement(Op.Provider,{value:this.props.routeContext},M.createElement(pie.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function mXe(e){let{routeContext:t,match:n,children:r}=e,o=M.useContext(tI);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(Op.Provider,{value:t},r)}function yXe(e,t,n){if(t===void 0&&(t=[]),e==null)if(n!=null&&n.errors)e=n.matches;else return null;let r=e,o=n==null?void 0:n.errors;if(o!=null){let i=r.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||Rn(!1),r=r.slice(0,Math.min(r.length,i+1))}return r.reduceRight((i,a,s)=>{let l=a.route.id?o==null?void 0:o[a.route.id]:null,u=null;n&&(a.route.ErrorBoundary?u=M.createElement(a.route.ErrorBoundary,null):a.route.errorElement?u=a.route.errorElement:u=M.createElement(hXe,null));let c=t.concat(r.slice(0,s+1)),f=()=>{let p=i;return l?p=u:a.route.Component?p=M.createElement(a.route.Component,null):a.route.element&&(p=a.route.element),M.createElement(mXe,{match:a,routeContext:{outlet:i,matches:c},children:p})};return n&&(a.route.ErrorBoundary||a.route.errorElement||s===0)?M.createElement(gXe,{location:n.location,component:u,error:l,children:f(),routeContext:{outlet:null,matches:c}}):f()},null)}var nV;(function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"})(nV||(nV={}));var t_;(function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"})(t_||(t_={}));function vXe(e){let t=M.useContext(nI);return t||Rn(!1),t}function bXe(e){let t=M.useContext(Op);return t||Rn(!1),t}function wXe(e){let t=bXe(),n=t.matches[t.matches.length-1];return n.route.id||Rn(!1),n.route.id}function SXe(){var e;let t=M.useContext(pie),n=vXe(t_.UseRouteError),r=wXe(t_.UseRouteError);return t||((e=n.errors)==null?void 0:e[r])}function xXe(e){let{fallbackElement:t,router:n}=e,r=M.useCallback(()=>n.state,[n]),o=uXe(n.subscribe,r,r),i=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:l=>n.navigate(l),push:(l,u,c)=>n.navigate(l,{state:u,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(l,u,c)=>n.navigate(l,{replace:!0,state:u,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[n]),a=n.basename||"/",s=M.useMemo(()=>({router:n,navigator:i,static:!1,basename:a}),[n,i,a]);return M.createElement(M.Fragment,null,M.createElement(tI.Provider,{value:s},M.createElement(nI.Provider,{value:o},M.createElement(AXe,{basename:n.basename,location:n.state.location,navigationType:n.state.historyAction,navigator:i},n.state.initialized?M.createElement(_Xe,null):t))),null)}function tu(e){let{to:t,replace:n,state:r,relative:o}=e;iv()||Rn(!1);let i=M.useContext(nI),a=av();return M.useEffect(()=>{i&&i.navigation.state!=="idle"||a(t,{replace:n,state:r,relative:o})}),null}function m$(e){return fXe(e.context)}function CXe(e){Rn(!1)}function AXe(e){let{basename:t="/",children:n=null,location:r,navigationType:o=Xo.Pop,navigator:i,static:a=!1}=e;iv()&&Rn(!1);let s=t.replace(/^\/*/,"/"),l=M.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof r=="string"&&(r=Yd(r));let{pathname:u="/",search:c="",hash:f="",state:p=null,key:g="default"}=r,m=M.useMemo(()=>{let y=ZS(u,s);return y==null?null:{location:{pathname:y,search:c,hash:f,state:p,key:g},navigationType:o}},[s,u,c,f,p,g,o]);return m==null?null:M.createElement(ov.Provider,{value:l},M.createElement(rI.Provider,{children:n,value:m}))}function _Xe(e){let{children:t,location:n}=e,r=M.useContext(tI),o=r&&!t?r.router.routes:DR(t);return pXe(o,n)}var rV;(function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"})(rV||(rV={}));new Promise(()=>{});function DR(e,t){t===void 0&&(t=[]);let n=[];return M.Children.forEach(e,(r,o)=>{if(!M.isValidElement(r))return;let i=[...t,o];if(r.type===M.Fragment){n.push.apply(n,DR(r.props.children,i));return}r.type!==CXe&&Rn(!1),!r.props.index||!r.props.children||Rn(!1);let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=DR(r.props.children,i)),n.push(a)}),n}function EXe(e){return!!e.ErrorBoundary||!!e.errorElement}/** * React Router DOM v6.10.0 * * Copyright (c) Remix Software Inc. @@ -364,7 +364,7 @@ function print() { __p += __j.call(arguments, '') } * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function dXe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function fXe(e,t){return e.button===0&&(!t||t==="_self")&&!dXe(e)}const pXe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function hXe(e,t){return EJe({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:KGe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||gXe(),routes:e,detectErrorBoundary:uXe}).initialize()}function gXe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=n_({},t,{errors:mXe(t.errors)})),t}function mXe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new g$(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){let i=new Error(o.message);i.stack="",n[r]=i}else n[r]=o;return n}const yXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vXe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y$=M.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=cXe(t,pXe),{basename:p}=M.useContext(ov),g,m=!1;if(typeof u=="string"&&vXe.test(u)&&(g=u,yXe)){let w=new URL(window.location.href),I=u.startsWith("//")?new URL(w.protocol+u):new URL(u),_=ZS(I.pathname,p);I.origin===w.origin&&_!=null?u=_+I.search+I.hash:m=!0}let y=QJe(u,{relative:o}),v=bXe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||v(w)}return M.createElement("a",n_({},f,{href:g||y,onClick:m||i?r:x,ref:n,target:l}))});var oV;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(oV||(oV={}));var iV;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iV||(iV={}));function bXe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=av(),l=Qg(),u=mie(e,{relative:a});return M.useCallback(c=>{if(fXe(c,n)){c.preventDefault();let f=r!==void 0?r:Rd(l)===Rd(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}const bn={spaces:"/",createSpace:"/setup",proposal:"/:daoId/proposal/:proposalId",editProposal:"/:daoId/proposal/:proposalId/edit",space:"/:daoId",spaceAbout:"/:daoId/about",spaceSettings:"/:daoId/settings",createProposal:"/:daoId/create"},wXe=Ze.map(bn,e=>({path:e})),yie=60,vw="EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",SXe="https://t.me/TONVoteSupportGroup",xXe="https://www.orbs.com/white-papers/ton-vote/",CXe="https://www.orbs.com/Orbs-Introduces-TON-vote/",rI=2350,oI=180,Nn=768,AXe="https://github.com/orbs-network/ton-vote/blob/main/README.md#supported-strategies";let _Xe={data:""},EXe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||_Xe,TXe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kXe=/\/\*[^]*?\*\/| +/g,aV=/\n+/g,kf=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?kf(a,i):i+"{"+kf(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=kf(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=kf.p?kf.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Jc={},vie=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+vie(e[n]);return t}return e},IXe=(e,t,n,r,o)=>{let i=vie(e),a=Jc[i]||(Jc[i]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(i));if(!Jc[a]){let l=i!==e?e:(u=>{let c,f,p=[{}];for(;c=TXe.exec(u.replace(kXe,""));)c[4]?p.shift():c[3]?(f=c[3].replace(aV," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(aV," ").trim();return p[0]})(e);Jc[a]=kf(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Jc.g?Jc.g:null;return n&&(Jc.g=Jc[a]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Jc[a],t,r,s),a},PXe=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":kf(s,""):s===!1?"":s}return r+o+(a??"")},"");function iI(e){let t=this||{},n=e.call?e(t.p):e;return IXe(n.unshift?n.raw?PXe(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,EXe(t.target),t.g,t.o,t.k)}let bie,DR,BR;iI.bind({g:1});let Dd=iI.bind({k:1});function MXe(e,t,n,r){kf.p=t,bie=e,DR=n,BR=r}function Rp(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:DR&&DR()},s),n.o=/ *go\d+/.test(l),s.className=iI.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),BR&&u[0]&&BR(s),bie(u,s)}return t?t(o):o}}var OXe=e=>typeof e=="function",r_=(e,t)=>OXe(e)?e(t):e,RXe=(()=>{let e=0;return()=>(++e).toString()})(),wie=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),DXe=20,BC=new Map,BXe=1e3,sV=e=>{if(BC.has(e))return;let t=setTimeout(()=>{BC.delete(e),Kg({type:4,toastId:e})},BXe);BC.set(e,t)},$Xe=e=>{let t=BC.get(e);t&&clearTimeout(t)},$R=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,DXe)};case 1:return t.toast.id&&$Xe(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?$R(e,{type:1,toast:n}):$R(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?sV(r):e.toasts.forEach(i=>{sV(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},$C=[],LC={toasts:[],pausedAt:void 0},Kg=e=>{LC=$R(LC,e),$C.forEach(t=>{t(LC)})},LXe={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},FXe=(e={})=>{let[t,n]=M.useState(LC);M.useEffect(()=>($C.push(n),()=>{let o=$C.indexOf(n);o>-1&&$C.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||LXe[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:r}},NXe=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||RXe()}),e2=e=>(t,n)=>{let r=NXe(t,e,n);return Kg({type:2,toast:r}),r.id},Ds=(e,t)=>e2("blank")(e,t);Ds.error=e2("error");Ds.success=e2("success");Ds.loading=e2("loading");Ds.custom=e2("custom");Ds.dismiss=e=>{Kg({type:3,toastId:e})};Ds.remove=e=>Kg({type:4,toastId:e});Ds.promise=(e,t,n)=>{let r=Ds.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ds.success(r_(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ds.error(r_(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var UXe=(e,t)=>{Kg({type:1,toast:{id:e,height:t}})},jXe=()=>{Kg({type:5,time:Date.now()})},WXe=e=>{let{toasts:t,pausedAt:n}=FXe(e);M.useEffect(()=>{if(n)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(l<0){s.visible&&Ds.dismiss(s.id);return}return setTimeout(()=>Ds.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=M.useCallback(()=>{n&&Kg({type:6,time:Date.now()})},[n]),o=M.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=a||{},c=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),f=c.findIndex(g=>g.id===i.id),p=c.filter((g,m)=>mg.visible).slice(...s?[p+1]:[0,p]).reduce((g,m)=>g+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:UXe,startPause:jXe,endPause:r,calculateOffset:o}}},zXe=Dd` + */function n_(){return n_=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function kXe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function IXe(e,t){return e.button===0&&(!t||t==="_self")&&!kXe(e)}const PXe=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function MXe(e,t){return zJe({basename:t==null?void 0:t.basename,future:t==null?void 0:t.future,history:dJe({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||OXe(),routes:e,detectErrorBoundary:EXe}).initialize()}function OXe(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=n_({},t,{errors:RXe(t.errors)})),t}function RXe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new g$(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){let i=new Error(o.message);i.stack="",n[r]=i}else n[r]=o;return n}const DXe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",BXe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,y$=M.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:c}=t,f=TXe(t,PXe),{basename:p}=M.useContext(ov),g,m=!1;if(typeof u=="string"&&BXe.test(u)&&(g=u,DXe)){let w=new URL(window.location.href),I=u.startsWith("//")?new URL(w.protocol+u):new URL(u),_=ZS(I.pathname,p);I.origin===w.origin&&_!=null?u=_+I.search+I.hash:m=!0}let y=cXe(u,{relative:o}),v=$Xe(u,{replace:a,state:s,target:l,preventScrollReset:c,relative:o});function x(w){r&&r(w),w.defaultPrevented||v(w)}return M.createElement("a",n_({},f,{href:g||y,onClick:m||i?r:x,ref:n,target:l}))});var oV;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(oV||(oV={}));var iV;(function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(iV||(iV={}));function $Xe(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:a}=t===void 0?{}:t,s=av(),l=Qg(),u=gie(e,{relative:a});return M.useCallback(c=>{if(IXe(c,n)){c.preventDefault();let f=r!==void 0?r:Rd(l)===Rd(u);s(e,{replace:f,state:o,preventScrollReset:i,relative:a})}},[l,s,u,r,o,n,e,i,a])}const bn={spaces:"/",createSpace:"/setup",proposal:"/:daoId/proposal/:proposalId",editProposal:"/:daoId/proposal/:proposalId/edit",space:"/:daoId",spaceAbout:"/:daoId/about",spaceSettings:"/:daoId/settings",createProposal:"/:daoId/create"},LXe=Ze.map(bn,e=>({path:e})),mie=60,vw="EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",FXe="https://t.me/TONVoteSupportGroup",NXe="https://www.orbs.com/white-papers/ton-vote/",UXe="https://www.orbs.com/Orbs-Introduces-TON-vote/",oI=2350,iI=180,Ln=768,jXe="https://github.com/orbs-network/ton-vote/blob/main/README.md#supported-strategies";let WXe={data:""},zXe=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||WXe,VXe=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,HXe=/\/\*[^]*?\*\/| +/g,aV=/\n+/g,kf=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?kf(a,i):i+"{"+kf(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=kf(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=kf.p?kf.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Jc={},yie=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+yie(e[n]);return t}return e},qXe=(e,t,n,r,o)=>{let i=yie(e),a=Jc[i]||(Jc[i]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(i));if(!Jc[a]){let l=i!==e?e:(u=>{let c,f,p=[{}];for(;c=VXe.exec(u.replace(HXe,""));)c[4]?p.shift():c[3]?(f=c[3].replace(aV," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(aV," ").trim();return p[0]})(e);Jc[a]=kf(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Jc.g?Jc.g:null;return n&&(Jc.g=Jc[a]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Jc[a],t,r,s),a},QXe=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":kf(s,""):s===!1?"":s}return r+o+(a??"")},"");function aI(e){let t=this||{},n=e.call?e(t.p):e;return qXe(n.unshift?n.raw?QXe(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,zXe(t.target),t.g,t.o,t.k)}let vie,BR,$R;aI.bind({g:1});let Dd=aI.bind({k:1});function KXe(e,t,n,r){kf.p=t,vie=e,BR=n,$R=r}function Rp(e,t){let n=this||{};return function(){let r=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;n.p=Object.assign({theme:BR&&BR()},s),n.o=/ *go\d+/.test(l),s.className=aI.apply(n,r)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),$R&&u[0]&&$R(s),vie(u,s)}return t?t(o):o}}var YXe=e=>typeof e=="function",r_=(e,t)=>YXe(e)?e(t):e,GXe=(()=>{let e=0;return()=>(++e).toString()})(),bie=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),JXe=20,BC=new Map,XXe=1e3,sV=e=>{if(BC.has(e))return;let t=setTimeout(()=>{BC.delete(e),Kg({type:4,toastId:e})},XXe);BC.set(e,t)},ZXe=e=>{let t=BC.get(e);t&&clearTimeout(t)},LR=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,JXe)};case 1:return t.toast.id&&ZXe(t.toast.id),{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:n}=t;return e.toasts.find(i=>i.id===n.id)?LR(e,{type:1,toast:n}):LR(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?sV(r):e.toasts.forEach(i=>{sV(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===r||r===void 0?{...i,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},$C=[],LC={toasts:[],pausedAt:void 0},Kg=e=>{LC=LR(LC,e),$C.forEach(t=>{t(LC)})},eZe={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},tZe=(e={})=>{let[t,n]=M.useState(LC);M.useEffect(()=>($C.push(n),()=>{let o=$C.indexOf(n);o>-1&&$C.splice(o,1)}),[t]);let r=t.toasts.map(o=>{var i,a;return{...e,...e[o.type],...o,duration:o.duration||((i=e[o.type])==null?void 0:i.duration)||(e==null?void 0:e.duration)||eZe[o.type],style:{...e.style,...(a=e[o.type])==null?void 0:a.style,...o.style}}});return{...t,toasts:r}},nZe=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||GXe()}),ex=e=>(t,n)=>{let r=nZe(t,e,n);return Kg({type:2,toast:r}),r.id},Ds=(e,t)=>ex("blank")(e,t);Ds.error=ex("error");Ds.success=ex("success");Ds.loading=ex("loading");Ds.custom=ex("custom");Ds.dismiss=e=>{Kg({type:3,toastId:e})};Ds.remove=e=>Kg({type:4,toastId:e});Ds.promise=(e,t,n)=>{let r=Ds.loading(t.loading,{...n,...n==null?void 0:n.loading});return e.then(o=>(Ds.success(r_(t.success,o),{id:r,...n,...n==null?void 0:n.success}),o)).catch(o=>{Ds.error(r_(t.error,o),{id:r,...n,...n==null?void 0:n.error})}),e};var rZe=(e,t)=>{Kg({type:1,toast:{id:e,height:t}})},oZe=()=>{Kg({type:5,time:Date.now()})},iZe=e=>{let{toasts:t,pausedAt:n}=tZe(e);M.useEffect(()=>{if(n)return;let i=Date.now(),a=t.map(s=>{if(s.duration===1/0)return;let l=(s.duration||0)+s.pauseDuration-(i-s.createdAt);if(l<0){s.visible&&Ds.dismiss(s.id);return}return setTimeout(()=>Ds.dismiss(s.id),l)});return()=>{a.forEach(s=>s&&clearTimeout(s))}},[t,n]);let r=M.useCallback(()=>{n&&Kg({type:6,time:Date.now()})},[n]),o=M.useCallback((i,a)=>{let{reverseOrder:s=!1,gutter:l=8,defaultPosition:u}=a||{},c=t.filter(g=>(g.position||u)===(i.position||u)&&g.height),f=c.findIndex(g=>g.id===i.id),p=c.filter((g,m)=>mg.visible).slice(...s?[p+1]:[0,p]).reduce((g,m)=>g+(m.height||0)+l,0)},[t]);return{toasts:t,handlers:{updateHeight:rZe,startPause:oZe,endPause:r,calculateOffset:o}}},aZe=Dd` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -372,7 +372,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,VXe=Dd` +}`,sZe=Dd` from { transform: scale(0); opacity: 0; @@ -380,7 +380,7 @@ from { to { transform: scale(1); opacity: 1; -}`,HXe=Dd` +}`,lZe=Dd` from { transform: scale(0) rotate(90deg); opacity: 0; @@ -388,7 +388,7 @@ from { to { transform: scale(1) rotate(90deg); opacity: 1; -}`,qXe=Rp("div")` +}`,uZe=Rp("div")` width: 20px; opacity: 0; height: 20px; @@ -397,14 +397,14 @@ to { position: relative; transform: rotate(45deg); - animation: ${zXe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${aZe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after, &:before { content: ''; - animation: ${VXe} 0.15s ease-out forwards; + animation: ${sZe} 0.15s ease-out forwards; animation-delay: 150ms; position: absolute; border-radius: 3px; @@ -417,18 +417,18 @@ to { } &:before { - animation: ${HXe} 0.15s ease-out forwards; + animation: ${lZe} 0.15s ease-out forwards; animation-delay: 180ms; transform: rotate(90deg); } -`,QXe=Dd` +`,cZe=Dd` from { transform: rotate(0deg); } to { transform: rotate(360deg); } -`,KXe=Rp("div")` +`,dZe=Rp("div")` width: 12px; height: 12px; box-sizing: border-box; @@ -436,8 +436,8 @@ to { border-radius: 100%; border-color: ${e=>e.secondary||"#e0e0e0"}; border-right-color: ${e=>e.primary||"#616161"}; - animation: ${QXe} 1s linear infinite; -`,YXe=Dd` + animation: ${cZe} 1s linear infinite; +`,fZe=Dd` from { transform: scale(0) rotate(45deg); opacity: 0; @@ -445,7 +445,7 @@ from { to { transform: scale(1) rotate(45deg); opacity: 1; -}`,GXe=Dd` +}`,pZe=Dd` 0% { height: 0; width: 0; @@ -459,7 +459,7 @@ to { 100% { opacity: 1; height: 10px; -}`,JXe=Rp("div")` +}`,hZe=Rp("div")` width: 20px; opacity: 0; height: 20px; @@ -468,13 +468,13 @@ to { position: relative; transform: rotate(45deg); - animation: ${YXe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${fZe} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; animation-delay: 100ms; &:after { content: ''; box-sizing: border-box; - animation: ${GXe} 0.2s ease-out forwards; + animation: ${pZe} 0.2s ease-out forwards; opacity: 0; animation-delay: 200ms; position: absolute; @@ -486,16 +486,16 @@ to { height: 10px; width: 6px; } -`,XXe=Rp("div")` +`,gZe=Rp("div")` position: absolute; -`,ZXe=Rp("div")` +`,mZe=Rp("div")` position: relative; display: flex; justify-content: center; align-items: center; min-width: 20px; min-height: 20px; -`,eZe=Dd` +`,yZe=Dd` from { transform: scale(0.6); opacity: 0.4; @@ -503,20 +503,20 @@ from { to { transform: scale(1); opacity: 1; -}`,tZe=Rp("div")` +}`,vZe=Rp("div")` position: relative; transform: scale(0.6); opacity: 0.4; min-width: 20px; - animation: ${eZe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + animation: ${yZe} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; -`,nZe=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?M.createElement(tZe,null,t):t:n==="blank"?null:M.createElement(ZXe,null,M.createElement(KXe,{...r}),n!=="loading"&&M.createElement(XXe,null,n==="error"?M.createElement(qXe,{...r}):M.createElement(JXe,{...r})))},rZe=e=>` +`,bZe=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?M.createElement(vZe,null,t):t:n==="blank"?null:M.createElement(mZe,null,M.createElement(dZe,{...r}),n!=="loading"&&M.createElement(gZe,null,n==="error"?M.createElement(uZe,{...r}):M.createElement(hZe,{...r})))},wZe=e=>` 0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} 100% {transform: translate3d(0,0,0) scale(1); opacity:1;} -`,oZe=e=>` +`,SZe=e=>` 0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} 100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} -`,iZe="0%{opacity:0;} 100%{opacity:1;}",aZe="0%{opacity:1;} 100%{opacity:0;}",sZe=Rp("div")` +`,xZe="0%{opacity:0;} 100%{opacity:1;}",CZe="0%{opacity:1;} 100%{opacity:0;}",AZe=Rp("div")` display: flex; align-items: center; background: #fff; @@ -528,41 +528,41 @@ to { pointer-events: auto; padding: 8px 10px; border-radius: 8px; -`,lZe=Rp("div")` +`,_Ze=Rp("div")` display: flex; justify-content: center; margin: 4px 10px; color: inherit; flex: 1 1 auto; white-space: pre-line; -`,uZe=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=wie()?[iZe,aZe]:[rZe(n),oZe(n)];return{animation:t?`${Dd(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Dd(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},cZe=M.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?uZe(e.position||t||"top-center",e.visible):{opacity:0},i=M.createElement(nZe,{toast:e}),a=M.createElement(lZe,{...e.ariaProps},r_(e.message,e));return M.createElement(sZe,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:a}):M.createElement(M.Fragment,null,i,a))});MXe(M.createElement);var dZe=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=M.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return M.createElement("div",{ref:i,className:t,style:n},o)},fZe=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:wie()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},pZe=iI` +`,EZe=(e,t)=>{let n=e.includes("top")?1:-1,[r,o]=bie()?[xZe,CZe]:[wZe(n),SZe(n)];return{animation:t?`${Dd(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Dd(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},TZe=M.memo(({toast:e,position:t,style:n,children:r})=>{let o=e.height?EZe(e.position||t||"top-center",e.visible):{opacity:0},i=M.createElement(bZe,{toast:e}),a=M.createElement(_Ze,{...e.ariaProps},r_(e.message,e));return M.createElement(AZe,{className:e.className,style:{...o,...n,...e.style}},typeof r=="function"?r({icon:i,message:a}):M.createElement(M.Fragment,null,i,a))});KXe(M.createElement);var kZe=({id:e,className:t,style:n,onHeightUpdate:r,children:o})=>{let i=M.useCallback(a=>{if(a){let s=()=>{let l=a.getBoundingClientRect().height;r(e,l)};s(),new MutationObserver(s).observe(a,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return M.createElement("div",{ref:i,className:t,style:n},o)},IZe=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:bie()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...o}},PZe=aI` z-index: 9999; > * { pointer-events: auto; } -`,jx=16,hZe=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:a})=>{let{toasts:s,handlers:l}=WXe(n);return M.createElement("div",{style:{position:"fixed",zIndex:9999,top:jx,left:jx,right:jx,bottom:jx,pointerEvents:"none",...i},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let c=u.position||t,f=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=fZe(c,f);return M.createElement(dZe,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?pZe:"",style:p},u.type==="custom"?r_(u.message,u):o?o(u):M.createElement(cZe,{toast:u,position:c}))}))},Lh=Ds;const gZe=QE({palette:{mode:"light",background:{default:"#F8F9FB",paper:"white"},error:{main:"#d32f2f"},primary:{main:"#0088CC"},text:{primary:"rgb(114, 138, 150)",secondary:"rgb(22, 28, 40)"}},typography:{allVariants:{color:"rgb(114, 138, 150)",fontFamily:"mulish"},h1:{fontSize:44,fontWeight:800,color:"rgb(22, 28, 40)"},h2:{fontSize:20,fontWeight:800,color:"rgb(22, 28, 40)"},h4:{fontSize:20,fontWeight:800,color:"rgb(22, 28, 40)"},fontFamily:"mulish"}}),mZe=QE({palette:{mode:"dark",background:{default:"#222830",paper:"#222830"},error:{main:"#d32f2f"},primary:{main:"#0088CC"},text:{primary:"rgba(255,255,255,0.8)",secondary:"rgba(255,255,255,0.8)"}},typography:{allVariants:{color:"rgba(255,255,255,0.8)",fontFamily:"mulish"},h1:{fontSize:44,fontWeight:800,color:"rgba(255,255,255,0.8)"},h2:{fontSize:20,fontWeight:800,color:"rgba(255,255,255,0.8)"},h4:{fontSize:20,fontWeight:800,color:"rgba(255,255,255,0.8)"},fontFamily:"mulish"}}),yZe="rgba(255,255,255, 0.2)",vZe="#e0e0e0",t2=e=>e==="light"?vZe:yZe,bZe=()=>{const{themeMode:e,setThemeMode:t}=vv();M.useEffect(()=>{if(e)return;const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t(n?"dark":"light")},[])},Sie=J(Wd)({button:{padding:"5px 10px",height:"unset",p:{fontSize:12,display:"inline-block",overflow:"hidden",whiteSpace:"nowrap"},".MuiCircularProgress-root":{width:"20px!important",height:"20px!important"}}}),_t=J(Wd)(({justifyContent:e="center",alignItems:t="center",gap:n=10})=>({display:"flex",alignItems:t,justifyContent:e,gap:n,width:"100%"})),zt=J(Wd)(({justifyContent:e="center",alignItems:t="center",gap:n=10})=>({display:"flex",alignItems:t,justifyContent:e,flexDirection:"column",width:"100%",gap:n})),wZe=e=>({".MuiMenu-paper":{backgroundImage:"unset!important"},body:{background:e.palette.background.default,overflowX:"hidden",fontFamily:"mulish"},"*::-webkit-scrollbar":{display:"none"},".MuiPickersDay-today":{border:"unset!important"},".toast":{padding:"10px 13px",display:"flex",alignItems:"center",borderRadius:15,boxShadow:e.palette.mode==="light"?"0 4px 24px rgba(0, 0, 0, 0.16)":"unset",background:e.palette.mode==="light"?e.palette.background.paper:"black",border:"unset",".go685806154":{order:2},".go3958317564":{margin:"0px 10px 0px 0px"},"*, p":{color:e.palette.mode==="light"?e.palette.text.secondary:"white",fontFamily:"-apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, Tahoma, Verdana, sans-serif",fontWeight:500}},".app-loader-hidden":{opacity:0},".app-loader-none":{display:"none"},input:{background:e.palette.background.paper,color:e.palette.text.primary},svg:{color:e.palette.text.primary},html:{},".snackbar-success":{backgroundColor:`${e.palette.primary.main}!important`},".MuiTooltip-arrow":{color:e.palette.mode==="light"?"#EEEEEE!important":"#2B303B!important"},".MuiTooltip-tooltip":{background:e.palette.mode==="light"?"#EEEEEE!important":"#2B303B!important",boxShadow:e.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"},".MuiDateCalendar-root .Mui-disabled":{opacity:"0.4!important",color:"gray!important"},[`@media (max-width: ${Nn}px)`]:{"tc-root":{right:10,left:"unset!important"}}}),xie=J(zt)({gap:0,width:"calc(100% - 100px)",maxWidth:1100,marginLeft:"auto",paddingLeft:yie,marginRight:"auto","@media (max-width: 1100px)":{width:"calc(100% - 50px)"},[`@media (max-width: ${Nn}px)`]:{width:"calc(100% - 20px)",paddingLeft:"unset"}});J(Wd)({paddingTop:100});const Oa=J(uPe)(({theme:e})=>({width:"100%",transform:"unset",background:e.palette.mode==="light"?"rgba(0,0,0, 0.07)":"rgba(255,255,255, 0.07)"}));J(At)({display:"inline-block",overflow:"hidden",whiteSpace:"nowrap"});const SZe=J(At)(({theme:e})=>({color:e.palette.mode==="light"?"black":e.palette.text.secondary,textAlign:"left",fontWeight:700,lineHeight:"28px",fontSize:20,"@media (max-width: 600px)":{fontSize:18,lineHeight:"25px"}})),sv=J(Wd)(({theme:e})=>({background:e.palette.background.paper,border:e.palette.mode==="light"?"1px solid #e0e0e0":"1px solid rgba(255,255,255, 0.2)",boxShadow:e.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset",borderRadius:10,padding:20,transition:"0s all",svg:{transition:"0s all"}})),xZe=J(sv)(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.primary.main:"rgba(255,255,255, 0.7)";return{transition:"border-color 0.2s",svg:{transition:"0.2s all"},"&:hover":{border:`1px solid ${t}`}}}),Cie=J(At)({fontSize:18,fontWeight:700}),CZe=J(At)({fontSize:14,opacity:.7,width:"100%",textAlign:"left"}),AZe=J(Wd)(({theme:e})=>({position:"relative",".MuiInputBase-root":{borderRadius:30},".MuiOutlinedInput-notchedOutline":{display:"none"},".MuiSelect-select":{minWidth:200,padding:"8px 15px 8px 15px",border:`1px solid ${t2(e.palette.mode)}`,borderRadius:"30px!important",transition:"0.2s all","&:hover":{border:e.palette.mode==="light"?`1px solid ${e.palette.primary.main}`:"1px solid white"}},".MuiSelect-icon":{width:20,height:20,marginTop:-2}})),Ki=()=>{const{t:e}=Ty("common");return{isRequired:t=>e("isRequired",{value:t}),isInvalid:t=>e("isInvalid",{value:t}),edit:e("edit"),connectedWallet:e("connectedWallet"),create:e("create"),tonBalance:e("tonBalance"),jettonBalance:e("jettonBalance"),nftCollection:e("nftCollection"),copyAddress:e("copyAddress"),logout:e("logout"),ended:e("ended"),notStarted:e("notStarted"),all:e("all"),active:e("active"),back:e("back"),checkWallet:e("checkWallet"),selectWallet:e("selectWallet"),members:e("members"),loadMore:e("loadMore"),administrators:e("administrators"),daoSpaceOwner:e("daoSpaceOwner"),proposalPublisher:e("proposalPublisher"),search:e("search"),preview:e("preview"),help:e("help"),close:e("close"),connectWallet:e("connectWallet"),next:e("next"),transactionRejected:e("transactionRejected"),somethingWentWrong:e("somethingWentWrong"),txPending:e("txPending"),checkWalletForTx:e("checkWalletForTx")}};var Ht={},o_={},_Ze={get exports(){return o_},set exports(e){o_=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",s="function",l="undefined",u="object",c="string",f="major",p="model",g="name",m="type",y="vendor",v="version",x="architecture",w="console",I="mobile",_="tablet",R="smarttv",U="wearable",D="embedded",b=350,T="Amazon",C="Apple",O="ASUS",$="BlackBerry",j="Browser",L="Chrome",B="Edge",H="Firefox",q="Google",Y="Huawei",W="LG",ie="Microsoft",le="Motorola",fe="Opera",Ee="Samsung",Ae="Sharp",Ie="Sony",De="Xiaomi",Ue="Zebra",ce="Facebook",de="Chromium OS",ve="Mac OS",he=function(te,Z){var N={};for(var k in te)Z[k]&&Z[k].length%2===0?N[k]=Z[k].concat(te[k]):N[k]=te[k];return N},pe=function(te){for(var Z={},N=0;N0?V.length===2?typeof V[1]==s?this[V[0]]=V[1].call(this,ee):this[V[0]]=V[1]:V.length===3?typeof V[1]===s&&!(V[1].exec&&V[1].test)?this[V[0]]=ee?V[1].call(this,ee,V[2]):r:this[V[0]]=ee?ee.replace(V[1],V[2]):r:V.length===4&&(this[V[0]]=ee?V[3].call(this,ee.replace(V[1],V[2])):r):this[V]=ee||r;N+=2}},Ve=function(te,Z){for(var N in Z)if(typeof Z[N]===u&&Z[N].length>0){for(var k=0;k2&&(K[p]="iPad",K[m]=_),K},this.getEngine=function(){var K={};return K[g]=r,K[v]=r,Be.call(K,k,P.engine),K},this.getOS=function(){var K={};return K[g]=r,K[v]=r,Be.call(K,k,P.os),V&&!K[g]&&S&&S.platform!="Unknown"&&(K[g]=S.platform.replace(/chrome os/i,de).replace(/macos/i,ve)),K},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return k},this.setUA=function(K){return k=typeof K===c&&K.length>b?Ne(K,b):K,this},this.setUA(k),this};We.VERSION=o,We.BROWSER=pe([g,v,f]),We.CPU=pe([x]),We.DEVICE=pe([p,y,m,w,I,R,_,U,D]),We.ENGINE=We.OS=pe([g,v]),e.exports&&(t=e.exports=We),t.UAParser=We;var Ge=typeof n!==l&&(n.jQuery||n.Zepto);if(Ge&&!Ge.ua){var Fe=new We;Ge.ua=Fe.getResult(),Ge.ua.get=function(){return Fe.getUA()},Ge.ua.set=function(te){Fe.setUA(te);var Z=Fe.getResult();for(var N in Z)Ge.ua[N]=Z[N]}}})(typeof window=="object"?window:st)})(_Ze,o_);Object.defineProperty(Ht,"__esModule",{value:!0});function EZe(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ua=M,Yr=EZe(ua),Aie=o_,Dp=new Aie,ba=Dp.getBrowser(),TZe=Dp.getCPU(),Ks=Dp.getDevice(),v$=Dp.getEngine(),Bp=Dp.getOS(),n2=Dp.getUA(),_ie=function(t){return Dp.setUA(t)},r2=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new Aie(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},Eie=Object.freeze({ClientUAInstance:Dp,browser:ba,cpu:TZe,device:Ks,engine:v$,os:Bp,ua:n2,setUa:_ie,parseUserAgent:r2});function lV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function kZe(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Wl(e,t){if(e==null)return{};var n=RZe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DZe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FC(e)}function BZe(e,t){return $Ze(e)||LZe(e,t)||FZe(e,t)||NZe()}function $Ze(e){if(Array.isArray(e))return e}function LZe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function FZe(e,t){if(e){if(typeof e=="string")return cV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cV(e,t)}}function cV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},b$=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},w$=function(t){var n=b$();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},zZe=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:vn(n.major),browserFullVersion:vn(n.version),browserName:vn(n.name),engineName:vn(r.name),engineVersion:vn(r.version),osName:vn(o.name),osVersion:vn(o.version),userAgent:vn(i)}},dV=function(t,n,r,o){return kZe({},t,{vendor:vn(n.vendor),model:vn(n.model),os:vn(r.name),osVersion:vn(r.version),ua:vn(o)})},VZe=function(t,n,r,o){return{isSmartTV:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},HZe=function(t,n,r,o){return{isConsole:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},qZe=function(t,n,r,o){return{isWearable:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},QZe=function(t,n,r,o,i){return{isEmbedded:t,vendor:vn(n.vendor),model:vn(n.model),engineName:vn(r.name),engineVersion:vn(r.version),osName:vn(o.name),osVersion:vn(o.version),userAgent:vn(i)}};function KZe(e){var t=e?r2(e):Eie,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,s=jZe(n.type),l=s.isBrowser,u=s.isMobile,c=s.isTablet,f=s.isSmartTV,p=s.isConsole,g=s.isWearable,m=s.isEmbedded;if(l)return zZe(l,r,o,i,a);if(f)return VZe(f,o,i,a);if(p)return HZe(p,o,i,a);if(u||c)return dV(s,n,i,a);if(g)return qZe(g,o,i,a);if(m)return QZe(m,n,o,i,a)}var Tie=function(t){var n=t.type;return n===ia.Mobile},kie=function(t){var n=t.type;return n===ia.Tablet},Iie=function(t){var n=t.type;return n===ia.Mobile||n===ia.Tablet},Pie=function(t){var n=t.type;return n===ia.SmartTv},i_=function(t){var n=t.type;return n===ia.Browser},Mie=function(t){var n=t.type;return n===ia.Wearable},Oie=function(t){var n=t.type;return n===ia.Console},Rie=function(t){var n=t.type;return n===ia.Embedded},Die=function(t){var n=t.vendor;return vn(n)},Bie=function(t){var n=t.model;return vn(n)},$ie=function(t){var n=t.type;return vn(n,"browser")},Lie=function(t){var n=t.name;return n===lv.Android},Fie=function(t){var n=t.name;return n===lv.Windows},Nie=function(t){var n=t.name;return n===lv.MAC_OS},Uie=function(t){var n=t.name;return n===lv.WindowsPhone},jie=function(t){var n=t.name;return n===lv.IOS},Wie=function(t){var n=t.version;return vn(n)},zie=function(t){var n=t.name;return vn(n)},Vie=function(t){var n=t.name;return n===ds.Chrome},Hie=function(t){var n=t.name;return n===ds.Firefox},qie=function(t){var n=t.name;return n===ds.Chromium},a_=function(t){var n=t.name;return n===ds.Edge},Qie=function(t){var n=t.name;return n===ds.Yandex},Kie=function(t){var n=t.name;return n===ds.Safari||n===ds.MobileSafari},Yie=function(t){var n=t.name;return n===ds.MobileSafari},Gie=function(t){var n=t.name;return n===ds.Opera},Jie=function(t){var n=t.name;return n===ds.InternetExplorer||n===ds.Ie},Xie=function(t){var n=t.name;return n===ds.MIUI},Zie=function(t){var n=t.name;return n===ds.SamsungBrowser},eae=function(t){var n=t.version;return vn(n)},tae=function(t){var n=t.major;return vn(n)},nae=function(t){var n=t.name;return vn(n)},rae=function(t){var n=t.name;return vn(n)},oae=function(t){var n=t.version;return vn(n)},iae=function(){var t=b$(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},C0=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},aae=function(){var t=b$();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Xu=function(){return w$("iPad")},sae=function(){return w$("iPhone")},lae=function(){return w$("iPod")},uae=function(t){return vn(t)};function cae(e){var t=e||Eie,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:Pie(n),isConsole:Oie(n),isWearable:Mie(n),isEmbedded:Rie(n),isMobileSafari:Yie(r)||Xu(),isChromium:qie(r),isMobile:Iie(n)||Xu(),isMobileOnly:Tie(n),isTablet:kie(n)||Xu(),isBrowser:i_(n),isDesktop:i_(n),isAndroid:Lie(o),isWinPhone:Uie(o),isIOS:jie(o)||Xu(),isChrome:Vie(r),isFirefox:Hie(r),isSafari:Kie(r),isOpera:Gie(r),isIE:Jie(r),osVersion:Wie(o),osName:zie(o),fullBrowserVersion:eae(r),browserVersion:tae(r),browserName:nae(r),mobileVendor:Die(n),mobileModel:Bie(n),engineName:rae(i),engineVersion:oae(i),getUA:uae(a),isEdge:a_(r)||C0(a),isYandex:Qie(r),deviceType:$ie(n),isIOS13:aae(),isIPad13:Xu(),isIPhone13:sae(),isIPod13:lae(),isElectron:iae(),isEdgeChromium:C0(a),isLegacyEdge:a_(r)&&!C0(a),isWindows:Fie(o),isMacOs:Nie(o),isMIUI:Xie(r),isSamsungBrowser:Zie(r)}}var dae=Pie(Ks),fae=Oie(Ks),pae=Mie(Ks),YZe=Rie(Ks),GZe=Yie(ba)||Xu(),JZe=qie(ba),aI=Iie(Ks)||Xu(),hae=Tie(Ks),gae=kie(Ks)||Xu(),mae=i_(Ks),XZe=i_(Ks),yae=Lie(Bp),vae=Uie(Bp),bae=jie(Bp)||Xu(),ZZe=Vie(ba),eet=Hie(ba),tet=Kie(ba),net=Gie(ba),wae=Jie(ba),ret=Wie(Bp),oet=zie(Bp),iet=eae(ba),aet=tae(ba),set=nae(ba),uet=Die(Ks),cet=Bie(Ks),det=rae(v$),fet=oae(v$),pet=uae(n2),het=a_(ba)||C0(n2),get=Qie(ba),met=$ie(Ks),yet=aae(),vet=Xu(),bet=sae(),wet=lae(),xet=iae(),Cet=C0(n2),Aet=a_(ba)&&!C0(n2),_et=Fie(Bp),Eet=Nie(Bp),Tet=Xie(ba),ket=Zie(ba),Iet=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=r2(t),r=n.device,o=n.browser,i=n.os,a=n.engine,s=n.ua;return cae({device:r,browser:o,os:i,engine:a,ua:s})},Pet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return yae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Met=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return mae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Oet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return wae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Ret=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return bae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Det=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return aI?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Bet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return gae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},$et=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return vae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Let=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=Wl(t,["renderWithFragment","children","viewClassName","style"]);return hae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Fet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return dae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Net=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return fae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Uet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return pae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},jet=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=Wl(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",i,r):null};function Wet(e){return function(t){OZe(n,t);function n(r){var o;return IZe(this,n),o=DZe(this,FR(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(FC(o)),o.onOrientationChange=o.onOrientationChange.bind(FC(o)),o.onPageLoad=o.onPageLoad.bind(FC(o)),o.state={isLandscape:!1,isPortrait:!1},o}return PZe(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":vb(window))!==void 0&&aI&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return Yr.createElement(e,LR({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(Yr.Component)}function zet(){var e=ua.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=BZe(e,2),n=t[0],r=t[1],o=ua.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return ua.useEffect(function(){return(typeof window>"u"?"undefined":vb(window))!==void 0&&aI&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function Sae(e){var t=e||window.navigator.userAgent;return r2(t)}function Vet(e){var t=e||window.navigator.userAgent,n=Sae(t),r=cae(n);return[r,n]}Ht.AndroidView=Pet;Ht.BrowserTypes=ds;Ht.BrowserView=Met;Ht.ConsoleView=Net;Ht.CustomView=jet;Ht.IEView=Oet;Ht.IOSView=Ret;Ht.MobileOnlyView=Let;Ht.MobileView=Det;Ht.OsTypes=lv;Ht.SmartTVView=Fet;Ht.TabletView=Bet;Ht.WearableView=Uet;Ht.WinPhoneView=$et;Ht.browserName=set;Ht.browserVersion=aet;Ht.deviceDetect=KZe;Ht.deviceType=met;Ht.engineName=det;Ht.engineVersion=fet;Ht.fullBrowserVersion=iet;Ht.getSelectorsByUserAgent=Iet;Ht.getUA=pet;Ht.isAndroid=yae;Ht.isBrowser=mae;Ht.isChrome=ZZe;Ht.isChromium=JZe;Ht.isConsole=fae;Ht.isDesktop=XZe;Ht.isEdge=het;Ht.isEdgeChromium=Cet;Ht.isElectron=xet;Ht.isEmbedded=YZe;Ht.isFirefox=eet;Ht.isIE=wae;Ht.isIOS=bae;Ht.isIOS13=yet;Ht.isIPad13=vet;Ht.isIPhone13=bet;Ht.isIPod13=wet;Ht.isLegacyEdge=Aet;Ht.isMIUI=Tet;Ht.isMacOs=Eet;var S$=Ht.isMobile=aI;Ht.isMobileOnly=hae;Ht.isMobileSafari=GZe;Ht.isOpera=net;Ht.isSafari=tet;Ht.isSamsungBrowser=ket;Ht.isSmartTV=dae;Ht.isTablet=gae;Ht.isWearable=pae;Ht.isWinPhone=vae;Ht.isWindows=_et;Ht.isYandex=get;Ht.mobileModel=cet;Ht.mobileVendor=uet;Ht.osName=oet;Ht.osVersion=ret;Ht.parseUserAgent=r2;Ht.setUserAgent=WZe;Ht.useDeviceData=Sae;Ht.useDeviceSelectors=Vet;Ht.useMobileOrientation=zet;Ht.withOrientationChange=Wet;const Ru=Dn.forwardRef(({children:e,className:t="",onClick:n,hover:r=!1},o)=>!S$&&r?A(xZe,{onClick:n,className:t,ref:o,children:e}):A(sv,{onClick:n,className:t,ref:o,children:e}));function dr({children:e,disabled:t=!1,isLoading:n,className:r="",onClick:o,variant:i,id:a}){return Se(Qet,{id:a,onClick:o,disabled:t||!!n,className:`${r} button`,variant:i,children:[A(Ra,{in:n,children:A(Het,{children:A(_D,{className:"loader",style:{width:30,height:30}})})}),A(Ra,{in:!n,children:A(qet,{className:"children",children:e})})]})}const Het=J(Wd)({position:"absolute",left:"50%",top:"55%",transform:"translate(-50%, -50%)"}),qet=J(_t)({gap:5}),Qet=J("button")(({theme:e,disabled:t,variant:n})=>({width:"fit-content",height:44,borderRadius:40,opacity:t?.7:1,pointerEvents:t?"none":"all",background:n==="transparent"?"transparent":e.palette.primary.main,border:n==="transparent"?`1px solid ${e.palette.primary.main}`:"1px solid transparent",cursor:"pointer",position:"relative",padding:"0px 16px",transition:"0.3s all","*, p":{color:n==="transparent"&&e.palette.mode==="light"?e.palette.primary.main:"white",fontSize:16,fontWeight:700,fontFamily:e.typography.fontFamily},[`@media (min-width: ${Nn}px)`]:{"&:hover":{border:n==="transparent"?"1px solid transparent":`1px solid ${e.palette.primary.main}`,background:n==="transparent"?e.palette.primary.main:"transparent","*":{color:n==="transparent"||e.palette.mode==="dark"?"white":e.palette.primary.main}}}}));function Ket({children:e,href:t,target:n="_blank",className:r=""}){return A(Yet,{className:r,href:t,target:n,children:e})}const Yet=J("a")({gap:5,textDecoration:"unset",alignItems:"center",color:"inherit",fontSize:"inherit"});function Get({progress:e}){return A(Jet,{variant:"determinate",value:e})}const Jet=J(XIe)({height:10,borderRadius:10,width:"100%"});function sI({className:e=""}){return A(dr,{onClick:()=>{const n=document.getElementById("ton-connect-button"),r=n==null?void 0:n.querySelector("button");r&&r.click()},className:e,children:A(At,{children:"Connect Wallet"})})}var xae={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fV=Dn.createContext&&Dn.createContext(xae),np=globalThis&&globalThis.__assign||function(){return np=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function hV(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function ttt(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=ett.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var ntt=[".DS_Store","Thumbs.db"];function rtt(e){return uv(this,void 0,void 0,function(){return cv(this,function(t){return s_(e)&&ott(e.dataTransfer)?[2,ltt(e.dataTransfer,e.type)]:itt(e)?[2,att(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,stt(e)]:[2,[]]})})}function ott(e){return s_(e)}function itt(e){return s_(e)&&s_(e.target)}function s_(e){return typeof e=="object"&&e!==null}function att(e){return UR(e.target.files).map(function(t){return o2(t)})}function stt(e){return uv(this,void 0,void 0,function(){var t;return cv(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return o2(r)})]}})})}function ltt(e,t){return uv(this,void 0,void 0,function(){var n,r;return cv(this,function(o){switch(o.label){case 0:return e.items?(n=UR(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(utt))]):[3,2];case 1:return r=o.sent(),[2,gV(Aae(r))];case 2:return[2,gV(UR(e.files).map(function(i){return o2(i)}))]}})})}function gV(e){return e.filter(function(t){return ntt.indexOf(t.name)===-1})}function UR(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,wV(n)];if(e.sizen)return[!1,wV(n)]}return[!0,null]}function wh(e){return e!=null}function _tt(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(l){var u=kae(l,n),c=bw(u,1),f=c[0],p=Iae(l,r,o),g=bw(p,1),m=g[0],y=s?s(l):null;return f&&m&&!y})}function l_(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Wx(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function xV(e){e.preventDefault()}function Ett(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Ttt(e){return e.indexOf("Edge/")!==-1}function ktt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ett(e)||Ttt(e)}function ju(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Htt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var x$=M.forwardRef(function(e,t){var n=e.children,r=u_(e,Dtt),o=Dae(r),i=o.open,a=u_(o,Btt);return M.useImperativeHandle(t,function(){return{open:i}},[i]),Dn.createElement(M.Fragment,null,n(Ao(Ao({},a),{},{open:i})))});x$.displayName="Dropzone";var Rae={disabled:!1,getFilesFromEvent:rtt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};x$.defaultProps=Rae;x$.propTypes={children:ue.func,accept:ue.objectOf(ue.arrayOf(ue.string)),multiple:ue.bool,preventDropOnDocument:ue.bool,noClick:ue.bool,noKeyboard:ue.bool,noDrag:ue.bool,noDragEventsBubbling:ue.bool,minSize:ue.number,maxSize:ue.number,maxFiles:ue.number,disabled:ue.bool,getFilesFromEvent:ue.func,onFileDialogCancel:ue.func,onFileDialogOpen:ue.func,useFsAccessApi:ue.bool,autoFocus:ue.bool,onDragEnter:ue.func,onDragLeave:ue.func,onDragOver:ue.func,onDrop:ue.func,onDropAccepted:ue.func,onDropRejected:ue.func,onError:ue.func,validator:ue.func};var VR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Dae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ao(Ao({},Rae),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,w=t.autoFocus,I=t.preventDropOnDocument,_=t.noClick,R=t.noKeyboard,U=t.noDrag,D=t.noDragEventsBubbling,b=t.onError,T=t.validator,C=M.useMemo(function(){return Mtt(n)},[n]),O=M.useMemo(function(){return Ptt(n)},[n]),$=M.useMemo(function(){return typeof v=="function"?v:AV},[v]),j=M.useMemo(function(){return typeof y=="function"?y:AV},[y]),L=M.useRef(null),B=M.useRef(null),H=M.useReducer(qtt,VR),q=KP(H,2),Y=q[0],W=q[1],ie=Y.isFocused,le=Y.isFileDialogActive,fe=M.useRef(typeof window<"u"&&window.isSecureContext&&x&&Itt()),Ee=function(){!fe.current&&le&&setTimeout(function(){if(B.current){var te=B.current.files;te.length||(W({type:"closeDialog"}),j())}},300)};M.useEffect(function(){return window.addEventListener("focus",Ee,!1),function(){window.removeEventListener("focus",Ee,!1)}},[B,le,j,fe]);var Ae=M.useRef([]),Ie=function(te){L.current&&L.current.contains(te.target)||(te.preventDefault(),Ae.current=[])};M.useEffect(function(){return I&&(document.addEventListener("dragover",xV,!1),document.addEventListener("drop",Ie,!1)),function(){I&&(document.removeEventListener("dragover",xV),document.removeEventListener("drop",Ie))}},[L,I]),M.useEffect(function(){return!r&&w&&L.current&&L.current.focus(),function(){}},[L,w,r]);var De=M.useCallback(function(Fe){b?b(Fe):console.error(Fe)},[b]),Ue=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe),Ae.current=[].concat(Ftt(Ae.current),[Fe.target]),Wx(Fe)&&Promise.resolve(o(Fe)).then(function(te){if(!(l_(Fe)&&!D)){var Z=te.length,N=Z>0&&_tt({files:te,accept:C,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:T}),k=Z>0&&!N;W({isDragAccept:N,isDragReject:k,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Fe)}}).catch(function(te){return De(te)})},[o,u,De,D,C,a,i,s,l,T]),ce=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe);var te=Wx(Fe);if(te&&Fe.dataTransfer)try{Fe.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(Fe),!1},[f,D]),de=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe);var te=Ae.current.filter(function(N){return L.current&&L.current.contains(N)}),Z=te.indexOf(Fe.target);Z!==-1&&te.splice(Z,1),Ae.current=te,!(te.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Wx(Fe)&&c&&c(Fe))},[L,c,D]),ve=M.useCallback(function(Fe,te){var Z=[],N=[];Fe.forEach(function(k){var S=kae(k,C),P=KP(S,2),V=P[0],K=P[1],ee=Iae(k,a,i),be=KP(ee,2),Me=be[0],we=be[1],Pe=T?T(k):null;if(V&&Me&&!Pe)Z.push(k);else{var Ye=[K,we];Pe&&(Ye=Ye.concat(Pe)),N.push({file:k,errors:Ye.filter(function(ze){return ze})})}}),(!s&&Z.length>1||s&&l>=1&&Z.length>l)&&(Z.forEach(function(k){N.push({file:k,errors:[Att]})}),Z.splice(0)),W({acceptedFiles:Z,fileRejections:N,type:"setFiles"}),p&&p(Z,N,te),N.length>0&&m&&m(N,te),Z.length>0&&g&&g(Z,te)},[W,s,C,a,i,l,p,g,m,T]),he=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe),Ae.current=[],Wx(Fe)&&Promise.resolve(o(Fe)).then(function(te){l_(Fe)&&!D||ve(te,Fe)}).catch(function(te){return De(te)}),W({type:"reset"})},[o,ve,De,D]),pe=M.useCallback(function(){if(fe.current){W({type:"openDialog"}),$();var Fe={multiple:s,types:O};window.showOpenFilePicker(Fe).then(function(te){return o(te)}).then(function(te){ve(te,null),W({type:"closeDialog"})}).catch(function(te){Ott(te)?(j(te),W({type:"closeDialog"})):Rtt(te)?(fe.current=!1,B.current?(B.current.value=null,B.current.click()):De(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):De(te)});return}B.current&&(W({type:"openDialog"}),$(),B.current.value=null,B.current.click())},[W,$,j,x,ve,De,O,s]),ge=M.useCallback(function(Fe){!L.current||!L.current.isEqualNode(Fe.target)||(Fe.key===" "||Fe.key==="Enter"||Fe.keyCode===32||Fe.keyCode===13)&&(Fe.preventDefault(),pe())},[L,pe]),Ce=M.useCallback(function(){W({type:"focus"})},[]),_e=M.useCallback(function(){W({type:"blur"})},[]),Ne=M.useCallback(function(){_||(ktt()?setTimeout(pe,0):pe())},[_,pe]),Be=function(te){return r?null:te},Ve=function(te){return R?null:Be(te)},wt=function(te){return U?null:Be(te)},xe=function(te){D&&te.stopPropagation()},je=M.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Fe.refKey,Z=te===void 0?"ref":te,N=Fe.role,k=Fe.onKeyDown,S=Fe.onFocus,P=Fe.onBlur,V=Fe.onClick,K=Fe.onDragEnter,ee=Fe.onDragOver,be=Fe.onDragLeave,Me=Fe.onDrop,we=u_(Fe,$tt);return Ao(Ao(zR({onKeyDown:Ve(ju(k,ge)),onFocus:Ve(ju(S,Ce)),onBlur:Ve(ju(P,_e)),onClick:Be(ju(V,Ne)),onDragEnter:wt(ju(K,Ue)),onDragOver:wt(ju(ee,ce)),onDragLeave:wt(ju(be,de)),onDrop:wt(ju(Me,he)),role:typeof N=="string"&&N!==""?N:"presentation"},Z,L),!r&&!R?{tabIndex:0}:{}),we)}},[L,ge,Ce,_e,Ne,Ue,ce,de,he,R,U,r]),We=M.useCallback(function(Fe){Fe.stopPropagation()},[]),Ge=M.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Fe.refKey,Z=te===void 0?"ref":te,N=Fe.onChange,k=Fe.onClick,S=u_(Fe,Ltt),P=zR({accept:C,multiple:s,type:"file",style:{display:"none"},onChange:Be(ju(N,he)),onClick:Be(ju(k,We)),tabIndex:-1},Z,B);return Ao(Ao({},P),S)}},[B,n,s,he,r]);return Ao(Ao({},Y),{},{isFocused:ie&&!r,getRootProps:je,getInputProps:Ge,rootRef:L,inputRef:B,open:Be(pe)})}function qtt(e,t){switch(t.type){case"focus":return Ao(Ao({},e),{},{isFocused:!0});case"blur":return Ao(Ao({},e),{},{isFocused:!1});case"openDialog":return Ao(Ao({},VR),{},{isFileDialogActive:!0});case"closeDialog":return Ao(Ao({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ao(Ao({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ao(Ao({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ao({},VR);default:return e}}function AV(){}function Qtt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}}]})(e)}function Ktt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 1.5v1h3.5a.5.5 0 0 1 0 1h-.538l-.853 10.66A2 2 0 0 1 11.115 16h-6.23a2 2 0 0 1-1.994-1.84L2.038 3.5H1.5a.5.5 0 0 1 0-1H5v-1A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5Zm-5 0v1h4v-1a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5ZM4.5 5.029l.5 8.5a.5.5 0 1 0 .998-.06l-.5-8.5a.5.5 0 1 0-.998.06Zm6.53-.528a.5.5 0 0 0-.528.47l-.5 8.5a.5.5 0 0 0 .998.058l.5-8.5a.5.5 0 0 0-.47-.528ZM8 4.5a.5.5 0 0 0-.5.5v8.5a.5.5 0 0 0 1 0V5a.5.5 0 0 0-.5-.5Z"}}]})(e)}function Ytt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"}}]})(e)}function Gtt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}}]})(e)}function Jtt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"}}]})(e)}function Xtt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"}}]})(e)}function Ztt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855A7.97 7.97 0 0 0 5.145 4H7.5V1.077zM4.09 4a9.267 9.267 0 0 1 .64-1.539 6.7 6.7 0 0 1 .597-.933A7.025 7.025 0 0 0 2.255 4H4.09zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a6.958 6.958 0 0 0-.656 2.5h2.49zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5H4.847zM8.5 5v2.5h2.99a12.495 12.495 0 0 0-.337-2.5H8.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5H4.51zm3.99 0V11h2.653c.187-.765.306-1.608.338-2.5H8.5zM5.145 12c.138.386.295.744.468 1.068.552 1.035 1.218 1.65 1.887 1.855V12H5.145zm.182 2.472a6.696 6.696 0 0 1-.597-.933A9.268 9.268 0 0 1 4.09 12H2.255a7.024 7.024 0 0 0 3.072 2.472zM3.82 11a13.652 13.652 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5H3.82zm6.853 3.472A7.024 7.024 0 0 0 13.745 12H11.91a9.27 9.27 0 0 1-.64 1.539 6.688 6.688 0 0 1-.597.933zM8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068H8.5zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.65 13.65 0 0 1-.312 2.5zm2.802-3.5a6.959 6.959 0 0 0-.656-2.5H12.18c.174.782.282 1.623.312 2.5h2.49zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7.024 7.024 0 0 0-3.072-2.472c.218.284.418.598.597.933zM10.855 4a7.966 7.966 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4h2.355z"}}]})(e)}function ent(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function tnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.167 8a.831.831 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661zm1.843 3.647c.315 0 1.403-.038 1.976-.611a.232.232 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83.458 0 .83-.381.83-.83a.831.831 0 0 0-1.66 0z"}},{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.203.203 0 0 0-.153.028.186.186 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224c-.02.115-.029.23-.029.353 0 1.795 2.091 3.256 4.669 3.256 2.577 0 4.668-1.451 4.668-3.256 0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165z"}}]})(e)}function nnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"}}]})(e)}function rnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}function ont(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}},{tag:"path",attr:{d:"M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z"}}]})(e)}//! moment.js +`,j2=16,MZe=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:o,containerStyle:i,containerClassName:a})=>{let{toasts:s,handlers:l}=iZe(n);return M.createElement("div",{style:{position:"fixed",zIndex:9999,top:j2,left:j2,right:j2,bottom:j2,pointerEvents:"none",...i},className:a,onMouseEnter:l.startPause,onMouseLeave:l.endPause},s.map(u=>{let c=u.position||t,f=l.calculateOffset(u,{reverseOrder:e,gutter:r,defaultPosition:t}),p=IZe(c,f);return M.createElement(kZe,{id:u.id,key:u.id,onHeightUpdate:l.updateHeight,className:u.visible?PZe:"",style:p},u.type==="custom"?r_(u.message,u):o?o(u):M.createElement(TZe,{toast:u,position:c}))}))},Lh=Ds;const OZe=QE({palette:{mode:"light",background:{default:"#F8F9FB",paper:"white"},error:{main:"#d32f2f"},primary:{main:"#0088CC"},text:{primary:"rgb(114, 138, 150)",secondary:"rgb(22, 28, 40)"}},typography:{allVariants:{color:"rgb(114, 138, 150)",fontFamily:"mulish"},h1:{fontSize:44,fontWeight:800,color:"rgb(22, 28, 40)"},h2:{fontSize:20,fontWeight:800,color:"rgb(22, 28, 40)"},h4:{fontSize:20,fontWeight:800,color:"rgb(22, 28, 40)"},fontFamily:"mulish"}}),RZe=QE({palette:{mode:"dark",background:{default:"#222830",paper:"#222830"},error:{main:"#d32f2f"},primary:{main:"#0088CC"},text:{primary:"rgba(255,255,255,0.8)",secondary:"rgba(255,255,255,0.8)"}},typography:{allVariants:{color:"rgba(255,255,255,0.8)",fontFamily:"mulish"},h1:{fontSize:44,fontWeight:800,color:"rgba(255,255,255,0.8)"},h2:{fontSize:20,fontWeight:800,color:"rgba(255,255,255,0.8)"},h4:{fontSize:20,fontWeight:800,color:"rgba(255,255,255,0.8)"},fontFamily:"mulish"}}),DZe="rgba(255,255,255, 0.2)",BZe="#e0e0e0",tx=e=>e==="light"?BZe:DZe,$Ze=()=>{const{themeMode:e,setThemeMode:t}=vv();M.useEffect(()=>{if(e)return;const n=window.matchMedia("(prefers-color-scheme: dark)").matches;t(n?"dark":"light")},[])},wie=J(Wd)({button:{padding:"5px 10px",height:"unset",p:{fontSize:12,display:"inline-block",overflow:"hidden",whiteSpace:"nowrap"},".MuiCircularProgress-root":{width:"20px!important",height:"20px!important"}}}),_t=J(Wd)(({justifyContent:e="center",alignItems:t="center",gap:n=10})=>({display:"flex",alignItems:t,justifyContent:e,gap:n,width:"100%"})),zt=J(Wd)(({justifyContent:e="center",alignItems:t="center",gap:n=10})=>({display:"flex",alignItems:t,justifyContent:e,flexDirection:"column",width:"100%",gap:n})),LZe=e=>({".MuiMenu-paper":{backgroundImage:"unset!important"},body:{background:e.palette.background.default,overflowX:"hidden",fontFamily:"mulish"},"*::-webkit-scrollbar":{display:"none"},".MuiPickersDay-today":{border:"unset!important"},".toast":{padding:"10px 13px",display:"flex",alignItems:"center",borderRadius:15,boxShadow:e.palette.mode==="light"?"0 4px 24px rgba(0, 0, 0, 0.16)":"unset",background:e.palette.mode==="light"?e.palette.background.paper:"black",border:"unset",".go685806154":{order:2},".go3958317564":{margin:"0px 10px 0px 0px"},"*, p":{color:e.palette.mode==="light"?e.palette.text.secondary:"white",fontFamily:"-apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, Tahoma, Verdana, sans-serif",fontWeight:500}},".app-loader-hidden":{opacity:0},".app-loader-none":{display:"none"},input:{background:e.palette.background.paper,color:e.palette.text.primary},svg:{color:e.palette.text.primary},html:{},".snackbar-success":{backgroundColor:`${e.palette.primary.main}!important`},".MuiTooltip-arrow":{color:e.palette.mode==="light"?"#EEEEEE!important":"#2B303B!important"},".MuiTooltip-tooltip":{background:e.palette.mode==="light"?"#EEEEEE!important":"#2B303B!important",boxShadow:e.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"},".MuiDateCalendar-root .Mui-disabled":{opacity:"0.4!important",color:"gray!important"},[`@media (max-width: ${Ln}px)`]:{"tc-root":{right:10,left:"unset!important"}}}),Sie=J(zt)({gap:0,width:"calc(100% - 100px)",maxWidth:1100,marginLeft:"auto",paddingLeft:mie,marginRight:"auto","@media (max-width: 1100px)":{width:"calc(100% - 50px)"},[`@media (max-width: ${Ln}px)`]:{width:"calc(100% - 20px)",paddingLeft:"unset"}});J(Wd)({paddingTop:100});const Oa=J(lPe)(({theme:e})=>({width:"100%",transform:"unset",background:e.palette.mode==="light"?"rgba(0,0,0, 0.07)":"rgba(255,255,255, 0.07)"}));J(At)({display:"inline-block",overflow:"hidden",whiteSpace:"nowrap"});const FZe=J(At)(({theme:e})=>({color:e.palette.mode==="light"?"black":e.palette.text.secondary,textAlign:"left",fontWeight:700,lineHeight:"28px",fontSize:20,"@media (max-width: 600px)":{fontSize:18,lineHeight:"25px"}})),sv=J(Wd)(({theme:e})=>({background:e.palette.background.paper,border:e.palette.mode==="light"?"1px solid #e0e0e0":"1px solid rgba(255,255,255, 0.2)",boxShadow:e.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset",borderRadius:10,padding:20,transition:"0s all",svg:{transition:"0s all"}})),NZe=J(sv)(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.primary.main:"rgba(255,255,255, 0.7)";return{transition:"border-color 0.2s",svg:{transition:"0.2s all"},"&:hover":{border:`1px solid ${t}`}}}),xie=J(At)({fontSize:18,fontWeight:700}),UZe=J(At)({fontSize:14,opacity:.7,width:"100%",textAlign:"left"}),jZe=J(Wd)(({theme:e})=>({position:"relative",".MuiInputBase-root":{borderRadius:30},".MuiOutlinedInput-notchedOutline":{display:"none"},".MuiSelect-select":{minWidth:200,padding:"8px 15px 8px 15px",border:`1px solid ${tx(e.palette.mode)}`,borderRadius:"30px!important",transition:"0.2s all","&:hover":{border:e.palette.mode==="light"?`1px solid ${e.palette.primary.main}`:"1px solid white"}},".MuiSelect-icon":{width:20,height:20,marginTop:-2}})),Ki=()=>{const{t:e}=Ty("common");return{isRequired:t=>e("isRequired",{value:t}),isInvalid:t=>e("isInvalid",{value:t}),edit:e("edit"),connectedWallet:e("connectedWallet"),create:e("create"),tonBalance:e("tonBalance"),jettonBalance:e("jettonBalance"),nftCollection:e("nftCollection"),copyAddress:e("copyAddress"),logout:e("logout"),ended:e("ended"),notStarted:e("notStarted"),all:e("all"),active:e("active"),back:e("back"),checkWallet:e("checkWallet"),selectWallet:e("selectWallet"),members:e("members"),loadMore:e("loadMore"),administrators:e("administrators"),daoSpaceOwner:e("daoSpaceOwner"),proposalPublisher:e("proposalPublisher"),search:e("search"),preview:e("preview"),help:e("help"),close:e("close"),connectWallet:e("connectWallet"),next:e("next"),transactionRejected:e("transactionRejected"),somethingWentWrong:e("somethingWentWrong"),txPending:e("txPending"),checkWalletForTx:e("checkWalletForTx")}};var Ht={},o_={},WZe={get exports(){return o_},set exports(e){o_=e}};(function(e,t){(function(n,r){var o="1.0.35",i="",a="?",s="function",l="undefined",u="object",c="string",f="major",p="model",g="name",m="type",y="vendor",v="version",x="architecture",w="console",I="mobile",_="tablet",R="smarttv",U="wearable",D="embedded",b=350,T="Amazon",C="Apple",O="ASUS",$="BlackBerry",j="Browser",L="Chrome",B="Edge",H="Firefox",q="Google",Y="Huawei",W="LG",ie="Microsoft",le="Motorola",fe="Opera",Ee="Samsung",Ae="Sharp",Ie="Sony",De="Xiaomi",Ue="Zebra",ce="Facebook",de="Chromium OS",ve="Mac OS",he=function(te,Z){var N={};for(var k in te)Z[k]&&Z[k].length%2===0?N[k]=Z[k].concat(te[k]):N[k]=te[k];return N},pe=function(te){for(var Z={},N=0;N0?V.length===2?typeof V[1]==s?this[V[0]]=V[1].call(this,ee):this[V[0]]=V[1]:V.length===3?typeof V[1]===s&&!(V[1].exec&&V[1].test)?this[V[0]]=ee?V[1].call(this,ee,V[2]):r:this[V[0]]=ee?ee.replace(V[1],V[2]):r:V.length===4&&(this[V[0]]=ee?V[3].call(this,ee.replace(V[1],V[2])):r):this[V]=ee||r;N+=2}},Ve=function(te,Z){for(var N in Z)if(typeof Z[N]===u&&Z[N].length>0){for(var k=0;k2&&(K[p]="iPad",K[m]=_),K},this.getEngine=function(){var K={};return K[g]=r,K[v]=r,Be.call(K,k,P.engine),K},this.getOS=function(){var K={};return K[g]=r,K[v]=r,Be.call(K,k,P.os),V&&!K[g]&&S&&S.platform!="Unknown"&&(K[g]=S.platform.replace(/chrome os/i,de).replace(/macos/i,ve)),K},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return k},this.setUA=function(K){return k=typeof K===c&&K.length>b?Ne(K,b):K,this},this.setUA(k),this};We.VERSION=o,We.BROWSER=pe([g,v,f]),We.CPU=pe([x]),We.DEVICE=pe([p,y,m,w,I,R,_,U,D]),We.ENGINE=We.OS=pe([g,v]),e.exports&&(t=e.exports=We),t.UAParser=We;var Ge=typeof n!==l&&(n.jQuery||n.Zepto);if(Ge&&!Ge.ua){var Fe=new We;Ge.ua=Fe.getResult(),Ge.ua.get=function(){return Fe.getUA()},Ge.ua.set=function(te){Fe.setUA(te);var Z=Fe.getResult();for(var N in Z)Ge.ua[N]=Z[N]}}})(typeof window=="object"?window:st)})(WZe,o_);Object.defineProperty(Ht,"__esModule",{value:!0});function zZe(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var ua=M,Yr=zZe(ua),Cie=o_,Dp=new Cie,ba=Dp.getBrowser(),VZe=Dp.getCPU(),Ks=Dp.getDevice(),v$=Dp.getEngine(),Bp=Dp.getOS(),nx=Dp.getUA(),Aie=function(t){return Dp.setUA(t)},rx=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new Cie(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(o){return n.setUA(o)}}},_ie=Object.freeze({ClientUAInstance:Dp,browser:ba,cpu:VZe,device:Ks,engine:v$,os:Bp,ua:nx,setUa:Aie,parseUserAgent:rx});function lV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function HZe(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function Wl(e,t){if(e==null)return{};var n=GZe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JZe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FC(e)}function XZe(e,t){return ZZe(e)||eet(e,t)||tet(e,t)||net()}function ZZe(e){if(Array.isArray(e))return e}function eet(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,s;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(l){i=!0,s=l}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw s}}return r}}function tet(e,t){if(e){if(typeof e=="string")return cV(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cV(e,t)}}function cV(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},b$=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},w$=function(t){var n=b$();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},aet=function(t,n,r,o,i){return{isBrowser:t,browserMajorVersion:vn(n.major),browserFullVersion:vn(n.version),browserName:vn(n.name),engineName:vn(r.name),engineVersion:vn(r.version),osName:vn(o.name),osVersion:vn(o.version),userAgent:vn(i)}},dV=function(t,n,r,o){return HZe({},t,{vendor:vn(n.vendor),model:vn(n.model),os:vn(r.name),osVersion:vn(r.version),ua:vn(o)})},set=function(t,n,r,o){return{isSmartTV:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},uet=function(t,n,r,o){return{isConsole:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},cet=function(t,n,r,o){return{isWearable:t,engineName:vn(n.name),engineVersion:vn(n.version),osName:vn(r.name),osVersion:vn(r.version),userAgent:vn(o)}},det=function(t,n,r,o,i){return{isEmbedded:t,vendor:vn(n.vendor),model:vn(n.model),engineName:vn(r.name),engineVersion:vn(r.version),osName:vn(o.name),osVersion:vn(o.version),userAgent:vn(i)}};function fet(e){var t=e?rx(e):_ie,n=t.device,r=t.browser,o=t.engine,i=t.os,a=t.ua,s=oet(n.type),l=s.isBrowser,u=s.isMobile,c=s.isTablet,f=s.isSmartTV,p=s.isConsole,g=s.isWearable,m=s.isEmbedded;if(l)return aet(l,r,o,i,a);if(f)return set(f,o,i,a);if(p)return uet(p,o,i,a);if(u||c)return dV(s,n,i,a);if(g)return cet(g,o,i,a);if(m)return det(m,n,o,i,a)}var Eie=function(t){var n=t.type;return n===ia.Mobile},Tie=function(t){var n=t.type;return n===ia.Tablet},kie=function(t){var n=t.type;return n===ia.Mobile||n===ia.Tablet},Iie=function(t){var n=t.type;return n===ia.SmartTv},i_=function(t){var n=t.type;return n===ia.Browser},Pie=function(t){var n=t.type;return n===ia.Wearable},Mie=function(t){var n=t.type;return n===ia.Console},Oie=function(t){var n=t.type;return n===ia.Embedded},Rie=function(t){var n=t.vendor;return vn(n)},Die=function(t){var n=t.model;return vn(n)},Bie=function(t){var n=t.type;return vn(n,"browser")},$ie=function(t){var n=t.name;return n===lv.Android},Lie=function(t){var n=t.name;return n===lv.Windows},Fie=function(t){var n=t.name;return n===lv.MAC_OS},Nie=function(t){var n=t.name;return n===lv.WindowsPhone},Uie=function(t){var n=t.name;return n===lv.IOS},jie=function(t){var n=t.version;return vn(n)},Wie=function(t){var n=t.name;return vn(n)},zie=function(t){var n=t.name;return n===ds.Chrome},Vie=function(t){var n=t.name;return n===ds.Firefox},Hie=function(t){var n=t.name;return n===ds.Chromium},a_=function(t){var n=t.name;return n===ds.Edge},qie=function(t){var n=t.name;return n===ds.Yandex},Qie=function(t){var n=t.name;return n===ds.Safari||n===ds.MobileSafari},Kie=function(t){var n=t.name;return n===ds.MobileSafari},Yie=function(t){var n=t.name;return n===ds.Opera},Gie=function(t){var n=t.name;return n===ds.InternetExplorer||n===ds.Ie},Jie=function(t){var n=t.name;return n===ds.MIUI},Xie=function(t){var n=t.name;return n===ds.SamsungBrowser},Zie=function(t){var n=t.version;return vn(n)},eae=function(t){var n=t.major;return vn(n)},tae=function(t){var n=t.name;return vn(n)},nae=function(t){var n=t.name;return vn(n)},rae=function(t){var n=t.version;return vn(n)},oae=function(){var t=b$(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},C0=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},iae=function(){var t=b$();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},Zu=function(){return w$("iPad")},aae=function(){return w$("iPhone")},sae=function(){return w$("iPod")},lae=function(t){return vn(t)};function uae(e){var t=e||_ie,n=t.device,r=t.browser,o=t.os,i=t.engine,a=t.ua;return{isSmartTV:Iie(n),isConsole:Mie(n),isWearable:Pie(n),isEmbedded:Oie(n),isMobileSafari:Kie(r)||Zu(),isChromium:Hie(r),isMobile:kie(n)||Zu(),isMobileOnly:Eie(n),isTablet:Tie(n)||Zu(),isBrowser:i_(n),isDesktop:i_(n),isAndroid:$ie(o),isWinPhone:Nie(o),isIOS:Uie(o)||Zu(),isChrome:zie(r),isFirefox:Vie(r),isSafari:Qie(r),isOpera:Yie(r),isIE:Gie(r),osVersion:jie(o),osName:Wie(o),fullBrowserVersion:Zie(r),browserVersion:eae(r),browserName:tae(r),mobileVendor:Rie(n),mobileModel:Die(n),engineName:nae(i),engineVersion:rae(i),getUA:lae(a),isEdge:a_(r)||C0(a),isYandex:qie(r),deviceType:Bie(n),isIOS13:iae(),isIPad13:Zu(),isIPhone13:aae(),isIPod13:sae(),isElectron:oae(),isEdgeChromium:C0(a),isLegacyEdge:a_(r)&&!C0(a),isWindows:Lie(o),isMacOs:Fie(o),isMIUI:Jie(r),isSamsungBrowser:Xie(r)}}var cae=Iie(Ks),dae=Mie(Ks),fae=Pie(Ks),pet=Oie(Ks),het=Kie(ba)||Zu(),get=Hie(ba),sI=kie(Ks)||Zu(),pae=Eie(Ks),hae=Tie(Ks)||Zu(),gae=i_(Ks),met=i_(Ks),mae=$ie(Bp),yae=Nie(Bp),vae=Uie(Bp)||Zu(),yet=zie(ba),vet=Vie(ba),bet=Qie(ba),wet=Yie(ba),bae=Gie(ba),xet=jie(Bp),Cet=Wie(Bp),Aet=Zie(ba),_et=eae(ba),Eet=tae(ba),Tet=Rie(Ks),ket=Die(Ks),Iet=nae(v$),Pet=rae(v$),Met=lae(nx),Oet=a_(ba)||C0(nx),Ret=qie(ba),Det=Bie(Ks),Bet=iae(),$et=Zu(),Let=aae(),Fet=sae(),Net=oae(),Uet=C0(nx),jet=a_(ba)&&!C0(nx),Wet=Lie(Bp),zet=Fie(Bp),Vet=Jie(ba),Het=Xie(ba),qet=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=rx(t),r=n.device,o=n.browser,i=n.os,a=n.engine,s=n.ua;return uae({device:r,browser:o,os:i,engine:a,ua:s})},Qet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return mae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Ket=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return gae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Yet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return bae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Get=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return vae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Jet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return sI?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Xet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return hae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},Zet=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return yae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},ett=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=Wl(t,["renderWithFragment","children","viewClassName","style"]);return pae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},ttt=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return cae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},ntt=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return dae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},rtt=function(t){var n=t.renderWithFragment,r=t.children,o=Wl(t,["renderWithFragment","children"]);return fae?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",o,r):null},ott=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var o=t.condition,i=Wl(t,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?Yr.createElement(ua.Fragment,null,r):Yr.createElement("div",i,r):null};function itt(e){return function(t){YZe(n,t);function n(r){var o;return qZe(this,n),o=JZe(this,NR(n).call(this,r)),o.isEventListenerAdded=!1,o.handleOrientationChange=o.handleOrientationChange.bind(FC(o)),o.onOrientationChange=o.onOrientationChange.bind(FC(o)),o.onPageLoad=o.onPageLoad.bind(FC(o)),o.state={isLandscape:!1,isPortrait:!1},o}return QZe(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var o=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:o===0,isLandscape:o===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":vb(window))!==void 0&&sI&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return Yr.createElement(e,FR({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(Yr.Component)}function att(){var e=ua.useState(function(){var i=window.innerWidth>window.innerHeight?90:0;return{isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"}}),t=XZe(e,2),n=t[0],r=t[1],o=ua.useCallback(function(){var i=window.innerWidth>window.innerHeight?90:0,a={isPortrait:i===0,isLandscape:i===90,orientation:i===0?"portrait":"landscape"};n.orientation!==a.orientation&&r(a)},[n.orientation]);return ua.useEffect(function(){return(typeof window>"u"?"undefined":vb(window))!==void 0&&sI&&(o(),window.addEventListener("load",o,!1),window.addEventListener("resize",o,!1)),function(){window.removeEventListener("resize",o,!1),window.removeEventListener("load",o,!1)}},[o]),n}function wae(e){var t=e||window.navigator.userAgent;return rx(t)}function stt(e){var t=e||window.navigator.userAgent,n=wae(t),r=uae(n);return[r,n]}Ht.AndroidView=Qet;Ht.BrowserTypes=ds;Ht.BrowserView=Ket;Ht.ConsoleView=ntt;Ht.CustomView=ott;Ht.IEView=Yet;Ht.IOSView=Get;Ht.MobileOnlyView=ett;Ht.MobileView=Jet;Ht.OsTypes=lv;Ht.SmartTVView=ttt;Ht.TabletView=Xet;Ht.WearableView=rtt;Ht.WinPhoneView=Zet;Ht.browserName=Eet;Ht.browserVersion=_et;Ht.deviceDetect=fet;Ht.deviceType=Det;Ht.engineName=Iet;Ht.engineVersion=Pet;Ht.fullBrowserVersion=Aet;Ht.getSelectorsByUserAgent=qet;Ht.getUA=Met;Ht.isAndroid=mae;Ht.isBrowser=gae;Ht.isChrome=yet;Ht.isChromium=get;Ht.isConsole=dae;Ht.isDesktop=met;Ht.isEdge=Oet;Ht.isEdgeChromium=Uet;Ht.isElectron=Net;Ht.isEmbedded=pet;Ht.isFirefox=vet;Ht.isIE=bae;Ht.isIOS=vae;Ht.isIOS13=Bet;Ht.isIPad13=$et;Ht.isIPhone13=Let;Ht.isIPod13=Fet;Ht.isLegacyEdge=jet;Ht.isMIUI=Vet;Ht.isMacOs=zet;var S$=Ht.isMobile=sI;Ht.isMobileOnly=pae;Ht.isMobileSafari=het;Ht.isOpera=wet;Ht.isSafari=bet;Ht.isSamsungBrowser=Het;Ht.isSmartTV=cae;Ht.isTablet=hae;Ht.isWearable=fae;Ht.isWinPhone=yae;Ht.isWindows=Wet;Ht.isYandex=Ret;Ht.mobileModel=ket;Ht.mobileVendor=Tet;Ht.osName=Cet;Ht.osVersion=xet;Ht.parseUserAgent=rx;Ht.setUserAgent=iet;Ht.useDeviceData=wae;Ht.useDeviceSelectors=stt;Ht.useMobileOrientation=att;Ht.withOrientationChange=itt;const Du=Dn.forwardRef(({children:e,className:t="",onClick:n,hover:r=!1},o)=>!S$&&r?A(NZe,{onClick:n,className:t,ref:o,children:e}):A(sv,{onClick:n,className:t,ref:o,children:e}));function dr({children:e,disabled:t=!1,isLoading:n,className:r="",onClick:o,variant:i,id:a}){return Se(ctt,{id:a,onClick:o,disabled:t||!!n,className:`${r} button`,variant:i,children:[A(Ra,{in:n,children:A(ltt,{children:A(ED,{className:"loader",style:{width:30,height:30}})})}),A(Ra,{in:!n,children:A(utt,{className:"children",children:e})})]})}const ltt=J(Wd)({position:"absolute",left:"50%",top:"55%",transform:"translate(-50%, -50%)"}),utt=J(_t)({gap:5}),ctt=J("button")(({theme:e,disabled:t,variant:n})=>({width:"fit-content",height:44,borderRadius:40,opacity:t?.7:1,pointerEvents:t?"none":"all",background:n==="transparent"?"transparent":e.palette.primary.main,border:n==="transparent"?`1px solid ${e.palette.primary.main}`:"1px solid transparent",cursor:"pointer",position:"relative",padding:"0px 16px",transition:"0.3s all","*, p":{color:n==="transparent"&&e.palette.mode==="light"?e.palette.primary.main:"white",fontSize:16,fontWeight:700,fontFamily:e.typography.fontFamily},[`@media (min-width: ${Ln}px)`]:{"&:hover":{border:n==="transparent"?"1px solid transparent":`1px solid ${e.palette.primary.main}`,background:n==="transparent"?e.palette.primary.main:"transparent","*":{color:n==="transparent"||e.palette.mode==="dark"?"white":e.palette.primary.main}}}}));function dtt({children:e,href:t,target:n="_blank",className:r=""}){return A(ftt,{className:r,href:t,target:n,children:e})}const ftt=J("a")({gap:5,textDecoration:"unset",alignItems:"center",color:"inherit",fontSize:"inherit"});function ptt({progress:e}){return A(htt,{variant:"determinate",value:e})}const htt=J(JIe)({height:10,borderRadius:10,width:"100%"});function lI({className:e=""}){return A(dr,{onClick:()=>{const n=document.getElementById("ton-connect-button"),r=n==null?void 0:n.querySelector("button");r&&r.click()},className:e,children:A(At,{children:"Connect Wallet"})})}var Sae={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},fV=Dn.createContext&&Dn.createContext(Sae),np=globalThis&&globalThis.__assign||function(){return np=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0)&&!(o=r.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return i}function hV(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function vtt(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),o=ytt.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}var btt=[".DS_Store","Thumbs.db"];function wtt(e){return uv(this,void 0,void 0,function(){return cv(this,function(t){return s_(e)&&Stt(e.dataTransfer)?[2,_tt(e.dataTransfer,e.type)]:xtt(e)?[2,Ctt(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,Att(e)]:[2,[]]})})}function Stt(e){return s_(e)}function xtt(e){return s_(e)&&s_(e.target)}function s_(e){return typeof e=="object"&&e!==null}function Ctt(e){return jR(e.target.files).map(function(t){return ox(t)})}function Att(e){return uv(this,void 0,void 0,function(){var t;return cv(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return ox(r)})]}})})}function _tt(e,t){return uv(this,void 0,void 0,function(){var n,r;return cv(this,function(o){switch(o.label){case 0:return e.items?(n=jR(e.items).filter(function(i){return i.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(Ett))]):[3,2];case 1:return r=o.sent(),[2,gV(Cae(r))];case 2:return[2,gV(jR(e.files).map(function(i){return ox(i)}))]}})})}function gV(e){return e.filter(function(t){return btt.indexOf(t.name)===-1})}function jR(e){if(e===null)return[];for(var t=[],n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nn)return[!1,wV(n)];if(e.sizen)return[!1,wV(n)]}return[!0,null]}function wh(e){return e!=null}function Wtt(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,s=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(l){var u=Tae(l,n),c=bw(u,1),f=c[0],p=kae(l,r,o),g=bw(p,1),m=g[0],y=s?s(l):null;return f&&m&&!y})}function l_(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function W2(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function xV(e){e.preventDefault()}function ztt(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Vtt(e){return e.indexOf("Edge/")!==-1}function Htt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return ztt(e)||Vtt(e)}function Wu(){for(var e=arguments.length,t=new Array(e),n=0;n1?o-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lnt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var x$=M.forwardRef(function(e,t){var n=e.children,r=u_(e,Jtt),o=Rae(r),i=o.open,a=u_(o,Xtt);return M.useImperativeHandle(t,function(){return{open:i}},[i]),Dn.createElement(M.Fragment,null,n(Ao(Ao({},a),{},{open:i})))});x$.displayName="Dropzone";var Oae={disabled:!1,getFilesFromEvent:wtt,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};x$.defaultProps=Oae;x$.propTypes={children:ue.func,accept:ue.objectOf(ue.arrayOf(ue.string)),multiple:ue.bool,preventDropOnDocument:ue.bool,noClick:ue.bool,noKeyboard:ue.bool,noDrag:ue.bool,noDragEventsBubbling:ue.bool,minSize:ue.number,maxSize:ue.number,maxFiles:ue.number,disabled:ue.bool,getFilesFromEvent:ue.func,onFileDialogCancel:ue.func,onFileDialogOpen:ue.func,useFsAccessApi:ue.bool,autoFocus:ue.bool,onDragEnter:ue.func,onDragLeave:ue.func,onDragOver:ue.func,onDrop:ue.func,onDropAccepted:ue.func,onDropRejected:ue.func,onError:ue.func,validator:ue.func};var HR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function Rae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Ao(Ao({},Oae),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,s=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,p=t.onDrop,g=t.onDropAccepted,m=t.onDropRejected,y=t.onFileDialogCancel,v=t.onFileDialogOpen,x=t.useFsAccessApi,w=t.autoFocus,I=t.preventDropOnDocument,_=t.noClick,R=t.noKeyboard,U=t.noDrag,D=t.noDragEventsBubbling,b=t.onError,T=t.validator,C=M.useMemo(function(){return Ktt(n)},[n]),O=M.useMemo(function(){return Qtt(n)},[n]),$=M.useMemo(function(){return typeof v=="function"?v:AV},[v]),j=M.useMemo(function(){return typeof y=="function"?y:AV},[y]),L=M.useRef(null),B=M.useRef(null),H=M.useReducer(unt,HR),q=YP(H,2),Y=q[0],W=q[1],ie=Y.isFocused,le=Y.isFileDialogActive,fe=M.useRef(typeof window<"u"&&window.isSecureContext&&x&&qtt()),Ee=function(){!fe.current&&le&&setTimeout(function(){if(B.current){var te=B.current.files;te.length||(W({type:"closeDialog"}),j())}},300)};M.useEffect(function(){return window.addEventListener("focus",Ee,!1),function(){window.removeEventListener("focus",Ee,!1)}},[B,le,j,fe]);var Ae=M.useRef([]),Ie=function(te){L.current&&L.current.contains(te.target)||(te.preventDefault(),Ae.current=[])};M.useEffect(function(){return I&&(document.addEventListener("dragover",xV,!1),document.addEventListener("drop",Ie,!1)),function(){I&&(document.removeEventListener("dragover",xV),document.removeEventListener("drop",Ie))}},[L,I]),M.useEffect(function(){return!r&&w&&L.current&&L.current.focus(),function(){}},[L,w,r]);var De=M.useCallback(function(Fe){b?b(Fe):console.error(Fe)},[b]),Ue=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe),Ae.current=[].concat(tnt(Ae.current),[Fe.target]),W2(Fe)&&Promise.resolve(o(Fe)).then(function(te){if(!(l_(Fe)&&!D)){var Z=te.length,N=Z>0&&Wtt({files:te,accept:C,minSize:a,maxSize:i,multiple:s,maxFiles:l,validator:T}),k=Z>0&&!N;W({isDragAccept:N,isDragReject:k,isDragActive:!0,type:"setDraggedFiles"}),u&&u(Fe)}}).catch(function(te){return De(te)})},[o,u,De,D,C,a,i,s,l,T]),ce=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe);var te=W2(Fe);if(te&&Fe.dataTransfer)try{Fe.dataTransfer.dropEffect="copy"}catch{}return te&&f&&f(Fe),!1},[f,D]),de=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe);var te=Ae.current.filter(function(N){return L.current&&L.current.contains(N)}),Z=te.indexOf(Fe.target);Z!==-1&&te.splice(Z,1),Ae.current=te,!(te.length>0)&&(W({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),W2(Fe)&&c&&c(Fe))},[L,c,D]),ve=M.useCallback(function(Fe,te){var Z=[],N=[];Fe.forEach(function(k){var S=Tae(k,C),P=YP(S,2),V=P[0],K=P[1],ee=kae(k,a,i),be=YP(ee,2),Me=be[0],we=be[1],Pe=T?T(k):null;if(V&&Me&&!Pe)Z.push(k);else{var Ye=[K,we];Pe&&(Ye=Ye.concat(Pe)),N.push({file:k,errors:Ye.filter(function(ze){return ze})})}}),(!s&&Z.length>1||s&&l>=1&&Z.length>l)&&(Z.forEach(function(k){N.push({file:k,errors:[jtt]})}),Z.splice(0)),W({acceptedFiles:Z,fileRejections:N,type:"setFiles"}),p&&p(Z,N,te),N.length>0&&m&&m(N,te),Z.length>0&&g&&g(Z,te)},[W,s,C,a,i,l,p,g,m,T]),he=M.useCallback(function(Fe){Fe.preventDefault(),Fe.persist(),xe(Fe),Ae.current=[],W2(Fe)&&Promise.resolve(o(Fe)).then(function(te){l_(Fe)&&!D||ve(te,Fe)}).catch(function(te){return De(te)}),W({type:"reset"})},[o,ve,De,D]),pe=M.useCallback(function(){if(fe.current){W({type:"openDialog"}),$();var Fe={multiple:s,types:O};window.showOpenFilePicker(Fe).then(function(te){return o(te)}).then(function(te){ve(te,null),W({type:"closeDialog"})}).catch(function(te){Ytt(te)?(j(te),W({type:"closeDialog"})):Gtt(te)?(fe.current=!1,B.current?(B.current.value=null,B.current.click()):De(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no was provided."))):De(te)});return}B.current&&(W({type:"openDialog"}),$(),B.current.value=null,B.current.click())},[W,$,j,x,ve,De,O,s]),ge=M.useCallback(function(Fe){!L.current||!L.current.isEqualNode(Fe.target)||(Fe.key===" "||Fe.key==="Enter"||Fe.keyCode===32||Fe.keyCode===13)&&(Fe.preventDefault(),pe())},[L,pe]),Ce=M.useCallback(function(){W({type:"focus"})},[]),_e=M.useCallback(function(){W({type:"blur"})},[]),Ne=M.useCallback(function(){_||(Htt()?setTimeout(pe,0):pe())},[_,pe]),Be=function(te){return r?null:te},Ve=function(te){return R?null:Be(te)},wt=function(te){return U?null:Be(te)},xe=function(te){D&&te.stopPropagation()},je=M.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Fe.refKey,Z=te===void 0?"ref":te,N=Fe.role,k=Fe.onKeyDown,S=Fe.onFocus,P=Fe.onBlur,V=Fe.onClick,K=Fe.onDragEnter,ee=Fe.onDragOver,be=Fe.onDragLeave,Me=Fe.onDrop,we=u_(Fe,Ztt);return Ao(Ao(VR({onKeyDown:Ve(Wu(k,ge)),onFocus:Ve(Wu(S,Ce)),onBlur:Ve(Wu(P,_e)),onClick:Be(Wu(V,Ne)),onDragEnter:wt(Wu(K,Ue)),onDragOver:wt(Wu(ee,ce)),onDragLeave:wt(Wu(be,de)),onDrop:wt(Wu(Me,he)),role:typeof N=="string"&&N!==""?N:"presentation"},Z,L),!r&&!R?{tabIndex:0}:{}),we)}},[L,ge,Ce,_e,Ne,Ue,ce,de,he,R,U,r]),We=M.useCallback(function(Fe){Fe.stopPropagation()},[]),Ge=M.useMemo(function(){return function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},te=Fe.refKey,Z=te===void 0?"ref":te,N=Fe.onChange,k=Fe.onClick,S=u_(Fe,ent),P=VR({accept:C,multiple:s,type:"file",style:{display:"none"},onChange:Be(Wu(N,he)),onClick:Be(Wu(k,We)),tabIndex:-1},Z,B);return Ao(Ao({},P),S)}},[B,n,s,he,r]);return Ao(Ao({},Y),{},{isFocused:ie&&!r,getRootProps:je,getInputProps:Ge,rootRef:L,inputRef:B,open:Be(pe)})}function unt(e,t){switch(t.type){case"focus":return Ao(Ao({},e),{},{isFocused:!0});case"blur":return Ao(Ao({},e),{},{isFocused:!1});case"openDialog":return Ao(Ao({},HR),{},{isFileDialogActive:!0});case"closeDialog":return Ao(Ao({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Ao(Ao({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Ao(Ao({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return Ao({},HR);default:return e}}function AV(){}function cnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}}]})(e)}function dnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M11 1.5v1h3.5a.5.5 0 0 1 0 1h-.538l-.853 10.66A2 2 0 0 1 11.115 16h-6.23a2 2 0 0 1-1.994-1.84L2.038 3.5H1.5a.5.5 0 0 1 0-1H5v-1A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5Zm-5 0v1h4v-1a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5ZM4.5 5.029l.5 8.5a.5.5 0 1 0 .998-.06l-.5-8.5a.5.5 0 1 0-.998.06Zm6.53-.528a.5.5 0 0 0-.528.47l-.5 8.5a.5.5 0 0 0 .998.058l.5-8.5a.5.5 0 0 0-.47-.528ZM8 4.5a.5.5 0 0 0-.5.5v8.5a.5.5 0 0 0 1 0V5a.5.5 0 0 0-.5-.5Z"}}]})(e)}function fnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M8 12a.5.5 0 0 0 .5-.5V5.707l2.146 2.147a.5.5 0 0 0 .708-.708l-3-3a.5.5 0 0 0-.708 0l-3 3a.5.5 0 1 0 .708.708L7.5 5.707V11.5a.5.5 0 0 0 .5.5z"}}]})(e)}function pnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z"}}]})(e)}function hnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z"}}]})(e)}function gnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"}}]})(e)}function mnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm7.5-6.923c-.67.204-1.335.82-1.887 1.855A7.97 7.97 0 0 0 5.145 4H7.5V1.077zM4.09 4a9.267 9.267 0 0 1 .64-1.539 6.7 6.7 0 0 1 .597-.933A7.025 7.025 0 0 0 2.255 4H4.09zm-.582 3.5c.03-.877.138-1.718.312-2.5H1.674a6.958 6.958 0 0 0-.656 2.5h2.49zM4.847 5a12.5 12.5 0 0 0-.338 2.5H7.5V5H4.847zM8.5 5v2.5h2.99a12.495 12.495 0 0 0-.337-2.5H8.5zM4.51 8.5a12.5 12.5 0 0 0 .337 2.5H7.5V8.5H4.51zm3.99 0V11h2.653c.187-.765.306-1.608.338-2.5H8.5zM5.145 12c.138.386.295.744.468 1.068.552 1.035 1.218 1.65 1.887 1.855V12H5.145zm.182 2.472a6.696 6.696 0 0 1-.597-.933A9.268 9.268 0 0 1 4.09 12H2.255a7.024 7.024 0 0 0 3.072 2.472zM3.82 11a13.652 13.652 0 0 1-.312-2.5h-2.49c.062.89.291 1.733.656 2.5H3.82zm6.853 3.472A7.024 7.024 0 0 0 13.745 12H11.91a9.27 9.27 0 0 1-.64 1.539 6.688 6.688 0 0 1-.597.933zM8.5 12v2.923c.67-.204 1.335-.82 1.887-1.855.173-.324.33-.682.468-1.068H8.5zm3.68-1h2.146c.365-.767.594-1.61.656-2.5h-2.49a13.65 13.65 0 0 1-.312 2.5zm2.802-3.5a6.959 6.959 0 0 0-.656-2.5H12.18c.174.782.282 1.623.312 2.5h2.49zM11.27 2.461c.247.464.462.98.64 1.539h1.835a7.024 7.024 0 0 0-3.072-2.472c.218.284.418.598.597.933zM10.855 4a7.966 7.966 0 0 0-.468-1.068C9.835 1.897 9.17 1.282 8.5 1.077V4h2.355z"}}]})(e)}function ynt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"}}]})(e)}function vnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M6.167 8a.831.831 0 0 0-.83.83c0 .459.372.84.83.831a.831.831 0 0 0 0-1.661zm1.843 3.647c.315 0 1.403-.038 1.976-.611a.232.232 0 0 0 0-.306.213.213 0 0 0-.306 0c-.353.363-1.126.487-1.67.487-.545 0-1.308-.124-1.671-.487a.213.213 0 0 0-.306 0 .213.213 0 0 0 0 .306c.564.563 1.652.61 1.977.61zm.992-2.807c0 .458.373.83.831.83.458 0 .83-.381.83-.83a.831.831 0 0 0-1.66 0z"}},{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.828-1.165c-.315 0-.602.124-.812.325-.801-.573-1.9-.945-3.121-.993l.534-2.501 1.738.372a.83.83 0 1 0 .83-.869.83.83 0 0 0-.744.468l-1.938-.41a.203.203 0 0 0-.153.028.186.186 0 0 0-.086.134l-.592 2.788c-1.24.038-2.358.41-3.17.992-.21-.2-.496-.324-.81-.324a1.163 1.163 0 0 0-.478 2.224c-.02.115-.029.23-.029.353 0 1.795 2.091 3.256 4.669 3.256 2.577 0 4.668-1.451 4.668-3.256 0-.114-.01-.238-.029-.353.401-.181.688-.592.688-1.069 0-.65-.525-1.165-1.165-1.165z"}}]})(e)}function bnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"}}]})(e)}function wnt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z"}}]})(e)}function Snt(e){return er({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}},{tag:"path",attr:{d:"M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z"}}]})(e)}//! moment.js //! version : 2.29.4 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var Bae;function Je(){return Bae.apply(null,arguments)}function int(e){Bae=e}function yu(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Fh(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function cr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function C$(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(cr(e,t))return!1;return!0}function Ka(e){return e===void 0}function Bd(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function i2(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function $ae(e,t){var n=[],r,o=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n>>0,r;for(r=0;r0)for(n=0;n=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var T$=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,zx=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,GP={},A0={};function tn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(A0[e]=o),t&&(A0[t[0]]=function(){return wc(o.apply(this,arguments),t[1],t[2])}),n&&(A0[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function cnt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function dnt(e){var t=e.match(T$),n,r;for(n=0,r=t.length;n=0&&zx.test(e);)e=e.replace(zx,r),zx.lastIndex=0,n-=1;return e}var fnt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function pnt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var hnt="Invalid date";function gnt(){return this._invalidDate}var mnt="%d",ynt=/\d{1,2}/;function vnt(e){return this._ordinal.replace("%d",e)}var bnt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wnt(e,t,n,r){var o=this._relativeTime[n];return Pc(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Snt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Pc(n)?n(t):n.replace(/%s/i,t)}var bb={};function wa(e,t){var n=e.toLowerCase();bb[n]=bb[n+"s"]=bb[t]=e}function Vl(e){return typeof e=="string"?bb[e]||bb[e.toLowerCase()]:void 0}function k$(e){var t={},n,r;for(r in e)cr(e,r)&&(n=Vl(r),n&&(t[n]=e[r]));return t}var Uae={};function Sa(e,t){Uae[e]=t}function xnt(e){var t=[],n;for(n in e)cr(e,n)&&t.push({unit:n,priority:Uae[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}function cI(e){return e%4===0&&e%100!==0||e%400===0}function Sl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Fn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Sl(t)),n}function dv(e,t){return function(n){return n!=null?(jae(this,e,n),Je.updateOffset(this,t),this):c_(this,e)}}function c_(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function jae(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&cI(e.year())&&e.month()===1&&e.date()===29?(n=Fn(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),mI(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Cnt(e){return e=Vl(e),Pc(this[e])?this[e]():this}function Ant(e,t){if(typeof e=="object"){e=k$(e);var n=xnt(e),r,o=n.length;for(r=0;r68?1900:2e3)};var Jae=dv("FullYear",!0);function znt(){return cI(this.year())}function Vnt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function ww(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function f_(e,t,n){var r=7+t-n,o=(7+ww(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Xae(e,t,n,r,o){var i=(7+n-r)%7,a=f_(e,r,o),s=1+7*(t-1)+i+a,l,u;return s<=0?(l=e-1,u=wb(l)+s):s>wb(e)?(l=e+1,u=s-wb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Sw(e,t,n){var r=f_(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Cd(a,t,n)):o>Cd(e.year(),t,n)?(i=o-Cd(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Cd(e,t,n){var r=f_(e,t,n),o=f_(e+1,t,n);return(wb(e)-r+o)/7}tn("w",["ww",2],"wo","week");tn("W",["WW",2],"Wo","isoWeek");wa("week","w");wa("isoWeek","W");Sa("week",5);Sa("isoWeek",5);jt("w",co);jt("ww",co,Ys);jt("W",co);jt("WW",co,Ys);l2(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Fn(e)});function Hnt(e){return Sw(e,this._week.dow,this._week.doy).week}var qnt={dow:0,doy:6};function Qnt(){return this._week.dow}function Knt(){return this._week.doy}function Ynt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Gnt(e){var t=Sw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}tn("d",0,"do","day");tn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});tn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});tn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});tn("e",0,0,"weekday");tn("E",0,0,"isoWeekday");wa("day","d");wa("weekday","e");wa("isoWeekday","E");Sa("day",11);Sa("weekday",11);Sa("isoWeekday",11);jt("d",co);jt("e",co);jt("E",co);jt("dd",function(e,t){return t.weekdaysMinRegex(e)});jt("ddd",function(e,t){return t.weekdaysShortRegex(e)});jt("dddd",function(e,t){return t.weekdaysRegex(e)});l2(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Pn(n).invalidWeekday=e});l2(["d","e","E"],function(e,t,n,r){t[r]=Fn(e)});function Jnt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Xnt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function M$(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Znt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Zae="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ert="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),trt=s2,nrt=s2,rrt=s2;function ort(e,t){var n=yu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?M$(n,this._week.dow):e?n[e.day()]:n}function irt(e){return e===!0?M$(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function art(e){return e===!0?M$(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function srt(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ic([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Ho.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Ho.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Ho.call(this._weekdaysParse,a),o!==-1||(o=Ho.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Ho.call(this._shortWeekdaysParse,a),o!==-1||(o=Ho.call(this._weekdaysParse,a),o!==-1)?o:(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Ho.call(this._minWeekdaysParse,a),o!==-1||(o=Ho.call(this._weekdaysParse,a),o!==-1)?o:(o=Ho.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function lrt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return srt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ic([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function urt(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Jnt(e,this.localeData()),this.add(e-t,"d")):t}function crt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function drt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Xnt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function frt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(cr(this,"_weekdaysRegex")||(this._weekdaysRegex=trt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function prt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(cr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nrt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function hrt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(cr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rrt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function O$(){function e(c,f){return f.length-c.length}var t=[],n=[],r=[],o=[],i,a,s,l,u;for(i=0;i<7;i++)a=Ic([2e3,1]).day(i),s=ks(this.weekdaysMin(a,"")),l=ks(this.weekdaysShort(a,"")),u=ks(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),o.push(s),o.push(l),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function R$(){return this.hours()%12||12}function grt(){return this.hours()||24}tn("H",["HH",2],0,"hour");tn("h",["hh",2],0,R$);tn("k",["kk",2],0,grt);tn("hmm",0,0,function(){return""+R$.apply(this)+wc(this.minutes(),2)});tn("hmmss",0,0,function(){return""+R$.apply(this)+wc(this.minutes(),2)+wc(this.seconds(),2)});tn("Hmm",0,0,function(){return""+this.hours()+wc(this.minutes(),2)});tn("Hmmss",0,0,function(){return""+this.hours()+wc(this.minutes(),2)+wc(this.seconds(),2)});function ese(e,t){tn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ese("a",!0);ese("A",!1);wa("hour","h");Sa("hour",13);function tse(e,t){return t._meridiemParse}jt("a",tse);jt("A",tse);jt("H",co);jt("h",co);jt("k",co);jt("HH",co,Ys);jt("hh",co,Ys);jt("kk",co,Ys);jt("hmm",Vae);jt("hmmss",Hae);jt("Hmm",Vae);jt("Hmmss",Hae);Nr(["H","HH"],pi);Nr(["k","kk"],function(e,t,n){var r=Fn(e);t[pi]=r===24?0:r});Nr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Nr(["h","hh"],function(e,t,n){t[pi]=Fn(e),Pn(n).bigHour=!0});Nr("hmm",function(e,t,n){var r=e.length-2;t[pi]=Fn(e.substr(0,r)),t[lu]=Fn(e.substr(r)),Pn(n).bigHour=!0});Nr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=Fn(e.substr(0,r)),t[lu]=Fn(e.substr(r,2)),t[pd]=Fn(e.substr(o)),Pn(n).bigHour=!0});Nr("Hmm",function(e,t,n){var r=e.length-2;t[pi]=Fn(e.substr(0,r)),t[lu]=Fn(e.substr(r))});Nr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=Fn(e.substr(0,r)),t[lu]=Fn(e.substr(r,2)),t[pd]=Fn(e.substr(o))});function mrt(e){return(e+"").toLowerCase().charAt(0)==="p"}var yrt=/[ap]\.?m?\.?/i,vrt=dv("Hours",!0);function brt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var nse={calendar:lnt,longDateFormat:fnt,invalidDate:hnt,ordinal:mnt,dayOfMonthOrdinalParse:ynt,relativeTime:bnt,months:Rnt,monthsShort:qae,week:qnt,weekdays:Znt,weekdaysMin:ert,weekdaysShort:Zae,meridiemParse:yrt},ho={},k1={},xw;function wrt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=yI(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&wrt(i,r)>=n-1)break;n--}t++}return xw}function xrt(e){return e.match("^[^/\\\\]*$")!=null}function yI(e){var t=null,n;if(ho[e]===void 0&&typeof module<"u"&&module&&module.exports&&xrt(e))try{t=xw._abbr,n=require,n("./locale/"+e),rp(t)}catch{ho[e]=null}return ho[e]}function rp(e,t){var n;return e&&(Ka(t)?n=Gd(e):n=D$(e,t),n?xw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),xw._abbr}function D$(e,t){if(t!==null){var n,r=nse;if(t.abbr=e,ho[e]!=null)Fae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ho[e]._config;else if(t.parentLocale!=null)if(ho[t.parentLocale]!=null)r=ho[t.parentLocale]._config;else if(n=yI(t.parentLocale),n!=null)r=n._config;else return k1[t.parentLocale]||(k1[t.parentLocale]=[]),k1[t.parentLocale].push({name:e,config:t}),null;return ho[e]=new E$(qR(r,t)),k1[e]&&k1[e].forEach(function(o){D$(o.name,o.config)}),rp(e),ho[e]}else return delete ho[e],null}function Crt(e,t){if(t!=null){var n,r,o=nse;ho[e]!=null&&ho[e].parentLocale!=null?ho[e].set(qR(ho[e]._config,t)):(r=yI(e),r!=null&&(o=r._config),t=qR(o,t),r==null&&(t.abbr=e),n=new E$(t),n.parentLocale=ho[e],ho[e]=n),rp(e)}else ho[e]!=null&&(ho[e].parentLocale!=null?(ho[e]=ho[e].parentLocale,e===rp()&&rp(e)):ho[e]!=null&&delete ho[e]);return ho[e]}function Gd(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xw;if(!yu(e)){if(t=yI(e),t)return t;e=[e]}return Srt(e)}function Art(){return QR(ho)}function B$(e){var t,n=e._a;return n&&Pn(e).overflow===-2&&(t=n[fd]<0||n[fd]>11?fd:n[Zu]<1||n[Zu]>mI(n[ca],n[fd])?Zu:n[pi]<0||n[pi]>24||n[pi]===24&&(n[lu]!==0||n[pd]!==0||n[Mh]!==0)?pi:n[lu]<0||n[lu]>59?lu:n[pd]<0||n[pd]>59?pd:n[Mh]<0||n[Mh]>999?Mh:-1,Pn(e)._overflowDayOfYear&&(tZu)&&(t=Zu),Pn(e)._overflowWeeks&&t===-1&&(t=Pnt),Pn(e)._overflowWeekday&&t===-1&&(t=Mnt),Pn(e).overflow=t),e}var _rt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ert=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Trt=/Z|[+-]\d\d(?::?\d\d)?/,Vx=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],JP=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],krt=/^\/?Date\((-?\d+)/i,Irt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Prt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function rse(e){var t,n,r=e._i,o=_rt.exec(r)||Ert.exec(r),i,a,s,l,u=Vx.length,c=JP.length;if(o){for(Pn(e).iso=!0,t=0,n=u;twb(a)||e._dayOfYear===0)&&(Pn(e)._overflowDayOfYear=!0),n=ww(a,0,e._dayOfYear),e._a[fd]=n.getUTCMonth(),e._a[Zu]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pi]===24&&e._a[lu]===0&&e._a[pd]===0&&e._a[Mh]===0&&(e._nextDay=!0,e._a[pi]=0),e._d=(e._useUTC?ww:Vnt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Pn(e).weekdayMismatch=!0)}}function Frt(e){var t,n,r,o,i,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=Vm(t.GG,e._a[ca],Sw(lo(),1,4).year),r=Vm(t.W,1),o=Vm(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Sw(lo(),i,a),n=Vm(t.gg,e._a[ca],u.year),r=Vm(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Cd(n,i,a)?Pn(e)._overflowWeeks=!0:l!=null?Pn(e)._overflowWeekday=!0:(s=Xae(n,r,o,i,a),e._a[ca]=s.year,e._dayOfYear=s.dayOfYear)}Je.ISO_8601=function(){};Je.RFC_2822=function(){};function L$(e){if(e._f===Je.ISO_8601){rse(e);return}if(e._f===Je.RFC_2822){ose(e);return}e._a=[],Pn(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,u,c;for(o=Nae(e._f,e._locale).match(T$)||[],c=o.length,n=0;n0&&Pn(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),A0[i]?(r?Pn(e).empty=!1:Pn(e).unusedTokens.push(i),Int(i,r,e)):e._strict&&!r&&Pn(e).unusedTokens.push(i);Pn(e).charsLeftOver=s-l,t.length>0&&Pn(e).unusedInput.push(t),e._a[pi]<=12&&Pn(e).bigHour===!0&&e._a[pi]>0&&(Pn(e).bigHour=void 0),Pn(e).parsedDateParts=e._a.slice(0),Pn(e).meridiem=e._meridiem,e._a[pi]=Nrt(e._locale,e._a[pi],e._meridiem),u=Pn(e).era,u!==null&&(e._a[ca]=e._locale.erasConvertYear(u,e._a[ca])),$$(e),B$(e)}function Nrt(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function Urt(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){Pn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:uI()});function sse(e,t){var n,r;if(t.length===1&&yu(t[0])&&(t=t[0]),!t.length)return lo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function sot(){if(!Ka(this._isDSTShifted))return this._isDSTShifted;var e={},t;return _$(e,this),e=ise(e),e._a?(t=e._isUTC?Ic(e._a):lo(e._a),this._isDSTShifted=this.isValid()&&Xrt(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function lot(){return this.isValid()?!this._isUTC:!1}function uot(){return this.isValid()?this._isUTC:!1}function use(){return this.isValid()?this._isUTC&&this._offset===0:!1}var cot=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dot=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Du(e,t){var n=e,r=null,o,i,a;return UC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Bd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=cot.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:Fn(r[Zu])*o,h:Fn(r[pi])*o,m:Fn(r[lu])*o,s:Fn(r[pd])*o,ms:Fn(YR(r[Mh]*1e3))*o}):(r=dot.exec(e))?(o=r[1]==="-"?-1:1,n={y:ah(r[2],o),M:ah(r[3],o),w:ah(r[4],o),d:ah(r[5],o),h:ah(r[6],o),m:ah(r[7],o),s:ah(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=fot(lo(n.from),lo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new vI(n),UC(e)&&cr(e,"_locale")&&(i._locale=e._locale),UC(e)&&cr(e,"_isValid")&&(i._isValid=e._isValid),i}Du.fn=vI.prototype;Du.invalid=Jrt;function ah(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function kV(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function fot(e,t){var n;return e.isValid()&&t.isValid()?(t=N$(t,e),e.isBefore(t)?n=kV(e,t):(n=kV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function cse(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(Fae(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=Du(n,r),dse(this,o,e),this}}function dse(e,t,n,r){var o=t._milliseconds,i=YR(t._days),a=YR(t._months);e.isValid()&&(r=r??!0,a&&Kae(e,c_(e,"Month")+a*n),i&&jae(e,"Date",c_(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Je.updateOffset(e,i||a))}var pot=cse(1,"add"),hot=cse(-1,"subtract");function fse(e){return typeof e=="string"||e instanceof String}function got(e){return vu(e)||i2(e)||fse(e)||Bd(e)||yot(e)||mot(e)||e===null||e===void 0}function mot(e){var t=Fh(e)&&!C$(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?NC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Pc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",NC(n,"Z")):NC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Mot(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Oot(e){e||(e=this.isUtc()?Je.defaultFormatUtc:Je.defaultFormat);var t=NC(this,e);return this.localeData().postformat(t)}function Rot(e,t){return this.isValid()&&(vu(e)&&e.isValid()||lo(e).isValid())?Du({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Dot(e){return this.from(lo(),e)}function Bot(e,t){return this.isValid()&&(vu(e)&&e.isValid()||lo(e).isValid())?Du({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function $ot(e){return this.to(lo(),e)}function pse(e){var t;return e===void 0?this._locale._abbr:(t=Gd(e),t!=null&&(this._locale=t),this)}var hse=zl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function gse(){return this._locale}var p_=1e3,_0=60*p_,h_=60*_0,mse=(365*400+97)*24*h_;function E0(e,t){return(e%t+t)%t}function yse(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-mse:new Date(e,t,n).valueOf()}function vse(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-mse:Date.UTC(e,t,n)}function Lot(e){var t,n;if(e=Vl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?vse:yse,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=E0(t+(this._isUTC?0:this.utcOffset()*_0),h_);break;case"minute":t=this._d.valueOf(),t-=E0(t,_0);break;case"second":t=this._d.valueOf(),t-=E0(t,p_);break}return this._d.setTime(t),Je.updateOffset(this,!0),this}function Fot(e){var t,n;if(e=Vl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?vse:yse,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=h_-E0(t+(this._isUTC?0:this.utcOffset()*_0),h_)-1;break;case"minute":t=this._d.valueOf(),t+=_0-E0(t,_0)-1;break;case"second":t=this._d.valueOf(),t+=p_-E0(t,p_)-1;break}return this._d.setTime(t),Je.updateOffset(this,!0),this}function Not(){return this._d.valueOf()-(this._offset||0)*6e4}function Uot(){return Math.floor(this.valueOf()/1e3)}function jot(){return new Date(this.valueOf())}function Wot(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function zot(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Vot(){return this.isValid()?this.toISOString():null}function Hot(){return A$(this)}function qot(){return Lf({},Pn(this))}function Qot(){return Pn(this).overflow}function Kot(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tn("N",0,0,"eraAbbr");tn("NN",0,0,"eraAbbr");tn("NNN",0,0,"eraAbbr");tn("NNNN",0,0,"eraName");tn("NNNNN",0,0,"eraNarrow");tn("y",["y",1],"yo","eraYear");tn("y",["yy",2],0,"eraYear");tn("y",["yyy",3],0,"eraYear");tn("y",["yyyy",4],0,"eraYear");jt("N",U$);jt("NN",U$);jt("NNN",U$);jt("NNNN",iit);jt("NNNNN",ait);Nr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Pn(n).era=o:Pn(n).invalidEra=e});jt("y",fv);jt("yy",fv);jt("yyy",fv);jt("yyyy",fv);jt("yo",sit);Nr(["y","yy","yyy","yyyy"],ca);Nr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ca]=n._locale.eraYearOrdinalParse(e,o):t[ca]=parseInt(e,10)});function Yot(e,t){var n,r,o,i=this._eras||Gd("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function Jot(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Je(e.since).year():Je(e.since).year()+(t-e.offset)*n}function Xot(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),hit.call(this,e,t,n,r,o))}function hit(e,t,n,r,o){var i=Xae(e,t,n,r,o),a=ww(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}tn("Q",0,"Qo","quarter");wa("quarter","Q");Sa("quarter",7);jt("Q",Wae);Nr("Q",function(e,t){t[fd]=(Fn(e)-1)*3});function git(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}tn("D",["DD",2],"Do","date");wa("date","D");Sa("date",9);jt("D",co);jt("DD",co,Ys);jt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Nr(["D","DD"],Zu);Nr("Do",function(e,t){t[Zu]=Fn(e.match(co)[0])});var wse=dv("Date",!0);tn("DDD",["DDDD",3],"DDDo","dayOfYear");wa("dayOfYear","DDD");Sa("dayOfYear",4);jt("DDD",fI);jt("DDDD",zae);Nr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Fn(e)});function mit(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}tn("m",["mm",2],0,"minute");wa("minute","m");Sa("minute",14);jt("m",co);jt("mm",co,Ys);Nr(["m","mm"],lu);var yit=dv("Minutes",!1);tn("s",["ss",2],0,"second");wa("second","s");Sa("second",15);jt("s",co);jt("ss",co,Ys);Nr(["s","ss"],pd);var vit=dv("Seconds",!1);tn("S",0,0,function(){return~~(this.millisecond()/100)});tn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tn(0,["SSS",3],0,"millisecond");tn(0,["SSSS",4],0,function(){return this.millisecond()*10});tn(0,["SSSSS",5],0,function(){return this.millisecond()*100});tn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});wa("millisecond","ms");Sa("millisecond",16);jt("S",fI,Wae);jt("SS",fI,Ys);jt("SSS",fI,zae);var Ff,Sse;for(Ff="SSSS";Ff.length<=9;Ff+="S")jt(Ff,fv);function bit(e,t){t[Mh]=Fn(("0."+e)*1e3)}for(Ff="S";Ff.length<=9;Ff+="S")Nr(Ff,bit);Sse=dv("Milliseconds",!1);tn("z",0,0,"zoneAbbr");tn("zz",0,0,"zoneName");function wit(){return this._isUTC?"UTC":""}function Sit(){return this._isUTC?"Coordinated Universal Time":""}var St=a2.prototype;St.add=pot;St.calendar=wot;St.clone=Sot;St.diff=kot;St.endOf=Fot;St.format=Oot;St.from=Rot;St.fromNow=Dot;St.to=Bot;St.toNow=$ot;St.get=Cnt;St.invalidAt=Qot;St.isAfter=xot;St.isBefore=Cot;St.isBetween=Aot;St.isSame=_ot;St.isSameOrAfter=Eot;St.isSameOrBefore=Tot;St.isValid=Hot;St.lang=hse;St.locale=pse;St.localeData=gse;St.max=Hrt;St.min=Vrt;St.parsingFlags=qot;St.set=Ant;St.startOf=Lot;St.subtract=hot;St.toArray=Wot;St.toObject=zot;St.toDate=jot;St.toISOString=Pot;St.inspect=Mot;typeof Symbol<"u"&&Symbol.for!=null&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});St.toJSON=Vot;St.toString=Iot;St.unix=Uot;St.valueOf=Not;St.creationData=Kot;St.eraName=Xot;St.eraNarrow=Zot;St.eraAbbr=eit;St.eraYear=tit;St.year=Jae;St.isLeapYear=znt;St.weekYear=lit;St.isoWeekYear=uit;St.quarter=St.quarters=git;St.month=Yae;St.daysInMonth=Unt;St.week=St.weeks=Ynt;St.isoWeek=St.isoWeeks=Gnt;St.weeksInYear=fit;St.weeksInWeekYear=pit;St.isoWeeksInYear=cit;St.isoWeeksInISOWeekYear=dit;St.date=wse;St.day=St.days=urt;St.weekday=crt;St.isoWeekday=drt;St.dayOfYear=mit;St.hour=St.hours=vrt;St.minute=St.minutes=yit;St.second=St.seconds=vit;St.millisecond=St.milliseconds=Sse;St.utcOffset=eot;St.utc=not;St.local=rot;St.parseZone=oot;St.hasAlignedHourOffset=iot;St.isDST=aot;St.isLocal=lot;St.isUtcOffset=uot;St.isUtc=use;St.isUTC=use;St.zoneAbbr=wit;St.zoneName=Sit;St.dates=zl("dates accessor is deprecated. Use date instead.",wse);St.months=zl("months accessor is deprecated. Use month instead",Yae);St.years=zl("years accessor is deprecated. Use year instead",Jae);St.zone=zl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",tot);St.isDSTShifted=zl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",sot);function xit(e){return lo(e*1e3)}function Cit(){return lo.apply(null,arguments).parseZone()}function xse(e){return e}var fr=E$.prototype;fr.calendar=unt;fr.longDateFormat=pnt;fr.invalidDate=gnt;fr.ordinal=vnt;fr.preparse=xse;fr.postformat=xse;fr.relativeTime=wnt;fr.pastFuture=Snt;fr.set=snt;fr.eras=Yot;fr.erasParse=Got;fr.erasConvertYear=Jot;fr.erasAbbrRegex=rit;fr.erasNameRegex=nit;fr.erasNarrowRegex=oit;fr.months=$nt;fr.monthsShort=Lnt;fr.monthsParse=Nnt;fr.monthsRegex=Wnt;fr.monthsShortRegex=jnt;fr.week=Hnt;fr.firstDayOfYear=Knt;fr.firstDayOfWeek=Qnt;fr.weekdays=ort;fr.weekdaysMin=art;fr.weekdaysShort=irt;fr.weekdaysParse=lrt;fr.weekdaysRegex=frt;fr.weekdaysShortRegex=prt;fr.weekdaysMinRegex=hrt;fr.isPM=mrt;fr.meridiem=brt;function g_(e,t,n,r){var o=Gd(),i=Ic().set(r,t);return o[n](i,e)}function Cse(e,t,n){if(Bd(e)&&(t=e,e=void 0),e=e||"",t!=null)return g_(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=g_(e,r,n,"month");return o}function W$(e,t,n,r){typeof e=="boolean"?(Bd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Bd(t)&&(n=t,t=void 0),t=t||"");var o=Gd(),i=e?o._week.dow:0,a,s=[];if(n!=null)return g_(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=g_(t,(a+i)%7,r,"day");return s}function Ait(e,t){return Cse(e,t,"months")}function _it(e,t){return Cse(e,t,"monthsShort")}function Eit(e,t,n){return W$(e,t,n,"weekdays")}function Tit(e,t,n){return W$(e,t,n,"weekdaysShort")}function kit(e,t,n){return W$(e,t,n,"weekdaysMin")}rp("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Fn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Je.lang=zl("moment.lang is deprecated. Use moment.locale instead.",rp);Je.langData=zl("moment.langData is deprecated. Use moment.localeData instead.",Gd);var Xc=Math.abs;function Iit(){var e=this._data;return this._milliseconds=Xc(this._milliseconds),this._days=Xc(this._days),this._months=Xc(this._months),e.milliseconds=Xc(e.milliseconds),e.seconds=Xc(e.seconds),e.minutes=Xc(e.minutes),e.hours=Xc(e.hours),e.months=Xc(e.months),e.years=Xc(e.years),this}function Ase(e,t,n,r){var o=Du(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Pit(e,t){return Ase(this,e,t,1)}function Mit(e,t){return Ase(this,e,t,-1)}function IV(e){return e<0?Math.floor(e):Math.ceil(e)}function Oit(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=IV(JR(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Sl(e/1e3),r.seconds=o%60,i=Sl(o/60),r.minutes=i%60,a=Sl(i/60),r.hours=a%24,t+=Sl(a/24),l=Sl(_se(t)),n+=l,t-=IV(JR(l)),s=Sl(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function _se(e){return e*4800/146097}function JR(e){return e*146097/4800}function Rit(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Vl(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+_se(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(JR(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Dit(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Fn(this._months/12)*31536e6:NaN}function Jd(e){return function(){return this.as(e)}}var Bit=Jd("ms"),$it=Jd("s"),Lit=Jd("m"),Fit=Jd("h"),Nit=Jd("d"),Uit=Jd("w"),jit=Jd("M"),Wit=Jd("Q"),zit=Jd("y");function Vit(){return Du(this)}function Hit(e){return e=Vl(e),this.isValid()?this[e+"s"]():NaN}function Yg(e){return function(){return this.isValid()?this._data[e]:NaN}}var qit=Yg("milliseconds"),Qit=Yg("seconds"),Kit=Yg("minutes"),Yit=Yg("hours"),Git=Yg("days"),Jit=Yg("months"),Xit=Yg("years");function Zit(){return Sl(this.days()/7)}var id=Math.round,a0={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function eat(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function tat(e,t,n,r){var o=Du(e).abs(),i=id(o.as("s")),a=id(o.as("m")),s=id(o.as("h")),l=id(o.as("d")),u=id(o.as("M")),c=id(o.as("w")),f=id(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,eat.apply(null,p)}function nat(e){return e===void 0?id:typeof e=="function"?(id=e,!0):!1}function rat(e,t){return a0[e]===void 0?!1:t===void 0?a0[e]:(a0[e]=t,e==="s"&&(a0.ss=t-1),!0)}function oat(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=a0,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},a0,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=tat(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var XP=Math.abs;function Lm(e){return(e>0)-(e<0)||+e}function wI(){if(!this.isValid())return this.localeData().invalidDate();var e=XP(this._milliseconds)/1e3,t=XP(this._days),n=XP(this._months),r,o,i,a,s=this.asSeconds(),l,u,c,f;return s?(r=Sl(e/60),o=Sl(r/60),e%=60,r%=60,i=Sl(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Lm(this._months)!==Lm(s)?"-":"",c=Lm(this._days)!==Lm(s)?"-":"",f=Lm(this._milliseconds)!==Lm(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var tr=vI.prototype;tr.isValid=Grt;tr.abs=Iit;tr.add=Pit;tr.subtract=Mit;tr.as=Rit;tr.asMilliseconds=Bit;tr.asSeconds=$it;tr.asMinutes=Lit;tr.asHours=Fit;tr.asDays=Nit;tr.asWeeks=Uit;tr.asMonths=jit;tr.asQuarters=Wit;tr.asYears=zit;tr.valueOf=Dit;tr._bubble=Oit;tr.clone=Vit;tr.get=Hit;tr.milliseconds=qit;tr.seconds=Qit;tr.minutes=Kit;tr.hours=Yit;tr.days=Git;tr.weeks=Zit;tr.months=Jit;tr.years=Xit;tr.humanize=oat;tr.toISOString=wI;tr.toString=wI;tr.toJSON=wI;tr.locale=pse;tr.localeData=gse;tr.toIsoString=zl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",wI);tr.lang=hse;tn("X",0,0,"unix");tn("x",0,0,"valueOf");jt("x",hI);jt("X",Ent);Nr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Nr("x",function(e,t,n){n._d=new Date(Fn(e))});//! moment.js -Je.version="2.29.4";int(lo);Je.fn=St;Je.min=qrt;Je.max=Qrt;Je.now=Krt;Je.utc=Ic;Je.unix=xit;Je.months=Ait;Je.isDate=i2;Je.locale=rp;Je.invalid=uI;Je.duration=Du;Je.isMoment=vu;Je.weekdays=Eit;Je.parseZone=Cit;Je.localeData=Gd;Je.isDuration=UC;Je.monthsShort=_it;Je.weekdaysMin=kit;Je.defineLocale=D$;Je.updateLocale=Crt;Je.locales=Art;Je.weekdaysShort=Tit;Je.normalizeUnits=Vl;Je.relativeTimeRounding=nat;Je.relativeTimeThreshold=rat;Je.calendarFormat=bot;Je.prototype=St;Je.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var iat={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},aat=function(){function e(t){var n=this,r=t===void 0?{}:t,o=r.locale,i=r.formats,a=r.instance;this.lib="moment",this.is12HourCycleInCurrentLocale=function(){return/A|a/.test(n.moment.localeData(n.getCurrentLocaleCode()).longDateFormat("LT"))},this.getFormatHelperText=function(s){var l=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return s.match(l).map(function(u){var c=u[0];return c==="L"||c===";"?n.moment.localeData(n.getCurrentLocaleCode()).longDateFormat(u):u}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase()},this.getCurrentLocaleCode=function(){return n.locale||n.moment.locale()},this.parseISO=function(s){return n.moment(s,!0)},this.toISO=function(s){return s.toISOString()},this.parse=function(s,l){return s===""?null:n.locale?n.moment(s,l,n.locale,!0):n.moment(s,l,!0)},this.date=function(s){if(s===null)return null;var l=n.moment(s);return l.locale(n.locale),l},this.toJsDate=function(s){return s.toDate()},this.isValid=function(s){return n.moment(s).isValid()},this.isNull=function(s){return s===null},this.getDiff=function(s,l,u){return s.diff(l,u)},this.isAfter=function(s,l){return s.isAfter(l)},this.isBefore=function(s,l){return s.isBefore(l)},this.isAfterDay=function(s,l){return s.isAfter(l,"day")},this.isBeforeDay=function(s,l){return s.isBefore(l,"day")},this.isBeforeYear=function(s,l){return s.isBefore(l,"year")},this.isAfterYear=function(s,l){return s.isAfter(l,"year")},this.startOfDay=function(s){return s.clone().startOf("day")},this.endOfDay=function(s){return s.clone().endOf("day")},this.format=function(s,l){return n.formatByString(s,n.formats[l])},this.formatByString=function(s,l){var u=s.clone();return u.locale(n.locale),u.format(l)},this.formatNumber=function(s){return s},this.getHours=function(s){return s.get("hours")},this.addSeconds=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"seconds"):s.clone().add(l,"seconds")},this.addMinutes=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"minutes"):s.clone().add(l,"minutes")},this.addHours=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"hours"):s.clone().add(l,"hours")},this.addDays=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"days"):s.clone().add(l,"days")},this.addWeeks=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"weeks"):s.clone().add(l,"weeks")},this.addMonths=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"months"):s.clone().add(l,"months")},this.addYears=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"years"):s.clone().add(l,"years")},this.setHours=function(s,l){return s.clone().hours(l)},this.getMinutes=function(s){return s.get("minutes")},this.setMinutes=function(s,l){return s.clone().minutes(l)},this.getSeconds=function(s){return s.get("seconds")},this.setSeconds=function(s,l){return s.clone().seconds(l)},this.getMonth=function(s){return s.get("month")},this.getDaysInMonth=function(s){return s.daysInMonth()},this.isSameDay=function(s,l){return s.isSame(l,"day")},this.isSameMonth=function(s,l){return s.isSame(l,"month")},this.isSameYear=function(s,l){return s.isSame(l,"year")},this.isSameHour=function(s,l){return s.isSame(l,"hour")},this.setMonth=function(s,l){return s.clone().month(l)},this.getMeridiemText=function(s){return n.is12HourCycleInCurrentLocale()?n.moment.localeData(n.getCurrentLocaleCode()).meridiem(s==="am"?0:13,0,!1):s==="am"?"AM":"PM"},this.startOfYear=function(s){return s.clone().startOf("year")},this.endOfYear=function(s){return s.clone().endOf("year")},this.startOfMonth=function(s){return s.clone().startOf("month")},this.endOfMonth=function(s){return s.clone().endOf("month")},this.startOfWeek=function(s){return s.clone().startOf("week")},this.endOfWeek=function(s){return s.clone().endOf("week")},this.getNextMonth=function(s){return s.clone().add(1,"month")},this.getPreviousMonth=function(s){return s.clone().subtract(1,"month")},this.getMonthArray=function(s){for(var l=s.clone().startOf("year"),u=[l];u.length<12;){var c=u[u.length-1];u.push(n.getNextMonth(c))}return u},this.getYear=function(s){return s.get("year")},this.setYear=function(s,l){return s.clone().set("year",l)},this.getDate=function(s){return s.get("date")},this.setDate=function(s,l){return s.clone().set("date",l)},this.mergeDateAndTime=function(s,l){return s.hour(l.hour()).minute(l.minute()).second(l.second())},this.getWeekdays=function(){return n.moment.weekdaysShort(!0)},this.isEqual=function(s,l){return s===null&&l===null?!0:n.moment(s).isSame(l)},this.getWeekArray=function(s){for(var l=s.clone().startOf("month").startOf("week"),u=s.clone().endOf("month").endOf("week"),c=0,f=l,p=[];f.isBefore(u);){var g=Math.floor(c/7);p[g]=p[g]||[],p[g].push(f),f=f.clone().add(1,"day"),c+=1}return p},this.getYearRange=function(s,l){for(var u=n.moment(s).startOf("year"),c=n.moment(l).endOf("year"),f=[],p=u;p.isBefore(c);)f.push(p),p=p.clone().add(1,"year");return f},this.isWithinRange=function(s,l){var u=l[0],c=l[1];return s.isBetween(u,c,null,"[]")},this.moment=a||Je,this.locale=o,this.formats=Object.assign({},iat,i)}return e}();const sat={Y:"year",YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",E:"weekDay",e:"weekDay",d:"weekDay",dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:"hours",HH:"hours",h:"hours",hh:"hours",k:"hours",kk:"hours",m:"minutes",mm:"minutes",s:"seconds",ss:"seconds"};class lat extends aat{constructor(...t){super(...t),this.isMUIAdapter=!0,this.formatTokenMap=sat,this.escapedCharacters={start:"[",end:"]"},this.expandFormat=n=>{const r=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return n.match(r).map(o=>{const i=o[0];return i==="L"||i===";"?Je.localeData(this.getCurrentLocaleCode()).longDateFormat(o):o}).join("")},this.getCurrentLocaleCode=()=>this.locale||Je.locale(),this.getFormatHelperText=n=>this.expandFormat(n).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.getWeekNumber=n=>n.week(),this.getWeekdays=()=>Je.weekdaysShort(!0),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(Je.localeData(this.getCurrentLocaleCode()).longDateFormat("LT"))}}const uat=["localeText"],XR=M.createContext(null);function z$(e){var t;const{localeText:n}=e,r=lt(e,uat),{utils:o,localeText:i}=(t=M.useContext(XR))!=null?t:{utils:void 0,localeText:void 0},a=Bt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:u,dateLibInstance:c,adapterLocale:f,localeText:p}=a,g=M.useMemo(()=>Q({},p,i,n),[p,i,n]),m=M.useMemo(()=>{if(!l)return o||null;const x=new l({locale:f,formats:u,instance:c});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` -`));return x},[l,f,u,c,o]),y=M.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=M.useMemo(()=>({utils:m,defaultDates:y,localeText:g}),[y,m,g]);return A(XR.Provider,{value:v,children:s})}const Sb=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=o,u=null),a.isAfter(e,r)&&(u&&(u=r),l=null);l||u;){if(l&&a.isAfter(l,r)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},cat=(e,t,n,r)=>e.isBefore(t,n)?n:e.isAfter(t,r)?r:t,dat=(e,t)=>t==null||!e.isValid(t)?null:t,Ll=(e,t,n)=>t==null||!e.isValid(t)?n:t,fat=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),Ese=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` -`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit"}:{type:n.sectionType,contentType:n.contentType}},pat=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},SI=(e,t)=>{const n=[],r=e.date(),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},Tse=(e,t,n)=>{switch(t){case"month":return e.getMonthArray(e.date()).map(r=>e.formatByString(r,n));case"weekDay":return SI(e,n);case"meridiem":{const r=e.date();return[e.startOfDay(r),e.endOfDay(r)].map(o=>e.formatByString(o,n))}default:return[]}},V$=(e,t,n,r,o,i)=>{if(n==="day"&&(()=>{const l=e.startOfYear(e.date()),u=e.formatByString(l,r);return Number.isNaN(Number(u))})()){const l=e.setDate(i.longestMonth,t);return e.formatByString(l,r)}const s=t.toString();if(o){const l=e.formatByString(e.date(),r).length;let u=s;for(u=Number(u).toString();u.length{const i=pat(n),a=n==="Home",s=n==="End",l=t.value===""||a||s,u=()=>{const f=r[t.type]({currentDate:o,format:t.format,contentType:t.contentType}),p=y=>V$(e,y,t.type,t.format,t.hasLeadingZeros,f);if(l)return t.type==="year"&&!s&&!a?e.formatByString(e.date(),t.format):i>0||a?p(f.minimum):p(f.maximum);const m=parseInt(t.value,10)+i;return m>f.maximum?p(f.minimum):m{const f=Tse(e,t.type,t.format);if(f.length===0)return t.value;if(l)return i>0||a?f[0]:f[f.length-1];const g=(f.indexOf(t.value)+f.length+i)%f.length;return f[g]};return t.contentType==="digit"?u():c()},H$=(e,t)=>{let n=e.value||e.placeholder;return["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!e.hasLeadingZeros&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},xb=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),kse=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(),r).length});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType});case"day":return t.fieldDayPlaceholder();case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType});case"hours":return t.fieldHoursPlaceholder();case"minutes":return t.fieldMinutesPlaceholder();case"seconds":return t.fieldSecondsPlaceholder();case"meridiem":return t.fieldMeridiemPlaceholder();default:return r}},PV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Ise=(e,t)=>e.formatByString(e.date(),t).length===4,Pse=(e,t,n,r)=>{if(t!=="digit")return!1;switch(n){case"year":return Ise(e,r)?e.formatByString(e.setYear(e.date(),1),r)==="0001":e.formatByString(e.setYear(e.date(),2001),r)==="01";case"month":return e.formatByString(e.startOfYear(e.date()),r).length>1;case"day":return e.formatByString(e.startOfMonth(e.date()),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(e.date()),r).length>1;case"hours":return e.formatByString(e.setHours(e.date(),1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(e.date(),1),r).length>1;case"seconds":return e.formatByString(e.setMinutes(e.date(),1),r).length>1;default:throw new Error("Invalid section type")}},mat=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},MV=(e,t,n,r,o)=>{let i="";const a=[],s=y=>{if(y==="")return null;const v=Ese(e,y),x=r==null||!e.isValid(r)?"":e.formatByString(r,y),w=Pse(e,v.contentType,v.type,y);return a.push(Q({},v,{format:y,value:x,placeholder:gat(e,t,v,y),hasLeadingZeros:w,startSeparator:a.length===0?i:"",endSeparator:"",modified:!1})),null};let l=10,u=n,c=e.expandFormat(n);for(;c!==u;)if(u=c,c=e.expandFormat(u),l-=1,l<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const f=c,p=mat(e,f),g=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let m="";for(let y=0;y_.start<=y&&_.end>=y),x=f[y],w=v!=null,I=`${m}${f.slice(y)}`;!w&&x.match(/([A-Za-z]+)/)&&g.test(I)?m+=x:w&&(v==null?void 0:v.start)===y||(v==null?void 0:v.end)===y||(s(m),m="",a.length===0?i+=x:a[a.length-1].endSeparator+=x)}return s(m),a.map(y=>{const v=x=>{let w=x;return w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return y.startSeparator=v(y.startSeparator),y.endSeparator=v(y.endSeparator),y})},ZR=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>`${o.startSeparator}${H$(o,t?"input-rtl":"input-ltr")}${o.endSeparator}`).join("");return t?`⁦${r}⁩`:r},vat=e=>{const t=e.date(),n=e.endOfYear(t),{maxDaysInMonth:r,longestMonth:o}=e.getMonthArray(t).reduce((i,a)=>{const s=e.getDaysInMonth(a);return s>i.maxDaysInMonth?{maxDaysInMonth:s,longestMonth:a}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:Ise(e,i)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(n)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&e.isValid(i)?e.getDaysInMonth(i):r,longestMonth:o}),weekDay:({format:i,contentType:a})=>{if(a==="digit"){const s=SI(e,i).map(Number);return{minimum:Math.min(...s),maximum:Math.max(...s)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const a=e.getHours(n);return e.formatByString(e.endOfDay(t),i)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(t),i))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(n)}),seconds:()=>({minimum:0,maximum:e.getSeconds(n)}),meridiem:()=>({minimum:0,maximum:0})}},bat=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=SI(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},OV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},RV=(e,t,n,r,o)=>[...n].sort((i,a)=>OV[i.type]-OV[a.type]).reduce((i,a)=>!o||a.modified?bat(e,a,t,i):i,r),wat=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Sat=(e,t,n)=>{if(!(t.every(a=>a.type==="weekDay"||a.value!=="")&&t.some(a=>a.type==="day")))return null;const o=t.map(a=>{if(a.type!=="day")return a;const s=n.day({currentDate:null,format:a.format,contentType:a.contentType});return Q({},a,{value:V$(e,s.minimum,a.type,a.format,a.hasLeadingZeros,s)})}),i=ZR(e,o);return i==null||!e.isValid(i)?null:t.map(a=>{if(a.type!=="day")return a;const s=n.day({currentDate:i,format:a.format,contentType:a.contentType});return Number(a.value)<=s.maximum?a:Q({},a,{value:s.maximum.toString()})})},xat=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=i&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,u)=>{const c=o[u],f=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},q$={emptyValue:null,getTodayValue:(e,t)=>t==="date"?e.startOfDay(e.date()):e.date(),cleanValue:dat,areValuesEqual:fat,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null},Cat={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:kse(o(t),r),getValueStrFromSections:yat,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};var P1={},DV;function Mse(){if(DV)return P1;DV=1,Object.defineProperty(P1,"__esModule",{value:!0}),P1.default=void 0;var e=n(M);function t(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(t=function(l){return l?s:a})(i)}function n(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var s=t(a);if(s&&s.has(i))return s.get(i);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)){var f=u?Object.getOwnPropertyDescriptor(i,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=i[c]}return l.default=i,s&&s.set(i,l),l}var o=typeof window<"u"?e.useLayoutEffect:e.useEffect;return P1.default=o,P1}var Aat=Mse();const e5=Hw(Aat);var Ose={},m_={},_at={get exports(){return m_},set exports(e){m_=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(_at);var Eat=m_;Object.defineProperty(Ose,"__esModule",{value:!0});var yr=Ose.default=Iat,BV=kat(M),Tat=Eat(Mse());function Rse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Rse=function(r){return r?n:t})(e)}function kat(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Rse(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Iat(e){const t=BV.useRef(e);return(0,Tat.default)(()=>{t.current=e}),BV.useCallback((...n)=>(0,t.current)(...n),[])}var Dse={},Hx={},$V;function Pat(){if($V)return Hx;$V=1,Object.defineProperty(Hx,"__esModule",{value:!0}),Hx.default=e;function e(t,n){typeof t=="function"?t(n):t&&(t.current=n)}return Hx}var Mat=m_;Object.defineProperty(Dse,"__esModule",{value:!0});var Q$=Dse.default=Bat,Oat=Dat(M),Rat=Mat(Pat());function Bse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Bse=function(r){return r?n:t})(e)}function Dat(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Bse(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Bat(...e){return Oat.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{(0,Rat.default)(n,t)})},e)}const $at=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Q({},e)}}}}),$se={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},Lat=$se;$at($se);const Gg=()=>{const e=M.useContext(XR);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` +`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var EV={};function Lae(e,t){Je.deprecationHandler!=null&&Je.deprecationHandler(e,t),EV[e]||($ae(t),EV[e]=!0)}Je.suppressDeprecationWarnings=!1;Je.deprecationHandler=null;function Pc(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ant(e){var t,n;for(n in e)cr(e,n)&&(t=e[n],Pc(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function QR(e,t){var n=Lf({},e),r;for(r in t)cr(t,r)&&(Fh(e[r])&&Fh(t[r])?(n[r]={},Lf(n[r],e[r]),Lf(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)cr(e,r)&&!cr(t,r)&&Fh(e[r])&&(n[r]=Lf({},n[r]));return n}function E$(e){e!=null&&this.set(e)}var KR;Object.keys?KR=Object.keys:KR=function(e){var t,n=[];for(t in e)cr(e,t)&&n.push(t);return n};var _nt={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ent(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Pc(r)?r.call(t,n):r}function Sc(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var T$=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z2=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,JP={},A0={};function tn(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(A0[e]=o),t&&(A0[t[0]]=function(){return Sc(o.apply(this,arguments),t[1],t[2])}),n&&(A0[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Tnt(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function knt(e){var t=e.match(T$),n,r;for(n=0,r=t.length;n=0&&z2.test(e);)e=e.replace(z2,r),z2.lastIndex=0,n-=1;return e}var Int={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Pnt(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(T$).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Mnt="Invalid date";function Ont(){return this._invalidDate}var Rnt="%d",Dnt=/\d{1,2}/;function Bnt(e){return this._ordinal.replace("%d",e)}var $nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Lnt(e,t,n,r){var o=this._relativeTime[n];return Pc(o)?o(e,t,n,r):o.replace(/%d/i,e)}function Fnt(e,t){var n=this._relativeTime[e>0?"future":"past"];return Pc(n)?n(t):n.replace(/%s/i,t)}var bb={};function wa(e,t){var n=e.toLowerCase();bb[n]=bb[n+"s"]=bb[t]=e}function Vl(e){return typeof e=="string"?bb[e]||bb[e.toLowerCase()]:void 0}function k$(e){var t={},n,r;for(r in e)cr(e,r)&&(n=Vl(r),n&&(t[n]=e[r]));return t}var Nae={};function Sa(e,t){Nae[e]=t}function Nnt(e){var t=[],n;for(n in e)cr(e,n)&&t.push({unit:n,priority:Nae[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}function dI(e){return e%4===0&&e%100!==0||e%400===0}function Sl(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Nn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Sl(t)),n}function dv(e,t){return function(n){return n!=null?(Uae(this,e,n),Je.updateOffset(this,t),this):c_(this,e)}}function c_(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function Uae(e,t,n){e.isValid()&&!isNaN(n)&&(t==="FullYear"&&dI(e.year())&&e.month()===1&&e.date()===29?(n=Nn(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),yI(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Unt(e){return e=Vl(e),Pc(this[e])?this[e]():this}function jnt(e,t){if(typeof e=="object"){e=k$(e);var n=Nnt(e),r,o=n.length;for(r=0;r68?1900:2e3)};var Gae=dv("FullYear",!0);function art(){return dI(this.year())}function srt(e,t,n,r,o,i,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,o,i,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,o,i,a),s}function ww(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function f_(e,t,n){var r=7+t-n,o=(7+ww(e,0,r).getUTCDay()-t)%7;return-o+r-1}function Jae(e,t,n,r,o){var i=(7+n-r)%7,a=f_(e,r,o),s=1+7*(t-1)+i+a,l,u;return s<=0?(l=e-1,u=wb(l)+s):s>wb(e)?(l=e+1,u=s-wb(e)):(l=e,u=s),{year:l,dayOfYear:u}}function Sw(e,t,n){var r=f_(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Cd(a,t,n)):o>Cd(e.year(),t,n)?(i=o-Cd(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Cd(e,t,n){var r=f_(e,t,n),o=f_(e+1,t,n);return(wb(e)-r+o)/7}tn("w",["ww",2],"wo","week");tn("W",["WW",2],"Wo","isoWeek");wa("week","w");wa("isoWeek","W");Sa("week",5);Sa("isoWeek",5);jt("w",co);jt("ww",co,Ys);jt("W",co);jt("WW",co,Ys);lx(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Nn(e)});function lrt(e){return Sw(e,this._week.dow,this._week.doy).week}var urt={dow:0,doy:6};function crt(){return this._week.dow}function drt(){return this._week.doy}function frt(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function prt(e){var t=Sw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}tn("d",0,"do","day");tn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});tn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});tn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});tn("e",0,0,"weekday");tn("E",0,0,"isoWeekday");wa("day","d");wa("weekday","e");wa("isoWeekday","E");Sa("day",11);Sa("weekday",11);Sa("isoWeekday",11);jt("d",co);jt("e",co);jt("E",co);jt("dd",function(e,t){return t.weekdaysMinRegex(e)});jt("ddd",function(e,t){return t.weekdaysShortRegex(e)});jt("dddd",function(e,t){return t.weekdaysRegex(e)});lx(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:Pn(n).invalidWeekday=e});lx(["d","e","E"],function(e,t,n,r){t[r]=Nn(e)});function hrt(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function grt(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function M$(e,t){return e.slice(t,7).concat(e.slice(0,t))}var mrt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xae="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),yrt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vrt=sx,brt=sx,wrt=sx;function Srt(e,t){var n=yu(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?M$(n,this._week.dow):e?n[e.day()]:n}function xrt(e){return e===!0?M$(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Crt(e){return e===!0?M$(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Art(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ic([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=Ho.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=Ho.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=Ho.call(this._weekdaysParse,a),o!==-1||(o=Ho.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=Ho.call(this._shortWeekdaysParse,a),o!==-1||(o=Ho.call(this._weekdaysParse,a),o!==-1)?o:(o=Ho.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=Ho.call(this._minWeekdaysParse,a),o!==-1||(o=Ho.call(this._weekdaysParse,a),o!==-1)?o:(o=Ho.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function _rt(e,t,n){var r,o,i;if(this._weekdaysParseExact)return Art.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ic([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Ert(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=hrt(e,this.localeData()),this.add(e-t,"d")):t}function Trt(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function krt(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=grt(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Irt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(cr(this,"_weekdaysRegex")||(this._weekdaysRegex=vrt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Prt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(cr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=brt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Mrt(e){return this._weekdaysParseExact?(cr(this,"_weekdaysRegex")||O$.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(cr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=wrt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function O$(){function e(c,f){return f.length-c.length}var t=[],n=[],r=[],o=[],i,a,s,l,u;for(i=0;i<7;i++)a=Ic([2e3,1]).day(i),s=ks(this.weekdaysMin(a,"")),l=ks(this.weekdaysShort(a,"")),u=ks(this.weekdays(a,"")),t.push(s),n.push(l),r.push(u),o.push(s),o.push(l),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function R$(){return this.hours()%12||12}function Ort(){return this.hours()||24}tn("H",["HH",2],0,"hour");tn("h",["hh",2],0,R$);tn("k",["kk",2],0,Ort);tn("hmm",0,0,function(){return""+R$.apply(this)+Sc(this.minutes(),2)});tn("hmmss",0,0,function(){return""+R$.apply(this)+Sc(this.minutes(),2)+Sc(this.seconds(),2)});tn("Hmm",0,0,function(){return""+this.hours()+Sc(this.minutes(),2)});tn("Hmmss",0,0,function(){return""+this.hours()+Sc(this.minutes(),2)+Sc(this.seconds(),2)});function Zae(e,t){tn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Zae("a",!0);Zae("A",!1);wa("hour","h");Sa("hour",13);function ese(e,t){return t._meridiemParse}jt("a",ese);jt("A",ese);jt("H",co);jt("h",co);jt("k",co);jt("HH",co,Ys);jt("hh",co,Ys);jt("kk",co,Ys);jt("hmm",zae);jt("hmmss",Vae);jt("Hmm",zae);jt("Hmmss",Vae);Nr(["H","HH"],pi);Nr(["k","kk"],function(e,t,n){var r=Nn(e);t[pi]=r===24?0:r});Nr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Nr(["h","hh"],function(e,t,n){t[pi]=Nn(e),Pn(n).bigHour=!0});Nr("hmm",function(e,t,n){var r=e.length-2;t[pi]=Nn(e.substr(0,r)),t[lu]=Nn(e.substr(r)),Pn(n).bigHour=!0});Nr("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=Nn(e.substr(0,r)),t[lu]=Nn(e.substr(r,2)),t[pd]=Nn(e.substr(o)),Pn(n).bigHour=!0});Nr("Hmm",function(e,t,n){var r=e.length-2;t[pi]=Nn(e.substr(0,r)),t[lu]=Nn(e.substr(r))});Nr("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[pi]=Nn(e.substr(0,r)),t[lu]=Nn(e.substr(r,2)),t[pd]=Nn(e.substr(o))});function Rrt(e){return(e+"").toLowerCase().charAt(0)==="p"}var Drt=/[ap]\.?m?\.?/i,Brt=dv("Hours",!0);function $rt(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var tse={calendar:_nt,longDateFormat:Int,invalidDate:Mnt,ordinal:Rnt,dayOfMonthOrdinalParse:Dnt,relativeTime:$nt,months:Gnt,monthsShort:Hae,week:urt,weekdays:mrt,weekdaysMin:yrt,weekdaysShort:Xae,meridiemParse:Drt},ho={},k1={},xw;function Lrt(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=vI(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&Lrt(i,r)>=n-1)break;n--}t++}return xw}function Nrt(e){return e.match("^[^/\\\\]*$")!=null}function vI(e){var t=null,n;if(ho[e]===void 0&&typeof module<"u"&&module&&module.exports&&Nrt(e))try{t=xw._abbr,n=require,n("./locale/"+e),rp(t)}catch{ho[e]=null}return ho[e]}function rp(e,t){var n;return e&&(Ka(t)?n=Gd(e):n=D$(e,t),n?xw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),xw._abbr}function D$(e,t){if(t!==null){var n,r=tse;if(t.abbr=e,ho[e]!=null)Lae("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ho[e]._config;else if(t.parentLocale!=null)if(ho[t.parentLocale]!=null)r=ho[t.parentLocale]._config;else if(n=vI(t.parentLocale),n!=null)r=n._config;else return k1[t.parentLocale]||(k1[t.parentLocale]=[]),k1[t.parentLocale].push({name:e,config:t}),null;return ho[e]=new E$(QR(r,t)),k1[e]&&k1[e].forEach(function(o){D$(o.name,o.config)}),rp(e),ho[e]}else return delete ho[e],null}function Urt(e,t){if(t!=null){var n,r,o=tse;ho[e]!=null&&ho[e].parentLocale!=null?ho[e].set(QR(ho[e]._config,t)):(r=vI(e),r!=null&&(o=r._config),t=QR(o,t),r==null&&(t.abbr=e),n=new E$(t),n.parentLocale=ho[e],ho[e]=n),rp(e)}else ho[e]!=null&&(ho[e].parentLocale!=null?(ho[e]=ho[e].parentLocale,e===rp()&&rp(e)):ho[e]!=null&&delete ho[e]);return ho[e]}function Gd(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xw;if(!yu(e)){if(t=vI(e),t)return t;e=[e]}return Frt(e)}function jrt(){return KR(ho)}function B$(e){var t,n=e._a;return n&&Pn(e).overflow===-2&&(t=n[fd]<0||n[fd]>11?fd:n[ec]<1||n[ec]>yI(n[ca],n[fd])?ec:n[pi]<0||n[pi]>24||n[pi]===24&&(n[lu]!==0||n[pd]!==0||n[Mh]!==0)?pi:n[lu]<0||n[lu]>59?lu:n[pd]<0||n[pd]>59?pd:n[Mh]<0||n[Mh]>999?Mh:-1,Pn(e)._overflowDayOfYear&&(tec)&&(t=ec),Pn(e)._overflowWeeks&&t===-1&&(t=Qnt),Pn(e)._overflowWeekday&&t===-1&&(t=Knt),Pn(e).overflow=t),e}var Wrt=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,zrt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Vrt=/Z|[+-]\d\d(?::?\d\d)?/,V2=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],XP=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Hrt=/^\/?Date\((-?\d+)/i,qrt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Qrt={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function nse(e){var t,n,r=e._i,o=Wrt.exec(r)||zrt.exec(r),i,a,s,l,u=V2.length,c=XP.length;if(o){for(Pn(e).iso=!0,t=0,n=u;twb(a)||e._dayOfYear===0)&&(Pn(e)._overflowDayOfYear=!0),n=ww(a,0,e._dayOfYear),e._a[fd]=n.getUTCMonth(),e._a[ec]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[pi]===24&&e._a[lu]===0&&e._a[pd]===0&&e._a[Mh]===0&&(e._nextDay=!0,e._a[pi]=0),e._d=(e._useUTC?ww:srt).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[pi]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(Pn(e).weekdayMismatch=!0)}}function tot(e){var t,n,r,o,i,a,s,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=Vm(t.GG,e._a[ca],Sw(lo(),1,4).year),r=Vm(t.W,1),o=Vm(t.E,1),(o<1||o>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=Sw(lo(),i,a),n=Vm(t.gg,e._a[ca],u.year),r=Vm(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(l=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(l=!0)):o=i),r<1||r>Cd(n,i,a)?Pn(e)._overflowWeeks=!0:l!=null?Pn(e)._overflowWeekday=!0:(s=Jae(n,r,o,i,a),e._a[ca]=s.year,e._dayOfYear=s.dayOfYear)}Je.ISO_8601=function(){};Je.RFC_2822=function(){};function L$(e){if(e._f===Je.ISO_8601){nse(e);return}if(e._f===Je.RFC_2822){rse(e);return}e._a=[],Pn(e).empty=!0;var t=""+e._i,n,r,o,i,a,s=t.length,l=0,u,c;for(o=Fae(e._f,e._locale).match(T$)||[],c=o.length,n=0;n0&&Pn(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),l+=r.length),A0[i]?(r?Pn(e).empty=!1:Pn(e).unusedTokens.push(i),qnt(i,r,e)):e._strict&&!r&&Pn(e).unusedTokens.push(i);Pn(e).charsLeftOver=s-l,t.length>0&&Pn(e).unusedInput.push(t),e._a[pi]<=12&&Pn(e).bigHour===!0&&e._a[pi]>0&&(Pn(e).bigHour=void 0),Pn(e).parsedDateParts=e._a.slice(0),Pn(e).meridiem=e._meridiem,e._a[pi]=not(e._locale,e._a[pi],e._meridiem),u=Pn(e).era,u!==null&&(e._a[ca]=e._locale.erasConvertYear(u,e._a[ca])),$$(e),B$(e)}function not(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function rot(e){var t,n,r,o,i,a,s=!1,l=e._f.length;if(l===0){Pn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:cI()});function ase(e,t){var n,r;if(t.length===1&&yu(t[0])&&(t=t[0]),!t.length)return lo();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Aot(){if(!Ka(this._isDSTShifted))return this._isDSTShifted;var e={},t;return _$(e,this),e=ose(e),e._a?(t=e._isUTC?Ic(e._a):lo(e._a),this._isDSTShifted=this.isValid()&&got(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function _ot(){return this.isValid()?!this._isUTC:!1}function Eot(){return this.isValid()?this._isUTC:!1}function lse(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Tot=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kot=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bu(e,t){var n=e,r=null,o,i,a;return UC(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:Bd(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Tot.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:Nn(r[ec])*o,h:Nn(r[pi])*o,m:Nn(r[lu])*o,s:Nn(r[pd])*o,ms:Nn(GR(r[Mh]*1e3))*o}):(r=kot.exec(e))?(o=r[1]==="-"?-1:1,n={y:ah(r[2],o),M:ah(r[3],o),w:ah(r[4],o),d:ah(r[5],o),h:ah(r[6],o),m:ah(r[7],o),s:ah(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Iot(lo(n.from),lo(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new bI(n),UC(e)&&cr(e,"_locale")&&(i._locale=e._locale),UC(e)&&cr(e,"_isValid")&&(i._isValid=e._isValid),i}Bu.fn=bI.prototype;Bu.invalid=hot;function ah(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function kV(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Iot(e,t){var n;return e.isValid()&&t.isValid()?(t=N$(t,e),e.isBefore(t)?n=kV(e,t):(n=kV(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function use(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(Lae(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=Bu(n,r),cse(this,o,e),this}}function cse(e,t,n,r){var o=t._milliseconds,i=GR(t._days),a=GR(t._months);e.isValid()&&(r=r??!0,a&&Qae(e,c_(e,"Month")+a*n),i&&Uae(e,"Date",c_(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Je.updateOffset(e,i||a))}var Pot=use(1,"add"),Mot=use(-1,"subtract");function dse(e){return typeof e=="string"||e instanceof String}function Oot(e){return vu(e)||ix(e)||dse(e)||Bd(e)||Dot(e)||Rot(e)||e===null||e===void 0}function Rot(e){var t=Fh(e)&&!C$(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?NC(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Pc(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",NC(n,"Z")):NC(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Kot(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function Yot(e){e||(e=this.isUtc()?Je.defaultFormatUtc:Je.defaultFormat);var t=NC(this,e);return this.localeData().postformat(t)}function Got(e,t){return this.isValid()&&(vu(e)&&e.isValid()||lo(e).isValid())?Bu({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Jot(e){return this.from(lo(),e)}function Xot(e,t){return this.isValid()&&(vu(e)&&e.isValid()||lo(e).isValid())?Bu({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Zot(e){return this.to(lo(),e)}function fse(e){var t;return e===void 0?this._locale._abbr:(t=Gd(e),t!=null&&(this._locale=t),this)}var pse=zl("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function hse(){return this._locale}var p_=1e3,_0=60*p_,h_=60*_0,gse=(365*400+97)*24*h_;function E0(e,t){return(e%t+t)%t}function mse(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-gse:new Date(e,t,n).valueOf()}function yse(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-gse:Date.UTC(e,t,n)}function eit(e){var t,n;if(e=Vl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?yse:mse,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=E0(t+(this._isUTC?0:this.utcOffset()*_0),h_);break;case"minute":t=this._d.valueOf(),t-=E0(t,_0);break;case"second":t=this._d.valueOf(),t-=E0(t,p_);break}return this._d.setTime(t),Je.updateOffset(this,!0),this}function tit(e){var t,n;if(e=Vl(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?yse:mse,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=h_-E0(t+(this._isUTC?0:this.utcOffset()*_0),h_)-1;break;case"minute":t=this._d.valueOf(),t+=_0-E0(t,_0)-1;break;case"second":t=this._d.valueOf(),t+=p_-E0(t,p_)-1;break}return this._d.setTime(t),Je.updateOffset(this,!0),this}function nit(){return this._d.valueOf()-(this._offset||0)*6e4}function rit(){return Math.floor(this.valueOf()/1e3)}function oit(){return new Date(this.valueOf())}function iit(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ait(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function sit(){return this.isValid()?this.toISOString():null}function lit(){return A$(this)}function uit(){return Lf({},Pn(this))}function cit(){return Pn(this).overflow}function dit(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}tn("N",0,0,"eraAbbr");tn("NN",0,0,"eraAbbr");tn("NNN",0,0,"eraAbbr");tn("NNNN",0,0,"eraName");tn("NNNNN",0,0,"eraNarrow");tn("y",["y",1],"yo","eraYear");tn("y",["yy",2],0,"eraYear");tn("y",["yyy",3],0,"eraYear");tn("y",["yyyy",4],0,"eraYear");jt("N",U$);jt("NN",U$);jt("NNN",U$);jt("NNNN",xit);jt("NNNNN",Cit);Nr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?Pn(n).era=o:Pn(n).invalidEra=e});jt("y",fv);jt("yy",fv);jt("yyy",fv);jt("yyyy",fv);jt("yo",Ait);Nr(["y","yy","yyy","yyyy"],ca);Nr(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ca]=n._locale.eraYearOrdinalParse(e,o):t[ca]=parseInt(e,10)});function fit(e,t){var n,r,o,i=this._eras||Gd("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function hit(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Je(e.since).year():Je(e.since).year()+(t-e.offset)*n}function git(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),Mit.call(this,e,t,n,r,o))}function Mit(e,t,n,r,o){var i=Jae(e,t,n,r,o),a=ww(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}tn("Q",0,"Qo","quarter");wa("quarter","Q");Sa("quarter",7);jt("Q",jae);Nr("Q",function(e,t){t[fd]=(Nn(e)-1)*3});function Oit(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}tn("D",["DD",2],"Do","date");wa("date","D");Sa("date",9);jt("D",co);jt("DD",co,Ys);jt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Nr(["D","DD"],ec);Nr("Do",function(e,t){t[ec]=Nn(e.match(co)[0])});var bse=dv("Date",!0);tn("DDD",["DDDD",3],"DDDo","dayOfYear");wa("dayOfYear","DDD");Sa("dayOfYear",4);jt("DDD",pI);jt("DDDD",Wae);Nr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Nn(e)});function Rit(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}tn("m",["mm",2],0,"minute");wa("minute","m");Sa("minute",14);jt("m",co);jt("mm",co,Ys);Nr(["m","mm"],lu);var Dit=dv("Minutes",!1);tn("s",["ss",2],0,"second");wa("second","s");Sa("second",15);jt("s",co);jt("ss",co,Ys);Nr(["s","ss"],pd);var Bit=dv("Seconds",!1);tn("S",0,0,function(){return~~(this.millisecond()/100)});tn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});tn(0,["SSS",3],0,"millisecond");tn(0,["SSSS",4],0,function(){return this.millisecond()*10});tn(0,["SSSSS",5],0,function(){return this.millisecond()*100});tn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});tn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});tn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});tn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});wa("millisecond","ms");Sa("millisecond",16);jt("S",pI,jae);jt("SS",pI,Ys);jt("SSS",pI,Wae);var Ff,wse;for(Ff="SSSS";Ff.length<=9;Ff+="S")jt(Ff,fv);function $it(e,t){t[Mh]=Nn(("0."+e)*1e3)}for(Ff="S";Ff.length<=9;Ff+="S")Nr(Ff,$it);wse=dv("Milliseconds",!1);tn("z",0,0,"zoneAbbr");tn("zz",0,0,"zoneName");function Lit(){return this._isUTC?"UTC":""}function Fit(){return this._isUTC?"Coordinated Universal Time":""}var St=ax.prototype;St.add=Pot;St.calendar=Lot;St.clone=Fot;St.diff=Hot;St.endOf=tit;St.format=Yot;St.from=Got;St.fromNow=Jot;St.to=Xot;St.toNow=Zot;St.get=Unt;St.invalidAt=cit;St.isAfter=Not;St.isBefore=Uot;St.isBetween=jot;St.isSame=Wot;St.isSameOrAfter=zot;St.isSameOrBefore=Vot;St.isValid=lit;St.lang=pse;St.locale=fse;St.localeData=hse;St.max=lot;St.min=sot;St.parsingFlags=uit;St.set=jnt;St.startOf=eit;St.subtract=Mot;St.toArray=iit;St.toObject=ait;St.toDate=oit;St.toISOString=Qot;St.inspect=Kot;typeof Symbol<"u"&&Symbol.for!=null&&(St[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});St.toJSON=sit;St.toString=qot;St.unix=rit;St.valueOf=nit;St.creationData=dit;St.eraName=git;St.eraNarrow=mit;St.eraAbbr=yit;St.eraYear=vit;St.year=Gae;St.isLeapYear=art;St.weekYear=_it;St.isoWeekYear=Eit;St.quarter=St.quarters=Oit;St.month=Kae;St.daysInMonth=rrt;St.week=St.weeks=frt;St.isoWeek=St.isoWeeks=prt;St.weeksInYear=Iit;St.weeksInWeekYear=Pit;St.isoWeeksInYear=Tit;St.isoWeeksInISOWeekYear=kit;St.date=bse;St.day=St.days=Ert;St.weekday=Trt;St.isoWeekday=krt;St.dayOfYear=Rit;St.hour=St.hours=Brt;St.minute=St.minutes=Dit;St.second=St.seconds=Bit;St.millisecond=St.milliseconds=wse;St.utcOffset=yot;St.utc=bot;St.local=wot;St.parseZone=Sot;St.hasAlignedHourOffset=xot;St.isDST=Cot;St.isLocal=_ot;St.isUtcOffset=Eot;St.isUtc=lse;St.isUTC=lse;St.zoneAbbr=Lit;St.zoneName=Fit;St.dates=zl("dates accessor is deprecated. Use date instead.",bse);St.months=zl("months accessor is deprecated. Use month instead",Kae);St.years=zl("years accessor is deprecated. Use year instead",Gae);St.zone=zl("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vot);St.isDSTShifted=zl("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Aot);function Nit(e){return lo(e*1e3)}function Uit(){return lo.apply(null,arguments).parseZone()}function Sse(e){return e}var fr=E$.prototype;fr.calendar=Ent;fr.longDateFormat=Pnt;fr.invalidDate=Ont;fr.ordinal=Bnt;fr.preparse=Sse;fr.postformat=Sse;fr.relativeTime=Lnt;fr.pastFuture=Fnt;fr.set=Ant;fr.eras=fit;fr.erasParse=pit;fr.erasConvertYear=hit;fr.erasAbbrRegex=wit;fr.erasNameRegex=bit;fr.erasNarrowRegex=Sit;fr.months=Znt;fr.monthsShort=ert;fr.monthsParse=nrt;fr.monthsRegex=irt;fr.monthsShortRegex=ort;fr.week=lrt;fr.firstDayOfYear=drt;fr.firstDayOfWeek=crt;fr.weekdays=Srt;fr.weekdaysMin=Crt;fr.weekdaysShort=xrt;fr.weekdaysParse=_rt;fr.weekdaysRegex=Irt;fr.weekdaysShortRegex=Prt;fr.weekdaysMinRegex=Mrt;fr.isPM=Rrt;fr.meridiem=$rt;function g_(e,t,n,r){var o=Gd(),i=Ic().set(r,t);return o[n](i,e)}function xse(e,t,n){if(Bd(e)&&(t=e,e=void 0),e=e||"",t!=null)return g_(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=g_(e,r,n,"month");return o}function W$(e,t,n,r){typeof e=="boolean"?(Bd(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,Bd(t)&&(n=t,t=void 0),t=t||"");var o=Gd(),i=e?o._week.dow:0,a,s=[];if(n!=null)return g_(t,(n+i)%7,r,"day");for(a=0;a<7;a++)s[a]=g_(t,(a+i)%7,r,"day");return s}function jit(e,t){return xse(e,t,"months")}function Wit(e,t){return xse(e,t,"monthsShort")}function zit(e,t,n){return W$(e,t,n,"weekdays")}function Vit(e,t,n){return W$(e,t,n,"weekdaysShort")}function Hit(e,t,n){return W$(e,t,n,"weekdaysMin")}rp("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Nn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Je.lang=zl("moment.lang is deprecated. Use moment.locale instead.",rp);Je.langData=zl("moment.langData is deprecated. Use moment.localeData instead.",Gd);var Xc=Math.abs;function qit(){var e=this._data;return this._milliseconds=Xc(this._milliseconds),this._days=Xc(this._days),this._months=Xc(this._months),e.milliseconds=Xc(e.milliseconds),e.seconds=Xc(e.seconds),e.minutes=Xc(e.minutes),e.hours=Xc(e.hours),e.months=Xc(e.months),e.years=Xc(e.years),this}function Cse(e,t,n,r){var o=Bu(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function Qit(e,t){return Cse(this,e,t,1)}function Kit(e,t){return Cse(this,e,t,-1)}function IV(e){return e<0?Math.floor(e):Math.ceil(e)}function Yit(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,s,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=IV(XR(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Sl(e/1e3),r.seconds=o%60,i=Sl(o/60),r.minutes=i%60,a=Sl(i/60),r.hours=a%24,t+=Sl(a/24),l=Sl(Ase(t)),n+=l,t-=IV(XR(l)),s=Sl(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function Ase(e){return e*4800/146097}function XR(e){return e*146097/4800}function Git(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Vl(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Ase(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(XR(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Jit(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Nn(this._months/12)*31536e6:NaN}function Jd(e){return function(){return this.as(e)}}var Xit=Jd("ms"),Zit=Jd("s"),eat=Jd("m"),tat=Jd("h"),nat=Jd("d"),rat=Jd("w"),oat=Jd("M"),iat=Jd("Q"),aat=Jd("y");function sat(){return Bu(this)}function lat(e){return e=Vl(e),this.isValid()?this[e+"s"]():NaN}function Yg(e){return function(){return this.isValid()?this._data[e]:NaN}}var uat=Yg("milliseconds"),cat=Yg("seconds"),dat=Yg("minutes"),fat=Yg("hours"),pat=Yg("days"),hat=Yg("months"),gat=Yg("years");function mat(){return Sl(this.days()/7)}var id=Math.round,a0={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yat(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function vat(e,t,n,r){var o=Bu(e).abs(),i=id(o.as("s")),a=id(o.as("m")),s=id(o.as("h")),l=id(o.as("d")),u=id(o.as("M")),c=id(o.as("w")),f=id(o.as("y")),p=i<=n.ss&&["s",i]||i0,p[4]=r,yat.apply(null,p)}function bat(e){return e===void 0?id:typeof e=="function"?(id=e,!0):!1}function wat(e,t){return a0[e]===void 0?!1:t===void 0?a0[e]:(a0[e]=t,e==="s"&&(a0.ss=t-1),!0)}function Sat(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=a0,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},a0,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=vat(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var ZP=Math.abs;function Lm(e){return(e>0)-(e<0)||+e}function SI(){if(!this.isValid())return this.localeData().invalidDate();var e=ZP(this._milliseconds)/1e3,t=ZP(this._days),n=ZP(this._months),r,o,i,a,s=this.asSeconds(),l,u,c,f;return s?(r=Sl(e/60),o=Sl(r/60),e%=60,r%=60,i=Sl(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",u=Lm(this._months)!==Lm(s)?"-":"",c=Lm(this._days)!==Lm(s)?"-":"",f=Lm(this._milliseconds)!==Lm(s)?"-":"",l+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var tr=bI.prototype;tr.isValid=pot;tr.abs=qit;tr.add=Qit;tr.subtract=Kit;tr.as=Git;tr.asMilliseconds=Xit;tr.asSeconds=Zit;tr.asMinutes=eat;tr.asHours=tat;tr.asDays=nat;tr.asWeeks=rat;tr.asMonths=oat;tr.asQuarters=iat;tr.asYears=aat;tr.valueOf=Jit;tr._bubble=Yit;tr.clone=sat;tr.get=lat;tr.milliseconds=uat;tr.seconds=cat;tr.minutes=dat;tr.hours=fat;tr.days=pat;tr.weeks=mat;tr.months=hat;tr.years=gat;tr.humanize=Sat;tr.toISOString=SI;tr.toString=SI;tr.toJSON=SI;tr.locale=fse;tr.localeData=hse;tr.toIsoString=zl("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",SI);tr.lang=pse;tn("X",0,0,"unix");tn("x",0,0,"valueOf");jt("x",gI);jt("X",znt);Nr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Nr("x",function(e,t,n){n._d=new Date(Nn(e))});//! moment.js +Je.version="2.29.4";xnt(lo);Je.fn=St;Je.min=uot;Je.max=cot;Je.now=dot;Je.utc=Ic;Je.unix=Nit;Je.months=jit;Je.isDate=ix;Je.locale=rp;Je.invalid=cI;Je.duration=Bu;Je.isMoment=vu;Je.weekdays=zit;Je.parseZone=Uit;Je.localeData=Gd;Je.isDuration=UC;Je.monthsShort=Wit;Je.weekdaysMin=Hit;Je.defineLocale=D$;Je.updateLocale=Urt;Je.locales=jrt;Je.weekdaysShort=Vit;Je.normalizeUnits=Vl;Je.relativeTimeRounding=bat;Je.relativeTimeThreshold=wat;Je.calendarFormat=$ot;Je.prototype=St;Je.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};var xat={normalDateWithWeekday:"ddd, MMM D",normalDate:"D MMMM",shortDate:"MMM D",monthAndDate:"MMMM D",dayOfMonth:"D",year:"YYYY",month:"MMMM",monthShort:"MMM",monthAndYear:"MMMM YYYY",weekday:"dddd",weekdayShort:"ddd",minutes:"mm",hours12h:"hh",hours24h:"HH",seconds:"ss",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDate:"ll",fullDateWithWeekday:"dddd, LL",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDate:"L",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Cat=function(){function e(t){var n=this,r=t===void 0?{}:t,o=r.locale,i=r.formats,a=r.instance;this.lib="moment",this.is12HourCycleInCurrentLocale=function(){return/A|a/.test(n.moment.localeData(n.getCurrentLocaleCode()).longDateFormat("LT"))},this.getFormatHelperText=function(s){var l=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return s.match(l).map(function(u){var c=u[0];return c==="L"||c===";"?n.moment.localeData(n.getCurrentLocaleCode()).longDateFormat(u):u}).join("").replace(/a/gi,"(a|p)m").toLocaleLowerCase()},this.getCurrentLocaleCode=function(){return n.locale||n.moment.locale()},this.parseISO=function(s){return n.moment(s,!0)},this.toISO=function(s){return s.toISOString()},this.parse=function(s,l){return s===""?null:n.locale?n.moment(s,l,n.locale,!0):n.moment(s,l,!0)},this.date=function(s){if(s===null)return null;var l=n.moment(s);return l.locale(n.locale),l},this.toJsDate=function(s){return s.toDate()},this.isValid=function(s){return n.moment(s).isValid()},this.isNull=function(s){return s===null},this.getDiff=function(s,l,u){return s.diff(l,u)},this.isAfter=function(s,l){return s.isAfter(l)},this.isBefore=function(s,l){return s.isBefore(l)},this.isAfterDay=function(s,l){return s.isAfter(l,"day")},this.isBeforeDay=function(s,l){return s.isBefore(l,"day")},this.isBeforeYear=function(s,l){return s.isBefore(l,"year")},this.isAfterYear=function(s,l){return s.isAfter(l,"year")},this.startOfDay=function(s){return s.clone().startOf("day")},this.endOfDay=function(s){return s.clone().endOf("day")},this.format=function(s,l){return n.formatByString(s,n.formats[l])},this.formatByString=function(s,l){var u=s.clone();return u.locale(n.locale),u.format(l)},this.formatNumber=function(s){return s},this.getHours=function(s){return s.get("hours")},this.addSeconds=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"seconds"):s.clone().add(l,"seconds")},this.addMinutes=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"minutes"):s.clone().add(l,"minutes")},this.addHours=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"hours"):s.clone().add(l,"hours")},this.addDays=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"days"):s.clone().add(l,"days")},this.addWeeks=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"weeks"):s.clone().add(l,"weeks")},this.addMonths=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"months"):s.clone().add(l,"months")},this.addYears=function(s,l){return l<0?s.clone().subtract(Math.abs(l),"years"):s.clone().add(l,"years")},this.setHours=function(s,l){return s.clone().hours(l)},this.getMinutes=function(s){return s.get("minutes")},this.setMinutes=function(s,l){return s.clone().minutes(l)},this.getSeconds=function(s){return s.get("seconds")},this.setSeconds=function(s,l){return s.clone().seconds(l)},this.getMonth=function(s){return s.get("month")},this.getDaysInMonth=function(s){return s.daysInMonth()},this.isSameDay=function(s,l){return s.isSame(l,"day")},this.isSameMonth=function(s,l){return s.isSame(l,"month")},this.isSameYear=function(s,l){return s.isSame(l,"year")},this.isSameHour=function(s,l){return s.isSame(l,"hour")},this.setMonth=function(s,l){return s.clone().month(l)},this.getMeridiemText=function(s){return n.is12HourCycleInCurrentLocale()?n.moment.localeData(n.getCurrentLocaleCode()).meridiem(s==="am"?0:13,0,!1):s==="am"?"AM":"PM"},this.startOfYear=function(s){return s.clone().startOf("year")},this.endOfYear=function(s){return s.clone().endOf("year")},this.startOfMonth=function(s){return s.clone().startOf("month")},this.endOfMonth=function(s){return s.clone().endOf("month")},this.startOfWeek=function(s){return s.clone().startOf("week")},this.endOfWeek=function(s){return s.clone().endOf("week")},this.getNextMonth=function(s){return s.clone().add(1,"month")},this.getPreviousMonth=function(s){return s.clone().subtract(1,"month")},this.getMonthArray=function(s){for(var l=s.clone().startOf("year"),u=[l];u.length<12;){var c=u[u.length-1];u.push(n.getNextMonth(c))}return u},this.getYear=function(s){return s.get("year")},this.setYear=function(s,l){return s.clone().set("year",l)},this.getDate=function(s){return s.get("date")},this.setDate=function(s,l){return s.clone().set("date",l)},this.mergeDateAndTime=function(s,l){return s.hour(l.hour()).minute(l.minute()).second(l.second())},this.getWeekdays=function(){return n.moment.weekdaysShort(!0)},this.isEqual=function(s,l){return s===null&&l===null?!0:n.moment(s).isSame(l)},this.getWeekArray=function(s){for(var l=s.clone().startOf("month").startOf("week"),u=s.clone().endOf("month").endOf("week"),c=0,f=l,p=[];f.isBefore(u);){var g=Math.floor(c/7);p[g]=p[g]||[],p[g].push(f),f=f.clone().add(1,"day"),c+=1}return p},this.getYearRange=function(s,l){for(var u=n.moment(s).startOf("year"),c=n.moment(l).endOf("year"),f=[],p=u;p.isBefore(c);)f.push(p),p=p.clone().add(1,"year");return f},this.isWithinRange=function(s,l){var u=l[0],c=l[1];return s.isBetween(u,c,null,"[]")},this.moment=a||Je,this.locale=o,this.formats=Object.assign({},xat,i)}return e}();const Aat={Y:"year",YY:"year",YYYY:"year",M:"month",MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:"day",DD:"day",Do:"day",E:"weekDay",e:"weekDay",d:"weekDay",dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:"hours",HH:"hours",h:"hours",hh:"hours",k:"hours",kk:"hours",m:"minutes",mm:"minutes",s:"seconds",ss:"seconds"};class _at extends Cat{constructor(...t){super(...t),this.isMUIAdapter=!0,this.formatTokenMap=Aat,this.escapedCharacters={start:"[",end:"]"},this.expandFormat=n=>{const r=/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g;return n.match(r).map(o=>{const i=o[0];return i==="L"||i===";"?Je.localeData(this.getCurrentLocaleCode()).longDateFormat(o):o}).join("")},this.getCurrentLocaleCode=()=>this.locale||Je.locale(),this.getFormatHelperText=n=>this.expandFormat(n).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.getWeekNumber=n=>n.week(),this.getWeekdays=()=>Je.weekdaysShort(!0),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(Je.localeData(this.getCurrentLocaleCode()).longDateFormat("LT"))}}const Eat=["localeText"],ZR=M.createContext(null);function z$(e){var t;const{localeText:n}=e,r=lt(e,Eat),{utils:o,localeText:i}=(t=M.useContext(ZR))!=null?t:{utils:void 0,localeText:void 0},a=Bt({props:r,name:"MuiLocalizationProvider"}),{children:s,dateAdapter:l,dateFormats:u,dateLibInstance:c,adapterLocale:f,localeText:p}=a,g=M.useMemo(()=>Q({},p,i,n),[p,i,n]),m=M.useMemo(()=>{if(!l)return o||null;const x=new l({locale:f,formats:u,instance:c});if(!x.isMUIAdapter)throw new Error(["MUI: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(` +`));return x},[l,f,u,c,o]),y=M.useMemo(()=>m?{minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}:null,[m]),v=M.useMemo(()=>({utils:m,defaultDates:y,localeText:g}),[y,m,g]);return A(ZR.Provider,{value:v,children:s})}const Sb=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a})=>{const s=a.startOfDay(a.date());n&&a.isBefore(o,s)&&(o=s),t&&a.isAfter(r,s)&&(r=s);let l=e,u=e;for(a.isBefore(e,o)&&(l=o,u=null),a.isAfter(e,r)&&(u&&(u=r),l=null);l||u;){if(l&&a.isAfter(l,r)&&(l=null),u&&a.isBefore(u,o)&&(u=null),l){if(!i(l))return l;l=a.addDays(l,1)}if(u){if(!i(u))return u;u=a.addDays(u,-1)}}return null},Tat=(e,t,n,r)=>e.isBefore(t,n)?n:e.isAfter(t,r)?r:t,kat=(e,t)=>t==null||!e.isValid(t)?null:t,Ll=(e,t,n)=>t==null||!e.isValid(t)?n:t,Iat=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),_se=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI: The token "${t}" is not supported by the Date and Time Pickers.`,"Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported."].join(` +`));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit"}:{type:n.sectionType,contentType:n.contentType}},Pat=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},xI=(e,t)=>{const n=[],r=e.date(),o=e.startOfWeek(r),i=e.endOfWeek(r);let a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(s=>e.formatByString(s,t))},Ese=(e,t,n)=>{switch(t){case"month":return e.getMonthArray(e.date()).map(r=>e.formatByString(r,n));case"weekDay":return xI(e,n);case"meridiem":{const r=e.date();return[e.startOfDay(r),e.endOfDay(r)].map(o=>e.formatByString(o,n))}default:return[]}},V$=(e,t,n,r,o,i)=>{if(n==="day"&&(()=>{const l=e.startOfYear(e.date()),u=e.formatByString(l,r);return Number.isNaN(Number(u))})()){const l=e.setDate(i.longestMonth,t);return e.formatByString(l,r)}const s=t.toString();if(o){const l=e.formatByString(e.date(),r).length;let u=s;for(u=Number(u).toString();u.length{const i=Pat(n),a=n==="Home",s=n==="End",l=t.value===""||a||s,u=()=>{const f=r[t.type]({currentDate:o,format:t.format,contentType:t.contentType}),p=y=>V$(e,y,t.type,t.format,t.hasLeadingZeros,f);if(l)return t.type==="year"&&!s&&!a?e.formatByString(e.date(),t.format):i>0||a?p(f.minimum):p(f.maximum);const m=parseInt(t.value,10)+i;return m>f.maximum?p(f.minimum):m{const f=Ese(e,t.type,t.format);if(f.length===0)return t.value;if(l)return i>0||a?f[0]:f[f.length-1];const g=(f.indexOf(t.value)+f.length+i)%f.length;return f[g]};return t.contentType==="digit"?u():c()},H$=(e,t)=>{let n=e.value||e.placeholder;return["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!e.hasLeadingZeros&&n.length===1&&(n=`${n}‎`),t==="input-rtl"&&(n=`⁨${n}⁩`),n},xb=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Tse=(e,t)=>{let n=0,r=t?1:0;const o=[];for(let i=0;i{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(),r).length});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType});case"day":return t.fieldDayPlaceholder();case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType});case"hours":return t.fieldHoursPlaceholder();case"minutes":return t.fieldMinutesPlaceholder();case"seconds":return t.fieldSecondsPlaceholder();case"meridiem":return t.fieldMeridiemPlaceholder();default:return r}},PV=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),kse=(e,t)=>e.formatByString(e.date(),t).length===4,Ise=(e,t,n,r)=>{if(t!=="digit")return!1;switch(n){case"year":return kse(e,r)?e.formatByString(e.setYear(e.date(),1),r)==="0001":e.formatByString(e.setYear(e.date(),2001),r)==="01";case"month":return e.formatByString(e.startOfYear(e.date()),r).length>1;case"day":return e.formatByString(e.startOfMonth(e.date()),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(e.date()),r).length>1;case"hours":return e.formatByString(e.setHours(e.date(),1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(e.date(),1),r).length>1;case"seconds":return e.formatByString(e.setMinutes(e.date(),1),r).length>1;default:throw new Error("Invalid section type")}},Rat=(e,t)=>{const n=[],{start:r,end:o}=e.escapedCharacters,i=new RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g");let a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n},MV=(e,t,n,r,o)=>{let i="";const a=[],s=y=>{if(y==="")return null;const v=_se(e,y),x=r==null||!e.isValid(r)?"":e.formatByString(r,y),w=Ise(e,v.contentType,v.type,y);return a.push(Q({},v,{format:y,value:x,placeholder:Oat(e,t,v,y),hasLeadingZeros:w,startSeparator:a.length===0?i:"",endSeparator:"",modified:!1})),null};let l=10,u=n,c=e.expandFormat(n);for(;c!==u;)if(u=c,c=e.expandFormat(u),l-=1,l<0)throw new Error("MUI: The format expansion seems to be enter in an infinite loop. Please open an issue with the format passed to the picker component");const f=c,p=Rat(e,f),g=new RegExp(`^(${Object.keys(e.formatTokenMap).join("|")})`);let m="";for(let y=0;y_.start<=y&&_.end>=y),x=f[y],w=v!=null,I=`${m}${f.slice(y)}`;!w&&x.match(/([A-Za-z]+)/)&&g.test(I)?m+=x:w&&(v==null?void 0:v.start)===y||(v==null?void 0:v.end)===y||(s(m),m="",a.length===0?i+=x:a[a.length-1].endSeparator+=x)}return s(m),a.map(y=>{const v=x=>{let w=x;return w!==null&&w.includes(" ")&&(w=`⁩${w}⁦`),o==="spacious"&&["/",".","-"].includes(w)&&(w=` ${w} `),w};return y.startSeparator=v(y.startSeparator),y.endSeparator=v(y.endSeparator),y})},e5=(e,t)=>{const n=t.some(s=>s.type==="day"),r=[],o=[];for(let s=0;s{const r=e.map(o=>`${o.startSeparator}${H$(o,t?"input-rtl":"input-ltr")}${o.endSeparator}`).join("");return t?`⁦${r}⁩`:r},Bat=e=>{const t=e.date(),n=e.endOfYear(t),{maxDaysInMonth:r,longestMonth:o}=e.getMonthArray(t).reduce((i,a)=>{const s=e.getDaysInMonth(a);return s>i.maxDaysInMonth?{maxDaysInMonth:s,longestMonth:a}:i},{maxDaysInMonth:0,longestMonth:null});return{year:({format:i})=>({minimum:0,maximum:kse(e,i)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(n)+1}),day:({currentDate:i})=>({minimum:1,maximum:i!=null&&e.isValid(i)?e.getDaysInMonth(i):r,longestMonth:o}),weekDay:({format:i,contentType:a})=>{if(a==="digit"){const s=xI(e,i).map(Number);return{minimum:Math.min(...s),maximum:Math.max(...s)}}return{minimum:1,maximum:7}},hours:({format:i})=>{const a=e.getHours(n);return e.formatByString(e.endOfDay(t),i)!==a.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(t),i))}:{minimum:0,maximum:a}},minutes:()=>({minimum:0,maximum:e.getMinutes(n)}),seconds:()=>({minimum:0,maximum:e.getSeconds(n)}),meridiem:()=>({minimum:0,maximum:0})}},$at=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const o=xI(e,t.format),i=e.formatByString(n,t.format),a=o.indexOf(i),l=o.indexOf(t.value)-a;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const o=e.getHours(n)<12,i=e.getHours(r);return o&&i>=12?e.addHours(r,-12):!o&&i<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},OV={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},RV=(e,t,n,r,o)=>[...n].sort((i,a)=>OV[i.type]-OV[a.type]).reduce((i,a)=>!o||a.modified?$at(e,a,t,i):i,r),Lat=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,Fat=(e,t,n)=>{if(!(t.every(a=>a.type==="weekDay"||a.value!=="")&&t.some(a=>a.type==="day")))return null;const o=t.map(a=>{if(a.type!=="day")return a;const s=n.day({currentDate:null,format:a.format,contentType:a.contentType});return Q({},a,{value:V$(e,s.minimum,a.type,a.format,a.hasLeadingZeros,s)})}),i=e5(e,o);return i==null||!e.isValid(i)?null:t.map(a=>{if(a.type!=="day")return a;const s=n.day({currentDate:i,format:a.format,contentType:a.contentType});return Number(a.value)<=s.maximum?a:Q({},a,{value:s.maximum.toString()})})},Nat=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},o={};let i=0,a=0,s=e.length-1;for(;s>=0;){a=e.findIndex((l,u)=>{var c;return u>=i&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),a===-1&&(a=e.length-1);for(let l=a;l>=i;l-=1)o[l]=s,r[s]=l,s-=1;i=a+1}return e.forEach((l,u)=>{const c=o[u],f=c===0?null:r[c-1],p=c===e.length-1?null:r[c+1];n[u]={leftIndex:f,rightIndex:p}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},q$={emptyValue:null,getTodayValue:(e,t)=>t==="date"?e.startOfDay(e.date()):e.date(),cleanValue:kat,areValuesEqual:Iat,isSameError:(e,t)=>e===t,hasError:e=>e!=null,defaultErrorState:null},Uat={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,o)=>!e.isValid(t)&&!!n?n:Tse(o(t),r),getValueStrFromSections:Dat,getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:n=>n,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:n==null||!e.isValid(n)?t.referenceValue:n})}),parseValueStr:(e,t,n)=>n(e.trim(),t)};var P1={},DV;function Pse(){if(DV)return P1;DV=1,Object.defineProperty(P1,"__esModule",{value:!0}),P1.default=void 0;var e=n(M);function t(i){if(typeof WeakMap!="function")return null;var a=new WeakMap,s=new WeakMap;return(t=function(l){return l?s:a})(i)}function n(i,a){if(!a&&i&&i.__esModule)return i;if(i===null||typeof i!="object"&&typeof i!="function")return{default:i};var s=t(a);if(s&&s.has(i))return s.get(i);var l={},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var c in i)if(c!=="default"&&Object.prototype.hasOwnProperty.call(i,c)){var f=u?Object.getOwnPropertyDescriptor(i,c):null;f&&(f.get||f.set)?Object.defineProperty(l,c,f):l[c]=i[c]}return l.default=i,s&&s.set(i,l),l}var o=typeof window<"u"?e.useLayoutEffect:e.useEffect;return P1.default=o,P1}var jat=Pse();const t5=Hw(jat);var Mse={},m_={},Wat={get exports(){return m_},set exports(e){m_=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Wat);var zat=m_;Object.defineProperty(Mse,"__esModule",{value:!0});var yr=Mse.default=qat,BV=Hat(M),Vat=zat(Pse());function Ose(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Ose=function(r){return r?n:t})(e)}function Hat(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Ose(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function qat(e){const t=BV.useRef(e);return(0,Vat.default)(()=>{t.current=e}),BV.useCallback((...n)=>(0,t.current)(...n),[])}var Rse={},H2={},$V;function Qat(){if($V)return H2;$V=1,Object.defineProperty(H2,"__esModule",{value:!0}),H2.default=e;function e(t,n){typeof t=="function"?t(n):t&&(t.current=n)}return H2}var Kat=m_;Object.defineProperty(Rse,"__esModule",{value:!0});var Q$=Rse.default=Xat,Yat=Jat(M),Gat=Kat(Qat());function Dse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Dse=function(r){return r?n:t})(e)}function Jat(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Dse(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Xat(...e){return Yat.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{(0,Gat.default)(n,t)})},e)}const Zat=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:Q({},e)}}}}),Bse={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:e=>e==="year"?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n)=>`Select ${e}. ${t===null?"No time selected":`Selected time is ${n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose date, selected date is ${t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t)=>e!==null&&t.isValid(e)?`Choose time, selected time is ${t.format(e,"fullTime")}`:"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>e.contentType==="letter"?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>e.contentType==="letter"?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa"},est=Bse;Zat(Bse);const Gg=()=>{const e=M.useContext(ZR);if(e===null)throw new Error(["MUI: Can not find the date and time pickers localization context.","It looks like you forgot to wrap your component in LocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package"].join(` `));if(e.utils===null)throw new Error(["MUI: Can not find the date and time pickers adapter from its localization context.","It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider."].join(` -`));const t=M.useMemo(()=>Q({},Lat,e.localeText),[e.localeText]);return M.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Gr=()=>Gg().utils,u2=()=>Gg().defaultDates,Mc=()=>Gg().localeText,pv=()=>{const e=Gr();return M.useRef(e.date()).current};function Lse(e,t,n,r){const{value:o,onError:i}=e,a=Gg(),s=M.useRef(r),l=t({adapter:a,value:o,props:e});return M.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}var Fse={};Object.defineProperty(Fse,"__esModule",{value:!0});var Fat=Fse.default=Uat,ZP=Nat(M);function Nse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Nse=function(r){return r?n:t})(e)}function Nat(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Nse(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function Uat({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=ZP.useRef(e!==void 0),[i,a]=ZP.useState(t),s=o?e:i,l=ZP.useCallback(u=>{o||a(u)},[]);return[s,l]}const jat=e=>{var t;const n=Gr(),r=Mc(),o=Gg(),a=Fo().direction==="rtl",{valueManager:s,fieldValueManager:l,valueType:u,validator:c,internalProps:f,internalProps:{value:p,defaultValue:g,onChange:m,format:y,formatDensity:v="dense",selectedSections:x,onSelectedSectionsChange:w}}=e,I=M.useRef(g),_=(t=p??I.current)!=null?t:s.emptyValue,R=M.useMemo(()=>vat(n),[n]),U=M.useCallback((le,fe=null)=>l.getSectionsFromValue(n,le,fe,a,Ee=>MV(n,r,y,Ee,v)),[l,y,r,a,n,v]),D=M.useMemo(()=>l.getValueStrFromSections(U(s.emptyValue),a),[l,U,s.emptyValue,a]),[b,T]=M.useState(()=>({sections:U(_),value:_,referenceValue:l.updateReferenceValue(n,_,s.getTodayValue(n,u)),tempValueStrAndroid:null})),[C,O]=Fat({controlled:x,default:null,name:"useField",state:"selectedSectionIndexes"}),$=le=>{O(le),w==null||w(le),T(fe=>Q({},fe,{selectedSectionQuery:null}))},j=M.useMemo(()=>{if(C==null)return null;if(C==="all")return{startIndex:0,endIndex:b.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof C=="number")return{startIndex:C,endIndex:C};if(typeof C=="string"){const le=b.sections.findIndex(fe=>fe.type===C);return{startIndex:le,endIndex:le}}return C},[C,b.sections]),L=({value:le,referenceValue:fe,sections:Ee})=>{if(T(Ae=>Q({},Ae,{sections:Ee,value:le,referenceValue:fe,tempValueStrAndroid:null})),m){const Ae={validationError:c({adapter:o,value:le,props:Q({},f,{value:le})})};m(le,Ae)}},B=(le,fe)=>{const Ee=[...b.sections];return Ee[le]=Q({},Ee[le],{value:fe,modified:!0}),kse(Ee,a)},H=()=>{s.areValuesEqual(n,b.value,s.emptyValue)||L({value:s.emptyValue,referenceValue:b.referenceValue,sections:U(s.emptyValue)})},q=()=>{if(j==null)return;const le=b.sections[j.startIndex];if(le.value==="")return;const fe=l.getActiveDateManager(n,b,le),Ae=fe.getSections(b.sections).filter(ce=>ce.value!=="").length===1,Ie=B(j.startIndex,""),De=Ae?null:n.date(new Date("")),Ue=fe.getNewValuesFromNewActiveDate(De);(De!=null&&!n.isValid(De))!=(fe.date!=null&&!n.isValid(fe.date))?L(Q({},Ue,{sections:Ie})):T(ce=>Q({},ce,Ue,{sections:Ie,tempValueStrAndroid:null}))},Y=le=>{const fe=(Ie,De)=>{const Ue=n.parse(Ie,y);if(Ue==null||!n.isValid(Ue))return null;const ce=MV(n,r,y,Ue,v);return RV(n,Ue,ce,De,!1)},Ee=l.parseValueStr(le,b.referenceValue,fe),Ae=l.updateReferenceValue(n,Ee,b.referenceValue);L({value:Ee,referenceValue:Ae,sections:U(Ee,b.sections)})},W=({activeSection:le,newSectionValue:fe,shouldGoToNextSection:Ee})=>{Ee&&j&&j.startIndexQ({},pe,de,{sections:he,tempValueStrAndroid:null}))},ie=le=>T(fe=>Q({},fe,{tempValueStrAndroid:le}));return M.useEffect(()=>{s.areValuesEqual(n,b.value,_)||T(le=>Q({},le,{value:_,referenceValue:l.updateReferenceValue(n,_,le.referenceValue),sections:U(_)}))},[_]),M.useEffect(()=>{const le=U(b.value);T(fe=>Q({},fe,{sections:le}))},[y,n.locale]),{state:b,selectedSectionIndexes:j,setSelectedSections:$,clearValue:H,clearActiveSection:q,updateSectionValue:W,updateValueFromValueStr:Y,setTempAndroidValueStr:ie,sectionsValueBoundaries:R,placeholder:D}},Wat=5e3,Fm=e=>e.saveQuery!=null,zat=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r})=>{const o=Gr(),[i,a]=M.useState(null),s=yr(()=>a(null));M.useEffect(()=>{var p;i!=null&&((p=e[i.sectionIndex])==null?void 0:p.type)!==i.sectionType&&s()},[e,i,s]),M.useEffect(()=>{if(i!=null){const p=setTimeout(()=>s(),Wat);return()=>{window.clearTimeout(p)}}return()=>{}},[i,s]);const l=({keyPressed:p,sectionIndex:g},m,y)=>{const v=p.toLowerCase(),x=e[g];if(i!=null&&(!y||y(i.value))&&i.sectionIndex===g){const I=`${i.value}${v}`,_=m(I,x);if(!Fm(_))return a({sectionIndex:g,value:I,sectionType:x.type}),_}const w=m(v,x);return Fm(w)&&!w.saveQuery?(s(),null):(a({sectionIndex:g,value:v,sectionType:x.type}),Fm(w)?null:w)},u=p=>{const g=(v,x,w)=>{const I=x.filter(_=>_.toLowerCase().startsWith(w));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},m=(v,x,w,I)=>{const _=R=>Tse(o,x.type,R);if(x.contentType==="letter")return g(x.format,_(x.format),v);if(w&&I!=null&&Ese(o,w).contentType==="letter"){const R=_(w),U=g(w,R,v);return Fm(U)?{saveQuery:!1}:Q({},U,{sectionValue:I(U.sectionValue,R)})}return{saveQuery:!1}};return l(p,(v,x)=>{switch(x.type){case"month":{const w=I=>PV(o,I,o.formats.month,x.format);return m(v,x,o.formats.month,w)}case"weekDay":{const w=(I,_)=>_.indexOf(I).toString();return m(v,x,o.formats.weekday,w)}case"meridiem":return m(v,x);default:return{saveQuery:!1}}})},c=p=>{const g=(y,v,x,w,I)=>{const _=+`${y}`,R=n[v]({currentDate:null,format:x,contentType:I});if(_>R.maximum)return{saveQuery:!1};if(_R.maximum||y.length===R.maximum.toString().length;return{sectionValue:V$(o,_,v,x,w,R),shouldGoToNextSection:U}};return l(p,(y,v)=>{if(v.contentType==="digit")return g(y,v.type,v.format,v.hasLeadingZeros,v.contentType);if(v.type==="month"){const x=g(y,v.type,"MM",Pse(o,"digit","month","MM"),"digit");if(Fm(x))return x;const w=PV(o,x.sectionValue,"MM",v.format);return Q({},x,{sectionValue:w})}if(v.type==="weekDay"){const x=g(y,v.type,v.format,v.hasLeadingZeros,v.contentType);if(Fm(x))return x;const w=SI(o,v.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:w})}return{saveQuery:!1}},y=>!Number.isNaN(Number(y)))};return{applyCharacterEditing:yr(p=>{const g=e[p.sectionIndex],y=!Number.isNaN(Number(p.keyPressed))?c(p):u(p);y==null?r(null):t({activeSection:g,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})}),resetCharacterQuery:s}};function Vat(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const Hat=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},K$=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?K$(t.shadowRoot):t:null},qat="@media (pointer: fine)",Qat=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],Kat=e=>{const t=Gr(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f}=jat(e),{applyCharacterEditing:p,resetCharacterQuery:g}=zat({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u}),{inputRef:m,internalProps:y,internalProps:{readOnly:v=!1,unstableFieldRef:x},forwardedProps:{onClick:w,onKeyDown:I,onFocus:_,onBlur:R,onMouseUp:U,onPaste:D,error:b},fieldValueManager:T,valueManager:C,validator:O}=e,$=lt(e.forwardedProps,Qat),j=M.useRef(null),L=Q$(m,j),B=M.useRef(void 0),q=Fo().direction==="rtl",Y=M.useMemo(()=>xat(n.sections,q),[n.sections,q]),W=()=>{var ge;if(v){o(null);return}const Ce=(ge=j.current.selectionStart)!=null?ge:0,_e=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ce),Ne=_e===-1?n.sections.length-1:_e-1;o(Ne)},ie=yr((...ge)=>{w==null||w(...ge),W()}),le=yr(ge=>{U==null||U(ge),ge.preventDefault()}),fe=yr((...ge)=>{_==null||_(...ge);const Ce=j.current;clearTimeout(B.current),B.current=setTimeout(()=>{!Ce||Ce!==j.current||r!=null||v||(Ce.value.length&&Number(Ce.selectionEnd)-Number(Ce.selectionStart)===Ce.value.length?o("all"):W())})}),Ee=yr((...ge)=>{R==null||R(...ge),o(null)}),Ae=yr(ge=>{if(D==null||D(ge),v){ge.preventDefault();return}const Ce=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const _e=n.sections[r.startIndex],Ne=/^[a-zA-Z]+$/.test(Ce),Be=/^[0-9]+$/.test(Ce);if(_e.contentType==="letter"&&Ne||_e.contentType==="digit"&&Be)return;if(Ne||Be){ge.preventDefault();return}}ge.preventDefault(),l(Ce)}),Ie=yr(ge=>{if(v)return;const Ce=ge.target.value,_e=xb(Ce);if(r==null){l(_e);return}let Ne;if(r.startIndex===0&&r.endIndex===n.sections.length-1)Ne=_e;else{const Be=xb(T.getValueStrFromSections(n.sections,q));let Ve=-1,wt=-1;for(let Ge=0;Gexe.end)return;const We=_e.length-Be.length+xe.end-xb(xe.endSeparator||"").length;Ne=_e.slice(xe.start,We)}if(wat()&&Ne.length===0){u(Ce);return}p({keyPressed:Ne,sectionIndex:r.startIndex})}),De=yr(ge=>{switch(I==null||I(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(Y.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const Ce=Y.neighbors[r.startIndex].rightIndex;Ce!==null&&o(Ce)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(Y.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const Ce=Y.neighbors[r.startIndex].leftIndex;Ce!==null&&o(Ce)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():a(),g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const Ce=n.sections[r.startIndex],_e=T.getActiveDateManager(t,n,Ce),Ne=hat(t,Ce,ge.key,c,_e.date);s({activeSection:Ce,newSectionValue:Ne,shouldGoToNextSection:!1});break}}});e5(()=>{if(r==null){j.current.scrollLeft&&(j.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],Ce=n.sections[r.endIndex];let _e=ge.startInInput,Ne=Ce.endInInput;if(r.shouldSelectBoundarySelectors&&(_e-=ge.startSeparator.length,Ne+=Ce.endSeparator.length),_e!==j.current.selectionStart||Ne!==j.current.selectionEnd){const Be=j.current.scrollTop;j.current.setSelectionRange(_e,Ne),j.current.scrollTop=Be}});const Ue=Lse(Q({},y,{value:n.value}),O,C.isSameError,C.defaultErrorState),ce=M.useMemo(()=>b!==void 0?b:C.hasError(Ue),[C,Ue,b]);M.useEffect(()=>(j.current&&j.current===document.activeElement&&o("all"),()=>window.clearTimeout(B.current)),[]),M.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(g(),a())},[n.tempValueStrAndroid]);const de=M.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:T.getValueStrFromSections(n.sections,q)},[n.sections,T,n.tempValueStrAndroid,q]),ve=M.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"tel",[r,n.sections]),pe=!(j.current&&j.current===K$(document))&&C.areValuesEqual(t,n.value,C.emptyValue);return M.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,Ce;const _e=(ge=j.current.selectionStart)!=null?ge:0,Ne=(Ce=j.current.selectionEnd)!=null?Ce:0;if(_e===0&&Ne===0)return null;const Be=_e<=n.sections[0].startInInput?1:n.sections.findIndex(Ve=>Ve.startInInput-Ve.startSeparator.length>_e);return Be===-1?n.sections.length-1:Be-1},setSelectedSections:ge=>o(ge)})),Q({placeholder:f,autoComplete:"off"},$,{value:pe?"":de,inputMode:ve,readOnly:v,onClick:ie,onFocus:fe,onBlur:Ee,onPaste:Ae,onChange:Ie,onKeyDown:De,onMouseUp:le,error:ce,ref:L})},Use=({props:e,value:t,adapter:n})=>{if(t===null)return null;const r=n.utils.date(),o=Ll(n.utils,e.minDate,n.defaultDates.minDate),i=Ll(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(t)):return"shouldDisableDate";case!!(e.shouldDisableMonth&&e.shouldDisableMonth(t)):return"shouldDisableMonth";case!!(e.shouldDisableYear&&e.shouldDisableYear(t)):return"shouldDisableYear";case!!(e.disableFuture&&n.utils.isAfterDay(t,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(t,r)):return"disablePast";case!!(o&&n.utils.isBeforeDay(t,o)):return"minDate";case!!(i&&n.utils.isAfterDay(t,i)):return"maxDate";default:return null}},jse=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a})=>{const s=Gg();return M.useCallback(l=>Use({adapter:s,value:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[s,e,t,n,r,o,i,a])},Yat=e=>["hours","minutes","seconds"].includes(e),Gat=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,t5=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Jat=(e,t,n,r)=>{const o=t5(r.getHours(e),t,n);return r.setHours(e,o)},LV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),Wse=(e,t)=>(n,r)=>e?t.isAfter(n,r):LV(n,t)>LV(r,t),Xat=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:o,minutesStep:i,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=n,f=e.utils.date(),p=e.utils.date(t),g=Wse(l,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&g(r,t)):return"minTime";case!!(o&&g(t,o)):return"maxTime";case!!(c&&e.utils.isAfter(p,f)):return"disableFuture";case!!(u&&e.utils.isBefore(p,f)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(i&&e.utils.getMinutes(t)%i!==0):return"minutesStep";default:return null}},Y$=({props:e,value:t,adapter:n})=>{const r=Use({adapter:n,value:t,props:e});return r!==null?r:Xat({adapter:n,value:t,props:e})},Zat=["value","defaultValue","format","formatDensity","onChange","readOnly","onError","shouldDisableDate","shouldDisableMonth","shouldDisableYear","minDate","maxDate","disableFuture","disablePast","minTime","maxTime","minDateTime","maxDateTime","minutesStep","disableIgnoringDatePartForTimeValidation","shouldDisableClock","shouldDisableTime","selectedSections","onSelectedSectionsChange","ampm","unstableFieldRef"],est=e=>{var t,n,r,o,i,a,s,l;const u=Gr(),c=u2(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return Q({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Ll(u,(i=e.minDateTime)!=null?i:e.minDate,c.minDate),maxDate:Ll(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},tst=({props:e,inputRef:t})=>{const n=est(e),{value:r,defaultValue:o,format:i,formatDensity:a,onChange:s,readOnly:l,onError:u,shouldDisableDate:c,shouldDisableMonth:f,shouldDisableYear:p,minDate:g,maxDate:m,disableFuture:y,disablePast:v,minTime:x,maxTime:w,minutesStep:I,disableIgnoringDatePartForTimeValidation:_,shouldDisableClock:R,shouldDisableTime:U,selectedSections:D,onSelectedSectionsChange:b,ampm:T,unstableFieldRef:C}=n,O=lt(n,Zat);return Kat({inputRef:t,forwardedProps:O,internalProps:{value:r,defaultValue:o,format:i,formatDensity:a,onChange:s,readOnly:l,onError:u,shouldDisableDate:c,shouldDisableMonth:f,shouldDisableYear:p,minDate:g,maxDate:m,disableFuture:y,disablePast:v,minTime:x,maxTime:w,minutesStep:I,shouldDisableClock:R,shouldDisableTime:U,disableIgnoringDatePartForTimeValidation:_,selectedSections:D,onSelectedSectionsChange:b,ampm:T,unstableFieldRef:C},valueManager:q$,fieldValueManager:Cat,validator:Y$,valueType:"date-time"})},nst=["components","componentsProps","slots","slotProps","InputProps","inputProps"],rst=["inputRef"],ost=["ref","onPaste","inputMode","readOnly"],zse=M.forwardRef(function(t,n){var r,o,i;const a=Bt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:p}=a,g=lt(a,nst),m=a,y=(r=(o=u==null?void 0:u.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:OD,v=vo({elementType:y,externalSlotProps:(i=c==null?void 0:c.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:m}),{inputRef:x}=v,w=lt(v,rst);w.inputProps=Q({},w.inputProps,p),w.InputProps=Q({},w.InputProps,f);const I=tst({props:w,inputRef:x}),{ref:_,onPaste:R,inputMode:U,readOnly:D}=I,b=lt(I,ost);return A(y,Q({ref:n},b,{inputProps:Q({},b.inputProps,{ref:_,onPaste:R,inputMode:U,readOnly:D})}))}),ist=Yo(A("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ast=Yo(A("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),sst=Yo(A("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),lst=Yo(A("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Yo(Se(M.Fragment,{children:[A("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),A("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const ust=Yo(A("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),cst=Yo(Se(M.Fragment,{children:[A("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),A("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function dst(e){return Vt("MuiDateTimePickerTabs",e)}Rt("MuiDateTimePickerTabs",["root"]);const fst=e=>["day","month","year"].includes(e)?"date":"time",pst=e=>e==="date"?"day":"hours",hst=e=>{const{classes:t}=e;return Ut({root:["root"]},dst,t)},gst=J(nJ,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${kC.indicator}`]:{bottom:"auto",top:0}}})),mst=function(t){const n=Bt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=A(ust,{}),onViewChange:o,timeIcon:i=A(cst,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Mc(),u=hst(n),c=(f,p)=>{o(pst(p))};return s?null:Se(gst,{ownerState:n,variant:"fullWidth",value:fst(a),onChange:c,className:u.root,children:[A(qO,{value:"date","aria-label":l.dateTableLabel,icon:A(M.Fragment,{children:r})}),A(qO,{value:"time","aria-label":l.timeTableLabel,icon:A(M.Fragment,{children:i})})]})};function yst(e){return Vt("MuiPickersToolbarText",e)}const FV=Rt("MuiPickersToolbarText",["root","selected"]),vst=["className","selected","value"],bst=e=>{const{classes:t,selected:n}=e;return Ut({root:["root",n&&"selected"]},yst,t)},wst=J(At,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${FV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${FV.selected}`]:{color:(e.vars||e).palette.text.primary}})),Vse=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbarText"}),{className:o,value:i}=r,a=lt(r,vst),s=bst(r);return A(wst,Q({ref:n,className:vt(o,s.root),component:"span"},a,{children:i}))});function Hse(e){return Vt("MuiPickersToolbar",e)}const Sst=Rt("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),xst=e=>{const{classes:t,isLandscape:n}=e;return Ut({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Hse,t)},Cst=J("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Q({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),Ast=J(vIe,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Q({flex:1},!e.isLandscape&&{alignItems:"center"})),_st=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,isLandscape:a,landscapeDirection:s="column",toolbarTitle:l,hidden:u,titleId:c}=r,f=r,p=xst(f);return u?null:Se(Cst,{ref:n,className:vt(p.root,i),ownerState:f,children:[A(At,{color:"text.secondary",variant:"overline",id:c,children:l}),A(Ast,{container:!0,justifyContent:a?"flex-start":"space-between",className:p.content,ownerState:f,direction:a?s:"row",alignItems:a?"flex-start":"flex-end",children:o})]})}),Est=["align","className","selected","typographyClassName","value","variant"],Tst=e=>{const{classes:t}=e;return Ut({root:["root"]},Hse,t)},kst=J(Y1,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),sh=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,selected:a,typographyClassName:s,value:l,variant:u}=r,c=lt(r,Est),f=Tst(r);return A(kst,Q({variant:"text",ref:n,className:vt(i,f.root)},c,{children:A(Vse,{align:o,className:s,variant:u,value:l,selected:a})}))});function Ist(e){return Vt("MuiDateTimePickerToolbar",e)}const eM=Rt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function Pst(e,{disableFuture:t,maxDate:n}){const r=Gr();return M.useMemo(()=>{const o=r.date(),i=r.startOfMonth(t&&r.isBefore(o,n)?o:n);return!r.isAfter(i,e)},[t,n,e,r])}function Mst(e,{disablePast:t,minDate:n}){const r=Gr();return M.useMemo(()=>{const o=r.date(),i=r.startOfMonth(t&&r.isAfter(o,n)?o:n);return!r.isBefore(i,e)},[t,n,e,r])}function qse(e,t,n){const r=Gr(),o=Gat(e,r),i=M.useCallback(a=>{const s=e==null?null:Jat(e,a,!!t,r);n(s,"partial")},[t,e,n,r]);return{meridiemMode:o,handleMeridiemChange:i}}const Ost=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly"],Rst=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Ut(o,Ist,t)},Qse=J(_st,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${Sst.penIconButton}`]:Q({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})}));Qse.propTypes={as:ue.elementType,classes:ue.object,className:ue.string,isLandscape:ue.bool.isRequired,isMobileKeyboardViewOpen:ue.bool,landscapeDirection:ue.oneOf(["column","row"]),ownerState:ue.object.isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),toggleMobileKeyboardView:ue.func,toolbarTitle:ue.node,viewType:ue.oneOf(["date","time"])};const Dst=J("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Kse=J("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape?"column":"row";return Q({display:"flex",flexDirection:n},e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Bst=J("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e})=>Q({display:"flex"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Kse.propTypes={as:ue.elementType,ownerState:ue.object.isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};const NV=J(Vse,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"}),$st=J("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${eM.ampmLabel}`]:t.ampmLabel},{[`&.${eM.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${eM.ampmLabel}`]:{fontSize:17}}));function Lst(e){const t=Bt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:i,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:f,disabled:p,readOnly:g}=t,m=lt(t,Ost),y=t,v=Gr(),{meridiemMode:x,handleMeridiemChange:w}=qse(o,n,i),I=!!(n&&!r),_=Mc(),R=Fo(),U=Rst(Q({},y,{theme:R})),D=T=>n?v.format(T,"hours12h"):v.format(T,"hours24h"),b=M.useMemo(()=>o?u?v.formatByString(o,u):v.format(o,"shortDate"):c,[o,u,c,v]);return Se(Qse,Q({toolbarTitle:_.dateTimePickerToolbarTitle,isLandscape:s,className:U.root},m,{ownerState:y,children:[Se(Dst,{className:U.dateContainer,ownerState:y,children:[f.includes("year")&&A(sh,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:o?v.format(o,"year"):"–"}),f.includes("day")&&A(sh,{tabIndex:-1,variant:"h4",onClick:()=>l("day"),selected:a==="day",value:b})]}),Se(Kse,{className:U.timeContainer,ownerState:y,children:[Se(Bst,{className:U.timeDigitsContainer,children:[f.includes("hours")&&A(sh,{variant:"h3",onClick:()=>l("hours"),selected:a==="hours",value:o?D(o):"--"}),f.includes("minutes")&&Se(M.Fragment,{children:[A(NV,{variant:"h3",value:":",className:U.separator,ownerState:y}),A(sh,{variant:"h3",onClick:()=>l("minutes"),selected:a==="minutes",value:o?v.format(o,"minutes"):"--"})]}),f.includes("seconds")&&Se(M.Fragment,{children:[A(NV,{variant:"h3",value:":",className:U.separator,ownerState:y}),A(sh,{variant:"h3",onClick:()=>l("seconds"),selected:a==="seconds",value:o?v.format(o,"seconds"):"--"})]})]}),I&&Se($st,{className:U.ampmSelection,ownerState:y,children:[A(sh,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:U.ampmLabel,value:v.getMeridiemText("am"),onClick:g?void 0:()=>w("am"),disabled:p}),A(sh,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:U.ampmLabel,value:v.getMeridiemText("pm"),onClick:g?void 0:()=>w("pm"),disabled:p})]})]})]}))}const Fst=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},G$=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>Q({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Yse(e,t){var n,r,o,i,a,s,l,u,c,f,p;const g=Gr(),m=u2(),y=Bt({props:e,name:t}),v=(n=y.ampm)!=null?n:g.is12HourCycleInCurrentLocale(),x=M.useMemo(()=>{var _;return((_=y.localeText)==null?void 0:_.toolbarTitle)==null?y.localeText:Q({},y.localeText,{dateTimePickerToolbarTitle:y.localeText.toolbarTitle})},[y.localeText]),w=(r=y.slots)!=null?r:G$(y.components),I=(o=y.slotProps)!=null?o:y.componentsProps;return Q({},y,Fst({views:y.views,openTo:y.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:v,localeText:x,orientation:(i=y.orientation)!=null?i:"portrait",disableIgnoringDatePartForTimeValidation:(a=y.disableIgnoringDatePartForTimeValidation)!=null?a:!!(y.minDateTime||y.maxDateTime||y.disablePast||y.disableFuture),disableFuture:(s=y.disableFuture)!=null?s:!1,disablePast:(l=y.disablePast)!=null?l:!1,minDate:Ll(g,(u=y.minDateTime)!=null?u:y.minDate,m.minDate),maxDate:Ll(g,(c=y.maxDateTime)!=null?c:y.maxDate,m.maxDate),minTime:(f=y.minDateTime)!=null?f:y.minTime,maxTime:(p=y.maxDateTime)!=null?p:y.maxTime,slots:Q({toolbar:Lst,tabs:mst},w),slotProps:Q({},I,{toolbar:Q({ampm:v},I==null?void 0:I.toolbar)})})}const Nst=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Q({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Q({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Q({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},Ust=({value:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:o=!1,maxDate:i,minDate:a,onMonthChange:s,reduceAnimations:l,shouldDisableDate:u})=>{var c;const f=pv(),p=Gr(),g=M.useRef(Nst(!!l,o,p)).current,[m,y]=M.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:e||f,currentMonth:p.startOfMonth((c=e??t)!=null?c:cat(p,f,a,i)),slideDirection:"left"}),v=M.useCallback(R=>{y(Q({type:"changeMonth"},R)),s&&s(R.newMonth)},[s]),x=M.useCallback(R=>{const U=R;p.isSameMonth(U,m.currentMonth)||v({newMonth:p.startOfMonth(U),direction:p.isAfterDay(U,m.currentMonth)?"left":"right"})},[m.currentMonth,v,p]),w=jse({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:n,disablePast:r}),I=M.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),_=yr((R,U)=>{w(R)||y({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:U})});return{calendarState:m,changeMonth:x,changeFocusedDay:_,isDateDisabled:w,onMonthSwitchingAnimationEnd:I,handleChangeMonth:v}},jst=e=>Vt("MuiPickersFadeTransitionGroup",e);Rt("MuiPickersFadeTransitionGroup",["root"]);const Wst=e=>{const{classes:t}=e;return Ut({root:["root"]},jst,t)},UV=500,zst=J(wD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Gse(e){const t=Bt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=Wst(t);return o?n:A(zst,{className:vt(a.root,r),children:A(Ra,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:UV,enter:UV/2,exit:0},children:n},i)})}const Cw=36,xI=2,Jse=320,Xse=358;function Vst(e){return Vt("MuiPickersDay",e)}const qx=Rt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),Hst=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],qst=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e;return Ut({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},Vst,l)},Zse=({theme:e,ownerState:t})=>Q({},e.typography.caption,{width:Cw,height:Cw,borderRadius:"50%",padding:0,backgroundColor:"transparent",color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ln(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${qx.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${qx.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${qx.disabled}`]:{color:(e.vars||e).palette.text.disabled}},!t.disableMargin&&{margin:`0 ${xI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${qx.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),ele=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},Qst=J(gc,{name:"MuiPickersDay",slot:"Root",overridesResolver:ele})(Zse),Kst=J("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:ele})(({theme:e,ownerState:t})=>Q({},Zse({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),M1=()=>{},Yst=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:p,onFocus:g=M1,onBlur:m=M1,onKeyDown:y=M1,onMouseDown:v=M1,onMouseEnter:x=M1,outsideCurrentMonth:w,selected:I=!1,showDaysOutsideCurrentMonth:_=!1,children:R,today:U=!1}=r,D=lt(r,Hst),b=Q({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:u,selected:I,showDaysOutsideCurrentMonth:_,today:U}),T=qst(b),C=Gr(),O=M.useRef(null),$=so(O,n);pa(()=>{o&&!s&&!c&&!w&&O.current.focus()},[o,s,c,w]);const j=B=>{v(B),w&&B.preventDefault()},L=B=>{s||p(a),w&&B.currentTarget.focus(),f&&f(B)};return w&&!_?A(Kst,{className:vt(T.root,T.hiddenDaySpacingFiller,i),ownerState:b,role:D.role}):A(Qst,Q({className:vt(T.root,i),ref:$,centerRipple:!0,disabled:s,tabIndex:I?0:-1,onKeyDown:B=>y(B,a),onFocus:B=>g(B,a),onBlur:B=>m(B,a),onMouseEnter:B=>x(B,a),onClick:L,onMouseDown:j},D,{ownerState:b,children:R||C.format(a,"dayOfMonth")}))}),Gst=M.memo(Yst),Jst=e=>Vt("MuiPickersSlideTransition",e),ul=Rt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),Xst=["children","className","reduceAnimations","slideDirection","transKey","classes"],Zst=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ut(r,Jst,t)},tle=350,elt=J(wD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ul["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ul["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ul.slideEnterActive}`]:t.slideEnterActive},{[`.${ul.slideExit}`]:t.slideExit},{[`.${ul["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ul["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:tle,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ul["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ul["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ul.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ul.slideExit}`]:{transform:"translate(0%)"},[`& .${ul["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ul["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function tlt(e){const t=Bt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=lt(t,Xst),s=Zst(t);if(o)return A("div",{className:vt(s.root,r),children:n});const l={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return A(elt,{className:vt(s.root,r),childFactory:u=>M.cloneElement(u,{classNames:l}),role:"presentation",children:A(I_e,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:tle,classNames:l},a,{children:n}),i)})}const nlt=e=>Vt("MuiDayCalendar",e);Rt("MuiDayCalendar",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const rlt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],olt=["ownerState"],ilt=e=>{const{classes:t}=e;return Ut({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},nlt,t)},alt=e=>e.charAt(0).toUpperCase(),nle=(Cw+xI*2)*6,slt=J("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),llt=J(At,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),ult=J(At,{name:"MuiDayPicker",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),clt=J(At,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:Cw,height:Cw,padding:0,margin:`0 ${xI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),dlt=J("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:nle}),flt=J(tlt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:nle}),plt=J("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),hlt=J("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${xI}px 0`,display:"flex",justifyContent:"center"});function glt(e){var t,n,r;let{parentProps:o,day:i,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=lt(e,rlt);const p=Gr(),g=pv(),{disabled:m,disableHighlightToday:y,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:x,components:w,componentsProps:I,slots:_,slotProps:R}=o,U=a!==null&&p.isSameDay(i,a),D=s.some(H=>p.isSameDay(H,i)),b=p.isSameDay(i,g),T=(t=(n=_==null?void 0:_.day)!=null?n:w==null?void 0:w.Day)!=null?t:Gst,C=vo({elementType:T,externalSlotProps:(r=R==null?void 0:R.day)!=null?r:I==null?void 0:I.day,additionalProps:Q({disableHighlightToday:y,showDaysOutsideCurrentMonth:x,role:"gridcell",isAnimating:v,"data-timestamp":p.toJsDate(i).valueOf()},f),ownerState:Q({},o,{day:i,selected:D})}),O=lt(C,olt),$=M.useMemo(()=>m||l(i),[m,l,i]),j=M.useMemo(()=>p.getMonth(i)!==u,[p,i,u]),L=M.useMemo(()=>{const H=p.startOfMonth(p.setMonth(i,u));return x?p.isSameDay(i,p.startOfWeek(H)):p.isSameDay(i,H)},[u,i,x,p]),B=M.useMemo(()=>{const H=p.endOfMonth(p.setMonth(i,u));return x?p.isSameDay(i,p.endOfWeek(H)):p.isSameDay(i,H)},[u,i,x,p]);return A(T,Q({},O,{day:i,disabled:$,autoFocus:c&&U,today:b,outsideCurrentMonth:j,isFirstVisibleCell:L,isLastVisibleCell:B,selected:D,tabIndex:U?0:-1,"aria-selected":D,"aria-current":b?"date":void 0}))}function mlt(e){const t=pv(),n=Gr(),r=Bt({props:e,name:"MuiDayCalendar"}),o=ilt(r),i=Fo(),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:u,focusedDay:c,loading:f,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:g,readOnly:m,reduceAnimations:y,renderLoading:v=()=>A("span",{children:"..."}),slideDirection:x,TransitionProps:w,disablePast:I,disableFuture:_,minDate:R,maxDate:U,shouldDisableDate:D,shouldDisableMonth:b,shouldDisableYear:T,dayOfWeekFormatter:C=alt,hasFocus:O,onFocusedViewChange:$,gridLabelId:j,displayWeekNumber:L,fixedWeekNumber:B,autoFocus:H}=r,q=jse({shouldDisableDate:D,shouldDisableMonth:b,shouldDisableYear:T,minDate:R,maxDate:U,disablePast:I,disableFuture:_}),Y=Mc(),[W,ie]=ls({name:"DayCalendar",state:"hasFocus",controlled:O,default:H??!1}),[le,fe]=M.useState(()=>c||t),Ee=yr(_e=>{m||p(_e)}),Ae=_e=>{q(_e)||(a(_e),fe(_e),$==null||$(!0),ie(!0))},Ie=yr((_e,Ne)=>{switch(_e.key){case"ArrowUp":Ae(n.addDays(Ne,-7)),_e.preventDefault();break;case"ArrowDown":Ae(n.addDays(Ne,7)),_e.preventDefault();break;case"ArrowLeft":{const Be=n.addDays(Ne,i.direction==="ltr"?-1:1),Ve=i.direction==="ltr"?n.getPreviousMonth(Ne):n.getNextMonth(Ne),wt=Sb({utils:n,date:Be,minDate:i.direction==="ltr"?n.startOfMonth(Ve):Be,maxDate:i.direction==="ltr"?Be:n.endOfMonth(Ve),isDateDisabled:q});Ae(wt||Be),_e.preventDefault();break}case"ArrowRight":{const Be=n.addDays(Ne,i.direction==="ltr"?1:-1),Ve=i.direction==="ltr"?n.getNextMonth(Ne):n.getPreviousMonth(Ne),wt=Sb({utils:n,date:Be,minDate:i.direction==="ltr"?Be:n.startOfMonth(Ve),maxDate:i.direction==="ltr"?n.endOfMonth(Ve):Be,isDateDisabled:q});Ae(wt||Be),_e.preventDefault();break}case"Home":Ae(n.startOfWeek(Ne)),_e.preventDefault();break;case"End":Ae(n.endOfWeek(Ne)),_e.preventDefault();break;case"PageUp":Ae(n.getNextMonth(Ne)),_e.preventDefault();break;case"PageDown":Ae(n.getPreviousMonth(Ne)),_e.preventDefault();break}}),De=yr((_e,Ne)=>Ae(Ne)),Ue=yr((_e,Ne)=>{W&&n.isSameDay(le,Ne)&&($==null||$(!1))}),ce=n.getMonth(l),de=M.useMemo(()=>u.filter(_e=>!!_e).map(_e=>n.startOfDay(_e)),[n,u]),ve=ce,he=M.useMemo(()=>M.createRef(),[ve]),pe=n.startOfWeek(t),ge=M.useMemo(()=>{const _e=n.startOfMonth(l),Ne=n.endOfMonth(l);return q(le)||n.isAfterDay(le,Ne)||n.isBeforeDay(le,_e)?Sb({utils:n,date:le,minDate:_e,maxDate:Ne,disablePast:I,disableFuture:_,isDateDisabled:q}):le},[l,_,I,le,q,n]),Ce=M.useMemo(()=>{const _e=n.getWeekArray(l);let Ne=n.addMonths(l,1);for(;B&&_e.length{_e.length{var Be;return A(llt,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(pe,Ne),"weekday"),className:o.weekDayLabel,children:(Be=C==null?void 0:C(_e))!=null?Be:_e},_e+Ne.toString())})]}),f?A(dlt,{className:o.loadingContainer,children:v()}):A(flt,Q({transKey:ve,onExited:g,reduceAnimations:y,slideDirection:x,className:vt(s,o.slideTransition)},w,{nodeRef:he,children:A(plt,{ref:he,role:"rowgroup",className:o.monthContainer,children:Ce.map((_e,Ne)=>Se(hlt,{role:"row",className:o.weekContainer,"aria-rowindex":Ne+1,children:[L&&A(clt,{className:o.weekNumber,role:"rowheader","aria-label":Y.calendarWeekNumberAriaLabelText(n.getWeekNumber(_e[0])),children:Y.calendarWeekNumberText(n.getWeekNumber(_e[0]))}),_e.map((Be,Ve)=>A(glt,{parentProps:r,day:Be,selectedDays:de,focusableDay:ge,onKeyDown:Ie,onFocus:De,onBlur:Ue,onDaySelect:Ee,isDateDisabled:q,currentMonthNumber:ce,isViewFocused:W,"aria-colindex":Ve+1},Be.toString()))]},`week-${_e[0]}`))})}))]})}function ylt(e){return Vt("MuiPickersMonth",e)}const Qx=Rt("MuiPickersMonth",["root","monthButton","disabled","selected"]),vlt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","monthsPerRow"],blt=e=>{const{disabled:t,selected:n,classes:r}=e;return Ut({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ylt,r)},wlt=J("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Slt=J("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Qx.disabled}`]:t.disabled},{[`&.${Qx.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Qx.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Qx.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),xlt=M.memo(function(t){const n=Bt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,value:a,tabIndex:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:f,"aria-current":p}=n,g=lt(n,vlt),m=M.useRef(null),y=blt(n);return pa(()=>{if(r){var v;(v=m.current)==null||v.focus()}},[r]),A(wlt,Q({className:y.root,ownerState:n},g,{children:A(Slt,{ref:m,disabled:i,type:"button",tabIndex:i?-1:s,"aria-current":p,onClick:v=>l(v,a),onKeyDown:v=>u(v,a),onFocus:v=>c(v,a),onBlur:v=>f(v,a),className:y.monthButton,ownerState:n,children:o})}))});function Clt(e){return Vt("MuiMonthCalendar",e)}Rt("MuiMonthCalendar",["root"]);const Alt=["className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow"],_lt=e=>{const{classes:t}=e;return Ut({root:["root"]},Clt,t)};function Elt(e,t){const n=Gr(),r=u2(),o=Bt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const Tlt=J("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),klt=M.forwardRef(function(t,n){const r=pv(),o=Cy(),i=Gr(),a=Elt(t,"MuiMonthCalendar"),{className:s,value:l,defaultValue:u,disabled:c,disableFuture:f,disablePast:p,maxDate:g,minDate:m,onChange:y,shouldDisableMonth:v,readOnly:x,disableHighlightToday:w,autoFocus:I=!1,onMonthFocus:_,hasFocus:R,onFocusedViewChange:U,monthsPerRow:D=3}=a,b=lt(a,Alt),T=a,C=_lt(T),[O,$]=ls({name:"MonthCalendar",state:"value",controlled:l,default:u??null}),j=M.useMemo(()=>i.getMonth(r),[i,r]),L=M.useMemo(()=>O??i.startOfMonth(r),[r,i,O]),B=M.useMemo(()=>O!=null?i.getMonth(O):w?null:i.getMonth(r),[r,O,i,w]),[H,q]=M.useState(()=>B||j),[Y,W]=ls({name:"MonthCalendar",state:"hasFocus",controlled:R,default:I??!1}),ie=Or(Ue=>{W(Ue),U&&U(Ue)}),le=Or(Ue=>{const ce=i.startOfMonth(p&&i.isAfter(r,m)?r:m),de=i.startOfMonth(f&&i.isBefore(r,g)?r:g);return i.isBefore(Ue,ce)||i.isAfter(Ue,de)?!0:v?v(Ue):!1}),fe=Or((Ue,ce)=>{if(x)return;const de=i.setMonth(L,ce);$(de),y==null||y(de)}),Ee=Or(Ue=>{le(i.setMonth(L,Ue))||(q(Ue),ie(!0),_&&_(Ue))});M.useEffect(()=>{q(Ue=>B!==null&&Ue!==B?B:Ue)},[B]);const Ae=Or((Ue,ce)=>{switch(Ue.key){case"ArrowUp":Ee((12+ce-3)%12),Ue.preventDefault();break;case"ArrowDown":Ee((12+ce+3)%12),Ue.preventDefault();break;case"ArrowLeft":Ee((12+ce+(o.direction==="ltr"?-1:1))%12),Ue.preventDefault();break;case"ArrowRight":Ee((12+ce+(o.direction==="ltr"?1:-1))%12),Ue.preventDefault();break}}),Ie=Or((Ue,ce)=>{Ee(ce)}),De=Or((Ue,ce)=>{H===ce&&ie(!1)});return A(Tlt,Q({ref:n,className:vt(C.root,s),ownerState:T},b,{children:i.getMonthArray(L).map(Ue=>{const ce=i.getMonth(Ue),de=i.format(Ue,"monthShort"),ve=ce===B,he=c||le(Ue);return A(xlt,{selected:ve,value:ce,onClick:fe,onKeyDown:Ae,autoFocus:Y&&ce===H,disabled:he,tabIndex:ce===H?0:-1,onFocus:Ie,onBlur:De,"aria-current":j===ce?"date":void 0,monthsPerRow:D,children:de},de)})}))});function Ilt(e){return Vt("MuiPickersYear",e)}const Kx=Rt("MuiPickersYear",["root","yearButton","selected","disabled"]),Plt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Mlt=e=>{const{disabled:t,selected:n,classes:r}=e;return Ut({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},Ilt,r)},Olt=J("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Rlt=J("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Kx.disabled}`]:t.disabled},{[`&.${Kx.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Ln(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ln(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Kx.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Kx.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Dlt=M.memo(function(t){const n=Bt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:p,"aria-current":g}=n,m=lt(n,Plt),y=M.useRef(null),v=Mlt(n);return M.useEffect(()=>{r&&y.current.focus()},[r]),A(Olt,Q({className:vt(v.root,o),ownerState:n},m,{children:A(Rlt,{ref:y,disabled:a,type:"button",tabIndex:a?-1:l,"aria-current":g,onClick:x=>u(x,s),onKeyDown:x=>c(x,s),onFocus:x=>f(x,s),onBlur:x=>p(x,s),className:v.yearButton,ownerState:n,children:i})}))});function Blt(e){return Vt("MuiYearCalendar",e)}Rt("MuiYearCalendar",["root"]);const $lt=["autoFocus","className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow"],Llt=e=>{const{classes:t}=e;return Ut({root:["root"]},Blt,t)};function Flt(e,t){const n=Gr(),r=u2(),o=Bt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const Nlt=J("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304}),Ult=M.forwardRef(function(t,n){const r=pv(),o=Cy(),i=Gr(),a=Flt(t,"MuiYearCalendar"),{autoFocus:s,className:l,value:u,defaultValue:c,disabled:f,disableFuture:p,disablePast:g,maxDate:m,minDate:y,onChange:v,readOnly:x,shouldDisableYear:w,disableHighlightToday:I,onYearFocus:_,hasFocus:R,onFocusedViewChange:U,yearsPerRow:D=3}=a,b=lt(a,$lt),T=a,C=Llt(T),[O,$]=ls({name:"YearCalendar",state:"value",controlled:u,default:c??null}),j=M.useMemo(()=>O??i.startOfYear(r),[r,i,O]),L=M.useMemo(()=>i.getYear(r),[i,r]),B=M.useMemo(()=>O!=null?i.getYear(O):I?null:i.getYear(r),[r,O,i,I]),[H,q]=M.useState(()=>B||L),[Y,W]=ls({name:"YearCalendar",state:"hasFocus",controlled:R,default:s??!1}),ie=Or(de=>{W(de),U&&U(de)}),le=Or(de=>!!(g&&i.isBeforeYear(de,r)||p&&i.isAfterYear(de,r)||y&&i.isBeforeYear(de,y)||m&&i.isAfterYear(de,m)||w&&w(de))),fe=Or((de,ve)=>{if(x)return;const he=i.setYear(j,ve);$(he),v==null||v(he)}),Ee=Or(de=>{le(i.setYear(j,de))||(q(de),ie(!0),_==null||_(de))});M.useEffect(()=>{q(de=>B!==null&&de!==B?B:de)},[B]);const Ae=Or((de,ve)=>{switch(de.key){case"ArrowUp":Ee(ve-D),de.preventDefault();break;case"ArrowDown":Ee(ve+D),de.preventDefault();break;case"ArrowLeft":Ee(ve+(o.direction==="ltr"?-1:1)),de.preventDefault();break;case"ArrowRight":Ee(ve+(o.direction==="ltr"?1:-1)),de.preventDefault();break}}),Ie=Or((de,ve)=>{Ee(ve)}),De=Or((de,ve)=>{H===ve&&ie(!1)}),Ue=M.useRef(null),ce=so(n,Ue);return M.useEffect(()=>{if(s||Ue.current===null)return;const de=Ue.current.querySelector('[tabindex="0"]');if(!de)return;const ve=de.offsetHeight,he=de.offsetTop,pe=Ue.current.clientHeight,ge=Ue.current.scrollTop,Ce=he+ve;ve>pe||he{const ve=i.getYear(de),he=ve===B,pe=f||le(de);return A(Dlt,{selected:he,value:ve,onClick:fe,onKeyDown:Ae,autoFocus:Y&&ve===H,disabled:pe,tabIndex:ve===H?0:-1,onFocus:Ie,onBlur:De,"aria-current":L===ve?"date":void 0,yearsPerRow:D,children:i.format(de,"year")},i.format(de,"year"))})}))});function J$({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,u;const c=M.useRef(n),f=M.useRef(o),p=M.useRef(o.includes(n)?n:o[0]),[g,m]=ls({name:"useViews",state:"view",controlled:r,default:p.current}),y=M.useRef(i?g:null),[v,x]=ls({name:"useViews",state:"focusedView",controlled:a,default:y.current});M.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(T=>!o.includes(T)))&&m(o.includes(n)?n:o[0])},[n,m,g,o]);const w=o.indexOf(g),I=(l=o[w-1])!=null?l:null,_=(u=o[w+1])!=null?u:null,R=yr(T=>{m(T),t&&t(T)}),U=yr(()=>{_&&R(_)}),D=yr((T,C)=>{const O=C==="finish";e(T,O&&_?"partial":C),O&&U()}),b=yr((T,C)=>{x(C?T:O=>T===O?null:O),s==null||s(T,C)});return{view:g,setView:R,focusedView:v,setFocusedView:b,nextView:_,previousView:I,defaultView:p.current,goToNextView:U,setValueAndGoToNextView:D}}function jlt(e){return Vt("MuiPickersArrowSwitcher",e)}Rt("MuiPickersArrowSwitcher",["root","spacer","button"]);const Wlt=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],zlt=["ownerState"],Vlt=["ownerState"],Hlt=J("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),qlt=J("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),jV=J(Vd,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Q({},e.hidden&&{visibility:"hidden"})),Qlt=e=>{const{classes:t}=e;return Ut({root:["root"],spacer:["spacer"],button:["button"]},jlt,t)},rle=M.forwardRef(function(t,n){var r,o,i,a;const l=Fo().direction==="rtl",u=Bt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:p,slotProps:g,isNextDisabled:m,isNextHidden:y,onGoToNext:v,nextLabel:x,isPreviousDisabled:w,isPreviousHidden:I,onGoToPrevious:_,previousLabel:R}=u,U=lt(u,Wlt),D=u,b=Qlt(D),T={isDisabled:m,isHidden:y,goTo:v,label:x},C={isDisabled:w,isHidden:I,goTo:_,label:R},[O,$]=l?[T,C]:[C,T],j=(r=p==null?void 0:p.previousIconButton)!=null?r:jV,L=vo({elementType:j,externalSlotProps:g==null?void 0:g.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},D,{hidden:O.isHidden}),className:b.button}),B=(o=p==null?void 0:p.nextIconButton)!=null?o:jV,H=vo({elementType:B,externalSlotProps:g==null?void 0:g.nextIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"start",onClick:$.goTo},ownerState:Q({},D,{hidden:$.isHidden}),className:b.button}),q=(i=p==null?void 0:p.leftArrowIcon)!=null?i:ast,Y=vo({elementType:q,externalSlotProps:g==null?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),W=lt(Y,zlt),ie=(a=p==null?void 0:p.rightArrowIcon)!=null?a:sst,le=vo({elementType:ie,externalSlotProps:g==null?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),fe=lt(le,Vlt);return Se(Hlt,Q({ref:n,className:vt(b.root,f),ownerState:D},U,{children:[A(j,Q({},L,{children:l?A(ie,Q({},fe)):A(q,Q({},W))})),c?A(At,{variant:"subtitle1",component:"span",children:c}):A(qlt,{className:b.spacer,ownerState:D}),A(B,Q({},H,{children:l?A(q,Q({},W)):A(ie,Q({},fe))}))]}))}),Klt=e=>Vt("MuiPickersCalendarHeader",e),Ylt=Rt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),Glt=["ownerState"],Jlt=e=>{const{classes:t}=e;return Ut({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Klt,t)},Xlt=J("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),Zlt=J("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),eut=J("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),tut=J(Vd,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>Q({marginRight:"auto"},e.view==="year"&&{[`.${Ylt.switchViewIcon}`]:{transform:"rotate(180deg)"}})),nut=J(ist,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}));function rut(e){var t,n;const r=Mc(),o=Gr(),i=Bt({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:u,disableFuture:c,disablePast:f,maxDate:p,minDate:g,onMonthChange:m,onViewChange:y,view:v,reduceAnimations:x,views:w,labelId:I}=i,_=i,R=Jlt(i),U=(t=a==null?void 0:a.switchViewButton)!=null?t:tut,D=vo({elementType:U,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:_,className:R.switchViewButton}),b=(n=a==null?void 0:a.switchViewIcon)!=null?n:nut,T=vo({elementType:b,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),C=lt(T,Glt),O=()=>m(o.getNextMonth(l),"left"),$=()=>m(o.getPreviousMonth(l),"right"),j=Pst(l,{disableFuture:c,maxDate:p}),L=Mst(l,{disablePast:f,minDate:g}),B=()=>{if(!(w.length===1||!y||u))if(w.length===2)y(w.find(H=>H!==v)||w[0]);else{const H=w.indexOf(v)!==0?0:1;y(w[H])}};return w.length===1&&w[0]==="year"?null:Se(Xlt,{ownerState:_,className:R.root,children:[Se(Zlt,{role:"presentation",onClick:B,ownerState:_,"aria-live":"polite",className:R.labelContainer,children:[A(Gse,{reduceAnimations:x,transKey:o.format(l,"monthAndYear"),children:A(eut,{id:I,ownerState:_,className:R.label,children:o.format(l,"monthAndYear")})}),w.length>1&&!u&&A(U,Q({},D,{children:A(b,Q({},C))}))]}),A(Ra,{in:v==="day",children:A(rle,{slots:a,slotProps:s,onGoToPrevious:$,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:O,isNextDisabled:j,nextLabel:r.nextMonth})})]})}const ole=J("div")({overflow:"hidden",width:Jse,maxHeight:Xse,display:"flex",flexDirection:"column",margin:"0 auto"}),out=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),iut=e=>Vt("MuiDateCalendar",e);Rt("MuiDateCalendar",["root","viewTransitionContainer"]);const aut=["autoFocus","onViewChange","value","defaultValue","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow"],sut=e=>{const{classes:t}=e;return Ut({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},iut,t)};function lut(e,t){const n=Gr(),r=u2(),o=Bt({props:e,name:t});return Q({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:out,renderLoading:()=>A("span",{children:"..."})},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const uut=J(ole,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),cut=J(Gse,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),dut=M.forwardRef(function(t,n){const r=Gr(),o=Xw(),i=lut(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:u,disableFuture:c,disablePast:f,defaultCalendarMonth:p,onChange:g,onYearChange:m,onMonthChange:y,reduceAnimations:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:I,view:_,views:R,openTo:U,className:D,disabled:b,readOnly:T,minDate:C,maxDate:O,disableHighlightToday:$,focusedView:j,onFocusedViewChange:L,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:q,components:Y,componentsProps:W,slots:ie,slotProps:le,loading:fe,renderLoading:Ee,displayWeekNumber:Ae,yearsPerRow:Ie,monthsPerRow:De}=i,Ue=lt(i,aut),[ce,de]=ls({name:"DateCalendar",state:"value",controlled:l,default:u??null}),ve=Or((we,Pe)=>{de(we),g==null||g(we,Pe)}),{view:he,setView:pe,focusedView:ge,setFocusedView:Ce,goToNextView:_e,setValueAndGoToNextView:Ne}=J$({view:_,views:R,openTo:U,onChange:ve,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:L}),{calendarState:Be,changeFocusedDay:Ve,changeMonth:wt,handleChangeMonth:xe,isDateDisabled:je,onMonthSwitchingAnimationEnd:We}=Ust({value:ce,defaultCalendarMonth:p,reduceAnimations:v,onMonthChange:y,minDate:C,maxDate:O,shouldDisableDate:x,disablePast:f,disableFuture:c}),Ge=Or(we=>{const Pe=r.startOfMonth(we),Ye=r.endOfMonth(we),ze=je(we)?Sb({utils:r,date:we,minDate:r.isBefore(C,Pe)?Pe:C,maxDate:r.isAfter(O,Ye)?Ye:O,disablePast:f,disableFuture:c,isDateDisabled:je}):we;ze?(Ne(ze,"finish"),y==null||y(Pe)):(_e(),wt(Pe)),Ve(ze,!0)}),Fe=Or(we=>{const Pe=r.startOfYear(we),Ye=r.endOfYear(we),ze=je(we)?Sb({utils:r,date:we,minDate:r.isBefore(C,Pe)?Pe:C,maxDate:r.isAfter(O,Ye)?Ye:O,disablePast:f,disableFuture:c,isDateDisabled:je}):we;ze?(Ne(ze,"finish"),m==null||m(ze)):(_e(),wt(Pe)),Ve(ze,!0)}),te=Or(we=>Ne(ce&&we?r.mergeDateAndTime(we,ce):we,"finish"));M.useEffect(()=>{ce!=null&&r.isValid(ce)&&wt(ce)},[ce]);const Z=i,N=sut(Z),k={disablePast:f,disableFuture:c,maxDate:O,minDate:C},S=b&&ce||C,P=b&&ce||O,V={disableHighlightToday:$,readOnly:T,disabled:b},K=`${o}-grid-label`,ee=ge!==null,be=M.useRef(he);M.useEffect(()=>{be.current!==he&&(ge===be.current&&Ce(he,!0),be.current=he)},[ge,Ce,he]);const Me=M.useMemo(()=>[ce],[ce]);return Se(uut,Q({ref:n,className:vt(N.root,D),ownerState:Z},Ue,{children:[A(rut,{views:R,view:he,currentMonth:Be.currentMonth,onViewChange:pe,onMonthChange:(we,Pe)=>xe({newMonth:we,direction:Pe}),minDate:S,maxDate:P,disabled:b,disablePast:f,disableFuture:c,reduceAnimations:v,labelId:K,slots:ie,slotProps:le}),A(cut,{reduceAnimations:v,className:N.viewTransitionContainer,transKey:he,ownerState:Z,children:Se("div",{children:[he==="year"&&A(Ult,Q({},k,V,{value:ce,onChange:Fe,shouldDisableYear:I,hasFocus:ee,onFocusedViewChange:we=>Ce("year",we),yearsPerRow:Ie})),he==="month"&&A(klt,Q({},k,V,{hasFocus:ee,className:D,value:ce,onChange:Ge,shouldDisableMonth:w,onFocusedViewChange:we=>Ce("month",we),monthsPerRow:De})),he==="day"&&A(mlt,Q({},Be,k,V,{onMonthSwitchingAnimationEnd:We,onFocusedDayChange:Ve,reduceAnimations:v,selectedDays:Me,onSelectedDaysChange:te,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:I,hasFocus:ee,onFocusedViewChange:we=>Ce("day",we),gridLabelId:K,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:q,displayWeekNumber:Ae,components:Y,componentsProps:W,slots:ie,slotProps:le,loading:fe,renderLoading:Ee}))]})})]}))}),fut=e=>e==="year"||e==="month"||e==="day",T0=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,onChange:s,className:l,classes:u,disableFuture:c,disablePast:f,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:x,onMonthChange:w,monthsPerRow:I,onYearChange:_,yearsPerRow:R,defaultCalendarMonth:U,components:D,componentsProps:b,slots:T,slotProps:C,loading:O,renderLoading:$,disableHighlightToday:j,readOnly:L,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:q,sx:Y,autoFocus:W,fixedWeekNumber:ie,displayWeekNumber:le})=>A(dut,{view:e,onViewChange:t,views:n.filter(fut),focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,onChange:s,className:l,classes:u,disableFuture:c,disablePast:f,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:x,onMonthChange:w,monthsPerRow:I,onYearChange:_,yearsPerRow:R,defaultCalendarMonth:U,components:D,componentsProps:b,slots:T,slotProps:C,loading:O,renderLoading:$,disableHighlightToday:j,readOnly:L,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:q,sx:Y,autoFocus:W,fixedWeekNumber:ie,displayWeekNumber:le}),put=J(yke)({[`& .${pb.container}`]:{outline:0},[`& .${pb.paper}`]:{outline:0,minWidth:Jse}}),hut=J($G)({"&:first-of-type":{padding:0}});function gut(e){var t,n;const{children:r,onDismiss:o,open:i,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:put,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Ra;return A(l,Q({open:i,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:A(hut,{children:r})}))}function mut(e){return Vt("MuiPickersPopper",e)}Rt("MuiPickersPopper",["root","paper"]);const yut=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"]},mut,t)},vut=J(SD,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),but=J(Ay,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Q({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function wut(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Or(l=>{if(!i.current)return;const u=r.current;r.current=!1;const c=gi(o.current);if(!o.current||"clientX"in l&&wut(l,c))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!c.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!u&&t(l)}),s=()=>{r.current=!0};return M.useEffect(()=>{if(e){const l=gi(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),M.useEffect(()=>{if(e){const l=gi(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}function xut(e){var t,n,r,o;const i=Bt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:p,role:g,placement:m,slots:y,slotProps:v}=i;M.useEffect(()=>{function q(Y){p&&(Y.key==="Escape"||Y.key==="Esc")&&f()}return document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}},[f,p]);const x=M.useRef(null);M.useEffect(()=>{g==="tooltip"||u&&!u()||(p?x.current=K$(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[p,g,u]);const[w,I,_]=Sut(p,c??f),R=M.useRef(null),U=so(R,l),D=so(U,w),b=i,T=yut(b),C=q=>{q.key==="Escape"&&(q.stopPropagation(),f())},O=(t=y==null?void 0:y.desktopTransition)!=null?t:PA,$=(n=y==null?void 0:y.desktopTrapFocus)!=null?n:bG,j=(r=y==null?void 0:y.desktopPaper)!=null?r:but,L=vo({elementType:j,externalSlotProps:v==null?void 0:v.desktopPaper,additionalProps:{tabIndex:-1,elevation:8,ref:D},className:T.paper,ownerState:{}}),B=(o=y==null?void 0:y.popper)!=null?o:vut,H=vo({elementType:B,externalSlotProps:v==null?void 0:v.popper,additionalProps:{transition:!0,role:g,open:p,anchorEl:a,placement:m,onKeyDown:C},className:T.root,ownerState:i});return A(B,Q({},H,{children:({TransitionProps:q,placement:Y})=>A($,Q({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},v==null?void 0:v.desktopTrapFocus,{children:A(O,Q({},q,v==null?void 0:v.desktopTransition,{children:A(j,Q({},L,{onClick:W=>{var ie;I(W),(ie=L.onClick)==null||ie.call(L,W)},onTouchStart:W=>{var ie;_(W),(ie=L.onTouchStart)==null||ie.call(L,W)},ownerState:Q({},b,{placement:Y}),children:s}))}))}))}))}const Cut=({open:e,onOpen:t,onClose:n})=>{const r=M.useRef(typeof e=="boolean").current,[o,i]=M.useState(!1);M.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=M.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},Aut=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"?i?!0:n(r.lastPublishedValue):!1},_ut=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):!1},Eut=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:!1},Tut=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:f}=e,{current:p}=M.useRef(l),{current:g}=M.useRef(s!==void 0),m=Gr(),y=Gg(),[v,x]=ls({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:I}=Cut(e),[_,R]=M.useState(()=>{let Ee;return s!==void 0?Ee=s:p!==void 0?Ee=p:Ee=t.emptyValue,{draft:Ee,lastPublishedValue:Ee,lastCommittedValue:Ee,lastControlledValue:s,hasBeenModifiedSinceMount:!1}});Lse(Q({},e,{value:_.draft}),o,t.isSameError,t.defaultErrorState);const U=yr(Ee=>{const Ae={action:Ee,dateState:_,hasChanged:ce=>!t.areValuesEqual(m,Ee.value,ce),isControlled:g,closeOnSelect:u},Ie=Aut(Ae),De=_ut(Ae),Ue=Eut(Ae);if(R(ce=>Q({},ce,{draft:Ee.value,lastPublishedValue:Ie?Ee.value:ce.lastPublishedValue,lastCommittedValue:De?Ee.value:ce.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ie&&a){const de={validationError:Ee.name==="setValueFromField"?Ee.context.validationError:o({adapter:y,value:Ee.value,props:Q({},e,{value:Ee.value})})};a(Ee.value,de)}De&&i&&i(Ee.value),Ue&&I(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(m,_.lastControlledValue,s))){const Ee=t.areValuesEqual(m,_.draft,s);R(Ae=>Q({},Ae,{lastControlledValue:s},Ee?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const D=yr(()=>{U({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),b=yr(()=>{U({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),T=yr(()=>{U({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),C=yr(()=>{U({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),O=yr(()=>{U({value:t.getTodayValue(m,n),name:"setValueFromAction",pickerAction:"today"})}),$=yr(()=>I(!0)),j=yr(()=>I(!1)),L=yr((Ee,Ae="partial")=>U({name:"setValueFromView",value:Ee,selectionState:Ae})),B=yr((Ee,Ae)=>U({name:"setValueFromField",value:Ee,context:Ae})),H=yr(Ee=>{x(Ee),f==null||f(Ee)}),q={onClear:D,onAccept:b,onDismiss:T,onCancel:C,onSetToday:O,onOpen:$,onClose:j},Y={value:_.draft,onChange:B,selectedSections:v,onSelectedSectionsChange:H},W=M.useMemo(()=>t.cleanValue(m,_.draft),[m,t,_.draft]),ie={value:W,onChange:L,onClose:j,open:w,onSelectedSectionsChange:H},fe=Q({},q,{value:W,onChange:L,isValid:Ee=>{const Ae=o({adapter:y,value:Ee,props:Q({},e,{value:Ee})});return!t.hasError(Ae)}});return{open:w,fieldProps:Y,viewProps:ie,layoutProps:fe,actions:q}},kut=["className","sx"],Iut=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:p,viewRenderers:g}=e,m=lt(e,kut),{view:y,setView:v,defaultView:x,focusedView:w,setFocusedView:I,setValueAndGoToNextView:_}=J$({view:void 0,views:u,openTo:c,onChange:i,onViewChange:f,autoFocus:o}),{hasUIView:R,viewModeLookup:U}=M.useMemo(()=>u.reduce((j,L)=>{let B;return p?B="field":g[L]!=null?B="UI":B="field",j.viewModeLookup[L]=B,B==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[p,g,u]),D=M.useMemo(()=>u.reduce((L,B)=>g[B]!=null&&Yat(B)?L+1:L,0)>1,[g,u]),b=U[y],T=yr(()=>b==="UI"),[C,O]=M.useState(b==="UI"?y:null);return C!==y&&U[y]==="UI"&&O(y),e5(()=>{b==="field"&&a&&(l(),s("hours"),setTimeout(()=>{r==null||r.current.focus()}))},[y]),e5(()=>{if(!a)return;let j=y;b==="field"&&C!=null&&(j=C),j!==x&&U[j]==="UI"&&U[x]==="UI"&&(j=x),j!==y&&v(j),I(j,!0)},[a]),{hasUIView:R,shouldRestoreFocus:T,layoutProps:{views:u,view:C,onViewChange:v},renderCurrentView:()=>{if(C==null)return null;const j=g[C];return j==null?null:j(Q({},m,n,t,{views:u,onChange:_,view:C,onViewChange:v,focusedView:w,onFocusedViewChange:I,showViewSwitcher:D}))}}};function WV(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Put=(e,t)=>{const[n,r]=M.useState(WV);return pa(()=>{const i=()=>{r(WV())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),Vat(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Mut=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=Put(n.views,o);return{layoutProps:Q({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Out=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` -`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Out(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const ile=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{const l=Tut({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=Iut({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=Mut({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function ale(e){return Vt("MuiPickersLayout",e)}const tM=Rt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),Rut=["onAccept","onClear","onCancel","onSetToday","actions"];function Dut(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=lt(e,Rut),s=Mc();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return A(Y1,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return A(Y1,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return A(Y1,{onClick:t,children:s.okButtonLabel},u);case"today":return A(Y1,{onClick:o,children:s.todayButtonLabel},u);default:return null}});return A(Cke,Q({},a,{children:l}))}const But=["items","isLandscape","onChange","isValid"];function $ut(e){const{items:t,onChange:n,isValid:r}=e,o=lt(e,But);if(t==null||t.length===0)return null;const i=t.map(a=>{const s=a.getValue({isValid:r});return{label:a.label,onClick:()=>{n(s)},disabled:!r(s)}});return A(qG,Q({dense:!0,sx:[{maxHeight:Xse,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:i.map(a=>A(O4e,{children:A(uc,Q({},a))},a.label))}))}function Lut(e){return e.view!==null}const Fut=e=>{const{classes:t,isLandscape:n}=e;return Ut({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ale,t)},Nut=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:f,onChange:p,isValid:g,isLandscape:m,disabled:y,readOnly:v,children:x,components:w,componentsProps:I,slots:_,slotProps:R}=e,U=_??G$(w),D=R??I,b=Fut(e),T=(t=U==null?void 0:U.actionBar)!=null?t:Dut,C=vo({elementType:T,externalSlotProps:D==null?void 0:D.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:b.actionBar},ownerState:Q({},e,{wrapperVariant:r})}),O=A(T,Q({},C)),$=U==null?void 0:U.toolbar,j=vo({elementType:$,externalSlotProps:D==null?void 0:D.toolbar,additionalProps:{isLandscape:m,onChange:p,value:f,view:l,onViewChange:c,views:u,disabled:y,readOnly:v,className:b.toolbar},ownerState:Q({},e,{wrapperVariant:r})}),L=Lut(j)&&$?A($,Q({},j)):null,B=x,H=U==null?void 0:U.tabs,q=l&&H?A(H,Q({view:l,onViewChange:c},D==null?void 0:D.tabs)):null,Y=(n=U==null?void 0:U.shortcuts)!=null?n:$ut,W=vo({elementType:Y,externalSlotProps:D==null?void 0:D.shortcuts,additionalProps:{isValid:g,isLandscape:m,onChange:p,className:b.shortcuts},ownerState:{isValid:g,isLandscape:m,onChange:p,className:b.shortcuts,wrapperVariant:r}}),ie=l&&Y?A(Y,Q({},W)):null;return{toolbar:L,content:B,tabs:q,actionBar:O,shortcuts:ie}},Uut=Nut,jut=e=>{const{isLandscape:t,classes:n}=e;return Ut({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ale,n)},sle=J("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${tM.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${tM.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${tM.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));sle.propTypes={as:ue.elementType,ownerState:ue.shape({isLandscape:ue.bool.isRequired}).isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};const Wut=J("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),lle=function(t){const n=Bt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:s}=Uut(n),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:p}=n,g=n,m=jut(g);return Se(sle,{ref:f,sx:l,className:vt(u,m.root),ownerState:g,children:[c?s:r,c?r:s,A(Wut,{className:m.contentWrapper,children:p==="desktop"?Se(M.Fragment,{children:[o,i]}):Se(M.Fragment,{children:[i,o]})}),a]})},zut=["disablePast","disableFuture","minDate","maxDate","minTime","maxTime","minDateTime","maxDateTime","shouldDisableDate","shouldDisableMonth","shouldDisableYear","shouldDisableClock","shouldDisableTime","minuteStep"],ule=e=>zut.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});var cle={};Object.defineProperty(cle,"__esModule",{value:!0});var dle=cle.default=qut,n5=Vut(M);function fle(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(fle=function(r){return r?n:t})(e)}function Vut(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=fle(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let zV=0;function Hut(e){const[t,n]=n5.useState(e),r=e||t;return n5.useEffect(()=>{t==null&&(zV+=1,n(`mui-${zV}`))},[t]),r}const VV=n5["useId"];function qut(e){if(VV!==void 0){const t=VV();return e??t}return Hut(e)}const Qut=["props","getOpenDialogAriaText"],Kut=["ownerState"],Yut=["ownerState"],Gut=e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=lt(e,Qut);const{slots:u,slotProps:c,className:f,sx:p,format:g,formatDensity:m,label:y,inputRef:v,readOnly:x,disabled:w,autoFocus:I,localeText:_}=a,R=Gr(),U=M.useRef(null),D=M.useRef(null),b=dle(),T=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:C,actions:O,hasUIView:$,layoutProps:j,renderCurrentView:L,shouldRestoreFocus:B,fieldProps:H}=ile(Q({},l,{props:a,inputRef:U,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),q=(r=u.inputAdornment)!=null?r:DIe,Y=vo({elementType:q,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),W=lt(Y,Kut),ie=(o=u.openPickerButton)!=null?o:Vd,le=vo({elementType:ie,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:w||x,onClick:O.onOpen,"aria-label":s(H.value,R),edge:W.position},ownerState:a}),fe=lt(le,Yut),Ee=u.openPickerIcon,Ae=u.field,Ie=vo({elementType:Ae,externalSlotProps:c==null?void 0:c.field,additionalProps:Q({},H,T&&{id:b},{readOnly:x,disabled:w,className:f,sx:p,format:g,formatDensity:m,label:y,autoFocus:I&&!a.open}),ownerState:a});$&&(Ie.InputProps=Q({},Ie.InputProps,{ref:D,[`${W.position}Adornment`]:A(q,Q({},W,{children:A(ie,Q({},fe,{children:A(Ee,Q({},c==null?void 0:c.openPickerIcon))}))}))}));const De=Q({textField:u.textField},Ie.slots),Ue=(i=u.layout)!=null?i:lle,ce=Q$(U,Ie.inputRef,v);let de=b;T&&(y?de=`${b}-label`:de=void 0);const ve=Q({},c,{toolbar:Q({},c==null?void 0:c.toolbar,{titleId:b}),popper:Q({"aria-labelledby":de},c==null?void 0:c.popper)});return{renderPicker:()=>Se(z$,{localeText:_,children:[A(Ae,Q({},Ie,{slots:De,slotProps:ve,inputRef:ce})),A(xut,Q({role:"dialog",placement:"bottom-start",anchorEl:D.current},O,{open:C,slots:u,slotProps:ve,shouldRestoreFocus:B,children:A(Ue,Q({},j,ve==null?void 0:ve.layout,{slots:u,slotProps:ve,children:L()}))}))]})}},ple=M.forwardRef(function(t,n){var r,o,i,a;const s=Mc(),l=Yse(t,"MuiDesktopDateTimePicker"),u=Q({day:T0,month:T0,year:T0,hours:null,minutes:null,seconds:null},l.viewRenderers),c=(r=l.ampmInClock)!=null?r:!0,f=Q({},l,{viewRenderers:u,yearsPerRow:(o=l.yearsPerRow)!=null?o:4,ampmInClock:c,slots:Q({field:zse,openPickerIcon:lst},l.slots),slotProps:Q({},l.slotProps,{field:g=>{var m;return Q({},nw((m=l.slotProps)==null?void 0:m.field,g),ule(l),{ref:n,ampm:l.ampm})},toolbar:Q({hidden:!0,ampmInClock:c},(i=l.slotProps)==null?void 0:i.toolbar),tabs:Q({hidden:!0},(a=l.slotProps)==null?void 0:a.tabs)})}),{renderPicker:p}=Gut({props:f,valueManager:q$,valueType:"date-time",getOpenDialogAriaText:s.openDatePickerDialogue,validator:Y$});return p()});ple.propTypes={ampm:ue.bool,ampmInClock:ue.bool,autoFocus:ue.bool,className:ue.string,closeOnSelect:ue.bool,components:ue.object,componentsProps:ue.object,dayOfWeekFormatter:ue.func,defaultCalendarMonth:ue.any,defaultValue:ue.any,disabled:ue.bool,disableFuture:ue.bool,disableHighlightToday:ue.bool,disableIgnoringDatePartForTimeValidation:ue.bool,disableOpenPicker:ue.bool,disablePast:ue.bool,displayWeekNumber:ue.bool,fixedWeekNumber:ue.number,format:ue.string,formatDensity:ue.oneOf(["dense","spacious"]),inputRef:ue.oneOfType([ue.func,ue.shape({current:ue.object})]),label:ue.node,loading:ue.bool,localeText:ue.object,maxDate:ue.any,maxDateTime:ue.any,maxTime:ue.any,minDate:ue.any,minDateTime:ue.any,minTime:ue.any,minutesStep:ue.number,monthsPerRow:ue.oneOf([3,4]),onAccept:ue.func,onChange:ue.func,onClose:ue.func,onError:ue.func,onMonthChange:ue.func,onOpen:ue.func,onSelectedSectionsChange:ue.func,onViewChange:ue.func,onYearChange:ue.func,open:ue.bool,openTo:ue.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:ue.oneOf(["landscape","portrait"]),readOnly:ue.bool,reduceAnimations:ue.bool,renderLoading:ue.func,selectedSections:ue.oneOfType([ue.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ue.number,ue.shape({endIndex:ue.number.isRequired,startIndex:ue.number.isRequired})]),shouldDisableClock:ue.func,shouldDisableDate:ue.func,shouldDisableMonth:ue.func,shouldDisableTime:ue.func,shouldDisableYear:ue.func,showDaysOutsideCurrentMonth:ue.bool,slotProps:ue.object,slots:ue.object,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),value:ue.any,view:ue.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:ue.shape({day:ue.func,hours:ue.func,minutes:ue.func,month:ue.func,seconds:ue.func,year:ue.func}),views:ue.arrayOf(ue.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ue.oneOf([3,4])};const Jut=["props","getOpenDialogAriaText"],Xut=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,a=lt(e,Jut);const{slots:s,slotProps:l,className:u,sx:c,format:f,formatDensity:p,label:g,inputRef:m,readOnly:y,disabled:v,localeText:x}=o,w=Gr(),I=M.useRef(null),_=dle(),R=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:D,layoutProps:b,renderCurrentView:T,fieldProps:C}=ile(Q({},a,{props:o,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),O=s.field,$=vo({elementType:O,externalSlotProps:l==null?void 0:l.field,additionalProps:Q({},C,R&&{id:_},!(v||y)&&{onClick:D.onOpen,onKeyDown:Hat(D.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:f,formatDensity:p,label:g}),ownerState:o});$.inputProps=Q({},$.inputProps,{"aria-label":i(C.value,w)});const j=Q({textField:s.textField},$.slots),L=(r=s.layout)!=null?r:lle,B=Q$(I,$.inputRef,m);let H=_;R&&(g?H=`${_}-label`:H=void 0);const q=Q({},l,{toolbar:Q({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:Q({"aria-labelledby":H},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>Se(z$,{localeText:x,children:[A(O,Q({},$,{slots:j,slotProps:q,inputRef:B})),A(gut,Q({},D,{open:U,slots:s,slotProps:q,children:A(L,Q({},b,q==null?void 0:q.layout,{slots:s,slotProps:q,children:T()}))}))]})}};function Zut(e){return Vt("MuiTimeClock",e)}Rt("MuiTimeClock",["root","arrowSwitcher"]);const ly=220,op=36,Aw={x:ly/2,y:ly/2},hle={x:Aw.x,y:0},ect=hle.x-Aw.x,tct=hle.y-Aw.y,nct=e=>e*(180/Math.PI),gle=(e,t,n)=>{const r=t-Aw.x,o=n-Aw.y,i=Math.atan2(ect,tct)-Math.atan2(r,o);let a=nct(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,u=Math.sqrt(l);return{value:s,distance:u}},rct=(e,t,n=1)=>{const r=n*6;let{value:o}=gle(r,e,t);return o=o*n%60,o},oct=(e,t,n)=>{const{value:r,distance:o}=gle(30,e,t);let i=r||12;return n?i%=12:o{const{classes:t}=e;return Ut({root:["root"],thumb:["thumb"]},ict,t)},lct=J("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Q({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),uct=J("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Q({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${op/2}px)`,border:`${(op-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function cct(e){const t=Bt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=lt(t,act),s=M.useRef(o);M.useEffect(()=>{s.current=o},[o]);const l=Q({},t,{shouldAnimate:s.current!==o}),u=sct(l);return A(lct,Q({style:(()=>{let p=360/(o==="hours"?12:60)*i;return o==="hours"&&i>12&&(p-=360),{height:Math.round((r?.26:.4)*ly),transform:`rotateZ(${p}deg)`}})(),className:vt(n,u.root),ownerState:l},a,{children:A(uct,{ownerState:l,className:u.thumb})}))}function dct(e){return Vt("MuiClock",e)}Rt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const fct=e=>{const{classes:t}=e;return Ut({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},dct,t)},pct=J("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),hct=J("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),gct=J("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),mct=J("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Q({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),yct=J("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),vct=J(Vd,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Q({zIndex:1,position:"absolute",bottom:8,left:8},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),bct=J(Vd,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Q({zIndex:1,position:"absolute",bottom:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}));function wct(e){const t=Bt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:f,selectedId:p,type:g,viewValue:m,disabled:y,readOnly:v,className:x}=t,w=t,I=Gr(),_=Mc(),R=M.useRef(!1),U=fct(w),D=l(m,g),b=!n&&g==="hours"&&(m<1||m>12),T=(W,ie)=>{y||v||l(W,g)||f(W,ie)},C=(W,ie)=>{let{offsetX:le,offsetY:fe}=W;if(le===void 0){const Ae=W.target.getBoundingClientRect();le=W.changedTouches[0].clientX-Ae.left,fe=W.changedTouches[0].clientY-Ae.top}const Ee=g==="seconds"||g==="minutes"?rct(le,fe,c):oct(le,fe,!!n);T(Ee,ie)},O=W=>{R.current=!0,C(W,"shallow")},$=W=>{R.current&&(C(W,"finish"),R.current=!1)},j=W=>{W.buttons>0&&C(W.nativeEvent,"shallow")},L=W=>{R.current&&(R.current=!1),C(W.nativeEvent,"finish")},B=M.useMemo(()=>g==="hours"?!0:m%5===0,[g,m]),H=g==="minutes"?c:1,q=M.useRef(null);pa(()=>{o&&q.current.focus()},[o]);const Y=W=>{if(!R.current)switch(W.key){case"Home":T(0,"partial"),W.preventDefault();break;case"End":T(g==="minutes"?59:23,"partial"),W.preventDefault();break;case"ArrowUp":T(m+H,"partial"),W.preventDefault();break;case"ArrowDown":T(m-H,"partial"),W.preventDefault();break}};return Se(pct,{className:vt(x,U.root),children:[Se(hct,{className:U.clock,children:[A(mct,{onTouchMove:O,onTouchEnd:$,onMouseUp:L,onMouseMove:j,ownerState:{disabled:y},className:U.squareMask}),!D&&Se(M.Fragment,{children:[A(yct,{className:U.pin}),a!=null&&A(cct,{type:g,viewValue:m,isInner:b,hasSelected:B})]}),A(gct,{"aria-activedescendant":p,"aria-label":_.clockLabelText(g,a,I),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:U.wrapper,children:i})]}),n&&r&&Se(M.Fragment,{children:[A(vct,{onClick:v?void 0:()=>s("am"),disabled:y||u===null,ownerState:w,className:U.amButton,children:A(At,{variant:"caption",children:"AM"})}),A(bct,{disabled:y||u===null,onClick:v?void 0:()=>s("pm"),ownerState:w,className:U.pmButton,children:A(At,{variant:"caption",children:"PM"})})]})]})}function Sct(e){return Vt("MuiClockNumber",e)}const Yx=Rt("MuiClockNumber",["root","selected","disabled"]),xct=["className","disabled","index","inner","label","selected"],Cct=e=>{const{classes:t,selected:n,disabled:r}=e;return Ut({root:["root",n&&"selected",r&&"disabled"]},Sct,t)},Act=J("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Yx.disabled}`]:t.disabled},{[`&.${Yx.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Q({height:op,width:op,position:"absolute",left:`calc((100% - ${op}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Yx.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Yx.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function mle(e){const t=Bt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=lt(t,xct),u=t,c=Cct(u),f=o%12/12*Math.PI*2-Math.PI/2,p=(ly-op-2)/2*(i?.65:1),g=Math.round(Math.cos(f)*p),m=Math.round(Math.sin(f)*p);return A(Act,Q({className:vt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${m+(ly-op)/2}px`},ownerState:u},l,{children:a}))}const _ct=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=u;f+=1){let p=f.toString();f===0&&(p="00");const g=!e&&(f===0||f>12);p=i.formatNumber(p);const m=c(f);s.push(A(mle,{id:m?o:void 0,index:f,inner:g,selected:m,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const u=a===t;return A(mle,{label:s,id:u?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},Ect=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","defaultValue","view","views","openTo","onViewChange","className","disabled","readOnly"],Tct=e=>{const{classes:t}=e;return Ut({root:["root"],arrowSwitcher:["arrowSwitcher"]},Zut,t)},kct=J(ole,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),Ict=J(rle,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Pct=M.forwardRef(function(t,n){const r=Mc(),o=pv(),i=Gr(),a=Bt({props:t,name:"MuiTimeClock"}),{ampm:s=i.is12HourCycleInCurrentLocale(),ampmInClock:l=!1,autoFocus:u,components:c,componentsProps:f,slots:p,slotProps:g,value:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:v,minTime:x,disableFuture:w,disablePast:I,minutesStep:_=1,shouldDisableClock:R,shouldDisableTime:U,showViewSwitcher:D,onChange:b,defaultValue:T,view:C,views:O=["hours","minutes"],openTo:$,onViewChange:j,className:L,disabled:B,readOnly:H}=a,q=lt(a,Ect),Y=p??G$(c),W=g??f,[ie,le]=ls({name:"DateCalendar",state:"value",controlled:m,default:T??null}),fe=yr((Ne,Be)=>{le(Ne),b==null||b(Ne,Be)}),{view:Ee,setView:Ae,previousView:Ie,nextView:De,setValueAndGoToNextView:Ue}=J$({view:C,views:O,openTo:$,onViewChange:j,onChange:fe}),ce=M.useMemo(()=>ie||i.setSeconds(i.setMinutes(i.setHours(o,0),0),0),[ie,o,i]),{meridiemMode:de,handleMeridiemChange:ve}=qse(ce,s,Ue),he=M.useCallback((Ne,Be)=>{const Ve=Wse(y,i),wt=Be==="hours"||Be==="minutes"&&O.includes("seconds"),xe=({start:We,end:Ge})=>!(x&&Ve(x,Ge)||v&&Ve(We,v)||w&&Ve(We,o)||I&&Ve(o,wt?Ge:We)),je=(We,Ge=1)=>{if(We%Ge!==0||R!=null&&R(We,Be))return!1;if(U)switch(Be){case"hours":return!U(i.setHours(ce,We),"hours");case"minutes":return!U(i.setMinutes(ce,We),"minutes");case"seconds":return!U(i.setSeconds(ce,We),"seconds");default:return!1}return!0};switch(Be){case"hours":{const We=t5(Ne,de,s),Ge=i.setHours(ce,We),Fe=i.setSeconds(i.setMinutes(Ge,0),0),te=i.setSeconds(i.setMinutes(Ge,59),59);return!xe({start:Fe,end:te})||!je(We)}case"minutes":{const We=i.setMinutes(ce,Ne),Ge=i.setSeconds(We,0),Fe=i.setSeconds(We,59);return!xe({start:Ge,end:Fe})||!je(Ne,_)}case"seconds":{const We=i.setSeconds(ce,Ne);return!xe({start:We,end:We})||!je(Ne)}default:throw new Error("not supported")}},[s,ce,y,v,de,x,_,R,U,i,w,I,o,O]),pe=Xw(),ge=M.useMemo(()=>{switch(Ee){case"hours":{const Ne=(Be,Ve)=>{const wt=t5(Be,de,s);Ue(i.setHours(ce,wt),Ve)};return{onChange:Ne,viewValue:i.getHours(ce),children:_ct({value:ie,utils:i,ampm:s,onChange:Ne,getClockNumberText:r.hoursClockNumberText,isDisabled:Be=>B||he(Be,"hours"),selectedId:pe})}}case"minutes":{const Ne=i.getMinutes(ce),Be=(Ve,wt)=>{Ue(i.setMinutes(ce,Ve),wt)};return{viewValue:Ne,onChange:Be,children:HV({utils:i,value:Ne,onChange:Be,getClockNumberText:r.minutesClockNumberText,isDisabled:Ve=>B||he(Ve,"minutes"),selectedId:pe})}}case"seconds":{const Ne=i.getSeconds(ce),Be=(Ve,wt)=>{Ue(i.setSeconds(ce,Ve),wt)};return{viewValue:Ne,onChange:Be,children:HV({utils:i,value:Ne,onChange:Be,getClockNumberText:r.secondsClockNumberText,isDisabled:Ve=>B||he(Ve,"seconds"),selectedId:pe})}}default:throw new Error("You must provide the type for ClockView")}},[Ee,i,ie,s,r.hoursClockNumberText,r.minutesClockNumberText,r.secondsClockNumberText,de,Ue,ce,he,pe,B]),Ce=a,_e=Tct(Ce);return Se(kct,Q({ref:n,className:vt(_e.root,L),ownerState:Ce},q,{children:[A(wct,Q({autoFocus:u,ampmInClock:l&&O.includes("hours"),value:ie,type:Ee,ampm:s,minutesStep:_,isTimeDisabled:he,meridiemMode:de,handleMeridiemChange:ve,selectedId:pe,disabled:B,readOnly:H},ge)),D&&A(Ict,{className:_e.arrowSwitcher,slots:Y,slotProps:W,onGoToPrevious:()=>Ae(Ie),isPreviousDisabled:!Ie,previousLabel:r.openPreviousView,onGoToNext:()=>Ae(De),isNextDisabled:!De,nextLabel:r.openNextView,ownerState:Ce})]}))}),Mct=e=>e==="hours"||e==="minutes"||e==="seconds",nM=({view:e,onViewChange:t,views:n,value:r,defaultValue:o,onChange:i,className:a,classes:s,disableFuture:l,disablePast:u,minTime:c,maxTime:f,shouldDisableTime:p,shouldDisableClock:g,minutesStep:m,ampm:y,ampmInClock:v,components:x,componentsProps:w,slots:I,slotProps:_,readOnly:R,disabled:U,sx:D,autoFocus:b,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:C})=>A(Pct,{view:e,onViewChange:t,views:n.filter(Mct),value:r,defaultValue:o,onChange:i,className:a,classes:s,disableFuture:l,disablePast:u,minTime:c,maxTime:f,shouldDisableTime:p,shouldDisableClock:g,minutesStep:m,ampm:y,ampmInClock:v,components:x,componentsProps:w,slots:I,slotProps:_,readOnly:R,disabled:U,sx:D,autoFocus:b,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:C}),yle=M.forwardRef(function(t,n){var r,o,i;const a=Mc(),s=Yse(t,"MuiMobileDateTimePicker"),l=Q({day:T0,month:T0,year:T0,hours:nM,minutes:nM,seconds:nM},s.viewRenderers),u=(r=s.ampmInClock)!=null?r:!1,c=Q({},s,{viewRenderers:l,ampmInClock:u,slots:Q({field:zse},s.slots),slotProps:Q({},s.slotProps,{field:p=>{var g;return Q({},nw((g=s.slotProps)==null?void 0:g.field,p),ule(s),{ref:n,ampm:s.ampm})},toolbar:Q({hidden:!1,ampmInClock:u},(o=s.slotProps)==null?void 0:o.toolbar),tabs:Q({hidden:!1},(i=s.slotProps)==null?void 0:i.tabs)})}),{renderPicker:f}=Xut({props:c,valueManager:q$,valueType:"date-time",getOpenDialogAriaText:a.openDatePickerDialogue,validator:Y$});return f()});yle.propTypes={ampm:ue.bool,ampmInClock:ue.bool,autoFocus:ue.bool,className:ue.string,closeOnSelect:ue.bool,components:ue.object,componentsProps:ue.object,dayOfWeekFormatter:ue.func,defaultCalendarMonth:ue.any,defaultValue:ue.any,disabled:ue.bool,disableFuture:ue.bool,disableHighlightToday:ue.bool,disableIgnoringDatePartForTimeValidation:ue.bool,disableOpenPicker:ue.bool,disablePast:ue.bool,displayWeekNumber:ue.bool,fixedWeekNumber:ue.number,format:ue.string,formatDensity:ue.oneOf(["dense","spacious"]),inputRef:ue.oneOfType([ue.func,ue.shape({current:ue.object})]),label:ue.node,loading:ue.bool,localeText:ue.object,maxDate:ue.any,maxDateTime:ue.any,maxTime:ue.any,minDate:ue.any,minDateTime:ue.any,minTime:ue.any,minutesStep:ue.number,monthsPerRow:ue.oneOf([3,4]),onAccept:ue.func,onChange:ue.func,onClose:ue.func,onError:ue.func,onMonthChange:ue.func,onOpen:ue.func,onSelectedSectionsChange:ue.func,onViewChange:ue.func,onYearChange:ue.func,open:ue.bool,openTo:ue.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:ue.oneOf(["landscape","portrait"]),readOnly:ue.bool,reduceAnimations:ue.bool,renderLoading:ue.func,selectedSections:ue.oneOfType([ue.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ue.number,ue.shape({endIndex:ue.number.isRequired,startIndex:ue.number.isRequired})]),shouldDisableClock:ue.func,shouldDisableDate:ue.func,shouldDisableMonth:ue.func,shouldDisableTime:ue.func,shouldDisableYear:ue.func,showDaysOutsideCurrentMonth:ue.bool,slotProps:ue.object,slots:ue.object,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),value:ue.any,view:ue.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:ue.shape({day:ue.func,hours:ue.func,minutes:ue.func,month:ue.func,seconds:ue.func,year:ue.func}),views:ue.arrayOf(ue.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ue.oneOf([3,4])};const Oct=["desktopModeMediaQuery"],Rct=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=qat}=r,i=lt(r,Oct);return rT(o,{defaultMatches:!0})?A(ple,Q({ref:n},i)):A(yle,Q({ref:n},i))});function Dct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]})(e)}function vle(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"defs",attr:{},child:[{tag:"clipPath",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M124-288l388-672 388 672H124z",clipRule:"evenodd"}}]}]},{tag:"path",attr:{d:"M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z"}},{tag:"path",attr:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z"}}]})(e)}function Bct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]})(e)}function $ct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]})(e)}function ble(e){return er({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(e)}function X$(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Jg=X$();function wle(e){Jg=e}const Sle=/[&<>"']/,Lct=new RegExp(Sle.source,"g"),xle=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Fct=new RegExp(xle.source,"g"),Nct={"&":"&","<":"<",">":">",'"':""","'":"'"},qV=e=>Nct[e];function Ts(e,t){if(t){if(Sle.test(e))return e.replace(Lct,qV)}else if(xle.test(e))return e.replace(Fct,qV);return e}const Uct=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function jct(e){return e.replace(Uct,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const Wct=/(^|[^\[])\^/g;function Ar(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,o)=>(o=typeof o=="object"&&"source"in o?o.source:o,o=o.replace(Wct,"$1"),e=e.replace(r,o),n),getRegex:()=>new RegExp(e,t)};return n}function QV(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const y_={exec:()=>null};function KV(e,t){const n=e.replace(/\|/g,(i,a,s)=>{let l=!1,u=a;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.lengthQ({},est,e.localeText),[e.localeText]);return M.useMemo(()=>Q({},e,{localeText:t}),[e,t])},Gr=()=>Gg().utils,ux=()=>Gg().defaultDates,Mc=()=>Gg().localeText,pv=()=>{const e=Gr();return M.useRef(e.date()).current};function $se(e,t,n,r){const{value:o,onError:i}=e,a=Gg(),s=M.useRef(r),l=t({adapter:a,value:o,props:e});return M.useEffect(()=>{i&&!n(l,s.current)&&i(l,o),s.current=l},[n,i,s,l,o]),l}var Lse={};Object.defineProperty(Lse,"__esModule",{value:!0});var tst=Lse.default=rst,eM=nst(M);function Fse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Fse=function(r){return r?n:t})(e)}function nst(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Fse(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function rst({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=eM.useRef(e!==void 0),[i,a]=eM.useState(t),s=o?e:i,l=eM.useCallback(u=>{o||a(u)},[]);return[s,l]}const ost=e=>{var t;const n=Gr(),r=Mc(),o=Gg(),a=Fo().direction==="rtl",{valueManager:s,fieldValueManager:l,valueType:u,validator:c,internalProps:f,internalProps:{value:p,defaultValue:g,onChange:m,format:y,formatDensity:v="dense",selectedSections:x,onSelectedSectionsChange:w}}=e,I=M.useRef(g),_=(t=p??I.current)!=null?t:s.emptyValue,R=M.useMemo(()=>Bat(n),[n]),U=M.useCallback((le,fe=null)=>l.getSectionsFromValue(n,le,fe,a,Ee=>MV(n,r,y,Ee,v)),[l,y,r,a,n,v]),D=M.useMemo(()=>l.getValueStrFromSections(U(s.emptyValue),a),[l,U,s.emptyValue,a]),[b,T]=M.useState(()=>({sections:U(_),value:_,referenceValue:l.updateReferenceValue(n,_,s.getTodayValue(n,u)),tempValueStrAndroid:null})),[C,O]=tst({controlled:x,default:null,name:"useField",state:"selectedSectionIndexes"}),$=le=>{O(le),w==null||w(le),T(fe=>Q({},fe,{selectedSectionQuery:null}))},j=M.useMemo(()=>{if(C==null)return null;if(C==="all")return{startIndex:0,endIndex:b.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof C=="number")return{startIndex:C,endIndex:C};if(typeof C=="string"){const le=b.sections.findIndex(fe=>fe.type===C);return{startIndex:le,endIndex:le}}return C},[C,b.sections]),L=({value:le,referenceValue:fe,sections:Ee})=>{if(T(Ae=>Q({},Ae,{sections:Ee,value:le,referenceValue:fe,tempValueStrAndroid:null})),m){const Ae={validationError:c({adapter:o,value:le,props:Q({},f,{value:le})})};m(le,Ae)}},B=(le,fe)=>{const Ee=[...b.sections];return Ee[le]=Q({},Ee[le],{value:fe,modified:!0}),Tse(Ee,a)},H=()=>{s.areValuesEqual(n,b.value,s.emptyValue)||L({value:s.emptyValue,referenceValue:b.referenceValue,sections:U(s.emptyValue)})},q=()=>{if(j==null)return;const le=b.sections[j.startIndex];if(le.value==="")return;const fe=l.getActiveDateManager(n,b,le),Ae=fe.getSections(b.sections).filter(ce=>ce.value!=="").length===1,Ie=B(j.startIndex,""),De=Ae?null:n.date(new Date("")),Ue=fe.getNewValuesFromNewActiveDate(De);(De!=null&&!n.isValid(De))!=(fe.date!=null&&!n.isValid(fe.date))?L(Q({},Ue,{sections:Ie})):T(ce=>Q({},ce,Ue,{sections:Ie,tempValueStrAndroid:null}))},Y=le=>{const fe=(Ie,De)=>{const Ue=n.parse(Ie,y);if(Ue==null||!n.isValid(Ue))return null;const ce=MV(n,r,y,Ue,v);return RV(n,Ue,ce,De,!1)},Ee=l.parseValueStr(le,b.referenceValue,fe),Ae=l.updateReferenceValue(n,Ee,b.referenceValue);L({value:Ee,referenceValue:Ae,sections:U(Ee,b.sections)})},W=({activeSection:le,newSectionValue:fe,shouldGoToNextSection:Ee})=>{Ee&&j&&j.startIndexQ({},pe,de,{sections:he,tempValueStrAndroid:null}))},ie=le=>T(fe=>Q({},fe,{tempValueStrAndroid:le}));return M.useEffect(()=>{s.areValuesEqual(n,b.value,_)||T(le=>Q({},le,{value:_,referenceValue:l.updateReferenceValue(n,_,le.referenceValue),sections:U(_)}))},[_]),M.useEffect(()=>{const le=U(b.value);T(fe=>Q({},fe,{sections:le}))},[y,n.locale]),{state:b,selectedSectionIndexes:j,setSelectedSections:$,clearValue:H,clearActiveSection:q,updateSectionValue:W,updateValueFromValueStr:Y,setTempAndroidValueStr:ie,sectionsValueBoundaries:R,placeholder:D}},ist=5e3,Fm=e=>e.saveQuery!=null,ast=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r})=>{const o=Gr(),[i,a]=M.useState(null),s=yr(()=>a(null));M.useEffect(()=>{var p;i!=null&&((p=e[i.sectionIndex])==null?void 0:p.type)!==i.sectionType&&s()},[e,i,s]),M.useEffect(()=>{if(i!=null){const p=setTimeout(()=>s(),ist);return()=>{window.clearTimeout(p)}}return()=>{}},[i,s]);const l=({keyPressed:p,sectionIndex:g},m,y)=>{const v=p.toLowerCase(),x=e[g];if(i!=null&&(!y||y(i.value))&&i.sectionIndex===g){const I=`${i.value}${v}`,_=m(I,x);if(!Fm(_))return a({sectionIndex:g,value:I,sectionType:x.type}),_}const w=m(v,x);return Fm(w)&&!w.saveQuery?(s(),null):(a({sectionIndex:g,value:v,sectionType:x.type}),Fm(w)?null:w)},u=p=>{const g=(v,x,w)=>{const I=x.filter(_=>_.toLowerCase().startsWith(w));return I.length===0?{saveQuery:!1}:{sectionValue:I[0],shouldGoToNextSection:I.length===1}},m=(v,x,w,I)=>{const _=R=>Ese(o,x.type,R);if(x.contentType==="letter")return g(x.format,_(x.format),v);if(w&&I!=null&&_se(o,w).contentType==="letter"){const R=_(w),U=g(w,R,v);return Fm(U)?{saveQuery:!1}:Q({},U,{sectionValue:I(U.sectionValue,R)})}return{saveQuery:!1}};return l(p,(v,x)=>{switch(x.type){case"month":{const w=I=>PV(o,I,o.formats.month,x.format);return m(v,x,o.formats.month,w)}case"weekDay":{const w=(I,_)=>_.indexOf(I).toString();return m(v,x,o.formats.weekday,w)}case"meridiem":return m(v,x);default:return{saveQuery:!1}}})},c=p=>{const g=(y,v,x,w,I)=>{const _=+`${y}`,R=n[v]({currentDate:null,format:x,contentType:I});if(_>R.maximum)return{saveQuery:!1};if(_R.maximum||y.length===R.maximum.toString().length;return{sectionValue:V$(o,_,v,x,w,R),shouldGoToNextSection:U}};return l(p,(y,v)=>{if(v.contentType==="digit")return g(y,v.type,v.format,v.hasLeadingZeros,v.contentType);if(v.type==="month"){const x=g(y,v.type,"MM",Ise(o,"digit","month","MM"),"digit");if(Fm(x))return x;const w=PV(o,x.sectionValue,"MM",v.format);return Q({},x,{sectionValue:w})}if(v.type==="weekDay"){const x=g(y,v.type,v.format,v.hasLeadingZeros,v.contentType);if(Fm(x))return x;const w=xI(o,v.format)[Number(x.sectionValue)-1];return Q({},x,{sectionValue:w})}return{saveQuery:!1}},y=>!Number.isNaN(Number(y)))};return{applyCharacterEditing:yr(p=>{const g=e[p.sectionIndex],y=!Number.isNaN(Number(p.keyPressed))?c(p):u(p);y==null?r(null):t({activeSection:g,newSectionValue:y.sectionValue,shouldGoToNextSection:y.shouldGoToNextSection})}),resetCharacterQuery:s}};function sst(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const lst=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},K$=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?K$(t.shadowRoot):t:null},ust="@media (pointer: fine)",cst=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error"],dst=e=>{const t=Gr(),{state:n,selectedSectionIndexes:r,setSelectedSections:o,clearValue:i,clearActiveSection:a,updateSectionValue:s,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f}=ost(e),{applyCharacterEditing:p,resetCharacterQuery:g}=ast({sections:n.sections,updateSectionValue:s,sectionsValueBoundaries:c,setTempAndroidValueStr:u}),{inputRef:m,internalProps:y,internalProps:{readOnly:v=!1,unstableFieldRef:x},forwardedProps:{onClick:w,onKeyDown:I,onFocus:_,onBlur:R,onMouseUp:U,onPaste:D,error:b},fieldValueManager:T,valueManager:C,validator:O}=e,$=lt(e.forwardedProps,cst),j=M.useRef(null),L=Q$(m,j),B=M.useRef(void 0),q=Fo().direction==="rtl",Y=M.useMemo(()=>Nat(n.sections,q),[n.sections,q]),W=()=>{var ge;if(v){o(null);return}const Ce=(ge=j.current.selectionStart)!=null?ge:0,_e=Ce<=n.sections[0].startInInput?1:n.sections.findIndex(Be=>Be.startInInput-Be.startSeparator.length>Ce),Ne=_e===-1?n.sections.length-1:_e-1;o(Ne)},ie=yr((...ge)=>{w==null||w(...ge),W()}),le=yr(ge=>{U==null||U(ge),ge.preventDefault()}),fe=yr((...ge)=>{_==null||_(...ge);const Ce=j.current;clearTimeout(B.current),B.current=setTimeout(()=>{!Ce||Ce!==j.current||r!=null||v||(Ce.value.length&&Number(Ce.selectionEnd)-Number(Ce.selectionStart)===Ce.value.length?o("all"):W())})}),Ee=yr((...ge)=>{R==null||R(...ge),o(null)}),Ae=yr(ge=>{if(D==null||D(ge),v){ge.preventDefault();return}const Ce=ge.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const _e=n.sections[r.startIndex],Ne=/^[a-zA-Z]+$/.test(Ce),Be=/^[0-9]+$/.test(Ce);if(_e.contentType==="letter"&&Ne||_e.contentType==="digit"&&Be)return;if(Ne||Be){ge.preventDefault();return}}ge.preventDefault(),l(Ce)}),Ie=yr(ge=>{if(v)return;const Ce=ge.target.value,_e=xb(Ce);if(r==null){l(_e);return}let Ne;if(r.startIndex===0&&r.endIndex===n.sections.length-1)Ne=_e;else{const Be=xb(T.getValueStrFromSections(n.sections,q));let Ve=-1,wt=-1;for(let Ge=0;Gexe.end)return;const We=_e.length-Be.length+xe.end-xb(xe.endSeparator||"").length;Ne=_e.slice(xe.start,We)}if(Lat()&&Ne.length===0){u(Ce);return}p({keyPressed:Ne,sectionIndex:r.startIndex})}),De=yr(ge=>{switch(I==null||I(ge),!0){case(ge.key==="a"&&(ge.ctrlKey||ge.metaKey)):{ge.preventDefault(),o("all");break}case ge.key==="ArrowRight":{if(ge.preventDefault(),r==null)o(Y.startIndex);else if(r.startIndex!==r.endIndex)o(r.endIndex);else{const Ce=Y.neighbors[r.startIndex].rightIndex;Ce!==null&&o(Ce)}break}case ge.key==="ArrowLeft":{if(ge.preventDefault(),r==null)o(Y.endIndex);else if(r.startIndex!==r.endIndex)o(r.startIndex);else{const Ce=Y.neighbors[r.startIndex].leftIndex;Ce!==null&&o(Ce)}break}case["Backspace","Delete"].includes(ge.key):{if(ge.preventDefault(),v)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?i():a(),g();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(ge.key):{if(ge.preventDefault(),v||r==null)break;const Ce=n.sections[r.startIndex],_e=T.getActiveDateManager(t,n,Ce),Ne=Mat(t,Ce,ge.key,c,_e.date);s({activeSection:Ce,newSectionValue:Ne,shouldGoToNextSection:!1});break}}});t5(()=>{if(r==null){j.current.scrollLeft&&(j.current.scrollLeft=0);return}const ge=n.sections[r.startIndex],Ce=n.sections[r.endIndex];let _e=ge.startInInput,Ne=Ce.endInInput;if(r.shouldSelectBoundarySelectors&&(_e-=ge.startSeparator.length,Ne+=Ce.endSeparator.length),_e!==j.current.selectionStart||Ne!==j.current.selectionEnd){const Be=j.current.scrollTop;j.current.setSelectionRange(_e,Ne),j.current.scrollTop=Be}});const Ue=$se(Q({},y,{value:n.value}),O,C.isSameError,C.defaultErrorState),ce=M.useMemo(()=>b!==void 0?b:C.hasError(Ue),[C,Ue,b]);M.useEffect(()=>(j.current&&j.current===document.activeElement&&o("all"),()=>window.clearTimeout(B.current)),[]),M.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(g(),a())},[n.tempValueStrAndroid]);const de=M.useMemo(()=>{var ge;return(ge=n.tempValueStrAndroid)!=null?ge:T.getValueStrFromSections(n.sections,q)},[n.sections,T,n.tempValueStrAndroid,q]),ve=M.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"tel",[r,n.sections]),pe=!(j.current&&j.current===K$(document))&&C.areValuesEqual(t,n.value,C.emptyValue);return M.useImperativeHandle(x,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var ge,Ce;const _e=(ge=j.current.selectionStart)!=null?ge:0,Ne=(Ce=j.current.selectionEnd)!=null?Ce:0;if(_e===0&&Ne===0)return null;const Be=_e<=n.sections[0].startInInput?1:n.sections.findIndex(Ve=>Ve.startInInput-Ve.startSeparator.length>_e);return Be===-1?n.sections.length-1:Be-1},setSelectedSections:ge=>o(ge)})),Q({placeholder:f,autoComplete:"off"},$,{value:pe?"":de,inputMode:ve,readOnly:v,onClick:ie,onFocus:fe,onBlur:Ee,onPaste:Ae,onChange:Ie,onKeyDown:De,onMouseUp:le,error:ce,ref:L})},Nse=({props:e,value:t,adapter:n})=>{if(t===null)return null;const r=n.utils.date(),o=Ll(n.utils,e.minDate,n.defaultDates.minDate),i=Ll(n.utils,e.maxDate,n.defaultDates.maxDate);switch(!0){case!n.utils.isValid(t):return"invalidDate";case!!(e.shouldDisableDate&&e.shouldDisableDate(t)):return"shouldDisableDate";case!!(e.shouldDisableMonth&&e.shouldDisableMonth(t)):return"shouldDisableMonth";case!!(e.shouldDisableYear&&e.shouldDisableYear(t)):return"shouldDisableYear";case!!(e.disableFuture&&n.utils.isAfterDay(t,r)):return"disableFuture";case!!(e.disablePast&&n.utils.isBeforeDay(t,r)):return"disablePast";case!!(o&&n.utils.isBeforeDay(t,o)):return"minDate";case!!(i&&n.utils.isAfterDay(t,i)):return"maxDate";default:return null}},Use=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a})=>{const s=Gg();return M.useCallback(l=>Nse({adapter:s,value:l,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}})!==null,[s,e,t,n,r,o,i,a])},fst=e=>["hours","minutes","seconds"].includes(e),pst=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,n5=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,hst=(e,t,n,r)=>{const o=n5(r.getHours(e),t,n);return r.setHours(e,o)},LV=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),jse=(e,t)=>(n,r)=>e?t.isAfter(n,r):LV(n,t)>LV(r,t),gst=({adapter:e,value:t,props:n})=>{const{minTime:r,maxTime:o,minutesStep:i,shouldDisableClock:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=n,f=e.utils.date(),p=e.utils.date(t),g=jse(l,e.utils);if(t===null)return null;switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&g(r,t)):return"minTime";case!!(o&&g(t,o)):return"maxTime";case!!(c&&e.utils.isAfter(p,f)):return"disableFuture";case!!(u&&e.utils.isBefore(p,f)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&a(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(a&&a(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(a&&a(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(i&&e.utils.getMinutes(t)%i!==0):return"minutesStep";default:return null}},Y$=({props:e,value:t,adapter:n})=>{const r=Nse({adapter:n,value:t,props:e});return r!==null?r:gst({adapter:n,value:t,props:e})},mst=["value","defaultValue","format","formatDensity","onChange","readOnly","onError","shouldDisableDate","shouldDisableMonth","shouldDisableYear","minDate","maxDate","disableFuture","disablePast","minTime","maxTime","minDateTime","maxDateTime","minutesStep","disableIgnoringDatePartForTimeValidation","shouldDisableClock","shouldDisableTime","selectedSections","onSelectedSectionsChange","ampm","unstableFieldRef"],yst=e=>{var t,n,r,o,i,a,s,l;const u=Gr(),c=ux(),p=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return Q({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(o=e.format)!=null?o:p,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Ll(u,(i=e.minDateTime)!=null?i:e.minDate,c.minDate),maxDate:Ll(u,(a=e.maxDateTime)!=null?a:e.maxDate,c.maxDate),minTime:(s=e.minDateTime)!=null?s:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},vst=({props:e,inputRef:t})=>{const n=yst(e),{value:r,defaultValue:o,format:i,formatDensity:a,onChange:s,readOnly:l,onError:u,shouldDisableDate:c,shouldDisableMonth:f,shouldDisableYear:p,minDate:g,maxDate:m,disableFuture:y,disablePast:v,minTime:x,maxTime:w,minutesStep:I,disableIgnoringDatePartForTimeValidation:_,shouldDisableClock:R,shouldDisableTime:U,selectedSections:D,onSelectedSectionsChange:b,ampm:T,unstableFieldRef:C}=n,O=lt(n,mst);return dst({inputRef:t,forwardedProps:O,internalProps:{value:r,defaultValue:o,format:i,formatDensity:a,onChange:s,readOnly:l,onError:u,shouldDisableDate:c,shouldDisableMonth:f,shouldDisableYear:p,minDate:g,maxDate:m,disableFuture:y,disablePast:v,minTime:x,maxTime:w,minutesStep:I,shouldDisableClock:R,shouldDisableTime:U,disableIgnoringDatePartForTimeValidation:_,selectedSections:D,onSelectedSectionsChange:b,ampm:T,unstableFieldRef:C},valueManager:q$,fieldValueManager:Uat,validator:Y$,valueType:"date-time"})},bst=["components","componentsProps","slots","slotProps","InputProps","inputProps"],wst=["inputRef"],Sst=["ref","onPaste","inputMode","readOnly"],Wse=M.forwardRef(function(t,n){var r,o,i;const a=Bt({props:t,name:"MuiDateTimeField"}),{components:s,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:p}=a,g=lt(a,bst),m=a,y=(r=(o=u==null?void 0:u.textField)!=null?o:s==null?void 0:s.TextField)!=null?r:RD,v=vo({elementType:y,externalSlotProps:(i=c==null?void 0:c.textField)!=null?i:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:m}),{inputRef:x}=v,w=lt(v,wst);w.inputProps=Q({},w.inputProps,p),w.InputProps=Q({},w.InputProps,f);const I=vst({props:w,inputRef:x}),{ref:_,onPaste:R,inputMode:U,readOnly:D}=I,b=lt(I,Sst);return A(y,Q({ref:n},b,{inputProps:Q({},b.inputProps,{ref:_,onPaste:R,inputMode:U,readOnly:D})}))}),xst=Yo(A("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Cst=Yo(A("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Ast=Yo(A("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),_st=Yo(A("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar");Yo(Se(M.Fragment,{children:[A("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),A("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");const Est=Yo(A("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Tst=Yo(Se(M.Fragment,{children:[A("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),A("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time");function kst(e){return Vt("MuiDateTimePickerTabs",e)}Rt("MuiDateTimePickerTabs",["root"]);const Ist=e=>["day","month","year"].includes(e)?"date":"time",Pst=e=>e==="date"?"day":"hours",Mst=e=>{const{classes:t}=e;return Ut({root:["root"]},kst,t)},Ost=J(nJ,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${kC.indicator}`]:{bottom:"auto",top:0}}})),Rst=function(t){const n=Bt({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=A(Est,{}),onViewChange:o,timeIcon:i=A(Tst,{}),view:a,hidden:s=typeof window>"u"||window.innerHeight<667}=n,l=Mc(),u=Mst(n),c=(f,p)=>{o(Pst(p))};return s?null:Se(Ost,{ownerState:n,variant:"fullWidth",value:Ist(a),onChange:c,className:u.root,children:[A(QO,{value:"date","aria-label":l.dateTableLabel,icon:A(M.Fragment,{children:r})}),A(QO,{value:"time","aria-label":l.timeTableLabel,icon:A(M.Fragment,{children:i})})]})};function Dst(e){return Vt("MuiPickersToolbarText",e)}const FV=Rt("MuiPickersToolbarText",["root","selected"]),Bst=["className","selected","value"],$st=e=>{const{classes:t,selected:n}=e;return Ut({root:["root",n&&"selected"]},Dst,t)},Lst=J(At,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${FV.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${FV.selected}`]:{color:(e.vars||e).palette.text.primary}})),zse=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbarText"}),{className:o,value:i}=r,a=lt(r,Bst),s=$st(r);return A(Lst,Q({ref:n,className:vt(o,s.root),component:"span"},a,{children:i}))});function Vse(e){return Vt("MuiPickersToolbar",e)}const Fst=Rt("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"]),Nst=e=>{const{classes:t,isLandscape:n}=e;return Ut({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Vse,t)},Ust=J("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Q({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3)},t.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),jst=J(yIe,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})(({ownerState:e})=>Q({flex:1},!e.isLandscape&&{alignItems:"center"})),Wst=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbar"}),{children:o,className:i,isLandscape:a,landscapeDirection:s="column",toolbarTitle:l,hidden:u,titleId:c}=r,f=r,p=Nst(f);return u?null:Se(Ust,{ref:n,className:vt(p.root,i),ownerState:f,children:[A(At,{color:"text.secondary",variant:"overline",id:c,children:l}),A(jst,{container:!0,justifyContent:a?"flex-start":"space-between",className:p.content,ownerState:f,direction:a?s:"row",alignItems:a?"flex-start":"flex-end",children:o})]})}),zst=["align","className","selected","typographyClassName","value","variant"],Vst=e=>{const{classes:t}=e;return Ut({root:["root"]},Vse,t)},Hst=J(Y1,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),sh=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersToolbarButton"}),{align:o,className:i,selected:a,typographyClassName:s,value:l,variant:u}=r,c=lt(r,zst),f=Vst(r);return A(Hst,Q({variant:"text",ref:n,className:vt(i,f.root)},c,{children:A(zse,{align:o,className:s,variant:u,value:l,selected:a})}))});function qst(e){return Vt("MuiDateTimePickerToolbar",e)}const tM=Rt("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]);function Qst(e,{disableFuture:t,maxDate:n}){const r=Gr();return M.useMemo(()=>{const o=r.date(),i=r.startOfMonth(t&&r.isBefore(o,n)?o:n);return!r.isAfter(i,e)},[t,n,e,r])}function Kst(e,{disablePast:t,minDate:n}){const r=Gr();return M.useMemo(()=>{const o=r.date(),i=r.startOfMonth(t&&r.isAfter(o,n)?o:n);return!r.isBefore(i,e)},[t,n,e,r])}function Hse(e,t,n){const r=Gr(),o=pst(e,r),i=M.useCallback(a=>{const s=e==null?null:hst(e,a,!!t,r);n(s,"partial")},[t,e,n,r]);return{meridiemMode:o,handleMeridiemChange:i}}const Yst=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly"],Gst=e=>{const{classes:t,theme:n,isLandscape:r}=e,o={root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",n.direction==="rtl"&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",n.direction==="rtl"&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",r&&"ampmLandscape"],ampmLabel:["ampmLabel"]};return Ut(o,qst,t)},qse=J(Wst,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",[`& .${Fst.penIconButton}`]:Q({position:"absolute",top:8},e.direction==="rtl"?{left:8}:{right:8})}));qse.propTypes={as:ue.elementType,classes:ue.object,className:ue.string,isLandscape:ue.bool.isRequired,isMobileKeyboardViewOpen:ue.bool,landscapeDirection:ue.oneOf(["column","row"]),ownerState:ue.object.isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),toggleMobileKeyboardView:ue.func,toolbarTitle:ue.node,viewType:ue.oneOf(["date","time"])};const Jst=J("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),Qse=J("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape?"column":"row";return Q({display:"flex",flexDirection:n},e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),Xst=J("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e})=>Q({display:"flex"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));Qse.propTypes={as:ue.elementType,ownerState:ue.object.isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};const NV=J(zse,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default"}),Zst=J("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${tM.ampmLabel}`]:t.ampmLabel},{[`&.${tM.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${tM.ampmLabel}`]:{fontSize:17}}));function elt(e){const t=Bt({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:i,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:f,disabled:p,readOnly:g}=t,m=lt(t,Yst),y=t,v=Gr(),{meridiemMode:x,handleMeridiemChange:w}=Hse(o,n,i),I=!!(n&&!r),_=Mc(),R=Fo(),U=Gst(Q({},y,{theme:R})),D=T=>n?v.format(T,"hours12h"):v.format(T,"hours24h"),b=M.useMemo(()=>o?u?v.formatByString(o,u):v.format(o,"shortDate"):c,[o,u,c,v]);return Se(qse,Q({toolbarTitle:_.dateTimePickerToolbarTitle,isLandscape:s,className:U.root},m,{ownerState:y,children:[Se(Jst,{className:U.dateContainer,ownerState:y,children:[f.includes("year")&&A(sh,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:a==="year",value:o?v.format(o,"year"):"–"}),f.includes("day")&&A(sh,{tabIndex:-1,variant:"h4",onClick:()=>l("day"),selected:a==="day",value:b})]}),Se(Qse,{className:U.timeContainer,ownerState:y,children:[Se(Xst,{className:U.timeDigitsContainer,children:[f.includes("hours")&&A(sh,{variant:"h3",onClick:()=>l("hours"),selected:a==="hours",value:o?D(o):"--"}),f.includes("minutes")&&Se(M.Fragment,{children:[A(NV,{variant:"h3",value:":",className:U.separator,ownerState:y}),A(sh,{variant:"h3",onClick:()=>l("minutes"),selected:a==="minutes",value:o?v.format(o,"minutes"):"--"})]}),f.includes("seconds")&&Se(M.Fragment,{children:[A(NV,{variant:"h3",value:":",className:U.separator,ownerState:y}),A(sh,{variant:"h3",onClick:()=>l("seconds"),selected:a==="seconds",value:o?v.format(o,"seconds"):"--"})]})]}),I&&Se(Zst,{className:U.ampmSelection,ownerState:y,children:[A(sh,{disableRipple:!0,variant:"subtitle2",selected:x==="am",typographyClassName:U.ampmLabel,value:v.getMeridiemText("am"),onClick:g?void 0:()=>w("am"),disabled:p}),A(sh,{disableRipple:!0,variant:"subtitle2",selected:x==="pm",typographyClassName:U.ampmLabel,value:v.getMeridiemText("pm"),onClick:g?void 0:()=>w("pm"),disabled:p})]})]})]}))}const tlt=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const o=n??r;let i;if(e!=null)i=e;else if(o.includes(t))i=t;else if(o.length>0)i=o[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:o,openTo:i}},G$=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>Q({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function Kse(e,t){var n,r,o,i,a,s,l,u,c,f,p;const g=Gr(),m=ux(),y=Bt({props:e,name:t}),v=(n=y.ampm)!=null?n:g.is12HourCycleInCurrentLocale(),x=M.useMemo(()=>{var _;return((_=y.localeText)==null?void 0:_.toolbarTitle)==null?y.localeText:Q({},y.localeText,{dateTimePickerToolbarTitle:y.localeText.toolbarTitle})},[y.localeText]),w=(r=y.slots)!=null?r:G$(y.components),I=(o=y.slotProps)!=null?o:y.componentsProps;return Q({},y,tlt({views:y.views,openTo:y.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:v,localeText:x,orientation:(i=y.orientation)!=null?i:"portrait",disableIgnoringDatePartForTimeValidation:(a=y.disableIgnoringDatePartForTimeValidation)!=null?a:!!(y.minDateTime||y.maxDateTime||y.disablePast||y.disableFuture),disableFuture:(s=y.disableFuture)!=null?s:!1,disablePast:(l=y.disablePast)!=null?l:!1,minDate:Ll(g,(u=y.minDateTime)!=null?u:y.minDate,m.minDate),maxDate:Ll(g,(c=y.maxDateTime)!=null?c:y.maxDate,m.maxDate),minTime:(f=y.minDateTime)!=null?f:y.minTime,maxTime:(p=y.maxDateTime)!=null?p:y.maxTime,slots:Q({toolbar:elt,tabs:Rst},w),slotProps:Q({},I,{toolbar:Q({ampm:v},I==null?void 0:I.toolbar)})})}const nlt=(e,t,n)=>(r,o)=>{switch(o.type){case"changeMonth":return Q({},r,{slideDirection:o.direction,currentMonth:o.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return Q({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&o.focusedDay!=null&&n.isSameDay(o.focusedDay,r.focusedDay))return r;const i=o.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,o.focusedDay);return Q({},r,{focusedDay:o.focusedDay,isMonthSwitchingAnimating:i&&!e&&!o.withoutMonthSwitchingAnimation,currentMonth:i?n.startOfMonth(o.focusedDay):r.currentMonth,slideDirection:o.focusedDay!=null&&n.isAfterDay(o.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},rlt=({value:e,defaultCalendarMonth:t,disableFuture:n,disablePast:r,disableSwitchToMonthOnDayFocus:o=!1,maxDate:i,minDate:a,onMonthChange:s,reduceAnimations:l,shouldDisableDate:u})=>{var c;const f=pv(),p=Gr(),g=M.useRef(nlt(!!l,o,p)).current,[m,y]=M.useReducer(g,{isMonthSwitchingAnimating:!1,focusedDay:e||f,currentMonth:p.startOfMonth((c=e??t)!=null?c:Tat(p,f,a,i)),slideDirection:"left"}),v=M.useCallback(R=>{y(Q({type:"changeMonth"},R)),s&&s(R.newMonth)},[s]),x=M.useCallback(R=>{const U=R;p.isSameMonth(U,m.currentMonth)||v({newMonth:p.startOfMonth(U),direction:p.isAfterDay(U,m.currentMonth)?"left":"right"})},[m.currentMonth,v,p]),w=Use({shouldDisableDate:u,minDate:a,maxDate:i,disableFuture:n,disablePast:r}),I=M.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]),_=yr((R,U)=>{w(R)||y({type:"changeFocusedDay",focusedDay:R,withoutMonthSwitchingAnimation:U})});return{calendarState:m,changeMonth:x,changeFocusedDay:_,isDateDisabled:w,onMonthSwitchingAnimationEnd:I,handleChangeMonth:v}},olt=e=>Vt("MuiPickersFadeTransitionGroup",e);Rt("MuiPickersFadeTransitionGroup",["root"]);const ilt=e=>{const{classes:t}=e;return Ut({root:["root"]},olt,t)},UV=500,alt=J(SD,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Yse(e){const t=Bt({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=ilt(t);return o?n:A(alt,{className:vt(a.root,r),children:A(Ra,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:UV,enter:UV/2,exit:0},children:n},i)})}const Cw=36,CI=2,Gse=320,Jse=358;function slt(e){return Vt("MuiPickersDay",e)}const q2=Rt("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),llt=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],ult=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e;return Ut({root:["root",t&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",a&&!s&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},slt,l)},Xse=({theme:e,ownerState:t})=>Q({},e.typography.caption,{width:Cw,height:Cw,borderRadius:"50%",padding:0,backgroundColor:"transparent",color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Fn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${q2.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${q2.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${q2.disabled}`]:{color:(e.vars||e).palette.text.disabled}},!t.disableMargin&&{margin:`0 ${CI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${q2.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Zse=(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},clt=J(mc,{name:"MuiPickersDay",slot:"Root",overridesResolver:Zse})(Xse),dlt=J("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Zse})(({theme:e,ownerState:t})=>Q({},Xse({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),M1=()=>{},flt=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiPickersDay"}),{autoFocus:o=!1,className:i,day:a,disabled:s=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:p,onFocus:g=M1,onBlur:m=M1,onKeyDown:y=M1,onMouseDown:v=M1,onMouseEnter:x=M1,outsideCurrentMonth:w,selected:I=!1,showDaysOutsideCurrentMonth:_=!1,children:R,today:U=!1}=r,D=lt(r,llt),b=Q({},r,{autoFocus:o,disabled:s,disableHighlightToday:l,disableMargin:u,selected:I,showDaysOutsideCurrentMonth:_,today:U}),T=ult(b),C=Gr(),O=M.useRef(null),$=so(O,n);pa(()=>{o&&!s&&!c&&!w&&O.current.focus()},[o,s,c,w]);const j=B=>{v(B),w&&B.preventDefault()},L=B=>{s||p(a),w&&B.currentTarget.focus(),f&&f(B)};return w&&!_?A(dlt,{className:vt(T.root,T.hiddenDaySpacingFiller,i),ownerState:b,role:D.role}):A(clt,Q({className:vt(T.root,i),ref:$,centerRipple:!0,disabled:s,tabIndex:I?0:-1,onKeyDown:B=>y(B,a),onFocus:B=>g(B,a),onBlur:B=>m(B,a),onMouseEnter:B=>x(B,a),onClick:L,onMouseDown:j},D,{ownerState:b,children:R||C.format(a,"dayOfMonth")}))}),plt=M.memo(flt),hlt=e=>Vt("MuiPickersSlideTransition",e),ul=Rt("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),glt=["children","className","reduceAnimations","slideDirection","transKey","classes"],mlt=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Ut(r,hlt,t)},ele=350,ylt=J(SD,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${ul["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${ul["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${ul.slideEnterActive}`]:t.slideEnterActive},{[`.${ul.slideExit}`]:t.slideExit},{[`.${ul["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${ul["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{const t=e.transitions.create("transform",{duration:ele,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${ul["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${ul["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${ul.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${ul.slideExit}`]:{transform:"translate(0%)"},[`& .${ul["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${ul["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function vlt(e){const t=Bt({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=lt(t,glt),s=mlt(t);if(o)return A("div",{className:vt(s.root,r),children:n});const l={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return A(ylt,{className:vt(s.root,r),childFactory:u=>M.cloneElement(u,{classNames:l}),role:"presentation",children:A(k_e,Q({mountOnEnter:!0,unmountOnExit:!0,timeout:ele,classNames:l},a,{children:n}),i)})}const blt=e=>Vt("MuiDayCalendar",e);Rt("MuiDayCalendar",["header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const wlt=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],Slt=["ownerState"],xlt=e=>{const{classes:t}=e;return Ut({header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},blt,t)},Clt=e=>e.charAt(0).toUpperCase(),tle=(Cw+CI*2)*6,Alt=J("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),_lt=J(At,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),Elt=J(At,{name:"MuiDayPicker",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),Tlt=J(At,{name:"MuiDayPicker",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>Q({},e.typography.caption,{width:Cw,height:Cw,padding:0,margin:`0 ${CI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),klt=J("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:tle}),Ilt=J(vlt,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:tle}),Plt=J("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),Mlt=J("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${CI}px 0`,display:"flex",justifyContent:"center"});function Olt(e){var t,n,r;let{parentProps:o,day:i,focusableDay:a,selectedDays:s,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=lt(e,wlt);const p=Gr(),g=pv(),{disabled:m,disableHighlightToday:y,isMonthSwitchingAnimating:v,showDaysOutsideCurrentMonth:x,components:w,componentsProps:I,slots:_,slotProps:R}=o,U=a!==null&&p.isSameDay(i,a),D=s.some(H=>p.isSameDay(H,i)),b=p.isSameDay(i,g),T=(t=(n=_==null?void 0:_.day)!=null?n:w==null?void 0:w.Day)!=null?t:plt,C=vo({elementType:T,externalSlotProps:(r=R==null?void 0:R.day)!=null?r:I==null?void 0:I.day,additionalProps:Q({disableHighlightToday:y,showDaysOutsideCurrentMonth:x,role:"gridcell",isAnimating:v,"data-timestamp":p.toJsDate(i).valueOf()},f),ownerState:Q({},o,{day:i,selected:D})}),O=lt(C,Slt),$=M.useMemo(()=>m||l(i),[m,l,i]),j=M.useMemo(()=>p.getMonth(i)!==u,[p,i,u]),L=M.useMemo(()=>{const H=p.startOfMonth(p.setMonth(i,u));return x?p.isSameDay(i,p.startOfWeek(H)):p.isSameDay(i,H)},[u,i,x,p]),B=M.useMemo(()=>{const H=p.endOfMonth(p.setMonth(i,u));return x?p.isSameDay(i,p.endOfWeek(H)):p.isSameDay(i,H)},[u,i,x,p]);return A(T,Q({},O,{day:i,disabled:$,autoFocus:c&&U,today:b,outsideCurrentMonth:j,isFirstVisibleCell:L,isLastVisibleCell:B,selected:D,tabIndex:U?0:-1,"aria-selected":D,"aria-current":b?"date":void 0}))}function Rlt(e){const t=pv(),n=Gr(),r=Bt({props:e,name:"MuiDayCalendar"}),o=xlt(r),i=Fo(),{onFocusedDayChange:a,className:s,currentMonth:l,selectedDays:u,focusedDay:c,loading:f,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:g,readOnly:m,reduceAnimations:y,renderLoading:v=()=>A("span",{children:"..."}),slideDirection:x,TransitionProps:w,disablePast:I,disableFuture:_,minDate:R,maxDate:U,shouldDisableDate:D,shouldDisableMonth:b,shouldDisableYear:T,dayOfWeekFormatter:C=Clt,hasFocus:O,onFocusedViewChange:$,gridLabelId:j,displayWeekNumber:L,fixedWeekNumber:B,autoFocus:H}=r,q=Use({shouldDisableDate:D,shouldDisableMonth:b,shouldDisableYear:T,minDate:R,maxDate:U,disablePast:I,disableFuture:_}),Y=Mc(),[W,ie]=ls({name:"DayCalendar",state:"hasFocus",controlled:O,default:H??!1}),[le,fe]=M.useState(()=>c||t),Ee=yr(_e=>{m||p(_e)}),Ae=_e=>{q(_e)||(a(_e),fe(_e),$==null||$(!0),ie(!0))},Ie=yr((_e,Ne)=>{switch(_e.key){case"ArrowUp":Ae(n.addDays(Ne,-7)),_e.preventDefault();break;case"ArrowDown":Ae(n.addDays(Ne,7)),_e.preventDefault();break;case"ArrowLeft":{const Be=n.addDays(Ne,i.direction==="ltr"?-1:1),Ve=i.direction==="ltr"?n.getPreviousMonth(Ne):n.getNextMonth(Ne),wt=Sb({utils:n,date:Be,minDate:i.direction==="ltr"?n.startOfMonth(Ve):Be,maxDate:i.direction==="ltr"?Be:n.endOfMonth(Ve),isDateDisabled:q});Ae(wt||Be),_e.preventDefault();break}case"ArrowRight":{const Be=n.addDays(Ne,i.direction==="ltr"?1:-1),Ve=i.direction==="ltr"?n.getNextMonth(Ne):n.getPreviousMonth(Ne),wt=Sb({utils:n,date:Be,minDate:i.direction==="ltr"?Be:n.startOfMonth(Ve),maxDate:i.direction==="ltr"?n.endOfMonth(Ve):Be,isDateDisabled:q});Ae(wt||Be),_e.preventDefault();break}case"Home":Ae(n.startOfWeek(Ne)),_e.preventDefault();break;case"End":Ae(n.endOfWeek(Ne)),_e.preventDefault();break;case"PageUp":Ae(n.getNextMonth(Ne)),_e.preventDefault();break;case"PageDown":Ae(n.getPreviousMonth(Ne)),_e.preventDefault();break}}),De=yr((_e,Ne)=>Ae(Ne)),Ue=yr((_e,Ne)=>{W&&n.isSameDay(le,Ne)&&($==null||$(!1))}),ce=n.getMonth(l),de=M.useMemo(()=>u.filter(_e=>!!_e).map(_e=>n.startOfDay(_e)),[n,u]),ve=ce,he=M.useMemo(()=>M.createRef(),[ve]),pe=n.startOfWeek(t),ge=M.useMemo(()=>{const _e=n.startOfMonth(l),Ne=n.endOfMonth(l);return q(le)||n.isAfterDay(le,Ne)||n.isBeforeDay(le,_e)?Sb({utils:n,date:le,minDate:_e,maxDate:Ne,disablePast:I,disableFuture:_,isDateDisabled:q}):le},[l,_,I,le,q,n]),Ce=M.useMemo(()=>{const _e=n.getWeekArray(l);let Ne=n.addMonths(l,1);for(;B&&_e.length{_e.length{var Be;return A(_lt,{variant:"caption",role:"columnheader","aria-label":n.format(n.addDays(pe,Ne),"weekday"),className:o.weekDayLabel,children:(Be=C==null?void 0:C(_e))!=null?Be:_e},_e+Ne.toString())})]}),f?A(klt,{className:o.loadingContainer,children:v()}):A(Ilt,Q({transKey:ve,onExited:g,reduceAnimations:y,slideDirection:x,className:vt(s,o.slideTransition)},w,{nodeRef:he,children:A(Plt,{ref:he,role:"rowgroup",className:o.monthContainer,children:Ce.map((_e,Ne)=>Se(Mlt,{role:"row",className:o.weekContainer,"aria-rowindex":Ne+1,children:[L&&A(Tlt,{className:o.weekNumber,role:"rowheader","aria-label":Y.calendarWeekNumberAriaLabelText(n.getWeekNumber(_e[0])),children:Y.calendarWeekNumberText(n.getWeekNumber(_e[0]))}),_e.map((Be,Ve)=>A(Olt,{parentProps:r,day:Be,selectedDays:de,focusableDay:ge,onKeyDown:Ie,onFocus:De,onBlur:Ue,onDaySelect:Ee,isDateDisabled:q,currentMonthNumber:ce,isViewFocused:W,"aria-colindex":Ve+1},Be.toString()))]},`week-${_e[0]}`))})}))]})}function Dlt(e){return Vt("MuiPickersMonth",e)}const Q2=Rt("MuiPickersMonth",["root","monthButton","disabled","selected"]),Blt=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","monthsPerRow"],$lt=e=>{const{disabled:t,selected:n,classes:r}=e;return Ut({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},Dlt,r)},Llt=J("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.monthsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Flt=J("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Q2.disabled}`]:t.disabled},{[`&.${Q2.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Q2.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Q2.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Nlt=M.memo(function(t){const n=Bt({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:o,disabled:i,value:a,tabIndex:s,onClick:l,onKeyDown:u,onFocus:c,onBlur:f,"aria-current":p}=n,g=lt(n,Blt),m=M.useRef(null),y=$lt(n);return pa(()=>{if(r){var v;(v=m.current)==null||v.focus()}},[r]),A(Llt,Q({className:y.root,ownerState:n},g,{children:A(Flt,{ref:m,disabled:i,type:"button",tabIndex:i?-1:s,"aria-current":p,onClick:v=>l(v,a),onKeyDown:v=>u(v,a),onFocus:v=>c(v,a),onBlur:v=>f(v,a),className:y.monthButton,ownerState:n,children:o})}))});function Ult(e){return Vt("MuiMonthCalendar",e)}Rt("MuiMonthCalendar",["root"]);const jlt=["className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow"],Wlt=e=>{const{classes:t}=e;return Ut({root:["root"]},Ult,t)};function zlt(e,t){const n=Gr(),r=ux(),o=Bt({props:e,name:t});return Q({disableFuture:!1,disablePast:!1},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const Vlt=J("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320}),Hlt=M.forwardRef(function(t,n){const r=pv(),o=Cy(),i=Gr(),a=zlt(t,"MuiMonthCalendar"),{className:s,value:l,defaultValue:u,disabled:c,disableFuture:f,disablePast:p,maxDate:g,minDate:m,onChange:y,shouldDisableMonth:v,readOnly:x,disableHighlightToday:w,autoFocus:I=!1,onMonthFocus:_,hasFocus:R,onFocusedViewChange:U,monthsPerRow:D=3}=a,b=lt(a,jlt),T=a,C=Wlt(T),[O,$]=ls({name:"MonthCalendar",state:"value",controlled:l,default:u??null}),j=M.useMemo(()=>i.getMonth(r),[i,r]),L=M.useMemo(()=>O??i.startOfMonth(r),[r,i,O]),B=M.useMemo(()=>O!=null?i.getMonth(O):w?null:i.getMonth(r),[r,O,i,w]),[H,q]=M.useState(()=>B||j),[Y,W]=ls({name:"MonthCalendar",state:"hasFocus",controlled:R,default:I??!1}),ie=Or(Ue=>{W(Ue),U&&U(Ue)}),le=Or(Ue=>{const ce=i.startOfMonth(p&&i.isAfter(r,m)?r:m),de=i.startOfMonth(f&&i.isBefore(r,g)?r:g);return i.isBefore(Ue,ce)||i.isAfter(Ue,de)?!0:v?v(Ue):!1}),fe=Or((Ue,ce)=>{if(x)return;const de=i.setMonth(L,ce);$(de),y==null||y(de)}),Ee=Or(Ue=>{le(i.setMonth(L,Ue))||(q(Ue),ie(!0),_&&_(Ue))});M.useEffect(()=>{q(Ue=>B!==null&&Ue!==B?B:Ue)},[B]);const Ae=Or((Ue,ce)=>{switch(Ue.key){case"ArrowUp":Ee((12+ce-3)%12),Ue.preventDefault();break;case"ArrowDown":Ee((12+ce+3)%12),Ue.preventDefault();break;case"ArrowLeft":Ee((12+ce+(o.direction==="ltr"?-1:1))%12),Ue.preventDefault();break;case"ArrowRight":Ee((12+ce+(o.direction==="ltr"?1:-1))%12),Ue.preventDefault();break}}),Ie=Or((Ue,ce)=>{Ee(ce)}),De=Or((Ue,ce)=>{H===ce&&ie(!1)});return A(Vlt,Q({ref:n,className:vt(C.root,s),ownerState:T},b,{children:i.getMonthArray(L).map(Ue=>{const ce=i.getMonth(Ue),de=i.format(Ue,"monthShort"),ve=ce===B,he=c||le(Ue);return A(Nlt,{selected:ve,value:ce,onClick:fe,onKeyDown:Ae,autoFocus:Y&&ce===H,disabled:he,tabIndex:ce===H?0:-1,onFocus:Ie,onBlur:De,"aria-current":j===ce?"date":void 0,monthsPerRow:D,children:de},de)})}))});function qlt(e){return Vt("MuiPickersYear",e)}const K2=Rt("MuiPickersYear",["root","yearButton","selected","disabled"]),Qlt=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],Klt=e=>{const{disabled:t,selected:n,classes:r}=e;return Ut({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},qlt,r)},Ylt=J("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})(({ownerState:e})=>({flexBasis:e.yearsPerRow===3?"33.3%":"25%",display:"flex",alignItems:"center",justifyContent:"center"})),Glt=J("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${K2.disabled}`]:t.disabled},{[`&.${K2.selected}`]:t.selected}]})(({theme:e})=>Q({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:Fn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Fn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${K2.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${K2.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),Jlt=M.memo(function(t){const n=Bt({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:o,children:i,disabled:a,value:s,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:p,"aria-current":g}=n,m=lt(n,Qlt),y=M.useRef(null),v=Klt(n);return M.useEffect(()=>{r&&y.current.focus()},[r]),A(Ylt,Q({className:vt(v.root,o),ownerState:n},m,{children:A(Glt,{ref:y,disabled:a,type:"button",tabIndex:a?-1:l,"aria-current":g,onClick:x=>u(x,s),onKeyDown:x=>c(x,s),onFocus:x=>f(x,s),onBlur:x=>p(x,s),className:v.yearButton,ownerState:n,children:i})}))});function Xlt(e){return Vt("MuiYearCalendar",e)}Rt("MuiYearCalendar",["root"]);const Zlt=["autoFocus","className","value","defaultValue","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow"],eut=e=>{const{classes:t}=e;return Ut({root:["root"]},Xlt,t)};function tut(e,t){const n=Gr(),r=ux(),o=Bt({props:e,name:t});return Q({disablePast:!1,disableFuture:!1},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const nut=J("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:304}),rut=M.forwardRef(function(t,n){const r=pv(),o=Cy(),i=Gr(),a=tut(t,"MuiYearCalendar"),{autoFocus:s,className:l,value:u,defaultValue:c,disabled:f,disableFuture:p,disablePast:g,maxDate:m,minDate:y,onChange:v,readOnly:x,shouldDisableYear:w,disableHighlightToday:I,onYearFocus:_,hasFocus:R,onFocusedViewChange:U,yearsPerRow:D=3}=a,b=lt(a,Zlt),T=a,C=eut(T),[O,$]=ls({name:"YearCalendar",state:"value",controlled:u,default:c??null}),j=M.useMemo(()=>O??i.startOfYear(r),[r,i,O]),L=M.useMemo(()=>i.getYear(r),[i,r]),B=M.useMemo(()=>O!=null?i.getYear(O):I?null:i.getYear(r),[r,O,i,I]),[H,q]=M.useState(()=>B||L),[Y,W]=ls({name:"YearCalendar",state:"hasFocus",controlled:R,default:s??!1}),ie=Or(de=>{W(de),U&&U(de)}),le=Or(de=>!!(g&&i.isBeforeYear(de,r)||p&&i.isAfterYear(de,r)||y&&i.isBeforeYear(de,y)||m&&i.isAfterYear(de,m)||w&&w(de))),fe=Or((de,ve)=>{if(x)return;const he=i.setYear(j,ve);$(he),v==null||v(he)}),Ee=Or(de=>{le(i.setYear(j,de))||(q(de),ie(!0),_==null||_(de))});M.useEffect(()=>{q(de=>B!==null&&de!==B?B:de)},[B]);const Ae=Or((de,ve)=>{switch(de.key){case"ArrowUp":Ee(ve-D),de.preventDefault();break;case"ArrowDown":Ee(ve+D),de.preventDefault();break;case"ArrowLeft":Ee(ve+(o.direction==="ltr"?-1:1)),de.preventDefault();break;case"ArrowRight":Ee(ve+(o.direction==="ltr"?1:-1)),de.preventDefault();break}}),Ie=Or((de,ve)=>{Ee(ve)}),De=Or((de,ve)=>{H===ve&&ie(!1)}),Ue=M.useRef(null),ce=so(n,Ue);return M.useEffect(()=>{if(s||Ue.current===null)return;const de=Ue.current.querySelector('[tabindex="0"]');if(!de)return;const ve=de.offsetHeight,he=de.offsetTop,pe=Ue.current.clientHeight,ge=Ue.current.scrollTop,Ce=he+ve;ve>pe||he{const ve=i.getYear(de),he=ve===B,pe=f||le(de);return A(Jlt,{selected:he,value:ve,onClick:fe,onKeyDown:Ae,autoFocus:Y&&ve===H,disabled:pe,tabIndex:ve===H?0:-1,onFocus:Ie,onBlur:De,"aria-current":L===ve?"date":void 0,yearsPerRow:D,children:i.format(de,"year")},i.format(de,"year"))})}))});function J$({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){var l,u;const c=M.useRef(n),f=M.useRef(o),p=M.useRef(o.includes(n)?n:o[0]),[g,m]=ls({name:"useViews",state:"view",controlled:r,default:p.current}),y=M.useRef(i?g:null),[v,x]=ls({name:"useViews",state:"focusedView",controlled:a,default:y.current});M.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(T=>!o.includes(T)))&&m(o.includes(n)?n:o[0])},[n,m,g,o]);const w=o.indexOf(g),I=(l=o[w-1])!=null?l:null,_=(u=o[w+1])!=null?u:null,R=yr(T=>{m(T),t&&t(T)}),U=yr(()=>{_&&R(_)}),D=yr((T,C)=>{const O=C==="finish";e(T,O&&_?"partial":C),O&&U()}),b=yr((T,C)=>{x(C?T:O=>T===O?null:O),s==null||s(T,C)});return{view:g,setView:R,focusedView:v,setFocusedView:b,nextView:_,previousView:I,defaultView:p.current,goToNextView:U,setValueAndGoToNextView:D}}function out(e){return Vt("MuiPickersArrowSwitcher",e)}Rt("MuiPickersArrowSwitcher",["root","spacer","button"]);const iut=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],aut=["ownerState"],sut=["ownerState"],lut=J("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),uut=J("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),jV=J(Vd,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>Q({},e.hidden&&{visibility:"hidden"})),cut=e=>{const{classes:t}=e;return Ut({root:["root"],spacer:["spacer"],button:["button"]},out,t)},nle=M.forwardRef(function(t,n){var r,o,i,a;const l=Fo().direction==="rtl",u=Bt({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:p,slotProps:g,isNextDisabled:m,isNextHidden:y,onGoToNext:v,nextLabel:x,isPreviousDisabled:w,isPreviousHidden:I,onGoToPrevious:_,previousLabel:R}=u,U=lt(u,iut),D=u,b=cut(D),T={isDisabled:m,isHidden:y,goTo:v,label:x},C={isDisabled:w,isHidden:I,goTo:_,label:R},[O,$]=l?[T,C]:[C,T],j=(r=p==null?void 0:p.previousIconButton)!=null?r:jV,L=vo({elementType:j,externalSlotProps:g==null?void 0:g.previousIconButton,additionalProps:{size:"medium",title:O.label,"aria-label":O.label,disabled:O.isDisabled,edge:"end",onClick:O.goTo},ownerState:Q({},D,{hidden:O.isHidden}),className:b.button}),B=(o=p==null?void 0:p.nextIconButton)!=null?o:jV,H=vo({elementType:B,externalSlotProps:g==null?void 0:g.nextIconButton,additionalProps:{size:"medium",title:$.label,"aria-label":$.label,disabled:$.isDisabled,edge:"start",onClick:$.goTo},ownerState:Q({},D,{hidden:$.isHidden}),className:b.button}),q=(i=p==null?void 0:p.leftArrowIcon)!=null?i:Cst,Y=vo({elementType:q,externalSlotProps:g==null?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),W=lt(Y,aut),ie=(a=p==null?void 0:p.rightArrowIcon)!=null?a:Ast,le=vo({elementType:ie,externalSlotProps:g==null?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),fe=lt(le,sut);return Se(lut,Q({ref:n,className:vt(b.root,f),ownerState:D},U,{children:[A(j,Q({},L,{children:l?A(ie,Q({},fe)):A(q,Q({},W))})),c?A(At,{variant:"subtitle1",component:"span",children:c}):A(uut,{className:b.spacer,ownerState:D}),A(B,Q({},H,{children:l?A(q,Q({},W)):A(ie,Q({},fe))}))]}))}),dut=e=>Vt("MuiPickersCalendarHeader",e),fut=Rt("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),put=["ownerState"],hut=e=>{const{classes:t}=e;return Ut({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},dut,t)},gut=J("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:16,marginBottom:8,paddingLeft:24,paddingRight:12,maxHeight:30,minHeight:30}),mut=J("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>Q({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),yut=J("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),vut=J(Vd,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>Q({marginRight:"auto"},e.view==="year"&&{[`.${fut.switchViewIcon}`]:{transform:"rotate(180deg)"}})),but=J(xst,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"}));function wut(e){var t,n;const r=Mc(),o=Gr(),i=Bt({props:e,name:"MuiPickersCalendarHeader"}),{slots:a,slotProps:s,currentMonth:l,disabled:u,disableFuture:c,disablePast:f,maxDate:p,minDate:g,onMonthChange:m,onViewChange:y,view:v,reduceAnimations:x,views:w,labelId:I}=i,_=i,R=hut(i),U=(t=a==null?void 0:a.switchViewButton)!=null?t:vut,D=vo({elementType:U,externalSlotProps:s==null?void 0:s.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(v)},ownerState:_,className:R.switchViewButton}),b=(n=a==null?void 0:a.switchViewIcon)!=null?n:but,T=vo({elementType:b,externalSlotProps:s==null?void 0:s.switchViewIcon,ownerState:void 0,className:R.switchViewIcon}),C=lt(T,put),O=()=>m(o.getNextMonth(l),"left"),$=()=>m(o.getPreviousMonth(l),"right"),j=Qst(l,{disableFuture:c,maxDate:p}),L=Kst(l,{disablePast:f,minDate:g}),B=()=>{if(!(w.length===1||!y||u))if(w.length===2)y(w.find(H=>H!==v)||w[0]);else{const H=w.indexOf(v)!==0?0:1;y(w[H])}};return w.length===1&&w[0]==="year"?null:Se(gut,{ownerState:_,className:R.root,children:[Se(mut,{role:"presentation",onClick:B,ownerState:_,"aria-live":"polite",className:R.labelContainer,children:[A(Yse,{reduceAnimations:x,transKey:o.format(l,"monthAndYear"),children:A(yut,{id:I,ownerState:_,className:R.label,children:o.format(l,"monthAndYear")})}),w.length>1&&!u&&A(U,Q({},D,{children:A(b,Q({},C))}))]}),A(Ra,{in:v==="day",children:A(nle,{slots:a,slotProps:s,onGoToPrevious:$,isPreviousDisabled:L,previousLabel:r.previousMonth,onGoToNext:O,isNextDisabled:j,nextLabel:r.nextMonth})})]})}const rle=J("div")({overflow:"hidden",width:Gse,maxHeight:Jse,display:"flex",flexDirection:"column",margin:"0 auto"}),Sut=typeof navigator<"u"&&/(android)/i.test(navigator.userAgent),xut=e=>Vt("MuiDateCalendar",e);Rt("MuiDateCalendar",["root","viewTransitionContainer"]);const Cut=["autoFocus","onViewChange","value","defaultValue","disableFuture","disablePast","defaultCalendarMonth","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","components","componentsProps","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsPerRow","monthsPerRow"],Aut=e=>{const{classes:t}=e;return Ut({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},xut,t)};function _ut(e,t){const n=Gr(),r=ux(),o=Bt({props:e,name:t});return Q({loading:!1,disablePast:!1,disableFuture:!1,openTo:"day",views:["year","day"],reduceAnimations:Sut,renderLoading:()=>A("span",{children:"..."})},o,{minDate:Ll(n,o.minDate,r.minDate),maxDate:Ll(n,o.maxDate,r.maxDate)})}const Eut=J(rle,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column"}),Tut=J(Yse,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),kut=M.forwardRef(function(t,n){const r=Gr(),o=Xw(),i=_ut(t,"MuiDateCalendar"),{autoFocus:a,onViewChange:s,value:l,defaultValue:u,disableFuture:c,disablePast:f,defaultCalendarMonth:p,onChange:g,onYearChange:m,onMonthChange:y,reduceAnimations:v,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:I,view:_,views:R,openTo:U,className:D,disabled:b,readOnly:T,minDate:C,maxDate:O,disableHighlightToday:$,focusedView:j,onFocusedViewChange:L,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:q,components:Y,componentsProps:W,slots:ie,slotProps:le,loading:fe,renderLoading:Ee,displayWeekNumber:Ae,yearsPerRow:Ie,monthsPerRow:De}=i,Ue=lt(i,Cut),[ce,de]=ls({name:"DateCalendar",state:"value",controlled:l,default:u??null}),ve=Or((we,Pe)=>{de(we),g==null||g(we,Pe)}),{view:he,setView:pe,focusedView:ge,setFocusedView:Ce,goToNextView:_e,setValueAndGoToNextView:Ne}=J$({view:_,views:R,openTo:U,onChange:ve,onViewChange:s,autoFocus:a,focusedView:j,onFocusedViewChange:L}),{calendarState:Be,changeFocusedDay:Ve,changeMonth:wt,handleChangeMonth:xe,isDateDisabled:je,onMonthSwitchingAnimationEnd:We}=rlt({value:ce,defaultCalendarMonth:p,reduceAnimations:v,onMonthChange:y,minDate:C,maxDate:O,shouldDisableDate:x,disablePast:f,disableFuture:c}),Ge=Or(we=>{const Pe=r.startOfMonth(we),Ye=r.endOfMonth(we),ze=je(we)?Sb({utils:r,date:we,minDate:r.isBefore(C,Pe)?Pe:C,maxDate:r.isAfter(O,Ye)?Ye:O,disablePast:f,disableFuture:c,isDateDisabled:je}):we;ze?(Ne(ze,"finish"),y==null||y(Pe)):(_e(),wt(Pe)),Ve(ze,!0)}),Fe=Or(we=>{const Pe=r.startOfYear(we),Ye=r.endOfYear(we),ze=je(we)?Sb({utils:r,date:we,minDate:r.isBefore(C,Pe)?Pe:C,maxDate:r.isAfter(O,Ye)?Ye:O,disablePast:f,disableFuture:c,isDateDisabled:je}):we;ze?(Ne(ze,"finish"),m==null||m(ze)):(_e(),wt(Pe)),Ve(ze,!0)}),te=Or(we=>Ne(ce&&we?r.mergeDateAndTime(we,ce):we,"finish"));M.useEffect(()=>{ce!=null&&r.isValid(ce)&&wt(ce)},[ce]);const Z=i,N=Aut(Z),k={disablePast:f,disableFuture:c,maxDate:O,minDate:C},S=b&&ce||C,P=b&&ce||O,V={disableHighlightToday:$,readOnly:T,disabled:b},K=`${o}-grid-label`,ee=ge!==null,be=M.useRef(he);M.useEffect(()=>{be.current!==he&&(ge===be.current&&Ce(he,!0),be.current=he)},[ge,Ce,he]);const Me=M.useMemo(()=>[ce],[ce]);return Se(Eut,Q({ref:n,className:vt(N.root,D),ownerState:Z},Ue,{children:[A(wut,{views:R,view:he,currentMonth:Be.currentMonth,onViewChange:pe,onMonthChange:(we,Pe)=>xe({newMonth:we,direction:Pe}),minDate:S,maxDate:P,disabled:b,disablePast:f,disableFuture:c,reduceAnimations:v,labelId:K,slots:ie,slotProps:le}),A(Tut,{reduceAnimations:v,className:N.viewTransitionContainer,transKey:he,ownerState:Z,children:Se("div",{children:[he==="year"&&A(rut,Q({},k,V,{value:ce,onChange:Fe,shouldDisableYear:I,hasFocus:ee,onFocusedViewChange:we=>Ce("year",we),yearsPerRow:Ie})),he==="month"&&A(Hlt,Q({},k,V,{hasFocus:ee,className:D,value:ce,onChange:Ge,shouldDisableMonth:w,onFocusedViewChange:we=>Ce("month",we),monthsPerRow:De})),he==="day"&&A(Rlt,Q({},Be,k,V,{onMonthSwitchingAnimationEnd:We,onFocusedDayChange:Ve,reduceAnimations:v,selectedDays:Me,onSelectedDaysChange:te,shouldDisableDate:x,shouldDisableMonth:w,shouldDisableYear:I,hasFocus:ee,onFocusedViewChange:we=>Ce("day",we),gridLabelId:K,showDaysOutsideCurrentMonth:B,fixedWeekNumber:H,dayOfWeekFormatter:q,displayWeekNumber:Ae,components:Y,componentsProps:W,slots:ie,slotProps:le,loading:fe,renderLoading:Ee}))]})})]}))}),Iut=e=>e==="year"||e==="month"||e==="day",T0=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,onChange:s,className:l,classes:u,disableFuture:c,disablePast:f,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:x,onMonthChange:w,monthsPerRow:I,onYearChange:_,yearsPerRow:R,defaultCalendarMonth:U,components:D,componentsProps:b,slots:T,slotProps:C,loading:O,renderLoading:$,disableHighlightToday:j,readOnly:L,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:q,sx:Y,autoFocus:W,fixedWeekNumber:ie,displayWeekNumber:le})=>A(kut,{view:e,onViewChange:t,views:n.filter(Iut),focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,onChange:s,className:l,classes:u,disableFuture:c,disablePast:f,minDate:p,maxDate:g,shouldDisableDate:m,shouldDisableMonth:y,shouldDisableYear:v,reduceAnimations:x,onMonthChange:w,monthsPerRow:I,onYearChange:_,yearsPerRow:R,defaultCalendarMonth:U,components:D,componentsProps:b,slots:T,slotProps:C,loading:O,renderLoading:$,disableHighlightToday:j,readOnly:L,disabled:B,showDaysOutsideCurrentMonth:H,dayOfWeekFormatter:q,sx:Y,autoFocus:W,fixedWeekNumber:ie,displayWeekNumber:le}),Put=J(mke)({[`& .${pb.container}`]:{outline:0},[`& .${pb.paper}`]:{outline:0,minWidth:Gse}}),Mut=J($G)({"&:first-of-type":{padding:0}});function Out(e){var t,n;const{children:r,onDismiss:o,open:i,slots:a,slotProps:s}=e,l=(t=a==null?void 0:a.dialog)!=null?t:Put,u=(n=a==null?void 0:a.mobileTransition)!=null?n:Ra;return A(l,Q({open:i,onClose:o},s==null?void 0:s.dialog,{TransitionComponent:u,TransitionProps:s==null?void 0:s.mobileTransition,PaperComponent:a==null?void 0:a.mobilePaper,PaperProps:s==null?void 0:s.mobilePaper,children:A(Mut,{children:r})}))}function Rut(e){return Vt("MuiPickersPopper",e)}Rt("MuiPickersPopper",["root","paper"]);const Dut=e=>{const{classes:t}=e;return Ut({root:["root"],paper:["paper"]},Rut,t)},But=J(xD,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),$ut=J(Ay,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>Q({transformOrigin:"top center",outline:0},e.placement==="top"&&{transformOrigin:"bottom center"}));function Lut(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){i.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),i.current=!1}},[e]);const a=Or(l=>{if(!i.current)return;const u=r.current;r.current=!1;const c=gi(o.current);if(!o.current||"clientX"in l&&Lut(l,c))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(o.current)>-1:f=!c.documentElement.contains(l.target)||o.current.contains(l.target),!f&&!u&&t(l)}),s=()=>{r.current=!0};return M.useEffect(()=>{if(e){const l=gi(o.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",a),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",a),l.removeEventListener("touchmove",u)}}},[e,a]),M.useEffect(()=>{if(e){const l=gi(o.current);return l.addEventListener("click",a),()=>{l.removeEventListener("click",a),r.current=!1}}},[e,a]),[o,s,s]}function Nut(e){var t,n,r,o;const i=Bt({props:e,name:"MuiPickersPopper"}),{anchorEl:a,children:s,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:p,role:g,placement:m,slots:y,slotProps:v}=i;M.useEffect(()=>{function q(Y){p&&(Y.key==="Escape"||Y.key==="Esc")&&f()}return document.addEventListener("keydown",q),()=>{document.removeEventListener("keydown",q)}},[f,p]);const x=M.useRef(null);M.useEffect(()=>{g==="tooltip"||u&&!u()||(p?x.current=K$(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[p,g,u]);const[w,I,_]=Fut(p,c??f),R=M.useRef(null),U=so(R,l),D=so(U,w),b=i,T=Dut(b),C=q=>{q.key==="Escape"&&(q.stopPropagation(),f())},O=(t=y==null?void 0:y.desktopTransition)!=null?t:PA,$=(n=y==null?void 0:y.desktopTrapFocus)!=null?n:bG,j=(r=y==null?void 0:y.desktopPaper)!=null?r:$ut,L=vo({elementType:j,externalSlotProps:v==null?void 0:v.desktopPaper,additionalProps:{tabIndex:-1,elevation:8,ref:D},className:T.paper,ownerState:{}}),B=(o=y==null?void 0:y.popper)!=null?o:But,H=vo({elementType:B,externalSlotProps:v==null?void 0:v.popper,additionalProps:{transition:!0,role:g,open:p,anchorEl:a,placement:m,onKeyDown:C},className:T.root,ownerState:i});return A(B,Q({},H,{children:({TransitionProps:q,placement:Y})=>A($,Q({open:p,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},v==null?void 0:v.desktopTrapFocus,{children:A(O,Q({},q,v==null?void 0:v.desktopTransition,{children:A(j,Q({},L,{onClick:W=>{var ie;I(W),(ie=L.onClick)==null||ie.call(L,W)},onTouchStart:W=>{var ie;_(W),(ie=L.onTouchStart)==null||ie.call(L,W)},ownerState:Q({},b,{placement:Y}),children:s}))}))}))}))}const Uut=({open:e,onOpen:t,onClose:n})=>{const r=M.useRef(typeof e=="boolean").current,[o,i]=M.useState(!1);M.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]);const a=M.useCallback(s=>{r||i(s),s&&t&&t(),!s&&n&&n()},[r,t,n]);return{isOpen:o,setIsOpen:a}},jut=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?i&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"?i?!0:n(r.lastPublishedValue):!1},Wut=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&i?a?!0:n(r.lastCommittedValue):!1},zut=e=>{const{action:t,closeOnSelect:n}=e;return t.name==="setValueFromAction"?!0:t.name==="setValueFromView"?t.selectionState==="finish"&&n:!1},Vut=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{const{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:f}=e,{current:p}=M.useRef(l),{current:g}=M.useRef(s!==void 0),m=Gr(),y=Gg(),[v,x]=ls({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:w,setIsOpen:I}=Uut(e),[_,R]=M.useState(()=>{let Ee;return s!==void 0?Ee=s:p!==void 0?Ee=p:Ee=t.emptyValue,{draft:Ee,lastPublishedValue:Ee,lastCommittedValue:Ee,lastControlledValue:s,hasBeenModifiedSinceMount:!1}});$se(Q({},e,{value:_.draft}),o,t.isSameError,t.defaultErrorState);const U=yr(Ee=>{const Ae={action:Ee,dateState:_,hasChanged:ce=>!t.areValuesEqual(m,Ee.value,ce),isControlled:g,closeOnSelect:u},Ie=jut(Ae),De=Wut(Ae),Ue=zut(Ae);if(R(ce=>Q({},ce,{draft:Ee.value,lastPublishedValue:Ie?Ee.value:ce.lastPublishedValue,lastCommittedValue:De?Ee.value:ce.lastCommittedValue,hasBeenModifiedSinceMount:!0})),Ie&&a){const de={validationError:Ee.name==="setValueFromField"?Ee.context.validationError:o({adapter:y,value:Ee.value,props:Q({},e,{value:Ee.value})})};a(Ee.value,de)}De&&i&&i(Ee.value),Ue&&I(!1)});if(s!==void 0&&(_.lastControlledValue===void 0||!t.areValuesEqual(m,_.lastControlledValue,s))){const Ee=t.areValuesEqual(m,_.draft,s);R(Ae=>Q({},Ae,{lastControlledValue:s},Ee?{}:{lastCommittedValue:s,lastPublishedValue:s,draft:s,hasBeenModifiedSinceMount:!0}))}const D=yr(()=>{U({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),b=yr(()=>{U({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),T=yr(()=>{U({value:_.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),C=yr(()=>{U({value:_.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),O=yr(()=>{U({value:t.getTodayValue(m,n),name:"setValueFromAction",pickerAction:"today"})}),$=yr(()=>I(!0)),j=yr(()=>I(!1)),L=yr((Ee,Ae="partial")=>U({name:"setValueFromView",value:Ee,selectionState:Ae})),B=yr((Ee,Ae)=>U({name:"setValueFromField",value:Ee,context:Ae})),H=yr(Ee=>{x(Ee),f==null||f(Ee)}),q={onClear:D,onAccept:b,onDismiss:T,onCancel:C,onSetToday:O,onOpen:$,onClose:j},Y={value:_.draft,onChange:B,selectedSections:v,onSelectedSectionsChange:H},W=M.useMemo(()=>t.cleanValue(m,_.draft),[m,t,_.draft]),ie={value:W,onChange:L,onClose:j,open:w,onSelectedSectionsChange:H},fe=Q({},q,{value:W,onChange:L,isValid:Ee=>{const Ae=o({adapter:y,value:Ee,props:Q({},e,{value:Ee})});return!t.hasError(Ae)}});return{open:w,fieldProps:Y,viewProps:ie,layoutProps:fe,actions:q}},Hut=["className","sx"],qut=({props:e,propsFromPickerValue:t,additionalViewProps:n,inputRef:r,autoFocusView:o})=>{const{onChange:i,open:a,onSelectedSectionsChange:s,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:p,viewRenderers:g}=e,m=lt(e,Hut),{view:y,setView:v,defaultView:x,focusedView:w,setFocusedView:I,setValueAndGoToNextView:_}=J$({view:void 0,views:u,openTo:c,onChange:i,onViewChange:f,autoFocus:o}),{hasUIView:R,viewModeLookup:U}=M.useMemo(()=>u.reduce((j,L)=>{let B;return p?B="field":g[L]!=null?B="UI":B="field",j.viewModeLookup[L]=B,B==="UI"&&(j.hasUIView=!0),j},{hasUIView:!1,viewModeLookup:{}}),[p,g,u]),D=M.useMemo(()=>u.reduce((L,B)=>g[B]!=null&&fst(B)?L+1:L,0)>1,[g,u]),b=U[y],T=yr(()=>b==="UI"),[C,O]=M.useState(b==="UI"?y:null);return C!==y&&U[y]==="UI"&&O(y),t5(()=>{b==="field"&&a&&(l(),s("hours"),setTimeout(()=>{r==null||r.current.focus()}))},[y]),t5(()=>{if(!a)return;let j=y;b==="field"&&C!=null&&(j=C),j!==x&&U[j]==="UI"&&U[x]==="UI"&&(j=x),j!==y&&v(j),I(j,!0)},[a]),{hasUIView:R,shouldRestoreFocus:T,layoutProps:{views:u,view:C,onViewChange:v},renderCurrentView:()=>{if(C==null)return null;const j=g[C];return j==null?null:j(Q({},m,n,t,{views:u,onChange:_,view:C,onViewChange:v,focusedView:w,onFocusedViewChange:I,showViewSwitcher:D}))}}};function WV(){return typeof window>"u"?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?Math.abs(window.screen.orientation.angle)===90?"landscape":"portrait":window.orientation&&Math.abs(Number(window.orientation))===90?"landscape":"portrait"}const Qut=(e,t)=>{const[n,r]=M.useState(WV);return pa(()=>{const i=()=>{r(WV())};return window.addEventListener("orientationchange",i),()=>{window.removeEventListener("orientationchange",i)}},[]),sst(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},Kut=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:o}=e,i=Qut(n.views,o);return{layoutProps:Q({},n,t,{isLandscape:i,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},Yut=(e,t="warning")=>{let n=!1;const r=Array.isArray(e)?e.join(` +`):e;return()=>{n||(n=!0,t==="error"?console.error(r):console.warn(r))}};Yut(["The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.","You can replace it with the `textField` component slot in most cases.","For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5)."]);const ole=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:o,additionalViewProps:i,validator:a,autoFocusView:s})=>{const l=Vut({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a}),u=qut({props:e,inputRef:o,additionalViewProps:i,autoFocusView:s,propsFromPickerValue:l.viewProps}),c=Kut({props:e,wrapperVariant:r,propsFromPickerValue:l.layoutProps,propsFromPickerViews:u.layoutProps});return{open:l.open,actions:l.actions,fieldProps:l.fieldProps,renderCurrentView:u.renderCurrentView,hasUIView:u.hasUIView,shouldRestoreFocus:u.shouldRestoreFocus,layoutProps:c.layoutProps}};function ile(e){return Vt("MuiPickersLayout",e)}const nM=Rt("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","shortcuts"]),Gut=["onAccept","onClear","onCancel","onSetToday","actions"];function Jut(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=lt(e,Gut),s=Mc();if(i==null||i.length===0)return null;const l=i==null?void 0:i.map(u=>{switch(u){case"clear":return A(Y1,{onClick:n,children:s.clearButtonLabel},u);case"cancel":return A(Y1,{onClick:r,children:s.cancelButtonLabel},u);case"accept":return A(Y1,{onClick:t,children:s.okButtonLabel},u);case"today":return A(Y1,{onClick:o,children:s.todayButtonLabel},u);default:return null}});return A(xke,Q({},a,{children:l}))}const Xut=["items","isLandscape","onChange","isValid"];function Zut(e){const{items:t,onChange:n,isValid:r}=e,o=lt(e,Xut);if(t==null||t.length===0)return null;const i=t.map(a=>{const s=a.getValue({isValid:r});return{label:a.label,onClick:()=>{n(s)},disabled:!r(s)}});return A(qG,Q({dense:!0,sx:[{maxHeight:Jse,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:i.map(a=>A(M4e,{children:A(cc,Q({},a))},a.label))}))}function ect(e){return e.view!==null}const tct=e=>{const{classes:t,isLandscape:n}=e;return Ut({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},ile,t)},nct=e=>{var t,n;const{wrapperVariant:r,onAccept:o,onClear:i,onCancel:a,onSetToday:s,view:l,views:u,onViewChange:c,value:f,onChange:p,isValid:g,isLandscape:m,disabled:y,readOnly:v,children:x,components:w,componentsProps:I,slots:_,slotProps:R}=e,U=_??G$(w),D=R??I,b=tct(e),T=(t=U==null?void 0:U.actionBar)!=null?t:Jut,C=vo({elementType:T,externalSlotProps:D==null?void 0:D.actionBar,additionalProps:{onAccept:o,onClear:i,onCancel:a,onSetToday:s,actions:r==="desktop"?[]:["cancel","accept"],className:b.actionBar},ownerState:Q({},e,{wrapperVariant:r})}),O=A(T,Q({},C)),$=U==null?void 0:U.toolbar,j=vo({elementType:$,externalSlotProps:D==null?void 0:D.toolbar,additionalProps:{isLandscape:m,onChange:p,value:f,view:l,onViewChange:c,views:u,disabled:y,readOnly:v,className:b.toolbar},ownerState:Q({},e,{wrapperVariant:r})}),L=ect(j)&&$?A($,Q({},j)):null,B=x,H=U==null?void 0:U.tabs,q=l&&H?A(H,Q({view:l,onViewChange:c},D==null?void 0:D.tabs)):null,Y=(n=U==null?void 0:U.shortcuts)!=null?n:Zut,W=vo({elementType:Y,externalSlotProps:D==null?void 0:D.shortcuts,additionalProps:{isValid:g,isLandscape:m,onChange:p,className:b.shortcuts},ownerState:{isValid:g,isLandscape:m,onChange:p,className:b.shortcuts,wrapperVariant:r}}),ie=l&&Y?A(Y,Q({},W)):null;return{toolbar:L,content:B,tabs:q,actionBar:O,shortcuts:ie}},rct=nct,oct=e=>{const{isLandscape:t,classes:n}=e;return Ut({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},ile,n)},ale=J("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${nM.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${nM.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${nM.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));ale.propTypes={as:ue.elementType,ownerState:ue.shape({isLandscape:ue.bool.isRequired}).isRequired,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object])};const ict=J("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),sle=function(t){const n=Bt({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:s}=rct(n),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:p}=n,g=n,m=oct(g);return Se(ale,{ref:f,sx:l,className:vt(u,m.root),ownerState:g,children:[c?s:r,c?r:s,A(ict,{className:m.contentWrapper,children:p==="desktop"?Se(M.Fragment,{children:[o,i]}):Se(M.Fragment,{children:[i,o]})}),a]})},act=["disablePast","disableFuture","minDate","maxDate","minTime","maxTime","minDateTime","maxDateTime","shouldDisableDate","shouldDisableMonth","shouldDisableYear","shouldDisableClock","shouldDisableTime","minuteStep"],lle=e=>act.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});var ule={};Object.defineProperty(ule,"__esModule",{value:!0});var cle=ule.default=uct,r5=sct(M);function dle(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(dle=function(r){return r?n:t})(e)}function sct(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=dle(t);if(n&&n.has(e))return n.get(e);var r={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}let zV=0;function lct(e){const[t,n]=r5.useState(e),r=e||t;return r5.useEffect(()=>{t==null&&(zV+=1,n(`mui-${zV}`))},[t]),r}const VV=r5["useId"];function uct(e){if(VV!==void 0){const t=VV();return e??t}return lct(e)}const cct=["props","getOpenDialogAriaText"],dct=["ownerState"],fct=["ownerState"],pct=e=>{var t,n,r,o,i;let{props:a,getOpenDialogAriaText:s}=e,l=lt(e,cct);const{slots:u,slotProps:c,className:f,sx:p,format:g,formatDensity:m,label:y,inputRef:v,readOnly:x,disabled:w,autoFocus:I,localeText:_}=a,R=Gr(),U=M.useRef(null),D=M.useRef(null),b=cle(),T=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:C,actions:O,hasUIView:$,layoutProps:j,renderCurrentView:L,shouldRestoreFocus:B,fieldProps:H}=ole(Q({},l,{props:a,inputRef:U,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),q=(r=u.inputAdornment)!=null?r:RIe,Y=vo({elementType:q,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:a}),W=lt(Y,dct),ie=(o=u.openPickerButton)!=null?o:Vd,le=vo({elementType:ie,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:w||x,onClick:O.onOpen,"aria-label":s(H.value,R),edge:W.position},ownerState:a}),fe=lt(le,fct),Ee=u.openPickerIcon,Ae=u.field,Ie=vo({elementType:Ae,externalSlotProps:c==null?void 0:c.field,additionalProps:Q({},H,T&&{id:b},{readOnly:x,disabled:w,className:f,sx:p,format:g,formatDensity:m,label:y,autoFocus:I&&!a.open}),ownerState:a});$&&(Ie.InputProps=Q({},Ie.InputProps,{ref:D,[`${W.position}Adornment`]:A(q,Q({},W,{children:A(ie,Q({},fe,{children:A(Ee,Q({},c==null?void 0:c.openPickerIcon))}))}))}));const De=Q({textField:u.textField},Ie.slots),Ue=(i=u.layout)!=null?i:sle,ce=Q$(U,Ie.inputRef,v);let de=b;T&&(y?de=`${b}-label`:de=void 0);const ve=Q({},c,{toolbar:Q({},c==null?void 0:c.toolbar,{titleId:b}),popper:Q({"aria-labelledby":de},c==null?void 0:c.popper)});return{renderPicker:()=>Se(z$,{localeText:_,children:[A(Ae,Q({},Ie,{slots:De,slotProps:ve,inputRef:ce})),A(Nut,Q({role:"dialog",placement:"bottom-start",anchorEl:D.current},O,{open:C,slots:u,slotProps:ve,shouldRestoreFocus:B,children:A(Ue,Q({},j,ve==null?void 0:ve.layout,{slots:u,slotProps:ve,children:L()}))}))]})}},fle=M.forwardRef(function(t,n){var r,o,i,a;const s=Mc(),l=Kse(t,"MuiDesktopDateTimePicker"),u=Q({day:T0,month:T0,year:T0,hours:null,minutes:null,seconds:null},l.viewRenderers),c=(r=l.ampmInClock)!=null?r:!0,f=Q({},l,{viewRenderers:u,yearsPerRow:(o=l.yearsPerRow)!=null?o:4,ampmInClock:c,slots:Q({field:Wse,openPickerIcon:_st},l.slots),slotProps:Q({},l.slotProps,{field:g=>{var m;return Q({},nw((m=l.slotProps)==null?void 0:m.field,g),lle(l),{ref:n,ampm:l.ampm})},toolbar:Q({hidden:!0,ampmInClock:c},(i=l.slotProps)==null?void 0:i.toolbar),tabs:Q({hidden:!0},(a=l.slotProps)==null?void 0:a.tabs)})}),{renderPicker:p}=pct({props:f,valueManager:q$,valueType:"date-time",getOpenDialogAriaText:s.openDatePickerDialogue,validator:Y$});return p()});fle.propTypes={ampm:ue.bool,ampmInClock:ue.bool,autoFocus:ue.bool,className:ue.string,closeOnSelect:ue.bool,components:ue.object,componentsProps:ue.object,dayOfWeekFormatter:ue.func,defaultCalendarMonth:ue.any,defaultValue:ue.any,disabled:ue.bool,disableFuture:ue.bool,disableHighlightToday:ue.bool,disableIgnoringDatePartForTimeValidation:ue.bool,disableOpenPicker:ue.bool,disablePast:ue.bool,displayWeekNumber:ue.bool,fixedWeekNumber:ue.number,format:ue.string,formatDensity:ue.oneOf(["dense","spacious"]),inputRef:ue.oneOfType([ue.func,ue.shape({current:ue.object})]),label:ue.node,loading:ue.bool,localeText:ue.object,maxDate:ue.any,maxDateTime:ue.any,maxTime:ue.any,minDate:ue.any,minDateTime:ue.any,minTime:ue.any,minutesStep:ue.number,monthsPerRow:ue.oneOf([3,4]),onAccept:ue.func,onChange:ue.func,onClose:ue.func,onError:ue.func,onMonthChange:ue.func,onOpen:ue.func,onSelectedSectionsChange:ue.func,onViewChange:ue.func,onYearChange:ue.func,open:ue.bool,openTo:ue.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:ue.oneOf(["landscape","portrait"]),readOnly:ue.bool,reduceAnimations:ue.bool,renderLoading:ue.func,selectedSections:ue.oneOfType([ue.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ue.number,ue.shape({endIndex:ue.number.isRequired,startIndex:ue.number.isRequired})]),shouldDisableClock:ue.func,shouldDisableDate:ue.func,shouldDisableMonth:ue.func,shouldDisableTime:ue.func,shouldDisableYear:ue.func,showDaysOutsideCurrentMonth:ue.bool,slotProps:ue.object,slots:ue.object,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),value:ue.any,view:ue.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:ue.shape({day:ue.func,hours:ue.func,minutes:ue.func,month:ue.func,seconds:ue.func,year:ue.func}),views:ue.arrayOf(ue.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ue.oneOf([3,4])};const hct=["props","getOpenDialogAriaText"],gct=e=>{var t,n,r;let{props:o,getOpenDialogAriaText:i}=e,a=lt(e,hct);const{slots:s,slotProps:l,className:u,sx:c,format:f,formatDensity:p,label:g,inputRef:m,readOnly:y,disabled:v,localeText:x}=o,w=Gr(),I=M.useRef(null),_=cle(),R=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:U,actions:D,layoutProps:b,renderCurrentView:T,fieldProps:C}=ole(Q({},a,{props:o,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),O=s.field,$=vo({elementType:O,externalSlotProps:l==null?void 0:l.field,additionalProps:Q({},C,R&&{id:_},!(v||y)&&{onClick:D.onOpen,onKeyDown:lst(D.onOpen)},{readOnly:y??!0,disabled:v,className:u,sx:c,format:f,formatDensity:p,label:g}),ownerState:o});$.inputProps=Q({},$.inputProps,{"aria-label":i(C.value,w)});const j=Q({textField:s.textField},$.slots),L=(r=s.layout)!=null?r:sle,B=Q$(I,$.inputRef,m);let H=_;R&&(g?H=`${_}-label`:H=void 0);const q=Q({},l,{toolbar:Q({},l==null?void 0:l.toolbar,{titleId:_}),mobilePaper:Q({"aria-labelledby":H},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>Se(z$,{localeText:x,children:[A(O,Q({},$,{slots:j,slotProps:q,inputRef:B})),A(Out,Q({},D,{open:U,slots:s,slotProps:q,children:A(L,Q({},b,q==null?void 0:q.layout,{slots:s,slotProps:q,children:T()}))}))]})}};function mct(e){return Vt("MuiTimeClock",e)}Rt("MuiTimeClock",["root","arrowSwitcher"]);const ly=220,op=36,Aw={x:ly/2,y:ly/2},ple={x:Aw.x,y:0},yct=ple.x-Aw.x,vct=ple.y-Aw.y,bct=e=>e*(180/Math.PI),hle=(e,t,n)=>{const r=t-Aw.x,o=n-Aw.y,i=Math.atan2(yct,vct)-Math.atan2(r,o);let a=bct(i);a=Math.round(a/e)*e,a%=360;const s=Math.floor(a/e)||0,l=r**2+o**2,u=Math.sqrt(l);return{value:s,distance:u}},wct=(e,t,n=1)=>{const r=n*6;let{value:o}=hle(r,e,t);return o=o*n%60,o},Sct=(e,t,n)=>{const{value:r,distance:o}=hle(30,e,t);let i=r||12;return n?i%=12:o{const{classes:t}=e;return Ut({root:["root"],thumb:["thumb"]},xct,t)},_ct=J("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>Q({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px"},t.shouldAnimate&&{transition:e.transitions.create(["transform","height"])})),Ect=J("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>Q({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${op/2}px)`,border:`${(op-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function Tct(e){const t=Bt({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:o,viewValue:i}=t,a=lt(t,Cct),s=M.useRef(o);M.useEffect(()=>{s.current=o},[o]);const l=Q({},t,{shouldAnimate:s.current!==o}),u=Act(l);return A(_ct,Q({style:(()=>{let p=360/(o==="hours"?12:60)*i;return o==="hours"&&i>12&&(p-=360),{height:Math.round((r?.26:.4)*ly),transform:`rotateZ(${p}deg)`}})(),className:vt(n,u.root),ownerState:l},a,{children:A(Ect,{ownerState:l,className:u.thumb})}))}function kct(e){return Vt("MuiClock",e)}Rt("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton"]);const Ict=e=>{const{classes:t}=e;return Ut({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"]},kct,t)},Pct=J("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),Mct=J("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),Oct=J("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),Rct=J("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>Q({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none"},e.disabled?{}:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}})),Dct=J("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Bct=J(Vd,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>Q({zIndex:1,position:"absolute",bottom:8,left:8},t.meridiemMode==="am"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}})),$ct=J(Vd,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>Q({zIndex:1,position:"absolute",bottom:8,right:8},t.meridiemMode==="pm"&&{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}));function Lct(e){const t=Bt({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:f,selectedId:p,type:g,viewValue:m,disabled:y,readOnly:v,className:x}=t,w=t,I=Gr(),_=Mc(),R=M.useRef(!1),U=Ict(w),D=l(m,g),b=!n&&g==="hours"&&(m<1||m>12),T=(W,ie)=>{y||v||l(W,g)||f(W,ie)},C=(W,ie)=>{let{offsetX:le,offsetY:fe}=W;if(le===void 0){const Ae=W.target.getBoundingClientRect();le=W.changedTouches[0].clientX-Ae.left,fe=W.changedTouches[0].clientY-Ae.top}const Ee=g==="seconds"||g==="minutes"?wct(le,fe,c):Sct(le,fe,!!n);T(Ee,ie)},O=W=>{R.current=!0,C(W,"shallow")},$=W=>{R.current&&(C(W,"finish"),R.current=!1)},j=W=>{W.buttons>0&&C(W.nativeEvent,"shallow")},L=W=>{R.current&&(R.current=!1),C(W.nativeEvent,"finish")},B=M.useMemo(()=>g==="hours"?!0:m%5===0,[g,m]),H=g==="minutes"?c:1,q=M.useRef(null);pa(()=>{o&&q.current.focus()},[o]);const Y=W=>{if(!R.current)switch(W.key){case"Home":T(0,"partial"),W.preventDefault();break;case"End":T(g==="minutes"?59:23,"partial"),W.preventDefault();break;case"ArrowUp":T(m+H,"partial"),W.preventDefault();break;case"ArrowDown":T(m-H,"partial"),W.preventDefault();break}};return Se(Pct,{className:vt(x,U.root),children:[Se(Mct,{className:U.clock,children:[A(Rct,{onTouchMove:O,onTouchEnd:$,onMouseUp:L,onMouseMove:j,ownerState:{disabled:y},className:U.squareMask}),!D&&Se(M.Fragment,{children:[A(Dct,{className:U.pin}),a!=null&&A(Tct,{type:g,viewValue:m,isInner:b,hasSelected:B})]}),A(Oct,{"aria-activedescendant":p,"aria-label":_.clockLabelText(g,a,I),ref:q,role:"listbox",onKeyDown:Y,tabIndex:0,className:U.wrapper,children:i})]}),n&&r&&Se(M.Fragment,{children:[A(Bct,{onClick:v?void 0:()=>s("am"),disabled:y||u===null,ownerState:w,className:U.amButton,children:A(At,{variant:"caption",children:"AM"})}),A($ct,{disabled:y||u===null,onClick:v?void 0:()=>s("pm"),ownerState:w,className:U.pmButton,children:A(At,{variant:"caption",children:"PM"})})]})]})}function Fct(e){return Vt("MuiClockNumber",e)}const Y2=Rt("MuiClockNumber",["root","selected","disabled"]),Nct=["className","disabled","index","inner","label","selected"],Uct=e=>{const{classes:t,selected:n,disabled:r}=e;return Ut({root:["root",n&&"selected",r&&"disabled"]},Fct,t)},jct=J("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${Y2.disabled}`]:t.disabled},{[`&.${Y2.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>Q({height:op,width:op,position:"absolute",left:`calc((100% - ${op}px) / 2)`,display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${Y2.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${Y2.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function gle(e){const t=Bt({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=lt(t,Nct),u=t,c=Uct(u),f=o%12/12*Math.PI*2-Math.PI/2,p=(ly-op-2)/2*(i?.65:1),g=Math.round(Math.cos(f)*p),m=Math.round(Math.sin(f)*p);return A(jct,Q({className:vt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":s?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${m+(ly-op)/2}px`},ownerState:u},l,{children:a}))}const Wct=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{const a=t?i.getHours(t):null,s=[],l=e?1:0,u=e?12:23,c=f=>a===null?!1:e?f===12?a===12||a===0:a===f||a-12===f:a===f;for(let f=l;f<=u;f+=1){let p=f.toString();f===0&&(p="00");const g=!e&&(f===0||f>12);p=i.formatNumber(p);const m=c(f);s.push(A(gle,{id:m?o:void 0,index:f,inner:g,selected:m,disabled:r(f),label:p,"aria-label":n(p)},f))}return s},HV=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{const i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([a,s],l)=>{const u=a===t;return A(gle,{label:s,id:u?o:void 0,index:l+1,inner:!1,disabled:n(a),selected:u,"aria-label":r(s)},a)})},zct=["ampm","ampmInClock","autoFocus","components","componentsProps","slots","slotProps","value","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableClock","shouldDisableTime","showViewSwitcher","onChange","defaultValue","view","views","openTo","onViewChange","className","disabled","readOnly"],Vct=e=>{const{classes:t}=e;return Ut({root:["root"],arrowSwitcher:["arrowSwitcher"]},mct,t)},Hct=J(rle,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),qct=J(nle,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),Qct=M.forwardRef(function(t,n){const r=Mc(),o=pv(),i=Gr(),a=Bt({props:t,name:"MuiTimeClock"}),{ampm:s=i.is12HourCycleInCurrentLocale(),ampmInClock:l=!1,autoFocus:u,components:c,componentsProps:f,slots:p,slotProps:g,value:m,disableIgnoringDatePartForTimeValidation:y=!1,maxTime:v,minTime:x,disableFuture:w,disablePast:I,minutesStep:_=1,shouldDisableClock:R,shouldDisableTime:U,showViewSwitcher:D,onChange:b,defaultValue:T,view:C,views:O=["hours","minutes"],openTo:$,onViewChange:j,className:L,disabled:B,readOnly:H}=a,q=lt(a,zct),Y=p??G$(c),W=g??f,[ie,le]=ls({name:"DateCalendar",state:"value",controlled:m,default:T??null}),fe=yr((Ne,Be)=>{le(Ne),b==null||b(Ne,Be)}),{view:Ee,setView:Ae,previousView:Ie,nextView:De,setValueAndGoToNextView:Ue}=J$({view:C,views:O,openTo:$,onViewChange:j,onChange:fe}),ce=M.useMemo(()=>ie||i.setSeconds(i.setMinutes(i.setHours(o,0),0),0),[ie,o,i]),{meridiemMode:de,handleMeridiemChange:ve}=Hse(ce,s,Ue),he=M.useCallback((Ne,Be)=>{const Ve=jse(y,i),wt=Be==="hours"||Be==="minutes"&&O.includes("seconds"),xe=({start:We,end:Ge})=>!(x&&Ve(x,Ge)||v&&Ve(We,v)||w&&Ve(We,o)||I&&Ve(o,wt?Ge:We)),je=(We,Ge=1)=>{if(We%Ge!==0||R!=null&&R(We,Be))return!1;if(U)switch(Be){case"hours":return!U(i.setHours(ce,We),"hours");case"minutes":return!U(i.setMinutes(ce,We),"minutes");case"seconds":return!U(i.setSeconds(ce,We),"seconds");default:return!1}return!0};switch(Be){case"hours":{const We=n5(Ne,de,s),Ge=i.setHours(ce,We),Fe=i.setSeconds(i.setMinutes(Ge,0),0),te=i.setSeconds(i.setMinutes(Ge,59),59);return!xe({start:Fe,end:te})||!je(We)}case"minutes":{const We=i.setMinutes(ce,Ne),Ge=i.setSeconds(We,0),Fe=i.setSeconds(We,59);return!xe({start:Ge,end:Fe})||!je(Ne,_)}case"seconds":{const We=i.setSeconds(ce,Ne);return!xe({start:We,end:We})||!je(Ne)}default:throw new Error("not supported")}},[s,ce,y,v,de,x,_,R,U,i,w,I,o,O]),pe=Xw(),ge=M.useMemo(()=>{switch(Ee){case"hours":{const Ne=(Be,Ve)=>{const wt=n5(Be,de,s);Ue(i.setHours(ce,wt),Ve)};return{onChange:Ne,viewValue:i.getHours(ce),children:Wct({value:ie,utils:i,ampm:s,onChange:Ne,getClockNumberText:r.hoursClockNumberText,isDisabled:Be=>B||he(Be,"hours"),selectedId:pe})}}case"minutes":{const Ne=i.getMinutes(ce),Be=(Ve,wt)=>{Ue(i.setMinutes(ce,Ve),wt)};return{viewValue:Ne,onChange:Be,children:HV({utils:i,value:Ne,onChange:Be,getClockNumberText:r.minutesClockNumberText,isDisabled:Ve=>B||he(Ve,"minutes"),selectedId:pe})}}case"seconds":{const Ne=i.getSeconds(ce),Be=(Ve,wt)=>{Ue(i.setSeconds(ce,Ve),wt)};return{viewValue:Ne,onChange:Be,children:HV({utils:i,value:Ne,onChange:Be,getClockNumberText:r.secondsClockNumberText,isDisabled:Ve=>B||he(Ve,"seconds"),selectedId:pe})}}default:throw new Error("You must provide the type for ClockView")}},[Ee,i,ie,s,r.hoursClockNumberText,r.minutesClockNumberText,r.secondsClockNumberText,de,Ue,ce,he,pe,B]),Ce=a,_e=Vct(Ce);return Se(Hct,Q({ref:n,className:vt(_e.root,L),ownerState:Ce},q,{children:[A(Lct,Q({autoFocus:u,ampmInClock:l&&O.includes("hours"),value:ie,type:Ee,ampm:s,minutesStep:_,isTimeDisabled:he,meridiemMode:de,handleMeridiemChange:ve,selectedId:pe,disabled:B,readOnly:H},ge)),D&&A(qct,{className:_e.arrowSwitcher,slots:Y,slotProps:W,onGoToPrevious:()=>Ae(Ie),isPreviousDisabled:!Ie,previousLabel:r.openPreviousView,onGoToNext:()=>Ae(De),isNextDisabled:!De,nextLabel:r.openNextView,ownerState:Ce})]}))}),Kct=e=>e==="hours"||e==="minutes"||e==="seconds",rM=({view:e,onViewChange:t,views:n,value:r,defaultValue:o,onChange:i,className:a,classes:s,disableFuture:l,disablePast:u,minTime:c,maxTime:f,shouldDisableTime:p,shouldDisableClock:g,minutesStep:m,ampm:y,ampmInClock:v,components:x,componentsProps:w,slots:I,slotProps:_,readOnly:R,disabled:U,sx:D,autoFocus:b,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:C})=>A(Qct,{view:e,onViewChange:t,views:n.filter(Kct),value:r,defaultValue:o,onChange:i,className:a,classes:s,disableFuture:l,disablePast:u,minTime:c,maxTime:f,shouldDisableTime:p,shouldDisableClock:g,minutesStep:m,ampm:y,ampmInClock:v,components:x,componentsProps:w,slots:I,slotProps:_,readOnly:R,disabled:U,sx:D,autoFocus:b,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:C}),mle=M.forwardRef(function(t,n){var r,o,i;const a=Mc(),s=Kse(t,"MuiMobileDateTimePicker"),l=Q({day:T0,month:T0,year:T0,hours:rM,minutes:rM,seconds:rM},s.viewRenderers),u=(r=s.ampmInClock)!=null?r:!1,c=Q({},s,{viewRenderers:l,ampmInClock:u,slots:Q({field:Wse},s.slots),slotProps:Q({},s.slotProps,{field:p=>{var g;return Q({},nw((g=s.slotProps)==null?void 0:g.field,p),lle(s),{ref:n,ampm:s.ampm})},toolbar:Q({hidden:!1,ampmInClock:u},(o=s.slotProps)==null?void 0:o.toolbar),tabs:Q({hidden:!1},(i=s.slotProps)==null?void 0:i.tabs)})}),{renderPicker:f}=gct({props:c,valueManager:q$,valueType:"date-time",getOpenDialogAriaText:a.openDatePickerDialogue,validator:Y$});return f()});mle.propTypes={ampm:ue.bool,ampmInClock:ue.bool,autoFocus:ue.bool,className:ue.string,closeOnSelect:ue.bool,components:ue.object,componentsProps:ue.object,dayOfWeekFormatter:ue.func,defaultCalendarMonth:ue.any,defaultValue:ue.any,disabled:ue.bool,disableFuture:ue.bool,disableHighlightToday:ue.bool,disableIgnoringDatePartForTimeValidation:ue.bool,disableOpenPicker:ue.bool,disablePast:ue.bool,displayWeekNumber:ue.bool,fixedWeekNumber:ue.number,format:ue.string,formatDensity:ue.oneOf(["dense","spacious"]),inputRef:ue.oneOfType([ue.func,ue.shape({current:ue.object})]),label:ue.node,loading:ue.bool,localeText:ue.object,maxDate:ue.any,maxDateTime:ue.any,maxTime:ue.any,minDate:ue.any,minDateTime:ue.any,minTime:ue.any,minutesStep:ue.number,monthsPerRow:ue.oneOf([3,4]),onAccept:ue.func,onChange:ue.func,onClose:ue.func,onError:ue.func,onMonthChange:ue.func,onOpen:ue.func,onSelectedSectionsChange:ue.func,onViewChange:ue.func,onYearChange:ue.func,open:ue.bool,openTo:ue.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:ue.oneOf(["landscape","portrait"]),readOnly:ue.bool,reduceAnimations:ue.bool,renderLoading:ue.func,selectedSections:ue.oneOfType([ue.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),ue.number,ue.shape({endIndex:ue.number.isRequired,startIndex:ue.number.isRequired})]),shouldDisableClock:ue.func,shouldDisableDate:ue.func,shouldDisableMonth:ue.func,shouldDisableTime:ue.func,shouldDisableYear:ue.func,showDaysOutsideCurrentMonth:ue.bool,slotProps:ue.object,slots:ue.object,sx:ue.oneOfType([ue.arrayOf(ue.oneOfType([ue.func,ue.object,ue.bool])),ue.func,ue.object]),value:ue.any,view:ue.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:ue.shape({day:ue.func,hours:ue.func,minutes:ue.func,month:ue.func,seconds:ue.func,year:ue.func}),views:ue.arrayOf(ue.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:ue.oneOf([3,4])};const Yct=["desktopModeMediaQuery"],Gct=M.forwardRef(function(t,n){const r=Bt({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:o=ust}=r,i=lt(r,Yct);return rT(o,{defaultMatches:!0})?A(fle,Q({ref:n},i)):A(mle,Q({ref:n},i))});function Jct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 0 1-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]})(e)}function yle(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"defs",attr:{},child:[{tag:"clipPath",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M124-288l388-672 388 672H124z",clipRule:"evenodd"}}]}]},{tag:"path",attr:{d:"M508 624a112 112 0 0 0 112-112c0-3.28-.15-6.53-.43-9.74L498.26 623.57c3.21.28 6.45.43 9.74.43zm370.72-458.44L836 122.88a8 8 0 0 0-11.31 0L715.37 232.23Q624.91 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.7 119.43 136.55 191.45L112.56 835a8 8 0 0 0 0 11.31L155.25 889a8 8 0 0 0 11.31 0l712.16-712.12a8 8 0 0 0 0-11.32zM332 512a176 176 0 0 1 258.88-155.28l-48.62 48.62a112.08 112.08 0 0 0-140.92 140.92l-48.62 48.62A175.09 175.09 0 0 1 332 512z"}},{tag:"path",attr:{d:"M942.2 486.2Q889.4 375 816.51 304.85L672.37 449A176.08 176.08 0 0 1 445 676.37L322.74 798.63Q407.82 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5z"}}]})(e)}function Xct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]})(e)}function Zct(e){return er({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]})(e)}function vle(e){return er({tag:"svg",attr:{t:"1551322312294",style:"",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M474 152m8 0l60 0q8 0 8 8l0 704q0 8-8 8l-60 0q-8 0-8-8l0-704q0-8 8-8Z"}},{tag:"path",attr:{d:"M168 474m8 0l672 0q8 0 8 8l0 60q0 8-8 8l-672 0q-8 0-8-8l0-60q0-8 8-8Z"}}]})(e)}function X$(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Jg=X$();function ble(e){Jg=e}const wle=/[&<>"']/,edt=new RegExp(wle.source,"g"),Sle=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,tdt=new RegExp(Sle.source,"g"),ndt={"&":"&","<":"<",">":">",'"':""","'":"'"},qV=e=>ndt[e];function Ts(e,t){if(t){if(wle.test(e))return e.replace(edt,qV)}else if(Sle.test(e))return e.replace(tdt,qV);return e}const rdt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function odt(e){return e.replace(rdt,(t,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const idt=/(^|[^\[])\^/g;function Ar(e,t){e=typeof e=="string"?e:e.source,t=t||"";const n={replace:(r,o)=>(o=typeof o=="object"&&"source"in o?o.source:o,o=o.replace(idt,"$1"),e=e.replace(r,o),n),getRegex:()=>new RegExp(e,t)};return n}function QV(e){try{e=encodeURI(e).replace(/%25/g,"%")}catch{return null}return e}const y_={exec:()=>null};function KV(e,t){const n=e.replace(/\|/g,(i,a,s)=>{let l=!1,u=a;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(/ \|/);let o=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const i=o.match(/^\s+/);if(i===null)return o;const[a]=i;return a.length>=r.length?o.slice(r.length):o}).join(` -`)}class v_{constructor(t){gr(this,"options");gr(this,"rules");gr(this,"lexer");this.options=t||Jg}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Gx(r,` -`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=Vct(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=Gx(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=Gx(n[0].replace(/^ *>[ \t]?/gm,""),` +`)}class v_{constructor(t){gr(this,"options");gr(this,"rules");gr(this,"lexer");this.options=t||Jg}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:G2(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],o=sdt(r,n[3]||"");return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:o}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(/#$/.test(r)){const o=G2(r,"#");(this.options.pedantic||!o||/ $/.test(o))&&(r=o.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:n[0]}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){const r=G2(n[0].replace(/^ *>[ \t]?/gm,""),` `),o=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=o,{type:"blockquote",raw:n[0],tokens:i,text:r}}}list(t){let n=this.rules.block.list.exec(t);if(n){let r=n[1].trim();const o=r.length>1,i={type:"list",raw:"",ordered:o,start:o?+r.slice(0,-1):"",loose:!1,items:[]};r=o?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=o?r:"[*+-]");const a=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let s="",l="",u=!1;for(;t;){let c=!1;if(!(n=a.exec(t))||this.rules.block.hr.test(t))break;s=n[0],t=t.substring(s.length);let f=n[2].split(` `,1)[0].replace(/^\t+/,x=>" ".repeat(3*x.length)),p=t.split(` `,1)[0],g=0;this.options.pedantic?(g=2,l=f.trimStart()):(g=n[2].search(/[^ ]/),g=g>4?1:g,l=f.slice(g),g+=n[1].length);let m=!1;if(!f&&/^ *$/.test(p)&&(s+=p+` @@ -572,8 +572,8 @@ Je.version="2.29.4";int(lo);Je.fn=St;Je.min=qrt;Je.max=Qrt;Je.now=Krt;Je.utc=Ic; `+p}!m&&!p.trim()&&(m=!0),s+=R+` `,t=t.substring(R.length+1),f=p.slice(g)}}i.loose||(u?i.loose=!0:/\n *\n *$/.test(s)&&(u=!0));let y=null,v;this.options.gfm&&(y=/^\[[ xX]\] /.exec(l),y&&(v=y[0]!=="[ ] ",l=l.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:s,task:!!y,checked:v,loose:!1,text:l,tokens:[]}),i.raw+=s}i.items[i.items.length-1].raw=s.trimEnd(),i.items[i.items.length-1].text=l.trimEnd(),i.raw=i.raw.trimEnd();for(let c=0;cg.type==="space"),p=f.length>0&&f.some(g=>/\n.*\n/.test(g.raw));i.loose=p}if(i.loose)for(let c=0;c$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:r,raw:n[0],href:o,title:i}}}table(t){const n=this.rules.block.table.exec(t);if(n){if(!/[:|]/.test(n[2]))return;const r={type:"table",raw:n[0],header:KV(n[1]).map(o=>({text:o,tokens:[]})),align:n[2].replace(/^\||\| *$/g,"").split("|"),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(` `):[]};if(r.header.length===r.align.length){let o=r.align.length,i,a,s,l;for(i=0;i({text:u,tokens:[]}));for(o=r.header.length,a=0;a/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const a=Gx(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=zct(n[2],"()");if(a>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),YV(n,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=n[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return YV(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const a=[...o[0]].length-1;let s,l,u=a,c=0;const f=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+a);(o=f.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=[...s].length,o[3]||o[4]){u+=l;continue}else if((o[5]||o[6])&&a%3&&!((a+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const p=[...o[0]][0].length,g=t.slice(0,a+o.index+p+l);if(Math.min(a,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Ts(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=Ts(n[1]),o="mailto:"+r):(r=Ts(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=Ts(n[0]),o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(i!==n[0]);r=Ts(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ts(n[0]),{type:"text",raw:n[0],text:r}}}}const en={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:y_,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};en._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;en._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;en.def=Ar(en.def).replace("label",en._label).replace("title",en._title).getRegex();en.bullet=/(?:[*+-]|\d{1,9}[.)])/;en.listItemStart=Ar(/^( *)(bull) */).replace("bull",en.bullet).getRegex();en.list=Ar(en.list).replace(/bull/g,en.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+en.def.source+")").getRegex();en._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";en._comment=/|$)/;en.html=Ar(en.html,"i").replace("comment",en._comment).replace("tag",en._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();en.lheading=Ar(en.lheading).replace(/bull/g,en.bullet).getRegex();en.paragraph=Ar(en._paragraph).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.blockquote=Ar(en.blockquote).replace("paragraph",en.paragraph).getRegex();en.normal={...en};en.gfm={...en.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};en.gfm.table=Ar(en.gfm.table).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.gfm.paragraph=Ar(en._paragraph).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",en.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.pedantic={...en.normal,html:Ar(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",en._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ar(en.normal._paragraph).replace("hr",en.hr).replace("heading",` *#{1,6} *[^ -]`).replace("lheading",en.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Mt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y_,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:y_,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Mt.punctuation=Ar(Mt.punctuation,"u").replace(/punctuation/g,Mt._punctuation).getRegex();Mt.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Mt.anyPunctuation=/\\[punct]/g;Mt._escapes=/\\([punct])/g;Mt._comment=Ar(en._comment).replace("(?:-->|$)","-->").getRegex();Mt.emStrong.lDelim=Ar(Mt.emStrong.lDelim,"u").replace(/punct/g,Mt._punctuation).getRegex();Mt.emStrong.rDelimAst=Ar(Mt.emStrong.rDelimAst,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt.emStrong.rDelimUnd=Ar(Mt.emStrong.rDelimUnd,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt.anyPunctuation=Ar(Mt.anyPunctuation,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt._escapes=Ar(Mt._escapes,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Mt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Mt.autolink=Ar(Mt.autolink).replace("scheme",Mt._scheme).replace("email",Mt._email).getRegex();Mt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Mt.tag=Ar(Mt.tag).replace("comment",Mt._comment).replace("attribute",Mt._attribute).getRegex();Mt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Mt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Mt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Mt.link=Ar(Mt.link).replace("label",Mt._label).replace("href",Mt._href).replace("title",Mt._title).getRegex();Mt.reflink=Ar(Mt.reflink).replace("label",Mt._label).replace("ref",en._label).getRegex();Mt.nolink=Ar(Mt.nolink).replace("ref",en._label).getRegex();Mt.reflinkSearch=Ar(Mt.reflinkSearch,"g").replace("reflink",Mt.reflink).replace("nolink",Mt.nolink).getRegex();Mt.normal={...Mt};Mt.pedantic={...Mt.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ar(/^!?\[(label)\]\((.*?)\)/).replace("label",Mt._label).getRegex(),reflink:Ar(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mt._label).getRegex()};Mt.gfm={...Mt.normal,escape:Ar(Mt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&/^$/.test(r))return;const a=G2(r.slice(0,-1),"\\");if((r.length-a.length)%2===0)return}else{const a=adt(n[2],"()");if(a>-1){const l=(n[0].indexOf("!")===0?5:4)+n[1].length+a;n[2]=n[2].substring(0,a),n[0]=n[0].substring(0,l).trim(),n[3]=""}}let o=n[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o);a&&(o=a[1],i=a[3])}else i=n[3]?n[3].slice(1,-1):"";return o=o.trim(),/^$/.test(r)?o=o.slice(1):o=o.slice(1,-1)),YV(n,{href:o&&o.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){let o=(r[2]||r[1]).replace(/\s+/g," ");if(o=n[o.toLowerCase()],!o){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return YV(r,o,r[0],this.lexer)}}emStrong(t,n,r=""){let o=this.rules.inline.emStrong.lDelim.exec(t);if(!o||o[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(o[1]||o[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const a=[...o[0]].length-1;let s,l,u=a,c=0;const f=o[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(f.lastIndex=0,n=n.slice(-1*t.length+a);(o=f.exec(n))!=null;){if(s=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!s)continue;if(l=[...s].length,o[3]||o[4]){u+=l;continue}else if((o[5]||o[6])&&a%3&&!((a+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const p=[...o[0]][0].length,g=t.slice(0,a+o.index+p+l);if(Math.min(a,l)%2){const y=g.slice(1,-1);return{type:"em",raw:g,text:y,tokens:this.lexer.inlineTokens(y)}}const m=g.slice(2,-2);return{type:"strong",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(/\n/g," ");const o=/[^ ]/.test(r),i=/^ /.test(r)&&/ $/.test(r);return o&&i&&(r=r.substring(1,r.length-1)),r=Ts(r,!0),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,o;return n[2]==="@"?(r=Ts(n[1]),o="mailto:"+r):(r=Ts(n[1]),o=r),{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}url(t){let n;if(n=this.rules.inline.url.exec(t)){let r,o;if(n[2]==="@")r=Ts(n[0]),o="mailto:"+r;else{let i;do i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0];while(i!==n[0]);r=Ts(n[0]),n[1]==="www."?o="http://"+n[0]:o=n[0]}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){let r;return this.lexer.state.inRawBlock?r=n[0]:r=Ts(n[0]),{type:"text",raw:n[0],text:r}}}}const en={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:y_,lheading:/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};en._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;en._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;en.def=Ar(en.def).replace("label",en._label).replace("title",en._title).getRegex();en.bullet=/(?:[*+-]|\d{1,9}[.)])/;en.listItemStart=Ar(/^( *)(bull) */).replace("bull",en.bullet).getRegex();en.list=Ar(en.list).replace(/bull/g,en.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+en.def.source+")").getRegex();en._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";en._comment=/|$)/;en.html=Ar(en.html,"i").replace("comment",en._comment).replace("tag",en._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();en.lheading=Ar(en.lheading).replace(/bull/g,en.bullet).getRegex();en.paragraph=Ar(en._paragraph).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.blockquote=Ar(en.blockquote).replace("paragraph",en.paragraph).getRegex();en.normal={...en};en.gfm={...en.normal,table:"^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};en.gfm.table=Ar(en.gfm.table).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.gfm.paragraph=Ar(en._paragraph).replace("hr",en.hr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",en.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",en._tag).getRegex();en.pedantic={...en.normal,html:Ar(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",en._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:y_,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ar(en.normal._paragraph).replace("hr",en.hr).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",en.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const Mt={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:y_,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,rDelimAst:/^[^_*]*?__[^_*]*?\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\*)[punct](\*+)(?=[\s]|$)|[^punct\s](\*+)(?!\*)(?=[punct\s]|$)|(?!\*)[punct\s](\*+)(?=[^punct\s])|[\s](\*+)(?!\*)(?=[punct])|(?!\*)[punct](\*+)(?!\*)(?=[punct])|[^punct\s](\*+)(?=[^punct\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?_[^_*]*?(?=\*\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\s]|$)|[^punct\s](_+)(?!_)(?=[punct\s]|$)|(?!_)[punct\s](_+)(?=[^punct\s])|[\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:y_,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\`^|~";Mt.punctuation=Ar(Mt.punctuation,"u").replace(/punctuation/g,Mt._punctuation).getRegex();Mt.blockSkip=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g;Mt.anyPunctuation=/\\[punct]/g;Mt._escapes=/\\([punct])/g;Mt._comment=Ar(en._comment).replace("(?:-->|$)","-->").getRegex();Mt.emStrong.lDelim=Ar(Mt.emStrong.lDelim,"u").replace(/punct/g,Mt._punctuation).getRegex();Mt.emStrong.rDelimAst=Ar(Mt.emStrong.rDelimAst,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt.emStrong.rDelimUnd=Ar(Mt.emStrong.rDelimUnd,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt.anyPunctuation=Ar(Mt.anyPunctuation,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt._escapes=Ar(Mt._escapes,"gu").replace(/punct/g,Mt._punctuation).getRegex();Mt._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Mt._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;Mt.autolink=Ar(Mt.autolink).replace("scheme",Mt._scheme).replace("email",Mt._email).getRegex();Mt._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;Mt.tag=Ar(Mt.tag).replace("comment",Mt._comment).replace("attribute",Mt._attribute).getRegex();Mt._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;Mt._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;Mt._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;Mt.link=Ar(Mt.link).replace("label",Mt._label).replace("href",Mt._href).replace("title",Mt._title).getRegex();Mt.reflink=Ar(Mt.reflink).replace("label",Mt._label).replace("ref",en._label).getRegex();Mt.nolink=Ar(Mt.nolink).replace("ref",en._label).getRegex();Mt.reflinkSearch=Ar(Mt.reflinkSearch,"g").replace("reflink",Mt.reflink).replace("nolink",Mt.nolink).getRegex();Mt.normal={...Mt};Mt.pedantic={...Mt.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:Ar(/^!?\[(label)\]\((.*?)\)/).replace("label",Mt._label).getRegex(),reflink:Ar(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mt._label).getRegex()};Mt.gfm={...Mt.normal,escape:Ar(Mt.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\l+" ".repeat(u.length));let r,o,i,a;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(r=s.call({lexer:this},t,n))?(t=t.substring(r.raw.length),n.push(r),!0):!1))){if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length),r.raw.length===1&&n.length>0?n[n.length-1].raw+=` `:n.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length),o=n[n.length-1],o&&(o.type==="paragraph"||o.type==="text")?(o.raw+=` `+r.raw,o.text+=` @@ -601,9 +601,9 @@ ${t} `}tablerow(t){return` ${t} `}tablecell(t,n){const r=n.header?"th":"td";return(n.align?`<${r} align="${n.align}">`:`<${r}>`)+t+` -`}strong(t){return`${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
"}del(t){return`${t}`}link(t,n,r){const o=QV(t);if(o===null)return r;t=o;let i='",i}image(t,n,r){const o=QV(t);if(o===null)return r;t=o;let i=`${r}0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=v+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=v+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:v+" "}):y+=v+" "}y+=this.parse(p.tokens,u),c+=this.renderer.listitem(y,m,!!g)}r+=this.renderer.list(c,s,l);continue}case"html":{const a=i;r+=this.renderer.html(a.text,a.block);continue}case"paragraph":{const a=i;r+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=i,s=a.tokens?this.parseInline(a.tokens):a.text;for(;o+1{r=r.concat(this.walkTokens(s[l],n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const a=n.renderers[i.name];a?n.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=n[i.level];a?a.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new b_(this.defaults);for(const a in r.renderer){const s=r.renderer[a],l=a,u=i[l];i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new v_(this.defaults);for(const a in r.tokenizer){const s=r.tokenizer[a],l=a,u=i[l];i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Cb;for(const a in r.hooks){const s=r.hooks[a],l=a,u=i[l];Cb.passThroughHooks.has(a)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(s.call(i,c)).then(p=>u.call(i,p));const f=s.call(i,c);return u.call(i,f)}:i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,a=r.walkTokens;o.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return rc.lex(t,n??this.defaults)}parser(t,n){return oc.parse(t,n??this.defaults)}}Vw=new WeakSet,r5=function(t,n){return(r,o)=>{const i={...o},a={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);const s=ux(this,Q_,Cle).call(this,!!a.silent,!!a.async);if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(l=>t(l,a)).then(l=>a.walkTokens?Promise.all(this.walkTokens(l,a.walkTokens)).then(()=>l):l).then(l=>n(l,a)).then(l=>a.hooks?a.hooks.postprocess(l):l).catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));const l=t(r,a);a.walkTokens&&this.walkTokens(l,a.walkTokens);let u=n(l,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(l){return s(l)}}},Q_=new WeakSet,Cle=function(t,n){return r=>{if(r.message+=` -Please report this to https://github.com/markedjs/marked.`,t){const o="

An error occurred:

"+Ts(r.message+"",!0)+"
";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}};const kg=new Hct;function Dr(e,t){return kg.parse(e,t)}Dr.options=Dr.setOptions=function(e){return kg.setOptions(e),Dr.defaults=kg.defaults,wle(Dr.defaults),Dr};Dr.getDefaults=X$;Dr.defaults=Jg;Dr.use=function(...e){return kg.use(...e),Dr.defaults=kg.defaults,wle(Dr.defaults),Dr};Dr.walkTokens=function(e,t){return kg.walkTokens(e,t)};Dr.parseInline=kg.parseInline;Dr.Parser=oc;Dr.parser=oc.parse;Dr.Renderer=b_;Dr.TextRenderer=Z$;Dr.Lexer=rc;Dr.lexer=rc.lex;Dr.Tokenizer=v_;Dr.Hooks=Cb;Dr.parse=Dr;Dr.options;Dr.setOptions;Dr.use;Dr.walkTokens;Dr.parseInline;oc.parse;rc.lex;const Gs=({children:e="",className:t})=>{const n=M.useRef();return A(qct,{ref:n,className:t,dangerouslySetInnerHTML:{__html:Dr.parse(e)}})},qct=J(Wr)(({theme:e})=>({img:{maxWidth:"100%",marginTop:10},"*":{wordBreak:"break-word",color:e.palette.text.primary,margin:0,marginBottom:15,"&:last-child":{marginBottom:0}},iframe:{width:"100%",maxHeight:350,height:"30vw",minHeight:200},video:{width:"100%",maxHeight:350,height:"30vw",minHeight:200},p:{fontSize:16},h1:{fontSize:20,lineHeight:"24px"},h2:{fontSize:18,lineHeight:"22px"},h3:{fontSize:16},h4:{fontSize:16},a:{color:e.palette.primary.main}}));function Ko({children:e,className:t="",text:n="",placement:r="bottom",info:o,markdown:i=""}){return!n&&!i?A(hi,{children:e}):A(Yct,{arrow:!0,placement:r,title:i?A(Kct,{children:i}):A(Qct,{children:n}),children:o?Se(_t,{style:{width:"unset"},children:[A($ct,{})," "]}):A("div",{className:`tooltip-children ${t}`,style:{display:"flex",alignItems:"center"},children:e})})}const Qct=J(At)({fontSize:14,fontWeight:600}),Kct=J(Gs)({p:{fontSize:14,fontWeight:600},a:{}}),Yct=J(bPe)({"& .MuiTooltip-tooltip":{}});function Xg({src:e,className:t=""}){const[n,r]=M.useState(!0),[o,i]=M.useState(!1),a=o?!0:n?!1:!e;return A(Zct,{className:`${t} img`,children:a?A(Gct,{}):Se(hi,{children:[A(Ra,{in:!n,children:A(Jct,{onError:()=>i(!0),src:e,onLoad:()=>r(!1)})}),A(Ra,{in:n,children:A(Xct,{})})]})})}const Gct=J("div")({width:"100%",height:"100%",background:"rgba(211, 211, 211, 0.5)",position:"absolute"}),Jct=J("img")({width:"100%",height:"100%",objectFit:"cover",position:"absolute",left:0,top:0}),Xct=J(Oa)({position:"absolute",left:0,top:0,width:"100%",height:"100%"}),Zct=J(Wr)({position:"relative",overflow:"hidden"}),edt=J("div")(({active:e})=>({width:110,height:110,background:"rgba(211, 211, 211, 0.6)",borderRadius:"50%",position:"relative",cursor:"pointer",overflow:"hidden",svg:{transition:"0.2s all",width:35,height:35,position:"absolute",top:"50%",transform:e?"translate(-50%, -50%) scale(1.2)":"translate(-50%, -50%)",left:"50%"},".img":{transition:"0.2s all",position:"relative",zIndex:2},"&:hover":{".img":{opacity:0},svg:{transform:"translate(-50%, -50%) scale(1.1)"}}})),tdt=J(zt)({alignItems:"flex-start"}),ndt=J(Xg)({width:"100%",height:"100%"}),rdt=J(dr)({width:"auto",height:"auto",borderRadius:"50%",padding:10,display:"flex",alignItems:"center",justifyContent:"center"}),odt=J(_t)(({disabled:e})=>({maxWidth:400,pointerEvents:e?"none":"unset"}));J(At)({whiteSpace:"nowrap",opacity:.6});const idt=J(Wr)({width:"100%"}),CI=J(zt)({gap:0,position:"relative"}),adt=J(CI)({alignItems:"flex-start",".MuiSelect-select":{minWidth:200,padding:"12.2px 15px"},fieldset:{borderRadius:10}}),eL=J(_t)({width:"100%",paddingLeft:5,justifyContent:"flex-start",gap:5,marginTop:5,alignItems:"flex-start",p:{fontSize:13,color:"#d32f2f",textAlign:"left",fontWeight:600},svg:{color:"#d32f2f",position:"relative",top:3}}),sdt=J(_t)({position:"absolute",top:5,right:5,gap:5,cursor:"pointer",a:{fontSize:14}}),GV=J(dr)({padding:"3px 10px",height:"auto",zIndex:1,borderRadius:12,"*":{fontSize:12}}),Ale=J(Wr)(({markdown:e,preview:t,theme:n})=>{const r=n.palette.mode==="light"?"black":"white";return{width:"100%",fieldset:{borderRadius:10},".MuiFormControl-root":{width:"100%"},textarea:{fontFamily:e&&!t?"monospace!important":"inherit",color:e&&!t?r:n.palette.text.primary,paddingTop:e?"15px":"unset"},input:{background:"transparent!important",padding:"12.5px 12px",fontSize:16,fontWeight:500,"::placeholder":{opacity:1}}}}),ldt=J(Wr)(({theme:e})=>({padding:"30px 13px 20px 13px",border:e.palette.mode==="light"?"1px solid rgba(0, 0, 0, 0.23)":"1px solid rgba(255, 255, 255, 0.23)",borderRadius:10})),udt=J(At)({fontSize:14}),_le=J(_t)({marginBottom:10,justifyContent:"flex-start"}),Ele=J(_t)(({theme:e})=>({justifyContent:"flex-start",width:"auto",textAlign:"left",color:e.palette.text.primary,"*":{fontSize:14,fontWeight:600,color:"inherit"}})),cdt=J(CI)(({error:e})=>({alignItems:"flex-start",flex:1,fieldset:{borderRadius:10},input:{fontSize:14}})),ddt=J(At)({fontSize:16,fontWeight:500});function Oc({headerComponent:e,title:t,children:n,className:r=""}){return A(Ra,{in:!0,children:Se(pdt,{className:r,children:[!(!t&&!e)&&Se(hdt,{justifyContent:"space-between",className:"title-container-header",children:[A(fdt,{className:"title",children:t}),e]}),A(Wr,{className:"title-container-children",children:n})]})})}const fdt=J(At)(({theme:e})=>({fontSize:17,color:e.palette.text.primary,fontWeight:700})),pdt=J(sv)({width:"100%",padding:0,".title-container-children":{padding:"20px",width:"100%"}}),hdt=J(_t)(({theme:e})=>({borderBottom:e.palette.mode==="light"?"1px solid #e0e0e0":"1px solid #424242",padding:"15px 20px",flexWrap:"wrap"}));function Tle(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=s?o=o+JV("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function XV(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=tL(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,l=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:l.toFixed(t),c=u.split("."),f=i.split("").reverse().reduce(function(y,v,x){return y.length>x?(Number(y[0])+Number(v)).toString()+y.substring(1,y.length):v+y},c[0]),p=Ple(c[1]||"",t,n),g=s?"-":"",m=r?".":"";return""+g+f+m+p}function Sh(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function bdt(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&nn&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}function wdt(e,t,n){return Math.min(Math.max(e,t),n)}function ZV(e){return Math.max(e.selectionStart,e.selectionEnd)}function Sdt(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function xdt(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Cdt(e,t,n,r,o,i){var a=o.findIndex(function(w){return w}),s=e.slice(0,a);!t&&!n.startsWith(s)&&(n=s+n,r=r+s.length);for(var l=n.length,u=e.length,c={},f=new Array(l),p=0;p0&&f[y]===-1;)y--;var x=y===-1||f[y]===-1?0:f[y]+1;return x>v?v:r-x=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function Adt(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;nD.length-a.length||UO||f>e.length-a.length)&&(C=f),e=e.substring(0,C),e=kdt(I?"-"+e:e,o),e=(e.match(Idt(m,!0))||[]).join("");var $=e.indexOf(m);e=e.replace(new RegExp(Ile(m),"g"),function(q,Y){return Y===$?".":""});var j=tL(e,o),L=j.beforeDecimal,B=j.afterDecimal,H=j.addNegation;return u.end-u.start${t}`}em(t){return`${t}`}codespan(t){return`${t}`}br(){return"
"}del(t){return`${t}`}link(t,n,r){const o=QV(t);if(o===null)return r;t=o;let i='
",i}image(t,n,r){const o=QV(t);if(o===null)return r;t=o;let i=`${r}0&&p.tokens[0].type==="paragraph"?(p.tokens[0].text=v+" "+p.tokens[0].text,p.tokens[0].tokens&&p.tokens[0].tokens.length>0&&p.tokens[0].tokens[0].type==="text"&&(p.tokens[0].tokens[0].text=v+" "+p.tokens[0].tokens[0].text)):p.tokens.unshift({type:"text",text:v+" "}):y+=v+" "}y+=this.parse(p.tokens,u),c+=this.renderer.listitem(y,m,!!g)}r+=this.renderer.list(c,s,l);continue}case"html":{const a=i;r+=this.renderer.html(a.text,a.block);continue}case"paragraph":{const a=i;r+=this.renderer.paragraph(this.parseInline(a.tokens));continue}case"text":{let a=i,s=a.tokens?this.parseInline(a.tokens):a.text;for(;o+1{r=r.concat(this.walkTokens(s[l],n))}):s.tokens&&(r=r.concat(this.walkTokens(s.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const o={...r};if(o.async=this.defaults.async||o.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const a=n.renderers[i.name];a?n.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=a.apply(this,s)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=n[i.level];a?a.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),o.extensions=n),r.renderer){const i=this.defaults.renderer||new b_(this.defaults);for(const a in r.renderer){const s=r.renderer[a],l=a,u=i[l];i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}o.renderer=i}if(r.tokenizer){const i=this.defaults.tokenizer||new v_(this.defaults);for(const a in r.tokenizer){const s=r.tokenizer[a],l=a,u=i[l];i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.tokenizer=i}if(r.hooks){const i=this.defaults.hooks||new Cb;for(const a in r.hooks){const s=r.hooks[a],l=a,u=i[l];Cb.passThroughHooks.has(a)?i[l]=c=>{if(this.defaults.async)return Promise.resolve(s.call(i,c)).then(p=>u.call(i,p));const f=s.call(i,c);return u.call(i,f)}:i[l]=(...c)=>{let f=s.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}o.hooks=i}if(r.walkTokens){const i=this.defaults.walkTokens,a=r.walkTokens;o.walkTokens=function(s){let l=[];return l.push(a.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return oc.lex(t,n??this.defaults)}parser(t,n){return ic.parse(t,n??this.defaults)}}Vw=new WeakSet,o5=function(t,n){return(r,o)=>{const i={...o},a={...this.defaults,...i};this.defaults.async===!0&&i.async===!1&&(a.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),a.async=!0);const s=u2(this,Q_,xle).call(this,!!a.silent,!!a.async);if(typeof r>"u"||r===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a),a.async)return Promise.resolve(a.hooks?a.hooks.preprocess(r):r).then(l=>t(l,a)).then(l=>a.walkTokens?Promise.all(this.walkTokens(l,a.walkTokens)).then(()=>l):l).then(l=>n(l,a)).then(l=>a.hooks?a.hooks.postprocess(l):l).catch(s);try{a.hooks&&(r=a.hooks.preprocess(r));const l=t(r,a);a.walkTokens&&this.walkTokens(l,a.walkTokens);let u=n(l,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(l){return s(l)}}},Q_=new WeakSet,xle=function(t,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const o="

An error occurred:

"+Ts(r.message+"",!0)+"
";return n?Promise.resolve(o):o}if(n)return Promise.reject(r);throw r}};const kg=new ldt;function Dr(e,t){return kg.parse(e,t)}Dr.options=Dr.setOptions=function(e){return kg.setOptions(e),Dr.defaults=kg.defaults,ble(Dr.defaults),Dr};Dr.getDefaults=X$;Dr.defaults=Jg;Dr.use=function(...e){return kg.use(...e),Dr.defaults=kg.defaults,ble(Dr.defaults),Dr};Dr.walkTokens=function(e,t){return kg.walkTokens(e,t)};Dr.parseInline=kg.parseInline;Dr.Parser=ic;Dr.parser=ic.parse;Dr.Renderer=b_;Dr.TextRenderer=Z$;Dr.Lexer=oc;Dr.lexer=oc.lex;Dr.Tokenizer=v_;Dr.Hooks=Cb;Dr.parse=Dr;Dr.options;Dr.setOptions;Dr.use;Dr.walkTokens;Dr.parseInline;ic.parse;oc.lex;const Gs=({children:e="",className:t})=>{const n=M.useRef();return A(udt,{ref:n,className:t,dangerouslySetInnerHTML:{__html:Dr.parse(e)}})},udt=J(Wr)(({theme:e})=>({img:{maxWidth:"100%",marginTop:10},"*":{wordBreak:"break-word",color:e.palette.text.primary,margin:0,marginBottom:15,"&:last-child":{marginBottom:0}},iframe:{width:"100%",maxHeight:350,height:"30vw",minHeight:200},video:{width:"100%",maxHeight:350,height:"30vw",minHeight:200},p:{fontSize:16},h1:{fontSize:20,lineHeight:"24px"},h2:{fontSize:18,lineHeight:"22px"},h3:{fontSize:16},h4:{fontSize:16},a:{color:e.palette.primary.main}}));function Ko({children:e,className:t="",text:n="",placement:r="bottom",info:o,markdown:i=""}){return!n&&!i?A(hi,{children:e}):A(fdt,{arrow:!0,placement:r,title:i?A(ddt,{children:i}):A(cdt,{children:n}),children:o?Se(_t,{style:{width:"unset"},children:[A(Zct,{})," "]}):A("div",{className:`tooltip-children ${t}`,style:{display:"flex",alignItems:"center"},children:e})})}const cdt=J(At)({fontSize:14,fontWeight:600}),ddt=J(Gs)({p:{fontSize:14,fontWeight:600},a:{}}),fdt=J(vPe)({"& .MuiTooltip-tooltip":{}});function Xg({src:e,className:t=""}){const[n,r]=M.useState(!0),[o,i]=M.useState(!1),a=o?!0:n?!1:!e;return A(mdt,{className:`${t} img`,children:a?A(pdt,{}):Se(hi,{children:[A(Ra,{in:!n,children:A(hdt,{onError:()=>i(!0),src:e,onLoad:()=>r(!1)})}),A(Ra,{in:n,children:A(gdt,{})})]})})}const pdt=J("div")({width:"100%",height:"100%",background:"rgba(211, 211, 211, 0.5)",position:"absolute"}),hdt=J("img")({width:"100%",height:"100%",objectFit:"cover",position:"absolute",left:0,top:0}),gdt=J(Oa)({position:"absolute",left:0,top:0,width:"100%",height:"100%"}),mdt=J(Wr)({position:"relative",overflow:"hidden"}),ydt=J("div")(({active:e})=>({width:110,height:110,background:"rgba(211, 211, 211, 0.6)",borderRadius:"50%",position:"relative",cursor:"pointer",overflow:"hidden",svg:{transition:"0.2s all",width:35,height:35,position:"absolute",top:"50%",transform:e?"translate(-50%, -50%) scale(1.2)":"translate(-50%, -50%)",left:"50%"},".img":{transition:"0.2s all",position:"relative",zIndex:2},"&:hover":{".img":{opacity:0},svg:{transform:"translate(-50%, -50%) scale(1.1)"}}})),vdt=J(zt)({alignItems:"flex-start"}),bdt=J(Xg)({width:"100%",height:"100%"}),wdt=J(dr)({width:"auto",height:"auto",borderRadius:"50%",padding:10,display:"flex",alignItems:"center",justifyContent:"center"}),Sdt=J(_t)(({disabled:e})=>({maxWidth:400,pointerEvents:e?"none":"unset"}));J(At)({whiteSpace:"nowrap",opacity:.6});const xdt=J(Wr)({width:"100%"}),AI=J(zt)({gap:0,position:"relative"}),Cdt=J(AI)({alignItems:"flex-start",".MuiSelect-select":{minWidth:200,padding:"12.2px 15px"},fieldset:{borderRadius:10}}),eL=J(_t)({width:"100%",paddingLeft:5,justifyContent:"flex-start",gap:5,marginTop:5,alignItems:"flex-start",p:{fontSize:13,color:"#d32f2f",textAlign:"left",fontWeight:600},svg:{color:"#d32f2f",position:"relative",top:3}}),Adt=J(_t)({position:"absolute",top:5,right:5,gap:5,cursor:"pointer",a:{fontSize:14}}),GV=J(dr)({padding:"3px 10px",height:"auto",zIndex:1,borderRadius:12,"*":{fontSize:12}}),Cle=J(Wr)(({markdown:e,preview:t,theme:n})=>{const r=n.palette.mode==="light"?"black":"white";return{width:"100%",fieldset:{borderRadius:10},".MuiFormControl-root":{width:"100%"},textarea:{fontFamily:e&&!t?"monospace!important":"inherit",color:e&&!t?r:n.palette.text.primary,paddingTop:e?"15px":"unset"},input:{background:"transparent!important",padding:"12.5px 12px",fontSize:16,fontWeight:500,"::placeholder":{opacity:1}}}}),_dt=J(Wr)(({theme:e})=>({padding:"30px 13px 20px 13px",border:e.palette.mode==="light"?"1px solid rgba(0, 0, 0, 0.23)":"1px solid rgba(255, 255, 255, 0.23)",borderRadius:10})),Edt=J(At)({fontSize:14}),Ale=J(_t)({marginBottom:10,justifyContent:"flex-start"}),_le=J(_t)(({theme:e})=>({justifyContent:"flex-start",width:"auto",textAlign:"left",color:e.palette.text.primary,"*":{fontSize:14,fontWeight:600,color:"inherit"}})),Tdt=J(AI)(({error:e})=>({alignItems:"flex-start",flex:1,fieldset:{borderRadius:10},input:{fontSize:14}})),kdt=J(At)({fontSize:16,fontWeight:500});function Oc({headerComponent:e,title:t,children:n,className:r=""}){return A(Ra,{in:!0,children:Se(Pdt,{className:r,children:[!(!t&&!e)&&Se(Mdt,{justifyContent:"space-between",className:"title-container-header",children:[A(Idt,{className:"title",children:t}),e]}),A(Wr,{className:"title-container-children",children:n})]})})}const Idt=J(At)(({theme:e})=>({fontSize:17,color:e.palette.text.primary,fontWeight:700})),Pdt=J(sv)({width:"100%",padding:0,".title-container-children":{padding:"20px",width:"100%"}}),Mdt=J(_t)(({theme:e})=>({borderBottom:e.palette.mode==="light"?"1px solid #e0e0e0":"1px solid #424242",padding:"15px 20px",flexWrap:"wrap"}));function Ele(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o=s?o=o+JV("0",a-s):o=(o.substring(0,a)||"0")+"."+o.substring(a),n+o}function XV(e,t,n){if(["","-"].indexOf(e)!==-1)return e;var r=(e.indexOf(".")!==-1||n)&&t,o=tL(e),i=o.beforeDecimal,a=o.afterDecimal,s=o.hasNegation,l=parseFloat("0."+(a||"0")),u=a.length<=t?"0."+a:l.toFixed(t),c=u.split("."),f=i.split("").reverse().reduce(function(y,v,x){return y.length>x?(Number(y[0])+Number(v)).toString()+y.substring(1,y.length):v+y},c[0]),p=Ile(c[1]||"",t,n),g=s?"-":"",m=r?".":"";return""+g+f+m+p}function Sh(e,t){if(e.value=e.value,e!==null){if(e.createTextRange){var n=e.createTextRange();return n.move("character",t),n.select(),!0}return e.selectionStart||e.selectionStart===0?(e.focus(),e.setSelectionRange(t,t),!0):(e.focus(),!1)}}function $dt(e,t){for(var n=0,r=0,o=e.length,i=t.length;e[n]===t[n]&&nn&&o-r>n;)r++;return{from:{start:n,end:o-r},to:{start:n,end:i-r}}}function Ldt(e,t,n){return Math.min(Math.max(e,t),n)}function ZV(e){return Math.max(e.selectionStart,e.selectionEnd)}function Fdt(){return typeof navigator<"u"&&!(navigator.platform&&/iPhone|iPod/.test(navigator.platform))}function Ndt(e){return{from:{start:0,end:0},to:{start:0,end:e.length},lastValue:""}}function Udt(e,t,n,r,o,i){var a=o.findIndex(function(w){return w}),s=e.slice(0,a);!t&&!n.startsWith(s)&&(n=s+n,r=r+s.length);for(var l=n.length,u=e.length,c={},f=new Array(l),p=0;p0&&f[y]===-1;)y--;var x=y===-1||f[y]===-1?0:f[y]+1;return x>v?v:r-x=0&&!n[t];)t--;t===-1&&(t=n.indexOf(!0))}else{for(;t<=o&&!n[t];)t++;t>o&&(t=n.lastIndexOf(!0))}return t===-1&&(t=o),t}function jdt(e){for(var t=Array.from({length:e.length+1}).map(function(){return!0}),n=0,r=t.length;nD.length-a.length||UO||f>e.length-a.length)&&(C=f),e=e.substring(0,C),e=Hdt(I?"-"+e:e,o),e=(e.match(qdt(m,!0))||[]).join("");var $=e.indexOf(m);e=e.replace(new RegExp(kle(m),"g"),function(q,Y){return Y===$?".":""});var j=tL(e,o),L=j.beforeDecimal,B=j.afterDecimal,H=j.addNegation;return u.end-u.start{m?(Ze.size(e.toString())<=m||Ze.size(D)0&&Se(sdt,{justifyContent:"flex-end",children:[A(GV,{onClick:()=>R(!_),children:_?I.edit:I.preview}),A(GV,{onClick:()=>window.open("https://www.markdownguide.org/basic-syntax/","_blank"),children:I.help})]}),_?A(Ddt,{md:e}):A(Ale,{markdown:x?1:0,preview:_?1:0,children:A(OD,{placeholder:s,onBlur:a,name:u,rows:i,disabled:v,multiline:!!i,onFocus:o,variant:"outlined",value:e,error:!!r,label:n,onChange:D=>U(D.target.value),InputProps:{endAdornment:c,startAdornment:y}})})]}),r&&Se(eL,{children:[A(lI,{}),A(At,{children:r})]})]})}const Ddt=({md:e})=>A(ldt,{children:A(Gs,{children:e})}),_I=({title:e,tooltip:t,limit:n,required:r,value:o})=>{const i=Ze.size(o||"");return e?Se(_le,{children:[Se(_t,{justifyContent:"flex-start",width:"auto",children:[A(nL,{title:e,required:r}),t&&A(Ko,{placement:"right",info:!0,markdown:t})]}),n&&Se(udt,{children:[i,"/",n]})]}):null};function Bdt({onChange:e,className:t="",value:n,title:r}){const o=M.useCallback(l=>{e(l[0])},[]),{getRootProps:i,getInputProps:a,isDragActive:s}=Dae({onDrop:o,maxFiles:1});return Se(tdt,{children:[r&&A(Ele,{children:r}),Se(edt,{...i(),className:`${t} upload-input`,active:s,children:[n&&A(ndt,{src:URL.createObjectURL(n)}),A(ont,{}),A("input",{...a()})]})]})}const nL=({title:e,required:t,className:n})=>Se(Ele,{className:`input-title ${n}`,children:[A(Gs,{className:"md",children:e}),A("small",{className:"input-title-required",style:{fontSize:14},children:t?" (required)":" (optional)"})]}),$dt=({className:e="",onChange:t,title:n,error:r,onFocus:o,min:i,max:a,value:s="",required:l,tooltip:u})=>A(z$,{dateAdapter:lat,children:Se(cdt,{className:`${e} date-input`,error:r?1:0,children:[Se(_le,{children:[n&&A(nL,{title:n,required:l}),u&&A(Ko,{info:!0,markdown:u})]}),A(Rct,{value:s?Je(s):null,onOpen:o,className:"datepicker",onChange:c=>t(Je(c).valueOf()),format:"YYYY-MM-DD HH:mm"}),r&&Se(eL,{children:[A(lI,{}),A(At,{children:r})]})]})});function Ble({args:e,value:t,error:n,className:r,onChange:o,customInputHandler:i,clearError:a,formik:s}){const l=M.useRef(!1);M.useEffect(()=>{t&&(l.current=!0)},[t]),M.useEffect(()=>{!t&&e.default&&!l.current&&o(e.default)},[e.default,t]);const u=e.name,c=e.label,f=e.EndAdornment,p={required:e.required,title:e.label,tooltip:e.tooltip};return e.type==="date"?A($dt,{...p,onChange:o,error:n,onFocus:a,className:r,min:e.min,max:e.max,value:t}):e.type==="upload"?A(Bdt,{title:c,onChange:o,value:t}):e.type==="number"?A(zdt,{placeholder:e.placeholder,value:t,onChange:o,prefix:e.prefix,suffix:e.suffix,error:n,onFocus:a,...p,endAdornment:f&&A(f,{name:u,formik:s})}):e.type==="checkbox"?A($le,{...p,onChange:o,value:t}):e.type==="list"?A(Ndt,{title:c,onChange:o,values:t||[""],required:e.required,disabled:e.disabled,tooltip:e.tooltip,placeholder:e.placeholder}):e.type==="text"||e.type==="textarea"||e.type==="address"||e.type==="image"||e.type==="url"?M.createElement(Dle,{...e,defaultValue:e.default,onFocus:a,key:u,error:n,title:c,label:"",value:t,name:u,onChange:o,endAdornment:f&&A(f,{name:u,formik:s})}):e.type==="custom"&&i?i(e):e.type==="display-text"?A(ddt,{children:e.text}):null}const $le=({title:e,onChange:t,value:n=!1,required:r,tooltip:o,className:i=""})=>Se(Fdt,{className:i,justifyContent:"flex-start",gap:2,children:[A(WTe,{checked:n,onChange:()=>t(!n)}),e&&A(Ldt,{title:e,required:r}),o&&A(Ko,{placement:"right",info:!0,markdown:o})]}),Ldt=J(nL)({width:"unset",marginRight:10}),Fdt=J(_t)({}),Ndt=({values:e=[""],title:t,required:n,onChange:r,disabled:o,tooltip:i,placeholder:a="",max:s=7})=>{const l=(f,p)=>{const g=e.map((m,y)=>f===y?p:m);r(g)},u=()=>{const f=[...e,""];r(f)},c=f=>{const p=e.filter((g,m)=>f!==m);r(p)};return Se(CI,{children:[A(_I,{tooltip:i,title:t,required:n}),A(zt,{gap:15,alignItems:"flex-start",children:e&&e.map((f,p)=>{const g=p===e.length-1;return Se(_t,{justifyContent:"flex-start",children:[A(odt,{disabled:o?1:0,children:A(Dle,{placeholder:a,endAdornment:!o&&p>0&&A(Ko,{text:"Delete choice",children:A(Vd,{onClick:()=>c(p),children:A(Ktt,{style:{width:17,height:17,cursor:"pointer"}})})}),onChange:m=>l(p,m),value:f})}),!o&&g&&p{const l=Ze.size(o)===s+1;return Se(Oc,{className:"formik-form",title:a.title,headerComponent:a.warning&&Se(jdt,{children:[A(lI,{}),a.warning]}),children:[Se(zt,{gap:30,children:[a.subTitle&&A(CZe,{children:a.subTitle}),A(Wdt,{gap:20,children:a.inputs.map(u=>{var f;const c=()=>t.setFieldError(u.name,void 0);return A(idt,{className:"form-input",style:{width:(f=u.style)!=null&&f.width||i?"100%":a.inputsInRow?`calc(${100/a.inputsInRow}% - ${a.inputsInRow*7}px)`:"100%"},children:A(Ble,{customInputHandler:n,args:u,value:t.values[u.name],error:t.errors[u.name],clearError:c,onChange:p=>{t.setFieldValue(u.name,p),c()},formik:t})},u.name)})})]}),a.bottomText&&A(Udt,{children:a.bottomText}),l&&r]},s)})})}const Udt=J(Gs)({marginTop:20,p:{fontSize:15,fontWeight:500}}),jdt=J(At)(({theme:e})=>({width:"100%",color:e.palette.text.primary,svg:{position:"relative",top:2,marginRight:4}})),Wdt=J(_t)({flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start"}),zdt=({value:e,placeholder:t="",onChange:n,prefix:r="",suffix:o="",required:i,title:a,tooltip:s,endAdornment:l,error:u,onFocus:c})=>Se(Ale,{children:[A(_I,{title:a,required:i,tooltip:s}),A(Rle,{prefix:r,suffix:o,value:e,onFocus:c,placeholder:t,customInput:OD,thousandSeparator:",",onValueChange:f=>{n(f.floatValue)},InputProps:{endAdornment:l}}),u&&Se(eL,{children:[A(lI,{}),A(At,{children:u})]})]});function Lle({value:e,decimalScale:t=2,prefix:n,className:r="",suffix:o}){return A(Rle,{type:"text",valueIsNumericString:!0,value:e,allowLeadingZeros:!0,thousandSeparator:",",className:`number-display ${r}`,displayType:"text",decimalScale:t,prefix:n,suffix:o})}function Fle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nH(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Hdt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qdt(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Hdt(e)}function jle(e){var t=Vdt();return function(){var r=w_(e),o;if(t){var i=w_(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return qdt(this,o)}}function Qdt(e){return Kdt(e)||Ydt(e)||Gdt(e)||Jdt()}function Kdt(e){if(Array.isArray(e))return i5(e)}function Ydt(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Gdt(e,t){if(e){if(typeof e=="string")return i5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i5(e,t)}}function i5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:2,n=String(e);if(t===0)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",i=r?r[3]:"",a=r?r[2]:n,s=a.length>=t?a:(Qdt(Array(t)).map(function(){return"0"}).join("")+a).slice(t*-1);return"".concat(o).concat(s).concat(i)}var Wle={daysInHours:!1,zeroPadTime:2};function Xdt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.now,r=n===void 0?Date.now:n,o=t.precision,i=o===void 0?0:o,a=t.controlled,s=t.offsetTime,l=s===void 0?0:s,u=t.overtime,c;typeof e=="string"?c=new Date(e).getTime():e instanceof Date?c=e.getTime():c=e,a||(c+=l);var f=a?c:c-r(),p=Math.min(20,Math.max(0,i)),g=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(p))*1e3),m=Math.abs(g)/1e3;return{total:g,days:Math.floor(m/(3600*24)),hours:Math.floor(m/3600%24),minutes:Math.floor(m/60%60),seconds:Math.floor(m%60),milliseconds:Number((m%1*1e3).toFixed()),completed:g<=0}}function Zdt(e,t){var n=e.days,r=e.hours,o=e.minutes,i=e.seconds,a=Object.assign(Object.assign({},Wle),t),s=a.daysInHours,l=a.zeroPadTime,u=a.zeroPadDays,c=u===void 0?l:u,f=Math.min(2,l),p=s?O1(r+n*24,l):O1(r,f);return{days:s?"":O1(n,c),hours:p,minutes:O1(o,f),seconds:O1(i,f)}}var zle=function(e){Ule(n,e);var t=jle(n);function n(){var r;return Fle(this,n),r=t.apply(this,arguments),r.state={count:r.props.count||3},r.startCountdown=function(){r.interval=window.setInterval(function(){var o=r.state.count-1;o===0?(r.stopCountdown(),r.props.onComplete&&r.props.onComplete()):r.setState(function(i){return{count:i.count-1}})},1e3)},r.stopCountdown=function(){clearInterval(r.interval)},r.addTime=function(o){r.stopCountdown(),r.setState(function(i){return{count:i.count+o}},r.startCountdown)},r}return Nle(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?M.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(M.Component);zle.propTypes={count:ue.number,children:ue.element,onComplete:ue.func};var rL=function(e){Ule(n,e);var t=jle(n);function n(r){var o;if(Fle(this,n),o=t.call(this,r),o.mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=M.createRef(),o.tick=function(){var a=o.calcTimeDelta(),s=a.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(a,void 0,s)},o.start=function(){if(!o.isStarted()){var a=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=a?o.calcOffsetStartTimestamp()-a:0;var s=o.calcTimeDelta();o.setTimeDeltaState(s,"STARTED",o.props.onStart),!o.props.controlled&&(!s.completed||o.props.overtime)&&(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},r.date){var i=o.calcTimeDelta();o.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return Nle(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(o){this.legacyMode||this.props.date!==o.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var o=this.props,i=o.date,a=o.now,s=o.precision,l=o.controlled,u=o.overtime;return Xdt(i,{now:a,precision:s,controlled:l,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(o){this.legacyCountdownRef.current.addTime(o)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(o){return this.state.status===o}},{key:"setTimeDeltaState",value:function(o,i,a){var s=this;if(this.mounted){var l=o.completed&&!this.state.timeDelta.completed,u=o.completed&&i==="STARTED";l&&!this.props.overtime&&this.clearTimer();var c=function(){a&&a(s.state.timeDelta),s.props.onComplete&&(l||u)&&s.props.onComplete(o,u)};return this.setState(function(f){var p=i||f.status;return o.completed&&!s.props.overtime?p="COMPLETED":!i&&p==="COMPLETED"&&(p="STOPPED"),{timeDelta:o,status:p}},c)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var o=this.props,i=o.daysInHours,a=o.zeroPadTime,s=o.zeroPadDays,l=this.state.timeDelta;return Object.assign(Object.assign({},l),{api:this.getApi(),props:this.props,formatted:Zdt(l,{daysInHours:i,zeroPadTime:a,zeroPadDays:s})})}},{key:"render",value:function(){if(this.legacyMode){var o=this.props,i=o.count,a=o.children,s=o.onComplete;return M.createElement(zle,{ref:this.legacyCountdownRef,count:i,onComplete:s},a)}var l=this.props,u=l.className,c=l.overtime,f=l.children,p=l.renderer,g=this.getRenderProps();if(p)return p(g);if(f&&this.state.timeDelta.completed&&!c)return M.cloneElement(f,{countdown:g});var m=g.formatted,y=m.days,v=m.hours,x=m.minutes,w=m.seconds;return M.createElement("span",{className:u},g.total<0?"-":"",y,y?":":"",v,":",x,":",w)}}]),n}(M.Component);rL.defaultProps=Object.assign(Object.assign({},Wle),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});rL.propTypes={date:ue.oneOfType([ue.instanceOf(Date),ue.string,ue.number]),daysInHours:ue.bool,zeroPadTime:ue.number,zeroPadDays:ue.number,controlled:ue.bool,intervalDelay:ue.number,precision:ue.number,autoStart:ue.bool,overtime:ue.bool,className:ue.string,children:ue.element,renderer:ue.func,now:ue.func,onMount:ue.func,onStart:ue.func,onPause:ue.func,onStop:ue.func,onTick:ue.func,onComplete:ue.func};var oL={},$p={};Object.defineProperty($p,"__esModule",{value:!0});var eft=M;function tft(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Kn=tft(eft);const Zg=.3,c2="linear",iL="normal",aL="none",Vle="running",nft="paused",sL="all";var Hle=({duration:e=Zg,delay:t=0,overlay:n=0})=>e+t-n||0,Tw=e=>e===void 0;function S_(e,t,n){return Tw(t)&&Tw(e)?n||0:e&&e>=0?e:t||0}const EI=Kn.createContext({animationStates:{},register:()=>{}});function rft({play:e,sequences:t=[],children:n}){const[r,o]=Kn.useState({}),i=Kn.useRef({}),a=Kn.useCallback(s=>{const{sequenceIndex:l,sequenceId:u}=s;(!Tw(u)||!Tw(l))&&(i.current[S_(l,u)]=s)},[]);return Kn.useEffect(()=>{const s=Array.isArray(t)&&t.length?t:Object.values(i.current),l={};(e?s:[...s].reverse()).reduce((u,{sequenceId:c,sequenceIndex:f,duration:p=Zg,delay:g,overlay:m},y)=>{const v=S_(f,c,y),w=Hle({duration:p,delay:g,overlay:m})+u;return l[v]={play:e,pause:!e,delay:(g||0)+u,controlled:!0},w},0),o(l)},[e]),Kn.createElement(EI.Provider,{value:{animationStates:r,register:a}},n)}var qle=e=>(e||0)*1e3;function oft(e){const{play:t,children:n,render:r,start:o,end:i,complete:a="",onComplete:s,delay:l=0,duration:u=Zg,easeType:c=c2,sequenceId:f,sequenceIndex:p}=e,g=Kn.useRef(),[m,y]=Kn.useState(o||{}),{register:v,animationStates:x={}}=Kn.useContext(EI),w=S_(p,f);return Kn.useEffect(()=>{(!Tw(p)&&p>=0||f)&&v(e)},[]),Kn.useEffect(()=>{const I=x[w]||{};return y({...t||I.play?i:o,transition:`${sL} ${u}s ${c} ${I.delay||l}s`}),t&&(a||s)&&(g.current=setTimeout(()=>{a&&y(a),s&&s()},qle((I.delay||l)+u))),()=>g.current&&clearTimeout(g.current)},[w,x,t,u,c,l,s,o,i,a]),r?r({style:m}):Kn.createElement("div",{style:m},n)}var ift=e=>e?e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`):"";const aft=e=>{const t=e.length;return e.reduce((n,r,o)=>{const i=parseFloat((100/(t-1)).toFixed(2))*o;if(typeof r=="string")return`${n} ${i}% {${r}}`;const a=Object.keys(r);if(a.length&&isNaN(+a[0])){const s=a.reduce((l,u)=>`${l} ${ift(u)}: ${r[u]};`,"");return`${n} ${i}% {${s}}`}return`${n} ${a[0]}% {${r[a[0]]}}`},"")};function sft({keyframes:e,animationName:t}){return`@keyframes ${t} {${aft(e)}}`}function uy({keyframes:e,animationName:t}){var n,r,o,i;let a=document.querySelector("style[data-id=rsi]");a||(a=document.createElement("style"),a.setAttribute("data-id","rsi"),document.head.appendChild(a));const s=(o=(r=(n=a.sheet)===null||n===void 0?void 0:n.cssRules)===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0;try{(i=a.sheet)===null||i===void 0||i.insertRule(sft({keyframes:e,animationName:t}),s)}catch(l){console.error("react simple animate, error found during insert style ",l)}return{styleTag:a,index:s}}var cy=(e,t)=>{if(!e)return;const n=Object.values(e.cssRules).findIndex(({name:r})=>r===t);n>=0&&e.deleteRule(n)},dy=()=>`RSI-${Math.random().toString(36).substr(2,9)}`,Qle=e=>e?nft:Vle;function lft(e){const{children:t,play:n=!1,pause:r=!1,render:o,duration:i=Zg,delay:a=0,easeType:s=c2,direction:l=iL,fillMode:u=aL,iterationCount:c=1,sequenceIndex:f,keyframes:p,sequenceId:g}=e;let m;const y=Kn.useRef({forward:"",reverse:""}),v=Kn.useRef(!1),x=Kn.useRef({forward:null,reverse:null}),w=S_(f,g),{register:I,animationStates:_={}}=Kn.useContext(EI),R=_[w]||{},[,U]=Kn.useState(!1);Kn.useEffect(()=>{const b=x.current,T=y.current;y.current.forward=dy();let C=uy({animationName:y.current.forward,keyframes:p});return x.current.forward=C.styleTag,y.current.reverse=dy(),C=uy({animationName:y.current.reverse,keyframes:p.reverse()}),x.current.reverse=C.styleTag,I(e),n&&U(!0),()=>{var O,$;cy((O=b.forward)===null||O===void 0?void 0:O.sheet,T.forward),cy(($=b.reverse)===null||$===void 0?void 0:$.sheet,T.reverse)}},[]),R.controlled&&!v.current?(m=R.pause,R.pause||(v.current=!0)):m=r;const D={animation:`${i}s ${s} ${R.delay||a}s ${c} ${l} ${u} ${Qle(m)} ${((R.controlled?R.play:n)?y.current.forward:y.current.reverse)||""}`};return o?o({style:D}):Kn.createElement("div",{style:D||{}},t)}function uft(e){const{start:t,end:n,complete:r,onComplete:o,delay:i=0,duration:a=Zg,easeType:s=c2}=e,l=Kn.useMemo(()=>`${sL} ${a}s ${s} ${i}s`,[a,s,i]),[u,c]=Kn.useState({isPlaying:!1,style:{...t,transition:l}}),{isPlaying:f,style:p}=u,g=Kn.useRef();return Kn.useEffect(()=>((o||r)&&f&&(g.current=setTimeout(()=>{o&&o(),r&&c(m=>({...m,style:r}))},qle(i+a))),()=>g.current&&clearTimeout(g.current)),[u,r,i,a,f,o]),{isPlaying:f,style:p,play:Kn.useCallback(m=>{c(y=>({...y,style:{...m?n:t,transition:l},isPlaying:m}))},[n,t,l])}}function cft(e){const{duration:t=Zg,delay:n=0,easeType:r=c2,direction:o=iL,fillMode:i=aL,iterationCount:a=1,keyframes:s}=e,l=Kn.useRef({forward:"",reverse:""}),u=Kn.useRef({forward:null,reverse:null}),{register:c}=Kn.useContext(EI),[f,p]=Kn.useState(null),[g,m]=Kn.useState(!1);return Kn.useEffect(()=>{const v=u.current,x=l.current;l.current.forward=dy();let w=uy({animationName:l.current.forward,keyframes:s});return u.current.forward=w.styleTag,l.current.reverse=dy(),w=uy({animationName:l.current.reverse,keyframes:s.reverse()}),u.current.reverse=w.styleTag,c(e),()=>{var I,_;cy((I=v.forward)===null||I===void 0?void 0:I.sheet,x.forward),cy((_=v.reverse)===null||_===void 0?void 0:_.sheet,x.reverse)}},[]),{style:{animation:`${t}s ${r} ${n}s ${a} ${o} ${i} ${Qle(g)} ${f===null?"":f?l.current.forward:l.current.reverse}`},play:p,pause:m,isPlaying:!!f}}function dft(e){return Array.from({length:e},()=>null)}function fft(e){const{sequences:t=[]}=e,n=dft(t.length).map((c,f)=>e.sequences[f].start),[r,o]=Kn.useState(n),[i,a]=Kn.useState(!1),s=Kn.useRef([]),l=Kn.useRef([]);Kn.useEffect(()=>{t.forEach(({keyframes:p},g)=>{if(!Array.isArray(p))return;s.current[g]||(s.current[g]={},l.current[g]={}),s.current[g].forward=dy();let m=uy({animationName:s.current[g].forward,keyframes:p});l.current[g].forward=m.styleTag,s.current[g].reverse=dy(),m=uy({animationName:s.current[g].reverse,keyframes:p.reverse()}),l.current[g].reverse=m.styleTag});const c=l.current,f=s.current;return()=>Object.values(f).forEach(({forward:p,reverse:g},m)=>{var y,v;cy((y=c[m].forward)===null||y===void 0?void 0:y.sheet,p),cy((v=c[m].reverse)===null||v===void 0?void 0:v.sheet,g)})},[]);const u=Kn.useCallback(c=>{let f=0;const p=c?s.current:[...s.current].reverse(),g=(c?t:[...t].reverse()).map((m,y)=>{const{duration:v=Zg,delay:x=0,overlay:w,keyframes:I,iterationCount:_=1,easeType:R=c2,direction:U=iL,fillMode:D=aL,end:b={},start:T={}}=m,C=y===0?x:f,O=`${sL} ${v}s ${R} ${C}s`;return f=Hle({duration:v,delay:x,overlay:w})+f,I?{animation:`${v}s ${R} ${C}s ${_} ${U} ${D} ${Vle} ${c?p[y].forward:p[y].reverse}`}:{...c?b:T,transition:O}});o(c?g:[...g].reverse()),a(c)},[]);return{styles:r,play:u,isPlaying:i}}$p.Animate=oft;$p.AnimateGroup=rft;$p.AnimateKeyframes=lft;$p.useAnimate=uft;$p.useAnimateGroup=fft;$p.useAnimateKeyframes=cft;Object.defineProperty(oL,"__esModule",{value:!0});function pft(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var su=pft(M),hft=$p;function Kle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rH(e,t){for(var n=0;nyft?0:t+1}:null,{degree:o-r})},Zle=function(e){Gle(t,e);function t(){var n,r;Kle(this,t);for(var o=arguments.length,i=new Array(o),a=0;a4?.25:0,"px"),position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",WebkitFontSmoothing:"antialiased",color:a,background:s,transform:"rotateX(0deg) translateZ(".concat(R,"px)"),visibility:"hidden"},v)},o))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var i=r.activeNumber,a=o.rotateCounter;return aH(a,i)}}]),t}(su.Component),eue=function(e){Gle(t,e);function t(){return Kle(this,t),Jle(this,C_(t).apply(this,arguments))}return Yle(t,[{key:"shouldComponentUpdate",value:function(r){return r.nonNumberClassName!==this.props.nonNumberClassName||r.numberClassName!==this.props.numberClassName||r.numbers!==this.props.numbers||r.height!==this.props.height||r.width!==this.props.width||r.duration!==this.props.duration||r.delay!==this.props.delay||r.play!==this.props.play}},{key:"render",value:function(){var r=this.props,o=r.numbers,i=r.nonNumberStyle,a=r.numberStyle,s=r.numberClassName,l=r.nonNumberClassName,u=r.height,c=r.width,f=r.color,p=r.background,g=r.perspective,m=r.duration,y=r.animate,v=r.play,x=r.delay,w=0;return su.createElement("section",{style:{display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":o},Array.from(o).map(function(I,_){var R,U=su.createElement("span",{"aria-hidden":!0,style:i,className:l,key:w},I);return y?(w+=1,Number.isNaN(parseInt(I,10))?U:su.createElement(Zle,x_({key:_,height:u,width:c,color:f,background:p,perspective:g,duration:m,play:v,delay:x,numberStyle:a},{position:w,length:o.length,activeNumber:parseInt(I,10),className:s}))):Number.isNaN(parseInt(I,10))?U:su.createElement("span",(R={"aria-hidden":!0,style:{padding:0}},fy(R,"style",i),fy(R,"key",w),R),I)}))}}]),t}(su.Component);fy(eue,"defaultProps",{perspective:500,duration:.3,animate:!0,play:!1,delay:0,nonNumberStyle:{},numberStyle:{}});oL.FlipNumber=Zle;var vft=oL.default=eue;const Jx=e=>e.toString().length<2?`0${e}`:`${e}`;function sH({date:e}){const t=n=>Se(bft,{justifyContent:"space-between",children:[A(Xx,{title:"Days",value:Jx(n.days)}),A(Xx,{title:"Hours",value:Jx(n.hours)}),A(Xx,{title:"Minutes",value:Jx(n.minutes)}),A(Xx,{title:"Seconds",value:Jx(n.seconds)})]});return e?A(Sft,{children:A(rL,{overtime:!0,date:e,renderer:t})}):null}const bft=J(_t)(({theme:e})=>({span:{background:`${e.palette.background.paper}!important`,color:e.palette.mode==="light"?e.palette.text.primary:"white!important"}})),Xx=({value:e,title:t})=>{const n=Fo();return Se(wft,{children:[A(At,{className:"title",children:t}),A(vft,{height:15,width:15,color:n.palette.primary.main,background:"white",play:!0,perspective:100,numbers:e})]})},wft=J(zt)({width:"unset",".title":{textTransform:"uppercase",fontSize:12,fontWeight:600}}),Sft=J(_t)(({theme:e})=>({fontWeight:600,color:e.palette.primary.main})),xft=({hideText:e})=>A(Cft,{href:Zoe,target:"_blank",children:Se(_t,{gap:7,children:[A(Xtt,{}),!e&&A(At,{children:"GitHub"})]})}),Cft=J("a")(({theme:e})=>{const t=e.palette.text.secondary;return{fontSize:18,textDecoration:"unset",marginLeft:10,svg:{color:t,width:24,height:24},p:{fontSize:"inherit",color:t,fontWeight:700}}});function Aft(e){return er({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}}]})(e)}function _ft({to:e,func:t}){const n=av(),r=Qg().pathname,o=Ki(),i=()=>{t?t():e?n(e):window.history.state&&window.history.state.idx>0?n(-1):n(bn.spaces,{replace:!0})};return r===bn.spaces?null:A(Eft,{onClick:i,children:Se(_t,{gap:5,children:[A(Aft,{}),A(At,{children:o.back})]})})}const Eft=J(Wr)({cursor:"pointer",padding:"8px 14px",height:"auto",background:"#0088CC",borderRadius:20,"*":{color:"white!important"},p:{fontSize:14,fontWeight:600}});function Tft(){var e=new Map;function t(n){var r=n.root,o=n.rootMargin,i=n.threshold,a=e.get(r);a||(a=new Map,e.set(r,a));var s=JSON.stringify({rootMargin:o,threshold:i}),l=a.get(s);if(!l){var u=new Map,c=new IntersectionObserver(function(f){f.forEach(function(p){var g=u.get(p.target);g==null||g(p)})},{root:r,rootMargin:o,threshold:i});l={observer:c,entryCallbacks:u},a.set(s,l)}return{observe:function(p,g){var m,y;(m=l)==null||m.entryCallbacks.set(p,g),(y=l)==null||y.observer.observe(p)},unobserve:function(p){var g,m;(g=l)==null||g.entryCallbacks.delete(p),(m=l)==null||m.observer.unobserve(p)}}}return{getObserver:t}}var kft="0px",Ift=[0],Pft=Tft();function lL(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:kft,o=(n=e==null?void 0:e.threshold)!=null?n:Ift,i=M.useRef(null),a=M.useRef(null),s=M.useRef(null),l=M.useState(),u=l[0],c=l[1],f=M.useCallback(function(){var y=i.current;if(!y){c(void 0);return}var v=Pft.getObserver({root:a.current,rootMargin:r,threshold:o});v.observe(y,function(x){c(x)}),s.current=v},[r,o]),p=M.useCallback(function(){var y=s.current,v=i.current;v&&(y==null||y.unobserve(v)),s.current=null},[]),g=M.useCallback(function(y){p(),i.current=y,f()},[f,p]),m=M.useCallback(function(y){p(),a.current=y,f()},[f,p]);return[g,{entry:u,rootRef:m}]}function uL({limit:e,showMore:t,totalItems:n,amountToShow:r,className:o=""}){const[i,{entry:a}]=lL(),s=a&&a.isIntersecting,l=Ki();return M.useEffect(()=>{s&&t()},[s]),r>=n?null:r!==e?A("div",{ref:i}):A(Oft,{className:o,children:A(Mft,{variant:"transparent",onClick:t,children:l.loadMore})})}const Mft=J(dr)(({theme:e})=>({width:"100%",background:e.palette.background.paper})),Oft=J(_t)({marginBottom:50});function Rft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function Dft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 21h3.75L17.81 9.94l-3.75-3.75L3 17.25V21zm2-2.92l9.06-9.06.92.92L5.92 19H5v-.92zM18.37 3.29a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 000-1.41l-2.34-2.34z"}}]})(e)}function Bft({options:e,selected:t,onSelect:n,className:r=""}){const o=a=>{n(a.target.value)},i=Fo();return A(AZe,{className:r,children:A(MD,{MenuProps:{PaperProps:{style:{borderRadius:10,border:i.palette.mode==="light"?"1px solid #e0e0e0":"1px solid #424242",boxShadow:i.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"}}},IconComponent:Rft,value:t,onChange:o,children:e.map(a=>A(kD,{value:a.value,children:a.text},a.value))})})}function tue({children:e,title:t,className:n}){return A($ft,{className:n,title:t,children:e})}const $ft=J(sv)({top:90,width:350,position:"sticky",[`@media (max-width: ${Nn}px)`]:{position:"unset",width:"100%"}});function cL({isLoading:e,isEmpty:t,children:n,emptyComponent:r,loader:o}){return t?A(hi,{children:r}):e?A(hi,{children:o}):A(hi,{children:n})}function Lft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M3,3 L21,21 M3,21 L21,3"}}]})(e)}function Fft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M4.99787498,8.99999999 L4.99787498,0.999999992 L19.4999998,0.999999992 L22.9999998,4.50000005 L23,23 L4,23 M18,1 L18,6 L23,6 M7,13 C7,13 6.00000004,13 5,13 C3.99999996,13 3,13.5 3,14.5 L3,16 C3,16 3.00000001,16.5 3,17.5 C2.99999999,18.5 4,19 5,19 L7,19 M13.25,13 C13.25,13 12.25,13 10.75,13 C9.25,13 8.75,13.5 8.75,14.5 C8.75,15.5 9.25,16 10.75,16 C12.25,16 12.75,16.5 12.75,17.5 C12.75,18.5 12.25,19 10.75,19 C9.25,19 8.25,19 8.25,19 M20.5,12 C20.5,12 20.5,12 20.5,12.5 C20.5,13 18,19 18,19 L17.5,19 C17.5,19 15,13 15,12.5 L15,12"}}]})(e)}const d2=({hideCloseButton:e,children:t,onClose:n,open:r,className:o="",title:i,transparent:a})=>A(jft,{open:r,onClose:n,componentsProps:{backdrop:{style:{opacity:a?0:1}}},children:A(Nft,{children:A(Uft,{title:i||"",className:`popup-children ${o}`,headerComponent:i?n&&!e&&A(Wft,{close:n}):null,children:t})})}),Nft=J($G)({display:"flex",alignItems:"center",justifyContent:"center",padding:0,outline:"unset"}),Uft=J(Oc)(({theme:e})=>({".container-header":{alignItems:"center"},position:"relative",padding:"0px",width:"100%",height:"fit-content",outline:"unset",".popup-title":{fontSize:18,fontWeight:600,textAlign:"center"}})),jft=J(ED)({backdropFilter:"blur(5px)",display:"flex",alignItems:"center",justifyContent:"center",padding:20,outline:"unset",border:"unset"});function Wft({close:e,className:t=""}){return A(zft,{className:t,onClick:e,children:A(Lft,{style:{width:15,height:15}})})}const zft=J(Vd)(({theme:e})=>({background:"transparent",border:"unset",cursor:"pointer",svg:{stroke:e.palette.text.primary,"*":{color:"inherit",stroke:"inherit"}}}));function Vft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}}]})(e)}function nue({className:e="",onChange:t,initialValue:n="",filterOptions:r,filterValue:o,onFilterSelect:i,placeholder:a}){const[s,l]=M.useState(n),u=xbt(s,300),c=Ki(),f=r&&o&&i;return M.useEffect(()=>{t(u)},[u]),A(Qft,{className:e,hover:!0,children:Se(_t,{style:{height:"100%",paddingLeft:10,gap:0},children:[Se(qft,{children:[A(Vft,{}),A(Kft,{placeholder:a||c.search,value:s,onChange:p=>l(p.target.value)})]}),f&&A(Hft,{options:r,selected:o,onSelect:i})]})})}const Hft=J(Bft)({"*":{border:"unset!imporatnt",outline:"unset!imporatnt"},".MuiSelect-select":{minWidth:"unset",border:"unset",paddingLeft:12,"&:hover":{border:"unset"}},fieldset:{display:"none!important"}}),qft=J(_t)({flex:1,height:"100%"}),Qft=J(Ru)({height:46,padding:0,overflow:"hidden",borderRadius:30,svg:{width:25,height:25}}),Kft=J("input")({height:"100%",border:"unset",outline:"unset",width:"calc(100% - 25px)",minWidth:"unset",fontSize:16,fontFamily:"inherit",fontWeight:500,"&::placeholder":{opacity:.6}});function dL({title:e,component:t,className:n=""}){return Se(Yft,{justifyContent:"space-between",className:`header ${n}`,children:[A(SZe,{children:e}),t]})}const Yft=J(_t)({marginBottom:20,marginTop:20,alignItems:"flex-start"}),Rc=({loaderAmount:e=4,className:t=""})=>A(Jft,{className:t,children:A(zt,{alignItems:"flex-start",children:[...Array(e).keys()].map(n=>{const r=(n+1)*20;return A(Gft,{style:{width:r>100?"100%":`${r}%`}},n)})})}),Gft=J(Oa)({height:20,transform:"unset",borderRadius:10,gap:15}),Jft=J(Ru)({width:"100%",gap:10,alignItems:"flex-start"});function rue({status:e}){return e?A(uc,{label:e,className:"status",color:"primary"}):null}function oue(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M383.5 128l.5-24a56.16 56.16 0 00-56-56H112a64.19 64.19 0 00-64 64v216a56.16 56.16 0 0056 56h24"}}]})(e)}function Xft(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"40",d:"M160 164c0-10 1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 290.36 248 316"}},{tag:"rect",attr:{width:"56",height:"56",x:"220",y:"368",rx:"3.5",ry:"3.5"}}]})(e)}function Zft(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M368 415.86V72a24.07 24.07 0 00-24-24H72a24.07 24.07 0 00-24 24v352a40.12 40.12 0 0040 40h328"}},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 464h0a48 48 0 01-48-48V128h72a24 24 0 0124 24v264a48 48 0 01-48 48z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M240 128h64m-64 64h64m-192 64h192m-192 64h192m-192 64h192"}},{tag:"path",attr:{d:"M176 208h-64a16 16 0 01-16-16v-64a16 16 0 0116-16h64a16 16 0 0116 16v64a16 16 0 01-16 16z"}}]})(e)}var bo=(e=>(e.CLOSED="ENDED",e.NOT_STARTED="NOT_STARTED",e.ACTIVE="ACTIVE",e))(bo||{});const lH=[],uH=[],fL=(e,t=6)=>e?`${e.substring(0,t)}...${e.substring(e.length-t)}`:"";function ept(e){return new Promise(t=>setTimeout(t,e))}const $o=(...e)=>{ns&&console.log(...e)},pL=(e,t)=>{let n=Ze.map(e,(o,i)=>{const a=t[i];return{address:i,vote:o.vote,votingPower:a?js.fromNano(a):"0",timestamp:o.timestamp,hash:o.hash}});return Ze.orderBy(n,"timestamp",["desc","asc"])};function $d(e,t=2){const n=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],r=/\.0+$|(\.[0-9]*[1-9])0+$/;var o=n.slice().reverse().find(function(i){return e>=i.value});return e<1?e.toFixed(5).replace(r,"$1"):o?(e/o.value).toFixed(t).replace(r,"$1")+o.symbol:"0"}const rM=(e,t)=>{var n=Je(u5(e)),r=Je();const o=t?r:n,i=t?n:r,a=o.diff(i,"days"),s=o.diff(i,"hours"),l=o.diff(i,"minutes");return a>0?a===1?"1 day":`${a} days`:s>0?s===1?"1 hour":`${s} hours`:l===1?"1 minute":`${l} minutes`},tpt=e=>{if(!e)return null;const{proposalStartTime:t,proposalEndTime:n}=e,r=Je.utc().valueOf(),o=u5(Number(t))<=r,i=u5(Number(n))<=r;return i?bo.CLOSED:o&&!i?bo.ACTIVE:o?null:bo.NOT_STARTED},u5=e=>Je.unix(Number(e)).valueOf(),iue=e=>e?`${LGe}/${e}`:"",npt=(e,t,n)=>{if(!t||!n)return;const r=bR(js.fromNano(n)).multipliedBy(t).div(100).toNumber();return e===at.VotingPowerStrategyType.NftCcollection?$d(Math.round(r),2):$d(r,2)},rpt=e=>{if(!e)return"0";const t=typeof e=="string"?Number(e):e.toNumber();return $d(Number(js.fromNano(Math.round(t))),2)},Ld=e=>{if(!e)return!0;try{return js.Address.isAddress(js.Address.parse(e))}catch{return!1}};async function hL(e){let t="";return await e.validateForm().then(n=>{if(!Ze.isEmpty(n)){const r=Ze.first(Ze.values(n));t=r,r&&f2(r)}}),t}const fs=(e,t="en")=>{if(!e||!t)return"";try{const r=JSON.parse(e)[t];if(!r)throw new Error("No value");return r}catch{return e}},aue=e=>!e||opt(e)?!1:Ze.size(lH)?lH.includes(e):!0,opt=e=>e?QGe.includes(e):!1,ipt=e=>e?Ze.size(uH)?uH.includes(e):!0:!1,Ig=e=>e===vw,Pa=e=>{const t=!e||!Ze.size(e)?at.VotingPowerStrategyType.TonBalance:e[0].type;return Number(t)},sue=(e=0,t=0)=>Math.max(Number(e),t).toString(),apt=e=>{if(!e)return{};let t={};const n=Ze.flatMap(e,r=>r.arguments);return Ze.forEach(n,r=>{t[r.name]=r.value}),t},spt=(e,t)=>apt(t)[e],_b=e=>{const t=e?Je(e):Je(),n=t.parseZone().utcOffset();return n<0?t.subtract(Math.abs(n),"minutes"):t.add(n,"minutes")},oM=e=>{const t=e?Je(e):Je(),n=t.parseZone().utcOffset();return n<0?t.add(Math.abs(n),"minutes"):t.subtract(n,"minutes")},lpt=(e,t,n=9e4)=>(Je().valueOf(),e-t>=n),upt=(e,t,n,r,o)=>{let i="0";if(e!=null&&e.sumCoins){const a=e.sumCoins[t]||e.sumCoins[t.toLowerCase()];i=rpt(a)}else i=npt(o,n,r)||"0";return i},cpt=(e,t)=>{var n,r;return((n=e==null?void 0:e.proposalResult)==null?void 0:n[t])||((r=e==null?void 0:e.proposalResult)==null?void 0:r[t.toLowerCase()])},dpt=(e,t)=>{let n=0;if(e.sumVotes)n=e.sumVotes[t]||e.sumVotes[t.toLowerCase()];else{const r=Ze.mapValues(Ze.groupBy(e.votes,"vote"),o=>Ze.size(o));n=r[t]||r[t.toLowerCase()]||0}return n},lue=e=>zGe.includes(e||""),uue=e=>{const t=Pa(e);return t==at.VotingPowerStrategyType.NftCcollection||t==at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote},gL=e=>{switch(Pa(e)){case at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.TonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return!0;default:return!1}},mL=e=>{switch(Pa(e)){case at.VotingPowerStrategyType.TonBalance:case at.VotingPowerStrategyType.TonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.TonBalanceWithValidators:return"TON";case at.VotingPowerStrategyType.JettonBalance:case at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:return"Jetton";case at.VotingPowerStrategyType.NftCcollection:case at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return"NFT"}};var yL={exports:{}},R1={};/** + `),i=!1),Object.assign(Object.assign({},e),{allowNegative:i})}function Gdt(e){e=Ydt(e);var t=e.decimalSeparator;t===void 0&&(t="."),e.allowedDecimalSeparators,e.thousandsGroupStyle,e.suffix;var n=e.allowNegative,r=e.allowLeadingZeros,o=e.onKeyDown;o===void 0&&(o=If);var i=e.onBlur;i===void 0&&(i=If);var a=e.thousandSeparator,s=e.decimalScale,l=e.fixedDecimalScale,u=e.prefix;u===void 0&&(u="");var c=e.defaultValue,f=e.value,p=e.valueIsNumericString,g=e.onValueChange,m=Ele(e,["decimalSeparator","allowedDecimalSeparators","thousandsGroupStyle","suffix","allowNegative","allowLeadingZeros","onKeyDown","onBlur","thousandSeparator","decimalScale","fixedDecimalScale","prefix","defaultValue","value","valueIsNumericString","onValueChange"]),y=function(O){return tH(O,e)},v=function(O,$){return Qdt(O,$,e)},x=p;Ab(f)?Ab(c)||(x=p??typeof c=="number"):x=p??typeof f=="number";var w=function(O){return Ab(O)||Tle(O)?O:(typeof O=="number"&&(O=Ple(O)),x&&typeof s=="number"?XV(O,s,!!l):O)},I=Mle(w(f),w(c),!!x,y,v,g),_=I[0],R=_.numAsString,U=_.formattedValue,D=I[1],b=function(O){var $=O.target,j=O.key,L=$.selectionStart,B=$.selectionEnd,H=$.value;if(H===void 0&&(H=""),L!==B){o(O);return}j==="Backspace"&&H[0]==="-"&&L===u.length+1&&n&&Sh($,1);var q=_I(e),Y=q.decimalSeparator,W=q.allowedDecimalSeparators;j==="Backspace"&&H[L-1]===Y&&s&&l&&(Sh($,L-1),O.preventDefault()),W!=null&&W.includes(j)&&H[L]===Y&&Sh($,L+1);var ie=a===!0?",":a;j==="Backspace"&&H[L-1]===ie&&Sh($,L-1),j==="Delete"&&H[L]===ie&&Sh($,L+1),o(O)},T=function(O){var $=R;if($.match(/\d/g)||($=""),r||($=Bdt($)),l&&s&&($=XV($,s,l)),$!==R){var j=tH($,e);D({formattedValue:j,value:$,floatValue:parseFloat($)},{event:O,source:_w.event})}i(O)},C=function(O){return O===t?!0:Ew(O)};return Object.assign(Object.assign({},m),{value:U,valueIsNumericString:!1,isValidInputCharacter:C,onValueChange:D,format:y,removeFormatting:v,getCaretBoundary:function(O){return Kdt(O,e)},onKeyDown:b,onBlur:T})}function Ole(e){var t=Gdt(e);return Dn.createElement(Vdt,Object.assign({},t))}function Rle({value:e="",onChange:t,label:n,error:r,onFocus:o,rows:i,onBlur:a,placeholder:s,title:l,name:u,endAdornment:c,className:f="",tooltip:p,required:g,limit:m,startAdornment:y,disabled:v,isMarkdown:x,defaultValue:w}){const I=Ki(),[_,R]=M.useState(!1),U=D=>{m?(Ze.size(e.toString())<=m||Ze.size(D)0&&Se(Adt,{justifyContent:"flex-end",children:[A(GV,{onClick:()=>R(!_),children:_?I.edit:I.preview}),A(GV,{onClick:()=>window.open("https://www.markdownguide.org/basic-syntax/","_blank"),children:I.help})]}),_?A(Jdt,{md:e}):A(Cle,{markdown:x?1:0,preview:_?1:0,children:A(RD,{placeholder:s,onBlur:a,name:u,rows:i,disabled:v,multiline:!!i,onFocus:o,variant:"outlined",value:e,error:!!r,label:n,onChange:D=>U(D.target.value),InputProps:{endAdornment:c,startAdornment:y}})})]}),r&&Se(eL,{children:[A(uI,{}),A(At,{children:r})]})]})}const Jdt=({md:e})=>A(_dt,{children:A(Gs,{children:e})}),EI=({title:e,tooltip:t,limit:n,required:r,value:o})=>{const i=Ze.size(o||"");return e?Se(Ale,{children:[Se(_t,{justifyContent:"flex-start",width:"auto",children:[A(nL,{title:e,required:r}),t&&A(Ko,{placement:"right",info:!0,markdown:t})]}),n&&Se(Edt,{children:[i,"/",n]})]}):null};function Xdt({onChange:e,className:t="",value:n,title:r}){const o=M.useCallback(l=>{e(l[0])},[]),{getRootProps:i,getInputProps:a,isDragActive:s}=Rae({onDrop:o,maxFiles:1});return Se(vdt,{children:[r&&A(_le,{children:r}),Se(ydt,{...i(),className:`${t} upload-input`,active:s,children:[n&&A(bdt,{src:URL.createObjectURL(n)}),A(Snt,{}),A("input",{...a()})]})]})}const nL=({title:e,required:t,className:n})=>Se(_le,{className:`input-title ${n}`,children:[A(Gs,{className:"md",children:e}),A("small",{className:"input-title-required",style:{fontSize:14},children:t?" (required)":" (optional)"})]}),Zdt=({className:e="",onChange:t,title:n,error:r,onFocus:o,min:i,max:a,value:s="",required:l,tooltip:u})=>A(z$,{dateAdapter:_at,children:Se(Tdt,{className:`${e} date-input`,error:r?1:0,children:[Se(Ale,{children:[n&&A(nL,{title:n,required:l}),u&&A(Ko,{info:!0,markdown:u})]}),A(Gct,{value:s?Je(s):null,onOpen:o,className:"datepicker",onChange:c=>t(Je(c).valueOf()),format:"YYYY-MM-DD HH:mm"}),r&&Se(eL,{children:[A(uI,{}),A(At,{children:r})]})]})});function Dle({args:e,value:t,error:n,className:r,onChange:o,customInputHandler:i,clearError:a,formik:s}){const l=M.useRef(!1);M.useEffect(()=>{t&&(l.current=!0)},[t]),M.useEffect(()=>{!t&&e.default&&!l.current&&o(e.default)},[e.default,t]);const u=e.name,c=e.label,f=e.EndAdornment,p={required:e.required,title:e.label,tooltip:e.tooltip};return e.type==="date"?A(Zdt,{...p,onChange:o,error:n,onFocus:a,className:r,min:e.min,max:e.max,value:t}):e.type==="upload"?A(Xdt,{title:c,onChange:o,value:t}):e.type==="number"?A(aft,{placeholder:e.placeholder,value:t,onChange:o,prefix:e.prefix,suffix:e.suffix,error:n,onFocus:a,...p,endAdornment:f&&A(f,{name:u,formik:s})}):e.type==="checkbox"?A(Ble,{...p,onChange:o,value:t}):e.type==="list"?A(nft,{title:c,onChange:o,values:t||[""],required:e.required,disabled:e.disabled,tooltip:e.tooltip,placeholder:e.placeholder}):e.type==="text"||e.type==="textarea"||e.type==="address"||e.type==="image"||e.type==="url"?M.createElement(Rle,{...e,defaultValue:e.default,onFocus:a,key:u,error:n,title:c,label:"",value:t,name:u,onChange:o,endAdornment:f&&A(f,{name:u,formik:s})}):e.type==="custom"&&i?i(e):e.type==="display-text"?A(kdt,{children:e.text}):null}const Ble=({title:e,onChange:t,value:n=!1,required:r,tooltip:o,className:i=""})=>Se(tft,{className:i,justifyContent:"flex-start",gap:2,children:[A(jTe,{checked:n,onChange:()=>t(!n)}),e&&A(eft,{title:e,required:r}),o&&A(Ko,{placement:"right",info:!0,markdown:o})]}),eft=J(nL)({width:"unset",marginRight:10}),tft=J(_t)({}),nft=({values:e=[""],title:t,required:n,onChange:r,disabled:o,tooltip:i,placeholder:a="",max:s=7})=>{const l=(f,p)=>{const g=e.map((m,y)=>f===y?p:m);r(g)},u=()=>{const f=[...e,""];r(f)},c=f=>{const p=e.filter((g,m)=>f!==m);r(p)};return Se(AI,{children:[A(EI,{tooltip:i,title:t,required:n}),A(zt,{gap:15,alignItems:"flex-start",children:e&&e.map((f,p)=>{const g=p===e.length-1;return Se(_t,{justifyContent:"flex-start",children:[A(Sdt,{disabled:o?1:0,children:A(Rle,{placeholder:a,endAdornment:!o&&p>0&&A(Ko,{text:"Delete choice",children:A(Vd,{onClick:()=>c(p),children:A(dnt,{style:{width:17,height:17,cursor:"pointer"}})})}),onChange:m=>l(p,m),value:f})}),!o&&g&&p{const l=Ze.size(o)===s+1;return Se(Oc,{className:"formik-form",title:a.title,headerComponent:a.warning&&Se(oft,{children:[A(uI,{}),a.warning]}),children:[Se(zt,{gap:30,children:[a.subTitle&&A(UZe,{children:a.subTitle}),A(ift,{gap:20,children:a.inputs.map(u=>{var f;const c=()=>t.setFieldError(u.name,void 0);return A(xdt,{className:"form-input",style:{width:(f=u.style)!=null&&f.width||i?"100%":a.inputsInRow?`calc(${100/a.inputsInRow}% - ${a.inputsInRow*7}px)`:"100%"},children:A(Dle,{customInputHandler:n,args:u,value:t.values[u.name],error:t.errors[u.name],clearError:c,onChange:p=>{t.setFieldValue(u.name,p),c()},formik:t})},u.name)})})]}),a.bottomText&&A(rft,{children:a.bottomText}),l&&r]},s)})})}const rft=J(Gs)({marginTop:20,p:{fontSize:15,fontWeight:500}}),oft=J(At)(({theme:e})=>({width:"100%",color:e.palette.text.primary,svg:{position:"relative",top:2,marginRight:4}})),ift=J(_t)({flexWrap:"wrap",justifyContent:"flex-start",alignItems:"flex-start"}),aft=({value:e,placeholder:t="",onChange:n,prefix:r="",suffix:o="",required:i,title:a,tooltip:s,endAdornment:l,error:u,onFocus:c})=>Se(Cle,{children:[A(EI,{title:a,required:i,tooltip:s}),A(Ole,{prefix:r,suffix:o,value:e,onFocus:c,placeholder:t,customInput:RD,thousandSeparator:",",onValueChange:f=>{n(f.floatValue)},InputProps:{endAdornment:l}}),u&&Se(eL,{children:[A(uI,{}),A(At,{children:u})]})]});function $le({value:e,decimalScale:t=2,prefix:n,className:r="",suffix:o}){return A(Ole,{type:"text",valueIsNumericString:!0,value:e,allowLeadingZeros:!0,thousandSeparator:",",className:`number-display ${r}`,displayType:"text",decimalScale:t,prefix:n,suffix:o})}function Lle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nH(e,t){for(var n=0;n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function lft(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uft(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:lft(e)}function Ule(e){var t=sft();return function(){var r=w_(e),o;if(t){var i=w_(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return uft(this,o)}}function cft(e){return dft(e)||fft(e)||pft(e)||hft()}function dft(e){if(Array.isArray(e))return a5(e)}function fft(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pft(e,t){if(e){if(typeof e=="string")return a5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a5(e,t)}}function a5(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&arguments[1]!==void 0?arguments[1]:2,n=String(e);if(t===0)return n;var r=n.match(/(.*?)([0-9]+)(.*)/),o=r?r[1]:"",i=r?r[3]:"",a=r?r[2]:n,s=a.length>=t?a:(cft(Array(t)).map(function(){return"0"}).join("")+a).slice(t*-1);return"".concat(o).concat(s).concat(i)}var jle={daysInHours:!1,zeroPadTime:2};function gft(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.now,r=n===void 0?Date.now:n,o=t.precision,i=o===void 0?0:o,a=t.controlled,s=t.offsetTime,l=s===void 0?0:s,u=t.overtime,c;typeof e=="string"?c=new Date(e).getTime():e instanceof Date?c=e.getTime():c=e,a||(c+=l);var f=a?c:c-r(),p=Math.min(20,Math.max(0,i)),g=Math.round(parseFloat(((u?f:Math.max(0,f))/1e3).toFixed(p))*1e3),m=Math.abs(g)/1e3;return{total:g,days:Math.floor(m/(3600*24)),hours:Math.floor(m/3600%24),minutes:Math.floor(m/60%60),seconds:Math.floor(m%60),milliseconds:Number((m%1*1e3).toFixed()),completed:g<=0}}function mft(e,t){var n=e.days,r=e.hours,o=e.minutes,i=e.seconds,a=Object.assign(Object.assign({},jle),t),s=a.daysInHours,l=a.zeroPadTime,u=a.zeroPadDays,c=u===void 0?l:u,f=Math.min(2,l),p=s?O1(r+n*24,l):O1(r,f);return{days:s?"":O1(n,c),hours:p,minutes:O1(o,f),seconds:O1(i,f)}}var Wle=function(e){Nle(n,e);var t=Ule(n);function n(){var r;return Lle(this,n),r=t.apply(this,arguments),r.state={count:r.props.count||3},r.startCountdown=function(){r.interval=window.setInterval(function(){var o=r.state.count-1;o===0?(r.stopCountdown(),r.props.onComplete&&r.props.onComplete()):r.setState(function(i){return{count:i.count-1}})},1e3)},r.stopCountdown=function(){clearInterval(r.interval)},r.addTime=function(o){r.stopCountdown(),r.setState(function(i){return{count:i.count+o}},r.startCountdown)},r}return Fle(n,[{key:"componentDidMount",value:function(){this.startCountdown()}},{key:"componentWillUnmount",value:function(){clearInterval(this.interval)}},{key:"render",value:function(){return this.props.children?M.cloneElement(this.props.children,{count:this.state.count}):null}}]),n}(M.Component);Wle.propTypes={count:ue.number,children:ue.element,onComplete:ue.func};var rL=function(e){Nle(n,e);var t=Ule(n);function n(r){var o;if(Lle(this,n),o=t.call(this,r),o.mounted=!1,o.initialTimestamp=o.calcOffsetStartTimestamp(),o.offsetStartTimestamp=o.props.autoStart?0:o.initialTimestamp,o.offsetTime=0,o.legacyMode=!1,o.legacyCountdownRef=M.createRef(),o.tick=function(){var a=o.calcTimeDelta(),s=a.completed&&!o.props.overtime?void 0:o.props.onTick;o.setTimeDeltaState(a,void 0,s)},o.start=function(){if(!o.isStarted()){var a=o.offsetStartTimestamp;o.offsetStartTimestamp=0,o.offsetTime+=a?o.calcOffsetStartTimestamp()-a:0;var s=o.calcTimeDelta();o.setTimeDeltaState(s,"STARTED",o.props.onStart),!o.props.controlled&&(!s.completed||o.props.overtime)&&(o.clearTimer(),o.interval=window.setInterval(o.tick,o.props.intervalDelay))}},o.pause=function(){o.isPaused()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.setTimeDeltaState(o.state.timeDelta,"PAUSED",o.props.onPause))},o.stop=function(){o.isStopped()||(o.clearTimer(),o.offsetStartTimestamp=o.calcOffsetStartTimestamp(),o.offsetTime=o.offsetStartTimestamp-o.initialTimestamp,o.setTimeDeltaState(o.calcTimeDelta(),"STOPPED",o.props.onStop))},o.isStarted=function(){return o.isStatus("STARTED")},o.isPaused=function(){return o.isStatus("PAUSED")},o.isStopped=function(){return o.isStatus("STOPPED")},o.isCompleted=function(){return o.isStatus("COMPLETED")},r.date){var i=o.calcTimeDelta();o.state={timeDelta:i,status:i.completed?"COMPLETED":"STOPPED"}}else o.legacyMode=!0;return o}return Fle(n,[{key:"componentDidMount",value:function(){this.legacyMode||(this.mounted=!0,this.props.onMount&&this.props.onMount(this.calcTimeDelta()),this.props.autoStart&&this.start())}},{key:"componentDidUpdate",value:function(o){this.legacyMode||this.props.date!==o.date&&(this.initialTimestamp=this.calcOffsetStartTimestamp(),this.offsetStartTimestamp=this.initialTimestamp,this.offsetTime=0,this.setTimeDeltaState(this.calcTimeDelta()))}},{key:"componentWillUnmount",value:function(){this.legacyMode||(this.mounted=!1,this.clearTimer())}},{key:"calcTimeDelta",value:function(){var o=this.props,i=o.date,a=o.now,s=o.precision,l=o.controlled,u=o.overtime;return gft(i,{now:a,precision:s,controlled:l,offsetTime:this.offsetTime,overtime:u})}},{key:"calcOffsetStartTimestamp",value:function(){return Date.now()}},{key:"addTime",value:function(o){this.legacyCountdownRef.current.addTime(o)}},{key:"clearTimer",value:function(){window.clearInterval(this.interval)}},{key:"isStatus",value:function(o){return this.state.status===o}},{key:"setTimeDeltaState",value:function(o,i,a){var s=this;if(this.mounted){var l=o.completed&&!this.state.timeDelta.completed,u=o.completed&&i==="STARTED";l&&!this.props.overtime&&this.clearTimer();var c=function(){a&&a(s.state.timeDelta),s.props.onComplete&&(l||u)&&s.props.onComplete(o,u)};return this.setState(function(f){var p=i||f.status;return o.completed&&!s.props.overtime?p="COMPLETED":!i&&p==="COMPLETED"&&(p="STOPPED"),{timeDelta:o,status:p}},c)}}},{key:"getApi",value:function(){return this.api=this.api||{start:this.start,pause:this.pause,stop:this.stop,isStarted:this.isStarted,isPaused:this.isPaused,isStopped:this.isStopped,isCompleted:this.isCompleted}}},{key:"getRenderProps",value:function(){var o=this.props,i=o.daysInHours,a=o.zeroPadTime,s=o.zeroPadDays,l=this.state.timeDelta;return Object.assign(Object.assign({},l),{api:this.getApi(),props:this.props,formatted:mft(l,{daysInHours:i,zeroPadTime:a,zeroPadDays:s})})}},{key:"render",value:function(){if(this.legacyMode){var o=this.props,i=o.count,a=o.children,s=o.onComplete;return M.createElement(Wle,{ref:this.legacyCountdownRef,count:i,onComplete:s},a)}var l=this.props,u=l.className,c=l.overtime,f=l.children,p=l.renderer,g=this.getRenderProps();if(p)return p(g);if(f&&this.state.timeDelta.completed&&!c)return M.cloneElement(f,{countdown:g});var m=g.formatted,y=m.days,v=m.hours,x=m.minutes,w=m.seconds;return M.createElement("span",{className:u},g.total<0?"-":"",y,y?":":"",v,":",x,":",w)}}]),n}(M.Component);rL.defaultProps=Object.assign(Object.assign({},jle),{controlled:!1,intervalDelay:1e3,precision:0,autoStart:!0});rL.propTypes={date:ue.oneOfType([ue.instanceOf(Date),ue.string,ue.number]),daysInHours:ue.bool,zeroPadTime:ue.number,zeroPadDays:ue.number,controlled:ue.bool,intervalDelay:ue.number,precision:ue.number,autoStart:ue.bool,overtime:ue.bool,className:ue.string,children:ue.element,renderer:ue.func,now:ue.func,onMount:ue.func,onStart:ue.func,onPause:ue.func,onStop:ue.func,onTick:ue.func,onComplete:ue.func};var oL={},$p={};Object.defineProperty($p,"__esModule",{value:!0});var yft=M;function vft(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if(n!=="default"){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var Kn=vft(yft);const Zg=.3,cx="linear",iL="normal",aL="none",zle="running",bft="paused",sL="all";var Vle=({duration:e=Zg,delay:t=0,overlay:n=0})=>e+t-n||0,Tw=e=>e===void 0;function S_(e,t,n){return Tw(t)&&Tw(e)?n||0:e&&e>=0?e:t||0}const TI=Kn.createContext({animationStates:{},register:()=>{}});function wft({play:e,sequences:t=[],children:n}){const[r,o]=Kn.useState({}),i=Kn.useRef({}),a=Kn.useCallback(s=>{const{sequenceIndex:l,sequenceId:u}=s;(!Tw(u)||!Tw(l))&&(i.current[S_(l,u)]=s)},[]);return Kn.useEffect(()=>{const s=Array.isArray(t)&&t.length?t:Object.values(i.current),l={};(e?s:[...s].reverse()).reduce((u,{sequenceId:c,sequenceIndex:f,duration:p=Zg,delay:g,overlay:m},y)=>{const v=S_(f,c,y),w=Vle({duration:p,delay:g,overlay:m})+u;return l[v]={play:e,pause:!e,delay:(g||0)+u,controlled:!0},w},0),o(l)},[e]),Kn.createElement(TI.Provider,{value:{animationStates:r,register:a}},n)}var Hle=e=>(e||0)*1e3;function Sft(e){const{play:t,children:n,render:r,start:o,end:i,complete:a="",onComplete:s,delay:l=0,duration:u=Zg,easeType:c=cx,sequenceId:f,sequenceIndex:p}=e,g=Kn.useRef(),[m,y]=Kn.useState(o||{}),{register:v,animationStates:x={}}=Kn.useContext(TI),w=S_(p,f);return Kn.useEffect(()=>{(!Tw(p)&&p>=0||f)&&v(e)},[]),Kn.useEffect(()=>{const I=x[w]||{};return y({...t||I.play?i:o,transition:`${sL} ${u}s ${c} ${I.delay||l}s`}),t&&(a||s)&&(g.current=setTimeout(()=>{a&&y(a),s&&s()},Hle((I.delay||l)+u))),()=>g.current&&clearTimeout(g.current)},[w,x,t,u,c,l,s,o,i,a]),r?r({style:m}):Kn.createElement("div",{style:m},n)}var xft=e=>e?e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`):"";const Cft=e=>{const t=e.length;return e.reduce((n,r,o)=>{const i=parseFloat((100/(t-1)).toFixed(2))*o;if(typeof r=="string")return`${n} ${i}% {${r}}`;const a=Object.keys(r);if(a.length&&isNaN(+a[0])){const s=a.reduce((l,u)=>`${l} ${xft(u)}: ${r[u]};`,"");return`${n} ${i}% {${s}}`}return`${n} ${a[0]}% {${r[a[0]]}}`},"")};function Aft({keyframes:e,animationName:t}){return`@keyframes ${t} {${Cft(e)}}`}function uy({keyframes:e,animationName:t}){var n,r,o,i;let a=document.querySelector("style[data-id=rsi]");a||(a=document.createElement("style"),a.setAttribute("data-id","rsi"),document.head.appendChild(a));const s=(o=(r=(n=a.sheet)===null||n===void 0?void 0:n.cssRules)===null||r===void 0?void 0:r.length)!==null&&o!==void 0?o:0;try{(i=a.sheet)===null||i===void 0||i.insertRule(Aft({keyframes:e,animationName:t}),s)}catch(l){console.error("react simple animate, error found during insert style ",l)}return{styleTag:a,index:s}}var cy=(e,t)=>{if(!e)return;const n=Object.values(e.cssRules).findIndex(({name:r})=>r===t);n>=0&&e.deleteRule(n)},dy=()=>`RSI-${Math.random().toString(36).substr(2,9)}`,qle=e=>e?bft:zle;function _ft(e){const{children:t,play:n=!1,pause:r=!1,render:o,duration:i=Zg,delay:a=0,easeType:s=cx,direction:l=iL,fillMode:u=aL,iterationCount:c=1,sequenceIndex:f,keyframes:p,sequenceId:g}=e;let m;const y=Kn.useRef({forward:"",reverse:""}),v=Kn.useRef(!1),x=Kn.useRef({forward:null,reverse:null}),w=S_(f,g),{register:I,animationStates:_={}}=Kn.useContext(TI),R=_[w]||{},[,U]=Kn.useState(!1);Kn.useEffect(()=>{const b=x.current,T=y.current;y.current.forward=dy();let C=uy({animationName:y.current.forward,keyframes:p});return x.current.forward=C.styleTag,y.current.reverse=dy(),C=uy({animationName:y.current.reverse,keyframes:p.reverse()}),x.current.reverse=C.styleTag,I(e),n&&U(!0),()=>{var O,$;cy((O=b.forward)===null||O===void 0?void 0:O.sheet,T.forward),cy(($=b.reverse)===null||$===void 0?void 0:$.sheet,T.reverse)}},[]),R.controlled&&!v.current?(m=R.pause,R.pause||(v.current=!0)):m=r;const D={animation:`${i}s ${s} ${R.delay||a}s ${c} ${l} ${u} ${qle(m)} ${((R.controlled?R.play:n)?y.current.forward:y.current.reverse)||""}`};return o?o({style:D}):Kn.createElement("div",{style:D||{}},t)}function Eft(e){const{start:t,end:n,complete:r,onComplete:o,delay:i=0,duration:a=Zg,easeType:s=cx}=e,l=Kn.useMemo(()=>`${sL} ${a}s ${s} ${i}s`,[a,s,i]),[u,c]=Kn.useState({isPlaying:!1,style:{...t,transition:l}}),{isPlaying:f,style:p}=u,g=Kn.useRef();return Kn.useEffect(()=>((o||r)&&f&&(g.current=setTimeout(()=>{o&&o(),r&&c(m=>({...m,style:r}))},Hle(i+a))),()=>g.current&&clearTimeout(g.current)),[u,r,i,a,f,o]),{isPlaying:f,style:p,play:Kn.useCallback(m=>{c(y=>({...y,style:{...m?n:t,transition:l},isPlaying:m}))},[n,t,l])}}function Tft(e){const{duration:t=Zg,delay:n=0,easeType:r=cx,direction:o=iL,fillMode:i=aL,iterationCount:a=1,keyframes:s}=e,l=Kn.useRef({forward:"",reverse:""}),u=Kn.useRef({forward:null,reverse:null}),{register:c}=Kn.useContext(TI),[f,p]=Kn.useState(null),[g,m]=Kn.useState(!1);return Kn.useEffect(()=>{const v=u.current,x=l.current;l.current.forward=dy();let w=uy({animationName:l.current.forward,keyframes:s});return u.current.forward=w.styleTag,l.current.reverse=dy(),w=uy({animationName:l.current.reverse,keyframes:s.reverse()}),u.current.reverse=w.styleTag,c(e),()=>{var I,_;cy((I=v.forward)===null||I===void 0?void 0:I.sheet,x.forward),cy((_=v.reverse)===null||_===void 0?void 0:_.sheet,x.reverse)}},[]),{style:{animation:`${t}s ${r} ${n}s ${a} ${o} ${i} ${qle(g)} ${f===null?"":f?l.current.forward:l.current.reverse}`},play:p,pause:m,isPlaying:!!f}}function kft(e){return Array.from({length:e},()=>null)}function Ift(e){const{sequences:t=[]}=e,n=kft(t.length).map((c,f)=>e.sequences[f].start),[r,o]=Kn.useState(n),[i,a]=Kn.useState(!1),s=Kn.useRef([]),l=Kn.useRef([]);Kn.useEffect(()=>{t.forEach(({keyframes:p},g)=>{if(!Array.isArray(p))return;s.current[g]||(s.current[g]={},l.current[g]={}),s.current[g].forward=dy();let m=uy({animationName:s.current[g].forward,keyframes:p});l.current[g].forward=m.styleTag,s.current[g].reverse=dy(),m=uy({animationName:s.current[g].reverse,keyframes:p.reverse()}),l.current[g].reverse=m.styleTag});const c=l.current,f=s.current;return()=>Object.values(f).forEach(({forward:p,reverse:g},m)=>{var y,v;cy((y=c[m].forward)===null||y===void 0?void 0:y.sheet,p),cy((v=c[m].reverse)===null||v===void 0?void 0:v.sheet,g)})},[]);const u=Kn.useCallback(c=>{let f=0;const p=c?s.current:[...s.current].reverse(),g=(c?t:[...t].reverse()).map((m,y)=>{const{duration:v=Zg,delay:x=0,overlay:w,keyframes:I,iterationCount:_=1,easeType:R=cx,direction:U=iL,fillMode:D=aL,end:b={},start:T={}}=m,C=y===0?x:f,O=`${sL} ${v}s ${R} ${C}s`;return f=Vle({duration:v,delay:x,overlay:w})+f,I?{animation:`${v}s ${R} ${C}s ${_} ${U} ${D} ${zle} ${c?p[y].forward:p[y].reverse}`}:{...c?b:T,transition:O}});o(c?g:[...g].reverse()),a(c)},[]);return{styles:r,play:u,isPlaying:i}}$p.Animate=Sft;$p.AnimateGroup=wft;$p.AnimateKeyframes=_ft;$p.useAnimate=Eft;$p.useAnimateGroup=Ift;$p.useAnimateKeyframes=Tft;Object.defineProperty(oL,"__esModule",{value:!0});function Pft(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var su=Pft(M),Mft=$p;function Qle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rH(e,t){for(var n=0;nDft?0:t+1}:null,{degree:o-r})},Xle=function(e){Yle(t,e);function t(){var n,r;Qle(this,t);for(var o=arguments.length,i=new Array(o),a=0;a4?.25:0,"px"),position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textAlign:"center",WebkitFontSmoothing:"antialiased",color:a,background:s,transform:"rotateX(0deg) translateZ(".concat(R,"px)"),visibility:"hidden"},v)},o))}}],[{key:"getDerivedStateFromProps",value:function(r,o){var i=r.activeNumber,a=o.rotateCounter;return aH(a,i)}}]),t}(su.Component),Zle=function(e){Yle(t,e);function t(){return Qle(this,t),Gle(this,C_(t).apply(this,arguments))}return Kle(t,[{key:"shouldComponentUpdate",value:function(r){return r.nonNumberClassName!==this.props.nonNumberClassName||r.numberClassName!==this.props.numberClassName||r.numbers!==this.props.numbers||r.height!==this.props.height||r.width!==this.props.width||r.duration!==this.props.duration||r.delay!==this.props.delay||r.play!==this.props.play}},{key:"render",value:function(){var r=this.props,o=r.numbers,i=r.nonNumberStyle,a=r.numberStyle,s=r.numberClassName,l=r.nonNumberClassName,u=r.height,c=r.width,f=r.color,p=r.background,g=r.perspective,m=r.duration,y=r.animate,v=r.play,x=r.delay,w=0;return su.createElement("section",{style:{display:"flex",alignItems:"center",justifyContent:"center"},"aria-label":o},Array.from(o).map(function(I,_){var R,U=su.createElement("span",{"aria-hidden":!0,style:i,className:l,key:w},I);return y?(w+=1,Number.isNaN(parseInt(I,10))?U:su.createElement(Xle,x_({key:_,height:u,width:c,color:f,background:p,perspective:g,duration:m,play:v,delay:x,numberStyle:a},{position:w,length:o.length,activeNumber:parseInt(I,10),className:s}))):Number.isNaN(parseInt(I,10))?U:su.createElement("span",(R={"aria-hidden":!0,style:{padding:0}},fy(R,"style",i),fy(R,"key",w),R),I)}))}}]),t}(su.Component);fy(Zle,"defaultProps",{perspective:500,duration:.3,animate:!0,play:!1,delay:0,nonNumberStyle:{},numberStyle:{}});oL.FlipNumber=Xle;var Bft=oL.default=Zle;const J2=e=>e.toString().length<2?`0${e}`:`${e}`;function sH({date:e}){const t=n=>Se($ft,{justifyContent:"space-between",children:[A(X2,{title:"Days",value:J2(n.days)}),A(X2,{title:"Hours",value:J2(n.hours)}),A(X2,{title:"Minutes",value:J2(n.minutes)}),A(X2,{title:"Seconds",value:J2(n.seconds)})]});return e?A(Fft,{children:A(rL,{overtime:!0,date:e,renderer:t})}):null}const $ft=J(_t)(({theme:e})=>({span:{background:`${e.palette.background.paper}!important`,color:e.palette.mode==="light"?e.palette.text.primary:"white!important"}})),X2=({value:e,title:t})=>{const n=Fo();return Se(Lft,{children:[A(At,{className:"title",children:t}),A(Bft,{height:15,width:15,color:n.palette.primary.main,background:"white",play:!0,perspective:100,numbers:e})]})},Lft=J(zt)({width:"unset",".title":{textTransform:"uppercase",fontSize:12,fontWeight:600}}),Fft=J(_t)(({theme:e})=>({fontWeight:600,color:e.palette.primary.main})),Nft=({hideText:e})=>A(Uft,{href:Xoe,target:"_blank",children:Se(_t,{gap:7,children:[A(gnt,{}),!e&&A(At,{children:"GitHub"})]})}),Uft=J("a")(({theme:e})=>{const t=e.palette.text.secondary;return{fontSize:18,textDecoration:"unset",marginLeft:10,svg:{color:t,width:24,height:24},p:{fontSize:"inherit",color:t,fontWeight:700}}});function jft(e){return er({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 19l-7-7m0 0l7-7m-7 7h18"}}]})(e)}function Wft({to:e,func:t}){const n=av(),r=Qg().pathname,o=Ki(),i=()=>{t?t():e?n(e):window.history.state&&window.history.state.idx>0?n(-1):n(bn.spaces,{replace:!0})};return r===bn.spaces?null:A(zft,{onClick:i,children:Se(_t,{gap:5,children:[A(jft,{}),A(At,{children:o.back})]})})}const zft=J(Wr)({cursor:"pointer",padding:"8px 14px",height:"auto",background:"#0088CC",borderRadius:20,"*":{color:"white!important"},p:{fontSize:14,fontWeight:600}});function Vft(){var e=new Map;function t(n){var r=n.root,o=n.rootMargin,i=n.threshold,a=e.get(r);a||(a=new Map,e.set(r,a));var s=JSON.stringify({rootMargin:o,threshold:i}),l=a.get(s);if(!l){var u=new Map,c=new IntersectionObserver(function(f){f.forEach(function(p){var g=u.get(p.target);g==null||g(p)})},{root:r,rootMargin:o,threshold:i});l={observer:c,entryCallbacks:u},a.set(s,l)}return{observe:function(p,g){var m,y;(m=l)==null||m.entryCallbacks.set(p,g),(y=l)==null||y.observer.observe(p)},unobserve:function(p){var g,m;(g=l)==null||g.entryCallbacks.delete(p),(m=l)==null||m.observer.unobserve(p)}}}return{getObserver:t}}var Hft="0px",qft=[0],Qft=Vft();function lL(e){var t,n,r=(t=e==null?void 0:e.rootMargin)!=null?t:Hft,o=(n=e==null?void 0:e.threshold)!=null?n:qft,i=M.useRef(null),a=M.useRef(null),s=M.useRef(null),l=M.useState(),u=l[0],c=l[1],f=M.useCallback(function(){var y=i.current;if(!y){c(void 0);return}var v=Qft.getObserver({root:a.current,rootMargin:r,threshold:o});v.observe(y,function(x){c(x)}),s.current=v},[r,o]),p=M.useCallback(function(){var y=s.current,v=i.current;v&&(y==null||y.unobserve(v)),s.current=null},[]),g=M.useCallback(function(y){p(),i.current=y,f()},[f,p]),m=M.useCallback(function(y){p(),a.current=y,f()},[f,p]);return[g,{entry:u,rootRef:m}]}function uL({limit:e,showMore:t,totalItems:n,amountToShow:r,className:o=""}){const[i,{entry:a}]=lL(),s=a&&a.isIntersecting,l=Ki();return M.useEffect(()=>{s&&t()},[s]),r>=n?null:r!==e?A("div",{ref:i}):A(Yft,{className:o,children:A(Kft,{variant:"transparent",onClick:t,children:l.loadMore})})}const Kft=J(dr)(({theme:e})=>({width:"100%",background:e.palette.background.paper})),Yft=J(_t)({marginBottom:50});function Gft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}}]})(e)}function Jft(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 21h3.75L17.81 9.94l-3.75-3.75L3 17.25V21zm2-2.92l9.06-9.06.92.92L5.92 19H5v-.92zM18.37 3.29a.996.996 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 000-1.41l-2.34-2.34z"}}]})(e)}function Xft({options:e,selected:t,onSelect:n,className:r=""}){const o=a=>{n(a.target.value)},i=Fo();return A(jZe,{className:r,children:A(OD,{MenuProps:{PaperProps:{style:{borderRadius:10,border:i.palette.mode==="light"?"1px solid #e0e0e0":"1px solid #424242",boxShadow:i.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"}}},IconComponent:Gft,value:t,onChange:o,children:e.map(a=>A(ID,{value:a.value,children:a.text},a.value))})})}function eue({children:e,title:t,className:n}){return A(Zft,{className:n,title:t,children:e})}const Zft=J(sv)({top:90,width:350,position:"sticky",[`@media (max-width: ${Ln}px)`]:{position:"unset",width:"100%"}});function cL({isLoading:e,isEmpty:t,children:n,emptyComponent:r,loader:o}){return t?A(hi,{children:r}):e?A(hi,{children:o}):A(hi,{children:n})}function ept(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M3,3 L21,21 M3,21 L21,3"}}]})(e)}function tpt(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M4.99787498,8.99999999 L4.99787498,0.999999992 L19.4999998,0.999999992 L22.9999998,4.50000005 L23,23 L4,23 M18,1 L18,6 L23,6 M7,13 C7,13 6.00000004,13 5,13 C3.99999996,13 3,13.5 3,14.5 L3,16 C3,16 3.00000001,16.5 3,17.5 C2.99999999,18.5 4,19 5,19 L7,19 M13.25,13 C13.25,13 12.25,13 10.75,13 C9.25,13 8.75,13.5 8.75,14.5 C8.75,15.5 9.25,16 10.75,16 C12.25,16 12.75,16.5 12.75,17.5 C12.75,18.5 12.25,19 10.75,19 C9.25,19 8.25,19 8.25,19 M20.5,12 C20.5,12 20.5,12 20.5,12.5 C20.5,13 18,19 18,19 L17.5,19 C17.5,19 15,13 15,12.5 L15,12"}}]})(e)}const dx=({hideCloseButton:e,children:t,onClose:n,open:r,className:o="",title:i,transparent:a})=>A(opt,{open:r,onClose:n,componentsProps:{backdrop:{style:{opacity:a?0:1}}},children:A(npt,{children:A(rpt,{title:i||"",className:`popup-children ${o}`,headerComponent:i?n&&!e&&A(ipt,{close:n}):null,children:t})})}),npt=J($G)({display:"flex",alignItems:"center",justifyContent:"center",padding:0,outline:"unset"}),rpt=J(Oc)(({theme:e})=>({".container-header":{alignItems:"center"},position:"relative",padding:"0px",width:"100%",height:"fit-content",outline:"unset",".popup-title":{fontSize:18,fontWeight:600,textAlign:"center"}})),opt=J(TD)({backdropFilter:"blur(5px)",display:"flex",alignItems:"center",justifyContent:"center",padding:20,outline:"unset",border:"unset"});function ipt({close:e,className:t=""}){return A(apt,{className:t,onClick:e,children:A(ept,{style:{width:15,height:15}})})}const apt=J(Vd)(({theme:e})=>({background:"transparent",border:"unset",cursor:"pointer",svg:{stroke:e.palette.text.primary,"*":{color:"inherit",stroke:"inherit"}}}));function spt(e){return er({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M10.5 3.75a6.75 6.75 0 100 13.5 6.75 6.75 0 000-13.5zM2.25 10.5a8.25 8.25 0 1114.59 5.28l4.69 4.69a.75.75 0 11-1.06 1.06l-4.69-4.69A8.25 8.25 0 012.25 10.5z",clipRule:"evenodd"}}]})(e)}function tue({className:e="",onChange:t,initialValue:n="",filterOptions:r,filterValue:o,onFilterSelect:i,placeholder:a}){const[s,l]=M.useState(n),u=Nbt(s,300),c=Ki(),f=r&&o&&i;return M.useEffect(()=>{t(u)},[u]),A(cpt,{className:e,hover:!0,children:Se(_t,{style:{height:"100%",paddingLeft:10,gap:0},children:[Se(upt,{children:[A(spt,{}),A(dpt,{placeholder:a||c.search,value:s,onChange:p=>l(p.target.value)})]}),f&&A(lpt,{options:r,selected:o,onSelect:i})]})})}const lpt=J(Xft)({"*":{border:"unset!imporatnt",outline:"unset!imporatnt"},".MuiSelect-select":{minWidth:"unset",border:"unset",paddingLeft:12,"&:hover":{border:"unset"}},fieldset:{display:"none!important"}}),upt=J(_t)({flex:1,height:"100%"}),cpt=J(Du)({height:46,padding:0,overflow:"hidden",borderRadius:30,svg:{width:25,height:25}}),dpt=J("input")({height:"100%",border:"unset",outline:"unset",width:"calc(100% - 25px)",minWidth:"unset",fontSize:16,fontFamily:"inherit",fontWeight:500,"&::placeholder":{opacity:.6}});function dL({title:e,component:t,className:n=""}){return Se(fpt,{justifyContent:"space-between",className:`header ${n}`,children:[A(FZe,{children:e}),t]})}const fpt=J(_t)({marginBottom:20,marginTop:20,alignItems:"flex-start"}),Rc=({loaderAmount:e=4,className:t=""})=>A(hpt,{className:t,children:A(zt,{alignItems:"flex-start",children:[...Array(e).keys()].map(n=>{const r=(n+1)*20;return A(ppt,{style:{width:r>100?"100%":`${r}%`}},n)})})}),ppt=J(Oa)({height:20,transform:"unset",borderRadius:10,gap:15}),hpt=J(Du)({width:"100%",gap:10,alignItems:"flex-start"});function nue({status:e}){return e?A(cc,{label:e,className:"status",color:"primary"}):null}function rue(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"rect",attr:{width:"336",height:"336",x:"128",y:"128",fill:"none",strokeLinejoin:"round",strokeWidth:"32",rx:"57",ry:"57"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M383.5 128l.5-24a56.16 56.16 0 00-56-56H112a64.19 64.19 0 00-64 64v216a56.16 56.16 0 0056 56h24"}}]})(e)}function gpt(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"square",strokeMiterlimit:"10",strokeWidth:"40",d:"M160 164c0-10 1.44-33 33.54-59.46C212.6 88.83 235.49 84.28 256 84c18.73-.23 35.47 2.94 45.48 7.82C318.59 100.2 352 120.6 352 164c0 45.67-29.18 66.37-62.35 89.18S248 290.36 248 316"}},{tag:"rect",attr:{width:"56",height:"56",x:"220",y:"368",rx:"3.5",ry:"3.5"}}]})(e)}function mpt(e){return er({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M368 415.86V72a24.07 24.07 0 00-24-24H72a24.07 24.07 0 00-24 24v352a40.12 40.12 0 0040 40h328"}},{tag:"path",attr:{fill:"none",strokeLinejoin:"round",strokeWidth:"32",d:"M416 464h0a48 48 0 01-48-48V128h72a24 24 0 0124 24v264a48 48 0 01-48 48z"}},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M240 128h64m-64 64h64m-192 64h192m-192 64h192m-192 64h192"}},{tag:"path",attr:{d:"M176 208h-64a16 16 0 01-16-16v-64a16 16 0 0116-16h64a16 16 0 0116 16v64a16 16 0 01-16 16z"}}]})(e)}var bo=(e=>(e.CLOSED="ENDED",e.NOT_STARTED="NOT_STARTED",e.ACTIVE="ACTIVE",e))(bo||{});const lH=[],uH=[],fL=(e,t=6)=>e?`${e.substring(0,t)}...${e.substring(e.length-t)}`:"";function ypt(e){return new Promise(t=>setTimeout(t,e))}const $o=(...e)=>{ns&&console.log(...e)},pL=(e,t)=>{let n=Ze.map(e,(o,i)=>{const a=t[i];return{address:i,vote:o.vote,votingPower:a?js.fromNano(a):"0",timestamp:o.timestamp,hash:o.hash}});return Ze.orderBy(n,"timestamp",["desc","asc"])};function $d(e,t=2){const n=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"G"},{value:1e12,symbol:"T"},{value:1e15,symbol:"P"},{value:1e18,symbol:"E"}],r=/\.0+$|(\.[0-9]*[1-9])0+$/;var o=n.slice().reverse().find(function(i){return e>=i.value});return e<1?e.toFixed(5).replace(r,"$1"):o?(e/o.value).toFixed(t).replace(r,"$1")+o.symbol:"0"}const oM=(e,t)=>{var n=Je(c5(e)),r=Je();const o=t?r:n,i=t?n:r,a=o.diff(i,"days"),s=o.diff(i,"hours"),l=o.diff(i,"minutes");return a>0?a===1?"1 day":`${a} days`:s>0?s===1?"1 hour":`${s} hours`:l===1?"1 minute":`${l} minutes`},vpt=e=>{if(!e)return null;const{proposalStartTime:t,proposalEndTime:n}=e,r=Je.utc().valueOf(),o=c5(Number(t))<=r,i=c5(Number(n))<=r;return i?bo.CLOSED:o&&!i?bo.ACTIVE:o?null:bo.NOT_STARTED},c5=e=>Je.unix(Number(e)).valueOf(),oue=e=>e?`${eJe}/${e}`:"",bpt=(e,t,n)=>{if(!t||!n)return;const r=wR(js.fromNano(n)).multipliedBy(t).div(100).toNumber();return e===at.VotingPowerStrategyType.NftCcollection?$d(Math.round(r),2):$d(r,2)},wpt=e=>{if(!e)return"0";const t=typeof e=="string"?Number(e):e.toNumber();return $d(Number(js.fromNano(Math.round(t))),2)},Ld=e=>{if(!e)return!0;try{return js.Address.isAddress(js.Address.parse(e))}catch{return!1}};async function hL(e){let t="";return await e.validateForm().then(n=>{if(!Ze.isEmpty(n)){const r=Ze.first(Ze.values(n));t=r,r&&fx(r)}}),t}const fs=(e,t="en")=>{if(!e||!t)return"";try{const r=JSON.parse(e)[t];if(!r)throw new Error("No value");return r}catch{return e}},iue=e=>!e||Spt(e)?!1:Ze.size(lH)?lH.includes(e):!0,Spt=e=>e?cJe.includes(e):!1,xpt=e=>e?Ze.size(uH)?uH.includes(e):!0:!1,Ig=e=>e===vw,Pa=e=>{const t=!e||!Ze.size(e)?at.VotingPowerStrategyType.TonBalance:e[0].type;return Number(t)},aue=(e=0,t=0)=>Math.max(Number(e),t).toString(),Cpt=e=>{if(!e)return{};let t={};const n=Ze.flatMap(e,r=>r.arguments);return Ze.forEach(n,r=>{t[r.name]=r.value}),t},Apt=(e,t)=>Cpt(t)[e],_b=e=>{const t=e?Je(e):Je(),n=t.parseZone().utcOffset();return n<0?t.subtract(Math.abs(n),"minutes"):t.add(n,"minutes")},iM=e=>{const t=e?Je(e):Je(),n=t.parseZone().utcOffset();return n<0?t.add(Math.abs(n),"minutes"):t.subtract(n,"minutes")},_pt=(e,t,n=9e4)=>(Je().valueOf(),e-t>=n),Ept=(e,t,n,r,o)=>{let i="0";if(e!=null&&e.sumCoins){const a=e.sumCoins[t]||e.sumCoins[t.toLowerCase()];i=wpt(a)}else i=bpt(o,n,r)||"0";return i},Tpt=(e,t)=>{var n,r;return((n=e==null?void 0:e.proposalResult)==null?void 0:n[t])||((r=e==null?void 0:e.proposalResult)==null?void 0:r[t.toLowerCase()])},kpt=(e,t)=>{let n=0;if(e.sumVotes)n=e.sumVotes[t]||e.sumVotes[t.toLowerCase()];else{const r=Ze.mapValues(Ze.groupBy(e.votes,"vote"),o=>Ze.size(o));n=r[t]||r[t.toLowerCase()]||0}return n},sue=e=>aJe.includes(e||""),lue=e=>{const t=Pa(e);return t==at.VotingPowerStrategyType.NftCcollection||t==at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote},gL=e=>{switch(Pa(e)){case at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.TonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return!0;default:return!1}},mL=e=>{switch(Pa(e)){case at.VotingPowerStrategyType.TonBalance:case at.VotingPowerStrategyType.TonBalance_1Wallet1Vote:case at.VotingPowerStrategyType.TonBalanceWithValidators:return"TON";case at.VotingPowerStrategyType.JettonBalance:case at.VotingPowerStrategyType.JettonBalance_1Wallet1Vote:return"Jetton";case at.VotingPowerStrategyType.NftCcollection:case at.VotingPowerStrategyType.NftCcollection_1Wallet1Vote:return"NFT"}};var yL={exports:{}},R1={};/** * @license React * react-jsx-runtime.production.min.js * @@ -620,24 +620,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var cH;function fpt(){if(cH)return R1;cH=1;var e=Dn,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,f={},p=null,g=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:p,ref:g,props:f,_owner:o.current}}return R1.Fragment=n,R1.jsx=a,R1.jsxs=a,R1}(function(e){e.exports=fpt()})(yL);const gh=yL.exports.jsx,ppt=yL.exports.jsxs,D1=({children:e,style:t={}})=>gh("span",{style:{overflow:"hidden",whiteSpace:"nowrap",display:"block",...t},children:e}),cue=({text:e,startPos:t=0,truncatePosition:n="end"})=>{if(n==="middle"){let r=e.slice(0,~~(e.length/2)),o=e.slice(~~(e.length/2));return t&&(r=e.slice(0,t),o=e.slice(t)),o=`‎${o}‎`,r=`‎${r}‎`,ppt(D1,{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0px, max-content))"},title:e,children:[gh(D1,{style:{display:"auto"},children:r}),gh(D1,{style:{textOverflow:"ellipsis",direction:"rtl",textAlign:"left",display:"auto"},children:o})]})}if(n==="start"){const r=`${e}‎`;return gh("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:gh(D1,{style:{direction:"rtl",textAlign:"left",textOverflow:"ellipsis",display:"auto"},children:r})})}return gh("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:gh(D1,{style:{textOverflow:"ellipsis"},children:e})})};function bu({text:e="",className:t="",placement:n}){const r=M.useRef(),o=M.useRef(),[i,a]=M.useState(!1);return M.useEffect(()=>{r&&r.current&&r.current.clientWidth>o.current.clientWidth&&a(!0)},[]),Se(hpt,{ref:o,className:"overflow-with-tooltip",children:[A(gpt,{ref:r,children:A(At,{className:t,children:e})}),A(mpt,{placement:n,text:i?e:void 0,children:A(At,{className:t,children:A(cue,{text:e})})})]})}const hpt=J(Wr)(({theme:e})=>({color:e.palette.text.primary,"*":{color:"inherit"}})),gpt=J(Wr)({whiteSpace:"nowrap",position:"fixed",visibility:"hidden"}),mpt=J(Ko)({width:"100%",display:"flex",justifyContent:"flex-start"});function Xd({displayText:e,address:t,className:n="",padding:r=5}){const[o,i]=Kce(),a=Fo(),s=u=>{u.stopPropagation(),i(t||"")};return Se(ypt,{className:n,justifyContent:"flex-start",children:[A(dH,{onClick:u=>{u.stopPropagation(),window.open(iue(t||""),"_blank")},className:"address-display-btn",children:A(bu,{text:e||fL(t,r)})}),A(dH,{onClick:s,children:A(oue,{style:{color:a.palette.text.primary}})})]})}const ypt=J(_t)(({theme:e})=>({width:"auto",".address-display-btn":{"&:hover":{textDecoration:"underline",textDecorationColor:e.palette.text.primary}}})),dH=J("button")(({theme:e})=>({padding:0,background:"none",border:"none",cursor:"pointer",svg:{width:18,height:18}}));function vpt({message:e}){const t=`${e}`;return A(bpt,{children:A(Gs,{children:t})})}const bpt=J(Wr)(({theme:e})=>({padding:15,borderRadius:10,border:`1px solid ${e.palette.mode==="dark"?"rgba(255,255,255,0.3)":"rgba(0,0,0,0.3)"}`,p:{fontSize:16,fontWeight:600}}));function wpt({anchorEl:e,setAnchorEl:t,children:n}){const r=Fo(),o=!!e,i=()=>{t(null)};return A(YG,{PaperProps:{style:{borderRadius:10,border:r.palette.mode==="light"?"1px solid #e0e0e0":"1px solid rgba(255,255,255, 0.2)",boxShadow:r.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"}},id:"basic-menu",anchorEl:e,open:o,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n})}function due({telegram:e,github:t,website:n,className:r="",whitepaper:o,about:i}){return Se(xpt,{className:r,children:[A(B1,{tooltip:"Telegram",url:e,icon:A(nnt,{size:20})}),A(B1,{tooltip:"GitHub",url:t,icon:A(Bct,{size:23})}),A(B1,{tooltip:"Website",url:n,icon:A(Ztt,{size:20})}),A(B1,{tooltip:"White paper",url:o,icon:A(Zft,{size:20})}),A(B1,{tooltip:"About",url:i,icon:A(ent,{size:20})})]})}const B1=({url:e,icon:t,tooltip:n})=>!e||!(e!=null&&e.startsWith("https"))?null:A(Ko,{text:n,children:A(Spt,{href:e,target:"_blank",children:t})}),Spt=J("a")(({theme:e})=>({svg:{color:e.palette.mode==="dark"?"white":"rgba(0,0,0, 0.55)"}})),xpt=J(_t)({gap:10});function Cpt({className:e}){return A(due,{className:e,telegram:SXe,whitepaper:xXe,about:CXe,github:Zoe})}const Ms={spaces:bn.spaces,daoPage:{root:e=>bn.space.replace(":daoId",e),about:e=>`${bn.spaceAbout.replace(":daoId",e)}`,create:e=>bn.createProposal.replace(":daoId",e),settings:e=>bn.spaceSettings.replace(":daoId",e)},proposalPage:{root:(e,t)=>bn.proposal.replace(":daoId",e).replace(":proposalId",t),edit:(e,t)=>bn.editProposal.replace(":daoId",e).replace(":proposalId",t)}},Hl=()=>{const e=av();return{daoPage:{root:t=>e(Ms.daoPage.root(t)),createProposal:t=>e(Ms.daoPage.create(t)),about:t=>e(Ms.daoPage.about(t))},proposalPage:{edit:(t,n)=>e(Ms.proposalPage.edit(t,n)),root:(t,n)=>e(Ms.proposalPage.root(t,n))},daosPage:{root:()=>e(bn.spaces)},createSpace:{root:()=>e(bn.createSpace)}}};function fue({text:e}){const t=Hl();return A(Apt,{children:Se(zt,{gap:20,children:[A(_pt,{children:A(At,{className:"text",children:e})}),A(dr,{onClick:()=>t.daosPage.root(),children:"Home"})]})})}const Apt=J(Ru)({marginLeft:"auto",marginRight:"auto",marginTop:100,width:"100%",maxWidth:400}),_pt=J(_t)({".text":{fontSize:20,fontWeight:700}});function Ept(e){return er({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"}}]})(e)}function Tpt(e){return er({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor"}}]})(e)}function vL(e){var t=Object.entries(e).filter(function(n){var r=n[1];return r!=null}).map(function(n){var r=n[0],o=n[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(o)))});return t.length>0?"?".concat(t.join("&")):""}var c5={},kpt={get exports(){return c5},set exports(e){c5=e}};/*! + */var cH;function Ipt(){if(cH)return R1;cH=1;var e=Dn,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,f={},p=null,g=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:p,ref:g,props:f,_owner:o.current}}return R1.Fragment=n,R1.jsx=a,R1.jsxs=a,R1}(function(e){e.exports=Ipt()})(yL);const gh=yL.exports.jsx,Ppt=yL.exports.jsxs,D1=({children:e,style:t={}})=>gh("span",{style:{overflow:"hidden",whiteSpace:"nowrap",display:"block",...t},children:e}),uue=({text:e,startPos:t=0,truncatePosition:n="end"})=>{if(n==="middle"){let r=e.slice(0,~~(e.length/2)),o=e.slice(~~(e.length/2));return t&&(r=e.slice(0,t),o=e.slice(t)),o=`‎${o}‎`,r=`‎${r}‎`,Ppt(D1,{style:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0px, max-content))"},title:e,children:[gh(D1,{style:{display:"auto"},children:r}),gh(D1,{style:{textOverflow:"ellipsis",direction:"rtl",textAlign:"left",display:"auto"},children:o})]})}if(n==="start"){const r=`${e}‎`;return gh("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:gh(D1,{style:{direction:"rtl",textAlign:"left",textOverflow:"ellipsis",display:"auto"},children:r})})}return gh("span",{style:{display:"grid",gridTemplateColumns:"minmax(0px, 1fr)"},children:gh(D1,{style:{textOverflow:"ellipsis"},children:e})})};function bu({text:e="",className:t="",placement:n}){const r=M.useRef(),o=M.useRef(),[i,a]=M.useState(!1);return M.useEffect(()=>{r&&r.current&&r.current.clientWidth>o.current.clientWidth&&a(!0)},[]),Se(Mpt,{ref:o,className:"overflow-with-tooltip",children:[A(Opt,{ref:r,children:A(At,{className:t,children:e})}),A(Rpt,{placement:n,text:i?e:void 0,children:A(At,{className:t,children:A(uue,{text:e})})})]})}const Mpt=J(Wr)(({theme:e})=>({color:e.palette.text.primary,"*":{color:"inherit"}})),Opt=J(Wr)({whiteSpace:"nowrap",position:"fixed",visibility:"hidden"}),Rpt=J(Ko)({width:"100%",display:"flex",justifyContent:"flex-start"});function Xd({displayText:e,address:t,className:n="",padding:r=5}){const[o,i]=Qce(),a=Fo(),s=u=>{u.stopPropagation(),i(t||"")};return Se(Dpt,{className:n,justifyContent:"flex-start",children:[A(dH,{onClick:u=>{u.stopPropagation(),window.open(oue(t||""),"_blank")},className:"address-display-btn",children:A(bu,{text:e||fL(t,r)})}),A(dH,{onClick:s,children:A(rue,{style:{color:a.palette.text.primary}})})]})}const Dpt=J(_t)(({theme:e})=>({width:"auto",".address-display-btn":{"&:hover":{textDecoration:"underline",textDecorationColor:e.palette.text.primary}}})),dH=J("button")(({theme:e})=>({padding:0,background:"none",border:"none",cursor:"pointer",svg:{width:18,height:18}}));function Bpt({message:e}){const t=`${e}`;return A($pt,{children:A(Gs,{children:t})})}const $pt=J(Wr)(({theme:e})=>({padding:15,borderRadius:10,border:`1px solid ${e.palette.mode==="dark"?"rgba(255,255,255,0.3)":"rgba(0,0,0,0.3)"}`,p:{fontSize:16,fontWeight:600}}));function Lpt({anchorEl:e,setAnchorEl:t,children:n}){const r=Fo(),o=!!e,i=()=>{t(null)};return A(YG,{PaperProps:{style:{borderRadius:10,border:r.palette.mode==="light"?"1px solid #e0e0e0":"1px solid rgba(255,255,255, 0.2)",boxShadow:r.palette.mode==="light"?"rgb(114 138 150 / 8%) 0px 2px 16px":"unset"}},id:"basic-menu",anchorEl:e,open:o,onClose:i,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:n})}function cue({telegram:e,github:t,website:n,className:r="",whitepaper:o,about:i}){return Se(Npt,{className:r,children:[A(B1,{tooltip:"Telegram",url:e,icon:A(bnt,{size:20})}),A(B1,{tooltip:"GitHub",url:t,icon:A(Xct,{size:23})}),A(B1,{tooltip:"Website",url:n,icon:A(mnt,{size:20})}),A(B1,{tooltip:"White paper",url:o,icon:A(mpt,{size:20})}),A(B1,{tooltip:"About",url:i,icon:A(ynt,{size:20})})]})}const B1=({url:e,icon:t,tooltip:n})=>!e||!(e!=null&&e.startsWith("https"))?null:A(Ko,{text:n,children:A(Fpt,{href:e,target:"_blank",children:t})}),Fpt=J("a")(({theme:e})=>({svg:{color:e.palette.mode==="dark"?"white":"rgba(0,0,0, 0.55)"}})),Npt=J(_t)({gap:10});function Upt({className:e}){return A(cue,{className:e,telegram:FXe,whitepaper:NXe,about:UXe,github:Xoe})}const Ms={spaces:bn.spaces,daoPage:{root:e=>bn.space.replace(":daoId",e),about:e=>`${bn.spaceAbout.replace(":daoId",e)}`,create:e=>bn.createProposal.replace(":daoId",e),settings:e=>bn.spaceSettings.replace(":daoId",e)},proposalPage:{root:(e,t)=>bn.proposal.replace(":daoId",e).replace(":proposalId",t),edit:(e,t)=>bn.editProposal.replace(":daoId",e).replace(":proposalId",t)}},Hl=()=>{const e=av();return{daoPage:{root:t=>e(Ms.daoPage.root(t)),createProposal:t=>e(Ms.daoPage.create(t)),about:t=>e(Ms.daoPage.about(t))},proposalPage:{edit:(t,n)=>e(Ms.proposalPage.edit(t,n)),root:(t,n)=>e(Ms.proposalPage.root(t,n))},daosPage:{root:()=>e(bn.spaces)},createSpace:{root:()=>e(bn.createSpace)}}};function due({text:e}){const t=Hl();return A(jpt,{children:Se(zt,{gap:20,children:[A(Wpt,{children:A(At,{className:"text",children:e})}),A(dr,{onClick:()=>t.daosPage.root(),children:"Home"})]})})}const jpt=J(Du)({marginLeft:"auto",marginRight:"auto",marginTop:100,width:"100%",maxWidth:400}),Wpt=J(_t)({".text":{fontSize:20,fontWeight:700}});function zpt(e){return er({tag:"svg",attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"}}]})(e)}function Vpt(e){return er({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3.5 5.00006C3.22386 5.00006 3 5.22392 3 5.50006L3 11.5001C3 11.7762 3.22386 12.0001 3.5 12.0001L11.5 12.0001C11.7761 12.0001 12 11.7762 12 11.5001L12 5.50006C12 5.22392 11.7761 5.00006 11.5 5.00006L10.25 5.00006C9.97386 5.00006 9.75 4.7762 9.75 4.50006C9.75 4.22392 9.97386 4.00006 10.25 4.00006L11.5 4.00006C12.3284 4.00006 13 4.67163 13 5.50006L13 11.5001C13 12.3285 12.3284 13.0001 11.5 13.0001L3.5 13.0001C2.67157 13.0001 2 12.3285 2 11.5001L2 5.50006C2 4.67163 2.67157 4.00006 3.5 4.00006L4.75 4.00006C5.02614 4.00006 5.25 4.22392 5.25 4.50006C5.25 4.7762 5.02614 5.00006 4.75 5.00006L3.5 5.00006ZM7 1.6364L5.5682 3.0682C5.39246 3.24393 5.10754 3.24393 4.9318 3.0682C4.75607 2.89246 4.75607 2.60754 4.9318 2.4318L7.1818 0.181802C7.26619 0.09741 7.38065 0.049999 7.5 0.049999C7.61935 0.049999 7.73381 0.09741 7.8182 0.181802L10.0682 2.4318C10.2439 2.60754 10.2439 2.89246 10.0682 3.0682C9.89246 3.24393 9.60754 3.24393 9.4318 3.0682L8 1.6364L8 8.5C8 8.77614 7.77614 9 7.5 9C7.22386 9 7 8.77614 7 8.5L7 1.6364Z",fill:"currentColor"}}]})(e)}function vL(e){var t=Object.entries(e).filter(function(n){var r=n[1];return r!=null}).map(function(n){var r=n[0],o=n[1];return"".concat(encodeURIComponent(r),"=").concat(encodeURIComponent(String(o)))});return t.length>0?"?".concat(t.join("&")):""}var d5={},Hpt={get exports(){return d5},set exports(e){d5=e}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0?i.join(","):void 0,related:s.length>0?s.join(","):void 0})}var Qpt=bL("twitter",qpt,function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}},{windowWidth:550,windowHeight:400});const Kpt=Qpt,Ypt=({url:e,children:t})=>{const[n,r]=Kce();return A("div",{onClick:()=>r(e),children:t})},Gpt=[{button:Wpt,icon:tnt,text:"Reddit"},{button:Hpt,icon:Ept,text:"Telegram"},{button:Kpt,icon:rnt,text:"Twitter"},{button:Ypt,icon:oue,text:"Copy Link"}];function Jpt({url:e,className:t=" "}){const[n,r]=M.useState(null),o=a=>{r(a.currentTarget)},i=()=>r(null);return Se(hi,{children:[Se(Zpt,{className:t,onClick:o,children:[A(Tpt,{}),A(At,{children:"Share"})]}),A(wpt,{anchorEl:n,setAnchorEl:r,children:Gpt.map((a,s)=>A(Xpt,{onClick:i,children:A(a.button,{url:e,children:Se(eht,{children:[A(a.icon,{}),A(At,{children:a.text})]})})},s))})]})}const Xpt=J(kD)({svg:{width:16,height:16},p:{fontSize:14,fontWeight:600}}),Zpt=J("button")(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.primary.main:"white";return{display:"flex",alignItems:"center",justifyContent:"center",gap:6,background:"transparent",border:"unset",cursor:"pointer",color:t,"*":{color:t},p:{fontSize:15,fontWeight:600},svg:{width:20,height:20,color:t}}}),eht=J(_t)(({theme:e})=>({height:25}));function tht(e){return er({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8.38 14.72H7.67L6 13H3.53L3 12.5V10.08L1.31 8.36004V7.65004L3 5.93004V3.50004L3.53 3.00004H6L7.67 1.29004H8.38L10.1 3.00004H12.53L13.03 3.49004V5.93004L14.74 7.65004V8.36004L13 10.08V12.5L12.5 13H10.1L8.38 14.72ZM6.73004 10.4799H7.44004L11.21 6.71L10.5 6L7.09004 9.41991L5.71 8.03984L5 8.74984L6.73004 10.4799Z"}}]})(e)}function hue({daoAddress:e=""}){return lue(e)?A(Ko,{text:Se(hi,{children:["Verified space. ",A("br",{})," This space proved ownership of his domain"]}),children:A(nht,{children:A(tht,{})})}):null}const nht=J(_t)(({theme:e})=>({svg:{color:e.palette.primary.main,width:22,height:22}})),gue=({proposal:e,className:t=""})=>{var n;return(n=e.metadata)!=null&&n.hide?A(rht,{className:t,children:A(Ko,{text:"This proposal is hidden",children:A(vle,{})})}):null},rht=J(Wr)(({theme:e})=>({width:25,height:25,svg:{width:"100%",height:"100%"}})),oht=Au` +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]0?i.join(","):void 0,related:s.length>0?s.join(","):void 0})}var cht=bL("twitter",uht,function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}},{windowWidth:550,windowHeight:400});const dht=cht,fht=({url:e,children:t})=>{const[n,r]=Qce();return A("div",{onClick:()=>r(e),children:t})},pht=[{button:iht,icon:vnt,text:"Reddit"},{button:lht,icon:zpt,text:"Telegram"},{button:dht,icon:wnt,text:"Twitter"},{button:fht,icon:rue,text:"Copy Link"}];function hht({url:e,className:t=" "}){const[n,r]=M.useState(null),o=a=>{r(a.currentTarget)},i=()=>r(null);return Se(hi,{children:[Se(mht,{className:t,onClick:o,children:[A(Vpt,{}),A(At,{children:"Share"})]}),A(Lpt,{anchorEl:n,setAnchorEl:r,children:pht.map((a,s)=>A(ght,{onClick:i,children:A(a.button,{url:e,children:Se(yht,{children:[A(a.icon,{}),A(At,{children:a.text})]})})},s))})]})}const ght=J(ID)({svg:{width:16,height:16},p:{fontSize:14,fontWeight:600}}),mht=J("button")(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.primary.main:"white";return{display:"flex",alignItems:"center",justifyContent:"center",gap:6,background:"transparent",border:"unset",cursor:"pointer",color:t,"*":{color:t},p:{fontSize:15,fontWeight:600},svg:{width:20,height:20,color:t}}}),yht=J(_t)(({theme:e})=>({height:25}));function vht(e){return er({tag:"svg",attr:{viewBox:"0 0 16 16",fill:"currentColor"},child:[{tag:"path",attr:{d:"M8.38 14.72H7.67L6 13H3.53L3 12.5V10.08L1.31 8.36004V7.65004L3 5.93004V3.50004L3.53 3.00004H6L7.67 1.29004H8.38L10.1 3.00004H12.53L13.03 3.49004V5.93004L14.74 7.65004V8.36004L13 10.08V12.5L12.5 13H10.1L8.38 14.72ZM6.73004 10.4799H7.44004L11.21 6.71L10.5 6L7.09004 9.41991L5.71 8.03984L5 8.74984L6.73004 10.4799Z"}}]})(e)}function pue({daoAddress:e=""}){return sue(e)?A(Ko,{text:Se(hi,{children:["Verified space. ",A("br",{})," This space proved ownership of his domain"]}),children:A(bht,{children:A(vht,{})})}):null}const bht=J(_t)(({theme:e})=>({svg:{color:e.palette.primary.main,width:22,height:22}})),hue=({proposal:e,className:t=""})=>{var n;return(n=e.metadata)!=null&&n.hide?A(wht,{className:t,children:A(Ko,{text:"This proposal is hidden",children:A(yle,{})})}):null},wht=J(Wr)(({theme:e})=>({width:25,height:25,svg:{width:"100%",height:"100%"}})),Sht=_u` from { opacity: 1; } to { opacity: 0.8; } -`;J(Wr)({animation:`${oht} 1s ease-in-out infinite alternate`,width:10,height:10,borderRadius:"50%",background:"yellow"});J(_t)(({theme:e})=>({background:e.palette.background.default,padding:5}));J(Wr)(({theme:e})=>({position:"fixed",right:20,bottom:20,zIndex:100,color:e.palette.text.primary,p:{fontSize:12}}));function iht(){const e=Ki();return t=>{Lh.promise(t.promise,{loading:t.loading||e.txPending,success:n=>(t.isSuccess?t.isSuccess(n):!0)&&t.success&&n?A(E_,{message:t.success,customClick:Lh.dismiss}):null,error:n=>{const r=t.error||n,o=r instanceof Error?r.message:r;return A(E_,{customClick:Lh.dismiss,message:o})}},{success:{duration:4e3},error:{duration:4e3},position:"top-center"})}}const aht=e=>e!=null&&e.includes("The connection is outdated")?!1:!!(e!=null&&e.includes("TON_CONNECT_SDK_ERROR")),Js=()=>(e,t)=>{if(!aht(e instanceof Error?e.message:e))return Lh.dismiss(),f2(e,t)},f2=(e,t=7e3)=>{const n=e instanceof Error?e.message:e;Lh.error(r=>A(E_,{message:n,id:r.id}),{duration:t})},Lp=e=>{Lh.success(t=>A(E_,{message:e,id:t.id}),{duration:4e4})},E_=({message:e,id:t,customClick:n})=>A(lht,{children:A(Gs,{children:e})}),sht=()=>Lh.dismiss(),lht=J(_t)({fontSize:15,alignItems:"center",p:{fontSize:"15px!important"}});function uht(e,t){if(e==null)return e;if(e.length===0&&(!t||t&&e!==""))return null;const n=e instanceof Array?e[0]:e;return n==null?n:!t&&n===""?null:n}function cht(e){return e==null?e:String(e)}function dht(e){const t=uht(e,!0);return t==null?t:String(t)}const s0={encode:cht,decode:dht};function fht(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(o!==void 0&&o!==null)if(Array.isArray(o))for(const i of o)t.append(r,i??"");else t.append(r,o);return t.toString()}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);function pht(e,t){const n={},r=Object.keys(t);for(const o of r){const i=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=i==null?i:String(i)}return n}function hht(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n}class ght{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(t,n,r,o){this.paramsMap.set(t,{stringified:n,decoded:r,decode:o})}has(t,n,r){if(!this.paramsMap.has(t))return!1;const o=this.paramsMap.get(t);return o?o.stringified===n&&(r==null||o.decode===r):!1}get(t){var n;if(this.paramsMap.has(t))return(n=this.paramsMap.get(t))==null?void 0:n.decoded}registerParams(t){for(const n of t){const r=this.registeredParams.get(n)||0;this.registeredParams.set(n,r+1)}}unregisterParams(t){for(const n of t){const r=(this.registeredParams.get(n)||0)-1;r<=0?(this.registeredParams.delete(n),this.paramsMap.has(n)&&this.paramsMap.delete(n)):this.registeredParams.set(n,r)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const WC=new ght;function mht(e,t){var n,r,o;const i={};let a=!1;const s=Object.keys(e);let l=s;if(t.includeKnownParams||t.includeKnownParams!==!1&&s.length===0){const c=Object.keys((n=t.params)!=null?n:{});l.push(...c)}for(const c of l){const f=e[c];if(f!=null&&typeof f=="object"){i[c]=f;continue}a=!0,i[c]=(o=(r=t.params)==null?void 0:r[c])!=null?o:s0}return a?i:e}function mue(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=(o=n[s])!=null?o:r,a=!0);return a?i:e}const yht=Object.prototype.hasOwnProperty;function fH(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function yue(e,t,n){var r,o;if(fH(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;st.split("\0")))}function Sht(e,t){var n;let r={};for(const o in e)((n=t[o])==null?void 0:n.urlName)!=null?r[t[o].urlName]=e[o]:r[o]=e[o];return r}let pH,hH,gH,iM={};const bue=(e,t,n)=>{if(pH===t&&gH===e&&hH===n)return iM;pH=t,gH=e;const r=e(t??"");hH=n;const o=wht(n);for(let[i,a]of Object.entries(r)){o!=null&&o[i]&&(delete r[i],i=o[i],r[i]=a);const s=iM[i];yue(a,s)&&(r[i]=s)}return iM=r,r},xht={searchStringToObject:hht,objectToSearchString:fht,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function wue(e,t){t==null&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const Sue={adapter:{},options:xht},d5=M.createContext(Sue);function Cht(){const e=M.useContext(d5);if(e===void 0||e===Sue)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}function mH({children:e,adapter:t,options:n}){const{adapter:r,options:o}=M.useContext(d5),i=M.useMemo(()=>({adapter:t??r,options:wue(o,n)}),[t,n,r,o]);return M.createElement(d5.Provider,{value:i},e)}function Aht({children:e,adapter:t,options:n}){const r=t;return r?M.createElement(r,null,o=>M.createElement(mH,{adapter:o,options:n},e)):M.createElement(mH,{options:n},e)}function _ht(e,t){var n;for(const r in e)((n=t[r])==null?void 0:n.default)!==void 0&&e[r]!==void 0&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}function Eht({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:a}=o;t==null&&(t=o.updateType);let s;const l=bue(i,n),u=mue(r,Object.keys(e),o.params);let c;if(typeof e=="function"){const p=vue(l,u,WC);c=e(p)}else c=e;s=pht(u,c),o.removeDefaultsFromUrl&&_ht(s,u),s=Sht(s,u);let f;return t==="push"||t==="replace"?f=a(s):f=a({...l,...s}),f!=null&&f.length&&f[0]!=="?"&&(f=`?${f}`),f??""}function Tht({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&(typeof r=="string"&&r.startsWith("replace")?t.replace(i):t.push(i))}const kht=e=>e(),Iht=e=>setTimeout(()=>e(),0),Zx=[];function Pht(e,{immediate:t}={}){Zx.push(e);let n=t?kht:Iht;Zx.length===1&&n(()=>{const r=Zx.slice();Zx.length=0;const o=r[0].currentSearchString;let i;for(let a=0;awue(r,a),[r,a]);let l=mht(i,s);const u=bue(s.searchStringToObject,n.location.search,bht(l));s.includeAllParams&&(l=mue(l,Object.keys(u),s.params,s0));const c=o(u,l,WC),f=Object.keys(l).join("\0");M.useEffect(()=>{const y=f.split("\0");return WC.registerParams(y),()=>{WC.unregisterParams(y)}},[f]);const p={adapter:n,paramConfigMap:l,options:s},g=M.useRef(p);g.current==null&&(g.current=p),M.useEffect(()=>{g.current.adapter=n,g.current.paramConfigMap=l,g.current.options=s},[n,l,s]);const[m]=M.useState(()=>(v,x)=>{const{adapter:w,paramConfigMap:I,options:_}=g.current;x==null&&(x=_.updateType),Pht({changes:v,updateType:x,currentSearchString:w.location.search,paramConfigMap:I,options:_,adapter:w},{immediate:!_.enableBatching})});return[c,m]}function Oht(e,t){let n,r;return e===void 0?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map(o=>[o,"inherit"])),r=t):(n=e,r=t),{paramConfigMap:n,options:r}}var f5={},Rht={get exports(){return f5},set exports(e){f5=e}};(function(e){(function(t,n){e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())})(st,function(){var t={};function n(r){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(r))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(r){if(typeof r!="string")throw new TypeError("expected string");var o,i=unescape(encodeURIComponent(r)),a=new Uint8Array(i.length);for(o=0;o"u"?typeof Buffer.from<"u"?(t.encodeBase64=function(r){return Buffer.from(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(Buffer.from(r,"base64"),0))}):(t.encodeBase64=function(r){return new Buffer(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0))}):(t.encodeBase64=function(r){var o,i=[],a=r.length;for(o=0;o=e.length)throw new Error("Index is out of buffer");const n=e.slice(0,t),r=e.slice(t);return[n,r]}function aM(e){let t="";return e.forEach(n=>{t+=("0"+(n&255).toString(16)).slice(-2)}),t}function T_(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n({background:e.palette.background.default,padding:5}));J(Wr)(({theme:e})=>({position:"fixed",right:20,bottom:20,zIndex:100,color:e.palette.text.primary,p:{fontSize:12}}));function xht(){const e=Ki();return t=>{Lh.promise(t.promise,{loading:t.loading||e.txPending,success:n=>(t.isSuccess?t.isSuccess(n):!0)&&t.success&&n?A(E_,{message:t.success,customClick:Lh.dismiss}):null,error:n=>{const r=t.error||n,o=r instanceof Error?r.message:r;return A(E_,{customClick:Lh.dismiss,message:o})}},{success:{duration:4e3},error:{duration:4e3},position:"top-center"})}}const Cht=e=>e!=null&&e.includes("The connection is outdated")?!1:!!(e!=null&&e.includes("TON_CONNECT_SDK_ERROR")),Js=()=>(e,t)=>{if(!Cht(e instanceof Error?e.message:e))return Lh.dismiss(),fx(e,t)},fx=(e,t=7e3)=>{const n=e instanceof Error?e.message:e;Lh.error(r=>A(E_,{message:n,id:r.id}),{duration:t})},Lp=e=>{Lh.success(t=>A(E_,{message:e,id:t.id}),{duration:4e4})},E_=({message:e,id:t,customClick:n})=>A(_ht,{children:A(Gs,{children:e})}),Aht=()=>Lh.dismiss(),_ht=J(_t)({fontSize:15,alignItems:"center",p:{fontSize:"15px!important"}});function Eht(e,t){if(e==null)return e;if(e.length===0&&(!t||t&&e!==""))return null;const n=e instanceof Array?e[0]:e;return n==null?n:!t&&n===""?null:n}function Tht(e){return e==null?e:String(e)}function kht(e){const t=Eht(e,!0);return t==null?t:String(t)}const s0={encode:Tht,decode:kht};function Iht(e){const t=new URLSearchParams,n=Object.entries(e);for(const[r,o]of n)if(o!==void 0&&o!==null)if(Array.isArray(o))for(const i of o)t.append(r,i??"");else t.append(r,o);return t.toString()}'{}[],":'.split("").map(e=>[e,encodeURIComponent(e)]);function Pht(e,t){const n={},r=Object.keys(t);for(const o of r){const i=t[o];e[o]?n[o]=e[o].encode(t[o]):n[o]=i==null?i:String(i)}return n}function Mht(e){const t=new URLSearchParams(e),n={};for(let[r,o]of t)Object.prototype.hasOwnProperty.call(n,r)?Array.isArray(n[r])?n[r].push(o):n[r]=[n[r],o]:n[r]=o;return n}class Oht{constructor(){this.paramsMap=new Map,this.registeredParams=new Map}set(t,n,r,o){this.paramsMap.set(t,{stringified:n,decoded:r,decode:o})}has(t,n,r){if(!this.paramsMap.has(t))return!1;const o=this.paramsMap.get(t);return o?o.stringified===n&&(r==null||o.decode===r):!1}get(t){var n;if(this.paramsMap.has(t))return(n=this.paramsMap.get(t))==null?void 0:n.decoded}registerParams(t){for(const n of t){const r=this.registeredParams.get(n)||0;this.registeredParams.set(n,r+1)}}unregisterParams(t){for(const n of t){const r=(this.registeredParams.get(n)||0)-1;r<=0?(this.registeredParams.delete(n),this.paramsMap.has(n)&&this.paramsMap.delete(n)):this.registeredParams.set(n,r)}}clear(){this.paramsMap.clear(),this.registeredParams.clear()}}const WC=new Oht;function Rht(e,t){var n,r,o;const i={};let a=!1;const s=Object.keys(e);let l=s;if(t.includeKnownParams||t.includeKnownParams!==!1&&s.length===0){const c=Object.keys((n=t.params)!=null?n:{});l.push(...c)}for(const c of l){const f=e[c];if(f!=null&&typeof f=="object"){i[c]=f;continue}a=!0,i[c]=(o=(r=t.params)==null?void 0:r[c])!=null?o:s0}return a?i:e}function gue(e,t,n,r){var o;if(!n||!t.length)return e;let i={...e},a=!1;for(const s of t)Object.prototype.hasOwnProperty.call(i,s)||(i[s]=(o=n[s])!=null?o:r,a=!0);return a?i:e}const Dht=Object.prototype.hasOwnProperty;function fH(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function mue(e,t,n){var r,o;if(fH(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(let s=0;st.split("\0")))}function Fht(e,t){var n;let r={};for(const o in e)((n=t[o])==null?void 0:n.urlName)!=null?r[t[o].urlName]=e[o]:r[o]=e[o];return r}let pH,hH,gH,aM={};const vue=(e,t,n)=>{if(pH===t&&gH===e&&hH===n)return aM;pH=t,gH=e;const r=e(t??"");hH=n;const o=Lht(n);for(let[i,a]of Object.entries(r)){o!=null&&o[i]&&(delete r[i],i=o[i],r[i]=a);const s=aM[i];mue(a,s)&&(r[i]=s)}return aM=r,r},Nht={searchStringToObject:Mht,objectToSearchString:Iht,updateType:"pushIn",includeKnownParams:void 0,includeAllParams:!1,removeDefaultsFromUrl:!1,enableBatching:!1,skipUpdateWhenNoChange:!0};function bue(e,t){t==null&&(t={});const n={...e,...t};return t.params&&e.params&&(n.params={...e.params,...t.params}),n}const wue={adapter:{},options:Nht},f5=M.createContext(wue);function Uht(){const e=M.useContext(f5);if(e===void 0||e===wue)throw new Error("useQueryParams must be used within a QueryParamProvider");return e}function mH({children:e,adapter:t,options:n}){const{adapter:r,options:o}=M.useContext(f5),i=M.useMemo(()=>({adapter:t??r,options:bue(o,n)}),[t,n,r,o]);return M.createElement(f5.Provider,{value:i},e)}function jht({children:e,adapter:t,options:n}){const r=t;return r?M.createElement(r,null,o=>M.createElement(mH,{adapter:o,options:n},e)):M.createElement(mH,{options:n},e)}function Wht(e,t){var n;for(const r in e)((n=t[r])==null?void 0:n.default)!==void 0&&e[r]!==void 0&&t[r].encode(t[r].default)===e[r]&&(e[r]=void 0)}function zht({changes:e,updateType:t,currentSearchString:n,paramConfigMap:r,options:o}){const{searchStringToObject:i,objectToSearchString:a}=o;t==null&&(t=o.updateType);let s;const l=vue(i,n),u=gue(r,Object.keys(e),o.params);let c;if(typeof e=="function"){const p=yue(l,u,WC);c=e(p)}else c=e;s=Pht(u,c),o.removeDefaultsFromUrl&&Wht(s,u),s=Fht(s,u);let f;return t==="push"||t==="replace"?f=a(s):f=a({...l,...s}),f!=null&&f.length&&f[0]!=="?"&&(f=`?${f}`),f??""}function Vht({searchString:e,adapter:t,navigate:n,updateType:r}){const i={...t.location,search:e};n&&(typeof r=="string"&&r.startsWith("replace")?t.replace(i):t.push(i))}const Hht=e=>e(),qht=e=>setTimeout(()=>e(),0),Z2=[];function Qht(e,{immediate:t}={}){Z2.push(e);let n=t?Hht:qht;Z2.length===1&&n(()=>{const r=Z2.slice();Z2.length=0;const o=r[0].currentSearchString;let i;for(let a=0;abue(r,a),[r,a]);let l=Rht(i,s);const u=vue(s.searchStringToObject,n.location.search,$ht(l));s.includeAllParams&&(l=gue(l,Object.keys(u),s.params,s0));const c=o(u,l,WC),f=Object.keys(l).join("\0");M.useEffect(()=>{const y=f.split("\0");return WC.registerParams(y),()=>{WC.unregisterParams(y)}},[f]);const p={adapter:n,paramConfigMap:l,options:s},g=M.useRef(p);g.current==null&&(g.current=p),M.useEffect(()=>{g.current.adapter=n,g.current.paramConfigMap=l,g.current.options=s},[n,l,s]);const[m]=M.useState(()=>(v,x)=>{const{adapter:w,paramConfigMap:I,options:_}=g.current;x==null&&(x=_.updateType),Qht({changes:v,updateType:x,currentSearchString:w.location.search,paramConfigMap:I,options:_,adapter:w},{immediate:!_.enableBatching})});return[c,m]}function Yht(e,t){let n,r;return e===void 0?(n={},r=t):Array.isArray(e)?(n=Object.fromEntries(e.map(o=>[o,"inherit"])),r=t):(n=e,r=t),{paramConfigMap:n,options:r}}var p5={},Ght={get exports(){return p5},set exports(e){p5=e}};(function(e){(function(t,n){e.exports?e.exports=n():(t.nacl||(t.nacl={}),t.nacl.util=n())})(st,function(){var t={};function n(r){if(!/^(?:[A-Za-z0-9+\/]{2}[A-Za-z0-9+\/]{2})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(r))throw new TypeError("invalid encoding")}return t.decodeUTF8=function(r){if(typeof r!="string")throw new TypeError("expected string");var o,i=unescape(encodeURIComponent(r)),a=new Uint8Array(i.length);for(o=0;o"u"?typeof Buffer.from<"u"?(t.encodeBase64=function(r){return Buffer.from(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(Buffer.from(r,"base64"),0))}):(t.encodeBase64=function(r){return new Buffer(r).toString("base64")},t.decodeBase64=function(r){return n(r),new Uint8Array(Array.prototype.slice.call(new Buffer(r,"base64"),0))}):(t.encodeBase64=function(r){var o,i=[],a=r.length;for(o=0;o=e.length)throw new Error("Index is out of buffer");const n=e.slice(0,t),r=e.slice(t);return[n,r]}function sM(e){let t="";return e.forEach(n=>{t+=("0"+(n&255).toString(16)).slice(-2)}),t}function T_(e){if(e.length%2!==0)throw new Error(`Cannot convert ${e} to bytesArray`);const t=new Uint8Array(e.length/2);for(let n=0;n{this.eventSource.onerror=o,this.eventSource.onopen=()=>{this.eventSource.onerror=this.errorsHandler.bind(this),this.eventSource.onmessage=this.messagesHandler.bind(this),r()}})})}send(t,n,r,o){return On(this,void 0,void 0,function*(){const i=new URL(xH(this.bridgeUrl,this.postPath));i.searchParams.append("client_id",this.sessionId),i.searchParams.append("to",n),i.searchParams.append("ttl",(o||this.defaultTtl).toString()),i.searchParams.append("topic",r),yield fetch(i,{method:"post",body:wL.encode(t)})})}pause(){var t;(t=this.eventSource)===null||t===void 0||t.close()}unPause(){return this.registerSession()}close(){var t;this.isClosed=!0,(t=this.eventSource)===null||t===void 0||t.close()}setListener(t){this.listener=t}setErrorsListener(t){this.errorsListener=t}errorsHandler(t){var n,r;if(!this.isClosed){if(((n=this.eventSource)===null||n===void 0?void 0:n.readyState)===EventSource.CLOSED){this.eventSource.close(),this.registerSession();return}if(((r=this.eventSource)===null||r===void 0?void 0:r.readyState)===EventSource.CONNECTING){console.debug("[TON_CONNET_SDK_ERROR]: Bridge error",JSON.stringify(t));return}this.errorsListener(t)}}messagesHandler(t){return On(this,void 0,void 0,function*(){if(t.data!==this.heartbeatMessage&&(yield this.bridgeGatewayStorage.storeLastEventId(t.lastEventId),!this.isClosed)){let n;try{n=JSON.parse(t.data)}catch(r){throw new Cr(`Bridge message parse failed, message ${r.data}`)}this.listener(n)}})}}class Pw{constructor(t){this.storage=t,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(t){return On(this,void 0,void 0,function*(){if(t.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(t));const n={sessionKeyPair:t.session.sessionCrypto.stringifyKeypair(),walletPublicKey:t.session.walletPublicKey,bridgeUrl:t.session.bridgeUrl},r={type:"http",connectEvent:t.connectEvent,session:n,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(r))})}removeConnection(){return On(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return On(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);if(!t)return null;const n=JSON.parse(t);if(n.type==="injected")return n;const r=new xue(n.session.sessionKeyPair);return{type:"http",connectEvent:n.connectEvent,lastWalletEventId:n.lastWalletEventId,nextRpcRequestId:n.nextRpcRequestId,session:{sessionCrypto:r,bridgeUrl:n.session.bridgeUrl,walletPublicKey:n.session.walletPublicKey}}})}getHttpConnection(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Cr("Trying to read HTTP connection source while nothing is stored");if(t.type==="injected")throw new Cr("Trying to read HTTP connection source while injected connection is stored");return t})}getInjectedConnection(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Cr("Trying to read Injected bridge connection source while nothing is stored");if((t==null?void 0:t.type)==="http")throw new Cr("Trying to read Injected bridge connection source while HTTP connection is stored");return t})}storedConnectionType(){return On(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);return t?JSON.parse(t).type:null})}storeLastWalletEventId(t){return On(this,void 0,void 0,function*(){const n=yield this.getConnection();if(n&&n.type==="http")return n.lastWalletEventId=t,this.storeConnection(n)})}getLastWalletEventId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t&&"lastWalletEventId"in t)return t.lastWalletEventId})}increaseNextRpcRequestId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t){const n=t.nextRpcRequestId||0;return t.nextRpcRequestId=n+1,this.storeConnection(t)}})}getNextRpcRequestId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();return t&&t.nextRpcRequestId||0})}}const Cue=2;function gl(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch{}}function zC(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch{}}function Kht(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch{}}class P_{constructor(t,n){this.storage=t,this.walletConnectionSource=n,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.connectionStorage=new Pw(t)}static fromStorage(t){return On(this,void 0,void 0,function*(){const r=yield new Pw(t).getHttpConnection();return new P_(t,{bridgeUrl:r.session.bridgeUrl})})}connect(t){this.closeGateways();const n=new xue;let r="",o=this.standardUniversalLink;return Array.isArray(this.walletConnectionSource)?(this.pendingGateways=this.walletConnectionSource.map(i=>{const a=new sM(this.storage,i.bridgeUrl,n.sessionId,()=>{},s=>{console.error(s)});return a.setListener(s=>this.pendingGatewaysListener(a,i.bridgeUrl,s)),a}),this.pendingGateways.forEach(i=>i.registerSession())):(r=this.walletConnectionSource.bridgeUrl,this.walletConnectionSource.universalLink&&(o=this.walletConnectionSource.universalLink),this.gateway=new sM(this.storage,this.walletConnectionSource.bridgeUrl,n.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),this.gateway.registerSession()),this.session={sessionCrypto:n,bridgeUrl:r},this.generateUniversalLink(o,t)}restoreConnection(){return On(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource))throw new Cr("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");this.closeGateways();const t=yield this.connectionStorage.getHttpConnection();t&&(this.session=t.session,this.gateway=new sM(this.storage,this.walletConnectionSource.bridgeUrl,t.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession(),this.listeners.forEach(n=>n(t.connectEvent)))})}sendRequest(t,n){return new Promise((r,o)=>On(this,void 0,void 0,function*(){if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Cr("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gl("Send http-bridge request:",Object.assign(Object.assign({},t),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{id:i})),T_(this.session.walletPublicKey));this.gateway.send(a,this.session.walletPublicKey,t.method).catch(o),this.pendingRequests.set(i.toString(),r),n==null||n()}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(){return On(this,void 0,void 0,function*(){return new Promise(t=>On(this,void 0,void 0,function*(){let n=!1;const r=()=>{n=!0,this.removeBridgeAndSession().then(t)};try{yield this.sendRequest({method:"disconnect",params:[]},r)}catch(o){console.debug(o),n||this.removeBridgeAndSession().then(t)}}))})}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}pause(){var t;(t=this.gateway)===null||t===void 0||t.pause(),this.pendingGateways.forEach(n=>n.pause())}unPause(){return On(this,void 0,void 0,function*(){const t=this.pendingGateways.map(n=>n.unPause());this.gateway&&t.push(this.gateway.unPause()),yield Promise.all(t)})}pendingGatewaysListener(t,n,r){return On(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(t)){t.close();return}return this.closeGateways({except:t}),this.session.bridgeUrl=n,this.gateway=t,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(r)})}gatewayListener(t){return On(this,void 0,void 0,function*(){const n=JSON.parse(this.session.sessionCrypto.decrypt(wL.decode(t.message).toUint8Array(),T_(t.from)));if(gl("Wallet message received:",n),!("event"in n)){const o=n.id.toString(),i=this.pendingRequests.get(o);if(!i){gl(`Response id ${o} doesn't match any request's id`);return}i(n),this.pendingRequests.delete(o);return}if(n.id!==void 0){const o=yield this.connectionStorage.getLastWalletEventId();if(o!==void 0&&n.id<=o){zC(`Received event id (=${n.id}) must be greater than stored last wallet event id (=${o}) `);return}n.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(n.id))}const r=this.listeners;n.event==="connect"&&(yield this.updateSession(n,t.from)),n.event==="disconnect"&&(yield this.removeBridgeAndSession()),r.forEach(o=>o(n))})}gatewayErrorsListener(t){return On(this,void 0,void 0,function*(){throw new Cr(`Bridge error ${JSON.stringify(t)}`)})}updateSession(t,n){return On(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:n});const r=t.payload.items.find(i=>i.name==="ton_addr"),o=Object.assign(Object.assign({},t),{payload:Object.assign(Object.assign({},t.payload),{items:[r]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:t.id,connectEvent:o,nextRpcRequestId:0})})}removeBridgeAndSession(){return On(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(t,n){const r=new URL(t);return r.searchParams.append("v",Cue.toString()),r.searchParams.append("id",this.session.sessionCrypto.sessionId),r.searchParams.append("r",JSON.stringify(n)),r.toString()}closeGateways(t){var n;(n=this.gateway)===null||n===void 0||n.close(),this.pendingGateways.filter(r=>r!==(t==null?void 0:t.except)).forEach(r=>r.close()),this.pendingGateways=[]}}function CH(e,t){return Aue(e,[t])}function Aue(e,t){return!e||typeof e!="object"?!1:t.every(n=>n in e)}function Yht(e){try{return!CH(e,"tonconnect")||!CH(e.tonconnect,"walletInfo")?!1:Aue(e.tonconnect.walletInfo,["name","image","about_url"])}catch{return!1}}function EL(){if(!(typeof window>"u"))return window}function Ght(){if(!(typeof document>"u"))return document}function Jht(){var e;const t=(e=EL())===null||e===void 0?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}class es{constructor(t,n){this.injectedWalletKey=n,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const r=es.window;if(!es.isWindowContainsWallet(r,n))throw new CL;this.connectionStorage=new Pw(t),this.injectedWallet=r[n].tonconnect}static fromStorage(t){return On(this,void 0,void 0,function*(){const r=yield new Pw(t).getInjectedConnection();return new es(t,r.jsBridgeKey)})}static isWalletInjected(t){return es.isWindowContainsWallet(this.window,t)}static isInsideWalletBrowser(t){return es.isWindowContainsWallet(this.window,t)?this.window[t].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?Object.entries(this.window).filter(([n,r])=>Yht(r)).map(([n,r])=>({name:r.tonconnect.walletInfo.name,aboutUrl:r.tonconnect.walletInfo.about_url,imageUrl:r.tonconnect.walletInfo.image,tondns:r.tonconnect.walletInfo.tondns,jsBridgeKey:n,injected:!0,embedded:r.tonconnect.isWalletBrowser})):[]}static isWindowContainsWallet(t,n){return!!t&&n in t&&typeof t[n]=="object"&&"tonconnect"in t[n]}connect(t){this._connect(Cue,t)}restoreConnection(){return On(this,void 0,void 0,function*(){try{gl("Injected Provider restoring connection...");const t=yield this.injectedWallet.restoreConnection();gl("Injected Provider restoring connection response",t),t.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(n=>n(t))):yield this.connectionStorage.removeConnection()}catch(t){yield this.connectionStorage.removeConnection(),console.error(t)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return On(this,void 0,void 0,function*(){return new Promise(t=>{const n=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(t)};try{this.injectedWallet.disconnect(),n()}catch(r){gl(r),this.sendRequest({method:"disconnect",params:[]},n)}})})}closeAllListeners(){var t;this.listenSubscriptions=!1,this.listeners=[],(t=this.unsubscribeCallback)===null||t===void 0||t.call(this)}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}sendRequest(t,n){return On(this,void 0,void 0,function*(){const r=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gl("Send injected-bridge request:",Object.assign(Object.assign({},t),{id:r}));const o=this.injectedWallet.send(Object.assign(Object.assign({},t),{id:r}));return o.then(i=>gl("Wallet message received:",i)),n==null||n(),o})}_connect(t,n){return On(this,void 0,void 0,function*(){try{gl(`Injected Provider connect request: protocolVersion: ${t}, message:`,n);const r=yield this.injectedWallet.connect(t,n);gl("Injected Provider connect response:",r),r.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(o=>o(r))}catch(r){gl(r);const o={event:"connect_error",payload:{code:0,message:r==null?void 0:r.toString()}};this.listeners.forEach(i=>i(o))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(t=>{gl("Wallet message received:",t),this.listenSubscriptions&&this.listeners.forEach(n=>n(t)),t.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}es.window=EL();class Xht{constructor(){const t=EL();if(!(t!=null&&t.localStorage))throw new AL;this.window=t}getItem(t){return On(this,void 0,void 0,function*(){return Promise.resolve(this.window.localStorage.getItem(t))})}removeItem(t){return On(this,void 0,void 0,function*(){return this.window.localStorage.removeItem(t),Promise.resolve()})}setItem(t,n){return this.window.localStorage.setItem(t,n),Promise.resolve()}}function OI(e){return Zht(e)&&e.injected}function _ue(e){return OI(e)&&e.embedded}function Zht(e){return"jsBridgeKey"in e}function TL(e){return"bridgeUrl"in e}const egt=[{name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}]},{name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}]},{name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",bridge:[{type:"js",key:"mytonwallet"}]}];class p5{constructor(t){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets.json",t!=null&&t.walletsListSource&&(this.walletsListSource=t.walletsListSource),t!=null&&t.cacheTTLMs&&(this.cacheTTLMs=t.cacheTTLMs)}getWallets(){return On(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return On(this,void 0,void 0,function*(){const n=(yield this.getWallets()).filter(_ue);return n.length!==1?null:n[0]})}fetchWalletsList(){return On(this,void 0,void 0,function*(){let t=[];try{if(t=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(t))throw new _L("Wrong wallets list format, wallets list must be an array.");const o=t.filter(i=>!this.isCorrectWalletConfigDTO(i));o.length&&(zC(`Wallet(s) ${o.map(i=>i.name).join(", ")} config format is wrong. They were removed from the wallets list.`),t=t.filter(i=>this.isCorrectWalletConfigDTO(i)))}catch(r){zC(r),t=egt}let n=[];try{n=es.getCurrentlyInjectedWallets()}catch(r){zC(r)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(t),n)})}walletConfigDTOListToWalletConfigList(t){return t.map(n=>{const r={name:n.name,imageUrl:n.image,aboutUrl:n.about_url,tondns:n.tondns};return n.bridge.forEach(o=>{if(o.type==="sse"&&(r.bridgeUrl=o.url,r.universalLink=n.universal_url,r.deepLink=n.deepLink),o.type==="js"){const i=o.key;r.jsBridgeKey=i,r.injected=es.isWalletInjected(i),r.embedded=es.isInsideWalletBrowser(i)}}),r})}mergeWalletsLists(t,n){return[...new Set(t.concat(n).map(o=>o.name)).values()].map(o=>{const i=t.find(s=>s.name===o),a=n.find(s=>s.name===o);return Object.assign(Object.assign({},i&&Object.assign({},i)),a&&Object.assign({},a))})}isCorrectWalletConfigDTO(t){if(!t||typeof t!="object")return!1;const n="name"in t,r="image"in t,o="about_url"in t;if(!n||!r||!o||!("bridge"in t)||!Array.isArray(t.bridge)||!t.bridge.length)return!1;const i=t.bridge;if(i.some(l=>!l||typeof l!="object"||!("type"in l)))return!1;const a=i.find(l=>l.type==="sse");if(a&&(!("url"in a)||!a.url||!t.universal_url))return!1;const s=i.find(l=>l.type==="js");return!(s&&(!("key"in s)||!s.key))}}class M_ extends Cr{get info(){return"Wallet doesn't support requested feature method."}constructor(...t){super(...t),Object.setPrototypeOf(this,M_.prototype)}}function tgt(e,t){const n=e.includes("SendTransaction"),r=e.find(o=>o&&typeof o=="object"&&o.name==="SendTransaction");if(!n&&!r)throw new M_("Wallet doesn't support SendTransaction feature.");if(r&&r.maxMessages!==void 0){if(r.maxMessagesn(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(t,n){return this.statusChangeSubscriptions.push(t),n&&this.statusChangeErrorSubscriptions.push(n),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(r=>r!==t),n&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(r=>r!==n))}}connect(t,n){var r;if(this.connected)throw new xL;return(r=this.provider)===null||r===void 0||r.closeConnection(),this.provider=this.createProvider(t),this.provider.connect(this.createConnectRequest(n))}restoreConnection(){return On(this,void 0,void 0,function*(){const[t,n]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);try{switch(t){case"http":this.provider=yield P_.fromStorage(this.dappSettings.storage);break;case"injected":this.provider=yield es.fromStorage(this.dappSettings.storage);break;default:if(n)this.provider=yield this.createProvider(n);else return}}catch{yield this.bridgeConnectionStorage.removeConnection(),this.provider=null;return}return this.provider.listen(this.walletEventsListener.bind(this)),this.provider.restoreConnection()})}sendTransaction(t){return On(this,void 0,void 0,function*(){this.checkConnection(),tgt(this.wallet.device.features,{requiredMessagesNumber:t.messages.length});const{validUntil:n}=t,r=Uht(t,["validUntil"]),o=t.from||this.account.address,i=t.network||this.account.chain,a=yield this.provider.sendRequest(eC.convertToRpcRequest(Object.assign(Object.assign({},r),{valid_until:n,from:o,network:i})));return eC.isError(a)?eC.parseAndThrowError(a):eC.convertFromRpcResponse(a)})}disconnect(){return On(this,void 0,void 0,function*(){if(!this.connected)throw new k_;yield this.provider.disconnect(),this.onWalletDisconnected()})}pauseConnection(){var t;((t=this.provider)===null||t===void 0?void 0:t.type)==="http"&&this.provider.pause()}unPauseConnection(){var t;return((t=this.provider)===null||t===void 0?void 0:t.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const t=Ght();if(t)try{t.addEventListener("visibilitychange",()=>{t.hidden?this.pauseConnection():this.unPauseConnection()})}catch(n){console.error("Cannot subscribe to the document.visibilitychange: ",n)}}createProvider(t){let n;return!Array.isArray(t)&&jht(t)?n=new es(this.dappSettings.storage,t.jsBridgeKey):n=new P_(this.dappSettings.storage,t),n.listen(this.walletEventsListener.bind(this)),n}walletEventsListener(t){switch(t.event){case"connect":this.onWalletConnected(t.payload);break;case"connect_error":this.onWalletConnectError(t.payload);break;case"disconnect":this.onWalletDisconnected()}}onWalletConnected(t){const n=t.items.find(i=>i.name==="ton_addr"),r=t.items.find(i=>i.name==="ton_proof");if(!n)throw new Cr("ton_addr connection item was not found");const o={device:t.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};r&&(o.connectItems={tonProof:r}),this.wallet=o}onWalletConnectError(t){const n=zht.parseError(t);if(this.statusChangeErrorSubscriptions.forEach(r=>r(n)),console.debug(n),n instanceof kI||n instanceof TI)throw console.error(n),n}onWalletDisconnected(){this.wallet=null}checkConnection(){if(!this.connected)throw new k_}createConnectRequest(t){const n=[{name:"ton_addr"}];return t!=null&&t.tonProof&&n.push({name:"ton_proof",payload:t.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:n}}}Pg.walletsList=new p5;Pg.isWalletInjected=e=>es.isWalletInjected(e);Pg.isInsideWalletBrowser=e=>es.isInsideWalletBrowser(e);const ngt=17,rgt=128;function kL(e,t=!1){const{wc:n,hex:r}=ogt(e);let o=ngt;t&&(o|=rgt);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(igt(i),34),wL.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}function ogt(e){if(!e.includes(":"))throw new u0(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(t.length!==2)throw new u0(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(n!==0&&n!==-1)throw new u0(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if((r==null?void 0:r.length)!==64)throw new u0(`Wrong address ${e}. Hex part must be 64bytes length, but ${r==null?void 0:r.length} received.`);return{wc:n,hex:agt(r)}}function igt(e){let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let i=128;for(;i>0;)n<<=1,o&i&&(n+=1),i>>=1,n>65535&&(n&=65535,n^=4129)}return new Uint8Array([Math.floor(n/256),n%256])}const h5={};for(let e=0;e<=255;e++){let t=e.toString(16);t.length<2&&(t="0"+t),h5[t]=e}function agt(e){e=e.toLowerCase();const t=e.length;if(t%2!==0)throw new I_("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;ot in e?Sgt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_o=(e,t)=>{for(var n in t||(t={}))Agt.call(t,n)&&g5(e,n,t[n]);if(_H)for(var n of _H(t))_gt.call(t,n)&&g5(e,n,t[n]);return e},hp=(e,t)=>xgt(e,Cgt(t)),_s=(e,t,n)=>(g5(e,typeof t!="symbol"?t+"":t,n),n),ml=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(u){o(u)}},a=l=>{try{s(n.throw(l))}catch(u){o(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});const yo={};function Egt(e){yo.context=e}const Tgt=(e,t)=>e===t,wu=Symbol("solid-proxy"),m5=Symbol("solid-track"),O_={equals:Tgt};let Tue=Rue;const Zd=1,R_=2,kue={owned:null,cleanups:null,context:null,owner:null},lM={};var di=null;let Nh=null,Eo=null,da=null,Ad=null,IL=0;function Tb(e,t){const n=Eo,r=di,o=e.length===0,i=o?kue:{owned:null,cleanups:null,context:null,owner:t===void 0?r:t},a=o?e:()=>e(()=>Vi(()=>$I(i)));di=i,Eo=null;try{return gp(a,!0)}finally{Eo=n,di=r}}function Xn(e,t){t=t?Object.assign({},O_,t):O_;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),Oue(n,o));return[Mue.bind(n),r]}function D_(e,t,n){const r=BI(e,t,!0,Zd);gv(r)}function Lo(e,t,n){const r=BI(e,t,!1,Zd);gv(r)}function Pl(e,t,n){Tue=Bgt;const r=BI(e,t,!1,Zd);r.user=!0,Ad?Ad.push(r):gv(r)}function Bn(e,t,n){n=n?Object.assign({},O_,n):O_;const r=BI(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,gv(r),Mue.bind(r)}function kgt(e,t,n){let r,o,i;arguments.length===2&&typeof t=="object"||arguments.length===1?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=lM,l=null,u=!1,c="initialValue"in i,f=typeof r=="function"&&Bn(r);const p=new Set,[g,m]=(i.storage||Xn)(i.initialValue),[y,v]=Xn(void 0),[x,w]=Xn(void 0,{equals:!1}),[I,_]=Xn(c?"ready":"unresolved");if(yo.context){l=`${yo.context.id}${yo.context.count++}`;let T;i.ssrLoadFrom==="initial"?s=i.initialValue:yo.load&&(T=yo.load(l))&&(s=T[0])}function R(T,C,O,$){return a===T&&(a=null,c=!0,(T===s||C===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated($,{value:C})),s=lM,U(C,O)),C}function U(T,C){gp(()=>{C===void 0&&m(()=>T),_(C!==void 0?"errored":"ready"),v(C);for(const O of p.keys())O.decrement();p.clear()},!1)}function D(){const T=Ogt,C=g(),O=y();if(O!==void 0&&!a)throw O;return Eo&&!Eo.user&&T&&D_(()=>{x(),a&&(T.resolved||p.has(T)||(T.increment(),p.add(T)))}),C}function b(T=!0){if(T!==!1&&u)return;u=!1;const C=f?f():r;if(C==null||C===!1){R(a,Vi(g));return}const O=s!==lM?s:Vi(()=>o(C,{value:g(),refetching:T}));return typeof O!="object"||!(O&&"then"in O)?(R(a,O,void 0,C),O):(a=O,u=!0,queueMicrotask(()=>u=!1),gp(()=>{_(c?"refreshing":"pending"),w()},!1),O.then($=>R(O,$,void 0,C),$=>R(O,void 0,Bue($),C)))}return Object.defineProperties(D,{state:{get:()=>I()},error:{get:()=>y()},loading:{get(){const T=I();return T==="pending"||T==="refreshing"}},latest:{get(){if(!c)return D();const T=y();if(T&&!a)throw T;return g()}}}),f?D_(()=>b(!1)):b(!1),[D,{refetch:b,mutate:m}]}function Iue(e){return gp(e,!1)}function Vi(e){if(Eo===null)return e();const t=Eo;Eo=null;try{return e()}finally{Eo=t}}function Igt(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let u=0;ut(s,o,a));return o=s,l}}function Pgt(e){Pl(()=>Vi(e))}function Fd(e){return di===null||(di.cleanups===null?di.cleanups=[e]:di.cleanups.push(e)),e}function Pue(){return Eo}function Mgt(){return di}function RI(e,t){const n=Symbol("context");return{id:n,Provider:$gt(n),defaultValue:e}}function Su(e){let t;return(t=Lue(di,e.id))!==void 0?t:e.defaultValue}function DI(e){const t=Bn(e),n=Bn(()=>y5(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Ogt;function Mue(){const e=Nh;if(this.sources&&(this.state||e))if(this.state===Zd||e)gv(this);else{const t=da;da=null,gp(()=>$_(this),!1),da=t}if(Eo){const t=this.observers?this.observers.length:0;Eo.sources?(Eo.sources.push(this),Eo.sourceSlots.push(t)):(Eo.sources=[this],Eo.sourceSlots=[t]),this.observers?(this.observers.push(Eo),this.observerSlots.push(Eo.sources.length-1)):(this.observers=[Eo],this.observerSlots=[Eo.sources.length-1])}return this.value}function Oue(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&gp(()=>{for(let o=0;o1e6)throw da=[],new Error},!1)),t}function gv(e){if(!e.fn)return;$I(e);const t=di,n=Eo,r=IL;Eo=di=e,Rgt(e,e.value,r),Eo=n,di=t}function Rgt(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Zd,e.owned&&e.owned.forEach($I),e.owned=null),$ue(o)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Oue(e,r):e.value=r,e.updatedAt=n)}function BI(e,t,n,r=Zd,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:di,context:null,pure:n};return di===null||di!==kue&&(di.owned?di.owned.push(i):di.owned=[i]),i}function B_(e){const t=Nh;if(e.state===0||t)return;if(e.state===R_||t)return $_(e);if(e.suspense&&Vi(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=n[r],e.state===Zd||t)gv(e);else if(e.state===R_||t){const o=da;da=null,gp(()=>$_(e,n[0]),!1),da=o}}function gp(e,t){if(da)return e();let n=!1;t||(da=[]),Ad?n=!0:Ad=[],IL++;try{const r=e();return Dgt(n),r}catch(r){n||(Ad=null),da=null,$ue(r)}}function Dgt(e){if(da&&(Rue(da),da=null),e)return;const t=Ad;Ad=null,t.length&&gp(()=>Tue(t),!1)}function Rue(e){for(let t=0;to=Vi(()=>(di.context={[e]:r.value},DI(()=>r.children))),void 0),o}}const Lgt=Symbol("fallback");function EH(e){for(let t=0;t1?[]:null;return Fd(()=>EH(i)),()=>{let l=e()||[],u,c;return l[m5],Vi(()=>{let p=l.length,g,m,y,v,x,w,I,_,R;if(p===0)a!==0&&(EH(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[Lgt],o[0]=Tb(U=>(i[0]=U,n.fallback())),a=1);else if(a===0){for(o=new Array(p),c=0;c=w&&_>=w&&r[I]===l[_];I--,_--)y[_]=o[I],v[_]=i[I],s&&(x[_]=s[I]);for(g=new Map,m=new Array(_+1),c=_;c>=w;c--)R=l[c],u=g.get(R),m[c]=u===void 0?-1:u,g.set(R,c);for(u=w;u<=I;u++)R=r[u],c=g.get(R),c!==void 0&&c!==-1?(y[c]=o[u],v[c]=i[u],s&&(x[c]=s[u]),c=m[c],g.set(R,c)):i[u]();for(c=w;ce(t||{}))}function tC(){return!0}const v5={get(e,t,n){return t===wu?n:e.get(t)},has(e,t){return t===wu?!0:e.has(t)},set:tC,deleteProperty:tC,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:tC,deleteProperty:tC}},ownKeys(e){return e.keys()}};function uM(e){return(e=typeof e=="function"?e():e)?e:{}}function dc(...e){let t=!1;for(let r=0;r=0;o--){const i=uM(e[o])[r];if(i!==void 0)return i}},has(r){for(let o=e.length-1;o>=0;o--)if(r in uM(e[o]))return!0;return!1},keys(){const r=[];for(let o=0;o=0;r--)if(e[r]){const o=Object.getOwnPropertyDescriptors(e[r]);for(const i in o)i in n||Object.defineProperty(n,i,{enumerable:!0,get(){for(let a=e.length-1;a>=0;a--){const s=(e[a]||{})[i];if(s!==void 0)return s}}})}return n}function PL(e,...t){const n=new Set(t.flat());if(wu in e){const o=t.map(i=>new Proxy({get(a){return i.includes(a)?e[a]:void 0},has(a){return i.includes(a)&&a in e},keys(){return i.filter(a=>a in e)}},v5));return o.push(new Proxy({get(i){return n.has(i)?void 0:e[i]},has(i){return n.has(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!n.has(i))}},v5)),o}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(o=>!n.has(o))),t.map(o=>{const i={};for(let a=0;ae.fallback};return Bn(Fgt(()=>e.each,e.children,t||void 0))}function Rr(e){let t=!1;const n=e.keyed,r=Bn(()=>e.when,void 0,{equals:(o,i)=>t?o===i:!o==!i});return Bn(()=>{const o=r();if(o){const i=e.children,a=typeof i=="function"&&i.length>0;return t=n||a,a?Vi(()=>i(o)):i}return e.fallback},void 0,void 0)}function FI(e){let t=!1,n=!1;const r=(a,s)=>a[0]===s[0]&&(t?a[1]===s[1]:!a[1]==!s[1])&&a[2]===s[2],o=DI(()=>e.children),i=Bn(()=>{let a=o();Array.isArray(a)||(a=[a]);for(let s=0;s{const[a,s,l]=i();if(a<0)return e.fallback;const u=l.children,c=typeof u=="function"&&u.length>0;return t=n||c,c?Vi(()=>u(s)):u},void 0,void 0)}function fc(e){return e}const Ngt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],Ugt=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...Ngt]),jgt=new Set(["innerHTML","textContent","innerText","children"]),Wgt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),TH=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),zgt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),Vgt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),Hgt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function qgt(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,u=null;for(;ac-s){const m=t[a];for(;s{o=i,t===document?e():Ti(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function Jo(e,t,n){if(typeof window>"u")return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function Kgt(e,t=window.document){const n=t[kH]||(t[kH]=new Set);for(let r=0,o=e.length;ro.call(e,n[1],i))}else e.addEventListener(t,n)}function Jgt(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;io.children=hy(e,t.children,o.children)),Lo(()=>t.ref&&t.ref(e)),Lo(()=>Zgt(e,t,n,!0,o,!0)),o}function L_(e,t,n){return Vi(()=>e(t,n))}function Ti(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return hy(e,t,r,n);Lo(o=>hy(e,t(),o,n),r)}function Zgt(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=PH(e,a,null,o[a],n,i)}for(const a in t){if(a==="children"){r||hy(e,t.children);continue}const s=t[a];o[a]=PH(e,a,s,o[a],n,i)}}function emt(e){let t,n;return!yo.context||!(t=yo.registry.get(n=rmt()))?e.cloneNode(!0):(yo.completed&&yo.completed.add(t),yo.registry.delete(n),t)}function tmt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function IH(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o-1&&Hgt[t.split(":")[0]];u?Ygt(e,u,t,n):io(e,Wgt[t]||t,n)}return n}function nmt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),yo.registry&&!yo.done&&(yo.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>{for(;r&&r.nodeType!==8&&r.nodeValue!=="pl-"+e;){let o=r.nextSibling;r.remove(),r=o}r&&r.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(o!==void 0?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function hy(e,t,n,r,o){for(yo.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(yo.context)return n;if(i==="number"&&(t=t.toString()),a){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=Nm(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(yo.context)return n;n=Nm(e,n,r)}else{if(i==="function")return Lo(()=>{let s=t();for(;typeof s=="function";)s=s();n=hy(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],l=n&&Array.isArray(n);if(b5(s,t,n,o))return Lo(()=>n=hy(e,s,n,r,!0)),()=>n;if(yo.context){if(!s.length)return n;for(let u=0;u=0;a--){const s=t[a];if(o!==s){const l=s.parentNode===e;!i&&!a?l?e.replaceChild(o,s):e.insertBefore(o,n):l&&s.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function rmt(){const e=yo.context;return`${e.id}${e.count++}`}const omt="http://www.w3.org/2000/svg";function Nue(e,t=!1){return t?document.createElementNS(omt,e):document.createElement(e)}function Uue(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(yo.context){const[i,a]=Xn(!1);return queueMicrotask(()=>a(!0)),()=>i()&&e.children}else return()=>e.children}if(r instanceof HTMLHeadElement){const[i,a]=Xn(!1),s=()=>a(!0);Tb(l=>Ti(r,()=>i()?l():o()(),null)),Fd(()=>{yo.context?queueMicrotask(s):s()})}else{const i=Nue(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get(){return n.parentNode},configurable:!0}),Ti(a,o()),r.appendChild(i),e.ref&&e.ref(i),Fd(()=>r.removeChild(i))}return n}function OL(e){const[t,n]=PL(e,["component"]),r=Bn(()=>t.component);return Bn(()=>{const o=r();switch(typeof o){case"function":return Vi(()=>o(n));case"string":const i=Vgt.has(o),a=yo.context?emt():Nue(o,i);return Fue(a,n,i),a}})}const[imt,w5]=Xn(!1),[amt,uu]=Xn(null),[qm,c0]=Xn(null);let smt={data:""},lmt=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||smt,umt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,cmt=/\/\*[^]*?\*\/| +/g,OH=/\n+/g,xh=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?xh(a,i):i+"{"+xh(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=xh(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=xh.p?xh.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Zc={},jue=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+jue(e[n]);return t}return e},dmt=(e,t,n,r,o)=>{let i=jue(e),a=Zc[i]||(Zc[i]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(i));if(!Zc[a]){let l=i!==e?e:(u=>{let c,f,p=[{}];for(;c=umt.exec(u.replace(cmt,""));)c[4]?p.shift():c[3]?(f=c[3].replace(OH," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(OH," ").trim();return p[0]})(e);Zc[a]=xh(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Zc.g?Zc.g:null;return n&&(Zc.g=Zc[a]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Zc[a],t,r,s),a},fmt=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":xh(s,""):s===!1?"":s}return r+o+(a??"")},"");function Nd(e){let t=this||{},n=e.call?e(t.p):e;return dmt(n.unshift?n.raw?fmt(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,lmt(t.target),t.g,t.o,t.k)}Nd.bind({g:1});let pmt=Nd.bind({k:1});const RL=RI();function hmt(e){return ke(RL.Provider,{value:e.theme,get children(){return e.children}})}function Xs(){return Su(RL)}function Wue(e){let t=this||{};return(...n)=>{const r=o=>{const i=Su(RL),a=dc(o,{theme:i}),s=dc(a,{get class(){const g=a.class,m="class"in a&&/^go[0-9]+/.test(g);let y=Nd.apply({target:t.target,o:m,p:a,g:t.g},n);return[g,y].filter(Boolean).join(" ")}}),[l,u]=PL(s,["as","theme"]),c=u,f=l.as||e;let p;return typeof f=="function"?p=f(c):t.g==1?(p=document.createElement(f),Fue(p,c)):p=OL(dc({component:f},c)),p};return r.class=o=>Vi(()=>Nd.apply({target:t.target,p:o,g:t.g},n)),r}}const Tt=new Proxy(Wue,{get(e,t){return e(t)}});function gmt(){const e=Wue.call({g:1},"div").apply(null,arguments);return function(n){return e(n),null}}const mmt={close:"Close",get:"GET",learnMore:"Learn more",openExtension:"Open Extension",copyLink:"Copy Link",copied:"Copied!",yourWallet:"your wallet"},ymt={connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},vmt={confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."}},bmt={loading:"Loading wallets",qrCode:"QR Code",wallets:"Wallets",universalQRModal:{scanQR:"Scan the code below with a camera in your TON wallet.",openWallet:"Open Wallet",openInstalledWallet:"Open Wallet",dontHave:"Explore TON wallets"},desktopSelectWalletModal:{selectWallet:"Select a wallet to connect."},mobileSelectWalletModal:{connectWallet:"Connect a Wallet",selectWallet:"$walletModal.desktopSelectWalletModal.selectWallet",installedWallet:"Installed Wallet"},qrCodeModal:{connectWith:"Connect with {{ name }}",scan:"Scan the code below.",openWallet:"Open {{ name }}",openExtension:"Open Extension",dontHave:"Don't have {{ name }}?"}},wmt={confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},Smt={common:mmt,button:ymt,notifications:vmt,walletModal:bmt,actionModal:wmt},xmt={close:"Закрыть",get:"Скачать",learnMore:"Подробнее",openExtension:"Расширение",copyLink:"Копировать ссылку",copied:"Скопировано!",yourWallet:"вашем кошельке"},Cmt={connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},Amt={confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},_mt={loading:"Список кошельков загружается",qrCode:"QR-код",wallets:"Кошельки",universalQRModal:{scanQR:"Отсканируйте код ниже с помощью камеры в вашем TON-кошельке.",openWallet:"Открыть кошелёк",openInstalledWallet:"Открыть кошелёк",dontHave:"Подробнее о TON кошельках"},desktopSelectWalletModal:{selectWallet:"Выберите кошелёк для подключения."},mobileSelectWalletModal:{connectWallet:"Подключите кошелёк",selectWallet:"$walletModal.desktopSelectWalletModal.selectWallet",installedWallet:"Открыть кошелёк"},qrCodeModal:{connectWith:"Подключиться через {{ name }}",scan:"Отсканируйте код ниже.",openWallet:"Открыть {{ name }}",openExtension:"Расширение",dontHave:"У вас нет {{ name }}?"}},Emt={confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},Tmt={common:xmt,button:Cmt,notifications:Amt,walletModal:_mt,actionModal:Emt},kmt={en:RH(Smt),ru:RH(Tmt)};function RH(e){const t="$",n=r=>{Object.entries(r).forEach(([o,i])=>{if(typeof i=="object"&&i)return n(i);if(typeof i=="string"){if(i[0]===t){const a=i.slice(1).split(".");let s=e;a.forEach(l=>{if(l in s)s=s[l];else throw new Error(`Cannot parse translations: there is no property ${l} in translation`)}),r[o]=s}i.slice(0,2)===`\\${t}`&&(r[o]=i.slice(1))}})};return n(e),e}const NI=RI(),S5=Symbol("store-raw"),Ow=Symbol("store-node"),Imt=Symbol("store-name");function zue(e,t){let n=e[wu];if(!n&&(Object.defineProperty(e,wu,{value:n=new Proxy(e,Omt)}),!Array.isArray(e))){const r=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let i=0,a=r.length;ie[wu][t]),n}function Vue(e){if(Pue()){const t=DL(e);(t._||(t._=Hue()))()}}function Mmt(e){return Vue(e),Reflect.ownKeys(e)}function Hue(e){const[t,n]=Xn(e,{equals:!1,internal:!0});return t.$=n,t}const Omt={get(e,t,n){if(t===S5)return e;if(t===wu)return n;if(t===m5)return Vue(e),n;const r=DL(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===Ow||t==="__proto__")return i;if(!o){const a=Object.getOwnPropertyDescriptor(e,t);Pue()&&(typeof i!="function"||e.hasOwnProperty(t))&&!(a&&a.get)&&(i=x5(r,t,i)())}return F_(i)?zue(i):i},has(e,t){return t===S5||t===wu||t===m5||t===Ow||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Mmt,getOwnPropertyDescriptor:Pmt};function N_(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;n===void 0?delete e[t]:e[t]=n;let a=DL(e),s;(s=x5(a,t,o))&&s.$(()=>n),Array.isArray(e)&&e.length!==i&&(s=x5(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function que(e,t){const n=Object.keys(t);for(let r=0;r1){r=t.shift();const a=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let l=0;l1){X1(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let i=t[0];typeof i=="function"&&(i=i(o,n),i===o)||r===void 0&&i==null||(i=gy(i),r===void 0||F_(o)&&F_(i)&&!Array.isArray(i)?que(o,i):N_(e,r,i))}function BL(...[e,t]){const n=gy(e||{}),r=Array.isArray(n),o=zue(n);function i(...a){Iue(()=>{r&&a.length===1?Rmt(n,a[0]):X1(n,a)})}return[o,i]}var qr=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(qr||{});const Que={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#31A6F5",foreground:"#FFFFFF"},accent:"#31A6F5",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},Dmt={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#31A6F5",foreground:"#FFFFFF"},accent:"#E5E5EA",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}};/*! +***************************************************************************** */function rgt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o{this.eventSource.onerror=o,this.eventSource.onopen=()=>{this.eventSource.onerror=this.errorsHandler.bind(this),this.eventSource.onmessage=this.messagesHandler.bind(this),r()}})})}send(t,n,r,o){return On(this,void 0,void 0,function*(){const i=new URL(xH(this.bridgeUrl,this.postPath));i.searchParams.append("client_id",this.sessionId),i.searchParams.append("to",n),i.searchParams.append("ttl",(o||this.defaultTtl).toString()),i.searchParams.append("topic",r),yield fetch(i,{method:"post",body:wL.encode(t)})})}pause(){var t;(t=this.eventSource)===null||t===void 0||t.close()}unPause(){return this.registerSession()}close(){var t;this.isClosed=!0,(t=this.eventSource)===null||t===void 0||t.close()}setListener(t){this.listener=t}setErrorsListener(t){this.errorsListener=t}errorsHandler(t){var n,r;if(!this.isClosed){if(((n=this.eventSource)===null||n===void 0?void 0:n.readyState)===EventSource.CLOSED){this.eventSource.close(),this.registerSession();return}if(((r=this.eventSource)===null||r===void 0?void 0:r.readyState)===EventSource.CONNECTING){console.debug("[TON_CONNET_SDK_ERROR]: Bridge error",JSON.stringify(t));return}this.errorsListener(t)}}messagesHandler(t){return On(this,void 0,void 0,function*(){if(t.data!==this.heartbeatMessage&&(yield this.bridgeGatewayStorage.storeLastEventId(t.lastEventId),!this.isClosed)){let n;try{n=JSON.parse(t.data)}catch(r){throw new Cr(`Bridge message parse failed, message ${r.data}`)}this.listener(n)}})}}class Pw{constructor(t){this.storage=t,this.storeKey="ton-connect-storage_bridge-connection"}storeConnection(t){return On(this,void 0,void 0,function*(){if(t.type==="injected")return this.storage.setItem(this.storeKey,JSON.stringify(t));const n={sessionKeyPair:t.session.sessionCrypto.stringifyKeypair(),walletPublicKey:t.session.walletPublicKey,bridgeUrl:t.session.bridgeUrl},r={type:"http",connectEvent:t.connectEvent,session:n,lastWalletEventId:t.lastWalletEventId,nextRpcRequestId:t.nextRpcRequestId};return this.storage.setItem(this.storeKey,JSON.stringify(r))})}removeConnection(){return On(this,void 0,void 0,function*(){return this.storage.removeItem(this.storeKey)})}getConnection(){return On(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);if(!t)return null;const n=JSON.parse(t);if(n.type==="injected")return n;const r=new Sue(n.session.sessionKeyPair);return{type:"http",connectEvent:n.connectEvent,lastWalletEventId:n.lastWalletEventId,nextRpcRequestId:n.nextRpcRequestId,session:{sessionCrypto:r,bridgeUrl:n.session.bridgeUrl,walletPublicKey:n.session.walletPublicKey}}})}getHttpConnection(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Cr("Trying to read HTTP connection source while nothing is stored");if(t.type==="injected")throw new Cr("Trying to read HTTP connection source while injected connection is stored");return t})}getInjectedConnection(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(!t)throw new Cr("Trying to read Injected bridge connection source while nothing is stored");if((t==null?void 0:t.type)==="http")throw new Cr("Trying to read Injected bridge connection source while HTTP connection is stored");return t})}storedConnectionType(){return On(this,void 0,void 0,function*(){const t=yield this.storage.getItem(this.storeKey);return t?JSON.parse(t).type:null})}storeLastWalletEventId(t){return On(this,void 0,void 0,function*(){const n=yield this.getConnection();if(n&&n.type==="http")return n.lastWalletEventId=t,this.storeConnection(n)})}getLastWalletEventId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t&&"lastWalletEventId"in t)return t.lastWalletEventId})}increaseNextRpcRequestId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();if(t){const n=t.nextRpcRequestId||0;return t.nextRpcRequestId=n+1,this.storeConnection(t)}})}getNextRpcRequestId(){return On(this,void 0,void 0,function*(){const t=yield this.getConnection();return t&&t.nextRpcRequestId||0})}}const xue=2;function gl(...e){try{console.debug("[TON_CONNECT_SDK]",...e)}catch{}}function zC(...e){try{console.error("[TON_CONNECT_SDK]",...e)}catch{}}function dgt(...e){try{console.warn("[TON_CONNECT_SDK]",...e)}catch{}}class P_{constructor(t,n){this.storage=t,this.walletConnectionSource=n,this.type="http",this.standardUniversalLink="tc://",this.pendingRequests=new Map,this.session=null,this.gateway=null,this.pendingGateways=[],this.listeners=[],this.connectionStorage=new Pw(t)}static fromStorage(t){return On(this,void 0,void 0,function*(){const r=yield new Pw(t).getHttpConnection();return new P_(t,{bridgeUrl:r.session.bridgeUrl})})}connect(t){this.closeGateways();const n=new Sue;let r="",o=this.standardUniversalLink;return Array.isArray(this.walletConnectionSource)?(this.pendingGateways=this.walletConnectionSource.map(i=>{const a=new lM(this.storage,i.bridgeUrl,n.sessionId,()=>{},s=>{console.error(s)});return a.setListener(s=>this.pendingGatewaysListener(a,i.bridgeUrl,s)),a}),this.pendingGateways.forEach(i=>i.registerSession())):(r=this.walletConnectionSource.bridgeUrl,this.walletConnectionSource.universalLink&&(o=this.walletConnectionSource.universalLink),this.gateway=new lM(this.storage,this.walletConnectionSource.bridgeUrl,n.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),this.gateway.registerSession()),this.session={sessionCrypto:n,bridgeUrl:r},this.generateUniversalLink(o,t)}restoreConnection(){return On(this,void 0,void 0,function*(){if(Array.isArray(this.walletConnectionSource))throw new Cr("Internal error. Connection source is array while WalletConnectionSourceHTTP was expected.");this.closeGateways();const t=yield this.connectionStorage.getHttpConnection();t&&(this.session=t.session,this.gateway=new lM(this.storage,this.walletConnectionSource.bridgeUrl,t.session.sessionCrypto.sessionId,this.gatewayListener.bind(this),this.gatewayErrorsListener.bind(this)),yield this.gateway.registerSession(),this.listeners.forEach(n=>n(t.connectEvent)))})}sendRequest(t,n){return new Promise((r,o)=>On(this,void 0,void 0,function*(){if(!this.gateway||!this.session||!("walletPublicKey"in this.session))throw new Cr("Trying to send bridge request without session");const i=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gl("Send http-bridge request:",Object.assign(Object.assign({},t),{id:i}));const a=this.session.sessionCrypto.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{id:i})),T_(this.session.walletPublicKey));this.gateway.send(a,this.session.walletPublicKey,t.method).catch(o),this.pendingRequests.set(i.toString(),r),n==null||n()}))}closeConnection(){this.closeGateways(),this.listeners=[],this.session=null,this.gateway=null}disconnect(){return On(this,void 0,void 0,function*(){return new Promise(t=>On(this,void 0,void 0,function*(){let n=!1;const r=()=>{n=!0,this.removeBridgeAndSession().then(t)};try{yield this.sendRequest({method:"disconnect",params:[]},r)}catch(o){console.debug(o),n||this.removeBridgeAndSession().then(t)}}))})}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}pause(){var t;(t=this.gateway)===null||t===void 0||t.pause(),this.pendingGateways.forEach(n=>n.pause())}unPause(){return On(this,void 0,void 0,function*(){const t=this.pendingGateways.map(n=>n.unPause());this.gateway&&t.push(this.gateway.unPause()),yield Promise.all(t)})}pendingGatewaysListener(t,n,r){return On(this,void 0,void 0,function*(){if(!this.pendingGateways.includes(t)){t.close();return}return this.closeGateways({except:t}),this.session.bridgeUrl=n,this.gateway=t,this.gateway.setErrorsListener(this.gatewayErrorsListener.bind(this)),this.gateway.setListener(this.gatewayListener.bind(this)),this.gatewayListener(r)})}gatewayListener(t){return On(this,void 0,void 0,function*(){const n=JSON.parse(this.session.sessionCrypto.decrypt(wL.decode(t.message).toUint8Array(),T_(t.from)));if(gl("Wallet message received:",n),!("event"in n)){const o=n.id.toString(),i=this.pendingRequests.get(o);if(!i){gl(`Response id ${o} doesn't match any request's id`);return}i(n),this.pendingRequests.delete(o);return}if(n.id!==void 0){const o=yield this.connectionStorage.getLastWalletEventId();if(o!==void 0&&n.id<=o){zC(`Received event id (=${n.id}) must be greater than stored last wallet event id (=${o}) `);return}n.event!=="connect"&&(yield this.connectionStorage.storeLastWalletEventId(n.id))}const r=this.listeners;n.event==="connect"&&(yield this.updateSession(n,t.from)),n.event==="disconnect"&&(yield this.removeBridgeAndSession()),r.forEach(o=>o(n))})}gatewayErrorsListener(t){return On(this,void 0,void 0,function*(){throw new Cr(`Bridge error ${JSON.stringify(t)}`)})}updateSession(t,n){return On(this,void 0,void 0,function*(){this.session=Object.assign(Object.assign({},this.session),{walletPublicKey:n});const r=t.payload.items.find(i=>i.name==="ton_addr"),o=Object.assign(Object.assign({},t),{payload:Object.assign(Object.assign({},t.payload),{items:[r]})});yield this.connectionStorage.storeConnection({type:"http",session:this.session,lastWalletEventId:t.id,connectEvent:o,nextRpcRequestId:0})})}removeBridgeAndSession(){return On(this,void 0,void 0,function*(){this.closeConnection(),yield this.connectionStorage.removeConnection()})}generateUniversalLink(t,n){const r=new URL(t);return r.searchParams.append("v",xue.toString()),r.searchParams.append("id",this.session.sessionCrypto.sessionId),r.searchParams.append("r",JSON.stringify(n)),r.toString()}closeGateways(t){var n;(n=this.gateway)===null||n===void 0||n.close(),this.pendingGateways.filter(r=>r!==(t==null?void 0:t.except)).forEach(r=>r.close()),this.pendingGateways=[]}}function CH(e,t){return Cue(e,[t])}function Cue(e,t){return!e||typeof e!="object"?!1:t.every(n=>n in e)}function fgt(e){try{return!CH(e,"tonconnect")||!CH(e.tonconnect,"walletInfo")?!1:Cue(e.tonconnect.walletInfo,["name","image","about_url"])}catch{return!1}}function EL(){if(!(typeof window>"u"))return window}function pgt(){if(!(typeof document>"u"))return document}function hgt(){var e;const t=(e=EL())===null||e===void 0?void 0:e.location.origin;return t?t+"/tonconnect-manifest.json":""}class es{constructor(t,n){this.injectedWalletKey=n,this.type="injected",this.unsubscribeCallback=null,this.listenSubscriptions=!1,this.listeners=[];const r=es.window;if(!es.isWindowContainsWallet(r,n))throw new CL;this.connectionStorage=new Pw(t),this.injectedWallet=r[n].tonconnect}static fromStorage(t){return On(this,void 0,void 0,function*(){const r=yield new Pw(t).getInjectedConnection();return new es(t,r.jsBridgeKey)})}static isWalletInjected(t){return es.isWindowContainsWallet(this.window,t)}static isInsideWalletBrowser(t){return es.isWindowContainsWallet(this.window,t)?this.window[t].tonconnect.isWalletBrowser:!1}static getCurrentlyInjectedWallets(){return this.window?Object.entries(this.window).filter(([n,r])=>fgt(r)).map(([n,r])=>({name:r.tonconnect.walletInfo.name,aboutUrl:r.tonconnect.walletInfo.about_url,imageUrl:r.tonconnect.walletInfo.image,tondns:r.tonconnect.walletInfo.tondns,jsBridgeKey:n,injected:!0,embedded:r.tonconnect.isWalletBrowser})):[]}static isWindowContainsWallet(t,n){return!!t&&n in t&&typeof t[n]=="object"&&"tonconnect"in t[n]}connect(t){this._connect(xue,t)}restoreConnection(){return On(this,void 0,void 0,function*(){try{gl("Injected Provider restoring connection...");const t=yield this.injectedWallet.restoreConnection();gl("Injected Provider restoring connection response",t),t.event==="connect"?(this.makeSubscriptions(),this.listeners.forEach(n=>n(t))):yield this.connectionStorage.removeConnection()}catch(t){yield this.connectionStorage.removeConnection(),console.error(t)}})}closeConnection(){this.listenSubscriptions&&this.injectedWallet.disconnect(),this.closeAllListeners()}disconnect(){return On(this,void 0,void 0,function*(){return new Promise(t=>{const n=()=>{this.closeAllListeners(),this.connectionStorage.removeConnection().then(t)};try{this.injectedWallet.disconnect(),n()}catch(r){gl(r),this.sendRequest({method:"disconnect",params:[]},n)}})})}closeAllListeners(){var t;this.listenSubscriptions=!1,this.listeners=[],(t=this.unsubscribeCallback)===null||t===void 0||t.call(this)}listen(t){return this.listeners.push(t),()=>this.listeners=this.listeners.filter(n=>n!==t)}sendRequest(t,n){return On(this,void 0,void 0,function*(){const r=(yield this.connectionStorage.getNextRpcRequestId()).toString();yield this.connectionStorage.increaseNextRpcRequestId(),gl("Send injected-bridge request:",Object.assign(Object.assign({},t),{id:r}));const o=this.injectedWallet.send(Object.assign(Object.assign({},t),{id:r}));return o.then(i=>gl("Wallet message received:",i)),n==null||n(),o})}_connect(t,n){return On(this,void 0,void 0,function*(){try{gl(`Injected Provider connect request: protocolVersion: ${t}, message:`,n);const r=yield this.injectedWallet.connect(t,n);gl("Injected Provider connect response:",r),r.event==="connect"&&(yield this.updateSession(),this.makeSubscriptions()),this.listeners.forEach(o=>o(r))}catch(r){gl(r);const o={event:"connect_error",payload:{code:0,message:r==null?void 0:r.toString()}};this.listeners.forEach(i=>i(o))}})}makeSubscriptions(){this.listenSubscriptions=!0,this.unsubscribeCallback=this.injectedWallet.listen(t=>{gl("Wallet message received:",t),this.listenSubscriptions&&this.listeners.forEach(n=>n(t)),t.event==="disconnect"&&this.disconnect()})}updateSession(){return this.connectionStorage.storeConnection({type:"injected",jsBridgeKey:this.injectedWalletKey,nextRpcRequestId:0})}}es.window=EL();class ggt{constructor(){const t=EL();if(!(t!=null&&t.localStorage))throw new AL;this.window=t}getItem(t){return On(this,void 0,void 0,function*(){return Promise.resolve(this.window.localStorage.getItem(t))})}removeItem(t){return On(this,void 0,void 0,function*(){return this.window.localStorage.removeItem(t),Promise.resolve()})}setItem(t,n){return this.window.localStorage.setItem(t,n),Promise.resolve()}}function RI(e){return mgt(e)&&e.injected}function Aue(e){return RI(e)&&e.embedded}function mgt(e){return"jsBridgeKey"in e}function TL(e){return"bridgeUrl"in e}const ygt=[{name:"Tonkeeper",image:"https://tonkeeper.com/assets/tonconnect-icon.png",tondns:"tonkeeper.ton",about_url:"https://tonkeeper.com",universal_url:"https://app.tonkeeper.com/ton-connect",bridge:[{type:"sse",url:"https://bridge.tonapi.io/bridge"},{type:"js",key:"tonkeeper"}]},{name:"OpenMask",image:"https://raw.githubusercontent.com/OpenProduct/openmask-extension/main/public/openmask-logo-288.png",about_url:"https://www.openmask.app/",bridge:[{type:"js",key:"openmask"}]},{name:"MyTonWallet",image:"https://mytonwallet.io/icon-256.png",about_url:"https://mytonwallet.io",bridge:[{type:"js",key:"mytonwallet"}]}];class h5{constructor(t){this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null,this.walletsListSource="https://raw.githubusercontent.com/ton-blockchain/wallets-list/main/wallets.json",t!=null&&t.walletsListSource&&(this.walletsListSource=t.walletsListSource),t!=null&&t.cacheTTLMs&&(this.cacheTTLMs=t.cacheTTLMs)}getWallets(){return On(this,void 0,void 0,function*(){return this.cacheTTLMs&&this.walletsListCacheCreationTimestamp&&Date.now()>this.walletsListCacheCreationTimestamp+this.cacheTTLMs&&(this.walletsListCache=null),this.walletsListCache||(this.walletsListCache=this.fetchWalletsList(),this.walletsListCache.then(()=>{this.walletsListCacheCreationTimestamp=Date.now()}).catch(()=>{this.walletsListCache=null,this.walletsListCacheCreationTimestamp=null})),this.walletsListCache})}getEmbeddedWallet(){return On(this,void 0,void 0,function*(){const n=(yield this.getWallets()).filter(Aue);return n.length!==1?null:n[0]})}fetchWalletsList(){return On(this,void 0,void 0,function*(){let t=[];try{if(t=yield(yield fetch(this.walletsListSource)).json(),!Array.isArray(t))throw new _L("Wrong wallets list format, wallets list must be an array.");const o=t.filter(i=>!this.isCorrectWalletConfigDTO(i));o.length&&(zC(`Wallet(s) ${o.map(i=>i.name).join(", ")} config format is wrong. They were removed from the wallets list.`),t=t.filter(i=>this.isCorrectWalletConfigDTO(i)))}catch(r){zC(r),t=ygt}let n=[];try{n=es.getCurrentlyInjectedWallets()}catch(r){zC(r)}return this.mergeWalletsLists(this.walletConfigDTOListToWalletConfigList(t),n)})}walletConfigDTOListToWalletConfigList(t){return t.map(n=>{const r={name:n.name,imageUrl:n.image,aboutUrl:n.about_url,tondns:n.tondns};return n.bridge.forEach(o=>{if(o.type==="sse"&&(r.bridgeUrl=o.url,r.universalLink=n.universal_url,r.deepLink=n.deepLink),o.type==="js"){const i=o.key;r.jsBridgeKey=i,r.injected=es.isWalletInjected(i),r.embedded=es.isInsideWalletBrowser(i)}}),r})}mergeWalletsLists(t,n){return[...new Set(t.concat(n).map(o=>o.name)).values()].map(o=>{const i=t.find(s=>s.name===o),a=n.find(s=>s.name===o);return Object.assign(Object.assign({},i&&Object.assign({},i)),a&&Object.assign({},a))})}isCorrectWalletConfigDTO(t){if(!t||typeof t!="object")return!1;const n="name"in t,r="image"in t,o="about_url"in t;if(!n||!r||!o||!("bridge"in t)||!Array.isArray(t.bridge)||!t.bridge.length)return!1;const i=t.bridge;if(i.some(l=>!l||typeof l!="object"||!("type"in l)))return!1;const a=i.find(l=>l.type==="sse");if(a&&(!("url"in a)||!a.url||!t.universal_url))return!1;const s=i.find(l=>l.type==="js");return!(s&&(!("key"in s)||!s.key))}}class M_ extends Cr{get info(){return"Wallet doesn't support requested feature method."}constructor(...t){super(...t),Object.setPrototypeOf(this,M_.prototype)}}function vgt(e,t){const n=e.includes("SendTransaction"),r=e.find(o=>o&&typeof o=="object"&&o.name==="SendTransaction");if(!n&&!r)throw new M_("Wallet doesn't support SendTransaction feature.");if(r&&r.maxMessages!==void 0){if(r.maxMessagesn(this._wallet))}getWallets(){return this.walletsList.getWallets()}onStatusChange(t,n){return this.statusChangeSubscriptions.push(t),n&&this.statusChangeErrorSubscriptions.push(n),()=>{this.statusChangeSubscriptions=this.statusChangeSubscriptions.filter(r=>r!==t),n&&(this.statusChangeErrorSubscriptions=this.statusChangeErrorSubscriptions.filter(r=>r!==n))}}connect(t,n){var r;if(this.connected)throw new xL;return(r=this.provider)===null||r===void 0||r.closeConnection(),this.provider=this.createProvider(t),this.provider.connect(this.createConnectRequest(n))}restoreConnection(){return On(this,void 0,void 0,function*(){const[t,n]=yield Promise.all([this.bridgeConnectionStorage.storedConnectionType(),this.walletsList.getEmbeddedWallet()]);try{switch(t){case"http":this.provider=yield P_.fromStorage(this.dappSettings.storage);break;case"injected":this.provider=yield es.fromStorage(this.dappSettings.storage);break;default:if(n)this.provider=yield this.createProvider(n);else return}}catch{yield this.bridgeConnectionStorage.removeConnection(),this.provider=null;return}return this.provider.listen(this.walletEventsListener.bind(this)),this.provider.restoreConnection()})}sendTransaction(t){return On(this,void 0,void 0,function*(){this.checkConnection(),vgt(this.wallet.device.features,{requiredMessagesNumber:t.messages.length});const{validUntil:n}=t,r=rgt(t,["validUntil"]),o=t.from||this.account.address,i=t.network||this.account.chain,a=yield this.provider.sendRequest(eC.convertToRpcRequest(Object.assign(Object.assign({},r),{valid_until:n,from:o,network:i})));return eC.isError(a)?eC.parseAndThrowError(a):eC.convertFromRpcResponse(a)})}disconnect(){return On(this,void 0,void 0,function*(){if(!this.connected)throw new k_;yield this.provider.disconnect(),this.onWalletDisconnected()})}pauseConnection(){var t;((t=this.provider)===null||t===void 0?void 0:t.type)==="http"&&this.provider.pause()}unPauseConnection(){var t;return((t=this.provider)===null||t===void 0?void 0:t.type)!=="http"?Promise.resolve():this.provider.unPause()}addWindowFocusAndBlurSubscriptions(){const t=pgt();if(t)try{t.addEventListener("visibilitychange",()=>{t.hidden?this.pauseConnection():this.unPauseConnection()})}catch(n){console.error("Cannot subscribe to the document.visibilitychange: ",n)}}createProvider(t){let n;return!Array.isArray(t)&&ogt(t)?n=new es(this.dappSettings.storage,t.jsBridgeKey):n=new P_(this.dappSettings.storage,t),n.listen(this.walletEventsListener.bind(this)),n}walletEventsListener(t){switch(t.event){case"connect":this.onWalletConnected(t.payload);break;case"connect_error":this.onWalletConnectError(t.payload);break;case"disconnect":this.onWalletDisconnected()}}onWalletConnected(t){const n=t.items.find(i=>i.name==="ton_addr"),r=t.items.find(i=>i.name==="ton_proof");if(!n)throw new Cr("ton_addr connection item was not found");const o={device:t.device,provider:this.provider.type,account:{address:n.address,chain:n.network,walletStateInit:n.walletStateInit,publicKey:n.publicKey}};r&&(o.connectItems={tonProof:r}),this.wallet=o}onWalletConnectError(t){const n=agt.parseError(t);if(this.statusChangeErrorSubscriptions.forEach(r=>r(n)),console.debug(n),n instanceof II||n instanceof kI)throw console.error(n),n}onWalletDisconnected(){this.wallet=null}checkConnection(){if(!this.connected)throw new k_}createConnectRequest(t){const n=[{name:"ton_addr"}];return t!=null&&t.tonProof&&n.push({name:"ton_proof",payload:t.tonProof}),{manifestUrl:this.dappSettings.manifestUrl,items:n}}}Pg.walletsList=new h5;Pg.isWalletInjected=e=>es.isWalletInjected(e);Pg.isInsideWalletBrowser=e=>es.isInsideWalletBrowser(e);const bgt=17,wgt=128;function kL(e,t=!1){const{wc:n,hex:r}=Sgt(e);let o=bgt;t&&(o|=wgt);const i=new Int8Array(34);i[0]=o,i[1]=n,i.set(r,2);const a=new Uint8Array(36);return a.set(i),a.set(xgt(i),34),wL.encode(a).replace(/\+/g,"-").replace(/\//g,"_")}function Sgt(e){if(!e.includes(":"))throw new u0(`Wrong address ${e}. Address must include ":".`);const t=e.split(":");if(t.length!==2)throw new u0(`Wrong address ${e}. Address must include ":" only once.`);const n=parseInt(t[0]);if(n!==0&&n!==-1)throw new u0(`Wrong address ${e}. WC must be eq 0 or -1, but ${n} received.`);const r=t[1];if((r==null?void 0:r.length)!==64)throw new u0(`Wrong address ${e}. Hex part must be 64bytes length, but ${r==null?void 0:r.length} received.`);return{wc:n,hex:Cgt(r)}}function xgt(e){let n=0;const r=new Uint8Array(e.length+2);r.set(e);for(let o of r){let i=128;for(;i>0;)n<<=1,o&i&&(n+=1),i>>=1,n>65535&&(n&=65535,n^=4129)}return new Uint8Array([Math.floor(n/256),n%256])}const g5={};for(let e=0;e<=255;e++){let t=e.toString(16);t.length<2&&(t="0"+t),g5[t]=e}function Cgt(e){e=e.toLowerCase();const t=e.length;if(t%2!==0)throw new I_("Hex string must have length a multiple of 2: "+e);const n=t/2,r=new Uint8Array(n);for(let o=0;ot in e?Fgt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_o=(e,t)=>{for(var n in t||(t={}))jgt.call(t,n)&&m5(e,n,t[n]);if(_H)for(var n of _H(t))Wgt.call(t,n)&&m5(e,n,t[n]);return e},hp=(e,t)=>Ngt(e,Ugt(t)),_s=(e,t,n)=>(m5(e,typeof t!="symbol"?t+"":t,n),n),ml=(e,t,n)=>new Promise((r,o)=>{var i=l=>{try{s(n.next(l))}catch(u){o(u)}},a=l=>{try{s(n.throw(l))}catch(u){o(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(i,a);s((n=n.apply(e,t)).next())});const yo={};function zgt(e){yo.context=e}const Vgt=(e,t)=>e===t,wu=Symbol("solid-proxy"),y5=Symbol("solid-track"),O_={equals:Vgt};let Eue=Oue;const Zd=1,R_=2,Tue={owned:null,cleanups:null,context:null,owner:null},uM={};var di=null;let Nh=null,Eo=null,da=null,Ad=null,IL=0;function Tb(e,t){const n=Eo,r=di,o=e.length===0,i=o?Tue:{owned:null,cleanups:null,context:null,owner:t===void 0?r:t},a=o?e:()=>e(()=>Vi(()=>LI(i)));di=i,Eo=null;try{return gp(a,!0)}finally{Eo=n,di=r}}function Xn(e,t){t=t?Object.assign({},O_,t):O_;const n={value:e,observers:null,observerSlots:null,comparator:t.equals||void 0},r=o=>(typeof o=="function"&&(o=o(n.value)),Mue(n,o));return[Pue.bind(n),r]}function D_(e,t,n){const r=$I(e,t,!0,Zd);gv(r)}function Lo(e,t,n){const r=$I(e,t,!1,Zd);gv(r)}function Pl(e,t,n){Eue=Xgt;const r=$I(e,t,!1,Zd);r.user=!0,Ad?Ad.push(r):gv(r)}function Bn(e,t,n){n=n?Object.assign({},O_,n):O_;const r=$I(e,t,!0,0);return r.observers=null,r.observerSlots=null,r.comparator=n.equals||void 0,gv(r),Pue.bind(r)}function Hgt(e,t,n){let r,o,i;arguments.length===2&&typeof t=="object"||arguments.length===1?(r=!0,o=e,i=t||{}):(r=e,o=t,i=n||{});let a=null,s=uM,l=null,u=!1,c="initialValue"in i,f=typeof r=="function"&&Bn(r);const p=new Set,[g,m]=(i.storage||Xn)(i.initialValue),[y,v]=Xn(void 0),[x,w]=Xn(void 0,{equals:!1}),[I,_]=Xn(c?"ready":"unresolved");if(yo.context){l=`${yo.context.id}${yo.context.count++}`;let T;i.ssrLoadFrom==="initial"?s=i.initialValue:yo.load&&(T=yo.load(l))&&(s=T[0])}function R(T,C,O,$){return a===T&&(a=null,c=!0,(T===s||C===s)&&i.onHydrated&&queueMicrotask(()=>i.onHydrated($,{value:C})),s=uM,U(C,O)),C}function U(T,C){gp(()=>{C===void 0&&m(()=>T),_(C!==void 0?"errored":"ready"),v(C);for(const O of p.keys())O.decrement();p.clear()},!1)}function D(){const T=Ygt,C=g(),O=y();if(O!==void 0&&!a)throw O;return Eo&&!Eo.user&&T&&D_(()=>{x(),a&&(T.resolved||p.has(T)||(T.increment(),p.add(T)))}),C}function b(T=!0){if(T!==!1&&u)return;u=!1;const C=f?f():r;if(C==null||C===!1){R(a,Vi(g));return}const O=s!==uM?s:Vi(()=>o(C,{value:g(),refetching:T}));return typeof O!="object"||!(O&&"then"in O)?(R(a,O,void 0,C),O):(a=O,u=!0,queueMicrotask(()=>u=!1),gp(()=>{_(c?"refreshing":"pending"),w()},!1),O.then($=>R(O,$,void 0,C),$=>R(O,void 0,Due($),C)))}return Object.defineProperties(D,{state:{get:()=>I()},error:{get:()=>y()},loading:{get(){const T=I();return T==="pending"||T==="refreshing"}},latest:{get(){if(!c)return D();const T=y();if(T&&!a)throw T;return g()}}}),f?D_(()=>b(!1)):b(!1),[D,{refetch:b,mutate:m}]}function kue(e){return gp(e,!1)}function Vi(e){if(Eo===null)return e();const t=Eo;Eo=null;try{return e()}finally{Eo=t}}function qgt(e,t,n){const r=Array.isArray(e);let o,i=n&&n.defer;return a=>{let s;if(r){s=Array(e.length);for(let u=0;ut(s,o,a));return o=s,l}}function Qgt(e){Pl(()=>Vi(e))}function Fd(e){return di===null||(di.cleanups===null?di.cleanups=[e]:di.cleanups.push(e)),e}function Iue(){return Eo}function Kgt(){return di}function DI(e,t){const n=Symbol("context");return{id:n,Provider:Zgt(n),defaultValue:e}}function Su(e){let t;return(t=$ue(di,e.id))!==void 0?t:e.defaultValue}function BI(e){const t=Bn(e),n=Bn(()=>v5(t()));return n.toArray=()=>{const r=n();return Array.isArray(r)?r:r!=null?[r]:[]},n}let Ygt;function Pue(){const e=Nh;if(this.sources&&(this.state||e))if(this.state===Zd||e)gv(this);else{const t=da;da=null,gp(()=>$_(this),!1),da=t}if(Eo){const t=this.observers?this.observers.length:0;Eo.sources?(Eo.sources.push(this),Eo.sourceSlots.push(t)):(Eo.sources=[this],Eo.sourceSlots=[t]),this.observers?(this.observers.push(Eo),this.observerSlots.push(Eo.sources.length-1)):(this.observers=[Eo],this.observerSlots=[Eo.sources.length-1])}return this.value}function Mue(e,t,n){let r=e.value;return(!e.comparator||!e.comparator(r,t))&&(e.value=t,e.observers&&e.observers.length&&gp(()=>{for(let o=0;o1e6)throw da=[],new Error},!1)),t}function gv(e){if(!e.fn)return;LI(e);const t=di,n=Eo,r=IL;Eo=di=e,Ggt(e,e.value,r),Eo=n,di=t}function Ggt(e,t,n){let r;try{r=e.fn(t)}catch(o){e.pure&&(e.state=Zd,e.owned&&e.owned.forEach(LI),e.owned=null),Bue(o)}(!e.updatedAt||e.updatedAt<=n)&&(e.updatedAt!=null&&"observers"in e?Mue(e,r):e.value=r,e.updatedAt=n)}function $I(e,t,n,r=Zd,o){const i={fn:e,state:r,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:t,owner:di,context:null,pure:n};return di===null||di!==Tue&&(di.owned?di.owned.push(i):di.owned=[i]),i}function B_(e){const t=Nh;if(e.state===0||t)return;if(e.state===R_||t)return $_(e);if(e.suspense&&Vi(e.suspense.inFallback))return e.suspense.effects.push(e);const n=[e];for(;(e=e.owner)&&(!e.updatedAt||e.updatedAt=0;r--)if(e=n[r],e.state===Zd||t)gv(e);else if(e.state===R_||t){const o=da;da=null,gp(()=>$_(e,n[0]),!1),da=o}}function gp(e,t){if(da)return e();let n=!1;t||(da=[]),Ad?n=!0:Ad=[],IL++;try{const r=e();return Jgt(n),r}catch(r){n||(Ad=null),da=null,Bue(r)}}function Jgt(e){if(da&&(Oue(da),da=null),e)return;const t=Ad;Ad=null,t.length&&gp(()=>Eue(t),!1)}function Oue(e){for(let t=0;to=Vi(()=>(di.context={[e]:r.value},BI(()=>r.children))),void 0),o}}const emt=Symbol("fallback");function EH(e){for(let t=0;t1?[]:null;return Fd(()=>EH(i)),()=>{let l=e()||[],u,c;return l[y5],Vi(()=>{let p=l.length,g,m,y,v,x,w,I,_,R;if(p===0)a!==0&&(EH(i),i=[],r=[],o=[],a=0,s&&(s=[])),n.fallback&&(r=[emt],o[0]=Tb(U=>(i[0]=U,n.fallback())),a=1);else if(a===0){for(o=new Array(p),c=0;c=w&&_>=w&&r[I]===l[_];I--,_--)y[_]=o[I],v[_]=i[I],s&&(x[_]=s[I]);for(g=new Map,m=new Array(_+1),c=_;c>=w;c--)R=l[c],u=g.get(R),m[c]=u===void 0?-1:u,g.set(R,c);for(u=w;u<=I;u++)R=r[u],c=g.get(R),c!==void 0&&c!==-1?(y[c]=o[u],v[c]=i[u],s&&(x[c]=s[u]),c=m[c],g.set(R,c)):i[u]();for(c=w;ce(t||{}))}function tC(){return!0}const b5={get(e,t,n){return t===wu?n:e.get(t)},has(e,t){return t===wu?!0:e.has(t)},set:tC,deleteProperty:tC,getOwnPropertyDescriptor(e,t){return{configurable:!0,enumerable:!0,get(){return e.get(t)},set:tC,deleteProperty:tC}},ownKeys(e){return e.keys()}};function cM(e){return(e=typeof e=="function"?e():e)?e:{}}function fc(...e){let t=!1;for(let r=0;r=0;o--){const i=cM(e[o])[r];if(i!==void 0)return i}},has(r){for(let o=e.length-1;o>=0;o--)if(r in cM(e[o]))return!0;return!1},keys(){const r=[];for(let o=0;o=0;r--)if(e[r]){const o=Object.getOwnPropertyDescriptors(e[r]);for(const i in o)i in n||Object.defineProperty(n,i,{enumerable:!0,get(){for(let a=e.length-1;a>=0;a--){const s=(e[a]||{})[i];if(s!==void 0)return s}}})}return n}function PL(e,...t){const n=new Set(t.flat());if(wu in e){const o=t.map(i=>new Proxy({get(a){return i.includes(a)?e[a]:void 0},has(a){return i.includes(a)&&a in e},keys(){return i.filter(a=>a in e)}},b5));return o.push(new Proxy({get(i){return n.has(i)?void 0:e[i]},has(i){return n.has(i)?!1:i in e},keys(){return Object.keys(e).filter(i=>!n.has(i))}},b5)),o}const r=Object.getOwnPropertyDescriptors(e);return t.push(Object.keys(r).filter(o=>!n.has(o))),t.map(o=>{const i={};for(let a=0;ae.fallback};return Bn(tmt(()=>e.each,e.children,t||void 0))}function Rr(e){let t=!1;const n=e.keyed,r=Bn(()=>e.when,void 0,{equals:(o,i)=>t?o===i:!o==!i});return Bn(()=>{const o=r();if(o){const i=e.children,a=typeof i=="function"&&i.length>0;return t=n||a,a?Vi(()=>i(o)):i}return e.fallback},void 0,void 0)}function NI(e){let t=!1,n=!1;const r=(a,s)=>a[0]===s[0]&&(t?a[1]===s[1]:!a[1]==!s[1])&&a[2]===s[2],o=BI(()=>e.children),i=Bn(()=>{let a=o();Array.isArray(a)||(a=[a]);for(let s=0;s{const[a,s,l]=i();if(a<0)return e.fallback;const u=l.children,c=typeof u=="function"&&u.length>0;return t=n||c,c?Vi(()=>u(s)):u},void 0,void 0)}function pc(e){return e}const nmt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected"],rmt=new Set(["className","value","readOnly","formNoValidate","isMap","noModule","playsInline",...nmt]),omt=new Set(["innerHTML","textContent","innerText","children"]),imt=Object.assign(Object.create(null),{className:"class",htmlFor:"for"}),TH=Object.assign(Object.create(null),{class:"className",formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly"}),amt=new Set(["beforeinput","click","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"]),smt=new Set(["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tref","tspan","use","view","vkern"]),lmt={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"};function umt(e,t,n){let r=n.length,o=t.length,i=r,a=0,s=0,l=t[o-1].nextSibling,u=null;for(;ac-s){const m=t[a];for(;s{o=i,t===document?e():Ti(t,e(),t.firstChild?null:void 0,n)},r.owner),()=>{o(),t.textContent=""}}function Jo(e,t,n){if(typeof window>"u")return null;const r=document.createElement("template");r.innerHTML=e;let o=r.content.firstChild;return n&&(o=o.firstChild),o}function dmt(e,t=window.document){const n=t[kH]||(t[kH]=new Set);for(let r=0,o=e.length;ro.call(e,n[1],i))}else e.addEventListener(t,n)}function hmt(e,t,n={}){const r=Object.keys(t||{}),o=Object.keys(n);let i,a;for(i=0,a=o.length;io.children=hy(e,t.children,o.children)),Lo(()=>t.ref&&t.ref(e)),Lo(()=>mmt(e,t,n,!0,o,!0)),o}function L_(e,t,n){return Vi(()=>e(t,n))}function Ti(e,t,n,r){if(n!==void 0&&!r&&(r=[]),typeof t!="function")return hy(e,t,r,n);Lo(o=>hy(e,t(),o,n),r)}function mmt(e,t,n,r,o={},i=!1){t||(t={});for(const a in o)if(!(a in t)){if(a==="children")continue;o[a]=PH(e,a,null,o[a],n,i)}for(const a in t){if(a==="children"){r||hy(e,t.children);continue}const s=t[a];o[a]=PH(e,a,s,o[a],n,i)}}function ymt(e){let t,n;return!yo.context||!(t=yo.registry.get(n=wmt()))?e.cloneNode(!0):(yo.completed&&yo.completed.add(t),yo.registry.delete(n),t)}function vmt(e){return e.toLowerCase().replace(/-([a-z])/g,(t,n)=>n.toUpperCase())}function IH(e,t,n){const r=t.trim().split(/\s+/);for(let o=0,i=r.length;o-1&&lmt[t.split(":")[0]];u?fmt(e,u,t,n):io(e,imt[t]||t,n)}return n}function bmt(e){const t=`$$${e.type}`;let n=e.composedPath&&e.composedPath()[0]||e.target;for(e.target!==n&&Object.defineProperty(e,"target",{configurable:!0,value:n}),Object.defineProperty(e,"currentTarget",{configurable:!0,get(){return n||document}}),yo.registry&&!yo.done&&(yo.done=!0,document.querySelectorAll("[id^=pl-]").forEach(r=>{for(;r&&r.nodeType!==8&&r.nodeValue!=="pl-"+e;){let o=r.nextSibling;r.remove(),r=o}r&&r.remove()}));n;){const r=n[t];if(r&&!n.disabled){const o=n[`${t}Data`];if(o!==void 0?r.call(n,o,e):r.call(n,e),e.cancelBubble)return}n=n._$host||n.parentNode||n.host}}function hy(e,t,n,r,o){for(yo.context&&!n&&(n=[...e.childNodes]);typeof n=="function";)n=n();if(t===n)return n;const i=typeof t,a=r!==void 0;if(e=a&&n[0]&&n[0].parentNode||e,i==="string"||i==="number"){if(yo.context)return n;if(i==="number"&&(t=t.toString()),a){let s=n[0];s&&s.nodeType===3?s.data=t:s=document.createTextNode(t),n=Nm(e,n,r,s)}else n!==""&&typeof n=="string"?n=e.firstChild.data=t:n=e.textContent=t}else if(t==null||i==="boolean"){if(yo.context)return n;n=Nm(e,n,r)}else{if(i==="function")return Lo(()=>{let s=t();for(;typeof s=="function";)s=s();n=hy(e,s,n,r)}),()=>n;if(Array.isArray(t)){const s=[],l=n&&Array.isArray(n);if(w5(s,t,n,o))return Lo(()=>n=hy(e,s,n,r,!0)),()=>n;if(yo.context){if(!s.length)return n;for(let u=0;u=0;a--){const s=t[a];if(o!==s){const l=s.parentNode===e;!i&&!a?l?e.replaceChild(o,s):e.insertBefore(o,n):l&&s.remove()}else i=!0}}else e.insertBefore(o,n);return[o]}function wmt(){const e=yo.context;return`${e.id}${e.count++}`}const Smt="http://www.w3.org/2000/svg";function Fue(e,t=!1){return t?document.createElementNS(Smt,e):document.createElement(e)}function Nue(e){const{useShadow:t}=e,n=document.createTextNode(""),r=e.mount||document.body;function o(){if(yo.context){const[i,a]=Xn(!1);return queueMicrotask(()=>a(!0)),()=>i()&&e.children}else return()=>e.children}if(r instanceof HTMLHeadElement){const[i,a]=Xn(!1),s=()=>a(!0);Tb(l=>Ti(r,()=>i()?l():o()(),null)),Fd(()=>{yo.context?queueMicrotask(s):s()})}else{const i=Fue(e.isSVG?"g":"div",e.isSVG),a=t&&i.attachShadow?i.attachShadow({mode:"open"}):i;Object.defineProperty(i,"_$host",{get(){return n.parentNode},configurable:!0}),Ti(a,o()),r.appendChild(i),e.ref&&e.ref(i),Fd(()=>r.removeChild(i))}return n}function OL(e){const[t,n]=PL(e,["component"]),r=Bn(()=>t.component);return Bn(()=>{const o=r();switch(typeof o){case"function":return Vi(()=>o(n));case"string":const i=smt.has(o),a=yo.context?ymt():Fue(o,i);return Lue(a,n,i),a}})}const[xmt,S5]=Xn(!1),[Cmt,uu]=Xn(null),[qm,c0]=Xn(null);let Amt={data:""},_mt=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Amt,Emt=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Tmt=/\/\*[^]*?\*\/| +/g,OH=/\n+/g,xh=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?xh(a,i):i+"{"+xh(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=xh(a,t?t.replace(/([^,])+/g,s=>i.replace(/(^:.*)|([^,])+/g,l=>/&/.test(l)?l.replace(/&/g,s):s?s+" "+l:l)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=xh.p?xh.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Zc={},Uue=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Uue(e[n]);return t}return e},kmt=(e,t,n,r,o)=>{let i=Uue(e),a=Zc[i]||(Zc[i]=(l=>{let u=0,c=11;for(;u>>0;return"go"+c})(i));if(!Zc[a]){let l=i!==e?e:(u=>{let c,f,p=[{}];for(;c=Emt.exec(u.replace(Tmt,""));)c[4]?p.shift():c[3]?(f=c[3].replace(OH," ").trim(),p.unshift(p[0][f]=p[0][f]||{})):p[0][c[1]]=c[2].replace(OH," ").trim();return p[0]})(e);Zc[a]=xh(o?{["@keyframes "+a]:l}:l,n?"":"."+a)}let s=n&&Zc.g?Zc.g:null;return n&&(Zc.g=Zc[a]),((l,u,c,f)=>{f?u.data=u.data.replace(f,l):u.data.indexOf(l)===-1&&(u.data=c?l+u.data:u.data+l)})(Zc[a],t,r,s),a},Imt=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let s=a(n),l=s&&s.props&&s.props.className||/^go/.test(s)&&s;a=l?"."+l:s&&typeof s=="object"?s.props?"":xh(s,""):s===!1?"":s}return r+o+(a??"")},"");function Nd(e){let t=this||{},n=e.call?e(t.p):e;return kmt(n.unshift?n.raw?Imt(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,_mt(t.target),t.g,t.o,t.k)}Nd.bind({g:1});let Pmt=Nd.bind({k:1});const RL=DI();function Mmt(e){return ke(RL.Provider,{value:e.theme,get children(){return e.children}})}function Xs(){return Su(RL)}function jue(e){let t=this||{};return(...n)=>{const r=o=>{const i=Su(RL),a=fc(o,{theme:i}),s=fc(a,{get class(){const g=a.class,m="class"in a&&/^go[0-9]+/.test(g);let y=Nd.apply({target:t.target,o:m,p:a,g:t.g},n);return[g,y].filter(Boolean).join(" ")}}),[l,u]=PL(s,["as","theme"]),c=u,f=l.as||e;let p;return typeof f=="function"?p=f(c):t.g==1?(p=document.createElement(f),Lue(p,c)):p=OL(fc({component:f},c)),p};return r.class=o=>Vi(()=>Nd.apply({target:t.target,p:o,g:t.g},n)),r}}const Tt=new Proxy(jue,{get(e,t){return e(t)}});function Omt(){const e=jue.call({g:1},"div").apply(null,arguments);return function(n){return e(n),null}}const Rmt={close:"Close",get:"GET",learnMore:"Learn more",openExtension:"Open Extension",copyLink:"Copy Link",copied:"Copied!",yourWallet:"your wallet"},Dmt={connectWallet:"Connect Wallet",dropdown:{copy:"Copy address",copied:"Address copied!",disconnect:"Disconnect"}},Bmt={confirm:{header:"Open {{ name }} to confirm the transaction."},transactionSent:{header:"Transaction sent",text:"Your transaction will be processed in a few seconds."},transactionCanceled:{header:"Transaction canceled",text:"There will be no changes to your account."}},$mt={loading:"Loading wallets",qrCode:"QR Code",wallets:"Wallets",universalQRModal:{scanQR:"Scan the code below with a camera in your TON wallet.",openWallet:"Open Wallet",openInstalledWallet:"Open Wallet",dontHave:"Explore TON wallets"},desktopSelectWalletModal:{selectWallet:"Select a wallet to connect."},mobileSelectWalletModal:{connectWallet:"Connect a Wallet",selectWallet:"$walletModal.desktopSelectWalletModal.selectWallet",installedWallet:"Installed Wallet"},qrCodeModal:{connectWith:"Connect with {{ name }}",scan:"Scan the code below.",openWallet:"Open {{ name }}",openExtension:"Open Extension",dontHave:"Don't have {{ name }}?"}},Lmt={confirmTransaction:{header:"Confirm the transaction in {{ name }}",text:"It will only take a moment."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},Fmt={common:Rmt,button:Dmt,notifications:Bmt,walletModal:$mt,actionModal:Lmt},Nmt={close:"Закрыть",get:"Скачать",learnMore:"Подробнее",openExtension:"Расширение",copyLink:"Копировать ссылку",copied:"Скопировано!",yourWallet:"вашем кошельке"},Umt={connectWallet:"Подключить кошелёк",dropdown:{copy:"Скопировать адрес",copied:"Адрес скопирован!",disconnect:"Отключить кошелёк"}},jmt={confirm:{header:"Откройте {{ name }}, чтобы подтвердить транзакцию."},transactionSent:{header:"Транзакция отправлена",text:"Ваша транзакция будет обработана через несколько секунд."},transactionCanceled:{header:"Транзакция отменена",text:"Состояние вашего счёта не изменится."}},Wmt={loading:"Список кошельков загружается",qrCode:"QR-код",wallets:"Кошельки",universalQRModal:{scanQR:"Отсканируйте код ниже с помощью камеры в вашем TON-кошельке.",openWallet:"Открыть кошелёк",openInstalledWallet:"Открыть кошелёк",dontHave:"Подробнее о TON кошельках"},desktopSelectWalletModal:{selectWallet:"Выберите кошелёк для подключения."},mobileSelectWalletModal:{connectWallet:"Подключите кошелёк",selectWallet:"$walletModal.desktopSelectWalletModal.selectWallet",installedWallet:"Открыть кошелёк"},qrCodeModal:{connectWith:"Подключиться через {{ name }}",scan:"Отсканируйте код ниже.",openWallet:"Открыть {{ name }}",openExtension:"Расширение",dontHave:"У вас нет {{ name }}?"}},zmt={confirmTransaction:{header:"Подтвердите действие в {{ name }}",text:"Это займет пару секунд."},transactionSent:"$notifications.transactionSent",transactionCanceled:"$notifications.transactionCanceled"},Vmt={common:Nmt,button:Umt,notifications:jmt,walletModal:Wmt,actionModal:zmt},Hmt={en:RH(Fmt),ru:RH(Vmt)};function RH(e){const t="$",n=r=>{Object.entries(r).forEach(([o,i])=>{if(typeof i=="object"&&i)return n(i);if(typeof i=="string"){if(i[0]===t){const a=i.slice(1).split(".");let s=e;a.forEach(l=>{if(l in s)s=s[l];else throw new Error(`Cannot parse translations: there is no property ${l} in translation`)}),r[o]=s}i.slice(0,2)===`\\${t}`&&(r[o]=i.slice(1))}})};return n(e),e}const UI=DI(),x5=Symbol("store-raw"),Ow=Symbol("store-node"),qmt=Symbol("store-name");function Wue(e,t){let n=e[wu];if(!n&&(Object.defineProperty(e,wu,{value:n=new Proxy(e,Ymt)}),!Array.isArray(e))){const r=Object.keys(e),o=Object.getOwnPropertyDescriptors(e);for(let i=0,a=r.length;ie[wu][t]),n}function zue(e){if(Iue()){const t=DL(e);(t._||(t._=Vue()))()}}function Kmt(e){return zue(e),Reflect.ownKeys(e)}function Vue(e){const[t,n]=Xn(e,{equals:!1,internal:!0});return t.$=n,t}const Ymt={get(e,t,n){if(t===x5)return e;if(t===wu)return n;if(t===y5)return zue(e),n;const r=DL(e),o=r.hasOwnProperty(t);let i=o?r[t]():e[t];if(t===Ow||t==="__proto__")return i;if(!o){const a=Object.getOwnPropertyDescriptor(e,t);Iue()&&(typeof i!="function"||e.hasOwnProperty(t))&&!(a&&a.get)&&(i=C5(r,t,i)())}return F_(i)?Wue(i):i},has(e,t){return t===x5||t===wu||t===y5||t===Ow||t==="__proto__"?!0:(this.get(e,t,e),t in e)},set(){return!0},deleteProperty(){return!0},ownKeys:Kmt,getOwnPropertyDescriptor:Qmt};function N_(e,t,n,r=!1){if(!r&&e[t]===n)return;const o=e[t],i=e.length;n===void 0?delete e[t]:e[t]=n;let a=DL(e),s;(s=C5(a,t,o))&&s.$(()=>n),Array.isArray(e)&&e.length!==i&&(s=C5(a,"length",i))&&s.$(e.length),(s=a._)&&s.$()}function Hue(e,t){const n=Object.keys(t);for(let r=0;r1){r=t.shift();const a=typeof r,s=Array.isArray(e);if(Array.isArray(r)){for(let l=0;l1){X1(e[r],t,[r].concat(n));return}o=e[r],n=[r].concat(n)}let i=t[0];typeof i=="function"&&(i=i(o,n),i===o)||r===void 0&&i==null||(i=gy(i),r===void 0||F_(o)&&F_(i)&&!Array.isArray(i)?Hue(o,i):N_(e,r,i))}function BL(...[e,t]){const n=gy(e||{}),r=Array.isArray(n),o=Wue(n);function i(...a){kue(()=>{r&&a.length===1?Gmt(n,a[0]):X1(n,a)})}return[o,i]}var qr=(e=>(e.DARK="DARK",e.LIGHT="LIGHT",e))(qr||{});const que={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#31A6F5",foreground:"#FFFFFF"},accent:"#31A6F5",icon:{primary:"#0F0F0F",secondary:"#7A8999",tertiary:"#C1CAD2",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#FFFFFF",secondary:"#F1F3F5",segment:"#FFFFFF"},text:{primary:"#0F0F0F",secondary:"#6A7785"}},Jmt={constant:{black:"#000000",white:"#FFFFFF"},connectButton:{background:"#31A6F5",foreground:"#FFFFFF"},accent:"#E5E5EA",icon:{primary:"#E5E5EA",secondary:"#909099",tertiary:"#434347",success:"#29CC6A",error:"#F5A73B"},background:{primary:"#121214",secondary:"#18181A",segment:"#262629"},text:{primary:"#E5E5EA",secondary:"#7D7D85"}};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */function DH(e){return Object.prototype.toString.call(e)==="[object Object]"}function Bmt(e){var t,n;return DH(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(DH(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ip(e,t){return e?wgt(t,e,{arrayMerge:(r,o,i)=>o,isMergeableObject:Bmt}):t}const[$mt,$L]=BL({theme:qr.LIGHT,colors:Que,borderRadius:"m"}),Kue={[qr.LIGHT]:Que,[qr.DARK]:Dmt},ec={[qr.LIGHT]:void 0,[qr.DARK]:void 0};function cM(e,t){t&&(ec[qr.DARK]=ip(t[qr.DARK],ec[qr.DARK]),ec[qr.LIGHT]=ip(t[qr.LIGHT],ec[qr.LIGHT])),$L({theme:e,colors:ip(ec[e],Kue[e])})}function Lmt(e){$L({borderRadius:e})}function Fmt(e){ec[qr.DARK]=ip(e[qr.DARK],ec[qr.DARK]),ec[qr.LIGHT]=ip(e[qr.LIGHT],ec[qr.LIGHT]),$L(t=>({colors:ip(ec[t.theme],Kue[t.theme])}))}const ud="tc-root",LL="tc-disable-scroll",dM="tc-using-mouse",Nmt=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(dM)),document.body.addEventListener("keydown",t=>{t.key==="Tab"&&document.body.classList.remove(dM)});const e=gmt` + */function DH(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xmt(e){var t,n;return DH(e)===!1?!1:(t=e.constructor,t===void 0?!0:(n=t.prototype,!(DH(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}function ip(e,t){return e?Lgt(t,e,{arrayMerge:(r,o,i)=>o,isMergeableObject:Xmt}):t}const[Zmt,$L]=BL({theme:qr.LIGHT,colors:que,borderRadius:"m"}),Que={[qr.LIGHT]:que,[qr.DARK]:Jmt},tc={[qr.LIGHT]:void 0,[qr.DARK]:void 0};function dM(e,t){t&&(tc[qr.DARK]=ip(t[qr.DARK],tc[qr.DARK]),tc[qr.LIGHT]=ip(t[qr.LIGHT],tc[qr.LIGHT])),$L({theme:e,colors:ip(tc[e],Que[e])})}function e0t(e){$L({borderRadius:e})}function t0t(e){tc[qr.DARK]=ip(e[qr.DARK],tc[qr.DARK]),tc[qr.LIGHT]=ip(e[qr.LIGHT],tc[qr.LIGHT]),$L(t=>({colors:ip(tc[t.theme],Que[t.theme])}))}const ud="tc-root",LL="tc-disable-scroll",fM="tc-using-mouse",n0t=()=>{document.body.addEventListener("mousedown",()=>document.body.classList.add(fM)),document.body.addEventListener("keydown",t=>{t.key==="Tab"&&document.body.classList.remove(fM)});const e=Omt` ${ud} * { margin: 0; padding: 0; @@ -692,18 +692,18 @@ PERFORMANCE OF THIS SOFTWARE. left: 0; } - body.${dM} ${ud} *:focus { + body.${fM} ${ud} *:focus { outline: none; } -`;return ke(e,{})},Umt=Tt.div` +`;return ke(e,{})},r0t=Tt.div` background-color: ${e=>e.theme.colors.background.secondary}; -`,FL=e=>{let t;const[n,r]=Xn(null);return Pl(()=>{const o=new window.Image;return o.src=e.src,o.alt=e.alt||"",o.setAttribute("draggable","false"),e.class&&o.classList.add(e.class),o.complete?r(o):(o.addEventListener("load",()=>r(o)),()=>o.removeEventListener("load",()=>r(o)))}),[ke(Rr,{get when(){return n()},get children(){return n()}}),ke(Rr,{get when(){return!n()},get children(){return ke(Umt,{get class(){return e.class},ref(o){const i=t;typeof i=="function"?i(o):t=o}})}})]};function jmt(e){e[0]==="#"&&(e=e.slice(1));const t=parseInt(e,16),n=t>>16&255,r=t>>8&255,o=t&255;return[n,r,o].join(",")}function UI(e,t){return e[0]==="#"&&(e=jmt(e)),`rgba(${e}, ${t})`}function pc(e){return e.toString()+"px"}class Qu extends Cr{constructor(...t){super(...t),Object.setPrototypeOf(this,Qu.prototype)}}function Rw(e,t="_self"){return window.open(e,t,"noreferrer noopener")}function NL(e){Rw(e,"_blank")}function Wmt(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?qr.LIGHT:qr.DARK}function zmt(e){const t=n=>e(n.matches?qr.DARK:qr.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}function Vmt(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}function Dw(e,t){return Vmt(e,"ret",t)}function Hmt(){document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=pc(-document.documentElement.scrollTop),document.body.classList.add(LL))}function qmt(){document.body.classList.remove(LL),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto"}function Qmt(){document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart","")}function Kmt(){customElements.define(ud,class extends HTMLDivElement{},{extends:"div"})}function Ymt(e){e.forEach(t=>{const n=new window.Image;n.src=t})}function Yue(){if(typeof localStorage>"u")throw new Qu("window.localStorage is undefined. localStorage is required for TonConnectUI")}function Gue(){if(typeof window<"u")return window}function Gmt(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.slice(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}const Nf={mobile:440,tablet:1020};function d0(e){const t=Gue();if(!t)return e==="desktop";const n=t.innerWidth;switch(e){case"desktop":return n>Nf.tablet;case"tablet":return n>Nf.mobile;default:case"mobile":return n<=Nf.mobile}}function ef(e){switch(e){case"mobile":return`@media (max-width: ${Nf.mobile}px)`;case"tablet":return`@media (max-width: ${Nf.tablet}px) (min-width: ${Nf.mobile}px)`;default:case"desktop":return`@media (min-width: ${Nf.tablet}px)`}}const jI="@media (hover: none)",WI="@media not all and (hover: none)",Jmt={m:"100vh",s:"8px",none:"0"},fM={s:.02,m:.04},Xmt=Tt.button` - background-color: ${e=>e.appearance==="flat"?"transparent":UI(e.theme.colors.accent,.12)}; +`,FL=e=>{let t;const[n,r]=Xn(null);return Pl(()=>{const o=new window.Image;return o.src=e.src,o.alt=e.alt||"",o.setAttribute("draggable","false"),e.class&&o.classList.add(e.class),o.complete?r(o):(o.addEventListener("load",()=>r(o)),()=>o.removeEventListener("load",()=>r(o)))}),[ke(Rr,{get when(){return n()},get children(){return n()}}),ke(Rr,{get when(){return!n()},get children(){return ke(r0t,{get class(){return e.class},ref(o){const i=t;typeof i=="function"?i(o):t=o}})}})]};function o0t(e){e[0]==="#"&&(e=e.slice(1));const t=parseInt(e,16),n=t>>16&255,r=t>>8&255,o=t&255;return[n,r,o].join(",")}function jI(e,t){return e[0]==="#"&&(e=o0t(e)),`rgba(${e}, ${t})`}function hc(e){return e.toString()+"px"}class Ku extends Cr{constructor(...t){super(...t),Object.setPrototypeOf(this,Ku.prototype)}}function Rw(e,t="_self"){return window.open(e,t,"noreferrer noopener")}function NL(e){Rw(e,"_blank")}function i0t(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: light)").matches?qr.LIGHT:qr.DARK}function a0t(e){const t=n=>e(n.matches?qr.DARK:qr.LIGHT);return window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",t),()=>window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",t)}function s0t(e,t,n){const r=new URL(e);return r.searchParams.append(t,n),r.toString()}function Dw(e,t){return s0t(e,"ret",t)}function l0t(){document.documentElement.scrollHeight!==document.documentElement.clientHeight&&(document.body.style.top=hc(-document.documentElement.scrollTop),document.body.classList.add(LL))}function u0t(){document.body.classList.remove(LL),document.documentElement.scrollTo({top:-parseFloat(getComputedStyle(document.body).top)}),document.body.style.top="auto"}function c0t(){document.body.hasAttribute("ontouchstart")||document.body.setAttribute("ontouchstart","")}function d0t(){customElements.define(ud,class extends HTMLDivElement{},{extends:"div"})}function f0t(e){e.forEach(t=>{const n=new window.Image;n.src=t})}function Kue(){if(typeof localStorage>"u")throw new Ku("window.localStorage is undefined. localStorage is required for TonConnectUI")}function Yue(){if(typeof window<"u")return window}function p0t(){let e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.slice(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}const Nf={mobile:440,tablet:1020};function d0(e){const t=Yue();if(!t)return e==="desktop";const n=t.innerWidth;switch(e){case"desktop":return n>Nf.tablet;case"tablet":return n>Nf.mobile;default:case"mobile":return n<=Nf.mobile}}function ef(e){switch(e){case"mobile":return`@media (max-width: ${Nf.mobile}px)`;case"tablet":return`@media (max-width: ${Nf.tablet}px) (min-width: ${Nf.mobile}px)`;default:case"desktop":return`@media (min-width: ${Nf.tablet}px)`}}const WI="@media (hover: none)",zI="@media not all and (hover: none)",h0t={m:"100vh",s:"8px",none:"0"},pM={s:.02,m:.04},g0t=Tt.button` + background-color: ${e=>e.appearance==="flat"?"transparent":jI(e.theme.colors.accent,.12)}; color: ${e=>e.theme.colors.accent}; padding: ${e=>e.appearance==="flat"?"0":"9px 16px"}; border: none; - border-radius: ${e=>Jmt[e.theme.borderRadius]}; + border-radius: ${e=>h0t[e.theme.borderRadius]}; cursor: ${e=>e.disabled?"not-allowed":"pointer"}; font-size: 14px; @@ -712,25 +712,25 @@ PERFORMANCE OF THIS SOFTWARE. transition: transform 0.125s ease-in-out; - ${WI} { + ${zI} { &:hover { - transform: ${e=>e.disabled?"unset":`scale(${1+fM[e.scale]})`}; + transform: ${e=>e.disabled?"unset":`scale(${1+pM[e.scale]})`}; } } &:active { - transform: ${e=>e.disabled?"unset":`scale(${1-fM[e.scale]})`}; + transform: ${e=>e.disabled?"unset":`scale(${1-pM[e.scale]})`}; } - ${jI} { + ${WI} { &:active { - transform: ${e=>e.disabled?"unset":`scale(${1-fM[e.scale]*2})`}; + transform: ${e=>e.disabled?"unset":`scale(${1-pM[e.scale]*2})`}; } } -`;function p2(e){const t=Vi(()=>Object.keys(e).filter(r=>r.startsWith("data-"))),[n]=PL(e,t);return n}const Dc=e=>{const t=p2(e);return ke(Xmt,dc({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:n=>{var r;return(r=e.onClick)==null?void 0:r.call(e,n)},onMouseEnter:n=>{var r;return(r=e.onMouseEnter)==null?void 0:r.call(e,n)},onMouseLeave:n=>{var r;return(r=e.onMouseLeave)==null?void 0:r.call(e,n)},ref(n){const r=e.ref;typeof r=="function"?r(n):e.ref=n},get disabled(){return e.disabled},get scale(){return e.scale||"m"},"data-tc-button":"true"},t,{get children(){return e.children}}))};function U_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const zI=e=>{let t,n=!0;const[r,o]=Xn(),[i,a]=Xn(),s=DI(()=>e.children),{onBeforeEnter:l,onEnter:u,onAfterEnter:c,onBeforeExit:f,onExit:p,onAfterExit:g}=e,m=Bn(()=>{const x=e.name||"s";return{enterActiveClass:e.enterActiveClass||x+"-enter-active",enterClass:e.enterClass||x+"-enter",enterToClass:e.enterToClass||x+"-enter-to",exitActiveClass:e.exitActiveClass||x+"-exit-active",exitClass:e.exitClass||x+"-exit",exitToClass:e.exitToClass||x+"-exit-to"}});function y(x,w){if(!n||e.appear){let I=function(D){x&&(!D||D.target===x)&&(x.removeEventListener("transitionend",I),x.removeEventListener("animationend",I),x.classList.remove(...R),x.classList.remove(...U),Iue(()=>{r()!==x&&o(x),i()===x&&a(void 0)}),c&&c(x),e.mode==="inout"&&v(x,w))};const _=m().enterClass.split(" "),R=m().enterActiveClass.split(" "),U=m().enterToClass.split(" ");l&&l(x),x.classList.add(..._),x.classList.add(...R),U_(()=>{x.classList.remove(..._),x.classList.add(...U),u&&u(x,()=>I()),(!u||u.length<2)&&(x.addEventListener("transitionend",I),x.addEventListener("animationend",I))})}w&&!e.mode?a(x):o(x)}function v(x,w){const I=m().exitClass.split(" "),_=m().exitActiveClass.split(" "),R=m().exitToClass.split(" ");if(!w.parentNode)return U();f&&f(w),w.classList.add(...I),w.classList.add(..._),U_(()=>{w.classList.remove(...I),w.classList.add(...R)}),p&&p(w,()=>U()),(!p||p.length<2)&&(w.addEventListener("transitionend",U),w.addEventListener("animationend",U));function U(D){(!D||D.target===w)&&(w.removeEventListener("transitionend",U),w.removeEventListener("animationend",U),w.classList.remove(..._),w.classList.remove(...R),r()===w&&o(void 0),g&&g(w),e.mode==="outin"&&y(x,w))}}return D_(x=>{for(t=s();typeof t=="function";)t=t();return Vi(()=>(t&&t!==x&&(e.mode!=="outin"?y(t,x):n&&o(t)),x&&x!==t&&e.mode!=="inout"&&v(t,x),n=!1,t))}),[r,i]};function nC(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const Zmt=e=>{const t=DI(()=>e.children),n=Bn(()=>{const g=e.name||"s";return{enterActiveClass:e.enterActiveClass||g+"-enter-active",enterClass:e.enterClass||g+"-enter",enterToClass:e.enterToClass||g+"-enter-to",exitActiveClass:e.exitActiveClass||g+"-exit-active",exitClass:e.exitClass||g+"-exit",exitToClass:e.exitToClass||g+"-exit-to",moveClass:e.moveClass||g+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[u,c]=Xn();let f=[],p=!0;return D_(()=>{const g=t(),m=[...g],y=new Set(g),v=new Set(f),x=n().enterClass.split(" "),w=n().enterActiveClass.split(" "),I=n().enterToClass.split(" "),_=n().exitClass.split(" "),R=n().exitActiveClass.split(" "),U=n().exitToClass.split(" ");for(let D=0;D{b.classList.remove(...x),b.classList.add(...I),o&&o(b,()=>T()),(!o||o.length<2)&&(b.addEventListener("transitionend",T),b.addEventListener("animationend",T))})}}for(let D=0;DO!==b),c(f))};m.splice(D,0,b),a&&a(b),b.classList.add(..._),b.classList.add(...R),U_(()=>{b.classList.remove(..._),b.classList.add(...U)}),s&&s(b,()=>T()),(!s||s.length<2)&&(b.addEventListener("transitionend",T),b.addEventListener("animationend",T))}}f=m,c(m)}),Pl(g=>{const m=u();return m.forEach(y=>{let v;(v=g.get(y))?v.new&&(v.new=!1,v.newPos=nC(y)):g.set(y,v={pos:nC(y),new:!p}),v.new&&y.addEventListener("transitionend",()=>{v.new=!1,y.parentNode&&(v.newPos=nC(y))},{once:!0}),v.newPos&&(v.pos=v.newPos),v.newPos=nC(y)}),p?(p=!1,g):(m.forEach(y=>{const v=g.get(y),x=v.pos,w=v.newPos,I=x.left-w.left,_=x.top-w.top;if(I||_){v.moved=!0;const R=y.style;R.transform=`translate(${I}px,${_}px)`,R.transitionDuration="0s"}}),document.body.offsetHeight,m.forEach(y=>{const v=g.get(y);if(v.moved){let x=function(_){_&&_.target!==y||!y.parentNode||(!_||/transform$/.test(_.propertyName))&&(y.removeEventListener("transitionend",x),y.classList.remove(...I))};v.moved=!1;const w=y.style,I=n().moveClass.split(" ");y.classList.add(...I),w.transform=w.transitionDuration="",y.addEventListener("transitionend",x)}}),g)},new Map),u};function e0t(e,t){const n=r=>{var o;return!e.contains(r.target)&&((o=t())==null?void 0:o())};document.body.addEventListener("click",n),Fd(()=>document.body.removeEventListener("click",n))}function t0t(e,t){const n=r=>{var o,i;r.key==="Escape"&&((o=document.activeElement)==null||o.blur(),(i=t())==null||i())};document.body.addEventListener("keydown",n),Fd(()=>document.body.removeEventListener("keydown",n))}const n0t=Jo('',4,!0),r0t={left:0,top:90,right:180,bottom:270},Jue=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary,r=()=>e.direction||"left",o=Tt("svg")` - transform: rotate(${i=>r0t[i.svgDirection]}deg); +`;function px(e){const t=Vi(()=>Object.keys(e).filter(r=>r.startsWith("data-"))),[n]=PL(e,t);return n}const Dc=e=>{const t=px(e);return ke(g0t,fc({get appearance(){return e.appearance||"primary"},get class(){return e.class},onClick:n=>{var r;return(r=e.onClick)==null?void 0:r.call(e,n)},onMouseEnter:n=>{var r;return(r=e.onMouseEnter)==null?void 0:r.call(e,n)},onMouseLeave:n=>{var r;return(r=e.onMouseLeave)==null?void 0:r.call(e,n)},ref(n){const r=e.ref;typeof r=="function"?r(n):e.ref=n},get disabled(){return e.disabled},get scale(){return e.scale||"m"},"data-tc-button":"true"},t,{get children(){return e.children}}))};function U_(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}const VI=e=>{let t,n=!0;const[r,o]=Xn(),[i,a]=Xn(),s=BI(()=>e.children),{onBeforeEnter:l,onEnter:u,onAfterEnter:c,onBeforeExit:f,onExit:p,onAfterExit:g}=e,m=Bn(()=>{const x=e.name||"s";return{enterActiveClass:e.enterActiveClass||x+"-enter-active",enterClass:e.enterClass||x+"-enter",enterToClass:e.enterToClass||x+"-enter-to",exitActiveClass:e.exitActiveClass||x+"-exit-active",exitClass:e.exitClass||x+"-exit",exitToClass:e.exitToClass||x+"-exit-to"}});function y(x,w){if(!n||e.appear){let I=function(D){x&&(!D||D.target===x)&&(x.removeEventListener("transitionend",I),x.removeEventListener("animationend",I),x.classList.remove(...R),x.classList.remove(...U),kue(()=>{r()!==x&&o(x),i()===x&&a(void 0)}),c&&c(x),e.mode==="inout"&&v(x,w))};const _=m().enterClass.split(" "),R=m().enterActiveClass.split(" "),U=m().enterToClass.split(" ");l&&l(x),x.classList.add(..._),x.classList.add(...R),U_(()=>{x.classList.remove(..._),x.classList.add(...U),u&&u(x,()=>I()),(!u||u.length<2)&&(x.addEventListener("transitionend",I),x.addEventListener("animationend",I))})}w&&!e.mode?a(x):o(x)}function v(x,w){const I=m().exitClass.split(" "),_=m().exitActiveClass.split(" "),R=m().exitToClass.split(" ");if(!w.parentNode)return U();f&&f(w),w.classList.add(...I),w.classList.add(..._),U_(()=>{w.classList.remove(...I),w.classList.add(...R)}),p&&p(w,()=>U()),(!p||p.length<2)&&(w.addEventListener("transitionend",U),w.addEventListener("animationend",U));function U(D){(!D||D.target===w)&&(w.removeEventListener("transitionend",U),w.removeEventListener("animationend",U),w.classList.remove(..._),w.classList.remove(...R),r()===w&&o(void 0),g&&g(w),e.mode==="outin"&&y(x,w))}}return D_(x=>{for(t=s();typeof t=="function";)t=t();return Vi(()=>(t&&t!==x&&(e.mode!=="outin"?y(t,x):n&&o(t)),x&&x!==t&&e.mode!=="inout"&&v(t,x),n=!1,t))}),[r,i]};function nC(e){const{top:t,bottom:n,left:r,right:o,width:i,height:a}=e.getBoundingClientRect(),s=e.parentNode.getBoundingClientRect();return{top:t-s.top,bottom:n,left:r-s.left,right:o,width:i,height:a}}const m0t=e=>{const t=BI(()=>e.children),n=Bn(()=>{const g=e.name||"s";return{enterActiveClass:e.enterActiveClass||g+"-enter-active",enterClass:e.enterClass||g+"-enter",enterToClass:e.enterToClass||g+"-enter-to",exitActiveClass:e.exitActiveClass||g+"-exit-active",exitClass:e.exitClass||g+"-exit",exitToClass:e.exitToClass||g+"-exit-to",moveClass:e.moveClass||g+"-move"}}),{onBeforeEnter:r,onEnter:o,onAfterEnter:i,onBeforeExit:a,onExit:s,onAfterExit:l}=e,[u,c]=Xn();let f=[],p=!0;return D_(()=>{const g=t(),m=[...g],y=new Set(g),v=new Set(f),x=n().enterClass.split(" "),w=n().enterActiveClass.split(" "),I=n().enterToClass.split(" "),_=n().exitClass.split(" "),R=n().exitActiveClass.split(" "),U=n().exitToClass.split(" ");for(let D=0;D{b.classList.remove(...x),b.classList.add(...I),o&&o(b,()=>T()),(!o||o.length<2)&&(b.addEventListener("transitionend",T),b.addEventListener("animationend",T))})}}for(let D=0;DO!==b),c(f))};m.splice(D,0,b),a&&a(b),b.classList.add(..._),b.classList.add(...R),U_(()=>{b.classList.remove(..._),b.classList.add(...U)}),s&&s(b,()=>T()),(!s||s.length<2)&&(b.addEventListener("transitionend",T),b.addEventListener("animationend",T))}}f=m,c(m)}),Pl(g=>{const m=u();return m.forEach(y=>{let v;(v=g.get(y))?v.new&&(v.new=!1,v.newPos=nC(y)):g.set(y,v={pos:nC(y),new:!p}),v.new&&y.addEventListener("transitionend",()=>{v.new=!1,y.parentNode&&(v.newPos=nC(y))},{once:!0}),v.newPos&&(v.pos=v.newPos),v.newPos=nC(y)}),p?(p=!1,g):(m.forEach(y=>{const v=g.get(y),x=v.pos,w=v.newPos,I=x.left-w.left,_=x.top-w.top;if(I||_){v.moved=!0;const R=y.style;R.transform=`translate(${I}px,${_}px)`,R.transitionDuration="0s"}}),document.body.offsetHeight,m.forEach(y=>{const v=g.get(y);if(v.moved){let x=function(_){_&&_.target!==y||!y.parentNode||(!_||/transform$/.test(_.propertyName))&&(y.removeEventListener("transitionend",x),y.classList.remove(...I))};v.moved=!1;const w=y.style,I=n().moveClass.split(" ");y.classList.add(...I),w.transform=w.transitionDuration="",y.addEventListener("transitionend",x)}}),g)},new Map),u};function y0t(e,t){const n=r=>{var o;return!e.contains(r.target)&&((o=t())==null?void 0:o())};document.body.addEventListener("click",n),Fd(()=>document.body.removeEventListener("click",n))}function v0t(e,t){const n=r=>{var o,i;r.key==="Escape"&&((o=document.activeElement)==null||o.blur(),(i=t())==null||i())};document.body.addEventListener("keydown",n),Fd(()=>document.body.removeEventListener("keydown",n))}const b0t=Jo('',4,!0),w0t={left:0,top:90,right:180,bottom:270},Gue=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary,r=()=>e.direction||"left",o=Tt("svg")` + transform: rotate(${i=>w0t[i.svgDirection]}deg); transition: transform 0.1s ease-in-out; - `;return ke(o,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",get svgDirection(){return r()},get children(){const i=n0t.cloneNode(!0);return Lo(()=>io(i,"stroke",n())),i}})},o0t=Jo(''),i0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=o0t.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"stroke",n())),r})()},a0t=Tt.button` + `;return ke(o,{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",get svgDirection(){return r()},get children(){const i=b0t.cloneNode(!0);return Lo(()=>io(i,"stroke",n())),i}})},S0t=Jo(''),x0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=S0t.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"stroke",n())),r})()},C0t=Tt.button` padding: 0; display: flex; justify-content: center; @@ -744,7 +744,7 @@ PERFORMANCE OF THIS SOFTWARE. transition: transform 0.125s ease-in-out; - ${WI} { + ${zI} { &:hover { transform: scale(1.04); } @@ -754,12 +754,12 @@ PERFORMANCE OF THIS SOFTWARE. transform: scale(0.96); } - ${jI} { + ${WI} { &:active { transform: scale(0.92); } } -`,Xue=e=>{const t=p2(e),n=()=>e.icon||"close";return ke(a0t,dc({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[ke(Rr,{get when(){return!!e.children},get children(){return e.children}}),ke(Rr,{get when(){return!e.children},get children(){return ke(FI,{get children(){return[ke(fc,{get when(){return n()==="close"},get children(){return ke(i0t,{get fill(){return e.fill}})}}),ke(fc,{get when(){return n()==="arrow"},get children(){return ke(Jue,{get fill(){return e.fill}})}})]}})}})]}}))},s0t=Tt.div` +`,Jue=e=>{const t=px(e),n=()=>e.icon||"close";return ke(C0t,fc({get class(){return e.class},onClick:()=>e.onClick(),"data-tc-icon-button":"true"},t,{get children(){return[ke(Rr,{get when(){return!!e.children},get children(){return e.children}}),ke(Rr,{get when(){return!e.children},get children(){return ke(NI,{get children(){return[ke(pc,{get when(){return n()==="close"},get children(){return ke(x0t,{get fill(){return e.fill}})}}),ke(pc,{get when(){return n()==="arrow"},get children(){return ke(Gue,{get fill(){return e.fill}})}})]}})}})]}}))},A0t=Tt.div` display: flex; align-items: center; justify-content: center; @@ -780,7 +780,7 @@ PERFORMANCE OF THIS SOFTWARE. align-items: flex-start; overflow: scroll; } -`,l0t=Nd` +`,_0t=Nd` position: relative; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 16px 64px rgba(0, 0, 0, 0.16); min-height: 100px; @@ -790,19 +790,19 @@ PERFORMANCE OF THIS SOFTWARE. ${ef("mobile")} { width: 100%; } -`,u0t=Tt(Xue)` +`,E0t=Tt(Jue)` position: absolute; right: 16px; top: 16px; -`,c0t=Jo("
"),d0t=e0t,f0t=t0t,pM={m:"24px",s:"16px",none:"0"},Zue=e=>{const t=Xs(),n=p2(e);return Pl(()=>{e.opened?Hmt():qmt()}),ke(zI,{onBeforeEnter:r=>{const o=d0("mobile")?200:100;r.animate([{opacity:0},{opacity:1}],{duration:o}),d0("mobile")&&r.firstElementChild.animate([{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:o})},onExit:(r,o)=>{const i=d0("mobile")?200:100,a=r.animate([{opacity:1},{opacity:0}],{duration:i});if(d0("mobile")){const s=r.firstElementChild.animate([{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:i});Promise.all([a.finished,s.finished]).then(o)}else a.finished.then(o)},get children(){return ke(Rr,{get when(){return e.opened},get children(){return ke(s0t,dc({"data-tc-modal":"true"},n,{get children(){const r=c0t.cloneNode(!0);return L_(f0t,r,()=>()=>e.onClose()),L_(d0t,r,()=>()=>e.onClose()),Ti(r,ke(u0t,{icon:"close",onClick:()=>e.onClose()}),null),Ti(r,()=>e.children,null),Lo(()=>ML(r,A_(l0t,e.class,Nd` +`,T0t=Jo("
"),k0t=y0t,I0t=v0t,hM={m:"24px",s:"16px",none:"0"},Xue=e=>{const t=Xs(),n=px(e);return Pl(()=>{e.opened?l0t():u0t()}),ke(VI,{onBeforeEnter:r=>{const o=d0("mobile")?200:100;r.animate([{opacity:0},{opacity:1}],{duration:o}),d0("mobile")&&r.firstElementChild.animate([{transform:"translateY(390px)"},{transform:"translateY(0)"}],{duration:o})},onExit:(r,o)=>{const i=d0("mobile")?200:100,a=r.animate([{opacity:1},{opacity:0}],{duration:i});if(d0("mobile")){const s=r.firstElementChild.animate([{transform:"translateY(0)"},{transform:"translateY(390px)"}],{duration:i});Promise.all([a.finished,s.finished]).then(o)}else a.finished.then(o)},get children(){return ke(Rr,{get when(){return e.opened},get children(){return ke(A0t,fc({"data-tc-modal":"true"},n,{get children(){const r=T0t.cloneNode(!0);return L_(I0t,r,()=>()=>e.onClose()),L_(k0t,r,()=>()=>e.onClose()),Ti(r,ke(E0t,{icon:"close",onClick:()=>e.onClose()}),null),Ti(r,()=>e.children,null),Lo(()=>ML(r,A_(_0t,e.class,Nd` background-color: ${t.colors.background.primary}; - border-radius: ${pM[t.borderRadius]}; + border-radius: ${hM[t.borderRadius]}; ${ef("mobile")} { - border-radius: ${pM[t.borderRadius]} - ${pM[t.borderRadius]} 0 0; + border-radius: ${hM[t.borderRadius]} + ${hM[t.borderRadius]} 0 0; } - `))),r}}))}})}})},p0t={m:"22px",s:"12px",none:"0"},h0t={m:"18px",s:"8px",none:"0"},g0t=Tt.div` + `))),r}}))}})}})},P0t={m:"22px",s:"12px",none:"0"},M0t={m:"18px",s:"8px",none:"0"},O0t=Tt.div` display: grid; grid-template: 1fr / 1fr 1fr; width: fit-content; @@ -811,10 +811,10 @@ PERFORMANCE OF THIS SOFTWARE. position: relative; padding: 4px; - border-radius: ${e=>p0t[e.theme.borderRadius]}; + border-radius: ${e=>P0t[e.theme.borderRadius]}; background-color: ${e=>e.theme.colors.background.secondary}; -`,m0t=Tt.div` +`,R0t=Tt.div` position: absolute; top: 4px; left: 4px; @@ -822,7 +822,7 @@ PERFORMANCE OF THIS SOFTWARE. height: calc(100% - 8px); width: calc(50% - 4px); - border-radius: ${e=>h0t[e.theme.borderRadius]}; + border-radius: ${e=>M0t[e.theme.borderRadius]}; background-color: ${e=>e.theme.colors.background.segment}; transform: ${e=>e.right?"translateX(100%)":"translateX(0)"}; @@ -845,18 +845,18 @@ PERFORMANCE OF THIS SOFTWARE. > * { ${e=>e.isActive?"":`color: ${e.theme.colors.text.secondary};`} } -`,y0t=e=>{const t="tabBar"+Math.floor(Math.random()*1e4);return ke(g0t,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[ke(m0t,{get right(){return e.selectedTabIndex===1}}),ke($H,{get isActive(){return e.selectedTabIndex===0},get children(){return[ke(BH,{type:"radio",name:t,get checked(){return e.selectedTabIndex===0},onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,0)}}),Bn(()=>e.tab1)]}}),ke($H,{get isActive(){return e.selectedTabIndex===1},get children(){return[ke(BH,{type:"radio",get checked(){return e.selectedTabIndex===1},name:t,onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,1)}}),Bn(()=>e.tab2)]}})]}})},v0t={m:"16px",s:"8px",none:"0"},ece=256,C5=60,LH=48,FH=24,b0t=Tt.div` +`,D0t=e=>{const t="tabBar"+Math.floor(Math.random()*1e4);return ke(O0t,{get class(){return e.class},"data-tc-tab-bar":"true",get children(){return[ke(R0t,{get right(){return e.selectedTabIndex===1}}),ke($H,{get isActive(){return e.selectedTabIndex===0},get children(){return[ke(BH,{type:"radio",name:t,get checked(){return e.selectedTabIndex===0},onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,0)}}),Bn(()=>e.tab1)]}}),ke($H,{get isActive(){return e.selectedTabIndex===1},get children(){return[ke(BH,{type:"radio",get checked(){return e.selectedTabIndex===1},name:t,onInput:()=>{var n;return(n=e.onSelectedTabIndexChange)==null?void 0:n.call(e,1)}}),Bn(()=>e.tab2)]}})]}})},B0t={m:"16px",s:"8px",none:"0"},Zue=256,A5=60,LH=48,FH=24,$0t=Tt.div` display: flex; align-items: center; position: relative; background-color: ${e=>e.theme.colors.background.secondary}; - border-radius: ${e=>v0t[e.theme.borderRadius]}; - padding: ${pc(FH)} 0; - height: ${pc(ece+FH*2)}; + border-radius: ${e=>B0t[e.theme.borderRadius]}; + padding: ${hc(FH)} 0; + height: ${hc(Zue+FH*2)}; width: 100%; overflow: hidden; -`,w0t=Tt.div` +`,L0t=Tt.div` position: relative; width: fit-content; @@ -875,20 +875,20 @@ PERFORMANCE OF THIS SOFTWARE. path { fill: ${e=>e.theme.colors.text.primary}; } -`,S0t=Tt.div` +`,F0t=Tt.div` position: absolute; - width: ${pc(C5)}; - height: ${pc(C5)}; + width: ${hc(A5)}; + height: ${hc(A5)}; background: ${e=>e.theme.colors.background.secondary}; display: flex; align-items: center; justify-content: center; -`,x0t=Tt(FL)` - width: ${e=>pc(e.size)}; - height: ${e=>pc(e.size)}; +`,N0t=Tt(FL)` + width: ${e=>hc(e.size)}; + height: ${e=>hc(e.size)}; border-radius: 12px; -`,C0t=Tt(Dc)` +`,U0t=Tt(Dc)` filter: drop-shadow(0px 2px 8px rgba(0, 0, 0, 0.08)); position: absolute; bottom: 14px; @@ -906,16 +906,16 @@ PERFORMANCE OF THIS SOFTWARE. &:active { transform: translate(-50%, 0) scale(0.96); } -`;var tce={exports:{}};(function(e,t){var n=function(){var r=function(R,U){var D=236,b=17,T=R,C=i[U],O=null,$=0,j=null,L=[],B={},H=function(ce,de){$=T*4+17,O=function(ve){for(var he=new Array(ve),pe=0;pe=7&&le(ce),j==null&&(j=Ie(T,C,L)),Ee(j,de)},q=function(ce,de){for(var ve=-1;ve<=7;ve+=1)if(!(ce+ve<=-1||$<=ce+ve))for(var he=-1;he<=7;he+=1)de+he<=-1||$<=de+he||(0<=ve&&ve<=6&&(he==0||he==6)||0<=he&&he<=6&&(ve==0||ve==6)||2<=ve&&ve<=4&&2<=he&&he<=4?O[ce+ve][de+he]=!0:O[ce+ve][de+he]=!1)},Y=function(){for(var ce=0,de=0,ve=0;ve<8;ve+=1){H(!0,ve);var he=s.getLostPoint(B);(ve==0||ce>he)&&(ce=he,de=ve)}return de},W=function(){for(var ce=8;ce<$-8;ce+=1)O[ce][6]==null&&(O[ce][6]=ce%2==0);for(var de=8;de<$-8;de+=1)O[6][de]==null&&(O[6][de]=de%2==0)},ie=function(){for(var ce=s.getPatternPosition(T),de=0;de>ve&1)==1;O[Math.floor(ve/3)][ve%3+$-8-3]=he}for(var ve=0;ve<18;ve+=1){var he=!ce&&(de>>ve&1)==1;O[ve%3+$-8-3][Math.floor(ve/3)]=he}},fe=function(ce,de){for(var ve=C<<3|de,he=s.getBCHTypeInfo(ve),pe=0;pe<15;pe+=1){var ge=!ce&&(he>>pe&1)==1;pe<6?O[pe][8]=ge:pe<8?O[pe+1][8]=ge:O[$-15+pe][8]=ge}for(var pe=0;pe<15;pe+=1){var ge=!ce&&(he>>pe&1)==1;pe<8?O[8][$-pe-1]=ge:pe<9?O[8][15-pe-1+1]=ge:O[8][15-pe-1]=ge}O[$-8][8]=!ce},Ee=function(ce,de){for(var ve=-1,he=$-1,pe=7,ge=0,Ce=s.getMaskFunction(de),_e=$-1;_e>0;_e-=2)for(_e==6&&(_e-=1);;){for(var Ne=0;Ne<2;Ne+=1)if(O[he][_e-Ne]==null){var Be=!1;ge>>pe&1)==1);var Ve=Ce(he,_e-Ne);Ve&&(Be=!Be),O[he][_e-Ne]=Be,pe-=1,pe==-1&&(ge+=1,pe=7)}if(he+=ve,he<0||$<=he){he-=ve,ve=-ve;break}}},Ae=function(ce,de){for(var ve=0,he=0,pe=0,ge=new Array(de.length),Ce=new Array(de.length),_e=0;_e=0?je.getAt(We):0}}for(var Ge=0,Ve=0;Ve_e*8)throw"code length overflow. ("+pe.getLengthInBits()+">"+_e*8+")";for(pe.getLengthInBits()+4<=_e*8&&pe.put(0,4);pe.getLengthInBits()%8!=0;)pe.putBit(!1);for(;!(pe.getLengthInBits()>=_e*8||(pe.put(D,8),pe.getLengthInBits()>=_e*8));)pe.put(b,8);return Ae(pe,he)};B.addData=function(ce,de){de=de||"Byte";var ve=null;switch(de){case"Numeric":ve=p(ce);break;case"Alphanumeric":ve=g(ce);break;case"Byte":ve=m(ce);break;case"Kanji":ve=y(ce);break;default:throw"mode:"+de}L.push(ve),j=null},B.isDark=function(ce,de){if(ce<0||$<=ce||de<0||$<=de)throw ce+","+de;return O[ce][de]},B.getModuleCount=function(){return $},B.make=function(){if(T<1){for(var ce=1;ce<40;ce++){for(var de=c.getRSBlocks(ce,C),ve=f(),he=0;he"u"?ce*4:de;var ve="";ve+='";for(var pe=0;pe';ve+=""}return ve+="",ve+="
",ve},B.createSvgTag=function(ce,de,ve,he){var pe={};typeof arguments[0]=="object"&&(pe=arguments[0],ce=pe.cellSize,de=pe.margin,ve=pe.alt,he=pe.title),ce=ce||2,de=typeof de>"u"?ce*4:de,ve=typeof ve=="string"?{text:ve}:ve||{},ve.text=ve.text||null,ve.id=ve.text?ve.id||"qrcode-description":null,he=typeof he=="string"?{text:he}:he||{},he.text=he.text||null,he.id=he.text?he.id||"qrcode-title":null;var ge=B.getModuleCount()*ce+de*2,Ce,_e,Ne,Be,Ve="",wt;for(wt="l"+ce+",0 0,"+ce+" -"+ce+",0 0,-"+ce+"z ",Ve+=''+De(he.text)+"":"",Ve+=ve.text?''+De(ve.text)+"":"",Ve+='',Ve+='"u"?ce*4:de;var ve=B.getModuleCount()*ce+de*2,he=de,pe=ve-de;return _(ve,ve,function(ge,Ce){if(he<=ge&&ge"u"?ce*4:de;var he=B.getModuleCount()*ce+de*2,pe="";return pe+="",pe};var De=function(ce){for(var de="",ve=0;ve":de+=">";break;case"&":de+="&";break;case'"':de+=""";break;default:de+=he;break}}return de},Ue=function(ce){var de=1;ce=typeof ce>"u"?de*2:ce;var ve=B.getModuleCount()*de+ce*2,he=ce,pe=ve-ce,ge,Ce,_e,Ne,Be,Ve={"██":"█","█ ":"▀"," █":"▄"," ":" "},wt={"██":"▀","█ ":"▀"," █":" "," ":" "},xe="";for(ge=0;ge=pe?wt[Be]:Ve[Be];xe+=` +`;var ece={exports:{}};(function(e,t){var n=function(){var r=function(R,U){var D=236,b=17,T=R,C=i[U],O=null,$=0,j=null,L=[],B={},H=function(ce,de){$=T*4+17,O=function(ve){for(var he=new Array(ve),pe=0;pe=7&&le(ce),j==null&&(j=Ie(T,C,L)),Ee(j,de)},q=function(ce,de){for(var ve=-1;ve<=7;ve+=1)if(!(ce+ve<=-1||$<=ce+ve))for(var he=-1;he<=7;he+=1)de+he<=-1||$<=de+he||(0<=ve&&ve<=6&&(he==0||he==6)||0<=he&&he<=6&&(ve==0||ve==6)||2<=ve&&ve<=4&&2<=he&&he<=4?O[ce+ve][de+he]=!0:O[ce+ve][de+he]=!1)},Y=function(){for(var ce=0,de=0,ve=0;ve<8;ve+=1){H(!0,ve);var he=s.getLostPoint(B);(ve==0||ce>he)&&(ce=he,de=ve)}return de},W=function(){for(var ce=8;ce<$-8;ce+=1)O[ce][6]==null&&(O[ce][6]=ce%2==0);for(var de=8;de<$-8;de+=1)O[6][de]==null&&(O[6][de]=de%2==0)},ie=function(){for(var ce=s.getPatternPosition(T),de=0;de>ve&1)==1;O[Math.floor(ve/3)][ve%3+$-8-3]=he}for(var ve=0;ve<18;ve+=1){var he=!ce&&(de>>ve&1)==1;O[ve%3+$-8-3][Math.floor(ve/3)]=he}},fe=function(ce,de){for(var ve=C<<3|de,he=s.getBCHTypeInfo(ve),pe=0;pe<15;pe+=1){var ge=!ce&&(he>>pe&1)==1;pe<6?O[pe][8]=ge:pe<8?O[pe+1][8]=ge:O[$-15+pe][8]=ge}for(var pe=0;pe<15;pe+=1){var ge=!ce&&(he>>pe&1)==1;pe<8?O[8][$-pe-1]=ge:pe<9?O[8][15-pe-1+1]=ge:O[8][15-pe-1]=ge}O[$-8][8]=!ce},Ee=function(ce,de){for(var ve=-1,he=$-1,pe=7,ge=0,Ce=s.getMaskFunction(de),_e=$-1;_e>0;_e-=2)for(_e==6&&(_e-=1);;){for(var Ne=0;Ne<2;Ne+=1)if(O[he][_e-Ne]==null){var Be=!1;ge>>pe&1)==1);var Ve=Ce(he,_e-Ne);Ve&&(Be=!Be),O[he][_e-Ne]=Be,pe-=1,pe==-1&&(ge+=1,pe=7)}if(he+=ve,he<0||$<=he){he-=ve,ve=-ve;break}}},Ae=function(ce,de){for(var ve=0,he=0,pe=0,ge=new Array(de.length),Ce=new Array(de.length),_e=0;_e=0?je.getAt(We):0}}for(var Ge=0,Ve=0;Ve_e*8)throw"code length overflow. ("+pe.getLengthInBits()+">"+_e*8+")";for(pe.getLengthInBits()+4<=_e*8&&pe.put(0,4);pe.getLengthInBits()%8!=0;)pe.putBit(!1);for(;!(pe.getLengthInBits()>=_e*8||(pe.put(D,8),pe.getLengthInBits()>=_e*8));)pe.put(b,8);return Ae(pe,he)};B.addData=function(ce,de){de=de||"Byte";var ve=null;switch(de){case"Numeric":ve=p(ce);break;case"Alphanumeric":ve=g(ce);break;case"Byte":ve=m(ce);break;case"Kanji":ve=y(ce);break;default:throw"mode:"+de}L.push(ve),j=null},B.isDark=function(ce,de){if(ce<0||$<=ce||de<0||$<=de)throw ce+","+de;return O[ce][de]},B.getModuleCount=function(){return $},B.make=function(){if(T<1){for(var ce=1;ce<40;ce++){for(var de=c.getRSBlocks(ce,C),ve=f(),he=0;he"u"?ce*4:de;var ve="";ve+='";for(var pe=0;pe';ve+=""}return ve+="",ve+="
",ve},B.createSvgTag=function(ce,de,ve,he){var pe={};typeof arguments[0]=="object"&&(pe=arguments[0],ce=pe.cellSize,de=pe.margin,ve=pe.alt,he=pe.title),ce=ce||2,de=typeof de>"u"?ce*4:de,ve=typeof ve=="string"?{text:ve}:ve||{},ve.text=ve.text||null,ve.id=ve.text?ve.id||"qrcode-description":null,he=typeof he=="string"?{text:he}:he||{},he.text=he.text||null,he.id=he.text?he.id||"qrcode-title":null;var ge=B.getModuleCount()*ce+de*2,Ce,_e,Ne,Be,Ve="",wt;for(wt="l"+ce+",0 0,"+ce+" -"+ce+",0 0,-"+ce+"z ",Ve+=''+De(he.text)+"":"",Ve+=ve.text?''+De(ve.text)+"":"",Ve+='',Ve+='"u"?ce*4:de;var ve=B.getModuleCount()*ce+de*2,he=de,pe=ve-de;return _(ve,ve,function(ge,Ce){if(he<=ge&&ge"u"?ce*4:de;var he=B.getModuleCount()*ce+de*2,pe="";return pe+="",pe};var De=function(ce){for(var de="",ve=0;ve":de+=">";break;case"&":de+="&";break;case'"':de+=""";break;default:de+=he;break}}return de},Ue=function(ce){var de=1;ce=typeof ce>"u"?de*2:ce;var ve=B.getModuleCount()*de+ce*2,he=ce,pe=ve-ce,ge,Ce,_e,Ne,Be,Ve={"██":"█","█ ":"▀"," █":"▄"," ":" "},wt={"██":"▀","█ ":"▀"," █":" "," ":" "},xe="";for(ge=0;ge=pe?wt[Be]:Ve[Be];xe+=` `}return ve%2&&ce>0?xe.substring(0,xe.length-ve-1)+Array(ve+1).join("▀"):xe.substring(0,xe.length-1)};return B.createASCII=function(ce,de){if(ce=ce||1,ce<2)return Ue(de);ce-=1,de=typeof de>"u"?ce*2:de;var ve=B.getModuleCount()*ce+de*2,he=de,pe=ve-de,ge,Ce,_e,Ne,Be=Array(ce+1).join("██"),Ve=Array(ce+1).join(" "),wt="",xe="";for(ge=0;ge>>8),C.push(j&255)):C.push(b)}}return C}};var o={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3},i={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],U=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,D=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,b=1<<14|1<<12|1<<10|1<<4|1<<1,T={},C=function(O){for(var $=0;O!=0;)$+=1,O>>>=1;return $};return T.getBCHTypeInfo=function(O){for(var $=O<<10;C($)-C(U)>=0;)$^=U<=0;)$^=D<5&&(j+=3+H-5)}for(var L=0;L<$-1;L+=1)for(var B=0;B<$-1;B+=1){var ie=0;O.isDark(L,B)&&(ie+=1),O.isDark(L+1,B)&&(ie+=1),O.isDark(L,B+1)&&(ie+=1),O.isDark(L+1,B+1)&&(ie+=1),(ie==0||ie==4)&&(j+=3)}for(var L=0;L<$;L+=1)for(var B=0;B<$-6;B+=1)O.isDark(L,B)&&!O.isDark(L,B+1)&&O.isDark(L,B+2)&&O.isDark(L,B+3)&&O.isDark(L,B+4)&&!O.isDark(L,B+5)&&O.isDark(L,B+6)&&(j+=40);for(var B=0;B<$;B+=1)for(var L=0;L<$-6;L+=1)O.isDark(L,B)&&!O.isDark(L+1,B)&&O.isDark(L+2,B)&&O.isDark(L+3,B)&&O.isDark(L+4,B)&&!O.isDark(L+5,B)&&O.isDark(L+6,B)&&(j+=40);for(var le=0,B=0;B<$;B+=1)for(var L=0;L<$;L+=1)O.isDark(L,B)&&(le+=1);var fe=Math.abs(100*le/$/$-50)/5;return j+=fe*10,j},T}(),l=function(){for(var R=new Array(256),U=new Array(256),D=0;D<8;D+=1)R[D]=1<=256;)T-=255;return R[T]},b}();function u(R,U){if(typeof R.length>"u")throw R.length+"/"+U;var D=function(){for(var T=0;T"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+C;for(var $=O.length/3,j=[],L=0;L<$;L+=1)for(var B=O[L*3+0],H=O[L*3+1],q=O[L*3+2],Y=0;Y>>7-b%8&1)==1},D.put=function(b,T){for(var C=0;C>>T-C-1&1)==1)},D.getLengthInBits=function(){return U},D.putBit=function(b){var T=Math.floor(U/8);R.length<=T&&R.push(0),b&&(R[T]|=128>>>U%8),U+=1},D},p=function(R){var U=o.MODE_NUMBER,D=R,b={};b.getMode=function(){return U},b.getLength=function(O){return D.length},b.write=function(O){for(var $=D,j=0;j+2<$.length;)O.put(T($.substring(j,j+3)),10),j+=3;j<$.length&&($.length-j==1?O.put(T($.substring(j,j+1)),4):$.length-j==2&&O.put(T($.substring(j,j+2)),7))};var T=function(O){for(var $=0,j=0;j>>8&255)*192+(j&255),C.put(j,13),$+=2}if($>>8)},U.writeBytes=function(D,b,T){b=b||0,T=T||D.length;for(var C=0;C0&&(D+=","),D+=R[b];return D+="]",D},U},x=function(){var R=0,U=0,D=0,b="",T={},C=function($){b+=String.fromCharCode(O($&63))},O=function($){if(!($<0)){if($<26)return 65+$;if($<52)return 97+($-26);if($<62)return 48+($-52);if($==62)return 43;if($==63)return 47}throw"n:"+$};return T.writeByte=function($){for(R=R<<8|$&255,U+=8,D+=1;U>=6;)C(R>>>U-6),U-=6},T.flush=function(){if(U>0&&(C(R<<6-U),R=0,U=0),D%3!=0)for(var $=3-D%3,j=0;j<$;j+=1)b+="="},T.toString=function(){return b},T},w=function(R){var U=R,D=0,b=0,T=0,C={};C.read=function(){for(;T<8;){if(D>=U.length){if(T==0)return-1;throw"unexpected end of file./"+T}var $=U.charAt(D);if(D+=1,$=="=")return T=0,-1;if($.match(/^\s$/))continue;b=b<<6|O($.charCodeAt(0)),T+=6}var j=b>>>T-8&255;return T-=8,j};var O=function($){if(65<=$&&$<=90)return $-65;if(97<=$&&$<=122)return $-97+26;if(48<=$&&$<=57)return $-48+52;if($==43)return 62;if($==47)return 63;throw"c:"+$};return C},I=function(R,U){var D=R,b=U,T=new Array(R*U),C={};C.setPixel=function(L,B,H){T[B*D+L]=H},C.write=function(L){L.writeString("GIF87a"),L.writeShort(D),L.writeShort(b),L.writeByte(128),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(255),L.writeByte(255),L.writeByte(255),L.writeString(","),L.writeShort(0),L.writeShort(0),L.writeShort(D),L.writeShort(b),L.writeByte(0);var B=2,H=$(B);L.writeByte(B);for(var q=0;H.length-q>255;)L.writeByte(255),L.writeBytes(H,q,255),q+=255;L.writeByte(H.length-q),L.writeBytes(H,q,H.length-q),L.writeByte(0),L.writeString(";")};var O=function(L){var B=L,H=0,q=0,Y={};return Y.write=function(W,ie){if(W>>>ie)throw"length over";for(;H+ie>=8;)B.writeByte(255&(W<>>=8-H,q=0,H=0;q=W<0&&B.writeByte(q)},Y},$=function(L){for(var B=1<>6,128|l&63):l<55296||l>=57344?a.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|i.charCodeAt(s)&1023),a.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return a}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(tce);const A0t=tce.exports;function nce(e){return navigator!=null&&navigator.clipboard?navigator.clipboard.writeText(e):(_0t(e),Promise.resolve())}function _0t(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var A5=(e,t,n)=>{const r=t.trim().split(".").reduce((o,i)=>o?o[i]:void 0,e);return r!==void 0?r:n},E0t=(e,t,n=/{{(.*?)}}/g)=>e.replace(n,(r,o)=>A5(t,o,"")),T0t=(e={},t=navigator.language in e?navigator.language:Object.keys(e)[0])=>{const[n,r]=Xn(t),[o,i]=BL(e);return[(l,u,c)=>{const f=A5(o[n()],l,c||"");return typeof f=="function"?f(u):typeof f=="string"?E0t(f,u||{}):f},{add(l,u){i(l,c=>Object.assign(c||{},u))},locale:l=>l?r(l):n(),dict:l=>A5(o,l)}]},rce=RI({}),Fp=()=>Su(rce);const cu=e=>{const[t]=Fp();return Bn(()=>{var n;return t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString())})},k0t=Jo("
"),hM={translationKey:"common.copyLink",text:"Copy Link"},I0t={translationKey:"common.copied",text:"Copied!"},oce=e=>{let t,n,r;const[o,i]=Xn(!1),[a,s]=Xn(!1),[l,u]=Xn(!1),[c,f]=Xn(hM),[p,g]=Xn(LH);Pl(()=>i(a()||l())),Pl(()=>!o()&&f(hM)),Pl(()=>{const w=A0t(0,"L");w.addData(e.sourceUrl),w.make(),t.innerHTML=w.createSvgTag(4,0);const I=t.firstElementChild.clientWidth,_=Math.round(ece/I*1e5)/1e5;if(r){const R=Math.ceil(C5/(_*4))*4,U=pc(Math.ceil((I-R)/(2*4))*4);r.style.top=U,r.style.left=U,r.style.height=pc(R),r.style.width=pc(R),g(Math.round(LH/_))}n.style.transform=`scale(${_})`});let m=null;const y=()=>{nce(e.sourceUrl),f(I0t),m!=null&&clearTimeout(m),m=setTimeout(()=>f(hM),3e3)};return ke(b0t,{get class(){return e.class},get children(){return[ke(w0t,{ref(v){const x=n;typeof x=="function"?x(v):n=v},onMouseEnter:()=>u(!0),onMouseLeave:()=>setTimeout(()=>u(!1)),get children(){return[(()=>{const v=k0t.cloneNode(!0),x=t;return typeof x=="function"?L_(x,v):t=v,v})(),ke(Rr,{get when(){return e.imageUrl},get children(){return ke(S0t,{ref(v){const x=r;typeof x=="function"?x(v):r=v},get children(){return ke(x0t,{get src(){return e.imageUrl},alt:"",get size(){return p()}})}})}})]}}),ke(zI,{onBeforeEnter:v=>{v.animate([{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:200})},onExit:(v,x)=>{v.animate([{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:200}).finished.then(()=>{x()})},get children(){return ke(Rr,{get when(){return o()&&!e.disableCopy},get children(){return ke(C0t,{onClick:y,onMouseEnter:()=>o()&&s(!0),onMouseLeave:()=>setTimeout(()=>s(!1)),get children(){return ke(cu,{get translationKey(){return c().translationKey},get children(){return c().text}})}})}})}})]}})},P0t=Tt.div` +`}return wt.substring(0,wt.length-1)},B.renderTo2dContext=function(ce,de){de=de||2;for(var ve=B.getModuleCount(),he=0;he>>8),C.push(j&255)):C.push(b)}}return C}};var o={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3},i={L:1,M:0,Q:3,H:2},a={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},s=function(){var R=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],U=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,D=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,b=1<<14|1<<12|1<<10|1<<4|1<<1,T={},C=function(O){for(var $=0;O!=0;)$+=1,O>>>=1;return $};return T.getBCHTypeInfo=function(O){for(var $=O<<10;C($)-C(U)>=0;)$^=U<=0;)$^=D<5&&(j+=3+H-5)}for(var L=0;L<$-1;L+=1)for(var B=0;B<$-1;B+=1){var ie=0;O.isDark(L,B)&&(ie+=1),O.isDark(L+1,B)&&(ie+=1),O.isDark(L,B+1)&&(ie+=1),O.isDark(L+1,B+1)&&(ie+=1),(ie==0||ie==4)&&(j+=3)}for(var L=0;L<$;L+=1)for(var B=0;B<$-6;B+=1)O.isDark(L,B)&&!O.isDark(L,B+1)&&O.isDark(L,B+2)&&O.isDark(L,B+3)&&O.isDark(L,B+4)&&!O.isDark(L,B+5)&&O.isDark(L,B+6)&&(j+=40);for(var B=0;B<$;B+=1)for(var L=0;L<$-6;L+=1)O.isDark(L,B)&&!O.isDark(L+1,B)&&O.isDark(L+2,B)&&O.isDark(L+3,B)&&O.isDark(L+4,B)&&!O.isDark(L+5,B)&&O.isDark(L+6,B)&&(j+=40);for(var le=0,B=0;B<$;B+=1)for(var L=0;L<$;L+=1)O.isDark(L,B)&&(le+=1);var fe=Math.abs(100*le/$/$-50)/5;return j+=fe*10,j},T}(),l=function(){for(var R=new Array(256),U=new Array(256),D=0;D<8;D+=1)R[D]=1<=256;)T-=255;return R[T]},b}();function u(R,U){if(typeof R.length>"u")throw R.length+"/"+U;var D=function(){for(var T=0;T"u")throw"bad rs block @ typeNumber:"+T+"/errorCorrectionLevel:"+C;for(var $=O.length/3,j=[],L=0;L<$;L+=1)for(var B=O[L*3+0],H=O[L*3+1],q=O[L*3+2],Y=0;Y>>7-b%8&1)==1},D.put=function(b,T){for(var C=0;C>>T-C-1&1)==1)},D.getLengthInBits=function(){return U},D.putBit=function(b){var T=Math.floor(U/8);R.length<=T&&R.push(0),b&&(R[T]|=128>>>U%8),U+=1},D},p=function(R){var U=o.MODE_NUMBER,D=R,b={};b.getMode=function(){return U},b.getLength=function(O){return D.length},b.write=function(O){for(var $=D,j=0;j+2<$.length;)O.put(T($.substring(j,j+3)),10),j+=3;j<$.length&&($.length-j==1?O.put(T($.substring(j,j+1)),4):$.length-j==2&&O.put(T($.substring(j,j+2)),7))};var T=function(O){for(var $=0,j=0;j>>8&255)*192+(j&255),C.put(j,13),$+=2}if($>>8)},U.writeBytes=function(D,b,T){b=b||0,T=T||D.length;for(var C=0;C0&&(D+=","),D+=R[b];return D+="]",D},U},x=function(){var R=0,U=0,D=0,b="",T={},C=function($){b+=String.fromCharCode(O($&63))},O=function($){if(!($<0)){if($<26)return 65+$;if($<52)return 97+($-26);if($<62)return 48+($-52);if($==62)return 43;if($==63)return 47}throw"n:"+$};return T.writeByte=function($){for(R=R<<8|$&255,U+=8,D+=1;U>=6;)C(R>>>U-6),U-=6},T.flush=function(){if(U>0&&(C(R<<6-U),R=0,U=0),D%3!=0)for(var $=3-D%3,j=0;j<$;j+=1)b+="="},T.toString=function(){return b},T},w=function(R){var U=R,D=0,b=0,T=0,C={};C.read=function(){for(;T<8;){if(D>=U.length){if(T==0)return-1;throw"unexpected end of file./"+T}var $=U.charAt(D);if(D+=1,$=="=")return T=0,-1;if($.match(/^\s$/))continue;b=b<<6|O($.charCodeAt(0)),T+=6}var j=b>>>T-8&255;return T-=8,j};var O=function($){if(65<=$&&$<=90)return $-65;if(97<=$&&$<=122)return $-97+26;if(48<=$&&$<=57)return $-48+52;if($==43)return 62;if($==47)return 63;throw"c:"+$};return C},I=function(R,U){var D=R,b=U,T=new Array(R*U),C={};C.setPixel=function(L,B,H){T[B*D+L]=H},C.write=function(L){L.writeString("GIF87a"),L.writeShort(D),L.writeShort(b),L.writeByte(128),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(0),L.writeByte(255),L.writeByte(255),L.writeByte(255),L.writeString(","),L.writeShort(0),L.writeShort(0),L.writeShort(D),L.writeShort(b),L.writeByte(0);var B=2,H=$(B);L.writeByte(B);for(var q=0;H.length-q>255;)L.writeByte(255),L.writeBytes(H,q,255),q+=255;L.writeByte(H.length-q),L.writeBytes(H,q,H.length-q),L.writeByte(0),L.writeString(";")};var O=function(L){var B=L,H=0,q=0,Y={};return Y.write=function(W,ie){if(W>>>ie)throw"length over";for(;H+ie>=8;)B.writeByte(255&(W<>>=8-H,q=0,H=0;q=W<0&&B.writeByte(q)},Y},$=function(L){for(var B=1<>6,128|l&63):l<55296||l>=57344?a.push(224|l>>12,128|l>>6&63,128|l&63):(s++,l=65536+((l&1023)<<10|i.charCodeAt(s)&1023),a.push(240|l>>18,128|l>>12&63,128|l>>6&63,128|l&63))}return a}return o(r)}})(),function(r){e.exports=r()}(function(){return n})})(ece);const j0t=ece.exports;function tce(e){return navigator!=null&&navigator.clipboard?navigator.clipboard.writeText(e):(W0t(e),Promise.resolve())}function W0t(e){const t=document.createElement("textarea");t.value=e,t.style.top="0",t.style.left="0",t.style.position="fixed",document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy")}finally{document.body.removeChild(t)}}var _5=(e,t,n)=>{const r=t.trim().split(".").reduce((o,i)=>o?o[i]:void 0,e);return r!==void 0?r:n},z0t=(e,t,n=/{{(.*?)}}/g)=>e.replace(n,(r,o)=>_5(t,o,"")),V0t=(e={},t=navigator.language in e?navigator.language:Object.keys(e)[0])=>{const[n,r]=Xn(t),[o,i]=BL(e);return[(l,u,c)=>{const f=_5(o[n()],l,c||"");return typeof f=="function"?f(u):typeof f=="string"?z0t(f,u||{}):f},{add(l,u){i(l,c=>Object.assign(c||{},u))},locale:l=>l?r(l):n(),dict:l=>_5(o,l)}]},nce=DI({}),Fp=()=>Su(nce);const cu=e=>{const[t]=Fp();return Bn(()=>{var n;return t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString())})},H0t=Jo("
"),gM={translationKey:"common.copyLink",text:"Copy Link"},q0t={translationKey:"common.copied",text:"Copied!"},rce=e=>{let t,n,r;const[o,i]=Xn(!1),[a,s]=Xn(!1),[l,u]=Xn(!1),[c,f]=Xn(gM),[p,g]=Xn(LH);Pl(()=>i(a()||l())),Pl(()=>!o()&&f(gM)),Pl(()=>{const w=j0t(0,"L");w.addData(e.sourceUrl),w.make(),t.innerHTML=w.createSvgTag(4,0);const I=t.firstElementChild.clientWidth,_=Math.round(Zue/I*1e5)/1e5;if(r){const R=Math.ceil(A5/(_*4))*4,U=hc(Math.ceil((I-R)/(2*4))*4);r.style.top=U,r.style.left=U,r.style.height=hc(R),r.style.width=hc(R),g(Math.round(LH/_))}n.style.transform=`scale(${_})`});let m=null;const y=()=>{tce(e.sourceUrl),f(q0t),m!=null&&clearTimeout(m),m=setTimeout(()=>f(gM),3e3)};return ke($0t,{get class(){return e.class},get children(){return[ke(L0t,{ref(v){const x=n;typeof x=="function"?x(v):n=v},onMouseEnter:()=>u(!0),onMouseLeave:()=>setTimeout(()=>u(!1)),get children(){return[(()=>{const v=H0t.cloneNode(!0),x=t;return typeof x=="function"?L_(x,v):t=v,v})(),ke(Rr,{get when(){return e.imageUrl},get children(){return ke(F0t,{ref(v){const x=r;typeof x=="function"?x(v):r=v},get children(){return ke(N0t,{get src(){return e.imageUrl},alt:"",get size(){return p()}})}})}})]}}),ke(VI,{onBeforeEnter:v=>{v.animate([{opacity:0,transform:"translate(-50%, 44px)"},{opacity:1,transform:"translate(-50%, 0)"}],{duration:200})},onExit:(v,x)=>{v.animate([{opacity:1,transform:"translate(-50%, 0)"},{opacity:0,transform:"translate(-50%, 44px)"}],{duration:200}).finished.then(()=>{x()})},get children(){return ke(Rr,{get when(){return o()&&!e.disableCopy},get children(){return ke(U0t,{onClick:y,onMouseEnter:()=>o()&&s(!0),onMouseLeave:()=>setTimeout(()=>s(!1)),get children(){return ke(cu,{get translationKey(){return c().translationKey},get children(){return c().text}})}})}})}})]}})},Q0t=Tt.div` font-style: normal; font-weight: ${e=>e.fontWeight}; font-size: ${e=>e.fontSize}; line-height: ${e=>e.lineHeight}; color: ${e=>e.color}; -`,xu=e=>{const t=Xs(),[n]=Fp();let r;const o=()=>e.color||t.colors.text.primary,i=dc({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return Pl(()=>{r&&i.cursor!=="unset"&&getComputedStyle(r).cursor!=="pointer"&&(r.style.cursor="default")}),ke(P0t,{get fontSize(){return i.fontSize},get fontWeight(){return i.fontWeight},get lineHeight(){return i.lineHeight},get color(){return o()},get class(){return i.class},ref(a){const s=r;typeof s=="function"?s(a):r=a},"data-tc-text":"true",get children(){var a;return Bn(()=>!!i.translationKey)()?n(i.translationKey,i.translationValues,(a=i.children)==null?void 0:a.toString()):i.children}})},M0t=Tt.button` +`,xu=e=>{const t=Xs(),[n]=Fp();let r;const o=()=>e.color||t.colors.text.primary,i=fc({fontSize:"14px",fontWeight:"510",lineHeight:"130%"},e);return Pl(()=>{r&&i.cursor!=="unset"&&getComputedStyle(r).cursor!=="pointer"&&(r.style.cursor="default")}),ke(Q0t,{get fontSize(){return i.fontSize},get fontWeight(){return i.fontWeight},get lineHeight(){return i.lineHeight},get color(){return o()},get class(){return i.class},ref(a){const s=r;typeof s=="function"?s(a):r=a},"data-tc-text":"true",get children(){var a;return Bn(()=>!!i.translationKey)()?n(i.translationKey,i.translationValues,(a=i.children)==null?void 0:a.toString()):i.children}})},K0t=Tt.button` cursor: pointer; border: none; background-color: unset; @@ -928,7 +928,7 @@ PERFORMANCE OF THIS SOFTWARE. transition: transform 0.125s ease-in-out; - ${WI} { + ${zI} { &:hover { transform: scale(1.04); } @@ -944,12 +944,12 @@ PERFORMANCE OF THIS SOFTWARE. width: 82px; } - ${jI} { + ${WI} { &:active { transform: scale(0.92); } } -`,O0t=Tt(FL)` +`,Y0t=Tt(FL)` width: 48px; height: 48px; border-radius: 12px; @@ -961,13 +961,13 @@ PERFORMANCE OF THIS SOFTWARE. height: 64px; border-radius: 16px; } -`,R0t=Tt(xu)` +`,G0t=Tt(xu)` font-weight: 590; max-width: 76px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; -`,ice=e=>ke(M0t,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[ke(O0t,{get src(){return e.iconUrl},alt:""}),ke(R0t,{get children(){return e.name}})]}}),D0t=Tt.h1` +`,oce=e=>ke(K0t,{get class(){return e.class},onClick:()=>e.onClick(),"data-tc-wallet-item":"true",get children(){return[ke(Y0t,{get src(){return e.iconUrl},alt:""}),ke(G0t,{get children(){return e.name}})]}}),J0t=Tt.h1` font-style: normal; font-weight: 700; font-size: 24px; @@ -981,7 +981,7 @@ PERFORMANCE OF THIS SOFTWARE. margin-bottom: 6px; cursor: default; -`,VI=e=>{const[t]=Fp();return ke(D0t,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},B0t=Tt.h2` +`,HI=e=>{const[t]=Fp();return ke(J0t,{get class(){return e.class},"data-tc-h1":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},X0t=Tt.h2` font-style: normal; font-weight: 510; font-size: 16px; @@ -995,7 +995,7 @@ PERFORMANCE OF THIS SOFTWARE. margin-bottom: 32px; cursor: default; -`,HI=e=>{const[t]=Fp();return ke(B0t,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},$0t=Tt.h3` +`,qI=e=>{const[t]=Fp();return ke(X0t,{get class(){return e.class},"data-tc-h2":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},Z0t=Tt.h3` font-style: normal; font-weight: 590; font-size: 15px; @@ -1007,7 +1007,7 @@ PERFORMANCE OF THIS SOFTWARE. margin-bottom: 0; cursor: default; -`,L0t=e=>{const[t]=Fp();return ke($0t,{"data-tc-h3":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},F0t=Jo(''),N0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=F0t.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"stroke",n())),r})()},U0t=Jo(''),j0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=U0t.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"fill",n())),r})()},W0t=Jo(''),z0t=Jo(''),ace=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Bn((()=>{const o=Bn(()=>n()==="s");return()=>o()?(()=>{const i=W0t.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$&&io(i,"class",l._v$=u),c!==l._v$2&&io(a,"fill",l._v$2=c),f!==l._v$3&&io(s,"fill",l._v$3=f),l},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=z0t.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$4&&io(i,"class",l._v$4=u),c!==l._v$5&&io(a,"fill",l._v$5=c),f!==l._v$6&&io(s,"fill",l._v$6=f),l},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),i})()})())},V0t=Jo(''),H0t=Jo(''),sce=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.error;return Bn((()=>{const o=Bn(()=>n()==="s");return()=>o()?(()=>{const i=V0t.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$&&io(i,"class",l._v$=u),c!==l._v$2&&io(a,"fill",l._v$2=c),f!==l._v$3&&io(s,"fill",l._v$3=f),l},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=H0t.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$4&&io(i,"class",l._v$4=u),c!==l._v$5&&io(a,"fill",l._v$5=c),f!==l._v$6&&io(s,"fill",l._v$6=f),l},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),i})()})())},q0t=Jo(''),Q0t=Jo(''),qI=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.tertiary,o=pmt` +`,eyt=e=>{const[t]=Fp();return ke(Z0t,{"data-tc-h3":"true",get children(){var n;return Bn(()=>!!e.translationKey)()?t(e.translationKey,e.translationValues,(n=e.children)==null?void 0:n.toString()):e.children}})},tyt=Jo(''),nyt=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.secondary;return(()=>{const r=tyt.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"stroke",n())),r})()},ryt=Jo(''),oyt=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=ryt.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"fill",n())),r})()},iyt=Jo(''),ayt=Jo(''),ice=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.success;return Bn((()=>{const o=Bn(()=>n()==="s");return()=>o()?(()=>{const i=iyt.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$&&io(i,"class",l._v$=u),c!==l._v$2&&io(a,"fill",l._v$2=c),f!==l._v$3&&io(s,"fill",l._v$3=f),l},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=ayt.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$4&&io(i,"class",l._v$4=u),c!==l._v$5&&io(a,"fill",l._v$5=c),f!==l._v$6&&io(s,"fill",l._v$6=f),l},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),i})()})())},syt=Jo(''),lyt=Jo(''),ace=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.error;return Bn((()=>{const o=Bn(()=>n()==="s");return()=>o()?(()=>{const i=syt.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$&&io(i,"class",l._v$=u),c!==l._v$2&&io(a,"fill",l._v$2=c),f!==l._v$3&&io(s,"fill",l._v$3=f),l},{_v$:void 0,_v$2:void 0,_v$3:void 0}),i})():(()=>{const i=lyt.cloneNode(!0),a=i.firstChild,s=a.nextSibling;return Lo(l=>{const u=e.class,c=r(),f=t.colors.constant.white;return u!==l._v$4&&io(i,"class",l._v$4=u),c!==l._v$5&&io(a,"fill",l._v$5=c),f!==l._v$6&&io(s,"fill",l._v$6=f),l},{_v$4:void 0,_v$5:void 0,_v$6:void 0}),i})()})())},uyt=Jo(''),cyt=Jo(''),QI=e=>{const t=Xs(),n=()=>e.size||"s",r=()=>e.fill||t.colors.icon.tertiary,o=Pmt` 0% { transform: rotate(0deg); } @@ -1016,15 +1016,15 @@ PERFORMANCE OF THIS SOFTWARE. } `,i=Nd` animation: ${o} 1s linear infinite; - `;return Bn((()=>{const a=Bn(()=>n()==="s");return()=>a()?(()=>{const s=q0t.cloneNode(!0),l=s.firstChild;return Lo(u=>{const c=A_(i,e.class),f=r();return c!==u._v$&&io(s,"class",u._v$=c),f!==u._v$2&&io(l,"fill",u._v$2=f),u},{_v$:void 0,_v$2:void 0}),s})():(()=>{const s=Q0t.cloneNode(!0),l=s.firstChild;return Lo(u=>{const c=A_(i,e.class),f=r();return c!==u._v$3&&io(s,"class",u._v$3=c),f!==u._v$4&&io(l,"stroke",u._v$4=f),u},{_v$3:void 0,_v$4:void 0}),s})()})())},mv=RI(),K0t=Jo(''),Y0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=K0t.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"fill",n())),r})()},G0t=Jo(''),J0t=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=G0t.cloneNode(!0),o=r.firstChild,i=o.nextSibling;return Lo(a=>{const s=n(),l=n();return s!==a._v$&&io(o,"fill",a._v$=s),l!==a._v$2&&io(i,"fill",a._v$2=l),a},{_v$:void 0,_v$2:void 0}),r})()},X0t={m:"8px",s:"4px",none:"0"},Z0t={m:"16px",s:"8px",none:"0"},eyt=Tt.div` + `;return Bn((()=>{const a=Bn(()=>n()==="s");return()=>a()?(()=>{const s=uyt.cloneNode(!0),l=s.firstChild;return Lo(u=>{const c=A_(i,e.class),f=r();return c!==u._v$&&io(s,"class",u._v$=c),f!==u._v$2&&io(l,"fill",u._v$2=f),u},{_v$:void 0,_v$2:void 0}),s})():(()=>{const s=cyt.cloneNode(!0),l=s.firstChild;return Lo(u=>{const c=A_(i,e.class),f=r();return c!==u._v$3&&io(s,"class",u._v$3=c),f!==u._v$4&&io(l,"stroke",u._v$4=f),u},{_v$3:void 0,_v$4:void 0}),s})()})())},mv=DI(),dyt=Jo(''),fyt=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=dyt.cloneNode(!0),o=r.firstChild;return Lo(()=>io(o,"fill",n())),r})()},pyt=Jo(''),hyt=e=>{const t=Xs(),n=()=>e.fill||t.colors.icon.primary;return(()=>{const r=pyt.cloneNode(!0),o=r.firstChild,i=o.nextSibling;return Lo(a=>{const s=n(),l=n();return s!==a._v$&&io(o,"fill",a._v$=s),l!==a._v$2&&io(i,"fill",a._v$2=l),a},{_v$:void 0,_v$2:void 0}),r})()},gyt={m:"8px",s:"4px",none:"0"},myt={m:"16px",s:"8px",none:"0"},yyt=Tt.div` width: 256px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); - border-radius: ${e=>Z0t[e.theme.borderRadius]}; + border-radius: ${e=>myt[e.theme.borderRadius]}; background-color: ${e=>e.theme.colors.background.primary} color: ${e=>e.theme.colors.text.primary} -`,tyt=Tt.ul` +`,vyt=Tt.ul` background-color: ${e=>e.theme.colors.background.primary}; padding: 8px; `,NH=Tt.button` @@ -1037,7 +1037,7 @@ PERFORMANCE OF THIS SOFTWARE. background-color: ${e=>e.theme.colors.background.primary}; border: none; - border-radius: ${e=>X0t[e.theme.borderRadius]}; + border-radius: ${e=>gyt[e.theme.borderRadius]}; cursor: pointer; transition: background-color, transform 0.1s ease-in-out; @@ -1049,7 +1049,7 @@ PERFORMANCE OF THIS SOFTWARE. &:active { transform: scale(0.96); } -`,UH=Jo("
  • "),gM=e=>ke(xu,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),nyt=e=>{const t=Su(mv),[n,r]=Xn(!1),o=()=>ml(void 0,null,function*(){const a=kL(t.account.address,t.account.chain===Iw.TESTNET);yield nce(a),r(!0),setTimeout(()=>r(!1),1e3)}),i=()=>{t.disconnect(),e.onClose()};return ke(eyt,{ref(a){const s=e.ref;typeof s=="function"?s(a):e.ref=a},get class(){return e.class},"data-tc-dropdown":"true",get children(){return ke(tyt,{get children(){return[(()=>{const a=UH.cloneNode(!0);return Ti(a,ke(NH,{onClick:()=>o(),get children(){return[ke(Y0t,{}),ke(Rr,{get when(){return!n()},get children(){return ke(gM,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),ke(Rr,{get when(){return n()},get children(){return ke(gM,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),a})(),(()=>{const a=UH.cloneNode(!0);return Ti(a,ke(NH,{onClick:()=>i(),get children(){return[ke(J0t,{}),ke(gM,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),a})()]}})}})},ryt={m:"16px",s:"8px",none:"0"},oyt=Tt.div` +`,UH=Jo("
  • "),mM=e=>ke(xu,{get translationKey(){return e.translationKey},fontSize:"15px",fontWeight:"590",get children(){return e.children}}),byt=e=>{const t=Su(mv),[n,r]=Xn(!1),o=()=>ml(void 0,null,function*(){const a=kL(t.account.address,t.account.chain===Iw.TESTNET);yield tce(a),r(!0),setTimeout(()=>r(!1),1e3)}),i=()=>{t.disconnect(),e.onClose()};return ke(yyt,{ref(a){const s=e.ref;typeof s=="function"?s(a):e.ref=a},get class(){return e.class},"data-tc-dropdown":"true",get children(){return ke(vyt,{get children(){return[(()=>{const a=UH.cloneNode(!0);return Ti(a,ke(NH,{onClick:()=>o(),get children(){return[ke(fyt,{}),ke(Rr,{get when(){return!n()},get children(){return ke(mM,{translationKey:"button.dropdown.copy",children:"Copy address"})}}),ke(Rr,{get when(){return n()},get children(){return ke(mM,{translationKey:"button.dropdown.copied",children:"Address copied!"})}})]}})),a})(),(()=>{const a=UH.cloneNode(!0);return Ti(a,ke(NH,{onClick:()=>i(),get children(){return[ke(hyt,{}),ke(mM,{translationKey:"button.dropdown.disconnect",children:"Disconnect"})]}})),a})()]}})}})},wyt={m:"16px",s:"8px",none:"0"},Syt=Tt.div` width: 256px; padding: 12px 16px; display: flex; @@ -1057,77 +1057,77 @@ PERFORMANCE OF THIS SOFTWARE. background-color: ${e=>e.theme.colors.background.primary}; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); - border-radius: ${e=>ryt[e.theme.borderRadius]}; -`,iyt=Tt.div` + border-radius: ${e=>wyt[e.theme.borderRadius]}; +`,xyt=Tt.div` width: 192px; -`,ayt=Tt(xu)` +`,Cyt=Tt(xu)` margin-top: 4px; color: ${e=>e.theme.colors.text.secondary}; -`,UL=e=>{const t=p2(e);return ke(oyt,dc({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[ke(iyt,{get children(){return[ke(L0t,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),ke(Rr,{get when(){return e.text},get children(){return ke(ayt,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Bn(()=>e.icon)]}}))},syt=Tt(qI)` +`,UL=e=>{const t=px(e);return ke(Syt,fc({get class(){return e.class},"data-tc-notification":"true"},t,{get children(){return[ke(xyt,{get children(){return[ke(eyt,{get translationKey(){return e.header.translationKey},get translationValues(){return e.header.translationValues},get children(){return e.children}}),ke(Rr,{get when(){return e.text},get children(){return ke(Cyt,{get translationKey(){return e.text.translationKey},get translationValues(){return e.text.translationValues}})}})]}}),Bn(()=>e.icon)]}}))},Ayt=Tt(QI)` align-self: center; -`,lyt=e=>{var t;const n=Su(mv),[r]=Fp(),o=((t=n.wallet)==null?void 0:t.name)||r("common.yourWallet",{},"your wallet");return ke(UL,{header:{translationKey:"notifications.confirm.header",translationValues:{name:o}},get class(){return e.class},get icon(){return ke(syt,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},uyt=Tt(sce)` +`,_yt=e=>{var t;const n=Su(mv),[r]=Fp(),o=((t=n.wallet)==null?void 0:t.name)||r("common.yourWallet",{},"your wallet");return ke(UL,{header:{translationKey:"notifications.confirm.header",translationValues:{name:o}},get class(){return e.class},get icon(){return ke(Ayt,{})},"data-tc-notification-confirm":"true",children:"Confirm operation in your wallet"})},Eyt=Tt(ace)` margin-top: 2px; -`,cyt=e=>ke(UL,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return ke(uyt,{})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),dyt=Tt(ace)` +`,Tyt=e=>ke(UL,{header:{translationKey:"notifications.transactionCanceled.header"},text:{translationKey:"notifications.transactionCanceled.text"},get icon(){return ke(Eyt,{})},get class(){return e.class},"data-tc-notification-tx-cancelled":"true",children:"Transaction cancelled"}),kyt=Tt(ice)` margin-top: 2px; -`,fyt=e=>ke(UL,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return ke(dyt,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),mM=Nd` +`,Iyt=e=>ke(UL,{header:{translationKey:"notifications.transactionSent.header"},text:{translationKey:"notifications.transactionSent.text"},get icon(){return ke(kyt,{})},get class(){return e.class},"data-tc-notification-tx-sent":"true",children:"Transaction sent"}),yM=Nd` transform: translateY(-8px); margin-bottom: 12px; -`,pyt=Jo('
    '),hyt=e=>{const t=[],[n,r]=Xn([]);let o=-1;const i=4500;return Pl(Igt(qm,a=>{if(a&&a.showNotification){o++;const s=o;r(l=>l.filter(u=>u.action!=="confirm-transaction").concat({id:s,action:a.name})),t.push(setTimeout(()=>r(l=>l.filter(u=>u.id!==s)),i))}})),Fd(()=>{t.forEach(clearTimeout)}),(()=>{const a=pyt.cloneNode(!0);return Ti(a,ke(Zmt,{onBeforeEnter:s=>{s.animate([{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(s,l)=>{s.animate([{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(l)},get children(){return ke(LI,{get each(){return n()},children:s=>ke(FI,{get children(){return[ke(fc,{get when(){return s.action==="transaction-sent"},get children(){return ke(fyt,{class:mM})}}),ke(fc,{get when(){return s.action==="transaction-canceled"},get children(){return ke(cyt,{class:mM})}}),ke(fc,{get when(){return s.action==="confirm-transaction"},get children(){return ke(lyt,{class:mM})}})]}})})}})),Lo(()=>ML(a,e.class)),a})()},lce=Tt(Dc)` +`,Pyt=Jo('
    '),Myt=e=>{const t=[],[n,r]=Xn([]);let o=-1;const i=4500;return Pl(qgt(qm,a=>{if(a&&a.showNotification){o++;const s=o;r(l=>l.filter(u=>u.action!=="confirm-transaction").concat({id:s,action:a.name})),t.push(setTimeout(()=>r(l=>l.filter(u=>u.id!==s)),i))}})),Fd(()=>{t.forEach(clearTimeout)}),(()=>{const a=Pyt.cloneNode(!0);return Ti(a,ke(m0t,{onBeforeEnter:s=>{s.animate([{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-8px)"}],{duration:200})},onExit:(s,l)=>{s.animate([{opacity:1,transform:"translateY(-8px)"},{opacity:0,transform:"translateY(-30px)"}],{duration:200}).finished.then(l)},get children(){return ke(FI,{get each(){return n()},children:s=>ke(NI,{get children(){return[ke(pc,{get when(){return s.action==="transaction-sent"},get children(){return ke(Iyt,{class:yM})}}),ke(pc,{get when(){return s.action==="transaction-canceled"},get children(){return ke(Tyt,{class:yM})}}),ke(pc,{get when(){return s.action==="confirm-transaction"},get children(){return ke(_yt,{class:yM})}})]}})})}})),Lo(()=>ML(a,e.class)),a})()},sce=Tt(Dc)` background-color: ${e=>e.theme.colors.connectButton.background}; color: ${e=>e.theme.colors.connectButton.foreground}; - box-shadow: ${e=>`0 4px 24px ${UI(e.theme.colors.constant.black,.16)}`}; + box-shadow: ${e=>`0 4px 24px ${jI(e.theme.colors.constant.black,.16)}`}; padding: 8px 16px 8px 12px; display: flex; align-items: center; gap: 4px; height: 40px; -`,gyt=Tt(lce)` +`,Oyt=Tt(sce)` padding: 12px 16px; min-width: 148px; justify-content: center; background-color: ${e=>e.theme.colors.background.primary}; -`,myt=Tt(Dc)` +`,Ryt=Tt(Dc)` min-width: 148px; height: 40px; background-color: ${e=>e.theme.colors.background.primary}; color: ${e=>e.theme.colors.connectButton.foreground}; - box-shadow: ${e=>`0 4px 24px ${UI(e.theme.colors.constant.black,.16)}`}; + box-shadow: ${e=>`0 4px 24px ${jI(e.theme.colors.constant.black,.16)}`}; display: flex; align-items: center; justify-content: center; -`,yyt=Tt(qI)` +`,Dyt=Tt(QI)` height: 18px; width: 18px; -`,vyt=Tt.div` +`,Byt=Tt.div` width: fit-content; display: flex; flex-direction: column; align-items: flex-end; -`,byt=Tt(nyt)` +`,$yt=Tt(byt)` box-sizing: border-box; overflow: hidden; margin-top: 12px; -`,wyt=Tt(hyt)` +`,Lyt=Tt(Myt)` > div:first-child { margin-top: 20px; } -`;function uce(e){return e.split("-")[0]}function Syt(e){return e.split("-")[1]}function xyt(e){return["top","bottom"].includes(uce(e))?"x":"y"}function Cyt(e){return e==="y"?"height":"width"}function jH(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=xyt(t),l=Cyt(s),u=r[l]/2-o[l]/2,c=uce(t),f=s==="x";let p;switch(c){case"top":p={x:i,y:r.y-o.height};break;case"bottom":p={x:i,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:a};break;case"left":p={x:r.x-o.width,y:a};break;default:p={x:r.x,y:r.y}}switch(Syt(t)){case"start":p[s]-=u*(n&&f?-1:1);break;case"end":p[s]+=u*(n&&f?-1:1);break}return p}const Ayt=(e,t,n)=>ml(void 0,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield a.isRTL==null?void 0:a.isRTL(t);if({}.NODE_ENV!=="production"){if(a==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(y=>{let{name:v}=y;return v==="autoPlacement"||v==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));(!e||!t)&&console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let u=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=jH(u,r,l),p=r,g={},m=0;for(let y=0;y50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),R&&m<=50){m++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:c,y:f}=jH(u,p,l)),y=-1;continue}}return{x:c,y:f,placement:p,strategy:o,middlewareData:g}});function WH(e){return hp(_o({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function tf(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Sc(e){return tf(e).getComputedStyle(e)}function mp(e){return dce(e)?(e.nodeName||"").toLowerCase():""}let rC;function cce(){if(rC)return rC;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(rC=e.brands.map(t=>t.brand+"/"+t.version).join(" "),rC):navigator.userAgent}function xc(e){return e instanceof tf(e).HTMLElement}function Ml(e){return e instanceof tf(e).Element}function dce(e){return e instanceof tf(e).Node}function zH(e){if(typeof ShadowRoot>"u")return!1;const t=tf(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function QI(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Sc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function _yt(e){return["table","td","th"].includes(mp(e))}function jL(e){const t=/firefox/i.test(cce()),n=Sc(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||(r?r!=="none":!1)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)||["transform","perspective"].some(o=>n.willChange.includes(o))||["paint","layout","strict","content"].some(o=>{const i=n.contain;return i!=null?i.includes(o):!1})}function fce(){return!/^((?!chrome|android).)*safari/i.test(cce())}function WL(e){return["html","body","#document"].includes(mp(e))}const VH=Math.min,kb=Math.max,HH=Math.round,_5={x:1,y:1};function Bw(e){const t=!Ml(e)&&e.contextElement?e.contextElement:Ml(e)?e:null;if(!t)return _5;const n=t.getBoundingClientRect(),r=Sc(t);if(r.boxSizing!=="border-box")return xc(t)?{x:t.offsetWidth>0&&HH(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&HH(n.height)/t.offsetHeight||1}:_5;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}function yp(e,t,n,r){var o,i,a,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect();let u=_5;t&&(r?Ml(r)&&(u=Bw(r)):u=Bw(e));const c=Ml(e)?tf(e):window,f=!fce()&&n,p=(l.left+(f&&(o=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?o:0))/u.x,g=(l.top+(f&&(a=(s=c.visualViewport)==null?void 0:s.offsetTop)!=null?a:0))/u.y,m=l.width/u.x,y=l.height/u.y;return{width:m,height:y,top:g,right:p+m,bottom:g+y,left:p,x:p,y:g}}function Np(e){return((dce(e)?e.ownerDocument:e.document)||window.document).documentElement}function KI(e){return Ml(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function pce(e){return yp(Np(e)).left+KI(e).scrollLeft}function Eyt(e,t,n){const r=xc(t),o=Np(t),i=yp(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((mp(t)!=="body"||QI(o))&&(a=KI(t)),xc(t)){const l=yp(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else o&&(s.x=pce(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function $w(e){if(mp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||(zH(e)?e.host:null)||Np(e);return zH(t)?t.host:t}function qH(e){return!xc(e)||Sc(e).position==="fixed"?null:e.offsetParent}function Tyt(e){let t=$w(e);for(;xc(t)&&!WL(t);){if(jL(t))return t;t=$w(t)}return null}function QH(e){const t=tf(e);let n=qH(e);for(;n&&_yt(n)&&Sc(n).position==="static";)n=qH(n);return n&&(mp(n)==="html"||mp(n)==="body"&&Sc(n).position==="static"&&!jL(n))?t:n||Tyt(e)||t}function kyt(e){if(xc(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=yp(e);return{width:t.width,height:t.height}}function Iyt(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=xc(n),i=Np(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&r!=="fixed")&&((mp(n)!=="body"||QI(i))&&(a=KI(n)),xc(n))){const u=yp(n);s=Bw(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Pyt(e,t){const n=tf(e),r=Np(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=fce();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function Myt(e){var t;const n=Np(e),r=KI(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=kb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=kb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+pce(e);const l=-r.scrollTop;return Sc(o||n).direction==="rtl"&&(s+=kb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function hce(e){const t=$w(e);return WL(t)?e.ownerDocument.body:xc(t)&&QI(t)?t:hce(t)}function Ib(e,t){var n;t===void 0&&(t=[]);const r=hce(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=tf(r);return o?t.concat(i,i.visualViewport||[],QI(r)?r:[]):t.concat(r,Ib(r))}function Oyt(e,t){const n=yp(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=xc(e)?Bw(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{top:u,left:l,right:l+a,bottom:u+s,x:l,y:u,width:a,height:s}}function KH(e,t,n){return t==="viewport"?WH(Pyt(e,n)):Ml(t)?Oyt(t,n):WH(Myt(Np(e)))}function Ryt(e,t){const n=t.get(e);if(n)return n;let r=Ib(e).filter(s=>Ml(s)&&mp(s)!=="body"),o=null;const i=Sc(e).position==="fixed";let a=i?$w(e):e;for(;Ml(a)&&!WL(a);){const s=Sc(a),l=jL(a);(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position))?r=r.filter(c=>c!==a):o=s,a=$w(a)}return t.set(e,r),r}function Dyt(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Ryt(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const f=KH(t,c,o);return u.top=kb(f.top,u.top),u.right=VH(f.right,u.right),u.bottom=VH(f.bottom,u.bottom),u.left=kb(f.left,u.left),u},KH(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const Byt={getClippingRect:Dyt,convertOffsetParentRelativeRectToViewportRelativeRect:Iyt,isElement:Ml,getDimensions:kyt,getOffsetParent:QH,getDocumentElement:Np,getScale:Bw,getElementRects(e){return ml(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||QH,i=this.getDimensions;return{reference:Eyt(t,yield o(n),r),floating:_o({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Sc(e).direction==="rtl"};function $yt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,u=l||i?[...Ml(e)?Ib(e):e.contextElement?Ib(e.contextElement):[],...Ib(t)]:[];u.forEach(m=>{l&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});let c=null;if(a){let m=!0;c=new ResizeObserver(()=>{m||n(),m=!1}),Ml(e)&&!s&&c.observe(e),!Ml(e)&&e.contextElement&&!s&&c.observe(e.contextElement),c.observe(t)}let f,p=s?yp(e):null;s&&g();function g(){const m=yp(e);p&&(m.x!==p.x||m.y!==p.y||m.width!==p.width||m.height!==p.height)&&n(),p=m,f=requestAnimationFrame(g)}return n(),()=>{var m;u.forEach(y=>{l&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),(m=c)==null||m.disconnect(),c=null,s&&cancelAnimationFrame(f)}}const Lyt=(e,t,n)=>{const r=new Map,o=_o({platform:Byt},n),i=hp(_o({},o.platform),{_c:r});return Ayt(e,t,hp(_o({},o),{platform:i}))};function Fyt(e,t,n){let r=()=>{var f;return(f=n==null?void 0:n.placement)!=null?f:"bottom"},o=()=>{var f;return(f=n==null?void 0:n.strategy)!=null?f:"absolute"},[i,a]=Xn({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Xn();Pl(()=>{let f=s();if(f)throw f.value});let u=Bn(()=>(e(),t(),{}));function c(){let f=e(),p=t();if(f&&p){let g=u();Lyt(f,p,{middleware:n==null?void 0:n.middleware,placement:r(),strategy:o()}).then(m=>{g===u()&&a(m)},m=>{l(m)})}}return Pl(()=>{let f=e(),p=t();if(n==null||n.middleware,r(),o(),f&&p)if(n!=null&&n.whileElementsMounted){let g=n.whileElementsMounted(f,p,c);g&&Fd(g)}else c()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:c}}const Nyt=Jo(''),Uyt=()=>{const e=Xs(),t=Su(NI),n=Su(mv),[r,o]=Xn(!1),[i,a]=Xn(t.account),[s,l]=Xn(!0);let u;const[c,f]=Xn(),[p,g]=Xn(),m=Fyt(p,c,{whileElementsMounted:$yt,placement:"bottom-end"}),y=()=>{const w=i();if(w){const I=kL(w.address,w.chain===Iw.TESTNET);return I.slice(0,4)+"…"+I.slice(-4)}return""};n.connectionRestored.then(()=>l(!1));const v=t.onStatusChange(w=>{if(!w){o(!1),a(null);return}a(w.account)}),x=w=>{if(!i()||!r())return;const I=p().contains(w.target),_=u.contains(w.target);!I&&!_&&o(!1)};return Pgt(()=>{document.body.addEventListener("click",x)}),Fd(()=>{document.body.removeEventListener("click",x),v()}),ke(OL,{component:ud,get children(){return[ke(Rr,{get when(){return s()},get children(){return ke(myt,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return ke(yyt,{})}})}}),ke(Rr,{get when(){return!s()},get children(){return[ke(Rr,{get when(){return!i()},get children(){return ke(lce,{onClick:()=>n.connectWallet(),"data-tc-connect-button":"true",get children(){return[ke(j0t,{get fill(){return e.colors.connectButton.foreground}}),ke(xu,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),ke(Rr,{get when(){return i()},get children(){return ke(vyt,{get children(){return[ke(gyt,{onClick:()=>o(w=>!w),ref:g,"data-tc-dropdown-button":"true",get children(){return[ke(xu,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return y()}}),ke(Jue,{direction:"bottom"})]}}),ke(Uue,{get children(){const w=Vi(()=>document.importNode(Nyt,!0));return L_(f,w),w.style.setProperty("z-index","999"),w._$owner=Mgt(),Ti(w,ke(zI,{onBeforeEnter:I=>{I.animate([{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(I,_)=>{I.animate([{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(_)},get children(){return ke(Rr,{get when(){return r()},get children(){return ke(byt,{get hidden(){return!r()},onClose:()=>o(!1),ref(I){const _=u;typeof _=="function"?_(I):u=I}})}})}}),null),Ti(w,ke(wyt,{}),null),Lo(I=>{var _,R;const U=m.strategy,D=`${(_=m.y)!=null?_:0}px`,b=`${(R=m.x)!=null?R:0}px`;return U!==I._v$&&w.style.setProperty("position",I._v$=U),D!==I._v$2&&w.style.setProperty("top",I._v$2=D),b!==I._v$3&&w.style.setProperty("left",I._v$3=b),I},{_v$:void 0,_v$2:void 0,_v$3:void 0}),w}})]}})}})]}})]}})},jyt={m:"16px",s:"8px",none:"0"},Wyt=Tt.div` +`;function lce(e){return e.split("-")[0]}function Fyt(e){return e.split("-")[1]}function Nyt(e){return["top","bottom"].includes(lce(e))?"x":"y"}function Uyt(e){return e==="y"?"height":"width"}function jH(e,t,n){let{reference:r,floating:o}=e;const i=r.x+r.width/2-o.width/2,a=r.y+r.height/2-o.height/2,s=Nyt(t),l=Uyt(s),u=r[l]/2-o[l]/2,c=lce(t),f=s==="x";let p;switch(c){case"top":p={x:i,y:r.y-o.height};break;case"bottom":p={x:i,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:a};break;case"left":p={x:r.x-o.width,y:a};break;default:p={x:r.x,y:r.y}}switch(Fyt(t)){case"start":p[s]-=u*(n&&f?-1:1);break;case"end":p[s]+=u*(n&&f?-1:1);break}return p}const jyt=(e,t,n)=>ml(void 0,null,function*(){const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=yield a.isRTL==null?void 0:a.isRTL(t);if({}.NODE_ENV!=="production"){if(a==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),s.filter(y=>{let{name:v}=y;return v==="autoPlacement"||v==="flip"}).length>1)throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement` middleware","detected. This will lead to an infinite loop. Ensure only one of","either has been passed to the `middleware` array."].join(" "));(!e||!t)&&console.error(["Floating UI: The reference and/or floating element was not defined","when `computePosition()` was called. Ensure that both elements have","been created and can be measured."].join(" "))}let u=yield a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=jH(u,r,l),p=r,g={},m=0;for(let y=0;y50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),R&&m<=50){m++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?yield a.getElementRects({reference:e,floating:t,strategy:o}):R.rects),{x:c,y:f}=jH(u,p,l)),y=-1;continue}}return{x:c,y:f,placement:p,strategy:o,middlewareData:g}});function WH(e){return hp(_o({},e),{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function tf(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xc(e){return tf(e).getComputedStyle(e)}function mp(e){return cce(e)?(e.nodeName||"").toLowerCase():""}let rC;function uce(){if(rC)return rC;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(rC=e.brands.map(t=>t.brand+"/"+t.version).join(" "),rC):navigator.userAgent}function Cc(e){return e instanceof tf(e).HTMLElement}function Ml(e){return e instanceof tf(e).Element}function cce(e){return e instanceof tf(e).Node}function zH(e){if(typeof ShadowRoot>"u")return!1;const t=tf(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function KI(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=xc(e);return/auto|scroll|overlay|hidden/.test(t+r+n)&&!["inline","contents"].includes(o)}function Wyt(e){return["table","td","th"].includes(mp(e))}function jL(e){const t=/firefox/i.test(uce()),n=xc(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||(r?r!=="none":!1)||t&&n.willChange==="filter"||t&&(n.filter?n.filter!=="none":!1)||["transform","perspective"].some(o=>n.willChange.includes(o))||["paint","layout","strict","content"].some(o=>{const i=n.contain;return i!=null?i.includes(o):!1})}function dce(){return!/^((?!chrome|android).)*safari/i.test(uce())}function WL(e){return["html","body","#document"].includes(mp(e))}const VH=Math.min,kb=Math.max,HH=Math.round,E5={x:1,y:1};function Bw(e){const t=!Ml(e)&&e.contextElement?e.contextElement:Ml(e)?e:null;if(!t)return E5;const n=t.getBoundingClientRect(),r=xc(t);if(r.boxSizing!=="border-box")return Cc(t)?{x:t.offsetWidth>0&&HH(n.width)/t.offsetWidth||1,y:t.offsetHeight>0&&HH(n.height)/t.offsetHeight||1}:E5;let o=n.width/parseFloat(r.width),i=n.height/parseFloat(r.height);return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}function yp(e,t,n,r){var o,i,a,s;t===void 0&&(t=!1),n===void 0&&(n=!1);const l=e.getBoundingClientRect();let u=E5;t&&(r?Ml(r)&&(u=Bw(r)):u=Bw(e));const c=Ml(e)?tf(e):window,f=!dce()&&n,p=(l.left+(f&&(o=(i=c.visualViewport)==null?void 0:i.offsetLeft)!=null?o:0))/u.x,g=(l.top+(f&&(a=(s=c.visualViewport)==null?void 0:s.offsetTop)!=null?a:0))/u.y,m=l.width/u.x,y=l.height/u.y;return{width:m,height:y,top:g,right:p+m,bottom:g+y,left:p,x:p,y:g}}function Np(e){return((cce(e)?e.ownerDocument:e.document)||window.document).documentElement}function YI(e){return Ml(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function fce(e){return yp(Np(e)).left+YI(e).scrollLeft}function zyt(e,t,n){const r=Cc(t),o=Np(t),i=yp(e,!0,n==="fixed",t);let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(r||!r&&n!=="fixed")if((mp(t)!=="body"||KI(o))&&(a=YI(t)),Cc(t)){const l=yp(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else o&&(s.x=fce(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function $w(e){if(mp(e)==="html")return e;const t=e.assignedSlot||e.parentNode||(zH(e)?e.host:null)||Np(e);return zH(t)?t.host:t}function qH(e){return!Cc(e)||xc(e).position==="fixed"?null:e.offsetParent}function Vyt(e){let t=$w(e);for(;Cc(t)&&!WL(t);){if(jL(t))return t;t=$w(t)}return null}function QH(e){const t=tf(e);let n=qH(e);for(;n&&Wyt(n)&&xc(n).position==="static";)n=qH(n);return n&&(mp(n)==="html"||mp(n)==="body"&&xc(n).position==="static"&&!jL(n))?t:n||Vyt(e)||t}function Hyt(e){if(Cc(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=yp(e);return{width:t.width,height:t.height}}function qyt(e){let{rect:t,offsetParent:n,strategy:r}=e;const o=Cc(n),i=Np(n);if(n===i)return t;let a={scrollLeft:0,scrollTop:0},s={x:1,y:1};const l={x:0,y:0};if((o||!o&&r!=="fixed")&&((mp(n)!=="body"||KI(i))&&(a=YI(n)),Cc(n))){const u=yp(n);s=Bw(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-a.scrollLeft*s.x+l.x,y:t.y*s.y-a.scrollTop*s.y+l.y}}function Qyt(e,t){const n=tf(e),r=Np(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const u=dce();(u||!u&&t==="fixed")&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}function Kyt(e){var t;const n=Np(e),r=YI(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=kb(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=kb(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-r.scrollLeft+fce(e);const l=-r.scrollTop;return xc(o||n).direction==="rtl"&&(s+=kb(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}function pce(e){const t=$w(e);return WL(t)?e.ownerDocument.body:Cc(t)&&KI(t)?t:pce(t)}function Ib(e,t){var n;t===void 0&&(t=[]);const r=pce(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=tf(r);return o?t.concat(i,i.visualViewport||[],KI(r)?r:[]):t.concat(r,Ib(r))}function Yyt(e,t){const n=yp(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Cc(e)?Bw(e):{x:1,y:1},a=e.clientWidth*i.x,s=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{top:u,left:l,right:l+a,bottom:u+s,x:l,y:u,width:a,height:s}}function KH(e,t,n){return t==="viewport"?WH(Qyt(e,n)):Ml(t)?Yyt(t,n):WH(Kyt(Np(e)))}function Gyt(e,t){const n=t.get(e);if(n)return n;let r=Ib(e).filter(s=>Ml(s)&&mp(s)!=="body"),o=null;const i=xc(e).position==="fixed";let a=i?$w(e):e;for(;Ml(a)&&!WL(a);){const s=xc(a),l=jL(a);(i?!l&&!o:!l&&s.position==="static"&&!!o&&["absolute","fixed"].includes(o.position))?r=r.filter(c=>c!==a):o=s,a=$w(a)}return t.set(e,r),r}function Jyt(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[...n==="clippingAncestors"?Gyt(t,this._c):[].concat(n),r],s=a[0],l=a.reduce((u,c)=>{const f=KH(t,c,o);return u.top=kb(f.top,u.top),u.right=VH(f.right,u.right),u.bottom=VH(f.bottom,u.bottom),u.left=kb(f.left,u.left),u},KH(t,s,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}const Xyt={getClippingRect:Jyt,convertOffsetParentRelativeRectToViewportRelativeRect:qyt,isElement:Ml,getDimensions:Hyt,getOffsetParent:QH,getDocumentElement:Np,getScale:Bw,getElementRects(e){return ml(this,null,function*(){let{reference:t,floating:n,strategy:r}=e;const o=this.getOffsetParent||QH,i=this.getDimensions;return{reference:zyt(t,yield o(n),r),floating:_o({x:0,y:0},yield i(n))}})},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>xc(e).direction==="rtl"};function Zyt(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=r,l=o&&!s,u=l||i?[...Ml(e)?Ib(e):e.contextElement?Ib(e.contextElement):[],...Ib(t)]:[];u.forEach(m=>{l&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});let c=null;if(a){let m=!0;c=new ResizeObserver(()=>{m||n(),m=!1}),Ml(e)&&!s&&c.observe(e),!Ml(e)&&e.contextElement&&!s&&c.observe(e.contextElement),c.observe(t)}let f,p=s?yp(e):null;s&&g();function g(){const m=yp(e);p&&(m.x!==p.x||m.y!==p.y||m.width!==p.width||m.height!==p.height)&&n(),p=m,f=requestAnimationFrame(g)}return n(),()=>{var m;u.forEach(y=>{l&&y.removeEventListener("scroll",n),i&&y.removeEventListener("resize",n)}),(m=c)==null||m.disconnect(),c=null,s&&cancelAnimationFrame(f)}}const evt=(e,t,n)=>{const r=new Map,o=_o({platform:Xyt},n),i=hp(_o({},o.platform),{_c:r});return jyt(e,t,hp(_o({},o),{platform:i}))};function tvt(e,t,n){let r=()=>{var f;return(f=n==null?void 0:n.placement)!=null?f:"bottom"},o=()=>{var f;return(f=n==null?void 0:n.strategy)!=null?f:"absolute"},[i,a]=Xn({x:null,y:null,placement:r(),strategy:o(),middlewareData:{}}),[s,l]=Xn();Pl(()=>{let f=s();if(f)throw f.value});let u=Bn(()=>(e(),t(),{}));function c(){let f=e(),p=t();if(f&&p){let g=u();evt(f,p,{middleware:n==null?void 0:n.middleware,placement:r(),strategy:o()}).then(m=>{g===u()&&a(m)},m=>{l(m)})}}return Pl(()=>{let f=e(),p=t();if(n==null||n.middleware,r(),o(),f&&p)if(n!=null&&n.whileElementsMounted){let g=n.whileElementsMounted(f,p,c);g&&Fd(g)}else c()}),{get x(){return i().x},get y(){return i().y},get placement(){return i().placement},get strategy(){return i().strategy},get middlewareData(){return i().middlewareData},update:c}}const nvt=Jo(''),rvt=()=>{const e=Xs(),t=Su(UI),n=Su(mv),[r,o]=Xn(!1),[i,a]=Xn(t.account),[s,l]=Xn(!0);let u;const[c,f]=Xn(),[p,g]=Xn(),m=tvt(p,c,{whileElementsMounted:Zyt,placement:"bottom-end"}),y=()=>{const w=i();if(w){const I=kL(w.address,w.chain===Iw.TESTNET);return I.slice(0,4)+"…"+I.slice(-4)}return""};n.connectionRestored.then(()=>l(!1));const v=t.onStatusChange(w=>{if(!w){o(!1),a(null);return}a(w.account)}),x=w=>{if(!i()||!r())return;const I=p().contains(w.target),_=u.contains(w.target);!I&&!_&&o(!1)};return Qgt(()=>{document.body.addEventListener("click",x)}),Fd(()=>{document.body.removeEventListener("click",x),v()}),ke(OL,{component:ud,get children(){return[ke(Rr,{get when(){return s()},get children(){return ke(Ryt,{disabled:!0,"data-tc-connect-button-loading":"true",get children(){return ke(Dyt,{})}})}}),ke(Rr,{get when(){return!s()},get children(){return[ke(Rr,{get when(){return!i()},get children(){return ke(sce,{onClick:()=>n.connectWallet(),"data-tc-connect-button":"true",get children(){return[ke(oyt,{get fill(){return e.colors.connectButton.foreground}}),ke(xu,{translationKey:"button.connectWallet",fontSize:"15px",lineHeight:"18px",fontWeight:"590",get color(){return e.colors.connectButton.foreground},children:"Connect wallet"})]}})}}),ke(Rr,{get when(){return i()},get children(){return ke(Byt,{get children(){return[ke(Oyt,{onClick:()=>o(w=>!w),ref:g,"data-tc-dropdown-button":"true",get children(){return[ke(xu,{fontSize:"15px",fontWeight:"590",lineHeight:"18px",get children(){return y()}}),ke(Gue,{direction:"bottom"})]}}),ke(Nue,{get children(){const w=Vi(()=>document.importNode(nvt,!0));return L_(f,w),w.style.setProperty("z-index","999"),w._$owner=Kgt(),Ti(w,ke(VI,{onBeforeEnter:I=>{I.animate([{opacity:0,transform:"translateY(-8px)"},{opacity:1,transform:"translateY(0)"}],{duration:150})},onExit:(I,_)=>{I.animate([{opacity:1,transform:"translateY(0)"},{opacity:0,transform:"translateY(-8px)"}],{duration:150}).finished.then(_)},get children(){return ke(Rr,{get when(){return r()},get children(){return ke($yt,{get hidden(){return!r()},onClose:()=>o(!1),ref(I){const _=u;typeof _=="function"?_(I):u=I}})}})}}),null),Ti(w,ke(Lyt,{}),null),Lo(I=>{var _,R;const U=m.strategy,D=`${(_=m.y)!=null?_:0}px`,b=`${(R=m.x)!=null?R:0}px`;return U!==I._v$&&w.style.setProperty("position",I._v$=U),D!==I._v$2&&w.style.setProperty("top",I._v$2=D),b!==I._v$3&&w.style.setProperty("left",I._v$3=b),I},{_v$:void 0,_v$2:void 0,_v$3:void 0}),w}})]}})}})]}})]}})},ovt={m:"16px",s:"8px",none:"0"},ivt=Tt.div` ${ef("mobile")} { padding: 10px 16px 0 16px; } -`,zyt=Tt(VI)` +`,avt=Tt(HI)` max-width: 320px; margin: 0 auto 6px; -`,Vyt=Tt(Xue)` +`,svt=Tt(Jue)` position: absolute; top: 16px; left: 16px; -`,Hyt=Tt(oce)` +`,lvt=Tt(rce)` margin-bottom: 16px; -`,qyt=Tt.div` +`,uvt=Tt.div` display: flex; gap: 16px; height: 56px; @@ -1138,19 +1138,19 @@ PERFORMANCE OF THIS SOFTWARE. font-size: 16px; line-height: 20px; width: 100%; - border-radius: ${e=>jyt[e.theme.borderRadius]}; -`,Qyt=Tt.div` + border-radius: ${e=>ovt[e.theme.borderRadius]}; +`,cvt=Tt.div` display: flex; justify-content: space-between; align-items: center; -`,Kyt=Tt(xu)` +`,dvt=Tt(xu)` padding-left: 8px; color: ${e=>e.theme.colors.text.secondary}; font-size: 16px; -`,[Ui,oC]=BL({buttonRootId:null,language:"en",returnStrategy:"back",walletsListConfiguration:{}}),Yyt=Tt.a` +`,[Ui,oC]=BL({buttonRootId:null,language:"en",returnStrategy:"back",walletsListConfiguration:{}}),fvt=Tt.a` display: block; text-decoration: unset; -`,YI=e=>ke(Yyt,dc({get href(){return e.href},get target(){return e.blank?"_blank":"_self"}},()=>e.blank?{rel:"noreferrer noopener"}:{},{get children(){return e.children}})),Gyt=e=>{const t=Su(NI),n=Bn(()=>t.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest));return ke(Wyt,{"data-tc-wallet-qr-modal-desktop":"true",get children(){return[ke(Vyt,{icon:"arrow",onClick:()=>e.onBackClick()}),ke(zyt,{translationKey:"walletModal.qrCodeModal.connectWith",get translationValues(){return{name:e.wallet.name}},get children(){return["Connect with ",Bn(()=>e.wallet.name)]}}),ke(HI,{translationKey:"walletModal.qrCodeModal.scan",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan QR code with your phone’s or ",Bn(()=>e.wallet.name),"’s camera."]}}),ke(Hyt,{disableCopy:!1,get sourceUrl(){return n()},get imageUrl(){return e.wallet.imageUrl}}),ke(qyt,{get children(){return[ke(YH,{scale:"s",onClick:()=>{uu(hp(_o({},e.wallet),{openMethod:"universal-link"})),NL(Dw(n(),Ui.returnStrategy))},get children(){return ke(cu,{translationKey:"walletModal.qrCodeModal.openWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Open ",Bn(()=>e.wallet.name)]}})}}),ke(Rr,{get when(){return OI(e.wallet)},get children(){return ke(YH,{scale:"s",onClick:()=>{uu(e.wallet),t.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest)},get children(){return ke(cu,{translationKey:"common.openExtension",children:"Open Extension"})}})}})]}}),ke(Qyt,{get children(){return[ke(Kyt,{translationKey:"walletModal.qrCodeModal.dontHave",get translationValues(){return{name:e.wallet.name}},get children(){return["Don't have ",Bn(()=>e.wallet.name),"?"]}}),ke(YI,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return ke(Dc,{get children(){return ke(cu,{translationKey:"common.get",children:"GET"})}})}})]}})]}})},Jyt=Tt(Zue)` +`,GI=e=>ke(fvt,fc({get href(){return e.href},get target(){return e.blank?"_blank":"_self"}},()=>e.blank?{rel:"noreferrer noopener"}:{},{get children(){return e.children}})),pvt=e=>{const t=Su(UI),n=Bn(()=>t.connect({universalLink:e.wallet.universalLink,bridgeUrl:e.wallet.bridgeUrl},e.additionalRequest));return ke(ivt,{"data-tc-wallet-qr-modal-desktop":"true",get children(){return[ke(svt,{icon:"arrow",onClick:()=>e.onBackClick()}),ke(avt,{translationKey:"walletModal.qrCodeModal.connectWith",get translationValues(){return{name:e.wallet.name}},get children(){return["Connect with ",Bn(()=>e.wallet.name)]}}),ke(qI,{translationKey:"walletModal.qrCodeModal.scan",get translationValues(){return{name:e.wallet.name}},get children(){return["Scan QR code with your phone’s or ",Bn(()=>e.wallet.name),"’s camera."]}}),ke(lvt,{disableCopy:!1,get sourceUrl(){return n()},get imageUrl(){return e.wallet.imageUrl}}),ke(uvt,{get children(){return[ke(YH,{scale:"s",onClick:()=>{uu(hp(_o({},e.wallet),{openMethod:"universal-link"})),NL(Dw(n(),Ui.returnStrategy))},get children(){return ke(cu,{translationKey:"walletModal.qrCodeModal.openWallet",get translationValues(){return{name:e.wallet.name}},get children(){return["Open ",Bn(()=>e.wallet.name)]}})}}),ke(Rr,{get when(){return RI(e.wallet)},get children(){return ke(YH,{scale:"s",onClick:()=>{uu(e.wallet),t.connect({jsBridgeKey:e.wallet.jsBridgeKey},e.additionalRequest)},get children(){return ke(cu,{translationKey:"common.openExtension",children:"Open Extension"})}})}})]}}),ke(cvt,{get children(){return[ke(dvt,{translationKey:"walletModal.qrCodeModal.dontHave",get translationValues(){return{name:e.wallet.name}},get children(){return["Don't have ",Bn(()=>e.wallet.name),"?"]}}),ke(GI,{get href(){return e.wallet.aboutUrl},blank:!0,get children(){return ke(Dc,{get children(){return ke(cu,{translationKey:"common.get",children:"GET"})}})}})]}})]}})},hvt=Tt(Xue)` padding-left: 24px; padding-right: 24px; @@ -1160,13 +1160,13 @@ PERFORMANCE OF THIS SOFTWARE. min-height: 364px; } -`,Xyt=Tt(VI)` +`,gvt=Tt(HI)` margin-top: 12px; ${ef("mobile")} { padding: 0 10px; } -`,Zyt=Tt.div` +`,mvt=Tt.div` margin: 30px 0; width: 100%; display: flex; @@ -1180,9 +1180,9 @@ PERFORMANCE OF THIS SOFTWARE. min-width: 84px; text-align: center; font-weight: 590; -`,evt=Tt(y0t)` +`,yvt=Tt(D0t)` margin: 0 auto 22px; -`;function tvt(e){return[...new Set(e)]}function nvt(e,t,n){return t.map(r=>{const o=n.find(i=>i[e]===r[e]);return n=n.filter(i=>i[e]!==r[e]),o===void 0?r:o}).concat(n)}function rvt(e){return"jsBridgeKey"in e?hp(_o({},e),{injected:Pg.isWalletInjected(e.jsBridgeKey),embedded:Pg.isInsideWalletBrowser(e.jsBridgeKey)}):e}function gce(e,t){var n;return t&&(n=t.includeWallets)!=null&&n.length&&(e=nvt("name",e,t.includeWallets.map(rvt))),e}const[JH,ovt]=Xn(d0("mobile"));Gue()&&window.addEventListener("resize",()=>ovt(d0("mobile")));const ivt=Tt.ul` +`;function vvt(e){return[...new Set(e)]}function bvt(e,t,n){return t.map(r=>{const o=n.find(i=>i[e]===r[e]);return n=n.filter(i=>i[e]!==r[e]),o===void 0?r:o}).concat(n)}function wvt(e){return"jsBridgeKey"in e?hp(_o({},e),{injected:Pg.isWalletInjected(e.jsBridgeKey),embedded:Pg.isInsideWalletBrowser(e.jsBridgeKey)}):e}function hce(e,t){var n;return t&&(n=t.includeWallets)!=null&&n.length&&(e=bvt("name",e,t.includeWallets.map(wvt))),e}const[JH,Svt]=Xn(d0("mobile"));Yue()&&window.addEventListener("resize",()=>Svt(d0("mobile")));const xvt=Tt.ul` display: flex; margin: 0 auto 24px; width: fit-content; @@ -1198,7 +1198,7 @@ PERFORMANCE OF THIS SOFTWARE. -ms-overflow-style: none; scrollbar-width: none; -`,avt=Tt.li` +`,Cvt=Tt.li` width: 82px; min-width: 82px; height: 124px; @@ -1212,7 +1212,7 @@ PERFORMANCE OF THIS SOFTWARE. transition: transform 0.1s ease-in-out; - ${WI} { + ${zI} { &:hover { transform: scale(1.04); } @@ -1222,12 +1222,12 @@ PERFORMANCE OF THIS SOFTWARE. transform: scale(0.96); } - ${jI} { + ${WI} { &:active { transform: scale(0.92); } } -`,svt=Tt.div` +`,Avt=Tt.div` width: 1px; margin: 0 10px; height: 24px; @@ -1235,7 +1235,7 @@ PERFORMANCE OF THIS SOFTWARE. top: 30px; background-color: ${e=>e.theme.colors.icon.tertiary}; -`,lvt=Tt.div` +`,_vt=Tt.div` width: 64px; height: 64px; border-radius: 16px; @@ -1243,27 +1243,27 @@ PERFORMANCE OF THIS SOFTWARE. align-items: center; justify-content: center; - background-color: ${e=>UI(e.theme.colors.accent,.12)}; + background-color: ${e=>jI(e.theme.colors.accent,.12)}; color: ${e=>e.theme.colors.accent}; margin-bottom: 8px; -`,uvt=Tt(HI)` +`,Evt=Tt(qI)` margin-bottom: 24px; padding: 0 24px; min-height: 44px; -`,cvt=Tt(Dc)` +`,Tvt=Tt(Dc)` display: block; margin: 0 auto; -`,zL={LEARN_MORE:"https://ton.org/wallets"},dvt=Jo('
    '),fvt=Jo("
  • "),pvt=e=>{const t=Ui.connector,n=Xs(),r=i=>{if(!Gmt())return e.onSelect(i);if("universalLink"in i){uu(hp(_o({},i),{openMethod:"universal-link"}));const a=t.connect({universalLink:i.universalLink,bridgeUrl:i.bridgeUrl},e.additionalRequest);Rw(Dw(a,Ui.returnStrategy));return}NL(i.aboutUrl)},o=()=>{const i=t.connect(e.walletsList.filter(TL).map(a=>({bridgeUrl:a.bridgeUrl,universalLink:a.universalLink})),e.additionalRequest);uu({openMethod:"universal-link"}),Rw(Dw(i,Ui.returnStrategy))};return(()=>{const i=dvt.cloneNode(!0);return Ti(i,ke(VI,{translationKey:"walletModal.mobileSelectWalletModal.connectWallet",children:"Connect a wallet"}),null),Ti(i,ke(uvt,{translationKey:"walletModal.mobileSelectWalletModal.selectWallet",children:"Select your wallet from the options to get started."}),null),Ti(i,ke(ivt,{get children(){return[ke(avt,{onClick:o,get children(){return[ke(lvt,{get children(){return ke(N0t,{get fill(){return n.colors.accent}})}}),ke(xu,{fontWeight:590,translationKey:"walletModal.mobileSelectWalletModal.installedWallet",children:"Installed wallet"})]}}),ke(svt,{children:" "}),ke(LI,{get each(){return e.walletsList.filter(a=>"bridgeUrl"in a)},children:a=>(()=>{const s=fvt.cloneNode(!0);return Ti(s,ke(ice,{get iconUrl(){return a.imageUrl},get name(){return a.name},onClick:()=>r(a)})),s})()})]}}),null),Ti(i,ke(YI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(cvt,{get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}}),null),i})()},mce={m:"16px",s:"8px",none:"0"},hvt={m:"8px",s:"4px",none:"0"},gvt=Tt.div` +`,zL={LEARN_MORE:"https://ton.org/wallets"},kvt=Jo('
    '),Ivt=Jo("
  • "),Pvt=e=>{const t=Ui.connector,n=Xs(),r=i=>{if(!p0t())return e.onSelect(i);if("universalLink"in i){uu(hp(_o({},i),{openMethod:"universal-link"}));const a=t.connect({universalLink:i.universalLink,bridgeUrl:i.bridgeUrl},e.additionalRequest);Rw(Dw(a,Ui.returnStrategy));return}NL(i.aboutUrl)},o=()=>{const i=t.connect(e.walletsList.filter(TL).map(a=>({bridgeUrl:a.bridgeUrl,universalLink:a.universalLink})),e.additionalRequest);uu({openMethod:"universal-link"}),Rw(Dw(i,Ui.returnStrategy))};return(()=>{const i=kvt.cloneNode(!0);return Ti(i,ke(HI,{translationKey:"walletModal.mobileSelectWalletModal.connectWallet",children:"Connect a wallet"}),null),Ti(i,ke(Evt,{translationKey:"walletModal.mobileSelectWalletModal.selectWallet",children:"Select your wallet from the options to get started."}),null),Ti(i,ke(xvt,{get children(){return[ke(Cvt,{onClick:o,get children(){return[ke(_vt,{get children(){return ke(nyt,{get fill(){return n.colors.accent}})}}),ke(xu,{fontWeight:590,translationKey:"walletModal.mobileSelectWalletModal.installedWallet",children:"Installed wallet"})]}}),ke(Avt,{children:" "}),ke(FI,{get each(){return e.walletsList.filter(a=>"bridgeUrl"in a)},children:a=>(()=>{const s=Ivt.cloneNode(!0);return Ti(s,ke(oce,{get iconUrl(){return a.imageUrl},get name(){return a.name},onClick:()=>r(a)})),s})()})]}}),null),Ti(i,ke(GI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(Tvt,{get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}}),null),i})()},gce={m:"16px",s:"8px",none:"0"},Mvt={m:"8px",s:"4px",none:"0"},Ovt=Tt.div` display: flex; flex-direction: column; align-items: center; -`,mvt=Tt(HI)` +`,Rvt=Tt(qI)` max-width: 320px; margin-bottom: 24px; -`,yvt=Tt(oce)` +`,Dvt=Tt(rce)` margin-bottom: 16px; -`,vvt=Tt.div` +`,Bvt=Tt.div` display: flex; gap: 16px; width: 100%; @@ -1274,7 +1274,7 @@ PERFORMANCE OF THIS SOFTWARE. width: 100%; padding: 0 16px; height: 56px; - border-radius: ${e=>mce[e.theme.borderRadius]}; + border-radius: ${e=>gce[e.theme.borderRadius]}; &:hover { ${e=>e.disableEventsAnimation?"transform: unset;":""} @@ -1283,7 +1283,7 @@ PERFORMANCE OF THIS SOFTWARE. &:active { ${e=>e.disableEventsAnimation?"transform: unset;":""} } -`,bvt=Tt.ul` +`,$vt=Tt.ul` position: absolute; bottom: 100%; left: 0; @@ -1293,9 +1293,9 @@ PERFORMANCE OF THIS SOFTWARE. transform: translateY(-16px); background-color: ${e=>e.theme.colors.background.primary}; - border-radius: ${e=>mce[e.theme.borderRadius]}; + border-radius: ${e=>gce[e.theme.borderRadius]}; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.16); -`,wvt=Tt.li` +`,Lvt=Tt.li` padding: 8px; display: flex; @@ -1303,7 +1303,7 @@ PERFORMANCE OF THIS SOFTWARE. gap: 8px; cursor: pointer; - border-radius: ${e=>hvt[e.theme.borderRadius]}; + border-radius: ${e=>Mvt[e.theme.borderRadius]}; transition: background-color, transform 0.1s ease-in-out; @@ -1314,12 +1314,12 @@ PERFORMANCE OF THIS SOFTWARE. &:active { transform: scale(0.96); } -`,Svt=Tt(FL)` +`,Fvt=Tt(FL)` width: 24px; height: 24px; border-radius: 6px; -`,xvt=Tt.div` +`,Nvt=Tt.div` margin-top: 23px; margin-bottom: 1px; width: 100%; @@ -1329,15 +1329,15 @@ PERFORMANCE OF THIS SOFTWARE. `;Tt(xu)` color: ${e=>e.theme.colors.text.secondary}; font-size: 16px; -`;const Cvt=e=>{const[t,n]=Xn(!1),r=Ui.connector,o=e.walletsList.filter(TL).map(c=>({bridgeUrl:c.bridgeUrl,universalLink:c.universalLink})),i=e.walletsList.filter(OI);uu({openMethod:"qrcode"});const a=Bn(()=>r.connect(o,e.additionalRequest)),s=()=>{let c=!1;function f(){c=!0,uu({openMethod:"universal-link"}),window.removeEventListener("blur",f)}window.addEventListener("blur",f),Rw(Dw(a(),Ui.returnStrategy)),setTimeout(()=>{c||e.openWalletFallback(),window.removeEventListener("blur",f)},200)},l=c=>{if(c.stopPropagation(),i.length===1){const f=i[0];uu(f),r.connect({jsBridgeKey:f.jsBridgeKey},e.additionalRequest);return}n(f=>!f)},u=c=>{uu(c),r.connect({jsBridgeKey:c.jsBridgeKey},e.additionalRequest)};return ke(gvt,{onClick:()=>n(!1),"data-tc-universal-qr-desktop":"true",get children(){return[ke(mvt,{translationKey:"walletModal.universalQRModal.scanQR",children:"Scan QR code with a TON Connect compatible wallet."}),ke(yvt,{get sourceUrl(){return a()},get disableCopy(){return t()}}),ke(vvt,{get children(){return[ke(XH,{onClick:s,scale:"s",get children(){return[ke(Rr,{get when(){return i.length},get children(){return ke(cu,{translationKey:"walletModal.universalQRModal.openWallet",children:"Open Wallet"})}}),ke(Rr,{get when(){return!i.length},get children(){return ke(cu,{translationKey:"walletModal.universalQRModal.openInstalledWallet",children:"Open Installed Wallet"})}})]}}),ke(Rr,{get when(){return i.length},get children(){return ke(XH,{onClick:l,get disableEventsAnimation(){return t()},scale:"s",get children(){return[ke(zI,{onBeforeEnter:c=>{c.animate([{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-16px)"}],{duration:150})},onExit:(c,f)=>{c.animate([{opacity:1,transform:"translateY(-16px)"},{opacity:0,transform:"translateY(0)"}],{duration:150}).finished.then(f)},get children(){return ke(Rr,{get when(){return t()},get children(){return ke(bvt,{get children(){return ke(LI,{each:i,children:c=>ke(wvt,{onClick:()=>u(c),get children(){return[ke(Svt,{get src(){return c.imageUrl},alt:""}),ke(xu,{fontWeight:590,get children(){return c.name}})]}})})}})}})}}),ke(cu,{translationKey:"common.openExtension",children:"Open Extension"})]}})}})]}}),ke(Rr,{get when(){return!i.length},get children(){return ke(xvt,{get children(){return ke(YI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(Dc,{appearance:"flat",class:Nd` +`;const Uvt=e=>{const[t,n]=Xn(!1),r=Ui.connector,o=e.walletsList.filter(TL).map(c=>({bridgeUrl:c.bridgeUrl,universalLink:c.universalLink})),i=e.walletsList.filter(RI);uu({openMethod:"qrcode"});const a=Bn(()=>r.connect(o,e.additionalRequest)),s=()=>{let c=!1;function f(){c=!0,uu({openMethod:"universal-link"}),window.removeEventListener("blur",f)}window.addEventListener("blur",f),Rw(Dw(a(),Ui.returnStrategy)),setTimeout(()=>{c||e.openWalletFallback(),window.removeEventListener("blur",f)},200)},l=c=>{if(c.stopPropagation(),i.length===1){const f=i[0];uu(f),r.connect({jsBridgeKey:f.jsBridgeKey},e.additionalRequest);return}n(f=>!f)},u=c=>{uu(c),r.connect({jsBridgeKey:c.jsBridgeKey},e.additionalRequest)};return ke(Ovt,{onClick:()=>n(!1),"data-tc-universal-qr-desktop":"true",get children(){return[ke(Rvt,{translationKey:"walletModal.universalQRModal.scanQR",children:"Scan QR code with a TON Connect compatible wallet."}),ke(Dvt,{get sourceUrl(){return a()},get disableCopy(){return t()}}),ke(Bvt,{get children(){return[ke(XH,{onClick:s,scale:"s",get children(){return[ke(Rr,{get when(){return i.length},get children(){return ke(cu,{translationKey:"walletModal.universalQRModal.openWallet",children:"Open Wallet"})}}),ke(Rr,{get when(){return!i.length},get children(){return ke(cu,{translationKey:"walletModal.universalQRModal.openInstalledWallet",children:"Open Installed Wallet"})}})]}}),ke(Rr,{get when(){return i.length},get children(){return ke(XH,{onClick:l,get disableEventsAnimation(){return t()},scale:"s",get children(){return[ke(VI,{onBeforeEnter:c=>{c.animate([{opacity:0,transform:"translateY(0)"},{opacity:1,transform:"translateY(-16px)"}],{duration:150})},onExit:(c,f)=>{c.animate([{opacity:1,transform:"translateY(-16px)"},{opacity:0,transform:"translateY(0)"}],{duration:150}).finished.then(f)},get children(){return ke(Rr,{get when(){return t()},get children(){return ke($vt,{get children(){return ke(FI,{each:i,children:c=>ke(Lvt,{onClick:()=>u(c),get children(){return[ke(Fvt,{get src(){return c.imageUrl},alt:""}),ke(xu,{fontWeight:590,get children(){return c.name}})]}})})}})}})}}),ke(cu,{translationKey:"common.openExtension",children:"Open Extension"})]}})}})]}}),ke(Rr,{get when(){return!i.length},get children(){return ke(Nvt,{get children(){return ke(GI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(Dc,{appearance:"flat",class:Nd` font-size: 15px; - `,get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}})}})}})]}})},Avt=Tt.div` + `,get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}})}})}})]}})},jvt=Tt.div` display: flex; flex-direction: column; align-items: center; -`,_vt=Tt(HI)` +`,Wvt=Tt(qI)` margin-bottom: 26px; -`,Evt=Tt.ul` +`,zvt=Tt.ul` display: grid; grid-template-columns: repeat(auto-fit, 92px); justify-content: center; @@ -1361,18 +1361,18 @@ PERFORMANCE OF THIS SOFTWARE. background: #cacaca; border-radius: 12px; } -`,Tvt=Tt(Dc)` +`,Vvt=Tt(Dc)` display: block; margin: 0 auto 1px; font-size: 15px; -`,kvt=Jo("
  • "),Ivt=e=>ke(Avt,{"data-tc-select-wallet-desktop":"true",get children(){return[ke(_vt,{translationKey:"walletModal.desktopSelectWalletModal.selectWallet",children:"Choose your preferred wallet from the options to get started."}),ke(Evt,{get children(){return ke(LI,{get each(){return e.walletsList},children:t=>(()=>{const n=kvt.cloneNode(!0);return Ti(n,ke(ice,{get iconUrl(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()})}}),ke(YI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(Tvt,{appearance:"flat",get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}})]}}),Pvt=Jo('
    '),Mvt=()=>{const{locale:e}=Fp()[1];Pl(()=>e(Ui.language));const t=Su(NI),n=Su(mv),[r]=kgt(()=>n.getWallets()),[o,i]=Xn(null),[a,s]=Xn(0),l=Bn(()=>{if(r.state!=="ready")return null;let m=gce(r(),Ui.walletsListConfiguration);const y=Ui.preferredWalletName,v=m.find(w=>w.name===y),x=m.filter(w=>w.name===y).length>=2;return y&&v&&!x&&(m=[v].concat(m.filter(w=>w.name!==y))),m}),u=()=>{var m;return((m=Ui.connectRequestParameters)==null?void 0:m.state)==="loading"},c=Bn(()=>{var m;if(!u())return(m=Ui.connectRequestParameters)==null?void 0:m.value}),f=()=>{w5(!1),i(null)},p=m=>{if(OI(m)){uu(m),t.connect({jsBridgeKey:m.jsBridgeKey},c());return}if(TL(m)){uu(hp(_o({},m),{openMethod:"qrcode"})),i(m);return}NL(m.aboutUrl)},g=t.onStatusChange(m=>{m&&f()});return Fd(g),ke(Jyt,{get opened(){return imt()},onClose:f,"data-tc-wallets-modal-container":"true",get children(){return[ke(Rr,{get when(){return u()||!l()},get children(){return[ke(Xyt,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),ke(Zyt,{get children(){return ke(qI,{size:"m"})}})]}}),ke(Rr,{get when(){return Bn(()=>!u())()&&l()},get children(){return[ke(Rr,{get when(){return Bn(()=>!!JH())()&&!o()},get children(){return ke(pvt,{onSelect:p,get walletsList(){return l()},get additionalRequest(){return c()}})}}),ke(Rr,{get when(){return!JH()},get children(){return ke(Rr,{get when(){return!o()},get children(){const m=Pvt.cloneNode(!0);return Ti(m,ke(evt,{get tab1(){return ke(GH,{translationKey:"walletModal.qrCode",cursor:"unset",children:"QR Code"})},get tab2(){return ke(GH,{translationKey:"walletModal.wallets",cursor:"unset",children:"Wallets"})},get selectedTabIndex(){return a()},onSelectedTabIndexChange:s}),null),Ti(m,ke(FI,{get children(){return[ke(fc,{get when(){return a()===0},get children(){return ke(Cvt,{get walletsList(){return l()},get additionalRequest(){return c()},openWalletFallback:()=>s(1)})}}),ke(fc,{get when(){return a()===1},get children(){return ke(Ivt,{get walletsList(){return l()},onSelect:p})}})]}}),null),m}})}}),ke(Rr,{get when(){return o()},get children(){return ke(Gyt,{get additionalRequest(){return c()},get wallet(){return o()},onBackClick:()=>i(null)})}})]}})]}})},Ovt=Tt.div` +`,Hvt=Jo("
  • "),qvt=e=>ke(jvt,{"data-tc-select-wallet-desktop":"true",get children(){return[ke(Wvt,{translationKey:"walletModal.desktopSelectWalletModal.selectWallet",children:"Choose your preferred wallet from the options to get started."}),ke(zvt,{get children(){return ke(FI,{get each(){return e.walletsList},children:t=>(()=>{const n=Hvt.cloneNode(!0);return Ti(n,ke(oce,{get iconUrl(){return t.imageUrl},get name(){return t.name},onClick:()=>e.onSelect(t)})),n})()})}}),ke(GI,{get href(){return zL.LEARN_MORE},blank:!0,get children(){return ke(Vvt,{appearance:"flat",get children(){return ke(cu,{translationKey:"common.learnMore",children:"Learn more"})}})}})]}}),Qvt=Jo('
    '),Kvt=()=>{const{locale:e}=Fp()[1];Pl(()=>e(Ui.language));const t=Su(UI),n=Su(mv),[r]=Hgt(()=>n.getWallets()),[o,i]=Xn(null),[a,s]=Xn(0),l=Bn(()=>{if(r.state!=="ready")return null;let m=hce(r(),Ui.walletsListConfiguration);const y=Ui.preferredWalletName,v=m.find(w=>w.name===y),x=m.filter(w=>w.name===y).length>=2;return y&&v&&!x&&(m=[v].concat(m.filter(w=>w.name!==y))),m}),u=()=>{var m;return((m=Ui.connectRequestParameters)==null?void 0:m.state)==="loading"},c=Bn(()=>{var m;if(!u())return(m=Ui.connectRequestParameters)==null?void 0:m.value}),f=()=>{S5(!1),i(null)},p=m=>{if(RI(m)){uu(m),t.connect({jsBridgeKey:m.jsBridgeKey},c());return}if(TL(m)){uu(hp(_o({},m),{openMethod:"qrcode"})),i(m);return}NL(m.aboutUrl)},g=t.onStatusChange(m=>{m&&f()});return Fd(g),ke(hvt,{get opened(){return xmt()},onClose:f,"data-tc-wallets-modal-container":"true",get children(){return[ke(Rr,{get when(){return u()||!l()},get children(){return[ke(gvt,{translationKey:"walletModal.loading",children:"Wallets list is loading"}),ke(mvt,{get children(){return ke(QI,{size:"m"})}})]}}),ke(Rr,{get when(){return Bn(()=>!u())()&&l()},get children(){return[ke(Rr,{get when(){return Bn(()=>!!JH())()&&!o()},get children(){return ke(Pvt,{onSelect:p,get walletsList(){return l()},get additionalRequest(){return c()}})}}),ke(Rr,{get when(){return!JH()},get children(){return ke(Rr,{get when(){return!o()},get children(){const m=Qvt.cloneNode(!0);return Ti(m,ke(yvt,{get tab1(){return ke(GH,{translationKey:"walletModal.qrCode",cursor:"unset",children:"QR Code"})},get tab2(){return ke(GH,{translationKey:"walletModal.wallets",cursor:"unset",children:"Wallets"})},get selectedTabIndex(){return a()},onSelectedTabIndexChange:s}),null),Ti(m,ke(NI,{get children(){return[ke(pc,{get when(){return a()===0},get children(){return ke(Uvt,{get walletsList(){return l()},get additionalRequest(){return c()},openWalletFallback:()=>s(1)})}}),ke(pc,{get when(){return a()===1},get children(){return ke(qvt,{get walletsList(){return l()},onSelect:p})}})]}}),null),m}})}}),ke(Rr,{get when(){return o()},get children(){return ke(pvt,{get additionalRequest(){return c()},get wallet(){return o()},onBackClick:()=>i(null)})}})]}})]}})},Yvt=Tt.div` display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; -`,Rvt=Tt(VI)` +`,Gvt=Tt(HI)` margin-top: 16px; -`,Dvt=Tt(xu)` +`,Jvt=Tt(xu)` font-weight: 510; font-size: 16px; line-height: 20px; @@ -1380,9 +1380,9 @@ PERFORMANCE OF THIS SOFTWARE. max-width: 250px; color: ${e=>e.theme.colors.text.secondary}; -`,Bvt=Tt(Dc)` +`,Xvt=Tt(Dc)` margin-top: 32px; -`,VL=e=>{const t=p2(e);return ke(Ovt,dc(t,{get children(){return[Bn(()=>e.icon),ke(Rvt,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),ke(Dvt,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),ke(Rr,{get when(){return e.showButton!==!1},get children(){return ke(Bvt,{onClick:()=>e.onClose(),get children(){return ke(cu,{translationKey:"common.close",children:"Close"})}})}})]}}))},$vt=e=>{var t;const n=Su(mv),[r]=Fp(),o=((t=n.wallet)==null?void 0:t.name)||r("common.yourWallet",{},"your wallet");return ke(VL,{headerTranslationKey:"actionModal.confirmTransaction.header",headerTranslationValues:{name:o},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return ke(qI,{size:"m"})},onClose:()=>e.onClose(),showButton:!1,"data-tc-confirm-modal":"true"})},Lvt=e=>ke(VL,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return ke(sce,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),Fvt=e=>ke(VL,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return ke(ace,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),Nvt=()=>ke(Zue,{get opened(){var e;return Bn(()=>qm()!==null)()&&((e=qm())==null?void 0:e.openModal)===!0},onClose:()=>c0(null),"data-tc-actions-modal-container":"true",get children(){return ke(FI,{get children(){return[ke(fc,{get when(){return qm().name==="transaction-sent"},get children(){return ke(Fvt,{onClose:()=>c0(null)})}}),ke(fc,{get when(){return qm().name==="transaction-canceled"},get children(){return ke(Lvt,{onClose:()=>c0(null)})}}),ke(fc,{get when(){return qm().name==="confirm-transaction"},get children(){return ke($vt,{onClose:()=>c0(null)})}})]}})}}),Uvt=e=>{const t=T0t(kmt,Ui.language);return Kmt(),Qmt(),ke(rce.Provider,{value:t,get children(){return ke(mv.Provider,{get value(){return e.tonConnectUI},get children(){return ke(NI.Provider,{get value(){return Ui.connector},get children(){return[ke(Nmt,{}),ke(hmt,{theme:$mt,get children(){return[ke(Rr,{get when(){return Ui.buttonRootId},get children(){return ke(Uue,{get mount(){return document.getElementById(Ui.buttonRootId)},get children(){return ke(Uyt,{})}})}}),ke(OL,{component:ud,get children(){return[ke(Mvt,{}),ke(Nvt,{})]}})]}})]}})}})}})},lh={openWalletsModal:()=>void setTimeout(()=>w5(!0)),closeWalletsModal:()=>void setTimeout(()=>w5(!1)),setAction:e=>void setTimeout(()=>c0(e)),clearAction:()=>void setTimeout(()=>c0(null)),getSelectedWalletInfo:()=>amt(),renderApp:(e,t)=>Qgt(()=>ke(Uvt,{tonConnectUI:t}),document.getElementById(e))};class jvt{constructor(){_s(this,"localStorage"),_s(this,"storageKey","ton-connect-ui_wallet-info"),Yue(),this.localStorage=localStorage}setWalletInfo(t){this.localStorage.setItem(this.storageKey,JSON.stringify(t))}getWalletInfo(){const t=this.localStorage.getItem(this.storageKey);return t?JSON.parse(t):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class Wvt{constructor(){_s(this,"localStorage"),_s(this,"storageKey","ton-connect-ui_preferred-wallet"),Yue(),this.localStorage=localStorage}setPreferredWalletName(t){this.localStorage.setItem(this.storageKey,t)}getPreferredWalletName(){return this.localStorage.getItem(this.storageKey)||void 0}}class zvt{constructor(t){if(_s(this,"walletInfoStorage",new jvt),_s(this,"preferredWalletStorage",new Wvt),_s(this,"connector"),_s(this,"walletInfo",null),_s(this,"systemThemeChangeUnsubscribe",null),_s(this,"actionsConfiguration"),_s(this,"walletsList"),_s(this,"connectRequestParametersCallback"),_s(this,"connectionRestored",Promise.resolve(!1)),t&&"connector"in t&&t.connector)this.connector=t.connector;else if(t&&"manifestUrl"in t&&t.manifestUrl)this.connector=new Pg({manifestUrl:t.manifestUrl});else throw new Qu("You have to specify a `manifestUrl` or a `connector` in the options.");this.walletsList=this.getWallets(),this.walletsList.then(o=>Ymt(tvt(o.map(i=>i.imageUrl))));const n=this.normalizeWidgetRoot(t==null?void 0:t.widgetRootId);this.subscribeToWalletChange(),(t==null?void 0:t.restoreConnection)!==!1&&(this.connectionRestored=new Promise(o=>ml(this,null,function*(){yield this.connector.restoreConnection(),this.connector.connected||this.walletInfoStorage.removeWalletInfo(),o(this.connector.connected)}))),this.uiOptions=ip(t,{uiPreferences:{theme:"SYSTEM"}});const r=this.preferredWalletStorage.getPreferredWalletName();oC({connector:this.connector,preferredWalletName:r}),lh.renderApp(n,this)}static getWallets(){return Pg.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return!this.connector.wallet||!this.walletInfo?null:_o(_o({},this.connector.wallet),this.walletInfo)}set uiOptions(t){var n,r,o,i,a;this.checkButtonRootExist(t.buttonRootId),this.actionsConfiguration=t.actionsConfiguration,(n=t.uiPreferences)!=null&&n.theme?((r=t.uiPreferences)==null?void 0:r.theme)!=="SYSTEM"?((o=this.systemThemeChangeUnsubscribe)==null||o.call(this),cM(t.uiPreferences.theme,t.uiPreferences.colorsSet)):(cM(Wmt(),t.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=zmt(cM))):(i=t.uiPreferences)!=null&&i.colorsSet&&Fmt(t.uiPreferences.colorsSet),(a=t.uiPreferences)!=null&&a.borderRadius&&Lmt(t.uiPreferences.borderRadius),oC(s=>{var l;const u=ip(_o(_o(_o({},t.language&&{language:t.language}),!!((l=t.actionsConfiguration)!=null&&l.returnStrategy)&&{returnStrategy:t.actionsConfiguration.returnStrategy}),!!t.walletsListConfiguration&&{walletsListConfiguration:t.walletsListConfiguration}),gy(s));return t.buttonRootId!==void 0&&(u.buttonRootId=t.buttonRootId),u})}setConnectRequestParameters(t){var n;oC({connectRequestParameters:t}),((t==null?void 0:t.state)==="ready"||!t)&&((n=this.connectRequestParametersCallback)==null||n.call(this,t==null?void 0:t.value))}getWallets(){return ml(this,null,function*(){return this.connector.getWallets()})}onStatusChange(t,n){return this.connector.onStatusChange(r=>ml(this,null,function*(){if(r){const o=yield this.getSelectedWalletInfo(r);t(_o(_o({},r),o||this.walletInfoStorage.getWalletInfo()))}else t(r)}),n)}connectWallet(){return ml(this,null,function*(){const n=(yield this.getWallets()).find(_ue);if(n){const r=i=>{uu(n),this.connector.connect({jsBridgeKey:n.jsBridgeKey},i)},o=Ui.connectRequestParameters;(o==null?void 0:o.state)==="loading"?this.connectRequestParametersCallback=r:r(o==null?void 0:o.value)}else lh.openWalletsModal();return new Promise((r,o)=>{const i=this.connector.onStatusChange(a=>ml(this,null,function*(){if(i(),a){const s=yield this.getSelectedWalletInfo(a);r(_o(_o({},a),s||this.walletInfoStorage.getWalletInfo()))}else o(new Qu("Wallet was not connected"))}),o)})})}disconnect(){return lh.clearAction(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(t,n){return ml(this,null,function*(){if(!this.connected||!this.walletInfo)throw new Qu("Connect wallet to send a transaction.");const{notifications:r,modals:o,returnStrategy:i}=this.getModalsAndNotificationsConfiguration(n);"universalLink"in this.walletInfo&&this.walletInfo.openMethod==="universal-link"&&Rw(Dw(this.walletInfo.universalLink,i)),lh.setAction({name:"confirm-transaction",showNotification:r.includes("before"),openModal:o.includes("before")});try{const a=yield this.connector.sendTransaction(t);return lh.setAction({name:"transaction-sent",showNotification:r.includes("success"),openModal:o.includes("success")}),a}catch(a){throw lh.setAction({name:"transaction-canceled",showNotification:r.includes("error"),openModal:o.includes("error")}),a instanceof Cr?a:(console.error(a),new Qu("Unhandled error:"+a))}})}subscribeToWalletChange(){this.connector.onStatusChange(t=>ml(this,null,function*(){var n;t?(yield this.updateWalletInfo(t),this.setPreferredWalletName(((n=this.walletInfo)==null?void 0:n.name)||t.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletName(t){this.preferredWalletStorage.setPreferredWalletName(t),oC({preferredWalletName:t})}getSelectedWalletInfo(t){return ml(this,null,function*(){let n=lh.getSelectedWalletInfo();if(!n)return null;let r;if("name"in n)r=n;else{const i=gce(yield this.walletsList,Ui.walletsListConfiguration).find(a=>a.name.toLowerCase()===t.device.appName.toLowerCase());if(!i)throw new Qu(`Cannot find WalletInfo for the '${t.device.appName}' wallet`);r=_o(_o({},i),n)}return r})}updateWalletInfo(t){return ml(this,null,function*(){const n=yield this.getSelectedWalletInfo(t);n?(this.walletInfo=n,this.walletInfoStorage.setWalletInfo(n)):this.walletInfo=this.walletInfoStorage.getWalletInfo()})}normalizeWidgetRoot(t){if(!t||!document.getElementById(t)){t="tc-widget-root";const n=document.createElement("div");n.id=t,document.body.appendChild(n)}return t}checkButtonRootExist(t){if(t!=null&&!document.getElementById(t))throw new Qu(`${t} element not found in the document.`)}getModalsAndNotificationsConfiguration(t){var n,r,o;const i=["before","success","error"];let a=i;(n=this.actionsConfiguration)!=null&&n.notifications&&((r=this.actionsConfiguration)==null?void 0:r.notifications)!=="all"&&(a=this.actionsConfiguration.notifications),t!=null&&t.notifications&&(t.notifications==="all"?a=i:a=t.notifications);let s=["before"];return(o=this.actionsConfiguration)!=null&&o.modals&&(this.actionsConfiguration.modals==="all"?s=i:s=this.actionsConfiguration.modals),t!=null&&t.modals&&(t.modals==="all"?s=i:s=t.modals),{notifications:a,modals:s,returnStrategy:(t==null?void 0:t.returnStrategy)||"back"}}}var Vvt=Object.defineProperty,j_=Object.getOwnPropertySymbols,yce=Object.prototype.hasOwnProperty,vce=Object.prototype.propertyIsEnumerable,ZH=(e,t,n)=>t in e?Vvt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Hvt=(e,t)=>{for(var n in t||(t={}))yce.call(t,n)&&ZH(e,n,t[n]);if(j_)for(var n of j_(t))vce.call(t,n)&&ZH(e,n,t[n]);return e},qvt=(e,t)=>{var n={};for(var r in e)yce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&j_)for(var r of j_(e))t.indexOf(r)<0&&vce.call(e,r)&&(n[r]=e[r]);return n},bce={exports:{}},$1={};/** +`,VL=e=>{const t=px(e);return ke(Yvt,fc(t,{get children(){return[Bn(()=>e.icon),ke(Gvt,{get translationKey(){return e.headerTranslationKey},get translationValues(){return e.headerTranslationValues}}),ke(Jvt,{get translationKey(){return e.textTranslationKey},get translationValues(){return e.textTranslationValues}}),ke(Rr,{get when(){return e.showButton!==!1},get children(){return ke(Xvt,{onClick:()=>e.onClose(),get children(){return ke(cu,{translationKey:"common.close",children:"Close"})}})}})]}}))},Zvt=e=>{var t;const n=Su(mv),[r]=Fp(),o=((t=n.wallet)==null?void 0:t.name)||r("common.yourWallet",{},"your wallet");return ke(VL,{headerTranslationKey:"actionModal.confirmTransaction.header",headerTranslationValues:{name:o},textTranslationKey:"actionModal.confirmTransaction.text",get icon(){return ke(QI,{size:"m"})},onClose:()=>e.onClose(),showButton:!1,"data-tc-confirm-modal":"true"})},e1t=e=>ke(VL,{headerTranslationKey:"actionModal.transactionCanceled.header",textTranslationKey:"actionModal.transactionCanceled.text",get icon(){return ke(ace,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-canceled-modal":"true"}),t1t=e=>ke(VL,{headerTranslationKey:"actionModal.transactionSent.header",textTranslationKey:"actionModal.transactionSent.text",get icon(){return ke(ice,{size:"m"})},onClose:()=>e.onClose(),"data-tc-transaction-sent-modal":"true"}),n1t=()=>ke(Xue,{get opened(){var e;return Bn(()=>qm()!==null)()&&((e=qm())==null?void 0:e.openModal)===!0},onClose:()=>c0(null),"data-tc-actions-modal-container":"true",get children(){return ke(NI,{get children(){return[ke(pc,{get when(){return qm().name==="transaction-sent"},get children(){return ke(t1t,{onClose:()=>c0(null)})}}),ke(pc,{get when(){return qm().name==="transaction-canceled"},get children(){return ke(e1t,{onClose:()=>c0(null)})}}),ke(pc,{get when(){return qm().name==="confirm-transaction"},get children(){return ke(Zvt,{onClose:()=>c0(null)})}})]}})}}),r1t=e=>{const t=V0t(Hmt,Ui.language);return d0t(),c0t(),ke(nce.Provider,{value:t,get children(){return ke(mv.Provider,{get value(){return e.tonConnectUI},get children(){return ke(UI.Provider,{get value(){return Ui.connector},get children(){return[ke(n0t,{}),ke(Mmt,{theme:Zmt,get children(){return[ke(Rr,{get when(){return Ui.buttonRootId},get children(){return ke(Nue,{get mount(){return document.getElementById(Ui.buttonRootId)},get children(){return ke(rvt,{})}})}}),ke(OL,{component:ud,get children(){return[ke(Kvt,{}),ke(n1t,{})]}})]}})]}})}})}})},lh={openWalletsModal:()=>void setTimeout(()=>S5(!0)),closeWalletsModal:()=>void setTimeout(()=>S5(!1)),setAction:e=>void setTimeout(()=>c0(e)),clearAction:()=>void setTimeout(()=>c0(null)),getSelectedWalletInfo:()=>Cmt(),renderApp:(e,t)=>cmt(()=>ke(r1t,{tonConnectUI:t}),document.getElementById(e))};class o1t{constructor(){_s(this,"localStorage"),_s(this,"storageKey","ton-connect-ui_wallet-info"),Kue(),this.localStorage=localStorage}setWalletInfo(t){this.localStorage.setItem(this.storageKey,JSON.stringify(t))}getWalletInfo(){const t=this.localStorage.getItem(this.storageKey);return t?JSON.parse(t):null}removeWalletInfo(){this.localStorage.removeItem(this.storageKey)}}class i1t{constructor(){_s(this,"localStorage"),_s(this,"storageKey","ton-connect-ui_preferred-wallet"),Kue(),this.localStorage=localStorage}setPreferredWalletName(t){this.localStorage.setItem(this.storageKey,t)}getPreferredWalletName(){return this.localStorage.getItem(this.storageKey)||void 0}}class a1t{constructor(t){if(_s(this,"walletInfoStorage",new o1t),_s(this,"preferredWalletStorage",new i1t),_s(this,"connector"),_s(this,"walletInfo",null),_s(this,"systemThemeChangeUnsubscribe",null),_s(this,"actionsConfiguration"),_s(this,"walletsList"),_s(this,"connectRequestParametersCallback"),_s(this,"connectionRestored",Promise.resolve(!1)),t&&"connector"in t&&t.connector)this.connector=t.connector;else if(t&&"manifestUrl"in t&&t.manifestUrl)this.connector=new Pg({manifestUrl:t.manifestUrl});else throw new Ku("You have to specify a `manifestUrl` or a `connector` in the options.");this.walletsList=this.getWallets(),this.walletsList.then(o=>f0t(vvt(o.map(i=>i.imageUrl))));const n=this.normalizeWidgetRoot(t==null?void 0:t.widgetRootId);this.subscribeToWalletChange(),(t==null?void 0:t.restoreConnection)!==!1&&(this.connectionRestored=new Promise(o=>ml(this,null,function*(){yield this.connector.restoreConnection(),this.connector.connected||this.walletInfoStorage.removeWalletInfo(),o(this.connector.connected)}))),this.uiOptions=ip(t,{uiPreferences:{theme:"SYSTEM"}});const r=this.preferredWalletStorage.getPreferredWalletName();oC({connector:this.connector,preferredWalletName:r}),lh.renderApp(n,this)}static getWallets(){return Pg.getWallets()}get connected(){return this.connector.connected}get account(){return this.connector.account}get wallet(){return!this.connector.wallet||!this.walletInfo?null:_o(_o({},this.connector.wallet),this.walletInfo)}set uiOptions(t){var n,r,o,i,a;this.checkButtonRootExist(t.buttonRootId),this.actionsConfiguration=t.actionsConfiguration,(n=t.uiPreferences)!=null&&n.theme?((r=t.uiPreferences)==null?void 0:r.theme)!=="SYSTEM"?((o=this.systemThemeChangeUnsubscribe)==null||o.call(this),dM(t.uiPreferences.theme,t.uiPreferences.colorsSet)):(dM(i0t(),t.uiPreferences.colorsSet),this.systemThemeChangeUnsubscribe||(this.systemThemeChangeUnsubscribe=a0t(dM))):(i=t.uiPreferences)!=null&&i.colorsSet&&t0t(t.uiPreferences.colorsSet),(a=t.uiPreferences)!=null&&a.borderRadius&&e0t(t.uiPreferences.borderRadius),oC(s=>{var l;const u=ip(_o(_o(_o({},t.language&&{language:t.language}),!!((l=t.actionsConfiguration)!=null&&l.returnStrategy)&&{returnStrategy:t.actionsConfiguration.returnStrategy}),!!t.walletsListConfiguration&&{walletsListConfiguration:t.walletsListConfiguration}),gy(s));return t.buttonRootId!==void 0&&(u.buttonRootId=t.buttonRootId),u})}setConnectRequestParameters(t){var n;oC({connectRequestParameters:t}),((t==null?void 0:t.state)==="ready"||!t)&&((n=this.connectRequestParametersCallback)==null||n.call(this,t==null?void 0:t.value))}getWallets(){return ml(this,null,function*(){return this.connector.getWallets()})}onStatusChange(t,n){return this.connector.onStatusChange(r=>ml(this,null,function*(){if(r){const o=yield this.getSelectedWalletInfo(r);t(_o(_o({},r),o||this.walletInfoStorage.getWalletInfo()))}else t(r)}),n)}connectWallet(){return ml(this,null,function*(){const n=(yield this.getWallets()).find(Aue);if(n){const r=i=>{uu(n),this.connector.connect({jsBridgeKey:n.jsBridgeKey},i)},o=Ui.connectRequestParameters;(o==null?void 0:o.state)==="loading"?this.connectRequestParametersCallback=r:r(o==null?void 0:o.value)}else lh.openWalletsModal();return new Promise((r,o)=>{const i=this.connector.onStatusChange(a=>ml(this,null,function*(){if(i(),a){const s=yield this.getSelectedWalletInfo(a);r(_o(_o({},a),s||this.walletInfoStorage.getWalletInfo()))}else o(new Ku("Wallet was not connected"))}),o)})})}disconnect(){return lh.clearAction(),this.walletInfoStorage.removeWalletInfo(),this.connector.disconnect()}sendTransaction(t,n){return ml(this,null,function*(){if(!this.connected||!this.walletInfo)throw new Ku("Connect wallet to send a transaction.");const{notifications:r,modals:o,returnStrategy:i}=this.getModalsAndNotificationsConfiguration(n);"universalLink"in this.walletInfo&&this.walletInfo.openMethod==="universal-link"&&Rw(Dw(this.walletInfo.universalLink,i)),lh.setAction({name:"confirm-transaction",showNotification:r.includes("before"),openModal:o.includes("before")});try{const a=yield this.connector.sendTransaction(t);return lh.setAction({name:"transaction-sent",showNotification:r.includes("success"),openModal:o.includes("success")}),a}catch(a){throw lh.setAction({name:"transaction-canceled",showNotification:r.includes("error"),openModal:o.includes("error")}),a instanceof Cr?a:(console.error(a),new Ku("Unhandled error:"+a))}})}subscribeToWalletChange(){this.connector.onStatusChange(t=>ml(this,null,function*(){var n;t?(yield this.updateWalletInfo(t),this.setPreferredWalletName(((n=this.walletInfo)==null?void 0:n.name)||t.device.appName)):this.walletInfoStorage.removeWalletInfo()}))}setPreferredWalletName(t){this.preferredWalletStorage.setPreferredWalletName(t),oC({preferredWalletName:t})}getSelectedWalletInfo(t){return ml(this,null,function*(){let n=lh.getSelectedWalletInfo();if(!n)return null;let r;if("name"in n)r=n;else{const i=hce(yield this.walletsList,Ui.walletsListConfiguration).find(a=>a.name.toLowerCase()===t.device.appName.toLowerCase());if(!i)throw new Ku(`Cannot find WalletInfo for the '${t.device.appName}' wallet`);r=_o(_o({},i),n)}return r})}updateWalletInfo(t){return ml(this,null,function*(){const n=yield this.getSelectedWalletInfo(t);n?(this.walletInfo=n,this.walletInfoStorage.setWalletInfo(n)):this.walletInfo=this.walletInfoStorage.getWalletInfo()})}normalizeWidgetRoot(t){if(!t||!document.getElementById(t)){t="tc-widget-root";const n=document.createElement("div");n.id=t,document.body.appendChild(n)}return t}checkButtonRootExist(t){if(t!=null&&!document.getElementById(t))throw new Ku(`${t} element not found in the document.`)}getModalsAndNotificationsConfiguration(t){var n,r,o;const i=["before","success","error"];let a=i;(n=this.actionsConfiguration)!=null&&n.notifications&&((r=this.actionsConfiguration)==null?void 0:r.notifications)!=="all"&&(a=this.actionsConfiguration.notifications),t!=null&&t.notifications&&(t.notifications==="all"?a=i:a=t.notifications);let s=["before"];return(o=this.actionsConfiguration)!=null&&o.modals&&(this.actionsConfiguration.modals==="all"?s=i:s=this.actionsConfiguration.modals),t!=null&&t.modals&&(t.modals==="all"?s=i:s=t.modals),{notifications:a,modals:s,returnStrategy:(t==null?void 0:t.returnStrategy)||"back"}}}var s1t=Object.defineProperty,j_=Object.getOwnPropertySymbols,mce=Object.prototype.hasOwnProperty,yce=Object.prototype.propertyIsEnumerable,ZH=(e,t,n)=>t in e?s1t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,l1t=(e,t)=>{for(var n in t||(t={}))mce.call(t,n)&&ZH(e,n,t[n]);if(j_)for(var n of j_(t))yce.call(t,n)&&ZH(e,n,t[n]);return e},u1t=(e,t)=>{var n={};for(var r in e)mce.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&j_)for(var r of j_(e))t.indexOf(r)<0&&yce.call(e,r)&&(n[r]=e[r]);return n},vce={exports:{}},$1={};/** * @license React * react-jsx-runtime.production.min.js * @@ -1390,7 +1390,7 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eq;function Qvt(){if(eq)return $1;eq=1;var e=Dn,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,f={},p=null,g=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:p,ref:g,props:f,_owner:o.current}}return $1.Fragment=n,$1.jsx=a,$1.jsxs=a,$1}(function(e){e.exports=Qvt()})(bce);const wce=bce.exports.jsx;function Sce(){return typeof window<"u"}function Kvt(){return!Sce()}const xce=M.createContext(null);let yM=null;const Yvt=e=>{var t=e,{children:n}=t,r=qvt(t,["children"]);return Sce()&&!yM&&(yM=new zvt(r)),wce(xce.Provider,{value:yM,children:n})},Gvt=M.memo(Yvt);class HL extends Qu{constructor(...t){super(...t),Object.setPrototypeOf(this,HL.prototype)}}class qL extends HL{constructor(...t){super(...t),Object.setPrototypeOf(this,qL.prototype)}}function Jvt(e){if(!e)throw new qL("You should add on the top of the app to use TonConnect");return!0}function GI(){const e=M.useContext(xce),t=M.useCallback(n=>{e&&(e.uiOptions=n)},[e]);return Kvt()?[null,()=>{}]:(Jvt(e),[e,t])}const tq="ton-connect-button",Xvt=({className:e,style:t})=>{const[n,r]=GI();return M.useEffect(()=>(r({buttonRootId:tq}),()=>r({buttonRootId:null})),[r]),wce("div",{id:tq,className:e,style:Hvt({width:"fit-content"},t)})},Zvt=M.memo(Xvt);function Cce(){const[e]=GI(),[t,n]=M.useState((e==null?void 0:e.wallet)||null);return M.useEffect(()=>{if(e)return e.onStatusChange(r=>{n(r)})},[e]),t}function wi(e=!0){const t=Cce();return t?e?kL(t.account.address,t.account.chain===Iw.TESTNET):t.account.address:""}const nq=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},o=()=>t,s={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,s),s},e1t=e=>e?nq(e):nq;var E5={},t1t={get exports(){return E5},set exports(e){E5=e}},Ace={};/** + */var eq;function c1t(){if(eq)return $1;eq=1;var e=Dn,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,f={},p=null,g=null;u!==void 0&&(p=""+u),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(c in l)r.call(l,c)&&!i.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:p,ref:g,props:f,_owner:o.current}}return $1.Fragment=n,$1.jsx=a,$1.jsxs=a,$1}(function(e){e.exports=c1t()})(vce);const bce=vce.exports.jsx;function wce(){return typeof window<"u"}function d1t(){return!wce()}const Sce=M.createContext(null);let vM=null;const f1t=e=>{var t=e,{children:n}=t,r=u1t(t,["children"]);return wce()&&!vM&&(vM=new a1t(r)),bce(Sce.Provider,{value:vM,children:n})},p1t=M.memo(f1t);class HL extends Ku{constructor(...t){super(...t),Object.setPrototypeOf(this,HL.prototype)}}class qL extends HL{constructor(...t){super(...t),Object.setPrototypeOf(this,qL.prototype)}}function h1t(e){if(!e)throw new qL("You should add on the top of the app to use TonConnect");return!0}function JI(){const e=M.useContext(Sce),t=M.useCallback(n=>{e&&(e.uiOptions=n)},[e]);return d1t()?[null,()=>{}]:(h1t(e),[e,t])}const tq="ton-connect-button",g1t=({className:e,style:t})=>{const[n,r]=JI();return M.useEffect(()=>(r({buttonRootId:tq}),()=>r({buttonRootId:null})),[r]),bce("div",{id:tq,className:e,style:l1t({width:"fit-content"},t)})},m1t=M.memo(g1t);function xce(){const[e]=JI(),[t,n]=M.useState((e==null?void 0:e.wallet)||null);return M.useEffect(()=>{if(e)return e.onStatusChange(r=>{n(r)})},[e]),t}function wi(e=!0){const t=xce();return t?e?kL(t.account.address,t.account.chain===Iw.TESTNET):t.account.address:""}const nq=e=>{let t;const n=new Set,r=(l,u)=>{const c=typeof l=="function"?l(t):l;if(!Object.is(c,t)){const f=t;t=u??typeof c!="object"?c:Object.assign({},t,c),n.forEach(p=>p(t,f))}},o=()=>t,s={setState:r,getState:o,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,s),s},y1t=e=>e?nq(e):nq;var T5={},v1t={get exports(){return T5},set exports(e){T5=e}},Cce={};/** * @license React * use-sync-external-store-shim/with-selector.production.min.js * @@ -1398,7 +1398,7 @@ PERFORMANCE OF THIS SOFTWARE. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var JI=M,n1t=SA;function r1t(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var o1t=typeof Object.is=="function"?Object.is:r1t,i1t=n1t.useSyncExternalStore,a1t=JI.useRef,s1t=JI.useEffect,l1t=JI.useMemo,u1t=JI.useDebugValue;Ace.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=a1t(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=l1t(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),o!==void 0&&a.hasValue){var m=a.value;if(o(m,g))return f=m}return f=g}if(m=f,o1t(c,g))return m;var y=r(g);return o!==void 0&&o(m,y)?m:(c=g,f=y)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var s=i1t(e,i[0],i[1]);return s1t(function(){a.hasValue=!0,a.value=s},[s]),u1t(s),s};(function(e){e.exports=Ace})(t1t);const c1t=Hw(E5),{useSyncExternalStoreWithSelector:d1t}=c1t;function f1t(e,t=e.getState,n){const r=d1t(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return M.useDebugValue(r),r}const rq=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?e1t(e):e,n=(r,o)=>f1t(t,r,o);return Object.assign(n,t),n},Bc=e=>e?rq(e):rq;function p1t(e){let t;try{t=e()}catch{return}return{getItem:r=>{var o;const i=s=>s===null?null:JSON.parse(s),a=(o=t.getItem(r))!=null?o:null;return a instanceof Promise?a.then(i):i(a)},setItem:(r,o)=>t.setItem(r,JSON.stringify(o)),removeItem:r=>t.removeItem(r)}}const Lw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Lw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Lw(r)(n)}}}},h1t=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,x)=>({...x,...v}),...t},a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const c=Lw(i.serialize),f=()=>{const v=i.partialize({...r()});let x;const w=c({state:v,version:i.version}).then(I=>u.setItem(i.name,I)).catch(I=>{x=I});if(x)throw x;return w},p=o.setState;o.setState=(v,x)=>{p(v,x),f()};const g=e((...v)=>{n(...v),f()},r,o);let m;const y=()=>{var v;if(!u)return;a=!1,s.forEach(w=>w(r()));const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,r()))||void 0;return Lw(u.getItem.bind(u))(i.name).then(w=>{if(w)return i.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var I;return m=i.merge(w,(I=r())!=null?I:g),n(m,!0),f()}).then(()=>{x==null||x(m,void 0),a=!0,l.forEach(w=>w(m))}).catch(w=>{x==null||x(void 0,w)})};return o.persist={setOptions:v=>{i={...i,...v},v.getStorage&&(u=v.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>y(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},y(),m||g},g1t=(e,t)=>(n,r,o)=>{let i={storage:p1t(()=>localStorage),partialize:y=>y,version:0,merge:(y,v)=>({...v,...y}),...t},a=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const c=()=>{const y=i.partialize({...r()});return u.setItem(i.name,{state:y,version:i.version})},f=o.setState;o.setState=(y,v)=>{f(y,v),c()};const p=e((...y)=>{n(...y),c()},r,o);let g;const m=()=>{var y,v;if(!u)return;a=!1,s.forEach(w=>{var I;return w((I=r())!=null?I:p)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(y=r())!=null?y:p))||void 0;return Lw(u.getItem.bind(u))(i.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var I;return g=i.merge(w,(I=r())!=null?I:p),n(g,!0),c()}).then(()=>{x==null||x(g,void 0),g=r(),a=!0,l.forEach(w=>w(g))}).catch(w=>{x==null||x(void 0,w)})};return o.persist={setOptions:y=>{i={...i,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(l.add(y),()=>{l.delete(y)})},i.skipHydration||m(),g||p},m1t=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),h1t(e,t)):g1t(e,t),em=m1t,XI=Bc(em(e=>({daos:[],proposals:{},addDao:t=>e(n=>({daos:Ze.uniq([...n.daos,t])})),removeDao:t=>e(n=>({daos:n.daos.filter(r=>r!==t)})),addProposal:(t,n)=>e(r=>{const o=r.proposals[t]||[];return{proposals:{...r.proposals,[t]:Ze.uniq([n,...o])}}}),removeProposal:(t,n)=>e(r=>{const o=r.proposals[t]||[];return{proposals:{...r.proposals,[t]:o.filter(i=>i!==n)}}})}),{name:"new_data_store"})),Up=Bc(em((e,t)=>({daoUpdateMillis:{},getDaoUpdateMillis:n=>t().daoUpdateMillis[n],removeDaoUpdateMillis:n=>{const o={...t().daoUpdateMillis,[n]:void 0};e({daoUpdateMillis:Ze.omit(o)})},setDaoUpdateMillis:n=>{const o={...t().daoUpdateMillis,[n]:Je().valueOf()};e({daoUpdateMillis:o})},proposalUpdateMillis:{},getProposalUpdateMillis:n=>t().proposalUpdateMillis[n],removeProposalUpdateMillis:n=>{const o={...t().proposalUpdateMillis,[n]:void 0};e({proposalUpdateMillis:Ze.omit(o)})},setProposalUpdateMillis:n=>{const o={...t().proposalUpdateMillis,[n]:Je().valueOf()};e({proposalUpdateMillis:o})}}),{name:"sync_store"})),QL=Bc(em((e,t)=>({vote:{},results:{},maxLtAfterVote:{},resetValues:n=>{e({results:Ze.omitBy({...t().results,[n]:void 0},Ze.isUndefined),maxLtAfterVote:Ze.omitBy({...t().maxLtAfterVote,[n]:void 0},Ze.isUndefined),vote:Ze.omitBy({...t().vote,[n]:void 0},Ze.isUndefined)})},setValues:(n,r,o,i)=>{e({results:Ze.omitBy({...t().results,[n]:i},Ze.isUndefined),maxLtAfterVote:Ze.omitBy({...t().maxLtAfterVote,[n]:r},Ze.isUndefined),vote:Ze.omitBy({...t().vote,[n]:o},Ze.isUndefined)})},getValues:n=>({results:t().results[n],vote:t().vote[n],maxLtAfterVote:t().maxLtAfterVote[n]})}),{name:"proposals_store"})),_ce=Bc(em((e,t)=>({beta:!1,setBeta:n=>e({beta:n}),themeMode:void 0,setThemeMode:n=>e({themeMode:n}),toggleThemeMode:()=>{const n=t().themeMode;e(n==="dark"?{themeMode:"light"}:{themeMode:"dark"})}}),{name:"app_settings"})),Ece=Bc((e,t)=>({isVoting:!1,setIsVoting:n=>e({isVoting:n})}));Bc((e,t)=>({proposalError:!1,setProposalError:n=>e({proposalError:n})}));const y1t="modulepreload",v1t=function(e){return"/"+e},oq={},k0=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=v1t(i),i in oq)return;oq[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":y1t,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},b1t=` + */var XI=M,b1t=SA;function w1t(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var S1t=typeof Object.is=="function"?Object.is:w1t,x1t=b1t.useSyncExternalStore,C1t=XI.useRef,A1t=XI.useEffect,_1t=XI.useMemo,E1t=XI.useDebugValue;Cce.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=C1t(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=_1t(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),o!==void 0&&a.hasValue){var m=a.value;if(o(m,g))return f=m}return f=g}if(m=f,S1t(c,g))return m;var y=r(g);return o!==void 0&&o(m,y)?m:(c=g,f=y)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,o]);var s=x1t(e,i[0],i[1]);return A1t(function(){a.hasValue=!0,a.value=s},[s]),E1t(s),s};(function(e){e.exports=Cce})(v1t);const T1t=Hw(T5),{useSyncExternalStoreWithSelector:k1t}=T1t;function I1t(e,t=e.getState,n){const r=k1t(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return M.useDebugValue(r),r}const rq=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?y1t(e):e,n=(r,o)=>I1t(t,r,o);return Object.assign(n,t),n},Bc=e=>e?rq(e):rq;function P1t(e){let t;try{t=e()}catch{return}return{getItem:r=>{var o;const i=s=>s===null?null:JSON.parse(s),a=(o=t.getItem(r))!=null?o:null;return a instanceof Promise?a.then(i):i(a)},setItem:(r,o)=>t.setItem(r,JSON.stringify(o)),removeItem:r=>t.removeItem(r)}}const Lw=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return Lw(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return Lw(r)(n)}}}},M1t=(e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:v=>v,version:0,merge:(v,x)=>({...x,...v}),...t},a=!1;const s=new Set,l=new Set;let u;try{u=i.getStorage()}catch{}if(!u)return e((...v)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...v)},r,o);const c=Lw(i.serialize),f=()=>{const v=i.partialize({...r()});let x;const w=c({state:v,version:i.version}).then(I=>u.setItem(i.name,I)).catch(I=>{x=I});if(x)throw x;return w},p=o.setState;o.setState=(v,x)=>{p(v,x),f()};const g=e((...v)=>{n(...v),f()},r,o);let m;const y=()=>{var v;if(!u)return;a=!1,s.forEach(w=>w(r()));const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,r()))||void 0;return Lw(u.getItem.bind(u))(i.name).then(w=>{if(w)return i.deserialize(w)}).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var I;return m=i.merge(w,(I=r())!=null?I:g),n(m,!0),f()}).then(()=>{x==null||x(m,void 0),a=!0,l.forEach(w=>w(m))}).catch(w=>{x==null||x(void 0,w)})};return o.persist={setOptions:v=>{i={...i,...v},v.getStorage&&(u=v.getStorage())},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>y(),hasHydrated:()=>a,onHydrate:v=>(s.add(v),()=>{s.delete(v)}),onFinishHydration:v=>(l.add(v),()=>{l.delete(v)})},y(),m||g},O1t=(e,t)=>(n,r,o)=>{let i={storage:P1t(()=>localStorage),partialize:y=>y,version:0,merge:(y,v)=>({...v,...y}),...t},a=!1;const s=new Set,l=new Set;let u=i.storage;if(!u)return e((...y)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...y)},r,o);const c=()=>{const y=i.partialize({...r()});return u.setItem(i.name,{state:y,version:i.version})},f=o.setState;o.setState=(y,v)=>{f(y,v),c()};const p=e((...y)=>{n(...y),c()},r,o);let g;const m=()=>{var y,v;if(!u)return;a=!1,s.forEach(w=>{var I;return w((I=r())!=null?I:p)});const x=((v=i.onRehydrateStorage)==null?void 0:v.call(i,(y=r())!=null?y:p))||void 0;return Lw(u.getItem.bind(u))(i.name).then(w=>{if(w)if(typeof w.version=="number"&&w.version!==i.version){if(i.migrate)return i.migrate(w.state,w.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return w.state}).then(w=>{var I;return g=i.merge(w,(I=r())!=null?I:p),n(g,!0),c()}).then(()=>{x==null||x(g,void 0),g=r(),a=!0,l.forEach(w=>w(g))}).catch(w=>{x==null||x(void 0,w)})};return o.persist={setOptions:y=>{i={...i,...y},y.storage&&(u=y.storage)},clearStorage:()=>{u==null||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>m(),hasHydrated:()=>a,onHydrate:y=>(s.add(y),()=>{s.delete(y)}),onFinishHydration:y=>(l.add(y),()=>{l.delete(y)})},i.skipHydration||m(),g||p},R1t=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),M1t(e,t)):O1t(e,t),em=R1t,ZI=Bc(em(e=>({daos:[],proposals:{},addDao:t=>e(n=>({daos:Ze.uniq([...n.daos,t])})),removeDao:t=>e(n=>({daos:n.daos.filter(r=>r!==t)})),addProposal:(t,n)=>e(r=>{const o=r.proposals[t]||[];return{proposals:{...r.proposals,[t]:Ze.uniq([n,...o])}}}),removeProposal:(t,n)=>e(r=>{const o=r.proposals[t]||[];return{proposals:{...r.proposals,[t]:o.filter(i=>i!==n)}}})}),{name:"new_data_store"})),Up=Bc(em((e,t)=>({daoUpdateMillis:{},getDaoUpdateMillis:n=>t().daoUpdateMillis[n],removeDaoUpdateMillis:n=>{const o={...t().daoUpdateMillis,[n]:void 0};e({daoUpdateMillis:Ze.omit(o)})},setDaoUpdateMillis:n=>{const o={...t().daoUpdateMillis,[n]:Je().valueOf()};e({daoUpdateMillis:o})},proposalUpdateMillis:{},getProposalUpdateMillis:n=>t().proposalUpdateMillis[n],removeProposalUpdateMillis:n=>{const o={...t().proposalUpdateMillis,[n]:void 0};e({proposalUpdateMillis:Ze.omit(o)})},setProposalUpdateMillis:n=>{const o={...t().proposalUpdateMillis,[n]:Je().valueOf()};e({proposalUpdateMillis:o})}}),{name:"sync_store"})),QL=Bc(em((e,t)=>({vote:{},results:{},maxLtAfterVote:{},resetValues:n=>{e({results:Ze.omitBy({...t().results,[n]:void 0},Ze.isUndefined),maxLtAfterVote:Ze.omitBy({...t().maxLtAfterVote,[n]:void 0},Ze.isUndefined),vote:Ze.omitBy({...t().vote,[n]:void 0},Ze.isUndefined)})},setValues:(n,r,o,i)=>{e({results:Ze.omitBy({...t().results,[n]:i},Ze.isUndefined),maxLtAfterVote:Ze.omitBy({...t().maxLtAfterVote,[n]:r},Ze.isUndefined),vote:Ze.omitBy({...t().vote,[n]:o},Ze.isUndefined)})},getValues:n=>({results:t().results[n],vote:t().vote[n],maxLtAfterVote:t().maxLtAfterVote[n]})}),{name:"proposals_store"})),Ace=Bc(em((e,t)=>({beta:!1,setBeta:n=>e({beta:n}),themeMode:void 0,setThemeMode:n=>e({themeMode:n}),toggleThemeMode:()=>{const n=t().themeMode;e(n==="dark"?{themeMode:"light"}:{themeMode:"dark"})}}),{name:"app_settings"})),_ce=Bc((e,t)=>({isVoting:!1,setIsVoting:n=>e({isVoting:n})}));Bc((e,t)=>({proposalError:!1,setProposalError:n=>e({proposalError:n})}));const D1t="modulepreload",B1t=function(e){return"/"+e},oq={},k0=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=B1t(i),i in oq)return;oq[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=a?"stylesheet":D1t,a||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),a)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t())},$1t=` Tokenomics proposal to achieve community consensus on circulating supply of TON. Proposal for a 48 month temporary freeze of inactive mining wallets, which have never been activated and do not have any outgoing transfer in their history. In response to repeated requests for greater certainty, clarity and transparency over the tokenomics of the TON network on December 17, 2022, the community called for all early miners to activate their inactive mining wallets by the end of 2022. @@ -1416,7 +1416,7 @@ TON is a community-driven blockchain and we believe that the network validators Make your voice heard. Disclaimer: the voting results on ton.vote will not have a direct impact on the network voting. However, the community believes that the network validators will consider the voice of the community seriously. -`,w1t=` +`,L1t=` The grand finale of the Hack-a-TONx w/ DoraHacks is finally here - It is now time for the community to vote on the winning projects and distribute the $300,000 pool prize! @@ -1447,11 +1447,11 @@ And the finalists are... Any holder of TONCoin is eligible to vote. The vote will open on March 29, 2023 at 2:00 PM GMT and close on March 30, 2023 at 5:00 PM. -`,Tce="EQAiqphPtZ2jLyzqrcfVrhBZfarghWKpkt0fSfALsqRbofQ7",Fw="EQCb8dxevgHhBnsTodJKXaCrafplHzAHf1V2Adj0GVlhA5xI",KL=["EQAx5JjTHpQ_5EeWBAErl4_AWhh_JFBh2UvuTWAeqdbpC0C1","EQD0b665oQ8R3OpEjKToOrqQ9a9B52UnlY-VDKk73pCccvLr","EQCVy5bEWLQZrh5PYb1uP3FSO7xt4Kobyn4T9pGy2c5-i-GS"],kce=e=>KL.includes(e),S1t=async()=>{const e=await k0(()=>import("./dora-ec13b09c.js"),[]),t=await k0(()=>import("./tokenomics-27859498.js"),[]),n=await k0(()=>import("./real-time-burn-c2a27408.js"),[]);return{"EQD0b665oQ8R3OpEjKToOrqQ9a9B52UnlY-VDKk73pCccvLr":{daoAddress:Fw,metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQDmbwKbzpuuPacqcX67UAjQ3o6WqEjQ4_Mwvr5Ci524vO60",mcSnapshotBlock:28390698,proposalStartTime:1680098400,proposalEndTime:1680195600,proposalSnapshotTime:1680012e3,votingSystem:{choices:["DeDust","Punk City","Evaa","1ton","Nujan IDE","re:doubt","Tsunami Exchange","Tonic Lounge","TonEase","Genlock"],votingSystemType:0},votingPowerStrategies:[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}],title:"Hack-a-TONx: Choose your winners!",description:w1t},votes:e.votes,proposalResult:e.proposalResult.proposalResult,url:"https://ton.vote",sumCoins:e.proposalResult.sumCoins,sumVotes:e.proposalResult.sumVotes,rawVotes:{}},"EQCVy5bEWLQZrh5PYb1uP3FSO7xt4Kobyn4T9pGy2c5-i-GS":{daoAddress:Fw,metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQDmbwKbzpuuPacqcX67UAjQ3o6WqEjQ4_Mwvr5Ci524vO60",mcSnapshotBlock:27280026,proposalStartTime:1676379600,proposalEndTime:1676984400,proposalSnapshotTime:167616e4,votingSystem:{choices:["Yes","No","Abstain"],votingSystemType:0},votingPowerStrategies:[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}],title:"Proposal of TON Tokenomics Optimization",description:b1t},rawVotes:{},votingPower:t.votingPower,votes:t.votes,proposalResult:t.proposalResults,url:"https://ton.vote/frozen"},EQAx5JjTHpQ_5EeWBAErl4_AWhh_JFBh2UvuTWAeqdbpC0C1:{...n,rawVotes:{}}}},x1t=Object.freeze(Object.defineProperty({__proto__:null,FOUNDATION_DAO_ADDRESS:Fw,FOUNDATION_PROPOSALS_ADDRESSES:KL,LATEST_FOUNDATION_PROPOSAL_ADDRESS:Tce,getFoundationProposals:S1t,shouldHideVerify:kce},Symbol.toStringTag,{value:"Module"}));var T5={},C1t={get exports(){return T5},set exports(e){T5=e}},Ice={};function Fl(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var A1t=Fl;Fl.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Fl.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Fl.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0};Fl.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Fl.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Fl.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Fl.prototype.start=Fl.prototype.try;Fl.prototype.errors=function(){return this._errors};Fl.prototype.attempts=function(){return this._attempts};Fl.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r=n&&(t=o,n=a)}return t};(function(e){var t=A1t;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in n)r[o]=n[o];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a!T1t.has(e&&e.code);function iq(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,o)}function Pce(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){iq(i,r,o,a,s,"next",l)}function s(l){iq(i,r,o,a,s,"throw",l)}a(void 0)})}}function aq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sq(e){for(var t=1;t=500&&e.response.status<=599)}function M1t(e){return e.config?YL(e)&&Oce.indexOf(e.config.method)!==-1:!1}function Rce(e){return e.config?YL(e)&&P1t.indexOf(e.config.method)!==-1:!1}function Dce(e){return Mce(e)||Rce(e)}function O1t(){return 0}function R1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,n=Math.pow(2,e)*t,r=n*.2*Math.random();return n+r}function lq(e){var t=e[k5]||{};return t.retryCount=t.retryCount||0,e[k5]=t,t}function D1t(e,t){return sq(sq({},t),e[k5])}function B1t(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function $1t(e,t,n,r){return I5.apply(this,arguments)}function I5(){return I5=Pce(function*(e,t,n,r){var o=n.retryCount{var r=lq(n);return r.lastRequestTime=Date.now(),n}),e.interceptors.response.use(null,function(){var n=Pce(function*(r){var{config:o}=r;if(!o)return Promise.reject(r);var{retries:i=3,retryCondition:a=Dce,retryDelay:s=O1t,shouldResetTimeout:l=!1,onRetry:u=()=>{}}=D1t(o,t),c=lq(o);if(yield $1t(i,a,c,r)){c.retryCount+=1;var f=s(c.retryCount,r);if(B1t(e,o),!l&&o.timeout&&c.lastRequestTime){var p=Date.now()-c.lastRequestTime,g=o.timeout-p-f;if(g<=0)return Promise.reject(r);o.timeout=g}return o.transformRequest=[m=>m],u(c.retryCount,r,o),new Promise(m=>setTimeout(()=>m(e(o)),f))}return Promise.reject(r)});return function(r){return n.apply(this,arguments)}}())}vp.isNetworkError=Mce;vp.isSafeRequestError=M1t;vp.isIdempotentRequestError=Rce;vp.isNetworkOrIdempotentRequestError=Dce;vp.exponentialDelay=R1t;vp.isRetryableError=YL;const L1t=ns?"https://dev-api.ton.vote":"https://api.ton.vote",nf=Toe.create({baseURL:L1t});vp(nf,{retries:Tg,retryDelay:vp.exponentialDelay});const F1t=async e=>($o("Fetching daos from server"),(await nf.get("/daos",{signal:e})).data),N1t=async(e,t)=>tm(async(r,o)=>{try{const i=await nf.get(`/proposalNftHolders/${e}`,{signal:t});if(Ze.isEmpty(i.data))throw new Error("getAllNftHolders not found in server");return i.data}catch(i){throw o===Tg+1&&$o("Failed to fetch getAllNftHolders from server"),new Error(i instanceof Error?i.message:"")}},{retries:Tg}),U1t=async(e,t)=>tm(async(r,o)=>{var i;try{$o(`Fetching proposal from server, address: ${e}, attempt: ${o}`);const[a,s]=await Promise.all([nf.get(`/proposal/${e}`,{signal:t}),Bce(e,t)]);if(Ze.isEmpty((i=a.data)==null?void 0:i.metadata))throw new Error("proposal not found in server");return{...a.data,votes:pL(a.data.votes,a.data.votingPower),maxLt:s,rawVotes:a.data.votes}}catch(a){throw o===Tg+1&&$o("Failed to fetch proposal from server"),new Error(a instanceof Error?a.message:"")}},{retries:Tg}),j1t=async()=>(await nf.get("/version")).data,Bce=async(e,t)=>(await nf.get(`/maxLt/${e}`,{signal:t})).data,W1t=async(e,t)=>tm(async(r,o)=>{try{$o(`Fetching dao from server, address ${e}, attempt: ${o}`);const i=(await nf.get(`/dao/${e}`,{signal:t})).data;if(Ze.isEmpty(i))throw new Error("dao not found in server");return i}catch(i){throw o===Tg+1&&$o("dao not found is server"),new Error(i instanceof Error?i.message:"")}},{retries:Tg}),z1t=async e=>(await nf.get(`/operatingValidatorsInfo/${e}`)).data,V1t=async()=>(await nf.get("/updateTime")).data,nm={getDaos:F1t,getProposal:U1t,getMaxLt:Bce,getDao:W1t,getAllNftHolders:N1t,getUpdateTime:V1t,serverVersion:j1t,geOperatingValidatorsInfo:z1t},H1t=async e=>{var s;const{clientV2:t,clientV4:n,proposalAddress:r,maxLt:o}=e,i=Pa((s=e.metadata)==null?void 0:s.votingPowerStrategies);return tm(async(l,u)=>{$o(`Fetching proposal from contract, address: ${r}, attempt: ${u}`);try{let c;const f=t||await at.getClientV2(),p=n||await at.getClientV4(),g=e.metadata||await at.getProposalMetadata(f,p,r);let m;const y=await at.getTransactions(f,r);c=y.maxLt,o?m=at.filterTxByTimestamp(y.allTxns,o):m=y.allTxns;const{votingPowerStrategies:v}=g,x=await $ce(g,p);let w={};i===at.VotingPowerStrategyType.TonBalanceWithValidators&&(w=await nm.geOperatingValidatorsInfo(r));const I=await at.getVotingPower(p,g,m,{},Pa(v),x,w),_=at.getCurrentResults(m,I,g);_.totalWeight=_.totalWeights;const{totalWeights:R,...U}=_,D=at.getAllVotes(m,g);return{votingPower:I,proposalResult:U,votes:pL(D,I),metadata:g,maxLt:c,rawVotes:D}}catch(c){throw $o(c),u===e_+1&&$o("Failed to fetch proposal from contract"),new Error(c instanceof Error?c.message:"")}},{retries:e_})},q1t=async e=>{var y;const{proposalAddress:t,walletAddress:n,proposal:r}=e,o=r.metadata,i=await at.getClientV2(),a=await at.getClientV4(),{allTxns:s,maxLt:l}=await at.getTransactions(i,t,r.maxLt),u=Ze.find(s,v=>{var x,w;return((w=(x=v.inMessage)==null?void 0:x.info.src)==null?void 0:w.toString())===n});if(!u||!o)return;const c=await at.getAllNftHolders(a,o),f=await at.getSingleVoterPower(a,n,o,Pa(o.votingPowerStrategies),c),p=at.getAllVotes([u],o),g=r.votingPower||{},m={...r.rawVotes,[n]:p[n]};return g[n]=f,{proposalResults:at.calcProposalResult(m,g,(y=r.metadata)==null?void 0:y.votingSystem),vote:pL(p,g)[0],maxLt:l}},Q1t=async(e,t)=>tm(async(r,o)=>{$o(`Fetching dao from contract, address ${e}, attempt: ${o}`);const i=t||await at.getClientV2(),a=await at.getDaoState(i,e),s=await at.getDaoMetadata(i,a.metadata);return{daoAddress:e,daoRoles:{owner:a.owner,proposalOwner:a.proposalOwner},daoMetadata:{metadataAddress:"",metadataArgs:s},daoId:a.daoIndex,daoProposals:(await at.getDaoProposals(i,e)).proposalAddresses||[]}},{retries:e_}),$ce=(e,t)=>uue(e.votingPowerStrategies)?tm(async(r,o)=>{$o(`Fetching all nft holders, attempt: ${o}`);const i=t||await at.getClientV4();return at.getAllNftHolders(i,e)},{retries:e_}):{},yv={getAllNftHolders:$ce,getProposal:H1t,getDao:Q1t,getProposalResultsAfterVote:q1t},Lce=`Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. +`,Ece="EQAiqphPtZ2jLyzqrcfVrhBZfarghWKpkt0fSfALsqRbofQ7",Fw="EQCb8dxevgHhBnsTodJKXaCrafplHzAHf1V2Adj0GVlhA5xI",KL=["EQAx5JjTHpQ_5EeWBAErl4_AWhh_JFBh2UvuTWAeqdbpC0C1","EQD0b665oQ8R3OpEjKToOrqQ9a9B52UnlY-VDKk73pCccvLr","EQCVy5bEWLQZrh5PYb1uP3FSO7xt4Kobyn4T9pGy2c5-i-GS"],Tce=e=>KL.includes(e),F1t=async()=>{const e=await k0(()=>import("./dora-ec13b09c.js"),[]),t=await k0(()=>import("./tokenomics-27859498.js"),[]),n=await k0(()=>import("./real-time-burn-c2a27408.js"),[]);return{"EQD0b665oQ8R3OpEjKToOrqQ9a9B52UnlY-VDKk73pCccvLr":{daoAddress:Fw,metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQDmbwKbzpuuPacqcX67UAjQ3o6WqEjQ4_Mwvr5Ci524vO60",mcSnapshotBlock:28390698,proposalStartTime:1680098400,proposalEndTime:1680195600,proposalSnapshotTime:1680012e3,votingSystem:{choices:["DeDust","Punk City","Evaa","1ton","Nujan IDE","re:doubt","Tsunami Exchange","Tonic Lounge","TonEase","Genlock"],votingSystemType:0},votingPowerStrategies:[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}],title:"Hack-a-TONx: Choose your winners!",description:L1t},votes:e.votes,proposalResult:e.proposalResult.proposalResult,url:"https://ton.vote",sumCoins:e.proposalResult.sumCoins,sumVotes:e.proposalResult.sumVotes,rawVotes:{}},"EQCVy5bEWLQZrh5PYb1uP3FSO7xt4Kobyn4T9pGy2c5-i-GS":{daoAddress:Fw,metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQDmbwKbzpuuPacqcX67UAjQ3o6WqEjQ4_Mwvr5Ci524vO60",mcSnapshotBlock:27280026,proposalStartTime:1676379600,proposalEndTime:1676984400,proposalSnapshotTime:167616e4,votingSystem:{choices:["Yes","No","Abstain"],votingSystemType:0},votingPowerStrategies:[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}],title:"Proposal of TON Tokenomics Optimization",description:$1t},rawVotes:{},votingPower:t.votingPower,votes:t.votes,proposalResult:t.proposalResults,url:"https://ton.vote/frozen"},EQAx5JjTHpQ_5EeWBAErl4_AWhh_JFBh2UvuTWAeqdbpC0C1:{...n,rawVotes:{}}}},N1t=Object.freeze(Object.defineProperty({__proto__:null,FOUNDATION_DAO_ADDRESS:Fw,FOUNDATION_PROPOSALS_ADDRESSES:KL,LATEST_FOUNDATION_PROPOSAL_ADDRESS:Ece,getFoundationProposals:F1t,shouldHideVerify:Tce},Symbol.toStringTag,{value:"Module"}));var k5={},U1t={get exports(){return k5},set exports(e){k5=e}},kce={};function Fl(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var j1t=Fl;Fl.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)};Fl.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null};Fl.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(n===void 0)if(this._cachedTimeouts)this._errors.splice(0,this._errors.length-1),n=this._cachedTimeouts.slice(-1);else return!1;var r=this;return this._timer=setTimeout(function(){r._attempts++,r._operationTimeoutCb&&(r._timeout=setTimeout(function(){r._operationTimeoutCb(r._attempts)},r._operationTimeout),r._options.unref&&r._timeout.unref()),r._fn(r._attempts)},n),this._options.unref&&this._timer.unref(),!0};Fl.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};Fl.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};Fl.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};Fl.prototype.start=Fl.prototype.try;Fl.prototype.errors=function(){return this._errors};Fl.prototype.attempts=function(){return this._attempts};Fl.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,n=0,r=0;r=n&&(t=o,n=a)}return t};(function(e){var t=j1t;e.operation=function(n){var r=e.timeouts(n);return new t(r,{forever:n&&(n.forever||n.retries===1/0),unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(n){if(n instanceof Array)return[].concat(n);var r={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var o in n)r[o]=n[o];if(r.minTimeout>r.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],a=0;a!V1t.has(e&&e.code);function iq(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(u){n(u);return}s.done?t(l):Promise.resolve(l).then(r,o)}function Ice(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){iq(i,r,o,a,s,"next",l)}function s(l){iq(i,r,o,a,s,"throw",l)}a(void 0)})}}function aq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function sq(e){for(var t=1;t=500&&e.response.status<=599)}function K1t(e){return e.config?YL(e)&&Mce.indexOf(e.config.method)!==-1:!1}function Oce(e){return e.config?YL(e)&&Q1t.indexOf(e.config.method)!==-1:!1}function Rce(e){return Pce(e)||Oce(e)}function Y1t(){return 0}function G1t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100,n=Math.pow(2,e)*t,r=n*.2*Math.random();return n+r}function lq(e){var t=e[I5]||{};return t.retryCount=t.retryCount||0,e[I5]=t,t}function J1t(e,t){return sq(sq({},t),e[I5])}function X1t(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}function Z1t(e,t,n,r){return P5.apply(this,arguments)}function P5(){return P5=Ice(function*(e,t,n,r){var o=n.retryCount{var r=lq(n);return r.lastRequestTime=Date.now(),n}),e.interceptors.response.use(null,function(){var n=Ice(function*(r){var{config:o}=r;if(!o)return Promise.reject(r);var{retries:i=3,retryCondition:a=Rce,retryDelay:s=Y1t,shouldResetTimeout:l=!1,onRetry:u=()=>{}}=J1t(o,t),c=lq(o);if(yield Z1t(i,a,c,r)){c.retryCount+=1;var f=s(c.retryCount,r);if(X1t(e,o),!l&&o.timeout&&c.lastRequestTime){var p=Date.now()-c.lastRequestTime,g=o.timeout-p-f;if(g<=0)return Promise.reject(r);o.timeout=g}return o.transformRequest=[m=>m],u(c.retryCount,r,o),new Promise(m=>setTimeout(()=>m(e(o)),f))}return Promise.reject(r)});return function(r){return n.apply(this,arguments)}}())}vp.isNetworkError=Pce;vp.isSafeRequestError=K1t;vp.isIdempotentRequestError=Oce;vp.isNetworkOrIdempotentRequestError=Rce;vp.exponentialDelay=G1t;vp.isRetryableError=YL;const ebt=ns?"https://dev-api.ton.vote":"https://api.ton.vote",nf=Yk.create({baseURL:ebt});vp(nf,{retries:Tg,retryDelay:vp.exponentialDelay});const tbt=async e=>($o("Fetching daos from server"),(await nf.get("/daos",{signal:e})).data),nbt=async(e,t)=>tm(async(r,o)=>{try{const i=await nf.get(`/proposalNftHolders/${e}`,{signal:t});if(Ze.isEmpty(i.data))throw new Error("getAllNftHolders not found in server");return i.data}catch(i){throw o===Tg+1&&$o("Failed to fetch getAllNftHolders from server"),new Error(i instanceof Error?i.message:"")}},{retries:Tg}),rbt=async(e,t)=>tm(async(r,o)=>{var i;try{$o(`Fetching proposal from server, address: ${e}, attempt: ${o}`);const[a,s]=await Promise.all([nf.get(`/proposal/${e}`,{signal:t}),Dce(e,t)]);if(Ze.isEmpty((i=a.data)==null?void 0:i.metadata))throw new Error("proposal not found in server");return{...a.data,votes:pL(a.data.votes,a.data.votingPower),maxLt:s,rawVotes:a.data.votes}}catch(a){throw o===Tg+1&&$o("Failed to fetch proposal from server"),new Error(a instanceof Error?a.message:"")}},{retries:Tg}),obt=async()=>(await nf.get("/version")).data,Dce=async(e,t)=>(await nf.get(`/maxLt/${e}`,{signal:t})).data,ibt=async(e,t)=>tm(async(r,o)=>{try{$o(`Fetching dao from server, address ${e}, attempt: ${o}`);const i=(await nf.get(`/dao/${e}`,{signal:t})).data;if(Ze.isEmpty(i))throw new Error("dao not found in server");return i}catch(i){throw o===Tg+1&&$o("dao not found is server"),new Error(i instanceof Error?i.message:"")}},{retries:Tg}),abt=async e=>(await nf.get(`/operatingValidatorsInfo/${e}`)).data,sbt=async()=>(await nf.get("/updateTime")).data,nm={getDaos:tbt,getProposal:rbt,getMaxLt:Dce,getDao:ibt,getAllNftHolders:nbt,getUpdateTime:sbt,serverVersion:obt,geOperatingValidatorsInfo:abt},lbt=async e=>{var s;const{clientV2:t,clientV4:n,proposalAddress:r,maxLt:o}=e,i=Pa((s=e.metadata)==null?void 0:s.votingPowerStrategies);return tm(async(l,u)=>{$o(`Fetching proposal from contract, address: ${r}, attempt: ${u}`);try{let c;const f=t||await at.getClientV2(),p=n||await at.getClientV4(),g=e.metadata||await at.getProposalMetadata(f,p,r);let m;const y=await at.getTransactions(f,r);c=y.maxLt,o?m=at.filterTxByTimestamp(y.allTxns,o):m=y.allTxns;const{votingPowerStrategies:v}=g,x=await Bce(g,p);let w={};i===at.VotingPowerStrategyType.TonBalanceWithValidators&&(w=await nm.geOperatingValidatorsInfo(r));const I=await at.getVotingPower(p,g,m,{},Pa(v),x,w),_=at.getCurrentResults(m,I,g);_.totalWeight=_.totalWeights;const{totalWeights:R,...U}=_,D=at.getAllVotes(m,g);return{votingPower:I,proposalResult:U,votes:pL(D,I),metadata:g,maxLt:c,rawVotes:D}}catch(c){throw $o(c),u===e_+1&&$o("Failed to fetch proposal from contract"),new Error(c instanceof Error?c.message:"")}},{retries:e_})},ubt=async e=>{var y;const{proposalAddress:t,walletAddress:n,proposal:r}=e,o=r.metadata,i=await at.getClientV2(),a=await at.getClientV4(),{allTxns:s,maxLt:l}=await at.getTransactions(i,t,r.maxLt),u=Ze.find(s,v=>{var x,w;return((w=(x=v.inMessage)==null?void 0:x.info.src)==null?void 0:w.toString())===n});if(!u||!o)return;const c=await at.getAllNftHolders(a,o),f=await at.getSingleVoterPower(a,n,o,Pa(o.votingPowerStrategies),c),p=at.getAllVotes([u],o),g=r.votingPower||{},m={...r.rawVotes,[n]:p[n]};return g[n]=f,{proposalResults:at.calcProposalResult(m,g,(y=r.metadata)==null?void 0:y.votingSystem),vote:pL(p,g)[0],maxLt:l}},cbt=async(e,t)=>tm(async(r,o)=>{$o(`Fetching dao from contract, address ${e}, attempt: ${o}`);const i=t||await at.getClientV2(),a=await at.getDaoState(i,e),s=await at.getDaoMetadata(i,a.metadata);return{daoAddress:e,daoRoles:{owner:a.owner,proposalOwner:a.proposalOwner},daoMetadata:{metadataAddress:"",metadataArgs:s},daoId:a.daoIndex,daoProposals:(await at.getDaoProposals(i,e)).proposalAddresses||[]}},{retries:e_}),Bce=(e,t)=>lue(e.votingPowerStrategies)?tm(async(r,o)=>{$o(`Fetching all nft holders, attempt: ${o}`);const i=t||await at.getClientV4();return at.getAllNftHolders(i,e)},{retries:e_}):{},yv={getAllNftHolders:Bce,getProposal:lbt,getDao:cbt,getProposalResultsAfterVote:ubt},$ce=`Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32. -The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.`,Fce=["Yes","No","Abstain"],Pb=300,Nce=[...Array(Pb).keys()].map(e=>Ze.random(0,3e3)),iC=[...Array(Pb).keys()].map(e=>({address:`EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo-${e+1}`,vote:Ze.shuffle(Fce)[0],votingPower:Nce[e].toString(),timestamp:1685519298,hash:"11357872275052426155389012383971883445063156358606972107667992596580446754291"})),K1t=Ze.reduce(Nce,(e,t)=>e+t,0),uq={daoAddress:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQAoNPahsAn7qra-u1489Wd8zgs4SDmReXNscv3Iu4cjYBBf",mcSnapshotBlock:29572110,proposalStartTime:Je().add(1,"day").unix(),proposalEndTime:Je().add(8,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix(),votingSystem:{votingSystemType:0,choices:Fce},votingPowerStrategies:[{type:0,arguments:[]}],title:JSON.stringify({en:"Test proposal 1"}),description:JSON.stringify({en:Lce})},votingPower:{},votes:iC,rawVotes:{},proposalResult:{yes:(Ze.countBy(iC,e=>e.vote==="Yes").true/Pb*100).toFixed(2),no:(Ze.countBy(iC,e=>e.vote==="No").true/Pb*100).toFixed(2),abstain:(Ze.countBy(iC,e=>e.vote==="Abstain").true/Pb*100).toFixed(2),totalWeight:vr.toNano(K1t)}},Y1t=e=>{switch(e){case at.VotingPowerStrategyType.JettonBalance:return[{type:at.VotingPowerStrategyType.JettonBalance,arguments:[{name:"jetton-address",value:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN"}]}];case at.VotingPowerStrategyType.NftCcollection:return[{type:at.VotingPowerStrategyType.NftCcollection,arguments:[{name:"nft-address",value:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN"}]}];default:return[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}]}},GL=e=>(e.strategyType,at.VotingPowerStrategyType.TonBalance,{...uq,metadata:{...uq.metadata,votingPowerStrategies:Y1t(e.strategyType||0)},title:e.title||`Mock proposal ${Math.floor(Math.max(Math.random(),100))}`,description:JSON.stringify({en:e.description||Lce})}),G1t=e=>{const t=GL(e);return{...t,metadata:{...t.metadata,proposalStartTime:Je().subtract(1,"day").unix(),proposalEndTime:Je().add(1,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix()}}},J1t=e=>{const t=GL(e);let n={...t.metadata,proposalStartTime:Je().add(1,"day").unix(),proposalEndTime:Je().add(8,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix()};return{...t,metadata:n}},X1t=e=>{const t=GL(e);return{...t,metadata:{...t.metadata,proposalStartTime:Je().subtract(10,"day").unix(),proposalEndTime:Je().subtract(2,"day").unix(),proposalSnapshotTime:Je().subtract(11,"day").unix()}}},JL=[G1t({strategyType:at.VotingPowerStrategyType.NftCcollection}),X1t({strategyType:at.VotingPowerStrategyType.TonBalance}),J1t({strategyType:at.VotingPowerStrategyType.JettonBalance})],Z1t=[{daoAddress:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",daoId:5,daoMetadata:{metadataAddress:"",metadataArgs:{about:'{"en":"This is a mock dao 1"}',avatar:"https://tonv.s3.us-east-2.amazonaws.com/stonfi.png",github:"",hide:!1,name:'{"en":"Mock Dao"}',terms:"",telegram:"",website:"",jetton:"EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",nft:"EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",dns:""}},daoRoles:{owner:"EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo",proposalOwner:"EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo"},daoProposals:[]}],Uce=Ze.map(Z1t,(e,t)=>({...e,daoAddress:t?`${e.daoAddress}${t}`:e.daoAddress})),jce="EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",Wce=Ze.compact(Ze.map(JL,(e,t)=>`${jce}${t}`)),ebt=e=>{const t=e.split(jce)[1],n=JL[parseInt(t)];return n||null},tbt=e=>Wce.includes(e),nbt=e=>{const t=Ze.find(Uce,n=>n.daoAddress===e);return t||null},Fs={proposals:JL,getMockProposal:ebt,proposalAddresses:Wce,isMockProposal:tbt,daos:Uce,isMockDao:nbt},rbt=()=>{const{daos:e,removeDao:t}=XI();return async n=>{if(Ze.size(e)){const r=Ze.map(n,l=>l.daoAddress),o=await at.getClientV2(),a=await Promise.allSettled(Ze.map(e,async l=>{if(r.includes(l))t(l);else return $o(`New DAO: ${l}`),yv.getDao(l,o)})),s=Ze.compact(a.map((l,u)=>{if(l.status==="fulfilled")return l.value;t(e[u])}));n=[n[0],...s,...n.slice(1)]}return n}},obt=()=>{const{getDaoUpdateMillis:e}=Up();return async t=>{const n=await Promise.allSettled(Ze.map(t,async r=>{const o=e(r.daoAddress);let i=r.daoMetadata.metadataArgs;return await XL(o)||(i=await at.getDaoMetadata(await at.getClientV2(),r.daoMetadata.metadataAddress)),{...r,daoMetadata:{metadataAddress:"",metadataArgs:i}}}));return Ze.compact(n.map(r=>r.status==="fulfilled"?r.value:null))}},XL=async e=>{if(!e)return!0;if(e){const t=await nm.getUpdateTime();return lpt(t,e)?!0:($o("server is not updated, fetching from contract"),!1)}},ibt=()=>{const{proposals:e,removeProposal:t}=XI();return(n,r)=>{const o=e[n];return Ze.size(o)?(Ze.forEach(o,i=>{r.includes(i)?t(n,i):r.push(i)}),Ze.uniq(r)):r}},abt=async(e,t,n)=>{if(!uue(t.votingPowerStrategies))return{};let r;try{r=await nm.getAllNftHolders(e,n)}catch{}return Ze.isEmpty(r)?yv.getAllNftHolders(t):r},sbt={getAllNFTHolders:abt};var zce={},Vce={},Hce={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){for(var o=arguments.length,i=new Array(o),a=0;a"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(s=window).gtag.apply(s,i)}},n=t;e.default=n})(Hce);var qce={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(s){return s.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(s){return typeof s=="string"&&s.indexOf("@")!==-1}var o="REDACTED (Potential Email Address)";function i(s){return r(s)?(console.warn("This arg looks like an email address, redacting."),o):s}function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=s||"";return l&&(c=n(s)),u&&(c=i(c)),c}})(qce);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=a(Hce),n=a(qce),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],i=["page","hitType"];function a(L){return L&&L.__esModule?L:{default:L}}function s(L,B){if(L==null)return{};var H=l(L,B),q,Y;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(L);for(Y=0;Y=0)&&Object.prototype.propertyIsEnumerable.call(L,q)&&(H[q]=L[q])}return H}function l(L,B){if(L==null)return{};var H={},q=Object.keys(L),Y,W;for(W=0;W=0)&&(H[Y]=L[Y]);return H}function u(L){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},u(L)}function c(L){return g(L)||p(L)||w(L)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections 1.10.32 and 1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form, accompanied by English versions from the 1914 translation by H. Rackham.`,Lce=["Yes","No","Abstain"],Pb=300,Fce=[...Array(Pb).keys()].map(e=>Ze.random(0,3e3)),iC=[...Array(Pb).keys()].map(e=>({address:`EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo-${e+1}`,vote:Ze.shuffle(Lce)[0],votingPower:Fce[e].toString(),timestamp:1685519298,hash:"11357872275052426155389012383971883445063156358606972107667992596580446754291"})),dbt=Ze.reduce(Fce,(e,t)=>e+t,0),uq={daoAddress:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",metadata:{hide:!1,quorum:"",id:0,proposalDeployer:"EQAoNPahsAn7qra-u1489Wd8zgs4SDmReXNscv3Iu4cjYBBf",mcSnapshotBlock:29572110,proposalStartTime:Je().add(1,"day").unix(),proposalEndTime:Je().add(8,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix(),votingSystem:{votingSystemType:0,choices:Lce},votingPowerStrategies:[{type:0,arguments:[]}],title:JSON.stringify({en:"Test proposal 1"}),description:JSON.stringify({en:$ce})},votingPower:{},votes:iC,rawVotes:{},proposalResult:{yes:(Ze.countBy(iC,e=>e.vote==="Yes").true/Pb*100).toFixed(2),no:(Ze.countBy(iC,e=>e.vote==="No").true/Pb*100).toFixed(2),abstain:(Ze.countBy(iC,e=>e.vote==="Abstain").true/Pb*100).toFixed(2),totalWeight:vr.toNano(dbt)}},fbt=e=>{switch(e){case at.VotingPowerStrategyType.JettonBalance:return[{type:at.VotingPowerStrategyType.JettonBalance,arguments:[{name:"jetton-address",value:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN"}]}];case at.VotingPowerStrategyType.NftCcollection:return[{type:at.VotingPowerStrategyType.NftCcollection,arguments:[{name:"nft-address",value:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN"}]}];default:return[{type:at.VotingPowerStrategyType.TonBalance,arguments:[]}]}},GL=e=>(e.strategyType,at.VotingPowerStrategyType.TonBalance,{...uq,metadata:{...uq.metadata,votingPowerStrategies:fbt(e.strategyType||0)},title:e.title||`Mock proposal ${Math.floor(Math.max(Math.random(),100))}`,description:JSON.stringify({en:e.description||$ce})}),pbt=e=>{const t=GL(e);return{...t,metadata:{...t.metadata,proposalStartTime:Je().subtract(1,"day").unix(),proposalEndTime:Je().add(1,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix()}}},hbt=e=>{const t=GL(e);let n={...t.metadata,proposalStartTime:Je().add(1,"day").unix(),proposalEndTime:Je().add(8,"day").unix(),proposalSnapshotTime:Je().subtract(1,"day").unix()};return{...t,metadata:n}},gbt=e=>{const t=GL(e);return{...t,metadata:{...t.metadata,proposalStartTime:Je().subtract(10,"day").unix(),proposalEndTime:Je().subtract(2,"day").unix(),proposalSnapshotTime:Je().subtract(11,"day").unix()}}},JL=[pbt({strategyType:at.VotingPowerStrategyType.NftCcollection}),gbt({strategyType:at.VotingPowerStrategyType.TonBalance}),hbt({strategyType:at.VotingPowerStrategyType.JettonBalance})],mbt=[{daoAddress:"EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",daoId:5,daoMetadata:{metadataAddress:"",metadataArgs:{about:'{"en":"This is a mock dao 1"}',avatar:"https://tonv.s3.us-east-2.amazonaws.com/stonfi.png",github:"",hide:!1,name:'{"en":"Mock Dao"}',terms:"",telegram:"",website:"",jetton:"EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",nft:"EQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAM9c",dns:""}},daoRoles:{owner:"EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo",proposalOwner:"EQDehfd8rzzlqsQlVNPf9_svoBcWJ3eRbz-eqgswjNEKRIwo"},daoProposals:[]}],Nce=Ze.map(mbt,(e,t)=>({...e,daoAddress:t?`${e.daoAddress}${t}`:e.daoAddress})),Uce="EQCh4ksBLF4bHmqPqzZT9AlnKgh49luRGqhpVdm3dZ0m1XTN",jce=Ze.compact(Ze.map(JL,(e,t)=>`${Uce}${t}`)),ybt=e=>{const t=e.split(Uce)[1],n=JL[parseInt(t)];return n||null},vbt=e=>jce.includes(e),bbt=e=>{const t=Ze.find(Nce,n=>n.daoAddress===e);return t||null},Fs={proposals:JL,getMockProposal:ybt,proposalAddresses:jce,isMockProposal:vbt,daos:Nce,isMockDao:bbt},wbt=()=>{const{daos:e,removeDao:t}=ZI();return async n=>{if(Ze.size(e)){const r=Ze.map(n,l=>l.daoAddress),o=await at.getClientV2(),a=await Promise.allSettled(Ze.map(e,async l=>{if(r.includes(l))t(l);else return $o(`New DAO: ${l}`),yv.getDao(l,o)})),s=Ze.compact(a.map((l,u)=>{if(l.status==="fulfilled")return l.value;t(e[u])}));n=[n[0],...s,...n.slice(1)]}return n}},Sbt=()=>{const{getDaoUpdateMillis:e}=Up();return async t=>{const n=await Promise.allSettled(Ze.map(t,async r=>{const o=e(r.daoAddress);let i=r.daoMetadata.metadataArgs;return await XL(o)||(i=await at.getDaoMetadata(await at.getClientV2(),r.daoMetadata.metadataAddress)),{...r,daoMetadata:{metadataAddress:"",metadataArgs:i}}}));return Ze.compact(n.map(r=>r.status==="fulfilled"?r.value:null))}},XL=async e=>{if(!e)return!0;if(e){const t=await nm.getUpdateTime();return _pt(t,e)?!0:($o("server is not updated, fetching from contract"),!1)}},xbt=()=>{const{proposals:e,removeProposal:t}=ZI();return(n,r)=>{const o=e[n];return Ze.size(o)?(Ze.forEach(o,i=>{r.includes(i)?t(n,i):r.push(i)}),Ze.uniq(r)):r}},Cbt=async(e,t,n)=>{if(!lue(t.votingPowerStrategies))return{};let r;try{r=await nm.getAllNftHolders(e,n)}catch{}return Ze.isEmpty(r)?yv.getAllNftHolders(t):r},Abt={getAllNFTHolders:Cbt};var Wce={},zce={},Vce={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){for(var o=arguments.length,i=new Array(o),a=0;a"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(s=window).gtag.apply(s,i)}},n=t;e.default=n})(Vce);var Hce={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(s){return s.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(s){return typeof s=="string"&&s.indexOf("@")!==-1}var o="REDACTED (Potential Email Address)";function i(s){return r(s)?(console.warn("This arg looks like an email address, redacting."),o):s}function a(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=s||"";return l&&(c=n(s)),u&&(c=i(c)),c}})(Hce);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=a(Vce),n=a(Hce),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],i=["page","hitType"];function a(L){return L&&L.__esModule?L:{default:L}}function s(L,B){if(L==null)return{};var H=l(L,B),q,Y;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(L);for(Y=0;Y=0)&&Object.prototype.propertyIsEnumerable.call(L,q)&&(H[q]=L[q])}return H}function l(L,B){if(L==null)return{};var H={},q=Object.keys(L),Y,W;for(W=0;W=0)&&(H[Y]=L[Y]);return H}function u(L){return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},u(L)}function c(L){return g(L)||p(L)||w(L)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(L){if(typeof Symbol<"u"&&L[Symbol.iterator]!=null||L["@@iterator"]!=null)return Array.from(L)}function g(L){if(Array.isArray(L))return I(L)}function m(L,B){var H=Object.keys(L);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(L);B&&(q=q.filter(function(Y){return Object.getOwnPropertyDescriptor(L,Y).enumerable})),H.push.apply(H,q)}return H}function y(L){for(var B=1;BL.length)&&(B=L.length);for(var H=0,q=new Array(B);H2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!B._hasLoadedGA){var W=document.createElement("script");W.async=!0,W.src="".concat(Y,"?id=").concat(H),q&&W.setAttribute("nonce",q),document.body.appendChild(W),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},B._hasLoadedGA=!0}}),T(this,"_toGtagOptions",function(H){if(H){var q={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},Y=Object.entries(H).reduce(function(W,ie){var le=v(ie,2),fe=le[0],Ee=le[1];return q[fe]?W[q[fe]]=Ee:W[fe]=Ee,W},{});return Y}}),T(this,"initialize",function(H){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!H)throw new Error("Require GA_MEASUREMENT_ID");var Y=typeof H=="string"?[{trackingId:H}]:H;B._currentMeasurementId=Y[0].trackingId;var W=q.gaOptions,ie=q.gtagOptions,le=q.nonce,fe=q.testMode,Ee=fe===void 0?!1:fe,Ae=q.gtagUrl;if(B._testMode=Ee,Ee||B._loadGA(B._currentMeasurementId,le,Ae),B.isInitialized||(B._gtag("js",new Date),Y.forEach(function(Ue){var ce=y(y(y({},B._toGtagOptions(y(y({},W),Ue.gaOptions))),ie),Ue.gtagOptions);Object.keys(ce).length?B._gtag("config",Ue.trackingId,ce):B._gtag("config",Ue.trackingId)})),B.isInitialized=!0,!Ee){var Ie=c(B._queueGtag);for(B._queueGtag=[],B._isQueuing=!1;Ie.length;){var De=Ie.shift();B._gtag.apply(B,c(De)),De[0]==="get"&&(B._isQueuing=!0)}}}),T(this,"set",function(H){if(!H){console.warn("`fieldsObject` is required in .set()");return}if(u(H)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(H).length===0&&console.warn("empty `fieldsObject` given to .set()"),B._gaCommand("set",H)}),T(this,"_gaCommandSendEvent",function(H,q,Y,W,ie){B._gtag("event",q,y(y({event_category:H,event_label:Y,value:W},ie&&{non_interaction:ie.nonInteraction}),B._toGtagOptions(ie)))}),T(this,"_gaCommandSendEventParameters",function(){for(var H=arguments.length,q=new Array(H),Y=0;Y1?q-1:0),W=1;W{if(!ns){if(!P5.isInitialized){console.error("GA is Not initialized");return}P5.event({label:e,action:t,category:"Main page"})}};ns||P5.initialize(WGe);const jp=()=>{const e=gbt();return{verifySuccess:I=>{As("Verify success","verify success"),e({action:"verify success",proposalId:I})},verifyFailed:(I,_,R)=>{As("Verify failed","verify failed"),e({action:"verify failed",proposalId:I,currentValue:_,compareValue:R})},walletSelect:I=>{As("Wallet select",`wallet: ${I}`),e({action:"wallet select",wallet:I})},voteSuccess:(I,_)=>{As("Vote success",`vote: ${_}, proposal: ${I}`),e({action:"vote success",vote:_,proposalAddress:I})},voteError:(I,_,R)=>{As("Vote failed",`error: ${R}`),e({action:"vote failed",vote:_,error:R,proposalAddress:I})},createSpaceMetadataSucess:(I,_)=>{As("Create space metadata success",`address: ${I}`),e({action:"create space metadata success",address:I,metadata:_})},createSpaceMetadataFailed:(I,_)=>{As("Create space metadata failed",`error: ${I}`),e({action:"create space metadata failed",error:I,metadata:_})},createSpaceSuccess:(I,_)=>{As("Create space success",`address: ${_}`),e({action:"create space success",metadataAddress:I,daoAddress:_})},createSpaceFailed:(I,_)=>{As("Create space failed",`error: ${_}`),e({action:"create space failed",error:_,metadataAddress:I})},createProposalSuccess:(I,_)=>{As("CreateProposalSuccess",`address: ${_}`),e({action:"create proposal success",proposalMetadata:I,proposalAddress:_})},createProposalFailed:(I,_)=>{As("Create proposal failed failed",`error: ${_}`),e({action:"create proposal failed",proposalMetadata:I,error:_})},updateDaoMetadataSuccess:(I,_)=>{As("Update dao metadata success",`dao address: ${_}`),e({action:"update dao metadata success",metadata:I,daoAddress:_})},updateDaoMetatdaFailed:(I,_,R)=>{As("Update space failed",`error: ${R}, dao address: ${_}`),e({action:"update space failed",error:R,metadata:I,daoAddress:_})},getProposalFromServerFailed:(I,_)=>{e({action:"get proposal from server failed",proposalId:I,error:_})},getProposalFromContractFailed:(I,_)=>{e({action:"get proposal from contract failed",proposalId:I,error:_})},getDaoFromServerFailed:(I,_)=>{e({action:"get dao from server failed",daoId:I,error:dq(_)})},getDaoFromContractFailed:(I,_)=>{e({action:"get dao from contract failed",daoId:I,error:dq(_)})},getProposalFromContractAfterVotingFailed:(I,_)=>{e({action:"get proposal from contract after voting failed",proposalId:I,error:_})}}},dq=e=>e instanceof Error?e.message:e,hbt=()=>jd(["serverVersion"],nm.serverVersion),gbt=()=>{const e=wi(),t=Cce(),{data:n}=hbt(),r=t==null?void 0:t.device.appName,o=t==null?void 0:t.device.appVersion,i=t==null?void 0:t.device.platform,a=S$?"mobile":"desktop",s=M.useMemo(()=>({walletAddress:e,walletName:r,walletVersion:o,platform:i,device:a,serverVersion:n,sdkVerion:cq.dependencies["ton-vote-contracts-sdk"],uiVersion:cq.version}),[e,r,o,i,a]);return M.useCallback(l=>{const u=ns?"ton-vote-dev":"ton-vote";try{Toe.post(`https://bi.orbs.network/putes/${u}`,{...s,...l})}catch{}},[s])},mbt=JSON.stringify({en:`TON Foundation has noticed a new initiative gaining momentum in the TON community. This initiative, known as the TON Believers Fund, has garnered notable support after composing an [Open Letter](https://t.me/SighToNews/690) to the TON Foundation through their Telegram channel. This initiative was simultaneously supported by a consortium of 11 TON communities in 9 languages that has over 300,000 community members. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(L,B){if(L){if(typeof L=="string")return I(L,B);var H=Object.prototype.toString.call(L).slice(8,-1);if(H==="Object"&&L.constructor&&(H=L.constructor.name),H==="Map"||H==="Set")return Array.from(L);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return I(L,B)}}function I(L,B){(B==null||B>L.length)&&(B=L.length);for(var H=0,q=new Array(B);H2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!B._hasLoadedGA){var W=document.createElement("script");W.async=!0,W.src="".concat(Y,"?id=").concat(H),q&&W.setAttribute("nonce",q),document.body.appendChild(W),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},B._hasLoadedGA=!0}}),T(this,"_toGtagOptions",function(H){if(H){var q={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},Y=Object.entries(H).reduce(function(W,ie){var le=v(ie,2),fe=le[0],Ee=le[1];return q[fe]?W[q[fe]]=Ee:W[fe]=Ee,W},{});return Y}}),T(this,"initialize",function(H){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!H)throw new Error("Require GA_MEASUREMENT_ID");var Y=typeof H=="string"?[{trackingId:H}]:H;B._currentMeasurementId=Y[0].trackingId;var W=q.gaOptions,ie=q.gtagOptions,le=q.nonce,fe=q.testMode,Ee=fe===void 0?!1:fe,Ae=q.gtagUrl;if(B._testMode=Ee,Ee||B._loadGA(B._currentMeasurementId,le,Ae),B.isInitialized||(B._gtag("js",new Date),Y.forEach(function(Ue){var ce=y(y(y({},B._toGtagOptions(y(y({},W),Ue.gaOptions))),ie),Ue.gtagOptions);Object.keys(ce).length?B._gtag("config",Ue.trackingId,ce):B._gtag("config",Ue.trackingId)})),B.isInitialized=!0,!Ee){var Ie=c(B._queueGtag);for(B._queueGtag=[],B._isQueuing=!1;Ie.length;){var De=Ie.shift();B._gtag.apply(B,c(De)),De[0]==="get"&&(B._isQueuing=!0)}}}),T(this,"set",function(H){if(!H){console.warn("`fieldsObject` is required in .set()");return}if(u(H)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(H).length===0&&console.warn("empty `fieldsObject` given to .set()"),B._gaCommand("set",H)}),T(this,"_gaCommandSendEvent",function(H,q,Y,W,ie){B._gtag("event",q,y(y({event_category:H,event_label:Y,value:W},ie&&{non_interaction:ie.nonInteraction}),B._toGtagOptions(ie)))}),T(this,"_gaCommandSendEventParameters",function(){for(var H=arguments.length,q=new Array(H),Y=0;Y1?q-1:0),W=1;W{if(!ns){if(!M5.isInitialized){console.error("GA is Not initialized");return}M5.event({label:e,action:t,category:"Main page"})}};ns||M5.initialize(iJe);const jp=()=>{const e=Obt();return{verifySuccess:I=>{As("Verify success","verify success"),e({action:"verify success",proposalId:I})},verifyFailed:(I,_,R)=>{As("Verify failed","verify failed"),e({action:"verify failed",proposalId:I,currentValue:_,compareValue:R})},walletSelect:I=>{As("Wallet select",`wallet: ${I}`),e({action:"wallet select",wallet:I})},voteSuccess:(I,_)=>{As("Vote success",`vote: ${_}, proposal: ${I}`),e({action:"vote success",vote:_,proposalAddress:I})},voteError:(I,_,R)=>{As("Vote failed",`error: ${R}`),e({action:"vote failed",vote:_,error:R,proposalAddress:I})},createSpaceMetadataSucess:(I,_)=>{As("Create space metadata success",`address: ${I}`),e({action:"create space metadata success",address:I,metadata:_})},createSpaceMetadataFailed:(I,_)=>{As("Create space metadata failed",`error: ${I}`),e({action:"create space metadata failed",error:I,metadata:_})},createSpaceSuccess:(I,_)=>{As("Create space success",`address: ${_}`),e({action:"create space success",metadataAddress:I,daoAddress:_})},createSpaceFailed:(I,_)=>{As("Create space failed",`error: ${_}`),e({action:"create space failed",error:_,metadataAddress:I})},createProposalSuccess:(I,_)=>{As("CreateProposalSuccess",`address: ${_}`),e({action:"create proposal success",proposalMetadata:I,proposalAddress:_})},createProposalFailed:(I,_)=>{As("Create proposal failed failed",`error: ${_}`),e({action:"create proposal failed",proposalMetadata:I,error:_})},updateDaoMetadataSuccess:(I,_)=>{As("Update dao metadata success",`dao address: ${_}`),e({action:"update dao metadata success",metadata:I,daoAddress:_})},updateDaoMetatdaFailed:(I,_,R)=>{As("Update space failed",`error: ${R}, dao address: ${_}`),e({action:"update space failed",error:R,metadata:I,daoAddress:_})},getProposalFromServerFailed:(I,_)=>{e({action:"get proposal from server failed",proposalId:I,error:_})},getProposalFromContractFailed:(I,_)=>{e({action:"get proposal from contract failed",proposalId:I,error:_})},getDaoFromServerFailed:(I,_)=>{e({action:"get dao from server failed",daoId:I,error:dq(_)})},getDaoFromContractFailed:(I,_)=>{e({action:"get dao from contract failed",daoId:I,error:dq(_)})},getProposalFromContractAfterVotingFailed:(I,_)=>{e({action:"get proposal from contract after voting failed",proposalId:I,error:_})}}},dq=e=>e instanceof Error?e.message:e,Mbt=()=>jd(["serverVersion"],nm.serverVersion),Obt=()=>{const e=wi(),t=xce(),{data:n}=Mbt(),r=t==null?void 0:t.device.appName,o=t==null?void 0:t.device.appVersion,i=t==null?void 0:t.device.platform,a=S$?"mobile":"desktop",s=M.useMemo(()=>({walletAddress:e,walletName:r,walletVersion:o,platform:i,device:a,serverVersion:n,sdkVerion:cq.dependencies["ton-vote-contracts-sdk"],uiVersion:cq.version}),[e,r,o,i,a]);return M.useCallback(l=>{const u=ns?"ton-vote-dev":"ton-vote";try{Yk.post(`https://bi.orbs.network/putes/${u}`,{...s,...l})}catch{}},[s])},Rbt=JSON.stringify({en:`TON Foundation has noticed a new initiative gaining momentum in the TON community. This initiative, known as the TON Believers Fund, has garnered notable support after composing an [Open Letter](https://t.me/SighToNews/690) to the TON Foundation through their Telegram channel. This initiative was simultaneously supported by a consortium of 11 TON communities in 9 languages that has over 300,000 community members. Several notable projects have already supported the fund, including major ecosystem investors [First Stage Labs](https://t.me/first_stage_labs/146), [DWF](https://x.com/dwflabs?s=11&t=KmCtPLRHBvIqlxKkkNJqhA), [Kilo Fund](https://t.me/Tonnypowerbewithyou/519), [ConnecTON](https://t.me/ConnectonVPN/111), and Layer 3 solution and creators of Ton.Vote - [Orbs](https://t.me/tonlicious/831). Between them, they have already donated 90,000 TON into the incentives pool. @@ -1497,7 +1497,7 @@ Given this information, the question for community vote is this: **Should TON Fo Please vote and let us know your thoughts in the community channels, we are watching and ready to support initiatives and ideas created by the community. -**This vote will run for 7 days from 17/08 until 24/08**`}),ybt=` +**This vote will run for 7 days from 17/08 until 24/08**`}),Dbt=`