403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/arrivealive.org/wp-content/plugins/everest-forms/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/arrivealive.org/wp-content/plugins/everest-forms/dist/templates.min.js
/*! For license information please see templates.min.js.LICENSE.txt */
(()=>{var e={4146:(e,t,n)=>{"use strict";var r=n(3404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=h(n);o&&o!==p&&e(t,o,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(t),m=l(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||m&&m[v]||s&&s[v])){var y=f(n,v);try{u(t,v,y)}catch(e){}}}}return t}},3072:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case i:case s:case a:case h:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case m:case l:return e;default:return t}}case o:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=h,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===v)},t.typeOf=w},3404:(e,t,n)=>{"use strict";e.exports=n(3072)},181:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,h=Math.min,p=function(){return c.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=i.test(e);return n||a.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,s,l,u=0,c=!1,d=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,i=o;return r=o=void 0,u=t,a=e.apply(i,n)}function b(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=i}function x(){var e=p();if(b(e))return w(e);s=setTimeout(x,function(e){var n=t-(e-l);return d?h(n,i-(e-u)):n}(e))}function w(e){return s=void 0,v&&r?y(e):(r=o=void 0,a)}function S(){var e=p(),n=b(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return u=e,s=setTimeout(x,t),c?y(e):a}(l);if(d)return s=setTimeout(x,t),y(l)}return void 0===s&&(s=setTimeout(x,t)),a}return t=g(t)||0,m(n)&&(c=!!n.leading,i=(d="maxWait"in n)?f(g(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=o=s=void 0},S.flush=function(){return void 0===s?a:w(p())},S}},8394:(e,t,n)=>{e=n.nmd(e);var r="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Function]",s="[object Object]",l=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[i]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c[a]=c["[object Map]"]=c["[object Number]"]=c[s]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1;var d,f,h,p="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,g=p||m||Function("return this")(),v=t&&!t.nodeType&&t,y=v&&e&&!e.nodeType&&e,b=y&&y.exports===v,x=b&&p.process,w=function(){try{return y&&y.require&&y.require("util").types||x&&x.binding&&x.binding("util")}catch(e){}}(),S=w&&w.isTypedArray,k=Array.prototype,C=Function.prototype,E=Object.prototype,_=g["__core-js_shared__"],P=C.toString,T=E.hasOwnProperty,R=(d=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",A=E.toString,O=P.call(Object),F=RegExp("^"+P.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z=b?g.Buffer:void 0,M=g.Symbol,j=g.Uint8Array,I=(z&&z.allocUnsafe,f=Object.getPrototypeOf,h=Object,function(e){return f(h(e))}),N=Object.create,D=E.propertyIsEnumerable,L=k.splice,B=M?M.toStringTag:void 0,$=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),V=z?z.isBuffer:void 0,W=Math.max,U=Date.now,H=se(g,"Map"),q=se(Object,"create"),Q=function(){function e(){}return function(t){if(!be(t))return{};if(N)return N(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function G(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=this.__data__=new G(e);this.size=t.size}function Z(e,t,n){(void 0!==n&&!fe(e[t],n)||void 0===n&&!(t in e))&&te(e,t,n)}function J(e,t,n){var r=e[t];T.call(e,t)&&fe(r,n)&&(void 0!==n||t in e)||te(e,t,n)}function ee(e,t){for(var n=e.length;n--;)if(fe(e[n][0],t))return n;return-1}function te(e,t,n){"__proto__"==t&&$?$(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}K.prototype.clear=function(){this.__data__=q?q(null):{},this.size=0},K.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},K.prototype.get=function(e){var t=this.__data__;if(q){var n=t[e];return n===r?void 0:n}return T.call(t,e)?t[e]:void 0},K.prototype.has=function(e){var t=this.__data__;return q?void 0!==t[e]:T.call(t,e)},K.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=q&&void 0===t?r:t,this},G.prototype.clear=function(){this.__data__=[],this.size=0},G.prototype.delete=function(e){var t=this.__data__,n=ee(t,e);return!(n<0||(n==t.length-1?t.pop():L.call(t,n,1),--this.size,0))},G.prototype.get=function(e){var t=this.__data__,n=ee(t,e);return n<0?void 0:t[n][1]},G.prototype.has=function(e){return ee(this.__data__,e)>-1},G.prototype.set=function(e,t){var n=this.__data__,r=ee(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},X.prototype.clear=function(){this.size=0,this.__data__={hash:new K,map:new(H||G),string:new K}},X.prototype.delete=function(e){var t=ae(this,e).delete(e);return this.size-=t?1:0,t},X.prototype.get=function(e){return ae(this,e).get(e)},X.prototype.has=function(e){return ae(this,e).has(e)},X.prototype.set=function(e,t){var n=ae(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Y.prototype.clear=function(){this.__data__=new G,this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Y.prototype.get=function(e){return this.__data__.get(e)},Y.prototype.has=function(e){return this.__data__.has(e)},Y.prototype.set=function(e,t){var n=this.__data__;if(n instanceof G){var r=n.__data__;if(!H||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new X(r)}return n.set(e,t),this.size=n.size,this};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":B&&B in Object(e)?function(e){var t=T.call(e,B),n=e[B];try{e[B]=void 0;var r=!0}catch(e){}var o=A.call(e);return r&&(t?e[B]=n:delete e[B]),o}(e):function(e){return A.call(e)}(e)}function re(e){return xe(e)&&ne(e)==i}function oe(e,t,n,r,o){e!==t&&function(e,t,n){for(var r=-1,o=Object(e),i=n(e),a=i.length;a--;){var s=i[++r];if(!1===t(o[s],s,o))break}}(t,function(i,a){if(o||(o=new Y),be(i))!function(e,t,n,r,o,i,a){var l=ce(e,n),u=ce(t,n),c=a.get(u);if(c)Z(e,n,c);else{var d,f,h,p,m,g=i?i(l,u,n+"",e,t,a):void 0,v=void 0===g;if(v){var y=pe(u),b=!y&&ge(u),x=!y&&!b&&we(u);g=u,y||b||x?pe(l)?g=l:xe(m=l)&&me(m)?g=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(l):b?(v=!1,g=function(e){return e.slice()}(u)):x?(v=!1,p=new(h=(d=u).buffer).constructor(h.byteLength),new j(p).set(new j(h)),f=p,g=new d.constructor(f,d.byteOffset,d.length)):g=[]:function(e){if(!xe(e)||ne(e)!=s)return!1;var t=I(e);if(null===t)return!0;var n=T.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==O}(u)||he(u)?(g=l,he(l)?g=function(e){return function(e,t,n){var r=!n;n||(n={});for(var o=-1,i=t.length;++o<i;){var a=t[o],s=void 0;void 0===s&&(s=e[a]),r?te(n,a,s):J(n,a,s)}return n}(e,Se(e))}(l):be(l)&&!ve(l)||(g=function(e){return"function"!=typeof e.constructor||ue(e)?{}:Q(I(e))}(u))):v=!1}v&&(a.set(u,g),o(g,u,r,i,a),a.delete(u)),Z(e,n,g)}}(e,t,a,n,oe,r,o);else{var l=r?r(ce(e,a),i,a+"",e,t,o):void 0;void 0===l&&(l=i),Z(e,a,l)}},Se)}var ie=$?function(e,t){return $(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ee;function ae(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function se(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!be(e)||function(e){return!!R&&R in e}(e))&&(ve(e)?F:l).test(function(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}(n)?n:void 0}function le(e,t){var n=typeof e;return!!(t=null==t?o:t)&&("number"==n||"symbol"!=n&&u.test(e))&&e>-1&&e%1==0&&e<t}function ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||E)}function ce(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var de=function(e){var t=0,n=0;return function(){var r=U(),o=16-(r-n);if(n=r,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ie);function fe(e,t){return e===t||e!=e&&t!=t}var he=re(function(){return arguments}())?re:function(e){return xe(e)&&T.call(e,"callee")&&!D.call(e,"callee")},pe=Array.isArray;function me(e){return null!=e&&ye(e.length)&&!ve(e)}var ge=V||function(){return!1};function ve(e){if(!be(e))return!1;var t=ne(e);return t==a||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ye(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=o}function be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function xe(e){return null!=e&&"object"==typeof e}var we=S?function(e){return function(t){return e(t)}}(S):function(e){return xe(e)&&ye(e.length)&&!!c[ne(e)]};function Se(e){return me(e)?function(e,t){var n=pe(e),r=!n&&he(e),o=!n&&!r&&ge(e),i=!n&&!r&&!o&&we(e),a=n||r||o||i,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!T.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||le(u,l))||s.push(u);return s}(e,!0):function(e){if(!be(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ue(e),n=[];for(var r in e)("constructor"!=r||!t&&T.call(e,r))&&n.push(r);return n}(e)}var ke,Ce=(ke=function(e,t,n,r){oe(e,t,n,r)},function(e,t){return de(function(e,t,n){return t=W(void 0===t?e.length-1:t,0),function(){for(var r=arguments,o=-1,i=W(r.length-t,0),a=Array(i);++o<i;)a[o]=r[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=r[o];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ee),e+"")}(function(e,t){var n=-1,r=t.length,o=r>1?t[r-1]:void 0,i=r>2?t[2]:void 0;for(o=ke.length>3&&"function"==typeof o?(r--,o):void 0,i&&function(e,t,n){if(!be(n))return!1;var r=typeof t;return!!("number"==r?me(n)&&le(t,n.length):"string"==r&&t in n)&&fe(n[t],e)}(t[0],t[1],i)&&(o=r<3?void 0:o,r=1),e=Object(e);++n<r;){var a=t[n];a&&ke(e,a,n,o)}return e}));function Ee(e){return e}e.exports=Ce},2551:(e,t,n)=>{"use strict";var r=n(1993),o=n(9982);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=Object.prototype.hasOwnProperty,f=/^[: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]*$/,h={},p={};function m(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){g[e]=new m(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){g[e]=new m(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){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){g[e]=new m(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){g[e]=new m(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){g[e]=new m(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)});var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(p,e)||!d.call(h,e)&&(f.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"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(v,y);g[t]=new m(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(v,y);g[t]=new m(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(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)}),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)});var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),R=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),F=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var z=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var M=Symbol.iterator;function j(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=M&&e[M]||e["@@iterator"])?e:null}var I,N=Object.assign;function D(e){if(void 0===I)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var L=!1;function B(e,t){if(!e||L)return"";L=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(1!==a||1!==s)do{if(a--,0>--s||o[a]!==i[s]){var l="\n"+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=a&&0<=s);break}}}finally{L=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?D(e):""}function $(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return B(e.type,!1);case 11:return B(e.type.render,!1);case 1:return B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case E:return"Profiler";case C:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case F:t=e._payload,e=e._init;try{return V(e(t))}catch(e){}}return null}function W(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=(e=t.render).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 V(t);case 8:return t===C?"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("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function U(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function H(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function q(e){e._valueTracker||(e._valueTracker=function(e){var t=H(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=H(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return N({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=U(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){Y(e,t);var n=U(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,U(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+U(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return N({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:U(n)}}function ie(e,t){var n=U(t.value),r=U(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,de=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ce(e,t)})}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={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},pe=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(he).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]})});var ve=N({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;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 xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Ce=null;function Ee(e){if(e=xo(e)){if("function"!=typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function _e(e){ke?Ce?Ce.push(e):Ce=[e]:ke=e}function Pe(){if(ke){var e=ke,t=Ce;if(Ce=ke=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Re(){}var Ae=!1;function Oe(e,t,n){if(Ae)return e(t,n);Ae=!0;try{return Te(e,t,n)}finally{Ae=!1,(null!==ke||null!==Ce)&&(Re(),Pe())}}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=So(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var ze=!1;if(c)try{var Me={};Object.defineProperty(Me,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Me,Me),window.removeEventListener("test",Me,Me)}catch(ce){ze=!1}function je(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Ie=!1,Ne=null,De=!1,Le=null,Be={onError:function(e){Ie=!0,Ne=e}};function $e(e,t,n,r,o,i,a,s,l){Ie=!1,Ne=null,je.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ue(e){if(Ve(e)!==e)throw Error(i(188))}function He(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Ue(o),e;if(a===r)return Ue(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,r=a;break}if(l===r){s=!0,r=o,n=a;break}l=l.sibling}if(!s){for(l=a.child;l;){if(l===n){s=!0,n=a,r=o;break}if(l===r){s=!0,r=a,n=o;break}l=l.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?qe(e):null}function qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=qe(e);if(null!==t)return t;e=e.sibling}return null}var Qe=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ge=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ye=o.unstable_now,Ze=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,nt=o.unstable_LowPriority,rt=o.unstable_IdlePriority,ot=null,it=null,at=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2,ut=64,ct=4194304;function dt(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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~o;0!==s?r=dt(s):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-at(t)),r|=e[n],t&=~o;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ut;return!(4194240&(ut<<=1))&&(ut=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,St,kt,Ct,Et,_t=!1,Pt=[],Tt=null,Rt=null,At=null,Ot=new Map,Ft=new Map,zt=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Rt=null;break;case"mouseover":case"mouseout":At=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ft.delete(t.pointerId)}}function It(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&null!==(t=xo(t))&&St(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Nt(e){var t=bo(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void Et(e.priority,function(){kt(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Dt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=xo(n))&&St(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function Lt(e,t,n){Dt(e)&&n.delete(t)}function Bt(){_t=!1,null!==Tt&&Dt(Tt)&&(Tt=null),null!==Rt&&Dt(Rt)&&(Rt=null),null!==At&&Dt(At)&&(At=null),Ot.forEach(Lt),Ft.forEach(Lt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Bt)))}function Vt(e){function t(t){return $t(t,e)}if(0<Pt.length){$t(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&$t(Tt,e),null!==Rt&&$t(Rt,e),null!==At&&$t(At,e),Ot.forEach(t),Ft.forEach(t),n=0;n<zt.length;n++)(r=zt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<zt.length&&null===(n=zt[0]).blockedOn;)Nt(n),null===n.blockedOn&&zt.shift()}var Wt=x.ReactCurrentBatchConfig,Ut=!0;function Ht(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=1,Qt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function qt(e,t,n,r){var o=bt,i=Wt.transition;Wt.transition=null;try{bt=4,Qt(e,t,n,r)}finally{bt=o,Wt.transition=i}}function Qt(e,t,n,r){if(Ut){var o=Gt(e,t,n,r);if(null===o)Ur(e,t,r,Kt,n),jt(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return Tt=It(Tt,e,t,n,r,o),!0;case"dragenter":return Rt=It(Rt,e,t,n,r,o),!0;case"mouseover":return At=It(At,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Ot.set(i,It(Ot.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Ft.set(i,It(Ft.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Mt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Gt(e,t,n,r))&&Ur(e,t,r,Kt,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ur(e,t,r,null,n)}}var Kt=null;function Gt(e,t,n,r){if(Kt=null,null!==(e=bo(e=we(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,o="value"in Yt?Yt.value:Yt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return N(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,ln,un={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=on(un),dn=N({},un,{view:0,detail:0}),fn=on(dn),hn=N({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(an=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=an=0,ln=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=on(hn),mn=on(N({},hn,{dataTransfer:0})),gn=on(N({},dn,{relatedTarget:0})),vn=on(N({},un,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=N({},un,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(yn),xn=on(N({},un,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function En(){return Cn}var _n=N({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=on(_n),Tn=on(N({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=on(N({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),An=on(N({},un,{propertyName:0,elapsedTime:0,pseudoElement:0})),On=N({},hn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fn=on(On),zn=[9,13,27,32],Mn=c&&"CompositionEvent"in window,jn=null;c&&"documentMode"in document&&(jn=document.documentMode);var In=c&&"TextEvent"in window&&!jn,Nn=c&&(!Mn||jn&&8<jn&&11>=jn),Dn=String.fromCharCode(32),Ln=!1;function Bn(e,t){switch(e){case"keyup":return-1!==zn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Hn(e,t,n,r){_e(r),0<(t=qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var qn=null,Qn=null;function Kn(e){Dr(e,0)}function Gn(e){if(Q(wo(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Yn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){qn&&(qn.detachEvent("onpropertychange",nr),Qn=qn=null)}function nr(e){if("value"===e.propertyName&&Gn(Qn)){var t=[];Hn(t,Qn,e,we(e)),Oe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Qn=n,(qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function or(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(Qn)}function ir(e,t){if("click"===e)return Gn(t)}function ar(e,t){if("input"===e||"change"===e)return Gn(t)}var sr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function lr(e,t){if(sr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!d.call(t,o)||!sr(e[o],t[o]))return!1}return!0}function ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ur(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=fr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(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).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=cr(n,i);var a=cr(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).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;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function xr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==K(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&lr(yr,r)||(yr=r,0<(r=qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Sr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},kr={},Cr={};function Er(e){if(kr[e])return kr[e];if(!Sr[e])return e;var t,n=Sr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return kr[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);var _r=Er("animationend"),Pr=Er("animationiteration"),Tr=Er("animationstart"),Rr=Er("transitionend"),Ar=new Map,Or="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Fr(e,t){Ar.set(e,t),l(t,[e])}for(var zr=0;zr<Or.length;zr++){var Mr=Or[zr];Fr(Mr.toLowerCase(),"on"+(Mr[0].toUpperCase()+Mr.slice(1)))}Fr(_r,"onAnimationEnd"),Fr(Pr,"onAnimationIteration"),Fr(Tr,"onAnimationStart"),Fr("dblclick","onDoubleClick"),Fr("focusin","onFocus"),Fr("focusout","onBlur"),Fr(Rr,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ir=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Nr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,s,l,u){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(i(198));var c=Ne;Ie=!1,Ne=null,De||(De=!0,Le=c)}}(r,t,void 0,e),e.currentTarget=null}function Dr(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;Nr(o,s,u),i=l}else for(a=0;a<r.length;a++){if(l=(s=r[a]).instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;Nr(o,s,u),i=l}}}if(De)throw e=Le,De=!1,Le=null,e}function Lr(e,t){var n=t[go];void 0===n&&(n=t[go]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Br(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Vr(e){if(!e[$r]){e[$r]=!0,a.forEach(function(t){"selectionchange"!==t&&(Ir.has(t)||Br(t,!1,e),Br(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$r]||(t[$r]=!0,Br("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Xt(t)){case 1:var o=Ht;break;case 4:o=qt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ur(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===o||8===s.nodeType&&s.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var l=a.tag;if((3===l||4===l)&&((l=a.stateNode.containerInfo)===o||8===l.nodeType&&l.parentNode===o))return;a=a.return}for(;null!==s;){if(null===(a=bo(s)))return;if(5===(l=a.tag)||6===l){r=i=a;continue e}s=s.parentNode}}r=r.return}Oe(function(){var r=i,o=we(n),a=[];e:{var s=Ar.get(e);if(void 0!==s){var l=cn,u=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Pn;break;case"focusin":u="focus",l=gn;break;case"focusout":u="blur",l=gn;break;case"beforeblur":case"afterblur":l=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Rn;break;case _r:case Pr:case Tr:l=vn;break;case Rr:l=An;break;case"scroll":l=fn;break;case"wheel":l=Fn;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var c=!!(4&t),d=!c&&"scroll"===e,f=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var m=(h=p).stateNode;if(5===h.tag&&null!==m&&(h=m,null!==f&&null!=(m=Fe(p,f))&&c.push(Hr(p,m,h))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,o),a.push({event:s,listeners:c}))}}if(!(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!bo(u)&&!u[mo])&&(l||s)&&(s=o.window===o?o:(s=o.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?bo(u):null)&&(u!==(d=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=pn,m="onMouseLeave",f="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Tn,m="onPointerLeave",f="onPointerEnter",p="pointer"),d=null==l?s:wo(l),h=null==u?s:wo(u),(s=new c(m,p+"leave",l,n,o)).target=d,s.relatedTarget=h,m=null,bo(o)===r&&((c=new c(f,p+"enter",u,n,o)).target=h,c.relatedTarget=d,m=c),d=m,l&&u)e:{for(f=u,p=0,h=c=l;h;h=Qr(h))p++;for(h=0,m=f;m;m=Qr(m))h++;for(;0<p-h;)c=Qr(c),p--;for(;0<h-p;)f=Qr(f),h--;for(;p--;){if(c===f||null!==f&&c===f.alternate)break e;c=Qr(c),f=Qr(f)}c=null}else c=null;null!==l&&Kr(a,s,l,c,!1),null!==u&&null!==d&&Kr(a,d,u,c,!0)}if("select"===(l=(s=r?wo(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var g=Xn;else if(Un(s))if(Yn)g=ar;else{g=or;var v=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(g=ir);switch(g&&(g=g(e,r))?Hn(a,g,n,o):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wo(r):window,e){case"focusin":(Un(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,xr(a,n,o);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":xr(a,n,o)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Vn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Vn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Vn&&(y=en()):(Zt="value"in(Yt=o)?Yt.value:Yt.textContent,Vn=!0)),0<(v=qr(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),(y||null!==(y=$n(n)))&&(b.data=y))),(y=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Ln=!0,Dn);case"textInput":return(e=t.data)===Dn&&Ln?null:e;default:return null}}(e,n):function(e,t){if(Vn)return"compositionend"===e||!Mn&&Bn(e,t)?(e=en(),Jt=Zt=Yt=null,Vn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=qr(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}Dr(a,t)})}function Hr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Hr(e,i,o)),null!=(i=Fe(e,t))&&r.push(Hr(e,i,o))),e=e.return}return r}function Qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,o?null!=(l=Fe(n,i))&&a.unshift(Hr(n,l,s)):o||null!=(l=Fe(n,i))&&a.push(Hr(n,l,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Gr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Jr(){}var eo=null,to=null;function no(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ro="function"==typeof setTimeout?setTimeout:void 0,oo="function"==typeof clearTimeout?clearTimeout:void 0,io="function"==typeof Promise?Promise:void 0,ao="function"==typeof queueMicrotask?queueMicrotask:void 0!==io?function(e){return io.resolve(null).then(e).catch(so)}:ro;function so(e){setTimeout(function(){throw e})}function lo(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Vt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Vt(t)}function uo(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function co(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fo=Math.random().toString(36).slice(2),ho="__reactFiber$"+fo,po="__reactProps$"+fo,mo="__reactContainer$"+fo,go="__reactEvents$"+fo,vo="__reactListeners$"+fo,yo="__reactHandles$"+fo;function bo(e){var t=e[ho];if(t)return t;for(var n=e.parentNode;n;){if(t=n[mo]||n[ho]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=co(e);null!==e;){if(n=e[ho])return n;e=co(e)}return t}n=(e=n).parentNode}return null}function xo(e){return!(e=e[ho]||e[mo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[po]||null}var ko=[],Co=-1;function Eo(e){return{current:e}}function _o(e){0>Co||(e.current=ko[Co],ko[Co]=null,Co--)}function Po(e,t){Co++,ko[Co]=e.current,e.current=t}var To={},Ro=Eo(To),Ao=Eo(!1),Oo=To;function Fo(e,t){var n=e.type.contextTypes;if(!n)return To;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zo(e){return null!=e.childContextTypes}function Mo(){_o(Ao),_o(Ro)}function jo(e,t,n){if(Ro.current!==To)throw Error(i(168));Po(Ro,t),Po(Ao,n)}function Io(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(i(108,W(e)||"Unknown",o));return N({},n,r)}function No(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||To,Oo=Ro.current,Po(Ro,e),Po(Ao,Ao.current),!0}function Do(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Io(e,t,Oo),r.__reactInternalMemoizedMergedChildContext=e,_o(Ao),_o(Ro),Po(Ro,e)):_o(Ao),Po(Ao,n)}var Lo=null,Bo=!1,$o=!1;function Vo(e){null===Lo?Lo=[e]:Lo.push(e)}function Wo(){if(!$o&&null!==Lo){$o=!0;var e=0,t=bt;try{var n=Lo;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Lo=null,Bo=!1}catch(t){throw null!==Lo&&(Lo=Lo.slice(e+1)),Qe(Je,Wo),t}finally{bt=t,$o=!1}}return null}var Uo=[],Ho=0,qo=null,Qo=0,Ko=[],Go=0,Xo=null,Yo=1,Zo="";function Jo(e,t){Uo[Ho++]=Qo,Uo[Ho++]=qo,qo=e,Qo=t}function ei(e,t,n){Ko[Go++]=Yo,Ko[Go++]=Zo,Ko[Go++]=Xo,Xo=e;var r=Yo;e=Zo;var o=32-at(r)-1;r&=~(1<<o),n+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Yo=1<<32-at(t)+o|n<<o|r,Zo=i+e}else Yo=1<<i|n<<o|r,Zo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ni(e){for(;e===qo;)qo=Uo[--Ho],Uo[Ho]=null,Qo=Uo[--Ho],Uo[Ho]=null;for(;e===Xo;)Xo=Ko[--Go],Ko[Go]=null,Zo=Ko[--Go],Ko[Go]=null,Yo=Ko[--Go],Ko[Go]=null}var ri=null,oi=null,ii=!1,ai=null;function si(e,t){var n=Fu(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function li(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ri=e,oi=uo(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ri=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xo?{id:Yo,overflow:Zo}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Fu(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ri=e,oi=null,!0);default:return!1}}function ui(e){return!(!(1&e.mode)||128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var n=t;if(!li(e,t)){if(ui(e))throw Error(i(418));t=uo(n.nextSibling);var r=ri;t&&li(e,t)?si(r,n):(e.flags=-4097&e.flags|2,ii=!1,ri=e)}}else{if(ui(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ri=e}}}function di(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ri=e}function fi(e){if(e!==ri)return!1;if(!ii)return di(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!no(e.type,e.memoizedProps)),t&&(t=oi)){if(ui(e))throw hi(),Error(i(418));for(;t;)si(e,t),t=uo(t.nextSibling)}if(di(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){oi=uo(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}oi=null}}else oi=ri?uo(e.stateNode.nextSibling):null;return!0}function hi(){for(var e=oi;e;)e=uo(e.nextSibling)}function pi(){oi=ri=null,ii=!1}function mi(e){null===ai?ai=[e]:ai.push(e)}var gi=x.ReactCurrentBatchConfig;function vi(e,t){if(e&&e.defaultProps){for(var n in t=N({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var yi=Eo(null),bi=null,xi=null,wi=null;function Si(){wi=xi=bi=null}function ki(e){var t=yi.current;_o(yi),e._currentValue=t}function Ci(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ei(e,t){bi=e,wi=xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(xs=!0),e.firstContext=null)}function _i(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===xi){if(null===bi)throw Error(i(308));xi=e,bi.dependencies={lanes:0,firstContext:e}}else xi=xi.next=e;return t}var Pi=null;function Ti(e){null===Pi?Pi=[e]:Pi.push(e)}function Ri(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,Ti(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ai(e,r)}function Ai(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Oi=!1;function Fi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zi(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Mi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ji(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Rl){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ai(e,n)}return null===(o=r.interleaved)?(t.next=t,Ti(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ai(e,n)}function Ii(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Ni(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Di(e,t,n,r){var o=e.updateQueue;Oi=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(null!==s){o.shared.pending=null;var l=s,u=l.next;l.next=null,null===a?i=u:a.next=u,a=l;var c=e.alternate;null!==c&&(s=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l)}if(null!==i){var d=o.baseState;for(a=0,c=u=l=null,s=i;;){var f=s.lane,h=s.eventTime;if((r&f)===f){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,m=s;switch(f=t,h=n,m.tag){case 1:if("function"==typeof(p=m.payload)){d=p.call(h,d,f);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(f="function"==typeof(p=m.payload)?p.call(h,d,f):p))break e;d=N({},d,f);break e;case 2:Oi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(f=o.effects)?o.effects=[s]:f.push(s))}else h={eventTime:h,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,a|=f;if(null===(s=s.next)){if(null===(s=o.shared.pending))break;s=(f=s).next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}if(null===c&&(l=d),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Nl|=a,e.lanes=a,e.memoizedState=d}}function Li(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var Bi=(new r.Component).refs;function $i(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Vi={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Mi(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),Ii(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tu(),o=nu(e),i=Mi(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=ji(e,i,o))&&(ru(t,e,o,r),Ii(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tu(),r=nu(e),o=Mi(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=ji(e,o,r))&&(ru(t,e,r,n),Ii(t,e,r))}};function Wi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&lr(n,r)&&lr(o,i))}function Ui(e,t,n){var r=!1,o=To,i=t.contextType;return"object"==typeof i&&null!==i?i=_i(i):(o=zo(t)?Oo:Ro.current,i=(r=null!=(r=t.contextTypes))?Fo(e,o):To),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Vi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vi.enqueueReplaceState(t,t.state,null)}function qi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Bi,Fi(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=_i(i):(i=zo(t)?Oo:Ro.current,o.context=Fo(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&($i(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Vi.enqueueReplaceState(o,o.state,null),Di(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Qi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=r,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;t===Bi&&(t=o.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ki(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Gi(e){return(0,e._init)(e._payload)}function Xi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Mu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Du(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(e,t,n,r){var i=n.type;return i===k?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===F&&Gi(i)===t.type)?((r=o(t,n.props)).ref=Qi(e,t,n),r.return=e,r):((r=ju(n.type,n.key,n.props,null,e.mode,r)).ref=Qi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Lu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function d(e,t,n,r,i){return null===t||7!==t.tag?((t=Iu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Du(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=ju(t.type,t.key,t.props,null,e.mode,n)).ref=Qi(e,null,t),n.return=e,n;case S:return(t=Lu(t,e.mode,n)).return=e,t;case F:return f(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=Iu(t,e.mode,n,null)).return=e,t;Ki(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===o?u(e,t,n,r):null;case S:return n.key===o?c(e,t,n,r):null;case F:return h(e,t,(o=n._init)(n._payload),r)}if(te(n)||j(n))return null!==o?null:d(e,t,n,r,null);Ki(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case S:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o);case F:return p(e,t,n,(0,r._init)(r._payload),o)}if(te(r)||j(r))return d(t,e=e.get(n)||null,r,o,null);Ki(t,r)}return null}function m(o,i,s,l){for(var u=null,c=null,d=i,m=i=0,g=null;null!==d&&m<s.length;m++){d.index>m?(g=d,d=null):g=d.sibling;var v=h(o,d,s[m],l);if(null===v){null===d&&(d=g);break}e&&d&&null===v.alternate&&t(o,d),i=a(v,i,m),null===c?u=v:c.sibling=v,c=v,d=g}if(m===s.length)return n(o,d),ii&&Jo(o,m),u;if(null===d){for(;m<s.length;m++)null!==(d=f(o,s[m],l))&&(i=a(d,i,m),null===c?u=d:c.sibling=d,c=d);return ii&&Jo(o,m),u}for(d=r(o,d);m<s.length;m++)null!==(g=p(d,o,m,s[m],l))&&(e&&null!==g.alternate&&d.delete(null===g.key?m:g.key),i=a(g,i,m),null===c?u=g:c.sibling=g,c=g);return e&&d.forEach(function(e){return t(o,e)}),ii&&Jo(o,m),u}function g(o,s,l,u){var c=j(l);if("function"!=typeof c)throw Error(i(150));if(null==(l=c.call(l)))throw Error(i(151));for(var d=c=null,m=s,g=s=0,v=null,y=l.next();null!==m&&!y.done;g++,y=l.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=h(o,m,y.value,u);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(o,m),s=a(b,s,g),null===d?c=b:d.sibling=b,d=b,m=v}if(y.done)return n(o,m),ii&&Jo(o,g),c;if(null===m){for(;!y.done;g++,y=l.next())null!==(y=f(o,y.value,u))&&(s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return ii&&Jo(o,g),c}for(m=r(o,m);!y.done;g++,y=l.next())null!==(y=p(m,o,g,y.value,u))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),s=a(y,s,g),null===d?c=y:d.sibling=y,d=y);return e&&m.forEach(function(e){return t(o,e)}),ii&&Jo(o,g),c}return function e(r,i,a,l){if("object"==typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var u=a.key,c=i;null!==c;){if(c.key===u){if((u=a.type)===k){if(7===c.tag){n(r,c.sibling),(i=o(c,a.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===F&&Gi(u)===c.type){n(r,c.sibling),(i=o(c,a.props)).ref=Qi(r,c,a),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}a.type===k?((i=Iu(a.props.children,r.mode,l,a.key)).return=r,r=i):((l=ju(a.type,a.key,a.props,null,r.mode,l)).ref=Qi(r,i,a),l.return=r,r=l)}return s(r);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){n(r,i.sibling),(i=o(i,a.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Lu(a,r.mode,l)).return=r,r=i}return s(r);case F:return e(r,i,(c=a._init)(a._payload),l)}if(te(a))return m(r,i,a,l);if(j(a))return g(r,i,a,l);Ki(r,a)}return"string"==typeof a&&""!==a||"number"==typeof a?(a=""+a,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,a)).return=r,r=i):(n(r,i),(i=Du(a,r.mode,l)).return=r,r=i),s(r)):n(r,i)}}var Yi=Xi(!0),Zi=Xi(!1),Ji={},ea=Eo(Ji),ta=Eo(Ji),na=Eo(Ji);function ra(e){if(e===Ji)throw Error(i(174));return e}function oa(e,t){switch(Po(na,t),Po(ta,e),Po(ea,Ji),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(ea),Po(ea,t)}function ia(){_o(ea),_o(ta),_o(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=le(t,e.type);t!==n&&(Po(ta,e),Po(ea,n))}function sa(e){ta.current===e&&(_o(ea),_o(ta))}var la=Eo(0);function ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ca=[];function da(){for(var e=0;e<ca.length;e++)ca[e]._workInProgressVersionPrimary=null;ca.length=0}var fa=x.ReactCurrentDispatcher,ha=x.ReactCurrentBatchConfig,pa=0,ma=null,ga=null,va=null,ya=!1,ba=!1,xa=0,wa=0;function Sa(){throw Error(i(321))}function ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ca(e,t,n,r,o,a){if(pa=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fa.current=null===e||null===e.memoizedState?ss:ls,e=n(r,o),ba){a=0;do{if(ba=!1,xa=0,25<=a)throw Error(i(301));a+=1,va=ga=null,t.updateQueue=null,fa.current=us,e=n(r,o)}while(ba)}if(fa.current=as,t=null!==ga&&null!==ga.next,pa=0,va=ga=ma=null,ya=!1,t)throw Error(i(300));return e}function Ea(){var e=0!==xa;return xa=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Pa(){if(null===ga){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ga.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ga=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ga=e).memoizedState,baseState:ga.baseState,baseQueue:ga.baseQueue,queue:ga.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ta(e,t){return"function"==typeof t?t(e):t}function Ra(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ga,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var s=o.next;o.next=a.next,a.next=s}r.baseQueue=o=a,n.pending=null}if(null!==o){a=o.next,r=r.baseState;var l=s=null,u=null,c=a;do{var d=c.lane;if((pa&d)===d)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:d,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=f,s=r):u=u.next=f,ma.lanes|=d,Nl|=d}c=c.next}while(null!==c&&c!==a);null===u?s=r:u.next=l,sr(r,t.memoizedState)||(xs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{a=o.lane,ma.lanes|=a,Nl|=a,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Aa(e){var t=Pa(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{a=e(a,s.action),s=s.next}while(s!==o);sr(a,t.memoizedState)||(xs=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Oa(){}function Fa(e,t){var n=ma,r=Pa(),o=t(),a=!sr(r.memoizedState,o);if(a&&(r.memoizedState=o,xs=!0),r=r.queue,Ua(ja.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,La(9,Ma.bind(null,n,r,o,t),void 0,null),null===Al)throw Error(i(349));30&pa||za(n,t,o)}return o}function za(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ma(e,t,n,r){t.value=n,t.getSnapshot=r,Ia(t)&&Na(e)}function ja(e,t,n){return n(function(){Ia(t)&&Na(e)})}function Ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(e){return!0}}function Na(e){var t=Ai(e,1);null!==t&&ru(t,e,1,-1)}function Da(e){var t=_a();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function La(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ba(){return Pa().memoizedState}function $a(e,t,n,r){var o=_a();ma.flags|=e,o.memoizedState=La(1|t,n,void 0,void 0===r?null:r)}function Va(e,t,n,r){var o=Pa();r=void 0===r?null:r;var i=void 0;if(null!==ga){var a=ga.memoizedState;if(i=a.destroy,null!==r&&ka(r,a.deps))return void(o.memoizedState=La(t,n,i,r))}ma.flags|=e,o.memoizedState=La(1|t,n,i,r)}function Wa(e,t){return $a(8390656,8,e,t)}function Ua(e,t){return Va(2048,8,e,t)}function Ha(e,t){return Va(4,2,e,t)}function qa(e,t){return Va(4,4,e,t)}function Qa(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ka(e,t,n){return n=null!=n?n.concat([e]):null,Va(4,4,Qa.bind(null,t,e),n)}function Ga(){}function Xa(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=Pa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Za(e,t,n){return 21&pa?(sr(n,t)||(n=mt(),ma.lanes|=n,Nl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,xs=!0),e.memoizedState=n)}function Ja(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ha.transition;ha.transition={};try{e(!1),t()}finally{bt=n,ha.transition=r}}function es(){return Pa().memoizedState}function ts(e,t,n){var r=nu(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e)?os(t,n):null!==(n=Ri(e,t,n,r))&&(ru(n,e,r,tu()),is(n,t,r))}function ns(e,t,n){var r=nu(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))os(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,sr(s,a)){var l=t.interleaved;return null===l?(o.next=o,Ti(t)):(o.next=l.next,l.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Ri(e,t,o,r))&&(ru(n,e,r,o=tu()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function os(e,t){ba=ya=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var as={readContext:_i,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useInsertionEffect:Sa,useLayoutEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useMutableSource:Sa,useSyncExternalStore:Sa,useId:Sa,unstable_isNewReconciler:!1},ss={readContext:_i,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_i,useEffect:Wa,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,$a(4194308,4,Qa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $a(4194308,4,e,t)},useInsertionEffect:function(e,t){return $a(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?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=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:Da,useDebugValue:Ga,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=Da(!1),t=e[0];return e=Ja.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,o=_a();if(ii){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Al)throw Error(i(349));30&pa||za(r,t,n)}o.memoizedState=n;var a={value:n,getSnapshot:t};return o.queue=a,Wa(ja.bind(null,r,a,e),[e]),r.flags|=2048,La(9,Ma.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Al.identifierPrefix;if(ii){var n=Zo;t=":"+t+"R"+(n=(Yo&~(1<<32-at(Yo)-1)).toString(32)+n),0<(n=xa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:_i,useCallback:Xa,useContext:_i,useEffect:Ua,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ya,useReducer:Ra,useRef:Ba,useState:function(){return Ra(Ta)},useDebugValue:Ga,useDeferredValue:function(e){return Za(Pa(),ga.memoizedState,e)},useTransition:function(){return[Ra(Ta)[0],Pa().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Fa,useId:es,unstable_isNewReconciler:!1},us={readContext:_i,useCallback:Xa,useContext:_i,useEffect:Ua,useImperativeHandle:Ka,useInsertionEffect:Ha,useLayoutEffect:qa,useMemo:Ya,useReducer:Aa,useRef:Ba,useState:function(){return Aa(Ta)},useDebugValue:Ga,useDeferredValue:function(e){var t=Pa();return null===ga?t.memoizedState=e:Za(t,ga.memoizedState,e)},useTransition:function(){return[Aa(Ta)[0],Pa().memoizedState]},useMutableSource:Oa,useSyncExternalStore:Fa,useId:es,unstable_isNewReconciler:!1};function cs(e,t){try{var n="",r=t;do{n+=$(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function fs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var hs="function"==typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Mi(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hl||(Hl=!0,ql=r),fs(0,t)},n}function ms(e,t,n){(n=Mi(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){fs(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){fs(0,t),"function"!=typeof r&&(null===Ql?Ql=new Set([this]):Ql.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=_u.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Mi(-1,1)).tag=2,ji(n,t,1))),n.lanes|=1),e)}var bs=x.ReactCurrentOwner,xs=!1;function ws(e,t,n,r){t.child=null===e?Zi(t,null,n,r):Yi(t,e.child,n,r)}function Ss(e,t,n,r,o){n=n.render;var i=t.ref;return Ei(t,o),r=Ca(e,t,n,r,i,o),n=Ea(),null===e||xs?(ii&&n&&ti(t),t.flags|=1,ws(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function ks(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||zu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ju(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Cs(e,t,i,r,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(a,r)&&e.ref===t.ref)return Hs(e,t,o)}return t.flags|=1,(e=Mu(i,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(lr(i,r)&&e.ref===t.ref){if(xs=!1,t.pendingProps=r=i,0===(e.lanes&o))return t.lanes=e.lanes,Hs(e,t,o);131072&e.flags&&(xs=!0)}}return Ps(e,t,n,r,o)}function Es(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Po(Ml,zl),zl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Po(Ml,zl),zl|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Po(Ml,zl),zl|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Po(Ml,zl),zl|=r;return ws(e,t,o,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ps(e,t,n,r,o){var i=zo(n)?Oo:Ro.current;return i=Fo(t,i),Ei(t,o),n=Ca(e,t,n,r,i,o),r=Ea(),null===e||xs?(ii&&r&&ti(t),t.flags|=1,ws(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hs(e,t,o))}function Ts(e,t,n,r,o){if(zo(n)){var i=!0;No(t)}else i=!1;if(Ei(t,o),null===t.stateNode)Us(e,t),Ui(t,n,r),qi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;u="object"==typeof u&&null!==u?_i(u):Fo(t,u=zo(n)?Oo:Ro.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||l!==u)&&Hi(t,a,r,u),Oi=!1;var f=t.memoizedState;a.state=f,Di(t,r,a,o),l=t.memoizedState,s!==r||f!==l||Ao.current||Oi?("function"==typeof c&&($i(t,n,c,r),l=t.memoizedState),(s=Oi||Wi(t,n,s,r,f,l,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,zi(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:vi(t.type,s),a.props=u,d=t.pendingProps,f=a.context,l="object"==typeof(l=n.contextType)&&null!==l?_i(l):Fo(t,l=zo(n)?Oo:Ro.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==d||f!==l)&&Hi(t,a,r,l),Oi=!1,f=t.memoizedState,a.state=f,Di(t,r,a,o);var p=t.memoizedState;s!==d||f!==p||Ao.current||Oi?("function"==typeof h&&($i(t,n,h,r),p=t.memoizedState),(u=Oi||Wi(t,n,u,r,f,p,l)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):("function"!=typeof a.componentDidUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Rs(e,t,n,r,i,o)}function Rs(e,t,n,r,o,i){_s(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Do(t,n,!1),Hs(e,t,i);r=t.stateNode,bs.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yi(t,e.child,null,i),t.child=Yi(t,null,s,i)):ws(e,t,s,i),t.memoizedState=r.state,o&&Do(t,n,!0),t.child}function As(e){var t=e.stateNode;t.pendingContext?jo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&jo(0,t.context,!1),oa(e,t.containerInfo)}function Os(e,t,n,r,o){return pi(),mi(o),t.flags|=256,ws(e,t,n,r),t.child}var Fs,zs,Ms,js,Is={dehydrated:null,treeContext:null,retryLane:0};function Ns(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ds(e,t,n){var r,o=t.pendingProps,a=la.current,s=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Po(la,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,s?(o=t.mode,s=t.child,l={mode:"hidden",children:l},1&o||null===s?s=Nu(l,o,0,null):(s.childLanes=0,s.pendingProps=l),e=Iu(e,o,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ns(n),t.memoizedState=Is,e):Ls(t,l));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,o,a,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,o=t.mode,r=Nu({mode:"visible",children:r.children},o,0,null),(a=Iu(a,o,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,1&t.mode&&Yi(t,e.child,null,s),t.child.memoizedState=Ns(s),t.memoizedState=Is,a);if(!(1&t.mode))return Bs(e,t,s,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(a=Error(i(419)),r,void 0))}if(l=0!==(s&e.childLanes),xs||l){if(null!==(r=Al)){switch(s&-s){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}0!==(o=0!==(o&(r.suspendedLanes|s))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Ai(e,o),ru(r,e,o,-1))}return gu(),Bs(e,t,s,r=ds(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Tu.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=uo(o.nextSibling),ri=t,ii=!0,ai=null,null!==e&&(Ko[Go++]=Yo,Ko[Go++]=Zo,Ko[Go++]=Xo,Yo=e.id,Zo=e.overflow,Xo=t),(t=Ls(t,r.children)).flags|=4096,t)}(e,t,l,o,r,a,n);if(s){s=o.fallback,l=t.mode,r=(a=e.child).sibling;var u={mode:"hidden",children:o.children};return 1&l||t.child===a?(o=Mu(a,u)).subtreeFlags=14680064&a.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=u,t.deletions=null),null!==r?s=Mu(r,s):(s=Iu(s,l,n,null)).flags|=2,s.return=t,o.return=t,o.sibling=s,t.child=o,o=s,s=t.child,l=null===(l=e.child.memoizedState)?Ns(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,o}return e=(s=e.child).sibling,o=Mu(s,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Ls(e,t){return(t=Nu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&mi(r),Yi(t,e.child,null,n),(e=Ls(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function $s(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ci(e.return,t,n)}function Vs(e,t,n,r,o){var i=e.memoizedState;null===i?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 Ws(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ws(e,t,r.children,n),2&(r=la.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&$s(e,n,t);else if(19===e.tag)$s(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Po(la,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===ua(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Vs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ua(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Vs(t,!0,n,null,i);break;case"together":Vs(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Us(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Nl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Mu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Mu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function qs(e,t){if(!ii)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)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 Ks(e,t,n){var r=t.pendingProps;switch(ni(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qs(t),null;case 1:case 17:return zo(t.type)&&Mo(),Qs(t),null;case 3:return r=t.stateNode,ia(),_o(Ao),_o(Ro),da(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fi(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ai&&(su(ai),ai=null))),zs(e,t),Qs(t),null;case 5:sa(t);var o=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Ms(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return Qs(t),null}if(e=ra(ea.current),fi(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[ho]=t,r[po]=a,e=!!(1&t.mode),n){case"dialog":Lr("cancel",r),Lr("close",r);break;case"iframe":case"object":case"embed":Lr("load",r);break;case"video":case"audio":for(o=0;o<jr.length;o++)Lr(jr[o],r);break;case"source":Lr("error",r);break;case"img":case"image":case"link":Lr("error",r),Lr("load",r);break;case"details":Lr("toggle",r);break;case"input":X(r,a),Lr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},Lr("invalid",r);break;case"textarea":oe(r,a),Lr("invalid",r)}for(var l in ye(n,a),o=null,a)if(a.hasOwnProperty(l)){var u=a[l];"children"===l?"string"==typeof u?r.textContent!==u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",u]):"number"==typeof u&&r.textContent!==""+u&&(!0!==a.suppressHydrationWarning&&Zr(r.textContent,u,e),o=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Lr("scroll",r)}switch(n){case"input":q(r),J(r,a,!0);break;case"textarea":q(r),ae(r);break;case"select":case"option":break;default:"function"==typeof a.onClick&&(r.onclick=Jr)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ho]=t,e[po]=r,Fs(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Lr("cancel",e),Lr("close",e),o=r;break;case"iframe":case"object":case"embed":Lr("load",e),o=r;break;case"video":case"audio":for(o=0;o<jr.length;o++)Lr(jr[o],e);o=r;break;case"source":Lr("error",e),o=r;break;case"img":case"image":case"link":Lr("error",e),Lr("load",e),o=r;break;case"details":Lr("toggle",e),o=r;break;case"input":X(e,r),o=G(e,r),Lr("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=N({},r,{value:void 0}),Lr("invalid",e);break;case"textarea":oe(e,r),o=re(e,r),Lr("invalid",e)}for(a in ye(n,o),u=o)if(u.hasOwnProperty(a)){var c=u[a];"style"===a?ge(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&de(e,c):"children"===a?"string"==typeof c?("textarea"!==n||""!==c)&&fe(e,c):"number"==typeof c&&fe(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Lr("scroll",e):null!=c&&b(e,a,c,l))}switch(n){case"input":q(e),J(e,r,!1);break;case"textarea":q(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+U(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Qs(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));if(n=ra(na.current),ra(ea.current),fi(t)){if(r=t.stateNode,n=t.memoizedProps,r[ho]=t,(a=r.nodeValue!==n)&&null!==(e=ri))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ho]=t,t.stateNode=r}return Qs(t),null;case 13:if(_o(la),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&1&t.mode&&!(128&t.flags))hi(),pi(),t.flags|=98560,a=!1;else if(a=fi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[ho]=t}else pi(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Qs(t),a=!1}else null!==ai&&(su(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&la.current?0===jl&&(jl=3):gu())),null!==t.updateQueue&&(t.flags|=4),Qs(t),null);case 4:return ia(),zs(e,t),null===e&&Vr(t.stateNode.containerInfo),Qs(t),null;case 10:return ki(t.type._context),Qs(t),null;case 19:if(_o(la),null===(a=t.memoizedState))return Qs(t),null;if(r=!!(128&t.flags),null===(l=a.rendering))if(r)qs(a,!1);else{if(0!==jl||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(l=ua(e))){for(t.flags|=128,qs(a,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(l=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=l.childLanes,a.lanes=l.lanes,a.child=l.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=l.memoizedProps,a.memoizedState=l.memoizedState,a.updateQueue=l.updateQueue,a.type=l.type,e=l.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Po(la,1&la.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>Wl&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ua(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),qs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!l.alternate&&!ii)return Qs(t),null}else 2*Ye()-a.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=128,r=!0,qs(a,!1),t.lanes=4194304);a.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=a.last)?n.sibling=l:t.child=l,a.last=l)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=la.current,Po(la,r?1&n|2:1&n),t):(Qs(t),null);case 22:case 23:return fu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&zl)&&(Qs(t),6&t.subtreeFlags&&(t.flags|=8192)):Qs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Gs(e,t){switch(ni(t),t.tag){case 1:return zo(t.type)&&Mo(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ia(),_o(Ao),_o(Ro),da(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(_o(la),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(la),null;case 4:return ia(),null;case 10:return ki(t.type._context),null;case 22:case 23:return fu(),null;default:return null}}Fs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zs=function(){},Ms=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,ra(ea.current);var i,a=null;switch(n){case"input":o=G(e,o),r=G(e,r),a=[];break;case"select":o=N({},o,{value:void 0}),r=N({},r,{value:void 0}),a=[];break;case"textarea":o=re(e,o),r=re(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var l=o[c];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=o?o[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(i in l)!l.hasOwnProperty(i)||u&&u.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in u)u.hasOwnProperty(i)&&l[i]!==u[i]&&(n||(n={}),n[i]=u[i])}else n||(a||(a=[]),a.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(a=a||[]).push(c,u)):"children"===c?"string"!=typeof u&&"number"!=typeof u||(a=a||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Lr("scroll",e),a||l===u||(a=[])):(a=a||[]).push(c,u))}n&&(a=a||[]).push("style",n);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,Zs="function"==typeof WeakSet?WeakSet:Set,Js=null;function el(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Eu(e,t,n)}else n.current=null}function tl(e,t,n){try{n()}catch(n){Eu(e,t,n)}}var nl=!1;function rl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&tl(t,n,i)}o=o.next}while(o!==r)}}function ol(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect: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 il(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[ho],delete t[po],delete t[go],delete t[vo],delete t[yo]),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 sl(e){return 5===e.tag||3===e.tag||4===e.tag}function ll(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||sl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Jr));else if(4!==r&&null!==(e=e.child))for(ul(e,t,n),e=e.sibling;null!==e;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,fl=!1;function hl(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(it&&"function"==typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,n)}catch(e){}switch(n.tag){case 5:Ys||el(n,t);case 6:var r=dl,o=fl;dl=null,hl(e,t,n),fl=o,null!==(dl=r)&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(fl?(e=dl,n=n.stateNode,8===e.nodeType?lo(e.parentNode,n):1===e.nodeType&&lo(e,n),Vt(e)):lo(dl,n.stateNode));break;case 4:r=dl,o=fl,dl=n.stateNode.containerInfo,fl=!0,hl(e,t,n),dl=r,fl=o;break;case 0:case 11:case 14:case 15:if(!Ys&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&tl(n,t,a),o=o.next}while(o!==r)}hl(e,t,n);break;case 1:if(!Ys&&(el(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Eu(n,t,e)}hl(e,t,n);break;case 21:hl(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,hl(e,t,n),Ys=r):hl(e,t,n);break;default:hl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zs),t.forEach(function(t){var r=Ru.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function gl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:dl=l.stateNode,fl=!1;break e;case 3:case 4:dl=l.stateNode.containerInfo,fl=!0;break e}l=l.return}if(null===dl)throw Error(i(160));pl(a,s,o),dl=null,fl=!1;var u=o.alternate;null!==u&&(u.return=null),o.return=null}catch(e){Eu(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vl(t,e),t=t.sibling}function vl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gl(t,e),yl(e),4&r){try{rl(3,e,e.return),ol(3,e)}catch(t){Eu(e,e.return,t)}try{rl(5,e,e.return)}catch(t){Eu(e,e.return,t)}}break;case 1:gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return);break;case 5:if(gl(t,e),yl(e),512&r&&null!==n&&el(n,n.return),32&e.flags){var o=e.stateNode;try{fe(o,"")}catch(t){Eu(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,l=e.type,u=e.updateQueue;if(e.updateQueue=null,null!==u)try{"input"===l&&"radio"===a.type&&null!=a.name&&Y(o,a),be(l,s);var c=be(l,a);for(s=0;s<u.length;s+=2){var d=u[s],f=u[s+1];"style"===d?ge(o,f):"dangerouslySetInnerHTML"===d?de(o,f):"children"===d?fe(o,f):b(o,d,f,c)}switch(l){case"input":Z(o,a);break;case"textarea":ie(o,a);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ne(o,!!a.multiple,p,!1):h!==!!a.multiple&&(null!=a.defaultValue?ne(o,!!a.multiple,a.defaultValue,!0):ne(o,!!a.multiple,a.multiple?[]:"",!1))}o[po]=a}catch(t){Eu(e,e.return,t)}}break;case 6:if(gl(t,e),yl(e),4&r){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(t){Eu(e,e.return,t)}}break;case 3:if(gl(t,e),yl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Vt(t.containerInfo)}catch(t){Eu(e,e.return,t)}break;case 4:default:gl(t,e),yl(e);break;case 13:gl(t,e),yl(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||(Vl=Ye())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(c=Ys)||d,gl(t,e),Ys=c):gl(t,e),yl(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!d&&1&e.mode)for(Js=e,d=e.child;null!==d;){for(f=Js=d;null!==Js;){switch(p=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:rl(4,h,h.return);break;case 1:el(h,h.return);var m=h.stateNode;if("function"==typeof m.componentWillUnmount){r=h,n=h.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Eu(r,n,e)}}break;case 5:el(h,h.return);break;case 22:if(null!==h.memoizedState){Sl(f);continue}}null!==p?(p.return=h,Js=p):Sl(f)}d=d.sibling}e:for(d=null,f=e;;){if(5===f.tag){if(null===d){d=f;try{o=f.stateNode,c?"function"==typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(l=f.stateNode,s=null!=(u=f.memoizedProps.style)&&u.hasOwnProperty("display")?u.display:null,l.style.display=me("display",s))}catch(t){Eu(e,e.return,t)}}}else if(6===f.tag){if(null===d)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(t){Eu(e,e.return,t)}}else if((22!==f.tag&&23!==f.tag||null===f.memoizedState||f===e)&&null!==f.child){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;null===f.sibling;){if(null===f.return||f.return===e)break e;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:gl(t,e),yl(e),4&r&&ml(e);case 21:}}function yl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(sl(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(fe(o,""),r.flags&=-33),cl(e,ll(e),o);break;case 3:case 4:var a=r.stateNode.containerInfo;ul(e,ll(e),a);break;default:throw Error(i(161))}}catch(t){Eu(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Js=e,xl(e,t,n)}function xl(e,t,n){for(var r=!!(1&e.mode);null!==Js;){var o=Js,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||Xs;if(!a){var s=o.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=Xs;var u=Ys;if(Xs=a,(Ys=l)&&!u)for(Js=o;null!==Js;)l=(a=Js).child,22===a.tag&&null!==a.memoizedState?kl(o):null!==l?(l.return=a,Js=l):kl(o);for(;null!==i;)Js=i,xl(i,t,n),i=i.sibling;Js=o,Xs=s,Ys=u}wl(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,Js=i):wl(e)}}function wl(e){for(;null!==Js;){var t=Js;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Ys||ol(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:vi(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Li(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Li(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var d=c.memoizedState;if(null!==d){var f=d.dehydrated;null!==f&&Vt(f)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&il(t)}catch(e){Eu(t,t.return,e)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function Sl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function kl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ol(4,t)}catch(e){Eu(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Eu(t,o,e)}}var i=t.return;try{il(t)}catch(e){Eu(t,i,e)}break;case 5:var a=t.return;try{il(t)}catch(e){Eu(t,a,e)}}}catch(e){Eu(t,t.return,e)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Cl,El=Math.ceil,_l=x.ReactCurrentDispatcher,Pl=x.ReactCurrentOwner,Tl=x.ReactCurrentBatchConfig,Rl=0,Al=null,Ol=null,Fl=0,zl=0,Ml=Eo(0),jl=0,Il=null,Nl=0,Dl=0,Ll=0,Bl=null,$l=null,Vl=0,Wl=1/0,Ul=null,Hl=!1,ql=null,Ql=null,Kl=!1,Gl=null,Xl=0,Yl=0,Zl=null,Jl=-1,eu=0;function tu(){return 6&Rl?Ye():-1!==Jl?Jl:Jl=Ye()}function nu(e){return 1&e.mode?2&Rl&&0!==Fl?Fl&-Fl:null!==gi.transition?(0===eu&&(eu=mt()),eu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type):1}function ru(e,t,n,r){if(50<Yl)throw Yl=0,Zl=null,Error(i(185));vt(e,n,r),2&Rl&&e===Al||(e===Al&&(!(2&Rl)&&(Dl|=n),4===jl&&lu(e,Fl)),ou(e,r),1===n&&0===Rl&&!(1&t.mode)&&(Wl=Ye()+500,Bo&&Wo()))}function ou(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),s=1<<a,l=o[a];-1===l?0!==(s&n)&&0===(s&r)||(o[a]=ht(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=ft(e,e===Al?Fl:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Bo=!0,Vo(e)}(uu.bind(null,e)):Vo(uu.bind(null,e)),ao(function(){!(6&Rl)&&Wo()}),n=null;else{switch(xt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Au(n,iu.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function iu(e,t){if(Jl=-1,eu=0,6&Rl)throw Error(i(327));var n=e.callbackNode;if(ku()&&e.callbackNode!==n)return null;var r=ft(e,e===Al?Fl:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vu(e,r);else{t=r;var o=Rl;Rl|=2;var a=mu();for(Al===e&&Fl===t||(Ul=null,Wl=Ye()+500,hu(e,t));;)try{bu();break}catch(t){pu(e,t)}Si(),_l.current=a,Rl=o,null!==Ol?t=0:(Al=null,Fl=0,t=jl)}if(0!==t){if(2===t&&0!==(o=pt(e))&&(r=o,t=au(e,o)),1===t)throw n=Il,hu(e,0),lu(e,r),ou(e,Ye()),n;if(6===t)lu(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!sr(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=vu(e,r),2===t&&(a=pt(e),0!==a&&(r=a,t=au(e,a))),1!==t)))throw n=Il,hu(e,0),lu(e,r),ou(e,Ye()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Su(e,$l,Ul);break;case 3:if(lu(e,r),(130023424&r)===r&&10<(t=Vl+500-Ye())){if(0!==ft(e,0))break;if(((o=e.suspendedLanes)&r)!==r){tu(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=ro(Su.bind(null,e,$l,Ul),t);break}Su(e,$l,Ul);break;case 4:if(lu(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>o&&(o=s),r&=~a}if(r=o,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*El(r/1960))-r)){e.timeoutHandle=ro(Su.bind(null,e,$l,Ul),r);break}Su(e,$l,Ul);break;default:throw Error(i(329))}}}return ou(e,Ye()),e.callbackNode===n?iu.bind(null,e):null}function au(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(hu(e,t).flags|=256),2!==(e=vu(e,t))&&(t=$l,$l=n,null!==t&&su(t)),e}function su(e){null===$l?$l=e:$l.push.apply($l,e)}function lu(e,t){for(t&=~Ll,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function uu(e){if(6&Rl)throw Error(i(327));ku();var t=ft(e,0);if(!(1&t))return ou(e,Ye()),null;var n=vu(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=au(e,r))}if(1===n)throw n=Il,hu(e,0),lu(e,t),ou(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Su(e,$l,Ul),ou(e,Ye()),null}function cu(e,t){var n=Rl;Rl|=1;try{return e(t)}finally{0===(Rl=n)&&(Wl=Ye()+500,Bo&&Wo())}}function du(e){null!==Gl&&0===Gl.tag&&!(6&Rl)&&ku();var t=Rl;Rl|=1;var n=Tl.transition,r=bt;try{if(Tl.transition=null,bt=1,e)return e()}finally{bt=r,Tl.transition=n,!(6&(Rl=t))&&Wo()}}function fu(){zl=Ml.current,_o(Ml)}function hu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,oo(n)),null!==Ol)for(n=Ol.return;null!==n;){var r=n;switch(ni(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Mo();break;case 3:ia(),_o(Ao),_o(Ro),da();break;case 5:sa(r);break;case 4:ia();break;case 13:case 19:_o(la);break;case 10:ki(r.type._context);break;case 22:case 23:fu()}n=n.return}if(Al=e,Ol=e=Mu(e.current,null),Fl=zl=t,jl=0,Il=null,Ll=Dl=Nl=0,$l=Bl=null,null!==Pi){for(t=0;t<Pi.length;t++)if(null!==(r=(n=Pi[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Pi=null}return e}function pu(e,t){for(;;){var n=Ol;try{if(Si(),fa.current=as,ya){for(var r=ma.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ya=!1}if(pa=0,va=ga=ma=null,ba=!1,xa=0,Pl.current=null,null===n||null===n.return){jl=1,Il=t,Ol=null;break}e:{var a=e,s=n.return,l=n,u=t;if(t=Fl,l.flags|=32768,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u,d=l,f=d.tag;if(!(1&d.mode||0!==f&&11!==f&&15!==f)){var h=d.alternate;h?(d.updateQueue=h.updateQueue,d.memoizedState=h.memoizedState,d.lanes=h.lanes):(d.updateQueue=null,d.memoizedState=null)}var p=vs(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&gs(a,c,t),u=c;var m=(t=p).updateQueue;if(null===m){var g=new Set;g.add(u),t.updateQueue=g}else m.add(u);break e}if(!(1&t)){gs(a,c,t),gu();break e}u=Error(i(426))}else if(ii&&1&l.mode){var v=vs(s);if(null!==v){!(65536&v.flags)&&(v.flags|=256),ys(v,s,l,0,t),mi(cs(u,l));break e}}a=u=cs(u,l),4!==jl&&(jl=2),null===Bl?Bl=[a]:Bl.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ni(a,ps(0,u,t));break e;case 1:l=u;var y=a.type,b=a.stateNode;if(!(128&a.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==Ql&&Ql.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ni(a,ms(a,l,t));break e}}a=a.return}while(null!==a)}wu(n)}catch(e){t=e,Ol===n&&null!==n&&(Ol=n=n.return);continue}break}}function mu(){var e=_l.current;return _l.current=as,null===e?as:e}function gu(){0!==jl&&3!==jl&&2!==jl||(jl=4),null===Al||!(268435455&Nl)&&!(268435455&Dl)||lu(Al,Fl)}function vu(e,t){var n=Rl;Rl|=2;var r=mu();for(Al===e&&Fl===t||(Ul=null,hu(e,t));;)try{yu();break}catch(t){pu(e,t)}if(Si(),Rl=n,_l.current=r,null!==Ol)throw Error(i(261));return Al=null,Fl=0,jl}function yu(){for(;null!==Ol;)xu(Ol)}function bu(){for(;null!==Ol&&!Ge();)xu(Ol)}function xu(e){var t=Cl(e.alternate,e,zl);e.memoizedProps=e.pendingProps,null===t?wu(e):Ol=t,Pl.current=null}function wu(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Ol=n);if(null===e)return jl=6,void(Ol=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Ks(n,t,zl)))return void(Ol=n);if(null!==(t=t.sibling))return void(Ol=t);Ol=t=e}while(null!==t);0===jl&&(jl=5)}function Su(e,t,n){var r=bt,o=Tl.transition;try{Tl.transition=null,bt=1,function(e,t,n,r){do{ku()}while(null!==Gl);if(6&Rl)throw Error(i(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(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<n;){var o=31-at(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,a),e===Al&&(Ol=Al=null,Fl=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Kl||(Kl=!0,Au(tt,function(){return ku(),null})),a=!!(15990&n.flags),15990&n.subtreeFlags||a){a=Tl.transition,Tl.transition=null;var s=bt;bt=1;var l=Rl;Rl|=4,Pl.current=null,function(e,t){if(eo=Ut,hr(e=fr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(e){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||0!==o&&3!==f.nodeType||(l=s+o),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(p=f.firstChild);)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===o&&(l=s),h===a&&++d===r&&(u=s),null!==(p=f.nextSibling))break;h=(f=h).parentNode}f=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(to={focusedElem:e,selectionRange:n},Ut=!1,Js=t;null!==Js;)if(e=(t=Js).child,1028&t.subtreeFlags&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:vi(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(e){Eu(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}m=nl,nl=!1}(e,n),vl(n,e),pr(to),Ut=!!eo,to=eo=null,e.current=n,bl(n,e,o),Xe(),Rl=l,bt=s,Tl.transition=a}else e.current=n;if(Kl&&(Kl=!1,Gl=e,Xl=o),0===(a=e.pendingLanes)&&(Ql=null),function(e){if(it&&"function"==typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ou(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((o=t[n]).value,{componentStack:o.stack,digest:o.digest});if(Hl)throw Hl=!1,e=ql,ql=null,e;!!(1&Xl)&&0!==e.tag&&ku(),1&(a=e.pendingLanes)?e===Zl?Yl++:(Yl=0,Zl=e):Yl=0,Wo()}(e,t,n,r)}finally{Tl.transition=o,bt=r}return null}function ku(){if(null!==Gl){var e=xt(Xl),t=Tl.transition,n=bt;try{if(Tl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Xl=0,6&Rl)throw Error(i(331));var o=Rl;for(Rl|=4,Js=e.current;null!==Js;){var a=Js,s=a.child;if(16&Js.flags){var l=a.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for(Js=c;null!==Js;){var d=Js;switch(d.tag){case 0:case 11:case 15:rl(8,d,a)}var f=d.child;if(null!==f)f.return=d,Js=f;else for(;null!==Js;){var h=(d=Js).sibling,p=d.return;if(al(d),d===c){Js=null;break}if(null!==h){h.return=p,Js=h;break}Js=p}}}var m=a.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Js=a}}if(2064&a.subtreeFlags&&null!==s)s.return=a,Js=s;else e:for(;null!==Js;){if(2048&(a=Js).flags)switch(a.tag){case 0:case 11:case 15:rl(9,a,a.return)}var y=a.sibling;if(null!==y){y.return=a.return,Js=y;break e}Js=a.return}}var b=e.current;for(Js=b;null!==Js;){var x=(s=Js).child;if(2064&s.subtreeFlags&&null!==x)x.return=s,Js=x;else e:for(s=b;null!==Js;){if(2048&(l=Js).flags)try{switch(l.tag){case 0:case 11:case 15:ol(9,l)}}catch(e){Eu(l,l.return,e)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Rl=o,Wo(),it&&"function"==typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(e){}r=!0}return r}finally{bt=n,Tl.transition=t}}return!1}function Cu(e,t,n){e=ji(e,t=ps(0,t=cs(n,t),1),1),t=tu(),null!==e&&(vt(e,1,t),ou(e,t))}function Eu(e,t,n){if(3===e.tag)Cu(e,e,n);else for(;null!==t;){if(3===t.tag){Cu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ql||!Ql.has(r))){t=ji(t,e=ms(t,e=cs(n,e),1),1),e=tu(),null!==t&&(vt(t,1,e),ou(t,e));break}}t=t.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tu(),e.pingedLanes|=e.suspendedLanes&n,Al===e&&(Fl&n)===n&&(4===jl||3===jl&&(130023424&Fl)===Fl&&500>Ye()-Vl?hu(e,0):Ll|=n),ou(e,t)}function Pu(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=tu();null!==(e=Ai(e,t))&&(vt(e,t,n),ou(e,n))}function Tu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Pu(e,n)}function Ru(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),Pu(e,n)}function Au(e,t){return Qe(e,t)}function Ou(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 Fu(e,t,n,r){return new Ou(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Mu(e,t){var n=e.alternate;return null===n?((n=Fu(e.tag,t,e.key,e.mode)).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=14680064&e.flags,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=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ju(e,t,n,r,o,a){var s=2;if(r=e,"function"==typeof e)zu(e)&&(s=1);else if("string"==typeof e)s=5;else e:switch(e){case k:return Iu(n.children,o,a,t);case C:s=8,o|=8;break;case E:return(e=Fu(12,n,t,2|o)).elementType=E,e.lanes=a,e;case R:return(e=Fu(13,n,t,o)).elementType=R,e.lanes=a,e;case A:return(e=Fu(19,n,t,o)).elementType=A,e.lanes=a,e;case z:return Nu(n,o,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case P:s=9;break e;case T:s=11;break e;case O:s=14;break e;case F:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Fu(s,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Iu(e,t,n,r){return(e=Fu(7,e,r,t)).lanes=n,e}function Nu(e,t,n,r){return(e=Fu(22,e,r,t)).elementType=z,e.lanes=n,e.stateNode={isHidden:!1},e}function Du(e,t,n){return(e=Fu(6,e,null,t)).lanes=n,e}function Lu(e,t,n){return(t=Fu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bu(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=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function $u(e,t,n,r,o,i,a,s,l){return e=new Bu(e,t,n,s,l),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Fu(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fi(i),e}function Vu(e){if(!e)return To;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(zo(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(zo(n))return Io(e,n,t)}return t}function Wu(e,t,n,r,o,i,a,s,l){return(e=$u(n,r,!0,e,0,i,0,s,l)).context=Vu(null),n=e.current,(i=Mi(r=tu(),o=nu(n))).callback=null!=t?t:null,ji(n,i,o),e.current.lanes=o,vt(e,o,r),ou(e,r),e}function Uu(e,t,n,r){var o=t.current,i=tu(),a=nu(o);return n=Vu(n),null===t.context?t.context=n:t.pendingContext=n,(t=Mi(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=ji(o,t,a))&&(ru(e,o,a,i),Ii(e,o,a)),a}function Hu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){qu(e,t),(e=e.alternate)&&qu(e,t)}Cl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ao.current)xs=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return xs=!1,function(e,t,n){switch(t.tag){case 3:As(t),pi();break;case 5:aa(t);break;case 1:zo(t.type)&&No(t);break;case 4:oa(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Po(yi,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Po(la,1&la.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ds(e,t,n):(Po(la,1&la.current),null!==(e=Hs(e,t,n))?e.sibling:null);Po(la,1&la.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Ws(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Po(la,la.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);xs=!!(131072&e.flags)}else xs=!1,ii&&1048576&t.flags&&ei(t,Qo,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Us(e,t),e=t.pendingProps;var o=Fo(t,Ro.current);Ei(t,n),o=Ca(null,t,r,e,o,n);var a=Ea();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zo(r)?(a=!0,No(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,Fi(t),o.updater=Vi,t.stateNode=o,o._reactInternals=t,qi(t,r,e,n),t=Rs(null,t,r,!0,a,n)):(t.tag=0,ii&&a&&ti(t),ws(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Us(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return zu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===O)return 14}return 2}(r),e=vi(r,e),o){case 0:t=Ps(null,t,r,e,n);break e;case 1:t=Ts(null,t,r,e,n);break e;case 11:t=Ss(null,t,r,e,n);break e;case 14:t=ks(null,t,r,vi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Ps(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ts(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 3:e:{if(As(t),null===e)throw Error(i(387));r=t.pendingProps,o=(a=t.memoizedState).element,zi(e,t),Di(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Os(e,t,r,n,o=cs(Error(i(423)),t));break e}if(r!==o){t=Os(e,t,r,n,o=cs(Error(i(424)),t));break e}for(oi=uo(t.stateNode.containerInfo.firstChild),ri=t,ii=!0,ai=null,n=Zi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===o){t=Hs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&ci(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,s=o.children,no(r,o)?s=null:null!==a&&no(r,a)&&(t.flags|=32),_s(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ds(e,t,n);case 4:return oa(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yi(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ss(e,t,r,o=t.elementType===r?o:vi(r,o),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,a=t.memoizedProps,s=o.value,Po(yi,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===o.children&&!Ao.current){t=Hs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var l=a.dependencies;if(null!==l){s=a.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===a.tag){(u=Mi(-1,n&-n)).tag=2;var c=a.updateQueue;if(null!==c){var d=(c=c.shared).pending;null===d?u.next=u:(u.next=d.next,d.next=u),c.pending=u}}a.lanes|=n,null!==(u=a.alternate)&&(u.lanes|=n),Ci(a.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(i(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Ci(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}ws(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ei(t,n),r=r(o=_i(o)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return o=vi(r=t.type,t.pendingProps),ks(e,t,r,o=vi(r.type,o),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:vi(r,o),Us(e,t),t.tag=1,zo(r)?(e=!0,No(t)):e=!1,Ei(t,n),Ui(t,r,o),qi(t,r,o,n),Rs(null,t,r,!0,e,n);case 19:return Ws(e,t,n);case 22:return Es(e,t,n)}throw Error(i(156,t.tag))};var Ku="function"==typeof reportError?reportError:function(e){console.error(e)};function Gu(e){this._internalRoot=e}function Xu(e){this._internalRoot=e}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Ju(){}function ec(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var s=o;o=function(){var e=Hu(a);s.call(e)}}Uu(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Hu(a);i.call(e)}}var a=Wu(t,r,e,0,null,!1,0,"",Ju);return e._reactRootContainer=a,e[mo]=a.current,Vr(8===e.nodeType?e.parentNode:e),du(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var s=r;r=function(){var e=Hu(l);s.call(e)}}var l=$u(e,0,!1,null,0,!1,0,"",Ju);return e._reactRootContainer=l,e[mo]=l.current,Vr(8===e.nodeType?e.parentNode:e),du(function(){Uu(t,l,n,r)}),l}(n,t,e,o,r);return Hu(a)}Xu.prototype.render=Gu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Uu(e,t,null,null)},Xu.prototype.unmount=Gu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;du(function(){Uu(null,e,null,null)}),t[mo]=null}},Xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zt.length&&0!==t&&t<zt[n].priority;n++);zt.splice(n,0,e),0===n&&Nt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(yt(t,1|n),ou(t,Ye()),!(6&Rl)&&(Wl=Ye()+500,Wo()))}break;case 13:du(function(){var t=Ai(e,1);if(null!==t){var n=tu();ru(t,e,1,n)}}),Qu(e,1)}},St=function(e){if(13===e.tag){var t=Ai(e,134217728);null!==t&&ru(t,e,134217728,tu()),Qu(e,134217728)}},kt=function(e){if(13===e.tag){var t=nu(e),n=Ai(e,t);null!==n&&ru(n,e,t,tu()),Qu(e,t)}},Ct=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Se=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=So(r);if(!o)throw Error(i(90));Q(r),Z(r,o)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=cu,Re=du;var tc={usingClientEntryPoint:!1,Events:[xo,wo,So,_e,Pe,cu]},nc={findFiberByHostInstance:bo,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=He(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var oc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!oc.isDisabled&&oc.supportsFiber)try{ot=oc.inject(rc),it=oc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yu(e))throw Error(i(299));var n=!1,r="",o=Ku;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=$u(e,1,!1,null,0,n,0,r,o),e[mo]=t.current,Vr(8===e.nodeType?e.parentNode:e),new Gu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return null===(e=He(t))?null:e.stateNode},t.flushSync=function(e){return du(e)},t.hydrate=function(e,t,n){if(!Zu(t))throw Error(i(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yu(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,o=!1,a="",s=Ku;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wu(t,null,e,1,null!=n?n:null,o,0,a,s),e[mo]=t.current,Vr(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new Xu(t)},t.render=function(e,t,n){if(!Zu(t))throw Error(i(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zu(e))throw Error(i(40));return!!e._reactRootContainer&&(du(function(){ec(null,null,e,!1,function(){e._reactRootContainer=null,e[mo]=null})}),!0)},t.unstable_batchedUpdates=cu,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zu(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},5338:(e,t,n)=>{"use strict";var r=n(961);t.createRoot=r.createRoot,r.hydrateRoot},961:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},115:e=>{var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,u,c;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;for(c=e.entries();!(l=c.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(c=e.entries();!(l=c.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(u=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,u[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==u[l]&&"__v"!==u[l]&&"__o"!==u[l]||!e.$$typeof)&&!i(e[u[l]],a[u[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},1020:(e,t,n)=>{"use strict";var r=n(1993),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,r)&&!l.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},7463:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>i(l,n))u<o&&0>i(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<o&&0>i(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,h=3,p=!1,m=!1,g=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function w(e){if(g=!1,x(e),!m)if(null!==r(u))m=!0,z(S);else{var t=r(c);null!==t&&M(w,t.startTime-e)}}function S(e,n){m=!1,g&&(g=!1,y(_),_=-1),p=!0;var i=h;try{for(x(n),f=r(u);null!==f&&(!(f.expirationTime>n)||e&&!R());){var a=f.callback;if("function"==typeof a){f.callback=null,h=f.priorityLevel;var s=a(f.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?f.callback=s:f===r(u)&&o(u),x(n)}else o(u);f=r(u)}if(null!==f)var l=!0;else{var d=r(c);null!==d&&M(w,d.startTime-n),l=!1}return l}finally{f=null,h=i,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,C=!1,E=null,_=-1,P=5,T=-1;function R(){return!(t.unstable_now()-T<P)}function A(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?k():(C=!1,E=null)}}else C=!1}if("function"==typeof b)k=function(){b(A)};else if("undefined"!=typeof MessageChannel){var O=new MessageChannel,F=O.port2;O.port1.onmessage=A,k=function(){F.postMessage(null)}}else k=function(){v(A,0)};function z(e){E=e,C||(C=!0,k())}function M(e,n){_=v(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||p||(m=!0,z(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:o,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(u)&&e===r(c)&&(g?(y(_),_=-1):g=!0,M(w,i-a))):(e.sortIndex=s,n(u,e),m||p||(m=!0,z(S))),e},t.unstable_shouldYield=R,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},9982:(e,t,n)=>{"use strict";e.exports=n(7463)},7604:(e,t,n)=>{var r;!function(){"use strict";var o={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function i(e){return function(e,t){var n,r,a,s,l,u,c,d,f,h=1,p=e.length,m="";for(r=0;r<p;r++)if("string"==typeof e[r])m+=e[r];else if("object"==typeof e[r]){if((s=e[r]).keys)for(n=t[h],a=0;a<s.keys.length;a++){if(null==n)throw new Error(i('[sprintf] Cannot access property "%s" of undefined value "%s"',s.keys[a],s.keys[a-1]));n=n[s.keys[a]]}else n=s.param_no?t[s.param_no]:t[h++];if(o.not_type.test(s.type)&&o.not_primitive.test(s.type)&&n instanceof Function&&(n=n()),o.numeric_arg.test(s.type)&&"number"!=typeof n&&isNaN(n))throw new TypeError(i("[sprintf] expecting number but found %T",n));switch(o.number.test(s.type)&&(d=n>=0),s.type){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,s.width?parseInt(s.width):0);break;case"e":n=s.precision?parseFloat(n).toExponential(s.precision):parseFloat(n).toExponential();break;case"f":n=s.precision?parseFloat(n).toFixed(s.precision):parseFloat(n);break;case"g":n=s.precision?String(Number(n.toPrecision(s.precision))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=s.precision?n.substring(0,s.precision):n;break;case"t":n=String(!!n),n=s.precision?n.substring(0,s.precision):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=s.precision?n.substring(0,s.precision):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=s.precision?n.substring(0,s.precision):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}o.json.test(s.type)?m+=n:(!o.number.test(s.type)||d&&!s.sign?f="":(f=d?"+":"-",n=n.toString().replace(o.sign,"")),u=s.pad_char?"0"===s.pad_char?"0":s.pad_char.charAt(1):" ",c=s.width-(f+n).length,l=s.width&&c>0?u.repeat(c):"",m+=s.align?f+n+l:"0"===u?f+l+n:l+f+n)}return m}(function(e){if(s[e])return s[e];for(var t,n=e,r=[],i=0;n;){if(null!==(t=o.text.exec(n)))r.push(t[0]);else if(null!==(t=o.modulo.exec(n)))r.push("%");else{if(null===(t=o.placeholder.exec(n)))throw new SyntaxError("[sprintf] unexpected placeholder");if(t[2]){i|=1;var a=[],l=t[2],u=[];if(null===(u=o.key.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");for(a.push(u[1]);""!==(l=l.substring(u[0].length));)if(null!==(u=o.key_access.exec(l)))a.push(u[1]);else{if(null===(u=o.index_access.exec(l)))throw new SyntaxError("[sprintf] failed to parse named argument key");a.push(u[1])}t[2]=a}else i|=2;if(3===i)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");r.push({placeholder:t[0],param_no:t[1],keys:t[2],sign:t[3],pad_char:t[4],align:t[5],width:t[6],precision:t[7],type:t[8]})}n=n.substring(t[0].length)}return s[e]=r}(e),arguments)}function a(e,t){return i.apply(null,[e].concat(t||[]))}var s=Object.create(null);t.sprintf=i,t.vsprintf=a,"undefined"!=typeof window&&(window.sprintf=i,window.vsprintf=a,void 0===(r=function(){return{sprintf:i,vsprintf:a}}.call(t,n,t,e))||(e.exports=r))}()},8493:(e,t,n)=>{"use strict";var r=n(1993),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,c=r[1];return s(function(){o.value=n,o.getSnapshot=t,u(o)&&c({inst:o})},[e,n,t]),a(function(){return u(o)&&c({inst:o}),e(function(){u(o)&&c({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},9888:(e,t,n)=>{"use strict";e.exports=n(8493)},1993:e=>{e.exports=function(){return this.React}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var o=r.length-1;o>-1&&(!e||!/^http(s?):/.test(e));)e=r[o--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.nc=void 0;var r={};for(var o in(()=>{"use strict";var e=n(1993),t=n.n(e),r=n(5338),o=n(7604),i=n.n(o);const a=function(e,t){var n,r,o=0;function i(){var i,a,s=n,l=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(a=0;a<l;a++)if(s.args[a]!==arguments[a]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(i=new Array(l),a=0;a<l;a++)i[a]=arguments[a];return s={args:i,val:e.apply(null,i)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},i.clear=function(){n=null,r=null,o=0},i}(console.error);function s(e,...t){try{return i().sprintf(e,...t)}catch(t){return t instanceof Error&&a("sprintf error: \n\n"+t.toString()),e}}var l,u,c,d;l={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},u=["(","?"],c={")":["("],":":["?","?:"]},d=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var f={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};var h={contextDelimiter:"",onMissingKey:null};function p(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},h)this.options[n]=void 0!==t&&n in t?t[n]:h[n]}p.prototype.getPluralForm=function(e,t){var n,r,o,i,a=this.pluralForms[e];return a||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),i=function(e){var t=function(e){for(var t,n,r,o,i=[],a=[];t=e.match(d);){for(n=t[0],(r=e.substr(0,t.index).trim())&&i.push(r);o=a.pop();){if(c[n]){if(c[n][0]===o){n=c[n][1]||n;break}}else if(u.indexOf(o)>=0||l[o]<l[n]){a.push(o);break}i.push(o)}c[n]||a.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&i.push(e),i.concat(a.reverse())}(e);return function(e){return function(e,t){var n,r,o,i,a,s,l=[];for(n=0;n<e.length;n++){if(a=e[n],i=f[a]){for(r=i.length,o=Array(r);r--;)o[r]=l.pop();try{s=i.apply(null,o)}catch(e){return e}}else s=t.hasOwnProperty(a)?t[a]:+a;l.push(s)}return l[0]}(t,e)}}(r),o=function(e){return+i({n:e})}),a=this.pluralForms[e]=o),a(t)},p.prototype.dcnpgettext=function(e,t,n,r,o){var i,a,s;return i=void 0===o?0:this.getPluralForm(e,o),a=n,t&&(a=t+this.options.contextDelimiter+n),(s=this.data[e][a])&&s[i]?s[i]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===i?n:r)};const m={plural_forms:e=>1===e?0:1},g=/^i18n\.(n?gettext|has_translation)(_|$)/,v=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)},y=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)},b=function(e,t){return function(n,r,o,i=10){const a=e[t];if(!y(n))return;if(!v(r))return;if("function"!=typeof o)return void console.error("The hook callback must be a function.");if("number"!=typeof i)return void console.error("If specified, the hook priority must be a number.");const s={callback:o,priority:i,namespace:r};if(a[n]){const e=a[n].handlers;let t;for(t=e.length;t>0&&!(i>=e[t-1].priority);t--);t===e.length?e[t]=s:e.splice(t,0,s),a.__current.forEach(e=>{e.name===n&&e.currentIndex>=t&&e.currentIndex++})}else a[n]={handlers:[s],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,r,o,i)}},x=function(e,t,n=!1){return function(r,o){const i=e[t];if(!y(r))return;if(!n&&!v(o))return;if(!i[r])return 0;let a=0;if(n)a=i[r].handlers.length,i[r]={runs:i[r].runs,handlers:[]};else{const e=i[r].handlers;for(let t=e.length-1;t>=0;t--)e[t].namespace===o&&(e.splice(t,1),a++,i.__current.forEach(e=>{e.name===r&&e.currentIndex>=t&&e.currentIndex--}))}return"hookRemoved"!==r&&e.doAction("hookRemoved",r,o),a}},w=function(e,t){return function(n,r){const o=e[t];return void 0!==r?n in o&&o[n].handlers.some(e=>e.namespace===r):n in o}},S=function(e,t,n=!1){return function(r,...o){const i=e[t];i[r]||(i[r]={handlers:[],runs:0}),i[r].runs++;const a=i[r].handlers;if(!a||!a.length)return n?o[0]:void 0;const s={name:r,currentIndex:0};for(i.__current.push(s);s.currentIndex<a.length;){const e=a[s.currentIndex].callback.apply(null,o);n&&(o[0]=e),s.currentIndex++}return i.__current.pop(),n?o[0]:void 0}},k=function(e,t){return function(){var n;const r=e[t];return null!==(n=r.__current[r.__current.length-1]?.name)&&void 0!==n?n:null}},C=function(e,t){return function(n){const r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}},E=function(e,t){return function(n){const r=e[t];if(y(n))return r[n]&&r[n].runs?r[n].runs:0}};class _{constructor(){this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=b(this,"actions"),this.addFilter=b(this,"filters"),this.removeAction=x(this,"actions"),this.removeFilter=x(this,"filters"),this.hasAction=w(this,"actions"),this.hasFilter=w(this,"filters"),this.removeAllActions=x(this,"actions",!0),this.removeAllFilters=x(this,"filters",!0),this.doAction=S(this,"actions"),this.applyFilters=S(this,"filters",!0),this.currentAction=k(this,"actions"),this.currentFilter=k(this,"filters"),this.doingAction=C(this,"actions"),this.doingFilter=C(this,"filters"),this.didAction=E(this,"actions"),this.didFilter=E(this,"filters")}}const P=new _,{addAction:T,addFilter:R,removeAction:A,removeFilter:O,hasAction:F,hasFilter:z,removeAllActions:M,removeAllFilters:j,doAction:I,applyFilters:N,currentAction:D,currentFilter:L,doingAction:B,doingFilter:$,didAction:V,didFilter:W,actions:U,filters:H}=P,q=((e,t,n)=>{const r=new p({}),o=new Set,i=()=>{o.forEach(e=>e())},a=(e,t="default")=>{r.data[t]={...r.data[t],...e},r.data[t][""]={...m,...r.data[t]?.[""]},delete r.pluralForms[t]},s=(e,t)=>{a(e,t),i()},l=(e="default",t,n,o,i)=>(r.data[e]||a(void 0,e),r.dcnpgettext(e,t,n,o,i)),u=(e="default")=>e,c=(e,t,r)=>{let o=l(r,t,e);return n?(o=n.applyFilters("i18n.gettext_with_context",o,e,t,r),n.applyFilters("i18n.gettext_with_context_"+u(r),o,e,t,r)):o};if(n){const e=e=>{g.test(e)&&i()};n.addAction("hookAdded","core/i18n",e),n.addAction("hookRemoved","core/i18n",e)}return{getLocaleData:(e="default")=>r.data[e],setLocaleData:s,addLocaleData:(e,t="default")=>{r.data[t]={...r.data[t],...e,"":{...m,...r.data[t]?.[""],...e?.[""]}},delete r.pluralForms[t],i()},resetLocaleData:(e,t)=>{r.data={},r.pluralForms={},s(e,t)},subscribe:e=>(o.add(e),()=>o.delete(e)),__:(e,t)=>{let r=l(t,void 0,e);return n?(r=n.applyFilters("i18n.gettext",r,e,t),n.applyFilters("i18n.gettext_"+u(t),r,e,t)):r},_x:c,_n:(e,t,r,o)=>{let i=l(o,void 0,e,t,r);return n?(i=n.applyFilters("i18n.ngettext",i,e,t,r,o),n.applyFilters("i18n.ngettext_"+u(o),i,e,t,r,o)):i},_nx:(e,t,r,o,i)=>{let a=l(i,o,e,t,r);return n?(a=n.applyFilters("i18n.ngettext_with_context",a,e,t,r,o,i),n.applyFilters("i18n.ngettext_with_context_"+u(i),a,e,t,r,o,i)):a},isRTL:()=>"rtl"===c("ltr","text direction"),hasTranslation:(e,t,o)=>{const i=t?t+""+e:e;let a=!!r.data?.[null!=o?o:"default"]?.[i];return n&&(a=n.applyFilters("i18n.has_translation",a,e,t,o),a=n.applyFilters("i18n.has_translation_"+u(o),a,e,t,o)),a}}})(0,0,P),Q=(q.getLocaleData.bind(q),q.setLocaleData.bind(q),q.resetLocaleData.bind(q),q.subscribe.bind(q),q.__.bind(q));function K(t){return(0,e.forwardRef)(t)}q._x.bind(q),q._n.bind(q),q._nx.bind(q),q.isRTL.bind(q),q.hasTranslation.bind(q);var G=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),X=Math.abs,Y=String.fromCharCode,Z=Object.assign;function J(e){return e.trim()}function ee(e,t,n){return e.replace(t,n)}function te(e,t){return e.indexOf(t)}function ne(e,t){return 0|e.charCodeAt(t)}function re(e,t,n){return e.slice(t,n)}function oe(e){return e.length}function ie(e){return e.length}function ae(e,t){return t.push(e),e}var se=1,le=1,ue=0,ce=0,de=0,fe="";function he(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:se,column:le,length:a,return:""}}function pe(e,t){return Z(he("",null,null,"",null,null,0),e,{length:-e.length},t)}function me(){return de=ce>0?ne(fe,--ce):0,le--,10===de&&(le=1,se--),de}function ge(){return de=ce<ue?ne(fe,ce++):0,le++,10===de&&(le=1,se++),de}function ve(){return ne(fe,ce)}function ye(){return ce}function be(e,t){return re(fe,e,t)}function xe(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function we(e){return se=le=1,ue=oe(fe=e),ce=0,[]}function Se(e){return fe="",e}function ke(e){return J(be(ce-1,_e(91===e?e+2:40===e?e+1:e)))}function Ce(e){for(;(de=ve())&&de<33;)ge();return xe(e)>2||xe(de)>3?"":" "}function Ee(e,t){for(;--t&&ge()&&!(de<48||de>102||de>57&&de<65||de>70&&de<97););return be(e,ye()+(t<6&&32==ve()&&32==ge()))}function _e(e){for(;ge();)switch(de){case e:return ce;case 34:case 39:34!==e&&39!==e&&_e(de);break;case 40:41===e&&_e(e);break;case 92:ge()}return ce}function Pe(e,t){for(;ge()&&e+de!==57&&(e+de!==84||47!==ve()););return"/*"+be(t,ce-1)+"*"+Y(47===e?e:ge())}function Te(e){for(;!xe(ve());)ge();return be(e,ce)}var Re="-ms-",Ae="-moz-",Oe="-webkit-",Fe="comm",ze="rule",Me="decl",je="@keyframes";function Ie(e,t){for(var n="",r=ie(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ne(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Me:return e.return=e.return||e.value;case Fe:return"";case je:return e.return=e.value+"{"+Ie(e.children,r)+"}";case ze:e.value=e.props.join(",")}return oe(n=Ie(e.children,r))?e.return=e.value+"{"+n+"}":""}function De(e){return Se(Le("",null,null,null,[""],e=we(e),0,[0],e))}function Le(e,t,n,r,o,i,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,p=0,m=1,g=1,v=1,y=0,b="",x=o,w=i,S=r,k=b;g;)switch(p=y,y=ge()){case 40:if(108!=p&&58==ne(k,d-1)){-1!=te(k+=ee(ke(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=ke(y);break;case 9:case 10:case 13:case 32:k+=Ce(p);break;case 92:k+=Ee(ye()-1,7);continue;case 47:switch(ve()){case 42:case 47:ae($e(Pe(ge(),ye()),t,n),l);break;default:k+="/"}break;case 123*m:s[u++]=oe(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+c:-1==v&&(k=ee(k,/\f/g,"")),h>0&&oe(k)-d&&ae(h>32?Ve(k+";",r,n,d-1):Ve(ee(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(ae(S=Be(k,t,n,u,c,o,s,b,x=[],w=[],d),i),123===y)if(0===c)Le(k,t,S,S,x,i,d,s,w);else switch(99===f&&110===ne(k,3)?100:f){case 100:case 108:case 109:case 115:Le(e,S,S,r&&ae(Be(e,S,S,0,0,o,s,b,o,x=[],d),w),o,w,d,s,r?x:w);break;default:Le(k,S,S,S,[""],w,0,s,w)}}u=c=h=0,m=v=1,b=k="",d=a;break;case 58:d=1+oe(k),h=p;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==me())continue;switch(k+=Y(y),y*m){case 38:v=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(oe(k)-1)*v,v=1;break;case 64:45===ve()&&(k+=ke(ge())),f=ve(),c=d=oe(b=k+=Te(ye())),y++;break;case 45:45===p&&2==oe(k)&&(m=0)}}return i}function Be(e,t,n,r,o,i,a,s,l,u,c){for(var d=o-1,f=0===o?i:[""],h=ie(f),p=0,m=0,g=0;p<r;++p)for(var v=0,y=re(e,d+1,d=X(m=a[p])),b=e;v<h;++v)(b=J(m>0?f[v]+" "+y:ee(y,/&\f/g,f[v])))&&(l[g++]=b);return he(e,t,n,0===o?ze:s,l,u,c)}function $e(e,t,n){return he(e,t,n,Fe,Y(de),re(e,2,-2),0)}function Ve(e,t,n,r){return he(e,t,n,Me,re(e,0,r),re(e,r+1,-1),r)}var We=function(e,t,n){for(var r=0,o=0;r=o,o=ve(),38===r&&12===o&&(t[n]=1),!xe(o);)ge();return be(e,ce)},Ue=new WeakMap,He=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Ue.get(n))&&!r){Ue.set(e,!0);for(var o=[],i=function(e,t){return Se(function(e,t){var n=-1,r=44;do{switch(xe(r)){case 0:38===r&&12===ve()&&(t[n]=1),e[n]+=We(ce-1,t,n);break;case 2:e[n]+=ke(r);break;case 4:if(44===r){e[++n]=58===ve()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Y(r)}}while(r=ge());return e}(we(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var u=0;u<a.length;u++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[u]):a[u]+" "+i[s]}}},qe=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Qe(e,t){switch(function(e,t){return 45^ne(e,0)?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}(e,t)){case 5103:return Oe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Oe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Oe+e+Ae+e+Re+e+e;case 6828:case 4268:return Oe+e+Re+e+e;case 6165:return Oe+e+Re+"flex-"+e+e;case 5187:return Oe+e+ee(e,/(\w+).+(:[^]+)/,Oe+"box-$1$2"+Re+"flex-$1$2")+e;case 5443:return Oe+e+Re+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Oe+e+Re+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Oe+e+Re+ee(e,"shrink","negative")+e;case 5292:return Oe+e+Re+ee(e,"basis","preferred-size")+e;case 6060:return Oe+"box-"+ee(e,"-grow","")+Oe+e+Re+ee(e,"grow","positive")+e;case 4554:return Oe+ee(e,/([^-])(transform)/g,"$1"+Oe+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Oe+"$1"),/(image-set)/,Oe+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Oe+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Oe+"box-pack:$3"+Re+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Oe+e+e;case 4095:case 3583:case 4068:case 2532:return ee(e,/(.+)-inline(.+)/,Oe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(oe(e)-1-t>6)switch(ne(e,t+1)){case 109:if(45!==ne(e,t+4))break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Oe+"$2-$3$1"+Ae+(108==ne(e,t+3)?"$3":"$2-$3"))+e;case 115:return~te(e,"stretch")?Qe(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ne(e,t+1))break;case 6444:switch(ne(e,oe(e)-3-(~te(e,"!important")&&10))){case 107:return ee(e,":",":"+Oe)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Oe+(45===ne(e,14)?"inline-":"")+"box$3$1"+Oe+"$2$3$1"+Re+"$2box$3")+e}break;case 5936:switch(ne(e,t+11)){case 114:return Oe+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Oe+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Oe+e+Re+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Oe+e+Re+e+e}return e}var Ke=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Me:e.return=Qe(e.value,e.length);break;case je:return Ie([pe(e,{value:ee(e.value,"@","@"+Oe)})],r);case ze:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Ie([pe(e,{props:[ee(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Ie([pe(e,{props:[ee(t,/:(plac\w+)/,":"+Oe+"input-$1")]}),pe(e,{props:[ee(t,/:(plac\w+)/,":-moz-$1")]}),pe(e,{props:[ee(t,/:(plac\w+)/,Re+"input-$1")]})],r)}return""})}}],Ge=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Ke,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,u,c,d,f=[Ne,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(u=[He,qe].concat(i,f),c=ie(u),function(e,t,n,r){for(var o="",i=0;i<c;i++)o+=u[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,function(e){Ie(De(e),h)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new G({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return p.sheet.hydrate(s),p};function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xe.apply(null,arguments)}var Ye=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}},Ze={animationIterationCount:1,aspectRatio: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,scale: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};function Je(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var et=/[A-Z]|^ms/g,tt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nt=function(e){return 45===e.charCodeAt(1)},rt=function(e){return null!=e&&"boolean"!=typeof e},ot=Je(function(e){return nt(e)?e:e.replace(et,"-$&").toLowerCase()}),it=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(tt,function(e,t,n){return st={name:t,styles:n,next:st},t})}return 1===Ze[e]||nt(e)||"number"!=typeof t||0===t?t:t+"px"};function at(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return st={name:o.name,styles:o.styles,next:st},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)st={name:a.name,styles:a.styles,next:st},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=at(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":rt(s)&&(r+=ot(i)+":"+it(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=at(e,t,a);switch(i){case"animation":case"animationName":r+=ot(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var u=0;u<a.length;u++)rt(a[u])&&(r+=ot(i)+":"+it(i,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=st,l=n(e);return st=s,at(e,t,l)}}var u=n;if(null==t)return u;var c=t[u];return void 0!==c?c:u}var st,lt=/label:\s*([^\s;{]+)\s*(;|$)/g;function ut(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";st=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=at(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=at(n,t,e[a]),r&&(o+=i[a]);lt.lastIndex=0;for(var s,l="";null!==(s=lt.exec(o));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:u,styles:o,next:st}}var ct=!!e.useInsertionEffect&&e.useInsertionEffect,dt=ct||function(e){return e()},ft=ct||e.useLayoutEffect,ht=e.createContext("undefined"!=typeof HTMLElement?Ge({key:"css"}):null);ht.Provider;var pt=function(t){return(0,e.forwardRef)(function(n,r){var o=(0,e.useContext)(ht);return t(n,o,r)})},mt=e.createContext({}),gt=Ye(function(e){return Ye(function(t){return function(e,t){return"function"==typeof t?t(e):Xe({},e,t)}(e,t)})}),vt=function(t){var n=e.useContext(mt);return t.theme!==n&&(n=gt(n)(t.theme)),e.createElement(mt.Provider,{value:n},t.children)};function yt(){const t=(0,e.useContext)(mt);if(!t)throw Error("useTheme: `theme` is undefined. Seems you forgot to wrap your app in `<ChakraProvider />` or `<ThemeProvider />`");return t}var bt=(0,e.createContext)({});function xt(){const t=(0,e.useContext)(bt);if(void 0===t)throw new Error("useColorMode must be used within a ColorModeProvider");return t}function wt(){return{...xt(),theme:yt()}}bt.displayName="ColorModeContext";var St=(...e)=>e.filter(Boolean).join(" ");function kt(e){const t=typeof e;return null!=e&&("object"===t||"function"===t)&&!Array.isArray(e)}function Ct(e,...t){return Et(e)?e(...t):e}var Et=e=>"function"==typeof e,_t=e=>e?"":void 0,Pt=e=>!!e||void 0;function Tt(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var Rt=n(8394),At=e=>"string"==typeof e?e.replace(/!(important)?$/,"").trim():e;function Ot(e){const{scale:t,transform:n,compose:r}=e;return(e,o)=>{var i;const a=((e,t)=>n=>{const r=String(t),o=(e=>/!(important)?$/.test(e))(r),i=At(r),a=e?`${e}.${i}`:i;let s=kt(n.__cssMap)&&a in n.__cssMap?n.__cssMap[a].varRef:t;return s=At(s),o?`${s} !important`:s})(t,e)(o);let s=null!=(i=null==n?void 0:n(a,o))?i:a;return r&&(s=r(s,o)),s}}var Ft=(...e)=>t=>e.reduce((e,t)=>t(e),t);function zt(e,t){return n=>{const r={property:n,scale:e};return r.transform=Ot({scale:e,transform:t}),r}}var Mt=({rtl:e,ltr:t})=>n=>"rtl"===n.direction?e:t,jt=["rotate(var(--chakra-rotate, 0))","scaleX(var(--chakra-scale-x, 1))","scaleY(var(--chakra-scale-y, 1))","skewX(var(--chakra-skew-x, 0))","skewY(var(--chakra-skew-y, 0))"],It={"--chakra-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-sepia":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-drop-shadow":"var(--chakra-empty,/*!*/ /*!*/)",filter:["var(--chakra-blur)","var(--chakra-brightness)","var(--chakra-contrast)","var(--chakra-grayscale)","var(--chakra-hue-rotate)","var(--chakra-invert)","var(--chakra-saturate)","var(--chakra-sepia)","var(--chakra-drop-shadow)"].join(" ")},Nt={backdropFilter:["var(--chakra-backdrop-blur)","var(--chakra-backdrop-brightness)","var(--chakra-backdrop-contrast)","var(--chakra-backdrop-grayscale)","var(--chakra-backdrop-hue-rotate)","var(--chakra-backdrop-invert)","var(--chakra-backdrop-opacity)","var(--chakra-backdrop-saturate)","var(--chakra-backdrop-sepia)"].join(" "),"--chakra-backdrop-blur":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-brightness":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-contrast":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-grayscale":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-hue-rotate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-invert":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-opacity":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-saturate":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-backdrop-sepia":"var(--chakra-empty,/*!*/ /*!*/)"},Dt={"row-reverse":{space:"--chakra-space-x-reverse",divide:"--chakra-divide-x-reverse"},"column-reverse":{space:"--chakra-space-y-reverse",divide:"--chakra-divide-y-reverse"}},Lt={"to-t":"to top","to-tr":"to top right","to-r":"to right","to-br":"to bottom right","to-b":"to bottom","to-bl":"to bottom left","to-l":"to left","to-tl":"to top left"},Bt=new Set(Object.values(Lt)),$t=new Set(["none","-moz-initial","inherit","initial","revert","unset"]),Vt=e=>e.trim(),Wt=e=>"string"==typeof e&&e.includes("(")&&e.includes(")"),Ut=e=>t=>`${e}(${t})`,Ht={filter:e=>"auto"!==e?e:It,backdropFilter:e=>"auto"!==e?e:Nt,ring:e=>function(e){return{"--chakra-ring-offset-shadow":"var(--chakra-ring-inset) 0 0 0 var(--chakra-ring-offset-width) var(--chakra-ring-offset-color)","--chakra-ring-shadow":"var(--chakra-ring-inset) 0 0 0 calc(var(--chakra-ring-width) + var(--chakra-ring-offset-width)) var(--chakra-ring-color)","--chakra-ring-width":e,boxShadow:["var(--chakra-ring-offset-shadow)","var(--chakra-ring-shadow)","var(--chakra-shadow, 0 0 #0000)"].join(", ")}}(Ht.px(e)),bgClip:e=>"text"===e?{color:"transparent",backgroundClip:"text"}:{backgroundClip:e},transform:e=>"auto"===e?["translateX(var(--chakra-translate-x, 0))","translateY(var(--chakra-translate-y, 0))",...jt].join(" "):"auto-gpu"===e?["translate3d(var(--chakra-translate-x, 0), var(--chakra-translate-y, 0), 0)",...jt].join(" "):e,vh:e=>"$100vh"===e?"var(--chakra-vh)":e,px(e){if(null==e)return e;const{unitless:t}=(e=>{const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}})(e);return t||"number"==typeof e?`${e}px`:e},fraction:e=>"number"!=typeof e||e>1?e:100*e+"%",float:(e,t)=>"rtl"===t.direction?{left:"right",right:"left"}[e]:e,degree(e){if(function(e){return/^var\(--.+\)$/.test(e)}(e)||null==e)return e;const t="string"==typeof e&&!e.endsWith("deg");return"number"==typeof e||t?`${e}deg`:e},gradient:(e,t)=>function(e,t){if(null==e||$t.has(e))return e;if(!Wt(e)&&!$t.has(e))return`url('${e}')`;const n=/(^[a-z-A-Z]+)\((.*)\)/g.exec(e),r=null==n?void 0:n[1],o=null==n?void 0:n[2];if(!r||!o)return e;const i=r.includes("-gradient")?r:`${r}-gradient`,[a,...s]=o.split(",").map(Vt).filter(Boolean);if(0===(null==s?void 0:s.length))return e;const l=a in Lt?Lt[a]:a;return s.unshift(l),`${i}(${s.map(e=>{if(Bt.has(e))return e;const n=e.indexOf(" "),[r,o]=-1!==n?[e.substr(0,n),e.substr(n+1)]:[e],i=Wt(o)?o:o&&o.split(" "),a=`colors.${r}`,s=a in t.__cssMap?t.__cssMap[a].varRef:r;return i?[s,...Array.isArray(i)?i:[i]].join(" "):s}).join(", ")})`}(e,null!=t?t:{}),blur:Ut("blur"),opacity:Ut("opacity"),brightness:Ut("brightness"),contrast:Ut("contrast"),dropShadow:Ut("drop-shadow"),grayscale:Ut("grayscale"),hueRotate:e=>Ut("hue-rotate")(Ht.degree(e)),invert:Ut("invert"),saturate:Ut("saturate"),sepia:Ut("sepia"),bgImage:e=>null==e||Wt(e)||$t.has(e)?e:`url(${e})`,outline(e){const t="0"===String(e)||"none"===String(e);return null!==e&&t?{outline:"2px solid transparent",outlineOffset:"2px"}:{outline:e}},flexDirection(e){var t;const{space:n,divide:r}=null!=(t=Dt[e])?t:{},o={flexDirection:e};return n&&(o[n]=1),r&&(o[r]=1),o}},qt={borderWidths:zt("borderWidths"),borderStyles:zt("borderStyles"),colors:zt("colors"),borders:zt("borders"),gradients:zt("gradients",Ht.gradient),radii:zt("radii",Ht.px),space:zt("space",Ft(Ht.vh,Ht.px)),spaceT:zt("space",Ft(Ht.vh,Ht.px)),degreeT:e=>({property:e,transform:Ht.degree}),prop:(e,t,n)=>({property:e,scale:t,...t&&{transform:Ot({scale:t,transform:n})}}),propT:(e,t)=>({property:e,transform:t}),sizes:zt("sizes",Ft(Ht.vh,Ht.px)),sizesT:zt("sizes",Ft(Ht.vh,Ht.fraction)),shadows:zt("shadows"),logical:function(e){const{property:t,scale:n,transform:r}=e;return{scale:n,property:Mt(t),transform:n?Ot({scale:n,compose:r}):r}},blur:zt("blur",Ht.blur)},Qt={background:qt.colors("background"),backgroundColor:qt.colors("backgroundColor"),backgroundImage:qt.gradients("backgroundImage"),backgroundSize:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundAttachment:!0,backgroundClip:{transform:Ht.bgClip},bgSize:qt.prop("backgroundSize"),bgPosition:qt.prop("backgroundPosition"),bg:qt.colors("background"),bgColor:qt.colors("backgroundColor"),bgPos:qt.prop("backgroundPosition"),bgRepeat:qt.prop("backgroundRepeat"),bgAttachment:qt.prop("backgroundAttachment"),bgGradient:qt.gradients("backgroundImage"),bgClip:{transform:Ht.bgClip}};Object.assign(Qt,{bgImage:Qt.backgroundImage,bgImg:Qt.backgroundImage});var Kt={border:qt.borders("border"),borderWidth:qt.borderWidths("borderWidth"),borderStyle:qt.borderStyles("borderStyle"),borderColor:qt.colors("borderColor"),borderRadius:qt.radii("borderRadius"),borderTop:qt.borders("borderTop"),borderBlockStart:qt.borders("borderBlockStart"),borderTopLeftRadius:qt.radii("borderTopLeftRadius"),borderStartStartRadius:qt.logical({scale:"radii",property:{ltr:"borderTopLeftRadius",rtl:"borderTopRightRadius"}}),borderEndStartRadius:qt.logical({scale:"radii",property:{ltr:"borderBottomLeftRadius",rtl:"borderBottomRightRadius"}}),borderTopRightRadius:qt.radii("borderTopRightRadius"),borderStartEndRadius:qt.logical({scale:"radii",property:{ltr:"borderTopRightRadius",rtl:"borderTopLeftRadius"}}),borderEndEndRadius:qt.logical({scale:"radii",property:{ltr:"borderBottomRightRadius",rtl:"borderBottomLeftRadius"}}),borderRight:qt.borders("borderRight"),borderInlineEnd:qt.borders("borderInlineEnd"),borderBottom:qt.borders("borderBottom"),borderBlockEnd:qt.borders("borderBlockEnd"),borderBottomLeftRadius:qt.radii("borderBottomLeftRadius"),borderBottomRightRadius:qt.radii("borderBottomRightRadius"),borderLeft:qt.borders("borderLeft"),borderInlineStart:{property:"borderInlineStart",scale:"borders"},borderInlineStartRadius:qt.logical({scale:"radii",property:{ltr:["borderTopLeftRadius","borderBottomLeftRadius"],rtl:["borderTopRightRadius","borderBottomRightRadius"]}}),borderInlineEndRadius:qt.logical({scale:"radii",property:{ltr:["borderTopRightRadius","borderBottomRightRadius"],rtl:["borderTopLeftRadius","borderBottomLeftRadius"]}}),borderX:qt.borders(["borderLeft","borderRight"]),borderInline:qt.borders("borderInline"),borderY:qt.borders(["borderTop","borderBottom"]),borderBlock:qt.borders("borderBlock"),borderTopWidth:qt.borderWidths("borderTopWidth"),borderBlockStartWidth:qt.borderWidths("borderBlockStartWidth"),borderTopColor:qt.colors("borderTopColor"),borderBlockStartColor:qt.colors("borderBlockStartColor"),borderTopStyle:qt.borderStyles("borderTopStyle"),borderBlockStartStyle:qt.borderStyles("borderBlockStartStyle"),borderBottomWidth:qt.borderWidths("borderBottomWidth"),borderBlockEndWidth:qt.borderWidths("borderBlockEndWidth"),borderBottomColor:qt.colors("borderBottomColor"),borderBlockEndColor:qt.colors("borderBlockEndColor"),borderBottomStyle:qt.borderStyles("borderBottomStyle"),borderBlockEndStyle:qt.borderStyles("borderBlockEndStyle"),borderLeftWidth:qt.borderWidths("borderLeftWidth"),borderInlineStartWidth:qt.borderWidths("borderInlineStartWidth"),borderLeftColor:qt.colors("borderLeftColor"),borderInlineStartColor:qt.colors("borderInlineStartColor"),borderLeftStyle:qt.borderStyles("borderLeftStyle"),borderInlineStartStyle:qt.borderStyles("borderInlineStartStyle"),borderRightWidth:qt.borderWidths("borderRightWidth"),borderInlineEndWidth:qt.borderWidths("borderInlineEndWidth"),borderRightColor:qt.colors("borderRightColor"),borderInlineEndColor:qt.colors("borderInlineEndColor"),borderRightStyle:qt.borderStyles("borderRightStyle"),borderInlineEndStyle:qt.borderStyles("borderInlineEndStyle"),borderTopRadius:qt.radii(["borderTopLeftRadius","borderTopRightRadius"]),borderBottomRadius:qt.radii(["borderBottomLeftRadius","borderBottomRightRadius"]),borderLeftRadius:qt.radii(["borderTopLeftRadius","borderBottomLeftRadius"]),borderRightRadius:qt.radii(["borderTopRightRadius","borderBottomRightRadius"])};Object.assign(Kt,{rounded:Kt.borderRadius,roundedTop:Kt.borderTopRadius,roundedTopLeft:Kt.borderTopLeftRadius,roundedTopRight:Kt.borderTopRightRadius,roundedTopStart:Kt.borderStartStartRadius,roundedTopEnd:Kt.borderStartEndRadius,roundedBottom:Kt.borderBottomRadius,roundedBottomLeft:Kt.borderBottomLeftRadius,roundedBottomRight:Kt.borderBottomRightRadius,roundedBottomStart:Kt.borderEndStartRadius,roundedBottomEnd:Kt.borderEndEndRadius,roundedLeft:Kt.borderLeftRadius,roundedRight:Kt.borderRightRadius,roundedStart:Kt.borderInlineStartRadius,roundedEnd:Kt.borderInlineEndRadius,borderStart:Kt.borderInlineStart,borderEnd:Kt.borderInlineEnd,borderTopStartRadius:Kt.borderStartStartRadius,borderTopEndRadius:Kt.borderStartEndRadius,borderBottomStartRadius:Kt.borderEndStartRadius,borderBottomEndRadius:Kt.borderEndEndRadius,borderStartRadius:Kt.borderInlineStartRadius,borderEndRadius:Kt.borderInlineEndRadius,borderStartWidth:Kt.borderInlineStartWidth,borderEndWidth:Kt.borderInlineEndWidth,borderStartColor:Kt.borderInlineStartColor,borderEndColor:Kt.borderInlineEndColor,borderStartStyle:Kt.borderInlineStartStyle,borderEndStyle:Kt.borderInlineEndStyle});var Gt={color:qt.colors("color"),textColor:qt.colors("color"),fill:qt.colors("fill"),stroke:qt.colors("stroke")},Xt={boxShadow:qt.shadows("boxShadow"),mixBlendMode:!0,blendMode:qt.prop("mixBlendMode"),backgroundBlendMode:!0,bgBlendMode:qt.prop("backgroundBlendMode"),opacity:!0};Object.assign(Xt,{shadow:Xt.boxShadow});var Yt={filter:{transform:Ht.filter},blur:qt.blur("--chakra-blur"),brightness:qt.propT("--chakra-brightness",Ht.brightness),contrast:qt.propT("--chakra-contrast",Ht.contrast),hueRotate:qt.propT("--chakra-hue-rotate",Ht.hueRotate),invert:qt.propT("--chakra-invert",Ht.invert),saturate:qt.propT("--chakra-saturate",Ht.saturate),dropShadow:qt.propT("--chakra-drop-shadow",Ht.dropShadow),backdropFilter:{transform:Ht.backdropFilter},backdropBlur:qt.blur("--chakra-backdrop-blur"),backdropBrightness:qt.propT("--chakra-backdrop-brightness",Ht.brightness),backdropContrast:qt.propT("--chakra-backdrop-contrast",Ht.contrast),backdropHueRotate:qt.propT("--chakra-backdrop-hue-rotate",Ht.hueRotate),backdropInvert:qt.propT("--chakra-backdrop-invert",Ht.invert),backdropSaturate:qt.propT("--chakra-backdrop-saturate",Ht.saturate)},Zt={alignItems:!0,alignContent:!0,justifyItems:!0,justifyContent:!0,flexWrap:!0,flexDirection:{transform:Ht.flexDirection},flex:!0,flexFlow:!0,flexGrow:!0,flexShrink:!0,flexBasis:qt.sizes("flexBasis"),justifySelf:!0,alignSelf:!0,order:!0,placeItems:!0,placeContent:!0,placeSelf:!0,gap:qt.space("gap"),rowGap:qt.space("rowGap"),columnGap:qt.space("columnGap")};Object.assign(Zt,{flexDir:Zt.flexDirection});var Jt={gridGap:qt.space("gridGap"),gridColumnGap:qt.space("gridColumnGap"),gridRowGap:qt.space("gridRowGap"),gridColumn:!0,gridRow:!0,gridAutoFlow:!0,gridAutoColumns:!0,gridColumnStart:!0,gridColumnEnd:!0,gridRowStart:!0,gridRowEnd:!0,gridAutoRows:!0,gridTemplate:!0,gridTemplateColumns:!0,gridTemplateRows:!0,gridTemplateAreas:!0,gridArea:!0},en={appearance:!0,cursor:!0,resize:!0,userSelect:!0,pointerEvents:!0,outline:{transform:Ht.outline},outlineOffset:!0,outlineColor:qt.colors("outlineColor")},tn={width:qt.sizesT("width"),inlineSize:qt.sizesT("inlineSize"),height:qt.sizes("height"),blockSize:qt.sizes("blockSize"),boxSize:qt.sizes(["width","height"]),minWidth:qt.sizes("minWidth"),minInlineSize:qt.sizes("minInlineSize"),minHeight:qt.sizes("minHeight"),minBlockSize:qt.sizes("minBlockSize"),maxWidth:qt.sizes("maxWidth"),maxInlineSize:qt.sizes("maxInlineSize"),maxHeight:qt.sizes("maxHeight"),maxBlockSize:qt.sizes("maxBlockSize"),overflow:!0,overflowX:!0,overflowY:!0,overscrollBehavior:!0,overscrollBehaviorX:!0,overscrollBehaviorY:!0,display:!0,aspectRatio:!0,hideFrom:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (min-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r.minW)?o:e})`;return{[i]:{display:"none"}}}},hideBelow:{scale:"breakpoints",transform:(e,t)=>{var n,r,o;const i=`@media screen and (max-width: ${null!=(o=null==(r=null==(n=t.__breakpoints)?void 0:n.get(e))?void 0:r._minW)?o:e})`;return{[i]:{display:"none"}}}},verticalAlign:!0,boxSizing:!0,boxDecorationBreak:!0,float:qt.propT("float",Ht.float),objectFit:!0,objectPosition:!0,visibility:!0,isolation:!0};Object.assign(tn,{w:tn.width,h:tn.height,minW:tn.minWidth,maxW:tn.maxWidth,minH:tn.minHeight,maxH:tn.maxHeight,overscroll:tn.overscrollBehavior,overscrollX:tn.overscrollBehaviorX,overscrollY:tn.overscrollBehaviorY});var nn={listStyleType:!0,listStylePosition:!0,listStylePos:qt.prop("listStylePosition"),listStyleImage:!0,listStyleImg:qt.prop("listStyleImage")},rn=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e}),on={border:"0px",clip:"rect(0, 0, 0, 0)",width:"1px",height:"1px",margin:"-1px",padding:"0px",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"},an={position:"static",width:"auto",height:"auto",clip:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal"},sn=(e,t,n)=>{const r={},o=rn(e,t,{});for(const e in o)e in n&&null!=n[e]||(r[e]=o[e]);return r},ln={srOnly:{transform:e=>!0===e?on:"focusable"===e?an:{}},layerStyle:{processResult:!0,transform:(e,t,n)=>sn(t,`layerStyles.${e}`,n)},textStyle:{processResult:!0,transform:(e,t,n)=>sn(t,`textStyles.${e}`,n)},apply:{processResult:!0,transform:(e,t,n)=>sn(t,e,n)}},un={position:!0,pos:qt.prop("position"),zIndex:qt.prop("zIndex","zIndices"),inset:qt.spaceT("inset"),insetX:qt.spaceT(["left","right"]),insetInline:qt.spaceT("insetInline"),insetY:qt.spaceT(["top","bottom"]),insetBlock:qt.spaceT("insetBlock"),top:qt.spaceT("top"),insetBlockStart:qt.spaceT("insetBlockStart"),bottom:qt.spaceT("bottom"),insetBlockEnd:qt.spaceT("insetBlockEnd"),left:qt.spaceT("left"),insetInlineStart:qt.logical({scale:"space",property:{ltr:"left",rtl:"right"}}),right:qt.spaceT("right"),insetInlineEnd:qt.logical({scale:"space",property:{ltr:"right",rtl:"left"}})};Object.assign(un,{insetStart:un.insetInlineStart,insetEnd:un.insetInlineEnd});var cn={ring:{transform:Ht.ring},ringColor:qt.colors("--chakra-ring-color"),ringOffset:qt.prop("--chakra-ring-offset-width"),ringOffsetColor:qt.colors("--chakra-ring-offset-color"),ringInset:qt.prop("--chakra-ring-inset")},dn={margin:qt.spaceT("margin"),marginTop:qt.spaceT("marginTop"),marginBlockStart:qt.spaceT("marginBlockStart"),marginRight:qt.spaceT("marginRight"),marginInlineEnd:qt.spaceT("marginInlineEnd"),marginBottom:qt.spaceT("marginBottom"),marginBlockEnd:qt.spaceT("marginBlockEnd"),marginLeft:qt.spaceT("marginLeft"),marginInlineStart:qt.spaceT("marginInlineStart"),marginX:qt.spaceT(["marginInlineStart","marginInlineEnd"]),marginInline:qt.spaceT("marginInline"),marginY:qt.spaceT(["marginTop","marginBottom"]),marginBlock:qt.spaceT("marginBlock"),padding:qt.space("padding"),paddingTop:qt.space("paddingTop"),paddingBlockStart:qt.space("paddingBlockStart"),paddingRight:qt.space("paddingRight"),paddingBottom:qt.space("paddingBottom"),paddingBlockEnd:qt.space("paddingBlockEnd"),paddingLeft:qt.space("paddingLeft"),paddingInlineStart:qt.space("paddingInlineStart"),paddingInlineEnd:qt.space("paddingInlineEnd"),paddingX:qt.space(["paddingInlineStart","paddingInlineEnd"]),paddingInline:qt.space("paddingInline"),paddingY:qt.space(["paddingTop","paddingBottom"]),paddingBlock:qt.space("paddingBlock")};Object.assign(dn,{m:dn.margin,mt:dn.marginTop,mr:dn.marginRight,me:dn.marginInlineEnd,marginEnd:dn.marginInlineEnd,mb:dn.marginBottom,ml:dn.marginLeft,ms:dn.marginInlineStart,marginStart:dn.marginInlineStart,mx:dn.marginX,my:dn.marginY,p:dn.padding,pt:dn.paddingTop,py:dn.paddingY,px:dn.paddingX,pb:dn.paddingBottom,pl:dn.paddingLeft,ps:dn.paddingInlineStart,paddingStart:dn.paddingInlineStart,pr:dn.paddingRight,pe:dn.paddingInlineEnd,paddingEnd:dn.paddingInlineEnd});var fn={textDecorationColor:qt.colors("textDecorationColor"),textDecoration:!0,textDecor:{property:"textDecoration"},textDecorationLine:!0,textDecorationStyle:!0,textDecorationThickness:!0,textUnderlineOffset:!0,textShadow:qt.shadows("textShadow")},hn={clipPath:!0,transform:qt.propT("transform",Ht.transform),transformOrigin:!0,translateX:qt.spaceT("--chakra-translate-x"),translateY:qt.spaceT("--chakra-translate-y"),skewX:qt.degreeT("--chakra-skew-x"),skewY:qt.degreeT("--chakra-skew-y"),scaleX:qt.prop("--chakra-scale-x"),scaleY:qt.prop("--chakra-scale-y"),scale:qt.prop(["--chakra-scale-x","--chakra-scale-y"]),rotate:qt.degreeT("--chakra-rotate")},pn={transition:!0,transitionDelay:!0,animation:!0,willChange:!0,transitionDuration:qt.prop("transitionDuration","transition.duration"),transitionProperty:qt.prop("transitionProperty","transition.property"),transitionTimingFunction:qt.prop("transitionTimingFunction","transition.easing")},mn={fontFamily:qt.prop("fontFamily","fonts"),fontSize:qt.prop("fontSize","fontSizes",Ht.px),fontWeight:qt.prop("fontWeight","fontWeights"),lineHeight:qt.prop("lineHeight","lineHeights"),letterSpacing:qt.prop("letterSpacing","letterSpacings"),textAlign:!0,fontStyle:!0,textIndent:!0,wordBreak:!0,overflowWrap:!0,textOverflow:!0,textTransform:!0,whiteSpace:!0,isTruncated:{transform(e){if(!0===e)return{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},noOfLines:{static:{overflow:"hidden",textOverflow:"ellipsis",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"var(--chakra-line-clamp)"},property:"--chakra-line-clamp"}},gn={scrollBehavior:!0,scrollSnapAlign:!0,scrollSnapStop:!0,scrollSnapType:!0,scrollMargin:qt.spaceT("scrollMargin"),scrollMarginTop:qt.spaceT("scrollMarginTop"),scrollMarginBottom:qt.spaceT("scrollMarginBottom"),scrollMarginLeft:qt.spaceT("scrollMarginLeft"),scrollMarginRight:qt.spaceT("scrollMarginRight"),scrollMarginX:qt.spaceT(["scrollMarginLeft","scrollMarginRight"]),scrollMarginY:qt.spaceT(["scrollMarginTop","scrollMarginBottom"]),scrollPadding:qt.spaceT("scrollPadding"),scrollPaddingTop:qt.spaceT("scrollPaddingTop"),scrollPaddingBottom:qt.spaceT("scrollPaddingBottom"),scrollPaddingLeft:qt.spaceT("scrollPaddingLeft"),scrollPaddingRight:qt.spaceT("scrollPaddingRight"),scrollPaddingX:qt.spaceT(["scrollPaddingLeft","scrollPaddingRight"]),scrollPaddingY:qt.spaceT(["scrollPaddingTop","scrollPaddingBottom"])};function vn(e){return kt(e)&&e.reference?e.reference:String(e)}var yn=(e,...t)=>t.map(vn).join(` ${e} `).replace(/calc/g,""),bn=(...e)=>`calc(${yn("+",...e)})`,xn=(...e)=>`calc(${yn("-",...e)})`,wn=(...e)=>`calc(${yn("*",...e)})`,Sn=(...e)=>`calc(${yn("/",...e)})`,kn=e=>{const t=vn(e);return null==t||Number.isNaN(parseFloat(t))?wn(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Cn=Object.assign(e=>({add:(...t)=>Cn(bn(e,...t)),subtract:(...t)=>Cn(xn(e,...t)),multiply:(...t)=>Cn(wn(e,...t)),divide:(...t)=>Cn(Sn(e,...t)),negate:()=>Cn(kn(e)),toString:()=>e.toString()}),{add:bn,subtract:xn,multiply:wn,divide:Sn,negate:kn});function En(e,t){return`var(${e}${t?`, ${t}`:""})`}function _n(e,t=""){return function(e){return function(e){return e.replace(/[!-,/:-@[-^`{-~]/g,"\\$&")}(function(e){return e.includes("\\.")||Number.isInteger(parseFloat(e.toString()))?e:e.replace(".","\\.")}(function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString())))}(`--${function(e,t=""){return[t,e].filter(Boolean).join("-")}(e,t)}`)}function Pn(e,t,n){const r=_n(e,n);return{variable:r,reference:En(r,t)}}function Tn(e){const t=null==e?0:e.length;return t?e[t-1]:void 0}function Rn(e){if(null==e)return e;const{unitless:t}=function(e){const t=parseFloat(e.toString()),n=e.toString().replace(String(t),"");return{unitless:!n,value:t,unit:n}}(e);return t||"number"==typeof e?`${e}px`:e}var An=(e,t)=>parseInt(e[1],10)>parseInt(t[1],10)?1:-1,On=e=>Object.fromEntries(Object.entries(e).sort(An));function Fn(e){const t=On(e);return Object.assign(Object.values(t),t)}function zn(e){var t;return e?"number"==typeof(e=null!=(t=Rn(e))?t:e)?`${e+-.02}`:e.replace(/(\d+\.?\d*)/u,e=>`${parseFloat(e)+-.02}`):e}function Mn(e,t){const n=["@media screen"];return e&&n.push("and",`(min-width: ${Rn(e)})`),t&&n.push("and",`(max-width: ${Rn(t)})`),n.join(" ")}function jn(e){var t;if(!e)return null;e.base=null!=(t=e.base)?t:"0px";const n=Fn(e),r=Object.entries(e).sort(An).map(([e,t],n,r)=>{var o;let[,i]=null!=(o=r[n+1])?o:[];return i=parseFloat(i)>0?zn(i):void 0,{_minW:zn(t),breakpoint:e,minW:t,maxW:i,maxWQuery:Mn(null,i),minWQuery:Mn(t),minMaxQuery:Mn(t,i)}}),o=function(e){const t=Object.keys(On(e));return new Set(t)}(e),i=Array.from(o.values());return{keys:o,normalized:n,isResponsive(e){const t=Object.keys(e);return t.length>0&&t.every(e=>o.has(e))},asObject:On(e),asArray:Fn(e),details:r,get:e=>r.find(t=>t.breakpoint===e),media:[null,...n.map(e=>Mn(e)).slice(1)],toArrayValue(e){if(!kt(e))throw new Error("toArrayValue: value must be an object");const t=i.map(t=>{var n;return null!=(n=e[t])?n:null});for(;null===Tn(t);)t.pop();return t},toObjectValue(e){if(!Array.isArray(e))throw new Error("toObjectValue: value must be an array");return e.reduce((e,t,n)=>{const r=i[n];return null!=r&&null!=t&&(e[r]=t),e},{})}}}var In=(e,t)=>`${e}:hover ${t}, ${e}[data-hover] ${t}`,Nn=(e,t)=>`${e}:focus ${t}, ${e}[data-focus] ${t}`,Dn=(e,t)=>`${e}:focus-visible ${t}`,Ln=(e,t)=>`${e}:focus-within ${t}`,Bn=(e,t)=>`${e}:active ${t}, ${e}[data-active] ${t}`,$n=(e,t)=>`${e}:disabled ${t}, ${e}[data-disabled] ${t}`,Vn=(e,t)=>`${e}:invalid ${t}, ${e}[data-invalid] ${t}`,Wn=(e,t)=>`${e}:checked ${t}, ${e}[data-checked] ${t}`,Un=e=>qn(t=>e(t,"&"),"[role=group]","[data-group]",".group"),Hn=e=>qn(t=>e(t,"~ &"),"[data-peer]",".peer"),qn=(e,...t)=>t.map(e).join(", "),Qn={_hover:"&:hover, &[data-hover]",_active:"&:active, &[data-active]",_focus:"&:focus, &[data-focus]",_highlighted:"&[data-highlighted]",_focusWithin:"&:focus-within",_focusVisible:"&:focus-visible, &[data-focus-visible]",_disabled:"&:disabled, &[disabled], &[aria-disabled=true], &[data-disabled]",_readOnly:"&[aria-readonly=true], &[readonly], &[data-readonly]",_before:"&::before",_after:"&::after",_empty:"&:empty",_expanded:"&[aria-expanded=true], &[data-expanded]",_checked:"&[aria-checked=true], &[data-checked]",_grabbed:"&[aria-grabbed=true], &[data-grabbed]",_pressed:"&[aria-pressed=true], &[data-pressed]",_invalid:"&[aria-invalid=true], &[data-invalid]",_valid:"&[data-valid], &[data-state=valid]",_loading:"&[data-loading], &[aria-busy=true]",_selected:"&[aria-selected=true], &[data-selected]",_hidden:"&[hidden], &[data-hidden]",_autofill:"&:-webkit-autofill",_even:"&:nth-of-type(even)",_odd:"&:nth-of-type(odd)",_first:"&:first-of-type",_firstLetter:"&::first-letter",_last:"&:last-of-type",_notFirst:"&:not(:first-of-type)",_notLast:"&:not(:last-of-type)",_visited:"&:visited",_activeLink:"&[aria-current=page]",_activeStep:"&[aria-current=step]",_indeterminate:"&:indeterminate, &[aria-checked=mixed], &[data-indeterminate]",_groupHover:Un(In),_peerHover:Hn(In),_groupFocus:Un(Nn),_peerFocus:Hn(Nn),_groupFocusVisible:Un(Dn),_peerFocusVisible:Hn(Dn),_groupActive:Un(Bn),_peerActive:Hn(Bn),_groupDisabled:Un($n),_peerDisabled:Hn($n),_groupInvalid:Un(Vn),_peerInvalid:Hn(Vn),_groupChecked:Un(Wn),_peerChecked:Hn(Wn),_groupFocusWithin:Un(Ln),_peerFocusWithin:Hn(Ln),_peerPlaceholderShown:Hn((e,t)=>`${e}:placeholder-shown ${t}`),_placeholder:"&::placeholder",_placeholderShown:"&:placeholder-shown",_fullScreen:"&:fullscreen",_selection:"&::selection",_rtl:"[dir=rtl] &, &[dir=rtl]",_ltr:"[dir=ltr] &, &[dir=ltr]",_mediaDark:"@media (prefers-color-scheme: dark)",_mediaReduceMotion:"@media (prefers-reduced-motion: reduce)",_dark:".chakra-ui-dark &:not([data-theme]),[data-theme=dark] &:not([data-theme]),&[data-theme=dark]",_light:".chakra-ui-light &:not([data-theme]),[data-theme=light] &:not([data-theme]),&[data-theme=light]",_horizontal:"&[data-orientation=horizontal]",_vertical:"&[data-orientation=vertical]"},Kn=Object.keys(Qn);function Gn(e,t){return Pn(String(e).replace(/\./g,"-"),void 0,t)}function Xn(e,t,n={}){const{stop:r,getKey:o}=n;return function e(n,i=[]){var a;if(function(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}(n)||Array.isArray(n)){const s={};for(const[l,u]of Object.entries(n)){const c=null!=(a=null==o?void 0:o(l))?a:l,d=[...i,c];if(null==r?void 0:r(n,d))return t(n,i);s[c]=e(u,d)}return s}return t(n,i)}(e)}var Yn=["colors","borders","borderWidths","borderStyles","fonts","fontSizes","fontWeights","gradients","letterSpacings","lineHeights","radii","space","shadows","sizes","zIndices","transition","blur","breakpoints"],Zn=e=>Kn.includes(e)||"default"===e;var Jn=Rt({},Qt,Kt,Gt,Zt,tn,Yt,cn,en,Jt,ln,un,Xt,dn,gn,mn,fn,hn,nn,pn),er=Object.assign({},dn,tn,Zt,Jt,un),tr=(Object.keys(er),[...Object.keys(Jn),...Kn]),nr={...Jn,...Qn},rr=e=>e in nr,or=(e,t)=>e.startsWith("--")&&"string"==typeof t&&!function(e){return/^var\(--.+\)$/.test(e)}(t),ir=(e,t)=>{var n,r;if(null==t)return t;const o=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.varRef},i=e=>{var t;return null!=(t=o(e))?t:e},[a,s]=function(e){const t=[];let n="",r=!1;for(let o=0;o<e.length;o++){const i=e[o];"("===i?(r=!0,n+=i):")"===i?(r=!1,n+=i):","!==i||r?n+=i:(t.push(n),n="")}return n=n.trim(),n&&t.push(n),t}(t);return null!=(r=null!=(n=o(a))?n:i(s))?r:i(t)};var ar=e=>t=>function(e){const{configs:t={},pseudos:n={},theme:r}=e,o=(e,i=!1)=>{var a,s,l;const u=Ct(e,r),c=(e=>t=>{if(!t.__breakpoints)return e;const{isResponsive:n,toArrayValue:r,media:o}=t.__breakpoints,i={};for(const a in e){let s=Ct(e[a],t);if(null==s)continue;if(s=kt(s)&&n(s)?r(s):s,!Array.isArray(s)){i[a]=s;continue}const l=s.slice(0,o.length).length;for(let e=0;e<l;e+=1){const t=null==o?void 0:o[e];t?(i[t]=i[t]||{},null!=s[e]&&(i[t][a]=s[e])):i[a]=s[e]}}return i})(u)(r);let d={};for(let e in c){let f=Ct(c[e],r);e in n&&(e=n[e]),or(e,f)&&(f=ir(r,f));let h=t[e];if(!0===h&&(h={property:e}),kt(f)){d[e]=null!=(a=d[e])?a:{},d[e]=Rt({},d[e],o(f,!0));continue}let p=null!=(l=null==(s=null==h?void 0:h.transform)?void 0:s.call(h,f,r,u))?l:f;p=(null==h?void 0:h.processResult)?o(p,!0):p;const m=Ct(null==h?void 0:h.property,r);if(!i&&(null==h?void 0:h.static)){const e=Ct(h.static,r);d=Rt({},d,e)}if(m&&Array.isArray(m))for(const e of m)d[e]=p;else m?"&"===m&&kt(p)?d=Rt({},d,p):d[m]=p:kt(p)?d=Rt({},d,p):d[e]=p}return d};return o}({theme:t,pseudos:Qn,configs:Jn})(e);function sr(e){return{definePartsStyle:e=>e,defineMultiStyleConfig:t=>({parts:e,...t})}}function lr(e,t){for(let n=t+1;n<e.length;n++)if(null!=e[n])return n;return-1}function ur(e){return function(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}(e,["styleConfig","size","variant","colorScheme"])}var cr=(e=>{const t=new WeakMap;return(n,r,o,i)=>{if(void 0===n)return e(n,r,o);t.has(n)||t.set(n,new Map);const a=t.get(n);if(a.has(r))return a.get(r);const s=e(n,r,o,i);return a.set(r,s),s}})(function(e,t,n,r){const o="string"==typeof t?t.split("."):[t];for(r=0;r<o.length&&e;r+=1)e=e[o[r]];return void 0===e?n:e});function dr(e,t){const n={};return Object.keys(e).forEach(r=>{const o=e[r];t(o,r,e)&&(n[r]=o)}),n}var fr=e=>dr(e,e=>null!=e),hr=n(115);function pr(t,n={}){var r;const{styleConfig:o,...i}=n,{theme:a,colorMode:s}=wt(),l=t?cr(a,`components.${t}`):void 0,u=o||l,c=Rt({theme:a,colorMode:s},null!=(r=null==u?void 0:u.defaultProps)?r:{},fr(function(e,t){const n={};return Object.keys(e).forEach(r=>{t.includes(r)||(n[r]=e[r])}),n}(i,["children"]))),d=(0,e.useRef)({});if(u){const e=function(e){return t=>{var n;const{variant:r,size:o,theme:i}=t,a=function(e){const t=e.__breakpoints;return function(e,n,r,o){var i,a;if(!t)return;const s={},l=function(e,t){return Array.isArray(e)?e:kt(e)?t(e):null!=e?[e]:void 0}(r,t.toArrayValue);if(!l)return s;const u=l.length,c=1===u,d=!!e.parts;for(let r=0;r<u;r++){const u=t.details[r],f=t.details[lr(l,r)],h=Mn(u.minW,null==f?void 0:f._minW),p=Ct(null==(i=e[n])?void 0:i[l[r]],o);p&&(d?null==(a=e.parts)||a.forEach(e=>{Rt(s,{[e]:c?p[e]:{[h]:p[e]}})}):d?s[h]=p:c?Rt(s,p):s[h]=p)}return s}}(i);return Rt({},Ct(null!=(n=e.baseStyle)?n:{},t),a(e,"sizes",o,t),a(e,"variants",r,t))}}(u),t=e(c);hr(d.current,t)||(d.current=t)}return d.current}function mr(e,t={}){return pr(e,t)}function gr(e,t={}){return pr(e,t)}var vr=new Set([...tr,"textStyle","layerStyle","apply","noOfLines","focusBorderColor","errorBorderColor","as","__css","css","sx"]),yr=new Set(["htmlWidth","htmlHeight","htmlSize","htmlTranslate"]);function br(e){return yr.has(e)||!vr.has(e)}function xr(e,...t){return"function"==typeof e?e(...t):e}function wr(...e){return function(t){e.some(e=>(null==e||e(t),null==t?void 0:t.defaultPrevented))}}var Sr,kr=/^((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|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Cr=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Er=function(e,t,n){Cr(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}},_r=Je(function(e){return kr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}),Pr=function(e){return"theme"!==e},Tr=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?_r:Pr},Rr=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ar=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Cr(t,n,r),dt(function(){return Er(t,n,r)}),null},Or=function t(n,r){var o,i,a=n.__emotion_real===n,s=a&&n.__emotion_base||n;void 0!==r&&(o=r.label,i=r.target);var l=Rr(n,r,a),u=l||Tr(s),c=!u("as");return function(){var d=arguments,f=a&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==o&&f.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)f.push.apply(f,d);else{f.push(d[0][0]);for(var h=d.length,p=1;p<h;p++)f.push(d[p],d[0][p])}var m=pt(function(t,n,r){var o,a,d,h,p=c&&t.as||s,m="",g=[],v=t;if(null==t.theme){for(var y in v={},t)v[y]=t[y];v.theme=e.useContext(mt)}"string"==typeof t.className?(o=n.registered,a=g,d=t.className,h="",d.split(" ").forEach(function(e){void 0!==o[e]?a.push(o[e]+";"):e&&(h+=e+" ")}),m=h):null!=t.className&&(m=t.className+" ");var b=ut(f.concat(g),n.registered,v);m+=n.key+"-"+b.name,void 0!==i&&(m+=" "+i);var x=c&&void 0===l?Tr(p):u,w={};for(var S in t)c&&"as"===S||x(S)&&(w[S]=t[S]);return w.className=m,w.ref=r,e.createElement(e.Fragment,null,e.createElement(Ar,{cache:n,serialized:b,isStringTag:"string"==typeof p}),e.createElement(p,w))});return m.displayName=void 0!==o?o:"Styled("+("string"==typeof s?s:s.displayName||s.name||"Component")+")",m.defaultProps=n.defaultProps,m.__emotion_real=m,m.__emotion_base=s,m.__emotion_styles=f,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(e,n){return t(e,Xe({},r,n,{shouldForwardProp:Rr(m,n,!0)})).apply(void 0,f)},m}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){Or[e]=Or(e)});var Fr=null!=(Sr=Or.default)?Sr:Or;function zr(t,n){const{baseStyle:r,...o}=null!=n?n:{};o.shouldForwardProp||(o.shouldForwardProp=br);const i=(({baseStyle:e})=>t=>{const{theme:n,css:r,__css:o,sx:i,...a}=t,s=dr(a,(e,t)=>rr(t)),l=function(e,...t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");const n={...e};for(const e of t)if(null!=e)for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(t in n&&delete n[t],n[t]=e[t]);return n}({},o,xr(e,t),fr(s),i),u=ar(l)(t.theme);return r?[u,r]:u})({baseStyle:r}),a=Fr(t,o)(i);return e.forwardRef(function(t,n){const{colorMode:r,forced:o}=xt();return e.createElement(a,{ref:n,"data-theme":o?r:void 0,...t})})}var Mr=function(){const e=new Map;return new Proxy(zr,{apply:(e,t,n)=>zr(...n),get:(t,n)=>(e.has(n)||e.set(n,zr(n)),e.get(n))})}(),jr=n(4848),Ir={path:(0,jr.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,jr.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,jr.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,jr.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Nr=K((e,t)=>{const{as:n,viewBox:r,color:o="currentColor",focusable:i=!1,children:a,className:s,__css:l,...u}=e,c={ref:t,focusable:i,className:St("chakra-icon",s),__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:o,...l,...mr("Icon",e)}},d=null!=r?r:Ir.viewBox;if(n&&"string"!=typeof n)return(0,jr.jsx)(Mr.svg,{as:n,...c,...u});const f=null!=a?a:Ir.path;return(0,jr.jsx)(Mr.svg,{verticalAlign:"middle",viewBox:d,...c,...u,children:f})});function Dr(...e){return t=>{e.forEach(e=>{!function(e,t){if(null!=e)if("function"!=typeof e)try{e.current=t}catch(n){throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}else e(t)}(e,t)})}}function Lr(...t){return(0,e.useMemo)(()=>Dr(...t),t)}function Br(e){const t=e.target,{tagName:n,isContentEditable:r}=t;return"INPUT"!==n&&"TEXTAREA"!==n&&!0!==r}function $r(t={}){const{ref:n,isDisabled:r,isFocusable:o,clickOnEnter:i=!0,clickOnSpace:a=!0,onMouseDown:s,onMouseUp:l,onClick:u,onKeyDown:c,onKeyUp:d,tabIndex:f,onMouseOver:h,onMouseLeave:p,...m}=t,[g,v]=(0,e.useState)(!0),[y,b]=(0,e.useState)(!1),x=function(){const t=(0,e.useRef)(new Map),n=t.current,r=(0,e.useCallback)((e,n,r,o)=>{t.current.set(r,{type:n,el:e,options:o}),e.addEventListener(n,r,o)},[]),o=(0,e.useCallback)((e,n,r,o)=>{e.removeEventListener(n,r,o),t.current.delete(r)},[]);return(0,e.useEffect)(()=>()=>{n.forEach((e,t)=>{o(e.el,e.type,t,e.options)})},[o,n]),{add:r,remove:o}}(),w=g?f:f||0,S=r&&!o,k=(0,e.useCallback)(e=>{if(r)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==u||u(e)},[r,u]),C=(0,e.useCallback)(e=>{y&&Br(e)&&(e.preventDefault(),e.stopPropagation(),b(!1),x.remove(document,"keyup",C,!1))},[y,x]),E=(0,e.useCallback)(e=>{if(null==c||c(e),r||e.defaultPrevented||e.metaKey)return;if(!Br(e.nativeEvent)||g)return;const t=i&&"Enter"===e.key;a&&" "===e.key&&(e.preventDefault(),b(!0)),t&&(e.preventDefault(),e.currentTarget.click()),x.add(document,"keyup",C,!1)},[r,g,c,i,a,x,C]),_=(0,e.useCallback)(e=>{null==d||d(e),r||e.defaultPrevented||e.metaKey||Br(e.nativeEvent)&&!g&&a&&" "===e.key&&(e.preventDefault(),b(!1),e.currentTarget.click())},[a,g,r,d]),P=(0,e.useCallback)(e=>{0===e.button&&(b(!1),x.remove(document,"mouseup",P,!1))},[x]),T=(0,e.useCallback)(e=>{if(0===e.button){if(r)return e.stopPropagation(),void e.preventDefault();g||b(!0),e.currentTarget.focus({preventScroll:!0}),x.add(document,"mouseup",P,!1),null==s||s(e)}},[r,g,s,x,P]),R=(0,e.useCallback)(e=>{0===e.button&&(g||b(!1),null==l||l(e))},[l,g]),A=(0,e.useCallback)(e=>{r?e.preventDefault():null==h||h(e)},[r,h]),O=(0,e.useCallback)(e=>{y&&(e.preventDefault(),b(!1)),null==p||p(e)},[y,p]),F=Dr(n,e=>{e&&"BUTTON"!==e.tagName&&v(!1)});return g?{...m,ref:F,type:"button","aria-disabled":S?void 0:r,disabled:S,onClick:k,onMouseDown:s,onMouseUp:l,onKeyUp:d,onKeyDown:c,onMouseOver:h,onMouseLeave:p}:{...m,ref:F,role:"button","data-active":_t(y),"aria-disabled":r?"true":void 0,tabIndex:S?void 0:w,onClick:k,onMouseDown:T,onMouseUp:R,onKeyUp:_,onKeyDown:E,onMouseOver:A,onMouseLeave:O}}Nr.displayName="Icon";var Vr=Object.defineProperty,Wr=(e,t,n)=>(((e,t,n)=>{t in e?Vr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);function Ur(e){return e.sort((e,t)=>{const n=e.compareDocumentPosition(t);if(n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(n&Node.DOCUMENT_POSITION_DISCONNECTED||n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0})}function Hr(e,t,n){let r=e+1;return n&&r>=t&&(r=0),r}function qr(e,t,n){let r=e-1;return n&&r<0&&(r=t),r}var Qr="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Kr=class{constructor(){Wr(this,"descendants",new Map),Wr(this,"register",e=>{var t;if(null!=e)return"object"==typeof(t=e)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?this.registerNode(e):t=>{this.registerNode(t,e)}}),Wr(this,"unregister",e=>{this.descendants.delete(e);const t=Ur(Array.from(this.descendants.keys()));this.assignIndex(t)}),Wr(this,"destroy",()=>{this.descendants.clear()}),Wr(this,"assignIndex",e=>{this.descendants.forEach(t=>{const n=e.indexOf(t.node);t.index=n,t.node.dataset.index=t.index.toString()})}),Wr(this,"count",()=>this.descendants.size),Wr(this,"enabledCount",()=>this.enabledValues().length),Wr(this,"values",()=>Array.from(this.descendants.values()).sort((e,t)=>e.index-t.index)),Wr(this,"enabledValues",()=>this.values().filter(e=>!e.disabled)),Wr(this,"item",e=>{if(0!==this.count())return this.values()[e]}),Wr(this,"enabledItem",e=>{if(0!==this.enabledCount())return this.enabledValues()[e]}),Wr(this,"first",()=>this.item(0)),Wr(this,"firstEnabled",()=>this.enabledItem(0)),Wr(this,"last",()=>this.item(this.descendants.size-1)),Wr(this,"lastEnabled",()=>{const e=this.enabledValues().length-1;return this.enabledItem(e)}),Wr(this,"indexOf",e=>{var t,n;return e&&null!=(n=null==(t=this.descendants.get(e))?void 0:t.index)?n:-1}),Wr(this,"enabledIndexOf",e=>null==e?-1:this.enabledValues().findIndex(t=>t.node.isSameNode(e))),Wr(this,"next",(e,t=!0)=>{const n=Hr(e,this.count(),t);return this.item(n)}),Wr(this,"nextEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=Hr(this.enabledIndexOf(n.node),this.enabledCount(),t);return this.enabledItem(r)}),Wr(this,"prev",(e,t=!0)=>{const n=qr(e,this.count()-1,t);return this.item(n)}),Wr(this,"prevEnabled",(e,t=!0)=>{const n=this.item(e);if(!n)return;const r=qr(this.enabledIndexOf(n.node),this.enabledCount()-1,t);return this.enabledItem(r)}),Wr(this,"registerNode",(e,t)=>{if(!e||this.descendants.has(e))return;const n=Ur(Array.from(this.descendants.keys()).concat(e));(null==t?void 0:t.disabled)&&(t.disabled=!!t.disabled);const r={node:e,index:-1,...t};this.descendants.set(e,r),this.assignIndex(n)})}};function Gr(t={}){const{name:n,strict:r=!0,hookName:o="useContext",providerName:i="Provider",errorMessage:a,defaultValue:s}=t,l=(0,e.createContext)(s);return l.displayName=n,[l.Provider,function t(){var n;const s=(0,e.useContext)(l);if(!s&&r){const e=new Error(null!=a?a:`${o} returned \`undefined\`. Seems you forgot to wrap component within ${i}`);throw e.name="ContextError",null==(n=Error.captureStackTrace)||n.call(Error,e,t),e}return s},l]}var[Xr,Yr]=Gr({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"});function Zr(t,n=[]){const r=(0,e.useRef)(t);return(0,e.useEffect)(()=>{r.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},n)}var[Jr,eo,to,no]=[Xr,()=>Yr(),()=>function(){const t=(0,e.useRef)(new Kr);return Qr(()=>()=>t.current.destroy()),t.current}(),t=>function(t){const n=Yr(),[r,o]=(0,e.useState)(-1),i=(0,e.useRef)(null);Qr(()=>()=>{i.current&&n.unregister(i.current)},[]),Qr(()=>{if(!i.current)return;const e=Number(i.current.dataset.index);r==e||Number.isNaN(e)||o(e)});const a=t?n.register(t):n.register;return{descendants:n,index:r,enabledIndex:n.enabledIndexOf(i.current),register:Dr(a,i)}}(t)];var[ro,oo]=Gr({name:"TabsContext",errorMessage:"useTabsContext: `context` is undefined. Seems you forgot to wrap all tabs components within <Tabs />"}),[io,ao]=Gr({});function so(e,t){return`${e}--tab-${t}`}function lo(e,t){return`${e}--tabpanel-${t}`}var[uo,co]=Gr({name:"TabsStylesContext",errorMessage:"useTabsStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Tabs />\" "}),fo=K(function(t,n){const r=gr("Tabs",t),{children:o,className:i,...a}=ur(t),{htmlProps:s,descendants:l,...u}=function(t){var n;const{defaultIndex:r,onChange:o,index:i,isManual:a,isLazy:s,lazyBehavior:l="unmount",orientation:u="horizontal",direction:c="ltr",...d}=t,[f,h]=(0,e.useState)(null!=r?r:0),[p,m]=function(t){const{value:n,defaultValue:r,onChange:o,shouldUpdate:i=(e,t)=>e!==t}=t,a=Zr(o),s=Zr(i),[l,u]=(0,e.useState)(r),c=void 0!==n,d=c?n:l,f=Zr(e=>{const t="function"==typeof e?e(d):e;s(d,t)&&(c||u(t),a(t))},[c,a,d,s]);return[d,f]}({defaultValue:null!=r?r:0,value:i,onChange:o});(0,e.useEffect)(()=>{null!=i&&h(i)},[i]);const g=to(),v=(0,e.useId)();return{id:`tabs-${null!=(n=t.id)?n:v}`,selectedIndex:p,focusedIndex:f,setSelectedIndex:m,setFocusedIndex:h,isManual:a,isLazy:s,lazyBehavior:l,orientation:u,descendants:g,direction:c,htmlProps:d}}(a),c=(0,e.useMemo)(()=>u,[u]),{isFitted:d,...f}=s,h={position:"relative",...r.root};return(0,jr.jsx)(Jr,{value:l,children:(0,jr.jsx)(ro,{value:c,children:(0,jr.jsx)(uo,{value:r,children:(0,jr.jsx)(Mr.div,{className:St("chakra-tabs",i),ref:n,...f,__css:h,children:o})})})})});fo.displayName="Tabs";var ho=K(function(t,n){const r=function(t){const{focusedIndex:n,orientation:r,direction:o}=oo(),i=eo(),a=(0,e.useCallback)(e=>{const t=()=>{var e;const t=i.nextEnabled(n);t&&(null==(e=t.node)||e.focus())},a=()=>{var e;const t=i.prevEnabled(n);t&&(null==(e=t.node)||e.focus())},s="horizontal"===r,l="vertical"===r,u=e.key,c="ltr"===o?"ArrowLeft":"ArrowRight",d="ltr"===o?"ArrowRight":"ArrowLeft",f={[c]:()=>s&&a(),[d]:()=>s&&t(),ArrowDown:()=>l&&t(),ArrowUp:()=>l&&a(),Home:()=>{var e;const t=i.firstEnabled();t&&(null==(e=t.node)||e.focus())},End:()=>{var e;const t=i.lastEnabled();t&&(null==(e=t.node)||e.focus())}},h=f[u];h&&(e.preventDefault(),h(e))},[i,n,r,o]);return{...t,role:"tablist","aria-orientation":r,onKeyDown:Tt(t.onKeyDown,a)}}({...t,ref:n}),o={display:"flex",...co().tablist};return(0,jr.jsx)(Mr.div,{...r,className:St("chakra-tabs__tablist",t.className),__css:o})});ho.displayName="TabList";var po=K(function(e,t){const n=co(),r=function(e){const{isDisabled:t=!1,isFocusable:n=!1,...r}=e,{setSelectedIndex:o,isManual:i,id:a,setFocusedIndex:s,selectedIndex:l}=oo(),{index:u,register:c}=no({disabled:t&&!n}),d=u===l;return{...$r({...r,ref:Dr(c,e.ref),isDisabled:t,isFocusable:n,onClick:Tt(e.onClick,()=>{o(u)})}),id:so(a,u),role:"tab",tabIndex:d?0:-1,type:"button","aria-selected":d,"aria-controls":lo(a,u),onFocus:t?void 0:Tt(e.onFocus,()=>{s(u),!i&&(!t||!n)&&o(u)})}}({...e,ref:t}),o={outline:"0",display:"flex",alignItems:"center",justifyContent:"center",...n.tab};return(0,jr.jsx)(Mr.button,{...r,className:St("chakra-tabs__tab",e.className),__css:o})});po.displayName="Tab",n(4146);var mo=pt(function(t,n){var r=ut([t.styles],void 0,e.useContext(mt)),o=e.useRef();return ft(function(){var e=n.key+"-global",t=new n.sheet.constructor({key:e,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy}),i=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return n.sheet.tags.length&&(t.before=n.sheet.tags[0]),null!==a&&(i=!0,a.setAttribute("data-emotion",e),t.hydrate([a])),o.current=[t,i],function(){t.flush()}},[n]),ft(function(){var e=o.current,t=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Er(n,r.next,!0),t.tags.length){var i=t.tags[t.tags.length-1].nextElementSibling;t.before=i,t.flush()}n.insert("",r,t,!1)}},[n,r.name]),null});function go(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ut(t)}var vo=String.raw,yo=vo`
  :root,
  :host {
    --chakra-vh: 100vh;
  }

  @supports (height: -webkit-fill-available) {
    :root,
    :host {
      --chakra-vh: -webkit-fill-available;
    }
  }

  @supports (height: -moz-fill-available) {
    :root,
    :host {
      --chakra-vh: -moz-fill-available;
    }
  }

  @supports (height: 100dvh) {
    :root,
    :host {
      --chakra-vh: 100dvh;
    }
  }
`,bo=()=>(0,jr.jsx)(mo,{styles:yo}),xo=({scope:e=""})=>(0,jr.jsx)(mo,{styles:vo`
      html {
        line-height: 1.5;
        -webkit-text-size-adjust: 100%;
        font-family: system-ui, sans-serif;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
        -moz-osx-font-smoothing: grayscale;
        touch-action: manipulation;
      }

      body {
        position: relative;
        min-height: 100%;
        margin: 0;
        font-feature-settings: "kern";
      }

      ${e} :where(*, *::before, *::after) {
        border-width: 0;
        border-style: solid;
        box-sizing: border-box;
        word-wrap: break-word;
      }

      main {
        display: block;
      }

      ${e} hr {
        border-top-width: 1px;
        box-sizing: content-box;
        height: 0;
        overflow: visible;
      }

      ${e} :where(pre, code, kbd,samp) {
        font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
        font-size: 1em;
      }

      ${e} a {
        background-color: transparent;
        color: inherit;
        text-decoration: inherit;
      }

      ${e} abbr[title] {
        border-bottom: none;
        text-decoration: underline;
        -webkit-text-decoration: underline dotted;
        text-decoration: underline dotted;
      }

      ${e} :where(b, strong) {
        font-weight: bold;
      }

      ${e} small {
        font-size: 80%;
      }

      ${e} :where(sub,sup) {
        font-size: 75%;
        line-height: 0;
        position: relative;
        vertical-align: baseline;
      }

      ${e} sub {
        bottom: -0.25em;
      }

      ${e} sup {
        top: -0.5em;
      }

      ${e} img {
        border-style: none;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        font-family: inherit;
        font-size: 100%;
        line-height: 1.15;
        margin: 0;
      }

      ${e} :where(button, input) {
        overflow: visible;
      }

      ${e} :where(button, select) {
        text-transform: none;
      }

      ${e} :where(
          button::-moz-focus-inner,
          [type="button"]::-moz-focus-inner,
          [type="reset"]::-moz-focus-inner,
          [type="submit"]::-moz-focus-inner
        ) {
        border-style: none;
        padding: 0;
      }

      ${e} fieldset {
        padding: 0.35em 0.75em 0.625em;
      }

      ${e} legend {
        box-sizing: border-box;
        color: inherit;
        display: table;
        max-width: 100%;
        padding: 0;
        white-space: normal;
      }

      ${e} progress {
        vertical-align: baseline;
      }

      ${e} textarea {
        overflow: auto;
      }

      ${e} :where([type="checkbox"], [type="radio"]) {
        box-sizing: border-box;
        padding: 0;
      }

      ${e} input[type="number"]::-webkit-inner-spin-button,
      ${e} input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none !important;
      }

      ${e} input[type="number"] {
        -moz-appearance: textfield;
      }

      ${e} input[type="search"] {
        -webkit-appearance: textfield;
        outline-offset: -2px;
      }

      ${e} input[type="search"]::-webkit-search-decoration {
        -webkit-appearance: none !important;
      }

      ${e} ::-webkit-file-upload-button {
        -webkit-appearance: button;
        font: inherit;
      }

      ${e} details {
        display: block;
      }

      ${e} summary {
        display: list-item;
      }

      template {
        display: none;
      }

      [hidden] {
        display: none !important;
      }

      ${e} :where(
          blockquote,
          dl,
          dd,
          h1,
          h2,
          h3,
          h4,
          h5,
          h6,
          hr,
          figure,
          p,
          pre
        ) {
        margin: 0;
      }

      ${e} button {
        background: transparent;
        padding: 0;
      }

      ${e} fieldset {
        margin: 0;
        padding: 0;
      }

      ${e} :where(ol, ul) {
        margin: 0;
        padding: 0;
      }

      ${e} textarea {
        resize: vertical;
      }

      ${e} :where(button, [role="button"]) {
        cursor: pointer;
      }

      ${e} button::-moz-focus-inner {
        border: 0 !important;
      }

      ${e} table {
        border-collapse: collapse;
      }

      ${e} :where(h1, h2, h3, h4, h5, h6) {
        font-size: inherit;
        font-weight: inherit;
      }

      ${e} :where(button, input, optgroup, select, textarea) {
        padding: 0;
        line-height: inherit;
        color: inherit;
      }

      ${e} :where(img, svg, video, canvas, audio, iframe, embed, object) {
        display: block;
      }

      ${e} :where(img, video) {
        max-width: 100%;
        height: auto;
      }

      [data-js-focus-visible]
        :focus:not([data-focus-visible-added]):not(
          [data-focus-visible-disabled]
        ) {
        outline: none;
        box-shadow: none;
      }

      ${e} select::-ms-expand {
        display: none;
      }

      ${yo}
    `}),[wo,So]=Gr({strict:!1,name:"PortalManagerContext"});function ko(e){const{children:t,zIndex:n}=e;return(0,jr.jsx)(wo,{value:{zIndex:n},children:t})}function Co(t={}){const{strict:n=!0,errorMessage:r="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:o}=t,i=(0,e.createContext)(void 0);return i.displayName=o,[i.Provider,function t(){var o;const a=(0,e.useContext)(i);if(!a&&n){const e=new Error(r);throw e.name="ContextError",null==(o=Error.captureStackTrace)||o.call(Error,e,t),e}return a},i]}function Eo(t){const{cssVarsRoot:n,theme:r,children:o}=t,i=(0,e.useMemo)(()=>function(e){var t;const n=function(e){const{__cssMap:t,__cssVars:n,__breakpoints:r,...o}=e;return o}(e),r=function(e){return function(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}(e,Yn)}(n),o=function(e){return e.semanticTokens}(n),i=function({tokens:e,semanticTokens:t}){const n={};return Xn(e,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!1,value:e})}),Xn(t,(e,t)=>{null!=e&&(n[t.join(".")]={isSemantic:!0,value:e})},{stop:e=>Object.keys(e).every(Zn)}),n}({tokens:r,semanticTokens:o}),a=null==(t=n.config)?void 0:t.cssVarPrefix,{cssMap:s,cssVars:l}=function(e,t){let n={};const r={};for(const[o,i]of Object.entries(e)){const{isSemantic:a,value:s}=i,{variable:l,reference:u}=Gn(o,null==t?void 0:t.cssVarPrefix);if(!a){if(o.startsWith("space")){const e=o.split("."),[t,...n]=e,i=`${t}.-${n.join(".")}`,a=Cn.negate(s),c=Cn.negate(u);r[i]={value:a,var:l,varRef:c}}n[l]=s,r[o]={value:s,var:l,varRef:u};continue}const c=n=>{const r=[String(o).split(".")[0],n].join(".");if(!e[r])return n;const{reference:i}=Gn(r,null==t?void 0:t.cssVarPrefix);return i},d=kt(s)?s:{default:s};n=Rt(n,Object.entries(d).reduce((e,[t,n])=>{var r,o;if(!n)return e;const i=c(`${n}`);return"default"===t?(e[l]=i,e):(e[null!=(o=null==(r=Qn)?void 0:r[t])?o:t]={[l]:i},e)},{})),r[o]={value:u,var:l,varRef:u}}return{cssVars:n,cssMap:r}}(i,{cssVarPrefix:a});return Object.assign(n,{__cssVars:{"--chakra-ring-inset":"var(--chakra-empty,/*!*/ /*!*/)","--chakra-ring-offset-width":"0px","--chakra-ring-offset-color":"#fff","--chakra-ring-color":"rgba(66, 153, 225, 0.6)","--chakra-ring-offset-shadow":"0 0 #0000","--chakra-ring-shadow":"0 0 #0000","--chakra-space-x-reverse":"0","--chakra-space-y-reverse":"0",...l},__cssMap:s,__breakpoints:jn(n.breakpoints)}),n}(r),[r]);return(0,jr.jsxs)(vt,{theme:i,children:[(0,jr.jsx)(_o,{root:n}),o]})}function _o({root:e=":host, :root"}){const t=[e,"[data-theme]"].join(",");return(0,jr.jsx)(mo,{styles:e=>({[t]:e.__cssVars})})}ko.displayName="PortalManager";var[Po,To]=Co({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `<StylesProvider />` "});function Ro(){const{colorMode:e}=xt();return(0,jr.jsx)(mo,{styles:t=>{const n=xr(cr(t,"styles.global"),{theme:t,colorMode:e});if(n)return ar(n)(t)}})}var Ao,Oo="chakra-ui-light",Fo="chakra-ui-dark",zo="chakra-ui-color-mode",Mo=(Ao=zo,{ssr:!1,type:"localStorage",get(e){if(!(null==globalThis?void 0:globalThis.document))return e;let t;try{t=localStorage.getItem(Ao)||e}catch(e){}return t||e},set(e){try{localStorage.setItem(Ao,e)}catch(e){}}});var jo=Boolean(null==globalThis?void 0:globalThis.document)?e.useLayoutEffect:e.useEffect,Io=()=>{};function No(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function Do(t){const{value:n,children:r,options:{useSystemColorMode:o,initialColorMode:i,disableTransitionOnChange:a}={},colorModeManager:s=Mo}=t,l="dark"===i?"dark":"light",[u,c]=(0,e.useState)(()=>No(s,l)),[d,f]=(0,e.useState)(()=>No(s)),{getSystemTheme:h,setClassName:p,setDataset:m,addListener:g}=(0,e.useMemo)(()=>function(e={}){const{preventTransition:t=!0}=e,n={setDataset:e=>{const r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName(e){document.body.classList.add(e?Fo:Oo),document.body.classList.remove(e?Oo:Fo)},query:()=>window.matchMedia("(prefers-color-scheme: dark)"),getSystemTheme(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener(e){const t=n.query(),r=t=>{e(t.matches?"dark":"light")};return"function"==typeof t.addListener?t.addListener(r):t.addEventListener("change",r),()=>{"function"==typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition(){const e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),()=>{window.getComputedStyle(document.body),requestAnimationFrame(()=>{requestAnimationFrame(()=>{document.head.removeChild(e)})})}}};return n}({preventTransition:a}),[a]),v="system"!==i||u?u:d,y=(0,e.useCallback)(e=>{const t="system"===e?h():e;c(t),p("dark"===t),m(t),s.set(t)},[s,h,p,m]);jo(()=>{"system"===i&&f(h())},[]),(0,e.useEffect)(()=>{const e=s.get();y(e||("system"!==i?l:"system"))},[s,l,i,y]);const b=(0,e.useCallback)(()=>{y("dark"===v?"light":"dark")},[v,y]);(0,e.useEffect)(()=>{if(o)return g(y)},[o,g,y]);const x=(0,e.useMemo)(()=>({colorMode:null!=n?n:v,toggleColorMode:n?Io:b,setColorMode:n?Io:y,forced:void 0!==n}),[v,b,y,n]);return(0,jr.jsx)(bt.Provider,{value:x,children:r})}Do.displayName="ColorModeProvider";var Lo=(0,e.createContext)({getDocument:()=>document,getWindow:()=>window});function Bo(t){const{children:n,environment:r,disabled:o}=t,i=(0,e.useRef)(null),a=(0,e.useMemo)(()=>r||{getDocument:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument)?t:document},getWindow:()=>{var e,t;return null!=(t=null==(e=i.current)?void 0:e.ownerDocument.defaultView)?t:window}},[r]),s=!o||!r;return(0,jr.jsxs)(Lo.Provider,{value:a,children:[n,s&&(0,jr.jsx)("span",{id:"__chakra_env",hidden:!0,ref:i})]})}Lo.displayName="EnvironmentContext",Bo.displayName="EnvironmentProvider";var $o=e=>{const{children:t,colorModeManager:n,portalZIndex:r,resetScope:o,resetCSS:i=!0,theme:a={},environment:s,cssVarsRoot:l,disableEnvironment:u,disableGlobalStyle:c}=e,d=(0,jr.jsx)(Bo,{environment:s,disabled:u,children:t});return(0,jr.jsx)(Eo,{theme:a,cssVarsRoot:l,children:(0,jr.jsxs)(Do,{colorModeManager:n,options:a.config,children:[i?(0,jr.jsx)(xo,{scope:o}):(0,jr.jsx)(bo,{}),!c&&(0,jr.jsx)(Ro,{}),r?(0,jr.jsx)(ko,{zIndex:r,children:d}):d]})})},Vo={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},Wo={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},Uo={...Wo,max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch",container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}},Ho={breakpoints:{base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},zIndices:{hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},radii:{none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},blur:{none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},colors:{transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},...Vo,sizes:Uo,shadows:{xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},space:Wo,borders:{none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},transition:{property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}}},{defineMultiStyleConfig:qo,definePartsStyle:Qo}=sr(["stepper","step","title","description","indicator","separator","icon","number"]),Ko=Pn("stepper-indicator-size"),Go=Pn("stepper-icon-size"),Xo=Pn("stepper-title-font-size"),Yo=Pn("stepper-description-font-size"),Zo=Pn("stepper-accent-color"),Jo=qo({baseStyle:Qo(({colorScheme:e})=>({stepper:{display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"},[Zo.variable]:`colors.${e}.500`,_dark:{[Zo.variable]:`colors.${e}.200`}},title:{fontSize:Xo.reference,fontWeight:"medium"},description:{fontSize:Yo.reference,color:"chakra-subtle-text"},number:{fontSize:Xo.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:Go.reference,height:Go.reference},indicator:{flexShrink:0,borderRadius:"full",width:Ko.reference,height:Ko.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:Zo.reference},"&[data-status=complete]":{bg:Zo.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:Zo.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:`calc(100% - ${Ko.reference} - 8px)`,top:`calc(${Ko.reference} + 4px)`,insetStart:`calc(${Ko.reference} / 2 - 1px)`}}})),sizes:{xs:Qo({stepper:{[Ko.variable]:"sizes.4",[Go.variable]:"sizes.3",[Xo.variable]:"fontSizes.xs",[Yo.variable]:"fontSizes.xs"}}),sm:Qo({stepper:{[Ko.variable]:"sizes.6",[Go.variable]:"sizes.4",[Xo.variable]:"fontSizes.sm",[Yo.variable]:"fontSizes.xs"}}),md:Qo({stepper:{[Ko.variable]:"sizes.8",[Go.variable]:"sizes.5",[Xo.variable]:"fontSizes.md",[Yo.variable]:"fontSizes.sm"}}),lg:Qo({stepper:{[Ko.variable]:"sizes.10",[Go.variable]:"sizes.6",[Xo.variable]:"fontSizes.lg",[Yo.variable]:"fontSizes.md"}})},defaultProps:{size:"md",colorScheme:"blue"}});function ei(e,t={}){let n=!1;function r(t){const n=`chakra-${(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__")}`;return{className:n,selector:`.${n}`,toString:()=>t}}return{parts:function(...o){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(const e of o)t[e]=r(e);return ei(e,t)},toPart:r,extend:function(...n){for(const e of n)e in t||(t[e]=r(e));return ei(e,t)},selectors:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.selector]));return e},classnames:function(){const e=Object.fromEntries(Object.entries(t).map(([e,t])=>[e,t.className]));return e},get keys(){return Object.keys(t)},__type:{}}}var ti=ei("accordion").parts("root","container","button","panel").extend("icon"),ni=ei("alert").parts("title","description","container").extend("icon","spinner"),ri=ei("avatar").parts("label","badge","container").extend("excessLabel","group"),oi=ei("breadcrumb").parts("link","item","container").extend("separator"),ii=(ei("button").parts(),ei("checkbox").parts("control","icon","container").extend("label")),ai=(ei("progress").parts("track","filledTrack").extend("label"),ei("drawer").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer")),si=ei("editable").parts("preview","input","textarea"),li=ei("form").parts("container","requiredIndicator","helperText"),ui=ei("formError").parts("text","icon"),ci=ei("input").parts("addon","field","element","group"),di=ei("list").parts("container","item","icon"),fi=ei("menu").parts("button","list","item").extend("groupTitle","icon","command","divider"),hi=ei("modal").parts("overlay","dialogContainer","dialog").extend("header","closeButton","body","footer"),pi=ei("numberinput").parts("root","field","stepperGroup","stepper"),mi=(ei("pininput").parts("field"),ei("popover").parts("content","header","body","footer").extend("popper","arrow","closeButton")),gi=ei("progress").parts("label","filledTrack","track"),vi=ei("radio").parts("container","control","label"),yi=ei("select").parts("field","icon"),bi=ei("slider").parts("container","track","thumb","filledTrack","mark"),xi=ei("stat").parts("container","label","helpText","number","icon"),wi=ei("switch").parts("container","track","thumb","label"),Si=ei("table").parts("table","thead","tbody","tr","th","td","tfoot","caption"),ki=ei("tabs").parts("root","tab","tablist","tabpanel","tabpanels","indicator"),Ci=ei("tag").parts("container","label","closeButton"),Ei=ei("card").parts("container","header","body","footer");function _i(e){const t=function(e,t="-"){return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function Pi(e,t){return`var(${_i(e)}${t?`, ${t}`:""})`}function Ti(e,t){const n=function(e,t=""){return`--${function(e,t=""){return[t,_i(e)].filter(Boolean).join("-")}(e,t)}`}(e,null==t?void 0:t.prefix);return{variable:n,reference:Pi(n,(r=null==t?void 0:t.fallback,"string"==typeof r?r:null==r?void 0:r.reference))};var r}function Ri(e){return kt(e)&&e.reference?e.reference:String(e)}ei("stepper").parts("stepper","step","title","description","indicator","separator","icon","number");var Ai=(e,...t)=>t.map(Ri).join(` ${e} `).replace(/calc/g,""),Oi=(...e)=>`calc(${Ai("+",...e)})`,Fi=(...e)=>`calc(${Ai("-",...e)})`,zi=(...e)=>`calc(${Ai("*",...e)})`,Mi=(...e)=>`calc(${Ai("/",...e)})`,ji=e=>{const t=Ri(e);return null==t||Number.isNaN(parseFloat(t))?zi(t,-1):String(t).startsWith("-")?String(t).slice(1):`-${t}`},Ii=Object.assign(e=>({add:(...t)=>Ii(Oi(e,...t)),subtract:(...t)=>Ii(Fi(e,...t)),multiply:(...t)=>Ii(zi(e,...t)),divide:(...t)=>Ii(Mi(e,...t)),negate:()=>Ii(ji(e)),toString:()=>e.toString()}),{add:Oi,subtract:Fi,multiply:zi,divide:Mi,negate:ji}),{defineMultiStyleConfig:Ni,definePartsStyle:Di}=sr(wi.keys),Li=Ti("switch-track-width"),Bi=Ti("switch-track-height"),$i=Ti("switch-track-diff"),Vi=Ii.subtract(Li,Bi),Wi=Ti("switch-thumb-x"),Ui=Ti("switch-bg"),Hi=e=>{const{colorScheme:t}=e;return{borderRadius:"full",p:"0.5",width:[Li.reference],height:[Bi.reference],transitionProperty:"common",transitionDuration:"fast",[Ui.variable]:"colors.gray.300",_dark:{[Ui.variable]:"colors.whiteAlpha.400"},_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed"},_checked:{[Ui.variable]:`colors.${t}.500`,_dark:{[Ui.variable]:`colors.${t}.200`}},bg:Ui.reference}},qi={bg:"white",transitionProperty:"transform",transitionDuration:"normal",borderRadius:"inherit",width:[Bi.reference],height:[Bi.reference],_checked:{transform:`translateX(${Wi.reference})`}},Qi=Ni({baseStyle:Di(e=>({container:{[$i.variable]:Vi,[Wi.variable]:$i.reference,_rtl:{[Wi.variable]:Ii($i).negate().toString()}},track:Hi(e),thumb:qi})),sizes:{sm:Di({container:{[Li.variable]:"1.375rem",[Bi.variable]:"sizes.3"}}),md:Di({container:{[Li.variable]:"1.875rem",[Bi.variable]:"sizes.4"}}),lg:Di({container:{[Li.variable]:"2.875rem",[Bi.variable]:"sizes.6"}})},defaultProps:{size:"md",colorScheme:"blue"}});function Ki(e,t){return n=>"dark"===n.colorMode?t:e}function Gi(e){const{orientation:t,vertical:n,horizontal:r}=e;return t?"vertical"===t?n:r:{}}var{defineMultiStyleConfig:Xi,definePartsStyle:Yi}=sr(Si.keys),Zi=Yi({table:{fontVariantNumeric:"lining-nums tabular-nums",borderCollapse:"collapse",width:"full"},th:{fontFamily:"heading",fontWeight:"bold",textTransform:"uppercase",letterSpacing:"wider",textAlign:"start"},td:{textAlign:"start"},caption:{mt:4,fontFamily:"heading",textAlign:"center",fontWeight:"medium"}}),Ji={"&[data-is-numeric=true]":{textAlign:"end"}},ea=Xi({baseStyle:Zi,variants:{simple:Yi(e=>{const{colorScheme:t}=e;return{th:{color:Ki("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ki(`${t}.100`,`${t}.700`)(e),...Ji},td:{borderBottom:"1px",borderColor:Ki(`${t}.100`,`${t}.700`)(e),...Ji},caption:{color:Ki("gray.600","gray.100")(e)},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),striped:Yi(e=>{const{colorScheme:t}=e;return{th:{color:Ki("gray.600","gray.400")(e),borderBottom:"1px",borderColor:Ki(`${t}.100`,`${t}.700`)(e),...Ji},td:{borderBottom:"1px",borderColor:Ki(`${t}.100`,`${t}.700`)(e),...Ji},caption:{color:Ki("gray.600","gray.100")(e)},tbody:{tr:{"&:nth-of-type(odd)":{"th, td":{borderBottomWidth:"1px",borderColor:Ki(`${t}.100`,`${t}.700`)(e)},td:{background:Ki(`${t}.100`,`${t}.700`)(e)}}}},tfoot:{tr:{"&:last-of-type":{th:{borderBottomWidth:0}}}}}}),unstyled:{}},sizes:{sm:Yi({th:{px:"4",py:"1",lineHeight:"4",fontSize:"xs"},td:{px:"4",py:"2",fontSize:"sm",lineHeight:"4"},caption:{px:"4",py:"2",fontSize:"xs"}}),md:Yi({th:{px:"6",py:"3",lineHeight:"4",fontSize:"xs"},td:{px:"6",py:"4",lineHeight:"5"},caption:{px:"6",py:"2",fontSize:"sm"}}),lg:Yi({th:{px:"8",py:"4",lineHeight:"5",fontSize:"sm"},td:{px:"8",py:"5",lineHeight:"6"},caption:{px:"6",py:"2",fontSize:"md"}})},defaultProps:{variant:"simple",size:"md",colorScheme:"gray"}});function ta(e,t,n){return Math.min(Math.max(e,n),t)}class na extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ra=na;function oa(e){if("string"!=typeof e)throw new ra(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=fa.test(e)?function(e){const t=e.toLowerCase().trim(),n=aa[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ra(e);return`#${n}`}(e):e;const n=la.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map(e=>parseInt(sa(e,2),16)),parseInt(sa(e[3]||"f",2),16)/255]}const r=ua.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,16)),parseInt(e[3]||"ff",16)/255]}const o=ca.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map(e=>parseInt(e,10)),parseFloat(e[3]||"1")]}const i=da.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(ta(0,100,n)!==n)throw new ra(e);if(ta(0,100,r)!==r)throw new ra(e);return[...pa(t,n,r),Number.isNaN(o)?1:o]}throw new ra(e)}const ia=e=>parseInt(e.replace(/_/g,""),36),aa="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((e,t)=>{const n=ia(t.substring(0,3)),r=ia(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e},{}),sa=(e,t)=>Array.from(Array(t)).map(()=>e).join(""),la=new RegExp(`^#${sa("([a-f0-9])",3)}([a-f0-9])?$`,"i"),ua=new RegExp(`^#${sa("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ca=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${sa(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),da=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,fa=/^[a-z]+$/i,ha=e=>Math.round(255*e),pa=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(ha);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let s=0,l=0,u=0;o>=0&&o<1?(s=i,l=a):o>=1&&o<2?(s=a,l=i):o>=2&&o<3?(l=i,u=a):o>=3&&o<4?(l=a,u=i):o>=4&&o<5?(s=a,u=i):o>=5&&o<6&&(s=i,u=a);const c=r-i/2;return[s+c,l+c,u+c].map(ha)};function ma(e,t){const[n,r,o,i]=oa(e);return function(e,t,n,r){return`rgba(${ta(0,255,e).toFixed()}, ${ta(0,255,t).toFixed()}, ${ta(0,255,n).toFixed()}, ${parseFloat(ta(0,1,r).toFixed(3))})`}(n,r,o,i-t)}var ga=(e,t,n)=>{const r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r<t.length;r++)e=e?e[t[r]]:o;return e===o?n:e}(e,`colors.${t}`,t);try{return function(e){const[t,n,r,o]=oa(e);let i=e=>{const t=ta(0,255,e).toString(16);return 1===t.length?`0${t}`:t};i(t),i(n),i(r),o<1&&i(Math.round(255*o))}(r),r}catch{return null!=n?n:"#000000"}},va=(e,t)=>n=>ma(ga(n,e),1-t);function ya(e="1rem",t="rgba(255, 255, 255, 0.15)"){return{backgroundImage:`linear-gradient(\n    45deg,\n    ${t} 25%,\n    transparent 25%,\n    transparent 50%,\n    ${t} 50%,\n    ${t} 75%,\n    transparent 75%,\n    transparent\n  )`,backgroundSize:`${e} ${e}`}}var ba=Pn("tabs-color"),xa=Pn("tabs-bg"),wa=Pn("tabs-border-color"),{defineMultiStyleConfig:Sa,definePartsStyle:ka}=sr(ki.keys),Ca=e=>{const{orientation:t}=e;return{display:"vertical"===t?"flex":"block"}},Ea=e=>{const{isFitted:t}=e;return{flex:t?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},_a=e=>{const{align:t="start",orientation:n}=e;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[t],flexDirection:"vertical"===n?"column":"row"}},Pa={p:4},Ta=ka(e=>({root:Ca(e),tab:Ea(e),tablist:_a(e),tabpanel:Pa})),Ra={sm:ka({tab:{py:1,px:4,fontSize:"sm"}}),md:ka({tab:{fontSize:"md",py:2,px:4}}),lg:ka({tab:{fontSize:"lg",py:3,px:4}})},Aa=ka(e=>{const{colorScheme:t,orientation:n}=e,r="vertical"===n,o=r?"borderStart":"borderBottom",i=r?"marginStart":"marginBottom";return{tablist:{[o]:"2px solid",borderColor:"inherit"},tab:{[o]:"2px solid",borderColor:"transparent",[i]:"-2px",_selected:{[ba.variable]:`colors.${t}.600`,_dark:{[ba.variable]:`colors.${t}.300`},borderColor:"currentColor"},_active:{[xa.variable]:"colors.gray.200",_dark:{[xa.variable]:"colors.whiteAlpha.300"}},_disabled:{_active:{bg:"none"}},color:ba.reference,bg:xa.reference}}}),Oa=ka(e=>{const{colorScheme:t}=e;return{tab:{borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px",[wa.variable]:"transparent",_selected:{[ba.variable]:`colors.${t}.600`,[wa.variable]:"colors.white",_dark:{[ba.variable]:`colors.${t}.300`,[wa.variable]:"colors.gray.800"},borderColor:"inherit",borderBottomColor:wa.reference},color:ba.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),Fa=ka(e=>{const{colorScheme:t}=e;return{tab:{border:"1px solid",borderColor:"inherit",[xa.variable]:"colors.gray.50",_dark:{[xa.variable]:"colors.whiteAlpha.50"},mb:"-1px",_notLast:{marginEnd:"-1px"},_selected:{[xa.variable]:"colors.white",[ba.variable]:`colors.${t}.600`,_dark:{[xa.variable]:"colors.gray.800",[ba.variable]:`colors.${t}.300`},borderColor:"inherit",borderTopColor:"currentColor",borderBottomColor:"transparent"},color:ba.reference,bg:xa.reference},tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}}),za=ka(e=>{const{colorScheme:t,theme:n}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:ga(n,`${t}.700`),bg:ga(n,`${t}.100`)}}}}),Ma=Sa({baseStyle:Ta,sizes:Ra,variants:{line:Aa,enclosed:Oa,"enclosed-colored":Fa,"soft-rounded":za,"solid-rounded":ka(e=>{const{colorScheme:t}=e;return{tab:{borderRadius:"full",fontWeight:"semibold",[ba.variable]:"colors.gray.600",_dark:{[ba.variable]:"inherit"},_selected:{[ba.variable]:"colors.white",[xa.variable]:`colors.${t}.600`,_dark:{[ba.variable]:"colors.gray.800",[xa.variable]:`colors.${t}.300`}},color:ba.reference,bg:xa.reference}}}),unstyled:ka({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),ja=function(e){const t={};for(const n of["bg","color","shadow"]){if(Array.isArray(n)){const[r,o]=n;t[r]=Pn(`${e}-${r}`,o);continue}t[n]=Pn(`${e}-${n}`)}return t}("badge"),Ia={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:ja.bg.reference,color:ja.color.reference,boxShadow:ja.shadow.reference},variants:{solid:e=>{const{colorScheme:t,theme:n}=e,r=va(`${t}.500`,.6)(n);return{[ja.bg.variable]:`colors.${t}.500`,[ja.color.variable]:"colors.white",_dark:{[ja.bg.variable]:r,[ja.color.variable]:"colors.whiteAlpha.800"}}},subtle:e=>{const{colorScheme:t,theme:n}=e,r=va(`${t}.200`,.16)(n);return{[ja.bg.variable]:`colors.${t}.100`,[ja.color.variable]:`colors.${t}.800`,_dark:{[ja.bg.variable]:r,[ja.color.variable]:`colors.${t}.200`}}},outline:e=>{const{colorScheme:t,theme:n}=e,r=va(`${t}.200`,.8)(n);return{[ja.color.variable]:`colors.${t}.500`,_dark:{[ja.color.variable]:r},[ja.shadow.variable]:`inset 0 0 0px 1px ${ja.color.reference}`}}},defaultProps:{variant:"subtle",colorScheme:"gray"}},{defineMultiStyleConfig:Na,definePartsStyle:Da}=sr(Ci.keys),La=Pn("tag-bg"),Ba=Pn("tag-color"),$a=Pn("tag-shadow"),Va=Pn("tag-min-height"),Wa=Pn("tag-min-width"),Ua=Pn("tag-font-size"),Ha=Pn("tag-padding-inline"),qa=Da({container:{fontWeight:"medium",lineHeight:1.2,outline:0,[Ba.variable]:ja.color.reference,[La.variable]:ja.bg.reference,[$a.variable]:ja.shadow.reference,color:Ba.reference,bg:La.reference,boxShadow:$a.reference,borderRadius:"md",minH:Va.reference,minW:Wa.reference,fontSize:Ua.reference,px:Ha.reference,_focusVisible:{[$a.variable]:"shadows.outline"}},label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),Qa={sm:Da({container:{[Va.variable]:"sizes.5",[Wa.variable]:"sizes.5",[Ua.variable]:"fontSizes.xs",[Ha.variable]:"space.2"},closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Da({container:{[Va.variable]:"sizes.6",[Wa.variable]:"sizes.6",[Ua.variable]:"fontSizes.sm",[Ha.variable]:"space.2"}}),lg:Da({container:{[Va.variable]:"sizes.8",[Wa.variable]:"sizes.8",[Ua.variable]:"fontSizes.md",[Ha.variable]:"space.3"}})},Ka={subtle:Da(e=>{var t;return{container:null==(t=Ia.variants)?void 0:t.subtle(e)}}),solid:Da(e=>{var t;return{container:null==(t=Ia.variants)?void 0:t.solid(e)}}),outline:Da(e=>{var t;return{container:null==(t=Ia.variants)?void 0:t.outline(e)}})},Ga=Na({variants:Ka,baseStyle:qa,sizes:Qa,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),{definePartsStyle:Xa,defineMultiStyleConfig:Ya}=sr(ci.keys),Za=Pn("input-height"),Ja=Pn("input-font-size"),es=Pn("input-padding"),ts=Pn("input-border-radius"),ns=Xa({addon:{height:Za.reference,fontSize:Ja.reference,px:es.reference,borderRadius:ts.reference},field:{width:"100%",height:Za.reference,fontSize:Ja.reference,px:es.reference,borderRadius:ts.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),rs={lg:{[Ja.variable]:"fontSizes.lg",[es.variable]:"space.4",[ts.variable]:"radii.md",[Za.variable]:"sizes.12"},md:{[Ja.variable]:"fontSizes.md",[es.variable]:"space.4",[ts.variable]:"radii.md",[Za.variable]:"sizes.10"},sm:{[Ja.variable]:"fontSizes.sm",[es.variable]:"space.3",[ts.variable]:"radii.sm",[Za.variable]:"sizes.8"},xs:{[Ja.variable]:"fontSizes.xs",[es.variable]:"space.2",[ts.variable]:"radii.sm",[Za.variable]:"sizes.6"}},os={lg:Xa({field:rs.lg,group:rs.lg}),md:Xa({field:rs.md,group:rs.md}),sm:Xa({field:rs.sm,group:rs.sm}),xs:Xa({field:rs.xs,group:rs.xs})};function is(e){const{focusBorderColor:t,errorBorderColor:n}=e;return{focusBorderColor:t||Ki("blue.500","blue.300")(e),errorBorderColor:n||Ki("red.500","red.300")(e)}}var as,ss,ls,us,cs,ds,fs,hs,ps,ms,gs,vs=Xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=is(e);return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:Ki("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ga(t,r),boxShadow:`0 0 0 1px ${ga(t,r)}`},_focusVisible:{zIndex:1,borderColor:ga(t,n),boxShadow:`0 0 0 1px ${ga(t,n)}`}},addon:{border:"1px solid",borderColor:Ki("inherit","whiteAlpha.50")(e),bg:Ki("gray.100","whiteAlpha.300")(e)}}}),ys=Xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=is(e);return{field:{border:"2px solid",borderColor:"transparent",bg:Ki("gray.100","whiteAlpha.50")(e),_hover:{bg:Ki("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ga(t,r)},_focusVisible:{bg:"transparent",borderColor:ga(t,n)}},addon:{border:"2px solid",borderColor:"transparent",bg:Ki("gray.100","whiteAlpha.50")(e)}}}),bs=Xa(e=>{const{theme:t}=e,{focusBorderColor:n,errorBorderColor:r}=is(e);return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:ga(t,r),boxShadow:`0px 1px 0px 0px ${ga(t,r)}`},_focusVisible:{borderColor:ga(t,n),boxShadow:`0px 1px 0px 0px ${ga(t,n)}`}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}}),xs=Ya({baseStyle:ns,sizes:os,variants:{outline:vs,filled:ys,flushed:bs,unstyled:Xa({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),ws={...null==(as=xs.baseStyle)?void 0:as.field,paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"},Ss={outline:e=>{var t,n;return null!=(n=null==(t=xs.variants)?void 0:t.outline(e).field)?n:{}},flushed:e=>{var t,n;return null!=(n=null==(t=xs.variants)?void 0:t.flushed(e).field)?n:{}},filled:e=>{var t,n;return null!=(n=null==(t=xs.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(ls=null==(ss=xs.variants)?void 0:ss.unstyled.field)?ls:{}},ks={baseStyle:ws,sizes:{xs:null!=(cs=null==(us=xs.sizes)?void 0:us.xs.field)?cs:{},sm:null!=(fs=null==(ds=xs.sizes)?void 0:ds.sm.field)?fs:{},md:null!=(ps=null==(hs=xs.sizes)?void 0:hs.md.field)?ps:{},lg:null!=(gs=null==(ms=xs.sizes)?void 0:ms.lg.field)?gs:{}},variants:Ss,defaultProps:{size:"md",variant:"outline"}},Cs=Ti("tooltip-bg"),Es=Ti("tooltip-fg"),_s=Ti("popper-arrow-bg"),Ps={baseStyle:{bg:Cs.reference,color:Es.reference,[Cs.variable]:"colors.gray.700",[Es.variable]:"colors.whiteAlpha.900",_dark:{[Cs.variable]:"colors.gray.300",[Es.variable]:"colors.gray.900"},[_s.variable]:Cs.reference,px:"2",py:"0.5",borderRadius:"sm",fontWeight:"medium",fontSize:"sm",boxShadow:"md",maxW:"xs",zIndex:"tooltip"}},{defineMultiStyleConfig:Ts,definePartsStyle:Rs}=sr(gi.keys),As=e=>{const{colorScheme:t,theme:n,isIndeterminate:r,hasStripe:o}=e,i=Ki(ya(),ya("1rem","rgba(0,0,0,0.1)"))(e),a=Ki(`${t}.500`,`${t}.200`)(e),s=`linear-gradient(\n    to right,\n    transparent 0%,\n    ${ga(n,a)} 50%,\n    transparent 100%\n  )`;return{...!r&&o&&i,...r?{bgImage:s}:{bgColor:a}}},Os={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},Fs=e=>({bg:Ki("gray.100","whiteAlpha.300")(e)}),zs=e=>({transitionProperty:"common",transitionDuration:"slow",...As(e)}),Ms=Rs(e=>({label:Os,filledTrack:zs(e),track:Fs(e)})),js=Ts({sizes:{xs:Rs({track:{h:"1"}}),sm:Rs({track:{h:"2"}}),md:Rs({track:{h:"3"}}),lg:Rs({track:{h:"4"}})},baseStyle:Ms,defaultProps:{size:"md",colorScheme:"blue"}});function Is(e,...t){return"function"==typeof e?e(...t):e}var Ns,Ds,Ls,Bs,$s,Vs,Ws,Us,Hs,{definePartsStyle:qs,defineMultiStyleConfig:Qs}=sr(ii.keys),Ks=Pn("checkbox-size"),Gs=e=>{const{colorScheme:t}=e;return{w:Ks.reference,h:Ks.reference,transitionProperty:"box-shadow",transitionDuration:"normal",border:"2px solid",borderRadius:"sm",borderColor:"inherit",color:"white",_checked:{bg:Ki(`${t}.500`,`${t}.200`)(e),borderColor:Ki(`${t}.500`,`${t}.200`)(e),color:Ki("white","gray.900")(e),_hover:{bg:Ki(`${t}.600`,`${t}.300`)(e),borderColor:Ki(`${t}.600`,`${t}.300`)(e)},_disabled:{borderColor:Ki("gray.200","transparent")(e),bg:Ki("gray.200","whiteAlpha.300")(e),color:Ki("gray.500","whiteAlpha.500")(e)}},_indeterminate:{bg:Ki(`${t}.500`,`${t}.200`)(e),borderColor:Ki(`${t}.500`,`${t}.200`)(e),color:Ki("white","gray.900")(e)},_disabled:{bg:Ki("gray.100","whiteAlpha.100")(e),borderColor:Ki("gray.100","transparent")(e)},_focusVisible:{boxShadow:"outline"},_invalid:{borderColor:Ki("red.500","red.300")(e)}}},Xs={_disabled:{cursor:"not-allowed"}},Ys={userSelect:"none",_disabled:{opacity:.4}},Zs={transitionProperty:"transform",transitionDuration:"normal"},Js=Qs({baseStyle:qs(e=>({icon:Zs,container:Xs,control:Is(Gs,e),label:Ys})),sizes:{sm:qs({control:{[Ks.variable]:"sizes.3"},label:{fontSize:"sm"},icon:{fontSize:"3xs"}}),md:qs({control:{[Ks.variable]:"sizes.4"},label:{fontSize:"md"},icon:{fontSize:"2xs"}}),lg:qs({control:{[Ks.variable]:"sizes.5"},label:{fontSize:"lg"},icon:{fontSize:"2xs"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:el,definePartsStyle:tl}=sr(vi.keys),nl=e=>{var t;const n=null==(t=Is(Js.baseStyle,e))?void 0:t.control;return{...n,borderRadius:"full",_checked:{...null==n?void 0:n._checked,_before:{content:'""',display:"inline-block",pos:"relative",w:"50%",h:"50%",borderRadius:"50%",bg:"currentColor"}}}},rl=tl(e=>{var t,n,r,o;return{label:null==(n=(t=Js).baseStyle)?void 0:n.call(t,e).label,container:null==(o=(r=Js).baseStyle)?void 0:o.call(r,e).container,control:nl(e)}}),ol=el({baseStyle:rl,sizes:{md:tl({control:{w:"4",h:"4"},label:{fontSize:"md"}}),lg:tl({control:{w:"5",h:"5"},label:{fontSize:"lg"}}),sm:tl({control:{width:"3",height:"3"},label:{fontSize:"sm"}})},defaultProps:{size:"md",colorScheme:"blue"}}),{defineMultiStyleConfig:il,definePartsStyle:al}=sr(yi.keys),sl=Pn("select-bg"),ll={paddingInlineEnd:"8"},ul=il({baseStyle:al({field:{...null==(Ns=xs.baseStyle)?void 0:Ns.field,appearance:"none",paddingBottom:"1px",lineHeight:"normal",bg:sl.reference,[sl.variable]:"colors.white",_dark:{[sl.variable]:"colors.gray.700"},"> option, > optgroup":{bg:sl.reference}},icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:{...null==(Ds=xs.sizes)?void 0:Ds.lg,field:{...null==(Ls=xs.sizes)?void 0:Ls.lg.field,...ll}},md:{...null==(Bs=xs.sizes)?void 0:Bs.md,field:{...null==($s=xs.sizes)?void 0:$s.md.field,...ll}},sm:{...null==(Vs=xs.sizes)?void 0:Vs.sm,field:{...null==(Ws=xs.sizes)?void 0:Ws.sm.field,...ll}},xs:{...null==(Us=xs.sizes)?void 0:Us.xs,field:{...null==(Hs=xs.sizes)?void 0:Hs.xs.field,...ll},icon:{insetEnd:"1"}}},variants:xs.variants,defaultProps:xs.defaultProps}),cl=Pn("skeleton-start-color"),dl=Pn("skeleton-end-color"),fl={baseStyle:{[cl.variable]:"colors.gray.100",[dl.variable]:"colors.gray.400",_dark:{[cl.variable]:"colors.gray.800",[dl.variable]:"colors.gray.600"},background:cl.reference,borderColor:dl.reference,opacity:.7,borderRadius:"sm"}},hl=Pn("skip-link-bg"),pl={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:{boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6",[hl.variable]:"colors.white",_dark:{[hl.variable]:"colors.gray.700"},bg:hl.reference}}},{defineMultiStyleConfig:ml,definePartsStyle:gl}=sr(bi.keys),vl=Pn("slider-thumb-size"),yl=Pn("slider-track-size"),bl=Pn("slider-bg"),xl=e=>{const{orientation:t}=e;return{display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"},...Gi({orientation:t,vertical:{h:"100%"},horizontal:{w:"100%"}})}},wl=e=>({...Gi({orientation:e.orientation,horizontal:{h:yl.reference},vertical:{w:yl.reference}}),overflow:"hidden",borderRadius:"sm",[bl.variable]:"colors.gray.200",_dark:{[bl.variable]:"colors.whiteAlpha.200"},_disabled:{[bl.variable]:"colors.gray.300",_dark:{[bl.variable]:"colors.whiteAlpha.300"}},bg:bl.reference}),Sl=e=>{const{orientation:t}=e;return{...Gi({orientation:t,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}}),w:vl.reference,h:vl.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}}},kl=e=>{const{colorScheme:t}=e;return{width:"inherit",height:"inherit",[bl.variable]:`colors.${t}.500`,_dark:{[bl.variable]:`colors.${t}.200`},bg:bl.reference}},Cl=ml({baseStyle:gl(e=>({container:xl(e),track:wl(e),thumb:Sl(e),filledTrack:kl(e)})),sizes:{lg:gl({container:{[vl.variable]:"sizes.4",[yl.variable]:"sizes.1"}}),md:gl({container:{[vl.variable]:"sizes.3.5",[yl.variable]:"sizes.1"}}),sm:gl({container:{[vl.variable]:"sizes.2.5",[yl.variable]:"sizes.0.5"}})},defaultProps:{size:"md",colorScheme:"blue"}}),El=Ti("spinner-size"),_l={baseStyle:{width:[El.reference],height:[El.reference]},sizes:{xs:{[El.variable]:"sizes.3"},sm:{[El.variable]:"sizes.4"},md:{[El.variable]:"sizes.6"},lg:{[El.variable]:"sizes.8"},xl:{[El.variable]:"sizes.12"}},defaultProps:{size:"md"}},{defineMultiStyleConfig:Pl,definePartsStyle:Tl}=sr(xi.keys),Rl=Pl({baseStyle:Tl({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:Tl({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),Al=Pn("kbd-bg"),Ol={baseStyle:{[Al.variable]:"colors.gray.100",_dark:{[Al.variable]:"colors.whiteAlpha.100"},bg:Al.reference,borderRadius:"md",borderWidth:"1px",borderBottomWidth:"3px",fontSize:"0.8em",fontWeight:"bold",lineHeight:"normal",px:"0.4em",whiteSpace:"nowrap"}},{defineMultiStyleConfig:Fl,definePartsStyle:zl}=sr(di.keys),Ml=Fl({baseStyle:zl({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),{defineMultiStyleConfig:jl,definePartsStyle:Il}=sr(fi.keys),Nl=Pn("menu-bg"),Dl=Pn("menu-shadow"),Ll=jl({baseStyle:Il({button:{transitionProperty:"common",transitionDuration:"normal"},list:{[Nl.variable]:"#fff",[Dl.variable]:"shadows.sm",_dark:{[Nl.variable]:"colors.gray.700",[Dl.variable]:"shadows.dark-lg"},color:"inherit",minW:"3xs",py:"2",zIndex:1,borderRadius:"md",borderWidth:"1px",bg:Nl.reference,boxShadow:Dl.reference},item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:{[Nl.variable]:"colors.gray.100",_dark:{[Nl.variable]:"colors.whiteAlpha.100"}},_active:{[Nl.variable]:"colors.gray.200",_dark:{[Nl.variable]:"colors.whiteAlpha.200"}},_expanded:{[Nl.variable]:"colors.gray.100",_dark:{[Nl.variable]:"colors.whiteAlpha.100"}},_disabled:{opacity:.4,cursor:"not-allowed"},bg:Nl.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),{defineMultiStyleConfig:Bl,definePartsStyle:$l}=sr(hi.keys),Vl=Pn("modal-bg"),Wl=Pn("modal-shadow"),Ul={bg:"blackAlpha.600",zIndex:"modal"},Hl=e=>{const{isCentered:t,scrollBehavior:n}=e;return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:t?"center":"flex-start",overflow:"inside"===n?"hidden":"auto",overscrollBehaviorY:"none"}},ql=e=>{const{isCentered:t,scrollBehavior:n}=e;return{borderRadius:"md",color:"inherit",my:t?"auto":"16",mx:t?"auto":void 0,zIndex:"modal",maxH:"inside"===n?"calc(100% - 7.5rem)":void 0,[Vl.variable]:"colors.white",[Wl.variable]:"shadows.lg",_dark:{[Vl.variable]:"colors.gray.700",[Wl.variable]:"shadows.dark-lg"},bg:Vl.reference,boxShadow:Wl.reference}},Ql={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Kl={position:"absolute",top:"2",insetEnd:"3"},Gl=e=>{const{scrollBehavior:t}=e;return{px:"6",py:"2",flex:"1",overflow:"inside"===t?"auto":void 0}},Xl={px:"6",py:"4"};function Yl(e){return $l("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var Zl=Bl({baseStyle:$l(e=>({overlay:Ul,dialogContainer:Is(Hl,e),dialog:Is(ql,e),header:Ql,closeButton:Kl,body:Is(Gl,e),footer:Xl})),sizes:{xs:Yl("xs"),sm:Yl("sm"),md:Yl("md"),lg:Yl("lg"),xl:Yl("xl"),"2xl":Yl("2xl"),"3xl":Yl("3xl"),"4xl":Yl("4xl"),"5xl":Yl("5xl"),"6xl":Yl("6xl"),full:Yl("full")},defaultProps:{size:"md"}}),{defineMultiStyleConfig:Jl,definePartsStyle:eu}=sr(pi.keys),tu=Ti("number-input-stepper-width"),nu=Ti("number-input-input-padding"),ru=Ii(tu).add("0.5rem").toString(),ou=Ti("number-input-bg"),iu=Ti("number-input-color"),au=Ti("number-input-border-color"),su={[tu.variable]:"sizes.6",[nu.variable]:ru},lu=e=>{var t,n;return null!=(n=null==(t=Is(xs.baseStyle,e))?void 0:t.field)?n:{}},uu={width:tu.reference},cu={borderStart:"1px solid",borderStartColor:au.reference,color:iu.reference,bg:ou.reference,[iu.variable]:"colors.chakra-body-text",[au.variable]:"colors.chakra-border-color",_dark:{[iu.variable]:"colors.whiteAlpha.800",[au.variable]:"colors.whiteAlpha.300"},_active:{[ou.variable]:"colors.gray.200",_dark:{[ou.variable]:"colors.whiteAlpha.300"}},_disabled:{opacity:.4,cursor:"not-allowed"}},du=eu(e=>{var t;return{root:su,field:null!=(t=Is(lu,e))?t:{},stepperGroup:uu,stepper:cu}});function fu(e){var t,n,r;const o=null==(t=xs.sizes)?void 0:t[e],i={lg:"md",md:"md",sm:"sm",xs:"sm"},a=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=Vo.fontSizes[a];return eu({field:{...o.field,paddingInlineEnd:nu.reference,verticalAlign:"top"},stepper:{fontSize:Ii(s).multiply(.75).toString(),_first:{borderTopEndRadius:i[e]},_last:{borderBottomEndRadius:i[e],mt:"-1px",borderTopWidth:1}}})}var hu,pu,mu,gu=Jl({baseStyle:du,sizes:{xs:fu("xs"),sm:fu("sm"),md:fu("md"),lg:fu("lg")},variants:xs.variants,defaultProps:xs.defaultProps}),vu={...null==(hu=xs.baseStyle)?void 0:hu.field,textAlign:"center"},yu={outline:e=>{var t,n,r;return null!=(r=null==(n=Is(null==(t=xs.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:e=>{var t,n,r;return null!=(r=null==(n=Is(null==(t=xs.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:e=>{var t,n,r;return null!=(r=null==(n=Is(null==(t=xs.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(mu=null==(pu=xs.variants)?void 0:pu.unstyled.field)?mu:{}},bu={baseStyle:vu,sizes:{lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},variants:yu,defaultProps:xs.defaultProps},{defineMultiStyleConfig:xu,definePartsStyle:wu}=sr(mi.keys),Su=Ti("popper-bg"),ku=Ti("popper-arrow-bg"),Cu=Ti("popper-arrow-shadow-color"),Eu=xu({baseStyle:wu({popper:{zIndex:10},content:{[Su.variable]:"colors.white",bg:Su.reference,[ku.variable]:Su.reference,[Cu.variable]:"colors.gray.200",_dark:{[Su.variable]:"colors.gray.700",[Cu.variable]:"colors.whiteAlpha.300"},width:"xs",border:"1px solid",borderColor:"inherit",borderRadius:"md",boxShadow:"sm",zIndex:"inherit",_focusVisible:{outline:0,boxShadow:"outline"}},header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),{definePartsStyle:_u,defineMultiStyleConfig:Pu}=sr(ai.keys),Tu=Pn("drawer-bg"),Ru=Pn("drawer-box-shadow");function Au(e){return _u("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Ou={bg:"blackAlpha.600",zIndex:"modal"},Fu={display:"flex",zIndex:"modal",justifyContent:"center"},zu=e=>{const{isFullHeight:t}=e;return{...t&&{height:"100vh"},zIndex:"modal",maxH:"100vh",color:"inherit",[Tu.variable]:"colors.white",[Ru.variable]:"shadows.lg",_dark:{[Tu.variable]:"colors.gray.700",[Ru.variable]:"shadows.dark-lg"},bg:Tu.reference,boxShadow:Ru.reference}},Mu={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},ju={position:"absolute",top:"2",insetEnd:"3"},Iu={px:"6",py:"2",flex:"1",overflow:"auto"},Nu={px:"6",py:"4"},Du=Pu({baseStyle:_u(e=>({overlay:Ou,dialogContainer:Fu,dialog:Is(zu,e),header:Mu,closeButton:ju,body:Iu,footer:Nu})),sizes:{xs:Au("xs"),sm:Au("md"),md:Au("lg"),lg:Au("2xl"),xl:Au("4xl"),full:Au("full")},defaultProps:{size:"xs"}}),{definePartsStyle:Lu,defineMultiStyleConfig:Bu}=sr(si.keys),$u=Bu({baseStyle:Lu({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),{definePartsStyle:Vu,defineMultiStyleConfig:Wu}=sr(li.keys),Uu=Pn("form-control-color"),Hu=Wu({baseStyle:Vu({container:{width:"100%",position:"relative"},requiredIndicator:{marginStart:"1",[Uu.variable]:"colors.red.500",_dark:{[Uu.variable]:"colors.red.300"},color:Uu.reference},helperText:{mt:"2",[Uu.variable]:"colors.gray.600",_dark:{[Uu.variable]:"colors.whiteAlpha.600"},color:Uu.reference,lineHeight:"normal",fontSize:"sm"}})}),{definePartsStyle:qu,defineMultiStyleConfig:Qu}=sr(ui.keys),Ku=Pn("form-error-color"),Gu=Qu({baseStyle:qu({text:{[Ku.variable]:"colors.red.500",_dark:{[Ku.variable]:"colors.red.300"},color:Ku.reference,mt:"2",fontSize:"sm",lineHeight:"normal"},icon:{marginEnd:"0.5em",[Ku.variable]:"colors.red.500",_dark:{[Ku.variable]:"colors.red.300"},color:Ku.reference}})}),{defineMultiStyleConfig:Xu,definePartsStyle:Yu}=sr(oi.keys),Zu=Pn("breadcrumb-link-decor"),Ju=Xu({baseStyle:Yu({link:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:Zu.reference,[Zu.variable]:"none","&:not([aria-current=page])":{cursor:"pointer",_hover:{[Zu.variable]:"underline"},_focusVisible:{boxShadow:"outline"}}}})}),ec=e=>{const{colorScheme:t,theme:n}=e;if("gray"===t)return{color:Ki("gray.800","whiteAlpha.900")(e),_hover:{bg:Ki("gray.100","whiteAlpha.200")(e)},_active:{bg:Ki("gray.200","whiteAlpha.300")(e)}};const r=va(`${t}.200`,.12)(n),o=va(`${t}.200`,.24)(n);return{color:Ki(`${t}.600`,`${t}.200`)(e),bg:"transparent",_hover:{bg:Ki(`${t}.50`,r)(e)},_active:{bg:Ki(`${t}.100`,o)(e)}}},tc={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},nc={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:ec,outline:e=>{const{colorScheme:t}=e,n=Ki("gray.200","whiteAlpha.300")(e);return{border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"},...Is(ec,e)}},solid:e=>{var t;const{colorScheme:n}=e;if("gray"===n){const t=Ki("gray.100","whiteAlpha.200")(e);return{bg:t,color:Ki("gray.800","whiteAlpha.900")(e),_hover:{bg:Ki("gray.200","whiteAlpha.300")(e),_disabled:{bg:t}},_active:{bg:Ki("gray.300","whiteAlpha.400")(e)}}}const{bg:r=`${n}.500`,color:o="white",hoverBg:i=`${n}.600`,activeBg:a=`${n}.700`}=null!=(t=tc[n])?t:{},s=Ki(r,`${n}.200`)(e);return{bg:s,color:Ki(o,"gray.800")(e),_hover:{bg:Ki(i,`${n}.300`)(e),_disabled:{bg:s}},_active:{bg:Ki(a,`${n}.400`)(e)}}},link:e=>{const{colorScheme:t}=e;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:Ki(`${t}.500`,`${t}.200`)(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:Ki(`${t}.700`,`${t}.500`)(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},{definePartsStyle:rc,defineMultiStyleConfig:oc}=sr(Ei.keys),ic=Pn("card-bg"),ac=Pn("card-padding"),sc=Pn("card-shadow"),lc=Pn("card-radius"),uc=Pn("card-border-width","0"),cc=Pn("card-border-color"),dc=rc({container:{[ic.variable]:"colors.chakra-body-bg",backgroundColor:ic.reference,boxShadow:sc.reference,borderRadius:lc.reference,color:"chakra-body-text",borderWidth:uc.reference,borderColor:cc.reference},body:{padding:ac.reference,flex:"1 1 0%"},header:{padding:ac.reference},footer:{padding:ac.reference}}),fc={sm:rc({container:{[lc.variable]:"radii.base",[ac.variable]:"space.3"}}),md:rc({container:{[lc.variable]:"radii.md",[ac.variable]:"space.5"}}),lg:rc({container:{[lc.variable]:"radii.xl",[ac.variable]:"space.7"}})},hc=oc({baseStyle:dc,variants:{elevated:rc({container:{[sc.variable]:"shadows.base",_dark:{[ic.variable]:"colors.gray.700"}}}),outline:rc({container:{[uc.variable]:"1px",[cc.variable]:"colors.chakra-border-color"}}),filled:rc({container:{[ic.variable]:"colors.chakra-subtle-bg"}}),unstyled:{body:{[ac.variable]:0},header:{[ac.variable]:0},footer:{[ac.variable]:0}}},sizes:fc,defaultProps:{variant:"elevated",size:"md"}}),pc=Ti("close-button-size"),mc=Ti("close-button-bg"),gc={baseStyle:{w:[pc.reference],h:[pc.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{[mc.variable]:"colors.blackAlpha.100",_dark:{[mc.variable]:"colors.whiteAlpha.100"}},_active:{[mc.variable]:"colors.blackAlpha.200",_dark:{[mc.variable]:"colors.whiteAlpha.200"}},_focusVisible:{boxShadow:"outline"},bg:mc.reference},sizes:{lg:{[pc.variable]:"sizes.10",fontSize:"md"},md:{[pc.variable]:"sizes.8",fontSize:"xs"},sm:{[pc.variable]:"sizes.6",fontSize:"2xs"}},defaultProps:{size:"md"}},{variants:vc,defaultProps:yc}=Ia,bc={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:ja.bg.reference,color:ja.color.reference,boxShadow:ja.shadow.reference},variants:vc,defaultProps:yc},{definePartsStyle:xc,defineMultiStyleConfig:wc}=sr(ti.keys),Sc=wc({baseStyle:xc({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),{definePartsStyle:kc,defineMultiStyleConfig:Cc}=sr(ni.keys),Ec=Pn("alert-fg"),_c=Pn("alert-bg");function Pc(e){const{theme:t,colorScheme:n}=e;return{light:`colors.${n}.100`,dark:va(`${n}.200`,.16)(t)}}var Tc=Cc({baseStyle:kc({container:{bg:_c.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:Ec.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:Ec.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}}),variants:{subtle:kc(e=>{const{colorScheme:t}=e,n=Pc(e);return{container:{[Ec.variable]:`colors.${t}.600`,[_c.variable]:n.light,_dark:{[Ec.variable]:`colors.${t}.200`,[_c.variable]:n.dark}}}}),"left-accent":kc(e=>{const{colorScheme:t}=e,n=Pc(e);return{container:{[Ec.variable]:`colors.${t}.600`,[_c.variable]:n.light,_dark:{[Ec.variable]:`colors.${t}.200`,[_c.variable]:n.dark},paddingStart:"3",borderStartWidth:"4px",borderStartColor:Ec.reference}}}),"top-accent":kc(e=>{const{colorScheme:t}=e,n=Pc(e);return{container:{[Ec.variable]:`colors.${t}.600`,[_c.variable]:n.light,_dark:{[Ec.variable]:`colors.${t}.200`,[_c.variable]:n.dark},pt:"2",borderTopWidth:"4px",borderTopColor:Ec.reference}}}),solid:kc(e=>{const{colorScheme:t}=e;return{container:{[Ec.variable]:"colors.white",[_c.variable]:`colors.${t}.600`,_dark:{[Ec.variable]:"colors.gray.900",[_c.variable]:`colors.${t}.200`},color:Ec.reference}}})},defaultProps:{variant:"subtle",colorScheme:"blue"}}),{definePartsStyle:Rc,defineMultiStyleConfig:Ac}=sr(ri.keys),Oc=Pn("avatar-border-color"),Fc=Pn("avatar-bg"),zc=Pn("avatar-font-size"),Mc=Pn("avatar-size"),jc={borderRadius:"full",border:"0.2em solid",borderColor:Oc.reference,[Oc.variable]:"white",_dark:{[Oc.variable]:"colors.gray.800"}},Ic={bg:Fc.reference,fontSize:zc.reference,width:Mc.reference,height:Mc.reference,lineHeight:"1",[Fc.variable]:"colors.gray.200",_dark:{[Fc.variable]:"colors.whiteAlpha.400"}},Nc=e=>{const{name:t,theme:n}=e,r=t?function(e){const t=`#${Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0")}`;return e&&(n=e,0!==Object.keys(n).length)?e.string&&e.colors?function(e,t){let n=0;if(0===e.length)return t[0];for(let t=0;t<e.length;t+=1)n=e.charCodeAt(t)+((n<<5)-n),n&=n;return n=(n%t.length+t.length)%t.length,t[n]}(e.string,e.colors):e.string&&!e.colors?function(e){let t=0;if(0===e.length)return t.toString();for(let n=0;n<e.length;n+=1)t=e.charCodeAt(n)+((t<<5)-t),t&=t;let n="#";for(let e=0;e<3;e+=1)n+=`00${(t>>8*e&255).toString(16)}`.substr(-2);return n}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):t:t;var n}({string:t}):"colors.gray.400",o=(e=>t=>"dark"===(e=>t=>{const n=(e=>{const[t,n,r]=oa(e);return(299*t+587*n+114*r)/1e3})(ga(t,e));return n<128?"dark":"light"})(e)(t))(r)(n);let i="white";return o||(i="gray.800"),{bg:Fc.reference,fontSize:zc.reference,color:i,borderColor:Oc.reference,verticalAlign:"top",width:Mc.reference,height:Mc.reference,"&:not([data-loaded])":{[Fc.variable]:r},[Oc.variable]:"colors.white",_dark:{[Oc.variable]:"colors.gray.800"}}},Dc={fontSize:zc.reference,lineHeight:"1"};function Lc(e){const t="100%"!==e?Uo[e]:void 0;return Rc({container:{[Mc.variable]:null!=t?t:e,[zc.variable]:`calc(${null!=t?t:e} / 2.5)`},excessLabel:{[Mc.variable]:null!=t?t:e,[zc.variable]:`calc(${null!=t?t:e} / 2.5)`}})}var Bc={Accordion:Sc,Alert:Tc,Avatar:Ac({baseStyle:Rc(e=>({badge:Is(jc,e),excessLabel:Is(Ic,e),container:Is(Nc,e),label:Dc})),sizes:{"2xs":Lc(4),xs:Lc(6),sm:Lc(8),md:Lc(12),lg:Lc(16),xl:Lc(24),"2xl":Lc(32),full:Lc("100%")},defaultProps:{size:"md"}}),Badge:Ia,Breadcrumb:Ju,Button:nc,Checkbox:Js,CloseButton:gc,Code:bc,Container:{baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},Divider:{baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},Drawer:Du,Editable:$u,Form:Hu,FormError:Gu,FormLabel:{baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},Heading:{baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},Input:xs,Kbd:Ol,Link:{baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},List:Ml,Menu:Ll,Modal:Zl,NumberInput:gu,PinInput:bu,Popover:Eu,Progress:js,Radio:ol,Select:ul,Skeleton:fl,SkipLink:pl,Slider:Cl,Spinner:_l,Stat:Rl,Switch:Qi,Table:ea,Tabs:Ma,Tag:Ga,Textarea:ks,Tooltip:Ps,Card:hc,Stepper:Jo},$c={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},Vc={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},Wc={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},Uc={semanticTokens:$c,direction:"ltr",...Ho,components:Bc,styles:Vc,config:Wc},Hc={semanticTokens:$c,direction:"ltr",components:{},...Ho,styles:Vc,config:Wc},qc=(e,t)=>e.find(e=>e.id===t);function Qc(e,t){const n=Kc(e,t);return{position:n,index:n?e[n].findIndex(e=>e.id===t):-1}}function Kc(e,t){for(const[n,r]of Object.entries(e))if(qc(r,t))return n}function Gc(e){return{position:"fixed",zIndex:"var(--toast-z-index, 5500)",pointerEvents:"none",display:"flex",flexDirection:"column",margin:"top"===e||"bottom"===e?"0 auto":void 0,top:e.includes("top")?"env(safe-area-inset-top, 0px)":void 0,bottom:e.includes("bottom")?"env(safe-area-inset-bottom, 0px)":void 0,right:e.includes("left")?void 0:"env(safe-area-inset-right, 0px)",left:e.includes("right")?void 0:"env(safe-area-inset-left, 0px)"}}function Xc(t,n){const r=(0,e.useRef)(!1),o=(0,e.useRef)(!1);(0,e.useEffect)(()=>{if(r.current&&o.current)return t();o.current=!0},n),(0,e.useEffect)(()=>(r.current=!0,()=>{r.current=!1}),[])}const Yc=(0,e.createContext)(null);function Zc(){const t=(0,e.useContext)(Yc);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=(0,e.useId)();return(0,e.useEffect)(()=>o(i),[]),!n&&r?[!1,()=>r&&r(i)]:[!0]}const Jc=(0,e.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ed=(0,e.createContext)({}),td="undefined"!=typeof document,nd=td?e.useLayoutEffect:e.useEffect,rd=(0,e.createContext)({strict:!1}),od=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),id="data-"+od("framerAppearId");class ad{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const sd=["read","resolveKeyframes","update","preRender","render","postRender"];function ld(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=sd.reduce((e,t)=>(e[t]=function(e){let t=new ad,n=new ad,r=0,o=!1,i=!1;const a=new WeakSet,s={schedule:(e,i=!1,s=!1)=>{const l=s&&o,u=l?t:n;return i&&a.add(e),u.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];a.has(r)&&(s.schedule(r),e()),r(l)}o=!1,i&&(i=!1,s.process(l))}}};return s}(()=>n=!0),e),{}),a=e=>{i[e].process(o)},s=()=>{const i=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,sd.forEach(a),o.isProcessing=!1,n&&t&&(r=!1,e(s))},l=sd.reduce((t,a)=>{const l=i[a];return t[a]=(t,i=!1,a=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(s)),l.schedule(t,i,a)),t},{});return{schedule:l,cancel:e=>sd.forEach(t=>i[t].cancel(e)),state:o,steps:i}}const{schedule:ud,cancel:cd}=ld(queueMicrotask,!1);function dd(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function fd(e){return"string"==typeof e||Array.isArray(e)}function hd(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const pd=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],md=["initial",...pd];function gd(e){return hd(e.animate)||md.some(t=>fd(e[t]))}function vd(e){return Boolean(gd(e)||e.variants)}function yd(e){return Array.isArray(e)?e.join(" "):e}const bd={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xd={};for(const e in bd)xd[e]={isEnabled:t=>bd[e].some(e=>!!t[e])};const wd=(0,e.createContext)({}),Sd=(0,e.createContext)({}),kd=Symbol.for("motionComponentSymbol");function Cd({preloadedFeatures:t,createVisualElement:n,useRender:r,useVisualState:o,Component:i}){t&&function(e){for(const t in e)xd[t]={...xd[t],...e[t]}}(t);const a=(0,e.forwardRef)(function(a,s){let l;const u={...(0,e.useContext)(Jc),...a,layoutId:Ed(a)},{isStatic:c}=u,d=function(t){const{initial:n,animate:r}=function(e,t){if(gd(e)){const{initial:t,animate:n}=e;return{initial:!1===t||fd(t)?t:void 0,animate:fd(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,(0,e.useContext)(ed));return(0,e.useMemo)(()=>({initial:n,animate:r}),[yd(n),yd(r)])}(a),f=o(a,c);if(!c&&td){d.visualElement=function(t,n,r,o){const{visualElement:i}=(0,e.useContext)(ed),a=(0,e.useContext)(rd),s=(0,e.useContext)(Yc),l=(0,e.useContext)(Jc).reducedMotion,u=(0,e.useRef)();o=o||a.renderer,!u.current&&o&&(u.current=o(t,{visualState:n,parent:i,props:r,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:l}));const c=u.current;(0,e.useInsertionEffect)(()=>{c&&c.update(r,s)});const d=(0,e.useRef)(Boolean(r[id]&&!window.HandoffComplete));return nd(()=>{c&&(ud.postRender(c.render),d.current&&c.animationState&&c.animationState.animateChanges())}),(0,e.useEffect)(()=>{c&&(c.updateFeatures(),!d.current&&c.animationState&&c.animationState.animateChanges(),d.current&&(d.current=!1,window.HandoffComplete=!0))}),c}(i,f,u,n);const r=(0,e.useContext)(Sd),o=(0,e.useContext)(rd).strict;d.visualElement&&(l=d.visualElement.loadFeatures(u,o,t,r))}return e.createElement(ed.Provider,{value:d},l&&d.visualElement?e.createElement(l,{visualElement:d.visualElement,...u}):null,r(i,a,function(t,n,r){return(0,e.useCallback)(e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),r&&("function"==typeof r?r(e):dd(r)&&(r.current=e))},[n])}(f,d.visualElement,s),f,c,d.visualElement))});return a[kd]=i,a}function Ed({layoutId:t}){const n=(0,e.useContext)(wd).id;return n&&void 0!==t?n+"-"+t:t}function _d(e){function t(t,n={}){return Cd(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const Pd=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Td(e){return"string"==typeof e&&!e.includes("-")&&!!(Pd.indexOf(e)>-1||/[A-Z]/u.test(e))}const Rd={},Ad=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Od=new Set(Ad);function Fd(e,{layout:t,layoutId:n}){return Od.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Rd[e]||"opacity"===e)}const zd=e=>Boolean(e&&e.getVelocity),Md={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jd=Ad.length,Id=e=>t=>"string"==typeof t&&t.startsWith(e),Nd=Id("--"),Dd=Id("var(--"),Ld=e=>!!Dd(e)&&Bd.test(e.split("/*")[0].trim()),Bd=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$d=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Vd=(e,t,n)=>n>t?t:n<e?e:n,Wd={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ud={...Wd,transform:e=>Vd(0,1,e)},Hd={...Wd,default:1},qd=e=>Math.round(1e5*e)/1e5,Qd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Kd=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Gd=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function Xd(e){return"string"==typeof e}const Yd=e=>({test:t=>Xd(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Zd=Yd("deg"),Jd=Yd("%"),ef=Yd("px"),tf=Yd("vh"),nf=Yd("vw"),rf={...Jd,parse:e=>Jd.parse(e)/100,transform:e=>Jd.transform(100*e)},of={...Wd,transform:Math.round},af={borderWidth:ef,borderTopWidth:ef,borderRightWidth:ef,borderBottomWidth:ef,borderLeftWidth:ef,borderRadius:ef,radius:ef,borderTopLeftRadius:ef,borderTopRightRadius:ef,borderBottomRightRadius:ef,borderBottomLeftRadius:ef,width:ef,maxWidth:ef,height:ef,maxHeight:ef,size:ef,top:ef,right:ef,bottom:ef,left:ef,padding:ef,paddingTop:ef,paddingRight:ef,paddingBottom:ef,paddingLeft:ef,margin:ef,marginTop:ef,marginRight:ef,marginBottom:ef,marginLeft:ef,rotate:Zd,rotateX:Zd,rotateY:Zd,rotateZ:Zd,scale:Hd,scaleX:Hd,scaleY:Hd,scaleZ:Hd,skew:Zd,skewX:Zd,skewY:Zd,distance:ef,translateX:ef,translateY:ef,translateZ:ef,x:ef,y:ef,z:ef,perspective:ef,transformPerspective:ef,opacity:Ud,originX:rf,originY:rf,originZ:ef,zIndex:of,backgroundPositionX:ef,backgroundPositionY:ef,fillOpacity:Ud,strokeOpacity:Ud,numOctaves:of};function sf(e,t,n,r){const{style:o,vars:i,transform:a,transformOrigin:s}=e;let l=!1,u=!1,c=!0;for(const e in t){const n=t[e];if(Nd(e)){i[e]=n;continue}const r=af[e],d=$d(n,r);if(Od.has(e)){if(l=!0,a[e]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else e.startsWith("origin")?(u=!0,s[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<jd;t++){const n=Ad[t];void 0!==e[n]&&(i+=`${Md[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,c,r):o.transform&&(o.transform="none")),u){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;o.transformOrigin=`${e} ${t} ${n}`}}function lf(e,t,n){for(const r in t)zd(t[r])||Fd(r,n)||(e[r]=t[r])}function uf(t,n,r){const o={},i=function(t,n,r){const o={};return lf(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n,r){return(0,e.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return sf(e,n,{enableHardwareAcceleration:!r},t),Object.assign({},e.vars,e.style)},[n])}(t,n,r)),o}(t,n,r);return t.drag&&!1!==t.dragListener&&(o.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(o.tabIndex=0),o.style=i,o}const cf=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function df(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||cf.has(e)}let ff=e=>!df(e);try{(hf=require("@emotion/is-prop-valid").default)&&(ff=e=>e.startsWith("on")?!df(e):hf(e))}catch(Sr){}var hf;function pf(e,t,n){return"string"==typeof e?e:ef.transform(t+n*e)}const mf={offset:"stroke-dashoffset",array:"stroke-dasharray"},gf={offset:"strokeDashoffset",array:"strokeDasharray"};function vf(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d,f){if(sf(e,u,c,f),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(void 0!==o||void 0!==i||p.transform)&&(p.transformOrigin=function(e,t,n){return`${pf(t,e.x,e.width)} ${pf(n,e.y,e.height)}`}(m,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(h.x=t),void 0!==n&&(h.y=n),void 0!==r&&(h.scale=r),void 0!==a&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?mf:gf;e[i.offset]=ef.transform(-r);const a=ef.transform(t),s=ef.transform(n);e[i.array]=`${a} ${s}`}(h,a,s,l,!1)}const yf=e=>"string"==typeof e&&"svg"===e.toLowerCase();function bf(t,n,r,o){const i=(0,e.useMemo)(()=>{const e={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return vf(e,n,{enableHardwareAcceleration:!1},yf(o),t.transformTemplate),{...e.attrs,style:{...e.style}}},[n]);if(t.style){const e={};lf(e,t.style,t),i.style={...e,...i.style}}return i}function xf(t=!1){return(n,r,o,{latestValues:i},a)=>{const s=(Td(n)?bf:uf)(r,i,a,n),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(ff(o)||!0===n&&df(o)||!t&&!df(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(r,"string"==typeof n,t),u=n!==e.Fragment?{...l,...s,ref:o}:{},{children:c}=r,d=(0,e.useMemo)(()=>zd(c)?c.get():c,[c]);return(0,e.createElement)(n,{...u,children:d})}}function wf(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Sf=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function kf(e,t,n,r){wf(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Sf.has(n)?n:od(n),t.attrs[n])}function Cf(e,t){const{style:n}=e,r={};for(const o in n)(zd(n[o])||t.style&&zd(t.style[o])||Fd(o,e))&&(r[o]=n[o]);return r}function Ef(e,t){const n=Cf(e,t);for(const r in e)(zd(e[r])||zd(t[r]))&&(n[-1!==Ad.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function _f(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}function Pf(t){const n=(0,e.useRef)(null);return null===n.current&&(n.current=t()),n.current}const Tf=e=>Array.isArray(e),Rf=e=>Tf(e)?e[e.length-1]||0:e;function Af(e){const t=zd(e)?e.get():e;return n=t,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?t.toValue():t;var n}const Of=t=>(n,r)=>{const o=(0,e.useContext)(ed),i=(0,e.useContext)(Yc),a=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const a={latestValues:Ff(r,o,i,e),renderState:t()};return n&&(a.mount=e=>n(r,e,a)),a}(t,n,o,i);return r?a():Pf(a)};function Ff(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Af(i[e]);let{initial:a,animate:s}=e;const l=gd(e),u=vd(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial;c=c||!1===a;const d=c?s:a;return d&&"boolean"!=typeof d&&!hd(d)&&(Array.isArray(d)?d:[d]).forEach(t=>{const n=_f(e,t);if(!n)return;const{transitionEnd:r,transition:i,...a}=n;for(const e in a){let t=a[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]}),o}const zf=e=>e,{schedule:Mf,cancel:jf,state:If,steps:Nf}=ld("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:zf,!0),Df={useVisualState:Of({scrapeMotionValuesFromProps:Ef,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onMount:(e,t,{renderState:n,latestValues:r})=>{Mf.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),Mf.render(()=>{vf(n,r,{enableHardwareAcceleration:!1},yf(t.tagName),e.transformTemplate),kf(t,n)})}})},Lf={useVisualState:Of({scrapeMotionValuesFromProps:Cf,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Bf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const $f=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Vf(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}function Wf(e,t,n,r){return Bf(e,t,(e=>t=>$f(t)&&e(t,Vf(t)))(n),r)}const Uf=(e,t)=>n=>t(e(n)),Hf=(...e)=>e.reduce(Uf);function qf(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const Qf=qf("dragHorizontal"),Kf=qf("dragVertical");function Gf(e){let t=!1;if("y"===e)t=Kf();else if("x"===e)t=Qf();else{const e=Qf(),n=Kf();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Xf(){const e=Gf(!0);return!e||(e(),!1)}class Yf{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Zf(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Wf(e.current,n,(n,o)=>{if("touch"===n.pointerType||Xf())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&i[r](n,o)},{passive:!e.getProps()[r]})}const Jf=(e,t)=>!!t&&(e===t||Jf(e,t.parentElement));function eh(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Vf(n))}const th=new WeakMap,nh=new WeakMap,rh=e=>{const t=th.get(e.target);t&&t(e)},oh=e=>{e.forEach(rh)};const ih={some:0,all:1},ah={inView:{Feature:class extends Yf{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ih[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;nh.has(n)||nh.set(n,{});const r=nh.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(oh,{root:e,...t})),r[o]}(t);return th.set(e,n),r.observe(e),()=>{th.delete(e),r.unobserve(e)}}(this.node.current,i,e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Yf{constructor(){super(...arguments),this.removeStartListeners=zf,this.removeEndListeners=zf,this.removeAccessibleListeners=zf,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),r=Wf(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r,globalTapTarget:o}=this.node.getProps();o||Jf(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)},{passive:!(n.onTap||n.onPointerUp)}),o=Wf(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Hf(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Bf(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Bf(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&eh("up",(e,t)=>{const{onTap:n}=this.node.getProps();n&&n(e,t)})}),eh("down",(e,t)=>{this.startPress(e,t)}))}),t=Bf(this.node.current,"blur",()=>{this.isPressing&&eh("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=Hf(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(e,t)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Xf()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&n(e,t)}mount(){const e=this.node.getProps(),t=Wf(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Bf(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Hf(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Yf{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Hf(Bf(this.node.current,"focus",()=>this.onFocus()),Bf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Yf{mount(){this.unmount=Hf(Zf(this.node,!0),Zf(this.node,!1))}unmount(){}}}};function sh(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function lh(e,t,n){const r=e.getProps();return _f(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.get()),t}(e),function(e){const t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}const uh=e=>1e3*e,ch=e=>e/1e3,dh={type:"spring",stiffness:500,damping:25,restSpeed:10},fh={type:"keyframes",duration:.8},hh={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ph=(e,{keyframes:t})=>t.length>2?fh:Od.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:dh:hh;function mh(e,t){return e[t]||e.default||e}const gh=e=>null!==e;function vh(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(gh),i=t&&"loop"!==n&&t%2==1?0:o.length-1;return i&&void 0!==r?r:o[i]}let yh;function bh(){yh=void 0}const xh={now:()=>(void 0===yh&&xh.set(If.isProcessing?If.timestamp:performance.now()),yh),set:e=>{yh=e,queueMicrotask(bh)}},wh=e=>/^0[^.\s]+$/u.test(e);function Sh(e){return"number"==typeof e?0===e:null===e||"none"===e||"0"===e||wh(e)}let kh=zf,Ch=zf;const Eh=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),_h=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ph(e,t,n=1){Ch(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=_h.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${null!=n?n:r}`,o]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return Eh(e)?parseFloat(e):e}return Ld(o)?Ph(o,t,n+1):o}const Th=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Rh=e=>e===Wd||e===ef,Ah=(e,t)=>parseFloat(e.split(", ")[t]),Oh=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/u);if(o)return Ah(o[1],t);{const t=r.match(/^matrix\((.+)\)$/u);return t?Ah(t[1],e):0}},Fh=new Set(["x","y","z"]),zh=Ad.filter(e=>!Fh.has(e));function Mh(e){const t=[];return zh.forEach(n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const jh={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Oh(4,13),y:Oh(5,14)};jh.translateX=jh.x,jh.translateY=jh.y;const Ih=e=>t=>t.test(e),Nh=[Wd,ef,Jd,Zd,nf,tf,{test:e=>"auto"===e,parse:e=>e}],Dh=e=>Nh.find(Ih(e)),Lh=new Set;let Bh=!1,$h=!1;function Vh(){if($h){const e=Array.from(Lh).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{Mh(e).length&&(n.set(e,Mh(e)),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render()}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}$h=!1,Bh=!1,Lh.forEach(e=>e.complete()),Lh.clear()}function Wh(){Lh.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&($h=!0)})}class Uh{constructor(e,t,n,r,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Lh.add(this),Bh||(Bh=!0,Mf.read(Wh),Mf.resolveKeyframes(Vh))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==r?void 0:r.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(n&&t){const r=n.readValue(t,i);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=i),r&&void 0===o&&r.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Lh.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Lh.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Hh=(e,t)=>n=>Boolean(Xd(n)&&Gd.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),qh=(e,t,n)=>r=>{if(!Xd(r))return r;const[o,i,a,s]=r.match(Qd);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Qh={...Wd,transform:e=>Math.round((e=>Vd(0,255,e))(e))},Kh={test:Hh("rgb","red"),parse:qh("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Qh.transform(e)+", "+Qh.transform(t)+", "+Qh.transform(n)+", "+qd(Ud.transform(r))+")"},Gh={test:Hh("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Kh.transform},Xh={test:Hh("hsl","hue"),parse:qh("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Jd.transform(qd(t))+", "+Jd.transform(qd(n))+", "+qd(Ud.transform(r))+")"},Yh={test:e=>Kh.test(e)||Gh.test(e)||Xh.test(e),parse:e=>Kh.test(e)?Kh.parse(e):Xh.test(e)?Xh.parse(e):Gh.parse(e),transform:e=>Xd(e)?e:e.hasOwnProperty("red")?Kh.transform(e):Xh.transform(e)},Zh="number",Jh="color",ep=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function tp(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(ep,e=>(Yh.test(e)?(r.color.push(i),o.push(Jh),n.push(Yh.parse(e))):e.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(e)):(r.number.push(i),o.push(Zh),n.push(parseFloat(e))),++i,"${}")).split("${}");return{values:n,split:a,indexes:r,types:o}}function np(e){return tp(e).values}function rp(e){const{split:t,types:n}=tp(e),r=t.length;return e=>{let o="";for(let i=0;i<r;i++)if(o+=t[i],void 0!==e[i]){const t=n[i];o+=t===Zh?qd(e[i]):t===Jh?Yh.transform(e[i]):e[i]}return o}}const op=e=>"number"==typeof e?0:e,ip={test:function(e){var t,n;return isNaN(e)&&Xd(e)&&((null===(t=e.match(Qd))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Kd))||void 0===n?void 0:n.length)||0)>0},parse:np,createTransformer:rp,getAnimatableNone:function(e){const t=np(e);return rp(e)(t.map(op))}},ap=new Set(["brightness","contrast","saturate","opacity"]);function sp(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Qd)||[];if(!r)return e;const o=n.replace(r,"");let i=ap.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const lp=/\b([a-z-]*)\(.*?\)/gu,up={...ip,getAnimatableNone:e=>{const t=e.match(lp);return t?t.map(sp).join(" "):e}},cp={...af,color:Yh,backgroundColor:Yh,outlineColor:Yh,fill:Yh,stroke:Yh,borderColor:Yh,borderTopColor:Yh,borderRightColor:Yh,borderBottomColor:Yh,borderLeftColor:Yh,filter:up,WebkitFilter:up},dp=e=>cp[e];function fp(e,t){let n=dp(e);return n!==up&&(n=ip),n.getAnimatableNone?n.getAnimatableNone(t):void 0}class hp extends Uh{constructor(e,t,n,r){super(e,t,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){const r=e[n];if("string"==typeof r&&Ld(r)){const o=Ph(r,t.current);void 0!==o&&(e[n]=o)}}if(!Th.has(n)||2!==e.length)return this.resolveNoneKeyframes();const[r,o]=e,i=Dh(r),a=Dh(o);if(i!==a)if(Rh(i)&&Rh(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)Sh(e[t])&&n.push(t);n.length&&function(e,t,n){let r,o=0;for(;o<e.length&&!r;)"string"==typeof e[o]&&"none"!==e[o]&&"0"!==e[o]&&(r=e[o]),o++;if(r&&n)for(const o of t)e[o]=fp(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=jh[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=jh[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}const pp=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!ip.test(e)&&"0"!==e||e.startsWith("url(")));class mp{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||(Wh(),Vh()),this._resolved}onKeyframesResolved(e,t){const{name:n,type:r,velocity:o,delay:i,onComplete:a,onUpdate:s}=this.options;if(!function(e,t,n,r){const o=e[0];if(null===o)return!1;const i=e[e.length-1],a=pp(o,t),s=pp(i,t);return kh(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&r)}(e,n,r,o)){if(!i)return null==s||s(vh(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const l=this.initPlayback(e,t);!1!==l&&(this._resolved={keyframes:e,finalKeyframe:t,...l},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}function gp(e,t){return t?e*(1e3/t):0}function vp(e,t,n){const r=Math.max(t-5,0);return gp(n-e(r),t-r)}const yp=12;function bp(e,t){return e*Math.sqrt(1-t*t)}const xp=["duration","bounce"],wp=["stiffness","damping","mass"];function Sp(e,t){return t.some(t=>void 0!==e[t])}function kp({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],a={done:!1,value:o},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Sp(e,wp)&&Sp(e,xp)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;kh(e<=uh(10),"Spring duration must be 10 seconds or less");let a=1-t;a=Vd(.05,1,a),e=Vd(.01,10,ch(e)),a<1?(o=t=>{const r=t*a,o=r*e;return.001-(r-n)/bp(t,a)*Math.exp(-o)},i=t=>{const r=t*a*e,i=r*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-r),u=bp(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<yp;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=uh(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-ch(r.velocity||0)}),h=d||0,p=l/(2*Math.sqrt(s*u)),m=i-o,g=ch(Math.sqrt(s/u)),v=Math.abs(m)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),p<1){const e=bp(g,p);y=t=>{const n=Math.exp(-p*g*t);return i-n*((h+p*g*m)/e*Math.sin(e*t)+m*Math.cos(e*t))}}else if(1===p)y=e=>i-Math.exp(-g*e)*(m+(h+g*m)*e);else{const e=g*Math.sqrt(p*p-1);y=t=>{const n=Math.exp(-p*g*t),r=Math.min(e*t,300);return i-n*((h+p*g*m)*Math.sinh(r)+e*m*Math.cosh(r))/e}}return{calculatedDuration:f&&c||null,next:e=>{const r=y(e);if(f)a.done=e>=c;else{let o=h;0!==e&&(o=p<1?vp(y,e,r):0);const s=Math.abs(o)<=n,l=Math.abs(i-r)<=t;a.done=s&&l}return a.value=a.done?i:r,a}}}function Cp({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},h=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=n*t;const m=d+p,g=void 0===a?m:a(m);g!==m&&(p=g-d);const v=e=>-p*Math.exp(-e/r),y=e=>g+v(e),b=e=>{const t=v(e),n=y(e);f.done=Math.abs(t)<=u,f.value=f.done?g:n};let x,w;const S=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(x=e,w=kp({keyframes:[f.value,h(f.value)],velocity:vp(y,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),S(e)),void 0!==x&&e>=x?w.next(e-x):(!t&&b(e),f)}}}const Ep=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function _p(e,t,n,r){if(e===t&&n===r)return zf;return o=>0===o||1===o?o:Ep(function(e,t,n,r,o){let i,a,s=0;do{a=t+(n-t)/2,i=Ep(a,r,o)-e,i>0?n=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,n),t,r)}const Pp=_p(.42,0,1,1),Tp=_p(0,0,.58,1),Rp=_p(.42,0,.58,1),Ap=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Op=e=>t=>1-e(1-t),Fp=e=>1-Math.sin(Math.acos(e)),zp=Op(Fp),Mp=Ap(Fp),jp=_p(.33,1.53,.69,.99),Ip=Op(jp),Np=Ap(Ip),Dp={linear:zf,easeIn:Pp,easeInOut:Rp,easeOut:Tp,circIn:Fp,circInOut:Mp,circOut:zp,backIn:Ip,backInOut:Np,backOut:jp,anticipate:e=>(e*=2)<1?.5*Ip(e):.5*(2-Math.pow(2,-10*(e-1)))},Lp=e=>{if(Array.isArray(e)){Ch(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return _p(t,n,r,o)}return"string"==typeof e?(Ch(void 0!==Dp[e],`Invalid easing type '${e}'`),Dp[e]):e},Bp=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},$p=(e,t,n)=>e+(t-e)*n;function Vp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const Wp=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},Up=[Gh,Kh,Xh];function Hp(e){const t=(n=e,Up.find(e=>e.test(n)));var n;Ch(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Xh&&(r=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,a=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=Vp(s,r,e+1/3),i=Vp(s,r,e),a=Vp(s,r,e-1/3)}else o=i=a=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:r}}(r)),r}const qp=(e,t)=>{const n=Hp(e),r=Hp(t),o={...n};return e=>(o.red=Wp(n.red,r.red,e),o.green=Wp(n.green,r.green,e),o.blue=Wp(n.blue,r.blue,e),o.alpha=$p(n.alpha,r.alpha,e),Kh.transform(o))};function Qp(e,t){return n=>n>0?t:e}function Kp(e,t){return n=>$p(e,t,n)}function Gp(e){return"number"==typeof e?Kp:"string"==typeof e?Ld(e)?Qp:Yh.test(e)?qp:Zp:Array.isArray(e)?Xp:"object"==typeof e?Yh.test(e)?qp:Yp:Qp}function Xp(e,t){const n=[...e],r=n.length,o=e.map((e,n)=>Gp(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}}function Yp(e,t){const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Gp(e[o])(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Zp=(e,t)=>{const n=ip.createTransformer(t),r=tp(e),o=tp(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?Hf(Xp(function(e,t){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;r[i]=l,o[a]++}return r}(r,o),o.values),n):(kh(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Qp(e,t))};function Jp(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?$p(e,t,n):Gp(e)(e,t)}function em({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(r)?r.map(Lp):Lp(r),i={done:!1,value:t[0]},a=function(e,t){return e.map(e=>e*t)}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=Bp(0,t,r);e.push($p(n,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Ch(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],o=n||Jp,i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||zf:t;i=Hf(e,i)}r.push(i)}return r}(t,r,o),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=Bp(e[n],e[n+1],t);return a[n](r)};return n?t=>l(Vd(e[0],e[i-1],t)):l}(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map(()=>u||Rp).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const tm=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Mf.update(t,!0),stop:()=>jf(t),now:()=>If.isProcessing?If.timestamp:xh.now()}},nm={decay:Cp,inertia:Cp,tween:em,keyframes:em,spring:kp},rm=e=>e/100;class om extends mp{constructor({KeyframeResolver:e=Uh,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle";const{name:n,motionValue:r,keyframes:o}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(o,i,n,r):this.resolver=new e(o,i,n,r),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,a=nm[t]||em;let s,l;a!==em&&"number"!=typeof e[0]&&(s=Hf(rm,Jp(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:h,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,b=o;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===h?(n=1-n,p&&(n-=p/c)):"mirror"===h&&(b=i)),y=Vd(0,1,n)*c}const x=v?{done:!1,value:s[0]}:b.next(y);a&&(x.value=a(x.value));let{done:w}=x;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return S&&void 0!==r&&(x.value=vh(s,this.options,r)),m&&m(x.value),S&&this.finish(),x}get duration(){const{resolved:e}=this;return e?ch(e.calculatedDuration):0}get time(){return ch(this.currentTime)}set time(e){e=uh(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=ch(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=tm,onPlay:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const im=e=>Array.isArray(e)&&"number"==typeof e[0];function am(e){return Boolean(!e||"string"==typeof e&&lm[e]||im(e)||Array.isArray(e)&&e.every(am))}const sm=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,lm={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:sm([0,.65,.55,1]),circOut:sm([.55,0,1,.45]),backIn:sm([.31,.01,.66,-.59]),backOut:sm([.33,1.53,.69,.99])};function um(e){if(e)return im(e)?sm(e):Array.isArray(e)?e.map(um):lm[e]}const cm=function(){let e;return()=>(void 0===e&&(e=Object.hasOwnProperty.call(Element.prototype,"animate")),e)}(),dm=new Set(["opacity","clipPath","filter","transform"]);class fm extends mp{constructor(e){super(e);const{name:t,motionValue:n,keyframes:r}=this.options;this.resolver=new hp(r,(e,t)=>this.onKeyframesResolved(e,t),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,motionValue:o,name:i}=this.options;if(!(null===(n=o.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||"backgroundColor"===e.name||!am(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:o,...i}=this.options,a=function(e,t){const n=new om({...t,keyframes:e,repeat:0,delay:0});let r={done:!1,value:e[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,i);e=a.keyframes,r=a.duration,this.options.times=a.times,this.options.ease=a.ease}const a=function(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=um(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,i,e,{...this.options,duration:r});return a.startTime=xh.now(),this.pendingTimeline?(a.timeline=this.pendingTimeline,this.pendingTimeline=void 0):a.onfinish=()=>{const{onComplete:n}=this.options;o.set(vh(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:a,duration:r,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return ch(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return ch(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=uh(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return zf;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return zf}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n}=e;if("idle"!==t.playState&&"finished"!==t.playState){if(this.time){const{motionValue:e,onUpdate:t,onComplete:r,...o}=this.options,i=new om({...o,keyframes:n}),a=uh(this.time);e.setWithVelocity(i.sample(a-10).value,i.sample(a).value,10)}this.cancel()}}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;return cm()&&n&&dm.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&"mirror"!==o&&0!==i&&"inertia"!==a}}const hm=(e,t,n,r={},o,i)=>a=>{const s=mh(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u-=uh(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...ph(e,c)}),c.duration&&(c.duration=uh(c.duration)),c.repeatDelay&&(c.repeatDelay=uh(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1===c.type&&(c.duration=0,0===c.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=vh(c.keyframes,s);if(void 0!==e)return void Mf.update(()=>{c.onUpdate(e),c.onComplete()})}return!i&&fm.supports(c)?new fm(c):new om(c)};function pm(e){return Boolean(zd(e)&&e.add)}function mm(e,t){-1===e.indexOf(t)&&e.push(t)}function gm(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class vm{constructor(){this.subscriptions=[]}add(e){return mm(this.subscriptions,e),()=>gm(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ym={current:void 0};class bm{constructor(e,t={}){var n;this.version="11.0.20",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=xh.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=xh.now()}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new vm);const n=this.events[e].add(t);return"change"===e?()=>{n(),Mf.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ym.current&&ym.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=xh.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return gp(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function xm(e,t){return new bm(e,t)}function wm(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,xm(n))}function Sm({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function km(e,t,{delay:n=0,transitionOverride:r,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;const u=e.getValue("willChange");r&&(a=r);const c=[],d=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const r=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||d&&Sm(d,t))continue;const s={delay:n,elapsed:0,...mh(a||{},t)};let f=!1;if(window.HandoffAppearAnimations){const n=e.getProps()[id];if(n){const e=window.HandoffAppearAnimations(n,t);null!==e&&(s.elapsed=e,f=!0)}}r.start(hm(t,r,o,e.shouldReduceMotion&&Od.has(t)?{type:!1}:s,e,f));const h=r.animation;h&&(pm(u)&&(u.add(t),h.then(()=>u.remove(t))),c.push(h))}return s&&Promise.all(c).then(()=>{Mf.update(()=>{s&&function(e,t){const n=lh(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const t in i)wm(e,t,Rf(i[t]))}(e,s)})}),c}function Cm(e,t,n={}){var r;const o=lh(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const a=o?()=>Promise.all(km(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>s-e*r;return Array.from(e.variantChildren).sort(Em).forEach((e,r)=>{e.notify("AnimationStart",t),a.push(Cm(e,t,{...i,delay:n+l(r)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+r,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then(()=>t())}return Promise.all([a(),s(n.delay)])}function Em(e,t){return e.sortNodePosition(t)}const _m=[...pd].reverse(),Pm=pd.length;function Tm(e){let t=function(e){return t=>Promise.all(t.map(({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map(t=>Cm(e,t,n));r=Promise.all(o)}else if("string"==typeof t)r=Cm(e,t,n);else{const o="function"==typeof t?lh(e,t,n.custom):t;r=Promise.all(km(e,o,n))}return r.then(()=>{Mf.postRender(()=>{e.notify("AnimationComplete",t)})})}(e,t,n)))}(e);const n={animate:Am(!0),whileInView:Am(),whileHover:Am(),whileTap:Am(),whileDrag:Am(),whileFocus:Am(),exit:Am()};let r=!0;const o=t=>(n,r)=>{var o;const i=lh(e,r,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<Pm;t++){const f=_m[t],h=n[f],p=void 0!==a[f]?a[f]:s[f],m=fd(p),g=f===i?h.isActive:null;!1===g&&(d=t);let v=p===s[f]&&p!==a[f]&&m;if(v&&r&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...c},!h.isActive&&null===g||!p&&!h.prevProp||hd(p)||"boolean"==typeof p)continue;let y=Rm(h.prevProp,p)||f===i&&h.isActive&&!v&&m||t>d&&m,b=!1;const x=Array.isArray(p)?p:[p];let w=x.reduce(o(f),{});!1===g&&(w={});const{prevResolvedValues:S={}}=h,k={...S,...w},C=e=>{y=!0,u.has(e)&&(b=!0,u.delete(e)),h.needsAnimating[e]=!0};for(const e in k){const t=w[e],n=S[e];if(c.hasOwnProperty(e))continue;let r=!1;r=Tf(t)&&Tf(n)?!sh(t,n):t!==n,r?null!=t?C(e):u.add(e):void 0!==t&&u.has(e)?C(e):h.protectedKeys[e]=!0}h.prevProp=p,h.prevResolvedValues=w,h.isActive&&(c={...c,...w}),r&&e.blockInitialAnimation&&(y=!1),!y||v&&!b||l.push(...x.map(e=>({animation:e,options:{type:f}})))}if(u.size){const t={};u.forEach(n=>{const r=e.getBaseTarget(n);t[n]=void 0===r?null:r}),l.push({animation:t})}let f=Boolean(l.length);return!r||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,r){var o;if(n[t].isActive===r)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)}),n[t].isActive=r;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Rm(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!sh(t,e)}function Am(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Om=0;const Fm={animation:{Feature:class extends Yf{constructor(e){super(e),e.animationState||(e.animationState=Tm(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),hd(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Yf{constructor(){super(...arguments),this.id=Om++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},zm=(e,t)=>Math.abs(e-t);class Mm{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Nm(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=zm(e.x,t.x),r=zm(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=If;this.history.push({...r,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=jm(t,this.transformPagePoint),Mf.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Nm("pointercancel"===e.type?this.lastMoveEventInfo:jm(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),r&&r(e,i)},!$f(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const i=jm(Vf(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=If;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Nm(i,this.history)),this.removeListeners=Hf(Wf(this.contextWindow,"pointermove",this.handlePointerMove),Wf(this.contextWindow,"pointerup",this.handlePointerUp),Wf(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),jf(this.updatePoint)}}function jm(e,t){return t?{point:t(e.point)}:e}function Im(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Nm({point:e},t){return{point:e,delta:Im(e,Lm(t)),offset:Im(e,Dm(t)),velocity:Bm(t,.1)}}function Dm(e){return e[0]}function Lm(e){return e[e.length-1]}function Bm(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=Lm(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>uh(t)));)n--;if(!r)return{x:0,y:0};const i=ch(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function $m(e){return e.max-e.min}function Vm(e,t=0,n=.01){return Math.abs(e-t)<=n}function Wm(e,t,n,r=.5){e.origin=r,e.originPoint=$p(t.min,t.max,e.origin),e.scale=$m(n)/$m(t),(Vm(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=$p(n.min,n.max,e.origin)-e.originPoint,(Vm(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Um(e,t,n,r){Wm(e.x,t.x,n.x,r?r.originX:void 0),Wm(e.y,t.y,n.y,r?r.originY:void 0)}function Hm(e,t,n){e.min=n.min+t.min,e.max=e.min+$m(t)}function qm(e,t,n){e.min=t.min-n.min,e.max=e.min+$m(t)}function Qm(e,t,n){qm(e.x,t.x,n.x),qm(e.y,t.y,n.y)}function Km(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Gm(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Xm=.35;function Ym(e,t,n){return{min:Zm(e,t),max:Zm(e,n)}}function Zm(e,t){return"number"==typeof e?e:e[t]||0}const Jm=()=>({x:{min:0,max:0},y:{min:0,max:0}});function eg(e){return[e("x"),e("y")]}function tg({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ng(e){return void 0===e||1===e}function rg({scale:e,scaleX:t,scaleY:n}){return!ng(e)||!ng(t)||!ng(n)}function og(e){return rg(e)||ig(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function ig(e){return ag(e.x)||ag(e.y)}function ag(e){return e&&"0%"!==e}function sg(e,t,n){return n+t*(e-n)}function lg(e,t,n,r,o){return void 0!==o&&(e=sg(e,o,r)),sg(e,n,r)+t}function ug(e,t=0,n=1,r,o){e.min=lg(e.min,t,n,r,o),e.max=lg(e.max,t,n,r,o)}function cg(e,{x:t,y:n}){ug(e.x,t.translate,t.scale,t.originPoint),ug(e.y,n.translate,n.scale,n.originPoint)}function dg(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function fg(e,t){e.min=e.min+t,e.max=e.max+t}function hg(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,a=$p(e.min,e.max,i);ug(e,t[n],t[r],a,t.scale)}const pg=["x","scaleX","originX"],mg=["y","scaleY","originY"];function gg(e,t){hg(e.x,t,pg),hg(e.y,t,mg)}function vg(e,t){return tg(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const yg=({current:e})=>e?e.ownerDocument.defaultView:null,bg=new WeakMap;class xg{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new Mm(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Vf(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Gf(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eg(e=>{let t=this.getAxisMotionValue(e).get()||0;if(Jd.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=$m(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),o&&o(e,t);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>eg(e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:yg(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&o(e,t)}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!wg(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?$p(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?$p(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&dd(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Km(e.x,n,o),y:Km(e.y,t,r)}}(r.layoutBox,t),this.elastic=function(e=Xm){return!1===e?e=0:!0===e&&(e=Xm),{x:Ym(e,"left","right"),y:Ym(e,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&eg(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!dd(e))return!1;const n=e.current;Ch(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=vg(e,n),{scroll:o}=t;return o&&(fg(r.x,o.offset.x),fg(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Gm(e.x,t.x),y:Gm(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=tg(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=eg(a=>{if(!wg(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(hm(e,n,0,t,this.visualElement))}stopAnimation(){eg(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){eg(e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()})}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eg(t=>{const{drag:n}=this.getProps();if(!wg(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-$p(n,i,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!dd(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};eg(e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=$m(e),o=$m(t);return o>r?n=Bp(t.min,t.max-r,e.min):r>o&&(n=Bp(e.min,e.max-o,t.min)),Vd(0,1,n)}({min:n,max:n},this.constraints[e])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eg(t=>{if(!wg(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set($p(o,i,r[t]))})}addListeners(){if(!this.visualElement.current)return;bg.set(this.visualElement,this);const e=Wf(this.visualElement.current,"pointerdown",e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),t=()=>{const{dragConstraints:e}=this.getProps();dd(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Bf(window,"resize",()=>this.scalePositionWithinConstraints()),i=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eg(t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Xm,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function wg(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Sg=e=>(t,n)=>{e&&e(t,n)},kg={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Cg(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Eg={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!ef.test(e))return e;e=parseFloat(e)}return`${Cg(e,t.target.x)}% ${Cg(e,t.target.y)}%`}},_g={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ip.parse(e);if(o.length>5)return r;const i=ip.createTransformer(e),a="number"!=typeof o[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=$p(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}};class Pg extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=Rg,Object.assign(Rd,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),kg.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Mf.postRender(()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()})),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ud.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Tg(t){const[n,r]=Zc(),o=(0,e.useContext)(wd);return e.createElement(Pg,{...t,layoutGroup:o,switchLayoutGroup:(0,e.useContext)(Sd),isPresent:n,safeToRemove:r})}const Rg={borderRadius:{...Eg,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Eg,borderTopRightRadius:Eg,borderBottomLeftRadius:Eg,borderBottomRightRadius:Eg,boxShadow:_g},Ag=["TopLeft","TopRight","BottomLeft","BottomRight"],Og=Ag.length,Fg=e=>"string"==typeof e?parseFloat(e):e,zg=e=>"number"==typeof e||ef.test(e);function Mg(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jg=Ng(0,.5,zp),Ig=Ng(.5,.95,zf);function Ng(e,t,n){return r=>r<e?0:r>t?1:n(Bp(e,t,r))}function Dg(e,t){e.min=t.min,e.max=t.max}function Lg(e,t){Dg(e.x,t.x),Dg(e.y,t.y)}function Bg(e,t,n,r,o){return e=sg(e-=t,1/n,r),void 0!==o&&(e=sg(e,1/o,r)),e}function $g(e,t,[n,r,o],i,a){!function(e,t=0,n=1,r=.5,o,i=e,a=e){if(Jd.test(t)&&(t=parseFloat(t),t=$p(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=$p(i.min,i.max,r);e===i&&(s-=t),e.min=Bg(e.min,t,n,s,o),e.max=Bg(e.max,t,n,s,o)}(e,t[n],t[r],t[o],t.scale,i,a)}const Vg=["x","scaleX","originX"],Wg=["y","scaleY","originY"];function Ug(e,t,n,r){$g(e.x,t,Vg,n?n.x:void 0,r?r.x:void 0),$g(e.y,t,Wg,n?n.y:void 0,r?r.y:void 0)}function Hg(e){return 0===e.translate&&1===e.scale}function qg(e){return Hg(e.x)&&Hg(e.y)}function Qg(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function Kg(e){return $m(e.x)/$m(e.y)}class Gg{constructor(){this.members=[]}add(e){mm(this.members,e),e.scheduleRender()}remove(e){if(gm(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex(t=>e===t);if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xg(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o,skewX:i,skewY:a}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `),i&&(r+=`skewX(${i}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,s=e.y.scale*t.y;return 1===a&&1===s||(r+=`scale(${a}, ${s})`),r||"none"}const Yg=(e,t)=>e.depth-t.depth;class Zg{constructor(){this.children=[],this.isDirty=!1}add(e){mm(this.children,e),this.isDirty=!0}remove(e){gm(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Yg),this.isDirty=!1,this.children.forEach(e)}}const Jg=["","X","Y","Z"],ev={visibility:"hidden"};let tv=0;const nv={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rv(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ov({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=tv++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;this.projectionUpdateScheduled=!1,nv.totalNodes=nv.resolvedTargetDeltas=nv.recalculatedProjection=0,this.nodes.forEach(sv),this.nodes.forEach(pv),this.nodes.forEach(mv),this.nodes.forEach(lv),e=nv,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Zg)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new vm),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e){const t=xh.now(),n=({timestamp:r})=>{const o=r-t;o>=250&&(jf(n),e(o-250))};return Mf.read(n,!0),()=>jf(n)}(r),kg.hasAnimatedSinceResize&&(kg.hasAnimatedSinceResize=!1,this.nodes.forEach(hv))})}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||wv,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!Qg(this.targetLayout,r)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...mh(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||hv(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,jf(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(gv),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(cv);this.isUpdating||this.nodes.forEach(dv),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(fv),this.nodes.forEach(iv),this.nodes.forEach(av),this.clearAllSnapshots();const e=xh.now();If.delta=Vd(0,1e3/60,e-If.timestamp),If.timestamp=e,If.isProcessing=!0,Nf.update.process(If),Nf.preRender.process(If),Nf.render.process(If),If.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ud.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(uv),this.sharedNodes.forEach(vv)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Mf.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Mf.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!qg(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||og(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),Cv((r=n).x),Cv(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(fg(t.x,n.offset.x),fg(t.y,n.offset.y)),t}removeElementScroll(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Lg(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){Lg(t,e);const{scroll:n}=this.root;n&&(fg(t.x,-n.offset.x),fg(t.y,-n.offset.y))}fg(t.x,o.offset.x),fg(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n={x:{min:0,max:0},y:{min:0,max:0}};Lg(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&gg(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),og(r.latestValues)&&gg(n,r.latestValues)}return og(this.latestValues)&&gg(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Lg(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!og(n.latestValues))continue;rg(n.latestValues)&&n.updateSnapshot();const r=Jm();Lg(r,n.measurePageBox()),Ug(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return og(this.latestValues)&&Ug(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==If.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=If.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Qm(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Lg(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Hm(a.x,s.x,l.x),Hm(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Lg(this.target,this.layout.layoutBox),cg(this.target,this.targetDelta)):Lg(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Qm(this.relativeTargetOrigin,this.target,e.target),Lg(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nv.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!rg(this.parent.latestValues)&&!ig(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===If.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;Lg(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&gg(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,cg(e,a)),r&&og(i.latestValues)&&gg(e,i.latestValues))}t.x=dg(t.x),t.y=dg(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}});const u=this.projectionTransform;Um(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Xg(this.projectionDelta,this.treeScale),this.projectionTransform===u&&this.treeScale.x===a&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nv.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(xv));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,f,h,p,m,g;yv(i.x,e.x,n),yv(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Qm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,p=this.relativeTargetOrigin,m=a,g=n,bv(h.x,p.x,m.x,g),bv(h.y,p.y,m.y,g),d&&(l=this.relativeTarget,f=d,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Lg(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=$p(0,void 0!==n.opacity?n.opacity:1,jg(r)),e.opacityExit=$p(void 0!==t.opacity?t.opacity:1,0,Ig(r))):i&&(e.opacity=$p(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Og;o++){const i=`border${Ag[o]}Radius`;let a=Mg(t,i),s=Mg(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||zg(a)===zg(s)?(e[i]=Math.max($p(Fg(a),Fg(s),r),0),(Jd.test(s)||Jd.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=$p(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(jf(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Mf.update(()=>{kg.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=zd(0)?0:xm(0);return r.start(hm("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ev(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=$m(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=$m(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Lg(t,n),gg(t,o),Um(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Gg),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};for(let t=0;t<Jg.length;t++)rv(`rotate${Jg[t]}`,e,r,this.animationValues),rv(`skew${Jg[t]}`,e,r,this.animationValues);e.render();for(const t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ev;const r={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Af(null==e?void 0:e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Af(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!og(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Xg(this.projectionDeltaWithTransform,this.treeScale,a),o&&(r.transform=o(a,r.transform));const{x:s,y:l}=this.projectionDelta;r.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:r.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Rd){if(void 0===a[e])continue;const{correct:t,applyTo:n}=Rd[e],o="none"===r.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?Af(null==e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(cv),this.root.sharedNodes.clear()}}}function iv(e){e.updateLayout()}function av(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?eg(e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=$m(r);r.min=t[e].min,r.max=r.min+o}):Ev(o,n.layoutBox,t)&&eg(r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],a=$m(t[r]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Um(a,t,n.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Um(s,e.applyTransform(r,!0),n.measuredBox):Um(s,t,n.layoutBox);const l=!qg(a);let u=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};Qm(a,n.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};Qm(s,t,i.layoutBox),Qg(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function sv(e){nv.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function lv(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uv(e){e.clearSnapshot()}function cv(e){e.clearMeasurements()}function dv(e){e.isLayoutDirty=!1}function fv(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hv(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function pv(e){e.resolveTargetDelta()}function mv(e){e.calcProjection()}function gv(e){e.resetSkewAndRotation()}function vv(e){e.removeLeadSnapshot()}function yv(e,t,n){e.translate=$p(t.translate,0,n),e.scale=$p(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function bv(e,t,n,r){e.min=$p(t.min,n.min,r),e.max=$p(t.max,n.max,r)}function xv(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const wv={duration:.45,ease:[.4,0,.1,1]},Sv=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),kv=Sv("applewebkit/")&&!Sv("chrome/")?Math.round:zf;function Cv(e){e.min=kv(e.min),e.max=kv(e.max)}function Ev(e,t,n){return"position"===e||"preserve-aspect"===e&&!Vm(Kg(t),Kg(n),.2)}const _v=ov({attachResizeListener:(e,t)=>Bf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pv={current:void 0},Tv=ov({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Pv.current){const e=new _v({});e.mount(window),e.setOptions({layoutScroll:!0}),Pv.current=e}return Pv.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Rv={pan:{Feature:class extends Yf{constructor(){super(...arguments),this.removePointerDownListener=zf}onPointerDown(e){this.session=new Mm(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:yg(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Sg(e),onStart:Sg(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&r(e,t)}}}mount(){this.removePointerDownListener=Wf(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Yf{constructor(e){super(e),this.removeGroupControls=zf,this.removeListeners=zf,this.controls=new xg(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||zf}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Tv,MeasureLayout:Tg}},Av={current:null},Ov={current:!1},Fv=new WeakMap,zv=[...Nh,Yh,ip],Mv=Object.keys(xd),jv=Mv.length,Iv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Nv=md.length;class Dv{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:o,visualState:i},a={}){this.resolveKeyframes=(e,t,n,r)=>new this.KeyframeResolver(e,t,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Uh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Mf.render(this.render,!1,!0);const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=gd(t),this.isVariantNode=vd(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&zd(t)&&(t.set(s[e],!1),pm(u)&&u.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Fv.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),Ov.current||function(){if(Ov.current=!0,td)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Av.current=e.matches;e.addListener(t),t()}else Av.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Av.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Fv.delete(this.current),this.projection&&this.projection.unmount(),jf(this.notifyUpdate),jf(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Od.has(e),r=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&Mf.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{r(),o(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,a;for(let e=0;e<jv;e++){const n=Mv[e],{isEnabled:r,Feature:o,ProjectionNode:s,MeasureLayout:l}=xd[n];s&&(i=s),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(a=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:a,layoutScroll:s,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||a&&dd(a),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:s,layoutRoot:l})}return a}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Iv.length;t++){const n=Iv[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],a=n[o];if(zd(i))e.addValue(o,i),pm(r)&&r.add(o);else if(zd(a))e.addValue(o,xm(i,{owner:e})),pm(r)&&r.remove(o);else if(a!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,xm(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<Nv;e++){const n=md[e],r=this.props[n];(fd(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=xm(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];var o;return null!=r&&("string"==typeof r&&(Eh(r)||wh(r))?r=parseFloat(r):(o=r,!zv.find(Ih(o))&&ip.test(t)&&(r=fp(e,t))),this.setBaseTarget(e,zd(r)?r.get():r)),zd(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t,n;const{initial:r}=this.props,o="string"==typeof r||"object"==typeof r?null===(n=_f(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom))||void 0===n?void 0:n[e]:void 0;if(r&&void 0!==o)return o;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||zd(i)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new vm),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Lv extends Dv{constructor(){super(...arguments),this.KeyframeResolver=hp}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Bv extends Lv{constructor(){super(...arguments),this.type="html"}readValueFromInstance(e,t){if(Od.has(t)){const e=dp(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Nd(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return vg(e,t)}build(e,t,n,r){sf(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Cf(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;zd(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,r){wf(e,t,n,r)}}class $v extends Lv{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Od.has(t)){const e=dp(t);return e&&e.default||0}return t=Sf.has(t)?t:od(t),e.getAttribute(t)}measureInstanceViewportBox(){return{x:{min:0,max:0},y:{min:0,max:0}}}scrapeMotionValuesFromProps(e,t){return Ef(e,t)}build(e,t,n,r){vf(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){kf(e,t,0,r)}mount(e){this.isSVGTag=yf(e.tagName),super.mount(e)}}const Vv=(e,t)=>Td(e)?new $v(t,{enableHardwareAcceleration:!1}):new Bv(t,{enableHardwareAcceleration:!0}),Wv={...Fm,...ah,...Rv,layout:{ProjectionNode:Tv,MeasureLayout:Tg}},Uv=_d((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Td(e)?Df:Lf,preloadedFeatures:n,useRender:xf(t),createVisualElement:r,Component:e}}(e,t,Wv,Vv));var Hv={initial:e=>{const{position:t}=e,n=["top","bottom"].includes(t)?"y":"x";let r=["top-right","bottom-right"].includes(t)?1:-1;return"bottom"===t&&(r=1),{opacity:0,[n]:24*r}},animate:{opacity:1,y:0,x:0,scale:1,transition:{duration:.4,ease:[.4,0,.2,1]}},exit:{opacity:0,scale:.85,transition:{duration:.2,ease:[.4,0,1,1]}}},qv=(0,e.memo)(t=>{const{id:n,message:r,onCloseComplete:o,onRequestRemove:i,requestClose:a=!1,position:s="bottom",duration:l=5e3,containerStyle:u,motionVariants:c=Hv,toastSpacing:d="0.5rem"}=t,[f,h]=(0,e.useState)(l),p=null===(m=(0,e.useContext)(Yc))||m.isPresent;var m;Xc(()=>{p||null==o||o()},[p]),Xc(()=>{h(l)},[l]);const g=()=>{p&&i()};(0,e.useEffect)(()=>{p&&a&&i()},[p,a,i]),function(t,n){const r=Zr(t);(0,e.useEffect)(()=>{if(null==n)return;let e=null;return e=window.setTimeout(()=>{r()},n),()=>{e&&window.clearTimeout(e)}},[n,r])}(g,f);const v=(0,e.useMemo)(()=>({pointerEvents:"auto",maxWidth:560,minWidth:300,margin:d,...u}),[u,d]),y=(0,e.useMemo)(()=>function(e){let t="center";return e.includes("right")&&(t="flex-end"),e.includes("left")&&(t="flex-start"),{display:"flex",flexDirection:"column",alignItems:t}}(s),[s]);return(0,jr.jsx)(Uv.div,{layout:!0,className:"chakra-toast",variants:c,initial:"initial",animate:"animate",exit:"exit",onHoverStart:()=>h(null),onHoverEnd:()=>h(l),custom:{position:s},style:y,children:(0,jr.jsx)(Mr.div,{role:"status","aria-atomic":"true",className:"chakra-toast__inner",__css:v,children:Ct(r,{id:n,onClose:g})})})});function Qv(e,t){var n;const r=null!=e?e:"bottom",o={"top-start":{ltr:"top-left",rtl:"top-right"},"top-end":{ltr:"top-right",rtl:"top-left"},"bottom-start":{ltr:"bottom-left",rtl:"bottom-right"},"bottom-end":{ltr:"bottom-right",rtl:"bottom-left"}}[r];return null!=(n=null==o?void 0:o[t])?n:r}function Kv(e){return(0,jr.jsx)(Nr,{viewBox:"0 0 24 24",...e,children:(0,jr.jsx)("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"})})}qv.displayName="ToastComponent";var Gv=function(){var e=go.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Xv=K((e,t)=>{const n=mr("Spinner",e),{label:r="Loading...",thickness:o="2px",speed:i="0.45s",emptyColor:a="transparent",className:s,...l}=ur(e),u=St("chakra-spinner",s),c={display:"inline-block",borderColor:"currentColor",borderStyle:"solid",borderRadius:"99999px",borderWidth:o,borderBottomColor:a,borderLeftColor:a,animation:`${Gv} ${i} linear infinite`,...n};return(0,jr.jsx)(Mr.div,{ref:t,__css:c,className:u,...l,children:r&&(0,jr.jsx)(Mr.span,{srOnly:!0,children:r})})});Xv.displayName="Spinner";var[Yv,Zv]=Gr({name:"AlertContext",hookName:"useAlertContext",providerName:"<Alert />"}),[Jv,ey]=Gr({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:"<Alert />"}),ty={info:{icon:function(e){return(0,jr.jsx)(Nr,{viewBox:"0 0 24 24",...e,children:(0,jr.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})})},colorScheme:"blue"},warning:{icon:Kv,colorScheme:"orange"},success:{icon:function(e){return(0,jr.jsx)(Nr,{viewBox:"0 0 24 24",...e,children:(0,jr.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})})},colorScheme:"green"},error:{icon:Kv,colorScheme:"red"},loading:{icon:Xv,colorScheme:"blue"}},ny=K(function(e,t){var n;const{status:r="info",addRole:o=!0,...i}=ur(e),a=null!=(n=e.colorScheme)?n:function(e){return ty[e].colorScheme}(r),s=gr("Alert",{...e,colorScheme:a}),l={width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden",...s.container};return(0,jr.jsx)(Yv,{value:{status:r},children:(0,jr.jsx)(Jv,{value:s,children:(0,jr.jsx)(Mr.div,{"data-status":r,role:o?"alert":void 0,ref:t,...i,className:St("chakra-alert",e.className),__css:l})})})});function ry(e){const{status:t}=Zv(),n=function(e){return ty[e].icon}(t),r=ey(),o="loading"===t?r.spinner:r.icon;return(0,jr.jsx)(Mr.span,{display:"inherit","data-status":t,...e,className:St("chakra-alert__icon",e.className),__css:o,children:e.children||(0,jr.jsx)(n,{h:"100%",w:"100%"})})}ny.displayName="Alert",ry.displayName="AlertIcon";var oy=K(function(e,t){const n=ey(),{status:r}=Zv();return(0,jr.jsx)(Mr.div,{ref:t,"data-status":r,...e,className:St("chakra-alert__title",e.className),__css:n.title})});oy.displayName="AlertTitle";var iy=K(function(e,t){const n=ey(),{status:r}=Zv(),o={display:"inline",...n.description};return(0,jr.jsx)(Mr.div,{ref:t,"data-status":r,...e,className:St("chakra-alert__desc",e.className),__css:o})});function ay(e){return(0,jr.jsx)(Nr,{focusable:"false","aria-hidden":!0,...e,children:(0,jr.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})})}iy.displayName="AlertDescription";var sy=K(function(e,t){const n=mr("CloseButton",e),{children:r,isDisabled:o,__css:i,...a}=ur(e);return(0,jr.jsx)(Mr.button,{type:"button","aria-label":"Close",ref:t,disabled:o,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...i},...a,children:r||(0,jr.jsx)(ay,{width:"1em",height:"1em"})})});sy.displayName="CloseButton";var ly=function(e){let t=e;const n=new Set,r=e=>{t=e(t),n.forEach(e=>e())};return{getState:()=>t,subscribe:t=>(n.add(t),()=>{r(()=>e),n.delete(t)}),removeToast:(e,t)=>{r(n=>({...n,[t]:n[t].filter(t=>t.id!=e)}))},notify:(e,t)=>{const n=function(e,t={}){var n,r;uy+=1;const o=null!=(n=t.id)?n:uy,i=null!=(r=t.position)?r:"bottom";return{id:o,message:e,position:i,duration:t.duration,onCloseComplete:t.onCloseComplete,onRequestRemove:()=>ly.removeToast(String(o),i),status:t.status,requestClose:!1,containerStyle:t.containerStyle}}(e,t),{position:o,id:i}=n;return r(e=>{var t,r;const i=o.includes("top")?[n,...null!=(t=e[o])?t:[]]:[...null!=(r=e[o])?r:[],n];return{...e,[o]:i}}),i},update:(e,t)=>{e&&r(n=>{const r={...n},{position:o,index:i}=Qc(r,e);return o&&-1!==i&&(r[o][i]={...r[o][i],...t,message:dy(t)}),r})},closeAll:({positions:e}={})=>{r(t=>(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((e,n)=>(e[n]=t[n].map(e=>({...e,requestClose:!0})),e),{...t}))},close:e=>{r(t=>{const n=Kc(t,e);return n?{...t,[n]:t[n].map(t=>t.id==e?{...t,requestClose:!0}:t)}:t})},isActive:e=>Boolean(Qc(ly.getState(),e).position)}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]}),uy=0,cy=e=>{const{status:t,variant:n="solid",id:r,title:o,isClosable:i,onClose:a,description:s,colorScheme:l,icon:u}=e,c=r?{root:`toast-${r}`,title:`toast-${r}-title`,description:`toast-${r}-description`}:void 0;return(0,jr.jsxs)(ny,{addRole:!1,status:t,variant:n,id:null==c?void 0:c.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,jr.jsx)(ry,{children:u}),(0,jr.jsxs)(Mr.div,{flex:"1",maxWidth:"100%",children:[o&&(0,jr.jsx)(oy,{id:null==c?void 0:c.title,children:o}),s&&(0,jr.jsx)(iy,{id:null==c?void 0:c.description,display:"block",children:s})]}),i&&(0,jr.jsx)(sy,{size:"sm",onClick:a,position:"absolute",insetEnd:1,top:1})]})};function dy(e={}){const{render:t,toastComponent:n=cy}=e;return r=>"function"==typeof t?t({...r,...e}):(0,jr.jsx)(n,{...r,...e})}function fy(){const t=(0,e.useRef)(!1);return nd(()=>(t.current=!0,()=>{t.current=!1}),[]),t}class hy extends e.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function py({children:t,isPresent:n}){const r=(0,e.useId)(),o=(0,e.useRef)(null),i=(0,e.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,e.useContext)(Jc);return(0,e.useInsertionEffect)(()=>{const{width:e,height:t,top:s,left:l}=i.current;if(n||!o.current||!e||!t)return;o.current.dataset.motionPopId=r;const u=document.createElement("style");return a&&(u.nonce=a),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            top: ${s}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(u)}},[n]),e.createElement(hy,{isPresent:n,childRef:o,sizeRef:i},e.cloneElement(t,{ref:o}))}const my=({children:t,initial:n,isPresent:r,onExitComplete:o,custom:i,presenceAffectsLayout:a,mode:s})=>{const l=Pf(gy),u=(0,e.useId)(),c=(0,e.useMemo)(()=>({id:u,initial:n,isPresent:r,custom:i,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;o&&o()},register:e=>(l.set(e,!1),()=>l.delete(e))}),a?void 0:[r]);return(0,e.useMemo)(()=>{l.forEach((e,t)=>l.set(t,!1))},[r]),e.useEffect(()=>{!r&&!l.size&&o&&o()},[r]),"popLayout"===s&&(t=e.createElement(py,{isPresent:r},t)),e.createElement(Yc.Provider,{value:c},t)};function gy(){return new Map}const vy=e=>e.key||"",yy=({children:t,custom:n,initial:r=!0,onExitComplete:o,exitBeforeEnter:i,presenceAffectsLayout:a=!0,mode:s="sync"})=>{Ch(!i,"Replace exitBeforeEnter with mode='wait'");const l=(0,e.useContext)(wd).forceRender||function(){const t=fy(),[n,r]=(0,e.useState)(0),o=(0,e.useCallback)(()=>{t.current&&r(n+1)},[n]);return[(0,e.useCallback)(()=>Mf.postRender(o),[o]),n]}()[0],u=fy(),c=function(t){const n=[];return e.Children.forEach(t,t=>{(0,e.isValidElement)(t)&&n.push(t)}),n}(t);let d=c;const f=(0,e.useRef)(new Map).current,h=(0,e.useRef)(d),p=(0,e.useRef)(new Map).current,m=(0,e.useRef)(!0);var g;if(nd(()=>{m.current=!1,function(e,t){e.forEach(e=>{const n=vy(e);t.set(n,e)})}(c,p),h.current=d}),g=()=>{m.current=!0,p.clear(),f.clear()},(0,e.useEffect)(()=>()=>g(),[]),m.current)return e.createElement(e.Fragment,null,d.map(t=>e.createElement(my,{key:vy(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:s},t)));d=[...d];const v=h.current.map(vy),y=c.map(vy),b=v.length;for(let e=0;e<b;e++){const t=v[e];-1!==y.indexOf(t)||f.has(t)||f.set(t,void 0)}return"wait"===s&&f.size&&(d=[]),f.forEach((t,r)=>{if(-1!==y.indexOf(r))return;const i=p.get(r);if(!i)return;const m=v.indexOf(r);let g=t;if(!g){const t=()=>{f.delete(r);const e=Array.from(p.keys()).filter(e=>!y.includes(e));if(e.forEach(e=>p.delete(e)),h.current=c.filter(t=>{const n=vy(t);return n===r||e.includes(n)}),!f.size){if(!1===u.current)return;l(),o&&o()}};g=e.createElement(my,{key:vy(i),isPresent:!1,onExitComplete:t,custom:n,presenceAffectsLayout:a,mode:s},i),f.set(r,g)}d.splice(m,0,g)}),d=d.map(t=>{const n=t.key;return f.has(n)?t:e.createElement(my,{key:vy(t),isPresent:!0,presenceAffectsLayout:a,mode:s},t)}),e.createElement(e.Fragment,null,f.size?d:d.map(t=>(0,e.cloneElement)(t)))};var by=n(961),[xy,wy]=Gr({strict:!1,name:"PortalContext"}),Sy="chakra-portal",ky=e=>(0,jr.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:e.zIndex,top:0,left:0,right:0},children:e.children}),Cy=t=>{const{appendToParentPortal:n,children:r}=t,[o,i]=(0,e.useState)(null),a=(0,e.useRef)(null),[,s]=(0,e.useState)({});(0,e.useEffect)(()=>s({}),[]);const l=wy(),u=So();jo(()=>{if(!o)return;const e=o.ownerDocument,t=n&&null!=l?l:e.body;if(!t)return;a.current=e.createElement("div"),a.current.className=Sy,t.appendChild(a.current),s({});const r=a.current;return()=>{t.contains(r)&&t.removeChild(r)}},[o]);const c=(null==u?void 0:u.zIndex)?(0,jr.jsx)(ky,{zIndex:null==u?void 0:u.zIndex,children:r}):r;return a.current?(0,by.createPortal)((0,jr.jsx)(xy,{value:a.current,children:c}),a.current):(0,jr.jsx)("span",{ref:e=>{e&&i(e)}})},Ey=t=>{const{children:n,containerRef:r,appendToParentPortal:o}=t,i=r.current,a=null!=i?i:"undefined"!=typeof window?document.body:void 0,s=(0,e.useMemo)(()=>{const e=null==i?void 0:i.ownerDocument.createElement("div");return e&&(e.className=Sy),e},[i]),[,l]=(0,e.useState)({});return jo(()=>l({}),[]),jo(()=>{if(s&&a)return a.appendChild(s),()=>{a.removeChild(s)}},[s,a]),a&&s?(0,by.createPortal)((0,jr.jsx)(xy,{value:o?s:null,children:n}),s):null};function _y(e){const t={appendToParentPortal:!0,...e},{containerRef:n,...r}=t;return n?(0,jr.jsx)(Ey,{containerRef:n,...r}):(0,jr.jsx)(Cy,{...r})}_y.className=Sy,_y.selector=".chakra-portal",_y.displayName="Portal";var[Py,Ty]=Gr({name:"ToastOptionsContext",strict:!1}),Ry=t=>{const n=(0,e.useSyncExternalStore)(ly.subscribe,ly.getState,ly.getState),{motionVariants:r,component:o=qv,portalProps:i}=t,a=Object.keys(n).map(e=>{const t=n[e];return(0,jr.jsx)("div",{role:"region","aria-live":"polite","aria-label":`Notifications-${e}`,id:`chakra-toast-manager-${e}`,style:Gc(e),children:(0,jr.jsx)(yy,{initial:!1,children:t.map(e=>(0,jr.jsx)(o,{motionVariants:r,...e},e.id))})},e)});return(0,jr.jsx)(_y,{...i,children:a})},Ay=e=>function({children:t,theme:n=e,toastOptions:r,...o}){return(0,jr.jsxs)($o,{theme:n,...o,children:[(0,jr.jsx)(Py,{value:null==r?void 0:r.defaultOptions,children:t}),(0,jr.jsx)(Ry,{...r})]})},Oy=Ay(Uc),Fy=(Ay(Hc),Mr("div"));Fy.displayName="Box";var zy=K(function(e,t){const{size:n,centerContent:r=!0,...o}=e,i=r?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return(0,jr.jsx)(Fy,{ref:t,boxSize:n,__css:{...i,flexShrink:0,flexGrow:0},...o})});zy.displayName="Square";var My=K(function(e,t){const{size:n,...r}=e;return(0,jr.jsx)(zy,{size:n,ref:t,borderRadius:"9999px",...r})});My.displayName="Circle";var jy=e=>(0,jr.jsx)(Mr.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});jy.displayName="StackItem";var Iy=Object.freeze(["base","sm","md","lg","xl","2xl"]);function Ny(e,t){return Array.isArray(e)?e.map(e=>null===e?null:t(e)):kt(e)?Object.keys(e).reduce((n,r)=>(n[r]=t(e[r]),n),{}):null!=e?t(e):null}function Dy(t){return e.Children.toArray(t).filter(t=>(0,e.isValidElement)(t))}var Ly=K((t,n)=>{const{isInline:r,direction:o,align:i,justify:a,spacing:s="0.5rem",wrap:l,children:u,divider:c,className:d,shouldWrapChildren:f,...h}=t,p=r?"row":null!=o?o:"column",m=(0,e.useMemo)(()=>function(e){const{spacing:t,direction:n}=e,r={column:{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:t,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:t,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":Ny(n,e=>r[e])}}({spacing:s,direction:p}),[s,p]),g=!!c,v=!f&&!g,y=(0,e.useMemo)(()=>{const t=Dy(u);return v?t:t.map((n,r)=>{const o=void 0!==n.key?n.key:r,i=r+1===t.length,a=f?(0,jr.jsx)(jy,{children:n},o):n;if(!g)return a;const s=(0,e.cloneElement)(c,{__css:m}),l=i?null:s;return(0,jr.jsxs)(e.Fragment,{children:[a,l]},o)})},[c,m,g,v,f,u]),b=St("chakra-stack",d);return(0,jr.jsx)(Mr.div,{ref:n,display:"flex",alignItems:i,justifyContent:a,flexDirection:p,flexWrap:l,gap:g?void 0:s,className:b,...h,children:y})});Ly.displayName="Stack";var By=K((e,t)=>(0,jr.jsx)(Ly,{align:"center",...e,direction:"row",ref:t}));By.displayName="HStack";var $y=K(function(e,t){const{borderLeftWidth:n,borderBottomWidth:r,borderTopWidth:o,borderRightWidth:i,borderWidth:a,borderStyle:s,borderColor:l,...u}=mr("Divider",e),{className:c,orientation:d="horizontal",__css:f,...h}=ur(e),p={vertical:{borderLeftWidth:n||i||a||"1px",height:"100%"},horizontal:{borderBottomWidth:r||o||a||"1px",width:"100%"}};return(0,jr.jsx)(Mr.hr,{ref:t,"aria-orientation":d,...h,__css:{...u,border:"0",borderColor:l,borderStyle:s,...p[d],...f},className:St("chakra-divider",c)})});function Vy(e){const t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}$y.displayName="Divider";var Wy=K(function(e,t){const n=mr("Text",e),{className:r,align:o,decoration:i,casing:a,...s}=ur(e),l=Vy({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,jr.jsx)(Mr.p,{ref:t,className:St("chakra-text",e.className),...l,...s,__css:n})});Wy.displayName="Text";var[Uy,Hy]=Gr({strict:!1,name:"ButtonGroupContext"});function qy(t){const{children:n,className:r,...o}=t,i=(0,e.isValidElement)(n)?(0,e.cloneElement)(n,{"aria-hidden":!0,focusable:!1}):n,a=St("chakra-button__icon",r);return(0,jr.jsx)(Mr.span,{display:"inline-flex",alignSelf:"center",flexShrink:0,...o,className:a,children:i})}function Qy(t){const{label:n,placement:r,spacing:o="0.5rem",children:i=(0,jr.jsx)(Xv,{color:"currentColor",width:"1em",height:"1em"}),className:a,__css:s,...l}=t,u=St("chakra-button__spinner",a),c="start"===r?"marginEnd":"marginStart",d=(0,e.useMemo)(()=>({display:"flex",alignItems:"center",position:n?"relative":"absolute",[c]:n?o:0,fontSize:"1em",lineHeight:"normal",...s}),[s,n,c,o]);return(0,jr.jsx)(Mr.div,{className:u,...l,__css:d,children:i})}qy.displayName="ButtonIcon",Qy.displayName="ButtonSpinner";var Ky=K((t,n)=>{const r=Hy(),o=mr("Button",{...r,...t}),{isDisabled:i=(null==r?void 0:r.isDisabled),isLoading:a,isActive:s,children:l,leftIcon:u,rightIcon:c,loadingText:d,iconSpacing:f="0.5rem",type:h,spinner:p,spinnerPlacement:m="start",className:g,as:v,...y}=ur(t),b=(0,e.useMemo)(()=>{const e={...null==o?void 0:o._focus,zIndex:1};return{display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none",...o,...!!r&&{_focus:e}}},[o,r]),{ref:x,type:w}=function(t){const[n,r]=(0,e.useState)(!t),o=(0,e.useCallback)(e=>{e&&r("BUTTON"===e.tagName)},[]);return{ref:o,type:n?"button":void 0}}(v),S={rightIcon:c,leftIcon:u,iconSpacing:f,children:l};return(0,jr.jsxs)(Mr.button,{ref:Lr(n,x),as:v,type:null!=h?h:w,"data-active":_t(s),"data-loading":_t(a),__css:b,className:St("chakra-button",g),...y,disabled:i||a,children:[a&&"start"===m&&(0,jr.jsx)(Qy,{className:"chakra-button__spinner--start",label:d,placement:"start",spacing:f,children:p}),a?d||(0,jr.jsx)(Mr.span,{opacity:0,children:(0,jr.jsx)(Gy,{...S})}):(0,jr.jsx)(Gy,{...S}),a&&"end"===m&&(0,jr.jsx)(Qy,{className:"chakra-button__spinner--end",label:d,placement:"end",spacing:f,children:p})]})});function Gy(e){const{leftIcon:t,rightIcon:n,children:r,iconSpacing:o}=e;return(0,jr.jsxs)(jr.Fragment,{children:[t&&(0,jr.jsx)(qy,{marginEnd:o,children:t}),r,n&&(0,jr.jsx)(qy,{marginStart:o,children:n})]})}Ky.displayName="Button";var Xy=K((e,t)=>(0,jr.jsx)(Ly,{align:"center",...e,direction:"column",ref:t}));Xy.displayName="VStack";var Yy=K(function(e,t){const n=mr("Heading",e),{className:r,...o}=ur(e);return(0,jr.jsx)(Mr.h2,{ref:t,className:St("chakra-heading",e.className),...o,__css:n})});function Zy(t,n){var r;const o=function(t){var n,r;const o=kt(t)?t:{fallback:null!=t?t:"base"},i=yt().__breakpoints.details.map(({minMaxQuery:e,breakpoint:t})=>({breakpoint:t,query:e.replace("@media screen and ","")})),a=i.map(e=>e.breakpoint===o.fallback),s=function(t,n={}){const{ssr:r=!0,fallback:o}=n,{getWindow:i}=function({defer:t}={}){const[,n]=(0,e.useReducer)(e=>e+1,0);return jo(()=>{t&&n()},[t]),(0,e.useContext)(Lo)}(),a=Array.isArray(t)?t:[t];let s=Array.isArray(o)?o:[o];s=s.filter(e=>null!=e);const[l,u]=(0,e.useState)(()=>a.map((e,t)=>({media:e,matches:r?!!s[t]:i().matchMedia(e).matches})));return(0,e.useEffect)(()=>{const e=i();u(a.map(t=>({media:t,matches:e.matchMedia(t).matches})));const t=a.map(t=>e.matchMedia(t)),n=e=>{u(t=>t.slice().map(t=>t.media===e.media?{...t,matches:e.matches}:t))};return t.forEach(e=>{"function"==typeof e.addListener?e.addListener(n):e.addEventListener("change",n)}),()=>{t.forEach(e=>{"function"==typeof e.removeListener?e.removeListener(n):e.removeEventListener("change",n)})}},[i]),l.map(e=>e.matches)}(i.map(e=>e.query),{fallback:a,ssr:o.ssr});return null!=(r=null==(n=i[s.findIndex(e=>1==e)])?void 0:n.breakpoint)?r:o.fallback}(kt(n)?n:{fallback:null!=n?n:"base"}),i=yt();if(!o)return;const a=Array.from((null==(r=i.__breakpoints)?void 0:r.keys)||[]),s=Array.isArray(t)?Object.fromEntries(Object.entries(function(e,t=Iy){const n={};return e.forEach((e,r)=>{const o=t[r];null!=e&&(n[o]=e)}),n}(t,a)).map(([e,t])=>[e,t])):t;return function(e,t,n=Iy){let r=Object.keys(e).indexOf(t);if(-1!==r)return e[t];let o=n.indexOf(t);for(;o>=0;){const t=n[o];if(e.hasOwnProperty(t)){r=o;break}o-=1}return-1!==r?e[n[r]]:void 0}(s,o,a)}Yy.displayName="Heading";var Jy=K(function(e,t){const{direction:n,align:r,justify:o,wrap:i,basis:a,grow:s,shrink:l,...u}=e,c={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:i,flexBasis:a,flexGrow:s,flexShrink:l};return(0,jr.jsx)(Mr.div,{ref:t,__css:c,...u})});Jy.displayName="Flex";const eb="undefined"==typeof window||"Deno"in window;function tb(){}function nb(e){return"number"==typeof e&&e>=0&&e!==1/0}function rb(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ob(e,t,n){return vb(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function ib(e,t,n){return vb(e)?[{...t,queryKey:e},n]:[e||{},t]}function ab(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(vb(a))if(r){if(t.queryHash!==lb(a,t.options))return!1}else if(!cb(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return!("boolean"==typeof s&&t.isStale()!==s||void 0!==o&&o!==t.state.fetchStatus||i&&!i(t))}function sb(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(vb(i)){if(!t.options.mutationKey)return!1;if(n){if(ub(t.options.mutationKey)!==ub(i))return!1}else if(!cb(t.options.mutationKey,i))return!1}return!("boolean"==typeof r&&"loading"===t.state.status!==r||o&&!o(t))}function lb(e,t){return((null==t?void 0:t.queryKeyHashFn)||ub)(e)}function ub(e){return JSON.stringify(e,(e,t)=>mb(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function cb(e,t){return db(e,t)}function db(e,t){return e===t||typeof e==typeof t&&!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some(n=>!db(e[n],t[n]))}function fb(e,t){if(e===t)return e;const n=pb(e)&&pb(t);if(n||mb(e)&&mb(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 r=0;r<i;r++){const i=n?r:o[r];a[i]=fb(e[i],t[i]),a[i]===e[i]&&s++}return r===i&&s===r?e:a}return t}function hb(e,t){if(e&&!t||t&&!e)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function pb(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mb(e){if(!gb(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!gb(n)&&!!n.hasOwnProperty("isPrototypeOf")}function gb(e){return"[object Object]"===Object.prototype.toString.call(e)}function vb(e){return Array.isArray(e)}function yb(e){return new Promise(t=>{setTimeout(t,e)})}function bb(e){yb(0).then(e)}function xb(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?fb(e,t):t}const wb=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const o=r=>{t?e.push(r):bb(()=>{n(r)})};return{batch:o=>{let i;t++;try{i=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&bb(()=>{r(()=>{t.forEach(e=>{n(e)})})})})()}return i},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class Sb{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const kb=new class extends Sb{constructor(){super(),this.setup=e=>{if(!eb&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},Cb=["online","offline"],Eb=new class extends Sb{constructor(){super(),this.setup=e=>{if(!eb&&window.addEventListener){const t=()=>e();return Cb.forEach(e=>{window.addEventListener(e,t,!1)}),()=>{Cb.forEach(e=>{window.removeEventListener(e,t)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function _b(e){return Math.min(1e3*2**e,3e4)}function Pb(e){return"online"!==(null!=e?e:"online")||Eb.isOnline()}class Tb{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function Rb(e){return e instanceof Tb}function Ab(e){let t,n,r,o=!1,i=0,a=!1;const s=new Promise((e,t)=>{n=e,r=t}),l=()=>!kb.isFocused()||"always"!==e.networkMode&&!Eb.isOnline(),u=r=>{a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},d=()=>new Promise(n=>{t=e=>{const t=a||!l();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,a||null==e.onContinue||e.onContinue()}),f=()=>{if(a)return;let t;try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(u).catch(t=>{var n,r;if(a)return;const s=null!=(n=e.retry)?n:3,u=null!=(r=e.retryDelay)?r:_b,h="function"==typeof u?u(i,t):u,p=!0===s||"number"==typeof s&&i<s||"function"==typeof s&&s(i,t);!o&&p?(i++,null==e.onFail||e.onFail(i,t),yb(h).then(()=>{if(l())return d()}).then(()=>{o?c(t):f()})):c(t)})};return Pb(e.networkMode)?f():d().then(f),{promise:s,cancel:t=>{a||(c(new Tb(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?s:Promise.resolve(),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1}}}class Ob extends Sb{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),Fb(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zb(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zb(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),hb(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const o=this.hasListeners();o&&Mb(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!o||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();const i=this.computeRefetchInterval();!o||this.currentQuery===r&&this.options.enabled===n.enabled&&i===this.currentRefetchInterval||this.updateRefetchInterval(i)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return function(e,t,n){return!n.keepPreviousData&&(void 0!==n.placeholderData?t.isPlaceholderData:!hb(e.getCurrentResult(),t))}(this,n,e)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(tb)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),eb||this.currentResult.isStale||!nb(this.options.staleTime))return;const e=rb(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!eb&&!1!==this.options.enabled&&nb(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||kb.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(e,t){const n=this.currentQuery,r=this.options,o=this.currentResult,i=this.currentResultState,a=this.currentResultOptions,s=e!==n,l=s?e.state:this.currentQueryInitialState,u=s?this.currentResult:this.previousQueryResult,{state:c}=e;let d,{dataUpdatedAt:f,error:h,errorUpdatedAt:p,fetchStatus:m,status:g}=c,v=!1,y=!1;if(t._optimisticResults){const o=this.hasListeners(),i=!o&&Fb(e,t),a=o&&Mb(e,n,t,r);(i||a)&&(m=Pb(e.options.networkMode)?"fetching":"paused",f||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&null!=u&&u.isSuccess&&"error"!==g)d=u.data,f=u.dataUpdatedAt,g=u.status,v=!0;else if(t.select&&void 0!==c.data)if(o&&c.data===(null==i?void 0:i.data)&&t.select===this.selectFn)d=this.selectResult;else try{this.selectFn=t.select,d=t.select(c.data),d=xb(null==o?void 0:o.data,d,t),this.selectResult=d,this.selectError=null}catch(e){this.selectError=e}else d=c.data;if(void 0!==t.placeholderData&&void 0===d&&"loading"===g){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==a?void 0:a.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(g="success",d=xb(null==o?void 0:o.data,e,t),y=!0)}this.selectError&&(h=this.selectError,d=this.selectResult,p=Date.now(),g="error");const b="fetching"===m,x="loading"===g,w="error"===g;return{status:g,fetchStatus:m,isLoading:x,isSuccess:"success"===g,isError:w,isInitialLoading:x&&b,data:d,dataUpdatedAt:f,error:h,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>l.dataUpdateCount||c.errorUpdateCount>l.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&0===c.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:y,isPreviousData:v,isRefetchError:w&&0!==c.dataUpdatedAt,isStale:jb(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,hb(n,t))return;this.currentResult=n;const r={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;const r=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some(e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)})})()&&(r.listeners=!0),this.notify({...r,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||Rb(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){wb.batch(()=>{var t,n,r,o;if(e.onSuccess)null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(r=(o=this.options).onSettled)||r.call(o,this.currentResult.data,null);else if(e.onError){var i,a,s,l;null==(i=(a=this.options).onError)||i.call(a,this.currentResult.error),null==(s=(l=this.options).onSettled)||s.call(l,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Fb(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&zb(e,t,t.refetchOnMount)}function zb(e,t,n){if(!1!==t.enabled){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&jb(e,t)}return!1}function Mb(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&jb(e,n)}function jb(e,t){return e.isStaleByTime(t.staleTime)}const Ib=n(9888).useSyncExternalStore;const Nb=e.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Db=e.createContext(void 0),Lb=e.createContext(!1);function Bb(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Db),window.ReactQueryClientContext):Db)}const $b=({context:t}={})=>{const n=e.useContext(Bb(t,e.useContext(Lb)));if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},Vb=({client:t,children:n,context:r,contextSharing:o=!1})=>{e.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]);const i=Bb(r,o);return e.createElement(Lb.Provider,{value:!r&&o},e.createElement(i.Provider,{value:t},n))},Wb=e.createContext(!1);function Ub(e,t){return"function"==typeof e?e(...t):!!e}Wb.Provider;const Hb=(e,t)=>{let n,r,o=e.path;return"string"==typeof e.namespace&&"string"==typeof e.endpoint&&(n=e.namespace.replace(/^\/|\/$/g,""),r=e.endpoint.replace(/^\//,""),o=r?n+"/"+r:n),delete e.namespace,delete e.endpoint,t({...e,path:o})};function qb(e){const t=e.split("?"),n=t[1],r=t[0];return n?r+"?"+n.split("&").map(e=>e.split("=")).map(e=>e.map(decodeURIComponent)).sort((e,t)=>e[0].localeCompare(t[0])).map(e=>e.map(encodeURIComponent)).map(e=>e.join("=")).join("&"):r}function Qb(e){try{return decodeURIComponent(e)}catch(t){return e}}function Kb(e){return(function(e){let t;try{t=new URL(e,"http://example.com").search.substring(1)}catch(e){}if(t)return t}(e)||"").replace(/\+/g,"%20").split("&").reduce((e,t)=>{const[n,r=""]=t.split("=").filter(Boolean).map(Qb);return n&&function(e,t,n){const r=t.length,o=r-1;for(let i=0;i<r;i++){let r=t[i];!r&&Array.isArray(e)&&(r=e.length.toString()),r=["__proto__","constructor","prototype"].includes(r)?r.toUpperCase():r;const a=!isNaN(Number(t[i+1]));e[r]=i===o?n:e[r]||(a?[]:{}),Array.isArray(e[r])&&!a&&(e[r]={...e[r]}),e=e[r]}}(e,n.replace(/\]/g,"").split("["),r),e},Object.create(null))}function Gb(e){let t="";const n=Object.entries(e);let r;for(;r=n.shift();){let[e,o]=r;if(Array.isArray(o)||o&&o.constructor===Object){const t=Object.entries(o).reverse();for(const[r,o]of t)n.unshift([`${e}[${r}]`,o])}else void 0!==o&&(null===o&&(o=""),t+="&"+[e,o].map(encodeURIComponent).join("="))}return t.substr(1)}function Xb(e="",t){if(!t||!Object.keys(t).length)return e;let n=e;const r=e.indexOf("?");return-1!==r&&(t=Object.assign(Kb(e),t),n=n.substr(0,r)),n+"?"+Gb(t)}function Yb(e,t){return Promise.resolve(t?e.body:new window.Response(JSON.stringify(e.body),{status:200,statusText:"OK",headers:e.headers}))}const Zb=({path:e,url:t,...n},r)=>({...n,url:t&&Xb(t,r),path:e&&Xb(e,r)}),Jb=e=>e.json?e.json():Promise.reject(e),ex=e=>{const{next:t}=(e=>{if(!e)return{};const t=e.match(/<([^>]+)>; rel="next"/);return t?{next:t[1]}:{}})(e.headers.get("link"));return t},tx=async(e,t)=>{if(!1===e.parse)return t(e);if(!(e=>{const t=!!e.path&&-1!==e.path.indexOf("per_page=-1"),n=!!e.url&&-1!==e.url.indexOf("per_page=-1");return t||n})(e))return t(e);const n=await mx({...Zb(e,{per_page:100}),parse:!1}),r=await Jb(n);if(!Array.isArray(r))return r;let o=ex(n);if(!o)return r;let i=[].concat(r);for(;o;){const t=await mx({...e,path:void 0,url:o,parse:!1}),n=await Jb(t);i=i.concat(n),o=ex(t)}return i},nx=new Set(["PATCH","PUT","DELETE"]),rx="GET";function ox(e,t){return Kb(e)[t]}function ix(e,t){return void 0!==ox(e,t)}const ax=(e,t=!0)=>Promise.resolve(((e,t=!0)=>t?204===e.status?null:e.json?e.json():Promise.reject(e):e)(e,t)).catch(e=>sx(e,t));function sx(e,t=!0){if(!t)throw e;return(e=>{const t={code:"invalid_json",message:Q("The response is not a valid JSON response.")};if(!e||!e.json)throw t;return e.json().catch(()=>{throw t})})(e).then(e=>{const t={code:"unknown_error",message:Q("An unknown error occurred.")};throw e||t})}function lx(e,...t){const n=e.indexOf("?");if(-1===n)return e;const r=Kb(e),o=e.substr(0,n);t.forEach(e=>delete r[e]);const i=Gb(r);return i?o+"?"+i:o}const ux={Accept:"application/json, */*;q=0.1"},cx={credentials:"include"},dx=[(e,t)=>("string"!=typeof e.url||ix(e.url,"_locale")||(e.url=Xb(e.url,{_locale:"user"})),"string"!=typeof e.path||ix(e.path,"_locale")||(e.path=Xb(e.path,{_locale:"user"})),t(e)),Hb,(e,t)=>{const{method:n=rx}=e;return nx.has(n.toUpperCase())&&(e={...e,headers:{...e.headers,"X-HTTP-Method-Override":n,"Content-Type":"application/json"},method:"POST"}),t(e)},tx],fx=e=>{if(e.status>=200&&e.status<300)return e;throw e};let hx=e=>{const{url:t,path:n,data:r,parse:o=!0,...i}=e;let{body:a,headers:s}=e;return s={...ux,...s},r&&(a=JSON.stringify(r),s["Content-Type"]="application/json"),window.fetch(t||n||window.location.href,{...cx,...i,body:a,headers:s}).then(e=>Promise.resolve(e).then(fx).catch(e=>sx(e,o)).then(e=>ax(e,o)),e=>{if(e&&"AbortError"===e.name)throw e;throw{code:"fetch_error",message:Q("You are probably offline.")}})};function px(e){const t=dx.reduceRight((e,t)=>n=>t(n,e),hx);return t(e).catch(t=>"rest_cookie_invalid_nonce"!==t.code?Promise.reject(t):window.fetch(px.nonceEndpoint).then(fx).then(e=>e.text()).then(t=>(px.nonceMiddleware.nonce=t,px(e))))}px.use=function(e){dx.unshift(e)},px.setFetchHandler=function(e){hx=e},px.createNonceMiddleware=function(e){const t=(e,n)=>{const{headers:r={}}=e;for(const o in r)if("x-wp-nonce"===o.toLowerCase()&&r[o]===t.nonce)return n(e);return n({...e,headers:{...r,"X-WP-Nonce":t.nonce}})};return t.nonce=e,t},px.createPreloadingMiddleware=function(e){const t=Object.fromEntries(Object.entries(e).map(([e,t])=>[qb(e),t]));return(e,n)=>{const{parse:r=!0}=e;let o=e.path;if(!o&&e.url){const{rest_route:t,...n}=Kb(e.url);"string"==typeof t&&(o=Xb(t,n))}if("string"!=typeof o)return n(e);const i=e.method||"GET",a=qb(o);if("GET"===i&&t[a]){const e=t[a];return delete t[a],Yb(e,!!r)}if("OPTIONS"===i&&t[i]&&t[i][a]){const e=t[i][a];return delete t[i][a],Yb(e,!!r)}return n(e)}},px.createRootURLMiddleware=e=>(t,n)=>Hb(t,t=>{let r,o=t.url,i=t.path;return"string"==typeof i&&(r=e,-1!==e.indexOf("?")&&(i=i.replace("?","&")),i=i.replace(/^\//,""),"string"==typeof r&&-1!==r.indexOf("?")&&(i=i.replace("?","&")),o=r+i),n({...t,url:o})}),px.fetchAllMiddleware=tx,px.mediaUploadMiddleware=(e,t)=>{if(!function(e){const t=!!e.method&&"POST"===e.method;return(!!e.path&&-1!==e.path.indexOf("/wp/v2/media")||!!e.url&&-1!==e.url.indexOf("/wp/v2/media"))&&t}(e))return t(e);let n=0;const r=e=>(n++,t({path:`/wp/v2/media/${e}/post-process`,method:"POST",data:{action:"create-image-subsizes"},parse:!1}).catch(()=>n<5?r(e):(t({path:`/wp/v2/media/${e}?force=true`,method:"DELETE"}),Promise.reject())));return t({...e,parse:!1}).catch(t=>{const n=t.headers.get("x-wp-upload-attachment-id");return t.status>=500&&t.status<600&&n?r(n).catch(()=>!1!==e.parse?Promise.reject({code:"post_process",message:Q("Media upload failed. If this is a photo or a large image, please scale it down and try again.")}):Promise.reject(t)):sx(t,e.parse)}).then(t=>ax(t,e.parse))},px.createThemePreviewMiddleware=e=>(t,n)=>{if("string"==typeof t.url){const n=ox(t.url,"wp_theme_preview");void 0===n?t.url=Xb(t.url,{wp_theme_preview:e}):""===n&&(t.url=lx(t.url,"wp_theme_preview"))}if("string"==typeof t.path){const n=ox(t.path,"wp_theme_preview");void 0===n?t.path=Xb(t.path,{wp_theme_preview:e}):""===n&&(t.path=lx(t.path,"wp_theme_preview"))}return n(t)};const mx=px,gx=window.evf_templates_script;var[vx,yx]=Gr({name:"InputGroupStylesContext",errorMessage:"useInputGroupStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<InputGroup />\" "}),bx=K(function(t,n){const r=gr("Input",t),{children:o,className:i,...a}=ur(t),s=St("chakra-input__group",i),l={},u=Dy(o),c=r.field;u.forEach(e=>{var t,n;r&&(c&&"InputLeftElement"===e.type.id&&(l.paddingStart=null!=(t=c.height)?t:c.h),c&&"InputRightElement"===e.type.id&&(l.paddingEnd=null!=(n=c.height)?n:c.h),"InputRightAddon"===e.type.id&&(l.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(l.borderStartRadius=0))});const d=u.map(n=>{var r,o;const i=Vy({size:(null==(r=n.props)?void 0:r.size)||t.size,variant:(null==(o=n.props)?void 0:o.variant)||t.variant});return"Input"!==n.type.id?(0,e.cloneElement)(n,i):(0,e.cloneElement)(n,Object.assign(i,l,n.props))});return(0,jr.jsx)(Mr.div,{className:s,ref:n,__css:{width:"100%",display:"flex",position:"relative",isolation:"isolate",...r.group},"data-group":!0,...a,children:(0,jr.jsx)(vx,{value:r,children:d})})});bx.displayName="InputGroup";var xx=Mr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),wx=K(function(e,t){var n,r;const{placement:o="left",...i}=e,a=yx(),s=a.field,l="left"===o?"insetStart":"insetEnd",u={[l]:"0",width:null!=(n=null==s?void 0:s.height)?n:null==s?void 0:s.h,height:null!=(r=null==s?void 0:s.height)?r:null==s?void 0:s.h,fontSize:null==s?void 0:s.fontSize,...a.element};return(0,jr.jsx)(xx,{ref:t,__css:u,...i})});wx.id="InputElement",wx.displayName="InputElement";var Sx=K(function(e,t){const{className:n,...r}=e,o=St("chakra-input__left-element",n);return(0,jr.jsx)(wx,{ref:t,placement:"left",className:o,...r})});Sx.id="InputLeftElement",Sx.displayName="InputLeftElement";var kx=K(function(e,t){const{className:n,...r}=e,o=St("chakra-input__right-element",n);return(0,jr.jsx)(wx,{ref:t,placement:"right",className:o,...r})});kx.id="InputRightElement",kx.displayName="InputRightElement";var[Cx,Ex]=Gr({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<FormControl />\" "}),[_x,Px]=Gr({strict:!1,name:"FormControlContext"}),Tx=K(function(t,n){const r=gr("Form",t),o=ur(t),{getRootProps:i,htmlProps:a,...s}=function(t){const{id:n,isRequired:r,isInvalid:o,isDisabled:i,isReadOnly:a,...s}=t,l=(0,e.useId)(),u=n||`field-${l}`,c=`${u}-label`,d=`${u}-feedback`,f=`${u}-helptext`,[h,p]=(0,e.useState)(!1),[m,g]=(0,e.useState)(!1),[v,y]=(0,e.useState)(!1),b=(0,e.useCallback)((e={},t=null)=>({id:f,...e,ref:Dr(t,e=>{e&&g(!0)})}),[f]),x=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,"data-focus":_t(v),"data-disabled":_t(i),"data-invalid":_t(o),"data-readonly":_t(a),id:void 0!==e.id?e.id:c,htmlFor:void 0!==e.htmlFor?e.htmlFor:u}),[u,i,v,o,a,c]),w=(0,e.useCallback)((e={},t=null)=>({id:d,...e,ref:Dr(t,e=>{e&&p(!0)}),"aria-live":"polite"}),[d]),S=(0,e.useCallback)((e={},t=null)=>({...e,...s,ref:t,role:"group","data-focus":_t(v),"data-disabled":_t(i),"data-invalid":_t(o),"data-readonly":_t(a)}),[s,i,v,o,a]),k=(0,e.useCallback)((e={},t=null)=>({...e,ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"}),[]);return{isRequired:!!r,isInvalid:!!o,isReadOnly:!!a,isDisabled:!!i,isFocused:!!v,onFocus:()=>y(!0),onBlur:()=>y(!1),hasFeedbackText:h,setHasFeedbackText:p,hasHelpText:m,setHasHelpText:g,id:u,labelId:c,feedbackId:d,helpTextId:f,htmlProps:s,getHelpTextProps:b,getErrorMessageProps:w,getRootProps:S,getLabelProps:x,getRequiredIndicatorProps:k}}(o),l=St("chakra-form-control",t.className);return(0,jr.jsx)(_x,{value:s,children:(0,jr.jsx)(Cx,{value:r,children:(0,jr.jsx)(Mr.div,{...i({},n),className:l,__css:r.container})})})});Tx.displayName="FormControl";var Rx=K(function(e,t){const n=Px(),r=Ex(),o=St("chakra-form__helper-text",e.className);return(0,jr.jsx)(Mr.div,{...null==n?void 0:n.getHelpTextProps(e,t),__css:r.helperText,className:o})});Rx.displayName="FormHelperText";var Ax=K(function(e,t){const{htmlSize:n,...r}=e,o=gr("Input",r),i=function(e){const{isDisabled:t,isInvalid:n,isReadOnly:r,isRequired:o,...i}=function(e){var t,n,r;const o=Px(),{id:i,disabled:a,readOnly:s,required:l,isRequired:u,isInvalid:c,isReadOnly:d,isDisabled:f,onFocus:h,onBlur:p,...m}=e,g=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&g.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&g.push(o.helpTextId),{...m,"aria-describedby":g.join(" ")||void 0,id:null!=i?i:null==o?void 0:o.id,isDisabled:null!=(t=null!=a?a:f)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:d)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:u)?r:null==o?void 0:o.isRequired,isInvalid:null!=c?c:null==o?void 0:o.isInvalid,onFocus:Tt(null==o?void 0:o.onFocus,h),onBlur:Tt(null==o?void 0:o.onBlur,p)}}(e);return{...i,disabled:t,readOnly:r,required:o,"aria-invalid":Pt(n),"aria-required":Pt(o),"aria-readonly":Pt(r)}}(ur(r)),a=St("chakra-input",e.className);return(0,jr.jsx)(Mr.input,{size:n,...i,__css:o.field,ref:t,className:a})});Ax.displayName="Input",Ax.id="Input";var Ox=Mr("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});Ox.displayName="Spacer";var Fx=K(function(e,t){const n=mr("Badge",e),{className:r,...o}=ur(e);return(0,jr.jsx)(Mr.span,{ref:t,className:St("chakra-badge",e.className),...o,__css:{display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle",...n}})});Fx.displayName="Badge";var[zx,Mx]=Co({name:"Card"+"StylesContext",errorMessage:'useStyles: "styles" is undefined. Seems you forgot to wrap the components in "<Card />" '}),jx=K(function(e,t){const{className:n,children:r,direction:o="column",justify:i,align:a,...s}=ur(e),l=gr("Card",e);return(0,jr.jsx)(Mr.div,{ref:t,className:St("chakra-card",n),__css:{display:"flex",flexDirection:o,justifyContent:i,alignItems:a,position:"relative",minWidth:0,wordWrap:"break-word",...l.container},...s,children:(0,jr.jsx)(zx,{value:l,children:r})})}),Ix=K(function(e,t){const{className:n,...r}=e,o=Mx();return(0,jr.jsx)(Mr.div,{ref:t,className:St("chakra-card__header",n),__css:o.header,...r})}),Nx=K(function(e,t){const{className:n,justify:r,...o}=e,i=Mx();return(0,jr.jsx)(Mr.div,{ref:t,className:St("chakra-card__footer",n),__css:{display:"flex",justifyContent:r,...i.footer},...o})}),Dx={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Lx=e.createContext&&e.createContext(Dx),Bx=["attr","size","title"];function $x(){return $x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$x.apply(this,arguments)}function Vx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vx(Object(n),!0).forEach(function(t){Ux(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ux(e,t,n){return t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hx(t){return t&&t.map((t,n)=>e.createElement(t.tag,Wx({key:n},t.attr),Hx(t.child)))}function qx(t){return n=>e.createElement(Qx,$x({attr:Wx({},t.attr)},n),Hx(t.child))}function Qx(t){var n=n=>{var r,{attr:o,size:i,title:a}=t,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(t,Bx),l=i||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",$x({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,o,s,{className:r,style:Wx(Wx({color:t.color||n.color},n.style),t.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),a&&e.createElement("title",null,a),t.children)};return void 0!==Lx?e.createElement(Lx.Consumer,null,e=>n(e)):n(Dx)}function Kx(e){return qx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M112 111v290c0 17.44 17 28.52 31 20.16l247.9-148.37c12.12-7.25 12.12-26.33 0-33.58L143 90.84c-14-8.36-31 2.72-31 20.16z"},child:[]}]})(e)}function Gx(e){return qx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeMiterlimit:"10",strokeWidth:"32",d:"M221.09 64a157.09 157.09 0 1 0 157.09 157.09A157.1 157.1 0 0 0 221.09 64z"},child:[]},{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"32",d:"M338.29 338.29 448 448"},child:[]}]})(e)}var Xx=n(181),Yx=n.n(Xx);const Zx=t().memo(({categories:n,selectedCategory:r,onCategorySelect:o,onSearchChange:i})=>{const[a,s]=(0,e.useState)(""),l=(0,e.useCallback)(Yx()(e=>{i(e)},300),[i]),u=n.find(e=>"Favorites"===e.name),c=u&&u.count>0?[u,...n.filter(e=>"Favorites"!==e.name)]:n;return t().createElement(Fy,null,t().createElement(bx,{mb:"26px"},t().createElement(Sx,{pointerEvents:"none",padding:"0px 0px 0px 8px",borderRadius:"8px",borderColor:"#B0B0B0"},t().createElement(Gx,{style:{width:"18px",height:"18px"},color:"#737373"})),t().createElement(Ax,{placeholder:Q("Search Templates","everest-forms"),value:a,onChange:e=>{const t=e.target.value;s(t),l(t)},_focus:{borderColor:"#7545BB",outline:"none",boxShadow:"none"}})),t().createElement(Xy,{align:"stretch",gap:"2px"},c.map(e=>t().createElement(By,{key:e.name,p:"12px",_hover:{bg:"#F7F4FB","& > .badge":{bg:(e.name,"#FFFFFF")}},borderRadius:"md",cursor:"pointer",bg:r===e.name?"#F7F4FB":"transparent",onClick:()=>o(e.name)},t().createElement(Wy,{color:r===e.name?"#7545BB":"",fontWeight:"semibold",margin:"0px"},e.name),t().createElement(Ox,null),t().createElement(Fx,{className:"badge",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",padding:"0px",borderRadius:"8px",color:r===e.name?"#7545BB":"",bg:r===e.name?"white":"#F2F2F2"},e.count))),t().createElement(jx,{align:"center",bg:"linear-gradient(90.62deg, rgba(76, 21, 155, 0.7) 0.2%, rgba(76, 21, 155, 0.7) 0.21%, rgba(140, 100, 198, 0.7) 99.25%)",padding:"40px 24px",marginTop:"26px"},t().createElement(Ix,{padding:"0px"},t().createElement(Yy,{fontSize:"18px",color:"white",lineHeight:"28px",padding:"0px",margin:"0px 0px 20px",textAlign:"center"},Q("Can't Find The Form Template You Need?","everest-forms"))),t().createElement(Nx,{padding:"0",width:"100%"},t().createElement("a",{href:"https://everestforms.net/request-template",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(Ky,{backgroundColor:"#FFFFFF",color:"#7545BB",padding:"12px 10px",borderRadius:"4px",width:"inherit"},Q("Request Template","everest-forms")))))))});function Jx(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}var ew=Jx()?e.useLayoutEffect:e.useEffect;function tw(t,n=[]){const r=(0,e.useRef)(t);return ew(()=>{r.current=t}),(0,e.useCallback)((...e)=>{var t;return null==(t=r.current)?void 0:t.call(r,...e)},n)}function nw(t){const{theme:n}=wt(),r=Ty();return(0,e.useMemo)(()=>function(e,t){const n=n=>{var r;return{...t,...n,position:Qv(null!=(r=null==n?void 0:n.position)?r:null==t?void 0:t.position,e)}},r=e=>{const t=n(e),r=dy(t);return ly.notify(r,t)};return r.update=(e,t)=>{ly.update(e,n(t))},r.promise=(e,t)=>{const n=r({...t.loading,status:"loading",duration:null});e.then(e=>r.update(n,{status:"success",duration:5e3,...Ct(t.success,e)})).catch(e=>r.update(n,{status:"error",duration:5e3,...Ct(t.error,e)}))},r.closeAll=ly.closeAll,r.close=ly.close,r.isActive=ly.isActive,r}(n.direction,{...r,...t}),[t,n.direction,r])}var rw=K(function(e,t){const{templateAreas:n,gap:r,rowGap:o,columnGap:i,column:a,row:s,autoFlow:l,autoRows:u,templateRows:c,autoColumns:d,templateColumns:f,...h}=e,p={display:"grid",gridTemplateAreas:n,gridGap:r,gridRowGap:o,gridColumnGap:i,gridAutoColumns:d,gridColumn:a,gridRow:s,gridAutoFlow:l,gridAutoRows:u,gridTemplateRows:c,gridTemplateColumns:f};return(0,jr.jsx)(Mr.div,{ref:t,__css:p,...h})});rw.displayName="Grid";var ow=K(function(e,t){const{columns:n,spacingX:r,spacingY:o,spacing:i,minChildWidth:a,...s}=e,l=yt(),u=a?function(e,t){return Ny(e,e=>{const n=function(e,t,n){const r=Array.isArray(t)?t:[t],o=Array.isArray(n)?n:[n];return n=>{const i=o.filter(Boolean),a=r.map((t,r)=>{var o,a;return"breakpoints"===e?function(e,t,n){var r,o;if(null==t)return t;const i=t=>{var n,r;return null==(r=null==(n=e.__breakpoints)?void 0:n.asArray)?void 0:r[t]};return null!=(o=null!=(r=i(t))?r:i(n))?o:n}(n,t,null!=(o=i[r])?o:t):function(e,t,n){var r,o;if(null==t)return t;const i=t=>{var n,r;return null==(r=null==(n=e.__cssMap)?void 0:n[t])?void 0:r.value};return null!=(o=null!=(r=i(t))?r:i(n))?o:n}(n,`${e}.${t}`,null!=(a=i[r])?a:t)});return Array.isArray(t)?a:a[0]}}("sizes",e,"number"==typeof(r=e)?`${r}px`:r)(t);var r;return null===e?null:`repeat(auto-fit, minmax(${n}, 1fr))`})}(a,l):Ny(n,e=>null===e?null:`repeat(${e}, minmax(0, 1fr))`);return(0,jr.jsx)(rw,{ref:t,gap:i,columnGap:r,rowGap:o,templateColumns:u,...s})});ow.displayName="SimpleGrid";var iw=Mr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});iw.displayName="Center";var aw={horizontal:{insetStart:"50%",transform:"translateX(-50%)"},vertical:{top:"50%",transform:"translateY(-50%)"},both:{insetStart:"50%",top:"50%",transform:"translate(-50%, -50%)"}},sw=(K(function(e,t){const{axis:n="both",...r}=e;return(0,jr.jsx)(Mr.div,{ref:t,__css:aw[n],...r,position:"absolute"})}),K(function(e,t){const{htmlWidth:n,htmlHeight:r,alt:o,...i}=e;return(0,jr.jsx)("img",{width:n,height:r,ref:t,alt:o,...i})}));function lw(e,t=[]){const n=Object.assign({},e);for(const e of t)e in n&&delete n[e];return n}sw.displayName="NativeImage";var uw=K(function(t,n){const{fallbackSrc:r,fallback:o,src:i,srcSet:a,align:s,fit:l,loading:u,ignoreFallback:c,crossOrigin:d,fallbackStrategy:f="beforeLoadOrError",referrerPolicy:h,...p}=t,m=null!=u||c||!(void 0!==r||void 0!==o),g=function(t){const{loading:n,src:r,srcSet:o,onLoad:i,onError:a,crossOrigin:s,sizes:l,ignoreFallback:u}=t,[c,d]=(0,e.useState)("pending");(0,e.useEffect)(()=>{d(r?"loading":"pending")},[r]);const f=(0,e.useRef)(),h=(0,e.useCallback)(()=>{if(!r)return;p();const e=new Image;e.src=r,s&&(e.crossOrigin=s),o&&(e.srcset=o),l&&(e.sizes=l),n&&(e.loading=n),e.onload=e=>{p(),d("loaded"),null==i||i(e)},e.onerror=e=>{p(),d("failed"),null==a||a(e)},f.current=e},[r,s,o,l,i,a,n]),p=()=>{f.current&&(f.current.onload=null,f.current.onerror=null,f.current=null)};return jo(()=>{if(!u)return"loading"===c&&h(),()=>{p()}},[c,h,u]),u?"loaded":c}({...t,crossOrigin:d,ignoreFallback:m}),v=((e,t)=>"loaded"!==e&&"beforeLoadOrError"===t||"failed"===e&&"onError"===t)(g,f),y={ref:n,objectFit:l,objectPosition:s,...m?p:lw(p,["onError","onLoad"])};return v?o||(0,jr.jsx)(Mr.img,{as:sw,className:"chakra-image__placeholder",src:r,...y}):(0,jr.jsx)(Mr.img,{as:sw,src:i,srcSet:a,crossOrigin:d,loading:u,referrerPolicy:h,className:"chakra-image",...y})});uw.displayName="Image";var cw=Object.defineProperty,dw=new class{constructor(){((e,t,n)=>{((e,t,n)=>{t in e?cw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)})(this,"modals"),this.modals=new Map}add(e){return this.modals.set(e,this.modals.size+1),this.modals.size}remove(e){this.modals.delete(e)}isTopModal(e){return!!e&&this.modals.get(e)===this.modals.size}};function fw(t,n){const[r,o]=(0,e.useState)(0);return(0,e.useEffect)(()=>{const e=t.current;if(e){if(n){const t=dw.add(e);o(t)}return()=>{dw.remove(e),o(0)}}},[n,t]),r}var hw=new WeakMap,pw=new WeakMap,mw={},gw=0,vw=function(e){return e&&(e.host||vw(e.parentNode))},yw=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=vw(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);mw[n]||(mw[n]=new WeakMap);var i=mw[n],a=[],s=new Set,l=new Set(o),u=function(e){e&&!s.has(e)&&(s.add(e),u(e.parentNode))};o.forEach(u);var c=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(hw.get(e)||0)+1,u=(i.get(e)||0)+1;hw.set(e,l),i.set(e,u),a.push(e),1===l&&o&&pw.set(e,!0),1===u&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),gw++,function(){a.forEach(function(e){var t=hw.get(e)-1,o=i.get(e)-1;hw.set(e,t),i.set(e,o),t||(pw.has(e)||e.removeAttribute(r),pw.delete(e)),o||e.removeAttribute(n)}),--gw||(hw=new WeakMap,hw=new WeakMap,pw=new WeakMap,mw={})}}(r,o,n,"aria-hidden")):function(){return null}};function bw(t){const{isOpen:n,onClose:r,id:o,closeOnOverlayClick:i=!0,closeOnEsc:a=!0,useInert:s=!0,onOverlayClick:l,onEsc:u}=t,c=(0,e.useRef)(null),d=(0,e.useRef)(null),[f,h,p]=function(t,...n){const r=(0,e.useId)(),o=t||r;return(0,e.useMemo)(()=>n.map(e=>`${e}-${o}`),[o,n])}(o,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,n){const r=t.current;(0,e.useEffect)(()=>{if(t.current&&n)return yw(t.current)},[n,t,r])}(c,n&&s);const m=fw(c,n),g=(0,e.useRef)(null),v=(0,e.useCallback)(e=>{g.current=e.target},[]),y=(0,e.useCallback)(e=>{"Escape"===e.key&&(e.stopPropagation(),a&&(null==r||r()),null==u||u())},[a,r,u]),[b,x]=(0,e.useState)(!1),[w,S]=(0,e.useState)(!1),k=(0,e.useCallback)((e={},t=null)=>({role:"dialog",...e,ref:Dr(t,c),id:f,tabIndex:-1,"aria-modal":!0,"aria-labelledby":b?h:void 0,"aria-describedby":w?p:void 0,onClick:Tt(e.onClick,e=>e.stopPropagation())}),[p,w,f,h,b]),C=(0,e.useCallback)(e=>{e.stopPropagation(),g.current===e.target&&dw.isTopModal(c.current)&&(i&&(null==r||r()),null==l||l())},[r,i,l]),E=(0,e.useCallback)((e={},t=null)=>({...e,ref:Dr(t,d),onClick:Tt(e.onClick,C),onKeyDown:Tt(e.onKeyDown,y),onMouseDown:Tt(e.onMouseDown,v)}),[y,v,C]);return{isOpen:n,onClose:r,headerId:h,bodyId:p,setBodyMounted:S,setHeaderMounted:x,dialogRef:c,overlayRef:d,getDialogProps:k,getDialogContainerProps:E,index:m}}var[xw,ww]=Gr({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[Sw,kw]=Gr({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),Cw=e=>{const t={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...e},{portalProps:n,children:r,autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h,onCloseComplete:p}=t,m=gr("Modal",t),g={...bw(t),autoFocus:o,trapFocus:i,initialFocusRef:a,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:u,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:f,lockFocusAcrossFrames:h};return(0,jr.jsx)(Sw,{value:g,children:(0,jr.jsx)(xw,{value:m,children:(0,jr.jsx)(yy,{onExitComplete:p,children:g.isOpen&&(0,jr.jsx)(_y,{...n,children:r})})})})};Cw.displayName="Modal";var Ew={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},_w={enter:{duration:.2,ease:Ew.easeOut},exit:{duration:.1,ease:Ew.easeIn}},Pw=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.enter}),Tw=(e,t)=>({...e,delay:"number"==typeof t?t:null==t?void 0:t.exit}),Rw={enter:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:1,transition:null!=(r=null==e?void 0:e.enter)?r:Pw(_w.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({transition:e,transitionEnd:t,delay:n}={})=>{var r;return{opacity:0,transition:null!=(r=null==e?void 0:e.exit)?r:Tw(_w.exit,n),transitionEnd:null==t?void 0:t.exit}}},Aw={initial:"exit",animate:"enter",exit:"exit",variants:Rw},Ow=(0,e.forwardRef)(function(e,t){const{unmountOnExit:n,in:r,className:o,transition:i,transitionEnd:a,delay:s,...l}=e,u=r||n?"enter":"exit",c=!n||r&&n,d={transition:i,transitionEnd:a,delay:s};return(0,jr.jsx)(yy,{custom:d,children:c&&(0,jr.jsx)(Uv.div,{ref:t,className:St("chakra-fade",o),custom:d,...Aw,animate:u,...l})})});Ow.displayName="Fade";var Fw=Mr(Uv.div),zw=K((e,t)=>{const{className:n,transition:r,motionProps:o,...i}=e,a=St("chakra-modal__overlay",n),s={pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh",...ww().overlay},{motionPreset:l}=kw(),u=o||("none"===l?{}:Aw);return(0,jr.jsx)(Fw,{...u,__css:s,ref:t,className:a,...i})});zw.displayName="ModalOverlay";var Mw={initial:({offsetX:e,offsetY:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,x:e,y:t,transition:null!=(i=null==n?void 0:n.exit)?i:Tw(_w.exit,o),transitionEnd:null==r?void 0:r.exit}},enter:({transition:e,transitionEnd:t,delay:n})=>{var r;return{opacity:1,x:0,y:0,transition:null!=(r=null==e?void 0:e.enter)?r:Pw(_w.enter,n),transitionEnd:null==t?void 0:t.enter}},exit:({offsetY:e,offsetX:t,transition:n,transitionEnd:r,reverse:o,delay:i})=>{var a;const s={x:t,y:e};return{opacity:0,transition:null!=(a=null==n?void 0:n.exit)?a:Tw(_w.exit,i),...o?{...s,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{...s,...null==r?void 0:r.exit}}}}},jw={initial:"initial",animate:"enter",exit:"exit",variants:Mw},Iw=(0,e.forwardRef)(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,className:i,offsetX:a=0,offsetY:s=8,transition:l,transitionEnd:u,delay:c,...d}=e,f=!n||r&&n,h=r||n?"enter":"exit",p={offsetX:a,offsetY:s,reverse:o,transition:l,transitionEnd:u,delay:c};return(0,jr.jsx)(yy,{custom:p,children:f&&(0,jr.jsx)(Uv.div,{ref:t,className:St("chakra-offset-slide",i),custom:p,...jw,animate:h,...d})})});Iw.displayName="SlideFade";var Nw={exit:({reverse:e,initialScale:t,transition:n,transitionEnd:r,delay:o})=>{var i;return{opacity:0,...e?{scale:t,transitionEnd:null==r?void 0:r.exit}:{transitionEnd:{scale:t,...null==r?void 0:r.exit}},transition:null!=(i=null==n?void 0:n.exit)?i:Tw(_w.exit,o)}},enter:({transitionEnd:e,transition:t,delay:n})=>{var r;return{opacity:1,scale:1,transition:null!=(r=null==t?void 0:t.enter)?r:Pw(_w.enter,n),transitionEnd:null==e?void 0:e.enter}}},Dw={initial:"exit",animate:"enter",exit:"exit",variants:Nw},Lw=(0,e.forwardRef)(function(e,t){const{unmountOnExit:n,in:r,reverse:o=!0,initialScale:i=.95,className:a,transition:s,transitionEnd:l,delay:u,...c}=e,d=!n||r&&n,f=r||n?"enter":"exit",h={initialScale:i,reverse:o,transition:s,transitionEnd:l,delay:u};return(0,jr.jsx)(yy,{custom:h,children:d&&(0,jr.jsx)(Uv.div,{ref:t,className:St("chakra-offset-slide",a),...Dw,animate:f,custom:h,...c})})});Lw.displayName="ScaleFade";var Bw={slideInBottom:{...jw,custom:{offsetY:16,reverse:!0}},slideInRight:{...jw,custom:{offsetX:16,reverse:!0}},slideInTop:{...jw,custom:{offsetY:-16,reverse:!0}},slideInLeft:{...jw,custom:{offsetX:-16,reverse:!0}},scale:{...Dw,custom:{initialScale:.95,reverse:!0}},none:{}},$w=Mr(Uv.section),Vw=e=>Bw[e||"none"],Ww=(0,e.forwardRef)((e,t)=>{const{preset:n,motionProps:r=Vw(n),...o}=e;return(0,jr.jsx)($w,{ref:t,...r,...o})});Ww.displayName="ModalTransition";var Uw="data-focus-lock",Hw="data-focus-lock-disabled";function qw(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Qw="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Kw=new WeakMap;function Gw(t,n){var r,o,i,a=(r=n||null,o=function(e){return t.forEach(function(t){return qw(t,e)})},(i=(0,e.useState)(function(){return{value:r,callback:o,facade:{get current(){return i.value},set current(e){var t=i.value;t!==e&&(i.value=e,i.callback(e,t))}}}})[0]).callback=o,i.facade);return Qw(function(){var e=Kw.get(a);if(e){var n=new Set(e),r=new Set(t),o=a.current;n.forEach(function(e){r.has(e)||qw(e,null)}),r.forEach(function(e){n.has(e)||qw(e,o)})}Kw.set(a,t)},[t]),a}var Xw={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Yw=function(){return Yw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yw.apply(this,arguments)};function Zw(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function Jw(e){return e}function eS(e,t){void 0===t&&(t=Jw);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}function tS(e,t){return void 0===t&&(t=Jw),eS(e,t)}function nS(e){void 0===e&&(e={});var t=eS(null);return t.options=Yw({async:!0,ssr:!1},e),t}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var rS=tS({},function(e){return{target:e.target,currentTarget:e.currentTarget}}),oS=tS(),iS=tS(),aS=nS({async:!0,ssr:"undefined"!=typeof document}),sS=(0,e.createContext)(void 0),lS=[],uS=(0,e.forwardRef)(function(n,r){var o,i=(0,e.useState)(),a=i[0],s=i[1],l=(0,e.useRef)(),u=(0,e.useRef)(!1),c=(0,e.useRef)(null),d=(0,e.useState)({})[1],f=n.children,h=n.disabled,p=void 0!==h&&h,m=n.noFocusGuards,g=void 0!==m&&m,v=n.persistentFocus,y=void 0!==v&&v,b=n.crossFrame,x=void 0===b||b,w=n.autoFocus,S=void 0===w||w,k=(n.allowTextSelection,n.group),C=n.className,E=n.whiteList,_=n.hasPositiveIndices,P=n.shards,T=void 0===P?lS:P,R=n.as,A=void 0===R?"div":R,O=n.lockProps,F=void 0===O?{}:O,z=n.sideCar,M=n.returnFocus,j=void 0!==M&&M,I=n.focusOptions,N=n.onActivation,D=n.onDeactivation,L=(0,e.useState)({})[0],B=(0,e.useCallback)(function(e){var t=e.captureFocusRestore;if(!c.current){var n,r=null==(n=document)?void 0:n.activeElement;c.current=r,r!==document.body&&(c.current=t(r))}l.current&&N&&N(l.current),u.current=!0,d()},[N]),$=(0,e.useCallback)(function(){u.current=!1,D&&D(l.current),d()},[D]),V=(0,e.useCallback)(function(e){var t=c.current;if(t){var n=("function"==typeof t?t():t)||document.body,r="function"==typeof j?j(n):j;if(r){var o="object"==typeof r?r:void 0;c.current=null,e?Promise.resolve().then(function(){return n.focus(o)}):n.focus(o)}}},[j]),W=(0,e.useCallback)(function(e){u.current&&rS.useMedium(e)},[]),U=oS.useMedium,H=(0,e.useCallback)(function(e){l.current!==e&&(l.current=e,s(e))},[]),q=Xe(((o={})[Hw]=p&&"disabled",o[Uw]=k,o),F),Q=!0!==g,K=Q&&"tail"!==g,G=Gw([r,H]),X=(0,e.useMemo)(function(){return{observed:l,shards:T,enabled:!p,get active(){return u.current}}},[p,u,T,l]);return t().createElement(e.Fragment,null,Q&&[t().createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:p?-1:0,style:Xw}),_?t().createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:p?-1:1,style:Xw}):null],!p&&t().createElement(z,{id:L,sideCar:aS,observed:a,disabled:p,persistentFocus:y,crossFrame:x,autoFocus:S,whiteList:E,shards:T,onActivation:B,onDeactivation:$,returnFocus:V,focusOptions:I,noFocusGuards:g}),t().createElement(A,Xe({ref:G},q,{className:C,onBlur:U,onFocus:W}),t().createElement(sS.Provider,{value:X},f)),K&&t().createElement("div",{"data-focus-guard":!0,tabIndex:p?-1:0,style:Xw}))});uS.propTypes={};const cS=uS;function dS(e,t){return dS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dS(e,t)}function fS(e){return fS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fS(e)}var hS=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},pS=function(e){return Array.isArray(e)?e:[e]},mS=function(e){return Array.isArray(e)?e[0]:e},gS=function(e){return e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode},vS=function(e){return e===document||e&&e.nodeType===Node.DOCUMENT_NODE},yS=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!e||vS(e)||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&!function(e){return e.hasAttribute("inert")}(e)&&t(gS(e))}(t,yS.bind(void 0,e));return e.set(t,r),r},bS=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=function(e,t){return!(e&&!vS(e))||!!kS(e)&&t(gS(e))}(t,bS.bind(void 0,e));return e.set(t,r),r},xS=function(e){return e.dataset},wS=function(e){return"INPUT"===e.tagName},SS=function(e){return wS(e)&&"radio"===e.type},kS=function(e){var t=e.getAttribute("data-no-autofocus");return![!0,"true",""].includes(t)},CS=function(e){var t;return Boolean(e&&(null===(t=xS(e))||void 0===t?void 0:t.focusGuard))},ES=function(e){return!CS(e)},_S=function(e){return Boolean(e)},PS=function(e,t){var n=Math.max(0,e.tabIndex),r=Math.max(0,t.tabIndex),o=n-r,i=e.index-t.index;if(o){if(!n)return 1;if(!r)return-1}return o||i},TS=function(e,t,n){return hS(e).map(function(e,t){var r=function(e){return e.tabIndex<0&&!e.hasAttribute("tabindex")?0:e.tabIndex}(e);return{node:e,index:t,tabIndex:n&&-1===r?(e.dataset||{}).focusGuard?0:-1:r}}).filter(function(e){return!t||e.tabIndex>=0}).sort(PS)},RS=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),AS="".concat(RS,", [data-focus-guard]"),OS=function(e,t){return hS((e.shadowRoot||e).children).reduce(function(e,n){return e.concat(n.matches(t?AS:RS)?[n]:[],OS(n))},[])},FS=function(e,t){return e.reduce(function(e,n){var r,o=OS(n,t),i=(r=[]).concat.apply(r,o.map(function(e){return function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?FS([e.contentDocument.body],t):[e]}(e,t)}));return e.concat(i,n.parentNode?hS(n.parentNode.querySelectorAll(RS)).filter(function(e){return e===n}):[])},[])},zS=function(e,t){return hS(e).filter(function(e){return yS(t,e)}).filter(function(e){return function(e){return!((wS(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)})},MS=function(e,t){return void 0===t&&(t=new Map),hS(e).filter(function(e){return bS(t,e)})},jS=function(e,t,n){return TS(zS(FS(e,n),t),!0,n)},IS=function(e,t){return TS(zS(FS(e),t),!1)},NS=function(e,t){return e.shadowRoot?NS(e.shadowRoot,t):!(void 0===Object.getPrototypeOf(e).contains||!Object.getPrototypeOf(e).contains.call(e,t))||hS(e.children).some(function(e){var n;if(e instanceof HTMLIFrameElement){var r=null===(n=e.contentDocument)||void 0===n?void 0:n.body;return!!r&&NS(r,t)}return NS(e,t)})},DS=function(e){if(void 0===e&&(e=document),e&&e.activeElement){var t=e.activeElement;return t.shadowRoot?DS(t.shadowRoot):t instanceof HTMLIFrameElement&&function(){try{return t.contentWindow.document}catch(e){return}}()?DS(t.contentWindow.document):t}},LS=function(e){return e.parentNode?LS(e.parentNode):e},BS=function(e){return pS(e).filter(Boolean).reduce(function(e,t){var n=t.getAttribute(Uw);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var i=e[r].compareDocumentPosition(e[o]);(i&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(i&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter(function(e,n){return!t.has(n)})}(hS(LS(t).querySelectorAll("[".concat(Uw,'="').concat(n,'"]:not([').concat(Hw,'="disabled"])')))):[t]),e},[])},$S=function(e,t){return void 0===t&&(t=DS(mS(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&BS(e).some(function(e){return NS(e,t)||function(e,t){return Boolean(hS(e.querySelectorAll("iframe")).some(function(e){return function(e,t){return e===t}(e,t)}))}(e,t)})},VS=function(e,t){e&&("focus"in e&&e.focus(t),"contentWindow"in e&&e.contentWindow&&e.contentWindow.focus())},WS=function(e,t){return SS(e)&&e.name?function(e,t){return t.filter(SS).filter(function(t){return t.name===e.name}).filter(function(e){return e.checked})[0]||e}(e,t):e},US=function(e){return e[0]&&e.length>1?WS(e[0],e):e[0]},HS=function(e,t){return e.indexOf(WS(t,e))},qS="NEW_FOCUS",QS=function(e,t,n){var r,o=e.map(function(e){return e.node}),i=MS(o.filter((r=n,function(e){var t,n=null===(t=xS(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return i&&i.length?US(i):US(MS(t))},KS=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&KS(e.parentNode.host||e.parentNode,t),t},GS=function(e,t){for(var n=KS(e),r=KS(t),o=0;o<n.length;o+=1){var i=n[o];if(r.indexOf(i)>=0)return i}return!1},XS=function(e,t,n){var r=pS(e),o=pS(t),i=r[0],a=!1;return o.filter(Boolean).forEach(function(e){a=GS(a||e,e)||a,n.filter(Boolean).forEach(function(e){var t=GS(i,e);t&&(a=!a||NS(t,a)?t:GS(t,a))})}),a},YS=function(e,t){return e.reduce(function(e,n){return e.concat(function(e,t){return zS((n=e.querySelectorAll("[".concat("data-autofocus-inside","]")),hS(n).map(function(e){return FS([e])}).reduce(function(e,t){return e.concat(t)},[])),t);var n}(n,t))},[])},ZS=function(e,t){var n=DS(pS(e).length>0?document:mS(e).ownerDocument),r=BS(e).filter(ES),o=XS(n||e,e,r),i=new Map,a=IS(r,i),s=a.filter(function(e){var t=e.node;return ES(t)});if(s[0]){var l,u,c,d=IS([o],i).map(function(e){return e.node}),f=(l=d,u=s,c=new Map,u.forEach(function(e){return c.set(e.node,e)}),l.map(function(e){return c.get(e)}).filter(_S)),h=f.map(function(e){return e.node}),p=f.filter(function(e){return e.tabIndex>=0}).map(function(e){return e.node}),m=function(e,t,n,r,o){var i=e.length,a=e[0],s=e[i-1],l=CS(r);if(!(r&&e.indexOf(r)>=0)){var u=void 0!==r?n.indexOf(r):-1,c=o?n.indexOf(o):u,d=o?e.indexOf(o):-1;if(-1===u)return-1!==d?d:qS;if(-1===d)return qS;var f,h,p=u-c,m=n.indexOf(a),g=n.indexOf(s),v=(f=n,h=new Set,f.forEach(function(e){return h.add(WS(e,f))}),f.filter(function(e){return h.has(e)})),y=void 0!==r?v.indexOf(r):-1,b=o?v.indexOf(o):y,x=v.filter(function(e){return e.tabIndex>=0}),w=void 0!==r?x.indexOf(r):-1,S=o?x.indexOf(o):w,k=w>=0&&S>=0?S-w:b-y;if(!p&&d>=0)return d;if(0===t.length)return d;var C=HS(e,t[0]),E=HS(e,t[t.length-1]);return u<=m&&l&&Math.abs(p)>1?E:u>=g&&l&&Math.abs(p)>1?C:p&&Math.abs(k)>1?d:u<=m?E:u>g?C:p?Math.abs(p)>1?d:(i+d+p)%i:void 0}}(h,p,d,n,t);if(m===qS){var g=QS(a,p,YS(r,i))||QS(a,h,YS(r,i));return g?{node:g}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===m?m:f[m]}},JS=0,ek=!1,tk=function(e,t,n){void 0===n&&(n={});var r=ZS(e,t);if(!ek&&r){if(JS>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ek=!0,void setTimeout(function(){ek=!1},1);JS++,VS(r.node,n.focusOptions),JS--}};function nk(e){if(!e)return null;if("undefined"==typeof WeakRef)return function(){return e||null};var t=e?new WeakRef(e):null;return function(){return(null==t?void 0:t.deref())||null}}var rk=function(e){var t=function(e){if(!e)return null;for(var t=[],n=e;n&&n!==document.body;)t.push({current:nk(n),parent:nk(n.parentElement),left:nk(n.previousElementSibling),right:nk(n.nextElementSibling)}),n=n.parentElement;return{element:nk(e),stack:t,ownerDocument:e.ownerDocument}}(e);return function(){return function(e){var t,n,r,o,i;if(e)for(var a=e.stack,s=e.ownerDocument,l=new Map,u=0,c=a;u<c.length;u++){var d=c[u],f=null===(t=d.parent)||void 0===t?void 0:t.call(d);if(f&&s.contains(f)){for(var h=null===(n=d.left)||void 0===n?void 0:n.call(d),p=d.current(),m=f.contains(p)?p:void 0,g=null===(r=d.right)||void 0===r?void 0:r.call(d),v=jS([f],l),y=null!==(i=null!==(o=null!=m?m:null==h?void 0:h.nextElementSibling)&&void 0!==o?o:g)&&void 0!==i?i:h;y;){for(var b=0,x=v;b<x.length;b++){var w=x[b];if(null==y?void 0:y.contains(w.node))return w.node}y=y.nextElementSibling}if(v.length)return v[0].node}}}(t)}},ok=function(e,t,n){void 0===t&&(t={});var r=function(e){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},e)}(t),o=function(e,t,n){if(!e||!t)return console.error("no element or scope given"),{};var r=pS(t);if(r.every(function(t){return!NS(t,e)}))return console.error("Active element is not contained in the scope"),{};var o=n?jS(r,new Map):IS(r,new Map),i=o.findIndex(function(t){return t.node===e});return-1!==i?{prev:o[i-1],next:o[i+1],first:o[0],last:o[o.length-1]}:void 0}(e,r.scope,r.onlyTabbable);if(o){var i=n(o,r.cycle);i&&VS(i.node,r.focusOptions)}},ik=function(e,t,n){var r,o,i,a,s=(o=e,i=null===(r=t.onlyTabbable)||void 0===r||r,{first:(a=i?jS(pS(o),new Map):IS(pS(o),new Map))[0],last:a[a.length-1]})[n];s&&VS(s.node,t.focusOptions)};function ak(e){setTimeout(e,1)}var sk=function(e){return e&&"current"in e?e.current:e},lk=function(){return document&&document.activeElement===document.body},uk=null,ck=null,dk=function(){return null},fk=null,hk=!1,pk=!1,mk=function(){return!0};function gk(e,t,n,r){var o=null,i=e;do{var a=r[i];if(a.guard)a.node.dataset.focusAutoGuard&&(o=a);else{if(!a.lockItem)break;if(i!==e)return;o=null}}while((i+=n)!==t);o&&(o.node.tabIndex=0)}var vk=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},yk=function(e){return IS(e,new Map)},bk=function(){var e,t,n,r,o,i,a=!1;if(uk){var s=uk,l=s.observed,u=s.persistentFocus,c=s.autoFocus,d=s.shards,f=s.crossFrame,h=s.focusOptions,p=s.noFocusGuards,m=l||fk&&fk.portaledElement;if(lk()&&ck&&ck!==document.body&&(!document.body.contains(ck)||function(e){return!yk([e.parentNode]).some(function(t){return t.node===e})}(ck))){var g=dk();g&&g.focus()}var v=document&&document.activeElement;if(m){var y=[m].concat(d.map(sk).filter(Boolean));if(v&&!function(e){return(uk.whiteList||mk)(e)}(v)||(u||function(){if(!(f?Boolean(hk):"meanwhile"===hk)||!p||!ck||pk)return!1;var e=yk(y),t=e.findIndex(function(e){return e.node===ck});return 0===t||t===e.length-1}()||!(lk()||function(e){void 0===e&&(e=document);var t=DS(e);return!!t&&hS(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(e){return NS(e,t)})}())||!ck&&c)&&(m&&!($S(y)||v&&function(e,t){return t.some(function(t){return vk(e,t,t)})}(v,y)||(i=v,fk&&fk.portaledElement===i))&&(document&&!ck&&v&&!c?(v.blur&&v.blur(),document.body.focus()):(a=tk(y,ck,{focusOptions:h}),fk={})),(ck=document&&document.activeElement)!==document.body&&(dk=rk(ck)),hk=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var b=document&&document.activeElement,x=(t=BS(e=y).filter(ES),n=XS(e,e,t),r=TS(FS([n],!0),!0,!0),o=FS(t,!1),r.map(function(e){var t=e.node;return{node:t,index:e.index,lockItem:o.indexOf(t)>=0,guard:CS(t)}})),w=x.map(function(e){return e.node}).indexOf(b);w>-1&&(x.filter(function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard}).forEach(function(e){return e.node.removeAttribute("tabIndex")}),gk(w,x.length,1,x),gk(w,-1,-1,x))}}}return a},xk=function(e){bk()&&e&&(e.stopPropagation(),e.preventDefault())},wk=function(){return ak(bk)},Sk=function(){pk=!0},kk=function(){pk=!1,hk="just",ak(function(){hk="meanwhile"})},Ck={moveFocusInside:tk,focusInside:$S,focusNextElement:function(e,t){void 0===t&&(t={}),ok(e,t,function(e,t){var n=e.next,r=e.first;return n||t&&r})},focusPrevElement:function(e,t){void 0===t&&(t={}),ok(e,t,function(e,t){var n=e.prev,r=e.last;return n||t&&r})},focusFirstElement:function(e,t){void 0===t&&(t={}),ik(e,t,"first")},focusLastElement:function(e,t){void 0===t&&(t={}),ik(e,t,"last")},captureFocusRestore:rk};rS.assignSyncMedium(function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(fk={observerNode:n,portaledElement:t})}),oS.assignMedium(wk),iS.assignMedium(function(e){return e(Ck)});const Ek=(_k=function(e){return e.filter(function(e){return!e.disabled})},Pk=function(e){var t=e.slice(-1)[0];t&&!uk&&(document.addEventListener("focusin",xk),document.addEventListener("focusout",wk),window.addEventListener("focus",Sk),window.addEventListener("blur",kk));var n=uk,r=n&&t&&t.id===n.id;uk=t,n&&!r&&(n.onDeactivation(),e.filter(function(e){return e.id===n.id}).length||n.returnFocus(!t)),t?(ck=null,r&&n.observed===t.observed||t.onActivation(Ck),bk(),ak(bk)):(document.removeEventListener("focusin",xk),document.removeEventListener("focusout",wk),window.removeEventListener("focus",Sk),window.removeEventListener("blur",kk),ck=null)},function(n){var r,o=[];function i(){r=_k(o.map(function(e){return e.props})),Pk(r)}var a=function(e){function a(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dS(e,t)}(a,e),a.peek=function(){return r};var s=a.prototype;return s.componentDidMount=function(){o.push(this),i()},s.componentDidUpdate=function(){i()},s.componentWillUnmount=function(){var e=o.indexOf(this);o.splice(e,1),i()},s.render=function(){return t().createElement(n,this.props)},a}(e.PureComponent);return function(e,t,n){(t=function(e){var t=function(e){if("object"!=fS(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=fS(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fS(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(a,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(n)+")"),a})(function(){return null});var _k,Pk,Tk=(0,e.forwardRef)(function(e,n){return t().createElement(cS,Xe({sideCar:Ek,ref:n},e))}),Rk=cS.propTypes||{};Rk.sideCar,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}}(Rk,["sideCar"]),Tk.propTypes={};const Ak=Tk;function Ok(e){return!(!e.parentElement||!Ok(e.parentElement))||e.hidden}function Fk(e){if(!function(e){var t;return!!function(e){return null!=e&&"object"==typeof e&&"nodeType"in e&&e.nodeType===Node.ELEMENT_NODE}(e)&&e instanceof(null!=(t=e.ownerDocument.defaultView)?t:window).HTMLElement}(e)||Ok(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;const{localName:t}=e;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;const n={a:()=>e.hasAttribute("href"),audio:()=>e.hasAttribute("controls"),video:()=>e.hasAttribute("controls")};return t in n?n[t]():!!function(e){const t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||(e=>e.hasAttribute("tabindex"))(e)}var zk,Mk=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join();var jk=null!=(zk=Ak.default)?zk:Ak,Ik=t=>{const{initialFocusRef:n,finalFocusRef:r,contentRef:o,restoreFocus:i,children:a,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,e.useCallback)(()=>{(null==n?void 0:n.current)?n.current.focus():(null==o?void 0:o.current)&&0===function(e){const t=Array.from(e.querySelectorAll(Mk));return t.unshift(e),t.filter(e=>Fk(e)&&(e=>e.offsetWidth>0&&e.offsetHeight>0)(e))}(o.current).length&&requestAnimationFrame(()=>{var e;null==(e=o.current)||e.focus()})},[n,o]),f=(0,e.useCallback)(()=>{var e;null==(e=null==r?void 0:r.current)||e.focus()},[r]),h=i&&!r;return(0,jr.jsx)(jk,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:f,returnFocus:h,children:a})};Ik.displayName="FocusLock";var Nk="right-scroll-bar-position",Dk="width-before-scroll-bar",Lk=nS(),Bk=function(){},$k=e.forwardRef(function(t,n){var r=e.useRef(null),o=e.useState({onScrollCapture:Bk,onWheelCapture:Bk,onTouchMoveCapture:Bk}),i=o[0],a=o[1],s=t.forwardProps,l=t.children,u=t.className,c=t.removeScrollBar,d=t.enabled,f=t.shards,h=t.sideCar,p=t.noRelative,m=t.noIsolation,g=t.inert,v=t.allowPinchZoom,y=t.as,b=void 0===y?"div":y,x=t.gapMode,w=Zw(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),S=h,k=Gw([r,n]),C=Yw(Yw({},w),i);return e.createElement(e.Fragment,null,d&&e.createElement(S,{sideCar:Lk,removeScrollBar:c,shards:f,noRelative:p,noIsolation:m,inert:g,setCallbacks:a,allowPinchZoom:!!v,lockRef:r,gapMode:x}),s?e.cloneElement(e.Children.only(l),Yw(Yw({},C),{ref:k})):e.createElement(b,Yw({},C,{className:u,ref:k}),l))});$k.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},$k.classNames={fullWidth:Dk,zeroRight:Nk};var Vk=function(t){var n=t.sideCar,r=Zw(t,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=n.read();if(!o)throw new Error("Sidecar medium not found");return e.createElement(o,Yw({},r))};Vk.isSideCarExport=!0;var Wk=function(){var e=0,t=null;return{add:function(r){var o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,r),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Uk=function(){var t,n=(t=Wk(),function(n,r){e.useEffect(function(){return t.add(n),function(){t.remove()}},[n&&r])});return function(e){var t=e.styles,r=e.dynamic;return n(t,r),null}},Hk={left:0,top:0,right:0,gap:0},qk=function(e){return parseInt(e||"",10)||0},Qk=Uk(),Kk="data-scroll-locked",Gk=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(Kk,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(Nk," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Dk," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Nk," .").concat(Nk," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Dk," .").concat(Dk," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(Kk,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Xk=function(){var e=parseInt(document.body.getAttribute(Kk)||"0",10);return isFinite(e)?e:0},Yk=function(t){var n=t.noRelative,r=t.noImportant,o=t.gapMode,i=void 0===o?"margin":o;e.useEffect(function(){return document.body.setAttribute(Kk,(Xk()+1).toString()),function(){var e=Xk()-1;e<=0?document.body.removeAttribute(Kk):document.body.setAttribute(Kk,e.toString())}},[]);var a=e.useMemo(function(){return function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Hk;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[qk(n),qk(r),qk(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}}(i)},[i]);return e.createElement(Qk,{styles:Gk(a,!n,i,r?"":"!important")})},Zk=!1;if("undefined"!=typeof window)try{var Jk=Object.defineProperty({},"passive",{get:function(){return Zk=!0,!0}});window.addEventListener("test",Jk,Jk),window.removeEventListener("test",Jk,Jk)}catch(e){Zk=!1}var eC=!!Zk&&{passive:!1},tC=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},nC=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),rC(e,r)){var o=oC(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},rC=function(e,t){return"v"===e?function(e){return tC(e,"overflowY")}(t):function(e){return tC(e,"overflowX")}(t)},oC=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},iC=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},aC=function(e){return[e.deltaX,e.deltaY]},sC=function(e){return e&&"current"in e?e.current:e},lC=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},uC=0,cC=[];function dC(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const fC=(hC=function(t){var n=e.useRef([]),r=e.useRef([0,0]),o=e.useRef(),i=e.useState(uC++)[0],a=e.useState(Uk)[0],s=e.useRef(t);e.useEffect(function(){s.current=t},[t]),e.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([t.lockRef.current],(t.shards||[]).map(sC),!0).filter(Boolean);return e.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var l=e.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var n,i=iC(e),a=r.current,l="deltaX"in e?e.deltaX:a[0]-i[0],u="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===c||h.contains(c)))return!1;var p=nC(d,c);if(!p)return!0;if(p?n=d:(n="v"===d?"h":"v",p=nC(d,c)),!p)return!1;if(!o.current&&"changedTouches"in e&&(l||u)&&(o.current=n),!n)return!0;var m=o.current||n;return function(e,t,n,r){var o=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=o*r,a=n.target,s=t.contains(a),l=!1,u=i>0,c=0,d=0;do{if(!a)break;var f=oC(e,a),h=f[0],p=f[1]-f[2]-o*h;(h||p)&&rC(e,a)&&(c+=p,d+=h);var m=a.parentNode;a=m&&m.nodeType===Node.DOCUMENT_FRAGMENT_NODE?m.host:m}while(!s&&a!==document.body||s&&(t.contains(a)||t===a));return(u&&(Math.abs(c)<1||!1)||!u&&(Math.abs(d)<1||!1))&&(l=!0),l}(m,t,e,"h"===m?l:u)},[]),u=e.useCallback(function(e){var t=e;if(cC.length&&cC[cC.length-1]===a){var r="deltaY"in t?aC(t):iC(t),o=n.current.filter(function(e){return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(n=e.delta,o=r,n[0]===o[0]&&n[1]===o[1]);var n,o})[0];if(o&&o.should)t.cancelable&&t.preventDefault();else if(!o){var i=(s.current.shards||[]).map(sC).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?l(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),c=e.useCallback(function(e,t,r,o){var i={name:e,delta:t,target:r,should:o,shadowParent:dC(r)};n.current.push(i),setTimeout(function(){n.current=n.current.filter(function(e){return e!==i})},1)},[]),d=e.useCallback(function(e){r.current=iC(e),o.current=void 0},[]),f=e.useCallback(function(e){c(e.type,aC(e),e.target,l(e,t.lockRef.current))},[]),h=e.useCallback(function(e){c(e.type,iC(e),e.target,l(e,t.lockRef.current))},[]);e.useEffect(function(){return cC.push(a),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,eC),document.addEventListener("touchmove",u,eC),document.addEventListener("touchstart",d,eC),function(){cC=cC.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,eC),document.removeEventListener("touchmove",u,eC),document.removeEventListener("touchstart",d,eC)}},[]);var p=t.removeScrollBar,m=t.inert;return e.createElement(e.Fragment,null,m?e.createElement(a,{styles:lC(i)}):null,p?e.createElement(Yk,{noRelative:t.noRelative,gapMode:t.gapMode}):null)},Lk.useMedium(hC),Vk);var hC,pC=e.forwardRef(function(t,n){return e.createElement($k,Yw({},t,{ref:n,sideCar:fC}))});pC.classNames=$k.classNames;const mC=pC;function gC(t){const{autoFocus:n,trapFocus:r,dialogRef:o,initialFocusRef:i,blockScrollOnMount:a,allowPinchZoom:s,finalFocusRef:l,returnFocusOnClose:u,preserveScrollBarGap:c,lockFocusAcrossFrames:d,isOpen:f}=kw(),[h,p]=Zc();(0,e.useEffect)(()=>{!h&&p&&setTimeout(p)},[h,p]);const m=fw(o,f);return(0,jr.jsx)(Ik,{autoFocus:n,isDisabled:!r,initialFocusRef:i,finalFocusRef:l,restoreFocus:u,contentRef:o,lockFocusAcrossFrames:d,children:(0,jr.jsx)(mC,{removeScrollBar:!c,allowPinchZoom:s,enabled:1===m&&a,forwardProps:!0,children:t.children})})}var vC=K((e,t)=>{const{className:n,children:r,containerProps:o,motionProps:i,...a}=e,{getDialogProps:s,getDialogContainerProps:l}=kw(),u=s(a,t),c=l(o),d=St("chakra-modal__content",n),f=ww(),h={display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0,...f.dialog},p={display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0,...f.dialogContainer},{motionPreset:m}=kw();return(0,jr.jsx)(gC,{children:(0,jr.jsx)(Mr.div,{...c,className:"chakra-modal__content-container",tabIndex:-1,__css:p,children:(0,jr.jsx)(Ww,{preset:m,motionProps:i,className:d,...u,__css:h,children:r})})})});vC.displayName="ModalContent";var yC=K((t,n)=>{const{className:r,...o}=t,{headerId:i,setHeaderMounted:a}=kw();(0,e.useEffect)(()=>(a(!0),()=>a(!1)),[a]);const s=St("chakra-modal__header",r),l={flex:0,...ww().header};return(0,jr.jsx)(Mr.header,{ref:n,className:s,id:i,...o,__css:l})});yC.displayName="ModalHeader";var bC=K((e,t)=>{const{onClick:n,className:r,...o}=e,{onClose:i}=kw(),a=St("chakra-modal__close-btn",r),s=ww();return(0,jr.jsx)(sy,{ref:t,__css:s.closeButton,className:a,onClick:Tt(n,e=>{e.stopPropagation(),i()}),...o})});bC.displayName="ModalCloseButton";var xC=K((t,n)=>{const{className:r,...o}=t,{bodyId:i,setBodyMounted:a}=kw();(0,e.useEffect)(()=>(a(!0),()=>a(!1)),[a]);const s=St("chakra-modal__body",r),l=ww();return(0,jr.jsx)(Mr.div,{ref:n,className:s,id:i,...o,__css:l.body})});xC.displayName="ModalBody";var wC=K((e,t)=>{const{className:n,...r}=e,o=St("chakra-modal__footer",n),i={display:"flex",alignItems:"center",justifyContent:"flex-end",...ww().footer};return(0,jr.jsx)(Mr.footer,{ref:t,...r,__css:i,className:o})});wC.displayName="ModalFooter";const SC=console;class kC{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),nb(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:eb?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class CC extends kC{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||SC,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=Ab({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,o,i,a,s,l,u;if(!t){var c,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(c=(d=this.mutationCache.config).onMutate)?void 0:c.call(d,this.state.variables,this));const e=await(null==(f=(h=this.options).onMutate)?void 0:f.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context,this)),await(null==(o=(i=this.options).onSuccess)?void 0:o.call(i,p,this.state.variables,this.state.context)),await(null==(a=(s=this.mutationCache.config).onSettled)?void 0:a.call(s,p,null,this.state.variables,this.state.context,this)),await(null==(l=(u=this.options).onSettled)?void 0:l.call(u,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(e){try{var p,m,g,v,y,b,x,w;throw await(null==(p=(m=this.mutationCache.config).onError)?void 0:p.call(m,e,this.state.variables,this.state.context,this)),await(null==(g=(v=this.options).onError)?void 0:g.call(v,e,this.state.variables,this.state.context)),await(null==(y=(b=this.mutationCache.config).onSettled)?void 0:y.call(b,void 0,e,this.state.variables,this.state.context,this)),await(null==(x=(w=this.options).onSettled)?void 0:x.call(w,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Pb(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),wb.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}}class EC extends Sb{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.client.defaultMutationOptions(e),hb(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=this.currentMutation)||e.removeObserver(this)}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){wb.batch(()=>{var t,n,r,o;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(r=(o=this.mutateOptions).onSettled)||r.call(o,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var i,a,s,l;null==(i=(a=this.mutateOptions).onError)||i.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(s=(l=this.mutateOptions).onSettled)||s.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}}function _C(){}function PC(e){return qx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M462.3 62.6C407.5 15.9 326 24.3 275.7 76.2L256 96.5l-19.7-20.3C186.1 24.3 104.5 15.9 49.7 62.6c-62.8 53.6-66.1 149.8-9.9 207.9l193.5 199.8c12.5 12.9 32.8 12.9 45.3 0l193.5-199.8c56.3-58.1 53-154.3-9.8-207.9z"},child:[]}]})(e)}function TC(e){return qx({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M458.4 64.3C400.6 15.7 311.3 23 256 79.3 200.7 23 111.4 15.6 53.6 64.3-21.6 127.6-10.6 230.8 43 285.5l175.4 178.7c10 10.2 23.4 15.9 37.6 15.9 14.3 0 27.6-5.6 37.6-15.8L469 285.6c53.5-54.7 64.7-157.9-10.6-221.3zm-23.6 187.5L259.4 430.5c-2.4 2.4-4.4 2.4-6.8 0L77.2 251.8c-36.5-37.2-43.9-107.6 7.3-150.7 38.9-32.7 98.9-27.8 136.5 10.5l35 35.7 35-35.7c37.8-38.5 97.8-43.2 136.5-10.6 51.1 43.1 43.5 113.9 7.3 150.8z"},child:[]}]})(e)}function RC(e){return qx({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"},child:[]},{tag:"path",attr:{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"},child:[]}]})(e)}const AC=n.p+"90ca815da37eeb572e36210096d10984.png";var[OC,FC]=Gr({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Table />\" "}),zC=K((e,t)=>{const n=gr("Table",e),{className:r,layout:o,...i}=ur(e);return(0,jr.jsx)(OC,{value:n,children:(0,jr.jsx)(Mr.table,{ref:t,__css:{tableLayout:o,...n.table},className:St("chakra-table",r),...i})})});zC.displayName="Table";var MC=K((e,t)=>{const n=FC();return(0,jr.jsx)(Mr.tbody,{...e,ref:t,__css:n.tbody})}),jC=K((e,t)=>{const n=FC();return(0,jr.jsx)(Mr.tr,{...e,ref:t,__css:n.tr})}),IC=K(({isNumeric:e,...t},n)=>{const r=FC();return(0,jr.jsx)(Mr.td,{...t,ref:n,__css:r.td,"data-is-numeric":e})});function NC(t){const{viewBox:n="0 0 24 24",d:r,displayName:o,defaultProps:i={}}=t,a=e.Children.toArray(t.path),s=K((e,t)=>(0,jr.jsx)(Nr,{ref:t,viewBox:n,...i,...e,children:a.length?a:(0,jr.jsx)("path",{fill:"currentColor",d:r})}));return s.displayName=o,s}const DC=NC({displayName:"CheckCircleIcon",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"}),LC=NC({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),{restURL:BC,security:$C}=gx,VC=({requiredPlugins:n,onActivateAndContinue:r})=>{const[o,i]=(0,e.useState)({}),[a,l]=(0,e.useState)(!1),[u,c]=(0,e.useState)(!1),[d,f]=(0,e.useState)(!1),[h,p]=(0,e.useState)(""),m=nw();(0,e.useEffect)(()=>{(async()=>{try{const e=await mx({path:`${BC}everest-forms/v1/plugin/status`,method:"GET",headers:{"X-WP-Nonce":$C}});e.success?(i(e.plugin_status),g(e.plugin_status)):m({title:Q("Error","everest-forms"),description:Q("Invalid response format.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}catch(e){m({title:Q("Error","everest-forms"),description:Q("Unable to check plugin status.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}})()},[m]);const g=e=>{const t=n.every(t=>"active"===e[t.key]),r=n.some(t=>"not-installed"===e[t.key]),o=n.some(t=>"inactive"===e[t.key]);t?(p(Q("Continue","everest-forms")),f(!0)):r?(p(Q("Install & Activate","everest-forms")),f(!1)):o?(p(Q("Activate and Continue","everest-forms")),f(!1)):(p(Q("Continue","everest-forms")),f(!1))};return t().createElement(Xy,{spacing:4,align:"stretch"},n?.length>0&&t().createElement(t().Fragment,null,t().createElement($y,{color:"gray.200",mb:0}),t().createElement(Wy,{my:0,fontSize:16,color:"gray.700"},"This form template requires the following addons:"),t().createElement(Fy,{borderWidth:"1px",borderRadius:"md",overflow:"hidden",w:"100%"},t().createElement(zC,{variant:"simple"},t().createElement(MC,null,n.map(e=>t().createElement(jC,{key:e.key},t().createElement(IC,null,e.value),t().createElement(IC,{textAlign:"right"},"active"===o[e.key]?t().createElement(Nr,{as:DC,color:"green"}):"inactive"===o[e.key]||"not-installed"===o[e.key]?t().createElement(Nr,{as:LC,color:"yellow"}):t().createElement(Xv,{size:"sm"})))))))),h&&t().createElement(Ky,{marginLeft:"auto",onClick:async()=>{if(d)c(!0),r();else{const e=n.some(e=>"not-installed"===o[e.key]);if(n.some(e=>"inactive"===o[e.key])||e){l(!0),c(!0);let e="";for(const t of n)try{const n=await mx({path:`${BC}everest-forms/v1/plugin/activate`,method:"POST",body:JSON.stringify({moduleData:[{name:t.value,slug:t.key,type:(o[t.key],"addon")}]}),headers:{"Content-Type":"application/json","X-WP-Nonce":$C}});n.success?(i(e=>({...e,[t.key]:"active"})),e=n.message||Q("Plugin activated successfully.","everest-forms")):(i(e=>({...e,[t.key]:"error"})),e=n.message||s(Q("Failed to activate plugin: %s.","everest-forms"),t.value))}catch(n){i(e=>({...e,[t.key]:"error"})),e=s(Q("Unable to activate %s.","everest-forms"),t.value)}l(!1),c(!1),f(!0),p("Continue"),m({title:Q("Success","everest-forms"),description:e,status:"success",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}else r()}},colorScheme:"purple",size:"md",isLoading:a,isDisabled:u},h))};function WC(){return WC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WC.apply(null,arguments)}const{restURL:UC,security:HC}=gx,qC=e=>t().createElement(Nr,WC({viewBox:"0 0 24 24"},e),t().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 54 54"},t().createElement("rect",{width:"54",height:"54",fill:"#FA5252",rx:"27"}),t().createElement("path",{fill:"#fff",d:"M34 22.334h-1.166v-1.167A5.84 5.84 0 0 0 27 15.334a5.84 5.84 0 0 0-5.833 5.833v1.167H20a2.333 2.333 0 0 0-2.333 2.333v11.667A2.333 2.333 0 0 0 20 38.667h14a2.333 2.333 0 0 0 2.334-2.333V24.667A2.333 2.333 0 0 0 34 22.334Zm-10.5-1.167c0-1.93 1.57-3.5 3.5-3.5s3.5 1.57 3.5 3.5v1.167h-7v-1.167Zm4.667 10.177v2.657h-2.333v-2.657a2.323 2.323 0 0 1-.484-3.66 2.333 2.333 0 0 1 3.984 1.65c0 .861-.473 1.605-1.167 2.01Z"}))),QC=({selectedCategory:n,templates:r})=>{const[o,i]=(0,e.useState)(null),[a,l]=(0,e.useState)(""),[u,c]=(0,e.useState)(""),{isOpen:d,onOpen:f,onClose:h}=function(t={}){const{onClose:n,onOpen:r,isOpen:o,id:i}=t,a=tw(r),s=tw(n),[l,u]=(0,e.useState)(t.defaultIsOpen||!1),[c,d]=function(e,t){const n=void 0!==e;return[n,n&&void 0!==e?e:t]}(o,l),f=function(t,n){const r=(0,e.useId)();return(0,e.useMemo)(()=>t||[n,r].filter(Boolean).join("-"),[t,n,r])}(i,"disclosure"),h=(0,e.useCallback)(()=>{c||u(!1),null==s||s()},[c,s]),p=(0,e.useCallback)(()=>{c||u(!0),null==a||a()},[c,a]),m=(0,e.useCallback)(()=>{(d?h:p)()},[d,p,h]);return{isOpen:!!d,onOpen:p,onClose:h,onToggle:m,isControlled:c,getButtonProps:(e={})=>({...e,"aria-expanded":d,"aria-controls":f,onClick:wr(e.onClick,m)}),getDisclosureProps:(e={})=>({...e,hidden:!d,id:f})}}(),[p,m]=(0,e.useState)(null),[g,v]=(0,e.useState)([]),y=nw(),b=$b(),[x,w]=(0,e.useState)(!1),S=()=>w(!1);(0,e.useEffect)(()=>{const e=localStorage.getItem("favorites");if(e)v(JSON.parse(e));else{(async()=>{try{const e=await mx({path:`${UC}everest-forms/v1/templates/favorite_forms`,method:"GET",headers:{"X-WP-Nonce":HC}});e&&Array.isArray(e)&&(v(e),localStorage.setItem("favorites",JSON.stringify(e)))}catch(e){console.error("Error fetching favorites:",e)}})()}},[]);const k=function(t,n,r){const o=function(e,t,n){return vb(e)?"function"==typeof t?{...n,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(t,n,r),i=$b({context:o.context}),[a]=e.useState(()=>new EC(i,o));e.useEffect(()=>{a.setOptions(o)},[a,o]);const s=Ib(e.useCallback(e=>a.subscribe(wb.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),l=e.useCallback((e,t)=>{a.mutate(e,t).catch(_C)},[a]);if(s.error&&Ub(a.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:l,mutateAsync:s.mutate}}(async e=>{const t=g.includes(e)?g.filter(t=>t!==e):[...g,e];return v(t),localStorage.setItem("favorites",JSON.stringify(t)),await mx({path:`${UC}everest-forms/v1/templates/favorite`,method:"POST",body:JSON.stringify({action:t.includes(e)?"add_favorite":"remove_favorite",slug:e}),headers:{"Content-Type":"application/json","X-WP-Nonce":HC}}),t},{onError:()=>{y({title:Q("Error","everest-forms"),description:Q("An error occurred while updating favorites.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})},onSuccess:e=>{b.invalidateQueries(["templates"]),v(e),localStorage.setItem("favorites",JSON.stringify(e)),b.invalidateQueries(["favorites"])}}),C=o?.addons?Object.entries(o.addons).map(([e,t])=>({key:e,value:t})):[],E=C.map(e=>({key:e.key,value:e.value}));return t().createElement(Fy,null,t().createElement(Yy,{as:"h3",fontSize:"18px",lineHeight:"26px",letterSpacing:"0.4px",fontWeight:"semibold",m:"0px 0px 32px",color:"#26262E",borderBottom:"1px solid #CDD0D8",paddingBottom:"12px"},n),r?.length?t().createElement(ow,{columns:{base:1,md:2,lg:3,xl:4},spacing:6},r.map(e=>t().createElement(Fy,{key:e.slug,borderWidth:"2px",borderRadius:"8px",borderColor:"#F6F4FA",overflow:"hidden",position:"relative",onMouseOver:()=>m(e.id),onMouseLeave:()=>m(null),textAlign:"center",bg:"white",p:0,transition:"all .3s",_hover:{boxShadow:"0px 5px 24px rgba(58, 34, 93, 0.12)","::before":{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"250px",bg:"rgba(0, 0, 0, 0.4)",zIndex:1},"& > div > .template-title":{color:"#7545BB"}}},t().createElement(iw,{mb:0},t().createElement(Fy,{position:"relative",width:"100%",display:"flex",justifyContent:"center",alignItems:"center",bg:"#F7F4FB",pt:"80px",height:"250px",borderRadius:"4px 4px 0px 0px",overflow:"hidden",transition:"all .3s"},t().createElement(uw,{boxShadow:"0px 3px 12px rgba(58, 34, 93, 0.12)",src:e.imageUrl,alt:e.title,objectFit:"contain"}),e.isPro&&t().createElement(Fx,{bg:"#4BCE61",color:"white",position:"absolute",bottom:"12px",right:"12px",borderRadius:"4px",fontSize:"12px",p:"2px 6px",textTransform:"capitalize",zIndex:"2"},Q("Pro","everest-forms")),p===e.id&&t().createElement(Xy,{spacing:4,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:2},t().createElement(Ky,{borderRadius:"50px",leftIcon:t().createElement(Kx,null),colorScheme:"purple",onClick:()=>(async e=>{const t=e.addons?Object.keys(e.addons):[];try{const n=await mx({path:`${UC}everest-forms/v1/plugin/upgrade`,method:"POST",body:JSON.stringify({requiredPlugins:t}),headers:{"Content-Type":"application/json","X-WP-Nonce":HC}}),{plugin_status:r}=n;if(!r)return l(e.title),void w(!0);c(e.slug),i(e),l(e.title),f()}catch(e){y({title:Q("Error","everest-forms"),description:Q("An error occurred while checking the plugin status. Please try again.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}})(e)},Q("Get Started","everest-forms")),e.preview_link&&t().createElement(Ky,{borderRadius:"50px",leftIcon:t().createElement(RC,null),color:"white",variant:"outline",onClick:()=>window.open(e.preview_link,"_blank"),_hover:{color:"black",bg:"white"}},Q("Preview","everest-forms"))))),p===e.id&&t().createElement(Fy,{as:"button",onClick:()=>{return t=e.slug,void k.mutate(t);var t},"aria-label":`Toggle favorite for ${e.title}`,position:"absolute",top:2,right:2,zIndex:3,bg:"transparent",border:"none",_hover:{color:"red.600"}},t().createElement(Nr,{as:g.includes(e.slug)?PC:TC,boxSize:6,color:g.includes(e.slug)?"red":"white"})),t().createElement(Xy,{padding:"16px"},t().createElement(Yy,{className:"template-title",width:"100%",textAlign:"left",fontWeight:"bold",fontSize:"16px",margin:"0px"},e.title),t().createElement(Wy,{textAlign:"left",margin:"0px",fontSize:"14px",fontWeight:"400",color:"gray.600"},e.description))))):t().createElement(Fy,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"80vh",width:"100%"},t().createElement(uw,{src:AC,alt:Q("Not Found","everest-forms"),boxSize:"300px",objectFit:"cover"}),t().createElement(Wy,{mt:4,fontSize:"lg",fontWeight:"bold",textAlign:"center"},Q("No Templates Found","everest-forms")),t().createElement(Wy,{margin:0,fontSize:"sm",textAlign:"center",color:"gray.600"},Q("Sorry, we didn't find any templates that match your criteria","everest-forms"))),t().createElement(Cw,{isCentered:!0,isOpen:x,onClose:S,size:"lg"},t().createElement(zw,null),t().createElement(vC,{borderRadius:"8px",padding:"20px"},t().createElement(yC,{padding:"0px",textAlign:"center",fontSize:"20px",lineHeight:"28px",color:"#26262E"},t().createElement(qC,{boxSize:10}),t().createElement(Yy,{as:"h2",margin:"10px 0px 0px 0px",fontSize:"20px",lineHeight:"28px",fontWeight:"bold"},s(Q("%s is a Premium Template","everest-forms"),a))),t().createElement(bC,{top:"12px",right:"12px"}),t().createElement(xC,{padding:"0px",marginTop:"16px",textAlign:"center"},t().createElement(Wy,{margin:"0px",fontSize:"16px",lineHeight:"24px",mb:"20px"},Q("This template requires premium addons. Please upgrade to the Premium to unlock all these awesome templates.","everest-forms"))),t().createElement(wC,{justifyContent:"flex-end",padding:"0px"},t().createElement(Ky,{variant:"ghost",onClick:S},Q("OK","everest-forms")),t().createElement("a",{href:"https://everestforms.net/upgrade/?utm_medium=evf-template-page&utm_source=evf-free&utm_campaign=template-premium-popup",target:"_blank",rel:"noopener noreferrer",style:{width:"inherit"}},t().createElement(Ky,{colorScheme:"blue",ml:3},Q("Upgrade Plan","everest-forms")))))),t().createElement(Cw,{isCentered:!0,isOpen:d,onClose:h,size:"xl"},t().createElement(zw,null),t().createElement(vC,{borderRadius:"8px",padding:"40px"},t().createElement(yC,{padding:"0px",textAlign:"left",fontSize:"20px",lineHeight:"28px",color:"#26262E"},Q("Uplift your form experience to the next level.","everest-forms")),t().createElement(bC,{top:"12px",right:"12px"}),t().createElement(xC,{padding:"0px",marginTop:"16px"},t().createElement(Fy,{mb:"20px",padding:"0px"},t().createElement(Wy,{margin:"0px 0px 6px",fontSize:"16px",lineHeight:"29px"},Q("Give it a name","everest-forms")),t().createElement(Ax,{width:"full",value:a,onChange:e=>l(e.target.value),placeholder:"Give it a name.",size:"md",_focus:{borderColor:"#7545BB",outline:"none",boxShadow:"none"}})),t().createElement(Fy,{overflow:"hidden",mb:"0px",padding:"0px"},t().createElement(VC,{requiredPlugins:E,onActivateAndContinue:async()=>{if(a)try{const e=await mx({path:`${UC}everest-forms/v1/templates/create`,method:"POST",body:JSON.stringify({title:a,slug:u}),headers:{"Content-Type":"application/json","X-WP-Nonce":HC}});e.success&&e.data?window.location.href=e.data.redirect:y({title:Q("Error","everest-forms"),description:e.message||Q("Failed to create form template.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}catch(e){y({title:Q("Error","everest-forms"),description:Q("An error occurred while creating the form template.","everest-forms"),status:"error",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}else y({title:Q("Form name required","everest-forms"),description:Q("Please provide a name for your form.","everest-forms"),status:"warning",position:"bottom-right",duration:5e3,isClosable:!0,variant:"subtle"})}}))))))},{restURL:KC,security:GC}=gx,XC=async()=>{const e=await mx({path:`${KC}everest-forms/v1/templates`,method:"GET",headers:{"X-WP-Nonce":GC}});if(e&&Array.isArray(e.templates))return e.templates.flatMap(e=>e.templates);throw new Error(Q("Unexpected response format.","everest-forms"))},YC=({filter:n})=>{const[r,o]=(0,e.useState)({selectedCategory:Q("All Forms","everest-forms"),searchTerm:""}),[i,a]=(0,e.useState)(!1),{selectedCategory:s,searchTerm:l}=r,{data:u=[],isLoading:c,error:d}=function(t,n){const r=$b({context:t.context}),o=e.useContext(Wb),i=e.useContext(Nb),a=r.defaultQueryOptions(t);a._optimisticResults=o?"isRestoring":"optimistic",a.onError&&(a.onError=wb.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=wb.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=wb.batchCalls(a.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(a),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(a,i),(t=>{e.useEffect(()=>{t.clearReset()},[t])})(i);const[s]=e.useState(()=>new n(r,a)),l=s.getOptimisticResult(a);if(Ib(e.useCallback(e=>{const t=o?()=>{}:s.subscribe(wb.batchCalls(e));return s.updateResult(),t},[s,o]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),e.useEffect(()=>{s.setOptions(a,{listeners:!1})},[a,s]),((e,t,n)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,n))(a,l,o))throw((e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)}))(a,s,i);if((({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&Ub(n,[e.error,r]))({result:l,errorResetBoundary:i,useErrorBoundary:a.useErrorBoundary,query:s.getCurrentQuery()}))throw l.error;return a.notifyOnChangeProps?l:s.trackResult(l)}(ob(["templates"],XC,void 0),Ob);const f=(0,e.useMemo)(()=>{const e=new Set;return u.forEach(t=>{t.categories.forEach(t=>e.add(t))}),[{name:Q("All Forms","everest-forms"),count:u.length},...Array.from(e).map(e=>({name:e,count:u.filter(t=>t.categories.includes(e)).length}))]},[u]);(0,e.useEffect)(()=>{if(i)return;if(f.length<=1)return;const e=new URLSearchParams(window.location.search);if(e.has("evf_template_category")){const t=e.get("evf_template_category")||"",n=e=>e.toLowerCase().replace(/\s+/g,"").replace(/[^a-z0-9]/g,""),r=n(t);let i=f.find(e=>{const t=n(e.name);return t===r?(console.log(`Exact match: "${e.name}"`),!0):t.startsWith(r)?(console.log(`Starts with match: "${e.name}"`),!0):!!r.startsWith(t)&&(console.log(`Reverse starts with match: "${e.name}"`),!0)});i||(i=f.find(e=>{const o=n(e.name),i=t.toLowerCase().split(/[\s-]+/),a=e.name.toLowerCase().split(/[\s-]+/);return i.some(e=>a.some(t=>t.includes(e)||e.includes(t)))?(console.log(`Word match: "${e.name}"`),!0):!(!o.includes(r)&&!r.includes(o)||(console.log(`Contains match: "${e.name}"`),0))})),i&&i.name!==Q("All Forms","everest-forms")&&(o(e=>({...e,selectedCategory:i.name})),a(!0))}},[f,i]);const h=(0,e.useMemo)(()=>u.filter(e=>(s===Q("All Forms","everest-forms")||e.categories.includes(s))&&e.title.toLowerCase().includes(l.toLowerCase())&&("All"===n||"Free"===n&&!e.isPro||"Premium"===n&&e.isPro)),[s,l,u,n]),p=(0,e.useCallback)(e=>{o(t=>({...t,selectedCategory:e}))},[]),m=(0,e.useCallback)(e=>{o(t=>({...t,searchTerm:e}))},[]),g=Zy({base:"100%",md:"250px"});return c?t().createElement(Jy,{justify:"center",align:"center",height:"100vh"},t().createElement(Xv,{size:"xl"})):d?t().createElement("div",null,d.message):t().createElement(Fy,null,t().createElement(Jy,{direction:{base:"column",md:"row"}},t().createElement(Fy,{width:g,mr:{base:0,md:4},mb:{base:4,md:0}},t().createElement(Zx,{categories:f,selectedCategory:r.selectedCategory,onCategorySelect:p,onSearchChange:m})),t().createElement(Fy,{width:"1px",bg:"linear-gradient(90deg, #CDD0D8 0%, rgba(255, 255, 255, 0) 158.04%)",mx:"4",marginRight:"28px"}),t().createElement(Fy,{flex:1},t().createElement(QC,{selectedCategory:s,templates:h}))))};function ZC(){return ZC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZC.apply(null,arguments)}const JC=e=>t().createElement(Nr,ZC({viewBox:"0 0 24 24"},e),t().createElement("path",{fill:"#7e3bd0",d:"M21.23,10H17.79L16.62,8h3.46ZM17.77,4l1.15,2H15.48L14.31,4Zm-15,16L12,4l5.77,10H10.85L12,12h2.31L12,8,6.23,18H20.08l1.16,2Z"})),eE=({onTabChange:n})=>{const r=(0,e.useMemo)(()=>[Q("All","everest-forms"),Q("Free","everest-forms"),Q("Premium","everest-forms")],[]);return t().createElement(fo,{variant:"unstyled",ml:"auto",onChange:n},t().createElement(ho,null,r.map(e=>t().createElement(po,{key:e,_selected:{color:"purple.500",fontWeight:"bold",borderBottom:"2px solid",borderColor:"purple.500"},fontSize:{base:"sm",md:"md",lg:"lg"},px:{base:1,md:2}},e))))},tE=()=>{const[n,r]=(0,e.useState)(Q("All","everest-forms"));return t().createElement(Oy,null,t().createElement(Fy,{bg:"white",margin:"20px",padding:"0px 24px 50px",boxShadow:"0px 4px 50px rgba(0, 0, 0, 0.06)"},t().createElement(By,{spacing:{base:4,md:6},align:"center",mb:0,borderBottom:"1px solid #CDD0D8",padding:"20px 10px",direction:{base:"column",md:"row"}},t().createElement(JC,{boxSize:"12"}),t().createElement($y,{orientation:"vertical",height:"40px",borderColor:"#CDD0D8"}),t().createElement(Wy,{fontSize:"18px",fontWeight:"semibold",lineHeight:"26px",color:"#383838",textAlign:{base:"center",md:"left"},margin:"0px"},Q("Add New Form","everest-forms")),t().createElement(Ky,{colorScheme:"purple",variant:"outline",onClick:()=>{const e=new URL(window.location.href);e.searchParams.set("refresh",Date.now().toString()),window.location.href=e.toString()},width:{base:"full",md:"auto"},display:{base:"none",md:"inline-flex"},fontSize:"15px",lineHeight:"20px",padding:"8px 16px",height:"auto",borderRadius:"4px"},Q("Refresh Templates","everest-forms")),t().createElement(eE,{onTabChange:e=>{const t=[Q("All","everest-forms"),Q("Free","everest-forms"),Q("Premium","everest-forms")];r(t[e])}})),t().createElement(Fy,{bg:"white"},t().createElement(Xy,{align:"start",padding:"20px 0px 32px",gap:"12px"},t().createElement(Yy,{as:"h1",fontSize:"24px",lineHeight:"34px",letterSpacing:"0.4px",fontWeight:"semibold",m:0},Q("Select a Template","everest-forms")),t().createElement(Wy,{fontSize:"14px",lineHeight:"24px",color:"#4D4D4D",fontWeight:"400",margin:"0px"},Q("To get started quickly, you can pick from our ready-made templates, begin with a blank form, or design your own.","everest-forms"))),t().createElement(YC,{filter:n}))))};class nE extends kC{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||SC,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=xb(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(tb).catch(tb):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!rb(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),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:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const i=function(){if("function"==typeof AbortController)return new AbortController}(),a={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},s=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(i)return this.abortSignalConsumed=!0,i.signal}})};s(a);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(a)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var u;s(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(u=l.fetchOptions)?void 0:u.meta});const c=e=>{var t,n,r,o;Rb(e)&&e.silent||this.dispatch({type:"error",error:e}),Rb(e)||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Ab({fn:l.fetchFn,abort:null==i?void 0:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(o=this.cache.config).onSettled)||r.call(o,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):c(new Error(this.queryHash+" data is undefined"))},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:Pb(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return Rb(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:o,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),wb.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}}class rE extends Sb{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const o=t.queryKey,i=null!=(r=t.queryHash)?r:lb(o,t);let a=this.get(i);return a||(a=new nE({cache:this,logger:e.getLogger(),queryKey:o,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){wb.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=ib(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>ab(n,e))}findAll(e,t){const[n]=ib(e,t);return Object.keys(n).length>0?this.queries.filter(e=>ab(n,e)):this.queries}notify(e){wb.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){wb.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){wb.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}}class oE extends Sb{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new CC({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){wb.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>sb(e,t))}findAll(e){return this.mutations.filter(t=>sb(e,t))}notify(e){wb.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{const e=this.mutations.filter(e=>e.state.isPaused);return wb.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(tb)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function iE(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}const aE=function(){return null},sE=new class{constructor(e={}){this.queryCache=e.queryCache||new rE,this.mutationCache=e.mutationCache||new oE,this.logger=e.logger||SC,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=kb.subscribe(()=>{kb.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=Eb.subscribe(()=>{Eb.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[n]=ib(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){const r=ob(e,t,n),o=this.getQueryData(r.queryKey);return o?Promise.resolve(o):this.fetchQuery(r)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){const r=this.queryCache.find(e),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==r?void 0:r.state.data);if(void 0===o)return;const i=ob(e),a=this.defaultQueryOptions(i);return this.queryCache.build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return wb.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){const[n]=ib(e,t),r=this.queryCache;wb.batch(()=>{r.findAll(n).forEach(e=>{r.remove(e)})})}resetQueries(e,t,n){const[r,o]=ib(e,t,n),i=this.queryCache,a={type:"active",...r};return wb.batch(()=>(i.findAll(r).forEach(e=>{e.reset()}),this.refetchQueries(a,o)))}cancelQueries(e,t,n){const[r,o={}]=ib(e,t,n);void 0===o.revert&&(o.revert=!0);const i=wb.batch(()=>this.queryCache.findAll(r).map(e=>e.cancel(o)));return Promise.all(i).then(tb).catch(tb)}invalidateQueries(e,t,n){const[r,o]=ib(e,t,n);return wb.batch(()=>{var e,t;if(this.queryCache.findAll(r).forEach(e=>{e.invalidate()}),"none"===r.refetchType)return Promise.resolve();const n={...r,type:null!=(e=null!=(t=r.refetchType)?t:r.type)?e:"active"};return this.refetchQueries(n,o)})}refetchQueries(e,t,n){const[r,o]=ib(e,t,n),i=wb.batch(()=>this.queryCache.findAll(r).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...o,cancelRefetch:null==(t=null==o?void 0:o.cancelRefetch)||t,meta:{refetchPage:r.refetchPage}})}));let a=Promise.all(i).then(tb);return null!=o&&o.throwOnError||(a=a.catch(tb)),a}fetchQuery(e,t,n){const r=ob(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);const i=this.queryCache.build(this,o);return i.isStaleByTime(o.staleTime)?i.fetch(o):Promise.resolve(i.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(tb).catch(tb)}fetchInfiniteQuery(e,t,n){const r=ob(e,t,n);return r.behavior={onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,a;const s=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,u=null==l?void 0:l.pageParam,c="forward"===(null==l?void 0:l.direction),d="backward"===(null==l?void 0:l.direction),f=(null==(i=e.state.data)?void 0:i.pages)||[],h=(null==(a=e.state.data)?void 0:a.pageParams)||[];let p=h,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),v=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),y=(t,n,r,o)=>{if(m)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);const i={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{m=!0}),e.signal}});const s=g(i);return Promise.resolve(s).then(e=>v(t,r,e,o))};let b;if(f.length)if(c){const t=void 0!==u,n=t?u:iE(e.options,f);b=y(f,t,n)}else if(d){const t=void 0!==u,n=t?u:function(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}(e.options,f);b=y(f,t,n,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;b=s&&f[0]&&!s(f[0],0,f)?Promise.resolve(v([],h[0],f[0])):y([],t,h[0]);for(let n=1;n<f.length;n++)b=b.then(r=>{if(!s||!f[n]||s(f[n],n,f)){const o=t?h[n]:iE(e.options,r);return y(r,t,o)}return Promise.resolve(v(r,h[n],f[n]))})}else b=y([]);return b.then(e=>({pages:e,pageParams:p}))}}},this.fetchQuery(r)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(tb).catch(tb)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const n=this.queryDefaults.find(t=>ub(e)===ub(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find(t=>cb(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const n=this.mutationDefaults.find(t=>ub(e)===ub(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find(t=>cb(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=lb(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnReconnect:!1,retry:!1}}});(0,r.createRoot)(document.getElementById("evf-templates")).render(t().createElement(Vb,{client:sE},t().createElement(tE,null),t().createElement(aE,{initialIsOpen:!1})))})(),r)this[o]=r[o];r.__esModule&&Object.defineProperty(this,"__esModule",{value:!0})})();

Youez - 2016 - github.com/yon3zu
LinuXploit